File size: 195,325 Bytes
7c35231
 
c14732f
 
7c35231
c14732f
 
 
 
 
 
 
 
7c35231
 
c14732f
 
 
 
 
 
 
 
 
7c35231
c14732f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7c35231
 
c14732f
 
 
 
 
7c35231
c14732f
 
 
 
7c35231
c14732f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7c35231
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
var bi=Object.defineProperty;var Ei=(i,e,t)=>e in i?bi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var sn=(i,e,t)=>(Ei(i,typeof e!="symbol"?e+"":e,t),t);import{S as ce,i as de,s as he,e as F,b as O,a1 as ue,h,D as Ae,E as me,F as De,Q as ge,k as U,l as q,m as V,I as Be,H as y,K as se,O as Le,P as ot,a3 as xe,p as fn,g as p,v as X,d as g,f as ee,C as jt,o as Gt,G as _e,y as W,a as fe,z as ie,c as ae,J as B,A as K,L as be,M as Ee,N as ke,B as $,q as ve,r as we,u as Pe,_ as Me,$ as Ue,n as z,a0 as Ge,ai as Vr,w as qe,aj as an,ab as Mr,W as st,x as Se,an as un,ao as ki,ap as yi,T as vi,U as Fe,V as Ke}from"./index.01827105.js";import{N as wi,a as Oi,T as Si}from"./Toggle.d7a7abec.js";import{B as Pi}from"./taskMonitoringStore.f29f8009.js";import{W as Ur,b as qr,S as Ii,a as Br}from"./SelectItem.978ba842.js";function cn(i,e,t){const r=i.slice();return r[2]=e[t].width,r}function Ti(i){let e,t,r,n,l=[i[4],{style:t="width: "+i[2]+";"+i[4].style}],o={};for(let s=0;s<l.length;s+=1)o=me(o,l[s]);return{c(){e=U("p"),this.h()},l(s){e=q(s,"P",{style:!0}),V(e).forEach(h),this.h()},h(){Be(e,o),y(e,"bx--skeleton__text",!0),y(e,"bx--skeleton__heading",i[0])},m(s,f){O(s,e,f),r||(n=[se(e,"click",i[12]),se(e,"mouseover",i[13]),se(e,"mouseenter",i[14]),se(e,"mouseleave",i[15])],r=!0)},p(s,f){Be(e,o=Le(l,[f&16&&s[4],f&20&&t!==(t="width: "+s[2]+";"+s[4].style)&&{style:t}])),y(e,"bx--skeleton__text",!0),y(e,"bx--skeleton__heading",s[0])},d(s){s&&h(e),r=!1,ot(n)}}}function Ai(i){let e,t,r,n=i[3],l=[];for(let f=0;f<n.length;f+=1)l[f]=dn(cn(i,n,f));let o=[i[4]],s={};for(let f=0;f<o.length;f+=1)s=me(s,o[f]);return{c(){e=U("div");for(let f=0;f<l.length;f+=1)l[f].c();this.h()},l(f){e=q(f,"DIV",{});var a=V(e);for(let u=0;u<l.length;u+=1)l[u].l(a);a.forEach(h),this.h()},h(){Be(e,s)},m(f,a){O(f,e,a);for(let u=0;u<l.length;u+=1)l[u]&&l[u].m(e,null);t||(r=[se(e,"click",i[8]),se(e,"mouseover",i[9]),se(e,"mouseenter",i[10]),se(e,"mouseleave",i[11])],t=!0)},p(f,a){if(a&9){n=f[3];let u;for(u=0;u<n.length;u+=1){const c=cn(f,n,u);l[u]?l[u].p(c,a):(l[u]=dn(c),l[u].c(),l[u].m(e,null))}for(;u<l.length;u+=1)l[u].d(1);l.length=n.length}Be(e,s=Le(o,[a&16&&f[4]]))},d(f){f&&h(e),xe(l,f),t=!1,ot(r)}}}function dn(i){let e;return{c(){e=U("p"),this.h()},l(t){e=q(t,"P",{style:!0}),V(e).forEach(h),this.h()},h(){fn(e,"width",i[2]),y(e,"bx--skeleton__text",!0),y(e,"bx--skeleton__heading",i[0])},m(t,r){O(t,e,r)},p(t,r){r&8&&fn(e,"width",t[2]),r&1&&y(e,"bx--skeleton__heading",t[0])},d(t){t&&h(e)}}}function Ri(i){let e;function t(l,o){return l[1]?Ai:Ti}let r=t(i),n=r(i);return{c(){n.c(),e=F()},l(l){n.l(l),e=F()},m(l,o){n.m(l,o),O(l,e,o)},p(l,[o]){r===(r=t(l))&&n?n.p(l,o):(n.d(1),n=r(l),n&&(n.c(),n.m(e.parentNode,e)))},i:ue,o:ue,d(l){n.d(l),l&&h(e)}}}function ji(i,e,t){let r,n,l;const o=["lines","heading","paragraph","width"];let s=Ae(e,o),{lines:f=3}=e,{heading:a=!1}=e,{paragraph:u=!1}=e,{width:c="100%"}=e;const d=[.973,.153,.567];function m(I){ge.call(this,i,I)}function k(I){ge.call(this,i,I)}function _(I){ge.call(this,i,I)}function A(I){ge.call(this,i,I)}function v(I){ge.call(this,i,I)}function b(I){ge.call(this,i,I)}function S(I){ge.call(this,i,I)}function P(I){ge.call(this,i,I)}return i.$$set=I=>{e=me(me({},e),De(I)),t(4,s=Ae(e,o)),"lines"in I&&t(5,f=I.lines),"heading"in I&&t(0,a=I.heading),"paragraph"in I&&t(1,u=I.paragraph),"width"in I&&t(2,c=I.width)},i.$$.update=()=>{if(i.$$.dirty&4&&t(7,n=parseInt(c,10)),i.$$.dirty&4&&t(6,l=c.includes("px")),i.$$.dirty&238&&u)for(let I=0;I<f;I++){const T=l?n-75:0,L=l?n:75,D=Math.floor(d[I%3]*(L-T+1))+T+"px";t(3,r=[...r,{width:l?D:`calc(${c} - ${D})`}])}},t(3,r=[]),[a,u,c,r,s,f,l,n,m,k,_,A,v,b,S,P]}class Ni extends ce{constructor(e){super(),de(this,e,ji,Ri,he,{lines:5,heading:0,paragraph:1,width:2})}}const Ya=Ni,Li=i=>({}),hn=i=>({}),Ci=i=>({}),mn=i=>({}),zi=i=>({}),pn=i=>({});function gn(i){let e,t,r,n,l,o,s,f,a,u,c,d,m,k;r=new wi({props:{notificationType:"inline",kind:i[0],iconDescription:i[6]}});const _=i[13].title,A=_e(_,i,i[12],pn),v=A||Di(i),b=i[13].subtitle,S=_e(b,i,i[12],mn),P=S||Vi(i),I=i[13].default,T=_e(I,i,i[12],null),L=i[13].actions,D=_e(L,i,i[12],hn);let Z=!i[5]&&_n(i),ne=[{role:i[2]},{kind:i[0]},i[10]],re={};for(let R=0;R<ne.length;R+=1)re=me(re,ne[R]);return{c(){e=U("div"),t=U("div"),W(r.$$.fragment),n=fe(),l=U("div"),o=U("p"),v&&v.c(),s=fe(),f=U("div"),P&&P.c(),a=fe(),T&&T.c(),u=fe(),D&&D.c(),c=fe(),Z&&Z.c(),this.h()},l(R){e=q(R,"DIV",{role:!0,kind:!0});var E=V(e);t=q(E,"DIV",{});var C=V(t);ie(r.$$.fragment,C),n=ae(C),l=q(C,"DIV",{});var w=V(l);o=q(w,"P",{});var j=V(o);v&&v.l(j),j.forEach(h),s=ae(w),f=q(w,"DIV",{});var J=V(f);P&&P.l(J),J.forEach(h),a=ae(w),T&&T.l(w),w.forEach(h),C.forEach(h),u=ae(E),D&&D.l(E),c=ae(E),Z&&Z.l(E),E.forEach(h),this.h()},h(){y(o,"bx--inline-notification__title",!0),y(f,"bx--inline-notification__subtitle",!0),y(l,"bx--inline-notification__text-wrapper",!0),y(t,"bx--inline-notification__details",!0),Be(e,re),y(e,"bx--inline-notification",!0),y(e,"bx--inline-notification--low-contrast",i[1]),y(e,"bx--inline-notification--hide-close-button",i[5]),y(e,"bx--inline-notification--error",i[0]==="error"),y(e,"bx--inline-notification--info",i[0]==="info"),y(e,"bx--inline-notification--info-square",i[0]==="info-square"),y(e,"bx--inline-notification--success",i[0]==="success"),y(e,"bx--inline-notification--warning",i[0]==="warning"),y(e,"bx--inline-notification--warning-alt",i[0]==="warning-alt")},m(R,E){O(R,e,E),B(e,t),K(r,t,null),B(t,n),B(t,l),B(l,o),v&&v.m(o,null),B(l,s),B(l,f),P&&P.m(f,null),B(l,a),T&&T.m(l,null),B(e,u),D&&D.m(e,null),B(e,c),Z&&Z.m(e,null),d=!0,m||(k=[se(e,"click",i[14]),se(e,"mouseover",i[15]),se(e,"mouseenter",i[16]),se(e,"mouseleave",i[17])],m=!0)},p(R,E){const C={};E&1&&(C.kind=R[0]),E&64&&(C.iconDescription=R[6]),r.$set(C),A?A.p&&(!d||E&4096)&&be(A,_,R,R[12],d?ke(_,R[12],E,zi):Ee(R[12]),pn):v&&v.p&&(!d||E&8)&&v.p(R,d?E:-1),S?S.p&&(!d||E&4096)&&be(S,b,R,R[12],d?ke(b,R[12],E,Ci):Ee(R[12]),mn):P&&P.p&&(!d||E&16)&&P.p(R,d?E:-1),T&&T.p&&(!d||E&4096)&&be(T,I,R,R[12],d?ke(I,R[12],E,null):Ee(R[12]),null),D&&D.p&&(!d||E&4096)&&be(D,L,R,R[12],d?ke(L,R[12],E,Li):Ee(R[12]),hn),R[5]?Z&&(X(),g(Z,1,1,()=>{Z=null}),ee()):Z?(Z.p(R,E),E&32&&p(Z,1)):(Z=_n(R),Z.c(),p(Z,1),Z.m(e,null)),Be(e,re=Le(ne,[(!d||E&4)&&{role:R[2]},(!d||E&1)&&{kind:R[0]},E&1024&&R[10]])),y(e,"bx--inline-notification",!0),y(e,"bx--inline-notification--low-contrast",R[1]),y(e,"bx--inline-notification--hide-close-button",R[5]),y(e,"bx--inline-notification--error",R[0]==="error"),y(e,"bx--inline-notification--info",R[0]==="info"),y(e,"bx--inline-notification--info-square",R[0]==="info-square"),y(e,"bx--inline-notification--success",R[0]==="success"),y(e,"bx--inline-notification--warning",R[0]==="warning"),y(e,"bx--inline-notification--warning-alt",R[0]==="warning-alt")},i(R){d||(p(r.$$.fragment,R),p(v,R),p(P,R),p(T,R),p(D,R),p(Z),d=!0)},o(R){g(r.$$.fragment,R),g(v,R),g(P,R),g(T,R),g(D,R),g(Z),d=!1},d(R){R&&h(e),$(r),v&&v.d(R),P&&P.d(R),T&&T.d(R),D&&D.d(R),Z&&Z.d(),m=!1,ot(k)}}}function Di(i){let e;return{c(){e=ve(i[3])},l(t){e=we(t,i[3])},m(t,r){O(t,e,r)},p(t,r){r&8&&Pe(e,t[3])},d(t){t&&h(e)}}}function Vi(i){let e;return{c(){e=ve(i[4])},l(t){e=we(t,i[4])},m(t,r){O(t,e,r)},p(t,r){r&16&&Pe(e,t[4])},d(t){t&&h(e)}}}function _n(i){let e,t;return e=new Oi({props:{iconDescription:i[7],notificationType:"inline"}}),e.$on("click",i[9]),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p(r,n){const l={};n&128&&(l.iconDescription=r[7]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Mi(i){let e,t,r=i[8]&&gn(i);return{c(){r&&r.c(),e=F()},l(n){r&&r.l(n),e=F()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,[l]){n[8]?r?(r.p(n,l),l&256&&p(r,1)):(r=gn(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&h(e)}}}function Ui(i,e,t){const r=["kind","lowContrast","timeout","role","title","subtitle","hideCloseButton","statusIconDescription","closeButtonDescription"];let n=Ae(e,r),{$$slots:l={},$$scope:o}=e,{kind:s="error"}=e,{lowContrast:f=!1}=e,{timeout:a=0}=e,{role:u="alert"}=e,{title:c=""}=e,{subtitle:d=""}=e,{hideCloseButton:m=!1}=e,{statusIconDescription:k=s+" icon"}=e,{closeButtonDescription:_="Close notification"}=e;const A=jt();let v=!0,b;function S(D){A("close",{timeout:D===!0},{cancelable:!0})&&t(8,v=!1)}Gt(()=>(a&&(b=setTimeout(()=>S(!0),a)),()=>{clearTimeout(b)}));function P(D){ge.call(this,i,D)}function I(D){ge.call(this,i,D)}function T(D){ge.call(this,i,D)}function L(D){ge.call(this,i,D)}return i.$$set=D=>{e=me(me({},e),De(D)),t(10,n=Ae(e,r)),"kind"in D&&t(0,s=D.kind),"lowContrast"in D&&t(1,f=D.lowContrast),"timeout"in D&&t(11,a=D.timeout),"role"in D&&t(2,u=D.role),"title"in D&&t(3,c=D.title),"subtitle"in D&&t(4,d=D.subtitle),"hideCloseButton"in D&&t(5,m=D.hideCloseButton),"statusIconDescription"in D&&t(6,k=D.statusIconDescription),"closeButtonDescription"in D&&t(7,_=D.closeButtonDescription),"$$scope"in D&&t(12,o=D.$$scope)},[s,f,u,c,d,m,k,_,v,S,n,a,o,l,P,I,T,L]}class qi extends ce{constructor(e){super(),de(this,e,Ui,Mi,he,{kind:0,lowContrast:1,timeout:11,role:2,title:3,subtitle:4,hideCloseButton:5,statusIconDescription:6,closeButtonDescription:7})}}const Ga=qi;function bn(i){let e,t;return{c(){e=Me("title"),t=ve(i[1])},l(r){e=Ue(r,"title",{});var n=V(e);t=we(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&h(e)}}}function Bi(i){let e,t,r=i[1]&&bn(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let o=0;o<n.length;o+=1)l=me(l,n[o]);return{c(){e=Me("svg"),r&&r.c(),t=Me("path"),this.h()},l(o){e=Ue(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=V(e);r&&r.l(s),t=Ue(s,"path",{d:!0}),V(t).forEach(h),s.forEach(h),this.h()},h(){z(t,"d","M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"),Ge(e,l)},m(o,s){O(o,e,s),r&&r.m(e,null),B(e,t)},p(o,[s]){o[1]?r?r.p(o,s):(r=bn(o),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ge(e,l=Le(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:o[0]},s&1&&{height:o[0]},s&4&&o[2],s&8&&o[3]]))},i:ue,o:ue,d(o){o&&h(e),r&&r.d()}}}function Fi(i,e,t){let r,n;const l=["size","title"];let o=Ae(e,l),{size:s=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=me(me({},e),De(a))),t(3,o=Ae(e,l)),"size"in a&&t(0,s=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=De(e),[s,f,n,o,r]}class xi extends ce{constructor(e){super(),de(this,e,Fi,Bi,he,{size:0,title:1})}}const Zi=xi;function En(i){let e,t;return{c(){e=Me("title"),t=ve(i[1])},l(r){e=Ue(r,"title",{});var n=V(e);t=we(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&h(e)}}}function Hi(i){let e,t,r=i[1]&&En(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let o=0;o<n.length;o+=1)l=me(l,n[o]);return{c(){e=Me("svg"),r&&r.c(),t=Me("path"),this.h()},l(o){e=Ue(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=V(e);r&&r.l(s),t=Ue(s,"path",{d:!0}),V(t).forEach(h),s.forEach(h),this.h()},h(){z(t,"d","M8 15H24V17H8z"),Ge(e,l)},m(o,s){O(o,e,s),r&&r.m(e,null),B(e,t)},p(o,[s]){o[1]?r?r.p(o,s):(r=En(o),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ge(e,l=Le(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:o[0]},s&1&&{height:o[0]},s&4&&o[2],s&8&&o[3]]))},i:ue,o:ue,d(o){o&&h(e),r&&r.d()}}}function Ji(i,e,t){let r,n;const l=["size","title"];let o=Ae(e,l),{size:s=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=me(me({},e),De(a))),t(3,o=Ae(e,l)),"size"in a&&t(0,s=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=De(e),[s,f,n,o,r]}class Wi extends ce{constructor(e){super(),de(this,e,Ji,Hi,he,{size:0,title:1})}}const Ki=Wi;function kn(i){let e,t;return{c(){e=Me("title"),t=ve(i[1])},l(r){e=Ue(r,"title",{});var n=V(e);t=we(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&h(e)}}}function $i(i){let e,t,r=i[1]&&kn(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let o=0;o<n.length;o+=1)l=me(l,n[o]);return{c(){e=Me("svg"),r&&r.c(),t=Me("path"),this.h()},l(o){e=Ue(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=V(e);r&&r.l(s),t=Ue(s,"path",{d:!0}),V(t).forEach(h),s.forEach(h),this.h()},h(){z(t,"d","M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z"),Ge(e,l)},m(o,s){O(o,e,s),r&&r.m(e,null),B(e,t)},p(o,[s]){o[1]?r?r.p(o,s):(r=kn(o),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ge(e,l=Le(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:o[0]},s&1&&{height:o[0]},s&4&&o[2],s&8&&o[3]]))},i:ue,o:ue,d(o){o&&h(e),r&&r.d()}}}function Qi(i,e,t){let r,n;const l=["size","title"];let o=Ae(e,l),{size:s=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=me(me({},e),De(a))),t(3,o=Ae(e,l)),"size"in a&&t(0,s=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=De(e),[s,f,n,o,r]}class Yi extends ce{constructor(e){super(),de(this,e,Qi,$i,he,{size:0,title:1})}}const Fr=Yi,Gi=i=>({}),yn=i=>({});function vn(i){let e,t;const r=i[34].label,n=_e(r,i,i[33],yn),l=n||Xi(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(o){e=q(o,"LABEL",{for:!0});var s=V(e);l&&l.l(s),s.forEach(h),this.h()},h(){z(e,"for",i[18]),y(e,"bx--label",!0),y(e,"bx--label--disabled",i[8]),y(e,"bx--visually-hidden",i[17])},m(o,s){O(o,e,s),l&&l.m(e,null),t=!0},p(o,s){n?n.p&&(!t||s[1]&4)&&be(n,r,o,o[33],t?ke(r,o[33],s,Gi):Ee(o[33]),yn):l&&l.p&&(!t||s[0]&65536)&&l.p(o,t?s:[-1,-1]),(!t||s[0]&262144)&&z(e,"for",o[18]),(!t||s[0]&256)&&y(e,"bx--label--disabled",o[8]),(!t||s[0]&131072)&&y(e,"bx--visually-hidden",o[17])},i(o){t||(p(l,o),t=!0)},o(o){g(l,o),t=!1},d(o){o&&h(e),l&&l.d(o)}}}function Xi(i){let e;return{c(){e=ve(i[16])},l(t){e=we(t,i[16])},m(t,r){O(t,e,r)},p(t,r){r[0]&65536&&Pe(e,t[16])},d(t){t&&h(e)}}}function el(i){let e,t,r,n=i[11]&&wn(),l=!i[11]&&i[13]&&On();return{c(){n&&n.c(),e=fe(),l&&l.c(),t=F()},l(o){n&&n.l(o),e=ae(o),l&&l.l(o),t=F()},m(o,s){n&&n.m(o,s),O(o,e,s),l&&l.m(o,s),O(o,t,s),r=!0},p(o,s){o[11]?n?s[0]&2048&&p(n,1):(n=wn(),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!o[11]&&o[13]?l?s[0]&10240&&p(l,1):(l=On(),l.c(),p(l,1),l.m(t.parentNode,t)):l&&(X(),g(l,1,1,()=>{l=null}),ee())},i(o){r||(p(n),p(l),r=!0)},o(o){g(n),g(l),r=!1},d(o){n&&n.d(o),o&&h(e),l&&l.d(o),o&&h(t)}}}function tl(i){let e,t;return e=new Fr({props:{class:"bx--text-input__readonly-icon"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function wn(i){let e,t;return e=new Ur({props:{class:"bx--number__invalid"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function On(i){let e,t;return e=new qr({props:{class:"bx--number__invalid bx--number__invalid--warning"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Sn(i){let e,t,r,n,l,o,s,f,a,u,c,d,m,k,_,A,v;return r=new Ki({props:{class:"down-icon"}}),u=new Zi({props:{class:"up-icon"}}),{c(){e=U("div"),t=U("button"),W(r.$$.fragment),o=fe(),s=U("div"),f=fe(),a=U("button"),W(u.$$.fragment),m=fe(),k=U("div"),this.h()},l(b){e=q(b,"DIV",{});var S=V(e);t=q(S,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var P=V(t);ie(r.$$.fragment,P),P.forEach(h),o=ae(S),s=q(S,"DIV",{}),V(s).forEach(h),f=ae(S),a=q(S,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var I=V(a);ie(u.$$.fragment,I),I.forEach(h),m=ae(S),k=q(S,"DIV",{}),V(k).forEach(h),S.forEach(h),this.h()},h(){z(t,"type","button"),z(t,"tabindex","-1"),z(t,"title",n=i[23]||i[10]),z(t,"aria-label",l=i[23]||i[10]),t.disabled=i[8],y(t,"bx--number__control-btn",!0),y(t,"down-icon",!0),y(s,"bx--number__rule-divider",!0),z(a,"type","button"),z(a,"tabindex","-1"),z(a,"title",c=i[24]||i[10]),z(a,"aria-label",d=i[24]||i[10]),a.disabled=i[8],y(a,"bx--number__control-btn",!0),y(a,"up-icon",!0),y(k,"bx--number__rule-divider",!0),y(e,"bx--number__controls",!0)},m(b,S){O(b,e,S),B(e,t),K(r,t,null),B(e,o),B(e,s),B(e,f),B(e,a),K(u,a,null),B(e,m),B(e,k),_=!0,A||(v=[se(t,"click",i[45]),se(a,"click",i[46])],A=!0)},p(b,S){(!_||S[0]&8389632&&n!==(n=b[23]||b[10]))&&z(t,"title",n),(!_||S[0]&8389632&&l!==(l=b[23]||b[10]))&&z(t,"aria-label",l),(!_||S[0]&256)&&(t.disabled=b[8]),(!_||S[0]&16778240&&c!==(c=b[24]||b[10]))&&z(a,"title",c),(!_||S[0]&16778240&&d!==(d=b[24]||b[10]))&&z(a,"aria-label",d),(!_||S[0]&256)&&(a.disabled=b[8])},i(b){_||(p(r.$$.fragment,b),p(u.$$.fragment,b),_=!0)},o(b){g(r.$$.fragment,b),g(u.$$.fragment,b),_=!1},d(b){b&&h(e),$(r),$(u),A=!1,ot(v)}}}function Pn(i){let e,t;return{c(){e=U("div"),t=ve(i[15]),this.h()},l(r){e=q(r,"DIV",{});var n=V(e);t=we(n,i[15]),n.forEach(h),this.h()},h(){y(e,"bx--form__helper-text",!0),y(e,"bx--form__helper-text--disabled",i[8])},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&32768&&Pe(t,r[15]),n[0]&256&&y(e,"bx--form__helper-text--disabled",r[8])},d(r){r&&h(e)}}}function In(i){let e,t;return{c(){e=U("div"),t=ve(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[12]),n.forEach(h),this.h()},h(){z(e,"id",i[21]),y(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&2097152&&z(e,"id",r[21])},d(r){r&&h(e)}}}function Tn(i){let e,t;return{c(){e=U("div"),t=ve(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[14]),n.forEach(h),this.h()},h(){z(e,"id",i[21]),y(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&2097152&&z(e,"id",r[21])},d(r){r&&h(e)}}}function nl(i){let e,t,r,n,l,o,s,f,a,u,c,d,m,k,_,A,v,b,S,P,I=(i[28].label||i[16])&&vn(i),T=[{type:"number"},{pattern:"[0-9]*"},{"aria-describedby":i[21]},{"data-invalid":o=i[22]||void 0},{"aria-invalid":s=i[22]||void 0},{"aria-label":f=i[16]?void 0:i[20]},{disabled:i[8]},{id:i[18]},{name:i[19]},{max:i[4]},{min:i[5]},{step:i[3]},{value:a=i[0]??""},{readOnly:i[7]},i[29]],L={};for(let w=0;w<T.length;w+=1)L=me(L,T[w]);const D=[tl,el],Z=[];function ne(w,j){return w[7]?0:1}c=ne(i),d=Z[c]=D[c](i);let re=!i[9]&&Sn(i),R=!i[22]&&!i[13]&&i[15]&&Pn(i),E=i[22]&&In(i),C=!i[22]&&i[13]&&Tn(i);return{c(){e=U("div"),t=U("div"),I&&I.c(),r=fe(),n=U("div"),l=U("input"),u=fe(),d.c(),m=fe(),re&&re.c(),k=fe(),R&&R.c(),_=fe(),E&&E.c(),A=fe(),C&&C.c(),this.h()},l(w){e=q(w,"DIV",{});var j=V(e);t=q(j,"DIV",{"data-invalid":!0});var J=V(t);I&&I.l(J),r=ae(J),n=q(J,"DIV",{});var le=V(n);l=q(le,"INPUT",{type:!0,pattern:!0,"aria-describedby":!0,"data-invalid":!0,"aria-invalid":!0,"aria-label":!0,id:!0,name:!0,max:!0,min:!0,step:!0}),u=ae(le),d.l(le),m=ae(le),re&&re.l(le),le.forEach(h),k=ae(J),R&&R.l(J),_=ae(J),E&&E.l(J),A=ae(J),C&&C.l(J),J.forEach(h),j.forEach(h),this.h()},h(){Be(l,L),y(n,"bx--number__input-wrapper",!0),y(n,"bx--number__input-wrapper--warning",!i[11]&&i[13]),z(t,"data-invalid",v=i[22]||void 0),y(t,"bx--number",!0),y(t,"bx--number--helpertext",!0),y(t,"bx--number--readonly",i[7]),y(t,"bx--number--light",i[6]),y(t,"bx--number--nolabel",i[17]),y(t,"bx--number--nosteppers",i[9]),y(t,"bx--number--sm",i[2]==="sm"),y(t,"bx--number--xl",i[2]==="xl"),y(e,"bx--form-item",!0)},m(w,j){O(w,e,j),B(e,t),I&&I.m(t,null),B(t,r),B(t,n),B(n,l),l.autofocus&&l.focus(),i[44](l),B(n,u),Z[c].m(n,null),B(n,m),re&&re.m(n,null),B(t,k),R&&R.m(t,null),B(t,_),E&&E.m(t,null),B(t,A),C&&C.m(t,null),b=!0,S||(P=[se(l,"change",i[27]),se(l,"input",i[26]),se(l,"keydown",i[39]),se(l,"keyup",i[40]),se(l,"focus",i[41]),se(l,"blur",i[42]),se(l,"paste",i[43]),se(e,"click",i[35]),se(e,"mouseover",i[36]),se(e,"mouseenter",i[37]),se(e,"mouseleave",i[38])],S=!0)},p(w,j){w[28].label||w[16]?I?(I.p(w,j),j[0]&268500992&&p(I,1)):(I=vn(w),I.c(),p(I,1),I.m(t,r)):I&&(X(),g(I,1,1,()=>{I=null}),ee()),Be(l,L=Le(T,[{type:"number"},{pattern:"[0-9]*"},(!b||j[0]&2097152)&&{"aria-describedby":w[21]},(!b||j[0]&4194304&&o!==(o=w[22]||void 0))&&{"data-invalid":o},(!b||j[0]&4194304&&s!==(s=w[22]||void 0))&&{"aria-invalid":s},(!b||j[0]&1114112&&f!==(f=w[16]?void 0:w[20]))&&{"aria-label":f},(!b||j[0]&256)&&{disabled:w[8]},(!b||j[0]&262144)&&{id:w[18]},(!b||j[0]&524288)&&{name:w[19]},(!b||j[0]&16)&&{max:w[4]},(!b||j[0]&32)&&{min:w[5]},(!b||j[0]&8)&&{step:w[3]},(!b||j[0]&1&&a!==(a=w[0]??"")&&l.value!==a)&&{value:a},(!b||j[0]&128)&&{readOnly:w[7]},j[0]&536870912&&w[29]]));let J=c;c=ne(w),c===J?Z[c].p(w,j):(X(),g(Z[J],1,1,()=>{Z[J]=null}),ee(),d=Z[c],d?d.p(w,j):(d=Z[c]=D[c](w),d.c()),p(d,1),d.m(n,m)),w[9]?re&&(X(),g(re,1,1,()=>{re=null}),ee()):re?(re.p(w,j),j[0]&512&&p(re,1)):(re=Sn(w),re.c(),p(re,1),re.m(n,null)),(!b||j[0]&10240)&&y(n,"bx--number__input-wrapper--warning",!w[11]&&w[13]),!w[22]&&!w[13]&&w[15]?R?R.p(w,j):(R=Pn(w),R.c(),R.m(t,_)):R&&(R.d(1),R=null),w[22]?E?E.p(w,j):(E=In(w),E.c(),E.m(t,A)):E&&(E.d(1),E=null),!w[22]&&w[13]?C?C.p(w,j):(C=Tn(w),C.c(),C.m(t,null)):C&&(C.d(1),C=null),(!b||j[0]&4194304&&v!==(v=w[22]||void 0))&&z(t,"data-invalid",v),(!b||j[0]&128)&&y(t,"bx--number--readonly",w[7]),(!b||j[0]&64)&&y(t,"bx--number--light",w[6]),(!b||j[0]&131072)&&y(t,"bx--number--nolabel",w[17]),(!b||j[0]&512)&&y(t,"bx--number--nosteppers",w[9]),(!b||j[0]&4)&&y(t,"bx--number--sm",w[2]==="sm"),(!b||j[0]&4)&&y(t,"bx--number--xl",w[2]==="xl")},i(w){b||(p(I),p(d),p(re),b=!0)},o(w){g(I),g(d),g(re),b=!1},d(w){w&&h(e),I&&I.d(),i[44](null),Z[c].d(),re&&re.d(),R&&R.d(),E&&E.d(),C&&C.d(),S=!1,ot(P)}}}function An(i){return i!=""?Number(i):null}function rl(i,e,t){let r,n,l,o,s;const f=["size","value","step","max","min","light","readonly","allowEmpty","disabled","hideSteppers","iconDescription","invalid","invalidText","warn","warnText","helperText","label","hideLabel","translateWithId","translationIds","id","name","ref"];let a=Ae(e,f),{$$slots:u={},$$scope:c}=e;const d=Vr(u);let{size:m=void 0}=e,{value:k=null}=e,{step:_=1}=e,{max:A=void 0}=e,{min:v=void 0}=e,{light:b=!1}=e,{readonly:S=!1}=e,{allowEmpty:P=!1}=e,{disabled:I=!1}=e,{hideSteppers:T=!1}=e,{iconDescription:L=""}=e,{invalid:D=!1}=e,{invalidText:Z=""}=e,{warn:ne=!1}=e,{warnText:re=""}=e,{helperText:R=""}=e,{label:E=""}=e,{hideLabel:C=!1}=e,{translateWithId:w=M=>Ie[M]}=e;const j={increment:"increment",decrement:"decrement"};let{id:J="ccs-"+Math.random().toString(36)}=e,{name:le=void 0}=e,{ref:oe=null}=e;const Ie={[j.increment]:"Increment number",[j.decrement]:"Decrement number"},Te=jt();function N(M){M?oe.stepUp():oe.stepDown(),t(0,k=+oe.value),Te("input",k),Te("change",k)}function te({target:M}){t(0,k=An(M.value)),Te("input",k)}function je({target:M}){Te("change",An(M.value))}function Ce(M){ge.call(this,i,M)}function Ct(M){ge.call(this,i,M)}function zt(M){ge.call(this,i,M)}function Dt(M){ge.call(this,i,M)}function Vt(M){ge.call(this,i,M)}function Mt(M){ge.call(this,i,M)}function x(M){ge.call(this,i,M)}function hi(M){ge.call(this,i,M)}function mi(M){ge.call(this,i,M)}function pi(M){qe[M?"unshift":"push"](()=>{oe=M,t(1,oe)})}const gi=()=>{N(!1)},_i=()=>{N(!0)};return i.$$set=M=>{t(49,e=me(me({},e),De(M))),t(29,a=Ae(e,f)),"size"in M&&t(2,m=M.size),"value"in M&&t(0,k=M.value),"step"in M&&t(3,_=M.step),"max"in M&&t(4,A=M.max),"min"in M&&t(5,v=M.min),"light"in M&&t(6,b=M.light),"readonly"in M&&t(7,S=M.readonly),"allowEmpty"in M&&t(30,P=M.allowEmpty),"disabled"in M&&t(8,I=M.disabled),"hideSteppers"in M&&t(9,T=M.hideSteppers),"iconDescription"in M&&t(10,L=M.iconDescription),"invalid"in M&&t(11,D=M.invalid),"invalidText"in M&&t(12,Z=M.invalidText),"warn"in M&&t(13,ne=M.warn),"warnText"in M&&t(14,re=M.warnText),"helperText"in M&&t(15,R=M.helperText),"label"in M&&t(16,E=M.label),"hideLabel"in M&&t(17,C=M.hideLabel),"translateWithId"in M&&t(31,w=M.translateWithId),"id"in M&&t(18,J=M.id),"name"in M&&t(19,le=M.name),"ref"in M&&t(1,oe=M.ref),"$$scope"in M&&t(33,c=M.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&1&&t(24,r=w("increment")),i.$$.dirty[1]&1&&t(23,n=w("decrement")),i.$$.dirty[0]&1073744049&&t(22,l=D&&!S||!P&&k==null||k>A||typeof k=="number"&&k<v),i.$$.dirty[0]&262144&&t(21,o=`error-${J}`),t(20,s=e["aria-label"]||"Numeric input field with increment and decrement buttons")},e=De(e),[k,oe,m,_,A,v,b,S,I,T,L,D,Z,ne,re,R,E,C,J,le,s,o,l,n,r,N,te,je,d,a,P,w,j,c,u,Ce,Ct,zt,Dt,Vt,Mt,x,hi,mi,pi,gi,_i]}class il extends ce{constructor(e){super(),de(this,e,rl,nl,he,{size:2,value:0,step:3,max:4,min:5,light:6,readonly:7,allowEmpty:30,disabled:8,hideSteppers:9,iconDescription:10,invalid:11,invalidText:12,warn:13,warnText:14,helperText:15,label:16,hideLabel:17,translateWithId:31,translationIds:32,id:18,name:19,ref:1},null,[-1,-1])}get translationIds(){return this.$$.ctx[32]}}const ll=il,ol=i=>({}),Rn=i=>({}),sl=i=>({}),jn=i=>({});function Nn(i){let e,t,r,n=i[9]&&Ln(i),l=!i[22]&&i[6]&&Cn(i);return{c(){e=U("div"),n&&n.c(),t=fe(),l&&l.c(),this.h()},l(o){e=q(o,"DIV",{});var s=V(e);n&&n.l(s),t=ae(s),l&&l.l(s),s.forEach(h),this.h()},h(){y(e,"bx--text-input__label-helper-wrapper",!0)},m(o,s){O(o,e,s),n&&n.m(e,null),B(e,t),l&&l.m(e,null),r=!0},p(o,s){o[9]?n?(n.p(o,s),s[0]&512&&p(n,1)):(n=Ln(o),n.c(),p(n,1),n.m(e,t)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!o[22]&&o[6]?l?l.p(o,s):(l=Cn(o),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(o){r||(p(n),r=!0)},o(o){g(n),r=!1},d(o){o&&h(e),n&&n.d(),l&&l.d()}}}function Ln(i){let e,t;const r=i[28].labelText,n=_e(r,i,i[27],jn),l=n||fl(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(o){e=q(o,"LABEL",{for:!0});var s=V(e);l&&l.l(s),s.forEach(h),this.h()},h(){z(e,"for",i[7]),y(e,"bx--label",!0),y(e,"bx--visually-hidden",i[10]),y(e,"bx--label--disabled",i[5]),y(e,"bx--label--inline",i[16]),y(e,"bx--label--inline--sm",i[2]==="sm"),y(e,"bx--label--inline--xl",i[2]==="xl")},m(o,s){O(o,e,s),l&&l.m(e,null),t=!0},p(o,s){n?n.p&&(!t||s[0]&134217728)&&be(n,r,o,o[27],t?ke(r,o[27],s,sl):Ee(o[27]),jn):l&&l.p&&(!t||s[0]&512)&&l.p(o,t?s:[-1,-1]),(!t||s[0]&128)&&z(e,"for",o[7]),(!t||s[0]&1024)&&y(e,"bx--visually-hidden",o[10]),(!t||s[0]&32)&&y(e,"bx--label--disabled",o[5]),(!t||s[0]&65536)&&y(e,"bx--label--inline",o[16]),(!t||s[0]&4)&&y(e,"bx--label--inline--sm",o[2]==="sm"),(!t||s[0]&4)&&y(e,"bx--label--inline--xl",o[2]==="xl")},i(o){t||(p(l,o),t=!0)},o(o){g(l,o),t=!1},d(o){o&&h(e),l&&l.d(o)}}}function fl(i){let e;return{c(){e=ve(i[9])},l(t){e=we(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&h(e)}}}function Cn(i){let e,t;return{c(){e=U("div"),t=ve(i[6]),this.h()},l(r){e=q(r,"DIV",{});var n=V(e);t=we(n,i[6]),n.forEach(h),this.h()},h(){y(e,"bx--form__helper-text",!0),y(e,"bx--form__helper-text--disabled",i[5]),y(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&32&&y(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&y(e,"bx--form__helper-text--inline",r[16])},d(r){r&&h(e)}}}function zn(i){let e,t;const r=i[28].labelText,n=_e(r,i,i[27],Rn),l=n||al(i);return{c(){e=U("label"),l&&l.c(),this.h()},l(o){e=q(o,"LABEL",{for:!0});var s=V(e);l&&l.l(s),s.forEach(h),this.h()},h(){z(e,"for",i[7]),y(e,"bx--label",!0),y(e,"bx--visually-hidden",i[10]),y(e,"bx--label--disabled",i[5]),y(e,"bx--label--inline",i[16]),y(e,"bx--label--inline-sm",i[16]&&i[2]==="sm"),y(e,"bx--label--inline-xl",i[16]&&i[2]==="xl")},m(o,s){O(o,e,s),l&&l.m(e,null),t=!0},p(o,s){n?n.p&&(!t||s[0]&134217728)&&be(n,r,o,o[27],t?ke(r,o[27],s,ol):Ee(o[27]),Rn):l&&l.p&&(!t||s[0]&512)&&l.p(o,t?s:[-1,-1]),(!t||s[0]&128)&&z(e,"for",o[7]),(!t||s[0]&1024)&&y(e,"bx--visually-hidden",o[10]),(!t||s[0]&32)&&y(e,"bx--label--disabled",o[5]),(!t||s[0]&65536)&&y(e,"bx--label--inline",o[16]),(!t||s[0]&65540)&&y(e,"bx--label--inline-sm",o[16]&&o[2]==="sm"),(!t||s[0]&65540)&&y(e,"bx--label--inline-xl",o[16]&&o[2]==="xl")},i(o){t||(p(l,o),t=!0)},o(o){g(l,o),t=!1},d(o){o&&h(e),l&&l.d(o)}}}function al(i){let e;return{c(){e=ve(i[9])},l(t){e=we(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Pe(e,t[9])},d(t){t&&h(e)}}}function ul(i){let e,t,r,n=i[11]&&Dn(),l=!i[11]&&i[13]&&Vn();return{c(){n&&n.c(),e=fe(),l&&l.c(),t=F()},l(o){n&&n.l(o),e=ae(o),l&&l.l(o),t=F()},m(o,s){n&&n.m(o,s),O(o,e,s),l&&l.m(o,s),O(o,t,s),r=!0},p(o,s){o[11]?n?s[0]&2048&&p(n,1):(n=Dn(),n.c(),p(n,1),n.m(e.parentNode,e)):n&&(X(),g(n,1,1,()=>{n=null}),ee()),!o[11]&&o[13]?l?s[0]&10240&&p(l,1):(l=Vn(),l.c(),p(l,1),l.m(t.parentNode,t)):l&&(X(),g(l,1,1,()=>{l=null}),ee())},i(o){r||(p(n),p(l),r=!0)},o(o){g(n),g(l),r=!1},d(o){n&&n.d(o),o&&h(e),l&&l.d(o),o&&h(t)}}}function cl(i){let e,t;return e=new Fr({props:{class:"bx--text-input__readonly-icon"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Dn(i){let e,t;return e=new Ur({props:{class:"bx--text-input__invalid-icon"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Vn(i){let e,t;return e=new qr({props:{class:`bx--text-input__invalid-icon
            bx--text-input__invalid-icon--warning`}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Mn(i){let e;return{c(){e=U("hr"),this.h()},l(t){e=q(t,"HR",{}),this.h()},h(){y(e,"bx--text-input__divider",!0)},m(t,r){O(t,e,r)},d(t){t&&h(e)}}}function Un(i){let e,t;return{c(){e=U("div"),t=ve(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[12]),n.forEach(h),this.h()},h(){z(e,"id",i[19]),y(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&z(e,"id",r[19])},d(r){r&&h(e)}}}function qn(i){let e,t;return{c(){e=U("div"),t=ve(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[14]),n.forEach(h),this.h()},h(){z(e,"id",i[18]),y(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&z(e,"id",r[18])},d(r){r&&h(e)}}}function Bn(i){let e,t;return{c(){e=U("div"),t=ve(i[6]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[6]),n.forEach(h),this.h()},h(){z(e,"id",i[20]),y(e,"bx--form__helper-text",!0),y(e,"bx--form__helper-text--disabled",i[5]),y(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&64&&Pe(t,r[6]),n[0]&1048576&&z(e,"id",r[20]),n[0]&32&&y(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&y(e,"bx--form__helper-text--inline",r[16])},d(r){r&&h(e)}}}function Fn(i){let e,t;return{c(){e=U("div"),t=ve(i[12]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[12]),n.forEach(h),this.h()},h(){z(e,"id",i[19]),y(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&4096&&Pe(t,r[12]),n[0]&524288&&z(e,"id",r[19])},d(r){r&&h(e)}}}function xn(i){let e,t;return{c(){e=U("div"),t=ve(i[14]),this.h()},l(r){e=q(r,"DIV",{id:!0});var n=V(e);t=we(n,i[14]),n.forEach(h),this.h()},h(){z(e,"id",i[18]),y(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n[0]&16384&&Pe(t,r[14]),n[0]&262144&&z(e,"id",r[18])},d(r){r&&h(e)}}}function dl(i){let e,t,r,n,l,o,s,f,a,u,c,d,m,k,_,A,v,b,S,P,I,T,L,D,Z=i[16]&&Nn(i),ne=!i[16]&&(i[9]||i[26].labelText)&&zn(i);const re=[cl,ul],R=[];function E(N,te){return N[17]?0:1}o=E(i),s=R[o]=re[o](i);let C=[{"data-invalid":u=i[21]||void 0},{"aria-invalid":c=i[21]||void 0},{"data-warn":d=i[13]||void 0},{"aria-describedby":m=i[21]?i[19]:i[13]?i[18]:i[6]?i[20]:void 0},{disabled:i[5]},{id:i[7]},{name:i[8]},{placeholder:i[3]},{required:i[15]},{readOnly:i[17]},i[25]],w={};for(let N=0;N<C.length;N+=1)w=me(w,C[N]);let j=i[22]&&Mn(),J=i[22]&&!i[16]&&i[11]&&Un(i),le=i[22]&&!i[16]&&i[13]&&qn(i),oe=!i[11]&&!i[13]&&!i[22]&&!i[16]&&i[6]&&Bn(i),Ie=!i[22]&&i[11]&&Fn(i),Te=!i[22]&&!i[11]&&i[13]&&xn(i);return{c(){e=U("div"),Z&&Z.c(),t=fe(),ne&&ne.c(),r=fe(),n=U("div"),l=U("div"),s.c(),f=fe(),a=U("input"),k=fe(),j&&j.c(),_=fe(),J&&J.c(),A=fe(),le&&le.c(),S=fe(),oe&&oe.c(),P=fe(),Ie&&Ie.c(),I=fe(),Te&&Te.c(),this.h()},l(N){e=q(N,"DIV",{});var te=V(e);Z&&Z.l(te),t=ae(te),ne&&ne.l(te),r=ae(te),n=q(te,"DIV",{});var je=V(n);l=q(je,"DIV",{"data-invalid":!0,"data-warn":!0});var Ce=V(l);s.l(Ce),f=ae(Ce),a=q(Ce,"INPUT",{"data-invalid":!0,"aria-invalid":!0,"data-warn":!0,"aria-describedby":!0,id:!0,name:!0,placeholder:!0}),k=ae(Ce),j&&j.l(Ce),_=ae(Ce),J&&J.l(Ce),A=ae(Ce),le&&le.l(Ce),Ce.forEach(h),S=ae(je),oe&&oe.l(je),P=ae(je),Ie&&Ie.l(je),I=ae(je),Te&&Te.l(je),je.forEach(h),te.forEach(h),this.h()},h(){Be(a,w),y(a,"bx--text-input",!0),y(a,"bx--text-input--light",i[4]),y(a,"bx--text-input--invalid",i[21]),y(a,"bx--text-input--warning",i[13]),y(a,"bx--text-input--sm",i[2]==="sm"),y(a,"bx--text-input--xl",i[2]==="xl"),z(l,"data-invalid",v=i[21]||void 0),z(l,"data-warn",b=i[13]||void 0),y(l,"bx--text-input__field-wrapper",!0),y(l,"bx--text-input__field-wrapper--warning",!i[11]&&i[13]),y(n,"bx--text-input__field-outer-wrapper",!0),y(n,"bx--text-input__field-outer-wrapper--inline",i[16]),y(e,"bx--form-item",!0),y(e,"bx--text-input-wrapper",!0),y(e,"bx--text-input-wrapper--inline",i[16]),y(e,"bx--text-input-wrapper--light",i[4]),y(e,"bx--text-input-wrapper--readonly",i[17])},m(N,te){O(N,e,te),Z&&Z.m(e,null),B(e,t),ne&&ne.m(e,null),B(e,r),B(e,n),B(n,l),R[o].m(l,null),B(l,f),B(l,a),a.autofocus&&a.focus(),i[38](a),an(a,i[0]),B(l,k),j&&j.m(l,null),B(l,_),J&&J.m(l,null),B(l,A),le&&le.m(l,null),B(n,S),oe&&oe.m(n,null),B(n,P),Ie&&Ie.m(n,null),B(n,I),Te&&Te.m(n,null),T=!0,L||(D=[se(a,"input",i[39]),se(a,"change",i[24]),se(a,"input",i[23]),se(a,"keydown",i[33]),se(a,"keyup",i[34]),se(a,"focus",i[35]),se(a,"blur",i[36]),se(a,"paste",i[37]),se(e,"click",i[29]),se(e,"mouseover",i[30]),se(e,"mouseenter",i[31]),se(e,"mouseleave",i[32])],L=!0)},p(N,te){N[16]?Z?(Z.p(N,te),te[0]&65536&&p(Z,1)):(Z=Nn(N),Z.c(),p(Z,1),Z.m(e,t)):Z&&(X(),g(Z,1,1,()=>{Z=null}),ee()),!N[16]&&(N[9]||N[26].labelText)?ne?(ne.p(N,te),te[0]&67174912&&p(ne,1)):(ne=zn(N),ne.c(),p(ne,1),ne.m(e,r)):ne&&(X(),g(ne,1,1,()=>{ne=null}),ee());let je=o;o=E(N),o===je?R[o].p(N,te):(X(),g(R[je],1,1,()=>{R[je]=null}),ee(),s=R[o],s?s.p(N,te):(s=R[o]=re[o](N),s.c()),p(s,1),s.m(l,f)),Be(a,w=Le(C,[(!T||te[0]&2097152&&u!==(u=N[21]||void 0))&&{"data-invalid":u},(!T||te[0]&2097152&&c!==(c=N[21]||void 0))&&{"aria-invalid":c},(!T||te[0]&8192&&d!==(d=N[13]||void 0))&&{"data-warn":d},(!T||te[0]&3940416&&m!==(m=N[21]?N[19]:N[13]?N[18]:N[6]?N[20]:void 0))&&{"aria-describedby":m},(!T||te[0]&32)&&{disabled:N[5]},(!T||te[0]&128)&&{id:N[7]},(!T||te[0]&256)&&{name:N[8]},(!T||te[0]&8)&&{placeholder:N[3]},(!T||te[0]&32768)&&{required:N[15]},(!T||te[0]&131072)&&{readOnly:N[17]},te[0]&33554432&&N[25]])),te[0]&1&&a.value!==N[0]&&an(a,N[0]),y(a,"bx--text-input",!0),y(a,"bx--text-input--light",N[4]),y(a,"bx--text-input--invalid",N[21]),y(a,"bx--text-input--warning",N[13]),y(a,"bx--text-input--sm",N[2]==="sm"),y(a,"bx--text-input--xl",N[2]==="xl"),N[22]?j||(j=Mn(),j.c(),j.m(l,_)):j&&(j.d(1),j=null),N[22]&&!N[16]&&N[11]?J?J.p(N,te):(J=Un(N),J.c(),J.m(l,A)):J&&(J.d(1),J=null),N[22]&&!N[16]&&N[13]?le?le.p(N,te):(le=qn(N),le.c(),le.m(l,null)):le&&(le.d(1),le=null),(!T||te[0]&2097152&&v!==(v=N[21]||void 0))&&z(l,"data-invalid",v),(!T||te[0]&8192&&b!==(b=N[13]||void 0))&&z(l,"data-warn",b),(!T||te[0]&10240)&&y(l,"bx--text-input__field-wrapper--warning",!N[11]&&N[13]),!N[11]&&!N[13]&&!N[22]&&!N[16]&&N[6]?oe?oe.p(N,te):(oe=Bn(N),oe.c(),oe.m(n,P)):oe&&(oe.d(1),oe=null),!N[22]&&N[11]?Ie?Ie.p(N,te):(Ie=Fn(N),Ie.c(),Ie.m(n,I)):Ie&&(Ie.d(1),Ie=null),!N[22]&&!N[11]&&N[13]?Te?Te.p(N,te):(Te=xn(N),Te.c(),Te.m(n,null)):Te&&(Te.d(1),Te=null),(!T||te[0]&65536)&&y(n,"bx--text-input__field-outer-wrapper--inline",N[16]),(!T||te[0]&65536)&&y(e,"bx--text-input-wrapper--inline",N[16]),(!T||te[0]&16)&&y(e,"bx--text-input-wrapper--light",N[4]),(!T||te[0]&131072)&&y(e,"bx--text-input-wrapper--readonly",N[17])},i(N){T||(p(Z),p(ne),p(s),T=!0)},o(N){g(Z),g(ne),g(s),T=!1},d(N){N&&h(e),Z&&Z.d(),ne&&ne.d(),R[o].d(),i[38](null),j&&j.d(),J&&J.d(),le&&le.d(),oe&&oe.d(),Ie&&Ie.d(),Te&&Te.d(),L=!1,ot(D)}}}function hl(i,e,t){let r,n,l,o,s;const f=["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"];let a=Ae(e,f),{$$slots:u={},$$scope:c}=e;const d=Vr(u);let{size:m=void 0}=e,{value:k=""}=e,{placeholder:_=""}=e,{light:A=!1}=e,{disabled:v=!1}=e,{helperText:b=""}=e,{id:S="ccs-"+Math.random().toString(36)}=e,{name:P=void 0}=e,{labelText:I=""}=e,{hideLabel:T=!1}=e,{invalid:L=!1}=e,{invalidText:D=""}=e,{warn:Z=!1}=e,{warnText:ne=""}=e,{ref:re=null}=e,{required:R=!1}=e,{inline:E=!1}=e,{readonly:C=!1}=e;const w=Mr("Form"),j=jt();function J(x){return a.type!=="number"?x:x!=""?Number(x):null}const le=x=>{t(0,k=J(x.target.value)),j("input",k)},oe=x=>{j("change",J(x.target.value))};function Ie(x){ge.call(this,i,x)}function Te(x){ge.call(this,i,x)}function N(x){ge.call(this,i,x)}function te(x){ge.call(this,i,x)}function je(x){ge.call(this,i,x)}function Ce(x){ge.call(this,i,x)}function Ct(x){ge.call(this,i,x)}function zt(x){ge.call(this,i,x)}function Dt(x){ge.call(this,i,x)}function Vt(x){qe[x?"unshift":"push"](()=>{re=x,t(1,re)})}function Mt(){k=this.value,t(0,k)}return i.$$set=x=>{e=me(me({},e),De(x)),t(25,a=Ae(e,f)),"size"in x&&t(2,m=x.size),"value"in x&&t(0,k=x.value),"placeholder"in x&&t(3,_=x.placeholder),"light"in x&&t(4,A=x.light),"disabled"in x&&t(5,v=x.disabled),"helperText"in x&&t(6,b=x.helperText),"id"in x&&t(7,S=x.id),"name"in x&&t(8,P=x.name),"labelText"in x&&t(9,I=x.labelText),"hideLabel"in x&&t(10,T=x.hideLabel),"invalid"in x&&t(11,L=x.invalid),"invalidText"in x&&t(12,D=x.invalidText),"warn"in x&&t(13,Z=x.warn),"warnText"in x&&t(14,ne=x.warnText),"ref"in x&&t(1,re=x.ref),"required"in x&&t(15,R=x.required),"inline"in x&&t(16,E=x.inline),"readonly"in x&&t(17,C=x.readonly),"$$scope"in x&&t(27,c=x.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&133120&&t(21,n=L&&!C),i.$$.dirty[0]&128&&t(20,l=`helper-${S}`),i.$$.dirty[0]&128&&t(19,o=`error-${S}`),i.$$.dirty[0]&128&&t(18,s=`warn-${S}`)},t(22,r=!!w&&w.isFluid),[k,re,m,_,A,v,b,S,P,I,T,L,D,Z,ne,R,E,C,s,o,l,n,r,le,oe,a,d,c,u,Ie,Te,N,te,je,Ce,Ct,zt,Dt,Vt,Mt]}class ml extends ce{constructor(e){super(),de(this,e,hl,dl,he,{size:2,value:0,placeholder:3,light:4,disabled:5,helperText:6,id:7,name:8,labelText:9,hideLabel:10,invalid:11,invalidText:12,warn:13,warnText:14,ref:1,required:15,inline:16,readonly:17},null,[-1,-1])}}const pl=ml;function Zn(i){let e,t;return{c(){e=Me("title"),t=ve(i[1])},l(r){e=Ue(r,"title",{});var n=V(e);t=we(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),B(e,t)},p(r,n){n&2&&Pe(t,r[1])},d(r){r&&h(e)}}}function gl(i){let e,t,r=i[1]&&Zn(i),n=[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},{width:i[0]},{height:i[0]},i[2],i[3]],l={};for(let o=0;o<n.length;o+=1)l=me(l,n[o]);return{c(){e=Me("svg"),r&&r.c(),t=Me("path"),this.h()},l(o){e=Ue(o,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var s=V(e);r&&r.l(s),t=Ue(s,"path",{d:!0}),V(t).forEach(h),s.forEach(h),this.h()},h(){z(t,"d","M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"),Ge(e,l)},m(o,s){O(o,e,s),r&&r.m(e,null),B(e,t)},p(o,[s]){o[1]?r?r.p(o,s):(r=Zn(o),r.c(),r.m(e,t)):r&&(r.d(1),r=null),Ge(e,l=Le(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},s&1&&{width:o[0]},s&1&&{height:o[0]},s&4&&o[2],s&8&&o[3]]))},i:ue,o:ue,d(o){o&&h(e),r&&r.d()}}}function _l(i,e,t){let r,n;const l=["size","title"];let o=Ae(e,l),{size:s=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=me(me({},e),De(a))),t(3,o=Ae(e,l)),"size"in a&&t(0,s=a.size),"title"in a&&t(1,f=a.title)},i.$$.update=()=>{t(4,r=e["aria-label"]||e["aria-labelledby"]||f),t(2,n={"aria-hidden":r?void 0:!0,role:r?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})},e=De(e),[s,f,n,o,r]}class bl extends ce{constructor(e){super(),de(this,e,_l,gl,he,{size:0,title:1})}}var El=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nt(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function Xa(i){if(i.__esModule)return i;var e=i.default;if(typeof e=="function"){var t=function r(){if(this instanceof r){var n=[null];n.push.apply(n,arguments);var l=Function.bind.apply(e,n);return new l}return e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(i).forEach(function(r){var n=Object.getOwnPropertyDescriptor(i,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return i[r]}})}),t}function kl(){const i=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||i(e)},Gt(()=>{console.warn=i})}function Hn(i,e,t){const r=i.slice();return r[18]=e[t],r}function Jn(i,e,t){const r=i.slice();return r[18]=e[t],r}function Wn(i,e,t){const r=i.slice();return r[10]=e[t],r}function Kn(i,e,t){const r=i.slice();return r[13]=e[t],r[15]=t,r}function $n(i,e,t){const r=i.slice();return r[16]=e[t],r[15]=t,r}function Qn(i,e,t){const r=i.slice();return r[7]=e[t],r}function yl(i){let e,t,r,n;const l=[Sl,Ol,wl],o=[];function s(f,a){return f[0]==="table"?0:f[0]==="list"?1:2}return e=s(i),t=o[e]=l[e](i),{c(){t.c(),r=F()},l(f){t.l(f),r=F()},m(f,a){o[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=s(f),e===u?o[e].p(f,a):(X(),g(o[u],1,1,()=>{o[u]=null}),ee(),t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r))},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){o[e].d(f),f&&h(r)}}}function vl(i){let e,t,r=i[1],n=[];for(let o=0;o<r.length;o+=1)n[o]=nr(Qn(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=F()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=F()},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&34){r=o[1];let f;for(f=0;f<r.length;f+=1){const a=Qn(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=nr(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function wl(i){let e,t,r;const n=[i[6]];var l=i[5][i[0]];function o(s){let f={$$slots:{default:[Tl]},$$scope:{ctx:s}};for(let a=0;a<n.length;a+=1)f=me(f,n[a]);return{props:f}}return l&&(e=Se(l,o(i))),{c(){e&&W(e.$$.fragment),t=F()},l(s){e&&ie(e.$$.fragment,s),t=F()},m(s,f){e&&K(e,s,f),O(s,t,f),r=!0},p(s,f){const a=f&64?Le(n,[st(s[6])]):{};if(f&8388706&&(a.$$scope={dirty:f,ctx:s}),f&33&&l!==(l=s[5][s[0]])){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{$(u,1)}),ee()}l?(e=Se(l,o(s)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&$(e,s)}}}function Ol(i){let e,t,r,n;const l=[Rl,Al],o=[];function s(f,a){return f[4]?0:1}return e=s(i),t=o[e]=l[e](i),{c(){t.c(),r=F()},l(f){t.l(f),r=F()},m(f,a){o[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=s(f),e===u?o[e].p(f,a):(X(),g(o[u],1,1,()=>{o[u]=null}),ee(),t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r))},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){o[e].d(f),f&&h(r)}}}function Sl(i){let e,t,r;var n=i[5].table;function l(o){return{props:{$$slots:{default:[Bl]},$$scope:{ctx:o}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=F()},l(o){e&&ie(e.$$.fragment,o),t=F()},m(o,s){e&&K(e,o,s),O(o,t,s),r=!0},p(o,s){const f={};if(s&8388716&&(f.$$scope={dirty:s,ctx:o}),s&32&&n!==(n=o[5].table)){if(e){X();const a=e;g(a.$$.fragment,1,0,()=>{$(a,1)}),ee()}n?(e=Se(n,l(o)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&$(e,o)}}}function Pl(i){let e=i[6].raw+"",t;return{c(){t=ve(e)},l(r){t=we(r,e)},m(r,n){O(r,t,n)},p(r,n){n&64&&e!==(e=r[6].raw+"")&&Pe(t,e)},i:ue,o:ue,d(r){r&&h(t)}}}function Il(i){let e,t;return e=new tt({props:{tokens:i[1],renderers:i[5]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p(r,n){const l={};n&2&&(l.tokens=r[1]),n&32&&(l.renderers=r[5]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Tl(i){let e,t,r,n;const l=[Il,Pl],o=[];function s(f,a){return f[1]?0:1}return e=s(i),t=o[e]=l[e](i),{c(){t.c(),r=F()},l(f){t.l(f),r=F()},m(f,a){o[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=s(f),e===u?o[e].p(f,a):(X(),g(o[u],1,1,()=>{o[u]=null}),ee(),t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r))},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){o[e].d(f),f&&h(r)}}}function Al(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function o(s){let f={$$slots:{default:[Nl]},$$scope:{ctx:s}};for(let a=0;a<n.length;a+=1)f=me(f,n[a]);return{props:f}}return l&&(e=Se(l,o(i))),{c(){e&&W(e.$$.fragment),t=F()},l(s){e&&ie(e.$$.fragment,s),t=F()},m(s,f){e&&K(e,s,f),O(s,t,f),r=!0},p(s,f){const a=f&80?Le(n,[f&16&&{ordered:s[4]},f&64&&st(s[6])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:s}),f&32&&l!==(l=s[5].list)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{$(u,1)}),ee()}l?(e=Se(l,o(s)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&$(e,s)}}}function Rl(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function o(s){let f={$$slots:{default:[Cl]},$$scope:{ctx:s}};for(let a=0;a<n.length;a+=1)f=me(f,n[a]);return{props:f}}return l&&(e=Se(l,o(i))),{c(){e&&W(e.$$.fragment),t=F()},l(s){e&&ie(e.$$.fragment,s),t=F()},m(s,f){e&&K(e,s,f),O(s,t,f),r=!0},p(s,f){const a=f&80?Le(n,[f&16&&{ordered:s[4]},f&64&&st(s[6])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:s}),f&32&&l!==(l=s[5].list)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{$(u,1)}),ee()}l?(e=Se(l,o(s)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&$(e,s)}}}function jl(i){let e,t,r;return e=new tt({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment),t=fe()},l(n){ie(e.$$.fragment,n),t=ae(n)},m(n,l){K(e,n,l),O(n,t,l),r=!0},p(n,l){const o={};l&64&&(o.tokens=n[18].tokens),l&32&&(o.renderers=n[5]),e.$set(o)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){$(e,n),n&&h(t)}}}function Yn(i){let e,t,r;const n=[i[18]];var l=i[5].unorderedlistitem||i[5].listitem;function o(s){let f={$$slots:{default:[jl]},$$scope:{ctx:s}};for(let a=0;a<n.length;a+=1)f=me(f,n[a]);return{props:f}}return l&&(e=Se(l,o(i))),{c(){e&&W(e.$$.fragment),t=F()},l(s){e&&ie(e.$$.fragment,s),t=F()},m(s,f){e&&K(e,s,f),O(s,t,f),r=!0},p(s,f){const a=f&64?Le(n,[st(s[18])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:s}),f&32&&l!==(l=s[5].unorderedlistitem||s[5].listitem)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{$(u,1)}),ee()}l?(e=Se(l,o(s)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&$(e,s)}}}function Nl(i){let e,t,r=i[6].items,n=[];for(let o=0;o<r.length;o+=1)n[o]=Yn(Hn(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=F()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=F()},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&96){r=o[6].items;let f;for(f=0;f<r.length;f+=1){const a=Hn(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=Yn(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function Ll(i){let e,t,r;return e=new tt({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment),t=fe()},l(n){ie(e.$$.fragment,n),t=ae(n)},m(n,l){K(e,n,l),O(n,t,l),r=!0},p(n,l){const o={};l&64&&(o.tokens=n[18].tokens),l&32&&(o.renderers=n[5]),e.$set(o)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){$(e,n),n&&h(t)}}}function Gn(i){let e,t,r;const n=[i[18]];var l=i[5].orderedlistitem||i[5].listitem;function o(s){let f={$$slots:{default:[Ll]},$$scope:{ctx:s}};for(let a=0;a<n.length;a+=1)f=me(f,n[a]);return{props:f}}return l&&(e=Se(l,o(i))),{c(){e&&W(e.$$.fragment),t=F()},l(s){e&&ie(e.$$.fragment,s),t=F()},m(s,f){e&&K(e,s,f),O(s,t,f),r=!0},p(s,f){const a=f&64?Le(n,[st(s[18])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:s}),f&32&&l!==(l=s[5].orderedlistitem||s[5].listitem)){if(e){X();const u=e;g(u.$$.fragment,1,0,()=>{$(u,1)}),ee()}l?(e=Se(l,o(s)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(s){r||(e&&p(e.$$.fragment,s),r=!0)},o(s){e&&g(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&$(e,s)}}}function Cl(i){let e,t,r=i[6].items,n=[];for(let o=0;o<r.length;o+=1)n[o]=Gn(Jn(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=F()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=F()},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&96){r=o[6].items;let f;for(f=0;f<r.length;f+=1){const a=Jn(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=Gn(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function zl(i){let e,t,r;return e=new tt({props:{tokens:i[16].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment),t=fe()},l(n){ie(e.$$.fragment,n),t=ae(n)},m(n,l){K(e,n,l),O(n,t,l),r=!0},p(n,l){const o={};l&4&&(o.tokens=n[16].tokens),l&32&&(o.renderers=n[5]),e.$set(o)},i(n){r||(p(e.$$.fragment,n),r=!0)},o(n){g(e.$$.fragment,n),r=!1},d(n){$(e,n),n&&h(t)}}}function Xn(i){let e,t,r;var n=i[5].tablecell;function l(o){return{props:{header:!0,align:o[6].align[o[15]]||"center",$$slots:{default:[zl]},$$scope:{ctx:o}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=F()},l(o){e&&ie(e.$$.fragment,o),t=F()},m(o,s){e&&K(e,o,s),O(o,t,s),r=!0},p(o,s){const f={};if(s&64&&(f.align=o[6].align[o[15]]||"center"),s&8388644&&(f.$$scope={dirty:s,ctx:o}),s&32&&n!==(n=o[5].tablecell)){if(e){X();const a=e;g(a.$$.fragment,1,0,()=>{$(a,1)}),ee()}n?(e=Se(n,l(o)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&$(e,o)}}}function Dl(i){let e,t,r=i[2],n=[];for(let o=0;o<r.length;o+=1)n[o]=Xn($n(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=F()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=F()},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&100){r=o[2];let f;for(f=0;f<r.length;f+=1){const a=$n(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=Xn(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function Vl(i){let e,t,r;var n=i[5].tablerow;function l(o){return{props:{$$slots:{default:[Dl]},$$scope:{ctx:o}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=F()},l(o){e&&ie(e.$$.fragment,o),t=F()},m(o,s){e&&K(e,o,s),O(o,t,s),r=!0},p(o,s){const f={};if(s&8388708&&(f.$$scope={dirty:s,ctx:o}),s&32&&n!==(n=o[5].tablerow)){if(e){X();const a=e;g(a.$$.fragment,1,0,()=>{$(a,1)}),ee()}n?(e=Se(n,l(o)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&$(e,o)}}}function Ml(i){let e,t;return e=new tt({props:{tokens:i[13].tokens,renderers:i[5]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p(r,n){const l={};n&8&&(l.tokens=r[13].tokens),n&32&&(l.renderers=r[5]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function er(i){let e,t,r;var n=i[5].tablecell;function l(o){return{props:{header:!1,align:o[6].align[o[15]]||"center",$$slots:{default:[Ml]},$$scope:{ctx:o}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=F()},l(o){e&&ie(e.$$.fragment,o),t=F()},m(o,s){e&&K(e,o,s),O(o,t,s),r=!0},p(o,s){const f={};if(s&64&&(f.align=o[6].align[o[15]]||"center"),s&8388648&&(f.$$scope={dirty:s,ctx:o}),s&32&&n!==(n=o[5].tablecell)){if(e){X();const a=e;g(a.$$.fragment,1,0,()=>{$(a,1)}),ee()}n?(e=Se(n,l(o)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&$(e,o)}}}function Ul(i){let e,t,r=i[10],n=[];for(let o=0;o<r.length;o+=1)n[o]=er(Kn(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=fe()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=ae(o)},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&104){r=o[10];let f;for(f=0;f<r.length;f+=1){const a=Kn(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=er(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function tr(i){let e,t,r;var n=i[5].tablerow;function l(o){return{props:{$$slots:{default:[Ul]},$$scope:{ctx:o}}}}return n&&(e=Se(n,l(i))),{c(){e&&W(e.$$.fragment),t=F()},l(o){e&&ie(e.$$.fragment,o),t=F()},m(o,s){e&&K(e,o,s),O(o,t,s),r=!0},p(o,s){const f={};if(s&8388712&&(f.$$scope={dirty:s,ctx:o}),s&32&&n!==(n=o[5].tablerow)){if(e){X();const a=e;g(a.$$.fragment,1,0,()=>{$(a,1)}),ee()}n?(e=Se(n,l(o)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(o){r||(e&&p(e.$$.fragment,o),r=!0)},o(o){e&&g(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&$(e,o)}}}function ql(i){let e,t,r=i[3],n=[];for(let o=0;o<r.length;o+=1)n[o]=tr(Wn(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=F()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=F()},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&104){r=o[3];let f;for(f=0;f<r.length;f+=1){const a=Wn(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=tr(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function Bl(i){let e,t,r,n,l;var o=i[5].tablehead;function s(u){return{props:{$$slots:{default:[Vl]},$$scope:{ctx:u}}}}o&&(e=Se(o,s(i)));var f=i[5].tablebody;function a(u){return{props:{$$slots:{default:[ql]},$$scope:{ctx:u}}}}return f&&(r=Se(f,a(i))),{c(){e&&W(e.$$.fragment),t=fe(),r&&W(r.$$.fragment),n=F()},l(u){e&&ie(e.$$.fragment,u),t=ae(u),r&&ie(r.$$.fragment,u),n=F()},m(u,c){e&&K(e,u,c),O(u,t,c),r&&K(r,u,c),O(u,n,c),l=!0},p(u,c){const d={};if(c&8388708&&(d.$$scope={dirty:c,ctx:u}),c&32&&o!==(o=u[5].tablehead)){if(e){X();const k=e;g(k.$$.fragment,1,0,()=>{$(k,1)}),ee()}o?(e=Se(o,s(u)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,t.parentNode,t)):e=null}else o&&e.$set(d);const m={};if(c&8388712&&(m.$$scope={dirty:c,ctx:u}),c&32&&f!==(f=u[5].tablebody)){if(r){X();const k=r;g(k.$$.fragment,1,0,()=>{$(k,1)}),ee()}f?(r=Se(f,a(u)),W(r.$$.fragment),p(r.$$.fragment,1),K(r,n.parentNode,n)):r=null}else f&&r.$set(m)},i(u){l||(e&&p(e.$$.fragment,u),r&&p(r.$$.fragment,u),l=!0)},o(u){e&&g(e.$$.fragment,u),r&&g(r.$$.fragment,u),l=!1},d(u){e&&$(e,u),u&&h(t),u&&h(n),r&&$(r,u)}}}function nr(i){let e,t;const r=[i[7],{renderers:i[5]}];let n={};for(let l=0;l<r.length;l+=1)n=me(n,r[l]);return e=new tt({props:n}),{c(){W(e.$$.fragment)},l(l){ie(e.$$.fragment,l)},m(l,o){K(e,l,o),t=!0},p(l,o){const s=o&34?Le(r,[o&2&&st(l[7]),o&32&&{renderers:l[5]}]):{};e.$set(s)},i(l){t||(p(e.$$.fragment,l),t=!0)},o(l){g(e.$$.fragment,l),t=!1},d(l){$(e,l)}}}function Fl(i){let e,t,r,n;const l=[vl,yl],o=[];function s(f,a){return f[0]?f[5][f[0]]?1:-1:0}return~(e=s(i))&&(t=o[e]=l[e](i)),{c(){t&&t.c(),r=F()},l(f){t&&t.l(f),r=F()},m(f,a){~e&&o[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=s(f),e===u?~e&&o[e].p(f,a):(t&&(X(),g(o[u],1,1,()=>{o[u]=null}),ee()),~e?(t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r)):t=null)},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){~e&&o[e].d(f),f&&h(r)}}}function xl(i,e,t){const r=["type","tokens","header","rows","ordered","renderers"];let n=Ae(e,r),{type:l=void 0}=e,{tokens:o=void 0}=e,{header:s=void 0}=e,{rows:f=void 0}=e,{ordered:a=!1}=e,{renderers:u}=e;return kl(),i.$$set=c=>{e=me(me({},e),De(c)),t(6,n=Ae(e,r)),"type"in c&&t(0,l=c.type),"tokens"in c&&t(1,o=c.tokens),"header"in c&&t(2,s=c.header),"rows"in c&&t(3,f=c.rows),"ordered"in c&&t(4,a=c.ordered),"renderers"in c&&t(5,u=c.renderers)},[l,o,s,f,a,u,n]}let tt=class extends ce{constructor(e){super(),de(this,e,xl,Fl,he,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}};function xr(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let nt=xr();function Zl(i){nt=i}const Zr=/[&<>"']/,Hl=new RegExp(Zr.source,"g"),Hr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Jl=new RegExp(Hr.source,"g"),Wl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},rr=i=>Wl[i];function Ne(i,e){if(e){if(Zr.test(i))return i.replace(Hl,rr)}else if(Hr.test(i))return i.replace(Jl,rr);return i}const Kl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Jr(i){return i.replace(Kl,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const $l=/(^|[^\[])\^/g;function Oe(i,e){i=typeof i=="string"?i:i.source,e=e||"";const t={replace:(r,n)=>(n=n.source||n,n=n.replace($l,"$1"),i=i.replace(r,n),t),getRegex:()=>new RegExp(i,e)};return t}const Ql=/[^\w:]/g,Yl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ir(i,e,t){if(i){let r;try{r=decodeURIComponent(Jr(t)).replace(Ql,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!Yl.test(t)&&(t=to(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const bt={},Gl=/^[^:]+:\/*[^/]*$/,Xl=/^([^:]+:)[\s\S]*$/,eo=/^([^:]+:\/*[^/]*)[\s\S]*$/;function to(i,e){bt[" "+i]||(Gl.test(i)?bt[" "+i]=i+"/":bt[" "+i]=wt(i,"/",!0)),i=bt[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(Xl,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(eo,"$1")+e:i+e}const St={exec:function(){}};function lr(i,e){const t=i.replace(/\|/g,(l,o,s)=>{let f=!1,a=o;for(;--a>=0&&s[a]==="\\";)f=!f;return f?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function wt(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const l=i.charAt(r-n-1);if(l===e&&!t)n++;else if(l!==e&&t)n++;else break}return i.slice(0,r-n)}function no(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let r=0,n=0;for(;n<t;n++)if(i[n]==="\\")n++;else if(i[n]===e[0])r++;else if(i[n]===e[1]&&(r--,r<0))return n;return-1}function ro(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function or(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function sr(i,e,t,r){const n=e.href,l=e.title?Ne(e.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const s={type:"link",raw:t,href:n,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,s}return{type:"image",raw:t,href:n,title:l,text:Ne(o)}}function io(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
`).map(n=>{const l=n.match(/^\s+/);if(l===null)return n;const[o]=l;return o.length>=r.length?n.slice(r.length):n}).join(`
`)}class Xt{constructor(e){this.options=e||nt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:wt(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=io(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=wt(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const l=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:l,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,l,o,s,f,a,u,c,d,m,k,_=t[1].trim();const A=_.length>1,v={type:"list",raw:"",ordered:A,start:A?+_.slice(0,-1):"",loose:!1,items:[]};_=A?`\\d{1,9}\\${_.slice(-1)}`:`\\${_}`,this.options.pedantic&&(_=A?_:"[*+-]");const b=new RegExp(`^( {0,3}${_})((?:[	 ][^\\n]*)?(?:\\n|$))`);for(;e&&(k=!1,!(!(t=b.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),u=t[2].split(`
`,1)[0].replace(/^\t+/,P=>" ".repeat(3*P.length)),c=e.split(`
`,1)[0],this.options.pedantic?(o=2,m=u.trimLeft()):(o=t[2].search(/[^ ]/),o=o>4?1:o,m=u.slice(o),o+=t[1].length),f=!1,!u&&/^ *$/.test(c)&&(r+=c+`
`,e=e.substring(c.length+1),k=!0),!k){const P=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),I=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),T=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),L=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;e&&(d=e.split(`
`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(T.test(c)||L.test(c)||P.test(c)||I.test(e)));){if(c.search(/[^ ]/)>=o||!c.trim())m+=`
`+c.slice(o);else{if(f||u.search(/[^ ]/)>=4||T.test(u)||L.test(u)||I.test(u))break;m+=`
`+c}!f&&!c.trim()&&(f=!0),r+=d+`
`,e=e.substring(d.length+1),u=c.slice(o)}}v.loose||(a?v.loose=!0:/\n *\n *$/.test(r)&&(a=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(m),n&&(l=n[0]!=="[ ] ",m=m.replace(/^\[[ xX]\] +/,""))),v.items.push({type:"list_item",raw:r,task:!!n,checked:l,loose:!1,text:m}),v.raw+=r}v.items[v.items.length-1].raw=r.trimRight(),v.items[v.items.length-1].text=m.trimRight(),v.raw=v.raw.trimRight();const S=v.items.length;for(s=0;s<S;s++)if(this.lexer.state.top=!1,v.items[s].tokens=this.lexer.blockTokens(v.items[s].text,[]),!v.loose){const P=v.items[s].tokens.filter(T=>T.type==="space"),I=P.length>0&&P.some(T=>/\n.*\n/.test(T.raw));v.loose=I}if(v.loose)for(s=0;s<S;s++)v.items[s].loose=!0;return v}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Ne(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:l}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:lr(t[1]).map(n=>({text:n})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[]};if(r.header.length===r.align.length){r.raw=t[0];let n=r.align.length,l,o,s,f;for(l=0;l<n;l++)/^ *-+: *$/.test(r.align[l])?r.align[l]="right":/^ *:-+: *$/.test(r.align[l])?r.align[l]="center":/^ *:-+ *$/.test(r.align[l])?r.align[l]="left":r.align[l]=null;for(n=r.rows.length,l=0;l<n;l++)r.rows[l]=lr(r.rows[l],r.header.length).map(a=>({text:a}));for(n=r.header.length,o=0;o<n;o++)r.header[o].tokens=this.lexer.inline(r.header[o].text);for(n=r.rows.length,o=0;o<n;o++)for(f=r.rows[o],s=0;s<f.length;s++)f[s].tokens=this.lexer.inline(f[s].text);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:Ne(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ne(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=wt(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=no(t[2],"()");if(o>-1){const f=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,f).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],l=o[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),sr(t,{href:n&&n.replace(this.rules.inline._escapes,"$1"),title:l&&l.replace(this.rules.inline._escapes,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(/\s+/g," ");if(n=t[n.toLowerCase()],!n){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return sr(r,n,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;const l=n[1]||n[2]||"";if(!l||l&&(r===""||this.rules.inline.punctuation.exec(r))){const o=n[0].length-1;let s,f,a=o,u=0;const c=n[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);(n=c.exec(t))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(f=s.length,n[3]||n[4]){a+=f;continue}else if((n[5]||n[6])&&o%3&&!((o+f)%3)){u+=f;continue}if(a-=f,a>0)continue;f=Math.min(f,f+a+u);const d=e.slice(0,o+n.index+(n[0].length-s.length)+f);if(Math.min(o,f)%2){const k=d.slice(1,-1);return{type:"em",raw:d,text:k,tokens:this.lexer.inlineTokens(k)}}const m=d.slice(2,-2);return{type:"strong",raw:d,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),l=/^ /.test(r)&&/ $/.test(r);return n&&l&&(r=r.substring(1,r.length-1)),r=Ne(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let n,l;return r[2]==="@"?(n=Ne(this.options.mangle?t(r[1]):r[1]),l="mailto:"+n):(n=Ne(r[1]),l=n),{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let n,l;if(r[2]==="@")n=Ne(this.options.mangle?t(r[0]):r[0]),l="mailto:"+n;else{let o;do o=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(o!==r[0]);n=Ne(r[0]),r[1]==="www."?l="http://"+r[0]:l=r[0]}return{type:"link",raw:r[0],text:n,href:l,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ne(r[0]):r[0]:n=Ne(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const Y={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:St,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Y._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Y._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Y.def=Oe(Y.def).replace("label",Y._label).replace("title",Y._title).getRegex();Y.bullet=/(?:[*+-]|\d{1,9}[.)])/;Y.listItemStart=Oe(/^( *)(bull) */).replace("bull",Y.bullet).getRegex();Y.list=Oe(Y.list).replace(/bull/g,Y.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Y.def.source+")").getRegex();Y._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";Y._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Y.html=Oe(Y.html,"i").replace("comment",Y._comment).replace("tag",Y._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Y.paragraph=Oe(Y._paragraph).replace("hr",Y.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Y._tag).getRegex();Y.blockquote=Oe(Y.blockquote).replace("paragraph",Y.paragraph).getRegex();Y.normal={...Y};Y.gfm={...Y.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Y.gfm.table=Oe(Y.gfm.table).replace("hr",Y.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Y._tag).getRegex();Y.gfm.paragraph=Oe(Y._paragraph).replace("hr",Y.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Y.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Y._tag).getRegex();Y.pedantic={...Y.normal,html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Y._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:St,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Oe(Y.normal._paragraph).replace("hr",Y.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Y.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const H={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:St,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:St,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};H._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";H.punctuation=Oe(H.punctuation).replace(/punctuation/g,H._punctuation).getRegex();H.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;H.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;H._comment=Oe(Y._comment).replace("(?:-->|$)","-->").getRegex();H.emStrong.lDelim=Oe(H.emStrong.lDelim).replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimAst=Oe(H.emStrong.rDelimAst,"g").replace(/punct/g,H._punctuation).getRegex();H.emStrong.rDelimUnd=Oe(H.emStrong.rDelimUnd,"g").replace(/punct/g,H._punctuation).getRegex();H._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;H._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;H._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;H.autolink=Oe(H.autolink).replace("scheme",H._scheme).replace("email",H._email).getRegex();H._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;H.tag=Oe(H.tag).replace("comment",H._comment).replace("attribute",H._attribute).getRegex();H._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;H._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;H._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;H.link=Oe(H.link).replace("label",H._label).replace("href",H._href).replace("title",H._title).getRegex();H.reflink=Oe(H.reflink).replace("label",H._label).replace("ref",Y._label).getRegex();H.nolink=Oe(H.nolink).replace("ref",Y._label).getRegex();H.reflinkSearch=Oe(H.reflinkSearch,"g").replace("reflink",H.reflink).replace("nolink",H.nolink).getRegex();H.normal={...H};H.pedantic={...H.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Oe(/^!?\[(label)\]\((.*?)\)/).replace("label",H._label).getRegex(),reflink:Oe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",H._label).getRegex()};H.gfm={...H.normal,escape:Oe(H.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};H.gfm.url=Oe(H.gfm.url,"i").replace("email",H.gfm._extended_email).getRegex();H.breaks={...H.gfm,br:Oe(H.br).replace("{2,}","*").getRegex(),text:Oe(H.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function lo(i){return i.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function fr(i){let e="",t,r;const n=i.length;for(t=0;t<n;t++)r=i.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class We{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||nt,this.options.tokenizer=this.options.tokenizer||new Xt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Y.normal,inline:H.normal};this.options.pedantic?(t.block=Y.pedantic,t.inline=H.pedantic):this.options.gfm&&(t.block=Y.gfm,this.options.breaks?t.inline=H.breaks:t.inline=H.gfm),this.tokenizer.rules=t}static get rules(){return{block:Y,inline:H}}static lex(e,t){return new We(t).lex(e)}static lexInline(e,t){return new We(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(s,f,a)=>f+"    ".repeat(a.length));let r,n,l,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(r=s.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
`+r.raw,n.text+=`
`+r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(l=e,this.options.extensions&&this.options.extensions.startBlock){let s=1/0;const f=e.slice(1);let a;this.options.extensions.startBlock.forEach(function(u){a=u.call({lexer:this},f),typeof a=="number"&&a>=0&&(s=Math.min(s,a))}),s<1/0&&s>=0&&(l=e.substring(0,s+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){n=t[t.length-1],o&&n.type==="paragraph"?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=l.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+=`
`+r.raw,n.text+=`
`+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,l,o=e,s,f,a;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)u.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,s.index)+"["+or("a",s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,s.index)+"["+or("a",s[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(s=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null;)o=o.slice(0,s.index+s[0].length-2)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(f||(a=""),f=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(r=u.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,a)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e,fr)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,fr))){e=e.substring(r.raw.length),t.push(r);continue}if(l=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const c=e.slice(1);let d;this.options.extensions.startInline.forEach(function(m){d=m.call({lexer:this},c),typeof d=="number"&&d>=0&&(u=Math.min(u,d))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(r=this.tokenizer.inlineText(l,lo)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(a=r.raw.slice(-1)),f=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class en{constructor(e){this.options=e||nt}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const l=this.options.highlight(e,n);l!=null&&l!==e&&(r=!0,e=l)}return e=e.replace(/\n$/,"")+`
`,n?'<pre><code class="'+this.options.langPrefix+Ne(n)+'">'+(r?e:Ne(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:Ne(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const l=this.options.headerPrefix+n.slug(r);return`<h${t} id="${l}">${e}</h${t}>
`}return`<h${t}>${e}</h${t}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(e,t,r){const n=t?"ol":"ul",l=t&&r!==1?' start="'+r+'"':"";return"<"+n+l+`>
`+e+"</"+n+`>
`}listitem(e){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(e=ir(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(e=ir(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class Wr{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class tn{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let r=e,n=0;if(this.seen.hasOwnProperty(r)){n=this.seen[e];do n++,r=e+"-"+n;while(this.seen.hasOwnProperty(r))}return t||(this.seen[e]=n,this.seen[r]=0),r}slug(e,t={}){const r=this.serialize(e);return this.getNextSafeSlug(r,t.dryrun)}}let pt=class Zt{constructor(e){this.options=e||nt,this.options.renderer=this.options.renderer||new en,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Wr,this.slugger=new tn}static parse(e,t){return new Zt(t).parse(e)}static parseInline(e,t){return new Zt(t).parseInline(e)}parse(e,t=!0){let r="",n,l,o,s,f,a,u,c,d,m,k,_,A,v,b,S,P,I,T;const L=e.length;for(n=0;n<L;n++){if(m=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[m.type]&&(T=this.options.extensions.renderers[m.type].call({parser:this},m),T!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(m.type))){r+=T||"";continue}switch(m.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(m.tokens),m.depth,Jr(this.parseInline(m.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(m.text,m.lang,m.escaped);continue}case"table":{for(c="",u="",s=m.header.length,l=0;l<s;l++)u+=this.renderer.tablecell(this.parseInline(m.header[l].tokens),{header:!0,align:m.align[l]});for(c+=this.renderer.tablerow(u),d="",s=m.rows.length,l=0;l<s;l++){for(a=m.rows[l],u="",f=a.length,o=0;o<f;o++)u+=this.renderer.tablecell(this.parseInline(a[o].tokens),{header:!1,align:m.align[o]});d+=this.renderer.tablerow(u)}r+=this.renderer.table(c,d);continue}case"blockquote":{d=this.parse(m.tokens),r+=this.renderer.blockquote(d);continue}case"list":{for(k=m.ordered,_=m.start,A=m.loose,s=m.items.length,d="",l=0;l<s;l++)b=m.items[l],S=b.checked,P=b.task,v="",b.task&&(I=this.renderer.checkbox(S),A?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=I+" "+b.tokens[0].text,b.tokens[0].tokens&&b.tokens[0].tokens.length>0&&b.tokens[0].tokens[0].type==="text"&&(b.tokens[0].tokens[0].text=I+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:I}):v+=I),v+=this.parse(b.tokens,A),d+=this.renderer.listitem(v,P,S);r+=this.renderer.list(d,k,_);continue}case"html":{r+=this.renderer.html(m.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(m.tokens));continue}case"text":{for(d=m.tokens?this.parseInline(m.tokens):m.text;n+1<L&&e[n+1].type==="text";)m=e[++n],d+=`
`+(m.tokens?this.parseInline(m.tokens):m.text);r+=t?this.renderer.paragraph(d):d;continue}default:{const D='Token with "'+m.type+'" type was not found.';if(this.options.silent){console.error(D);return}else throw new Error(D)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",n,l,o;const s=e.length;for(n=0;n<s;n++){if(l=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]&&(o=this.options.extensions.renderers[l.type].call({parser:this},l),o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type))){r+=o||"";continue}switch(l.type){case"escape":{r+=t.text(l.text);break}case"html":{r+=t.html(l.text);break}case"link":{r+=t.link(l.href,l.title,this.parseInline(l.tokens,t));break}case"image":{r+=t.image(l.href,l.title,l.text);break}case"strong":{r+=t.strong(this.parseInline(l.tokens,t));break}case"em":{r+=t.em(this.parseInline(l.tokens,t));break}case"codespan":{r+=t.codespan(l.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(l.tokens,t));break}case"text":{r+=t.text(l.text);break}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent){console.error(f);return}else throw new Error(f)}}}return r}};class Pt{constructor(e){this.options=e||nt}preprocess(e){return e}postprocess(e){return e}}sn(Pt,"passThroughHooks",new Set(["preprocess","postprocess"]));function oo(i,e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,i){const n="<p>An error occurred:</p><pre>"+Ne(r.message+"",!0)+"</pre>";if(e)return Promise.resolve(n);if(t){t(null,n);return}return n}if(e)return Promise.reject(r);if(t){t(r);return}throw r}}function Kr(i,e){return(t,r,n)=>{typeof r=="function"&&(n=r,r=null);const l={...r};r={...G.defaults,...l};const o=oo(r.silent,r.async,n);if(typeof t>"u"||t===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(ro(r),r.hooks&&(r.hooks.options=r),n){const s=r.highlight;let f;try{r.hooks&&(t=r.hooks.preprocess(t)),f=i(t,r)}catch(c){return o(c)}const a=function(c){let d;if(!c)try{r.walkTokens&&G.walkTokens(f,r.walkTokens),d=e(f,r),r.hooks&&(d=r.hooks.postprocess(d))}catch(m){c=m}return r.highlight=s,c?o(c):n(null,d)};if(!s||s.length<3||(delete r.highlight,!f.length))return a();let u=0;G.walkTokens(f,function(c){c.type==="code"&&(u++,setTimeout(()=>{s(c.text,c.lang,function(d,m){if(d)return a(d);m!=null&&m!==c.text&&(c.text=m,c.escaped=!0),u--,u===0&&a()})},0))}),u===0&&a();return}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(t):t).then(s=>i(s,r)).then(s=>r.walkTokens?Promise.all(G.walkTokens(s,r.walkTokens)).then(()=>s):s).then(s=>e(s,r)).then(s=>r.hooks?r.hooks.postprocess(s):s).catch(o);try{r.hooks&&(t=r.hooks.preprocess(t));const s=i(t,r);r.walkTokens&&G.walkTokens(s,r.walkTokens);let f=e(s,r);return r.hooks&&(f=r.hooks.postprocess(f)),f}catch(s){return o(s)}}}function G(i,e,t){return Kr(We.lex,pt.parse)(i,e,t)}G.options=G.setOptions=function(i){return G.defaults={...G.defaults,...i},Zl(G.defaults),G};G.getDefaults=xr;G.defaults=nt;G.use=function(...i){const e=G.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const r={...t};if(r.async=G.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if(n.renderer){const l=e.renderers[n.name];l?e.renderers[n.name]=function(...o){let s=n.renderer.apply(this,o);return s===!1&&(s=l.apply(this,o)),s}:e.renderers[n.name]=n.renderer}if(n.tokenizer){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[n.level]?e[n.level].unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),t.renderer){const n=G.defaults.renderer||new en;for(const l in t.renderer){const o=n[l];n[l]=(...s)=>{let f=t.renderer[l].apply(n,s);return f===!1&&(f=o.apply(n,s)),f}}r.renderer=n}if(t.tokenizer){const n=G.defaults.tokenizer||new Xt;for(const l in t.tokenizer){const o=n[l];n[l]=(...s)=>{let f=t.tokenizer[l].apply(n,s);return f===!1&&(f=o.apply(n,s)),f}}r.tokenizer=n}if(t.hooks){const n=G.defaults.hooks||new Pt;for(const l in t.hooks){const o=n[l];Pt.passThroughHooks.has(l)?n[l]=s=>{if(G.defaults.async)return Promise.resolve(t.hooks[l].call(n,s)).then(a=>o.call(n,a));const f=t.hooks[l].call(n,s);return o.call(n,f)}:n[l]=(...s)=>{let f=t.hooks[l].apply(n,s);return f===!1&&(f=o.apply(n,s)),f}}r.hooks=n}if(t.walkTokens){const n=G.defaults.walkTokens;r.walkTokens=function(l){let o=[];return o.push(t.walkTokens.call(this,l)),n&&(o=o.concat(n.call(this,l))),o}}G.setOptions(r)})};G.walkTokens=function(i,e){let t=[];for(const r of i)switch(t=t.concat(e.call(G,r)),r.type){case"table":{for(const n of r.header)t=t.concat(G.walkTokens(n.tokens,e));for(const n of r.rows)for(const l of n)t=t.concat(G.walkTokens(l.tokens,e));break}case"list":{t=t.concat(G.walkTokens(r.items,e));break}default:G.defaults.extensions&&G.defaults.extensions.childTokens&&G.defaults.extensions.childTokens[r.type]?G.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat(G.walkTokens(r[n],e))}):r.tokens&&(t=t.concat(G.walkTokens(r.tokens,e)))}return t};G.parseInline=Kr(We.lexInline,pt.parseInline);G.Parser=pt;G.parser=pt.parse;G.Renderer=en;G.TextRenderer=Wr;G.Lexer=We;G.lexer=We.lex;G.Tokenizer=Xt;G.Slugger=tn;G.Hooks=Pt;G.parse=G;G.options;G.setOptions;G.use;G.walkTokens;G.parseInline;pt.parse;We.lex;const $r={};function so(i){let e;return{c(){e=ve(i[1])},l(t){e=we(t,i[1])},m(t,r){O(t,e,r)},p(t,r){r&2&&Pe(e,t[1])},i:ue,o:ue,d(t){t&&h(e)}}}function fo(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h6"),n&&n.c(),this.h()},l(l){e=q(l,"H6",{id:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"id",i[2])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&16)&&be(n,r,l,l[4],t?ke(r,l[4],o,null):Ee(l[4]),null),(!t||o&4)&&z(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function ao(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h5"),n&&n.c(),this.h()},l(l){e=q(l,"H5",{id:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"id",i[2])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&16)&&be(n,r,l,l[4],t?ke(r,l[4],o,null):Ee(l[4]),null),(!t||o&4)&&z(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function uo(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h4"),n&&n.c(),this.h()},l(l){e=q(l,"H4",{id:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"id",i[2])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&16)&&be(n,r,l,l[4],t?ke(r,l[4],o,null):Ee(l[4]),null),(!t||o&4)&&z(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function co(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h3"),n&&n.c(),this.h()},l(l){e=q(l,"H3",{id:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"id",i[2])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&16)&&be(n,r,l,l[4],t?ke(r,l[4],o,null):Ee(l[4]),null),(!t||o&4)&&z(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function ho(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h2"),n&&n.c(),this.h()},l(l){e=q(l,"H2",{id:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"id",i[2])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&16)&&be(n,r,l,l[4],t?ke(r,l[4],o,null):Ee(l[4]),null),(!t||o&4)&&z(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function mo(i){let e,t;const r=i[5].default,n=_e(r,i,i[4],null);return{c(){e=U("h1"),n&&n.c(),this.h()},l(l){e=q(l,"H1",{id:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"id",i[2])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&16)&&be(n,r,l,l[4],t?ke(r,l[4],o,null):Ee(l[4]),null),(!t||o&4)&&z(e,"id",l[2])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function po(i){let e,t,r,n;const l=[mo,ho,co,uo,ao,fo,so],o=[];function s(f,a){return f[0]===1?0:f[0]===2?1:f[0]===3?2:f[0]===4?3:f[0]===5?4:f[0]===6?5:6}return e=s(i),t=o[e]=l[e](i),{c(){t.c(),r=F()},l(f){t.l(f),r=F()},m(f,a){o[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=s(f),e===u?o[e].p(f,a):(X(),g(o[u],1,1,()=>{o[u]=null}),ee(),t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r))},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){o[e].d(f),f&&h(r)}}}function go(i,e,t){let r,{$$slots:n={},$$scope:l}=e,{depth:o}=e,{raw:s}=e,{text:f}=e;const{slug:a,getOptions:u}=Mr($r),c=u();return i.$$set=d=>{"depth"in d&&t(0,o=d.depth),"raw"in d&&t(1,s=d.raw),"text"in d&&t(3,f=d.text),"$$scope"in d&&t(4,l=d.$$scope)},i.$$.update=()=>{i.$$.dirty&8&&t(2,r=c.headerIds?c.headerPrefix+a(f):void 0)},[o,s,r,f,l,n]}class _o extends ce{constructor(e){super(),de(this,e,go,po,he,{depth:0,raw:1,text:3})}}function bo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("p"),n&&n.c()},l(l){e=q(l,"P",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Eo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ko extends ce{constructor(e){super(),de(this,e,Eo,bo,he,{})}}function yo(i){let e;const t=i[3].default,r=_e(t,i,i[2],null);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,l){r&&r.m(n,l),e=!0},p(n,[l]){r&&r.p&&(!e||l&4)&&be(r,t,n,n[2],e?ke(t,n[2],l,null):Ee(n[2]),null)},i(n){e||(p(r,n),e=!0)},o(n){g(r,n),e=!1},d(n){r&&r.d(n)}}}function vo(i,e,t){let{$$slots:r={},$$scope:n}=e,{text:l}=e,{raw:o}=e;return i.$$set=s=>{"text"in s&&t(0,l=s.text),"raw"in s&&t(1,o=s.raw),"$$scope"in s&&t(2,n=s.$$scope)},[l,o,n,r]}class wo extends ce{constructor(e){super(),de(this,e,vo,yo,he,{text:0,raw:1})}}function Oo(i){let e,t;return{c(){e=U("img"),this.h()},l(r){e=q(r,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){un(e.src,t=i[0])||z(e,"src",t),z(e,"title",i[1]),z(e,"alt",i[2])},m(r,n){O(r,e,n)},p(r,[n]){n&1&&!un(e.src,t=r[0])&&z(e,"src",t),n&2&&z(e,"title",r[1]),n&4&&z(e,"alt",r[2])},i:ue,o:ue,d(r){r&&h(e)}}}function So(i,e,t){let{href:r=""}=e,{title:n=void 0}=e,{text:l=""}=e;return i.$$set=o=>{"href"in o&&t(0,r=o.href),"title"in o&&t(1,n=o.title),"text"in o&&t(2,l=o.text)},[r,n,l]}class Po extends ce{constructor(e){super(),de(this,e,So,Oo,he,{href:0,title:1,text:2})}}function Io(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("a"),n&&n.c(),this.h()},l(l){e=q(l,"A",{href:!0,title:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"href",i[0]),z(e,"title",i[1])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&4)&&be(n,r,l,l[2],t?ke(r,l[2],o,null):Ee(l[2]),null),(!t||o&1)&&z(e,"href",l[0]),(!t||o&2)&&z(e,"title",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function To(i,e,t){let{$$slots:r={},$$scope:n}=e,{href:l=""}=e,{title:o=void 0}=e;return i.$$set=s=>{"href"in s&&t(0,l=s.href),"title"in s&&t(1,o=s.title),"$$scope"in s&&t(2,n=s.$$scope)},[l,o,n,r]}class Ao extends ce{constructor(e){super(),de(this,e,To,Io,he,{href:0,title:1})}}function Ro(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("em"),n&&n.c()},l(l){e=q(l,"EM",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function jo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class No extends ce{constructor(e){super(),de(this,e,jo,Ro,he,{})}}function Lo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("del"),n&&n.c()},l(l){e=q(l,"DEL",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Co(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class zo extends ce{constructor(e){super(),de(this,e,Co,Lo,he,{})}}function Do(i){let e,t=i[0].replace(/`/g,"")+"",r;return{c(){e=U("code"),r=ve(t)},l(n){e=q(n,"CODE",{});var l=V(e);r=we(l,t),l.forEach(h)},m(n,l){O(n,e,l),B(e,r)},p(n,[l]){l&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&h(e)}}}function Vo(i,e,t){let{raw:r}=e;return i.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class Mo extends ce{constructor(e){super(),de(this,e,Vo,Do,he,{raw:0})}}function Uo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("strong"),n&&n.c()},l(l){e=q(l,"STRONG",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function qo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Bo extends ce{constructor(e){super(),de(this,e,qo,Uo,he,{})}}function Fo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("table"),n&&n.c()},l(l){e=q(l,"TABLE",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function xo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Zo extends ce{constructor(e){super(),de(this,e,xo,Fo,he,{})}}function Ho(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("thead"),n&&n.c()},l(l){e=q(l,"THEAD",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Jo(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Wo extends ce{constructor(e){super(),de(this,e,Jo,Ho,he,{})}}function Ko(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("tbody"),n&&n.c()},l(l){e=q(l,"TBODY",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function $o(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Qo extends ce{constructor(e){super(),de(this,e,$o,Ko,he,{})}}function Yo(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("tr"),n&&n.c()},l(l){e=q(l,"TR",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Go(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Xo extends ce{constructor(e){super(),de(this,e,Go,Yo,he,{})}}function es(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("td"),n&&n.c(),this.h()},l(l){e=q(l,"TD",{align:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"align",i[1])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&4)&&be(n,r,l,l[2],t?ke(r,l[2],o,null):Ee(l[2]),null),(!t||o&2)&&z(e,"align",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function ts(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("th"),n&&n.c(),this.h()},l(l){e=q(l,"TH",{align:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"align",i[1])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&4)&&be(n,r,l,l[2],t?ke(r,l[2],o,null):Ee(l[2]),null),(!t||o&2)&&z(e,"align",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function ns(i){let e,t,r,n;const l=[ts,es],o=[];function s(f,a){return f[0]?0:1}return e=s(i),t=o[e]=l[e](i),{c(){t.c(),r=F()},l(f){t.l(f),r=F()},m(f,a){o[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=s(f),e===u?o[e].p(f,a):(X(),g(o[u],1,1,()=>{o[u]=null}),ee(),t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r))},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){o[e].d(f),f&&h(r)}}}function rs(i,e,t){let{$$slots:r={},$$scope:n}=e,{header:l}=e,{align:o}=e;return i.$$set=s=>{"header"in s&&t(0,l=s.header),"align"in s&&t(1,o=s.align),"$$scope"in s&&t(2,n=s.$$scope)},[l,o,n,r]}class is extends ce{constructor(e){super(),de(this,e,rs,ns,he,{header:0,align:1})}}function ls(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("ul"),n&&n.c()},l(l){e=q(l,"UL",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&4)&&be(n,r,l,l[2],t?ke(r,l[2],o,null):Ee(l[2]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function os(i){let e,t;const r=i[3].default,n=_e(r,i,i[2],null);return{c(){e=U("ol"),n&&n.c(),this.h()},l(l){e=q(l,"OL",{start:!0});var o=V(e);n&&n.l(o),o.forEach(h),this.h()},h(){z(e,"start",i[1])},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,o){n&&n.p&&(!t||o&4)&&be(n,r,l,l[2],t?ke(r,l[2],o,null):Ee(l[2]),null),(!t||o&2)&&z(e,"start",l[1])},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function ss(i){let e,t,r,n;const l=[os,ls],o=[];function s(f,a){return f[0]?0:1}return e=s(i),t=o[e]=l[e](i),{c(){t.c(),r=F()},l(f){t.l(f),r=F()},m(f,a){o[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=s(f),e===u?o[e].p(f,a):(X(),g(o[u],1,1,()=>{o[u]=null}),ee(),t=o[e],t?t.p(f,a):(t=o[e]=l[e](f),t.c()),p(t,1),t.m(r.parentNode,r))},i(f){n||(p(t),n=!0)},o(f){g(t),n=!1},d(f){o[e].d(f),f&&h(r)}}}function fs(i,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:l}=e,{start:o}=e;return i.$$set=s=>{"ordered"in s&&t(0,l=s.ordered),"start"in s&&t(1,o=s.start),"$$scope"in s&&t(2,n=s.$$scope)},[l,o,n,r]}class as extends ce{constructor(e){super(),de(this,e,fs,ss,he,{ordered:0,start:1})}}function us(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("li"),n&&n.c()},l(l){e=q(l,"LI",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function cs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ds extends ce{constructor(e){super(),de(this,e,cs,us,he,{})}}function hs(i){let e;return{c(){e=U("hr")},l(t){e=q(t,"HR",{})},m(t,r){O(t,e,r)},p:ue,i:ue,o:ue,d(t){t&&h(e)}}}class ms extends ce{constructor(e){super(),de(this,e,null,hs,he,{})}}function ps(i){let e,t;return{c(){e=new ki(!1),t=F(),this.h()},l(r){e=yi(r,!1),t=F(),this.h()},h(){e.a=t},m(r,n){e.m(i[0],r,n),O(r,t,n)},p(r,[n]){n&1&&e.p(r[0])},i:ue,o:ue,d(r){r&&h(t),r&&e.d()}}}function gs(i,e,t){let{text:r}=e;return i.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class _s extends ce{constructor(e){super(),de(this,e,gs,ps,he,{text:0})}}function bs(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("blockquote"),n&&n.c()},l(l){e=q(l,"BLOCKQUOTE",{});var o=V(e);n&&n.l(o),o.forEach(h)},m(l,o){O(l,e,o),n&&n.m(e,null),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Es(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ks extends ce{constructor(e){super(),de(this,e,Es,bs,he,{})}}function ys(i){let e,t,r;return{c(){e=U("pre"),t=U("code"),r=ve(i[1]),this.h()},l(n){e=q(n,"PRE",{class:!0});var l=V(e);t=q(l,"CODE",{});var o=V(t);r=we(o,i[1]),o.forEach(h),l.forEach(h),this.h()},h(){z(e,"class",i[0])},m(n,l){O(n,e,l),B(e,t),B(t,r)},p(n,[l]){l&2&&Pe(r,n[1]),l&1&&z(e,"class",n[0])},i:ue,o:ue,d(n){n&&h(e)}}}function vs(i,e,t){let{lang:r}=e,{text:n}=e;return i.$$set=l=>{"lang"in l&&t(0,r=l.lang),"text"in l&&t(1,n=l.text)},[r,n]}class ws extends ce{constructor(e){super(),de(this,e,vs,ys,he,{lang:0,text:1})}}function Os(i){let e,t;const r=i[1].default,n=_e(r,i,i[0],null);return{c(){e=U("br"),n&&n.c()},l(l){e=q(l,"BR",{}),n&&n.l(l)},m(l,o){O(l,e,o),n&&n.m(l,o),t=!0},p(l,[o]){n&&n.p&&(!t||o&1)&&be(n,r,l,l[0],t?ke(r,l[0],o,null):Ee(l[0]),null)},i(l){t||(p(n,l),t=!0)},o(l){g(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Ss(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Ps extends ce{constructor(e){super(),de(this,e,Ss,Os,he,{})}}const Is={heading:_o,paragraph:ko,text:wo,image:Po,link:Ao,em:No,strong:Bo,codespan:Mo,del:zo,table:Zo,tablehead:Wo,tablebody:Qo,tablerow:Xo,tablecell:is,list:as,orderedlistitem:null,unorderedlistitem:null,listitem:ds,hr:ms,html:_s,blockquote:ks,code:ws,br:Ps},Ts={baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,xhtml:!1};function As(i){let e,t;return e=new tt({props:{tokens:i[0],renderers:i[1]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p(r,[n]){const l={};n&1&&(l.tokens=r[0]),n&2&&(l.renderers=r[1]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Rs(i,e,t){let r,n,l,o,{source:s=[]}=e,{renderers:f={}}=e,{options:a={}}=e,{isInline:u=!1}=e;const c=jt();let d,m,k;return vi($r,{slug:_=>n?n.slug(_):"",getOptions:()=>l}),Gt(()=>{t(7,k=!0)}),i.$$set=_=>{"source"in _&&t(2,s=_.source),"renderers"in _&&t(3,f=_.renderers),"options"in _&&t(4,a=_.options),"isInline"in _&&t(5,u=_.isInline)},i.$$.update=()=>{i.$$.dirty&4&&t(8,r=Array.isArray(s)),i.$$.dirty&4&&(n=s?new tn:void 0),i.$$.dirty&16&&t(9,l={...Ts,...a}),i.$$.dirty&869&&(r?t(0,d=s):(t(6,m=new We(l)),t(0,d=u?m.inlineTokens(s):m.lex(s)),c("parsed",{tokens:d}))),i.$$.dirty&8&&t(1,o={...Is,...f}),i.$$.dirty&385&&k&&!r&&c("parsed",{tokens:d})},[d,o,s,f,a,u,m,k,r,l]}class js extends ce{constructor(e){super(),de(this,e,Rs,As,he,{source:2,renderers:3,options:4,isInline:5})}}const Ns={AdditionalItemsError:"Array at `{{pointer}}` may not have an additional item `{{key}}`",AdditionalPropertiesError:"Additional property `{{property}}` on `{{pointer}}` does not match schema `{{schema}}`",AllOfError:"Value `{{value}}` at `{{pointer}}` does not match schema of `{{allOf}}`",AnyOfError:"Value `{{value}}` at `{{pointer}}` does not match any schema of `{{anyOf}}`",ConstError:"Expected value at `{{pointer}}` to be `{{expected}}`, but value given is `{{value}}`",containsAnyError:"The array at `{{pointer}}` must contain at least one item",ContainsArrayError:"The property at `{{pointer}}` must not be an array",ContainsError:"The array at `{{pointer}}` must contain an element that matches `{{schema}}`",EnumError:"Expected given value `{{value}}` in `{{pointer}}` to be one of `{{values}}`",FormatDateError:"Value `{{value}}` at `{{pointer}}` is not a valid date",FormatDateTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid date-time",FormatEmailError:"Value `{{value}}` at `{{pointer}}` is not a valid email",FormatHostnameError:"Value `{{value}}` at `{{pointer}}` is not a valid hostname",FormatIPV4Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv4 address",FormatIPV4LeadingZeroError:"IPv4 addresses starting with zero are invalid, since they are interpreted as octals",FormatIPV6Error:"Value `{{value}}` at `{{pointer}}` is not a valid IPv6 address",FormatIPV6LeadingZeroError:"IPv6 addresses starting with zero are invalid, since they are interpreted as octals",FormatJSONPointerError:"Value `{{value}}` at `{{pointer}}` is not a valid json-pointer",FormatRegExError:"Value `{{value}}` at `{{pointer}}` is not a valid regular expression",FormatTimeError:"Value `{{value}}` at `{{pointer}}` is not a valid time",FormatURIError:"Value `{{value}}` at `{{pointer}}` is not a valid uri",FormatURIReferenceError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-reference",FormatURITemplateError:"Value `{{value}}` at `{{pointer}}` is not a valid uri-template",FormatURLError:"Value `{{value}}` at `{{pointer}}` is not a valid url",InvalidDataError:"No value may be specified in `{{pointer}}`",InvalidPropertyNameError:"Invalid property name `{{property}}` at `{{pointer}}`",MaximumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{maximum}}` at maximum",MaxItemsError:"Too many items in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MaxLengthError:"Value `{{pointer}}` should have a maximum length of `{{maxLength}}`, but got `{{length}}`.",MaxPropertiesError:"Too many properties in `{{pointer}}`, should be `{{maximum}}` at most, but got `{{length}}`",MinimumError:"Value in `{{pointer}}` is `{{length}}`, but should be `{{minimum}}` at minimum",MinItemsError:"Too few items in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MinItemsOneError:"At least one item is required in `{{pointer}}`",MinLengthError:"Value `{{pointer}}` should have a minimum length of `{{minLength}}`, but got `{{length}}`.",MinLengthOneError:"A value is required in `{{pointer}}`",MinPropertiesError:"Too few properties in `{{pointer}}`, should be at least `{{minimum}}`, but got `{{length}}`",MissingDependencyError:"The required propery '{{missingProperty}}' in `{{pointer}}` is missing",MissingOneOfPropertyError:"Value at `{{pointer}}` property: `{{property}}`",MultipleOfError:"Expected `{{value}}` in `{{pointer}}` to be multiple of `{{multipleOf}}`",MultipleOneOfError:"Value `{{value}}` should not match multiple schemas in oneOf `{{matches}}`",NoAdditionalPropertiesError:"Additional property `{{property}}` in `{{pointer}}` is not allowed",NotError:"Value `{{value}}` at pointer should not match schema `{{not}}`",OneOfError:"Value `{{value}}` in `{{pointer}}` does not match any given oneof schema",OneOfPropertyError:"Failed finding a matching oneOfProperty schema in `{{pointer}}` where `{{property}}` matches `{{value}}`",PatternError:"Value in `{{pointer}}` should match `{{description}}`, but received `{{received}}`",PatternPropertiesError:"Property `{{key}}` does not match any patterns in `{{pointer}}`. Valid patterns are: {{patterns}}",RequiredPropertyError:"The required property `{{key}}` is missing at `{{pointer}}`",TypeError:"Expected `{{value}}` ({{received}}) in `{{pointer}}` to be of type `{{expected}}`",UndefinedValueError:"Value must not be undefined in `{{pointer}}`",UniqueItemsError:"Expected unique items in {{pointer}}: duplicate value `{{value}}` found at {{itemPointer}} and {{duplicatePointer}}",UnknownPropertyError:"Could not find a valid schema for property `{{pointer}}` within object",ValueNotEmptyError:"A value for `{{property}}` is required at `{{pointer}}`"};function Ls(i,e={}){return i.replace(/\{\{\w+\}\}/g,t=>e[t.replace(/[{}]/g,"")])}function Cs(i,e,t=i){const r=Ns[i]||t;return Ls(r,e)}function zs(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ds(i,e){return{type:"error",name:i,code:zs(i),message:Cs(i,e),data:e}}function Q(i){return Ds.bind(null,i)}const Vs=Object.prototype.toString;function pe(i){const e=Vs.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();return e==="file"?"object":e}function Re(i){return(i==null?void 0:i.type)==="error"}function Ms(i){return i instanceof Promise}function It(i){return Re(i)||Ms(i)}function ct(i,e=[]){for(let t=0;t<i.length;t+=1){const r=i[t];Array.isArray(r)?ct(r,e):e.push(r)}return e}const gt={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,floatingPointPrecision:1e4,propertyBlacklist:["_id"]},{DECLARATOR_ONEOF:Ut}=gt;function Us(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[Ut]){const o=[],s=t[Ut],f=e[t[Ut]];if(f===void 0)return i.errors.missingOneOfPropertyError({property:s,pointer:r});for(let a=0;a<t.oneOf.length;a+=1){const u=i.resolveRef(t.oneOf[a]),c=i.step(s,u,e,r);if(Re(c))return c;let d=ct(i.validate(f,c,r));if(d=d.filter(It),d.length>0)o.push(...d);else return u}return i.errors.oneOfPropertyError({property:s,value:f,pointer:r,errors:o})}const n=[],l=[];for(let o=0;o<t.oneOf.length;o+=1){const s=i.resolveRef(t.oneOf[o]);let f=ct(i.validate(e,s,r));f=f.filter(It),f.length>0?l.push(...f):n.push(s)}return n.length===1?n[0]:n.length>1?i.errors.multipleOneOfError({value:e,pointer:r,matches:n}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf,errors:l})}const nn=i=>JSON.parse(JSON.stringify(i));var qs=function(e){return Bs(e)&&!Fs(e)};function Bs(i){return!!i&&typeof i=="object"}function Fs(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||Hs(i)}var xs=typeof Symbol=="function"&&Symbol.for,Zs=xs?Symbol.for("react.element"):60103;function Hs(i){return i.$$typeof===Zs}function Js(i){return Array.isArray(i)?[]:{}}function dt(i,e){return e.clone!==!1&&e.isMergeableObject(i)?it(Js(i),i,e):i}function Ws(i,e,t){return i.concat(e).map(function(r){return dt(r,t)})}function Ks(i,e){if(!e.customMerge)return it;var t=e.customMerge(i);return typeof t=="function"?t:it}function $s(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function ar(i){return Object.keys(i).concat($s(i))}function Qr(i,e){try{return e in i}catch{return!1}}function Qs(i,e){return Qr(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function Ys(i,e,t){var r={};return t.isMergeableObject(i)&&ar(i).forEach(function(n){r[n]=dt(i[n],t)}),ar(e).forEach(function(n){Qs(i,n)||(Qr(i,n)&&t.isMergeableObject(e[n])?r[n]=Ks(n,t)(i[n],e[n],t):r[n]=dt(e[n],t))}),r}function it(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||Ws,t.isMergeableObject=t.isMergeableObject||qs,t.cloneUnlessOtherwiseSpecified=dt;var r=Array.isArray(e),n=Array.isArray(i),l=r===n;return l?r?t.arrayMerge(i,e,t):Ys(i,e,t):dt(e,t)}it.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return it(r,n,t)},{})};var Gs=it,Xs=Gs;const Yr=Nt(Xs),ef=(i,e)=>e,ht=(i,e)=>Yr(i,e,{arrayMerge:ef}),tf=(i,e)=>{const t=i.concat(e);return t.filter((r,n)=>t.indexOf(r)===n)},nf=(i,e)=>Yr(i,e,{arrayMerge:tf});function Ht(i,e,t){var r;const n={...(r=i.resolveRef(e))!==null&&r!==void 0?r:{}};if(n.if&&(n.then||n.else)){const l=i.isValid(t,n.if);if(l&&n.then)return Ht(i,n.then,t);if(!l&&n.else)return Ht(i,n.else,t);delete n.if,delete n.then,delete n.else}return n}function rf(i,e,t=i.rootSchema,r="#"){let n=nn(t);for(let l=0;l<t.allOf.length;l+=1){const o=Ht(i,t.allOf[l],e);n=nf(n,o),e=i.getTemplate(e,n)}return delete n.allOf,n}const{DECLARATOR_ONEOF:qt}=gt;function lf(i,e,t,r){if(t==null||e.properties==null)return-1;let n=0;const l=Object.keys(e.properties);for(let o=0;o<l.length;o+=1){const s=l[o];t[s]!=null&&i.isValid(t[s],e.properties[s],r)&&(n+=1)}return n}function rn(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[qt]){const l=[],o=t[qt],s=e[t[qt]];if(s===void 0)return i.errors.missingOneOfPropertyError({property:o,pointer:r});for(let f=0;f<t.oneOf.length;f+=1){const a=i.resolveRef(t.oneOf[f]),u=i.step(o,a,e,r);if(Re(u))return u;let c=ct(i.validate(s,u,r));if(c=c.filter(It),c.length>0)l.push(...c);else return a}return i.errors.oneOfPropertyError({property:o,value:s,pointer:r,errors:l})}const n=[];for(let l=0;l<t.oneOf.length;l+=1){const o=i.resolveRef(t.oneOf[l]);i.isValid(e,o,r)&&n.push(o)}if(n.length===1)return n[0];if(pe(e)==="object"){let l,o=0;for(let s=0;s<t.oneOf.length;s+=1){const f=i.resolveRef(t.oneOf[s]),a=lf(i,f,e);o<a&&(o=a,l=t.oneOf[s])}return l===void 0?i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf}):l}return n.length>1?i.errors.multipleOneOfError({matches:n,data:e,pointer:r}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf})}function of(i,e){return i==null||i.$ref==null?i:i.getRoot?i.getRoot().getRef(i):e.getRef(i)}function sf(i,e){if(i==null||i.$ref==null)return i;const t=e.getRef(i),r=Object.assign({},t,i);return delete r.$ref,Object.defineProperty(r,"__ref",{enumerable:!1,value:i.__ref}),Object.defineProperty(r,"getRoot",{enumerable:!1,value:i.getRoot}),r}var Gr={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(typeof self<"u"?self:El,()=>(()=>{var t={d:(E,C)=>{for(var w in C)t.o(C,w)&&!t.o(E,w)&&Object.defineProperty(E,w,{enumerable:!0,get:C[w]})},o:(E,C)=>Object.prototype.hasOwnProperty.call(E,C),r:E=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(E,"__esModule",{value:!0})}},r={};function n(E){return E==="#"||E===""||Array.isArray(E)&&E.length===0||!1}t.r(r),t.d(r,{default:()=>R,get:()=>d,isRoot:()=>n,join:()=>ne,remove:()=>I,removeUndefinedItems:()=>P,set:()=>v,split:()=>c,splitLast:()=>re});const l=/~1/g,o=/~0/g,s=/\/+/g,f=/(^[#/]*|\/+$)/g;function a(E){return E.replace(l,"/").replace(o,"~")}function u(E){return a(decodeURIComponent(E))}function c(E){if(E==null||typeof E!="string"||n(E))return Array.isArray(E)?E:[];const C=E.indexOf("#")>=0?u:a,w=(E=(E=E.replace(s,"/")).replace(f,"")).split("/");for(let j=0,J=w.length;j<J;j+=1)w[j]=C(w[j]);return w}function d(E,C,w){if(C==null||E==null)return w;if(n(C))return E;const j=m(E,c(C));return j===void 0?w:j}function m(E,C){const w=C.shift();if(E!==void 0)return w!==void 0?m(E[w],C):E}const k=/^\[.*\]$/,_=/^\[(.+)\]$/;function A(E,C){return E==="__proto__"||E=="constructor"&&C.length>0&&C[0]=="prototype"}function v(E,C,w){if(C==null)return E;const j=c(C);if(j.length===0)return E;E==null&&(E=k.test(j[0])?[]:{});let J,le,oe=E;for(;j.length>1;)J=j.shift(),le=k.test(j[0]),A(J,j)||(oe=S(oe,J,le));return J=j.pop(),b(oe,J,w),E}function b(E,C,w){let j;const J=C.match(_);C==="[]"&&Array.isArray(E)?E.push(w):J?(j=J.pop(),E[j]=w):E[C]=w}function S(E,C,w){if(E[C]!=null)return E[C];const j=w?[]:{};return b(E,C,j),j}function P(E){let C=0,w=0;for(;C+w<E.length;)E[C+w]===void 0&&(w+=1),E[C]=E[C+w],C+=1;return E.length=E.length-w,E}function I(E,C,w){const j=c(C),J=j.pop(),le=d(E,j);return le&&delete le[J],Array.isArray(le)&&w!==!0&&P(le),E}const T=/\/+/g,L=/~/g,D=/\//g;function Z(E,C){if(E.length===0)return C?"#":"";for(let w=0,j=E.length;w<j;w+=1)E[w]=E[w].replace(L,"~0").replace(D,"~1"),C&&(E[w]=encodeURIComponent(E[w]));return((C?"#/":"/")+E.join("/")).replace(T,"/")}function ne(E,...C){const w=[];if(Array.isArray(E))return Z(E,arguments[1]===!0);const j=arguments[arguments.length-1],J=typeof j=="boolean"?j:E&&E[0]==="#";for(let oe=0,Ie=arguments.length;oe<Ie;oe+=1)w.push.apply(w,c(arguments[oe]));const le=[];for(let oe=0,Ie=w.length;oe<Ie;oe+=1)if(w[oe]===".."){if(le.length===0)return J?"#":"";le.pop()}else le.push(w[oe]);return Z(le,J)}function re(E){const C=c(E);if(C.length===0)return typeof E=="string"&&E[0]==="#"?["#",C[0]]:["",void 0];if(C.length===1)return E[0]==="#"?["#",C[0]]:["",C[0]];const w=C.pop();return[ne(C,E[0]==="#"),w]}const R={get:d,set:v,remove:I,join:ne,split:c,splitLast:re,isRoot:n,removeUndefinedItems:P};return r})())})(Gr);var rt=Gr.exports;const mt=Nt(rt),ff={};function af(i,e,t,r=i.rootSchema){const n=mt.split(e);return r=i.resolveRef(r),Xr(i,r,n,e,t)}function Xr(i,e,t,r,n=ff){if(t.length===0)return i.resolveRef(e);const l=t.shift();return e=i.step(l,e,n,r),Re(e)?e:(n=n[l],Xr(i,e,t,`${r}/${l}`,n))}class uf{constructor(e,t){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=e,this.typeKeywords=JSON.parse(JSON.stringify(e.typeKeywords)),this.validateKeyword=Object.assign({},e.validateKeyword),this.validateType=Object.assign({},e.validateType),this.validateFormat=Object.assign({},e.validateFormat),this.errors=Object.assign({},e.errors),this.setSchema(t)}get rootSchema(){return this.__rootSchema}set rootSchema(e){e!=null&&(this.__rootSchema=this.config.compileSchema(this,e))}addRemoteSchema(e,t){this.config.addRemoteSchema(this,e,t)}compileSchema(e){var t;return this.config.compileSchema(this,e,(t=this.rootSchema)!==null&&t!==void 0?t:e)}createSchemaOf(e){return this.config.createSchemaOf(e)}each(e,t,r,n){return this.config.each(this,e,t,r,n)}eachSchema(e,t=this.rootSchema){return this.config.eachSchema(t,e)}getChildSchemaSelection(e,t){return this.config.getChildSchemaSelection(this,e,t)}getSchema(e="#",t,r){return this.config.getSchema(this,e,t,r)}getTemplate(e,t,r){return this.config.getTemplate(this,e,t,r)}isValid(e,t,r){return this.config.isValid(this,e,t,r)}resolveAnyOf(e,t,r){return this.config.resolveAnyOf(this,e,t,r)}resolveAllOf(e,t,r){return this.config.resolveAllOf(this,e,t,r)}resolveRef(e){return this.config.resolveRef(e,this.rootSchema)}resolveOneOf(e,t,r){return this.config.resolveOneOf(this,e,t,r)}setSchema(e){this.rootSchema=e}step(e,t,r,n){return this.config.step(this,e,t,r,n)}validate(e,t,r){return this.config.validate(this,e,t,r)}}function cf(i,e,t){t.id=t.id||e,i.remotes[e]=i.compileSchema(t)}var ei={},Ve={},Lt={};Object.defineProperty(Lt,"__esModule",{value:!0});Lt.TokenError=void 0;class df extends Error{constructor(e,t){if(super(e),this.message=e,this.token=t,t&&t.errors)t.errors.push(this);else throw this}inspect(){return"SyntaxError: "+this.message}}Lt.TokenError=df;Object.defineProperty(Ve,"__esModule",{value:!0});Ve.Parser=Ve.findRuleByName=Ve.parseRuleName=Ve.escapeRegExp=Ve.readToken=void 0;const ur=/^[A-Z0-9_]+$/,cr=/(\?|\+|\*)$/,dr=/^(@|&|!)/,Et="WS",kt=Lt;function Jt(i,e){let t=e.exec(i);return t&&t.index==0?t[0].length==0&&e.source.length>0?null:{type:null,text:t[0],rest:i.substr(t[0].length),start:0,end:t[0].length-1,fullText:t[0],errors:[],children:[],parent:null}:null}Ve.readToken=Jt;function ti(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}Ve.escapeRegExp=ti;function ni(i){i.rest="",i.children&&i.children.forEach(e=>ni(e))}function ri(i,e){i.start+=e,i.end+=e,i.children&&i.children.forEach(t=>ri(t,i.start))}function ii(i,e){e.errors&&e.errors.length&&e.errors.forEach(t=>i.push(t)),e.children&&e.children.forEach(t=>ii(i,t))}function Xe(i){let e=cr.exec(i),t=dr.exec(i),r=e&&e[0]||"",n=t&&t[0]||"",l={raw:i,name:i.replace(cr,"").replace(dr,""),isOptional:r=="?"||r=="*",allowRepetition:r=="+"||r=="*",atLeastOne:r=="+",lookupPositive:n=="&",lookupNegative:n=="!",pinned:n=="@",lookup:!1,isLiteral:!1};return l.isLiteral=l.name[0]=="'"||l.name[0]=='"',l.lookup=l.lookupNegative||l.lookupPositive,l}Ve.parseRuleName=Xe;function li(i,e){let t=Xe(i);return e.cachedRules[t.name]||null}Ve.findRuleByName=li;function Wt(i,e){if(i.children){let t=i.children.filter(r=>r.type&&e.test(r.type));for(let r=0;r<t.length;r++){let n=i.children.indexOf(t[r]);n!=-1&&i.children.splice(n,1)}i.children.forEach(r=>Wt(r,e))}}const hf=["EOF"];class oi{constructor(e,t){this.grammarRules=e,this.options=t,this.cachedRules={},this.debug=t?t.debug===!0:!1;let r=[],n=[];if(e.forEach(l=>{let o=Xe(l.name);if(o.name in this.cachedRules){r.push("Duplicated rule "+o.name);return}else this.cachedRules[o.name]=l;if(!l.bnf||!l.bnf.length){let s="Missing rule content, rule: "+l.name;r.indexOf(s)==-1&&r.push(s)}else l.bnf.forEach(s=>{if(typeof s[0]=="string"&&Xe(s[0]).name==l.name){let a="Left recursion is not allowed, rule: "+l.name;r.indexOf(a)==-1&&r.push(a)}s.forEach(f=>{if(typeof f=="string"){let a=Xe(f);!a.isLiteral&&n.indexOf(a.name)==-1&&hf.indexOf(a.name)==-1&&n.push(a.name)}})});Et==l.name&&(l.implicitWs=!1),l.implicitWs&&n.indexOf(Et)==-1&&n.push(Et),l.recover&&n.indexOf(l.recover)==-1&&n.push(l.recover)}),n.forEach(l=>{l in this.cachedRules||r.push("Missing rule "+l)}),r.length)throw new Error(r.join(`
`))}getAST(e,t){t||(t=this.grammarRules.filter(n=>!n.fragment&&n.name.indexOf("%")!=0)[0].name);let r=this.parse(e,t);if(r){ii(r.errors,r),ri(r,0),Wt(r,/^%/),(!this.options||!this.options.keepUpperRules)&&Wt(r,ur);let n=r.rest;n&&new kt.TokenError(`Unexpected end of input: 
`+n,r),ni(r),r.rest=n}return r}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,r=0){let n=null,l=Xe(t),o,s=this.debug&&!ur.test(l.name);s&&console.log(new Array(r).join("│  ")+"Trying to get "+t+" from "+JSON.stringify(e.split(`
`)[0]));let f=l.name,a=li(l.name,this);if(l.name=="EOF"){if(e.length)return null;if(e.length==0)return{type:"EOF",text:"",rest:"",start:0,end:0,fullText:"",errors:[],children:[],parent:null}}try{if(!a&&l.isLiteral){let u=l.name.trim();if(u.startsWith('"')?u=JSON.parse(u):u.startsWith("'")&&(u=u.replace(/^'(.+)'$/,"$1").replace(/\\'/g,"'")),u==="")return{type:"%%EMPTY%%",text:"",rest:e,start:0,end:0,fullText:"",errors:[],children:[],parent:null};o=new RegExp(ti(u)),f=null}}catch(u){return u instanceof ReferenceError&&console.error(u),null}if(o){let u=Jt(e,o);if(u)return u.type=f,u}else{let u=a.bnf;u instanceof Array&&u.forEach(c=>{if(n)return;let d=null,m={type:l.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};a.fragment&&(m.fragment=!0);let k=e,_=0,A=c.length>0,v=!1;for(let b=0;b<c.length;b++)if(typeof c[b]=="string"){let S=Xe(c[b]);A=A&&S.isOptional;let P,I=!1;do{if(P=null,a.implicitWs&&(P=this.parse(k,S.name,r+1),!P)){let T;do if(T=this.parse(k,Et,r+1),T)m.text=m.text+T.text,m.end=m.text.length,T.parent=m,m.children.push(T),k=k.substr(T.text.length),_+=T.text.length;else break;while(T&&T.text.length)}if(P=P||this.parse(k,S.name,r+1),S.lookupNegative){if(P)return;break}if(S.lookupPositive&&!P)return;if(!P&&(S.isOptional||S.atLeastOne&&I))break;if(P&&a.pinned==b+1&&(d=P,s&&console.log(new Array(r+1).join("│  ")+"└─ "+P.type+" PINNED")),P||(P=this.parseRecovery(a,k,r+1)),!P)if(d)n=m,P={type:"SyntaxError",text:k,children:[],end:k.length,errors:[],fullText:"",parent:null,start:0,rest:""},k.length?new kt.TokenError(`Unexpected end of input. Expecting ${S.name} Got: ${k}`,P):new kt.TokenError(`Unexpected end of input. Missing ${S.name}`,P),s&&console.log(new Array(r+1).join("│  ")+"└─ "+P.type+" "+JSON.stringify(P.text));else return;if(I=!0,v=!0,P.type=="%%EMPTY%%")break;P.start+=_,P.end+=_,!S.lookupPositive&&P.type&&(P.fragment?P.children&&P.children.forEach(T=>{T.start+=_,T.end+=_,T.parent=m,m.children.push(T)}):(P.parent=m,m.children.push(P))),S.lookup&&(P.lookup=!0),s&&console.log(new Array(r+1).join("│  ")+"└─ "+P.type+" "+JSON.stringify(P.text)),!S.lookup&&!P.lookup&&(m.text=m.text+P.text,m.end=m.text.length,k=k.substr(P.text.length),_+=P.text.length),m.rest=k}while(P&&S.allowRepetition&&k.length&&!P.lookup)}else{let S=Jt(k,c[b]);if(!S)return;s&&console.log(new Array(r+1).join("│  ")+"└> "+JSON.stringify(S.text)+c[b].source),v=!0,S.start+=_,S.end+=_,m.text=m.text+S.text,m.end=m.text.length,k=k.substr(S.text.length),_+=S.text.length,m.rest=k}v&&(n=m,s&&console.log(new Array(r).join("│  ")+"├<─┴< PUSHING "+n.type+" "+JSON.stringify(n.text)))}),n&&a.simplifyWhenOneChildren&&n.children.length==1&&(n=n.children[0])}return n||s&&console.log(t+" NOT RESOLVED FROM "+e),n}parseRecovery(e,t,r){if(e.recover&&t.length){let n=this.debug;n&&console.log(new Array(r+1).join("│  ")+"Trying to recover until token "+e.recover+" from "+JSON.stringify(t.split(`
`)[0]+t.split(`
`)[1]));let l={type:"SyntaxError",text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:""},o;do if(o=this.parse(t,e.recover,r+1),o){new kt.TokenError('Unexpected input: "'+l.text+`" Expecting: ${e.name}`,l);break}else l.text=l.text+t[0],l.end=l.text.length,t=t.substr(1);while(!o&&t.length>0);if(l.text.length>0&&o)return n&&console.log(new Array(r+1).join("│  ")+"Recovered text: "+JSON.stringify(l.text)),l}return null}}Ve.Parser=oi;Ve.default=oi;Object.defineProperty(ei,"__esModule",{value:!0});const ft=Ve;var Kt;(function(i){i.RULES=[{name:"Grammar",bnf:[["RULE_S*","%Atomic*","EOF"]]},{name:"%Atomic",bnf:[["Production","RULE_S*"]],fragment:!0},{name:"Production",bnf:[["NCName","RULE_S*",'"::="',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*","RULE_EOL+","RULE_S*"]]},{name:"NCName",bnf:[[/[a-zA-Z][a-zA-Z_0-9]*/]]},{name:"Choice",bnf:[["SequenceOrDifference","%_Choice_1*"]],fragment:!0},{name:"%_Choice_1",bnf:[["RULE_WHITESPACE*",'"|"',"RULE_WHITESPACE*","SequenceOrDifference"]],fragment:!0},{name:"SequenceOrDifference",bnf:[["Item","RULE_WHITESPACE*","%_Item_1?"]]},{name:"%_Item_1",bnf:[["Minus","Item"],["Item*"]],fragment:!0},{name:"Minus",bnf:[['"-"']]},{name:"Item",bnf:[["RULE_WHITESPACE*","%Primary","PrimaryDecoration?"]],fragment:!0},{name:"PrimaryDecoration",bnf:[['"?"'],['"*"'],['"+"']]},{name:"DecorationName",bnf:[['"ebnf://"',/[^\x5D#]+/]]},{name:"%Primary",bnf:[["NCName"],["StringLiteral"],["CharCode"],["CharClass"],["SubItem"]],fragment:!0},{name:"SubItem",bnf:[['"("',"RULE_WHITESPACE*","Choice","RULE_WHITESPACE*",'")"']]},{name:"StringLiteral",bnf:[[`'"'`,/[^"]*/,`'"'`],[`"'"`,/[^']*/,`"'"`]],pinned:1},{name:"CharCode",bnf:[['"#x"',/[0-9a-zA-Z]+/]]},{name:"CharClass",bnf:[["'['","'^'?","%RULE_CharClass_1+",'"]"']]},{name:"%RULE_CharClass_1",bnf:[["CharCodeRange"],["CharRange"],["CharCode"],["RULE_Char"]],fragment:!0},{name:"RULE_Char",bnf:[[/\x09/],[/\x0A/],[/\x0D/],[/[\x20-\x5c]/],[/[\x5e-\uD7FF]/],[/[\uE000-\uFFFD]/]]},{name:"CharRange",bnf:[["RULE_Char",'"-"',"RULE_Char"]]},{name:"CharCodeRange",bnf:[["CharCode",'"-"',"CharCode"]]},{name:"RULE_WHITESPACE",bnf:[["%RULE_WHITESPACE_CHAR*"],["Comment","RULE_WHITESPACE*"]]},{name:"RULE_S",bnf:[["RULE_WHITESPACE","RULE_S*"],["RULE_EOL","RULE_S*"]]},{name:"%RULE_WHITESPACE_CHAR",bnf:[[/\x09/],[/\x20/]],fragment:!0},{name:"Comment",bnf:[['"/*"',"%RULE_Comment_Body*",'"*/"']]},{name:"%RULE_Comment_Body",bnf:[['!"*/"',/[^*]/]],fragment:!0},{name:"RULE_EOL",bnf:[[/\x0D/,/\x0A/],[/\x0A/],[/\x0D/]]},{name:"Link",bnf:[["'['","Url","']'"]]},{name:"Url",bnf:[[/[^\x5D:/?#]/,'"://"',/[^\x5D#]+/,"%Url1?"]]},{name:"%Url1",bnf:[['"#"',"NCName"]],fragment:!0}],i.defaultParser=new ft.Parser(i.RULES,{debug:!1});const e=/^(!|&)/,t=/(\?|\+|\*)$/,r=/^%/;function n(v,b){if(typeof v=="string"){if(e.test(v))return"";if(r.test(v)){let P=t.exec(v),I=P?P[0]+" ":"";return l(v,b)?s(v,b)+I:"("+s(v,b)+")"+I}return v}else return v.source.replace(/\\(?:x|u)([a-zA-Z0-9]+)/g,"#x$1").replace(/\[\\(?:x|u)([a-zA-Z0-9]+)-\\(?:x|u)([a-zA-Z0-9]+)\]/g,"[#x$1-#x$2]")}function l(v,b){let S=ft.findRuleByName(v,b);return S&&S.bnf.length==1&&S.bnf[0].length==1&&(S.bnf[0][0]instanceof RegExp||S.bnf[0][0][0]=='"'||S.bnf[0][0][0]=="'")}function o(v,b){return v.map(S=>n(S,b)).join(" ")}function s(v,b){let S=ft.findRuleByName(v,b);return S?S.bnf.map(P=>o(P,b)).join(" | "):"RULE_NOT_FOUND {"+v+"}"}function f(v){let b=[];return v.grammarRules.forEach(S=>{if(!/^%/.test(S.name)){let P=S.recover?" /* { recoverUntil="+S.recover+" } */":"";b.push(S.name+" ::= "+s(S.name,v)+P)}}),b.join(`
`)}i.emit=f;let a=0;function u(v,b){throw console.log("reberia restar "+b+" a "+v),new Error("Difference not supported yet")}function c(v){return new RegExp(v.replace(/#x([a-zA-Z0-9]{4})/g,"\\u$1").replace(/#x([a-zA-Z0-9]{3})/g,"\\u0$1").replace(/#x([a-zA-Z0-9]{2})/g,"\\x$1").replace(/#x([a-zA-Z0-9]{1})/g,"\\x0$1"))}function d(v,b,S){let P=null,I=[];return b.children.forEach((T,L)=>{T.type=="Minus"&&u(P,T);let D=b.children[L+1];D=D&&D.type=="PrimaryDecoration"&&D.text||"";let Z="";switch(T.type){case"SubItem":let ne="%"+(S+a++);m(v,T,ne),I.push(Z+ne+D);break;case"NCName":case"StringLiteral":I.push(Z+T.text+D);break;case"CharCode":case"CharClass":if(D||Z){let re={name:"%"+(S+a++),bnf:[[c(T.text)]]};v.push(re),I.push(Z+re.name+D)}else I.push(c(T.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+T.type+" -> "+JSON.stringify(T.text))}P=T}),I}function m(v,b,S){let P=b.children.filter(L=>L.type=="SequenceOrDifference").map(L=>d(v,L,S)),I={name:S,bnf:P},T=null;P.forEach(L=>{T=T||L.recover,delete L.recover}),S.indexOf("%")==0&&(I.fragment=!0),T&&(I.recover=T),v.push(I)}function k(v,b=i.defaultParser){let S=b.getAST(v);if(!S)throw new Error("Could not parse "+v);if(S.errors&&S.errors.length)throw S.errors[0];let P=[];return S.children.filter(I=>I.type=="Production").map(I=>{let T=I.children.filter(L=>L.type=="NCName")[0].text;m(P,I,T)}),P}i.getRules=k;function _(v,b=i.defaultParser){return k(v.join(""),b)}i.Transform=_;class A extends ft.Parser{constructor(b,S){const P=S&&S.debugRulesParser===!0?new ft.Parser(i.RULES,{debug:!0}):i.defaultParser;super(k(b,P),S)}emitSource(){return f(this)}}i.Parser=A})(Kt||(Kt={}));var mf=ei.default=Kt;const pf="[^?/{}*,()#]+",gf=`
root ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP)
recursion ::= (SEP query | pattern)*

query ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead?
property ::= ${pf}
regex ::= "{" [^}]+ "}"
SEP ::= "/"
all ::= "**"
any ::= "*"

typecheck ::= "?:" ("value" | "boolean" | "string" | "number" | "object" | "array")
lookahead ::= "?" expression ((andExpr | orExpr) expression)*
andExpr ::= S? "&&" S?
orExpr ::= S? "||" S?

expression ::= (exprProperty | ESC escaped ESC) ((isnot | is) (exprProperty | regex | ESC escaped ESC))*
exprProperty ::= [a-zA-Z0-9-_ $]+
escaped ::= [^"]+
is ::= ":"
isnot ::= ":!"
ESC ::= '"'

pattern ::= S? "(" (SEP query | pattern (orPattern? pattern)*)* ")" quantifier? S? lookahead?
quantifier ::= "+" | "*" | [0-9]+
orPattern ::= S? "," S?

S ::= [ ]*
`,_f=new mf.Parser(gf),bf=i=>_f.getAST(i),ze=0,lt=3,Tt=(i,e)=>`${i}/${e}`,si=Object.prototype.toString,Ef=/Object|Array/,$t=i=>Ef.test(si.call(i)),kf=i=>si.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();function fi(i){return new RegExp(i.text.replace(/(^{|}$)/g,""))}function yf(i,e){Array.isArray(i)?i.forEach(e):Object.prototype.toString.call(i)==="[object Object]"&&Object.keys(i).forEach(function(t){e(i[t],t,i)})}function hr(i){return Array.isArray(i)?i.map(function(e,t){return`${t}`}):Object.prototype.toString.call(i)==="[object Object]"?Object.keys(i):[]}const Ye={mem:[],get(i,e){const t=i[ze][e];if(!Ye.mem.includes(t))return $t(t)&&Ye.mem.push(t),[t,e,i[ze],Tt(i[lt],e)]},reset(){Ye.mem.length=0}},Qt={any(i,e){const t=e[ze];return hr(t).map(r=>[t[r],r,t,Tt(e[lt],r)])},all(i,e){const t=[e];return yf(e[ze],(r,n)=>{const l=Ye.get(e,n);l&&t.push(...Qt.all(i,l))}),t},regex(i,e){const t=fi(i),r=e[ze];return hr(r).filter(n=>t.test(n)).map(n=>[r[n],n,r,Tt(e[lt],n)])}},At={escaped:(i,e)=>At.property(i,e),property:(i,e)=>{const t=i.text;if(e[ze]&&e[ze][t]!==void 0)return[e[ze][t],t,e[ze],Tt(e[lt],t)]},typecheck:(i,e)=>{const t=i.text.replace(/^\?:/,"");if(t==="value")return $t(e[ze])?void 0:e;if(kf(e[ze])===t)return e},lookahead:(i,e)=>{let t=!0,r=!1;return i.children.forEach(n=>{if(n.type==="expression"){const l=At.expression(n,e)!==void 0;t=r===!0?t||l:t&&l}else r=n.type==="orExpr"}),t?e:void 0},expression:(i,e)=>{const t=i.children[0].text,r=i.children[1],n=i.children[2],l=e[ze];if($t(l)!==!1)return vf(l[t],r,n)?e:void 0}};function vf(i,e,t){if(e===void 0)return i!==void 0;let r;const n=`${i}`;return t.type==="regex"?r=fi(t).test(n):r=n===t.text,e.type==="isnot"&&(r=r===!1&&i!==void 0),r}function wf(i,e,t,r){const n=[];for(let l=0,o=e.length;l<o;l+=1)n.push(...i(t,e[l],t,r));return n}function Of(i,e,t,r){const n=[];for(let l=0,o=e.length;l<o;l+=1){const s=i(t,e[l],r);s&&n.push(s)}return n}function Sf(i,e,t){let r=i;return e.children.forEach(n=>{if(Qt[n.type])r=wf(Qt[n.type],r,n,t);else if(At[n.type])r=Of(At[n.type],r,n,t);else throw new Error(`Unknown filter ${n.type}`)}),r}function Pf(i,e,t){const r=[];let n=i;return e.children.forEach(l=>{if(l.type==="orPattern"){r.push(...n),n=i;return}n=ln(n,l,t)}),r.push(...n),r}function If(i){if(i==null)return 1;if(i==="*"||i==="+")return 1/0;const e=parseInt(i);return isNaN(e)?1:e}function Tf(i,e,t){const r=[],n=e.children.find(f=>f.type==="quantifier"),l=If(n&&n.text);let o=i;n&&n.text==="*"&&r.push(...o);let s=0;for(;o.length>0&&s<l;)o=Pf(o,e,t),r.push(...o),s+=1;return r}function Af(i,e,t){let r=i;return e.children.forEach(n=>r=ln(r,n,t)),r}function ln(i,e,t){let r;return e.type==="query"?r=Sf(i,e,t):e.type==="pattern"?r=Tf(i,e,t):r=Af(i,e,t),Ye.reset(),Ye.mem.push(i),r}function Rf(i,e){return Ye.reset(),Ye.mem.push(i),ln([[i,null,null,"#"]],e)}const mr={value:i=>i.map(e=>e[ze]),pointer:i=>i.map(e=>e[lt]),all:i=>i,map:i=>{const e={};return i.forEach(t=>e[t[lt]]=t[ze]),e}};var et;(function(i){i.POINTER="pointer",i.VALUE="value",i.ALL="all",i.MAP="map"})(et||(et={}));_t.POINTER=et.POINTER;_t.VALUE=et.VALUE;_t.ALL=et.ALL;_t.MAP=et.MAP;function _t(i,e,t=et.VALUE){if(e==null)return[];e=e.replace(/(\/$)/g,""),e===""&&(e="#");const r=bf(e);if(r==null)throw new Error(`empty ast for '${e}'`);if(r.rest!=="")throw new Error(`Failed parsing queryString from: '${r.rest}'`);const n=Rf(i,r);return typeof t=="function"?n.map(l=>t(...l)):mr[t]?mr[t](n):n}var Rt;(function(i){i.REPLACE_ITEMS="replace",i.INSERT_ITEMS="insert"})(Rt||(Rt={}));Rt.REPLACE_ITEMS;Rt.INSERT_ITEMS;const He={$ref:{type:!1},allOf:{type:!1,definitions:["allOf/*"]},anyOf:{type:!1,definitions:["anyOf/*"]},array:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","items","items/*","additionalItems"],validationKeywords:["minItems","maxItems","uniqueItems"],keywords:["items","additionalItems","minItems","maxItems","uniqueItems"]},boolean:{type:!0},enum:{type:!1},integer:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},not:{type:!1,definitions:["not"]},number:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minimum","maximum","multipleOf"]},null:{type:!0},object:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not","properties/*","additionalProperties","patternProperties/*","dependencies/*"],validationKeywords:["minProperties","maxProperties","required"],keywords:["properties","additionalProperties","patternProperties","dependencies","minProperties","maxProperties","required"]},oneOf:{type:!1,definitions:["oneOf/*"]},string:{type:!0,definitions:["allOf/*","anyOf/*","oneOf/*","not"],validationKeywords:["minLength","maxLength","pattern"]}},jf=i=>Object.prototype.toString.call(i)==="[object Object]",Nf=Object.keys(He).filter(i=>He[i].type===!1),pr=Object.prototype.hasOwnProperty;function gr(i){if(jf(i)===!1)return;if(i.enum)return"enum";if(He[i.type]||Array.isArray(i.type))return i.type;const e=Nf.filter(t=>i[t]);if(e.length===1)return e[0];if(e.length===0){for(let t=0,r=He.object.keywords.length;t<r;t+=1){const n=He.object.keywords[t];if(pr.call(i,n))return"object"}for(let t=0,r=He.array.keywords.length;t<r;t+=1){const n=He.array.keywords[t];if(pr.call(i,n))return"array"}return}throw new Error(`Mutiple typeIds [${e.join(", ")}] matched in ${JSON.stringify(i)}`)}const Lf=i=>Object.prototype.toString.call(i)==="[object Object]";function Cf(i){const e=[],t=gr(i);if(t==null)return e;let r;if(Array.isArray(t)){r={};for(let n=0,l=t.length;n<l;n+=1)Object.assign(r,He[t[n]])}else r=He[t];return r.definitions==null||r.definitions.forEach(n=>{_t(i,n,(l,o,s,f)=>{Lf(l)&&gr(l)&&e.push({pointer:mt.join(mt.split(f),!1),def:l})})}),e}const zf=i=>Object.prototype.toString.call(i)==="[object Object]";function Df(i,e){if(this.callback(i,e)===!0)return;Cf(i).forEach(r=>this.nextTypeDefs(r.def,mt.join(e,r.pointer,!1)))}function yt(i,e,t,r="definitions"){const n=e[r];Object.keys(n).forEach(l=>{if(n[l]===!1||zf(n[l])){i.nextTypeDefs(n[l],mt.join(t,r,l,!1));return}})}function ai(i,e,t="#"){const r={callback:e,nextTypeDefs:Df};r.nextTypeDefs(i,t),i.definitions!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&yt(r,n,l)},yt(r,i,t)),i.$defs!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&yt(r,n,l)},yt(r,i,t,"$defs"))}const Vf=/(#|\/)+$/,vt=/#$/,Mf=/^[^:]+:\/\/[^/]+\//,Uf=/\/[^/]*$/,qf=/#.*$/;function _r(i,e){return i==null&&e==null?"#":e==null?i.replace(vt,""):i==null?e.replace(vt,""):e[0]==="#"?`${i.replace(qf,"")}${e.replace(Vf,"")}`:Mf.test(e)?e.replace(vt,""):`${i.replace(Uf,"")}/${e.replace(vt,"")}`}const at=/(#|\/)+$/g,Bf=["",null,"#"];function Ff(i){if(Bf.includes(i))return[];if(i=i.replace(at,""),i.indexOf("#")===-1)return[i.replace(at,"")];if(i.indexOf("#")===0)return[i.replace(at,"")];const e=i.split("#");return e[0]=e[0].replace(at,""),e[1]=`#${e[1].replace(at,"")}`,e}const xf=/(#|\/)+$/g,Zf=i=>pe(i)==="object";function $e(i,e,t){if(Zf(t)&&(t=t.__ref||t.$ref),t==null)return e;let r;const n=t.replace(xf,"");if(i.remotes[n])return r=i.remotes[n],r&&r.$ref?$e(i,e,r.$ref):r;if(i.ids[t])return r=rt.get(e,i.ids[t]),r&&r.$ref?$e(i,e,r.$ref):r;const l=Ff(t);if(l.length===0)return e;if(l.length===1){if(t=l[0],i.remotes[t])return r=i.remotes[t],$e(i,e,r.$ref);if(i.ids[t])return r=rt.get(e,i.ids[t]),r&&r.$ref?$e(i,e,r.$ref):r}if(l.length===2){const o=l[0];if(t=l[1],i.remotes[o])return i.remotes[o].getRef?i.remotes[o].getRef(t):$e(i,i.remotes[o],t);if(i.ids[o])return $e(i,rt.get(e,i.ids[o]),t)}return r=rt.get(e,i.ids[t]||t),r&&r.$ref?$e(i,e,r.$ref):r}const br="__compiled",Er="__ref",Hf="getRef",Jf="getRoot",Wf=/(#|\/)+$/g;function Kf(i,e,t=e,r=!1){if(e===!0||e===!1||e===void 0||e[br]!==void 0)return e;const n={ids:{},remotes:i.remotes},l=JSON.stringify(e),o=JSON.parse(l);if(Object.defineProperty(o,br,{enumerable:!1,value:!0}),Object.defineProperty(o,Hf,{enumerable:!1,value:$e.bind(null,n,o)}),r===!1&&l.includes("$ref")===!1)return o;o!==t&&Object.defineProperty(o,"$defs",{enumerable:!0,value:Object.assign({},t.definitions,t.$defs,o.definitions,o.$defs)});const s={},f=()=>o;return ai(o,(a,u)=>{var c;if(a.$id){if(a.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(u)){const A=u.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),v=rt.get(o,A);a.$id=(c=v.$id)!==null&&c!==void 0?c:a.$id}n.ids[a.$id.replace(Wf,"")]=u}u=`#${u}`.replace(/##+/,"#");const d=u.replace(/\/[^/]+$/,""),m=u.replace(/\/[^/]+\/[^/]+$/,""),k=s[d]||s[m],_=_r(k,a.$id);s[u]=_,n.ids[_]==null&&(n.ids[_]=u),a.$ref&&!a[Er]&&(Object.defineProperty(a,Er,{enumerable:!1,value:_r(_,a.$ref)}),Object.defineProperty(a,Jf,{enumerable:!1,value:f}))}),o}function $f(i,e,t,r=i.rootSchema,n="#"){r=i.resolveRef(r),t(r,e,n);const l=pe(e);l==="object"?Object.keys(e).forEach(o=>{const s=i.step(o,r,e,n),f=e[o];i.each(f,t,s,`${n}/${o}`)}):l==="array"&&e.forEach((o,s)=>{const f=i.step(s,r,e,n);i.each(o,t,f,`${n}/${s}`)})}const ye={additionalItemsError:Q("AdditionalItemsError"),additionalPropertiesError:Q("AdditionalPropertiesError"),anyOfError:Q("AnyOfError"),allOfError:Q("AllOfError"),constError:Q("ConstError"),containsError:Q("ContainsError"),containsArrayError:Q("ContainsArrayError"),containsAnyError:Q("ContainsAnyError"),enumError:Q("EnumError"),formatURLError:Q("FormatURLError"),formatURIError:Q("FormatURIError"),formatURIReferenceError:Q("FormatURIReferenceError"),formatURITemplateError:Q("FormatURITemplateError"),formatDateError:Q("FormatDateaError"),formatDateTimeError:Q("FormatDateTimeError"),formatEmailError:Q("FormatEmailError"),formatHostnameError:Q("FormatHostnameError"),formatIPV4Error:Q("FormatIPV4Error"),formatIPV4LeadingZeroError:Q("FormatIPV4LeadingZeroError"),formatIPV6Error:Q("FormatIPV6Error"),formatIPV6LeadingZeroError:Q("FormatIPV6LeadingZeroError"),formatJSONPointerError:Q("FormatJSONPointerError"),formatRegExError:Q("FormatRegExError"),formatTimeError:Q("FormatTimeError"),invalidSchemaError:Q("InvalidSchemaError"),invalidDataError:Q("InvalidDataError"),invalidTypeError:Q("InvalidTypeError"),invalidPropertyNameError:Q("InvalidPropertyNameError"),maximumError:Q("MaximumError"),maxItemsError:Q("MaxItemsError"),maxLengthError:Q("MaxLengthError"),maxPropertiesError:Q("MaxPropertiesError"),minimumError:Q("MinimumError"),minItemsError:Q("MinItemsError"),minItemsOneError:Q("MinItemsOneError"),minLengthError:Q("MinLengthError"),minLengthOneError:Q("MinLengthOneError"),minPropertiesError:Q("MinPropertiesError"),missingDependencyError:Q("MissingDependencyError"),missingOneOfPropertyError:Q("MissingOneOfPropertyError"),multipleOfError:Q("MultipleOfError"),multipleOneOfError:Q("MultipleOneOfError"),noAdditionalPropertiesError:Q("NoAdditionalPropertiesError"),notError:Q("NotError"),oneOfError:Q("OneOfError"),oneOfPropertyError:Q("OneOfPropertyError"),patternError:Q("PatternError"),patternPropertiesError:Q("PatternPropertiesError"),requiredPropertyError:Q("RequiredPropertyError"),typeError:Q("TypeError"),undefinedValueError:Q("UndefinedValueError"),uniqueItemsError:Q("UniqueItemsError"),unknownPropertyError:Q("UnknownPropertyError"),valueNotEmptyError:Q("ValueNotEmptyError")};var ui={exports:{}};(function(i){(function(e){e.exports.is_uri=r,e.exports.is_http_uri=n,e.exports.is_https_uri=l,e.exports.is_web_uri=o,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=l,e.exports.isWebUri=o;var t=function(s){var f=s.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return f};function r(s){if(s&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(s)&&!/%[^0-9a-f]/i.test(s)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(s)){var f=[],a="",u="",c="",d="",m="",k="";if(f=t(s),a=f[1],u=f[2],c=f[3],d=f[4],m=f[5],!!(a&&a.length&&c.length>=0)){if(u&&u.length){if(!(c.length===0||/^\//.test(c)))return}else if(/^\/\//.test(c))return;if(/^[a-z][a-z0-9\+\-\.]*$/.test(a.toLowerCase()))return k+=a+":",u&&u.length&&(k+="//"+u),k+=c,d&&d.length&&(k+="?"+d),m&&m.length&&(k+="#"+m),k}}}function n(s,f){if(r(s)){var a=[],u="",c="",d="",m="",k="",_="",A="";if(a=t(s),u=a[1],c=a[2],d=a[3],k=a[4],_=a[5],!!u){if(f){if(u.toLowerCase()!="https")return}else if(u.toLowerCase()!="http")return;if(c)return/:(\d+)$/.test(c)&&(m=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),A+=u+":",A+="//"+c,m&&(A+=m),A+=d,k&&k.length&&(A+="?"+k),_&&_.length&&(A+="#"+_),A}}}function l(s){return n(s,!0)}function o(s){return n(s)||l(s)}})(i)})(ui);var Qf=ui.exports;const kr=Nt(Qf),Yf=new RegExp("^([0-9]+)-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])[Tt]([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(([Zz])|([\\+|\\-]([01][0-9]|2[0-3]):[0-5][0-9]))$"),Gf=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Xf=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,ea=/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,ta=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,na=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,ra=[0,31,28,31,30,31,30,31,31,30,31,30,31],ia=/^(?:\/(?:[^~/]|~0|~1)*)*$/,la=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,oa=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[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,1}[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|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\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})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\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,sa=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,fa={date:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(ta);if(!n)return ye.formatDateTimeError({value:t,pointer:r});const l=+n[1],o=+n[2],s=+n[3],f=l%4===0&&(l%100!==0||l%400===0);if(!(o>=1&&o<=12&&s>=1&&s<=(o==2&&f?29:ra[o])))return ye.formatDateError({value:t,pointer:r})},"date-time":(i,e,t,r)=>{if(typeof t=="string")return t===""||Yf.test(t)?new Date(t).toString()==="Invalid Date"?ye.formatDateTimeError({value:t,pointer:r}):void 0:ye.formatDateTimeError({value:t,pointer:r})},email:(i,e,t,r)=>{if(typeof t!="string")return;if(t[0]==='"')return ye.formatEmailError({value:t,pointer:r});const[n,l,...o]=t.split("@");if(!n||!l||o.length!==0||n.length>64||l.length>253)return ye.formatEmailError({value:t,pointer:r});if(n[0]==="."||n.endsWith(".")||n.includes(".."))return ye.formatEmailError({value:t,pointer:r});if(!/^[a-z0-9.-]+$/i.test(l)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(n))return ye.formatEmailError({value:t,pointer:r});if(!l.split(".").every(s=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(s)))return ye.formatEmailError({value:t,pointer:r})},hostname:(i,e,t,r)=>{if(typeof t=="string"&&!(t===""||ea.test(t)))return ye.formatHostnameError({value:t,pointer:r})},ipv4:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return ye.formatIPV4LeadingZeroError({value:t,pointer:r});if(!(t.length<=15&&Gf.test(t)))return ye.formatIPV4Error({value:t,pointer:r})}},ipv6:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return ye.formatIPV6LeadingZeroError({value:t,pointer:r});if(!(t.length<=45&&Xf.test(t)))return ye.formatIPV6Error({value:t,pointer:r})}},"json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!ia.test(t))return ye.formatJSONPointerError({value:t,pointer:r})},"relative-json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!la.test(t))return ye.formatJSONPointerError({value:t,pointer:r})},regex:(i,e,t,r)=>{if(typeof t=="string"&&/\\Z$/.test(t)===!1){try{new RegExp(t);return}catch{}return ye.formatRegExError({value:t,pointer:r})}if(!(typeof t=="object"||typeof t=="number"||Array.isArray(t)))return ye.formatRegExError({value:t,pointer:r})},time:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(na);if(!n)return ye.formatDateTimeError({value:t,pointer:r});const l=+n[1],o=+n[2],s=+n[3],f=!!n[5];if(!((l<=23&&o<=59&&s<=59||l==23&&o==59&&s==60)&&f))return ye.formatTimeError({value:t,pointer:r})},uri:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!kr.isUri(t))return ye.formatURIError({value:t,pointer:r})},"uri-reference":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!oa.test(t))return ye.formatURIReferenceError({value:t,pointer:r})},"uri-template":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!sa.test(t))return ye.formatURITemplateError({value:t,pointer:r})},url:(i,e,t,r)=>{if(!(t===""||kr.isWebUri(t)))return ye.formatURLError({value:t,pointer:r})}};function aa(i){switch(pe(i)){case"string":case"array":return i.length===0;case"null":case"undefined":return!0;case"object":return Object.keys(i).length===0;default:return!1}}const ua={addOptionalProps:!0,removeInvalidData:!1};let Je;function Bt(i,e){const{$ref:t}=i;return t==null?!0:(Je[e]==null||Je[e][t]==null?0:Je[e][t])<gt.GET_TEMPLATE_RECURSION_LIMIT}function Ft(i,e,t){if(t==null)throw new Error(`missing pointer ${t}`);const{$ref:r}=e;return r==null?e:(Je[t]=Je[t]||{},Je[t][r]=Je[t][r]||0,Je[t][r]+=1,i.resolveRef(e))}function ca(i,e){if(i==="string")return JSON.stringify(e);if(typeof e!="string")return null;try{if(e=JSON.parse(e),typeof e===i)return e}catch{}return null}function ci(i,e,t,r){if(pe(e)!=="object")return Object.assign({pointer:r},e);if(Bt(e,r)===!1&&t==null)return!1;let n=nn(Ft(i,e,r));if(Array.isArray(e.anyOf)&&e.anyOf.length>0){if(Bt(e.anyOf[0],`${r}/anyOf/0`)){const l=Ft(i,e.anyOf[0],`${r}/anyOf/0`);n=ht(n,l),n.pointer=e.anyOf[0].$ref||n.pointer}delete n.anyOf}if(Array.isArray(e.allOf)){for(let l=0,o=e.allOf.length;l<o;l+=1)Bt(e.allOf[l],`${r}/allOf/${l}`)&&(n=ht(n,Ft(i,e.allOf[l],`${r}/allOf/${l}`)),n.pointer=e.allOf[l].$ref||n.pointer);delete n.allOf}return n.pointer=n.pointer||e.$ref||r,n}const yr=i=>i&&typeof i=="object";function Ze(i,e,t,r,n){if(t==null)throw new Error(`getTemplate: missing schema for data: ${JSON.stringify(e)}`);if(r==null)throw new Error("Missing pointer");let l=ci(i,t,e,r);if(!yr(l))return;if(r=l.pointer,l!=null&&l.const)return l.const;if(Array.isArray(l.oneOf))if(aa(e)){const a=l.oneOf[0].type||l.type||l.const&&typeof l.const||pe(e);l={...l.oneOf[0],type:a}}else{const a=rn(i,e,l);if(Re(a)){if(e!=null&&n.removeInvalidData!==!0)return e;l=l.oneOf[0],e=void 0}else l=a}if(!yr(l)||l.type==null)return;const o=Array.isArray(l.type)?da(l.type,e,l.default):l.type,s=pe(e);return e!=null&&s!==o&&!(s==="number"&&o==="integer")&&(e=ca(o,e)),vr[o]==null?n.removeInvalidData?void 0:e:vr[o](i,l,e,r,n)}function da(i,e,t){if(e==null){if(t!=null){const n=pe(t);if(i.includes(n))return n}return i[0]}const r=pe(e);return i.includes(r)?r:i[0]}const vr={null:(i,e,t)=>ut(e,t,null),string:(i,e,t)=>ut(e,t,""),number:(i,e,t)=>ut(e,t,0),integer:(i,e,t)=>ut(e,t,0),boolean:(i,e,t)=>ut(e,t,!1),object:(i,e,t,r,n)=>{var l;const o=e.default===void 0?{}:e.default,s={},f=(l=e.required)!==null&&l!==void 0?l:[];if(e.properties&&Object.keys(e.properties).forEach(a=>{const u=t==null||t[a]==null?o[a]:t[a],c=f.includes(a);(u!=null||c||n.addOptionalProps)&&(s[a]=Ze(i,u,e.properties[a],`${r}/properties/${a}`,n))}),e.dependencies&&Object.keys(e.dependencies).forEach(a=>{if(s[a]===void 0)return;const u=e.dependencies[a];if(Array.isArray(u)){u.forEach(d=>{s[d]=Ze(i,s[d],e.properties[d],`${r}/properties/${d}`,n)});return}if(pe(u)!=="object")return;const c=Ze(i,t,{...u,type:"object"},`${r}/dependencies/${a}`,n);c&&!Re(c)&&Object.assign(s,c)}),t&&Object.keys(t).forEach(a=>s[a]==null&&(s[a]=t[a])),e.if&&(e.then||e.else)){const a=i.isValid(s,e.if);if(a&&e.then){const u=i.getTemplate(s,{type:"object",...e.then},n);Object.assign(s,u)}else if(!a&&e.else){const u=i.getTemplate(s,{type:"object",...e.else},n);Object.assign(s,u)}}return s},array:(i,e,t,r,n)=>{var l,o,s;const f=e.default===void 0?[]:e.default;e.minItems=e.minItems||0;const a=t||[];if(e.items==null)return a;if(Array.isArray(e.items)){for(let c=0,d=Math.max((l=e.minItems)!==null&&l!==void 0?l:0,(s=(o=e.items)===null||o===void 0?void 0:o.length)!==null&&s!==void 0?s:0);c<d;c+=1)a[c]=Ze(i,a[c]==null?f[c]:a[c],e.items[c],`${r}/items/${c}`,n);return a}if(pe(e.items)!=="object")return a;const u=ci(i,e.items,t,r);if(u===!1)return a;if(r=u.pointer||r,u.oneOf&&a.length===0){const c=u.oneOf[0];for(let d=0;d<e.minItems;d+=1)a[d]=Ze(i,a[d]==null?f[d]:a[d],c,`${r}/oneOf/0`,n);return a}if(u.oneOf&&a.length>0){const c=Math.max(e.minItems,a.length);for(let d=0;d<c;d+=1){let m=a[d]==null?f[d]:a[d],k=rn(i,m,u);k==null||Re(k)?m!=null&&n.removeInvalidData!==!0?a[d]=m:(m=void 0,k=u.oneOf[0],a[d]=Ze(i,m,k,`${r}/oneOf/${d}`,n)):a[d]=Ze(i,m,k,`${r}/oneOf/${d}`,n)}return a}if(u.type){for(let c=0,d=Math.max(e.minItems,a.length);c<d;c+=1)a[c]=Ze(i,a[c]==null?f[c]:a[c],u,`${r}/items`,n);return a}return a}};function ut(i,e,t){return e??(i.const?i.const:i.default===void 0&&Array.isArray(i.enum)?i.enum[0]:i.default===void 0?t:i.default)}const ha=(i,e,t=i.rootSchema,r=ua)=>(Je={mi:{}},Ze(i,e,t,"#",r));function ma(i,e,t=i.rootSchema,r="#"){return i.validate(e,t,r).length===0}function Yt(i,e){const t=typeof i;if(t!==typeof e)return!1;if(Array.isArray(i)){if(!Array.isArray(e))return!1;const r=i.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(!Yt(i[n],e[n]))return!1;return!0}if(t==="object"){if(!i||!e)return i===e;const r=Object.keys(i),n=Object.keys(e);if(r.length!==n.length)return!1;for(const o of r)if(!Yt(i[o],e[o]))return!1;return!0}return i===e}function wr(i){const e=[];let t=0;const r=i.length;for(;t<r;){const n=i.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){const l=i.charCodeAt(t++);(l&64512)==56320?e.push(((n&1023)<<10)+(l&1023)+65536):(e.push(n),t--)}else e.push(n)}return e}const xt=gt.floatingPointPrecision,pa=Object.prototype.hasOwnProperty,Or=(i,e)=>!(i[e]===void 0||!pa.call(i,e)),ga={additionalProperties:(i,e,t,r)=>{if(e.additionalProperties===!0||e.additionalProperties==null||pe(e.patternProperties)==="object"&&e.additionalProperties===!1)return;const n=[];let l=Object.keys(t).filter(s=>gt.propertyBlacklist.includes(s)===!1);const o=Object.keys(e.properties||{});if(pe(e.patternProperties)==="object"){const s=Object.keys(e.patternProperties).map(f=>new RegExp(f));l=l.filter(f=>{for(let a=0;a<s.length;a+=1)if(s[a].test(f))return!1;return!0})}for(let s=0,f=l.length;s<f;s+=1){const a=l[s];if(o.indexOf(a)===-1){const u=typeof e.additionalProperties=="object";if(u&&Array.isArray(e.additionalProperties.oneOf)){const c=i.resolveOneOf(t[a],e.additionalProperties,`${r}/${a}`);Re(c)?n.push(i.errors.additionalPropertiesError({schema:e.additionalProperties,property:l[s],properties:o,pointer:r,errors:c.data.errors})):n.push(...i.validate(t[a],c,r))}else u?n.push(...i.validate(t[a],e.additionalProperties,`${r}/${a}`)):n.push(i.errors.noAdditionalPropertiesError({property:l[s],properties:o,pointer:r}))}}return n},allOf:(i,e,t,r)=>{if(Array.isArray(e.allOf)===!1)return;const n=[];return e.allOf.forEach(l=>{n.push(...i.validate(t,l,r))}),n},anyOf:(i,e,t,r)=>{if(Array.isArray(e.anyOf)!==!1){for(let n=0;n<e.anyOf.length;n+=1)if(i.isValid(t,e.anyOf[n]))return;return i.errors.anyOfError({anyOf:e.anyOf,value:t,pointer:r})}},dependencies:(i,e,t,r)=>{if(pe(e.dependencies)!=="object")return;const n=[];return Object.keys(t).forEach(l=>{if(e.dependencies[l]===void 0||e.dependencies[l]===!0)return;if(e.dependencies[l]===!1){n.push(i.errors.missingDependencyError({pointer:r}));return}let o;const s=pe(e.dependencies[l]);if(s==="array")o=e.dependencies[l].filter(f=>t[f]===void 0).map(f=>i.errors.missingDependencyError({missingProperty:f,pointer:r}));else if(s==="object")o=i.validate(t,e.dependencies[l],r);else throw new Error(`Invalid dependency definition for ${r}/${l}. Must be list or schema`);n.push(...o)}),n.length>0?n:void 0},enum:(i,e,t,r)=>{const n=pe(t);if(n==="object"||n==="array"){const l=JSON.stringify(t);for(let o=0;o<e.enum.length;o+=1)if(JSON.stringify(e.enum[o])===l)return}else if(e.enum.includes(t))return;return i.errors.enumError({values:e.enum,value:t,pointer:r})},format:(i,e,t,r)=>{if(i.validateFormat[e.format])return i.validateFormat[e.format](i,e,t,r)},items:(i,e,t,r)=>{if(e.items===!1)return Array.isArray(t)&&t.length===0?void 0:i.errors.invalidDataError({pointer:r,value:t});const n=[];for(let l=0;l<t.length;l+=1){const o=t[l],s=i.step(l,e,t,r);if(Re(s))return[s];const f=i.validate(o,s,`${r}/${l}`);n.push(...f)}return n},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r});if(e.maximum&&e.exclusiveMaximum===!0&&e.maximum===t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})}},maxItems:(i,e,t,r)=>{if(!isNaN(e.maxItems)&&e.maxItems<t.length)return i.errors.maxItemsError({maximum:e.maxItems,length:t.length,pointer:r})},maxLength:(i,e,t,r)=>{if(isNaN(e.maxLength))return;const n=wr(t).length;if(e.maxLength<n)return i.errors.maxLengthError({maxLength:e.maxLength,length:n,pointer:r})},maxProperties:(i,e,t,r)=>{const n=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties<n)return i.errors.maxPropertiesError({maxProperties:e.maxProperties,length:n,pointer:r})},minLength:(i,e,t,r)=>{if(isNaN(e.minLength))return;const n=wr(t).length;if(e.minLength>n)return e.minLength===1?i.errors.minLengthOneError({minLength:e.minLength,length:n,pointer:r}):i.errors.minLengthError({minLength:e.minLength,length:n,pointer:r})},minimum:(i,e,t,r)=>{if(!isNaN(e.minimum)){if(e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r});if(e.exclusiveMinimum===!0&&e.minimum===t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})}},minItems:(i,e,t,r)=>{if(!isNaN(e.minItems)&&e.minItems>t.length)return e.minItems===1?i.errors.minItemsOneError({minItems:e.minItems,length:t.length,pointer:r}):i.errors.minItemsError({minItems:e.minItems,length:t.length,pointer:r})},minProperties:(i,e,t,r)=>{if(isNaN(e.minProperties))return;const n=Object.keys(t).length;if(e.minProperties>n)return i.errors.minPropertiesError({minProperties:e.minProperties,length:n,pointer:r})},multipleOf:(i,e,t,r)=>{if(!isNaN(e.multipleOf)&&t*xt%(e.multipleOf*xt)/xt!==0)return i.errors.multipleOfError({multipleOf:e.multipleOf,value:t,pointer:r})},not:(i,e,t,r)=>{const n=[];return i.validate(t,e.not,r).length===0&&n.push(i.errors.notError({value:t,not:e.not,pointer:r})),n},oneOf:(i,e,t,r)=>{if(Array.isArray(e.oneOf)!==!1&&(e=i.resolveOneOf(t,e,r),Re(e)))return e},pattern:(i,e,t,r)=>{if(new RegExp(e.pattern,"u").test(t)===!1)return i.errors.patternError({pattern:e.pattern,description:e.patternExample||e.pattern,received:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(pe(l)!=="object")return;const o=[],s=Object.keys(t),f=Object.keys(l).map(a=>({regex:new RegExp(a),patternSchema:l[a]}));return s.forEach(a=>{let u=!1;for(let c=0,d=f.length;c<d;c+=1)if(f[c].regex.test(a)){u=!0;const m=i.validate(t[a],f[c].patternSchema,`${r}/${a}`);m&&m.length>0&&o.push(...m)}n[a]||u===!1&&e.additionalProperties===!1&&o.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}))}),o},properties:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let o=0;o<l.length;o+=1){const s=l[o];if(Or(t,s)){const f=i.step(s,e,t,r),a=i.validate(t[s],f,`${r}/${s}`);n.push(...a)}}return n},propertiesRequired:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let o=0;o<l.length;o+=1){const s=l[o];if(t[s]===void 0)n.push(i.errors.requiredPropertyError({key:s,pointer:r}));else{const f=i.step(s,e,t,r),a=i.validate(t[s],f,`${r}/${s}`);n.push(...a)}}return n},required:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(!Or(t,n))return i.errors.requiredPropertyError({key:n,pointer:r})})},requiredNotEmpty:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(t[n]==null||t[n]==="")return i.errors.valueNotEmptyError({property:n,pointer:`${r}/${n}`})})},uniqueItems:(i,e,t,r)=>{if((Array.isArray(t)&&e.uniqueItems)===!1)return;const n=[];return t.forEach((l,o)=>{for(let s=o+1;s<t.length;s+=1)Yt(l,t[s])&&n.push(i.errors.uniqueItemsError({pointer:r,itemPointer:`${r}/${o}`,duplicatePointer:`${r}/${s}`,value:JSON.stringify(l)}))}),n}},_a={...ga,contains:(i,e,t,r)=>{if(e.contains===!1)return i.errors.containsArrayError({pointer:r,value:t});if(e.contains===!0)return Array.isArray(t)&&t.length===0?i.errors.containsAnyError({pointer:r}):void 0;if(pe(e.contains)==="object"){for(let n=0;n<t.length;n+=1)if(i.isValid(t[n],e.contains))return;return i.errors.containsError({pointer:r,schema:JSON.stringify(e.contains)})}},exclusiveMaximum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMaximum)&&e.exclusiveMaximum<=t)return i.errors.maximumError({maximum:e.exclusiveMaximum,length:t,pointer:r})},exclusiveMinimum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMinimum)&&e.exclusiveMinimum>=t)return i.errors.minimumError({minimum:e.exclusiveMinimum,length:t,pointer:r})},if:(i,e,t,r)=>{if(e.if==null)return;const n=i.validate(t,e.if,r);if(n.length===0&&e.then)return i.validate(t,e.then,r);if(n.length!==0&&e.else)return i.validate(t,e.else,r)},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)&&e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})},minimum:(i,e,t,r)=>{if(!isNaN(e.minimum)&&e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(pe(l)!=="object")return;const o=[],s=Object.keys(t),f=Object.keys(l).map(a=>({regex:new RegExp(a),patternSchema:l[a]}));return s.forEach(a=>{let u=!1;for(let c=0,d=f.length;c<d;c+=1)if(f[c].regex.test(a)){if(u=!0,f[c].patternSchema===!1){o.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}));return}const m=i.validate(t[a],f[c].patternSchema,`${r}/${a}`);m&&m.length>0&&o.push(...m)}n[a]||u===!1&&e.additionalProperties===!1&&o.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}))}),o},propertyNames:(i,e,t,r)=>{if(e.propertyNames===!1)return Object.keys(t).length===0?void 0:i.errors.invalidPropertyNameError({property:Object.keys(t),pointer:r,value:t});if(e.propertyNames===!0||pe(e.propertyNames)!=="object")return;const n=[],l=Object.keys(t),o={...e.propertyNames,type:"string"};return l.forEach(s=>{const f=i.validate(s,o,`${r}/${s}`);f.length>0&&n.push(i.errors.invalidPropertyNameError({property:s,pointer:r,validationError:f[0],value:t[s]}))}),n}};function ba(i,e,t=i.rootSchema,r="#"){let n=!1,l=nn(t);for(let o=0;o<t.anyOf.length;o+=1){const s=i.resolveRef(t.anyOf[o]);i.isValid(e,t.anyOf[o],r)&&(n=!0,l=ht(l,s))}return n===!1?ye.anyOfError({value:e,pointer:r,anyOf:JSON.stringify(t.anyOf)}):(delete l.anyOf,l)}function Qe(i){const e={type:pe(i)};return e.type==="object"&&(e.properties={},Object.keys(i).forEach(t=>e.properties[t]=Qe(i[t]))),e.type==="array"&&i.length===1?e.items=Qe(i[0]):e.type==="array"&&(e.items=i.map(Qe)),e}function Ea(i,e,t=i.rootSchema){const r=i.step(e,t,{},"#");return Re(r)?r.code==="one-of-error"?r.data.oneOf.map(n=>i.resolveRef(n)):r:[r]}const Sr={array:(i,e,t,r,n)=>{const l=pe(t.items);if(l==="object")return Array.isArray(t.items.oneOf)?i.resolveOneOf(r[e],t.items,n):Array.isArray(t.items.anyOf)?i.resolveAnyOf(r[e],t.items,n):Array.isArray(t.items.allOf)?i.resolveAllOf(r[e],t.items,n):i.resolveRef(t.items);if(l==="array"){if(t.items[e]===!0)return Qe(r[e]);if(t.items[e]===!1)return ye.invalidDataError({key:e,value:r[e],pointer:n});if(t.items[e])return i.resolveRef(t.items[e]);if(t.additionalItems===!1)return ye.additionalItemsError({key:e,value:r[e],pointer:n});if(t.additionalItems===!0||t.additionalItems===void 0)return Qe(r[e]);if(pe(t.additionalItems)==="object")return t.additionalItems;throw new Error(`Invalid schema ${JSON.stringify(t,null,4)} for ${JSON.stringify(r,null,4)}`)}return t.additionalItems!==!1&&r[e]?Qe(r[e]):new Error(`Invalid array schema for ${e} at ${n}`)},object:(i,e,t,r,n)=>{if(Array.isArray(t.oneOf)){const s=i.resolveOneOf(r,t,n);if(t=ht(t,s),Re(t))return t}if(Array.isArray(t.anyOf)&&(t=i.resolveAnyOf(r,t,n),Re(t))||Array.isArray(t.allOf)&&(t=i.resolveAllOf(r,t,n),Re(t)))return t;let l;if(t.properties&&t.properties[e]!==void 0){if(l=i.resolveRef(t.properties[e]),Re(l))return l;if(l&&Array.isArray(l.oneOf)){let s=i.resolveOneOf(r[e],l,`${n}/${e}`);const f=l.oneOf.findIndex(a=>a===s);return s.variableSchema=!0,s.oneOfIndex=f,s.oneOfSchema=l,s}if(l)return l}const{dependencies:o}=t;if(pe(o)==="object"){const s=Object.keys(o).filter(f=>pe(o[f])==="object");for(let f=0,a=s.length;f<a;f+=1){const u=s[f],c=Ot(i,e,o[u],r,`${n}/${u}`);if(!Re(c))return c}}if(t.if&&(t.then||t.else)){const s=i.isValid(r,t.if);if(s&&t.then){const f=Ot(i,e,t.then,r,n);if(typeof f.type=="string"&&f.type!=="error")return f}if(!s&&t.else){const f=Ot(i,e,t.else,r,n);if(typeof f.type=="string"&&f.type!=="error")return f}}if(pe(t.patternProperties)==="object"){let s;const f=Object.keys(t.patternProperties);for(let a=0,u=f.length;a<u;a+=1)if(s=new RegExp(f[a]),s.test(e))return t.patternProperties[f[a]]}return pe(t.additionalProperties)==="object"?t.additionalProperties:t.additionalProperties===!0?Qe(r[e]):ye.unknownPropertyError({property:e,value:r,pointer:`${n}`})}};function Ot(i,e,t,r,n="#"){if(Array.isArray(t.type)){const s=pe(r);return t.type.includes(s)?Sr[s](i,`${e}`,t,r,n):i.errors.typeError({value:r,pointer:n,expected:t.type,received:s})}const l=t.type||pe(r),o=Sr[l];return o?o(i,`${e}`,t,r,n):new Error(`Unsupported schema type ${t.type} for key ${e}`)}const ka={array:(i,e,t,r)=>i.typeKeywords.array.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),object:(i,e,t,r)=>i.typeKeywords.object.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),string:(i,e,t,r)=>i.typeKeywords.string.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),integer:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),number:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),boolean:(i,e,t,r)=>i.typeKeywords.boolean.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),null:(i,e,t,r)=>i.typeKeywords.null.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r))};var ya=function i(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,l;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!i(e[n],t[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,l[n]))return!1;for(n=r;n--!==0;){var o=l[n];if(!i(e[o],t[o]))return!1}return!0}return e!==e&&t!==t};const va=Nt(ya);function wa(i,e){const t=pe(i);return t==="number"&&(e==="integer"||Array.isArray(e)&&e.includes("integer"))?Number.isInteger(i)||isNaN(i)?"integer":"number":t}function Oa(i,e,t=i.rootSchema,r="#"){if(t=i.resolveRef(t),pe(t)==="boolean")return t?[]:[i.errors.invalidDataError({value:e,pointer:r})];if(Re(t))return[t];if(t.const!==void 0)return va(t.const,e)?[]:[i.errors.constError({value:e,expected:t.const,pointer:r})];const n=wa(e,t.type),l=t.type||n;return n!==l&&(!Array.isArray(l)||!l.includes(n))?[i.errors.typeError({received:n,expected:l,value:e,pointer:r})]:i.validateType[n]==null?[i.errors.invalidTypeError({receivedType:n,pointer:r})]:ct(i.validateType[n](i,t,e,r)).filter(It)}const di={typeKeywords:{array:["allOf","anyOf","contains","enum","if","items","maxItems","minItems","not","oneOf","uniqueItems"],boolean:["allOf","anyOf","enum","not","oneOf"],object:["additionalProperties","allOf","anyOf","dependencies","enum","format","if","maxProperties","minProperties","not","oneOf","patternProperties","properties","propertyNames","required"],string:["allOf","anyOf","enum","format","if","maxLength","minLength","not","oneOf","pattern"],number:["allOf","anyOf","enum","exclusiveMaximum","exclusiveMinimum","format","if","maximum","minimum","multipleOf","not","oneOf"],null:["allOf","anyOf","enum","format","not","oneOf"]},validateKeyword:_a,validateType:ka,validateFormat:fa,errors:ye,addRemoteSchema:cf,compileSchema:Kf,createSchemaOf:Qe,each:$f,eachSchema:ai,getChildSchemaSelection:Ea,getSchema:af,getTemplate:ha,isValid:ma,resolveAllOf:rf,resolveAnyOf:ba,resolveOneOf:Us,resolveRef:of,step:Ot,validate:Oa};class Sa extends uf{constructor(e,t={}){super(ht(di,t),e)}}({...di});function Pr(i,e,t){const r=i.slice();return r[10]=e[t],r[11]=e,r[12]=t,r}function Ir(i){let e,t,r=i[12]+1+"",n,l,o,s,f,a,u,c,d;function m(A){i[7](A,i[12])}let k={path:i[1]+"/"+i[12],schema:i[3],rootValue:i[2],validationErrors:i[4],customComponents:i[5],required:!0};i[0][i[12]]!==void 0&&(k.value=i[0][i[12]]),s=new on({props:k}),qe.push(()=>Fe(s,"value",m));function _(){return i[8](i[12])}return c=new Pi({props:{size:"small",kind:"ghost",icon:bl,expressive:!1,iconDescription:"Remove",tooltipPosition:"top",tooltipAlignment:"end"}}),c.$on("click",_),{c(){e=U("div"),t=U("div"),n=ve(r),l=fe(),o=U("div"),W(s.$$.fragment),a=fe(),u=U("div"),W(c.$$.fragment),this.h()},l(A){e=q(A,"DIV",{class:!0});var v=V(e);t=q(v,"DIV",{class:!0});var b=V(t);n=we(b,r),b.forEach(h),l=ae(v),o=q(v,"DIV",{class:!0});var S=V(o);ie(s.$$.fragment,S),S.forEach(h),a=ae(v),u=q(v,"DIV",{class:!0});var P=V(u);ie(c.$$.fragment,P),P.forEach(h),v.forEach(h),this.h()},h(){z(t,"class","mt-3 w-8 shrink-0 text-lg"),z(o,"class","flex w-full grow flex-col"),z(u,"class","mt-3"),z(e,"class","flex w-full flex-row")},m(A,v){O(A,e,v),B(e,t),B(t,n),B(e,l),B(e,o),K(s,o,null),B(e,a),B(e,u),K(c,u,null),d=!0},p(A,v){i=A;const b={};v&2&&(b.path=i[1]+"/"+i[12]),v&8&&(b.schema=i[3]),v&4&&(b.rootValue=i[2]),v&16&&(b.validationErrors=i[4]),v&32&&(b.customComponents=i[5]),!f&&v&1&&(f=!0,b.value=i[0][i[12]],Ke(()=>f=!1)),s.$set(b)},i(A){d||(p(s.$$.fragment,A),p(c.$$.fragment,A),d=!0)},o(A){g(s.$$.fragment,A),g(c.$$.fragment,A),d=!1},d(A){A&&h(e),$(s),$(c)}}}function Pa(i){let e,t,r,n,l,o,s,f,a=i[0]||[],u=[];for(let d=0;d<a.length;d+=1)u[d]=Ir(Pr(i,a,d));const c=d=>g(u[d],1,1,()=>{u[d]=null});return{c(){e=U("div");for(let d=0;d<u.length;d+=1)u[d].c();t=fe(),r=U("div"),n=U("button"),l=ve("+ add"),this.h()},l(d){e=q(d,"DIV",{class:!0});var m=V(e);for(let A=0;A<u.length;A+=1)u[A].l(m);t=ae(m),r=q(m,"DIV",{});var k=V(r);n=q(k,"BUTTON",{class:!0});var _=V(n);l=we(_,"+ add"),_.forEach(h),k.forEach(h),m.forEach(h),this.h()},h(){var d;z(n,"class","bg-slate-600 p-2 text-white hover:bg-slate-400"),y(n,"ml-8",((d=i[0])==null?void 0:d.length)>0),z(e,"class","bx--form-item flex flex-col")},m(d,m){O(d,e,m);for(let k=0;k<u.length;k+=1)u[k]&&u[k].m(e,null);B(e,t),B(e,r),B(r,n),B(n,l),o=!0,s||(f=se(n,"click",i[9]),s=!0)},p(d,[m]){var k;if(m&63){a=d[0]||[];let _;for(_=0;_<a.length;_+=1){const A=Pr(d,a,_);u[_]?(u[_].p(A,m),p(u[_],1)):(u[_]=Ir(A),u[_].c(),p(u[_],1),u[_].m(e,t))}for(X(),_=a.length;_<u.length;_+=1)c(_);ee()}(!o||m&1)&&y(n,"ml-8",((k=d[0])==null?void 0:k.length)>0)},i(d){if(!o){for(let m=0;m<a.length;m+=1)p(u[m]);o=!0}},o(d){u=u.filter(Boolean);for(let m=0;m<u.length;m+=1)g(u[m]);o=!1},d(d){d&&h(e),xe(u,d),s=!1,f()}}}function Ia(i,e,t){let r,{path:n}=e,{value:l=[]}=e,{rootValue:o}=e,{schema:s}=e,{validationErrors:f=[]}=e,{customComponents:a}=e;function u(m,k){i.$$.not_equal(l[k],m)&&(l[k]=m,t(0,l))}const c=m=>{l.splice(m,1),t(0,l)},d=()=>{t(0,l=[...l||[],r])};return i.$$set=m=>{"path"in m&&t(1,n=m.path),"value"in m&&t(0,l=m.value),"rootValue"in m&&t(2,o=m.rootValue),"schema"in m&&t(3,s=m.schema),"validationErrors"in m&&t(4,f=m.validationErrors),"customComponents"in m&&t(5,a=m.customComponents)},i.$$.update=()=>{i.$$.dirty&11&&t(6,r=s.getTemplate(void 0,s.getSchema(n+"/0",l)))},[l,n,o,s,f,a,r,u,c,d]}class Ta extends ce{constructor(e){super(),de(this,e,Ia,Pa,he,{path:1,value:0,rootValue:2,schema:3,validationErrors:4,customComponents:5})}}function Tr(i,e,t){const r=i.slice();return r[24]=e[t],r[25]=e,r[26]=t,r}function Ar(i,e,t){const r=i.slice();return r[20]=e[t],r}function Aa(i){const e=i.slice(),t=Object.keys(e[10].properties??{});return e[23]=t,e}function Rr(i){let e,t,r,n,l,o,s;const f=[ja,Ra],a=[];function u(_,A){return _[10].type==="object"?0:1}e=u(i),t=a[e]=f[e](i);const c=[qa,Ua,Ma,Va,Da,za,Ca,La,Na],d=[];function m(_,A){return _[8][_[2]]?0:_[10].type=="error"?1:_[10].enum?2:_[10].type=="string"?3:_[10].type=="number"?4:_[10].type=="boolean"?5:_[10].type=="array"?6:_[10].type=="object"?7:8}function k(_,A){return A===7?Aa(_):_}return n=m(i),l=d[n]=c[n](k(i,n)),{c(){t.c(),r=fe(),l.c(),o=F()},l(_){t.l(_),r=ae(_),l.l(_),o=F()},m(_,A){a[e].m(_,A),O(_,r,A),d[n].m(_,A),O(_,o,A),s=!0},p(_,A){let v=e;e=u(_),e===v?a[e].p(_,A):(X(),g(a[v],1,1,()=>{a[v]=null}),ee(),t=a[e],t?t.p(_,A):(t=a[e]=f[e](_),t.c()),p(t,1),t.m(r.parentNode,r));let b=n;n=m(_),n===b?d[n].p(k(_,n),A):(X(),g(d[b],1,1,()=>{d[b]=null}),ee(),l=d[n],l?l.p(k(_,n),A):(l=d[n]=c[n](k(_,n)),l.c()),p(l,1),l.m(o.parentNode,o))},i(_){s||(p(t),p(l),s=!0)},o(_){g(t),g(l),s=!1},d(_){a[e].d(_),_&&h(r),d[n].d(_),_&&h(o)}}}function Ra(i){let e,t,r,n,l=i[10].description&&i[6]&&jr(i);return{c(){e=U("div"),t=ve(i[12]),r=fe(),l&&l.c(),n=F(),this.h()},l(o){e=q(o,"DIV",{class:!0});var s=V(e);t=we(s,i[12]),s.forEach(h),r=ae(o),l&&l.l(o),n=F(),this.h()},h(){z(e,"class","label text-s mb-2 font-medium text-gray-700")},m(o,s){O(o,e,s),B(e,t),O(o,r,s),l&&l.m(o,s),O(o,n,s)},p(o,s){s&4096&&Pe(t,o[12]),o[10].description&&o[6]?l?l.p(o,s):(l=jr(o),l.c(),l.m(n.parentNode,n)):l&&(l.d(1),l=null)},i:ue,o:ue,d(o){o&&h(e),o&&h(r),l&&l.d(o),o&&h(n)}}}function ja(i){let e,t,r=i[10].description&&i[6]&&Nr(i);return{c(){r&&r.c(),e=F()},l(n){r&&r.l(n),e=F()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,l){n[10].description&&n[6]?r?(r.p(n,l),l&1088&&p(r,1)):(r=Nr(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&h(e)}}}function jr(i){let e,t=i[10].description+"",r;return{c(){e=U("div"),r=ve(t),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=V(e);r=we(l,t),l.forEach(h),this.h()},h(){z(e,"class","bx--label pb-2 text-xs text-gray-500")},m(n,l){O(n,e,l),B(e,r)},p(n,l){l&1024&&t!==(t=n[10].description+"")&&Pe(r,t)},d(n){n&&h(e)}}}function Nr(i){let e,t,r;return t=new js({props:{source:i[10].description}}),{c(){e=U("div"),W(t.$$.fragment),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=V(e);ie(t.$$.fragment,l),l.forEach(h),this.h()},h(){z(e,"class","description mb-4")},m(n,l){O(n,e,l),K(t,e,null),r=!0},p(n,l){const o={};l&1024&&(o.source=n[10].description),t.$set(o)},i(n){r||(p(t.$$.fragment,n),r=!0)},o(n){g(t.$$.fragment,n),r=!1},d(n){n&&h(e),$(t)}}}function Na(i){let e,t=JSON.stringify(i[10])+"",r;return{c(){e=ve("Unknown property: "),r=ve(t)},l(n){e=we(n,"Unknown property: "),r=we(n,t)},m(n,l){O(n,e,l),O(n,r,l)},p(n,l){l&1024&&t!==(t=JSON.stringify(n[10])+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&h(e),n&&h(r)}}}function La(i){let e,t,r=i[23],n=[];for(let o=0;o<r.length;o+=1)n[o]=Lr(Tr(i,r,o));const l=o=>g(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o<n.length;o+=1)n[o].c();e=F()},l(o){for(let s=0;s<n.length;s+=1)n[s].l(o);e=F()},m(o,s){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(o,s);O(o,e,s),t=!0},p(o,s){if(s&1463){r=o[23];let f;for(f=0;f<r.length;f+=1){const a=Tr(o,r,f);n[f]?(n[f].p(a,s),p(n[f],1)):(n[f]=Lr(a),n[f].c(),p(n[f],1),n[f].m(e.parentNode,e))}for(X(),f=r.length;f<n.length;f+=1)l(f);ee()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)p(n[s]);t=!0}},o(o){n=n.filter(Boolean);for(let s=0;s<n.length;s+=1)g(n[s]);t=!1},d(o){xe(n,o),o&&h(e)}}}function Ca(i){let e,t,r;function n(o){i[18](o)}let l={path:i[2],schema:i[1],validationErrors:i[7],customComponents:i[8],rootValue:i[4]};return i[0]!==void 0&&(l.value=i[0]),e=new Ta({props:l}),qe.push(()=>Fe(e,"value",n)),{c(){W(e.$$.fragment)},l(o){ie(e.$$.fragment,o)},m(o,s){K(e,o,s),r=!0},p(o,s){const f={};s&4&&(f.path=o[2]),s&2&&(f.schema=o[1]),s&128&&(f.validationErrors=o[7]),s&256&&(f.customComponents=o[8]),s&16&&(f.rootValue=o[4]),!t&&s&1&&(t=!0,f.value=o[0],Ke(()=>t=!1)),e.$set(f)},i(o){r||(p(e.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),r=!1},d(o){$(e,o)}}}function za(i){let e,t,r,n;function l(s){i[17](s)}let o={labelA:"False",labelB:"True",labelText:i[12],hideLabel:!0};return i[0]!==void 0&&(o.toggled=i[0]),t=new Si({props:o}),qe.push(()=>Fe(t,"toggled",l)),{c(){e=U("div"),W(t.$$.fragment)},l(s){e=q(s,"DIV",{});var f=V(e);ie(t.$$.fragment,f),f.forEach(h)},m(s,f){O(s,e,f),K(t,e,null),n=!0},p(s,f){const a={};f&4096&&(a.labelText=s[12]),!r&&f&1&&(r=!0,a.toggled=s[0],Ke(()=>r=!1)),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){g(t.$$.fragment,s),n=!1},d(s){s&&h(e),$(t)}}}function Da(i){let e,t,r;function n(o){i[16](o)}let l={name:i[2],label:i[12],hideLabel:!0,invalid:!i[0]&&i[3]};return i[0]!==void 0&&(l.value=i[0]),e=new ll({props:l}),qe.push(()=>Fe(e,"value",n)),{c(){W(e.$$.fragment)},l(o){ie(e.$$.fragment,o)},m(o,s){K(e,o,s),r=!0},p(o,s){const f={};s&4&&(f.name=o[2]),s&4096&&(f.label=o[12]),s&9&&(f.invalid=!o[0]&&o[3]),!t&&s&1&&(t=!0,f.value=o[0],Ke(()=>t=!1)),e.$set(f)},i(o){r||(p(e.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),r=!1},d(o){$(e,o)}}}function Va(i){let e,t,r;function n(o){i[15](o)}let l={name:i[2],invalid:!!i[9].length,invalidText:i[11],labelText:i[12],hideLabel:!0,placeholder:i[3]?"":"(optional)"};return i[0]!==void 0&&(l.value=i[0]),e=new pl({props:l}),qe.push(()=>Fe(e,"value",n)),{c(){W(e.$$.fragment)},l(o){ie(e.$$.fragment,o)},m(o,s){K(e,o,s),r=!0},p(o,s){const f={};s&4&&(f.name=o[2]),s&512&&(f.invalid=!!o[9].length),s&2048&&(f.invalidText=o[11]),s&4096&&(f.labelText=o[12]),s&8&&(f.placeholder=o[3]?"":"(optional)"),!t&&s&1&&(t=!0,f.value=o[0],Ke(()=>t=!1)),e.$set(f)},i(o){r||(p(e.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),r=!1},d(o){$(e,o)}}}function Ma(i){let e,t,r;function n(o){i[14](o)}let l={name:i[2],labelText:i[12],hideLabel:!0,$$slots:{default:[Ba]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.selected=i[0]),e=new Ii({props:l}),qe.push(()=>Fe(e,"selected",n)),{c(){W(e.$$.fragment)},l(o){ie(e.$$.fragment,o)},m(o,s){K(e,o,s),r=!0},p(o,s){const f={};s&4&&(f.name=o[2]),s&4096&&(f.labelText=o[12]),s&134218760&&(f.$$scope={dirty:s,ctx:o}),!t&&s&1&&(t=!0,f.selected=o[0],Ke(()=>t=!1)),e.$set(f)},i(o){r||(p(e.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),r=!1},d(o){$(e,o)}}}function Ua(i){let e,t=i[10].message+"",r;return{c(){e=U("div"),r=ve(t),this.h()},l(n){e=q(n,"DIV",{class:!0});var l=V(e);r=we(l,t),l.forEach(h),this.h()},h(){z(e,"class","text-red-600")},m(n,l){O(n,e,l),B(e,r)},p(n,l){l&1024&&t!==(t=n[10].message+"")&&Pe(r,t)},i:ue,o:ue,d(n){n&&h(e)}}}function qa(i){let e,t,r,n;function l(f){i[13](f)}var o=i[8][i[2]];function s(f){let a={rootValue:f[4],invalid:!!f[9].length,invalidText:f[11]};return f[0]!==void 0&&(a.value=f[0]),{props:a}}return o&&(e=Se(o,s(i)),qe.push(()=>Fe(e,"value",l))),{c(){e&&W(e.$$.fragment),r=F()},l(f){e&&ie(e.$$.fragment,f),r=F()},m(f,a){e&&K(e,f,a),O(f,r,a),n=!0},p(f,a){const u={};if(a&16&&(u.rootValue=f[4]),a&512&&(u.invalid=!!f[9].length),a&2048&&(u.invalidText=f[11]),!t&&a&1&&(t=!0,u.value=f[0],Ke(()=>t=!1)),a&260&&o!==(o=f[8][f[2]])){if(e){X();const c=e;g(c.$$.fragment,1,0,()=>{$(c,1)}),ee()}o?(e=Se(o,s(f)),qe.push(()=>Fe(e,"value",l)),W(e.$$.fragment),p(e.$$.fragment,1),K(e,r.parentNode,r)):e=null}else o&&e.$set(u)},i(f){n||(e&&p(e.$$.fragment,f),n=!0)},o(f){e&&g(e.$$.fragment,f),n=!1},d(f){f&&h(r),e&&$(e,f)}}}function Lr(i){var f;let e,t,r,n,l;function o(a){i[19](a,i[24])}let s={path:i[2]+"/"+i[24],schema:i[1],hiddenProperties:i[5],validationErrors:i[7],customComponents:i[8],rootValue:i[4],required:(f=i[10].required)==null?void 0:f.includes(i[24])};return i[0][i[24]]!==void 0&&(s.value=i[0][i[24]]),t=new on({props:s}),qe.push(()=>Fe(t,"value",o)),{c(){e=U("div"),W(t.$$.fragment),n=fe(),this.h()},l(a){e=q(a,"DIV",{class:!0});var u=V(e);ie(t.$$.fragment,u),n=ae(u),u.forEach(h),this.h()},h(){z(e,"class","mt-4 border-gray-300"),y(e,"border-b",i[26]<i[23].length-1)},m(a,u){O(a,e,u),K(t,e,null),B(e,n),l=!0},p(a,u){var d;i=a;const c={};u&1028&&(c.path=i[2]+"/"+i[24]),u&2&&(c.schema=i[1]),u&32&&(c.hiddenProperties=i[5]),u&128&&(c.validationErrors=i[7]),u&256&&(c.customComponents=i[8]),u&16&&(c.rootValue=i[4]),u&1024&&(c.required=(d=i[10].required)==null?void 0:d.includes(i[24])),!r&&u&1025&&(r=!0,c.value=i[0][i[24]],Ke(()=>r=!1)),t.$set(c),(!l||u&1024)&&y(e,"border-b",i[26]<i[23].length-1)},i(a){l||(p(t.$$.fragment,a),l=!0)},o(a){g(t.$$.fragment,a),l=!1},d(a){a&&h(e),$(t)}}}function Cr(i){let e,t;return e=new Br({props:{value:void 0,text:"None"}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p:ue,i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function zr(i){let e,t;return e=new Br({props:{value:i[20]}}),{c(){W(e.$$.fragment)},l(r){ie(e.$$.fragment,r)},m(r,n){K(e,r,n),t=!0},p(r,n){const l={};n&1024&&(l.value=r[20]),e.$set(l)},i(r){t||(p(e.$$.fragment,r),t=!0)},o(r){g(e.$$.fragment,r),t=!1},d(r){$(e,r)}}}function Ba(i){let e,t,r,n=!i[3]&&Cr(),l=i[10].enum,o=[];for(let f=0;f<l.length;f+=1)o[f]=zr(Ar(i,l,f));const s=f=>g(o[f],1,1,()=>{o[f]=null});return{c(){n&&n.c(),e=fe();for(let f=0;f<o.length;f+=1)o[f].c();t=F()},l(f){n&&n.l(f),e=ae(f);for(let a=0;a<o.length;a+=1)o[a].l(f);t=F()},m(f,a){n&&n.m(f,a),O(f,e,a);for(let u=0;u<o.length;u+=1)o[u]&&o[u].m(f,a);O(f,t,a),r=!0},p(f,a){if(f[3]?n&&(X(),g(n,1,1,()=>{n=null}),ee()):n?(n.p(f,a),a&8&&p(n,1)):(n=Cr(),n.c(),p(n,1),n.m(e.parentNode,e)),a&1024){l=f[10].enum;let u;for(u=0;u<l.length;u+=1){const c=Ar(f,l,u);o[u]?(o[u].p(c,a),p(o[u],1)):(o[u]=zr(c),o[u].c(),p(o[u],1),o[u].m(t.parentNode,t))}for(X(),u=l.length;u<o.length;u+=1)s(u);ee()}},i(f){if(!r){p(n);for(let a=0;a<l.length;a+=1)p(o[a]);r=!0}},o(f){g(n),o=o.filter(Boolean);for(let a=0;a<o.length;a+=1)g(o[a]);r=!1},d(f){n&&n.d(f),f&&h(e),xe(o,f),f&&h(t)}}}function Fa(i){var l;let e=!((l=i[5])!=null&&l.includes(i[2])),t,r,n=e&&Rr(i);return{c(){n&&n.c(),t=F()},l(o){n&&n.l(o),t=F()},m(o,s){n&&n.m(o,s),O(o,t,s),r=!0},p(o,[s]){var f;s&36&&(e=!((f=o[5])!=null&&f.includes(o[2]))),e?n?(n.p(o,s),s&36&&p(n,1)):(n=Rr(o),n.c(),p(n,1),n.m(t.parentNode,t)):n&&(X(),g(n,1,1,()=>{n=null}),ee())},i(o){r||(p(n),r=!0)},o(o){g(n),r=!1},d(o){n&&n.d(o),o&&h(t)}}}function xa(i,e,t){let r,n,l,{schema:o}=e,{path:s=""}=e,{required:f=!1}=e,{value:a}=e,{rootValue:u}=e,{hiddenProperties:c=[]}=e,{showDescription:d=!0}=e,{validationErrors:m=[]}=e,{customComponents:k}=e,_="";function A(L){a=L,t(0,a)}function v(L){a=L,t(0,a)}function b(L){a=L,t(0,a)}function S(L){a=L,t(0,a)}function P(L){a=L,t(0,a)}function I(L){a=L,t(0,a)}function T(L,D){i.$$.not_equal(a[D],L)&&(a[D]=L,t(0,a))}return i.$$set=L=>{"schema"in L&&t(1,o=L.schema),"path"in L&&t(2,s=L.path),"required"in L&&t(3,f=L.required),"value"in L&&t(0,a=L.value),"rootValue"in L&&t(4,u=L.rootValue),"hiddenProperties"in L&&t(5,c=L.hiddenProperties),"showDescription"in L&&t(6,d=L.showDescription),"validationErrors"in L&&t(7,m=L.validationErrors),"customComponents"in L&&t(8,k=L.customComponents)},i.$$.update=()=>{i.$$.dirty&1&&a===""&&t(0,a=void 0),i.$$.dirty&7&&t(10,r=o.getSchema(s,a)),i.$$.dirty&1032&&t(12,n=r.title?`${r.title} ${f?"*":""}`:""),i.$$.dirty&132&&t(9,l=m.filter(L=>{var D,Z,ne;return`${(D=L==null?void 0:L.data)==null?void 0:D.pointer}${(Z=L==null?void 0:L.data)!=null&&Z.key?"/"+((ne=L==null?void 0:L.data)==null?void 0:ne.key):""}`.replaceAll("#","")==s})),i.$$.dirty&512&&(l.length==0?t(11,_=""):l[0].code==="min-length-one-error"||l[0].code==="required-property-error"?t(11,_="Value is required"):t(11,_=l[0].message))},[a,o,s,f,u,c,d,m,k,l,r,_,n,A,v,b,S,P,I,T]}class on extends ce{constructor(e){super(),de(this,e,xa,Fa,he,{schema:1,path:2,required:3,value:0,rootValue:4,hiddenProperties:5,showDescription:6,validationErrors:7,customComponents:8})}}function Dr(i){let e,t,r;function n(o){i[7](o)}let l={schema:i[5],hiddenProperties:i[2],showDescription:i[3],validationErrors:i[1],customComponents:i[4],rootValue:i[0]};return i[0]!==void 0&&(l.value=i[0]),e=new on({props:l}),qe.push(()=>Fe(e,"value",n)),{c(){W(e.$$.fragment)},l(o){ie(e.$$.fragment,o)},m(o,s){K(e,o,s),r=!0},p(o,s){const f={};s&32&&(f.schema=o[5]),s&4&&(f.hiddenProperties=o[2]),s&8&&(f.showDescription=o[3]),s&2&&(f.validationErrors=o[1]),s&16&&(f.customComponents=o[4]),s&1&&(f.rootValue=o[0]),!t&&s&1&&(t=!0,f.value=o[0],Ke(()=>t=!1)),e.$set(f)},i(o){r||(p(e.$$.fragment,o),r=!0)},o(o){g(e.$$.fragment,o),r=!1},d(o){$(e,o)}}}function Za(i){let e,t,r=i[5]&&Dr(i);return{c(){r&&r.c(),e=F()},l(n){r&&r.l(n),e=F()},m(n,l){r&&r.m(n,l),O(n,e,l),t=!0},p(n,[l]){n[5]?r?(r.p(n,l),l&32&&p(r,1)):(r=Dr(n),r.c(),p(r,1),r.m(e.parentNode,e)):r&&(X(),g(r,1,1,()=>{r=null}),ee())},i(n){t||(p(r),t=!0)},o(n){g(r),t=!1},d(n){r&&r.d(n),n&&h(e)}}}function Ha(i,e,t){let r,{schema:n}=e,{value:l={}}=e,{hiddenProperties:o=[]}=e,{validationErrors:s=[]}=e,{showDescription:f=!0}=e,{customComponents:a={}}=e;function u(d){t(0,l=d.getTemplate(l,void 0,{addOptionalProps:!1}));for(const[m,k]of Object.entries(n.properties||{})){const _=k.default;_&&l[m]!=_&&t(0,l[m]=_,l)}}function c(d){l=d,t(0,l)}return i.$$set=d=>{"schema"in d&&t(6,n=d.schema),"value"in d&&t(0,l=d.value),"hiddenProperties"in d&&t(2,o=d.hiddenProperties),"validationErrors"in d&&t(1,s=d.validationErrors),"showDescription"in d&&t(3,f=d.showDescription),"customComponents"in d&&t(4,a=d.customComponents)},i.$$.update=()=>{i.$$.dirty&64&&t(5,r=typeof n=="object"?new Sa(n):null),i.$$.dirty&32&&r&&u(r),i.$$.dirty&33&&t(1,s=r?r.validate(l):[])},[l,s,o,f,a,r,n,c]}class tu extends ce{constructor(e){super(),de(this,e,Ha,Za,he,{schema:6,value:0,hiddenProperties:2,validationErrors:1,showDescription:3,customComponents:4})}}function nu(i){return i!=null}function ru(i,e){return`/concepts#!/${i}/${e}`}function iu(i,e){return`/datasets#!/${i}/${e}`}export{bl as C,Ga as I,tu as J,Ya as S,pl as T,El as a,Nt as b,ru as c,iu as d,js as e,Xa as g,nu as n};