(function(P,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(P=typeof globalThis<"u"?globalThis:P||self,l(P["v-bs-forms"]={},P.Vue))})(this,function(P,l){"use strict";function yo(t){return t.type!=="group"}function Gt(t){return t&&t.type==="group"}function _o(t){return Object.fromEntries(Object.entries(t.fields).filter(([,e])=>e&&Gt(e)))}function Eo(t){let e={};return e={...e,...Object.fromEntries(Object.entries(t.fields).filter(([,r])=>r&&yo(r)))},Object.values(_o(t)).forEach(r=>{e={...e,...r.fields}}),e}function bo(t){var n;const e={},r=Eo(t);for(const o in r){const i=r[o];if(i.validate){const s=(n=t.data)==null?void 0:n[o];e[o]=i.validate(s)}}return e}const vo=t=>{t.errors={}},So=t=>Object.fromEntries(Object.entries(t).filter(([,e])=>!(e!=null&&e.valid))),wo=t=>{const e=bo(t);let r=So(e);return t.callbacks.onValidate&&(r=t.callbacks.onValidate(r,t)),r},oe=l.defineComponent({props:{field:{type:Object,required:!0},form:{type:Object,required:!0},formKey:{type:String,required:!0},modelValue:{default:void 0}},emits:["update:modelValue"],watch:{value(t){this.$emit("update:modelValue",t)},"form.data":{handler(t){this.formKey&&(this.value=t[this.formKey])},deep:!0}},computed:{wrapperClass(){return this.field.wrapperClass??{"mb-3":!0}}},data(t){return{value:t.modelValue}}}),Ja=l.defineComponent({props:{validation:{type:Object,required:!0}},computed:{valid(){return this.validation.valid},message(){return"message"in this.validation?this.validation.message:""}}}),x=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},Xa={class:"invalid-feedback",role:"alert"};function Qa(t,e,r,n,o,i){return l.withDirectives((l.openBlock(),l.createElementBlock("div",Xa,[l.createElementVNode("strong",null,l.toDisplayString(t.message),1)],512)),[[l.vShow,!t.valid]])}const ie=x(Ja,[["render",Qa]]),Za=l.defineComponent({props:{field:{type:Object,required:!0},attributes:{type:Object,default:{}}}}),el={key:0,class:"card-header"},tl={class:"card-body"},rl={key:0,class:"card-title"},nl={key:0,class:"ms-1 text-danger"},ol={key:1,class:"card-subtitle mb-2 text-muted"},il={key:2,class:"card-text"},sl={key:1,class:"card-footer text-muted"};function al(t,e,r,n,o,i){return l.openBlock(),l.createElementBlock("div",l.mergeProps({class:"card",ref:"root"},t.attributes),[t.field.header?(l.openBlock(),l.createElementBlock("div",el,l.toDisplayString(t.field.header),1)):l.createCommentVNode("",!0),l.createElementVNode("div",tl,[t.field.title?(l.openBlock(),l.createElementBlock("h5",rl,[l.createTextVNode(l.toDisplayString(t.field.title),1),t.attributes.required?(l.openBlock(),l.createElementBlock("span",nl,"*")):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),t.field.subtitle?(l.openBlock(),l.createElementBlock("h6",ol,l.toDisplayString(t.field.subtitle),1)):l.createCommentVNode("",!0),t.field.description?(l.openBlock(),l.createElementBlock("p",il,l.toDisplayString(t.field.description),1)):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"body")]),l.renderSlot(t.$slots,"default"),t.field.footer||t.$slots.footer?(l.openBlock(),l.createElementBlock("div",sl,[l.createTextVNode(l.toDisplayString(t.field.footer)+" ",1),l.renderSlot(t.$slots,"footer")])):l.createCommentVNode("",!0)],16)}const Mr=x(Za,[["render",al]]);var q="top",G="bottom",Y="right",K="left",Yt="auto",Je=[q,G,Y,K],Fe="start",Xe="end",Ao="clippingParents",Vr="viewport",Qe="popper",To="reference",Br=Je.reduce(function(t,e){return t.concat([e+"-"+Fe,e+"-"+Xe])},[]),xr=[].concat(Je,[Yt]).reduce(function(t,e){return t.concat([e,e+"-"+Fe,e+"-"+Xe])},[]),Oo="beforeRead",Co="read",No="afterRead",$o="beforeMain",Po="main",Do="afterMain",Io="beforeWrite",Lo="write",Ro="afterWrite",ko=[Oo,Co,No,$o,Po,Do,Io,Lo,Ro];function se(t){return t?(t.nodeName||"").toLowerCase():null}function J(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Me(t){var e=J(t).Element;return t instanceof e||t instanceof Element}function Q(t){var e=J(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function jr(t){if(typeof ShadowRoot>"u")return!1;var e=J(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function ll(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!Q(i)||!se(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function cl(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=s.reduce(function(c,u){return c[u]="",c},{});!Q(o)||!se(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const Ur={name:"applyStyles",enabled:!0,phase:"write",fn:ll,effect:cl,requires:["computeStyles"]};function ae(t){return t.split("-")[0]}var Ve=Math.max,Jt=Math.min,Ze=Math.round;function Hr(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Fo(){return!/^((?!chrome|android).)*safari/i.test(Hr())}function et(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&Q(t)&&(o=t.offsetWidth>0&&Ze(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&Ze(n.height)/t.offsetHeight||1);var s=Me(t)?J(t):window,a=s.visualViewport,c=!Fo()&&r,u=(n.left+(c&&a?a.offsetLeft:0))/o,f=(n.top+(c&&a?a.offsetTop:0))/i,h=n.width/o,g=n.height/i;return{width:h,height:g,top:f,right:u+h,bottom:f+g,left:u,x:u,y:f}}function Wr(t){var e=et(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function Mo(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&jr(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function he(t){return J(t).getComputedStyle(t)}function ul(t){return["table","td","th"].indexOf(se(t))>=0}function Se(t){return((Me(t)?t.ownerDocument:t.document)||window.document).documentElement}function Xt(t){return se(t)==="html"?t:t.assignedSlot||t.parentNode||(jr(t)?t.host:null)||Se(t)}function Vo(t){return!Q(t)||he(t).position==="fixed"?null:t.offsetParent}function fl(t){var e=/firefox/i.test(Hr()),r=/Trident/i.test(Hr());if(r&&Q(t)){var n=he(t);if(n.position==="fixed")return null}var o=Xt(t);for(jr(o)&&(o=o.host);Q(o)&&["html","body"].indexOf(se(o))<0;){var i=he(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function At(t){for(var e=J(t),r=Vo(t);r&&ul(r)&&he(r).position==="static";)r=Vo(r);return r&&(se(r)==="html"||se(r)==="body"&&he(r).position==="static")?e:r||fl(t)||e}function qr(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Tt(t,e,r){return Ve(t,Jt(e,r))}function dl(t,e,r){var n=Tt(t,e,r);return n>r?r:n}function Bo(){return{top:0,right:0,bottom:0,left:0}}function xo(t){return Object.assign({},Bo(),t)}function jo(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var pl=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,xo(typeof e!="number"?e:jo(e,Je))};function hl(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=ae(r.placement),c=qr(a),u=[K,Y].indexOf(a)>=0,f=u?"height":"width";if(!(!i||!s)){var h=pl(o.padding,r),g=Wr(i),y=c==="y"?q:K,d=c==="y"?G:Y,p=r.rects.reference[f]+r.rects.reference[c]-s[c]-r.rects.popper[f],E=s[c]-r.rects.reference[c],b=At(i),A=b?c==="y"?b.clientHeight||0:b.clientWidth||0:0,O=p/2-E/2,S=h[y],C=A-g[f]-h[d],v=A/2-g[f]/2+O,w=Tt(S,v,C),N=c;r.modifiersData[n]=(e={},e[N]=w,e.centerOffset=w-v,e)}}function ml(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||Mo(e.elements.popper,o)&&(e.elements.arrow=o))}const Uo={name:"arrow",enabled:!0,phase:"main",fn:hl,effect:ml,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var gl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yl(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:Ze(r*o)/o||0,y:Ze(n*o)/o||0}}function Ho(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,u=t.adaptive,f=t.roundOffsets,h=t.isFixed,g=s.x,y=g===void 0?0:g,d=s.y,p=d===void 0?0:d,E=typeof f=="function"?f({x:y,y:p}):{x:y,y:p};y=E.x,p=E.y;var b=s.hasOwnProperty("x"),A=s.hasOwnProperty("y"),O=K,S=q,C=window;if(u){var v=At(r),w="clientHeight",N="clientWidth";if(v===J(r)&&(v=Se(r),he(v).position!=="static"&&a==="absolute"&&(w="scrollHeight",N="scrollWidth")),v=v,o===q||(o===K||o===Y)&&i===Xe){S=G;var I=h&&v===C&&C.visualViewport?C.visualViewport.height:v[w];p-=I-n.height,p*=c?1:-1}if(o===K||(o===q||o===G)&&i===Xe){O=Y;var L=h&&v===C&&C.visualViewport?C.visualViewport.width:v[N];y-=L-n.width,y*=c?1:-1}}var k=Object.assign({position:a},u&&gl),B=f===!0?yl({x:y,y:p},J(r)):{x:y,y:p};if(y=B.x,p=B.y,c){var R;return Object.assign({},k,(R={},R[S]=A?"0":"",R[O]=b?"0":"",R.transform=(C.devicePixelRatio||1)<=1?"translate("+y+"px, "+p+"px)":"translate3d("+y+"px, "+p+"px, 0)",R))}return Object.assign({},k,(e={},e[S]=A?p+"px":"",e[O]=b?y+"px":"",e.transform="",e))}function _l(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,c=a===void 0?!0:a,u={placement:ae(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ho(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ho(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Kr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:_l,data:{}};var Qt={passive:!0};function El(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,c=J(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(f){f.addEventListener("scroll",r.update,Qt)}),a&&c.addEventListener("resize",r.update,Qt),function(){i&&u.forEach(function(f){f.removeEventListener("scroll",r.update,Qt)}),a&&c.removeEventListener("resize",r.update,Qt)}}const zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:El,data:{}};var bl={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(t){return t.replace(/left|right|bottom|top/g,function(e){return bl[e]})}var vl={start:"end",end:"start"};function Wo(t){return t.replace(/start|end/g,function(e){return vl[e]})}function Gr(t){var e=J(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Yr(t){return et(Se(t)).left+Gr(t).scrollLeft}function Sl(t,e){var r=J(t),n=Se(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var u=Fo();(u||!u&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+Yr(t),y:c}}function wl(t){var e,r=Se(t),n=Gr(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=Ve(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=Ve(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+Yr(t),c=-n.scrollTop;return he(o||r).direction==="rtl"&&(a+=Ve(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function Jr(t){var e=he(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function qo(t){return["html","body","#document"].indexOf(se(t))>=0?t.ownerDocument.body:Q(t)&&Jr(t)?t:qo(Xt(t))}function Ot(t,e){var r;e===void 0&&(e=[]);var n=qo(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=J(n),s=o?[i].concat(i.visualViewport||[],Jr(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Ot(Xt(s)))}function Xr(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Al(t,e){var r=et(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ko(t,e,r){return e===Vr?Xr(Sl(t,r)):Me(e)?Al(e,r):Xr(wl(Se(t)))}function Tl(t){var e=Ot(Xt(t)),r=["absolute","fixed"].indexOf(he(t).position)>=0,n=r&&Q(t)?At(t):t;return Me(n)?e.filter(function(o){return Me(o)&&Mo(o,n)&&se(o)!=="body"}):[]}function Ol(t,e,r,n){var o=e==="clippingParents"?Tl(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(c,u){var f=Ko(t,u,n);return c.top=Ve(f.top,c.top),c.right=Jt(f.right,c.right),c.bottom=Jt(f.bottom,c.bottom),c.left=Ve(f.left,c.left),c},Ko(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function zo(t){var e=t.reference,r=t.element,n=t.placement,o=n?ae(n):null,i=n?tt(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,c;switch(o){case q:c={x:s,y:e.y-r.height};break;case G:c={x:s,y:e.y+e.height};break;case Y:c={x:e.x+e.width,y:a};break;case K:c={x:e.x-r.width,y:a};break;default:c={x:e.x,y:e.y}}var u=o?qr(o):null;if(u!=null){var f=u==="y"?"height":"width";switch(i){case Fe:c[u]=c[u]-(e[f]/2-r[f]/2);break;case Xe:c[u]=c[u]+(e[f]/2-r[f]/2);break}}return c}function rt(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,s=i===void 0?t.strategy:i,a=r.boundary,c=a===void 0?Ao:a,u=r.rootBoundary,f=u===void 0?Vr:u,h=r.elementContext,g=h===void 0?Qe:h,y=r.altBoundary,d=y===void 0?!1:y,p=r.padding,E=p===void 0?0:p,b=xo(typeof E!="number"?E:jo(E,Je)),A=g===Qe?To:Qe,O=t.rects.popper,S=t.elements[d?A:g],C=Ol(Me(S)?S:S.contextElement||Se(t.elements.popper),c,f,s),v=et(t.elements.reference),w=zo({reference:v,element:O,strategy:"absolute",placement:o}),N=Xr(Object.assign({},O,w)),I=g===Qe?N:v,L={top:C.top-I.top+b.top,bottom:I.bottom-C.bottom+b.bottom,left:C.left-I.left+b.left,right:I.right-C.right+b.right},k=t.modifiersData.offset;if(g===Qe&&k){var B=k[o];Object.keys(L).forEach(function(R){var W=[Y,G].indexOf(R)>=0?1:-1,U=[q,G].indexOf(R)>=0?"y":"x";L[R]+=B[U]*W})}return L}function Cl(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,c=r.allowedAutoPlacements,u=c===void 0?xr:c,f=tt(n),h=f?a?Br:Br.filter(function(d){return tt(d)===f}):Je,g=h.filter(function(d){return u.indexOf(d)>=0});g.length===0&&(g=h);var y=g.reduce(function(d,p){return d[p]=rt(t,{placement:p,boundary:o,rootBoundary:i,padding:s})[ae(p)],d},{});return Object.keys(y).sort(function(d,p){return y[d]-y[p]})}function Nl(t){if(ae(t)===Yt)return[];var e=Zt(t);return[Wo(t),e,Wo(e)]}function $l(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,c=r.fallbackPlacements,u=r.padding,f=r.boundary,h=r.rootBoundary,g=r.altBoundary,y=r.flipVariations,d=y===void 0?!0:y,p=r.allowedAutoPlacements,E=e.options.placement,b=ae(E),A=b===E,O=c||(A||!d?[Zt(E)]:Nl(E)),S=[E].concat(O).reduce(function(wt,ke){return wt.concat(ae(ke)===Yt?Cl(e,{placement:ke,boundary:f,rootBoundary:h,padding:u,flipVariations:d,allowedAutoPlacements:p}):ke)},[]),C=e.rects.reference,v=e.rects.popper,w=new Map,N=!0,I=S[0],L=0;L=0,U=W?"width":"height",M=rt(e,{placement:k,boundary:f,rootBoundary:h,altBoundary:g,padding:u}),X=W?R?Y:K:R?G:q;C[U]>v[U]&&(X=Zt(X));var ze=Zt(X),ne=[];if(i&&ne.push(M[B]<=0),a&&ne.push(M[X]<=0,M[ze]<=0),ne.every(function(wt){return wt})){I=k,N=!1;break}w.set(k,ne)}if(N)for(var Lr=d?3:1,po=function(ke){var zt=S.find(function(kr){var Ge=w.get(kr);if(Ge)return Ge.slice(0,ke).every(function(ho){return ho})});if(zt)return I=zt,"break"},Kt=Lr;Kt>0;Kt--){var Rr=po(Kt);if(Rr==="break")break}e.placement!==I&&(e.modifiersData[n]._skip=!0,e.placement=I,e.reset=!0)}}const Go={name:"flip",enabled:!0,phase:"main",fn:$l,requiresIfExists:["offset"],data:{_skip:!1}};function Yo(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function Jo(t){return[q,Y,G,K].some(function(e){return t[e]>=0})}function Pl(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=rt(e,{elementContext:"reference"}),a=rt(e,{altBoundary:!0}),c=Yo(s,n),u=Yo(a,o,i),f=Jo(c),h=Jo(u);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Xo={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Pl};function Dl(t,e,r){var n=ae(t),o=[K,q].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[K,Y].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function Il(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=xr.reduce(function(f,h){return f[h]=Dl(h,e.rects,i),f},{}),a=s[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const Qo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Il};function Ll(t){var e=t.state,r=t.name;e.modifiersData[r]=zo({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Qr={name:"popperOffsets",enabled:!0,phase:"read",fn:Ll,data:{}};function Rl(t){return t==="x"?"y":"x"}function kl(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,c=r.boundary,u=r.rootBoundary,f=r.altBoundary,h=r.padding,g=r.tether,y=g===void 0?!0:g,d=r.tetherOffset,p=d===void 0?0:d,E=rt(e,{boundary:c,rootBoundary:u,padding:h,altBoundary:f}),b=ae(e.placement),A=tt(e.placement),O=!A,S=qr(b),C=Rl(S),v=e.modifiersData.popperOffsets,w=e.rects.reference,N=e.rects.popper,I=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,L=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),k=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,B={x:0,y:0};if(v){if(i){var R,W=S==="y"?q:K,U=S==="y"?G:Y,M=S==="y"?"height":"width",X=v[S],ze=X+E[W],ne=X-E[U],Lr=y?-N[M]/2:0,po=A===Fe?w[M]:N[M],Kt=A===Fe?-N[M]:-w[M],Rr=e.elements.arrow,wt=y&&Rr?Wr(Rr):{width:0,height:0},ke=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Bo(),zt=ke[W],kr=ke[U],Ge=Tt(0,w[M],wt[M]),ho=O?w[M]/2-Lr-Ge-zt-L.mainAxis:po-Ge-zt-L.mainAxis,jy=O?-w[M]/2+Lr+Ge+kr+L.mainAxis:Kt+Ge+kr+L.mainAxis,mo=e.elements.arrow&&At(e.elements.arrow),Uy=mo?S==="y"?mo.clientTop||0:mo.clientLeft||0:0,ja=(R=k==null?void 0:k[S])!=null?R:0,Hy=X+ho-ja-Uy,Wy=X+jy-ja,Ua=Tt(y?Jt(ze,Hy):ze,X,y?Ve(ne,Wy):ne);v[S]=Ua,B[S]=Ua-X}if(a){var Ha,qy=S==="x"?q:K,Ky=S==="x"?G:Y,Ye=v[C],Fr=C==="y"?"height":"width",Wa=Ye+E[qy],qa=Ye-E[Ky],go=[q,K].indexOf(b)!==-1,Ka=(Ha=k==null?void 0:k[C])!=null?Ha:0,za=go?Wa:Ye-w[Fr]-N[Fr]-Ka+L.altAxis,Ga=go?Ye+w[Fr]+N[Fr]-Ka-L.altAxis:qa,Ya=y&&go?dl(za,Ye,Ga):Tt(y?za:Wa,Ye,y?Ga:qa);v[C]=Ya,B[C]=Ya-Ye}e.modifiersData[n]=B}}const Zo={name:"preventOverflow",enabled:!0,phase:"main",fn:kl,requiresIfExists:["offset"]};function Fl(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ml(t){return t===J(t)||!Q(t)?Gr(t):Fl(t)}function Vl(t){var e=t.getBoundingClientRect(),r=Ze(e.width)/t.offsetWidth||1,n=Ze(e.height)/t.offsetHeight||1;return r!==1||n!==1}function Bl(t,e,r){r===void 0&&(r=!1);var n=Q(e),o=Q(e)&&Vl(e),i=Se(e),s=et(t,o,r),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((se(e)!=="body"||Jr(i))&&(a=Ml(e)),Q(e)?(c=et(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=Yr(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function xl(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var c=e.get(a);c&&o(c)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function jl(t){var e=xl(t);return ko.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function Ul(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function Hl(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var ei={placement:"bottom",modifiers:[],strategy:"absolute"};function ti(){for(var t=arguments.length,e=new Array(t),r=0;r(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,r)=>`#${CSS.escape(r)}`)),t),Jl=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Xl=t=>{do t+=Math.floor(Math.random()*Gl);while(document.getElementById(t));return t},Ql=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:r}=window.getComputedStyle(t);const n=Number.parseFloat(e),o=Number.parseFloat(r);return!n&&!o?0:(e=e.split(",")[0],r=r.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(r))*Yl)},oi=t=>{t.dispatchEvent(new Event(tn))},me=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),Ae=t=>me(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(ni(t)):null,nt=t=>{if(!me(t)||t.getClientRects().length===0)return!1;const e=getComputedStyle(t).getPropertyValue("visibility")==="visible",r=t.closest("details:not([open])");if(!r)return e;if(r!==t){const n=t.closest("summary");if(n&&n.parentNode!==r||n===null)return!1}return e},Te=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",ii=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?ii(t.parentNode):null},tr=()=>{},Ct=t=>{t.offsetHeight},si=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,rn=[],Zl=t=>{document.readyState==="loading"?(rn.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of rn)e()}),rn.push(t)):t()},Z=()=>document.documentElement.dir==="rtl",ee=t=>{Zl(()=>{const e=si();if(e){const r=t.NAME,n=e.fn[r];e.fn[r]=t.jQueryInterface,e.fn[r].Constructor=t,e.fn[r].noConflict=()=>(e.fn[r]=n,t.jQueryInterface)}})},z=(t,e=[],r=t)=>typeof t=="function"?t(...e):r,ai=(t,e,r=!0)=>{if(!r){z(t);return}const n=5,o=Ql(e)+n;let i=!1;const s=({target:a})=>{a===e&&(i=!0,e.removeEventListener(tn,s),z(t))};e.addEventListener(tn,s),setTimeout(()=>{i||oi(e)},o)},nn=(t,e,r,n)=>{const o=t.length;let i=t.indexOf(e);return i===-1?!r&&n?t[o-1]:t[0]:(i+=r?1:-1,n&&(i=(i+o)%o),t[Math.max(0,Math.min(i,o-1))])},ec=/[^.]*(?=\..*)\.|.*/,tc=/\..*/,rc=/::\d+$/,on={};let li=1;const ci={mouseenter:"mouseover",mouseleave:"mouseout"},nc=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ui(t,e){return e&&`${e}::${li++}`||t.uidEvent||li++}function fi(t){const e=ui(t);return t.uidEvent=e,on[e]=on[e]||{},on[e]}function oc(t,e){return function r(n){return an(n,{delegateTarget:t}),r.oneOff&&_.off(t,n.type,e),e.apply(t,[n])}}function ic(t,e,r){return function n(o){const i=t.querySelectorAll(e);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return an(o,{delegateTarget:s}),n.oneOff&&_.off(t,o.type,e,r),r.apply(s,[o])}}function di(t,e,r=null){return Object.values(t).find(n=>n.callable===e&&n.delegationSelector===r)}function pi(t,e,r){const n=typeof e=="string",o=n?r:e||r;let i=mi(t);return nc.has(i)||(i=t),[n,o,i]}function hi(t,e,r,n,o){if(typeof e!="string"||!t)return;let[i,s,a]=pi(e,r,n);e in ci&&(s=(d=>function(p){if(!p.relatedTarget||p.relatedTarget!==p.delegateTarget&&!p.delegateTarget.contains(p.relatedTarget))return d.call(this,p)})(s));const c=fi(t),u=c[a]||(c[a]={}),f=di(u,s,i?r:null);if(f){f.oneOff=f.oneOff&&o;return}const h=ui(s,e.replace(ec,"")),g=i?ic(t,r,s):oc(t,s);g.delegationSelector=i?r:null,g.callable=s,g.oneOff=o,g.uidEvent=h,u[h]=g,t.addEventListener(a,g,i)}function sn(t,e,r,n,o){const i=di(e[r],n,o);i&&(t.removeEventListener(r,i,Boolean(o)),delete e[r][i.uidEvent])}function sc(t,e,r,n){const o=e[r]||{};for(const[i,s]of Object.entries(o))i.includes(n)&&sn(t,e,r,s.callable,s.delegationSelector)}function mi(t){return t=t.replace(tc,""),ci[t]||t}const _={on(t,e,r,n){hi(t,e,r,n,!1)},one(t,e,r,n){hi(t,e,r,n,!0)},off(t,e,r,n){if(typeof e!="string"||!t)return;const[o,i,s]=pi(e,r,n),a=s!==e,c=fi(t),u=c[s]||{},f=e.startsWith(".");if(typeof i<"u"){if(!Object.keys(u).length)return;sn(t,c,s,i,o?r:null);return}if(f)for(const h of Object.keys(c))sc(t,c,h,e.slice(1));for(const[h,g]of Object.entries(u)){const y=h.replace(rc,"");(!a||e.includes(y))&&sn(t,c,s,g.callable,g.delegationSelector)}},trigger(t,e,r){if(typeof e!="string"||!t)return null;const n=si(),o=mi(e),i=e!==o;let s=null,a=!0,c=!0,u=!1;i&&n&&(s=n.Event(e,r),n(t).trigger(s),a=!s.isPropagationStopped(),c=!s.isImmediatePropagationStopped(),u=s.isDefaultPrevented());const f=an(new Event(e,{bubbles:a,cancelable:!0}),r);return u&&f.preventDefault(),c&&t.dispatchEvent(f),f.defaultPrevented&&s&&s.preventDefault(),f}};function an(t,e={}){for(const[r,n]of Object.entries(e))try{t[r]=n}catch{Object.defineProperty(t,r,{configurable:!0,get(){return n}})}return t}function gi(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function ln(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ge={setDataAttribute(t,e,r){t.setAttribute(`data-bs-${ln(e)}`,r)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${ln(e)}`)},getDataAttributes(t){if(!t)return{};const e={},r=Object.keys(t.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(const n of r){let o=n.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=gi(t.dataset[n])}return e},getDataAttribute(t,e){return gi(t.getAttribute(`data-bs-${ln(e)}`))}};class Nt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,r){const n=me(r)?ge.getDataAttribute(r,"config"):{};return{...this.constructor.Default,...typeof n=="object"?n:{},...me(r)?ge.getDataAttributes(r):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,r=this.constructor.DefaultType){for(const[n,o]of Object.entries(r)){const i=e[n],s=me(i)?"element":Jl(i);if(!new RegExp(o).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${o}".`)}}}const ac="5.3.0";class re extends Nt{constructor(e,r){super(),e=Ae(e),e&&(this._element=e,this._config=this._getConfig(r),en.set(this._element,this.constructor.DATA_KEY,this))}dispose(){en.remove(this._element,this.constructor.DATA_KEY),_.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,r,n=!0){ai(e,r,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return en.get(Ae(e),this.DATA_KEY)}static getOrCreateInstance(e,r={}){return this.getInstance(e)||new this(e,typeof r=="object"?r:null)}static get VERSION(){return ac}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const cn=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let r=t.getAttribute("href");if(!r||!r.includes("#")&&!r.startsWith("."))return null;r.includes("#")&&!r.startsWith("#")&&(r=`#${r.split("#")[1]}`),e=r&&r!=="#"?r.trim():null}return ni(e)},T={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(r=>r.matches(e))},parents(t,e){const r=[];let n=t.parentNode.closest(e);for(;n;)r.push(n),n=n.parentNode.closest(e);return r},prev(t,e){let r=t.previousElementSibling;for(;r;){if(r.matches(e))return[r];r=r.previousElementSibling}return[]},next(t,e){let r=t.nextElementSibling;for(;r;){if(r.matches(e))return[r];r=r.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(r=>`${r}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(r=>!Te(r)&&nt(r))},getSelectorFromElement(t){const e=cn(t);return e&&T.findOne(e)?e:null},getElementFromSelector(t){const e=cn(t);return e?T.findOne(e):null},getMultipleElementsFromSelector(t){const e=cn(t);return e?T.find(e):[]}},rr=(t,e="hide")=>{const r=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;_.on(document,r,`[data-bs-dismiss="${n}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),Te(this))return;const i=T.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(i)[e]()})},lc="alert",yi=".bs.alert",cc=`close${yi}`,uc=`closed${yi}`,fc="fade",dc="show";class nr extends re{static get NAME(){return lc}close(){if(_.trigger(this._element,cc).defaultPrevented)return;this._element.classList.remove(dc);const r=this._element.classList.contains(fc);this._queueCallback(()=>this._destroyElement(),this._element,r)}_destroyElement(){this._element.remove(),_.trigger(this._element,uc),this.dispose()}static jQueryInterface(e){return this.each(function(){const r=nr.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}rr(nr,"close"),ee(nr);const pc="button",hc=".bs.button",mc=".data-api",gc="active",_i='[data-bs-toggle="button"]',yc=`click${hc}${mc}`;class or extends re{static get NAME(){return pc}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(gc))}static jQueryInterface(e){return this.each(function(){const r=or.getOrCreateInstance(this);e==="toggle"&&r[e]()})}}_.on(document,yc,_i,t=>{t.preventDefault();const e=t.target.closest(_i);or.getOrCreateInstance(e).toggle()}),ee(or);const _c="swipe",ot=".bs.swipe",Ec=`touchstart${ot}`,bc=`touchmove${ot}`,vc=`touchend${ot}`,Sc=`pointerdown${ot}`,wc=`pointerup${ot}`,Ac="touch",Tc="pen",Oc="pointer-event",Cc=40,Nc={endCallback:null,leftCallback:null,rightCallback:null},$c={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ir extends Nt{constructor(e,r){super(),this._element=e,!(!e||!ir.isSupported())&&(this._config=this._getConfig(r),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Nc}static get DefaultType(){return $c}static get NAME(){return _c}dispose(){_.off(this._element,ot)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),z(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=Cc)return;const r=e/this._deltaX;this._deltaX=0,r&&z(r>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(_.on(this._element,Sc,e=>this._start(e)),_.on(this._element,wc,e=>this._end(e)),this._element.classList.add(Oc)):(_.on(this._element,Ec,e=>this._start(e)),_.on(this._element,bc,e=>this._move(e)),_.on(this._element,vc,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===Tc||e.pointerType===Ac)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Pc="carousel",Oe=".bs.carousel",Ei=".data-api",Dc="ArrowLeft",Ic="ArrowRight",Lc=500,$t="next",it="prev",st="left",sr="right",Rc=`slide${Oe}`,un=`slid${Oe}`,kc=`keydown${Oe}`,Fc=`mouseenter${Oe}`,Mc=`mouseleave${Oe}`,Vc=`dragstart${Oe}`,Bc=`load${Oe}${Ei}`,xc=`click${Oe}${Ei}`,bi="carousel",ar="active",jc="slide",Uc="carousel-item-end",Hc="carousel-item-start",Wc="carousel-item-next",qc="carousel-item-prev",vi=".active",Si=".carousel-item",Kc=vi+Si,zc=".carousel-item img",Gc=".carousel-indicators",Yc="[data-bs-slide], [data-bs-slide-to]",Jc='[data-bs-ride="carousel"]',Xc={[Dc]:sr,[Ic]:st},Qc={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Zc={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Pt extends re{constructor(e,r){super(e,r),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=T.findOne(Gc,this._element),this._addEventListeners(),this._config.ride===bi&&this.cycle()}static get Default(){return Qc}static get DefaultType(){return Zc}static get NAME(){return Pc}next(){this._slide($t)}nextWhenVisible(){!document.hidden&&nt(this._element)&&this.next()}prev(){this._slide(it)}pause(){this._isSliding&&oi(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){_.one(this._element,un,()=>this.cycle());return}this.cycle()}}to(e){const r=this._getItems();if(e>r.length-1||e<0)return;if(this._isSliding){_.one(this._element,un,()=>this.to(e));return}const n=this._getItemIndex(this._getActive());if(n===e)return;const o=e>n?$t:it;this._slide(o,r[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&_.on(this._element,kc,e=>this._keydown(e)),this._config.pause==="hover"&&(_.on(this._element,Fc,()=>this.pause()),_.on(this._element,Mc,()=>this._maybeEnableCycle())),this._config.touch&&ir.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const n of T.find(zc,this._element))_.on(n,Vc,o=>o.preventDefault());const r={leftCallback:()=>this._slide(this._directionToOrder(st)),rightCallback:()=>this._slide(this._directionToOrder(sr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Lc+this._config.interval))}};this._swipeHelper=new ir(this._element,r)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const r=Xc[e.key];r&&(e.preventDefault(),this._slide(this._directionToOrder(r)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const r=T.findOne(vi,this._indicatorsElement);r.classList.remove(ar),r.removeAttribute("aria-current");const n=T.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ar),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const r=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=r||this._config.defaultInterval}_slide(e,r=null){if(this._isSliding)return;const n=this._getActive(),o=e===$t,i=r||nn(this._getItems(),n,o,this._config.wrap);if(i===n)return;const s=this._getItemIndex(i),a=y=>_.trigger(this._element,y,{relatedTarget:i,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:s});if(a(Rc).defaultPrevented||!n||!i)return;const u=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(s),this._activeElement=i;const f=o?Hc:Uc,h=o?Wc:qc;i.classList.add(h),Ct(i),n.classList.add(f),i.classList.add(f);const g=()=>{i.classList.remove(f,h),i.classList.add(ar),n.classList.remove(ar,h,f),this._isSliding=!1,a(un)};this._queueCallback(g,n,this._isAnimated()),u&&this.cycle()}_isAnimated(){return this._element.classList.contains(jc)}_getActive(){return T.findOne(Kc,this._element)}_getItems(){return T.find(Si,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Z()?e===st?it:$t:e===st?$t:it}_orderToDirection(e){return Z()?e===it?st:sr:e===it?sr:st}static jQueryInterface(e){return this.each(function(){const r=Pt.getOrCreateInstance(this,e);if(typeof e=="number"){r.to(e);return}if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}_.on(document,xc,Yc,function(t){const e=T.getElementFromSelector(this);if(!e||!e.classList.contains(bi))return;t.preventDefault();const r=Pt.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");if(n){r.to(n),r._maybeEnableCycle();return}if(ge.getDataAttribute(this,"slide")==="next"){r.next(),r._maybeEnableCycle();return}r.prev(),r._maybeEnableCycle()}),_.on(window,Bc,()=>{const t=T.find(Jc);for(const e of t)Pt.getOrCreateInstance(e)}),ee(Pt);const eu="collapse",Dt=".bs.collapse",tu=".data-api",ru=`show${Dt}`,nu=`shown${Dt}`,ou=`hide${Dt}`,iu=`hidden${Dt}`,su=`click${Dt}${tu}`,fn="show",at="collapse",lr="collapsing",au="collapsed",lu=`:scope .${at} .${at}`,cu="collapse-horizontal",uu="width",fu="height",du=".collapse.show, .collapse.collapsing",dn='[data-bs-toggle="collapse"]',pu={parent:null,toggle:!0},hu={parent:"(null|element)",toggle:"boolean"};class It extends re{constructor(e,r){super(e,r),this._isTransitioning=!1,this._triggerArray=[];const n=T.find(dn);for(const o of n){const i=T.getSelectorFromElement(o),s=T.find(i).filter(a=>a===this._element);i!==null&&s.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return pu}static get DefaultType(){return hu}static get NAME(){return eu}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(du).filter(a=>a!==this._element).map(a=>It.getOrCreateInstance(a,{toggle:!1}))),e.length&&e[0]._isTransitioning||_.trigger(this._element,ru).defaultPrevented)return;for(const a of e)a.hide();const n=this._getDimension();this._element.classList.remove(at),this._element.classList.add(lr),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(lr),this._element.classList.add(at,fn),this._element.style[n]="",_.trigger(this._element,nu)},s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||_.trigger(this._element,ou).defaultPrevented)return;const r=this._getDimension();this._element.style[r]=`${this._element.getBoundingClientRect()[r]}px`,Ct(this._element),this._element.classList.add(lr),this._element.classList.remove(at,fn);for(const o of this._triggerArray){const i=T.getElementFromSelector(o);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(lr),this._element.classList.add(at),_.trigger(this._element,iu)};this._element.style[r]="",this._queueCallback(n,this._element,!0)}_isShown(e=this._element){return e.classList.contains(fn)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Ae(e.parent),e}_getDimension(){return this._element.classList.contains(cu)?uu:fu}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(dn);for(const r of e){const n=T.getElementFromSelector(r);n&&this._addAriaAndCollapsedClass([r],this._isShown(n))}}_getFirstLevelChildren(e){const r=T.find(lu,this._config.parent);return T.find(e,this._config.parent).filter(n=>!r.includes(n))}_addAriaAndCollapsedClass(e,r){if(e.length)for(const n of e)n.classList.toggle(au,!r),n.setAttribute("aria-expanded",r)}static jQueryInterface(e){const r={};return typeof e=="string"&&/show|hide/.test(e)&&(r.toggle=!1),this.each(function(){const n=It.getOrCreateInstance(this,r);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e]()}})}}_.on(document,su,dn,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(const e of T.getMultipleElementsFromSelector(this))It.getOrCreateInstance(e,{toggle:!1}).toggle()}),ee(It);const wi="dropdown",Be=".bs.dropdown",pn=".data-api",mu="Escape",Ai="Tab",gu="ArrowUp",Ti="ArrowDown",yu=2,_u=`hide${Be}`,Eu=`hidden${Be}`,bu=`show${Be}`,vu=`shown${Be}`,Oi=`click${Be}${pn}`,Ci=`keydown${Be}${pn}`,Su=`keyup${Be}${pn}`,lt="show",wu="dropup",Au="dropend",Tu="dropstart",Ou="dropup-center",Cu="dropdown-center",xe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Nu=`${xe}.${lt}`,cr=".dropdown-menu",$u=".navbar",Pu=".navbar-nav",Du=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Iu=Z()?"top-end":"top-start",Lu=Z()?"top-start":"top-end",Ru=Z()?"bottom-end":"bottom-start",ku=Z()?"bottom-start":"bottom-end",Fu=Z()?"left-start":"right-start",Mu=Z()?"right-start":"left-start",Vu="top",Bu="bottom",xu={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ju={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class le extends re{constructor(e,r){super(e,r),this._popper=null,this._parent=this._element.parentNode,this._menu=T.next(this._element,cr)[0]||T.prev(this._element,cr)[0]||T.findOne(cr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return xu}static get DefaultType(){return ju}static get NAME(){return wi}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Te(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!_.trigger(this._element,bu,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Pu))for(const n of[].concat(...document.body.children))_.on(n,"mouseover",tr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(lt),this._element.classList.add(lt),_.trigger(this._element,vu,e)}}hide(){if(Te(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!_.trigger(this._element,_u,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const n of[].concat(...document.body.children))_.off(n,"mouseover",tr);this._popper&&this._popper.destroy(),this._menu.classList.remove(lt),this._element.classList.remove(lt),this._element.setAttribute("aria-expanded","false"),ge.removeDataAttribute(this._menu,"popper"),_.trigger(this._element,Eu,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!me(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${wi.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof ri>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:me(this._config.reference)?e=Ae(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const r=this._getPopperConfig();this._popper=Zr(e,this._menu,r)}_isShown(){return this._menu.classList.contains(lt)}_getPlacement(){const e=this._parent;if(e.classList.contains(Au))return Fu;if(e.classList.contains(Tu))return Mu;if(e.classList.contains(Ou))return Vu;if(e.classList.contains(Cu))return Bu;const r=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(wu)?r?Lu:Iu:r?ku:Ru}_detectNavbar(){return this._element.closest($u)!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ge.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...z(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:r}){const n=T.find(Du,this._menu).filter(o=>nt(o));n.length&&nn(n,r,e===Ti,!n.includes(r)).focus()}static jQueryInterface(e){return this.each(function(){const r=le.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}static clearMenus(e){if(e.button===yu||e.type==="keyup"&&e.key!==Ai)return;const r=T.find(Nu);for(const n of r){const o=le.getInstance(n);if(!o||o._config.autoClose===!1)continue;const i=e.composedPath(),s=i.includes(o._menu);if(i.includes(o._element)||o._config.autoClose==="inside"&&!s||o._config.autoClose==="outside"&&s||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Ai||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:o._element};e.type==="click"&&(a.clickEvent=e),o._completeHide(a)}}static dataApiKeydownHandler(e){const r=/input|textarea/i.test(e.target.tagName),n=e.key===mu,o=[gu,Ti].includes(e.key);if(!o&&!n||r&&!n)return;e.preventDefault();const i=this.matches(xe)?this:T.prev(this,xe)[0]||T.next(this,xe)[0]||T.findOne(xe,e.delegateTarget.parentNode),s=le.getOrCreateInstance(i);if(o){e.stopPropagation(),s.show(),s._selectMenuItem(e);return}s._isShown()&&(e.stopPropagation(),s.hide(),i.focus())}}_.on(document,Ci,xe,le.dataApiKeydownHandler),_.on(document,Ci,cr,le.dataApiKeydownHandler),_.on(document,Oi,le.clearMenus),_.on(document,Su,le.clearMenus),_.on(document,Oi,xe,function(t){t.preventDefault(),le.getOrCreateInstance(this).toggle()}),ee(le);const Ni="backdrop",Uu="fade",$i="show",Pi=`mousedown.bs.${Ni}`,Hu={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Wu={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Di extends Nt{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Hu}static get DefaultType(){return Wu}static get NAME(){return Ni}show(e){if(!this._config.isVisible){z(e);return}this._append();const r=this._getElement();this._config.isAnimated&&Ct(r),r.classList.add($i),this._emulateAnimation(()=>{z(e)})}hide(e){if(!this._config.isVisible){z(e);return}this._getElement().classList.remove($i),this._emulateAnimation(()=>{this.dispose(),z(e)})}dispose(){this._isAppended&&(_.off(this._element,Pi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add(Uu),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Ae(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),_.on(e,Pi,()=>{z(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){ai(e,this._getElement(),this._config.isAnimated)}}const qu="focustrap",ur=".bs.focustrap",Ku=`focusin${ur}`,zu=`keydown.tab${ur}`,Gu="Tab",Yu="forward",Ii="backward",Ju={autofocus:!0,trapElement:null},Xu={autofocus:"boolean",trapElement:"element"};class Li extends Nt{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ju}static get DefaultType(){return Xu}static get NAME(){return qu}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),_.off(document,ur),_.on(document,Ku,e=>this._handleFocusin(e)),_.on(document,zu,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,_.off(document,ur))}_handleFocusin(e){const{trapElement:r}=this._config;if(e.target===document||e.target===r||r.contains(e.target))return;const n=T.focusableChildren(r);n.length===0?r.focus():this._lastTabNavDirection===Ii?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){e.key===Gu&&(this._lastTabNavDirection=e.shiftKey?Ii:Yu)}}const Ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ki=".sticky-top",fr="padding-right",Fi="margin-right";class hn{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,fr,r=>r+e),this._setElementAttributes(Ri,fr,r=>r+e),this._setElementAttributes(ki,Fi,r=>r-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,fr),this._resetElementAttributes(Ri,fr),this._resetElementAttributes(ki,Fi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,r,n){const o=this.getWidth(),i=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+o)return;this._saveInitialAttribute(s,r);const a=window.getComputedStyle(s).getPropertyValue(r);s.style.setProperty(r,`${n(Number.parseFloat(a))}px`)};this._applyManipulationCallback(e,i)}_saveInitialAttribute(e,r){const n=e.style.getPropertyValue(r);n&&ge.setDataAttribute(e,r,n)}_resetElementAttributes(e,r){const n=o=>{const i=ge.getDataAttribute(o,r);if(i===null){o.style.removeProperty(r);return}ge.removeDataAttribute(o,r),o.style.setProperty(r,i)};this._applyManipulationCallback(e,n)}_applyManipulationCallback(e,r){if(me(e)){r(e);return}for(const n of T.find(e,this._element))r(n)}}const Qu="modal",te=".bs.modal",Zu=".data-api",ef="Escape",tf=`hide${te}`,rf=`hidePrevented${te}`,Mi=`hidden${te}`,Vi=`show${te}`,nf=`shown${te}`,of=`resize${te}`,sf=`click.dismiss${te}`,af=`mousedown.dismiss${te}`,lf=`keydown.dismiss${te}`,cf=`click${te}${Zu}`,Bi="modal-open",uf="fade",xi="show",mn="modal-static",ff=".modal.show",df=".modal-dialog",pf=".modal-body",hf='[data-bs-toggle="modal"]',mf={backdrop:!0,focus:!0,keyboard:!0},gf={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ct extends re{constructor(e,r){super(e,r),this._dialog=T.findOne(df,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new hn,this._addEventListeners()}static get Default(){return mf}static get DefaultType(){return gf}static get NAME(){return Qu}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||_.trigger(this._element,Vi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Bi),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||_.trigger(this._element,tf).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(xi),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){_.off(window,te),_.off(this._dialog,te),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Di({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Li({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const r=T.findOne(pf,this._dialog);r&&(r.scrollTop=0),Ct(this._element),this._element.classList.add(xi);const n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,_.trigger(this._element,nf,{relatedTarget:e})};this._queueCallback(n,this._dialog,this._isAnimated())}_addEventListeners(){_.on(this._element,lf,e=>{if(e.key===ef){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),_.on(window,of,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),_.on(this._element,af,e=>{_.one(this._element,sf,r=>{if(!(this._element!==e.target||this._element!==r.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Bi),this._resetAdjustments(),this._scrollBar.reset(),_.trigger(this._element,Mi)})}_isAnimated(){return this._element.classList.contains(uf)}_triggerBackdropTransition(){if(_.trigger(this._element,rf).defaultPrevented)return;const r=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(mn)||(r||(this._element.style.overflowY="hidden"),this._element.classList.add(mn),this._queueCallback(()=>{this._element.classList.remove(mn),this._queueCallback(()=>{this._element.style.overflowY=n},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,r=this._scrollBar.getWidth(),n=r>0;if(n&&!e){const o=Z()?"paddingLeft":"paddingRight";this._element.style[o]=`${r}px`}if(!n&&e){const o=Z()?"paddingRight":"paddingLeft";this._element.style[o]=`${r}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,r){return this.each(function(){const n=ct.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof n[e]>"u")throw new TypeError(`No method named "${e}"`);n[e](r)}})}}_.on(document,cf,hf,function(t){const e=T.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),_.one(e,Vi,o=>{o.defaultPrevented||_.one(e,Mi,()=>{nt(this)&&this.focus()})});const r=T.findOne(ff);r&&ct.getInstance(r).hide(),ct.getOrCreateInstance(e).toggle(this)}),rr(ct),ee(ct);const yf="offcanvas",ye=".bs.offcanvas",ji=".data-api",_f=`load${ye}${ji}`,Ef="Escape",Ui="show",Hi="showing",Wi="hiding",bf="offcanvas-backdrop",qi=".offcanvas.show",vf=`show${ye}`,Sf=`shown${ye}`,wf=`hide${ye}`,Ki=`hidePrevented${ye}`,zi=`hidden${ye}`,Af=`resize${ye}`,Tf=`click${ye}${ji}`,Of=`keydown.dismiss${ye}`,Cf='[data-bs-toggle="offcanvas"]',Nf={backdrop:!0,keyboard:!0,scroll:!1},$f={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ce extends re{constructor(e,r){super(e,r),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Nf}static get DefaultType(){return $f}static get NAME(){return yf}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||_.trigger(this._element,vf,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new hn().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Hi);const n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ui),this._element.classList.remove(Hi),_.trigger(this._element,Sf,{relatedTarget:e})};this._queueCallback(n,this._element,!0)}hide(){if(!this._isShown||_.trigger(this._element,wf).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Wi),this._backdrop.hide();const r=()=>{this._element.classList.remove(Ui,Wi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new hn().reset(),_.trigger(this._element,zi)};this._queueCallback(r,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=()=>{if(this._config.backdrop==="static"){_.trigger(this._element,Ki);return}this.hide()},r=Boolean(this._config.backdrop);return new Di({className:bf,isVisible:r,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:r?e:null})}_initializeFocusTrap(){return new Li({trapElement:this._element})}_addEventListeners(){_.on(this._element,Of,e=>{if(e.key===Ef){if(this._config.keyboard){this.hide();return}_.trigger(this._element,Ki)}})}static jQueryInterface(e){return this.each(function(){const r=Ce.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}_.on(document,Tf,Cf,function(t){const e=T.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Te(this))return;_.one(e,zi,()=>{nt(this)&&this.focus()});const r=T.findOne(qi);r&&r!==e&&Ce.getInstance(r).hide(),Ce.getOrCreateInstance(e).toggle(this)}),_.on(window,_f,()=>{for(const t of T.find(qi))Ce.getOrCreateInstance(t).show()}),_.on(window,Af,()=>{for(const t of T.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&Ce.getOrCreateInstance(t).hide()}),rr(Ce),ee(Ce);const Gi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Pf=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Df=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,If=(t,e)=>{const r=t.nodeName.toLowerCase();return e.includes(r)?Pf.has(r)?Boolean(Df.test(t.nodeValue)):!0:e.filter(n=>n instanceof RegExp).some(n=>n.test(r))};function Lf(t,e,r){if(!t.length)return t;if(r&&typeof r=="function")return r(t);const o=new window.DOMParser().parseFromString(t,"text/html"),i=[].concat(...o.body.querySelectorAll("*"));for(const s of i){const a=s.nodeName.toLowerCase();if(!Object.keys(e).includes(a)){s.remove();continue}const c=[].concat(...s.attributes),u=[].concat(e["*"]||[],e[a]||[]);for(const f of c)If(f,u)||s.removeAttribute(f.nodeName)}return o.body.innerHTML}const Rf="TemplateFactory",kf={allowList:Gi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Ff={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Mf={entry:"(string|element|function|null)",selector:"(string|element)"};class Vf extends Nt{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return kf}static get DefaultType(){return Ff}static get NAME(){return Rf}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[o,i]of Object.entries(this._config.content))this._setContent(e,i,o);const r=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&r.classList.add(...n.split(" ")),r}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[r,n]of Object.entries(e))super._typeCheckConfig({selector:r,entry:n},Mf)}_setContent(e,r,n){const o=T.findOne(n,e);if(o){if(r=this._resolvePossibleFunction(r),!r){o.remove();return}if(me(r)){this._putElementInTemplate(Ae(r),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(r);return}o.textContent=r}}_maybeSanitize(e){return this._config.sanitize?Lf(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return z(e,[this])}_putElementInTemplate(e,r){if(this._config.html){r.innerHTML="",r.append(e);return}r.textContent=e.textContent}}const Bf="tooltip",xf=new Set(["sanitize","allowList","sanitizeFn"]),gn="fade",jf="modal",dr="show",Uf=".tooltip-inner",Yi=`.${jf}`,Ji="hide.bs.modal",Lt="hover",yn="focus",Hf="click",Wf="manual",qf="hide",Kf="hidden",zf="show",Gf="shown",Yf="inserted",Jf="click",Xf="focusin",Qf="focusout",Zf="mouseenter",ed="mouseleave",td={AUTO:"auto",TOP:"top",RIGHT:Z()?"left":"right",BOTTOM:"bottom",LEFT:Z()?"right":"left"},rd={allowList:Gi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},nd={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class je extends re{constructor(e,r){if(typeof ri>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,r),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return rd}static get DefaultType(){return nd}static get NAME(){return Bf}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),_.off(this._element.closest(Yi),Ji,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const e=_.trigger(this._element,this.constructor.eventName(zf)),n=(ii(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!n)return;this._disposePopper();const o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(o),_.trigger(this._element,this.constructor.eventName(Yf))),this._popper=this._createPopper(o),o.classList.add(dr),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))_.on(a,"mouseover",tr);const s=()=>{_.trigger(this._element,this.constructor.eventName(Gf)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(s,this.tip,this._isAnimated())}hide(){if(!this._isShown()||_.trigger(this._element,this.constructor.eventName(qf)).defaultPrevented)return;if(this._getTipElement().classList.remove(dr),"ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))_.off(o,"mouseover",tr);this._activeTrigger[Hf]=!1,this._activeTrigger[yn]=!1,this._activeTrigger[Lt]=!1,this._isHovered=null;const n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),_.trigger(this._element,this.constructor.eventName(Kf)))};this._queueCallback(n,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const r=this._getTemplateFactory(e).toHtml();if(!r)return null;r.classList.remove(gn,dr),r.classList.add(`bs-${this.constructor.NAME}-auto`);const n=Xl(this.constructor.NAME).toString();return r.setAttribute("id",n),this._isAnimated()&&r.classList.add(gn),r}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Vf({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Uf]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(gn)}_isShown(){return this.tip&&this.tip.classList.contains(dr)}_createPopper(e){const r=z(this._config.placement,[this,e,this._element]),n=td[r.toUpperCase()];return Zr(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(r=>Number.parseInt(r,10)):typeof e=="function"?r=>e(r,this._element):e}_resolvePossibleFunction(e){return z(e,[this._element])}_getPopperConfig(e){const r={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement)}}]};return{...r,...z(this._config.popperConfig,[r])}}_setListeners(){const e=this._config.trigger.split(" ");for(const r of e)if(r==="click")_.on(this._element,this.constructor.eventName(Jf),this._config.selector,n=>{this._initializeOnDelegatedTarget(n).toggle()});else if(r!==Wf){const n=r===Lt?this.constructor.eventName(Zf):this.constructor.eventName(Xf),o=r===Lt?this.constructor.eventName(ed):this.constructor.eventName(Qf);_.on(this._element,n,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusin"?yn:Lt]=!0,s._enter()}),_.on(this._element,o,this._config.selector,i=>{const s=this._initializeOnDelegatedTarget(i);s._activeTrigger[i.type==="focusout"?yn:Lt]=s._element.contains(i.relatedTarget),s._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},_.on(this._element.closest(Yi),Ji,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,r){clearTimeout(this._timeout),this._timeout=setTimeout(e,r)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const r=ge.getDataAttributes(this._element);for(const n of Object.keys(r))xf.has(n)&&delete r[n];return e={...r,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:Ae(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[r,n]of Object.entries(this._config))this.constructor.Default[r]!==n&&(e[r]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const r=je.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ee(je);const od="popover",id=".popover-header",sd=".popover-body",ad={...je.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},ld={...je.DefaultType,content:"(null|string|element|function)"};class _n extends je{static get Default(){return ad}static get DefaultType(){return ld}static get NAME(){return od}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[id]:this._getTitle(),[sd]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const r=_n.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e]()}})}}ee(_n);const cd="scrollspy",En=".bs.scrollspy",ud=".data-api",fd=`activate${En}`,Xi=`click${En}`,dd=`load${En}${ud}`,pd="dropdown-item",ut="active",hd='[data-bs-spy="scroll"]',bn="[href]",md=".nav, .list-group",Qi=".nav-link",gd=`${Qi}, .nav-item > ${Qi}, .list-group-item`,yd=".dropdown",_d=".dropdown-toggle",Ed={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},bd={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class pr extends re{constructor(e,r){super(e,r),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ed}static get DefaultType(){return bd}static get NAME(){return cd}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Ae(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(r=>Number.parseFloat(r))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(_.off(this._config.target,Xi),_.on(this._config.target,Xi,bn,e=>{const r=this._observableSections.get(e.target.hash);if(r){e.preventDefault();const n=this._rootElement||window,o=r.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:o,behavior:"smooth"});return}n.scrollTop=o}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(r=>this._observerCallback(r),e)}_observerCallback(e){const r=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(r(s))},o=(this._rootElement||document.documentElement).scrollTop,i=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const s of e){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(r(s));continue}const a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(i&&a){if(n(s),!o)return;continue}!i&&!a&&n(s)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=T.find(bn,this._config.target);for(const r of e){if(!r.hash||Te(r))continue;const n=T.findOne(decodeURI(r.hash),this._element);nt(n)&&(this._targetLinks.set(decodeURI(r.hash),r),this._observableSections.set(r.hash,n))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(ut),this._activateParents(e),_.trigger(this._element,fd,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(pd)){T.findOne(_d,e.closest(yd)).classList.add(ut);return}for(const r of T.parents(e,md))for(const n of T.prev(r,gd))n.classList.add(ut)}_clearActiveClass(e){e.classList.remove(ut);const r=T.find(`${bn}.${ut}`,e);for(const n of r)n.classList.remove(ut)}static jQueryInterface(e){return this.each(function(){const r=pr.getOrCreateInstance(this,e);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}_.on(window,dd,()=>{for(const t of T.find(hd))pr.getOrCreateInstance(t)}),ee(pr);const vd="tab",Ue=".bs.tab",Sd=`hide${Ue}`,wd=`hidden${Ue}`,Ad=`show${Ue}`,Td=`shown${Ue}`,Od=`click${Ue}`,Cd=`keydown${Ue}`,Nd=`load${Ue}`,$d="ArrowLeft",Zi="ArrowRight",Pd="ArrowUp",es="ArrowDown",He="active",ts="fade",vn="show",Dd="dropdown",Id=".dropdown-toggle",Ld=".dropdown-menu",Sn=":not(.dropdown-toggle)",Rd='.list-group, .nav, [role="tablist"]',kd=".nav-item, .list-group-item",Fd=`.nav-link${Sn}, .list-group-item${Sn}, [role="tab"]${Sn}`,rs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',wn=`${Fd}, ${rs}`,Md=`.${He}[data-bs-toggle="tab"], .${He}[data-bs-toggle="pill"], .${He}[data-bs-toggle="list"]`;class ft extends re{constructor(e){super(e),this._parent=this._element.closest(Rd),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),_.on(this._element,Cd,r=>this._keydown(r)))}static get NAME(){return vd}show(){const e=this._element;if(this._elemIsActive(e))return;const r=this._getActiveElem(),n=r?_.trigger(r,Sd,{relatedTarget:e}):null;_.trigger(e,Ad,{relatedTarget:r}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(r,e),this._activate(e,r))}_activate(e,r){if(!e)return;e.classList.add(He),this._activate(T.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(vn);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),_.trigger(e,Td,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(ts))}_deactivate(e,r){if(!e)return;e.classList.remove(He),e.blur(),this._deactivate(T.getElementFromSelector(e));const n=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(vn);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),_.trigger(e,wd,{relatedTarget:r})};this._queueCallback(n,e,e.classList.contains(ts))}_keydown(e){if(![$d,Zi,Pd,es].includes(e.key))return;e.stopPropagation(),e.preventDefault();const r=[Zi,es].includes(e.key),n=nn(this._getChildren().filter(o=>!Te(o)),e.target,r,!0);n&&(n.focus({preventScroll:!0}),ft.getOrCreateInstance(n).show())}_getChildren(){return T.find(wn,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,r){this._setAttributeIfNotExists(e,"role","tablist");for(const n of r)this._setInitialAttributesOnChild(n)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const r=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",r),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),r||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const r=T.getElementFromSelector(e);r&&(this._setAttributeIfNotExists(r,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(r,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,r){const n=this._getOuterElement(e);if(!n.classList.contains(Dd))return;const o=(i,s)=>{const a=T.findOne(i,n);a&&a.classList.toggle(s,r)};o(Id,He),o(Ld,vn),n.setAttribute("aria-expanded",r)}_setAttributeIfNotExists(e,r,n){e.hasAttribute(r)||e.setAttribute(r,n)}_elemIsActive(e){return e.classList.contains(He)}_getInnerElement(e){return e.matches(wn)?e:T.findOne(wn,e)}_getOuterElement(e){return e.closest(kd)||e}static jQueryInterface(e){return this.each(function(){const r=ft.getOrCreateInstance(this);if(typeof e=="string"){if(r[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);r[e]()}})}}_.on(document,Od,rs,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!Te(this)&&ft.getOrCreateInstance(this).show()}),_.on(window,Nd,()=>{for(const t of T.find(Md))ft.getOrCreateInstance(t)}),ee(ft);const Vd="toast",Ne=".bs.toast",Bd=`mouseover${Ne}`,xd=`mouseout${Ne}`,jd=`focusin${Ne}`,Ud=`focusout${Ne}`,Hd=`hide${Ne}`,Wd=`hidden${Ne}`,qd=`show${Ne}`,Kd=`shown${Ne}`,zd="fade",ns="hide",hr="show",mr="showing",Gd={animation:"boolean",autohide:"boolean",delay:"number"},Yd={animation:!0,autohide:!0,delay:5e3};class gr extends re{constructor(e,r){super(e,r),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Yd}static get DefaultType(){return Gd}static get NAME(){return Vd}show(){if(_.trigger(this._element,qd).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(zd);const r=()=>{this._element.classList.remove(mr),_.trigger(this._element,Kd),this._maybeScheduleHide()};this._element.classList.remove(ns),Ct(this._element),this._element.classList.add(hr,mr),this._queueCallback(r,this._element,this._config.animation)}hide(){if(!this.isShown()||_.trigger(this._element,Hd).defaultPrevented)return;const r=()=>{this._element.classList.add(ns),this._element.classList.remove(mr,hr),_.trigger(this._element,Wd)};this._element.classList.add(mr),this._queueCallback(r,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(hr),super.dispose()}isShown(){return this._element.classList.contains(hr)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,r){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=r;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=r;break}}if(r){this._clearTimeout();return}const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){_.on(this._element,Bd,e=>this._onInteraction(e,!0)),_.on(this._element,xd,e=>this._onInteraction(e,!1)),_.on(this._element,jd,e=>this._onInteraction(e,!0)),_.on(this._element,Ud,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const r=gr.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof r[e]>"u")throw new TypeError(`No method named "${e}"`);r[e](this)}})}}rr(gr),ee(gr);const os=t=>{if(!t)return{tooltipAttributes:{}};const e=()=>{document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(n=>{new je(n)})},r={"data-bs-toggle":"tooltip","data-bs-placement":t.placement,title:t.title};return l.onMounted(()=>e()),{tooltipAttributes:r}},is=(t,e)=>({onChange:o=>{const i=o.target;t.onChange&&t.onChange(i.value,e)},onInput:o=>{const i=o.target;t.onInput&&t.onInput(i.value,e)}}),ss=(t,e)=>({validation:l.computed(()=>{var n;return((n=e.value.errors)==null?void 0:n[t.value])??{valid:!0}})}),ce=(t,{baseClasses:e}={baseClasses:{"form-control":!0}})=>{const r=t.field.value,n=t.form.value,{tooltipAttributes:o}=os(r.tooltip),{onChange:i,onInput:s}=is(r,n),{validation:a}=ss(t.formKey,t.form),c=u=>"placeholder"in u&&u.placeholder?u.placeholder:null;return{attributes:l.computed(()=>({class:{...e,"is-invalid":!a.value.valid,...r.class??{}},disabled:r.disabled||!1,inputmode:r.inputmode||null,pattern:r.pattern||null,min:r.min||null,max:r.max||null,step:r.step||null,accept:r.accept||null,autocomplete:r.autocomplete||"off",autofocus:r.autofocus||!1,id:r.id||r.title,name:r.name||r.title,required:r.required||!1,placeholder:c(r),...o,...r.attributes})),events:{onChange:i,onInput:s},validation:a}},Jd=l.defineComponent({extends:oe,components:{CardFormField:Mr,FieldInputError:ie},props:{field:{type:Object,required:!0}},data(){return{value:this.field.validate().valid}},methods:{onSubmit(){this.field.onSubmit(),this.checkValid()},checkValid(){this.value=this.field.validate().valid}},setup(t){return ce(l.toRefs(t))}}),Xd={key:0},Qd={class:"text-success h4"},Zd=l.createElementVNode("i",{class:"bi bi-check-lg h3 ms-2"},null,-1);function ep(t,e,r,n,o,i){const s=l.resolveComponent("FieldInputError"),a=l.resolveComponent("CardFormField");return l.openBlock(),l.createBlock(a,{field:t.field,class:l.normalizeClass({"mb-3":!0,"border-danger":!t.validation.valid}),id:t.attributes.id,attributes:{"data-bs-toggle":t.attributes["data-bs-toggle"],"data-bs-placement":t.attributes["data-bs-placement"],title:t.attributes.title}},l.createSlots({body:l.withCtx(()=>[t.value?(l.openBlock(),l.createElementBlock("div",Xd,[l.createElementVNode("span",Qd,[l.createTextVNode(l.toDisplayString(t.field.texts.success),1),Zd])])):(l.openBlock(),l.createElementBlock("a",{key:1,class:l.normalizeClass(["btn btn-primary",{"is-invalid":!t.validation.valid}]),onClick:e[0]||(e[0]=l.withModifiers((...c)=>t.onSubmit&&t.onSubmit(...c),["prevent"]))},l.toDisplayString(t.field.texts.submit),3))]),_:2},[t.validation.valid?void 0:{name:"footer",fn:l.withCtx(()=>[l.createVNode(s,{validation:t.validation,class:"d-block"},null,8,["validation"])]),key:"0"}]),1032,["field","class","id","attributes"])}const as=x(Jd,[["render",ep]]),tp=l.defineComponent({props:{value:{type:String,default:""},required:{type:Boolean,default:!1}}}),rp={key:0},np={key:0,class:"text-danger ms-1"},op={key:1};function ip(t,e,r,n,o,i){return l.openBlock(),l.createElementBlock("label",null,[t.value?(l.openBlock(),l.createElementBlock("span",rp,[l.createTextVNode(l.toDisplayString(t.value),1),t.required?(l.openBlock(),l.createElementBlock("span",np,"*")):l.createCommentVNode("",!0)])):(l.openBlock(),l.createElementBlock("span",op,[l.renderSlot(t.$slots,"default")]))])}const $e=x(tp,[["render",ip]]),sp=l.defineComponent({props:["modelValue"],emits:["update:modelValue"],methods:{focus(){this.$refs.input.focus()}}}),ap=["value"];function lp(t,e,r,n,o,i){return l.openBlock(),l.createElementBlock("input",{ref:"input",class:"form-control",value:t.modelValue,onInput:e[0]||(e[0]=s=>t.$emit("update:modelValue",s.target.value))},null,40,ap)}const An=x(sp,[["render",lp]]),cp=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInput:An,FieldInputError:ie},props:{field:{type:Object,required:!0}},setup(t){return ce(l.toRefs(t))}}),up={class:"w-100"};function fp(t,e,r,n,o,i){const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInput"),c=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",up,[l.createElementVNode("div",{class:l.normalizeClass(t.wrapperClass)},[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title,required:t.attributes.required||!1},null,8,["for","value","required"]),l.createVNode(a,l.mergeProps({ref:"root"},t.attributes,{modelValue:t.value,"onUpdate:modelValue":e[0]||(e[0]=u=>t.value=u),onChange:t.events.onChange,onInput:t.events.onInput,type:t.field.type}),null,16,["modelValue","onChange","onInput","type"]),l.createVNode(c,{validation:t.validation},null,8,["validation"])],2)])}const ls=x(cp,[["render",fp]]),dp=l.defineComponent({extends:oe,components:{CardFormField:Mr,FieldInputError:ie},props:{field:{type:Object,required:!0}},methods:{isSelected(t){return this.value===t},select(t){return this.value=t}},setup(t){return ce(l.toRefs(t))}}),pp={class:"list-group list-group-flush"},hp=["onClick"],mp={key:0,class:"ms-1 text-success font-weight-light",width:"20",fill:"none","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",stroke:"currentColor",viewBox:"0 0 24 24",style:{transform:"translateY(-1px)"}},gp=[l.createElementVNode("path",{d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"},null,-1)],yp={class:"mt-2"};function _p(t,e,r,n,o,i){const s=l.resolveComponent("FieldInputError"),a=l.resolveComponent("CardFormField");return l.openBlock(),l.createBlock(a,{field:t.field,class:l.normalizeClass({"mb-3":!0,"border-danger":!t.validation.valid}),id:t.attributes.id,attributes:{"data-bs-toggle":t.attributes["data-bs-toggle"],"data-bs-placement":t.attributes["data-bs-placement"],title:t.attributes.title}},l.createSlots({default:l.withCtx(()=>[l.createElementVNode("ul",pp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.field.options,(c,u)=>(l.openBlock(),l.createElementBlock("li",{key:u,href:"#",class:l.normalizeClass(["list-group-item list-group-item-action pe-auto",{"text-black-50":t.isSelected(u)}]),onClick:l.withModifiers(f=>t.select(u),["prevent"])},[l.createElementVNode("div",null,[l.createElementVNode("span",{class:l.normalizeClass({"font-weight-bold":t.isSelected(u)})},l.toDisplayString(c.name),3),t.isSelected(u)?(l.openBlock(),l.createElementBlock("svg",mp,gp)):l.createCommentVNode("",!0)]),l.createElementVNode("div",yp,l.toDisplayString(c.description),1)],10,hp))),128))])]),_:2},[t.validation.valid?void 0:{name:"footer",fn:l.withCtx(()=>[l.createVNode(s,{validation:t.validation,class:"d-block"},null,8,["validation"])]),key:"0"}]),1032,["field","class","id","attributes"])}const cs=x(dp,[["render",_p]]),Ep=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInput:An,FieldInputError:ie},props:{field:{type:Object,required:!0}},methods:{togglePassword(){this.showPassword=!this.showPassword}},computed:{icons(){var t;return((t=this.field.toggleable)==null?void 0:t.icons)??{show:"👁️",hide:"👁️‍🗨️"}}},data(){return{showPassword:!1}},setup(t){return ce(l.toRefs(t))}}),l_="";function bp(t,e,r,n,o,i){const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInput"),c=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(t.wrapperClass)},[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title},null,8,["for","value"]),l.createElementVNode("div",{class:l.normalizeClass(["input-group",{"is-invalid":t.attributes.class["is-invalid"]}])},[l.createVNode(a,l.mergeProps({ref:"root"},t.attributes,{modelValue:t.value,"onUpdate:modelValue":e[0]||(e[0]=u=>t.value=u),onChange:t.events.onChange,onInput:t.events.onInput,type:t.showPassword?"text":"password"}),null,16,["modelValue","onChange","onInput","type"]),t.field.toggleable?(l.openBlock(),l.createElementBlock("button",{key:0,class:"btn btn-dark position-relative btn--password-toggle",type:"button",onClick:e[1]||(e[1]=(...u)=>t.togglePassword&&t.togglePassword(...u))},[l.createElementVNode("span",null,l.toDisplayString(t.showPassword?t.icons.show:t.icons.hide),1)])):l.createCommentVNode("",!0)],2),l.createVNode(c,{validation:t.validation},null,8,["validation"])],2)}const vp=x(Ep,[["render",bp]]),Sp=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInputError:ie},props:{field:{type:Object,required:!0}},setup(t){return ce(l.toRefs(t))}}),wp={class:"w-100"},Ap=["value","selected"];function Tp(t,e,r,n,o,i){const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",wp,[l.createElementVNode("div",{class:l.normalizeClass(t.wrapperClass)},[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title,required:t.attributes.required||!1},null,8,["for","value","required"]),l.withDirectives(l.createElementVNode("select",l.mergeProps({ref:"root"},t.attributes,{"onUpdate:modelValue":e[0]||(e[0]=c=>t.value=c),class:"form-select"}),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.field.options,(c,u)=>(l.openBlock(),l.createElementBlock("option",{key:u,value:u,selected:t.value===u},l.toDisplayString(c),9,Ap))),128))],16),[[l.vModelSelect,t.value]]),l.createVNode(a,{validation:t.validation},null,8,["validation"])],2)])}const us=x(Sp,[["render",Tp]]),Op=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInputError:ie},props:{field:{type:Object,required:!0}},setup(t){return ce(l.toRefs(t))}}),Cp={class:"w-100"};function Np(t,e,r,n,o,i){var c,u;const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",Cp,[l.createElementVNode("div",{class:l.normalizeClass(t.wrapperClass)},[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title,required:t.attributes.required||!1},null,8,["for","value","required"]),l.withDirectives(l.createElementVNode("textarea",l.mergeProps({ref:"root"},t.attributes,{"onUpdate:modelValue":e[0]||(e[0]=f=>t.value=f),onChange:e[1]||(e[1]=(...f)=>t.events.onChange&&t.events.onChange(...f)),onInput:e[2]||(e[2]=(...f)=>t.events.onInput&&t.events.onInput(...f))}),null,16),[[l.vModelText,t.value]]),l.createVNode(a,{validation:t.validation},null,8,["validation"]),t.field.maxlength?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass({"text-danger":((c=t.value)==null?void 0:c.length)>t.field.maxlength,"small text-muted":!0})},l.toDisplayString(`${((u=t.value)==null?void 0:u.length)??0} / ${t.field.maxlength}`),3)):l.createCommentVNode("",!0)],2)])}const fs=x(Op,[["render",Np]]),$p=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInputError:ie},props:{field:{type:Object,required:!0}},setup(t){return ce(l.toRefs(t))}}),Pp={class:"w-100"};function Dp(t,e,r,n,o,i){const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",Pp,[l.createElementVNode("div",{class:l.normalizeClass(t.wrapperClass)},[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title,required:t.attributes.required||!1},null,8,["for","value","required"]),l.withDirectives(l.createElementVNode("input",l.mergeProps({ref:"root"},t.attributes,{"onUpdate:modelValue":e[0]||(e[0]=c=>t.value=c),onChange:e[1]||(e[1]=(...c)=>t.events.onChange&&t.events.onChange(...c)),onInput:e[2]||(e[2]=(...c)=>t.events.onInput&&t.events.onInput(...c)),type:"number"}),null,16),[[l.vModelText,t.value]]),l.createVNode(a,{validation:t.validation},null,8,["validation"])],2)])}const ds=x($p,[["render",Dp]]),Ip=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInputError:ie},props:{field:{type:Object,required:!0}},setup(t){return ce(l.toRefs(t),{baseClasses:{"form-check-input":!0}})}}),Lp={class:"w-100"},Rp={class:"form-check"};function kp(t,e,r,n,o,i){const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",Lp,[l.createElementVNode("div",{class:l.normalizeClass(t.wrapperClass)},[l.createElementVNode("div",Rp,[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title,required:t.attributes.required||!1},null,8,["for","value","required"]),l.withDirectives(l.createElementVNode("input",l.mergeProps({ref:"root"},t.attributes,{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=c=>t.value=c)}),null,16),[[l.vModelCheckbox,t.value]]),l.createVNode(a,{validation:t.validation},null,8,["validation"])])],2)])}const ps=x(Ip,[["render",kp]]),Fp=l.defineComponent({extends:oe,components:{FieldLabel:$e,FieldInput:An,FieldInputError:ie},props:{field:{type:Object,required:!0}},setup(t){return ce(l.toRefs(t))}}),Mp={class:"w-100"};function Vp(t,e,r,n,o,i){const s=l.resolveComponent("FieldLabel"),a=l.resolveComponent("FieldInput"),c=l.resolveComponent("FieldInputError");return l.openBlock(),l.createElementBlock("div",Mp,[l.createElementVNode("div",{class:l.normalizeClass(t.wrapperClass)},[l.createVNode(s,{class:"form-label",for:t.attributes.id,value:t.field.title,required:t.attributes.required||!1},null,8,["for","value","required"]),l.createVNode(a,l.mergeProps({ref:"root"},t.attributes,{modelValue:t.value,"onUpdate:modelValue":e[0]||(e[0]=u=>t.value=u),type:"file"}),null,16,["modelValue"]),l.createVNode(c,{validation:t.validation},null,8,["validation"])],2)])}const hs=x(Fp,[["render",Vp]]),ms=[],gs={all:()=>ms,install:t=>{ms.push(t)}};var ys=(t=>(t.Date="date",t.Time="time",t.Action="action",t.ListGroup="list-group",t.Dropdown="dropdown",t.Password="password",t.Textarea="textarea",t.Checkbox="checkbox",t.File="file",t.Number="number",t))(ys||{});const Bp=l.defineComponent({components:{ActionField:as,StandardField:ls,ListGroupField:cs,DropdownField:us,NumberField:ds,TextareaField:fs,CheckboxField:ps,FileField:hs},props:{field:{type:Object,required:!0},form:{type:Object,required:!0},formKey:{type:String,required:!0}},data(){return{BaseFieldTypes:ys}},computed:{component(){const t=gs.all().find(e=>e.type===this.type);if(t)return t.component;switch(this.type){case"action":return as;case"list-group":return cs;case"dropdown":return us;case"textarea":return fs;case"password":return vp;case"number":return ds;case"checkbox":return ps;case"file":return hs;default:return ls}},type(){return this.field.type}}});function xp(t,e,r,n,o,i){return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.component),{field:t.field,"form-key":t.formKey,form:t.form,modelValue:t.form.data[t.formKey],"onUpdate:modelValue":e[0]||(e[0]=s=>t.form.data[t.formKey]=s)},null,8,["field","form-key","form","modelValue"]))])}const _s=x(Bp,[["render",xp]]),jp=l.defineComponent({name:"form-field-group",components:{FormFieldComponent:_s},props:{groupComponent:{type:[Object,String],default:"div"},form:{type:Object,required:!0},fields:{type:[Object],required:!0}},methods:{isFormFieldGroup:Gt,isFieldVisible(t){return t.type==="html"?!1:t.visible instanceof Function?t.visible(this.form):t.visible??!0}}}),Up={key:1};function Hp(t,e,r,n,o,i){const s=l.resolveComponent("FormFieldGroup",!0),a=l.resolveComponent("FormFieldComponent");return l.openBlock(),l.createElementBlock("div",null,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.fields,(c,u)=>(l.openBlock(),l.createElementBlock("div",{key:u,class:l.normalizeClass((c==null?void 0:c.wrapperClass)??{col:!0,"col-12":!0})},[c&&t.isFormFieldGroup(c)?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.groupComponent),{key:0,class:l.normalizeClass((c==null?void 0:c.containerClass)??{row:!0})},{default:l.withCtx(()=>[l.createVNode(s,{fields:c.fields,form:t.form},{"before-field":l.withCtx(({fieldKey:f,field:h})=>[l.renderSlot(t.$slots,"before-field",{fieldKey:`${f}`,field:h})]),"after-field":l.withCtx(({fieldKey:f,field:h})=>[l.renderSlot(t.$slots,"after-field",{fieldKey:`${f}`,field:h})]),_:2},1032,["fields","form"])]),_:2},1032,["class"])):(l.openBlock(),l.createElementBlock("div",Up,[l.renderSlot(t.$slots,"before-field",{fieldKey:`${u}`,field:c}),c&&t.isFieldVisible(c)?(l.openBlock(),l.createBlock(a,{key:0,"form-key":`${u}`,field:{...c,name:c&&c.name?c.name:u},form:t.form},null,8,["form-key","field","form"])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"after-field",{fieldKey:`${u}`,field:c})]))],2))),128)),l.renderSlot(t.$slots,"default")])}const Wp=x(jp,[["render",Hp]]),qp=l.defineComponent({components:{FormFieldGroup:Wp},props:{groupComponent:{type:[Object,String],default:"div"},groupContainerClass:{type:Object,default:{row:!0}},form:{type:Object,required:!0},resetOnCancel:{type:Boolean,default:!1},preventDefault:{type:Boolean,default:!0},teleportEnabled:{type:Boolean,default:!1}},provide(){return{loading:this.loading}},emits:["submit","cancel"],computed:{htmlForm(){return this.$refs.form}},data(){return{loading:!1}},mounted(){var t,e;(e=(t=this.form.callbacks)==null?void 0:t.onRender)==null||e.call(t,this.form)},methods:{isFormFieldGroup:Gt,async onSubmit(t){var e,r,n;this.preventDefault&&t.preventDefault(),this.loading=!0;try{await((n=(r=(e=this.form)==null?void 0:e.callbacks)==null?void 0:r.onSubmit)==null?void 0:n.call(r,this.form)),this.$emit("submit",this.form,this.htmlForm)}catch(o){t.preventDefault(),console.error(o)}this.loading=!1},async onCancel(){this.form.callbacks.onCancel&&this.form.callbacks.onCancel(this.form),this.$emit("cancel",this.form,this.htmlForm)},reset(){this.htmlForm.reset()},submit(){if(this.htmlForm.requestSubmit)this.htmlForm.requestSubmit();else{const t=document.createElement("input");t.type="submit",t.hidden=!0,this.htmlForm.appendChild(t),t.click(),this.htmlForm.removeChild(t)}},cancel(){this.resetOnCancel&&this.reset(),this.onCancel()}}}),c_="",Kp={key:0,class:"v-bs-form-glasspane-container"},zp={class:"spinner-border",role:"status"},Gp={class:"visually-hidden"};function Yp(t,e,r,n,o,i){const s=l.resolveComponent("FormFieldGroup");return l.openBlock(),l.createElementBlock("form",{ref:"form",class:"v-bs-form needs-validation position-relative",novalidate:"",onSubmit:e[0]||(e[0]=(...a)=>t.onSubmit&&t.onSubmit(...a))},[l.renderSlot(t.$slots,"head"),l.createVNode(s,{fields:t.form.fields,form:t.form,"group-component":t.groupComponent,class:l.normalizeClass(t.groupContainerClass)},{"before-field":l.withCtx(({fieldKey:a,field:c})=>[l.renderSlot(t.$slots,"before-field",{fieldKey:`${a}`,field:c})]),"after-field":l.withCtx(({fieldKey:a,field:c})=>[l.renderSlot(t.$slots,"after-field",{fieldKey:`${a}`,field:c})]),default:l.withCtx(()=>[l.renderSlot(t.$slots,"default")]),_:3},8,["fields","form","group-component","class"]),(l.openBlock(),l.createBlock(l.Teleport,{to:"body",disabled:!t.teleportEnabled},[t.loading?(l.openBlock(),l.createElementBlock("div",Kp,[l.renderSlot(t.$slots,"glasspane",{},()=>[l.createElementVNode("div",{class:l.normalizeClass(["v-bs-form-glasspane start-0 end-0 top-0 bottom-0 d-flex h-100 justify-content-center align-items-center",{"position-fixed":t.teleportEnabled,"position-absolute":!t.teleportEnabled}])},[l.createElementVNode("div",zp,[l.createElementVNode("span",Gp,l.toDisplayString("Loading..."),1)])],2)])])):l.createCommentVNode("",!0)],8,["disabled"]))],544)}const Jp=x(qp,[["render",Yp]]),Xp={},Qp={class:"px-4 px-sm-0"},Zp={class:"d-flex justify-content-between"},eh={class:"h5"},th={class:"mt-1 text-muted"};function rh(t,e){return l.openBlock(),l.createElementBlock("div",Qp,[l.createElementVNode("div",Zp,[l.createElementVNode("div",null,[l.createElementVNode("h3",eh,[l.renderSlot(t.$slots,"title")]),l.createElementVNode("p",th,[l.renderSlot(t.$slots,"description")])]),l.createElementVNode("div",null,[l.renderSlot(t.$slots,"aside")])])])}const nh=x(Xp,[["render",rh]]),oh=()=>({data:{},errors:{}}),ih=()=>({onSubmit:async()=>{},onRender:async()=>{}}),Es=t=>{var o,i;const{data:e,errors:r}=oh(),n={fields:t.fields??{},accessors:{},callbacks:{...ih(),...t.callbacks??{}},data:{...e,...((o=t.accessors)==null?void 0:o.data)??{},...t.data??{}},errors:{...r,...((i=t.accessors)==null?void 0:i.errors)??{},...t.errors??{}}};return Object.defineProperty(n.accessors,"data",{enumerable:!0,configurable:!0,get(){return n.data},set(s){n.data=s}}),Object.defineProperty(n.accessors,"errors",{enumerable:!0,configurable:!0,get(){return n.errors},set(s){n.errors=s}}),n},bs=t=>{const e=Es(t),r=e.callbacks.onSubmit;return e.callbacks.onSubmit=async n=>{var i,s;vo(n);const o=wo(n);if(Object.keys(o).length>0)throw n.errors={...n.errors,...o},(s=(i=n.callbacks).onError)==null||s.call(i,n.errors,n),{message:"Validation errors",errors:n.errors};await r(n)},e};function vs(t,e){return function(){return t.apply(e,arguments)}}const{toString:Ss}=Object.prototype,{getPrototypeOf:Tn}=Object,On=(t=>e=>{const r=Ss.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),_e=t=>(t=t.toLowerCase(),e=>On(e)===t),yr=t=>e=>typeof e===t,{isArray:dt}=Array,Rt=yr("undefined");function sh(t){return t!==null&&!Rt(t)&&t.constructor!==null&&!Rt(t.constructor)&&Pe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ws=_e("ArrayBuffer");function ah(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ws(t.buffer),e}const lh=yr("string"),Pe=yr("function"),As=yr("number"),Cn=t=>t!==null&&typeof t=="object",ch=t=>t===!0||t===!1,_r=t=>{if(On(t)!=="object")return!1;const e=Tn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},uh=_e("Date"),fh=_e("File"),dh=_e("Blob"),ph=_e("FileList"),hh=t=>Cn(t)&&Pe(t.pipe),mh=t=>{const e="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||Ss.call(t)===e||Pe(t.toString)&&t.toString()===e)},gh=_e("URLSearchParams"),yh=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function kt(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),dt(t))for(n=0,o=t.length;n0;)if(o=r[n],e===o.toLowerCase())return o;return null}const Os=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Cs=t=>!Rt(t)&&t!==Os;function Nn(){const{caseless:t}=Cs(this)&&this||{},e={},r=(n,o)=>{const i=t&&Ts(e,o)||o;_r(e[i])&&_r(n)?e[i]=Nn(e[i],n):_r(n)?e[i]=Nn({},n):dt(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n(kt(e,(o,i)=>{r&&Pe(o)?t[i]=vs(o,r):t[i]=o},{allOwnKeys:n}),t),Eh=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bh=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},vh=(t,e,r,n)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Tn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},Sh=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},wh=t=>{if(!t)return null;if(dt(t))return t;let e=t.length;if(!As(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ah=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Tn(Uint8Array)),Th=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Oh=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Ch=_e("HTMLFormElement"),Nh=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Ns=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),$h=_e("RegExp"),$s=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};kt(r,(o,i)=>{e(o,i,t)!==!1&&(n[i]=o)}),Object.defineProperties(t,n)},Ph=t=>{$s(t,(e,r)=>{if(Pe(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Pe(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Dh=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return dt(t)?n(t):n(String(t).split(e)),r},Ih=()=>{},Lh=(t,e)=>(t=+t,Number.isFinite(t)?t:e),$n="abcdefghijklmnopqrstuvwxyz",Ps="0123456789",Ds={DIGIT:Ps,ALPHA:$n,ALPHA_DIGIT:$n+$n.toUpperCase()+Ps},Rh=(t=16,e=Ds.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function kh(t){return!!(t&&Pe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const m={isArray:dt,isArrayBuffer:ws,isBuffer:sh,isFormData:mh,isArrayBufferView:ah,isString:lh,isNumber:As,isBoolean:ch,isObject:Cn,isPlainObject:_r,isUndefined:Rt,isDate:uh,isFile:fh,isBlob:dh,isRegExp:$h,isFunction:Pe,isStream:hh,isURLSearchParams:gh,isTypedArray:Ah,isFileList:ph,forEach:kt,merge:Nn,extend:_h,trim:yh,stripBOM:Eh,inherits:bh,toFlatObject:vh,kindOf:On,kindOfTest:_e,endsWith:Sh,toArray:wh,forEachEntry:Th,matchAll:Oh,isHTMLForm:Ch,hasOwnProperty:Ns,hasOwnProp:Ns,reduceDescriptors:$s,freezeMethods:Ph,toObjectSet:Dh,toCamelCase:Nh,noop:Ih,toFiniteNumber:Lh,findKey:Ts,global:Os,isContextDefined:Cs,ALPHABET:Ds,generateString:Rh,isSpecCompliantForm:kh,toJSONObject:t=>{const e=new Array(10),r=(n,o)=>{if(Cn(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const i=dt(n)?[]:{};return kt(n,(s,a)=>{const c=r(s,o+1);!Rt(c)&&(i[a]=c)}),e[o]=void 0,i}}return n};return r(t,0)}};function D(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}m.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Is=D.prototype,Ls={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ls[t]={value:t}}),Object.defineProperties(D,Ls),Object.defineProperty(Is,"isAxiosError",{value:!0}),D.from=(t,e,r,n,o,i)=>{const s=Object.create(Is);return m.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),D.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const Fh=null;function Pn(t){return m.isPlainObject(t)||m.isArray(t)}function Rs(t){return m.endsWith(t,"[]")?t.slice(0,-2):t}function ks(t,e,r){return t?t.concat(e).map(function(o,i){return o=Rs(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function Mh(t){return m.isArray(t)&&!t.some(Pn)}const Vh=m.toFlatObject(m,{},null,function(e){return/^is[A-Z]/.test(e)});function Er(t,e,r){if(!m.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=m.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,E){return!m.isUndefined(E[p])});const n=r.metaTokens,o=r.visitor||f,i=r.dots,s=r.indexes,c=(r.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(e);if(!m.isFunction(o))throw new TypeError("visitor must be a function");function u(d){if(d===null)return"";if(m.isDate(d))return d.toISOString();if(!c&&m.isBlob(d))throw new D("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(d)||m.isTypedArray(d)?c&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function f(d,p,E){let b=d;if(d&&!E&&typeof d=="object"){if(m.endsWith(p,"{}"))p=n?p:p.slice(0,-2),d=JSON.stringify(d);else if(m.isArray(d)&&Mh(d)||(m.isFileList(d)||m.endsWith(p,"[]"))&&(b=m.toArray(d)))return p=Rs(p),b.forEach(function(O,S){!(m.isUndefined(O)||O===null)&&e.append(s===!0?ks([p],S,i):s===null?p:p+"[]",u(O))}),!1}return Pn(d)?!0:(e.append(ks(E,p,i),u(d)),!1)}const h=[],g=Object.assign(Vh,{defaultVisitor:f,convertValue:u,isVisitable:Pn});function y(d,p){if(!m.isUndefined(d)){if(h.indexOf(d)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(d),m.forEach(d,function(b,A){(!(m.isUndefined(b)||b===null)&&o.call(e,b,m.isString(A)?A.trim():A,p,g))===!0&&y(b,p?p.concat(A):[A])}),h.pop()}}if(!m.isObject(t))throw new TypeError("data must be an object");return y(t),e}function Fs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Dn(t,e){this._pairs=[],t&&Er(t,this,e)}const Ms=Dn.prototype;Ms.append=function(e,r){this._pairs.push([e,r])},Ms.toString=function(e){const r=e?function(n){return e.call(this,n,Fs)}:Fs;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Bh(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vs(t,e,r){if(!e)return t;const n=r&&r.encode||Bh,o=r&&r.serialize;let i;if(o?i=o(e,r):i=m.isURLSearchParams(e)?e.toString():new Dn(e,r).toString(n),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class xh{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){m.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Bs=xh,xs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jh=typeof URLSearchParams<"u"?URLSearchParams:Dn,Uh=typeof FormData<"u"?FormData:null,Hh=typeof Blob<"u"?Blob:null,Wh=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),qh=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ue={isBrowser:!0,classes:{URLSearchParams:jh,FormData:Uh,Blob:Hh},isStandardBrowserEnv:Wh,isStandardBrowserWebWorkerEnv:qh,protocols:["http","https","file","blob","url","data"]};function Kh(t,e){return Er(t,new ue.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return ue.isNode&&m.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function zh(t){return m.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Gh(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n=r.length;return s=!s&&m.isArray(o)?o.length:s,c?(m.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!a):((!o[s]||!m.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&m.isArray(o[s])&&(o[s]=Gh(o[s])),!a)}if(m.isFormData(t)&&m.isFunction(t.entries)){const r={};return m.forEachEntry(t,(n,o)=>{e(zh(n),o,r,0)}),r}return null}const Yh={"Content-Type":void 0};function Jh(t,e,r){if(m.isString(t))try{return(e||JSON.parse)(t),m.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const br={transitional:xs,adapter:["xhr","http"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=m.isObject(e);if(i&&m.isHTMLForm(e)&&(e=new FormData(e)),m.isFormData(e))return o&&o?JSON.stringify(js(e)):e;if(m.isArrayBuffer(e)||m.isBuffer(e)||m.isStream(e)||m.isFile(e)||m.isBlob(e))return e;if(m.isArrayBufferView(e))return e.buffer;if(m.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Kh(e,this.formSerializer).toString();if((a=m.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Er(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Jh(e)):e}],transformResponse:[function(e){const r=this.transitional||br.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&m.isString(e)&&(n&&!this.responseType||o)){const s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?D.from(a,D.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ue.classes.FormData,Blob:ue.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};m.forEach(["delete","get","head"],function(e){br.headers[e]={}}),m.forEach(["post","put","patch"],function(e){br.headers[e]=m.merge(Yh)});const In=br,Xh=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qh=t=>{const e={};let r,n,o;return t&&t.split(` `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&Xh[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Us=Symbol("internals");function Ft(t){return t&&String(t).trim().toLowerCase()}function vr(t){return t===!1||t==null?t:m.isArray(t)?t.map(vr):String(t)}function Zh(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}function em(t){return/^[-_a-zA-Z]+$/.test(t.trim())}function Ln(t,e,r,n,o){if(m.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!m.isString(e)){if(m.isString(n))return e.indexOf(n)!==-1;if(m.isRegExp(n))return n.test(e)}}function tm(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function rm(t,e){const r=m.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}class Sr{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(a,c,u){const f=Ft(c);if(!f)throw new Error("header name must be a non-empty string");const h=m.findKey(o,f);(!h||o[h]===void 0||u===!0||u===void 0&&o[h]!==!1)&&(o[h||c]=vr(a))}const s=(a,c)=>m.forEach(a,(u,f)=>i(u,f,c));return m.isPlainObject(e)||e instanceof this.constructor?s(e,r):m.isString(e)&&(e=e.trim())&&!em(e)?s(Qh(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=Ft(e),e){const n=m.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return Zh(o);if(m.isFunction(r))return r.call(this,o,n);if(m.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=Ft(e),e){const n=m.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||Ln(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(s){if(s=Ft(s),s){const a=m.findKey(n,s);a&&(!r||Ln(n,n[a],a,r))&&(delete n[a],o=!0)}}return m.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||Ln(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return m.forEach(this,(o,i)=>{const s=m.findKey(n,i);if(s){r[s]=vr(o),delete r[i];return}const a=e?tm(i):String(i).trim();a!==i&&delete r[i],r[a]=vr(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return m.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&m.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Us]=this[Us]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ft(s);n[a]||(rm(o,s),n[a]=!0)}return m.isArray(e)?e.forEach(i):i(e),this}}Sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.freezeMethods(Sr.prototype),m.freezeMethods(Sr);const Ee=Sr;function Rn(t,e){const r=this||In,n=e||r,o=Ee.from(n.headers);let i=n.data;return m.forEach(t,function(a){i=a.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Hs(t){return!!(t&&t.__CANCEL__)}function Mt(t,e,r){D.call(this,t??"canceled",D.ERR_CANCELED,e,r),this.name="CanceledError"}m.inherits(Mt,D,{__CANCEL__:!0});function nm(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new D("Request failed with status code "+r.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const om=ue.isStandardBrowserEnv?function(){return{write:function(r,n,o,i,s,a){const c=[];c.push(r+"="+encodeURIComponent(n)),m.isNumber(o)&&c.push("expires="+new Date(o).toGMTString()),m.isString(i)&&c.push("path="+i),m.isString(s)&&c.push("domain="+s),a===!0&&c.push("secure"),document.cookie=c.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function im(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function sm(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function Ws(t,e){return t&&!im(e)?sm(t,e):e}const am=ue.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){const a=m.isString(s)?o(s):s;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}();function lm(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function cm(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=n[i];s||(s=u),r[o]=c,n[o]=u;let h=i,g=0;for(;h!==o;)g+=r[h++],h=h%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-r,c=n(a),u=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:c||void 0,estimated:c&&s&&u?(s-i)/c:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const wr={http:Fh,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){let o=t.data;const i=Ee.from(t.headers).normalize(),s=t.responseType;let a;function c(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}m.isFormData(o)&&(ue.isStandardBrowserEnv||ue.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let u=new XMLHttpRequest;if(t.auth){const y=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(y+":"+d))}const f=Ws(t.baseURL,t.url);u.open(t.method.toUpperCase(),Vs(f,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function h(){if(!u)return;const y=Ee.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:y,config:t,request:u};nm(function(b){r(b),c()},function(b){n(b),c()},p),u=null}if("onloadend"in u?u.onloadend=h:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(h)},u.onabort=function(){u&&(n(new D("Request aborted",D.ECONNABORTED,t,u)),u=null)},u.onerror=function(){n(new D("Network Error",D.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let d=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||xs;t.timeoutErrorMessage&&(d=t.timeoutErrorMessage),n(new D(d,p.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,u)),u=null},ue.isStandardBrowserEnv){const y=(t.withCredentials||am(f))&&t.xsrfCookieName&&om.read(t.xsrfCookieName);y&&i.set(t.xsrfHeaderName,y)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&m.forEach(i.toJSON(),function(d,p){u.setRequestHeader(p,d)}),m.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),s&&s!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",qs(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",qs(t.onUploadProgress)),(t.cancelToken||t.signal)&&(a=y=>{u&&(n(!y||y.type?new Mt(null,t,u):y),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a)));const g=lm(f);if(g&&ue.protocols.indexOf(g)===-1){n(new D("Unsupported protocol "+g+":",D.ERR_BAD_REQUEST,t));return}u.send(o||null)})}};m.forEach(wr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const um={getAdapter:t=>{t=m.isArray(t)?t:[t];const{length:e}=t;let r,n;for(let o=0;ot instanceof Ee?t.toJSON():t;function pt(t,e){e=e||{};const r={};function n(u,f,h){return m.isPlainObject(u)&&m.isPlainObject(f)?m.merge.call({caseless:h},u,f):m.isPlainObject(f)?m.merge({},f):m.isArray(f)?f.slice():f}function o(u,f,h){if(m.isUndefined(f)){if(!m.isUndefined(u))return n(void 0,u,h)}else return n(u,f,h)}function i(u,f){if(!m.isUndefined(f))return n(void 0,f)}function s(u,f){if(m.isUndefined(f)){if(!m.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function a(u,f,h){if(h in e)return n(u,f);if(h in t)return n(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>o(zs(u),zs(f),!0)};return m.forEach(Object.keys(t).concat(Object.keys(e)),function(f){const h=c[f]||o,g=h(t[f],e[f],f);m.isUndefined(g)&&h!==a||(r[f]=g)}),r}const Gs="1.3.4",Fn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Fn[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Ys={};Fn.transitional=function(e,r,n){function o(i,s){return"[Axios v"+Gs+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(e===!1)throw new D(o(s," has been removed"+(r?" in "+r:"")),D.ERR_DEPRECATED);return r&&!Ys[s]&&(Ys[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,a):!0}};function fm(t,e,r){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new D("option "+i+" must be "+c,D.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new D("Unknown option "+i,D.ERR_BAD_OPTION)}}const Mn={assertOptions:fm,validators:Fn},De=Mn.validators;class Ar{constructor(e){this.defaults=e,this.interceptors={request:new Bs,response:new Bs}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=pt(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Mn.assertOptions(n,{silentJSONParsing:De.transitional(De.boolean),forcedJSONParsing:De.transitional(De.boolean),clarifyTimeoutError:De.transitional(De.boolean)},!1),o!==void 0&&Mn.assertOptions(o,{encode:De.function,serialize:De.function},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s;s=i&&m.merge(i.common,i[r.method]),s&&m.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=Ee.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(c=c&&p.synchronous,a.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let f,h=0,g;if(!c){const d=[Ks.bind(this),void 0];for(d.unshift.apply(d,a),d.push.apply(d,u),g=d.length,f=Promise.resolve(r);h{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,a){n.reason||(n.reason=new Mt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new Vn(function(o){e=o}),cancel:e}}}const dm=Vn;function pm(t){return function(r){return t.apply(null,r)}}function hm(t){return m.isObject(t)&&t.isAxiosError===!0}const Bn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bn).forEach(([t,e])=>{Bn[e]=t});const mm=Bn;function Js(t){const e=new Tr(t),r=vs(Tr.prototype.request,e);return m.extend(r,Tr.prototype,e,{allOwnKeys:!0}),m.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Js(pt(t,o))},r}const F=Js(In);F.Axios=Tr,F.CanceledError=Mt,F.CancelToken=dm,F.isCancel=Hs,F.VERSION=Gs,F.toFormData=Er,F.AxiosError=D,F.Cancel=F.CanceledError,F.all=function(e){return Promise.all(e)},F.spread=pm,F.isAxiosError=hm,F.mergeConfig=pt,F.AxiosHeaders=Ee,F.formToJSON=t=>js(m.isHTMLForm(t)?new FormData(t):t),F.HttpStatusCode=mm,F.default=F;const Xs=F;var gm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ym(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _m(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(e,o);return new i}return e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var Em=function(e){return bm(e)&&!vm(e)};function bm(t){return!!t&&typeof t=="object"}function vm(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||Am(t)}var Sm=typeof Symbol=="function"&&Symbol.for,wm=Sm?Symbol.for("react.element"):60103;function Am(t){return t.$$typeof===wm}function Tm(t){return Array.isArray(t)?[]:{}}function Vt(t,e){return e.clone!==!1&&e.isMergeableObject(t)?ht(Tm(t),t,e):t}function Om(t,e,r){return t.concat(e).map(function(n){return Vt(n,r)})}function Cm(t,e){if(!e.customMerge)return ht;var r=e.customMerge(t);return typeof r=="function"?r:ht}function Nm(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Qs(t){return Object.keys(t).concat(Nm(t))}function Zs(t,e){try{return e in t}catch{return!1}}function $m(t,e){return Zs(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Pm(t,e,r){var n={};return r.isMergeableObject(t)&&Qs(t).forEach(function(o){n[o]=Vt(t[o],r)}),Qs(e).forEach(function(o){$m(t,o)||(Zs(t,o)&&r.isMergeableObject(e[o])?n[o]=Cm(o,r)(t[o],e[o],r):n[o]=Vt(e[o],r))}),n}function ht(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||Om,r.isMergeableObject=r.isMergeableObject||Em,r.cloneUnlessOtherwiseSpecified=Vt;var n=Array.isArray(e),o=Array.isArray(t),i=n===o;return i?n?r.arrayMerge(t,e,r):Pm(t,e,r):Vt(e,r)}ht.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return ht(n,o,r)},{})};var Dm=ht,Im=Dm;const Lm=ym(Im);var Rm=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;e[r]=o;for(r in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==o||s.enumerable!==!0)return!1}return!0},ea=typeof Symbol<"u"&&Symbol,km=Rm,Fm=function(){return typeof ea!="function"||typeof Symbol!="function"||typeof ea("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:km()},Mm="Function.prototype.bind called on incompatible ",xn=Array.prototype.slice,Vm=Object.prototype.toString,Bm="[object Function]",xm=function(e){var r=this;if(typeof r!="function"||Vm.call(r)!==Bm)throw new TypeError(Mm+r);for(var n=xn.call(arguments,1),o,i=function(){if(this instanceof o){var f=r.apply(this,n.concat(xn.call(arguments)));return Object(f)===f?f:this}else return r.apply(e,n.concat(xn.call(arguments)))},s=Math.max(0,r.length-n.length),a=[],c=0;c"u"?$:fe(Uint8Array),qe={"%AggregateError%":typeof AggregateError>"u"?$:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$:ArrayBuffer,"%ArrayIteratorPrototype%":yt?fe([][Symbol.iterator]()):$,"%AsyncFromSyncIteratorPrototype%":$,"%AsyncFunction%":_t,"%AsyncGenerator%":_t,"%AsyncGeneratorFunction%":_t,"%AsyncIteratorPrototype%":_t,"%Atomics%":typeof Atomics>"u"?$:Atomics,"%BigInt%":typeof BigInt>"u"?$:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$:FinalizationRegistry,"%Function%":ta,"%GeneratorFunction%":_t,"%Int8Array%":typeof Int8Array>"u"?$:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":yt?fe(fe([][Symbol.iterator]())):$,"%JSON%":typeof JSON=="object"?JSON:$,"%Map%":typeof Map>"u"?$:Map,"%MapIteratorPrototype%":typeof Map>"u"||!yt?$:fe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$:Promise,"%Proxy%":typeof Proxy>"u"?$:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$:Set,"%SetIteratorPrototype%":typeof Set>"u"||!yt?$:fe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":yt?fe(""[Symbol.iterator]()):$,"%Symbol%":yt?Symbol:$,"%SyntaxError%":mt,"%ThrowTypeError%":Wm,"%TypedArray%":qm,"%TypeError%":gt,"%Uint8Array%":typeof Uint8Array>"u"?$:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$:WeakSet};try{null.error}catch(t){var Km=fe(fe(t));qe["%Error.prototype%"]=Km}var zm=function t(e){var r;if(e==="%AsyncFunction%")r=Un("async function () {}");else if(e==="%GeneratorFunction%")r=Un("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=Un("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=t("%AsyncGenerator%");o&&(r=fe(o.prototype))}return qe[e]=r,r},ra={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Bt=jn,Or=Hm,Gm=Bt.call(Function.call,Array.prototype.concat),Ym=Bt.call(Function.apply,Array.prototype.splice),na=Bt.call(Function.call,String.prototype.replace),Cr=Bt.call(Function.call,String.prototype.slice),Jm=Bt.call(Function.call,RegExp.prototype.exec),Xm=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qm=/\\(\\)?/g,Zm=function(e){var r=Cr(e,0,1),n=Cr(e,-1);if(r==="%"&&n!=="%")throw new mt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mt("invalid intrinsic syntax, expected opening `%`");var o=[];return na(e,Xm,function(i,s,a,c){o[o.length]=a?na(c,Qm,"$1"):s||i}),o},eg=function(e,r){var n=e,o;if(Or(ra,n)&&(o=ra[n],n="%"+o[0]+"%"),Or(qe,n)){var i=qe[n];if(i===_t&&(i=zm(n)),typeof i>"u"&&!r)throw new gt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:i}}throw new mt("intrinsic "+e+" does not exist!")},Wn=function(e,r){if(typeof e!="string"||e.length===0)throw new gt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new gt('"allowMissing" argument must be a boolean');if(Jm(/^%?[^%]*%?$/,e)===null)throw new mt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Zm(e),o=n.length>0?n[0]:"",i=eg("%"+o+"%",r),s=i.name,a=i.value,c=!1,u=i.alias;u&&(o=u[0],Ym(n,Gm([0,1],u)));for(var f=1,h=!0;f=n.length){var p=We(a,g);h=!!p,h&&"get"in p&&!("originalValue"in p.get)?a=p.get:a=a[g]}else h=Or(a,g),a=a[g];h&&!c&&(qe[s]=a)}}return a},oa={exports:{}};(function(t){var e=jn,r=Wn,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||e.call(o,n),s=r("%Object.getOwnPropertyDescriptor%",!0),a=r("%Object.defineProperty%",!0),c=r("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}t.exports=function(h){var g=i(e,o,arguments);if(s&&a){var y=s(g,"length");y.configurable&&a(g,"length",{value:1+c(0,h.length-(arguments.length-1))})}return g};var u=function(){return i(e,n,arguments)};a?a(t.exports,"apply",{value:u}):t.exports.apply=u})(oa);var tg=oa.exports,ia=Wn,sa=tg,rg=sa(ia("String.prototype.indexOf")),ng=function(e,r){var n=ia(e,!!r);return typeof n=="function"&&rg(e,".prototype.")>-1?sa(n):n};const og=_m(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var qn=typeof Map=="function"&&Map.prototype,Kn=Object.getOwnPropertyDescriptor&&qn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Nr=qn&&Kn&&typeof Kn.get=="function"?Kn.get:null,aa=qn&&Map.prototype.forEach,zn=typeof Set=="function"&&Set.prototype,Gn=Object.getOwnPropertyDescriptor&&zn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,$r=zn&&Gn&&typeof Gn.get=="function"?Gn.get:null,la=zn&&Set.prototype.forEach,ig=typeof WeakMap=="function"&&WeakMap.prototype,xt=ig?WeakMap.prototype.has:null,sg=typeof WeakSet=="function"&&WeakSet.prototype,jt=sg?WeakSet.prototype.has:null,ag=typeof WeakRef=="function"&&WeakRef.prototype,ca=ag?WeakRef.prototype.deref:null,lg=Boolean.prototype.valueOf,cg=Object.prototype.toString,ug=Function.prototype.toString,fg=String.prototype.match,Yn=String.prototype.slice,Ie=String.prototype.replace,dg=String.prototype.toUpperCase,ua=String.prototype.toLowerCase,fa=RegExp.prototype.test,da=Array.prototype.concat,de=Array.prototype.join,pg=Array.prototype.slice,pa=Math.floor,Jn=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xn=Object.getOwnPropertySymbols,Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Et=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Et||"symbol")?Symbol.toStringTag:null,ha=Object.prototype.propertyIsEnumerable,ma=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ga(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||fa.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-pa(-t):pa(t);if(n!==t){var o=String(n),i=Yn.call(e,o.length+1);return Ie.call(o,r,"$&_")+"."+Ie.call(Ie.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ie.call(e,r,"$&_")}var Zn=og,ya=Zn.custom,_a=va(ya)?ya:null,hg=function t(e,r,n,o){var i=r||{};if(Le(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Le(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Le(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Le(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Le(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return wa(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return a?ga(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return a?ga(e,u):u}var f=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=f&&f>0&&typeof e=="object")return eo(e)?"[Array]":"[Object]";var h=Ig(i,n);if(typeof o>"u")o=[];else if(Sa(o,e)>=0)return"[Circular]";function g(R,W,U){if(W&&(o=pg.call(o),o.push(W)),U){var M={depth:i.depth};return Le(i,"quoteStyle")&&(M.quoteStyle=i.quoteStyle),t(R,M,n+1,o)}return t(R,i,n+1,o)}if(typeof e=="function"&&!ba(e)){var y=wg(e),d=Pr(e,g);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(d.length>0?" { "+de.call(d,", ")+" }":"")}if(va(e)){var p=Et?Ie.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Qn.call(e);return typeof e=="object"&&!Et?Ut(p):p}if($g(e)){for(var E="<"+ua.call(String(e.nodeName)),b=e.attributes||[],A=0;A",E}if(eo(e)){if(e.length===0)return"[]";var O=Pr(e,g);return h&&!Dg(O)?"["+ro(O,h)+"]":"[ "+de.call(O,", ")+" ]"}if(yg(e)){var S=Pr(e,g);return!("cause"in Error.prototype)&&"cause"in e&&!ha.call(e,"cause")?"{ ["+String(e)+"] "+de.call(da.call("[cause]: "+g(e.cause),S),", ")+" }":S.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+de.call(S,", ")+" }"}if(typeof e=="object"&&s){if(_a&&typeof e[_a]=="function"&&Zn)return Zn(e,{depth:f-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ag(e)){var C=[];return aa&&aa.call(e,function(R,W){C.push(g(W,e,!0)+" => "+g(R,e))}),Aa("Map",Nr.call(e),C,h)}if(Cg(e)){var v=[];return la&&la.call(e,function(R){v.push(g(R,e))}),Aa("Set",$r.call(e),v,h)}if(Tg(e))return to("WeakMap");if(Ng(e))return to("WeakSet");if(Og(e))return to("WeakRef");if(Eg(e))return Ut(g(Number(e)));if(vg(e))return Ut(g(Jn.call(e)));if(bg(e))return Ut(lg.call(e));if(_g(e))return Ut(g(String(e)));if(!gg(e)&&!ba(e)){var w=Pr(e,g),N=ma?ma(e)===Object.prototype:e instanceof Object||e.constructor===Object,I=e instanceof Object?"":"null prototype",L=!N&&H&&Object(e)===e&&H in e?Yn.call(Re(e),8,-1):I?"Object":"",k=N||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",B=k+(L||I?"["+de.call(da.call([],L||[],I||[]),": ")+"] ":"");return w.length===0?B+"{}":h?B+"{"+ro(w,h)+"}":B+"{ "+de.call(w,", ")+" }"}return String(e)};function Ea(t,e,r){var n=(r.quoteStyle||e)==="double"?'"':"'";return n+t+n}function mg(t){return Ie.call(String(t),/"/g,""")}function eo(t){return Re(t)==="[object Array]"&&(!H||!(typeof t=="object"&&H in t))}function gg(t){return Re(t)==="[object Date]"&&(!H||!(typeof t=="object"&&H in t))}function ba(t){return Re(t)==="[object RegExp]"&&(!H||!(typeof t=="object"&&H in t))}function yg(t){return Re(t)==="[object Error]"&&(!H||!(typeof t=="object"&&H in t))}function _g(t){return Re(t)==="[object String]"&&(!H||!(typeof t=="object"&&H in t))}function Eg(t){return Re(t)==="[object Number]"&&(!H||!(typeof t=="object"&&H in t))}function bg(t){return Re(t)==="[object Boolean]"&&(!H||!(typeof t=="object"&&H in t))}function va(t){if(Et)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Qn)return!1;try{return Qn.call(t),!0}catch{}return!1}function vg(t){if(!t||typeof t!="object"||!Jn)return!1;try{return Jn.call(t),!0}catch{}return!1}var Sg=Object.prototype.hasOwnProperty||function(t){return t in this};function Le(t,e){return Sg.call(t,e)}function Re(t){return cg.call(t)}function wg(t){if(t.name)return t.name;var e=fg.call(ug.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function Sa(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;re.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return wa(Yn.call(t,0,e.maxStringLength),e)+n}var o=Ie.call(Ie.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Pg);return Ea(o,"single",e)}function Pg(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+dg.call(e.toString(16))}function Ut(t){return"Object("+t+")"}function to(t){return t+" { ? }"}function Aa(t,e,r,n){var o=n?ro(r,n):de.call(r,", ");return t+" ("+e+") {"+o+"}"}function Dg(t){for(var e=0;e=0)return!1;return!0}function Ig(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=de.call(Array(t.indent+1)," ");else return null;return{base:r,prev:de.call(Array(e+1),r)}}function ro(t,e){if(t.length===0)return"";var r=` `+e.prev+e.base;return r+de.call(t,","+r)+` `+e.prev}function Pr(t,e){var r=eo(t),n=[];if(r){n.length=t.length;for(var o=0;o1;){var r=e.pop(),n=r.obj[r.prop];if(Ke(n)){for(var o=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===zg.RFC1738&&(u===40||u===41)){a+=s.charAt(c);continue}if(u<128){a=a+pe[u];continue}if(u<2048){a=a+(pe[192|u>>6]+pe[128|u&63]);continue}if(u<55296||u>=57344){a=a+(pe[224|u>>12]+pe[128|u>>6&63]+pe[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),a+=pe[240|u>>18]+pe[128|u>>12&63]+pe[128|u>>6&63]+pe[128|u&63]}return a},Zg=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],o=0;o"u"&&(O=0)}if(typeof c=="function"?b=c(r,b):b instanceof Date?b=h(b):n==="comma"&&be(b)&&(b=lo.maybeMap(b,function(ne){return ne instanceof Date?h(ne):ne})),b===null){if(i)return a&&!d?a(r,j.encoder,p,"key",g):r;b=""}if(ly(b)||lo.isBuffer(b)){if(a){var v=d?r:a(r,j.encoder,p,"key",g);if(n==="comma"&&d){for(var w=iy.call(String(b),","),N="",I=0;I"u")return L;var k;if(n==="comma"&&be(b))k=[{value:b.length>0?b.join(",")||null:void 0}];else if(be(c))k=c;else{var B=Object.keys(b);k=u?B.sort(u):B}for(var R=o&&be(b)&&b.length===1?r+"[]":r,W=0;W"u"?j.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:j.charsetSentinel,delimiter:typeof e.delimiter>"u"?j.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:j.encode,encoder:typeof e.encoder=="function"?e.encoder:j.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:j.encodeValuesOnly,filter:i,format:n,formatter:o,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:j.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:j.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:j.strictNullHandling}},fy=function(t,e){var r=t,n=uy(e),o,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):be(n.filter)&&(i=n.filter,o=i);var s=[];if(typeof r!="object"||r===null)return"";var a;e&&e.arrayFormat in Na?a=e.arrayFormat:e&&"indices"in e?a=e.indices?"indices":"repeat":a="indices";var c=Na[a];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;o||(o=Object.keys(r)),n.sort&&o.sort(n.sort);for(var f=Ca(),h=0;h0?d+y:""},vt=Oa,uo=Object.prototype.hasOwnProperty,dy=Array.isArray,V={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:vt.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},py=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Da=function(t,e){return t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1?t.split(","):t},hy="utf8=%26%2310003%3B",my="utf8=%E2%9C%93",gy=function(e,r){var n={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,s=o.split(r.delimiter,i),a=-1,c,u=r.charset;if(r.charsetSentinel)for(c=0;c-1&&(d=dy(d)?[d]:d),uo.call(n,y)?n[y]=vt.combine(n[y],d):n[y]=d}return n},yy=function(t,e,r,n){for(var o=n?e:Da(e,r),i=t.length-1;i>=0;--i){var s,a=t[i];if(a==="[]"&&r.parseArrays)s=[].concat(o);else{s=r.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(c,10);!r.parseArrays&&c===""?s={0:o}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(s=[],s[u]=o):c!=="__proto__"&&(s[c]=o)}o=s}return o},_y=function(e,r,n,o){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,f=[];if(u){if(!n.plainObjects&&uo.call(Object.prototype,u)&&!n.allowPrototypes)return;f.push(u)}for(var h=0;n.depth>0&&(c=a.exec(i))!==null&&h"u"?V.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?V.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:V.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:V.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:V.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:V.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:V.comma,decoder:typeof e.decoder=="function"?e.decoder:V.decoder,delimiter:typeof e.delimiter=="string"||vt.isRegExp(e.delimiter)?e.delimiter:V.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:V.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:V.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:V.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:V.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:V.strictNullHandling}},by=function(t,e){var r=Ey(e);if(t===""||t===null||typeof t>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof t=="string"?gy(t,r):t,o=r.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s
'};r.configure=function(d){var p,E;for(p in d)E=d[p],E!==void 0&&d.hasOwnProperty(p)&&(n[p]=E);return this},r.status=null,r.set=function(d){var p=r.isStarted();d=o(d,n.minimum,1),r.status=d===1?null:d;var E=r.render(!p),b=E.querySelector(n.barSelector),A=n.speed,O=n.easing;return E.offsetWidth,a(function(S){n.positionUsing===""&&(n.positionUsing=r.getPositioningCSS()),c(b,s(d,A,O)),d===1?(c(E,{transition:"none",opacity:1}),E.offsetWidth,setTimeout(function(){c(E,{transition:"all "+A+"ms linear",opacity:0}),setTimeout(function(){r.remove(),S()},A)},A)):setTimeout(S,A)}),this},r.isStarted=function(){return typeof r.status=="number"},r.start=function(){r.status||r.set(0);var d=function(){setTimeout(function(){r.status&&(r.trickle(),d())},n.trickleSpeed)};return n.trickle&&d(),this},r.done=function(d){return!d&&!r.status?this:r.inc(.3+.5*Math.random()).set(1)},r.inc=function(d){var p=r.status;return p?(typeof d!="number"&&(d=(1-p)*o(Math.random()*p,.1,.95)),p=o(p+d,0,.994),r.set(p)):r.start()},r.trickle=function(){return r.inc(Math.random()*n.trickleRate)},function(){var d=0,p=0;r.promise=function(E){return!E||E.state()==="resolved"?this:(p===0&&r.start(),d++,p++,E.always(function(){p--,p===0?(d=0,r.done()):r.set((d-p)/d)}),this)}}(),r.render=function(d){if(r.isRendered())return document.getElementById("nprogress");f(document.documentElement,"nprogress-busy");var p=document.createElement("div");p.id="nprogress",p.innerHTML=n.template;var E=p.querySelector(n.barSelector),b=d?"-100":i(r.status||0),A=document.querySelector(n.parent),O;return c(E,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),n.showSpinner||(O=p.querySelector(n.spinnerSelector),O&&y(O)),A!=document.body&&f(A,"nprogress-custom-parent"),A.appendChild(p),p},r.remove=function(){h(document.documentElement,"nprogress-busy"),h(document.querySelector(n.parent),"nprogress-custom-parent");var d=document.getElementById("nprogress");d&&y(d)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var d=document.body.style,p="WebkitTransform"in d?"Webkit":"MozTransform"in d?"Moz":"msTransform"in d?"ms":"OTransform"in d?"O":"";return p+"Perspective"in d?"translate3d":p+"Transform"in d?"translate":"margin"};function o(d,p,E){return dE?E:d}function i(d){return(-1+d)*100}function s(d,p,E){var b;return n.positionUsing==="translate3d"?b={transform:"translate3d("+i(d)+"%,0,0)"}:n.positionUsing==="translate"?b={transform:"translate("+i(d)+"%,0)"}:b={"margin-left":i(d)+"%"},b.transition="all "+p+"ms "+E,b}var a=function(){var d=[];function p(){var E=d.shift();E&&E(p)}return function(E){d.push(E),d.length==1&&p()}}(),c=function(){var d=["Webkit","O","Moz","ms"],p={};function E(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(C,v){return v.toUpperCase()})}function b(S){var C=document.body.style;if(S in C)return S;for(var v=d.length,w=S.charAt(0).toUpperCase()+S.slice(1),N;v--;)if(N=d[v]+w,N in C)return N;return S}function A(S){return S=E(S),p[S]||(p[S]=b(S))}function O(S,C,v){C=A(C),S.style[C]=v}return function(S,C){var v=arguments,w,N;if(v.length==2)for(w in C)N=C[w],N!==void 0&&C.hasOwnProperty(w)&&O(S,w,N);else O(S,v[1],v[2])}}();function u(d,p){var E=typeof d=="string"?d:g(d);return E.indexOf(" "+p+" ")>=0}function f(d,p){var E=g(d),b=E+p;u(E,p)||(d.className=b.substring(1))}function h(d,p){var E=g(d),b;u(d,p)&&(b=E.replace(" "+p+" "," "),d.className=b.substring(1,b.length-1))}function g(d){return(" "+(d.className||"")+" ").replace(/\s+/gi," ")}function y(d){d&&d.parentNode&&d.parentNode.removeChild(d)}return r})})(Ay);function Ty(t,e){let r;return function(...n){clearTimeout(r),r=setTimeout(()=>t.apply(this,n),e)}}function ve(t,e){return document.dispatchEvent(new CustomEvent(`inertia:${t}`,e))}var Oy=t=>ve("before",{cancelable:!0,detail:{visit:t}}),Cy=t=>ve("error",{detail:{errors:t}}),Ny=t=>ve("exception",{cancelable:!0,detail:{exception:t}}),La=t=>ve("finish",{detail:{visit:t}}),$y=t=>ve("invalid",{cancelable:!0,detail:{response:t}}),Wt=t=>ve("navigate",{detail:{page:t}}),Py=t=>ve("progress",{detail:{progress:t}}),Dy=t=>ve("start",{detail:{visit:t}}),Iy=t=>ve("success",{detail:{page:t}});function fo(t){return t instanceof File||t instanceof Blob||t instanceof FileList&&t.length>0||t instanceof FormData&&Array.from(t.values()).some(e=>fo(e))||typeof t=="object"&&t!==null&&Object.values(t).some(e=>fo(e))}function Ra(t,e=new FormData,r=null){t=t||{};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&Fa(e,ka(r,n),t[n]);return e}function ka(t,e){return t?t+"["+e+"]":e}function Fa(t,e,r){if(Array.isArray(r))return Array.from(r.keys()).forEach(n=>Fa(t,ka(e,n.toString()),r[n]));if(r instanceof Date)return t.append(e,r.toISOString());if(r instanceof File)return t.append(e,r,r.name);if(r instanceof Blob)return t.append(e,r);if(typeof r=="boolean")return t.append(e,r?"1":"0");if(typeof r=="string")return t.append(e,r);if(typeof r=="number")return t.append(e,`${r}`);if(r==null)return t.append(e,"");Ra(r,t,e)}var Ly={modal:null,listener:null,show(t){typeof t=="object"&&(t=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(t)}`);let e=document.createElement("html");e.innerHTML=t,e.querySelectorAll("a").forEach(n=>n.setAttribute("target","_top")),this.modal=document.createElement("div"),this.modal.style.position="fixed",this.modal.style.width="100vw",this.modal.style.height="100vh",this.modal.style.padding="50px",this.modal.style.boxSizing="border-box",this.modal.style.backgroundColor="rgba(0, 0, 0, .6)",this.modal.style.zIndex=2e5,this.modal.addEventListener("click",()=>this.hide());let r=document.createElement("iframe");if(r.style.backgroundColor="white",r.style.borderRadius="5px",r.style.width="100%",r.style.height="100%",this.modal.appendChild(r),document.body.prepend(this.modal),document.body.style.overflow="hidden",!r.contentWindow)throw new Error("iframe not yet ready.");r.contentWindow.document.open(),r.contentWindow.document.write(e.outerHTML),r.contentWindow.document.close(),this.listener=this.hideOnEscape.bind(this),document.addEventListener("keydown",this.listener)},hide(){this.modal.outerHTML="",this.modal=null,document.body.style.overflow="visible",document.removeEventListener("keydown",this.listener)},hideOnEscape(t){t.keyCode===27&&this.hide()}};function St(t){return new URL(t.toString(),window.location.toString())}function Ry(t,e,r,n="brackets"){let o=/^https?:\/\//.test(e.toString()),i=o||e.toString().startsWith("/"),s=!i&&!e.toString().startsWith("#")&&!e.toString().startsWith("?"),a=e.toString().includes("?")||t==="get"&&Object.keys(r).length,c=e.toString().includes("#"),u=new URL(e.toString(),"http://localhost");return t==="get"&&Object.keys(r).length&&(u.search=Ia.stringify(Lm(Ia.parse(u.search,{ignoreQueryPrefix:!0}),r),{encodeValuesOnly:!0,arrayFormat:n}),r={}),[[o?`${u.protocol}//${u.host}`:"",i?u.pathname:"",s?u.pathname.substring(1):"",a?u.search:"",c?u.hash:""].join(""),r]}function qt(t){return t=new URL(t.href),t.hash="",t}var Ma=typeof window>"u",ky=class{constructor(){this.visitId=null}init({initialPage:t,resolveComponent:e,swapComponent:r}){this.page=t,this.resolveComponent=e,this.swapComponent=r,this.setNavigationType(),this.clearRememberedStateOnReload(),this.isBackForwardVisit()?this.handleBackForwardVisit(this.page):this.isLocationVisit()?this.handleLocationVisit(this.page):this.handleInitialPageVisit(this.page),this.setupEventListeners()}setNavigationType(){this.navigationType=window.performance&&window.performance.getEntriesByType("navigation").length>0?window.performance.getEntriesByType("navigation")[0].type:"navigate"}clearRememberedStateOnReload(){var t;this.navigationType==="reload"&&((t=window.history.state)!=null&&t.rememberedState)&&delete window.history.state.rememberedState}handleInitialPageVisit(t){this.page.url+=window.location.hash,this.setPage(t,{preserveState:!0}).then(()=>Wt(t))}setupEventListeners(){window.addEventListener("popstate",this.handlePopstateEvent.bind(this)),document.addEventListener("scroll",Ty(this.handleScrollEvent.bind(this),100),!0)}scrollRegions(){return document.querySelectorAll("[scroll-region]")}handleScrollEvent(t){typeof t.target.hasAttribute=="function"&&t.target.hasAttribute("scroll-region")&&this.saveScrollPositions()}saveScrollPositions(){this.replaceState({...this.page,scrollRegions:Array.from(this.scrollRegions()).map(t=>({top:t.scrollTop,left:t.scrollLeft}))})}resetScrollPositions(){window.scrollTo(0,0),this.scrollRegions().forEach(t=>{typeof t.scrollTo=="function"?t.scrollTo(0,0):(t.scrollTop=0,t.scrollLeft=0)}),this.saveScrollPositions(),window.location.hash&&setTimeout(()=>{var t;return(t=document.getElementById(window.location.hash.slice(1)))==null?void 0:t.scrollIntoView()})}restoreScrollPositions(){this.page.scrollRegions&&this.scrollRegions().forEach((t,e)=>{let r=this.page.scrollRegions[e];if(r)typeof t.scrollTo=="function"?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left);else return})}isBackForwardVisit(){return window.history.state&&this.navigationType==="back_forward"}handleBackForwardVisit(t){window.history.state.version=t.version,this.setPage(window.history.state,{preserveScroll:!0,preserveState:!0}).then(()=>{this.restoreScrollPositions(),Wt(t)})}locationVisit(t,e){try{let r={preserveScroll:e};window.sessionStorage.setItem("inertiaLocationVisit",JSON.stringify(r)),window.location.href=t.href,qt(window.location).href===qt(t).href&&window.location.reload()}catch{return!1}}isLocationVisit(){try{return window.sessionStorage.getItem("inertiaLocationVisit")!==null}catch{return!1}}handleLocationVisit(t){var r,n;let e=JSON.parse(window.sessionStorage.getItem("inertiaLocationVisit")||"");window.sessionStorage.removeItem("inertiaLocationVisit"),t.url+=window.location.hash,t.rememberedState=((r=window.history.state)==null?void 0:r.rememberedState)??{},t.scrollRegions=((n=window.history.state)==null?void 0:n.scrollRegions)??[],this.setPage(t,{preserveScroll:e.preserveScroll,preserveState:!0}).then(()=>{e.preserveScroll&&this.restoreScrollPositions(),Wt(t)})}isLocationVisitResponse(t){return!!(t&&t.status===409&&t.headers["x-inertia-location"])}isInertiaResponse(t){return!!(t!=null&&t.headers["x-inertia"])}createVisitId(){return this.visitId={},this.visitId}cancelVisit(t,{cancelled:e=!1,interrupted:r=!1}){t&&!t.completed&&!t.cancelled&&!t.interrupted&&(t.cancelToken.abort(),t.onCancel(),t.completed=!1,t.cancelled=e,t.interrupted=r,La(t),t.onFinish(t))}finishVisit(t){!t.cancelled&&!t.interrupted&&(t.completed=!0,t.cancelled=!1,t.interrupted=!1,La(t),t.onFinish(t))}resolvePreserveOption(t,e){return typeof t=="function"?t(e):t==="errors"?Object.keys(e.props.errors||{}).length>0:t}cancel(){this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}visit(t,{method:e="get",data:r={},replace:n=!1,preserveScroll:o=!1,preserveState:i=!1,only:s=[],headers:a={},errorBag:c="",forceFormData:u=!1,onCancelToken:f=()=>{},onBefore:h=()=>{},onStart:g=()=>{},onProgress:y=()=>{},onFinish:d=()=>{},onCancel:p=()=>{},onSuccess:E=()=>{},onError:b=()=>{},queryStringArrayFormat:A="brackets"}={}){let O=typeof t=="string"?St(t):t;if((fo(r)||u)&&!(r instanceof FormData)&&(r=Ra(r)),!(r instanceof FormData)){let[v,w]=Ry(e,O,r,A);O=St(v),r=w}let S={url:O,method:e,data:r,replace:n,preserveScroll:o,preserveState:i,only:s,headers:a,errorBag:c,forceFormData:u,queryStringArrayFormat:A,cancelled:!1,completed:!1,interrupted:!1};if(h(S)===!1||!Oy(S))return;this.activeVisit&&this.cancelVisit(this.activeVisit,{interrupted:!0}),this.saveScrollPositions();let C=this.createVisitId();this.activeVisit={...S,onCancelToken:f,onBefore:h,onStart:g,onProgress:y,onFinish:d,onCancel:p,onSuccess:E,onError:b,queryStringArrayFormat:A,cancelToken:new AbortController},f({cancel:()=>{this.activeVisit&&this.cancelVisit(this.activeVisit,{cancelled:!0})}}),Dy(S),g(S),Xs({method:e,url:qt(O).href,data:e==="get"?{}:r,params:e==="get"?r:{},signal:this.activeVisit.cancelToken.signal,headers:{...a,Accept:"text/html, application/xhtml+xml","X-Requested-With":"XMLHttpRequest","X-Inertia":!0,...s.length?{"X-Inertia-Partial-Component":this.page.component,"X-Inertia-Partial-Data":s.join(",")}:{},...c&&c.length?{"X-Inertia-Error-Bag":c}:{},...this.page.version?{"X-Inertia-Version":this.page.version}:{}},onUploadProgress:v=>{r instanceof FormData&&(v.percentage=v.progress?Math.round(v.progress*100):0,Py(v),y(v))}}).then(v=>{var L;if(!this.isInertiaResponse(v))return Promise.reject({response:v});let w=v.data;s.length&&w.component===this.page.component&&(w.props={...this.page.props,...w.props}),o=this.resolvePreserveOption(o,w),i=this.resolvePreserveOption(i,w),i&&((L=window.history.state)!=null&&L.rememberedState)&&w.component===this.page.component&&(w.rememberedState=window.history.state.rememberedState);let N=O,I=St(w.url);return N.hash&&!I.hash&&qt(N).href===I.href&&(I.hash=N.hash,w.url=I.href),this.setPage(w,{visitId:C,replace:n,preserveScroll:o,preserveState:i})}).then(()=>{let v=this.page.props.errors||{};if(Object.keys(v).length>0){let w=c?v[c]?v[c]:{}:v;return Cy(w),b(w)}return Iy(this.page),E(this.page)}).catch(v=>{if(this.isInertiaResponse(v.response))return this.setPage(v.response.data,{visitId:C});if(this.isLocationVisitResponse(v.response)){let w=St(v.response.headers["x-inertia-location"]),N=O;N.hash&&!w.hash&&qt(N).href===w.href&&(w.hash=N.hash),this.locationVisit(w,o===!0)}else if(v.response)$y(v.response)&&Ly.show(v.response.data);else return Promise.reject(v)}).then(()=>{this.activeVisit&&this.finishVisit(this.activeVisit)}).catch(v=>{if(!Xs.isCancel(v)){let w=Ny(v);if(this.activeVisit&&this.finishVisit(this.activeVisit),w)return Promise.reject(v)}})}setPage(t,{visitId:e=this.createVisitId(),replace:r=!1,preserveScroll:n=!1,preserveState:o=!1}={}){return Promise.resolve(this.resolveComponent(t.component)).then(i=>{e===this.visitId&&(t.scrollRegions=t.scrollRegions||[],t.rememberedState=t.rememberedState||{},r=r||St(t.url).href===window.location.href,r?this.replaceState(t):this.pushState(t),this.swapComponent({component:i,page:t,preserveState:o}).then(()=>{n||this.resetScrollPositions(),r||Wt(t)}))})}pushState(t){this.page=t,window.history.pushState(t,"",t.url)}replaceState(t){this.page=t,window.history.replaceState(t,"",t.url)}handlePopstateEvent(t){if(t.state!==null){let e=t.state,r=this.createVisitId();Promise.resolve(this.resolveComponent(e.component)).then(n=>{r===this.visitId&&(this.page=e,this.swapComponent({component:n,page:e,preserveState:!1}).then(()=>{this.restoreScrollPositions(),Wt(e)}))})}else{let e=St(this.page.url);e.hash=window.location.hash,this.replaceState({...this.page,url:e.href}),this.resetScrollPositions()}}get(t,e={},r={}){return this.visit(t,{...r,method:"get",data:e})}reload(t={}){return this.visit(window.location.href,{...t,preserveScroll:!0,preserveState:!0})}replace(t,e={}){return console.warn(`Inertia.replace() has been deprecated and will be removed in a future release. Please use Inertia.${e.method??"get"}() instead.`),this.visit(t,{preserveState:!0,...e,replace:!0})}post(t,e={},r={}){return this.visit(t,{preserveState:!0,...r,method:"post",data:e})}put(t,e={},r={}){return this.visit(t,{preserveState:!0,...r,method:"put",data:e})}patch(t,e={},r={}){return this.visit(t,{preserveState:!0,...r,method:"patch",data:e})}delete(t,e={}){return this.visit(t,{preserveState:!0,...e,method:"delete"})}remember(t,e="default"){var r;Ma||this.replaceState({...this.page,rememberedState:{...(r=this.page)==null?void 0:r.rememberedState,[e]:t}})}restore(t="default"){var e,r;if(!Ma)return(r=(e=window.history.state)==null?void 0:e.rememberedState)==null?void 0:r[t]}on(t,e){let r=n=>{let o=e(n);n.cancelable&&!n.defaultPrevented&&o===!1&&n.preventDefault()};return document.addEventListener(`inertia:${t}`,r),()=>document.removeEventListener(`inertia:${t}`,r)}},Fy=new ky;let Va;const My=t=>{Va=t},Ba=()=>Va??Fy,Vy=async(t,e,r)=>{await new Promise((n,o)=>{var i;Ba().visit(e,{data:((i=r.submitTransform)==null?void 0:i.call(r,t.data))??t.data,preserveState:!0,...r,onError:s=>{var c;const a=Object.fromEntries(Object.entries(s).map(([u,f])=>[u,{valid:!1,message:f}]));(c=r==null?void 0:r.onError)==null||c.call(r,s),o(a)},onSuccess:s=>{var a;t.errors={},(a=r==null?void 0:r.onSuccess)==null||a.call(r,s),n()},onFinish:s=>{var a;(a=r==null?void 0:r.onFinish)==null||a.call(r,s),n()}})})},By=(t,e,r)=>{const n=bs(r),o=n.callbacks.onSubmit;return n.callbacks.onSubmit=async i=>{var s,a;await o(i);try{await Vy(i,t instanceof Function?t(i):t,e)}catch(c){throw i.errors={...i.errors,...c},(a=(s=i.callbacks).onError)==null||a.call(s,i.errors,i),c}},n};var xa=(t=>(t.Text="text",t.Textarea="textarea",t.Select="select",t.Radio="radio",t.Date="date",t.Time="time",t.Email="email",t.Tel="tel",t.Url="url",t.Password="password",t.Hidden="hidden",t))(xa||{});const xy=t=>Object.fromEntries(new FormData(t));P.BaseFormField=oe,P.CardFormField=Mr,P.Form=Jp,P.FormFieldComponent=_s,P.FormFieldError=ie,P.FormFieldLabel=$e,P.HtmlFormFieldType=xa,P.SectionTitle=nh,P.createForm=Es,P.formFieldPlugin=gs,P.getFormAsJson=xy,P.getFormFieldGroups=_o,P.getFormFields=Eo,P.getInertiaRouter=Ba,P.getValidationErrors=So,P.isFormField=yo,P.isFormFieldGroup=Gt,P.onSubmitValidation=wo,P.resetFormErrors=vo,P.setInertiaRouter=My,P.useForm=bs,P.useInertiaForm=By,P.useInputEvents=is,P.useStdComponent=ce,P.useTooltip=os,P.useValidation=ss,P.validateFields=bo,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}); //# sourceMappingURL=v-bs-forms.umd.cjs.map