@signalk/freeboard-sk 3.4.1 → 3.5.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/README.md +3 -1
  2. package/package.json +2 -2
  3. package/public/assets/features/radar-overlay-2.jpg +0 -0
  4. package/public/assets/features/radar-targets-1.jpg +0 -0
  5. package/public/assets/features/route-styles-1.jpg +0 -0
  6. package/public/assets/features-corpus.json +1 -1
  7. package/public/assets/help/img/ais_shiptypes.png +0 -0
  8. package/public/assets/help/index.html +81 -27
  9. package/public/assets/img/routes/route-end.svg +6 -0
  10. package/public/assets/img/routes/route-start.svg +6 -0
  11. package/public/assets/img/routes/route-waypoint.svg +9 -0
  12. package/public/assets/img/vessels/ais_fishing.svg +33 -0
  13. package/public/chunk-2EKPI63M.js +1 -0
  14. package/public/{chunk-VBSJZWSI.js → chunk-2H73O7R4.js} +1 -1
  15. package/public/{chunk-DN6IX7CO.js → chunk-2JAD5V57.js} +1 -1
  16. package/public/{chunk-GJZ7P5CR.js → chunk-4LLIVPOH.js} +1 -1
  17. package/public/chunk-67S772YL.js +1 -0
  18. package/public/{chunk-4BCNBZTG.js → chunk-6BSDRWQ3.js} +1 -1
  19. package/public/{chunk-PWZFOOT4.js → chunk-6EZKIXYQ.js} +1 -1
  20. package/public/{chunk-MWETYHR7.js → chunk-7ISDSY26.js} +1 -1
  21. package/public/chunk-7VLEFGRK.js +1 -0
  22. package/public/{chunk-ZQSUYMH2.js → chunk-BNDXOOFA.js} +1 -1
  23. package/public/{chunk-PWNYMCP2.js → chunk-CJARACLQ.js} +1 -1
  24. package/public/{chunk-RENDTMDT.js → chunk-G5EXGCP4.js} +1 -1
  25. package/public/chunk-GHLF3D5Z.js +2 -0
  26. package/public/chunk-GVY3IGQP.js +1 -0
  27. package/public/{chunk-AZQNOMPD.js → chunk-HHVNH6WV.js} +1 -1
  28. package/public/{chunk-YH3OTY6F.js → chunk-IQVXAJGE.js} +1 -1
  29. package/public/{chunk-WOU2FNU3.js → chunk-JPTPBTTP.js} +1 -1
  30. package/public/{chunk-VT4GQY5X.js → chunk-LH5NA6FP.js} +1 -1
  31. package/public/{chunk-DSUCHYD7.js → chunk-LRYGINIX.js} +1 -1
  32. package/public/{chunk-BC2VITG4.js → chunk-MFWKSXF7.js} +1 -1
  33. package/public/chunk-MR5B4XRH.js +1 -0
  34. package/public/{chunk-MZ3YWFFB.js → chunk-NXLWB5IV.js} +1 -1
  35. package/public/chunk-QD2NEHGC.js +1 -0
  36. package/public/{chunk-YBVURHD5.js → chunk-QJ2QMZLA.js} +1 -1
  37. package/public/{chunk-SIFYI3HU.js → chunk-SJSHCZKD.js} +1 -1
  38. package/public/{chunk-IP2UNZAT.js → chunk-TCWGFZUF.js} +1 -1
  39. package/public/{chunk-DC5AFSD6.js → chunk-THOUUI2P.js} +1 -1
  40. package/public/chunk-TLNMSJUF.js +1 -0
  41. package/public/{chunk-VXYZIAGN.js → chunk-TO4IOJWS.js} +1 -1
  42. package/public/{chunk-2GVS7ZQR.js → chunk-UOK6WTQH.js} +1 -1
  43. package/public/{chunk-6JTVABJT.js → chunk-URCOHSFB.js} +127 -127
  44. package/public/chunk-V3SPESMB.js +7 -0
  45. package/public/{chunk-3MRBMOCG.js → chunk-VH2NXKOR.js} +1 -1
  46. package/public/chunk-W5SXKI6G.js +1 -0
  47. package/public/chunk-W7TSMHU3.js +1 -0
  48. package/public/chunk-XDKT43CW.js +4 -0
  49. package/public/{chunk-2QKJQDG4.js → chunk-XXJX5CGO.js} +14 -14
  50. package/public/index.html +1 -1
  51. package/public/main-ZCGBRKVF.js +359 -0
  52. package/public/worker-DI2XYCRR.js +3 -0
  53. package/public/chunk-2NWIJAJ6.js +0 -1
  54. package/public/chunk-7VECY4HP.js +0 -1
  55. package/public/chunk-CRWXCOWS.js +0 -1
  56. package/public/chunk-K4EGDHPT.js +0 -2
  57. package/public/chunk-LEEF5WZZ.js +0 -1
  58. package/public/chunk-QYBMIGVH.js +0 -1
  59. package/public/chunk-R6ABX6RX.js +0 -4
  60. package/public/chunk-RH4MSKTX.js +0 -1
  61. package/public/chunk-RYULE37H.js +0 -1
  62. package/public/chunk-WARJYBQ7.js +0 -7
  63. package/public/chunk-Z2IWHI3C.js +0 -1
  64. package/public/main-WXGVUWZE.js +0 -358
  65. package/public/worker-CDFJSLG6.js +0 -3
