@mxtommy/kip 4.2.0 → 4.4.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +84 -0
  2. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +35 -0
  4. package/.github/copilot-instructions.md +1 -1
  5. package/.github/instructions/project.instructions.md +7 -1
  6. package/.github/workflows/ci.yml +37 -0
  7. package/CHANGELOG.md +10 -0
  8. package/package.json +42 -41
  9. package/plugin/index.js +2 -2
  10. package/public/3rdpartylicenses.txt +230 -76
  11. package/public/assets/svg/AtoN/cardinal/east_beacon.svg +21 -0
  12. package/public/assets/svg/AtoN/cardinal/east_mark.svg +30 -0
  13. package/public/assets/svg/AtoN/cardinal/north_beacon.svg +20 -0
  14. package/public/assets/svg/AtoN/cardinal/north_mark.svg +30 -0
  15. package/public/assets/svg/AtoN/cardinal/south_beacon.svg +20 -0
  16. package/public/assets/svg/AtoN/cardinal/south_mark.svg +30 -0
  17. package/public/assets/svg/AtoN/cardinal/west_beacon.svg +21 -0
  18. package/public/assets/svg/AtoN/cardinal/west_mark.svg +57 -0
  19. package/public/assets/svg/AtoN/dangerSafe/isolateddanger_beacon.svg +16 -0
  20. package/public/assets/svg/AtoN/dangerSafe/isolateddanger_mark.svg +30 -0
  21. package/public/assets/svg/AtoN/dangerSafe/safewater_beacon_.svg +15 -0
  22. package/public/assets/svg/AtoN/dangerSafe/safewater_mark.svg +43 -0
  23. package/public/assets/svg/AtoN/lateral/port_beacon.svg +6 -0
  24. package/public/assets/svg/AtoN/lateral/port_mark.svg +24 -0
  25. package/public/assets/svg/AtoN/lateral/port_prefered_beacon.svg +15 -0
  26. package/public/assets/svg/AtoN/lateral/port_prefered_mark.svg +44 -0
  27. package/public/assets/svg/AtoN/lateral/starboard_beacon.svg +6 -0
  28. package/public/assets/svg/AtoN/lateral/starboard_mark.svg +24 -0
  29. package/public/assets/svg/AtoN/lateral/starboard_prefered_beacon.svg +15 -0
  30. package/public/assets/svg/AtoN/lateral/starboard_prefered_mark.svg +48 -0
  31. package/public/assets/svg/AtoN/other/aton.svg +78 -0
  32. package/public/assets/svg/AtoN/other/basestation.svg +91 -0
  33. package/public/assets/svg/AtoN/other/unknown.svg +22 -0
  34. package/public/assets/svg/AtoN/special/special_beacon.svg +7 -0
  35. package/public/assets/svg/AtoN/special/special_mark.svg +20 -0
  36. package/public/assets/svg/Chart icons.md +28 -0
  37. package/public/assets/svg/aircraft/ais_sar-aircraft.svg +23 -0
  38. package/public/assets/svg/icons.svg +6 -0
  39. package/public/assets/svg/sar-distress-device/sart-eprib-mob.svg +35 -0
  40. package/public/assets/svg/vessel/buddy.svg +26 -0
  41. package/public/assets/svg/vessel/cargo.svg +20 -0
  42. package/public/assets/svg/vessel/diving-ops.svg +31 -0
  43. package/public/assets/svg/vessel/fishing.svg +20 -0
  44. package/public/assets/svg/vessel/highspeed.svg +24 -0
  45. package/public/assets/svg/vessel/law-enforcement.svg +24 -0
  46. package/public/assets/svg/vessel/military-ops.svg +60 -0
  47. package/public/assets/svg/vessel/other.svg +20 -0
  48. package/public/assets/svg/vessel/passenger.svg +20 -0
  49. package/public/assets/svg/vessel/pilot.svg +82 -0
  50. package/public/assets/svg/vessel/pleasurecraft.svg +20 -0
  51. package/public/assets/svg/vessel/sailing.svg +20 -0
  52. package/public/assets/svg/vessel/sar.svg +25 -0
  53. package/public/assets/svg/vessel/self.svg +67 -0
  54. package/public/assets/svg/vessel/stationary.svg +32 -0
  55. package/public/assets/svg/vessel/tanker.svg +20 -0
  56. package/public/assets/svg/vessel/tug.svg +20 -0
  57. package/public/assets/svg/vessel/unknown.svg +22 -0
  58. package/public/chunk-2KMYPGX4.js +2 -0
  59. package/public/{chunk-K6B4TD2H.js → chunk-4VUI3CY7.js} +2 -2
  60. package/public/{chunk-NL5QCOXT.js → chunk-5DLSQ773.js} +2 -2
  61. package/public/chunk-6OSCSQLJ.js +3 -0
  62. package/public/{chunk-5SCAJ637.js → chunk-7HLFWAA7.js} +1 -1
  63. package/public/chunk-BNIQFWQ6.js +62 -0
  64. package/public/chunk-C4OS6QP6.js +8 -0
  65. package/public/chunk-F7I3HKNJ.js +9 -0
  66. package/public/chunk-FGRB3BHZ.js +1 -0
  67. package/public/{chunk-XWOIVPRO.js → chunk-HJQQWPGC.js} +1 -1
  68. package/public/{chunk-FHQZULYJ.js → chunk-IWK4FHBL.js} +1 -1
  69. package/public/{chunk-2VPC34OU.js → chunk-J4IGUIZA.js} +6 -6
  70. package/public/{chunk-GDL5ORNF.js → chunk-KIR67PZ2.js} +1 -1
  71. package/public/chunk-KKJXPB75.js +8 -0
  72. package/public/chunk-MMIOUKLI.js +1 -0
  73. package/public/{chunk-WON6RAF5.js → chunk-PDYVZHOK.js} +1 -1
  74. package/public/chunk-PESXPDBT.js +2 -0
  75. package/public/chunk-PKATAZA2.js +1 -0
  76. package/public/chunk-PSF2OKKT.js +1 -0
  77. package/public/chunk-TGGJAGV7.js +15 -0
  78. package/public/chunk-TKC7ROZ7.js +4 -0
  79. package/public/{chunk-UUOWRIVR.js → chunk-UVAQADRE.js} +1 -1
  80. package/public/chunk-VH4ZIU4T.js +4 -0
  81. package/public/chunk-XEJJOWK6.js +2 -0
  82. package/public/chunk-YYXDMH5J.js +53 -0
  83. package/public/index.html +2 -2
  84. package/public/main-WAAIS2M6.js +1 -0
  85. package/public/polyfills-L4FJGPOC.js +2 -0
  86. package/public/{styles-7VM4HXM4.css → styles-DYEO23GZ.css} +1 -1
  87. package/public/chunk-36RQFRQN.js +0 -4
  88. package/public/chunk-3KBT35BP.js +0 -3
  89. package/public/chunk-4NAXE7SZ.js +0 -9
  90. package/public/chunk-6X3BMVOP.js +0 -8
  91. package/public/chunk-7SK25B6D.js +0 -1
  92. package/public/chunk-ATH26UZ7.js +0 -1
  93. package/public/chunk-CX4O7M4U.js +0 -63
  94. package/public/chunk-DWMZAC65.js +0 -1
  95. package/public/chunk-FGMEEOZH.js +0 -5
  96. package/public/chunk-MOEZSWFX.js +0 -15
  97. package/public/chunk-PJZLX3XW.js +0 -2
  98. package/public/chunk-PNFBM2CP.js +0 -1
  99. package/public/chunk-PVUOCOI5.js +0 -53
  100. package/public/chunk-SP4UPLYW.js +0 -4
  101. package/public/chunk-Y5TQMH7M.js +0 -2
  102. package/public/main-CRPMOYEB.js +0 -4
  103. package/public/polyfills-GNK4EEYZ.js +0 -2
