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{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({}),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{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{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{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{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{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({}),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{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{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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{$(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{$(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{$(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{$(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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{$(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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{$(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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{$(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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{$(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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;o{$(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{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={"&":"&","<":"<",">":">",'"':""","'":"'"},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.length1;)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;sT.type==="space"),I=P.length>0&&P.some(T=>/\n.*\n/.test(T.raw));v.loose=I}if(v.loose)for(s=0;s$/,"$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({text:a}));for(n=r.header.length,o=0;o/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))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(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]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\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=/|$)/;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",")|<(?: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",")|<(?: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",")|<(?:script|pre|style|textarea|!--)").replace("tag",Y._tag).getRegex();Y.pedantic={...Y.normal,html:Oe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\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-]*(?:attribute)*?\\s*/?>|^<\\?[\\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]*?(?:(?=[\\?@\\[\\]`^{|}~";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]*?(?:(?=[\\.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?'
'+(r?e:Ne(e,!0))+`
`:"
"+(r?e:Ne(e,!0))+`
`}blockquote(e){return`
${e}
`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const l=this.options.headerPrefix+n.slug(r);return`${e} `}return`${e} `}hr(){return this.options.xhtml?`
`:`
`}list(e,t,r){const n=t?"ol":"ul",l=t&&r!==1?' start="'+r+'"':"";return"<"+n+l+`> `+e+" `}listitem(e){return`
  • ${e}
  • `}checkbox(e){return" "}paragraph(e){return`

    ${e}

    `}table(e,t){return t&&(t=`${t}`),` `+e+` `+t+`
    `}tablerow(e){return` ${e} `}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+` `}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,r){if(e=ir(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='",n}image(e,t,r){if(e=ir(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n=`${r}":">",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;n0&&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{if(r.message+=` Please report this to https://github.com/markedjs/marked.`,i){const n="

    An error occurred:

    "+Ne(r.message+"",!0)+"
    ";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;t0)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;o0?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;l0)l.push(...c);else return a}return i.errors.oneOfPropertyError({property:o,value:s,pointer:r,errors:l})}const n=[];for(let l=0;l1?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;j0&&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+w0?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;rWt(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{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{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&&sr=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;tObject.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{_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])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;li&&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);c0){const c=Math.max(e.minItems,a.length);for(let d=0;d(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=55296&&n<=56319&&t!(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{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{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{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{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum{if(!isNaN(e.maxItems)&&e.maxItems{if(isNaN(e.maxLength))return;const n=wr(t).length;if(e.maxLength{const n=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties{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;c0&&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{const n=[],l=Object.keys(e.properties||{});for(let o=0;o{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{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{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{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;c0&&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;oe.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;fi.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;dg(u[d],1,1,()=>{u[d]=null});return{c(){e=U("div");for(let d=0;d0),z(e,"class","bx--form-item flex flex-col")},m(d,m){O(d,e,m);for(let k=0;k0)},i(d){if(!o){for(let m=0;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;og(n[o],1,1,()=>{n[o]=null});return{c(){for(let o=0;oFe(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]r=!1)),t.$set(c),(!l||u&1024)&&y(e,"border-b",i[26]g(o[f],1,1,()=>{o[f]=null});return{c(){n&&n.c(),e=fe();for(let f=0;f{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{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};