@@ -1,4 +1,4 @@
1
- import{a as it}from"./chunk-ZQSUYMH2.js";import{b as ct,i as ot,j as rt,n as dt,o as st}from"./chunk-DC5AFSD6.js";import{$ as We,$a as R,C as de,Fa as N,Ga as q,Ia as J,Ja as U,Ka as ee,La as H,M as se,N as _e,Na as G,O as Qe,Oa as X,P as Ze,S as fe,Ta as Je,Va as et,X as Ke,Ya as A,ab as tt,ba as $e,cb as nt,n as Ue,pa as Ye,q as He,r as Ge,rb as at,v as Xe,xa as Y}from"./chunk-2QKJQDG4.js";import{$a as W,Db as z,Eb as Le,Hb as b,Jb as f,Jc as re,Ka as be,Kb as j,Lb as v,Mc as B,Nb as V,Nc as qe,O as we,Oa as r,Ob as I,Pb as E,S as Te,Sa as ue,T as Ie,Ta as Oe,Tb as y,U as Z,V as O,Vb as S,X as d,Xb as je,Yb as s,Zb as oe,_a as p,_b as h,ab as g,ba as M,ca as D,d as F,da as Ee,db as ze,ea as Se,eb as Pe,fa as K,ga as Be,ia as he,ic as Ve,ja as te,l as Ae,la as Re,mb as $,nb as w,oa as Fe,ob as T,qb as ae,ra as ne,rb as ie,sb as ce,tb as x,ub as o,vb as c,wb as _,xb as pe,yb as ke,zc as Ne}from"./chunk-R6ABX6RX.js";import{a as L}from"./chunk-BZGM3F3K.js";var Dt=["*"],At=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],wt=[`mat-card-title, mat-card-subtitle,
1
+ import{a as it}from"./chunk-BNDXOOFA.js";import{b as ct,i as ot,j as rt,n as dt,o as st}from"./chunk-THOUUI2P.js";import{$ as We,$a as R,C as de,Fa as N,Ga as q,Ia as J,Ja as U,Ka as ee,La as H,M as se,N as _e,Na as G,O as Qe,Oa as X,P as Ze,S as fe,Ta as Je,Va as et,X as Ke,Ya as A,ab as tt,ba as $e,cb as nt,n as Ue,pa as Ye,q as He,r as Ge,ub as at,v as Xe,xa as Y}from"./chunk-XXJX5CGO.js";import{$b as oe,Ab as ke,Bc as Ne,Fb as z,Gb as Le,Jb as b,Lb as f,Lc as re,Ma as be,Mb as j,Nb as v,Oc as B,Pb as V,Pc as qe,Q as we,Qa as r,Qb as I,Rb as E,U as Te,Ua as ue,V as Ie,Va as Oe,Vb as y,W as Z,X as O,Xb as S,Z as d,Zb as je,_b as s,ab as p,ac as h,bb as W,cb as g,d as F,da as M,ea as D,fa as Ee,fb as ze,ga as Se,gb as Pe,ha as K,ia as Be,ka as he,kc as Ve,l as Ae,la as te,na as Re,ob as $,pb as w,qa as Fe,qb as T,sb as ae,ta as ne,tb as ie,ub as ce,vb as x,wb as o,xb as c,yb as _,zb as pe}from"./chunk-XDKT43CW.js";import{a as L}from"./chunk-BZGM3F3K.js";var Dt=["*"],At=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],wt=[`mat-card-title, mat-card-subtitle,
2
2
  [mat-card-title], [mat-card-subtitle],
3
3
  [matCardTitle], [matCardSubtitle]`,`[mat-card-image], [matCardImage],
4
4
  [mat-card-sm-image], [matCardImageSmall],
@@ -0,0 +1 @@
1
+ import{A as M,Aa as wr,B as Kt,Ba as Hr,Ca as zr,Da as K,E as nr,Ea as Be,Fa as io,Ga as w,H as S,Ha as so,Ia as mo,Ja as fr,La as Q,Ma as H,O as Lr,P as Yn,Q as L,R as Xn,S as Tr,Sa as Vr,T as Qn,Ua as ke,Wa as Wr,Z as or,a as o,b as X,c as Wn,d as Dt,da as vn,e as er,f as Lt,fa as Me,h as me,ha as _e,i as Zn,j,k as Jn,la as Ue,m as be,ma as qe,na as ro,o as Fe,oa as eo,p as tr,pa as to,q as D,qa as no,ra as Kr,ta as Ge,va as Ne,vb as fo,w as Oe,wb as cr,xa as oo,xb as G,y as Te,z as fe,zb as ao}from"./chunk-V3SPESMB.js";import{a as E,b as k,e as se,h as Ar}from"./chunk-BZGM3F3K.js";function je(r){return o.HasPropertyKey(r,"~refine")&&o.IsArray(r["~refine"])&&o.Every(r["~refine"],0,e=>o.IsObject(e)&&o.HasPropertyKey(e,"check")&&o.HasPropertyKey(e,"error")&&o.IsFunction(e.check)&&o.IsFunction(e.error))}function W(r){return o.IsObject(r)&&!o.IsArray(r)}function Mr(r){return o.IsBoolean(r)}function c(r){return W(r)||Mr(r)}function De(r){return o.HasPropertyKey(r,"additionalItems")&&c(r.additionalItems)}function ir(r){return o.HasPropertyKey(r,"additionalProperties")&&c(r.additionalProperties)}function Le(r){return o.HasPropertyKey(r,"allOf")&&o.IsArray(r.allOf)&&r.allOf.every(e=>c(e))}function uo(r){return o.HasPropertyKey(r,"$anchor")&&o.IsString(r.$anchor)}function Ke(r){return o.HasPropertyKey(r,"anyOf")&&o.IsArray(r.anyOf)&&r.anyOf.every(e=>c(e))}function wt(r){return o.HasPropertyKey(r,"const")}function $r(r){return o.HasPropertyKey(r,"contains")&&c(r.contains)}function Z(r){return o.HasPropertyKey(r,"default")}function Ht(r){return o.HasPropertyKey(r,"dependencies")&&o.IsObject(r.dependencies)&&Object.values(r.dependencies).every(e=>c(e)||o.IsArray(e)&&e.every(t=>o.IsString(t)))}function zt(r){return o.HasPropertyKey(r,"dependentRequired")&&o.IsObject(r.dependentRequired)&&Object.values(r.dependentRequired).every(e=>o.IsArray(e)&&e.every(t=>o.IsString(t)))}function we(r){return o.HasPropertyKey(r,"dependentSchemas")&&o.IsObject(r.dependentSchemas)&&Object.values(r.dependentSchemas).every(e=>c(e))}function Rr(r){return o.HasPropertyKey(r,"$dynamicAnchor")&&o.IsString(r.$dynamicAnchor)}function He(r){return o.HasPropertyKey(r,"$dynamicRef")&&o.IsString(r.$dynamicRef)}function ze(r){return o.HasPropertyKey(r,"else")&&c(r.else)}function Vt(r){return o.HasPropertyKey(r,"enum")&&o.IsArray(r.enum)}function Wt(r){return o.HasPropertyKey(r,"exclusiveMaximum")&&(o.IsNumber(r.exclusiveMaximum)||o.IsBigInt(r.exclusiveMaximum))}function Er(r){return o.HasPropertyKey(r,"exclusiveMinimum")&&(o.IsNumber(r.exclusiveMinimum)||o.IsBigInt(r.exclusiveMinimum))}function ae(r){return o.HasPropertyKey(r,"format")&&o.IsString(r.format)}function z(r){return o.HasPropertyKey(r,"$id")&&o.IsString(r.$id)}function Ve(r){return o.HasPropertyKey(r,"if")&&c(r.if)}function _r(r){return o.HasPropertyKey(r,"items")&&(c(r.items)||o.IsArray(r.items)&&r.items.every(e=>c(e)))}function We(r){return _r(r)&&o.IsArray(r.items)}function Zt(r){return o.HasPropertyKey(r,"maximum")&&(o.IsNumber(r.maximum)||o.IsBigInt(r.maximum))}function Jt(r){return o.HasPropertyKey(r,"maxContains")&&o.IsNumber(r.maxContains)}function ue(r){return o.HasPropertyKey(r,"maxItems")&&o.IsNumber(r.maxItems)}function Yt(r){return o.HasPropertyKey(r,"maxLength")&&o.IsNumber(r.maxLength)}function Xt(r){return o.HasPropertyKey(r,"maxProperties")&&o.IsNumber(r.maxProperties)}function hr(r){return o.HasPropertyKey(r,"minimum")&&(o.IsNumber(r.minimum)||o.IsBigInt(r.minimum))}function Ur(r){return o.HasPropertyKey(r,"minContains")&&o.IsNumber(r.minContains)}function qr(r){return o.HasPropertyKey(r,"minItems")&&o.IsNumber(r.minItems)}function de(r){return o.HasPropertyKey(r,"minLength")&&o.IsNumber(r.minLength)}function pe(r){return o.HasPropertyKey(r,"minProperties")&&o.IsNumber(r.minProperties)}function Qt(r){return o.HasPropertyKey(r,"multipleOf")&&(o.IsNumber(r.multipleOf)||o.IsBigInt(r.multipleOf))}function Ze(r){return o.HasPropertyKey(r,"not")&&c(r.not)}function Je(r){return o.HasPropertyKey(r,"oneOf")&&o.IsArray(r.oneOf)&&r.oneOf.every(e=>c(e))}function ce(r){return o.HasPropertyKey(r,"pattern")&&(o.IsString(r.pattern)||r.pattern instanceof RegExp)}function Zr(r){return o.HasPropertyKey(r,"patternProperties")&&o.IsObject(r.patternProperties)&&Object.values(r.patternProperties).every(e=>c(e))}function Gr(r){return o.HasPropertyKey(r,"prefixItems")&&o.IsArray(r.prefixItems)&&r.prefixItems.every(e=>c(e))}function Jr(r){return o.HasPropertyKey(r,"properties")&&o.IsObject(r.properties)&&Object.values(r.properties).every(e=>c(e))}function Ye(r){return o.HasPropertyKey(r,"propertyNames")&&(o.IsObject(r.propertyNames)||c(r.propertyNames))}function tf(r){return o.HasPropertyKey(r,"$recursiveAnchor")&&o.IsBoolean(r.$recursiveAnchor)}function Ie(r){return tf(r)&&o.IsEqual(r.$recursiveAnchor,!0)}function Xe(r){return o.HasPropertyKey(r,"$recursiveRef")&&o.IsString(r.$recursiveRef)}function Qe(r){return o.HasPropertyKey(r,"$ref")&&o.IsString(r.$ref)}function Nr(r){return o.HasPropertyKey(r,"required")&&o.IsArray(r.required)&&r.required.every(e=>o.IsString(e))}function ve(r){return o.HasPropertyKey(r,"then")&&c(r.then)}function vt(r){return o.HasPropertyKey(r,"type")&&(o.IsString(r.type)||o.IsArray(r.type)&&r.type.every(e=>o.IsString(e)))}function Pr(r){return o.HasPropertyKey(r,"uniqueItems")&&o.IsBoolean(r.uniqueItems)}function le(r){return o.HasPropertyKey(r,"unevaluatedItems")&&c(r.unevaluatedItems)}function ye(r){return o.HasPropertyKey(r,"unevaluatedProperties")&&c(r.unevaluatedProperties)}var V=class{constructor(){let e=new Set,t=new Set;this.stack=[{indices:e,keys:t}]}Push(){let e=new Set,t=new Set;return this.stack.push({indices:e,keys:t}),!0}Pop(){return this.stack.pop(),!0}AddIndex(e){return this.GetIndices().add(e),!0}AddKey(e){return this.GetKeys().add(e),!0}GetIndices(){return this.stack[this.stack.length-1].indices}GetKeys(){return this.stack[this.stack.length-1].keys}Merge(e){for(let t of e)t.GetIndices().forEach(n=>this.GetIndices().add(n)),t.GetKeys().forEach(n=>this.GetKeys().add(n));return!0}},N=class extends V{constructor(){super(),this.errors=[]}AtCapacity(){return this.errors.length>=er.Get().maxErrors}AddError(e,t,n,i){return this.AddErrorObject({keyword:e,schemaPath:t,instancePath:n,params:i})}AddErrors(e){return e.forEach(t=>this.AddErrorObject(t)),!1}GetErrors(){return this.errors}AddErrorObject(e){return this.AtCapacity()||this.errors.push(e),!1}};function po(r,e,t,n){return o.Every(t["~refine"],0,(i,s)=>i.check(n))}function co(r,e,t,n,i,s){return o.EveryAll(i["~refine"],0,(m,f)=>m.check(s)||e.AddError("~refine",t,n,{index:f,message:m.error(s)}))}var xe="urn:typebox:root";function gr(r,e){return URL.canParse(r,e)?new URL(r,e):o.IsEqual(e,xe)?new URL(`${e}:${r}`):new URL(`${e.slice(0,e.lastIndexOf(":"))}:${r}`)}function Xr(r,e){let t=W(e)&&z(e)?gr(e.$id,xe).href:xe;return{context:r,schema:e,lexicalSchema:e,lexicalBase:t,resourceBase:t,referenceBase:t,ids:[],useResourceBaseForReference:!0,recursiveAnchor:void 0,dynamicAnchors:[],resourceEntries:new Map,pendingResource:!0,enteredResource:!1}}function rn(r,e,t=!0){if(Mr(e))return r;if(Array.isArray(e))return e.reduce((i,s)=>rn(i,s,!1),r);if(!W(e)||!t&&z(e))return r;let n=!t&&Rr(e)?[...r,e]:r;return Object.keys(e).reduce((i,s)=>rn(i,e[s],!1),n)}function Ee(r,e){return r.resourceEntries.get(e)}function Io(r,e){return r.enteredResource||Ee(r,e)!==void 0}function nf(r){return!/^[A-Za-z][A-Za-z0-9+.-]*:/.test(r.$id)}function of(r,e){return z(e)?[...r.ids,e]:r.ids}function sf(r,e){return r.recursiveAnchor??(Ie(e)?e:void 0)}function mf(r,e){let t=z(e)?rn(r.dynamicAnchors,e):r.dynamicAnchors;return Rr(e)?[...t,e]:t}function ff(r,e){return z(e)?!1:r.pendingResource}function lo(r,e){let t=Ee(r,e);return t?t.base:z(e)?gr(e.$id,r.lexicalBase).href:r.lexicalBase}function yo(r,e){let t=Ee(r,e);return t?t.base:z(e)&&r.pendingResource?gr(e.$id,r.resourceBase).href:r.resourceBase}function xo(r,e){return z(e)?!nf(e):r.useResourceBaseForReference}function af(r,e){let t=Io(r,e),n=xo(r,e);return t||n?yo(r,e):lo(r,e)}function uf(r,e){let t=Ee(r,e);return t?t.root:z(e)?e:r.lexicalSchema}function df(r,e){return W(e)&&(z(e)||Rr(e)||o.IsUndefined(r.recursiveAnchor)&&Ie(e)||!o.IsUndefined(Ee(r,e)))}function Qr(r,e){return df(r,e)?k(E({},r),{ids:of(r,e),dynamicAnchors:mf(r,e),recursiveAnchor:sf(r,e),pendingResource:ff(r,e),lexicalBase:lo(r,e),resourceBase:yo(r,e),useResourceBaseForReference:xo(r,e),referenceBase:af(r,e),lexicalSchema:uf(r,e),enteredResource:Io(r,e)}):r}function Eo(r){return _r(r)&&o.IsArray(r.items)}function ho(r,e,t,n){return Eo(t)?o.Every(n,0,(s,m)=>o.IsLessThan(m,t.items.length)||v(r,e,t.additionalItems,s)&&e.AddIndex(m)):!0}function go(r,e,t,n,i,s){return Eo(i)?o.Every(s,0,(f,a)=>{let u=`${t}/additionalItems`,p=`${n}/${a}`;return o.IsLessThan(a,i.items.length)||rr(r,e,u,p,i.additionalItems,f)&&e.AddIndex(a)}):!0}function J(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}function br(r){return new RegExp(r,"u")}function pf(r){return`^${r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`}function So(r){let e=[];return Zr(r)&&e.push(...o.Keys(r.patternProperties)),Jr(r)&&e.push(...o.Keys(r.properties).map(pf)),o.IsEqual(e.length,0)?"(?!)":`(${e.join("|")})`}function Co(r,e,t,n){let i=br(So(t));return o.Every(o.Keys(n),0,(m,f)=>i.test(m)||v(r,e,t.additionalProperties,n[m])&&e.AddKey(m))}function Ao(r,e,t,n,i,s){let m=br(So(i)),f=[];return o.EveryAll(o.Keys(s),0,(u,p)=>{let y=`${t}/additionalProperties`,x=`${n}/${J(u)}`,O=m.test(u)||rr(r,e,y,x,i.additionalProperties,s[u])&&e.AddKey(u);return O||f.push(u),O})||e.AddError("additionalProperties",t,n,{additionalProperties:f})}function $o(r,e,t,n){let i=t.allOf.reduce((s,m)=>{let f=new V;return h(r,f,m,n)?[...s,f]:s},[]);return o.IsEqual(i.length,t.allOf.length)&&e.Merge(i)}function Ro(r,e,t,n,i,s){let m=[],f=i.allOf.reduce((u,p,y)=>{let x=`${t}/allOf/${y}`,O=new N,xr=C(r,O,x,n,p,s);return xr||m.push(O),xr?[...u,O]:u},[]),a=o.IsEqual(f.length,i.allOf.length)&&e.Merge(f);return a||m.forEach(u=>e.AddErrors(u.GetErrors())),a}function Po(r,e,t,n){let i=t.anyOf.reduce((s,m)=>{let f=new V;return h(r,f,m,n)?[...s,f]:s},[]);return o.IsGreaterThan(i.length,0)&&e.Merge(i)}function bo(r,e,t,n,i,s){let m=[],f=i.anyOf.reduce((u,p,y)=>{let x=new N,O=`${t}/anyOf/${y}`,xr=C(r,x,O,n,p,s);return xr||m.push(x),xr?[...u,x]:u},[]),a=o.IsGreaterThan(f.length,0)&&e.Merge(f);return a||m.forEach(u=>e.AddErrors(u.GetErrors())),a||e.AddError("anyOf",t,n,{})}function nn(r,e,t,n){return t}function Fo(r,e,t,n,i,s){return nn(r,e,i,s)||e.AddError("boolean",t,n,{})}function on(r,e,t,n){return o.IsValueLike(t.const)?o.IsEqual(n,t.const):o.IsDeepEqual(n,t.const)}function Oo(r,e,t,n,i,s){return on(r,e,i,s)||e.AddError("const",t,n,{allowedValue:i.const})}function cf(r){return!(Ur(r)&&o.IsEqual(r.minContains,0))}function sn(r,e,t,n){return cf(t)?!o.IsEqual(n.length,0)&&o.SomeAll(n,(i,s)=>h(r,e,t.contains,i)&&e.AddIndex(s)):!0}function To(r,e,t,n,i,s){return sn(r,e,i,s)||e.AddError("contains",t,n,{minContains:1})}function Mo(r,e,t,n){let i=o.IsEqual(o.Keys(n).length,0),s=o.Every(o.Entries(t.dependencies),0,([m,f])=>!o.HasPropertyKey(n,m)||(o.IsArray(f)?f.every(a=>o.HasPropertyKey(n,a)):h(r,e,f,n)));return i||s}function _o(r,e,t,n,i,s){let m=o.IsEqual(o.Keys(s).length,0),f=o.EveryAll(o.Entries(i.dependencies),0,([a,u])=>{let p=`${t}/dependencies/${J(a)}`;return!o.HasPropertyKey(s,a)||(o.IsArray(u)?u.every(y=>o.HasPropertyKey(s,y)||e.AddError("dependencies",t,n,{property:a,dependencies:u})):C(r,e,p,n,u,s))});return m||f}function Uo(r,e,t,n){let i=o.IsEqual(o.Keys(n).length,0),s=o.Every(o.Entries(t.dependentRequired),0,([m,f])=>!o.HasPropertyKey(n,m)||f.every(a=>o.HasPropertyKey(n,a)));return i||s}function qo(r,e,t,n,i,s){let m=o.IsEqual(o.Keys(s).length,0),f=o.EveryAll(o.Entries(i.dependentRequired),0,([a,u])=>!o.HasPropertyKey(s,a)||o.EveryAll(u,0,p=>o.HasPropertyKey(s,p)||e.AddError("dependentRequired",t,n,{property:a,dependencies:u})));return m||f}function Go(r,e,t,n){let i=o.IsEqual(o.Keys(n).length,0),s=o.Every(o.Entries(t.dependentSchemas),0,([m,f])=>!o.HasPropertyKey(n,m)||h(r,e,f,n));return i||s}function No(r,e,t,n,i,s){let m=o.IsEqual(o.Keys(s).length,0),f=o.EveryAll(o.Entries(i.dependentSchemas),0,([a,u])=>{let p=`${t}/dependentSchemas/${J(a)}`;return!o.HasPropertyKey(s,a)||C(r,e,p,n,u,s)});return m||f}var sr={};se(sr,{DynamicRef:()=>Hf,RecursiveRef:()=>Lf,Ref:()=>jf});var lr={};se(lr,{Delete:()=>xf,Get:()=>lf,Has:()=>If,Indices:()=>ge,Set:()=>yf});function ko(r){throw Error(r)}function Bo(){ko("Pointer contains unsafe property key")}function mn(){ko("Cannot set value")}function ge(r){let e=r.split("/").map(t=>t.replace(/~1/g,"/").replace(/~0/g,"~"));return e[0]===""?e.slice(1):e}function If(r,e){let t=r;for(let n of ge(e)){if(!o.IsObject(t)||!o.HasPropertyKey(t,n))return!1;t=t[n]}return!0}function lf(r,e){let t=r;for(let n of ge(e)){if(!o.IsObject(t)||o.IsUnsafePropertyKey(n))return;t=t[n]}return t}function jo(r,e,t){let n=r;for(let i of e)o.IsUnsafePropertyKey(i)&&Bo(),n=o.IsObject(n)?n[i]:void 0;return o.IsUnsafePropertyKey(t)&&Bo(),o.IsObject(n)||mn(),n}function yf(r,e,t){let n=ge(e),i=n.pop();return o.IsUndefined(i)&&mn(),jo(r,n,i)[i]=t,r}function xf(r,e){let t=ge(e),n=t.pop();o.IsUndefined(n)&&mn();let i=jo(r,t,n);return o.IsArray(i)&&/^(0|[1-9]\d*)$/.test(n)?i.splice(Number(n),1):delete i[n],r}function un(r,e){return W(r)&&z(r)?gr(r.$id,e.href):e}function dn(r){return gr(r,xe)}function fn(r){return r.href.split("#")[0]}function Ef(r,e,t){return an(r,dn(e),t)}function hf(r,e){return e.$ref.startsWith("#")||r.enteredResource?r.lexicalSchema:r.schema}function gf(r){return r.startsWith("#/")}function Do(r,e){if(o.IsObject(r)&&Rr(r)&&o.IsEqual(r.$dynamicAnchor,e))return r;if(o.IsObject(r))for(let t of o.Keys(r)){let n=Do(r[t],e);if(n)return n}}function an(r,e,t){if(o.IsEqual(r,t))return e.href;let n=un(r,e);if(o.IsArray(r))for(let i of r){let s=an(i,n,t);if(!o.IsUndefined(s))return s}else if(o.IsObject(r))for(let i of o.Keys(r)){let s=an(r[i],n,t);if(!o.IsUndefined(s))return s}}function Lo(r,e){if(e.href.endsWith("#"))return r;if(!e.hash.startsWith("#"))return;let t=decodeURIComponent(e.hash.slice(1));if(t.startsWith("/"))return lr.Get(r,t)}function Sf(r,e,t){if(!z(r))return;if(o.IsEqual(r.$id,t.hash))return r;let n=new URL(t.href,e.href);if(o.IsEqual(e.pathname,n.pathname))return t.hash.startsWith("#")?Lo(r,t):r}function Cf(r,e,t){if(!uo(r))return;let n=new URL(`#${r.$anchor}`,e.href),i=new URL(t.href,e.href);return o.IsEqual(n.href,i.href)?r:void 0}function Af(r,e,t){if(!Rr(r))return;let n=new URL(`#${r.$dynamicAnchor}`,e.href),i=new URL(t.href,e.href);return o.IsEqual(n.href,i.href)?r:void 0}function $f(r,e,t){if(W(r))return Sf(r,e,t)??Cf(r,e,t)??Af(r,e,t)??Lo(r,t)}function Rf(r,e,t){if(o.IsArray(r))return r.reduce((n,i)=>{let s=rt(i,e,t);return o.IsUndefined(s)?n:s},void 0)}function Pf(r,e,t){if(o.IsObject(r))return o.Keys(r).reduce((n,i)=>{if(o.IsEqual(i,"const")||o.IsEqual(i,"enum"))return n;let s=rt(r[i],e,t);return o.IsUndefined(s)?n:s},void 0)}function rt(r,e,t){let n=un(r,e);return $f(r,n,t)??Rf(r,n,t)??Pf(r,n,t)}function bf(r,e,t,n){let i=et(r,e,t,n);return W(i)&&z(i)?i:void 0}function Ff(r,e,t){if(!e.$ref.startsWith("#")||!W(r.schema)||o.HasPropertyKey(r.schema,"$schema"))return;let n=Ef(r.lexicalSchema,r.referenceBase,t);if(!(o.IsUndefined(n)||o.IsEqual(n,r.referenceBase)))return{target:t,base:n,root:r.lexicalSchema}}function Of(r,e,t){let n=r.context[e];if(W(n))return{target:t,base:e,root:n}}function Tf(r,e,t,n,i){let s=i?Of(r,n,t):void 0;return o.IsUndefined(s)?Ff(r,e,t):s}function Mf(r,e,t){if(z(t))return;let n=bf(r.context,r.schema,r.referenceBase,e);if(!(!n||r.ids.includes(n)))return{resource:n}}function _f(r,e){return o.HasPropertyKey(r,e)?r[e]:void 0}function Uf(r,e,t){return rt(r,e,t)}function qf(r,e,t){let n=fn(t);if(!o.HasPropertyKey(r,n)||o.IsEqual(n,fn(e)))return;let i=r[n],s=un(i,new URL(n));return o.IsEqual(t.hash,"")?i:rt(i,s,t)}function et(r,e,t,n){let i=dn(t),s=gr(n,i.href);return _f(r,n)??Uf(e,i,s)??qf(r,i,s)}function Gf(r,e){if(!e)return r;let t=new Map(r.resourceEntries);return t.set(e.target,{base:e.base,root:e.root}),k(E({},r),{resourceEntries:t})}function Nf(r,e){return e?Qr(r,e.resource):r}function Ko(r,e,t,n){let i=Gf(k(E({},r),{pendingResource:e}),t);return Nf(i,n)}function Bf(r,e,t){let n=fn(gr(e.$ref,r.referenceBase)),i=!o.IsEqual(n,r.resourceBase),s=Tf(r,e,t,n,i),m=i?Mf(r,n,t):void 0;return{schema:t,stack:Ko(r,!0,s,m)}}function kf(r,e){return{schema:e,stack:Ko(r,!o.IsUndefined(e))}}function jf(r,e){let t=et(r.context,hf(r,e),r.referenceBase,e.$ref);return W(t)?Bf(r,e,t):kf(r,t)}function Df(r){return W(r.lexicalSchema)&&Ie(r.lexicalSchema)}function Lf(r,e){let t=Df(r)?r.recursiveAnchor:r.lexicalSchema;return et(r.context,t,r.lexicalBase,e.$recursiveRef)}function wo(r,e){return gr(e.$dynamicRef,dn(r.lexicalBase).href).hash}function Ho(r,e){return r.dynamicAnchors.find(t=>o.IsEqual(t.$dynamicAnchor,e))??Do(r.schema,e)}function Kf(r,e,t){if(!W(t)||!Rr(t))return t;let n=wo(r,e);return gf(n)?t:Ho(r,t.$dynamicAnchor)}function wf(r,e){let t=wo(r,e);return Ho(r,decodeURIComponent(t.slice(1)))}function Hf(r,e){let t=e.$dynamicRef.startsWith("#")?r.lexicalSchema:r.schema,n=et(r.context,t,r.lexicalBase,e.$dynamicRef);return o.IsUndefined(n)?wf(r,e):Kf(r,e,n)}function zo(r,e,t,n){let i=sr.DynamicRef(r,t)??!1,s=i?k(E({},r),{pendingResource:!0}):r;return c(i)&&h(s,e,i,n)}function Vo(r,e,t,n,i,s){let m=sr.DynamicRef(r,i)??!1,f=m?k(E({},r),{pendingResource:!0}):r;return c(m)&&C(f,e,t,n,m,s)}function In(r,e,t,n){return o.Some(t.enum,i=>o.IsValueLike(i)?o.IsEqual(n,i):o.IsDeepEqual(n,i))}function Wo(r,e,t,n,i,s){return In(r,e,i,s)||e.AddError("enum",t,n,{allowedValues:i.enum})}function ln(r,e,t,n){return o.IsLessThan(n,t.exclusiveMaximum)}function Zo(r,e,t,n,i,s){return ln(r,e,i,s)||e.AddError("exclusiveMaximum",t,n,{comparison:"<",limit:i.exclusiveMaximum})}function yn(r,e,t,n){return o.IsGreaterThan(n,t.exclusiveMinimum)}function Jo(r,e,t,n,i,s){return yn(r,e,i,s)||e.AddError("exclusiveMinimum",t,n,{comparison:">",limit:i.exclusiveMinimum})}var $e={};se($e,{Clear:()=>Ci,Entries:()=>qa,Get:()=>Ba,Has:()=>Na,IsDate:()=>re,IsDateTime:()=>tt,IsDuration:()=>nt,IsEmail:()=>ot,IsHostname:()=>pt,IsIPv4:()=>lt,IsIPv6:()=>yt,IsIdnEmail:()=>ct,IsIdnHostname:()=>It,IsIri:()=>xt,IsIriReference:()=>ne,IsJsonPointer:()=>ht,IsJsonPointerUriFragment:()=>Et,IsRegex:()=>gt,IsRelativeJsonPointer:()=>St,IsTime:()=>ee,IsUri:()=>$t,IsUriReference:()=>Ct,IsUriTemplate:()=>At,IsUrl:()=>Rt,IsUuid:()=>Pt,Reset:()=>Ai,Set:()=>Ga,Test:()=>ka});var zf=[0,31,28,31,30,31,30,31,31,30,31,30,31],Vf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;function Wf(r){return r%4===0&&(r%100!==0||r%400===0)}function re(r){let e=Vf.exec(r);if(!e)return!1;let t=+e[1],n=+e[2],i=+e[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&Wf(t)?29:zf[n])}var Zf=/^(\d\d):(\d\d):(\d\d)(?:\.\d+)?(?:([Zz])|([+-])(\d\d):(\d\d))?$/;function ee(r,e=!0){let t=Zf.exec(r);if(!t||e&&!t[4]&&!t[5])return!1;let n=+t[1],i=+t[2],s=+t[3];if(n>23||i>59||s>60)return!1;if(t[5]){let p=+t[6],y=+t[7];if(p>23||y>59)return!1}if(s<60)return!0;let m=t[5]==="-"?-1:1,f=+(t[6]||0),a=+(t[7]||0);return((n*60+i-m*(f*60+a))%1440+1440)%1440===1439}var Jf=/^(?:\[!?(?:(?!\.{1,2}[/\]])[A-Za-z._][A-Za-z._0-9+-]{0,13}(?:\/(?!\.{1,2}[/\]])[A-Za-z._][A-Za-z._0-9+-]{0,13})*|[+-](?:[01][0-9]|2[0-3]):[0-5][0-9])\](?:\[!?[a-z_][a-z_0-9-]*=[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*\])*|(?:\[!?[a-z_][a-z_0-9-]*=[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*\])*)$/;function tt(r){let e=r.indexOf("["),t=e===-1?r:r.slice(0,e);if(e!==-1&&!Jf.test(r.slice(e)))return!1;let n=t.split(/T/i);return n.length===2&&re(n[0])&&ee(n[1])}var Yf=/^P((\d+Y(\d+M(\d+D)?)?|\d+M(\d+D)?|\d+D)(T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S))?|T(\d+H(\d+M(\d+S)?)?|\d+M(\d+S)?|\d+S)|\d+W)$/;function nt(r){return Yf.test(r)}var Xf=/^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[^"\\]|\\[\x20-\x7e])*")@(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*|\[(?:IPv6:[a-f0-9:]+|(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])(?:\.(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3})\])$/i;function ot(r){return Xf.test(r)}var Yo=/^(?!-).*(?<!-)$/,Xo=/^(?!..--)/,Qo=/^[a-zA-Z0-9-]*$/,ny=new RegExp("^\\p{ASCII}*$","u"),te=/[^\p{ASCII}]/u;var Qf=/[0-9]/,vo=/[\u{0660}-\u{0669}]/u,vf=/[\u{06f0}-\u{06f9}]/u,ra=/[\u{002e}\u{002c}\u{003a}\u{002f}]/u,ea=/[\u{002d}\u{002b}]/u,xn=new RegExp("\\p{Mn}","u"),ta=new RegExp("\\p{Mc}","u"),oy=new RegExp("\\p{Me}","u"),ri=/[\p{Mn}\p{Mc}\p{Me}]/u,En=new RegExp("\\p{L}","u"),na=new RegExp("\\p{Nd}","u"),ei=new RegExp("\\p{Script=Greek}","u"),it=new RegExp("\\p{Script=Hebrew}","u"),ti=/[\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Han}]/u,ni=/[\p{Script=Arabic}\p{Script=Syriac}\p{Script=Thaana}\p{Script=Mandaic}]/u,hn=/[\u{094d}\u{09cd}\u{0a4d}\u{0acd}\u{0b4d}\u{0bcd}\u{0c4d}\u{0ccd}\u{0d3b}\u{0d3c}\u{0d4d}\u{0dca}\u{1b44}\u{1baa}\u{1bab}\u{a9c0}\u{11046}\u{1107f}\u{110b9}\u{11133}\u{11134}\u{111c0}\u{11235}\u{1134d}\u{11442}\u{114c2}\u{115bf}\u{1163f}\u{116b6}\u{11c3f}\u{11d44}\u{11d45}]/u,oi=/[\u{0640}\u{07fa}\u{302e}\u{302f}\u{3031}\u{3032}\u{3033}\u{3034}\u{3035}\u{303b}]/u,oa=/[\u{00b7}\u{0375}\u{05f3}\u{05f4}\u{200c}\u{200d}\u{30fb}]/u,ia=/[\u{00df}\u{03c2}\u{06fd}\u{06fe}\u{0f0b}\u{3007}]/u,ii=new RegExp([Qf,vf].map(r=>r.source).join("|"),"u"),si=new RegExp([En,ea,ra,na,xn,ta,oa,ia].map(r=>r.source).join("|"),"u");function mi(r){return Yo.test(r)&&Xo.test(r)&&Qo.test(r)}var ur=36,Ce=1,Ae=26,ma=38,fa=700,ai=72,ui=128;function gn(){throw null}function st(r){return r.toLowerCase().startsWith("xn--")}function di(r,e,t){r=t?Math.floor(r/fa):r>>1,r+=Math.floor(r/e);let n=0;for(;r>(ur-Ce)*Ae>>1;)r=Math.floor(r/(ur-Ce)),n+=ur;return n+Math.floor((ur-Ce+1)*r/(r+ma))}function mt(r){let e=[],t=ui,n=0,i=ai,s=r.lastIndexOf("-");if(s>0)for(let f=0;f<s;f++){let a=r.charCodeAt(f);a>=128&&gn(),e.push(a)}let m=s<0?0:s+1;for(;m<r.length;){let f=n,a=1,u=ur;for(;;){m>=r.length&&gn();let y=r.charCodeAt(m++),x;y>=97&&y<=122?x=y-97:y>=48&&y<=57?x=y-48+26:gn(),n+=x*a;let O=u<=i?Ce:u>=i+Ae?Ae:u-i;if(x<O)break;a*=ur-O,u+=ur}let p=e.length+1;i=di(n-f,p,f===0),t+=Math.floor(n/p),n%=p,e.splice(n,0,t),n++}return String.fromCodePoint(...e)}function fi(r){return r<26?String.fromCharCode(r+97):String.fromCharCode(r-26+48)}var aa=new RegExp(te.source,"gu");function pi(r){let e=r.replace(aa,""),t=e.length,n=t>0?[e,"-"]:[],i=Array.from(r,u=>u.codePointAt(0)),s=ui,m=0,f=ai,a=t;for(;a<i.length;){let u=1/0;for(let p of i)p>=s&&p<u&&(u=p);m+=(u-s)*(a+1),s=u;for(let p of i)if(p<s&&m++,p===s){let y=m;for(let x=ur;;x+=ur){let O=x<=f?Ce:x>=f+Ae?Ae:x-f;if(y<O)break;let xr=O+(y-O)%(ur-O);n.push(fi(xr)),y=Math.floor((y-O)/(ur-O))}n.push(fi(y)),f=di(m,a+1,a===t),m=0,a++}m++,s++}return n.join("")}var ua=/^(?:R|AL|AN|EN|ES|CS|ET|ON|BN|NSM)$/,ci=/^(?:L|EN|ES|CS|ET|ON|BN|NSM)$/,da=/^(?:R|AL|AN)$/;function Ii(r){if(st(r))try{return ft(mt(r.slice(4).toLowerCase()))}catch(e){return!1}return ft(r)}function li(r){let e=String.fromCodePoint(r);return ii.test(e)?"EN":vo.test(e)?"AN":xn.test(e)?"NSM":it.test(e)?"R":ni.test(e)?"AL":En.test(e)?"L":"ON"}function ft(r){for(let e of r)if(da.test(li(e.codePointAt(0))))return!0;return!1}function at(r){let e=!1,t=ci,n=!1,i=!1,s=!0;for(let m of r){let f=li(m.codePointAt(0));if(s){if(f!=="L"&&f!=="R"&&f!=="AL")return!1;e=f==="R"||f==="AL",t=e?ua:ci,s=!1}if(!t.test(f))return!1;f==="EN"?n=!0:f==="AN"&&(i=!0)}return!(e&&n&&i)}function pa(r){return te.test(r)&&pi(r).length+4>63}function ca(r){return r[0]==="-"||r[r.length-1]==="-"?!0:r.slice(2).join("").startsWith("--")}function ut(r){if(pa(r)||ft(r)&&!at(r))return!1;let e=[...r],t=e.map(s=>s.codePointAt(0)),n=t.length;if(ca(e)||ri.test(e[0]))return!1;let i=!1;for(let s=0;s<n;s++){let m=t[s],f=e[s];if(oi.test(f)||!si.test(f))return!1;ti.test(f)&&(i=!0);let a=t[s-1],u=t[s+1];switch(m){case 183:if(a!==108||u!==108)return!1;break;case 885:if(!u||!ei.test(e[s+1]))return!1;break;case 1523:case 1524:if(!a||!it.test(e[s-1]))return!1;break;case 8204:if(!a||a<128&&!hn.test(e[s-1]))return!1;break;case 8205:if(!a||!hn.test(e[s-1]))return!1;break;case 12539:break}}return!(r.includes("\u30FB")&&!i)}function dt(r){if(!st(r))return!1;try{let e=r.slice(4).toLowerCase();if(e.lastIndexOf("-")===0)return!1;let t=mt(e);return te.test(t)?ut(t):!1}catch(e){return!1}}function Ia(r){return r.length>0&&r.length<=63}function la(r){return Ia(r)&&(dt(r)||mi(r))}function hi(r){return r.length===0||r.length>253||r.charCodeAt(r.length-1)===46?!1:r.split(".").every(e=>la(e))}function ya(r){return r.length>0&&r.length<=63}function xa(r){return ya(r)&&(dt(r)||ut(r))}function Ea(r){return r.replace(/[\uff01-\uff5e]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248)).normalize("NFC").replace(/[\u00ad\u034f\u180b-\u180d\u200b\ufe00-\ufe0f\u{e0100}-\u{e01ef}]/gu,"").replace(/[\u002E\u3002\uFF0E\uFF61]/g,".")}function gi(r){if(r.length===0||r.includes(" "))return!1;let e=Ea(r);if(e.length>253)return!1;let t=e.split("."),n=t.some(i=>Ii(i));return t.every(i=>xa(i)&&(!n||at(i)))}function pt(r){return hi(r)}var ha=/^(?:[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+(?:\.[A-Za-z0-9!#$%&'*+\/=?^_`{|}~\u{0080}-\u{10FFFF}-]+)*|"(?:[^"\\]|\\.)*")@[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-)(?:\.[\p{L}\p{N}](?:[\p{L}\p{N}-]{0,62})(?<!-))*$/iu;function ct(r){return ha.test(r.normalize("NFC"))}function It(r){return gi(r)}var ga=/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/;function lt(r){return ga.test(r)}var Sa=/^(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:)?[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)$/i;function yt(r){return Sa.test(r)}var Ca=/[\x00-\x20\x7f"<>\^`{|}\\]|%(?![0-9a-fA-F]{2})/,Aa=/^(?:[a-z][a-z\d+\-.]*\/\/|(?!(?:[a-z][a-z\d+\-.]*:))[^/?#]*:)/i,$a=/^(?:[a-z][a-z\d+\-.]*:)?\/\/[^/?#@]*@[^/?#@]*@/i,Ra=/^(?:[a-z][a-z\d+\-.]*:\/\/[^/?#]*\/|\/\/[^/?#]*\/|[a-z][a-z\d+\-.]*:(?!\/\/)|(?![a-z][a-z\d+\-.]*:|\/\/))[^?#]*[\[\]]/i;function ne(r){return!Ca.test(r)&&!Aa.test(r)&&!$a.test(r)&&!Ra.test(r)&&URL.canParse(r,"http://example.com")}var Pa=/^[a-z][a-z\d+\-.]*:/i;function xt(r){return Pa.test(r)&&ne(r)}var ba=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;function Et(r){return ba.test(r)}var Fa=/^(?:\/(?:[^~/]|~0|~1)*)*$/;function ht(r){return Fa.test(r)}function gt(r){try{return new RegExp(r,"u"),!0}catch(e){return!1}}var Oa=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;function St(r){return Oa.test(r)}var Ta=/^(?:[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?)(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function Ct(r){return Ta.test(r)}var Ma=/^(?:(?:[^\x00-\x20"<>%\\^`{|}\x7f]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?:\.(?:[a-z0-9_]|%[0-9a-f]{2})+)*(?::[1-9]\d{0,3}|\*)?)*\})*$/i;function At(r){return Ma.test(r)}var _a=/^[a-z][a-z0-9+\-.]*:(?:\/\/(?:(?:[-a-z0-9._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:[\da-f]{1,4}:){6}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|::(?:[\da-f]{1,4}:){5}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:[\da-f]{1,4})?::(?:[\da-f]{1,4}:){4}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,1}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){3}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4})?::(?:[\da-f]{1,4}:){2}(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4})?::[\da-f]{1,4}:(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4})?::(?:[\da-f]{1,4}:[\da-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d))|(?:(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4})?::[\da-f]{1,4}|(?:(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4})?::)|v[0-9a-f]+\.[-a-z0-9._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)|(?:[-a-z0-9._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[-a-z0-9._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[-a-z0-9._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function $t(r){return _a.test(r)}function Rt(r){return URL.canParse(r)}var Ua=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;function Pt(r){return Ua.test(r)}var $=new Map;function Ci(){$.clear()}function qa(){return[...$.entries()]}function Ga(r,e){$.set(r,e)}function Na(r){return $.has(r)}function Ba(r){return $.get(r)}function ka(r,e){return $.get(r)?.(e)??!0}function Ai(){Ci(),$.set("date-time",tt),$.set("date",re),$.set("duration",nt),$.set("email",ot),$.set("hostname",pt),$.set("idn-email",ct),$.set("idn-hostname",It),$.set("ipv4",lt),$.set("ipv6",yt),$.set("iri-reference",ne),$.set("iri",xt),$.set("json-pointer-uri-fragment",Et),$.set("json-pointer",ht),$.set("regex",gt),$.set("relative-json-pointer",St),$.set("time",ee),$.set("uri-reference",Ct),$.set("uri-template",At),$.set("uri",$t),$.set("url",Rt),$.set("uuid",Pt)}Ai();function Cn(r,e,t,n){return $e.Test(t.format,n)}function $i(r,e,t,n,i,s){return Cn(r,e,i,s)||e.AddError("format",t,n,{format:i.format})}function Ri(r,e,t,n){let i=ve(t)?t.then:!0,s=ze(t)?t.else:!0;return h(r,e,t.if,n)?h(r,e,i,n):h(r,e,s,n)}function Pi(r,e,t,n,i,s){let m=ve(i)?i.then:!0,f=ze(i)?i.else:!0,a=new N,u=C(r,a,`${t}/if`,n,i.if,s)?C(r,a,`${t}/then`,n,m,s)||e.AddError("if",t,n,{failingKeyword:"then"}):C(r,e,`${t}/else`,n,f,s)||e.AddError("if",t,n,{failingKeyword:"else"});return u&&e.Merge([a]),u}function ja(r,e,t,n){return o.Every(t.items,0,(i,s)=>o.IsLessEqualThan(n.length,s)||v(r,e,i,n[s])&&e.AddIndex(s))}function Da(r,e,t,n,i,s){return o.EveryAll(i.items,0,(m,f)=>{let a=`${t}/items/${f}`,u=`${n}/${f}`;return o.IsLessEqualThan(s.length,f)||rr(r,e,a,u,m,s[f])&&e.AddIndex(f)})}function La(r,e,t,n){let i=Gr(t)?t.prefixItems.length:0;return o.Every(n,i,(s,m)=>v(r,e,t.items,s)&&e.AddIndex(m))}function Ka(r,e,t,n,i,s){let m=Gr(i)?i.prefixItems.length:0;return o.EveryAll(s,m,(f,a)=>{let u=`${t}/items`,p=`${n}/${a}`;return rr(r,e,u,p,i.items,f)&&e.AddIndex(a)})}function bi(r,e,t,n){return We(t)?ja(r,e,t,n):La(r,e,t,n)}function Fi(r,e,t,n,i,s){return We(i)?Da(r,e,t,n,i,s):Ka(r,e,t,n,i,s)}function wa(r){return $r(r)}function An(r,e,t,n){if(!wa(t))return!0;let i=o.Counted(n,s=>h(r,e,t.contains,s));return o.IsLessEqualThan(i,t.maxContains)}function Oi(r,e,t,n,i,s){let m=Ur(i)?i.minContains:1;return An(r,e,i,s)||e.AddError("contains",t,n,{minContains:m,maxContains:i.maxContains})}function $n(r,e,t,n){return o.IsLessEqualThan(n,t.maximum)}function Ti(r,e,t,n,i,s){return $n(r,e,i,s)||e.AddError("maximum",t,n,{comparison:"<=",limit:i.maximum})}function Rn(r,e,t,n){return o.IsLessEqualThan(n.length,t.maxItems)}function Mi(r,e,t,n,i,s){return Rn(r,e,i,s)||e.AddError("maxItems",t,n,{limit:i.maxItems})}function Pn(r,e,t,n){return o.IsMaxLength(n,t.maxLength)}function _i(r,e,t,n,i,s){return Pn(r,e,i,s)||e.AddError("maxLength",t,n,{limit:i.maxLength})}function bn(r,e,t,n){return o.IsLessEqualThan(o.Keys(n).length,t.maxProperties)}function Ui(r,e,t,n,i,s){return bn(r,e,i,s)||e.AddError("maxProperties",t,n,{limit:i.maxProperties})}function Ha(r){return $r(r)}function Fn(r,e,t,n){if(!Ha(t))return!0;let i=o.Counted(n,(s,m)=>h(r,e,t.contains,s)&&e.AddIndex(m));return o.IsGreaterEqualThan(i,t.minContains)}function qi(r,e,t,n,i,s){return Fn(r,e,i,s)||e.AddError("contains",t,n,{minContains:i.minContains})}function On(r,e,t,n){return o.IsGreaterEqualThan(n,t.minimum)}function Gi(r,e,t,n,i,s){return On(r,e,i,s)||e.AddError("minimum",t,n,{comparison:">=",limit:i.minimum})}function Tn(r,e,t,n){return o.IsGreaterEqualThan(n.length,t.minItems)}function Ni(r,e,t,n,i,s){return Tn(r,e,i,s)||e.AddError("minItems",t,n,{limit:i.minItems})}function Mn(r,e,t,n){return o.IsMinLength(n,t.minLength)}function Bi(r,e,t,n,i,s){return Mn(r,e,i,s)||e.AddError("minLength",t,n,{limit:i.minLength})}function _n(r,e,t,n){return o.IsGreaterEqualThan(o.Keys(n).length,t.minProperties)}function ki(r,e,t,n,i,s){return _n(r,e,i,s)||e.AddError("minProperties",t,n,{limit:i.minProperties})}function Un(r,e,t,n){return o.IsMultipleOf(n,t.multipleOf)}function ji(r,e,t,n,i,s){return Un(r,e,i,s)||e.AddError("multipleOf",t,n,{multipleOf:i.multipleOf})}function qn(r,e,t,n){let i=new V;return!h(r,i,t.not,n)&&e.Merge([i])}function Di(r,e,t,n,i,s){return qn(r,e,i,s)||e.AddError("not",t,n,{})}function Li(r,e,t,n){let i=t.oneOf.reduce((s,m)=>{let f=new V;return h(r,f,m,n)?[...s,f]:s},[]);return o.IsEqual(i.length,1)&&e.Merge(i)}function Ki(r,e,t,n,i,s){let m=[],f=[],a=i.oneOf.reduce((p,y,x)=>{let O=new N,xr=`${t}/oneOf/${x}`,jt=C(r,O,xr,n,y,s);return jt&&f.push(x),jt||m.push(O),jt?[...p,O]:p},[]),u=o.IsEqual(a.length,1)&&e.Merge(a);return!u&&o.IsEqual(f.length,0)&&m.forEach(p=>e.AddErrors(p.GetErrors())),u||e.AddError("oneOf",t,n,{passingSchemas:f})}function Gn(r,e,t,n){return(o.IsString(t.pattern)?br(t.pattern):t.pattern).test(n)}function wi(r,e,t,n,i,s){return Gn(r,e,i,s)||e.AddError("pattern",t,n,{pattern:i.pattern})}function Hi(r,e,t,n){return o.Every(o.Entries(t.patternProperties),0,([i,s])=>{let m=br(i);return o.Every(o.Entries(n),0,([f,a])=>!m.test(f)||v(r,e,s,a)&&e.AddKey(f))})}function zi(r,e,t,n,i,s){return o.EveryAll(o.Entries(i.patternProperties),0,([m,f])=>{let a=`${t}/patternProperties/${J(m)}`,u=br(m);return o.EveryAll(o.Entries(s),0,([p,y])=>{let x=`${n}/${J(p)}`;return!u.test(p)||rr(r,e,a,x,f,y)&&e.AddKey(p)})})}function Vi(r,e,t,n){return o.IsEqual(n.length,0)||o.Every(t.prefixItems,0,(i,s)=>o.IsLessEqualThan(n.length,s)||v(r,e,i,n[s])&&e.AddIndex(s))}function Wi(r,e,t,n,i,s){return o.IsEqual(s.length,0)||o.EveryAll(i.prefixItems,0,(m,f)=>{let a=`${t}/prefixItems/${f}`,u=`${n}/${f}`;return o.IsLessEqualThan(s.length,f)||rr(r,e,a,u,m,s[f])&&e.AddIndex(f)})}function Nn(r,e){return r.includes(e)||er.Get().exactOptionalPropertyTypes}function Bn(r,e){return o.IsUndefined(r[e])}function Zi(r,e,t,n){let i=Nr(t)?t.required:[];return o.Every(o.Entries(t.properties),0,([m,f])=>{let a=!o.HasPropertyKey(n,m)||v(r,e,f,n[m])&&e.AddKey(m);return Nn(i,m)?a:Bn(n,m)||a})}function Ji(r,e,t,n,i,s){let m=Nr(i)?i.required:[];return o.EveryAll(o.Entries(i.properties),0,([a,u])=>{let p=`${t}/properties/${J(a)}`,y=`${n}/${J(a)}`,x=()=>!o.HasPropertyKey(s,a)||rr(r,e,p,y,u,s[a])&&e.AddKey(a);return Nn(m,a)?x():Bn(s,a)||x()})}function Yi(r,e,t,n){return o.Every(o.Keys(n),0,(i,s)=>h(r,e,t.propertyNames,i))}function Xi(r,e,t,n,i,s){let m=[];return o.EveryAll(o.Keys(s),0,(a,u)=>{let p=`${n}/${J(a)}`,y=`${t}/propertyNames`,x=C(r,e,y,p,i.propertyNames,a);return x||m.push(a),x})||e.AddError("propertyNames",t,n,{propertyNames:m})}function Qi(r,e,t,n){let i=sr.RecursiveRef(r,t)??!1,s=i?k(E({},r),{pendingResource:!0}):r;return c(i)&&h(s,e,i,n)}function vi(r,e,t,n,i,s){let m=sr.RecursiveRef(r,i)??!1,f=m?k(E({},r),{pendingResource:!0}):r;return c(m)&&C(f,e,t,n,m,s)}function rs(r,e,t,n){let i=sr.Ref(r,t),s=i.schema??!1,m=new V,f=c(s)&&h(i.stack,m,s,n);return f&&e.Merge([m]),f}function es(r,e,t,n,i,s){let m=sr.Ref(r,i),f=m.schema??!1,a=new N,u=c(f)&&C(m.stack,a,t,n,f,s);return u&&e.Merge([a]),u||e.AddErrors(a.GetErrors()),u}function ts(r,e,t,n){return o.Every(t.required,0,i=>o.HasPropertyKey(n,i))}function ns(r,e,t,n,i,s){let m=[];return o.EveryAll(i.required,0,a=>{let u=o.HasPropertyKey(s,a);return u||m.push(a),u})||e.AddError("required",t,n,{requiredProperties:m})}function kn(r,e,t,n,i){return o.IsEqual(t,"object")?o.IsObjectNotArray(i):o.IsEqual(t,"array")?o.IsArray(i):o.IsEqual(t,"boolean")?o.IsBoolean(i):o.IsEqual(t,"integer")?o.IsInteger(i):o.IsEqual(t,"number")?o.IsNumber(i):o.IsEqual(t,"null")?o.IsNull(i):o.IsEqual(t,"string")?o.IsString(i):o.IsEqual(t,"bigint")?o.IsBigInt(i):o.IsEqual(t,"constructor")?o.IsConstructor(i):o.IsEqual(t,"function")?o.IsFunction(i):o.IsEqual(t,"symbol")?o.IsSymbol(i):o.IsEqual(t,"undefined")?o.IsUndefined(i):o.IsEqual(t,"void")?o.IsUndefined(i):!0}function os(r,e,t,n,i){return o.Some(t,s=>kn(r,e,s,n,i))}function is(r,e,t,n){return o.IsArray(t.type)?os(r,e,t.type,t,n):kn(r,e,t.type,t,n)}function ss(r,e,t,n,i,s){return(o.IsArray(i.type)?os(r,e,i.type,i,s):kn(r,e,i.type,i,s))||e.AddError("type",t,n,{type:i.type})}function ms(r,e,t,n){let i=e.GetIndices();return o.Every(n,0,(s,m)=>(i.has(m)||h(r,e,t.unevaluatedItems,s))&&e.AddIndex(m))}function fs(r,e,t,n,i,s){let m=e.GetIndices(),f=[];return o.EveryAll(s,0,(u,p)=>{let y=new N,x=(m.has(p)||C(r,y,t,n,i.unevaluatedItems,u))&&e.AddIndex(p);return x||f.push(p),x})||e.AddError("unevaluatedItems",t,n,{unevaluatedItems:f})}function as(r,e,t,n){let i=e.GetKeys();return o.Every(o.Entries(n),0,([s,m])=>i.has(s)||h(r,e,t.unevaluatedProperties,m)&&e.AddKey(s))}function us(r,e,t,n,i,s){let m=e.GetKeys(),f=[];return o.EveryAll(o.Entries(s),0,([u,p])=>{let y=new N,x=m.has(u)||C(r,y,t,n,i.unevaluatedProperties,p)&&e.AddKey(u);return x||f.push(u),x})||e.AddError("unevaluatedProperties",t,n,{unevaluatedProperties:f})}function ds(r){return!o.IsEqual(r.uniqueItems,!1)}function ps(r,e,t,n){if(!ds(t))return!0;let i=new Set(n.map(Tr.Hash)).size,s=n.length;return o.IsEqual(i,s)}function cs(r,e,t,n,i,s){if(!ds(i))return!0;let m=new Set,f=s.reduce((u,p,y)=>{let x=Tr.Hash(p);return m.has(x)?[...u,y]:(m.add(x),u)},[]);return o.IsEqual(f.length,0)||e.AddError("uniqueItems",t,n,{duplicateItems:f})}function v(r,e,t,n){return e.Push()&&h(r,e,t,n)&&e.Pop()}function h(r,e,t,n){let i=Qr(r,t);return Mr(t)?nn(i,e,t,n):(!vt(t)||is(i,e,t,n))&&(!(o.IsObject(n)&&!o.IsArray(n))||(!Nr(t)||ts(i,e,t,n))&&(!ir(t)||Co(i,e,t,n))&&(!Ht(t)||Mo(i,e,t,n))&&(!zt(t)||Uo(i,e,t,n))&&(!we(t)||Go(i,e,t,n))&&(!Zr(t)||Hi(i,e,t,n))&&(!Jr(t)||Zi(i,e,t,n))&&(!Ye(t)||Yi(i,e,t,n))&&(!pe(t)||_n(i,e,t,n))&&(!Xt(t)||bn(i,e,t,n)))&&(!o.IsArray(n)||(!De(t)||ho(i,e,t,n))&&(!$r(t)||sn(i,e,t,n))&&(!_r(t)||bi(i,e,t,n))&&(!Ur(t)||Fn(i,e,t,n))&&(!Jt(t)||An(i,e,t,n))&&(!qr(t)||Tn(i,e,t,n))&&(!ue(t)||Rn(i,e,t,n))&&(!Gr(t)||Vi(i,e,t,n))&&(!Pr(t)||ps(i,e,t,n)))&&(!o.IsString(n)||(!de(t)||Mn(i,e,t,n))&&(!Yt(t)||Pn(i,e,t,n))&&(!ae(t)||Cn(i,e,t,n))&&(!ce(t)||Gn(i,e,t,n)))&&(!(o.IsNumber(n)||o.IsBigInt(n))||(!Er(t)||yn(i,e,t,n))&&(!Wt(t)||ln(i,e,t,n))&&(!hr(t)||On(i,e,t,n))&&(!Zt(t)||$n(i,e,t,n))&&(!Qt(t)||Un(i,e,t,n)))&&(!Qe(t)||rs(i,e,t,n))&&(!Xe(t)||Qi(i,e,t,n))&&(!He(t)||zo(i,e,t,n))&&(!wt(t)||on(i,e,t,n))&&(!Vt(t)||In(i,e,t,n))&&(!Ve(t)||Ri(i,e,t,n))&&(!Ze(t)||qn(i,e,t,n))&&(!Le(t)||$o(i,e,t,n))&&(!Ke(t)||Po(i,e,t,n))&&(!Je(t)||Li(i,e,t,n))&&(!le(t)||!o.IsArray(n)||ms(i,e,t,n))&&(!ye(t)||!o.IsObject(n)||as(i,e,t,n))&&(!je(t)||po(i,e,t,n))}function rr(r,e,t,n,i,s){return e.Push()&&C(r,e,t,n,i,s)&&e.Pop()}function C(r,e,t,n,i,s){if(e.AtCapacity())return!1;let m=Qr(r,i);return Mr(i)?Fo(m,e,t,n,i,s):!!(+(!vt(i)||ss(m,e,t,n,i,s))&+(!(o.IsObject(s)&&!o.IsArray(s))||!!(+(!Nr(i)||ns(m,e,t,n,i,s))&+(!ir(i)||Ao(m,e,t,n,i,s))&+(!Ht(i)||_o(m,e,t,n,i,s))&+(!zt(i)||qo(m,e,t,n,i,s))&+(!we(i)||No(m,e,t,n,i,s))&+(!Zr(i)||zi(m,e,t,n,i,s))&+(!Jr(i)||Ji(m,e,t,n,i,s))&+(!Ye(i)||Xi(m,e,t,n,i,s))&+(!pe(i)||ki(m,e,t,n,i,s))&+(!Xt(i)||Ui(m,e,t,n,i,s))))&+(!o.IsArray(s)||!!(+(!De(i)||go(m,e,t,n,i,s))&+(!$r(i)||To(m,e,t,n,i,s))&+(!_r(i)||Fi(m,e,t,n,i,s))&+(!Ur(i)||qi(m,e,t,n,i,s))&+(!Jt(i)||Oi(m,e,t,n,i,s))&+(!qr(i)||Ni(m,e,t,n,i,s))&+(!ue(i)||Mi(m,e,t,n,i,s))&+(!Gr(i)||Wi(m,e,t,n,i,s))&+(!Pr(i)||cs(m,e,t,n,i,s))))&+(!o.IsString(s)||!!(+(!de(i)||Bi(m,e,t,n,i,s))&+(!Yt(i)||_i(m,e,t,n,i,s))&+(!ae(i)||$i(m,e,t,n,i,s))&+(!ce(i)||wi(m,e,t,n,i,s))))&+(!(o.IsNumber(s)||o.IsBigInt(s))||!!(+(!Er(i)||Jo(m,e,t,n,i,s))&+(!Wt(i)||Zo(m,e,t,n,i,s))&+(!hr(i)||Gi(m,e,t,n,i,s))&+(!Zt(i)||Ti(m,e,t,n,i,s))&+(!Qt(i)||ji(m,e,t,n,i,s))))&+(!Qe(i)||es(m,e,t,n,i,s))&+(!Xe(i)||vi(m,e,t,n,i,s))&+(!He(i)||Vo(m,e,t,n,i,s))&+(!wt(i)||Oo(m,e,t,n,i,s))&+(!Vt(i)||Wo(m,e,t,n,i,s))&+(!Ve(i)||Pi(m,e,t,n,i,s))&+(!Ze(i)||Di(m,e,t,n,i,s))&+(!Le(i)||Ro(m,e,t,n,i,s))&+(!Ke(i)||bo(m,e,t,n,i,s))&+(!Je(i)||Ki(m,e,t,n,i,s))&+(!le(i)||!o.IsArray(s)||fs(m,e,t,n,i,s))&+(!ye(i)||!o.IsObject(s)||us(m,e,t,n,i,s)))&&(!je(i)||co(m,e,t,n,i,s))}function bt(...r){let[e,t,n]=S.Match(r,{3:(p,y,x)=>[p,y,x],2:(p,y)=>[{},p,y]}),i=Xr(e,t),s=new N,m=C(i,s,"#","",t,n),f=s.GetErrors(),a=Qn(),u=f.map(p=>k(E({},p),{message:a(p)}));return[m,u]}var Is=0;function Ft(){let r=Dt();Is=r.maxErrors,r.maxErrors=r.maxParseErrors}function Ot(){let r=Dt();r.maxErrors=Is}function Dn(...r){let[e,t,n]=S.Match(r,{3:(m,f,a)=>[m,f,a],2:(m,f)=>[{},m,f]}),i=Xr(e,t),s=new V;return h(i,s,t,n)}function l(...r){let[e,t,n]=S.Match(r,{3:(i,s,m)=>[i,s,m],2:(i,s)=>[{},i,s]});return Dn(e,t,n)}function dr(...r){let[e,t,n]=S.Match(r,{3:(m,f,a)=>[m,f,a],2:(m,f)=>[{},m,f]}),[i,s]=bt(e,t,n);return s}var Sr=class extends Error{constructor(e,t,n){super(e),Object.defineProperty(this,"cause",{value:{source:e,errors:n,value:t},writable:!1,configurable:!1,enumerable:!1})}};function Tt(...r){let[e,t,n]=S.Match(r,{3:(s,m,f)=>[s,m,f],2:(s,m)=>[{},s,m]});if(!l(e,t,n))throw new Sr("Assert",n,dr(e,t,n))}function ls(r,e,t){return o.IsArray(t)?t.map(n=>_(r,e.items,n)):t}function ys(r,e,t){return _(E(E({},r),e.$defs),tr(e.$ref),t)}function Wa(r,e){let t=o.HasPropertyKey(e,"unevaluatedProperties")?{additionalProperties:e.unevaluatedProperties}:{},n=cr(r,e),i=G(n);return M(i)?fo(i,t):i}function xs(r,e,t){let n=Wa(r,e);return _(r,n,t)}function Mt(r){return o.HasPropertyKey(r,"additionalProperties")?r.additionalProperties:void 0}function Es(r,e,t){if(!o.IsObject(t)||o.IsArray(t))return t;let n=Mt(e);for(let i of o.Keys(t)){if(o.HasPropertyKey(e.properties,i)&&me(e.properties[i])){t[i]=_(r,e.properties[i],t[i]);continue}if(o.IsBoolean(n)&&o.IsEqual(n,!0)||me(n)&&l(r,n,t[i])){t[i]=_(r,n,t[i]);continue}delete t[i]}return t}function hs(r,e,t){if(!o.IsObject(t))return t;let n=Mt(e),[i,s]=[new RegExp(fr(e)),Q(e)];for(let m of o.Keys(t)){if(i.test(m)){t[m]=_(r,s,t[m]);continue}if(o.IsBoolean(n)&&o.IsEqual(n,!0)||me(n)&&l(r,n,t[m])){t[m]=_(r,n,t[m]);continue}delete t[m]}return t}function gs(r,e,t){return o.HasPropertyKey(r,e.$ref)?_(r,r[e.$ref],t):t}function Ss(r,e,t){if(!o.IsArray(t))return t;let n=Math.min(t.length,e.items.length);for(let i=0;i<n;i++)t[i]=_(r,e.items[i],t[i]);return o.IsGreaterThan(t.length,n)?t.slice(0,n):t}function Za(r){return o.HasPropertyKey(r,"~kind")||o.HasPropertyKey(r,"~unsafe")}function Ja(r){let e={};for(let t of o.Keys(r)){if(o.IsUnsafePropertyKey(t))continue;let n=Object.getOwnPropertyDescriptor(r,t);n.value=jr(n.value),o.IsEqual(n.enumerable,!0)?e[t]=n.value:Object.defineProperty(e,t,n)}return e}function Ya(r){let e={};for(let t of o.Keys(r))o.IsUnsafePropertyKey(t)||(e[t]=jr(r[t]));for(let t of o.Symbols(r))e[t]=jr(r[t]);return e}function Xa(r){return o.IsClassInstance(r)?r:Za(r)?Ja(r):Ya(r)}function Qa(r){return r.map(e=>jr(e))}function va(r){return r.slice()}function ru(r){return new RegExp(r.source,r.flags)}function eu(r){return new Map(jr([...r.entries()]))}function tu(r){return new Set(jr([...r.values()]))}function jr(r){return X.IsTypeArray(r)?va(r):X.IsRegExp(r)?ru(r):X.IsMap(r)?eu(r):X.IsSet(r)?tu(r):o.IsArray(r)?Qa(r):o.IsObject(r)?Xa(r):r}function Cs(r){return jr(r)}function A(r){return Cs(r)}function As(r,e,t){for(let n of e.anyOf){let i=_(r,n,A(t));if(l(r,n,i))return i}return t}function _(r,e,t){return j(e)?ls(r,e,t):nr(e)?ys(r,e,t):L(e)?xs(r,e,t):M(e)?Es(r,e,t):H(e)?hs(r,e,t):D(e)?gs(r,e,t):w(e)?Ss(r,e,t):K(e)?As(r,e,t):t}function nu(r,e){return Lt.Assign(r,e)}function ou(r){let e={};for(let t of Wn.Keys(r))e[t]=Re(r[t]);return e}function iu(r){return wr({pattern:fr(r)})}function su(r){return Ln(ao(r))}function Ln(r){return r.map(e=>Re(e))}function Re(r){let e=j(r)?Zn(Re(r.items),Jn(r)):L(r)?Yn(Ln(r.allOf)):K(r)?zr(su(r.anyOf)):M(r)?fe(ou(r.properties)):H(r)?mo(iu(r),Re(Q(r))):w(r)?io(Ln(r.items)):r;return nu(r,e)}function oe(r){return Re(r)}function pr(...r){let[e,t,n]=S.Match(r,{3:(s,m,f)=>[s,m,f],2:(s,m)=>[{},s,m]}),i=er.Get().unionPrioritySort?oe(t):t;return _(e,i,n)}var g={};se(g,{Fail:()=>Dr,IsOk:()=>Kn,Ok:()=>d,TryArray:()=>mu,TryBigInt:()=>wn,TryBoolean:()=>hu,TryNull:()=>$u,TryNumber:()=>Fu,TryString:()=>Ou,TryUndefined:()=>qu});function Kn(r){return o.IsObject(r)&&o.HasPropertyKey(r,"value")}function d(r){return{value:r}}function Dr(){}function mu(r){return o.IsArray(r)?d(r):d([r])}function fu(r){return o.IsEqual(r,!0)?d(BigInt(1)):d(BigInt(0))}var au=/^-?(0|[1-9]\d*)n$/,uu=/^-?(0|[1-9]\d*)\.\d+$/,du=/^-?(0|[1-9]\d*)$/;function pu(r){return au.test(r)}function cu(r){return uu.test(r)}function Iu(r){return du.test(r)}function lu(r){let e=r.toLowerCase();return pu(r)?d(BigInt(r.slice(0,r.length-1))):cu(r)?d(BigInt(r.split(".")[0])):Iu(r)?d(BigInt(r)):o.IsEqual(e,"false")?d(BigInt(0)):o.IsEqual(e,"true")?d(BigInt(1)):void 0}function wn(r){return o.IsBigInt(r)?d(r):o.IsBoolean(r)?fu(r):o.IsNumber(r)?d(BigInt(Math.trunc(r))):o.IsNull(r)?d(BigInt(0)):o.IsString(r)?lu(r):o.IsUndefined(r)?d(BigInt(0)):void 0}function yu(r){return o.IsEqual(r,BigInt(0))?d(!1):o.IsEqual(r,BigInt(1))?d(!0):void 0}function xu(r){return o.IsEqual(r,0)?d(!1):o.IsEqual(r,1)?d(!0):void 0}function Eu(r){return o.IsEqual(r.toLowerCase(),"false")?d(!1):o.IsEqual(r.toLowerCase(),"true")?d(!0):o.IsEqual(r,"0")?d(!1):o.IsEqual(r,"1")?d(!0):void 0}function hu(r){return o.IsBigInt(r)?yu(r):o.IsBoolean(r)?d(r):o.IsNumber(r)?xu(r):o.IsNull(r)?d(!1):o.IsString(r)?Eu(r):o.IsUndefined(r)?d(!1):void 0}function gu(r){return o.IsEqual(r,BigInt(0))?d(null):void 0}function Su(r){return o.IsEqual(r,!1)?d(null):void 0}function Cu(r){return o.IsEqual(r,0)?d(null):void 0}function Au(r){let e=r.toLowerCase();return o.IsEqual(e,"undefined")||o.IsEqual(e,"null")||o.IsEqual(r,"")||o.IsEqual(r,"0")?d(null):void 0}function $u(r){return o.IsBigInt(r)?gu(r):o.IsBoolean(r)?Su(r):o.IsNumber(r)?Cu(r):o.IsNull(r)?d(null):o.IsString(r)?Au(r):o.IsUndefined(r)?d(null):void 0}var $s=BigInt(Number.MAX_SAFE_INTEGER),Rs=BigInt(Number.MIN_SAFE_INTEGER);function Ru(r){return r<=$s&&r>=Rs?d(Number(r)):void 0}function Pu(r){return d(r?1:0)}function bu(r){let e=+r;if(o.IsNumber(e))return d(e);let t=r.toLowerCase();if(o.IsEqual(t,"false"))return d(0);if(o.IsEqual(t,"true"))return d(1);let n=wn(r);return Kn(n)?n.value<=$s&&n.value>=Rs?d(Number(n.value)):void 0:void 0}function Fu(r){return o.IsBigInt(r)?Ru(r):o.IsBoolean(r)?Pu(r):o.IsNumber(r)?d(r):o.IsNull(r)?d(0):o.IsString(r)?bu(r):o.IsUndefined(r)?d(0):void 0}function Ou(r){return o.IsBigInt(r)?d(r.toString()):o.IsBoolean(r)?d(r.toString()):o.IsNumber(r)?d(r.toString()):o.IsNull(r)?d("null"):o.IsString(r)?d(r):o.IsUndefined(r)?d(""):void 0}function Tu(r){return o.IsEqual(r,BigInt(0))?d(void 0):void 0}function Mu(r){return o.IsEqual(r,!1)?d(void 0):void 0}function _u(r){return o.IsEqual(r,0)?d(void 0):void 0}function Uu(r){let e=r.toLowerCase();return o.IsEqual(e,"undefined")||o.IsEqual(e,"null")||o.IsEqual(r,"")||o.IsEqual(r,"0")?d(void 0):void 0}function qu(r){return o.IsBigInt(r)?Tu(r):o.IsBoolean(r)?Mu(r):o.IsNumber(r)?_u(r):o.IsNull(r)?d(void 0):o.IsString(r)?Uu(r):o.IsUndefined(r)?d(r):void 0}function Ps(r,e,t){return g.TryArray(t).value.map(i=>b(r,e.items,i))}function bs(r,e,t){let n=g.TryBigInt(t);return g.IsOk(n)?n.value:t}function Fs(r,e,t){let n=g.TryBoolean(t);return g.IsOk(n)?n.value:t}function Os(r,e,t){return b(E(E({},r),e.$defs),tr(e.$ref),t)}function Ts(r,e,t){return b(r,G(e),t)}function Ms(r,e,t){let n=g.TryNumber(t);return g.IsOk(n)?Math.trunc(n.value):t}function _s(r,e,t){let n=cr(r,e),i=G(n);return b(r,i,t)}function Gu(r,e,t){let n=g.TryBigInt(t);return g.IsOk(n)&&o.IsEqual(e.const,n.value)?n.value:t}function Nu(r,e,t){let n=g.TryBoolean(t);return g.IsOk(n)&&o.IsEqual(e.const,n.value)?n.value:t}function Bu(r,e,t){let n=g.TryNumber(t);return g.IsOk(n)&&o.IsEqual(e.const,n.value)?n.value:t}function ku(r,e,t){let n=g.TryString(t);return g.IsOk(n)&&o.IsEqual(e.const,n.value)?n.value:t}function Us(r,e,t){return o.IsEqual(e.const,t)?t:ro(e)?Gu(r,e,t):eo(e)?Nu(r,e,t):to(e)?Bu(r,e,t):no(e)?ku(r,e,t):Xn()}function qs(r,e,t){let n=g.TryNull(t);return g.IsOk(n)?n.value:t}function Gs(r,e,t){let n=g.TryNumber(t);return g.IsOk(n)?n.value:t}function _t(r,e,t,n){let i=o.Keys(n);for(let[s,m]of e)for(let f of i)s.test(f)||(n[f]=b(r,t,n[f]));return n}function Pe(r,e,t){return Te(r)&&o.IsUndefined(t[e])}function ju(r,e,t){let n=o.EntriesRegExp(e.properties),i=o.Keys(t);for(let[s,m]of n)for(let f of i)!s.test(f)||Pe(m,f,t)||(t[f]=b(r,m,t[f]));return o.HasPropertyKey(e,"additionalProperties")&&o.IsObject(e.additionalProperties)?_t(r,n,e.additionalProperties,t):t}function Ns(r,e,t){return o.IsObjectNotArray(t)?ju(r,e,t):t}function Du(r,e,t){let n=o.EntriesRegExp(e.patternProperties),i=o.Keys(t);for(let[s,m]of n)for(let f of i)s.test(f)&&(t[f]=b(r,m,t[f]));return o.HasPropertyKey(e,"additionalProperties")&&o.IsObject(e.additionalProperties)?_t(r,n,e.additionalProperties,t):t}function Bs(r,e,t){return o.IsObjectNotArray(t)?Du(r,e,t):t}function ks(r,e,t){return o.HasPropertyKey(r,e.$ref)?b(r,r[e.$ref],t):t}function js(r,e,t){let n=g.TryString(t);return g.IsOk(n)?n.value:t}function Ds(r,e,t){return b(r,G(e),t)}function Ls(r,e,t){if(!o.IsArray(t))return t;for(let n=0;n<Math.min(e.items.length,t.length);n++)t[n]=b(r,e.items[n],t[n]);return t}function Ks(r,e,t){let n=g.TryUndefined(t);return g.IsOk(n)?n.value:t}function ws(r,e,t){if(e.anyOf.some(m=>l(r,m,t)))return t;let s=e.anyOf.map(m=>b(r,m,A(t))).find(m=>l(r,e,m));return o.IsUndefined(s)?t:s}function Hs(r,e,t){let n=g.TryUndefined(t);return g.IsOk(n)?void 0:t}function b(r,e,t){return j(e)?Ps(r,e,t):Me(e)?bs(r,e,t):_e(e)?Fs(r,e,t):nr(e)?Os(r,e,t):Lr(e)?Ts(r,e,t):Ue(e)?Ms(r,e,t):L(e)?_s(r,e,t):Kr(e)?Us(r,e,t):Ge(e)?qs(r,e,t):Ne(e)?Gs(r,e,t):M(e)?Ns(r,e,t):H(e)?Bs(r,e,t):D(e)?ks(r,e,t):Hr(e)?js(r,e,t):Wr(e)?Ds(r,e,t):w(e)?Ls(r,e,t):Vr(e)?Ks(r,e,t):K(e)?ws(r,e,t):ke(e)?Hs(r,e,t):t}function yr(...r){let[e,t,n]=S.Match(r,{3:(i,s,m)=>[i,s,m],2:(i,s)=>[{},i,s]});return b(e,t,n)}function zs(r,e,t){if(!o.IsArray(t))return t;for(let n=0;n<t.length;n++)t[n]=U(r,e.items,t[n]);return t}function Vs(r,e,t){return U(E(E({},r),e.$defs),tr(e.$ref),t)}function Ws(r,e){return o.IsUndefined(e)?o.IsFunction(r.default)?r.default():A(r.default):e}function Zs(r,e,t){let n=cr(r,e),i=G(n);return U(r,i,t)}function Js(r,e,t){if(!o.IsObject(t))return t;let n=o.Keys(e.properties);for(let i of n){let s=U(r,e.properties[i],t[i]);o.IsUndefined(s)&&(Te(e.properties[i])||!o.HasPropertyKey(e.properties[i],"default"))||(t[i]=s)}if(!ir(e)||o.IsBoolean(e.additionalProperties))return t;for(let i of o.Keys(t))n.includes(i)||(t[i]=U(r,e.additionalProperties,t[i]));return t}function Ys(r,e,t){if(!o.IsObject(t))return t;let[n,i]=[new RegExp(fr(e)),Q(e)];for(let s of o.Keys(t))n.test(s)&&Z(i)&&(t[s]=U(r,i,t[s]));if(!ir(e))return t;for(let s of o.Keys(t))n.test(s)||(t[s]=U(r,e.additionalProperties,t[s]));return t}function Xs(r,e,t){return o.HasPropertyKey(r,e.$ref)?U(r,r[e.$ref],t):t}function Qs(r,e,t){if(!o.IsArray(t))return t;let[n,i]=[e.items,Math.max(e.items.length,t.length)];for(let s=0;s<i;s++)s<n.length&&(t[s]=U(r,n[s],t[s]));return t}function vs(r,e,t){for(let n of e.anyOf){let i=U(r,n,A(t));if(l(r,n,i))return i}return t}function U(r,e,t){let n=Z(e)?Ws(e,t):t;return j(e)?zs(r,e,n):nr(e)?Vs(r,e,n):L(e)?Zs(r,e,n):M(e)?Js(r,e,n):H(e)?Ys(r,e,n):D(e)?Xs(r,e,n):w(e)?Qs(r,e,n):K(e)?vs(r,e,n):n}function Fr(...r){let[e,t,n]=S.Match(r,{3:(i,s,m)=>[i,s,m],2:(i,s)=>[{},i,s]});return U(e,t,n)}function ie(r){return(...e)=>{let[t,n,i]=S.Match(e,{3:(s,m,f)=>[s,m,f],2:(s,m)=>[{},s,m]});return r.reduce((s,m)=>m(t,n,s),i)}}function Lu(r,e,t){return e["~codec"].decode(t)}function Ku(r,e,t){return e["~codec"].encode(t)}function R(r,e,t,n){return or(t)?o.IsEqual(r,"Decode")?Lu(e,t,n):Ku(e,t,n):n}function wu(r,e,t,n){if(!o.IsArray(n))return n;for(let i=0;i<n.length;i++)n[i]=P(r,e,t.items,n[i]);return R(r,e,t,n)}function Hu(r,e,t,n){let i=R(r,e,t,n);if(!o.IsArray(i))return i;for(let s=0;s<i.length;s++)i[s]=P(r,e,t.items,i[s]);return i}function rm(r,e,t,n){return o.IsEqual(r,"Decode")?wu(r,e,t,n):Hu(r,e,t,n)}function em(r,e,t,n){return n=P(r,E(E({},e),t.$defs),tr(t.$ref),n),R(r,e,t,n)}function tm(r){return r.reduce((e,t)=>E(E({},e),t),{})}function nm(r,e){for(let t of e)if(!o.IsDeepEqual(r,t))return t;return r}function zu(r,e,t,n){if(o.IsEqual(t.allOf.length,0))return R(r,e,t,n);let i=t.allOf.map(f=>P(r,e,f,pr(f,A(n)))),m=i.every(f=>o.IsObject(f))?tm(i):nm(n,i);return R(r,e,t,m)}function Vu(r,e,t,n){if(o.IsEqual(t.allOf.length,0))return R(r,e,t,n);let i=R(r,e,t,n),s=t.allOf.map(f=>P(r,e,f,pr(f,A(i))));return s.every(f=>o.IsObject(f))?tm(s):nm(i,s)}function om(r,e,t,n){return o.IsEqual(r,"Decode")?zu(r,e,t,n):Vu(r,e,t,n)}function Wu(r,e,t,n){if(!o.IsObjectNotArray(n))return n;for(let i of o.Keys(t.properties))!o.HasPropertyKey(n,i)||Pe(t.properties[i],i,n)||(n[i]=P(r,e,t.properties[i],n[i]));return R(r,e,t,n)}function Zu(r,e,t,n){let i=R(r,e,t,n);if(!o.IsObjectNotArray(i))return i;for(let s of o.Keys(t.properties))!o.HasPropertyKey(i,s)||Pe(t.properties[s],s,i)||(i[s]=P(r,e,t.properties[s],i[s]));return i}function im(r,e,t,n){return o.IsEqual(r,"Decode")?Wu(r,e,t,n):Zu(r,e,t,n)}function Ju(r,e,t,n){if(!o.IsObjectNotArray(n))return n;let i=new RegExp(fr(t));for(let s of o.Keys(n))i.test(s)&&(n[s]=P(r,e,Q(t),n[s]));return R(r,e,t,n)}function Yu(r,e,t,n){let i=R(r,e,t,n);if(!o.IsObjectNotArray(i))return i;let s=new RegExp(fr(t));for(let m of o.Keys(i))s.test(m)&&(i[m]=P(r,e,Q(t),i[m]));return i}function sm(r,e,t,n){return o.IsEqual(r,"Decode")?Ju(r,e,t,n):Yu(r,e,t,n)}function mm(r,e,t,n){return o.HasPropertyKey(e,t.$ref)?P(r,e,e[t.$ref],n):n}function fm(r,e,t,n){return o.IsEqual(r,"Decode")?R(r,e,t,mm(r,e,t,n)):mm(r,e,t,R(r,e,t,n))}function Xu(r,e,t,n){if(!o.IsArray(n))return n;for(let i=0;i<Math.min(t.items.length,n.length);i++)n[i]=P(r,e,t.items[i],n[i]);return R(r,e,t,n)}function Qu(r,e,t,n){let i=R(r,e,t,n);if(!o.IsArray(i))return n;for(let s=0;s<Math.min(t.items.length,i.length);s++)i[s]=P(r,e,t.items[s],i[s]);return i}function am(r,e,t,n){return o.IsEqual(r,"Decode")?Xu(r,e,t,n):Qu(r,e,t,n)}function vu(r,e,t,n){for(let i of t.anyOf){if(!l(e,i,n))continue;let s=P(r,e,i,n);return R(r,e,t,s)}return n}function rd(r,e,t,n){let i=R(r,e,t,n);for(let s of t.anyOf){let m=P(r,e,s,A(i));if(l(e,s,m))return m}return i}function um(r,e,t,n){return o.IsEqual(r,"Decode")?vu(r,e,t,n):rd(r,e,t,n)}function P(r,e,t,n){return j(t)?rm(r,e,t,n):nr(t)?em(r,e,t,n):L(t)?om(r,e,t,n):M(t)?im(r,e,t,n):H(t)?sm(r,e,t,n):D(t)?fm(r,e,t,n):w(t)?am(r,e,t,n):K(t)?um(r,e,t,n):R(r,e,t,n)}var Hn=class extends Sr{constructor(e,t){super("Decode",e,t)}};function ed(r,e,t){if(!l(r,e,t))throw new Hn(t,dr(r,e,t));return t}function td(r,e,t){let n=er.Get().unionPrioritySort?oe(e):e;return P("Decode",r,n,t)}var nd=ie([(r,e,t)=>A(t),(r,e,t)=>Fr(r,e,t),(r,e,t)=>yr(r,e,t),(r,e,t)=>pr(r,e,t),(r,e,t)=>ed(r,e,t),(r,e,t)=>td(r,e,t)]);function dm(...r){let[e,t,n]=S.Match(r,{3:(i,s,m)=>[i,s,m],2:(i,s)=>[{},i,s]});return nd(e,t,n)}var zn=class extends Sr{constructor(e,t){super("Encode",e,t)}};function od(r,e,t){if(!l(r,e,t))throw new zn(t,dr(r,e,t));return t}function id(r,e,t){let n=er.Get().unionPrioritySort?oe(e):e;return P("Encode",r,n,t)}var sd=ie([(r,e,t)=>A(t),(r,e,t)=>id(r,e,t),(r,e,t)=>Fr(r,e,t),(r,e,t)=>yr(r,e,t),(r,e,t)=>pr(r,e,t),(r,e,t)=>od(r,e,t)]);function pm(...r){let[e,t,n]=S.Match(r,{3:(i,s,m)=>[i,s,m],2:(i,s)=>[{},i,s]});return sd(e,t,n)}function md(r,e){return or(e)||Or(r,e.items)}function fd(r,e){return or(e)||cm(E(E({},r),e.$defs),tr(e.$ref))}function ad(r,e){return or(e)||e.allOf.some(t=>Or(r,t))}function ud(r,e){return or(e)||o.Keys(e.properties).some(t=>Or(r,e.properties[t]))}function dd(r,e){return or(e)||Or(r,Q(e))}function cm(r,e){return Vn.has(e.$ref)?!1:(Vn.add(e.$ref),or(e)||o.HasPropertyKey(r,e.$ref)&&Or(r,r[e.$ref]))}function pd(r,e){return or(e)||e.items.some(t=>Or(r,t))}function cd(r,e){return or(e)||e.anyOf.some(t=>Or(r,t))}function Or(r,e){return j(e)?md(r,e):nr(e)?fd(r,e):L(e)?ad(r,e):M(e)?ud(r,e):H(e)?dd(r,e):D(e)?cm(r,e):w(e)?pd(r,e):K(e)?cd(r,e):or(e)}var Vn=new Set;function Im(...r){let[e,t]=S.Match(r,{2:(n,i)=>[n,i],1:n=>[{},n]});return Vn.clear(),Or(e,t)}var mr=class extends Error{constructor(e,t){super(t),this.type=e}};function lm(r,e){return o.IsFunction(e.default)?e.default(e):o.IsObject(e.default)?A(e.default):e.default}function ym(r,e){if(Pr(e)&&!Z(e))throw new mr(e,"Arrays with uniqueItems constraints must specify a default annotation");let t=qr(e)?e.minItems:0;return Array.from({length:t},()=>F(r,e.items))}function xm(r,e){return Er(e)?BigInt(e.exclusiveMinimum)+BigInt(1):hr(e)?BigInt(e.minimum):BigInt(0)}function Em(r,e){return!1}function hm(r,e){let t=F(r,e.instanceType);return class{constructor(){Object.assign(this,t)}}}function gm(r,e){return F(E(E({},r),e.$defs),tr(e.$ref))}function Sm(r,e){return F(r,G(e))}function Cm(r,e){let t=F(r,e.returnType);return()=>t}function Am(r,e){return Er(e)&&o.IsNumber(e.exclusiveMinimum)?e.exclusiveMinimum+1:hr(e)?e.minimum:0}function $m(r,e){let t=cr(r,e),n=G(t);return F(r,n)}function Rm(r,e){return e.const}function Pm(r,e){throw new mr(e,"Cannot create TNever types")}function bm(r,e){return null}function Fm(r,e){return Er(e)&&o.IsNumber(e.exclusiveMinimum)?e.exclusiveMinimum+1:hr(e)?e.minimum:0}function Om(r,e){return(o.IsUndefined(e.required)?[]:e.required).reduce((n,i)=>k(E({},n),{[i]:F(r,e.properties[i])}),{})}function Tm(r,e){if(pe(e)&&!Z(e))throw new mr(e,"Record with the minProperties constraint must have a default annotation");return{}}function Mm(r,e){return o.HasPropertyKey(r,e.$ref)?F(r,r[e.$ref]):(()=>{throw new mr(e,"Unable to deref Ref")})()}function _m(r,e){if((ce(e)||ae(e))&&!Z(e))throw Error("Strings with format or pattern constraints must specify default");let n=de(e)?e.minLength:0;return"".padEnd(n)}function Um(r,e){return Symbol()}function qm(r,e){let t=Be(e.pattern);if(Hr(t))throw new mr(e,"Unable to create TemplateLiteral due to infinite type expansion");return F(r,t)}function Gm(r,e){return Array.from({length:e.minItems},(t,n)=>F(r,e.items[n]))}function Nm(r,e){if(o.IsEqual(e.anyOf.length,0))throw Error("Unable to create Union with no variants");return F(r,e.anyOf[0])}function F(r,e){return Z(e)?lm(r,e):j(e)?ym(r,e):Me(e)?xm(r,e):_e(e)?Em(r,e):be(e)?hm(r,e):nr(e)?gm(r,e):Lr(e)?Sm(r,e):Fe(e)?Cm(r,e):Ue(e)?Am(r,e):L(e)?$m(r,e):Kr(e)?Rm(r,e):Oe(e)?Pm(r,e):Ge(e)?bm(r,e):Ne(e)?Fm(r,e):M(e)?Om(r,e):H(e)?Tm(r,e):D(e)?Mm(r,e):Hr(e)?_m(r,e):oo(e)?Um(r,e):Wr(e)?qm(r,e):w(e)?Gm(r,e):Vr(e)?void 0:K(e)?Nm(r,e):ke(e)?void 0:void 0}function q(...r){let[e,t]=S.Match(r,{2:(n,i)=>[n,i],1:n=>[{},n]});return F(e,t)}function Ut(r,e){return o.IsDeepEqual(r,e)}function qt(r){return Tr.Hash(r)}var Gt=class extends Sr{constructor(e,t){super("Parse",e,t)}};function Id(r,e,t){Ft();let n=dr(r,e,t);if(Ot(),!l(r,e,t))throw new Gt(t,n);return t}var ld=ie([(r,e,t)=>A(t),(r,e,t)=>Fr(r,e,t),(r,e,t)=>yr(r,e,t),(r,e,t)=>pr(r,e,t),(r,e,t)=>Id(r,e,t)]);function Bm(...r){let[e,t,n]=S.Match(r,{3:(m,f,a)=>[m,f,a],2:(m,f)=>[{},m,f]});if(l(e,t,n))return n;if(er.Get().correctiveParse)return ld(e,t,n);Ft();let s=dr(e,t,n);throw Ot(),new Gt(n,s)}function Nt(r,e){return{type:"update",path:r,value:e}}function jm(r,e){return{type:"insert",path:r,value:e}}function Dm(r){return{type:"delete",path:r}}function km(r){if(!(o.IsObject(r)&&o.IsEqual(o.Symbols(r).length,0)))throw new Error("Cannot create diffs for objects with symbols keys")}function*yd(r,e,t){if(!o.IsObject(t)||o.IsArray(t))return yield Nt(r,t);km(e),km(t);let n=o.Keys(e),i=o.Keys(t);for(let s of i)o.HasPropertyKey(e,s)||o.IsUnsafePropertyKey(s)||(yield jm(`${r}/${s}`,t[s]));for(let s of n)o.HasPropertyKey(t,s)&&(o.IsUnsafePropertyKey(s)||Ut(e,t)||(yield*Ar(Bt(`${r}/${s}`,e[s],t[s]))));for(let s of n)o.HasPropertyKey(t,s)||o.IsUnsafePropertyKey(s)||(yield Dm(`${r}/${s}`))}function*xd(r,e,t){if(!o.IsArray(t))return yield Nt(r,t);for(let n=0;n<Math.min(e.length,t.length);n++)yield*Ar(Bt(`${r}/${n}`,e[n],t[n]));for(let n=0;n<t.length;n++)n<e.length||(yield jm(`${r}/${n}`,t[n]));for(let n=e.length-1;n>=0;n--)n<t.length||(yield Dm(`${r}/${n}`))}function*Ed(r,e,t){let n=globalThis.Object.getPrototypeOf(e).constructor.name,i=globalThis.Object.getPrototypeOf(t).constructor.name;if(X.IsTypeArray(t)&&o.IsEqual(e.length,t.length)&&o.IsEqual(n,i))for(let m=0;m<Math.min(e.length,t.length);m++)yield*Ar(Bt(`${r}/${m}`,e[m],t[m]));else return yield Nt(r,t)}function*hd(r,e,t){e!==t&&(yield Nt(r,t))}function*Bt(r,e,t){return X.IsTypeArray(e)?yield*Ar(Ed(r,e,t)):o.IsArray(e)?yield*Ar(xd(r,e,t)):o.IsObject(e)?yield*Ar(yd(r,e,t)):yield*Ar(hd(r,e,t))}function Lm(r,e){return[...Bt("",r,e)]}var gd=fe({type:qe("insert"),path:wr(),value:Kt()}),Sd=Object({type:qe("update"),path:wr(),value:Kt()}),Cd=fe({type:qe("delete"),path:wr()}),KO=zr([gd,Sd,Cd]);function Ad(r){return r.length>0&&r[0].path===""&&r[0].type==="update"}function $d(r){return r.length===0}function Km(r,e){if(Ad(e))return A(e[0].value);if($d(e))return A(r);let t=A(r);for(let n of e)switch(n.type){case"insert":{lr.Set(t,n.path,n.value);break}case"update":{lr.Set(t,n.path,n.value);break}case"delete":{lr.Delete(t,n.path);break}}return t}var Cr=class extends Error{constructor(e,t,n,i){super(i),this.context=e,this.type=t,this.value=n}};function Rd(r){let[e,t]=[new Set,[]];for(let n of r){let i=qt(n);e.has(i)||(e.add(i),t.push(n))}return t}function wm(r,e,t){if(l(r,e,t))return t;let n=o.IsArray(t)?t:q(r,e),i=qr(e)&&n.length<e.minItems?[...n,...Array.from({length:e.minItems-n.length},()=>q(r,e))]:n,m=(ue(e)&&i.length>e.maxItems?i.slice(0,e.maxItems):i).map(a=>T(r,e.items,a));if(!Pr(e)||Pr(e)&&!o.IsEqual(e.uniqueItems,!0))return m;let f=Rd(m);if(!l(r,e,f))throw new Cr(r,e,t,"Failed to repair Array due to uniqueItems constraint");return f}function Hm(r,e,t){return T(r,G(e),t)}function zm(r,e,t){let n=cr(r,e),i=G(n);return T(r,i,t)}function Vm(r,e,t){if(l(r,e,t))return t;if(!o.IsObjectNotArray(t))return q(r,e);let n=new Set(o.IsUndefined(e.required)?[]:e.required),i={};for(let[m,f]of o.Entries(e.properties))!n.has(m)&&o.IsUndefined(t[m])||(i[m]=m in t?T(r,f,t[m]):q(r,f));let s=o.Keys(e.properties);if(ir(e)&&o.IsObject(e.additionalProperties))for(let m of o.Keys(t))s.includes(m)||(i[m]=T(r,e.additionalProperties,t[m]));return i}function Wm(r,e,t){if(l(r,e,t))return t;if(o.IsNull(t)||!o.IsObject(t)||o.IsArray(t))return q(r,e);let n=new RegExp(fr(e)),i=Q(e),s=new Set,m={};for(let[f,a]of o.Entries(t))n.test(f)&&(m[f]=T(r,i,a),s.add(f));if(ir(e))for(let f of o.Keys(t))s.has(f)||(m[f]=T(r,e.additionalProperties,t[f]));return m}function Zm(r,e,t){return o.HasPropertyKey(r,e.$ref)?T(r,r[e.$ref],t):(()=>{throw new Cr(r,e,t,"Unable to de-reference target type")})()}function Jm(r,e,t){let n=Be(e.pattern);return T(r,n,t)}function Ym(r,e,t){return l(r,e,t)?t:o.IsArray(t)?e.items.map((n,i)=>T(r,n,t[i])):q(r,e)}function Xm(r,e,t){return D(e)?o.HasPropertyKey(r,e.$ref)?Xm(r,r[e.$ref],t):(()=>{throw new Error("Unable to Deref target")})():e}function Pd(r,e,t){if(!(M(e)&&o.IsObject(t)))return 0;let n=o.Keys(t);return o.Entries(e.properties).reduce((s,[m,f])=>{let a=Kr(f)&&o.IsEqual(f.const,t[m])?100:0,u=l(r,f,t[m])?10:0,p=n.includes(m)?1:0;return s+(a+u+p)},0)}function Qm(r,e,t){let n=e.anyOf.map(m=>Xm(r,m,t)),[i,s]=[n[0],0];for(let m of n){let f=Pd(r,m,t);f>s&&(i=m,s=f)}return i}function bd(r,e,t){let n=zr(so(e.anyOf)),i=Qm(r,n,t);return T(r,i,t)}function vm(r,e,t){return l(r,e,t)?A(t):Z(e)?q(r,e):bd(r,e,t)}function rf(r,e,t){if(l(r,e,t))return t;let n=yr(r,e,t);return l(r,e,n)?n:q(r,e)}function Fd(r,e,t){if(X.IsDate(t)||X.IsMap(t)||X.IsSet(t)||X.IsTypeArray(t)||o.IsConstructor(t)||o.IsFunction(t))throw new Cr(r,e,t,"Value is not repairable")}function Od(r,e,t){if(be(e)||Fe(e)||Oe(e))throw new Cr(r,e,t,"Type is not repairable")}function Td(r,e,t){return o.IsUndefined(t)&&!Vr(e)?q(r,e):t}function Md(r,e,t){return vn(e)?l(r,e,t)?t:q(r,e):t}function T(r,e,t){Fd(r,e,t),Od(r,e,t);let n=Td(r,e,t),i=j(e)?wm(r,e,n):Lr(e)?Hm(r,e,n):L(e)?zm(r,e,n):M(e)?Vm(r,e,n):H(e)?Wm(r,e,n):D(e)?Zm(r,e,n):Wr(e)?Jm(r,e,n):w(e)?Ym(r,e,n):K(e)?vm(r,e,n):rf(r,e,n);return Md(r,e,i)}function ef(...r){let[e,t,n]=S.Match(r,{3:(s,m,f)=>[s,m,f],2:(s,m)=>[{},s,m]}),i=T(e,t,n);return Tt(e,t,i),i}var kt={};se(kt,{Assert:()=>Tt,Check:()=>l,Clean:()=>pr,Clone:()=>A,Convert:()=>yr,Create:()=>q,Decode:()=>dm,Default:()=>Fr,Diff:()=>Lm,Encode:()=>pm,Equal:()=>Ut,Errors:()=>dr,HasCodec:()=>Im,Hash:()=>qt,Parse:()=>Bm,Patch:()=>Km,Pointer:()=>lr,Repair:()=>ef});var KM=kt;export{lr as a,l as b,dr as c,Sr as d,Tt as e,A as f,oe as g,pr as h,Pe as i,yr as j,Fr as k,ie as l,Hn as m,td as n,dm as o,zn as p,id as q,pm as r,Im as s,mr as t,q as u,Ut as v,qt as w,Gt as x,ld as y,Bm as z,Lm as A,gd as B,Sd as C,Cd as D,KO as E,Km as F,Qm as G,ef as H,kt as I,KM as J};
@@ -1,4 +1,4 @@
1
- import{C as _t,K as Kr,b as Wr,d as Yr,ea as Xr,n as Gr,qa as Zr}from"./chunk-2QKJQDG4.js";import{$a as Et,Cb as Tr,Cc as We,Ec as Ur,Gc as $r,Ja as Er,Jb as re,Ka as yt,Kb as _r,Lb as Jt,Mb as Sr,Oa as N,Ob as Br,Pb as Ir,Qb as zr,Rb as Lr,Sb as en,T as Fr,Ta as wr,Tb as Mr,U as bt,Ub as tn,Vb as vr,Wa as Ar,X as ze,Xb as lt,Yb as ve,Zb as $e,_a as it,_b as Pr,ab as wt,eb as At,ec as Rr,fc as Nr,ga as Cr,gc as Or,hc as nn,ic as Hr,lc as jr,nb as Le,oa as br,ob as Me,pb as ot,pc as qr,qc as Vr,ra as yr,rb as ut,sb as at,tb as I,tc as Qr,ub as se,vb as ce,wb as Q,wc as Tt}from"./chunk-R6ABX6RX.js";import{a as E,b as be,d as Oo,e as Ho,f as jo}from"./chunk-BZGM3F3K.js";var li=Oo((sc,ai)=>{"use strict";var St=Object.prototype.hasOwnProperty,ui=Object.prototype.toString,ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ni=function(n){return typeof Array.isArray=="function"?Array.isArray(n):ui.call(n)==="[object Array]"},ri=function(n){if(!n||ui.call(n)!=="[object Object]")return!1;var t=St.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&St.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||St.call(n,i)},ii=function(n,t){ei&&t.name==="__proto__"?ei(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},oi=function(n,t){if(t==="__proto__")if(St.call(n,t)){if(ti)return ti(n,t).value}else return;return n[t]};ai.exports=function e(){var n,t,r,i,u,o,a=arguments[0],l=1,s=arguments.length,m=!1;for(typeof a=="boolean"&&(m=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<s;++l)if(n=arguments[l],n!=null)for(t in n)r=oi(a,t),i=oi(n,t),a!==i&&(m&&i&&(ri(i)||(u=ni(i)))?(u?(u=!1,o=r&&ni(r)?r:[]):o=r&&ri(r)?r:{},ii(a,{name:t,newValue:e(m,o,i)})):typeof i<"u"&&ii(a,{name:t,newValue:i}));return a}});var qo=["*",[["mat-toolbar-row"]]],Vo=["*","mat-toolbar-row"],Qo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=wt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),Ks=(()=>{class e{_elementRef=ze(yr);_platform=ze(Gr);_document=ze(Cr);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=it({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,i,u){if(r&1&&Sr(u,Qo,5),r&2){let o;Br(o=Ir())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,i){r&2&&(lt(i.color?"mat-"+i.color:""),vr("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Vo,decls:2,vars:0,template:function(r,i){r&1&&(_r(qo),Jt(0),Jt(1,1))},styles:[`.mat-toolbar {
1
+ import{C as _t,K as Kr,b as Wr,d as Yr,ea as Xr,n as Gr,qa as Zr}from"./chunk-XXJX5CGO.js";import{$b as $e,Eb as Tr,Ec as We,Gc as Ur,Ic as $r,La as Er,Lb as re,Ma as yt,Mb as _r,Nb as Jt,Ob as Sr,Qa as N,Qb as Br,Rb as Ir,Sb as zr,Tb as Lr,Ub as en,V as Fr,Va as wr,Vb as Mr,W as bt,Wb as tn,Xb as vr,Ya as Ar,Z as ze,Zb as lt,_b as ve,ab as it,ac as Pr,bb as Et,cb as wt,gb as At,gc as Rr,hc as Nr,ia as Cr,ic as Or,jc as nn,kc as Hr,nc as jr,pb as Le,qa as br,qb as Me,rb as ot,rc as qr,sc as Vr,ta as yr,tb as ut,ub as at,vb as I,vc as Qr,wb as se,xb as ce,yb as Q,yc as Tt}from"./chunk-XDKT43CW.js";import{a as E,b as be,d as Oo,e as Ho,f as jo}from"./chunk-BZGM3F3K.js";var li=Oo((sc,ai)=>{"use strict";var St=Object.prototype.hasOwnProperty,ui=Object.prototype.toString,ei=Object.defineProperty,ti=Object.getOwnPropertyDescriptor,ni=function(n){return typeof Array.isArray=="function"?Array.isArray(n):ui.call(n)==="[object Array]"},ri=function(n){if(!n||ui.call(n)!=="[object Object]")return!1;var t=St.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&St.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||St.call(n,i)},ii=function(n,t){ei&&t.name==="__proto__"?ei(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},oi=function(n,t){if(t==="__proto__")if(St.call(n,t)){if(ti)return ti(n,t).value}else return;return n[t]};ai.exports=function e(){var n,t,r,i,u,o,a=arguments[0],l=1,s=arguments.length,m=!1;for(typeof a=="boolean"&&(m=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l<s;++l)if(n=arguments[l],n!=null)for(t in n)r=oi(a,t),i=oi(n,t),a!==i&&(m&&i&&(ri(i)||(u=ni(i)))?(u?(u=!1,o=r&&ni(r)?r:[]):o=r&&ri(r)?r:{},ii(a,{name:t,newValue:e(m,o,i)})):typeof i<"u"&&ii(a,{name:t,newValue:i}));return a}});var qo=["*",[["mat-toolbar-row"]]],Vo=["*","mat-toolbar-row"],Qo=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275dir=wt({type:e,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return e})(),Ks=(()=>{class e{_elementRef=ze(yr);_platform=ze(Gr);_document=ze(Cr);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=it({type:e,selectors:[["mat-toolbar"]],contentQueries:function(r,i,u){if(r&1&&Sr(u,Qo,5),r&2){let o;Br(o=Ir())&&(i._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(r,i){r&2&&(lt(i.color?"mat-"+i.color:""),vr("mat-toolbar-multiple-rows",i._toolbarRows.length>0)("mat-toolbar-single-row",i._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Vo,decls:2,vars:0,template:function(r,i){r&1&&(_r(qo),Jt(0),Jt(1,1))},styles:[`.mat-toolbar {
2
2
  background: var(--mat-toolbar-container-background-color, var(--mat-sys-surface));
3
3
  color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));
4
4
  }
@@ -1,4 +1,4 @@
1
- import{a as Ga}from"./chunk-GJZ7P5CR.js";import{a as ja,b as qa}from"./chunk-RENDTMDT.js";import{a as Ka}from"./chunk-DN6IX7CO.js";import{b as Ra,d as Pa,f as La,g as Ct,h as $e,i as Na,j as Xe,k as Ya,l as Ba,m as Ha,n as za,o as Wa}from"./chunk-DC5AFSD6.js";import{$ as da,$a as Qe,C as ye,Ca as ba,Da as ft,Fa as ya,G as na,Ia as va,Ja as Da,K as Ke,Ka as Ca,La as wa,M as ne,N as ht,Na as Ma,Oa as ka,S as ut,T as ia,Ta as Aa,U as T,V as ra,Va as Ge,W as je,Wa as bt,X as sa,Xa as Sa,Ya as Oe,Z as oa,_ as la,aa as ca,ab as xa,ba as pa,bb as Ea,ca as _t,cb as Ia,da as gt,db as Ue,ea as qe,fb as yt,gb as Va,hb as vt,ia as ma,ja as ve,jb as Ta,mb as Dt,n as ta,oa as ha,pa as ua,pb as Oa,qa as _a,rb as Fa,t as mt,u as aa,v as he,va as ga,xa as Te,y as ue,ya as fa}from"./chunk-2QKJQDG4.js";import{$a as ce,$b as ct,D as Ye,Db as Z,Eb as J,Hb as g,Ib as Zt,Jb as h,Jc as V,Kb as me,Lb as ee,M as oe,Mb as Be,Mc as M,N as it,Nb as B,Nc as pt,O as _e,Oa as l,Ob as v,Pb as D,S as rt,Sa as lt,T as ge,Tb as He,U as le,Ub as ze,V as E,Va as Ee,Vb as I,W as jt,X as o,Xa as Qt,Xb as be,Ya as Ut,Yb as m,Zb as x,_a as k,_b as ae,a as W,ab as pe,ba as b,bc as K,ca as y,cc as j,d as S,da as de,db as dt,dc as q,ea as st,eb as Ie,fa as fe,ga as qt,gb as $t,ia as p,ic as G,ja as ot,jc as Jt,l as Ne,la as _,mb as C,nb as R,oa as Q,ob as P,p as nt,pa as Gt,qb as Ve,ra as U,rb as $,s as Kt,sb as X,tb as u,ub as d,uc as ea,vb as c,w as te,wb as w,x as xe,xb as N,yb as Y,zb as Xt,zc as We}from"./chunk-R6ABX6RX.js";import{a as zt,b as Wt}from"./chunk-BZGM3F3K.js";var yn=["text"],vn=[[["mat-icon"]],"*"],Dn=["mat-icon","*"];function Cn(i,s){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=h();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wn(i,s){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=h();u("disabled",e.disabled)}}function Mn(i,s){if(i&1&&(d(0,"span",4),m(1),c()),i&2){let e=h();l(),ae("(",e.group.label,")")}}var Mt=new E("MAT_OPTION_PARENT_COMPONENT"),kt=new E("MatOptgroup");var wt=class{source;isUserInput;constructor(s,e=!1){this.source=s,this.isUserInput=e}},De=(()=>{class i{_element=o(U);_changeDetectorRef=o(V);_parent=o(Mt,{optional:!0});group=o(kt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=o(ne).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=_(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new S;constructor(){let e=o(he);e.load(Ge),e.load(ve),this._signalDisableRipple=!!this._parent&&$t(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!T(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new wt(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&B(yn,7),t&2){let n;v(n=D())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(J("id",a.id),C("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),I("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",M]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Dn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(me(vn),R(0,Cn,1,2,"mat-pseudo-checkbox",1),ee(1),d(2,"span",2,0),ee(4,1),c(),R(5,wn,1,1,"mat-pseudo-checkbox",3),R(6,Mn,2,1,"span",4),w(7,"div",5)),t&2&&(P(a.multiple?0:-1),l(5),P(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),P(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[ja,Aa],styles:[`.mat-mdc-option {
1
+ import{a as Ga}from"./chunk-4LLIVPOH.js";import{a as ja,b as qa}from"./chunk-G5EXGCP4.js";import{a as Ka}from"./chunk-2JAD5V57.js";import{b as Ra,d as Pa,f as La,g as Ct,h as $e,i as Na,j as Xe,k as Ya,l as Ba,m as Ha,n as za,o as Wa}from"./chunk-THOUUI2P.js";import{$ as da,$a as Qe,C as ye,Ca as ba,Da as ft,Fa as ya,G as na,Ia as va,Ja as Da,K as Ke,Ka as Ca,La as wa,M as ne,N as ht,Na as Ma,Oa as ka,S as ut,T as ia,Ta as Aa,U as T,V as ra,Va as Ge,W as je,Wa as bt,X as sa,Xa as Sa,Ya as Oe,Z as oa,_ as la,aa as ca,ab as xa,ba as pa,bb as Ea,ca as _t,cb as Ia,da as gt,db as Ue,ea as qe,fb as yt,gb as Va,ia as ma,ja as ve,jb as vt,lb as Ta,n as ta,oa as ha,pa as ua,pb as Dt,qa as _a,sb as Oa,t as mt,u as aa,ub as Fa,v as he,va as ga,xa as Te,y as ue,ya as fa}from"./chunk-XXJX5CGO.js";import{$b as x,Ab as Y,Bb as Xt,Bc as We,F as Ye,Fb as Z,Gb as J,Jb as g,Kb as Zt,Lb as h,Lc as V,Mb as me,Nb as ee,O as oe,Ob as Be,Oc as M,P as it,Pb as B,Pc as pt,Q as _e,Qa as l,Qb as v,Rb as D,U as rt,Ua as lt,V as ge,Vb as He,W as le,Wb as ze,X as E,Xa as Ee,Xb as I,Y as jt,Z as o,Za as Qt,Zb as be,_a as Ut,_b as m,a as W,ab as k,ac as ae,bb as ce,bc as ct,cb as pe,d as S,da as b,dc as K,ea as y,ec as j,fa as de,fb as dt,fc as q,ga as st,gb as Ie,ha as fe,ia as qt,ib as $t,ka as p,kc as G,l as Ne,la as ot,lc as Jt,na as _,ob as C,pb as R,qa as Q,qb as P,r as nt,ra as Gt,sb as Ve,ta as U,tb as $,u as Kt,ub as X,vb as u,wb as d,wc as ea,xb as c,y as te,yb as w,z as xe,zb as N}from"./chunk-XDKT43CW.js";import{a as zt,b as Wt}from"./chunk-BZGM3F3K.js";var yn=["text"],vn=[[["mat-icon"]],"*"],Dn=["mat-icon","*"];function Cn(i,s){if(i&1&&w(0,"mat-pseudo-checkbox",1),i&2){let e=h();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function wn(i,s){if(i&1&&w(0,"mat-pseudo-checkbox",3),i&2){let e=h();u("disabled",e.disabled)}}function Mn(i,s){if(i&1&&(d(0,"span",4),m(1),c()),i&2){let e=h();l(),ae("(",e.group.label,")")}}var Mt=new E("MAT_OPTION_PARENT_COMPONENT"),kt=new E("MatOptgroup");var wt=class{source;isUserInput;constructor(s,e=!1){this.source=s,this.isUserInput=e}},De=(()=>{class i{_element=o(U);_changeDetectorRef=o(V);_parent=o(Mt,{optional:!0});group=o(kt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=o(ne).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=_(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new S;constructor(){let e=o(he);e.load(Ge),e.load(ve),this._signalDisableRipple=!!this._parent&&$t(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!T(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new wt(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&B(yn,7),t&2){let n;v(n=D())&&(a._text=n.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(J("id",a.id),C("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),I("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",M]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Dn,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(me(vn),R(0,Cn,1,2,"mat-pseudo-checkbox",1),ee(1),d(2,"span",2,0),ee(4,1),c(),R(5,wn,1,1,"mat-pseudo-checkbox",3),R(6,Mn,2,1,"span",4),w(7,"div",5)),t&2&&(P(a.multiple?0:-1),l(5),P(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),P(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[ja,Aa],styles:[`.mat-mdc-option {
2
2
  -webkit-user-select: none;
3
3
  user-select: none;
4
4
  -moz-osx-font-smoothing: grayscale;
@@ -1 +1 @@
1
- import{a as e}from"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";var t=e.Refine(e.Object({enabled:e.Optional(e.Boolean()),auto:e.Optional(e.Boolean())}),o=>o.enabled!==void 0||o.auto!==void 0,()=>"must set enabled, auto or both");export{t as SetParams};
1
+ import{a as e}from"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";var t=e.Refine(e.Object({enabled:e.Optional(e.Boolean()),auto:e.Optional(e.Boolean())}),o=>o.enabled!==void 0||o.auto!==void 0,()=>"must set enabled, auto or both");export{t as SetParams};
@@ -1,4 +1,4 @@
1
- import{C as Z,M as D,Pa as re,b as Ie,db as He,fb as Be,hb as qe,la as Pe,mb as Ve,n as L,ua as z,v as ke,x as oe,xa as Ne,y as Oe}from"./chunk-2QKJQDG4.js";import{$a as R,Dc as B,Eb as N,Fc as De,Hb as H,I as _e,Jb as F,Jc as ze,K as be,Kb as J,Lb as g,M as xe,Mb as Me,Mc as ne,Nb as ee,O as j,Oa as d,Ob as s,Oc as Ae,Pb as c,Qb as Se,Rb as Ee,Sb as te,T as S,Tb as ie,U as E,Ua as ye,V as b,Va as I,Vb as y,X as r,Yb as Re,Zb as Te,_a as k,a as me,ab as _,b as fe,d as v,eb as Q,gb as Ce,ic as w,j as ue,ja as x,la as ge,mb as O,na as W,nb as m,oa as ve,ob as f,p as he,ra as C,tb as T,tc as Le,ub as u,vb as h,w as pe,wb as P,wc as U,x as V,xb as Fe,yb as we,zb as K}from"./chunk-R6ABX6RX.js";var ae=class{_box;_destroyed=new v;_resizeSubject=new v;_resizeObserver;_elementObservables=new Map;constructor(l){this._box=l,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(l){return this._elementObservables.has(l)||this._elementObservables.set(l,new fe(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(l,{box:this._box}),()=>{this._resizeObserver?.unobserve(l),t.unsubscribe(),this._elementObservables.delete(l)}}).pipe(V(e=>e.some(t=>t.target===l)),be({bufferSize:1,refCount:!0}),j(this._destroyed))),this._elementObservables.get(l)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},je=(()=>{class i{_cleanupErrorListener;_observers=new Map;_ngZone=r(x);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new ae(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _t=["notch"],bt=["matFormFieldNotchedOutline",""],xt=["*"],We=["iconPrefixContainer"],Qe=["textPrefixContainer"],Ue=["iconSuffixContainer"],Ze=["textSuffixContainer"],gt=["textField"],vt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],yt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Ct(i,l){i&1&&P(0,"span",21)}function Ft(i,l){if(i&1&&(u(0,"label",20),g(1,1),m(2,Ct,1,0,"span",21),h()),i&2){let e=F(2);T("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),O("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),f(!e.hideRequiredMarker&&e._control.required?2:-1)}}function wt(i,l){if(i&1&&m(0,Ft,3,5,"label",20),i&2){let e=F();f(e._hasFloatingLabel()?0:-1)}}function Mt(i,l){i&1&&P(0,"div",7)}function St(i,l){}function Et(i,l){if(i&1&&Q(0,St,0,0,"ng-template",13),i&2){F(2);let e=ie(1);T("ngTemplateOutlet",e)}}function Rt(i,l){if(i&1&&(u(0,"div",9),m(1,Et,1,1,null,13),h()),i&2){let e=F();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),f(e._forceDisplayInfixLabel()?-1:1)}}function Tt(i,l){i&1&&(u(0,"div",10,2),g(2,2),h())}function Lt(i,l){i&1&&(u(0,"div",11,3),g(2,3),h())}function Dt(i,l){}function zt(i,l){if(i&1&&Q(0,Dt,0,0,"ng-template",13),i&2){F();let e=ie(1);T("ngTemplateOutlet",e)}}function At(i,l){i&1&&(u(0,"div",14,4),g(2,4),h())}function It(i,l){i&1&&(u(0,"div",15,5),g(2,5),h())}function kt(i,l){i&1&&P(0,"div",16)}function Ot(i,l){i&1&&(u(0,"div",18),g(1,6),h())}function Pt(i,l){if(i&1&&(u(0,"mat-hint",22),Re(1),h()),i&2){let e=F(2);T("id",e._hintLabelId),d(),Te(e.hintLabel)}}function Nt(i,l){if(i&1&&(u(0,"div",19),m(1,Pt,2,2,"mat-hint",22),g(2,7),P(3,"div",23),g(4,8),h()),i&2){let e=F();d(),f(e.hintLabel?1:-1)}}var $=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["mat-label"]]})}return i})(),et=new b("MatError"),tt=(()=>{class i{id=r(D).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,n){t&2&&N("id",n.id)},inputs:{id:"id"},features:[w([{provide:et,useExisting:i}])]})}return i})(),Y=(()=>{class i{align="start";id=r(D).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(N("id",n.id),O("align",null),y("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return i})(),it=new b("MatPrefix"),nt=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[w([{provide:it,useExisting:i}])]})}return i})(),ot=new b("MatSuffix"),rt=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[w([{provide:ot,useExisting:i}])]})}return i})(),at=new b("FloatingLabelParent"),Ge=(()=>{class i{_elementRef=r(C);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=r(je);_ngZone=r(x);_parent=r(at);_resizeSubscription=new me;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Ht(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&y("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();function Ht(i){let l=i;if(l.offsetParent!==null)return l.scrollWidth;let e=l.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var $e="mdc-line-ripple--active",G="mdc-line-ripple--deactivating",Ye=(()=>{class i{_elementRef=r(C);_cleanupTransitionEnd;constructor(){let e=r(x),t=r(I);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(G),e.add($e)}deactivate(){this._elementRef.nativeElement.classList.add(G)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(G);e.propertyName==="opacity"&&n&&t.remove($e,G)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),Xe=(()=>{class i{_elementRef=r(C);_ngZone=r(x);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&ee(_t,5),t&2){let o;s(o=c())&&(n._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&y("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:bt,ngContentSelectors:xt,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(J(),K(0,"div",1),Fe(1,"div",2,0),g(3),we(),K(4,"div",3))},encapsulation:2,changeDetection:0})}return i})(),le=(()=>{class i{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i})}return i})();var de=new b("MatFormField"),Bt=new b("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ke="fill",qt="auto",Je="fixed",Vt="translateY(-50%)",se=(()=>{class i{_elementRef=r(C);_changeDetectorRef=r(ze);_platform=r(L);_idGenerator=r(D);_ngZone=r(x);_defaults=r(Bt,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=B("iconPrefixContainer");_textPrefixContainerSignal=B("textPrefixContainer");_iconSuffixContainerSignal=B("iconSuffixContainer");_textSuffixContainerSignal=B("textSuffixContainer");_prefixSuffixContainers=U(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=De($);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=z(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||qt}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Ke;this._appearanceSignal.set(t)}_appearanceSignal=ge(Ke);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Je}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Je}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new v;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ne();constructor(){let e=this._defaults,t=r(Oe);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),W(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=U(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(xe([void 0,void 0]),he(()=>[t.errorState,t.userAriaDescribedBy]),_e(),V(([[o,a],[p,A]])=>o!==p||a!==A)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(j(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),pe(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){Ae({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=U(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let o=this._hintChildren?this._hintChildren.find(p=>p.align==="start"):null,a=this._hintChildren?this._hintChildren.find(p=>p.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let t=this._control.describedByIds,n;if(t){let o=this._describedByIds||e;n=e.concat(t.filter(a=>a&&!o.includes(a)))}else n=e;this._control.setDescribedByIds(n),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,p=t?.getBoundingClientRect().width??0,A=n?.getBoundingClientRect().width??0,M=o?.getBoundingClientRect().width??0,mt=this._currentDirection==="rtl"?"-1":"1",ft=`${a+p}px`,ut=`calc(${mt} * (${ft} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,ht=`var(--mat-mdc-form-field-label-transform, ${Vt} translateX(${ut}))`,pt=a+p+A+M;return[ht,pt]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,n]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),n!==null&&this._notchedOutline?._setMaxWidth(n)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,o){if(t&1&&(Se(o,n._labelChild,$,5),Me(o,le,5)(o,it,5)(o,ot,5)(o,et,5)(o,Y,5)),t&2){te();let a;s(a=c())&&(n._formFieldControl=a.first),s(a=c())&&(n._prefixChildren=a),s(a=c())&&(n._suffixChildren=a),s(a=c())&&(n._errorChildren=a),s(a=c())&&(n._hintChildren=a)}},viewQuery:function(t,n){if(t&1&&(Ee(n._iconPrefixContainerSignal,We,5)(n._textPrefixContainerSignal,Qe,5)(n._iconSuffixContainerSignal,Ue,5)(n._textSuffixContainerSignal,Ze,5),ee(gt,5)(We,5)(Qe,5)(Ue,5)(Ze,5)(Ge,5)(Xe,5)(Ye,5)),t&2){te(4);let o;s(o=c())&&(n._textField=o.first),s(o=c())&&(n._iconPrefixContainer=o.first),s(o=c())&&(n._textPrefixContainer=o.first),s(o=c())&&(n._iconSuffixContainer=o.first),s(o=c())&&(n._textSuffixContainer=o.first),s(o=c())&&(n._floatingLabel=o.first),s(o=c())&&(n._notchedOutline=o.first),s(o=c())&&(n._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,n){t&2&&y("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[w([{provide:de,useExisting:i},{provide:at,useExisting:i}])],ngContentSelectors:yt,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1&&(J(vt),Q(0,wt,1,1,"ng-template",null,0,Le),u(2,"div",6,1),H("click",function(a){return n._control.onContainerClick(a)}),m(4,Mt,1,0,"div",7),u(5,"div",8),m(6,Rt,2,2,"div",9),m(7,Tt,3,0,"div",10),m(8,Lt,3,0,"div",11),u(9,"div",12),m(10,zt,1,1,null,13),g(11),h(),m(12,At,3,0,"div",14),m(13,It,3,0,"div",15),h(),m(14,kt,1,0,"div",16),h(),u(15,"div",17),m(16,Ot,2,0,"div",18)(17,Nt,5,1,"div",19),h()),t&2){let o;d(2),y("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),f(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),f(n._hasOutline()?6:-1),d(),f(n._hasIconPrefix?7:-1),d(),f(n._hasTextPrefix?8:-1),d(2),f(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),f(n._hasTextSuffix?12:-1),d(),f(n._hasIconSuffix?13:-1),d(),f(n._hasOutline()?-1:14),d(),y("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic");let a=n._getSubscriptMessageType();d(),f((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[Ge,Xe,Ie,Ye,Y],styles:[`.mdc-text-field {
1
+ import{C as Z,M as D,Pa as re,b as Ie,db as He,fb as Be,jb as qe,la as Pe,n as L,pb as Ve,ua as z,v as ke,x as oe,xa as Ne,y as Oe}from"./chunk-XXJX5CGO.js";import{$b as Te,Ab as we,Bb as K,Fc as B,Gb as N,Hc as De,Jb as H,K as _e,Lb as F,Lc as ze,M as be,Mb as J,Nb as g,O as xe,Ob as Me,Oc as ne,Pb as ee,Q as j,Qa as d,Qb as s,Qc as Ae,Rb as c,Sb as Se,Tb as Ee,Ub as te,V as S,Vb as ie,W as E,Wa as ye,X as b,Xa as I,Xb as y,Z as r,_b as Re,a as me,ab as k,b as fe,bb as R,cb as _,d as v,gb as Q,ib as Ce,j as ue,kc as w,la as x,na as ge,ob as O,pa as W,pb as m,qa as ve,qb as f,r as he,ta as C,vb as T,vc as Le,wb as u,xb as h,y as pe,yb as P,yc as U,z as V,zb as Fe}from"./chunk-XDKT43CW.js";var ae=class{_box;_destroyed=new v;_resizeSubject=new v;_resizeObserver;_elementObservables=new Map;constructor(l){this._box=l,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(l){return this._elementObservables.has(l)||this._elementObservables.set(l,new fe(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(l,{box:this._box}),()=>{this._resizeObserver?.unobserve(l),t.unsubscribe(),this._elementObservables.delete(l)}}).pipe(V(e=>e.some(t=>t.target===l)),be({bufferSize:1,refCount:!0}),j(this._destroyed))),this._elementObservables.get(l)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},je=(()=>{class i{_cleanupErrorListener;_observers=new Map;_ngZone=r(x);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new ae(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=S({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var _t=["notch"],bt=["matFormFieldNotchedOutline",""],xt=["*"],We=["iconPrefixContainer"],Qe=["textPrefixContainer"],Ue=["iconSuffixContainer"],Ze=["textSuffixContainer"],gt=["textField"],vt=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],yt=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Ct(i,l){i&1&&P(0,"span",21)}function Ft(i,l){if(i&1&&(u(0,"label",20),g(1,1),m(2,Ct,1,0,"span",21),h()),i&2){let e=F(2);T("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),O("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),f(!e.hideRequiredMarker&&e._control.required?2:-1)}}function wt(i,l){if(i&1&&m(0,Ft,3,5,"label",20),i&2){let e=F();f(e._hasFloatingLabel()?0:-1)}}function Mt(i,l){i&1&&P(0,"div",7)}function St(i,l){}function Et(i,l){if(i&1&&Q(0,St,0,0,"ng-template",13),i&2){F(2);let e=ie(1);T("ngTemplateOutlet",e)}}function Rt(i,l){if(i&1&&(u(0,"div",9),m(1,Et,1,1,null,13),h()),i&2){let e=F();T("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),f(e._forceDisplayInfixLabel()?-1:1)}}function Tt(i,l){i&1&&(u(0,"div",10,2),g(2,2),h())}function Lt(i,l){i&1&&(u(0,"div",11,3),g(2,3),h())}function Dt(i,l){}function zt(i,l){if(i&1&&Q(0,Dt,0,0,"ng-template",13),i&2){F();let e=ie(1);T("ngTemplateOutlet",e)}}function At(i,l){i&1&&(u(0,"div",14,4),g(2,4),h())}function It(i,l){i&1&&(u(0,"div",15,5),g(2,5),h())}function kt(i,l){i&1&&P(0,"div",16)}function Ot(i,l){i&1&&(u(0,"div",18),g(1,6),h())}function Pt(i,l){if(i&1&&(u(0,"mat-hint",22),Re(1),h()),i&2){let e=F(2);T("id",e._hintLabelId),d(),Te(e.hintLabel)}}function Nt(i,l){if(i&1&&(u(0,"div",19),m(1,Pt,2,2,"mat-hint",22),g(2,7),P(3,"div",23),g(4,8),h()),i&2){let e=F();d(),f(e.hintLabel?1:-1)}}var $=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["mat-label"]]})}return i})(),et=new b("MatError"),tt=(()=>{class i{id=r(D).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,n){t&2&&N("id",n.id)},inputs:{id:"id"},features:[w([{provide:et,useExisting:i}])]})}return i})(),Y=(()=>{class i{align="start";id=r(D).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(N("id",n.id),O("align",null),y("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return i})(),it=new b("MatPrefix"),nt=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[w([{provide:it,useExisting:i}])]})}return i})(),ot=new b("MatSuffix"),rt=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[w([{provide:ot,useExisting:i}])]})}return i})(),at=new b("FloatingLabelParent"),Ge=(()=>{class i{_elementRef=r(C);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=r(je);_ngZone=r(x);_parent=r(at);_resizeSubscription=new me;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Ht(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&y("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();function Ht(i){let l=i;if(l.offsetParent!==null)return l.scrollWidth;let e=l.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var $e="mdc-line-ripple--active",G="mdc-line-ripple--deactivating",Ye=(()=>{class i{_elementRef=r(C);_cleanupTransitionEnd;constructor(){let e=r(x),t=r(I);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(G),e.add($e)}deactivate(){this._elementRef.nativeElement.classList.add(G)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(G);e.propertyName==="opacity"&&n&&t.remove($e,G)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),Xe=(()=>{class i{_elementRef=r(C);_ngZone=r(x);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&ee(_t,5),t&2){let o;s(o=c())&&(n._notch=o.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&y("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:bt,ngContentSelectors:xt,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(J(),K(0,"div",1),Fe(1,"div",2,0),g(3),we(),K(4,"div",3))},encapsulation:2,changeDetection:0})}return i})(),le=(()=>{class i{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||i)};static \u0275dir=_({type:i})}return i})();var de=new b("MatFormField"),Bt=new b("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ke="fill",qt="auto",Je="fixed",Vt="translateY(-50%)",se=(()=>{class i{_elementRef=r(C);_changeDetectorRef=r(ze);_platform=r(L);_idGenerator=r(D);_ngZone=r(x);_defaults=r(Bt,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=B("iconPrefixContainer");_textPrefixContainerSignal=B("textPrefixContainer");_iconSuffixContainerSignal=B("iconSuffixContainer");_textSuffixContainerSignal=B("textSuffixContainer");_prefixSuffixContainers=U(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=De($);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=z(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||qt}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Ke;this._appearanceSignal.set(t)}_appearanceSignal=ge(Ke);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Je}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Je}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new v;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ne();constructor(){let e=this._defaults,t=r(Oe);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),W(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=U(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(xe([void 0,void 0]),he(()=>[t.errorState,t.userAriaDescribedBy]),_e(),V(([[o,a],[p,A]])=>o!==p||a!==A)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(j(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),pe(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){Ae({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=U(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let o=this._hintChildren?this._hintChildren.find(p=>p.align==="start"):null,a=this._hintChildren?this._hintChildren.find(p=>p.align==="end"):null;o?e.push(o.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(o=>o.id));let t=this._control.describedByIds,n;if(t){let o=this._describedByIds||e;n=e.concat(t.filter(a=>a&&!o.includes(a)))}else n=e;this._control.setDescribedByIds(n),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,o=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,p=t?.getBoundingClientRect().width??0,A=n?.getBoundingClientRect().width??0,M=o?.getBoundingClientRect().width??0,mt=this._currentDirection==="rtl"?"-1":"1",ft=`${a+p}px`,ut=`calc(${mt} * (${ft} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,ht=`var(--mat-mdc-form-field-label-transform, ${Vt} translateX(${ut}))`,pt=a+p+A+M;return[ht,pt]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,n]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),n!==null&&this._notchedOutline?._setMaxWidth(n)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=k({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,o){if(t&1&&(Se(o,n._labelChild,$,5),Me(o,le,5)(o,it,5)(o,ot,5)(o,et,5)(o,Y,5)),t&2){te();let a;s(a=c())&&(n._formFieldControl=a.first),s(a=c())&&(n._prefixChildren=a),s(a=c())&&(n._suffixChildren=a),s(a=c())&&(n._errorChildren=a),s(a=c())&&(n._hintChildren=a)}},viewQuery:function(t,n){if(t&1&&(Ee(n._iconPrefixContainerSignal,We,5)(n._textPrefixContainerSignal,Qe,5)(n._iconSuffixContainerSignal,Ue,5)(n._textSuffixContainerSignal,Ze,5),ee(gt,5)(We,5)(Qe,5)(Ue,5)(Ze,5)(Ge,5)(Xe,5)(Ye,5)),t&2){te(4);let o;s(o=c())&&(n._textField=o.first),s(o=c())&&(n._iconPrefixContainer=o.first),s(o=c())&&(n._textPrefixContainer=o.first),s(o=c())&&(n._iconSuffixContainer=o.first),s(o=c())&&(n._textSuffixContainer=o.first),s(o=c())&&(n._floatingLabel=o.first),s(o=c())&&(n._notchedOutline=o.first),s(o=c())&&(n._lineRipple=o.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,n){t&2&&y("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[w([{provide:de,useExisting:i},{provide:at,useExisting:i}])],ngContentSelectors:yt,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1&&(J(vt),Q(0,wt,1,1,"ng-template",null,0,Le),u(2,"div",6,1),H("click",function(a){return n._control.onContainerClick(a)}),m(4,Mt,1,0,"div",7),u(5,"div",8),m(6,Rt,2,2,"div",9),m(7,Tt,3,0,"div",10),m(8,Lt,3,0,"div",11),u(9,"div",12),m(10,zt,1,1,null,13),g(11),h(),m(12,At,3,0,"div",14),m(13,It,3,0,"div",15),h(),m(14,kt,1,0,"div",16),h(),u(15,"div",17),m(16,Ot,2,0,"div",18)(17,Nt,5,1,"div",19),h()),t&2){let o;d(2),y("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),f(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),f(n._hasOutline()?6:-1),d(),f(n._hasIconPrefix?7:-1),d(),f(n._hasTextPrefix?8:-1),d(2),f(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),f(n._hasTextSuffix?12:-1),d(),f(n._hasIconSuffix?13:-1),d(),f(n._hasOutline()?-1:14),d(),y("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic");let a=n._getSubscriptMessageType();d(),f((o=a)==="error"?16:o==="hint"?17:-1)}},dependencies:[Ge,Xe,Ie,Ye,Y],styles:[`.mdc-text-field {
2
2
  display: inline-flex;
3
3
  align-items: baseline;
4
4
  padding: 0 16px;
@@ -0,0 +1 @@
1
+ import{da as j}from"./chunk-URCOHSFB.js";import"./chunk-QJ2QMZLA.js";import"./chunk-CI2BDMX2.js";import"./chunk-LRYGINIX.js";import"./chunk-NXLWB5IV.js";import"./chunk-SJSHCZKD.js";import"./chunk-4LLIVPOH.js";import"./chunk-G5EXGCP4.js";import"./chunk-2JAD5V57.js";import"./chunk-BNDXOOFA.js";import"./chunk-THOUUI2P.js";import{$a as W,Fa as C,Ga as w,Ia as S,Ja as O,Ka as R,La as E,Na as T,Oa as k,Wa as A,Ya as V,m as I}from"./chunk-XXJX5CGO.js";import"./chunk-QD2NEHGC.js";import"./chunk-7FANVIZX.js";import"./chunk-GHLF3D5Z.js";import"./chunk-W7TSMHU3.js";import{$b as M,Fb as D,Jb as m,Lb as d,Na as h,Pb as x,Qa as s,Qb as b,Rb as y,Ya as c,_b as r,ab as _,da as g,ea as p,pb as f,qb as u,vb as v,wb as n,xb as o,yb as P}from"./chunk-XDKT43CW.js";import"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";var U=["frame"];function Q(a,e){if(a&1&&(n(0,"mat-dialog-content",3),P(1,"iframe",6,0),o()),a&2){let t=d();s(),v("src",t.url,h)("title",t.data.panel.title)}}function B(a,e){a&1&&(n(0,"mat-dialog-content",4),r(1," This widget has no settings. "),o())}function F(a,e){if(a&1){let t=D();n(0,"mat-dialog-actions",5)(1,"button",7),m("click",function(){g(t);let l=d();return p(l.removeWidget())}),n(2,"mat-icon"),r(3,"delete"),o(),r(4," Remove widget "),o(),n(5,"button",8),m("click",function(){g(t);let l=d();return p(l.moveWidget())}),n(6,"mat-icon"),r(7,"open_with"),o(),r(8," Move "),o()()}}var z=class a{constructor(e,t,i,l){this.dialogRef=e;this.data=t;this.service=i;this.sanitizer=l}dialogRef;data;service;sanitizer;frame;url;detach=null;ngOnInit(){let e=this.data.panel;e&&(this.url=this.sanitizer.bypassSecurityTrustResourceUrl(e.url?this.service.resolveAssetUrl(e.url):"about:blank"))}ngAfterViewInit(){let e=this.data.panel;!e||!this.frame||(this.detach=this.service.attachPanel(this.frame.nativeElement,{extension:this.data.extension,panel:e,targetInstance:this.data.targetInstance,targetWidget:this.data.targetWidget,targetOverlay:this.data.targetOverlay,close:()=>this.dialogRef.close()}))}removeWidget(){this.data.targetInstance&&this.service.removeWidget(this.data.targetInstance),this.dialogRef.close()}moveWidget(){this.data.targetInstance&&this.service.startMove(this.data.targetInstance),this.dialogRef.close()}ngOnDestroy(){this.detach?.(),this.detach=null}static \u0275fac=function(t){return new(t||a)(c(C),c(w),c(j),c(I))};static \u0275cmp=_({type:a,selectors:[["fb-plotterext-panel-dialog"]],viewQuery:function(t,i){if(t&1&&x(U,5),t&2){let l;b(l=y())&&(i.frame=l.first)}},decls:9,vars:3,consts:[["frame",""],["mat-dialog-title","",1,"pe-panel-header"],["mat-icon-button","","aria-label","Close",3,"click"],[1,"pe-panel-content"],[1,"pe-panel-noconfig"],[1,"pe-panel-actions"],["sandbox","allow-scripts allow-same-origin allow-forms",3,"src","title"],["mat-button","",1,"pe-remove",3,"click"],["mat-button","",3,"click"]],template:function(t,i){t&1&&(n(0,"div",1)(1,"span"),r(2),o(),n(3,"button",2),m("click",function(){return i.dialogRef.close()}),n(4,"mat-icon"),r(5,"close"),o()()(),f(6,Q,3,2,"mat-dialog-content",3)(7,B,2,0,"mat-dialog-content",4),f(8,F,9,0,"mat-dialog-actions",5)),t&2&&(s(2),M(i.data.panel?i.data.panel.title:i.data.title),s(4),u(i.data.panel?6:7),s(2),u(i.data.targetInstance?8:-1))},dependencies:[E,S,R,O,W,V,A,k,T],styles:[".pe-panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-right:8px}.pe-panel-content[_ngcontent-%COMP%]{padding:0;height:60vh}.pe-panel-noconfig[_ngcontent-%COMP%]{padding:16px 24px}iframe[_ngcontent-%COMP%]{display:block;width:100%;height:100%;border:none}.pe-panel-actions[_ngcontent-%COMP%]{justify-content:flex-start}.pe-remove[_ngcontent-%COMP%]{color:#d32f2f}"]})};export{z as PlotterPanelDialog};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-CI2BDMX2.js";import{a as t}from"./chunk-MWETYHR7.js";import"./chunk-WARJYBQ7.js";import"./chunk-BZGM3F3K.js";var a=t.Object({ids:t.Array(t.String()),visible:t.Boolean()}),o=t.Object({ids:t.Array(t.String()),style:t.Optional(t.Union([t.Literal("normal"),t.Literal("active"),t.Literal("warning"),t.Literal("alarm"),t.Null()])),colors:t.Optional(t.Union([t.Object({fg:t.Optional(t.String({pattern:i})),bg:t.Optional(t.String({pattern:i}))}),t.Null()])),badge:t.Optional(t.Union([t.Integer({minimum:0}),t.Null()]))});export{o as DecorateButtonsParams,a as SetVisibilityParams};
1
+ import{a as i}from"./chunk-CI2BDMX2.js";import{a as t}from"./chunk-7ISDSY26.js";import"./chunk-V3SPESMB.js";import"./chunk-BZGM3F3K.js";var a=t.Object({ids:t.Array(t.String()),visible:t.Boolean()}),o=t.Object({ids:t.Array(t.String()),style:t.Optional(t.Union([t.Literal("normal"),t.Literal("active"),t.Literal("warning"),t.Literal("alarm"),t.Null()])),colors:t.Optional(t.Union([t.Object({fg:t.Optional(t.String({pattern:i})),bg:t.Optional(t.String({pattern:i}))}),t.Null()])),badge:t.Optional(t.Union([t.Integer({minimum:0}),t.Null()]))});export{o as DecorateButtonsParams,a as SetVisibilityParams};
@@ -1,4 +1,4 @@
1
- import{a as It,b as Nt,c as Bt,d as Vt}from"./chunk-VT4GQY5X.js";import{a as Mt,b as Ft,c as Tt,d as Ot,e as Et,g as Pt}from"./chunk-YBVURHD5.js";import{a as St}from"./chunk-GJZ7P5CR.js";import{c as Rt}from"./chunk-DN6IX7CO.js";import{e as Ct,f as vt,i as Dt,j as xt,n as bt,o as kt}from"./chunk-DC5AFSD6.js";import{$a as _t,A as nt,B as it,C as ot,Fa as dt,G as rt,H as at,L as st,La as ut,Na as mt,Oa as ft,Wa as ht,bb as pt,c as Je,gb as gt,jb as wt,n as et,oa as lt,qa as ct,rb as yt,y as tt,z as he}from"./chunk-2QKJQDG4.js";import{$a as me,Ab as K,Bb as Y,Cb as S,Db as T,Hb as k,Jb as u,Jc as Ze,Ka as ie,Kb as fe,Kc as te,Lb as $,Mb as ke,Mc as A,O as Q,Oa as c,Ob as L,Pb as U,Sa as oe,Ta as H,U as de,Ub as re,V as ve,Vb as q,X as d,Ya as J,Yb as f,Zb as R,_a as V,_b as X,ab as p,ba as g,ca as w,d as Z,db as b,e as ze,eb as z,fa as qe,ga as Qe,h as Le,i as Ue,ia as We,ic as I,l as Ce,la as j,mb as W,n as je,na as Ke,nb as y,oa as ue,ob as C,pa as E,pb as De,pc as Ye,q as ce,ra as B,rb as xe,rc as Xe,sb as be,tb as P,ub as s,vb as l,wb as ee,wc as ae,y as $e,zc as Ge}from"./chunk-R6ABX6RX.js";import{g as He}from"./chunk-BZGM3F3K.js";var rn=[[["caption"]],[["colgroup"],["col"]],"*"],an=["caption","colgroup, col","*"];function sn(n,o){n&1&&$(0,2)}function ln(n,o){n&1&&(s(0,"thead",0),S(1,1),l(),s(2,"tbody",0),S(3,2)(4,3),l(),s(5,"tfoot",0),S(6,4),l())}function cn(n,o){n&1&&S(0,1)(1,2)(2,3)(3,4)}var N=new ve("CDK_TABLE");var ge=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellDef",""]]})}return n})(),we=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderCellDef",""]]})}return n})(),Lt=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterCellDef",""]]})}return n})(),ne=(()=>{class n{_table=d(N,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,ge,5)(r,we,5)(r,Lt,5),t&2){let a;L(a=U())&&(i.cell=a.first),L(a=U())&&(i.headerCell=a.first),L(a=U())&&(i.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",A],stickyEnd:[2,"stickyEnd","stickyEnd",A]}})}return n})(),pe=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}},Ut=(()=>{class n extends pe{constructor(){super(d(ne),d(B))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[b]})}return n})();var jt=(()=>{class n extends pe{constructor(){let e=d(ne),t=d(B);super(e,t);let i=e._table?._getCellRole();i&&t.nativeElement.setAttribute("role",i)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[b]})}return n})();var Se=(()=>{class n{template=d(H);_differs=d(te);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof le?e.headerCell.template:this instanceof Me?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,features:[ue]})}return n})(),le=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),Me=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),ye=(()=>{class n extends Se{_table=d(N,{optional:!0});when;constructor(){super(d(H),d(te))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[b]})}return n})(),G=(()=>{class n{_viewContainer=d(J);cells;context;static mostRecentCellOutlet=null;constructor(){n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellOutlet",""]]})}return n})(),Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})();var Te=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})(),$t=(()=>{class n{templateRef=d(H);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["ng-template","cdkNoDataRow",""]]})}return n})(),At=["top","bottom","left","right"],Re=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(o,e,t=!0,i=!0,r,a,m){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=i,this.direction=r,this._positionListener=a,this._tableInjector=m,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let i of o)i.nodeType===i.ELEMENT_NODE&&t.push(i,...Array.from(i.children));oe({write:()=>{for(let i of t)this._removeStickyStyle(i,e)}},{injector:this._tableInjector})}updateStickyColumns(o,e,t,i=!0,r=!0){if(!o.length||!this._isBrowser||!(e.some(O=>O)||t.some(O=>O))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=o[0],m=a.children.length,h=this.direction==="rtl",_=h?"right":"left",v=h?"left":"right",F=e.lastIndexOf(!0),D=t.indexOf(!0),x,Be,Ve;r&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),oe({earlyRead:()=>{x=this._getCellWidths(a,i),Be=this._getStickyStartColumnPositions(x,e),Ve=this._getStickyEndColumnPositions(x,t)},write:()=>{for(let O of o)for(let M=0;M<m;M++){let Ae=O.children[M];e[M]&&this._addStickyStyle(Ae,_,Be[M],M===F),t[M]&&this._addStickyStyle(Ae,v,Ve[M],M===D)}this._positionListener&&x.some(O=>!!O)&&(this._positionListener.stickyColumnsUpdated({sizes:F===-1?[]:x.slice(0,F+1).map((O,M)=>e[M]?O:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((O,M)=>t[M+D]?O:null).reverse()}))}},{injector:this._tableInjector})}stickRows(o,e,t){if(!this._isBrowser)return;let i=t==="bottom"?o.slice().reverse():o,r=t==="bottom"?e.slice().reverse():e,a=[],m=[],h=[];oe({earlyRead:()=>{for(let _=0,v=0;_<i.length;_++){if(!r[_])continue;a[_]=v;let F=i[_];h[_]=this._isNativeHtmlTable?Array.from(F.children):[F];let D=this._retrieveElementSize(F).height;v+=D,m[_]=D}},write:()=>{let _=r.lastIndexOf(!0);for(let v=0;v<i.length;v++){if(!r[v])continue;let F=a[v],D=v===_;for(let x of h[v])this._addStickyStyle(x,t,F,D)}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:m,offsets:a,elements:h}):this._positionListener?.stickyFooterRowsUpdated({sizes:m,offsets:a,elements:h})}},{injector:this._tableInjector})}updateStickyFooterContainer(o,e){this._isNativeHtmlTable&&oe({write:()=>{let t=o.querySelector("tfoot");t&&(e.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let i of e)o.style[i]="",o.classList.remove(this._borderCellCss[i]);At.some(i=>e.indexOf(i)===-1&&o.style[i])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,i){o.classList.add(this._stickCellCss),i&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let i of At)o.style[i]&&(t+=e[i]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=o.children;for(let r=0;r<i.length;r++){let a=i[r];t.push(this._retrieveElementSize(a).width)}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(o,e){let t=[],i=0;for(let r=0;r<o.length;r++)e[r]&&(t[r]=i,i+=o[r]);return t}_getStickyEndColumnPositions(o,e){let t=[],i=0;for(let r=o.length;r>0;r--)e[r]&&(t[r]=i,i+=o[r]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),i={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,i),this._resizeObserver.observe(o,{box:"border-box"})),i}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o)}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(i=>!e.has(i));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(o){let e=!1;for(let t of o){let i=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};i.width!==this._elemSizeCache.get(t.target)?.width&&dn(t.target)&&(e=!0),this._elemSizeCache.set(t.target,i)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function dn(n){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>n.classList.contains(o))}var se=new ve("STICKY_POSITIONING_LISTENER");var Oe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","rowOutlet",""]]})}return n})(),Ee=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","headerRowOutlet",""]]})}return n})(),Pe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","footerRowOutlet",""]]})}return n})(),Ie=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","noDataRowOutlet",""]]})}return n})(),Ne=(()=>{class n{_differs=d(te);_changeDetectorRef=d(Ze);_elementRef=d(B);_dir=d(tt,{optional:!0});_platform=d(et);_viewRepeater;_viewportRuler=d(rt);_injector=d(qe);_virtualScrollViewport=d(at,{optional:!0,host:!0});_positionListener=d(se,{optional:!0})||d(se,{optional:!0,skipSelf:!0});_document=d(Qe);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new We;viewChange=new ze({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){d(new Ge("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new it:new Rt,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),he(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(i,r,a)=>this._getEmbeddedViewArgs(i.item,a),i=>i.item.data,i=>{i.operation===nt.INSERTED&&i.context&&this._renderCellTemplateForItem(i.record.item.rowDef,i.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(i=>{let r=t.get(i.currentIndex);r.context.$implicit=i.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._headerRowOutlet,"thead");i&&(i.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._footerRowOutlet,"tfoot");i&&(i.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let m=0;m<t.length;m++)this._renderRows[m].rowDef===r&&a.push(t[m]);this._addStickyColumnStyles(a,r)}),i.forEach((r,a)=>{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],t=Math.min(this._data.length,this._renderedRange.end),i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let a=this._data[r],m=this._getRenderRowsForData(a,r,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(let h=0;h<m.length;h++){let _=m[h],v=this._cachedRenderRowsMap.get(_.data);v.has(_.rowDef)?v.get(_.rowDef).push(_):v.set(_.rowDef,[_]),e.push(_)}}return e}_getRenderRowsForData(e,t,i){return this._getRowDefs(e,t).map(a=>{let m=i&&i.has(a)?i.get(a):[];if(m.length){let h=m.shift();return h.dataIndex=t,h}else return{data:e,rowDef:a,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_e(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_e(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_e(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_e(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,m)=>{let h=!!m.getColumnsDiff();return a||h},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),t||i||r}_switchDataSource(e){this._data=[],he(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;he(this.dataSource)?e=this.dataSource.connect(this):je(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ce(this.dataSource)),this._renderChangeSubscription=ce([e,this.viewChange]).pipe(Q(this._onDestroy)).subscribe(([t,i])=>{this._data=t||[],this._renderedRange=i,this._dataStream.next(t),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let i=Array.from(t?.columns||[]).map(m=>{let h=this._columnDefsByName.get(m);return h}),r=i.map(m=>m.sticky),a=i.map(m=>m.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let i=0;i<e.viewContainer.length;i++){let r=e.viewContainer.get(i);t.push(r.rootNodes[0])}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return[this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(r=>!r.when||r.when(t,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(t,e))||this._defaultRowDef;r&&i.push(r)}return i.length,i}_getEmbeddedViewArgs(e,t){let i=e.rowDef,r={$implicit:e.data};return{templateRef:i.template,context:r,index:t}}_renderRow(e,t,i,r={}){let a=e.viewContainer.createEmbeddedView(t.template,r,i);return this._renderCellTemplateForItem(t,r),a}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))G.mostRecentCellOutlet&&G.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t<i;t++){let a=e.get(t).context;a.count=i,a.first=t===0,a.last=t===i-1,a.even=t%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[t].dataIndex,a.renderIndex=t):a.index=this._renderRows[t].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,t=>{let i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,i)=>t||i.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new Re(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Ce()).pipe(Q(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Ue:Le;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe($e(0,t),Q(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(i,r)=>this._measureRangeSize(i,r)}),ce([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m){let h=r.offsets[a],_=i!==0?Math.max(i-h,h):-h;for(let v of m)v.style.top=`${-_}px`}}}),ce([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m)for(let h of m)h.style.bottom=`${i+r.offsets[a]}px`}})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let i=this._noDataRowOutlet.viewContainer;if(t){let r=i.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let m=a.querySelectorAll(e._cellSelector);for(let h=0;h<m.length;h++)m[h].classList.add(...e._cellClassNames)}}else i.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let i=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<i.start||e.end>i.end;let a=e.start-i.start,m=e.end-e.start,h,_;for(let D=0;D<m;D++){let x=r.get(D+a);if(x&&x.rootNodes.length){h=_=x.rootNodes[0];break}}for(let D=m-1;D>-1;D--){let x=r.get(D+a);if(x&&x.rootNodes.length){_=x.rootNodes[x.rootNodes.length-1];break}}let v=h?.getBoundingClientRect?.(),F=_?.getBoundingClientRect?.();return v&&F?F.bottom-v.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,$t,5)(r,ne,5)(r,ye,5)(r,le,5)(r,Me,5),t&2){let a;L(a=U())&&(i._noDataRow=a.first),L(a=U())&&(i._contentColumnDefs=a),L(a=U())&&(i._contentRowDefs=a),L(a=U())&&(i._contentHeaderRowDefs=a),L(a=U())&&(i._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){t&2&&q("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",A],fixedLayout:[2,"fixedLayout","fixedLayout",A],recycleRows:[2,"recycleRows","recycleRows",A]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[I([{provide:N,useExisting:n},{provide:se,useValue:null}])],ngContentSelectors:an,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(fe(rn),$(0),$(1,1),y(2,sn,1,0),y(3,ln,7,0)(4,cn,4,0)),t&2&&(c(2),C(i._isServer?2:-1),c(),C(i._isNativeHtmlTable?3:4))},dependencies:[Ee,Oe,Ie,Pe],styles:[`.cdk-table-fixed-layout {
1
+ import{a as It,b as Nt,c as Bt,d as Vt}from"./chunk-LH5NA6FP.js";import{a as Mt,b as Ft,c as Tt,d as Ot,e as Et,g as Pt}from"./chunk-QJ2QMZLA.js";import{a as St}from"./chunk-4LLIVPOH.js";import{c as Rt}from"./chunk-2JAD5V57.js";import{e as Ct,f as vt,i as Dt,j as xt,n as bt,o as kt}from"./chunk-THOUUI2P.js";import{$a as _t,A as nt,B as it,C as ot,Fa as dt,G as rt,H as at,L as st,La as ut,Na as mt,Oa as ft,Wa as ht,bb as pt,c as Je,gb as gt,lb as wt,n as et,oa as lt,qa as ct,ub as yt,y as tt,z as he}from"./chunk-XXJX5CGO.js";import{$b as R,A as $e,Bc as Ge,Cb as K,Db as Y,Eb as S,Fb as T,Jb as k,Lb as u,Lc as Ze,Ma as ie,Mb as fe,Mc as te,Nb as $,Ob as ke,Oc as A,Q,Qa as c,Qb as L,Rb as U,Ua as oe,Va as H,W as de,Wb as re,X as ve,Xb as q,Z as d,_a as J,_b as f,ab as V,ac as X,bb as me,cb as p,d as Z,da as g,e as ze,ea as w,fb as b,gb as z,h as Le,ha as qe,i as Ue,ia as Qe,ka as We,kc as I,l as Ce,n as je,na as j,ob as W,pa as Ke,pb as y,qa as ue,qb as C,ra as E,rb as De,rc as Ye,s as ce,ta as B,tb as xe,tc as Xe,ub as be,vb as P,wb as s,xb as l,yb as ee,yc as ae}from"./chunk-XDKT43CW.js";import{g as He}from"./chunk-BZGM3F3K.js";var rn=[[["caption"]],[["colgroup"],["col"]],"*"],an=["caption","colgroup, col","*"];function sn(n,o){n&1&&$(0,2)}function ln(n,o){n&1&&(s(0,"thead",0),S(1,1),l(),s(2,"tbody",0),S(3,2)(4,3),l(),s(5,"tfoot",0),S(6,4),l())}function cn(n,o){n&1&&S(0,1)(1,2)(2,3)(3,4)}var N=new ve("CDK_TABLE");var ge=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellDef",""]]})}return n})(),we=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderCellDef",""]]})}return n})(),Lt=(()=>{class n{template=d(H);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterCellDef",""]]})}return n})(),ne=(()=>{class n{_table=d(N,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,ge,5)(r,we,5)(r,Lt,5),t&2){let a;L(a=U())&&(i.cell=a.first),L(a=U())&&(i.headerCell=a.first),L(a=U())&&(i.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",A],stickyEnd:[2,"stickyEnd","stickyEnd",A]}})}return n})(),pe=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}},Ut=(()=>{class n extends pe{constructor(){super(d(ne),d(B))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[b]})}return n})();var jt=(()=>{class n extends pe{constructor(){let e=d(ne),t=d(B);super(e,t);let i=e._table?._getCellRole();i&&t.nativeElement.setAttribute("role",i)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[b]})}return n})();var Se=(()=>{class n{template=d(H);_differs=d(te);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof le?e.headerCell.template:this instanceof Me?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,features:[ue]})}return n})(),le=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),Me=(()=>{class n extends Se{_table=d(N,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(H),d(te))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",A]},features:[b,ue]})}return n})(),ye=(()=>{class n extends Se{_table=d(N,{optional:!0});when;constructor(){super(d(H),d(te))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[b]})}return n})(),G=(()=>{class n{_viewContainer=d(J);cells;context;static mostRecentCellOutlet=null;constructor(){n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","cdkCellOutlet",""]]})}return n})(),Fe=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})();var Te=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&S(0,0)},dependencies:[G],encapsulation:2})}return n})(),$t=(()=>{class n{templateRef=d(H);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["ng-template","cdkNoDataRow",""]]})}return n})(),At=["top","bottom","left","right"],Re=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(o,e,t=!0,i=!0,r,a,m){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=i,this.direction=r,this._positionListener=a,this._tableInjector=m,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let i of o)i.nodeType===i.ELEMENT_NODE&&t.push(i,...Array.from(i.children));oe({write:()=>{for(let i of t)this._removeStickyStyle(i,e)}},{injector:this._tableInjector})}updateStickyColumns(o,e,t,i=!0,r=!0){if(!o.length||!this._isBrowser||!(e.some(O=>O)||t.some(O=>O))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=o[0],m=a.children.length,h=this.direction==="rtl",_=h?"right":"left",v=h?"left":"right",F=e.lastIndexOf(!0),D=t.indexOf(!0),x,Be,Ve;r&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),oe({earlyRead:()=>{x=this._getCellWidths(a,i),Be=this._getStickyStartColumnPositions(x,e),Ve=this._getStickyEndColumnPositions(x,t)},write:()=>{for(let O of o)for(let M=0;M<m;M++){let Ae=O.children[M];e[M]&&this._addStickyStyle(Ae,_,Be[M],M===F),t[M]&&this._addStickyStyle(Ae,v,Ve[M],M===D)}this._positionListener&&x.some(O=>!!O)&&(this._positionListener.stickyColumnsUpdated({sizes:F===-1?[]:x.slice(0,F+1).map((O,M)=>e[M]?O:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:D===-1?[]:x.slice(D).map((O,M)=>t[M+D]?O:null).reverse()}))}},{injector:this._tableInjector})}stickRows(o,e,t){if(!this._isBrowser)return;let i=t==="bottom"?o.slice().reverse():o,r=t==="bottom"?e.slice().reverse():e,a=[],m=[],h=[];oe({earlyRead:()=>{for(let _=0,v=0;_<i.length;_++){if(!r[_])continue;a[_]=v;let F=i[_];h[_]=this._isNativeHtmlTable?Array.from(F.children):[F];let D=this._retrieveElementSize(F).height;v+=D,m[_]=D}},write:()=>{let _=r.lastIndexOf(!0);for(let v=0;v<i.length;v++){if(!r[v])continue;let F=a[v],D=v===_;for(let x of h[v])this._addStickyStyle(x,t,F,D)}t==="top"?this._positionListener?.stickyHeaderRowsUpdated({sizes:m,offsets:a,elements:h}):this._positionListener?.stickyFooterRowsUpdated({sizes:m,offsets:a,elements:h})}},{injector:this._tableInjector})}updateStickyFooterContainer(o,e){this._isNativeHtmlTable&&oe({write:()=>{let t=o.querySelector("tfoot");t&&(e.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let i of e)o.style[i]="",o.classList.remove(this._borderCellCss[i]);At.some(i=>e.indexOf(i)===-1&&o.style[i])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,i){o.classList.add(this._stickCellCss),i&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let i of At)o.style[i]&&(t+=e[i]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=o.children;for(let r=0;r<i.length;r++){let a=i[r];t.push(this._retrieveElementSize(a).width)}return this._cachedCellWidths=t,t}_getStickyStartColumnPositions(o,e){let t=[],i=0;for(let r=0;r<o.length;r++)e[r]&&(t[r]=i,i+=o[r]);return t}_getStickyEndColumnPositions(o,e){let t=[],i=0;for(let r=o.length;r>0;r--)e[r]&&(t[r]=i,i+=o[r]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),i={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,i),this._resizeObserver.observe(o,{box:"border-box"})),i}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o)}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(i=>!e.has(i));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(o){let e=!1;for(let t of o){let i=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};i.width!==this._elemSizeCache.get(t.target)?.width&&dn(t.target)&&(e=!0),this._elemSizeCache.set(t.target,i)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function dn(n){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>n.classList.contains(o))}var se=new ve("STICKY_POSITIONING_LISTENER");var Oe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","rowOutlet",""]]})}return n})(),Ee=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","headerRowOutlet",""]]})}return n})(),Pe=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","footerRowOutlet",""]]})}return n})(),Ie=(()=>{class n{viewContainer=d(J);elementRef=d(B);constructor(){let e=d(N);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=p({type:n,selectors:[["","noDataRowOutlet",""]]})}return n})(),Ne=(()=>{class n{_differs=d(te);_changeDetectorRef=d(Ze);_elementRef=d(B);_dir=d(tt,{optional:!0});_platform=d(et);_viewRepeater;_viewportRuler=d(rt);_injector=d(qe);_virtualScrollViewport=d(at,{optional:!0,host:!0});_positionListener=d(se,{optional:!0})||d(se,{optional:!0,skipSelf:!0});_document=d(Qe);_data;_renderedRange;_onDestroy=new Z;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Z;_footerRowStickyUpdates=new Z;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Z;_dataStream=new Z;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new We;viewChange=new ze({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){d(new Ge("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(Q(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new it:new Rt,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),he(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(i,r,a)=>this._getEmbeddedViewArgs(i.item,a),i=>i.item.data,i=>{i.operation===nt.INSERTED&&i.context&&this._renderCellTemplateForItem(i.record.item.rowDef,i.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(i=>{let r=t.get(i.currentIndex);r.context.$implicit=i.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._headerRowOutlet,"thead");i&&(i.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let i=Ht(this._footerRowOutlet,"tfoot");i&&(i.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let m=0;m<t.length;m++)this._renderRows[m].rowDef===r&&a.push(t[m]);this._addStickyColumnStyles(a,r)}),i.forEach((r,a)=>{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],t=Math.min(this._data.length,this._renderedRange.end),i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let r=this._renderedRange.start;r<t;r++){let a=this._data[r],m=this._getRenderRowsForData(a,r,i.get(a));this._cachedRenderRowsMap.has(a)||this._cachedRenderRowsMap.set(a,new WeakMap);for(let h=0;h<m.length;h++){let _=m[h],v=this._cachedRenderRowsMap.get(_.data);v.has(_.rowDef)?v.get(_.rowDef).push(_):v.set(_.rowDef,[_]),e.push(_)}}return e}_getRenderRowsForData(e,t,i){return this._getRowDefs(e,t).map(a=>{let m=i&&i.has(a)?i.get(a):[];if(m.length){let h=m.shift();return h.dataIndex=t,h}else return{data:e,rowDef:a,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),_e(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=_e(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=_e(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=_e(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,m)=>{let h=!!m.getColumnsDiff();return a||h},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),t||i||r}_switchDataSource(e){this._data=[],he(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;he(this.dataSource)?e=this.dataSource.connect(this):je(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Ce(this.dataSource)),this._renderChangeSubscription=ce([e,this.viewChange]).pipe(Q(this._onDestroy)).subscribe(([t,i])=>{this._data=t||[],this._renderedRange=i,this._dataStream.next(t),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let i=Array.from(t?.columns||[]).map(m=>{let h=this._columnDefsByName.get(m);return h}),r=i.map(m=>m.sticky),a=i.map(m=>m.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let i=0;i<e.viewContainer.length;i++){let r=e.viewContainer.get(i);t.push(r.rootNodes[0])}return t}_getRowDefs(e,t){if(this._rowDefs.length===1)return[this._rowDefs[0]];let i=[];if(this.multiTemplateDataRows)i=this._rowDefs.filter(r=>!r.when||r.when(t,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(t,e))||this._defaultRowDef;r&&i.push(r)}return i.length,i}_getEmbeddedViewArgs(e,t){let i=e.rowDef,r={$implicit:e.data};return{templateRef:i.template,context:r,index:t}}_renderRow(e,t,i,r={}){let a=e.viewContainer.createEmbeddedView(t.template,r,i);return this._renderCellTemplateForItem(t,r),a}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))G.mostRecentCellOutlet&&G.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t<i;t++){let a=e.get(t).context;a.count=i,a.first=t===0,a.last=t===i-1,a.even=t%2===0,a.odd=!a.even,this.multiTemplateDataRows?(a.dataIndex=this._renderRows[t].dataIndex,a.renderIndex=t):a.index=this._renderRows[t].dataIndex}}_getCellTemplates(e){return!e||!e.columns?[]:Array.from(e.columns,t=>{let i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,i)=>t||i.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new Re(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Ce()).pipe(Q(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?Ue:Le;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe($e(0,t),Q(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(i,r)=>this._measureRangeSize(i,r)}),ce([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m){let h=r.offsets[a],_=i!==0?Math.max(i-h,h):-h;for(let v of m)v.style.top=`${-_}px`}}}),ce([e.renderedContentOffset,this._footerRowStickyUpdates]).pipe(Q(this._onDestroy)).subscribe(([i,r])=>{if(!(!r.sizes||!r.offsets||!r.elements))for(let a=0;a<r.elements.length;a++){let m=r.elements[a];if(m)for(let h of m)h.style.bottom=`${i+r.offsets[a]}px`}})}_getOwnDefs(e){return e.filter(t=>!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let i=this._noDataRowOutlet.viewContainer;if(t){let r=i.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let m=a.querySelectorAll(e._cellSelector);for(let h=0;h<m.length;h++)m[h].classList.add(...e._cellClassNames)}}else i.clear();this._isShowingNoDataRow=t,this._changeDetectorRef.markForCheck()}_measureRangeSize(e,t){if(e.start>=e.end||t!=="vertical")return 0;let i=this.viewChange.value,r=this._rowOutlet.viewContainer;e.start<i.start||e.end>i.end;let a=e.start-i.start,m=e.end-e.start,h,_;for(let D=0;D<m;D++){let x=r.get(D+a);if(x&&x.rootNodes.length){h=_=x.rootNodes[0];break}}for(let D=m-1;D>-1;D--){let x=r.get(D+a);if(x&&x.rootNodes.length){_=x.rootNodes[x.rootNodes.length-1];break}}let v=h?.getBoundingClientRect?.(),F=_?.getBoundingClientRect?.();return v&&F?F.bottom-v.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,r){if(t&1&&ke(r,$t,5)(r,ne,5)(r,ye,5)(r,le,5)(r,Me,5),t&2){let a;L(a=U())&&(i._noDataRow=a.first),L(a=U())&&(i._contentColumnDefs=a),L(a=U())&&(i._contentRowDefs=a),L(a=U())&&(i._contentHeaderRowDefs=a),L(a=U())&&(i._contentFooterRowDefs=a)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){t&2&&q("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",A],fixedLayout:[2,"fixedLayout","fixedLayout",A],recycleRows:[2,"recycleRows","recycleRows",A]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[I([{provide:N,useExisting:n},{provide:se,useValue:null}])],ngContentSelectors:an,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(fe(rn),$(0),$(1,1),y(2,sn,1,0),y(3,ln,7,0)(4,cn,4,0)),t&2&&(c(2),C(i._isServer?2:-1),c(),C(i._isNativeHtmlTable?3:4))},dependencies:[Ee,Oe,Ie,Pe],styles:[`.cdk-table-fixed-layout {
2
2
  table-layout: fixed;
3
3
  }
4
4
  `],encapsulation:2})}return n})();function _e(n,o){return n.concat(Array.from(o))}function Ht(n,o){let e=o.toUpperCase(),t=n.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===e)return t;if(i==="TABLE")break;t=t.parentNode}return null}var qt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=me({type:n});static \u0275inj=de({imports:[st]})}return n})();var un=[[["caption"]],[["colgroup"],["col"]],"*"],mn=["caption","colgroup, col","*"];function fn(n,o){n&1&&$(0,2)}function hn(n,o){n&1&&(s(0,"thead",0),S(1,1),l(),s(2,"tbody",2),S(3,3)(4,4),l(),s(5,"tfoot",0),S(6,5),l())}function _n(n,o){n&1&&S(0,1)(1,3)(2,4)(3,5)}var Qt=(()=>{class n extends Ne{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(i){return(e||(e=E(n)))(i||n)}})();static \u0275cmp=V({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,i){t&2&&q("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[I([{provide:Ne,useExisting:n},{provide:N,useExisting:n},{provide:se,useValue:null}]),b],ngContentSelectors:mn,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(fe(un),$(0),$(1,1),y(2,fn,1,0),y(3,hn,7,0)(4,_n,4,0)),t&2&&(c(2),C(i._isServer?2:-1),c(),C(i._isNativeHtmlTable?3:4))},dependencies:[Ee,Oe,Ie,Pe],styles:[`.mat-mdc-table-sticky {