@@ -1 +0,0 @@
1
- import{A as Ut,Aa as Ur,Ac as Jr,B as j,Ba as xt,C as Pt,Ca as Pr,D as Er,Da as pe,E as We,Ea as _r,Ec as Xr,Fa as Ye,Ga as Pe,Gc as en,Ia as H,Ib as Yr,Ja as Ze,K as Q,Ka as jt,La as Lr,Lc as Ft,M as Qe,Ma as xr,N as Ue,Nc as et,Q as fe,Qa as jr,Rb as Zr,Rc as tn,Tc as rn,Ua as kr,Uc as ve,V as Ar,Vc as nn,W as K,Wc as me,X as _t,Xc as qt,Ya as $r,Za as kt,a as h,ab as zr,b as D,ba as Tr,bb as ge,ca as F,cb as Fr,da as Ke,eb as qr,f as y,fa as q,g as Cr,gb as Br,hb as Je,i as Sr,ia as w,ib as Hr,id as Bt,j as wr,ja as Mr,jb as Vr,k as ie,kb as Xe,la as S,m as O,ma as Nr,na as Dr,oa as E,pa as Y,q as U,qa as l,qb as Gr,r as A,ra as Or,s as g,sb as Wr,sd as on,t as br,ta as B,tb as $t,u as Ot,ua as T,ub as zt,v as Ir,vb as Qr,xb as Kr,z as I,za as Lt}from"./chunk-MOEZSWFX.js";var p="primary",Be=Symbol("RouteTitle"),Qt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ae(t){return new Qt(t)}function Ht(t,n,e){for(let r=0;r<t.length;r++){let i=t[r],o=n[r];if(i[0]===":")e[i.substring(1)]=o;else if(i!==o.path)return!1}return!0}function gn(t,n,e){let r=e.path.split("/"),i=r.indexOf("**");if(i===-1){if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let c={},u=t.slice(0,r.length);return Ht(r,u,c)?{consumed:u,posParams:c}:null}if(i!==r.lastIndexOf("**"))return null;let o=r.slice(0,i),s=r.slice(i+1);if(o.length+s.length>t.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!Ht(o,t.slice(0,o.length),a)||!Ht(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function st(t){return new Promise((n,e)=>{t.pipe(K()).subscribe({next:r=>n(r),error:r=>e(r)})})}function vi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!k(t[e],n[e]))return!1;return!0}function k(t,n){let e=t?Kt(t):void 0,r=n?Kt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!vn(t[i],n[i]))return!1;return!0}function Kt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function vn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function mi(t){return t.length>0?t[t.length-1]:null}function ue(t){return Ot(t)?t:Wr(t)?A(Promise.resolve(t)):g(t)}function mn(t){return Ot(t)?st(t):Promise.resolve(t)}var yi={exact:Rn,subset:Cn},yn={exact:Ri,subset:Ci,ignored:()=>!0};function sn(t,n,e){return yi[e.paths](t.root,n.root,e.matrixParams)&&yn[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function Ri(t,n){return k(t,n)}function Rn(t,n,e){if(!oe(t.segments,n.segments)||!nt(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!Rn(t.children[r],n.children[r],e))return!1;return!0}function Ci(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>vn(t[e],n[e]))}function Cn(t,n,e){return Sn(t,n,n.segments,e)}function Sn(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!oe(i,e)||n.hasChildren()||!nt(i,e,r))}else if(t.segments.length===e.length){if(!oe(t.segments,e)||!nt(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Cn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!oe(t.segments,i)||!nt(t.segments,i,r)||!t.children[p]?!1:Sn(t.children[p],n,o,r)}}function nt(t,n,e){return n.every((r,i)=>yn[e](t[i].parameters,r.parameters))}var x=class{root;queryParams;fragment;_queryParamMap;constructor(n=new v([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){return bi.serialize(this)}},v=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return it(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ae(this.parameters),this._parameterMap}toString(){return bn(this)}};function Si(t,n){return oe(t,n)&&t.every((e,r)=>k(e.parameters,n[r].parameters))}function oe(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function wi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===p&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==p&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>new G,providedIn:"root"})}return t})(),G=class{parse(n){let e=new Zt(n);return new x(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=Ai(n.queryParams),i=typeof n.fragment=="string"?`#${Ii(n.fragment)}`:"";return`${e}${r}${i}`}},bi=new G;function it(t){return t.segments.map(n=>bn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return it(t);if(n){let e=t.children[p]?_e(t.children[p],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==p&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=wi(t,(r,i)=>i===p?[_e(t.children[p],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[p]!=null?`${it(t)}/${e[0]}`:`${it(t)}/(${e.join("//")})`}}function wn(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function tt(t){return wn(t).replace(/%3B/gi,";")}function Ii(t){return encodeURI(t)}function Yt(t){return wn(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ot(t){return decodeURIComponent(t)}function an(t){return ot(t.replace(/\+/g,"%20"))}function bn(t){return`${Yt(t.path)}${Ei(t.parameters)}`}function Ei(t){return Object.entries(t).map(([n,e])=>`;${Yt(n)}=${Yt(e)}`).join("")}function Ai(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${tt(e)}=${tt(i)}`).join("&"):`${tt(e)}=${tt(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ti=/^[^\/()?;#]+/;function Vt(t){let n=t.match(Ti);return n?n[0]:""}var Mi=/^[^\/()?;=#]+/;function Ni(t){let n=t.match(Mi);return n?n[0]:""}var Di=/^[^=?&#]+/;function Oi(t){let n=t.match(Di);return n?n[0]:""}var Ui=/^[^&#]+/;function Pi(t){let n=t.match(Ui);return n?n[0]:""}var Zt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new v([],{}):new v([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[p]=new v(n,e)),r}parseSegment(){let n=Vt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(n),new Z(ot(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ni(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Vt(this.remaining);i&&(r=i,this.capture(r))}n[ot(e)]=ot(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Pi(this.remaining);s&&(r=s,this.capture(r))}let i=an(e),o=an(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Vt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new w(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=p);let s=this.parseChildren();e[o??p]=Object.keys(s).length===1&&s[p]?s[p]:new v([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new w(4011,!1)}};function In(t){return t.segments.length>0?new v([],{[p]:t}):t}function En(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=En(i);if(r===p&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new v(t.segments,n);return _i(e)}function _i(t){if(t.numberOfChildren===1&&t.children[p]){let n=t.children[p];return new v(t.segments.concat(n.segments),n.children)}return t}function J(t){return t instanceof x}function An(t,n,e=null,r=null,i=new G){let o=Tn(t);return Mn(o,n,e,r,i)}function Tn(t){let n;function e(o){let s={};for(let c of o.children){let u=e(c);s[c.outlet]=u}let a=new v(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=In(r);return n??i}function Mn(t,n,e,r,i){let o=t;for(;o.parent;)o=o.parent;if(n.length===0)return Gt(o,o,o,e,r,i);let s=Li(n);if(s.toRoot())return Gt(o,o,new v([],{}),e,r,i);let a=xi(s,o,t),c=a.processChildren?xe(a.segmentGroup,a.index,s.commands):Dn(a.segmentGroup,a.index,s.commands);return Gt(o,a.segmentGroup,c,e,r,i)}function at(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function cn(t,n,e){t||="\u0275";let r=new x;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Gt(t,n,e,r,i,o){let s={};for(let[u,d]of Object.entries(r??{}))s[u]=Array.isArray(d)?d.map(f=>cn(u,f,o)):cn(u,d,o);let a;t===n?a=e:a=Nn(t,n,e);let c=In(En(a));return new x(c,s,i)}function Nn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=Nn(o,n,e)}),new v(t.segments,r)}var ct=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&at(r[0]))throw new w(4003,!1);let i=r.find(ke);if(i&&i!==mi(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Li(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new ct(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,u])=>{a[c]=typeof u=="string"?u.split("/"):u}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new ct(e,n,r)}var Re=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function xi(t,n,e){if(t.isAbsolute)return new Re(n,!0,0);if(!e)return new Re(n,!1,NaN);if(e.parent===null)return new Re(e,!0,0);let r=at(t.commands[0])?0:1,i=e.segments.length-1+r;return ji(e,i,t.numberOfDoubleDots)}function ji(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new w(4005,!1);i=r.segments.length}return new Re(r,!1,i-o)}function ki(t){return ke(t[0])?t[0].outlets:{[p]:t}}function Dn(t,n,e){if(t??=new v([],{}),t.segments.length===0&&t.hasChildren())return xe(t,n,e);let r=$i(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new v(t.segments.slice(0,r.pathIndex),{});return o.children[p]=new v(t.segments.slice(r.pathIndex),t.children),xe(o,0,i)}else return r.match&&i.length===0?new v(t.segments,{}):r.match&&!t.hasChildren()?Jt(t,n,e):r.match?xe(t,0,i):Jt(t,n,e)}function xe(t,n,e){if(e.length===0)return new v(t.segments,{});{let r=ki(e),i={};if(Object.keys(r).some(o=>o!==p)&&t.children[p]&&t.numberOfChildren===1&&t.children[p].segments.length===0){let o=xe(t.children[p],n,e);return new v(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Dn(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new v(t.segments,i)}}function $i(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(ke(a))break;let c=`${a}`,u=r<e.length-1?e[r+1]:null;if(i>0&&c===void 0)break;if(c&&u&&typeof u=="object"&&u.outlets===void 0){if(!ln(c,u,s))return o;r+=2}else{if(!ln(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Jt(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let c=zi(o.outlets);return new v(r,c)}if(i===0&&at(e[0])){let c=t.segments[n];r.push(new Z(c.path,un(e[0]))),i++;continue}let s=ke(o)?o.outlets[p]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&at(a)?(r.push(new Z(s,un(a))),i+=2):(r.push(new Z(s,{})),i++)}return new v(r,{})}function zi(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Jt(new v([],{}),0,r))}),n}function un(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ln(t,n,e){return t==e.path&&k(n,e.parameters)}var Ce="imperative",C=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(C||{}),N=class{id;url;constructor(n,e){this.id=n,this.url=e}},X=class extends N{type=C.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},_=class extends N{urlAfterRedirects;type=C.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b||{}),we=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(we||{}),P=class extends N{reason;code;type=C.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function On(t){return t instanceof P&&(t.code===b.Redirect||t.code===b.SupersededByNewNavigation)}var $=class extends N{reason;code;type=C.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},ce=class extends N{error;target;type=C.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},be=class extends N{urlAfterRedirects;state;type=C.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ut=class extends N{urlAfterRedirects;state;type=C.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},lt=class extends N{urlAfterRedirects;state;shouldActivate;type=C.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},ht=class extends N{urlAfterRedirects;state;type=C.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dt=class extends N{urlAfterRedirects;state;type=C.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class{route;type=C.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},pt=class{route;type=C.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},gt=class{snapshot;type=C.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vt=class{snapshot;type=C.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},mt=class{snapshot;type=C.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},yt=class{snapshot;type=C.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ie=class{routerEvent;position;anchor;scrollBehavior;type=C.Scroll;constructor(n,e,r,i){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=i}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Ee=class{},Ae=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function Fi(t){return!(t instanceof Ee)&&!(t instanceof Ae)}var Rt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new he(this.rootInjector)}},he=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(Y(B))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ct=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Xt(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Xt(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=er(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return er(n,this._root).map(e=>e.value)}};function Xt(t,n){if(t===n.value)return n;for(let e of n.children){let r=Xt(t,e);if(r)return r}return null}function er(t,n){if(t===n.value)return[n];for(let e of n.children){let r=er(t,e);if(r.length)return r.unshift(n),r}return[]}var M=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ye(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var $e=class extends Ct{snapshot;constructor(n,e){super(n),this.snapshot=e,cr(this,n)}toString(){return this.snapshot.toString()}};function Un(t,n){let e=qi(t,n),r=new O([new Z("",{})]),i=new O({}),o=new O({}),s=new O({}),a=new O(""),c=new z(r,i,s,a,o,p,t,e.root);return c.snapshot=e.root,new $e(new M(c,[]),e)}function qi(t,n){let e={},r={},i={},s=new se([],e,i,"",r,p,t,null,{},n);return new ze("",new M(s,[]))}var z=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(I(u=>u[Be]))??g(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(I(n=>ae(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(I(n=>ae(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function St(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:h(h({},n.params),t.params),data:h(h({},n.data),t.data),resolve:h(h(h(h({},t.data),n.data),i?.data),t._resolvedData)}:r={params:h({},t.params),data:h({},t.data),resolve:h(h({},t.data),t._resolvedData??{})},i&&_n(i)&&(r.resolve[Be]=i.title),r}var se=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Be]}constructor(n,e,r,i,o,s,a,c,u,d){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=u,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ae(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ae(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ze=class extends Ct{url;constructor(n,e){super(e),this.url=n,cr(this,e)}toString(){return Pn(this._root)}};function cr(t,n){n.value._routerState=t,n.children.forEach(e=>cr(t,e))}function Pn(t){let n=t.children.length>0?` { ${t.children.map(Pn).join(", ")} } `:"";return`${t.value}${n}`}function Wt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,k(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),k(n.params,e.params)||t.paramsSubject.next(e.params),vi(n.url,e.url)||t.urlSubject.next(e.url),k(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function tr(t,n){let e=k(t.params,n.params)&&Si(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||tr(t.parent,n.parent))}function _n(t){return typeof t.title=="string"||t.title===null}var Ln=new E(""),ur=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=p;activateEvents=new pe;deactivateEvents=new pe;attachEvents=new pe;detachEvents=new pe;routerOutletData=en();parentContexts=l(he);location=l(qr);changeDetector=l(Ft);inputBinder=l(He,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new rr(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Xe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ze]})}return t})(),rr=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===z?this.route:n===he?this.childContexts:n===Ln?this.outletData:this.parent.get(n,e)}},He=new E(""),lr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Ut([r.queryParams,r.params,r.data]).pipe(F(([o,s,a],c)=>(a=h(h(h({},o),s),a),c===0?g(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=tn(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})(),hr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Hr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Yr(0,"router-outlet")},dependencies:[ur],encapsulation:2})}return t})();function dr(t){let n=t.children&&t.children.map(dr),e=n?D(h({},t),{children:n}):h({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==p&&(e.component=hr),e}function Bi(t,n,e){let r=Fe(t,n._root,e?e._root:void 0);return new $e(r,n)}function Fe(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Hi(t,n,e);return new M(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Fe(t,a)),s}}let r=Vi(n.value),i=n.children.map(o=>Fe(t,o));return new M(r,i)}}function Hi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Fe(t,r,i);return Fe(t,r)})}function Vi(t){return new z(new O(t.url),new O(t.params),new O(t.queryParams),new O(t.fragment),new O(t.data),t.outlet,t.component,t)}var Te=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},xn="ngNavigationCancelingError";function wt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=J(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=jn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function jn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[xn]=!0,e.cancellationCode=n,e}function Gi(t){return kn(t)&&J(t.url)}function kn(t){return!!t&&t[xn]}var nr=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Wt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ye(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ye(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new yt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new vt(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Wt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Wt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},bt=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Se=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return Le(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ne(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Dr(t)?t:n.get(t):r}function Le(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ye(n);return t.children.forEach(s=>{Ki(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>je(a,e.getContext(s),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=Yi(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new bt(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?Le(t,n,a?a.children:null,r,i):Le(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Se(a.outlet.component,s))}else s&&je(n,a,i),i.canActivateChecks.push(new bt(r)),o.component?Le(t,null,a?a.children:null,r,i):Le(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return T(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!oe(t.url,n.url);case"pathParamsOrQueryParamsChange":return!oe(t.url,n.url)||!k(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!tr(t,n)||!k(t.queryParams,n.queryParams);default:return!tr(t,n)}}function je(t,n,e){let r=ye(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?je(s,n.children.getContext(o),e):je(s,null,e):je(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Se(n.outlet.component,i)):e.canDeactivateChecks.push(new Se(null,i)):e.canDeactivateChecks.push(new Se(null,i))}function Ve(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Ve(t.canLoad)}function Xi(t){return t&&Ve(t.canActivate)}function eo(t){return t&&Ve(t.canActivateChild)}function to(t){return t&&Ve(t.canDeactivate)}function ro(t){return t&&Ve(t.canMatch)}function $n(t){return t instanceof Ir||t?.name==="EmptyError"}var rt=Symbol("INITIAL_VALUE");function Me(){return F(t=>Ut(t.map(n=>n.pipe(fe(1),Tr(rt)))).pipe(I(n=>{for(let e of n)if(e!==!0){if(e===rt)return rt;if(e===!1||no(e))return e}return!0}),Q(n=>n!==rt),fe(1)))}function no(t){return J(t)||t instanceof Te}function zn(t){return t.aborted?g(void 0).pipe(fe(1)):new wr(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function Fn(t){return Ke(zn(t))}function io(t){return j(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:i,canDeactivateChecks:o}}=n;return o.length===0&&i.length===0?g(D(h({},n),{guardsResult:!0})):oo(o,e,r).pipe(j(s=>s&&Zi(s)?so(e,i,t):g(s)),I(s=>D(h({},n),{guardsResult:s})))})}function oo(t,n,e){return A(t).pipe(j(r=>ho(r.component,r.route,e,n)),K(r=>r!==!0,!0))}function so(t,n,e){return A(n).pipe(Ue(r=>Er(co(r.route.parent,e),ao(r.route,e),lo(t,r.path),uo(t,r.route))),K(r=>r!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new mt(t)),g(!0)}function co(t,n){return t!==null&&n&&n(new gt(t)),g(!0)}function uo(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return g(!0);let r=e.map(i=>We(()=>{let o=n._environmentInjector,s=Ne(i,o),a=Xi(s)?s.canActivate(n,t):T(o,()=>s(n,t));return ue(a).pipe(K())}));return g(r).pipe(Me())}function lo(t,n){let e=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(o=>Qi(o)).filter(o=>o!==null).map(o=>We(()=>{let s=o.guards.map(a=>{let c=o.node._environmentInjector,u=Ne(a,c),d=eo(u)?u.canActivateChild(e,t):T(c,()=>u(e,t));return ue(d).pipe(K())});return g(s).pipe(Me())}));return g(i).pipe(Me())}function ho(t,n,e,r){let i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!i||i.length===0)return g(!0);let o=i.map(s=>{let a=n._environmentInjector,c=Ne(s,a),u=to(c)?c.canDeactivate(t,n,e,r):T(a,()=>c(t,n,e,r));return ue(u).pipe(K())});return g(o).pipe(Me())}function fo(t,n,e,r,i){let o=n.canLoad;if(o===void 0||o.length===0)return g(!0);let s=o.map(a=>{let c=Ne(a,t),u=Ji(c)?c.canLoad(n,e):T(t,()=>c(n,e)),d=ue(u);return i?d.pipe(Fn(i)):d});return g(s).pipe(Me(),qn(r))}function qn(t){return Sr(q(n=>{if(typeof n!="boolean")throw wt(t,n)}),I(n=>n===!0))}function po(t,n,e,r,i){let o=n.canMatch;if(!o||o.length===0)return g(!0);let s=o.map(a=>{let c=Ne(a,t),u=ro(c)?c.canMatch(n,e):T(t,()=>c(n,e));return ue(u).pipe(Fn(i))});return g(s).pipe(Me(),qn(r))}var V=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},qe=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function go(t){throw new w(4e3,!1)}function vo(t){throw jn(!1,b.GuardRejected)}var ir=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){return y(this,null,function*(){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return r;if(i.numberOfChildren>1||!i.children[p])throw go(`${n.redirectTo}`);i=i.children[p]}})}applyRedirectCommands(n,e,r,i,o){return y(this,null,function*(){let s=yield mo(e,i,o);if(s instanceof x)throw new qe(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new qe(a);return a})}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new x(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new v(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new w(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function mo(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,params:u,data:d,title:f,paramMap:R,queryParamMap:m}=n;return st(ue(T(e,()=>r({params:u,data:d,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:c,title:f,paramMap:R,queryParamMap:m}))))}function yo(t,n){return t.providers&&!t._injector&&(t._injector=Je(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||p}function Ro(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}var or={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Co(t,n,e,r,i,o){let s=Bn(t,n,e);return s.matched?(r=yo(n,r),po(r,n,e,i,o).pipe(I(a=>a===!0?s:h({},or)))):g(s)}function Bn(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?h({},or):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||gn)(e,t,n);if(!i)return h({},or);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?h(h({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function hn(t,n,e,r){return e.length>0&&bo(t,e,r)?{segmentGroup:new v(n,wo(r,new v(e,t.children))),slicedSegments:[]}:e.length===0&&Io(t,e,r)?{segmentGroup:new v(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new v(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Et(t,n,o)&&!r[L(o)]){let s=new v([],{});i[L(o)]=s}return h(h({},r),i)}function wo(t,n){let e={};e[p]=n;for(let r of t)if(r.path===""&&L(r)!==p){let i=new v([],{});e[L(r)]=i}return e}function bo(t,n,e){return e.some(r=>Et(t,n,r)&&L(r)!==p)}function Io(t,n,e){return e.some(r=>Et(t,n,r))}function Et(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Eo(t,n,e){return n.length===0&&!t.children[e]}var sr=class{};function Ao(t,n,e,r,i,o,s="emptyOnly",a){return y(this,null,function*(){return new ar(t,n,e,r,i,s,o,a).recognize()})}var To=31,ar=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new ir(this.urlSerializer,this.urlTree)}noMatchError(n){return new w(4002,`'${n.segmentGroup}'`)}recognize(){return y(this,null,function*(){let n=hn(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=yield this.match(n),i=new M(r,e),o=new ze("",i),s=An(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}})}match(n){return y(this,null,function*(){let e=new se([],Object.freeze({}),Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),p,this.rootComponentType,null,{},this.injector);try{return{children:yield this.processSegmentGroup(this.injector,this.config,n,p,e),rootSnapshot:e}}catch(r){if(r instanceof qe)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof V?this.noMatchError(r):r}})}processSegmentGroup(n,e,r,i,o){return y(this,null,function*(){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,o);let s=yield this.processSegment(n,e,r,r.segments,i,!0,o);return s instanceof M?[s]:[]})}processChildren(n,e,r,i){return y(this,null,function*(){let o=[];for(let c of Object.keys(r.children))c==="primary"?o.unshift(c):o.push(c);let s=[];for(let c of o){let u=r.children[c],d=Ro(e,c),f=yield this.processSegmentGroup(n,d,u,c,i);s.push(...f)}let a=Hn(s);return Mo(a),a})}processSegment(n,e,r,i,o,s,a){return y(this,null,function*(){for(let c of e)try{return yield this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a)}catch(u){if(u instanceof V||$n(u))continue;throw u}if(Eo(r,i,o))return new sr;throw new V(r)})}processSegmentAgainstRoute(n,e,r,i,o,s,a,c){return y(this,null,function*(){if(L(r)!==s&&(s===p||!Et(i,o,r)))throw new V(i);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,i,r,o,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c);throw new V(i)})}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){return y(this,null,function*(){let{matched:c,parameters:u,consumedSegments:d,positionalParamSegments:f,remainingSegments:R}=Bn(e,i,o);if(!c)throw new V(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let m=new se(o,u,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(i),L(i),i.component??i._loadedComponent??null,i,fn(i),n),te=St(m,a,this.paramsInheritanceStrategy);if(m.params=Object.freeze(te.params),m.data=Object.freeze(te.data),this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let re=yield this.applyRedirects.applyRedirectCommands(d,i.redirectTo,f,m,n),ne=yield this.applyRedirects.lineralizeSegments(i,re);return this.processSegment(n,r,e,ne.concat(R),s,!1,a)})}matchSegmentAgainstRoute(n,e,r,i,o,s){return y(this,null,function*(){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=yield st(Co(e,r,i,n,this.urlSerializer,this.abortSignal));if(r.path==="**"&&(e.children={}),!a?.matched)throw new V(e);n=r._injector??n;let{routes:c}=yield this.getChildConfig(n,r,i),u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:R}=a,m=new se(f,d,Object.freeze(h({},this.urlTree.queryParams)),this.urlTree.fragment,dn(r),L(r),r.component??r._loadedComponent??null,r,fn(r),n),te=St(m,s,this.paramsInheritanceStrategy);m.params=Object.freeze(te.params),m.data=Object.freeze(te.data);let{segmentGroup:re,slicedSegments:ne}=hn(e,f,R,c);if(ne.length===0&&re.hasChildren()){let pi=yield this.processChildren(u,c,re,m);return new M(m,pi)}if(c.length===0&&ne.length===0)return new M(m,[]);let Dt=L(r)===o,Oe=yield this.processSegment(u,c,re,ne,Dt?p:o,!0,m);return new M(m,Oe instanceof M?[Oe]:[])})}getChildConfig(n,e,r){return y(this,null,function*(){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let o=e._loadedNgModuleFactory;return o&&!e._loadedInjector&&(e._loadedInjector=o.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(yield st(fo(n,e,r,this.urlSerializer,this.abortSignal))){let o=yield this.configLoader.loadChildren(n,e);return e._loadedRoutes=o.routes,e._loadedInjector=o.injector,e._loadedNgModuleFactory=o.factory,o}throw vo(e)}return{routes:[],injector:n}})}};function Mo(t){t.sort((n,e)=>n.value.outlet===p?-1:e.value.outlet===p?1:n.value.outlet.localeCompare(e.value.outlet))}function No(t){let n=t.value.routeConfig;return n&&n.path===""}function Hn(t){let n=[],e=new Set;for(let r of t){if(!No(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Hn(r.children);n.push(new M(r.value,i))}return n.filter(r=>!e.has(r))}function dn(t){return t.data||{}}function fn(t){return t.resolve||{}}function Do(t,n,e,r,i,o,s){return j(a=>y(null,null,function*(){let{state:c,tree:u}=yield Ao(t,n,e,r,a.extractedUrl,i,o,s);return D(h({},a),{targetSnapshot:c,urlAfterRedirects:u})}))}function Oo(t){return j(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return g(n);let i=new Set(r.map(a=>a.route)),o=new Set;for(let a of i)if(!o.has(a))for(let c of Vn(a))o.add(c);let s=0;return A(o).pipe(Ue(a=>i.has(a)?Uo(a,e,t):(a.data=St(a,a.parent,t).resolve,g(void 0))),q(()=>s++),_t(1),j(a=>s===o.size?g(n):U))})}function Vn(t){let n=t.children.map(e=>Vn(e)).flat();return[t,...n]}function Uo(t,n,e){let r=t.routeConfig,i=t._resolve;return r?.title!==void 0&&!_n(r)&&(i[Be]=r.title),We(()=>(t.data=St(t,t.parent,e).resolve,Po(i,t,n).pipe(I(o=>(t._resolvedData=o,t.data=h(h({},t.data),o),null)))))}function Po(t,n,e){let r=Kt(t);if(r.length===0)return g({});let i={};return A(r).pipe(j(o=>_o(t[o],n,e).pipe(K(),q(s=>{if(s instanceof Te)throw wt(new G,s);i[o]=s}))),_t(1),I(()=>i),Qe(o=>$n(o)?U:br(o)))}function _o(t,n,e){let r=n._environmentInjector,i=Ne(t,r),o=i.resolve?i.resolve(n,e):T(r,()=>i(n,e));return ue(o)}function pn(t){return F(n=>{let e=t(n);return e?A(e).pipe(I(()=>n)):g(n)})}var fr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===p);return r}getResolvedTitleForRoute(e){return e.data[Be]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Gn),providedIn:"root"})}return t})(),Gn=(()=>{class t extends fr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(Y(on))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ee=new E("",{factory:()=>({})}),de=new E(""),At=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=l(Jr);loadComponent(e,r){return y(this,null,function*(){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield mn(T(e,()=>r.loadComponent())),s=yield Kn(Qn(o));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}});return this.componentLoaders.set(r,i),i})}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let i=y(this,null,function*(){try{let o=yield Wn(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=o.routes,r._loadedInjector=o.injector,r._loadedNgModuleFactory=o.factory,o}finally{this.childrenLoaders.delete(r)}});return this.childrenLoaders.set(r,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Wn(t,n,e,r){return y(this,null,function*(){let i=yield mn(T(e,()=>t.loadChildren())),o=yield Kn(Qn(i)),s;o instanceof Br||Array.isArray(o)?s=o:s=yield n.compileModuleAsync(o),r&&r(t);let a,c,u=!1,d;return Array.isArray(s)?(c=s,u=!0):(a=s.create(e).injector,d=s,c=a.get(de,[],{optional:!0,self:!0}).flat()),{routes:c.map(dr),injector:a,factory:d}})}function Lo(t){return t&&typeof t=="object"&&"default"in t}function Qn(t){return Lo(t)?t.default:t}function Kn(t){return y(this,null,function*(){return t})}var Tt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pr=new E(""),gr=new E("");function Yn(t,n,e){let r=t.get(gr),i=t.get(Ur);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(u=>setTimeout(u));let o,s=new Promise(u=>{o=u}),a=i.startViewTransition(()=>(o(),jo(t)));a.updateCallbackDone.catch(u=>{}),a.ready.catch(u=>{}),a.finished.catch(u=>{});let{onViewTransitionCreated:c}=r;return c&&T(t,()=>c({transition:a,from:n,to:e})),s}function jo(t){return new Promise(n=>{kt({read:()=>setTimeout(n)},{injector:t})})}var ko=()=>{},vr=new E(""),Mt=(()=>{class t{currentNavigation=Pe(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Pe(null);events=new ie;transitionAbortWithErrorSubject=new ie;configLoader=l(At);environmentInjector=l(B);destroyRef=l(xt);urlSerializer=l(le);rootContexts=l(he);location=l(me);inputBindingEnabled=l(He,{optional:!0})!==null;titleStrategy=l(fr);options=l(ee,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=l(Tt);createViewTransition=l(pr,{optional:!0});navigationErrorHandler=l(vr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>g(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new ft(i)),r=i=>this.events.next(new pt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;H(()=>{this.transitions?.next(D(h({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r}))})}setupNavigations(e){return this.transitions=new O(null),this.transitions.pipe(Q(r=>r!==null),F(r=>{let i=!1,o=new AbortController,s=()=>!i&&this.currentTransition?.id===r.id;return g(r).pipe(F(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),U;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?D(h({},c),{previousNavigation:null}):null,abort:()=>o.abort()});let u=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),d=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!u&&d!=="reload")return this.events.next(new $(a.id,this.urlSerializer.serialize(a.rawUrl),"",we.IgnoredSameUrlNavigation)),a.resolve(!1),U;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return g(a).pipe(F(f=>(this.events.next(new X(f.id,this.urlSerializer.serialize(f.extractedUrl),f.source,f.restoredState)),f.id!==this.navigationId?U:Promise.resolve(f))),Do(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),q(f=>{r.targetSnapshot=f.targetSnapshot,r.urlAfterRedirects=f.urlAfterRedirects,this.currentNavigation.update(m=>(m.finalUrl=f.urlAfterRedirects,m));let R=new be(f.id,this.urlSerializer.serialize(f.extractedUrl),this.urlSerializer.serialize(f.urlAfterRedirects),f.targetSnapshot);this.events.next(R)}));if(u&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:f,extractedUrl:R,source:m,restoredState:te,extras:re}=a,ne=new X(f,this.urlSerializer.serialize(R),m,te);this.events.next(ne);let Dt=Un(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=D(h({},a),{targetSnapshot:Dt,urlAfterRedirects:R,extras:D(h({},re),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(Oe=>(Oe.finalUrl=R,Oe)),g(r)}else return this.events.next(new $(a.id,this.urlSerializer.serialize(a.extractedUrl),"",we.IgnoredByUrlHandlingStrategy)),a.resolve(!1),U}),I(a=>{let c=new ut(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=D(h({},a),{guards:Wi(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),io(a=>this.events.next(a)),F(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw wt(this.urlSerializer,a.guardsResult);let c=new lt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return U;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",b.GuardRejected),U;if(a.guards.canActivateChecks.length===0)return g(a);let u=new ht(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(u),!s())return U;let d=!1;return g(a).pipe(Oo(this.paramsInheritanceStrategy),q({next:()=>{d=!0;let f=new dt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(f)},complete:()=>{d||this.cancelNavigationTransition(a,"",b.NoDataFromResolver)}}))}),pn(a=>{let c=d=>{let f=[];if(d.routeConfig?._loadedComponent)d.component=d.routeConfig?._loadedComponent;else if(d.routeConfig?.loadComponent){let R=d._environmentInjector;f.push(this.configLoader.loadComponent(R,d.routeConfig).then(m=>{d.component=m}))}for(let R of d.children)f.push(...c(R));return f},u=c(a.targetSnapshot.root);return u.length===0?g(a):A(Promise.all(u).then(()=>a))}),pn(()=>this.afterPreactivation()),F(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,u=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return u?A(u).pipe(I(()=>r)):g(r)}),fe(1),I(a=>{let c=Bi(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=D(h({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new Ee),s()&&(new nr(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,u=>this.events.next(u),this.inputBindingEnabled).activate(this.rootContexts),s()&&(i=!0,this.currentNavigation.update(u=>(u.abort=ko,u)),this.lastSuccessfulNavigation.set(H(this.currentNavigation)),this.events.next(new _(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)))}),Ke(zn(o.signal).pipe(Q(()=>!i&&!r.targetRouterState),q(()=>{this.cancelNavigationTransition(r,o.signal.reason+"",b.Aborted)}))),q({complete:()=>{i=!0}}),Ke(this.transitionAbortWithErrorSubject.pipe(q(a=>{throw a}))),Ar(()=>{o.abort(),i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Qe(a=>{if(i=!0,this.destroyed)return r.resolve(!1),U;if(kn(a))this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),Gi(a)?this.events.next(new Ae(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new ce(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let u=T(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(u instanceof Te){let{message:d,cancellationCode:f}=wt(this.urlSerializer,u);this.events.next(new P(r.id,this.urlSerializer.serialize(r.extractedUrl),d,f)),this.events.next(new Ae(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(u){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(u)}}return U}))}))}cancelNavigationTransition(e,r,i){let o=new P(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=H(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function $o(t){return t!==Ce}var Zn=new E("");var Jn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(zo),providedIn:"root"})}return t})(),It=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},zo=(()=>{class t extends It{static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mr=(()=>{class t{urlSerializer=l(le);options=l(ee,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=l(me);urlHandlingStrategy=l(Tt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new x;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof x?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=Un(null,l(B));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:()=>l(Fo),providedIn:"root"})}return t})(),Fo=(()=>{class t extends mr{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof X?this.updateStateMemento():e instanceof $?this.commitTransition(r):e instanceof be?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ee?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof P&&!On(e)?this.restoreHistory(r):e instanceof ce?this.restoreHistory(r,!0):e instanceof _&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,c=h(h({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",c)}else{let a=h(h({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=jt(t)))(i||t)}})();static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Nt(t,n){t.events.pipe(Q(e=>e instanceof _||e instanceof P||e instanceof ce||e instanceof $),I(e=>e instanceof _||e instanceof $?0:(e instanceof P?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),Q(e=>e!==2),fe(1)).subscribe(()=>{n()})}var Xn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ei={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},W=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=l(Gr);stateManager=l(mr);options=l(ee,{optional:!0})||{};pendingTasks=l(Pr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=l(Mt);urlSerializer=l(le);location=l(me);urlHandlingStrategy=l(Tt);injector=l(B);_events=new ie;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=l(Jn);injectorCleanup=l(Zn,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=l(de,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!l(He,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Cr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=H(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof P&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof _)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Ae){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=h({scroll:i.extras.scroll,browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$o(i.source)},s);this.scheduleNavigation(a,Ce,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}Fi(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ce,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=h({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(c=>{this.disposed||this.injector.get(Ye)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return H(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(dr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,u=c?this.currentUrlTree.fragment:s,d=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":d=h(h({},this.currentUrlTree.queryParams),o);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}d!==null&&(d=this.removeEmptyProps(d));let f;try{let R=i?i.snapshot:this.routerState.snapshot.root;f=Tn(R)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),f=this.currentUrlTree.root}return Mn(f,e,d,u??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let i=J(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Ce,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Mr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=h({},Xn):r===!1?i=h({},ei):i=r,J(e))return sn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return sn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,u;s?(a=s.resolve,c=s.reject,u=s.promise):u=new Promise((f,R)=>{a=f,c=R});let d=this.pendingTasks.add();return Nt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(f=>Promise.reject(f))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new w(4008,!1)}var ti=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Pe(null);get href(){return H(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new ie;applicationErrorHandler=l(Ye);options=l(ee,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(l(new Xr("href"),{optional:!0}));let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement&&(this.setTabIndexIfNotOnNativeEl("0"),this.subscribeToNavigationEventsIfNecessary())}subscribeToNavigationEventsIfNecessary(){this.subscription===void 0&&(this.subscription=this.router.events.subscribe(e=>{e instanceof _&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(J(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(u=>{this.applicationErrorHandler(u)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:J(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(ge(W),ge(z),Lr("tabindex"),ge(zr),ge(xr),ge(ve))};static \u0275dir=Xe({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&Zr("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Kr("href",i.reactiveHref(),kr)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",et],skipLocationChange:[2,"skipLocationChange","skipLocationChange",et],replaceUrl:[2,"replaceUrl","replaceUrl",et],routerLink:"routerLink"},features:[Ze]})}return t})();var Ge=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(Q(e=>e instanceof _),Ue(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Je(o.providers,e,""));let s=o._injector??e;o._loadedNgModuleFactory&&!o._loadedInjector&&(o._loadedInjector=o._loadedNgModuleFactory.create(s).injector);let a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return A(i).pipe(Pt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return g(null);let i;r.loadChildren&&r.canLoad===void 0?i=A(this.loader.loadChildren(e,r)):i=g(null);let o=i.pipe(j(s=>s===null?g(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return A([o,s]).pipe(Pt())}else return o})}static \u0275fac=function(r){return new(r||t)(Y(W),Y(B),Y(Ge),Y(At))};static \u0275prov=S({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new E(""),Ho=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ce;restoredId=0;store={};urlSerializer=l(le);zone=l(_r);viewportScroller=l(Bt);transitions=l(Mt);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof X?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof _?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof $&&e.code===we.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Ie)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){let i=H(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(()=>y(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new Ie(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Fr()};static \u0275prov=S({token:t,factory:t.\u0275fac})}return t})();function Vo(t,...n){return Or([{provide:de,multi:!0,useValue:t},[],{provide:z,useFactory:ii},{provide:zt,multi:!0,useFactory:oi},n.map(e=>e.\u0275providers)])}function ii(){return l(W).routerState.root}function De(t,n){return{\u0275kind:t,\u0275providers:n}}function oi(){let t=l(Lt);return n=>{let e=t.get(Qr);if(n!==e.components[0])return;let r=t.get(W),i=t.get(si);t.get(Rr)===1&&r.initialNavigation(),t.get(ui,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var si=new E("",{factory:()=>new ie}),Rr=new E("",{factory:()=>1});function ai(){let t=[{provide:jr,useValue:!0},{provide:Rr,useValue:0},$t(()=>{let n=l(Lt);return n.get(rn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(W),o=n.get(si);Nt(i,()=>{r(!0)}),n.get(Mt).afterPreactivation=()=>(r(!0),o.closed?g(void 0):o),i.initialNavigation()}))})];return De(2,t)}function ci(){let t=[$t(()=>{l(W).setUpLocationChangeListener()}),{provide:Rr,useValue:2}];return De(3,t)}var ui=new E("");function li(t){return De(0,[{provide:ui,useExisting:ri},{provide:Ge,useExisting:t}])}function Go(){return De(6,[{provide:ve,useClass:qt}])}function hi(){return De(8,[lr,{provide:He,useExisting:lr}])}function di(t){$r("NgRouterViewTransitions");let n=[{provide:pr,useValue:Yn},{provide:gr,useValue:h({skipNextTransition:!!t?.skipInitialTransition},t)}];return De(9,n)}var fi=[me,{provide:le,useClass:G},W,he,{provide:z,useFactory:ii},At,[]],Wo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[fi,[],{provide:de,multi:!0,useValue:e},[],r?.errorHandler?{provide:vr,useValue:r.errorHandler}:[],{provide:ee,useValue:r||{}},r?.useHash?Ko():Yo(),Qo(),r?.preloadingStrategy?li(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Zo(r):[],r?.bindToComponentInputs?hi().\u0275providers:[],r?.enableViewTransitions?di().\u0275providers:[],Jo()]}}static forChild(e){return{ngModule:t,providers:[{provide:de,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Vr({type:t});static \u0275inj=Nr({})}return t})();function Qo(){return{provide:ni,useFactory:()=>{let t=l(Bt),n=l(ee);return n.scrollOffset&&t.setOffset(n.scrollOffset),new Ho(n)}}}function Ko(){return{provide:ve,useClass:qt}}function Yo(){return{provide:ve,useClass:nn}}function Zo(t){return[t.initialNavigation==="disabled"?ci().\u0275providers:[],t.initialNavigation==="enabledBlocking"?ai().\u0275providers:[]]}var yr=new E("");function Jo(){return[{provide:yr,useFactory:oi},{provide:zt,multi:!0,useExisting:yr}]}export{_ as a,ur as b,W as c,ti as d,Vo as e,Go as f,Wo as g};
@@ -1 +0,0 @@
1
- import{a as c}from"./chunk-GDL5ORNF.js";import"./chunk-XWOIVPRO.js";import{e as g,l}from"./chunk-FGMEEOZH.js";import{k as a,m as r}from"./chunk-PJZLX3XW.js";import"./chunk-Y5TQMH7M.js";import{ib as s,qa as t}from"./chunk-MOEZSWFX.js";var v=(()=>{class o{dialog=t(l);auth=t(a);appService=t(g);appSettingsService=t(r);connectionConfig=null;ngOnInit(){this.connectionConfig=this.appSettingsService.getConnectionConfig(),this.openUserCredentialModal("Sign in failed: Incorrect user/password. Enter valide credentials or access the Confifuration/Settings menu, validate the server URL or/and disable the user Sign in option")}openUserCredentialModal(e){this.dialog.open(c,{disableClose:!0,data:{user:this.connectionConfig.loginName,password:this.connectionConfig.loginPassword,error:e}}).afterClosed().subscribe(i=>{i===void 0||!i||(this.connectionConfig.loginName=i.user,this.connectionConfig.loginPassword=i.password,this.appSettingsService.setConnectionConfig(this.connectionConfig),this.serverLogin())})}serverLogin(e){this.auth.login({usr:this.connectionConfig.loginName,pwd:this.connectionConfig.loginPassword,newUrl:e}).then(()=>{this.appSettingsService.reloadApp()}).catch(n=>{n.status==401?(this.openUserCredentialModal("Sign in failed: Invalide user/password. Enter valide credentials"),console.log("[Setting-SignalK Component] Sign in failed: "+n.error.message)):n.status==404?(this.appService.sendSnackbarNotification("Sign in failed: Login API not found at URL. See connection detail status in Configuration/Settings",5e3,!1),console.log("[Setting-SignalK Component] Sign in failed: "+n.error.message)):n.status==0?(this.appService.sendSnackbarNotification("Sign in failed: Cannot reach server at Signal K URL. See connection detail status in Configuration/Settings",5e3,!1),console.log("[Setting-SignalK Component] Sign in failed: Cannot reach server at Signal K URL:"+n.message)):(this.appService.sendSnackbarNotification("Unknown authentication failure: "+JSON.stringify(n),5e3,!1),console.log("[Setting-SignalK Component] Unknown login error response: "+JSON.stringify(n)))})}static \u0275fac=function(n){return new(n||o)};static \u0275cmp=s({type:o,selectors:[["app-widget-login"]],decls:0,vars:0,template:function(n,i){},encapsulation:2})}return o})();export{v as WidgetLoginComponent};
@@ -1,63 +0,0 @@
1
- import{b as Ae,d as Ut,i as Xt,j as Zt,m as Vt,p as Yt,t as Qt}from"./chunk-Y5TQMH7M.js";import{$ as st,Aa as ye,Ab as _t,Bc as Ct,Bd as $t,Cd as Lt,Ce as qt,Da as R,Ea as we,Fb as xt,Ga as lt,Gb as Te,H as et,Hb as Re,Ib as Ce,J as A,Ja as ct,Jb as Q,K as tt,Kb as ue,Lc as ee,Ld as Ie,Ma as O,Na as ut,Nc as N,Oa as ht,Pb as yt,Q as nt,Qb as wt,R as it,Ra as ve,Rb as Ee,Sb as he,Tb as L,U as rt,Ub as W,Vb as z,Wb as vt,Wd as zt,Xa as Z,Xb as Mt,Xd as Nt,Yb as K,Za as pt,Zb as G,Zd as Ft,_a as Me,a as b,ab as dt,b as T,ba as oe,ca as j,cb as mt,da as le,dc as J,eb as V,f as E,fc as St,g as ae,gc as Tt,ge as De,hc as Rt,hd as P,ib as $,jb as Se,k as M,kb as ce,kd as Et,la as at,ma as xe,me as Bt,nb as gt,ne as Ht,oa as y,pb as ft,pd as Pt,pe as jt,qa as d,s as H,tc as Pe,td as It,ud as Dt,va as q,vb as bt,vd as At,wa as U,wd as Ot,xa as ot,xb as Y,z as Je,za as X,zb as kt}from"./chunk-MOEZSWFX.js";function ze(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var D=ze();function nn(r){D=r}var re={exec:()=>null};function f(r,i=""){let e=typeof r=="string"?r:r.source,n={replace:(t,s)=>{let a=typeof s=="string"?s:s.source;return a=a.replace(_.caret,"$1"),e=e.replace(t,a),n},getRegex:()=>new RegExp(e,i)};return n}var _n=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),_={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},xn=/^(?:[ \t]*(?:\n|$))+/,yn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,wn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,se=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ne=/(?:[*+-]|\d{1,9}[.)])/,rn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,sn=f(rn).replace(/bull/g,Ne).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Mn=f(rn).replace(/bull/g,Ne).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Sn=/^[^\n]+/,Be=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Tn=f(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Be).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Rn=f(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ne).getRegex(),ge="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",He=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Cn=f("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",He).replace("tag",ge).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),an=f(Fe).replace("hr",se).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ge).getRegex(),En=f(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",an).getRegex(),je={blockquote:En,code:yn,def:Tn,fences:wn,heading:vn,hr:se,html:Cn,lheading:sn,list:Rn,newline:xn,paragraph:an,table:re,text:Sn},Wt=f("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",se).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ge).getRegex(),Pn=T(b({},je),{lheading:Mn,table:Wt,paragraph:f(Fe).replace("hr",se).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Wt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ge).getRegex()}),In=T(b({},je),{html:f(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",He).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:re,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:f(Fe).replace("hr",se).replace("heading",` *#{1,6} *[^
2
- ]`).replace("lheading",sn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),Dn=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,An=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,on=/^( {2,}|\\)\n(?!\s*$)/,On=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,fe=/[\p{P}\p{S}]/u,qe=/[\s\p{P}\p{S}]/u,ln=/[^\s\p{P}\p{S}]/u,$n=f(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,qe).getRegex(),cn=/(?!~)[\p{P}\p{S}]/u,Ln=/(?!~)[\s\p{P}\p{S}]/u,zn=/(?:[^\s\p{P}\p{S}]|~)/u,Nn=f(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_n?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),un=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Fn=f(un,"u").replace(/punct/g,fe).getRegex(),Bn=f(un,"u").replace(/punct/g,cn).getRegex(),hn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Hn=f(hn,"gu").replace(/notPunctSpace/g,ln).replace(/punctSpace/g,qe).replace(/punct/g,fe).getRegex(),jn=f(hn,"gu").replace(/notPunctSpace/g,zn).replace(/punctSpace/g,Ln).replace(/punct/g,cn).getRegex(),qn=f("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ln).replace(/punctSpace/g,qe).replace(/punct/g,fe).getRegex(),Un=f(/\\(punct)/,"gu").replace(/punct/g,fe).getRegex(),Xn=f(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Zn=f(He).replace("(?:-->|$)","-->").getRegex(),Vn=f("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Zn).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),de=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Yn=f(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",de).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),pn=f(/^!?\[(label)\]\[(ref)\]/).replace("label",de).replace("ref",Be).getRegex(),dn=f(/^!?\[(ref)\](?:\[\])?/).replace("ref",Be).getRegex(),Qn=f("reflink|nolink(?!\\()","g").replace("reflink",pn).replace("nolink",dn).getRegex(),Kt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Ue={_backpedal:re,anyPunctuation:Un,autolink:Xn,blockSkip:Nn,br:on,code:An,del:re,emStrongLDelim:Fn,emStrongRDelimAst:Hn,emStrongRDelimUnd:qn,escape:Dn,link:Yn,nolink:dn,punctuation:$n,reflink:pn,reflinkSearch:Qn,tag:Vn,text:On,url:re},Wn=T(b({},Ue),{link:f(/^!?\[(label)\]\((.*?)\)/).replace("label",de).getRegex(),reflink:f(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",de).getRegex()}),Oe=T(b({},Ue),{emStrongRDelimAst:jn,emStrongLDelim:Bn,url:f(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Kt).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:f(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Kt).getRegex()}),Kn=T(b({},Oe),{br:f(on).replace("{2,}","*").getRegex(),text:f(Oe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),pe={normal:je,gfm:Pn,pedantic:In},te={normal:Ue,gfm:Oe,breaks:Kn,pedantic:Wn},Gn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gt=r=>Gn[r];function S(r,i){if(i){if(_.escapeTest.test(r))return r.replace(_.escapeReplace,Gt)}else if(_.escapeTestNoEncode.test(r))return r.replace(_.escapeReplaceNoEncode,Gt);return r}function Jt(r){try{r=encodeURI(r).replace(_.percentDecode,"%")}catch{return null}return r}function en(r,i){let e=r.replace(_.findPipe,(s,a,l)=>{let o=!1,u=a;for(;--u>=0&&l[u]==="\\";)o=!o;return o?"|":" |"}),n=e.split(_.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),i)if(n.length>i)n.splice(i);else for(;n.length<i;)n.push("");for(;t<n.length;t++)n[t]=n[t].trim().replace(_.slashPipe,"|");return n}function ne(r,i,e){let n=r.length;if(n===0)return"";let t=0;for(;t<n;){let s=r.charAt(n-t-1);if(s===i&&!e)t++;else if(s!==i&&e)t++;else break}return r.slice(0,n-t)}function Jn(r,i){if(r.indexOf(i[1])===-1)return-1;let e=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===i[0])e++;else if(r[n]===i[1]&&(e--,e<0))return n;return e>0?-2:-1}function tn(r,i,e,n,t){let s=i.href,a=i.title||null,l=r[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let o={type:r[0].charAt(0)==="!"?"image":"link",raw:e,href:s,title:a,text:l,tokens:n.inlineTokens(l)};return n.state.inLink=!1,o}function ei(r,i,e){let n=r.match(e.other.indentCodeCompensation);if(n===null)return i;let t=n[1];return i.split(`
3
- `).map(s=>{let a=s.match(e.other.beginningSpace);if(a===null)return s;let[l]=a;return l.length>=t.length?s.slice(t.length):s}).join(`
4
- `)}var me=class{options;rules;lexer;constructor(r){this.options=r||D}space(r){let i=this.rules.block.newline.exec(r);if(i&&i[0].length>0)return{type:"space",raw:i[0]}}code(r){let i=this.rules.block.code.exec(r);if(i){let e=i[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:i[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ne(e,`
5
- `)}}}fences(r){let i=this.rules.block.fences.exec(r);if(i){let e=i[0],n=ei(e,i[3]||"",this.rules);return{type:"code",raw:e,lang:i[2]?i[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):i[2],text:n}}}heading(r){let i=this.rules.block.heading.exec(r);if(i){let e=i[2].trim();if(this.rules.other.endingHash.test(e)){let n=ne(e,"#");(this.options.pedantic||!n||this.rules.other.endingSpaceChar.test(n))&&(e=n.trim())}return{type:"heading",raw:i[0],depth:i[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(r){let i=this.rules.block.hr.exec(r);if(i)return{type:"hr",raw:ne(i[0],`
6
- `)}}blockquote(r){let i=this.rules.block.blockquote.exec(r);if(i){let e=ne(i[0],`
7
- `).split(`
8
- `),n="",t="",s=[];for(;e.length>0;){let a=!1,l=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))l.push(e[o]),a=!0;else if(!a)l.push(e[o]);else break;e=e.slice(o);let u=l.join(`
9
- `),c=u.replace(this.rules.other.blockquoteSetextReplace,`
10
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
11
- ${u}`:u,t=t?`${t}
12
- ${c}`:c;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,s,!0),this.lexer.state.top=p,e.length===0)break;let h=s.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let k=h,m=k.raw+`
13
- `+e.join(`
14
- `),x=this.blockquote(m);s[s.length-1]=x,n=n.substring(0,n.length-k.raw.length)+x.raw,t=t.substring(0,t.length-k.text.length)+x.text;break}else if(h?.type==="list"){let k=h,m=k.raw+`
15
- `+e.join(`
16
- `),x=this.list(m);s[s.length-1]=x,n=n.substring(0,n.length-h.raw.length)+x.raw,t=t.substring(0,t.length-k.raw.length)+x.raw,e=m.substring(s.at(-1).raw.length).split(`
17
- `);continue}}return{type:"blockquote",raw:n,tokens:s,text:t}}}list(r){let i=this.rules.block.list.exec(r);if(i){let e=i[1].trim(),n=e.length>1,t={type:"list",raw:"",ordered:n,start:n?+e.slice(0,-1):"",loose:!1,items:[]};e=n?`\\d{1,9}\\${e.slice(-1)}`:`\\${e}`,this.options.pedantic&&(e=n?e:"[*+-]");let s=this.rules.other.listItemRegex(e),a=!1;for(;r;){let o=!1,u="",c="";if(!(i=s.exec(r))||this.rules.block.hr.test(r))break;u=i[0],r=r.substring(u.length);let p=i[2].split(`
18
- `,1)[0].replace(this.rules.other.listReplaceTabs,x=>" ".repeat(3*x.length)),h=r.split(`
19
- `,1)[0],k=!p.trim(),m=0;if(this.options.pedantic?(m=2,c=p.trimStart()):k?m=i[1].length+1:(m=i[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,c=p.slice(m),m+=i[1].length),k&&this.rules.other.blankLine.test(h)&&(u+=h+`
20
- `,r=r.substring(h.length+1),o=!0),!o){let x=this.rules.other.nextBulletRegex(m),We=this.rules.other.hrRegex(m),Ke=this.rules.other.fencesBeginRegex(m),Ge=this.rules.other.headingBeginRegex(m),kn=this.rules.other.htmlBeginRegex(m);for(;r;){let _e=r.split(`
21
- `,1)[0],B;if(h=_e,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),B=h):B=h.replace(this.rules.other.tabCharGlobal," "),Ke.test(h)||Ge.test(h)||kn.test(h)||x.test(h)||We.test(h))break;if(B.search(this.rules.other.nonSpaceChar)>=m||!h.trim())c+=`
22
- `+B.slice(m);else{if(k||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||Ke.test(p)||Ge.test(p)||We.test(p))break;c+=`
23
- `+h}!k&&!h.trim()&&(k=!0),u+=_e+`
24
- `,r=r.substring(_e.length+1),p=B.slice(m)}}t.loose||(a?t.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(a=!0)),t.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(c),loose:!1,text:c,tokens:[]}),t.raw+=u}let l=t.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;t.raw=t.raw.trimEnd();for(let o of t.items){if(this.lexer.state.top=!1,o.tokens=this.lexer.blockTokens(o.text,[]),o.task){if(o.text=o.text.replace(this.rules.other.listReplaceTask,""),o.tokens[0]?.type==="text"||o.tokens[0]?.type==="paragraph"){o.tokens[0].raw=o.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),o.tokens[0].text=o.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let c=this.lexer.inlineQueue.length-1;c>=0;c--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)){this.lexer.inlineQueue[c].src=this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(o.raw);if(u){let c={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};o.checked=c.checked,t.loose?o.tokens[0]&&["paragraph","text"].includes(o.tokens[0].type)&&"tokens"in o.tokens[0]&&o.tokens[0].tokens?(o.tokens[0].raw=c.raw+o.tokens[0].raw,o.tokens[0].text=c.raw+o.tokens[0].text,o.tokens[0].tokens.unshift(c)):o.tokens.unshift({type:"paragraph",raw:c.raw,text:c.raw,tokens:[c]}):o.tokens.unshift(c)}}if(!t.loose){let u=o.tokens.filter(p=>p.type==="space"),c=u.length>0&&u.some(p=>this.rules.other.anyLine.test(p.raw));t.loose=c}}if(t.loose)for(let o of t.items){o.loose=!0;for(let u of o.tokens)u.type==="text"&&(u.type="paragraph")}return t}}html(r){let i=this.rules.block.html.exec(r);if(i)return{type:"html",block:!0,raw:i[0],pre:i[1]==="pre"||i[1]==="script"||i[1]==="style",text:i[0]}}def(r){let i=this.rules.block.def.exec(r);if(i){let e=i[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=i[2]?i[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",t=i[3]?i[3].substring(1,i[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):i[3];return{type:"def",tag:e,raw:i[0],href:n,title:t}}}table(r){let i=this.rules.block.table.exec(r);if(!i||!this.rules.other.tableDelimiter.test(i[2]))return;let e=en(i[1]),n=i[2].replace(this.rules.other.tableAlignChars,"").split("|"),t=i[3]?.trim()?i[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
- `):[],s={type:"table",raw:i[0],header:[],align:[],rows:[]};if(e.length===n.length){for(let a of n)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<e.length;a++)s.header.push({text:e[a],tokens:this.lexer.inline(e[a]),header:!0,align:s.align[a]});for(let a of t)s.rows.push(en(a,s.header.length).map((l,o)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:s.align[o]})));return s}}lheading(r){let i=this.rules.block.lheading.exec(r);if(i)return{type:"heading",raw:i[0],depth:i[2].charAt(0)==="="?1:2,text:i[1],tokens:this.lexer.inline(i[1])}}paragraph(r){let i=this.rules.block.paragraph.exec(r);if(i){let e=i[1].charAt(i[1].length-1)===`
26
- `?i[1].slice(0,-1):i[1];return{type:"paragraph",raw:i[0],text:e,tokens:this.lexer.inline(e)}}}text(r){let i=this.rules.block.text.exec(r);if(i)return{type:"text",raw:i[0],text:i[0],tokens:this.lexer.inline(i[0])}}escape(r){let i=this.rules.inline.escape.exec(r);if(i)return{type:"escape",raw:i[0],text:i[1]}}tag(r){let i=this.rules.inline.tag.exec(r);if(i)return!this.lexer.state.inLink&&this.rules.other.startATag.test(i[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(i[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(i[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(i[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:i[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:i[0]}}link(r){let i=this.rules.inline.link.exec(r);if(i){let e=i[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let s=ne(e.slice(0,-1),"\\");if((e.length-s.length)%2===0)return}else{let s=Jn(i[2],"()");if(s===-2)return;if(s>-1){let a=(i[0].indexOf("!")===0?5:4)+i[1].length+s;i[2]=i[2].substring(0,s),i[0]=i[0].substring(0,a).trim(),i[3]=""}}let n=i[2],t="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],t=s[3])}else t=i[3]?i[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n=n.slice(1):n=n.slice(1,-1)),tn(i,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:t&&t.replace(this.rules.inline.anyPunctuation,"$1")},i[0],this.lexer,this.rules)}}reflink(r,i){let e;if((e=this.rules.inline.reflink.exec(r))||(e=this.rules.inline.nolink.exec(r))){let n=(e[2]||e[1]).replace(this.rules.other.multipleSpaceGlobal," "),t=i[n.toLowerCase()];if(!t){let s=e[0].charAt(0);return{type:"text",raw:s,text:s}}return tn(e,t,e[0],this.lexer,this.rules)}}emStrong(r,i,e=""){let n=this.rules.inline.emStrongLDelim.exec(r);if(!(!n||n[3]&&e.match(this.rules.other.unicodeAlphaNumeric))&&(!(n[1]||n[2])||!e||this.rules.inline.punctuation.exec(e))){let t=[...n[0]].length-1,s,a,l=t,o=0,u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,i=i.slice(-1*r.length+t);(n=u.exec(i))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(a=[...s].length,n[3]||n[4]){l+=a;continue}else if((n[5]||n[6])&&t%3&&!((t+a)%3)){o+=a;continue}if(l-=a,l>0)continue;a=Math.min(a,a+l+o);let c=[...n[0]][0].length,p=r.slice(0,t+n.index+c+a);if(Math.min(t,a)%2){let k=p.slice(1,-1);return{type:"em",raw:p,text:k,tokens:this.lexer.inlineTokens(k)}}let h=p.slice(2,-2);return{type:"strong",raw:p,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(r){let i=this.rules.inline.code.exec(r);if(i){let e=i[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),t=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&t&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:i[0],text:e}}}br(r){let i=this.rules.inline.br.exec(r);if(i)return{type:"br",raw:i[0]}}del(r){let i=this.rules.inline.del.exec(r);if(i)return{type:"del",raw:i[0],text:i[2],tokens:this.lexer.inlineTokens(i[2])}}autolink(r){let i=this.rules.inline.autolink.exec(r);if(i){let e,n;return i[2]==="@"?(e=i[1],n="mailto:"+e):(e=i[1],n=e),{type:"link",raw:i[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(r){let i;if(i=this.rules.inline.url.exec(r)){let e,n;if(i[2]==="@")e=i[0],n="mailto:"+e;else{let t;do t=i[0],i[0]=this.rules.inline._backpedal.exec(i[0])?.[0]??"";while(t!==i[0]);e=i[0],i[1]==="www."?n="http://"+i[0]:n=i[0]}return{type:"link",raw:i[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(r){let i=this.rules.inline.text.exec(r);if(i){let e=this.lexer.state.inRawBlock;return{type:"text",raw:i[0],text:i[0],escaped:e}}}},w=class $e{tokens;options;state;inlineQueue;tokenizer;constructor(i){this.tokens=[],this.tokens.links=Object.create(null),this.options=i||D,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:_,block:pe.normal,inline:te.normal};this.options.pedantic?(e.block=pe.pedantic,e.inline=te.pedantic):this.options.gfm&&(e.block=pe.gfm,this.options.breaks?e.inline=te.breaks:e.inline=te.gfm),this.tokenizer.rules=e}static get rules(){return{block:pe,inline:te}}static lex(i,e){return new $e(e).lex(i)}static lexInline(i,e){return new $e(e).inlineTokens(i)}lex(i){i=i.replace(_.carriageReturn,`
27
- `),this.blockTokens(i,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let n=this.inlineQueue[e];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(i,e=[],n=!1){for(this.options.pedantic&&(i=i.replace(_.tabCharGlobal," ").replace(_.spaceLine,""));i;){let t;if(this.options.extensions?.block?.some(a=>(t=a.call({lexer:this},i,e))?(i=i.substring(t.raw.length),e.push(t),!0):!1))continue;if(t=this.tokenizer.space(i)){i=i.substring(t.raw.length);let a=e.at(-1);t.raw.length===1&&a!==void 0?a.raw+=`
28
- `:e.push(t);continue}if(t=this.tokenizer.code(i)){i=i.substring(t.raw.length);let a=e.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
29
- `)?"":`
30
- `)+t.raw,a.text+=`
31
- `+t.text,this.inlineQueue.at(-1).src=a.text):e.push(t);continue}if(t=this.tokenizer.fences(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.heading(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.hr(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.blockquote(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.list(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.html(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.def(i)){i=i.substring(t.raw.length);let a=e.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
32
- `)?"":`
33
- `)+t.raw,a.text+=`
34
- `+t.raw,this.inlineQueue.at(-1).src=a.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title},e.push(t));continue}if(t=this.tokenizer.table(i)){i=i.substring(t.raw.length),e.push(t);continue}if(t=this.tokenizer.lheading(i)){i=i.substring(t.raw.length),e.push(t);continue}let s=i;if(this.options.extensions?.startBlock){let a=1/0,l=i.slice(1),o;this.options.extensions.startBlock.forEach(u=>{o=u.call({lexer:this},l),typeof o=="number"&&o>=0&&(a=Math.min(a,o))}),a<1/0&&a>=0&&(s=i.substring(0,a+1))}if(this.state.top&&(t=this.tokenizer.paragraph(s))){let a=e.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(`
35
- `)?"":`
36
- `)+t.raw,a.text+=`
37
- `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(t),n=s.length!==i.length,i=i.substring(t.raw.length);continue}if(t=this.tokenizer.text(i)){i=i.substring(t.raw.length);let a=e.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
38
- `)?"":`
39
- `)+t.raw,a.text+=`
40
- `+t.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):e.push(t);continue}if(i){let a="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,e}inline(i,e=[]){return this.inlineQueue.push({src:i,tokens:e}),e}inlineTokens(i,e=[]){let n=i,t=null;if(this.tokens.links){let o=Object.keys(this.tokens.links);if(o.length>0)for(;(t=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)o.includes(t[0].slice(t[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,t.index)+"["+"a".repeat(t[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(t=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,t.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s;for(;(t=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)s=t[2]?t[2].length:0,n=n.slice(0,t.index+s)+"["+"a".repeat(t[0].length-s-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,l="";for(;i;){a||(l=""),a=!1;let o;if(this.options.extensions?.inline?.some(c=>(o=c.call({lexer:this},i,e))?(i=i.substring(o.raw.length),e.push(o),!0):!1))continue;if(o=this.tokenizer.escape(i)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.tag(i)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.link(i)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.reflink(i,this.tokens.links)){i=i.substring(o.raw.length);let c=e.at(-1);o.type==="text"&&c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):e.push(o);continue}if(o=this.tokenizer.emStrong(i,n,l)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.codespan(i)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.br(i)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.del(i)){i=i.substring(o.raw.length),e.push(o);continue}if(o=this.tokenizer.autolink(i)){i=i.substring(o.raw.length),e.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(i))){i=i.substring(o.raw.length),e.push(o);continue}let u=i;if(this.options.extensions?.startInline){let c=1/0,p=i.slice(1),h;this.options.extensions.startInline.forEach(k=>{h=k.call({lexer:this},p),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(u=i.substring(0,c+1))}if(o=this.tokenizer.inlineText(u)){i=i.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(l=o.raw.slice(-1)),a=!0;let c=e.at(-1);c?.type==="text"?(c.raw+=o.raw,c.text+=o.text):e.push(o);continue}if(i){let c="Infinite loop on byte: "+i.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return e}},C=class{options;parser;constructor(r){this.options=r||D}space(r){return""}code({text:r,lang:i,escaped:e}){let n=(i||"").match(_.notSpaceStart)?.[0],t=r.replace(_.endingNewline,"")+`
41
- `;return n?'<pre><code class="language-'+S(n)+'">'+(e?t:S(t,!0))+`</code></pre>
42
- `:"<pre><code>"+(e?t:S(t,!0))+`</code></pre>
43
- `}blockquote({tokens:r}){return`<blockquote>
44
- ${this.parser.parse(r)}</blockquote>
45
- `}html({text:r}){return r}def(r){return""}heading({tokens:r,depth:i}){return`<h${i}>${this.parser.parseInline(r)}</h${i}>
46
- `}hr(r){return`<hr>
47
- `}list(r){let i=r.ordered,e=r.start,n="";for(let a=0;a<r.items.length;a++){let l=r.items[a];n+=this.listitem(l)}let t=i?"ol":"ul",s=i&&e!==1?' start="'+e+'"':"";return"<"+t+s+`>
48
- `+n+"</"+t+`>
49
- `}listitem(r){return`<li>${this.parser.parse(r.tokens)}</li>
50
- `}checkbox({checked:r}){return"<input "+(r?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:r}){return`<p>${this.parser.parseInline(r)}</p>
51
- `}table(r){let i="",e="";for(let t=0;t<r.header.length;t++)e+=this.tablecell(r.header[t]);i+=this.tablerow({text:e});let n="";for(let t=0;t<r.rows.length;t++){let s=r.rows[t];e="";for(let a=0;a<s.length;a++)e+=this.tablecell(s[a]);n+=this.tablerow({text:e})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
52
- <thead>
53
- `+i+`</thead>
54
- `+n+`</table>
55
- `}tablerow({text:r}){return`<tr>
56
- ${r}</tr>
57
- `}tablecell(r){let i=this.parser.parseInline(r.tokens),e=r.header?"th":"td";return(r.align?`<${e} align="${r.align}">`:`<${e}>`)+i+`</${e}>
58
- `}strong({tokens:r}){return`<strong>${this.parser.parseInline(r)}</strong>`}em({tokens:r}){return`<em>${this.parser.parseInline(r)}</em>`}codespan({text:r}){return`<code>${S(r,!0)}</code>`}br(r){return"<br>"}del({tokens:r}){return`<del>${this.parser.parseInline(r)}</del>`}link({href:r,title:i,tokens:e}){let n=this.parser.parseInline(e),t=Jt(r);if(t===null)return n;r=t;let s='<a href="'+r+'"';return i&&(s+=' title="'+S(i)+'"'),s+=">"+n+"</a>",s}image({href:r,title:i,text:e,tokens:n}){n&&(e=this.parser.parseInline(n,this.parser.textRenderer));let t=Jt(r);if(t===null)return S(e);r=t;let s=`<img src="${r}" alt="${e}"`;return i&&(s+=` title="${S(i)}"`),s+=">",s}text(r){return"tokens"in r&&r.tokens?this.parser.parseInline(r.tokens):"escaped"in r&&r.escaped?r.text:S(r.text)}},Xe=class{strong({text:r}){return r}em({text:r}){return r}codespan({text:r}){return r}del({text:r}){return r}html({text:r}){return r}text({text:r}){return r}link({text:r}){return""+r}image({text:r}){return""+r}br(){return""}checkbox({raw:r}){return r}},v=class Le{options;renderer;textRenderer;constructor(i){this.options=i||D,this.options.renderer=this.options.renderer||new C,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Xe}static parse(i,e){return new Le(e).parse(i)}static parseInline(i,e){return new Le(e).parseInline(i)}parse(i){let e="";for(let n=0;n<i.length;n++){let t=i[n];if(this.options.extensions?.renderers?.[t.type]){let a=t,l=this.options.extensions.renderers[a.type].call({parser:this},a);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){e+=l||"";continue}}let s=t;switch(s.type){case"space":{e+=this.renderer.space(s);break}case"hr":{e+=this.renderer.hr(s);break}case"heading":{e+=this.renderer.heading(s);break}case"code":{e+=this.renderer.code(s);break}case"table":{e+=this.renderer.table(s);break}case"blockquote":{e+=this.renderer.blockquote(s);break}case"list":{e+=this.renderer.list(s);break}case"checkbox":{e+=this.renderer.checkbox(s);break}case"html":{e+=this.renderer.html(s);break}case"def":{e+=this.renderer.def(s);break}case"paragraph":{e+=this.renderer.paragraph(s);break}case"text":{e+=this.renderer.text(s);break}default:{let a='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return e}parseInline(i,e=this.renderer){let n="";for(let t=0;t<i.length;t++){let s=i[t];if(this.options.extensions?.renderers?.[s.type]){let l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=l||"";continue}}let a=s;switch(a.type){case"escape":{n+=e.text(a);break}case"html":{n+=e.html(a);break}case"link":{n+=e.link(a);break}case"image":{n+=e.image(a);break}case"checkbox":{n+=e.checkbox(a);break}case"strong":{n+=e.strong(a);break}case"em":{n+=e.em(a);break}case"codespan":{n+=e.codespan(a);break}case"br":{n+=e.br(a);break}case"del":{n+=e.del(a);break}case"text":{n+=e.text(a);break}default:{let l='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}},ie=class{options;block;constructor(r){this.options=r||D}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(r){return r}postprocess(r){return r}processAllTokens(r){return r}emStrongMask(r){return r}provideLexer(){return this.block?w.lex:w.lexInline}provideParser(){return this.block?v.parse:v.parseInline}},ti=class{defaults=ze();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=v;Renderer=C;TextRenderer=Xe;Lexer=w;Tokenizer=me;Hooks=ie;constructor(...r){this.use(...r)}walkTokens(r,i){let e=[];for(let n of r)switch(e=e.concat(i.call(this,n)),n.type){case"table":{let t=n;for(let s of t.header)e=e.concat(this.walkTokens(s.tokens,i));for(let s of t.rows)for(let a of s)e=e.concat(this.walkTokens(a.tokens,i));break}case"list":{let t=n;e=e.concat(this.walkTokens(t.items,i));break}default:{let t=n;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(s=>{let a=t[s].flat(1/0);e=e.concat(this.walkTokens(a,i))}):t.tokens&&(e=e.concat(this.walkTokens(t.tokens,i)))}}return e}use(...r){let i=this.defaults.extensions||{renderers:{},childTokens:{}};return r.forEach(e=>{let n=b({},e);if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(t=>{if(!t.name)throw new Error("extension name required");if("renderer"in t){let s=i.renderers[t.name];s?i.renderers[t.name]=function(...a){let l=t.renderer.apply(this,a);return l===!1&&(l=s.apply(this,a)),l}:i.renderers[t.name]=t.renderer}if("tokenizer"in t){if(!t.level||t.level!=="block"&&t.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=i[t.level];s?s.unshift(t.tokenizer):i[t.level]=[t.tokenizer],t.start&&(t.level==="block"?i.startBlock?i.startBlock.push(t.start):i.startBlock=[t.start]:t.level==="inline"&&(i.startInline?i.startInline.push(t.start):i.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(i.childTokens[t.name]=t.childTokens)}),n.extensions=i),e.renderer){let t=this.defaults.renderer||new C(this.defaults);for(let s in e.renderer){if(!(s in t))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let a=s,l=e.renderer[a],o=t[a];t[a]=(...u)=>{let c=l.apply(t,u);return c===!1&&(c=o.apply(t,u)),c||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new me(this.defaults);for(let s in e.tokenizer){if(!(s in t))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let a=s,l=e.tokenizer[a],o=t[a];t[a]=(...u)=>{let c=l.apply(t,u);return c===!1&&(c=o.apply(t,u)),c}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new ie;for(let s in e.hooks){if(!(s in t))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let a=s,l=e.hooks[a],o=t[a];ie.passThroughHooks.has(s)?t[a]=u=>{if(this.defaults.async&&ie.passThroughHooksRespectAsync.has(s))return E(this,null,function*(){let p=yield l.call(t,u);return o.call(t,p)});let c=l.call(t,u);return o.call(t,c)}:t[a]=(...u)=>{if(this.defaults.async)return E(this,null,function*(){let p=yield l.apply(t,u);return p===!1&&(p=yield o.apply(t,u)),p});let c=l.apply(t,u);return c===!1&&(c=o.apply(t,u)),c}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(a){let l=[];return l.push(s.call(this,a)),t&&(l=l.concat(t.call(this,a))),l}}this.defaults=b(b({},this.defaults),n)}),this}setOptions(r){return this.defaults=b(b({},this.defaults),r),this}lexer(r,i){return w.lex(r,i??this.defaults)}parser(r,i){return v.parse(r,i??this.defaults)}parseMarkdown(r){return(i,e)=>{let n=b({},e),t=b(b({},this.defaults),n),s=this.onError(!!t.silent,!!t.async);if(this.defaults.async===!0&&n.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof i>"u"||i===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof i!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(i)+", string expected"));if(t.hooks&&(t.hooks.options=t,t.hooks.block=r),t.async)return E(this,null,function*(){let a=t.hooks?yield t.hooks.preprocess(i):i,l=yield(t.hooks?yield t.hooks.provideLexer():r?w.lex:w.lexInline)(a,t),o=t.hooks?yield t.hooks.processAllTokens(l):l;t.walkTokens&&(yield Promise.all(this.walkTokens(o,t.walkTokens)));let u=yield(t.hooks?yield t.hooks.provideParser():r?v.parse:v.parseInline)(o,t);return t.hooks?yield t.hooks.postprocess(u):u}).catch(s);try{t.hooks&&(i=t.hooks.preprocess(i));let a=(t.hooks?t.hooks.provideLexer():r?w.lex:w.lexInline)(i,t);t.hooks&&(a=t.hooks.processAllTokens(a)),t.walkTokens&&this.walkTokens(a,t.walkTokens);let l=(t.hooks?t.hooks.provideParser():r?v.parse:v.parseInline)(a,t);return t.hooks&&(l=t.hooks.postprocess(l)),l}catch(a){return s(a)}}}onError(r,i){return e=>{if(e.message+=`
59
- Please report this to https://github.com/markedjs/marked.`,r){let n="<p>An error occurred:</p><pre>"+S(e.message+"",!0)+"</pre>";return i?Promise.resolve(n):n}if(i)return Promise.reject(e);throw e}}},I=new ti;function g(r,i){return I.parse(r,i)}g.options=g.setOptions=function(r){return I.setOptions(r),g.defaults=I.defaults,nn(g.defaults),g};g.getDefaults=ze;g.defaults=D;g.use=function(...r){return I.use(...r),g.defaults=I.defaults,nn(g.defaults),g};g.walkTokens=function(r,i){return I.walkTokens(r,i)};g.parseInline=I.parseInline;g.Parser=v;g.parser=v.parse;g.Renderer=C;g.TextRenderer=Xe;g.Lexer=w;g.lexer=w.lex;g.Tokenizer=me;g.Hooks=ie;g.parse=g;var Ai=g.options,Oi=g.setOptions,$i=g.use,Li=g.walkTokens,zi=g.parseInline;var Ni=v.parse,Fi=w.lex;var ii=["*"],ri="Copy",si="Copied",ai=(()=>{class r{constructor(){this._buttonClick$=new M,this.copied=Pt(this._buttonClick$.pipe(j(()=>A(H(!0),et(3e3).pipe(it(!1)))),rt(),st(1))),this.copiedText=Ct(()=>this.copied()?si:ri)}onCopyToClipboardClick(){this._buttonClick$.next()}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=$({type:r,selectors:[["markdown-clipboard"]],decls:2,vars:3,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(n,t){n&1&&(Q(0,"button",0),he("click",function(){return t.onCopyToClipboardClick()}),Tt(1),ue()),n&2&&(J("copied",t.copied()),Z(),Rt(t.copiedText()))},encapsulation:2,changeDetection:0})}}return r})(),oi=new y("CLIPBOARD_OPTIONS");var li=new y("MARKED_EXTENSIONS"),ci=new y("MARKED_OPTIONS"),ui=new y("MERMAID_OPTIONS"),hi=new y("SANITIZE");function pi(r){return typeof r=="function"}var di="[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information",mi="[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information",gi="[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information",fi="[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information",bi="[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function",ki="[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information";var mn=(()=>{class r{get options(){return this._options}set options(e){this._options=b(b({},this.DEFAULT_MARKED_OPTIONS),e)}get renderer(){return this.options.renderer}set renderer(e){this.options.renderer=e}constructor(){this.clipboardOptions=d(oi,{optional:!0}),this.extensions=d(li,{optional:!0}),this.http=d(Et,{optional:!0}),this.mermaidOptions=d(ui,{optional:!0}),this.platform=d(ht),this.sanitize=d(hi,{optional:!0}),this.sanitizer=d(It),this.DEFAULT_MARKED_OPTIONS={renderer:new C},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this.DEFAULT_SECURITY_CONTEXT=ve.HTML,this._options=null,this._reload$=new M,this.reload$=this._reload$.asObservable(),this.options=d(ci,{optional:!0})}parse(e,n=this.DEFAULT_PARSE_OPTIONS){let{decodeHtml:t,inline:s,emoji:a,mermaid:l,disableSanitizer:o}=n,u=b(b({},this.options),n.markedOptions),c=u.renderer||this.renderer||new C;this.extensions&&(this.renderer=this.extendsRendererForExtensions(c)),l&&(this.renderer=this.extendsRendererForMermaid(c));let p=this.trimIndentation(e),h=t?this.decodeHtml(p):p,k=a?this.parseEmoji(h):h,m=this.parseMarked(k,u,s);return o?m:this.sanitizeHtml(m)}render(e,n=this.DEFAULT_RENDER_OPTIONS,t){let{clipboard:s,clipboardOptions:a,katex:l,katexOptions:o,mermaid:u,mermaidOptions:c}=n;l&&this.renderKatex(e,b(b({},this.DEFAULT_KATEX_OPTIONS),o)),u&&this.renderMermaid(e,b(b(b({},this.DEFAULT_MERMAID_OPTIONS),this.mermaidOptions),c)),s&&this.renderClipboard(e,t,b(b(b({},this.DEFAULT_CLIPBOARD_OPTIONS),this.clipboardOptions),a)),this.highlight(e)}reload(){this._reload$.next()}getSource(e){if(!this.http)throw new Error(ki);return this.http.get(e,{responseType:"text"}).pipe(Je(n=>this.handleExtension(e,n)))}highlight(e){if(!P(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;e||(e=document);let n=e.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(n,t=>t.classList.add("language-none")),Prism.highlightAllUnder(e)}decodeHtml(e){if(!P(this.platform))return e;let n=document.createElement("textarea");return n.innerHTML=e,n.value}extendsRendererForExtensions(e){let n=e;return n.\u0275NgxMarkdownRendererExtendedForExtensions===!0||(this.extensions&&this.extensions.length>0&&g.use(...this.extensions),n.\u0275NgxMarkdownRendererExtendedForExtensions=!0),e}extendsRendererForMermaid(e){let n=e;if(n.\u0275NgxMarkdownRendererExtendedForMermaid===!0)return e;let t=e.code;return e.code=s=>s.lang==="mermaid"?`<div class="mermaid">${s.text}</div>`:t(s),n.\u0275NgxMarkdownRendererExtendedForMermaid=!0,e}handleExtension(e,n){let t=e.lastIndexOf("://"),s=t>-1?e.substring(t+4):e,a=s.lastIndexOf("/"),l=a>-1?s.substring(a+1).split("?")[0]:"",o=l.lastIndexOf("."),u=o>-1?l.substring(o+1):"";return u&&u!=="md"?"```"+u+`
60
- `+n+"\n```":n}parseMarked(e,n,t=!1){if(n.renderer){let s=b({},n.renderer);delete s.\u0275NgxMarkdownRendererExtendedForExtensions,delete s.\u0275NgxMarkdownRendererExtendedForMermaid,delete n.renderer,g.use({renderer:s})}return t?g.parseInline(e,n):g.parse(e,n)}parseEmoji(e){if(!P(this.platform))return e;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error(di);return joypixels.shortnameToUnicode(e)}renderKatex(e,n){if(P(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error(mi);renderMathInElement(e,n)}}renderClipboard(e,n,t){if(!P(this.platform))return;if(typeof ClipboardJS>"u")throw new Error(fi);if(!n)throw new Error(bi);let{buttonComponent:s,buttonTemplate:a}=t,l=e.querySelectorAll("pre");for(let o=0;o<l.length;o++){let u=l.item(o),c=document.createElement("div");c.style.position="relative",u.parentNode.insertBefore(c,u),c.appendChild(u);let p=document.createElement("div");p.classList.add("markdown-clipboard-toolbar"),p.style.position="absolute",p.style.top=".5em",p.style.right=".5em",p.style.zIndex="1",c.insertAdjacentElement("beforeend",p),c.onmouseenter=()=>p.classList.add("hover"),c.onmouseleave=()=>p.classList.remove("hover");let h;if(s){let m=n.createComponent(s);h=m.hostView,m.changeDetectorRef.markForCheck()}else if(a)h=n.createEmbeddedView(a);else{let m=n.createComponent(ai);h=m.hostView,m.changeDetectorRef.markForCheck()}let k;h.rootNodes.forEach(m=>{p.appendChild(m),k=new ClipboardJS(m,{text:()=>u.innerText})}),h.onDestroy(()=>k.destroy())}}renderMermaid(e,n=this.DEFAULT_MERMAID_OPTIONS){if(!P(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error(gi);let t=e.querySelectorAll(".mermaid");t.length!==0&&(mermaid.initialize(n),mermaid.run({nodes:t}))}trimIndentation(e){if(!e)return"";let n;return e.split(`
61
- `).map(t=>{let s=n;return t.length>0&&(s=isNaN(s)?t.search(/\S|$/):Math.min(t.search(/\S|$/),s)),isNaN(n)&&(n=s),s?t.substring(s):t}).join(`
62
- `)}sanitizeHtml(e){return E(this,null,function*(){return pi(this.sanitize)?this.sanitize(yield e):this.sanitize!==ve.NONE?this.sanitizer.sanitize(this.sanitize??this.DEFAULT_SECURITY_CONTEXT,e)??"":e})}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275prov=at({token:r,factory:r.\u0275fac})}}return r})(),Ze=(function(r){return r.CommandLine="command-line",r.LineHighlight="line-highlight",r.LineNumbers="line-numbers",r})(Ze||{}),ur=(()=>{class r{constructor(){this.element=d(O),this.markdownService=d(mn),this.viewContainerRef=d(V),this.error=new R,this.load=new R,this.ready=new R,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new M}get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(e){this._disableSanitizer=this.coerceBooleanProperty(e)}get inline(){return this._inline}set inline(e){this._inline=this.coerceBooleanProperty(e)}get clipboard(){return this._clipboard}set clipboard(e){this._clipboard=this.coerceBooleanProperty(e)}get emoji(){return this._emoji}set emoji(e){this._emoji=this.coerceBooleanProperty(e)}get katex(){return this._katex}set katex(e){this._katex=this.coerceBooleanProperty(e)}get mermaid(){return this._mermaid}set mermaid(e){this._mermaid=this.coerceBooleanProperty(e)}get lineHighlight(){return this._lineHighlight}set lineHighlight(e){this._lineHighlight=this.coerceBooleanProperty(e)}get lineNumbers(){return this._lineNumbers}set lineNumbers(e){this._lineNumbers=this.coerceBooleanProperty(e)}get commandLine(){return this._commandLine}set commandLine(e){this._commandLine=this.coerceBooleanProperty(e)}ngOnChanges(){this.loadContent()}loadContent(){if(this.data!=null){this.handleData();return}if(this.src!=null){this.handleSrc();return}}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe(le(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(e,n=!1){return E(this,null,function*(){let t={decodeHtml:n,inline:this.inline,emoji:this.emoji,mermaid:this.mermaid,disableSanitizer:this.disableSanitizer},s={clipboard:this.clipboard,clipboardOptions:this.getClipboardOptions(),katex:this.katex,katexOptions:this.katexOptions,mermaid:this.mermaid,mermaidOptions:this.mermaidOptions},a=yield this.markdownService.parse(e,t);this.element.nativeElement.innerHTML=a,this.handlePlugins(),this.markdownService.render(this.element.nativeElement,s,this.viewContainerRef),this.ready.emit()})}coerceBooleanProperty(e){return e!=null&&`${String(e)}`!="false"}getClipboardOptions(){if(this.clipboardButtonComponent||this.clipboardButtonTemplate)return{buttonComponent:this.clipboardButtonComponent,buttonTemplate:this.clipboardButtonTemplate}}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:e=>{this.render(e).then(()=>{this.load.emit(e)})},error:e=>this.error.emit(e)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,Ze.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,Ze.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(e,n){let t=e.querySelectorAll("pre");for(let s=0;s<t.length;s++){let a=n instanceof Array?n:[n];t.item(s).classList.add(...a)}}setPluginOptions(e,n){let t=e.querySelectorAll("pre");for(let s=0;s<t.length;s++)Object.keys(n).forEach(a=>{let l=n[a];if(l){let o=this.toLispCase(a);t.item(s).setAttribute(o,l.toString())}})}toLispCase(e){let n=e.match(/([A-Z])/g);if(!n)return e;let t=e.toString();for(let s=0,a=n.length;s<a;s++)t=t.replace(new RegExp(n[s]),"-"+n[s].toLowerCase());return t.slice(0,1)==="-"&&(t=t.slice(1)),t}static{this.\u0275fac=function(n){return new(n||r)}}static{this.\u0275cmp=$({type:r,selectors:[["markdown"],["","markdown",""]],inputs:{data:"data",src:"src",disableSanitizer:"disableSanitizer",inline:"inline",clipboard:"clipboard",clipboardButtonComponent:"clipboardButtonComponent",clipboardButtonTemplate:"clipboardButtonTemplate",emoji:"emoji",katex:"katex",katexOptions:"katexOptions",mermaid:"mermaid",mermaidOptions:"mermaidOptions",lineHighlight:"lineHighlight",line:"line",lineOffset:"lineOffset",lineNumbers:"lineNumbers",start:"start",commandLine:"commandLine",filterOutput:"filterOutput",host:"host",prompt:"prompt",output:"output",user:"user"},outputs:{error:"error",load:"load",ready:"ready"},features:[ct],ngContentSelectors:ii,decls:1,vars:0,template:function(n,t){n&1&&(W(),z(0))},encapsulation:2})}}return r})();function hr(r){return[mn,r?.loader??[],r?.clipboardOptions??[],r?.markedOptions??[],r?.mermaidOptions??[],r?.markedExtensions??[],r?.sanitize??[]]}var Mi=["mat-menu-item",""],Si=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Ti=["mat-icon, [matMenuItemIcon]","*"];function Ri(r,i){r&1&&(ot(),Te(0,"svg",2),Ce(1,"polygon",3),Re())}var Ci=["*"];function Ei(r,i){if(r&1){let e=yt();Q(0,"div",0),he("click",function(){q(e);let t=L();return U(t.closed.emit("click"))})("animationstart",function(t){q(e);let s=L();return U(s._onAnimationStart(t.animationName))})("animationend",function(t){q(e);let s=L();return U(s._onAnimationDone(t.animationName))})("animationcancel",function(t){q(e);let s=L();return U(s._onAnimationDone(t.animationName))}),Q(1,"div",1),z(2),ue()()}if(r&2){let e=L();St(e._classList),J("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),wt("id",e.panelId),Y("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Qe=new y("MAT_MENU_PANEL"),Ye=(()=>{class r{_elementRef=d(O);_document=d(ye);_focusMonitor=d(Ie);_parentMenu=d(Qe,{optional:!0});_changeDetectorRef=d(ee);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new M;_focused=new M;_highlighted=!1;_triggersSubmenu=!1;constructor(){d(Ot).load(Ht),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let t=0;t<n.length;t++)n[t].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=$({type:r,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-focus-indicator"],hostVars:8,hostBindings:function(n,t){n&1&&Ee("click",function(a){return t._checkDisabled(a)})("mouseenter",function(){return t._handleMouseEnter()}),n&2&&(Y("role",t.role)("tabindex",t._getTabIndex())("aria-disabled",t.disabled)("disabled",t.disabled||null),J("mat-mdc-menu-item-highlighted",t._highlighted)("mat-mdc-menu-item-submenu-trigger",t._triggersSubmenu))},inputs:{role:"role",disabled:[2,"disabled","disabled",N],disableRipple:[2,"disableRipple","disableRipple",N]},exportAs:["matMenuItem"],attrs:Mi,ngContentSelectors:Ti,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(n,t){n&1&&(W(Si),z(0),Te(1,"span",0),z(2,1),Re(),Ce(3,"div",1),kt(4,Ri,2,0,":svg:svg",2)),n&2&&(Z(3),xt("matRippleDisabled",t.disableRipple||t.disabled)("matRippleTrigger",t._getHostElement()),Z(),_t(t._triggersSubmenu?4:-1))},dependencies:[Bt],encapsulation:2,changeDetection:0})}return r})();var bn=new y("MatMenuContent"),jr=(()=>{class r{_template=d(Me);_appRef=d(bt);_injector=d(X);_viewContainerRef=d(V);_document=d(ye);_changeDetectorRef=d(ee);_portal;_outlet;_attached=new M;constructor(){}attach(e={}){this._portal||(this._portal=new Ae(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Ut(this._document.createElement("div"),this._appRef,this._injector));let n=this._template.elementRef.nativeElement;n.parentNode.insertBefore(this._outlet.outletElement,n),this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(n){return new(n||r)};static \u0275dir=ce({type:r,selectors:[["ng-template","matMenuContent",""]],features:[Pe([{provide:bn,useExisting:r}])]})}return r})(),Pi=new y("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),Ve="_mat-menu-enter",be="_mat-menu-exit",ke=(()=>{class r{_elementRef=d(O);_changeDetectorRef=d(ee);_injector=d(X);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=De();_allItems;_directDescendantItems=new ut;_classList={};_panelAnimationState="void";_animationDone=new M;_isAnimating=lt(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,t=b({},this._classList);n&&n.length&&n.split(" ").forEach(s=>{t[s]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(s=>{t[s]=!0}),this._elementRef.nativeElement.className=""),this._classList=t}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new R;close=this.closed;panelId=d(zt).getId("mat-menu-panel-");constructor(){let e=d(Pi);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Ft(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(oe(this._directDescendantItems),j(e=>A(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let t=e.toArray(),s=Math.max(0,Math.min(t.length-1,n.activeItemIndex||0));t[s]&&!t[s].disabled?n.setActiveItem(s):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(oe(this._directDescendantItems),j(n=>A(...n.map(t=>t._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,t=this._keyManager;switch(n){case 27:Nt(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&t.setFocusOrigin("keyboard"),t.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=pt(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let t=this._keyManager;t.setFocusOrigin(e).setFirstItemActive(),!t.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=T(b({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===be;(n||e===Ve)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===Ve||e===be)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(be),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Ve:be)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(oe(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=$({type:r,selectors:[["mat-menu"]],contentQueries:function(n,t,s){if(n&1&&vt(s,bn,5)(s,Ye,5)(s,Ye,4),n&2){let a;K(a=G())&&(t.lazyContent=a.first),K(a=G())&&(t._allItems=a),K(a=G())&&(t.items=a)}},viewQuery:function(n,t){if(n&1&&Mt(Me,5),n&2){let s;K(s=G())&&(t.templateRef=s.first)}},hostVars:3,hostBindings:function(n,t){n&2&&Y("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",N],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:N(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Pe([{provide:Qe,useExisting:r}])],ngContentSelectors:Ci,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,t){n&1&&(W(),ft(0,Ei,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{border-top-color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}
63
- `],encapsulation:2,changeDetection:0})}return r})(),Ii=new y("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let r=d(X);return()=>Xt(r)}});var F=new WeakMap,Di=(()=>{class r{_canHaveBackdrop;_element=d(O);_viewContainerRef=d(V);_menuItemInstance=d(Ye,{optional:!0,self:!0});_dir=d(Dt,{optional:!0});_focusMonitor=d(Ie);_ngZone=d(we);_injector=d(X);_scrollStrategy=d(Ii);_changeDetectorRef=d(ee);_animationsDisabled=De();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ae.EMPTY;_menuCloseSubscription=ae.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let n=d(Qe,{optional:!0});this._parentMaterialMenu=n instanceof ke?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&F.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let t=F.get(n);F.set(n,this),t&&t!==this&&t._closeMenu();let s=this._createOverlay(n),a=s.getConfig(),l=a.positionStrategy;this._setPosition(n,l),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=!1,s.hasAttached()||(s.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof ke&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(le(n.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,t=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),t instanceof ke&&this._ownsMenu(t)?(this._pendingRemoval=t._animationDone.pipe(nt(1)).subscribe(()=>{n.detach(),F.has(t)||t.lazyContent?.detach()}),t._setIsOpen(!1)):(n.detach(),t?.lazyContent?.detach()),t&&this._ownsMenu(t)&&F.delete(t),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=Yt(this._injector,n),this._overlayRef.keydownEvents().subscribe(t=>{this._menu instanceof ke&&this._menu._handleKeydown(t)})}return this._overlayRef}_getOverlayConfig(e){return new Zt({positionStrategy:Vt(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(t=>{this._ngZone.run(()=>{let s=t.connectionPair.overlayX==="start"?"after":"before",a=t.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(s,a)})})}_setPosition(e,n){let[t,s]=e.xPosition==="before"?["end","start"]:["start","end"],[a,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[o,u]=[a,l],[c,p]=[t,s],h=0;if(this._triggersSubmenu()){if(p=t=e.xPosition==="before"?"start":"end",s=c=t==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let k=this._parentMaterialMenu.items.first;this._parentInnerPadding=k?k._getHostElement().offsetTop:0}h=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(o=a==="top"?"bottom":"top",u=l==="top"?"bottom":"top");n.withPositions([{originX:t,originY:o,overlayX:c,overlayY:a,offsetY:h},{originX:s,originY:o,overlayX:p,overlayY:a,offsetY:h},{originX:t,originY:u,overlayX:c,overlayY:l,offsetY:-h},{originX:s,originY:u,overlayX:p,overlayY:l,offsetY:-h}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),t=this._parentMaterialMenu?this._parentMaterialMenu.closed:H(),s=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(tt(a=>this._menuOpen&&a!==this._menuItemInstance)):H();return A(e,t,s,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Ae(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return F.get(e)===this}_triggerIsAriaDisabled(){return N(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(n){mt()};static \u0275dir=ce({type:r})}return r})(),qr=(()=>{class r extends Di{_cleanupTouchstart;_hoverSubscription=ae.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new R;onMenuOpen=this.menuOpened;menuClosed=new R;onMenuClose=this.menuClosed;constructor(){super(!0);let e=d(dt);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{Lt(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){$t(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||r)};static \u0275dir=ce({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,t){n&1&&Ee("click",function(a){return t._handleClick(a)})("mousedown",function(a){return t._handleMousedown(a)})("keydown",function(a){return t._handleKeydown(a)}),n&2&&Y("aria-haspopup",t.menu?"menu":null)("aria-expanded",t.menuOpen)("aria-controls",t.menuOpen?t.menu==null?null:t.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[gt]})}return r})();var Ur=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=Se({type:r});static \u0275inj=xe({imports:[jt,Qt,At,qt]})}return r})();export{ur as a,hr as b,Ye as c,jr as d,ke as e,qr as f,Ur as g};
@@ -1 +0,0 @@
1
- import{a as B}from"./chunk-3KBT35BP.js";import{b as I,i as q}from"./chunk-PVUOCOI5.js";import"./chunk-6X3BMVOP.js";import"./chunk-NL5QCOXT.js";import"./chunk-36RQFRQN.js";import"./chunk-FHQZULYJ.js";import"./chunk-7SK25B6D.js";import"./chunk-XWOIVPRO.js";import"./chunk-FGMEEOZH.js";import{m as N}from"./chunk-PJZLX3XW.js";import"./chunk-Y5TQMH7M.js";import{$b as z,Ab as P,Ad as L,Bc as u,Ea as x,Fb as w,Ga as r,Gb as s,Ha as l,Hb as c,Hc as D,Ib as h,Pb as y,Pd as F,Rb as O,Tb as g,Xa as d,Zc as T,ac as E,cc as m,dc as R,ee as U,gd as A,ib as W,pd as S,qa as a,se as V,te as Z,va as v,vc as k,wa as C,zb as b,zd as X}from"./chunk-MOEZSWFX.js";var G=["panel"],Q=(i,f)=>[i,f];function j(i,f){if(i&1&&h(0,"div",7),i&2){let t=g();m("transform",t.ghostTransform())}}function H(i,f){if(i&1){let t=y();s(0,"div",8),O("pointerdown",function(e){v(t);let o=g();return C(o.startResize(e))}),s(1,"button",9),O("pointerdown",function(e){v(t);let o=g();return C(o.startResize(e))}),h(2,"mat-icon",10),c()()}}var ct=(()=>{class i{panelEl=D.required("panel");_settings=a(N);_dashboard=a(I);breakpointObserver=a(F);ngZone=a(x);side=r(this._settings.getSplitShellSide());panelRatio=r(this._settings.getSplitShellWidth());originalPanelRatio=null;panelWidth=r(0);panelCollapsed=u(()=>!!this._dashboard.dashboards()[this._dashboard.activeDashboard()]?.collapseSplitShell);fskShellSwipeDisabled=S(this._settings.getSplitShellSwipeDisabledAsO());handset$=this.breakpointObserver.observe(U.HandsetPortrait);handset=S(this.handset$,{initialValue:{matches:!1,breakpoints:{}}});freeboardWidgetStub={uuid:"persistent-freeboard-shell",type:"widget-freeboardsk",config:{}};chartplotterModeInPortrait=u(()=>this.handset().matches&&!this.panelCollapsed());canResize=u(()=>!this._dashboard.isDashboardStatic()&&!this.panelCollapsed());resizing=!1;startX=0;startW=0;boundMove=t=>this.onMove(t);boundUp=()=>this.onUp();static MIN_DELTA_PX=1;ghostActive=r(!1);ghostTransform=r("");ghostWidth=0;recomputeWidth=()=>{let t=this.panelEl()?.nativeElement.parentElement;if(!t)return;let n=t.clientWidth;this.panelWidth.set(Math.round(n*this.panelRatio()))};constructor(){window.addEventListener("resize",this.recomputeWidth,{passive:!0}),queueMicrotask(this.recomputeWidth),l(()=>{this.chartplotterModeInPortrait(),this.panelRatio(),this.recomputeWidth(),setTimeout(()=>window.dispatchEvent(new Event("resize")),0)}),l(()=>{let t=this._dashboard.isDashboardStatic();t||this.originalPanelRatio===null&&(this.originalPanelRatio=this.panelRatio()),t&&this.originalPanelRatio}),l(()=>{if(this._dashboard.layoutEditSaved(),this.originalPanelRatio!==null){let t=this.panelRatio();this._settings.setSplitShellWidth(t),this.originalPanelRatio=null}}),l(()=>{if(this._dashboard.layoutEditCanceled(),this.originalPanelRatio!==null){let t=this.originalPanelRatio;this.panelRatio.set(t),queueMicrotask(()=>this.recomputeWidth()),this.originalPanelRatio=null}})}startResize(t){this.canResize()&&(this.resizing=!0,this.startX=t.clientX,this.startW=this.panelWidth(),this.ghostWidth=this.startW,this.ghostActive.set(!0),this.updateGhostTransform(this.startW),t.target.setPointerCapture(t.pointerId),this.ngZone.runOutsideAngular(()=>{window.addEventListener("pointermove",this.boundMove,{passive:!0}),window.addEventListener("pointerup",this.boundUp,{passive:!0})}))}onMove(t){if(!this.resizing)return;let n=this.side()==="left"?t.clientX-this.startX:this.startX-t.clientX,o=this.panelEl()?.nativeElement.parentElement?.clientWidth??1,p=this.startW+n,_=o*.1,$=o*.9,M=Math.min($,Math.max(_,p));Math.abs(M-this.ghostWidth)<i.MIN_DELTA_PX||(this.ghostWidth=M,this.ngZone.runOutsideAngular(()=>this.updateGhostTransform(M)))}onUp(){if(!this.resizing)return;this.resizing=!1,window.removeEventListener("pointermove",this.boundMove),window.removeEventListener("pointerup",this.boundUp);let t=this.ghostWidth;this.ghostActive.set(!1);let n=this.panelEl();n&&!this.panelCollapsed()&&(n.nativeElement.style.width=t+"px"),this.ngZone.run(()=>{this.panelWidth.set(t);let o=this.panelEl()?.nativeElement.parentElement?.clientWidth??t,p=o?t/o:.3,_=this.panelRatio();Math.abs(p-_)>5e-4&&this.panelRatio.set(p)})}updateGhostTransform(t){this.side()==="left"?this.ghostTransform.set(`translateX(${t}px)`):this.ghostTransform.set(`translateX(-${t}px)`)}ngOnDestroy(){window.removeEventListener("resize",this.recomputeWidth),this.resizing&&(window.removeEventListener("pointermove",this.boundMove),window.removeEventListener("pointerup",this.boundUp))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=W({type:i,selectors:[["split-shell"]],viewQuery:function(n,e){n&1&&z(e.panelEl,G,5),n&2&&E()},decls:8,vars:18,consts:[["panel",""],[1,"split-root",3,"ngClass"],[1,"resize-ghost",3,"transform"],[1,"fsk-shell"],["role","separator","aria-label","Resize Freeboard chartplotter panel","aria-orientation","vertical",1,"drag-handle"],[1,"fsk-iframe",3,"type","id","swipeDisabled","disableWidgetShell"],[1,"dash-container"],[1,"resize-ghost"],["role","separator","aria-label","Resize Freeboard chartplotter panel","aria-orientation","vertical",1,"drag-handle",3,"pointerdown"],["mat-mini-fab","","tabindex","-1","aria-hidden","true",1,"drag-fab",3,"pointerdown"],["fontIcon","drag_indicator"]],template:function(n,e){n&1&&(s(0,"div",1),b(1,j,1,2,"div",2),s(2,"div",3,0),b(4,H,3,0,"div",4),h(5,"widget-freeboardsk",5),c(),s(6,"div",6),h(7,"dashboard"),c()()),n&2&&(m("--panel-ratio",e.panelRatio()),w("ngClass",k(15,Q,e.side()==="left"?"side-left":"side-right",e.chartplotterModeInPortrait()?"portrait-column":"")),d(),P(e.ghostActive()?1:-1),d(),m("width",e.chartplotterModeInPortrait()?null:e.panelWidth(),"px"),R("collapsed",e.panelCollapsed())("drag-disabled",!e.canResize()),d(2),P(e.canResize()?4:-1),d(),w("type",e.freeboardWidgetStub.type)("id",e.freeboardWidgetStub.uuid)("swipeDisabled",e.fskShellSwipeDisabled())("disableWidgetShell",!0))},dependencies:[A,T,q,B,Z,V,L,X],styles:[".split-root[_ngcontent-%COMP%]{position:relative;width:100%;height:100%;display:flex;overflow:hidden}.split-root.side-left[_ngcontent-%COMP%]{flex-direction:row}.split-root.side-right[_ngcontent-%COMP%]{flex-direction:row-reverse}.split-root.portrait-column[_ngcontent-%COMP%]{flex-direction:column}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%], .split-root.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{width:100%!important;min-height:0}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{flex:0 0 calc(var(--panel-ratio, .3) * 100%)}.split-root.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow:hidden}.split-root.side-left.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{order:2}.split-root.side-left.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{order:1}.split-root.side-right.portrait-column[_ngcontent-%COMP%] .fsk-shell[_ngcontent-%COMP%]{order:2}.split-root.side-right.portrait-column[_ngcontent-%COMP%] .dash-container[_ngcontent-%COMP%]{order:1}.split-root.portrait-column[_ngcontent-%COMP%] .fsk-shell.collapsed[_ngcontent-%COMP%]{flex:0 0 0!important}.split-root.portrait-column[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%], .split-root.portrait-column[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{display:none}.fsk-shell[_ngcontent-%COMP%]{position:relative;height:100%;display:flex;flex-direction:column;background:var(--mat-sys-surface-container, #111);transition:width .2s ease}.fsk-shell.collapsed[_ngcontent-%COMP%]{width:1px!important;visibility:hidden;opacity:0;pointer-events:none}.fsk-iframe[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0}.dash-container[_ngcontent-%COMP%]{flex:1 1 auto;min-width:0;height:100%}.drag-handle[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:3px;cursor:col-resize;background:var(--mat-sys-inverse-primary);z-index:5}.drag-handle[_ngcontent-%COMP%] .drag-fab[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:28px;height:28px;min-width:28px;cursor:col-resize;pointer-events:auto}.drag-handle[_ngcontent-%COMP%] .drag-fab[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;line-height:20px}.side-left[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{right:-2px}.side-right[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{left:-2px}.drag-handle[_ngcontent-%COMP%]:hover{background:var(--mat-sys-error-container)}.side-left[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{left:.25rem}.side-right[_ngcontent-%COMP%] .collapse-toggle[_ngcontent-%COMP%]{right:.25rem}.fsk-shell.drag-disabled[_ngcontent-%COMP%] .drag-handle[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.4}.resize-ghost[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;width:2px;background:var(--mat-sys-error-container);opacity:.9;pointer-events:none;z-index:30;will-change:transform;transition:none}.side-left[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{left:0}.side-right[_ngcontent-%COMP%] .resize-ghost[_ngcontent-%COMP%]{right:0}"]})}return i})();export{ct as SplitShellComponent};