UNPKG

sveltestrap

Version:
1 lines 235 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).sveltestrap={})}(this,(function(t){"use strict";function e(){}const n=t=>t;function l(t,e){for(const n in e)t[n]=e[n];return t}function s(t){return t()}function o(){return Object.create(null)}function c(t){t.forEach(s)}function i(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function a(t,n,l){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const l=t.subscribe(...n);return l.unsubscribe?()=>l.unsubscribe():l}(n,l))}function u(t,e,n,l){if(t){const s=d(t,e,n,l);return t[0](s)}}function d(t,e,n,s){return t[1]&&s?l(n.ctx.slice(),t[1](s(e))):n.ctx}function p(t,e,n,l,s,o,c){const i=function(t,e,n,l){if(t[2]&&l){const s=t[2](l(n));if(void 0===e.dirty)return s;if("object"==typeof s){const t=[],n=Math.max(e.dirty.length,s.length);for(let l=0;l<n;l+=1)t[l]=e.dirty[l]|s[l];return t}return e.dirty|s}return e.dirty}(e,l,s,o);if(i){const s=d(e,n,l,c);t.p(s,i)}}function f(t){const e={};for(const n in t)"$"!==n[0]&&(e[n]=t[n]);return e}function h(t,e){const n={};e=new Set(e);for(const l in t)e.has(l)||"$"===l[0]||(n[l]=t[l]);return n}function $(t){const e={};for(const n in t)e[n]=!0;return e}function m(t){return t&&i(t.destroy)?t.destroy:e}const g="undefined"!=typeof window;let v=g?()=>window.performance.now():()=>Date.now(),b=g?t=>requestAnimationFrame(t):e;const y=new Set;function x(t){y.forEach((e=>{e.c(t)||(y.delete(e),e.f())})),0!==y.size&&b(x)}function w(t){let e;return 0===y.size&&b(x),{promise:new Promise((n=>{y.add(e={c:t,f:n})})),abort(){y.delete(e)}}}function k(t,e){t.appendChild(e)}function E(t,e,n){t.insertBefore(e,n||null)}function O(t){t.parentNode.removeChild(t)}function N(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function I(t){return document.createElement(t)}function L(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function C(t){return document.createTextNode(t)}function z(){return C(" ")}function D(){return C("")}function T(t,e,n,l){return t.addEventListener(e,n,l),()=>t.removeEventListener(e,n,l)}function A(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function _(t,e){const n=Object.getOwnPropertyDescriptors(t.__proto__);for(const l in e)null==e[l]?t.removeAttribute(l):"style"===l?t.style.cssText=e[l]:"__value"===l?t.value=t[l]=e[l]:n[l]&&n[l].set?t[l]=e[l]:A(t,l,e[l])}function P(t){return""===t?null:+t}function V(t){return Array.from(t.childNodes)}function j(t,e,n,l){for(let l=0;l<t.length;l+=1){const s=t[l];if(s.nodeName===e){let e=0;const o=[];for(;e<s.attributes.length;){const t=s.attributes[e++];n[t.name]||o.push(t.name)}for(let t=0;t<o.length;t++)s.removeAttribute(o[t]);return t.splice(l,1)[0]}}return l?L(e):I(e)}function B(t,e){for(let n=0;n<t.length;n+=1){const l=t[n];if(3===l.nodeType)return l.data=""+e,t.splice(n,1)[0]}return C(e)}function S(t){return B(t," ")}function F(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function H(t,e){t.value=null==e?"":e}function M(t,e,n,l){t.style.setProperty(e,n,l?"important":"")}function R(t,e){for(let n=0;n<t.options.length;n+=1){const l=t.options[n];if(l.__value===e)return void(l.selected=!0)}}function U(t,e){for(let n=0;n<t.options.length;n+=1){const l=t.options[n];l.selected=~e.indexOf(l.__value)}}function q(t,e,n){t.classList[n?"add":"remove"](e)}function W(t,e){const n=document.createEvent("CustomEvent");return n.initCustomEvent(t,!1,!1,e),n}const G=new Set;let Y,X=0;function K(t,e,n,l,s,o,c,i=0){const r=16.666/l;let a="{\n";for(let t=0;t<=1;t+=r){const l=e+(n-e)*o(t);a+=100*t+`%{${c(l,1-l)}}\n`}const u=a+`100% {${c(n,1-n)}}\n}`,d=`__svelte_${function(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}(u)}_${i}`,p=t.ownerDocument;G.add(p);const f=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(I("style")).sheet),h=p.__svelte_rules||(p.__svelte_rules={});h[d]||(h[d]=!0,f.insertRule(`@keyframes ${d} ${u}`,f.cssRules.length));const $=t.style.animation||"";return t.style.animation=`${$?`${$}, `:""}${d} ${l}ms linear ${s}ms 1 both`,X+=1,d}function J(t,e){const n=(t.style.animation||"").split(", "),l=n.filter(e?t=>t.indexOf(e)<0:t=>-1===t.indexOf("__svelte")),s=n.length-l.length;s&&(t.style.animation=l.join(", "),X-=s,X||b((()=>{X||(G.forEach((t=>{const e=t.__svelte_stylesheet;let n=e.cssRules.length;for(;n--;)e.deleteRule(n);t.__svelte_rules={}})),G.clear())})))}function Q(t){Y=t}function Z(){if(!Y)throw new Error("Function called outside component initialization");return Y}function tt(t){Z().$$.on_mount.push(t)}function et(t){Z().$$.on_destroy.push(t)}function nt(){const t=Z();return(e,n)=>{const l=t.$$.callbacks[e];if(l){const s=W(e,n);l.slice().forEach((e=>{e.call(t,s)}))}}}function lt(t,e){Z().$$.context.set(t,e)}function st(t){return Z().$$.context.get(t)}function ot(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t(e)))}const ct=[],it=[],rt=[],at=[],ut=Promise.resolve();let dt=!1;function pt(t){rt.push(t)}function ft(t){at.push(t)}let ht=!1;const $t=new Set;function mt(){if(!ht){ht=!0;do{for(let t=0;t<ct.length;t+=1){const e=ct[t];Q(e),gt(e.$$)}for(Q(null),ct.length=0;it.length;)it.pop()();for(let t=0;t<rt.length;t+=1){const e=rt[t];$t.has(e)||($t.add(e),e())}rt.length=0}while(ct.length);for(;at.length;)at.pop()();dt=!1,ht=!1,$t.clear()}}function gt(t){if(null!==t.fragment){t.update(),c(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(pt)}}let vt;function bt(){return vt||(vt=Promise.resolve(),vt.then((()=>{vt=null}))),vt}function yt(t,e,n){t.dispatchEvent(W(`${e?"intro":"outro"}${n}`))}const xt=new Set;let wt;function kt(){wt={r:0,c:[],p:wt}}function Et(){wt.r||c(wt.c),wt=wt.p}function Ot(t,e){t&&t.i&&(xt.delete(t),t.i(e))}function Nt(t,e,n,l){if(t&&t.o){if(xt.has(t))return;xt.add(t),wt.c.push((()=>{xt.delete(t),l&&(n&&t.d(1),l())})),t.o(e)}}const It={duration:0};function Lt(t,l,s){let o,c,r=l(t,s),a=!1,u=0;function d(){o&&J(t,o)}function p(){const{delay:l=0,duration:s=300,easing:i=n,tick:p=e,css:f}=r||It;f&&(o=K(t,0,1,s,l,i,f,u++)),p(0,1);const h=v()+l,$=h+s;c&&c.abort(),a=!0,pt((()=>yt(t,!0,"start"))),c=w((e=>{if(a){if(e>=$)return p(1,0),yt(t,!0,"end"),d(),a=!1;if(e>=h){const t=i((e-h)/s);p(t,1-t)}}return a}))}let f=!1;return{start(){f||(J(t),i(r)?(r=r(),bt().then(p)):p())},invalidate(){f=!1},end(){a&&(d(),a=!1)}}}function Ct(t,l,s){let o,r=l(t,s),a=!0;const u=wt;function d(){const{delay:l=0,duration:s=300,easing:i=n,tick:d=e,css:p}=r||It;p&&(o=K(t,1,0,s,l,i,p));const f=v()+l,h=f+s;pt((()=>yt(t,!1,"start"))),w((e=>{if(a){if(e>=h)return d(0,1),yt(t,!1,"end"),--u.r||c(u.c),!1;if(e>=f){const t=i((e-f)/s);d(1-t,t)}}return a}))}return u.r+=1,i(r)?bt().then((()=>{r=r(),d()})):d(),{end(e){e&&r.tick&&r.tick(1,0),a&&(o&&J(t,o),a=!1)}}}function zt(t,l,s,o){let r=l(t,s),a=o?0:1,u=null,d=null,p=null;function f(){p&&J(t,p)}function h(t,e){const n=t.b-a;return e*=Math.abs(n),{a:a,b:t.b,d:n,duration:e,start:t.start,end:t.start+e,group:t.group}}function $(l){const{delay:s=0,duration:o=300,easing:i=n,tick:$=e,css:m}=r||It,g={start:v()+s,b:l};l||(g.group=wt,wt.r+=1),u||d?d=g:(m&&(f(),p=K(t,a,l,o,s,i,m)),l&&$(0,1),u=h(g,o),pt((()=>yt(t,l,"start"))),w((e=>{if(d&&e>d.start&&(u=h(d,o),d=null,yt(t,u.b,"start"),m&&(f(),p=K(t,a,u.b,u.duration,0,i,r.css))),u)if(e>=u.end)$(a=u.b,1-a),yt(t,u.b,"end"),d||(u.b?f():--u.group.r||c(u.group.c)),u=null;else if(e>=u.start){const t=e-u.start;a=u.a+u.d*i(t/u.duration),$(a,1-a)}return!(!u&&!d)})))}return{run(t){i(r)?bt().then((()=>{r=r(),$(t)})):$(t)},end(){f(),u=d=null}}}const Dt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Tt(t,e){const n={},l={},s={$$scope:1};let o=t.length;for(;o--;){const c=t[o],i=e[o];if(i){for(const t in c)t in i||(l[t]=1);for(const t in i)s[t]||(n[t]=i[t],s[t]=1);t[o]=i}else for(const t in c)s[t]=1}for(const t in l)t in n||(n[t]=void 0);return n}function At(t){return"object"==typeof t&&null!==t?t:{}}function _t(t,e,n){const l=t.$$.props[e];void 0!==l&&(t.$$.bound[l]=n,n(t.$$.ctx[l]))}function Pt(t){t&&t.c()}function Vt(t,e){t&&t.l(e)}function jt(t,e,n,l){const{fragment:o,on_mount:r,on_destroy:a,after_update:u}=t.$$;o&&o.m(e,n),l||pt((()=>{const e=r.map(s).filter(i);a?a.push(...e):c(e),t.$$.on_mount=[]})),u.forEach(pt)}function Bt(t,e){const n=t.$$;null!==n.fragment&&(c(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function St(t,e){-1===t.$$.dirty[0]&&(ct.push(t),dt||(dt=!0,ut.then(mt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ft(t,n,l,s,i,r,a=[-1]){const u=Y;Q(t);const d=t.$$={fragment:null,ctx:null,props:r,update:e,not_equal:i,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:n.context||[]),callbacks:o(),dirty:a,skip_bound:!1};let p=!1;if(d.ctx=l?l(t,n.props||{},((e,n,...l)=>{const s=l.length?l[0]:n;return d.ctx&&i(d.ctx[e],d.ctx[e]=s)&&(!d.skip_bound&&d.bound[e]&&d.bound[e](s),p&&St(t,e)),n})):[],d.update(),p=!0,c(d.before_update),d.fragment=!!s&&s(d.ctx),n.target){if(n.hydrate){const t=V(n.target);d.fragment&&d.fragment.l(t),t.forEach(O)}else d.fragment&&d.fragment.c();n.intro&&Ot(t.$$.fragment),jt(t,n.target,n.anchor,n.customElement),mt()}Q(u)}class Ht{$destroy(){Bt(this,1),this.$destroy=e}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Mt(t){document.body.style.paddingRight=t>0?`${t}px`:null}function Rt(t){const e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ut(){const t=function(){let t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);const e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e}(),e=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=e?parseInt(e.style.paddingRight||0,10):0;window&&document.body.clientWidth<window.innerWidth&&Mt(n+t)}function qt(t,e,n){return!0===n||""===n?t?"col":`col-${e}`:"auto"===n?t?"col-auto":`col-${e}-auto`:t?`col-${n}`:`col-${e}-${n}`}function Wt(t,...e){return t.addEventListener(...e),()=>t.removeEventListener(...e)}function Gt(t,e,n){return"prev"===t?0===n?e.length-1:n-1:"next"===t?n===e.length-1?0:n+1:void 0}function Yt(t){let e="";if("string"==typeof t||"number"==typeof t)e+=t;else if("object"==typeof t)if(Array.isArray(t))e=t.map(Yt).filter(Boolean).join(" ");else for(let n in t)t[n]&&(e&&(e+=" "),e+=n);return e}function Xt(...t){return t.map(Yt).filter(Boolean).join(" ")}function Kt(t){if(!t)return 0;let{transitionDuration:e,transitionDelay:n}=window.getComputedStyle(t);const l=Number.parseFloat(e),s=Number.parseFloat(n);return l||s?(e=e.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(n))):0}function Jt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(t=>{const e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))}const Qt=[];function Zt(t,n=e){let l;const s=[];function o(e){if(r(t,e)&&(t=e,l)){const e=!Qt.length;for(let e=0;e<s.length;e+=1){const n=s[e];n[1](),Qt.push(n,t)}if(e){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(c,i=e){const r=[c,i];return s.push(r),1===s.length&&(l=n(o)||e),c(t),()=>{const t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(l(),l=null)}}}}function te(t){let e,n;const s=t[7].default,o=u(s,t,t[6],null);let c=[{class:t[0]},t[2]],i={};for(let t=0;t<c.length;t+=1)i=l(i,c[t]);return{c(){e=I("div"),o&&o.c(),this.h()},l(t){e=j(t,"DIV",{class:!0});var n=V(e);o&&o.l(n),n.forEach(O),this.h()},h(){_(e,i)},m(t,l){E(t,e,l),o&&o.m(e,null),n=!0},p(t,[l]){o&&o.p&&(!n||64&l)&&p(o,s,t,t[6],l,null,null),_(e,i=Tt(c,[(!n||1&l)&&{class:t[0]},4&l&&t[2]]))},i(t){n||(Ot(o,t),n=!0)},o(t){Nt(o,t),n=!1},d(t){t&&O(e),o&&o.d(t)}}}function ee(t,e,n){let s;const o=["flush","stayOpen","class"];let c,i=h(e,o),{$$slots:r={},$$scope:u}=e;const d=nt();let{flush:p=!1}=e,{stayOpen:$=!1}=e,{class:m=""}=e;const g=Zt();return a(t,g,(t=>n(8,c=t))),lt("accordion",{open:g,stayOpen:$,toggle:t=>{c===t?g.set():g.set(t),d("toggle",{[t]:c===t})}}),t.$$set=t=>{e=l(l({},e),f(t)),n(2,i=h(e,o)),"flush"in t&&n(3,p=t.flush),"stayOpen"in t&&n(4,$=t.stayOpen),"class"in t&&n(5,m=t.class),"$$scope"in t&&n(6,u=t.$$scope)},t.$$.update=()=>{40&t.$$.dirty&&n(0,s=Xt(m,"accordion",{"accordion-flush":p}))},[s,g,i,p,$,m,u,r]}function ne(t){let e,n,s,o,c;const i=t[4].default,r=u(i,t,t[3],null);let a=[{class:"accordion-header"},t[1]],d={};for(let t=0;t<a.length;t+=1)d=l(d,a[t]);return{c(){e=I("h2"),n=I("button"),r&&r.c(),this.h()},l(t){e=j(t,"H2",{class:!0});var l=V(e);n=j(l,"BUTTON",{type:!0,class:!0});var s=V(n);r&&r.l(s),s.forEach(O),l.forEach(O),this.h()},h(){A(n,"type","button"),A(n,"class",t[0]),_(e,d)},m(l,i){E(l,e,i),k(e,n),r&&r.m(n,null),s=!0,o||(c=T(n,"click",t[5]),o=!0)},p(t,[l]){r&&r.p&&(!s||8&l)&&p(r,i,t,t[3],l,null,null),(!s||1&l)&&A(n,"class",t[0]),_(e,d=Tt(a,[{class:"accordion-header"},2&l&&t[1]]))},i(t){s||(Ot(r,t),s=!0)},o(t){Nt(r,t),s=!1},d(t){t&&O(e),r&&r.d(t),o=!1,c()}}}function le(t,e,n){let s;const o=["class"];let c=h(e,o),{$$slots:i={},$$scope:r}=e,{class:a=""}=e;return t.$$set=t=>{e=l(l({},e),f(t)),n(1,c=h(e,o)),"class"in t&&n(2,a=t.class),"$$scope"in t&&n(3,r=t.$$scope)},t.$$.update=()=>{4&t.$$.dirty&&n(0,s=Xt(a,"accordion-button"))},[s,c,a,r,i,function(e){ot(t,e)}]}class se extends Ht{constructor(t){super(),Ft(this,t,le,ne,r,{class:2})}}function oe(t){t.style.display="block";return{duration:Kt(t),tick:e=>{0===e&&t.classList.add("show")}}}function ce(t){t.classList.remove("show");return{duration:Kt(t),tick:e=>{0===e&&(t.style.display="none")}}}function ie(t,e){const n=e.horizontal?"width":"height";t.style[n]=`${t.getBoundingClientRect()[n]}px`,t.classList.add("collapsing"),t.classList.remove("collapse","show");return{duration:Kt(t),tick:e=>{e>0?t.style[n]="":0===e&&(t.classList.remove("collapsing"),t.classList.add("collapse"))}}}function re(t,e){const n=e.horizontal,l=n?"width":"height";t.classList.add("collapsing"),t.classList.remove("collapse","show"),t.style[l]=0;return{duration:Kt(t),tick:e=>{e<1?n?t.style.width=`${t.scrollWidth}px`:t.style.height=`${t.scrollHeight}px`:(t.classList.remove("collapsing"),t.classList.add("collapse","show"),t.style[l]="")}}}function ae(t){t.style.display="block";return{duration:Kt(t),tick:e=>{e>0&&t.classList.add("show")}}}function ue(t){t.classList.remove("show");return{duration:Kt(t),tick:e=>{1===e&&(t.style.display="none")}}}const de=["touchstart","click"];var pe=(t,e)=>{let n;if("string"==typeof t&&"undefined"!=typeof window&&document&&document.createElement){let l=document.querySelectorAll(t);if(l.length||(l=document.querySelectorAll(`#${t}`)),!l.length)throw new Error(`The target '${t}' could not be identified in the dom, tip: check spelling`);de.forEach((t=>{l.forEach((n=>{n.addEventListener(t,e)}))})),n=()=>{de.forEach((t=>{l.forEach((n=>{n.removeEventListener(t,e)}))}))}}return()=>{"function"==typeof n&&(n(),n=void 0)}};function fe(t){let e,n,s,o,r,a,d;const f=t[16].default,h=u(f,t,t[15],null);let $=[{style:n=t[2]?void 0:"overflow: hidden;"},t[9],{class:t[8]}],m={};for(let t=0;t<$.length;t+=1)m=l(m,$[t]);return{c(){e=I("div"),h&&h.c(),this.h()},l(t){e=j(t,"DIV",{style:!0,class:!0});var n=V(e);h&&h.l(n),n.forEach(O),this.h()},h(){_(e,m)},m(n,l){E(n,e,l),h&&h.m(e,null),r=!0,a||(d=[T(e,"introstart",t[17]),T(e,"introend",t[18]),T(e,"outrostart",t[19]),T(e,"outroend",t[20]),T(e,"introstart",(function(){i(t[3])&&t[3].apply(this,arguments)})),T(e,"introend",(function(){i(t[4])&&t[4].apply(this,arguments)})),T(e,"outrostart",(function(){i(t[5])&&t[5].apply(this,arguments)})),T(e,"outroend",(function(){i(t[6])&&t[6].apply(this,arguments)}))],a=!0)},p(l,s){t=l,h&&h.p&&(!r||32768&s)&&p(h,f,t,t[15],s,null,null),_(e,m=Tt($,[(!r||4&s&&n!==(n=t[2]?void 0:"overflow: hidden;"))&&{style:n},512&s&&t[9],(!r||256&s)&&{class:t[8]}]))},i(n){r||(Ot(h,n),pt((()=>{o&&o.end(1),s||(s=Lt(e,re,{horizontal:t[1]})),s.start()})),r=!0)},o(n){Nt(h,n),s&&s.invalidate(),n&&(o=Ct(e,ie,{horizontal:t[1]})),r=!1},d(t){t&&O(e),h&&h.d(t),t&&o&&o.end(),a=!1,c(d)}}}function he(t){let e,n,l,s;pt(t[21]);let o=t[0]&&fe(t);return{c(){o&&o.c(),e=D()},l(t){o&&o.l(t),e=D()},m(c,i){o&&o.m(c,i),E(c,e,i),n=!0,l||(s=T(window,"resize",t[21]),l=!0)},p(t,[n]){t[0]?o?(o.p(t,n),1&n&&Ot(o,1)):(o=fe(t),o.c(),Ot(o,1),o.m(e.parentNode,e)):o&&(kt(),Nt(o,1,1,(()=>{o=null})),Et())},i(t){n||(Ot(o),n=!0)},o(t){Nt(o),n=!1},d(t){o&&o.d(t),t&&O(e),l=!1,s()}}}function $e(t,e,n){let s;const o=["isOpen","class","horizontal","navbar","onEntering","onEntered","onExiting","onExited","expand","toggler"];let c=h(e,o),{$$slots:i={},$$scope:r}=e;const a=nt();let{isOpen:u=!1}=e,{class:d=""}=e,{horizontal:p=!1}=e,{navbar:$=!1}=e,{onEntering:m=(()=>a("opening"))}=e,{onEntered:g=(()=>a("open"))}=e,{onExiting:v=(()=>a("closing"))}=e,{onExited:b=(()=>a("close"))}=e,{expand:y=!1}=e,{toggler:x=null}=e;tt((()=>pe(x,(t=>{n(0,u=!u),t.preventDefault()}))));let w=0,k=!1;const E={};function O(){a("update",u)}return E.xs=0,E.sm=576,E.md=768,E.lg=992,E.xl=1200,t.$$set=t=>{e=l(l({},e),f(t)),n(9,c=h(e,o)),"isOpen"in t&&n(0,u=t.isOpen),"class"in t&&n(10,d=t.class),"horizontal"in t&&n(1,p=t.horizontal),"navbar"in t&&n(2,$=t.navbar),"onEntering"in t&&n(3,m=t.onEntering),"onEntered"in t&&n(4,g=t.onEntered),"onExiting"in t&&n(5,v=t.onExiting),"onExited"in t&&n(6,b=t.onExited),"expand"in t&&n(11,y=t.expand),"toggler"in t&&n(12,x=t.toggler),"$$scope"in t&&n(15,r=t.$$scope)},t.$$.update=()=>{1030&t.$$.dirty&&n(8,s=Xt(d,{"collapse-horizontal":p,"navbar-collapse":$})),26757&t.$$.dirty&&$&&y&&(w>=E[y]&&!u?(n(0,u=!0),n(13,k=!0),O()):w<E[y]&&k&&(n(0,u=!1),n(13,k=!1),O()))},[u,p,$,m,g,v,b,w,s,c,d,y,x,k,E,r,i,function(e){ot(t,e)},function(e){ot(t,e)},function(e){ot(t,e)},function(e){ot(t,e)},function(){n(7,w=window.innerWidth)}]}class me extends Ht{constructor(t){super(),Ft(this,t,$e,he,r,{isOpen:0,class:10,horizontal:1,navbar:2,onEntering:3,onEntered:4,onExiting:5,onExited:6,expand:11,toggler:12})}}const ge=t=>({}),ve=t=>({});function be(t){let e,n,l;const s=t[9].header,o=u(s,t,t[16],ve);return{c(){o&&o.c(),e=z(),n=C(t[0])},l(l){o&&o.l(l),e=S(l),n=B(l,t[0])},m(t,s){o&&o.m(t,s),E(t,e,s),E(t,n,s),l=!0},p(t,e){o&&o.p&&(!l||65536&e)&&p(o,s,t,t[16],e,ge,ve),(!l||1&e)&&F(n,t[0])},i(t){l||(Ot(o,t),l=!0)},o(t){Nt(o,t),l=!1},d(t){o&&o.d(t),t&&O(e),t&&O(n)}}}function ye(t){let e,n;const l=t[9].default,s=u(l,t,t[16],null);return{c(){e=I("div"),s&&s.c(),this.h()},l(t){e=j(t,"DIV",{class:!0});var n=V(e);s&&s.l(n),n.forEach(O),this.h()},h(){A(e,"class","accordion-body")},m(t,l){E(t,e,l),s&&s.m(e,null),n=!0},p(t,e){s&&s.p&&(!n||65536&e)&&p(s,l,t,t[16],e,null,null)},i(t){n||(Ot(s,t),n=!0)},o(t){Nt(s,t),n=!1},d(t){t&&O(e),s&&s.d(t)}}}function xe(t){let e,n,l,s,o;return n=new se({props:{class:!t[3]&&"collapsed",$$slots:{default:[be]},$$scope:{ctx:t}}}),n.$on("click",t[10]),s=new me({props:{isOpen:t[3],class:"accordion-collapse",$$slots:{default:[ye]},$$scope:{ctx:t}}}),s.$on("introstart",t[11]),s.$on("introend",t[12]),s.$on("outrostart",t[13]),s.$on("outroend",t[14]),{c(){e=I("div"),Pt(n.$$.fragment),l=z(),Pt(s.$$.fragment),this.h()},l(t){e=j(t,"DIV",{class:!0});var o=V(e);Vt(n.$$.fragment,o),l=S(o),Vt(s.$$.fragment,o),o.forEach(O),this.h()},h(){A(e,"class",t[2])},m(c,i){E(c,e,i),jt(n,e,null),k(e,l),jt(s,e,null),t[15](e),o=!0},p(t,[l]){const c={};8&l&&(c.class=!t[3]&&"collapsed"),65537&l&&(c.$$scope={dirty:l,ctx:t}),n.$set(c);const i={};8&l&&(i.isOpen=t[3]),65536&l&&(i.$$scope={dirty:l,ctx:t}),s.$set(i),(!o||4&l)&&A(e,"class",t[2])},i(t){o||(Ot(n.$$.fragment,t),Ot(s.$$.fragment,t),o=!0)},o(t){Nt(n.$$.fragment,t),Nt(s.$$.fragment,t),o=!1},d(l){l&&O(e),Bt(n),Bt(s),t[15](null)}}}function we(t,e,n){let l,s,o,c,{$$slots:i={},$$scope:r}=e,{class:u=""}=e,{header:d=""}=e,{active:p=!1}=e;const f=nt(),{stayOpen:h,toggle:$,open:m}=st("accordion");a(t,m,(t=>n(8,o=t))),tt((()=>{p&&$(c)}));const g=()=>{h&&n(6,p=!p),$(c),f("toggle",!s)};return t.$$set=t=>{"class"in t&&n(7,u=t.class),"header"in t&&n(0,d=t.header),"active"in t&&n(6,p=t.active),"$$scope"in t&&n(16,r=t.$$scope)},t.$$.update=()=>{128&t.$$.dirty&&n(2,l=Xt(u,"accordion-item")),322&t.$$.dirty&&n(3,s=h?p:o===c)},[d,c,l,s,m,g,p,u,o,i,()=>g(),function(e){ot(t,e)},function(e){ot(t,e)},function(e){ot(t,e)},function(e){ot(t,e)},function(t){it[t?"unshift":"push"]((()=>{c=t,n(1,c)}))},r]}function ke(t,{delay:e=0,duration:l=400,easing:s=n}={}){const o=+getComputedStyle(t).opacity;return{delay:e,duration:l,easing:s,css:t=>"opacity: "+t*o}}const Ee=t=>({}),Oe=t=>({});function Ne(t){let e,n,s,o,c,i,r,a=(t[3]||t[10].heading)&&Ie(t),u=t[5]&&Le(t);const d=[ze,Ce],p=[];function f(t,e){return t[1]?0:1}o=f(t),c=p[o]=d[o](t);let h=[t[9],{class:t[7]},{role:"alert"}],$={};for(let t=0;t<h.length;t+=1)$=l($,h[t]);return{c(){e=I("div"),a&&a.c(),n=z(),u&&u.c(),s=z(),c.c(),this.h()},l(t){e=j(t,"DIV",{class:!0,role:!0});var l=V(e);a&&a.l(l),n=S(l),u&&u.l(l),s=S(l),c.l(l),l.forEach(O),this.h()},h(){_(e,$)},m(t,l){E(t,e,l),a&&a.m(e,null),k(e,n),u&&u.m(e,null),k(e,s),p[o].m(e,null),r=!0},p(l,i){(t=l)[3]||t[10].heading?a?(a.p(t,i),1032&i&&Ot(a,1)):(a=Ie(t),a.c(),Ot(a,1),a.m(e,n)):a&&(kt(),Nt(a,1,1,(()=>{a=null})),Et()),t[5]?u?u.p(t,i):(u=Le(t),u.c(),u.m(e,s)):u&&(u.d(1),u=null);let m=o;o=f(t),o===m?p[o].p(t,i):(kt(),Nt(p[m],1,1,(()=>{p[m]=null})),Et(),c=p[o],c?c.p(t,i):(c=p[o]=d[o](t),c.c()),Ot(c,1),c.m(e,null)),_(e,$=Tt(h,[512&i&&t[9],(!r||128&i)&&{class:t[7]},{role:"alert"}]))},i(n){r||(Ot(a),Ot(c),pt((()=>{i||(i=zt(e,ke,t[4],!0)),i.run(1)})),r=!0)},o(n){Nt(a),Nt(c),i||(i=zt(e,ke,t[4],!1)),i.run(0),r=!1},d(t){t&&O(e),a&&a.d(),u&&u.d(),p[o].d(),t&&i&&i.end()}}}function Ie(t){let e,n,l;const s=t[18].heading,o=u(s,t,t[17],Oe);return{c(){e=I("h4"),n=C(t[3]),o&&o.c(),this.h()},l(l){e=j(l,"H4",{class:!0});var s=V(e);n=B(s,t[3]),o&&o.l(s),s.forEach(O),this.h()},h(){A(e,"class","alert-heading")},m(t,s){E(t,e,s),k(e,n),o&&o.m(e,null),l=!0},p(t,e){(!l||8&e)&&F(n,t[3]),o&&o.p&&(!l||131072&e)&&p(o,s,t,t[17],e,Ee,Oe)},i(t){l||(Ot(o,t),l=!0)},o(t){Nt(o,t),l=!1},d(t){t&&O(e),o&&o.d(t)}}}function Le(t){let e,n,l;return{c(){e=I("button"),this.h()},l(t){e=j(t,"BUTTON",{type:!0,class:!0,"aria-label":!0}),V(e).forEach(O),this.h()},h(){A(e,"type","button"),A(e,"class",t[8]),A(e,"aria-label",t[2])},m(s,o){E(s,e,o),n||(l=T(e,"click",(function(){i(t[6])&&t[6].apply(this,arguments)})),n=!0)},p(n,l){t=n,256&l&&A(e,"class",t[8]),4&l&&A(e,"aria-label",t[2])},d(t){t&&O(e),n=!1,l()}}}function Ce(t){let e;const n=t[18].default,l=u(n,t,t[17],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||131072&s)&&p(l,n,t,t[17],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function ze(t){let n;return{c(){n=C(t[1])},l(e){n=B(e,t[1])},m(t,e){E(t,n,e)},p(t,e){2&e&&F(n,t[1])},i:e,o:e,d(t){t&&O(n)}}}function De(t){let e,n,l=t[0]&&Ne(t);return{c(){l&&l.c(),e=D()},l(t){l&&l.l(t),e=D()},m(t,s){l&&l.m(t,s),E(t,e,s),n=!0},p(t,[n]){t[0]?l?(l.p(t,n),1&n&&Ot(l,1)):(l=Ne(t),l.c(),Ot(l,1),l.m(e.parentNode,e)):l&&(kt(),Nt(l,1,1,(()=>{l=null})),Et())},i(t){n||(Ot(l),n=!0)},o(t){Nt(l),n=!1},d(t){l&&l.d(t),t&&O(e)}}}function Te(t,e,n){let s,o,c,i;const r=["class","children","color","closeClassName","closeAriaLabel","dismissible","heading","isOpen","toggle","fade","transition"];let a=h(e,r),{$$slots:u={},$$scope:d}=e;const p=$(u);let{class:m=""}=e,{children:g}=e,{color:v="success"}=e,{closeClassName:b=""}=e,{closeAriaLabel:y="Close"}=e,{dismissible:x=!1}=e,{heading:w}=e,{isOpen:k=!0}=e,{toggle:E}=e,{fade:O=!0}=e,{transition:N={duration:O?400:0}}=e;return t.$$set=t=>{e=l(l({},e),f(t)),n(9,a=h(e,r)),"class"in t&&n(11,m=t.class),"children"in t&&n(1,g=t.children),"color"in t&&n(12,v=t.color),"closeClassName"in t&&n(13,b=t.closeClassName),"closeAriaLabel"in t&&n(2,y=t.closeAriaLabel),"dismissible"in t&&n(14,x=t.dismissible),"heading"in t&&n(3,w=t.heading),"isOpen"in t&&n(0,k=t.isOpen),"toggle"in t&&n(15,E=t.toggle),"fade"in t&&n(16,O=t.fade),"transition"in t&&n(4,N=t.transition),"$$scope"in t&&n(17,d=t.$$scope)},t.$$.update=()=>{49152&t.$$.dirty&&n(5,s=x||E),32768&t.$$.dirty&&n(6,o=E||(()=>n(0,k=!1))),6176&t.$$.dirty&&n(7,c=Xt(m,"alert",`alert-${v}`,{"alert-dismissible":s})),8192&t.$$.dirty&&n(8,i=Xt("btn-close",b))},[k,g,y,w,N,s,o,c,i,a,p,m,v,b,x,E,O,d,u]}function Ae(t){let e,n,s,o;const c=[Ve,Pe],i=[];function r(t,e){return t[0]?0:1}n=r(t),s=i[n]=c[n](t);let a=[t[3],{class:t[2]}],u={};for(let t=0;t<a.length;t+=1)u=l(u,a[t]);return{c(){e=I("span"),s.c(),this.h()},l(t){e=j(t,"SPAN",{class:!0});var n=V(e);s.l(n),n.forEach(O),this.h()},h(){_(e,u)},m(t,l){E(t,e,l),i[n].m(e,null),o=!0},p(t,l){let d=n;n=r(t),n===d?i[n].p(t,l):(kt(),Nt(i[d],1,1,(()=>{i[d]=null})),Et(),s=i[n],s?s.p(t,l):(s=i[n]=c[n](t),s.c()),Ot(s,1),s.m(e,null)),_(e,u=Tt(a,[8&l&&t[3],(!o||4&l)&&{class:t[2]}]))},i(t){o||(Ot(s),o=!0)},o(t){Nt(s),o=!1},d(t){t&&O(e),i[n].d()}}}function _e(t){let e,n,s,o;const c=[Be,je],i=[];function r(t,e){return t[0]?0:1}n=r(t),s=i[n]=c[n](t);let a=[t[3],{href:t[1]},{class:t[2]}],u={};for(let t=0;t<a.length;t+=1)u=l(u,a[t]);return{c(){e=I("a"),s.c(),this.h()},l(t){e=j(t,"A",{href:!0,class:!0});var n=V(e);s.l(n),n.forEach(O),this.h()},h(){_(e,u)},m(t,l){E(t,e,l),i[n].m(e,null),o=!0},p(t,l){let d=n;n=r(t),n===d?i[n].p(t,l):(kt(),Nt(i[d],1,1,(()=>{i[d]=null})),Et(),s=i[n],s?s.p(t,l):(s=i[n]=c[n](t),s.c()),Ot(s,1),s.m(e,null)),_(e,u=Tt(a,[8&l&&t[3],(!o||2&l)&&{href:t[1]},(!o||4&l)&&{class:t[2]}]))},i(t){o||(Ot(s),o=!0)},o(t){Nt(s),o=!1},d(t){t&&O(e),i[n].d()}}}function Pe(t){let e;const n=t[8].default,l=u(n,t,t[7],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||128&s)&&p(l,n,t,t[7],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function Ve(t){let n;return{c(){n=C(t[0])},l(e){n=B(e,t[0])},m(t,e){E(t,n,e)},p(t,e){1&e&&F(n,t[0])},i:e,o:e,d(t){t&&O(n)}}}function je(t){let e;const n=t[8].default,l=u(n,t,t[7],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||128&s)&&p(l,n,t,t[7],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function Be(t){let n;return{c(){n=C(t[0])},l(e){n=B(e,t[0])},m(t,e){E(t,n,e)},p(t,e){1&e&&F(n,t[0])},i:e,o:e,d(t){t&&O(n)}}}function Se(t){let e,n,l,s;const o=[_e,Ae],c=[];function i(t,e){return t[1]?0:1}return e=i(t),n=c[e]=o[e](t),{c(){n.c(),l=D()},l(t){n.l(t),l=D()},m(t,n){c[e].m(t,n),E(t,l,n),s=!0},p(t,[s]){let r=e;e=i(t),e===r?c[e].p(t,s):(kt(),Nt(c[r],1,1,(()=>{c[r]=null})),Et(),n=c[e],n?n.p(t,s):(n=c[e]=o[e](t),n.c()),Ot(n,1),n.m(l.parentNode,l))},i(t){s||(Ot(n),s=!0)},o(t){Nt(n),s=!1},d(t){c[e].d(t),t&&O(l)}}}function Fe(t,e,n){let s;const o=["class","children","color","href","pill"];let c=h(e,o),{$$slots:i={},$$scope:r}=e,{class:a=""}=e,{children:u}=e,{color:d="secondary"}=e,{href:p}=e,{pill:$=!1}=e;return t.$$set=t=>{e=l(l({},e),f(t)),n(3,c=h(e,o)),"class"in t&&n(4,a=t.class),"children"in t&&n(0,u=t.children),"color"in t&&n(5,d=t.color),"href"in t&&n(1,p=t.href),"pill"in t&&n(6,$=t.pill),"$$scope"in t&&n(7,r=t.$$scope)},t.$$.update=()=>{112&t.$$.dirty&&n(2,s=Xt(a,"badge",`bg-${d}`,!!$&&"rounded-pill"))},[u,p,s,c,a,d,$,r,i]}function He(t){let e;const n=t[6].default,l=u(n,t,t[5],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||32&s)&&p(l,n,t,t[5],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function Me(t){let n;return{c(){n=C(t[1])},l(e){n=B(e,t[1])},m(t,e){E(t,n,e)},p(t,e){2&e&&F(n,t[1])},i:e,o:e,d(t){t&&O(n)}}}function Re(t){let e,n,s,o,c;const i=[Me,He],r=[];function a(t,e){return t[1]?0:1}s=a(t),o=r[s]=i[s](t);let u=[t[3],{class:t[0]}],d={};for(let t=0;t<u.length;t+=1)d=l(d,u[t]);return{c(){e=I("nav"),n=I("ol"),o.c(),this.h()},l(t){e=j(t,"NAV",{class:!0});var l=V(e);n=j(l,"OL",{class:!0});var s=V(n);o.l(s),s.forEach(O),l.forEach(O),this.h()},h(){A(n,"class",t[2]),_(e,d)},m(t,l){E(t,e,l),k(e,n),r[s].m(n,null),c=!0},p(t,[l]){let p=s;s=a(t),s===p?r[s].p(t,l):(kt(),Nt(r[p],1,1,(()=>{r[p]=null})),Et(),o=r[s],o?o.p(t,l):(o=r[s]=i[s](t),o.c()),Ot(o,1),o.m(n,null)),(!c||4&l)&&A(n,"class",t[2]),_(e,d=Tt(u,[8&l&&t[3],(!c||1&l)&&{class:t[0]}]))},i(t){c||(Ot(o),c=!0)},o(t){Nt(o),c=!1},d(t){t&&O(e),r[s].d()}}}function Ue(t,e,n){let s;const o=["class","children","listClassName"];let c=h(e,o),{$$slots:i={},$$scope:r}=e,{class:a=""}=e,{children:u}=e,{listClassName:d=""}=e;return t.$$set=t=>{e=l(l({},e),f(t)),n(3,c=h(e,o)),"class"in t&&n(0,a=t.class),"children"in t&&n(1,u=t.children),"listClassName"in t&&n(4,d=t.listClassName),"$$scope"in t&&n(5,r=t.$$scope)},t.$$.update=()=>{16&t.$$.dirty&&n(2,s=Xt("breadcrumb",d))},[a,u,s,c,d,r,i]}function qe(t){let e;const n=t[6].default,l=u(n,t,t[5],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||32&s)&&p(l,n,t,t[5],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function We(t){let n;return{c(){n=C(t[1])},l(e){n=B(e,t[1])},m(t,e){E(t,n,e)},p(t,e){2&e&&F(n,t[1])},i:e,o:e,d(t){t&&O(n)}}}function Ge(t){let e,n,s,o,c;const i=[We,qe],r=[];function a(t,e){return t[1]?0:1}n=a(t),s=r[n]=i[n](t);let u=[t[3],{class:t[2]},{"aria-current":o=t[0]?"page":void 0}],d={};for(let t=0;t<u.length;t+=1)d=l(d,u[t]);return{c(){e=I("li"),s.c(),this.h()},l(t){e=j(t,"LI",{class:!0,"aria-current":!0});var n=V(e);s.l(n),n.forEach(O),this.h()},h(){_(e,d)},m(t,l){E(t,e,l),r[n].m(e,null),c=!0},p(t,[l]){let p=n;n=a(t),n===p?r[n].p(t,l):(kt(),Nt(r[p],1,1,(()=>{r[p]=null})),Et(),s=r[n],s?s.p(t,l):(s=r[n]=i[n](t),s.c()),Ot(s,1),s.m(e,null)),_(e,d=Tt(u,[8&l&&t[3],(!c||4&l)&&{class:t[2]},(!c||1&l&&o!==(o=t[0]?"page":void 0))&&{"aria-current":o}]))},i(t){c||(Ot(s),c=!0)},o(t){Nt(s),c=!1},d(t){t&&O(e),r[n].d()}}}function Ye(t,e,n){let s;const o=["class","active","children"];let c=h(e,o),{$$slots:i={},$$scope:r}=e,{class:a=""}=e,{active:u=!1}=e,{children:d}=e;return t.$$set=t=>{e=l(l({},e),f(t)),n(3,c=h(e,o)),"class"in t&&n(4,a=t.class),"active"in t&&n(0,u=t.active),"children"in t&&n(1,d=t.children),"$$scope"in t&&n(5,r=t.$$scope)},t.$$.update=()=>{17&t.$$.dirty&&n(2,s=Xt(a,!!u&&"active","breadcrumb-item"))},[u,d,s,c,a,r,i]}function Xe(t){let e,n,s,o,c;const i=t[19].default,r=u(i,t,t[18],null),a=r||function(t){let e,n,l,s;const o=[Qe,Je],c=[];function i(t,e){return t[1]?0:1}return e=i(t),n=c[e]=o[e](t),{c(){n.c(),l=D()},l(t){n.l(t),l=D()},m(t,n){c[e].m(t,n),E(t,l,n),s=!0},p(t,s){let r=e;e=i(t),e===r?c[e].p(t,s):(kt(),Nt(c[r],1,1,(()=>{c[r]=null})),Et(),n=c[e],n?n.p(t,s):(n=c[e]=o[e](t),n.c()),Ot(n,1),n.m(l.parentNode,l))},i(t){s||(Ot(n),s=!0)},o(t){Nt(n),s=!1},d(t){c[e].d(t),t&&O(l)}}}(t);let d=[t[9],{class:t[7]},{disabled:t[2]},{value:t[5]},{"aria-label":n=t[6]||t[8]},{style:t[4]}],f={};for(let t=0;t<d.length;t+=1)f=l(f,d[t]);return{c(){e=I("button"),a&&a.c(),this.h()},l(t){e=j(t,"BUTTON",{class:!0,disabled:!0,value:!0,"aria-label":!0,style:!0});var n=V(e);a&&a.l(n),n.forEach(O),this.h()},h(){_(e,f)},m(n,l){E(n,e,l),a&&a.m(e,null),t[23](e),s=!0,o||(c=T(e,"click",t[21]),o=!0)},p(t,l){r?r.p&&(!s||262144&l)&&p(r,i,t,t[18],l,null,null):a&&a.p&&262146&l&&a.p(t,l),_(e,f=Tt(d,[512&l&&t[9],(!s||128&l)&&{class:t[7]},(!s||4&l)&&{disabled:t[2]},(!s||32&l)&&{value:t[5]},(!s||320&l&&n!==(n=t[6]||t[8]))&&{"aria-label":n},(!s||16&l)&&{style:t[4]}]))},i(t){s||(Ot(a,t),s=!0)},o(t){Nt(a,t),s=!1},d(n){n&&O(e),a&&a.d(n),t[23](null),o=!1,c()}}}function Ke(t){let e,n,s,o,c,i,r;const a=[tn,Ze],u=[];function d(t,e){return t[1]?0:1}n=d(t),s=u[n]=a[n](t);let p=[t[9],{class:t[7]},{disabled:t[2]},{href:t[3]},{"aria-label":o=t[6]||t[8]},{style:t[4]}],f={};for(let t=0;t<p.length;t+=1)f=l(f,p[t]);return{c(){e=I("a"),s.c(),this.h()},l(t){e=j(t,"A",{class:!0,disabled:!0,href:!0,"aria-label":!0,style:!0});var n=V(e);s.l(n),n.forEach(O),this.h()},h(){_(e,f)},m(l,s){E(l,e,s),u[n].m(e,null),t[22](e),c=!0,i||(r=T(e,"click",t[20]),i=!0)},p(t,l){let i=n;n=d(t),n===i?u[n].p(t,l):(kt(),Nt(u[i],1,1,(()=>{u[i]=null})),Et(),s=u[n],s?s.p(t,l):(s=u[n]=a[n](t),s.c()),Ot(s,1),s.m(e,null)),_(e,f=Tt(p,[512&l&&t[9],(!c||128&l)&&{class:t[7]},(!c||4&l)&&{disabled:t[2]},(!c||8&l)&&{href:t[3]},(!c||320&l&&o!==(o=t[6]||t[8]))&&{"aria-label":o},(!c||16&l)&&{style:t[4]}]))},i(t){c||(Ot(s),c=!0)},o(t){Nt(s),c=!1},d(l){l&&O(e),u[n].d(),t[22](null),i=!1,r()}}}function Je(t){let e;const n=t[19].default,l=u(n,t,t[18],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||262144&s)&&p(l,n,t,t[18],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function Qe(t){let n;return{c(){n=C(t[1])},l(e){n=B(e,t[1])},m(t,e){E(t,n,e)},p(t,e){2&e&&F(n,t[1])},i:e,o:e,d(t){t&&O(n)}}}function Ze(t){let e;const n=t[19].default,l=u(n,t,t[18],null);return{c(){l&&l.c()},l(t){l&&l.l(t)},m(t,n){l&&l.m(t,n),e=!0},p(t,s){l&&l.p&&(!e||262144&s)&&p(l,n,t,t[18],s,null,null)},i(t){e||(Ot(l,t),e=!0)},o(t){Nt(l,t),e=!1},d(t){l&&l.d(t)}}}function tn(t){let n;return{c(){n=C(t[1])},l(e){n=B(e,t[1])},m(t,e){E(t,n,e)},p(t,e){2&e&&F(n,t[1])},i:e,o:e,d(t){t&&O(n)}}}function en(t){let e,n,l,s;const o=[Ke,Xe],c=[];function i(t,e){return t[3]?0:1}return e=i(t),n=c[e]=o[e](t),{c(){n.c(),l=D()},l(t){n.l(t),l=D()},m(t,n){c[e].m(t,n),E(t,l,n),s=!0},p(t,[s]){let r=e;e=i(t),e===r?c[e].p(t,s):(kt(),Nt(c[r],1,1,(()=>{c[r]=null})),Et(),n=c[e],n?n.p(t,s):(n=c[e]=o[e](t),n.c()),Ot(n,1),n.m(l.parentNode,l))},i(t){s||(Ot(n),s=!0)},o(t){Nt(n),s=!1},d(t){c[e].d(t),t&&O(l)}}}function nn(t,e,n){let s,o,c;const i=["class","active","block","children","close","color","disabled","href","inner","outline","size","style","value","white"];let r=h(e,i),{$$slots:a={},$$scope:u}=e,{class:d=""}=e,{active:p=!1}=e,{block:$=!1}=e,{children:m}=e,{close:g=!1}=e,{color:v="secondary"}=e,{disabled:b=!1}=e,{href:y=""}=e,{inner:x}=e,{outline:w=!1}=e,{size:k=null}=e,{style:E=""}=e,{value:O=""}=e,{white:N=!1}=e;return t.$$set=t=>{n(24,e=l(l({},e),f(t))),n(9,r=h(e,i)),"class"in t&&n(10,d=t.class),"active"in t&&n(11,p=t.active),"block"in t&&n(12,$=t.block),"children"in t&&n(1,m=t.children),"close"in t&&n(13,g=t.close),"color"in t&&n(14,v=t.color),"disabled"in t&&n(2,b=t.disabled),"href"in t&&n(3,y=t.href),"inner"in t&&n(0,x=t.inner),"outline"in t&&n(15,w=t.outline),"size"in t&&n(16,k=t.size),"style"in t&&n(4,E=t.style),"value"in t&&n(5,O=t.value),"white"in t&&n(17,N=t.white),"$$scope"in t&&n(18,u=t.$$scope)},t.$$.update=()=>{n(6,s=e["aria-label"]),261120&t.$$.dirty&&n(7,o=Xt(d,g?"btn-close":"btn",g||`btn${w?"-outline":""}-${v}`,!!k&&`btn-${k}`,!!$&&"d-block w-100",{active:p,"btn-close-white":g&&N})),8192&t.$$.dirty&&n(8,c=g?"Close":null)},e=f(e),[x,m,b,y,E,O,s,o,c,r,d,p,$,g,v,w,k,N,u,a,function(e){ot(t,e)},function(e){ot(t,e)},function(t){it[t?"unshift":"push"]((()=>{x=t,n(0,x)}))},function(t){it[t?"unshift":"push"]((()=>{x=t,n(0,x)}))}]}class ln extends Ht{constructor(t){super(),Ft(this,t,nn,en,r,{class:10,active:11,block:12,children:1,close:13,color:14,disabled:2,href:3,inner:0,outline:15,size:16,style:4,value:5,white:17})}}function sn(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function on(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function cn(t){var e=on(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function rn(t){return t instanceof on(t).Element||t instanceof Element}function an(t){return t instanceof on(t).HTMLElement||t instanceof HTMLElement}function un(t){return"undefined"!=typeof ShadowRoot&&(t instanceof on(t).ShadowRoot||t instanceof ShadowRoot)}function dn(t){return t?(t.nodeName||"").toLowerCase():null}function pn(t){return((rn(t)?t.ownerDocument:t.document)||window.document).documentElement}function fn(t){return sn(pn(t)).left+cn(t).scrollLeft}function hn(t){return on(t).getComputedStyle(t)}function $n(t){var e=hn(t),n=e.overflow,l=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+l)}function mn(t,e,n){void 0===n&&(n=!1);var l,s=pn(e),o=sn(t),c=an(e),i={scrollLeft:0,scrollTop:0},r={x:0,y:0};return(c||!c&&!n)&&(("body"!==dn(e)||$n(s))&&(i=(l=e)!==on(l)&&an(l)?function(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}(l):cn(l)),an(e)?((r=sn(e)).x+=e.clientLeft,r.y+=e.clientTop):s&&(r.x=fn(s))),{x:o.left+i.scrollLeft-r.x,y:o.top+i.scrollTop-r.y,width:o.width,height:o.height}}function gn(t){var e=sn(t),n=t.offsetWidth,l=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-l)<=1&&(l=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:l}}function vn(t){return"html"===dn(t)?t:t.assignedSlot||t.parentNode||(un(t)?t.host:null)||pn(t)}function bn(t){return["html","body","#document"].indexOf(dn(t))>=0?t.ownerDocument.body:an(t)&&$n(t)?t:bn(vn(t))}function yn(t,e){var n;void 0===e&&(e=[]);var l=bn(t),s=l===(null==(n=t.ownerDocument)?void 0:n.body),o=on(l),c=s?[o].concat(o.visualViewport||[],$n(l)?l:[]):l,i=e.concat(c);return s?i:i.concat(yn(vn(c)))}function xn(t){return["table","td","th"].indexOf(dn(t))>=0}function wn(t){return an(t)&&"fixed"!==hn(t).position?t.offsetParent:null}function kn(t){for(var e=on(t),n=wn(t);n&&xn(n)&&"static"===hn(n).position;)n=wn(n);return n&&("html"===dn(n)||"body"===dn(n)&&"static"===hn(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&an(t)&&"fixed"===hn(t).position)return null;for(var n=vn(t);an(n)&&["html","body"].indexOf(dn(n))<0;){var l=hn(n);if("none"!==l.transform||"none"!==l.perspective||"paint"===l.contain||-1!==["transform","perspective"].indexOf(l.willChange)||e&&"filter"===l.willChange||e&&l.filter&&"none"!==l.filter)return n;n=n.parentNode}return null}(t)||e}var En="top",On="bottom",Nn="right",In="left",Ln="auto",Cn=[En,On,Nn,In],zn="start",Dn="end",Tn="viewport",An="popper",_n=Cn.reduce((function(t,e){return t.concat([e+"-"+zn,e+"-"+Dn])}),[]),Pn=[].concat(Cn,[Ln]).reduce((function(t,e){return t.concat([e,e+"-"+zn,e+"-"+Dn])}),[]),Vn=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function jn(t){var e=new Map,n=new Set,l=[];function s(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var l=e.get(t);l&&s(l)}})),l.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||s(t)})),l}function Bn(t){return t.split("-")[0]}var Sn=Math.max,Fn=Math.min,Hn=Math.round;function Mn(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&un(n)){var l=e;do{if(l&&t.isSameNode(l))return!0;l=l.parentNode||l.host}while(l)}return!1}function Rn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Un(t,e){return e===Tn?Rn(function(t){var e=on(t),n=pn(t),l=e.visualViewport,s=n.clientWidth,o=n.clientHeight,c=0,i=0;return l&&(s=l.width,o=l.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(c=l.offsetLeft,i=l.offsetTop)),{width:s,height:o,x:c+fn(t),y:i}}(t)):an(e)?function(t){var e=sn(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Rn(function(t){var e,n=pn(t),l=cn(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Sn(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),c=Sn(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),i=-l.scrollLeft+fn(t),r=-l.scrollTop;return"rtl"===hn(s||n).direction&&(i+=Sn(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:c,x:i,y:r}}(pn(t)))}function qn(t,e,n){var l="clippingParents"===e?function(t){var e=yn(vn(t)),n=["absolute","fixed"].indexOf(hn(t).position)>=0&&an(t)?kn(t):t;return rn(n)?e.filter((function(t){return rn(t)&&Mn(t,n)&&"body"!==dn(t)})):[]}(t):[].concat(e),s=[].concat(l,[n]),o=s[0],c=s.reduce((function(e,n){var l=Un(t,n);return e.top=Sn(l.top,e.top),e.right=Fn(l.right,e.right),e.bottom=Fn(l.bottom,e.bottom),e.left=Sn(l.left,e.left),e}),Un(t,o));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Wn(t){return t.split("-")[1]}function Gn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Yn(t){var e,n=t.reference,l=t.element,s=t.placement,o=s?Bn(s):null,c=s?Wn(s):null,i=n.x+n.width/2-l.width/2,r=n.y+n.height/2-l.height/2;switch(o){case En:e={x:i,y:n.y-l.height};break;case On:e={x:i,y:n.y+n.height};break;case Nn:e={x:n.x+n.width,y:r};break;case In:e={x:n.x-l.width,y:r};break;default:e={x:n.x,y:n.y}}var a=o?Gn(o):null;if(null!=a){var u="y"===a?"height":"width";switch(c){case zn:e[a]=e[a]-(n[u]/2-l[u]/2);break;case Dn:e[a]=e[a]+(n[u]/2-l[u]/2)}}return e}function Xn(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Kn(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Jn(t,e){void 0===e&&(e={});var n=e,l=n.placement,s=void 0===l?t.placement:l,o=n.boundary,c=void 0===o?"clippingParents":o,i=n.rootBoundary,r=void 0===i?Tn:i,a=n.elementContext,u=void 0===a?An:a,d=n.altBoundary,p=void 0!==d&&d,f=n.padding,h=void 0===f?0:f,$=Xn("number"!=typeof h?h:Kn(h,Cn)),m=u===An?"reference":An,g=t.elements.reference,v=t.rects.popper,b=t.elements[p?m:u],y=qn(rn(b)?b:b.contextElement||pn(t.elements.popper),c,r),x=sn(g),w=Yn({reference:x,element:v,strategy:"absolute",placement:s}),k=Rn(Object.assign({},v,w)),E=u===An?k:x,O={top:y.top-E.top+$.top,bottom:E.bottom-y.bottom+$.bottom,left:y.left-E.left+$.left,right:E.right-y.right+$.right},N=t.modifiersData.offset;if(u===An&&N){var I=N[s];Object.keys(O).forEach((function(t){var e=[Nn,On].indexOf(t)>=0?1:-1,n=[En,On].indexOf(t)>=0?"y":"x";O[t]+=I[n]*e}))}return O}var Qn={placement:"bottom",modifiers:[],strategy:"absolute"};function Zn(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function tl(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,l=void 0===n?[]:n,s=e.defaultOptions,o=void 0===s?Qn:s;return function(t,e,n){void 0===n&&(n=o);var s,c,i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qn,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},r=[],a=!1,u={state:i,setOptions:function(n){d(),i.options=Object.assign({},o,i.options,n),i.scrollParents={reference:rn(t)?yn(t):t.contextElement?yn(t.contextElement):[],popper:yn(e)};var s,c,a=function(t){var e=jn(t);return Vn.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(l,i.options.modifiers),c=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return i.orderedModifiers=a.filter((function(t){return t.enabled})),i.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,l=void 0===n?{}:n,s=t.effect;if("function"==typeof s){var o=s({state:i,name:e,instance:u,options:l}),c=function(){};r.push(o||c)}})),u.update()},forceUpdate:function(){if(!a){var t=i.elements,e=t.reference,n=t.popper;if(Zn(e,n)){i.rects={reference:mn(e,kn(n),"fixed"===i.options.strategy),popper:gn(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(t){return i.modifiersData[t.name]=Object.assign({},t.data)}));for(var l=0;l<i.orderedModifiers.length;l++)if(!0!==i.reset){var s=i.orderedModifiers[l],o=s.fn,c=s.options,r=void 0===c?{}:c,d=s.name;"function"==typeof o&&(i=o({state:i,options:r,name:d,instance:u})||i)}else i.reset=!1,l=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(i)}))},function(){return c||(c=new Promise((function(t){Promise.resolve().then((function(){c=void 0,t(s())}))}))),c}),destroy:function(){d(),a=!0}};if(!Zn(t,e))return u;function d(){r.forEach((function(t){return t()})),r=[]}return u.setOptions(n).then((function(t){!a&&n.onFirstUpdate&&n.onFirstUpdate(t)})),u}}var el={passive:!0};var nl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ll(t){var e,n=t.popper,l=t.popperRect,s=t.placement,o=t.offsets,c=t.position,i=t.gpuAcceleration,r=t.adaptive,a=t.roundOffsets,u=!0===a?function(t){var e=t.x,n=t.y,l=window.devicePixelRatio||1;return{x:Hn(Hn(e*l)/l)||0,y:Hn(Hn(n*l)/l)||0}}(o):"function"==typeof a?a(o):o,d=u.x,p=void 0===d?0:d,f=u.y,h=void 0===f?0:f,$=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),g=In,v=En,b=window;if(r){var y=kn(n),x="clientHeight",w="clientWidth";y===on(n)&&"static"!==hn(y=pn(n)).position&&(x="scrollHeight",w="scrollWidth"),y=y,s===En&&(v=On,h-=y[x]-l.height,h*=i?1:-1),s===In&&(g=Nn,p-=y[w]-l.width,p*=i?1:-1)}var k,E=Object.assign({position:c},r&&nl);return i?Object.assign({},E,((k={})[v]=m?"0":"",k[g]=$?"0":"",k.transform=(b.devicePixelRatio||1)<2?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",k)):Object.assign({},E,((e={})[v]=m?h+"px":"",e[g]=$?p+"px":"",e.transform="",e))}var sl={left:"right",right:"left",bottom:"top",top:"bottom"};function ol(t){return t.replace(/left|right|bottom|top/g,(function(t){return sl[t]}))}var cl={start:"end",end:"start"};function il(t){return t.replace(/start|end/g,(function(t){return cl[t]}))}function rl(t,e){void 0===e&&(e={});var n=e,l=n.placement,s=n.boundary,o=n.rootBoundary,c=n.padding,i=n.flipVariations,r=n.allowedAutoPlacements,a=void 0===r?Pn:r,u=Wn(l),d=u?i?_n:_n.filter((function(t){return Wn(t)===u})):Cn,p=d.filter((function(t){return a.indexOf(t)>=0}));0===p.length&&(p=d);var f=p.reduce((function(e,n){return e[n]=Jn(t,{placement:n,boundary:s,rootBoundary:o,padding:c})[Bn(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}function al(t,e,n){return Sn(t,Fn(e,n))}function ul(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function dl(t){return[En,Nn,On,In].some((function(e){return t[e]>=0}))}var pl=tl({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,l=t.options,s=l.scroll,o=void 0===s||s,c=l.resize,i=void 0===c||c,r=on(e.elements.popper),a=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&a.forEach((function(t){t.addEventListener("scroll",n.update,el)})),i&&r.addEventListener("resize",n.update,el),function(){o&&a.forEach((function(t){t.removeEventListener("scroll",n.update,el)})),i&&r.removeEventListener("resize",n.update,el)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=Yn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,l=n.gpuAcceleration,s=void 0===l||l,o=n.adaptive,c=void 0===o||o,i=n.roundOffsets,r=void 0===i||i,a={placement:Bn(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ll(Object.assign({},a,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:c,roundOffsets:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ll(Object.assign({},a,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:r})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},l=e.attributes[t]||{},s=e.elements[t];an(s)&&dn(s)&&(Object.assign(s.style,n),Object.keys(l).forEach((function(t){var e=l[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var l=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});an(l)&&dn(l)&&(Object.assign(l.style,o),Object.keys(s).forEach((function(t){l.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,l=t.name,s=n.offset,o=void 0===s?[0,0]:s,c=Pn.reduce((function(t,n){return t[n]=function(t,e,n){var l=Bn(t),s=[In,En].indexOf(l)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,c=o[0],i=o[1];return c=c||0,i=(i||0)*s,[In,Nn].indexOf(l)>=0?{x:i,y:c}:{x:c,y:i}}(n,e.rects,o),t}),{}),i=c[e.placement],r=i.x,a=i.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r,e.modifiersData.popperOffsets.y+=a),e.modifiersData[l]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,l=t.name;if(!e.modifiersData[l]._skip){for(var s=n.mainAxis,o=void 0===s||s,c=n.altAxis,i=void 0===c||c,r=n.fallbackPlacements,a=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,$=n.allowedAutoPlacements,m=e.options.placement,g=Bn(m),v=r||(g===m||!h?[ol(m)]:function(t){if(Bn(t)===Ln)return[];var e=ol(t);return[il(t),e,il(e)]}(m)),b=[m].concat(v).reduce((function(t,n){return t.concat(Bn(n)===Ln?rl(e,{placement:n,boundary:u,rootBoundar