diff --git a/templates/tabulareditor/public/docfx.min.js b/templates/tabulareditor/public/docfx.min.js
index 4e91cddb..d5fcfc93 100644
--- a/templates/tabulareditor/public/docfx.min.js
+++ b/templates/tabulareditor/public/docfx.min.js
@@ -1,29 +1,64 @@
-import{a as gt,b as Ql,d as wc}from"./chunk-OSRY5VT3.min.js";var Yo=gt((he,xe)=>{(function(c,i){typeof he=="object"&&typeof xe<"u"?xe.exports=i():typeof define=="function"&&define.amd?define(i):(c=typeof globalThis<"u"?globalThis:c||self,c.Data=i())})(he,function(){"use strict";let c=new Map;return{set(t,e,b){c.has(t)||c.set(t,new Map);let o=c.get(t);if(!o.has(e)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(e,b)},get(t,e){return c.has(t)&&c.get(t).get(e)||null},remove(t,e){if(!c.has(t))return;let b=c.get(t);b.delete(e),b.size===0&&c.delete(t)}}})});var Ci=gt((hc,vo)=>{(function(c,i){typeof hc=="object"&&typeof vo<"u"?i(hc):typeof define=="function"&&define.amd?define(["exports"],i):(c=typeof globalThis<"u"?globalThis:c||self,i(c.Index={}))})(hc,function(c){"use strict";let e="transitionend",b=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(h,X)=>`#${CSS.escape(X)}`)),s),o=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),l=s=>{do s+=Math.floor(Math.random()*1e6);while(document.getElementById(s));return s},n=s=>{if(!s)return 0;let{transitionDuration:h,transitionDelay:X}=window.getComputedStyle(s),x=Number.parseFloat(h),A=Number.parseFloat(X);return!x&&!A?0:(h=h.split(",")[0],X=X.split(",")[0],(Number.parseFloat(h)+Number.parseFloat(X))*1e3)},a=s=>{s.dispatchEvent(new Event(e))},r=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),d=s=>r(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(b(s)):null,m=s=>{if(!r(s)||s.getClientRects().length===0)return!1;let h=getComputedStyle(s).getPropertyValue("visibility")==="visible",X=s.closest("details:not([open])");if(!X)return h;if(X!==s){let x=s.closest("summary");if(x&&x.parentNode!==X||x===null)return!1}return h},C=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",I=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){let h=s.getRootNode();return h instanceof ShadowRoot?h:null}return s instanceof ShadowRoot?s:s.parentNode?I(s.parentNode):null},g=()=>{},Z=s=>{s.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],R=s=>{document.readyState==="loading"?(u.length||document.addEventListener("DOMContentLoaded",()=>{for(let h of u)h()}),u.push(s)):s()},V=()=>document.documentElement.dir==="rtl",G=s=>{R(()=>{let h=W();if(h){let X=s.NAME,x=h.fn[X];h.fn[X]=s.jQueryInterface,h.fn[X].Constructor=s,h.fn[X].noConflict=()=>(h.fn[X]=x,s.jQueryInterface)}})},F=(s,h=[],X=s)=>typeof s=="function"?s(...h):X,p=(s,h,X=!0)=>{if(!X){F(s);return}let A=n(h)+5,U=!1,v=({target:Y})=>{Y===h&&(U=!0,h.removeEventListener(e,v),F(s))};h.addEventListener(e,v),setTimeout(()=>{U||a(h)},A)},Q=(s,h,X,x)=>{let A=s.length,U=s.indexOf(h);return U===-1?!X&&x?s[A-1]:s[0]:(U+=X?1:-1,x&&(U=(U+A)%A),s[Math.max(0,Math.min(U,A-1))])};c.defineJQueryPlugin=G,c.execute=F,c.executeAfterTransition=p,c.findShadowRoot=I,c.getElement=d,c.getNextActiveElement=Q,c.getTransitionDurationFromElement=n,c.getUID=l,c.getjQuery=W,c.isDisabled=C,c.isElement=r,c.isRTL=V,c.isVisible=m,c.noop=g,c.onDOMContentLoaded=R,c.parseSelector=b,c.reflow=Z,c.toType=o,c.triggerTransitionEnd=a,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})})});var ye=gt((Ve,Qe)=>{(function(c,i){typeof Ve=="object"&&typeof Qe<"u"?Qe.exports=i(Ci()):typeof define=="function"&&define.amd?define(["../util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.EventHandler=i(c.Index))})(Ve,function(c){"use strict";let i=/[^.]*(?=\..*)\.|.*/,t=/\..*/,e=/::\d+$/,b={},o=1,l={mouseenter:"mouseover",mouseleave:"mouseout"},n=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 a(G,F){return F&&`${F}::${o++}`||G.uidEvent||o++}function r(G){let F=a(G);return G.uidEvent=F,b[F]=b[F]||{},b[F]}function d(G,F){return function p(Q){return V(Q,{delegateTarget:G}),p.oneOff&&R.off(G,Q.type,F),F.apply(G,[Q])}}function m(G,F,p){return function Q(s){let h=G.querySelectorAll(F);for(let{target:X}=s;X&&X!==this;X=X.parentNode)for(let x of h)if(x===X)return V(s,{delegateTarget:X}),Q.oneOff&&R.off(G,s.type,F,p),p.apply(X,[s])}}function C(G,F,p=null){return Object.values(G).find(Q=>Q.callable===F&&Q.delegationSelector===p)}function I(G,F,p){let Q=typeof F=="string",s=Q?p:F||p,h=u(G);return n.has(h)||(h=G),[Q,s,h]}function g(G,F,p,Q,s){if(typeof F!="string"||!G)return;let[h,X,x]=I(F,p,Q);F in l&&(X=(ti=>function($){if(!$.relatedTarget||$.relatedTarget!==$.delegateTarget&&!$.delegateTarget.contains($.relatedTarget))return ti.call(this,$)})(X));let A=r(G),U=A[x]||(A[x]={}),v=C(U,X,h?p:null);if(v){v.oneOff=v.oneOff&&s;return}let Y=a(X,F.replace(i,"")),O=h?m(G,p,X):d(G,X);O.delegationSelector=h?p:null,O.callable=X,O.oneOff=s,O.uidEvent=Y,U[Y]=O,G.addEventListener(x,O,h)}function Z(G,F,p,Q,s){let h=C(F[p],Q,s);h&&(G.removeEventListener(p,h,!!s),delete F[p][h.uidEvent])}function W(G,F,p,Q){let s=F[p]||{};for(let[h,X]of Object.entries(s))h.includes(Q)&&Z(G,F,p,X.callable,X.delegationSelector)}function u(G){return G=G.replace(t,""),l[G]||G}let R={on(G,F,p,Q){g(G,F,p,Q,!1)},one(G,F,p,Q){g(G,F,p,Q,!0)},off(G,F,p,Q){if(typeof F!="string"||!G)return;let[s,h,X]=I(F,p,Q),x=X!==F,A=r(G),U=A[X]||{},v=F.startsWith(".");if(typeof h<"u"){if(!Object.keys(U).length)return;Z(G,A,X,h,s?p:null);return}if(v)for(let Y of Object.keys(A))W(G,A,Y,F.slice(1));for(let[Y,O]of Object.entries(U)){let P=Y.replace(e,"");(!x||F.includes(P))&&Z(G,A,X,O.callable,O.delegationSelector)}},trigger(G,F,p){if(typeof F!="string"||!G)return null;let Q=c.getjQuery(),s=u(F),h=F!==s,X=null,x=!0,A=!0,U=!1;h&&Q&&(X=Q.Event(F,p),Q(G).trigger(X),x=!X.isPropagationStopped(),A=!X.isImmediatePropagationStopped(),U=X.isDefaultPrevented());let v=V(new Event(F,{bubbles:x,cancelable:!0}),p);return U&&v.preventDefault(),A&&G.dispatchEvent(v),v.defaultPrevented&&X&&X.preventDefault(),v}};function V(G,F={}){for(let[p,Q]of Object.entries(F))try{G[p]=Q}catch{Object.defineProperty(G,p,{configurable:!0,get(){return Q}})}return G}return R})});var Oo=gt((Ae,fe)=>{(function(c,i){typeof Ae=="object"&&typeof fe<"u"?fe.exports=i():typeof define=="function"&&define.amd?define(i):(c=typeof globalThis<"u"?globalThis:c||self,c.Manipulator=i())})(Ae,function(){"use strict";function c(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function i(e){return e.replace(/[A-Z]/g,b=>`-${b.toLowerCase()}`)}return{setDataAttribute(e,b,o){e.setAttribute(`data-bs-${i(b)}`,o)},removeDataAttribute(e,b){e.removeAttribute(`data-bs-${i(b)}`)},getDataAttributes(e){if(!e)return{};let b={},o=Object.keys(e.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(let l of o){let n=l.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),b[n]=c(e.dataset[l])}return b},getDataAttribute(e,b){return c(e.getAttribute(`data-bs-${i(b)}`))}}})});var Lo=gt((Ue,Ye)=>{(function(c,i){typeof Ue=="object"&&typeof Ye<"u"?Ye.exports=i(Oo(),Ci()):typeof define=="function"&&define.amd?define(["../dom/manipulator","./index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.Config=i(c.Manipulator,c.Index))})(Ue,function(c,i){"use strict";class t{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(b){return b=this._mergeConfigObj(b),b=this._configAfterMerge(b),this._typeCheckConfig(b),b}_configAfterMerge(b){return b}_mergeConfigObj(b,o){let l=i.isElement(o)?c.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof l=="object"?l:{},...i.isElement(o)?c.getDataAttributes(o):{},...typeof b=="object"?b:{}}}_typeCheckConfig(b,o=this.constructor.DefaultType){for(let[l,n]of Object.entries(o)){let a=b[l],r=i.isElement(a)?"element":i.toType(a);if(!new RegExp(n).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${l}" provided type "${r}" but expected type "${n}".`)}}}return t})});var Jo=gt((ve,Oe)=>{(function(c,i){typeof ve=="object"&&typeof Oe<"u"?Oe.exports=i(Yo(),ye(),Lo(),Ci()):typeof define=="function"&&define.amd?define(["./dom/data","./dom/event-handler","./util/config","./util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.BaseComponent=i(c.Data,c.EventHandler,c.Config,c.Index))})(ve,function(c,i,t,e){"use strict";let b="5.3.3";class o extends t{constructor(n,a){super(),n=e.getElement(n),n&&(this._element=n,this._config=this._getConfig(a),c.set(this._element,this.constructor.DATA_KEY,this))}dispose(){c.remove(this._element,this.constructor.DATA_KEY),i.off(this._element,this.constructor.EVENT_KEY);for(let n of Object.getOwnPropertyNames(this))this[n]=null}_queueCallback(n,a,r=!0){e.executeAfterTransition(n,a,r)}_getConfig(n){return n=this._mergeConfigObj(n,this._element),n=this._configAfterMerge(n),this._typeCheckConfig(n),n}static getInstance(n){return c.get(e.getElement(n),this.DATA_KEY)}static getOrCreateInstance(n,a={}){return this.getInstance(n)||new this(n,typeof a=="object"?a:null)}static get VERSION(){return b}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(n){return`${n}${this.EVENT_KEY}`}}return o})});var No=gt((Le,Je)=>{(function(c,i){typeof Le=="object"&&typeof Je<"u"?Je.exports=i(Ci()):typeof define=="function"&&define.amd?define(["../util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.SelectorEngine=i(c.Index))})(Le,function(c){"use strict";let i=e=>{let b=e.getAttribute("data-bs-target");if(!b||b==="#"){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),b=o&&o!=="#"?o.trim():null}return b?b.split(",").map(o=>c.parseSelector(o)).join(","):null},t={find(e,b=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(b,e))},findOne(e,b=document.documentElement){return Element.prototype.querySelector.call(b,e)},children(e,b){return[].concat(...e.children).filter(o=>o.matches(b))},parents(e,b){let o=[],l=e.parentNode.closest(b);for(;l;)o.push(l),l=l.parentNode.closest(b);return o},prev(e,b){let o=e.previousElementSibling;for(;o;){if(o.matches(b))return[o];o=o.previousElementSibling}return[]},next(e,b){let o=e.nextElementSibling;for(;o;){if(o.matches(b))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){let b=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(b,e).filter(o=>!c.isDisabled(o)&&c.isVisible(o))},getSelectorFromElement(e){let b=i(e);return b&&t.findOne(b)?b:null},getElementFromSelector(e){let b=i(e);return b?t.findOne(b):null},getMultipleElementsFromSelector(e){let b=i(e);return b?t.find(b):[]}};return t})});var wo=gt((Ne,we)=>{(function(c,i){typeof Ne=="object"&&typeof we<"u"?we.exports=i(Jo(),ye(),No(),Ci()):typeof define=="function"&&define.amd?define(["./base-component","./dom/event-handler","./dom/selector-engine","./util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.Scrollspy=i(c.BaseComponent,c.EventHandler,c.SelectorEngine,c.Index))})(Ne,function(c,i,t,e){"use strict";let b="scrollspy",l=".bs.scrollspy",n=".data-api",a=`activate${l}`,r=`click${l}`,d=`load${l}${n}`,m="dropdown-item",C="active",I='[data-bs-spy="scroll"]',g="[href]",Z=".nav, .list-group",W=".nav-link",V=`${W}, .nav-item > ${W}, .list-group-item`,G=".dropdown",F=".dropdown-toggle",p={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Q={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class s extends c{constructor(X,x){super(X,x),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 p}static get DefaultType(){return Q}static get NAME(){return b}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let X of this._observableSections.values())this._observer.observe(X)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(X){return X.target=e.getElement(X.target)||document.body,X.rootMargin=X.offset?`${X.offset}px 0px -30%`:X.rootMargin,typeof X.threshold=="string"&&(X.threshold=X.threshold.split(",").map(x=>Number.parseFloat(x))),X}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(i.off(this._config.target,r),i.on(this._config.target,r,g,X=>{let x=this._observableSections.get(X.target.hash);if(x){X.preventDefault();let A=this._rootElement||window,U=x.offsetTop-this._element.offsetTop;if(A.scrollTo){A.scrollTo({top:U,behavior:"smooth"});return}A.scrollTop=U}}))}_getNewObserver(){let X={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(x=>this._observerCallback(x),X)}_observerCallback(X){let x=Y=>this._targetLinks.get(`#${Y.target.id}`),A=Y=>{this._previousScrollData.visibleEntryTop=Y.target.offsetTop,this._process(x(Y))},U=(this._rootElement||document.documentElement).scrollTop,v=U>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=U;for(let Y of X){if(!Y.isIntersecting){this._activeTarget=null,this._clearActiveClass(x(Y));continue}let O=Y.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(v&&O){if(A(Y),!U)return;continue}!v&&!O&&A(Y)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let X=t.find(g,this._config.target);for(let x of X){if(!x.hash||e.isDisabled(x))continue;let A=t.findOne(decodeURI(x.hash),this._element);e.isVisible(A)&&(this._targetLinks.set(decodeURI(x.hash),x),this._observableSections.set(x.hash,A))}}_process(X){this._activeTarget!==X&&(this._clearActiveClass(this._config.target),this._activeTarget=X,X.classList.add(C),this._activateParents(X),i.trigger(this._element,a,{relatedTarget:X}))}_activateParents(X){if(X.classList.contains(m)){t.findOne(F,X.closest(G)).classList.add(C);return}for(let x of t.parents(X,Z))for(let A of t.prev(x,V))A.classList.add(C)}_clearActiveClass(X){X.classList.remove(C);let x=t.find(`${g}.${C}`,X);for(let A of x)A.classList.remove(C)}static jQueryInterface(X){return this.each(function(){let x=s.getOrCreateInstance(this,X);if(typeof X=="string"){if(x[X]===void 0||X.startsWith("_")||X==="constructor")throw new TypeError(`No method named "${X}"`);x[X]()}})}}return i.on(window,d,()=>{for(let h of t.find(I))s.getOrCreateInstance(h)}),e.defineJQueryPlugin(s),s})});var ol=gt((OX,yc)=>{(function(c,i){"use strict";typeof define=="function"&&define.amd?define([],i):typeof yc=="object"&&yc.exports?yc.exports=i():(c.AnchorJS=i(),c.anchors=new c.AnchorJS)})(globalThis,function(){"use strict";function c(i){this.options=i||{},this.elements=[];function t(o){o.icon=Object.prototype.hasOwnProperty.call(o,"icon")?o.icon:"\uE9CB",o.visible=Object.prototype.hasOwnProperty.call(o,"visible")?o.visible:"hover",o.placement=Object.prototype.hasOwnProperty.call(o,"placement")?o.placement:"right",o.ariaLabel=Object.prototype.hasOwnProperty.call(o,"ariaLabel")?o.ariaLabel:"Anchor",o.class=Object.prototype.hasOwnProperty.call(o,"class")?o.class:"",o.base=Object.prototype.hasOwnProperty.call(o,"base")?o.base:"",o.truncate=Object.prototype.hasOwnProperty.call(o,"truncate")?Math.floor(o.truncate):64,o.titleText=Object.prototype.hasOwnProperty.call(o,"titleText")?o.titleText:""}t(this.options),this.add=function(o){var l,n,a,r,d,m,C,I,g,Z,W,u=[];if(t(this.options),o||(o="h2, h3, h4, h5, h6"),l=e(o),l.length===0)return this;for(b(),n=document.querySelectorAll("[id]"),a=[].map.call(n,function(R){return R.id}),d=0;d\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||t(this.options),o.trim().replace(/'/gi,"").replace(n,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(o){var l=o.firstChild&&(" "+o.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,n=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return l||n||!1};function e(o){var l;if(typeof o=="string"||o instanceof String)l=[].slice.call(document.querySelectorAll(o));else if(Array.isArray(o)||o instanceof NodeList)l=[].slice.call(o);else throw new TypeError("The selector provided to AnchorJS was invalid.");return l}function b(){if(document.head.querySelector("style.anchorjs")===null){var o=document.createElement("style"),l=".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",n=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",a='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',r="[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",d;o.className="anchorjs",o.appendChild(document.createTextNode("")),d=document.head.querySelector('[rel="stylesheet"],style'),d===void 0?document.head.appendChild(o):document.head.insertBefore(o,d),o.sheet.insertRule(l,o.sheet.cssRules.length),o.sheet.insertRule(n,o.sheet.cssRules.length),o.sheet.insertRule(r,o.sheet.cssRules.length),o.sheet.insertRule(a,o.sheet.cssRules.length)}}}return c})});var Bl=gt(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.default=void 0;function ib(c){"@babel/helpers - typeof";return ib=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},ib(c)}function E(c,i){var t=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!t){if(Array.isArray(c)||(t=Fl(c))||i&&c&&typeof c.length=="number"){t&&(c=t);var e=0,b=function(){};return{s:b,n:function(){return e>=c.length?{done:!0}:{done:!1,value:c[e++]}},e:function(r){throw r},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,n;return{s:function(){t=t.call(c)},n:function(){var r=t.next();return o=r.done,r},e:function(r){l=!0,n=r},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(l)throw n}}}}function wI(c){return HI(c)||zI(c)||Fl(c)||kI()}function kI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(c,i){if(c){if(typeof c=="string")return cb(c,i);var t=Object.prototype.toString.call(c).slice(8,-1);if(t==="Object"&&c.constructor&&(t=c.constructor.name),t==="Map"||t==="Set")return Array.from(c);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return cb(c,i)}}function zI(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function HI(c){if(Array.isArray(c))return cb(c)}function cb(c,i){(i==null||i>c.length)&&(i=c.length);for(var t=0,e=new Array(i);t0?Array.from(i):[i],this.relatedElements=[],this.transitionPrefix=this.calculateTransitionPrefix(),this.transitionCapable=this.transitionPrefix!==!1,this.initialLocationHash=this.hash,this.options.rel&&(this.elements=this.getRelated(this.options.rel)),this.options.uniqueImages){var b=[];this.elements=Array.from(this.elements).filter(function(o){var l=o.getAttribute(e.options.sourceAttr);return b.indexOf(l)===-1?(b.push(l),!0):!1})}this.createDomNodes(),this.options.close&&this.domNodes.wrapper.appendChild(this.domNodes.closeButton),this.options.nav&&this.domNodes.wrapper.appendChild(this.domNodes.navigation),this.options.spinner&&this.domNodes.wrapper.appendChild(this.domNodes.spinner),this.addEventListener(this.elements,"click."+this.eventNamespace,function(o){if(e.isValidLink(o.currentTarget)){if(o.preventDefault(),e.isAnimating)return!1;e.initialImageIndex=e.elements.indexOf(o.currentTarget),e.openImage(o.currentTarget)}}),this.options.docClose&&this.addEventListener(this.domNodes.wrapper,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],function(o){e.isOpen&&o.target===o.currentTarget&&e.close()}),this.options.disableRightClick&&this.addEventListener(document.body,"contextmenu."+this.eventNamespace,function(o){o.target.parentElement.classList.contains("sl-image")&&o.preventDefault()}),this.options.enableKeyboard&&this.addEventListener(document.body,"keyup."+this.eventNamespace,this.throttle(function(o){if(e.controlCoordinates.swipeDiff=0,e.isAnimating&&o.key==="Escape"){e.currentImage.setAttribute("src",""),e.isAnimating=!1,e.close();return}e.isOpen&&(o.preventDefault(),o.key==="Escape"&&e.close(),!e.isAnimating&&["ArrowLeft","ArrowRight"].indexOf(o.key)>-1&&e.loadImage(o.key==="ArrowRight"?1:-1))},this.options.throttleInterval)),this.addEvents()}return SI(c,[{key:"checkPassiveEventsSupport",value:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}return t}},{key:"getCaptionElement",value:function(t){if(this.options.captionSelector.startsWith("+")){var e=this.options.captionSelector.replace(/^\+/,"").trimStart(),b=t.nextElementSibling;return b&&b.matches(e)?b:!1}else if(this.options.captionSelector.startsWith(">")){var o=this.options.captionSelector.replace(/^>/,"").trimStart();return t.querySelector(o)}else return t.querySelector(this.options.captionSelector)}},{key:"generateQuerySelector",value:function(t){var e=t.tagName,b=t.id,o=t.className,l=t.parentNode;if(e==="HTML")return"HTML";var n=e;if(n+=b!==""?"#".concat(b):"",o)for(var a=o.trim().split(/\s/),r=0;r ").concat(n)}},{key:"createDomNodes",value:function(){if(this.domNodes.overlay=document.createElement("div"),this.domNodes.overlay.classList.add("sl-overlay"),this.domNodes.overlay.dataset.opacityTarget=this.options.overlayOpacity,this.domNodes.closeButton=document.createElement("button"),this.domNodes.closeButton.classList.add("sl-close"),this.domNodes.closeButton.innerHTML=this.options.closeText,this.domNodes.spinner=document.createElement("div"),this.domNodes.spinner.classList.add("sl-spinner"),this.domNodes.spinner.innerHTML="",this.domNodes.navigation=document.createElement("div"),this.domNodes.navigation.classList.add("sl-navigation"),this.domNodes.navigation.innerHTML='"),this.domNodes.counter=document.createElement("div"),this.domNodes.counter.classList.add("sl-counter"),this.domNodes.counter.innerHTML='/',this.domNodes.download=document.createElement("div"),this.domNodes.download.classList.add("sl-download"),this.domNodes.downloadLink=document.createElement("a"),this.domNodes.downloadLink.setAttribute("download",""),this.domNodes.downloadLink.textContent=this.options.download,this.domNodes.download.appendChild(this.domNodes.downloadLink),this.domNodes.caption=document.createElement("div"),this.domNodes.caption.classList.add("sl-caption","pos-"+this.options.captionPosition),this.options.captionClass){var t,e=this.options.captionClass.split(/[\s,]+/);(t=this.domNodes.caption.classList).add.apply(t,wI(e))}this.domNodes.image=document.createElement("div"),this.domNodes.image.classList.add("sl-image"),this.domNodes.wrapper=document.createElement("div"),this.domNodes.wrapper.classList.add("sl-wrapper"),this.domNodes.wrapper.setAttribute("tabindex",-1),this.domNodes.wrapper.setAttribute("role","dialog"),this.domNodes.wrapper.setAttribute("aria-hidden",!1),this.options.className&&this.domNodes.wrapper.classList.add(this.options.className),this.options.rtl&&this.domNodes.wrapper.classList.add("sl-dir-rtl")}},{key:"throttle",value:function(t,e){var b;return function(){b||(t.apply(this,arguments),b=!0,setTimeout(function(){return b=!1},e))}}},{key:"isValidLink",value:function(t){return!this.options.fileExt||t.getAttribute(this.options.sourceAttr)&&new RegExp("("+this.options.fileExt+")($|\\?.*$)","i").test(t.getAttribute(this.options.sourceAttr))}},{key:"calculateTransitionPrefix",value:function(){var t=(document.body||document.documentElement).style;return"transition"in t?"":"WebkitTransition"in t?"-webkit-":"MozTransition"in t?"-moz-":"OTransition"in t?"-o":!1}},{key:"getScrollbarWidth",value:function(){var t=0,e=document.createElement("div");return e.classList.add("sl-scrollbar-measure"),document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),t}},{key:"toggleScrollbar",value:function(t){var e=0,b=[].slice.call(document.querySelectorAll("."+this.options.fixedClass));if(t==="hide"){var o=window.innerWidth;if(!o){var l=document.documentElement.getBoundingClientRect();o=l.right-Math.abs(l.left)}if(document.body.clientWidth0||e==0&&this.isAppleDevice)&&(document.body.classList.add("hidden-scroll"),document.body.style.paddingRight=n+e+"px",b.forEach(function(a){var r=a.style.paddingRight,d=window.getComputedStyle(a)["padding-right"];a.dataset.originalPaddingRight=r,a.style.paddingRight="".concat(parseFloat(d)+e,"px")}))}}else document.body.classList.remove("hidden-scroll"),document.body.style.paddingRight=document.body.dataset.originalPaddingRight+"px",b.forEach(function(a){var r=a.dataset.originalPaddingRight;typeof r<"u"&&(a.style.paddingRight=r)});return e}},{key:"close",value:function(){var t=this;if(!this.isOpen||this.isAnimating||this.isClosing)return!1;this.isClosing=!0;var e=this.relatedElements[this.currentImageIndex];e.dispatchEvent(new Event("close.simplelightbox")),this.options.history&&(this.historyHasChanges=!1,this.hashReseted||this.resetHash()),this.removeEventListener(document,"focusin."+this.eventNamespace),this.fadeOut(this.domNodes.overlay,this.options.fadeSpeed),this.fadeOut(document.querySelectorAll(".sl-image img, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter"),this.options.fadeSpeed,function(){t.options.disableScroll&&t.toggleScrollbar("show"),t.options.htmlClass&&t.options.htmlClass!==""&&document.querySelector("html").classList.remove(t.options.htmlClass),document.body.removeChild(t.domNodes.wrapper),t.options.overlay&&document.body.removeChild(t.domNodes.overlay),t.domNodes.additionalHtml=null,t.domNodes.download=null,e.dispatchEvent(new Event("closed.simplelightbox")),t.isClosing=!1}),this.currentImage=null,this.isOpen=!1,this.isAnimating=!1;for(var b in this.controlCoordinates)this.controlCoordinates[b]=0;this.controlCoordinates.mousedown=!1,this.controlCoordinates.zoomed=!1,this.controlCoordinates.capture=!1,this.controlCoordinates.initialScale=this.minMax(1,1,this.options.maxZoom),this.controlCoordinates.doubleTapped=!1}},{key:"hash",get:function(){return window.location.hash.substring(1)}},{key:"preload",value:function(){var t=this,e=this.currentImageIndex,b=this.relatedElements.length,o=e+1<0?b-1:e+1>=b-1?0:e+1,l=e-1<0?b-1:e-1>=b-1?0:e-1,n=new Image,a=new Image;n.addEventListener("load",function(r){var d=r.target.getAttribute("src");t.loadedImages.indexOf(d)===-1&&t.loadedImages.push(d),t.relatedElements[e].dispatchEvent(new Event("nextImageLoaded."+t.eventNamespace))}),n.setAttribute("src",this.relatedElements[o].getAttribute(this.options.sourceAttr)),a.addEventListener("load",function(r){var d=r.target.getAttribute("src");t.loadedImages.indexOf(d)===-1&&t.loadedImages.push(d),t.relatedElements[e].dispatchEvent(new Event("prevImageLoaded."+t.eventNamespace))}),a.setAttribute("src",this.relatedElements[l].getAttribute(this.options.sourceAttr))}},{key:"loadImage",value:function(t){var e=this,b=t;this.options.rtl&&(t=-t),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event("change."+this.eventNamespace)),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event((t===1?"next":"prev")+"."+this.eventNamespace));var o=this.currentImageIndex+t;if(this.isAnimating||(o<0||o>=this.relatedElements.length)&&this.options.loop===!1)return!1;this.currentImageIndex=o<0?this.relatedElements.length-1:o>this.relatedElements.length-1?0:o,this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.options.animationSlide&&this.slide(this.options.animationSpeed/1e3,-100*b-this.controlCoordinates.swipeDiff+"px"),this.fadeOut(this.domNodes.image,this.options.fadeSpeed,function(){e.isAnimating=!0,e.isClosing?e.isAnimating=!1:setTimeout(function(){var l=e.relatedElements[e.currentImageIndex];e.currentImage&&(e.currentImage.setAttribute("src",l.getAttribute(e.options.sourceAttr)),e.loadedImages.indexOf(l.getAttribute(e.options.sourceAttr))===-1&&e.show(e.domNodes.spinner),e.domNodes.image.contains(e.domNodes.caption)&&e.domNodes.image.removeChild(e.domNodes.caption),e.adjustImage(b),e.options.preloading&&e.preload())},100)})}},{key:"adjustImage",value:function(t){var e=this;if(!this.currentImage)return!1;var b=new Image,o=window.innerWidth*this.options.widthRatio,l=window.innerHeight*this.options.heightRatio;b.setAttribute("src",this.currentImage.getAttribute("src")),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.zoomPanElement(0,0,1),b.addEventListener("error",function(n){e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("error."+e.eventNamespace)),e.isAnimating=!1,e.isOpen=!0,e.domNodes.spinner.style.display="none";var a=t===1||t===-1;if(e.initialImageIndex===e.currentImageIndex&&a)return e.close();e.options.alertError&&alert(e.options.alertErrorMessage),e.loadImage(a?t:1)}),b.addEventListener("load",function(n){typeof t<"u"&&(e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("changed."+e.eventNamespace)),e.relatedElements[e.currentImageIndex].dispatchEvent(new Event((t===1?"nextDone":"prevDone")+"."+e.eventNamespace))),e.options.history&&e.updateURL(),e.loadedImages.indexOf(e.currentImage.getAttribute("src"))===-1&&e.loadedImages.push(e.currentImage.getAttribute("src"));var a=n.target.width,r=n.target.height;if(e.options.scaleImageToRatio||a>o||r>l){var d=a/r>o/l?a/o:r/l;a/=d,r/=d}e.domNodes.image.style.top=(window.innerHeight-r)/2+"px",e.domNodes.image.style.left=(window.innerWidth-a-e.globalScrollbarWidth)/2+"px",e.domNodes.image.style.width=a+"px",e.domNodes.image.style.height=r+"px",e.domNodes.spinner.style.display="none",e.options.focus&&e.forceFocus(),e.fadeIn(e.currentImage,e.options.fadeSpeed,function(){e.options.focus&&e.domNodes.wrapper.focus()}),e.isOpen=!0;var m,C;typeof e.options.captionSelector=="string"?m=e.options.captionSelector==="self"?e.relatedElements[e.currentImageIndex]:e.getCaptionElement(e.relatedElements[e.currentImageIndex]):typeof e.options.captionSelector=="function"&&(m=e.options.captionSelector(e.relatedElements[e.currentImageIndex])),e.options.captions&&m&&(e.options.captionType==="data"?C=m.dataset[e.options.captionsData]:e.options.captionType==="text"?C=m.innerHTML:C=m.getAttribute(e.options.captionsData)),e.options.loop?e.relatedElements.length===1?e.hide(e.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):e.show(e.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):(e.currentImageIndex===0&&e.hide(e.domNodes.navigation.querySelector(".sl-prev")),e.currentImageIndex>=e.relatedElements.length-1&&e.hide(e.domNodes.navigation.querySelector(".sl-next")),e.currentImageIndex>0&&e.show(e.domNodes.navigation.querySelector(".sl-prev")),e.currentImageIndexb?b:t}},{key:"setZoomData",value:function(t,e,b){this.currentImage.dataset.scale=t,this.currentImage.dataset.translateX=e,this.currentImage.dataset.translateY=b}},{key:"hashchangeHandler",value:function(){this.isOpen&&this.hash===this.initialLocationHash&&(this.hashReseted=!0,this.close())}},{key:"addEvents",value:function(){var t=this;if(this.addEventListener(window,"resize."+this.eventNamespace,function(b){t.isOpen&&t.adjustImage()}),this.addEventListener(this.domNodes.closeButton,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],this.close.bind(this)),this.options.history&&setTimeout(function(){t.addEventListener(window,"hashchange."+t.eventNamespace,function(b){t.isOpen&&t.hashchangeHandler()})},40),this.addEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace,function(b){if(!b.currentTarget.tagName.match(/button/i))return!0;b.preventDefault(),t.controlCoordinates.swipeDiff=0,t.loadImage(b.currentTarget.classList.contains("sl-next")?1:-1)}),this.options.scrollZoom){var e=1;this.addEventListener(this.domNodes.image,["mousewheel","DOMMouseScroll"],function(b){if(t.controlCoordinates.mousedown||t.isAnimating||t.isClosing||!t.isOpen)return!0;t.controlCoordinates.containerHeight==0&&(t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY));var o=b.delta||b.wheelDelta;o===void 0&&(o=b.detail),o=Math.max(-1,Math.min(1,o)),e+=o*t.options.scrollZoomFactor*e,e=Math.max(1,Math.min(t.options.maxZoom,e)),t.controlCoordinates.targetScale=e;var l=document.documentElement.scrollTop||document.body.scrollTop;t.controlCoordinates.pinchOffsetX=b.pageX,t.controlCoordinates.pinchOffsetY=b.pageY-l||0,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.scaleDifference=t.controlCoordinates.targetScale-t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.initialOffsetX-(t.controlCoordinates.pinchOffsetX-t.controlCoordinates.containerOffsetX-t.controlCoordinates.containerWidth/2-t.controlCoordinates.initialOffsetX)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.initialOffsetY-(t.controlCoordinates.pinchOffsetY-t.controlCoordinates.containerOffsetY-t.controlCoordinates.containerHeight/2-t.controlCoordinates.initialOffsetY)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale),t.controlCoordinates.targetScale>1?(t.controlCoordinates.zoomed=!0,(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed)):(t.controlCoordinates.initialScale===1&&(t.controlCoordinates.zoomed=!1,t.domNodes.caption.style.display==="none"&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=null,t.controlCoordinates.capture=!1),t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance,t.controlCoordinates.initialScale=t.controlCoordinates.targetScale,t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.setZoomData(t.controlCoordinates.targetScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale)})}this.addEventListener(this.domNodes.image,["touchstart."+this.eventNamespace,"mousedown."+this.eventNamespace],function(b){if(b.target.tagName==="A"&&b.type==="touchstart")return!0;if(b.type==="mousedown")b.preventDefault(),t.controlCoordinates.initialPointerOffsetX=b.clientX,t.controlCoordinates.initialPointerOffsetY=b.clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY),t.controlCoordinates.capture=!0;else{if(t.controlCoordinates.touchCount=b.touches.length,t.controlCoordinates.initialPointerOffsetX=b.touches[0].clientX,t.controlCoordinates.initialPointerOffsetY=b.touches[0].clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.touchCount===1){if(!t.controlCoordinates.doubleTapped)t.controlCoordinates.doubleTapped=!0,setTimeout(function(){t.controlCoordinates.doubleTapped=!1},300);else return t.currentImage.classList.add("sl-transition"),t.controlCoordinates.zoomed?(t.controlCoordinates.initialScale=1,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),t.controlCoordinates.zoomed=!1):(t.controlCoordinates.initialScale=t.options.doubleTapZoom,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed),t.controlCoordinates.zoomed=!0),setTimeout(function(){t.currentImage&&t.currentImage.classList.remove("sl-transition")},200),!1;t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY)}else t.controlCoordinates.touchCount===2&&(t.controlCoordinates.initialPointerOffsetX2=b.touches[1].clientX,t.controlCoordinates.initialPointerOffsetY2=b.touches[1].clientY,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY),t.controlCoordinates.pinchOffsetX=(t.controlCoordinates.initialPointerOffsetX+t.controlCoordinates.initialPointerOffsetX2)/2,t.controlCoordinates.pinchOffsetY=(t.controlCoordinates.initialPointerOffsetY+t.controlCoordinates.initialPointerOffsetY2)/2,t.controlCoordinates.initialPinchDistance=Math.sqrt((t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialPointerOffsetX2)*(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialPointerOffsetX2)+(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialPointerOffsetY2)*(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialPointerOffsetY2)));t.controlCoordinates.capture=!0}return t.controlCoordinates.mousedown?!0:(t.transitionCapable&&(t.controlCoordinates.imageLeft=parseInt(t.domNodes.image.style.left,10)),t.controlCoordinates.mousedown=!0,t.controlCoordinates.swipeDiff=0,t.controlCoordinates.swipeYDiff=0,t.controlCoordinates.swipeStart=b.pageX||b.touches[0].pageX,t.controlCoordinates.swipeYStart=b.pageY||b.touches[0].pageY,!1)}),this.addEventListener(this.domNodes.image,["touchmove."+this.eventNamespace,"mousemove."+this.eventNamespace,"MSPointerMove"],function(b){if(!t.controlCoordinates.mousedown)return!0;if(b.type==="touchmove"){if(t.controlCoordinates.capture===!1)return!1;t.controlCoordinates.pointerOffsetX=b.touches[0].clientX,t.controlCoordinates.pointerOffsetY=b.touches[0].clientY,t.controlCoordinates.touchCount=b.touches.length,t.controlCoordinates.touchmoveCount++,t.controlCoordinates.touchCount>1?(t.controlCoordinates.pointerOffsetX2=b.touches[1].clientX,t.controlCoordinates.pointerOffsetY2=b.touches[1].clientY,t.controlCoordinates.targetPinchDistance=Math.sqrt((t.controlCoordinates.pointerOffsetX-t.controlCoordinates.pointerOffsetX2)*(t.controlCoordinates.pointerOffsetX-t.controlCoordinates.pointerOffsetX2)+(t.controlCoordinates.pointerOffsetY-t.controlCoordinates.pointerOffsetY2)*(t.controlCoordinates.pointerOffsetY-t.controlCoordinates.pointerOffsetY2)),t.controlCoordinates.initialPinchDistance===null&&(t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance),Math.abs(t.controlCoordinates.initialPinchDistance-t.controlCoordinates.targetPinchDistance)>=1&&(t.controlCoordinates.targetScale=t.minMax(t.controlCoordinates.targetPinchDistance/t.controlCoordinates.initialPinchDistance*t.controlCoordinates.initialScale,1,t.options.maxZoom),t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.scaleDifference=t.controlCoordinates.targetScale-t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.initialOffsetX-(t.controlCoordinates.pinchOffsetX-t.controlCoordinates.containerOffsetX-t.controlCoordinates.containerWidth/2-t.controlCoordinates.initialOffsetX)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.initialOffsetY-(t.controlCoordinates.pinchOffsetY-t.controlCoordinates.containerOffsetY-t.controlCoordinates.containerHeight/2-t.controlCoordinates.initialOffsetY)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale),t.controlCoordinates.targetScale>1&&(t.controlCoordinates.zoomed=!0,(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance,t.controlCoordinates.initialScale=t.controlCoordinates.targetScale,t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY)):(t.controlCoordinates.targetScale=t.controlCoordinates.initialScale,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.pointerOffsetX-(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialOffsetX),t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.pointerOffsetY-(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialOffsetY),t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),Math.abs(t.controlCoordinates.targetOffsetX)===Math.abs(t.controlCoordinates.limitOffsetX)&&(t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialPointerOffsetX=t.controlCoordinates.pointerOffsetX),Math.abs(t.controlCoordinates.targetOffsetY)===Math.abs(t.controlCoordinates.limitOffsetY)&&(t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.controlCoordinates.initialPointerOffsetY=t.controlCoordinates.pointerOffsetY),t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale))}if(b.type==="mousemove"&&t.controlCoordinates.mousedown){if(b.type=="touchmove")return!0;if(b.preventDefault(),t.controlCoordinates.capture===!1)return!1;t.controlCoordinates.pointerOffsetX=b.clientX,t.controlCoordinates.pointerOffsetY=b.clientY,t.controlCoordinates.targetScale=t.controlCoordinates.initialScale,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.pointerOffsetX-(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialOffsetX),t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.pointerOffsetY-(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialOffsetY),t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),Math.abs(t.controlCoordinates.targetOffsetX)===Math.abs(t.controlCoordinates.limitOffsetX)&&(t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialPointerOffsetX=t.controlCoordinates.pointerOffsetX),Math.abs(t.controlCoordinates.targetOffsetY)===Math.abs(t.controlCoordinates.limitOffsetY)&&(t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.controlCoordinates.initialPointerOffsetY=t.controlCoordinates.pointerOffsetY),t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale)}t.controlCoordinates.zoomed||(t.controlCoordinates.swipeEnd=b.pageX||b.touches[0].pageX,t.controlCoordinates.swipeYEnd=b.pageY||b.touches[0].pageY,t.controlCoordinates.swipeDiff=t.controlCoordinates.swipeStart-t.controlCoordinates.swipeEnd,t.controlCoordinates.swipeYDiff=t.controlCoordinates.swipeYStart-t.controlCoordinates.swipeYEnd,t.options.animationSlide&&t.slide(0,-t.controlCoordinates.swipeDiff+"px"))}),this.addEventListener(this.domNodes.image,["touchend."+this.eventNamespace,"mouseup."+this.eventNamespace,"touchcancel."+this.eventNamespace,"mouseleave."+this.eventNamespace,"pointerup","pointercancel","MSPointerUp","MSPointerCancel"],function(b){if(t.isTouchDevice&&b.type==="touchend"&&(t.controlCoordinates.touchCount=b.touches.length,t.controlCoordinates.touchCount===0?(t.currentImage&&t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.controlCoordinates.initialScale===1&&(t.controlCoordinates.zoomed=!1,t.domNodes.caption.style.display==="none"&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=null,t.controlCoordinates.capture=!1):t.controlCoordinates.touchCount===1?(t.controlCoordinates.initialPointerOffsetX=b.touches[0].clientX,t.controlCoordinates.initialPointerOffsetY=b.touches[0].clientY):t.controlCoordinates.touchCount>1&&(t.controlCoordinates.initialPinchDistance=null)),t.controlCoordinates.mousedown){t.controlCoordinates.mousedown=!1;var o=!0;t.options.loop||(t.currentImageIndex===0&&t.controlCoordinates.swipeDiff<0&&(o=!1),t.currentImageIndex>=t.relatedElements.length-1&&t.controlCoordinates.swipeDiff>0&&(o=!1)),Math.abs(t.controlCoordinates.swipeDiff)>t.options.swipeTolerance&&o?t.loadImage(t.controlCoordinates.swipeDiff>0?1:-1):t.options.animationSlide&&t.slide(t.options.animationSpeed/1e3,"0px"),t.options.swipeClose&&Math.abs(t.controlCoordinates.swipeYDiff)>50&&Math.abs(t.controlCoordinates.swipeDiff)0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed),t.controlCoordinates.zoomed=!0),setTimeout(function(){t.currentImage&&(t.currentImage.classList.remove("sl-transition"),t.currentImage.style[t.transitionPrefix+"transform-origin"]=null)},200),t.controlCoordinates.capture=!0,!1})}},{key:"getDimensions",value:function(t){var e=window.getComputedStyle(t),b=t.offsetHeight,o=t.offsetWidth,l=parseFloat(e.borderTopWidth),n=parseFloat(e.borderBottomWidth),a=parseFloat(e.paddingTop),r=parseFloat(e.paddingBottom),d=parseFloat(e.borderLeftWidth),m=parseFloat(e.borderRightWidth),C=parseFloat(e.paddingLeft),I=parseFloat(e.paddingRight);return{height:b-n-l-a-r,width:o-d-m-C-I}}},{key:"updateHash",value:function(){var t="pid="+(this.currentImageIndex+1),e=window.location.href.split("#")[0]+"#"+t;this.hashReseted=!1,this.pushStateSupport?window.history[this.historyHasChanges?"replaceState":"pushState"]("",document.title,e):this.historyHasChanges?window.location.replace(e):window.location.hash=t,this.historyHasChanges||(this.urlChangedOnce=!0),this.historyHasChanges=!0}},{key:"resetHash",value:function(){this.hashReseted=!0,this.urlChangedOnce?history.back():this.pushStateSupport?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash="",clearTimeout(this.historyUpdateTimeout)}},{key:"updateURL",value:function(){clearTimeout(this.historyUpdateTimeout),this.historyHasChanges?this.historyUpdateTimeout=setTimeout(this.updateHash.bind(this),800):this.updateHash()}},{key:"setCaption",value:function(t,e,b){var o=this;if(this.options.captions&&t&&t!==""&&typeof t<"u"){var l,n=!((l=b??this.options.captionHTML)!==null&&l!==void 0)||l?"innerHTML":"innerText";this.hide(this.domNodes.caption),this.domNodes.caption.style.width=e+"px",this.domNodes.caption[n]=t,this.domNodes.image.appendChild(this.domNodes.caption),setTimeout(function(){o.fadeIn(o.domNodes.caption,o.options.fadeSpeed)},this.options.captionDelay)}}},{key:"slide",value:function(t,e){if(!this.transitionCapable)return this.domNodes.image.style.left=e;this.domNodes.image.style[this.transitionPrefix+"transform"]="translateX("+e+")",this.domNodes.image.style[this.transitionPrefix+"transition"]=this.transitionPrefix+"transform "+t+"s linear"}},{key:"getRelated",value:function(t){var e;return t&&t!==!1&&t!=="nofollow"?e=Array.from(this.elements).filter(function(b){return b.getAttribute("rel")===t}):e=this.elements,e}},{key:"openImage",value:function(t){var e=this;t.dispatchEvent(new Event("show."+this.eventNamespace)),this.globalScrollbarWidth=this.getScrollbarWidth(),this.options.disableScroll&&(this.toggleScrollbar("hide"),this.globalScrollbarWidth=0),this.options.htmlClass&&this.options.htmlClass!==""&&document.querySelector("html").classList.add(this.options.htmlClass),document.body.appendChild(this.domNodes.wrapper),this.domNodes.wrapper.appendChild(this.domNodes.image),this.options.overlay&&document.body.appendChild(this.domNodes.overlay),this.relatedElements=this.getRelated(t.rel),this.options.showCounter&&(this.relatedElements.length==1&&this.domNodes.wrapper.contains(this.domNodes.counter)?this.domNodes.wrapper.removeChild(this.domNodes.counter):this.relatedElements.length>1&&!this.domNodes.wrapper.contains(this.domNodes.counter)&&this.domNodes.wrapper.appendChild(this.domNodes.counter)),this.options.download&&this.domNodes.download&&this.domNodes.wrapper.appendChild(this.domNodes.download),this.isAnimating=!0,this.currentImageIndex=this.relatedElements.indexOf(t);var b=t.getAttribute(this.options.sourceAttr);this.currentImage=document.createElement("img"),this.currentImage.style.display="none",this.currentImage.setAttribute("src",b),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.loadedImages.indexOf(b)===-1&&this.loadedImages.push(b),this.domNodes.image.innerHTML="",this.domNodes.image.setAttribute("style",""),this.domNodes.image.appendChild(this.currentImage),this.fadeIn(this.domNodes.overlay,this.options.fadeSpeed),this.fadeIn([this.domNodes.counter,this.domNodes.navigation,this.domNodes.closeButton,this.domNodes.download],this.options.fadeSpeed),this.show(this.domNodes.spinner),this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.domNodes.counter.querySelector(".sl-total").innerHTML=this.relatedElements.length,this.adjustImage(),this.options.preloading&&this.preload(),setTimeout(function(){t.dispatchEvent(new Event("shown."+e.eventNamespace))},this.options.animationSpeed)}},{key:"forceFocus",value:function(){var t=this;this.removeEventListener(document,"focusin."+this.eventNamespace),this.addEventListener(document,"focusin."+this.eventNamespace,function(e){document!==e.target&&t.domNodes.wrapper!==e.target&&!t.domNodes.wrapper.contains(e.target)&&t.domNodes.wrapper.focus()})}},{key:"addEventListener",value:function(t,e,b,o){t=this.wrap(t),e=this.wrap(e);var l=E(t),n;try{for(l.s();!(n=l.n()).done;){var a=n.value;a.namespaces||(a.namespaces={});var r=E(e),d;try{for(r.s();!(d=r.n()).done;){var m=d.value,C=o||!1,I=["touchstart","touchmove","mousewheel","DOMMouseScroll"].indexOf(m.split(".")[0])>=0;I&&this.isPassiveEventsSupported&&(ib(C)==="object"?C.passive=!0:C={passive:!0}),a.namespaces[m]=b,a.addEventListener(m.split(".")[0],b,C)}}catch(g){r.e(g)}finally{r.f()}}}catch(g){l.e(g)}finally{l.f()}}},{key:"removeEventListener",value:function(t,e){t=this.wrap(t),e=this.wrap(e);var b=E(t),o;try{for(b.s();!(o=b.n()).done;){var l=o.value,n=E(e),a;try{for(n.s();!(a=n.n()).done;){var r=a.value;l.namespaces&&l.namespaces[r]&&(l.removeEventListener(r.split(".")[0],l.namespaces[r]),delete l.namespaces[r])}}catch(d){n.e(d)}finally{n.f()}}}catch(d){b.e(d)}finally{b.f()}}},{key:"fadeOut",value:function(t,e,b){var o=this;t=this.wrap(t);var l=E(t),n;try{for(l.s();!(n=l.n()).done;){var a=n.value;a.style.opacity=parseFloat(a)||window.getComputedStyle(a).getPropertyValue("opacity")}}catch(m){l.e(m)}finally{l.f()}this.isFadeIn=!1;var r=16.66666/(e||this.options.fadeSpeed),d=function m(){var C=parseFloat(t[0].style.opacity);if((C-=r)<0){var I=E(t),g;try{for(I.s();!(g=I.n()).done;){var Z=g.value;Z.style.display="none",Z.style.opacity=1}}catch(V){I.e(V)}finally{I.f()}b&&b.call(o,t)}else{var W=E(t),u;try{for(W.s();!(u=W.n()).done;){var R=u.value;R.style.opacity=C}}catch(V){W.e(V)}finally{W.f()}requestAnimationFrame(m)}};d()}},{key:"fadeIn",value:function(t,e,b,o){var l=this;t=this.wrap(t);var n=E(t),a;try{for(n.s();!(a=n.n()).done;){var r=a.value;r&&(r.style.opacity=0,r.style.display=o||"block")}}catch(I){n.e(I)}finally{n.f()}this.isFadeIn=!0;var d=parseFloat(t[0].dataset.opacityTarget||1),m=16.66666*d/(e||this.options.fadeSpeed),C=function I(){var g=parseFloat(t[0].style.opacity);if((g+=m)>d){var R=E(t),V;try{for(R.s();!(V=R.n()).done;){var G=V.value;G&&(G.style.opacity=d)}}catch(F){R.e(F)}finally{R.f()}b&&b.call(l,t)}else{var Z=E(t),W;try{for(Z.s();!(W=Z.n()).done;){var u=W.value;u&&(u.style.opacity=g)}}catch(F){Z.e(F)}finally{Z.f()}if(!l.isFadeIn)return;requestAnimationFrame(I)}};C()}},{key:"hide",value:function(t){t=this.wrap(t);var e=E(t),b;try{for(e.s();!(b=e.n()).done;){var o=b.value;o.style.display!="none"&&(o.dataset.initialDisplay=o.style.display),o.style.display="none"}}catch(l){e.e(l)}finally{e.f()}}},{key:"show",value:function(t,e){t=this.wrap(t);var b=E(t),o;try{for(b.s();!(o=b.n()).done;){var l=o.value;l.style.display=l.dataset.initialDisplay||e||"block"}}catch(n){b.e(n)}finally{b.f()}}},{key:"wrap",value:function(t){return typeof t[Symbol.iterator]=="function"&&typeof t!="string"?t:[t]}},{key:"on",value:function(t,e){t=this.wrap(t);var b=E(this.elements),o;try{for(b.s();!(o=b.n()).done;){var l=o.value;l.fullyNamespacedEvents||(l.fullyNamespacedEvents={});var n=E(t),a;try{for(n.s();!(a=n.n()).done;){var r=a.value;l.fullyNamespacedEvents[r]=e,l.addEventListener(r,e)}}catch(d){n.e(d)}finally{n.f()}}}catch(d){b.e(d)}finally{b.f()}return this}},{key:"off",value:function(t){t=this.wrap(t);var e=E(this.elements),b;try{for(e.s();!(b=e.n()).done;){var o=b.value,l=E(t),n;try{for(l.s();!(n=l.n()).done;){var a=n.value;typeof o.fullyNamespacedEvents<"u"&&a in o.fullyNamespacedEvents&&o.removeEventListener(a,o.fullyNamespacedEvents[a])}}catch(r){l.e(r)}finally{l.f()}}}catch(r){e.e(r)}finally{e.f()}return this}},{key:"open",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;t=t||this.elements[0],typeof jQuery<"u"&&t instanceof jQuery&&(t=t.get(0)),e>0&&(t=this.elements[e]),this.initialImageIndex=this.elements.indexOf(t),this.initialImageIndex>-1&&this.openImage(t)}},{key:"openPosition",value:function(t){var e=this.elements[t];this.open(e,t)}},{key:"next",value:function(){this.loadImage(1)}},{key:"prev",value:function(){this.loadImage(-1)}},{key:"getLighboxData",value:function(){return{currentImageIndex:this.currentImageIndex,currentImage:this.currentImage,globalScrollbarWidth:this.globalScrollbarWidth}}},{key:"destroy",value:function(){this.off(["close."+this.eventNamespace,"closed."+this.eventNamespace,"nextImageLoaded."+this.eventNamespace,"prevImageLoaded."+this.eventNamespace,"change."+this.eventNamespace,"nextDone."+this.eventNamespace,"prevDone."+this.eventNamespace,"error."+this.eventNamespace,"changed."+this.eventNamespace,"next."+this.eventNamespace,"prev."+this.eventNamespace,"show."+this.eventNamespace,"shown."+this.eventNamespace]),this.removeEventListener(this.elements,"click."+this.eventNamespace),this.removeEventListener(document,"focusin."+this.eventNamespace),this.removeEventListener(document.body,"contextmenu."+this.eventNamespace),this.removeEventListener(document.body,"keyup."+this.eventNamespace),this.removeEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace),this.removeEventListener(this.domNodes.closeButton,"click."+this.eventNamespace),this.removeEventListener(window,"resize."+this.eventNamespace),this.removeEventListener(window,"hashchange."+this.eventNamespace),this.close(),this.isOpen&&(document.body.removeChild(this.domNodes.wrapper),document.body.removeChild(this.domNodes.overlay)),this.elements=null}},{key:"refresh",value:function(){if(!this.initialSelector)throw"refreshing only works when you initialize using a selector!";var t=this.options,e=this.initialSelector;return this.destroy(),this.constructor(e,t),this}}]),c}(),TI=Cl;Yc.default=TI;window.SimpleLightbox=Cl});var oc={};Ql(oc,{afterMain:()=>Gb,afterRead:()=>mb,afterWrite:()=>Bb,applyStyles:()=>ei,arrow:()=>Pi,auto:()=>Ri,basePlacements:()=>Xt,beforeMain:()=>Zb,beforeRead:()=>sb,beforeWrite:()=>Fb,bottom:()=>z,clippingParents:()=>kc,computeStyles:()=>oi,createPopper:()=>Yi,createPopperBase:()=>yb,createPopperLite:()=>Ab,detectOverflow:()=>K,end:()=>pt,eventListeners:()=>li,flip:()=>ic,hide:()=>cc,left:()=>w,main:()=>Xb,modifierPhases:()=>Hc,offset:()=>ec,placements:()=>xi,popper:()=>Lt,popperGenerator:()=>St,popperOffsets:()=>di,preventOverflow:()=>bc,read:()=>gb,reference:()=>zc,right:()=>k,start:()=>mt,top:()=>N,variationPlacements:()=>_i,viewport:()=>hi,write:()=>Cb});var N="top",z="bottom",k="right",w="left",Ri="auto",Xt=[N,z,k,w],mt="start",pt="end",kc="clippingParents",hi="viewport",Lt="popper",zc="reference",_i=Xt.reduce(function(c,i){return c.concat([i+"-"+mt,i+"-"+pt])},[]),xi=[].concat(Xt,[Ri]).reduce(function(c,i){return c.concat([i,i+"-"+mt,i+"-"+pt])},[]),sb="beforeRead",gb="read",mb="afterRead",Zb="beforeMain",Xb="main",Gb="afterMain",Fb="beforeWrite",Cb="write",Bb="afterWrite",Hc=[sb,gb,mb,Zb,Xb,Gb,Fb,Cb,Bb];function j(c){return c?(c.nodeName||"").toLowerCase():null}function J(c){if(c==null)return window;if(c.toString()!=="[object Window]"){var i=c.ownerDocument;return i&&i.defaultView||window}return c}function ct(c){var i=J(c).Element;return c instanceof i||c instanceof Element}function H(c){var i=J(c).HTMLElement;return c instanceof i||c instanceof HTMLElement}function ci(c){if(typeof ShadowRoot>"u")return!1;var i=J(c).ShadowRoot;return c instanceof i||c instanceof ShadowRoot}function yl(c){var i=c.state;Object.keys(i.elements).forEach(function(t){var e=i.styles[t]||{},b=i.attributes[t]||{},o=i.elements[t];!H(o)||!j(o)||(Object.assign(o.style,e),Object.keys(b).forEach(function(l){var n=b[l];n===!1?o.removeAttribute(l):o.setAttribute(l,n===!0?"":n)}))})}function Al(c){var i=c.state,t={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,t.popper),i.styles=t,i.elements.arrow&&Object.assign(i.elements.arrow.style,t.arrow),function(){Object.keys(i.elements).forEach(function(e){var b=i.elements[e],o=i.attributes[e]||{},l=Object.keys(i.styles.hasOwnProperty(e)?i.styles[e]:t[e]),n=l.reduce(function(a,r){return a[r]="",a},{});!H(b)||!j(b)||(Object.assign(b.style,n),Object.keys(o).forEach(function(a){b.removeAttribute(a)}))})}}var ei={name:"applyStyles",enabled:!0,phase:"write",fn:yl,effect:Al,requires:["computeStyles"]};function S(c){return c.split("-")[0]}var dt=Math.max,Jt=Math.min,Gt=Math.round;function bi(){var c=navigator.userAgentData;return c!=null&&c.brands&&Array.isArray(c.brands)?c.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Vi(){return!/^((?!chrome|android).)*safari/i.test(bi())}function et(c,i,t){i===void 0&&(i=!1),t===void 0&&(t=!1);var e=c.getBoundingClientRect(),b=1,o=1;i&&H(c)&&(b=c.offsetWidth>0&&Gt(e.width)/c.offsetWidth||1,o=c.offsetHeight>0&&Gt(e.height)/c.offsetHeight||1);var l=ct(c)?J(c):window,n=l.visualViewport,a=!Vi()&&t,r=(e.left+(a&&n?n.offsetLeft:0))/b,d=(e.top+(a&&n?n.offsetTop:0))/o,m=e.width/b,C=e.height/o;return{width:m,height:C,top:d,right:r+m,bottom:d+C,left:r,x:r,y:d}}function Nt(c){var i=et(c),t=c.offsetWidth,e=c.offsetHeight;return Math.abs(i.width-t)<=1&&(t=i.width),Math.abs(i.height-e)<=1&&(e=i.height),{x:c.offsetLeft,y:c.offsetTop,width:t,height:e}}function Qi(c,i){var t=i.getRootNode&&i.getRootNode();if(c.contains(i))return!0;if(t&&ci(t)){var e=i;do{if(e&&c.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function M(c){return J(c).getComputedStyle(c)}function jc(c){return["table","td","th"].indexOf(j(c))>=0}function D(c){return((ct(c)?c.ownerDocument:c.document)||window.document).documentElement}function Ft(c){return j(c)==="html"?c:c.assignedSlot||c.parentNode||(ci(c)?c.host:null)||D(c)}function Wb(c){return!H(c)||M(c).position==="fixed"?null:c.offsetParent}function fl(c){var i=/firefox/i.test(bi()),t=/Trident/i.test(bi());if(t&&H(c)){var e=M(c);if(e.position==="fixed")return null}var b=Ft(c);for(ci(b)&&(b=b.host);H(b)&&["html","body"].indexOf(j(b))<0;){var o=M(b);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||i&&o.willChange==="filter"||i&&o.filter&&o.filter!=="none")return b;b=b.parentNode}return null}function rt(c){for(var i=J(c),t=Wb(c);t&&jc(t)&&M(t).position==="static";)t=Wb(t);return t&&(j(t)==="html"||j(t)==="body"&&M(t).position==="static")?i:t||fl(c)||i}function wt(c){return["top","bottom"].indexOf(c)>=0?"x":"y"}function kt(c,i,t){return dt(c,Jt(i,t))}function ub(c,i,t){var e=kt(c,i,t);return e>t?t:e}function yi(){return{top:0,right:0,bottom:0,left:0}}function Ai(c){return Object.assign({},yi(),c)}function fi(c,i){return i.reduce(function(t,e){return t[e]=c,t},{})}var Ul=function(i,t){return i=typeof i=="function"?i(Object.assign({},t.rects,{placement:t.placement})):i,Ai(typeof i!="number"?i:fi(i,Xt))};function Yl(c){var i,t=c.state,e=c.name,b=c.options,o=t.elements.arrow,l=t.modifiersData.popperOffsets,n=S(t.placement),a=wt(n),r=[w,k].indexOf(n)>=0,d=r?"height":"width";if(!(!o||!l)){var m=Ul(b.padding,t),C=Nt(o),I=a==="y"?N:w,g=a==="y"?z:k,Z=t.rects.reference[d]+t.rects.reference[a]-l[a]-t.rects.popper[d],W=l[a]-t.rects.reference[a],u=rt(o),R=u?a==="y"?u.clientHeight||0:u.clientWidth||0:0,V=Z/2-W/2,G=m[I],F=R-C[d]-m[g],p=R/2-C[d]/2+V,Q=kt(G,p,F),s=a;t.modifiersData[e]=(i={},i[s]=Q,i.centerOffset=Q-p,i)}}function vl(c){var i=c.state,t=c.options,e=t.element,b=e===void 0?"[data-popper-arrow]":e;b!=null&&(typeof b=="string"&&(b=i.elements.popper.querySelector(b),!b)||Qi(i.elements.popper,b)&&(i.elements.arrow=b))}var Pi={name:"arrow",enabled:!0,phase:"main",fn:Yl,effect:vl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bt(c){return c.split("-")[1]}var Ol={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ll(c,i){var t=c.x,e=c.y,b=i.devicePixelRatio||1;return{x:Gt(t*b)/b||0,y:Gt(e*b)/b||0}}function pb(c){var i,t=c.popper,e=c.popperRect,b=c.placement,o=c.variation,l=c.offsets,n=c.position,a=c.gpuAcceleration,r=c.adaptive,d=c.roundOffsets,m=c.isFixed,C=l.x,I=C===void 0?0:C,g=l.y,Z=g===void 0?0:g,W=typeof d=="function"?d({x:I,y:Z}):{x:I,y:Z};I=W.x,Z=W.y;var u=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),V=w,G=N,F=window;if(r){var p=rt(t),Q="clientHeight",s="clientWidth";if(p===J(t)&&(p=D(t),M(p).position!=="static"&&n==="absolute"&&(Q="scrollHeight",s="scrollWidth")),p=p,b===N||(b===w||b===k)&&o===pt){G=z;var h=m&&p===F&&F.visualViewport?F.visualViewport.height:p[Q];Z-=h-e.height,Z*=a?1:-1}if(b===w||(b===N||b===z)&&o===pt){V=k;var X=m&&p===F&&F.visualViewport?F.visualViewport.width:p[s];I-=X-e.width,I*=a?1:-1}}var x=Object.assign({position:n},r&&Ol),A=d===!0?Ll({x:I,y:Z},J(t)):{x:I,y:Z};if(I=A.x,Z=A.y,a){var U;return Object.assign({},x,(U={},U[G]=R?"0":"",U[V]=u?"0":"",U.transform=(F.devicePixelRatio||1)<=1?"translate("+I+"px, "+Z+"px)":"translate3d("+I+"px, "+Z+"px, 0)",U))}return Object.assign({},x,(i={},i[G]=R?Z+"px":"",i[V]=u?I+"px":"",i.transform="",i))}function Jl(c){var i=c.state,t=c.options,e=t.gpuAcceleration,b=e===void 0?!0:e,o=t.adaptive,l=o===void 0?!0:o,n=t.roundOffsets,a=n===void 0?!0:n,r={placement:S(i.placement),variation:bt(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:b,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,pb(Object.assign({},r,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:l,roundOffsets:a})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,pb(Object.assign({},r,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jl,data:{}};var $i={passive:!0};function Nl(c){var i=c.state,t=c.instance,e=c.options,b=e.scroll,o=b===void 0?!0:b,l=e.resize,n=l===void 0?!0:l,a=J(i.elements.popper),r=[].concat(i.scrollParents.reference,i.scrollParents.popper);return o&&r.forEach(function(d){d.addEventListener("scroll",t.update,$i)}),n&&a.addEventListener("resize",t.update,$i),function(){o&&r.forEach(function(d){d.removeEventListener("scroll",t.update,$i)}),n&&a.removeEventListener("resize",t.update,$i)}}var li={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nl,data:{}};var wl={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(c){return c.replace(/left|right|bottom|top/g,function(i){return wl[i]})}var kl={start:"end",end:"start"};function qi(c){return c.replace(/start|end/g,function(i){return kl[i]})}function zt(c){var i=J(c),t=i.pageXOffset,e=i.pageYOffset;return{scrollLeft:t,scrollTop:e}}function Ht(c){return et(D(c)).left+zt(c).scrollLeft}function Sc(c,i){var t=J(c),e=D(c),b=t.visualViewport,o=e.clientWidth,l=e.clientHeight,n=0,a=0;if(b){o=b.width,l=b.height;var r=Vi();(r||!r&&i==="fixed")&&(n=b.offsetLeft,a=b.offsetTop)}return{width:o,height:l,x:n+Ht(c),y:a}}function Tc(c){var i,t=D(c),e=zt(c),b=(i=c.ownerDocument)==null?void 0:i.body,o=dt(t.scrollWidth,t.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),l=dt(t.scrollHeight,t.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),n=-e.scrollLeft+Ht(c),a=-e.scrollTop;return M(b||t).direction==="rtl"&&(n+=dt(t.clientWidth,b?b.clientWidth:0)-o),{width:o,height:l,x:n,y:a}}function jt(c){var i=M(c),t=i.overflow,e=i.overflowX,b=i.overflowY;return/auto|scroll|overlay|hidden/.test(t+b+e)}function tc(c){return["html","body","#document"].indexOf(j(c))>=0?c.ownerDocument.body:H(c)&&jt(c)?c:tc(Ft(c))}function Rt(c,i){var t;i===void 0&&(i=[]);var e=tc(c),b=e===((t=c.ownerDocument)==null?void 0:t.body),o=J(e),l=b?[o].concat(o.visualViewport||[],jt(e)?e:[]):e,n=i.concat(l);return b?n:n.concat(Rt(Ft(l)))}function ai(c){return Object.assign({},c,{left:c.x,top:c.y,right:c.x+c.width,bottom:c.y+c.height})}function zl(c,i){var t=et(c,!1,i==="fixed");return t.top=t.top+c.clientTop,t.left=t.left+c.clientLeft,t.bottom=t.top+c.clientHeight,t.right=t.left+c.clientWidth,t.width=c.clientWidth,t.height=c.clientHeight,t.x=t.left,t.y=t.top,t}function Rb(c,i,t){return i===hi?ai(Sc(c,t)):ct(i)?zl(i,t):ai(Tc(D(c)))}function Hl(c){var i=Rt(Ft(c)),t=["absolute","fixed"].indexOf(M(c).position)>=0,e=t&&H(c)?rt(c):c;return ct(e)?i.filter(function(b){return ct(b)&&Qi(b,e)&&j(b)!=="body"}):[]}function Dc(c,i,t,e){var b=i==="clippingParents"?Hl(c):[].concat(i),o=[].concat(b,[t]),l=o[0],n=o.reduce(function(a,r){var d=Rb(c,r,e);return a.top=dt(d.top,a.top),a.right=Jt(d.right,a.right),a.bottom=Jt(d.bottom,a.bottom),a.left=dt(d.left,a.left),a},Rb(c,l,e));return n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function Ui(c){var i=c.reference,t=c.element,e=c.placement,b=e?S(e):null,o=e?bt(e):null,l=i.x+i.width/2-t.width/2,n=i.y+i.height/2-t.height/2,a;switch(b){case N:a={x:l,y:i.y-t.height};break;case z:a={x:l,y:i.y+i.height};break;case k:a={x:i.x+i.width,y:n};break;case w:a={x:i.x-t.width,y:n};break;default:a={x:i.x,y:i.y}}var r=b?wt(b):null;if(r!=null){var d=r==="y"?"height":"width";switch(o){case mt:a[r]=a[r]-(i[d]/2-t[d]/2);break;case pt:a[r]=a[r]+(i[d]/2-t[d]/2);break;default:}}return a}function K(c,i){i===void 0&&(i={});var t=i,e=t.placement,b=e===void 0?c.placement:e,o=t.strategy,l=o===void 0?c.strategy:o,n=t.boundary,a=n===void 0?kc:n,r=t.rootBoundary,d=r===void 0?hi:r,m=t.elementContext,C=m===void 0?Lt:m,I=t.altBoundary,g=I===void 0?!1:I,Z=t.padding,W=Z===void 0?0:Z,u=Ai(typeof W!="number"?W:fi(W,Xt)),R=C===Lt?zc:Lt,V=c.rects.popper,G=c.elements[g?R:C],F=Dc(ct(G)?G:G.contextElement||D(c.elements.popper),a,d,l),p=et(c.elements.reference),Q=Ui({reference:p,element:V,strategy:"absolute",placement:b}),s=ai(Object.assign({},V,Q)),h=C===Lt?s:p,X={top:F.top-h.top+u.top,bottom:h.bottom-F.bottom+u.bottom,left:F.left-h.left+u.left,right:h.right-F.right+u.right},x=c.modifiersData.offset;if(C===Lt&&x){var A=x[b];Object.keys(X).forEach(function(U){var v=[k,z].indexOf(U)>=0?1:-1,Y=[N,z].indexOf(U)>=0?"y":"x";X[U]+=A[Y]*v})}return X}function Ec(c,i){i===void 0&&(i={});var t=i,e=t.placement,b=t.boundary,o=t.rootBoundary,l=t.padding,n=t.flipVariations,a=t.allowedAutoPlacements,r=a===void 0?xi:a,d=bt(e),m=d?n?_i:_i.filter(function(g){return bt(g)===d}):Xt,C=m.filter(function(g){return r.indexOf(g)>=0});C.length===0&&(C=m);var I=C.reduce(function(g,Z){return g[Z]=K(c,{placement:Z,boundary:b,rootBoundary:o,padding:l})[S(Z)],g},{});return Object.keys(I).sort(function(g,Z){return I[g]-I[Z]})}function jl(c){if(S(c)===Ri)return[];var i=ni(c);return[qi(c),i,qi(i)]}function Sl(c){var i=c.state,t=c.options,e=c.name;if(!i.modifiersData[e]._skip){for(var b=t.mainAxis,o=b===void 0?!0:b,l=t.altAxis,n=l===void 0?!0:l,a=t.fallbackPlacements,r=t.padding,d=t.boundary,m=t.rootBoundary,C=t.altBoundary,I=t.flipVariations,g=I===void 0?!0:I,Z=t.allowedAutoPlacements,W=i.options.placement,u=S(W),R=u===W,V=a||(R||!g?[ni(W)]:jl(W)),G=[W].concat(V).reduce(function(ii,ut){return ii.concat(S(ut)===Ri?Ec(i,{placement:ut,boundary:d,rootBoundary:m,padding:r,flipVariations:g,allowedAutoPlacements:Z}):ut)},[]),F=i.rects.reference,p=i.rects.popper,Q=new Map,s=!0,h=G[0],X=0;X=0,Y=v?"width":"height",O=K(i,{placement:x,boundary:d,rootBoundary:m,altBoundary:C,padding:r}),P=v?U?k:w:U?z:N;F[Y]>p[Y]&&(P=ni(P));var ti=ni(P),$=[];if(o&&$.push(O[A]<=0),n&&$.push(O[P]<=0,O[ti]<=0),$.every(function(ii){return ii})){h=x,s=!1;break}Q.set(x,$)}if(s)for(var Di=g?3:1,Oc=function(ut){var pi=G.find(function(Mi){var vt=Q.get(Mi);if(vt)return vt.slice(0,ut).every(function(Lc){return Lc})});if(pi)return h=pi,"break"},ui=Di;ui>0;ui--){var Ei=Oc(ui);if(Ei==="break")break}i.placement!==h&&(i.modifiersData[e]._skip=!0,i.placement=h,i.reset=!0)}}var ic={name:"flip",enabled:!0,phase:"main",fn:Sl,requiresIfExists:["offset"],data:{_skip:!1}};function hb(c,i,t){return t===void 0&&(t={x:0,y:0}),{top:c.top-i.height-t.y,right:c.right-i.width+t.x,bottom:c.bottom-i.height+t.y,left:c.left-i.width-t.x}}function xb(c){return[N,k,z,w].some(function(i){return c[i]>=0})}function Tl(c){var i=c.state,t=c.name,e=i.rects.reference,b=i.rects.popper,o=i.modifiersData.preventOverflow,l=K(i,{elementContext:"reference"}),n=K(i,{altBoundary:!0}),a=hb(l,e),r=hb(n,b,o),d=xb(a),m=xb(r);i.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:r,isReferenceHidden:d,hasPopperEscaped:m},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":m})}var cc={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tl};function Dl(c,i,t){var e=S(c),b=[w,N].indexOf(e)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},i,{placement:c})):t,l=o[0],n=o[1];return l=l||0,n=(n||0)*b,[w,k].indexOf(e)>=0?{x:n,y:l}:{x:l,y:n}}function El(c){var i=c.state,t=c.options,e=c.name,b=t.offset,o=b===void 0?[0,0]:b,l=xi.reduce(function(d,m){return d[m]=Dl(m,i.rects,o),d},{}),n=l[i.placement],a=n.x,r=n.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=a,i.modifiersData.popperOffsets.y+=r),i.modifiersData[e]=l}var ec={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:El};function Ml(c){var i=c.state,t=c.name;i.modifiersData[t]=Ui({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var di={name:"popperOffsets",enabled:!0,phase:"read",fn:Ml,data:{}};function Mc(c){return c==="x"?"y":"x"}function Kl(c){var i=c.state,t=c.options,e=c.name,b=t.mainAxis,o=b===void 0?!0:b,l=t.altAxis,n=l===void 0?!1:l,a=t.boundary,r=t.rootBoundary,d=t.altBoundary,m=t.padding,C=t.tether,I=C===void 0?!0:C,g=t.tetherOffset,Z=g===void 0?0:g,W=K(i,{boundary:a,rootBoundary:r,padding:m,altBoundary:d}),u=S(i.placement),R=bt(i.placement),V=!R,G=wt(u),F=Mc(G),p=i.modifiersData.popperOffsets,Q=i.rects.reference,s=i.rects.popper,h=typeof Z=="function"?Z(Object.assign({},i.rects,{placement:i.placement})):Z,X=typeof h=="number"?{mainAxis:h,altAxis:h}:Object.assign({mainAxis:0,altAxis:0},h),x=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,A={x:0,y:0};if(p){if(o){var U,v=G==="y"?N:w,Y=G==="y"?z:k,O=G==="y"?"height":"width",P=p[G],ti=P+W[v],$=P-W[Y],Di=I?-s[O]/2:0,Oc=R===mt?Q[O]:s[O],ui=R===mt?-s[O]:-Q[O],Ei=i.elements.arrow,ii=I&&Ei?Nt(Ei):{width:0,height:0},ut=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:yi(),pi=ut[v],Mi=ut[Y],vt=kt(0,Q[O],ii[O]),Lc=V?Q[O]/2-Di-vt-pi-X.mainAxis:Oc-vt-pi-X.mainAxis,ul=V?-Q[O]/2+Di+vt+Mi+X.mainAxis:ui+vt+Mi+X.mainAxis,Jc=i.elements.arrow&&rt(i.elements.arrow),pl=Jc?G==="y"?Jc.clientTop||0:Jc.clientLeft||0:0,eb=(U=x?.[G])!=null?U:0,Rl=P+Lc-eb-pl,hl=P+ul-eb,bb=kt(I?Jt(ti,Rl):ti,P,I?dt($,hl):$);p[G]=bb,A[G]=bb-P}if(n){var ob,xl=G==="x"?N:w,Vl=G==="x"?z:k,Ot=p[F],Ki=F==="y"?"height":"width",lb=Ot+W[xl],nb=Ot-W[Vl],Nc=[N,w].indexOf(u)!==-1,ab=(ob=x?.[F])!=null?ob:0,db=Nc?lb:Ot-Q[Ki]-s[Ki]-ab+X.altAxis,rb=Nc?Ot+Q[Ki]+s[Ki]-ab-X.altAxis:nb,Ib=I&&Nc?ub(db,Ot,rb):kt(I?db:lb,Ot,I?rb:nb);p[F]=Ib,A[F]=Ib-Ot}i.modifiersData[e]=A}}var bc={name:"preventOverflow",enabled:!0,phase:"main",fn:Kl,requiresIfExists:["offset"]};function Kc(c){return{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}}function _c(c){return c===J(c)||!H(c)?zt(c):Kc(c)}function _l(c){var i=c.getBoundingClientRect(),t=Gt(i.width)/c.offsetWidth||1,e=Gt(i.height)/c.offsetHeight||1;return t!==1||e!==1}function Pc(c,i,t){t===void 0&&(t=!1);var e=H(i),b=H(i)&&_l(i),o=D(i),l=et(c,b,t),n={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(e||!e&&!t)&&((j(i)!=="body"||jt(o))&&(n=_c(i)),H(i)?(a=et(i,!0),a.x+=i.clientLeft,a.y+=i.clientTop):o&&(a.x=Ht(o))),{x:l.left+n.scrollLeft-a.x,y:l.top+n.scrollTop-a.y,width:l.width,height:l.height}}function Pl(c){var i=new Map,t=new Set,e=[];c.forEach(function(o){i.set(o.name,o)});function b(o){t.add(o.name);var l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(n){if(!t.has(n)){var a=i.get(n);a&&b(a)}}),e.push(o)}return c.forEach(function(o){t.has(o.name)||b(o)}),e}function $c(c){var i=Pl(c);return Hc.reduce(function(t,e){return t.concat(i.filter(function(b){return b.phase===e}))},[])}function qc(c){var i;return function(){return i||(i=new Promise(function(t){Promise.resolve().then(function(){i=void 0,t(c())})})),i}}function te(c){var i=c.reduce(function(t,e){var b=t[e.name];return t[e.name]=b?Object.assign({},b,e,{options:Object.assign({},b.options,e.options),data:Object.assign({},b.data,e.data)}):e,t},{});return Object.keys(i).map(function(t){return i[t]})}var Vb={placement:"bottom",modifiers:[],strategy:"absolute"};function Qb(){for(var c=arguments.length,i=new Array(c),t=0;t(c&&window.CSS&&window.CSS.escape&&(c=c.replace(/#([^\s"#']+)/g,(i,t)=>`#${CSS.escape(t)}`)),c),en=c=>c==null?`${c}`:Object.prototype.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase(),bn=c=>{do c+=Math.floor(Math.random()*tn);while(document.getElementById(c));return c},on=c=>{if(!c)return 0;let{transitionDuration:i,transitionDelay:t}=window.getComputedStyle(c),e=Number.parseFloat(i),b=Number.parseFloat(t);return!e&&!b?0:(i=i.split(",")[0],t=t.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(t))*cn)},lo=c=>{c.dispatchEvent(new Event(Xe))},Ct=c=>!c||typeof c!="object"?!1:(typeof c.jquery<"u"&&(c=c[0]),typeof c.nodeType<"u"),xt=c=>Ct(c)?c.jquery?c[0]:c:typeof c=="string"&&c.length>0?document.querySelector(oo(c)):null,Gi=c=>{if(!Ct(c)||c.getClientRects().length===0)return!1;let i=getComputedStyle(c).getPropertyValue("visibility")==="visible",t=c.closest("details:not([open])");if(!t)return i;if(t!==c){let e=c.closest("summary");if(e&&e.parentNode!==t||e===null)return!1}return i},Vt=c=>!c||c.nodeType!==Node.ELEMENT_NODE||c.classList.contains("disabled")?!0:typeof c.disabled<"u"?c.disabled:c.hasAttribute("disabled")&&c.getAttribute("disabled")!=="false",no=c=>{if(!document.documentElement.attachShadow)return null;if(typeof c.getRootNode=="function"){let i=c.getRootNode();return i instanceof ShadowRoot?i:null}return c instanceof ShadowRoot?c:c.parentNode?no(c.parentNode):null},mc=()=>{},wi=c=>{c.offsetHeight},ao=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ce=[],ln=c=>{document.readyState==="loading"?(ce.length||document.addEventListener("DOMContentLoaded",()=>{for(let i of ce)i()}),ce.push(c)):c()},ot=()=>document.documentElement.dir==="rtl",nt=c=>{ln(()=>{let i=ao();if(i){let t=c.NAME,e=i.fn[t];i.fn[t]=c.jQueryInterface,i.fn[t].Constructor=c,i.fn[t].noConflict=()=>(i.fn[t]=e,c.jQueryInterface)}})},q=(c,i=[],t=c)=>typeof c=="function"?c(...i):t,ro=(c,i,t=!0)=>{if(!t){q(c);return}let b=on(i)+5,o=!1,l=({target:n})=>{n===i&&(o=!0,i.removeEventListener(Xe,l),q(c))};i.addEventListener(Xe,l),setTimeout(()=>{o||lo(i)},b)},We=(c,i,t,e)=>{let b=c.length,o=c.indexOf(i);return o===-1?!t&&e?c[b-1]:c[0]:(o+=t?1:-1,e&&(o=(o+b)%b),c[Math.max(0,Math.min(o,b-1))])},nn=/[^.]*(?=\..*)\.|.*/,an=/\..*/,dn=/::\d+$/,ee={},fb=1,Io={mouseenter:"mouseover",mouseleave:"mouseout"},rn=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 so(c,i){return i&&`${i}::${fb++}`||c.uidEvent||fb++}function go(c){let i=so(c);return c.uidEvent=i,ee[i]=ee[i]||{},ee[i]}function In(c,i){return function t(e){return ue(e,{delegateTarget:c}),t.oneOff&&B.off(c,e.type,i),i.apply(c,[e])}}function sn(c,i,t){return function e(b){let o=c.querySelectorAll(i);for(let{target:l}=b;l&&l!==this;l=l.parentNode)for(let n of o)if(n===l)return ue(b,{delegateTarget:l}),e.oneOff&&B.off(c,b.type,i,t),t.apply(l,[b])}}function mo(c,i,t=null){return Object.values(c).find(e=>e.callable===i&&e.delegationSelector===t)}function Zo(c,i,t){let e=typeof i=="string",b=e?t:i||t,o=Xo(c);return rn.has(o)||(o=c),[e,b,o]}function Ub(c,i,t,e,b){if(typeof i!="string"||!c)return;let[o,l,n]=Zo(i,t,e);i in Io&&(l=(g=>function(Z){if(!Z.relatedTarget||Z.relatedTarget!==Z.delegateTarget&&!Z.delegateTarget.contains(Z.relatedTarget))return g.call(this,Z)})(l));let a=go(c),r=a[n]||(a[n]={}),d=mo(r,l,o?t:null);if(d){d.oneOff=d.oneOff&&b;return}let m=so(l,i.replace(nn,"")),C=o?sn(c,t,l):In(c,l);C.delegationSelector=o?t:null,C.callable=l,C.oneOff=b,C.uidEvent=m,r[m]=C,c.addEventListener(n,C,o)}function Ge(c,i,t,e,b){let o=mo(i[t],e,b);o&&(c.removeEventListener(t,o,!!b),delete i[t][o.uidEvent])}function gn(c,i,t,e){let b=i[t]||{};for(let[o,l]of Object.entries(b))o.includes(e)&&Ge(c,i,t,l.callable,l.delegationSelector)}function Xo(c){return c=c.replace(an,""),Io[c]||c}var B={on(c,i,t,e){Ub(c,i,t,e,!1)},one(c,i,t,e){Ub(c,i,t,e,!0)},off(c,i,t,e){if(typeof i!="string"||!c)return;let[b,o,l]=Zo(i,t,e),n=l!==i,a=go(c),r=a[l]||{},d=i.startsWith(".");if(typeof o<"u"){if(!Object.keys(r).length)return;Ge(c,a,l,o,b?t:null);return}if(d)for(let m of Object.keys(a))gn(c,a,m,i.slice(1));for(let[m,C]of Object.entries(r)){let I=m.replace(dn,"");(!n||i.includes(I))&&Ge(c,a,l,C.callable,C.delegationSelector)}},trigger(c,i,t){if(typeof i!="string"||!c)return null;let e=ao(),b=Xo(i),o=i!==b,l=null,n=!0,a=!0,r=!1;o&&e&&(l=e.Event(i,t),e(c).trigger(l),n=!l.isPropagationStopped(),a=!l.isImmediatePropagationStopped(),r=l.isDefaultPrevented());let d=ue(new Event(i,{bubbles:n,cancelable:!0}),t);return r&&d.preventDefault(),a&&c.dispatchEvent(d),d.defaultPrevented&&l&&l.preventDefault(),d}};function ue(c,i={}){for(let[t,e]of Object.entries(i))try{c[t]=e}catch{Object.defineProperty(c,t,{configurable:!0,get(){return e}})}return c}function Yb(c){if(c==="true")return!0;if(c==="false")return!1;if(c===Number(c).toString())return Number(c);if(c===""||c==="null")return null;if(typeof c!="string")return c;try{return JSON.parse(decodeURIComponent(c))}catch{return c}}function be(c){return c.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}var Bt={setDataAttribute(c,i,t){c.setAttribute(`data-bs-${be(i)}`,t)},removeDataAttribute(c,i){c.removeAttribute(`data-bs-${be(i)}`)},getDataAttributes(c){if(!c)return{};let i={},t=Object.keys(c.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(let e of t){let b=e.replace(/^bs/,"");b=b.charAt(0).toLowerCase()+b.slice(1,b.length),i[b]=Yb(c.dataset[e])}return i},getDataAttribute(c,i){return Yb(c.getAttribute(`data-bs-${be(i)}`))}},Et=class{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(i){return i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(i){return i}_mergeConfigObj(i,t){let e=Ct(t)?Bt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof e=="object"?e:{},...Ct(t)?Bt.getDataAttributes(t):{},...typeof i=="object"?i:{}}}_typeCheckConfig(i,t=this.constructor.DefaultType){for(let[e,b]of Object.entries(t)){let o=i[e],l=Ct(o)?"element":en(o);if(!new RegExp(b).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${e}" provided type "${l}" but expected type "${b}".`)}}},mn="5.3.3",tt=class extends Et{constructor(i,t){super(),i=xt(i),i&&(this._element=i,this._config=this._getConfig(t),ie.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ie.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY);for(let i of Object.getOwnPropertyNames(this))this[i]=null}_queueCallback(i,t,e=!0){ro(i,t,e)}_getConfig(i){return i=this._mergeConfigObj(i,this._element),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}static getInstance(i){return ie.get(xt(i),this.DATA_KEY)}static getOrCreateInstance(i,t={}){return this.getInstance(i)||new this(i,typeof t=="object"?t:null)}static get VERSION(){return mn}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(i){return`${i}${this.EVENT_KEY}`}},oe=c=>{let i=c.getAttribute("data-bs-target");if(!i||i==="#"){let t=c.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),i=t&&t!=="#"?t.trim():null}return i?i.split(",").map(t=>oo(t)).join(","):null},y={find(c,i=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(i,c))},findOne(c,i=document.documentElement){return Element.prototype.querySelector.call(i,c)},children(c,i){return[].concat(...c.children).filter(t=>t.matches(i))},parents(c,i){let t=[],e=c.parentNode.closest(i);for(;e;)t.push(e),e=e.parentNode.closest(i);return t},prev(c,i){let t=c.previousElementSibling;for(;t;){if(t.matches(i))return[t];t=t.previousElementSibling}return[]},next(c,i){let t=c.nextElementSibling;for(;t;){if(t.matches(i))return[t];t=t.nextElementSibling}return[]},focusableChildren(c){let i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(i,c).filter(t=>!Vt(t)&&Gi(t))},getSelectorFromElement(c){let i=oe(c);return i&&y.findOne(i)?i:null},getElementFromSelector(c){let i=oe(c);return i?y.findOne(i):null},getMultipleElementsFromSelector(c){let i=oe(c);return i?y.find(i):[]}},Rc=(c,i="hide")=>{let t=`click.dismiss${c.EVENT_KEY}`,e=c.NAME;B.on(document,t,`[data-bs-dismiss="${e}"]`,function(b){if(["A","AREA"].includes(this.tagName)&&b.preventDefault(),Vt(this))return;let o=y.getElementFromSelector(this)||this.closest(`.${e}`);c.getOrCreateInstance(o)[i]()})},Zn="alert",Xn="bs.alert",Go=`.${Xn}`,Gn=`close${Go}`,Fn=`closed${Go}`,Cn="fade",Bn="show",Zc=class c extends tt{static get NAME(){return Zn}close(){if(B.trigger(this._element,Gn).defaultPrevented)return;this._element.classList.remove(Bn);let t=this._element.classList.contains(Cn);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),B.trigger(this._element,Fn),this.dispose()}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i](this)}})}};Rc(Zc,"close");nt(Zc);var Wn="button",un="bs.button",pn=`.${un}`,Rn=".data-api",hn="active",vb='[data-bs-toggle="button"]',xn=`click${pn}${Rn}`,Xc=class c extends tt{static get NAME(){return Wn}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(hn))}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);i==="toggle"&&t[i]()})}};B.on(document,xn,vb,c=>{c.preventDefault();let i=c.target.closest(vb);Xc.getOrCreateInstance(i).toggle()});nt(Xc);var Vn="swipe",Fi=".bs.swipe",Qn=`touchstart${Fi}`,yn=`touchmove${Fi}`,An=`touchend${Fi}`,fn=`pointerdown${Fi}`,Un=`pointerup${Fi}`,Yn="touch",vn="pen",On="pointer-event",Ln=40,Jn={endCallback:null,leftCallback:null,rightCallback:null},Nn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Gc=class c extends Et{constructor(i,t){super(),this._element=i,!(!i||!c.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Jn}static get DefaultType(){return Nn}static get NAME(){return Vn}dispose(){B.off(this._element,Fi)}_start(i){if(!this._supportPointerEvents){this._deltaX=i.touches[0].clientX;return}this._eventIsPointerPenTouch(i)&&(this._deltaX=i.clientX)}_end(i){this._eventIsPointerPenTouch(i)&&(this._deltaX=i.clientX-this._deltaX),this._handleSwipe(),q(this._config.endCallback)}_move(i){this._deltaX=i.touches&&i.touches.length>1?0:i.touches[0].clientX-this._deltaX}_handleSwipe(){let i=Math.abs(this._deltaX);if(i<=Ln)return;let t=i/this._deltaX;this._deltaX=0,t&&q(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(B.on(this._element,fn,i=>this._start(i)),B.on(this._element,Un,i=>this._end(i)),this._element.classList.add(On)):(B.on(this._element,Qn,i=>this._start(i)),B.on(this._element,yn,i=>this._move(i)),B.on(this._element,An,i=>this._end(i)))}_eventIsPointerPenTouch(i){return this._supportPointerEvents&&(i.pointerType===vn||i.pointerType===Yn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},wn="carousel",kn="bs.carousel",At=`.${kn}`,Fo=".data-api",zn="ArrowLeft",Hn="ArrowRight",jn=500,vi="next",ri="prev",si="left",sc="right",Sn=`slide${At}`,le=`slid${At}`,Tn=`keydown${At}`,Dn=`mouseenter${At}`,En=`mouseleave${At}`,Mn=`dragstart${At}`,Kn=`load${At}${Fo}`,_n=`click${At}${Fo}`,Co="carousel",lc="active",Pn="slide",$n="carousel-item-end",qn="carousel-item-start",ta="carousel-item-next",ia="carousel-item-prev",Bo=".active",Wo=".carousel-item",ca=Bo+Wo,ea=".carousel-item img",ba=".carousel-indicators",oa="[data-bs-slide], [data-bs-slide-to]",la='[data-bs-ride="carousel"]',na={[zn]:sc,[Hn]:si},aa={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},da={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Li=class c extends tt{constructor(i,t){super(i,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=y.findOne(ba,this._element),this._addEventListeners(),this._config.ride===Co&&this.cycle()}static get Default(){return aa}static get DefaultType(){return da}static get NAME(){return wn}next(){this._slide(vi)}nextWhenVisible(){!document.hidden&&Gi(this._element)&&this.next()}prev(){this._slide(ri)}pause(){this._isSliding&&lo(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){B.one(this._element,le,()=>this.cycle());return}this.cycle()}}to(i){let t=this._getItems();if(i>t.length-1||i<0)return;if(this._isSliding){B.one(this._element,le,()=>this.to(i));return}let e=this._getItemIndex(this._getActive());if(e===i)return;let b=i>e?vi:ri;this._slide(b,t[i])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(i){return i.defaultInterval=i.interval,i}_addEventListeners(){this._config.keyboard&&B.on(this._element,Tn,i=>this._keydown(i)),this._config.pause==="hover"&&(B.on(this._element,Dn,()=>this.pause()),B.on(this._element,En,()=>this._maybeEnableCycle())),this._config.touch&&Gc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of y.find(ea,this._element))B.on(e,Mn,b=>b.preventDefault());let t={leftCallback:()=>this._slide(this._directionToOrder(si)),rightCallback:()=>this._slide(this._directionToOrder(sc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),jn+this._config.interval))}};this._swipeHelper=new Gc(this._element,t)}_keydown(i){if(/input|textarea/i.test(i.target.tagName))return;let t=na[i.key];t&&(i.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(i){return this._getItems().indexOf(i)}_setActiveIndicatorElement(i){if(!this._indicatorsElement)return;let t=y.findOne(Bo,this._indicatorsElement);t.classList.remove(lc),t.removeAttribute("aria-current");let e=y.findOne(`[data-bs-slide-to="${i}"]`,this._indicatorsElement);e&&(e.classList.add(lc),e.setAttribute("aria-current","true"))}_updateInterval(){let i=this._activeElement||this._getActive();if(!i)return;let t=Number.parseInt(i.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(i,t=null){if(this._isSliding)return;let e=this._getActive(),b=i===vi,o=t||We(this._getItems(),e,b,this._config.wrap);if(o===e)return;let l=this._getItemIndex(o),n=I=>B.trigger(this._element,I,{relatedTarget:o,direction:this._orderToDirection(i),from:this._getItemIndex(e),to:l});if(n(Sn).defaultPrevented||!e||!o)return;let r=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=o;let d=b?qn:$n,m=b?ta:ia;o.classList.add(m),wi(o),e.classList.add(d),o.classList.add(d);let C=()=>{o.classList.remove(d,m),o.classList.add(lc),e.classList.remove(lc,m,d),this._isSliding=!1,n(le)};this._queueCallback(C,e,this._isAnimated()),r&&this.cycle()}_isAnimated(){return this._element.classList.contains(Pn)}_getActive(){return y.findOne(ca,this._element)}_getItems(){return y.find(Wo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(i){return ot()?i===si?ri:vi:i===si?vi:ri}_orderToDirection(i){return ot()?i===ri?si:sc:i===ri?sc:si}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="number"){t.to(i);return}if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i]()}})}};B.on(document,_n,oa,function(c){let i=y.getElementFromSelector(this);if(!i||!i.classList.contains(Co))return;c.preventDefault();let t=Li.getOrCreateInstance(i),e=this.getAttribute("data-bs-slide-to");if(e){t.to(e),t._maybeEnableCycle();return}if(Bt.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});B.on(window,Kn,()=>{let c=y.find(la);for(let i of c)Li.getOrCreateInstance(i)});nt(Li);var ra="collapse",Ia="bs.collapse",ki=`.${Ia}`,sa=".data-api",ga=`show${ki}`,ma=`shown${ki}`,Za=`hide${ki}`,Xa=`hidden${ki}`,Ga=`click${ki}${sa}`,ne="show",mi="collapse",nc="collapsing",Fa="collapsed",Ca=`:scope .${mi} .${mi}`,Ba="collapse-horizontal",Wa="width",ua="height",pa=".collapse.show, .collapse.collapsing",Fe='[data-bs-toggle="collapse"]',Ra={parent:null,toggle:!0},ha={parent:"(null|element)",toggle:"boolean"},Fc=class c extends tt{constructor(i,t){super(i,t),this._isTransitioning=!1,this._triggerArray=[];let e=y.find(Fe);for(let b of e){let o=y.getSelectorFromElement(b),l=y.find(o).filter(n=>n===this._element);o!==null&&l.length&&this._triggerArray.push(b)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ra}static get DefaultType(){return ha}static get NAME(){return ra}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let i=[];if(this._config.parent&&(i=this._getFirstLevelChildren(pa).filter(n=>n!==this._element).map(n=>c.getOrCreateInstance(n,{toggle:!1}))),i.length&&i[0]._isTransitioning||B.trigger(this._element,ga).defaultPrevented)return;for(let n of i)n.hide();let e=this._getDimension();this._element.classList.remove(mi),this._element.classList.add(nc),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let b=()=>{this._isTransitioning=!1,this._element.classList.remove(nc),this._element.classList.add(mi,ne),this._element.style[e]="",B.trigger(this._element,ma)},l=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(b,this._element,!0),this._element.style[e]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||B.trigger(this._element,Za).defaultPrevented)return;let t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,wi(this._element),this._element.classList.add(nc),this._element.classList.remove(mi,ne);for(let b of this._triggerArray){let o=y.getElementFromSelector(b);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([b],!1)}this._isTransitioning=!0;let e=()=>{this._isTransitioning=!1,this._element.classList.remove(nc),this._element.classList.add(mi),B.trigger(this._element,Xa)};this._element.style[t]="",this._queueCallback(e,this._element,!0)}_isShown(i=this._element){return i.classList.contains(ne)}_configAfterMerge(i){return i.toggle=!!i.toggle,i.parent=xt(i.parent),i}_getDimension(){return this._element.classList.contains(Ba)?Wa:ua}_initializeChildren(){if(!this._config.parent)return;let i=this._getFirstLevelChildren(Fe);for(let t of i){let e=y.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(i){let t=y.find(Ca,this._config.parent);return y.find(i,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(i,t){if(i.length)for(let e of i)e.classList.toggle(Fa,!t),e.setAttribute("aria-expanded",t)}static jQueryInterface(i){let t={};return typeof i=="string"&&/show|hide/.test(i)&&(t.toggle=!1),this.each(function(){let e=c.getOrCreateInstance(this,t);if(typeof i=="string"){if(typeof e[i]>"u")throw new TypeError(`No method named "${i}"`);e[i]()}})}};B.on(document,Ga,Fe,function(c){(c.target.tagName==="A"||c.delegateTarget&&c.delegateTarget.tagName==="A")&&c.preventDefault();for(let i of y.getMultipleElementsFromSelector(this))Fc.getOrCreateInstance(i,{toggle:!1}).toggle()});nt(Fc);var Ob="dropdown",xa="bs.dropdown",Mt=`.${xa}`,pe=".data-api",Va="Escape",Lb="Tab",Qa="ArrowUp",Jb="ArrowDown",ya=2,Aa=`hide${Mt}`,fa=`hidden${Mt}`,Ua=`show${Mt}`,Ya=`shown${Mt}`,uo=`click${Mt}${pe}`,po=`keydown${Mt}${pe}`,va=`keyup${Mt}${pe}`,gi="show",Oa="dropup",La="dropend",Ja="dropstart",Na="dropup-center",wa="dropdown-center",Tt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ka=`${Tt}.${gi}`,gc=".dropdown-menu",za=".navbar",Ha=".navbar-nav",ja=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Sa=ot()?"top-end":"top-start",Ta=ot()?"top-start":"top-end",Da=ot()?"bottom-end":"bottom-start",Ea=ot()?"bottom-start":"bottom-end",Ma=ot()?"left-start":"right-start",Ka=ot()?"right-start":"left-start",_a="top",Pa="bottom",$a={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},qa={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Qt=class c extends tt{constructor(i,t){super(i,t),this._popper=null,this._parent=this._element.parentNode,this._menu=y.next(this._element,gc)[0]||y.prev(this._element,gc)[0]||y.findOne(gc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $a}static get DefaultType(){return qa}static get NAME(){return Ob}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Vt(this._element)||this._isShown())return;let i={relatedTarget:this._element};if(!B.trigger(this._element,Ua,i).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ha))for(let e of[].concat(...document.body.children))B.on(e,"mouseover",mc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(gi),this._element.classList.add(gi),B.trigger(this._element,Ya,i)}}hide(){if(Vt(this._element)||!this._isShown())return;let i={relatedTarget:this._element};this._completeHide(i)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(i){if(!B.trigger(this._element,Aa,i).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))B.off(e,"mouseover",mc);this._popper&&this._popper.destroy(),this._menu.classList.remove(gi),this._element.classList.remove(gi),this._element.setAttribute("aria-expanded","false"),Bt.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,fa,i)}}_getConfig(i){if(i=super._getConfig(i),typeof i.reference=="object"&&!Ct(i.reference)&&typeof i.reference.getBoundingClientRect!="function")throw new TypeError(`${Ob.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return i}_createPopper(){if(typeof oc>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let i=this._element;this._config.reference==="parent"?i=this._parent:Ct(this._config.reference)?i=xt(this._config.reference):typeof this._config.reference=="object"&&(i=this._config.reference);let t=this._getPopperConfig();this._popper=Yi(i,this._menu,t)}_isShown(){return this._menu.classList.contains(gi)}_getPlacement(){let i=this._parent;if(i.classList.contains(La))return Ma;if(i.classList.contains(Ja))return Ka;if(i.classList.contains(Na))return _a;if(i.classList.contains(wa))return Pa;let t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return i.classList.contains(Oa)?t?Ta:Sa:t?Ea:Da}_detectNavbar(){return this._element.closest(za)!==null}_getOffset(){let{offset:i}=this._config;return typeof i=="string"?i.split(",").map(t=>Number.parseInt(t,10)):typeof i=="function"?t=>i(t,this._element):i}_getPopperConfig(){let i={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bt.setDataAttribute(this._menu,"popper","static"),i.modifiers=[{name:"applyStyles",enabled:!1}]),{...i,...q(this._config.popperConfig,[i])}}_selectMenuItem({key:i,target:t}){let e=y.find(ja,this._menu).filter(b=>Gi(b));e.length&&We(e,t,i===Jb,!e.includes(t)).focus()}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i]()}})}static clearMenus(i){if(i.button===ya||i.type==="keyup"&&i.key!==Lb)return;let t=y.find(ka);for(let e of t){let b=c.getInstance(e);if(!b||b._config.autoClose===!1)continue;let o=i.composedPath(),l=o.includes(b._menu);if(o.includes(b._element)||b._config.autoClose==="inside"&&!l||b._config.autoClose==="outside"&&l||b._menu.contains(i.target)&&(i.type==="keyup"&&i.key===Lb||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;let n={relatedTarget:b._element};i.type==="click"&&(n.clickEvent=i),b._completeHide(n)}}static dataApiKeydownHandler(i){let t=/input|textarea/i.test(i.target.tagName),e=i.key===Va,b=[Qa,Jb].includes(i.key);if(!b&&!e||t&&!e)return;i.preventDefault();let o=this.matches(Tt)?this:y.prev(this,Tt)[0]||y.next(this,Tt)[0]||y.findOne(Tt,i.delegateTarget.parentNode),l=c.getOrCreateInstance(o);if(b){i.stopPropagation(),l.show(),l._selectMenuItem(i);return}l._isShown()&&(i.stopPropagation(),l.hide(),o.focus())}};B.on(document,po,Tt,Qt.dataApiKeydownHandler);B.on(document,po,gc,Qt.dataApiKeydownHandler);B.on(document,uo,Qt.clearMenus);B.on(document,va,Qt.clearMenus);B.on(document,uo,Tt,function(c){c.preventDefault(),Qt.getOrCreateInstance(this).toggle()});nt(Qt);var Ro="backdrop",td="fade",Nb="show",wb=`mousedown.bs.${Ro}`,id={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},cd={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Cc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isAppended=!1,this._element=null}static get Default(){return id}static get DefaultType(){return cd}static get NAME(){return Ro}show(i){if(!this._config.isVisible){q(i);return}this._append();let t=this._getElement();this._config.isAnimated&&wi(t),t.classList.add(Nb),this._emulateAnimation(()=>{q(i)})}hide(i){if(!this._config.isVisible){q(i);return}this._getElement().classList.remove(Nb),this._emulateAnimation(()=>{this.dispose(),q(i)})}dispose(){this._isAppended&&(B.off(this._element,wb),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let i=document.createElement("div");i.className=this._config.className,this._config.isAnimated&&i.classList.add(td),this._element=i}return this._element}_configAfterMerge(i){return i.rootElement=xt(i.rootElement),i}_append(){if(this._isAppended)return;let i=this._getElement();this._config.rootElement.append(i),B.on(i,wb,()=>{q(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(i){ro(i,this._getElement(),this._config.isAnimated)}},ed="focustrap",bd="bs.focustrap",Bc=`.${bd}`,od=`focusin${Bc}`,ld=`keydown.tab${Bc}`,nd="Tab",ad="forward",kb="backward",dd={autofocus:!0,trapElement:null},rd={autofocus:"boolean",trapElement:"element"},Wc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return dd}static get DefaultType(){return rd}static get NAME(){return ed}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),B.off(document,Bc),B.on(document,od,i=>this._handleFocusin(i)),B.on(document,ld,i=>this._handleKeydown(i)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,B.off(document,Bc))}_handleFocusin(i){let{trapElement:t}=this._config;if(i.target===document||i.target===t||t.contains(i.target))return;let e=y.focusableChildren(t);e.length===0?t.focus():this._lastTabNavDirection===kb?e[e.length-1].focus():e[0].focus()}_handleKeydown(i){i.key===nd&&(this._lastTabNavDirection=i.shiftKey?kb:ad)}},zb=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Hb=".sticky-top",ac="padding-right",jb="margin-right",Ji=class{constructor(){this._element=document.body}getWidth(){let i=document.documentElement.clientWidth;return Math.abs(window.innerWidth-i)}hide(){let i=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ac,t=>t+i),this._setElementAttributes(zb,ac,t=>t+i),this._setElementAttributes(Hb,jb,t=>t-i)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ac),this._resetElementAttributes(zb,ac),this._resetElementAttributes(Hb,jb)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(i,t,e){let b=this.getWidth(),o=l=>{if(l!==this._element&&window.innerWidth>l.clientWidth+b)return;this._saveInitialAttribute(l,t);let n=window.getComputedStyle(l).getPropertyValue(t);l.style.setProperty(t,`${e(Number.parseFloat(n))}px`)};this._applyManipulationCallback(i,o)}_saveInitialAttribute(i,t){let e=i.style.getPropertyValue(t);e&&Bt.setDataAttribute(i,t,e)}_resetElementAttributes(i,t){let e=b=>{let o=Bt.getDataAttribute(b,t);if(o===null){b.style.removeProperty(t);return}Bt.removeDataAttribute(b,t),b.style.setProperty(t,o)};this._applyManipulationCallback(i,e)}_applyManipulationCallback(i,t){if(Ct(i)){t(i);return}for(let e of y.find(i,this._element))t(e)}},Id="modal",sd="bs.modal",lt=`.${sd}`,gd=".data-api",md="Escape",Zd=`hide${lt}`,Xd=`hidePrevented${lt}`,ho=`hidden${lt}`,xo=`show${lt}`,Gd=`shown${lt}`,Fd=`resize${lt}`,Cd=`click.dismiss${lt}`,Bd=`mousedown.dismiss${lt}`,Wd=`keydown.dismiss${lt}`,ud=`click${lt}${gd}`,Sb="modal-open",pd="fade",Tb="show",ae="modal-static",Rd=".modal.show",hd=".modal-dialog",xd=".modal-body",Vd='[data-bs-toggle="modal"]',Qd={backdrop:!0,focus:!0,keyboard:!0},yd={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Zi=class c extends tt{constructor(i,t){super(i,t),this._dialog=y.findOne(hd,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ji,this._addEventListeners()}static get Default(){return Qd}static get DefaultType(){return yd}static get NAME(){return Id}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){this._isShown||this._isTransitioning||B.trigger(this._element,xo,{relatedTarget:i}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Sb),this._adjustDialog(),this._backdrop.show(()=>this._showElement(i)))}hide(){!this._isShown||this._isTransitioning||B.trigger(this._element,Zd).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Tb),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){B.off(window,lt),B.off(this._dialog,lt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Cc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Wc({trapElement:this._element})}_showElement(i){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;let t=y.findOne(xd,this._dialog);t&&(t.scrollTop=0),wi(this._element),this._element.classList.add(Tb);let e=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,B.trigger(this._element,Gd,{relatedTarget:i})};this._queueCallback(e,this._dialog,this._isAnimated())}_addEventListeners(){B.on(this._element,Wd,i=>{if(i.key===md){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),B.on(window,Fd,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),B.on(this._element,Bd,i=>{B.one(this._element,Cd,t=>{if(!(this._element!==i.target||this._element!==t.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(Sb),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,ho)})}_isAnimated(){return this._element.classList.contains(pd)}_triggerBackdropTransition(){if(B.trigger(this._element,Xd).defaultPrevented)return;let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;e==="hidden"||this._element.classList.contains(ae)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(ae),this._queueCallback(()=>{this._element.classList.remove(ae),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let i=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),e=t>0;if(e&&!i){let b=ot()?"paddingLeft":"paddingRight";this._element.style[b]=`${t}px`}if(!e&&i){let b=ot()?"paddingRight":"paddingLeft";this._element.style[b]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(i,t){return this.each(function(){let e=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof e[i]>"u")throw new TypeError(`No method named "${i}"`);e[i](t)}})}};B.on(document,ud,Vd,function(c){let i=y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&c.preventDefault(),B.one(i,xo,b=>{b.defaultPrevented||B.one(i,ho,()=>{Gi(this)&&this.focus()})});let t=y.findOne(Rd);t&&Zi.getInstance(t).hide(),Zi.getOrCreateInstance(i).toggle(this)});Rc(Zi);nt(Zi);var Ad="offcanvas",fd="bs.offcanvas",Wt=`.${fd}`,Vo=".data-api",Ud=`load${Wt}${Vo}`,Yd="Escape",Db="show",Eb="showing",Mb="hiding",vd="offcanvas-backdrop",Qo=".offcanvas.show",Od=`show${Wt}`,Ld=`shown${Wt}`,Jd=`hide${Wt}`,Kb=`hidePrevented${Wt}`,yo=`hidden${Wt}`,Nd=`resize${Wt}`,wd=`click${Wt}${Vo}`,kd=`keydown.dismiss${Wt}`,zd='[data-bs-toggle="offcanvas"]',Hd={backdrop:!0,keyboard:!0,scroll:!1},jd={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},yt=class c extends tt{constructor(i,t){super(i,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hd}static get DefaultType(){return jd}static get NAME(){return Ad}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){if(this._isShown||B.trigger(this._element,Od,{relatedTarget:i}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ji().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Eb);let e=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Db),this._element.classList.remove(Eb),B.trigger(this._element,Ld,{relatedTarget:i})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown||B.trigger(this._element,Jd).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Mb),this._backdrop.hide();let t=()=>{this._element.classList.remove(Db,Mb),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ji().reset(),B.trigger(this._element,yo)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let i=()=>{if(this._config.backdrop==="static"){B.trigger(this._element,Kb);return}this.hide()},t=!!this._config.backdrop;return new Cc({className:vd,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?i:null})}_initializeFocusTrap(){return new Wc({trapElement:this._element})}_addEventListeners(){B.on(this._element,kd,i=>{if(i.key===Yd){if(this._config.keyboard){this.hide();return}B.trigger(this._element,Kb)}})}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i](this)}})}};B.on(document,wd,zd,function(c){let i=y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&c.preventDefault(),Vt(this))return;B.one(i,yo,()=>{Gi(this)&&this.focus()});let t=y.findOne(Qo);t&&t!==i&&yt.getInstance(t).hide(),yt.getOrCreateInstance(i).toggle(this)});B.on(window,Ud,()=>{for(let c of y.find(Qo))yt.getOrCreateInstance(c).show()});B.on(window,Nd,()=>{for(let c of y.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(c).position!=="fixed"&&yt.getOrCreateInstance(c).hide()});Rc(yt);nt(yt);var Sd=/^aria-[\w-]*$/i,Ao={"*":["class","dir","id","lang","role",Sd],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Td=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ed=(c,i)=>{let t=c.nodeName.toLowerCase();return i.includes(t)?Td.has(t)?!!Dd.test(c.nodeValue):!0:i.filter(e=>e instanceof RegExp).some(e=>e.test(t))};function Md(c,i,t){if(!c.length)return c;if(t&&typeof t=="function")return t(c);let b=new window.DOMParser().parseFromString(c,"text/html"),o=[].concat(...b.body.querySelectorAll("*"));for(let l of o){let n=l.nodeName.toLowerCase();if(!Object.keys(i).includes(n)){l.remove();continue}let a=[].concat(...l.attributes),r=[].concat(i["*"]||[],i[n]||[]);for(let d of a)Ed(d,r)||l.removeAttribute(d.nodeName)}return b.body.innerHTML}var Kd="TemplateFactory",_d={allowList:Ao,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:""},Pd={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$d={entry:"(string|element|function|null)",selector:"(string|element)"},Ce=class extends Et{constructor(i){super(),this._config=this._getConfig(i)}static get Default(){return _d}static get DefaultType(){return Pd}static get NAME(){return Kd}getContent(){return Object.values(this._config.content).map(i=>this._resolvePossibleFunction(i)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(i){return this._checkContent(i),this._config.content={...this._config.content,...i},this}toHtml(){let i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for(let[b,o]of Object.entries(this._config.content))this._setContent(i,o,b);let t=i.children[0],e=this._resolvePossibleFunction(this._config.extraClass);return e&&t.classList.add(...e.split(" ")),t}_typeCheckConfig(i){super._typeCheckConfig(i),this._checkContent(i.content)}_checkContent(i){for(let[t,e]of Object.entries(i))super._typeCheckConfig({selector:t,entry:e},$d)}_setContent(i,t,e){let b=y.findOne(e,i);if(b){if(t=this._resolvePossibleFunction(t),!t){b.remove();return}if(Ct(t)){this._putElementInTemplate(xt(t),b);return}if(this._config.html){b.innerHTML=this._maybeSanitize(t);return}b.textContent=t}}_maybeSanitize(i){return this._config.sanitize?Md(i,this._config.allowList,this._config.sanitizeFn):i}_resolvePossibleFunction(i){return q(i,[this])}_putElementInTemplate(i,t){if(this._config.html){t.innerHTML="",t.append(i);return}t.textContent=i.textContent}},qd="tooltip",tr=new Set(["sanitize","allowList","sanitizeFn"]),de="fade",ir="modal",dc="show",cr=".tooltip-inner",_b=`.${ir}`,Pb="hide.bs.modal",Oi="hover",re="focus",er="click",br="manual",or="hide",lr="hidden",nr="show",ar="shown",dr="inserted",rr="click",Ir="focusin",sr="focusout",gr="mouseenter",mr="mouseleave",Zr={AUTO:"auto",TOP:"top",RIGHT:ot()?"left":"right",BOTTOM:"bottom",LEFT:ot()?"right":"left"},Xr={allowList:Ao,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"},Gr={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"},Xi=class c extends tt{constructor(i,t){if(typeof oc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(i,t),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 Xr}static get DefaultType(){return Gr}static get NAME(){return qd}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),B.off(this._element.closest(_b),Pb,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;let i=B.trigger(this._element,this.constructor.eventName(nr)),e=(no(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(i.defaultPrevented||!e)return;this._disposePopper();let b=this._getTipElement();this._element.setAttribute("aria-describedby",b.getAttribute("id"));let{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(b),B.trigger(this._element,this.constructor.eventName(dr))),this._popper=this._createPopper(b),b.classList.add(dc),"ontouchstart"in document.documentElement)for(let n of[].concat(...document.body.children))B.on(n,"mouseover",mc);let l=()=>{B.trigger(this._element,this.constructor.eventName(ar)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||B.trigger(this._element,this.constructor.eventName(or)).defaultPrevented)return;if(this._getTipElement().classList.remove(dc),"ontouchstart"in document.documentElement)for(let b of[].concat(...document.body.children))B.off(b,"mouseover",mc);this._activeTrigger[er]=!1,this._activeTrigger[re]=!1,this._activeTrigger[Oi]=!1,this._isHovered=null;let e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.eventName(lr)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(i){let t=this._getTemplateFactory(i).toHtml();if(!t)return null;t.classList.remove(de,dc),t.classList.add(`bs-${this.constructor.NAME}-auto`);let e=bn(this.constructor.NAME).toString();return t.setAttribute("id",e),this._isAnimated()&&t.classList.add(de),t}setContent(i){this._newContent=i,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(i){return this._templateFactory?this._templateFactory.changeContent(i):this._templateFactory=new Ce({...this._config,content:i,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[cr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(i){return this.constructor.getOrCreateInstance(i.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(de)}_isShown(){return this.tip&&this.tip.classList.contains(dc)}_createPopper(i){let t=q(this._config.placement,[this,i,this._element]),e=Zr[t.toUpperCase()];return Yi(this._element,i,this._getPopperConfig(e))}_getOffset(){let{offset:i}=this._config;return typeof i=="string"?i.split(",").map(t=>Number.parseInt(t,10)):typeof i=="function"?t=>i(t,this._element):i}_resolvePossibleFunction(i){return q(i,[this._element])}_getPopperConfig(i){let t={placement:i,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:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...q(this._config.popperConfig,[t])}}_setListeners(){let i=this._config.trigger.split(" ");for(let t of i)if(t==="click")B.on(this._element,this.constructor.eventName(rr),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if(t!==br){let e=t===Oi?this.constructor.eventName(gr):this.constructor.eventName(Ir),b=t===Oi?this.constructor.eventName(mr):this.constructor.eventName(sr);B.on(this._element,e,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusin"?re:Oi]=!0,l._enter()}),B.on(this._element,b,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusout"?re:Oi]=l._element.contains(o.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(_b),Pb,this._hideModalHandler)}_fixTitle(){let i=this._element.getAttribute("title");i&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",i),this._element.setAttribute("data-bs-original-title",i),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(i,t){clearTimeout(this._timeout),this._timeout=setTimeout(i,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(i){let t=Bt.getDataAttributes(this._element);for(let e of Object.keys(t))tr.has(e)&&delete t[e];return i={...t,...typeof i=="object"&&i?i:{}},i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(i){return i.container=i.container===!1?document.body:xt(i.container),typeof i.delay=="number"&&(i.delay={show:i.delay,hide:i.delay}),typeof i.title=="number"&&(i.title=i.title.toString()),typeof i.content=="number"&&(i.content=i.content.toString()),i}_getDelegateConfig(){let i={};for(let[t,e]of Object.entries(this._config))this.constructor.Default[t]!==e&&(i[t]=e);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i]()}})}};nt(Xi);var Fr="popover",Cr=".popover-header",Br=".popover-body",Wr={...Xi.Default,content:"",offset:[0,8],placement:"right",template:'
',trigger:"click"},ur={...Xi.DefaultType,content:"(null|string|element|function)"},Be=class c extends Xi{static get Default(){return Wr}static get DefaultType(){return ur}static get NAME(){return Fr}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Cr]:this._getTitle(),[Br]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i]()}})}};nt(Be);var pr="scrollspy",Rr="bs.scrollspy",Re=`.${Rr}`,hr=".data-api",xr=`activate${Re}`,$b=`click${Re}`,Vr=`load${Re}${hr}`,Qr="dropdown-item",Ii="active",yr='[data-bs-spy="scroll"]',Ie="[href]",Ar=".nav, .list-group",qb=".nav-link",fr=".nav-item",Ur=".list-group-item",Yr=`${qb}, ${fr} > ${qb}, ${Ur}`,vr=".dropdown",Or=".dropdown-toggle",Lr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Jr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},uc=class c extends tt{constructor(i,t){super(i,t),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 Lr}static get DefaultType(){return Jr}static get NAME(){return pr}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let i of this._observableSections.values())this._observer.observe(i)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(i){return i.target=xt(i.target)||document.body,i.rootMargin=i.offset?`${i.offset}px 0px -30%`:i.rootMargin,typeof i.threshold=="string"&&(i.threshold=i.threshold.split(",").map(t=>Number.parseFloat(t))),i}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(B.off(this._config.target,$b),B.on(this._config.target,$b,Ie,i=>{let t=this._observableSections.get(i.target.hash);if(t){i.preventDefault();let e=this._rootElement||window,b=t.offsetTop-this._element.offsetTop;if(e.scrollTo){e.scrollTo({top:b,behavior:"smooth"});return}e.scrollTop=b}}))}_getNewObserver(){let i={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),i)}_observerCallback(i){let t=l=>this._targetLinks.get(`#${l.target.id}`),e=l=>{this._previousScrollData.visibleEntryTop=l.target.offsetTop,this._process(t(l))},b=(this._rootElement||document.documentElement).scrollTop,o=b>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=b;for(let l of i){if(!l.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(l));continue}let n=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&n){if(e(l),!b)return;continue}!o&&!n&&e(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let i=y.find(Ie,this._config.target);for(let t of i){if(!t.hash||Vt(t))continue;let e=y.findOne(decodeURI(t.hash),this._element);Gi(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(i){this._activeTarget!==i&&(this._clearActiveClass(this._config.target),this._activeTarget=i,i.classList.add(Ii),this._activateParents(i),B.trigger(this._element,xr,{relatedTarget:i}))}_activateParents(i){if(i.classList.contains(Qr)){y.findOne(Or,i.closest(vr)).classList.add(Ii);return}for(let t of y.parents(i,Ar))for(let e of y.prev(t,Yr))e.classList.add(Ii)}_clearActiveClass(i){i.classList.remove(Ii);let t=y.find(`${Ie}.${Ii}`,i);for(let e of t)e.classList.remove(Ii)}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i]()}})}};B.on(window,Vr,()=>{for(let c of y.find(yr))uc.getOrCreateInstance(c)});nt(uc);var Nr="tab",wr="bs.tab",Kt=`.${wr}`,kr=`hide${Kt}`,zr=`hidden${Kt}`,Hr=`show${Kt}`,jr=`shown${Kt}`,Sr=`click${Kt}`,Tr=`keydown${Kt}`,Dr=`load${Kt}`,Er="ArrowLeft",to="ArrowRight",Mr="ArrowUp",io="ArrowDown",se="Home",co="End",Dt="active",eo="fade",ge="show",Kr="dropdown",fo=".dropdown-toggle",_r=".dropdown-menu",me=`:not(${fo})`,Pr='.list-group, .nav, [role="tablist"]',$r=".nav-item, .list-group-item",qr=`.nav-link${me}, .list-group-item${me}, [role="tab"]${me}`,Uo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ze=`${qr}, ${Uo}`,tI=`.${Dt}[data-bs-toggle="tab"], .${Dt}[data-bs-toggle="pill"], .${Dt}[data-bs-toggle="list"]`,Ni=class c extends tt{constructor(i){super(i),this._parent=this._element.closest(Pr),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),B.on(this._element,Tr,t=>this._keydown(t)))}static get NAME(){return Nr}show(){let i=this._element;if(this._elemIsActive(i))return;let t=this._getActiveElem(),e=t?B.trigger(t,kr,{relatedTarget:i}):null;B.trigger(i,Hr,{relatedTarget:t}).defaultPrevented||e&&e.defaultPrevented||(this._deactivate(t,i),this._activate(i,t))}_activate(i,t){if(!i)return;i.classList.add(Dt),this._activate(y.getElementFromSelector(i));let e=()=>{if(i.getAttribute("role")!=="tab"){i.classList.add(ge);return}i.removeAttribute("tabindex"),i.setAttribute("aria-selected",!0),this._toggleDropDown(i,!0),B.trigger(i,jr,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(eo))}_deactivate(i,t){if(!i)return;i.classList.remove(Dt),i.blur(),this._deactivate(y.getElementFromSelector(i));let e=()=>{if(i.getAttribute("role")!=="tab"){i.classList.remove(ge);return}i.setAttribute("aria-selected",!1),i.setAttribute("tabindex","-1"),this._toggleDropDown(i,!1),B.trigger(i,zr,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(eo))}_keydown(i){if(![Er,to,Mr,io,se,co].includes(i.key))return;i.stopPropagation(),i.preventDefault();let t=this._getChildren().filter(b=>!Vt(b)),e;if([se,co].includes(i.key))e=t[i.key===se?0:t.length-1];else{let b=[to,io].includes(i.key);e=We(t,i.target,b,!0)}e&&(e.focus({preventScroll:!0}),c.getOrCreateInstance(e).show())}_getChildren(){return y.find(Ze,this._parent)}_getActiveElem(){return this._getChildren().find(i=>this._elemIsActive(i))||null}_setInitialAttributes(i,t){this._setAttributeIfNotExists(i,"role","tablist");for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(i){i=this._getInnerElement(i);let t=this._elemIsActive(i),e=this._getOuterElement(i);i.setAttribute("aria-selected",t),e!==i&&this._setAttributeIfNotExists(e,"role","presentation"),t||i.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(i,"role","tab"),this._setInitialAttributesOnTargetPanel(i)}_setInitialAttributesOnTargetPanel(i){let t=y.getElementFromSelector(i);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),i.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${i.id}`))}_toggleDropDown(i,t){let e=this._getOuterElement(i);if(!e.classList.contains(Kr))return;let b=(o,l)=>{let n=y.findOne(o,e);n&&n.classList.toggle(l,t)};b(fo,Dt),b(_r,ge),e.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(i,t,e){i.hasAttribute(t)||i.setAttribute(t,e)}_elemIsActive(i){return i.classList.contains(Dt)}_getInnerElement(i){return i.matches(Ze)?i:y.findOne(Ze,i)}_getOuterElement(i){return i.closest($r)||i}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i]()}})}};B.on(document,Sr,Uo,function(c){["A","AREA"].includes(this.tagName)&&c.preventDefault(),!Vt(this)&&Ni.getOrCreateInstance(this).show()});B.on(window,Dr,()=>{for(let c of y.find(tI))Ni.getOrCreateInstance(c)});nt(Ni);var iI="toast",cI="bs.toast",ft=`.${cI}`,eI=`mouseover${ft}`,bI=`mouseout${ft}`,oI=`focusin${ft}`,lI=`focusout${ft}`,nI=`hide${ft}`,aI=`hidden${ft}`,dI=`show${ft}`,rI=`shown${ft}`,II="fade",bo="hide",rc="show",Ic="showing",sI={animation:"boolean",autohide:"boolean",delay:"number"},gI={animation:!0,autohide:!0,delay:5e3},pc=class c extends tt{constructor(i,t){super(i,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return gI}static get DefaultType(){return sI}static get NAME(){return iI}show(){if(B.trigger(this._element,dI).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(II);let t=()=>{this._element.classList.remove(Ic),B.trigger(this._element,rI),this._maybeScheduleHide()};this._element.classList.remove(bo),wi(this._element),this._element.classList.add(rc,Ic),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||B.trigger(this._element,nI).defaultPrevented)return;let t=()=>{this._element.classList.add(bo),this._element.classList.remove(Ic,rc),B.trigger(this._element,aI)};this._element.classList.add(Ic),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(rc),super.dispose()}isShown(){return this._element.classList.contains(rc)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(i,t){switch(i.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}let e=i.relatedTarget;this._element===e||this._element.contains(e)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,eI,i=>this._onInteraction(i,!0)),B.on(this._element,bI,i=>this._onInteraction(i,!1)),B.on(this._element,oI,i=>this._onInteraction(i,!0)),B.on(this._element,lI,i=>this._onInteraction(i,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i](this)}})}};Rc(pc);nt(pc);var vc=wc(wo());var De=globalThis,xc=De.trustedTypes,ko=xc?xc.createPolicy("lit-html",{createHTML:c=>c}):void 0,Do="$lit$",Ut=`lit$${Math.random().toFixed(9).slice(2)}$`,Eo="?"+Ut,mI=`<${Eo}>`,$t=document,Hi=()=>$t.createComment(""),ji=c=>c===null||typeof c!="object"&&typeof c!="function",Ee=Array.isArray,ZI=c=>Ee(c)||typeof c?.[Symbol.iterator]=="function",ke=`[
-\f\r]`,zi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zo=/-->/g,Ho=/>/g,_t=RegExp(`>|${ke}(?:([^\\s"'>=/]+)(${ke}*=${ke}*(?:[^
-\f\r"'\`<>=]|("|')|))|$)`,"g"),jo=/'/g,So=/"/g,Mo=/^(?:script|style|textarea|title)$/i,Me=c=>(i,...t)=>({_$litType$:c,strings:i,values:t}),f=Me(1),oX=Me(2),lX=Me(3),qt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),To=new WeakMap,Pt=$t.createTreeWalker($t,129);function Ko(c,i){if(!Ee(c)||!c.hasOwnProperty("raw"))throw Error("invalid template strings array");return ko!==void 0?ko.createHTML(i):i}var XI=(c,i)=>{let t=c.length-1,e=[],b,o=i===2?"":i===3?"":"")),e]},Si=class c{constructor({strings:i,_$litType$:t},e){let b;this.parts=[];let o=0,l=0,n=i.length-1,a=this.parts,[r,d]=XI(i,t);if(this.el=c.createElement(r,e),Pt.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(b=Pt.nextNode())!==null&&a.length0){b.textContent=xc?xc.emptyScript:"";for(let I=0;I2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=T}_$AI(i,t=this,e,b){let o=this.strings,l=!1;if(o===void 0)i=Bi(this,i,t,0),l=!ji(i)||i!==this._$AH&&i!==qt,l&&(this._$AH=i);else{let n=i,a,r;for(i=o[0],a=0;a{let e=t?.renderBefore??i,b=e._$litPart$;if(b===void 0){let o=t?.renderBefore??null;e._$litPart$=b=new Ti(i.insertBefore(Hi(),o),o,void 0,t??{})}return b._$AI(c),b};async function It(){return await import("./main.js").then(c=>c.default)}function at(c){return document.querySelector(`meta[name="${c}"]`)?.content}function _(c,i){let t=at(`loc:${c}`)||c;if(i)for(let e in i)t=t.replace(`{${e}}`,i[e]);return t}function Ke(c){if(!c)return[];let i=/([a-z0-9])([A-Z]+[a-z])|([a-zA-Z0-9][.,/<>_])/g,t=[],e=0;for(;;){let b=i.exec(c);if(!b)break;let o=b.index+(b[1]||b[3]).length;t.push(c.slice(e,o)),e=o}return e{i.length>0&&i.push(f``),i.push(f`${t}`)}),f`${i}`}function Vc(c){return c.hostname!==window.location.hostname||c.protocol!==window.location.protocol}function _o(c,i){return t(c)===t(i);function t(e){return e.pathname.replace(/\/index\.html$/gi,"/").replace(/\.html$/gi,"").replace(/\/$/gi,"").toLowerCase()}}async function _e(){if(document.querySelectorAll("pre code").length<=0)return;let{default:i}=await import("./es-4I4X6RME.min.js"),{configureHljs:t}=await It();t?.(i),i.registerLanguage("dax",()=>{let e="[a-zA-Z][a-zA-Z0-9._]*";return{case_insensitive:!0,contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{begin:e,lexemes:e,keywords:{keyword:CI??[]},relevance:0},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],relevance:0},{className:"number",begin:"((\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},{begin:"'",end:"'",illegal:"\\.,;:/\\\\\\*\\|\\?&%\\$!\\+=\\(\\)\\[\\]\\{\\}<>",relevance:0},{begin:"\\[",end:"\\]",illegal:"\\.,;:/\\\\\\*\\|\\?&%\\$!\\+=\\(\\)\\[\\]\\{\\}<>",relevance:0}]}}),document.querySelectorAll("pre code").forEach(e=>{i.highlightElement(e)}),document.querySelectorAll("pre code[highlight-lines]").forEach(e=>{if(e.innerHTML==="")return;let b=e.getAttribute("highlight-lines");if(!b)return;let o=e.innerHTML.split(`
-`),l=b.split(",");for(let n of l){let a=0,r=0,d=n.match(/^(\d+)-(\d+)?$/);if(d)a=+d[1],r=+d[2],(isNaN(r)||r>o.length)&&(r=o.length);else{if(isNaN(Number(n)))continue;a=+n,r=a}a<=0||r<=0||a>r||a>o.length||(o[a-1]=''+o[a-1],o[r-1]=o[r-1]+"")}e.innerHTML=o.join(`
-`)})}var FI=c=>{let i=document.createElement("textarea");i.value=c,document.body.appendChild(i),i.style.display="block",document.documentMode?i.setSelectionRange(0,i.value.length):i.select(),navigator.clipboard.writeText(i.value).then(()=>{document.body.removeChild(i)})};document.querySelectorAll("pre code").forEach(c=>{let i=/lang-(.+?)(\s|$)/.exec(c.className),t=i?i[1].toUpperCase():"";t==="CSHARP"&&(t="C#"),t==="M"&&(t="POWER QUERY");let e=document.createElement("div");e.className="code-header",e.innerHTML=`
- ${t}
-
- `;let b=document.createElement("div");b.className="code-container",c.parentNode.insertBefore(b,c),b.appendChild(c),document.querySelectorAll(".tabGroup").length>0?b.closest('[role="tabpanel"]')&&b.insertBefore(e,b.firstChild):b.parentNode.insertBefore(e,b),e.querySelector("button").addEventListener("click",()=>{FI(c.textContent||"");let l=e.querySelector(".successful-copy-alert");l.classList.remove("is-transparent"),setTimeout(()=>{l.classList.add("is-transparent")},2e3)})});var CI=["ABS","ACOS","ACOSH","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","AND","ASIN","ASINH","ATAN","ATANH","AVERAGE","AVERAGEA","AVERAGEX","BETA.DIST","BETA.INV","BLANK","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CEILING","CHISQ.INV","CHISQ.INV.RT","CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","CODE","COMBIN","COMBINA","CONCATENATE","CONCATENATEX","ABS","ACOS","ACOSH","ADDCOLUMNS","ADDMISSINGITEMS|10","ALL","ALLEXCEPT|10","ALLNOBLANKROW|10","ALLSELECTED|10","AND","ASIN","ASINH","ATAN","ATANH","AVERAGE","AVERAGEA","AVERAGEX","BETA.DIST","BETA.INV","BLANK","CALCULATE","CALCULATETABLE|10","CALENDAR","CALENDARAUTO|10","CEILING","CHISQ.INV","CHISQ.INV.RT","CLOSINGBALANCEMONTH|10","CLOSINGBALANCEQUARTER|10","CLOSINGBALANCEYEAR|10","CODE","COMBIN","COMBINA","CONCATENATE","CONCATENATEX","CONFIDENCE.NORM","CONFIDENCE.T","CONTAINS","COS","COSH","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","CROSSFILTER","CURRENCY","CUSTOMDATA","DATATABLE","DATE","DATEADD","DATEDIFF","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","DATEVALUE","DAY","DEGREES","DISTINCT","DISTINCTCOUNT","DIVIDE","EARLIER","EARLIEST","EDATE","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","EOMONTH","EVALUATE","EVEN","EXACT","EXCEPT","EXP","EXPON.DIST","FACT","FILTER","FILTERS","FIND","FIRSTDATE","FIRSTNONBLANK","FIXED","FLOOR","FORMAT","GCD","GENERATEALL","GEOMEAN","GEOMEANX","GROUPBY","HASONEFILTER","HASONEVALUE","HOUR","IF","IFERROR","IN","INT","INTERSECT","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISO.CEILING","ISODD","ISONORAFTER","ISTEXT","KEEPFILTERS","LASTDATE","LASTNONBLANK","LCM","LEFT","LEN","LN","LOG","LOOKUPVALUE","LOWER","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MID","MIN","MINA","MINUTE","MINX","MOD","MONTH","MROUND","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","NOT","NOW","ODD","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","OR","ORDER","BY","PARALLELPERIOD","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PERMUT","PI","POISSON.DIST","POWER","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","PRODUCT","PRODUCTX","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANKX","RELATED","RELATEDTABLE","REPLACE","REPT","RIGHT","ROUND","ROUNDDOWN","ROUNDUP","ROW","SAMEPERIODLASTYEAR","SAMPLE","SEARCH","SECOND","SELECTCOLUMNS","SIGN","SIN","SINH","SQRT","SQRTPI","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","SUBSTITUTE","SUBSTITUTEWITHINDEX","SUM","SUMMARIZE","SUMMARIZECOLUMNS","SUMX","SWITCH","TAN","TANH","TIME","TIMEVALUE","TODAY","TOPN","TOTALMTD","TOTALQTD","TOTALYTD","TRIM","TRUNC","UNION","UPPER","USERELATIONSHIP","USERNAME","VALUE","VALUES","VAR.P","VAR.S","VARX.P","VARX.S","WEEKDAY","WEEKNUM","XIRR","XNPV","YEAR","YEARFRAC","COUNTBLANK|10","COUNTROWS","COUNTX","CROSSFILTER|10","CROSSJOIN|10","CURRENCY","CUSTOMDATA","DATATABLE|10","DATE","DATEADD","DATEDIFF","DATESBETWEEN|10","DATESINPERIOD|10","DATESMTD","DATESQTD|10","DATESYTD|10","DATEVALUE","DAY","DEGREES","DISTINCT","DISTINCTCOUNT","DIVIDE","EARLIER","EARLIEST","EDATE","ENDOFMONTH|10","ENDOFQUARTER|10","ENDOFYEAR|10","EOMONTH|10","EVEN","EXACT","EXCEPT","EXP","EXPON.DIST","FACT","FILTER","FILTERS","FIND","FIRSTDATE","FIRSTNONBLANK|10","FIXED","FLOOR","FORMAT","GCD","GENERATE","GENERATEALL","GEOMEAN","GEOMEANX","GROUPBY","HASONEFILTER|10","HASONEVALUE|10","HOUR","IF","IFERROR","INT","INTERSECT","ISBLANK|10","ISCROSSFILTERED|10","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISO.CEILING","ISODD","ISONORAFTER","ISTEXT","KEEPFILTERS","LASTDATE","LASTNONBLANK|10","LCM","LEFT","LEN","LN","LOG","LOG10","LOOKUPVALUE|10","LOWER","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MID","MIN","MINA","MINUTE","MINX","MOD","MONTH","MROUND","NATURALINNERJOIN|10","NATURALLEFTOUTERJOIN|10","NEXTDAY|10","NEXTMONTH|10","NEXTQUARTER|10","NEXTYEAR|10","NOT","NOW","ODD","OPENINGBALANCEMONTH|10","OPENINGBALANCEQUARTER|10","OPENINGBALANCEYEAR|10","OR","PARALLELPERIOD|10","PATH","PATHCONTAINS|10","PATHITEM|10","PATHITEMREVERSE|10","PATHLENGTH|10","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PERMUT","PI","POISSON.DIST","POWER","PREVIOUSDAY|10","PREVIOUSMONTH|10","PREVIOUSQUARTER|10","PREVIOUSYEAR|10","PRODUCT","PRODUCTX","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.EQ","RANKX","RELATED","RELATEDTABLE|10","REPLACE","REPT","RIGHT","ROUND","ROUNDDOWN","ROUNDUP","ROW","SAMEPERIODLASTYEAR|10","SAMPLE","SEARCH","SECOND","SIGN","SIN","SINH","SQRT","SQRTPI","STARTOFMONTH|10","STARTOFQUARTER|10","STARTOFYEAR|10","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","SUBSTITUTE","SUBSTITUTEWITHINDEX|10","SUM","SUMMARIZE","SUMMARIZECOLUMNS|10","SUMX","SWITCH","TAN","TANH","TIME","TIMEVALUE","TODAY","TOPN","TOTALMTD|10","TOTALQTD|10","TOTALYTD|10","TRIM","TRUNC","UNION","UPPER","USERELATIONSHIP|10","USERNAME","VALUE","VALUES","VAR.P","VAR.S","VARX.P","VARX.S","WEEKDAY","WEEKNUM","XIRR|10","XNPV|10","YEAR","YEARFRAC|10","FALSE","TRUE","VAR","RETURN"];function BI(c){localStorage.setItem("theme",c),c==="auto"?document.documentElement.setAttribute("data-bs-theme",window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):document.documentElement.setAttribute("data-bs-theme",c)}async function WI(){return localStorage.getItem("theme")||(await It()).defaultTheme||"auto"}async function Po(){BI(await WI())}function $o(c){return new MutationObserver(()=>c(Pe())).observe(document.documentElement,{attributes:!0,attributeFilter:["data-bs-theme"]})}function Pe(){return document.documentElement.getAttribute("data-bs-theme")}async function qe(){pI(),hI(),xI(),VI(),yI(),QI(),await Promise.all([RI(),uI(),$e()]),$o($e)}async function uI(){document.querySelectorAll(".math").length>0&&await import("./tex-svg-full-SL33OL2J.min.js")}async function $e(){let c=document.querySelectorAll("pre code.lang-mermaid"),i=document.querySelectorAll("pre.mermaid[data-mermaid]");if(c.length<=0&&i.length<=0)return;let{default:t}=await import("./mermaid.core-NP2Z6XN6.min.js"),e=Pe()==="dark"?"dark":"default",{mermaid:b}=await It();t.initialize(Object.assign({startOnLoad:!1,theme:e},b));let o=[];c.forEach(l=>{if(l.offsetParent){o.push(l.parentElement);let n=l.innerHTML;l.parentElement.classList.add("mermaid"),l.parentElement.setAttribute("data-mermaid",n),l.parentElement.innerHTML=n}}),i.forEach(l=>{l.offsetParent&&(l.removeAttribute("data-processed"),l.innerHTML=l.getAttribute("data-mermaid"),o.push(l))}),await t.run({nodes:o})}function pI(){document.querySelectorAll("article h1,h2,h3,h4,h5,h6,.xref,.text-break").forEach(c=>{if(c.innerHTML?.trim()===c.innerText?.trim()){let i=[];for(let t of Ke(c.innerText))i.length>0&&i.push(document.createElement("wbr")),i.push(t);c.replaceChildren(...i)}})}async function RI(){let{showLightbox:c}=await It(),i=200,t=Array.from(document.querySelectorAll("article a img[src]"));document.querySelectorAll("article img[src]").forEach(e=>{o()?b():e.addEventListener("load",()=>{o()&&b()});function b(){let l=document.createElement("a");l.target="_blank",l.rel="noopener noreferrer nofollow",e.parentElement.tagName==="PICTURE"?e.parentElement.addEventListener("click",()=>{l.href=e.currentSrc,l.click()}):(l.href=e.src,e.replaceWith(l),l.appendChild(e))}function o(){return c?c(e):e.naturalWidth>i&&e.naturalHeight>i&&!t.includes(e)}})}function hI(){document.querySelectorAll("table").forEach(c=>{c.classList.add("table","table-bordered","table-condensed");let i=document.createElement("div");i.className="table-responsive",c.parentElement.insertBefore(i,c),i.appendChild(c)})}function xI(){document.querySelectorAll(".NOTE, .TIP").forEach(c=>c.classList.add("alert","alert-info")),document.querySelectorAll(".WARNING").forEach(c=>c.classList.add("alert","alert-warning")),document.querySelectorAll(".IMPORTANT, .CAUTION").forEach(c=>c.classList.add("alert","alert-danger"))}function VI(){at("docfx:disablenewtab")!=="true"&&document.querySelectorAll("article a[href]").forEach(c=>{c.hostname!==window.location.hostname&&c.innerText.trim()!==""&&(c.target="_blank",c.rel="noopener noreferrer nofollow",c.classList.add("external"))})}function QI(){document.querySelectorAll("pre>code").forEach(c=>{if(c.textContent.trim().length===0)return;let i=!1;t();function t(){let e=i?f``:f``;it(e,c.parentElement);async function b(o){o.preventDefault(),await navigator.clipboard.writeText(c.innerText),i=!0,t(),setTimeout(()=>{i=!1,t()},1e3)}}})}function yI(){m();let c={id:"data-bi-id",name:"data-bi-name",type:"data-bi-type"},i=function(){function I(g,Z,W){this.li=g,this.a=Z,this.section=W}return Object.defineProperty(I.prototype,"tabIds",{get:function(){return this.a.getAttribute("data-tab").split(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"condition",{get:function(){return this.a.getAttribute("data-condition")},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"visible",{get:function(){return!this.li.hasAttribute("hidden")},set:function(g){g?(this.li.removeAttribute("hidden"),this.li.removeAttribute("aria-hidden")):(this.li.setAttribute("hidden","hidden"),this.li.setAttribute("aria-hidden","true"))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"selected",{get:function(){return!this.section.hasAttribute("hidden")},set:function(g){g?(this.a.setAttribute("aria-selected","true"),this.a.classList.add("active"),this.a.tabIndex=0,this.section.removeAttribute("hidden"),this.section.removeAttribute("aria-hidden")):(this.a.setAttribute("aria-selected","false"),this.a.classList.remove("active"),this.a.tabIndex=-1,this.section.setAttribute("hidden","hidden"),this.section.setAttribute("aria-hidden","true"))},enumerable:!0,configurable:!0}),I.prototype.focus=function(){this.a.focus()},I}();t(document.body);function t(I){let g=a(),Z=I.querySelectorAll(".tabGroup"),W={groups:[],selectedTabs:[]};for(let u=0;u ul > li > a[data-tab="'+W+'"]:not([hidden])');if(u===null)return;u.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}}function a(){let g=new URLSearchParams(window.location.search).get("tabs");return g?g.split(","):[]}function r(I){let g=new URLSearchParams(window.location.search);g.set("tabs",I.selectedTabs.join());let Z=location.protocol+"//"+location.host+location.pathname+"?"+g.toString()+location.hash;location.href!==Z&&history.replaceState({},document.title,Z)}function d(I,g){for(let Z=0,W=I;Zul").forEach(I=>I.classList.add("nav","nav-tabs")),document.querySelectorAll("div.tabGroup>ul>li").forEach(I=>I.classList.add("nav-item")),document.querySelectorAll("div.tabGroup>ul>li>a").forEach(I=>I.classList.add("nav-link")),document.querySelectorAll("div.tabGroup>section").forEach(I=>I.classList.add("card"))}function C(){$e()}}var qo={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},tl=c=>(...i)=>({_$litDirective$:c,values:i}),Qc=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this._$Ct=i,this._$AM=t,this._$Ci=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var Yt=tl(class extends Qc{constructor(c){if(super(c),c.type!==qo.ATTRIBUTE||c.name!=="class"||c.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(c){return" "+Object.keys(c).filter(i=>c[i]).join(" ")+" "}update(c,[i]){if(this.st===void 0){this.st=new Set,c.strings!==void 0&&(this.nt=new Set(c.strings.join(" ").split(/\s/).filter(e=>e!=="")));for(let e in i)i[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(i)}let t=c.element.classList;for(let e of this.st)e in i||(t.remove(e),this.st.delete(e));for(let e in i){let b=!!i[e];b===this.st.has(e)||this.nt?.has(e)||(b?(t.add(e),this.st.add(e)):(t.remove(e),this.st.delete(e)))}return qt}});var Zt;async function il(){let c=document.getElementById("search-query");if(!c||!window.Worker)return;let i=at("docfx:rel")||"",t=new Worker(i+"public/search-worker.min.js",{type:"module"});t.onerror=n=>{console.error("Error occurred at search-worker. message: "+n.message)},t.onmessage=function(n){switch(n.data.e){case"index-ready":c.disabled=!1,c.addEventListener("input",e),window.docfx.searchReady=!0;break;case"query-ready":document.body.setAttribute("data-search","true"),l(n.data.d,0),window.docfx.searchResultReady=!0,c.value===""&&document.body.removeAttribute("data-search");break}},t.postMessage({init:!0});function e(){Zt=c.value,Zt===""?document.body.removeAttribute("data-search"):t.postMessage({q:Zt})}function b(n,a){let r=n.split(/\/+/),d=a.split(/\/+/),m=r.length-1,C=[];for(let I=0;Ia)return"..."+n.slice(d-a,d+a)+"...";if(d<=a)return n.slice(0,d+a)+"..."}function l(n,a){let d=Math.ceil(n.length/10);it(m(a),document.getElementById("search-results"));function m(I){if(n.length===0)return f`
${Z.map(u=>{let R=window.location.href,V=b(R,i+u.href),G=i+u.href+"?q="+Zt,F=o(u.summary);return f`
+import{a as gt,b as Ql,d as kc}from"./chunk-OSRY5VT3.min.js";var Oo=gt((xe,Ve)=>{(function(c,i){typeof xe=="object"&&typeof Ve<"u"?Ve.exports=i():typeof define=="function"&&define.amd?define(i):(c=typeof globalThis<"u"?globalThis:c||self,c.Data=i())})(xe,function(){"use strict";let c=new Map;return{set(t,e,b){c.has(t)||c.set(t,new Map);let o=c.get(t);if(!o.has(e)&&o.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`);return}o.set(e,b)},get(t,e){return c.has(t)&&c.get(t).get(e)||null},remove(t,e){if(!c.has(t))return;let b=c.get(t);b.delete(e),b.size===0&&c.delete(t)}}})});var Ci=gt((xc,vo)=>{(function(c,i){typeof xc=="object"&&typeof vo<"u"?i(xc):typeof define=="function"&&define.amd?define(["exports"],i):(c=typeof globalThis<"u"?globalThis:c||self,i(c.Index={}))})(xc,function(c){"use strict";let e="transitionend",b=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(R,X)=>`#${CSS.escape(X)}`)),s),o=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),l=s=>{do s+=Math.floor(Math.random()*1e6);while(document.getElementById(s));return s},n=s=>{if(!s)return 0;let{transitionDuration:R,transitionDelay:X}=window.getComputedStyle(s),x=Number.parseFloat(R),A=Number.parseFloat(X);return!x&&!A?0:(R=R.split(",")[0],X=X.split(",")[0],(Number.parseFloat(R)+Number.parseFloat(X))*1e3)},a=s=>{s.dispatchEvent(new Event(e))},d=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),r=s=>d(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(b(s)):null,m=s=>{if(!d(s)||s.getClientRects().length===0)return!1;let R=getComputedStyle(s).getPropertyValue("visibility")==="visible",X=s.closest("details:not([open])");if(!X)return R;if(X!==s){let x=s.closest("summary");if(x&&x.parentNode!==X||x===null)return!1}return R},C=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",I=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){let R=s.getRootNode();return R instanceof ShadowRoot?R:null}return s instanceof ShadowRoot?s:s.parentNode?I(s.parentNode):null},g=()=>{},Z=s=>{s.offsetHeight},W=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,u=[],h=s=>{document.readyState==="loading"?(u.length||document.addEventListener("DOMContentLoaded",()=>{for(let R of u)R()}),u.push(s)):s()},V=()=>document.documentElement.dir==="rtl",G=s=>{h(()=>{let R=W();if(R){let X=s.NAME,x=R.fn[X];R.fn[X]=s.jQueryInterface,R.fn[X].Constructor=s,R.fn[X].noConflict=()=>(R.fn[X]=x,s.jQueryInterface)}})},F=(s,R=[],X=s)=>typeof s=="function"?s(...R):X,p=(s,R,X=!0)=>{if(!X){F(s);return}let A=n(R)+5,U=!1,O=({target:Y})=>{Y===R&&(U=!0,R.removeEventListener(e,O),F(s))};R.addEventListener(e,O),setTimeout(()=>{U||a(R)},A)},Q=(s,R,X,x)=>{let A=s.length,U=s.indexOf(R);return U===-1?!X&&x?s[A-1]:s[0]:(U+=X?1:-1,x&&(U=(U+A)%A),s[Math.max(0,Math.min(U,A-1))])};c.defineJQueryPlugin=G,c.execute=F,c.executeAfterTransition=p,c.findShadowRoot=I,c.getElement=r,c.getNextActiveElement=Q,c.getTransitionDurationFromElement=n,c.getUID=l,c.getjQuery=W,c.isDisabled=C,c.isElement=d,c.isRTL=V,c.isVisible=m,c.noop=g,c.onDOMContentLoaded=h,c.parseSelector=b,c.reflow=Z,c.toType=o,c.triggerTransitionEnd=a,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})})});var Ae=gt((Qe,ye)=>{(function(c,i){typeof Qe=="object"&&typeof ye<"u"?ye.exports=i(Ci()):typeof define=="function"&&define.amd?define(["../util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.EventHandler=i(c.Index))})(Qe,function(c){"use strict";let i=/[^.]*(?=\..*)\.|.*/,t=/\..*/,e=/::\d+$/,b={},o=1,l={mouseenter:"mouseover",mouseleave:"mouseout"},n=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 a(G,F){return F&&`${F}::${o++}`||G.uidEvent||o++}function d(G){let F=a(G);return G.uidEvent=F,b[F]=b[F]||{},b[F]}function r(G,F){return function p(Q){return V(Q,{delegateTarget:G}),p.oneOff&&h.off(G,Q.type,F),F.apply(G,[Q])}}function m(G,F,p){return function Q(s){let R=G.querySelectorAll(F);for(let{target:X}=s;X&&X!==this;X=X.parentNode)for(let x of R)if(x===X)return V(s,{delegateTarget:X}),Q.oneOff&&h.off(G,s.type,F,p),p.apply(X,[s])}}function C(G,F,p=null){return Object.values(G).find(Q=>Q.callable===F&&Q.delegationSelector===p)}function I(G,F,p){let Q=typeof F=="string",s=Q?p:F||p,R=u(G);return n.has(R)||(R=G),[Q,s,R]}function g(G,F,p,Q,s){if(typeof F!="string"||!G)return;let[R,X,x]=I(F,p,Q);F in l&&(X=(ti=>function(P){if(!P.relatedTarget||P.relatedTarget!==P.delegateTarget&&!P.delegateTarget.contains(P.relatedTarget))return ti.call(this,P)})(X));let A=d(G),U=A[x]||(A[x]={}),O=C(U,X,R?p:null);if(O){O.oneOff=O.oneOff&&s;return}let Y=a(X,F.replace(i,"")),v=R?m(G,p,X):r(G,X);v.delegationSelector=R?p:null,v.callable=X,v.oneOff=s,v.uidEvent=Y,U[Y]=v,G.addEventListener(x,v,R)}function Z(G,F,p,Q,s){let R=C(F[p],Q,s);R&&(G.removeEventListener(p,R,!!s),delete F[p][R.uidEvent])}function W(G,F,p,Q){let s=F[p]||{};for(let[R,X]of Object.entries(s))R.includes(Q)&&Z(G,F,p,X.callable,X.delegationSelector)}function u(G){return G=G.replace(t,""),l[G]||G}let h={on(G,F,p,Q){g(G,F,p,Q,!1)},one(G,F,p,Q){g(G,F,p,Q,!0)},off(G,F,p,Q){if(typeof F!="string"||!G)return;let[s,R,X]=I(F,p,Q),x=X!==F,A=d(G),U=A[X]||{},O=F.startsWith(".");if(typeof R<"u"){if(!Object.keys(U).length)return;Z(G,A,X,R,s?p:null);return}if(O)for(let Y of Object.keys(A))W(G,A,Y,F.slice(1));for(let[Y,v]of Object.entries(U)){let _=Y.replace(e,"");(!x||F.includes(_))&&Z(G,A,X,v.callable,v.delegationSelector)}},trigger(G,F,p){if(typeof F!="string"||!G)return null;let Q=c.getjQuery(),s=u(F),R=F!==s,X=null,x=!0,A=!0,U=!1;R&&Q&&(X=Q.Event(F,p),Q(G).trigger(X),x=!X.isPropagationStopped(),A=!X.isImmediatePropagationStopped(),U=X.isDefaultPrevented());let O=V(new Event(F,{bubbles:x,cancelable:!0}),p);return U&&O.preventDefault(),A&&G.dispatchEvent(O),O.defaultPrevented&&X&&X.preventDefault(),O}};function V(G,F={}){for(let[p,Q]of Object.entries(F))try{G[p]=Q}catch{Object.defineProperty(G,p,{configurable:!0,get(){return Q}})}return G}return h})});var Lo=gt((fe,Ue)=>{(function(c,i){typeof fe=="object"&&typeof Ue<"u"?Ue.exports=i():typeof define=="function"&&define.amd?define(i):(c=typeof globalThis<"u"?globalThis:c||self,c.Manipulator=i())})(fe,function(){"use strict";function c(e){if(e==="true")return!0;if(e==="false")return!1;if(e===Number(e).toString())return Number(e);if(e===""||e==="null")return null;if(typeof e!="string")return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function i(e){return e.replace(/[A-Z]/g,b=>`-${b.toLowerCase()}`)}return{setDataAttribute(e,b,o){e.setAttribute(`data-bs-${i(b)}`,o)},removeDataAttribute(e,b){e.removeAttribute(`data-bs-${i(b)}`)},getDataAttributes(e){if(!e)return{};let b={},o=Object.keys(e.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(let l of o){let n=l.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),b[n]=c(e.dataset[l])}return b},getDataAttribute(e,b){return c(e.getAttribute(`data-bs-${i(b)}`))}}})});var Jo=gt((Ye,Oe)=>{(function(c,i){typeof Ye=="object"&&typeof Oe<"u"?Oe.exports=i(Lo(),Ci()):typeof define=="function"&&define.amd?define(["../dom/manipulator","./index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.Config=i(c.Manipulator,c.Index))})(Ye,function(c,i){"use strict";class t{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(b){return b=this._mergeConfigObj(b),b=this._configAfterMerge(b),this._typeCheckConfig(b),b}_configAfterMerge(b){return b}_mergeConfigObj(b,o){let l=i.isElement(o)?c.getDataAttribute(o,"config"):{};return{...this.constructor.Default,...typeof l=="object"?l:{},...i.isElement(o)?c.getDataAttributes(o):{},...typeof b=="object"?b:{}}}_typeCheckConfig(b,o=this.constructor.DefaultType){for(let[l,n]of Object.entries(o)){let a=b[l],d=i.isElement(a)?"element":i.toType(a);if(!new RegExp(n).test(d))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${l}" provided type "${d}" but expected type "${n}".`)}}}return t})});var No=gt((ve,Le)=>{(function(c,i){typeof ve=="object"&&typeof Le<"u"?Le.exports=i(Oo(),Ae(),Jo(),Ci()):typeof define=="function"&&define.amd?define(["./dom/data","./dom/event-handler","./util/config","./util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.BaseComponent=i(c.Data,c.EventHandler,c.Config,c.Index))})(ve,function(c,i,t,e){"use strict";let b="5.3.3";class o extends t{constructor(n,a){super(),n=e.getElement(n),n&&(this._element=n,this._config=this._getConfig(a),c.set(this._element,this.constructor.DATA_KEY,this))}dispose(){c.remove(this._element,this.constructor.DATA_KEY),i.off(this._element,this.constructor.EVENT_KEY);for(let n of Object.getOwnPropertyNames(this))this[n]=null}_queueCallback(n,a,d=!0){e.executeAfterTransition(n,a,d)}_getConfig(n){return n=this._mergeConfigObj(n,this._element),n=this._configAfterMerge(n),this._typeCheckConfig(n),n}static getInstance(n){return c.get(e.getElement(n),this.DATA_KEY)}static getOrCreateInstance(n,a={}){return this.getInstance(n)||new this(n,typeof a=="object"?a:null)}static get VERSION(){return b}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(n){return`${n}${this.EVENT_KEY}`}}return o})});var wo=gt((Je,Ne)=>{(function(c,i){typeof Je=="object"&&typeof Ne<"u"?Ne.exports=i(Ci()):typeof define=="function"&&define.amd?define(["../util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.SelectorEngine=i(c.Index))})(Je,function(c){"use strict";let i=e=>{let b=e.getAttribute("data-bs-target");if(!b||b==="#"){let o=e.getAttribute("href");if(!o||!o.includes("#")&&!o.startsWith("."))return null;o.includes("#")&&!o.startsWith("#")&&(o=`#${o.split("#")[1]}`),b=o&&o!=="#"?o.trim():null}return b?b.split(",").map(o=>c.parseSelector(o)).join(","):null},t={find(e,b=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(b,e))},findOne(e,b=document.documentElement){return Element.prototype.querySelector.call(b,e)},children(e,b){return[].concat(...e.children).filter(o=>o.matches(b))},parents(e,b){let o=[],l=e.parentNode.closest(b);for(;l;)o.push(l),l=l.parentNode.closest(b);return o},prev(e,b){let o=e.previousElementSibling;for(;o;){if(o.matches(b))return[o];o=o.previousElementSibling}return[]},next(e,b){let o=e.nextElementSibling;for(;o;){if(o.matches(b))return[o];o=o.nextElementSibling}return[]},focusableChildren(e){let b=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(b,e).filter(o=>!c.isDisabled(o)&&c.isVisible(o))},getSelectorFromElement(e){let b=i(e);return b&&t.findOne(b)?b:null},getElementFromSelector(e){let b=i(e);return b?t.findOne(b):null},getMultipleElementsFromSelector(e){let b=i(e);return b?t.find(b):[]}};return t})});var ko=gt((we,ke)=>{(function(c,i){typeof we=="object"&&typeof ke<"u"?ke.exports=i(No(),Ae(),wo(),Ci()):typeof define=="function"&&define.amd?define(["./base-component","./dom/event-handler","./dom/selector-engine","./util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.Scrollspy=i(c.BaseComponent,c.EventHandler,c.SelectorEngine,c.Index))})(we,function(c,i,t,e){"use strict";let b="scrollspy",l=".bs.scrollspy",n=".data-api",a=`activate${l}`,d=`click${l}`,r=`load${l}${n}`,m="dropdown-item",C="active",I='[data-bs-spy="scroll"]',g="[href]",Z=".nav, .list-group",W=".nav-link",V=`${W}, .nav-item > ${W}, .list-group-item`,G=".dropdown",F=".dropdown-toggle",p={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Q={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class s extends c{constructor(X,x){super(X,x),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 p}static get DefaultType(){return Q}static get NAME(){return b}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let X of this._observableSections.values())this._observer.observe(X)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(X){return X.target=e.getElement(X.target)||document.body,X.rootMargin=X.offset?`${X.offset}px 0px -30%`:X.rootMargin,typeof X.threshold=="string"&&(X.threshold=X.threshold.split(",").map(x=>Number.parseFloat(x))),X}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(i.off(this._config.target,d),i.on(this._config.target,d,g,X=>{let x=this._observableSections.get(X.target.hash);if(x){X.preventDefault();let A=this._rootElement||window,U=x.offsetTop-this._element.offsetTop;if(A.scrollTo){A.scrollTo({top:U,behavior:"smooth"});return}A.scrollTop=U}}))}_getNewObserver(){let X={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(x=>this._observerCallback(x),X)}_observerCallback(X){let x=Y=>this._targetLinks.get(`#${Y.target.id}`),A=Y=>{this._previousScrollData.visibleEntryTop=Y.target.offsetTop,this._process(x(Y))},U=(this._rootElement||document.documentElement).scrollTop,O=U>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=U;for(let Y of X){if(!Y.isIntersecting){this._activeTarget=null,this._clearActiveClass(x(Y));continue}let v=Y.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(O&&v){if(A(Y),!U)return;continue}!O&&!v&&A(Y)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let X=t.find(g,this._config.target);for(let x of X){if(!x.hash||e.isDisabled(x))continue;let A=t.findOne(decodeURI(x.hash),this._element);e.isVisible(A)&&(this._targetLinks.set(decodeURI(x.hash),x),this._observableSections.set(x.hash,A))}}_process(X){this._activeTarget!==X&&(this._clearActiveClass(this._config.target),this._activeTarget=X,X.classList.add(C),this._activateParents(X),i.trigger(this._element,a,{relatedTarget:X}))}_activateParents(X){if(X.classList.contains(m)){t.findOne(F,X.closest(G)).classList.add(C);return}for(let x of t.parents(X,Z))for(let A of t.prev(x,V))A.classList.add(C)}_clearActiveClass(X){X.classList.remove(C);let x=t.find(`${g}.${C}`,X);for(let A of x)A.classList.remove(C)}static jQueryInterface(X){return this.each(function(){let x=s.getOrCreateInstance(this,X);if(typeof X=="string"){if(x[X]===void 0||X.startsWith("_")||X==="constructor")throw new TypeError(`No method named "${X}"`);x[X]()}})}}return i.on(window,r,()=>{for(let R of t.find(I))s.getOrCreateInstance(R)}),e.defineJQueryPlugin(s),s})});var Il=gt((NX,Yc)=>{(function(c,i){"use strict";typeof define=="function"&&define.amd?define([],i):typeof Yc=="object"&&Yc.exports?Yc.exports=i():(c.AnchorJS=i(),c.anchors=new c.AnchorJS)})(globalThis,function(){"use strict";function c(i){this.options=i||{},this.elements=[];function t(o){o.icon=Object.prototype.hasOwnProperty.call(o,"icon")?o.icon:"\uE9CB",o.visible=Object.prototype.hasOwnProperty.call(o,"visible")?o.visible:"hover",o.placement=Object.prototype.hasOwnProperty.call(o,"placement")?o.placement:"right",o.ariaLabel=Object.prototype.hasOwnProperty.call(o,"ariaLabel")?o.ariaLabel:"Anchor",o.class=Object.prototype.hasOwnProperty.call(o,"class")?o.class:"",o.base=Object.prototype.hasOwnProperty.call(o,"base")?o.base:"",o.truncate=Object.prototype.hasOwnProperty.call(o,"truncate")?Math.floor(o.truncate):64,o.titleText=Object.prototype.hasOwnProperty.call(o,"titleText")?o.titleText:""}t(this.options),this.add=function(o){var l,n,a,d,r,m,C,I,g,Z,W,u=[];if(t(this.options),o||(o="h2, h3, h4, h5, h6"),l=e(o),l.length===0)return this;for(b(),n=document.querySelectorAll("[id]"),a=[].map.call(n,function(h){return h.id}),r=0;r\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||t(this.options),o.trim().replace(/'/gi,"").replace(n,"-").replace(/-{2,}/g,"-").substring(0,this.options.truncate).replace(/^-+|-+$/gm,"").toLowerCase()},this.hasAnchorJSLink=function(o){var l=o.firstChild&&(" "+o.firstChild.className+" ").indexOf(" anchorjs-link ")>-1,n=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return l||n||!1};function e(o){var l;if(typeof o=="string"||o instanceof String)l=[].slice.call(document.querySelectorAll(o));else if(Array.isArray(o)||o instanceof NodeList)l=[].slice.call(o);else throw new TypeError("The selector provided to AnchorJS was invalid.");return l}function b(){if(document.head.querySelector("style.anchorjs")===null){var o=document.createElement("style"),l=".anchorjs-link{opacity:0;text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}",n=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",a='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',d="[data-anchorjs-icon]::after{content:attr(data-anchorjs-icon)}",r;o.className="anchorjs",o.appendChild(document.createTextNode("")),r=document.head.querySelector('[rel="stylesheet"],style'),r===void 0?document.head.appendChild(o):document.head.insertBefore(o,r),o.sheet.insertRule(l,o.sheet.cssRules.length),o.sheet.insertRule(n,o.sheet.cssRules.length),o.sheet.insertRule(d,o.sheet.cssRules.length),o.sheet.insertRule(a,o.sheet.cssRules.length)}}}return c})});var Bl=gt(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.default=void 0;function cb(c){"@babel/helpers - typeof";return cb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},cb(c)}function E(c,i){var t=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!t){if(Array.isArray(c)||(t=Fl(c))||i&&c&&typeof c.length=="number"){t&&(c=t);var e=0,b=function(){};return{s:b,n:function(){return e>=c.length?{done:!0}:{done:!1,value:c[e++]}},e:function(d){throw d},f:b}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,l=!1,n;return{s:function(){t=t.call(c)},n:function(){var d=t.next();return o=d.done,d},e:function(d){l=!0,n=d},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(l)throw n}}}}function wI(c){return HI(c)||zI(c)||Fl(c)||kI()}function kI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fl(c,i){if(c){if(typeof c=="string")return eb(c,i);var t=Object.prototype.toString.call(c).slice(8,-1);if(t==="Object"&&c.constructor&&(t=c.constructor.name),t==="Map"||t==="Set")return Array.from(c);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return eb(c,i)}}function zI(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function HI(c){if(Array.isArray(c))return eb(c)}function eb(c,i){(i==null||i>c.length)&&(i=c.length);for(var t=0,e=new Array(i);t0?Array.from(i):[i],this.relatedElements=[],this.transitionPrefix=this.calculateTransitionPrefix(),this.transitionCapable=this.transitionPrefix!==!1,this.initialLocationHash=this.hash,this.options.rel&&(this.elements=this.getRelated(this.options.rel)),this.options.uniqueImages){var b=[];this.elements=Array.from(this.elements).filter(function(o){var l=o.getAttribute(e.options.sourceAttr);return b.indexOf(l)===-1?(b.push(l),!0):!1})}this.createDomNodes(),this.options.close&&this.domNodes.wrapper.appendChild(this.domNodes.closeButton),this.options.nav&&this.domNodes.wrapper.appendChild(this.domNodes.navigation),this.options.spinner&&this.domNodes.wrapper.appendChild(this.domNodes.spinner),this.addEventListener(this.elements,"click."+this.eventNamespace,function(o){if(e.isValidLink(o.currentTarget)){if(o.preventDefault(),e.isAnimating)return!1;e.initialImageIndex=e.elements.indexOf(o.currentTarget),e.openImage(o.currentTarget)}}),this.options.docClose&&this.addEventListener(this.domNodes.wrapper,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],function(o){e.isOpen&&o.target===o.currentTarget&&e.close()}),this.options.disableRightClick&&this.addEventListener(document.body,"contextmenu."+this.eventNamespace,function(o){o.target.parentElement.classList.contains("sl-image")&&o.preventDefault()}),this.options.enableKeyboard&&this.addEventListener(document.body,"keyup."+this.eventNamespace,this.throttle(function(o){if(e.controlCoordinates.swipeDiff=0,e.isAnimating&&o.key==="Escape"){e.currentImage.setAttribute("src",""),e.isAnimating=!1,e.close();return}e.isOpen&&(o.preventDefault(),o.key==="Escape"&&e.close(),!e.isAnimating&&["ArrowLeft","ArrowRight"].indexOf(o.key)>-1&&e.loadImage(o.key==="ArrowRight"?1:-1))},this.options.throttleInterval)),this.addEvents()}return SI(c,[{key:"checkPassiveEventsSupport",value:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}return t}},{key:"getCaptionElement",value:function(t){if(this.options.captionSelector.startsWith("+")){var e=this.options.captionSelector.replace(/^\+/,"").trimStart(),b=t.nextElementSibling;return b&&b.matches(e)?b:!1}else if(this.options.captionSelector.startsWith(">")){var o=this.options.captionSelector.replace(/^>/,"").trimStart();return t.querySelector(o)}else return t.querySelector(this.options.captionSelector)}},{key:"generateQuerySelector",value:function(t){var e=t.tagName,b=t.id,o=t.className,l=t.parentNode;if(e==="HTML")return"HTML";var n=e;if(n+=b!==""?"#".concat(b):"",o)for(var a=o.trim().split(/\s/),d=0;d ").concat(n)}},{key:"createDomNodes",value:function(){if(this.domNodes.overlay=document.createElement("div"),this.domNodes.overlay.classList.add("sl-overlay"),this.domNodes.overlay.dataset.opacityTarget=this.options.overlayOpacity,this.domNodes.closeButton=document.createElement("button"),this.domNodes.closeButton.classList.add("sl-close"),this.domNodes.closeButton.innerHTML=this.options.closeText,this.domNodes.spinner=document.createElement("div"),this.domNodes.spinner.classList.add("sl-spinner"),this.domNodes.spinner.innerHTML="",this.domNodes.navigation=document.createElement("div"),this.domNodes.navigation.classList.add("sl-navigation"),this.domNodes.navigation.innerHTML='"),this.domNodes.counter=document.createElement("div"),this.domNodes.counter.classList.add("sl-counter"),this.domNodes.counter.innerHTML='/',this.domNodes.download=document.createElement("div"),this.domNodes.download.classList.add("sl-download"),this.domNodes.downloadLink=document.createElement("a"),this.domNodes.downloadLink.setAttribute("download",""),this.domNodes.downloadLink.textContent=this.options.download,this.domNodes.download.appendChild(this.domNodes.downloadLink),this.domNodes.caption=document.createElement("div"),this.domNodes.caption.classList.add("sl-caption","pos-"+this.options.captionPosition),this.options.captionClass){var t,e=this.options.captionClass.split(/[\s,]+/);(t=this.domNodes.caption.classList).add.apply(t,wI(e))}this.domNodes.image=document.createElement("div"),this.domNodes.image.classList.add("sl-image"),this.domNodes.wrapper=document.createElement("div"),this.domNodes.wrapper.classList.add("sl-wrapper"),this.domNodes.wrapper.setAttribute("tabindex",-1),this.domNodes.wrapper.setAttribute("role","dialog"),this.domNodes.wrapper.setAttribute("aria-hidden",!1),this.options.className&&this.domNodes.wrapper.classList.add(this.options.className),this.options.rtl&&this.domNodes.wrapper.classList.add("sl-dir-rtl")}},{key:"throttle",value:function(t,e){var b;return function(){b||(t.apply(this,arguments),b=!0,setTimeout(function(){return b=!1},e))}}},{key:"isValidLink",value:function(t){return!this.options.fileExt||t.getAttribute(this.options.sourceAttr)&&new RegExp("("+this.options.fileExt+")($|\\?.*$)","i").test(t.getAttribute(this.options.sourceAttr))}},{key:"calculateTransitionPrefix",value:function(){var t=(document.body||document.documentElement).style;return"transition"in t?"":"WebkitTransition"in t?"-webkit-":"MozTransition"in t?"-moz-":"OTransition"in t?"-o":!1}},{key:"getScrollbarWidth",value:function(){var t=0,e=document.createElement("div");return e.classList.add("sl-scrollbar-measure"),document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e),t}},{key:"toggleScrollbar",value:function(t){var e=0,b=[].slice.call(document.querySelectorAll("."+this.options.fixedClass));if(t==="hide"){var o=window.innerWidth;if(!o){var l=document.documentElement.getBoundingClientRect();o=l.right-Math.abs(l.left)}if(document.body.clientWidth0||e==0&&this.isAppleDevice)&&(document.body.classList.add("hidden-scroll"),document.body.style.paddingRight=n+e+"px",b.forEach(function(a){var d=a.style.paddingRight,r=window.getComputedStyle(a)["padding-right"];a.dataset.originalPaddingRight=d,a.style.paddingRight="".concat(parseFloat(r)+e,"px")}))}}else document.body.classList.remove("hidden-scroll"),document.body.style.paddingRight=document.body.dataset.originalPaddingRight+"px",b.forEach(function(a){var d=a.dataset.originalPaddingRight;typeof d<"u"&&(a.style.paddingRight=d)});return e}},{key:"close",value:function(){var t=this;if(!this.isOpen||this.isAnimating||this.isClosing)return!1;this.isClosing=!0;var e=this.relatedElements[this.currentImageIndex];e.dispatchEvent(new Event("close.simplelightbox")),this.options.history&&(this.historyHasChanges=!1,this.hashReseted||this.resetHash()),this.removeEventListener(document,"focusin."+this.eventNamespace),this.fadeOut(this.domNodes.overlay,this.options.fadeSpeed),this.fadeOut(document.querySelectorAll(".sl-image img, .sl-close, .sl-navigation, .sl-image .sl-caption, .sl-counter"),this.options.fadeSpeed,function(){t.options.disableScroll&&t.toggleScrollbar("show"),t.options.htmlClass&&t.options.htmlClass!==""&&document.querySelector("html").classList.remove(t.options.htmlClass),document.body.removeChild(t.domNodes.wrapper),t.options.overlay&&document.body.removeChild(t.domNodes.overlay),t.domNodes.additionalHtml=null,t.domNodes.download=null,e.dispatchEvent(new Event("closed.simplelightbox")),t.isClosing=!1}),this.currentImage=null,this.isOpen=!1,this.isAnimating=!1;for(var b in this.controlCoordinates)this.controlCoordinates[b]=0;this.controlCoordinates.mousedown=!1,this.controlCoordinates.zoomed=!1,this.controlCoordinates.capture=!1,this.controlCoordinates.initialScale=this.minMax(1,1,this.options.maxZoom),this.controlCoordinates.doubleTapped=!1}},{key:"hash",get:function(){return window.location.hash.substring(1)}},{key:"preload",value:function(){var t=this,e=this.currentImageIndex,b=this.relatedElements.length,o=e+1<0?b-1:e+1>=b-1?0:e+1,l=e-1<0?b-1:e-1>=b-1?0:e-1,n=new Image,a=new Image;n.addEventListener("load",function(d){var r=d.target.getAttribute("src");t.loadedImages.indexOf(r)===-1&&t.loadedImages.push(r),t.relatedElements[e].dispatchEvent(new Event("nextImageLoaded."+t.eventNamespace))}),n.setAttribute("src",this.relatedElements[o].getAttribute(this.options.sourceAttr)),a.addEventListener("load",function(d){var r=d.target.getAttribute("src");t.loadedImages.indexOf(r)===-1&&t.loadedImages.push(r),t.relatedElements[e].dispatchEvent(new Event("prevImageLoaded."+t.eventNamespace))}),a.setAttribute("src",this.relatedElements[l].getAttribute(this.options.sourceAttr))}},{key:"loadImage",value:function(t){var e=this,b=t;this.options.rtl&&(t=-t),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event("change."+this.eventNamespace)),this.relatedElements[this.currentImageIndex].dispatchEvent(new Event((t===1?"next":"prev")+"."+this.eventNamespace));var o=this.currentImageIndex+t;if(this.isAnimating||(o<0||o>=this.relatedElements.length)&&this.options.loop===!1)return!1;this.currentImageIndex=o<0?this.relatedElements.length-1:o>this.relatedElements.length-1?0:o,this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.options.animationSlide&&this.slide(this.options.animationSpeed/1e3,-100*b-this.controlCoordinates.swipeDiff+"px"),this.fadeOut(this.domNodes.image,this.options.fadeSpeed,function(){e.isAnimating=!0,e.isClosing?e.isAnimating=!1:setTimeout(function(){var l=e.relatedElements[e.currentImageIndex];e.currentImage&&(e.currentImage.setAttribute("src",l.getAttribute(e.options.sourceAttr)),e.loadedImages.indexOf(l.getAttribute(e.options.sourceAttr))===-1&&e.show(e.domNodes.spinner),e.domNodes.image.contains(e.domNodes.caption)&&e.domNodes.image.removeChild(e.domNodes.caption),e.adjustImage(b),e.options.preloading&&e.preload())},100)})}},{key:"adjustImage",value:function(t){var e=this;if(!this.currentImage)return!1;var b=new Image,o=window.innerWidth*this.options.widthRatio,l=window.innerHeight*this.options.heightRatio;b.setAttribute("src",this.currentImage.getAttribute("src")),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.zoomPanElement(0,0,1),b.addEventListener("error",function(n){e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("error."+e.eventNamespace)),e.isAnimating=!1,e.isOpen=!0,e.domNodes.spinner.style.display="none";var a=t===1||t===-1;if(e.initialImageIndex===e.currentImageIndex&&a)return e.close();e.options.alertError&&alert(e.options.alertErrorMessage),e.loadImage(a?t:1)}),b.addEventListener("load",function(n){typeof t<"u"&&(e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("changed."+e.eventNamespace)),e.relatedElements[e.currentImageIndex].dispatchEvent(new Event((t===1?"nextDone":"prevDone")+"."+e.eventNamespace))),e.options.history&&e.updateURL(),e.loadedImages.indexOf(e.currentImage.getAttribute("src"))===-1&&e.loadedImages.push(e.currentImage.getAttribute("src"));var a=n.target.width,d=n.target.height;if(e.options.scaleImageToRatio||a>o||d>l){var r=a/d>o/l?a/o:d/l;a/=r,d/=r}e.domNodes.image.style.top=(window.innerHeight-d)/2+"px",e.domNodes.image.style.left=(window.innerWidth-a-e.globalScrollbarWidth)/2+"px",e.domNodes.image.style.width=a+"px",e.domNodes.image.style.height=d+"px",e.domNodes.spinner.style.display="none",e.options.focus&&e.forceFocus(),e.fadeIn(e.currentImage,e.options.fadeSpeed,function(){e.options.focus&&e.domNodes.wrapper.focus()}),e.isOpen=!0;var m,C;typeof e.options.captionSelector=="string"?m=e.options.captionSelector==="self"?e.relatedElements[e.currentImageIndex]:e.getCaptionElement(e.relatedElements[e.currentImageIndex]):typeof e.options.captionSelector=="function"&&(m=e.options.captionSelector(e.relatedElements[e.currentImageIndex])),e.options.captions&&m&&(e.options.captionType==="data"?C=m.dataset[e.options.captionsData]:e.options.captionType==="text"?C=m.innerHTML:C=m.getAttribute(e.options.captionsData)),e.options.loop?e.relatedElements.length===1?e.hide(e.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):e.show(e.domNodes.navigation.querySelectorAll(".sl-prev, .sl-next")):(e.currentImageIndex===0&&e.hide(e.domNodes.navigation.querySelector(".sl-prev")),e.currentImageIndex>=e.relatedElements.length-1&&e.hide(e.domNodes.navigation.querySelector(".sl-next")),e.currentImageIndex>0&&e.show(e.domNodes.navigation.querySelector(".sl-prev")),e.currentImageIndexb?b:t}},{key:"setZoomData",value:function(t,e,b){this.currentImage.dataset.scale=t,this.currentImage.dataset.translateX=e,this.currentImage.dataset.translateY=b}},{key:"hashchangeHandler",value:function(){this.isOpen&&this.hash===this.initialLocationHash&&(this.hashReseted=!0,this.close())}},{key:"addEvents",value:function(){var t=this;if(this.addEventListener(window,"resize."+this.eventNamespace,function(b){t.isOpen&&t.adjustImage()}),this.addEventListener(this.domNodes.closeButton,["click."+this.eventNamespace,"touchstart."+this.eventNamespace],this.close.bind(this)),this.options.history&&setTimeout(function(){t.addEventListener(window,"hashchange."+t.eventNamespace,function(b){t.isOpen&&t.hashchangeHandler()})},40),this.addEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace,function(b){if(!b.currentTarget.tagName.match(/button/i))return!0;b.preventDefault(),t.controlCoordinates.swipeDiff=0,t.loadImage(b.currentTarget.classList.contains("sl-next")?1:-1)}),this.options.scrollZoom){var e=1;this.addEventListener(this.domNodes.image,["mousewheel","DOMMouseScroll"],function(b){if(t.controlCoordinates.mousedown||t.isAnimating||t.isClosing||!t.isOpen)return!0;t.controlCoordinates.containerHeight==0&&(t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY));var o=b.delta||b.wheelDelta;o===void 0&&(o=b.detail),o=Math.max(-1,Math.min(1,o)),e+=o*t.options.scrollZoomFactor*e,e=Math.max(1,Math.min(t.options.maxZoom,e)),t.controlCoordinates.targetScale=e;var l=document.documentElement.scrollTop||document.body.scrollTop;t.controlCoordinates.pinchOffsetX=b.pageX,t.controlCoordinates.pinchOffsetY=b.pageY-l||0,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.scaleDifference=t.controlCoordinates.targetScale-t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.initialOffsetX-(t.controlCoordinates.pinchOffsetX-t.controlCoordinates.containerOffsetX-t.controlCoordinates.containerWidth/2-t.controlCoordinates.initialOffsetX)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.initialOffsetY-(t.controlCoordinates.pinchOffsetY-t.controlCoordinates.containerOffsetY-t.controlCoordinates.containerHeight/2-t.controlCoordinates.initialOffsetY)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale),t.controlCoordinates.targetScale>1?(t.controlCoordinates.zoomed=!0,(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed)):(t.controlCoordinates.initialScale===1&&(t.controlCoordinates.zoomed=!1,t.domNodes.caption.style.display==="none"&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=null,t.controlCoordinates.capture=!1),t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance,t.controlCoordinates.initialScale=t.controlCoordinates.targetScale,t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.setZoomData(t.controlCoordinates.targetScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale)})}this.addEventListener(this.domNodes.image,["touchstart."+this.eventNamespace,"mousedown."+this.eventNamespace],function(b){if(b.target.tagName==="A"&&b.type==="touchstart")return!0;if(b.type==="mousedown")b.preventDefault(),t.controlCoordinates.initialPointerOffsetX=b.clientX,t.controlCoordinates.initialPointerOffsetY=b.clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY),t.controlCoordinates.capture=!0;else{if(t.controlCoordinates.touchCount=b.touches.length,t.controlCoordinates.initialPointerOffsetX=b.touches[0].clientX,t.controlCoordinates.initialPointerOffsetY=b.touches[0].clientY,t.controlCoordinates.containerHeight=t.getDimensions(t.domNodes.image).height,t.controlCoordinates.containerWidth=t.getDimensions(t.domNodes.image).width,t.controlCoordinates.imgHeight=t.getDimensions(t.currentImage).height,t.controlCoordinates.imgWidth=t.getDimensions(t.currentImage).width,t.controlCoordinates.containerOffsetX=t.domNodes.image.offsetLeft,t.controlCoordinates.containerOffsetY=t.domNodes.image.offsetTop,t.controlCoordinates.touchCount===1){if(!t.controlCoordinates.doubleTapped)t.controlCoordinates.doubleTapped=!0,setTimeout(function(){t.controlCoordinates.doubleTapped=!1},300);else return t.currentImage.classList.add("sl-transition"),t.controlCoordinates.zoomed?(t.controlCoordinates.initialScale=1,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),t.controlCoordinates.zoomed=!1):(t.controlCoordinates.initialScale=t.options.doubleTapZoom,t.setZoomData(t.controlCoordinates.initialScale,0,0),t.zoomPanElement("0px","0px",t.controlCoordinates.initialScale),(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed),t.controlCoordinates.zoomed=!0),setTimeout(function(){t.currentImage&&t.currentImage.classList.remove("sl-transition")},200),!1;t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY)}else t.controlCoordinates.touchCount===2&&(t.controlCoordinates.initialPointerOffsetX2=b.touches[1].clientX,t.controlCoordinates.initialPointerOffsetY2=b.touches[1].clientY,t.controlCoordinates.initialOffsetX=parseFloat(t.currentImage.dataset.translateX),t.controlCoordinates.initialOffsetY=parseFloat(t.currentImage.dataset.translateY),t.controlCoordinates.pinchOffsetX=(t.controlCoordinates.initialPointerOffsetX+t.controlCoordinates.initialPointerOffsetX2)/2,t.controlCoordinates.pinchOffsetY=(t.controlCoordinates.initialPointerOffsetY+t.controlCoordinates.initialPointerOffsetY2)/2,t.controlCoordinates.initialPinchDistance=Math.sqrt((t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialPointerOffsetX2)*(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialPointerOffsetX2)+(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialPointerOffsetY2)*(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialPointerOffsetY2)));t.controlCoordinates.capture=!0}return t.controlCoordinates.mousedown?!0:(t.transitionCapable&&(t.controlCoordinates.imageLeft=parseInt(t.domNodes.image.style.left,10)),t.controlCoordinates.mousedown=!0,t.controlCoordinates.swipeDiff=0,t.controlCoordinates.swipeYDiff=0,t.controlCoordinates.swipeStart=b.pageX||b.touches[0].pageX,t.controlCoordinates.swipeYStart=b.pageY||b.touches[0].pageY,!1)}),this.addEventListener(this.domNodes.image,["touchmove."+this.eventNamespace,"mousemove."+this.eventNamespace,"MSPointerMove"],function(b){if(!t.controlCoordinates.mousedown)return!0;if(b.type==="touchmove"){if(t.controlCoordinates.capture===!1)return!1;t.controlCoordinates.pointerOffsetX=b.touches[0].clientX,t.controlCoordinates.pointerOffsetY=b.touches[0].clientY,t.controlCoordinates.touchCount=b.touches.length,t.controlCoordinates.touchmoveCount++,t.controlCoordinates.touchCount>1?(t.controlCoordinates.pointerOffsetX2=b.touches[1].clientX,t.controlCoordinates.pointerOffsetY2=b.touches[1].clientY,t.controlCoordinates.targetPinchDistance=Math.sqrt((t.controlCoordinates.pointerOffsetX-t.controlCoordinates.pointerOffsetX2)*(t.controlCoordinates.pointerOffsetX-t.controlCoordinates.pointerOffsetX2)+(t.controlCoordinates.pointerOffsetY-t.controlCoordinates.pointerOffsetY2)*(t.controlCoordinates.pointerOffsetY-t.controlCoordinates.pointerOffsetY2)),t.controlCoordinates.initialPinchDistance===null&&(t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance),Math.abs(t.controlCoordinates.initialPinchDistance-t.controlCoordinates.targetPinchDistance)>=1&&(t.controlCoordinates.targetScale=t.minMax(t.controlCoordinates.targetPinchDistance/t.controlCoordinates.initialPinchDistance*t.controlCoordinates.initialScale,1,t.options.maxZoom),t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.scaleDifference=t.controlCoordinates.targetScale-t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.initialOffsetX-(t.controlCoordinates.pinchOffsetX-t.controlCoordinates.containerOffsetX-t.controlCoordinates.containerWidth/2-t.controlCoordinates.initialOffsetX)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.initialOffsetY-(t.controlCoordinates.pinchOffsetY-t.controlCoordinates.containerOffsetY-t.controlCoordinates.containerHeight/2-t.controlCoordinates.initialOffsetY)/(t.controlCoordinates.targetScale-t.controlCoordinates.scaleDifference)*t.controlCoordinates.scaleDifference,t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale),t.controlCoordinates.targetScale>1&&(t.controlCoordinates.zoomed=!0,(!t.domNodes.caption.style.opacity||t.domNodes.caption.style.opacity>0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=t.controlCoordinates.targetPinchDistance,t.controlCoordinates.initialScale=t.controlCoordinates.targetScale,t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY)):(t.controlCoordinates.targetScale=t.controlCoordinates.initialScale,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.pointerOffsetX-(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialOffsetX),t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.pointerOffsetY-(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialOffsetY),t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),Math.abs(t.controlCoordinates.targetOffsetX)===Math.abs(t.controlCoordinates.limitOffsetX)&&(t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialPointerOffsetX=t.controlCoordinates.pointerOffsetX),Math.abs(t.controlCoordinates.targetOffsetY)===Math.abs(t.controlCoordinates.limitOffsetY)&&(t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.controlCoordinates.initialPointerOffsetY=t.controlCoordinates.pointerOffsetY),t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale))}if(b.type==="mousemove"&&t.controlCoordinates.mousedown){if(b.type=="touchmove")return!0;if(b.preventDefault(),t.controlCoordinates.capture===!1)return!1;t.controlCoordinates.pointerOffsetX=b.clientX,t.controlCoordinates.pointerOffsetY=b.clientY,t.controlCoordinates.targetScale=t.controlCoordinates.initialScale,t.controlCoordinates.limitOffsetX=(t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale-t.controlCoordinates.containerWidth)/2,t.controlCoordinates.limitOffsetY=(t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale-t.controlCoordinates.containerHeight)/2,t.controlCoordinates.targetOffsetX=t.controlCoordinates.imgWidth*t.controlCoordinates.targetScale<=t.controlCoordinates.containerWidth?0:t.minMax(t.controlCoordinates.pointerOffsetX-(t.controlCoordinates.initialPointerOffsetX-t.controlCoordinates.initialOffsetX),t.controlCoordinates.limitOffsetX*-1,t.controlCoordinates.limitOffsetX),t.controlCoordinates.targetOffsetY=t.controlCoordinates.imgHeight*t.controlCoordinates.targetScale<=t.controlCoordinates.containerHeight?0:t.minMax(t.controlCoordinates.pointerOffsetY-(t.controlCoordinates.initialPointerOffsetY-t.controlCoordinates.initialOffsetY),t.controlCoordinates.limitOffsetY*-1,t.controlCoordinates.limitOffsetY),Math.abs(t.controlCoordinates.targetOffsetX)===Math.abs(t.controlCoordinates.limitOffsetX)&&(t.controlCoordinates.initialOffsetX=t.controlCoordinates.targetOffsetX,t.controlCoordinates.initialPointerOffsetX=t.controlCoordinates.pointerOffsetX),Math.abs(t.controlCoordinates.targetOffsetY)===Math.abs(t.controlCoordinates.limitOffsetY)&&(t.controlCoordinates.initialOffsetY=t.controlCoordinates.targetOffsetY,t.controlCoordinates.initialPointerOffsetY=t.controlCoordinates.pointerOffsetY),t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.zoomPanElement(t.controlCoordinates.targetOffsetX+"px",t.controlCoordinates.targetOffsetY+"px",t.controlCoordinates.targetScale)}t.controlCoordinates.zoomed||(t.controlCoordinates.swipeEnd=b.pageX||b.touches[0].pageX,t.controlCoordinates.swipeYEnd=b.pageY||b.touches[0].pageY,t.controlCoordinates.swipeDiff=t.controlCoordinates.swipeStart-t.controlCoordinates.swipeEnd,t.controlCoordinates.swipeYDiff=t.controlCoordinates.swipeYStart-t.controlCoordinates.swipeYEnd,t.options.animationSlide&&t.slide(0,-t.controlCoordinates.swipeDiff+"px"))}),this.addEventListener(this.domNodes.image,["touchend."+this.eventNamespace,"mouseup."+this.eventNamespace,"touchcancel."+this.eventNamespace,"mouseleave."+this.eventNamespace,"pointerup","pointercancel","MSPointerUp","MSPointerCancel"],function(b){if(t.isTouchDevice&&b.type==="touchend"&&(t.controlCoordinates.touchCount=b.touches.length,t.controlCoordinates.touchCount===0?(t.currentImage&&t.setZoomData(t.controlCoordinates.initialScale,t.controlCoordinates.targetOffsetX,t.controlCoordinates.targetOffsetY),t.controlCoordinates.initialScale===1&&(t.controlCoordinates.zoomed=!1,t.domNodes.caption.style.display==="none"&&t.fadeIn(t.domNodes.caption,t.options.fadeSpeed)),t.controlCoordinates.initialPinchDistance=null,t.controlCoordinates.capture=!1):t.controlCoordinates.touchCount===1?(t.controlCoordinates.initialPointerOffsetX=b.touches[0].clientX,t.controlCoordinates.initialPointerOffsetY=b.touches[0].clientY):t.controlCoordinates.touchCount>1&&(t.controlCoordinates.initialPinchDistance=null)),t.controlCoordinates.mousedown){t.controlCoordinates.mousedown=!1;var o=!0;t.options.loop||(t.currentImageIndex===0&&t.controlCoordinates.swipeDiff<0&&(o=!1),t.currentImageIndex>=t.relatedElements.length-1&&t.controlCoordinates.swipeDiff>0&&(o=!1)),Math.abs(t.controlCoordinates.swipeDiff)>t.options.swipeTolerance&&o?t.loadImage(t.controlCoordinates.swipeDiff>0?1:-1):t.options.animationSlide&&t.slide(t.options.animationSpeed/1e3,"0px"),t.options.swipeClose&&Math.abs(t.controlCoordinates.swipeYDiff)>50&&Math.abs(t.controlCoordinates.swipeDiff)0)&&t.domNodes.caption.style.display!=="none"&&t.fadeOut(t.domNodes.caption,t.options.fadeSpeed),t.controlCoordinates.zoomed=!0),setTimeout(function(){t.currentImage&&(t.currentImage.classList.remove("sl-transition"),t.currentImage.style[t.transitionPrefix+"transform-origin"]=null)},200),t.controlCoordinates.capture=!0,!1})}},{key:"getDimensions",value:function(t){var e=window.getComputedStyle(t),b=t.offsetHeight,o=t.offsetWidth,l=parseFloat(e.borderTopWidth),n=parseFloat(e.borderBottomWidth),a=parseFloat(e.paddingTop),d=parseFloat(e.paddingBottom),r=parseFloat(e.borderLeftWidth),m=parseFloat(e.borderRightWidth),C=parseFloat(e.paddingLeft),I=parseFloat(e.paddingRight);return{height:b-n-l-a-d,width:o-r-m-C-I}}},{key:"updateHash",value:function(){var t="pid="+(this.currentImageIndex+1),e=window.location.href.split("#")[0]+"#"+t;this.hashReseted=!1,this.pushStateSupport?window.history[this.historyHasChanges?"replaceState":"pushState"]("",document.title,e):this.historyHasChanges?window.location.replace(e):window.location.hash=t,this.historyHasChanges||(this.urlChangedOnce=!0),this.historyHasChanges=!0}},{key:"resetHash",value:function(){this.hashReseted=!0,this.urlChangedOnce?history.back():this.pushStateSupport?history.pushState("",document.title,window.location.pathname+window.location.search):window.location.hash="",clearTimeout(this.historyUpdateTimeout)}},{key:"updateURL",value:function(){clearTimeout(this.historyUpdateTimeout),this.historyHasChanges?this.historyUpdateTimeout=setTimeout(this.updateHash.bind(this),800):this.updateHash()}},{key:"setCaption",value:function(t,e,b){var o=this;if(this.options.captions&&t&&t!==""&&typeof t<"u"){var l,n=!((l=b??this.options.captionHTML)!==null&&l!==void 0)||l?"innerHTML":"innerText";this.hide(this.domNodes.caption),this.domNodes.caption.style.width=e+"px",this.domNodes.caption[n]=t,this.domNodes.image.appendChild(this.domNodes.caption),setTimeout(function(){o.fadeIn(o.domNodes.caption,o.options.fadeSpeed)},this.options.captionDelay)}}},{key:"slide",value:function(t,e){if(!this.transitionCapable)return this.domNodes.image.style.left=e;this.domNodes.image.style[this.transitionPrefix+"transform"]="translateX("+e+")",this.domNodes.image.style[this.transitionPrefix+"transition"]=this.transitionPrefix+"transform "+t+"s linear"}},{key:"getRelated",value:function(t){var e;return t&&t!==!1&&t!=="nofollow"?e=Array.from(this.elements).filter(function(b){return b.getAttribute("rel")===t}):e=this.elements,e}},{key:"openImage",value:function(t){var e=this;t.dispatchEvent(new Event("show."+this.eventNamespace)),this.globalScrollbarWidth=this.getScrollbarWidth(),this.options.disableScroll&&(this.toggleScrollbar("hide"),this.globalScrollbarWidth=0),this.options.htmlClass&&this.options.htmlClass!==""&&document.querySelector("html").classList.add(this.options.htmlClass),document.body.appendChild(this.domNodes.wrapper),this.domNodes.wrapper.appendChild(this.domNodes.image),this.options.overlay&&document.body.appendChild(this.domNodes.overlay),this.relatedElements=this.getRelated(t.rel),this.options.showCounter&&(this.relatedElements.length==1&&this.domNodes.wrapper.contains(this.domNodes.counter)?this.domNodes.wrapper.removeChild(this.domNodes.counter):this.relatedElements.length>1&&!this.domNodes.wrapper.contains(this.domNodes.counter)&&this.domNodes.wrapper.appendChild(this.domNodes.counter)),this.options.download&&this.domNodes.download&&this.domNodes.wrapper.appendChild(this.domNodes.download),this.isAnimating=!0,this.currentImageIndex=this.relatedElements.indexOf(t);var b=t.getAttribute(this.options.sourceAttr);this.currentImage=document.createElement("img"),this.currentImage.style.display="none",this.currentImage.setAttribute("src",b),this.currentImage.dataset.scale=1,this.currentImage.dataset.translateX=0,this.currentImage.dataset.translateY=0,this.loadedImages.indexOf(b)===-1&&this.loadedImages.push(b),this.domNodes.image.innerHTML="",this.domNodes.image.setAttribute("style",""),this.domNodes.image.appendChild(this.currentImage),this.fadeIn(this.domNodes.overlay,this.options.fadeSpeed),this.fadeIn([this.domNodes.counter,this.domNodes.navigation,this.domNodes.closeButton,this.domNodes.download],this.options.fadeSpeed),this.show(this.domNodes.spinner),this.domNodes.counter.querySelector(".sl-current").innerHTML=this.currentImageIndex+1,this.domNodes.counter.querySelector(".sl-total").innerHTML=this.relatedElements.length,this.adjustImage(),this.options.preloading&&this.preload(),setTimeout(function(){t.dispatchEvent(new Event("shown."+e.eventNamespace))},this.options.animationSpeed)}},{key:"forceFocus",value:function(){var t=this;this.removeEventListener(document,"focusin."+this.eventNamespace),this.addEventListener(document,"focusin."+this.eventNamespace,function(e){document!==e.target&&t.domNodes.wrapper!==e.target&&!t.domNodes.wrapper.contains(e.target)&&t.domNodes.wrapper.focus()})}},{key:"addEventListener",value:function(t,e,b,o){t=this.wrap(t),e=this.wrap(e);var l=E(t),n;try{for(l.s();!(n=l.n()).done;){var a=n.value;a.namespaces||(a.namespaces={});var d=E(e),r;try{for(d.s();!(r=d.n()).done;){var m=r.value,C=o||!1,I=["touchstart","touchmove","mousewheel","DOMMouseScroll"].indexOf(m.split(".")[0])>=0;I&&this.isPassiveEventsSupported&&(cb(C)==="object"?C.passive=!0:C={passive:!0}),a.namespaces[m]=b,a.addEventListener(m.split(".")[0],b,C)}}catch(g){d.e(g)}finally{d.f()}}}catch(g){l.e(g)}finally{l.f()}}},{key:"removeEventListener",value:function(t,e){t=this.wrap(t),e=this.wrap(e);var b=E(t),o;try{for(b.s();!(o=b.n()).done;){var l=o.value,n=E(e),a;try{for(n.s();!(a=n.n()).done;){var d=a.value;l.namespaces&&l.namespaces[d]&&(l.removeEventListener(d.split(".")[0],l.namespaces[d]),delete l.namespaces[d])}}catch(r){n.e(r)}finally{n.f()}}}catch(r){b.e(r)}finally{b.f()}}},{key:"fadeOut",value:function(t,e,b){var o=this;t=this.wrap(t);var l=E(t),n;try{for(l.s();!(n=l.n()).done;){var a=n.value;a.style.opacity=parseFloat(a)||window.getComputedStyle(a).getPropertyValue("opacity")}}catch(m){l.e(m)}finally{l.f()}this.isFadeIn=!1;var d=16.66666/(e||this.options.fadeSpeed),r=function m(){var C=parseFloat(t[0].style.opacity);if((C-=d)<0){var I=E(t),g;try{for(I.s();!(g=I.n()).done;){var Z=g.value;Z.style.display="none",Z.style.opacity=1}}catch(V){I.e(V)}finally{I.f()}b&&b.call(o,t)}else{var W=E(t),u;try{for(W.s();!(u=W.n()).done;){var h=u.value;h.style.opacity=C}}catch(V){W.e(V)}finally{W.f()}requestAnimationFrame(m)}};r()}},{key:"fadeIn",value:function(t,e,b,o){var l=this;t=this.wrap(t);var n=E(t),a;try{for(n.s();!(a=n.n()).done;){var d=a.value;d&&(d.style.opacity=0,d.style.display=o||"block")}}catch(I){n.e(I)}finally{n.f()}this.isFadeIn=!0;var r=parseFloat(t[0].dataset.opacityTarget||1),m=16.66666*r/(e||this.options.fadeSpeed),C=function I(){var g=parseFloat(t[0].style.opacity);if((g+=m)>r){var h=E(t),V;try{for(h.s();!(V=h.n()).done;){var G=V.value;G&&(G.style.opacity=r)}}catch(F){h.e(F)}finally{h.f()}b&&b.call(l,t)}else{var Z=E(t),W;try{for(Z.s();!(W=Z.n()).done;){var u=W.value;u&&(u.style.opacity=g)}}catch(F){Z.e(F)}finally{Z.f()}if(!l.isFadeIn)return;requestAnimationFrame(I)}};C()}},{key:"hide",value:function(t){t=this.wrap(t);var e=E(t),b;try{for(e.s();!(b=e.n()).done;){var o=b.value;o.style.display!="none"&&(o.dataset.initialDisplay=o.style.display),o.style.display="none"}}catch(l){e.e(l)}finally{e.f()}}},{key:"show",value:function(t,e){t=this.wrap(t);var b=E(t),o;try{for(b.s();!(o=b.n()).done;){var l=o.value;l.style.display=l.dataset.initialDisplay||e||"block"}}catch(n){b.e(n)}finally{b.f()}}},{key:"wrap",value:function(t){return typeof t[Symbol.iterator]=="function"&&typeof t!="string"?t:[t]}},{key:"on",value:function(t,e){t=this.wrap(t);var b=E(this.elements),o;try{for(b.s();!(o=b.n()).done;){var l=o.value;l.fullyNamespacedEvents||(l.fullyNamespacedEvents={});var n=E(t),a;try{for(n.s();!(a=n.n()).done;){var d=a.value;l.fullyNamespacedEvents[d]=e,l.addEventListener(d,e)}}catch(r){n.e(r)}finally{n.f()}}}catch(r){b.e(r)}finally{b.f()}return this}},{key:"off",value:function(t){t=this.wrap(t);var e=E(this.elements),b;try{for(e.s();!(b=e.n()).done;){var o=b.value,l=E(t),n;try{for(l.s();!(n=l.n()).done;){var a=n.value;typeof o.fullyNamespacedEvents<"u"&&a in o.fullyNamespacedEvents&&o.removeEventListener(a,o.fullyNamespacedEvents[a])}}catch(d){l.e(d)}finally{l.f()}}}catch(d){e.e(d)}finally{e.f()}return this}},{key:"open",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;t=t||this.elements[0],typeof jQuery<"u"&&t instanceof jQuery&&(t=t.get(0)),e>0&&(t=this.elements[e]),this.initialImageIndex=this.elements.indexOf(t),this.initialImageIndex>-1&&this.openImage(t)}},{key:"openPosition",value:function(t){var e=this.elements[t];this.open(e,t)}},{key:"next",value:function(){this.loadImage(1)}},{key:"prev",value:function(){this.loadImage(-1)}},{key:"getLighboxData",value:function(){return{currentImageIndex:this.currentImageIndex,currentImage:this.currentImage,globalScrollbarWidth:this.globalScrollbarWidth}}},{key:"destroy",value:function(){this.off(["close."+this.eventNamespace,"closed."+this.eventNamespace,"nextImageLoaded."+this.eventNamespace,"prevImageLoaded."+this.eventNamespace,"change."+this.eventNamespace,"nextDone."+this.eventNamespace,"prevDone."+this.eventNamespace,"error."+this.eventNamespace,"changed."+this.eventNamespace,"next."+this.eventNamespace,"prev."+this.eventNamespace,"show."+this.eventNamespace,"shown."+this.eventNamespace]),this.removeEventListener(this.elements,"click."+this.eventNamespace),this.removeEventListener(document,"focusin."+this.eventNamespace),this.removeEventListener(document.body,"contextmenu."+this.eventNamespace),this.removeEventListener(document.body,"keyup."+this.eventNamespace),this.removeEventListener(this.domNodes.navigation.getElementsByTagName("button"),"click."+this.eventNamespace),this.removeEventListener(this.domNodes.closeButton,"click."+this.eventNamespace),this.removeEventListener(window,"resize."+this.eventNamespace),this.removeEventListener(window,"hashchange."+this.eventNamespace),this.close(),this.isOpen&&(document.body.removeChild(this.domNodes.wrapper),document.body.removeChild(this.domNodes.overlay)),this.elements=null}},{key:"refresh",value:function(){if(!this.initialSelector)throw"refreshing only works when you initialize using a selector!";var t=this.options,e=this.initialSelector;return this.destroy(),this.constructor(e,t),this}}]),c}(),TI=Cl;Oc.default=TI;window.SimpleLightbox=Cl});var lc={};Ql(lc,{afterMain:()=>Fb,afterRead:()=>Zb,afterWrite:()=>Wb,applyStyles:()=>ei,arrow:()=>$i,auto:()=>hi,basePlacements:()=>Xt,beforeMain:()=>Xb,beforeRead:()=>gb,beforeWrite:()=>Cb,bottom:()=>z,clippingParents:()=>zc,computeStyles:()=>oi,createPopper:()=>Yi,createPopperBase:()=>Ab,createPopperLite:()=>fb,detectOverflow:()=>K,end:()=>pt,eventListeners:()=>li,flip:()=>cc,hide:()=>ec,left:()=>w,main:()=>Gb,modifierPhases:()=>jc,offset:()=>bc,placements:()=>xi,popper:()=>Lt,popperGenerator:()=>St,popperOffsets:()=>di,preventOverflow:()=>oc,read:()=>mb,reference:()=>Hc,right:()=>k,start:()=>mt,top:()=>N,variationPlacements:()=>Pi,viewport:()=>Ri,write:()=>Bb});var N="top",z="bottom",k="right",w="left",hi="auto",Xt=[N,z,k,w],mt="start",pt="end",zc="clippingParents",Ri="viewport",Lt="popper",Hc="reference",Pi=Xt.reduce(function(c,i){return c.concat([i+"-"+mt,i+"-"+pt])},[]),xi=[].concat(Xt,[hi]).reduce(function(c,i){return c.concat([i,i+"-"+mt,i+"-"+pt])},[]),gb="beforeRead",mb="read",Zb="afterRead",Xb="beforeMain",Gb="main",Fb="afterMain",Cb="beforeWrite",Bb="write",Wb="afterWrite",jc=[gb,mb,Zb,Xb,Gb,Fb,Cb,Bb,Wb];function j(c){return c?(c.nodeName||"").toLowerCase():null}function J(c){if(c==null)return window;if(c.toString()!=="[object Window]"){var i=c.ownerDocument;return i&&i.defaultView||window}return c}function it(c){var i=J(c).Element;return c instanceof i||c instanceof Element}function H(c){var i=J(c).HTMLElement;return c instanceof i||c instanceof HTMLElement}function ci(c){if(typeof ShadowRoot>"u")return!1;var i=J(c).ShadowRoot;return c instanceof i||c instanceof ShadowRoot}function yl(c){var i=c.state;Object.keys(i.elements).forEach(function(t){var e=i.styles[t]||{},b=i.attributes[t]||{},o=i.elements[t];!H(o)||!j(o)||(Object.assign(o.style,e),Object.keys(b).forEach(function(l){var n=b[l];n===!1?o.removeAttribute(l):o.setAttribute(l,n===!0?"":n)}))})}function Al(c){var i=c.state,t={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,t.popper),i.styles=t,i.elements.arrow&&Object.assign(i.elements.arrow.style,t.arrow),function(){Object.keys(i.elements).forEach(function(e){var b=i.elements[e],o=i.attributes[e]||{},l=Object.keys(i.styles.hasOwnProperty(e)?i.styles[e]:t[e]),n=l.reduce(function(a,d){return a[d]="",a},{});!H(b)||!j(b)||(Object.assign(b.style,n),Object.keys(o).forEach(function(a){b.removeAttribute(a)}))})}}var ei={name:"applyStyles",enabled:!0,phase:"write",fn:yl,effect:Al,requires:["computeStyles"]};function S(c){return c.split("-")[0]}var dt=Math.max,Jt=Math.min,Gt=Math.round;function bi(){var c=navigator.userAgentData;return c!=null&&c.brands&&Array.isArray(c.brands)?c.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Vi(){return!/^((?!chrome|android).)*safari/i.test(bi())}function ct(c,i,t){i===void 0&&(i=!1),t===void 0&&(t=!1);var e=c.getBoundingClientRect(),b=1,o=1;i&&H(c)&&(b=c.offsetWidth>0&&Gt(e.width)/c.offsetWidth||1,o=c.offsetHeight>0&&Gt(e.height)/c.offsetHeight||1);var l=it(c)?J(c):window,n=l.visualViewport,a=!Vi()&&t,d=(e.left+(a&&n?n.offsetLeft:0))/b,r=(e.top+(a&&n?n.offsetTop:0))/o,m=e.width/b,C=e.height/o;return{width:m,height:C,top:r,right:d+m,bottom:r+C,left:d,x:d,y:r}}function Nt(c){var i=ct(c),t=c.offsetWidth,e=c.offsetHeight;return Math.abs(i.width-t)<=1&&(t=i.width),Math.abs(i.height-e)<=1&&(e=i.height),{x:c.offsetLeft,y:c.offsetTop,width:t,height:e}}function Qi(c,i){var t=i.getRootNode&&i.getRootNode();if(c.contains(i))return!0;if(t&&ci(t)){var e=i;do{if(e&&c.isSameNode(e))return!0;e=e.parentNode||e.host}while(e)}return!1}function M(c){return J(c).getComputedStyle(c)}function Sc(c){return["table","td","th"].indexOf(j(c))>=0}function D(c){return((it(c)?c.ownerDocument:c.document)||window.document).documentElement}function Ft(c){return j(c)==="html"?c:c.assignedSlot||c.parentNode||(ci(c)?c.host:null)||D(c)}function ub(c){return!H(c)||M(c).position==="fixed"?null:c.offsetParent}function fl(c){var i=/firefox/i.test(bi()),t=/Trident/i.test(bi());if(t&&H(c)){var e=M(c);if(e.position==="fixed")return null}var b=Ft(c);for(ci(b)&&(b=b.host);H(b)&&["html","body"].indexOf(j(b))<0;){var o=M(b);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||i&&o.willChange==="filter"||i&&o.filter&&o.filter!=="none")return b;b=b.parentNode}return null}function rt(c){for(var i=J(c),t=ub(c);t&&Sc(t)&&M(t).position==="static";)t=ub(t);return t&&(j(t)==="html"||j(t)==="body"&&M(t).position==="static")?i:t||fl(c)||i}function wt(c){return["top","bottom"].indexOf(c)>=0?"x":"y"}function kt(c,i,t){return dt(c,Jt(i,t))}function pb(c,i,t){var e=kt(c,i,t);return e>t?t:e}function yi(){return{top:0,right:0,bottom:0,left:0}}function Ai(c){return Object.assign({},yi(),c)}function fi(c,i){return i.reduce(function(t,e){return t[e]=c,t},{})}var Ul=function(i,t){return i=typeof i=="function"?i(Object.assign({},t.rects,{placement:t.placement})):i,Ai(typeof i!="number"?i:fi(i,Xt))};function Yl(c){var i,t=c.state,e=c.name,b=c.options,o=t.elements.arrow,l=t.modifiersData.popperOffsets,n=S(t.placement),a=wt(n),d=[w,k].indexOf(n)>=0,r=d?"height":"width";if(!(!o||!l)){var m=Ul(b.padding,t),C=Nt(o),I=a==="y"?N:w,g=a==="y"?z:k,Z=t.rects.reference[r]+t.rects.reference[a]-l[a]-t.rects.popper[r],W=l[a]-t.rects.reference[a],u=rt(o),h=u?a==="y"?u.clientHeight||0:u.clientWidth||0:0,V=Z/2-W/2,G=m[I],F=h-C[r]-m[g],p=h/2-C[r]/2+V,Q=kt(G,p,F),s=a;t.modifiersData[e]=(i={},i[s]=Q,i.centerOffset=Q-p,i)}}function Ol(c){var i=c.state,t=c.options,e=t.element,b=e===void 0?"[data-popper-arrow]":e;b!=null&&(typeof b=="string"&&(b=i.elements.popper.querySelector(b),!b)||Qi(i.elements.popper,b)&&(i.elements.arrow=b))}var $i={name:"arrow",enabled:!0,phase:"main",fn:Yl,effect:Ol,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(c){return c.split("-")[1]}var vl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ll(c,i){var t=c.x,e=c.y,b=i.devicePixelRatio||1;return{x:Gt(t*b)/b||0,y:Gt(e*b)/b||0}}function hb(c){var i,t=c.popper,e=c.popperRect,b=c.placement,o=c.variation,l=c.offsets,n=c.position,a=c.gpuAcceleration,d=c.adaptive,r=c.roundOffsets,m=c.isFixed,C=l.x,I=C===void 0?0:C,g=l.y,Z=g===void 0?0:g,W=typeof r=="function"?r({x:I,y:Z}):{x:I,y:Z};I=W.x,Z=W.y;var u=l.hasOwnProperty("x"),h=l.hasOwnProperty("y"),V=w,G=N,F=window;if(d){var p=rt(t),Q="clientHeight",s="clientWidth";if(p===J(t)&&(p=D(t),M(p).position!=="static"&&n==="absolute"&&(Q="scrollHeight",s="scrollWidth")),p=p,b===N||(b===w||b===k)&&o===pt){G=z;var R=m&&p===F&&F.visualViewport?F.visualViewport.height:p[Q];Z-=R-e.height,Z*=a?1:-1}if(b===w||(b===N||b===z)&&o===pt){V=k;var X=m&&p===F&&F.visualViewport?F.visualViewport.width:p[s];I-=X-e.width,I*=a?1:-1}}var x=Object.assign({position:n},d&&vl),A=r===!0?Ll({x:I,y:Z},J(t)):{x:I,y:Z};if(I=A.x,Z=A.y,a){var U;return Object.assign({},x,(U={},U[G]=h?"0":"",U[V]=u?"0":"",U.transform=(F.devicePixelRatio||1)<=1?"translate("+I+"px, "+Z+"px)":"translate3d("+I+"px, "+Z+"px, 0)",U))}return Object.assign({},x,(i={},i[G]=h?Z+"px":"",i[V]=u?I+"px":"",i.transform="",i))}function Jl(c){var i=c.state,t=c.options,e=t.gpuAcceleration,b=e===void 0?!0:e,o=t.adaptive,l=o===void 0?!0:o,n=t.roundOffsets,a=n===void 0?!0:n,d={placement:S(i.placement),variation:et(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:b,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,hb(Object.assign({},d,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:l,roundOffsets:a})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,hb(Object.assign({},d,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Jl,data:{}};var qi={passive:!0};function Nl(c){var i=c.state,t=c.instance,e=c.options,b=e.scroll,o=b===void 0?!0:b,l=e.resize,n=l===void 0?!0:l,a=J(i.elements.popper),d=[].concat(i.scrollParents.reference,i.scrollParents.popper);return o&&d.forEach(function(r){r.addEventListener("scroll",t.update,qi)}),n&&a.addEventListener("resize",t.update,qi),function(){o&&d.forEach(function(r){r.removeEventListener("scroll",t.update,qi)}),n&&a.removeEventListener("resize",t.update,qi)}}var li={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nl,data:{}};var wl={left:"right",right:"left",bottom:"top",top:"bottom"};function ni(c){return c.replace(/left|right|bottom|top/g,function(i){return wl[i]})}var kl={start:"end",end:"start"};function tc(c){return c.replace(/start|end/g,function(i){return kl[i]})}function zt(c){var i=J(c),t=i.pageXOffset,e=i.pageYOffset;return{scrollLeft:t,scrollTop:e}}function Ht(c){return ct(D(c)).left+zt(c).scrollLeft}function Tc(c,i){var t=J(c),e=D(c),b=t.visualViewport,o=e.clientWidth,l=e.clientHeight,n=0,a=0;if(b){o=b.width,l=b.height;var d=Vi();(d||!d&&i==="fixed")&&(n=b.offsetLeft,a=b.offsetTop)}return{width:o,height:l,x:n+Ht(c),y:a}}function Dc(c){var i,t=D(c),e=zt(c),b=(i=c.ownerDocument)==null?void 0:i.body,o=dt(t.scrollWidth,t.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),l=dt(t.scrollHeight,t.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),n=-e.scrollLeft+Ht(c),a=-e.scrollTop;return M(b||t).direction==="rtl"&&(n+=dt(t.clientWidth,b?b.clientWidth:0)-o),{width:o,height:l,x:n,y:a}}function jt(c){var i=M(c),t=i.overflow,e=i.overflowX,b=i.overflowY;return/auto|scroll|overlay|hidden/.test(t+b+e)}function ic(c){return["html","body","#document"].indexOf(j(c))>=0?c.ownerDocument.body:H(c)&&jt(c)?c:ic(Ft(c))}function ht(c,i){var t;i===void 0&&(i=[]);var e=ic(c),b=e===((t=c.ownerDocument)==null?void 0:t.body),o=J(e),l=b?[o].concat(o.visualViewport||[],jt(e)?e:[]):e,n=i.concat(l);return b?n:n.concat(ht(Ft(l)))}function ai(c){return Object.assign({},c,{left:c.x,top:c.y,right:c.x+c.width,bottom:c.y+c.height})}function zl(c,i){var t=ct(c,!1,i==="fixed");return t.top=t.top+c.clientTop,t.left=t.left+c.clientLeft,t.bottom=t.top+c.clientHeight,t.right=t.left+c.clientWidth,t.width=c.clientWidth,t.height=c.clientHeight,t.x=t.left,t.y=t.top,t}function Rb(c,i,t){return i===Ri?ai(Tc(c,t)):it(i)?zl(i,t):ai(Dc(D(c)))}function Hl(c){var i=ht(Ft(c)),t=["absolute","fixed"].indexOf(M(c).position)>=0,e=t&&H(c)?rt(c):c;return it(e)?i.filter(function(b){return it(b)&&Qi(b,e)&&j(b)!=="body"}):[]}function Ec(c,i,t,e){var b=i==="clippingParents"?Hl(c):[].concat(i),o=[].concat(b,[t]),l=o[0],n=o.reduce(function(a,d){var r=Rb(c,d,e);return a.top=dt(r.top,a.top),a.right=Jt(r.right,a.right),a.bottom=Jt(r.bottom,a.bottom),a.left=dt(r.left,a.left),a},Rb(c,l,e));return n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}function Ui(c){var i=c.reference,t=c.element,e=c.placement,b=e?S(e):null,o=e?et(e):null,l=i.x+i.width/2-t.width/2,n=i.y+i.height/2-t.height/2,a;switch(b){case N:a={x:l,y:i.y-t.height};break;case z:a={x:l,y:i.y+i.height};break;case k:a={x:i.x+i.width,y:n};break;case w:a={x:i.x-t.width,y:n};break;default:a={x:i.x,y:i.y}}var d=b?wt(b):null;if(d!=null){var r=d==="y"?"height":"width";switch(o){case mt:a[d]=a[d]-(i[r]/2-t[r]/2);break;case pt:a[d]=a[d]+(i[r]/2-t[r]/2);break;default:}}return a}function K(c,i){i===void 0&&(i={});var t=i,e=t.placement,b=e===void 0?c.placement:e,o=t.strategy,l=o===void 0?c.strategy:o,n=t.boundary,a=n===void 0?zc:n,d=t.rootBoundary,r=d===void 0?Ri:d,m=t.elementContext,C=m===void 0?Lt:m,I=t.altBoundary,g=I===void 0?!1:I,Z=t.padding,W=Z===void 0?0:Z,u=Ai(typeof W!="number"?W:fi(W,Xt)),h=C===Lt?Hc:Lt,V=c.rects.popper,G=c.elements[g?h:C],F=Ec(it(G)?G:G.contextElement||D(c.elements.popper),a,r,l),p=ct(c.elements.reference),Q=Ui({reference:p,element:V,strategy:"absolute",placement:b}),s=ai(Object.assign({},V,Q)),R=C===Lt?s:p,X={top:F.top-R.top+u.top,bottom:R.bottom-F.bottom+u.bottom,left:F.left-R.left+u.left,right:R.right-F.right+u.right},x=c.modifiersData.offset;if(C===Lt&&x){var A=x[b];Object.keys(X).forEach(function(U){var O=[k,z].indexOf(U)>=0?1:-1,Y=[N,z].indexOf(U)>=0?"y":"x";X[U]+=A[Y]*O})}return X}function Mc(c,i){i===void 0&&(i={});var t=i,e=t.placement,b=t.boundary,o=t.rootBoundary,l=t.padding,n=t.flipVariations,a=t.allowedAutoPlacements,d=a===void 0?xi:a,r=et(e),m=r?n?Pi:Pi.filter(function(g){return et(g)===r}):Xt,C=m.filter(function(g){return d.indexOf(g)>=0});C.length===0&&(C=m);var I=C.reduce(function(g,Z){return g[Z]=K(c,{placement:Z,boundary:b,rootBoundary:o,padding:l})[S(Z)],g},{});return Object.keys(I).sort(function(g,Z){return I[g]-I[Z]})}function jl(c){if(S(c)===hi)return[];var i=ni(c);return[tc(c),i,tc(i)]}function Sl(c){var i=c.state,t=c.options,e=c.name;if(!i.modifiersData[e]._skip){for(var b=t.mainAxis,o=b===void 0?!0:b,l=t.altAxis,n=l===void 0?!0:l,a=t.fallbackPlacements,d=t.padding,r=t.boundary,m=t.rootBoundary,C=t.altBoundary,I=t.flipVariations,g=I===void 0?!0:I,Z=t.allowedAutoPlacements,W=i.options.placement,u=S(W),h=u===W,V=a||(h||!g?[ni(W)]:jl(W)),G=[W].concat(V).reduce(function(ii,ut){return ii.concat(S(ut)===hi?Mc(i,{placement:ut,boundary:r,rootBoundary:m,padding:d,flipVariations:g,allowedAutoPlacements:Z}):ut)},[]),F=i.rects.reference,p=i.rects.popper,Q=new Map,s=!0,R=G[0],X=0;X=0,Y=O?"width":"height",v=K(i,{placement:x,boundary:r,rootBoundary:m,altBoundary:C,padding:d}),_=O?U?k:w:U?z:N;F[Y]>p[Y]&&(_=ni(_));var ti=ni(_),P=[];if(o&&P.push(v[A]<=0),n&&P.push(v[_]<=0,v[ti]<=0),P.every(function(ii){return ii})){R=x,s=!1;break}Q.set(x,P)}if(s)for(var Ei=g?3:1,Lc=function(ut){var pi=G.find(function(Ki){var Ot=Q.get(Ki);if(Ot)return Ot.slice(0,ut).every(function(Jc){return Jc})});if(pi)return R=pi,"break"},ui=Ei;ui>0;ui--){var Mi=Lc(ui);if(Mi==="break")break}i.placement!==R&&(i.modifiersData[e]._skip=!0,i.placement=R,i.reset=!0)}}var cc={name:"flip",enabled:!0,phase:"main",fn:Sl,requiresIfExists:["offset"],data:{_skip:!1}};function xb(c,i,t){return t===void 0&&(t={x:0,y:0}),{top:c.top-i.height-t.y,right:c.right-i.width+t.x,bottom:c.bottom-i.height+t.y,left:c.left-i.width-t.x}}function Vb(c){return[N,k,z,w].some(function(i){return c[i]>=0})}function Tl(c){var i=c.state,t=c.name,e=i.rects.reference,b=i.rects.popper,o=i.modifiersData.preventOverflow,l=K(i,{elementContext:"reference"}),n=K(i,{altBoundary:!0}),a=xb(l,e),d=xb(n,b,o),r=Vb(a),m=Vb(d);i.modifiersData[t]={referenceClippingOffsets:a,popperEscapeOffsets:d,isReferenceHidden:r,hasPopperEscaped:m},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":m})}var ec={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Tl};function Dl(c,i,t){var e=S(c),b=[w,N].indexOf(e)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},i,{placement:c})):t,l=o[0],n=o[1];return l=l||0,n=(n||0)*b,[w,k].indexOf(e)>=0?{x:n,y:l}:{x:l,y:n}}function El(c){var i=c.state,t=c.options,e=c.name,b=t.offset,o=b===void 0?[0,0]:b,l=xi.reduce(function(r,m){return r[m]=Dl(m,i.rects,o),r},{}),n=l[i.placement],a=n.x,d=n.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=a,i.modifiersData.popperOffsets.y+=d),i.modifiersData[e]=l}var bc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:El};function Ml(c){var i=c.state,t=c.name;i.modifiersData[t]=Ui({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var di={name:"popperOffsets",enabled:!0,phase:"read",fn:Ml,data:{}};function Kc(c){return c==="x"?"y":"x"}function Kl(c){var i=c.state,t=c.options,e=c.name,b=t.mainAxis,o=b===void 0?!0:b,l=t.altAxis,n=l===void 0?!1:l,a=t.boundary,d=t.rootBoundary,r=t.altBoundary,m=t.padding,C=t.tether,I=C===void 0?!0:C,g=t.tetherOffset,Z=g===void 0?0:g,W=K(i,{boundary:a,rootBoundary:d,padding:m,altBoundary:r}),u=S(i.placement),h=et(i.placement),V=!h,G=wt(u),F=Kc(G),p=i.modifiersData.popperOffsets,Q=i.rects.reference,s=i.rects.popper,R=typeof Z=="function"?Z(Object.assign({},i.rects,{placement:i.placement})):Z,X=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),x=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,A={x:0,y:0};if(p){if(o){var U,O=G==="y"?N:w,Y=G==="y"?z:k,v=G==="y"?"height":"width",_=p[G],ti=_+W[O],P=_-W[Y],Ei=I?-s[v]/2:0,Lc=h===mt?Q[v]:s[v],ui=h===mt?-s[v]:-Q[v],Mi=i.elements.arrow,ii=I&&Mi?Nt(Mi):{width:0,height:0},ut=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:yi(),pi=ut[O],Ki=ut[Y],Ot=kt(0,Q[v],ii[v]),Jc=V?Q[v]/2-Ei-Ot-pi-X.mainAxis:Lc-Ot-pi-X.mainAxis,ul=V?-Q[v]/2+Ei+Ot+Ki+X.mainAxis:ui+Ot+Ki+X.mainAxis,Nc=i.elements.arrow&&rt(i.elements.arrow),pl=Nc?G==="y"?Nc.clientTop||0:Nc.clientLeft||0:0,bb=(U=x?.[G])!=null?U:0,hl=_+Jc-bb-pl,Rl=_+ul-bb,ob=kt(I?Jt(ti,hl):ti,_,I?dt(P,Rl):P);p[G]=ob,A[G]=ob-_}if(n){var lb,xl=G==="x"?N:w,Vl=G==="x"?z:k,vt=p[F],_i=F==="y"?"height":"width",nb=vt+W[xl],ab=vt-W[Vl],wc=[N,w].indexOf(u)!==-1,db=(lb=x?.[F])!=null?lb:0,rb=wc?nb:vt-Q[_i]-s[_i]-db+X.altAxis,Ib=wc?vt+Q[_i]+s[_i]-db-X.altAxis:ab,sb=I&&wc?pb(rb,vt,Ib):kt(I?rb:nb,vt,I?Ib:ab);p[F]=sb,A[F]=sb-vt}i.modifiersData[e]=A}}var oc={name:"preventOverflow",enabled:!0,phase:"main",fn:Kl,requiresIfExists:["offset"]};function _c(c){return{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}}function Pc(c){return c===J(c)||!H(c)?zt(c):_c(c)}function _l(c){var i=c.getBoundingClientRect(),t=Gt(i.width)/c.offsetWidth||1,e=Gt(i.height)/c.offsetHeight||1;return t!==1||e!==1}function $c(c,i,t){t===void 0&&(t=!1);var e=H(i),b=H(i)&&_l(i),o=D(i),l=ct(c,b,t),n={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(e||!e&&!t)&&((j(i)!=="body"||jt(o))&&(n=Pc(i)),H(i)?(a=ct(i,!0),a.x+=i.clientLeft,a.y+=i.clientTop):o&&(a.x=Ht(o))),{x:l.left+n.scrollLeft-a.x,y:l.top+n.scrollTop-a.y,width:l.width,height:l.height}}function Pl(c){var i=new Map,t=new Set,e=[];c.forEach(function(o){i.set(o.name,o)});function b(o){t.add(o.name);var l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(n){if(!t.has(n)){var a=i.get(n);a&&b(a)}}),e.push(o)}return c.forEach(function(o){t.has(o.name)||b(o)}),e}function qc(c){var i=Pl(c);return jc.reduce(function(t,e){return t.concat(i.filter(function(b){return b.phase===e}))},[])}function te(c){var i;return function(){return i||(i=new Promise(function(t){Promise.resolve().then(function(){i=void 0,t(c())})})),i}}function ie(c){var i=c.reduce(function(t,e){var b=t[e.name];return t[e.name]=b?Object.assign({},b,e,{options:Object.assign({},b.options,e.options),data:Object.assign({},b.data,e.data)}):e,t},{});return Object.keys(i).map(function(t){return i[t]})}var Qb={placement:"bottom",modifiers:[],strategy:"absolute"};function yb(){for(var c=arguments.length,i=new Array(c),t=0;t(c&&window.CSS&&window.CSS.escape&&(c=c.replace(/#([^\s"#']+)/g,(i,t)=>`#${CSS.escape(t)}`)),c),en=c=>c==null?`${c}`:Object.prototype.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase(),bn=c=>{do c+=Math.floor(Math.random()*tn);while(document.getElementById(c));return c},on=c=>{if(!c)return 0;let{transitionDuration:i,transitionDelay:t}=window.getComputedStyle(c),e=Number.parseFloat(i),b=Number.parseFloat(t);return!e&&!b?0:(i=i.split(",")[0],t=t.split(",")[0],(Number.parseFloat(i)+Number.parseFloat(t))*cn)},no=c=>{c.dispatchEvent(new Event(Ge))},Ct=c=>!c||typeof c!="object"?!1:(typeof c.jquery<"u"&&(c=c[0]),typeof c.nodeType<"u"),xt=c=>Ct(c)?c.jquery?c[0]:c:typeof c=="string"&&c.length>0?document.querySelector(lo(c)):null,Gi=c=>{if(!Ct(c)||c.getClientRects().length===0)return!1;let i=getComputedStyle(c).getPropertyValue("visibility")==="visible",t=c.closest("details:not([open])");if(!t)return i;if(t!==c){let e=c.closest("summary");if(e&&e.parentNode!==t||e===null)return!1}return i},Vt=c=>!c||c.nodeType!==Node.ELEMENT_NODE||c.classList.contains("disabled")?!0:typeof c.disabled<"u"?c.disabled:c.hasAttribute("disabled")&&c.getAttribute("disabled")!=="false",ao=c=>{if(!document.documentElement.attachShadow)return null;if(typeof c.getRootNode=="function"){let i=c.getRootNode();return i instanceof ShadowRoot?i:null}return c instanceof ShadowRoot?c:c.parentNode?ao(c.parentNode):null},Zc=()=>{},wi=c=>{c.offsetHeight},ro=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ee=[],ln=c=>{document.readyState==="loading"?(ee.length||document.addEventListener("DOMContentLoaded",()=>{for(let i of ee)i()}),ee.push(c)):c()},bt=()=>document.documentElement.dir==="rtl",lt=c=>{ln(()=>{let i=ro();if(i){let t=c.NAME,e=i.fn[t];i.fn[t]=c.jQueryInterface,i.fn[t].Constructor=c,i.fn[t].noConflict=()=>(i.fn[t]=e,c.jQueryInterface)}})},$=(c,i=[],t=c)=>typeof c=="function"?c(...i):t,Io=(c,i,t=!0)=>{if(!t){$(c);return}let b=on(i)+5,o=!1,l=({target:n})=>{n===i&&(o=!0,i.removeEventListener(Ge,l),$(c))};i.addEventListener(Ge,l),setTimeout(()=>{o||no(i)},b)},ue=(c,i,t,e)=>{let b=c.length,o=c.indexOf(i);return o===-1?!t&&e?c[b-1]:c[0]:(o+=t?1:-1,e&&(o=(o+b)%b),c[Math.max(0,Math.min(o,b-1))])},nn=/[^.]*(?=\..*)\.|.*/,an=/\..*/,dn=/::\d+$/,be={},Ub=1,so={mouseenter:"mouseover",mouseleave:"mouseout"},rn=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 go(c,i){return i&&`${i}::${Ub++}`||c.uidEvent||Ub++}function mo(c){let i=go(c);return c.uidEvent=i,be[i]=be[i]||{},be[i]}function In(c,i){return function t(e){return pe(e,{delegateTarget:c}),t.oneOff&&B.off(c,e.type,i),i.apply(c,[e])}}function sn(c,i,t){return function e(b){let o=c.querySelectorAll(i);for(let{target:l}=b;l&&l!==this;l=l.parentNode)for(let n of o)if(n===l)return pe(b,{delegateTarget:l}),e.oneOff&&B.off(c,b.type,i,t),t.apply(l,[b])}}function Zo(c,i,t=null){return Object.values(c).find(e=>e.callable===i&&e.delegationSelector===t)}function Xo(c,i,t){let e=typeof i=="string",b=e?t:i||t,o=Go(c);return rn.has(o)||(o=c),[e,b,o]}function Yb(c,i,t,e,b){if(typeof i!="string"||!c)return;let[o,l,n]=Xo(i,t,e);i in so&&(l=(g=>function(Z){if(!Z.relatedTarget||Z.relatedTarget!==Z.delegateTarget&&!Z.delegateTarget.contains(Z.relatedTarget))return g.call(this,Z)})(l));let a=mo(c),d=a[n]||(a[n]={}),r=Zo(d,l,o?t:null);if(r){r.oneOff=r.oneOff&&b;return}let m=go(l,i.replace(nn,"")),C=o?sn(c,t,l):In(c,l);C.delegationSelector=o?t:null,C.callable=l,C.oneOff=b,C.uidEvent=m,d[m]=C,c.addEventListener(n,C,o)}function Fe(c,i,t,e,b){let o=Zo(i[t],e,b);o&&(c.removeEventListener(t,o,!!b),delete i[t][o.uidEvent])}function gn(c,i,t,e){let b=i[t]||{};for(let[o,l]of Object.entries(b))o.includes(e)&&Fe(c,i,t,l.callable,l.delegationSelector)}function Go(c){return c=c.replace(an,""),so[c]||c}var B={on(c,i,t,e){Yb(c,i,t,e,!1)},one(c,i,t,e){Yb(c,i,t,e,!0)},off(c,i,t,e){if(typeof i!="string"||!c)return;let[b,o,l]=Xo(i,t,e),n=l!==i,a=mo(c),d=a[l]||{},r=i.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Fe(c,a,l,o,b?t:null);return}if(r)for(let m of Object.keys(a))gn(c,a,m,i.slice(1));for(let[m,C]of Object.entries(d)){let I=m.replace(dn,"");(!n||i.includes(I))&&Fe(c,a,l,C.callable,C.delegationSelector)}},trigger(c,i,t){if(typeof i!="string"||!c)return null;let e=ro(),b=Go(i),o=i!==b,l=null,n=!0,a=!0,d=!1;o&&e&&(l=e.Event(i,t),e(c).trigger(l),n=!l.isPropagationStopped(),a=!l.isImmediatePropagationStopped(),d=l.isDefaultPrevented());let r=pe(new Event(i,{bubbles:n,cancelable:!0}),t);return d&&r.preventDefault(),a&&c.dispatchEvent(r),r.defaultPrevented&&l&&l.preventDefault(),r}};function pe(c,i={}){for(let[t,e]of Object.entries(i))try{c[t]=e}catch{Object.defineProperty(c,t,{configurable:!0,get(){return e}})}return c}function Ob(c){if(c==="true")return!0;if(c==="false")return!1;if(c===Number(c).toString())return Number(c);if(c===""||c==="null")return null;if(typeof c!="string")return c;try{return JSON.parse(decodeURIComponent(c))}catch{return c}}function oe(c){return c.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}var Bt={setDataAttribute(c,i,t){c.setAttribute(`data-bs-${oe(i)}`,t)},removeDataAttribute(c,i){c.removeAttribute(`data-bs-${oe(i)}`)},getDataAttributes(c){if(!c)return{};let i={},t=Object.keys(c.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(let e of t){let b=e.replace(/^bs/,"");b=b.charAt(0).toLowerCase()+b.slice(1,b.length),i[b]=Ob(c.dataset[e])}return i},getDataAttribute(c,i){return Ob(c.getAttribute(`data-bs-${oe(i)}`))}},Et=class{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(i){return i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(i){return i}_mergeConfigObj(i,t){let e=Ct(t)?Bt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof e=="object"?e:{},...Ct(t)?Bt.getDataAttributes(t):{},...typeof i=="object"?i:{}}}_typeCheckConfig(i,t=this.constructor.DefaultType){for(let[e,b]of Object.entries(t)){let o=i[e],l=Ct(o)?"element":en(o);if(!new RegExp(b).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${e}" provided type "${l}" but expected type "${b}".`)}}},mn="5.3.3",tt=class extends Et{constructor(i,t){super(),i=xt(i),i&&(this._element=i,this._config=this._getConfig(t),ce.set(this._element,this.constructor.DATA_KEY,this))}dispose(){ce.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY);for(let i of Object.getOwnPropertyNames(this))this[i]=null}_queueCallback(i,t,e=!0){Io(i,t,e)}_getConfig(i){return i=this._mergeConfigObj(i,this._element),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}static getInstance(i){return ce.get(xt(i),this.DATA_KEY)}static getOrCreateInstance(i,t={}){return this.getInstance(i)||new this(i,typeof t=="object"?t:null)}static get VERSION(){return mn}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(i){return`${i}${this.EVENT_KEY}`}},le=c=>{let i=c.getAttribute("data-bs-target");if(!i||i==="#"){let t=c.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),i=t&&t!=="#"?t.trim():null}return i?i.split(",").map(t=>lo(t)).join(","):null},y={find(c,i=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(i,c))},findOne(c,i=document.documentElement){return Element.prototype.querySelector.call(i,c)},children(c,i){return[].concat(...c.children).filter(t=>t.matches(i))},parents(c,i){let t=[],e=c.parentNode.closest(i);for(;e;)t.push(e),e=e.parentNode.closest(i);return t},prev(c,i){let t=c.previousElementSibling;for(;t;){if(t.matches(i))return[t];t=t.previousElementSibling}return[]},next(c,i){let t=c.nextElementSibling;for(;t;){if(t.matches(i))return[t];t=t.nextElementSibling}return[]},focusableChildren(c){let i=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(i,c).filter(t=>!Vt(t)&&Gi(t))},getSelectorFromElement(c){let i=le(c);return i&&y.findOne(i)?i:null},getElementFromSelector(c){let i=le(c);return i?y.findOne(i):null},getMultipleElementsFromSelector(c){let i=le(c);return i?y.find(i):[]}},Rc=(c,i="hide")=>{let t=`click.dismiss${c.EVENT_KEY}`,e=c.NAME;B.on(document,t,`[data-bs-dismiss="${e}"]`,function(b){if(["A","AREA"].includes(this.tagName)&&b.preventDefault(),Vt(this))return;let o=y.getElementFromSelector(this)||this.closest(`.${e}`);c.getOrCreateInstance(o)[i]()})},Zn="alert",Xn="bs.alert",Fo=`.${Xn}`,Gn=`close${Fo}`,Fn=`closed${Fo}`,Cn="fade",Bn="show",Xc=class c extends tt{static get NAME(){return Zn}close(){if(B.trigger(this._element,Gn).defaultPrevented)return;this._element.classList.remove(Bn);let t=this._element.classList.contains(Cn);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),B.trigger(this._element,Fn),this.dispose()}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i](this)}})}};Rc(Xc,"close");lt(Xc);var Wn="button",un="bs.button",pn=`.${un}`,hn=".data-api",Rn="active",vb='[data-bs-toggle="button"]',xn=`click${pn}${hn}`,Gc=class c extends tt{static get NAME(){return Wn}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Rn))}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);i==="toggle"&&t[i]()})}};B.on(document,xn,vb,c=>{c.preventDefault();let i=c.target.closest(vb);Gc.getOrCreateInstance(i).toggle()});lt(Gc);var Vn="swipe",Fi=".bs.swipe",Qn=`touchstart${Fi}`,yn=`touchmove${Fi}`,An=`touchend${Fi}`,fn=`pointerdown${Fi}`,Un=`pointerup${Fi}`,Yn="touch",On="pen",vn="pointer-event",Ln=40,Jn={endCallback:null,leftCallback:null,rightCallback:null},Nn={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Fc=class c extends Et{constructor(i,t){super(),this._element=i,!(!i||!c.isSupported())&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Jn}static get DefaultType(){return Nn}static get NAME(){return Vn}dispose(){B.off(this._element,Fi)}_start(i){if(!this._supportPointerEvents){this._deltaX=i.touches[0].clientX;return}this._eventIsPointerPenTouch(i)&&(this._deltaX=i.clientX)}_end(i){this._eventIsPointerPenTouch(i)&&(this._deltaX=i.clientX-this._deltaX),this._handleSwipe(),$(this._config.endCallback)}_move(i){this._deltaX=i.touches&&i.touches.length>1?0:i.touches[0].clientX-this._deltaX}_handleSwipe(){let i=Math.abs(this._deltaX);if(i<=Ln)return;let t=i/this._deltaX;this._deltaX=0,t&&$(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(B.on(this._element,fn,i=>this._start(i)),B.on(this._element,Un,i=>this._end(i)),this._element.classList.add(vn)):(B.on(this._element,Qn,i=>this._start(i)),B.on(this._element,yn,i=>this._move(i)),B.on(this._element,An,i=>this._end(i)))}_eventIsPointerPenTouch(i){return this._supportPointerEvents&&(i.pointerType===On||i.pointerType===Yn)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},wn="carousel",kn="bs.carousel",At=`.${kn}`,Co=".data-api",zn="ArrowLeft",Hn="ArrowRight",jn=500,Oi="next",ri="prev",si="left",gc="right",Sn=`slide${At}`,ne=`slid${At}`,Tn=`keydown${At}`,Dn=`mouseenter${At}`,En=`mouseleave${At}`,Mn=`dragstart${At}`,Kn=`load${At}${Co}`,_n=`click${At}${Co}`,Bo="carousel",nc="active",Pn="slide",$n="carousel-item-end",qn="carousel-item-start",ta="carousel-item-next",ia="carousel-item-prev",Wo=".active",uo=".carousel-item",ca=Wo+uo,ea=".carousel-item img",ba=".carousel-indicators",oa="[data-bs-slide], [data-bs-slide-to]",la='[data-bs-ride="carousel"]',na={[zn]:gc,[Hn]:si},aa={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},da={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Li=class c extends tt{constructor(i,t){super(i,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=y.findOne(ba,this._element),this._addEventListeners(),this._config.ride===Bo&&this.cycle()}static get Default(){return aa}static get DefaultType(){return da}static get NAME(){return wn}next(){this._slide(Oi)}nextWhenVisible(){!document.hidden&&Gi(this._element)&&this.next()}prev(){this._slide(ri)}pause(){this._isSliding&&no(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){B.one(this._element,ne,()=>this.cycle());return}this.cycle()}}to(i){let t=this._getItems();if(i>t.length-1||i<0)return;if(this._isSliding){B.one(this._element,ne,()=>this.to(i));return}let e=this._getItemIndex(this._getActive());if(e===i)return;let b=i>e?Oi:ri;this._slide(b,t[i])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(i){return i.defaultInterval=i.interval,i}_addEventListeners(){this._config.keyboard&&B.on(this._element,Tn,i=>this._keydown(i)),this._config.pause==="hover"&&(B.on(this._element,Dn,()=>this.pause()),B.on(this._element,En,()=>this._maybeEnableCycle())),this._config.touch&&Fc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of y.find(ea,this._element))B.on(e,Mn,b=>b.preventDefault());let t={leftCallback:()=>this._slide(this._directionToOrder(si)),rightCallback:()=>this._slide(this._directionToOrder(gc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),jn+this._config.interval))}};this._swipeHelper=new Fc(this._element,t)}_keydown(i){if(/input|textarea/i.test(i.target.tagName))return;let t=na[i.key];t&&(i.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(i){return this._getItems().indexOf(i)}_setActiveIndicatorElement(i){if(!this._indicatorsElement)return;let t=y.findOne(Wo,this._indicatorsElement);t.classList.remove(nc),t.removeAttribute("aria-current");let e=y.findOne(`[data-bs-slide-to="${i}"]`,this._indicatorsElement);e&&(e.classList.add(nc),e.setAttribute("aria-current","true"))}_updateInterval(){let i=this._activeElement||this._getActive();if(!i)return;let t=Number.parseInt(i.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(i,t=null){if(this._isSliding)return;let e=this._getActive(),b=i===Oi,o=t||ue(this._getItems(),e,b,this._config.wrap);if(o===e)return;let l=this._getItemIndex(o),n=I=>B.trigger(this._element,I,{relatedTarget:o,direction:this._orderToDirection(i),from:this._getItemIndex(e),to:l});if(n(Sn).defaultPrevented||!e||!o)return;let d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=o;let r=b?qn:$n,m=b?ta:ia;o.classList.add(m),wi(o),e.classList.add(r),o.classList.add(r);let C=()=>{o.classList.remove(r,m),o.classList.add(nc),e.classList.remove(nc,m,r),this._isSliding=!1,n(ne)};this._queueCallback(C,e,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Pn)}_getActive(){return y.findOne(ca,this._element)}_getItems(){return y.find(uo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(i){return bt()?i===si?ri:Oi:i===si?Oi:ri}_orderToDirection(i){return bt()?i===ri?si:gc:i===ri?gc:si}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="number"){t.to(i);return}if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i]()}})}};B.on(document,_n,oa,function(c){let i=y.getElementFromSelector(this);if(!i||!i.classList.contains(Bo))return;c.preventDefault();let t=Li.getOrCreateInstance(i),e=this.getAttribute("data-bs-slide-to");if(e){t.to(e),t._maybeEnableCycle();return}if(Bt.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});B.on(window,Kn,()=>{let c=y.find(la);for(let i of c)Li.getOrCreateInstance(i)});lt(Li);var ra="collapse",Ia="bs.collapse",ki=`.${Ia}`,sa=".data-api",ga=`show${ki}`,ma=`shown${ki}`,Za=`hide${ki}`,Xa=`hidden${ki}`,Ga=`click${ki}${sa}`,ae="show",mi="collapse",ac="collapsing",Fa="collapsed",Ca=`:scope .${mi} .${mi}`,Ba="collapse-horizontal",Wa="width",ua="height",pa=".collapse.show, .collapse.collapsing",Ce='[data-bs-toggle="collapse"]',ha={parent:null,toggle:!0},Ra={parent:"(null|element)",toggle:"boolean"},Cc=class c extends tt{constructor(i,t){super(i,t),this._isTransitioning=!1,this._triggerArray=[];let e=y.find(Ce);for(let b of e){let o=y.getSelectorFromElement(b),l=y.find(o).filter(n=>n===this._element);o!==null&&l.length&&this._triggerArray.push(b)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ha}static get DefaultType(){return Ra}static get NAME(){return ra}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let i=[];if(this._config.parent&&(i=this._getFirstLevelChildren(pa).filter(n=>n!==this._element).map(n=>c.getOrCreateInstance(n,{toggle:!1}))),i.length&&i[0]._isTransitioning||B.trigger(this._element,ga).defaultPrevented)return;for(let n of i)n.hide();let e=this._getDimension();this._element.classList.remove(mi),this._element.classList.add(ac),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let b=()=>{this._isTransitioning=!1,this._element.classList.remove(ac),this._element.classList.add(mi,ae),this._element.style[e]="",B.trigger(this._element,ma)},l=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(b,this._element,!0),this._element.style[e]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||B.trigger(this._element,Za).defaultPrevented)return;let t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,wi(this._element),this._element.classList.add(ac),this._element.classList.remove(mi,ae);for(let b of this._triggerArray){let o=y.getElementFromSelector(b);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([b],!1)}this._isTransitioning=!0;let e=()=>{this._isTransitioning=!1,this._element.classList.remove(ac),this._element.classList.add(mi),B.trigger(this._element,Xa)};this._element.style[t]="",this._queueCallback(e,this._element,!0)}_isShown(i=this._element){return i.classList.contains(ae)}_configAfterMerge(i){return i.toggle=!!i.toggle,i.parent=xt(i.parent),i}_getDimension(){return this._element.classList.contains(Ba)?Wa:ua}_initializeChildren(){if(!this._config.parent)return;let i=this._getFirstLevelChildren(Ce);for(let t of i){let e=y.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(i){let t=y.find(Ca,this._config.parent);return y.find(i,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(i,t){if(i.length)for(let e of i)e.classList.toggle(Fa,!t),e.setAttribute("aria-expanded",t)}static jQueryInterface(i){let t={};return typeof i=="string"&&/show|hide/.test(i)&&(t.toggle=!1),this.each(function(){let e=c.getOrCreateInstance(this,t);if(typeof i=="string"){if(typeof e[i]>"u")throw new TypeError(`No method named "${i}"`);e[i]()}})}};B.on(document,Ga,Ce,function(c){(c.target.tagName==="A"||c.delegateTarget&&c.delegateTarget.tagName==="A")&&c.preventDefault();for(let i of y.getMultipleElementsFromSelector(this))Cc.getOrCreateInstance(i,{toggle:!1}).toggle()});lt(Cc);var Lb="dropdown",xa="bs.dropdown",Mt=`.${xa}`,he=".data-api",Va="Escape",Jb="Tab",Qa="ArrowUp",Nb="ArrowDown",ya=2,Aa=`hide${Mt}`,fa=`hidden${Mt}`,Ua=`show${Mt}`,Ya=`shown${Mt}`,po=`click${Mt}${he}`,ho=`keydown${Mt}${he}`,Oa=`keyup${Mt}${he}`,gi="show",va="dropup",La="dropend",Ja="dropstart",Na="dropup-center",wa="dropdown-center",Tt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ka=`${Tt}.${gi}`,mc=".dropdown-menu",za=".navbar",Ha=".navbar-nav",ja=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Sa=bt()?"top-end":"top-start",Ta=bt()?"top-start":"top-end",Da=bt()?"bottom-end":"bottom-start",Ea=bt()?"bottom-start":"bottom-end",Ma=bt()?"left-start":"right-start",Ka=bt()?"right-start":"left-start",_a="top",Pa="bottom",$a={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},qa={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Qt=class c extends tt{constructor(i,t){super(i,t),this._popper=null,this._parent=this._element.parentNode,this._menu=y.next(this._element,mc)[0]||y.prev(this._element,mc)[0]||y.findOne(mc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $a}static get DefaultType(){return qa}static get NAME(){return Lb}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Vt(this._element)||this._isShown())return;let i={relatedTarget:this._element};if(!B.trigger(this._element,Ua,i).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Ha))for(let e of[].concat(...document.body.children))B.on(e,"mouseover",Zc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(gi),this._element.classList.add(gi),B.trigger(this._element,Ya,i)}}hide(){if(Vt(this._element)||!this._isShown())return;let i={relatedTarget:this._element};this._completeHide(i)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(i){if(!B.trigger(this._element,Aa,i).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))B.off(e,"mouseover",Zc);this._popper&&this._popper.destroy(),this._menu.classList.remove(gi),this._element.classList.remove(gi),this._element.setAttribute("aria-expanded","false"),Bt.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,fa,i)}}_getConfig(i){if(i=super._getConfig(i),typeof i.reference=="object"&&!Ct(i.reference)&&typeof i.reference.getBoundingClientRect!="function")throw new TypeError(`${Lb.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return i}_createPopper(){if(typeof lc>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let i=this._element;this._config.reference==="parent"?i=this._parent:Ct(this._config.reference)?i=xt(this._config.reference):typeof this._config.reference=="object"&&(i=this._config.reference);let t=this._getPopperConfig();this._popper=Yi(i,this._menu,t)}_isShown(){return this._menu.classList.contains(gi)}_getPlacement(){let i=this._parent;if(i.classList.contains(La))return Ma;if(i.classList.contains(Ja))return Ka;if(i.classList.contains(Na))return _a;if(i.classList.contains(wa))return Pa;let t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return i.classList.contains(va)?t?Ta:Sa:t?Ea:Da}_detectNavbar(){return this._element.closest(za)!==null}_getOffset(){let{offset:i}=this._config;return typeof i=="string"?i.split(",").map(t=>Number.parseInt(t,10)):typeof i=="function"?t=>i(t,this._element):i}_getPopperConfig(){let i={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Bt.setDataAttribute(this._menu,"popper","static"),i.modifiers=[{name:"applyStyles",enabled:!1}]),{...i,...$(this._config.popperConfig,[i])}}_selectMenuItem({key:i,target:t}){let e=y.find(ja,this._menu).filter(b=>Gi(b));e.length&&ue(e,t,i===Nb,!e.includes(t)).focus()}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i]()}})}static clearMenus(i){if(i.button===ya||i.type==="keyup"&&i.key!==Jb)return;let t=y.find(ka);for(let e of t){let b=c.getInstance(e);if(!b||b._config.autoClose===!1)continue;let o=i.composedPath(),l=o.includes(b._menu);if(o.includes(b._element)||b._config.autoClose==="inside"&&!l||b._config.autoClose==="outside"&&l||b._menu.contains(i.target)&&(i.type==="keyup"&&i.key===Jb||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;let n={relatedTarget:b._element};i.type==="click"&&(n.clickEvent=i),b._completeHide(n)}}static dataApiKeydownHandler(i){let t=/input|textarea/i.test(i.target.tagName),e=i.key===Va,b=[Qa,Nb].includes(i.key);if(!b&&!e||t&&!e)return;i.preventDefault();let o=this.matches(Tt)?this:y.prev(this,Tt)[0]||y.next(this,Tt)[0]||y.findOne(Tt,i.delegateTarget.parentNode),l=c.getOrCreateInstance(o);if(b){i.stopPropagation(),l.show(),l._selectMenuItem(i);return}l._isShown()&&(i.stopPropagation(),l.hide(),o.focus())}};B.on(document,ho,Tt,Qt.dataApiKeydownHandler);B.on(document,ho,mc,Qt.dataApiKeydownHandler);B.on(document,po,Qt.clearMenus);B.on(document,Oa,Qt.clearMenus);B.on(document,po,Tt,function(c){c.preventDefault(),Qt.getOrCreateInstance(this).toggle()});lt(Qt);var Ro="backdrop",td="fade",wb="show",kb=`mousedown.bs.${Ro}`,id={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},cd={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Bc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isAppended=!1,this._element=null}static get Default(){return id}static get DefaultType(){return cd}static get NAME(){return Ro}show(i){if(!this._config.isVisible){$(i);return}this._append();let t=this._getElement();this._config.isAnimated&&wi(t),t.classList.add(wb),this._emulateAnimation(()=>{$(i)})}hide(i){if(!this._config.isVisible){$(i);return}this._getElement().classList.remove(wb),this._emulateAnimation(()=>{this.dispose(),$(i)})}dispose(){this._isAppended&&(B.off(this._element,kb),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let i=document.createElement("div");i.className=this._config.className,this._config.isAnimated&&i.classList.add(td),this._element=i}return this._element}_configAfterMerge(i){return i.rootElement=xt(i.rootElement),i}_append(){if(this._isAppended)return;let i=this._getElement();this._config.rootElement.append(i),B.on(i,kb,()=>{$(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(i){Io(i,this._getElement(),this._config.isAnimated)}},ed="focustrap",bd="bs.focustrap",Wc=`.${bd}`,od=`focusin${Wc}`,ld=`keydown.tab${Wc}`,nd="Tab",ad="forward",zb="backward",dd={autofocus:!0,trapElement:null},rd={autofocus:"boolean",trapElement:"element"},uc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return dd}static get DefaultType(){return rd}static get NAME(){return ed}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),B.off(document,Wc),B.on(document,od,i=>this._handleFocusin(i)),B.on(document,ld,i=>this._handleKeydown(i)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,B.off(document,Wc))}_handleFocusin(i){let{trapElement:t}=this._config;if(i.target===document||i.target===t||t.contains(i.target))return;let e=y.focusableChildren(t);e.length===0?t.focus():this._lastTabNavDirection===zb?e[e.length-1].focus():e[0].focus()}_handleKeydown(i){i.key===nd&&(this._lastTabNavDirection=i.shiftKey?zb:ad)}},Hb=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",jb=".sticky-top",dc="padding-right",Sb="margin-right",Ji=class{constructor(){this._element=document.body}getWidth(){let i=document.documentElement.clientWidth;return Math.abs(window.innerWidth-i)}hide(){let i=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,dc,t=>t+i),this._setElementAttributes(Hb,dc,t=>t+i),this._setElementAttributes(jb,Sb,t=>t-i)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,dc),this._resetElementAttributes(Hb,dc),this._resetElementAttributes(jb,Sb)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(i,t,e){let b=this.getWidth(),o=l=>{if(l!==this._element&&window.innerWidth>l.clientWidth+b)return;this._saveInitialAttribute(l,t);let n=window.getComputedStyle(l).getPropertyValue(t);l.style.setProperty(t,`${e(Number.parseFloat(n))}px`)};this._applyManipulationCallback(i,o)}_saveInitialAttribute(i,t){let e=i.style.getPropertyValue(t);e&&Bt.setDataAttribute(i,t,e)}_resetElementAttributes(i,t){let e=b=>{let o=Bt.getDataAttribute(b,t);if(o===null){b.style.removeProperty(t);return}Bt.removeDataAttribute(b,t),b.style.setProperty(t,o)};this._applyManipulationCallback(i,e)}_applyManipulationCallback(i,t){if(Ct(i)){t(i);return}for(let e of y.find(i,this._element))t(e)}},Id="modal",sd="bs.modal",ot=`.${sd}`,gd=".data-api",md="Escape",Zd=`hide${ot}`,Xd=`hidePrevented${ot}`,xo=`hidden${ot}`,Vo=`show${ot}`,Gd=`shown${ot}`,Fd=`resize${ot}`,Cd=`click.dismiss${ot}`,Bd=`mousedown.dismiss${ot}`,Wd=`keydown.dismiss${ot}`,ud=`click${ot}${gd}`,Tb="modal-open",pd="fade",Db="show",de="modal-static",hd=".modal.show",Rd=".modal-dialog",xd=".modal-body",Vd='[data-bs-toggle="modal"]',Qd={backdrop:!0,focus:!0,keyboard:!0},yd={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Zi=class c extends tt{constructor(i,t){super(i,t),this._dialog=y.findOne(Rd,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ji,this._addEventListeners()}static get Default(){return Qd}static get DefaultType(){return yd}static get NAME(){return Id}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){this._isShown||this._isTransitioning||B.trigger(this._element,Vo,{relatedTarget:i}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tb),this._adjustDialog(),this._backdrop.show(()=>this._showElement(i)))}hide(){!this._isShown||this._isTransitioning||B.trigger(this._element,Zd).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Db),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){B.off(window,ot),B.off(this._dialog,ot),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Bc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new uc({trapElement:this._element})}_showElement(i){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;let t=y.findOne(xd,this._dialog);t&&(t.scrollTop=0),wi(this._element),this._element.classList.add(Db);let e=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,B.trigger(this._element,Gd,{relatedTarget:i})};this._queueCallback(e,this._dialog,this._isAnimated())}_addEventListeners(){B.on(this._element,Wd,i=>{if(i.key===md){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),B.on(window,Fd,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),B.on(this._element,Bd,i=>{B.one(this._element,Cd,t=>{if(!(this._element!==i.target||this._element!==t.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(Tb),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,xo)})}_isAnimated(){return this._element.classList.contains(pd)}_triggerBackdropTransition(){if(B.trigger(this._element,Xd).defaultPrevented)return;let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;e==="hidden"||this._element.classList.contains(de)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(de),this._queueCallback(()=>{this._element.classList.remove(de),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let i=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),e=t>0;if(e&&!i){let b=bt()?"paddingLeft":"paddingRight";this._element.style[b]=`${t}px`}if(!e&&i){let b=bt()?"paddingRight":"paddingLeft";this._element.style[b]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(i,t){return this.each(function(){let e=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof e[i]>"u")throw new TypeError(`No method named "${i}"`);e[i](t)}})}};B.on(document,ud,Vd,function(c){let i=y.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&c.preventDefault(),B.one(i,Vo,b=>{b.defaultPrevented||B.one(i,xo,()=>{Gi(this)&&this.focus()})});let t=y.findOne(hd);t&&Zi.getInstance(t).hide(),Zi.getOrCreateInstance(i).toggle(this)});Rc(Zi);lt(Zi);var Ad="offcanvas",fd="bs.offcanvas",Wt=`.${fd}`,Qo=".data-api",Ud=`load${Wt}${Qo}`,Yd="Escape",Eb="show",Mb="showing",Kb="hiding",Od="offcanvas-backdrop",yo=".offcanvas.show",vd=`show${Wt}`,Ld=`shown${Wt}`,Jd=`hide${Wt}`,_b=`hidePrevented${Wt}`,Ao=`hidden${Wt}`,Nd=`resize${Wt}`,wd=`click${Wt}${Qo}`,kd=`keydown.dismiss${Wt}`,zd='[data-bs-toggle="offcanvas"]',Hd={backdrop:!0,keyboard:!0,scroll:!1},jd={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},yt=class c extends tt{constructor(i,t){super(i,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Hd}static get DefaultType(){return jd}static get NAME(){return Ad}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){if(this._isShown||B.trigger(this._element,vd,{relatedTarget:i}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Ji().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Mb);let e=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Eb),this._element.classList.remove(Mb),B.trigger(this._element,Ld,{relatedTarget:i})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown||B.trigger(this._element,Jd).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Kb),this._backdrop.hide();let t=()=>{this._element.classList.remove(Eb,Kb),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ji().reset(),B.trigger(this._element,Ao)};this._queueCallback(t,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let i=()=>{if(this._config.backdrop==="static"){B.trigger(this._element,_b);return}this.hide()},t=!!this._config.backdrop;return new Bc({className:Od,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?i:null})}_initializeFocusTrap(){return new uc({trapElement:this._element})}_addEventListeners(){B.on(this._element,kd,i=>{if(i.key===Yd){if(this._config.keyboard){this.hide();return}B.trigger(this._element,_b)}})}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i](this)}})}};B.on(document,wd,zd,function(c){let i=y.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&c.preventDefault(),Vt(this))return;B.one(i,Ao,()=>{Gi(this)&&this.focus()});let t=y.findOne(yo);t&&t!==i&&yt.getInstance(t).hide(),yt.getOrCreateInstance(i).toggle(this)});B.on(window,Ud,()=>{for(let c of y.find(yo))yt.getOrCreateInstance(c).show()});B.on(window,Nd,()=>{for(let c of y.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(c).position!=="fixed"&&yt.getOrCreateInstance(c).hide()});Rc(yt);lt(yt);var Sd=/^aria-[\w-]*$/i,fo={"*":["class","dir","id","lang","role",Sd],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Td=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Dd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ed=(c,i)=>{let t=c.nodeName.toLowerCase();return i.includes(t)?Td.has(t)?!!Dd.test(c.nodeValue):!0:i.filter(e=>e instanceof RegExp).some(e=>e.test(t))};function Md(c,i,t){if(!c.length)return c;if(t&&typeof t=="function")return t(c);let b=new window.DOMParser().parseFromString(c,"text/html"),o=[].concat(...b.body.querySelectorAll("*"));for(let l of o){let n=l.nodeName.toLowerCase();if(!Object.keys(i).includes(n)){l.remove();continue}let a=[].concat(...l.attributes),d=[].concat(i["*"]||[],i[n]||[]);for(let r of a)Ed(r,d)||l.removeAttribute(r.nodeName)}return b.body.innerHTML}var Kd="TemplateFactory",_d={allowList:fo,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:""},Pd={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},$d={entry:"(string|element|function|null)",selector:"(string|element)"},Be=class extends Et{constructor(i){super(),this._config=this._getConfig(i)}static get Default(){return _d}static get DefaultType(){return Pd}static get NAME(){return Kd}getContent(){return Object.values(this._config.content).map(i=>this._resolvePossibleFunction(i)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(i){return this._checkContent(i),this._config.content={...this._config.content,...i},this}toHtml(){let i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for(let[b,o]of Object.entries(this._config.content))this._setContent(i,o,b);let t=i.children[0],e=this._resolvePossibleFunction(this._config.extraClass);return e&&t.classList.add(...e.split(" ")),t}_typeCheckConfig(i){super._typeCheckConfig(i),this._checkContent(i.content)}_checkContent(i){for(let[t,e]of Object.entries(i))super._typeCheckConfig({selector:t,entry:e},$d)}_setContent(i,t,e){let b=y.findOne(e,i);if(b){if(t=this._resolvePossibleFunction(t),!t){b.remove();return}if(Ct(t)){this._putElementInTemplate(xt(t),b);return}if(this._config.html){b.innerHTML=this._maybeSanitize(t);return}b.textContent=t}}_maybeSanitize(i){return this._config.sanitize?Md(i,this._config.allowList,this._config.sanitizeFn):i}_resolvePossibleFunction(i){return $(i,[this])}_putElementInTemplate(i,t){if(this._config.html){t.innerHTML="",t.append(i);return}t.textContent=i.textContent}},qd="tooltip",tr=new Set(["sanitize","allowList","sanitizeFn"]),re="fade",ir="modal",rc="show",cr=".tooltip-inner",Pb=`.${ir}`,$b="hide.bs.modal",vi="hover",Ie="focus",er="click",br="manual",or="hide",lr="hidden",nr="show",ar="shown",dr="inserted",rr="click",Ir="focusin",sr="focusout",gr="mouseenter",mr="mouseleave",Zr={AUTO:"auto",TOP:"top",RIGHT:bt()?"left":"right",BOTTOM:"bottom",LEFT:bt()?"right":"left"},Xr={allowList:fo,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"},Gr={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"},Xi=class c extends tt{constructor(i,t){if(typeof lc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(i,t),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 Xr}static get DefaultType(){return Gr}static get NAME(){return qd}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),B.off(this._element.closest(Pb),$b,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;let i=B.trigger(this._element,this.constructor.eventName(nr)),e=(ao(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(i.defaultPrevented||!e)return;this._disposePopper();let b=this._getTipElement();this._element.setAttribute("aria-describedby",b.getAttribute("id"));let{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(b),B.trigger(this._element,this.constructor.eventName(dr))),this._popper=this._createPopper(b),b.classList.add(rc),"ontouchstart"in document.documentElement)for(let n of[].concat(...document.body.children))B.on(n,"mouseover",Zc);let l=()=>{B.trigger(this._element,this.constructor.eventName(ar)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||B.trigger(this._element,this.constructor.eventName(or)).defaultPrevented)return;if(this._getTipElement().classList.remove(rc),"ontouchstart"in document.documentElement)for(let b of[].concat(...document.body.children))B.off(b,"mouseover",Zc);this._activeTrigger[er]=!1,this._activeTrigger[Ie]=!1,this._activeTrigger[vi]=!1,this._isHovered=null;let e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.eventName(lr)))};this._queueCallback(e,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(i){let t=this._getTemplateFactory(i).toHtml();if(!t)return null;t.classList.remove(re,rc),t.classList.add(`bs-${this.constructor.NAME}-auto`);let e=bn(this.constructor.NAME).toString();return t.setAttribute("id",e),this._isAnimated()&&t.classList.add(re),t}setContent(i){this._newContent=i,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(i){return this._templateFactory?this._templateFactory.changeContent(i):this._templateFactory=new Be({...this._config,content:i,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[cr]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(i){return this.constructor.getOrCreateInstance(i.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(re)}_isShown(){return this.tip&&this.tip.classList.contains(rc)}_createPopper(i){let t=$(this._config.placement,[this,i,this._element]),e=Zr[t.toUpperCase()];return Yi(this._element,i,this._getPopperConfig(e))}_getOffset(){let{offset:i}=this._config;return typeof i=="string"?i.split(",").map(t=>Number.parseInt(t,10)):typeof i=="function"?t=>i(t,this._element):i}_resolvePossibleFunction(i){return $(i,[this._element])}_getPopperConfig(i){let t={placement:i,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:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...$(this._config.popperConfig,[t])}}_setListeners(){let i=this._config.trigger.split(" ");for(let t of i)if(t==="click")B.on(this._element,this.constructor.eventName(rr),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()});else if(t!==br){let e=t===vi?this.constructor.eventName(gr):this.constructor.eventName(Ir),b=t===vi?this.constructor.eventName(mr):this.constructor.eventName(sr);B.on(this._element,e,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusin"?Ie:vi]=!0,l._enter()}),B.on(this._element,b,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusout"?Ie:vi]=l._element.contains(o.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(Pb),$b,this._hideModalHandler)}_fixTitle(){let i=this._element.getAttribute("title");i&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",i),this._element.setAttribute("data-bs-original-title",i),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(i,t){clearTimeout(this._timeout),this._timeout=setTimeout(i,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(i){let t=Bt.getDataAttributes(this._element);for(let e of Object.keys(t))tr.has(e)&&delete t[e];return i={...t,...typeof i=="object"&&i?i:{}},i=this._mergeConfigObj(i),i=this._configAfterMerge(i),this._typeCheckConfig(i),i}_configAfterMerge(i){return i.container=i.container===!1?document.body:xt(i.container),typeof i.delay=="number"&&(i.delay={show:i.delay,hide:i.delay}),typeof i.title=="number"&&(i.title=i.title.toString()),typeof i.content=="number"&&(i.content=i.content.toString()),i}_getDelegateConfig(){let i={};for(let[t,e]of Object.entries(this._config))this.constructor.Default[t]!==e&&(i[t]=e);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i]()}})}};lt(Xi);var Fr="popover",Cr=".popover-header",Br=".popover-body",Wr={...Xi.Default,content:"",offset:[0,8],placement:"right",template:'
',trigger:"click"},ur={...Xi.DefaultType,content:"(null|string|element|function)"},We=class c extends Xi{static get Default(){return Wr}static get DefaultType(){return ur}static get NAME(){return Fr}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Cr]:this._getTitle(),[Br]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i]()}})}};lt(We);var pr="scrollspy",hr="bs.scrollspy",Re=`.${hr}`,Rr=".data-api",xr=`activate${Re}`,qb=`click${Re}`,Vr=`load${Re}${Rr}`,Qr="dropdown-item",Ii="active",yr='[data-bs-spy="scroll"]',se="[href]",Ar=".nav, .list-group",to=".nav-link",fr=".nav-item",Ur=".list-group-item",Yr=`${to}, ${fr} > ${to}, ${Ur}`,Or=".dropdown",vr=".dropdown-toggle",Lr={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Jr={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},pc=class c extends tt{constructor(i,t){super(i,t),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 Lr}static get DefaultType(){return Jr}static get NAME(){return pr}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let i of this._observableSections.values())this._observer.observe(i)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(i){return i.target=xt(i.target)||document.body,i.rootMargin=i.offset?`${i.offset}px 0px -30%`:i.rootMargin,typeof i.threshold=="string"&&(i.threshold=i.threshold.split(",").map(t=>Number.parseFloat(t))),i}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(B.off(this._config.target,qb),B.on(this._config.target,qb,se,i=>{let t=this._observableSections.get(i.target.hash);if(t){i.preventDefault();let e=this._rootElement||window,b=t.offsetTop-this._element.offsetTop;if(e.scrollTo){e.scrollTo({top:b,behavior:"smooth"});return}e.scrollTop=b}}))}_getNewObserver(){let i={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),i)}_observerCallback(i){let t=l=>this._targetLinks.get(`#${l.target.id}`),e=l=>{this._previousScrollData.visibleEntryTop=l.target.offsetTop,this._process(t(l))},b=(this._rootElement||document.documentElement).scrollTop,o=b>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=b;for(let l of i){if(!l.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(l));continue}let n=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&n){if(e(l),!b)return;continue}!o&&!n&&e(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let i=y.find(se,this._config.target);for(let t of i){if(!t.hash||Vt(t))continue;let e=y.findOne(decodeURI(t.hash),this._element);Gi(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(i){this._activeTarget!==i&&(this._clearActiveClass(this._config.target),this._activeTarget=i,i.classList.add(Ii),this._activateParents(i),B.trigger(this._element,xr,{relatedTarget:i}))}_activateParents(i){if(i.classList.contains(Qr)){y.findOne(vr,i.closest(Or)).classList.add(Ii);return}for(let t of y.parents(i,Ar))for(let e of y.prev(t,Yr))e.classList.add(Ii)}_clearActiveClass(i){i.classList.remove(Ii);let t=y.find(`${se}.${Ii}`,i);for(let e of t)e.classList.remove(Ii)}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i]()}})}};B.on(window,Vr,()=>{for(let c of y.find(yr))pc.getOrCreateInstance(c)});lt(pc);var Nr="tab",wr="bs.tab",Kt=`.${wr}`,kr=`hide${Kt}`,zr=`hidden${Kt}`,Hr=`show${Kt}`,jr=`shown${Kt}`,Sr=`click${Kt}`,Tr=`keydown${Kt}`,Dr=`load${Kt}`,Er="ArrowLeft",io="ArrowRight",Mr="ArrowUp",co="ArrowDown",ge="Home",eo="End",Dt="active",bo="fade",me="show",Kr="dropdown",Uo=".dropdown-toggle",_r=".dropdown-menu",Ze=`:not(${Uo})`,Pr='.list-group, .nav, [role="tablist"]',$r=".nav-item, .list-group-item",qr=`.nav-link${Ze}, .list-group-item${Ze}, [role="tab"]${Ze}`,Yo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Xe=`${qr}, ${Yo}`,tI=`.${Dt}[data-bs-toggle="tab"], .${Dt}[data-bs-toggle="pill"], .${Dt}[data-bs-toggle="list"]`,Ni=class c extends tt{constructor(i){super(i),this._parent=this._element.closest(Pr),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),B.on(this._element,Tr,t=>this._keydown(t)))}static get NAME(){return Nr}show(){let i=this._element;if(this._elemIsActive(i))return;let t=this._getActiveElem(),e=t?B.trigger(t,kr,{relatedTarget:i}):null;B.trigger(i,Hr,{relatedTarget:t}).defaultPrevented||e&&e.defaultPrevented||(this._deactivate(t,i),this._activate(i,t))}_activate(i,t){if(!i)return;i.classList.add(Dt),this._activate(y.getElementFromSelector(i));let e=()=>{if(i.getAttribute("role")!=="tab"){i.classList.add(me);return}i.removeAttribute("tabindex"),i.setAttribute("aria-selected",!0),this._toggleDropDown(i,!0),B.trigger(i,jr,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(bo))}_deactivate(i,t){if(!i)return;i.classList.remove(Dt),i.blur(),this._deactivate(y.getElementFromSelector(i));let e=()=>{if(i.getAttribute("role")!=="tab"){i.classList.remove(me);return}i.setAttribute("aria-selected",!1),i.setAttribute("tabindex","-1"),this._toggleDropDown(i,!1),B.trigger(i,zr,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(bo))}_keydown(i){if(![Er,io,Mr,co,ge,eo].includes(i.key))return;i.stopPropagation(),i.preventDefault();let t=this._getChildren().filter(b=>!Vt(b)),e;if([ge,eo].includes(i.key))e=t[i.key===ge?0:t.length-1];else{let b=[io,co].includes(i.key);e=ue(t,i.target,b,!0)}e&&(e.focus({preventScroll:!0}),c.getOrCreateInstance(e).show())}_getChildren(){return y.find(Xe,this._parent)}_getActiveElem(){return this._getChildren().find(i=>this._elemIsActive(i))||null}_setInitialAttributes(i,t){this._setAttributeIfNotExists(i,"role","tablist");for(let e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(i){i=this._getInnerElement(i);let t=this._elemIsActive(i),e=this._getOuterElement(i);i.setAttribute("aria-selected",t),e!==i&&this._setAttributeIfNotExists(e,"role","presentation"),t||i.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(i,"role","tab"),this._setInitialAttributesOnTargetPanel(i)}_setInitialAttributesOnTargetPanel(i){let t=y.getElementFromSelector(i);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),i.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${i.id}`))}_toggleDropDown(i,t){let e=this._getOuterElement(i);if(!e.classList.contains(Kr))return;let b=(o,l)=>{let n=y.findOne(o,e);n&&n.classList.toggle(l,t)};b(Uo,Dt),b(_r,me),e.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(i,t,e){i.hasAttribute(t)||i.setAttribute(t,e)}_elemIsActive(i){return i.classList.contains(Dt)}_getInnerElement(i){return i.matches(Xe)?i:y.findOne(Xe,i)}_getOuterElement(i){return i.closest($r)||i}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);if(typeof i=="string"){if(t[i]===void 0||i.startsWith("_")||i==="constructor")throw new TypeError(`No method named "${i}"`);t[i]()}})}};B.on(document,Sr,Yo,function(c){["A","AREA"].includes(this.tagName)&&c.preventDefault(),!Vt(this)&&Ni.getOrCreateInstance(this).show()});B.on(window,Dr,()=>{for(let c of y.find(tI))Ni.getOrCreateInstance(c)});lt(Ni);var iI="toast",cI="bs.toast",ft=`.${cI}`,eI=`mouseover${ft}`,bI=`mouseout${ft}`,oI=`focusin${ft}`,lI=`focusout${ft}`,nI=`hide${ft}`,aI=`hidden${ft}`,dI=`show${ft}`,rI=`shown${ft}`,II="fade",oo="hide",Ic="show",sc="showing",sI={animation:"boolean",autohide:"boolean",delay:"number"},gI={animation:!0,autohide:!0,delay:5e3},hc=class c extends tt{constructor(i,t){super(i,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return gI}static get DefaultType(){return sI}static get NAME(){return iI}show(){if(B.trigger(this._element,dI).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(II);let t=()=>{this._element.classList.remove(sc),B.trigger(this._element,rI),this._maybeScheduleHide()};this._element.classList.remove(oo),wi(this._element),this._element.classList.add(Ic,sc),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||B.trigger(this._element,nI).defaultPrevented)return;let t=()=>{this._element.classList.add(oo),this._element.classList.remove(sc,Ic),B.trigger(this._element,aI)};this._element.classList.add(sc),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ic),super.dispose()}isShown(){return this._element.classList.contains(Ic)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(i,t){switch(i.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=t;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=t;break}}if(t){this._clearTimeout();return}let e=i.relatedTarget;this._element===e||this._element.contains(e)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,eI,i=>this._onInteraction(i,!0)),B.on(this._element,bI,i=>this._onInteraction(i,!1)),B.on(this._element,oI,i=>this._onInteraction(i,!0)),B.on(this._element,lI,i=>this._onInteraction(i,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this,i);if(typeof i=="string"){if(typeof t[i]>"u")throw new TypeError(`No method named "${i}"`);t[i](this)}})}};Rc(hc);lt(hc);var vc=kc(ko());var Ee=globalThis,Vc=Ee.trustedTypes,zo=Vc?Vc.createPolicy("lit-html",{createHTML:c=>c}):void 0,Eo="$lit$",Ut=`lit$${Math.random().toFixed(9).slice(2)}$`,Mo="?"+Ut,mI=`<${Mo}>`,$t=document,Hi=()=>$t.createComment(""),ji=c=>c===null||typeof c!="object"&&typeof c!="function",Me=Array.isArray,ZI=c=>Me(c)||typeof c?.[Symbol.iterator]=="function",ze=`[
+\f\r]`,zi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ho=/-->/g,jo=/>/g,_t=RegExp(`>|${ze}(?:([^\\s"'>=/]+)(${ze}*=${ze}*(?:[^
+\f\r"'\`<>=]|("|')|))|$)`,"g"),So=/'/g,To=/"/g,Ko=/^(?:script|style|textarea|title)$/i,Ke=c=>(i,...t)=>({_$litType$:c,strings:i,values:t}),f=Ke(1),oX=Ke(2),lX=Ke(3),qt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Do=new WeakMap,Pt=$t.createTreeWalker($t,129);function _o(c,i){if(!Me(c)||!c.hasOwnProperty("raw"))throw Error("invalid template strings array");return zo!==void 0?zo.createHTML(i):i}var XI=(c,i)=>{let t=c.length-1,e=[],b,o=i===2?"":i===3?"":"")),e]},Si=class c{constructor({strings:i,_$litType$:t},e){let b;this.parts=[];let o=0,l=0,n=i.length-1,a=this.parts,[d,r]=XI(i,t);if(this.el=c.createElement(d,e),Pt.currentNode=this.el.content,t===2||t===3){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(b=Pt.nextNode())!==null&&a.length0){b.textContent=Vc?Vc.emptyScript:"";for(let I=0;I2||e[0]!==""||e[1]!==""?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=T}_$AI(i,t=this,e,b){let o=this.strings,l=!1;if(o===void 0)i=Bi(this,i,t,0),l=!ji(i)||i!==this._$AH&&i!==qt,l&&(this._$AH=i);else{let n=i,a,d;for(i=o[0],a=0;a{let e=t?.renderBefore??i,b=e._$litPart$;if(b===void 0){let o=t?.renderBefore??null;e._$litPart$=b=new Ti(i.insertBefore(Hi(),o),o,void 0,t??{})}return b._$AI(c),b};async function It(){return await import("./main.js").then(c=>c.default)}function at(c){return document.querySelector(`meta[name="${c}"]`)?.content}function q(c,i){let t=at(`loc:${c}`)||c;if(i)for(let e in i)t=t.replace(`{${e}}`,i[e]);return t}function _e(c){if(!c)return[];let i=/([a-z0-9])([A-Z]+[a-z])|([a-zA-Z0-9][.,/<>_])/g,t=[],e=0;for(;;){let b=i.exec(c);if(!b)break;let o=b.index+(b[1]||b[3]).length;t.push(c.slice(e,o)),e=o}return e{i.length>0&&i.push(f``),i.push(f`${t}`)}),f`${i}`}function Qc(c){return c.hostname!==window.location.hostname||c.protocol!==window.location.protocol}function Po(c,i){return t(c)===t(i);function t(e){return e.pathname.replace(/\/index\.html$/gi,"/").replace(/\.html$/gi,"").replace(/\/$/gi,"").toLowerCase()}}var yc=null,Ac=null;async function Di(){if(Ac)return Ac;let c=fc();try{let i=await fetch(`/${c}/_ui-strings.json`);return!i.ok&&c!=="en"&&(i=await fetch("/en/_ui-strings.json")),i.ok?(Ac=await i.json(),Ac):(console.warn("UI strings not found"),$o())}catch(i){return console.warn("Failed to load UI strings:",i),$o()}}function $o(){return{aiTranslationWarning:"This content was translated using AI and has not been reviewed by a human editor. Images and charts remain in their original language.","header.nav.pricing":"Pricing","header.nav.download":"Download","header.nav.learn":"Learn","header.nav.resources":"Resources","header.nav.blog":"Blog","header.nav.newsletter":"Newsletter","header.nav.publications":"Publications","header.nav.documentation":"Documentation","header.nav.supportCommunity":"Support community","header.nav.contactUs":"Contact Us","header.button1":"Free trial","header.button2":"Main page","footer.heading":"Ready to get started?","footer.button1":"Try Tabular Editor 3 for free","footer.button2":"Buy Tabular Editor 3","footer.aboutUs":"About us","footer.contactUs":"Contact us","footer.technicalSupport":"Technical Support","footer.privacyPolicy":"Privacy & Cookie policy","footer.termsConditions":"Terms & Conditions","footer.licenseTerms":"License terms",appliesTo:"Applies to: ",availableSince:"Available since",availableIn:"Available in",inThisArticle:"In this article",searchResultsCount:'{count} results for "{query}"',searchNoResults:'No results for "{query}"',tocFilter:"Filter by title",nextArticle:"Next",prevArticle:"Previous",themeLight:"Light",themeDark:"Dark",themeAuto:"Auto",changeTheme:"Change theme",copy:"Copy",downloadPdf:"Download PDF",search:"Search documentation",note:"Note",warning:"Warning",tip:"Tip",important:"Important",caution:"Caution",tableOfContents:"Table of Contents",selectLanguage:"Select language",copyCode:"Copy code"}}async function FI(){if(yc)return yc;try{let c=await fetch("/languages.json");return c.ok?(yc=await c.json(),yc):(console.warn("Languages manifest not found at /languages.json"),null)}catch(c){return console.warn("Failed to load languages manifest:",c),null}}function fc(){let c=window.location.pathname.split("/").filter(Boolean);if(c.length>0){let i=c[0].toLowerCase();if(i.length>=2&&i.length<=5&&/^[a-z-]+$/.test(i))return i}return"en"}function qo(c){let i=fc(),t=window.location.pathname,e=window.location.hash,b=window.location.search,o=t.split("/").filter(Boolean);if(o.length>0){let n=o[0].toLowerCase();n.length>=2&&n.length<=5&&/^[a-z-]+$/.test(n)?o[0]=c:o.unshift(c)}else o.push(c);let l="/"+o.join("/");return(t.endsWith("/")||!l.endsWith(".html")&&!l.includes("."))&&(l+="/"),l+b+e}async function CI(){let c=document.getElementById("language-picker");if(!c)return;let i=await FI();if(!i||i.languages.length<=1){c.style.display="none";return}let t=fc(),e=i.languages.find(a=>a.code===t)||i.languages.find(a=>a.default)||i.languages[0],o=(await Di()).selectLanguage||"Select language",l=(a,d)=>{a.preventDefault(),d.code!==t&&(window.location.href=qo(d.code))},n=f`
+
+ `;nt(n,c)}async function tl(){await CI()}async function il(){let c=await Di();if(document.querySelectorAll("[data-ui-string]").forEach(t=>{let e=t.getAttribute("data-ui-string");e&&c[e]!==void 0&&(t.textContent=c[e])}),document.querySelectorAll('meta[name^="loc:"]').forEach(t=>{let e=t.name.replace("loc:","");c[e]!==void 0&&(t.content=c[e])}),c.search){let t=document.getElementById("search-query");t&&(t.placeholder=c.search,t.setAttribute("aria-label",c.search));let e=document.getElementById("header-search__form-label");e&&(e.textContent=c.search)}let i={NOTE:"note",TIP:"tip",WARNING:"warning",IMPORTANT:"important",CAUTION:"caution"};for(let[t,e]of Object.entries(i))c[e]&&document.querySelectorAll(`.${t} > h5`).forEach(b=>{b.textContent=c[e]})}async function cl(){if(fc()==="en"||document.getElementById("ai-translation-warning"))return;let i=await Di(),t=document.createElement("div");t.id="ai-translation-warning",t.className="ai-translation-warning",t.setAttribute("role","alert"),t.innerHTML=`
+
+
+
+ ${i.aiTranslationWarning}
+
+
+ `;let e=document.querySelector("header.global-header_wrp");e?e.appendChild(t):document.body.insertBefore(t,document.body.firstChild),requestAnimationFrame(()=>{let b=t.offsetHeight;document.documentElement.style.setProperty("--ai-banner-height",`${b+5}px`)})}async function Pe(){if(document.querySelectorAll("pre code").length<=0)return;let{default:i}=await import("./es-4I4X6RME.min.js"),{configureHljs:t}=await It();t?.(i),i.registerLanguage("dax",()=>{let e="[a-zA-Z][a-zA-Z0-9._]*";return{case_insensitive:!0,contains:[i.C_LINE_COMMENT_MODE,i.C_BLOCK_COMMENT_MODE,{begin:e,lexemes:e,keywords:{keyword:uI??[]},relevance:0},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],relevance:0},{className:"number",begin:"((\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",relevance:0},{begin:"'",end:"'",illegal:"\\.,;:/\\\\\\*\\|\\?&%\\$!\\+=\\(\\)\\[\\]\\{\\}<>",relevance:0},{begin:"\\[",end:"\\]",illegal:"\\.,;:/\\\\\\*\\|\\?&%\\$!\\+=\\(\\)\\[\\]\\{\\}<>",relevance:0}]}}),document.querySelectorAll("pre code").forEach(e=>{i.highlightElement(e)}),document.querySelectorAll("pre code[highlight-lines]").forEach(e=>{if(e.innerHTML==="")return;let b=e.getAttribute("highlight-lines");if(!b)return;let o=e.innerHTML.split(`
+`),l=b.split(",");for(let n of l){let a=0,d=0,r=n.match(/^(\d+)-(\d+)?$/);if(r)a=+r[1],d=+r[2],(isNaN(d)||d>o.length)&&(d=o.length);else{if(isNaN(Number(n)))continue;a=+n,d=a}a<=0||d<=0||a>d||a>o.length||(o[a-1]=''+o[a-1],o[d-1]=o[d-1]+"")}e.innerHTML=o.join(`
+`)}),await WI()}var BI=c=>{let i=document.createElement("textarea");i.value=c,document.body.appendChild(i),i.style.display="block",document.documentMode?i.setSelectionRange(0,i.value.length):i.select(),navigator.clipboard.writeText(i.value).then(()=>{document.body.removeChild(i)})};async function WI(){let c=await Di(),i=c.copy||"Copy",t=c.copyCode||"Copy code";document.querySelectorAll("pre code").forEach(e=>{let b=/lang-(.+?)(\s|$)/.exec(e.className),o=b?b[1].toUpperCase():"";o==="CSHARP"&&(o="C#"),o==="M"&&(o="POWER QUERY");let l=document.createElement("div");l.className="code-header",l.innerHTML=`
+ ${o}
+
+ `;let n=document.createElement("div");n.className="code-container",e.parentNode.insertBefore(n,e),n.appendChild(e),document.querySelectorAll(".tabGroup").length>0?n.closest('[role="tabpanel"]')&&n.insertBefore(l,n.firstChild):n.parentNode.insertBefore(l,n),l.querySelector("button").addEventListener("click",()=>{BI(e.textContent||"");let d=l.querySelector(".successful-copy-alert");d.classList.remove("is-transparent"),setTimeout(()=>{d.classList.add("is-transparent")},2e3)})})}var uI=["ABS","ACOS","ACOSH","ADDCOLUMNS","ADDMISSINGITEMS","ALL","ALLEXCEPT","ALLNOBLANKROW","ALLSELECTED","AND","ASIN","ASINH","ATAN","ATANH","AVERAGE","AVERAGEA","AVERAGEX","BETA.DIST","BETA.INV","BLANK","CALCULATE","CALCULATETABLE","CALENDAR","CALENDARAUTO","CEILING","CHISQ.INV","CHISQ.INV.RT","CLOSINGBALANCEMONTH","CLOSINGBALANCEQUARTER","CLOSINGBALANCEYEAR","CODE","COMBIN","COMBINA","CONCATENATE","CONCATENATEX","ABS","ACOS","ACOSH","ADDCOLUMNS","ADDMISSINGITEMS|10","ALL","ALLEXCEPT|10","ALLNOBLANKROW|10","ALLSELECTED|10","AND","ASIN","ASINH","ATAN","ATANH","AVERAGE","AVERAGEA","AVERAGEX","BETA.DIST","BETA.INV","BLANK","CALCULATE","CALCULATETABLE|10","CALENDAR","CALENDARAUTO|10","CEILING","CHISQ.INV","CHISQ.INV.RT","CLOSINGBALANCEMONTH|10","CLOSINGBALANCEQUARTER|10","CLOSINGBALANCEYEAR|10","CODE","COMBIN","COMBINA","CONCATENATE","CONCATENATEX","CONFIDENCE.NORM","CONFIDENCE.T","CONTAINS","COS","COSH","COUNT","COUNTA","COUNTAX","COUNTBLANK","COUNTROWS","COUNTX","CROSSFILTER","CURRENCY","CUSTOMDATA","DATATABLE","DATE","DATEADD","DATEDIFF","DATESBETWEEN","DATESINPERIOD","DATESMTD","DATESQTD","DATESYTD","DATEVALUE","DAY","DEGREES","DISTINCT","DISTINCTCOUNT","DIVIDE","EARLIER","EARLIEST","EDATE","ENDOFMONTH","ENDOFQUARTER","ENDOFYEAR","EOMONTH","EVALUATE","EVEN","EXACT","EXCEPT","EXP","EXPON.DIST","FACT","FILTER","FILTERS","FIND","FIRSTDATE","FIRSTNONBLANK","FIXED","FLOOR","FORMAT","GCD","GENERATEALL","GEOMEAN","GEOMEANX","GROUPBY","HASONEFILTER","HASONEVALUE","HOUR","IF","IFERROR","IN","INT","INTERSECT","ISBLANK","ISCROSSFILTERED","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISO.CEILING","ISODD","ISONORAFTER","ISTEXT","KEEPFILTERS","LASTDATE","LASTNONBLANK","LCM","LEFT","LEN","LN","LOG","LOOKUPVALUE","LOWER","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MID","MIN","MINA","MINUTE","MINX","MOD","MONTH","MROUND","NATURALINNERJOIN","NATURALLEFTOUTERJOIN","NEXTDAY","NEXTMONTH","NEXTQUARTER","NEXTYEAR","NOT","NOW","ODD","OPENINGBALANCEMONTH","OPENINGBALANCEQUARTER","OPENINGBALANCEYEAR","OR","ORDER","BY","PARALLELPERIOD","PATH","PATHCONTAINS","PATHITEM","PATHITEMREVERSE","PATHLENGTH","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PERMUT","PI","POISSON.DIST","POWER","PREVIOUSDAY","PREVIOUSMONTH","PREVIOUSQUARTER","PREVIOUSYEAR","PRODUCT","PRODUCTX","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANKX","RELATED","RELATEDTABLE","REPLACE","REPT","RIGHT","ROUND","ROUNDDOWN","ROUNDUP","ROW","SAMEPERIODLASTYEAR","SAMPLE","SEARCH","SECOND","SELECTCOLUMNS","SIGN","SIN","SINH","SQRT","SQRTPI","STARTOFMONTH","STARTOFQUARTER","STARTOFYEAR","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","SUBSTITUTE","SUBSTITUTEWITHINDEX","SUM","SUMMARIZE","SUMMARIZECOLUMNS","SUMX","SWITCH","TAN","TANH","TIME","TIMEVALUE","TODAY","TOPN","TOTALMTD","TOTALQTD","TOTALYTD","TRIM","TRUNC","UNION","UPPER","USERELATIONSHIP","USERNAME","VALUE","VALUES","VAR.P","VAR.S","VARX.P","VARX.S","WEEKDAY","WEEKNUM","XIRR","XNPV","YEAR","YEARFRAC","COUNTBLANK|10","COUNTROWS","COUNTX","CROSSFILTER|10","CROSSJOIN|10","CURRENCY","CUSTOMDATA","DATATABLE|10","DATE","DATEADD","DATEDIFF","DATESBETWEEN|10","DATESINPERIOD|10","DATESMTD","DATESQTD|10","DATESYTD|10","DATEVALUE","DAY","DEGREES","DISTINCT","DISTINCTCOUNT","DIVIDE","EARLIER","EARLIEST","EDATE","ENDOFMONTH|10","ENDOFQUARTER|10","ENDOFYEAR|10","EOMONTH|10","EVEN","EXACT","EXCEPT","EXP","EXPON.DIST","FACT","FILTER","FILTERS","FIND","FIRSTDATE","FIRSTNONBLANK|10","FIXED","FLOOR","FORMAT","GCD","GENERATE","GENERATEALL","GEOMEAN","GEOMEANX","GROUPBY","HASONEFILTER|10","HASONEVALUE|10","HOUR","IF","IFERROR","INT","INTERSECT","ISBLANK|10","ISCROSSFILTERED|10","ISEMPTY","ISERROR","ISEVEN","ISFILTERED","ISLOGICAL","ISNONTEXT","ISNUMBER","ISO.CEILING","ISODD","ISONORAFTER","ISTEXT","KEEPFILTERS","LASTDATE","LASTNONBLANK|10","LCM","LEFT","LEN","LN","LOG","LOG10","LOOKUPVALUE|10","LOWER","MAX","MAXA","MAXX","MEDIAN","MEDIANX","MID","MIN","MINA","MINUTE","MINX","MOD","MONTH","MROUND","NATURALINNERJOIN|10","NATURALLEFTOUTERJOIN|10","NEXTDAY|10","NEXTMONTH|10","NEXTQUARTER|10","NEXTYEAR|10","NOT","NOW","ODD","OPENINGBALANCEMONTH|10","OPENINGBALANCEQUARTER|10","OPENINGBALANCEYEAR|10","OR","PARALLELPERIOD|10","PATH","PATHCONTAINS|10","PATHITEM|10","PATHITEMREVERSE|10","PATHLENGTH|10","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILEX.EXC","PERCENTILEX.INC","PERMUT","PI","POISSON.DIST","POWER","PREVIOUSDAY|10","PREVIOUSMONTH|10","PREVIOUSQUARTER|10","PREVIOUSYEAR|10","PRODUCT","PRODUCTX","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.EQ","RANKX","RELATED","RELATEDTABLE|10","REPLACE","REPT","RIGHT","ROUND","ROUNDDOWN","ROUNDUP","ROW","SAMEPERIODLASTYEAR|10","SAMPLE","SEARCH","SECOND","SIGN","SIN","SINH","SQRT","SQRTPI","STARTOFMONTH|10","STARTOFQUARTER|10","STARTOFYEAR|10","STDEV.P","STDEV.S","STDEVX.P","STDEVX.S","SUBSTITUTE","SUBSTITUTEWITHINDEX|10","SUM","SUMMARIZE","SUMMARIZECOLUMNS|10","SUMX","SWITCH","TAN","TANH","TIME","TIMEVALUE","TODAY","TOPN","TOTALMTD|10","TOTALQTD|10","TOTALYTD|10","TRIM","TRUNC","UNION","UPPER","USERELATIONSHIP|10","USERNAME","VALUE","VALUES","VAR.P","VAR.S","VARX.P","VARX.S","WEEKDAY","WEEKNUM","XIRR|10","XNPV|10","YEAR","YEARFRAC|10","FALSE","TRUE","VAR","RETURN"];function pI(c){localStorage.setItem("theme",c),c==="auto"?document.documentElement.setAttribute("data-bs-theme",window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"):document.documentElement.setAttribute("data-bs-theme",c)}async function hI(){return localStorage.getItem("theme")||(await It()).defaultTheme||"auto"}async function el(){pI(await hI())}function bl(c){return new MutationObserver(()=>c($e())).observe(document.documentElement,{attributes:!0,attributeFilter:["data-bs-theme"]})}function $e(){return document.documentElement.getAttribute("data-bs-theme")}async function tb(){xI(),QI(),yI(),AI(),fI(),await Promise.all([VI(),RI(),qe()]),bl(qe)}async function RI(){document.querySelectorAll(".math").length>0&&await import("./tex-svg-full-SL33OL2J.min.js")}async function qe(){let c=document.querySelectorAll("pre code.lang-mermaid"),i=document.querySelectorAll("pre.mermaid[data-mermaid]");if(c.length<=0&&i.length<=0)return;let{default:t}=await import("./mermaid.core-NP2Z6XN6.min.js"),e=$e()==="dark"?"dark":"default",{mermaid:b}=await It();t.initialize(Object.assign({startOnLoad:!1,theme:e},b));let o=[];c.forEach(l=>{if(l.offsetParent){o.push(l.parentElement);let n=l.innerHTML;l.parentElement.classList.add("mermaid"),l.parentElement.setAttribute("data-mermaid",n),l.parentElement.innerHTML=n}}),i.forEach(l=>{l.offsetParent&&(l.removeAttribute("data-processed"),l.innerHTML=l.getAttribute("data-mermaid"),o.push(l))}),await t.run({nodes:o})}function xI(){document.querySelectorAll("article h1,h2,h3,h4,h5,h6,.xref,.text-break").forEach(c=>{if(c.innerHTML?.trim()===c.innerText?.trim()){let i=[];for(let t of _e(c.innerText))i.length>0&&i.push(document.createElement("wbr")),i.push(t);c.replaceChildren(...i)}})}async function VI(){let{showLightbox:c}=await It(),i=200,t=Array.from(document.querySelectorAll("article a img[src]"));document.querySelectorAll("article img[src]").forEach(e=>{o()?b():e.addEventListener("load",()=>{o()&&b()});function b(){let l=document.createElement("a");l.target="_blank",l.rel="noopener noreferrer nofollow",e.parentElement.tagName==="PICTURE"?e.parentElement.addEventListener("click",()=>{l.href=e.currentSrc,l.click()}):(l.href=e.src,e.replaceWith(l),l.appendChild(e))}function o(){return c?c(e):e.naturalWidth>i&&e.naturalHeight>i&&!t.includes(e)}})}function QI(){document.querySelectorAll("table").forEach(c=>{c.classList.add("table","table-bordered","table-condensed");let i=document.createElement("div");i.className="table-responsive",c.parentElement.insertBefore(i,c),i.appendChild(c)})}function yI(){document.querySelectorAll(".NOTE, .TIP").forEach(c=>c.classList.add("alert","alert-info")),document.querySelectorAll(".WARNING").forEach(c=>c.classList.add("alert","alert-warning")),document.querySelectorAll(".IMPORTANT, .CAUTION").forEach(c=>c.classList.add("alert","alert-danger"))}function AI(){at("docfx:disablenewtab")!=="true"&&document.querySelectorAll("article a[href]").forEach(c=>{c.hostname!==window.location.hostname&&c.innerText.trim()!==""&&(c.target="_blank",c.rel="noopener noreferrer nofollow",c.classList.add("external"))})}function fI(){m();let c={id:"data-bi-id",name:"data-bi-name",type:"data-bi-type"},i=function(){function I(g,Z,W){this.li=g,this.a=Z,this.section=W}return Object.defineProperty(I.prototype,"tabIds",{get:function(){return this.a.getAttribute("data-tab").split(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"condition",{get:function(){return this.a.getAttribute("data-condition")},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"visible",{get:function(){return!this.li.hasAttribute("hidden")},set:function(g){g?(this.li.removeAttribute("hidden"),this.li.removeAttribute("aria-hidden")):(this.li.setAttribute("hidden","hidden"),this.li.setAttribute("aria-hidden","true"))},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"selected",{get:function(){return!this.section.hasAttribute("hidden")},set:function(g){g?(this.a.setAttribute("aria-selected","true"),this.a.classList.add("active"),this.a.tabIndex=0,this.section.removeAttribute("hidden"),this.section.removeAttribute("aria-hidden")):(this.a.setAttribute("aria-selected","false"),this.a.classList.remove("active"),this.a.tabIndex=-1,this.section.setAttribute("hidden","hidden"),this.section.setAttribute("aria-hidden","true"))},enumerable:!0,configurable:!0}),I.prototype.focus=function(){this.a.focus()},I}();t(document.body);function t(I){let g=a(),Z=I.querySelectorAll(".tabGroup"),W={groups:[],selectedTabs:[]};for(let u=0;u ul > li > a[data-tab="'+W+'"]:not([hidden])');if(u===null)return;u.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}}function a(){let g=new URLSearchParams(window.location.search).get("tabs");return g?g.split(","):[]}function d(I){let g=new URLSearchParams(window.location.search);g.set("tabs",I.selectedTabs.join());let Z=location.protocol+"//"+location.host+location.pathname+"?"+g.toString()+location.hash;location.href!==Z&&history.replaceState({},document.title,Z)}function r(I,g){for(let Z=0,W=I;Zul").forEach(I=>I.classList.add("nav","nav-tabs")),document.querySelectorAll("div.tabGroup>ul>li").forEach(I=>I.classList.add("nav-item")),document.querySelectorAll("div.tabGroup>ul>li>a").forEach(I=>I.classList.add("nav-link")),document.querySelectorAll("div.tabGroup>section").forEach(I=>I.classList.add("card"))}function C(){qe()}}var ol={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},ll=c=>(...i)=>({_$litDirective$:c,values:i}),Uc=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,e){this._$Ct=i,this._$AM=t,this._$Ci=e}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};var Yt=ll(class extends Uc{constructor(c){if(super(c),c.type!==ol.ATTRIBUTE||c.name!=="class"||c.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(c){return" "+Object.keys(c).filter(i=>c[i]).join(" ")+" "}update(c,[i]){if(this.st===void 0){this.st=new Set,c.strings!==void 0&&(this.nt=new Set(c.strings.join(" ").split(/\s/).filter(e=>e!=="")));for(let e in i)i[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(i)}let t=c.element.classList;for(let e of this.st)e in i||(t.remove(e),this.st.delete(e));for(let e in i){let b=!!i[e];b===this.st.has(e)||this.nt?.has(e)||(b?(t.add(e),this.st.add(e)):(t.remove(e),this.st.delete(e)))}return qt}});var Zt;async function nl(){let c=document.getElementById("search-query");if(!c||!window.Worker)return;let i=at("docfx:rel")||"",t=new Worker(i+"public/search-worker.min.js",{type:"module"});t.onerror=n=>{console.error("Error occurred at search-worker. message: "+n.message)},t.onmessage=function(n){switch(n.data.e){case"index-ready":c.disabled=!1,c.addEventListener("input",e),window.docfx.searchReady=!0;break;case"query-ready":document.body.setAttribute("data-search","true"),l(n.data.d,0),window.docfx.searchResultReady=!0,c.value===""&&document.body.removeAttribute("data-search");break}},t.postMessage({init:!0});function e(){Zt=c.value,Zt===""?document.body.removeAttribute("data-search"):t.postMessage({q:Zt})}function b(n,a){let d=n.split(/\/+/),r=a.split(/\/+/),m=d.length-1,C=[];for(let I=0;Ia)return"..."+n.slice(r-a,r+a)+"...";if(r<=a)return n.slice(0,r+a)+"..."}function l(n,a){let r=Math.ceil(n.length/10);nt(m(a),document.getElementById("search-results"));function m(I){if(n.length===0)return f`