nsthorat's picture
Push
e4f9cbe
raw
history blame
184 kB
var fi=Object.defineProperty;var ai=(i,e,t)=>e in i?fi(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var sn=(i,e,t)=>(ai(i,typeof e!="symbol"?e+"":e,t),t);import{S as ue,i as ce,s as de,E as Pe,a2 as Fe,a3 as Be,m as $,h,n as I,a4 as nt,b as O,J as x,O as $e,$ as pe,D as Ce,F as Me,q as ge,r as _e,u as Te,k as M,a as se,l as V,c as oe,I as wt,H as S,K as me,g as m,v as G,d as _,f as Y,P as Qt,a8 as Pr,C as Gt,G as ye,L as ke,M as ve,N as we,y as H,z as re,A as J,B as W,Q as Ae,w as De,e as q,a9 as on,ad as Tr,o as Ar,a0 as He,W as lt,x as Ee,ap as fn,aa as ui,ac as ci,T as di,U as Ve,V as Je}from"./index.224851d7.js";import{T as hi,S as pi,a as Rr}from"./Toggle.b9cf6836.js";import{W as Ir,d as jr}from"./taskMonitoringStore.8317b9f1.js";function an(i){let e,t;return{c(){e=Fe("title"),t=ge(i[1])},l(r){e=Be(r,"title",{});var n=$(e);t=_e(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n&2&&Te(t,r[1])},d(r){r&&h(e)}}}function mi(i){let e,t,r=i[1]&&an(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 s=0;s<n.length;s+=1)l=Pe(l,n[s]);return{c(){e=Fe("svg"),r&&r.c(),t=Fe("path"),this.h()},l(s){e=Be(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=$(e);r&&r.l(o),t=Be(o,"path",{d:!0}),$(t).forEach(h),o.forEach(h),this.h()},h(){I(t,"d","M17 15L17 8 15 8 15 15 8 15 8 17 15 17 15 24 17 24 17 17 24 17 24 15z"),nt(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),x(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=an(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),nt(e,l=$e(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:pe,o:pe,d(s){s&&h(e),r&&r.d()}}}function gi(i,e,t){let r,n;const l=["size","title"];let s=Ce(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=Pe(Pe({},e),Me(a))),t(3,s=Ce(e,l)),"size"in a&&t(0,o=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=Me(e),[o,f,n,s,r]}class _i extends ue{constructor(e){super(),ce(this,e,gi,mi,de,{size:0,title:1})}}const bi=_i;function un(i){let e,t;return{c(){e=Fe("title"),t=ge(i[1])},l(r){e=Be(r,"title",{});var n=$(e);t=_e(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n&2&&Te(t,r[1])},d(r){r&&h(e)}}}function Ei(i){let e,t,r=i[1]&&un(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 s=0;s<n.length;s+=1)l=Pe(l,n[s]);return{c(){e=Fe("svg"),r&&r.c(),t=Fe("path"),this.h()},l(s){e=Be(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=$(e);r&&r.l(o),t=Be(o,"path",{d:!0}),$(t).forEach(h),o.forEach(h),this.h()},h(){I(t,"d","M8 15H24V17H8z"),nt(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),x(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=un(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),nt(e,l=$e(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:pe,o:pe,d(s){s&&h(e),r&&r.d()}}}function yi(i,e,t){let r,n;const l=["size","title"];let s=Ce(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=Pe(Pe({},e),Me(a))),t(3,s=Ce(e,l)),"size"in a&&t(0,o=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=Me(e),[o,f,n,s,r]}class ki extends ue{constructor(e){super(),ce(this,e,yi,Ei,de,{size:0,title:1})}}const vi=ki;function cn(i){let e,t;return{c(){e=Fe("title"),t=ge(i[1])},l(r){e=Be(r,"title",{});var n=$(e);t=_e(n,i[1]),n.forEach(h)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n&2&&Te(t,r[1])},d(r){r&&h(e)}}}function wi(i){let e,t,r=i[1]&&cn(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 s=0;s<n.length;s+=1)l=Pe(l,n[s]);return{c(){e=Fe("svg"),r&&r.c(),t=Fe("path"),this.h()},l(s){e=Be(s,"svg",{xmlns:!0,viewBox:!0,fill:!0,preserveAspectRatio:!0,width:!0,height:!0});var o=$(e);r&&r.l(o),t=Be(o,"path",{d:!0}),$(t).forEach(h),o.forEach(h),this.h()},h(){I(t,"d","M30 28.6L3.4 2 2 3.4l10.1 10.1L4 21.6V28h6.4l8.1-8.1L28.6 30 30 28.6zM9.6 26H6v-3.6l7.5-7.5 3.6 3.6L9.6 26zM29.4 6.2L29.4 6.2l-3.6-3.6c-.8-.8-2-.8-2.8 0l0 0 0 0-8 8 1.4 1.4L20 8.4l3.6 3.6L20 15.6l1.4 1.4 8-8C30.2 8.2 30.2 7 29.4 6.2L29.4 6.2zM25 10.6L21.4 7l3-3L28 7.6 25 10.6z"),nt(e,l)},m(s,o){O(s,e,o),r&&r.m(e,null),x(e,t)},p(s,[o]){s[1]?r?r.p(s,o):(r=cn(s),r.c(),r.m(e,t)):r&&(r.d(1),r=null),nt(e,l=$e(n,[{xmlns:"http://www.w3.org/2000/svg"},{viewBox:"0 0 32 32"},{fill:"currentColor"},{preserveAspectRatio:"xMidYMid meet"},o&1&&{width:s[0]},o&1&&{height:s[0]},o&4&&s[2],o&8&&s[3]]))},i:pe,o:pe,d(s){s&&h(e),r&&r.d()}}}function Oi(i,e,t){let r,n;const l=["size","title"];let s=Ce(e,l),{size:o=16}=e,{title:f=void 0}=e;return i.$$set=a=>{t(5,e=Pe(Pe({},e),Me(a))),t(3,s=Ce(e,l)),"size"in a&&t(0,o=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=Me(e),[o,f,n,s,r]}class Si extends ue{constructor(e){super(),ce(this,e,Oi,wi,de,{size:0,title:1})}}const Nr=Si,Pi=i=>({}),dn=i=>({});function hn(i){let e,t;const r=i[34].label,n=ye(r,i,i[33],dn),l=n||Ti(i);return{c(){e=M("label"),l&&l.c(),this.h()},l(s){e=V(s,"LABEL",{for:!0});var o=$(e);l&&l.l(o),o.forEach(h),this.h()},h(){I(e,"for",i[18]),S(e,"bx--label",!0),S(e,"bx--label--disabled",i[8]),S(e,"bx--visually-hidden",i[17])},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[1]&4)&&ke(n,r,s,s[33],t?we(r,s[33],o,Pi):ve(s[33]),dn):l&&l.p&&(!t||o[0]&65536)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&262144)&&I(e,"for",s[18]),(!t||o[0]&256)&&S(e,"bx--label--disabled",s[8]),(!t||o[0]&131072)&&S(e,"bx--visually-hidden",s[17])},i(s){t||(m(l,s),t=!0)},o(s){_(l,s),t=!1},d(s){s&&h(e),l&&l.d(s)}}}function Ti(i){let e;return{c(){e=ge(i[16])},l(t){e=_e(t,i[16])},m(t,r){O(t,e,r)},p(t,r){r[0]&65536&&Te(e,t[16])},d(t){t&&h(e)}}}function Ai(i){let e,t,r,n=i[11]&&pn(),l=!i[11]&&i[13]&&mn();return{c(){n&&n.c(),e=se(),l&&l.c(),t=q()},l(s){n&&n.l(s),e=oe(s),l&&l.l(s),t=q()},m(s,o){n&&n.m(s,o),O(s,e,o),l&&l.m(s,o),O(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&m(n,1):(n=pn(),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(G(),_(n,1,1,()=>{n=null}),Y()),!s[11]&&s[13]?l?o[0]&10240&&m(l,1):(l=mn(),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(G(),_(l,1,1,()=>{l=null}),Y())},i(s){r||(m(n),m(l),r=!0)},o(s){_(n),_(l),r=!1},d(s){n&&n.d(s),s&&h(e),l&&l.d(s),s&&h(t)}}}function Ri(i){let e,t;return e=new Nr({props:{class:"bx--text-input__readonly-icon"}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},p:pe,i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function pn(i){let e,t;return e=new Ir({props:{class:"bx--number__invalid"}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function mn(i){let e,t;return e=new jr({props:{class:"bx--number__invalid bx--number__invalid--warning"}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function gn(i){let e,t,r,n,l,s,o,f,a,u,c,d,p,g,A,j,k;return r=new vi({props:{class:"down-icon"}}),u=new bi({props:{class:"up-icon"}}),{c(){e=M("div"),t=M("button"),H(r.$$.fragment),s=se(),o=M("div"),f=se(),a=M("button"),H(u.$$.fragment),p=se(),g=M("div"),this.h()},l(b){e=V(b,"DIV",{});var E=$(e);t=V(E,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var w=$(t);re(r.$$.fragment,w),w.forEach(h),s=oe(E),o=V(E,"DIV",{}),$(o).forEach(h),f=oe(E),a=V(E,"BUTTON",{type:!0,tabindex:!0,title:!0,"aria-label":!0});var N=$(a);re(u.$$.fragment,N),N.forEach(h),p=oe(E),g=V(E,"DIV",{}),$(g).forEach(h),E.forEach(h),this.h()},h(){I(t,"type","button"),I(t,"tabindex","-1"),I(t,"title",n=i[23]||i[10]),I(t,"aria-label",l=i[23]||i[10]),t.disabled=i[8],S(t,"bx--number__control-btn",!0),S(t,"down-icon",!0),S(o,"bx--number__rule-divider",!0),I(a,"type","button"),I(a,"tabindex","-1"),I(a,"title",c=i[24]||i[10]),I(a,"aria-label",d=i[24]||i[10]),a.disabled=i[8],S(a,"bx--number__control-btn",!0),S(a,"up-icon",!0),S(g,"bx--number__rule-divider",!0),S(e,"bx--number__controls",!0)},m(b,E){O(b,e,E),x(e,t),J(r,t,null),x(e,s),x(e,o),x(e,f),x(e,a),J(u,a,null),x(e,p),x(e,g),A=!0,j||(k=[me(t,"click",i[45]),me(a,"click",i[46])],j=!0)},p(b,E){(!A||E[0]&8389632&&n!==(n=b[23]||b[10]))&&I(t,"title",n),(!A||E[0]&8389632&&l!==(l=b[23]||b[10]))&&I(t,"aria-label",l),(!A||E[0]&256)&&(t.disabled=b[8]),(!A||E[0]&16778240&&c!==(c=b[24]||b[10]))&&I(a,"title",c),(!A||E[0]&16778240&&d!==(d=b[24]||b[10]))&&I(a,"aria-label",d),(!A||E[0]&256)&&(a.disabled=b[8])},i(b){A||(m(r.$$.fragment,b),m(u.$$.fragment,b),A=!0)},o(b){_(r.$$.fragment,b),_(u.$$.fragment,b),A=!1},d(b){b&&h(e),W(r),W(u),j=!1,Qt(k)}}}function _n(i){let e,t;return{c(){e=M("div"),t=ge(i[15]),this.h()},l(r){e=V(r,"DIV",{});var n=$(e);t=_e(n,i[15]),n.forEach(h),this.h()},h(){S(e,"bx--form__helper-text",!0),S(e,"bx--form__helper-text--disabled",i[8])},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&32768&&Te(t,r[15]),n[0]&256&&S(e,"bx--form__helper-text--disabled",r[8])},d(r){r&&h(e)}}}function bn(i){let e,t;return{c(){e=M("div"),t=ge(i[12]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[12]),n.forEach(h),this.h()},h(){I(e,"id",i[21]),S(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&4096&&Te(t,r[12]),n[0]&2097152&&I(e,"id",r[21])},d(r){r&&h(e)}}}function En(i){let e,t;return{c(){e=M("div"),t=ge(i[14]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[14]),n.forEach(h),this.h()},h(){I(e,"id",i[21]),S(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&16384&&Te(t,r[14]),n[0]&2097152&&I(e,"id",r[21])},d(r){r&&h(e)}}}function Ii(i){let e,t,r,n,l,s,o,f,a,u,c,d,p,g,A,j,k,b,E,w,N=(i[28].label||i[16])&&hn(i),R=[{type:"number"},{pattern:"[0-9]*"},{"aria-describedby":i[21]},{"data-invalid":s=i[22]||void 0},{"aria-invalid":o=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 y=0;y<R.length;y+=1)L=Pe(L,R[y]);const fe=[Ri,Ai],Q=[];function te(y,T){return y[7]?0:1}c=te(i),d=Q[c]=fe[c](i);let ie=!i[9]&&gn(i),le=!i[22]&&!i[13]&&i[15]&&_n(i),v=i[22]&&bn(i),z=!i[22]&&i[13]&&En(i);return{c(){e=M("div"),t=M("div"),N&&N.c(),r=se(),n=M("div"),l=M("input"),u=se(),d.c(),p=se(),ie&&ie.c(),g=se(),le&&le.c(),A=se(),v&&v.c(),j=se(),z&&z.c(),this.h()},l(y){e=V(y,"DIV",{});var T=$(e);t=V(T,"DIV",{"data-invalid":!0});var F=$(t);N&&N.l(F),r=oe(F),n=V(F,"DIV",{});var ee=$(n);l=V(ee,"INPUT",{type:!0,pattern:!0,"aria-describedby":!0,"data-invalid":!0,"aria-invalid":!0,"aria-label":!0,id:!0,name:!0,max:!0,min:!0,step:!0}),u=oe(ee),d.l(ee),p=oe(ee),ie&&ie.l(ee),ee.forEach(h),g=oe(F),le&&le.l(F),A=oe(F),v&&v.l(F),j=oe(F),z&&z.l(F),F.forEach(h),T.forEach(h),this.h()},h(){wt(l,L),S(n,"bx--number__input-wrapper",!0),S(n,"bx--number__input-wrapper--warning",!i[11]&&i[13]),I(t,"data-invalid",k=i[22]||void 0),S(t,"bx--number",!0),S(t,"bx--number--helpertext",!0),S(t,"bx--number--readonly",i[7]),S(t,"bx--number--light",i[6]),S(t,"bx--number--nolabel",i[17]),S(t,"bx--number--nosteppers",i[9]),S(t,"bx--number--sm",i[2]==="sm"),S(t,"bx--number--xl",i[2]==="xl"),S(e,"bx--form-item",!0)},m(y,T){O(y,e,T),x(e,t),N&&N.m(t,null),x(t,r),x(t,n),x(n,l),l.autofocus&&l.focus(),i[44](l),x(n,u),Q[c].m(n,null),x(n,p),ie&&ie.m(n,null),x(t,g),le&&le.m(t,null),x(t,A),v&&v.m(t,null),x(t,j),z&&z.m(t,null),b=!0,E||(w=[me(l,"change",i[27]),me(l,"input",i[26]),me(l,"keydown",i[39]),me(l,"keyup",i[40]),me(l,"focus",i[41]),me(l,"blur",i[42]),me(l,"paste",i[43]),me(e,"click",i[35]),me(e,"mouseover",i[36]),me(e,"mouseenter",i[37]),me(e,"mouseleave",i[38])],E=!0)},p(y,T){y[28].label||y[16]?N?(N.p(y,T),T[0]&268500992&&m(N,1)):(N=hn(y),N.c(),m(N,1),N.m(t,r)):N&&(G(),_(N,1,1,()=>{N=null}),Y()),wt(l,L=$e(R,[{type:"number"},{pattern:"[0-9]*"},(!b||T[0]&2097152)&&{"aria-describedby":y[21]},(!b||T[0]&4194304&&s!==(s=y[22]||void 0))&&{"data-invalid":s},(!b||T[0]&4194304&&o!==(o=y[22]||void 0))&&{"aria-invalid":o},(!b||T[0]&1114112&&f!==(f=y[16]?void 0:y[20]))&&{"aria-label":f},(!b||T[0]&256)&&{disabled:y[8]},(!b||T[0]&262144)&&{id:y[18]},(!b||T[0]&524288)&&{name:y[19]},(!b||T[0]&16)&&{max:y[4]},(!b||T[0]&32)&&{min:y[5]},(!b||T[0]&8)&&{step:y[3]},(!b||T[0]&1&&a!==(a=y[0]??"")&&l.value!==a)&&{value:a},(!b||T[0]&128)&&{readOnly:y[7]},T[0]&536870912&&y[29]]));let F=c;c=te(y),c===F?Q[c].p(y,T):(G(),_(Q[F],1,1,()=>{Q[F]=null}),Y(),d=Q[c],d?d.p(y,T):(d=Q[c]=fe[c](y),d.c()),m(d,1),d.m(n,p)),y[9]?ie&&(G(),_(ie,1,1,()=>{ie=null}),Y()):ie?(ie.p(y,T),T[0]&512&&m(ie,1)):(ie=gn(y),ie.c(),m(ie,1),ie.m(n,null)),(!b||T[0]&10240)&&S(n,"bx--number__input-wrapper--warning",!y[11]&&y[13]),!y[22]&&!y[13]&&y[15]?le?le.p(y,T):(le=_n(y),le.c(),le.m(t,A)):le&&(le.d(1),le=null),y[22]?v?v.p(y,T):(v=bn(y),v.c(),v.m(t,j)):v&&(v.d(1),v=null),!y[22]&&y[13]?z?z.p(y,T):(z=En(y),z.c(),z.m(t,null)):z&&(z.d(1),z=null),(!b||T[0]&4194304&&k!==(k=y[22]||void 0))&&I(t,"data-invalid",k),(!b||T[0]&128)&&S(t,"bx--number--readonly",y[7]),(!b||T[0]&64)&&S(t,"bx--number--light",y[6]),(!b||T[0]&131072)&&S(t,"bx--number--nolabel",y[17]),(!b||T[0]&512)&&S(t,"bx--number--nosteppers",y[9]),(!b||T[0]&4)&&S(t,"bx--number--sm",y[2]==="sm"),(!b||T[0]&4)&&S(t,"bx--number--xl",y[2]==="xl")},i(y){b||(m(N),m(d),m(ie),b=!0)},o(y){_(N),_(d),_(ie),b=!1},d(y){y&&h(e),N&&N.d(),i[44](null),Q[c].d(),ie&&ie.d(),le&&le.d(),v&&v.d(),z&&z.d(),E=!1,Qt(w)}}}function yn(i){return i!=""?Number(i):null}function ji(i,e,t){let r,n,l,s,o;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=Ce(e,f),{$$slots:u={},$$scope:c}=e;const d=Pr(u);let{size:p=void 0}=e,{value:g=null}=e,{step:A=1}=e,{max:j=void 0}=e,{min:k=void 0}=e,{light:b=!1}=e,{readonly:E=!1}=e,{allowEmpty:w=!1}=e,{disabled:N=!1}=e,{hideSteppers:R=!1}=e,{iconDescription:L=""}=e,{invalid:fe=!1}=e,{invalidText:Q=""}=e,{warn:te=!1}=e,{warnText:ie=""}=e,{helperText:le=""}=e,{label:v=""}=e,{hideLabel:z=!1}=e,{translateWithId:y=C=>Oe[C]}=e;const T={increment:"increment",decrement:"decrement"};let{id:F="ccs-"+Math.random().toString(36)}=e,{name:ee=void 0}=e,{ref:ne=null}=e;const Oe={[T.increment]:"Increment number",[T.decrement]:"Decrement number"},Se=Gt();function P(C){C?ne.stepUp():ne.stepDown(),t(0,g=+ne.value),Se("input",g),Se("change",g)}function X({target:C}){t(0,g=yn(C.value)),Se("input",g)}function Ie({target:C}){Se("change",yn(C.value))}function Ne(C){Ae.call(this,i,C)}function Nt(C){Ae.call(this,i,C)}function Lt(C){Ae.call(this,i,C)}function zt(C){Ae.call(this,i,C)}function Ct(C){Ae.call(this,i,C)}function Dt(C){Ae.call(this,i,C)}function D(C){Ae.call(this,i,C)}function ri(C){Ae.call(this,i,C)}function ii(C){Ae.call(this,i,C)}function li(C){De[C?"unshift":"push"](()=>{ne=C,t(1,ne)})}const si=()=>{P(!1)},oi=()=>{P(!0)};return i.$$set=C=>{t(49,e=Pe(Pe({},e),Me(C))),t(29,a=Ce(e,f)),"size"in C&&t(2,p=C.size),"value"in C&&t(0,g=C.value),"step"in C&&t(3,A=C.step),"max"in C&&t(4,j=C.max),"min"in C&&t(5,k=C.min),"light"in C&&t(6,b=C.light),"readonly"in C&&t(7,E=C.readonly),"allowEmpty"in C&&t(30,w=C.allowEmpty),"disabled"in C&&t(8,N=C.disabled),"hideSteppers"in C&&t(9,R=C.hideSteppers),"iconDescription"in C&&t(10,L=C.iconDescription),"invalid"in C&&t(11,fe=C.invalid),"invalidText"in C&&t(12,Q=C.invalidText),"warn"in C&&t(13,te=C.warn),"warnText"in C&&t(14,ie=C.warnText),"helperText"in C&&t(15,le=C.helperText),"label"in C&&t(16,v=C.label),"hideLabel"in C&&t(17,z=C.hideLabel),"translateWithId"in C&&t(31,y=C.translateWithId),"id"in C&&t(18,F=C.id),"name"in C&&t(19,ee=C.name),"ref"in C&&t(1,ne=C.ref),"$$scope"in C&&t(33,c=C.$$scope)},i.$$.update=()=>{i.$$.dirty[1]&1&&t(24,r=y("increment")),i.$$.dirty[1]&1&&t(23,n=y("decrement")),i.$$.dirty[0]&1073744049&&t(22,l=fe&&!E||!w&&g==null||g>j||typeof g=="number"&&g<k),i.$$.dirty[0]&262144&&t(21,s=`error-${F}`),t(20,o=e["aria-label"]||"Numeric input field with increment and decrement buttons")},e=Me(e),[g,ne,p,A,j,k,b,E,N,R,L,fe,Q,te,ie,le,v,z,F,ee,o,s,l,n,r,P,X,Ie,d,a,w,y,T,c,u,Ne,Nt,Lt,zt,Ct,Dt,D,ri,ii,li,si,oi]}class Ni extends ue{constructor(e){super(),ce(this,e,ji,Ii,de,{size:2,value:0,step:3,max:4,min:5,light:6,readonly:7,allowEmpty:30,disabled:8,hideSteppers:9,iconDescription:10,invalid:11,invalidText:12,warn:13,warnText:14,helperText:15,label:16,hideLabel:17,translateWithId:31,translationIds:32,id:18,name:19,ref:1},null,[-1,-1])}get translationIds(){return this.$$.ctx[32]}}const Li=Ni,zi=i=>({}),kn=i=>({}),Ci=i=>({}),vn=i=>({});function wn(i){let e,t,r,n=i[9]&&On(i),l=!i[22]&&i[6]&&Sn(i);return{c(){e=M("div"),n&&n.c(),t=se(),l&&l.c(),this.h()},l(s){e=V(s,"DIV",{});var o=$(e);n&&n.l(o),t=oe(o),l&&l.l(o),o.forEach(h),this.h()},h(){S(e,"bx--text-input__label-helper-wrapper",!0)},m(s,o){O(s,e,o),n&&n.m(e,null),x(e,t),l&&l.m(e,null),r=!0},p(s,o){s[9]?n?(n.p(s,o),o[0]&512&&m(n,1)):(n=On(s),n.c(),m(n,1),n.m(e,t)):n&&(G(),_(n,1,1,()=>{n=null}),Y()),!s[22]&&s[6]?l?l.p(s,o):(l=Sn(s),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i(s){r||(m(n),r=!0)},o(s){_(n),r=!1},d(s){s&&h(e),n&&n.d(),l&&l.d()}}}function On(i){let e,t;const r=i[28].labelText,n=ye(r,i,i[27],vn),l=n||Di(i);return{c(){e=M("label"),l&&l.c(),this.h()},l(s){e=V(s,"LABEL",{for:!0});var o=$(e);l&&l.l(o),o.forEach(h),this.h()},h(){I(e,"for",i[7]),S(e,"bx--label",!0),S(e,"bx--visually-hidden",i[10]),S(e,"bx--label--disabled",i[5]),S(e,"bx--label--inline",i[16]),S(e,"bx--label--inline--sm",i[2]==="sm"),S(e,"bx--label--inline--xl",i[2]==="xl")},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&ke(n,r,s,s[27],t?we(r,s[27],o,Ci):ve(s[27]),vn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&I(e,"for",s[7]),(!t||o[0]&1024)&&S(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&S(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&S(e,"bx--label--inline",s[16]),(!t||o[0]&4)&&S(e,"bx--label--inline--sm",s[2]==="sm"),(!t||o[0]&4)&&S(e,"bx--label--inline--xl",s[2]==="xl")},i(s){t||(m(l,s),t=!0)},o(s){_(l,s),t=!1},d(s){s&&h(e),l&&l.d(s)}}}function Di(i){let e;return{c(){e=ge(i[9])},l(t){e=_e(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Te(e,t[9])},d(t){t&&h(e)}}}function Sn(i){let e,t;return{c(){e=M("div"),t=ge(i[6]),this.h()},l(r){e=V(r,"DIV",{});var n=$(e);t=_e(n,i[6]),n.forEach(h),this.h()},h(){S(e,"bx--form__helper-text",!0),S(e,"bx--form__helper-text--disabled",i[5]),S(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&64&&Te(t,r[6]),n[0]&32&&S(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&S(e,"bx--form__helper-text--inline",r[16])},d(r){r&&h(e)}}}function Pn(i){let e,t;const r=i[28].labelText,n=ye(r,i,i[27],kn),l=n||$i(i);return{c(){e=M("label"),l&&l.c(),this.h()},l(s){e=V(s,"LABEL",{for:!0});var o=$(e);l&&l.l(o),o.forEach(h),this.h()},h(){I(e,"for",i[7]),S(e,"bx--label",!0),S(e,"bx--visually-hidden",i[10]),S(e,"bx--label--disabled",i[5]),S(e,"bx--label--inline",i[16]),S(e,"bx--label--inline-sm",i[16]&&i[2]==="sm"),S(e,"bx--label--inline-xl",i[16]&&i[2]==="xl")},m(s,o){O(s,e,o),l&&l.m(e,null),t=!0},p(s,o){n?n.p&&(!t||o[0]&134217728)&&ke(n,r,s,s[27],t?we(r,s[27],o,zi):ve(s[27]),kn):l&&l.p&&(!t||o[0]&512)&&l.p(s,t?o:[-1,-1]),(!t||o[0]&128)&&I(e,"for",s[7]),(!t||o[0]&1024)&&S(e,"bx--visually-hidden",s[10]),(!t||o[0]&32)&&S(e,"bx--label--disabled",s[5]),(!t||o[0]&65536)&&S(e,"bx--label--inline",s[16]),(!t||o[0]&65540)&&S(e,"bx--label--inline-sm",s[16]&&s[2]==="sm"),(!t||o[0]&65540)&&S(e,"bx--label--inline-xl",s[16]&&s[2]==="xl")},i(s){t||(m(l,s),t=!0)},o(s){_(l,s),t=!1},d(s){s&&h(e),l&&l.d(s)}}}function $i(i){let e;return{c(){e=ge(i[9])},l(t){e=_e(t,i[9])},m(t,r){O(t,e,r)},p(t,r){r[0]&512&&Te(e,t[9])},d(t){t&&h(e)}}}function Mi(i){let e,t,r,n=i[11]&&Tn(),l=!i[11]&&i[13]&&An();return{c(){n&&n.c(),e=se(),l&&l.c(),t=q()},l(s){n&&n.l(s),e=oe(s),l&&l.l(s),t=q()},m(s,o){n&&n.m(s,o),O(s,e,o),l&&l.m(s,o),O(s,t,o),r=!0},p(s,o){s[11]?n?o[0]&2048&&m(n,1):(n=Tn(),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(G(),_(n,1,1,()=>{n=null}),Y()),!s[11]&&s[13]?l?o[0]&10240&&m(l,1):(l=An(),l.c(),m(l,1),l.m(t.parentNode,t)):l&&(G(),_(l,1,1,()=>{l=null}),Y())},i(s){r||(m(n),m(l),r=!0)},o(s){_(n),_(l),r=!1},d(s){n&&n.d(s),s&&h(e),l&&l.d(s),s&&h(t)}}}function Vi(i){let e,t;return e=new Nr({props:{class:"bx--text-input__readonly-icon"}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},p:pe,i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Tn(i){let e,t;return e=new Ir({props:{class:"bx--text-input__invalid-icon"}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function An(i){let e,t;return e=new jr({props:{class:`bx--text-input__invalid-icon
bx--text-input__invalid-icon--warning`}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Rn(i){let e;return{c(){e=M("hr"),this.h()},l(t){e=V(t,"HR",{}),this.h()},h(){S(e,"bx--text-input__divider",!0)},m(t,r){O(t,e,r)},d(t){t&&h(e)}}}function In(i){let e,t;return{c(){e=M("div"),t=ge(i[12]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[12]),n.forEach(h),this.h()},h(){I(e,"id",i[19]),S(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&4096&&Te(t,r[12]),n[0]&524288&&I(e,"id",r[19])},d(r){r&&h(e)}}}function jn(i){let e,t;return{c(){e=M("div"),t=ge(i[14]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[14]),n.forEach(h),this.h()},h(){I(e,"id",i[18]),S(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&16384&&Te(t,r[14]),n[0]&262144&&I(e,"id",r[18])},d(r){r&&h(e)}}}function Nn(i){let e,t;return{c(){e=M("div"),t=ge(i[6]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[6]),n.forEach(h),this.h()},h(){I(e,"id",i[20]),S(e,"bx--form__helper-text",!0),S(e,"bx--form__helper-text--disabled",i[5]),S(e,"bx--form__helper-text--inline",i[16])},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&64&&Te(t,r[6]),n[0]&1048576&&I(e,"id",r[20]),n[0]&32&&S(e,"bx--form__helper-text--disabled",r[5]),n[0]&65536&&S(e,"bx--form__helper-text--inline",r[16])},d(r){r&&h(e)}}}function Ln(i){let e,t;return{c(){e=M("div"),t=ge(i[12]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[12]),n.forEach(h),this.h()},h(){I(e,"id",i[19]),S(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&4096&&Te(t,r[12]),n[0]&524288&&I(e,"id",r[19])},d(r){r&&h(e)}}}function zn(i){let e,t;return{c(){e=M("div"),t=ge(i[14]),this.h()},l(r){e=V(r,"DIV",{id:!0});var n=$(e);t=_e(n,i[14]),n.forEach(h),this.h()},h(){I(e,"id",i[18]),S(e,"bx--form-requirement",!0)},m(r,n){O(r,e,n),x(e,t)},p(r,n){n[0]&16384&&Te(t,r[14]),n[0]&262144&&I(e,"id",r[18])},d(r){r&&h(e)}}}function Ui(i){let e,t,r,n,l,s,o,f,a,u,c,d,p,g,A,j,k,b,E,w,N,R,L,fe,Q=i[16]&&wn(i),te=!i[16]&&(i[9]||i[26].labelText)&&Pn(i);const ie=[Vi,Mi],le=[];function v(P,X){return P[17]?0:1}s=v(i),o=le[s]=ie[s](i);let z=[{"data-invalid":u=i[21]||void 0},{"aria-invalid":c=i[21]||void 0},{"data-warn":d=i[13]||void 0},{"aria-describedby":p=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]],y={};for(let P=0;P<z.length;P+=1)y=Pe(y,z[P]);let T=i[22]&&Rn(),F=i[22]&&!i[16]&&i[11]&&In(i),ee=i[22]&&!i[16]&&i[13]&&jn(i),ne=!i[11]&&!i[13]&&!i[22]&&!i[16]&&i[6]&&Nn(i),Oe=!i[22]&&i[11]&&Ln(i),Se=!i[22]&&!i[11]&&i[13]&&zn(i);return{c(){e=M("div"),Q&&Q.c(),t=se(),te&&te.c(),r=se(),n=M("div"),l=M("div"),o.c(),f=se(),a=M("input"),g=se(),T&&T.c(),A=se(),F&&F.c(),j=se(),ee&&ee.c(),E=se(),ne&&ne.c(),w=se(),Oe&&Oe.c(),N=se(),Se&&Se.c(),this.h()},l(P){e=V(P,"DIV",{});var X=$(e);Q&&Q.l(X),t=oe(X),te&&te.l(X),r=oe(X),n=V(X,"DIV",{});var Ie=$(n);l=V(Ie,"DIV",{"data-invalid":!0,"data-warn":!0});var Ne=$(l);o.l(Ne),f=oe(Ne),a=V(Ne,"INPUT",{"data-invalid":!0,"aria-invalid":!0,"data-warn":!0,"aria-describedby":!0,id:!0,name:!0,placeholder:!0}),g=oe(Ne),T&&T.l(Ne),A=oe(Ne),F&&F.l(Ne),j=oe(Ne),ee&&ee.l(Ne),Ne.forEach(h),E=oe(Ie),ne&&ne.l(Ie),w=oe(Ie),Oe&&Oe.l(Ie),N=oe(Ie),Se&&Se.l(Ie),Ie.forEach(h),X.forEach(h),this.h()},h(){wt(a,y),S(a,"bx--text-input",!0),S(a,"bx--text-input--light",i[4]),S(a,"bx--text-input--invalid",i[21]),S(a,"bx--text-input--warning",i[13]),S(a,"bx--text-input--sm",i[2]==="sm"),S(a,"bx--text-input--xl",i[2]==="xl"),I(l,"data-invalid",k=i[21]||void 0),I(l,"data-warn",b=i[13]||void 0),S(l,"bx--text-input__field-wrapper",!0),S(l,"bx--text-input__field-wrapper--warning",!i[11]&&i[13]),S(n,"bx--text-input__field-outer-wrapper",!0),S(n,"bx--text-input__field-outer-wrapper--inline",i[16]),S(e,"bx--form-item",!0),S(e,"bx--text-input-wrapper",!0),S(e,"bx--text-input-wrapper--inline",i[16]),S(e,"bx--text-input-wrapper--light",i[4]),S(e,"bx--text-input-wrapper--readonly",i[17])},m(P,X){O(P,e,X),Q&&Q.m(e,null),x(e,t),te&&te.m(e,null),x(e,r),x(e,n),x(n,l),le[s].m(l,null),x(l,f),x(l,a),a.autofocus&&a.focus(),i[38](a),on(a,i[0]),x(l,g),T&&T.m(l,null),x(l,A),F&&F.m(l,null),x(l,j),ee&&ee.m(l,null),x(n,E),ne&&ne.m(n,null),x(n,w),Oe&&Oe.m(n,null),x(n,N),Se&&Se.m(n,null),R=!0,L||(fe=[me(a,"input",i[39]),me(a,"change",i[24]),me(a,"input",i[23]),me(a,"keydown",i[33]),me(a,"keyup",i[34]),me(a,"focus",i[35]),me(a,"blur",i[36]),me(a,"paste",i[37]),me(e,"click",i[29]),me(e,"mouseover",i[30]),me(e,"mouseenter",i[31]),me(e,"mouseleave",i[32])],L=!0)},p(P,X){P[16]?Q?(Q.p(P,X),X[0]&65536&&m(Q,1)):(Q=wn(P),Q.c(),m(Q,1),Q.m(e,t)):Q&&(G(),_(Q,1,1,()=>{Q=null}),Y()),!P[16]&&(P[9]||P[26].labelText)?te?(te.p(P,X),X[0]&67174912&&m(te,1)):(te=Pn(P),te.c(),m(te,1),te.m(e,r)):te&&(G(),_(te,1,1,()=>{te=null}),Y());let Ie=s;s=v(P),s===Ie?le[s].p(P,X):(G(),_(le[Ie],1,1,()=>{le[Ie]=null}),Y(),o=le[s],o?o.p(P,X):(o=le[s]=ie[s](P),o.c()),m(o,1),o.m(l,f)),wt(a,y=$e(z,[(!R||X[0]&2097152&&u!==(u=P[21]||void 0))&&{"data-invalid":u},(!R||X[0]&2097152&&c!==(c=P[21]||void 0))&&{"aria-invalid":c},(!R||X[0]&8192&&d!==(d=P[13]||void 0))&&{"data-warn":d},(!R||X[0]&3940416&&p!==(p=P[21]?P[19]:P[13]?P[18]:P[6]?P[20]:void 0))&&{"aria-describedby":p},(!R||X[0]&32)&&{disabled:P[5]},(!R||X[0]&128)&&{id:P[7]},(!R||X[0]&256)&&{name:P[8]},(!R||X[0]&8)&&{placeholder:P[3]},(!R||X[0]&32768)&&{required:P[15]},(!R||X[0]&131072)&&{readOnly:P[17]},X[0]&33554432&&P[25]])),X[0]&1&&a.value!==P[0]&&on(a,P[0]),S(a,"bx--text-input",!0),S(a,"bx--text-input--light",P[4]),S(a,"bx--text-input--invalid",P[21]),S(a,"bx--text-input--warning",P[13]),S(a,"bx--text-input--sm",P[2]==="sm"),S(a,"bx--text-input--xl",P[2]==="xl"),P[22]?T||(T=Rn(),T.c(),T.m(l,A)):T&&(T.d(1),T=null),P[22]&&!P[16]&&P[11]?F?F.p(P,X):(F=In(P),F.c(),F.m(l,j)):F&&(F.d(1),F=null),P[22]&&!P[16]&&P[13]?ee?ee.p(P,X):(ee=jn(P),ee.c(),ee.m(l,null)):ee&&(ee.d(1),ee=null),(!R||X[0]&2097152&&k!==(k=P[21]||void 0))&&I(l,"data-invalid",k),(!R||X[0]&8192&&b!==(b=P[13]||void 0))&&I(l,"data-warn",b),(!R||X[0]&10240)&&S(l,"bx--text-input__field-wrapper--warning",!P[11]&&P[13]),!P[11]&&!P[13]&&!P[22]&&!P[16]&&P[6]?ne?ne.p(P,X):(ne=Nn(P),ne.c(),ne.m(n,w)):ne&&(ne.d(1),ne=null),!P[22]&&P[11]?Oe?Oe.p(P,X):(Oe=Ln(P),Oe.c(),Oe.m(n,N)):Oe&&(Oe.d(1),Oe=null),!P[22]&&!P[11]&&P[13]?Se?Se.p(P,X):(Se=zn(P),Se.c(),Se.m(n,null)):Se&&(Se.d(1),Se=null),(!R||X[0]&65536)&&S(n,"bx--text-input__field-outer-wrapper--inline",P[16]),(!R||X[0]&65536)&&S(e,"bx--text-input-wrapper--inline",P[16]),(!R||X[0]&16)&&S(e,"bx--text-input-wrapper--light",P[4]),(!R||X[0]&131072)&&S(e,"bx--text-input-wrapper--readonly",P[17])},i(P){R||(m(Q),m(te),m(o),R=!0)},o(P){_(Q),_(te),_(o),R=!1},d(P){P&&h(e),Q&&Q.d(),te&&te.d(),le[s].d(),i[38](null),T&&T.d(),F&&F.d(),ee&&ee.d(),ne&&ne.d(),Oe&&Oe.d(),Se&&Se.d(),L=!1,Qt(fe)}}}function xi(i,e,t){let r,n,l,s,o;const f=["size","value","placeholder","light","disabled","helperText","id","name","labelText","hideLabel","invalid","invalidText","warn","warnText","ref","required","inline","readonly"];let a=Ce(e,f),{$$slots:u={},$$scope:c}=e;const d=Pr(u);let{size:p=void 0}=e,{value:g=""}=e,{placeholder:A=""}=e,{light:j=!1}=e,{disabled:k=!1}=e,{helperText:b=""}=e,{id:E="ccs-"+Math.random().toString(36)}=e,{name:w=void 0}=e,{labelText:N=""}=e,{hideLabel:R=!1}=e,{invalid:L=!1}=e,{invalidText:fe=""}=e,{warn:Q=!1}=e,{warnText:te=""}=e,{ref:ie=null}=e,{required:le=!1}=e,{inline:v=!1}=e,{readonly:z=!1}=e;const y=Tr("Form"),T=Gt();function F(D){return a.type!=="number"?D:D!=""?Number(D):null}const ee=D=>{t(0,g=F(D.target.value)),T("input",g)},ne=D=>{T("change",F(D.target.value))};function Oe(D){Ae.call(this,i,D)}function Se(D){Ae.call(this,i,D)}function P(D){Ae.call(this,i,D)}function X(D){Ae.call(this,i,D)}function Ie(D){Ae.call(this,i,D)}function Ne(D){Ae.call(this,i,D)}function Nt(D){Ae.call(this,i,D)}function Lt(D){Ae.call(this,i,D)}function zt(D){Ae.call(this,i,D)}function Ct(D){De[D?"unshift":"push"](()=>{ie=D,t(1,ie)})}function Dt(){g=this.value,t(0,g)}return i.$$set=D=>{e=Pe(Pe({},e),Me(D)),t(25,a=Ce(e,f)),"size"in D&&t(2,p=D.size),"value"in D&&t(0,g=D.value),"placeholder"in D&&t(3,A=D.placeholder),"light"in D&&t(4,j=D.light),"disabled"in D&&t(5,k=D.disabled),"helperText"in D&&t(6,b=D.helperText),"id"in D&&t(7,E=D.id),"name"in D&&t(8,w=D.name),"labelText"in D&&t(9,N=D.labelText),"hideLabel"in D&&t(10,R=D.hideLabel),"invalid"in D&&t(11,L=D.invalid),"invalidText"in D&&t(12,fe=D.invalidText),"warn"in D&&t(13,Q=D.warn),"warnText"in D&&t(14,te=D.warnText),"ref"in D&&t(1,ie=D.ref),"required"in D&&t(15,le=D.required),"inline"in D&&t(16,v=D.inline),"readonly"in D&&t(17,z=D.readonly),"$$scope"in D&&t(27,c=D.$$scope)},i.$$.update=()=>{i.$$.dirty[0]&133120&&t(21,n=L&&!z),i.$$.dirty[0]&128&&t(20,l=`helper-${E}`),i.$$.dirty[0]&128&&t(19,s=`error-${E}`),i.$$.dirty[0]&128&&t(18,o=`warn-${E}`)},t(22,r=!!y&&y.isFluid),[g,ie,p,A,j,k,b,E,w,N,R,L,fe,Q,te,le,v,z,o,s,l,n,r,ee,ne,a,d,c,u,Oe,Se,P,X,Ie,Ne,Nt,Lt,zt,Ct,Dt]}class qi extends ue{constructor(e){super(),ce(this,e,xi,Ui,de,{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 Fi=qi;var Bi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function It(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}function ba(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 Zi(){const i=console.warn;console.warn=e=>{e.includes("unknown prop")||e.includes("unexpected slot")||i(e)},Ar(()=>{console.warn=i})}function Cn(i,e,t){const r=i.slice();return r[18]=e[t],r}function Dn(i,e,t){const r=i.slice();return r[18]=e[t],r}function $n(i,e,t){const r=i.slice();return r[10]=e[t],r}function Mn(i,e,t){const r=i.slice();return r[13]=e[t],r[15]=t,r}function Vn(i,e,t){const r=i.slice();return r[16]=e[t],r[15]=t,r}function Un(i,e,t){const r=i.slice();return r[7]=e[t],r}function Hi(i){let e,t,r,n;const l=[Qi,Ki,Wi],s=[];function o(f,a){return f[0]==="table"?0:f[0]==="list"?1:2}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function Ji(i){let e,t,r=i[1],n=[];for(let s=0;s<r.length;s+=1)n[s]=Hn(Un(i,r,s));const l=s=>_(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=q()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=q()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&34){r=s[1];let f;for(f=0;f<r.length;f+=1){const a=Un(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Hn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(G(),f=r.length;f<n.length;f+=1)l(f);Y()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)_(n[o]);t=!1},d(s){He(n,s),s&&h(e)}}}function Wi(i){let e,t,r;const n=[i[6]];var l=i[5][i[0]];function s(o){let f={$$slots:{default:[Xi]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=Pe(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&H(e.$$.fragment),t=q()},l(o){e&&re(e.$$.fragment,o),t=q()},m(o,f){e&&J(e,o,f),O(o,t,f),r=!0},p(o,f){const a=f&64?$e(n,[lt(o[6])]):{};if(f&8388706&&(a.$$scope={dirty:f,ctx:o}),f&33&&l!==(l=o[5][o[0]])){if(e){G();const u=e;_(u.$$.fragment,1,0,()=>{W(u,1)}),Y()}l?(e=Ee(l,s(o)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&_(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&W(e,o)}}}function Ki(i){let e,t,r,n;const l=[tl,el],s=[];function o(f,a){return f[4]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function Qi(i){let e,t,r;var n=i[5].table;function l(s){return{props:{$$slots:{default:[dl]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&H(e.$$.fragment),t=q()},l(s){e&&re(e.$$.fragment,s),t=q()},m(s,o){e&&J(e,s,o),O(s,t,o),r=!0},p(s,o){const f={};if(o&8388716&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].table)){if(e){G();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),Y()}n?(e=Ee(n,l(s)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&_(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&W(e,s)}}}function Gi(i){let e=i[6].raw+"",t;return{c(){t=ge(e)},l(r){t=_e(r,e)},m(r,n){O(r,t,n)},p(r,n){n&64&&e!==(e=r[6].raw+"")&&Te(t,e)},i:pe,o:pe,d(r){r&&h(t)}}}function Yi(i){let e,t;return e=new Xe({props:{tokens:i[1],renderers:i[5]}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(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||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Xi(i){let e,t,r,n;const l=[Yi,Gi],s=[];function o(f,a){return f[1]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function el(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let f={$$slots:{default:[rl]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=Pe(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&H(e.$$.fragment),t=q()},l(o){e&&re(e.$$.fragment,o),t=q()},m(o,f){e&&J(e,o,f),O(o,t,f),r=!0},p(o,f){const a=f&80?$e(n,[f&16&&{ordered:o[4]},f&64&&lt(o[6])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].list)){if(e){G();const u=e;_(u.$$.fragment,1,0,()=>{W(u,1)}),Y()}l?(e=Ee(l,s(o)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&_(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&W(e,o)}}}function tl(i){let e,t,r;const n=[{ordered:i[4]},i[6]];var l=i[5].list;function s(o){let f={$$slots:{default:[ll]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=Pe(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&H(e.$$.fragment),t=q()},l(o){e&&re(e.$$.fragment,o),t=q()},m(o,f){e&&J(e,o,f),O(o,t,f),r=!0},p(o,f){const a=f&80?$e(n,[f&16&&{ordered:o[4]},f&64&&lt(o[6])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].list)){if(e){G();const u=e;_(u.$$.fragment,1,0,()=>{W(u,1)}),Y()}l?(e=Ee(l,s(o)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&_(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&W(e,o)}}}function nl(i){let e,t,r;return e=new Xe({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){H(e.$$.fragment),t=se()},l(n){re(e.$$.fragment,n),t=oe(n)},m(n,l){J(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&64&&(s.tokens=n[18].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(m(e.$$.fragment,n),r=!0)},o(n){_(e.$$.fragment,n),r=!1},d(n){W(e,n),n&&h(t)}}}function xn(i){let e,t,r;const n=[i[18]];var l=i[5].unorderedlistitem||i[5].listitem;function s(o){let f={$$slots:{default:[nl]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=Pe(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&H(e.$$.fragment),t=q()},l(o){e&&re(e.$$.fragment,o),t=q()},m(o,f){e&&J(e,o,f),O(o,t,f),r=!0},p(o,f){const a=f&64?$e(n,[lt(o[18])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].unorderedlistitem||o[5].listitem)){if(e){G();const u=e;_(u.$$.fragment,1,0,()=>{W(u,1)}),Y()}l?(e=Ee(l,s(o)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&_(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&W(e,o)}}}function rl(i){let e,t,r=i[6].items,n=[];for(let s=0;s<r.length;s+=1)n[s]=xn(Cn(i,r,s));const l=s=>_(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=q()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=q()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&96){r=s[6].items;let f;for(f=0;f<r.length;f+=1){const a=Cn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=xn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(G(),f=r.length;f<n.length;f+=1)l(f);Y()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)_(n[o]);t=!1},d(s){He(n,s),s&&h(e)}}}function il(i){let e,t,r;return e=new Xe({props:{tokens:i[18].tokens,renderers:i[5]}}),{c(){H(e.$$.fragment),t=se()},l(n){re(e.$$.fragment,n),t=oe(n)},m(n,l){J(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&64&&(s.tokens=n[18].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(m(e.$$.fragment,n),r=!0)},o(n){_(e.$$.fragment,n),r=!1},d(n){W(e,n),n&&h(t)}}}function qn(i){let e,t,r;const n=[i[18]];var l=i[5].orderedlistitem||i[5].listitem;function s(o){let f={$$slots:{default:[il]},$$scope:{ctx:o}};for(let a=0;a<n.length;a+=1)f=Pe(f,n[a]);return{props:f}}return l&&(e=Ee(l,s(i))),{c(){e&&H(e.$$.fragment),t=q()},l(o){e&&re(e.$$.fragment,o),t=q()},m(o,f){e&&J(e,o,f),O(o,t,f),r=!0},p(o,f){const a=f&64?$e(n,[lt(o[18])]):{};if(f&8388704&&(a.$$scope={dirty:f,ctx:o}),f&32&&l!==(l=o[5].orderedlistitem||o[5].listitem)){if(e){G();const u=e;_(u.$$.fragment,1,0,()=>{W(u,1)}),Y()}l?(e=Ee(l,s(o)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else l&&e.$set(a)},i(o){r||(e&&m(e.$$.fragment,o),r=!0)},o(o){e&&_(e.$$.fragment,o),r=!1},d(o){o&&h(t),e&&W(e,o)}}}function ll(i){let e,t,r=i[6].items,n=[];for(let s=0;s<r.length;s+=1)n[s]=qn(Dn(i,r,s));const l=s=>_(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=q()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=q()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&96){r=s[6].items;let f;for(f=0;f<r.length;f+=1){const a=Dn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=qn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(G(),f=r.length;f<n.length;f+=1)l(f);Y()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)_(n[o]);t=!1},d(s){He(n,s),s&&h(e)}}}function sl(i){let e,t,r;return e=new Xe({props:{tokens:i[16].tokens,renderers:i[5]}}),{c(){H(e.$$.fragment),t=se()},l(n){re(e.$$.fragment,n),t=oe(n)},m(n,l){J(e,n,l),O(n,t,l),r=!0},p(n,l){const s={};l&4&&(s.tokens=n[16].tokens),l&32&&(s.renderers=n[5]),e.$set(s)},i(n){r||(m(e.$$.fragment,n),r=!0)},o(n){_(e.$$.fragment,n),r=!1},d(n){W(e,n),n&&h(t)}}}function Fn(i){let e,t,r;var n=i[5].tablecell;function l(s){return{props:{header:!0,align:s[6].align[s[15]]||"center",$$slots:{default:[sl]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&H(e.$$.fragment),t=q()},l(s){e&&re(e.$$.fragment,s),t=q()},m(s,o){e&&J(e,s,o),O(s,t,o),r=!0},p(s,o){const f={};if(o&64&&(f.align=s[6].align[s[15]]||"center"),o&8388644&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){G();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),Y()}n?(e=Ee(n,l(s)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&_(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&W(e,s)}}}function ol(i){let e,t,r=i[2],n=[];for(let s=0;s<r.length;s+=1)n[s]=Fn(Vn(i,r,s));const l=s=>_(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=q()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=q()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&100){r=s[2];let f;for(f=0;f<r.length;f+=1){const a=Vn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Fn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(G(),f=r.length;f<n.length;f+=1)l(f);Y()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)_(n[o]);t=!1},d(s){He(n,s),s&&h(e)}}}function fl(i){let e,t,r;var n=i[5].tablerow;function l(s){return{props:{$$slots:{default:[ol]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&H(e.$$.fragment),t=q()},l(s){e&&re(e.$$.fragment,s),t=q()},m(s,o){e&&J(e,s,o),O(s,t,o),r=!0},p(s,o){const f={};if(o&8388708&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablerow)){if(e){G();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),Y()}n?(e=Ee(n,l(s)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&_(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&W(e,s)}}}function al(i){let e,t;return e=new Xe({props:{tokens:i[13].tokens,renderers:i[5]}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(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||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Bn(i){let e,t,r;var n=i[5].tablecell;function l(s){return{props:{header:!1,align:s[6].align[s[15]]||"center",$$slots:{default:[al]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&H(e.$$.fragment),t=q()},l(s){e&&re(e.$$.fragment,s),t=q()},m(s,o){e&&J(e,s,o),O(s,t,o),r=!0},p(s,o){const f={};if(o&64&&(f.align=s[6].align[s[15]]||"center"),o&8388648&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablecell)){if(e){G();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),Y()}n?(e=Ee(n,l(s)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&_(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&W(e,s)}}}function ul(i){let e,t,r=i[10],n=[];for(let s=0;s<r.length;s+=1)n[s]=Bn(Mn(i,r,s));const l=s=>_(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=se()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=oe(s)},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&104){r=s[10];let f;for(f=0;f<r.length;f+=1){const a=Mn(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Bn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(G(),f=r.length;f<n.length;f+=1)l(f);Y()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)_(n[o]);t=!1},d(s){He(n,s),s&&h(e)}}}function Zn(i){let e,t,r;var n=i[5].tablerow;function l(s){return{props:{$$slots:{default:[ul]},$$scope:{ctx:s}}}}return n&&(e=Ee(n,l(i))),{c(){e&&H(e.$$.fragment),t=q()},l(s){e&&re(e.$$.fragment,s),t=q()},m(s,o){e&&J(e,s,o),O(s,t,o),r=!0},p(s,o){const f={};if(o&8388712&&(f.$$scope={dirty:o,ctx:s}),o&32&&n!==(n=s[5].tablerow)){if(e){G();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),Y()}n?(e=Ee(n,l(s)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else n&&e.$set(f)},i(s){r||(e&&m(e.$$.fragment,s),r=!0)},o(s){e&&_(e.$$.fragment,s),r=!1},d(s){s&&h(t),e&&W(e,s)}}}function cl(i){let e,t,r=i[3],n=[];for(let s=0;s<r.length;s+=1)n[s]=Zn($n(i,r,s));const l=s=>_(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s<n.length;s+=1)n[s].c();e=q()},l(s){for(let o=0;o<n.length;o+=1)n[o].l(s);e=q()},m(s,o){for(let f=0;f<n.length;f+=1)n[f]&&n[f].m(s,o);O(s,e,o),t=!0},p(s,o){if(o&104){r=s[3];let f;for(f=0;f<r.length;f+=1){const a=$n(s,r,f);n[f]?(n[f].p(a,o),m(n[f],1)):(n[f]=Zn(a),n[f].c(),m(n[f],1),n[f].m(e.parentNode,e))}for(G(),f=r.length;f<n.length;f+=1)l(f);Y()}},i(s){if(!t){for(let o=0;o<r.length;o+=1)m(n[o]);t=!0}},o(s){n=n.filter(Boolean);for(let o=0;o<n.length;o+=1)_(n[o]);t=!1},d(s){He(n,s),s&&h(e)}}}function dl(i){let e,t,r,n,l;var s=i[5].tablehead;function o(u){return{props:{$$slots:{default:[fl]},$$scope:{ctx:u}}}}s&&(e=Ee(s,o(i)));var f=i[5].tablebody;function a(u){return{props:{$$slots:{default:[cl]},$$scope:{ctx:u}}}}return f&&(r=Ee(f,a(i))),{c(){e&&H(e.$$.fragment),t=se(),r&&H(r.$$.fragment),n=q()},l(u){e&&re(e.$$.fragment,u),t=oe(u),r&&re(r.$$.fragment,u),n=q()},m(u,c){e&&J(e,u,c),O(u,t,c),r&&J(r,u,c),O(u,n,c),l=!0},p(u,c){const d={};if(c&8388708&&(d.$$scope={dirty:c,ctx:u}),c&32&&s!==(s=u[5].tablehead)){if(e){G();const g=e;_(g.$$.fragment,1,0,()=>{W(g,1)}),Y()}s?(e=Ee(s,o(u)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,t.parentNode,t)):e=null}else s&&e.$set(d);const p={};if(c&8388712&&(p.$$scope={dirty:c,ctx:u}),c&32&&f!==(f=u[5].tablebody)){if(r){G();const g=r;_(g.$$.fragment,1,0,()=>{W(g,1)}),Y()}f?(r=Ee(f,a(u)),H(r.$$.fragment),m(r.$$.fragment,1),J(r,n.parentNode,n)):r=null}else f&&r.$set(p)},i(u){l||(e&&m(e.$$.fragment,u),r&&m(r.$$.fragment,u),l=!0)},o(u){e&&_(e.$$.fragment,u),r&&_(r.$$.fragment,u),l=!1},d(u){e&&W(e,u),u&&h(t),u&&h(n),r&&W(r,u)}}}function Hn(i){let e,t;const r=[i[7],{renderers:i[5]}];let n={};for(let l=0;l<r.length;l+=1)n=Pe(n,r[l]);return e=new Xe({props:n}),{c(){H(e.$$.fragment)},l(l){re(e.$$.fragment,l)},m(l,s){J(e,l,s),t=!0},p(l,s){const o=s&34?$e(r,[s&2&&lt(l[7]),s&32&&{renderers:l[5]}]):{};e.$set(o)},i(l){t||(m(e.$$.fragment,l),t=!0)},o(l){_(e.$$.fragment,l),t=!1},d(l){W(e,l)}}}function hl(i){let e,t,r,n;const l=[Ji,Hi],s=[];function o(f,a){return f[0]?f[5][f[0]]?1:-1:0}return~(e=o(i))&&(t=s[e]=l[e](i)),{c(){t&&t.c(),r=q()},l(f){t&&t.l(f),r=q()},m(f,a){~e&&s[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?~e&&s[e].p(f,a):(t&&(G(),_(s[u],1,1,()=>{s[u]=null}),Y()),~e?(t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r)):t=null)},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){~e&&s[e].d(f),f&&h(r)}}}function pl(i,e,t){const r=["type","tokens","header","rows","ordered","renderers"];let n=Ce(e,r),{type:l=void 0}=e,{tokens:s=void 0}=e,{header:o=void 0}=e,{rows:f=void 0}=e,{ordered:a=!1}=e,{renderers:u}=e;return Zi(),i.$$set=c=>{e=Pe(Pe({},e),Me(c)),t(6,n=Ce(e,r)),"type"in c&&t(0,l=c.type),"tokens"in c&&t(1,s=c.tokens),"header"in c&&t(2,o=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,s,o,f,a,u,n]}let Xe=class extends ue{constructor(e){super(),ce(this,e,pl,hl,de,{type:0,tokens:1,header:2,rows:3,ordered:4,renderers:5})}};function Lr(){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 et=Lr();function ml(i){et=i}const zr=/[&<>"']/,gl=new RegExp(zr.source,"g"),Cr=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,_l=new RegExp(Cr.source,"g"),bl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jn=i=>bl[i];function je(i,e){if(e){if(zr.test(i))return i.replace(gl,Jn)}else if(Cr.test(i))return i.replace(_l,Jn);return i}const El=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function Dr(i){return i.replace(El,(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 yl=/(^|[^\[])\^/g;function be(i,e){i=typeof i=="string"?i:i.source,e=e||"";const t={replace:(r,n)=>(n=n.source||n,n=n.replace(yl,"$1"),i=i.replace(r,n),t),getRegex:()=>new RegExp(i,e)};return t}const kl=/[^\w:]/g,vl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Wn(i,e,t){if(i){let r;try{r=decodeURIComponent(Dr(t)).replace(kl,"").toLowerCase()}catch{return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0)return null}e&&!vl.test(t)&&(t=Pl(e,t));try{t=encodeURI(t).replace(/%25/g,"%")}catch{return null}return t}const gt={},wl=/^[^:]+:\/*[^/]*$/,Ol=/^([^:]+:)[\s\S]*$/,Sl=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Pl(i,e){gt[" "+i]||(wl.test(i)?gt[" "+i]=i+"/":gt[" "+i]=kt(i,"/",!0)),i=gt[" "+i];const t=i.indexOf(":")===-1;return e.substring(0,2)==="//"?t?e:i.replace(Ol,"$1")+e:e.charAt(0)==="/"?t?e:i.replace(Sl,"$1")+e:i+e}const Ot={exec:function(){}};function Kn(i,e){const t=i.replace(/\|/g,(l,s,o)=>{let f=!1,a=s;for(;--a>=0&&o[a]==="\\";)f=!f;return f?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function kt(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const l=i.charAt(r-n-1);if(l===e&&!t)n++;else if(l!==e&&t)n++;else break}return i.slice(0,r-n)}function Tl(i,e){if(i.indexOf(e[1])===-1)return-1;const t=i.length;let r=0,n=0;for(;n<t;n++)if(i[n]==="\\")n++;else if(i[n]===e[0])r++;else if(i[n]===e[1]&&(r--,r<0))return n;return-1}function Al(i){i&&i.sanitize&&!i.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function Qn(i,e){if(e<1)return"";let t="";for(;e>1;)e&1&&(t+=i),e>>=1,i+=i;return t+i}function Gn(i,e,t,r){const n=e.href,l=e.title?je(e.title):null,s=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const o={type:"link",raw:t,href:n,title:l,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,o}return{type:"image",raw:t,href:n,title:l,text:je(s)}}function Rl(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[s]=l;return s.length>=r.length?n.slice(r.length):n}).join(`
`)}class Yt{constructor(e){this.options=e||et}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:kt(r,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Rl(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=kt(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,s,o,f,a,u,c,d,p,g,A=t[1].trim();const j=A.length>1,k={type:"list",raw:"",ordered:j,start:j?+A.slice(0,-1):"",loose:!1,items:[]};A=j?`\\d{1,9}\\${A.slice(-1)}`:`\\${A}`,this.options.pedantic&&(A=j?A:"[*+-]");const b=new RegExp(`^( {0,3}${A})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;e&&(g=!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+/,w=>" ".repeat(3*w.length)),c=e.split(`
`,1)[0],this.options.pedantic?(s=2,p=u.trimLeft()):(s=t[2].search(/[^ ]/),s=s>4?1:s,p=u.slice(s),s+=t[1].length),f=!1,!u&&/^ *$/.test(c)&&(r+=c+`
`,e=e.substring(c.length+1),g=!0),!g){const w=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),N=new RegExp(`^ {0,${Math.min(3,s-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),R=new RegExp(`^ {0,${Math.min(3,s-1)}}(?:\`\`\`|~~~)`),L=new RegExp(`^ {0,${Math.min(3,s-1)}}#`);for(;e&&(d=e.split(`
`,1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(R.test(c)||L.test(c)||w.test(c)||N.test(e)));){if(c.search(/[^ ]/)>=s||!c.trim())p+=`
`+c.slice(s);else{if(f||u.search(/[^ ]/)>=4||R.test(u)||L.test(u)||N.test(u))break;p+=`
`+c}!f&&!c.trim()&&(f=!0),r+=d+`
`,e=e.substring(d.length+1),u=c.slice(s)}}k.loose||(a?k.loose=!0:/\n *\n *$/.test(r)&&(a=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(p),n&&(l=n[0]!=="[ ] ",p=p.replace(/^\[[ xX]\] +/,""))),k.items.push({type:"list_item",raw:r,task:!!n,checked:l,loose:!1,text:p}),k.raw+=r}k.items[k.items.length-1].raw=r.trimRight(),k.items[k.items.length-1].text=p.trimRight(),k.raw=k.raw.trimRight();const E=k.items.length;for(o=0;o<E;o++)if(this.lexer.state.top=!1,k.items[o].tokens=this.lexer.blockTokens(k.items[o].text,[]),!k.loose){const w=k.items[o].tokens.filter(R=>R.type==="space"),N=w.length>0&&w.some(R=>/\n.*\n/.test(R.raw));k.loose=N}if(k.loose)for(o=0;o<E;o++)k.items[o].loose=!0;return k}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):je(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",l=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:l}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:Kn(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,s,o,f;for(l=0;l<n;l++)/^ *-+: *$/.test(r.align[l])?r.align[l]="right":/^ *:-+: *$/.test(r.align[l])?r.align[l]="center":/^ *:-+ *$/.test(r.align[l])?r.align[l]="left":r.align[l]=null;for(n=r.rows.length,l=0;l<n;l++)r.rows[l]=Kn(r.rows[l],r.header.length).map(a=>({text:a}));for(n=r.header.length,s=0;s<n;s++)r.header[s].tokens=this.lexer.inline(r.header[s].text);for(n=r.rows.length,s=0;s<n;s++)for(f=r.rows[s],o=0;o<f.length;o++)f[o].tokens=this.lexer.inline(f[o].text);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:je(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):je(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const s=kt(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{const s=Tl(t[2],"()");if(s>-1){const f=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,f).trim(),t[3]=""}}let n=t[2],l="";if(this.options.pedantic){const s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);s&&(n=s[1],l=s[3])}else l=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),Gn(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 Gn(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 s=n[0].length-1;let o,f,a=s,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+s);(n=c.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(f=o.length,n[3]||n[4]){a+=f;continue}else if((n[5]||n[6])&&s%3&&!((s+f)%3)){u+=f;continue}if(a-=f,a>0)continue;f=Math.min(f,f+a+u);const d=e.slice(0,s+n.index+(n[0].length-o.length)+f);if(Math.min(s,f)%2){const g=d.slice(1,-1);return{type:"em",raw:d,text:g,tokens:this.lexer.inlineTokens(g)}}const p=d.slice(2,-2);return{type:"strong",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}}}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=je(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=je(this.options.mangle?t(r[1]):r[1]),l="mailto:"+n):(n=je(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=je(this.options.mangle?t(r[0]):r[0]),l="mailto:"+n;else{let s;do s=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(s!==r[0]);n=je(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]):je(r[0]):r[0]:n=je(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const Z={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Ot,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};Z._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;Z._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Z.def=be(Z.def).replace("label",Z._label).replace("title",Z._title).getRegex();Z.bullet=/(?:[*+-]|\d{1,9}[.)])/;Z.listItemStart=be(/^( *)(bull) */).replace("bull",Z.bullet).getRegex();Z.list=be(Z.list).replace(/bull/g,Z.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Z.def.source+")").getRegex();Z._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";Z._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;Z.html=be(Z.html,"i").replace("comment",Z._comment).replace("tag",Z._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Z.paragraph=be(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex();Z.blockquote=be(Z.blockquote).replace("paragraph",Z.paragraph).getRegex();Z.normal={...Z};Z.gfm={...Z.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};Z.gfm.table=be(Z.gfm.table).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex();Z.gfm.paragraph=be(Z._paragraph).replace("hr",Z.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Z.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Z._tag).getRegex();Z.pedantic={...Z.normal,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Z._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ot,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Z.normal._paragraph).replace("hr",Z.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Z.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const U={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ot,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ot,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};U._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";U.punctuation=be(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex();U.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;U.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;U._comment=be(Z._comment).replace("(?:-->|$)","-->").getRegex();U.emStrong.lDelim=be(U.emStrong.lDelim).replace(/punct/g,U._punctuation).getRegex();U.emStrong.rDelimAst=be(U.emStrong.rDelimAst,"g").replace(/punct/g,U._punctuation).getRegex();U.emStrong.rDelimUnd=be(U.emStrong.rDelimUnd,"g").replace(/punct/g,U._punctuation).getRegex();U._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;U._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])?)+(?![-_])/;U.autolink=be(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex();U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;U.tag=be(U.tag).replace("comment",U._comment).replace("attribute",U._attribute).getRegex();U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;U._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;U.link=be(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex();U.reflink=be(U.reflink).replace("label",U._label).replace("ref",Z._label).getRegex();U.nolink=be(U.nolink).replace("ref",Z._label).getRegex();U.reflinkSearch=be(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex();U.normal={...U};U.pedantic={...U.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:be(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()};U.gfm={...U.normal,escape:be(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};U.gfm.url=be(U.gfm.url,"i").replace("email",U.gfm._extended_email).getRegex();U.breaks={...U.gfm,br:be(U.br).replace("{2,}","*").getRegex(),text:be(U.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function Il(i){return i.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Yn(i){let e="",t,r;const n=i.length;for(t=0;t<n;t++)r=i.charCodeAt(t),Math.random()>.5&&(r="x"+r.toString(16)),e+="&#"+r+";";return e}class Ze{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||et,this.options.tokenizer=this.options.tokenizer||new Yt,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:Z.normal,inline:U.normal};this.options.pedantic?(t.block=Z.pedantic,t.inline=U.pedantic):this.options.gfm&&(t.block=Z.gfm,this.options.breaks?t.inline=U.breaks:t.inline=U.gfm),this.tokenizer.rules=t}static get rules(){return{block:Z,inline:U}}static lex(e,t){return new Ze(t).lex(e)}static lexInline(e,t){return new Ze(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,(o,f,a)=>f+" ".repeat(a.length));let r,n,l,s;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.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 o=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&&(o=Math.min(o,a))}),o<1/0&&o>=0&&(l=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(l))){n=t[t.length-1],s&&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),s=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 o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}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,s=e,o,f,a;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(s))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,o.index)+"["+Qn("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(s))!=null;)s=s.slice(0,o.index)+"["+Qn("a",o[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(s))!=null;)s=s.slice(0,o.index+o[0].length-2)+"++"+s.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,s,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,Yn)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,Yn))){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(p){d=p.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,Il)){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 Xt{constructor(e){this.options=e||et}code(e,t,r){const n=(t||"").match(/\S*/)[0];if(this.options.highlight){const l=this.options.highlight(e,n);l!=null&&l!==e&&(r=!0,e=l)}return e=e.replace(/\n$/,"")+`
`,n?'<pre><code class="'+this.options.langPrefix+je(n)+'">'+(r?e:je(e,!0))+`</code></pre>
`:"<pre><code>"+(r?e:je(e,!0))+`</code></pre>
`}blockquote(e){return`<blockquote>
${e}</blockquote>
`}html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const l=this.options.headerPrefix+n.slug(r);return`<h${t} id="${l}">${e}</h${t}>
`}return`<h${t}>${e}</h${t}>
`}hr(){return this.options.xhtml?`<hr/>
`:`<hr>
`}list(e,t,r){const n=t?"ol":"ul",l=t&&r!==1?' start="'+r+'"':"";return"<"+n+l+`>
`+e+"</"+n+`>
`}listitem(e){return`<li>${e}</li>
`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),`<table>
<thead>
`+e+`</thead>
`+t+`</table>
`}tablerow(e){return`<tr>
${e}</tr>
`}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){if(e=Wn(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n='<a href="'+e+'"';return t&&(n+=' title="'+t+'"'),n+=">"+r+"</a>",n}image(e,t,r){if(e=Wn(this.options.sanitize,this.options.baseUrl,e),e===null)return r;let n=`<img src="${e}" alt="${r}"`;return t&&(n+=` title="${t}"`),n+=this.options.xhtml?"/>":">",n}text(e){return e}}class $r{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 en{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 ht=class qt{constructor(e){this.options=e||et,this.options.renderer=this.options.renderer||new Xt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new $r,this.slugger=new en}static parse(e,t){return new qt(t).parse(e)}static parseInline(e,t){return new qt(t).parseInline(e)}parse(e,t=!0){let r="",n,l,s,o,f,a,u,c,d,p,g,A,j,k,b,E,w,N,R;const L=e.length;for(n=0;n<L;n++){if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(R=this.options.extensions.renderers[p.type].call({parser:this},p),R!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type))){r+=R||"";continue}switch(p.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{r+=this.renderer.heading(this.parseInline(p.tokens),p.depth,Dr(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue}case"code":{r+=this.renderer.code(p.text,p.lang,p.escaped);continue}case"table":{for(c="",u="",o=p.header.length,l=0;l<o;l++)u+=this.renderer.tablecell(this.parseInline(p.header[l].tokens),{header:!0,align:p.align[l]});for(c+=this.renderer.tablerow(u),d="",o=p.rows.length,l=0;l<o;l++){for(a=p.rows[l],u="",f=a.length,s=0;s<f;s++)u+=this.renderer.tablecell(this.parseInline(a[s].tokens),{header:!1,align:p.align[s]});d+=this.renderer.tablerow(u)}r+=this.renderer.table(c,d);continue}case"blockquote":{d=this.parse(p.tokens),r+=this.renderer.blockquote(d);continue}case"list":{for(g=p.ordered,A=p.start,j=p.loose,o=p.items.length,d="",l=0;l<o;l++)b=p.items[l],E=b.checked,w=b.task,k="",b.task&&(N=this.renderer.checkbox(E),j?b.tokens.length>0&&b.tokens[0].type==="paragraph"?(b.tokens[0].text=N+" "+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=N+" "+b.tokens[0].tokens[0].text)):b.tokens.unshift({type:"text",text:N}):k+=N),k+=this.parse(b.tokens,j),d+=this.renderer.listitem(k,w,E);r+=this.renderer.list(d,g,A);continue}case"html":{r+=this.renderer.html(p.text);continue}case"paragraph":{r+=this.renderer.paragraph(this.parseInline(p.tokens));continue}case"text":{for(d=p.tokens?this.parseInline(p.tokens):p.text;n+1<L&&e[n+1].type==="text";)p=e[++n],d+=`
`+(p.tokens?this.parseInline(p.tokens):p.text);r+=t?this.renderer.paragraph(d):d;continue}default:{const fe='Token with "'+p.type+'" type was not found.';if(this.options.silent){console.error(fe);return}else throw new Error(fe)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",n,l,s;const o=e.length;for(n=0;n<o;n++){if(l=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[l.type]&&(s=this.options.extensions.renderers[l.type].call({parser:this},l),s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type))){r+=s||"";continue}switch(l.type){case"escape":{r+=t.text(l.text);break}case"html":{r+=t.html(l.text);break}case"link":{r+=t.link(l.href,l.title,this.parseInline(l.tokens,t));break}case"image":{r+=t.image(l.href,l.title,l.text);break}case"strong":{r+=t.strong(this.parseInline(l.tokens,t));break}case"em":{r+=t.em(this.parseInline(l.tokens,t));break}case"codespan":{r+=t.codespan(l.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(l.tokens,t));break}case"text":{r+=t.text(l.text);break}default:{const f='Token with "'+l.type+'" type was not found.';if(this.options.silent){console.error(f);return}else throw new Error(f)}}}return r}};class St{constructor(e){this.options=e||et}preprocess(e){return e}postprocess(e){return e}}sn(St,"passThroughHooks",new Set(["preprocess","postprocess"]));function jl(i,e,t){return r=>{if(r.message+=`
Please report this to https://github.com/markedjs/marked.`,i){const n="<p>An error occurred:</p><pre>"+je(r.message+"",!0)+"</pre>";if(e)return Promise.resolve(n);if(t){t(null,n);return}return n}if(e)return Promise.reject(r);if(t){t(r);return}throw r}}function Mr(i,e){return(t,r,n)=>{typeof r=="function"&&(n=r,r=null);const l={...r};r={...K.defaults,...l};const s=jl(r.silent,r.async,n);if(typeof t>"u"||t===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(Al(r),r.hooks&&(r.hooks.options=r),n){const o=r.highlight;let f;try{r.hooks&&(t=r.hooks.preprocess(t)),f=i(t,r)}catch(c){return s(c)}const a=function(c){let d;if(!c)try{r.walkTokens&&K.walkTokens(f,r.walkTokens),d=e(f,r),r.hooks&&(d=r.hooks.postprocess(d))}catch(p){c=p}return r.highlight=o,c?s(c):n(null,d)};if(!o||o.length<3||(delete r.highlight,!f.length))return a();let u=0;K.walkTokens(f,function(c){c.type==="code"&&(u++,setTimeout(()=>{o(c.text,c.lang,function(d,p){if(d)return a(d);p!=null&&p!==c.text&&(c.text=p,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(o=>i(o,r)).then(o=>r.walkTokens?Promise.all(K.walkTokens(o,r.walkTokens)).then(()=>o):o).then(o=>e(o,r)).then(o=>r.hooks?r.hooks.postprocess(o):o).catch(s);try{r.hooks&&(t=r.hooks.preprocess(t));const o=i(t,r);r.walkTokens&&K.walkTokens(o,r.walkTokens);let f=e(o,r);return r.hooks&&(f=r.hooks.postprocess(f)),f}catch(o){return s(o)}}}function K(i,e,t){return Mr(Ze.lex,ht.parse)(i,e,t)}K.options=K.setOptions=function(i){return K.defaults={...K.defaults,...i},ml(K.defaults),K};K.getDefaults=Lr;K.defaults=et;K.use=function(...i){const e=K.defaults.extensions||{renderers:{},childTokens:{}};i.forEach(t=>{const r={...t};if(r.async=K.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(...s){let o=n.renderer.apply(this,s);return o===!1&&(o=l.apply(this,s)),o}: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=K.defaults.renderer||new Xt;for(const l in t.renderer){const s=n[l];n[l]=(...o)=>{let f=t.renderer[l].apply(n,o);return f===!1&&(f=s.apply(n,o)),f}}r.renderer=n}if(t.tokenizer){const n=K.defaults.tokenizer||new Yt;for(const l in t.tokenizer){const s=n[l];n[l]=(...o)=>{let f=t.tokenizer[l].apply(n,o);return f===!1&&(f=s.apply(n,o)),f}}r.tokenizer=n}if(t.hooks){const n=K.defaults.hooks||new St;for(const l in t.hooks){const s=n[l];St.passThroughHooks.has(l)?n[l]=o=>{if(K.defaults.async)return Promise.resolve(t.hooks[l].call(n,o)).then(a=>s.call(n,a));const f=t.hooks[l].call(n,o);return s.call(n,f)}:n[l]=(...o)=>{let f=t.hooks[l].apply(n,o);return f===!1&&(f=s.apply(n,o)),f}}r.hooks=n}if(t.walkTokens){const n=K.defaults.walkTokens;r.walkTokens=function(l){let s=[];return s.push(t.walkTokens.call(this,l)),n&&(s=s.concat(n.call(this,l))),s}}K.setOptions(r)})};K.walkTokens=function(i,e){let t=[];for(const r of i)switch(t=t.concat(e.call(K,r)),r.type){case"table":{for(const n of r.header)t=t.concat(K.walkTokens(n.tokens,e));for(const n of r.rows)for(const l of n)t=t.concat(K.walkTokens(l.tokens,e));break}case"list":{t=t.concat(K.walkTokens(r.items,e));break}default:K.defaults.extensions&&K.defaults.extensions.childTokens&&K.defaults.extensions.childTokens[r.type]?K.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat(K.walkTokens(r[n],e))}):r.tokens&&(t=t.concat(K.walkTokens(r.tokens,e)))}return t};K.parseInline=Mr(Ze.lexInline,ht.parseInline);K.Parser=ht;K.parser=ht.parse;K.Renderer=Xt;K.TextRenderer=$r;K.Lexer=Ze;K.lexer=Ze.lex;K.Tokenizer=Yt;K.Slugger=en;K.Hooks=St;K.parse=K;K.options;K.setOptions;K.use;K.walkTokens;K.parseInline;ht.parse;Ze.lex;const Vr={};function Nl(i){let e;return{c(){e=ge(i[1])},l(t){e=_e(t,i[1])},m(t,r){O(t,e,r)},p(t,r){r&2&&Te(e,t[1])},i:pe,o:pe,d(t){t&&h(e)}}}function Ll(i){let e,t;const r=i[5].default,n=ye(r,i,i[4],null);return{c(){e=M("h6"),n&&n.c(),this.h()},l(l){e=V(l,"H6",{id:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ke(n,r,l,l[4],t?we(r,l[4],s,null):ve(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function zl(i){let e,t;const r=i[5].default,n=ye(r,i,i[4],null);return{c(){e=M("h5"),n&&n.c(),this.h()},l(l){e=V(l,"H5",{id:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ke(n,r,l,l[4],t?we(r,l[4],s,null):ve(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Cl(i){let e,t;const r=i[5].default,n=ye(r,i,i[4],null);return{c(){e=M("h4"),n&&n.c(),this.h()},l(l){e=V(l,"H4",{id:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ke(n,r,l,l[4],t?we(r,l[4],s,null):ve(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Dl(i){let e,t;const r=i[5].default,n=ye(r,i,i[4],null);return{c(){e=M("h3"),n&&n.c(),this.h()},l(l){e=V(l,"H3",{id:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ke(n,r,l,l[4],t?we(r,l[4],s,null):ve(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function $l(i){let e,t;const r=i[5].default,n=ye(r,i,i[4],null);return{c(){e=M("h2"),n&&n.c(),this.h()},l(l){e=V(l,"H2",{id:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ke(n,r,l,l[4],t?we(r,l[4],s,null):ve(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Ml(i){let e,t;const r=i[5].default,n=ye(r,i,i[4],null);return{c(){e=M("h1"),n&&n.c(),this.h()},l(l){e=V(l,"H1",{id:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"id",i[2])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&16)&&ke(n,r,l,l[4],t?we(r,l[4],s,null):ve(l[4]),null),(!t||s&4)&&I(e,"id",l[2])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Vl(i){let e,t,r,n;const l=[Ml,$l,Dl,Cl,zl,Ll,Nl],s=[];function o(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=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function Ul(i,e,t){let r,{$$slots:n={},$$scope:l}=e,{depth:s}=e,{raw:o}=e,{text:f}=e;const{slug:a,getOptions:u}=Tr(Vr),c=u();return i.$$set=d=>{"depth"in d&&t(0,s=d.depth),"raw"in d&&t(1,o=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)},[s,o,r,f,l,n]}class xl extends ue{constructor(e){super(),ce(this,e,Ul,Vl,de,{depth:0,raw:1,text:3})}}function ql(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("p"),n&&n.c()},l(l){e=V(l,"P",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Fl(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Bl extends ue{constructor(e){super(),ce(this,e,Fl,ql,de,{})}}function Zl(i){let e;const t=i[3].default,r=ye(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)&&ke(r,t,n,n[2],e?we(t,n[2],l,null):ve(n[2]),null)},i(n){e||(m(r,n),e=!0)},o(n){_(r,n),e=!1},d(n){r&&r.d(n)}}}function Hl(i,e,t){let{$$slots:r={},$$scope:n}=e,{text:l}=e,{raw:s}=e;return i.$$set=o=>{"text"in o&&t(0,l=o.text),"raw"in o&&t(1,s=o.raw),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Jl extends ue{constructor(e){super(),ce(this,e,Hl,Zl,de,{text:0,raw:1})}}function Wl(i){let e,t;return{c(){e=M("img"),this.h()},l(r){e=V(r,"IMG",{src:!0,title:!0,alt:!0}),this.h()},h(){fn(e.src,t=i[0])||I(e,"src",t),I(e,"title",i[1]),I(e,"alt",i[2])},m(r,n){O(r,e,n)},p(r,[n]){n&1&&!fn(e.src,t=r[0])&&I(e,"src",t),n&2&&I(e,"title",r[1]),n&4&&I(e,"alt",r[2])},i:pe,o:pe,d(r){r&&h(e)}}}function Kl(i,e,t){let{href:r=""}=e,{title:n=void 0}=e,{text:l=""}=e;return i.$$set=s=>{"href"in s&&t(0,r=s.href),"title"in s&&t(1,n=s.title),"text"in s&&t(2,l=s.text)},[r,n,l]}class Ql extends ue{constructor(e){super(),ce(this,e,Kl,Wl,de,{href:0,title:1,text:2})}}function Gl(i){let e,t;const r=i[3].default,n=ye(r,i,i[2],null);return{c(){e=M("a"),n&&n.c(),this.h()},l(l){e=V(l,"A",{href:!0,title:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"href",i[0]),I(e,"title",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&4)&&ke(n,r,l,l[2],t?we(r,l[2],s,null):ve(l[2]),null),(!t||s&1)&&I(e,"href",l[0]),(!t||s&2)&&I(e,"title",l[1])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Yl(i,e,t){let{$$slots:r={},$$scope:n}=e,{href:l=""}=e,{title:s=void 0}=e;return i.$$set=o=>{"href"in o&&t(0,l=o.href),"title"in o&&t(1,s=o.title),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Xl extends ue{constructor(e){super(),ce(this,e,Yl,Gl,de,{href:0,title:1})}}function es(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("em"),n&&n.c()},l(l){e=V(l,"EM",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function ts(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ns extends ue{constructor(e){super(),ce(this,e,ts,es,de,{})}}function rs(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("del"),n&&n.c()},l(l){e=V(l,"DEL",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function is(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ls extends ue{constructor(e){super(),ce(this,e,is,rs,de,{})}}function ss(i){let e,t=i[0].replace(/`/g,"")+"",r;return{c(){e=M("code"),r=ge(t)},l(n){e=V(n,"CODE",{});var l=$(e);r=_e(l,t),l.forEach(h)},m(n,l){O(n,e,l),x(e,r)},p(n,[l]){l&1&&t!==(t=n[0].replace(/`/g,"")+"")&&Te(r,t)},i:pe,o:pe,d(n){n&&h(e)}}}function os(i,e,t){let{raw:r}=e;return i.$$set=n=>{"raw"in n&&t(0,r=n.raw)},[r]}class fs extends ue{constructor(e){super(),ce(this,e,os,ss,de,{raw:0})}}function as(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("strong"),n&&n.c()},l(l){e=V(l,"STRONG",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function us(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class cs extends ue{constructor(e){super(),ce(this,e,us,as,de,{})}}function ds(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("table"),n&&n.c()},l(l){e=V(l,"TABLE",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function hs(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 ue{constructor(e){super(),ce(this,e,hs,ds,de,{})}}function ms(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("thead"),n&&n.c()},l(l){e=V(l,"THEAD",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function gs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class _s extends ue{constructor(e){super(),ce(this,e,gs,ms,de,{})}}function bs(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("tbody"),n&&n.c()},l(l){e=V(l,"TBODY",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(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 ys extends ue{constructor(e){super(),ce(this,e,Es,bs,de,{})}}function ks(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("tr"),n&&n.c()},l(l){e=V(l,"TR",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function vs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class ws extends ue{constructor(e){super(),ce(this,e,vs,ks,de,{})}}function Os(i){let e,t;const r=i[3].default,n=ye(r,i,i[2],null);return{c(){e=M("td"),n&&n.c(),this.h()},l(l){e=V(l,"TD",{align:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"align",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ke(n,r,l,l[2],t?we(r,l[2],s,null):ve(l[2]),null),(!t||s&2)&&I(e,"align",l[1])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Ss(i){let e,t;const r=i[3].default,n=ye(r,i,i[2],null);return{c(){e=M("th"),n&&n.c(),this.h()},l(l){e=V(l,"TH",{align:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"align",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ke(n,r,l,l[2],t?we(r,l[2],s,null):ve(l[2]),null),(!t||s&2)&&I(e,"align",l[1])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Ps(i){let e,t,r,n;const l=[Ss,Os],s=[];function o(f,a){return f[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function Ts(i,e,t){let{$$slots:r={},$$scope:n}=e,{header:l}=e,{align:s}=e;return i.$$set=o=>{"header"in o&&t(0,l=o.header),"align"in o&&t(1,s=o.align),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class As extends ue{constructor(e){super(),ce(this,e,Ts,Ps,de,{header:0,align:1})}}function Rs(i){let e,t;const r=i[3].default,n=ye(r,i,i[2],null);return{c(){e=M("ul"),n&&n.c()},l(l){e=V(l,"UL",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ke(n,r,l,l[2],t?we(r,l[2],s,null):ve(l[2]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Is(i){let e,t;const r=i[3].default,n=ye(r,i,i[2],null);return{c(){e=M("ol"),n&&n.c(),this.h()},l(l){e=V(l,"OL",{start:!0});var s=$(e);n&&n.l(s),s.forEach(h),this.h()},h(){I(e,"start",i[1])},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,s){n&&n.p&&(!t||s&4)&&ke(n,r,l,l[2],t?we(r,l[2],s,null):ve(l[2]),null),(!t||s&2)&&I(e,"start",l[1])},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function js(i){let e,t,r,n;const l=[Is,Rs],s=[];function o(f,a){return f[0]?0:1}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,[a]){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function Ns(i,e,t){let{$$slots:r={},$$scope:n}=e,{ordered:l}=e,{start:s}=e;return i.$$set=o=>{"ordered"in o&&t(0,l=o.ordered),"start"in o&&t(1,s=o.start),"$$scope"in o&&t(2,n=o.$$scope)},[l,s,n,r]}class Ls extends ue{constructor(e){super(),ce(this,e,Ns,js,de,{ordered:0,start:1})}}function zs(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("li"),n&&n.c()},l(l){e=V(l,"LI",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(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 ue{constructor(e){super(),ce(this,e,Cs,zs,de,{})}}function $s(i){let e;return{c(){e=M("hr")},l(t){e=V(t,"HR",{})},m(t,r){O(t,e,r)},p:pe,i:pe,o:pe,d(t){t&&h(e)}}}class Ms extends ue{constructor(e){super(),ce(this,e,null,$s,de,{})}}function Vs(i){let e,t;return{c(){e=new ui(!1),t=q(),this.h()},l(r){e=ci(r,!1),t=q(),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:pe,o:pe,d(r){r&&h(t),r&&e.d()}}}function Us(i,e,t){let{text:r}=e;return i.$$set=n=>{"text"in n&&t(0,r=n.text)},[r]}class xs extends ue{constructor(e){super(),ce(this,e,Us,Vs,de,{text:0})}}function qs(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("blockquote"),n&&n.c()},l(l){e=V(l,"BLOCKQUOTE",{});var s=$(e);n&&n.l(s),s.forEach(h)},m(l,s){O(l,e,s),n&&n.m(e,null),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Fs(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Bs extends ue{constructor(e){super(),ce(this,e,Fs,qs,de,{})}}function Zs(i){let e,t,r;return{c(){e=M("pre"),t=M("code"),r=ge(i[1]),this.h()},l(n){e=V(n,"PRE",{class:!0});var l=$(e);t=V(l,"CODE",{});var s=$(t);r=_e(s,i[1]),s.forEach(h),l.forEach(h),this.h()},h(){I(e,"class",i[0])},m(n,l){O(n,e,l),x(e,t),x(t,r)},p(n,[l]){l&2&&Te(r,n[1]),l&1&&I(e,"class",n[0])},i:pe,o:pe,d(n){n&&h(e)}}}function Hs(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 Js extends ue{constructor(e){super(),ce(this,e,Hs,Zs,de,{lang:0,text:1})}}function Ws(i){let e,t;const r=i[1].default,n=ye(r,i,i[0],null);return{c(){e=M("br"),n&&n.c()},l(l){e=V(l,"BR",{}),n&&n.l(l)},m(l,s){O(l,e,s),n&&n.m(l,s),t=!0},p(l,[s]){n&&n.p&&(!t||s&1)&&ke(n,r,l,l[0],t?we(r,l[0],s,null):ve(l[0]),null)},i(l){t||(m(n,l),t=!0)},o(l){_(n,l),t=!1},d(l){l&&h(e),n&&n.d(l)}}}function Ks(i,e,t){let{$$slots:r={},$$scope:n}=e;return i.$$set=l=>{"$$scope"in l&&t(0,n=l.$$scope)},[n,r]}class Qs extends ue{constructor(e){super(),ce(this,e,Ks,Ws,de,{})}}const Gs={heading:xl,paragraph:Bl,text:Jl,image:Ql,link:Xl,em:ns,strong:cs,codespan:fs,del:ls,table:ps,tablehead:_s,tablebody:ys,tablerow:ws,tablecell:As,list:Ls,orderedlistitem:null,unorderedlistitem:null,listitem:Ds,hr:Ms,html:xs,blockquote:Bs,code:Js,br:Qs},Ys={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 Xs(i){let e,t;return e=new Xe({props:{tokens:i[0],renderers:i[1]}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(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||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function eo(i,e,t){let r,n,l,s,{source:o=[]}=e,{renderers:f={}}=e,{options:a={}}=e,{isInline:u=!1}=e;const c=Gt();let d,p,g;return di(Vr,{slug:A=>n?n.slug(A):"",getOptions:()=>l}),Ar(()=>{t(7,g=!0)}),i.$$set=A=>{"source"in A&&t(2,o=A.source),"renderers"in A&&t(3,f=A.renderers),"options"in A&&t(4,a=A.options),"isInline"in A&&t(5,u=A.isInline)},i.$$.update=()=>{i.$$.dirty&4&&t(8,r=Array.isArray(o)),i.$$.dirty&4&&(n=o?new en:void 0),i.$$.dirty&16&&t(9,l={...Ys,...a}),i.$$.dirty&869&&(r?t(0,d=o):(t(6,p=new Ze(l)),t(0,d=u?p.inlineTokens(o):p.lex(o)),c("parsed",{tokens:d}))),i.$$.dirty&8&&t(1,s={...Gs,...f}),i.$$.dirty&385&&g&&!r&&c("parsed",{tokens:d})},[d,s,o,f,a,u,p,g,r,l]}class to extends ue{constructor(e){super(),ce(this,e,eo,Xs,de,{source:2,renderers:3,options:4,isInline:5})}}const no={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 ro(i,e={}){return i.replace(/\{\{\w+\}\}/g,t=>e[t.replace(/[{}]/g,"")])}function io(i,e,t=i){const r=no[i]||t;return ro(r,e)}function lo(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function so(i,e){return{type:"error",name:i,code:lo(i),message:io(i,e),data:e}}function B(i){return so.bind(null,i)}const oo=Object.prototype.toString;function ae(i){const e=oo.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();return e==="file"?"object":e}function Re(i){return(i==null?void 0:i.type)==="error"}function fo(i){return i instanceof Promise}function Pt(i){return Re(i)||fo(i)}function at(i,e=[]){for(let t=0;t<i.length;t+=1){const r=i[t];Array.isArray(r)?at(r,e):e.push(r)}return e}const pt={DECLARATOR_ONEOF:"oneOfProperty",GET_TEMPLATE_RECURSION_LIMIT:1,floatingPointPrecision:1e4,propertyBlacklist:["_id"]},{DECLARATOR_ONEOF:$t}=pt;function ao(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[$t]){const s=[],o=t[$t],f=e[t[$t]];if(f===void 0)return i.errors.missingOneOfPropertyError({property:o,pointer:r});for(let a=0;a<t.oneOf.length;a+=1){const u=i.resolveRef(t.oneOf[a]),c=i.step(o,u,e,r);if(Re(c))return c;let d=at(i.validate(f,c,r));if(d=d.filter(Pt),d.length>0)s.push(...d);else return u}return i.errors.oneOfPropertyError({property:o,value:f,pointer:r,errors:s})}const n=[],l=[];for(let s=0;s<t.oneOf.length;s+=1){const o=i.resolveRef(t.oneOf[s]);let f=at(i.validate(e,o,r));f=f.filter(Pt),f.length>0?l.push(...f):n.push(o)}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 tn=i=>JSON.parse(JSON.stringify(i));var uo=function(e){return co(e)&&!ho(e)};function co(i){return!!i&&typeof i=="object"}function ho(i){var e=Object.prototype.toString.call(i);return e==="[object RegExp]"||e==="[object Date]"||go(i)}var po=typeof Symbol=="function"&&Symbol.for,mo=po?Symbol.for("react.element"):60103;function go(i){return i.$$typeof===mo}function _o(i){return Array.isArray(i)?[]:{}}function ut(i,e){return e.clone!==!1&&e.isMergeableObject(i)?rt(_o(i),i,e):i}function bo(i,e,t){return i.concat(e).map(function(r){return ut(r,t)})}function Eo(i,e){if(!e.customMerge)return rt;var t=e.customMerge(i);return typeof t=="function"?t:rt}function yo(i){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(i).filter(function(e){return Object.propertyIsEnumerable.call(i,e)}):[]}function Xn(i){return Object.keys(i).concat(yo(i))}function Ur(i,e){try{return e in i}catch{return!1}}function ko(i,e){return Ur(i,e)&&!(Object.hasOwnProperty.call(i,e)&&Object.propertyIsEnumerable.call(i,e))}function vo(i,e,t){var r={};return t.isMergeableObject(i)&&Xn(i).forEach(function(n){r[n]=ut(i[n],t)}),Xn(e).forEach(function(n){ko(i,n)||(Ur(i,n)&&t.isMergeableObject(e[n])?r[n]=Eo(n,t)(i[n],e[n],t):r[n]=ut(e[n],t))}),r}function rt(i,e,t){t=t||{},t.arrayMerge=t.arrayMerge||bo,t.isMergeableObject=t.isMergeableObject||uo,t.cloneUnlessOtherwiseSpecified=ut;var r=Array.isArray(e),n=Array.isArray(i),l=r===n;return l?r?t.arrayMerge(i,e,t):vo(i,e,t):ut(e,t)}rt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return rt(r,n,t)},{})};var wo=rt,Oo=wo;const xr=It(Oo),So=(i,e)=>e,ct=(i,e)=>xr(i,e,{arrayMerge:So}),Po=(i,e)=>{const t=i.concat(e);return t.filter((r,n)=>t.indexOf(r)===n)},To=(i,e)=>xr(i,e,{arrayMerge:Po});function Ft(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 Ft(i,n.then,t);if(!l&&n.else)return Ft(i,n.else,t);delete n.if,delete n.then,delete n.else}return n}function Ao(i,e,t=i.rootSchema,r="#"){let n=tn(t);for(let l=0;l<t.allOf.length;l+=1){const s=Ft(i,t.allOf[l],e);n=To(n,s),e=i.getTemplate(e,n)}return delete n.allOf,n}const{DECLARATOR_ONEOF:Mt}=pt;function Ro(i,e,t,r){if(t==null||e.properties==null)return-1;let n=0;const l=Object.keys(e.properties);for(let s=0;s<l.length;s+=1){const o=l[s];t[o]!=null&&i.isValid(t[o],e.properties[o],r)&&(n+=1)}return n}function nn(i,e,t=i.rootSchema,r="#"){if(e!=null&&t[Mt]){const l=[],s=t[Mt],o=e[t[Mt]];if(o===void 0)return i.errors.missingOneOfPropertyError({property:s,pointer:r});for(let f=0;f<t.oneOf.length;f+=1){const a=i.resolveRef(t.oneOf[f]),u=i.step(s,a,e,r);if(Re(u))return u;let c=at(i.validate(o,u,r));if(c=c.filter(Pt),c.length>0)l.push(...c);else return a}return i.errors.oneOfPropertyError({property:s,value:o,pointer:r,errors:l})}const n=[];for(let l=0;l<t.oneOf.length;l+=1){const s=i.resolveRef(t.oneOf[l]);i.isValid(e,s,r)&&n.push(s)}if(n.length===1)return n[0];if(ae(e)==="object"){let l,s=0;for(let o=0;o<t.oneOf.length;o+=1){const f=i.resolveRef(t.oneOf[o]),a=Ro(i,f,e);s<a&&(s=a,l=t.oneOf[o])}return l===void 0?i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf}):l}return n.length>1?i.errors.multipleOneOfError({matches:n,data:e,pointer:r}):i.errors.oneOfError({value:JSON.stringify(e),pointer:r,oneOf:t.oneOf})}function Io(i,e){return i==null||i.$ref==null?i:i.getRoot?i.getRoot().getRef(i):e.getRef(i)}function jo(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 qr={exports:{}};(function(i,e){(function(t,r){i.exports=r()})(typeof self<"u"?self:Bi,()=>(()=>{var t={d:(v,z)=>{for(var y in z)t.o(z,y)&&!t.o(v,y)&&Object.defineProperty(v,y,{enumerable:!0,get:z[y]})},o:(v,z)=>Object.prototype.hasOwnProperty.call(v,z),r:v=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})}},r={};function n(v){return v==="#"||v===""||Array.isArray(v)&&v.length===0||!1}t.r(r),t.d(r,{default:()=>le,get:()=>d,isRoot:()=>n,join:()=>te,remove:()=>N,removeUndefinedItems:()=>w,set:()=>k,split:()=>c,splitLast:()=>ie});const l=/~1/g,s=/~0/g,o=/\/+/g,f=/(^[#/]*|\/+$)/g;function a(v){return v.replace(l,"/").replace(s,"~")}function u(v){return a(decodeURIComponent(v))}function c(v){if(v==null||typeof v!="string"||n(v))return Array.isArray(v)?v:[];const z=v.indexOf("#")>=0?u:a,y=(v=(v=v.replace(o,"/")).replace(f,"")).split("/");for(let T=0,F=y.length;T<F;T+=1)y[T]=z(y[T]);return y}function d(v,z,y){if(z==null||v==null)return y;if(n(z))return v;const T=p(v,c(z));return T===void 0?y:T}function p(v,z){const y=z.shift();if(v!==void 0)return y!==void 0?p(v[y],z):v}const g=/^\[.*\]$/,A=/^\[(.+)\]$/;function j(v,z){return v==="__proto__"||v=="constructor"&&z.length>0&&z[0]=="prototype"}function k(v,z,y){if(z==null)return v;const T=c(z);if(T.length===0)return v;v==null&&(v=g.test(T[0])?[]:{});let F,ee,ne=v;for(;T.length>1;)F=T.shift(),ee=g.test(T[0]),j(F,T)||(ne=E(ne,F,ee));return F=T.pop(),b(ne,F,y),v}function b(v,z,y){let T;const F=z.match(A);z==="[]"&&Array.isArray(v)?v.push(y):F?(T=F.pop(),v[T]=y):v[z]=y}function E(v,z,y){if(v[z]!=null)return v[z];const T=y?[]:{};return b(v,z,T),T}function w(v){let z=0,y=0;for(;z+y<v.length;)v[z+y]===void 0&&(y+=1),v[z]=v[z+y],z+=1;return v.length=v.length-y,v}function N(v,z,y){const T=c(z),F=T.pop(),ee=d(v,T);return ee&&delete ee[F],Array.isArray(ee)&&y!==!0&&w(ee),v}const R=/\/+/g,L=/~/g,fe=/\//g;function Q(v,z){if(v.length===0)return z?"#":"";for(let y=0,T=v.length;y<T;y+=1)v[y]=v[y].replace(L,"~0").replace(fe,"~1"),z&&(v[y]=encodeURIComponent(v[y]));return((z?"#/":"/")+v.join("/")).replace(R,"/")}function te(v,...z){const y=[];if(Array.isArray(v))return Q(v,arguments[1]===!0);const T=arguments[arguments.length-1],F=typeof T=="boolean"?T:v&&v[0]==="#";for(let ne=0,Oe=arguments.length;ne<Oe;ne+=1)y.push.apply(y,c(arguments[ne]));const ee=[];for(let ne=0,Oe=y.length;ne<Oe;ne+=1)if(y[ne]===".."){if(ee.length===0)return F?"#":"";ee.pop()}else ee.push(y[ne]);return Q(ee,F)}function ie(v){const z=c(v);if(z.length===0)return typeof v=="string"&&v[0]==="#"?["#",z[0]]:["",void 0];if(z.length===1)return v[0]==="#"?["#",z[0]]:["",z[0]];const y=z.pop();return[te(z,v[0]==="#"),y]}const le={get:d,set:k,remove:N,join:te,split:c,splitLast:ie,isRoot:n,removeUndefinedItems:w};return r})())})(qr);var tt=qr.exports;const dt=It(tt),No={};function Lo(i,e,t,r=i.rootSchema){const n=dt.split(e);return r=i.resolveRef(r),Fr(i,r,n,e,t)}function Fr(i,e,t,r,n=No){if(t.length===0)return i.resolveRef(e);const l=t.shift();return e=i.step(l,e,n,r),Re(e)?e:(n=n[l],Fr(i,e,t,`${r}/${l}`,n))}class zo{constructor(e,t){this.remotes={},this.errors={},this.typeKeywords={},this.validateKeyword={},this.validateType={},this.validateFormat={},this.config=e,this.typeKeywords=JSON.parse(JSON.stringify(e.typeKeywords)),this.validateKeyword=Object.assign({},e.validateKeyword),this.validateType=Object.assign({},e.validateType),this.validateFormat=Object.assign({},e.validateFormat),this.errors=Object.assign({},e.errors),this.setSchema(t)}get rootSchema(){return this.__rootSchema}set rootSchema(e){e!=null&&(this.__rootSchema=this.config.compileSchema(this,e))}addRemoteSchema(e,t){this.config.addRemoteSchema(this,e,t)}compileSchema(e){var t;return this.config.compileSchema(this,e,(t=this.rootSchema)!==null&&t!==void 0?t:e)}createSchemaOf(e){return this.config.createSchemaOf(e)}each(e,t,r,n){return this.config.each(this,e,t,r,n)}eachSchema(e,t=this.rootSchema){return this.config.eachSchema(t,e)}getChildSchemaSelection(e,t){return this.config.getChildSchemaSelection(this,e,t)}getSchema(e="#",t,r){return this.config.getSchema(this,e,t,r)}getTemplate(e,t,r){return this.config.getTemplate(this,e,t,r)}isValid(e,t,r){return this.config.isValid(this,e,t,r)}resolveAnyOf(e,t,r){return this.config.resolveAnyOf(this,e,t,r)}resolveAllOf(e,t,r){return this.config.resolveAllOf(this,e,t,r)}resolveRef(e){return this.config.resolveRef(e,this.rootSchema)}resolveOneOf(e,t,r){return this.config.resolveOneOf(this,e,t,r)}setSchema(e){this.rootSchema=e}step(e,t,r,n){return this.config.step(this,e,t,r,n)}validate(e,t,r){return this.config.validate(this,e,t,r)}}function Co(i,e,t){t.id=t.id||e,i.remotes[e]=i.compileSchema(t)}var Br={},ze={},jt={};Object.defineProperty(jt,"__esModule",{value:!0});jt.TokenError=void 0;class Do extends Error{constructor(e,t){if(super(e),this.message=e,this.token=t,t&&t.errors)t.errors.push(this);else throw this}inspect(){return"SyntaxError: "+this.message}}jt.TokenError=Do;Object.defineProperty(ze,"__esModule",{value:!0});ze.Parser=ze.findRuleByName=ze.parseRuleName=ze.escapeRegExp=ze.readToken=void 0;const er=/^[A-Z0-9_]+$/,tr=/(\?|\+|\*)$/,nr=/^(@|&|!)/,_t="WS",bt=jt;function Bt(i,e){let t=e.exec(i);return t&&t.index==0?t[0].length==0&&e.source.length>0?null:{type:null,text:t[0],rest:i.substr(t[0].length),start:0,end:t[0].length-1,fullText:t[0],errors:[],children:[],parent:null}:null}ze.readToken=Bt;function Zr(i){return i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}ze.escapeRegExp=Zr;function Hr(i){i.rest="",i.children&&i.children.forEach(e=>Hr(e))}function Jr(i,e){i.start+=e,i.end+=e,i.children&&i.children.forEach(t=>Jr(t,i.start))}function Wr(i,e){e.errors&&e.errors.length&&e.errors.forEach(t=>i.push(t)),e.children&&e.children.forEach(t=>Wr(i,t))}function Ge(i){let e=tr.exec(i),t=nr.exec(i),r=e&&e[0]||"",n=t&&t[0]||"",l={raw:i,name:i.replace(tr,"").replace(nr,""),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}ze.parseRuleName=Ge;function Kr(i,e){let t=Ge(i);return e.cachedRules[t.name]||null}ze.findRuleByName=Kr;function Zt(i,e){if(i.children){let t=i.children.filter(r=>r.type&&e.test(r.type));for(let r=0;r<t.length;r++){let n=i.children.indexOf(t[r]);n!=-1&&i.children.splice(n,1)}i.children.forEach(r=>Zt(r,e))}}const $o=["EOF"];class Qr{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 s=Ge(l.name);if(s.name in this.cachedRules){r.push("Duplicated rule "+s.name);return}else this.cachedRules[s.name]=l;if(!l.bnf||!l.bnf.length){let o="Missing rule content, rule: "+l.name;r.indexOf(o)==-1&&r.push(o)}else l.bnf.forEach(o=>{if(typeof o[0]=="string"&&Ge(o[0]).name==l.name){let a="Left recursion is not allowed, rule: "+l.name;r.indexOf(a)==-1&&r.push(a)}o.forEach(f=>{if(typeof f=="string"){let a=Ge(f);!a.isLiteral&&n.indexOf(a.name)==-1&&$o.indexOf(a.name)==-1&&n.push(a.name)}})});_t==l.name&&(l.implicitWs=!1),l.implicitWs&&n.indexOf(_t)==-1&&n.push(_t),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){Wr(r.errors,r),Jr(r,0),Zt(r,/^%/),(!this.options||!this.options.keepUpperRules)&&Zt(r,er);let n=r.rest;n&&new bt.TokenError(`Unexpected end of input:
`+n,r),Hr(r),r.rest=n}return r}emitSource(){return"CANNOT EMIT SOURCE FROM BASE Parser"}parse(e,t,r=0){let n=null,l=Ge(t),s,o=this.debug&&!er.test(l.name);o&&console.log(new Array(r).join("│ ")+"Trying to get "+t+" from "+JSON.stringify(e.split(`
`)[0]));let f=l.name,a=Kr(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};s=new RegExp(Zr(u)),f=null}}catch(u){return u instanceof ReferenceError&&console.error(u),null}if(s){let u=Bt(e,s);if(u)return u.type=f,u}else{let u=a.bnf;u instanceof Array&&u.forEach(c=>{if(n)return;let d=null,p={type:l.name,text:"",children:[],end:0,errors:[],fullText:"",parent:null,start:0,rest:e};a.fragment&&(p.fragment=!0);let g=e,A=0,j=c.length>0,k=!1;for(let b=0;b<c.length;b++)if(typeof c[b]=="string"){let E=Ge(c[b]);j=j&&E.isOptional;let w,N=!1;do{if(w=null,a.implicitWs&&(w=this.parse(g,E.name,r+1),!w)){let R;do if(R=this.parse(g,_t,r+1),R)p.text=p.text+R.text,p.end=p.text.length,R.parent=p,p.children.push(R),g=g.substr(R.text.length),A+=R.text.length;else break;while(R&&R.text.length)}if(w=w||this.parse(g,E.name,r+1),E.lookupNegative){if(w)return;break}if(E.lookupPositive&&!w)return;if(!w&&(E.isOptional||E.atLeastOne&&N))break;if(w&&a.pinned==b+1&&(d=w,o&&console.log(new Array(r+1).join("│ ")+"└─ "+w.type+" PINNED")),w||(w=this.parseRecovery(a,g,r+1)),!w)if(d)n=p,w={type:"SyntaxError",text:g,children:[],end:g.length,errors:[],fullText:"",parent:null,start:0,rest:""},g.length?new bt.TokenError(`Unexpected end of input. Expecting ${E.name} Got: ${g}`,w):new bt.TokenError(`Unexpected end of input. Missing ${E.name}`,w),o&&console.log(new Array(r+1).join("│ ")+"└─ "+w.type+" "+JSON.stringify(w.text));else return;if(N=!0,k=!0,w.type=="%%EMPTY%%")break;w.start+=A,w.end+=A,!E.lookupPositive&&w.type&&(w.fragment?w.children&&w.children.forEach(R=>{R.start+=A,R.end+=A,R.parent=p,p.children.push(R)}):(w.parent=p,p.children.push(w))),E.lookup&&(w.lookup=!0),o&&console.log(new Array(r+1).join("│ ")+"└─ "+w.type+" "+JSON.stringify(w.text)),!E.lookup&&!w.lookup&&(p.text=p.text+w.text,p.end=p.text.length,g=g.substr(w.text.length),A+=w.text.length),p.rest=g}while(w&&E.allowRepetition&&g.length&&!w.lookup)}else{let E=Bt(g,c[b]);if(!E)return;o&&console.log(new Array(r+1).join("│ ")+"└> "+JSON.stringify(E.text)+c[b].source),k=!0,E.start+=A,E.end+=A,p.text=p.text+E.text,p.end=p.text.length,g=g.substr(E.text.length),A+=E.text.length,p.rest=g}k&&(n=p,o&&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||o&&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:""},s;do if(s=this.parse(t,e.recover,r+1),s){new bt.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(!s&&t.length>0);if(l.text.length>0&&s)return n&&console.log(new Array(r+1).join("│ ")+"Recovered text: "+JSON.stringify(l.text)),l}return null}}ze.Parser=Qr;ze.default=Qr;Object.defineProperty(Br,"__esModule",{value:!0});const st=ze;var Ht;(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 st.Parser(i.RULES,{debug:!1});const e=/^(!|&)/,t=/(\?|\+|\*)$/,r=/^%/;function n(k,b){if(typeof k=="string"){if(e.test(k))return"";if(r.test(k)){let w=t.exec(k),N=w?w[0]+" ":"";return l(k,b)?o(k,b)+N:"("+o(k,b)+")"+N}return k}else return k.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(k,b){let E=st.findRuleByName(k,b);return E&&E.bnf.length==1&&E.bnf[0].length==1&&(E.bnf[0][0]instanceof RegExp||E.bnf[0][0][0]=='"'||E.bnf[0][0][0]=="'")}function s(k,b){return k.map(E=>n(E,b)).join(" ")}function o(k,b){let E=st.findRuleByName(k,b);return E?E.bnf.map(w=>s(w,b)).join(" | "):"RULE_NOT_FOUND {"+k+"}"}function f(k){let b=[];return k.grammarRules.forEach(E=>{if(!/^%/.test(E.name)){let w=E.recover?" /* { recoverUntil="+E.recover+" } */":"";b.push(E.name+" ::= "+o(E.name,k)+w)}}),b.join(`
`)}i.emit=f;let a=0;function u(k,b){throw console.log("reberia restar "+b+" a "+k),new Error("Difference not supported yet")}function c(k){return new RegExp(k.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(k,b,E){let w=null,N=[];return b.children.forEach((R,L)=>{R.type=="Minus"&&u(w,R);let fe=b.children[L+1];fe=fe&&fe.type=="PrimaryDecoration"&&fe.text||"";let Q="";switch(R.type){case"SubItem":let te="%"+(E+a++);p(k,R,te),N.push(Q+te+fe);break;case"NCName":case"StringLiteral":N.push(Q+R.text+fe);break;case"CharCode":case"CharClass":if(fe||Q){let ie={name:"%"+(E+a++),bnf:[[c(R.text)]]};k.push(ie),N.push(Q+ie.name+fe)}else N.push(c(R.text));break;case"PrimaryDecoration":break;default:throw new Error(" HOW SHOULD I PARSE THIS? "+R.type+" -> "+JSON.stringify(R.text))}w=R}),N}function p(k,b,E){let w=b.children.filter(L=>L.type=="SequenceOrDifference").map(L=>d(k,L,E)),N={name:E,bnf:w},R=null;w.forEach(L=>{R=R||L.recover,delete L.recover}),E.indexOf("%")==0&&(N.fragment=!0),R&&(N.recover=R),k.push(N)}function g(k,b=i.defaultParser){let E=b.getAST(k);if(!E)throw new Error("Could not parse "+k);if(E.errors&&E.errors.length)throw E.errors[0];let w=[];return E.children.filter(N=>N.type=="Production").map(N=>{let R=N.children.filter(L=>L.type=="NCName")[0].text;p(w,N,R)}),w}i.getRules=g;function A(k,b=i.defaultParser){return g(k.join(""),b)}i.Transform=A;class j extends st.Parser{constructor(b,E){const w=E&&E.debugRulesParser===!0?new st.Parser(i.RULES,{debug:!0}):i.defaultParser;super(g(b,w),E)}emitSource(){return f(this)}}i.Parser=j})(Ht||(Ht={}));var Mo=Br.default=Ht;const Vo="[^?/{}*,()#]+",Uo=`
root ::= ("#" recursion | recursion | (query | pattern) recursion* | "#" SEP? | SEP)
recursion ::= (SEP query | pattern)*
query ::= (ESC escaped ESC | property | all | any | regex) typecheck? lookahead?
property ::= ${Vo}
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 ::= [ ]*
`,xo=new Mo.Parser(Uo),qo=i=>xo.getAST(i),Le=0,it=3,Tt=(i,e)=>`${i}/${e}`,Gr=Object.prototype.toString,Fo=/Object|Array/,Jt=i=>Fo.test(Gr.call(i)),Bo=i=>Gr.call(i).match(/\s([^\]]+)\]/).pop().toLowerCase();function Yr(i){return new RegExp(i.text.replace(/(^{|}$)/g,""))}function Zo(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 rr(i){return Array.isArray(i)?i.map(function(e,t){return`${t}`}):Object.prototype.toString.call(i)==="[object Object]"?Object.keys(i):[]}const Qe={mem:[],get(i,e){const t=i[Le][e];if(!Qe.mem.includes(t))return Jt(t)&&Qe.mem.push(t),[t,e,i[Le],Tt(i[it],e)]},reset(){Qe.mem.length=0}},Wt={any(i,e){const t=e[Le];return rr(t).map(r=>[t[r],r,t,Tt(e[it],r)])},all(i,e){const t=[e];return Zo(e[Le],(r,n)=>{const l=Qe.get(e,n);l&&t.push(...Wt.all(i,l))}),t},regex(i,e){const t=Yr(i),r=e[Le];return rr(r).filter(n=>t.test(n)).map(n=>[r[n],n,r,Tt(e[it],n)])}},At={escaped:(i,e)=>At.property(i,e),property:(i,e)=>{const t=i.text;if(e[Le]&&e[Le][t]!==void 0)return[e[Le][t],t,e[Le],Tt(e[it],t)]},typecheck:(i,e)=>{const t=i.text.replace(/^\?:/,"");if(t==="value")return Jt(e[Le])?void 0:e;if(Bo(e[Le])===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[Le];if(Jt(l)!==!1)return Ho(l[t],r,n)?e:void 0}};function Ho(i,e,t){if(e===void 0)return i!==void 0;let r;const n=`${i}`;return t.type==="regex"?r=Yr(t).test(n):r=n===t.text,e.type==="isnot"&&(r=r===!1&&i!==void 0),r}function Jo(i,e,t,r){const n=[];for(let l=0,s=e.length;l<s;l+=1)n.push(...i(t,e[l],t,r));return n}function Wo(i,e,t,r){const n=[];for(let l=0,s=e.length;l<s;l+=1){const o=i(t,e[l],r);o&&n.push(o)}return n}function Ko(i,e,t){let r=i;return e.children.forEach(n=>{if(Wt[n.type])r=Jo(Wt[n.type],r,n,t);else if(At[n.type])r=Wo(At[n.type],r,n,t);else throw new Error(`Unknown filter ${n.type}`)}),r}function Qo(i,e,t){const r=[];let n=i;return e.children.forEach(l=>{if(l.type==="orPattern"){r.push(...n),n=i;return}n=rn(n,l,t)}),r.push(...n),r}function Go(i){if(i==null)return 1;if(i==="*"||i==="+")return 1/0;const e=parseInt(i);return isNaN(e)?1:e}function Yo(i,e,t){const r=[],n=e.children.find(f=>f.type==="quantifier"),l=Go(n&&n.text);let s=i;n&&n.text==="*"&&r.push(...s);let o=0;for(;s.length>0&&o<l;)s=Qo(s,e,t),r.push(...s),o+=1;return r}function Xo(i,e,t){let r=i;return e.children.forEach(n=>r=rn(r,n,t)),r}function rn(i,e,t){let r;return e.type==="query"?r=Ko(i,e,t):e.type==="pattern"?r=Yo(i,e,t):r=Xo(i,e,t),Qe.reset(),Qe.mem.push(i),r}function ef(i,e){return Qe.reset(),Qe.mem.push(i),rn([[i,null,null,"#"]],e)}const ir={value:i=>i.map(e=>e[Le]),pointer:i=>i.map(e=>e[it]),all:i=>i,map:i=>{const e={};return i.forEach(t=>e[t[it]]=t[Le]),e}};var Ye;(function(i){i.POINTER="pointer",i.VALUE="value",i.ALL="all",i.MAP="map"})(Ye||(Ye={}));mt.POINTER=Ye.POINTER;mt.VALUE=Ye.VALUE;mt.ALL=Ye.ALL;mt.MAP=Ye.MAP;function mt(i,e,t=Ye.VALUE){if(e==null)return[];e=e.replace(/(\/$)/g,""),e===""&&(e="#");const r=qo(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=ef(i,r);return typeof t=="function"?n.map(l=>t(...l)):ir[t]?ir[t](n):n}var Rt;(function(i){i.REPLACE_ITEMS="replace",i.INSERT_ITEMS="insert"})(Rt||(Rt={}));Rt.REPLACE_ITEMS;Rt.INSERT_ITEMS;const xe={$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"]}},tf=i=>Object.prototype.toString.call(i)==="[object Object]",nf=Object.keys(xe).filter(i=>xe[i].type===!1),lr=Object.prototype.hasOwnProperty;function sr(i){if(tf(i)===!1)return;if(i.enum)return"enum";if(xe[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=xe.object.keywords.length;t<r;t+=1){const n=xe.object.keywords[t];if(lr.call(i,n))return"object"}for(let t=0,r=xe.array.keywords.length;t<r;t+=1){const n=xe.array.keywords[t];if(lr.call(i,n))return"array"}return}throw new Error(`Mutiple typeIds [${e.join(", ")}] matched in ${JSON.stringify(i)}`)}const rf=i=>Object.prototype.toString.call(i)==="[object Object]";function lf(i){const e=[],t=sr(i);if(t==null)return e;let r;if(Array.isArray(t)){r={};for(let n=0,l=t.length;n<l;n+=1)Object.assign(r,xe[t[n]])}else r=xe[t];return r.definitions==null||r.definitions.forEach(n=>{mt(i,n,(l,s,o,f)=>{rf(l)&&sr(l)&&e.push({pointer:dt.join(dt.split(f),!1),def:l})})}),e}const sf=i=>Object.prototype.toString.call(i)==="[object Object]";function of(i,e){if(this.callback(i,e)===!0)return;lf(i).forEach(r=>this.nextTypeDefs(r.def,dt.join(e,r.pointer,!1)))}function Et(i,e,t,r="definitions"){const n=e[r];Object.keys(n).forEach(l=>{if(n[l]===!1||sf(n[l])){i.nextTypeDefs(n[l],dt.join(t,r,l,!1));return}})}function Xr(i,e,t="#"){const r={callback:e,nextTypeDefs:of};r.nextTypeDefs(i,t),i.definitions!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Et(r,n,l)},Et(r,i,t)),i.$defs!=null&&(r.callback=(n,l)=>{e(n,l),n.definitions!=null&&Et(r,n,l)},Et(r,i,t,"$defs"))}const ff=/(#|\/)+$/,yt=/#$/,af=/^[^:]+:\/\/[^/]+\//,uf=/\/[^/]*$/,cf=/#.*$/;function or(i,e){return i==null&&e==null?"#":e==null?i.replace(yt,""):i==null?e.replace(yt,""):e[0]==="#"?`${i.replace(cf,"")}${e.replace(ff,"")}`:af.test(e)?e.replace(yt,""):`${i.replace(uf,"")}/${e.replace(yt,"")}`}const ot=/(#|\/)+$/g,df=["",null,"#"];function hf(i){if(df.includes(i))return[];if(i=i.replace(ot,""),i.indexOf("#")===-1)return[i.replace(ot,"")];if(i.indexOf("#")===0)return[i.replace(ot,"")];const e=i.split("#");return e[0]=e[0].replace(ot,""),e[1]=`#${e[1].replace(ot,"")}`,e}const pf=/(#|\/)+$/g,mf=i=>ae(i)==="object";function We(i,e,t){if(mf(t)&&(t=t.__ref||t.$ref),t==null)return e;let r;const n=t.replace(pf,"");if(i.remotes[n])return r=i.remotes[n],r&&r.$ref?We(i,e,r.$ref):r;if(i.ids[t])return r=tt.get(e,i.ids[t]),r&&r.$ref?We(i,e,r.$ref):r;const l=hf(t);if(l.length===0)return e;if(l.length===1){if(t=l[0],i.remotes[t])return r=i.remotes[t],We(i,e,r.$ref);if(i.ids[t])return r=tt.get(e,i.ids[t]),r&&r.$ref?We(i,e,r.$ref):r}if(l.length===2){const s=l[0];if(t=l[1],i.remotes[s])return i.remotes[s].getRef?i.remotes[s].getRef(t):We(i,i.remotes[s],t);if(i.ids[s])return We(i,tt.get(e,i.ids[s]),t)}return r=tt.get(e,i.ids[t]||t),r&&r.$ref?We(i,e,r.$ref):r}const fr="__compiled",ar="__ref",gf="getRef",_f="getRoot",bf=/(#|\/)+$/g;function Ef(i,e,t=e,r=!1){if(e===!0||e===!1||e===void 0||e[fr]!==void 0)return e;const n={ids:{},remotes:i.remotes},l=JSON.stringify(e),s=JSON.parse(l);if(Object.defineProperty(s,fr,{enumerable:!1,value:!0}),Object.defineProperty(s,gf,{enumerable:!1,value:We.bind(null,n,s)}),r===!1&&l.includes("$ref")===!1)return s;s!==t&&Object.defineProperty(s,"$defs",{enumerable:!0,value:Object.assign({},t.definitions,t.$defs,s.definitions,s.$defs)});const o={},f=()=>s;return Xr(s,(a,u)=>{var c;if(a.$id){if(a.$id.startsWith("http")&&/(allOf|anyOf|oneOf)\/\d+$/.test(u)){const j=u.replace(/\/(allOf|anyOf|oneOf)\/\d+$/,""),k=tt.get(s,j);a.$id=(c=k.$id)!==null&&c!==void 0?c:a.$id}n.ids[a.$id.replace(bf,"")]=u}u=`#${u}`.replace(/##+/,"#");const d=u.replace(/\/[^/]+$/,""),p=u.replace(/\/[^/]+\/[^/]+$/,""),g=o[d]||o[p],A=or(g,a.$id);o[u]=A,n.ids[A]==null&&(n.ids[A]=u),a.$ref&&!a[ar]&&(Object.defineProperty(a,ar,{enumerable:!1,value:or(A,a.$ref)}),Object.defineProperty(a,_f,{enumerable:!1,value:f}))}),s}function yf(i,e,t,r=i.rootSchema,n="#"){r=i.resolveRef(r),t(r,e,n);const l=ae(e);l==="object"?Object.keys(e).forEach(s=>{const o=i.step(s,r,e,n),f=e[s];i.each(f,t,o,`${n}/${s}`)}):l==="array"&&e.forEach((s,o)=>{const f=i.step(o,r,e,n);i.each(s,t,f,`${n}/${o}`)})}const he={additionalItemsError:B("AdditionalItemsError"),additionalPropertiesError:B("AdditionalPropertiesError"),anyOfError:B("AnyOfError"),allOfError:B("AllOfError"),constError:B("ConstError"),containsError:B("ContainsError"),containsArrayError:B("ContainsArrayError"),containsAnyError:B("ContainsAnyError"),enumError:B("EnumError"),formatURLError:B("FormatURLError"),formatURIError:B("FormatURIError"),formatURIReferenceError:B("FormatURIReferenceError"),formatURITemplateError:B("FormatURITemplateError"),formatDateError:B("FormatDateaError"),formatDateTimeError:B("FormatDateTimeError"),formatEmailError:B("FormatEmailError"),formatHostnameError:B("FormatHostnameError"),formatIPV4Error:B("FormatIPV4Error"),formatIPV4LeadingZeroError:B("FormatIPV4LeadingZeroError"),formatIPV6Error:B("FormatIPV6Error"),formatIPV6LeadingZeroError:B("FormatIPV6LeadingZeroError"),formatJSONPointerError:B("FormatJSONPointerError"),formatRegExError:B("FormatRegExError"),formatTimeError:B("FormatTimeError"),invalidSchemaError:B("InvalidSchemaError"),invalidDataError:B("InvalidDataError"),invalidTypeError:B("InvalidTypeError"),invalidPropertyNameError:B("InvalidPropertyNameError"),maximumError:B("MaximumError"),maxItemsError:B("MaxItemsError"),maxLengthError:B("MaxLengthError"),maxPropertiesError:B("MaxPropertiesError"),minimumError:B("MinimumError"),minItemsError:B("MinItemsError"),minItemsOneError:B("MinItemsOneError"),minLengthError:B("MinLengthError"),minLengthOneError:B("MinLengthOneError"),minPropertiesError:B("MinPropertiesError"),missingDependencyError:B("MissingDependencyError"),missingOneOfPropertyError:B("MissingOneOfPropertyError"),multipleOfError:B("MultipleOfError"),multipleOneOfError:B("MultipleOneOfError"),noAdditionalPropertiesError:B("NoAdditionalPropertiesError"),notError:B("NotError"),oneOfError:B("OneOfError"),oneOfPropertyError:B("OneOfPropertyError"),patternError:B("PatternError"),patternPropertiesError:B("PatternPropertiesError"),requiredPropertyError:B("RequiredPropertyError"),typeError:B("TypeError"),undefinedValueError:B("UndefinedValueError"),uniqueItemsError:B("UniqueItemsError"),unknownPropertyError:B("UnknownPropertyError"),valueNotEmptyError:B("ValueNotEmptyError")};var ei={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=s,e.exports.isUri=r,e.exports.isHttpUri=n,e.exports.isHttpsUri=l,e.exports.isWebUri=s;var t=function(o){var f=o.match(/(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/);return f};function r(o){if(o&&!/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(o)&&!/%[^0-9a-f]/i.test(o)&&!/%[0-9a-f](:?[^0-9a-f]|$)/i.test(o)){var f=[],a="",u="",c="",d="",p="",g="";if(f=t(o),a=f[1],u=f[2],c=f[3],d=f[4],p=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 g+=a+":",u&&u.length&&(g+="//"+u),g+=c,d&&d.length&&(g+="?"+d),p&&p.length&&(g+="#"+p),g}}}function n(o,f){if(r(o)){var a=[],u="",c="",d="",p="",g="",A="",j="";if(a=t(o),u=a[1],c=a[2],d=a[3],g=a[4],A=a[5],!!u){if(f){if(u.toLowerCase()!="https")return}else if(u.toLowerCase()!="http")return;if(c)return/:(\d+)$/.test(c)&&(p=c.match(/:(\d+)$/)[0],c=c.replace(/:\d+$/,"")),j+=u+":",j+="//"+c,p&&(j+=p),j+=d,g&&g.length&&(j+="?"+g),A&&A.length&&(j+="#"+A),j}}}function l(o){return n(o,!0)}function s(o){return n(o)||l(o)}})(i)})(ei);var kf=ei.exports;const ur=It(kf),vf=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]))$"),wf=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Of=/^((([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,Sf=/^(?=.{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])?)*\.?$/,Pf=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,Tf=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Af=[0,31,28,31,30,31,30,31,31,30,31,30,31],Rf=/^(?:\/(?:[^~/]|~0|~1)*)*$/,If=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,jf=/^(?:[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,Nf=/^(?:(?:[^\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,Lf={date:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Pf);if(!n)return he.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],f=l%4===0&&(l%100!==0||l%400===0);if(!(s>=1&&s<=12&&o>=1&&o<=(s==2&&f?29:Af[s])))return he.formatDateError({value:t,pointer:r})},"date-time":(i,e,t,r)=>{if(typeof t=="string")return t===""||vf.test(t)?new Date(t).toString()==="Invalid Date"?he.formatDateTimeError({value:t,pointer:r}):void 0:he.formatDateTimeError({value:t,pointer:r})},email:(i,e,t,r)=>{if(typeof t!="string")return;if(t[0]==='"')return he.formatEmailError({value:t,pointer:r});const[n,l,...s]=t.split("@");if(!n||!l||s.length!==0||n.length>64||l.length>253)return he.formatEmailError({value:t,pointer:r});if(n[0]==="."||n.endsWith(".")||n.includes(".."))return he.formatEmailError({value:t,pointer:r});if(!/^[a-z0-9.-]+$/i.test(l)||!/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+$/i.test(n))return he.formatEmailError({value:t,pointer:r});if(!l.split(".").every(o=>/^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$/i.test(o)))return he.formatEmailError({value:t,pointer:r})},hostname:(i,e,t,r)=>{if(typeof t=="string"&&!(t===""||Sf.test(t)))return he.formatHostnameError({value:t,pointer:r})},ipv4:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return he.formatIPV4LeadingZeroError({value:t,pointer:r});if(!(t.length<=15&&wf.test(t)))return he.formatIPV4Error({value:t,pointer:r})}},ipv6:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")){if(t&&t[0]==="0")return he.formatIPV6LeadingZeroError({value:t,pointer:r});if(!(t.length<=45&&Of.test(t)))return he.formatIPV6Error({value:t,pointer:r})}},"json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Rf.test(t))return he.formatJSONPointerError({value:t,pointer:r})},"relative-json-pointer":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!If.test(t))return he.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 he.formatRegExError({value:t,pointer:r})}if(!(typeof t=="object"||typeof t=="number"||Array.isArray(t)))return he.formatRegExError({value:t,pointer:r})},time:(i,e,t,r)=>{if(typeof t!="string")return;const n=t.match(Tf);if(!n)return he.formatDateTimeError({value:t,pointer:r});const l=+n[1],s=+n[2],o=+n[3],f=!!n[5];if(!((l<=23&&s<=59&&o<=59||l==23&&s==59&&o==60)&&f))return he.formatTimeError({value:t,pointer:r})},uri:(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!ur.isUri(t))return he.formatURIError({value:t,pointer:r})},"uri-reference":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!jf.test(t))return he.formatURIReferenceError({value:t,pointer:r})},"uri-template":(i,e,t,r)=>{if(!(typeof t!="string"||t==="")&&!Nf.test(t))return he.formatURITemplateError({value:t,pointer:r})},url:(i,e,t,r)=>{if(!(t===""||ur.isWebUri(t)))return he.formatURLError({value:t,pointer:r})}};function zf(i){switch(ae(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 Cf={addOptionalProps:!0,removeInvalidData:!1};let qe;function Vt(i,e){const{$ref:t}=i;return t==null?!0:(qe[e]==null||qe[e][t]==null?0:qe[e][t])<pt.GET_TEMPLATE_RECURSION_LIMIT}function Ut(i,e,t){if(t==null)throw new Error(`missing pointer ${t}`);const{$ref:r}=e;return r==null?e:(qe[t]=qe[t]||{},qe[t][r]=qe[t][r]||0,qe[t][r]+=1,i.resolveRef(e))}function Df(i,e){if(i==="string")return JSON.stringify(e);if(typeof e!="string")return null;try{if(e=JSON.parse(e),typeof e===i)return e}catch{}return null}function ti(i,e,t,r){if(ae(e)!=="object")return Object.assign({pointer:r},e);if(Vt(e,r)===!1&&t==null)return!1;let n=tn(Ut(i,e,r));if(Array.isArray(e.anyOf)&&e.anyOf.length>0){if(Vt(e.anyOf[0],`${r}/anyOf/0`)){const l=Ut(i,e.anyOf[0],`${r}/anyOf/0`);n=ct(n,l),n.pointer=e.anyOf[0].$ref||n.pointer}delete n.anyOf}if(Array.isArray(e.allOf)){for(let l=0,s=e.allOf.length;l<s;l+=1)Vt(e.allOf[l],`${r}/allOf/${l}`)&&(n=ct(n,Ut(i,e.allOf[l],`${r}/allOf/${l}`)),n.pointer=e.allOf[l].$ref||n.pointer);delete n.allOf}return n.pointer=n.pointer||e.$ref||r,n}const cr=i=>i&&typeof i=="object";function Ue(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=ti(i,t,e,r);if(!cr(l))return;if(r=l.pointer,l!=null&&l.const)return l.const;if(Array.isArray(l.oneOf))if(zf(e)){const a=l.oneOf[0].type||l.type||l.const&&typeof l.const||ae(e);l={...l.oneOf[0],type:a}}else{const a=nn(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(!cr(l)||l.type==null)return;const s=Array.isArray(l.type)?$f(l.type,e,l.default):l.type,o=ae(e);return e!=null&&o!==s&&!(o==="number"&&s==="integer")&&(e=Df(s,e)),dr[s]==null?n.removeInvalidData?void 0:e:dr[s](i,l,e,r,n)}function $f(i,e,t){if(e==null){if(t!=null){const n=ae(t);if(i.includes(n))return n}return i[0]}const r=ae(e);return i.includes(r)?r:i[0]}const dr={null:(i,e,t)=>ft(e,t,null),string:(i,e,t)=>ft(e,t,""),number:(i,e,t)=>ft(e,t,0),integer:(i,e,t)=>ft(e,t,0),boolean:(i,e,t)=>ft(e,t,!1),object:(i,e,t,r,n)=>{var l;const s=e.default===void 0?{}:e.default,o={},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?s[a]:t[a],c=f.includes(a);(u!=null||c||n.addOptionalProps)&&(o[a]=Ue(i,u,e.properties[a],`${r}/properties/${a}`,n))}),e.dependencies&&Object.keys(e.dependencies).forEach(a=>{if(o[a]===void 0)return;const u=e.dependencies[a];if(Array.isArray(u)){u.forEach(d=>{o[d]=Ue(i,o[d],e.properties[d],`${r}/properties/${d}`,n)});return}if(ae(u)!=="object")return;const c=Ue(i,t,{...u,type:"object"},`${r}/dependencies/${a}`,n);c&&!Re(c)&&Object.assign(o,c)}),t&&Object.keys(t).forEach(a=>o[a]==null&&(o[a]=t[a])),e.if&&(e.then||e.else)){const a=i.isValid(o,e.if);if(a&&e.then){const u=i.getTemplate(o,{type:"object",...e.then},n);Object.assign(o,u)}else if(!a&&e.else){const u=i.getTemplate(o,{type:"object",...e.else},n);Object.assign(o,u)}}return o},array:(i,e,t,r,n)=>{var l,s,o;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,(o=(s=e.items)===null||s===void 0?void 0:s.length)!==null&&o!==void 0?o:0);c<d;c+=1)a[c]=Ue(i,a[c]==null?f[c]:a[c],e.items[c],`${r}/items/${c}`,n);return a}if(ae(e.items)!=="object")return a;const u=ti(i,e.items,t,r);if(u===!1)return a;if(r=u.pointer||r,u.oneOf&&a.length===0){const c=u.oneOf[0];for(let d=0;d<e.minItems;d+=1)a[d]=Ue(i,a[d]==null?f[d]:a[d],c,`${r}/oneOf/0`,n);return a}if(u.oneOf&&a.length>0){const c=Math.max(e.minItems,a.length);for(let d=0;d<c;d+=1){let p=a[d]==null?f[d]:a[d],g=nn(i,p,u);g==null||Re(g)?p!=null&&n.removeInvalidData!==!0?a[d]=p:(p=void 0,g=u.oneOf[0],a[d]=Ue(i,p,g,`${r}/oneOf/${d}`,n)):a[d]=Ue(i,p,g,`${r}/oneOf/${d}`,n)}return a}if(u.type){for(let c=0,d=Math.max(e.minItems,a.length);c<d;c+=1)a[c]=Ue(i,a[c]==null?f[c]:a[c],u,`${r}/items`,n);return a}return a}};function ft(i,e,t){return e??(i.const?i.const:i.default===void 0&&Array.isArray(i.enum)?i.enum[0]:i.default===void 0?t:i.default)}const Mf=(i,e,t=i.rootSchema,r=Cf)=>(qe={mi:{}},Ue(i,e,t,"#",r));function Vf(i,e,t=i.rootSchema,r="#"){return i.validate(e,t,r).length===0}function Kt(i,e){const t=typeof i;if(t!==typeof e)return!1;if(Array.isArray(i)){if(!Array.isArray(e))return!1;const r=i.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(!Kt(i[n],e[n]))return!1;return!0}if(t==="object"){if(!i||!e)return i===e;const r=Object.keys(i),n=Object.keys(e);if(r.length!==n.length)return!1;for(const s of r)if(!Kt(i[s],e[s]))return!1;return!0}return i===e}function hr(i){const e=[];let t=0;const r=i.length;for(;t<r;){const n=i.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){const l=i.charCodeAt(t++);(l&64512)==56320?e.push(((n&1023)<<10)+(l&1023)+65536):(e.push(n),t--)}else e.push(n)}return e}const xt=pt.floatingPointPrecision,Uf=Object.prototype.hasOwnProperty,pr=(i,e)=>!(i[e]===void 0||!Uf.call(i,e)),xf={additionalProperties:(i,e,t,r)=>{if(e.additionalProperties===!0||e.additionalProperties==null||ae(e.patternProperties)==="object"&&e.additionalProperties===!1)return;const n=[];let l=Object.keys(t).filter(o=>pt.propertyBlacklist.includes(o)===!1);const s=Object.keys(e.properties||{});if(ae(e.patternProperties)==="object"){const o=Object.keys(e.patternProperties).map(f=>new RegExp(f));l=l.filter(f=>{for(let a=0;a<o.length;a+=1)if(o[a].test(f))return!1;return!0})}for(let o=0,f=l.length;o<f;o+=1){const a=l[o];if(s.indexOf(a)===-1){const u=typeof e.additionalProperties=="object";if(u&&Array.isArray(e.additionalProperties.oneOf)){const c=i.resolveOneOf(t[a],e.additionalProperties,`${r}/${a}`);Re(c)?n.push(i.errors.additionalPropertiesError({schema:e.additionalProperties,property:l[o],properties:s,pointer:r,errors:c.data.errors})):n.push(...i.validate(t[a],c,r))}else u?n.push(...i.validate(t[a],e.additionalProperties,`${r}/${a}`)):n.push(i.errors.noAdditionalPropertiesError({property:l[o],properties:s,pointer:r}))}}return n},allOf:(i,e,t,r)=>{if(Array.isArray(e.allOf)===!1)return;const n=[];return e.allOf.forEach(l=>{n.push(...i.validate(t,l,r))}),n},anyOf:(i,e,t,r)=>{if(Array.isArray(e.anyOf)!==!1){for(let n=0;n<e.anyOf.length;n+=1)if(i.isValid(t,e.anyOf[n]))return;return i.errors.anyOfError({anyOf:e.anyOf,value:t,pointer:r})}},dependencies:(i,e,t,r)=>{if(ae(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 s;const o=ae(e.dependencies[l]);if(o==="array")s=e.dependencies[l].filter(f=>t[f]===void 0).map(f=>i.errors.missingDependencyError({missingProperty:f,pointer:r}));else if(o==="object")s=i.validate(t,e.dependencies[l],r);else throw new Error(`Invalid dependency definition for ${r}/${l}. Must be list or schema`);n.push(...s)}),n.length>0?n:void 0},enum:(i,e,t,r)=>{const n=ae(t);if(n==="object"||n==="array"){const l=JSON.stringify(t);for(let s=0;s<e.enum.length;s+=1)if(JSON.stringify(e.enum[s])===l)return}else if(e.enum.includes(t))return;return i.errors.enumError({values:e.enum,value:t,pointer:r})},format:(i,e,t,r)=>{if(i.validateFormat[e.format])return i.validateFormat[e.format](i,e,t,r)},items:(i,e,t,r)=>{if(e.items===!1)return Array.isArray(t)&&t.length===0?void 0:i.errors.invalidDataError({pointer:r,value:t});const n=[];for(let l=0;l<t.length;l+=1){const s=t[l],o=i.step(l,e,t,r);if(Re(o))return[o];const f=i.validate(s,o,`${r}/${l}`);n.push(...f)}return n},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)){if(e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r});if(e.maximum&&e.exclusiveMaximum===!0&&e.maximum===t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})}},maxItems:(i,e,t,r)=>{if(!isNaN(e.maxItems)&&e.maxItems<t.length)return i.errors.maxItemsError({maximum:e.maxItems,length:t.length,pointer:r})},maxLength:(i,e,t,r)=>{if(isNaN(e.maxLength))return;const n=hr(t).length;if(e.maxLength<n)return i.errors.maxLengthError({maxLength:e.maxLength,length:n,pointer:r})},maxProperties:(i,e,t,r)=>{const n=Object.keys(t).length;if(isNaN(e.maxProperties)===!1&&e.maxProperties<n)return i.errors.maxPropertiesError({maxProperties:e.maxProperties,length:n,pointer:r})},minLength:(i,e,t,r)=>{if(isNaN(e.minLength))return;const n=hr(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(ae(l)!=="object")return;const s=[],o=Object.keys(t),f=Object.keys(l).map(a=>({regex:new RegExp(a),patternSchema:l[a]}));return o.forEach(a=>{let u=!1;for(let c=0,d=f.length;c<d;c+=1)if(f[c].regex.test(a)){u=!0;const p=i.validate(t[a],f[c].patternSchema,`${r}/${a}`);p&&p.length>0&&s.push(...p)}n[a]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}))}),s},properties:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let s=0;s<l.length;s+=1){const o=l[s];if(pr(t,o)){const f=i.step(o,e,t,r),a=i.validate(t[o],f,`${r}/${o}`);n.push(...a)}}return n},propertiesRequired:(i,e,t,r)=>{const n=[],l=Object.keys(e.properties||{});for(let s=0;s<l.length;s+=1){const o=l[s];if(t[o]===void 0)n.push(i.errors.requiredPropertyError({key:o,pointer:r}));else{const f=i.step(o,e,t,r),a=i.validate(t[o],f,`${r}/${o}`);n.push(...a)}}return n},required:(i,e,t,r)=>{if(Array.isArray(e.required)!==!1)return e.required.map(n=>{if(!pr(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,s)=>{for(let o=s+1;o<t.length;o+=1)Kt(l,t[o])&&n.push(i.errors.uniqueItemsError({pointer:r,itemPointer:`${r}/${s}`,duplicatePointer:`${r}/${o}`,value:JSON.stringify(l)}))}),n}},qf={...xf,contains:(i,e,t,r)=>{if(e.contains===!1)return i.errors.containsArrayError({pointer:r,value:t});if(e.contains===!0)return Array.isArray(t)&&t.length===0?i.errors.containsAnyError({pointer:r}):void 0;if(ae(e.contains)==="object"){for(let n=0;n<t.length;n+=1)if(i.isValid(t[n],e.contains))return;return i.errors.containsError({pointer:r,schema:JSON.stringify(e.contains)})}},exclusiveMaximum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMaximum)&&e.exclusiveMaximum<=t)return i.errors.maximumError({maximum:e.exclusiveMaximum,length:t,pointer:r})},exclusiveMinimum:(i,e,t,r)=>{if(!isNaN(e.exclusiveMinimum)&&e.exclusiveMinimum>=t)return i.errors.minimumError({minimum:e.exclusiveMinimum,length:t,pointer:r})},if:(i,e,t,r)=>{if(e.if==null)return;const n=i.validate(t,e.if,r);if(n.length===0&&e.then)return i.validate(t,e.then,r);if(n.length!==0&&e.else)return i.validate(t,e.else,r)},maximum:(i,e,t,r)=>{if(!isNaN(e.maximum)&&e.maximum&&e.maximum<t)return i.errors.maximumError({maximum:e.maximum,length:t,pointer:r})},minimum:(i,e,t,r)=>{if(!isNaN(e.minimum)&&e.minimum>t)return i.errors.minimumError({minimum:e.minimum,length:t,pointer:r})},patternProperties:(i,e,t,r)=>{const n=e.properties||{},l=e.patternProperties;if(ae(l)!=="object")return;const s=[],o=Object.keys(t),f=Object.keys(l).map(a=>({regex:new RegExp(a),patternSchema:l[a]}));return o.forEach(a=>{let u=!1;for(let c=0,d=f.length;c<d;c+=1)if(f[c].regex.test(a)){if(u=!0,f[c].patternSchema===!1){s.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}));return}const p=i.validate(t[a],f[c].patternSchema,`${r}/${a}`);p&&p.length>0&&s.push(...p)}n[a]||u===!1&&e.additionalProperties===!1&&s.push(i.errors.patternPropertiesError({key:a,pointer:r,patterns:Object.keys(l).join(",")}))}),s},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||ae(e.propertyNames)!=="object")return;const n=[],l=Object.keys(t),s={...e.propertyNames,type:"string"};return l.forEach(o=>{const f=i.validate(o,s,`${r}/${o}`);f.length>0&&n.push(i.errors.invalidPropertyNameError({property:o,pointer:r,validationError:f[0],value:t[o]}))}),n}};function Ff(i,e,t=i.rootSchema,r="#"){let n=!1,l=tn(t);for(let s=0;s<t.anyOf.length;s+=1){const o=i.resolveRef(t.anyOf[s]);i.isValid(e,t.anyOf[s],r)&&(n=!0,l=ct(l,o))}return n===!1?he.anyOfError({value:e,pointer:r,anyOf:JSON.stringify(t.anyOf)}):(delete l.anyOf,l)}function Ke(i){const e={type:ae(i)};return e.type==="object"&&(e.properties={},Object.keys(i).forEach(t=>e.properties[t]=Ke(i[t]))),e.type==="array"&&i.length===1?e.items=Ke(i[0]):e.type==="array"&&(e.items=i.map(Ke)),e}function Bf(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 mr={array:(i,e,t,r,n)=>{const l=ae(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 Ke(r[e]);if(t.items[e]===!1)return he.invalidDataError({key:e,value:r[e],pointer:n});if(t.items[e])return i.resolveRef(t.items[e]);if(t.additionalItems===!1)return he.additionalItemsError({key:e,value:r[e],pointer:n});if(t.additionalItems===!0||t.additionalItems===void 0)return Ke(r[e]);if(ae(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]?Ke(r[e]):new Error(`Invalid array schema for ${e} at ${n}`)},object:(i,e,t,r,n)=>{if(Array.isArray(t.oneOf)){const o=i.resolveOneOf(r,t,n);if(t=ct(t,o),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 o=i.resolveOneOf(r[e],l,`${n}/${e}`);const f=l.oneOf.findIndex(a=>a===o);return o.variableSchema=!0,o.oneOfIndex=f,o.oneOfSchema=l,o}if(l)return l}const{dependencies:s}=t;if(ae(s)==="object"){const o=Object.keys(s).filter(f=>ae(s[f])==="object");for(let f=0,a=o.length;f<a;f+=1){const u=o[f],c=vt(i,e,s[u],r,`${n}/${u}`);if(!Re(c))return c}}if(t.if&&(t.then||t.else)){const o=i.isValid(r,t.if);if(o&&t.then){const f=vt(i,e,t.then,r,n);if(typeof f.type=="string"&&f.type!=="error")return f}if(!o&&t.else){const f=vt(i,e,t.else,r,n);if(typeof f.type=="string"&&f.type!=="error")return f}}if(ae(t.patternProperties)==="object"){let o;const f=Object.keys(t.patternProperties);for(let a=0,u=f.length;a<u;a+=1)if(o=new RegExp(f[a]),o.test(e))return t.patternProperties[f[a]]}return ae(t.additionalProperties)==="object"?t.additionalProperties:t.additionalProperties===!0?Ke(r[e]):he.unknownPropertyError({property:e,value:r,pointer:`${n}`})}};function vt(i,e,t,r,n="#"){if(Array.isArray(t.type)){const o=ae(r);return t.type.includes(o)?mr[o](i,`${e}`,t,r,n):i.errors.typeError({value:r,pointer:n,expected:t.type,received:o})}const l=t.type||ae(r),s=mr[l];return s?s(i,`${e}`,t,r,n):new Error(`Unsupported schema type ${t.type} for key ${e}`)}const Zf={array:(i,e,t,r)=>i.typeKeywords.array.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),object:(i,e,t,r)=>i.typeKeywords.object.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),string:(i,e,t,r)=>i.typeKeywords.string.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),integer:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),number:(i,e,t,r)=>i.typeKeywords.number.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),boolean:(i,e,t,r)=>i.typeKeywords.boolean.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r)),null:(i,e,t,r)=>i.typeKeywords.null.filter(n=>e&&e[n]!=null).map(n=>i.validateKeyword[n](i,e,t,r))};var Hf=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 s=l[n];if(!i(e[s],t[s]))return!1}return!0}return e!==e&&t!==t};const Jf=It(Hf);function Wf(i,e){const t=ae(i);return t==="number"&&(e==="integer"||Array.isArray(e)&&e.includes("integer"))?Number.isInteger(i)||isNaN(i)?"integer":"number":t}function Kf(i,e,t=i.rootSchema,r="#"){if(t=i.resolveRef(t),ae(t)==="boolean")return t?[]:[i.errors.invalidDataError({value:e,pointer:r})];if(Re(t))return[t];if(t.const!==void 0)return Jf(t.const,e)?[]:[i.errors.constError({value:e,expected:t.const,pointer:r})];const n=Wf(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})]:at(i.validateType[n](i,t,e,r)).filter(Pt)}const ni={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:qf,validateType:Zf,validateFormat:Lf,errors:he,addRemoteSchema:Co,compileSchema:Ef,createSchemaOf:Ke,each:yf,eachSchema:Xr,getChildSchemaSelection:Bf,getSchema:Lo,getTemplate:Mf,isValid:Vf,resolveAllOf:Ao,resolveAnyOf:Ff,resolveOneOf:ao,resolveRef:Io,step:vt,validate:Kf};class Qf extends zo{constructor(e,t={}){super(ct(ni,t),e)}}({...ni});function gr(i,e,t){const r=i.slice();return r[11]=e[t],r[12]=e,r[13]=t,r}function _r(i){let e,t,r=i[13]+1+"",n,l,s,o,f,a,u,c,d,p,g;function A(b){i[8](b,i[13])}let j={path:i[1]+"/"+i[13],schema:i[3],rootValue:i[2],validationErrors:i[4],customComponents:i[5],required:!0};i[0][i[13]]!==void 0&&(j.value=i[0][i[13]]),o=new ln({props:j}),De.push(()=>Ve(o,"value",A));function k(){return i[9](i[13])}return{c(){e=M("div"),t=M("div"),n=ge(r),l=se(),s=M("div"),H(o.$$.fragment),a=se(),u=M("button"),c=ge("remove"),this.h()},l(b){e=V(b,"DIV",{class:!0});var E=$(e);t=V(E,"DIV",{class:!0});var w=$(t);n=_e(w,r),w.forEach(h),l=oe(E),s=V(E,"DIV",{class:!0});var N=$(s);re(o.$$.fragment,N),a=oe(N),u=V(N,"BUTTON",{class:!0});var R=$(u);c=_e(R,"remove"),R.forEach(h),N.forEach(h),E.forEach(h),this.h()},h(){I(t,"class","w-8 shrink-0 text-lg"),I(u,"class","bg-slate-600 p-2 text-white hover:bg-slate-400"),I(s,"class","flex w-full grow flex-col"),I(e,"class","mb-4 flex w-full flex-row")},m(b,E){O(b,e,E),x(e,t),x(t,n),x(e,l),x(e,s),J(o,s,null),x(s,a),x(s,u),x(u,c),d=!0,p||(g=me(u,"click",k),p=!0)},p(b,E){i=b;const w={};E&2&&(w.path=i[1]+"/"+i[13]),E&8&&(w.schema=i[3]),E&4&&(w.rootValue=i[2]),E&16&&(w.validationErrors=i[4]),E&32&&(w.customComponents=i[5]),!f&&E&1&&(f=!0,w.value=i[0][i[13]],Je(()=>f=!1)),o.$set(w)},i(b){d||(m(o.$$.fragment,b),d=!0)},o(b){_(o.$$.fragment,b),d=!1},d(b){b&&h(e),W(o),p=!1,g()}}}function Gf(i){let e,t,r=i[7].title+"",n,l,s,o,f,a,u,c,d,p=i[0]||[],g=[];for(let j=0;j<p.length;j+=1)g[j]=_r(gr(i,p,j));const A=j=>_(g[j],1,1,()=>{g[j]=null});return{c(){e=M("div"),t=M("span"),n=ge(r),l=se();for(let j=0;j<g.length;j+=1)g[j].c();s=se(),o=M("div"),f=M("button"),a=ge("+ add"),this.h()},l(j){e=V(j,"DIV",{class:!0});var k=$(e);t=V(k,"SPAN",{class:!0});var b=$(t);n=_e(b,r),b.forEach(h),l=oe(k);for(let N=0;N<g.length;N+=1)g[N].l(k);s=oe(k),o=V(k,"DIV",{});var E=$(o);f=V(E,"BUTTON",{class:!0});var w=$(f);a=_e(w,"+ add"),w.forEach(h),E.forEach(h),k.forEach(h),this.h()},h(){var j;I(t,"class","bx--label"),I(f,"class","bg-slate-600 p-2 text-white hover:bg-slate-400"),S(f,"ml-8",((j=i[0])==null?void 0:j.length)>0),I(e,"class","bx--form-item flex flex-col")},m(j,k){O(j,e,k),x(e,t),x(t,n),x(e,l);for(let b=0;b<g.length;b+=1)g[b]&&g[b].m(e,null);x(e,s),x(e,o),x(o,f),x(f,a),u=!0,c||(d=me(f,"click",i[10]),c=!0)},p(j,[k]){var b;if((!u||k&128)&&r!==(r=j[7].title+"")&&Te(n,r),k&63){p=j[0]||[];let E;for(E=0;E<p.length;E+=1){const w=gr(j,p,E);g[E]?(g[E].p(w,k),m(g[E],1)):(g[E]=_r(w),g[E].c(),m(g[E],1),g[E].m(e,s))}for(G(),E=p.length;E<g.length;E+=1)A(E);Y()}(!u||k&1)&&S(f,"ml-8",((b=j[0])==null?void 0:b.length)>0)},i(j){if(!u){for(let k=0;k<p.length;k+=1)m(g[k]);u=!0}},o(j){g=g.filter(Boolean);for(let k=0;k<g.length;k+=1)_(g[k]);u=!1},d(j){j&&h(e),He(g,j),c=!1,d()}}}function Yf(i,e,t){let r,n,{path:l}=e,{value:s=[]}=e,{rootValue:o}=e,{schema:f}=e,{validationErrors:a=[]}=e,{customComponents:u}=e;function c(g,A){i.$$.not_equal(s[A],g)&&(s[A]=g,t(0,s))}const d=g=>{s.splice(g,1),t(0,s)},p=()=>{t(0,s=[...s||[],n])};return i.$$set=g=>{"path"in g&&t(1,l=g.path),"value"in g&&t(0,s=g.value),"rootValue"in g&&t(2,o=g.rootValue),"schema"in g&&t(3,f=g.schema),"validationErrors"in g&&t(4,a=g.validationErrors),"customComponents"in g&&t(5,u=g.customComponents)},i.$$.update=()=>{i.$$.dirty&11&&t(7,r=f.getSchema(l,s)),i.$$.dirty&11&&t(6,n=f.getTemplate(void 0,f.getSchema(l+"/0",s)))},[s,l,o,f,a,u,n,r,c,d,p]}class Xf extends ue{constructor(e){super(),ce(this,e,Yf,Gf,de,{path:1,value:0,rootValue:2,schema:3,validationErrors:4,customComponents:5})}}function br(i,e,t){const r=i.slice();return r[23]=e[t],r[24]=e,r[25]=t,r}function Er(i,e,t){const r=i.slice();return r[20]=e[t],r}function yr(i){let e,t,r,n;const l=[fa,oa,sa,la,ia,ra,na,ta,ea],s=[];function o(f,a){return f[8][f[2]]?0:f[10].type=="error"?1:f[10].enum?2:f[10].type=="string"?3:f[10].type=="number"?4:f[10].type=="boolean"?5:f[10].type=="array"?6:f[10].type=="object"?7:8}return e=o(i),t=s[e]=l[e](i),{c(){t.c(),r=q()},l(f){t.l(f),r=q()},m(f,a){s[e].m(f,a),O(f,r,a),n=!0},p(f,a){let u=e;e=o(f),e===u?s[e].p(f,a):(G(),_(s[u],1,1,()=>{s[u]=null}),Y(),t=s[e],t?t.p(f,a):(t=s[e]=l[e](f),t.c()),m(t,1),t.m(r.parentNode,r))},i(f){n||(m(t),n=!0)},o(f){_(t),n=!1},d(f){s[e].d(f),f&&h(r)}}}function ea(i){let e,t=JSON.stringify(i[10])+"",r;return{c(){e=ge("Unknown property: "),r=ge(t)},l(n){e=_e(n,"Unknown property: "),r=_e(n,t)},m(n,l){O(n,e,l),O(n,r,l)},p(n,l){l&1024&&t!==(t=JSON.stringify(n[10])+"")&&Te(r,t)},i:pe,o:pe,d(n){n&&h(e),n&&h(r)}}}function ta(i){let e,t,r,n=i[10].description&&i[6]&&kr(i),l=Object.keys(i[10].properties??{}),s=[];for(let f=0;f<l.length;f+=1)s[f]=vr(br(i,l,f));const o=f=>_(s[f],1,1,()=>{s[f]=null});return{c(){n&&n.c(),e=se();for(let f=0;f<s.length;f+=1)s[f].c();t=q()},l(f){n&&n.l(f),e=oe(f);for(let a=0;a<s.length;a+=1)s[a].l(f);t=q()},m(f,a){n&&n.m(f,a),O(f,e,a);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(f,a);O(f,t,a),r=!0},p(f,a){if(f[10].description&&f[6]?n?(n.p(f,a),a&1088&&m(n,1)):(n=kr(f),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(G(),_(n,1,1,()=>{n=null}),Y()),a&1463){l=Object.keys(f[10].properties??{});let u;for(u=0;u<l.length;u+=1){const c=br(f,l,u);s[u]?(s[u].p(c,a),m(s[u],1)):(s[u]=vr(c),s[u].c(),m(s[u],1),s[u].m(t.parentNode,t))}for(G(),u=l.length;u<s.length;u+=1)o(u);Y()}},i(f){if(!r){m(n);for(let a=0;a<l.length;a+=1)m(s[a]);r=!0}},o(f){_(n),s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)_(s[a]);r=!1},d(f){n&&n.d(f),f&&h(e),He(s,f),f&&h(t)}}}function na(i){let e,t,r;function n(s){i[18](s)}let l={path:i[2],schema:i[1],validationErrors:i[7],customComponents:i[8],rootValue:i[4]};return i[0]!==void 0&&(l.value=i[0]),e=new Xf({props:l}),De.push(()=>Ve(e,"value",n)),{c(){H(e.$$.fragment)},l(s){re(e.$$.fragment,s)},m(s,o){J(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.path=s[2]),o&2&&(f.schema=s[1]),o&128&&(f.validationErrors=s[7]),o&256&&(f.customComponents=s[8]),o&16&&(f.rootValue=s[4]),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){_(e.$$.fragment,s),r=!1},d(s){W(e,s)}}}function ra(i){let e,t,r,n,l,s=i[10].description+"",o,f;function a(c){i[17](c)}let u={labelA:"False",labelB:"True",labelText:i[12]};return i[0]!==void 0&&(u.toggled=i[0]),t=new hi({props:u}),De.push(()=>Ve(t,"toggled",a)),{c(){e=M("div"),H(t.$$.fragment),n=se(),l=M("span"),o=ge(s),this.h()},l(c){e=V(c,"DIV",{});var d=$(e);re(t.$$.fragment,d),n=oe(d),l=V(d,"SPAN",{class:!0});var p=$(l);o=_e(p,s),p.forEach(h),d.forEach(h),this.h()},h(){I(l,"class","bx--form__helper-text")},m(c,d){O(c,e,d),J(t,e,null),x(e,n),x(e,l),x(l,o),f=!0},p(c,d){const p={};d&4096&&(p.labelText=c[12]),!r&&d&1&&(r=!0,p.toggled=c[0],Je(()=>r=!1)),t.$set(p),(!f||d&1024)&&s!==(s=c[10].description+"")&&Te(o,s)},i(c){f||(m(t.$$.fragment,c),f=!0)},o(c){_(t.$$.fragment,c),f=!1},d(c){c&&h(e),W(t)}}}function ia(i){let e,t,r;function n(s){i[16](s)}let l={name:i[2],helperText:i[10].description,label:i[12],invalid:!i[0]&&i[3]};return i[0]!==void 0&&(l.value=i[0]),e=new Li({props:l}),De.push(()=>Ve(e,"value",n)),{c(){H(e.$$.fragment)},l(s){re(e.$$.fragment,s)},m(s,o){J(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.name=s[2]),o&1024&&(f.helperText=s[10].description),o&4096&&(f.label=s[12]),o&9&&(f.invalid=!s[0]&&s[3]),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){_(e.$$.fragment,s),r=!1},d(s){W(e,s)}}}function la(i){let e,t,r;function n(s){i[15](s)}let l={name:i[2],helperText:i[10].description,labelText:i[12],invalid:!!i[9].length,invalidText:i[11],placeholder:i[3]?"":"(optional)"};return i[0]!==void 0&&(l.value=i[0]),e=new Fi({props:l}),De.push(()=>Ve(e,"value",n)),{c(){H(e.$$.fragment)},l(s){re(e.$$.fragment,s)},m(s,o){J(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.name=s[2]),o&1024&&(f.helperText=s[10].description),o&4096&&(f.labelText=s[12]),o&512&&(f.invalid=!!s[9].length),o&2048&&(f.invalidText=s[11]),o&8&&(f.placeholder=s[3]?"":"(optional)"),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){_(e.$$.fragment,s),r=!1},d(s){W(e,s)}}}function sa(i){let e,t,r;function n(s){i[14](s)}let l={name:i[2],helperText:i[10].description,labelText:i[12],$$slots:{default:[aa]},$$scope:{ctx:i}};return i[0]!==void 0&&(l.selected=i[0]),e=new pi({props:l}),De.push(()=>Ve(e,"selected",n)),{c(){H(e.$$.fragment)},l(s){re(e.$$.fragment,s)},m(s,o){J(e,s,o),r=!0},p(s,o){const f={};o&4&&(f.name=s[2]),o&1024&&(f.helperText=s[10].description),o&4096&&(f.labelText=s[12]),o&67109896&&(f.$$scope={dirty:o,ctx:s}),!t&&o&1&&(t=!0,f.selected=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){_(e.$$.fragment,s),r=!1},d(s){W(e,s)}}}function oa(i){let e,t=i[10].message+"",r;return{c(){e=M("div"),r=ge(t),this.h()},l(n){e=V(n,"DIV",{class:!0});var l=$(e);r=_e(l,t),l.forEach(h),this.h()},h(){I(e,"class","text-red-600")},m(n,l){O(n,e,l),x(e,r)},p(n,l){l&1024&&t!==(t=n[10].message+"")&&Te(r,t)},i:pe,o:pe,d(n){n&&h(e)}}}function fa(i){let e,t,r,n;function l(f){i[13](f)}var s=i[8][i[2]];function o(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 s&&(e=Ee(s,o(i)),De.push(()=>Ve(e,"value",l))),{c(){e&&H(e.$$.fragment),r=q()},l(f){e&&re(e.$$.fragment,f),r=q()},m(f,a){e&&J(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],Je(()=>t=!1)),a&260&&s!==(s=f[8][f[2]])){if(e){G();const c=e;_(c.$$.fragment,1,0,()=>{W(c,1)}),Y()}s?(e=Ee(s,o(f)),De.push(()=>Ve(e,"value",l)),H(e.$$.fragment),m(e.$$.fragment,1),J(e,r.parentNode,r)):e=null}else s&&e.$set(u)},i(f){n||(e&&m(e.$$.fragment,f),n=!0)},o(f){e&&_(e.$$.fragment,f),n=!1},d(f){f&&h(r),e&&W(e,f)}}}function kr(i){let e,t,r;return t=new to({props:{source:i[10].description}}),{c(){e=M("div"),H(t.$$.fragment),this.h()},l(n){e=V(n,"DIV",{class:!0});var l=$(e);re(t.$$.fragment,l),l.forEach(h),this.h()},h(){I(e,"class","description mb-4")},m(n,l){O(n,e,l),J(t,e,null),r=!0},p(n,l){const s={};l&1024&&(s.source=n[10].description),t.$set(s)},i(n){r||(m(t.$$.fragment,n),r=!0)},o(n){_(t.$$.fragment,n),r=!1},d(n){n&&h(e),W(t)}}}function vr(i){var s;let e,t,r;function n(o){i[19](o,i[23])}let l={path:i[2]+"/"+i[23],schema:i[1],hiddenProperties:i[5],validationErrors:i[7],customComponents:i[8],rootValue:i[4],required:(s=i[10].required)==null?void 0:s.includes(i[23])};return i[0][i[23]]!==void 0&&(l.value=i[0][i[23]]),e=new ln({props:l}),De.push(()=>Ve(e,"value",n)),{c(){H(e.$$.fragment)},l(o){re(e.$$.fragment,o)},m(o,f){J(e,o,f),r=!0},p(o,f){var u;i=o;const a={};f&1028&&(a.path=i[2]+"/"+i[23]),f&2&&(a.schema=i[1]),f&32&&(a.hiddenProperties=i[5]),f&128&&(a.validationErrors=i[7]),f&256&&(a.customComponents=i[8]),f&16&&(a.rootValue=i[4]),f&1024&&(a.required=(u=i[10].required)==null?void 0:u.includes(i[23])),!t&&f&1025&&(t=!0,a.value=i[0][i[23]],Je(()=>t=!1)),e.$set(a)},i(o){r||(m(e.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),r=!1},d(o){W(e,o)}}}function wr(i){let e,t;return e=new Rr({props:{value:void 0,text:"None"}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},p:pe,i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function Or(i){let e,t;return e=new Rr({props:{value:i[20]}}),{c(){H(e.$$.fragment)},l(r){re(e.$$.fragment,r)},m(r,n){J(e,r,n),t=!0},p(r,n){const l={};n&1024&&(l.value=r[20]),e.$set(l)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){_(e.$$.fragment,r),t=!1},d(r){W(e,r)}}}function aa(i){let e,t,r,n=!i[3]&&wr(),l=i[10].enum,s=[];for(let f=0;f<l.length;f+=1)s[f]=Or(Er(i,l,f));const o=f=>_(s[f],1,1,()=>{s[f]=null});return{c(){n&&n.c(),e=se();for(let f=0;f<s.length;f+=1)s[f].c();t=q()},l(f){n&&n.l(f),e=oe(f);for(let a=0;a<s.length;a+=1)s[a].l(f);t=q()},m(f,a){n&&n.m(f,a),O(f,e,a);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(f,a);O(f,t,a),r=!0},p(f,a){if(f[3]?n&&(G(),_(n,1,1,()=>{n=null}),Y()):n?(n.p(f,a),a&8&&m(n,1)):(n=wr(),n.c(),m(n,1),n.m(e.parentNode,e)),a&1024){l=f[10].enum;let u;for(u=0;u<l.length;u+=1){const c=Er(f,l,u);s[u]?(s[u].p(c,a),m(s[u],1)):(s[u]=Or(c),s[u].c(),m(s[u],1),s[u].m(t.parentNode,t))}for(G(),u=l.length;u<s.length;u+=1)o(u);Y()}},i(f){if(!r){m(n);for(let a=0;a<l.length;a+=1)m(s[a]);r=!0}},o(f){_(n),s=s.filter(Boolean);for(let a=0;a<s.length;a+=1)_(s[a]);r=!1},d(f){n&&n.d(f),f&&h(e),He(s,f),f&&h(t)}}}function ua(i){var l;let e=!((l=i[5])!=null&&l.includes(i[2])),t,r,n=e&&yr(i);return{c(){n&&n.c(),t=q()},l(s){n&&n.l(s),t=q()},m(s,o){n&&n.m(s,o),O(s,t,o),r=!0},p(s,[o]){var f;o&36&&(e=!((f=s[5])!=null&&f.includes(s[2]))),e?n?(n.p(s,o),o&36&&m(n,1)):(n=yr(s),n.c(),m(n,1),n.m(t.parentNode,t)):n&&(G(),_(n,1,1,()=>{n=null}),Y())},i(s){r||(m(n),r=!0)},o(s){_(n),r=!1},d(s){n&&n.d(s),s&&h(t)}}}function ca(i,e,t){let r,n,l,{schema:s}=e,{path:o=""}=e,{required:f=!1}=e,{value:a}=e,{rootValue:u}=e,{hiddenProperties:c=[]}=e,{showDescription:d=!0}=e,{validationErrors:p=[]}=e,{customComponents:g}=e,A="";function j(L){a=L,t(0,a)}function k(L){a=L,t(0,a)}function b(L){a=L,t(0,a)}function E(L){a=L,t(0,a)}function w(L){a=L,t(0,a)}function N(L){a=L,t(0,a)}function R(L,fe){i.$$.not_equal(a[fe],L)&&(a[fe]=L,t(0,a))}return i.$$set=L=>{"schema"in L&&t(1,s=L.schema),"path"in L&&t(2,o=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,p=L.validationErrors),"customComponents"in L&&t(8,g=L.customComponents)},i.$$.update=()=>{i.$$.dirty&1&&a===""&&t(0,a=void 0),i.$$.dirty&7&&t(10,r=s.getSchema(o,a)),i.$$.dirty&1032&&t(12,n=r.title?`${r.title} ${f?"*":""}`:""),i.$$.dirty&132&&t(9,l=p.filter(L=>{var fe,Q,te;return`${(fe=L==null?void 0:L.data)==null?void 0:fe.pointer}${(Q=L==null?void 0:L.data)!=null&&Q.key?"/"+((te=L==null?void 0:L.data)==null?void 0:te.key):""}`.replaceAll("#","")==o})),i.$$.dirty&512&&(l.length==0?t(11,A=""):l[0].code==="min-length-one-error"||l[0].code==="required-property-error"?t(11,A="Value is required"):t(11,A=l[0].message))},[a,s,o,f,u,c,d,p,g,l,r,A,n,j,k,b,E,w,N,R]}class ln extends ue{constructor(e){super(),ce(this,e,ca,ua,de,{schema:1,path:2,required:3,value:0,rootValue:4,hiddenProperties:5,showDescription:6,validationErrors:7,customComponents:8})}}function Sr(i){let e,t,r;function n(s){i[7](s)}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 ln({props:l}),De.push(()=>Ve(e,"value",n)),{c(){H(e.$$.fragment)},l(s){re(e.$$.fragment,s)},m(s,o){J(e,s,o),r=!0},p(s,o){const f={};o&32&&(f.schema=s[5]),o&4&&(f.hiddenProperties=s[2]),o&8&&(f.showDescription=s[3]),o&2&&(f.validationErrors=s[1]),o&16&&(f.customComponents=s[4]),o&1&&(f.rootValue=s[0]),!t&&o&1&&(t=!0,f.value=s[0],Je(()=>t=!1)),e.$set(f)},i(s){r||(m(e.$$.fragment,s),r=!0)},o(s){_(e.$$.fragment,s),r=!1},d(s){W(e,s)}}}function da(i){let e,t,r=i[5]&&Sr(i);return{c(){r&&r.c(),e=q()},l(n){r&&r.l(n),e=q()},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&&m(r,1)):(r=Sr(n),r.c(),m(r,1),r.m(e.parentNode,e)):r&&(G(),_(r,1,1,()=>{r=null}),Y())},i(n){t||(m(r),t=!0)},o(n){_(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:s=[]}=e,{validationErrors:o=[]}=e,{showDescription:f=!0}=e,{customComponents:a={}}=e;function u(d){t(0,l=d.getTemplate(l,void 0,{addOptionalProps:!1}))}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,s=d.hiddenProperties),"validationErrors"in d&&t(1,o=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 Qf(n):null),i.$$.dirty&32&&r&&u(r),i.$$.dirty&33&&t(1,o=r?r.validate(l):[])},[l,o,s,f,a,r,n,c]}class ya extends ue{constructor(e){super(),ce(this,e,ha,da,de,{schema:6,value:0,hiddenProperties:2,validationErrors:1,showDescription:3,customComponents:4})}}export{ya as J,to as S,Fi as T,It as a,Bi as c,ba as g};