PageSourceSearch

https://app.connexmarketplace.com/chunk-SMASQEPG.js

js connexmarketplace.com collected 2026-09-28 10:37:14 UTC 387,945 bytes, 16 lines download raw bytes

1import{a as L2,b as r0,c as i8}from"./chunk-WVAANO33.js";import{$ as K7,C as O7,Fa as d0,Ga as M3,Ha as V3,Ia as ic,Ja as tc,M as R7,O as U7,R as G7,W as q7,Y as j7,Z as W7,_ as $7,a as _7,ba as Q7,c as N7,e as k7,ea as X7,f as C4,fa as f0,g as n0,ga as a8,h as E7,ha as m0,ia as Z7,k as s0,ka as Y7,l as T7,ma as J7,n as P7,na as cc,o as F7,pa as p0,s as D7,sa as ec,v as I7,w as o0,wa as ac,x as l0,z as B7}from"./chunk-PXHW6UA4.js";import{$ as c3,$a as T5,A as l1,Ab as W5,Ac as l7,B as u4,Bb as $5,Bc as f7,C as I6,Da as v4,Dd as M7,E as B6,Ea as _5,Ed as V7,F as o2,Fa as N5,G as T4,Ga as g4,H as O6,Ha as e3,Hb as K5,He as y7,I as R6,Ia as W2,Ib as Q5,Ja as k5,K as u5,Ka as G6,Kc as m7,Ke as S7,La as q6,Lc as p7,M as z4,Ma as A5,Mc as d7,N as W1,Na as H4,Nc as h7,O as z5,Ob as X5,Oc as u7,Pa as a3,Pb as Z5,Pc as c0,Pe as t0,Q as $1,Qa as i3,Qb as Y5,Qc as z7,R as K1,Ra as t3,Rb as J5,Rc as p2,S as M1,Sa as j6,T as V1,Ta as W6,Uc as g2,V as v5,Va as $6,Wa as K6,Wc as e0,Xa as n3,Xb as f3,Xc as a0,Xd as x7,Ya as E5,Yb as m3,Yc as A2,Za as r3,Zb as p3,_a as s3,_b as d3,_e as w7,aa as I2,ab as P5,ac as h3,ba as X3,bb as F5,bc as u3,bd as g7,ca as g5,cc as X6,da as H5,dc as c7,e as P6,ec as e7,fa as C5,fc as a7,fd as H7,gc as i7,h as X4,ha as x1,hb as D5,hc as t7,i as p4,ia as Q1,ib as I5,ic as n7,j as Z4,ja as U6,jb as X1,je as L7,kb as Z1,ke as b7,l as H1,lb as o3,m as F6,ma as L1,mb as l3,n as d4,na as M5,ne as e8,o as Y4,oa as u1,p as J4,pa as V5,pc as Z6,qb as B5,qc as r7,qd as C7,ra as x5,rb as O5,rc as s7,sa as L5,sb as R5,sc as o7,t as h5,ta as b5,tc as Y6,u as D6,ua as y5,ub as U5,uc as f1,ud as i0,v as C1,va as S5,vc as b1,wa as w5,wb as G5,wc as J6,x as v2,xb as q5,xc as z3,y as h4,yb as Q6,yc as v3,z as D2,zb as j5,zc as g3}from"./chunk-VYQT4HXP.js";import{a as A7,c as y1}from"./chunk-NKXCO6FZ.js";import{$b as h,$c as o5,Aa as F2,Ad as E6,Ba as M,Bb as v,Bd as T6,C as _4,Ca as V,Cc as S,Cd as k2,D as Q,Dc as N,Ec as m4,Ed as j1,F as a4,Fa as C2,Fd as f5,Gb as p,Gc as h1,Ha as y6,Hd as m5,Ib as t1,Id as p5,J as N4,Ja as c5,Jd as d5,Ka as S6,Kd as G,L as e1,La as f2,Lb as x2,Ma as J,Mb as Y0,Md as i4,N as W3,Nd as E4,Ob as w6,Oc as r5,Pb as _6,Q as Q8,Qa as T1,Qb as r,Qd as Q3,Rb as s,Sb as u,Sd as o1,T as X8,Tb as F,Tc as q1,U as b6,Ub as D,Uc as s5,V as Z8,Vb as A4,Vc as J0,W as j2,Wb as b,Y as k4,Z as O,Zb as C,_ as P,_c as c8,aa as w2,ab as e5,ac as P2,bb as W4,bc as z2,c as O2,cb as $4,ea as Y8,ed as N6,f as B,fa as R,fc as a5,g as U1,ga as _2,gb as n2,gc as Z2,h as d1,hc as R2,he as v7,ia as $3,ic as U2,jb as m,jc as G2,jd as r2,ka as k,kb as z,kc as o,l as A1,la as G1,lc as W,m as S4,mc as _,n as Y,nc as K4,ne as q,o as K8,oc as Q4,oe as G9,pa as a1,qa as A,qb as Z0,qe as H3,r as w4,ra as N2,rb as i1,rc as n1,rd as l5,s as w,sa as U,sc as r1,se as C3,t as E1,ta as j4,tc as s1,te as $2,ub as K3,uc as i5,ud as g1,ue as B2,vb as u2,vc as K,vd as m2,wd as Z,xc as P1,xd as k6,y as L6,ya as J8,yc as t5,yd as A6,z as X0,zc as n5}from"./chunk-E2EH5VKV.js";import{a as $,b as y2,d as Q0,e as c1,f as U9,g as x6,i as k1}from"./chunk-FFXK657A.js";var Se=c1((Zh,D0)=>{"use strict";(function(c,i,a){if(!c)return;for(var e={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},t={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},n={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},l={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},f,d=1;d<20;++d)e[111+d]="f"+d;for(d=0;d<=9;++d)e[d+96]=d.toString();function g(x,y,i2){if(x.addEventListener){x.addEventListener(y,i2,!1);return}x.attachEvent("on"+y,i2)}function H(x){if(x.type=="keypress"){var y=String.fromCharCode(x.which);return x.shiftKey||(y=y.toLowerCase()),y}return e[x.which]?e[x.which]:t[x.which]?t[x.which]:String.fromCharCode(x.which).toLowerCase()}function L(x,y){return x.sort().join(",")===y.sort().join(",")}function T(x){var y=[];return x.shiftKey&&y.push("shift"),x.altKey&&y.push("alt"),x.ctrlKey&&y.push("ctrl"),x.metaKey&&y.push("meta"),y}function e2(x){if(x.preventDefault){x.preventDefault();return}x.returnValue=!1}
1function X(x){if(x.stopPropagation){x.stopPropagation();return}x.cancelBubble=!0}function I(x){return x=="shift"||x=="ctrl"||x=="alt"||x=="meta"}function V2(){if(!f){f={};for(var x in e)x>95&&x<112||e.hasOwnProperty(x)&&(f[e[x]]=x)}return f}function a2(x,y,i2){return i2||(i2=V2()[x]?"keydown":"keypress"),i2=="keypress"&&y.length&&(i2="keydown"),i2}function N1(x){return x==="+"?["+"]:(x=x.replace(/\+{2}/g,"+plus"),x.split("+"))}function b4(x,y){var i2,b2,l4,y4=[];for(i2=N1(x),l4=0;l4<i2.length;++l4)b2=i2[l4],l[b2]&&(b2=l[b2]),y&&y!="keypress"&&n[b2]&&(b2=n[b2],y4.push("shift")),I(b2)&&y4.push(b2);return y=a2(b2,y4,y),{key:b2,modifiers:y4,action:y}}function j3(x,y){return x===null||x===i?!1:x===y?!0:j3(x.parentNode,y)}function T2(x){var y=this;if(x=x||i,!(y instanceof T2))return new T2(x);y.target=x,y._callbacks={},y._directMap={};var i2={},b2,l4=!1,y4=!1,j0=!1;function W0(j){j=j||{};var s2=!1,h2;for(h2 in i2){if(j[h2]){s2=!0;continue}i2[h2]=0}s2||(j0=!1)}function W8(j,s2,h2,t2,H2,e4){var l2,q2,q4=[],f4=h2.type;if(!y._callbacks[j])return[];for(f4=="keyup"&&I(j)&&(s2=[j]),l2=0;l2<y._callbacks[j].length;++l2)if(q2=y._callbacks[j][l2],!(!t2&&q2.seq&&i2[q2.seq]!=q2.level)&&f4==q2.action&&(f4=="keypress"&&!h2.metaKey&&!h2.ctrlKey||L(s2,q2.modifiers))){var O9=!t2&&q2.combo==H2,R9=t2&&q2.seq==t2&&q2.level==e4;(O9||R9)&&y._callbacks[j].splice(l2,1),q4.push(q2)}return q4}function $0(j,s2,h2,t2){y.stopCallback(s2,s2.target||s2.srcElement,h2,t2)||j(s2,h2)===!1&&(e2(s2),X(s2))}y._handleKey=function(j,s2,h2){var t2=W8(j,s2,h2),H2,e4={},l2=0,q2=!1;for(H2=0;H2<t2.length;++H2)t2[H2].seq&&(l2=Math.max(l2,t2[H2].level));for(H2=0;H2<t2.length;++H2){if(t2[H2].seq){if(t2[H2].level!=l2)continue;q2=!0,e4[t2[H2].seq]=1,$0(t2[H2].callback,h2,t2[H2].combo,t2[H2].seq);continue}q2||$0(t2[H2].callback,h2,t2[H2].combo)}var q4=h2.type=="keypress"&&y4;h2.type==j0&&!I(j)&&!q4&&W0(e4),y4=q2&&h2.type=="keydown"};function K0(j){typeof j.which!="number"&&(j.which=j.keyCode);var s2=H(j);if(s2){if(j.type=="keyup"&&l4===s2){l4=!1;return}y.handleKey(s2,T(j),j)}}function I9(){clearTimeout(b2),b2=setTimeout(W0,1e3)}function B9(j,s2,h2,t2){i2[j]=0;function H2(f4){return function(){j0=f4,++i2[j],I9()}}function e4(f4){$0(h2,f4,j),t2!=="keyup"&&(l4=H(f4)),setTimeout(W0,10)}for(var l2=0;l2<s2.length;++l2){var q2=l2+1===s2.length,q4=q2?e4:H2(t2||b4(s2[l2+1]).action);$8(s2[l2],q4,t2,j,l2)}}function $8(j,s2,h2,t2,H2){y._directMap[j+":"+h2]=s2,j=j.replace(/\s+/g," ");var e4=j.split(" "),l2;if(e4.length>1){B9(j,e4,s2,h2);return}l2=b4(j,h2),y._callbacks[l2.key]=y._callbacks[l2.key]||[],W8(l2.key,l2.modifiers,{type:l2.action},t2,j,H2),y._callbacks[l2.key][t2?"unshift":"push"]({callback:s2,modifiers:l2.modifiers,action:l2.action,seq:t2,level:H2,combo:j})}y._bindMultiple=function(j,s2,h2){for(var t2=0;t2<j.length;++t2)$8(j[t2],s2,h2)},g(x,"keypress",K0),g(x,"keydown",K0),g(x,"keyup",K0)}T2.prototype.bind=function(x,y,i2){var b2=this;return x=x instanceof Array?x:[x],b2._bindMultiple.call(b2,x,y,i2),b2},T2.prototype.unbind=function(x,y){var i2=this;return i2.bind.call(i2,x,function(){},y)},T2.prototype.trigger=function(x,y){var i2=this;return i2._directMap[x+":"+y]&&i2._directMap[x+":"+y]({},x),i2},T2.prototype.reset=function(){var x=this;return x._callbacks={},x._directMap={},x},T2.prototype.stopCallback=function(x,y){var i2=this;if((" "+y.className+" ").indexOf(" mousetrap ")>-1||j3(y,i2.target))return!1;if("composedPath"in x&&typeof x.composedPath=="function"){var b2=x.composedPath()[0];b2!==x.target&&(y=b2)}return y.tagName=="INPUT"||y.tagName=="SELECT"||y.tagName=="TEXTAREA"||y.isContentEditable},T2.prototype.handleKey=function(){var x=this;return x._handleKey.apply(x,arguments)},T2.addKeycodes=function(x){for(var y in x)x.hasOwnProperty(y)&&(e[y]=x[y]);f=null},T2.init=function(){var x=T2(i);for(var y in x)y.charAt(0)!=="_"&&(T2[y]=function(i2){return function(){return x[i2].apply(x,arguments)}}(y))},T2.init(),c.Mousetrap=T2,typeof D0<"u"&&D0.exports&&(D0.exports=T2),typeof define=="function"&&define.amd&&define(function(){return T2})})(typeof window<"u"?window:null,typeof window<"u"?document:null)});var Ue=c1((N8,k8)=>{"use strict";(function(c,i){typeof define=="function"&&define.amd?define([],i):typeof N8<"u"?i():(i(),c.FileSaver={})})(N8,function(){"use strict";function c(f,d){return typeof d>"u"?d={autoBom:!1}:typeof d!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),d={autoBom:!d}),d.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\uFEFF",f],{type:f.type}):f}function i(f,d,g){var H=new XMLHttpRequest;H.open("GET",f),H.responseType="blob",H.onload=function(){l(H.response,d,g)},H.onerror=function(){console.error("could not download file")},H.send()}function a(f){var d=new XMLHttpRequest;d.open("HEAD",f,!1);try{d.send()}catch{}return 200<=d.status&&299>=d.status}function e(f){try{f.dispatchEvent(new MouseEvent("click"))}catch{var d=document.createEvent("MouseEvents");
1d.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(d)}}var t=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,n=t.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=t.saveAs||(typeof window!="object"||window!==t?function(){}:"download"in HTMLAnchorElement.prototype&&!n?function(f,d,g){var H=t.URL||t.webkitURL,L=document.createElement("a");d=d||f.name||"download",L.download=d,L.rel="noopener",typeof f=="string"?(L.href=f,L.origin===location.origin?e(L):a(L.href)?i(f,d,g):e(L,L.target="_blank")):(L.href=H.createObjectURL(f),setTimeout(function(){H.revokeObjectURL(L.href)},4e4),setTimeout(function(){e(L)},0))}:"msSaveOrOpenBlob"in navigator?function(f,d,g){if(d=d||f.name||"download",typeof f!="string")navigator.msSaveOrOpenBlob(c(f,g),d);else if(a(f))i(f,d,g);else{var H=document.createElement("a");H.href=f,H.target="_blank",setTimeout(function(){e(H)})}}:function(f,d,g,H){if(H=H||open("","_blank"),H&&(H.document.title=H.document.body.innerText="downloading..."),typeof f=="string")return i(f,d,g);var L=f.type==="application/octet-stream",T=/constructor/i.test(t.HTMLElement)||t.safari,e2=/CriOS\/[\d]+/.test(navigator.userAgent);if((e2||L&&T||n)&&typeof FileReader<"u"){var X=new FileReader;X.onloadend=function(){var a2=X.result;a2=e2?a2:a2.replace(/^data:[^;]*;/,"data:attachment/file;"),H?H.location.href=a2:location=a2,H=null},X.readAsDataURL(f)}else{var I=t.URL||t.webkitURL,V2=I.createObjectURL(f);H?H.location=V2:location.href=V2,H=null,setTimeout(function(){I.revokeObjectURL(V2)},4e4)}});t.saveAs=l.saveAs=l,typeof k8<"u"&&(k8.exports=l)})});var q0=c1(o4=>{"use strict";var a9=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ko=a9+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i9="["+a9+"]["+Ko+"]*",Qo=new RegExp("^"+i9+"$"),Xo=function(c,i){let a=[],e=i.exec(c);for(;e;){let t=[];t.startIndex=i.lastIndex-e[0].length;let n=e.length;for(let l=0;l<n;l++)t.push(e[l]);a.push(t),e=i.exec(c)}return a},Zo=function(c){let i=Qo.exec(c);return!(i===null||typeof i>"u")};o4.isExist=function(c){return typeof c<"u"};o4.isEmptyObject=function(c){return Object.keys(c).length===0};o4.merge=function(c,i,a){if(i){let e=Object.keys(i),t=e.length;for(let n=0;n<t;n++)a==="strict"?c[e[n]]=[i[e[n]]]:c[e[n]]=i[e[n]]}};o4.getValue=function(c){return o4.isExist(c)?c:""};o4.isName=Zo;o4.getAllMatches=Xo;o4.nameRegexp=i9});var B8=c1(o9=>{"use strict";var I8=q0(),Yo={allowBooleanAttributes:!1,unpairedTags:[]};o9.validate=function(c,i){i=Object.assign({},Yo,i);let a=[],e=!1,t=!1;c[0]==="\uFEFF"&&(c=c.substr(1));for(let n=0;n<c.length;n++)if(c[n]==="<"&&c[n+1]==="?"){if(n+=2,n=n9(c,n),n.err)return n}else if(c[n]==="<"){let l=n;if(n++,c[n]==="!"){n=r9(c,n);continue}else{let f=!1;c[n]==="/"&&(f=!0,n++);let d="";for(;n<c.length&&c[n]!==">"&&c[n]!==" "&&c[n]!=="	"&&c[n]!==`
2`&&c[n]!=="\r";n++)d+=c[n];if(d=d.trim(),d[d.length-1]==="/"&&(d=d.substring(0,d.length-1),n--),!rl(d)){let L;return d.trim().length===0?L="Invalid space after '<'.":L="Tag '"+d+"' is an invalid name.",E2("InvalidTag",L,p1(c,n))}let g=el(c,n);if(g===!1)return E2("InvalidAttr","Attributes for '"+d+"' have open quote.",p1(c,n));let H=g.value;if(n=g.index,H[H.length-1]==="/"){let L=n-H.length;H=H.substring(0,H.length-1);let T=s9(H,i);if(T===!0)e=!0;else return E2(T.err.code,T.err.msg,p1(c,L+T.err.line))}else if(f)if(g.tagClosed){if(H.trim().length>0)return E2("InvalidTag","Closing tag '"+d+"' can't have attributes or invalid starting.",p1(c,l));{let L=a.pop();if(d!==L.tagName){let T=p1(c,L.tagStartPos);return E2("InvalidTag","Expected closing tag '"+L.tagName+"' (opened in line "+T.line+", col "+T.col+") instead of closing tag '"+d+"'.",p1(c,l))}a.length==0&&(t=!0)}}else return E2("InvalidTag","Closing tag '"+d+"' doesn't have proper closing.",p1(c,n));else{let L=s9(H,i);if(L!==!0)return E2(L.err.code,L.err.msg,p1(c,n-H.length+L.err.line));if(t===!0)return E2("InvalidXml","Multiple possible root nodes found.",p1(c,n));i.unpairedTags.indexOf(d)!==-1||a.push({tagName:d,tagStartPos:l}),e=!0}for(n++;n<c.length;n++)if(c[n]==="<")if(c[n+1]==="!"){n++,n=r9(c,n);continue}else if(c[n+1]==="?"){if(n=n9(c,++n),n.err)return n}else break;else if(c[n]==="&"){let L=tl(c,n);if(L==-1)return E2("InvalidChar","char '&' is not expected.",p1(c,n));n=L}else if(t===!0&&!t9(c[n]))return E2("InvalidXml","Extra text at the end",p1(c,n));c[n]==="<"&&n--}}else{if(t9(c[n]))continue;return E2("InvalidChar","char '"+c[n]+"' is not expected.",p1(c,n))}if(e){if(a.length==1)return E2("InvalidTag","Unclosed tag '"+a[0].tagName+"'.",p1(c,a[0].tagStartPos));if(a.length>0)return E2("InvalidXml","Invalid '"+JSON.stringify(a.map(n=>n.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return E2("InvalidXml","Start tag expected.",1);return!0};function t9(c){return c===" "||c==="	"||c===`
3`||c==="\r"}function n9(c,i){let a=i;for(;i<c.length;i++)if(c[i]=="?"||c[i]==" "){let e=c.substr(a,i-a);if(i>5&&e==="xml")return E2("InvalidXml","XML declaration allowed only at the start of the document.",p1(c,i));if(c[i]=="?"&&c[i+1]==">"){i++;break}else continue}return i}
3function r9(c,i){if(c.length>i+5&&c[i+1]==="-"&&c[i+2]==="-"){for(i+=3;i<c.length;i++)if(c[i]==="-"&&c[i+1]==="-"&&c[i+2]===">"){i+=2;break}}else if(c.length>i+8&&c[i+1]==="D"&&c[i+2]==="O"&&c[i+3]==="C"&&c[i+4]==="T"&&c[i+5]==="Y"&&c[i+6]==="P"&&c[i+7]==="E"){let a=1;for(i+=8;i<c.length;i++)if(c[i]==="<")a++;else if(c[i]===">"&&(a--,a===0))break}else if(c.length>i+9&&c[i+1]==="["&&c[i+2]==="C"&&c[i+3]==="D"&&c[i+4]==="A"&&c[i+5]==="T"&&c[i+6]==="A"&&c[i+7]==="["){for(i+=8;i<c.length;i++)if(c[i]==="]"&&c[i+1]==="]"&&c[i+2]===">"){i+=2;break}}return i}var Jo='"',cl="'";function el(c,i){let a="",e="",t=!1;for(;i<c.length;i++){if(c[i]===Jo||c[i]===cl)e===""?e=c[i]:e!==c[i]||(e="");else if(c[i]===">"&&e===""){t=!0;break}a+=c[i]}return e!==""?!1:{value:a,index:i,tagClosed:t}}var al=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function s9(c,i){let a=I8.getAllMatches(c,al),e={};for(let t=0;t<a.length;t++){if(a[t][1].length===0)return E2("InvalidAttr","Attribute '"+a[t][2]+"' has no space in starting.",C6(a[t]));if(a[t][3]!==void 0&&a[t][4]===void 0)return E2("InvalidAttr","Attribute '"+a[t][2]+"' is without value.",C6(a[t]));if(a[t][3]===void 0&&!i.allowBooleanAttributes)return E2("InvalidAttr","boolean attribute '"+a[t][2]+"' is not allowed.",C6(a[t]));let n=a[t][2];if(!nl(n))return E2("InvalidAttr","Attribute '"+n+"' is an invalid name.",C6(a[t]));if(!e.hasOwnProperty(n))e[n]=1;else return E2("InvalidAttr","Attribute '"+n+"' is repeated.",C6(a[t]))}return!0}function il(c,i){let a=/\d/;for(c[i]==="x"&&(i++,a=/[\da-fA-F]/);i<c.length;i++){if(c[i]===";")return i;if(!c[i].match(a))break}return-1}function tl(c,i){if(i++,c[i]===";")return-1;if(c[i]==="#")return i++,il(c,i);let a=0;for(;i<c.length;i++,a++)if(!(c[i].match(/\w/)&&a<20)){if(c[i]===";")break;return-1}return i}function E2(c,i,a){return{err:{code:c,msg:i,line:a.line||a,col:a.col}}}function nl(c){return I8.isName(c)}function rl(c){return I8.isName(c)}function p1(c,i){let a=c.substring(0,i).split(/\r?\n/);return{line:a.length,col:a[a.length-1].length+1}}function C6(c){return c.startIndex+c[1].length}});var f9=c1(O8=>{"use strict";var l9={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(c,i){return i},attributeValueProcessor:function(c,i){return i},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(c,i,a){return c}},sl=function(c){return Object.assign({},l9,c)};O8.buildOptions=sl;O8.defaultOptions=l9});var p9=c1((UH,m9)=>{"use strict";var R8=class{constructor(i){this.tagname=i,this.child=[],this[":@"]={}}add(i,a){i==="__proto__"&&(i="#__proto__"),this.child.push({[i]:a})}addChild(i){i.tagname==="__proto__"&&(i.tagname="#__proto__"),i[":@"]&&Object.keys(i[":@"]).length>0?this.child.push({[i.tagname]:i.child,":@":i[":@"]}):this.child.push({[i.tagname]:i.child})}};m9.exports=R8});var h9=c1((GH,d9)=>{"use strict";var ol=q0();function ll(c,i){let a={};if(c[i+3]==="O"&&c[i+4]==="C"&&c[i+5]==="T"&&c[i+6]==="Y"&&c[i+7]==="P"&&c[i+8]==="E"){i=i+9;let e=1,t=!1,n=!1,l="";for(;i<c.length;i++)if(c[i]==="<"&&!n){if(t&&pl(c,i))i+=7,[entityName,val,i]=fl(c,i+1),val.indexOf("&")===-1&&(a[zl(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(t&&dl(c,i))i+=8;else if(t&&hl(c,i))i+=8;else if(t&&ul(c,i))i+=9;else if(ml)n=!0;else throw new Error("Invalid DOCTYPE");e++,l=""}else if(c[i]===">"){if(n?c[i-1]==="-"&&c[i-2]==="-"&&(n=!1,e--):e--,e===0)break}else c[i]==="["?t=!0:l+=c[i];if(e!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:a,i}}function fl(c,i){let a="";for(;i<c.length&&c[i]!=="'"&&c[i]!=='"';i++)a+=c[i];if(a=a.trim(),a.indexOf(" ")!==-1)throw new Error("External entites are not supported");let e=c[i++],t="";for(;i<c.length&&c[i]!==e;i++)t+=c[i];return[a,t,i]}function ml(c,i){return c[i+1]==="!"&&c[i+2]==="-"&&c[i+3]==="-"}function pl(c,i){return c[i+1]==="!"&&c[i+2]==="E"&&c[i+3]==="N"&&c[i+4]==="T"&&c[i+5]==="I"&&c[i+6]==="T"&&c[i+7]==="Y"}function dl(c,i){return c[i+1]==="!"&&c[i+2]==="E"&&c[i+3]==="L"&&c[i+4]==="E"&&c[i+5]==="M"&&c[i+6]==="E"&&c[i+7]==="N"&&c[i+8]==="T"}function hl(c,i){return c[i+1]==="!"&&c[i+2]==="A"&&c[i+3]==="T"&&c[i+4]==="T"&&c[i+5]==="L"&&c[i+6]==="I"&&c[i+7]==="S"&&c[i+8]==="T"}function ul(c,i){return c[i+1]==="!"&&c[i+2]==="N"&&c[i+3]==="O"&&c[i+4]==="T"&&c[i+5]==="A"&&c[i+6]==="T"&&c[i+7]==="I"&&c[i+8]==="O"&&c[i+9]==="N"}function zl(c){if(ol.isName(c))return c;throw new Error(`Invalid entity name ${c}`)}d9.exports=ll});var z9=c1((qH,u9)=>{"use strict";var vl=/^[-+]?0x[a-fA-F0-9]+$/,gl=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var Hl={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Cl(c,i={}){if(i=Object.assign({},Hl,i),!c||typeof c!="string")return c;let a=c.trim();if(i.skipLike!==void 0&&i.skipLike.test(a))return c;if(i.hex&&vl.test(a))return Number.parseInt(a,16);{let e=gl.exec(a);if(e){let t=e[1],n=e[2],l=Ml(e[3]),f=e[4]||e[6];if(!i.leadingZeros&&n.length>0&&t&&a[2]!==".")return c;if(!i.leadingZeros&&n.length>0&&!t&&a[1]!==".")return c;{let d=Number(a),g=""+d;return g.search(/[eE]/)!==-1||f?i.eNotation?d:c:a.indexOf(".")!==-1?g==="0"&&l===""||g===l||t&&g==="-"+l?d:c:n?l===g||t+l===g?d:c:a===g||a===t+g?d:c}}else return c}}function Ml(c){return c&&c.indexOf(".")!==-1&&(c=c.replace(/0+$/,""),c==="."?c="0":c[0]==="."?c="0"+c:c[c.length-1]==="."&&(c=c.substr(0,c.length-1))),c}u9.exports=Cl});var H9=c1((jH,g9)=>{"use strict";var v9=q0(),M6=p9(),Vl=h9(),xl=z9(),U8=class{constructor(i){this.options=i,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"}},this.addExternalEntities=Ll,this.parseXml=_l,this.parseTextData=bl,this.resolveNameSpace=yl,this.buildAttributesMap=wl,this.isItStopNode=El,this.replaceEntitiesValue=kl,this.readStopNodeData=Pl,this.saveTextToParentTag=Al,this.addChild=Nl}};function Ll(c){let i=Object.keys(c);for(let a=0;a<i.length;a++){let e=i[a];this.lastEntities[e]={regex:new RegExp("&"+e+";","g"),val:c[e]}}}function bl(c,i,a,e,t,n,l){if(c!==void 0&&(this.options.trimValues&&!e&&(c=c.trim()),c.length>0)){l||(c=this.replaceEntitiesValue(c));let f=this.options.tagValueProcessor(i,c,a,t,n);return f==null?c:typeof f!=typeof c||f!==c?f:this.options.trimValues?q8(c,this.options.parseTagValue,this.options.numberParseOptions):c.trim()===c?q8(c,this.options.parseTagValue,this.options.numberParseOptions):c}}function yl(c){if(this.options.removeNSPrefix){let i=c.split(":"),a=c.charAt(0)==="/"?"/":"";if(i[0]==="xmlns")return"";i.length===2&&(c=a+i[1])}return c}var Sl=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function wl(c,i,a){if(!this.options.ignoreAttributes&&typeof c=="string"){let e=v9.getAllMatches(c,Sl),t=e.length,n={};for(let l=0;l<t;l++){let f=this.resolveNameSpace(e[l][1]),d=e[l][4],g=this.options.attributeNamePrefix+f;if(f.length)if(this.options.transformAttributeName&&(g=this.options.transformAttributeName(g)),g==="__proto__"&&(g="#__proto__"),d!==void 0){this.options.trimValues&&(d=d.trim()),d=this.replaceEntitiesValue(d);let H=this.options.attributeValueProcessor(f,d,i);H==null?n[g]=d:typeof H!=typeof d||H!==d?n[g]=H:n[g]=q8(d,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(n[g]=!0)}if(!Object.keys(n).length)return;if(this.options.attributesGroupName){let l={};return l[this.options.attributesGroupName]=n,l}return n}}var _l=function(c){c=c.replace(/\r\n?/g,`
4`);let i=new M6("!xml"),a=i,e="",t="";for(let n=0;n<c.length;n++)if(c[n]==="<")if(c[n+1]==="/"){let f=G4(c,">",n,"Closing Tag is not closed."),d=c.substring(n+2,f).trim();if(this.options.removeNSPrefix){let L=d.indexOf(":");L!==-1&&(d=d.substr(L+1))}this.options.transformTagName&&(d=this.options.transformTagName(d)),a&&(e=this.saveTextToParentTag(e,a,t));let g=t.substring(t.lastIndexOf(".")+1);if(d&&this.options.unpairedTags.indexOf(d)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);let H=0;g&&this.options.unpairedTags.indexOf(g)!==-1?(H=t.lastIndexOf(".",t.lastIndexOf(".")-1),this.tagsNodeStack.pop()):H=t.lastIndexOf("."),t=t.substring(0,H),a=this.tagsNodeStack.pop(),e="",n=f}else if(c[n+1]==="?"){let f=G8(c,n,!1,"?>");if(!f)throw new Error("Pi Tag is not closed.");if(e=this.saveTextToParentTag(e,a,t),!(this.options.ignoreDeclaration&&f.tagName==="?xml"||this.options.ignorePiTags)){let d=new M6(f.tagName);d.add(this.options.textNodeName,""),f.tagName!==f.tagExp&&f.attrExpPresent&&(d[":@"]=this.buildAttributesMap(f.tagExp,t,f.tagName)),this.addChild(a,d,t)}n=f.closeIndex+1}else if(c.substr(n+1,3)==="!--"){let f=G4(c,"-->",n+4,"Comment is not closed.");if(this.options.commentPropName){let d=c.substring(n+4,f-2);e=this.saveTextToParentTag(e,a,t),a.add(this.options.commentPropName,[{[this.options.textNodeName]:d}])}n=f}else if(c.substr(n+1,2)==="!D"){let f=Vl(c,n);this.docTypeEntities=f.entities,n=f.i}else if(c.substr(n+1,2)==="!["){let f=G4(c,"]]>",n,"CDATA is not closed.")-2,d=c.substring(n+9,f);e=this.saveTextToParentTag(e,a,t);let g=this.parseTextData(d,a.tagname,t,!0,!1,!0,!0);g==null&&(g=""),this.options.cdataPropName?a.add(this.options.cdataPropName,[{[this.options.textNodeName]:d}]):a.add(this.options.textNodeName,g),n=f+2}else{let f=G8(c,n,this.options.removeNSPrefix),d=f.tagName,g=f.rawTagName,H=f.tagExp,L=f.attrExpPresent,T=f.closeIndex;this.options.transformTagName&&(d=this.options.transformTagName(d)),a&&e&&a.tagname!=="!xml"&&(e=this.saveTextToParentTag(e,a,t,!1));let e2=a;if(e2&&this.options.unpairedTags.indexOf(e2.tagname)!==-1&&(a=this.tagsNodeStack.pop(),t=t.substring(0,t.lastIndexOf("."))),d!==i.tagname&&(t+=t?"."+d:d),this.isItStopNode(this.options.stopNodes,t,d)){let X="";if(H.length>0&&H.lastIndexOf("/")===H.length-1)n=f.closeIndex;else if(this.options.unpairedTags.indexOf(d)!==-1)n=f.closeIndex;else{let V2=this.readStopNodeData(c,g,T+1);if(!V2)throw new Error(`Unexpected end of ${g}`);
4n=V2.i,X=V2.tagContent}let I=new M6(d);d!==H&&L&&(I[":@"]=this.buildAttributesMap(H,t,d)),X&&(X=this.parseTextData(X,d,t,!0,L,!0,!0)),t=t.substr(0,t.lastIndexOf(".")),I.add(this.options.textNodeName,X),this.addChild(a,I,t)}else{if(H.length>0&&H.lastIndexOf("/")===H.length-1){d[d.length-1]==="/"?(d=d.substr(0,d.length-1),t=t.substr(0,t.length-1),H=d):H=H.substr(0,H.length-1),this.options.transformTagName&&(d=this.options.transformTagName(d));let X=new M6(d);d!==H&&L&&(X[":@"]=this.buildAttributesMap(H,t,d)),this.addChild(a,X,t),t=t.substr(0,t.lastIndexOf("."))}else{let X=new M6(d);this.tagsNodeStack.push(a),d!==H&&L&&(X[":@"]=this.buildAttributesMap(H,t,d)),this.addChild(a,X,t),a=X}e="",n=T}}else e+=c[n];return i.child};function Nl(c,i,a){let e=this.options.updateTag(i.tagname,a,i[":@"]);e===!1||(typeof e=="string"&&(i.tagname=e),c.addChild(i))}var kl=function(c){if(this.options.processEntities){for(let i in this.docTypeEntities){let a=this.docTypeEntities[i];c=c.replace(a.regx,a.val)}for(let i in this.lastEntities){let a=this.lastEntities[i];c=c.replace(a.regex,a.val)}if(this.options.htmlEntities)for(let i in this.htmlEntities){let a=this.htmlEntities[i];c=c.replace(a.regex,a.val)}c=c.replace(this.ampEntity.regex,this.ampEntity.val)}return c};function Al(c,i,a,e){return c&&(e===void 0&&(e=Object.keys(i.child).length===0),c=this.parseTextData(c,i.tagname,a,!1,i[":@"]?Object.keys(i[":@"]).length!==0:!1,e),c!==void 0&&c!==""&&i.add(this.options.textNodeName,c),c=""),c}function El(c,i,a){let e="*."+a;for(let t in c){let n=c[t];if(e===n||i===n)return!0}return!1}function Tl(c,i,a=">"){let e,t="";for(let n=i;n<c.length;n++){let l=c[n];if(e)l===e&&(e="");else if(l==='"'||l==="'")e=l;else if(l===a[0])if(a[1]){if(c[n+1]===a[1])return{data:t,index:n}}else return{data:t,index:n};else l==="	"&&(l=" ");t+=l}}function G4(c,i,a,e){let t=c.indexOf(i,a);if(t===-1)throw new Error(e);return t+i.length-1}function G8(c,i,a,e=">"){let t=Tl(c,i+1,e);if(!t)return;let n=t.data,l=t.index,f=n.search(/\s/),d=n,g=!0;f!==-1&&(d=n.substring(0,f),n=n.substring(f+1).trimStart());let H=d;if(a){let L=d.indexOf(":");L!==-1&&(d=d.substr(L+1),g=d!==t.data.substr(L+1))}return{tagName:d,tagExp:n,closeIndex:l,attrExpPresent:g,rawTagName:H}}function Pl(c,i,a){let e=a,t=1;for(;a<c.length;a++)if(c[a]==="<")if(c[a+1]==="/"){let n=G4(c,">",a,`${i} is not closed`);if(c.substring(a+2,n).trim()===i&&(t--,t===0))return{tagContent:c.substring(e,a),i:n};a=n}else if(c[a+1]==="?")a=G4(c,"?>",a+1,"StopNode is not closed.");else if(c.substr(a+1,3)==="!--")a=G4(c,"-->",a+3,"StopNode is not closed.");else if(c.substr(a+1,2)==="![")a=G4(c,"]]>",a,"StopNode is not closed.")-2;else{let n=G8(c,a,">");n&&((n&&n.tagName)===i&&n.tagExp[n.tagExp.length-1]!=="/"&&t++,a=n.closeIndex)}}function q8(c,i,a){if(i&&typeof c=="string"){let e=c.trim();return e==="true"?!0:e==="false"?!1:xl(c,a)}else return v9.isExist(c)?c:""}g9.exports=U8});var V9=c1(M9=>{"use strict";function Fl(c,i){return C9(c,i)}function C9(c,i,a){let e,t={};for(let n=0;n<c.length;n++){let l=c[n],f=Dl(l),d="";if(a===void 0?d=f:d=a+"."+f,f===i.textNodeName)e===void 0?e=l[f]:e+=""+l[f];else{if(f===void 0)continue;if(l[f]){let g=C9(l[f],i,d),H=Bl(g,i);l[":@"]?Il(g,l[":@"],d,i):Object.keys(g).length===1&&g[i.textNodeName]!==void 0&&!i.alwaysCreateTextNode?g=g[i.textNodeName]:Object.keys(g).length===0&&(i.alwaysCreateTextNode?g[i.textNodeName]="":g=""),t[f]!==void 0&&t.hasOwnProperty(f)?(Array.isArray(t[f])||(t[f]=[t[f]]),t[f].push(g)):i.isArray(f,d,H)?t[f]=[g]:t[f]=g}}}return typeof e=="string"?e.length>0&&(t[i.textNodeName]=e):e!==void 0&&(t[i.textNodeName]=e),t}function Dl(c){let i=Object.keys(c);for(let a=0;a<i.length;a++){let e=i[a];if(e!==":@")return e}}function Il(c,i,a,e){if(i){let t=Object.keys(i),n=t.length;for(let l=0;l<n;l++){let f=t[l];e.isArray(f,a+"."+f,!0,!0)?c[f]=[i[f]]:c[f]=i[f]}}}function Bl(c,i){let{textNodeName:a}=i,e=Object.keys(c).length;return!!(e===0||e===1&&(c[a]||typeof c[a]=="boolean"||c[a]===0))}M9.prettify=Fl});var L9=c1(($H,x9)=>{"use strict";var{buildOptions:Ol}=f9(),Rl=H9(),{prettify:Ul}=V9(),Gl=B8(),j8=class{constructor(i){this.externalEntities={},this.options=Ol(i)}
4parse(i,a){if(typeof i!="string")if(i.toString)i=i.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(a){a===!0&&(a={});let n=Gl.validate(i,a);if(n!==!0)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}let e=new Rl(this.options);e.addExternalEntities(this.externalEntities);let t=e.parseXml(i);return this.options.preserveOrder||t===void 0?t:Ul(t,this.options)}addEntity(i,a){if(a.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(i.indexOf("&")!==-1||i.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(a==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[i]=a}};x9.exports=j8});var _9=c1((KH,w9)=>{"use strict";var ql=`
5`;function jl(c,i){let a="";return i.format&&i.indentBy.length>0&&(a=ql),y9(c,i,"",a)}function y9(c,i,a,e){let t="",n=!1;for(let l=0;l<c.length;l++){let f=c[l],d=Wl(f);if(d===void 0)continue;let g="";if(a.length===0?g=d:g=`${a}.${d}`,d===i.textNodeName){let X=f[d];$l(g,i)||(X=i.tagValueProcessor(d,X),X=S9(X,i)),n&&(t+=e),t+=X,n=!1;continue}else if(d===i.cdataPropName){n&&(t+=e),t+=`<![CDATA[${f[d][0][i.textNodeName]}]]>`,n=!1;continue}else if(d===i.commentPropName){t+=e+`<!--${f[d][0][i.textNodeName]}-->`,n=!0;continue}else if(d[0]==="?"){let X=b9(f[":@"],i),I=d==="?xml"?"":e,V2=f[d][0][i.textNodeName];V2=V2.length!==0?" "+V2:"",t+=I+`<${d}${V2}${X}?>`,n=!0;continue}let H=e;H!==""&&(H+=i.indentBy);let L=b9(f[":@"],i),T=e+`<${d}${L}`,e2=y9(f[d],i,g,H);i.unpairedTags.indexOf(d)!==-1?i.suppressUnpairedNode?t+=T+">":t+=T+"/>":(!e2||e2.length===0)&&i.suppressEmptyNode?t+=T+"/>":e2&&e2.endsWith(">")?t+=T+`>${e2}${e}</${d}>`:(t+=T+">",e2&&e!==""&&(e2.includes("/>")||e2.includes("</"))?t+=e+i.indentBy+e2+e:t+=e2,t+=`</${d}>`),n=!0}return t}function Wl(c){let i=Object.keys(c);for(let a=0;a<i.length;a++){let e=i[a];if(c.hasOwnProperty(e)&&e!==":@")return e}}function b9(c,i){let a="";if(c&&!i.ignoreAttributes)for(let e in c){if(!c.hasOwnProperty(e))continue;let t=i.attributeValueProcessor(e,c[e]);t=S9(t,i),t===!0&&i.suppressBooleanAttributes?a+=` ${e.substr(i.attributeNamePrefix.length)}`:a+=` ${e.substr(i.attributeNamePrefix.length)}="${t}"`}return a}function $l(c,i){c=c.substr(0,c.length-i.textNodeName.length-1);let a=c.substr(c.lastIndexOf(".")+1);for(let e in i.stopNodes)if(i.stopNodes[e]===c||i.stopNodes[e]==="*."+a)return!0;return!1}function S9(c,i){if(c&&c.length>0&&i.processEntities)for(let a=0;a<i.entities.length;a++){let e=i.entities[a];c=c.replace(e.regex,e.val)}return c}w9.exports=jl});var k9=c1((QH,N9)=>{"use strict";var Kl=_9(),Ql={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:"  ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(c,i){return i},attributeValueProcessor:function(c,i){return i},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function L4(c){this.options=Object.assign({},Ql,c),this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Yl),this.processTextOrObjNode=Xl,this.options.format?(this.indentate=Zl,this.tagEndChar=`>
6`,this.newLine=`
7`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}L4.prototype.build=function(c){return this.options.preserveOrder?Kl(c,this.options):(Array.isArray(c)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(c={[this.options.arrayNodeName]:c}),this.j2x(c,0).val)};L4.prototype.j2x=function(c,i){let a="",e="";for(let t in c)if(Object.prototype.hasOwnProperty.call(c,t))if(typeof c[t]>"u")this.isAttribute(t)&&(e+="");else if(c[t]===null)this.isAttribute(t)?e+="":t[0]==="?"?e+=this.indentate(i)+"<"+t+"?"+this.tagEndChar:e+=this.indentate(i)+"<"+t+"/"+this.tagEndChar;
7else if(c[t]instanceof Date)e+=this.buildTextValNode(c[t],t,"",i);else if(typeof c[t]!="object"){let n=this.isAttribute(t);if(n)a+=this.buildAttrPairStr(n,""+c[t]);else if(t===this.options.textNodeName){let l=this.options.tagValueProcessor(t,""+c[t]);e+=this.replaceEntitiesValue(l)}else e+=this.buildTextValNode(c[t],t,"",i)}else if(Array.isArray(c[t])){let n=c[t].length,l="";for(let f=0;f<n;f++){let d=c[t][f];typeof d>"u"||(d===null?t[0]==="?"?e+=this.indentate(i)+"<"+t+"?"+this.tagEndChar:e+=this.indentate(i)+"<"+t+"/"+this.tagEndChar:typeof d=="object"?this.options.oneListGroup?l+=this.j2x(d,i+1).val:l+=this.processTextOrObjNode(d,t,i):l+=this.buildTextValNode(d,t,"",i))}this.options.oneListGroup&&(l=this.buildObjectNode(l,t,"",i)),e+=l}else if(this.options.attributesGroupName&&t===this.options.attributesGroupName){let n=Object.keys(c[t]),l=n.length;for(let f=0;f<l;f++)a+=this.buildAttrPairStr(n[f],""+c[t][n[f]])}else e+=this.processTextOrObjNode(c[t],t,i);return{attrStr:a,val:e}};L4.prototype.buildAttrPairStr=function(c,i){return i=this.options.attributeValueProcessor(c,""+i),i=this.replaceEntitiesValue(i),this.options.suppressBooleanAttributes&&i==="true"?" "+c:" "+c+'="'+i+'"'};function Xl(c,i,a){let e=this.j2x(c,a+1);return c[this.options.textNodeName]!==void 0&&Object.keys(c).length===1?this.buildTextValNode(c[this.options.textNodeName],i,e.attrStr,a):this.buildObjectNode(e.val,i,e.attrStr,a)}L4.prototype.buildObjectNode=function(c,i,a,e){if(c==="")return i[0]==="?"?this.indentate(e)+"<"+i+a+"?"+this.tagEndChar:this.indentate(e)+"<"+i+a+this.closeTag(i)+this.tagEndChar;{let t="</"+i+this.tagEndChar,n="";return i[0]==="?"&&(n="?",t=""),(a||a==="")&&c.indexOf("<")===-1?this.indentate(e)+"<"+i+a+n+">"+c+t:this.options.commentPropName!==!1&&i===this.options.commentPropName&&n.length===0?this.indentate(e)+`<!--${c}-->`+this.newLine:this.indentate(e)+"<"+i+a+n+this.tagEndChar+c+this.indentate(e)+t}};L4.prototype.closeTag=function(c){let i="";return this.options.unpairedTags.indexOf(c)!==-1?this.options.suppressUnpairedNode||(i="/"):this.options.suppressEmptyNode?i="/":i=`></${c}`,i};L4.prototype.buildTextValNode=function(c,i,a,e){if(this.options.cdataPropName!==!1&&i===this.options.cdataPropName)return this.indentate(e)+`<![CDATA[${c}]]>`+this.newLine;if(this.options.commentPropName!==!1&&i===this.options.commentPropName)return this.indentate(e)+`<!--${c}-->`+this.newLine;if(i[0]==="?")return this.indentate(e)+"<"+i+a+"?"+this.tagEndChar;{let t=this.options.tagValueProcessor(i,c);return t=this.replaceEntitiesValue(t),t===""?this.indentate(e)+"<"+i+a+this.closeTag(i)+this.tagEndChar:this.indentate(e)+"<"+i+a+">"+t+"</"+i+this.tagEndChar}};L4.prototype.replaceEntitiesValue=function(c){if(c&&c.length>0&&this.options.processEntities)for(let i=0;i<this.options.entities.length;i++){let a=this.options.entities[i];c=c.replace(a.regex,a.val)}return c};function Zl(c){return this.options.indentBy.repeat(c)}function Yl(c){return c.startsWith(this.options.attributeNamePrefix)&&c!==this.options.textNodeName?c.substr(this.attrPrefixLen):!1}N9.exports=L4});var E9=c1((XH,A9)=>{"use strict";var Jl=B8(),cf=L9(),ef=k9();A9.exports={XMLParser:cf,XMLValidator:Jl,XMLBuilder:ef}});function n8(c){for(let i in c){let a=c[i]??"";switch(i){case"display":a==="flex"?c.display=["-webkit-flex","flex"]:a==="inline-flex"?c.display=["-webkit-inline-flex","inline-flex"]:c.display=a;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":c["-webkit-"+i]=a;break;case"flex-direction":c["-webkit-flex-direction"]=a,c["flex-direction"]=a;break;case"order":c.order=c["-webkit-"+i]=isNaN(+a)?"0":a;break}}return c}var t8="inline",Z3=["row","column","row-reverse","column-reverse"];function h0(c){let[i,a,e]=nc(c);return j9(i,a,e)}function nc(c){c=c?.toLowerCase()??"";let[i,a,e]=c.split(" ");return Z3.find(t=>t===i)||(i=Z3[0]),a===t8&&(a=e!==t8?e:"",e=t8),[i,q9(a),!!e]}function Y3(c){let[i]=nc(c);return i.indexOf("row")>-1}function q9(c){if(c)switch(c.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":c="wrap-reverse";break;case"no":case"none":case"nowrap":c="nowrap";break;default:c="wrap";break}return c}function j9(c,i=null,a=!1){return{display:a?"inline-flex":"flex","box-sizing":"border-box","flex-direction":c,"flex-wrap":i||null}}function F1(c,...i){if(c==null)throw TypeError("Cannot convert undefined or null to object");for(let a of i)if(a!=null)for(let e in a)a.hasOwnProperty(e)&&(c[e]=a[e]);return c}function W9(c,i){return()=>{if(i4(i)){let a=Array.from(c.querySelectorAll(`[class*=${rc}]`)),e=/\bflex-layout-.+?\b/g;a.forEach(t=>{t.classList.contains(`${rc}ssr`)&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(e,"")})}}}var $9={provide:r5,useFactory:W9,deps:[N6,T1],multi:!0},rc="flex-layout-";var L3=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=N2({type:c}),c.\u0275inj=_2({providers:[$9]}),c})(),P4=class c{constructor(i=!1,a="all",e="",t="",n=0){this.matches=i,this.mediaQuery=a,this.mqAlias=e,this.suffix=t,this.priority=n,this.property=""}clone(){return new c(this.matches,this.mediaQuery,this.mqAlias,this.suffix
7)}};var K9=(()=>{class c{constructor(){this.stylesheet=new Map}addStyleToElement(a,e,t){let n=this.stylesheet.get(a);n?n.set(e,t):this.stylesheet.set(a,new Map([[e,t]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(a,e){let t=this.stylesheet.get(a),n="";if(t){let l=t.get(e);(typeof l=="number"||typeof l=="string")&&(n=l+"")}return n}}return c.\u0275fac=function(a){return new(a||c)},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var u0={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},z1=new $3("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>u0});var F4=new $3("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1});var b3=new $3("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function vc(c,i){return c=c?.clone()??new P4,i&&(c.mqAlias=i.alias,c.mediaQuery=i.mediaQuery,c.suffix=i.suffix,c.priority=i.priority),c}var Y2=class{constructor(){this.shouldCache=!0}sideEffect(i,a,e){}};var K2=(()=>{class c{constructor(a,e,t,n){this._serverStylesheet=a,this._serverModuleLoaded=e,this._platformId=t,this.layoutConfig=n}applyStyleToElement(a,e,t=null){let n={};typeof e=="string"&&(n[e]=t,e=n),n=this.layoutConfig.disableVendorPrefixes?e:n8(e),this._applyMultiValueStyleToElement(n,a)}applyStyleToElements(a,e=[]){let t=this.layoutConfig.disableVendorPrefixes?a:n8(a);e.forEach(n=>{this._applyMultiValueStyleToElement(t,n)})}getFlowDirection(a){let e="flex-direction",t=this.lookupStyle(a,e),n=this.lookupInlineStyle(a,e)||E4(this._platformId)&&this._serverModuleLoaded?t:"";return[t||"row",n]}hasWrap(a){return this.lookupStyle(a,"flex-wrap")==="wrap"}lookupAttributeValue(a,e){return a.getAttribute(e)??""}lookupInlineStyle(a,e){return i4(this._platformId)?a.style.getPropertyValue(e):Q9(a,e)}lookupStyle(a,e,t=!1){let n="";return a&&((n=this.lookupInlineStyle(a,e))||(i4(this._platformId)?t||(n=getComputedStyle(a).getPropertyValue(e)):this._serverModuleLoaded&&(n=this._serverStylesheet.getStyleForElement(a,e)))),n?n.trim():""}_applyMultiValueStyleToElement(a,e){Object.keys(a).sort().forEach(t=>{let n=a[t],l=Array.isArray(n)?n:[n];l.sort();for(let f of l)f=f?f+"":"",i4(this._platformId)||!this._serverModuleLoaded?i4(this._platformId)?e.style.setProperty(t,f):X9(e,t,f):this._serverStylesheet.addStyleToElement(e,t,f)})}}return c.\u0275fac=function(a){return new(a||c)(k(K9),k(F4),k(T1),k(z1))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function Q9(c,i){return gc(c)[i]??""}function X9(c,i,a){i=i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();let e=gc(c);e[i]=a??"",Z9(c,e)}function Z9(c,i){let a="";for(let e in i)i[e]&&(a+=`${e}:${i[e]};`);c.setAttribute("style",a)}function gc(c){let i={},a=c.getAttribute("style");if(a){let e=a.split(/;+/g);for(let t=0;t<e.length;t++){let n=e[t].trim();if(n.length>0){let l=n.indexOf(":");if(l===-1)throw new Error(`Invalid CSS style: ${n}`);let f=n.substr(0,l).trim();i[f]=n.substr(l+1).trim()}}}return i}function J3(c,i){let a=c&&c.priority||0;return(i&&i.priority||0)-a}function Y9(c,i){let a=c.priority||0,e=i.priority||0;return a-e}var J9=(()=>{class c{constructor(a,e,t){this._zone=a,this._platformId=e,this._document=t,this.source=new U1(new P4(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){let a=[];return this.registry.forEach((e,t)=>{e.matches&&a.push(t)}),a}isActive(a){return this.registry.get(a)?.matches??this.registerQuery(a).some(t=>t.matches)}observe(a,e=!1){if(a&&a.length){let t=this._observable$.pipe(Q(l=>e?a.indexOf(l.mediaQuery)>-1:!0)),n=new O2(l=>{let f=this.registerQuery(a);if(f.length){let d=f.pop();f.forEach(g=>{l.next(g)}),this.source.next(d)}l.complete()});return _4(n,t)}return this._observable$}registerQuery(a){let e=Array.isArray(a)?a:[a],t=[];return ca(e,this._document),e.forEach(n=>{let l=d=>{this._zone.run(()=>this.source.next(new P4(d.matches,n)))},f=this.registry.get(n);f||(f=this.buildMQL(n),f.addListener(l),this.pendingRemoveListenerFns.push(()=>
7f.removeListener(l)),this.registry.set(n,f)),f.matches&&t.push(new P4(!0,n))}),t}ngOnDestroy(){let a;for(;a=this.pendingRemoveListenerFns.pop();)a()}buildMQL(a){return aa(a,i4(this._platformId))}}return c.\u0275fac=function(a){return new(a||c)(k(i1),k(T1),k(N6))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),sc={};function ca(c,i){let a=c.filter(e=>!sc[e]);if(a.length>0){let e=a.join(", ");try{let t=i.createElement("style");if(t.setAttribute("type","text/css"),!t.styleSheet){let n=`
8/*
9  @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners
10  see http://bit.ly/2sd4HMP
11*/
12@media ${e} {.fx-query-test{ }}
13`;t.appendChild(i.createTextNode(n))}i.head.appendChild(t),a.forEach(n=>sc[n]=t)}catch(t){console.error(t)}}}function ea(c){let i=new EventTarget;return i.matches=c==="all"||c==="",i.media=c,i.addListener=()=>{},i.removeListener=()=>{},i.addEventListener=()=>{},i.dispatchEvent=()=>!1,i.onchange=null,i}function aa(c,i){return i&&!!window.matchMedia("all").addListener?window.matchMedia(c):ea(c)}var ia=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.98px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.98px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.98px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.98px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.98px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.98px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.98px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.98px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.98px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}];var oc="(orientation: portrait) and (max-width: 599.98px)",lc="(orientation: landscape) and (max-width: 959.98px)",fc="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",mc="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",pc="(orientation: portrait) and (min-width: 840px)",dc="(orientation: landscape) and (min-width: 1280px)",t4={HANDSET:`${oc}, ${lc}`,TABLET:`${fc} , ${mc}`,WEB:`${pc}, ${dc} `,HANDSET_PORTRAIT:`${oc}`,TABLET_PORTRAIT:`${fc} `,WEB_PORTRAIT:`${pc}`,HANDSET_LANDSCAPE:`${lc}`,TABLET_LANDSCAPE:`${mc}`,WEB_LANDSCAPE:`${dc}`},ta=[{alias:"handset",priority:2e3,mediaQuery:t4.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:t4.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:t4.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:t4.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:t4.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:t4.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:t4.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:t4.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:t4.WEB_PORTRAIT,overlapping:!0}],na=/(\.|-|_)/g;function ra(c){let i=c.length>0?c.charAt(0):"",a=c.length>1?c.slice(1):"";return i.toUpperCase()+a}function sa(c){return c.replace(na,"|").split("|").map(ra).join("")}function oa(c){return c.forEach(i=>{i.suffix||(i.suffix=sa(i.alias),i.overlapping=!!i.overlapping)}),c}function la(c,i=[]){let a={};return c.forEach(e=>{a[e.alias]=e}),i.forEach(e=>{a[e.alias]?F1(a[e.alias],e):a[e.alias]=e}),oa(Object.keys(a).map(e=>a[e]))}var fa=new $3("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{let c=G1(b3),i=G1(z1),a=[].concat.apply([],(c||[]).map(t=>Array.isArray(t)?t:[t])),e=(i.disableDefaultBps?[]:ia).concat(i.addOrientationBps?ta:[]);return la(e,a)}});var Hc=(()=>{class c{constructor(a){this.findByMap=new Map,this.items=[...a].sort(Y9)}findByAlias(a){return a?this.findWithPredicate(a,e=>e.alias===a):null}findByQuery(a){return this.findWithPredicate(a,e=>e.mediaQuery===a)}get overlappings(){return this.items.filter(a=>a.overlapping)}get aliases(){return this.items.map(a=>a.alias)}get suffixes(){return this.items.map(a=>a?.suffix??"")}findWithPredicate(a,e){let t=this.findByMap.get(a);return t||(t=this.items.find(e)??null,this.findByMap.set(a,t)),t??null}}return c.\u0275fac=function(a){return new(a||c)(k(fa))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();var x3="print",ma={alias:x3,mediaQuery:x3,priority:1e3},pa=(()=>{class c{constructor(a,e,t){this.breakpoints=a,this.layoutConfig=e,this._document=t,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new r8,this.deactivations=[]}withPrintQuery(a){return[...a,x3]}isPrintEvent(a){return a.mediaQuery.startsWith(x3)}get printAlias(){return[...this.layoutConfig.printWithBreakpoints??[]]}get printBreakPoints(){return this.printAlias.map(a=>this.breakpoints.findByAlias(a)).filter(a=>a!==null)}getEventBreakpoints({mediaQuery:a}){let e=this.breakpoints.findByQuery(a);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(J3)}updateEvent(a){let e=this.breakpoints.findByQuery(a.mediaQuery);return this.isPrintEvent(a)&&(e=this.getEventBreakpoints(a)[0],a.mediaQuery=e?.mediaQuery??""),vc(a,e)}registerBeforeAfterPrintHooks(a){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;let e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(a,this.getEventBreakpoints(new P4(!0,x3))),a.updateStyles())},t=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(a),a.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",t),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(t)}interceptEvents(a){return e=>{if(this.isPrintEvent(e)){e.matches&&!this.isPrinting?(this.startPrinting(a,this.getEventBreakpoints(e)),a.updateStyles()):!e.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(a),a.updateStyles());return}this.collectActivations(a,e)}}blockPropagation(){return a=>!(this.isPrinting||this.isPrintEvent(a))}startPrinting(a,e){this.isPrinting=!0,this.formerActivations=a.activatedBreakpoints,a.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(a){a.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(a,e){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent){this.deactivations=[];return}if(!e.matches){let t=this.breakpoints.findByQuery(e.mediaQuery);if(t){let n=this.formerActivations&&this.formerActivations.includes(t),l=!this.formerActivations&&a.activatedBreakpoints.includes(t);(n||l)&&(this.deactivations.push(t),this.deactivations.sort(J3))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEac
13h(a=>this._document.defaultView.removeEventListener("beforeprint",a)),this.afterPrintEventListeners.forEach(a=>this._document.defaultView.removeEventListener("afterprint",a)))}}return c.\u0275fac=function(a){return new(a||c)(k(Hc),k(z1),k(N6))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),r8=class{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(i){return i.push(ma),i.sort(J3),i.forEach(a=>this.addBreakpoint(a)),this.printBreakpoints}addBreakpoint(i){i&&this.printBreakpoints.find(e=>e.mediaQuery===i.mediaQuery)===void 0&&(this.printBreakpoints=da(i)?[i,...this.printBreakpoints]:[...this.printBreakpoints,i])}clear(){this.printBreakpoints=[]}};function da(c){return c?.mediaQuery.startsWith(x3)??!1}var J2=(()=>{class c{constructor(a,e,t){this.matchMedia=a,this.breakpoints=e,this.hook=t,this._useFallbacks=!0,this._activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new B,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?.alias??""}set activatedBreakpoints(a){this._activatedBreakpoints=[...a]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(a){this._useFallbacks=a}onMediaChange(a){let e=this.findByQuery(a.mediaQuery);if(e){a=vc(a,e);let t=this.activatedBreakpoints.indexOf(e);a.matches&&t===-1?(this._activatedBreakpoints.push(e),this._activatedBreakpoints.sort(J3),this.updateStyles()):!a.matches&&t!==-1&&(this._activatedBreakpoints.splice(t,1),this._activatedBreakpoints.sort(J3),this.updateStyles())}}init(a,e,t,n,l=[]){hc(this.updateMap,a,e,t),hc(this.clearMap,a,e,n),this.buildElementKeyMap(a,e),this.watchExtraTriggers(a,e,l)}getValue(a,e,t){let n=this.elementMap.get(a);if(n){let l=t!==void 0?n.get(t):this.getActivatedValues(n,e);if(l)return l.get(e)}}hasValue(a,e){let t=this.elementMap.get(a);if(t){let n=this.getActivatedValues(t,e);if(n)return n.get(e)!==void 0||!1}return!1}setValue(a,e,t,n){let l=this.elementMap.get(a);if(!l)l=new Map().set(n,new Map().set(e,t)),this.elementMap.set(a,l);else{let d=(l.get(n)??new Map).set(e,t);l.set(n,d),this.elementMap.set(a,l)}let f=this.getValue(a,e);f!==void 0&&this.updateElement(a,e,f)}trackValue(a,e){return this.subject.asObservable().pipe(Q(t=>t.element===a&&t.key===e))}updateStyles(){this.elementMap.forEach((a,e)=>{let t=new Set(this.elementKeyMap.get(e)),n=this.getActivatedValues(a);n&&n.forEach((l,f)=>{this.updateElement(e,f,l),t.delete(f)}),t.forEach(l=>{if(n=this.getActivatedValues(a,l),n){let f=n.get(l);this.updateElement(e,l,f)}else this.clearElement(e,l)})})}clearElement(a,e){let t=this.clearMap.get(a);if(t){let n=t.get(e);n&&(n(),this.subject.next({element:a,key:e,value:""}))}}updateElement(a,e,t){let n=this.updateMap.get(a);if(n){let l=n.get(e);l&&(l(t),this.subject.next({element:a,key:e,value:t}))}}releaseElement(a){let e=this.watcherMap.get(a);e&&(e.forEach(n=>n.unsubscribe()),this.watcherMap.delete(a));let t=this.elementMap.get(a);t&&(t.forEach((n,l)=>t.delete(l)),this.elementMap.delete(a))}triggerUpdate(a,e){let t=this.elementMap.get(a);if(t){let n=this.getActivatedValues(t,e);n&&(e?this.updateElement(a,e,n.get(e)):n.forEach((l,f)=>this.updateElement(a,f,l)))}}buildElementKeyMap(a,e){let t=this.elementKeyMap.get(a);t||(t=new Set,this.elementKeyMap.set(a,t)),t.add(e)}watchExtraTriggers(a,e,t){if(t&&t.length){let n=this.watcherMap.get(a);if(n||(n=new Map,this.watcherMap.set(a,n)),!n.get(e)){let f=_4(...t).subscribe(()=>{let d=this.getValue(a,e);this.updateElement(a,e,d)});n.set(e,f)}}}findByQuery(a){return this.breakpoints.findByQuery(a)}getActivatedValues(a,e){for(let n=0;n<this.activatedBreakpoints.length;n++){let l=this.activatedBreakpoints[n],f=a.get(l.alias);if(f&&(e===void 0||f.has(e)&&f.get(e)!=null))return f}if(!this._useFallbacks)return;let t=a.get("");return e===void 0||t&&t.has(e)?t:void 0}observeActivations(){let a=this.breakpoints.items.map(e=>e.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(a)).pipe(w2(this.hook.interceptEvents(this)),Q(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return c.\u0275fac=function(a){return new(a||c)(k(J9),k(Hc),k(pa))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})();function hc(c,i,a,e){if(e!==void 0){let t=c.get(i)??new Map;t.set(a,e),c.set(i,t)}}var m1=(()=>{class c{constructor(a,e,t,n){this.elementRef=a,this.styleBuilder=e,this.styler=t,this.marshal=n,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={}
13,this.destroySubject=new B,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(a){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,a,this.marshal.activatedAlias)}ngOnChanges(a){Object.keys(a).forEach(e=>{if(this.inputs.indexOf(e)!==-1){let t=e.split(".").slice(1).join("."),n=a[e].currentValue;this.setValue(n,t)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(a=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),a)}addStyles(a,e){let t=this.styleBuilder,n=t.shouldCache,l=this.styleCache.get(a);(!l||!n)&&(l=t.buildStyles(a,e),n&&this.styleCache.set(a,l)),this.mru=$({},l),this.applyStyleToElement(l),t.sideEffect(a,l,e)}clearStyles(){Object.keys(this.mru).forEach(a=>{this.mru[a]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(a,e=!1){if(a){let[t,n]=this.styler.getFlowDirection(a);if(!n&&e){let l=h0(t),f=[a];this.styler.applyStyleToElements(l,f)}return t.trim()}return"row"}hasWrap(a){return this.styler.hasWrap(a)}applyStyleToElement(a,e,t=this.nativeElement){this.styler.applyStyleToElement(t,a,e)}setValue(a,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,a,e)}updateWithValue(a){this.currentValue!==a&&(this.addStyles(a),this.currentValue=a)}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(Y2),z(K2),z(J2))},c.\u0275dir=U({type:c,features:[F2]}),c})();function s8(c,i="1",a="1"){let e=[i,a,c],t=c.indexOf("calc");if(t>0){e[2]=uc(c.substring(t).trim());let n=c.substr(0,t).trim().split(" ");n.length==2&&(e[0]=n[0],e[1]=n[1])}else if(t==0)e[2]=uc(c.trim());else{let n=c.split(" ");e=n.length===3?n:[i,a,c]}return e}function uc(c){return c.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var zc="x";function z0(c,i){if(i===void 0)return c;let a=e=>{let t=+e.slice(0,-zc.length);return c.endsWith(zc)&&!isNaN(t)?`${t*i.value}${i.unit}`:c};return c.includes(" ")?c.split(" ").map(a).join(" "):a(c)}var ua=(()=>{class c extends m1{constructor(a,e,t,n,l,f,d){super(a,null,e,t),this.ngClassInstance=d,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new g1(n,l,a,f)),this.init(),this.setValue("","")}set klass(a){this.ngClassInstance.klass=a,this.setValue(a,"")}updateWithValue(a){this.ngClassInstance.ngClass=a,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(J2),z(s5),z(J0),z(Z0),z(g1,10))},c.\u0275dir=U({type:c,inputs:{klass:[a1.None,"class","klass"]},features:[u2]}),c})(),za=["ngClass","ngClass.xs","ngClass.sm","ngClass.md","ngClass.lg","ngClass.xl","ngClass.lt-sm","ngClass.lt-md","ngClass.lt-lg","ngClass.lt-xl","ngClass.gt-xs","ngClass.gt-sm","ngClass.gt-md","ngClass.gt-lg"];var y3=(()=>{class c extends ua{constructor(){super(...arguments),this.inputs=za}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","ngClass",""],["","ngClass.xs",""],["","ngClass.sm",""],["","ngClass.md",""],["","ngClass.lg",""],["","ngClass.xl",""],["","ngClass.lt-sm",""],["","ngClass.lt-md",""],["","ngClass.lt-lg",""],["","ngClass.lt-xl",""],["","ngClass.gt-xs",""],["","ngClass.gt-sm",""],["","ngClass.gt-md",""],["","ngClass.gt-lg",""]],inputs:{ngClass:"ngClass","ngClass.xs":"ngClass.xs","ngClass.sm":"ngClass.sm","ngClass.md":"ngClass.md","ngClass.lg":"ngClass.lg","ngClass.xl":"ngClass.xl","ngClass.lt-sm":"ngClass.lt-sm","ngClass.lt-md":"ngClass.lt-md","ngClass.lt-lg":"ngClass.lt-lg","ngClass.lt-xl":"ngClass.lt-xl","ngClass.gt-xs":"ngClass.gt-xs","ngClass.gt-sm":"ngClass.gt-sm","ngClass.gt-md":"ngClass.gt-md","ngClass.gt-lg":"ngClass.gt-lg"},features:[u2]}),c})();var va=(()=>{class c extends Y2{buildStyles(a,e){return{display:a==="true"?e.display||(e.isServer?"initial":""):"none"}}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),ga=(()=>{class c extends m1{constructor(a,e,t,n,l,f,d){super(a,e,t,n),this.layoutConfig=l,this.platformId=f,this.serverModuleLoaded=d,this.DIRECTIVE_KEY="show-hide",this.display="",this.hasLayout=!1,this.hasFlexChild=!1}ngAfterViewInit(){this.trackExtraTriggers();let a=Array.from(this.nativeElement.children);for(let t=0;t<a.length;t++)if(this.marshal.hasValue(a[t],"flex")){this.hasFlexChild=!0;break}l8.has(this.nativeElement)?this.display=l8.get(this.nativeElement):(this.display=this.getDisplayStyle(),l8.set(this.nativeElement,this.display)),this.init();let e=this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY,"");e===void 0||e===""?this.setValue(!0,""):this.triggerUpdate()}
13ngOnChanges(a){Object.keys(a).forEach(e=>{if(this.inputs.indexOf(e)!==-1){let t=e.split("."),n=t.slice(1).join("."),l=a[e].currentValue,f=l!==""?l!==0?X3(l):!1:!0;t[0]==="fxHide"&&(f=!f),this.setValue(f,n)}})}trackExtraTriggers(){this.hasLayout=this.marshal.hasValue(this.nativeElement,"layout"),["layout","layout-align"].forEach(a=>{this.marshal.trackValue(this.nativeElement,a).pipe(P(this.destroySubject)).subscribe(this.triggerUpdate.bind(this))})}getDisplayStyle(){return this.hasLayout||this.hasFlexChild&&this.layoutConfig.addFlexToParent?"flex":this.styler.lookupStyle(this.nativeElement,"display",!0)}updateWithValue(a=!0){if(a==="")return;let e=E4(this.platformId);this.addStyles(a?"true":"false",{display:this.display,isServer:e}),e&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display",""),this.marshal.triggerUpdate(this.parentElement,"layout-gap")}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(va),z(K2),z(J2),z(z1),z(T1),z(F4))},c.\u0275dir=U({type:c,features:[u2,F2]}),c})(),l8=new WeakMap,Ha=["fxShow","fxShow.print","fxShow.xs","fxShow.sm","fxShow.md","fxShow.lg","fxShow.xl","fxShow.lt-sm","fxShow.lt-md","fxShow.lt-lg","fxShow.lt-xl","fxShow.gt-xs","fxShow.gt-sm","fxShow.gt-md","fxShow.gt-lg","fxHide","fxHide.print","fxHide.xs","fxHide.sm","fxHide.md","fxHide.lg","fxHide.xl","fxHide.lt-sm","fxHide.lt-md","fxHide.lt-lg","fxHide.lt-xl","fxHide.gt-xs","fxHide.gt-sm","fxHide.gt-md","fxHide.gt-lg"];var v0=(()=>{class c extends ga{constructor(){super(...arguments),this.inputs=Ha}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxShow",""],["","fxShow.print",""],["","fxShow.xs",""],["","fxShow.sm",""],["","fxShow.md",""],["","fxShow.lg",""],["","fxShow.xl",""],["","fxShow.lt-sm",""],["","fxShow.lt-md",""],["","fxShow.lt-lg",""],["","fxShow.lt-xl",""],["","fxShow.gt-xs",""],["","fxShow.gt-sm",""],["","fxShow.gt-md",""],["","fxShow.gt-lg",""],["","fxHide",""],["","fxHide.print",""],["","fxHide.xs",""],["","fxHide.sm",""],["","fxHide.md",""],["","fxHide.lg",""],["","fxHide.xl",""],["","fxHide.lt-sm",""],["","fxHide.lt-md",""],["","fxHide.lt-lg",""],["","fxHide.lt-xl",""],["","fxHide.gt-xs",""],["","fxHide.gt-sm",""],["","fxHide.gt-md",""],["","fxHide.gt-lg",""]],inputs:{fxShow:"fxShow","fxShow.print":"fxShow.print","fxShow.xs":"fxShow.xs","fxShow.sm":"fxShow.sm","fxShow.md":"fxShow.md","fxShow.lg":"fxShow.lg","fxShow.xl":"fxShow.xl","fxShow.lt-sm":"fxShow.lt-sm","fxShow.lt-md":"fxShow.lt-md","fxShow.lt-lg":"fxShow.lt-lg","fxShow.lt-xl":"fxShow.lt-xl","fxShow.gt-xs":"fxShow.gt-xs","fxShow.gt-sm":"fxShow.gt-sm","fxShow.gt-md":"fxShow.gt-md","fxShow.gt-lg":"fxShow.gt-lg",fxHide:"fxHide","fxHide.print":"fxHide.print","fxHide.xs":"fxHide.xs","fxHide.sm":"fxHide.sm","fxHide.md":"fxHide.md","fxHide.lg":"fxHide.lg","fxHide.xl":"fxHide.xl","fxHide.lt-sm":"fxHide.lt-sm","fxHide.lt-md":"fxHide.lt-md","fxHide.lt-lg":"fxHide.lt-lg","fxHide.lt-xl":"fxHide.lt-xl","fxHide.gt-xs":"fxHide.gt-xs","fxHide.gt-sm":"fxHide.gt-sm","fxHide.gt-md":"fxHide.gt-md","fxHide.gt-lg":"fxHide.gt-lg"},features:[u2]}),c})();var f8=class{constructor(i,a,e=!0){this.key=i,this.value=a,this.key=e?i.replace(/['"]/g,"").trim():i.trim(),this.value=e?a.replace(/['"]/g,"").trim():a.trim(),this.value=this.value.replace(/;/,"")}};function Vc(c){let i=typeof c;return i==="object"?c.constructor===Array?"array":c.constructor===Set?"set":"object":i}function Ca(c,i=";"){return String(c).trim().split(i).map(a=>a.trim()).filter(a=>a!=="")}function Ma(c,i){let a=e=>(i&&(e.value=i(e.value)),e);return c.map(xc).filter(e=>!!e).map(a).reduce(Lc,{})}function Cc(c,i){let a=[];return Vc(c)==="set"?c.forEach(e=>a.push(e)):Object.keys(c).forEach(e=>{a.push(`${e}:${c[e]}`)}),Ma(a,i)}function xc(c){let[i,...a]=c.split(":");return new f8(i,a.join(":"))}function Lc(c,i){return i.key&&(c[i.key]=i.value),c}var Va=(()=>{class c extends m1{constructor(a,e,t,n,l,f,d,g,H){super(a,null,e,t),this.sanitizer=n,this.ngStyleInstance=d,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new E6(a,l,f)),this.init();let L=this.nativeElement.getAttribute("style")??"";this.fallbackStyles=this.buildStyleMap(L),this.isServer=g&&E4(H)}updateWithValue(a){let e=this.buildStyleMap(a);this.ngStyleInstance.ngStyle=$($({},this.fallbackStyles),e),this.isServer&&this.applyStyleToElement(e),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(a){let e=t=>this.sanitizer.sanitize(e5.STYLE,t)??"";if(a)switch(Vc(a)){case"string":return Mc(Ca(a),e);case"array":return Mc(a,e);case"set":return Cc(a,e);default:return Cc(a,e)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(J2),z(P6),z(J0),z(Z0),z(E6,10),z(F4),z(T1))},c.\u0275dir=U({type:c,features:[u2]}),c})(),xa=["ngStyle","ngStyle.xs","ngStyle.sm","ngStyle.md","ngStyle.lg","ngStyle.xl","ngStyle.lt-sm","ngStyle.lt-md","ngStyle.lt-lg","ngStyle.lt-xl","ngStyle.gt-xs","ngStyle.gt-sm","ngStyle.gt-md","ngStyle.gt-lg"];var Rf=(()=>{class c extends Va{constructor(){super(...arguments),this.inputs=xa}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","ngStyle",""],["","ngStyle.xs",""],["","ngStyle.sm",""],["","ngStyle.md",""],["","ngStyle.lg",""],["","ngStyle.xl",""],["","ngStyle.lt-sm",""],["","ngStyle.lt-md",""],["","ngStyle.lt-lg",""],["","ngStyle.lt-xl",""],["","ngStyle.gt-xs",""],["","ngStyle.gt-sm",""],["","ngStyle.gt-md",""],["","ngStyle.gt-lg",""]],inputs:{ngStyle:"ngStyle","ngStyle.xs":"ngStyle.xs","ngStyle.sm":"ngStyle.sm","ngStyle.md":"ngStyle.md","ngStyle.lg":"ngStyle.lg","ngStyle.xl":"ngStyle.xl","ngStyle.lt-sm":"ngStyle.lt-sm","ngStyle.lt-md":"ngStyle.lt-md","ngStyle.lt-lg":"ngStyle.lt-lg","ngStyle.lt-xl":"ngStyle.lt-xl","ngStyle.gt-xs":"ngStyle.gt-xs","ngStyle.gt-sm":"ngStyle.gt-sm","ngStyle.gt-md":"ngStyle.gt-md","ngStyle.gt-lg":"ngStyle.gt-lg"},features:[u2]}),c})();function Mc(c,i){let a=e=>(i&&(e.value=i(e.value)),e);return c.map(xc).filter(e=>!!e).map(a).reduce(Lc,{})}var m8=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=N2({type:c}
13),c.\u0275inj=_2({imports:[L3]}),c})();var La=(()=>{class c extends Y2{buildStyles(a,{display:e}){let t=h0(a);return y2($({},t),{display:e==="none"?e:t.display})}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),ba=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];var ya=(()=>{class c extends m1{constructor(a,e,t,n,l){super(a,t,e,n),this._config=l,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(a){let t=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=bc.get(t)??new Map,bc.set(t,this.styleCache),this.currentValue!==a&&(this.addStyles(a,{display:t}),this.currentValue=a)}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(La),z(J2),z(z1))},c.\u0275dir=U({type:c,features:[u2]}),c})(),yc=(()=>{class c extends ya{constructor(){super(...arguments),this.inputs=ba}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[u2]}),c})(),bc=new Map;var Sc={"margin-left":null,"margin-right":null,"margin-top":null,"margin-bottom":null},Sa=(()=>{class c extends Y2{constructor(a,e){super(),this._styler=a,this._config=e}buildStyles(a,e){return a.endsWith(H0)?(a=a.slice(0,a.indexOf(H0)),a=z0(a,this._config.multiplier),Pa(a,e.directionality)):{}}sideEffect(a,e,t){let n=t.items;if(a.endsWith(H0)){a=a.slice(0,a.indexOf(H0)),a=z0(a,this._config.multiplier);let l=Ta(a,t.directionality);this._styler.applyStyleToElements(l,t.items)}else{a=z0(a,this._config.multiplier),a=this.addFallbackUnit(a);let l=n.pop(),f=Fa(a,t);this._styler.applyStyleToElements(f,n),this._styler.applyStyleToElements(Sc,[l])}}addFallbackUnit(a){return isNaN(+a)?a:`${a}${this._config.defaultUnit}`}}return c.\u0275fac=function(a){return new(a||c)(k(K2),k(z1))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),wa=["fxLayoutGap","fxLayoutGap.xs","fxLayoutGap.sm","fxLayoutGap.md","fxLayoutGap.lg","fxLayoutGap.xl","fxLayoutGap.lt-sm","fxLayoutGap.lt-md","fxLayoutGap.lt-lg","fxLayoutGap.lt-xl","fxLayoutGap.gt-xs","fxLayoutGap.gt-sm","fxLayoutGap.gt-md","fxLayoutGap.gt-lg"];var _a=(()=>{class c extends m1{constructor(a,e,t,n,l,f){super(a,l,n,f),this.zone=e,this.directionality=t,this.styleUtils=n,this.layout="row",this.DIRECTIVE_KEY="layout-gap",this.observerSubject=new B;let d=[this.directionality.change,this.observerSubject.asObservable()];this.init(d),this.marshal.trackValue(this.nativeElement,"layout").pipe(P(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}get childrenNodes(){let a=this.nativeElement.children,e=[];for(let t=a.length;t--;)e[t]=a[t];return e}ngAfterContentInit(){this.buildChildObservable(),this.triggerUpdate()}ngOnDestroy(){super.ngOnDestroy(),this.observer&&this.observer.disconnect()}onLayoutChange(a){let t=a.value.split(" ");this.layout=t[0],Z3.find(n=>n===this.layout)||(this.layout="row"),this.triggerUpdate()}updateWithValue(a){let e=this.childrenNodes.filter(t=>t.nodeType===1&&this.willDisplay(t)).sort((t,n)=>{let l=+this.styler.lookupStyle(t,"order"),f=+this.styler.lookupStyle(n,"order");return isNaN(l)||isNaN(f)||l===f?0:l>f?1:-1});if(e.length>0){let t=this.directionality.value,n=this.layout;n==="row"&&t==="rtl"?this.styleCache=Na:n==="row"&&t!=="rtl"?this.styleCache=Aa:n==="column"&&t==="rtl"?this.styleCache=ka:n==="column"&&t!=="rtl"&&(this.styleCache=Ea),this.addStyles(a,{directionality:t,items:e,layout:n})}}clearStyles(){let a=Object.keys(this.mru).length>0,e=a?"padding":wc(this.directionality.value,this.layout);a&&super.clearStyles(),this.styleUtils.applyStyleToElements({[e]:""},this.childrenNodes)}willDisplay(a){let e=this.marshal.getValue(a,"show-hide");return e===!0||e===void 0&&this.styleUtils.lookupStyle(a,"display")!=="none"}buildChildObservable(){this.zone.runOutsideAngular(()=>{typeof MutationObserver<"u"&&(this.observer=new MutationObserver(a=>{let e=t=>t.addedNodes&&t.addedNodes.length>0||t.removedNodes&&t.removedNodes.length>0;a.some(e)&&this.observerSubject.next()}),this.observer.observe(this.nativeElement,{childList:!0}))})}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(i1),z(g5),z(K2),z(Sa),z(J2))},c.\u0275dir=U({type:c,features:[u2]}),c})(),Qf=(()=>{class c extends _a{constructor(){super(...arguments),this.inputs=wa}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxLayoutGap",""],["","fxLayoutGap.xs",""],["","fxLayoutGap.sm",""],["","fxLayoutGap.md",""],["","fxLayoutGap.lg",""],["","fxLayoutGap.xl",""],["","fxLayoutGap.lt-sm",""],["","fxLayoutGap.lt-md",""],["","fxLayoutGap.lt-lg",""],["","fxLayoutGap.lt-xl",""],["","fxLayoutGap.gt-xs",""],["","fxLayoutGap.gt-sm",""],["","fxLayoutGap.gt-md",""],["","fxLayoutGap.gt-lg",""]],inputs:{fxLayoutGap:"fxLayoutGap","fxLayoutGap.xs":"fxLayoutGap.xs","fxLayoutGap.sm":"fxLayoutGap.sm","fxLayoutGap.md":"fxLayoutGap.md","fxLayoutGap.lg":"fxLayoutGap.lg","fxLayoutGap.xl":"fxLayoutGap.xl","fxLayoutGap.lt-sm"
13:"fxLayoutGap.lt-sm","fxLayoutGap.lt-md":"fxLayoutGap.lt-md","fxLayoutGap.lt-lg":"fxLayoutGap.lt-lg","fxLayoutGap.lt-xl":"fxLayoutGap.lt-xl","fxLayoutGap.gt-xs":"fxLayoutGap.gt-xs","fxLayoutGap.gt-sm":"fxLayoutGap.gt-sm","fxLayoutGap.gt-md":"fxLayoutGap.gt-md","fxLayoutGap.gt-lg":"fxLayoutGap.gt-lg"},features:[u2]}),c})(),Na=new Map,ka=new Map,Aa=new Map,Ea=new Map,H0=" grid";function Ta(c,i){let[a,e]=c.split(" "),t=e??a,n="0px",l=t,f="0px";return i==="rtl"?f=a:n=a,{padding:`0px ${n} ${l} ${f}`}}function Pa(c,i){let[a,e]=c.split(" "),t=e??a,n=g=>`-${g}`,l="0px",f=n(t),d="0px";return i==="rtl"?d=n(a):l=n(a),{margin:`0px ${l} ${f} ${d}`}}function wc(c,i){switch(i){case"column":return"margin-bottom";case"column-reverse":return"margin-top";case"row":return c==="rtl"?"margin-left":"margin-right";case"row-reverse":return c==="rtl"?"margin-right":"margin-left";default:return c==="rtl"?"margin-left":"margin-right"}}function Fa(c,i){let a=wc(i.directionality,i.layout),e=$({},Sc);return e[a]=c,e}var Da=(()=>{class c extends Y2{constructor(a){super(),this.layoutConfig=a}buildStyles(a,e){let[t,n,...l]=a.split(" "),f=l.join(" "),d=e.direction.indexOf("column")>-1?"column":"row",g=Y3(d)?"max-width":"max-height",H=Y3(d)?"min-width":"min-height",L=String(f).indexOf("calc")>-1,T=L||f==="auto",e2=String(f).indexOf("%")>-1&&!L,X=String(f).indexOf("px")>-1||String(f).indexOf("rem")>-1||String(f).indexOf("em")>-1||String(f).indexOf("vw")>-1||String(f).indexOf("vh")>-1,I=L||X;t=t=="0"?0:t,n=n=="0"?0:n;let V2=!t&&!n,a2={},N1={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(f||""){case"":let b4=this.layoutConfig.useColumnBasisZero!==!1;f=d==="row"?"0%":b4?"0.000000001px":"auto";break;case"initial":case"nogrow":t=0,f="auto";break;case"grow":f="100%";break;case"noshrink":n=0,f="auto";break;case"auto":break;case"none":t=0,n=0,f="auto";break;default:!I&&!e2&&!isNaN(f)&&(f=f+"%"),f==="0%"&&(I=!0),f==="0px"&&(f="0%"),L?a2=F1(N1,{"flex-grow":t,"flex-shrink":n,"flex-basis":I?f:"100%"}):a2=F1(N1,{flex:`${t} ${n} ${I?f:"100%"}`});break}return a2.flex||a2["flex-grow"]||(L?a2=F1(N1,{"flex-grow":t,"flex-shrink":n,"flex-basis":f}):a2=F1(N1,{flex:`${t} ${n} ${f}`})),f!=="0%"&&f!=="0px"&&f!=="0.000000001px"&&f!=="auto"&&(a2[H]=V2||I&&t?f:null,a2[g]=V2||!T&&n?f:null),!a2[H]&&!a2[g]?L?a2=F1(N1,{"flex-grow":t,"flex-shrink":n,"flex-basis":f}):a2=F1(N1,{flex:`${t} ${n} ${f}`}):e.hasWrap&&(a2[L?"flex-basis":"flex"]=a2[g]?L?a2[g]:`${t} ${n} ${a2[g]}`:L?a2[H]:`${t} ${n} ${a2[H]}`),F1(a2,{"box-sizing":"border-box"})}}return c.\u0275fac=function(a){return new(a||c)(k(z1))},c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Ia=["fxFlex","fxFlex.xs","fxFlex.sm","fxFlex.md","fxFlex.lg","fxFlex.xl","fxFlex.lt-sm","fxFlex.lt-md","fxFlex.lt-lg","fxFlex.lt-xl","fxFlex.gt-xs","fxFlex.gt-sm","fxFlex.gt-md","fxFlex.gt-lg"];var Ba=(()=>{class c extends m1{constructor(a,e,t,n,l){super(a,n,e,l),this.layoutConfig=t,this.marshal=l,this.DIRECTIVE_KEY="flex",this.direction=void 0,this.wrap=void 0,this.flexGrow="1",this.flexShrink="1",this.init()}get shrink(){return this.flexShrink}set shrink(a){this.flexShrink=a||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(a){this.flexGrow=a||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe(P(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe(P(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(a){let t=a.value.split(" ");this.direction=t[0],this.wrap=t[1]!==void 0&&t[1]==="wrap",this.triggerUpdate()}updateWithValue(a){let e=this.layoutConfig.addFlexToParent!==!1;this.direction===void 0&&(this.direction=this.getFlexFlowDirection(this.parentElement,e)),this.wrap===void 0&&(this.wrap=this.hasWrap(this.parentElement));let t=this.direction,n=t.startsWith("row"),l=this.wrap;n&&l?this.styleCache=Ua:n&&!l?this.styleCache=Oa:!n&&l?this.styleCache=Ga:!n&&!l&&(this.styleCache=Ra);let f=String(a).replace(";",""),d=s8(f,this.flexGrow,this.flexShrink);this.addStyles(d.join(" "),{direction:t,hasWrap:l})}triggerReflow(){let a=this.activatedValue;if(a!==void 0){let e=s8(a+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,e.join(" "))}}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(z1),z(Da),z(J2))},c.\u0275dir=U({type:c,inputs:{shrink:[a1.None,"fxShrink","shrink"],grow:[a1.None,"fxGrow","grow"]},features:[u2]}),c})(),C0=(()=>{class c extends Ba{constructor(){super(...arguments),this.inputs=Ia}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxFlex",""],["","fxFlex.xs",""],["","fxFlex.sm",""],["","fxFlex.md",""],["","fxFlex.lg",""],["","fxFlex.xl",""],["","fxFlex.lt-sm",""],["","fxFlex.lt-md",""],["","fxFlex.lt-lg",""],["","fxFlex.lt-xl",""],["","fxFlex.gt-xs",""],["","fxFlex.gt-sm",""],["","fxFlex.gt-md",""],["","fxFlex.gt-lg",""]],inputs:{fxFlex:"fxFlex","fxFlex.xs":"fxFlex.xs","fxFlex.sm":"fxFlex.sm","fxFlex.md":"fxFlex.md","fxFlex.lg":"fxFlex.lg","fxFlex.xl":"fxFlex.xl","fxFlex.lt-sm":"fxFlex.lt-sm","fxFlex.lt-md":"fxFlex.lt-md","fxFlex.lt-lg":"fxFlex.lt-lg","fxFlex.lt-xl":"fxFlex.lt-xl","fxFlex.gt-xs":"fxFlex.gt-xs","fxFlex.gt-sm":"fxFlex.gt-sm","fxFlex.gt-md":"fxFlex.gt-md","fxFlex.gt-lg":"fxFlex.gt-lg"},features:[u2]}),c})(),Oa=new Map,Ra=new Map,Ua=new Map,Ga=new Map;var qa=(()=>{class c extends Y2{buildStyles(a){return{order:a&&parseInt(a,10)||""}}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),ja=["fxFlexOrder","fxFlexOrder.xs","fxFlexOrder.sm","fxFlexOrder.md","fxFlexOrder.lg","fxFlexOrder.xl","fxFlexOrder.lt-sm","fxFlexOrder.lt-md","fxFlexOrder.lt-lg","fxFlexOrder.lt-xl","fxFlexOrder.gt-xs","fxFlexOrder.gt-sm","fxFlexOrder.gt-md","fxFlexOrder.gt-lg"];var Wa=(()=>{class c extends m1{constructor(a,e,t,n){super(a,t,e,n),this.DIRECTIVE_KEY="flex-order",this.styleCache=$a,this.init()}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(qa),z(J2))},c.\u0275dir=U({type:c,features:[u2]}),c})(),$a=new Map,_c=(()=>{class c extends Wa{constructor(){super(...arguments),this.inputs=ja}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxFlexOrder",""],["","fxFlexOrder.xs",""],["","fxFlexOrder.sm",""],["","fxFlexOrder.md",""],["","fxFlexOrder.lg",""],["","fxFlexOrder.xl",""],["","fxFlexOrder.lt-sm",""],["","fxFlexOrder.lt-md",""],["","fxFlexOrder.lt-lg",""],["","fxFlexOrder.lt-xl",""],["","fxFlexOrder.gt-xs",""],["","fxFlexOrder.gt-sm",""],["","fxFlexOrder.gt-md",""],["","fxFlexOrder.gt-lg",""]],inputs:{fxFlexOrder:"fxFlexOrder","fxFlexOrder.xs":"fxFlexOrder.xs","fxFlexOrder.sm":"fxFlexOrder.sm","fxFlexOrder.md":"fxFlexOrder.md","fxFlexOrder.lg":"fxFlexOrder.lg","fxFlexOrder.xl":"fxFlexOrder.xl","fxFlexOrder.lt-sm":"fxFlexOrder.lt-sm","fxFlexOrder.lt-md":"fxFlexOrder.lt-md","fxFlexOrder.lt-lg":"fxFlexOrder.lt-lg","fxFlexOrder.lt-xl":"fxFlexOrder.lt-xl","fxFlexOrder.gt-xs":"fxFlexOrder.gt-xs","fxFlexOrder.gt-sm":"fxFlexOrder.gt-sm","fxFlexOrder.gt-md":"fxFlexOrder.gt-md","fxFlexOrder.gt-lg":"fxFlexOrder.gt-lg"},features:[u2]}),c})();var Ka=(()=>{class c extends Y2{buildStyles(a){a=a||"stretch";let e={};switch(a){case"start":e["align-self"]="flex-start";break;case"end":e["align-self"]="flex-end";break;default:e["align-self"]=a;break}return e}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Qa=["fxFlexAlign","fxFlexAlign.xs","fxFlexAlign.sm","fxFlexAlign.md","fxFlexAlign.lg","fxFlexAlign.xl","fxFlexAlign.lt-sm","fxFlexAlign.lt-md","fxFlexAlign.lt-lg","fxFlexAlign.lt-xl","fxFlexAlign.gt-xs","fxFlexAlign.gt-sm","fxFlexAlign.gt-md","fxFlexAlign.gt-lg"];var Xa=(()=>{class c extends m1{constructor(a,e,t,n){super(a,t,e,n),this.DIRECTIVE_KEY="flex-align",this.styleCache=Za,this.init()}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(Ka),z(J2))},c.\u0275dir=U({type:c,features:[u2]}),c})(),Za=new Map,Xf=(()=>{class c extends Xa{constructor(){super(...arguments),this.inputs=Qa}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxFlexAlign",""],["","fxFlexAlign.xs",""],["","fxFlexAlign.sm",""],["","fxFlexAlign.md",""],["","fxFlexAlign.lg",""],["","fxFlexAlign.xl",""],["","fxFlexAlign.lt-sm",""],["","fxFlexAlign.lt-md",""],["","fxFlexAlign.lt-lg",""],["","fxFlexAlign.lt-xl",""],["","fxFlexAlign.gt-xs",""],["","fxFlexAlign.gt-sm",""],["","fxFlexAlign.gt-md",""],["","fxFlexAlign.gt-lg",""]],inputs:{fxFlexAlign:"fxFlexAlign","fxFlexAlign.xs":"fxFlexAlign.xs","fxFlexAlign.sm":"fxFlexAlign.sm","fxFlexAlign.md":"fxFlexAlign.md","fxFlexAlign.lg":"fxFlexAlign.lg","fxFlexAlign.xl":"fxFlexAlign.xl","fxFlexAlign.lt-sm"
13:"fxFlexAlign.lt-sm","fxFlexAlign.lt-md":"fxFlexAlign.lt-md","fxFlexAlign.lt-lg":"fxFlexAlign.lt-lg","fxFlexAlign.lt-xl":"fxFlexAlign.lt-xl","fxFlexAlign.gt-xs":"fxFlexAlign.gt-xs","fxFlexAlign.gt-sm":"fxFlexAlign.gt-sm","fxFlexAlign.gt-md":"fxFlexAlign.gt-md","fxFlexAlign.gt-lg":"fxFlexAlign.gt-lg"},features:[u2]}),c})();var Ya=(()=>{class c extends Y2{buildStyles(a,e){let t={},[n,l]=a.split(" ");switch(n){case"center":t["justify-content"]="center";break;case"space-around":t["justify-content"]="space-around";break;case"space-between":t["justify-content"]="space-between";break;case"space-evenly":t["justify-content"]="space-evenly";break;case"end":case"flex-end":t["justify-content"]="flex-end";break;case"start":case"flex-start":default:t["justify-content"]="flex-start";break}switch(l){case"start":case"flex-start":t["align-items"]=t["align-content"]="flex-start";break;case"center":t["align-items"]=t["align-content"]="center";break;case"end":case"flex-end":t["align-items"]=t["align-content"]="flex-end";break;case"space-between":t["align-content"]="space-between",t["align-items"]="stretch";break;case"space-around":t["align-content"]="space-around",t["align-items"]="stretch";break;case"baseline":t["align-content"]="stretch",t["align-items"]="baseline";break;case"stretch":default:t["align-items"]=t["align-content"]="stretch";break}return F1(t,{display:e.inline?"inline-flex":"flex","flex-direction":e.layout,"box-sizing":"border-box","max-width":l==="stretch"?Y3(e.layout)?null:"100%":null,"max-height":l==="stretch"&&Y3(e.layout)?"100%":null})}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),Ja=["fxLayoutAlign","fxLayoutAlign.xs","fxLayoutAlign.sm","fxLayoutAlign.md","fxLayoutAlign.lg","fxLayoutAlign.xl","fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg"];var ci=(()=>{class c extends m1{constructor(a,e,t,n){super(a,t,e,n),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe(P(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(a){let e=this.layout||"row",t=this.inline;e==="row"&&t?this.styleCache=ni:e==="row"&&!t?this.styleCache=ei:e==="row-reverse"&&t?this.styleCache=si:e==="row-reverse"&&!t?this.styleCache=ii:e==="column"&&t?this.styleCache=ri:e==="column"&&!t?this.styleCache=ai:e==="column-reverse"&&t?this.styleCache=oi:e==="column-reverse"&&!t&&(this.styleCache=ti),this.addStyles(a,{layout:e,inline:t})}onLayoutChange(a){let e=a.value.split(" ");this.layout=e[0],this.inline=a.value.includes("inline"),Z3.find(t=>t===this.layout)||(this.layout="row"),this.triggerUpdate()}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(Ya),z(J2))},c.\u0275dir=U({type:c,features:[u2]}),c})(),Zf=(()=>{class c extends ci{constructor(){super(...arguments),this.inputs=Ja}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","fxLayoutAlign",""],["","fxLayoutAlign.xs",""],["","fxLayoutAlign.sm",""],["","fxLayoutAlign.md",""],["","fxLayoutAlign.lg",""],["","fxLayoutAlign.xl",""],["","fxLayoutAlign.lt-sm",""],["","fxLayoutAlign.lt-md",""],["","fxLayoutAlign.lt-lg",""],["","fxLayoutAlign.lt-xl",""],["","fxLayoutAlign.gt-xs",""],["","fxLayoutAlign.gt-sm",""],["","fxLayoutAlign.gt-md",""],["","fxLayoutAlign.gt-lg",""]],inputs:{fxLayoutAlign:"fxLayoutAlign","fxLayoutAlign.xs":"fxLayoutAlign.xs","fxLayoutAlign.sm":"fxLayoutAlign.sm","fxLayoutAlign.md":"fxLayoutAlign.md","fxLayoutAlign.lg":"fxLayoutAlign.lg","fxLayoutAlign.xl":"fxLayoutAlign.xl","fxLayoutAlign.lt-sm":"fxLayoutAlign.lt-sm","fxLayoutAlign.lt-md":"fxLayoutAlign.lt-md","fxLayoutAlign.lt-lg":"fxLayoutAlign.lt-lg","fxLayoutAlign.lt-xl":"fxLayoutAlign.lt-xl","fxLayoutAlign.gt-xs":"fxLayoutAlign.gt-xs","fxLayoutAlign.gt-sm":"fxLayoutAlign.gt-sm","fxLayoutAlign.gt-md":"fxLayoutAlign.gt-md","fxLayoutAlign.gt-lg":"fxLayoutAlign.gt-lg"},features:[u2]}),c})(),ei=new Map,ai=new Map,ii=new Map,ti=new Map,ni=new Map,ri=new Map,si=new Map,oi=new Map;var p8=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=N2({type:c}
13),c.\u0275inj=_2({imports:[L3,H5]}),c})();var li="none",kc="!",fi=(()=>{class c extends Y2{buildStyles(a,e){a=a||li;let t=!1;a.endsWith(kc)&&(a=a.substring(0,a.indexOf(kc)),t=!0);let n={display:e.inline?"inline-grid":"grid","grid-auto-columns":"","grid-template-columns":""},l=t?"grid-auto-columns":"grid-template-columns";return n[l]=a,n}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),mi=(()=>{class c extends m1{constructor(a,e,t,n){super(a,e,t,n),this.DIRECTIVE_KEY="grid-columns",this._inline=!1,this.init()}get inline(){return this._inline}set inline(a){this._inline=X3(a)}updateWithValue(a){this.styleCache=this.inline?di:pi,this.addStyles(a,{inline:this.inline})}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(fi),z(K2),z(J2))},c.\u0275dir=U({type:c,inputs:{inline:[a1.None,"gdInline","inline"]},features:[u2]}),c})(),pi=new Map,di=new Map,hi=["gdColumns","gdColumns.xs","gdColumns.sm","gdColumns.md","gdColumns.lg","gdColumns.xl","gdColumns.lt-sm","gdColumns.lt-md","gdColumns.lt-lg","gdColumns.lt-xl","gdColumns.gt-xs","gdColumns.gt-sm","gdColumns.gt-md","gdColumns.gt-lg"];var em=(()=>{class c extends mi{constructor(){super(...arguments),this.inputs=hi}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","gdColumns",""],["","gdColumns.xs",""],["","gdColumns.sm",""],["","gdColumns.md",""],["","gdColumns.lg",""],["","gdColumns.xl",""],["","gdColumns.lt-sm",""],["","gdColumns.lt-md",""],["","gdColumns.lt-lg",""],["","gdColumns.lt-xl",""],["","gdColumns.gt-xs",""],["","gdColumns.gt-sm",""],["","gdColumns.gt-md",""],["","gdColumns.gt-lg",""]],inputs:{gdColumns:"gdColumns","gdColumns.xs":"gdColumns.xs","gdColumns.sm":"gdColumns.sm","gdColumns.md":"gdColumns.md","gdColumns.lg":"gdColumns.lg","gdColumns.xl":"gdColumns.xl","gdColumns.lt-sm":"gdColumns.lt-sm","gdColumns.lt-md":"gdColumns.lt-md","gdColumns.lt-lg":"gdColumns.lt-lg","gdColumns.lt-xl":"gdColumns.lt-xl","gdColumns.gt-xs":"gdColumns.gt-xs","gdColumns.gt-sm":"gdColumns.gt-sm","gdColumns.gt-md":"gdColumns.gt-md","gdColumns.gt-lg":"gdColumns.gt-lg"},features:[u2]}),c})();var ui="0",zi=(()=>{class c extends Y2{buildStyles(a,e){return{display:e.inline?"inline-grid":"grid","grid-gap":a||ui}}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275prov=R({token:c,factory:c.\u0275fac,providedIn:"root"}),c})(),vi=(()=>{class c extends m1{constructor(a,e,t,n){super(a,t,e,n),this.DIRECTIVE_KEY="grid-gap",this._inline=!1,this.init()}get inline(){return this._inline}set inline(a){this._inline=X3(a)}updateWithValue(a){this.styleCache=this.inline?Hi:gi,this.addStyles(a,{inline:this.inline})}}return c.\u0275fac=function(a){return new(a||c)(z(f2),z(K2),z(zi),z(J2))},c.\u0275dir=U({type:c,inputs:{inline:[a1.None,"gdInline","inline"]},features:[u2]}),c})(),gi=new Map,Hi=new Map,Ci=["gdGap","gdGap.xs","gdGap.sm","gdGap.md","gdGap.lg","gdGap.xl","gdGap.lt-sm","gdGap.lt-md","gdGap.lt-lg","gdGap.lt-xl","gdGap.gt-xs","gdGap.gt-sm","gdGap.gt-md","gdGap.gt-lg"];var am=(()=>{class c extends vi{constructor(){super(...arguments),this.inputs=Ci}}return c.\u0275fac=(()=>{let i;return function(e){return(i||(i=C2(c)))(e||c)}})(),c.\u0275dir=U({type:c,selectors:[["","gdGap",""],["","gdGap.xs",""],["","gdGap.sm",""],["","gdGap.md",""],["","gdGap.lg",""],["","gdGap.xl",""],["","gdGap.lt-sm",""],["","gdGap.lt-md",""],["","gdGap.lt-lg",""],["","gdGap.lt-xl",""],["","gdGap.gt-xs",""],["","gdGap.gt-sm",""],["","gdGap.gt-md",""],["","gdGap.gt-lg",""]],inputs:{gdGap:"gdGap","gdGap.xs":"gdGap.xs","gdGap.sm":"gdGap.sm","gdGap.md":"gdGap.md","gdGap.lg":"gdGap.lg","gdGap.xl":"gdGap.xl","gdGap.lt-sm":"gdGap.lt-sm","gdGap.lt-md":"gdGap.lt-md","gdGap.lt-lg":"gdGap.lt-lg","gdGap.lt-xl":"gdGap.lt-xl","gdGap.gt-xs":"gdGap.gt-xs","gdGap.gt-sm":"gdGap.gt-sm","gdGap.gt-md":"gdGap.gt-md","gdGap.gt-lg":"gdGap.gt-lg"},features:[u2]}),c})();var d8=(()=>{class c{}return c.\u0275fac=function(a){return new(a||c)},c.\u0275mod=N2({type:c}
13),c.\u0275inj=_2({imports:[L3]}),c})();var c6=(()=>{class c{constructor(a,e){E4(e)&&!a&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(a,e=[]){return{ngModule:c,providers:a.serverLoaded?[{provide:z1,useValue:$($({},u0),a)},{provide:b3,useValue:e,multi:!0},{provide:F4,useValue:!0}]:[{provide:z1,useValue:$($({},u0),a)},{provide:b3,useValue:e,multi:!0}]}}}return c.\u0275fac=function(a){return new(a||c)(k(F4),k(T1))},c.\u0275mod=N2({type:c}),c.\u0275inj=_2({imports:[p8,m8,d8,p8,m8,d8]}),c})();var Pc=["*"],S3=class{_clearListeners(){for(let i of this._listeners)i.remove();this._listeners=[]}constructor(i){this._ngZone=i,this._pending=[],this._listeners=[],this._targetStream=new U1(void 0)}getLazyEmitter(i){return this._targetStream.pipe(O(a=>{let e=new O2(t=>{if(!a){this._pending.push({observable:e,observer:t});return}let n=a.addListener(i,l=>{this._ngZone.run(()=>t.next(l))});if(!n){t.complete();return}return this._listeners.push(n),()=>n.remove()});return e}))}setTarget(i){let a=this._targetStream.value;i!==a&&(a&&(this._clearListeners(),this._pending=[]),this._targetStream.next(i),this._pending.forEach(e=>e.observable.subscribe(e.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}},e6={center:{lat:37.421995,lng:-122.084092},zoom:17,mapTypeId:"roadmap"},Ac="500px",Ec="500px",D4=(()=>{let i=class i{set center(e){this._center=e}set zoom(e){this._zoom=e}set options(e){this._options=e||e6}constructor(e,t,n){if(this._elementRef=e,this._ngZone=t,this._eventManager=new S3(G1(i1)),this.height=Ac,this.width=Ec,this._options=e6,this.mapInitialized=new J,this.authFailure=new J,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=i4(n),this._isBrowser){let l=window;l.google,this._existingAuthFailureCallback=l.gm_authFailure,l.gm_authFailure=()=>{this._existingAuthFailureCallback&&this._existingAuthFailureCallback(),this.authFailure.emit()}}}ngOnChanges(e){(e.height||e.width)&&this._setSize();let t=this.googleMap;t&&(e.options&&t.setOptions(this._combineOptions()),e.center&&this._center&&t.setCenter(this._center),e.zoom&&this._zoom!=null&&t.setZoom(this._zoom),e.mapTypeId&&this.mapTypeId&&t.setMapTypeId(this.mapTypeId)
13)}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),google.maps.Map?this._initialize(google.maps.Map):this._ngZone.runOutsideAngular(()=>{google.maps.importLibrary("maps").then(e=>this._initialize(e.Map))}))}_initialize(e){this._ngZone.runOutsideAngular(()=>{this.googleMap=new e(this._mapEl,this._combineOptions()),this._eventManager.setTarget(this.googleMap),this.mapInitialized.emit(this.googleMap)})}ngOnDestroy(){if(this.mapInitialized.complete(),this._eventManager.destroy(),this._isBrowser){let e=window;e.gm_authFailure=this._existingAuthFailureCallback}}fitBounds(e,t){this._assertInitialized(),this.googleMap.fitBounds(e,t)}panBy(e,t){this._assertInitialized(),this.googleMap.panBy(e,t)}panTo(e){this._assertInitialized(),this.googleMap.panTo(e)}panToBounds(e,t){this._assertInitialized(),this.googleMap.panToBounds(e,t)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()||null}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_resolveMap(){return this.googleMap?Promise.resolve(this.googleMap):this.mapInitialized.pipe(e1(1)).toPromise()}_setSize(){if(this._mapEl){let e=this._mapEl.style;e.height=this.height===null?"":Tc(this.height)||Ac,e.width=this.width===null?"":Tc(this.width)||Ec}}_combineOptions(){let e=this._options||{};return y2($({},e),{center:this._center||e.center||e6.center,zoom:this._zoom??e.zoom??e6.zoom,mapTypeId:this.mapTypeId||e.mapTypeId||e6.mapTypeId,mapId:this.mapId||e.mapId})}_assertInitialized(){this.googleMap}};i.\u0275fac=function(t){return new(t||i)(z(f2),z(i1),z(T1))},i.\u0275cmp=A({type:i,selectors:[["google-map"]],inputs:{height:"height",width:"width",mapId:"mapId",mapTypeId:"mapTypeId",center:"center",zoom:"zoom",options:"options"},outputs:{mapInitialized:"mapInitialized",authFailure:"authFailure",boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],standalone:!0,features:[F2,K],ngContentSelectors:Pc,decls:2,vars:0,consts:[[1,"map-container"]],template:function(t,n){t&1&&(P2(),u(0,"div",0),z2(1))},encapsulation:2,changeDetection:0});let c=i;return c})(),Mi=/([A-Za-z%]+)$/;function Tc(c){return c==null?"":Mi.test(c)?c:`${c}px`}var Vi={position:{lat:37.421995,lng:-122.084092}},xi=(()=>{let i=class i{set title(e){this._title=e}set position(e){this._position=e}set label(e){this._label=e}set clickable(e){this._clickable=e}set options(e){this._options=e}set icon(e){this._icon=e}set visible(e){this._visible=e}constructor(e,t){this._googleMap=e,this._ngZone=t,this._eventManager=new S3(G1(i1)),this.animationChanged=this._eventManager.getLazyEmitter("animation_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.clickableChanged=this._eventManager.getLazyEmitter("clickable_changed"),this.cursorChanged=this._eventManager.getLazyEmitter("cursor_changed"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.draggableChanged=this._eventManager.getLazyEmitter("draggable_changed"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.flatChanged=this._eventManager.getLazyEmitter("flat_changed"),this.iconChanged=this._eventManager.getLazyEmitter("icon_changed"),this.mapMousedown=this._eventManager.getLazyEmitter("mousedown"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.mapMouseup=this._eventManager.getLazyEmitter("mouseup"),this.positionChanged=this._eventManager.getLazyEmitter("position_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.shapeChanged=this._eventManager.getLazyEmitter("shape_changed"),this.titleChanged=this._eventManager.getLazyEmitter("title_changed"),this.visibleChanged=this._eventManager.getLazyEmitter("visible_changed"),this.zindexChanged=this._eventManager.getLazyEmitter("zindex_changed"),this.markerInitialized=new J}ngOnInit(){this._googleMap._isBrowser&&(google.maps.Marker&&this._googleMap.googleMap?this._initialize(this._googleMap.googleMap,google.maps.Marker):this._ngZone.runOutsideAngular(()=>{Promise.all([this._googleMap._resolveMap(),google.maps.importLibrary("marker")]).then(([e,t])=>{this._initialize(e,t.Marker)})}))}_initialize(e,t){this._ngZone.runOutsideAngular(()=>{this.marker=new t(this._combineOptions()),this._assertInitialized(),this.marker.setMap(e),this._eventManager.setTarget(this.marker),this.markerInitialized.next(this.marker)})}ngOnChanges(e){let{marker:t,_title:n,_position:l,_label:f,_clickable:d,_icon:g,_visible:H}=this;t&&(e.options&&t.setOptions(this._combineOptions()),e.title&&n!==void 0&&t.setTitle(n),e.position&&l&&t.setPosition(l),e.label&&f!==void 0&&t.setLabel(f),e.clickable&&d!==void 0&&t.setClickable(d),e.icon&&g&&t.setIcon(g),e.visible&&H!==void 0&&t.setVisible(H))}ngOnDestroy(){this.markerInitialized.complete(),this._eventManager.destroy(),this.marker?.setMap(null)}getAnimation(){return this._assertInitialized(),this.marker.getAnimation()||null}getClickable(){return this._assertInitialized(),this.marker.getClickable()}getCursor(){return this._assertInitialized(),this.marker.getCursor()||null}getDraggable(){return this._assertInitialized(),!!this.marker.getDraggable()}getIcon(){return this._assertInitialized(),this.marker.getIcon()||null}getLabel(){return this._assertInitialized(),this.marker.getLabel()||null}getOpacity(){return this._assertInitialized(),this.marker.getOpacity()||null}getPosition(){return this._assertInitialized(),this.marker.getPosition()||null}getShape(){return this._assertInitialized(),this.marker.getShape()||null}getTitle(){return this._assertInitialized(),this.marker.getTitle()||null}getVisible(){return this._assertInitialized(),this.marker.getVisible()}getZIndex(){return this._assertInitialized(),this.marker.getZIndex()||null}getAnchor(){return this._assertInitialized(),this.marker}_resolveMarker(){return this.marker?Promise.resolve(this.marker):this.markerInitialized.pipe(e1(1)).toPromise()}_combineOptions(){let e=this._options||Vi;return y2($({},e),{title:this._title||e.title,position:this._position||e.position,label:this._label||e.label,clickable:this._clickable??e.clickable,map:this._googleMap.googleMap,icon:this._icon||e.icon,visible:this._visible??e.visible})}_assertInitialized(){}};i.\u0275fac=function(t){return new(t||i)(z(D4),z(i1))},i.\u0275dir=U({type:i,selectors:[["map-marker"]],inputs:{title:"title",position:"position",label:"label",clickable:"clickable",options:"options",icon:"icon",visible:"visible"},outputs:{animationChanged:"animationChanged",mapClick:"mapClick",clickableChanged:"clickableChanged",cursorChanged:"cursorChanged",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",draggableChanged:"draggableChanged",mapDragstart:"mapDragstart",flatChanged:"flatChanged",iconChanged:"iconChanged",mapMousedown:"mapMousedown",mapMouseout:"mapMouseout",mapM
13ouseover:"mapMouseover",mapMouseup:"mapMouseup",positionChanged:"positionChanged",mapRightclick:"mapRightclick",shapeChanged:"shapeChanged",titleChanged:"titleChanged",visibleChanged:"visibleChanged",zindexChanged:"zindexChanged",markerInitialized:"markerInitialized"},exportAs:["mapMarker"],standalone:!0,features:[F2]});let c=i;return c})(),Li={},Em=(()=>{let i=class i{set averageCenter(e){this._averageCenter=e}set batchSizeIE(e){this._batchSizeIE=e}set calculator(e){this._calculator=e}set clusterClass(e){this._clusterClass=e}set enableRetinaIcons(e){this._enableRetinaIcons=e}set gridSize(e){this._gridSize=e}set ignoreHidden(e){this._ignoreHidden=e}set imageExtension(e){this._imageExtension=e}set imagePath(e){this._imagePath=e}set imageSizes(e){this._imageSizes=e}set maxZoom(e){this._maxZoom=e}set minimumClusterSize(e){this._minimumClusterSize=e}set styles(e){this._styles=e}set title(e){this._title=e}set zIndex(e){this._zIndex=e}set zoomOnClick(e){this._zoomOnClick=e}set options(e){this._options=e}constructor(e,t){this._googleMap=e,this._ngZone=t,this._currentMarkers=new Set,this._eventManager=new S3(G1(i1)),this._destroy=new B,this.ariaLabelFn=()=>"",this.clusteringbegin=this._eventManager.getLazyEmitter("clusteringbegin"),this.clusteringend=this._eventManager.getLazyEmitter("clusteringend"),this.clusterClick=this._eventManager.getLazyEmitter("click"),this.markerClustererInitialized=new J,this._canInitialize=e._isBrowser}ngOnInit(){this._canInitialize&&this._ngZone.runOutsideAngular(()=>{this._googleMap._resolveMap().then(e=>{this.markerClusterer=this._ngZone.runOutsideAngular(()=>new MarkerClusterer(e,[],this._combineOptions())),this._assertInitialized(),this._eventManager.setTarget(this.markerClusterer),this.markerClustererInitialized.emit(this.markerClusterer)})})}ngAfterContentInit(){this._canInitialize&&(this.markerClusterer?this._watchForMarkerChanges():this.markerClustererInitialized.pipe(e1(1),P(this._destroy)).subscribe(()=>this._watchForMarkerChanges()))}ngOnChanges(e){let{markerClusterer:t,ariaLabelFn:n,_averageCenter:l,_batchSizeIE:f,_calculator:d,_styles:g,_clusterClass:H,_enableRetinaIcons:L,_gridSize:T,_ignoreHidden:e2,_imageExtension:X,_imagePath:I,_imageSizes:V2,_maxZoom:a2,_minimumClusterSize:N1,_title:b4,_zIndex:j3,_zoomOnClick:T2}=this;t&&(e.options&&t.setOptions(this._combineOptions()),e.ariaLabelFn&&(t.ariaLabelFn=n),e.averageCenter&&l!==void 0&&t.setAverageCenter(l),e.batchSizeIE&&f!==void 0&&t.setBatchSizeIE(f),e.calculator&&d&&t.setCalculator(d),e.clusterClass&&H!==void 0&&t.setClusterClass(H),e.enableRetinaIcons&&L!==void 0&&t.setEnableRetinaIcons(L),e.gridSize&&T!==void 0&&t.setGridSize(T),e.ignoreHidden&&e2!==void 0&&t.setIgnoreHidden(e2),e.imageExtension&&X!==void 0&&t.setImageExtension(X),e.imagePath&&I!==void 0&&t.setImagePath(I),e.imageSizes&&V2&&t.setImageSizes(V2),e.maxZoom&&a2!==void 0&&t.setMaxZoom(a2),e.minimumClusterSize&&N1!==void 0&&t.setMinimumClusterSize(N1),e.styles&&g&&t.setStyles(g),e.title&&b4!==void 0&&t.setTitle(b4),e.zIndex&&j3!==void 0&&t.setZIndex(j3),e.zoomOnClick&&T2!==void 0&&t.setZoomOnClick(T2))}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this._eventManager.destroy(),this.markerClusterer?.setMap(null)}fitMapToMarkers(e){this._assertInitialized(),this.markerClusterer.fitMapToMarkers(e)}getAverageCenter(){return this._assertInitialized(),this.markerClusterer.getAverageCenter()}getBatchSizeIE(){return this._assertInitialized(),this.markerClusterer.getBatchSizeIE()}getCalculator(){return this._assertInitialized(),this.markerClusterer.getCalculator()}getClusterClass(){return this._assertInitialized(),this.markerClusterer.getClusterClass()}getClusters(){return this._assertInitialized(),this.markerClusterer.getClusters()}getEnableRetinaIcons(){return this._assertInitialized(),this.markerClusterer.getEnableRetinaIcons()}getGridSize(){return this._assertInitialized(),this.markerClusterer.getGridSize()}getIgnoreHidden(){return this._assertInitialized(),this.markerClusterer.getIgnoreHidden()}getImageExtension(){return this._assertInitialized(),this.markerClusterer.getImageExtension()}getImagePath(){return this._assertInitialized(),this.markerClusterer.getImagePath()}getImageSizes(){return this._assertInitialized(),this.markerClusterer.getImageSizes()}getMaxZoom(){return this._assertInitialized(),this.markerClusterer.getMaxZoom()}getMinimumClusterSize(){return this._assertInitialized(),this.markerClusterer.getMinimumClusterSize()}getStyles(){return this._assertInitialized(),this.markerClusterer.getStyles()}getTitle(){return this._assertInitialized(),this.markerClusterer.getTitle()}getTotalClusters(){return this._assertInitialized(),this.markerClusterer.getTotalClusters()}getTotalMarkers(){return this._assertInitialized(),this.markerClusterer.getTotalMarkers()}getZIndex(){return this._assertInitialized(),this.markerClusterer.getZIndex()}getZoomOnClick(){return this._assertInitialized(),this.markerClusterer.getZoomOnClick()}
13_combineOptions(){let e=this._options||Li;return y2($({},e),{ariaLabelFn:this.ariaLabelFn??e.ariaLabelFn,averageCenter:this._averageCenter??e.averageCenter,batchSize:this.batchSize??e.batchSize,batchSizeIE:this._batchSizeIE??e.batchSizeIE,calculator:this._calculator??e.calculator,clusterClass:this._clusterClass??e.clusterClass,enableRetinaIcons:this._enableRetinaIcons??e.enableRetinaIcons,gridSize:this._gridSize??e.gridSize,ignoreHidden:this._ignoreHidden??e.ignoreHidden,imageExtension:this._imageExtension??e.imageExtension,imagePath:this._imagePath??e.imagePath,imageSizes:this._imageSizes??e.imageSizes,maxZoom:this._maxZoom??e.maxZoom,minimumClusterSize:this._minimumClusterSize??e.minimumClusterSize,styles:this._styles??e.styles,title:this._title??e.title,zIndex:this._zIndex??e.zIndex,zoomOnClick:this._zoomOnClick??e.zoomOnClick})}_watchForMarkerChanges(){this._assertInitialized(),this._ngZone.runOutsideAngular(()=>{this._getInternalMarkers(this._markers).then(e=>{let t=[];for(let n of e)this._currentMarkers.add(n),t.push(n);this.markerClusterer.addMarkers(t)})}),this._markers.changes.pipe(P(this._destroy)).subscribe(e=>{this._assertInitialized(),this._ngZone.runOutsideAngular(()=>{this._getInternalMarkers(e).then(t=>{let n=new Set(t),l=[],f=[];for(let d of Array.from(n))this._currentMarkers.has(d)||(this._currentMarkers.add(d),l.push(d));for(let d of Array.from(this._currentMarkers))n.has(d)||f.push(d);this.markerClusterer.addMarkers(l,!0),this.markerClusterer.removeMarkers(f,!0),this.markerClusterer.repaint();for(let d of f)this._currentMarkers.delete(d)})})})}_getInternalMarkers(e){return Promise.all(e.map(t=>t._resolveMarker()))}_assertInitialized(){}};i.\u0275fac=function(t){return new(t||i)(z(D4),z(i1))},i.\u0275cmp=A({type:i,selectors:[["map-marker-clusterer"]],contentQueries:function(t,n,l){if(t&1&&a5(l,xi,5),t&2){let f;R2(f=U2())&&(n._markers=f)}},inputs:{ariaLabelFn:"ariaLabelFn",averageCenter:"averageCenter",batchSize:"batchSize",batchSizeIE:"batchSizeIE",calculator:"calculator",clusterClass:"clusterClass",enableRetinaIcons:"enableRetinaIcons",gridSize:"gridSize",ignoreHidden:"ignoreHidden",imageExtension:"imageExtension",imagePath:"imagePath",imageSizes:"imageSizes",maxZoom:"maxZoom",minimumClusterSize:"minimumClusterSize",styles:"styles",title:"title",zIndex:"zIndex",zoomOnClick:"zoomOnClick",options:"options"},outputs:{clusteringbegin:"clusteringbegin",clusteringend:"clusteringend",clusterClick:"clusterClick",markerClustererInitialized:"markerClustererInitialized"},exportAs:["mapMarkerClusterer"],standalone:!0,features:[F2,K],ngContentSelectors:Pc,decls:1,vars:0,template:function(t,n){t&1&&(P2(),z2(0))},encapsulation:2,changeDetection:0});let c=i;return c})(),Fc=(()=>{let i=class i{set options(e){this._options.next(e||{})}set paths(e){this._paths.next(e)}constructor(e,t){this._map=e,this._ngZone=t,this._eventManager=new S3(G1(i1)),this._options=new U1({}),this._paths=new U1(void 0),this._destroyed=new B,this.polygonClick=this._eventManager.getLazyEmitter("click"),this.polygonDblclick=this._eventManager.getLazyEmitter("dblclick"),this.polygonDrag=this._eventManager.getLazyEmitter("drag"),this.polygonDragend=this._eventManager.getLazyEmitter("dragend"),this.polygonDragstart=this._eventManager.getLazyEmitter("dragstart"),this.polygonMousedown=this._eventManager.getLazyEmitter("mousedown"),this.polygonMousemove=this._eventManager.getLazyEmitter("mousemove"),this.polygonMouseout=this._eventManager.getLazyEmitter("mouseout"),this.polygonMouseover=this._eventManager.getLazyEmitter("mouseover"),this.polygonMouseup=this._eventManager.getLazyEmitter("mouseup"),this.polygonRightclick=this._eventManager.getLazyEmitter("rightclick"),this.polygonInitialized=new J}ngOnInit(){this._map._isBrowser&&this._combineOptions().pipe(e1(1)).subscribe(e=>{google.maps.Polygon&&this._map.googleMap?this._initialize(this._map.googleMap,google.maps.Polygon,e):this._ngZone.runOutsideAngular(()=>{Promise.all([this._map._resolveMap(),google.maps.importLibrary("maps")]).then(([t,n])=>{this._initialize(t,n.Polygon,e)})})})}_initialize(e,t,n){this._ngZone.runOutsideAngular(()=>{this.polygon=new t(n),this._assertInitialized(),this.polygon.setMap(e),this._eventManager.setTarget(this.polygon),this.polygonInitialized.emit(this.polygon),this._watchForOptionsChanges(),this._watchForPathChanges()})}ngOnDestroy(){this._eventManager.destroy(),this._destroyed.next(),this._destroyed.complete(),this.polygon?.setMap(null)}getDraggable(){return this._assertInitialized(),this.polygon.getDraggable()}getEditable(){return this._assertInitialized(),this.polygon.getEditable()}getPath(){return this._assertInitialized(),this.polygon.getPath()}getPaths(){return this._assertInitialized(),this.polygon.getPaths()}getVisible(){return this._assertInitialized(),this.polygon.getVisible()}_combineOptions(){return E1([this._options,this._paths]).pipe(w(([e,t])=>y2($({},e),{paths:t||e.paths})))}_watchForOptionsChanges(){this._options.pipe(P(this._destroyed)).subscribe(e=>{this._assertInitialized(),this.polygon.setOptions(e)})}_watchForPathChanges(){this._paths.pipe(P(this._destroyed)).subscribe(e=>{e&&(this._assertInitialized(),this.polygon.setPaths(e))})}_assertInitialized(){}};i.\u0275fac=function(t){return new(t||i)(z(D4),z(i1))},i.\u0275dir=U({type:i,selectors:[["map-polygon"]],inputs:{options:"options",paths:"paths"},outputs:{polygonClick:"polygonClick",polygonDblclick:"polygonDblclick",polygonDrag:"polygonDrag",polygonDragend:"polygonDragend",polygonDragstart:"polygonDragstart",polygonMousedown:"polygonMousedown",polygonMousemove:"polygonMousemove",polygonMouseout:"polygonMouseout",polygonMouseover:"polygonMouseover",polygonMouseup:"polygonMouseup",polygonRightclick:"polygonRightclick",polygonInitialized:"polygonInitialized"},exportAs:["mapPolygon"],standalone:!0});let c=i;return c})();var M0=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=N2({type:i}),i.\u0275inj=_2({});let c=i;return c})();var yi=60,Dc=60,Si=24,wi=2,_i=2,Ic=(()=>{let i=class i{transform(e){if(!e)return"";let t=e instanceof Date?e:new Date(e);
13return this.toRelativeString(t)??l5(t,"mediumDate","en-US")}toRelativeString(e){let t=Math.round((Date.now()-e.getTime())/1e3),n=yi,l=n*Dc,f=l*Si;if(t<n)return"just now";if(t<wi*n)return"a minute ago";if(t<l)return`${Math.floor(t/Dc)} minutes ago`;if(Math.floor(t/l)===1)return"1 hour ago";if(t<f)return`${Math.floor(t/l)} hours ago`;if(t<f*_i)return"yesterday"}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=j4({name:"dateAgo",type:i,pure:!0,standalone:!0});let c=i;return c})();var M2=function(c){return c.MANUFACTURER="manufacturer",c.PARTNER="partner",c.PROVIDER="provider",c.RESEARCHER="researcher",c.WORKFORCE="workforce",c}(M2||{}),ki=function(c){return c.ASSOCIATION="association",c.GOVERNMENT="government",c.NON_PROFIT="non-profit",c.SMALL_BUSINESS="small-business",c.K12_EDUCATION="k12-education",c.POST_SECONDARY_EDUCATION="post-secondary-education",c}(ki||{}),Ai=function(c){return c.MEMBER="Member",c.LEVEL1="Level 1 - Foundational",c.LEVEL2="Level 2 - Intermediate",c.LEVEL3="Level 3 - Advanced",c}(Ai||{}),Fm={1:"Partially Sourced in America",2:"Sourced in America",3:"Assembled in America",4:"Made in America",5:"Certified Made in America"},Dm={R0:"0-4,999",R5000:"5,000-24,999",R25000:"25,000-99,999",R100000:"100,000-499,999",R500000:"500,000+"},Im={R0:"0",R1:"1-5",R6:"6-20",R21:"21-50",R51:"51-100",R101:"101-250",R251:"251-500",R500:"500+"},Ei=function(c){return c.MR="Mr.",c.MRS="Mrs.",c.MS="Ms.",c.DR="Dr.",c}(Ei||{}),Ti=function(c){return c.JR="Jr.",c.SR="Sr.",c.II="II",c.III="III",c}(Ti||{});var I4=function(c){return c.DRAFT="draft",c.OPEN="open",c.PAID="paid",c.UNCOLLECTIBLE="uncollectible",c.VOID="void",c}(I4||{}),D1=function(c){return c.INCOMPLETE="incomplete",c.INCOMPLETE_EXPIRED="incomplete_expired",c.TRIALING="trialing",c.ACTIVE="active",c.PAST_DUE="past_due",c.CANCELED="canceled",c.UNPAID="unpaid",c}(D1||{});var ge=x6(G9());var n4=function(c){return c.APP="app",c.BANNER="banner",c.POPUP="popup",c.EMAIL="email",c}(n4||{}),h8=function(c){return c.FRONTEND_ROUTE="frontend-route",c}(h8||{});var I1=Object.create(null);I1.open="0";I1.close="1";I1.ping="2";I1.pong="3";I1.message="4";I1.upgrade="5";I1.noop="6";var a6=Object.create(null);Object.keys(I1).forEach(c=>{a6[I1[c]]=c});var i6={type:"error",data:"parser error"};var Rc=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Uc=typeof ArrayBuffer=="function",Gc=c=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(c):c&&c.buffer instanceof ArrayBuffer,t6=({type:c,data:i},a,e)=>Rc&&i instanceof Blob?a?e(i):Bc(i,e):Uc&&(i instanceof ArrayBuffer||Gc(i))?a?e(i):Bc(new Blob([i]),e):e(I1[c]+(i||"")),Bc=(c,i)=>{let a=new FileReader;return a.onload=function(){let e=a.result.split(",")[1];i("b"+(e||""))},a.readAsDataURL(c)};function Oc(c){return c instanceof Uint8Array?c:c instanceof ArrayBuffer?new Uint8Array(c):new Uint8Array(c.buffer,c.byteOffset,c.byteLength)}var u8;function qc(c,i){if(Rc&&c.data instanceof Blob)return c.data.arrayBuffer().then(Oc).then(i);if(Uc&&(c.data instanceof ArrayBuffer||Gc(c.data)))return i(Oc(c.data));t6(c,!1,a=>{u8||(u8=new TextEncoder),i(u8.encode(a))})}var jc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n6=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let c=0;c<jc.length;c++)n6[jc.charCodeAt(c)]=c;var Wc=c=>{let i=c.length*.75,a=c.length,e,t=0,n,l,f,d;c[c.length-1]==="="&&(i--,c[c.length-2]==="="&&i--);let g=new ArrayBuffer(i),H=new Uint8Array(g);for(e=0;e<a;e+=4)n=n6[c.charCodeAt(e)],l=n6[c.charCodeAt(e+1)],f=n6[c.charCodeAt(e+2)],d=n6[c.charCodeAt(e+3)],H[t++]=n<<2|l>>4,H[t++]=(l&15)<<4|f>>2,H[t++]=(f&3)<<6|d&63;return g};var Fi=typeof ArrayBuffer=="function",r6=(c,i)=>{if(typeof c!="string")return{type:"message",data:$c(c,i)};let a=c.charAt(0);return a==="b"?{type:"message",data:Di(c.substring(1),i)}:a6[a]?c.length>1?{type:a6[a],data:c.substring(1)}:{type:a6[a]}:i6},Di=(c,i)=>{if(Fi){let a=Wc(c);return $c(a,i)}else return{base64:!0,data:c}},$c=(c,i)=>{switch(i){case"blob":return c instanceof Blob?c:new Blob([c]);case"arraybuffer":default:return c instanceof ArrayBuffer?c:c.buffer}};var Kc="�",Qc=(c,i)=>{let a=c.length,e=new Array(a),t=0;
vendor: 1,525 bytes, line 13
13c.forEach((n,l)=>{t6(n,!1,f=>{e[l]=f,++t===a&&i(e.join(Kc))})})},Xc=(c,i)=>{let a=c.split(Kc),e=[];for(let t=0;t<a.length;t++){let n=r6(a[t],i);if(e.push(n),n.type==="error")break}return e};function Zc(){return new TransformStream({transform(c,i){qc(c,a=>{let e=a.length,t;if(e<126)t=new Uint8Array(1),new DataView(t.buffer).setUint8(0,e);else if(e<65536){t=new Uint8Array(3);let n=new DataView(t.buffer);n.setUint8(0,126),n.setUint16(1,e)}else{t=new Uint8Array(9);let n=new DataView(t.buffer);n.setUint8(0,127),n.setBigUint64(1,BigInt(e))}c.data&&typeof c.data!="string"&&(t[0]|=128),i.enqueue(t),i.enqueue(a)})}})}var z8;function V0(c){return c.reduce((i,a)=>i+a.length,0)}function x0(c,i){if(c[0].length===i)return c.shift();let a=new Uint8Array(i),e=0;for(let t=0;t<i;t++)a[t]=c[0][e++],e===c[0].length&&(c.shift(),e=0);return c.length&&e<c[0].length&&(c[0]=c[0].slice(e)),a}function Yc(c,i){z8||(z8=new TextDecoder);let a=[],e=0,t=-1,n=!1;return new TransformStream({transform(l,f){for(a.push(l);;){if(e===0){if(V0(a)<1)break;let d=x0(a,1);n=(d[0]&128)===128,t=d[0]&127,t<126?e=3:t===126?e=1:e=2}else if(e===1){if(V0(a)<2)break;let d=x0(a,2);t=new DataView(d.buffer,d.byteOffset,d.length).getUint16(0),e=3}else if(e===2){if(V0(a)<8)break;let d=x0(a,8),g=new DataView(d.buffer,d.byteOffset,d.length),H=g.getUint32(0);if(H>Math.pow(2,21)-1){f.enqueue(i6);break}t=H*Math.pow(2,32)+g.getUint32(4),e=3}else{if(V0(a)<t)break;let d=x0(a,t);f.enqueue(r6(n?d:z8.decode(d),i)),e=0}if(t===0||t>c){f.enqueue(i6);break}}}})}var v8=4;
vendor: 4,420 bytes, line 13
13function d2(c){if(c)return Ii(c)}function Ii(c){for(var i in d2.prototype)c[i]=d2.prototype[i];return c}d2.prototype.on=d2.prototype.addEventListener=function(c,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+c]=this._callbacks["$"+c]||[]).push(i),this};d2.prototype.once=function(c,i){function a(){this.off(c,a),i.apply(this,arguments)}return a.fn=i,this.on(c,a),this};d2.prototype.off=d2.prototype.removeListener=d2.prototype.removeAllListeners=d2.prototype.removeEventListener=function(c,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var a=this._callbacks["$"+c];if(!a)return this;if(arguments.length==1)return delete this._callbacks["$"+c],this;for(var e,t=0;t<a.length;t++)if(e=a[t],e===i||e.fn===i){a.splice(t,1);break}return a.length===0&&delete this._callbacks["$"+c],this};d2.prototype.emit=function(c){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),a=this._callbacks["$"+c],e=1;e<arguments.length;e++)i[e-1]=arguments[e];if(a){a=a.slice(0);for(var e=0,t=a.length;e<t;++e)a[e].apply(this,i)}return this};d2.prototype.emitReserved=d2.prototype.emit;d2.prototype.listeners=function(c){return this._callbacks=this._callbacks||{},this._callbacks["$"+c]||[]};d2.prototype.hasListeners=function(c){return!!this.listeners(c).length};var Q2=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function L0(c,...i){return i.reduce((a,e)=>(c.hasOwnProperty(e)&&(a[e]=c[e]),a),{})}var Bi=Q2.setTimeout,Oi=Q2.clearTimeout;function r4(c,i){i.useNativeTimers?(c.setTimeoutFn=Bi.bind(Q2),c.clearTimeoutFn=Oi.bind(Q2)):(c.setTimeoutFn=Q2.setTimeout.bind(Q2),c.clearTimeoutFn=Q2.clearTimeout.bind(Q2))}var Ri=1.33;function Jc(c){return typeof c=="string"?Ui(c):Math.ceil((c.byteLength||c.size)*Ri)}function Ui(c){let i=0,a=0;for(let e=0,t=c.length;e<t;e++)i=c.charCodeAt(e),i<128?a+=1:i<2048?a+=2:i<55296||i>=57344?a+=3:(e++,a+=4);return a}function ce(c){let i="";for(let a in c)c.hasOwnProperty(a)&&(i.length&&(i+="&"),i+=encodeURIComponent(a)+"="+encodeURIComponent(c[a]));return i}function ee(c){let i={},a=c.split("&");for(let e=0,t=a.length;e<t;e++){let n=a[e].split("=");i[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return i}var b0=class extends Error{constructor(i,a,e){super(i),this.description=a,this.context=e,this.type="TransportError"}},s4=class extends d2{constructor(i){super(),this.writable=!1,r4(this,i),this.opts=i,this.query=i.query,this.socket=i.socket}onError(i,a,e){return super.emitReserved("error",new b0(i,a,e)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){let a=r6(i,this.socket.binaryType);this.onPacket(a)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,a={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(a)}_hostname(){let i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){let a=ce(i);return a.length?"?"+a:""}};var ne="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),g8=64,Gi={},ae=0,y0=0,ie;function te(c){let i="";do i=ne[c%g8]+i,c=Math.floor(c/g8);while(c>0);return i}function S0(){let c=te(+new Date);return c!==ie?(ae=0,ie=c):c+"."+te(ae++)}for(;y0<g8;y0++)Gi[ne[y0]]=y0;var re=!1;try{re=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var se=re;function H8(c){let i=c.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||se))return new XMLHttpRequest}catch{}if(!i)try{return new Q2[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function qi(){}var ji=function(){return new H8({xdomain:!1}).responseType!=null}(),_0=class extends s4{constructor(i){if(super(i),this.polling=!1,typeof location<"u"){let e=location.protocol==="https:",t=location.port;t||(t=e?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||t!==i.port}let a=i&&i.forceBase64;this.supportsBinary=ji&&!a,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}
13doOpen(){this.poll()}pause(i){this.readyState="pausing";let a=()=>{this.readyState="paused",i()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",function(){--e||a()})),this.writable||(e++,this.once("drain",function(){--e||a()}))}else a()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){let a=e=>{if(this.readyState==="opening"&&e.type==="open"&&this.onOpen(),e.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)};Xc(i,this.socket.binaryType).forEach(a),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){let i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,Qc(i,a=>{this.doWrite(a,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let i=this.opts.secure?"https":"http",a=this.query||{};return this.opts.timestampRequests!==!1&&(a[this.opts.timestampParam]=S0()),!this.supportsBinary&&!a.sid&&(a.b64=1),this.createUri(i,a)}request(i={}){return Object.assign(i,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new w0(this.uri(),i)}doWrite(i,a){let e=this.request({method:"POST",data:i});e.on("success",a),e.on("error",(t,n)=>{this.onError("xhr post error",t,n)})}doPoll(){let i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(a,e)=>{this.onError("xhr poll error",a,e)}),this.pollXhr=i}},w0=(()=>{class c extends d2{constructor(a,e){super(),r4(this,e),this.opts=e,this.method=e.method||"GET",this.uri=a,this.data=e.data!==void 0?e.data:null,this.create()}create(){var a;let e=L0(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd;let t=this.xhr=new H8(e);try{t.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let n in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(n)&&t.setRequestHeader(n,this.opts.extraHeaders[n])}}catch{}if(this.method==="POST")try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{t.setRequestHeader("Accept","*/*")}catch{}(a=this.opts.cookieJar)===null||a===void 0||a.addCookies(t),"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{var n;t.readyState===3&&((n=this.opts.cookieJar)===null||n===void 0||n.parseCookies(t)),t.readyState===4&&(t.status===200||t.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof t.status=="number"?t.status:0)},0))},t.send(this.data)}catch(n){this.setTimeoutFn(()=>{this.onError(n)},0);return}typeof document<"u"&&(this.index=c.requestsCount++,c.requests[this.index]=this)}onError(a){this.emitReserved("error",a,this.xhr),this.cleanup(!0)}cleanup(a){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=qi,a)try{this.xhr.abort()}catch{}typeof document<"u"&&delete c.requests[this.index],this.xhr=null}}onLoad(){let a=this.xhr.responseText;a!==null&&(this.emitReserved("data",a),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}return c.requestsCount=0,c.requests={},c})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",oe);else if(typeof addEventListener=="function"){let c="onpagehide"in Q2?"pagehide":"unload";addEventListener(c,oe,!1)}}function oe(){for(let c in w0.requests)w0.requests.hasOwnProperty(c)&&w0.requests[c].abort()}var B4=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,a)=>a(i,0),s6=Q2.WebSocket||Q2.MozWebSocket,N0=!0,le="arraybuffer";var fe=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",k0=class extends s4{constructor(i){super(i),this.supportsBinary=!i.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;let i=this.uri(),a=this.opts.protocols,e=fe?{}:L0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(e.headers=this.opts.extraHeaders);try{this.ws=N0&&!fe?a?new s6(i,a):new s6(i):new s6(i,a,e)}catch(t){return this.emitReserved("error",t)}
13this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let a=0;a<i.length;a++){let e=i[a],t=a===i.length-1;t6(e,this.supportsBinary,n=>{let l={};N0||(e.options&&(l.compress=e.options.compress),this.opts.perMessageDeflate&&(typeof n=="string"?Buffer.byteLength(n):n.length)<this.opts.perMessageDeflate.threshold&&(l.compress=!1));try{N0?this.ws.send(n):this.ws.send(n,l)}catch{}t&&B4(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let i=this.opts.secure?"wss":"ws",a=this.query||{};return this.opts.timestampRequests&&(a[this.opts.timestampParam]=S0()),this.supportsBinary||(a.b64=1),this.createUri(i,a)}check(){return!!s6}};var A0=class extends s4{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(i=>{let a=Yc(Number.MAX_SAFE_INTEGER,this.socket.binaryType),e=i.readable.pipeThrough(a).getReader(),t=Zc();t.readable.pipeTo(i.writable),this.writer=t.writable.getWriter();let n=()=>{e.read().then(({done:f,value:d})=>{f||(this.onPacket(d),n())}).catch(f=>{})};n();let l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this.writer.write(l).then(()=>this.onOpen())})}))}write(i){this.writable=!1;for(let a=0;a<i.length;a++){let e=i[a],t=a===i.length-1;this.writer.write(e).then(()=>{t&&B4(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this.transport)===null||i===void 0||i.close()}};var C8={websocket:k0,webtransport:A0,polling:_0};var Wi=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,$i=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function w3(c){if(c.length>2e3)throw"URI too long";let i=c,a=c.indexOf("["),e=c.indexOf("]");a!=-1&&e!=-1&&(c=c.substring(0,a)+c.substring(a,e).replace(/:/g,";")+c.substring(e,c.length));let t=Wi.exec(c||""),n={},l=14;for(;l--;)n[$i[l]]=t[l]||"";return a!=-1&&e!=-1&&(n.source=i,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=Ki(n,n.path),n.queryKey=Qi(n,n.query),n}function Ki(c,i){let a=/\/{2,9}/g,e=i.replace(a,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&e.splice(0,1),i.slice(-1)=="/"&&e.splice(e.length-1,1),e}function Qi(c,i){let a={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(a[t]=n)}),a}var E0=(()=>{class c extends d2{constructor(a,e={}){super(),this.binaryType=le,this.writeBuffer=[],a&&typeof a=="object"&&(e=a,a=null),a?(a=w3(a),e.hostname=a.host,e.secure=a.protocol==="https"||a.protocol==="wss",e.port=a.port,a.query&&(e.query=a.query)):e.host&&(e.hostname=w3(e.host).host),r4(this,e),this.secure=e.secure!=null?e.secure:typeof location<"u"&&location.protocol==="https:",e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=e.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=e.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=ee(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})}
13,addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(a){let e=Object.assign({},this.opts.query);e.EIO=v8,e.transport=a,this.id&&(e.sid=this.id);let t=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[a]);return new C8[a](t)}open(){let a;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)a="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else a=this.transports[0];this.readyState="opening";try{a=this.createTransport(a)}catch{this.transports.shift(),this.open();return}a.open(),this.setTransport(a)}setTransport(a){this.transport&&this.transport.removeAllListeners(),this.transport=a,a.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",e=>this.onClose("transport close",e))}probe(a){let e=this.createTransport(a),t=!1;c.priorWebsocketSuccess=!1;let n=()=>{t||(e.send([{type:"ping",data:"probe"}]),e.once("packet",T=>{if(!t)if(T.type==="pong"&&T.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;c.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{t||this.readyState!=="closed"&&(L(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let e2=new Error("probe error");e2.transport=e.name,this.emitReserved("upgradeError",e2)}}))};function l(){t||(t=!0,L(),e.close(),e=null)}let f=T=>{let e2=new Error("probe error: "+T);e2.transport=e.name,l(),this.emitReserved("upgradeError",e2)};function d(){f("transport closed")}function g(){f("socket closed")}function H(T){e&&T.name!==e.name&&l()}let L=()=>{e.removeListener("open",n),e.removeListener("error",f),e.removeListener("close",d),this.off("close",g),this.off("upgrading",H)};e.once("open",n),e.once("error",f),e.once("close",d),this.once("close",g),this.once("upgrading",H),this.upgrades.indexOf("webtransport")!==-1&&a!=="webtransport"?this.setTimeoutFn(()=>{t||e.open()},200):e.open()}onOpen(){if(this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let a=0,e=this.upgrades.length;for(;a<e;a++)this.probe(this.upgrades[a])}}onPacket(a){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",a),this.emitReserved("heartbeat"),this.resetPingTimeout(),a.type){case"open":this.onHandshake(JSON.parse(a.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":let e=new Error("server error");e.code=a.data,this.onError(e);break;case"message":this.emitReserved("data",a.data),this.emitReserved("message",a.data);break}}onHandshake(a){this.emitReserved("handshake",a),this.id=a.sid,this.transport.query.sid=a.sid,this.upgrades=this.filterUpgrades(a.upgrades),this.pingInterval=a.pingInterval,this.pingTimeout=a.pingTimeout,this.maxPayload=a.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let a=this.getWritablePackets();this.transport.send(a),this.prevBufferLen=a.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=Jc(n)),t>0&&e>this.maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}write(a,e,t){return this.sendPacket("message",a,e,t),this}send(a,e,t){return this.sendPacket("message",a,e,t),this}sendPacket(a,e,t,n){if(typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=null),this.readyState==="closing"||this.readyState==="closed")return;t=t||{},t.compress=t.compress!==!1;let l={type:a,data:e,options:t};this.emitReserved("packetCreate",l),this.writeBuffer.push(l),n&&this.once("flush",n),this.flush()}close(){let a=()=>{this.onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),a()},t=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?t():a()}):this.upgrading?t():a()),this}onError(a){c.priorWebsocketSuccess=!1,this.emitReserved("error",a),this.onClose("transport error",a)}onClose(a,e){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",a,e),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(a){let e=[],t=0,n=a.length;for(;t<n;t++)~this.transports.indexOf(a[t])&&e.push(a[t]);return e}}return c.protocol=v8,c})();var Kp=E0.protocol;function me(c,i="",a){let e=c;a=a||typeof location<"u"&&location,c==null&&(c=a.protocol+"//"+a.host),typeof c=="string"&&(c.charAt(0)==="/"&&(c.charAt(1)==="/"?c=a.protocol+c:c=a.host+c),/^(https?|wss?):\/\//.test(c)||(typeof a<"u"?c=a.protocol+"//"+c:c="https://"+c),e=w3(c)),e.port||(/^(http|ws)$/.test(e.protocol)?e.port="80":/^(http|ws)s$/.test(e.protocol)&&(e.port="443")),e.path=e.path||"/";let n=e.host.indexOf(":")!==-1?"["+e.host+"]":e.host;return e.id=e.protocol+"://"+n+":"+e.port+i,e.href=e.protocol+"://"+n+(a&&a.port===e.port?"":":"+e.port),e}var y8={};U9(y8,{Decoder:()=>L8,Encoder:()=>x8,PacketType:()=>c2,protocol:()=>ze});var Xi=typeof ArrayBuffer=="function",Zi=c=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(c):c.buffer instanceof ArrayBuffer,pe=Object.prototype.toString,Yi=typeof Blob=="function"||typeof Blob<"u"&&pe.call(Blob)==="[object BlobConstructor]",Ji=typeof File=="function"||typeof File<"u"&&pe.call(File)==="[object FileConstructor]";function l6(c){return Xi&&(c instanceof ArrayBuffer||Zi(c))||Yi&&c instanceof Blob||Ji&&c instanceof File}function o6(c,i){if(!c||typeof c!="object")return!1;if(Array.isArray(c)){for(let a=0,e=c.length;a<e;
vendor: 4,980 bytes, line 13
13a++)if(o6(c[a]))return!0;return!1}if(l6(c))return!0;if(c.toJSON&&typeof c.toJSON=="function"&&arguments.length===1)return o6(c.toJSON(),!0);for(let a in c)if(Object.prototype.hasOwnProperty.call(c,a)&&o6(c[a]))return!0;return!1}function de(c){let i=[],a=c.data,e=c;return e.data=M8(a,i),e.attachments=i.length,{packet:e,buffers:i}}function M8(c,i){if(!c)return c;if(l6(c)){let a={_placeholder:!0,num:i.length};return i.push(c),a}else if(Array.isArray(c)){let a=new Array(c.length);for(let e=0;e<c.length;e++)a[e]=M8(c[e],i);return a}else if(typeof c=="object"&&!(c instanceof Date)){let a={};for(let e in c)Object.prototype.hasOwnProperty.call(c,e)&&(a[e]=M8(c[e],i));return a}return c}function he(c,i){return c.data=V8(c.data,i),delete c.attachments,c}function V8(c,i){if(!c)return c;if(c&&c._placeholder===!0){if(typeof c.num=="number"&&c.num>=0&&c.num<i.length)return i[c.num];throw new Error("illegal attachments")}else if(Array.isArray(c))for(let a=0;a<c.length;a++)c[a]=V8(c[a],i);else if(typeof c=="object")for(let a in c)Object.prototype.hasOwnProperty.call(c,a)&&(c[a]=V8(c[a],i));return c}var ct=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ze=5,c2=function(c){return c[c.CONNECT=0]="CONNECT",c[c.DISCONNECT=1]="DISCONNECT",c[c.EVENT=2]="EVENT",c[c.ACK=3]="ACK",c[c.CONNECT_ERROR=4]="CONNECT_ERROR",c[c.BINARY_EVENT=5]="BINARY_EVENT",c[c.BINARY_ACK=6]="BINARY_ACK",c}(c2||{}),x8=class{constructor(i){this.replacer=i}encode(i){return(i.type===c2.EVENT||i.type===c2.ACK)&&o6(i)?this.encodeAsBinary({type:i.type===c2.EVENT?c2.BINARY_EVENT:c2.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let a=""+i.type;return(i.type===c2.BINARY_EVENT||i.type===c2.BINARY_ACK)&&(a+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(a+=i.nsp+","),i.id!=null&&(a+=i.id),i.data!=null&&(a+=JSON.stringify(i.data,this.replacer)),a}encodeAsBinary(i){let a=de(i),e=this.encodeAsString(a.packet),t=a.buffers;return t.unshift(e),t}};function ue(c){return Object.prototype.toString.call(c)==="[object Object]"}var L8=class c extends d2{constructor(i){super(),this.reviver=i}add(i){let a;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");a=this.decodeString(i);let e=a.type===c2.BINARY_EVENT;e||a.type===c2.BINARY_ACK?(a.type=e?c2.EVENT:c2.ACK,this.reconstructor=new b8(a),a.attachments===0&&super.emitReserved("decoded",a)):super.emitReserved("decoded",a)}else if(l6(i)||i.base64)if(this.reconstructor)a=this.reconstructor.takeBinaryData(i),a&&(this.reconstructor=null,super.emitReserved("decoded",a));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let a=0,e={type:Number(i.charAt(0))};if(c2[e.type]===void 0)throw new Error("unknown packet type "+e.type);if(e.type===c2.BINARY_EVENT||e.type===c2.BINARY_ACK){let n=a+1;for(;i.charAt(++a)!=="-"&&a!=i.length;);let l=i.substring(n,a);if(l!=Number(l)||i.charAt(a)!=="-")throw new Error("Illegal attachments");e.attachments=Number(l)}if(i.charAt(a+1)==="/"){let n=a+1;for(;++a&&!(i.charAt(a)===","||a===i.length););e.nsp=i.substring(n,a)}else e.nsp="/";let t=i.charAt(a+1);if(t!==""&&Number(t)==t){let n=a+1;for(;++a;){let l=i.charAt(a);if(l==null||Number(l)!=l){--a;break}if(a===i.length)break}e.id=Number(i.substring(n,a+1))}if(i.charAt(++a)){let n=this.tryParse(i.substr(a));if(c.isPayloadValid(e.type,n))e.data=n;else throw new Error("invalid payload")}return e}tryParse(i){try{return JSON.parse(i,this.reviver)}catch{return!1}}static isPayloadValid(i,a){switch(i){case c2.CONNECT:return ue(a);case c2.DISCONNECT:return a===void 0;case c2.CONNECT_ERROR:return typeof a=="string"||ue(a);case c2.EVENT:case c2.BINARY_EVENT:return Array.isArray(a)&&(typeof a[0]=="number"||typeof a[0]=="string"&&ct.indexOf(a[0])===-1);case c2.ACK:case c2.BINARY_ACK:return Array.isArray(a)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},b8=class{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){let a=he(this.reconPack,this.buffers);return this.finishedReconstruction(),a}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function v1(c,i,a){return c.on(i,a),function(){c.off(i,a)}}var et=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),_3=class extends d2{constructor(i,a,e){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=a,e&&e.auth&&(this.auth=e.auth),this._opts=Object.assign({},e),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let i=this.io;this.subs=[v1(i,"open",this.onopen.bind(this)),v1(i,"packet",this.onpacket.b
13ind(this)),v1(i,"error",this.onerror.bind(this)),v1(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...a){if(et.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(a.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(a),this;let e={type:c2.EVENT,data:a};if(e.options={},e.options.compress=this.flags.compress!==!1,typeof a[a.length-1]=="function"){let l=this.ids++,f=a.pop();this._registerAckCallback(l,f),e.id=l}let t=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!t||!this.connected)||(this.connected?(this.notifyOutgoingListeners(e),this.packet(e)):this.sendBuffer.push(e)),this.flags={},this}_registerAckCallback(i,a){var e;let t=(e=this.flags.timeout)!==null&&e!==void 0?e:this._opts.ackTimeout;if(t===void 0){this.acks[i]=a;return}let n=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===i&&this.sendBuffer.splice(l,1);a.call(this,new Error("operation has timed out"))},t);this.acks[i]=(...l)=>{this.io.clearTimeoutFn(n),a.apply(this,[null,...l])}}emitWithAck(i,...a){let e=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((t,n)=>{a.push((l,f)=>e?l?n(l):t(f):t(l)),this.emit(i,...a)})}_addToQueue(i){let a;typeof i[i.length-1]=="function"&&(a=i.pop());let e={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((t,...n)=>e!==this._queue[0]?void 0:(t!==null?e.tryCount>this._opts.retries&&(this._queue.shift(),a&&a(t)):(this._queue.shift(),a&&a(null,...n)),e.pending=!1,this._drainQueue())),this._queue.push(e),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;let a=this._queue[0];a.pending&&!i||(a.pending=!0,a.tryCount++,this.flags=a.flags,this.emit.apply(this,a.args
vendor: 7,014 bytes, line 13
13))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:c2.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,a){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,a)}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case c2.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case c2.EVENT:case c2.BINARY_EVENT:this.onevent(i);break;case c2.ACK:case c2.BINARY_ACK:this.onack(i);break;case c2.DISCONNECT:this.ondisconnect();break;case c2.CONNECT_ERROR:this.destroy();let e=new Error(i.data.message);e.data=i.data.data,this.emitReserved("connect_error",e);break}}onevent(i){let a=i.data||[];i.id!=null&&a.push(this.ack(i.id)),this.connected?this.emitEvent(a):this.receiveBuffer.push(Object.freeze(a))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){let a=this._anyListeners.slice();for(let e of a)e.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){let a=this,e=!1;return function(...t){e||(e=!0,a.packet({type:c2.ACK,id:i,data:t}))}}onack(i){let a=this.acks[i.id];typeof a=="function"&&(a.apply(this,i.data),delete this.acks[i.id])}onconnect(i,a){this.id=i,this.recovered=a&&this._pid===a,this._pid=a,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:c2.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){let a=this._anyListeners;for(let e=0;e<a.length;e++)if(i===a[e])return a.splice(e,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){let a=this._anyOutgoingListeners;for(let e=0;e<a.length;e++)if(i===a[e])return a.splice(e,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let a=this._anyOutgoingListeners.slice();for(let e of a)e.apply(this,i.data)}}};function O4(c){c=c||{},this.ms=c.min||100,this.max=c.max||1e4,this.factor=c.factor||2,this.jitter=c.jitter>0&&c.jitter<=1?c.jitter:0,this.attempts=0}O4.prototype.duration=function(){var c=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),a=Math.floor(i*this.jitter*c);c=Math.floor(i*10)&1?c+a:c-a}return Math.min(c,this.max)|0};O4.prototype.reset=function(){this.attempts=0};O4.prototype.setMin=function(c){this.ms=c};O4.prototype.setMax=function(c){this.max=c};O4.prototype.setJitter=function(c){this.jitter=c};var M4=class extends d2{constructor(i,a){var e;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(a=i,i=void 0),a=a||{},a.path=a.path||"/socket.io",this.opts=a,r4(this,a),this.reconnection(a.reconnection!==!1),this.reconnectionAttempts(a.reconnectionAttempts||1/0),this.reconnectionDelay(a.reconnectionDelay||1e3),this.reconnectionDelayMax(a.reconnectionDelayMax||5e3),this.randomizationFactor((e=a.randomizationFactor)!==null&&e!==void 0?e:.5),this.backoff=new O4({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(a.timeout==null?2e4:a.timeout),this._readyState="closed",this.uri=i;let t=a.parser||y8;this.encoder=new t.Encoder,this.decoder=new t.Decoder,this._autoConnect=a.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var a;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(a=this.backoff)===null||a===void 0||a.setMin(i),this)}randomizationFactor(i){var a;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(a=this.backoff)===null||a===void 0||a.setJitter(i),this)}reconnectionDelayMax(i){var a;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(a=this.backoff)===null||a===void 0||a.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new E0(this.uri,this.opts);let a=this.engine,e=this;this._readyState="opening",this.skipReconnect=!1;let t=v1(a,"open",function(){e.onopen(),i&&i()}),n=f=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",f),i?i(f):this.maybeReconnectOnOpen()},l=v1(a,"error",n);if(this._timeout!==!1){let f=this._timeout,d=this.setTimeoutFn(()=>{t(),n(new Error("timeout")),a.close()},f);this.opts.autoUnref&&d.unref(),this.subs.push(()=>{this.clearTimeoutFn(d)})}return this.subs.push(t),this.subs.push(l),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let i=this.engine;this.subs.push(v1(i,"ping",this.onping.bind(this)),v1(i,"data",this.ondata.bind(this)),v1(i,"error",this.onerror.bind(this)),v1(i,"close",this.onclose.bind(this)),v1(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(a){this.onclose("parse error",a)}}ondecoded(i){B4(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,a){let e=this.nsps[i];return e?this._autoConnect&&!e.active&&e.connect():(e=new _3(this,i,a),this.nsps[i]=e),e}
13_destroy(i){let a=Object.keys(this.nsps);for(let e of a)if(this.nsps[e].active)return;this._close()}_packet(i){let a=this.encoder.encode(i);for(let e=0;e<a.length;e++)this.engine.write(a[e],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(i,a){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,a),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let a=this.backoff.duration();this._reconnecting=!0;let e=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(t=>{t?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",t)):i.onreconnect()}))},a);this.opts.autoUnref&&e.unref(),this.subs.push(()=>{this.clearTimeoutFn(e)})}}onreconnect(){let i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}};var f6={};function S8(c,i){typeof c=="object"&&(i=c,c=void 0),i=i||{};let a=me(c,i.path||"/socket.io"),e=a.source,t=a.id,n=a.path,l=f6[t]&&n in f6[t].nsps,f=i.forceNew||i["force new connection"]||i.multiplex===!1||l,d;return f?d=new M4(e,i):(f6[t]||(f6[t]=new M4(e,i)),d=f6[t]),a.query&&!i.query&&(i.query=a.queryKey),d.socket(a.path,i)}Object.assign(S8,{Manager:M4,Socket:_3,io:S8,connect:S8});function at(c){return c}var T0=class extends B{constructor(i,a,e=at){super(),this.socket=i,this.event=a,this.sanitizer=e,this.receivedEvents=[],this.receiveSubscription=X0(this.socket,this.event).pipe(w2(t=>this.receivedEvents.push(t))).subscribe(this),this.emitSubscription=this.pipe(Q(t=>{let n=this.receivedEvents.indexOf(t);return n>-1&&this.receivedEvents.splice(n,1),n===-1})).subscribe(t=>this.socket.emit(this.event,this.sanitizer(t)))}complete(){this.receiveSubscription.unsubscribe(),this.emitSubscription.unsubscribe(),super.complete()}};var N3=(()=>{let i=class i{constructor(e){this.auth=e,this.unsubscribes=[],this.streamCache=new Map,this.manager=new M4(q.api.url,{withCredentials:!0,extraHeaders:{Authorization:this.auth.token?`Bearer ${this.auth.token}`:""},rememberUpgrade:!0,reconnectionAttempts:100}),this.manager.on("reconnect_error",()=>{this.auth.refresh().subscribe(()=>{this.manager.opts.extraHeaders={Authorization:this.auth.token?`Bearer ${this.auth.token}`:""}})})}ngOnDestroy(){this.unsubscribes.forEach(e=>e.unsubscribe()),[...this.streamCache.values()].forEach(e=>e.complete()),this.manager._close()}io(e){return this.manager.socket(`/${e}`)}stream$(e,t,n){let l=`${e}:${t}`;return this.streamCache.has(l)||this.streamCache.set(l,new T0(this.io(e),t,n)),this.streamCache.get(l)}};i.\u0275fac=function(t){return new(t||i)(k(C3))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var it={logEngagementEvent:r2.joinWithSlash(q.api.url,"reports/user-engagement/log-event")},S1=(()=>{let i=class i{constructor(e,t){this.http=e,this.socket=t,this.indicators$=this.socket.stream$("metrics","update").pipe(j2(1)),this.appAlertSubject$=new d1}ngOnDestroy(){this.appAlertSubject$.complete()}get appAlerts$(){return this.appAlertSubject$.asObservable()}addAppAlert(e){this.appAlertSubject$.next(e)}logEngagementEvent(e){this.http.post(it.logEngagementEvent,e).subscribe()}logClickEvent(e,t,n){this.logEngagementEvent(y2($({},n),{technical_type:"click",name:e,group:t}))}logViewEvent(e,t,n){this.logEngagementEvent(y2($({},n),{technical_type:"view",name:e,group:t}))}};i.\u0275fac=function(t){return new(t||i)(k(o1),k(N3))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var V4={collection:r2.joinWithSlash(q.api.url,"notifications"),myNotifications:r2.joinWithSlash(q.api.url,"notifications/for-layout"),dismiss:r2.joinWithSlash(q.api.url,"notifications/dismiss/:uuid"),bulkMarkAsSeen:r2.joinWithSlash(q.api.url,"notifications/bulk-mark-as-seen"),notificationAction:r2.joinWithSlash(q.api.url,"notifications/:notification-uuid/record-action/:action-uuid"),categories:r2.joinWithSlash(q.api.url,"notifications/categories"),preferences:r2.joinWithSlash(q.api.url,"notifications/preferences")},J1=(()=>{let i=class i{constructor(e,t,n){this.http=e,this.router=t,this.socket=n,this.notificationStream$=this.socket.stream$("notifications","update").pipe(j2(1)),this.notificationRefresh$=new U1(void 0),this.unsubscribe$=new B}ngOnDestroy(){this.notificationRefresh$.complete(),this.unsubscribe$.next(),this.unsubscribe$.complete()}list(e){return this.http.get(V4.collection,{params:H3(e)})}getPreferences(){return this.http.get(V4.preferences)}savePreferences(e){return this.http.put(V4.preferences,e)}getCategories(){return this.http.get(V4.categories)}getNotifications(){return this.http.get(V4.myNotifications).pipe(w(e=>e.map(t=>this.apiToObject(t))))}dismissNotification(e,t=!0){let n=typeof e=="string"?e:e.identifiers.uuid;return this.http.put(V4.dismiss.replace(":uuid",n),null).pipe(w2(()=>{t&&this.triggerNotificationRefresh()}))}triggerNotificationRefresh(){this.notificationRefresh$.next()}takeAction(e,t){if(!e.actions.includes(t))throw new Error("Can't record notification action if the action is not part of the notification.");switch(t.type){case h8.FRONTEND_ROUTE:this.router.navigateByUrl(t.data.route);break;default:console.warn(`Unhandled action type: ${t.type}`);break}if(!t.identifiers.uuid)return console.error("Action doesn't have an ID"),Y(void 0);let n=V4.notificationAction.replace(":notification-uuid",e.identifiers.uuid).replace(":action-uuid",t.identifiers.uuid);return this.http.put(n,null).pipe(a4(l=>(console.error(l),Y(void 0))))}markAsSeen(e){return this.bulkMarkNotificationsAsSeen([e])}bulkDismiss(e){return L6(e.map(t=>this.dismissNotification(t,!1))).pipe(w(()=>{}),w2(()=>
13this.triggerNotificationRefresh()))}bulkMarkNotificationsAsSeen(e){let t=e.filter(n=>!n.seen_timestamp).map(n=>n.identifiers.uuid);return t.length?this.http.post(V4.bulkMarkAsSeen,t):Y()}apiToObject(e){return e.timestamp=new Date(e.timestamp),e}};i.\u0275fac=function(t){return new(t||i)(k(o1),k(x1),k(N3))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var tt=(c,i)=>i.uniqueId;function nt(c,i){if(c&1&&(r(0,"a",4),o(1),s()),c&2){let a=i,e=h(2).$implicit;p("routerLink",a.path)("queryParams",a.params),m(),_(" ",e.label," ")}}function rt(c,i){if(c&1&&(r(0,"a",5),o(1),s()),c&2){let a=h(2).$implicit;p("href",a.link,$4),m(),_(" ",a.label," ")}}function st(c,i){if(c&1&&v(0,nt,2,3,"a",4)(1,rt,2,2),c&2){let a,e=h().$implicit,t=h(4);x2(0,(a=t.routeInfo(e.link))?0:1,a)}}function ot(c,i){if(c&1){let a=b();r(0,"button",6),C("click",function(){M(a);let t=h().$implicit;return V(t.callback?t.callback():null)}),o(1),s()}if(c&2){let a=h().$implicit;m(),_(" ",a.label," ")}}function lt(c,i){if(c&1&&v(0,st,2,1)(1,ot,2,1),c&2){let a=i.$implicit;x2(0,a.link?0:1)}}function ft(c,i){if(c&1&&(r(0,"clr-alert-item")(1,"span",2),o(2),s(),r(3,"div",3),w6(4,lt,2,1,null,null,Y0),s()()),c&2){let a=i.$implicit;m(2),W(a.text),m(2),_6(a.actions)}}function mt(c,i){if(c&1){let a=b();r(0,"clr-alert",1),C("clrAlertClosedChange",function(){let t=M(a).$implicit,n=h(2);return V(n.handleAlertClose(t))}),w6(1,ft,6,1,"clr-alert-item",null,Y0),s()}if(c&2){let a=i.$implicit;p("clrAlertType",a.type||"info")("clrAlertAppLevel",!0)("clrAlertClosable",a.closable!==!1),m(),_6(a.items)}}function pt(c,i){c&1&&(r(0,"clr-alerts"),w6(1,mt,3,3,"clr-alert",0,tt),s()),c&2&&(m(),_6(i))}var P0=(()=>{let i=class i{constructor(e,t,n){this.auth=e,this.layout=t,this.notification=n,this.alerts$=this.auth.isLoggedIn.pipe(Q(l=>l),O(()=>E1([this.layout.appAlerts$.pipe(b6((l,f)=>f.uniqueId&&l.some(d=>d.uniqueId===f.uniqueId)?l:[...l,f],[]),k4([])),this.notification.notificationStream$.pipe(k4([]),w(l=>l.filter(f=>f.channel===n4.BANNER).map(f=>({uniqueId:f.identifiers.uuid,closable:f.dismissible,type:C4.INFO,items:[{text:f.subject,actions:f.actions?.map(d=>this.actionNotificationToAlert(f,d))}]}))))])),w(([l,f])=>[...l,...f])),this.unsubscribe$=new B}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}handleAlertClose(e){e.uniqueId&&this.isUUID(e.uniqueId)&&this.notification.dismissNotification(e.uniqueId).subscribe()}routeInfo(e){if(/^http/.test(e))return;let[t,n]=e.split("?");return{path:t,params:n?ge.default.parse(n):void 0}}actionNotificationToAlert(e,t){return{label:t.label,callback:()=>{this.notification.takeAction(e,t).subscribe()}}}isUUID(e){return/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}};i.\u0275fac=function(t){return new(t||i)(z(C3),z(S1),z(J1))},i.\u0275cmp=A({type:i,selectors:[["app-alert"]],hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},standalone:!0,features:[K],decls:2,vars:3,consts:[[3,"clrAlertType","clrAlertAppLevel","clrAlertClosable"],[3,"clrAlertClosedChange","clrAlertType","clrAlertAppLevel","clrAlertClosable"],[1,"alert-text"],[1,"alert-actions"],[1,"btn","alert-action",3,"routerLink","queryParams"],[1,"btn","alert-action",3,"href"],[1,"btn","alert-action",3,"click"]],template:function(t,n){if(t&1&&(v(0,pt,3,0,"clr-alerts"),S(1,"async")),t&2){let l;x2(0,(l=N(1,1,n.alerts$))?0:-1,l)}},dependencies:[p2,h3,u3,c7,X6,G,k2,L1,Q1],changeDetection:0});let c=i;return c})();var ht=(c,i)=>({"btn-primary":c,"btn-outline":i});function ut(c,i){if(c&1&&(r(0,"span",7),o(1),s()),c&2){let a=h(2);m(),_("(+",a.notifications.length-1," more)")}}function zt(c,i){if(c&1){let a=b();r(0,"button",9),C("click",function(){let t=M(a).$implicit,n=h(3);return V(n.handleAction(t))}),o(1),s()}if(c&2){let a=i.$implicit,e=i.index;p("ngClass",n5(2,ht,e===0,e>0)),m(),_(" ",a.label," ")}}function vt(c,i){if(c&1&&(F(0),v(1,zt,2,5,"button",8),D()),c&2){let a=h(2);m(),p("ngForOf",a.currentNotification.actions)}}function gt(c,i){if(c&1){let a=b();r(0,"clr-modal",1),C("clrModalOpenChange",function(t){M(a);let n=h();return V(n.handleOpenChange(t))}),r(1,"h3",2),o(2),v(3,ut,2,1,"span",3),s(),u(4,"div",4),r(5,"div",5),v(6,vt,2,1,"ng-container",6),s()()}if(c&2){let a=h();p("clrModalOpen",a.notifications.length>
130)("clrModalClosable",a.currentNotification.dismissible||!a.currentNotification.actions),m(2),_(" ",a.currentNotification.subject," "),m(),p("ngIf",a.notifications.length>1),m(),p("innerHTML",a.currentNotification.content,W4),m(2),p("ngIf",a.currentNotification.actions)}}var He=(()=>{let i=class i{constructor(e){this.notification=e,this.notifications=[],this.unsubscribe$=new B}ngOnInit(){this.notification.notificationStream$.pipe(P(this.unsubscribe$)).subscribe(e=>{this.notifications=e.filter(t=>t.channel===n4.POPUP),this.notifications.length&&(this.currentNotification=this.notifications[0])})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}set currentNotification(e){this.currentNotificationCache=e,this.currentNotification&&this.notification.markAsSeen(e).subscribe()}get currentNotification(){return this.currentNotificationCache}get closable(){return this.notifications.length===1&&this.currentNotification.dismissible}handleAction(e){this.notification.takeAction(this.currentNotification,e).subscribe(),this.advanceToNext()}handleOpenChange(e){!e&&this.currentNotification.dismissible&&(this.notification.dismissNotification(this.currentNotification).subscribe(),this.advanceToNext())}advanceToNext(){this.notifications=this.notifications.filter(e=>e!==this.currentNotification),this.currentNotification=this.notifications[0],this.modal.open()}};i.\u0275fac=function(t){return new(t||i)(z(J1))},i.\u0275cmp=A({type:i,selectors:[["app-popup-notifications"]],viewQuery:function(t,n){if(t&1&&Z2(f1,5),t&2){let l;R2(l=U2())&&(n.modal=l.first)}},hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},decls:1,vars:1,consts:[[3,"clrModalOpen","clrModalClosable","clrModalOpenChange",4,"ngIf"],[3,"clrModalOpenChange","clrModalOpen","clrModalClosable"],[1,"modal-title"],["class","count",4,"ngIf"],[1,"modal-body",3,"innerHTML"],[1,"modal-footer"],[4,"ngIf"],[1,"count"],["type","button","class","btn",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click","ngClass"]],template:function(t,n){t&1&&v(0,gt,7,6,"clr-modal",0),t&2&&p("ngIf",n.currentNotification)},dependencies:[f1,b1,g1,m2,Z,y3],styles:[".count[_ngcontent-%COMP%]{white-space:nowrap;opacity:.5;font-size:.8em}"]});let c=i;return c})();var B1=function(c){return c.NOT_CONNECTED="not-connected",c.NOT_STARTED="not-started",c.ACTIVE="active",c.BAD_SCOPE="bad-scope",c.BLOCKED="blocked",c}(B1||{});var E3={availableRecipients:r2.joinWithSlash(q.api.url,"/messages/available-recipients"),getMessagesForConversation:r2.joinWithSlash(q.api.url,"/messages/conversations/:id/messages"),listConversations:r2.joinWithSlash(q.api.url,"/messages/conversations"),markConversationAsRead:r2.joinWithSlash(q.api.url,"/messages/conversation/:id/mark-as-read"),markConversationsAsRead:r2.joinWithSlash(q.api.url,"/messages/conversations/mark-as-read")},w1=(()=>{let i=class i{constructor(e,t,n,l,f,d){this.http=e,this.socket=t,this.rbac=n,this.user=l,this.organization=f,this.connection=d,this.from$=new d1(1),this.recipient$=new d1(1),this.open$=new U1(!1),this.namespace="messages"}ngOnDestroy(){this.from$.complete(),this.recipient$.complete(),this.open$.complete()}get safeFrom$(){return this.from$.asObservable().pipe(Q(e=>!!e),W3((e,t)=>e.identifiers.uuid===t.identifiers.uuid),j2(1))}get safeRecipient$(){return this.recipient$.asObservable().pipe(Q(e=>!!e),j2(1))}get messagesStream$(){let e=t=>{let X=t.conversation,{latestMessage:n,audit:l,unread:f}=X,d=Q0(X,["latestMessage","audit","unread"]),I=t,{user:g,audit:H}=I,L=Q0(I,["user","audit"]),{a:T,b:e2}=t.conversation.organizations;return y2($({},L),{conversation:y2($({},d),{organizations:{a:T,b:e2}})})};return this.socket.stream$(this.namespace,"messages",e)}get newConversationStream$(){return this.socket.stream$(this.namespace,"new-conversation")}conversationStream$(e){let t=E3.getMessagesForConversation.replace(":id",e.identifiers?.uuid??""),n=e.identifiers?this.http.get(t).pipe(O(f=>f.total?Y(...f.data):e.latestMessage?Y(e.latestMessage):Y(void 0))):Y(void 0),l=this.messagesStream$.pipe(Q(f=>this.isSameConversation(e,f.conversation)));return _4(n,l).pipe(Z8())}sendMessage(e,t){let n=y2($({},e),{conversation:t});this.messagesStream$.next(n)}getConversationsForOrg(e){let t={organizations:[e]};return this.http.get(E3.listConversations,{params:t}).pipe(w(n=>n.data))}getConversationStatus$(e){return this.safeFrom$.pipe(e1(1),O(t=>{let n=e.organizations.a===t?.identifiers.uuid?e.organizations.b:e.organizations.a;return this.organization.verifyView(n,t.identifiers.uuid).pipe(O(l=>l?e.identifiers?.uuid?Y(B1.ACTIVE):Y(!1).pipe(O(d=>{if(d)return Y(B1.NOT_STARTED);let g={connected_to_uuid:n,statuses:[L2.ACCEPTED,L2.PENDING]};return this.connection.list(t.identifiers.uuid,g).pipe(w(H=>H.data.some(L=>L.status===L2.ACCEPTED||L.status===L2.PENDING&&L.timeline.initiated.by===n)?B1.NOT_STARTED:B1.NOT_CONNECTED))})):Y(B1.BAD_SCOPE)))}),j2(1))}
13getAvailableRecipients(e,t,n){let l={organization:e,query:t};return this.http.post(E3.availableRecipients,n,{params:l})}markConversationAsRead(e){return e.identifiers?.uuid?this.http.put(E3.markConversationAsRead.replace(":id",e.identifiers?.uuid??""),null):Y(void 0)}markConversationsAsRead(e,t){let n=H3({conversations:e,organization:t});return this.http.put(E3.markConversationsAsRead,null,{params:n})}isSameConversation(e,t){return!e||!t?!1:e.identifiers?.uuid===t.identifiers?.uuid||e.organizations.a===t.organizations.a&&e.organizations.b===t.organizations.b||e.organizations.a===t.organizations.b&&e.organizations.b===t.organizations.a}userHasMessageAccess$(e){let t="organization.profile.view",n=Object.keys(e.subscriptions).some(d=>this.rbac.hasPermission(t,d)),l=Object.keys(e.licenses).some(d=>this.rbac.hasPermission(t,d))||Object.keys(e.delegations??{}).some(d=>this.rbac.hasPermission(t,d));return(Object.keys(e.sponsors).some(d=>this.rbac.hasPermission(t,d))||l||n)&&this.rbac.hasPermission("organization.profile.view")?Y(!0):this.userHasMessagingHistory$(e)}orgHasMessageAccess$(e){return this.user.getMe().pipe(Q(t=>!!t),e1(1),w(t=>{let n=e.identifiers.uuid;if(!this.rbac.hasPermission("organization.profile.view",n))return!1;let l=!!t.subscriptions[n]?.length,f=!!t.licenses[n]||!!t.delegations?.[n];return!!t.sponsors[n]?.length||f||l}))}userHasMessagingHistory$(e){let t={organizations:Object.keys(e.permissions).filter(n=>n!=="global")};return this.http.get(E3.listConversations,{params:t}).pipe(w(n=>n.total>0),a4(()=>Y(!1)))}};i.\u0275fac=function(t){return new(t||i)(k(o1),k(N3),k(y1),k($2),k(B2),k(r0))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var Ce={prefix:"fas",iconName:"lightbulb-exclamation-on",icon:[640,512,[],"e1ca","M69.3 4l48 32c11 7.4 14 22.3 6.7 33.3s-22.3 14-33.3 6.7l-48-32c-11-7.4-14-22.3-6.7-33.3S58.3-3.3 69.3 4zM597.3 44l-48 32c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l48-32c11-7.4 25.9-4.4 33.3 6.7s4.4 25.9-6.7 33.3zM24 160H88c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24s10.7-24 24-24zm528 0h64c13.3 0 24 10.7 24 24s-10.7 24-24 24H552c-13.3 0-24-10.7-24-24s10.7-24 24-24zM117.3 332l-48 32c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l48-32c11-7.4 25.9-4.4 33.3 6.7s4.4 25.9-6.7 33.3zm432-39.9l48 32c11 7.4 14 22.3 6.7 33.3s-22.3 14-33.3 6.7l-48-32c-11-7.4-14-22.3-6.7-33.3s22.3-14 33.3-6.7zm-100.1 5.7c-19.8 27.1-39.7 54.4-49.2 86.2H240c-9.6-31.9-29.5-59.1-49.2-86.2l0 0 0 0c-5.2-7.1-10.4-14.2-15.4-21.4C155.6 247.9 144 213.3 144 176C144 78.8 222.8 0 320 0s176 78.8 176 176c0 37.3-11.6 71.9-31.4 100.3c-5 7.2-10.2 14.3-15.4 21.4l0 0 0 0zM400 432c0 44.2-35.8 80-80 80s-80-35.8-80-80V416H400v16zM344 88c0-13.3-10.7-24-24-24s-24 10.7-24 24V200c0 13.3 10.7 24 24 24s24-10.7 24-24V88zM320 320a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]};var Mt={prefix:"fas",iconName:"bell-concierge",icon:[512,512,[128718,"concierge-bell"],"f562","M216 64c-13.3 0-24 10.7-24 24s10.7 24 24 24h16v33.3C119.6 157.2 32 252.4 32 368H480c0-115.6-87.6-210.8-200-222.7V112h16c13.3 0 24-10.7 24-24s-10.7-24-24-24H256 216zM24 400c-13.3 0-24 10.7-24 24s10.7 24 24 24H488c13.3 0 24-10.7 24-24s-10.7-24-24-24H24z"]},rh=Mt;var Me={prefix:"fas",iconName:"empty-set",icon:[512,512,[8709,216],"f656","M435.4 121.9l67.2-67.2c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L390.2 76.6C352.8 48.6 306.3 32 256 32C132.3 32 32 132.3 32 256c0 50.3 16.6 96.8 44.6 134.2L9.4 457.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l67.2-67.2c37.4 28 83.8 44.6 134.1 44.6c123.7 0 224-100.3 224-224c0-50.3-16.6-96.8-44.6-134.1zm-91.2 .7L122.5 344.2C105.8 318.9 96 288.6 96 256c0-88.4 71.6-160 160-160c32.6 0 62.9 9.8 88.2 26.5zm-176.5 267L389.5 167.8C406.2 193.1 416 223.4 416 256c0 88.4-71.6 160-160 160c-32.6 0-62.9-9.8-88.2-26.5z"]};var sh={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]};var Vt={prefix:"fas",iconName:"book-open-cover",icon:[640,512,["book-open-alt"],"e0c0","M304 32V408L96 368V34.7C96 14.9 113.8-.2 133.3 3.1L304 32zM89.7 405.1L320 451.2l230.3-46.1c15-3 25.7-16.1 25.7-31.4V28.8l25.7-5.1C621.5 19.7 640 34.8 640 55V421.8c0 15.3-10.8 28.4-25.7 31.4L320 512 25.7 453.1C10.8 450.2 
130 437 0 421.8V55C0 34.8 18.5 19.7 38.3 23.7L64 28.8v345c0 15.3 10.8 28.4 25.7 31.4zM336 408V32L506.7 3.1C526.2-.2 544 14.9 544 34.7V368L336 408z"]},oh=Vt;var lh={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]};var fh={prefix:"fas",iconName:"microscope",icon:[512,512,[128300],"f610","M160 32c0-17.7 14.3-32 32-32h32c17.7 0 32 14.3 32 32c17.7 0 32 14.3 32 32V288c0 17.7-14.3 32-32 32c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32c-17.7 0-32-14.3-32-32V64c0-17.7 14.3-32 32-32zM32 448H320c70.7 0 128-57.3 128-128s-57.3-128-128-128V128c106 0 192 86 192 192c0 49.2-18.5 94-48.9 128H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 32c-17.7 0-32-14.3-32-32s14.3-32 32-32zm80-64H304c8.8 0 16 7.2 16 16s-7.2 16-16 16H112c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var xt={prefix:"fas",iconName:"user-helmet-safety",icon:[448,512,[128119,"user-construction","user-hard-hat"],"f82c","M216 0c-13.3 0-24 10.7-24 24V80L163.6 23.1C125.6 43.5 99 82.6 96.2 
13128H96c-13.3 0-24 10.7-24 24s10.7 24 24 24H352c13.3 0 24-10.7 24-24s-10.7-24-24-24h-.2C349 82.6 322.4 43.5 284.4 23.1L256 80V24c0-13.3-10.7-24-24-24H216zm8 320c65.3 0 119.1-48.9 127-112H97c7.9 63.1 61.7 112 127 112zm-89.6 32C60.2 352 0 412.2 0 486.4C0 500.5 11.5 512 25.6 512H422.4c14.1 0 25.6-11.5 25.6-25.6C448 412.2 387.8 352 313.6 352H134.4z"]};var mh=xt;var ph={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]};var dh={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]};var Lt={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},hh=Lt;var Ve={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]};var uh={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M80 160c0-35.3 28.7-64 64-64h32c35.3 0 64 28.7 64 64v3.6c0 21.8-11.1 42.1-29.4 53.8l-42.2 27.1c-25.2 16.2-40.4 44.1-40.4 74V320c0 17.7 14.3 32 32 32s32-14.3 32-32v-1.4c0-8.2 4.2-15.8 11-20.2l42.2-27.1c36.6-23.6 58.8-64.1 58.8-107.7V160c0-
1370.7-57.3-128-128-128H144C73.3 32 16 89.3 16 160c0 17.7 14.3 32 32 32s32-14.3 32-32zm80 320a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]};var zh={prefix:"fas",iconName:"location-pin",icon:[384,512,["map-marker"],"f041","M384 192c0 87.4-117 243-168.3 307.2c-12.3 15.3-35.1 15.3-47.4 0C117 435 0 279.4 0 192C0 86 86 0 192 0S384 86 384 192z"]};var vh={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]};var gh={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]};var bt={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},xe=bt;var Hh={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]};var yt={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},Ch=yt;var Mh={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]};var St={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]};var Vh=St;var xh={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};var Lh={prefix:"fas",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z"]};var wt={prefix:"fas",iconName:"square-envelope",icon:[448,512,["envelope-square"],"f199","M64 32C28.7 32 0 60.7 0 96V4
1316c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM218 271.7L64.2 172.4C66 156.4 79.5 144 96 144H352c16.5 0 30 12.4 31.8 28.4L230 271.7c-1.8 1.2-3.9 1.8-6 1.8s-4.2-.6-6-1.8zm29.4 26.9L384 210.4V336c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V210.4l136.6 88.2c7 4.5 15.1 6.9 23.4 6.9s16.4-2.4 23.4-6.9z"]},bh=wt;var _t={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},yh=_t;var Sh={prefix:"fas",iconName:"mask",icon:[576,512,[],"f6fa","M288 64C64 64 0 160 0 272S80 448 176 448h8.4c24.2 0 46.4-13.7 57.2-35.4l23.2-46.3c4.4-8.8 13.3-14.3 23.2-14.3s18.8 5.5 23.2 14.3l23.2 46.3c10.8 21.7 33 35.4 57.2 35.4H400c96 0 176-64 176-176s-64-208-288-208zM96 256a64 64 0 1 1 128 0A64 64 0 1 1 96 256zm320-64a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]};function Nt(c,i){if(c&1){let a=b();r(0,"button",10),C("click",function(){M(a);let t=h(2);return V(t.handleDismiss())}),u(1,"fa-icon",2),s()}if(c&2){let a=h(2);m(),p("icon",a.icons.close)}}function kt(c,i){if(c&1&&(r(0,"main")(1,"div",1),u(2,"fa-icon",2),s(),r(3,"div",3)(4,"div",4)(5,"div",5),o(6),s(),r(7,"div",6),o(8),S(9,"dateAgo"),s()(),u(10,"div",7),s(),r(11,"div",8),v(12,Nt,2,1,"button",9),s()()),c&2){let a=h();m(2),p("icon",a.icons.info),m(4),W(a.notification.subject),m(2),W(N(9,5,a.notification.timestamp)),m(2),p("innerHTML",a.notification.content,W4),m(2),p("ngIf",a.notification.dismissible)}}function At(c,i){if(c&1){let a=b();r(0,"button",13),C("click",function(){let t=M(a).$implicit,n=h(2);return V(n.takeAction(t))}),o(1),s()}if(c&2){let a=i.$implicit;m(),_(" ",a.label," ")}}function Et(c,i){if(c&1&&(r(0,"footer")(1,"div",11),v(2,At,2,1,"button",12),s()()),c&2){let a=h();m(2),p("ngForOf",a.notification.actions)}}var Le=(()=>{let i=class i{constructor(e){this.service=e,this.dismiss=new J,this.action=new J,this.icons={info:j7,close:J7}}handleDismiss(){return this.service.dismissNotification(this.notification).subscribe(),this.dismiss.emit(this.notification)}takeAction(e){this.action.emit(e),this.service.takeAction(this.notification,e).subscribe(()=>this.service.triggerNotificationRefresh())}};i.\u0275fac=function(t){return new(t||i)(z(J1))},i.\u0275cmp=A({type:i,selectors:[["app-notification"]],inputs:{notification:"notification"}
13,outputs:{dismiss:"dismiss",action:"action"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"icon"],[3,"icon"],[1,"notification"],[1,"subject-line"],[1,"subject"],[1,"timestamp"],[1,"content","inner-html",3,"innerHTML"],[1,"close-wrapper"],["class","btn btn-icon btn-link btn-sm",3,"click",4,"ngIf"],[1,"btn","btn-icon","btn-link","btn-sm",3,"click"],[1,"btn-group","btn-link","btn-sm"],["class","btn",3,"click",4,"ngFor","ngForOf"],[1,"btn",3,"click"]],template:function(t,n){t&1&&v(0,kt,13,7,"main",0)(1,Et,3,1,"footer",0),t&2&&(p("ngIf",n.notification),m(),p("ngIf",n.notification))},dependencies:[m2,Z,g2,Ic],styles:["[_nghost-%COMP%]{color:inherit;display:block;padding:1em 0;font-size:.6rem}main[_ngcontent-%COMP%]{display:flex;flex-direction:row}main[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]{flex:1 1 auto;margin:0 .8em}main[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .subject-line[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:.4em}main[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .subject-line[_ngcontent-%COMP%]   .subject[_ngcontent-%COMP%]{font-weight:700}main[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .subject-line[_ngcontent-%COMP%]   .timestamp[_ngcontent-%COMP%]{opacity:.5;line-height:1em}main[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]     *{color:inherit;font-size:inherit}main[_ngcontent-%COMP%]   .notification[_ngcontent-%COMP%]   .content[_ngcontent-%COMP%]     p{margin-top:1em}footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:.4em}.btn[_ngcontent-%COMP%]{margin:0;color:inherit}"]});let c=i;return c})();function Pt(c,i){c&1&&(r(0,"div",8),o(1," No more notifications "),s())}function Ft(c,i){if(c&1){let a=b();r(0,"app-notification",9),C("dismiss",function(t){M(a);let n=h(2);return V(n.handleDismiss(t))})("action",function(){M(a);let t=h(2);return V(t.handleAction())}),s()}if(c&2){let a=i.$implicit;p("notification",a)}}function Dt(c,i){if(c&1){let a=b();r(0,"div",1),C("click",function(t){M(a);let n=h();return V(n.overlayClick(t))}),r(1,"aside")(2,"header")(3,"div",2),o(4,"Notifications"),s(),r(5,"div",3)(6,"button",4),C("click",function(){M(a);let t=h();return V(t.settings())}),u(7,"fa-icon",5),s(),r(8,"button",4),C("click",function(){M(a);let t=h();return V(t.dismissAll())}),u(9,"fa-icon",5),s()()(),r(10,"main"),v(11,Pt,2,0,"div",6)(12,Ft,1,1,"app-notification",7),s()()()}if(c&2){let a=h();p("@fade",void 0),m(),p("@slide",void 0),m(6),p("icon",a.icons.settings),m(2),p("icon",a.icons.clear),m(2),p("ngIf",a.notifications.length===0),m(),p("ngForOf",a.notifications)}}var be=(()=>{let i=class i{constructor(e,t){this.service=e,this.router=t,this.open=!1,this.openChange=new J,this.notifications=[],this.icons={filter:Ve,settings:xe,clear:Me},this.unsubscribe$=new B}ngOnInit(){this.service.notificationStream$.pipe(w(e=>e.filter(t=>t.channel===n4.APP)),P(this.unsubscribe$)).subscribe(e=>{this.notifications=e,this.open&&this.markAllAsSeen()})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}ngOnChanges(e){e.open&&e.open.currentValue===!0&&this.markAllAsSeen()}overlayClick(e){e.target.classList.contains("overlay")&&this.close()}dismissAll(){this.service.bulkDismiss(this.notifications).subscribe(),this.notifications=[]}settings(){this.router.navigateByUrl("/account/preferences"),this.close()}handleDismiss(e){this.notifications=this.notifications.filter(t=>t!==e)}handleAction(){this.close()}close(){this.open=!1,this.openChange.emit(!1)}markAllAsSeen(){this.service.bulkMarkNotificationsAsSeen(this.notifications).subscribe()}};i.\u0275fac=function(t){return new(t||i)(z(J1),z(x1))},i.\u0275cmp=A({type:i,selectors:[["app-notification-sidebar"]],hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},inputs:{open:"open"},outputs:{openChange:"openChange"},features:[F2],decls:1,vars:1,consts:[["class","overlay",3,"click",4,"ngIf"],[1,"overlay",3,"click"],[1,"title"],[1,"actions","btn-group","btn-icon","btn-link","btn-sm"],[1,"btn",3,"click"],[3,"icon"],["class","empty",4,"ngIf"],[3,"notification","dismiss","action",4,"ngFor","ngForOf"],[1,"empty"],[3,"dismiss","action","notification"]],template:function(t,n){t&1&&v(0,Dt,13,6,"div",0),t&2&&p("ngIf",n.open)},dependencies:[m2,Z,g2,Le],styles:[".overlay[_ngcontent-%COMP%]{background-color:#323232d9;position:absolute;inset:0;z-index:1000;overflow:hidden}aside[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;width:20rem;max-width:100vw;background-color:var(--cm-blue);color:var(--cm-white);padding:1rem;border-top:1px solid rgba(255,255,255,.1);display:flex;flex-direction:column}aside[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]{background-color:transparent;color:inherit;height:auto;display:flex;align-items:center;border-bottom:1px solid rgba(255,255,255,.5);padding:.4em 0}aside[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:700;flex:1 1 auto}aside[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{margin-right:0}aside[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]{flex:auto;overflow-x:auto}aside[_ngcontent-%COMP%]   .empty[_ngcontent-%COMP%]{text-align:center;text-transform:uppercase;padding:2em;font-weight:700;opacity:.5}aside[_ngcontent-%COMP%]   app-notification[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.5)}aside[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{text-align:center;margin-top:1em}aside[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{color:inherit}aside[_ngcontent-%COMP%]   .btn-outline[_ngcontent-%COMP%]{border-color:currentColor}"],data:{animation:[X4("fade",[d4("void => *",[H1({opacity:0}
13),Z4([p4(".2s ease-in-out",H1({opacity:1})),J4("@slide",Y4())])]),d4("* => void",[H1({opacity:1}),Z4([p4(".2s ease-in-out",H1({opacity:0})),J4("@slide",Y4())])])]),X4("slide",[F6("void",H1({transform:"translateX(100%)"})),d4("void => *, * => void",[p4(".2s ease-in-out")])])]}});let c=i;return c})();var Bt=typeof document=="object"&&!!document,P3=class c{static get(i,a){if(i==null)return null;let e=c.parse(i.getItem(a)||"null")||null;return e===null?null:typeof e=="object"&&typeof e._expired<"u"&&e._expired!==0&&+new Date>e._expired?(c.remove(i,a),null):e._value||null}static set(i,a,e,t=0,n="t"){i?.setItem(a,c.stringify({_expired:c.getExpired(t,n),_value:e}))}static remove(i,a){i?.removeItem(a)}static key(i,a){return i==null?null:i.key(a)}static getExpired(i,a){if(i<=0)return 0;let e=+new Date;switch(a){case"s":return e+1e3*i;case"m":return e+1e3*60*i;case"h":return e+1e3*60*60*i;case"d":return e+1e3*60*60*24*i;case"w":return e+1e3*60*60*24*7*i;case"y":return e+1e3*60*60*24*365*i;case"t":return e+i;default:return 0}}static stringify(i){return JSON.stringify(i)}static parse(i){try{return JSON.parse(i)||null}catch{return i}}},ye={};function Ot(c,i,a=0,e="d"){return(t,n)=>{i=i||n,Object.defineProperty(t,n,{get:()=>P3.get(c,i),set:l=>{if(!ye[i]){P3.get(c,i)===null&&P3.set(c,i,l,a,e),ye[i]=!0;return}P3.set(c,i,l,a,e)},enumerable:!0,configurable:!0})}}function F3(c,i=0,a="t"){return Ot(Bt?localStorage:null,c,i,a)}function D3(c,i){Object.defineProperty(c,i,{get(){throw new Error(`Component property "${i}" is required on ${c.constructor.name}`)},set(a){Object.defineProperty(c,i,{value:a,writable:!0,configurable:!0})},configurable:!0})}var I3=class I3{constructor(){this.me=!1,this.myOrg=!1}};I3.\u0275fac=function(a){return new(a||I3)},I3.\u0275cmp=A({type:I3,selectors:[["app-message"]],hostVars:4,hostBindings:function(a,e){a&2&&t1("me",e.me)("right",e.myOrg)},inputs:{me:"me",myOrg:"myOrg",message:"message"},standalone:!0,features:[K],decls:10,vars:7,consts:[[1,"message-header"],[1,"name"],[1,"divider"],[1,"time"],[1,"content"]],template:function(a,e){a&1&&(r(0,"div",0)(1,"div",1),o(2),s(),u(3,"div",2),r(4,"div",3),o(5),S(6,"date"),s()(),r(7,"main")(8,"div",4),o(9),s()()),a&2&&(m(2),K4("",e.message.user.name.first," ",e.message.user.name.last,""),m(3),W(m4(6,4,e.message.audit.created_at,"
13shortTime")),m(4),W(e.message.content))},dependencies:[G,j1],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:flex;flex-direction:column;padding:.5em 1em}.right[_nghost-%COMP%]   .message-header[_ngcontent-%COMP%]{justify-content:flex-end}.right[_nghost-%COMP%]   .message-header[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{order:0}.right[_nghost-%COMP%]   .message-header[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{order:1}.right[_nghost-%COMP%]   .message-header[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{order:2}.right[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{text-align:right}.message-header[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:.4em}.message-header[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-weight:700}.message-header[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]:after{content:"\\2022";color:var(--cm-gray)}.message-header[_ngcontent-%COMP%]   .time[_ngcontent-%COMP%]{color:var(--cm-gray)}.content[_ngcontent-%COMP%]{white-space:pre-wrap;color:var(--cm-dark-gray)}']});var d6=I3;A1([D3],d6.prototype,"message",void 0);var Rt=["content"],Ut=["*"];function Gt(c,i){c&1&&(F(0),o(1,"+"),D())}function qt(c,i){if(c&1&&(F(0),v(1,Gt,2,0,"ng-container",3),r(2,"span",4),o(3),s(),D()),c&2){let a=i.$implicit,e=i.index;m(),p("ngIf",e!==0),m(2),W(a)}}var F0=(()=>{let i=class i{constructor(e,t){this.el=e,this.cd=t,this.parts=[]}ngAfterViewInit(){let e=this.content.nativeElement.textContent;e&&(this.parts=e.split("+").map(t=>t.trim().toUpperCase()),this.cd.detectChanges())}};i.\u0275fac=function(t){return new(t||i)(z(f2),z(q1))},i.\u0275cmp=A({type:i,selectors:[["app-hotkey-display"]],viewQuery:function(t,n){if(t&1&&Z2(Rt,5),t&2){let l;R2(l=U2())&&(n.content=l.first)}},standalone:!0,features:[K],ngContentSelectors:Ut,decls:4,vars:1,consts:[["content",""],[1,"hidden"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"key"]],template:function(t,n){t&1&&(P2(),r(0,"span",1,0),z2(2),s(),v(3,qt,4,2,"ng-container",2)),t&2&&(m(3),p("ngForOf",n.parts))},dependencies:[G,m2,Z],styles:["[_nghost-%COMP%]{display:inline}[_nghost-%COMP%]   .hidden[_ngcontent-%COMP%]{display:none}.key[_ngcontent-%COMP%]{display:inline-block;border:1px solid var(--clr-dropdown-divider-color);border-radius:.3em;padding:.1em .5em;margin:0 .2em;box-shadow:0 1px #0003,0 0 0 2px #fff inset;background-color:#f7f7f7}"],changeDetection:0});let c=i;return c})();var _8=x6(Se());function we(c){return c.keys!==void 0}var _e=(()=>{let i=class i{constructor(){this.appHotkeyEvent=new J,this.appHotKeyEvent=new J,this.needsMousetrapClass=!0}set appHotKey(e){this.appHotKey=e}ngOnDestroy(){this.unbind(this.appHotkey)}ngOnChanges(e){e.appHotkey&&(this.unbind(e.appHotkey.previousValue),this.bind(e.appHotkey.currentValue))}bind(e){let t=(n,l)=>{this.log("binding",n.keys);let f=(d,g)=>(this.log(g,"pressed"),this.appHotkeyEvent.emit(y2($({},d),{keys:g,id:l})),this.appHotKeyEvent.emit(y2($({},d),{keys:g,id:l})),!!n.bubble);_8.default.bind(n.keys,f,n.action)};we(e)?t(e):Object.entries(e).forEach(([n,l])=>t(l,n))}unbind(e){if(!e)return;let t=n=>{this.log("unbinding",n.keys),_8.default.unbind(n.keys,n.action)};we(e)?t(e):Object.values(e).forEach(n=>t(n))}log(...e){console.info("HOTKEY:",...e)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=U({type:i,selectors:[["","appHotkey",""],["","appHotKey",""]],hostVars:2,hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2),t&2&&t1("mousetrap",n.needsMousetrapClass)},inputs:{appHotkey:"appHotkey",appHotKey:"appHotKey"},outputs:{appHotkeyEvent:"appHotkeyEvent",appHotKeyEvent:"appHotKeyEvent"},standalone:!0,features:[F2]});let c=i;return c})();var Ne=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=N2({type:i}),i.\u0275inj=_2({imports:[G,F0]});let c=i;return c})();var $t=()=>[];function Kt(c,i){if(c&1&&o(0),c&2){let a=h(2);_(" Connection with ",a.organization.name," ")}}function Qt(c,i){if(c&1&&o(0),c&2){let a=h(2);_(" Connection with ",a.organization.name," ")}}function Xt(c,i){if(c&1&&o(0),c&2){let a=h(3);_(" Connect with ",a.organization.name,"? ")}}
13function Zt(c,i){if(c&1&&o(0),c&2){let a=h(3);_(" Follow up with ",a.organization.name,"? ")}}function Yt(c,i){if(c&1&&v(0,Xt,1,1)(1,Zt,1,1),c&2){let a=h(2);x2(0,(a.connection==null||a.connection.timeline==null||a.connection.timeline.initiated==null?null:a.connection.timeline.initiated.by)===(a.organization.identifiers==null?null:a.organization.identifiers.uuid)?0:1)}}function Jt(c,i){if(c&1&&o(0),c&2){let a=h(3);_(" Connect with ",a.organization.name,"? ")}}function cn(c,i){if(c&1&&o(0),c&2){let a=h(3);_(" Follow up with ",a.organization.name,"? ")}}function en(c,i){if(c&1&&v(0,Jt,1,1)(1,cn,1,1),c&2){let a=h(2);x2(0,(a.connection==null||a.connection.timeline==null||a.connection.timeline.initiated==null?null:a.connection.timeline.initiated.by)===(a.organization.identifiers==null?null:a.organization.identifiers.uuid)?0:1)}}function an(c,i){if(c&1&&o(0),c&2){let a=h(2);_(" Follow up with ",a.organization.name,"? ")}}function tn(c,i){if(c&1&&o(0),c&2){let a=h(2);_(" Connect with ",a.organization.name,"? ")}}function nn(c,i){if(c&1&&u(0,"app-inline-alert",13),c&2){let a=h(2);p("alert",a.alert)}}function rn(c,i){if(c&1&&(r(0,"option",17),o(1),s()),c&2){let a=i.$implicit;p("ngValue",a),m(),W(a.name)}}function sn(c,i){if(c&1&&(r(0,"clr-select-container",14)(1,"label"),o(2,"Select your organization to connect from"),s(),r(3,"select",15),v(4,rn,2,2,"option",16),S(5,"async"),s()()),c&2){let a=h(2);m(4),p("ngForOf",N(5,1,a.myOrganizations$))}}function on(c,i){if(c&1&&(r(0,"p"),o(1),s()),c&2){let a=h(2);m(),_(" The connection with ",a.organization.name," has been terminated. ")}}function ln(c,i){if(c&1&&(r(0,"p"),o(1," Congragulations! You connected with "),r(2,"strong"),o(3),s(),o(4),S(5,"date"),s()),c&2){let a=h(2);m(3),W(a.organization.name),m(),_(" on ",N(5,2,a.connection==null||a.connection.audit==null?null:a.connection.audit.created_at),". ")}}function fn(c,i){if(c&1&&(r(0,"p"),o(1),S(2,"date"),s()),c&2){let a=h(2);m(),_(" You sent a connection request on ",N(2,1,a.connection==null||a.connection.audit==null?null:a.connection.audit.created_at),". Would you like to send a follow up message? ")}}function mn(c,i){if(c&1&&(r(0,"blockquote"),o(1),s()),c&2){let a=i.ngIf;
13m(),_(" ",a," ")}}function pn(c,i){if(c&1&&(F(0),r(1,"p")(2,"strong"),o(3),s(),o(4," has requested to connect with you. What would you like to do? "),s(),v(5,mn,2,1,"blockquote",18),D()),c&2){let a=h(2);m(3),W(a.organization.name),m(2),p("ngIf",a.connection==null?null:a.connection.message)}}function dn(c,i){if(c&1&&(r(0,"clr-control-helper",23),o(1),s()),c&2){let a=h(3);m(),_("",a.form.controls.message.value==null?null:a.form.controls.message.value.length,"/200")}}function hn(c,i){if(c&1&&(r(0,"clr-control-error"),o(1),s()),c&2){let a=h(3);m(),_("Message must be shorter than ",a.form.controls.message.errors==null||a.form.controls.message.errors.maxlength==null?null:a.form.controls.message.errors.maxlength.requiredLength," characters.")}}function un(c,i){if(c&1&&(r(0,"clr-textarea-container",19),u(1,"textarea",20),v(2,dn,2,1,"clr-control-helper",21)(3,hn,2,1,"clr-control-error",22),s()),c&2){let a,e=h(2);m(),p("placeholder",(a=e.connection==null?null:e.connection.message)!==null&&a!==void 0?a:"You can customize your request with a message here."),m(),p("ngIf",e.form.controls.message.value==null?null:e.form.controls.message.value.length),m(),p("clrIfError","maxlength")}}function zn(c,i){if(c&1&&(r(0,"clr-control-container",24)(1,"label"),o(2,"Tags"),s(),u(3,"ng-select",25),r(4,"clr-control-helper"),o(5),s()()),c&2){let a,e=h(2);m(3),p("addTag",!0)("hideSelected",!0)("multiple",!0)("items",(a=e.allTags)!==null&&a!==void 0?a:P1(5,$t)),m(2),_("",e.organization.name," will not see this")}}function vn(c,i){if(c&1&&(r(0,"clr-alert",11)(1,"clr-alert-item"),o(2),S(3,"date"),S(4,"date"),s()()),c&2){let a=h(2);p("clrAlertClosable",!1),m(2),Q4(" ",a.organization.name," previously sent you a connection request on ",N(3,4,a.connection.timeline.initiated.at),". The request timed out and was automatically ignored on ",N(4,6,a.connection.timeline.auto_ignored.at),". ")}}function gn(c,i){if(c&1&&u(0,"app-connection-limits",27),c&2){let a=h(3);p("organization",a.form.value.from)}}function Hn(c,i){if(c&1){let a=b();F(0),r(1,"button",31),S(2,"async"),C("click",function(){M(a);let t=h(4);return V(t.connect())}),o(3," Send "),s(),D()}if(c&2){let a,e=h(4);m(),p("disabled",e.form.invalid||!((a=N(2,2,e.limitsComponent==null?null:e.limitsComponent.hasMore$))!==null&&a!==void 0&&a))("clrLoading",e.loaders.send)}}function Cn(c,i){if(c&1){let a=b();F(0),r(1,"button",31),S(2,"async"),C("click",function(){M(a);let t=h(4);return V(t.connect())}),o(3," Send "),s(),D()}if(c&2){let a,e=h(4);m(),p("disabled",e.form.invalid||!((a=N(2,2,e.limitsComponent==null?null:e.limitsComponent.hasMore$))!==null&&a!==void 0&&a))("clrLoading",e.loaders.send)}}function Mn(c,i){if(c&1){let a=b();F(0),r(1,"button",32),C("click",function(){M(a);let t=h(4);return V(t.confirm("Are you sure you want to revoke this connection request?",t.disconnect))}),o(2," Revoke "),s(),r(3,"button",31),S(4,"async"),C("click",function(){M(a);let t=h(4);return V(t.update())}),o(5," Send "),s(),D()}if(c&2){let a,e=h(4);m(3),p("disabled",e.form.invalid||((a=N(4,2,e.limitsComponent==null?null:e.limitsComponent.hasMore$))!==null&&a!==void 0?a:!1))("clrLoading",e.loaders.send)}}function Vn(c,i){if(c&1){let a=b();r(0,"div")(1,"button",32),C("click",function(){M(a);let t=h(5);return V(t.confirm("Are you sure you want to deny this connection request?",t.ignore))}),o(2," Deny "),s(),r(3,"button",33),C("click",function(){M(a);let t=h(5);return V(t.accept())}),o(4," Accept "),s()()}if(c&2){let a=h(5);m(3),p("clrLoading",a.loaders.send)}}function xn(c,i){if(c&1){let a=b();r(0,"div")(1,"button",32),C("click",function(){M(a);let t=h(5);return V(t.confirm("Are you sure you want to revoke this connection request?",t.disconnect))}),o(2," Revoke "),s(),r(3,"button",31),C("click",function(){M(a);let t=h(5);return V(t.update())}),o(4," Send "),s()()}if(c&2){let a=h(5);m(3),p("disabled",a.form.invalid)("clrLoading",a.loaders.send)}}function Ln(c,i){if(c&1&&(F(0),v(1,Vn,5,1,"div",18)(2,xn,5,2,"div",18),D()),c&2){let a=h(4);m(),p("ngIf",a.isIncoming),m(),p("ngIf",!a.isIncoming)}}function bn(c,i){if(c&1){let a=b();F(0),r(1,"button",32),C("click",function(){M(a);let t=h(4);return V(t.confirm("Are you sure you want to deny this connection request?",t.ignore))}),o(2," Deny "),s(),r(3,"button",33),C("click",function(){M(a);let t=h(4);return V(t.accept())}),o(4," Accept "),s(),D()}if(c&2){let a=h(4);m(3),p("clrLoading",a.loaders.send)}}function yn(c,i){if(c&1){let a=b();F(0),r(1,"button",32),C("click",function(){M(a);let t=h(4);return V(t.confirm("Are you sure you want to disconnect?",t.disconnect))}),o(2," Disconnect "),s(),r(3,"button",34),C("click",function(){M(a);let t=h(4);
13return V(t.update())}),o(4," Save "),s(),D()}if(c&2){let a=h(4);m(3),p("disabled",a.form.invalid||a.form.pristine)}}function Sn(c,i){if(c&1){let a=b();F(0),r(1,"button",30),C("click",function(){M(a);let t=h(3);return V(t.openChange.emit(!1))}),o(2,"Cancel"),s(),F(3,7),v(4,Hn,4,4,"ng-container",8)(5,Cn,4,4,"ng-container",8)(6,Mn,6,4,"ng-container",8)(7,Ln,3,2,"ng-container",8)(8,bn,5,1,"ng-container",8)(9,yn,5,1,"ng-container",8),D()()}if(c&2){let a=h(3);m(3),p("ngSwitch",a.status),m(),p("ngSwitchCase",null),m(),p("ngSwitchCase","auto-ignored"),m(),p("ngSwitchCase","pending"),m(),p("ngSwitchCase","ignored"),m(),p("ngSwitchCase","waiting"),m(),p("ngSwitchCase","accepted")}}function wn(c,i){if(c&1){let a=b();r(0,"clr-alert",35),o(1),s(),r(2,"button",30),C("click",function(){M(a);let t=h(3);return V(t.confirmConfig=void 0)}),o(3,"No"),s(),r(4,"button",32),C("click",function(){M(a);let t=h(3);return t.confirmConfig==null||t.confirmConfig.cb(),V(t.confirmConfig=void 0)}),o(5,"Yes"),s()}if(c&2){let a=h(3);p("clrAlertClosable",!1),m(),W(a.confirmConfig==null?null:a.confirmConfig.message)}}function _n(c,i){if(c&1&&(r(0,"div",26),v(1,gn,1,1,"app-connection-limits",27),u(2,"div",28),v(3,Sn,10,7,"ng-container",29)(4,wn,6,2,"ng-template",null,0,h1),s()),c&2){let a=G2(5),e=h(2);m(),x2(1,e.form.value.from?1:-1),m(2),p("ngIf",!e.confirmConfig)("ngIfElse",a)}}function Nn(c,i){if(c&1){let a=b();r(0,"clr-modal",2),C("clrModalOpenChange",function(t){M(a);let n=h();return V(n.openChange.emit(t))}),r(1,"h3",3),v(2,Kt,1,1)(3,Qt,1,1)(4,Yt,2,1)(5,en,2,1)(6,an,1,1)(7,tn,1,1),s(),r(8,"div",4),v(9,nn,1,1,"app-inline-alert",5)(10,sn,6,3,"clr-select-container",6),S(11,"async"),F(12,7),v(13,on,2,1,"p",8)(14,ln,6,4,"p",8)(15,fn,3,3,"p",8)(16,pn,6,2,"ng-container",8),D(),v(17,un,4,3,"clr-textarea-container",9)(18,zn,6,6,"clr-control-container",10)(19,vn,5,8,"clr-alert",11),s(),v(20,_n,6,3,"div",12),s()}if(c&2){let a,e,t=h();p("clrModalOpen",t.open)("clrModalStaticBackdrop",!1),m(2),x2(2,(a=t.status)==="disconnected"?2:a==="accepted"?3:a==="ignored"?4:a==="auto-ignored"?5:a==="pending"?6:7),m(6),p("formGroup",t.form),m(),p("ngIf",t.alert),m(),p("ngIf",((e=(e=N(11,15,t.myOrganizations$))==null?null:e.length)!==null&&e!==void 0?e:0)>1),m(2),p("ngSwitch",t.status),m(),p("ngSwitchCase","disconnected"),m(),p("ngSwitchCase","accepted"),m(),p("ngSwitchCase","pending"),m(),p("ngSwitchCase","waiting"),m(),p("ngIf",t.status===null||t.status==="pending"||t.status==="ignored"||t.status==="auto-ignored"),m(),p("ngIf",t.status!=="disconnected"),m(),x2(19,t.connection&&t.status==="auto-ignored"&&t.connection.organizations.a.identifiers.uuid===(t.organization.identifiers==null?null:t.organization.identifiers.uuid)?19:-1),m(),p("ngIf",t.status!=="disconnected")}}var Ae=(()=>{let i=class i{set from(e){this.form.controls.from.setValue(e??null)}constructor(e,t){this.service=e,this.orgService=t,this.open=!1,this.openChange=new J,this.action=new J,this.form=new u4({from:new o2(null,v2.required),tags:new o2([],{nonNullable:!0}),message:new o2(null,[v2.maxLength(200),this.conditionalRequired.bind(this)])}),this.isIncoming=!1,this.loaders={send:u1.DEFAULT},this.unsubscribe$=new B}ngOnInit(){this.myOrganizations$=this.orgService.getUserOrgs().pipe(w(e=>e.filter(t=>t.identifiers.uuid!==this.organization.identifiers?.uuid)),w2(e=>{if(e.length>0&&!this.form.controls.from.value){let t=e.find(n=>this.connections.get(n.identifiers.uuid)?.status===L2.ACCEPTED)??e.find(n=>this.connections.get(n.identifiers.uuid)?.status===L2.PENDING);this.form.controls.from.setValue(t??e[0])}for(let t of e)t.identifiers.uuid==this.connection?.organizations.b.identifiers.uuid&&(this.isIncoming=!0)}),j2(1)),this.form.controls.from.valueChanges.pipe(P(this.unsubscribe$)).subscribe(()=>{this.form.controls.message.updateValueAndValidity({emitEvent:!1}),this.confirmConfig=void 0,this.form.controls.from.value&&(this.loadTags(this.form.controls.from.value.identifiers.uuid),this.form.controls.tags.setValue(this.connection?.tags??[],{emitEvent:!1}))})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}get connection(){return this.connections?.get(this.form.controls.from.value?.identifiers.uuid)}get status(){return this.connection?.status===L2.DISCONNECTED?L2.DISCONNECTED:this.connection?.status===L2.AUTO_IGNORED?L2.AUTO_IGNORED:this.connection?.status===L2.IGNORED?L2.IGNORED:this.connection?.status===L2.ACCEPTED?L2.ACCEPTED:this.connection?.status===L2.PENDING&&this.connection.timeline.initiated.by!==this.form.controls.from.value?.identifiers.uuid?"waiting":this.connection?.status===L2.PENDING?L2.PENDING:null}connect(){let e=this.form.value;e.from&&(this.alert=void 0,this.loaders.send=u1.LOADING,this.service.connect(e.from.identifiers.uuid,this.organization.identifiers?.uuid,{message:e.message,tags:e.tags}).subscribe({next:()=>{this.loaders.send=u1.DEFAULT,this.form.reset({from:e.from}),this.action.emit(),this.openChange.emit(!1)},error:this.handleError.bind(this)}))}update(){let e=this.form.value;e.from&&(this.alert=void 0,this.loaders.send=u1.LOADING,this.service.update(e.from.identifiers.uuid,this.organization.identifiers?.uuid,{message:e.message,tags:e.tags}).subscribe({next:()=>{this.loaders.send=u1.DEFAULT,this.form.reset({from:e.from}),this.action.emit(),this.openChange.emit(!1)},error:this.handleError.bind(this)}))}disconnect(){let e=this.form.value;e.from&&(this.alert=void 0,this.loaders.send=u1.LOADING,this.service.disconnect(e.from.identifiers.uuid,this.organization.identifiers?.uuid,{tags:e.tags}).subscribe({next:()=>{this.loaders.send=u1.DEFAULT,this.form.reset({from:e.from}),this.action.emit(),this.openChange.emit(!1)},error:this.handleError.bind(this)}))}accept(){let e=this.form.value;e.from&&(this.alert=void 0,this.loaders.send=u1.LOADING,this.service.accept(e.from.identifiers.uuid,this.organization.identifiers?.uuid,{tags:e.tags}).subscribe({next:()=>{this.loaders.send=u1.DEFAULT,this.form.reset({from:e.from}),this.action.emit(),this.openChange.emit(!1)},error:this.handleError.bind(this)}))}ignore(){let e=this.form.value;e.from&&(this.alert=void 0,this.loaders.send=u1.LOADING,this.service.ignore(e.from.identifiers.uuid,this.organization.identifiers?.uuid,{tags:e.tags}).subscribe({next:()=>{this.loaders.send=u1.DEFAULT,this.form.reset({from:e.from}),this.action.emit(),this.openChange.emit(!1)},error:this.handleError.bind(this)}))}confirm(e,t){this.confirmConfig={message:e,cb:t.bind(this)}}handleError(e){let t="If you keep getting this error, please contact support.";this.alert={type:C4.DANGER,text:`An unexpected error occurred: <strong>${e.error.message}</strong> ${t}`,actions:[{label:"Contact support",link:_7(e)}]},this.loaders.send=u1.ERROR}conditionalRequired(e){return[L2.PENDING,L2.IGNORED,L2.AUTO_IGNORED].includes(this.status)?v2.required(e):null}loadTags(e){this.service.getTags(e).subscribe(t=>{this.allTags=Object.keys(t).sort()})}};i.\u0275fac=function(t){return new(t||i)(z(r0),z(B2))},i.\u0275cmp=A({type:i,selectors:[["app-organization-connection-dialog"]],viewQuery:function(t,n){if(t&1&&Z2(i8,5),t&2){let l;R2(l=U2())&&(n.limitsComponent=l.first)}},hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},inputs:{organization:"organization",from:"from",open:"open",connections:"connections"},outputs:{openChange:"openChange",action:"action"},standalone:!0,features:[K],decls:1,vars:1,consts:[["confirmDialog",""],[3,"clrModalOpen","clrModalStaticBackdrop","clrModalOpenChange",4,"ngIf"],[3,"clrModalOpenChange","clrModalOpen","clrModalStaticBackdrop"],[1,"modal-title"],[1,"modal-body",3,"formGroup"],[3,"alert",4,"ngIf"],["class","full-width no-margin",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","full-width",4,"ngIf"],["class","flex-height full-width",4,"ngIf"],["clrAlertType","info",3,"clrAlertClosable"],["class","modal-footer",4,"ngIf"],[3,"alert"],[1,"full-width","no-margin"],["clrSelect","","formControlName","from"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[4,"ngIf"],[1,"full-width"],["clrTextarea","","formControlName","message",3,"placeholder"],["class","counter",4,"ngIf"],[4,"clrIfError"],[1,"counter"],[1,"flex-height","full-width"],["clrControl","","formControlName","tags","appendTo","body","placeholder","Type to add new tag",3,"addTag","hideSelected","multiple","
13items"],[1,"modal-footer"],[3,"organization"],[1,"flex"],[4,"ngIf","ngIfElse"],["type","button",1,"btn","btn-outline",3,"click"],["type","button",1,"btn","btn-primary",3,"click","disabled","clrLoading"],["type","button",1,"btn","btn-danger",3,"click"],["type","button",1,"btn","btn-primary",3,"click","clrLoading"],["type","button",1,"btn","btn-primary",3,"click","disabled"],["clrAlertType","warning",1,"no-margin",3,"clrAlertClosable"]],template:function(t,n){t&1&&v(0,Nn,21,17,"clr-modal",1),t&2&&p("ngIf",n.open)},dependencies:[p2,h3,u3,f1,b1,V5,N5,W2,g4,e3,H4,G6,q6,Z1,X1,l3,o3,G,m2,Z,k6,A6,k2,j1,i8,n0,V3,M3,I2,M1,V1,C1,K1,D2,l1,W1,$1],styles:[".modal-body[_ngcontent-%COMP%]{padding-bottom:2px}.modal-footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.modal-footer[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]{flex:1 1 auto}.counter[_ngcontent-%COMP%]{text-align:right}"]});let c=i;return c})();var Pe="https://js.stripe.com/v3",kn=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,Ee="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",An=function(){for(var i=document.querySelectorAll('script[src^="'.concat(Pe,'"]')),a=0;a<i.length;a++){var e=i[a];if(kn.test(e.src))return e}return null},Te=function(i){var a=i&&!i.advancedFraudSignals?"?advancedFraudSignals=false":"",e=document.createElement("script");e.src="".concat(Pe).concat(a);var t=document.head||document.body;if(!t)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return t.appendChild(e),e},En=function(i,a){!i||!i._registerWrapper||i._registerWrapper({name:"stripe-js",version:"3.3.0",startTime:a})},h6=null,I0=null,B0=null,Tn=function(i){return function(){i(new Error("Failed to load Stripe.js"))}},Pn=function(i,a){return function(){window.Stripe?i(window.Stripe):a(new Error("Stripe.js not available"))}},Fn=function(i){return h6!==null?h6:(h6=new Promise(function(a,e){if(typeof window>"u"||typeof document>"u"){a(null);return}if(window.Stripe&&i&&console.warn(Ee),window.Stripe){a(window.Stripe);return}try{var t=An();if(t&&i)console.warn(Ee);else if(!t)t=Te(i);else if(t&&B0!==null&&I0!==null){var n;t.removeEventListener("load",B0),t.removeEventListener("error",I0),(n=t.parentNode)===null||n===void 0||n.removeChild(t),t=Te(i)}B0=Pn(a,e),I0=Tn(e),t.addEventListener("load",B0),t.addEventListener("error",I0)}catch(l){e(l);return}}),h6.catch(function(a){return h6=null,Promise.reject(a)}))},Dn=function(i,a,e){if(i===null)return null;var t=i.apply(void 0,a);return En(t,e),t},u6,Fe=!1,De=function(){return u6||(u6=Fn(null).catch(function(i){return u6=null,Promise.reject(i)}),u6)};Promise.resolve().then(function(){return De()}).catch(function(c){Fe||console.warn(c)});var Ie=function(){for(var i=arguments.length,a=new Array(i),e=0;e<i;e++)a[e]=arguments[e];Fe=!0;var t=Date.now();return De().then(function(n){return Dn(n,a,t)})};var ku={[D1.ACTIVE]:{label:"Active",class:"label-success"},[D1.CANCELED]:{label:"Canceled",class:"label-warning"},[D1.INCOMPLETE_EXPIRED]:{label:"Incomplete expired",class:"label-warning"},[D1.INCOMPLETE]:{label:"Incomplete",class:"label-warning"},[D1.PAST_DUE]:{label:"Past due",class:"label-danger"},[D1.TRIALING]:{label:"Trialing",class:"label-info"},[D1.UNPAID]:{label:"Unpaid",class:"label-danger"}},Au={[I4.DRAFT]:{label:"Draft",class:"label-info"},[I4.OPEN]:{label:"Open",class:"label-info"},[I4.PAID]:{label:"Paid",class:"label-success"},[I4.UNCOLLECTIBLE]:{label:"Uncollectible",class:"label-danger"},[I4.VOID]:{label:"Void",class:"label-warning"}},c4=function(c){return c.NOT_USING="not_using",c.NO_VALUE="no_value",c.EXPENSIVE="expensive",c.PAYMENT_METHOD="payment_method",c.AFFORDABILITY="affordability",c.CONFUSING="confusing",c.COMPETITOR="competitor",c.CUSTOMER_SUPPORT="customer_support",c.OTHER="other",c}(c4||{}),Eu={[c4.NOT_USING]:"We are not using CONNEX Marketplace",[c4.NO_VALUE]:"We are not receiving value from CONNEX Marketplace",[c4.EXPENSIVE]:"Service for CONNEX Marketplace is too expensive",[c4.PAYMENT_METHOD]:"We can no longer pay through credit card",[c4.AFFORDABILITY]:"We can no longer afford the subscription cost (cut backs)",[c4.CONFUSING]:"We don't understand how to use CONNEX Marketplace",[c4.COMPETITOR]:"We are leaving CONNEX Marketplace to use a similar platform",[c4.CUSTOMER_SUPPORT]:"We've had a poor customer support experience",[c4.OTHER]:"Other"},Be={fonts:[{cssSrc:"/assets/fonts/gotham-narrow/stylesheet-inline.css"}],loader:"never",appearance:{theme:"stripe",variables:{fontSizeBase:"13px",fontFamily:'"Gotham Narrow","Helvetica Neue",Arial,sans-serif',colorText:"black",colorDanger:"rgb(194, 29, 0)"},rules:{".Label":{fontWeight:"bold",color:"rgb(69, 69, 69)",marginTop:"24px"},".Input":{boxShadow:"none",borderRadius:"0",borderWidth:"0",borderBottom:"1px solid rgb(179, 179, 179)",padding:"0 6px",lineHeight:"24px"},".Input:focus":{borderBottomColor:"#0072a3",borderBottomWidth:"2px",outline:"0",boxShadow:"none"},".Input--invalid":{boxShadow:"none",borderBottomColor:"rgb(194, 29, 0)",borderBottomWidth:"2px"},".Error":{fontSize:"11px"}}}};var U4={checkForDuplicates:r2.joinWithSlash(q.api.url,"registration/check-for-duplicate-organizations"),generateSetupIntent:r2.joinWithSlash(q.api.url,"registration/generate-setup-intent"),submitRequest:r2.joinWithSlash(q.api.url,"registration/submit-request"),verifyPromoCode:r2.joinWithSlash(q.api.url,"registration/promotion/{code}"),productLine:r2.joinWithSlash(q.api.url,"registration/product-line/{line}"),lookups:r2.joinWithSlash(q.api.url,"registration/lookups/{type}"),sponsors:r2.joinWithSlash(q.api.url,"registration/sponsors")},Oe=(()=>{let i=class i{constructor(e){this.http=e}checkForDuplicates(e,t){return e?this.http.post(U4.checkForDuplicates,{name:e,address:t}).pipe(w(n=>n.hits.hits)):Y([])}loadLookupsForOrgType(e){return this.http.get(U4.lookups.replace("{type}",e)).pipe(w(t=>t.data))}getProductLine(e){return this.http.get(U4.productLine.replace("{line}",e))}getSponsors(e){let t=H3({address:v7(e.address,n=>!!n)});return this.http.post(U4.sponsors,t)}generateSetupIntent(){return this.http.post(U4.generateSetupIntent,null)}getPromoInfo(e){return e?this.http.get(U4.verifyPromoCode.replace("{code}",e)):Y(null)}submitRequest(e){return this.http.post(U4.submitRequest,e)}};i.\u0275fac=function(t){return new(t||i)(k(o1))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var Bn=["stripePaymentElement"];function On(c,i){c&1&&o(0,"Upgrade for national access")}function Rn(c,i){c&1&&o(0,"Choose a plan")}function Un(c,i){if(c&1&&(r(0,"option",21),o(1),s()),c&2){let a=i.$implicit;p("ngValue",a),m(),_(" ",a.name," ")}}function Gn(c,i){if(c&1&&(r(0,"clr-select-container",18)(1,"label"),o(2,"Choose an organization"),s(),r(3,"select",19),v(4,Un,2,2,"option",20),s()()),c&2){let a=h();m(4),p("ngForOf",a.unregisteredOrganizations)}}function qn(c,i){if(c&1&&(r(0,"div",22),o(1),u(2,"br"),o(3," Organizations that are Research-only have no subscriptions to maintain. "),s()),c&2){let a,e=h();m(),_(" ",(a=e.form.get("plan.organization"))==null||a.value==null?null:a.value.name," is a Research Organization.")}}function jn(c,i){if(c&1&&(r(0,"clr-control-error"),o(1),s()),c&2){let a,e=h(2);m(),W((a=(a=e.form.get("plan.promoCode"))==null||a.errors==null?null:a.errors.promo)!==null&&a!==void 0?a:"Promotion is invali
13d")}}function Wn(c,i){if(c&1&&(r(0,"clr-control-success"),o(1),s()),c&2){let a=h(2);m(),W(a.promoSuccess)}}function $n(c,i){if(c&1&&(r(0,"clr-input-container",18)(1,"label"),o(2,"Promotion code"),s(),u(3,"input",23),v(4,jn,2,1,"clr-control-error",24)(5,Wn,2,1,"clr-control-success",25),s()),c&2){let a,e=h();m(4),p("clrIfError","promo"),m(),p("ngIf",(a=e.form.get("plan.promoCode"))==null?null:a.value)}}function Kn(c,i){c&1&&(r(0,"div",26),u(1,"clr-spinner",27),o(2," Checking for promotion code... "),s()),c&2&&(m(),p("clrInline",!0))}function Qn(c,i){if(c&1&&(r(0,"label",36),u(1,"input",37),r(2,"div",38)(3,"div",29)(4,"div")(5,"div",31),o(6),S(7,"currency"),s()()()()()),c&2){let a=h().$implicit;m(),p("value",a),m(5),Q4(" ",N(7,4,a.unit_amount/100)," / ",a.recurring.interval_count===1?"":a.recurring.interval_count," ",a.recurring.interval," ")}}function Xn(c,i){if(c&1&&(F(0),v(1,Qn,8,6,"label",35),D()),c&2){let a=i.$implicit,e=h(2);m(),p("ngIf",e.checkPrice(a))}}function Zn(c,i){if(c&1&&(r(0,"div",28)(1,"div",29)(2,"div")(3,"div",30),o(4),s(),r(5,"div",31)(6,"ul")(7,"li"),o(8,"One connection point for all U.S. Manufacturers"),s(),r(9,"li"),o(10,"A single searchable database tagged with hundreds of unique, searchable taxonomies"),s(),r(11,"li"),o(12,"Find manufacturers and material suppliers across the U.S., and be found by them"),s(),r(13,"li"),o(14,"Post and respond to RFPs, RFQs, RFIs, surplus listings and other needs across the country"),s(),r(15,"li")(16,"a",32),o(17,"Read more"),s()()(),r(18,"div",33),v(19,Xn,2,1,"ng-container",34),s()()()()()),c&2){let a=i.$implicit;m(4),_(" ",a.name," "),m(15),p("ngForOf",a.prices)}}function Yn(c,i){c&1&&(r(0,"clr-wizard-button",4),o(1,"Next"),s())}function Jn(c,i){c&1&&(r(0,"clr-wizard-button",42),o(1,"Close"),s())}function cr(c,i){c&1&&u(0,"clr-spinner",45)}function er(c,i){c&1&&(r(0,"span"),o(1,"Register"),s())}function ar(c,i){if(c&1&&(r(0,"clr-wizard-button",43),v(1,cr,1,0,"clr-spinner",44)(2,er,2,0,"span",25),s()),c&2){let a,e=h(2);p("clrWizardButtonDisabled",(a=!!e.loaders.register||((a=e.form.get("plan"))==null?null:a.invalid)||((a=e.form.get("plan"))==null?null:a.pending))!==null&&a!==void 0?a:!0),m(),p("ngIf",e.loaders.register),m(),p("ngIf",!e.loaders.register)}}function ir(c,i){if(c&1&&(r(0,"clr-wizard-button",3),o(1,"Back"),s(),v(2,Yn,2,0,"clr-wizard-button",39)(3,Jn,2,0,"clr-wizard-button",40)(4,ar,3,3,"clr-wizard-button",41)),c&2){let a=h();m(2),p("ngIf",a.checkStep("payment")),m(),p("ngIf",a.isResearcher),m(),p("ngIf",!a.checkStep("payment"))}}function tr(c,i){c&1&&o(0,"Enter payment information")}function nr(c,i){c&1&&o(0,"Payment details")}function rr(c,i){c&1&&(r(0,"div",49),u(1,"div",50),r(2,"div",51),u(3,"div",52)(4,"div",52),s(),r(5,"div",51),u(6,"div",52)(7,"div",52),s()())}function sr(c,i){if(c&1&&(r(0,"div",53),o(1),S(2,"date"),r(3,"clr-checkbox-container")(4,"clr-checkbox-wrapper"),u(5,"input",54),r(6,"label"),o(7,"I agree to these terms"),s()()()()),c&2){let a=h(2);m(),Q4(" You have entered a promotion code to receive free access to CONNEX Marketplace for ",a.endFreeDate===0?a.promotion==null||a.promotion.coupon==null?null:a.promotion.coupon.duration_in_months:a.endFreeDate," month(s) promotional period. Your promotion period will begin immediately upon submission and end on ",N(2,3,a.promotionEndDate),". After that, your credit card on file will be charged the subscription price. An automatic payment reminder will be sent to you via email seven (7) days before your free promotional period ends with instructions should you wish to cancel your subscription prior to your card being charged. If you decide to continue your subscription, there is nothing you need to do. Your subscription will be renewed automatically thereafter on a ",(a.priceRef==null||a.priceRef.recurring==null?null:a.priceRef.recurring.interval)==="month"?"monthly":"annual"," basis. If you wish to cancel your subscription before your free promotional period ends, you may do so by logging in to your CONNEX Marketplace account and canceling your subscription. ")}}function or(c,i){c&1&&(r(0,"clr-wizard-button",3),o(1,"Back"),s(),r(2,"clr-wizard-button",4),o(3,"Review subscription"),s())}
13function lr(c,i){if(c&1){let a=b();r(0,"clr-wizard-page",46),C("clrWizardPageOnLoad",function(){M(a);let t=h();return V(t.createSetupIntent())}),v(1,tr,1,0,"ng-template",7)(2,nr,1,0,"ng-template",8),u(3,"div",null,0),v(5,rr,8,0,"div",47)(6,sr,8,5,"div",48)(7,or,4,0,"ng-template",13),s()}if(c&2){let a,e=h();p("clrWizardPageNextDisabled",(a=((a=e.form.get("payment"))==null?null:a.invalid)||((a=e.form.get("payment"))==null?null:a.pending))!==null&&a!==void 0?a:!0),m(5),p("ngIf",!e.paymentElementLoaded),m(),p("ngIf",e.tempFree)}}function fr(c,i){c&1&&o(0,"Confirm your subscription")}function mr(c,i){c&1&&o(0,"Confirmation")}function pr(c,i){if(c&1&&(r(0,"div",59)(1,"div",60),o(2),s(),r(3,"div",61),o(4),S(5,"currency"),s()()),c&2){let a=h(3);m(2),K4(" ",a.promotion.coupon.name," (",a.promotion.code,") "),m(2),W(N(5,3,-1*a.discountAmount/100))}}function dr(c,i){if(c&1&&(r(0,"div",64)(1,"div",60),o(2,"Total"),s(),r(3,"div",61),o(4),S(5,"currency"),s()()),c&2){let a=h(3);m(4),W(N(5,1,(a.price.unit_amount-a.discountAmount)/100))}}function hr(c,i){if(c&1&&(r(0,"div",58)(1,"div",59)(2,"div",60),o(3),s(),r(4,"div",61),o(5),S(6,"currency"),s()(),v(7,pr,6,5,"div",62)(8,dr,6,3,"div",63),s()),c&2){let a=h(2);m(3),Q4(" ",a.price.product.name," (",a.price.recurring.interval_count," ",a.price.recurring.interval,") "),m(2),W(N(6,6,a.price.unit_amount/100)),m(2),p("ngIf",a.promotion),m(),p("ngIf",a.promotion)}}function ur(c,i){c&1&&u(0,"clr-spinner",45)}function zr(c,i){c&1&&(r(0,"span"),o(1,"Activate subscription"),s())}function vr(c,i){if(c&1&&(r(0,"clr-wizard-button",3),o(1,"Back"),s(),r(2,"clr-wizard-button",43),v(3,ur,1,0,"clr-spinner",44)(4,zr,2,0,"span",25),s()),c&2){let a=h(2);m(2),p("clrWizardButtonDisabled",!!a.loaders.register),m(),p("ngIf",a.loaders.register),m(),p("ngIf",!a.loaders.register)}}function gr(c,i){if(c&1){let a=b();r(0,"clr-wizard-page",55),C("clrWizardPageCustomButton",function(){M(a);let t=h();return V(t.submitUpgrade())}),v(1,fr,1,0,"ng-template",7)(2,mr,1,0,"ng-template",8)(3,hr,9,8,"div",56)(4,vr,5,3,"ng-template",57),C("clrWizardPageCustomButton",function(){M(a);let t=h();return V(t.submitRegistration())}),s()}if(c&2){let a=h();m(3),p("ngIf",a.price)}}function Hr(c,i){}function Cr(c,i){c&1&&o(0,"You're in!")}function Mr(c,i){c&1&&(r(0,"clr-wizard-button",5),o(1,"Close"),s())}var Re=(()=>{let i=class i{constructor(e,t,n,l){this.user=e,this.organization=t,this.registration=n,this.subscription=l,this.open=!0,this.openChange=new J,this.saved=new J,this.hasSponsors=!0,this.paymentElementLoaded=!1,this.unregisteredOrganizations=[],this.form=new I6({plan:new I6({organization:new T4(null,[v2.required]),price:new T4(null,[v2.required]),promoCode:new T4(null,{asyncValidators:[this.validatePromoCode.bind(this)],updateOn:"change"}),promotion:new T4(null)}),payment:new I6({stripe:new T4(null),consent:new T4(null,this.requiredTrueWhenTrial.bind(this))})}),this.icons={success:V7},this.loaders={register:!1},this.promotionEndDate=null,this.disableNavigation=!1,this.isResearcher=!1,this.paymentIntentSecret$=new d1,this.stripeLoaded$=new d1,this.disableMonthly=!1,this.unsubscribe$=new B}ngOnInit(){this.form.get("plan.promoCode")?.markAsTouched(),S4(Ie(q.credentials?.stripe??"invalid-key")).pipe(Q(e=>e!==null)).subscribe(e=>{this.stripe=e,this.stripeLoaded$.next()}),this.user.getMe().pipe(O(e=>{let t=Object.keys(e?.subscriptions??{}).filter(l=>e?.subscriptions?.[l]?.length),n=Object.keys(e?.permissions??{}).filter(l=>l!=="global").filter(l=>!t.includes(l));return n.length?this.organization.listByIDs(n):[]})).subscribe(e=>{this.unregisteredOrganizations=e.data,e.total===1&&this.form.get("plan")?.patchValue({organization:e.data[0]})}),this.form.get("plan.organization")?.valueChanges.pipe(P(this.unsubscribe$)).subscribe(e=>{e.types?.length===1&&e.types[0]===M2.RESEARCHER?this.isResearcher=!0:this.isResearcher=!1;let t=this.unregisteredOrganizations.find(n=>n.identifiers.uuid===e.identifiers?.uuid)?.types;t?.length&&(this.productLine=t[0])}),this.form.get("plan.promotion")?.valueChanges.pipe(P(this.unsubscribe$)).subscribe(()=>{this.evaluatePossibleOptions()}),this.form.get("plan.price")?.valueChanges.pipe(P(this.unsubscribe$)).subscribe(e=>this.priceRef=e)}ngOnDestroy(){this.stripeLoaded$.complete(),this.paymentIntentSecret$.complete(),this.unsubscribe$.next(),this.unsubscribe$.complete()}createSetupIntent(){if(this.stripeElements)return;let e=this.form.get("plan.organization")?.value;this.stripeLoaded$.pipe(O(()=>this.subscription.createSetupIntentForOrganization(e.identifiers?.uuid))).subscribe(t=>{this.stripeElements=this.stripe.elements(y2($({},Be),{clientSecret:t.client_secret})),this.paymentElement=this.stripeElements.create("payment"),this.paymentElement.mount(this.paymentElementHost.nativeElement),this.initializePaymentElementEvents()})}get promotion(){return this.form?.get("plan.promotion")?.value}get tempFree(){return!!this.promotion?.coupon&&this.promotion?.coupon?.percent_off===100&&this.promotion?.coupon?.duration!=="forever"}get discountAmount(){let t=(this.promotion?.coupon.percent_off??0)/100*(this.price?.unit_amount??0);return this.promotion?.coupon.amount_off??t}get price(){return this.form?.get("plan.price")?.value}checkPrice(e){return!(this.disableMonthly&&e.recurring.interval==="month")}checkStep(e){let t=this.form.value,n=t.plan.promotion?.coupon?.percent_off===100&&t.plan.promotion?.coupon?.duration==="forever";switch(e){case"payment":case"confirmation":return!!(t.plan.price||t.plan.promotion)&&!n;default:return!0}}submitUpgrade(){let e=this.form.value,t=e.plan.promotion?.coupon?.percent_off===100&&e.plan.promotion?.coupon?.duration==="forever";this.loaders.register=!0,this.disableNavigation=!0,this.upgradeAlert=void 0,(t?Y({}):S4(this.stripe.confirmSetup({elements:this.stripeElements,redirect:"if_required",confirmParams:{return_url:"https://app.connexmarketplace.com/subscriptions"}}))).pipe(w2(l=>{if(l.error)throw this.upgradeAlert={uniqueId:"registration-error",type:C4.DANGER,items:[{text:l.error.message??"An error occurred while checking your payment source"}]},this.loaders.register=!1,new Error(l.error.message??"An error has occurred while checking your payment source")}),O(()=>this.subscription.submitUpgrade(this.formToRequest()))).subscribe(l=>{let f=this.form.get("plan.organization")?.value;this.confirmActiveSubscription(f.identifiers.uuid,l.id)})}getEndDate(){if(this.endFreeDate=0,this.promotion?.coupon.duration==="once"&&this.promotion.coupon.percent_off===100)return this.price?.recurring.interval==="year"?(this.endFreeDate=12,new Date(new Date().setFullYear(new Date().getFullYear()+1)).getTime()):(this.endFreeDate=1,new Date(new Date().setMonth(new Date().getMonth()+1)).getTime());let e=new Date(new Date().getFullYear(),new Date().getMonth(),new Date().getDate());return this.promotion?.coupon?new Date().setMonth(e.getMonth()+this.promotion.coupon.duration_in_months):null}formToRequest(){let e=this.form.value,t=this.form.get("plan.organization")?.value;return{price:e.plan.price.id,promoCode:e.plan.promotion?.id,organization:t.identifiers.uuid??""}}
13requiredTrueWhenTrial(e){return this.tempFree?v2.requiredTrue(e):null}initializePaymentElementEvents(){this.paymentElement.on("ready",()=>{this.paymentElementLoaded=!0}),this.paymentElement.on("change",e=>{!e.complete||e.empty?this.form.get("payment.stripe")?.setErrors({stripe:e}):this.form.get("payment.stripe")?.setErrors(null)})}set productLine(e){this.productLineStored=e,this.loadProducts()}loadProducts(){this.productLineStored&&this.registration.getProductLine(this.productLineStored).subscribe(e=>{e.forEach(t=>t.prices?.sort((n,l)=>n.unit_amount>l.unit_amount?-1:1)),this.products=e})}validatePromoCode(e){return e.value?this.registration.getPromoInfo(e.value).pipe(Q(t=>!!t),w(t=>{if(!t.active)throw new Error("Promotion is expired");return this.promoSuccess=t.coupon.name??"Promotion is valid",this.form.get("plan.promotion")?.setValue(t),this.promotionEndDate=this.getEndDate(),null}),a4(t=>Y({promo:t.status===404?"Promotion is invalid":t.message}))):(this.form?.get("plan.promotion")?.setValue(null),Y(null))}evaluatePossibleOptions(){let e=this.form.get("plan.promotion")?.value,t=this.products?.[0].prices?.find(n=>n.recurring.interval==="year");this.disableMonthly=!1,e?.coupon?.percent_off===100&&e?.coupon?.duration!=="repeating"&&(this.disableMonthly=!0,this.form.get("plan.price")?.patchValue(t)),this.form.get("plan.price")?.updateValueAndValidity()}confirmActiveSubscription(e,t){this.user.getMe(!0).pipe(w(n=>{let l=n?.subscriptions[e].find(f=>f.id==t);return!l||l.status!==D1.ACTIVE?K8(()=>"ERROR!"):Y(n)}),X8({count:3,delay:2e3})).subscribe({next:()=>{this.saved.emit(),this.wizard.next()},error:()=>console.error("unable to verify active sub after 3 attempts")})}};i.\u0275fac=function(t){return new(t||i)(z($2),z(B2),z(Oe),z(ic))},i.\u0275cmp=A({type:i,selectors:[["app-subscription-upgrade"]],viewQuery:function(t,n){if(t&1&&(Z2(c0,5),Z2(Bn,5)),t&2){let l;R2(l=U2())&&(n.wizard=l.first),R2(l=U2())&&(n.paymentElementHost=l.first)}},hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},inputs:{open:"open"},outputs:{openChange:"openChange",saved:"saved"},standalone:!0,features:[K],decls:29,vars:12,consts:[["stripePaymentElement",""],["clrWizardSize","lg",3,"clrWizardOpenChange","clrWizardOnCancel","clrWizardOnFinish","clrWizardOpen","clrWizardDisableStepnav","formGroup"],["src","../../../assets/images/logo-color-tagline.svg","alt","CONNEX Marketplace",1,"logo"],["type","previous"],["type","next"],["type","finish"],["formGroupName","plan",3,"clrWizardPageCustomButton","clrWizardPageNextDisabled"],["clrPageTitle",""],["clrPageNavTitle",""],["class","full-width",4,"ngIf"],["style","text-align: center; margin-top: 1rem;",4,"ngIf"],["style","margin-top: 10px; color: #666666",4,"ngIf"],["class","card",4,"ngFor","ngForOf"],["clrPageButtons",""],["formGroupName","payment",3,"clrWizardPageNextDisabled","clrWizardPageOnLoad",4,"ngIf"],[3,"clrWizardPageCustomButton",4,"ngIf"],[1,"success"],[3,"icon"],[1,"full-width"],["clrSelect","","formControlName","organization"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[2,"text-align","center","margin-top","1rem"],["clrInput","","formControlName","promoCode"],[4,"clrIfError"],[4,"ngIf"],[2,"margin-top","10px","color","#666666"],[3,"clrInline"],[1,"card"],[1,"card-block"],[1,"card-title"],[1,"card-text"],["href","https://connexmarketplace.com","target","_blank"],["fxLayout","row","fxLayoutAlign","start center","fxLayoutGap","1rem",1,"card-radio"],[4,"ngFor","ngForOf"],["fxFlex","",4,"ngIf"],["fxFlex",""],["type","radio","formControlName","price",3,"value"],[1,"card","clickable"],["type","next",4,"ngIf"],["type","cancel",4,"ngIf"],["type","custom-next",3,"clrWizardButtonDisabled",4,"ngIf"],["type","cancel"],["type","custom-next",3,"clrWizardButtonDisabled"],["clrInline","",4,"ngIf"],["clrInline",""],["formGroupName","payment",3,"clrWizardPageOnLoad","clrWizardPageNextDisabled"],["class","stripe-loading","fxLayout","column","fxLayoutGap","2em",4,"ngIf"],["class","fine-print",4,"ngIf"],["fxLayout","column","fxLayoutGap","2em",1,"stripe-loading"],[1,"loading"],["fxLayout","row","fxLayoutGap","1em"],["fxFlex","",1,"loading"],[1,"fine-print"],["type","checkbox","required","","clrCheckbox","","formControlName","consent"],[3,"clrWizardPageCustomButton"],["class","invoice",4,"ngIf"],["clrPageButtons","",3,"clrWizardPageCustomButton"],[1,"invoice"],[1,"line-item"],[1,"line-item-label"],[1,"line-item-amount"],["class","line-item",4,"ngIf"],["class","line-item line-item-total",4,"ngIf"],[1,"line-item","line-item-total"]],template:function(t,n){if(t&1&&(r(0,"clr-wizard",1),s1("clrWizardOpenChange",function(f){return r1(n.open,f)||(n.open=f),f}),C("clrWizardOnCancel",function(){return n.openChange.emit(!1)})("clrWizardOnFinish",function(){return n.openChange.emit(!1)}),r(1,"clr-wizard-title"),u(2,"img",2),s(),r(3,"clr-wizard-button",3),o(4,"Back"),s(),r(5,"clr-wizard-button",4),o(6,"Next"),s(),r(7,"clr-wizard-button",5),o(8,"Done"),s(),r(9,"clr-wizard-page",6),C("clrWizardPageCustomButton",function(){return n.submitUpgrade()}),v(10,On,1,0,"ng-template",7)(11,Rn,1,0,"ng-template",8)(12,Gn,5,1,"clr-select-container",9)(13,qn,4,1,"div",10)(14,$n,6,2,"clr-input-container",9)(15,Kn,3,1,"div",11)(16,Zn,20,2,"div",12)(17,ir,5,3,"ng-template",13),s(),v(18,lr,8,3,"clr-wizard-page",14)(19,gr,5,1,"clr-wizard-page",15),r(20,"clr-wizard-page",16),v(21,Hr,0,0,"ng-template",7)(22,Cr,1,0,"ng-template",8),r(23,"h1"),u(24,"fa-icon",17),o(25," Success! "),s(),r(26,"p"),o(27,"Congratulations! Your upgraded subscription is now active."),s(),v(28,Mr,2,0,"ng-template",13),s()()),t&2){let l;n1("clrWizardOpen",n.open),p("clrWizardDisableStepnav",n.disableNavigation)("formGroup",n.form),m(9),p("clrWizardPageNextDisabled",(l=((l=n.form.get("plan"))==null?null:l.invalid)||((l=n.form.get("plan"))==null?null:l.pending))!==null&&l!==void 0?l:!0),m(3),p("ngIf",n.unregisteredOrganizations.length>
131),m(),p("ngIf",n.isResearcher),m(),p("ngIf",!n.isResearcher),m(),p("ngIf",n.form.pending),m(),p("ngForOf",n.products),m(2),p("ngIf",n.checkStep("payment")),m(),p("ngIf",n.checkStep("confirmation")),m(5),p("icon",n.icons.success)}},dependencies:[p2,W2,g4,k5,H4,i3,t3,a3,s3,r3,Z1,X1,c0,h7,z7,u7,d7,p7,m7,j6,G,m2,Z,d5,j1,A2,g2,I2,M1,V1,C1,D6,K1,u5,D2,l1,v5,W1,$1,z5],styles:['.card-radio[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.card-radio[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:checked + .card[_ngcontent-%COMP%]{border-color:#5aa220;box-shadow:0 .15rem #5aa220}.card-radio[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]:disabled + .card[_ngcontent-%COMP%]{opacity:.5}.card-radio[_ngcontent-%COMP%]   .coming-soon[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{position:relative;opacity:.5}.card-radio[_ngcontent-%COMP%]   .coming-soon[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]:after{content:"Coming soon!";position:absolute;top:1em;right:-3px;background-color:orange;padding:.2em 1em .2em calc(1em + 8px);clip-path:polygon(0 0,100% 0,100% 100%,0 100%,8px 50%)}.fine-print[_ngcontent-%COMP%]{font-size:9.75px;line-height:14.1333px;color:#4d4d4d;border-top:1px solid rgb(179,179,179);margin-top:1em;padding-top:1em}.invoice[_ngcontent-%COMP%]{margin:1em 0}.invoice[_ngcontent-%COMP%]   .line-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.invoice[_ngcontent-%COMP%]   .line-item.line-item-total[_ngcontent-%COMP%]{font-weight:700}.success[_ngcontent-%COMP%], .success[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{text-align:center}.success[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{color:#3c8500}.success[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{color:var(--clr-p1-color);margin-top:1.2rem}']});let c=i;return c})();
13function Vr(c,i){if(c&1&&(r(0,"a",22),u(1,"fa-icon",10),s()),c&2){let a=h().ngIf,e=h();p("routerLink","/organization/"+(a.identifiers==null?null:a.identifiers.uuid)),m(),p("icon",e.icons.viewProfile)}}function xr(c,i){c&1&&(r(0,"clr-dropdown-menu",26)(1,"label",27),o(2,"Settings for this conversation"),s(),r(3,"clr-tooltip",28)(4,"div",29)(5,"clr-toggle-container",30)(6,"clr-toggle-wrapper"),u(7,"input",31),r(8,"label"),o(9,"Conversation enabled (coming soon)"),s()()()(),r(10,"clr-tooltip-content",32),o(11," Either you or the other organization can disable this conversation at any time. "),s()()())}function Lr(c,i){if(c&1&&(r(0,"clr-dropdown",23)(1,"button",24),u(2,"fa-icon",10),s(),v(3,xr,12,0,"clr-dropdown-menu",25),s()),c&2){let a=h(2);p("clrCloseMenuOnItemClick",!1),m(2),p("icon",a.icons.settings)}}function br(c,i){if(c&1){let a=b();r(0,"div",16)(1,"div",17),o(2),s(),u(3,"div",18),v(4,Vr,2,2,"a",19),r(5,"button",20),C("click",function(){M(a);let t=h();return V(t.requestConnection())}),u(6,"fa-icon",10),s(),v(7,Lr,4,2,"clr-dropdown",21),s()}if(c&2){let a=i.ngIf,e=h();m(2),W(a.name),m(2),p("ngIf",a.identifiers==null?null:a.identifiers.uuid),m(2),p("icon",e.icons.connection),m(),p("ngIf",e.status==="active"||e.status==="blocked")}}function yr(c,i){if(c&1){let a=b();r(0,"div",34),u(1,"fa-icon",35),r(2,"p"),o(3," You have an existing conversation in CONNEX Marketplace with this organization but can no longer see them because your subscription is no longer active. "),r(4,"a",36),C("click",function(){M(a);let t=h(2);return V(t.showSubscribeModal=!0)}),o(5,"Resubscribe"),s(),o(6," to restore your access to these messages. "),s()()}if(c&2){let a=h(2);m(),p("icon",a.icons.hidden)}}function Sr(c,i){if(c&1){let a=b();r(0,"div",34),u(1,"fa-icon",35),r(2,"p"),o(3," You can directly message companies and organizations through CONNEX Marketplace with a subscription. "),r(4,"a",36),C("click",function(){M(a);let t=h(2);return V(t.showSubscribeModal=!0)}),o(5,"Upgrade your access"),s(),o(6," to use this feature. "),s()()}if(c&2){let a=h(2);m(),p("icon",a.icons.hidden)}}function wr(c,i){if(c&1&&(F(0),v(1,yr,7,1,"div",33),S(2,"async"),v(3,Sr,7,1,"div",33),S(4,"async"),D()),c&2){let a,e,t=h();m(),p("ngIf",(a=N(2,2,t.from$))==null||a.identifiers==null?null:a.identifiers.stripe_customer),m(2),p("ngIf",!(!((e=N(4,4,t.from$))==null||e.identifiers==null)&&e.identifiers.stripe_customer))}}function _r(c,i){if(c&1){let a=b();F(0),r(1,"div",34),u(2,"fa-icon",35),r(3,"p"),o(4," This organization is only accepting messages from those who have made a connection with them. Would you like to "),r(5,"a",36),C("click",function(){M(a);let t=h();return V(t.requestConnection())}),o(6,"request a connection"),s(),o(7,"? "),s()(),D()}if(c&2){let a=h();m(2),p("icon",a.icons.new)}}function Nr(c,i){if(c&1&&(F(0),A4(1,37),D()),c&2){h();let a=G2(12);m(),p("ngTemplateOutlet",a)}}function kr(c,i){if(c&1&&(F(0),A4(1,37),D()),c&2){h();let a=G2(10);m(),p("ngTemplateOutlet",a)}}function Ar(c,i){if(c&1&&(F(0),r(1,"div",38),o(2," This converation has been terminated. "),s(),A4(3,37),D()),c&2){h();let a=G2(10);m(3),p("ngTemplateOutlet",a)}}function Er(c,i){if(c&1&&(F(0),u(1,"app-message",48),S(2,"async"),D()),c&2){let a,e=i.$implicit,t=h(4);m(),p("message",e)("me",(e.user.identifiers==null?null:e.user.identifiers.uuid)===(t.me==null||t.me.identifiers==null?null:t.me.identifiers.uuid))("myOrg",e.organization_uuid===((a=N(2,3,t.from$))==null||a.identifiers==null?null:a.identifiers.uuid))}}function Tr(c,i){if(c&1&&(r(0,"div",43)(1,"div",44),u(2,"div",45),r(3,"div",46),o(4),S(5,"date"),s(),u(6,"div",45),s(),v(7,Er,3,5,"ng-container",47),s()),c&2){let a=i.$implicit,e=h(3);m(4),_(" ",m4(5,2,a.key,e.dateSeparatorFormat(a.key))," "),m(3),p("ngForOf",a.value)}}function Pr(c,i){if(c&1&&(r(0,"div",40)(1,"div",41),v(2,Tr,8,5,"div",42),S(3,"async"),S(4,"keyvalue"),s()()),c&2){let a=h(2);m(2),p("ngForOf",N(4,3,N(3,1,a.messagesByDate$)))}}function Fr(c,i){if(c&1&&(v(0,Pr,5,5,"div",39),S(1,"async")),c&2){let a,e=h(),t=G2(12);p("ngIf",((a=N(1,2,e.messages$))==null?null:a.length)||e.loaders.messages)("ngIfElse",t)}}
13function Dr(c,i){if(c&1&&(r(0,"div",34),u(1,"fa-icon",35),r(2,"p"),o(3),s()()),c&2){let a=h();m(),p("icon",a.icons.new),m(2),_(" This is the beginning of your chat with ",a.conversation.organizations.bModel==null?null:a.conversation.organizations.bModel.name,". ")}}function Ir(c,i){c&1&&(r(0,"app-hotkey-display"),o(1,"Enter"),s())}function Br(c,i){c&1&&(r(0,"app-hotkey-display"),o(1,"Ctrl+Enter"),s())}function Or(c,i){c&1&&(r(0,"app-hotkey-display"),o(1,"Ctrl+Enter"),s())}function Rr(c,i){c&1&&(r(0,"app-hotkey-display"),o(1,"Enter"),s())}function Ur(c,i){if(c&1){let a=b();r(0,"clr-dropdown-menu",49)(1,"label",50),o(2,"Enter key preference"),s(),r(3,"div",51),C("click",function(){M(a);let t=h();return V(t.enterSendsMessage=!0)}),r(4,"app-hotkey-display"),o(5,"Enter"),s(),o(6," sends message"),s(),r(7,"div",51),C("click",function(){M(a);let t=h();return V(t.enterSendsMessage=!1)}),r(8,"app-hotkey-display"),o(9,"Ctrl+enter"),s(),o(10," sends message"),s()()}}function Gr(c,i){if(c&1){let a=b();r(0,"app-subscription-upgrade",52),s1("openChange",function(t){M(a);let n=h();return r1(n.showSubscribeModal,t)||(n.showSubscribeModal=t),V(t)}),s()}if(c&2){let a=h();n1("open",a.showSubscribeModal)}}function qr(c,i){if(c&1){let a=b();r(0,"app-organization-connection-dialog",53),S(1,"async"),S(2,"async"),s1("openChange",function(t){M(a);let n=h();return r1(n.showConnectionModal,t)||(n.showConnectionModal=t),V(t)}),s()}if(c&2){let a=h();n1("open",a.showConnectionModal),p("organization",N(1,3,a.otherOrg$))("from",N(2,5,a.from$))}}var B3=class B3{set disabled(i){this.disabledState=i,this.newMessageControl[i?"disable":"enable"]()}get disabled(){return this.disabledState}constructor(i,a,e){this.service=i,this.user=a,this.cd=e,this.enterSendsMessage=!1,this.disabledState=!0,this.from$=this.service.safeFrom$,this.newMessageControl=new o2({value:"",disabled:!0},{nonNullable:!0,validators:v2.required}),this.icons={enterSetting:e8,new:s0,hidden:X7,settings:e8,viewProfile:x7,connection:S7},this.inputHotkeys={ctrlEnter:{keys:"ctrl+enter"},enter:{keys:"enter"}},this.loaders={availability:!1,messages:!1},this.showSubscribeModal=!1,this.showConnectionModal=!1,this.me=null}ngOnInit(){this.user.getMe().subscribe(i=>this.me=i)}ngOnChanges(i){let a=this.service.isSameConversation(i.conversation?.previousValue,i.conversation?.currentValue),e=!i.conversation?.previousValue?.identifiers?.uuid;i.conversation&&(!a||a&&e)&&(this.loaders.messages=!0,this.status$().subscribe(),this.messages$=this.status$().pipe(O(()=>this.service.conversationStream$(this.conversation)),w2(()=>this.loaders.messages=!1),Q(t=>!!t&&!!t?.identifiers?.uuid),b6((t,n)=>{let l=n.identifiers?t.findIndex(f=>f.identifiers?.uuid===n.identifiers.uuid):-1;return l>0?t[l]=n:t.push(n),t},[]),w(t=>t.sort((n,l)=>new Date(n.audit.created_at)<new Date(l.audit.created_at)?-1:1)),j2(1)),this.messagesByDate$=this.messages$.pipe(w(t=>t.reduce((n,l)=>{let f=Intl.DateTimeFormat("en-ca-iso8601").format(new Date(l.audit.created_at));return n.has(f)||n.set(f,[]),n.get(f)?.push(l),n},new Map)),j2(1),w2(()=>setTimeout(()=>this.cd.detectChanges(),0))))}get otherOrg$(){return this.service.safeFrom$.pipe(e1(1),w(i=>this.conversation.organizations.a===i?.identifiers.uuid?this.conversation.organizations.bModel:this.conversation.organizations.aModel),j2(1))}send(){this.service.safeFrom$.pipe(e1(1)).subscribe(i=>{if(this.newMessageControl.invalid||!this.me)return;let a={user:this.me,content:this.newMessageControl.value.trim(),organization_uuid:i.identifiers.uuid,audit:{created_at:new Date().toISOString()}};this.newMessageControl.reset("",{emitEvent:!1}),this.service.sendMessage(a,this.conversation)})}handleHotkeyEvent(i){switch(i.id){case"enter":this.enterSendsMessage?this.send():this.addLineBreak();break;case"ctrlEnter":this.enterSendsMessage?this.addLineBreak():this.send();break;default:break}}dateSeparatorFormat(i){return new Date(i).getFullYear()===new Date().getFullYear()?"MMM d":"mediumDate"}requestConnection(){this.showConnectionModal=!0}addLineBreak(){this.newMessageControl.setValue(`${this.newMessageControl.value}
14`)}status$(){return this.service.getConversationStatus$(this.conversation).pipe(w2(i=>{this.status=i,this.disabled=[B1.BAD_SCOPE,B1.BLOCKED,B1.NOT_CONNECTED].includes(i)}))}};B3.\u0275fac=function(a){return new(a||B3)(z(w1),z($2),z(q1))},B3.\u0275cmp=A({type:B3,selectors:[["app-conversation"]],hostVars:2,hostBindings:function(a,e){a&2&&t1("disabled",e.disabledState)},inputs:{conversation:"conversation"},standalone:!0,features:[F2,K],decls:34,vars:19,consts:[["messages",""],["noMessages",""],["class","toolbar",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"new-message"],[1,"full-width","no-margin"],["placeholder","Write a message...","clrTextarea","",3,"appHotkeyEvent","formControl","appHotkey"],[1,"actions"],["clrDropdownTrigger","",1,"enter-description"],[3,"icon"],[4,"ngIf"],["clrPosition","top-left",4,"clrIfOpen"],["type","button",1,"btn","btn-sm","btn-primary",3,"click","disabled"],[3,"open","openChange",4,"ngIf"],[3,"open","organization","from","openChange",4,"ngIf"],[1,"toolbar"],[1,"name"],[1,"flex"],["class","btn btn-icon",3,"routerLink",4,"ngIf"],[1,"btn","btn-icon",3,"click"],[3,"clrCloseMenuOnItemClick",4,"ngIf"],[1,"btn","btn-icon",3,"routerLink"],[3,"clrCloseMenuOnItemClick"],["clrDropdownTrigger","",1,"btn","btn-icon"],["clrPosition","bottom-right",4,"clrIfOpen"],["clrPosition","bottom-right"],["aria-hidden","true",1,"dropdown-header"],["clrDropdownItem",""],["clrTooltipTrigger",""],[1,"clr-toggle-right","no-margin"],["type","checkbox","clrToggle","","value","o
14ption1","name","options","disabled","","checked",""],["clrPosition","right","clrSize","md"],["class","splash",4,"ngIf"],[1,"splash"],["size","3x",3,"icon"],[1,"clickable",3,"click"],[3,"ngTemplateOutlet"],[1,"conversation-alert"],["class","scroller",4,"ngIf","ngIfElse"],[1,"scroller"],[1,"messages"],["class","message-day",4,"ngFor","ngForOf"],[1,"message-day"],[1,"date-separator"],[1,"line"],[1,"date"],[4,"ngFor","ngForOf"],[3,"message","me","myOrg"],["clrPosition","top-left"],[1,"dropdown-header"],["clrDropdownItem","",3,"click"],[3,"openChange","open"],[3,"openChange","open","organization","from"]],template:function(a,e){if(a&1){let t=b();r(0,"main"),v(1,br,8,4,"div",2),S(2,"async"),F(3,3),v(4,wr,5,6,"ng-container",4)(5,_r,8,1,"ng-container",4)(6,Nr,2,1,"ng-container",4)(7,kr,2,1,"ng-container",4)(8,Ar,4,1,"ng-container",4),D(),s(),v(9,Fr,2,4,"ng-template",null,0,h1)(11,Dr,4,2,"ng-template",null,1,h1),r(13,"div",5)(14,"clr-textarea-container",6)(15,"textarea",7),C("appHotkeyEvent",function(l){return M(t),V(e.handleHotkeyEvent(l))}),s()(),r(16,"div",8)(17,"clr-dropdown")(18,"div",9),u(19,"fa-icon",10),r(20,"div")(21,"div"),v(22,Ir,2,0,"app-hotkey-display",11)(23,Br,2,0,"app-hotkey-display",11),o(24," sends the message "),s(),r(25,"div"),v(26,Or,2,0,"app-hotkey-display",11)(27,Rr,2,0,"app-hotkey-display",11),o(28," starts a new line "),s()()(),v(29,Ur,11,0,"clr-dropdown-menu",12),s(),r(30,"button",13),C("click",function(){return M(t),V(e.send())}),o(31,"Send"),s()()(),v(32,Gr,1,1,"app-subscription-upgrade",14)(33,qr,3,7,"app-organization-connection-dialog",15)}a&2&&(m(),p("ngIf",N(2,17,e.otherOrg$)),m(2),p("ngSwitch",e.status),m(),p("ngSwitchCase","bad-scope"),m(),p("ngSwitchCase","not-connected"),m(),p("ngSwitchCase","not-started"),m(),p("ngSwitchCase","active"),m(),p("ngSwitchCase","blocked"),m(7),p("formControl",e.newMessageControl)("appHotkey",e.inputHotkeys),m(4),p("icon",e.icons.enterSetting),m(3),p("ngIf",e.enterSendsMessage),m(),p("ngIf",!e.enterSendsMessage),m(3),p("ngIf",e.enterSendsMessage),m(),p("ngIf",!e.enterSendsMessage),m(3),p("disabled",e.newMessageControl.invalid||e.newMessageControl.disabled),m(2),p("ngIf",e.showSubscribeModal),m(),p("ngIf",e.showConnectionModal))},dependencies:[p2,v4,W2,i3,t3,a3,l3,o3,f3,p3,d3,m3,z3,g3,v3,G,m2,Z,T6,k6,A6,k2,j1,m5,Ae,A2,g2,Ne,F0,_e,d6,I2,C1,D2,z4,L1,Q1,Re],styles:[".splash[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2em;height:100%;opacity:.5}[_nghost-%COMP%]{display:flex;flex-direction:column}.disabled[_nghost-%COMP%]   .main[_ngcontent-%COMP%]{opacity:.7}.disabled[_nghost-%COMP%]   .new-message[_ngcontent-%COMP%]{opacity:.7}[_nghost-%COMP%]   main[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}[_nghost-%COMP%]   .toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--clr-dropdown-divider-color);position:relative;display:flex;flex-direction:row;align-items:center}[_nghost-%COMP%]   .toolbar[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{margin-left:1em;margin-right:1em;text-transform:uppercase;opacity:.5;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:700;font-size:.65rem}[_nghost-%COMP%]   .toolbar[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]{flex:1 1 auto}[_nghost-%COMP%]   .toolbar[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%]{border-width:0;margin:0}[_nghost-%COMP%]   .scroller[_ngcontent-%COMP%]{height:100%;overflow-y:auto;display:flex;flex-direction:column-reverse}
14[_nghost-%COMP%]   .date-separator[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin:1em;align-items:center;gap:.8em;position:sticky;top:0;background-color:var(--cm-white);color:var(--cm-gray);z-index:1}[_nghost-%COMP%]   .date-separator[_ngcontent-%COMP%]   .line[_ngcontent-%COMP%]{flex:1 1 auto;border-bottom:1px solid var(--cm-gray);height:0}[_nghost-%COMP%]   .new-message[_ngcontent-%COMP%]{padding:1em}[_nghost-%COMP%]   .new-message[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{height:4rem;resize:none}[_nghost-%COMP%]   .new-message[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}[_nghost-%COMP%]   .new-message[_ngcontent-%COMP%]   .actions[_ngcontent-%COMP%]   .enter-description[_ngcontent-%COMP%]{display:flex;flex-direction:row;opacity:.5;font-size:.8em;line-height:1em;gap:1em;margin:.3rem}[_nghost-%COMP%]   .conversation-alert[_ngcontent-%COMP%]{background-color:var(--cm-orange);text-transform:uppercase;text-align:center;padding:.2em;font-size:.65rem;font-weight:700}"]});var O3=B3;A1([F3()],O3.prototype,"enterSendsMessage",void 0);A1([D3],O3.prototype,"conversation",void 0);var Ge=x6(Ue());var z6={upload:r2.joinWithSlash(q.api.url,"upload/file"),retrieve:r2.joinWithSlash(q.api.url,"upload/{uuid}"),uploadMetas:r2.joinWithSlash(q.api.url,"upload")},qe=(()=>{let i=class i{constructor(e,t){this.http=e,this.sanitizer=t}upload(e){let t=new FormData;for(let[n,l]of Object.entries(e))l&&t.append(n,l);return this.http.post(z6.upload,t)}delete(e){let t=new Q3;return e?.forEach(n=>{t=t.append("uuids[]",n)}),this.http.delete(z6.uploadMetas,{params:t})}get(e){let t=r2.joinWithSlash(q.api.url,`upload/${e}`);return this.http.get(t)}getMetaData(e){let t=r2.joinWithSlash(q.api.url,`upload/meta/${e}`);return this.http.get(t)}getMetas(e){let t=new Q3;return e?.forEach(n=>{t=t.append("uuids",n)}),this.http.get(`${z6.uploadMetas}`,{params:t})}download(e){E1([this.getMetaData(e),this.http.get(z6.retrieve.replace("{uuid}",e),{responseType:"arraybuffer",observe:"response"})]).pipe(w(([t,n])=>{if(n.body){let l=new Blob([n.body],{type:t.mimeType});(0,Ge.saveAs)(l,t.name)}})).subscribe()}retrieveDataUri(e,t){return this.http.get(z6.retrieve.replace("{uuid}",e),{params:t,responseType:"arraybuffer",observe:"response"}).pipe(w(n=>{let l=n.body?btoa(new Uint8Array(n.body).reduce((d,g)=>d+String.fromCharCode.apply(null,[g]),"")):"";return`data:${`${n.headers.get("content-type")??"image/png"}`};base64,${l}`}))}retrieveSafeResourceUrl(e,t){return this.retrieveDataUri(e,t).pipe(w(n=>this.sanitizer.bypassSecurityTrustResourceUrl(n)))}};i.\u0275fac=function(t){return new(t||i)(k(o1),k(P6))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var je=(()=>{let i=class i{constructor(e,t){this.upload=e,this.el=t}ngOnChanges(e){e.appUploadSrc&&this.appUploadSrc&&this.upload.retrieveDataUri(this.appUploadSrc).subscribe({next:t=>this.el.nativeElement.src=t,error:()=>console.error("Unable to load image",this.appUploadSrc)})}};i.\u0275fac=function(t){return new(t||i)(z(qe),z(f2))},i.\u0275dir=U({type:i,selectors:[["img","appUploadSrc",""]],inputs:{appUploadSrc:"appUploadSrc"},standalone:!0,features:[F2]});let c=i;return c})();function Wr(c,i){if(c&1&&u(0,"img",10),c&2){let a=h();p("alt",(a.otherOrg==null?null:a.otherOrg.name)+" logo")("appUploadSrc",a.otherOrg==null?null:a.otherOrg.logo_id)}}function $r(c,i){if(c&1&&(r(0,"div",12)(1,"span"),o(2),s()()),c&2){let a=h(2);m(2),W(a.firstLetter(a.otherOrg.name))}}function Kr(c,i){if(c&1&&v(0,$r,3,1,"div",11),c&2){let a=h();p("ngIf",a.otherOrg)}}function Qr(c,i){c&1&&(F(0),u(1,"br"),r(2,"span",13)(3,"em"),o(4,"Starting new conversation"),s()(),D())}
14function Xr(c,i){if(c&1&&(r(0,"span",13),o(1),s()),c&2){let a=h();m(),W(a.conversation.latestMessage.content)}}function Zr(c,i){if(c&1&&(r(0,"div",16),o(1),S(2,"date"),s()),c&2){let a=h(2);m(),W(m4(2,1,a.conversation.latestMessage.audit.created_at,a.dateFormat(a.conversation.latestMessage.audit.created_at)))}}function Yr(c,i){if(c&1&&(r(0,"span",17),o(1),s()),c&2){let a=h(2);m(),W(a.conversation.unread)}}function Jr(c,i){if(c&1&&(F(0),v(1,Zr,3,4,"div",14)(2,Yr,2,1,"span",15),D()),c&2){let a=h();m(),p("ngIf",a.conversation.latestMessage),m(),p("ngIf",a.conversation.unread)}}function cs(c,i){if(c&1){let a=b();r(0,"button",18),C("click",function(){M(a);let t=h();return V(t.cancel.emit())}),u(1,"fa-icon",19),s()}if(c&2){let a=h();m(),p("icon",a.icons.cancel)}}var R3=class R3{constructor(i,a){this.service=i,this.organization=a,this.cancel=new J,this.disabled=!0,this.icons={cancel:i0},this.hidden=!0,this.unsubscribe$=new B}ngOnInit(){this.service.safeFrom$.pipe(P(this.unsubscribe$)).subscribe(i=>this.setOtherOrg(i))}ngOnChanges(i){i.conversation&&this.service.safeFrom$.pipe(e1(1)).subscribe(a=>this.setOtherOrg(a))}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}dateFormat(i){let a=new Date(i),e=a.toDateString()===new Date().toDateString(),t=a.getFullYear()===new Date().getFullYear();return e?"shortTime":t?"MMM d":"mediumDate"}firstLetter(i){return i.match(/[a-zA-Z]/)?.pop()?.toUpperCase()}setOtherOrg(i){let{a,aModel:e,bModel:t}=this.conversation.organizations;this.otherOrg=a===i.identifiers?.uuid?t:e,this.organization.verifyView(this.otherOrg?.identifiers?.uuid).subscribe(n=>{this.disabled=!n,this.hidden=!n})}};R3.\u0275fac=function(a){return new(a||R3)(z(w1),z(B2))},R3.\u0275cmp=A({type:R3,selectors:[["app-conversation-tile"]],hostVars:2,hostBindings:function(a,e){a&1&&C("beforeunload",function(){return e.ngOnDestroy()},!1,n2),a&2&&t1("disabled",e.disabled)},inputs:{conversation:"conversation"},outputs:{cancel:"cancel"},standalone:!0,features:[F2,K],decls:15,vars:7,consts:[["logoPlaceholder",""],[1,"leading"],[1,"logo"],[3,"alt","appUploadSrc",4,"ngIf","ngIfElse"],[1,"line-clamp-3"],[1,"org-name"],[4,"ngIf"],["class","teaser",4,"ngIf"],[1,"trailing"],["class","btn btn-icon no-margin",3,"click",4,"ngIf"],[3,"alt","appUploadSrc"],["class","placeholder",4,"ngIf"],[1,"placeholder"],[1,"teaser"],["class","last-message",4,"ngIf"],["class","badge",4,"ngIf"],[1,"last-message"],[1,"badge"],[1,"btn","btn-icon","no-margin",3,"click"],[3,"icon"]],template:function(a,e){if(a&1&&(r(0,"div",1)(1,"div",2),v(2,Wr,1,2,"img",3)(3,Kr,1,1,"ng-template",null,0,h1),s()(),r(5,"main",4)(6,"span",5),o(7),s(),o(8,"\xA0 "),v(9,Qr,5,0,"ng-container",6),u(10,"br"),v(11,Xr,2,1,"span",7),s(),r(12,"div",8),v(13,Jr,3,2,"ng-container",6)(14,cs,2,1,"button",9),s()),a&2){let t=G2(4);m(2),p("ngIf",e.otherOrg==null?null:e.otherOrg.logo_id)("ngIfElse",t),m(5),W(e.otherOrg==null?null:e.otherOrg.name),m(2),p("ngIf",!e.conversation.latestMessage),m(2),p("ngIf",e.conversation.latestMessage&&!e.hidden),m(2),p("ngIf",e.conversation.latestMessage),m(),p("ngIf",!e.conversation.latestMessage)}},dependencies:[G,Z,j1,A2,g2,je],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1em;border-bottom:1px solid var(--clr-dropdown-divider-color);cursor:pointer;-webkit-user-select:none;user-select:none;transition:.3s}.selected[_nghost-%COMP%]{background-color:var(--clr-dropdown-selection-color)}.disabled[_nghost-%COMP%]{opacity:.7}[_nghost-%COMP%]   .leading[_ngcontent-%COMP%]{align-self:center}[_nghost-%COMP%]   .leading[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], [_nghost-%COMP%]   .leading[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{width:5em;height:5em;object-fit:contain}[_nghost-%COMP%]   .leading[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{background-color:var(--cm-gray);display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]   .leading[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:2em}[_nghost-%COMP%]   main[_ngcontent-%COMP%]{padding:0 1em;flex:1 1 auto}
14[_nghost-%COMP%]   main[_ngcontent-%COMP%]   .org-name[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%]   main[_ngcontent-%COMP%]   .teaser[_ngcontent-%COMP%]{opacity:.5}[_nghost-%COMP%]   .trailing[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end}[_nghost-%COMP%]   .trailing[_ngcontent-%COMP%]   .last-message[_ngcontent-%COMP%]{opacity:.5;white-space:nowrap}[_nghost-%COMP%]   .trailing[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%]{border-width:0px}"]});var v6=R3;A1([D3],v6.prototype,"conversation",void 0);var We=(()=>{let i=class i{constructor(){this.desktopNotificationsAvailable="Notification"in window}get permission(){return Notification.permission==="granted"}checkForPermission$(e=!1){if(!this.desktopNotificationsAvailable)throw new Error("This browser does not support desktop notification");return Notification.permission==="granted"?Y(!0):Notification.permission!=="denied"&&!e?Y(!1):new O2(t=>{Notification.requestPermission().then(n=>{if(t.next(n==="granted"),t.complete(),n==="granted"){let l={tag:"welcome",body:`This is a sample notification from CONNEX Marketplace. Now that you've enabled
15							notifications, you can receive notifications for messages and other real-time events.
16							`.replace(/\s+/g," ")};new Notification("Hi there!",l)}})})}sendNotification$(e,t){return this.checkForPermission$().pipe(w(n=>n?new Notification(e,t):null))}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var as=c=>({selected:c});function is(c,i){if(c&1&&(F(0),o(1),S(2,"async"),D()),c&2){let a,e=h(2);m(),_(" ",(a=N(2,1,e.from$))==null?null:a.name," does not have access to start new conversations. ")}}function ts(c,i){c&1&&(F(0),o(1," Start a new conversation "),D())}function ns(c,i){if(c&1){let a=b();F(0),r(1,"label",13),o(2,"Settings for you"),s(),r(3,"clr-toggle-container",20)(4,"clr-toggle-wrapper")(5,"input",21),C("ngModelChange",function(t){M(a);let n=h(2);return V(n.desktopNotificationChange(t))}),s(),r(6,"label"),o(7,"Desktop notifications"),s()()(),D()}if(c&2){let a=h(2);m(5),p("ngModel",a.desktopNotificationsEnabled)}}function rs(c,i){if(c&1){let a=b();r(0,"div")(1,"clr-tooltip")(2,"button",3),C("click",function(){M(a);let t=h();return V(t.showRecipientSelector=!0)}),u(3,"fa-icon",4),o(4," New message "),s(),r(5,"clr-tooltip-content",5),v(6,is,3,3,"ng-container",2)(7,ts,2,0,"ng-container",2),s()(),u(8,"div",6),r(9,"clr-tooltip")(10,"button",7),C("click",function(){M(a);let t=h();return V(t.markAllAsRead())}),u(11,"fa-icon",4),s(),r(12,"clr-tooltip-content",8),o(13," Mark all as read for me "),s()(),r(14,"clr-tooltip")(15,"button",7),C("click",function(){M(a);let t=h();return V(t.markAllAsRead(!0))}),u(16,"fa-icon",4),s(),r(17,"clr-tooltip-content",9),o(18),S(19,"async"),s()(),r(20,"clr-dropdown",10)(21,"button",11),u(22,"fa-icon",4),s(),r(23,"clr-dropdown-menu",12)(24,"label",13),o(25),S(26,"async"),s(),r(27,"clr-tooltip",14)(28,"div",15)(29,"clr-toggle-container",16)(30,"clr-toggle-wrapper"),u(31,"input",17),r(32,"label"),o(33,"Open messaging (coming soon)"),s()()()(),r(34,"clr-tooltip-content",18),o(35," Allow anyone to message you. If you leave this disabled, only those who you have connected with will be able to message you. "),s()(),u(36,"div",19),v(37,ns,8,1,"ng-container",2),s()()()}if(c&2){let a,e,t=h();m(2),p("disabled",t.newConversationDisabled),m(),p("icon",t.icons.new),m(3),p("ngIf",t.newConversationDisabled),m(),p("ngIf",!t.newConversationDisabled),m(4),p("icon",t.icons.markAsRead),m(5),p("icon",t.icons.markAllAsRead),m(2),_(" Mark all as read for ",(a=N(19,11,t.from$))==null?null:a.name," "),m(2),p("clrCloseMenuOnItemClick",!1),m(2),p("icon",t.icons.settings),m(3),_("Settings for ",(e=N(26,13,t.from$))==null?null:e.name,""),m(12),p("ngIf",t.showNotificationSetting)}}function ss(c,i){if(c&1&&(r(0,"ng-option",25),o(1),r(2,"em"),o(3),s()()),c&2){let a=i.$implicit;p("value",a),m(),_(" ",a.name," "),m(2),_("(",a.address._city_state,")")}}function os(c,i){if(c&1){let a=b();r(0,"div")(1,"div",6)(2,"ng-select",22),v(3,ss,4,3,"ng-option",23),S(4,"async"),s()(),r(5,"button",24),C("click",function(){M(a);let t=h();return V(t.showRecipientSelector=!1)}),u(6,"fa-icon",4),o(7," Cancel "),s()()}if(c&2){let a=h();m(2),p("formControl",a.recipientControl)("clearable",!1)("isOpen",!0)("loading",a.loaders.recipients)("typeahead",a.recipientTypeahead$),m(),p("ngForOf",N(4,7,a.availableRecipients$)),m(3),p("icon",a.icons.cancel)}}function ls(c,i){if(c&1){let a=b();r(0,"app-conversation-tile",28),C("cancel",function(){M(a);let t=h(2);return V(t.cancelNewConversation())}),s()}if(c&2){let a=h(2);p("conversation",a.newConversation)}}function fs(c,i){if(c&1){let a=b();r(0,"app-conversation-tile",30),C("click",function(){let t=M(a).$implicit,n=h(3);return V(n.setCurrentConversation(t))}),s()}if(c&2){let a=i.$implicit,e=h(3);p("conversation",a)("ngClass",t5(2,as,e.currentConversation===a))}}function ms(c,i){if(c&1){let a=b();r(0,"div",32),u(1,"fa-icon",33),r(2,"p"),o(3),S(4,"async"),u(5,"br"),o(6," Begin by "),r(7,"a",34),C("click",function(){M(a);let t=h(4);return V(t.showRecipientSelector=!0)}),o(8,"sending someone a message"),s(),o(9,". "),s()()}if(c&2){let a,e=h(4);m(),p("icon",e.icons.newLight),m(2),_(" No messages exist for ",(a=N(4,2,e.from$))==null?null:a.name,". ")}}function ps(c,i){if(c&1&&(F(0),v(1,ms,10,4,"div",31),D()),c&2){let a=h(3);m(),p("ngIf",!a.newConversation)}}function ds(c,i){if(c&1&&(F(0),v(1,fs,1,4,"app-conversation-tile",29)(2,ps,2,1,"ng-container",2),D()),c&2){let a=h(2);m(),p("ngForOf",a.conversations),m(),p("ngIf",!(a.conversations!=null&&a.conversations.length))}}function hs(c,i){if(c&1&&(r(0,"div",32),u(1,"fa-icon",33),r(2,"p"),o(3,"No organization is selected."),s()()),c&2){let a=h(2);m(),p("icon",a.icons.newLight)}}function us(c,i){if(c&1&&(r(0,"main"),v(1,ls,1,1,"app-conversation-tile",26)(2,ds,3,2,"ng-container",27),S(3,"async"),v(4,hs,4,1,"ng-template",null,0,h1),s()),c&2){let a=G2(5),e=h();m(),p("ngIf",e.newConversation),m(),p("ngIf",N(3,3,e.from$))("ngIfElse",a)}}var $e=(()=>{let i=class i{constructor(e,t,n){this.service=e,this.cd=t,this.dtNotification=n,this.conversationChange=new J,this.from$=this.service.from$,this.newConversationDisabled=!1,this.showNotificationSetting=!1,this.desktopNotificationsEnabled=!1,this.showRecipientSelector=!1,this.recipientControl=new o2(null),this.recipientTypeahead$=new B,this.icons={cancel:i0,new:g7,newLight:s0,warningLight:ac,markAsRead:w7,markAllAsRead:b7,settings:$7},this.loaders={conversations:!1,recipients:!1},this.unsubscribe$=new B}ngOnInit(){this.initializeConversationLoaders(),this.initializeMessageNotifications(),this.initializeRecipientListener(),this.availableRecipients$=E1([this.service.safeFrom$,this.recipientTypeahead$.pipe(k4(""))]).pipe(N4(300),O(([e,t])=>(this.loaders.recipients=!0,this.service.getAvailableRecipients(e.identifiers.uuid,t,{sort:{by:t?"relevance":"name",reverse:!1},page:{from:0,size:50}}))),w(e=>(this.loaders.recipients=!1,e.hits.hits.map(t=>t._source))),P(this.unsubscribe$)),this.showNotificationSetting=this.dtNotification.desktopNotificationsAvailable,this.desktopNotificationsEnabled=this.dtNotification.permission}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}cancelNewConversation(){this.newConversation=void 0,this.conversationChange.emit(void 0)}setCurrentConversation(e){this.newConversation=void 0,this.currentConversation=e,this.conversationChange.emit(e),e?.unread&&this.service.markConversationAsRead(e).subscribe(()=>e.unread=0)}markAllAsRead(e=!1){this.conversations&&this.service.from$.pipe(O(t=>{let n=e?t?.identifiers.uuid:void 0;return this.service.markConversationsAsRead(this.conversations?.map(l=>l.identifiers?.uuid??"")??[],n)}),O(()=>this.loadConversations$())).subscribe()}desktopNotificationChange(e){e&&this.dtNotification.checkForPermission$(!0).subscribe(t=>this.desktopNotificationsEnabled=t)}initializeConversationLoaders(){this.service.messagesStream$.pipe(Q(e=>!!e.identifiers?.uuid),P(this.unsubscribe$)).subscribe(e=>{e.conversation.latestMessage=e;let t=this.addConversationToList(e.conversation);this.currentConversation&&this.service.isSameConversation(this.currentConversation,t)?this.service.markConversationAsRead(this.currentConversation).subscribe():t.unread=t.unread===void 0?1:t.unread+1}),this.service.safeFrom$.pipe(w2(e=>{this.assessNewConversationAccess(e),this.loaders.conversations=!0,this.currentConversation=void 0}),O(()=>this.loadConversations$()),P(this.unsubscribe$)).subscribe(()=>{this.loaders.conversations=!1})}loadConversations$(){return this.service.safeFrom$.pipe(Q8(),O(e=>this.service.getConversationsForOrg(e.identifiers.uuid)),w2(e=>{this.conversations=e,e.forEach(t=>this.addConversationToList(t)),this.sortConversations(),!this.newConversation&&!this.currentConversation&&this.setCurrentConversation(e[0])}))}addConversationToList(e){let t=e;if(this.newConversation&&this.service.isSameConversation(e,this.newConversation))t=$($({},this.newConversation),e),this.setCurrentConversation(e);else if(this.conversations?.find(n=>this.service.isSameConversation(n,e))){let n=this.conversations?.find(l=>this.service.isSameConversation(l,e));Object.assign(n??{},e),t=n??t}else this.conversations?.push(t);return this.sortConversations(),t}initializeRecipientListener(){E1([this.service.safeFrom$,_4(this.service.safeRecipient$,this.recipientControl.valueChanges.pipe(Q(e=>!!e)))]).pipe(P(this.unsubscribe$)).subscribe(([e,t])=>{this.recipientControl.reset(),this.showRecipientSelector=!1,this.newConversation=void 0;let n=this.conversations?.find(l=>[l.organizations.a,l.organizations.b].includes(t.identifiers.uuid));n?this.setCurrentConversation(n):(this.currentConversation=void 0,this.newConversation={organizations:{a:e.identifiers.uuid,b:t.identifiers.uuid,aModel:e,bModel:t}},this.conversationChange.emit(this.newConversation))})}sortConversations(){this.conversations?.sort((e,t)=>
16{let n=new Date(e.latestMessage?.audit.created_at??0).getTime();return new Date(t.latestMessage?.audit.created_at??0).getTime()<n?-1:1}),this.cd.detectChanges()}assessNewConversationAccess(e){this.service.orgHasMessageAccess$(e).subscribe(t=>this.newConversationDisabled=!t)}initializeMessageNotifications(){this.service.messagesStream$.pipe(Q(e=>!!e.identifiers?.uuid),O(e=>{let t=e.organization_uuid===e.conversation.organizations.a?e.conversation.organizations.aModel:e.conversation.organizations.bModel;if(!e.identifiers?.uuid||!t)return Y(void 0);let n=`New message from ${e.user.name.first} ${e.user.name.last} (${t.name})`,l=e.content,f=e.identifiers.uuid;return this.dtNotification.sendNotification$(n,{body:l,tag:f})}),P(this.unsubscribe$)).subscribe()}};i.\u0275fac=function(t){return new(t||i)(z(w1),z(q1),z(We))},i.\u0275cmp=A({type:i,selectors:[["app-conversation-list"]],hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},outputs:{conversationChange:"conversationChange"},standalone:!0,features:[K],decls:4,vars:3,consts:[["noOrgSelected",""],[1,"toolbar"],[4,"ngIf"],["clrTooltipTrigger","",1,"btn","btn-link","btn-sm",3,"click","disabled"],[3,"icon"],["clrPosition","bottom-right","clrSize","md"],[1,"flex"],["clrTooltipTrigger","",1,"btn","btn-icon",3,"click"],["clrPosition","bottom-left","clrSize","sm"],["clrPosition","bottom-left","clrSize","md"],[3,"clrCloseMenuOnItemClick"],["clrDropdownTrigger","",1,"btn","btn-icon"],["clrPosition","bottom-right"],["aria-hidden","true",1,"dropdown-header"],["clrDropdownItem",""],["clrTooltipTrigger",""],[1,"clr-toggle-right","no-margin"],["type","checkbox","clrToggle","","value","option1","name","options","disabled",""],["clrPosition","left","clrSize","md"],[1,"dropdown-divider"],["clrDropdownItem","",1,"clr-toggle-right","no-margin"],["type","checkbox","clrToggle","",3,"ngModelChange","ngModel"],["bindLabel","name","appendTo","body","placeholder","Type to search...",3,"formControl","clearable","isOpen","loading","typeahead"],[3,"value",4,"ngFor","ngForOf"],[1,"btn","btn-link","btn-sm",3,"click"],[3,"value"],["class","selected",3,"conversation","cancel",4,"ngIf"],[4,"ngIf","ngIfElse"],[1,"selected",3,"cancel","conversation"],[3,"conversation","ngClass","click",4,"ngFor","ngForOf"],[3,"click","conversation","ngClass"],["class","splash",4,"ngIf"],[1,"splash"],["size","3x",3,"icon"],[1,"clickable",3,"click"]],template:function(t,n){t&1&&(r(0,"div",1),v(1,rs,38,15,"div",2)(2,os,8,9,"div",2),s(),v(3,us,6,5,"main",2)),t&2&&(m(),p("ngIf",!n.showRecipientSelector),m(),p("ngIf",n.showRecipientSelector),m(),p("ngIf",!n.loaders.conversations))},dependencies:[p2,W2,i3,t3,a3,f3,p3,d3,m3,z3,g3,v3,G,g1,m2,Z,k2,v6,A2,g2,V3,M3,d0,c3,D6,D2,O6,I2,z4],styles:[".splash[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2em;height:100%;opacity:.5}[_nghost-%COMP%]{display:flex;flex-direction:column}.toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--clr-dropdown-divider-color);position:relative}.toolbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}.toolbar[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]{flex:1 1 auto}.toolbar[_ngcontent-%COMP%]   .btn-icon[_ngcontent-%COMP%]{border-width:0;margin:0}main[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto}"]});let c=i;return c})();function zs(c,i){if(c&1&&(r(0,"strong"),o(1),S(2,"async"),s()),c&2){let a,e=h(2);m(),W((a=N(2,1,e.myOrgs$))==null||a[0]==null?null:a[0].name)}}function vs(c,i){if(c&1&&(r(0,"option",10),o(1),s()),c&2){let a=i.$implicit;p("ngValue",a),m(),W(a.name)}}function gs(c,i){if(c&1&&(r(0,"clr-select-container",7)(1,"select",8),v(2,vs,2,2,"option",9),S(3,"async"),s()()),c&2){let a=h(2);m(),p("formControl",a.currentOrgControl),m(),p("ngForOf",N(3,2,a.myOrgs$))}}function Hs(c,i){if(c&1&&u(0,"app-conversation",11),c&2){let a=h(2);p("conversation",a.conversation)}}function Cs(c,i){if(c&1){let a=b();r(0,"div",2),C("click",function(t){M(a);let n=h();return V(n.overlayClick(t))}),r(1,"aside")(2,"div",3)(3,"div"),o(4,"Chatting as"),s(),v(5,zs,3,3,"strong",4),S(6,"async"),v(7,gs,4,4,"ng-template",null,0,h1),s(),r(9,"main"),v(10,Hs,1,1,"app-conversation",5),r(11,"app-conversation-list",6),C("conversationChange",function(t){M(a);let n=h();return V(n.conversation=t)}),s()()()()}if(c&2){let a,e=G2(8),t=h();p("@fade",void 0),m(),p("@slide",void 0),m(4),p("ngIf",((a=N(6,5,t.myOrgs$))==null?null:a.length)===1)("ngIfElse",e),m(5),p("ngIf",t.conversation)}}var O0=(()=>{let i=class i{constructor(e,t,n,l){this.service=e,this.organization=t,this.rbac=n,this.router=l,this.open=!1,this.openChange=new J,this.myOrgs$=this.getAvailableOrgs$().pipe(w2(f=>{if(!this.currentOrgControl.value&&f.length>0)this.currentOrgControl.setValue(f[0]);else{let d=f.find(g=>g.identifiers.uuid===this.currentOrgControl.value?.identifiers.uuid);d&&this.currentOrgControl.setValue(d,{emitEvent:!1})}})),this.currentOrgControl=new o2(null),this.unsubscribe$=new B}ngOnInit(){this.currentOrgControl.valueChanges.pipe(Q(e=>!!e),P(this.unsubscribe$)).subscribe(e=>this.service.from$.next(e)),this.router.events.pipe(P(this.unsubscribe$)).subscribe(()=>this.service.open$.next(!1)),this.service.open$.pipe(P(this.unsubscribe$)).subscribe(e=>{this.open=e,this.openChange.emit(this.open)})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}overlayClick(e){e.target.classList.contains("overlay")&&this.close()}getAvailableOrgs$(){return this.organization.getUserOrgs(void 0,{include:["license"]}).pipe(w(e=>e.filter(t=>this.rbac.hasPermission("organization.profile.view",t.identifiers.uuid))),j2(1))}close(){this.open=!1,this.openChange.emit(!1)}};i.\u0275fac=function(t){return new(t||i)(z(w1),z(B2),z(y1),z(x1))},i.\u0275cmp=A({type:i,selectors:[["app-message-sidebar"]],hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},inputs:{open:"open"},outputs:{openChange:"openChange"},standalone:!0,features:[K],decls:1,vars:1,consts:[["selector",""],["class","overlay",3,"click",4,"ngIf"],[1,"overlay",3,"click"],[1,"toolbar"],[4,"ngIf","ngIfElse"],[3,"conversation",4,"ngIf"],[3,"conversationChange"],[1,"no-margin"],["clrSelect","",3,"formControl"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[3,"conversation"]],template:function(t,n){t&1&&v(0,Cs,12,7,"div",1),t&2&&p("ngIf",n.open)},dependencies:[p2,Z1,X1,G,m2,Z,k2,O3,$e,I2,M1,V1,K1,D2,z4],styles:[".overlay[_ngcontent-%COMP%]{background-color:#323232d9;position:absolute;inset:0;z-index:1000;overflow:hidden}.toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.4rem;border-bottom:1px solid var(--clr-dropdown-divider-color);padding:.4rem}aside[_ngcontent-%COMP%]{position:absolute;right:0;top:0;bottom:0;max-width:100vw;background-color:var(--cm-white);display:flex;flex-direction:column}aside[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]{flex:1 1 auto;display:flex;flex-direction:row;min-height:0}aside[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   app-conversation[_ngcontent-%COMP%]{width:45ch;border-right:1px solid var(--clr-dropdown-divider-color)}aside[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]   app-conversation-list[_ngcontent-%COMP%]{width:40ch}"],data:{animation:[X4("fade",[d4("void => *",[H1({opacity:0}
16),Z4([p4(".2s ease-in-out",H1({opacity:1})),J4("@slide",Y4())])]),d4("* => void",[H1({opacity:1}),Z4([p4(".2s ease-in-out",H1({opacity:0})),J4("@slide",Y4())])])]),X4("slide",[F6("void",H1({transform:"translateX(100%)"})),d4("void => *, * => void",[p4(".2s ease-in-out")])])]}});let c=i;return c})();var g6=function(c){return c.STATE="state",c.REGION="region",c.GROUP="group",c}(g6||{});var Vs=["*"];function xs(c,i){if(c&1&&(F(0),r(1,"clr-tooltip")(2,"a",1)(3,"label",2),o(4,"Sponsored by:"),s(),u(5,"img",3),s(),r(6,"clr-tooltip-content",4),o(7),s()(),z2(8),D()),c&2){let a=i.ngIf,e=h();m(2),p("routerLink","/organization/"+a.identifiers.uuid),m(3),p("src",e.getSponsorLogo(a),$4),m(2),_(" Visit the ",a.name," profile by clicking here. ")}}var A8={el_paso:"../../../../../assets/images/el_paso/CONNEX-El-Paso-FINAL-Blue-Transparent (orange star).png",AL:"../../../../../assets/images/alabama/Connex-AL-Blue-Transparent.svg",CT:"../../../../../assets/images/connecticut/Connex-CT-New-Blue-Transparent.svg",DE:"../../../../../assets/images/deleware/Connex-Delaware-LtBlue-Transparent-State-Outline__for_login_page_.svg",FL:"../../../../../assets/images/florida/Connex-FL-FINAL-Blue-Transparent.svg",KS:"../../../../../assets/images/kansas/Connex-KS-FINAL-Blue-Transparent-800px.png",KY:"../../../../../assets/images/kentucky/Connex-KY-Blue-Final.svg",MA:"../../../../../assets/images/massachusetts/Connex-MA-Blue-FINAL.svg",MD:"../../../../../assets/images/maryland/CONNEX_MD_-_Color.svg",ME:"../../../../../assets/images/maine/CONNEX-MAINE Logo (main).svg",MI:"../../../../../assets/images/michigan/Connex-MI-FINAL-Blue-Transparent.png",MO:"../../../../../assets/images/missouri/Connex-MO-FINAL-Blue-Transparent-800px.png",MS:"../../../../../assets/images/mississippi/CONNEX-MS-Logo-Color-FINAL.svg",NJ:"../../../../../assets/images/new-jersey/Connex-NJ-Logo-Blue-Final.svg",OK:"../../../../../assets/images/oklahoma/Connex-OK-FINAL-Blue-Transparent-1024x317.png",SC:"../../../../../assets/images/south-carolina/Connex-SC-Blue-Transparent-FINAL.svg",UT:"../../../../../assets/images/utah/Connex-UT-FINAL-Blue-Transparent-1024x356.png",TN:"../../../../../assets/images/tennessee/Connex-TN-FINAL-Blue-Transparent__Text_Overlay_-800px.png",VA:"../../../../../assets/images/virginia/connex-va-blue.svg",VT:"../../../../../assets/images/vermont/New-Connex-VT-Logo-Final (Aqua VMEC).svg",WY:"../../../../../assets/images/wyoming/nav-logo.svg"},Ke=(()=>{let i=class i{constructor(e){this.user=e,this.sponsor$=this.user.getMe().pipe(Q(t=>!!t),w(t=>{if(!t.sponsors||Object.keys(t.subscriptions).length>0)return null;let n=Object.values(t.sponsors).flat(),l=[...new Map(n.map(f=>[f.identifiers.uuid,f])).values()];return l.length!==1?null:l[0]}))}getSponsorLogo(e){switch(e.license?.sponsor){case g6.STATE:return A8[e.license.states?.[0]??""]??"../../../../../assets/images/logo-color-tagline.svg";case g6.REGION:return A8[e.license.sponsor_region_slug??""]??null;case g6.GROUP:return A8[e.license.sponsor_group_slug??""]??null;default:return null}}};i.\u0275fac=function(t){return new(t||i)(z($2))},i.\u0275cmp=A({type:i,selectors:[["app-navigation-sponsor"]],standalone:!0,features:[K],ngContentSelectors:Vs,decls:2,vars:3,consts:[[4,"ngIf"],["clrTooltipTrigger","",1,"sponsor-logo",3,"routerLink"],[1,"p6"],[3,"src"],["clrPosition","right","clrSize","md"]],template:function(t,n){t&1&&(P2(),v(0,xs,9,3,"ng-container",0),S(1,"async")),t&2&&p("ngIf",N(1,1,n.sponsor$))},dependencies:[l7,z3,g3,v3,G,Z,k2,L1,Q1],styles:[".sponsor-logo[_ngcontent-%COMP%]{cursor:pointer;background-color:transparent;padding:0 1rem .4rem;display:flex;flex-direction:column}.sponsor-logo[_ngcontent-%COMP%]:hover{background-color:var(--clr-vertical-nav-hover-bg-color)}.sponsor-logo[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-style:italic}.sponsor-logo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;max-height:5rem}clr-tooltip[_ngcontent-%COMP%]{width:100%}"]});let c=i;return c})();var Qe=(()=>{let i=class i{constructor(e,t){this.organization=e,this.rbac=t}canActivate(){return this.rbac.ready.pipe(O(()=>this.organization.getUserOrgs()),w(e=>{let t=e.flatMap(f=>f.types).filter(f=>!!f).filter((f,d,g)=>g.indexOf(f)===d),n=["admin.reports.capability-report","admin.reports.login-report","admin.reports.gap-report","admin.reports.subscription-activity","license.reports.capability-report","license.reports.login-report","license.reports.gap-report","license.reports.subscription-activity"].some(f=>this.rbac.hasPermission(f)),l=this.rbac.hasPermission("organization.exchange-center.list")&&t.includes(M2.MANUFACTURER);return n||l}))}};i.\u0275fac=function(t){return new(t||i)(k(B2),k(y1))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();
16function Ls(c,i){c&1&&(r(0,"p"),o(1," Thank you. A CONNEX Marketplace team member will reach out to you within the next few days using the contact information you've provided on your profile. "),s())}function bs(c,i){c&1&&(r(0,"p"),o(1," Thank you. A CONNEX Marketplace team member will reach out to you within the next few days using the contact information you've provided on your profile. "),s())}function ys(c,i){c&1&&(r(0,"p"),o(1," You bet! We'll reach out to you sometime later as this offering develops more fully. "),s())}function Ss(c,i){if(c&1&&v(0,Ls,2,0)(1,bs,2,0)(2,ys,2,0),c&2){let a,e=h();x2(0,(a=e.status)==="get_started"?0:a==="learn_more"?1:a==="remind_me_later"?2:-1)}}function ws(c,i){c&1&&(r(0,"p"),o(1," You previously selected "),r(2,"strong"),o(3,"Get Started"),s(),o(4,". You can change your selection by clicking one of the buttons below. "),s())}function _s(c,i){c&1&&(r(0,"p"),o(1," You previously selected "),r(2,"strong"),o(3,"Learn More"),s(),o(4,". You can change your selection by clicking one of the buttons below. "),s())}function Ns(c,i){c&1&&(r(0,"p"),o(1," You previously selected "),r(2,"strong"),o(3,"Remind Me Later"),s(),o(4,". You can change your selection by clicking one of the buttons below. "),s())}function ks(c,i){if(c&1&&(r(0,"p"),o(1," We are happy to announce a pilot program for CONNEX Marketplace subscribers who could benefit from a financial planning tool that includes a financial health score, the % chance and ability to borrow, loan options, and funding opportunities for their business. If you would like to take advantage of this resource in the pilot, please click the "),r(2,"strong"),o(3,"Get Started"),s(),o(4," button below and someone from our team will c
16ontact you. Select "),r(5,"strong"),o(6,"Learn More"),s(),o(7," to get details about the financial tool or choose "),r(8,"strong"),o(9,"Remind me Later"),s(),o(10," and be on the lookout for the upcoming beta feature. "),s(),v(11,ws,5,0)(12,_s,5,0)(13,Ns,5,0)),c&2){let a,e=h();m(11),x2(11,(a=e.status)==="get_started"?11:a==="learn_more"?12:a==="remind_me_later"?13:-1)}}function As(c,i){if(c&1){let a=b();r(0,"div",3)(1,"button",4),C("click",function(){M(a);let t=h();return V(t.setStatus("remind_me_later"))}),o(2,"Remind me later"),s(),r(3,"button",4),C("click",function(){M(a);let t=h();return V(t.setStatus("learn_more"))}),o(4,"Learn more"),s(),r(5,"button",5),C("click",function(){M(a);let t=h();return V(t.setStatus("get_started"))}),o(6,"Get started"),s()()}}var U3=class U3{constructor(i){this.layout=i,this.openChange=new J,this.open=S6(!1),this.showConfirmation=K3(!1)}ngOnInit(){this.layout.logViewEvent("financial_tool_opened","financial_tool")}handleModalChange(i){i||this.layout.logClickEvent("financial_tool_closed","financial_tool"),this.openChange.emit(i)}setStatus(i){this.status=i,this.layout.logClickEvent(i,"financial_tool"),this.showConfirmation.set(!0)}};U3.\u0275fac=function(a){return new(a||U3)(z(S1))},U3.\u0275cmp=A({type:U3,selectors:[["app-financial-tool-pilot"]],inputs:{open:[a1.SignalBased,"open"]},outputs:{openChange:"openChange"},standalone:!0,features:[K],decls:7,vars:3,consts:[[3,"clrModalOpenChange","clrModalOpen"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-outline",3,"click"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(a,e){a&1&&(r(0,"clr-modal",0),C("clrModalOpenChange",function(n){return e.handleModalChange(n)}),r(1,"h3",1),o(2,"CONNEX Marketplace Financial Tool"),s(),r(3,"div",2),v(4,Ss,3,1)(5,ks,14,1),s(),v(6,As,7,0,"div",3),s()),a&2&&(p("clrModalOpen",e.open()),m(4),x2(4,e.showConfirmation()?4:5),m(2),x2(6,e.showConfirmation()?-1:6))},dependencies:[p2,f1,b1,G],changeDetection:0});var E8=U3;A1([F3("financial_tools_pilot")],E8.prototype,"status",void 0);function T8(c,i){!i?.injector&&J8(T8);let a=i?.injector??G1(y6),e=new d1(1),t=o5(()=>{let n;try{n=c()}catch(l){c8(()=>e.error(l));return}c8(()=>e.next(n))},{injector:a,manualCleanup:!0});return a.get(c5).onDestroy(()=>{t.destroy(),e.complete()}),e.asObservable()}var Es=()=>({"=1":"listing",other:"listings"}),G3=class G3{constructor(i,a){this.router=i,this.layout=a,this.count=S6.required(),this.count$=T8(this.count),this.unsubscribe$=new B}ngOnInit(){this.count$.pipe(P(this.unsubscribe$)).subscribe(i=>{this.layout.addAppAlert({uniqueId:"expired-listings-banner",closable:!1,type:C4.WARNING,items:[{text:`Your organization has ${i} EXPIRED Exchange Center ${i===1?"listing":"listings"} that need to be closed out.`,actions:[{label:"Close expired listings",link:encodeURI("/exchange-center/needs?filters.postedBy=myOrgs&filters.myListings.status=expired&highlightFilters[0]=status&highlightFilters[1]=postedBy")}]}]})})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}goToListings(){this.dismissed=!0;let i={"filters.postedBy":"myOrgs","filters.myListings.status":"expired",highlightFilters:["status","postedBy"]};this.router.navigate(["exchange-center/needs"],{queryParams:i})}};G3.\u0275fac=function(a){return new(a||G3)(z(x1),z(S1))},G3.\u0275cmp=A({type:G3,selectors:[["app-expired-listings-popup"]],hostBindings:function(a,e){a&1&&C("beforeunload",function(){return e.ngOnDestroy()},!1,n2)},inputs:{count:[a1.SignalBased,"count"]},standalone:!0,features:[K],decls:14,vars:7,consts:[[3,"clrModalOpenChange","clrModalOpen"],[1,"modal-title"],[1,"modal-body"],[1,"modal-footer"],["type","button",1,"btn","btn-link",3,"click"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(a,e){a&1&&(r(0,"clr-modal",0),C("clrModalOpenChange",function(n){return e.dismissed=!n}),r(1,"h3",1),o(2),S(3,"i18nPlural"),s(),r(4,"div",2),o(5," These are listings that have "),r(6,"strong"),o(7,"EXPIRED"),s(),o(8," but have not been closed out. Please close out your expired listings as soon as you have determined if an award is to be made. "),s(),r(9,"div",3)(10,"button",4),C("click",function(){return e.dismissed=!0}),o(11,"Skip for now"),s(),r(12,"button",5),C("click",function(){return e.goToListings()}),o(13,"Go to expired listings"),s()()()),a&2&&(p("clrModalOpen",e.count()>0&&!e.dismissed),m(2),K4(" You have ",e.count()," expired Exchange Center ",m4(3,3,e.count(),P1(6,Es))," "))},dependencies:[p2,f1,b1,G,f5,L1],changeDetection:0});var H6=G3;A1([F3("expiredListingsDismissed",12,"h")],H6.prototype,"dismissed",void 0);var P8=(()=>{let i=class i{constructor(e,t){this.organization=e,this.rbac=t}canActivate(){return this.rbac.ready.pipe(O(()=>this.organization.getUserOrgs()),w(e=>{let t=e.flatMap(l=>l.types).filter(l=>!!l).filter((l,f,d)=>d.indexOf(l)===f);return this.rbac.isPublicUser()||this.rbac.hasPermission("admin.supply-chain.view")||this.rbac.hasPermission("organization.supply-chain.view")&&t.includes(M2.MANUFACTURER)}))}};i.\u0275fac=function(t){return new(t||i)(k(B2),k(y1))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();function Ts(c,i){if(c&1&&(r(0,"ng-option",12),o(1),s()),c&2){let a=i.$implicit;p("value",a.key),m(),_(" ",a.display," ")}}function Ps(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Required length of 5 characters"),s())}function Fs(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Subject cannot exceed 40 characters"),s())}function Ds(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Required length of 5 characters"),s())}function Is(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Body cannot exceed 2000 characters"),s())}function Bs(c,i){if(c&1){let a=b();r(0,"div",3)(1,"div")(2,"clr-control-container",4)(3,"label"),o(4,"Category"),s(),r(5,"ng-select",5),v(6,Ts,2,2,"ng-option",6),s()()(),r(7,"clr-input-container",4)(8,"label"),o(9,"Subject"),s(),u(10,"input",7),v(11,Ps,2,0,"clr-control-error",8)(12,Fs,2,0,"clr-control-error",8),s(),u(13,"div"),r(14,"div")(15,"clr-textarea-container",4)(16,"label"),o(17,"Details"),s(),u(18,"textarea",9),v(19,Ds,2,0,"clr-control-error",8)(20,Is,2,0,"clr-control-error",8),s()(),r(21,"div",10)(22,"button",11),C("click",function(){M(a);let t=h();return V(t.submit())}),o(23),s()()()}if(c&2){let a=h();p("formGroup",a.form),m(6),p("ngForOf",a.categories),m(5),p("clrIfError","minlength"),m(),p("clrIfError","maxlength"),m(7),p("clrIfError","minlength"),m(),p("clrIfError","maxlength"),m(2),p("disabled",a.form.invali
16d||a.loading),m(),W(a.loading?"Sumbitting...":"Submit")}}function Os(c,i){if(c&1){let a=b();r(0,"div",13)(1,"div",14),u(2,"fa-icon",15),s(),r(3,"div",0)(4,"p",16)(5,"strong"),o(6,"Your support request has been sent! An email will be sent to you shortly!"),s()(),r(7,"p",16),o(8,"You can now close this window"),s()(),r(9,"div",10)(10,"button",17),C("click",function(){M(a);let t=h();return V(t.dismiss())}),o(11,"Dismiss"),s()()()}if(c&2){let a=h();m(2),p("icon",a.icons.check)}}var q3=(()=>{let i=class i{constructor(e,t,n){this.user=e,this.org=t,this.cdRef=n,this.openChange=new J,this.categories=[{key:"billing",display:"Billing and Subscriptions"},{key:"technical",display:"Technical Support"},{key:"feature",display:"Feature Request"},{key:"feedback",display:"General Feedback"},{key:"training",display:"Training Request"},{key:"other",display:"Other"}],this.form=new u4({category:new o2(null,v2.required),subject:new o2(null,[v2.minLength(5),v2.maxLength(40)]),details:new o2(null,[v2.minLength(5),v2.maxLength(2e3)])}),this.saved=!1,this.loading=!1,this.icons={check:M7}}ngOnInit(){return k1(this,null,function*(){this.user.getMe().subscribe(e=>{this.me=e,this.form.markAsDirty(),this.form.updateValueAndValidity(),this.cdRef.markForCheck()})})}submit(){this.loading=!0,this.org.sendSupportRequest({requester:this.me.email,subject:this.form.value.subject,category:this.form.value.category,details:this.form.value.details}).subscribe(()=>{console.log("saved"),this.loading=!1,this.saved=!0,this.form.reset(),this.cdRef.markForCheck()})}dismiss(){this.openChange.emit(!1)}};i.\u0275fac=function(t){return new(t||i)(z($2),z(B2),z(q1))},i.\u0275cmp=A({type:i,selectors:[["app-help-desk"]],outputs:{openChange:"openChange"},standalone:!0,features:[K],decls:3,vars:2,consts:[[2,"display","flex","flex-direction","column"],[3,"formGroup",4,"ngIf"],["style","display: flex; flex-direction: column; justify-content: center",4,"ngIf"],[3,"formGroup"],[1,"full-width"],["clrControl","","formControlName","category","bindLabel","category.display","appendTo","body"],[3,"value",4,"ngFor","ngForOf"],["clrInput","","formControlName","subject"],[4,"clrIfError"],["clrTextarea","","formControlName","details"],[2,"display","flex","justify-content","end"],[1,"btn","btn-primary",3,"click","disabled"],[3,"value"],[2,"display","flex","flex-direction","column","justify-content","center"],[2,"display","flex","justify-content","center"],[1,"success-icon",3,"icon"],[2,"text-align","center"],[1,"btn","btn-primary",3,"click"]],template:function(t,n){t&1&&(r(0,"main",0),v(1,Bs,24,8,"div",1)(2,Os,12,1,"div",2),s()),t&2&&(m(),p("ngIf",!n.saved),m(),p("ngIf",n.saved))},dependencies:[p2,W2,g4,H4,G6,q6,s3,r3,l3,o3,G,m2,Z,c3,C1,D2,l1,V3,M3,d0,I2,W1,$1,A2,g2],styles:[".success-icon[_ngcontent-%COMP%]{font-size:8em;color:var(--cm-green)}"]});let c=i;return c})();var Us=()=>({exact:!1});function Gs(c,i){c&1&&(r(0,"app-navigation-sponsor"),u(1,"div",3),s())}function qs(c,i){c&1&&u(0,"div",3)}function js(c,i){if(c&1&&(r(0,"span",22),o(1),s()),c&2){let a=i.ngIf;p("ngClass","badge-"+a.type),m(),_(" ",a.content," ")}}function Ws(c,i){c&1&&(r(0,"span",23),o(1,"PILOT"),s())}function $s(c,i){c&1&&(r(0,"span",24),o(1,"NEW"),s())}function Ks(c,i){if(c&1){let a=b();r(0,"a",17),C("click",function(){M(a);let t=h().$implicit;return V(t.callback==null?null:t.callback())}),u(1,"fa-icon",18),o(2),v(3,js,2,2,"span",19),S(4,"async"),v(5,Ws,2,0,"span",20)(6,$s,2,0,"span",21),s()}if(c&2){let a=h().$implicit;p("routerLink",a.routerLink)("queryParams",a.queryParams)("routerLinkActiveOptions",a.routerLinkOptions||P1(11,Us)),m(),p("icon",a.icon)("fixedWidth",!0),m(),_(" ",a.label," "),m(),p("ngIf",N(4,9,a==null?null:a.badge$)),m(2),p("ngIf",a.pilot),m(),p("ngIf",a.new)}}function Qs(c,i){if(c&1&&(r(0,"span",22),o(1),s()),c&2){let a=i.ngIf;p("ngClass","badge-"+a.type),m(),_(" ",a.content," ")}}function Xs(c,i){if(c&1&&(r(0,"a",27),u(1,"fa-icon",18),o(2),v(3,Qs,2,2,"span",19),S(4,"async"),s()),c&2){let a=i.$implicit;p("routerLink",a.routerLink)("queryParams",a.queryParams),m(),p("icon",a.icon)("fixedWidth",!0),m(),_(" ",a.label," "),m(),p("ngIf",N(4,6,a==null?null:a.badge$))}}function Zs(c,i){if(c&1&&(r(0,"clr-vertical-nav-group",25),u(1,"fa-icon",18),o(2),r(3,"clr-vertical-nav-group-children"),v(4,Xs,5,8,"a",26),s()()),c&2){let a=h().$implicit,e=h(2);p("clrVerticalNavGroupExpanded",a.label!=="Admin"||e.shouldExpand(a)),m(),p("icon",a.icon)("fixedWidth",!0),m(),_(" ",a.label," "),m(2),p("ngForOf",a.children)}}function Ys(c,i){if(c&1&&(F(0),v(1,Ks,7,12,"a",15)(2,Zs,5,5,"clr-vertical-nav-group",16),D()),c&2){let a=i.$implicit;m(),p("ngIf",!a.children),m(),p("ngIf",a.children)}}function Js(c,i){if(c&1&&(F(0),v(1,qs,1,0,"div",14)(2,Ys,3,2,"ng-container",5),D()),c&2){let a=i.$implicit,e=i.index;m(),p("ngIf",e>0),m(),p("ngForOf",a.links)}}function co(c,i){if(c&1){let a=b();r(0,"app-help-desk",28),C("openChange",function(){M(a);let t=h();return V(t.openHelp=!1)}),s()}}function eo(c,i){c&1&&u(0,"app-expired-listings-popup",13),c&2&&p("count",i)}var R0=(()=>{let i=class i{constructor(e,t,n,l,f,d){this.layout=e,this.user=t,this.rbac=n,this.route=l,this.organization=f,this.injector=d,this.hasPilot=!1,this.groups$=E1([this.user.getMe().pipe(Q(g=>!!g)),this.layout.indicators$.pipe(k4(void 0)),Y(void 0)]).pipe(O(([g,H])=>(this.hasPilot=g.feature_flags?.includes("gd_owner")??!1,L6([S4(this.setupPrimaryGroup(g)),S4(this.setupModuleGroup(g,H)),S4(this.setupAdminGroup(g))]).pipe(w(L=>L.filter(T=>!!T)))))),this.collapsed=!1,this.helpIcon=R7,this.openHelp=!1,this.orgMap={}}get indicators$(){return this.layout.indicators$}shouldExpand(e){return e.children?.some(t=>this.route.url.includes(t.routerLink))??!1}setupPrimaryGroup(e){return k1(this,null,function*(){let t=this.injector.get(P8),n=Object.keys(e.permissions).filter(T=>T!=="global").filter(T=>this.rbac.hasPermission("organization.profile.view",T)),l=this.rbac.isPublicUser(),f=n.length===1?{label:"My Organization",icon:p0,routerLink:`/organization/${n[0]}`}:{label:"My Organizations",icon:p0,routerLink:"/organization/profiles"},d=yield w4(t.canActivate()),H=[this.rbac.hasPermission("organization.connections.view")&&n.length?{label:"My Connections",icon:Y7,routerLink:"/organization/connections",badge$:this.layout.indicators$.pipe(w(T=>T.connectionRequests?{content:T.connectionRequests,type:"info"}:void 0))}:void 0,l?void 0:{label:"My Favorites",icon:B7,routerLink:"/organization/favorites"}].filter(T=>
16T),L=[H.length===1?H[0]:{label:"My Network",icon:q7,children:H},this.rbac.hasPermission("organization.profile.view")?f:void 0,d?{label:"Supply Chain",icon:Q7,routerLink:"/supply-chain"}:void 0].filter(T=>T);return L.length?{links:L}:null})}setupModuleGroup(e,t){return k1(this,null,function*(){let n=["admin.organizations.list","license.organizations.search"].some(I=>this.rbac.hasPermission(I)),l=Object.keys(e.permissions).filter(I=>I!=="global").filter(I=>this.rbac.hasPermission("organization.profile.view",I)),f=(yield this.getOrgs(l)).data.flatMap(I=>I.types).filter(I=>!!I).filter((I,V2,a2)=>a2.indexOf(I)===V2),d=this.rbac.isPublicUser(),g=this.setupExploreGroup({orgTypes:f}),H=d||["admin.organizations.list","license.organizations.search","license.organizations.view-within-scope","organization.organization.search"].some(I=>this.rbac.hasPermission(I)),L=d||["admin.exchange-center.list","license.exchange-center.list"].some(I=>this.rbac.hasPermission(I))||[M2.MANUFACTURER,M2.PARTNER,M2.RESEARCHER,M2.WORKFORCE].some(I=>f.includes(I))&&this.rbac.hasPermission("organization.exchange-center-list"),T=n||f.includes(M2.MANUFACTURER),e2=t?.expiredListings?{"filters.postedBy":"myOrgs","filters.myListings.status":"expired",highlightFilters:["status","postedBy"]}:{},X=[H?{label:"Search",icon:Z7,routerLink:"/search"}:void 0,g.length>0?{label:"Explore",icon:T7,children:g}:void 0,L?{label:"Exchange Center",icon:W7,routerLink:"/exchange-center",queryParams:e2}:void 0,T?{label:"Financial Tool",icon:I7,routerLink:"/financial-tool",new:!0}:void 0].filter(I=>I);return X.length?{links:X}:null})}setupExploreGroup(e){let t=["admin.organizations.list","license.organizations.search"].some(f=>this.rbac.hasPermission(f)),n=this.rbac.isPublicUser(),l=f=>f.some(d=>e.orgTypes.includes(d))&&this.rbac.hasPermission("organization.organization.search");return[n||t||l([M2.MANUFACTURER,M2.PARTNER])?{label:"Manufacturers",icon:D7,routerLink:"/explore/manufacturers"}:void 0,n||t||l([M2.MANUFACTURER,M2.PARTNER,M2.RESEARCHER])?{label:"Research",icon:F7,routerLink:"/explore/research"}:void 0,n||t||l([M2.MANUFACTURER,M2.PARTNER,M2.WORKFORCE])?{label:"Workforce",icon:P7,routerLink:"/explore/workforce"}:void 0,t||this.rbac.hasPermission("license.reports.state-illumination")?{label:"State Illumination",icon:Ce,routerLink:"/explore/state-illumination"}:void 0,t||this.rbac.hasPermission("license.reports.state-risk")?{label:"State Risk Report",icon:l0,routerLink:"/admin/exiger-report"}:void 0].filter(f=>!!f)}setupAdminGroup(e){return k1(this,null,function*(){let t=Object.keys(e.permissions).filter(f=>f!=="global").filter(f=>this.rbac.hasPermission("organization.profile.view",f)),n=(yield this.getOrgs(t)).data.flatMap(f=>f.types).filter(f=>!!f).filter((f,d,g)=>g.indexOf(f)===d),l=[...yield this.generalAdminLinks(),...this.backOfficeAdminLinks,...this.billingAdminLinks({orgTypes:n})].filter(f=>f);return l.length?{links:[{label:"Admin",icon:K7,children:l}]}:null})}generalAdminLinks(){return k1(this,null,function*(){let e=this.injector.get(Qe),t=this.injector.get(P8),n=yield w4(e.canActivate()),l=this.rbac.hasPermission("admin.access-approval.list")||this.rbac.hasPermission("license.access-approval.list-scoped"),f=yield w4(t.canActivate());return[l?{label:"Access Requests",icon:E7,routerLink:"/admin/registration-requests",badge$:this.layout.indicators$.pipe(w(d=>d.registrationRequests?{content:d.registrationRequests,type:"info"}:void 0))}:void 0,n?{label:"Reports",icon:l0,routerLink:"/admin/reports"}:void 0,f&&this.hasPilot?{label:"Exiger Report",icon:l0,routerLink:"/admin/exiger-report"}:void 0].filter(d=>d)})}get backOfficeAdminLinks(){return[this.rbac.hasPermission("admin.users.list")?{label:"Users",icon:G7,routerLink:"/admin/user-management"}:void 0,["admin.organizations.list","license.organizations.create","license.organizations.manage-reporting-data"].some(e=>this.rbac.hasPermission(e))?{label:"Organizations",icon:p0,routerLink:"/admin/organizations"}:void 0,this.rbac.hasPermission("admin.lookups.list")?{label:"Lookup Management",icon:ec,routerLink:"/admin/lookup-table-management"}:void 0,this.rbac.hasPermission("admin.geocoding.list-targets")?{label:"Geocoding Targets",icon:cc,routerLink:"/admin/geocoder"}:void 0].filter(e=>e)}billingAdminLinks(e){return[this.rbac.hasPermission("admin.promotions.list")?{label:"Promotions",icon:U7,routerLink:"/admin/promotions"}:void 0,this.rbac.hasPermission("admin.subscriptions.list")?{label:"Subscriptions",icon:a8,routerLink:"/admin/subscriptions"}:void 0,this.rbac.hasPermission("organization.subscriptions.list")&&e.orgTypes.includes(M2.MANUFACTURER)?{label:"My Subscriptions",icon:a8,routerLink:"/subscriptions"}:void 0].filter(t=>t)}getOrgs(e){return k1(this,null,function*(){let t=[],n=[];for(let l of e)this.orgMap[l]?n.push(this.orgMap[l]):t.push(l);return t.length>0&&(yield w4(this.organization.listByIDs(t))).data.map(f=>(this.orgMap[f.identifiers.uuid]=f,n.push(f),f)),{total:Object.keys(this.orgMap).length,data:n}})}};i.\u0275fac=function(t){return new(t||i)(z(S1),z($2),z(y1),z(x1),z(B2),z(y6))},i.\u0275cmp=A({type:i,selectors:[["app-layout-navigation"]],standalone:!0,features:[K],decls:18,vars:14,consts:[[1,"nav-trigger--bottom",3,"clrVerticalNavCollapsedChange","clrVerticalNavCollapsed","clr-nav-level","clrVerticalNavCollapsible"],["fxHide.gt-sm",""],["fxHide.gt-sm","","src","../../../assets/images/logo-color-tagline.svg","alt","CONNEX Marketplace",1,"logo"],[1,"nav-divider"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"nav-btn"],["clrVerticalNavLink","",1,"hover",3,"click"],["clrVerticalNavIcon","",1,"nav-icon",3,"fixedWidth","icon"],["clrModalSize","xl",3,"clrModalOpenChange","clrModalOpen"],[1,"modal-title"],[1,"modal-body"],[3,"openChange",4,"ngIf"],[3,"count"],["class","nav-divider",4,"ngIf"],["class","clickable","clrVerticalNavLink","","routerLinkActive","active",3,"routerLink","queryParams","routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","active",3,"clrVerticalNavGroupExpanded",4,"ngIf"],["clrVerticalNavLink","","routerLinkActive","active",1,"clickable",3,"click","routerLink","queryParams","routerLinkActiveOptions"],["clrVerticalNavIcon","",1,"nav-icon",3,"icon","fixedWidth"],["class","badge",3,"ngClass",4,"ngIf"],["class","badge badge-warning",4,"ngIf"],["class","badge badge-success",4,"ngIf"],[1,"badge",3,"ngClass"],[1,"badge","badge-warning"],[1,"badge","badge-success"],["routerLinkActive","active",3,"clrVerticalNavGroupExpanded"],["clrVerticalNavLink","","routerLinkActive","active",3,"routerLink","queryParams",4,"ngFor","ngForOf"],["clrVerticalNavLink","","routerLinkActive","active",3,"routerLink","queryParams"],[3,"openChange"]],template:function(t,n){if(t&1&&(r(0,"clr-vertical-nav",0),s1("clrVerticalNavCollapsedChange",function(f){return r1(n.collapsed,f)||(n.collapsed=f),f}),r(1,"div",1),u(2,"img",2)(3,"div",3),s(),v(4,Gs,2,0,"app-navigation-sponsor",4)(5,Js,3,2,"ng-container",5),S(6,"async"),u(7,"div",6),r(8,"a",7),C("click",function(){return n.openHelp=!0}),u(9,"fa-icon",8),o(10," Help "),s()(),r(11,"clr-modal",9),s1("clrModalOpenChange",function(f){return r1(n.openHelp,f)||(n.openHelp=f),f}),r(12,"h3",10),o(13,"Help Desk"),s(),r(14,"div",11),v(15,co,1,0,"app-help-desk",12),s()(),v(16,eo,1,1,"app-expired-listings-popup",13),S(17,"async")),t&2){let l;n1("clrVerticalNavCollapsed",n.collapsed),p("clr-nav-level",1)("clrVerticalNavCollapsible",!0),m(4),p("ngIf",!n.collapsed),m(),p("ngForOf",N(6,10,n.groups$)),m(4),p("fixedWidth",!0)("icon",n.helpIcon),m(2),n1("clrModalOpen",n.openHelp),m(4),p("ngIf",n.openHelp),m(),x2(16,(l=(l=N(17,12,n.indicators$))==null?null:l.expiredListings)?16:-1,l)}},dependencies:[p2,f1,b1,n7,Z6,Y6,r7,s7,o7,G,g1,m2,Z,k2,H6,c6,v0,y3,q3,A2,g2,Ke,L1,Q1,U6],styles:["clr-vertical-nav[_ngcontent-%COMP%]{height:100%}.logo[_ngcontent-%COMP%]{padding:1em;max-width:100%}.hover[_ngcontent-%COMP%]:hover{cursor:pointer}"],changeDetection:0});let c=i;return c})();var io=["searchInput"],Xe=()=>["center-right"];function to(c,i){c&1&&(r(0,"div",20)(1,"a",21),o(2,"Register My Organization"),s()())}function no(c,i){if(c&1&&u(0,"fa-layers-counter",34),c&2){let a=i.ngIf;p("content",a.toString())("classes",P1(2,Xe))}}function ro(c,i){if(c&1){let a=b();r(0,"a",33),C("click",function(t){M(a);let n=h(2);return V(n.messageClick.emit(t))}),r(1,"fa-layers",25)(2,"fa-layers",25),u(3,"fa-icon",9),v(4,no,1,3,"fa-layers-counter",26),S(5,"async"),s()()()}if(c&2){let a,e=h(2);m(),p("fixedWidth",!0),m(),p("fixedWidth",!0),m(),p("icon",e.icons.message),m(),p("ngIf",(a=N(
165,4,e.indicators$))==null?null:a.unreadMessages)}}function so(c,i){if(c&1&&u(0,"fa-layers-counter",34),c&2){let a=i.ngIf;p("content",a)("classes",P1(2,Xe))}}function oo(c,i){if(c&1){let a=b();r(0,"clr-dropdown-menu",35)(1,"a",36),o(2,"Account"),s(),r(3,"a",37),o(4,"Preferences"),s(),r(5,"a",38),C("click",function(){M(a);let t=h(2);return V(t.openHelp=!0)}),o(6,"Help"),s(),u(7,"div",39),r(8,"a",38),C("click",function(){M(a);let t=h(2);return V(t.logout())}),o(9,"Log out"),s()()}}function lo(c,i){if(c&1){let a=b();F(0),r(1,"a",22),C("click",function(){M(a);let t=h();return V(t.showMobileSearch=!t.showMobileSearch)}),u(2,"fa-icon",9),s(),v(3,ro,6,6,"a",23),r(4,"a",24),C("click",function(t){M(a);let n=h();return V(n.notificationClick.emit(t))}),r(5,"fa-layers",25),u(6,"fa-icon",9),v(7,so,1,3,"fa-layers-counter",26),S(8,"async"),s()(),r(9,"clr-dropdown")(10,"button",27)(11,"fa-layers",28),u(12,"fa-icon",29)(13,"fa-icon",30),s(),r(14,"span",31)(15,"span"),o(16),S(17,"async"),s(),u(18,"fa-icon",9),s()(),v(19,oo,10,0,"clr-dropdown-menu",32),s(),D()}if(c&2){let a,e=h();m(2),p("icon",e.icons.search),m(),p("ngIf",e.permissions.messaging),m(2),p("fixedWidth",!0),m(),p("icon",e.icons.notification),m(),p("ngIf",N(8,10,e.notificationCount$)),m(4),p("fixedWidth",!0),m(),p("icon",e.icons.user),m(),p("icon",e.icons.carat),m(3),W((a=N(17,12,e.user$))==null?null:a.email),m(2),p("icon",e.icons.carat)}}function fo(c,i){if(c&1){let a=b();r(0,"app-help-desk",40),C("openChange",function(){M(a);let t=h();return V(t.openHelp=!1)}),s()}}var Ze=(()=>{let i=class i{constructor(e,t,n,l,f,d,g){this.auth=e,this.router=t,this.userService=n,this.notificationService=l,this.rbac=f,this.layout=d,this.message=g,this.showMobileSearch=!1,this.notificationClick=new J,this.messageClick=new J,this.user$=this.userService.getMe().pipe(Q(H=>!!H)),this.icons={carat:f0,search:y7,notification:m0,message:O7,user:o0,close:t0},this.openHelp=!1,this.isPublic=!1,this.permissions={messaging:!1},this.indicators$=this.layout.indicators$,this.unsubscribe$=new B,this.user$.pipe(O(H=>this.message.userHasMessageAccess$(H)),P(this.unsubscribe$)).subscribe(H=>{this.isPublic=this.rbac.isPublicUser(),this.permissions.messaging=H}),this.notificationCount$=this.notificationService.notificationStream$.pipe(w(H=>{let L=H.filter(T=>T.channel===n4.APP);return L.length?L.length.toString():null}),W3())}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}get environmentName(){return q.name}logout(){this.auth.logout().subscribe({next:()=>{this.router.navigateByUrl("/login")}})}search(e){if(!e.trim())return;let t=encodeURIComponent(e.trim());this.searchTerm="",this.searchInput.nativeElement.blur(),this.router.navigateByUrl(`/search/organization?query=${t}`)}};i.\u0275fac=function(t){return new(t||i)(z(C3),z(x1),z($2),z(J1),z(y1),z(S1),z(w1))},i.\u0275cmp=A({type:i,selectors:[["app-layout-header"]],viewQuery:function(t,n){if(t&1&&Z2(io,5),t&2){let l;R2(l=U2())&&(n.searchInput=l.first)}},hostVars:2,hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2),t&2&&t1("mobile-search",n.showMobileSearch)},outputs:{notificationClick:"notificationClick",messageClick:"messageClick"},decls:27,vars:10,consts:[["searchInput",""],["fxHide","","fxShow.gt-sm","",1,"branding",3,"title"],["routerLink","/",1,"nav-link"],["src","../../../assets/images/logo-white.svg","alt","CONNEX Marketplace",1,"logo"],["fxFlex","","fxHide","","fxShow.gt-sm","",1,"search",3,"ngSubmit"],[1,"search-input"],["type","search","placeholder","Search CONNEX Marketplace","name","search",2,"width","100%",3,"ngModelChange","ngModel"],[1,"input-actions"],[1,"btn","btn-icon"],[3,"icon"],["fxShow","","fxHide.gt-sm","",1,"search","search-mobile",3,"ngSubmit"],["type","search","placeholder","Search CONNEX Marketplace","name","search",3,"ngModelChange","ngModel"],["type","button",1,"btn","btn-icon",3,"click"],["class","register-section",4,"ngIf"],[1,"header-actions","header-actions--overflow"],[4,"ngIf"],["clrModalSize","xl",3,"clrModalOpenChange","clrModalOpen"],[1,"modal-title"],[1,"modal-body"],[3,"openChange",4,"ngIf"],[1,"register-section"],["routerLink","/register",1,"btn","btn-outline-primary","register-btn",2,"background-color","white"],["fxShow","","fxHide.gt-sm","","aria-label","search",1,"nav-link","nav-icon",3,"click"],["class","nav-link nav-icon","aria-label","view messages",3,"click",4,"ngIf"],["aria-label","view notifications",1,"nav-link","nav-icon",3,"click"],[3,"fixedWidth"],[3,"content","classes",4,"ngIf"],["aria-label","open user menu","clrDropdownTrigger","",1,"dropdown-toggle","user-menu-trigger","nav-text"],["fxShow","","fxHide.gt-sm","",3,"fixedWidth"],["transform","left-2",3,"icon"],["transform","shrink-5 right-10",3,"icon"],["fxHide","","fxShow.gt-sm",""],["clrPosition","bottom-right",4,"clrIfOpen"],["aria-label","view messages",1,"nav-link","nav-icon",3,"click"],[3,"content","classes"],["clrPosition","bottom-right"],["clrDropdownItem","","routerLink","/account"],["clrDropdownItem","","routerLink","/account/preferences"],["clrDropdownItem","",3,"click"],["role","separator","aria-hidden","true",1,"dropdown-divider"],[3,"openChange"]],template:function(t,n){if(t&1){let l=b();r(0,"div",1)(1,"a",2),u(2,"img",3),s()(),r(3,"form",4),C("ngSubmit",function(){return M(l),V(n.search(n.searchTerm))}),r(4,"div",5)(5,"input",6,0),s1("ngModelChange",function(d){return M(l),r1(n.searchTerm,d)||(n.searchTerm=d),V(d)}),s(),r(7,"div",7)(8,"button",8),u(9,"fa-icon",9),s()()()(),r(10,"form",10),C("ngSubmit",function(){return M(l),V(n.search(n.searchTerm))}),r(11,"div",5)(12,"input",11,0),s1("ngModelChange",function(d){return M(l),r1(n.searchTerm,d)||(n.searchTerm=d),V(d)}
16),s(),r(14,"div",7)(15,"button",8),u(16,"fa-icon",9),s(),r(17,"button",12),C("click",function(){return M(l),V(n.showMobileSearch=!1)}),u(18,"fa-icon",9),s()()()(),v(19,to,3,0,"div",13),r(20,"div",14),v(21,lo,20,14,"ng-container",15),s(),r(22,"clr-modal",16),s1("clrModalOpenChange",function(d){return M(l),r1(n.openHelp,d)||(n.openHelp=d),V(d)}),r(23,"h3",17),o(24,"Help Desk"),s(),r(25,"div",18),v(26,fo,1,0,"app-help-desk",19),s()()}t&2&&(p("title",n.environmentName),m(5),n1("ngModel",n.searchTerm),m(4),p("icon",n.icons.search),m(3),n1("ngModel",n.searchTerm),m(4),p("icon",n.icons.search),m(2),p("icon",n.icons.close),m(),p("ngIf",n.isPublic),m(2),p("ngIf",!n.showMobileSearch),m(),n1("clrModalOpen",n.openHelp),m(4),p("ngIf",n.openHelp))},dependencies:[f1,b1,v4,f3,p3,d3,m3,Z,C0,v0,g2,e0,a0,R6,C1,D2,l1,O6,B6,Q1,q3,k2],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto}[_nghost-%COMP%]   .branding[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{height:100%;display:block}[_nghost-%COMP%]   .search[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{width:0px;overflow:hidden;will-change:width;transition:width .3s}[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:none;width:100%;padding-right:6em}.mobile-search[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]{width:100%}.mobile-search[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{width:100%}.user-menu-trigger[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-left:.4em}.nav-link[_ngcontent-%COMP%]{cursor:pointer}.register-section[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;align-items:center;justify-content:flex-end}.search[_ngcontent-%COMP%]{padding:0 1em;opacity:1}.search[_ngcontent-%COMP%]:focus-within   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:var(--cm-white);color:initial;opacity:initial}.search[_ngcontent-%COMP%]:focus-within   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:initial}.search[_ngcontent-%COMP%]:focus-within   .search-input[_ngcontent-%COMP%]   .input-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{color:var(--cm-primary);opacity:initial}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{color:#fff}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;border-radius:3px;padding:.3rem .5rem;padding-right:3em;background-color:var(--cm-primary);transition:.1s background-color;color:inherit;max-width:40ch;min-width:23ch}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#fff;opacity:.4;transition:.1s color}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{outline-color:var(--cm-primary);outline-style:dotted;outline-offset:-1px}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   .input-actions[_ngcontent-%COMP%]{display:inline-block;border:none;border-radius:0 3px 3px 0;transform:translate(-100%);opacity:.4}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   .input-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border:none;color:var(--cm-primary);transition:.1s color;margin:0}.register-btn[_ngcontent-%COMP%]{border-width:0;color:var(--cm-blue)}"]});let c=i;return c})();function po(c,i){c&1&&u(0,"app-message-sidebar")}var qg=(()=>{let i=class i{constructor(e,t){this.user=e,this.message=t,this.messagesOpen=!1,this.notificationsOpen=!1,this.permissions={},this.unsubscribe$=new B}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}ngOnInit(){this.user.getMe().pipe(Q(e=>!!e),O(e=>this.message.userHasMessageAccess$(e)),P(this.unsubscribe$)).subscribe(e=>{this.permissions.messaging=e})}toggleNotifications(){this.notificationsOpen=!this.notificationsOpen,this.messagesOpen=!1}toggleMessages(){this.message.open$.next(!this.message.open$.value)}};i.\u0275fac=function(t){return new(t||i)(z($2),z(w1))},i.\u0275cmp=A({type:i,selectors:[["app-layout"]],hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},decls:11,vars:2,consts:[[1,"header"],[3,"notificationClick","messageClick"],[1,"content-container"],[1,"content-area"],[3,"openChange","open"],[4,"ngIf"]],template:function(t,n){t&1&&(r(0,"clr-main-container"),u(1,"app-alert"),r(2,"clr-header",0)(3,"app-layout-header",1),C("notificationClick",function(){return n.toggleNotifications()})("messageClick",function(){return n.toggleMessages()}),s()(),r(4,"div",2),u(5,"app-layout-navigation"),r(6,"div",3),u(7,"router-outlet"),s(),r(8,"app-notification-sidebar",4),s1("openChange",function(f){return r1(n.notificationsOpen,f)||(n.notificationsOpen=f),f}),s(),v(9,po,1,0,"app-message-sidebar",5),s()(),u(10,"app-popup-notifications")),t&2&&(m(8),n1("open",n.notificationsOpen),m(),p("ngIf",n.permissions.messaging))},dependencies:[e7,t7,i7,a7,Z,be,C5,P0,O0,R0,Ze,He],styles:[".content-container[_ngcontent-%COMP%]{position:relative}"]});let c=i;return c})();var ho=()=>["center-right"];function uo(c,i){c&1&&(r(0,"clr-accordion-content"),o(1,"Content 1"),s())}function zo(c,i){c&1&&(r(0,"clr-accordion-content"),o(1,"Content 2"),s())}function vo(c,i){c&1&&(r(0,"clr-accordion-content"),o(1,"Content 3"),s())}function go(c,i){c&1&&(r(0,"clr-signpost-content")(1,"h3"),o(2,"Default Signpost"),s(),r(3,"p"),o(4,"Position: "),r(5,"code",271),o(6,"right-middle"),s()()())}var $g=(()=>{let i=class i{constructor(){this.icons={notification:m0,user:o0,carat:f0}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A({type:i,selectors:[["app-branding"]],decls:1024,vars:11,consts:[["id","logos"],[1,"logos"],["src","../../../assets/images/logo-color-tagline.svg"],["src","../../../assets/images/logo-color.svg"],["src","../../../assets/images/logo-white-tagline.png",1,"alpha-layer"],["src","../../../assets/images/logo-white.svg",1,"alpha-layer"],["id","typography"],["id","text-styles"],[1,"p1"],[1,"p2"],[1,"p3"],[1,"p4"],[1,"p5"],[1,"p6"],[1,"p7"],[1,"p8"],[1,"language-html"],["id","header-styles"],["id","colors"],[1,"colors"],[1,"white"],[1,"red"],[1,"blue"],[1,"gray"],[1,"black"],[1,"dark-gray"],[1,"blue-highlight"],[1,"sapphire"],[1,"muted-blue"],[1,"indigo"],[1,"police-blue"],[1,"green"],[1,"light-green"],[1,"orange"],[1,"light-orange"],[1,"light-red"],[1,"light-sapphire"],[1,"main-container","layout-example"],[1,"header"],[1,"branding"],[1,"nav-link"],["src","../../../assets/images/logo-white.svg","alt","CONNEX Marketplace",1,"logo"],[1,"search"],[1,"search-input"],["type","search","placeholder","Search CONNEX Marketplace","name","search",2,"width","100%"],[1,"header-actions","header-actions--overflow"],["aria-label","view notifications",1,"nav-link","nav-icon"],[3,"fixedWidth"],[3,"icon"],["content","5",3,"classes"],[1,"dropdown","open"],["ngClass.lt-md","nav-icon","ngClass.gt-sm","nav-text","aria-label","open user menu",1,"dropdown-toggle","user-menu-trigger"],[1,"content-container"],["clrVerticalNavLink","","routerLinkActive","active"],[1,"nav-divider"],["clrVerticalNavLink","",1,"active"],[1,"content-area"],[4,"clrIfExpanded"],["clrAlertType","danger",3,"clrAlertAppLevel"],[1,"alert-text"],[1,"alert-actions"],[1,"alert-action"],["clrAlertType","warning",3,"clrAlertAppLevel"],["clrAlertType","info",3,"clrAlertAppLevel"],["clrAlertType","success",3,"clrAlertAppLevel"],["clrAlertType","danger"],["clrAlertType","warning"],["clrAlertType","info"],["clrAlertType","success"],[1,"badge"],[1,"clr-sr-only"],[1,"badge","badge-purple"],[1,"badge","badge-blue"],[1,"badge","badge-orange"],[1,"badge","badge-light-blue"],[1,"badge","badge-1"],[1,"badge","badge-2"],[1,"badge","badge-3"],[1,"badge","badge-4"],[1,"badge","badge-5"],[1,"badge","badge-info"],[1,"badge","badge-success"],[1,"badge","badge-warning"],[1,"badge","badge-danger"],[1,"btn","btn-primary"],[1,"btn","btn-success"],[1,"btn","btn-warning"],[1,"btn","btn-danger"],["disabled","",1,"btn","btn-danger"],[1,"btn","btn-outline"],[1,"btn","btn-success-outline"],[1,"btn","btn-info-outline"],[1,"btn","btn-warning-outline"],[1,"btn","btn-danger-outline"],["disabled","",1,"btn","btn-outline"],[1,"btn","btn-link"],["disabled","",1,"btn","btn-link"],[1,"btn","btn-sm","btn-link"],["disabled","",1,"btn","btn-sm","btn-link"],[1,"btn-group","btn-primary",2,"margin-top",".4rem"],[1,"btn"],[1,"btn-group",2,"margin-top",".4rem"],[1,"clr-row"],[1,"clr-col-lg-4","clr-col-12"],[1,"card","clickable"],[1,"card-img"],["src","https://via.placeholder.com/600x200"],[1,"card-block"],[1,"card-text"],[1,"dropdown","open",2,"margin-bottom","12rem"],["type","button",1,"dropdown-toggle","btn","btn-primary"],["shape","angle","direction","down"],[1,"dropdown-menu"],[1,"dropdown-header"],[1,"dropdown-item","active"],[1,"dropdown-item","disabled"],["role","separator",1,"dropdown-divider"],[1,"dropdown-item"],[1,"dropdown","open","right-bottom"],[1,"dropdown-item","active","expandable"],[1,"dropdown","open","right-top"],[2,"display","flex","gap","2em"],[1,"clr-form-control"],[1,"clr-control-label"],[1,"clr-control-container"],[1,"clr-checkbox-wrapper"],["type","checkbox","id","vertical-checkbox1","name","checkbox-full-1","value","o
16ption1",1,"clr-checkbox"],["for","vertical-checkbox1",1,"clr-control-label"],["type","checkbox","id","vertical-checkbox2","name","checkbox-full-2","value","option2",1,"clr-checkbox"],["for","vertical-checkbox2",1,"clr-control-label"],["type","checkbox","id","vertical-checkbox3","name","checkbox-full-3","value","option3",1,"clr-checkbox"],["for","vertical-checkbox3",1,"clr-control-label"],[1,"clr-subtext-wrapper"],["shape","exclamation-circle",1,"clr-validate-icon"],[1,"clr-subtext"],[1,"clr-control-container","clr-error"],["type","checkbox","id","vertical-normal-checkbox1","name","checkbox-error-1","value","option1",1,"clr-checkbox"],["for","vertical-normal-checkbox1",1,"clr-control-label"],["type","checkbox","id","vertical-normal-checkbox2","name","checkbox-error-2","value","option2",1,"clr-checkbox"],["for","vertical-normal-checkbox2",1,"clr-control-label"],["type","checkbox","id","vertical-normal-checkbox3","name","checkbox-error-3","value","option3",1,"clr-checkbox"],["for","vertical-normal-checkbox3",1,"clr-control-label"],[1,"clr-form-control","clr-form-control-disabled"],["type","checkbox","id","checkbox10","name","checkbox-disabled-1","value","option1","disabled","",1,"clr-checkbox"],["for","checkbox10",1,"clr-control-label"],["type","checkbox","id","checkbox11","name","checkbox-disabled-2","value","option2","disabled","",1,"clr-checkbox"],["for","checkbox11",1,"clr-control-label"],["type","checkbox","id","checkbox12","name","checkbox-disabled-3","value","option3","disabled","",1,"clr-checkbox"],["for","checkbox12",1,"clr-control-label"],["name","two","placeholder","Select a number"],["clrValue","1"],["clrValue","2"],["clrValue","3"],["type","date","clrDate","","name","demo"],[1,"clr-form"],["for","basic",1,"clr-control-label"],[1,"clr-input-wrapper"],["type","text","id","basic","placeholder","Enter value here",1,"clr-input"],[2,"display","flex","gap","1em"],[1,"clr-radio-wrapper"],["type","radio","id","vertical-radio1","name","radio-full","value","option1",1,"clr-radio"],["for","vertical-radio1",1,"clr-control-label"],["type","radio","id","vertical-radio2","name","radio-full","value","option2",1,"clr-radio"],["for","vertical-radio2",1,"clr-control-label"],["type","radio","id","vertical-radio3","name","radio-full","value","option3",1,"clr-radio"],["for","vertical-radio3",1,"clr-control-label"],["type","radio","id","vertical-error-radio1","name","radio-full","value","option1",1,"clr-radio"],["for","vertical-error-radio1",1,"clr-control-label"],["type","radio","id","vertical-error-radio2","name","radio-full","value","option2",1,"clr-radio"],["for","vertical-error-radio2",1,"clr-control-label"],["type","radio","id","vertical-error-radio3","name","radio-full","value","option3",1,"clr-radio"],["for","vertical-error-radio3",1,"clr-control-label"],[1,"clr-control-container","clr-form-control-disabled"],["type","radio","id","vertical-radio1","name","radio-full","value","option1","disabled","",1,"clr-radio"],["type","radio","id","vertical-radio2","name","radio-full","value","option2","disabled","",1,"clr-radio"],["type","radio","id","vertical-radio3","name","radio-full","value","option3","disabled","",1,"clr-radio"],["clrForm",""],[3,"clrRangeHasProgress"],["type","range","clrRange","","name","range-three"],["type","range","clrRange","","name","range-four","disabled",""],["for","select-full",1,"clr-control-label"],[1,"clr-select-wrapper"],["id","select-full",1,"clr-select"],["value","1"],["value","2"],["value","3"],["for","select-error",1,"clr-control-label"],["id","select-error",1,"clr-select"],["for","vertical-textarea-basic",1,"clr-control-label"],[1,"clr-textarea-wrapper"],["id","vertical-textarea-basic","placeholder","Enter value here",1,"clr-textarea"],[2,"display","flex","gap","1rem"],[1,"clr-toggle-wrapper"],["type","checkbox","id","toggle1","name","toggle-full","value","option1",1,"clr-toggle"],["for","toggle1",1,"clr-control-label"],["type","checkbox","id","toggle2","name","toggle-full","value","option2",1,"clr-toggle"],["for","toggle2",1,"clr-control-label"],["type","checkbox","id","toggle3","name","toggle-full","value","o
16ption3",1,"clr-toggle"],["for","toggle3",1,"clr-control-label"],["type","checkbox","id","toggle1-error","name","toggle-full","value","option1",1,"clr-toggle"],["for","toggle1-error",1,"clr-control-label"],["type","checkbox","id","toggle2-error","name","toggle-full","value","option2",1,"clr-toggle"],["for","toggle2-error",1,"clr-control-label"],["type","checkbox","id","toggle3-error","name","toggle-full","value","option3",1,"clr-toggle"],["for","toggle3-error",1,"clr-control-label"],["type","checkbox","id","toggle1-disabled","disabled","","name","toggle-full","value","option1",1,"clr-toggle"],["for","toggle1-disabled",1,"clr-control-label"],["type","checkbox","id","toggle2-disabled","disabled","","name","toggle-full","value","option2",1,"clr-toggle"],["for","toggle2-disabled",1,"clr-control-label"],["type","checkbox","id","toggle3-disabled","disabled","","name","toggle-full","value","option3",1,"clr-toggle"],["for","toggle3-disabled",1,"clr-control-label"],[1,"clickable","label"],[1,"clickable","label","label-purple"],[1,"clickable","label","label-blue"],[1,"clickable","label","label-orange"],[1,"clickable","label","label-light-blue"],[1,"label","label-info"],[1,"label","label-success"],[1,"label","label-warning"],[1,"label","label-danger"],["clrValue","40","clrMax","100"],["clrValue","75","clrLoop",""],["clrValue","65","clrSuccess","","clrLabeled",""],[1,"progress-block"],["for","demoProgressBar"],["id","demoProgressBar","clrValue","85"],[1,"progress","danger"],["max","100","value","50"],[4,"clrIfOpen"],[1,"spinner","spinner-inline"],[1,"stack-view"],[1,"stack-block"],[1,"stack-block-label"],["aria-level","1","aria-posinset","1","aria-setsize","3",1,"stack-view-key"],[1,"stack-block-content"],[1,"stack-block","stack-block-expandable","stack-block-expanded"],["aria-level","1","aria-posinset","2","aria-setsize","3",1,"stack-view-key"],[1,"stack-children"],[1,"stack-view-key"],[1,"stack-block","stack-block-expandable"],["aria-level","1","aria-posinset","3","aria-setsize","3",1,"stack-view-key"],[1,"table"],[1,"table","table-noborder"],[1,"left"],[1,"table","table-vertical"],["id","demoTabs","role","tablist",1,"nav"],["role","presentation",1,"nav-item"],["id","tab1","aria-controls","panel1","aria-selected","true","type","button",1,"btn","btn-link","nav-link","active"],["id","tab2","aria-controls","panel2","aria-selected","false","type","button",1,"btn","btn-link","nav-link"],["id","tab3","aria-controls","panel3","aria-selected","false","type","button",1,"btn","btn-link","nav-link"],["id","panel1","role","tabpanel","aria-labelledby","tab1"],["id","panel2","role","tabpanel","aria-labelledby","tab2","aria-hidden","true"],["id","panel3","role","tabpanel","aria-labelledby","tab3","aria-hidden","true"],[2,"margin-top","2rem"],[1,"tabs-vertical"],["href","...","role","tooltip","aria-haspopup","true",1,"tooltip","tooltip-xs"],["shape","info-circle","size","24"],[1,"tooltip-content"],[1,"clr-timeline"],[1,"clr-timeline-step","disabled"],[1,"clr-timeline-step-header"],["role","img","shape","circle","aria-label","Not started"],[1,"clr-timeline-step-body"],[1,"clr-timeline-step-title"],[1,"clr-timeline-step-description"],[1,"clr-timeline-step"],["role","img","shape","dot-circle","aria-current","true","aria-label","Current"],[1,"btn","btn-sm"],["clrMedium","","aria-label","In progress"],["role","img","shape","success-standard","aria-label","Completed"],["role","img","shape","error-standard","aria-label","Error"],[1,"clr-code"]],template:function(t,n){t&1&&(r(0,"h1"),o(1,"Branding test page"),s(),r(2,"section")(3,"h2",0),o(4,"Logos"),s(),r(5,"main")(6,"div",1),u(7,"img",2)(8,"img",3)(9,"img",4)(10,"img",5),s()()(),r(11,"section")(12,"h2",6),o(13,"Typography"),s(),r(14,"main")(15,"h3",7),o(16,"Text styles"),s(),r(17,"p",8),o(18,"Body text"),s(),r(19,"p",9),o(20,"Section header"),s(),r(21,"p",10),o(22,"Table, grid, and form text"),s(),r(23,"p",11),o(24,"Form labels and column headers"),s(),r(25,"p",12),o(26,"Table footers and chart data"),s(),r(27,"p",13),o(28,"Mostly buttons"),s(),r(29,"p",14),o(30,"Tags and labels"),s(),r(31,"p",15),o(32,"Badges"),s(),r(33,"pre",16),o(34,"Monospaced"),s(),r(35,"code",16),o(36,"Monospaced"),s(),r(37,"h3",17),o(38,"Header styles"),s(),r(39,"h1"),o(40,"Header 1 (Display)"),s(),r(41,"h2"),o(42,"Header 2 (Headline)"),s(),r(43,"h3"),o(44,"Header 3 (Sub Heading)"),s(),r(45,"h4"),o(46,"Header 4 (Section Heading Level 1)"),s(),r(47,"h5"),o(48,"Header 5 (Category / group label, TOC)"),s(),r(49,"h6"),o(50,"Header 6 (Section Heading Level 2 group label)"),s()()(),r(51,"section")(52,"h2",18),o(53,"Colors"),s(),r(54,"main")(55,"strong"),o(56,"Primary"),s(),r(57,"div",19),u(58,"span",20)(59,"span",21)(60,"span",22)(61,"span",23),s(),r(62,"strong"),o(63,"Secondary"),s(),r(64,"div",19),u(65,"span",24)(66,"span",25)(67,"span",26)(68,"span",27)(69,"span",28)(70,"span",29)(71,"span",30),s(),r(72,"strong"),o(73,"Inferred"),s(),r(74,"div",19),u(75,"span",31)(76,"span",32)(77,"span",33)(78,"span",34)(79,"span",35)(80,"span",36),s()()(),r(81,"section")(82,"h2"),o(83,"Layout"),s(),r(84,"main")(85,"div",37)(86,"header",38)(87,"div",39)(88,"a",40),u(89,"img",41),s()(),r(90,"form",42)(91,"div",43),u(92,"input",44),s()(),r(93,"div",45),F(94),r(95,"a",46)(96,"fa-layers",47),u(97,"fa-icon",48)(98,"fa-layers-counter",49),s()(),r(99,"div",50)(100,"button",51)(101,"span")(102,"span"),o(103,"[email protected]"),s(),u(104,"fa-icon",48),s()()(),D(),s()(),r(105,"div",52)(106,"clr-vertical-nav")(107,"a",53),o(108,"Link 1"),s(),r(109,"a",53),o(110,"Link 2"),s(),r(111,"a",53),o(112,"Link 3"),s(),u(113,"div",54),r(114,"a",55),o(115,"Link 4"),s()(),r(116,"div",56),o(117," Content in here "),s()()()()(),r(118,"section")(119,"h2"),o(120,"Components"),s(),r(121,"main")(122,"h3"),o(123,"Accordion"),s(),r(124,"clr-accordion")(125,"clr-accordion-panel")(126,"clr-accordion-title"),o(127,"Item 1"),s(),v(128,uo,2,0,"clr-accordion-content",57),s(),r(129,"clr-accordion-panel")(130,"clr-accordion-title"),o(131,"Item 2"),s(),v(132,zo,2,0,"clr-accordion-content",57),s(),r(133,"clr-accordion-panel")(134,"clr-accordion-title"),o(135,"Item 3"),s(),v(136,vo,2,0,"clr-accordion-content",57),s()(),r(137,"h3"),o(138,"Alerts"),s(),r(139,"h4"),o(140,"App-level"),s(),r(141,"div")(142,"clr-alert",58)(143,"clr-alert-item")(144,"div",59),o(145,"Debitis alias molestiae explicabo."),s(),r(146,"div",60)(147,"a",61),o(148,"Actions"),s()()(),r(149,"clr-alert-item")(150,"div",59),o(151,"Ipsam ab molestiae vel doloremque molestias nesciunt et. Est quam quis mollitia optio ut saepe ad ut. Nesciunt enim facilis hic illum illum tempore ullam. Est qui qui inventore vitae error. Sed eos nemo fuga neque. Et et et nihil laborum nisi accusantium."),s(),r(152,"div",60)(153,"a",61),o(154,"Actions"),s()()()(),r(155,"clr-alert",62)(156,"clr-alert-item")(157,"div",59),o(158,"Eaque aspernatur nisi asperiores quaerat doloribus quis eum."),s(),r(159,"div",60)(160,"a",61),o(161,"Actions"),s()()()(),r(162,"clr-alert",63)(163,"clr-alert-item")(164,"div",59),o(165,"Soluta aspernatur magni quo occaecati magnam."),s()()(),r(166,"clr-alert",64)(167,"clr-alert-item")(168,"div",59),o(169,"Non ex libero."),s()()()(),r(170,"h4"),o(171,"Inline"),s(),r(172,"div")(173,"clr-alert",65)(174,"clr-alert-item")(175,"div",59),o(176,"Debitis alias molestiae explicabo."),s(),r(177,"div",60)(178,"a",61),o(179,"Actions"),s()()(),r(180,"clr-alert-item")(181,"div",59),o(182,"Ipsam ab molestiae vel doloremque molestias nesciunt et. Est quam quis mollitia optio ut saepe ad ut. Nesciunt enim facilis hic illum illum tempore ullam. Est qui qui inventore vitae error. Sed eos nemo fuga neque. Et et et nihil laborum nisi accusantium."),s(),r(183,"div",60)(184,"a",61),o(185,"Actions"),s()()()(),r(186,"clr-alert",66)(187,"clr-alert-item")(188,"div",59),o(189,"Eaque aspernatur nisi asperiores quaerat doloribus quis eum."),s(),r(190,"div",60)(191,"a",61),o(192,"Actions"),s()()()(),r(193,"clr-alert",67)(194,"clr-alert-item")(195,"div",59),o(196,"Soluta aspernatur magni quo occaecati magnam."),s()()(),r(197,"clr-alert",68)(198,"clr-alert-item")(199,"div",59),o(200,"Non ex libero."),s()()()(),r(201,"h3"),o(202,"Badges"),s(),r(203,"span",69),o(204,"1 "),r(205,"span",70),o(206,"item in a badge"),s()(),r(207,"span",71),o(208,"15 "),r(209,"span",70),o(210,"items in a purple badge"),s()(),r(211,"span",72),o(212,"2 "),r(213,"span",70),o(214,"items in a blue badge"),s()(),r(215,"span",73),o(216,"3 "),r(217,"span",70),o(218,"items in an orange badge"),s()(),r(219,"span",74),o(220,"12 "),r(221,"span",70),o(222,"items in a light blue badge"),s()(),r(223,"span",75),o(224,"90 "),r(225,"span",70),o(226,"items in a badge"),s()(),r(227,"span",76),o(228,"51 "),r(229,"span",70),o(230,"items in a purple badge"),s()(),r(231,"span",77),o(232,"25 "),r(233,"span",70),o(234,"items in a blue badge"),s()(),r(235,"span",78),o(236,"32 "),r(237,"span",70),o(238,"items in an orange badge"),s()(),r(239,"span",79),o(240,"57 "),r(241,"span",70),o(242,"items in a light blue badge"),s()(),r(243,"span",80),o(244,"2 "),r(245,"span",70),o(246,"items in an info badge"),s()(),r(247,"span",81),o(248,"3 "),r(249,"span",70),o(250,"items in a success badge"),s()(),r(251,"span",82),o(252,"12 "),r(253,"span",70),o(254,"items in a warning badge"),s()(),r(255,"span",83),o(256,"15 "),r(257,"span",70),o(258,"items in a danger badge"),s()(),r(259,"h3"),o(260,"Buttons"),s(),r(261,"div")(262,"button",84),o(263,"Primary"),s(),r(264,"button",85),o(265,"Success"),s(),r(266,"button",86),o(267,"Warning"),s(),r(268,"button",87),o(269,"Danger"),s(),r(270,"button",88),o(271,"Disabled"),s()(),r(272,"div")(273,"button",89),o(274,"Regular"),s(),r(275,"button",90),o(276,"Success-Outline"),s(),r(277,"button",91),o(278,"Info"),s(),r(279,"button",92),o(280,"Warning"),s(),r(281,"button",93),o(282,"Danger"),s(),r(283,"button",94),o(284,"Disabled"),s()(),r(285,"div")(286,"button",95),o(287,"Regular"),s(),r(288,"button",96),o(289,"Disabled"),s(),r(290,"button",97),o(291,"Regular"),s(),r(292,"button",98),o(293,"Disabled"),s()(),r(294,"div")(295,"div",99)(296,"button",100),o(297,"Add"),s(),r(298,"button",100),o(299,"Edit"),s(),r(300,"button",100),o(301,"Download"),s(),r(302,"button",100),o(303,"Delete"),s()()(),r(304,"div")(305,"div",101)(306,"button",100),o(307,"Add"),s(),r(308,"button",100),o(309,"Edit"),s(),r(310,"button",100),o(311,"Download"),s(),r(312,"button",100),o(313,"Delete"),s()()(),r(314,"div")(315,"div",99)(316,"button",100),o(317,"Favorite"),s(),r(318,"button",85),o(319,"Add"),s(),r(320,"button",87),o(321,"Delete"),s()()(),r(322,"h3"),o(323,"Cards"),s(),r(324,"div",102)(325,"div",103)(326,"a",104)(327,"div",105),u(328,"img",106),s(),r(329,"div",107)(330,"p",108),o(331," Aspernatur et ut doloremque. Amet ex quam odio. Quia et incidunt inventore. Est amet reprehenderit illo nostrum enim qui. "),s()()()()(),r(332,"h3"),o(333,"Datagrid"),s(),r(334,"div")(335,"clr-datagrid")(336,"clr-dg-column"),o(337,"User ID"),s(),r(338,"clr-dg-column"),o(339,"Name"),s(),r(340,"clr-dg-column"),o(341,"Creation date"),s(),r(342,"clr-dg-column"),o(343,"Favorite color"),s(),r(344,"clr-dg-row")(345,"clr-dg-cell"),o(346,"13245"),s(),r(347,"clr-dg-cell"),o(348,"Lottie"),s(),r(349,"clr-dg-cell"),o(350,"Dec 2, 2017"),s(),r(351,"clr-dg-cell"),o(352,"Green"),s()(),r(353,"clr-dg-row")(354,"clr-dg-cell"),o(355,"67594"),s(),r(356,"clr-dg-cell"),o(357,"Beverly"),s(),r(358,"clr-dg-cell"),o(359,"Dec 7, 2020"),s(),r(360,"clr-dg-cell"),o(361,"Blue"),s()(),r(362,"clr-dg-footer"),o(363,"2 users"),s()(),r(364,"clr-datagrid")(365,"clr-dg-column"),o(366,"User ID"),s(),r(367,"clr-dg-column"),o(368,"Name"),s(),r(369,"clr-dg-column"),o(370,"Creation date"),s(),r(371,"clr-dg-column"),o(372,"Favorite color"),s(),r(373,"clr-dg-placeholder"),o(374,"We couldn't find any users!"),s()()(),r(37
vendor: 11,733 bytes, line 16
165,"h3"),o(376,"Dropdown"),s(),r(377,"div",109)(378,"button",110),o(379," Dropdown "),u(380,"cds-icon",111),s(),r(381,"div",112)(382,"h4",113),o(383,"Dropdown header"),s(),r(384,"div",114),o(385,"Action"),s(),r(386,"div",115),o(387,"Disabled Link"),s(),u(388,"div",116),r(389,"button",117),o(390,"Lorem."),s(),r(391,"div",118)(392,"button",119),o(393,"Lorem ipsum."),s(),r(394,"div",112)(395,"div",117),o(396,"Foo."),s(),r(397,"div",120)(398,"button",119),o(399,"Bar."),s(),r(400,"div",112)(401,"div",117),o(402,"Baz."),s()()(),r(403,"div",117),o(404,"Foo 2."),s()()(),r(405,"button",117),o(406,"Ipsum."),s()()(),r(407,"h3"),o(408,"Form controls"),s(),r(409,"h4"),o(410,"Checkboxes"),s(),r(411,"div",121)(412,"div",122)(413,"label",123),o(414,"Full checkbox"),s(),r(415,"div",124)(416,"div",125),u(417,"input",126),r(418,"label",127),o(419,"option 1"),s()(),r(420,"div",125),u(421,"input",128),r(422,"label",129),o(423,"option 2"),s()(),r(424,"div",125),u(425,"input",130),r(426,"label",131),o(427,"option 3"),s()(),r(428,"div",132),u(429,"cds-icon",133),r(430,"span",134),o(431,"Helper Text"),s()()()(),r(432,"div",122)(433,"label",123),o(434,"Basic checkbox"),s(),r(435,"div",135)(436,"div",125),u(437,"input",136),r(438,"label",137),o(439,"option 1"),s()(),r(440,"div",125),u(441,"input",138),r(442,"label",139),o(443,"option 2"),s()(),r(444,"div",125),u(445,"input",140),r(446,"label",141),o(447,"option 3"),s()(),r(448,"div",132),u(449,"cds-icon",133),r(450,"span",134),o(451,"Error message"),s()()()(),r(452,"div",142)(453,"label",123),o(454,"Disabled checkbox example"),s(),r(455,"div",124)(456,"div",125),u(457,"input",143),r(458,"label",144),o(459,"option 1"),s()(),r(460,"div",125),u(461,"input",145),r(462,"label",146),o(463,"option 2"),s()(),r(464,"div",125),u(465,"input",147),r(466,"label",148),o(467,"option 3"),s()(),r(468,"div",132),u(469,"cds-icon",133),r(470,"span",134),o(471,"Helper text"),s()()()()(),r(472,"h4"),o(473,"Combobox"),s(),r(474,"clr-combobox-container")(475,"label"),o(476,"Two"),s(),r(477,"clr-combobox",149)(478,"clr-options")(479,"clr-option",150),o(480,"1"),s(),r(481,"clr-option",151),o(482,"2"),s(),r(483,"clr-option",152),o(484,"3"),s()()()(),r(485,"h4"),o(486,"Date Picker"),s(),r(487,"clr-date-container")(488,"label"),o(489,"Basic Demo"),s(),u(490,"input",153),s(),r(491,"h4"),o(492,"Inputs"),s(),r(493,"form",154)(494,"div",122)(495,"label",155),o(496,"Basic input"),s(),r(497,"div",124)(498,"div",156),u(499,"input",157)(500,"cds-icon",133),s(),r(501,"span",134),o(502,"Helper Text"),s()()(),r(503,"div",122)(504,"label",155),o(505,"Error input"),s(),r(506,"div",135)(507,"div",156),u(508,"input",157)(509,"cds-icon",133),s(),r(510,"span",134),o(511,"Helper Text"),s()()()(),r(512,"h4"),o(513,"Radio buttons"),s(),r(514,"div",158)(515,"div",122)(516,"label",123),o(517,"Full radio"),s(),r(518,"div",124)(519,"div",159),u(520,"input",160),r(521,"label",161),o(522,"option 1"),s()(),r(523,"div",159),u(524,"input",162),r(525,"label",163),o(526,"option 2"),s()(),r(527,"div",159),u(528,"input",164),r(529,"label",165),o(530,"option 3"),s()(),r(531,"div",132),u(532,"cds-icon",133),r(533,"span",134),o(534,"Helper Text"),s()()()(),r(535,"div",122)(536,"label",123),o(537,"Error radio"),s(),r(538,"div",135)(539,"div",159),u(540,"input",166),r(541,"label",167),o(542,"option 1"),s()(),r(543,"div",159),u(544,"input",168),r(545,"label",169),o(546,"option 2"),s()(),r(547,"div",159),u(548,"input",170),r(549,"label",171),o(550,"option 3"),s()(),r(551,"div",132),u(552,"cds-icon",133),r(553,"span",134),o(554,"Helper Text"),s()()()(),r(555,"div",122)(556,"label",123),o(557,"Full radio"),s(),r(558,"div",172)(559,"div",159),u(560,"input",173),r(561,"label",161),o(562,"option 1"),s()(),r(563,"div",159),u(564,"input",174),r(565,"label",163),o(566,"option 2"),s()(),r(567,"div",159),u(568,"input",175),r(569,"label",165),o(570,"option 3"),s()(),r(571,"div",132),u(572,"cds-icon",133),r(573,"span",134),o(574,"Helper Text"),s()()()()(),r(575,"h4"),o(576,"Range"),s(),r(577,"form",176)(578,"clr-range-container",177)(579,"label"),o(580,"Full example"),s(),u(581,"input",178),r(582,"clr-control-helper"),o(583,"Helper text"),s()(),r(584,"clr-range-container",177)(585,"label"),o(586,"Disabled"),s(),u(587,"input",179),r(588,"clr-control-helper"),o(589,"Helper text"),s()()(),r(590,"h4"),o(591,"Select"),s(),r(592,"div",122)(593,"label",180),o(594,"Basic select"),s(),r(595,"div",124)(596,"div",181)(597,"select",182)(598,"option",183),o(599,"One"),s(),r(600,"option",184),o(601,"Two"),s(),r(602,"option",185),o(603,"Three"),s()(),u(604,"cds-icon",133),s(),r(605,"span",134),o(606,"Helper Text"),s()()(),r(607,"div",122)(608,"label",186),o(609,"Basic select"),s(),r(610,"div",135)(611,"div",181)(612,"select",187)(613,"option",183),o(614,"One"),s(),r(615,"option",184),o(616,"Two"),s(),r(617,"option",185),o(618,"Three"),s()(),u(619,"cds-icon",133),s(),r(620,"span",134),o(621,"Error message"),s()()(),r(622,"h4"),o(623,"Textareas"),s(),r(624,"form",154)(625,"div",122)(626,"label",188),o(627,"Basic textarea"),s(),r(628,"div",124)(629,"div",189),u(630,"textarea",190)(631,"cds-icon",133),s(),r(632,"span",134),o(633,"Helper Text"),s()()(),r(634,"div",122)(635,"label",188),o(636,"Error textarea"),s(),r(637,"div",135)(638,"div",189),u(639,"textarea",190)(640,"cds-icon",133),s(),r(641,"span",134),o(642,"Helper Text"),s()()()(),r(643,"h4"),o(644,"Toggle switches"),s(),r(645,"div",191)(646,"div",122)(647,"label",123),o(648,"Full toggle switch"),s(),r(649,"div",124)(650,"div",192),u(651,"input",193),r(652,"label",194),o(653,"option 1"),s()(),r(654,"div",192),u(655,"input",195),r(656,"label",196),o(657,"option 2"),s()(),r(658,"div",192),u(659,"input",197),r(660,"label",198),o(661,"option 3"),s()(),r(662,"div",132),u(663,"cds-icon",133),r(664,"span",134),o(665,"Helper Text"),s()()()(),r(666,"div",122)(667,"label",123),o(668,"Error toggle switch"),s(),r(669,"div",135)(670,"div",192),u(671,"input",199),r(672,"label",200),o(673,"option 1"),s()(),r(674,"div",192),u(675,"input",201),r(676,"label",202),o(677,"option 2"),s()(),r(678,"div",192),u(679,"input",203),r(680,"label",204),o(681,"option 3"),s()(),r(682,"div",132),u(683,"cds-icon",133),r(684,"span",134),o(685,"Helper Text"),s()()()(),r(686,"div",122)(687,"label",123),o(688,"Error toggle switch"),s(),r(689,"div",172)(690,"div",192),u(691,"input",205),r(692,"label",206),o(693,"option 1"),s()(),r(694,"div",192),u(695,"input",207),r(696,"label",208),o(697,"option 2"),s()(),r(698,"div",192),u(699,"input",209),r(700,"label",210),o(701,"option 3"),s()(),r(702,"div",132),u(703,"cds-icon",133),r(704,"span",134),o(705,"Helper Text"),s()()()()(),r(706,"h3"),o(707,"Labels"),s(),r(708,"div")(709,"span",211),o(710,"Seattle"),s(),r(711,"span",212),o(712,"Austin"),s(),r(713,"span",213),o(714,"New York"),s(),r(715,"span",214),o(716,"Palo Alto"),s(),r(717,"span",215),o(718,"San Francisco"),s()(),r(719,"div")(720,"span",216),o(721,"Info"),s(),r(722,"span",217),o(723,"Success"),s(),r(724,"span",218),o(725,"Warning"),s(),r(726,"span",219),o(727,"Error"),s()(),r(728,"h3"),o(729,"Progress bars"),s(),u(730,"clr-progress-bar",220)(731,"br")(732,"clr-progress-bar",221)(733,"br")(734,"clr-progress-bar",222)(735,"br"),r(736,"div",223)(737,"label",224),o(738,"Text on the left"),s(),u(739,"clr-progress-bar",225),r(740,"span"),o(741,"Text on the right"),s()(),u(742,"br"),r(743,"div",226),u(744,"progress",227),s(),r(745,"h3"),o(746,"Signposts"),s(),r(747,"clr-signpost"),v(748,go,7,0,"clr-signpost-content",228),s(),r(749,"h3"),o(750,"Spinners"),s(),u(751,"div",229),r(752,"h3"),o(753,"Stack view"),s(),r(754,"div",230)(755,"div",231)(756,"div",232)(757,"div",233),o(758," Label 1 "),s(),r(759,"div",234),o(760,"Content 1"),s()()(),r(761,"div",235)(762,"div",232)(763,"div",236),o(764," Label 2 "),s(),r(765,"div",234),o(766,"Content 2"),s()(),r(767,"div",237)(768,"div",231)(769,"div",232)(770,"div",238),o(771," Sub-label 1 "),s(),r(772,"div",234),o(773,"Sub-content 1"),s()()(),r(774,"div",231)(775,"div",232)(776,"div",238),o(777," Sub-label 2 "),s(),r(778,"div",234),o(779,"Sub-content 2"),s()()(),r(780,"div",231)(781,"div",232)(782,"div",238),o(783," Sub-label 3 "),s(),r(784,"div",234),o(785,"Sub-content 3"),s()()()()(),r(786,"div",239)(787,"div",232)(788,"div",240),o(789," Label 3 "),s(),r(790,"div",234),o(791,"Content 3"),s()(),u(792,"div",237),s()(),r(793,"h3"),o(794,"Tables"),s(),r(795,"table",241)(796,"thead")(797,"tr")(798,"th"),o(799,"Decimal"),s(),r(800,"th"),o(801,"Hexadecimal"),s(),r(802,"th"),o(803,"Binary"),s(),r(804,"th"),o(805,"Roman Numeral"),s()()(),r(806,"tbody")(807,"tr")(808,"td"),o(809,"1"),s(),r(810,"td"),o(811,"1"),s(),r(812,"td"),o(813,"1"),s(),r(814,"td"),o(815,"I"),s()(),r(816,"tr")(817,"td"),o(818,"5"),s(),r(819,"td"),o(820,"5"),s(),r(821,"td"),o(822,"101"),s(),r(823,"td"),o(824,"V"),s()(),r(825,"tr")(826,"td"),o(827,"10"),s(),r(828,"td"),o(829,"A"),s(),r(830,"td"),o(831,"1010"),s(),r(832,"td"),o(833,"X"),s()(),r(834,"tr")(835,"td"),o(836,"15"),s(),r(837,"td"),o(838,"F"),s(),r(839,"td"),o(840,"1111"),s(),r(841,"td"),o(842,"XV"),s()()()(),r(843,"table",242)(844,"thead")(845,"tr")(846,"th",243),o(847,"Monster"),s(),r(848,"th"),o(849,"Home"),s(),r(850,"th"),o(851,"Likes Cookies"),s(),r(852,"th",243),o(853,"Fun to Play With"),s()()(),r(854,"tbody")(855,"tr")(856,"td",243),o(857,"Wolfman"),s(),r(858,"td"),o(859,"Nondisclosed countryside"),s(),r(860,"td"),o(861,"Sometimes"),s(),r(862,"td",243),o(863,"Not really"),s()(),r(864,"tr")(865,"td",243),o(866,"Mothra"),s(),r(867,"td"),o(868,"Tropical island"),s(),r(869,"td"),o(870,"No"),s(),r(871,"td",243),o(872,"Only if you have a flashlight"),s()(),r(873,"tr")(874,"td",243),o(875,"Oscar the Grouch"),s(),r(876,"td"),o(877,"Sesame Street"),s(),r(878,"td"),o(879,"No"),s(),r(880,"td",243),o(881,"No"),s()(),r(882,"tr")(883,"td",243),o(884,"Cookie Monster"),s(),r(885,"td"),o(886,"Sesame Street"),s(),r(887,"td"),o(888,"Definitely yes"),s(),r(889,"td",243),o(890,"Only if you have no cookies"),s()()()(),r(891,"table",244)(892,"tbody")(893,"tr")(894,"th"),o(895,"Basic table"),s(),r(896,"td"),o(897,".table"),s(),r(898,"td"),o(899,"..."),s()(),r(900,"tr")(901,"th"),o(902,"Left-aligned table cells"),s(),r(903,"td"),o(904,".left"),s(),r(905,"td"),o(906,"..."),s()(),r(907,"tr")(908,"th"),o(909,"Tables without borders"),s(),r(910,"td"),o(911,".table-noborder"),s(),r(912,"td"),o(913,"..."),s()(),r(914,"tr")(915,"th"),o(916,"Compact tables"),s(),r(917,"td"),o(918,".table-compact"),s(),r(919,"td"),o(920,"..."),s()(),r(921,"tr")(922,"th"),o(923,"Vertical tables"),s(),r(924,"td"),o(925,".table-vertical"),s(),r(926,"td"),o(927,"..."),s()()()(),r(928,"h3"),o(929,"Tabs"),s(),r(930,"div")(931,"ul",245)(932,"li",246)(933,"button",247),o(934,"Dashboard"),s()(),r(935,"li",246)(936,"button",248),o(937,"Management"),s()(),r(938,"li",246)(939,"button",249),o(940,"Cloud"),s()()(),r(941,"section",250),o(942," You cannot switch between tabs in this static demo because it does not contain the JavaScript to handle this behavior. The demo is here to show the look of tabs and the DOM structure. "),s(),r(943,"section",251),o(944," ... "),s(),r(945,"section",252),o(946," ... "),s()(),r(947,"div",253)(948,"div",254)(949,"ul",245)(950,"li",246)(951,"button",247),o(952,"Dashboard"),s()(),r(953,"li",246)(954,"button",248),o(955,"Management"),s()(),r(956,"li",246)(957,"button",249),o(958,"Cloud"),s()()(),r(959,"section",250),o(960," You cannot switch between tabs in this static demo because it does not contain the JavaScript to handle this behavior. The demo is here to show the look of tabs and the DOM structure. "),s(),r(961,"section",251),o(962," ... "),s(),r(963,"section",252),o(964," ... "),s()()(),r(965,"h3"),o(966,"Tooltips"),s(),r(967,"a",25
165),u(968,"cds-icon",256),r(969,"span",257),o(970,"Lorem"),s()(),r(971,"h3"),o(972,"Timeline"),s(),r(973,"ul",258)(974,"li",259)(975,"div",260),o(976,"11:59 am"),s(),u(977,"cds-icon",261),r(978,"div",262)(979,"span",263),o(980,"Add KMS"),s(),r(981,"span",264),o(982,"Root CA certificate requested."),s()()(),r(983,"li",265)(984,"div",260),o(985,"11:59 am"),s(),u(986,"cds-icon",266),r(987,"div",262)(988,"span",263),o(989,"Add KMS"),s(),r(990,"span",264),o(991," Root CA certificate requested. Upload it to the KMS to complete the connection. "),r(992,"button",267),o(993,"Action"),s()()()(),r(994,"li",265)(995,"div",260),o(996,"11:59 am"),s(),r(997,"clr-spinner",268),o(998,"Fetching data"),s(),r(999,"div",262)(1e3,"span",263),o(1001,"Make vCenter trust KMS"),s(),r(1002,"span",264),o(1003," Root CA certificate requested. Upload it to the KMS to complete the connection. Third sentence is very long and very long. "),s()()(),r(1004,"li",265)(1005,"div",260),o(1006,"11:59 am"),s(),u(1007,"cds-icon",269),r(1008,"div",262)(1009,"span",263),o(1010,"Make KMS trust vCenter"),s(),r(1011,"span",264),o(1012,"Upload it to the KMS to complete the connection. Third sentence. "),r(1013,"button",97),o(1014,"Action"),s()()()(),r(1015,"li",265)(1016,"div",260),o(1017,"11:59 am"),s(),u(1018,"cds-icon",270),r(1019,"div",262)(1020,"span",263),o(1021,"Connected"),s(),r(1022,"span",264),o(1023,"No. It's not connected."),s()()()()()()),t&2&&(m(96),p("fixedWidth",!0),m(),p("icon",n.icons.notification),m(),p("classes",P1(10,ho)),m(6),p("icon",n.icons.carat),m(38),p("clrAlertAppLevel",!0),m(13),p("clrAlertAppLevel",!0),m(7),p("clrAlertAppLevel",!0),m(4),p("clrAlertAppLevel",!0),m(412),p("clrRangeHasProgress",!0),m(6),p("clrRangeHasProgress",!0))},dependencies:[h3,u3,X6,$5,j5,U5,Q5,G5,W5,K5,X5,Z5,J5,Y5,O5,B5,R5,M5,v4,_5,W2,e3,A5,n3,W6,K6,$6,T5,P5,F5,I5,D5,Z6,Y6,Q6,J6,L5,x5,y5,b5,w5,S5,j6,f7,y3,g2,e0,a0,R6,M1,V1,l1,B6,U6],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto}[_nghost-%COMP%]   .branding[_ngcontent-%COMP%]   .logo[_ngcontent-%COMP%]{height:100%;display:block}[_nghost-%COMP%]   .search[_ngcontent-%COMP%]:after{display:none}[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{width:0px;overflow:hidden;will-change:width;transition:width .3s}[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{max-width:none;width:100%;padding-right:6em}.mobile-search[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]{width:100%}.mobile-search[_nghost-%COMP%]   .search-mobile[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{width:100%}.user-menu-trigger[_ngcontent-%COMP%]   fa-icon[_ngcontent-%COMP%]{margin-left:.4em}.nav-link[_ngcontent-%COMP%]{cursor:pointer}.register-section[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;align-items:center;justify-content:flex-end}.search[_ngcontent-%COMP%]{padding:0 1em;opacity:1}.search[_ngcontent-%COMP%]:focus-within   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{background-color:var(--cm-white);color:initial;opacity:initial}.search[_ngcontent-%COMP%]:focus-within   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:initial}.search[_ngcontent-%COMP%]:focus-within   .search-input[_ngcontent-%COMP%]   .input-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{color:var(--cm-primary);opacity:initial}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]{color:#fff}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border:none;border-radius:3px;padding:.3rem .5rem;padding-right:3em;background-color:var(--cm-primary);transition:.1s background-color;color:inherit;max-width:40ch;min-width:23ch}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]::placeholder{color:#fff;opacity:.4;transition:.1s color}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus-visible{outline-color:var(--cm-primary);outline-style:dotted;outline-offset:-1px}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   .input-actions[_ngcontent-%COMP%]{display:inline-block;border:none;border-radius:0 3px 3px 0;transform:translate(-100%);opacity:.4}.search[_ngcontent-%COMP%]   .search-input[_ngcontent-%COMP%]   .input-actions[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{border:none;color:var(--cm-primary);transition:.1s color;margin:0}.register-btn[_ngcontent-%COMP%]{border-width:0;color:var(--cm-blue)}","[_nghost-%COMP%]{display:block;padding:2rem;max-width:60rem;margin:auto}[_nghost-%COMP%] > section[_ngcontent-%COMP%]{border:1px solid var(--cm-gray);border-radius:.4em;margin-top:1em;padding:1em}[_nghost-%COMP%] > section[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-top:0}[_nghost-%COMP%] > section[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:.4rem}.table[_ngcontent-%COMP%]{width:auto}.logos[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1em}.logos[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:8rem}.logos[_ngcontent-%COMP%]   .alpha-layer[_ngcontent-%COMP%]{background-color:var(--cm-gray)}.colors[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{border:1px solid var(--cm-gray);border-radius:.4em;height:4em;width:4em;display:inline-block;margin:1em}.colors[_ngcontent-%COMP%]   .white[_ngcontent-%COMP%]{background-color:var(--cm-white)}.colors[_ngcontent-%COMP%]   .red[_ngcontent-%COMP%]{background-color:var(--cm-red)}.colors[_ngcontent-%COMP%]   .blue[_ngcontent-%COMP%]{background-color:var(--cm-blue)}.colors[_ngcontent-%COMP%]   .gray[_ngcontent-%COMP%]{background-color:var(--cm-gray)}.colors[_ngcontent-%COMP%]   .black[_ngcontent-%COMP%]{background-color:var(--cm-black)}.colors[_ngcontent-%COMP%]   .dark-gray[_ngcontent-%COMP%]{background-color:var(--cm-dark-gray)}.colors[_ngcontent-%COMP%]   .blue-highlight[_ngcontent-%COMP%]{background-color:var(--cm-turquoise)}.colors[_ngcontent-%COMP%]   .sapphire[_ngcontent-%COMP%]{background-color:var(--cm-sapphire)}.colors[_ngcontent-%COMP%]   .muted-blue[_ngcontent-%COMP%]{background-color:var(--cm-muted-blue)}.colors[_ngcontent-%COMP%]   .indigo[_ngcontent-%COMP%]{background-color:var(--cm-indigo)}.colors[_ngcontent-%COMP%]   .police-blue[_ngcontent-%COMP%]{background-color:var(--cm-police-blue)}.colors[_ngcontent-%COMP%]   .green[_ngcontent-%COMP%]{background-color:var(--cm-green)}.colors[_ngcontent-%COMP%]   .orange[_ngcontent-%COMP%]{background-color:var(--cm-orange)}.colors[_ngcontent-%COMP%]   .light-green[_ngcontent-%COMP%]{background-color:var(--cm-light-green)}.colors[_ngcontent-%COMP%]   .light-orange[_ngcontent-%COMP%]{background-color:var(--cm-light-orange)}.colors[_ngcontent-%COMP%]   .light-red[_ngcontent-%COMP%]{background-color:var(--cm-light-red)}.colors[_ngcontent-%COMP%]   .light-sapphire[_ngcontent-%COMP%]{background-color:var(--cm-light-sapphire)}.layout-example[_ngcontent-%COMP%]{max-height:30rem}"]});let c=i;return c})();var Ho=[{alias:"xs",mediaQuery:"screen and (max-width: 575px)"},{alias:"sm",mediaQuery:"screen and (min-width: 576px) and (max-width: 767px)"},{alias:"md",mediaQuery:"screen and (min-width: 768px) and (max-width: 991px)"},{alias:"lg",mediaQuery:"screen and (min-width: 992px) and (max-width: 1199px)"},{alias:"xl",mediaQuery:"screen and (min-width: 1200px)"},{alias:"lt-sm",mediaQuery:"screen and (max-width: 575px)"},{alias:"lt-md",mediaQuery:"screen and (max-width: 767px)"},{alias:"lt-lg",mediaQuery:"screen and (max-width: 991px)"},{alias:"lt-xl",mediaQuery:"screen and (max-width: 1199px)"},{alias:"gt-xs",mediaQuery:"screen and (min-width: 576px)"},{alias:"gt-sm",mediaQuery:"screen and (min-width: 768px)"},{alias:"gt-md",mediaQuery:"screen and (min-width: 992px)"},{alias:"gt-lg",mediaQuery:"screen and (min-width: 1200px)"}],Ye={provide:b3,useValue:Ho,multi:!0};var tH=(()=>{let i=class i{constructor(e){this.el=e,this.intersectionDebounce=0,this.intersectionRoot=document.querySelector(".content-area"),this.intersectionRootMargin="0px",this.visibilityChange=new J,this.unsubscribe$=new B}ngOnInit(){let e=this.el.nativeElement,t={root:this.intersectionRoot,rootMargin:this.intersectionRootMargin,threshold:this.intersectionThreshold};this.fromIntersectionObserver(e,t,this.intersectionDebounce).pipe(P(this.unsubscribe$)).subscribe(n=>this.visibilityChange.emit(n))}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}fromIntersectionObserver(e,t,n=0){return new O2(l=>{let f=new B,d=new IntersectionObserver(g=>g.forEach(H=>f.next(H)),t);return f.pipe(N4(n),Q(Boolean),w(g=>Object.assign(g,{intersects:g.isIntersecting||g.intersectionRatio>0})),P(this.unsubscribe$)).subscribe(g=>l.next(g)),d.observe(e),{unsubscribe(){d.disconnect(),f.unsubscribe()}}})}};i.\u0275fac=function(t){return new(t||i)(z(f2))},i.\u0275dir=U({type:i,selectors:[["","appIntersectionObserver",""]],hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},inputs:{intersectionDebounce:"intersectionDebounce",intersectionRoot:"intersectionRoot",intersectionRootMargin:"intersectionRootMargin",intersectionThreshold:"intersectionThreshold"},outputs:{visibilityChange:"visibilityChange"},standalone:!0});let c=i;return c})();var rH=(()=>{let i=class i{constructor(e){this.service=e}onClick(){this.service.logClickEvent(this.name,this.appTrackClickGroup,{metadata:this.appTrackClickMetadata,target:this.appTrackClickTarget})}};i.\u0275fac=function(t){return new(t||i)(z(S1))},i.\u0275dir=U({type:i,selectors:[["","appTrackClick",""]],hostBindings:function(t,n){t&1&&C("click",function(){return n.onClick()})}
16,inputs:{name:[a1.None,"appTrackClick","name"],appTrackClickGroup:"appTrackClickGroup",appTrackClickTarget:"appTrackClickTarget",appTrackClickMetadata:"appTrackClickMetadata"},standalone:!0});let c=i;return c})();var Co=[{name:"Alabama",abbreviation:"AL"},{name:"Alaska",abbreviation:"AK"},{name:"American Samoa",abbreviation:"AS"},{name:"Arizona",abbreviation:"AZ"},{name:"Arkansas",abbreviation:"AR"},{name:"California",abbreviation:"CA"},{name:"Colorado",abbreviation:"CO"},{name:"Connecticut",abbreviation:"CT"},{name:"Delaware",abbreviation:"DE"},{name:"District of Columbia",abbreviation:"DC"},{name:"States of Micronesia",abbreviation:"FM"},{name:"Florida",abbreviation:"FL"},{name:"Georgia",abbreviation:"GA"},{name:"Guam",abbreviation:"GU"},{name:"Hawaii",abbreviation:"HI"},{name:"Idaho",abbreviation:"ID"},{name:"Illinois",abbreviation:"IL"},{name:"Indiana",abbreviation:"IN"},{name:"Iowa",abbreviation:"IA"},{name:"Kansas",abbreviation:"KS"},{name:"Kentucky",abbreviation:"KY"},{name:"Louisiana",abbreviation:"LA"},{name:"Maine",abbreviation:"ME"},{name:"Marshall Islands",abbreviation:"MH"},{name:"Maryland",abbreviation:"MD"},{name:"Massachusetts",abbreviation:"MA"},{name:"Michigan",abbreviation:"MI"},{name:"Minnesota",abbreviation:"MN"},{name:"Mississippi",abbreviation:"MS"},{name:"Missouri",abbreviation:"MO"},{name:"Montana",abbreviation:"MT"},{name:"Nebraska",abbreviation:"NE"},{name:"Nevada",abbreviation:"NV"},{name:"New Hampshire",abbreviation:"NH"},{name:"New Jersey",abbreviation:"NJ"},{name:"New Mexico",abbreviation:"NM"},{name:"New York",abbreviation:"NY"},{name:"North Carolina",abbreviation:"NC"},{name:"North Dakota",abbreviation:"ND"},{name:"Northern Mariana Islands",abbreviation:"MP"},{name:"Ohio",abbreviation:"OH"},{name:"Oklahoma",abbreviation:"OK"},{name:"Oregon",abbreviation:"OR"},{name:"Palau",abbreviation:"PW"},{name:"Pennsylvania",abbreviation:"PA"},{name:"Puerto Rico",abbreviation:"PR"},{name:"Rhode Island",abbreviation:"RI"},{name:"South Carolina",abbreviation:"SC"},{name:"South Dakota",abbreviation:"SD"},{name:"Tennessee",abbreviation:"TN"},{name:"Texas",abbreviation:"TX"},{name:"Utah",abbreviation:"UT"},{name:"Vermont",abbreviation:"VT"},{name:"Virgin Islands",abbreviation:"VI"},{name:"Virginia",abbreviation:"VA"},{name:"Washington",abbreviation:"WA"},{name:"West Virginia",abbreviation:"WV"},{name:"Wisconsin",abbreviation:"WI"},{name:"Wyoming",abbreviation:"WY"}],F8=Co;var R1=function(c){return c.GOOGLE_MAPS="google_maps",c.GOOGLE_MAPS_CLUSTERS="marker_cluster",c}(R1||{}),U0=(()=>{let i=class i{constructor(e){this.http=e,this.scripts={[R1.GOOGLE_MAPS]:{src:"https://maps.googleapis.com/maps/api/js?libraries=places"}
16,[R1.GOOGLE_MAPS_CLUSTERS]:{src:"https://unpkg.com/@google/[email protected]/dist/markerclustererplus.min.js"}},q.credentials?.google&&(this.scripts[R1.GOOGLE_MAPS].src+=`&key=${q.credentials?.google}`)}load(e,t="callback"){let n=this.scripts[e];if(!n)throw new Error(`Could not find script with key ${e}`);return n.load$||(n.load$=new d1,this.http.jsonp(n.src,t).pipe(w(()=>!0),a4(l=>(console.error(`Could not load script with key ${e}`,l),Y(!1)))).subscribe(n.load$)),n.load$}loadPlain(e){let t=this.scripts[e];if(!t)throw new Error(`Could not find script with key ${e}`);return t.load$||(t.load$=new d1,this.http.get(t.src).pipe(w(()=>!0),a4(n=>(console.error(`Could not load script with key ${e}`,n),Y(!1)))).subscribe(t.load$)),t.load$}};i.\u0275fac=function(t){return new(t||i)(k(o1))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var D8=[{featureType:"poi",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]}],c9=(()=>{let i=class i{constructor(e,t){this.script=e,this.http=t}predictAddress(e){let t=new O2(n=>{new google.maps.places.AutocompleteService().getPlacePredictions({input:e},this.createCallback(n))});return this.script.load(R1.GOOGLE_MAPS).pipe(O(()=>t))}getPlaceInformation(e){let t=new O2(n=>
16{let l=document.createElement("div");new google.maps.places.PlacesService(l).getDetails({placeId:e},this.createCallback(n,()=>l.remove()))});return this.script.load(R1.GOOGLE_MAPS).pipe(O(()=>t))}geocode(e){let t=new O2(n=>{new google.maps.Geocoder().geocode({address:e},this.createCallback(n))});return this.script.load(R1.GOOGLE_MAPS).pipe(O(()=>t))}reverseGeocode(e,t){let n=new O2(l=>{new google.maps.Geocoder().geocode({location:{lat:e,lng:t}},this.createCallback(l))});return this.script.load(R1.GOOGLE_MAPS).pipe(O(()=>n))}resolveDNS(e){return this.http.get(`https://dns.google/resolve?name=${e}`)}getYoutubeVideos(e,t){let n=$({id:e.join(","),key:q.credentials?.google??""},t),l=new Q3({fromObject:n});return this.http.get("https://www.googleapis.com/youtube/v3/videos",{params:l})}createCallback(e,t){return(n,l)=>{if(l!=="OK")throw new Error(`Google script error. Status: ${l}`);e.next(n??void 0),e.complete(),t&&t()}}};i.\u0275fac=function(t){return new(t||i)(k(U0),k(o1))},i.\u0275prov=R({token:i,factory:i.\u0275fac,providedIn:"root"});let c=i;return c})();var Vo=[[["clr-control-helper"]],[["","appAddressInputLabel",""]]],xo=["clr-control-helper","[appAddressInputLabel]"];function Lo(c,i){c&1&&A4(0)}function bo(c,i){if(c&1&&(r(0,"clr-signpost-content")(1,"p",11),o(2,' To enter a valid address, either (1) begin typing your address and then select from one of the suggested options in the drop down, or (2) click on "Let me type the address parts" to change the input form so you can type in the address parts separately. '),s(),r(3,"p"),u(4,"fa-icon",9),o(5,"\xA0 "),r(6,"em"),o(7,"Hint: for (1) above, you may need to try both full words and known abbreviations for street names before the correct suggested address is presented in the drop down list."),s()()()),c&2){let a=h(3);m(4),p("icon",a.icons.hint)}}function yo(c,i){if(c&1&&(r(0,"label"),v(1,Lo,1,0,"ng-container",7),r(2,"clr-signpost")(3,"button",8),u(4,"fa-icon",9),s(),v(5,bo,8,1,"clr-signpost-content",10),s()()),c&2){let a=h(2),e=G2(3);m(),p("ngTemplateOutlet",e),m(3),p("icon",a.icons.info)}}function So(c,i){if(c&1&&(r(0,"clr-option",13),u(1,"span",14),s()),c&2){let a=i.$implicit;p("clrValue",a),m(),p("innerHTML",a.highlightedDescription,W4)}}function wo(c,i){if(c&1&&(r(0,"clr-options"),v(1,So,2,2,"clr-option",12),s()),c&2){let a=i.ngIf;
16m(),p("clrOptionItemsOf",a)("clrOptionItemsField","description")}}function _o(c,i){if(c&1){let a=b();r(0,"clr-control-helper")(1,"a",15),C("click",function(){M(a);let t=h(2);return V(t.showComponentFields=!0)}),o(2,"Let me type the address parts"),s()()}}function No(c,i){if(c&1){let a=b();r(0,"clr-combobox-container",4),v(1,yo,6,2,"label",5),r(2,"clr-combobox",6),C("clrInputChange",function(t){M(a);let n=h();return V(n.predictAddresses(t))})("clrSelectionChange",function(t){M(a);let n=h();return V(n.selected(t))})("clrOpenChange",function(t){M(a);let n=h();return V(t?n.predictAddresses():null)}),v(3,wo,2,2,"clr-options",5),S(4,"async"),s(),z2(5,0,["ngProjectAs","clr-control-helper",5,["clr-control-helper"]]),v(6,_o,3,0,"clr-control-helper",5),s()}if(c&2){let a=h();m(),p("ngIf",a.label),m(),p("placeholder",a.placeholder)("formControl",a.searchControl),m(),p("ngIf",N(4,5,a.addressPredictions$)),m(3),p("ngIf",a.allowParts)}}function ko(c,i){c&1&&A4(0)}function Ao(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Street is required."),s())}function Eo(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Street cannot be longer than 75 characters."),s())}function To(c,i){c&1&&(r(0,"clr-control-error"),o(1,"City is required."),s())}function Po(c,i){if(c&1&&(r(0,"option",29),o(1),s()),c&2){let a=i.$implicit;p("value",a.abbreviation),m(),_(" ",a.name," ")}}function Fo(c,i){c&1&&(r(0,"clr-control-error"),o(1,"State is required."),s())}function Do(c,i){c&1&&(r(0,"clr-control-error"),o(1,"Zip code is required."),s())}function Io(c,i){if(c&1&&(r(0,"fieldset",16)(1,"legend"),v(2,ko,1,0,"ng-container",7),s(),r(3,"main")(4,"div",17)(5,"clr-input-container",18)(6,"label"),o(7,"Street"),s(),u(8,"input",19),v(9,Ao,2,0,"clr-control-error",20)(10,Eo,2,0,"clr-control-error",20),s()(),r(11,"div",17)(12,"clr-input-container",21)(13,"label"),o(14,"City"),s(),u(15,"input",22),v(16,To,2,0,"clr-control-error",20),s(),r(17,"clr-select-container",23)(18,"label"),o(19,"State"),s(),r(20,"select",24),v(21,Po,2,2,"option",25),s(),u(22,"input",26),v(23,Fo,2,0,"clr-control-error",20),s(),r(24,"clr-input-container",27)(25,"label"),o(26,"Zip"),s(),u(27,"input",28),v(28,Do,2,0,"clr-control-error",20),s()()()()),c&2){let a=h(),e=G2(3);p("formGroup",a.componentsForm),m(2),p("ngTemplateOutlet",e),m(7),p("clrIfError","required"),m(),p("clrIfError","maxlength"),m(6),p("clrIfError","required"),m(5),p("ngForOf",a.states),m(2),p("clrIfError","required"),m(5),p("clrIfError","required")}}function Bo(c,i){if(c&1&&(F(0),o(1),D()),c&2){let a=h(2);m(),W(a.label)}}function Oo(c,i){if(c&1&&(r(0,"span",null,1),z2(2,1),s(),v(3,Bo,2,1,"ng-container",5)),c&2){let a=G2(1),e=h();m(3),p("ngIf",a.children.length===0&&e.label)}}var Ro=300,e9=(()=>{let i=class i{constructor(e,t){this.google=e,this.lookup=t,this.label="Address",this.allowParts=!0,this.compact=!1,this.componentsForm=new u4({street:new o2(null,[v2.required,v2.maxLength(75)]),city:new o2(null,[v2.required]),county:new o2(null),county_id:new o2(null),state:new o2(null,[v2.required,n=>F8.map(l=>l.abbreviation).includes(n.value)?null:{state:!0}]),zip:new o2(null,[v2.required]),country:new o2("US",{nonNullable:!0,validators:[v2.required]}),point:new o2(null,[v2.required]),point_source:new o2(null,[v2.required])}),this.predictAddressInput$=new B,this.searchControl=new o2(null),this.showComponentFields=!1,this.states=F8,this.icons={hint:H7,info:L7},this.unsubscribe$=new B,this.onChange=()=>{console.warn("onChange not implemented")},this.onTouched=()=>{console.warn("onTouched not implemented")},this.addressPredictions$=this.predictAddressInput$.pipe(N4(Ro),Q(n=>!!n),O(n=>this.google.predictAddress(n)),w(n=>(this.onTouched(),n.map(l=>y2($({},l),{highlightedDescription:this.highlightPrediction(l)})))))}ngOnInit(){this.componentsForm.valueChanges.pipe(P(this.unsubscribe$)).subscribe(e=>{this.onChange(e),this.onTouched()})}ngAfterViewInit(){this.combobox&&this.combobox.registerOnTouched(()=>{this.searchControl.markAsTouched(),this.onTouched()})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}predictAddresses(e){!e||typeof e!="string"||e===this.searchControl.value||this.predictAddressInput$.next(e)}selected(e){e.model&&this.google.getPlaceInformation(e.model.place_id).subscribe(t=>{this.setAddressComponents(t)})}writeValue(e){if(!e){this.componentsForm.reset(),this.searchControl.reset(),this.showComponentFields=!1;return}this.componentsForm.patchValue(e,{emitEvent:!1}),e.street&&this.switchToFields(),this.updateDisplay()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){e?(this.searchControl.disable(),this.componentsForm.disable()):(this.searchControl.enable(),this.componentsForm.enable())}switchToFields(){this.allowParts&&(this.showComponentFields=!0)}updateDisplay(){let e=this.componentsForm.value,t=[e.street,e.city,e.state,e.zip].join(", ");this.searchControl.setValue(t,{emitEvent:!0,onlySelf:!0})}highlightPrediction(e){let t=e.description,n=17;
16return e.matched_substrings.forEach((l,f)=>{let d=n*f,g=t.slice(0,l.offset+d),H=t.slice(l.offset+d,l.offset+l.length+d),L=t.slice(l.offset+l.length+d);t=`${g}<strong>${H}</strong>${L}`}),t}setAddressComponents(e){return k1(this,null,function*(){let t=this.getComponentFromPlace(e,"administrative_area_level_2")?.short_name?.replace("County","").trim(),n=this.getComponentFromPlace(e,"administrative_area_level_1")?.short_name,l=t&&n?(yield this.getCountyLookup(n,t))?._id:null,f={street:`${this.getComponentFromPlace(e,"street_number")?.long_name??""} ${this.getComponentFromPlace(e,"route")?.short_name??""}`,city:this.getComponentFromPlace(e,["locality","administrative_area_level_3"])?.long_name??"",county:t,state:n??"",county_id:l,country:this.getComponentFromPlace(e,"country")?.short_name??"",zip:this.getComponentFromPlace(e,"postal_code")?.short_name??""},d=e.geometry?.location?{point:{type:"Point",coordinates:[e.geometry.location.lat(),e.geometry.location.lng()]},point_source:`Google Maps|${Date.now()}`}:{};this.componentsForm.patchValue($($({},f),d)),this.switchToFields()})}getComponentFromPlace(e,t){let n=Array.isArray(t)?t:[t],l=new Map(e.address_components?.map(f=>f.types.map(d=>[d,f])).flat());return n.map(f=>l.get(f)).filter(f=>f).shift()}getCountyLookup(e,t){return k1(this,null,function*(){let n=`Counties: allCountiesForState(state: "${e}")`,l=this.lookup.query({[n]:["_id","name","state"]});return w4(l).then(f=>f.data.Counties.find(d=>d.name===t)??null).catch(f=>(console.error(f),null))})}};i.\u0275fac=function(t){return new(t||i)(z(c9),z(A7))},i.\u0275cmp=A({type:i,selectors:[["app-address-input"]],viewQuery:function(t,n){if(t&1&&Z2(n3,5),t&2){let l;R2(l=U2())&&(n.combobox=l.first)}},hostVars:2,hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2),t&2&&t1("compact",n.compact)},inputs:{label:"label",placeholder:"placeholder",allowParts:"allowParts",compact:"compact"},standalone:!0,features:[i5([{provide:h5,multi:!0,useExisting:Y8(()=>i)}]),K],ngContentSelectors:xo,decls:4,vars:2,consts:[["labelTemplate",""],["contentRef",""],["class","full-width",4,"ngIf"],[3,"formGroup",4,"ngIf"],[1,"full-width"],[4,"ngIf"],[3,"clrInputChange","clrSelectionChange","clrOpenChange","placeholder","formControl"],[4,"ngTemplateOutlet"],["clrSignpostTrigger","","tabindex","-1",1,"plain-trigger"],[3,"icon"],[4,"clrIfOpen"],[1,"no-margin"],[3,"clrValue",4,"clrOptionItems","clrOptionItemsOf","clrOptionItemsField"],[3,"clrValue"],[3,"innerHTML"],[1,"clickable",3,"click"],[3,"formGroup"],[1,"address-line"],[1,"full-width","street"],["clrInput","","type","text","formControlName","street"],[4,"clrIfError"],[1,"full-width","city"],["clrInput","","type","text","formControlName","city"],[1,"full-width","state"],["clrSelect","","formControlName","state"],[3,"value",4,"ngFor","ngForOf"],["clrInput","","type","text","formControlName","state"],[1,"full-width","zip"],["clrInput","","type","text","inputmode","numeric","formControlName","zip","size","10"],[3,"value"]],template:function(t,n){t&1&&(P2(Vo),v(0,No,7,7,"clr-combobox-container",2)(1,Io,29,8,"fieldset",3)(2,Oo,4,1,"ng-template",null,0,h1)),t&2&&(p("ngIf",!n.showComponentFields),m(),p("ngIf",n.showComponentFields&&n.allowParts))},dependencies:[p2,v4,W2,g4,e3,H4,n3,W6,K6,$6,E5,s3,r3,Z1,X1,Q6,J6,q5,G,m2,Z,T6,k2,A2,g2,I2,M1,V1,C1,K1,D2,l1,z4,W1,$1],styles:["[_nghost-%COMP%]{margin-top:1.2rem;display:block}.compact[_nghost-%COMP%]   .address-line[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:1em}.compact[_nghost-%COMP%]   .address-line[_ngcontent-%COMP%]   .street[_ngcontent-%COMP%], .compact[_nghost-%COMP%]   .address-line[_ngcontent-%COMP%]   .city[_ngcontent-%COMP%]{flex:1 1 auto}[_nghost-%COMP%]   clr-combobox-container[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   clr-combobox-container.clr-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:-.6rem}.clickable[_ngcontent-%COMP%]{cursor:pointer}.street[_ngcontent-%COMP%]{margin-top:0}"]});let c=i;return c})();var Uo=[[["","actions",""]],[["","preview",""]]],Go=["[actions]","[preview]"];function qo(c,i){if(c&1){let a=b();r(0,"button",6),C("click",function(){M(a);let t=h();return V(t.clear())}),u(1,"fa-icon",3),s()}if(c&2){let a=h();
16p("id","clear-"+a.id)("ngClass",a.buttonClass),m(),p("icon",a.icons.clear)}}function jo(c,i){if(c&1&&u(0,"img",10),c&2){let a=h(2);p("src",a.previewSrc,$4)}}function Wo(c,i){c&1&&z2(0,1,["*ngIf","!previewSrc"])}function $o(c,i){if(c&1&&(r(0,"div",7),v(1,jo,1,1,"img",8)(2,Wo,1,0,"ng-content",9),s()),c&2){let a=h();p("ngClass",a.previewSize),m(),p("ngIf",a.previewSrc),m(),p("ngIf",!a.previewSrc)}}var G0=(()=>{let i=class i{constructor(e){this.control=e,this.multiple=!1,this.preview=!0,this.previewSize="lg",this.disabled=!1,this.icons={clear:t0,folder:C7},this.onChange=()=>{console.warn("onChange not implemented")},this.onTouched=()=>{console.warn("onChange not implemented")},this.control&&(this.control.valueAccessor=this)}ngOnInit(){i.componentInstances++,this.id=`file-input-${i.componentInstances}`}get hasFiles(){return!!this.files}get buttonClass(){return{"btn-danger-outline":this.control?.invalid??!1}}inputChange(e){let{files:t}=e.target;this.files=t,t&&t.length===1?this.internalLabel=t[0].name:t?this.internalLabel=`${t.length} files selected`:this.internalLabel=void 0,this.loadPreview(),this.onTouched(),this.onChange(this.files)}clear(){this.internalLabel=void 0,this.files=null,this.previewSrc=void 0,this.onTouched(),this.onChange(null)}loadPreview(){if(this.previewSrc=null,this.files&&this.preview&&!this.multiple&&/^image/.exec(this.files[0].type)){let e=new FileReader;e.readAsDataURL(this.files[0]),e.onload=()=>{this.previewSrc=e.result}}}writeValue(e){e?console.warn("Cannot programmatically set the value of a file input."):this.clear()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}};i.componentInstances=0,i.\u0275fac=function(t){return new(t||i)(z(h4,10))},i.\u0275cmp=A({type:i,selectors:[["app-file-input"]],inputs:{multiple:"multiple",accept:"accept",preview:"preview",previewSize:"previewSize",label:"label"},standalone:!0,features:[K],ngContentSelectors:Go,decls:9,vars:10,consts:[[1,"input-wrapper"],["type","file",3,"change","id","multiple","disabled","accept"],[1,"btn","btn-outline","btn-sm",3,"for","ngClass"],[3,"icon"],["type","button","class","btn btn-icon-link btn-sm clear",3,"id","ngClass","click",4,"ngIf"],["class","preview",3,"ngClass",4,"ngIf"],["type","button",1,"btn","btn-icon-link","btn-sm","clear",3,"click","id","ngClass"],[1,"preview",3,"ngClass"],[3,"src",4,"ngIf"],[4,"ngIf"],[3,"src"]],template:function(t,n){if(t&1&&(P2(Uo),r(0,"div",0)(1,"input",1),C("change",function(f){return n.inputChange(f)}),s(),r(2,"label",2),u(3,"fa-icon",3),r(4,"span"),o(5),s()(),v(6,qo,2,3,"button",4),z2(7),s(),v(8,$o,3,3,"div",5)),t&2){let l;m(),p("id",n.id)("multiple",!!n.multiple)("disabled",n.disabled)("accept",n.accept),m(),p("for",n.id)("ngClass",n.buttonClass),m(
16),p("icon",n.icons.folder),m(2),W((l=(l=n.internalLabel)!==null&&l!==void 0?l:n.label)!==null&&l!==void 0?l:"Browse"),m(),p("ngIf",n.hasFiles),m(2),p("ngIf",n.preview)}},dependencies:[G,g1,Z,A2,g2],styles:["[_nghost-%COMP%]{max-width:100%}.ng-invalid[_nghost-%COMP%]{background-color:red}.input-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center}input[type=file][_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}input[type=file][_ngcontent-%COMP%] + label[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child){margin-left:.6em}.clear[_ngcontent-%COMP%]{margin-left:-.8em}.preview[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:min(20rem,100%);max-height:20rem;height:auto;width:auto}.preview[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::slotted(img){max-width:min(20rem,100%);max-height:20rem;height:auto;width:auto}.preview.sm[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:min(5rem,100%);max-height:5rem;height:auto;width:auto}.preview.sm[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::slotted(img){max-width:min(5rem,100%);max-height:5rem;height:auto;width:auto}.preview.md[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:min(10rem,100%);max-height:10rem;height:auto;width:auto}.preview.md[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::slotted(img){max-width:min(10rem,100%);max-height:10rem;height:auto;width:auto}.preview.lg[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:min(20rem,100%);max-height:20rem;height:auto;width:auto}.preview.lg[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::slotted(img){max-width:min(20rem,100%);max-height:20rem;height:auto;width:auto}.preview.xl[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:min(30rem,100%);max-height:30rem;height:auto;width:auto}.preview.xl[_ngcontent-%COMP%]   [_ngcontent-%COMP%]::slotted(img){max-width:min(30rem,100%);max-height:30rem;height:auto;width:auto}"]});let c=i;return c})();var T9=x6(E9());var af=[[["clr-control-error"]]],tf=["clr-control-error"];function nf(c,i){if(c&1&&(r(0,"option",6),o(1),s()),c&2){let a=i.$implicit;p("ngValue",a),m(),_(" ",a.name," ")}}function rf(c,i){if(c&1&&(r(0,"clr-select-container",2)(1,"label"),o(2,"KML file has multiple geometries. Please choose one"),s(),r(3,"select",4),v(4,nf,2,2,"option",5),s()()),c&2){let a=h();m(4),p("ngForOf",a.placemarkOptions)}}function sf(c,i){if(c&1&&u(0,"map-polygon",9),c&2){let a=h(2);p("paths",a.mapData.region)}}function of(c,i){if(c&1&&(r(0,"div",3)(1,"google-map",7),v(2,sf,1,1,"map-polygon",8),s()()),c&2){let a=h();m(),p("options",a.mapData.options),m(),p("ngIf",a.mapData.region)}}var P9=(()=>{let i=class i{constructor(e,t,n){this.control=e,this.script=t,this.cd=n,this.geometry="polygon",this.form=new u4({file:new o2(null),placemark:new o2(null)}),this.loaders={maps:!0},this.mapData={options:{zoom:10,styles:D8}},this.unsubscribe$=new B,this.onChange=()=>{console.warn("onChange not implemented")},this.onTouched=()=>{console.warn("onChange not implemented")},this.control&&(this.control.valueAccessor=this),this.mapsLoad$=this.script.load(R1.GOOGLE_MAPS)}ngOnInit(){this.form.controls.file.valueChanges.pipe(Q(e=>(e?.length??0)>0),O(e=>this.parseKML(e[0])),w(e=>[...e.kml.Document?.Folder?.map(n=>n.Placemark??[]).flat()??[],...e.kml.Document?.Placemark??[],...e.kml.Placemark??[]].filter(n=>!!n.Polygon||!!n.MultiGeometry?.Polygon)),P(this.unsubscribe$)).subscribe(e=>{this.onTouched(),this.mapData.region=void 0,this.placemarkOptions=e,e.length===1&&this.form.controls.placemark.setValue(e[0]),this.cd.detectChanges()}),this.form.controls.placemark.valueChanges.pipe(P(this.unsubscribe$)).subscribe(()=>{this.updateMap(),this.onTouched(),this.emitValue()})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}writeValue(e){if(e){let t={Polygon:{outerBoundaryIs:{LinearRing:{coordinates:e.coordinates[0].map(n=>`${n[1]},${n[0]},0`).join(" ")}}}};this.form.controls.placemark.setValue(t),this.updateMap()}else this.form.reset()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){e?this.form.disable():this.form.enable()}emitValue(){let e=this.form.controls.placemark.value;if(!e){this.onChange(null);return}this.onChange(this.placemarkToGeojson(e))}updateMap(){let e=this.form.controls.placemark.value;if(!e){this.mapData.region=void 0;return}let t=this.placemarkToGeojson(e);this.mapData={options:{disableDefaultUI:!0,styles:D8},region:t?t.coordinates[0].map(n=>({lng:n[1],lat:n[0]})):void 0},this.mapsLoad$.pipe(O(()=>(this.cd.detectChanges(),this.nextTick))).subscribe(()=>{if(this.map){let n=new google.maps.LatLngBounds;this.mapData.region?.forEach(l=>n.extend(l)),this.map.fitBounds(n)}})}parseKML(e){return new O2(n=>{let l=new FileReader;l.readAsText(e,"utf-8"),l.onload=f=>{n.next(f.target?.result),n.complete()},l.onerror=f=>n.error(f)}).pipe(w(n=>new T9.XMLParser({ignoreDeclaration:!0,ignoreAttributes:!1,attributesGroupName:"attr",attributeNamePrefix:"",isArray:f=>["Placemark","Folder"].includes(f)}).parse(n)))}placemarkToGeojson(e){let n=(e.Polygon??e.MultiGeometry?.Polygon)?.outerBoundaryIs.LinearRing.coordinates.replace(/\s+/g," ");return n?{type:"Polygon",coordinates:[n.split(" ").map(l=>{let f=l.split(",").map(d=>parseFloat(d));return[f[1],f[0]]})]}:null}get nextTick(){return new O2(e=>{setTimeout(()=>{e.next(),e.complete()},0)})}};i.\u0275fac=function(t){return new(t||i)(z(h4,10),z(U0),z(q1))},i.\u0275cmp=A({type:i,selectors:[["app-gis-input"]],viewQuery:function(t,n){if(t&1&&Z2(D4,5),t&2){let l;R2(l=U2())&&(n.map=l.first)}},hostBindings:function(t,n){t&1&&C("beforeunload",function(){return n.ngOnDestroy()},!1,n2)},inputs:{geometry:"geometry"},standalone:!0,features:[K],ngContentSelectors:tf,decls:6,vars:5,consts:[[3,"formGroup"],["label","Choose a KML file","accept",".kml","formControlName","file"],[1,"full-width"],[1,"map-wrapper"],["clrSelect","","formControlName","placemark"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],["width","100%","height","15rem",3,"options"],[3,"paths",4,"ngIf"],[3,"paths"]],template:function(t,n){if(t&1&&(P2(af),r(0,"div",0),u(1,"app-file-input",1),v(2,rf,5,1,"clr-select-container",2),s(),z2(3),v(4,of,3,2,"div",3),S(5,"async")),t&2){let l;p("formGroup",n.form),m(2),x2(2,((l=n.placemarkOptions==null?null:n.placemarkOptions.length)!==null&&l!==void 0?l:0)>1?2:-1),m(2),x2(4,N(5,3,n.mapsLoad$)&&n.mapData.region?4:-1)}},dependencies:[p2,W2,Z1,X1,G,m2,Z,k2,G0,M0,D4,Fc,I2,M1,V1,K1,D2,l1,W1,$1],styles:["[_nghost-%COMP%]{display:block}.map-wrapper[_ngcontent-%COMP%]{margin-top:1rem}"]});let c=i;return c})();var sC=(()=>{let i=class i{constructor(e){this.ngControl=e}onModelChange(e){e&&this.ngControl.valueAccessor?.writeValue(this.transform(e))}keydownBackspace(e){let t=e.target;this.ngControl.valueAccessor?.writeValue(this.transform(t.value))}ngOnInit(){let e=this.ngControl.control?.value;e&&this.ngControl.valueAccessor?.writeValue(this.transform(e))}transform(e){return new k7("US").input(e)}};i.\u0275fac=function(t){return new(t||i)(z(h4))},i.\u0275dir=U({type:i,selectors:[["","appPhoneMask",""]],hostBindings:function(t,n){t&1&&C("ngModelChange",function(f){return n.onModelChange(f)})("keydown.backspace",function(f){return n.keydownBackspace(f)})}});let c=i;return c})();var lC=(()=>{let i=class i{constructor(e){this.ngControl=e}onBlur(e){e&&this.ngControl.control?.setValue(this.transform(e))}transform(e){return e.trim()}};i.\u0275fac=function(t){return new(t||i)(z(h4))},i.\u0275dir=U({type:i,selectors:[["","appTrim",""]],hostBindings:function(t,n){t&1&&C("blur",function(f){return n.onBlur(f.target.value)})}});let c=i;return c})();var lf=[[["app-list-item"]],[["","appListItemPlaceholder",""]]],ff=["app-list-item","[appListItemPlaceholder]"],F9=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=A({type:i,selectors:[["app-list"]],ngContentSelectors:ff,decls:4,vars:0,consts:[[1,"item-wrapper"],[1,"placeholder"]],template:function(t,n){t&1&&(P2(lf),r(0,"div",0),z2(1),r(2,"div",1),z2(3,1),s()())},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;border-style:solid;border-width:var(--clr-card-border-width);border-color:var(--clr-card-border-color);border-radius:var(--clr-card-border-radius);background-color:var(--clr-card-bg-color);
16box-shadow:var(--clr-card-box-shadow);overflow-y:auto}.placeholder[_ngcontent-%COMP%]{margin:1rem;text-align:center;color:var(--clr-datagrid-placeholder-color);font-size:var(--clr-datagrid-placeholder-font-size)}.placeholder[_ngcontent-%COMP%]:not(:only-child){display:none}"]});let c=i;return c})();var pf=[[["","listItemTitle",""]],"*",[["","listItemImage",""]],[["","listItemFooter",""]]],df=["[listItemTitle]","*","[listItemImage]","[listItemFooter]"],mC=(()=>{let i=class i{constructor(e){this.list=e,this.imagePosition="right"}};i.\u0275fac=function(t){return new(t||i)(z(F9))},i.\u0275cmp=A({type:i,selectors:[["app-list-item"]],inputs:{imagePosition:"imagePosition"},ngContentSelectors:df,decls:7,vars:2,consts:[["fxLayout","row"],["fxFlex","",3,"fxFlexOrder"],[3,"fxFlexOrder"]],template:function(t,n){t&1&&(P2(pf),r(0,"div",0)(1,"div",1),z2(2),z2(3,1),s(),r(4,"div",2),z2(5,2),s()(),z2(6,3)),t&2&&(m(),p("fxFlexOrder",n.imagePosition==="left"?2:1),m(3),p("fxFlexOrder",n.imagePosition==="left"?1:2))},dependencies:[yc,_c,C0],styles:["[_nghost-%COMP%]{display:block;border-bottom:var(--clr-card-border-color);border-bottom-width:var(--clr-card-border-width);border-bottom-style:solid;padding:1em}[_nghost-%COMP%]:hover{background-color:var(--clr-datagrid-row-hover)}"]});let c=i;return c})();var hf=["*"];function uf(c,i){if(c&1){let a=b();r(0,"div",1),C("click",function(){M(a);let t=h();return V(t.expanded=!t.expanded)}),o(1),s()}if(c&2){let a=h();m(),_(" ",a.expanded?"Collapse":"Show All"," ")}}var zf=2,vC=(()=>{let i=class i{constructor(e){this.el=e,this.expanded=!1,this.displayExpander=K3(!1)}ngOnInit(){this.observer=new ResizeObserver(()=>{if(this.lastExpandedState===!1&&this.expanded===!0){this.lastExpandedState=this.expanded;return}this.displayExpander.set(this.el.nativeElement.scrollHeight>this.el.nativeElement.offsetHeight+zf),!this.displayExpander&&this.expanded&&(this.expanded=!1),this.lastExpandedState=this.expanded}),this.observer.observe(this.el.nativeElement)}ngOnDestroy(){this.observer.unobserve(this.el.nativeElement)}};i.\u0275fac=function(t){return new(t||i)(z(f2))},i.\u0275cmp=A({type:i,selectors:[["app-overflow-text"]],hostVars:2,hostBindings:function(t,n){t&2&&t1("expanded",n.expanded)},standalone:!0,features:[K],ngContentSelectors:hf,decls:2,vars:1,consts:[[1,"expander"],[1,"expander",3,"click"]],template:function(t,n){t&1&&(P2(),z2(0),v(1,uf,2,1,"div",0)),t&2&&(m(),x2(1,n.displayExpander()?1:-1))},styles:["[_nghost-%COMP%]{display:block;overflow-y:hidden;position:relative}.expanded[_nghost-%COMP%]{max-height:none!important}.expanded[_nghost-%COMP%]   .expander[_ngcontent-%COMP%]{position:static;padding:1em}[_nghost-%COMP%]   .expander[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;text-align:center;background-color:#fff;background:linear-gradient(0deg,#fff 30%,#fff0);font-weight:700;padding:4em 1em 1em;cursor:pointer;-webkit-user-select:none;user-select:none}"],changeDetection:0});let c=i;return c})();var CC=(()=>{let i=class i extends p5{constructor(){super(...arguments),this.sizes={B:1,KB:1e3,MB:1e6,GB:1e9}}transform(e,t,n){let[l,f]=this.normalizeValue(Number(e)),d=super.transform(l,t,n);return d?`${d}${f}`:null}normalizeValue(e){let t=Object.keys(this.sizes),n=t.reverse().find(l=>e/this.sizes[l]>1)??t[0];return[e/this.sizes[n],n]}};i.\u0275fac=(()=>{let e;return function(n){return(e||(e=C2(i)))(n||i)}})(),i.\u0275pipe=j4({name:"bytes",type:i,pure:!0});let c=i;return c})();var xC=(()=>{let i=class i{transform(e,t="US"){if(!e)return"";try{return N7(e.toString(),t).formatNational()}catch{return e?.toString()}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=j4({name:"phone",type:i,pure:!0,standalone:!0});let c=i;return c})();var V6=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=N2({type:i}),i.\u0275inj=_2({imports:[G]});let c=i;return c})();var D9=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=N2({type:i}),i.\u0275inj=_2({imports:[G,A2,V6]});let c=i;return c})();var AM=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=N2({type:i}),i.\u0275inj=_2({providers:[Ye],imports:[p2,G,c6,A2,c3,M0,n0,D9,V6,I2,L1,P0,e9,tc,G0,P9,q3,O0,R0,c6,V6]});let c=i;return c})();export{y3 as a,v0 as b,Rf as c,yc as d,Qf as e,C0 as f,Xf as g,Zf as h,p8 as i,em as j,am as k,c6 as l,n4 as m,J1 as n,rh as o,sh as p,oh as q,lh as r,fh as s,mh as t,ph as u,dh as v,Lt as w,hh as x,Ve as y,uh as z,zh as A,vh as B,gh as C,xe as D,Hh as E,Ch as F,Mh as G,St as H,Vh as I,xh as J,Lh as K,bh as L,_t as M,yh as N,Sh as O,D4 as P,xi as Q,Em as R,M0 as S,S1 as T,P0 as U,w1 as V,Ic as W,D3 as X,Ae as Y,Ie as Z,M2 as _,ki as $,Ai as aa,Fm as ba,Dm as ca,Im as da,Ei as ea,Ti as fa,D1 as ga,ku as ha,Au as ia,Eu as ja,Be as ka,Oe as la,Re as ma,Ue as na,qe as oa,je as pa,g6 as qa,Qe as ra,T8 as sa,P8 as ta,q3 as ua,qg as va,$g as wa,tH as xa,rH as ya,F8 as za,R1 as Aa,U0 as Ba,D8 as Ca,c9 as Da,e9 as Ea,G0 as Fa,P9 as Ga,sC as Ha,lC as Ia,F9 as Ja,mC as Ka,vC as La,CC as Ma,xC as Na,AM as Oa};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.