fluency-v8-components 1.2.8 → 1.3.0

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.
@@ -1,4 +1,4 @@
1
- import { H as e, O as t, br as r, ax as o, aC as n, bd as i, a$ as l, be as C, b0 as g, aQ as u, aP as b, W as P, V as d, aF as h, aG as p, Z as c, X as m, aa as T, ab as I, ac as S, a9 as f, au as y, bf as B, b1 as D, C as k, u as A, aR as G, aw as F, s as L, t as M, bg as w, b2 as H, aD as E, ap as v, aq as x, al as N, aU as R, D as V, L as z, E as W, av as j, aN as q, Y as K, aY as O, aZ as Q, a_ as U, ar as J, aT as X, at as Y, l as Z, m as $, n as _, ay as aa, aH as sa, o as ea, G as ta, a as ra, d as oa, b as na, e as ia, f as la, i as Ca, j as ga, k as ua, h as ba, aV as Pa, p as da, az as ha, bi as pa, b4 as ca, a6 as ma, bh as Ta, b3 as Ia, J as Sa, K as fa, bj as ya, b5 as Ba, a7 as Da, r as ka, aS as Aa, aE as Ga, an as Fa, ao as La, aW as Ma, M as wa, aX as Ha, bk as Ea, b6 as va, w as xa, v as Na, x as Ra, y as Va, a2 as za, a3 as Wa, bs as ja, aK as qa, bl as Ka, b7 as Oa, am as Qa, F as Ua, aA as Ja, a0 as Xa, a1 as Ya, aL as Za, z as $a, a8 as _a, R as as, B as ss, aB as es, as as ts, U as rs, $ as os, ak as ns, ae as is, ad as ls, bm as Cs, b8 as gs, bn as us, b9 as bs, aI as Ps, aJ as ds, N as hs, af as ps, bo as cs, ag as ms, ah as Ts, ba as Is, ai as Ss, a4 as fs, S as ys, Q as Bs, I as Ds, bp as ks, bb as As, T as Gs, aM as Fs, a5 as Ls, bq as Ms, bc as ws, P as Hs, q as Es, aj as vs, A as xs, aO as Ns } from "./index-CXD1ULy9.mjs";
1
+ import { H as e, O as t, br as r, ax as o, aC as n, bd as i, a$ as l, be as C, b0 as g, aQ as u, aP as b, W as P, V as d, aF as h, aG as p, Z as c, X as m, aa as T, ab as I, ac as S, a9 as f, au as y, bf as B, b1 as D, C as k, u as A, aR as G, aw as F, s as L, t as M, bg as w, b2 as H, aD as E, ap as v, aq as x, al as N, aU as R, D as V, L as z, E as W, av as j, aN as q, Y as K, aY as O, aZ as Q, a_ as U, ar as J, aT as X, at as Y, l as Z, m as $, n as _, ay as aa, aH as sa, o as ea, G as ta, a as ra, d as oa, b as na, e as ia, f as la, i as Ca, j as ga, k as ua, h as ba, aV as Pa, p as da, az as ha, bi as pa, b4 as ca, a6 as ma, bh as Ta, b3 as Ia, J as Sa, K as fa, bj as ya, b5 as Ba, a7 as Da, r as ka, aS as Aa, aE as Ga, an as Fa, ao as La, aW as Ma, M as wa, aX as Ha, bk as Ea, b6 as va, w as xa, v as Na, x as Ra, y as Va, a2 as za, a3 as Wa, bs as ja, aK as qa, bl as Ka, b7 as Oa, am as Qa, F as Ua, aA as Ja, a0 as Xa, a1 as Ya, aL as Za, z as $a, a8 as _a, R as as, B as ss, aB as es, as as ts, U as rs, $ as os, ak as ns, ae as is, ad as ls, bm as Cs, b8 as gs, bn as us, b9 as bs, aI as Ps, aJ as ds, N as hs, af as ps, bo as cs, ag as ms, ah as Ts, ba as Is, ai as Ss, a4 as fs, S as ys, Q as Bs, I as Ds, bp as ks, bb as As, T as Gs, aM as Fs, a5 as Ls, bq as Ms, bc as ws, P as Hs, q as Es, aj as vs, A as xs, aO as Ns } from "./index-9yvRXgPX.mjs";
2
2
  export {
3
3
  e as ActionButtons,
4
4
  t as Active,
@@ -54,7 +54,7 @@ ${Rv(this.code(t,n))}
54
54
  `).reduce((o,s,u)=>(u!==0&&o.insert(`
55
55
  `,{[Ci.blotName]:n}),o.insert(s)),i)],new WeakMap)}}s8.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const rv=class rv extends ci{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",u5()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===rv.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};Mt(rv,"blotName","table"),Mt(rv,"tagName","TD");let Ks=rv;class Iu extends Md{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),r=this.next.children.head.formats(),a=this.next.children.tail.formats();return t.table===n.table&&t.table===r.table&&t.table===a.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const r=n.formats(),a=n.next.formats();if(r.table!==a.table){const i=this.splitAfter(n);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}Mt(Iu,"blotName","table-row"),Mt(Iu,"tagName","TR");class zl extends Md{}Mt(zl,"blotName","table-body"),Mt(zl,"tagName","TBODY");class Ah extends Md{balanceCells(){const t=this.descendants(Iu),n=t.reduce((r,a)=>Math.max(a.children.length,r),0);t.forEach(r=>{new Array(n-r.children.length).fill(0).forEach(()=>{let a;r.children.head!=null&&(a=Ks.formats(r.children.head.domNode));const i=this.scroll.create(Ks.blotName,a);r.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(zl);n==null||n.children.head==null||n.children.forEach(r=>{const a=r.children.at(t);a!=null&&a.remove()})}insertColumn(t){const[n]=this.descendant(zl);n==null||n.children.head==null||n.children.forEach(r=>{const a=r.children.at(t),i=Ks.formats(r.children.head.domNode),o=this.scroll.create(Ks.blotName,i);r.insertBefore(o,a)})}insertRow(t){const[n]=this.descendant(zl);if(n==null||n.children.head==null)return;const r=u5(),a=this.scroll.create(Iu.blotName);n.children.head.children.forEach(()=>{const o=this.scroll.create(Ks.blotName,r);a.appendChild(o)});const i=n.children.at(t);n.insertBefore(a,i)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}Mt(Ah,"blotName","table-container"),Mt(Ah,"tagName","TABLE"),Ah.allowedChildren=[zl],zl.requiredContainer=Ah,zl.allowedChildren=[Iu],Iu.requiredContainer=zl,Iu.allowedChildren=[Ks],Ks.requiredContainer=Iu;function u5(){return`row-${Math.random().toString(36).slice(2,6)}`}class yle extends zs{static register(){rt.register(Ks),rt.register(Iu),rt.register(zl),rt.register(Ah)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Ah).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(rt.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(rt.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(rt.sources.USER),this.quill.setSelection(n,rt.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,r]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==Ks.blotName)return[null,null,null,-1];const a=n.parent;return[a.parent.parent,a,n,r]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[r,a,i]=this.getTable(n);if(i==null)return;const o=i.cellOffset();r.insertColumn(o+t),this.quill.update(rt.sources.USER);let s=a.rowOffset();t===0&&(s+=1),this.quill.setSelection(n.index+s,n.length,rt.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[r,a,i]=this.getTable(n);if(i==null)return;const o=a.rowOffset();r.insertRow(o+t),this.quill.update(rt.sources.USER),t>0?this.quill.setSelection(n,rt.sources.SILENT):this.quill.setSelection(n.index+a.children.length,n.length,rt.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const r=this.quill.getSelection();if(r==null)return;const a=new Array(t).fill(0).reduce(i=>{const o=new Array(n).fill(`
56
56
  `).join("");return i.insert(o,{table:u5()})},new Rt().retain(r.index));this.quill.updateContents(a,rt.sources.USER),this.quill.setSelection(r.index,rt.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(rt.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(rt.events.TEXT_CHANGE,(r,a,i)=>{i===rt.sources.USER&&this.balanceTables()}),!0):!1)})}}const l8=Nu("quill:toolbar");class c5 extends zs{constructor(t,n){var r,a;if(super(t,n),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),_le(i,this.options.container),(a=(r=t.container)==null?void 0:r.parentNode)==null||a.insertBefore(i,t.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){l8.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var s;const o=(s=this.options.handlers)==null?void 0:s[i];o&&this.addHandler(i,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(rt.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(a=>a.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){l8.warn("ignoring attaching to nonexistent format",n,t);return}const r=t.tagName==="SELECT"?"change":"click";t.addEventListener(r,a=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const s=t.options[t.selectedIndex];s.hasAttribute("selected")?i=!1:i=s.value||!1}else t.classList.contains("ql-active")?i=!1:i=t.value||!t.hasAttribute("value"),a.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,i);else if(this.quill.scroll.query(n).prototype instanceof Uo){if(i=prompt(`Enter ${n}`),!i)return;this.quill.updateContents(new Rt().retain(o.index).delete(o.length).insert({[n]:i}),rt.sources.USER)}else this.quill.format(n,i,rt.sources.USER);this.update(o)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(r=>{const[a,i]=r;if(i.tagName==="SELECT"){let o=null;if(t==null)o=null;else if(n[a]==null)o=i.querySelector("option[selected]");else if(!Array.isArray(n[a])){let s=n[a];typeof s=="string"&&(s=s.replace(/"/g,'\\"')),o=i.querySelector(`option[value="${s}"]`)}o==null?(i.value="",i.selectedIndex=-1):o.selected=!0}else if(t==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const o=n[a],s=o===i.getAttribute("value")||o!=null&&o.toString()===i.getAttribute("value")||o==null&&!i.getAttribute("value");i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}else{const o=n[a]!=null;i.classList.toggle("ql-active",o),i.setAttribute("aria-pressed",o.toString())}})}}c5.DEFAULTS={};function u8(e,t,n){const r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${t}`),r.setAttribute("aria-pressed","false"),n!=null?(r.value=n,r.setAttribute("aria-label",`${t}: ${n}`)):r.setAttribute("aria-label",t),e.appendChild(r)}function _le(e,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const r=document.createElement("span");r.classList.add("ql-formats"),n.forEach(a=>{if(typeof a=="string")u8(r,a);else{const i=Object.keys(a)[0],o=a[i];Array.isArray(o)?ble(r,i,o):u8(r,i,o)}}),e.appendChild(r)})}function ble(e,t,n){const r=document.createElement("select");r.classList.add(`ql-${t}`),n.forEach(a=>{const i=document.createElement("option");a!==!1?i.setAttribute("value",String(a)):i.setAttribute("selected","selected"),r.appendChild(i)}),e.appendChild(r)}c5.DEFAULTS={container:null,handlers:{clean(){const e=this.quill.getSelection();if(e!=null)if(e.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,jt.INLINE)!=null&&this.quill.format(n,!1,rt.sources.USER)})}else this.quill.removeFormat(e.index,e.length,rt.sources.USER)},direction(e){const{align:t}=this.quill.getFormat();e==="rtl"&&t==null?this.quill.format("align","right",rt.sources.USER):!e&&t==="right"&&this.quill.format("align",!1,rt.sources.USER),this.quill.format("direction",e,rt.sources.USER)},indent(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0,10);if(e==="+1"||e==="-1"){let a=e==="+1"?1:-1;n.direction==="rtl"&&(a*=-1),this.quill.format("indent",r+a,rt.sources.USER)}},link(e){e===!0&&(e=prompt("Enter link URL:")),this.quill.format("link",e,rt.sources.USER)},list(e){const t=this.quill.getSelection(),n=this.quill.getFormat(t);e==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,rt.sources.USER):this.quill.format("list","unchecked",rt.sources.USER):this.quill.format("list",e,rt.sources.USER)}}};const wle='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',Ble='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',xle='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',Cle='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',Sle='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',kle='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',Mle='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',Ele='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',c8='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',Mm={align:{"":wle,center:Ble,right:xle,justify:Cle},background:Sle,blockquote:kle,bold:Mle,clean:Ele,code:c8,"code-block":c8,color:'<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',direction:{"":'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',rtl:'<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>'},formula:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',header:{1:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',2:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',3:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',4:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',5:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',6:'<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>'},italic:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',image:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',indent:{"+1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',"-1":'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>'},link:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',list:{bullet:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',check:'<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',ordered:'<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>'},script:{sub:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',super:'<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>'},strike:'<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',table:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',underline:'<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',video:'<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>'},Lle='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let A8=0;function d8(e,t){e.setAttribute(t,`${e.getAttribute(t)!=="true"}`)}class Jv{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),d8(this.label,"aria-expanded"),d8(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const r=t.getAttribute("value");return r&&n.setAttribute("data-value",r),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",a=>{switch(a.key){case"Enter":this.selectItem(n,!0),a.preventDefault();break;case"Escape":this.escape(),a.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Lle,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${A8}`,A8+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const r=this.buildItem(n);t.appendChild(r),n.selected===!0&&this.selectItem(r)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.container.querySelector(".ql-selected");t!==r&&(r!=null&&r.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class f8 extends Jv{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const r=this.label.querySelector(".ql-color-label"),a=t&&t.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=a:r.style.fill=a)}}class h8 extends Jv{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=n[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const r=t||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}}const Tle=e=>{const{overflowY:t}=getComputedStyle(e,null);return t!=="visible"&&t!=="clip"};let p8=class{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Tle(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const n=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");const a=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;if(i.right>a.right&&(o=a.right-i.right,this.root.style.left=`${n+o}px`),i.left<a.left&&(o=a.left-i.left,this.root.style.left=`${n+o}px`),i.bottom>a.bottom){const s=i.bottom-i.top,u=t.bottom-t.top+s;this.root.style.top=`${r-u}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}};const Nle=[!1,"center","right","justify"],Fle=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Ole=[!1,"serif","monospace"],Ile=["1","2","3",!1],Dle=["small",!1,"large","huge"];class Em extends lh{constructor(t,n){super(t,n);const r=a=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(a.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(a.target)||i.close()})};t.emitter.listenDOM("click",document.body,r)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),n[i]!=null))if(i==="direction")r.innerHTML=n[i][""]+n[i].rtl;else if(typeof n[i]=="string")r.innerHTML=n[i];else{const o=r.value||"";o!=null&&n[i][o]&&(r.innerHTML=n[i][o])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(a=>{if(a.classList.contains("ql-align")&&(a.querySelector("option")==null&&Lm(a,Nle),typeof n.align=="object"))return new h8(a,n.align);if(a.classList.contains("ql-background")||a.classList.contains("ql-color")){const i=a.classList.contains("ql-background")?"background":"color";return a.querySelector("option")==null&&Lm(a,Fle,i==="background"?"#ffffff":"#000000"),new f8(a,n[i])}return a.querySelector("option")==null&&(a.classList.contains("ql-font")?Lm(a,Ole):a.classList.contains("ql-header")?Lm(a,Ile):a.classList.contains("ql-size")&&Lm(a,Dle)),new Jv(a)});const r=()=>{this.pickers.forEach(a=>{a.update()})};this.quill.on(Ut.events.EDITOR_CHANGE,r)}}Em.DEFAULTS=zc({},lh.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let e=this.container.querySelector("input.ql-image[type=file]");e==null&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),e.classList.add("ql-image"),e.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,e.files),e.value=""}),this.container.appendChild(e)),e.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class m8 extends p8{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,Ut.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,Ut.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=Ule(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),t,Ut.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",Ut.sources.USER),this.quill.setSelection(r+2,Ut.sources.USER)}break}}this.textbox.value="",this.hide()}}function Ule(e){let t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:e}function Lm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(r=>{const a=document.createElement("option");r===n?a.setAttribute("selected","selected"):a.setAttribute("value",String(r)),e.appendChild(a)})}const Ple=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class g8 extends m8{constructor(t,n){super(t,n),this.quill.on(Ut.events.EDITOR_CHANGE,(r,a,i,o)=>{if(r===Ut.events.SELECTION_CHANGE)if(a!=null&&a.length>0&&o===Ut.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const s=this.quill.getLines(a.index,a.length);if(s.length===1){const u=this.quill.getBounds(a);u!=null&&this.position(u)}else{const u=s[s.length-1],c=this.quill.getIndex(u),A=Math.min(u.length()-1,a.index+a.length-c),d=this.quill.getBounds(new kd(c,A));d!=null&&this.position(d)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(Ut.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",n!==0&&(r.style.marginLeft=`${-1*n-r.offsetWidth/2}px`),n}}Mt(g8,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class v8 extends Em{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Ple),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new g8(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Mm),this.buildPickers(t.container.querySelectorAll("select"),Mm))}}v8.DEFAULTS=zc({},Em.DEFAULTS,{modules:{toolbar:{handlers:{link(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1,rt.sources.USER)}}}}});const Hle=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class y8 extends m8{constructor(){super(...arguments);Mt(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",n=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),n.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",n=>{if(this.linkRange!=null){const r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,Ut.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(Ut.events.SELECTION_CHANGE,(n,r,a)=>{if(n!=null){if(n.length===0&&a===Ut.sources.USER){const[i,o]=this.quill.scroll.descendant(Gc,n.index);if(i!=null){this.linkRange=new kd(n.index-o,i.length());const s=Gc.formats(i.domNode);this.preview.textContent=s,this.preview.setAttribute("href",s),this.show();const u=this.quill.getBounds(this.linkRange);u!=null&&this.position(u);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}Mt(y8,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class _8 extends Em{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=Hle),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Mm),this.buildPickers(t.container.querySelectorAll("select"),Mm),this.tooltip=new y8(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,r)=>{t.handlers.link.call(t,!r.format.link)}))}}_8.DEFAULTS=zc({},Em.DEFAULTS,{modules:{toolbar:{handlers:{link(e){if(e){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:r}=this.quill.theme;r.edit("link",n)}else this.quill.format("link",!1,rt.sources.USER)}}}}}),rt.register({"attributors/attribute/direction":YT,"attributors/class/align":UT,"attributors/class/background":Sse,"attributors/class/color":Cse,"attributors/class/direction":QT,"attributors/class/font":VT,"attributors/class/size":qT,"attributors/style/align":PT,"attributors/style/background":Ww,"attributors/style/color":Gw,"attributors/style/direction":RT,"attributors/style/font":zT,"attributors/style/size":KT},!0),rt.register({"formats/align":UT,"formats/direction":QT,"formats/indent":mle,"formats/background":Ww,"formats/color":Gw,"formats/font":VT,"formats/size":qT,"formats/blockquote":r5,"formats/code-block":Ci,"formats/header":a5,"formats/list":xm,"formats/bold":Cm,"formats/code":Xw,"formats/italic":i5,"formats/link":Gc,"formats/script":o5,"formats/strike":s5,"formats/underline":l5,"formats/formula":Wv,"formats/image":gle,"formats/video":Xv,"modules/syntax":s8,"modules/table":yle,"modules/toolbar":c5,"themes/bubble":v8,"themes/snow":_8,"ui/icons":Mm,"ui/picker":Jv,"ui/icon-picker":h8,"ui/color-picker":f8,"ui/tooltip":p8},!0);const Yle={props:{modelValue:{type:String,default:""}},data(){return{editor:null}},mounted(){if(this.editor=new rt("#editor",{modules:{toolbar:"#toolbar"},theme:"snow",formats:["font","size","bold","underline","header","italic","strike","link","color","background","list","align"]}),this.modelValue){let e="";this.modelValue.startsWith("<p>")?e=this.modelValue:e=this.editor.clipboard.convertHTML(this.modelValue).ops[0].insert.split(`
57
- `).map(a=>`<p>${a}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function Qle(e,t,n,r,a,i){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="bg-blue-100 dark:bg-blue-200"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const b8=sr(Yle,[["render",Qle]]),Rle={class:"mt-2"},jle={class:"text-sm overflow-x-auto text-ellipsis"},Vle=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(""),i=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,v,y,g="Yes",_="No"){a.value=m,r.value=p,i.value=v,o.value=y,n.value=!0,s.value=g,u.value=_}async function d(){c.value=!0,await i.value(),c.value=!1,h()}function f(){o.value&&o.value(),h()}function h(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:n.value,title:a.value,onClose:h},{content:l.withCtx(()=>[l.createElementVNode("div",Rle,[l.createElementVNode("p",jle,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:s.value,loading:c.value,onClick:d},null,8,["text","loading"]),l.createVNode(l.unref(is),{text:u.value,color:"red",onClick:f},null,8,["text"])]),_:1},8,["open","title"]))}}),zle={class:"mt-2"},qle={class:"break-all text-sm text-gray-600 dark:text-gray-400 font-bold"},Kle={class:"text-sm text-gray-500"},Gle=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref(""),o=l.ref(""),s=l.ref("");function u(d,f,h){o.value=d,i.value=f,s.value=h,a.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){a.value=!1}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",zle,[l.createElementVNode("p",qle,l.toDisplayString(s.value),1),l.createElementVNode("p",Kle,l.toDisplayString(i.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:"Copy",color:"green",onClick:c}),l.createVNode(l.unref(is),{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),w8={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,a=n,i=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const d=r.values.find(f=>f.value===o.value.key);return d?d.values.map(f=>({label:f,value:f})):[]});function u(d){const f=r.values.find(h=>h.value===d);f&&(o.value.val=f.values[0])}function c(){i.value=!1}function A(d){i.value=!0,o.value={}}return t({open:i,openModal:A,close:c}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{modelValue:o.value.key,"onUpdate:modelValue":[f[0]||(f[0]=h=>o.value.key=h),f[1]||(f[1]=h=>u(h))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(l.unref(Ha),{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{modelValue:o.value.val,"onUpdate:modelValue":f[2]||(f[2]=h=>o.value.val=h),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Ha),{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(t6),{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:f[3]||(f[3]=h=>a("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},Wle={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({});function o(){a.value=!1}function s(u){a.value=!0,i.value={name:u.name}}return t({open:a,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>i.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",i.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},Xle={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({});function o(){a.value=!1}function s(u){a.value=!0,i.value={name:u.name,description:u.description||""}}return t({open:a,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>i.value.name=A)},null,8,["modelValue"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.description,"onUpdate:modelValue":c[1]||(c[1]=A=>i.value.description=A)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,loading:e.loading,onSave:c[2]||(c[2]=A=>r("save",i.value)),onClose:o},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};function B8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function Jle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})])}function Zle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function $le(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function Tm(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function x8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Zv(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function C8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function eue(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function S8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function k8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Td(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function A5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const tue={class:"flex"},nue={class:"flex-shrink-0"},rue={class:"ml-3"},aue={key:0,class:"text-sm font-medium text-green-800"},iue={key:1,class:"text-sm font-medium text-red-800"},oue={key:2,class:"mt-2 text-sm text-green-700"},sue={key:3,class:"mt-2 text-sm text-red-700"},lue={class:"ml-auto pl-3"},uue={class:"-mx-1.5 -my-1.5"},cue={class:"flex"},Aue={class:"flex-shrink-0"},due={class:"ml-3"},fue={key:0,class:"text-sm font-medium text-green-800"},hue={key:1,class:"text-sm font-medium text-red-800"},pue={key:2,class:"mt-2 text-sm text-green-700"},mue={key:3,class:"mt-2 text-sm text-red-700"},gue={class:"ml-auto pl-3"},vue={class:"-mx-1.5 -my-1.5"},yue=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",tue,[l.createElementVNode("div",nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",rue,[a.value?(l.openBlock(),l.createElementBlock("h3",aue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",oue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",sue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",lue,[l.createElementVNode("div",uue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",cue,[l.createElementVNode("div",Aue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",due,[a.value?(l.openBlock(),l.createElementBlock("h3",fue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",hue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",pue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",mue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",gue,[l.createElementVNode("div",vue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),_ue={class:"flex"},bue={class:"flex-shrink-0"},wue={class:"ml-3"},Bue={key:0,class:"text-sm font-medium text-green-800"},xue={key:1,class:"text-sm font-medium text-red-800"},Cue={key:2,class:"mt-2 text-sm text-green-700"},Sue={role:"list",class:"list-disc space-y-1 pl-5"},kue={key:3,class:"mt-2 text-sm text-red-700"},Mue={role:"list",class:"list-disc space-y-1 pl-5"},Eue={class:"ml-auto pl-3"},Lue={class:"-mx-1.5 -my-1.5"},Tue={class:"flex"},Nue={class:"flex-shrink-0"},Fue={class:"ml-3"},Oue={key:0,class:"text-sm font-medium text-green-800"},Iue={key:1,class:"text-sm font-medium text-red-800"},Due={key:2,class:"mt-2 text-sm text-green-700"},Uue={role:"list",class:"list-disc space-y-1 pl-5"},Pue={key:3,class:"mt-2 text-sm text-red-700"},Hue={role:"list",class:"list-disc space-y-1 pl-5"},Yue={class:"ml-auto pl-3"},Que={class:"-mx-1.5 -my-1.5"},M8=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",_ue,[l.createElementVNode("div",bue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",wue,[a.value?(l.openBlock(),l.createElementBlock("h3",Bue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",xue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",Cue,[l.createElementVNode("ul",Sue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",kue,[l.createElementVNode("ul",Mue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",Eue,[l.createElementVNode("div",Lue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",Tue,[l.createElementVNode("div",Nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",Fue,[a.value?(l.openBlock(),l.createElementBlock("h3",Oue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",Iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",Due,[l.createElementVNode("ul",Uue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",Pue,[l.createElementVNode("ul",Hue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",Yue,[l.createElementVNode("div",Que,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Rue={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=h=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(h)},h):(A(),r("close"))};function A(){clearTimeout(u.value),a.value=!1}function d(h,m=0,p=100,v=c){a.value=!0,i.value=h,o.value=m,p?(s.value=c,s.value(p)):(s.value=v,s.value())}function f(h){o.value=h}return t({openModal:d,updateProgress:f,close:A}),(h,m)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(l.unref(Y8),{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},jue={class:"w-full px-4"},Vue={class:"pb-8 md:pb-4 row gap-x-2"},zue={class:"row gap-x-2"},que={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",jue,[l.createElementVNode("div",Vue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} text-sm px-1`,{"opacity-75":r.status!=="current"},{"font-semibold":r.status==="current"}])},l.toDisplayString(r.name),3))),256))]),l.createElementVNode("div",zue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} rounded-lg`,{"bg-gray-200 dark:bg-gray-500":r.status==="upcoming"},{"bg-sky-500":r.status!=="upcoming"}])},null,2))),256))])]))}},Kue={class:"flow-root"},Gue={class:"float-left"},Wue={class:"float-right space-x-4"},Xue={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),a=l.ref(0),i=t;l.watch(()=>n.open,()=>{r.value=n.steps,a.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[a.value].status="completed",a.value+=1,r.value[a.value].status="current",i("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){a.value===0?(a.value=0,i("close")):(r.value[a.value].status="upcoming",a.value-=1,r.value[a.value].status="current")}function s(){i("next")}return(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:e.open,title:e.title,size:"large",onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(que,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Kue,[l.createElementVNode("div",Gue,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Wue,[l.createVNode(l.unref(is),{text:a.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),a.value!==r.value.length-1?(l.openBlock(),l.createBlock(l.unref(is),{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(l.unref(is),{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?i("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title"]))}},Jue={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){if(o.value={},!i.value.password||i.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(i.value.password!==i.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",i.value),u()}function u(){a.value=!1}function c(A){a.value=!0,i.value={username:A}}return t({open:a,openModal:c,close:u}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.password,"onUpdate:modelValue":d[0]||(d[0]=f=>i.value.password=f),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.confirm,"onUpdate:modelValue":d[1]||(d[1]=f=>i.value.confirm=f),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Zue={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref("Title"),o=l.ref(null);function s(A,d){a.value=!0,i.value=A,o.value=d}function u(){window.open(o.value,"_blank"),c()}function c(){a.value=!1,i.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Nm(){return Nm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(this,arguments)}var $ue=13,ece=9,tce=8,nce=89,$v=90,rce=77,E8=57,L8=219,T8=222,N8=192,ace=27,F8=100,ice=3e3,oce=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),d5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),sce=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var a="border-top-left-radius",i="border-bottom-left-radius";if(n){n.style[a]=r[a],n.style[i]=r[i],t.style[a]="0",t.style[i]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,a=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:a})}},_getLines:function(t,n){return t.substring(0,n).split(`
57
+ `).map(a=>`<p>${a}</p>`).join("");const t=document.querySelector("#editor .ql-editor");t.innerHTML=e}this.editor.on("text-change",()=>{this.$emit("update:modelValue",this.editor.root.innerHTML)})}};function Qle(e,t,n,r,a,i){return t[0]||(t[0]=l.createStaticVNode('<div id="toolbar" class="bg-blue-100 dark:bg-blue-200"><span class="ql-formats"><select class="ql-font"></select><select class="ql-size"></select></span><span class="ql-formats"><button class="ql-bold"></button><button class="ql-italic"></button><button class="ql-underline"></button><button class="ql-strike"></button></span><span class="ql-formats"><select class="ql-color"></select><select class="ql-background"></select></span><span class="ql-formats"><button class="ql-list" value="ordered"></button><button class="ql-list" value="bullet"></button><select class="ql-align"></select></span><span class="ql-formats"><button class="ql-link"></button></span></div><div id="editor" class="min-h-40"></div>',2))}const b8=sr(Yle,[["render",Qle]]),Rle={class:"mt-2"},jle={class:"text-sm overflow-x-auto text-ellipsis"},Vle=l.defineComponent({__name:"ConfirmDialog",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(""),i=l.ref(()=>{}),o=l.ref(()=>{}),s=l.ref("Yes"),u=l.ref("No"),c=l.ref(!1);function A(m,p,v,y,g="Yes",_="No"){a.value=m,r.value=p,i.value=v,o.value=y,n.value=!0,s.value=g,u.value=_}async function d(){c.value=!0,await i.value(),c.value=!1,h()}function f(){o.value&&o.value(),h()}function h(){n.value=!1}return t({openModal:A}),(m,p)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:n.value,title:a.value,onClose:h},{content:l.withCtx(()=>[l.createElementVNode("div",Rle,[l.createElementVNode("p",jle,l.toDisplayString(r.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:s.value,loading:c.value,onClick:d},null,8,["text","loading"]),l.createVNode(l.unref(is),{text:u.value,color:"red",onClick:f},null,8,["text"])]),_:1},8,["open","title"]))}}),zle={class:"mt-2"},qle={class:"break-all text-sm text-gray-600 dark:text-gray-400 font-bold"},Kle={class:"text-sm text-gray-500"},Gle=l.defineComponent({__name:"CopyDialog",emits:["notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref(""),o=l.ref(""),s=l.ref("");function u(d,f,h){o.value=d,i.value=f,s.value=h,a.value=!0}function c(){navigator.clipboard.writeText(s.value),r("notify","Token copied to clipboard","",!0)}function A(){a.value=!1}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:o.value,onClose:A},{content:l.withCtx(()=>[l.createElementVNode("div",zle,[l.createElementVNode("p",qle,l.toDisplayString(s.value),1),l.createElementVNode("p",Kle,l.toDisplayString(i.value),1)])]),footer:l.withCtx(()=>[l.createVNode(l.unref(is),{text:"Copy",color:"green",onClick:c}),l.createVNode(l.unref(is),{text:"Close",color:"red",onClick:A})]),_:1},8,["open","title"]))}}),w8={__name:"ChooseValueDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"},values:{type:Array,default:()=>[]}},emits:["save"],setup(e,{expose:t,emit:n}){const r=e,a=n,i=l.ref(!1),o=l.ref({}),s=l.computed(()=>{const d=r.values.find(f=>f.value===o.value.key);return d?d.values.map(f=>({label:f,value:f})):[]});function u(d){const f=r.values.find(h=>h.value===d);f&&(o.value.val=f.values[0])}function c(){i.value=!1}function A(d){i.value=!0,o.value={}}return t({open:i,openModal:A,close:c}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:i.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{modelValue:o.value.key,"onUpdate:modelValue":[f[0]||(f[0]=h=>o.value.key=h),f[1]||(f[1]=h=>u(h))],options:e.values},null,8,["modelValue","options"])]),_:1},8,["fieldName"]),s.value.length>1?(l.openBlock(),l.createBlock(l.unref(Ha),{key:0,fieldName:"Select Attribute Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{modelValue:o.value.val,"onUpdate:modelValue":f[2]||(f[2]=h=>o.value.val=h),options:s.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),l.createVNode(l.unref(Ha),{fieldName:"Selected Value"},{default:l.withCtx(()=>[l.createVNode(l.unref(t6),{value:o.value.val,readonly:""},null,8,["value"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:f[3]||(f[3]=h=>a("save",o.value)),onClose:c},null,8,["saveText"])]),_:1},8,["open","title"]))}},Wle={__name:"NameDialog",props:{title:{type:String,default:"Add"},nameField:{type:String,default:"Name"},saveButtonText:{type:String,default:"Save"}},emits:["save"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({});function o(){a.value=!1}function s(u){a.value=!0,i.value={name:u.name}}return t({open:a,openModal:s,close:o}),(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:e.nameField},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":c[0]||(c[0]=A=>i.value.name=A)},null,8,["modelValue"])]),_:1},8,["fieldName"])]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,onSave:c[1]||(c[1]=A=>r("save",i.value)),onClose:o},null,8,["saveText"])]),_:1},8,["open","title"]))}},Xle={__name:"NameDescDialog",props:{title:{type:String,default:"Add"},saveButtonText:{type:String,default:"Save"},loading:{type:Boolean,default:!1}},emits:["save","notifyList"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){a.value=!1}function u(){if(o.value={},!i.value.name){o.value.name="Name is required",r("notifyList","Error",["Name is required"],!1);return}r("save",i.value)}function c(A){a.value=!0,i.value={name:A.name,description:A.description||""}}return t({open:a,openModal:c,close:s}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:e.title},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.name,"onUpdate:modelValue":d[0]||(d[0]=f=>i.value.name=f),error:o.value.name},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Description"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:i.value.description,"onUpdate:modelValue":d[1]||(d[1]=f=>i.value.description=f)},null,8,["modelValue"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:e.saveButtonText,loading:e.loading,onSave:u,onClose:s},null,8,["saveText","loading"])]),_:1},8,["open","title"]))}};function B8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})])}function Jle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5M12 17.25h8.25"})])}function Zle(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"})])}function $le(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 5.25h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5"})])}function Tm(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function x8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m4.5 12.75 6 6 9-13.5"})])}function Zv(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"})])}function C8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"})])}function eue(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})])}function S8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function k8(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z"})])}function Td(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})])}function A5(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})])}const tue={class:"flex"},nue={class:"flex-shrink-0"},rue={class:"ml-3"},aue={key:0,class:"text-sm font-medium text-green-800"},iue={key:1,class:"text-sm font-medium text-red-800"},oue={key:2,class:"mt-2 text-sm text-green-700"},sue={key:3,class:"mt-2 text-sm text-red-700"},lue={class:"ml-auto pl-3"},uue={class:"-mx-1.5 -my-1.5"},cue={class:"flex"},Aue={class:"flex-shrink-0"},due={class:"ml-3"},fue={key:0,class:"text-sm font-medium text-green-800"},hue={key:1,class:"text-sm font-medium text-red-800"},pue={key:2,class:"mt-2 text-sm text-green-700"},mue={key:3,class:"mt-2 text-sm text-red-700"},gue={class:"ml-auto pl-3"},vue={class:"-mx-1.5 -my-1.5"},yue=l.defineComponent({__name:"Notify",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(""),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},3e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",tue,[l.createElementVNode("div",nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",rue,[a.value?(l.openBlock(),l.createElementBlock("h3",aue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",oue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",sue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",lue,[l.createElementVNode("div",uue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",cue,[l.createElementVNode("div",Aue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",due,[a.value?(l.openBlock(),l.createElementBlock("h3",fue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",hue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",pue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)])):(l.openBlock(),l.createElementBlock("div",mue,[l.createElementVNode("p",null,l.toDisplayString(r.value),1)]))]),l.createElementVNode("div",gue,[l.createElementVNode("div",vue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),_ue={class:"flex"},bue={class:"flex-shrink-0"},wue={class:"ml-3"},Bue={key:0,class:"text-sm font-medium text-green-800"},xue={key:1,class:"text-sm font-medium text-red-800"},Cue={key:2,class:"mt-2 text-sm text-green-700"},Sue={role:"list",class:"list-disc space-y-1 pl-5"},kue={key:3,class:"mt-2 text-sm text-red-700"},Mue={role:"list",class:"list-disc space-y-1 pl-5"},Eue={class:"ml-auto pl-3"},Lue={class:"-mx-1.5 -my-1.5"},Tue={class:"flex"},Nue={class:"flex-shrink-0"},Fue={class:"ml-3"},Oue={key:0,class:"text-sm font-medium text-green-800"},Iue={key:1,class:"text-sm font-medium text-red-800"},Due={key:2,class:"mt-2 text-sm text-green-700"},Uue={role:"list",class:"list-disc space-y-1 pl-5"},Pue={key:3,class:"mt-2 text-sm text-red-700"},Hue={role:"list",class:"list-disc space-y-1 pl-5"},Yue={class:"ml-auto pl-3"},Que={class:"-mx-1.5 -my-1.5"},M8=l.defineComponent({__name:"NotifyList",setup(e,{expose:t}){const n=l.ref(!1),r=l.ref(),a=l.ref(!1),i=l.ref(""),o=l.ref(),s=l.ref(!1);function u(d,f,h){clearTimeout(o.value),i.value=d,r.value=f,a.value=h,n.value=!0;const m=window.document.querySelectorAll("#headlessui-portal-root");s.value=m&&m.length>0&&m[0].childElementCount>1,o.value=setTimeout(()=>{c()},5e3)}function c(){n.value=!1}function A(){return a.value?"green":"red"}return t({openModal:u}),(d,f)=>(l.openBlock(),l.createBlock(l.unref(Qc),{as:"template",show:n.value},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createBlock(l.unref(Xf),{key:0,as:"div",class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"},onClose:c},{default:l.withCtx(()=>[l.createElementVNode("div",_ue,[l.createElementVNode("div",bue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",wue,[a.value?(l.openBlock(),l.createElementBlock("h3",Bue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",xue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",Cue,[l.createElementVNode("ul",Sue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",kue,[l.createElementVNode("ul",Mue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",Eue,[l.createElementVNode("div",Lue,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])]),_:1},8,["class"])):(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass([a.value?"bg-green-50":"bg-red-50","rounded-md p-4 fixed bottom-5 z-50"]),style:{"min-width":"75%",left:"50%",transform:"translateX(-50%)"}},[l.createElementVNode("div",Tue,[l.createElementVNode("div",Nue,[a.value?(l.openBlock(),l.createBlock(l.unref(Tm),{key:0,class:"icon-md text-green-400","aria-hidden":"true"})):(l.openBlock(),l.createBlock(l.unref(Td),{key:1,class:"icon-md text-red-400","aria-hidden":"true"}))]),l.createElementVNode("div",Fue,[a.value?(l.openBlock(),l.createElementBlock("h3",Oue,l.toDisplayString(i.value),1)):(l.openBlock(),l.createElementBlock("h3",Iue,l.toDisplayString(i.value),1)),a.value?(l.openBlock(),l.createElementBlock("div",Due,[l.createElementVNode("ul",Uue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])])):(l.openBlock(),l.createElementBlock("div",Pue,[l.createElementVNode("ul",Hue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,h=>(l.openBlock(),l.createElementBlock("li",{key:h},l.toDisplayString(h),1))),128))])]))]),l.createElementVNode("div",Yue,[l.createElementVNode("div",Que,[l.createVNode(l.unref(Wc),{color:A(),onClick:c},{default:l.withCtx(()=>[l.createVNode(l.unref(bd),{class:"icon-md","aria-hidden":"true"})]),_:1},8,["color"])])])])],2))]),_:1},8,["show"]))}}),Rue={__name:"ProgressDialog",emits:["close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref("Loading"),o=l.ref(0),s=l.ref(()=>{}),u=l.ref(),c=h=>{o.value+=1,o.value<100?u.value=setTimeout(()=>{s.value(h)},h):(A(),r("close"))};function A(){clearTimeout(u.value),a.value=!1}function d(h,m=0,p=100,v=c){a.value=!0,i.value=h,o.value=m,p?(s.value=c,s.value(p)):(s.value=v,s.value())}function f(h){o.value=h}return t({openModal:d,updateProgress:f,close:A}),(h,m)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,loading:!0},{content:l.withCtx(()=>[l.createVNode(l.unref(Y8),{progress:o.value},null,8,["progress"])]),_:1},8,["open","title"]))}},jue={class:"w-full px-4"},Vue={class:"pb-8 md:pb-4 row gap-x-2"},zue={class:"row gap-x-2"},que={__name:"Stepper",props:{steps:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",jue,[l.createElementVNode("div",Vue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} text-sm px-1`,{"opacity-75":r.status!=="current"},{"font-semibold":r.status==="current"}])},l.toDisplayString(r.name),3))),256))]),l.createElementVNode("div",zue,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.steps,(r,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass([`h-2 w-1/${e.steps.length} rounded-lg`,{"bg-gray-200 dark:bg-gray-500":r.status==="upcoming"},{"bg-sky-500":r.status!=="upcoming"}])},null,2))),256))])]))}},Kue={class:"flow-root"},Gue={class:"float-left"},Wue={class:"float-right space-x-4"},Xue={__name:"Wizard",props:{open:Boolean,title:String,steps:Array,proceed:Boolean,saveButton:{type:String,default:"Save"},preventSave:{type:[Boolean,Number],default:!1}},emits:["close","next","moved","clickout"],setup(e,{emit:t}){const n=e,r=l.ref(n.steps),a=l.ref(0),i=t;l.watch(()=>n.open,()=>{r.value=n.steps,a.value=0}),l.watch(()=>n.proceed,()=>{n.proceed&&(r.value[a.value].status="completed",a.value+=1,r.value[a.value].status="current",i("moved"))}),l.watch(()=>n.steps,()=>{r.value=n.steps});function o(){a.value===0?(a.value=0,i("close")):(r.value[a.value].status="upcoming",a.value-=1,r.value[a.value].status="current")}function s(){i("next")}return(u,c)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:e.open,title:e.title,size:"large",onClose:c[1]||(c[1]=A=>u.$emit("clickout"))},{header:l.withCtx(()=>[l.renderSlot(u.$slots,"header")]),content:l.withCtx(()=>[l.createVNode(que,{steps:r.value},null,8,["steps"]),l.renderSlot(u.$slots,"content")]),footer:l.withCtx(()=>[l.createElementVNode("div",Kue,[l.createElementVNode("div",Gue,[l.renderSlot(u.$slots,"footer")]),l.createElementVNode("div",Wue,[l.createVNode(l.unref(is),{text:a.value===0?"Cancel":"Back",color:"red",onClick:o},null,8,["text"]),a.value!==r.value.length-1?(l.openBlock(),l.createBlock(l.unref(is),{key:0,text:"Next",onClick:s})):(l.openBlock(),l.createBlock(l.unref(is),{key:1,text:e.preventSave?"Close":e.saveButton,color:"blue",onClick:c[0]||(c[0]=A=>e.preventSave?i("close"):s())},null,8,["text"]))])])]),_:3},8,["open","title"]))}},Jue={__name:"ResetPasswordDialog",emits:["save","notify"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref({}),o=l.ref({});function s(){if(o.value={},!i.value.password||i.value.password.length<8){o.value.password="Password needs to be at least 8 characters long",r("notify","Error",[o.value.password],!1);return}if(i.value.password!==i.value.confirm){o.value.confirm="Passwords do not match",r("notify","Error",[o.value.confirm],!1);return}r("save",i.value),u()}function u(){a.value=!1}function c(A){a.value=!0,i.value={username:A}}return t({open:a,openModal:c,close:u}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:"Reset Password"},{content:l.withCtx(()=>[l.createVNode(l.unref(Ha),{fieldName:"Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.password,"onUpdate:modelValue":d[0]||(d[0]=f=>i.value.password=f),error:o.value.password},null,8,["modelValue","error"])]),_:1}),l.createVNode(l.unref(Ha),{fieldName:"Confirm Password"},{default:l.withCtx(()=>[l.createVNode(l.unref(uw),{modelValue:i.value.confirm,"onUpdate:modelValue":d[1]||(d[1]=f=>i.value.confirm=f),error:o.value.confirm},null,8,["modelValue","error"])]),_:1})]),footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Reset",onSave:s,onClose:u})]),_:1},8,["open"]))}},Zue={__name:"DownloadDialog",props:{},emits:["notify","notifyList","close"],setup(e,{expose:t,emit:n}){const r=n,a=l.ref(!1),i=l.ref("Title"),o=l.ref(null);function s(A,d){a.value=!0,i.value=A,o.value=d}function u(){window.open(o.value,"_blank"),c()}function c(){a.value=!1,i.value="Title",o.value=null,r("close")}return t({openModal:s,closeModal:c}),(A,d)=>(l.openBlock(),l.createBlock(l.unref(Gs),{open:a.value,title:i.value,size:"medium"},{footer:l.withCtx(()=>[l.createVNode(l.unref(Nd),{saveText:"Download",onSave:u,onClose:c})]),_:1},8,["open","title"]))}};function Nm(){return Nm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nm.apply(this,arguments)}var $ue=13,ece=9,tce=8,nce=89,$v=90,rce=77,E8=57,L8=219,T8=222,N8=192,ace=27,F8=100,ice=3e3,oce=typeof window<"u"&&navigator&&/Win/i.test(navigator.platform),d5=typeof window<"u"&&navigator&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform),sce=l.defineComponent({props:{lineNumbers:{type:Boolean,default:!1},autoStyleLineNumbers:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},modelValue:{type:String,default:""},highlight:{type:Function,required:!0},tabSize:{type:Number,default:2},insertSpaces:{type:Boolean,default:!0},ignoreTabKey:{type:Boolean,default:!1},placeholder:{type:String,default:""}},data:function(){return{capture:!0,history:{stack:[],offset:-1},lineNumbersHeight:"20px",codeData:""}},watch:{modelValue:{immediate:!0,handler:function(t){t?this.codeData=t:this.codeData=""}},content:{immediate:!0,handler:function(){var t=this;this.lineNumbers&&this.$nextTick(function(){t.setLineNumbersHeight()})}},lineNumbers:function(){var t=this;this.$nextTick(function(){t.styleLineNumbers(),t.setLineNumbersHeight()})}},computed:{isEmpty:function(){return this.codeData.length===0},content:function(){var t=this.highlight(this.codeData)+"<br />";return t},lineNumbersCount:function(){var t=this.codeData.split(/\r\n|\n/).length;return t}},mounted:function(){this._recordCurrentState(),this.styleLineNumbers()},methods:{setLineNumbersHeight:function(){this.lineNumbersHeight=getComputedStyle(this.$refs.pre).height},styleLineNumbers:function(){if(!(!this.lineNumbers||!this.autoStyleLineNumbers)){var t=this.$refs.pre,n=this.$el.querySelector(".prism-editor__line-numbers"),r=window.getComputedStyle(t);this.$nextTick(function(){var a="border-top-left-radius",i="border-bottom-left-radius";if(n){n.style[a]=r[a],n.style[i]=r[i],t.style[a]="0",t.style[i]="0";var o=["background-color","margin-top","padding-top","font-family","font-size","line-height"];o.forEach(function(s){n.style[s]=r[s]}),n.style["margin-bottom"]="-"+r["padding-top"]}})}},_recordCurrentState:function(){var t=this.$refs.textarea;if(t){var n=t.value,r=t.selectionStart,a=t.selectionEnd;this._recordChange({value:n,selectionStart:r,selectionEnd:a})}},_getLines:function(t,n){return t.substring(0,n).split(`
58
58
  `)},_applyEdits:function(t){var n=this.$refs.textarea,r=this.history.stack[this.history.offset];r&&n&&(this.history.stack[this.history.offset]=Nm({},r,{selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})),this._recordChange(t),this._updateInput(t)},_recordChange:function(t,n){n===void 0&&(n=!1);var r=this.history,a=r.stack,i=r.offset;if(a.length&&i>-1){this.history.stack=a.slice(0,i+1);var o=this.history.stack.length;if(o>F8){var s=o-F8;this.history.stack=a.slice(s,o),this.history.offset=Math.max(this.history.offset-s,0)}}var u=Date.now();if(n){var c=this.history.stack[this.history.offset];if(c&&u-c.timestamp<ice){var A,d,f=/[^a-z0-9]([a-z0-9]+)$/i,h=(A=this._getLines(c.value,c.selectionStart).pop())===null||A===void 0?void 0:A.match(f),m=(d=this._getLines(t.value,t.selectionStart).pop())===null||d===void 0?void 0:d.match(f);if(h&&m&&m[1].startsWith(h[1])){this.history.stack[this.history.offset]=Nm({},t,{timestamp:u});return}}}this.history.stack.push(Nm({},t,{timestamp:u})),this.history.offset++},_updateInput:function(t){var n=this.$refs.textarea;n&&(n.value=t.value,n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd,this.$emit("update:modelValue",t.value))},handleChange:function(t){var n=t.target,r=n.value,a=n.selectionStart,i=n.selectionEnd;this._recordChange({value:r,selectionStart:a,selectionEnd:i},!0),this.$emit("update:modelValue",r)},_undoEdit:function(){var t=this.history,n=t.stack,r=t.offset,a=n[r-1];a&&(this._updateInput(a),this.history.offset=Math.max(r-1,0))},_redoEdit:function(){var t=this.history,n=t.stack,r=t.offset,a=n[r+1];a&&(this._updateInput(a),this.history.offset=Math.min(r+1,n.length-1))},handleKeyDown:function(t){var n=this.tabSize,r=this.insertSpaces,a=this.ignoreTabKey;if(this.$emit("keydown",t),!t.defaultPrevented){t.keyCode===ace&&(t.target.blur(),this.$emit("blur",t));var i=t.target,o=i.value,s=i.selectionStart,u=i.selectionEnd,c=(r?" ":" ").repeat(n);if(t.keyCode===ece&&!a&&this.capture)if(t.preventDefault(),t.shiftKey){var A=this._getLines(o,s),d=A.length-1,f=this._getLines(o,u).length-1,h=o.split(`
59
59
  `).map(function(N,O){return O>=d&&O<=f&&N.startsWith(c)?N.substring(c.length):N}).join(`
60
60
  `);if(o!==h){var m=A[d];this._applyEdits({value:h,selectionStart:m.startsWith(c)?s-c.length:s,selectionEnd:u-(o.length-h.length)})}}else if(s!==u){var p=this._getLines(o,s),v=p.length-1,y=this._getLines(o,u).length-1,g=p[v];this._applyEdits({value:o.split(`
@@ -146,7 +146,7 @@ ${p}`)).style("margin-left",c?`${+c}px`:null).style("width",f===void 0?null:`${+
146
146
  :where(.${u} tspan) {
147
147
  white-space: pre;
148
148
  }`)).call(zC,n);for(const ee of c){const{channels:te,values:U,facets:X}=p.get(ee);if(m===void 0||ee.facet==="super"){let ne=null;if(X&&(ne=X[0],ne=ee.filter(ne,te,U),ne.length===0))continue;const re=ee.render(ne,g,U,M,x);if(re==null)continue;D.appendChild(re)}else{let ne;for(const re of m){if(!(((J=ee.facetAnchor)==null?void 0:J.call(ee,m,N,re))??!re.empty))continue;let he=null;if(X){const ve=d.has(ee);if(he=X[ve?re.i:0],he=ee.filter(he,te,U),he.length===0)continue;!ve&&he===X[0]&&(he=ECe(he)),he.fx=re.x,he.fy=re.y,he.fi=re.i}const me=ee.render(he,g,U,B,x);if(me!=null){(ne??(ne=Qt(D).append("g"))).append(()=>me).datum(re);for(const ve of["aria-label","aria-description","aria-hidden","transform"])me.hasAttribute(ve)&&(ne.attr(ve,me.getAttribute(ve)),me.removeAttribute(ve))}}ne==null||ne.selectChildren().each(O)}}const z=ake(v,x,e),{figure:W=r!=null||a!=null||i!=null||z.length>0}=e;W&&(Y=E.createElement("figure"),Y.className=`${u}-figure`,Y.style.maxWidth="initial",r!=null&&Y.append(fH(E,r,"h2")),a!=null&&Y.append(fH(E,a,"h3")),Y.append(...z,D),i!=null&&Y.append(vke(E,i)),"value"in D&&(Y.value=D.value,delete D.value)),Y.scale=lSe(g.scales),Y.legend=tke(v,x,e);const q=U4e();return q>0&&Qt(D).append("text").attr("x",L).attr("y",20).attr("dy","-1em").attr("text-anchor","end").attr("font-family","initial").text("⚠️").append("title").text(`${q.toLocaleString("en-US")} warning${q===1?"":"s"}. Please check the console.`),Y}function fH(e,t,n){if(t.ownerDocument)return t;const r=e.createElement(n);return r.append(t),r}function vke(e,t){const n=e.createElement("figcaption");return n.append(t),n}function hH(e){return e.flat(1/0).filter(t=>t!=null).map(yke)}function yke(e){return typeof e.render=="function"?e:new _ke(e)}class _ke extends sl{constructor(t){if(typeof t!="function")throw new TypeError("invalid mark; missing render function");super(),this.render=t}render(){}}function u4(e,t){for(const n in e)pH(e[n],t);return e}function pH(e,t){const{scale:n,transform:r=!0}=e;if(n==null||!r)return;const{type:a,percent:i,interval:o,transform:s=i?u=>u==null?NaN:u*100:nP(o,a)}=t[n]??{};s!=null&&(e.value=La(e.value,s),e.transform=!1)}function bke(e){for(const t in e)vP(t,e[t])}function r0(e,t,n,r=SCe){var a,i;for(const{channels:o}of t.values())for(const s in o){const u=o[s],{scale:c}=u;if(c!=null&&r(c))if(c==="projection"){if(!SSe(n)){const A=((a=n.x)==null?void 0:a.domain)===void 0,d=((i=n.y)==null?void 0:i.domain)===void 0;if(A||d){const[f,h]=MSe(u);A&&c4(e,"x",f),d&&c4(e,"y",h)}}}else c4(e,c,u)}return e}function c4(e,t,n){const r=e.get(t);r!==void 0?r.push(n):e.set(t,[n])}function wke(e,t){if(e==null)return;const{x:n,y:r}=e;if(n==null&&r==null)return;const a=Wh(e.data);if(a==null)throw new Error("missing facet data");const i={};n!=null&&(i.fx=Jg(a,{value:n,scale:"fx"})),r!=null&&(i.fy=Jg(a,{value:r,scale:"fy"})),u4(i,t);const o=NC(a,i);return{channels:i,groups:o,data:e.data}}function mH(e,t,n){if(e.facet===null||e.facet==="super")return;const{fx:r,fy:a}=e;if(r!=null||a!=null){const u=Wh(e.data??r??a);if(u===void 0)throw new Error(`missing facet data in ${e.ariaLabel}`);if(u===null)return;const c={};return r!=null&&(c.fx=Jg(u,{value:r,scale:"fx"})),a!=null&&(c.fy=Jg(u,{value:a,scale:"fy"})),u4(c,n),{channels:c,groups:NC(u,c)}}if(t===void 0)return;const{channels:i,groups:o,data:s}=t;if(e.facet!=="auto"||e.data===s)return{channels:i,groups:o};s.length>0&&(o.size>1||o.size===1&&i.fx&&i.fy&&[...o][0][1].size>1)&&sC(Wh(e.data))===sC(s)&&wA(`Warning: the ${e.ariaLabel} mark appears to use faceted data, but isn’t faceted. The mark data has the same length as the facet data and the mark facet option is "auto", but the mark data and facet data are distinct. If this mark should be faceted, set the mark facet option to true; otherwise, suppress this warning by setting the mark facet option to false.`)}function Bke(e,t={}){return ep({...t,x:null,y:null},(n,r,a,i,o,s)=>s.getMarkState(e))}function xke(e){const t=[];for(const n of e){let r=n.tip;if(r){r===!0?r={}:typeof r=="string"&&(r={pointer:r});let{pointer:a,preferredAnchor:i}=r;a=/^x$/i.test(a)?o9:/^y$/i.test(a)?s9:r3e,r=a(Bke(n,r)),r.title=null,i===void 0&&(r.preferredAnchor=a===s9?"left":"bottom");const o=sH(n.data,r);o.facet=n.facet,o.facetAnchor=n.facetAnchor,t.push(o)}}return t}function Cke(e,t,n){let{projection:r,x:a={},y:i={},fx:o={},fy:s={},axis:u,grid:c,facet:A={},facet:{axis:d=u,grid:f}=A,x:{axis:h=u,grid:m=h===null?null:c}=a,y:{axis:p=u,grid:v=p===null?null:c}=i,fx:{axis:y=d,grid:g=y===null?null:f}=o,fy:{axis:_=d,grid:b=_===null?null:f}=s}=n;(r||!oC(a)&&!gH("x",e))&&(h=m=null),(r||!oC(i)&&!gH("y",e))&&(p=v=null),t.has("fx")||(y=g=null),t.has("fy")||(_=b=null),h===void 0&&(h=!E_(e,"x")),p===void 0&&(p=!E_(e,"y")),y===void 0&&(y=!E_(e,"fx")),_===void 0&&(_=!E_(e,"fy")),h===!0&&(h="bottom"),p===!0&&(p="left"),y===!0&&(y=h==="top"||h===null?"bottom":"top"),_===!0&&(_=p==="right"||p===null?"left":"right");const B=[];return M_(B,b,z3e,s),k_(B,_,P3e,"right","left",A,s),M_(B,g,K3e,o),k_(B,y,H3e,"top","bottom",A,o),M_(B,v,V3e,i),k_(B,p,j9,"left","right",n,i),M_(B,m,q3e,a),k_(B,h,V9,"bottom","top",n,a),B}function k_(e,t,n,r,a,i,o){if(!t)return;const s=Ske(t);o=kke(s?r:t,i,o);const{line:u}=o;(n===j9||n===V9)&&u&&!Kg(u)&&e.push(oH(Mke(o))),e.push(n(o)),s&&e.push(n({...o,anchor:a,label:null}))}function M_(e,t,n,r){!t||Kg(t)||e.push(n(Eke(t,r)))}function Ske(e){return/^\s*both\s*$/i.test(e)}function kke(e,t,{line:n=t.line,ticks:r,tickSize:a,tickSpacing:i,tickPadding:o,tickFormat:s,tickRotate:u,fontVariant:c,ariaLabel:A,ariaDescription:d,label:f=t.label,labelAnchor:h,labelArrow:m=t.labelArrow,labelOffset:p}){return{anchor:e,line:n,ticks:r,tickSize:a,tickSpacing:i,tickPadding:o,tickFormat:s,tickRotate:u,fontVariant:c,ariaLabel:A,ariaDescription:d,label:f,labelAnchor:h,labelArrow:m,labelOffset:p}}function Mke(e){const{anchor:t,line:n}=e;return{anchor:t,facetAnchor:t+"-empty",stroke:n===!0?void 0:n}}function Eke(e,{stroke:t=d_(e)?e:void 0,ticks:n=Lke(e)?e:void 0,tickSpacing:r,ariaLabel:a,ariaDescription:i}){return{stroke:t,ticks:n,tickSpacing:r,ariaLabel:a,ariaDescription:i}}function Lke(e){switch(typeof e){case"number":return!0;case"string":return!d_(e)}return bA(e)||typeof(e==null?void 0:e.range)=="function"}function E_(e,t){const n=`${t}-axis `;return e.some(r=>{var a;return(a=r.ariaLabel)==null?void 0:a.startsWith(n)})}function gH(e,t){for(const n of t)for(const r in n.channels){const{scale:a}=n.channels[r];if(a===e||a==="projection")return!0}return!1}function Tke(e,t){for(const n in e){const r=e[n],a=t[n];r.label===void 0&&a&&(r.label=a.label)}return e}function Nke({fx:e,fy:t},n){const{marginTop:r,marginRight:a,marginBottom:i,marginLeft:o,width:s,height:u}=LC(n),c=e&&vH(e),A=t&&vH(t);return{marginTop:t?A[0]:r,marginRight:e?s-c[1]:a,marginBottom:t?u-A[1]:i,marginLeft:e?c[0]:o,inset:{marginTop:n.marginTop,marginRight:n.marginRight,marginBottom:n.marginBottom,marginLeft:n.marginLeft},width:s,height:u}}function vH(e){const t=e.domain();if(t.length===0)return[0,e.bandwidth()];let n=e(t[0]),r=e(t[t.length-1]);return r<n&&([n,r]=[r,n]),[n,r+e.bandwidth()]}const Fke=new Map([["basis",XBe],["basis-closed",JBe],["basis-open",ZBe],["bundle",$Be],["bump-x",JD],["bump-y",DBe],["cardinal",exe],["cardinal-closed",txe],["cardinal-open",nxe],["catmull-rom",rxe],["catmull-rom-closed",axe],["catmull-rom-open",ixe],["linear",Ug],["linear-closed",oxe],["monotone-x",sxe],["monotone-y",lxe],["natural",uxe],["step",cxe],["step-after",dxe],["step-before",Axe]]);function Oke(e=Ug,t){if(typeof e=="function")return e;const n=Fke.get(`${e}`.toLowerCase());if(!n)throw new Error(`unknown curve: ${e}`);if(t!==void 0){if("beta"in n)return n.beta(t);if("tension"in n)return n.tension(t);if("alpha"in n)return n.alpha(t)}return n}function Ike(e=L_,t){return typeof e!="function"&&`${e}`.toLowerCase()==="auto"?L_:Oke(e,t)}function L_(e){return Ug(e)}function Dke(e={y:"count"},t={}){[e,t]=Yke(e,t);const{x:n,y:r}=t;return Hke(Qke(n,t,Yo),null,null,r,e,ZC(t))}function Uke(e,t,n={}){if((n==null?void 0:n.interval)==null)return n;const{reduce:r=bC}=n,a={filter:null};return n[t]!=null&&(a[t]=r),n[`${t}1`]!=null&&(a[`${t}1`]=r),n[`${t}2`]!=null&&(a[`${t}2`]=r),e(a,n)}function Pke(e={}){return Uke(Dke,"y",qC(e,"x"))}function Hke(e,t,n,r,{data:a=mP,filter:i=p_,sort:o,reverse:s,...u}={},c={}){e=yH(e),t=yH(t),u=jke(u,c),a=wH(a,Yo),o=o==null?void 0:_H("sort",o,c),i=i==null?void 0:bH("filter",i,c),r!=null&&yC(u,"y","y1","y2")&&(r=null);const[A,d]=_A(e),[f,h]=_A(e),[m,p]=_A(t),[v,y]=_A(t),[g,_]=r!=null?[r,"y"]:[],[b,B]=_A(g),{x:M,y:x,z:E,fill:D,stroke:Y,x1:k,x2:N,y1:O,y2:L,domain:H,cumulative:z,thresholds:W,interval:q,...J}=c,[ee,te]=_A(E),[U]=sc(D),[X]=sc(Y),[ne,re]=_A(U),[he,me]=_A(X);return{..."z"in c&&{z:ee||E},..."fill"in c&&{fill:ne||D},..."stroke"in c&&{stroke:he||Y},...pC(J,(ve,le,ke)=>{const Le=TCe(_o(ve,g),ke==null?void 0:ke[_]),xe=_o(ve,E),Pe=_o(ve,U),R=_o(ve,X),ye=a4e(u,{z:xe,fill:Pe,stroke:R}),G=[],$=[],Z=Le&&B([]),ie=xe&&te([]),_e=Pe&&re([]),Me=R&&me([]),be=e&&d([]),Ye=e&&h([]),Ee=t&&p([]),Fe=t&&y([]),Ge=qke(e,t,ve);let ut=0;for(const at of u)at.initialize(ve);o&&o.initialize(ve),i&&i.initialize(ve);for(const at of le){const vt=[];for(const _t of u)_t.scope("facet",at);o&&o.scope("facet",at),i&&i.scope("facet",at);for(const[_t,ct]of hP(at,ye))for(const[on,Bt]of hP(ct,Le))for(const[en,It]of Ge(Bt))if(ye&&(It.z=_t),!(i&&!i.reduce(en,It))){vt.push(ut++),$.push(a.reduceIndex(en,ve,It)),Le&&Z.push(on),xe&&ie.push(ye===xe?_t:xe[(en.length>0?en:Bt)[0]]),Pe&&_e.push(ye===Pe?_t:Pe[(en.length>0?en:Bt)[0]]),R&&Me.push(ye===R?_t:R[(en.length>0?en:Bt)[0]]),be&&(be.push(It.x1),Ye.push(It.x2)),Ee&&(Ee.push(It.y1),Fe.push(It.y2));for(const tn of u)tn.reduce(en,It);o&&o.reduce(en,It)}G.push(vt)}return i4e(G,o,s),{data:$,facets:G}}),...!yC(u,"x")&&(A?{x1:A,x2:f,x:tP(A,f)}:{x:M,x1:k,x2:N}),...!yC(u,"y")&&(m?{y1:m,y2:v,y:tP(m,v)}:{y:x,y1:O,y2:L}),...b&&{[_]:b},...Object.fromEntries(u.map(({name:ve,output:le})=>[ve,le]))}}function Yke({cumulative:e,domain:t,thresholds:n,interval:r,...a},i){return[a,{cumulative:e,domain:t,thresholds:n,interval:r,...i}]}function Qke(e,{cumulative:t,domain:n,thresholds:r,interval:a},i){return e={...qg(e)},e.domain===void 0&&(e.domain=n),e.cumulative===void 0&&(e.cumulative=t),e.thresholds===void 0&&(e.thresholds=r),e.interval===void 0&&(e.interval=a),e.value===void 0&&(e.value=i),e.thresholds=Rke(e.thresholds,e.interval),e}function yH(e){if(e==null)return;const{value:t,cumulative:n,domain:r=_a,thresholds:a}=e,i=o=>{let s=_o(o,t),u;if(bo(s)||zke(a)){s=La(s,XU,Float64Array);let[A,d]=typeof r=="function"?r(s):r,f=typeof a=="function"&&!$h(a)?a(s,A,d):a;typeof f=="number"&&(f=CI(A,d,f)),$h(f)&&(r===_a&&(A=f.floor(A),d=f.offset(f.floor(d))),f=f.range(A,f.offset(d))),u=f}else{s=Gh(s);let[A,d]=typeof r=="function"?r(s):r,f=typeof a=="function"&&!$h(a)?a(s,A,d):a;if(typeof f=="number")if(r===_a){let h=j1(A,d,f);if(isFinite(h))if(h>0){let m=Math.round(A/h),p=Math.round(d/h);m*h<=A||--m,p*h>d||++p;let v=p-m+1;f=new Float64Array(v);for(let y=0;y<v;++y)f[y]=(m+y)*h}else if(h<0){h=-h;let m=Math.round(A*h),p=Math.round(d*h);m/h<=A||--m,p/h>d||++p;let v=p-m+1;f=new Float64Array(v);for(let y=0;y<v;++y)f[y]=(m+y)/h}else f=[A];else f=[A]}else f=Jm(A,d,f);else $h(f)&&(r===_a&&(A=f.floor(A),d=f.offset(f.floor(d))),f=f.range(A,f.offset(d)));u=f}const c=[];if(u.length===1)c.push([u[0],u[0]]);else for(let A=1;A<u.length;++A)c.push([u[A-1],u[A]]);return c.bin=(n<0?Gke:n>0?Kke:A4)(c,u,s),c};return i.label=lf(t),i}function Rke(e,t,n=BH){if(e===void 0)return t===void 0?n:Zh(t);if(typeof e=="string"){switch(e.toLowerCase()){case"freedman-diaconis":return Y1e;case"scott":return DF;case"sturges":return D1e;case"auto":return BH}return $x(e)}return e}function jke(e,t){return t4e(e,t,_H)}function _H(e,t,n){return dP(e,t,n,bH)}function bH(e,t,n){return fP(e,t,n,wH)}function wH(e,t){return _C(e,t,Vke)}function Vke(e){switch(`${e}`.toLowerCase()){case"x":return Wke;case"x1":return Jke;case"x2":return Zke;case"y":return Xke;case"y1":return $ke;case"y2":return eMe;case"z":return d4e}throw new Error(`invalid bin reduce: ${e}`)}function BH(e,t,n){return Math.min(200,DF(e,t,n))}function zke(e){return OCe(e)||bA(e)&&bo(e)}function qke(e,t,n){const r=e==null?void 0:e(n),a=t==null?void 0:t(n);return r&&a?function*(i){const o=r.bin(i);for(const[s,[u,c]]of r.entries()){const A=a.bin(o[s]);for(const[d,[f,h]]of a.entries())yield[A[d],{data:n,x1:u,y1:f,x2:c,y2:h}]}}:r?function*(i){const o=r.bin(i);for(const[s,[u,c]]of r.entries())yield[o[s],{data:n,x1:u,x2:c}]}:function*(i){const o=a.bin(i);for(const[s,[u,c]]of a.entries())yield[o[s],{data:n,y1:u,y2:c}]}}function A4(e,t,n){return t=Gh(t),r=>{var i;const a=e.map(()=>[]);for(const o of r)(i=a[U1(t,n[o])-1])==null||i.push(o);return a}}function Kke(e,t,n){const r=A4(e,t,n);return a=>{const i=r(a);for(let o=1,s=i.length;o<s;++o){const u=i[o-1],c=i[o];for(const A of u)c.push(A)}return i}}function Gke(e,t,n){const r=A4(e,t,n);return a=>{const i=r(a);for(let o=i.length-2;o>=0;--o){const s=i[o+1],u=i[o];for(const c of s)u.push(c)}return i}}function xH(e,t){const n=(+e+ +t)/2;return e instanceof Date?new Date(n):n}const Wke={reduceIndex(e,t,{x1:n,x2:r}){return xH(n,r)}},Xke={reduceIndex(e,t,{y1:n,y2:r}){return xH(n,r)}},Jke={reduceIndex(e,t,{x1:n}){return n}},Zke={reduceIndex(e,t,{x2:n}){return n}},$ke={reduceIndex(e,t,{y1:n}){return n}},eMe={reduceIndex(e,t,{y2:n}){return n}},tMe={ariaLabel:"dot",fill:"none",stroke:"currentColor",strokeWidth:1.5};function nMe(e){return e.sort===void 0&&e.reverse===void 0?ZCe({channel:"-r"},e):e}class rMe extends sl{constructor(t,n={}){const{x:r,y:a,r:i,rotate:o,symbol:s=Hg,frameAnchor:u}=n,[c,A]=Ji(o,0),[d,f]=XCe(s),[h,m]=Ji(i,d==null?3:4.5);super(t,{x:{value:r,scale:"x",optional:!0},y:{value:a,scale:"y",optional:!0},r:{value:h,scale:"r",filter:s_,optional:!0},rotate:{value:c,optional:!0},symbol:{value:d,scale:"auto",optional:!0}},nMe(n),tMe),this.r=m,this.rotate=A,this.symbol=f,this.frameAnchor=f_(u);const{channels:p}=this,{symbol:v}=p;if(v){const{fill:y,stroke:g}=p;v.hint={fill:y?y.value===v.value?"color":"currentColor":this.fill??"currentColor",stroke:g?g.value===v.value?"color":"currentColor":this.stroke??"none"}}}render(t,n,r,a,i){const{x:o,y:s}=n,{x:u,y:c,r:A,rotate:d,symbol:f}=r,{r:h,rotate:m,symbol:p}=this,[v,y]=n0(this,a),g=p===Hg,_=A?void 0:h*h*Math.PI;return Wx(h)&&(t=[]),Ii("svg:g",i).call(xA,this,a,i).call(SA,this,{x:u&&o,y:c&&s}).call(b=>b.selectAll().data(t).enter().append(g?"circle":"path").call(CA,this).call(g?B=>{B.attr("cx",u?M=>u[M]:v).attr("cy",c?M=>c[M]:y).attr("r",A?M=>A[M]:h)}:B=>{B.attr("transform",$C`translate(${u?M=>u[M]:v},${c?M=>c[M]:y})${d?M=>` rotate(${d[M]})`:m?` rotate(${m})`:""}`).attr("d",A&&f?M=>{const x=Wd();return f[M].draw(x,A[M]*A[M]*Math.PI),x}:A?M=>{const x=Wd();return p.draw(x,A[M]*A[M]*Math.PI),x}:f?M=>{const x=Wd();return f[M].draw(x,_),x}:(()=>{const M=Wd();return p.draw(M,_),M})())}).call(rp,this,r)).node()}}function aMe(e,{y:t=Yo,...n}={}){return new rMe(e,w9({...n,y:t}))}const iMe={ariaLabel:"line",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:1};class oMe extends sl{constructor(t,n={}){const{x:r,y:a,z:i,curve:o,tension:s}=n;super(t,{x:{value:r,scale:"x"},y:{value:a,scale:"y"},z:{value:MCe(n),optional:!0}},n,iMe),this.z=i,this.curve=Ike(o,s),GC(this,n)}filter(t){return t}project(t,n,r){this.curve!==L_&&super.project(t,n,r)}render(t,n,r,a,i){const{x:o,y:s}=r,{curve:u}=this;return Ii("svg:g",i).call(xA,this,a,i).call(SA,this,n).call(c=>c.selectAll().data(zSe(t,[o,s],this,r)).enter().append("path").call(CA,this).call(RSe,this,r).call(l3e,this,r,i).attr("d",u===L_&&i.projection?sMe(i.path(),o,s):Pg().curve(u).defined(A=>A>=0).x(A=>o[A]).y(A=>s[A]))).node()}}function sMe(e,t,n){return t=Gh(t),n=Gh(n),r=>{let a=[];const i=[a];for(const o of r)o===-1?(a=[],i.push(a)):a.push([t[o],n[o]]);return e({type:"MultiLineString",coordinates:i})}}function lMe(e,{x:t=KU,y:n=Yo,...r}={}){return new oMe(e,Pke({...r,x:t,y:n}))}sl.prototype.plot=function({marks:e=[],...t}={}){return dH({...t,marks:[...e,this]})};const uMe={class:"col items-center"},cMe={class:"text-center"},AMe={__name:"TimelineChart",props:{title:String,buckets:Array,total:Number,from:Number,to:Number,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(null);l.watch([()=>t.buckets],()=>{r()});function r(){if(!t.buckets)return;const a=dH({marginLeft:80,marginRight:80,width:1200,height:320,marginBottom:50,inset:20,style:{fontSize:"16px",backgroundColor:t.theme==="light"?"white":"#1a202c"},...t.buckets.length>0?{x:{type:"time",label:"Time",tickSpacing:100},y:{label:"Count",domain:[0,Math.max(1,Gi(t.buckets,i=>i.doc_count)??0)]},grid:!0,marks:[lMe(t.buckets,{x:"key",y:"doc_count",strokeWidth:3,curve:"catmull-rom",stroke:"#71b6e0"}),aMe(t.buckets,{x:"key",y:"doc_count",stroke:"#71b6e0",strokeWidth:3}),sH(t.buckets,o9({x:"key",y:"doc_count",fill:t.theme==="light"?"white":"black",title:i=>`Time: ${Yve(i.key)}
149
- Count: ${i.doc_count}`}))]}:{marginTop:30,marks:[oH(),t4(["No data available!"],{frameAnchor:"middle"})]}});n.value.innerHTML="",n.value.appendChild(a)}return(a,i)=>(l.openBlock(),l.createElementBlock("div",uMe,[l.createElementVNode("div",cMe,[l.createElementVNode("span",null,l.toDisplayString(e.title)+" Timeline ("+l.toDisplayString(e.total)+" Events)",1)]),l.createElementVNode("div",{ref_key:"myplot",ref:n,class:"px-4 pb-4"},null,512)]))}},dMe={props:{id:{type:String,required:!0},width:{type:Number,default:350},height:{type:Number,default:200}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Qt("#"+this.id).append("svg").attr("width",this.width>700?this.width+150:this.width+75).attr("height",this.height)},createChart(){const e=this.width,t=this.height,n=20,r=15,a=1,i=.3,o=cA([0,1],[i,e-r]),s=fs([0,1],[t-a,n]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-a})`).call(mo(o)),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${i},0)`).call(Yd(s)),this.svg.append("text").attr("x",e/2).attr("y",t/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available")}}},fMe=["id"];function hMe(e,t,n,r,a,i){return l.openBlock(),l.createElementBlock("div",{id:n.id},null,8,fMe)}const CH=sr(dMe,[["render",hMe]]),pMe={path:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"},mMe={path:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"},gMe={path:"M13.4685 21.7782C13.6185 21.9282 13.8085 21.9982 13.9985 21.9982V21.9882C14.1885 21.9882 14.3785 21.9182 14.5285 21.7682C14.8185 21.4782 14.8185 20.9982 14.5285 20.7082L13.2385 19.4182C13.1385 19.3282 13.1385 19.1682 13.2385 19.0682L20.1985 12.1082C20.8685 11.4382 21.2485 10.5382 21.2485 9.57821C21.2485 8.61821 20.8785 7.71821 20.1985 7.04821C19.3885 6.23821 18.2785 5.89822 17.2185 6.02822C17.2485 5.87822 17.2485 5.72821 17.2485 5.57821C17.2485 4.61821 16.8785 3.71821 16.1985 3.04821C14.8085 1.65821 12.5385 1.64821 11.1385 3.04821L2.96848 11.2182C2.67848 11.5082 2.67848 11.9882 2.96848 12.2782C3.25848 12.5682 3.73854 12.5682 4.02854 12.2782L12.1985 4.1082C13.0085 3.2982 14.3285 3.2982 15.1385 4.1082C15.5285 4.4982 15.7485 5.02821 15.7485 5.57821C15.7485 6.12821 15.5285 6.65821 15.1385 7.04821L8.96848 13.2182C8.67848 13.5082 8.67848 13.9882 8.96848 14.2782C9.25848 14.5682 9.73854 14.5682 10.0285 14.2782L16.1985 8.1082C17.0085 7.2982 18.3285 7.2982 19.1385 8.1082C19.5285 8.4982 19.7485 9.01821 19.7485 9.57821C19.7485 10.1382 19.5385 10.6582 19.1385 11.0482L12.1786 18.0182C11.4986 18.6982 11.4986 19.8082 12.1786 20.4882L13.4685 21.7782ZM6.79907 16.4475C7.4978 17.1462 8.40568 17.4962 9.32397 17.4975C9.32231 17.4975 9.32064 17.4975 9.31897 17.4975H9.32898C9.32731 17.4975 9.32564 17.4975 9.32397 17.4975C10.2423 17.4962 11.1603 17.1462 11.859 16.4475L18.0291 10.2775C18.3191 9.9875 18.3191 9.5075 18.0291 9.2175C17.7391 8.9275 17.259 8.9275 16.969 9.2175L10.7991 15.3875C9.98907 16.1975 8.66901 16.1975 7.85901 15.3875C7.46901 14.9975 7.24902 14.4775 7.24902 13.9175C7.24902 13.3575 7.45901 12.8375 7.85901 12.4475L14.0291 6.2775C14.3191 5.9875 14.3191 5.5075 14.0291 5.2175C13.7391 4.9275 13.259 4.9275 12.969 5.2175L6.79907 11.3875C6.12907 12.0575 5.74902 12.9575 5.74902 13.9175C5.74902 14.8775 6.11907 15.7775 6.79907 16.4475Z"},uu=225,ll=43,cf=10,Af=60,SH=.8,vMe=1,kH=10,df=10,ff=10,d4=10,f4=6,MH=14,EH=24,yMe={components:{Slideout:j8,FormCol:Ha,FormSection:cm,GreyInput:Ki,CodeEditor:p5,LinkIcon:Qee},props:{data:{type:Object,required:!0},fontSize:{type:String,default:"12px"},theme:{type:String,default:"light"},id:{type:String,default:"id"}},data(){return{svg:null,selected:null,slideout:!1,slideoutTitle:"Hello World",slideoutData:{},depth:0,maxLeaf:0}},computed:{chartData(){return this.data},height(){return this.maxLeaf>0?df+this.maxLeaf*(ll+cf)+ll+f4:100},width(){return this.depth>0?ff+this.depth*(uu+Af)+uu+d4:100}},watch:{id:{handler(e){this.getMaxDepthAndY(this.chartData),this.drawChart()},deep:!0}},mounted(){this.initializeChart(),this.getMaxDepthAndY(this.chartData),this.drawChart()},methods:{initializeChart(){this.svg||(this.svg=Qt(`#decision-chart-${this.id}`).append("svg").attr("width",this.width).attr("height",this.height))},drawChart(){const e=Ea[this.theme].text,t=Ea[this.theme].canvas,n=this;this.svg.attr("width",this.width),this.svg.attr("height",this.height),this.svg.selectAll("g.decisionChart").data(this.chartData,d=>d.id).join(d=>r(d),d=>void 0,d=>i(d));function r(d){const f=d.append("g").attr("class","decisionChart");o(f,0)}function a(d){}function i(d){d.call(f=>f.transition().duration(200).style("opacity",0).remove())}function o(d,f){d.append("rect").attr("class","dataBox").attr("id",h=>h.id).attr("width",uu).attr("height",ll).attr("x",h=>ff+f*(uu+Af)).attr("y",(h,m)=>df+h.y*(ll+cf)).attr("fill",t).attr("stroke",h=>h.type==="agent"?Ea[n.theme].info:h.type==="function"?Ea[n.theme].active:h.type==="response"?Ea[n.theme].active2:Ea[n.theme].inactive).attr("stroke-width",1.5).attr("rx",kH).attr("ry",kH).attr("opacity",0).on("mouseover",(h,m)=>{const p=h.target;Qt(p).style("cursor","pointer").attr("stroke-width",2).attr("opacity",vMe)}).on("mouseout",(h,m)=>{Qt(h.target).attr("stroke-width",1.5).attr("opacity",SH)}).on("click",(h,m)=>{n.slideoutTitle=m.name,n.slideoutData=m,n.slideout=!0}).transition().duration(500).attr("opacity",SH),d.append("path").attr("fill",h=>h.type==="response"?Ea[n.theme].active2:e).attr("transform",(h,m)=>"translate("+(ff+7+f*(uu+Af))+","+(df+9+h.y*(ll+cf))+")").attr("d",(h,m)=>h.type==="agent"?pMe.path:h.type==="function"?gMe.path:h.type==="response"?mMe.path:"").attr("opacity",0).transition().duration(700).attr("opacity",1),d.append("text").attr("x",h=>ff+EH+d4+f*(uu+Af)).attr("y",(h,m)=>df+f4+h.y*(ll+cf)).attr("text-anchor","start").attr("dominant-baseline","hanging").attr("fill",e).text(h=>Jc(h.name,1150)).attr("font-size",MH).attr("font-family","sans-serif").attr("font-weight","400").attr("pointer-events","none").attr("user-select","none").attr("opacity",0).transition().duration(700).attr("opacity",1),d.append("text").attr("x",h=>ff+EH+d4+f*(uu+Af)).attr("y",(h,m)=>df+f4+17+h.y*(ll+cf)).attr("text-anchor","start").attr("dominant-baseline","hanging").attr("fill",e).text(h=>{const m=h.type.charAt(0).toUpperCase()+h.type.slice(1),p=LU(n.getTimeTaken(h.started_at,h.ended_at));return`${m} - [took: ${p}]`}).attr("font-size",MH).attr("font-family","sans-serif").attr("font-weight","400").attr("pointer-events","none").attr("user-select","none").attr("opacity",0).transition().duration(700).attr("opacity",1),d.append("circle").attr("id",h=>h.id+"_circ_back").attr("cx",f*(uu+Af)+uu+ff).attr("cy",(h,m)=>df+h.y*(ll+cf)+ll/2).attr("r",h=>h.children.length?4:0).attr("fill",t).attr("stroke",h=>h.type==="agent"?Ea[n.theme].info:h.type==="function"?Ea[n.theme].active:Ea[n.theme].inactive).attr("stroke-width",2).attr("opacity",0).transition().duration(700).attr("opacity",1),f&&(d.append("circle").attr("id",h=>h.id+"_circ_front").attr("cx",f*(uu+Af)+ff).attr("cy",(h,m)=>df+h.y*(ll+cf)+ll/2).attr("r",4).attr("fill",t).attr("stroke",h=>h.type==="agent"?Ea[n.theme].info:h.type==="function"?Ea[n.theme].active:h.type==="response"?Ea[n.theme].active2:Ea[n.theme].inactive).attr("stroke-width",2).attr("opacity",0).transition().duration(700).attr("opacity",1),A(d,d.data(),n.svg.selectAll("circle"))),d.each(function(h){Qt(this).selectAll(`g.decisionChartChild${f+1}`).data(h.children,p=>p.id).join(p=>s(p,f+1),p=>void 0,p=>c(p))})}function s(d,f){const h=d.append("g").attr("class",`decisionChartChild${f}`);o(h,f)}function u(d,f){}function c(d){d.call(f=>f.transition().duration(2e3).style("opacity",0).remove())}function A(d,f,h){const m=f.map(p=>{const v=h.nodes().find(g=>g.id===`${p.parent_id}_circ_back`),y=h.nodes().find(g=>g.id===`${p.id}_circ_front`);return YBe()({source:[v.cx.baseVal.value,v.cy.baseVal.value],target:[y.cx.baseVal.value,y.cy.baseVal.value]})});d.append("path").attr("id",p=>p.parent_id+"-"+p.id).transition().duration(500).attr("d",(p,v)=>m[v]).attr("fill","none").attr("stroke",(p,v)=>vxe("green",p.parent_id+p.id)).attr("stroke-width",2).attr("opacity",1)}},getMaxDepthAndY(e){let t=0,n=0;function r(a){a.depth>t&&(t=a.depth),a.y>n&&(n=a.y),a.children.forEach(r)}e.forEach(r),this.depth=t,this.maxLeaf=n},getTimeTaken(e,t){const n=mt(e);return mt(t).diff(n,"milliseconds")},closeSlideout(){setTimeout(()=>{this.slideoutData={}},700),this.slideout=!1},routeToResponse(e){window.open(`https://platform.openai.com/logs/${e}`,"_blank")}}},_Me={class:"pt-2 overflow-x-auto"},bMe=["id"],wMe={class:"px-4"},BMe={class:"row"},xMe={class:"px-4"};function CMe(e,t,n,r,a,i){const o=l.resolveComponent("GreyInput"),s=l.resolveComponent("FormCol"),u=l.resolveComponent("LinkIcon"),c=l.resolveComponent("FormSection"),A=l.resolveComponent("CodeEditor"),d=l.resolveComponent("Slideout");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",_Me,[l.createElementVNode("div",{id:`decision-chart-${n.id}`},null,8,bMe)]),l.createVNode(d,{open:a.slideout,title:a.slideoutTitle,onClose:i.closeSlideout,onHide:i.closeSlideout},{content:l.withCtx(()=>{var f,h,m,p;return[l.createVNode(c,{sectionName:"Details"},{default:l.withCtx(()=>[l.createElementVNode("div",wMe,[l.createVNode(s,{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.name},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Type"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.type},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Started At"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.started_at},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Ended At"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.ended_at},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Time Taken (ms)"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:`${i.getTimeTaken(a.slideoutData.started_at,a.slideoutData.ended_at)}`},null,8,["value"])]),_:1}),a.slideoutData.type==="response"?(l.openBlock(),l.createBlock(s,{key:0,fieldName:"Response ID"},{default:l.withCtx(()=>[l.createElementVNode("div",BMe,[l.createVNode(o,{readonly:"",value:a.slideoutData.span_data.response_id},null,8,["value"]),l.createVNode(u,{class:"icon-lg cursor-pointer icon-skyblue hover:opacity-75 m-1",onClick:t[0]||(t[0]=v=>i.routeToResponse(a.slideoutData.span_data.response_id))})])]),_:1})):l.createCommentVNode("",!0)])]),_:1}),(h=(f=a.slideoutData)==null?void 0:f.span_data)!=null&&h.input&&((p=(m=a.slideoutData)==null?void 0:m.span_data)!=null&&p.output)?(l.openBlock(),l.createBlock(c,{key:0,sectionName:"Results"},{default:l.withCtx(()=>[l.createElementVNode("div",xMe,[l.createVNode(s,{fieldName:"Input"},{default:l.withCtx(()=>[l.createVNode(A,{class:"p-3 !h-60",modelValue:a.slideoutData.span_data.input,"onUpdate:modelValue":t[1]||(t[1]=v=>a.slideoutData.span_data.input=v),fontSize:`${n.fontSize?n.fontSize:"12px"}`,isFPL:!1},null,8,["modelValue","fontSize"])]),_:1}),l.createVNode(s,{fieldName:"Output"},{default:l.withCtx(()=>[l.createVNode(A,{class:"p-3 !h-60",modelValue:a.slideoutData.span_data.output,"onUpdate:modelValue":t[2]||(t[2]=v=>a.slideoutData.span_data.output=v),fontSize:`${n.fontSize?n.fontSize:"12px"}`,isFPL:!1},null,8,["modelValue","fontSize"])]),_:1})])]),_:1})):l.createCommentVNode("",!0)]}),_:1},8,["open","title","onClose","onHide"])],64)}const SMe=sr(yMe,[["render",CMe]]),kMe={class:"w-full select-none std-table dark:dark-std-table"},MMe={class:"text-left bg-neutral-200 dark:dark-bg"},EMe={class:"std-table-body dark:dark-std-table-body"},LMe={__name:"ArgumentTable",props:{data:Object,readonly:[Boolean,Number]},setup(e){const t=e,n=l.ref(t.data),r=[{label:"String",value:"string"},{label:"Integer",value:"integer"},{label:"Float",value:"float"},{label:"Boolean",value:"boolean"}];return(a,i)=>(l.openBlock(),l.createElementBlock("table",kMe,[l.createElementVNode("thead",MMe,[l.createElementVNode("tr",null,[l.createVNode(l.unref(ea),{title:"Name"}),l.createVNode(l.unref(ea),{title:"Description"}),l.createVNode(l.unref(ea),{title:"Type"}),l.createVNode(l.unref(ea),{title:"Default Value"})])]),l.createElementVNode("tbody",EMe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(o,s)=>(l.openBlock(),l.createElementBlock("tr",{key:o.name},[l.createVNode(l.unref(Ya),{title:o.name},null,8,["title"]),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:o.description,"onUpdate:modelValue":u=>o.description=u,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{modelValue:o.type,"onUpdate:modelValue":u=>o.type=u,options:r,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:o.defaultValue,"onUpdate:modelValue":u=>o.defaultValue=u,modelModifiers:{trim:!0},readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024)]))),128))])]))}},TMe={class:"row relative"},NMe={__name:"ArgumentRunTable",props:{data:Object,attributes:{type:Array,default:()=>[]},errors:{type:Object,default:()=>({})}},setup(e){const t={string:"String",integer:"Integer",float:"Float",boolean:"Boolean"},n=e,r=l.ref(n.data),a=l.ref(-1),i=l.ref();l.watch(()=>n.data,u=>{r.value=u});function o(u){a.value=u,i.value.openModal()}function s(u){r.value[a.value].value=u.val,a.value=-1,i.value.close()}return(u,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(l.unref(Fm),{data:["padding"]},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[l.createVNode(l.unref(ea),{title:"Name"}),l.createVNode(l.unref(ea),{title:"Description"}),l.createVNode(l.unref(ea),{title:"Type"}),l.createVNode(l.unref(ea),{title:"Value"})])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(A,d)=>(l.openBlock(),l.createElementBlock("tr",{key:A.name},[l.createVNode(l.unref(Ya),{title:A.name},null,8,["title"]),l.createVNode(l.unref(Ya),{title:A.description},null,8,["title"]),l.createVNode(l.unref(Ya),{title:t[A.type]},null,8,["title"]),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createElementVNode("div",TMe,[l.createVNode(l.unref(Ki),{modelValue:A.value,"onUpdate:modelValue":f=>A.value=f,error:e.errors[A.name]},null,8,["modelValue","onUpdate:modelValue","error"]),e.attributes.length>0?(l.openBlock(),l.createBlock(l.unref(Wc),{key:0,tooltip:"Use Attribute","tooltip-direction":"left",onClick:f=>o(d)},{default:l.withCtx(()=>[l.createVNode(l.unref(jee),{class:"icon-md"})]),_:2},1032,["onClick"])):l.createCommentVNode("",!0)])]),_:2},1024)]))),128))]),_:1}),l.createVNode(l.unref(w8),{ref_key:"chooseValue",ref:i,values:e.attributes,title:"Choose Attribute",nameField:"Attribute",saveButtonText:"Set Attribute",onSave:s},null,8,["values"])],64))}},FMe={class:"px-4 py-2"},OMe={class:"px-4 py-2"},IMe={class:"px-4 py-2"},DMe={__name:"CloudFormationParameters",props:{data:Object},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.unref(Fm),{data:e.data},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[l.createVNode(l.unref(ea),{title:"Name",class:"px-4 py-2"}),l.createVNode(l.unref(ea),{title:"Description",class:"px-4 py-2"}),l.createVNode(l.unref(ea),{title:"Value",class:"px-4 py-2"})])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,r=>(l.openBlock(),l.createElementBlock("tr",{key:r.name},[l.createElementVNode("td",FMe,l.toDisplayString(r.name),1),l.createElementVNode("td",OMe,l.toDisplayString(r.description),1),l.createElementVNode("td",IMe,l.toDisplayString(r.value),1)]))),128))]),_:1},8,["data"]))}},UMe={class:"w-full hover:white-bg-hover dark:hover:dark-bg-hover p-2 flex items-center justify-between"},PMe={class:"flex ml-4"},HMe={__name:"Child",props:{parent:Object,level:Number,readonly:{type:[Boolean,Number],default:!1}},emits:["add"],setup(e,{emit:t}){const n=e,r=t,a=l.computed(()=>n.parent.children?n.parent.children.sort((o,s)=>o.type==="bool"&&s.type!=="bool"?1:o.type!=="bool"&&s.type==="bool"?-1:0):[]);function i(o,s,u={}){r("add",o,s,u)}return(o,s)=>{const u=l.resolveComponent("Child",!0);return l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,c=>(l.openBlock(),l.createElementBlock("ul",null,[l.createElementVNode("li",UMe,[l.createElementVNode("div",{style:l.normalizeStyle(`padding-left: ${e.level*8}px`)},l.toDisplayString(c.exclude?"NOT ":"")+" "+l.toDisplayString(c.type!=="bool"?`${c.type} `:"")+l.toDisplayString(c.label),5),l.createElementVNode("div",PMe,[n.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(n1),{key:0,add:c.type==="bool",edit:"",delete:"",onAdd:A=>i(!1,c),onEdit:A=>i(!0,e.parent,c),onDelete:A=>e.parent.children.splice(e.parent.children.indexOf(c),1)},null,8,["add","onAdd","onEdit","onDelete"]))])]),l.createElementVNode("li",null,[c.children&&c.children.length?(l.openBlock(),l.createBlock(u,{key:0,parent:c,level:e.level+2,readonly:n.readonly,onAdd:i},null,8,["parent","level","readonly"])):l.createCommentVNode("",!0)])]))),256)}}},YMe={class:"w-full px-2"},QMe={class:"w-full hover:white-bg-hover dark:hover:dark-bg-hover p-2 flex items-center justify-between"},RMe={class:"flex"},jMe={__name:"LVDBQuery",props:{query:Object,readonly:{type:[Boolean,Number],default:!1}},emits:["add","delete"],setup(e,{emit:t}){const n=e,r=t,a=l.ref(n.query);function i(o,s,u={}){r("add",o,s,u)}return(o,s)=>{var u;return l.openBlock(),l.createElementBlock("ul",YMe,[l.createElementVNode("li",QMe,[l.createElementVNode("div",null,l.toDisplayString(a.value.type),1),l.createElementVNode("div",RMe,[!((u=a.value.children)!=null&&u.length)&&!n.readonly?(l.openBlock(),l.createBlock(l.unref(n1),{key:0,add:"",onAdd:s[0]||(s[0]=c=>i(!1,a.value))})):l.createCommentVNode("",!0)])]),l.createVNode(HMe,{parent:a.value,readonly:e.readonly,level:2,onAdd:i},null,8,["parent","readonly"])])}}},VMe={class:"grid grid-cols-3 md:grid-cols-4"},zMe={__name:"FacetPage",props:{searchBar:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},facetOptions:{type:Object,default:()=>({})},dict:{type:Array,default:()=>[]},sortable:{type:Boolean,default:!1},sortBy:{type:Array,default:()=>[]},currentSort:{type:Object,default:()=>({})}},emits:["search","sort"],setup(e,{emit:t}){const n=t;return(r,a)=>(l.openBlock(),l.createElementBlock("div",null,[e.searchBar&&!e.hideSearch?(l.openBlock(),l.createBlock(P8,{key:0,str:e.facetOptions.searchStr,dict:e.dict,class:"my-2 pb-2",onSearch:a[1]||(a[1]=i=>n("search",i))},{right:l.withCtx(()=>[e.sortable?(l.openBlock(),l.createBlock(BF,{key:0,class:"ml-2",options:e.sortBy,current:e.currentSort,onSort:a[0]||(a[0]=i=>n("sort",i))},null,8,["options","current"])):l.createCommentVNode("",!0)]),_:1},8,["str","dict"])):l.createCommentVNode("",!0),l.createElementVNode("div",VMe,[l.createElementVNode("div",{class:l.normalizeClass(["w-full col-span-3 md:col md:col-span-1 md:overflow-auto",{"md:page-height-search":e.searchBar},{"md:page-height":!e.searchBar}])},[l.renderSlot(r.$slots,"facet")],2),l.createElementVNode("div",{class:l.normalizeClass(["col-span-3 md:ml-5 md:overflow-auto",{"md:page-height-search":e.searchBar},{"md:page-height":!e.searchBar}])},[l.renderSlot(r.$slots,"content")],2)])]))}},qMe={class:"absolute top-0 z-50 w-44 rounded-3xl shadow-lg ring-1 ring-gray-900/5 left-full white-bg text-gray-700 dark:bg-black dark:text-gray-300"},LH={__name:"GrandChild",props:{children:{type:Object,required:!0},currentRoute:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t;return(a,i)=>{const o=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",qMe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.children,s=>(l.openBlock(),l.createBlock(o,{to:{name:s.route,params:s.params},onClick:i[0]||(i[0]=u=>r("close"))},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["rounded-lg m-2 p-3 text-sm leading-6",n.currentRoute===s.route?"bg-slate-300 dark:bg-slate-700":"hover:bg-gray-200 dark:hover:bg-neutral-700"])},l.toDisplayString(s.name),3)]),_:2},1032,["to"]))),256))])}}},KMe={class:"flex items-center justify-end"},GMe={class:"mt-6 flow-root white-bg text-gray-700 dark:bg-black dark:text-gray-300 rounded-3xl p-3"},WMe={class:"-my-6 divide-y divide-gray-500/10"},XMe={class:"space-y-2 py-6"},JMe=["onMouseenter","onMouseleave"],ZMe={class:"row rounded-lg pl-6 pr-3 leading-7 cursor-pointer"},$Me={class:"flex w-full items-center rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 hover:font-bold"},eEe={__name:"DialogMenu",props:{mobileMenuOpen:Boolean,navigation:Array,currentRoute:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,a=l.ref(n.navigation);return(i,o)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(l.unref(Xf),{as:"div",class:"lg:hidden",open:e.mobileMenuOpen,onClick:o[4]||(o[4]=u=>r("close")),onClose:o[5]||(o[5]=u=>r("close"))},{default:l.withCtx(()=>[o[7]||(o[7]=l.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),l.createVNode(l.unref(bv),{class:"fixed top-8 left-0 z-50 w-80 px-2 py-6 sm:px-6 sm:top-2 sm:w-full sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:l.withCtx(()=>[l.createElementVNode("div",KMe,[l.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5",onClick:o[0]||(o[0]=u=>r("close"))},[o[6]||(o[6]=l.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),l.createVNode(l.unref(A5),{class:"icon-lg","aria-hidden":"true"})])]),l.createElementVNode("div",GMe,[l.createElementVNode("div",WMe,[l.createElementVNode("div",XMe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,u=>(l.openBlock(),l.createElementBlock("div",{key:u.name},[u.children?(l.openBlock(),l.createBlock(l.unref(Y$),{key:0,as:"div"},{default:l.withCtx(({open:c})=>[l.createVNode(l.unref(DL),{class:"flex w-full items-center rounded-lg py-2 pl-3 pr-3.5 text-base font-medium leading-7 hover:font-bold"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(u.icon),{class:"h-6 flex-shrink-0 hover:font-bold pr-2","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(u.name)+" ",1),l.createVNode(l.unref(Zv),{class:l.normalizeClass([c?"rotate-180":"","icon-md right-10 absolute"]),"aria-hidden":"true"},null,8,["class"])]),_:2},1024),l.createVNode(l.unref(Q$),{class:"mt-2 space-y-2"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.children,A=>(l.openBlock(),l.createElementBlock("div",null,[A.children?(l.openBlock(),l.createElementBlock("div",{key:1,class:"relative text-sm font-medium hover:font-bold",onMouseenter:d=>A.expanded=!0,onMouseleave:d=>A.expanded=!1},[l.createElementVNode("span",ZMe,[l.createTextVNode(l.toDisplayString(A.name)+" ",1),l.createVNode(l.unref(C8),{class:"icon-md absolute right-4 sm:right-0"})]),A.expanded?(l.openBlock(),l.createBlock(LH,{key:0,children:A.children,currentRoute:e.currentRoute,onClose:o[2]||(o[2]=d=>r("close"))},null,8,["children","currentRoute"])):l.createCommentVNode("",!0)],40,JMe)):(l.openBlock(),l.createBlock(s,{key:A.name,to:{name:A.route,params:A.params},class:l.normalizeClass(["text-sm font-medium",n.currentRoute===A.route?"font-semibold text-slate-900 dark:text-slate-100":"hover:font-bold"]),onClick:o[1]||(o[1]=d=>r("close"))},{default:l.withCtx(()=>[l.createVNode(l.unref(DL),{class:"block rounded-lg pl-6 pr-3 leading-7"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(A.name),1)]),_:2},1024)]),_:2},1032,["to","class"]))]))),256))]),_:2},1024)]),_:2},1024)):(l.openBlock(),l.createBlock(s,{key:1,to:{name:u.route},onClick:o[3]||(o[3]=c=>r("close"))},{default:l.withCtx(()=>[l.createElementVNode("div",$Me,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(u.icon),{class:"h-6 flex-shrink-0 hover:font-bold pr-2","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(u.name),1)])]),_:2},1032,["to"]))]))),128))])])])]),_:1})]),_:1,__:[7]},8,["open"])}}},tEe={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-1"},nEe={class:l.normalizeClass(["block truncate"])},rEe={__name:"GridMenu",props:{options:Array,selected:Object},emits:["update"],setup(e,{emit:t}){const n=e,r=t,a=l.ref(n.selected),i=l.ref(""),o=l.computed(()=>n.options.filter(s=>(s.label.toLowerCase()+s.value.toLowerCase()).includes(i.value.toLowerCase())));return l.watch(()=>n.selected,s=>{a.value=s}),(s,u)=>(l.openBlock(),l.createBlock(l.unref(am),{as:"div",class:"py-1 relative",modelValue:a.value,"onUpdate:modelValue":[u[2]||(u[2]=c=>a.value=c),u[3]||(u[3]=c=>r("update",c))]},{default:l.withCtx(()=>[l.createVNode(l.unref(vv),{class:"w-full border-2 text-sm bg-transparent p-1 px-2 pr-4 focus:ring-0",onChange:u[0]||(u[0]=c=>i.value=c.target.value),displayValue:c=>c.label},null,8,["displayValue"]),l.createVNode(l.unref(gv),{class:"absolute inset-y-0 right-0 flex items-center pr-2"},{default:l.withCtx(()=>[l.createVNode(l.unref(eue),{class:"icon-md"})]),_:1}),l.createVNode(l.unref(Qc),{leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",onAfterLeave:u[1]||(u[1]=c=>i.value="")},{default:l.withCtx(()=>[l.createVNode(l.unref(im),{class:"absolute z-50 mt-1 max-h-96 w-full overflow-auto p-1 text-base text-sm white-bg text-gray-700 dark:bg-black dark:text-gray-300"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,c=>(l.openBlock(),l.createBlock(l.unref(Wf),{as:"template",key:c.value,value:c},{default:l.withCtx(({selected:A,active:d})=>[l.createElementVNode("li",{class:l.normalizeClass([d?"bg-indigo-600 text-white":"","relative cursor-default select-none py-2 pl-8 pr-3"])},[A?(l.openBlock(),l.createElementBlock("span",tEe,[l.createVNode(l.unref(x8),{class:"icon","aria-hidden":"true"})])):l.createCommentVNode("",!0),l.createElementVNode("span",nEe,l.toDisplayString(c.label),1)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},aEe={class:"py-1 px-2 white-bg text-gray-700 dark:bg-black dark:text-gray-300"},iEe={class:"rounded-lg p-4 text-sm leading-6 hover:bg-gray-200 dark:hover:bg-neutral-700"},oEe={__name:"MenuAvatar",props:{fullName:{type:String,default:"Fluency User"}},setup(e){const t=[{name:"Profile",route:"profile"},{name:"Logout",route:"logout"}],n=e,r=l.computed(()=>{var s,u;const a=n.fullName.split(" "),i=((s=a[0][0])==null?void 0:s.toUpperCase())||"A",o=((u=a[a.length-1][0])==null?void 0:u.toUpperCase())||"U";return`${i}${o}`});return(a,i)=>{const o=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(l.unref(ku),{as:"div",class:"relative ml-auto mt-1.5"},{default:l.withCtx(()=>[l.createVNode(l.unref(Mu),{class:"rounded-full ring-2 size-7 ring-black dark:ring-white text-sm"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value),1)]),_:1}),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Eu),{class:"absolute right-0 top-full z-50 mt-3 w-44 overflow-hidden rounded-3xl shadow-lg ring-1 ring-gray-900/5"},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(t,s=>l.createVNode(l.unref(es),{key:s.name},{default:l.withCtx(({close:u})=>[l.createElementVNode("div",aEe,[l.createVNode(o,{to:{name:s.route,params:s.params},onClick:u},{default:l.withCtx(()=>[l.createElementVNode("div",iEe,l.toDisplayString(s.name),1)]),_:2},1032,["to","onClick"])])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})}}},sEe={class:"py-1 px-2 white-bg text-gray-700 dark:bg-black dark:text-gray-300"},lEe={key:1},uEe={class:"relative rounded-lg p-4 text-sm leading-6 hover:bg-gray-200 dark:hover:bg-neutral-700"},cEe={class:"relative row text-sm"},AEe={class:"menu"},dEe={class:"menu-button"},fEe={__name:"MenuDesktop",props:{navigation:Array,currentRoute:{type:String,default:""}},emits:[],setup(e,{emit:t}){return(n,r)=>{const a=l.resolveComponent("router-link");return l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.navigation,i=>(l.openBlock(),l.createElementBlock("div",{key:i.name},[i.children?(l.openBlock(),l.createBlock(l.unref(ku),{key:0,as:"div",class:"menu"},{default:l.withCtx(()=>[l.createVNode(l.unref(Mu),{class:"menu-button"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.icon),{class:"menu-icon","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(i.name)+" ",1),l.createVNode(l.unref(Zv),{class:"icon-md flex-none","aria-hidden":"true"})]),_:2},1024),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Eu),{class:"absolute -left-8 top-full z-50 mt-3 w-44 rounded-3xl shadow-lg ring-1 ring-gray-900/5"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.children,o=>(l.openBlock(),l.createBlock(l.unref(es),{key:o.name},{default:l.withCtx(({close:s,active:u})=>[l.createElementVNode("div",sEe,[o.children?(l.openBlock(),l.createElementBlock("div",lEe,[l.createElementVNode("div",uEe,[l.createElementVNode("span",cEe,[l.createTextVNode(l.toDisplayString(o.name)+" ",1),l.createVNode(l.unref(C8),{class:"icon-md absolute right-0"})]),u?(l.openBlock(),l.createBlock(LH,{key:0,children:o.children,currentRoute:e.currentRoute,onClose:s},null,8,["children","currentRoute","onClose"])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createBlock(a,{key:0,to:{name:o.route,params:o.params},onClick:s},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["rounded-lg p-4 text-sm leading-6",e.currentRoute===o.route?"bg-slate-300 dark:bg-slate-700":"hover:bg-gray-200 dark:hover:bg-neutral-700"])},l.toDisplayString(o.name),3)]),_:2},1032,["to","onClick"]))])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)):(l.openBlock(),l.createBlock(a,{key:1,to:{name:i.route}},{default:l.withCtx(()=>[l.createElementVNode("div",AEe,[l.createElementVNode("div",dEe,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.icon),{class:"menu-icon","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(i.name),1)])])]),_:2},1032,["to"]))]))),128)}}},hEe={class:"py-2 overflow-x-auto"},pEe={class:"text-lg font-semibold"},mEe={__name:"FPLAlert",props:{title:String,data:Object,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref([]);t.data.alerts&&r();function r(){const a=t.data.slots.map(i=>i*1e3);n.value=t.data.alerts?t.data.alerts.map(i=>({tags:i.dimensionTags?i.dimensionTags[0].tags:[],slots:a,action:i.key,metric:i.alertMetric,values:i.values[0].metric.values,series:i.associates?i.associates.filter(o=>o.name).map(o=>({action:o.name,values:o.metric.values})):[]})):[]}return(a,i)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(o,s)=>(l.openBlock(),l.createElementBlock("div",hEe,[l.createElementVNode("h3",pEe,l.toDisplayString(o.action),1),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.tags,(u,c)=>(l.openBlock(),l.createBlock(l.unref(g5),{key:c,text:u.key+": "+u.values.join(", "),color:"blue"},null,8,["text"]))),128)),l.createVNode(l.unref(qx),{data:o,id:e.title+s,unit:"Value",height:300,width:800,theme:e.theme},null,8,["data","id","theme"])]))),256)),n.value.length===0?(l.openBlock(),l.createBlock(l.unref(CH),{key:0,id:e.title,height:300,width:800},null,8,["id"])):l.createCommentVNode("",!0)],64))}},gEe={class:"overflow-x-auto"},vEe={__name:"FPLStream",props:{title:String,data:Object,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref([]),r=t.data.slots.map(a=>a*1e3);return n.value=t.data.metrics?t.data.metrics.map(a=>({slots:r,action:a.key,values:a.values})):[],(a,i)=>(l.openBlock(),l.createElementBlock("div",gEe,[l.createVNode(l.unref(Qg),{data:n.value,id:e.title,unit:e.data.unit?e.data.unit:"Value",height:300,width:900,hideZeros:!1,theme:e.theme},null,8,["data","id","unit","theme"])]))}},yEe={__name:"FPLTable",props:{title:String,data:Object,paginationStore:Object},setup(e){const t=e,n=l.ref([]);t.paginationStore.$reset,t.data.rows&&t.data.rows.length>0&&(n.value=t.paginationStore.paginate(t.data.rows));function r(){n.value=t.paginationStore.previousPage(t.data.rows)}function a(){n.value=t.paginationStore.nextPage(t.data.rows)}function i(s){n.value=t.paginationStore.skipToPage(t.data.rows,s)}function o(s,u){return u==="B"?Kr(s)+"B":u==="$"?rf(s):u==="s"?TU(s):qr(s)+u}return(s,u)=>(l.openBlock(),l.createBlock(l.unref(Fm),{data:n.value},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data.columns,c=>(l.openBlock(),l.createBlock(l.unref(ea),{key:c.name,title:c.name},null,8,["title"]))),128))])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,c=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data.columns,A=>(l.openBlock(),l.createElementBlock("td",{key:A.name,class:"table-font dark:dark-table-font break-all"},l.toDisplayString(A.unit?o(c[A.name],A.unit):c[A.name]),1))),128))]))),256))]),pagination:l.withCtx(()=>[e.data.rows&&e.data.rows.length?(l.openBlock(),l.createBlock(l.unref(m5),{key:0,startPos:t.paginationStore.startPos,pageSize:t.paginationStore.pageSize,total:e.data.rows.length,onPrevious:u[0]||(u[0]=c=>r()),onNext:u[1]||(u[1]=c=>a()),onNavtopage:i},null,8,["startPos","pageSize","total"])):l.createCommentVNode("",!0)]),_:1},8,["data"]))}},_Ee={class:"py-2"},bEe={class:"text-lg font-semibold"},TH={__name:"Alert",props:{config:Object,obj:Object,layout:Object,id:String,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(!1),r=l.ref([]);l.watch(()=>[t.layout.w,t.layout.h],()=>{n.value=!0,setInterval(()=>{n.value=!1},1)}),a();function a(){const i=t.obj.alert.slots.map(o=>o*1e3);r.value=t.obj.alert.alerts?t.obj.alert.alerts.map(o=>{const s=o.associates||[];return{tags:o.dimensionTags?o.dimensionTags[0].tags:[],slots:i,action:o.key,metric:o.alertMetric,values:o.values[0].metric.values,series:s.filter(u=>u.name).map(u=>({action:u.name,values:u.metric.values}))}}):[],r.value=r.value.slice(0,t.config.topID)}return(i,o)=>n.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"overflow-auto",style:l.normalizeStyle(`height: ${e.layout.h*61-10}px`)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(s,u)=>(l.openBlock(),l.createElementBlock("div",_Ee,[l.createElementVNode("h3",bEe,l.toDisplayString(s.action),1),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.tags,(c,A)=>(l.openBlock(),l.createBlock(l.unref(g5),{key:A,text:c.key+": "+c.values.join(", "),color:"blue"},null,8,["text"]))),128)),l.createVNode(l.unref(qx),{data:s,id:e.id+u,unit:"Value",height:300,width:e.layout.w*65-150,pannable:!1,theme:e.theme},null,8,["data","id","width","theme"])]))),256))],4))}},NH={__name:"AlertSprite",props:{config:Object,obj:Object},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",null,"AlertSprite"))}},FH={__name:"Chart",props:{config:Object,obj:Object,layout:Object,id:String,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(!1),r=l.ref([]);l.watch(()=>[t.layout.w,t.layout.h],()=>{n.value=!0,setInterval(()=>{n.value=!1},1)}),a();function a(){const i=t.obj.table.rows.map((o,s)=>o[t.config.value.column.name]);if(t.config.options.type==="line")r.value=t.config.categories.focus.map(o=>({action:o.name,slots:i,values:t.obj.table.rows.map(s=>s[o.name])}));else if(t.config.options.type==="bar"){const o={},s=[];t.config.categories.focus.forEach(u=>{o[u.name]=u.name,t.obj.table.rows.forEach((c,A)=>{s.push({slot:i[A],name:u.name,value:c[u.name]})})}),r.value={slots:i,names:o,series:s}}else r.value=[]}return(i,o)=>(l.openBlock(),l.createElementBlock("div",null,[e.config.options.type==="line"&&!n.value?(l.openBlock(),l.createBlock(l.unref(Qg),{key:0,data:r.value,id:e.id,unit:"Value",height:t.layout.h*60-40,width:t.layout.w*69-155,hideZeros:!1,isTime:!1,tooltipOffset:"offset","slot-name":e.config.value.column.name,theme:e.theme},null,8,["data","id","height","width","slot-name","theme"])):l.createCommentVNode("",!0),e.config.options.type==="bar"&&!n.value?(l.openBlock(),l.createBlock(l.unref(Rg),{key:1,data:r.value,names:r.value.names,id:e.id,unit:"Value",height:t.layout.h*60-50,width:t.layout.w*69-20,isTime:!1,tooltipOffset:"offset","slot-name":e.config.value.column.name,theme:e.theme},null,8,["data","names","id","height","width","slot-name","theme"])):l.createCommentVNode("",!0)]))}},wEe={class:"w-full",style:{height:"calc(100% - 40px)"}},OH={__name:"Counter",props:{config:Object,obj:Object,layout:Object,id:String,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(0);return t.obj.table.rows[0]&&(n.value=t.obj.table.rows[0][t.config.field]||0),(r,a)=>(l.openBlock(),l.createElementBlock("div",wEe,[l.createElementVNode("span",{class:l.normalizeClass(["flex items-center justify-center content-center h-full overflow-hidden",e.layout.w>4?"text-7xl":"text-5xl"])},l.toDisplayString(e.config.format==="Data"?l.unref(Kr)(n.value)+"B":e.config.format==="Readable Numbers"?l.unref(qr)(n.value.toPrecision(3)):n.value),3)]))}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mapdiv[data-v-289550ca]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-f0c09f6e]{display:none}.mapdiv .info-window-wrapper[data-v-f0c09f6e]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var BEe=Object.defineProperty,xEe=(e,t,n)=>t in e?BEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IH=(e,t,n)=>(xEe(e,typeof t!="symbol"?t+"":t,n),n);const hf=Symbol("map"),pf=Symbol("api"),h4=Symbol("marker"),p4=Symbol("markerCluster"),T_=Symbol("CustomMarker"),DH=Symbol("mapTilesLoaded"),lp=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];function CEe(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(A){try{c(r.next(A))}catch(d){o(d)}}function u(A){try{c(r.throw(A))}catch(d){o(d)}}function c(A){A.done?i(A.value):a(A.value).then(s,u)}c((r=r.apply(e,[])).next())})}function SEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UH,PH;function kEe(){return PH||(PH=1,UH=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),UH}var MEe=kEe(),EEe=SEe(MEe);const HH="__googleMapsScriptId";var up;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(up||(up={}));let LEe=class Jp{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:a,id:i=HH,language:o,libraries:s=[],mapIds:u,nonce:c,region:A,retries:d=3,url:f="https://maps.googleapis.com/maps/api/js",version:h}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=a,this.id=i||HH,this.language=o,this.libraries=s,this.mapIds=u,this.nonce=c,this.region=A,this.retries=d,this.url=f,this.version=h,Jp.instance){if(!EEe(this.options,Jp.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Jp.instance.options)}`);return Jp.instance}Jp.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?up.FAILURE:this.done?up.SUCCESS:this.loading?up.LOADING:up.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let o,s,u,c="The Google Maps JavaScript API",A="google",d="importLibrary",f="__ib__",h=document,m=window;m=m[A]||(m[A]={});const p=m.maps||(m.maps={}),v=new Set,y=new URLSearchParams,g=()=>o||(o=new Promise((_,b)=>CEe(this,void 0,void 0,function*(){var B;yield s=h.createElement("script"),s.id=this.id,y.set("libraries",[...v]+"");for(u in i)y.set(u.replace(/[A-Z]/g,M=>"_"+M[0].toLowerCase()),i[u]);y.set("callback",A+".maps."+f),s.src=this.url+"?"+y,p[f]=_,s.onerror=()=>o=b(Error(c+" could not load.")),s.nonce=this.nonce||((B=h.querySelector("script[nonce]"))===null||B===void 0?void 0:B.nonce)||"",h.head.append(s)})));p[d]?console.warn(c+" only loads once. Ignoring:",i):p[d]=(_,...b)=>v.add(_)&&g().then(()=>p[d](_,...b))})(r);const a=this.libraries.map(i=>this.importLibrary(i));a.length||a.push(this.importLibrary("core")),Promise.all(a).then(()=>this.callback(),i=>{const o=new ErrorEvent("error",{error:i});this.loadErrorCallback(o)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}};function TEe(e){return class extends e.OverlayView{constructor(t){super(),IH(this,"element"),IH(this,"opts");const{element:n,...r}=t;this.element=n,this.opts=r,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof e.LatLng?this.opts.position:new e.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const t=this.element;return t.style.display!=="none"&&t.style.visibility!=="hidden"&&(t.style.opacity===""||Number(t.style.opacity)>.01)}onAdd(){if(!this.element)return;const t=this.getPanes();t&&t.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const t=this.getProjection(),n=t==null?void 0:t.fromLatLngToDivPixel(this.getPosition());if(n){this.element.style.position="absolute";let r,a;switch(this.opts.anchorPoint){case"TOP_CENTER":r="-50%",a="-100%";break;case"BOTTOM_CENTER":r="-50%",a="0";break;case"LEFT_CENTER":r="-100%",a="-50%";break;case"RIGHT_CENTER":r="0",a="-50%";break;case"TOP_LEFT":r="-100%",a="-100%";break;case"TOP_RIGHT":r="0",a="-100%";break;case"BOTTOM_LEFT":r="-100%",a="0";break;case"BOTTOM_RIGHT":r="0",a="0";break;default:r="-50%",a="-50%"}const i=n.x+(this.opts.offsetX||0)+"px",o=n.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${r}) translateX(${i}) translateY(${a}) translateY(${o})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(t){const{element:n,...r}=t;this.element=n,this.opts=r,this.draw()}}}let YH;const QH=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_changed"],NEe=l.defineComponent({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},colorScheme:{type:String,required:!1},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},cameraControl:{type:Boolean,required:!1,default:void 0},cameraControlPosition:{type:String,required:!1},nonce:{type:String,default:""}},emits:QH,setup(e,{emit:t}){const n=l.ref(),r=l.ref(!1),a=l.ref(),i=l.ref(),o=l.ref(!1);l.provide(hf,a),l.provide(pf,i),l.provide(DH,o);const s=()=>{const d={...e};Object.keys(d).forEach(m=>{d[m]===void 0&&delete d[m]});const f=m=>{var p;return m?{position:(p=i.value)==null?void 0:p.ControlPosition[m]}:{}},h={scaleControlOptions:e.scaleControlStyle?{style:e.scaleControlStyle}:{},panControlOptions:f(e.panControlPosition),zoomControlOptions:f(e.zoomControlPosition),rotateControlOptions:f(e.rotateControlPosition),streetViewControlOptions:f(e.streetViewControlPosition),fullscreenControlOptions:f(e.fullscreenControlPosition),cameraControlOptions:f(e.cameraControlPosition),disableDefaultUI:e.disableDefaultUi};return{...d,...h}},u=l.watch([i,a],([d,f])=>{const h=d,m=f;h&&m&&(h.event.addListenerOnce(m,"tilesloaded",()=>{o.value=!0}),setTimeout(u,0))},{immediate:!0}),c=()=>{try{const{apiKey:d,region:f,version:h,language:m,libraries:p,nonce:v}=e;YH=new LEe({apiKey:d,region:f,version:h,language:m,libraries:p,nonce:v})}catch(d){console.error(d)}},A=d=>{i.value=l.markRaw(d.maps),a.value=l.markRaw(new d.maps.Map(n.value,s()));const f=TEe(i.value);i.value[T_]=f,QH.forEach(m=>{var p;(p=a.value)==null||p.addListener(m,v=>t(m,v))}),r.value=!0;const h=Object.keys(e).filter(m=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom","nonce"].includes(m)).map(m=>l.toRef(e,m));l.watch([()=>e.center,()=>e.zoom,...h],([m,p],[v,y])=>{var g,_,b;const{center:B,zoom:M,...x}=s();(g=a.value)==null||g.setOptions(x),p!==void 0&&p!==y&&((_=a.value)==null||_.setZoom(p));const E=!v||m.lng!==v.lng||m.lat!==v.lat;m&&E&&((b=a.value)==null||b.panTo(m))})};return l.onMounted(()=>{e.apiPromise&&e.apiPromise instanceof Promise?e.apiPromise.then(A):(c(),YH.load().then(A))}),l.onBeforeUnmount(()=>{var d;o.value=!1,a.value&&((d=i.value)==null||d.event.clearInstanceListeners(a.value))}),{mapRef:n,ready:r,map:a,api:i,mapTilesLoaded:o}}}),FEe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},OEe={ref:"mapRef",class:"mapdiv"};function IEe(e,t,n,r,a,i){return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",OEe,null,512),l.renderSlot(e.$slots,"default",l.normalizeProps(l.guardReactiveProps({ready:e.ready,map:e.map,api:e.api,mapTilesLoaded:e.mapTilesLoaded})),void 0,!0)])}const DEe=FEe(NEe,[["render",IEe],["__scopeId","data-v-289550ca"]]);function UEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PEe=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const a0=UEe(PEe),RH=["click","drag","dragend","dragstart","gmp-click"];l.defineComponent({name:"AdvancedMarker",props:{options:{type:Object,required:!0},pinOptions:{type:Object,required:!1}},emits:RH,setup(e,{emit:t,expose:n,slots:r}){const a=l.ref(),i=l.computed(()=>{var h;return(h=r.content)==null?void 0:h.call(r).some(m=>m.type!==l.Comment)}),o=l.toRef(e,"options"),s=l.toRef(e,"pinOptions"),u=l.ref(),c=l.inject(hf,l.ref()),A=l.inject(pf,l.ref()),d=l.inject(p4,l.ref()),f=l.computed(()=>!!(d.value&&A.value&&u.value instanceof google.maps.marker.AdvancedMarkerElement));return l.watch([c,o,s,a],async(h,[m,p,v,y])=>{var g,_,b;const B=!a0(o.value,p)||!a0(s.value,v),M=a.value!==y,x=B||M||c.value!==m;if(!c.value||!A.value||!x||i.value&&!a.value)return;const{AdvancedMarkerElement:E,PinElement:D}=A.value.marker;if(u.value){const{map:Y,content:k,...N}=o.value;Object.assign(u.value,{content:i.value?a.value:s.value?new D(s.value).element:k,...N}),f.value&&((g=d.value)==null||g.removeMarker(u.value),(_=d.value)==null||_.addMarker(u.value))}else i.value?o.value.content=a.value:s.value&&(o.value.content=new D(s.value).element),u.value=l.markRaw(new E(o.value)),f.value?(b=d.value)==null||b.addMarker(u.value):u.value.map=c.value,RH.forEach(Y=>{var k;(k=u.value)==null||k.addListener(Y,N=>t(Y,N))})},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var h,m;u.value&&((h=A.value)==null||h.event.clearInstanceListeners(u.value),f.value?(m=d.value)==null||m.removeMarker(u.value):u.value.map=null)}),l.provide(h4,u),n({marker:u}),{hasCustomSlotContent:i,markerRef:a}}});const jH=e=>e==="Marker",VH=e=>e===T_,cp=(e,t,n,r)=>{const a=l.ref(),i=l.inject(hf,l.ref()),o=l.inject(pf,l.ref()),s=l.inject(p4,l.ref()),u=l.computed(()=>!!(s.value&&o.value&&(a.value instanceof o.value.Marker||a.value instanceof o.value[T_])));return l.watch([i,n],(c,[A,d])=>{var f,h,m;const p=!a0(n.value,d)||i.value!==A;if(!(!i.value||!o.value||!p))if(a.value)a.value.setOptions(n.value),u.value&&((f=s.value)==null||f.removeMarker(a.value),(h=s.value)==null||h.addMarker(a.value));else{if(jH(e))a.value=l.markRaw(new o.value[e](n.value));else if(VH(e)){const v=n.value;v.element&&(a.value=l.markRaw(new o.value[e](v)))}else a.value=l.markRaw(new o.value[e]({...n.value,map:i.value}));a.value&&(u.value?(m=s.value)==null||m.addMarker(a.value):(jH(e)||VH(e))&&a.value.setMap(i.value)),t.forEach(v=>{var y;(y=a.value)==null||y.addListener(v,g=>r(v,g))})}},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var c,A;a.value&&((c=o.value)==null||c.event.clearInstanceListeners(a.value),u.value?(A=s.value)==null||A.removeMarker(a.value):a.value.setMap(null))}),a},zH=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],HEe=l.defineComponent({name:"Marker",props:{options:{type:Object,required:!0}},emits:zH,setup(e,{emit:t,expose:n,slots:r}){const a=l.toRef(e,"options"),i=cp("Marker",zH,a,t);return l.provide(h4,i),n({marker:i}),()=>{var o;return(o=r.default)==null?void 0:o.call(r)}}});l.defineComponent({name:"Polyline",props:{options:{type:Object,required:!0}},emits:lp,setup(e,{emit:t}){const n=l.toRef(e,"options");return{polyline:cp("Polyline",lp,n,t)}},render:()=>null}),l.defineComponent({name:"Polygon",props:{options:{type:Object,required:!0}},emits:lp,setup(e,{emit:t}){const n=l.toRef(e,"options");return{polygon:cp("Polygon",lp,n,t)}},render:()=>null});const qH=lp.concat(["bounds_changed"]);l.defineComponent({name:"Rectangle",props:{options:{type:Object,required:!0}},emits:qH,setup(e,{emit:t}){const n=l.toRef(e,"options");return{rectangle:cp("Rectangle",qH,n,t)}},render:()=>null});const KH=lp.concat(["center_changed","radius_changed"]);l.defineComponent({name:"Circle",props:{options:{type:Object,required:!0}},emits:KH,setup(e,{emit:t}){const n=l.toRef(e,"options");return{circle:cp("Circle",KH,n,t)}},render:()=>null}),l.defineComponent({props:{position:{type:String,required:!0},index:{type:Number,default:1}},emits:["content:loaded"],setup(e,{emit:t}){const n=l.ref(null),r=l.inject(hf,l.ref()),a=l.inject(pf,l.ref()),i=l.inject(DH,l.ref(!1)),o=l.watch([i,a,n],([c,A,d])=>{A&&c&&d&&(s(e.position),t("content:loaded"),setTimeout(o,0))},{immediate:!0}),s=c=>{if(r.value&&a.value&&n.value){const A=a.value.ControlPosition[c];n.value.index=e.index,r.value.controls[A].push(n.value)}},u=c=>{if(r.value&&a.value){let A=null;const d=a.value.ControlPosition[c];r.value.controls[d].forEach((f,h)=>{f===n.value&&(A=h)}),A!==null&&r.value.controls[d].removeAt(A)}};return l.onBeforeUnmount(()=>u(e.position)),l.watch(()=>e.position,(c,A)=>{u(A),s(c)}),l.watch(()=>e.index,c=>{n.value&&(n.value.index=c)}),{controlRef:n}}});const GH=["closeclick","content_changed","domready","position_changed","visible","zindex_changed"];l.defineComponent({inheritAttrs:!1,props:{options:{type:Object,default:()=>({})},modelValue:{type:Boolean}},emits:[...GH,"update:modelValue"],setup(e,{slots:t,emit:n,expose:r}){const a=l.ref(),i=l.ref(),o=l.inject(hf,l.ref()),s=l.inject(pf,l.ref()),u=l.inject(h4,l.ref());let c,A=e.modelValue;const d=l.computed(()=>{var p;return(p=t.default)==null?void 0:p.call(t).some(v=>v.type!==l.Comment)}),f=p=>{A=p,n("update:modelValue",p)},h=p=>{a.value&&(a.value.open({map:o.value,anchor:u.value,...p}),f(!0))},m=()=>{a.value&&(a.value.close(),f(!1))};return l.onMounted(()=>{l.watch([o,()=>e.options],([p,v],[y,g])=>{var _;const b=!a0(v,g)||o.value!==y;o.value&&s.value&&b&&(a.value?(a.value.setOptions({...v,content:d.value?i.value:v.content}),u.value||h()):(a.value=l.markRaw(new s.value.InfoWindow({...v,content:d.value?i.value:v.content})),u.value&&(c=u.value.addListener("click",()=>{h()})),(!u.value||A)&&h(),GH.forEach(B=>{var M;(M=a.value)==null||M.addListener(B,x=>n(B,x))}),(_=a.value)==null||_.addListener("closeclick",()=>f(!1))))},{immediate:!0}),l.watch(()=>e.modelValue,p=>{p!==A&&(p?h():m())})}),l.onBeforeUnmount(()=>{var p;c&&c.remove(),a.value&&((p=s.value)==null||p.event.clearInstanceListeners(a.value),m())}),r({infoWindow:a,open:h,close:m}),{infoWindow:a,infoWindowRef:i,hasSlotContent:d,open:h,close:m}}});var YEe=Object.getOwnPropertyNames,QEe=Object.getOwnPropertySymbols,REe=Object.prototype.hasOwnProperty;function WH(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function N_(e){return function(t,n,r){if(!t||!n||typeof t!="object"||typeof n!="object")return e(t,n,r);var a=r.cache,i=a.get(t),o=a.get(n);if(i&&o)return i===n&&o===t;a.set(t,n),a.set(n,t);var s=e(t,n,r);return a.delete(t),a.delete(n),s}}function XH(e){return YEe(e).concat(QEe(e))}var jEe=Object.hasOwn||function(e,t){return REe.call(e,t)};function mf(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var VEe="__v",zEe="__o",qEe="_owner",JH=Object.getOwnPropertyDescriptor,ZH=Object.keys;function KEe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function GEe(e,t){return mf(e.getTime(),t.getTime())}function WEe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function XEe(e,t){return e===t}function $H(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),i=e.entries(),o,s,u=0;(o=i.next())&&!o.done;){for(var c=t.entries(),A=!1,d=0;(s=c.next())&&!s.done;){if(a[d]){d++;continue}var f=o.value,h=s.value;if(n.equals(f[0],h[0],u,d,e,t,n)&&n.equals(f[1],h[1],f[0],h[0],e,t,n)){A=a[d]=!0;break}d++}if(!A)return!1;u++}return!0}var JEe=mf;function ZEe(e,t,n){var r=ZH(e),a=r.length;if(ZH(t).length!==a)return!1;for(;a-- >0;)if(!tY(e,t,n,r[a]))return!1;return!0}function i0(e,t,n){var r=XH(e),a=r.length;if(XH(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=r[a],!tY(e,t,n,i)||(o=JH(e,i),s=JH(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function $Ee(e,t){return mf(e.valueOf(),t.valueOf())}function eLe(e,t){return e.source===t.source&&e.flags===t.flags}function eY(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),i=e.values(),o,s;(o=i.next())&&!o.done;){for(var u=t.values(),c=!1,A=0;(s=u.next())&&!s.done;){if(!a[A]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){c=a[A]=!0;break}A++}if(!c)return!1}return!0}function tLe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function nLe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function tY(e,t,n,r){return(r===qEe||r===zEe||r===VEe)&&(e.$$typeof||t.$$typeof)?!0:jEe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var rLe="[object Arguments]",aLe="[object Boolean]",iLe="[object Date]",oLe="[object Error]",sLe="[object Map]",lLe="[object Number]",uLe="[object Object]",cLe="[object RegExp]",ALe="[object Set]",dLe="[object String]",fLe="[object URL]",hLe=Array.isArray,nY=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,rY=Object.assign,pLe=Object.prototype.toString.call.bind(Object.prototype.toString);function mLe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,A=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(h,m,p){if(h===m)return!0;if(h==null||m==null)return!1;var v=typeof h;if(v!==typeof m)return!1;if(v!=="object")return v==="number"?o(h,m,p):v==="function"?a(h,m,p):!1;var y=h.constructor;if(y!==m.constructor)return!1;if(y===Object)return s(h,m,p);if(hLe(h))return t(h,m,p);if(nY!=null&&nY(h))return d(h,m,p);if(y===Date)return n(h,m,p);if(y===RegExp)return c(h,m,p);if(y===Map)return i(h,m,p);if(y===Set)return A(h,m,p);var g=pLe(h);return g===iLe?n(h,m,p):g===cLe?c(h,m,p):g===sLe?i(h,m,p):g===ALe?A(h,m,p):g===uLe?typeof h.then!="function"&&typeof m.then!="function"&&s(h,m,p):g===fLe?f(h,m,p):g===oLe?r(h,m,p):g===rLe?s(h,m,p):g===aLe||g===lLe||g===dLe?u(h,m,p):!1}}function gLe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?i0:KEe,areDatesEqual:GEe,areErrorsEqual:WEe,areFunctionsEqual:XEe,areMapsEqual:r?WH($H,i0):$H,areNumbersEqual:JEe,areObjectsEqual:r?i0:ZEe,arePrimitiveWrappersEqual:$Ee,areRegExpsEqual:eLe,areSetsEqual:r?WH(eY,i0):eY,areTypedArraysEqual:r?i0:tLe,areUrlsEqual:nLe};if(n&&(a=rY({},a,n(a))),t){var i=N_(a.areArraysEqual),o=N_(a.areMapsEqual),s=N_(a.areObjectsEqual),u=N_(a.areSetsEqual);a=rY({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return a}function vLe(e){return function(t,n,r,a,i,o,s){return e(t,n,s)}}function yLe(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,i=e.strict;if(r)return function(s,u){var c=r(),A=c.cache,d=A===void 0?t?new WeakMap:void 0:A,f=c.meta;return n(s,u,{cache:d,equals:a,meta:f,strict:i})};if(t)return function(s,u){return n(s,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,u){return n(s,u,o)}}var F_=MA();MA({strict:!0}),MA({circular:!0}),MA({circular:!0,strict:!0}),MA({createInternalComparator:function(){return mf}}),MA({strict:!0,createInternalComparator:function(){return mf}}),MA({circular:!0,createInternalComparator:function(){return mf}}),MA({circular:!0,createInternalComparator:function(){return mf},strict:!0});function MA(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=gLe(e),u=mLe(s),c=r?r(u):vLe(u);return yLe({circular:n,comparator:u,createState:a,equals:c,strict:o})}const aY=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],m4=1,o0=8;class g4{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const a=r>>4;if(a!==m4)throw new Error(`Got v${a} data when expected v${m4}.`);const i=aY[r&15];if(!i)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new g4(s,o,i,t)}constructor(t,n=64,r=Float64Array,a){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=aY.indexOf(this.ArrayType),o=t*2*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-s%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${r}.`);a&&a instanceof ArrayBuffer?(this.data=a,this.ids=new this.IndexArrayType(this.data,o0,t),this.coords=new this.ArrayType(this.data,o0+s+u,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(o0+o+s+u),this.ids=new this.IndexArrayType(this.data,o0,t),this.coords=new this.ArrayType(this.data,o0+s+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(m4<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=n,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return v4(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,r,a){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:s}=this,u=[0,i.length-1,0],c=[];for(;u.length;){const A=u.pop()||0,d=u.pop()||0,f=u.pop()||0;if(d-f<=s){for(let v=f;v<=d;v++){const y=o[2*v],g=o[2*v+1];y>=t&&y<=r&&g>=n&&g<=a&&c.push(i[v])}continue}const h=f+d>>1,m=o[2*h],p=o[2*h+1];m>=t&&m<=r&&p>=n&&p<=a&&c.push(i[h]),(A===0?t<=m:n<=p)&&(u.push(f),u.push(h-1),u.push(1-A)),(A===0?r>=m:a>=p)&&(u.push(h+1),u.push(d),u.push(1-A))}return c}within(t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:i,nodeSize:o}=this,s=[0,a.length-1,0],u=[],c=r*r;for(;s.length;){const A=s.pop()||0,d=s.pop()||0,f=s.pop()||0;if(d-f<=o){for(let v=f;v<=d;v++)oY(i[2*v],i[2*v+1],t,n)<=c&&u.push(a[v]);continue}const h=f+d>>1,m=i[2*h],p=i[2*h+1];oY(m,p,t,n)<=c&&u.push(a[h]),(A===0?t-r<=m:n-r<=p)&&(s.push(f),s.push(h-1),s.push(1-A)),(A===0?t+r>=m:n+r>=p)&&(s.push(h+1),s.push(d),s.push(1-A))}return u}}function v4(e,t,n,r,a,i){if(a-r<=n)return;const o=r+a>>1;iY(e,t,o,r,a,i),v4(e,t,n,r,o-1,1-i),v4(e,t,n,o+1,a,1-i)}function iY(e,t,n,r,a,i){for(;a>r;){if(a-r>600){const c=a-r+1,A=n-r+1,d=Math.log(c),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(c-f)/c)*(A-c/2<0?-1:1),m=Math.max(r,Math.floor(n-A*f/c+h)),p=Math.min(a,Math.floor(n+(c-A)*f/c+h));iY(e,t,n,m,p,i)}const o=t[2*n+i];let s=r,u=a;for(s0(e,t,r,n),t[2*a+i]>o&&s0(e,t,r,a);s<u;){for(s0(e,t,s,u),s++,u--;t[2*s+i]<o;)s++;for(;t[2*u+i]>o;)u--}t[2*r+i]===o?s0(e,t,r,u):(u++,s0(e,t,u,a)),u<=n&&(r=u+1),n<=u&&(a=u-1)}}function s0(e,t,n,r){y4(e,n,r),y4(t,2*n,2*r),y4(t,2*n+1,2*r+1)}function y4(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oY(e,t,n,r){const a=e-n,i=t-r;return a*a+i*i}const _Le={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},sY=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),gf=2,EA=3,_4=4,LA=5,lY=6;let uY=class{constructor(t){this.options=Object.assign(Object.create(_Le),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:r,maxZoom:a}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const o=[];for(let u=0;u<t.length;u++){const c=t[u];if(!c.geometry)continue;const[A,d]=c.geometry.coordinates,f=sY(O_(A)),h=sY(I_(d));o.push(f,h,1/0,u,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[a+1]=this._createTree(o);n&&console.timeEnd(i);for(let u=a;u>=r;u--){const c=+Date.now();s=this.trees[u]=this._createTree(this._cluster(s,u)),n&&console.log("z%d: %d clusters in %dms",u,s.numItems,+Date.now()-c)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let r=((t[0]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){const d=this.getClusters([r,a,180,o],n),f=this.getClusters([-180,a,i,o],n);return d.concat(f)}const s=this.trees[this._limitZoom(n)],u=s.range(O_(r),I_(o),O_(i),I_(a)),c=s.data,A=[];for(const d of u){const f=this.stride*d;A.push(c[f+LA]>1?cY(c,f,this.clusterProps):this.points[c[f+EA]])}return A}getChildren(t){const n=this._getOriginId(t),r=this._getOriginZoom(t),a="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(a);const o=i.data;if(n*this.stride>=o.length)throw new Error(a);const s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),u=o[n*this.stride],c=o[n*this.stride+1],A=i.within(u,c,s),d=[];for(const f of A){const h=f*this.stride;o[h+_4]===t&&d.push(o[h+LA]>1?cY(o,h,this.clusterProps):this.points[o[h+EA]])}if(d.length===0)throw new Error(a);return d}getLeaves(t,n,r){n=n||10,r=r||0;const a=[];return this._appendLeaves(a,t,n,r,0),a}getTile(t,n,r){const a=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:s}=this.options,u=s/o,c=(r-u)/i,A=(r+1+u)/i,d={features:[]};return this._addTileFeatures(a.range((n-u)/i,c,(n+1+u)/i,A),a.data,n,r,i,d),n===0&&this._addTileFeatures(a.range(1-u/i,c,1,A),a.data,i,r,i,d),n===i-1&&this._addTileFeatures(a.range(0,c,u/i,A),a.data,-1,r,i,d),d.features.length?d:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(t);if(n++,r.length!==1)break;t=r[0].properties.cluster_id}return n}_appendLeaves(t,n,r,a,i){const o=this.getChildren(n);for(const s of o){const u=s.properties;if(u&&u.cluster?i+u.point_count<=a?i+=u.point_count:i=this._appendLeaves(t,u.cluster_id,r,a,i):i<a?i++:t.push(s),t.length===r)break}return i}_createTree(t){const n=new g4(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)n.add(t[r],t[r+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,r,a,i,o){for(const s of t){const u=s*this.stride,c=n[u+LA]>1;let A,d,f;if(c)A=AY(n,u,this.clusterProps),d=n[u],f=n[u+1];else{const p=this.points[n[u+EA]];A=p.properties;const[v,y]=p.geometry.coordinates;d=O_(v),f=I_(y)}const h={type:1,geometry:[[Math.round(this.options.extent*(d*i-r)),Math.round(this.options.extent*(f*i-a))]],tags:A};let m;c||this.options.generateId?m=n[u+EA]:m=this.points[n[u+EA]].id,m!==void 0&&(h.id=m),o.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:r,extent:a,reduce:i,minPoints:o}=this.options,s=r/(a*Math.pow(2,n)),u=t.data,c=[],A=this.stride;for(let d=0;d<u.length;d+=A){if(u[d+gf]<=n)continue;u[d+gf]=n;const f=u[d],h=u[d+1],m=t.within(u[d],u[d+1],s),p=u[d+LA];let v=p;for(const y of m){const g=y*A;u[g+gf]>n&&(v+=u[g+LA])}if(v>p&&v>=o){let y=f*p,g=h*p,_,b=-1;const B=((d/A|0)<<5)+(n+1)+this.points.length;for(const M of m){const x=M*A;if(u[x+gf]<=n)continue;u[x+gf]=n;const E=u[x+LA];y+=u[x]*E,g+=u[x+1]*E,u[x+_4]=B,i&&(_||(_=this._map(u,d,!0),b=this.clusterProps.length,this.clusterProps.push(_)),i(_,this._map(u,x)))}u[d+_4]=B,c.push(y/v,g/v,1/0,B,-1,v),i&&c.push(b)}else{for(let y=0;y<A;y++)c.push(u[d+y]);if(v>1)for(const y of m){const g=y*A;if(!(u[g+gf]<=n)){u[g+gf]=n;for(let _=0;_<A;_++)c.push(u[g+_])}}}}return c}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,r){if(t[n+LA]>1){const o=this.clusterProps[t[n+lY]];return r?Object.assign({},o):o}const a=this.points[t[n+EA]].properties,i=this.options.map(a);return r&&i===a?Object.assign({},i):i}};function cY(e,t,n){return{type:"Feature",id:e[t+EA],properties:AY(e,t,n),geometry:{type:"Point",coordinates:[bLe(e[t]),wLe(e[t+1])]}}}function AY(e,t,n){const r=e[t+LA],a=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,i=e[t+lY],o=i===-1?{}:Object.assign({},n[i]);return Object.assign(o,{cluster:!0,cluster_id:e[t+EA],point_count:r,point_count_abbreviated:a})}function O_(e){return e/360+.5}function I_(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function bLe(e){return(e-.5)*360}function wLe(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function b4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}let di=class{static isAdvancedMarkerAvailable(t){return google.maps.marker&&t.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,n){this.isAdvancedMarker(t)?t.map=n:t.setMap(n)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(Number.isFinite(t.position.lat)&&Number.isFinite(t.position.lng))return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return this.isAdvancedMarker(t)?!0:t.getVisible()}},l0=class{constructor({markers:t,position:n}){this.markers=[],t&&(this.markers=t),n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(this.markers.length===0&&!this._position)return;const t=new google.maps.LatLngBounds(this._position,this._position);for(const n of this.markers)t.extend(di.getPosition(n));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>di.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(di.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}};function hc(e,t="assertion failed"){if(e==null)throw Error(t)}const BLe=(e,t,n,r)=>{const a=e.getBounds();hc(a);const i=dY(a,t,r);return n.filter(o=>i.contains(di.getPosition(o)))},dY=(e,t,n)=>{const{northEast:r,southWest:a}=CLe(e,t),i=SLe({northEast:r,southWest:a},n);return kLe(i,t)},xLe=(e,t,n)=>{const r=dY(e,t,n),a=r.getNorthEast(),i=r.getSouthWest();return[i.lng(),i.lat(),a.lng(),a.lat()]},CLe=(e,t)=>{const n=t.fromLatLngToDivPixel(e.getNorthEast()),r=t.fromLatLngToDivPixel(e.getSouthWest());return hc(n),hc(r),{northEast:n,southWest:r}},SLe=({northEast:e,southWest:t},n)=>(e.x+=n,e.y-=n,t.x-=n,t.y+=n,{northEast:e,southWest:t}),kLe=({northEast:e,southWest:t},n)=>{const r=n.fromDivPixelToLatLng(t),a=n.fromDivPixelToLatLng(e);return new google.maps.LatLngBounds(r,a)};let fY=class{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return ELe(t)}};class MLe extends fY{constructor(t){var{viewportPadding:n=60}=t,r=b4(t,["viewportPadding"]);super(r),this.viewportPadding=60,this.viewportPadding=n}calculate({markers:t,map:n,mapCanvasProjection:r}){const a=n.getZoom();return hc(a),a>=this.maxZoom?{clusters:this.noop({markers:t}),changed:!1}:{clusters:this.cluster({markers:BLe(n,r,t,this.viewportPadding),map:n,mapCanvasProjection:r})}}}const ELe=e=>e.map(t=>new l0({position:di.getPosition(t),markers:[t]}));class LLe extends fY{constructor(t){var{maxZoom:n,radius:r=60}=t,a=b4(t,["maxZoom","radius"]);super({maxZoom:n}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new uY(Object.assign({maxZoom:this.maxZoom,radius:r},a))}calculate(t){let n=!1,r=t.map.getZoom();hc(r),r=Math.round(r);const a={zoom:r};if(!F_(t.markers,this.markers)){n=!0,this.markers=[...t.markers];const i=this.markers.map(o=>{const s=di.getPosition(o);return{type:"Feature",geometry:{type:"Point",coordinates:[s.lng(),s.lat()]},properties:{marker:o}}});this.superCluster.load(i)}return n||(this.state.zoom<=this.maxZoom||a.zoom<=this.maxZoom)&&(n=!F_(this.state,a)),this.state=a,t.markers.length===0?(this.clusters=[],{clusters:this.clusters,changed:n}):(n&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:n})}cluster({map:t}){const n=t.getZoom();return hc(n),this.superCluster.getClusters([-180,-90,180,90],Math.round(n)).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[t,n]},properties:r}){if(r.cluster)return new l0({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:n,lng:t}});const a=r.marker;return new l0({markers:[a],position:di.getPosition(a)})}}class TLe extends MLe{constructor(t){var{maxZoom:n,radius:r=60,viewportPadding:a=60}=t,i=b4(t,["maxZoom","radius","viewportPadding"]);super({maxZoom:n,viewportPadding:a}),this.markers=[],this.clusters=[],this.superCluster=new uY(Object.assign({maxZoom:this.maxZoom,radius:r},i)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(t){const n=this.getViewportState(t);let r=!F_(this.state,n);if(!F_(t.markers,this.markers)){r=!0,this.markers=[...t.markers];const a=this.markers.map(i=>{const o=di.getPosition(i);return{type:"Feature",geometry:{type:"Point",coordinates:[o.lng(),o.lat()]},properties:{marker:i}}});this.superCluster.load(a)}return r&&(this.clusters=this.cluster(t),this.state=n),{clusters:this.clusters,changed:r}}cluster(t){const n=this.getViewportState(t);return this.superCluster.getClusters(n.view,n.zoom).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[t,n]},properties:r}){if(r.cluster)return new l0({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:n,lng:t}});const a=r.marker;return new l0({markers:[a],position:di.getPosition(a)})}getViewportState(t){const n=t.map.getZoom(),r=t.map.getBounds();return hc(n),hc(r),{zoom:Math.round(n),view:xLe(r,t.mapCanvasProjection,this.viewportPadding)}}}class NLe{constructor(t,n){this.markers={sum:t.length};const r=n.map(i=>i.count),a=r.reduce((i,o)=>i+o,0);this.clusters={count:n.length,markers:{mean:a/n.length,sum:a,min:Math.min(...r),max:Math.max(...r)}}}}class FLe{render({count:t,position:n},r,a){const i=`<svg fill="${t>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
149
+ Count: ${i.doc_count}`}))]}:{marginTop:30,marks:[oH(),t4(["No data available!"],{frameAnchor:"middle"})]}});n.value.innerHTML="",n.value.appendChild(a)}return(a,i)=>(l.openBlock(),l.createElementBlock("div",uMe,[l.createElementVNode("div",cMe,[l.createElementVNode("span",null,l.toDisplayString(e.title)+" Timeline ("+l.toDisplayString(e.total)+" Events)",1)]),l.createElementVNode("div",{ref_key:"myplot",ref:n,class:"px-4 pb-4"},null,512)]))}},dMe={props:{id:{type:String,required:!0},width:{type:Number,default:350},height:{type:Number,default:200}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Qt("#"+this.id).append("svg").attr("width",this.width>700?this.width+150:this.width+75).attr("height",this.height)},createChart(){const e=this.width,t=this.height,n=20,r=15,a=1,i=.3,o=cA([0,1],[i,e-r]),s=fs([0,1],[t-a,n]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-a})`).call(mo(o)),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${i},0)`).call(Yd(s)),this.svg.append("text").attr("x",e/2).attr("y",t/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available")}}},fMe=["id"];function hMe(e,t,n,r,a,i){return l.openBlock(),l.createElementBlock("div",{id:n.id},null,8,fMe)}const CH=sr(dMe,[["render",hMe]]),pMe={path:"M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"},mMe={path:"M12 18v-5.25m0 0a6.01 6.01 0 0 0 1.5-.189m-1.5.189a6.01 6.01 0 0 1-1.5-.189m3.75 7.478a12.06 12.06 0 0 1-4.5 0m3.75 2.383a14.406 14.406 0 0 1-3 0M14.25 18v-.192c0-.983.658-1.823 1.508-2.316a7.5 7.5 0 1 0-7.517 0c.85.493 1.509 1.333 1.509 2.316V18"},gMe={path:"M13.4685 21.7782C13.6185 21.9282 13.8085 21.9982 13.9985 21.9982V21.9882C14.1885 21.9882 14.3785 21.9182 14.5285 21.7682C14.8185 21.4782 14.8185 20.9982 14.5285 20.7082L13.2385 19.4182C13.1385 19.3282 13.1385 19.1682 13.2385 19.0682L20.1985 12.1082C20.8685 11.4382 21.2485 10.5382 21.2485 9.57821C21.2485 8.61821 20.8785 7.71821 20.1985 7.04821C19.3885 6.23821 18.2785 5.89822 17.2185 6.02822C17.2485 5.87822 17.2485 5.72821 17.2485 5.57821C17.2485 4.61821 16.8785 3.71821 16.1985 3.04821C14.8085 1.65821 12.5385 1.64821 11.1385 3.04821L2.96848 11.2182C2.67848 11.5082 2.67848 11.9882 2.96848 12.2782C3.25848 12.5682 3.73854 12.5682 4.02854 12.2782L12.1985 4.1082C13.0085 3.2982 14.3285 3.2982 15.1385 4.1082C15.5285 4.4982 15.7485 5.02821 15.7485 5.57821C15.7485 6.12821 15.5285 6.65821 15.1385 7.04821L8.96848 13.2182C8.67848 13.5082 8.67848 13.9882 8.96848 14.2782C9.25848 14.5682 9.73854 14.5682 10.0285 14.2782L16.1985 8.1082C17.0085 7.2982 18.3285 7.2982 19.1385 8.1082C19.5285 8.4982 19.7485 9.01821 19.7485 9.57821C19.7485 10.1382 19.5385 10.6582 19.1385 11.0482L12.1786 18.0182C11.4986 18.6982 11.4986 19.8082 12.1786 20.4882L13.4685 21.7782ZM6.79907 16.4475C7.4978 17.1462 8.40568 17.4962 9.32397 17.4975C9.32231 17.4975 9.32064 17.4975 9.31897 17.4975H9.32898C9.32731 17.4975 9.32564 17.4975 9.32397 17.4975C10.2423 17.4962 11.1603 17.1462 11.859 16.4475L18.0291 10.2775C18.3191 9.9875 18.3191 9.5075 18.0291 9.2175C17.7391 8.9275 17.259 8.9275 16.969 9.2175L10.7991 15.3875C9.98907 16.1975 8.66901 16.1975 7.85901 15.3875C7.46901 14.9975 7.24902 14.4775 7.24902 13.9175C7.24902 13.3575 7.45901 12.8375 7.85901 12.4475L14.0291 6.2775C14.3191 5.9875 14.3191 5.5075 14.0291 5.2175C13.7391 4.9275 13.259 4.9275 12.969 5.2175L6.79907 11.3875C6.12907 12.0575 5.74902 12.9575 5.74902 13.9175C5.74902 14.8775 6.11907 15.7775 6.79907 16.4475Z"},uu=225,ll=43,cf=10,Af=60,SH=.8,vMe=1,kH=10,df=10,ff=10,d4=10,f4=6,MH=14,EH=24,yMe={components:{Slideout:j8,FormCol:Ha,FormSection:cm,GreyInput:Ki,CodeEditor:p5,LinkIcon:Qee},props:{data:{type:Object,required:!0},fontSize:{type:String,default:"12px"},theme:{type:String,default:"light"},id:{type:String,default:"id"}},data(){return{svg:null,selected:null,slideout:!1,slideoutTitle:"Hello World",slideoutData:{},depth:0,maxLeaf:0}},computed:{chartData(){return this.data},height(){return this.maxLeaf>0?df+this.maxLeaf*(ll+cf)+ll+f4:100},width(){return this.depth>0?ff+this.depth*(uu+Af)+uu+d4:100}},watch:{id:{handler(e){this.getMaxDepthAndY(this.chartData),this.drawChart()},deep:!0}},mounted(){this.initializeChart(),this.getMaxDepthAndY(this.chartData),this.drawChart()},methods:{initializeChart(){this.svg||(this.svg=Qt(`#decision-chart-${this.id}`).append("svg").attr("width",this.width).attr("height",this.height))},drawChart(){const e=Ea[this.theme].text,t=Ea[this.theme].canvas,n=this;this.svg.attr("width",this.width),this.svg.attr("height",this.height),this.svg.selectAll("g.decisionChart").data(this.chartData,d=>d.id).join(d=>r(d),d=>void 0,d=>i(d));function r(d){const f=d.append("g").attr("class","decisionChart");o(f,0)}function a(d){}function i(d){d.call(f=>f.transition().duration(200).style("opacity",0).remove())}function o(d,f){d.append("rect").attr("class","dataBox").attr("id",h=>h.id).attr("width",uu).attr("height",ll).attr("x",h=>ff+f*(uu+Af)).attr("y",(h,m)=>df+h.y*(ll+cf)).attr("fill",t).attr("stroke",h=>h.type==="agent"?Ea[n.theme].info:h.type==="function"?Ea[n.theme].active:h.type==="response"?Ea[n.theme].active2:Ea[n.theme].inactive).attr("stroke-width",1.5).attr("rx",kH).attr("ry",kH).attr("opacity",0).on("mouseover",(h,m)=>{const p=h.target;Qt(p).style("cursor","pointer").attr("stroke-width",2).attr("opacity",vMe)}).on("mouseout",(h,m)=>{Qt(h.target).attr("stroke-width",1.5).attr("opacity",SH)}).on("click",(h,m)=>{n.slideoutTitle=m.name,n.slideoutData=m,n.slideout=!0}).transition().duration(500).attr("opacity",SH),d.append("path").attr("fill",h=>h.type==="response"?Ea[n.theme].active2:e).attr("transform",(h,m)=>"translate("+(ff+7+f*(uu+Af))+","+(df+9+h.y*(ll+cf))+")").attr("d",(h,m)=>h.type==="agent"?pMe.path:h.type==="function"?gMe.path:h.type==="response"?mMe.path:"").attr("opacity",0).transition().duration(700).attr("opacity",1),d.append("text").attr("x",h=>ff+EH+d4+f*(uu+Af)).attr("y",(h,m)=>df+f4+h.y*(ll+cf)).attr("text-anchor","start").attr("dominant-baseline","hanging").attr("fill",e).text(h=>Jc(h.name,1150)).attr("font-size",MH).attr("font-family","sans-serif").attr("font-weight","400").attr("pointer-events","none").attr("user-select","none").attr("opacity",0).transition().duration(700).attr("opacity",1),d.append("text").attr("x",h=>ff+EH+d4+f*(uu+Af)).attr("y",(h,m)=>df+f4+17+h.y*(ll+cf)).attr("text-anchor","start").attr("dominant-baseline","hanging").attr("fill",e).text(h=>{const m=h.type.charAt(0).toUpperCase()+h.type.slice(1),p=LU(n.getTimeTaken(h.started_at,h.ended_at));return`${m} - [took: ${p}]`}).attr("font-size",MH).attr("font-family","sans-serif").attr("font-weight","400").attr("pointer-events","none").attr("user-select","none").attr("opacity",0).transition().duration(700).attr("opacity",1),d.append("circle").attr("id",h=>h.id+"_circ_back").attr("cx",f*(uu+Af)+uu+ff).attr("cy",(h,m)=>df+h.y*(ll+cf)+ll/2).attr("r",h=>h.children.length?4:0).attr("fill",t).attr("stroke",h=>h.type==="agent"?Ea[n.theme].info:h.type==="function"?Ea[n.theme].active:Ea[n.theme].inactive).attr("stroke-width",2).attr("opacity",0).transition().duration(700).attr("opacity",1),f&&(d.append("circle").attr("id",h=>h.id+"_circ_front").attr("cx",f*(uu+Af)+ff).attr("cy",(h,m)=>df+h.y*(ll+cf)+ll/2).attr("r",4).attr("fill",t).attr("stroke",h=>h.type==="agent"?Ea[n.theme].info:h.type==="function"?Ea[n.theme].active:h.type==="response"?Ea[n.theme].active2:Ea[n.theme].inactive).attr("stroke-width",2).attr("opacity",0).transition().duration(700).attr("opacity",1),A(d,d.data(),n.svg.selectAll("circle"))),d.each(function(h){Qt(this).selectAll(`g.decisionChartChild${f+1}`).data(h.children,p=>p.id).join(p=>s(p,f+1),p=>void 0,p=>c(p))})}function s(d,f){const h=d.append("g").attr("class",`decisionChartChild${f}`);o(h,f)}function u(d,f){}function c(d){d.call(f=>f.transition().duration(2e3).style("opacity",0).remove())}function A(d,f,h){const m=f.map(p=>{const v=h.nodes().find(g=>g.id===`${p.parent_id}_circ_back`),y=h.nodes().find(g=>g.id===`${p.id}_circ_front`);return YBe()({source:[v.cx.baseVal.value,v.cy.baseVal.value],target:[y.cx.baseVal.value,y.cy.baseVal.value]})});d.append("path").attr("id",p=>p.parent_id+"-"+p.id).transition().duration(500).attr("d",(p,v)=>m[v]).attr("fill","none").attr("stroke",(p,v)=>vxe("green",p.parent_id+p.id)).attr("stroke-width",2).attr("opacity",1)}},getMaxDepthAndY(e){let t=0,n=0;function r(a){a.depth>t&&(t=a.depth),a.y>n&&(n=a.y),a.children.forEach(r)}e.forEach(r),this.depth=t,this.maxLeaf=n},getTimeTaken(e,t){const n=mt(e);return mt(t).diff(n,"milliseconds")},closeSlideout(){setTimeout(()=>{this.slideoutData={}},700),this.slideout=!1},routeToResponse(e){window.open(`https://platform.openai.com/logs/${e}`,"_blank")}}},_Me={class:"pt-2 overflow-x-auto"},bMe=["id"],wMe={class:"px-4"},BMe={class:"row"},xMe={class:"px-4"};function CMe(e,t,n,r,a,i){const o=l.resolveComponent("GreyInput"),s=l.resolveComponent("FormCol"),u=l.resolveComponent("LinkIcon"),c=l.resolveComponent("FormSection"),A=l.resolveComponent("CodeEditor"),d=l.resolveComponent("Slideout");return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",_Me,[l.createElementVNode("div",{id:`decision-chart-${n.id}`},null,8,bMe)]),l.createVNode(d,{open:a.slideout,title:a.slideoutTitle,onClose:i.closeSlideout,onHide:i.closeSlideout},{content:l.withCtx(()=>{var f,h,m,p;return[l.createVNode(c,{sectionName:"Details"},{default:l.withCtx(()=>[l.createElementVNode("div",wMe,[l.createVNode(s,{fieldName:"Name"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.name},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Type"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.type},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Started At"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.started_at},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Ended At"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:a.slideoutData.ended_at},null,8,["value"])]),_:1}),l.createVNode(s,{fieldName:"Time Taken (ms)"},{default:l.withCtx(()=>[l.createVNode(o,{readonly:"",value:`${i.getTimeTaken(a.slideoutData.started_at,a.slideoutData.ended_at)}`},null,8,["value"])]),_:1}),a.slideoutData.type==="response"?(l.openBlock(),l.createBlock(s,{key:0,fieldName:"Response ID"},{default:l.withCtx(()=>[l.createElementVNode("div",BMe,[l.createVNode(o,{readonly:"",value:a.slideoutData.span_data.response_id},null,8,["value"]),l.createVNode(u,{class:"icon-lg cursor-pointer icon-skyblue hover:opacity-75 m-1",onClick:t[0]||(t[0]=v=>i.routeToResponse(a.slideoutData.span_data.response_id))})])]),_:1})):l.createCommentVNode("",!0)])]),_:1}),(h=(f=a.slideoutData)==null?void 0:f.span_data)!=null&&h.input&&((p=(m=a.slideoutData)==null?void 0:m.span_data)!=null&&p.output)?(l.openBlock(),l.createBlock(c,{key:0,sectionName:"Results"},{default:l.withCtx(()=>[l.createElementVNode("div",xMe,[l.createVNode(s,{fieldName:"Input"},{default:l.withCtx(()=>[l.createVNode(A,{class:"p-3 !h-60",modelValue:a.slideoutData.span_data.input,"onUpdate:modelValue":t[1]||(t[1]=v=>a.slideoutData.span_data.input=v),fontSize:`${n.fontSize?n.fontSize:"12px"}`,isFPL:!1},null,8,["modelValue","fontSize"])]),_:1}),l.createVNode(s,{fieldName:"Output"},{default:l.withCtx(()=>[l.createVNode(A,{class:"p-3 !h-60",modelValue:a.slideoutData.span_data.output,"onUpdate:modelValue":t[2]||(t[2]=v=>a.slideoutData.span_data.output=v),fontSize:`${n.fontSize?n.fontSize:"12px"}`,isFPL:!1},null,8,["modelValue","fontSize"])]),_:1})])]),_:1})):l.createCommentVNode("",!0)]}),_:1},8,["open","title","onClose","onHide"])],64)}const SMe=sr(yMe,[["render",CMe]]),kMe={class:"w-full select-none std-table dark:dark-std-table"},MMe={class:"text-left bg-neutral-200 dark:dark-bg"},EMe={class:"std-table-body dark:dark-std-table-body"},LMe={__name:"ArgumentTable",props:{data:Object,readonly:[Boolean,Number]},setup(e){const t=e,n=l.ref(t.data),r=[{label:"String",value:"string"},{label:"Integer",value:"integer"},{label:"Float",value:"float"},{label:"Boolean",value:"boolean"}];return(a,i)=>(l.openBlock(),l.createElementBlock("table",kMe,[l.createElementVNode("thead",MMe,[l.createElementVNode("tr",null,[l.createVNode(l.unref(ea),{title:"Name"}),l.createVNode(l.unref(ea),{title:"Description"}),l.createVNode(l.unref(ea),{title:"Type"}),l.createVNode(l.unref(ea),{title:"Default Value"})])]),l.createElementVNode("tbody",EMe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(o,s)=>(l.openBlock(),l.createElementBlock("tr",{key:o.name},[l.createVNode(l.unref(Ya),{title:o.name},null,8,["title"]),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:o.description,"onUpdate:modelValue":u=>o.description=u,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createVNode(l.unref(nr),{modelValue:o.type,"onUpdate:modelValue":u=>o.type=u,options:r,readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createVNode(l.unref(Ki),{modelValue:o.defaultValue,"onUpdate:modelValue":u=>o.defaultValue=u,modelModifiers:{trim:!0},readonly:e.readonly},null,8,["modelValue","onUpdate:modelValue","readonly"])]),_:2},1024)]))),128))])]))}},TMe={class:"row relative"},NMe={__name:"ArgumentRunTable",props:{data:Object,attributes:{type:Array,default:()=>[]},errors:{type:Object,default:()=>({})}},setup(e){const t={string:"String",integer:"Integer",float:"Float",boolean:"Boolean"},n=e,r=l.ref(n.data),a=l.ref(-1),i=l.ref();l.watch(()=>n.data,u=>{r.value=u});function o(u){a.value=u,i.value.openModal()}function s(u){r.value[a.value].value=u.val,a.value=-1,i.value.close()}return(u,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createVNode(l.unref(Fm),{data:["padding"]},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[l.createVNode(l.unref(ea),{title:"Name"}),l.createVNode(l.unref(ea),{title:"Description"}),l.createVNode(l.unref(ea),{title:"Type"}),l.createVNode(l.unref(ea),{title:"Value"})])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(A,d)=>(l.openBlock(),l.createElementBlock("tr",{key:A.name},[l.createVNode(l.unref(Ya),{title:A.name},null,8,["title"]),l.createVNode(l.unref(Ya),{title:A.description},null,8,["title"]),l.createVNode(l.unref(Ya),{title:t[A.type]},null,8,["title"]),l.createVNode(l.unref(Ya),null,{default:l.withCtx(()=>[l.createElementVNode("div",TMe,[l.createVNode(l.unref(Ki),{modelValue:A.value,"onUpdate:modelValue":f=>A.value=f,error:e.errors[A.name]},null,8,["modelValue","onUpdate:modelValue","error"]),e.attributes.length>0?(l.openBlock(),l.createBlock(l.unref(Wc),{key:0,tooltip:"Use Attribute","tooltip-direction":"left",onClick:f=>o(d)},{default:l.withCtx(()=>[l.createVNode(l.unref(jee),{class:"icon-md"})]),_:2},1032,["onClick"])):l.createCommentVNode("",!0)])]),_:2},1024)]))),128))]),_:1}),l.createVNode(l.unref(w8),{ref_key:"chooseValue",ref:i,values:e.attributes,title:"Choose Attribute",nameField:"Attribute",saveButtonText:"Set Attribute",onSave:s},null,8,["values"])],64))}},FMe={class:"px-4 py-2"},OMe={class:"px-4 py-2"},IMe={class:"px-4 py-2"},DMe={__name:"CloudFormationParameters",props:{data:Object},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(l.unref(Fm),{data:e.data},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[l.createVNode(l.unref(ea),{title:"Name",class:"px-4 py-2"}),l.createVNode(l.unref(ea),{title:"Description",class:"px-4 py-2"}),l.createVNode(l.unref(ea),{title:"Value",class:"px-4 py-2"})])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,r=>(l.openBlock(),l.createElementBlock("tr",{key:r.name},[l.createElementVNode("td",FMe,l.toDisplayString(r.name),1),l.createElementVNode("td",OMe,l.toDisplayString(r.description),1),l.createElementVNode("td",IMe,l.toDisplayString(r.value),1)]))),128))]),_:1},8,["data"]))}},UMe={class:"w-full hover:white-bg-hover dark:hover:dark-bg-hover p-2 flex items-center justify-between"},PMe={class:"flex ml-4"},HMe={__name:"Child",props:{parent:Object,level:Number,readonly:{type:[Boolean,Number],default:!1}},emits:["add"],setup(e,{emit:t}){const n=e,r=t,a=l.computed(()=>n.parent.children?n.parent.children.sort((o,s)=>o.type==="bool"&&s.type!=="bool"?1:o.type!=="bool"&&s.type==="bool"?-1:0):[]);function i(o,s,u={}){r("add",o,s,u)}return(o,s)=>{const u=l.resolveComponent("Child",!0);return l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,c=>(l.openBlock(),l.createElementBlock("ul",null,[l.createElementVNode("li",UMe,[l.createElementVNode("div",{style:l.normalizeStyle(`padding-left: ${e.level*12}px`)},l.toDisplayString(c.exclude?"NOT ":"")+" "+l.toDisplayString(c.type!=="bool"?`${c.type} `:c.boolType)+l.toDisplayString(c.label),5),l.createElementVNode("div",PMe,[n.readonly?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(l.unref(n1),{key:0,add:c.type==="bool",edit:"",delete:"",onAdd:A=>i(!1,c),onEdit:A=>i(!0,e.parent,c),onDelete:A=>e.parent.children.splice(e.parent.children.indexOf(c),1)},null,8,["add","onAdd","onEdit","onDelete"]))])]),l.createElementVNode("li",null,[c.children&&c.children.length?(l.openBlock(),l.createBlock(u,{key:0,parent:c,level:e.level+2,readonly:n.readonly,onAdd:i},null,8,["parent","level","readonly"])):l.createCommentVNode("",!0)])]))),256)}}},YMe={class:"w-full px-2"},QMe={class:"w-full hover:white-bg-hover dark:hover:dark-bg-hover p-2 flex items-center justify-between"},RMe={class:"flex"},jMe={__name:"LVDBQuery",props:{query:Object,readonly:{type:[Boolean,Number],default:!1}},emits:["add","delete"],setup(e,{emit:t}){const n=e,r=t,a=l.ref(n.query);function i(o,s,u={}){r("add",o,s,u)}return(o,s)=>{var u;return l.openBlock(),l.createElementBlock("ul",YMe,[l.createElementVNode("li",QMe,[l.createElementVNode("div",null,l.toDisplayString(a.value.type),1),l.createElementVNode("div",RMe,[!((u=a.value.children)!=null&&u.length)&&!n.readonly?(l.openBlock(),l.createBlock(l.unref(n1),{key:0,add:"",onAdd:s[0]||(s[0]=c=>i(!1,a.value))})):l.createCommentVNode("",!0)])]),l.createVNode(HMe,{parent:a.value,readonly:e.readonly,level:2,onAdd:i},null,8,["parent","readonly"])])}}},VMe={class:"grid grid-cols-3 md:grid-cols-4"},zMe={__name:"FacetPage",props:{searchBar:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},facetOptions:{type:Object,default:()=>({})},dict:{type:Array,default:()=>[]},sortable:{type:Boolean,default:!1},sortBy:{type:Array,default:()=>[]},currentSort:{type:Object,default:()=>({})}},emits:["search","sort"],setup(e,{emit:t}){const n=t;return(r,a)=>(l.openBlock(),l.createElementBlock("div",null,[e.searchBar&&!e.hideSearch?(l.openBlock(),l.createBlock(P8,{key:0,str:e.facetOptions.searchStr,dict:e.dict,class:"my-2 pb-2",onSearch:a[1]||(a[1]=i=>n("search",i))},{right:l.withCtx(()=>[e.sortable?(l.openBlock(),l.createBlock(BF,{key:0,class:"ml-2",options:e.sortBy,current:e.currentSort,onSort:a[0]||(a[0]=i=>n("sort",i))},null,8,["options","current"])):l.createCommentVNode("",!0)]),_:1},8,["str","dict"])):l.createCommentVNode("",!0),l.createElementVNode("div",VMe,[l.createElementVNode("div",{class:l.normalizeClass(["w-full col-span-3 md:col md:col-span-1 md:overflow-auto",{"md:page-height-search":e.searchBar},{"md:page-height":!e.searchBar}])},[l.renderSlot(r.$slots,"facet")],2),l.createElementVNode("div",{class:l.normalizeClass(["col-span-3 md:ml-5 md:overflow-auto",{"md:page-height-search":e.searchBar},{"md:page-height":!e.searchBar}])},[l.renderSlot(r.$slots,"content")],2)])]))}},qMe={class:"absolute top-0 z-50 w-44 rounded-3xl shadow-lg ring-1 ring-gray-900/5 left-full white-bg text-gray-700 dark:bg-black dark:text-gray-300"},LH={__name:"GrandChild",props:{children:{type:Object,required:!0},currentRoute:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t;return(a,i)=>{const o=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",qMe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.children,s=>(l.openBlock(),l.createBlock(o,{to:{name:s.route,params:s.params},onClick:i[0]||(i[0]=u=>r("close"))},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["rounded-lg m-2 p-3 text-sm leading-6",n.currentRoute===s.route?"bg-slate-300 dark:bg-slate-700":"hover:bg-gray-200 dark:hover:bg-neutral-700"])},l.toDisplayString(s.name),3)]),_:2},1032,["to"]))),256))])}}},KMe={class:"flex items-center justify-end"},GMe={class:"mt-6 flow-root white-bg text-gray-700 dark:bg-black dark:text-gray-300 rounded-3xl p-3"},WMe={class:"-my-6 divide-y divide-gray-500/10"},XMe={class:"space-y-2 py-6"},JMe=["onMouseenter","onMouseleave"],ZMe={class:"row rounded-lg pl-6 pr-3 leading-7 cursor-pointer"},$Me={class:"flex w-full items-center rounded-lg py-2 pl-3 pr-3.5 text-base font-semibold leading-7 hover:font-bold"},eEe={__name:"DialogMenu",props:{mobileMenuOpen:Boolean,navigation:Array,currentRoute:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,a=l.ref(n.navigation);return(i,o)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(l.unref(Xf),{as:"div",class:"lg:hidden",open:e.mobileMenuOpen,onClick:o[4]||(o[4]=u=>r("close")),onClose:o[5]||(o[5]=u=>r("close"))},{default:l.withCtx(()=>[o[7]||(o[7]=l.createElementVNode("div",{class:"fixed inset-0 z-50"},null,-1)),l.createVNode(l.unref(bv),{class:"fixed top-8 left-0 z-50 w-80 px-2 py-6 sm:px-6 sm:top-2 sm:w-full sm:max-w-sm sm:ring-1 sm:ring-gray-900/10"},{default:l.withCtx(()=>[l.createElementVNode("div",KMe,[l.createElementVNode("button",{type:"button",class:"-m-2.5 rounded-md p-2.5",onClick:o[0]||(o[0]=u=>r("close"))},[o[6]||(o[6]=l.createElementVNode("span",{class:"sr-only"},"Close menu",-1)),l.createVNode(l.unref(A5),{class:"icon-lg","aria-hidden":"true"})])]),l.createElementVNode("div",GMe,[l.createElementVNode("div",WMe,[l.createElementVNode("div",XMe,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.value,u=>(l.openBlock(),l.createElementBlock("div",{key:u.name},[u.children?(l.openBlock(),l.createBlock(l.unref(Y$),{key:0,as:"div"},{default:l.withCtx(({open:c})=>[l.createVNode(l.unref(DL),{class:"flex w-full items-center rounded-lg py-2 pl-3 pr-3.5 text-base font-medium leading-7 hover:font-bold"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(u.icon),{class:"h-6 flex-shrink-0 hover:font-bold pr-2","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(u.name)+" ",1),l.createVNode(l.unref(Zv),{class:l.normalizeClass([c?"rotate-180":"","icon-md right-10 absolute"]),"aria-hidden":"true"},null,8,["class"])]),_:2},1024),l.createVNode(l.unref(Q$),{class:"mt-2 space-y-2"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(u.children,A=>(l.openBlock(),l.createElementBlock("div",null,[A.children?(l.openBlock(),l.createElementBlock("div",{key:1,class:"relative text-sm font-medium hover:font-bold",onMouseenter:d=>A.expanded=!0,onMouseleave:d=>A.expanded=!1},[l.createElementVNode("span",ZMe,[l.createTextVNode(l.toDisplayString(A.name)+" ",1),l.createVNode(l.unref(C8),{class:"icon-md absolute right-4 sm:right-0"})]),A.expanded?(l.openBlock(),l.createBlock(LH,{key:0,children:A.children,currentRoute:e.currentRoute,onClose:o[2]||(o[2]=d=>r("close"))},null,8,["children","currentRoute"])):l.createCommentVNode("",!0)],40,JMe)):(l.openBlock(),l.createBlock(s,{key:A.name,to:{name:A.route,params:A.params},class:l.normalizeClass(["text-sm font-medium",n.currentRoute===A.route?"font-semibold text-slate-900 dark:text-slate-100":"hover:font-bold"]),onClick:o[1]||(o[1]=d=>r("close"))},{default:l.withCtx(()=>[l.createVNode(l.unref(DL),{class:"block rounded-lg pl-6 pr-3 leading-7"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(A.name),1)]),_:2},1024)]),_:2},1032,["to","class"]))]))),256))]),_:2},1024)]),_:2},1024)):(l.openBlock(),l.createBlock(s,{key:1,to:{name:u.route},onClick:o[3]||(o[3]=c=>r("close"))},{default:l.withCtx(()=>[l.createElementVNode("div",$Me,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(u.icon),{class:"h-6 flex-shrink-0 hover:font-bold pr-2","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(u.name),1)])]),_:2},1032,["to"]))]))),128))])])])]),_:1})]),_:1,__:[7]},8,["open"])}}},tEe={key:0,class:"absolute inset-y-0 left-0 flex items-center pl-1"},nEe={class:l.normalizeClass(["block truncate"])},rEe={__name:"GridMenu",props:{options:Array,selected:Object},emits:["update"],setup(e,{emit:t}){const n=e,r=t,a=l.ref(n.selected),i=l.ref(""),o=l.computed(()=>n.options.filter(s=>(s.label.toLowerCase()+s.value.toLowerCase()).includes(i.value.toLowerCase())));return l.watch(()=>n.selected,s=>{a.value=s}),(s,u)=>(l.openBlock(),l.createBlock(l.unref(am),{as:"div",class:"py-1 relative",modelValue:a.value,"onUpdate:modelValue":[u[2]||(u[2]=c=>a.value=c),u[3]||(u[3]=c=>r("update",c))]},{default:l.withCtx(()=>[l.createVNode(l.unref(vv),{class:"w-full border-2 text-sm bg-transparent p-1 px-2 pr-4 focus:ring-0",onChange:u[0]||(u[0]=c=>i.value=c.target.value),displayValue:c=>c.label},null,8,["displayValue"]),l.createVNode(l.unref(gv),{class:"absolute inset-y-0 right-0 flex items-center pr-2"},{default:l.withCtx(()=>[l.createVNode(l.unref(eue),{class:"icon-md"})]),_:1}),l.createVNode(l.unref(Qc),{leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",onAfterLeave:u[1]||(u[1]=c=>i.value="")},{default:l.withCtx(()=>[l.createVNode(l.unref(im),{class:"absolute z-50 mt-1 max-h-96 w-full overflow-auto p-1 text-base text-sm white-bg text-gray-700 dark:bg-black dark:text-gray-300"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.value,c=>(l.openBlock(),l.createBlock(l.unref(Wf),{as:"template",key:c.value,value:c},{default:l.withCtx(({selected:A,active:d})=>[l.createElementVNode("li",{class:l.normalizeClass([d?"bg-indigo-600 text-white":"","relative cursor-default select-none py-2 pl-8 pr-3"])},[A?(l.openBlock(),l.createElementBlock("span",tEe,[l.createVNode(l.unref(x8),{class:"icon","aria-hidden":"true"})])):l.createCommentVNode("",!0),l.createElementVNode("span",nEe,l.toDisplayString(c.label),1)],2)]),_:2},1032,["value"]))),128))]),_:1})]),_:1})]),_:1},8,["modelValue"]))}},aEe={class:"py-1 px-2 white-bg text-gray-700 dark:bg-black dark:text-gray-300"},iEe={class:"rounded-lg p-4 text-sm leading-6 hover:bg-gray-200 dark:hover:bg-neutral-700"},oEe={__name:"MenuAvatar",props:{fullName:{type:String,default:"Fluency User"}},setup(e){const t=[{name:"Profile",route:"profile"},{name:"Logout",route:"logout"}],n=e,r=l.computed(()=>{var s,u;const a=n.fullName.split(" "),i=((s=a[0][0])==null?void 0:s.toUpperCase())||"A",o=((u=a[a.length-1][0])==null?void 0:u.toUpperCase())||"U";return`${i}${o}`});return(a,i)=>{const o=l.resolveComponent("router-link");return l.openBlock(),l.createBlock(l.unref(ku),{as:"div",class:"relative ml-auto mt-1.5"},{default:l.withCtx(()=>[l.createVNode(l.unref(Mu),{class:"rounded-full ring-2 size-7 ring-black dark:ring-white text-sm"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(r.value),1)]),_:1}),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Eu),{class:"absolute right-0 top-full z-50 mt-3 w-44 overflow-hidden rounded-3xl shadow-lg ring-1 ring-gray-900/5"},{default:l.withCtx(()=>[(l.openBlock(),l.createElementBlock(l.Fragment,null,l.renderList(t,s=>l.createVNode(l.unref(es),{key:s.name},{default:l.withCtx(({close:u})=>[l.createElementVNode("div",aEe,[l.createVNode(o,{to:{name:s.route,params:s.params},onClick:u},{default:l.withCtx(()=>[l.createElementVNode("div",iEe,l.toDisplayString(s.name),1)]),_:2},1032,["to","onClick"])])]),_:2},1024)),64))]),_:1})]),_:1})]),_:1})}}},sEe={class:"py-1 px-2 white-bg text-gray-700 dark:bg-black dark:text-gray-300"},lEe={key:1},uEe={class:"relative rounded-lg p-4 text-sm leading-6 hover:bg-gray-200 dark:hover:bg-neutral-700"},cEe={class:"relative row text-sm"},AEe={class:"menu"},dEe={class:"menu-button"},fEe={__name:"MenuDesktop",props:{navigation:Array,currentRoute:{type:String,default:""}},emits:[],setup(e,{emit:t}){return(n,r)=>{const a=l.resolveComponent("router-link");return l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.navigation,i=>(l.openBlock(),l.createElementBlock("div",{key:i.name},[i.children?(l.openBlock(),l.createBlock(l.unref(ku),{key:0,as:"div",class:"menu"},{default:l.withCtx(()=>[l.createVNode(l.unref(Mu),{class:"menu-button"},{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.icon),{class:"menu-icon","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(i.name)+" ",1),l.createVNode(l.unref(Zv),{class:"icon-md flex-none","aria-hidden":"true"})]),_:2},1024),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Eu),{class:"absolute -left-8 top-full z-50 mt-3 w-44 rounded-3xl shadow-lg ring-1 ring-gray-900/5"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(i.children,o=>(l.openBlock(),l.createBlock(l.unref(es),{key:o.name},{default:l.withCtx(({close:s,active:u})=>[l.createElementVNode("div",sEe,[o.children?(l.openBlock(),l.createElementBlock("div",lEe,[l.createElementVNode("div",uEe,[l.createElementVNode("span",cEe,[l.createTextVNode(l.toDisplayString(o.name)+" ",1),l.createVNode(l.unref(C8),{class:"icon-md absolute right-0"})]),u?(l.openBlock(),l.createBlock(LH,{key:0,children:o.children,currentRoute:e.currentRoute,onClose:s},null,8,["children","currentRoute","onClose"])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createBlock(a,{key:0,to:{name:o.route,params:o.params},onClick:s},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["rounded-lg p-4 text-sm leading-6",e.currentRoute===o.route?"bg-slate-300 dark:bg-slate-700":"hover:bg-gray-200 dark:hover:bg-neutral-700"])},l.toDisplayString(o.name),3)]),_:2},1032,["to","onClick"]))])]),_:2},1024))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)):(l.openBlock(),l.createBlock(a,{key:1,to:{name:i.route}},{default:l.withCtx(()=>[l.createElementVNode("div",AEe,[l.createElementVNode("div",dEe,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.icon),{class:"menu-icon","aria-hidden":"true"})),l.createTextVNode(" "+l.toDisplayString(i.name),1)])])]),_:2},1032,["to"]))]))),128)}}},hEe={class:"py-2 overflow-x-auto"},pEe={class:"text-lg font-semibold"},mEe={__name:"FPLAlert",props:{title:String,data:Object,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref([]);t.data.alerts&&r();function r(){const a=t.data.slots.map(i=>i*1e3);n.value=t.data.alerts?t.data.alerts.map(i=>({tags:i.dimensionTags?i.dimensionTags[0].tags:[],slots:a,action:i.key,metric:i.alertMetric,values:i.values[0].metric.values,series:i.associates?i.associates.filter(o=>o.name).map(o=>({action:o.name,values:o.metric.values})):[]})):[]}return(a,i)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,(o,s)=>(l.openBlock(),l.createElementBlock("div",hEe,[l.createElementVNode("h3",pEe,l.toDisplayString(o.action),1),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(o.tags,(u,c)=>(l.openBlock(),l.createBlock(l.unref(g5),{key:c,text:u.key+": "+u.values.join(", "),color:"blue"},null,8,["text"]))),128)),l.createVNode(l.unref(qx),{data:o,id:e.title+s,unit:"Value",height:300,width:800,theme:e.theme},null,8,["data","id","theme"])]))),256)),n.value.length===0?(l.openBlock(),l.createBlock(l.unref(CH),{key:0,id:e.title,height:300,width:800},null,8,["id"])):l.createCommentVNode("",!0)],64))}},gEe={class:"overflow-x-auto"},vEe={__name:"FPLStream",props:{title:String,data:Object,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref([]),r=t.data.slots.map(a=>a*1e3);return n.value=t.data.metrics?t.data.metrics.map(a=>({slots:r,action:a.key,values:a.values})):[],(a,i)=>(l.openBlock(),l.createElementBlock("div",gEe,[l.createVNode(l.unref(Qg),{data:n.value,id:e.title,unit:e.data.unit?e.data.unit:"Value",height:300,width:900,hideZeros:!1,theme:e.theme},null,8,["data","id","unit","theme"])]))}},yEe={__name:"FPLTable",props:{title:String,data:Object,paginationStore:Object},setup(e){const t=e,n=l.ref([]);t.paginationStore.$reset,t.data.rows&&t.data.rows.length>0&&(n.value=t.paginationStore.paginate(t.data.rows));function r(){n.value=t.paginationStore.previousPage(t.data.rows)}function a(){n.value=t.paginationStore.nextPage(t.data.rows)}function i(s){n.value=t.paginationStore.skipToPage(t.data.rows,s)}function o(s,u){return u==="B"?Kr(s)+"B":u==="$"?rf(s):u==="s"?TU(s):qr(s)+u}return(s,u)=>(l.openBlock(),l.createBlock(l.unref(Fm),{data:n.value},{header:l.withCtx(()=>[l.createElementVNode("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data.columns,c=>(l.openBlock(),l.createBlock(l.unref(ea),{key:c.name,title:c.name},null,8,["title"]))),128))])]),rows:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.value,c=>(l.openBlock(),l.createElementBlock("tr",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data.columns,A=>(l.openBlock(),l.createElementBlock("td",{key:A.name,class:"table-font dark:dark-table-font break-all"},l.toDisplayString(A.unit?o(c[A.name],A.unit):c[A.name]),1))),128))]))),256))]),pagination:l.withCtx(()=>[e.data.rows&&e.data.rows.length?(l.openBlock(),l.createBlock(l.unref(m5),{key:0,startPos:t.paginationStore.startPos,pageSize:t.paginationStore.pageSize,total:e.data.rows.length,onPrevious:u[0]||(u[0]=c=>r()),onNext:u[1]||(u[1]=c=>a()),onNavtopage:i},null,8,["startPos","pageSize","total"])):l.createCommentVNode("",!0)]),_:1},8,["data"]))}},_Ee={class:"py-2"},bEe={class:"text-lg font-semibold"},TH={__name:"Alert",props:{config:Object,obj:Object,layout:Object,id:String,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(!1),r=l.ref([]);l.watch(()=>[t.layout.w,t.layout.h],()=>{n.value=!0,setInterval(()=>{n.value=!1},1)}),a();function a(){const i=t.obj.alert.slots.map(o=>o*1e3);r.value=t.obj.alert.alerts?t.obj.alert.alerts.map(o=>{const s=o.associates||[];return{tags:o.dimensionTags?o.dimensionTags[0].tags:[],slots:i,action:o.key,metric:o.alertMetric,values:o.values[0].metric.values,series:s.filter(u=>u.name).map(u=>({action:u.name,values:u.metric.values}))}}):[],r.value=r.value.slice(0,t.config.topID)}return(i,o)=>n.value?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"overflow-auto",style:l.normalizeStyle(`height: ${e.layout.h*61-10}px`)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(r.value,(s,u)=>(l.openBlock(),l.createElementBlock("div",_Ee,[l.createElementVNode("h3",bEe,l.toDisplayString(s.action),1),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.tags,(c,A)=>(l.openBlock(),l.createBlock(l.unref(g5),{key:A,text:c.key+": "+c.values.join(", "),color:"blue"},null,8,["text"]))),128)),l.createVNode(l.unref(qx),{data:s,id:e.id+u,unit:"Value",height:300,width:e.layout.w*65-150,pannable:!1,theme:e.theme},null,8,["data","id","width","theme"])]))),256))],4))}},NH={__name:"AlertSprite",props:{config:Object,obj:Object},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("div",null,"AlertSprite"))}},FH={__name:"Chart",props:{config:Object,obj:Object,layout:Object,id:String,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(!1),r=l.ref([]);l.watch(()=>[t.layout.w,t.layout.h],()=>{n.value=!0,setInterval(()=>{n.value=!1},1)}),a();function a(){const i=t.obj.table.rows.map((o,s)=>o[t.config.value.column.name]);if(t.config.options.type==="line")r.value=t.config.categories.focus.map(o=>({action:o.name,slots:i,values:t.obj.table.rows.map(s=>s[o.name])}));else if(t.config.options.type==="bar"){const o={},s=[];t.config.categories.focus.forEach(u=>{o[u.name]=u.name,t.obj.table.rows.forEach((c,A)=>{s.push({slot:i[A],name:u.name,value:c[u.name]})})}),r.value={slots:i,names:o,series:s}}else r.value=[]}return(i,o)=>(l.openBlock(),l.createElementBlock("div",null,[e.config.options.type==="line"&&!n.value?(l.openBlock(),l.createBlock(l.unref(Qg),{key:0,data:r.value,id:e.id,unit:"Value",height:t.layout.h*60-40,width:t.layout.w*69-155,hideZeros:!1,isTime:!1,tooltipOffset:"offset","slot-name":e.config.value.column.name,theme:e.theme},null,8,["data","id","height","width","slot-name","theme"])):l.createCommentVNode("",!0),e.config.options.type==="bar"&&!n.value?(l.openBlock(),l.createBlock(l.unref(Rg),{key:1,data:r.value,names:r.value.names,id:e.id,unit:"Value",height:t.layout.h*60-50,width:t.layout.w*69-20,isTime:!1,tooltipOffset:"offset","slot-name":e.config.value.column.name,theme:e.theme},null,8,["data","names","id","height","width","slot-name","theme"])):l.createCommentVNode("",!0)]))}},wEe={class:"w-full",style:{height:"calc(100% - 40px)"}},OH={__name:"Counter",props:{config:Object,obj:Object,layout:Object,id:String,theme:{type:String,default:"light"}},setup(e){const t=e,n=l.ref(0);return t.obj.table.rows[0]&&(n.value=t.obj.table.rows[0][t.config.field]||0),(r,a)=>(l.openBlock(),l.createElementBlock("div",wEe,[l.createElementVNode("span",{class:l.normalizeClass(["flex items-center justify-center content-center h-full overflow-hidden",e.layout.w>4?"text-7xl":"text-5xl"])},l.toDisplayString(e.config.format==="Data"?l.unref(Kr)(n.value)+"B":e.config.format==="Readable Numbers"?l.unref(qr)(n.value.toPrecision(3)):n.value),3)]))}};(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mapdiv[data-v-289550ca]{width:100%;height:100%}.advanced-marker-wrapper{display:none}.mapdiv .advanced-marker-wrapper{display:inline-block}.custom-control-wrapper[data-v-ab9120cd]{display:none}.mapdiv .custom-control-wrapper[data-v-ab9120cd]{display:inline-block}.info-window-wrapper[data-v-f0c09f6e]{display:none}.mapdiv .info-window-wrapper[data-v-f0c09f6e]{display:inline-block}.custom-marker-wrapper[data-v-2d2d343a]{display:none}.mapdiv .custom-marker-wrapper[data-v-2d2d343a]{display:inline-block}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var BEe=Object.defineProperty,xEe=(e,t,n)=>t in e?BEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,IH=(e,t,n)=>(xEe(e,typeof t!="symbol"?t+"":t,n),n);const hf=Symbol("map"),pf=Symbol("api"),h4=Symbol("marker"),p4=Symbol("markerCluster"),T_=Symbol("CustomMarker"),DH=Symbol("mapTilesLoaded"),lp=["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"];function CEe(e,t,n,r){function a(i){return i instanceof n?i:new n(function(o){o(i)})}return new(n||(n=Promise))(function(i,o){function s(A){try{c(r.next(A))}catch(d){o(d)}}function u(A){try{c(r.throw(A))}catch(d){o(d)}}function c(A){A.done?i(A.value):a(A.value).then(s,u)}c((r=r.apply(e,[])).next())})}function SEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UH,PH;function kEe(){return PH||(PH=1,UH=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),UH}var MEe=kEe(),EEe=SEe(MEe);const HH="__googleMapsScriptId";var up;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(up||(up={}));let LEe=class Jp{constructor({apiKey:t,authReferrerPolicy:n,channel:r,client:a,id:i=HH,language:o,libraries:s=[],mapIds:u,nonce:c,region:A,retries:d=3,url:f="https://maps.googleapis.com/maps/api/js",version:h}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=n,this.channel=r,this.client=a,this.id=i||HH,this.language=o,this.libraries=s,this.mapIds=u,this.nonce=c,this.region=A,this.retries=d,this.url=f,this.version=h,Jp.instance){if(!EEe(this.options,Jp.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Jp.instance.options)}`);return Jp.instance}Jp.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?up.FAILURE:this.done?up.SUCCESS:this.loading?up.LOADING:up.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+="?callback=__googleMapsCallback&loading=async",this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,n)=>{this.loadCallback(r=>{r?n(r.error):t(window.google)})})}importLibrary(t){return this.execute(),google.maps.importLibrary(t)}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){var t,n;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(i=>!r[i]&&delete r[i]),!((n=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.maps)===null||n===void 0)&&n.importLibrary||(i=>{let o,s,u,c="The Google Maps JavaScript API",A="google",d="importLibrary",f="__ib__",h=document,m=window;m=m[A]||(m[A]={});const p=m.maps||(m.maps={}),v=new Set,y=new URLSearchParams,g=()=>o||(o=new Promise((_,b)=>CEe(this,void 0,void 0,function*(){var B;yield s=h.createElement("script"),s.id=this.id,y.set("libraries",[...v]+"");for(u in i)y.set(u.replace(/[A-Z]/g,M=>"_"+M[0].toLowerCase()),i[u]);y.set("callback",A+".maps."+f),s.src=this.url+"?"+y,p[f]=_,s.onerror=()=>o=b(Error(c+" could not load.")),s.nonce=this.nonce||((B=h.querySelector("script[nonce]"))===null||B===void 0?void 0:B.nonce)||"",h.head.append(s)})));p[d]?console.warn(c+" only loads once. Ignoring:",i):p[d]=(_,...b)=>v.add(_)&&g().then(()=>p[d](_,...b))})(r);const a=this.libraries.map(i=>this.importLibrary(i));a.length||a.push(this.importLibrary("core")),Promise.all(a).then(()=>this.callback(),i=>{const o=new ErrorEvent("error",{error:i});this.loadErrorCallback(o)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const n=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${n} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},n)}else this.onerrorEvent=t,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),!this.loading)if(this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader. This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading=!0,this.setScript()}}};function TEe(e){return class extends e.OverlayView{constructor(t){super(),IH(this,"element"),IH(this,"opts");const{element:n,...r}=t;this.element=n,this.opts=r,this.opts.map&&this.setMap(this.opts.map)}getPosition(){return this.opts.position?this.opts.position instanceof e.LatLng?this.opts.position:new e.LatLng(this.opts.position):null}getVisible(){if(!this.element)return!1;const t=this.element;return t.style.display!=="none"&&t.style.visibility!=="hidden"&&(t.style.opacity===""||Number(t.style.opacity)>.01)}onAdd(){if(!this.element)return;const t=this.getPanes();t&&t.overlayMouseTarget.appendChild(this.element)}draw(){if(!this.element)return;const t=this.getProjection(),n=t==null?void 0:t.fromLatLngToDivPixel(this.getPosition());if(n){this.element.style.position="absolute";let r,a;switch(this.opts.anchorPoint){case"TOP_CENTER":r="-50%",a="-100%";break;case"BOTTOM_CENTER":r="-50%",a="0";break;case"LEFT_CENTER":r="-100%",a="-50%";break;case"RIGHT_CENTER":r="0",a="-50%";break;case"TOP_LEFT":r="-100%",a="-100%";break;case"TOP_RIGHT":r="0",a="-100%";break;case"BOTTOM_LEFT":r="-100%",a="0";break;case"BOTTOM_RIGHT":r="0",a="0";break;default:r="-50%",a="-50%"}const i=n.x+(this.opts.offsetX||0)+"px",o=n.y+(this.opts.offsetY||0)+"px";this.element.style.transform=`translateX(${r}) translateX(${i}) translateY(${a}) translateY(${o})`,this.opts.zIndex&&(this.element.style.zIndex=this.opts.zIndex.toString())}}onRemove(){this.element&&this.element.remove()}setOptions(t){const{element:n,...r}=t;this.element=n,this.opts=r,this.draw()}}}let YH;const QH=["bounds_changed","center_changed","click","contextmenu","dblclick","drag","dragend","dragstart","heading_changed","idle","isfractionalzoomenabled_changed","mapcapabilities_changed","maptypeid_changed","mousemove","mouseout","mouseover","projection_changed","renderingtype_changed","rightclick","tilesloaded","tilt_changed","zoom_changed"],NEe=l.defineComponent({props:{apiPromise:{type:Promise},apiKey:{type:String,default:""},version:{type:String,default:"weekly"},libraries:{type:Array,default:()=>["places","marker"]},region:{type:String,required:!1},language:{type:String,required:!1},backgroundColor:{type:String,required:!1},center:{type:Object,default:()=>({lat:0,lng:0})},clickableIcons:{type:Boolean,required:!1,default:void 0},colorScheme:{type:String,required:!1},controlSize:{type:Number,required:!1},disableDefaultUi:{type:Boolean,required:!1,default:void 0},disableDoubleClickZoom:{type:Boolean,required:!1,default:void 0},draggable:{type:Boolean,required:!1,default:void 0},draggableCursor:{type:String,required:!1},draggingCursor:{type:String,required:!1},fullscreenControl:{type:Boolean,required:!1,default:void 0},fullscreenControlPosition:{type:String,required:!1},gestureHandling:{type:String,required:!1},heading:{type:Number,required:!1},isFractionalZoomEnabled:{type:Boolean,required:!1,default:void 0},keyboardShortcuts:{type:Boolean,required:!1,default:void 0},mapTypeControl:{type:Boolean,required:!1,default:void 0},mapTypeControlOptions:{type:Object,required:!1},mapTypeId:{type:[Number,String],required:!1},mapId:{type:String,required:!1},maxZoom:{type:Number,required:!1},minZoom:{type:Number,required:!1},noClear:{type:Boolean,required:!1,default:void 0},panControl:{type:Boolean,required:!1,default:void 0},panControlPosition:{type:String,required:!1},restriction:{type:Object,required:!1},rotateControl:{type:Boolean,required:!1,default:void 0},rotateControlPosition:{type:String,required:!1},scaleControl:{type:Boolean,required:!1,default:void 0},scaleControlStyle:{type:Number,required:!1},scrollwheel:{type:Boolean,required:!1,default:void 0},streetView:{type:Object,required:!1},streetViewControl:{type:Boolean,required:!1,default:void 0},streetViewControlPosition:{type:String,required:!1},styles:{type:Array,required:!1},tilt:{type:Number,required:!1},zoom:{type:Number,required:!1},zoomControl:{type:Boolean,required:!1,default:void 0},zoomControlPosition:{type:String,required:!1},cameraControl:{type:Boolean,required:!1,default:void 0},cameraControlPosition:{type:String,required:!1},nonce:{type:String,default:""}},emits:QH,setup(e,{emit:t}){const n=l.ref(),r=l.ref(!1),a=l.ref(),i=l.ref(),o=l.ref(!1);l.provide(hf,a),l.provide(pf,i),l.provide(DH,o);const s=()=>{const d={...e};Object.keys(d).forEach(m=>{d[m]===void 0&&delete d[m]});const f=m=>{var p;return m?{position:(p=i.value)==null?void 0:p.ControlPosition[m]}:{}},h={scaleControlOptions:e.scaleControlStyle?{style:e.scaleControlStyle}:{},panControlOptions:f(e.panControlPosition),zoomControlOptions:f(e.zoomControlPosition),rotateControlOptions:f(e.rotateControlPosition),streetViewControlOptions:f(e.streetViewControlPosition),fullscreenControlOptions:f(e.fullscreenControlPosition),cameraControlOptions:f(e.cameraControlPosition),disableDefaultUI:e.disableDefaultUi};return{...d,...h}},u=l.watch([i,a],([d,f])=>{const h=d,m=f;h&&m&&(h.event.addListenerOnce(m,"tilesloaded",()=>{o.value=!0}),setTimeout(u,0))},{immediate:!0}),c=()=>{try{const{apiKey:d,region:f,version:h,language:m,libraries:p,nonce:v}=e;YH=new LEe({apiKey:d,region:f,version:h,language:m,libraries:p,nonce:v})}catch(d){console.error(d)}},A=d=>{i.value=l.markRaw(d.maps),a.value=l.markRaw(new d.maps.Map(n.value,s()));const f=TEe(i.value);i.value[T_]=f,QH.forEach(m=>{var p;(p=a.value)==null||p.addListener(m,v=>t(m,v))}),r.value=!0;const h=Object.keys(e).filter(m=>!["apiPromise","apiKey","version","libraries","region","language","center","zoom","nonce"].includes(m)).map(m=>l.toRef(e,m));l.watch([()=>e.center,()=>e.zoom,...h],([m,p],[v,y])=>{var g,_,b;const{center:B,zoom:M,...x}=s();(g=a.value)==null||g.setOptions(x),p!==void 0&&p!==y&&((_=a.value)==null||_.setZoom(p));const E=!v||m.lng!==v.lng||m.lat!==v.lat;m&&E&&((b=a.value)==null||b.panTo(m))})};return l.onMounted(()=>{e.apiPromise&&e.apiPromise instanceof Promise?e.apiPromise.then(A):(c(),YH.load().then(A))}),l.onBeforeUnmount(()=>{var d;o.value=!1,a.value&&((d=i.value)==null||d.event.clearInstanceListeners(a.value))}),{mapRef:n,ready:r,map:a,api:i,mapTilesLoaded:o}}}),FEe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},OEe={ref:"mapRef",class:"mapdiv"};function IEe(e,t,n,r,a,i){return l.openBlock(),l.createElementBlock("div",null,[l.createElementVNode("div",OEe,null,512),l.renderSlot(e.$slots,"default",l.normalizeProps(l.guardReactiveProps({ready:e.ready,map:e.map,api:e.api,mapTilesLoaded:e.mapTilesLoaded})),void 0,!0)])}const DEe=FEe(NEe,[["render",IEe],["__scopeId","data-v-289550ca"]]);function UEe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PEe=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!e(t[a],n[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(i=Object.keys(t),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n};const a0=UEe(PEe),RH=["click","drag","dragend","dragstart","gmp-click"];l.defineComponent({name:"AdvancedMarker",props:{options:{type:Object,required:!0},pinOptions:{type:Object,required:!1}},emits:RH,setup(e,{emit:t,expose:n,slots:r}){const a=l.ref(),i=l.computed(()=>{var h;return(h=r.content)==null?void 0:h.call(r).some(m=>m.type!==l.Comment)}),o=l.toRef(e,"options"),s=l.toRef(e,"pinOptions"),u=l.ref(),c=l.inject(hf,l.ref()),A=l.inject(pf,l.ref()),d=l.inject(p4,l.ref()),f=l.computed(()=>!!(d.value&&A.value&&u.value instanceof google.maps.marker.AdvancedMarkerElement));return l.watch([c,o,s,a],async(h,[m,p,v,y])=>{var g,_,b;const B=!a0(o.value,p)||!a0(s.value,v),M=a.value!==y,x=B||M||c.value!==m;if(!c.value||!A.value||!x||i.value&&!a.value)return;const{AdvancedMarkerElement:E,PinElement:D}=A.value.marker;if(u.value){const{map:Y,content:k,...N}=o.value;Object.assign(u.value,{content:i.value?a.value:s.value?new D(s.value).element:k,...N}),f.value&&((g=d.value)==null||g.removeMarker(u.value),(_=d.value)==null||_.addMarker(u.value))}else i.value?o.value.content=a.value:s.value&&(o.value.content=new D(s.value).element),u.value=l.markRaw(new E(o.value)),f.value?(b=d.value)==null||b.addMarker(u.value):u.value.map=c.value,RH.forEach(Y=>{var k;(k=u.value)==null||k.addListener(Y,N=>t(Y,N))})},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var h,m;u.value&&((h=A.value)==null||h.event.clearInstanceListeners(u.value),f.value?(m=d.value)==null||m.removeMarker(u.value):u.value.map=null)}),l.provide(h4,u),n({marker:u}),{hasCustomSlotContent:i,markerRef:a}}});const jH=e=>e==="Marker",VH=e=>e===T_,cp=(e,t,n,r)=>{const a=l.ref(),i=l.inject(hf,l.ref()),o=l.inject(pf,l.ref()),s=l.inject(p4,l.ref()),u=l.computed(()=>!!(s.value&&o.value&&(a.value instanceof o.value.Marker||a.value instanceof o.value[T_])));return l.watch([i,n],(c,[A,d])=>{var f,h,m;const p=!a0(n.value,d)||i.value!==A;if(!(!i.value||!o.value||!p))if(a.value)a.value.setOptions(n.value),u.value&&((f=s.value)==null||f.removeMarker(a.value),(h=s.value)==null||h.addMarker(a.value));else{if(jH(e))a.value=l.markRaw(new o.value[e](n.value));else if(VH(e)){const v=n.value;v.element&&(a.value=l.markRaw(new o.value[e](v)))}else a.value=l.markRaw(new o.value[e]({...n.value,map:i.value}));a.value&&(u.value?(m=s.value)==null||m.addMarker(a.value):(jH(e)||VH(e))&&a.value.setMap(i.value)),t.forEach(v=>{var y;(y=a.value)==null||y.addListener(v,g=>r(v,g))})}},{immediate:!0,flush:"post"}),l.onBeforeUnmount(()=>{var c,A;a.value&&((c=o.value)==null||c.event.clearInstanceListeners(a.value),u.value?(A=s.value)==null||A.removeMarker(a.value):a.value.setMap(null))}),a},zH=["animation_changed","click","dblclick","rightclick","dragstart","dragend","drag","mouseover","mousedown","mouseout","mouseup","draggable_changed","clickable_changed","contextmenu","cursor_changed","flat_changed","zindex_changed","icon_changed","position_changed","shape_changed","title_changed","visible_changed"],HEe=l.defineComponent({name:"Marker",props:{options:{type:Object,required:!0}},emits:zH,setup(e,{emit:t,expose:n,slots:r}){const a=l.toRef(e,"options"),i=cp("Marker",zH,a,t);return l.provide(h4,i),n({marker:i}),()=>{var o;return(o=r.default)==null?void 0:o.call(r)}}});l.defineComponent({name:"Polyline",props:{options:{type:Object,required:!0}},emits:lp,setup(e,{emit:t}){const n=l.toRef(e,"options");return{polyline:cp("Polyline",lp,n,t)}},render:()=>null}),l.defineComponent({name:"Polygon",props:{options:{type:Object,required:!0}},emits:lp,setup(e,{emit:t}){const n=l.toRef(e,"options");return{polygon:cp("Polygon",lp,n,t)}},render:()=>null});const qH=lp.concat(["bounds_changed"]);l.defineComponent({name:"Rectangle",props:{options:{type:Object,required:!0}},emits:qH,setup(e,{emit:t}){const n=l.toRef(e,"options");return{rectangle:cp("Rectangle",qH,n,t)}},render:()=>null});const KH=lp.concat(["center_changed","radius_changed"]);l.defineComponent({name:"Circle",props:{options:{type:Object,required:!0}},emits:KH,setup(e,{emit:t}){const n=l.toRef(e,"options");return{circle:cp("Circle",KH,n,t)}},render:()=>null}),l.defineComponent({props:{position:{type:String,required:!0},index:{type:Number,default:1}},emits:["content:loaded"],setup(e,{emit:t}){const n=l.ref(null),r=l.inject(hf,l.ref()),a=l.inject(pf,l.ref()),i=l.inject(DH,l.ref(!1)),o=l.watch([i,a,n],([c,A,d])=>{A&&c&&d&&(s(e.position),t("content:loaded"),setTimeout(o,0))},{immediate:!0}),s=c=>{if(r.value&&a.value&&n.value){const A=a.value.ControlPosition[c];n.value.index=e.index,r.value.controls[A].push(n.value)}},u=c=>{if(r.value&&a.value){let A=null;const d=a.value.ControlPosition[c];r.value.controls[d].forEach((f,h)=>{f===n.value&&(A=h)}),A!==null&&r.value.controls[d].removeAt(A)}};return l.onBeforeUnmount(()=>u(e.position)),l.watch(()=>e.position,(c,A)=>{u(A),s(c)}),l.watch(()=>e.index,c=>{n.value&&(n.value.index=c)}),{controlRef:n}}});const GH=["closeclick","content_changed","domready","position_changed","visible","zindex_changed"];l.defineComponent({inheritAttrs:!1,props:{options:{type:Object,default:()=>({})},modelValue:{type:Boolean}},emits:[...GH,"update:modelValue"],setup(e,{slots:t,emit:n,expose:r}){const a=l.ref(),i=l.ref(),o=l.inject(hf,l.ref()),s=l.inject(pf,l.ref()),u=l.inject(h4,l.ref());let c,A=e.modelValue;const d=l.computed(()=>{var p;return(p=t.default)==null?void 0:p.call(t).some(v=>v.type!==l.Comment)}),f=p=>{A=p,n("update:modelValue",p)},h=p=>{a.value&&(a.value.open({map:o.value,anchor:u.value,...p}),f(!0))},m=()=>{a.value&&(a.value.close(),f(!1))};return l.onMounted(()=>{l.watch([o,()=>e.options],([p,v],[y,g])=>{var _;const b=!a0(v,g)||o.value!==y;o.value&&s.value&&b&&(a.value?(a.value.setOptions({...v,content:d.value?i.value:v.content}),u.value||h()):(a.value=l.markRaw(new s.value.InfoWindow({...v,content:d.value?i.value:v.content})),u.value&&(c=u.value.addListener("click",()=>{h()})),(!u.value||A)&&h(),GH.forEach(B=>{var M;(M=a.value)==null||M.addListener(B,x=>n(B,x))}),(_=a.value)==null||_.addListener("closeclick",()=>f(!1))))},{immediate:!0}),l.watch(()=>e.modelValue,p=>{p!==A&&(p?h():m())})}),l.onBeforeUnmount(()=>{var p;c&&c.remove(),a.value&&((p=s.value)==null||p.event.clearInstanceListeners(a.value),m())}),r({infoWindow:a,open:h,close:m}),{infoWindow:a,infoWindowRef:i,hasSlotContent:d,open:h,close:m}}});var YEe=Object.getOwnPropertyNames,QEe=Object.getOwnPropertySymbols,REe=Object.prototype.hasOwnProperty;function WH(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function N_(e){return function(t,n,r){if(!t||!n||typeof t!="object"||typeof n!="object")return e(t,n,r);var a=r.cache,i=a.get(t),o=a.get(n);if(i&&o)return i===n&&o===t;a.set(t,n),a.set(n,t);var s=e(t,n,r);return a.delete(t),a.delete(n),s}}function XH(e){return YEe(e).concat(QEe(e))}var jEe=Object.hasOwn||function(e,t){return REe.call(e,t)};function mf(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var VEe="__v",zEe="__o",qEe="_owner",JH=Object.getOwnPropertyDescriptor,ZH=Object.keys;function KEe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function GEe(e,t){return mf(e.getTime(),t.getTime())}function WEe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function XEe(e,t){return e===t}function $H(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),i=e.entries(),o,s,u=0;(o=i.next())&&!o.done;){for(var c=t.entries(),A=!1,d=0;(s=c.next())&&!s.done;){if(a[d]){d++;continue}var f=o.value,h=s.value;if(n.equals(f[0],h[0],u,d,e,t,n)&&n.equals(f[1],h[1],f[0],h[0],e,t,n)){A=a[d]=!0;break}d++}if(!A)return!1;u++}return!0}var JEe=mf;function ZEe(e,t,n){var r=ZH(e),a=r.length;if(ZH(t).length!==a)return!1;for(;a-- >0;)if(!tY(e,t,n,r[a]))return!1;return!0}function i0(e,t,n){var r=XH(e),a=r.length;if(XH(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=r[a],!tY(e,t,n,i)||(o=JH(e,i),s=JH(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function $Ee(e,t){return mf(e.valueOf(),t.valueOf())}function eLe(e,t){return e.source===t.source&&e.flags===t.flags}function eY(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var a=new Array(r),i=e.values(),o,s;(o=i.next())&&!o.done;){for(var u=t.values(),c=!1,A=0;(s=u.next())&&!s.done;){if(!a[A]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){c=a[A]=!0;break}A++}if(!c)return!1}return!0}function tLe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function nLe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function tY(e,t,n,r){return(r===qEe||r===zEe||r===VEe)&&(e.$$typeof||t.$$typeof)?!0:jEe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var rLe="[object Arguments]",aLe="[object Boolean]",iLe="[object Date]",oLe="[object Error]",sLe="[object Map]",lLe="[object Number]",uLe="[object Object]",cLe="[object RegExp]",ALe="[object Set]",dLe="[object String]",fLe="[object URL]",hLe=Array.isArray,nY=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,rY=Object.assign,pLe=Object.prototype.toString.call.bind(Object.prototype.toString);function mLe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,A=e.areSetsEqual,d=e.areTypedArraysEqual,f=e.areUrlsEqual;return function(h,m,p){if(h===m)return!0;if(h==null||m==null)return!1;var v=typeof h;if(v!==typeof m)return!1;if(v!=="object")return v==="number"?o(h,m,p):v==="function"?a(h,m,p):!1;var y=h.constructor;if(y!==m.constructor)return!1;if(y===Object)return s(h,m,p);if(hLe(h))return t(h,m,p);if(nY!=null&&nY(h))return d(h,m,p);if(y===Date)return n(h,m,p);if(y===RegExp)return c(h,m,p);if(y===Map)return i(h,m,p);if(y===Set)return A(h,m,p);var g=pLe(h);return g===iLe?n(h,m,p):g===cLe?c(h,m,p):g===sLe?i(h,m,p):g===ALe?A(h,m,p):g===uLe?typeof h.then!="function"&&typeof m.then!="function"&&s(h,m,p):g===fLe?f(h,m,p):g===oLe?r(h,m,p):g===rLe?s(h,m,p):g===aLe||g===lLe||g===dLe?u(h,m,p):!1}}function gLe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,a={areArraysEqual:r?i0:KEe,areDatesEqual:GEe,areErrorsEqual:WEe,areFunctionsEqual:XEe,areMapsEqual:r?WH($H,i0):$H,areNumbersEqual:JEe,areObjectsEqual:r?i0:ZEe,arePrimitiveWrappersEqual:$Ee,areRegExpsEqual:eLe,areSetsEqual:r?WH(eY,i0):eY,areTypedArraysEqual:r?i0:tLe,areUrlsEqual:nLe};if(n&&(a=rY({},a,n(a))),t){var i=N_(a.areArraysEqual),o=N_(a.areMapsEqual),s=N_(a.areObjectsEqual),u=N_(a.areSetsEqual);a=rY({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return a}function vLe(e){return function(t,n,r,a,i,o,s){return e(t,n,s)}}function yLe(e){var t=e.circular,n=e.comparator,r=e.createState,a=e.equals,i=e.strict;if(r)return function(s,u){var c=r(),A=c.cache,d=A===void 0?t?new WeakMap:void 0:A,f=c.meta;return n(s,u,{cache:d,equals:a,meta:f,strict:i})};if(t)return function(s,u){return n(s,u,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,u){return n(s,u,o)}}var F_=MA();MA({strict:!0}),MA({circular:!0}),MA({circular:!0,strict:!0}),MA({createInternalComparator:function(){return mf}}),MA({strict:!0,createInternalComparator:function(){return mf}}),MA({circular:!0,createInternalComparator:function(){return mf}}),MA({circular:!0,createInternalComparator:function(){return mf},strict:!0});function MA(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=gLe(e),u=mLe(s),c=r?r(u):vLe(u);return yLe({circular:n,comparator:u,createState:a,equals:c,strict:o})}const aY=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],m4=1,o0=8;class g4{static from(t){if(!(t instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[n,r]=new Uint8Array(t,0,2);if(n!==219)throw new Error("Data does not appear to be in a KDBush format.");const a=r>>4;if(a!==m4)throw new Error(`Got v${a} data when expected v${m4}.`);const i=aY[r&15];if(!i)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(t,2,1),[s]=new Uint32Array(t,4,1);return new g4(s,o,i,t)}constructor(t,n=64,r=Float64Array,a){if(isNaN(t)||t<0)throw new Error(`Unpexpected numItems value: ${t}.`);this.numItems=+t,this.nodeSize=Math.min(Math.max(+n,2),65535),this.ArrayType=r,this.IndexArrayType=t<65536?Uint16Array:Uint32Array;const i=aY.indexOf(this.ArrayType),o=t*2*this.ArrayType.BYTES_PER_ELEMENT,s=t*this.IndexArrayType.BYTES_PER_ELEMENT,u=(8-s%8)%8;if(i<0)throw new Error(`Unexpected typed array class: ${r}.`);a&&a instanceof ArrayBuffer?(this.data=a,this.ids=new this.IndexArrayType(this.data,o0,t),this.coords=new this.ArrayType(this.data,o0+s+u,t*2),this._pos=t*2,this._finished=!0):(this.data=new ArrayBuffer(o0+o+s+u),this.ids=new this.IndexArrayType(this.data,o0,t),this.coords=new this.ArrayType(this.data,o0+s+u,t*2),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,(m4<<4)+i]),new Uint16Array(this.data,2,1)[0]=n,new Uint32Array(this.data,4,1)[0]=t)}add(t,n){const r=this._pos>>1;return this.ids[r]=r,this.coords[this._pos++]=t,this.coords[this._pos++]=n,r}finish(){const t=this._pos>>1;if(t!==this.numItems)throw new Error(`Added ${t} items when expected ${this.numItems}.`);return v4(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(t,n,r,a){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:i,coords:o,nodeSize:s}=this,u=[0,i.length-1,0],c=[];for(;u.length;){const A=u.pop()||0,d=u.pop()||0,f=u.pop()||0;if(d-f<=s){for(let v=f;v<=d;v++){const y=o[2*v],g=o[2*v+1];y>=t&&y<=r&&g>=n&&g<=a&&c.push(i[v])}continue}const h=f+d>>1,m=o[2*h],p=o[2*h+1];m>=t&&m<=r&&p>=n&&p<=a&&c.push(i[h]),(A===0?t<=m:n<=p)&&(u.push(f),u.push(h-1),u.push(1-A)),(A===0?r>=m:a>=p)&&(u.push(h+1),u.push(d),u.push(1-A))}return c}within(t,n,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:a,coords:i,nodeSize:o}=this,s=[0,a.length-1,0],u=[],c=r*r;for(;s.length;){const A=s.pop()||0,d=s.pop()||0,f=s.pop()||0;if(d-f<=o){for(let v=f;v<=d;v++)oY(i[2*v],i[2*v+1],t,n)<=c&&u.push(a[v]);continue}const h=f+d>>1,m=i[2*h],p=i[2*h+1];oY(m,p,t,n)<=c&&u.push(a[h]),(A===0?t-r<=m:n-r<=p)&&(s.push(f),s.push(h-1),s.push(1-A)),(A===0?t+r>=m:n+r>=p)&&(s.push(h+1),s.push(d),s.push(1-A))}return u}}function v4(e,t,n,r,a,i){if(a-r<=n)return;const o=r+a>>1;iY(e,t,o,r,a,i),v4(e,t,n,r,o-1,1-i),v4(e,t,n,o+1,a,1-i)}function iY(e,t,n,r,a,i){for(;a>r;){if(a-r>600){const c=a-r+1,A=n-r+1,d=Math.log(c),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(c-f)/c)*(A-c/2<0?-1:1),m=Math.max(r,Math.floor(n-A*f/c+h)),p=Math.min(a,Math.floor(n+(c-A)*f/c+h));iY(e,t,n,m,p,i)}const o=t[2*n+i];let s=r,u=a;for(s0(e,t,r,n),t[2*a+i]>o&&s0(e,t,r,a);s<u;){for(s0(e,t,s,u),s++,u--;t[2*s+i]<o;)s++;for(;t[2*u+i]>o;)u--}t[2*r+i]===o?s0(e,t,r,u):(u++,s0(e,t,u,a)),u<=n&&(r=u+1),n<=u&&(a=u-1)}}function s0(e,t,n,r){y4(e,n,r),y4(t,2*n,2*r),y4(t,2*n+1,2*r+1)}function y4(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function oY(e,t,n,r){const a=e-n,i=t-r;return a*a+i*i}const _Le={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},sY=Math.fround||(e=>t=>(e[0]=+t,e[0]))(new Float32Array(1)),gf=2,EA=3,_4=4,LA=5,lY=6;let uY=class{constructor(t){this.options=Object.assign(Object.create(_Le),t),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(t){const{log:n,minZoom:r,maxZoom:a}=this.options;n&&console.time("total time");const i=`prepare ${t.length} points`;n&&console.time(i),this.points=t;const o=[];for(let u=0;u<t.length;u++){const c=t[u];if(!c.geometry)continue;const[A,d]=c.geometry.coordinates,f=sY(O_(A)),h=sY(I_(d));o.push(f,h,1/0,u,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[a+1]=this._createTree(o);n&&console.timeEnd(i);for(let u=a;u>=r;u--){const c=+Date.now();s=this.trees[u]=this._createTree(this._cluster(s,u)),n&&console.log("z%d: %d clusters in %dms",u,s.numItems,+Date.now()-c)}return n&&console.timeEnd("total time"),this}getClusters(t,n){let r=((t[0]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,t[1]));let i=t[2]===180?180:((t[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)r=-180,i=180;else if(r>i){const d=this.getClusters([r,a,180,o],n),f=this.getClusters([-180,a,i,o],n);return d.concat(f)}const s=this.trees[this._limitZoom(n)],u=s.range(O_(r),I_(o),O_(i),I_(a)),c=s.data,A=[];for(const d of u){const f=this.stride*d;A.push(c[f+LA]>1?cY(c,f,this.clusterProps):this.points[c[f+EA]])}return A}getChildren(t){const n=this._getOriginId(t),r=this._getOriginZoom(t),a="No cluster with the specified id.",i=this.trees[r];if(!i)throw new Error(a);const o=i.data;if(n*this.stride>=o.length)throw new Error(a);const s=this.options.radius/(this.options.extent*Math.pow(2,r-1)),u=o[n*this.stride],c=o[n*this.stride+1],A=i.within(u,c,s),d=[];for(const f of A){const h=f*this.stride;o[h+_4]===t&&d.push(o[h+LA]>1?cY(o,h,this.clusterProps):this.points[o[h+EA]])}if(d.length===0)throw new Error(a);return d}getLeaves(t,n,r){n=n||10,r=r||0;const a=[];return this._appendLeaves(a,t,n,r,0),a}getTile(t,n,r){const a=this.trees[this._limitZoom(t)],i=Math.pow(2,t),{extent:o,radius:s}=this.options,u=s/o,c=(r-u)/i,A=(r+1+u)/i,d={features:[]};return this._addTileFeatures(a.range((n-u)/i,c,(n+1+u)/i,A),a.data,n,r,i,d),n===0&&this._addTileFeatures(a.range(1-u/i,c,1,A),a.data,i,r,i,d),n===i-1&&this._addTileFeatures(a.range(0,c,u/i,A),a.data,-1,r,i,d),d.features.length?d:null}getClusterExpansionZoom(t){let n=this._getOriginZoom(t)-1;for(;n<=this.options.maxZoom;){const r=this.getChildren(t);if(n++,r.length!==1)break;t=r[0].properties.cluster_id}return n}_appendLeaves(t,n,r,a,i){const o=this.getChildren(n);for(const s of o){const u=s.properties;if(u&&u.cluster?i+u.point_count<=a?i+=u.point_count:i=this._appendLeaves(t,u.cluster_id,r,a,i):i<a?i++:t.push(s),t.length===r)break}return i}_createTree(t){const n=new g4(t.length/this.stride|0,this.options.nodeSize,Float32Array);for(let r=0;r<t.length;r+=this.stride)n.add(t[r],t[r+1]);return n.finish(),n.data=t,n}_addTileFeatures(t,n,r,a,i,o){for(const s of t){const u=s*this.stride,c=n[u+LA]>1;let A,d,f;if(c)A=AY(n,u,this.clusterProps),d=n[u],f=n[u+1];else{const p=this.points[n[u+EA]];A=p.properties;const[v,y]=p.geometry.coordinates;d=O_(v),f=I_(y)}const h={type:1,geometry:[[Math.round(this.options.extent*(d*i-r)),Math.round(this.options.extent*(f*i-a))]],tags:A};let m;c||this.options.generateId?m=n[u+EA]:m=this.points[n[u+EA]].id,m!==void 0&&(h.id=m),o.features.push(h)}}_limitZoom(t){return Math.max(this.options.minZoom,Math.min(Math.floor(+t),this.options.maxZoom+1))}_cluster(t,n){const{radius:r,extent:a,reduce:i,minPoints:o}=this.options,s=r/(a*Math.pow(2,n)),u=t.data,c=[],A=this.stride;for(let d=0;d<u.length;d+=A){if(u[d+gf]<=n)continue;u[d+gf]=n;const f=u[d],h=u[d+1],m=t.within(u[d],u[d+1],s),p=u[d+LA];let v=p;for(const y of m){const g=y*A;u[g+gf]>n&&(v+=u[g+LA])}if(v>p&&v>=o){let y=f*p,g=h*p,_,b=-1;const B=((d/A|0)<<5)+(n+1)+this.points.length;for(const M of m){const x=M*A;if(u[x+gf]<=n)continue;u[x+gf]=n;const E=u[x+LA];y+=u[x]*E,g+=u[x+1]*E,u[x+_4]=B,i&&(_||(_=this._map(u,d,!0),b=this.clusterProps.length,this.clusterProps.push(_)),i(_,this._map(u,x)))}u[d+_4]=B,c.push(y/v,g/v,1/0,B,-1,v),i&&c.push(b)}else{for(let y=0;y<A;y++)c.push(u[d+y]);if(v>1)for(const y of m){const g=y*A;if(!(u[g+gf]<=n)){u[g+gf]=n;for(let _=0;_<A;_++)c.push(u[g+_])}}}}return c}_getOriginId(t){return t-this.points.length>>5}_getOriginZoom(t){return(t-this.points.length)%32}_map(t,n,r){if(t[n+LA]>1){const o=this.clusterProps[t[n+lY]];return r?Object.assign({},o):o}const a=this.points[t[n+EA]].properties,i=this.options.map(a);return r&&i===a?Object.assign({},i):i}};function cY(e,t,n){return{type:"Feature",id:e[t+EA],properties:AY(e,t,n),geometry:{type:"Point",coordinates:[bLe(e[t]),wLe(e[t+1])]}}}function AY(e,t,n){const r=e[t+LA],a=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?`${Math.round(r/100)/10}k`:r,i=e[t+lY],o=i===-1?{}:Object.assign({},n[i]);return Object.assign(o,{cluster:!0,cluster_id:e[t+EA],point_count:r,point_count_abbreviated:a})}function O_(e){return e/360+.5}function I_(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function bLe(e){return(e-.5)*360}function wLe(e){const t=(180-e*360)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function b4(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}let di=class{static isAdvancedMarkerAvailable(t){return google.maps.marker&&t.getMapCapabilities().isAdvancedMarkersAvailable===!0}static isAdvancedMarker(t){return google.maps.marker&&t instanceof google.maps.marker.AdvancedMarkerElement}static setMap(t,n){this.isAdvancedMarker(t)?t.map=n:t.setMap(n)}static getPosition(t){if(this.isAdvancedMarker(t)){if(t.position){if(t.position instanceof google.maps.LatLng)return t.position;if(Number.isFinite(t.position.lat)&&Number.isFinite(t.position.lng))return new google.maps.LatLng(t.position.lat,t.position.lng)}return new google.maps.LatLng(null)}return t.getPosition()}static getVisible(t){return this.isAdvancedMarker(t)?!0:t.getVisible()}},l0=class{constructor({markers:t,position:n}){this.markers=[],t&&(this.markers=t),n&&(n instanceof google.maps.LatLng?this._position=n:this._position=new google.maps.LatLng(n))}get bounds(){if(this.markers.length===0&&!this._position)return;const t=new google.maps.LatLngBounds(this._position,this._position);for(const n of this.markers)t.extend(di.getPosition(n));return t}get position(){return this._position||this.bounds.getCenter()}get count(){return this.markers.filter(t=>di.getVisible(t)).length}push(t){this.markers.push(t)}delete(){this.marker&&(di.setMap(this.marker,null),this.marker=void 0),this.markers.length=0}};function hc(e,t="assertion failed"){if(e==null)throw Error(t)}const BLe=(e,t,n,r)=>{const a=e.getBounds();hc(a);const i=dY(a,t,r);return n.filter(o=>i.contains(di.getPosition(o)))},dY=(e,t,n)=>{const{northEast:r,southWest:a}=CLe(e,t),i=SLe({northEast:r,southWest:a},n);return kLe(i,t)},xLe=(e,t,n)=>{const r=dY(e,t,n),a=r.getNorthEast(),i=r.getSouthWest();return[i.lng(),i.lat(),a.lng(),a.lat()]},CLe=(e,t)=>{const n=t.fromLatLngToDivPixel(e.getNorthEast()),r=t.fromLatLngToDivPixel(e.getSouthWest());return hc(n),hc(r),{northEast:n,southWest:r}},SLe=({northEast:e,southWest:t},n)=>(e.x+=n,e.y-=n,t.x-=n,t.y+=n,{northEast:e,southWest:t}),kLe=({northEast:e,southWest:t},n)=>{const r=n.fromDivPixelToLatLng(t),a=n.fromDivPixelToLatLng(e);return new google.maps.LatLngBounds(r,a)};let fY=class{constructor({maxZoom:t=16}){this.maxZoom=t}noop({markers:t}){return ELe(t)}};class MLe extends fY{constructor(t){var{viewportPadding:n=60}=t,r=b4(t,["viewportPadding"]);super(r),this.viewportPadding=60,this.viewportPadding=n}calculate({markers:t,map:n,mapCanvasProjection:r}){const a=n.getZoom();return hc(a),a>=this.maxZoom?{clusters:this.noop({markers:t}),changed:!1}:{clusters:this.cluster({markers:BLe(n,r,t,this.viewportPadding),map:n,mapCanvasProjection:r})}}}const ELe=e=>e.map(t=>new l0({position:di.getPosition(t),markers:[t]}));class LLe extends fY{constructor(t){var{maxZoom:n,radius:r=60}=t,a=b4(t,["maxZoom","radius"]);super({maxZoom:n}),this.markers=[],this.clusters=[],this.state={zoom:-1},this.superCluster=new uY(Object.assign({maxZoom:this.maxZoom,radius:r},a))}calculate(t){let n=!1,r=t.map.getZoom();hc(r),r=Math.round(r);const a={zoom:r};if(!F_(t.markers,this.markers)){n=!0,this.markers=[...t.markers];const i=this.markers.map(o=>{const s=di.getPosition(o);return{type:"Feature",geometry:{type:"Point",coordinates:[s.lng(),s.lat()]},properties:{marker:o}}});this.superCluster.load(i)}return n||(this.state.zoom<=this.maxZoom||a.zoom<=this.maxZoom)&&(n=!F_(this.state,a)),this.state=a,t.markers.length===0?(this.clusters=[],{clusters:this.clusters,changed:n}):(n&&(this.clusters=this.cluster(t)),{clusters:this.clusters,changed:n})}cluster({map:t}){const n=t.getZoom();return hc(n),this.superCluster.getClusters([-180,-90,180,90],Math.round(n)).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[t,n]},properties:r}){if(r.cluster)return new l0({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:n,lng:t}});const a=r.marker;return new l0({markers:[a],position:di.getPosition(a)})}}class TLe extends MLe{constructor(t){var{maxZoom:n,radius:r=60,viewportPadding:a=60}=t,i=b4(t,["maxZoom","radius","viewportPadding"]);super({maxZoom:n,viewportPadding:a}),this.markers=[],this.clusters=[],this.superCluster=new uY(Object.assign({maxZoom:this.maxZoom,radius:r},i)),this.state={zoom:-1,view:[0,0,0,0]}}calculate(t){const n=this.getViewportState(t);let r=!F_(this.state,n);if(!F_(t.markers,this.markers)){r=!0,this.markers=[...t.markers];const a=this.markers.map(i=>{const o=di.getPosition(i);return{type:"Feature",geometry:{type:"Point",coordinates:[o.lng(),o.lat()]},properties:{marker:i}}});this.superCluster.load(a)}return r&&(this.clusters=this.cluster(t),this.state=n),{clusters:this.clusters,changed:r}}cluster(t){const n=this.getViewportState(t);return this.superCluster.getClusters(n.view,n.zoom).map(r=>this.transformCluster(r))}transformCluster({geometry:{coordinates:[t,n]},properties:r}){if(r.cluster)return new l0({markers:this.superCluster.getLeaves(r.cluster_id,1/0).map(i=>i.properties.marker),position:{lat:n,lng:t}});const a=r.marker;return new l0({markers:[a],position:di.getPosition(a)})}getViewportState(t){const n=t.map.getZoom(),r=t.map.getBounds();return hc(n),hc(r),{zoom:Math.round(n),view:xLe(r,t.mapCanvasProjection,this.viewportPadding)}}}class NLe{constructor(t,n){this.markers={sum:t.length};const r=n.map(i=>i.count),a=r.reduce((i,o)=>i+o,0);this.clusters={count:n.length,markers:{mean:a/n.length,sum:a,min:Math.min(...r),max:Math.max(...r)}}}}class FLe{render({count:t,position:n},r,a){const i=`<svg fill="${t>Math.max(10,r.clusters.markers.mean)?"#ff0000":"#0000ff"}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240" width="50" height="50">
150
150
  <circle cx="120" cy="120" opacity=".6" r="70" />
151
151
  <circle cx="120" cy="120" opacity=".3" r="90" />
152
152
  <circle cx="120" cy="120" opacity=".2" r="110" />
@@ -14812,23 +14812,30 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14812
14812
  default: !1
14813
14813
  }
14814
14814
  },
14815
- emits: ["save"],
14815
+ emits: ["save", "notifyList"],
14816
14816
  setup(e, { expose: t, emit: n }) {
14817
- const r = n, i = _e(!1), a = _e({});
14818
- function s() {
14817
+ const r = n, i = _e(!1), a = _e({}), s = _e({});
14818
+ function o() {
14819
14819
  i.value = !1;
14820
14820
  }
14821
- function o(l) {
14821
+ function l() {
14822
+ if (s.value = {}, !a.value.name) {
14823
+ s.value.name = "Name is required", r("notifyList", "Error", ["Name is required"], !1);
14824
+ return;
14825
+ }
14826
+ r("save", a.value);
14827
+ }
14828
+ function A(u) {
14822
14829
  i.value = !0, a.value = {
14823
- name: l.name,
14824
- description: l.description || ""
14830
+ name: u.name,
14831
+ description: u.description || ""
14825
14832
  };
14826
14833
  }
14827
14834
  return t({
14828
14835
  open: i,
14829
- openModal: o,
14830
- close: s
14831
- }), (l, A) => (z(), Je(ee(Jl), {
14836
+ openModal: A,
14837
+ close: o
14838
+ }), (u, c) => (z(), Je(ee(Jl), {
14832
14839
  open: i.value,
14833
14840
  title: e.title
14834
14841
  }, {
@@ -14837,8 +14844,9 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14837
14844
  default: Me(() => [
14838
14845
  pe(ee(Ss), {
14839
14846
  modelValue: a.value.name,
14840
- "onUpdate:modelValue": A[0] || (A[0] = (u) => a.value.name = u)
14841
- }, null, 8, ["modelValue"])
14847
+ "onUpdate:modelValue": c[0] || (c[0] = (f) => a.value.name = f),
14848
+ error: s.value.name
14849
+ }, null, 8, ["modelValue", "error"])
14842
14850
  ]),
14843
14851
  _: 1
14844
14852
  }),
@@ -14846,7 +14854,7 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14846
14854
  default: Me(() => [
14847
14855
  pe(ee(Ss), {
14848
14856
  modelValue: a.value.description,
14849
- "onUpdate:modelValue": A[1] || (A[1] = (u) => a.value.description = u)
14857
+ "onUpdate:modelValue": c[1] || (c[1] = (f) => a.value.description = f)
14850
14858
  }, null, 8, ["modelValue"])
14851
14859
  ]),
14852
14860
  _: 1
@@ -14856,8 +14864,8 @@ const hY = /* @__PURE__ */ pr(fY, [["render", dY]]), pY = { class: "mt-2" }, gY
14856
14864
  pe(ee(jh), {
14857
14865
  saveText: e.saveButtonText,
14858
14866
  loading: e.loading,
14859
- onSave: A[2] || (A[2] = (u) => r("save", a.value)),
14860
- onClose: s
14867
+ onSave: l,
14868
+ onClose: o
14861
14869
  }, null, 8, ["saveText", "loading"])
14862
14870
  ]),
14863
14871
  _: 1
@@ -41236,8 +41244,8 @@ const Q_e = /* @__PURE__ */ pr(vve, [["render", Cve]]), _ve = { class: "w-full s
41236
41244
  return z(!0), he(gt, null, Yt(i.value, (A) => (z(), he("ul", null, [
41237
41245
  G("li", Ive, [
41238
41246
  G("div", {
41239
- style: Ha(`padding-left: ${e.level * 8}px`)
41240
- }, Ze(A.exclude ? "NOT " : "") + " " + Ze(A.type !== "bool" ? `${A.type} ` : "") + Ze(A.label), 5),
41247
+ style: Ha(`padding-left: ${e.level * 12}px`)
41248
+ }, Ze(A.exclude ? "NOT " : "") + " " + Ze(A.type !== "bool" ? `${A.type} ` : A.boolType) + Ze(A.label), 5),
41241
41249
  G("div", Tve, [
41242
41250
  n.readonly ? lt("", !0) : (z(), Je(ee(g4), {
41243
41251
  key: 0,
@@ -60617,7 +60625,7 @@ function(e) {
60617
60625
  */
60618
60626
  function(e) {
60619
60627
  function t() {
60620
- return (dn.canvg ? Promise.resolve(dn.canvg) : import("./index.es-CnXKAm0y.mjs")).catch(function(n) {
60628
+ return (dn.canvg ? Promise.resolve(dn.canvg) : import("./index.es-D_V-SIHX.mjs")).catch(function(n) {
60621
60629
  return Promise.reject(new Error("Could not load canvg: " + n));
60622
60630
  }).then(function(n) {
60623
60631
  return n.default ? n.default : n;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-CXD1ULy9.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-9yvRXgPX.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluency-v8-components",
3
- "version": "1.2.8",
3
+ "version": "1.3.0",
4
4
  "main": "dist/fluency-v8-components.umd.js",
5
5
  "module": "dist/fluency-v8-components.es.js",
6
6
  "types": "dist/index.d.ts",