From 97abca8716d45e3c0871357e75e26cc904b3d743 Mon Sep 17 00:00:00 2001 From: "tabular-editor-docs-bot[bot]" <352398235+tabular-editor-docs-bot[bot]@users.noreply.github.com> Date: Thu, 12 Nov 2026 13:07:01 +0000 Subject: [PATCH] Update documentation --- .../references/object-properties/columns.md | 4 +- content/references/object-properties/model.md | 4 +- .../object-properties/partitions.md | 4 +- templates/tabulareditor/public/docfx.min.js | 44 +++++++++---------- .../tabulareditor/public/docfx.min.js.map | 6 +-- 5 files changed, 30 insertions(+), 32 deletions(-) diff --git a/content/references/object-properties/columns.md b/content/references/object-properties/columns.md index 7f9de93c5..0f8f7fb76 100644 --- a/content/references/object-properties/columns.md +++ b/content/references/object-properties/columns.md @@ -2,7 +2,7 @@ uid: object-properties-columns title: Column properties author: Jeroen ter Heerdt -updated: 2026-10-09 +updated: 2026-11-12 applies_to: products: - product: Tabular Editor 2 @@ -286,7 +286,7 @@ Whether the engine builds an index on a text column, and whether it saves that i | `Explicit` | Build and save the index only when you run a refresh of type `RefreshIndex`. | | `Full` | Build and save the index during a full refresh, a recalculation or a `RefreshIndex` refresh. | -In Power BI Desktop, whose engine supports compatibility level 1706, the engine accepts `Off` and `Auto` and rejects `Explicit` and `Full` with the error "Persist String Index feature is disabled". Recent versions of the TOM library only allow values other than `Auto` from compatibility level 1707. +In Power BI Desktop, whose engine supports compatibility level 1706, the engine accepts `Off` and `Auto` and rejects `Explicit` and `Full` with the error "Persist String Index feature is disabled". diff --git a/content/references/object-properties/model.md b/content/references/object-properties/model.md index bd64cb583..a11d1fce8 100644 --- a/content/references/object-properties/model.md +++ b/content/references/object-properties/model.md @@ -2,7 +2,7 @@ uid: object-properties-model title: Model properties author: Jeroen ter Heerdt -updated: 2026-10-09 +updated: 2026-11-12 applies_to: products: - product: Tabular Editor 2 @@ -224,7 +224,7 @@ Models with calculation groups must have it enabled, because calculation groups When `true`, Power BI discourages report authors from creating report-level measures in reports that connect live to this model. -You can't set this property. The TOM library only allows it at an internal compatibility level (2147483647), so Tabular Editor and any other tool that uses TOM reject the change at every released compatibility level. Tabular Editor 3 doesn't show it in the Properties view. +You can't set this property. Tabular Editor and any other tool that uses TOM reject the change at every released compatibility level. Tabular Editor 3 doesn't show it in the Properties view. ### Force Unique Names `ForceUniqueNames` · bool · Options · compatibility level 1465+ diff --git a/content/references/object-properties/partitions.md b/content/references/object-properties/partitions.md index 99eb9dd88..ed5efd384 100644 --- a/content/references/object-properties/partitions.md +++ b/content/references/object-properties/partitions.md @@ -2,7 +2,7 @@ uid: object-properties-partitions title: Partition properties author: Jeroen ter Heerdt -updated: 2026-10-09 +updated: 2026-11-12 applies_to: products: - product: Tabular Editor 2 @@ -161,8 +161,6 @@ The kind of partition, set when the partition is created. To change the kind, cr | `CalculationGroup` | The partition of a calculation group table. It holds no source; the engine fills it from the calculation items. | | `Inferred` | A partition for which the engine generates the query itself. Compatibility level 1563+. | -TOM also defines the value `Parquet`, for an internal compatibility level that Microsoft doesn't release, so it doesn't appear in your models. - ## Legacy and calculated partitions diff --git a/templates/tabulareditor/public/docfx.min.js b/templates/tabulareditor/public/docfx.min.js index 609335b1b..9d08379c8 100644 --- a/templates/tabulareditor/public/docfx.min.js +++ b/templates/tabulareditor/public/docfx.min.js @@ -1,8 +1,8 @@ -import{a as gt,b as yl,c as wc}from"./chunk-MY7PHHTQ.min.js";var Lo=gt((Re,Qe)=>{(function(c,i){typeof Re=="object"&&typeof Qe<"u"?Qe.exports=i():typeof define=="function"&&define.amd?define(i):(c=typeof globalThis<"u"?globalThis:c||self,c.Data=i())})(Re,(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((Rc,Oo)=>{(function(c,i){typeof Rc=="object"&&typeof Oo<"u"?i(Rc):typeof define=="function"&&define.amd?define(["exports"],i):(c=typeof globalThis<"u"?globalThis:c||self,i(c.Index={}))})(Rc,(function(c){"use strict";let e="transitionend",b=I=>(I&&window.CSS&&window.CSS.escape&&(I=I.replace(/#([^\s"#']+)/g,(x,F)=>`#${CSS.escape(F)}`)),I),o=I=>I==null?`${I}`:Object.prototype.toString.call(I).match(/\s([a-z]+)/i)[1].toLowerCase(),l=I=>{do I+=Math.floor(Math.random()*1e6);while(document.getElementById(I));return I},a=I=>{if(!I)return 0;let{transitionDuration:x,transitionDelay:F}=window.getComputedStyle(I),R=Number.parseFloat(x),y=Number.parseFloat(F);return!R&&!y?0:(x=x.split(",")[0],F=F.split(",")[0],(Number.parseFloat(x)+Number.parseFloat(F))*1e3)},n=I=>{I.dispatchEvent(new Event(e))},r=I=>!I||typeof I!="object"?!1:(typeof I.jquery<"u"&&(I=I[0]),typeof I.nodeType<"u"),s=I=>r(I)?I.jquery?I[0]:I:typeof I=="string"&&I.length>0?document.querySelector(b(I)):null,m=I=>{if(!r(I)||I.getClientRects().length===0)return!1;let x=getComputedStyle(I).getPropertyValue("visibility")==="visible",F=I.closest("details:not([open])");if(!F)return x;if(F!==I){let R=I.closest("summary");if(R&&R.parentNode!==F||R===null)return!1}return x},C=I=>!I||I.nodeType!==Node.ELEMENT_NODE||I.classList.contains("disabled")?!0:typeof I.disabled<"u"?I.disabled:I.hasAttribute("disabled")&&I.getAttribute("disabled")!=="false",d=I=>{if(!document.documentElement.attachShadow)return null;if(typeof I.getRootNode=="function"){let x=I.getRootNode();return x instanceof ShadowRoot?x:null}return I instanceof ShadowRoot?I:I.parentNode?d(I.parentNode):null},g=()=>{},G=I=>{I.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,B=[],h=I=>{document.readyState==="loading"?(B.length||document.addEventListener("DOMContentLoaded",()=>{for(let x of B)x()}),B.push(I)):I()},Q=()=>document.documentElement.dir==="rtl",Z=I=>{h(()=>{let x=p();if(x){let F=I.NAME,R=x.fn[F];x.fn[F]=I.jQueryInterface,x.fn[F].Constructor=I,x.fn[F].noConflict=()=>(x.fn[F]=R,I.jQueryInterface)}})},X=(I,x=[],F=I)=>typeof I=="function"?I.call(...x):F,u=(I,x,F=!0)=>{if(!F){X(I);return}let y=a(x)+5,f=!1,v=({target:Y})=>{Y===x&&(f=!0,x.removeEventListener(e,v),X(I))};x.addEventListener(e,v),setTimeout(()=>{f||n(x)},y)},U=(I,x,F,R)=>{let y=I.length,f=I.indexOf(x);return f===-1?!F&&R?I[y-1]:I[0]:(f+=F?1:-1,R&&(f=(f+y)%y),I[Math.max(0,Math.min(f,y-1))])};c.defineJQueryPlugin=Z,c.execute=X,c.executeAfterTransition=u,c.findShadowRoot=d,c.getElement=s,c.getNextActiveElement=U,c.getTransitionDurationFromElement=a,c.getUID=l,c.getjQuery=p,c.isDisabled=C,c.isElement=r,c.isRTL=Q,c.isVisible=m,c.noop=g,c.onDOMContentLoaded=h,c.parseSelector=b,c.reflow=G,c.toType=o,c.triggerTransitionEnd=n,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}))});var ye=gt((Ue,Ve)=>{(function(c,i){typeof Ue=="object"&&typeof Ve<"u"?Ve.exports=i(Ci()):typeof define=="function"&&define.amd?define(["../util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.EventHandler=i(c.Index))})(Ue,(function(c){"use strict";let i=/[^.]*(?=\..*)\.|.*/,t=/\..*/,e=/::\d+$/,b={},o=1,l={mouseenter:"mouseover",mouseleave:"mouseout"},a=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 n(Z,X){return X&&`${X}::${o++}`||Z.uidEvent||o++}function r(Z){let X=n(Z);return Z.uidEvent=X,b[X]=b[X]||{},b[X]}function s(Z,X){return function u(U){return Q(U,{delegateTarget:Z}),u.oneOff&&h.off(Z,U.type,X),X.apply(Z,[U])}}function m(Z,X,u){return function U(I){let x=Z.querySelectorAll(X);for(let{target:F}=I;F&&F!==this;F=F.parentNode)for(let R of x)if(R===F)return Q(I,{delegateTarget:F}),U.oneOff&&h.off(Z,I.type,X,u),u.apply(F,[I])}}function C(Z,X,u=null){return Object.values(Z).find(U=>U.callable===X&&U.delegationSelector===u)}function d(Z,X,u){let U=typeof X=="string",I=U?u:X||u,x=B(Z);return a.has(x)||(x=Z),[U,I,x]}function g(Z,X,u,U,I){if(typeof X!="string"||!Z)return;let[x,F,R]=d(X,u,U);X in l&&(F=(ti=>function(P){if(!P.relatedTarget||P.relatedTarget!==P.delegateTarget&&!P.delegateTarget.contains(P.relatedTarget))return ti.call(this,P)})(F));let y=r(Z),f=y[R]||(y[R]={}),v=C(f,F,x?u:null);if(v){v.oneOff=v.oneOff&&I;return}let Y=n(F,X.replace(i,"")),L=x?m(Z,u,F):s(Z,F);L.delegationSelector=x?u:null,L.callable=F,L.oneOff=I,L.uidEvent=Y,f[Y]=L,Z.addEventListener(R,L,x)}function G(Z,X,u,U,I){let x=C(X[u],U,I);x&&(Z.removeEventListener(u,x,!!I),delete X[u][x.uidEvent])}function p(Z,X,u,U){let I=X[u]||{};for(let[x,F]of Object.entries(I))x.includes(U)&&G(Z,X,u,F.callable,F.delegationSelector)}function B(Z){return Z=Z.replace(t,""),l[Z]||Z}let h={on(Z,X,u,U){g(Z,X,u,U,!1)},one(Z,X,u,U){g(Z,X,u,U,!0)},off(Z,X,u,U){if(typeof X!="string"||!Z)return;let[I,x,F]=d(X,u,U),R=F!==X,y=r(Z),f=y[F]||{},v=X.startsWith(".");if(typeof x<"u"){if(!Object.keys(f).length)return;G(Z,y,F,x,I?u:null);return}if(v)for(let Y of Object.keys(y))p(Z,y,Y,X.slice(1));for(let[Y,L]of Object.entries(f)){let _=Y.replace(e,"");(!R||X.includes(_))&&G(Z,y,F,L.callable,L.delegationSelector)}},trigger(Z,X,u){if(typeof X!="string"||!Z)return null;let U=c.getjQuery(),I=B(X),x=X!==I,F=null,R=!0,y=!0,f=!1;x&&U&&(F=U.Event(X,u),U(Z).trigger(F),R=!F.isPropagationStopped(),y=!F.isImmediatePropagationStopped(),f=F.isDefaultPrevented());let v=Q(new Event(X,{bubbles:R,cancelable:!0}),u);return f&&v.preventDefault(),y&&Z.dispatchEvent(v),v.defaultPrevented&&F&&F.preventDefault(),v}};function Q(Z,X={}){for(let[u,U]of Object.entries(X))try{Z[u]=U}catch{Object.defineProperty(Z,u,{configurable:!0,get(){return U}})}return Z}return h}))});var Jo=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 a=l.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1),b[a]=c(e.dataset[l])}return b},getDataAttribute(e,b){return c(e.getAttribute(`data-bs-${i(b)}`))}}}))});var No=gt((Ye,ve)=>{(function(c,i){typeof Ye=="object"&&typeof ve<"u"?ve.exports=i(Jo(),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,a]of Object.entries(o)){let n=b[l],r=i.isElement(n)?"element":i.toType(n);if(!new RegExp(a).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${l}" provided type "${r}" but expected type "${a}".`)}}}return t}))});var wo=gt((Le,Oe)=>{(function(c,i){typeof Le=="object"&&typeof Oe<"u"?Oe.exports=i(Lo(),ye(),No(),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))})(Le,(function(c,i,t,e){"use strict";let b="5.3.8";class o extends t{constructor(a,n){super(),a=e.getElement(a),a&&(this._element=a,this._config=this._getConfig(n),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 a of Object.getOwnPropertyNames(this))this[a]=null}_queueCallback(a,n,r=!0){e.executeAfterTransition(a,n,r)}_getConfig(a){return a=this._mergeConfigObj(a,this._element),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}static getInstance(a){return c.get(e.getElement(a),this.DATA_KEY)}static getOrCreateInstance(a,n={}){return this.getInstance(a)||new this(a,typeof n=="object"?n:null)}static get VERSION(){return b}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(a){return`${a}${this.EVENT_KEY}`}}return o}))});var ko=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 jo=gt((we,ke)=>{(function(c,i){typeof we=="object"&&typeof ke<"u"?ke.exports=i(wo(),ye(),ko(),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",a=".data-api",n=`activate${l}`,r=`click${l}`,s=`load${l}${a}`,m="dropdown-item",C="active",d='[data-bs-spy="scroll"]',g="[href]",G=".nav, .list-group",p=".nav-link",Q=`${p}, .nav-item > ${p}, .list-group-item`,Z=".dropdown",X=".dropdown-toggle",u={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},U={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class I extends c{constructor(F,R){super(F,R),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return u}static get DefaultType(){return U}static get NAME(){return b}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let F of this._observableSections.values())this._observer.observe(F)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(F){return F.target=e.getElement(F.target)||document.body,F.rootMargin=F.offset?`${F.offset}px 0px -30%`:F.rootMargin,typeof F.threshold=="string"&&(F.threshold=F.threshold.split(",").map(R=>Number.parseFloat(R))),F}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(i.off(this._config.target,r),i.on(this._config.target,r,g,F=>{let R=this._observableSections.get(F.target.hash);if(R){F.preventDefault();let y=this._rootElement||window,f=R.offsetTop-this._element.offsetTop;if(y.scrollTo){y.scrollTo({top:f,behavior:"smooth"});return}y.scrollTop=f}}))}_getNewObserver(){let F={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(R=>this._observerCallback(R),F)}_observerCallback(F){let R=Y=>this._targetLinks.get(`#${Y.target.id}`),y=Y=>{this._previousScrollData.visibleEntryTop=Y.target.offsetTop,this._process(R(Y))},f=(this._rootElement||document.documentElement).scrollTop,v=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(let Y of F){if(!Y.isIntersecting){this._activeTarget=null,this._clearActiveClass(R(Y));continue}let L=Y.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(v&&L){if(y(Y),!f)return;continue}!v&&!L&&y(Y)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let F=t.find(g,this._config.target);for(let R of F){if(!R.hash||e.isDisabled(R))continue;let y=t.findOne(decodeURI(R.hash),this._element);e.isVisible(y)&&(this._targetLinks.set(decodeURI(R.hash),R),this._observableSections.set(R.hash,y))}}_process(F){this._activeTarget!==F&&(this._clearActiveClass(this._config.target),this._activeTarget=F,F.classList.add(C),this._activateParents(F),i.trigger(this._element,n,{relatedTarget:F}))}_activateParents(F){if(F.classList.contains(m)){t.findOne(X,F.closest(Z)).classList.add(C);return}for(let R of t.parents(F,G))for(let y of t.prev(R,Q))y.classList.add(C)}_clearActiveClass(F){F.classList.remove(C);let R=t.find(`${g}.${C}`,F);for(let y of R)y.classList.remove(C)}static jQueryInterface(F){return this.each(function(){let R=I.getOrCreateInstance(this,F);if(typeof F=="string"){if(R[F]===void 0||F.startsWith("_")||F==="constructor")throw new TypeError(`No method named "${F}"`);R[F]()}})}}return i.on(window,s,()=>{for(let x of t.find(d))I.getOrCreateInstance(x)}),e.defineJQueryPlugin(I),I}))});var gl=gt((NF,fc)=>{(function(c,i){"use strict";typeof define=="function"&&define.amd?define([],i):typeof fc=="object"&&fc.exports?fc.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,a,n,r,s,m,C,d,g,G,p,B=[];if(t(this.options),o||(o="h2, h3, h4, h5, h6"),l=e(o),l.length===0)return this;for(b(),a=document.querySelectorAll("[id]"),n=[].map.call(a,function(h){return h.id}),s=0;s\]./()*\\\n\t\b\v\u00A0]/g;return this.options.truncate||t(this.options),o.trim().replace(/'/gi,"").replace(a,"-").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,a=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return l||a||!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}",a=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",n='@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)}",s;o.className="anchorjs",o.appendChild(document.createTextNode("")),s=document.head.querySelector('[rel="stylesheet"],style'),s===void 0?document.head.appendChild(o):document.head.insertBefore(o,s),o.sheet.insertRule(l,o.sheet.cssRules.length),o.sheet.insertRule(a,o.sheet.cssRules.length),o.sheet.insertRule(r,o.sheet.cssRules.length),o.sheet.insertRule(n,o.sheet.cssRules.length)}}}return c})});var Bl=gt(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.default=void 0;function eb(c){"@babel/helpers - typeof";return eb=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},eb(c)}function E(c,i){var t=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!t){if(Array.isArray(c)||(t=Wl(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,a;return{s:function(){t=t.call(c)},n:function(){var r=t.next();return o=r.done,r},e:function(r){l=!0,a=r},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(l)throw a}}}}function kd(c){return Hd(c)||zd(c)||Wl(c)||jd()}function jd(){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 Wl(c,i){if(c){if(typeof c=="string")return bb(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 bb(c,i)}}function zd(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function Hd(c){if(Array.isArray(c))return bb(c)}function bb(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 Td(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 a=e;if(a+=b!==""?"#".concat(b):"",o)for(var n=o.trim().split(/\s/),r=0;r ").concat(a)}},{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,kd(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=a+e+"px",b.forEach(function(n){var r=n.style.paddingRight,s=window.getComputedStyle(n)["padding-right"];n.dataset.originalPaddingRight=r,n.style.paddingRight="".concat(parseFloat(s)+e,"px")}))}}else document.body.classList.remove("hidden-scroll"),document.body.style.paddingRight=document.body.dataset.originalPaddingRight+"px",b.forEach(function(n){var r=n.dataset.originalPaddingRight;typeof r<"u"&&(n.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,a=new Image,n=new Image;a.addEventListener("load",function(r){var s=r.target.getAttribute("src");t.loadedImages.indexOf(s)===-1&&t.loadedImages.push(s),t.relatedElements[e].dispatchEvent(new Event("nextImageLoaded."+t.eventNamespace))}),a.setAttribute("src",this.relatedElements[o].getAttribute(this.options.sourceAttr)),n.addEventListener("load",function(r){var s=r.target.getAttribute("src");t.loadedImages.indexOf(s)===-1&&t.loadedImages.push(s),t.relatedElements[e].dispatchEvent(new Event("prevImageLoaded."+t.eventNamespace))}),n.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(a){e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("error."+e.eventNamespace)),e.isAnimating=!1,e.isOpen=!0,e.domNodes.spinner.style.display="none";var n=t===1||t===-1;if(e.initialImageIndex===e.currentImageIndex&&n)return e.close();e.options.alertError&&alert(e.options.alertErrorMessage),e.loadImage(n?t:1)}),b.addEventListener("load",function(a){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 n=a.target.width,r=a.target.height;if(e.options.scaleImageToRatio||n>o||r>l){var s=n/r>o/l?n/o:r/l;n/=s,r/=s}e.domNodes.image.style.top=(window.innerHeight-r)/2+"px",e.domNodes.image.style.left=(window.innerWidth-n-e.globalScrollbarWidth)/2+"px",e.domNodes.image.style.width=n+"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),a=parseFloat(e.borderBottomWidth),n=parseFloat(e.paddingTop),r=parseFloat(e.paddingBottom),s=parseFloat(e.borderLeftWidth),m=parseFloat(e.borderRightWidth),C=parseFloat(e.paddingLeft),d=parseFloat(e.paddingRight);return{height:b-a-l-n-r,width:o-s-m-C-d}}},{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,a=!((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[a]=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),a;try{for(l.s();!(a=l.n()).done;){var n=a.value;n.namespaces||(n.namespaces={});var r=E(e),s;try{for(r.s();!(s=r.n()).done;){var m=s.value,C=o||!1,d=["touchstart","touchmove","mousewheel","DOMMouseScroll"].indexOf(m.split(".")[0])>=0;d&&this.isPassiveEventsSupported&&(eb(C)==="object"?C.passive=!0:C={passive:!0}),n.namespaces[m]=b,n.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,a=E(e),n;try{for(a.s();!(n=a.n()).done;){var r=n.value;l.namespaces&&l.namespaces[r]&&(l.removeEventListener(r.split(".")[0],l.namespaces[r]),delete l.namespaces[r])}}catch(s){a.e(s)}finally{a.f()}}}catch(s){b.e(s)}finally{b.f()}}},{key:"fadeOut",value:function(t,e,b){var o=this;t=this.wrap(t);var l=E(t),a;try{for(l.s();!(a=l.n()).done;){var n=a.value;n.style.opacity=parseFloat(n)||window.getComputedStyle(n).getPropertyValue("opacity")}}catch(m){l.e(m)}finally{l.f()}this.isFadeIn=!1;var r=16.66666/(e||this.options.fadeSpeed),s=function m(){var C=parseFloat(t[0].style.opacity);if((C-=r)<0){var d=E(t),g;try{for(d.s();!(g=d.n()).done;){var G=g.value;G.style.display="none",G.style.opacity=1}}catch(Q){d.e(Q)}finally{d.f()}b&&b.call(o,t)}else{var p=E(t),B;try{for(p.s();!(B=p.n()).done;){var h=B.value;h.style.opacity=C}}catch(Q){p.e(Q)}finally{p.f()}requestAnimationFrame(m)}};s()}},{key:"fadeIn",value:function(t,e,b,o){var l=this;t=this.wrap(t);var a=E(t),n;try{for(a.s();!(n=a.n()).done;){var r=n.value;r&&(r.style.opacity=0,r.style.display=o||"block")}}catch(d){a.e(d)}finally{a.f()}this.isFadeIn=!0;var s=parseFloat(t[0].dataset.opacityTarget||1),m=16.66666*s/(e||this.options.fadeSpeed),C=function d(){var g=parseFloat(t[0].style.opacity);if((g+=m)>s){var h=E(t),Q;try{for(h.s();!(Q=h.n()).done;){var Z=Q.value;Z&&(Z.style.opacity=s)}}catch(X){h.e(X)}finally{h.f()}b&&b.call(l,t)}else{var G=E(t),p;try{for(G.s();!(p=G.n()).done;){var B=p.value;B&&(B.style.opacity=g)}}catch(X){G.e(X)}finally{G.f()}if(!l.isFadeIn)return;requestAnimationFrame(d)}};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(a){b.e(a)}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 a=E(t),n;try{for(a.s();!(n=a.n()).done;){var r=n.value;l.fullyNamespacedEvents[r]=e,l.addEventListener(r,e)}}catch(s){a.e(s)}finally{a.f()}}}catch(s){b.e(s)}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),a;try{for(l.s();!(a=l.n()).done;){var n=a.value;typeof o.fullyNamespacedEvents<"u"&&n in o.fullyNamespacedEvents&&o.removeEventListener(n,o.fullyNamespacedEvents[n])}}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})(),Dd=pl;Yc.default=Dd;window.SimpleLightbox=pl});var lc={};yl(lc,{afterMain:()=>Cb,afterRead:()=>Fb,afterWrite:()=>Bb,applyStyles:()=>ei,arrow:()=>$i,auto:()=>hi,basePlacements:()=>Ft,beforeMain:()=>Zb,beforeRead:()=>mb,beforeWrite:()=>Wb,bottom:()=>j,clippingParents:()=>kc,computeStyles:()=>oi,createPopper:()=>Yi,createPopperBase:()=>Ab,createPopperLite:()=>fb,detectOverflow:()=>K,end:()=>ut,eventListeners:()=>li,flip:()=>cc,hide:()=>ec,left:()=>w,main:()=>Xb,modifierPhases:()=>zc,offset:()=>bc,placements:()=>Ri,popper:()=>Ot,popperGenerator:()=>St,popperOffsets:()=>ri,preventOverflow:()=>oc,read:()=>Gb,reference:()=>jc,right:()=>k,start:()=>mt,top:()=>N,variationPlacements:()=>Pi,viewport:()=>xi,write:()=>pb});var N="top",j="bottom",k="right",w="left",hi="auto",Ft=[N,j,k,w],mt="start",ut="end",kc="clippingParents",xi="viewport",Ot="popper",jc="reference",Pi=Ft.reduce(function(c,i){return c.concat([i+"-"+mt,i+"-"+ut])},[]),Ri=[].concat(Ft,[hi]).reduce(function(c,i){return c.concat([i,i+"-"+mt,i+"-"+ut])},[]),mb="beforeRead",Gb="read",Fb="afterRead",Zb="beforeMain",Xb="main",Cb="afterMain",Wb="beforeWrite",pb="write",Bb="afterWrite",zc=[mb,Gb,Fb,Zb,Xb,Cb,Wb,pb,Bb];function H(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 z(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 Al(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];!z(o)||!H(o)||(Object.assign(o.style,e),Object.keys(b).forEach(function(l){var a=b[l];a===!1?o.removeAttribute(l):o.setAttribute(l,a===!0?"":a)}))})}function fl(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]),a=l.reduce(function(n,r){return n[r]="",n},{});!z(b)||!H(b)||(Object.assign(b.style,a),Object.keys(o).forEach(function(n){b.removeAttribute(n)}))})}}var ei={name:"applyStyles",enabled:!0,phase:"write",fn:Al,effect:fl,requires:["computeStyles"]};function S(c){return c.split("-")[0]}var nt=Math.max,Jt=Math.min,Zt=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 Qi(){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&&z(c)&&(b=c.offsetWidth>0&&Zt(e.width)/c.offsetWidth||1,o=c.offsetHeight>0&&Zt(e.height)/c.offsetHeight||1);var l=it(c)?J(c):window,a=l.visualViewport,n=!Qi()&&t,r=(e.left+(n&&a?a.offsetLeft:0))/b,s=(e.top+(n&&a?a.offsetTop:0))/o,m=e.width/b,C=e.height/o;return{width:m,height:C,top:s,right:r+m,bottom:s+C,left:r,x:r,y:s}}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 Ui(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 Hc(c){return["table","td","th"].indexOf(H(c))>=0}function D(c){return((it(c)?c.ownerDocument:c.document)||window.document).documentElement}function Xt(c){return H(c)==="html"?c:c.assignedSlot||c.parentNode||(ci(c)?c.host:null)||D(c)}function ub(c){return!z(c)||M(c).position==="fixed"?null:c.offsetParent}function Yl(c){var i=/firefox/i.test(bi()),t=/Trident/i.test(bi());if(t&&z(c)){var e=M(c);if(e.position==="fixed")return null}var b=Xt(c);for(ci(b)&&(b=b.host);z(b)&&["html","body"].indexOf(H(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&&Hc(t)&&M(t).position==="static";)t=ub(t);return t&&(H(t)==="html"||H(t)==="body"&&M(t).position==="static")?i:t||Yl(c)||i}function wt(c){return["top","bottom"].indexOf(c)>=0?"x":"y"}function kt(c,i,t){return nt(c,Jt(i,t))}function hb(c,i,t){var e=kt(c,i,t);return e>t?t:e}function Vi(){return{top:0,right:0,bottom:0,left:0}}function yi(c){return Object.assign({},Vi(),c)}function Ai(c,i){return i.reduce(function(t,e){return t[e]=c,t},{})}var vl=function(i,t){return i=typeof i=="function"?i(Object.assign({},t.rects,{placement:t.placement})):i,yi(typeof i!="number"?i:Ai(i,Ft))};function Ll(c){var i,t=c.state,e=c.name,b=c.options,o=t.elements.arrow,l=t.modifiersData.popperOffsets,a=S(t.placement),n=wt(a),r=[w,k].indexOf(a)>=0,s=r?"height":"width";if(!(!o||!l)){var m=vl(b.padding,t),C=Nt(o),d=n==="y"?N:w,g=n==="y"?j:k,G=t.rects.reference[s]+t.rects.reference[n]-l[n]-t.rects.popper[s],p=l[n]-t.rects.reference[n],B=rt(o),h=B?n==="y"?B.clientHeight||0:B.clientWidth||0:0,Q=G/2-p/2,Z=m[d],X=h-C[s]-m[g],u=h/2-C[s]/2+Q,U=kt(Z,u,X),I=n;t.modifiersData[e]=(i={},i[I]=U,i.centerOffset=U-u,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)||Ui(i.elements.popper,b)&&(i.elements.arrow=b))}var $i={name:"arrow",enabled:!0,phase:"main",fn:Ll,effect:Ol,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(c){return c.split("-")[1]}var Jl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Nl(c,i){var t=c.x,e=c.y,b=i.devicePixelRatio||1;return{x:Zt(t*b)/b||0,y:Zt(e*b)/b||0}}function xb(c){var i,t=c.popper,e=c.popperRect,b=c.placement,o=c.variation,l=c.offsets,a=c.position,n=c.gpuAcceleration,r=c.adaptive,s=c.roundOffsets,m=c.isFixed,C=l.x,d=C===void 0?0:C,g=l.y,G=g===void 0?0:g,p=typeof s=="function"?s({x:d,y:G}):{x:d,y:G};d=p.x,G=p.y;var B=l.hasOwnProperty("x"),h=l.hasOwnProperty("y"),Q=w,Z=N,X=window;if(r){var u=rt(t),U="clientHeight",I="clientWidth";if(u===J(t)&&(u=D(t),M(u).position!=="static"&&a==="absolute"&&(U="scrollHeight",I="scrollWidth")),u=u,b===N||(b===w||b===k)&&o===ut){Z=j;var x=m&&u===X&&X.visualViewport?X.visualViewport.height:u[U];G-=x-e.height,G*=n?1:-1}if(b===w||(b===N||b===j)&&o===ut){Q=k;var F=m&&u===X&&X.visualViewport?X.visualViewport.width:u[I];d-=F-e.width,d*=n?1:-1}}var R=Object.assign({position:a},r&&Jl),y=s===!0?Nl({x:d,y:G},J(t)):{x:d,y:G};if(d=y.x,G=y.y,n){var f;return Object.assign({},R,(f={},f[Z]=h?"0":"",f[Q]=B?"0":"",f.transform=(X.devicePixelRatio||1)<=1?"translate("+d+"px, "+G+"px)":"translate3d("+d+"px, "+G+"px, 0)",f))}return Object.assign({},R,(i={},i[Z]=h?G+"px":"",i[Q]=B?d+"px":"",i.transform="",i))}function wl(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,a=t.roundOffsets,n=a===void 0?!0:a,r={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,xb(Object.assign({},r,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:l,roundOffsets:n})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,xb(Object.assign({},r,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:n})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wl,data:{}};var qi={passive:!0};function kl(c){var i=c.state,t=c.instance,e=c.options,b=e.scroll,o=b===void 0?!0:b,l=e.resize,a=l===void 0?!0:l,n=J(i.elements.popper),r=[].concat(i.scrollParents.reference,i.scrollParents.popper);return o&&r.forEach(function(s){s.addEventListener("scroll",t.update,qi)}),a&&n.addEventListener("resize",t.update,qi),function(){o&&r.forEach(function(s){s.removeEventListener("scroll",t.update,qi)}),a&&n.removeEventListener("resize",t.update,qi)}}var li={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:kl,data:{}};var jl={left:"right",right:"left",bottom:"top",top:"bottom"};function ai(c){return c.replace(/left|right|bottom|top/g,function(i){return jl[i]})}var zl={start:"end",end:"start"};function tc(c){return c.replace(/start|end/g,function(i){return zl[i]})}function jt(c){var i=J(c),t=i.pageXOffset,e=i.pageYOffset;return{scrollLeft:t,scrollTop:e}}function zt(c){return ct(D(c)).left+jt(c).scrollLeft}function Sc(c,i){var t=J(c),e=D(c),b=t.visualViewport,o=e.clientWidth,l=e.clientHeight,a=0,n=0;if(b){o=b.width,l=b.height;var r=Qi();(r||!r&&i==="fixed")&&(a=b.offsetLeft,n=b.offsetTop)}return{width:o,height:l,x:a+zt(c),y:n}}function Tc(c){var i,t=D(c),e=jt(c),b=(i=c.ownerDocument)==null?void 0:i.body,o=nt(t.scrollWidth,t.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),l=nt(t.scrollHeight,t.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),a=-e.scrollLeft+zt(c),n=-e.scrollTop;return M(b||t).direction==="rtl"&&(a+=nt(t.clientWidth,b?b.clientWidth:0)-o),{width:o,height:l,x:a,y:n}}function Ht(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(H(c))>=0?c.ownerDocument.body:z(c)&&Ht(c)?c:ic(Xt(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||[],Ht(e)?e:[]):e,a=i.concat(l);return b?a:a.concat(ht(Xt(l)))}function ni(c){return Object.assign({},c,{left:c.x,top:c.y,right:c.x+c.width,bottom:c.y+c.height})}function Hl(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===xi?ni(Sc(c,t)):it(i)?Hl(i,t):ni(Tc(D(c)))}function Sl(c){var i=ht(Xt(c)),t=["absolute","fixed"].indexOf(M(c).position)>=0,e=t&&z(c)?rt(c):c;return it(e)?i.filter(function(b){return it(b)&&Ui(b,e)&&H(b)!=="body"}):[]}function Dc(c,i,t,e){var b=i==="clippingParents"?Sl(c):[].concat(i),o=[].concat(b,[t]),l=o[0],a=o.reduce(function(n,r){var s=Rb(c,r,e);return n.top=nt(s.top,n.top),n.right=Jt(s.right,n.right),n.bottom=Jt(s.bottom,n.bottom),n.left=nt(s.left,n.left),n},Rb(c,l,e));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function fi(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,a=i.y+i.height/2-t.height/2,n;switch(b){case N:n={x:l,y:i.y-t.height};break;case j:n={x:l,y:i.y+i.height};break;case k:n={x:i.x+i.width,y:a};break;case w:n={x:i.x-t.width,y:a};break;default:n={x:i.x,y:i.y}}var r=b?wt(b):null;if(r!=null){var s=r==="y"?"height":"width";switch(o){case mt:n[r]=n[r]-(i[s]/2-t[s]/2);break;case ut:n[r]=n[r]+(i[s]/2-t[s]/2);break;default:}}return n}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,a=t.boundary,n=a===void 0?kc:a,r=t.rootBoundary,s=r===void 0?xi:r,m=t.elementContext,C=m===void 0?Ot:m,d=t.altBoundary,g=d===void 0?!1:d,G=t.padding,p=G===void 0?0:G,B=yi(typeof p!="number"?p:Ai(p,Ft)),h=C===Ot?jc:Ot,Q=c.rects.popper,Z=c.elements[g?h:C],X=Dc(it(Z)?Z:Z.contextElement||D(c.elements.popper),n,s,l),u=ct(c.elements.reference),U=fi({reference:u,element:Q,strategy:"absolute",placement:b}),I=ni(Object.assign({},Q,U)),x=C===Ot?I:u,F={top:X.top-x.top+B.top,bottom:x.bottom-X.bottom+B.bottom,left:X.left-x.left+B.left,right:x.right-X.right+B.right},R=c.modifiersData.offset;if(C===Ot&&R){var y=R[b];Object.keys(F).forEach(function(f){var v=[k,j].indexOf(f)>=0?1:-1,Y=[N,j].indexOf(f)>=0?"y":"x";F[f]+=y[Y]*v})}return F}function Ec(c,i){i===void 0&&(i={});var t=i,e=t.placement,b=t.boundary,o=t.rootBoundary,l=t.padding,a=t.flipVariations,n=t.allowedAutoPlacements,r=n===void 0?Ri:n,s=et(e),m=s?a?Pi:Pi.filter(function(g){return et(g)===s}):Ft,C=m.filter(function(g){return r.indexOf(g)>=0});C.length===0&&(C=m);var d=C.reduce(function(g,G){return g[G]=K(c,{placement:G,boundary:b,rootBoundary:o,padding:l})[S(G)],g},{});return Object.keys(d).sort(function(g,G){return d[g]-d[G]})}function Tl(c){if(S(c)===hi)return[];var i=ai(c);return[tc(c),i,tc(i)]}function Dl(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,a=l===void 0?!0:l,n=t.fallbackPlacements,r=t.padding,s=t.boundary,m=t.rootBoundary,C=t.altBoundary,d=t.flipVariations,g=d===void 0?!0:d,G=t.allowedAutoPlacements,p=i.options.placement,B=S(p),h=B===p,Q=n||(h||!g?[ai(p)]:Tl(p)),Z=[p].concat(Q).reduce(function(ii,Bt){return ii.concat(S(Bt)===hi?Ec(i,{placement:Bt,boundary:s,rootBoundary:m,padding:r,flipVariations:g,allowedAutoPlacements:G}):Bt)},[]),X=i.rects.reference,u=i.rects.popper,U=new Map,I=!0,x=Z[0],F=0;F=0,Y=v?"width":"height",L=K(i,{placement:R,boundary:s,rootBoundary:m,altBoundary:C,padding:r}),_=v?f?k:w:f?j:N;X[Y]>u[Y]&&(_=ai(_));var ti=ai(_),P=[];if(o&&P.push(L[y]<=0),a&&P.push(L[_]<=0,L[ti]<=0),P.every(function(ii){return ii})){x=R,I=!1;break}U.set(R,P)}if(I)for(var Ei=g?3:1,Lc=function(Bt){var ui=Z.find(function(Ki){var vt=U.get(Ki);if(vt)return vt.slice(0,Bt).every(function(Oc){return Oc})});if(ui)return x=ui,"break"},Bi=Ei;Bi>0;Bi--){var Mi=Lc(Bi);if(Mi==="break")break}i.placement!==x&&(i.modifiersData[e]._skip=!0,i.placement=x,i.reset=!0)}}var cc={name:"flip",enabled:!0,phase:"main",fn:Dl,requiresIfExists:["offset"],data:{_skip:!1}};function Qb(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 Ub(c){return[N,k,j,w].some(function(i){return c[i]>=0})}function El(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"}),a=K(i,{altBoundary:!0}),n=Qb(l,e),r=Qb(a,b,o),s=Ub(n),m=Ub(r);i.modifiersData[t]={referenceClippingOffsets:n,popperEscapeOffsets:r,isReferenceHidden:s,hasPopperEscaped:m},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":m})}var ec={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:El};function Ml(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],a=o[1];return l=l||0,a=(a||0)*b,[w,k].indexOf(e)>=0?{x:a,y:l}:{x:l,y:a}}function Kl(c){var i=c.state,t=c.options,e=c.name,b=t.offset,o=b===void 0?[0,0]:b,l=Ri.reduce(function(s,m){return s[m]=Ml(m,i.rects,o),s},{}),a=l[i.placement],n=a.x,r=a.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=n,i.modifiersData.popperOffsets.y+=r),i.modifiersData[e]=l}var bc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kl};function _l(c){var i=c.state,t=c.name;i.modifiersData[t]=fi({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var ri={name:"popperOffsets",enabled:!0,phase:"read",fn:_l,data:{}};function Mc(c){return c==="x"?"y":"x"}function Pl(c){var i=c.state,t=c.options,e=c.name,b=t.mainAxis,o=b===void 0?!0:b,l=t.altAxis,a=l===void 0?!1:l,n=t.boundary,r=t.rootBoundary,s=t.altBoundary,m=t.padding,C=t.tether,d=C===void 0?!0:C,g=t.tetherOffset,G=g===void 0?0:g,p=K(i,{boundary:n,rootBoundary:r,padding:m,altBoundary:s}),B=S(i.placement),h=et(i.placement),Q=!h,Z=wt(B),X=Mc(Z),u=i.modifiersData.popperOffsets,U=i.rects.reference,I=i.rects.popper,x=typeof G=="function"?G(Object.assign({},i.rects,{placement:i.placement})):G,F=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),R=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,y={x:0,y:0};if(u){if(o){var f,v=Z==="y"?N:w,Y=Z==="y"?j:k,L=Z==="y"?"height":"width",_=u[Z],ti=_+p[v],P=_-p[Y],Ei=d?-I[L]/2:0,Lc=h===mt?U[L]:I[L],Bi=h===mt?-I[L]:-U[L],Mi=i.elements.arrow,ii=d&&Mi?Nt(Mi):{width:0,height:0},Bt=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:Vi(),ui=Bt[v],Ki=Bt[Y],vt=kt(0,U[L],ii[L]),Oc=Q?U[L]/2-Ei-vt-ui-F.mainAxis:Lc-vt-ui-F.mainAxis,hl=Q?-U[L]/2+Ei+vt+Ki+F.mainAxis:Bi+vt+Ki+F.mainAxis,Jc=i.elements.arrow&&rt(i.elements.arrow),xl=Jc?Z==="y"?Jc.clientTop||0:Jc.clientLeft||0:0,ob=(f=R?.[Z])!=null?f:0,Rl=_+Oc-ob-xl,Ql=_+hl-ob,lb=kt(d?Jt(ti,Rl):ti,_,d?nt(P,Ql):P);u[Z]=lb,y[Z]=lb-_}if(a){var ab,Ul=Z==="x"?N:w,Vl=Z==="x"?j:k,Lt=u[X],_i=X==="y"?"height":"width",nb=Lt+p[Ul],rb=Lt-p[Vl],Nc=[N,w].indexOf(B)!==-1,sb=(ab=R?.[X])!=null?ab:0,db=Nc?nb:Lt-U[_i]-I[_i]-sb+F.altAxis,Ib=Nc?Lt+U[_i]+I[_i]-sb-F.altAxis:rb,gb=d&&Nc?hb(db,Lt,Ib):kt(d?db:nb,Lt,d?Ib:rb);u[X]=gb,y[X]=gb-Lt}i.modifiersData[e]=y}}var oc={name:"preventOverflow",enabled:!0,phase:"main",fn:Pl,requiresIfExists:["offset"]};function Kc(c){return{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}}function _c(c){return c===J(c)||!z(c)?jt(c):Kc(c)}function $l(c){var i=c.getBoundingClientRect(),t=Zt(i.width)/c.offsetWidth||1,e=Zt(i.height)/c.offsetHeight||1;return t!==1||e!==1}function Pc(c,i,t){t===void 0&&(t=!1);var e=z(i),b=z(i)&&$l(i),o=D(i),l=ct(c,b,t),a={scrollLeft:0,scrollTop:0},n={x:0,y:0};return(e||!e&&!t)&&((H(i)!=="body"||Ht(o))&&(a=_c(i)),z(i)?(n=ct(i,!0),n.x+=i.clientLeft,n.y+=i.clientTop):o&&(n.x=zt(o))),{x:l.left+a.scrollLeft-n.x,y:l.top+a.scrollTop-n.y,width:l.width,height:l.height}}function ql(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(a){if(!t.has(a)){var n=i.get(a);n&&b(n)}}),e.push(o)}return c.forEach(function(o){t.has(o.name)||b(o)}),e}function $c(c){var i=ql(c);return zc.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 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),ba=c=>c==null?`${c}`:Object.prototype.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase(),oa=c=>{do c+=Math.floor(Math.random()*ca);while(document.getElementById(c));return c},la=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))*ea)},no=c=>{c.dispatchEvent(new Event(Ze))},Ct=c=>!c||typeof c!="object"?!1:(typeof c.jquery<"u"&&(c=c[0]),typeof c.nodeType<"u"),Rt=c=>Ct(c)?c.jquery?c[0]:c:typeof c=="string"&&c.length>0?document.querySelector(ao(c)):null,Zi=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},Qt=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",ro=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?ro(c.parentNode):null},Gc=()=>{},wi=c=>{c.offsetHeight},so=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ce=[],aa=c=>{document.readyState==="loading"?(ce.length||document.addEventListener("DOMContentLoaded",()=>{for(let i of ce)i()}),ce.push(c)):c()},bt=()=>document.documentElement.dir==="rtl",lt=c=>{aa(()=>{let i=so();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.call(...i):t,Io=(c,i,t=!0)=>{if(!t){$(c);return}let b=la(i)+5,o=!1,l=({target:a})=>{a===i&&(o=!0,i.removeEventListener(Ze,l),$(c))};i.addEventListener(Ze,l),setTimeout(()=>{o||no(i)},b)},Be=(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))])},na=/[^.]*(?=\..*)\.|.*/,ra=/\..*/,sa=/::\d+$/,ee={},Yb=1,go={mouseenter:"mouseover",mouseleave:"mouseout"},da=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 mo(c,i){return i&&`${i}::${Yb++}`||c.uidEvent||Yb++}function Go(c){let i=mo(c);return c.uidEvent=i,ee[i]=ee[i]||{},ee[i]}function Ia(c,i){return function t(e){return ue(e,{delegateTarget:c}),t.oneOff&&W.off(c,e.type,i),i.apply(c,[e])}}function ga(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 a of o)if(a===l)return ue(b,{delegateTarget:l}),e.oneOff&&W.off(c,b.type,i,t),t.apply(l,[b])}}function Fo(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 da.has(o)||(o=c),[e,b,o]}function vb(c,i,t,e,b){if(typeof i!="string"||!c)return;let[o,l,a]=Zo(i,t,e);i in go&&(l=(g=>function(G){if(!G.relatedTarget||G.relatedTarget!==G.delegateTarget&&!G.delegateTarget.contains(G.relatedTarget))return g.call(this,G)})(l));let n=Go(c),r=n[a]||(n[a]={}),s=Fo(r,l,o?t:null);if(s){s.oneOff=s.oneOff&&b;return}let m=mo(l,i.replace(na,"")),C=o?ga(c,t,l):Ia(c,l);C.delegationSelector=o?t:null,C.callable=l,C.oneOff=b,C.uidEvent=m,r[m]=C,c.addEventListener(a,C,o)}function Xe(c,i,t,e,b){let o=Fo(i[t],e,b);o&&(c.removeEventListener(t,o,!!b),delete i[t][o.uidEvent])}function ma(c,i,t,e){let b=i[t]||{};for(let[o,l]of Object.entries(b))o.includes(e)&&Xe(c,i,t,l.callable,l.delegationSelector)}function Xo(c){return c=c.replace(ra,""),go[c]||c}var W={on(c,i,t,e){vb(c,i,t,e,!1)},one(c,i,t,e){vb(c,i,t,e,!0)},off(c,i,t,e){if(typeof i!="string"||!c)return;let[b,o,l]=Zo(i,t,e),a=l!==i,n=Go(c),r=n[l]||{},s=i.startsWith(".");if(typeof o<"u"){if(!Object.keys(r).length)return;Xe(c,n,l,o,b?t:null);return}if(s)for(let m of Object.keys(n))ma(c,n,m,i.slice(1));for(let[m,C]of Object.entries(r)){let d=m.replace(sa,"");(!a||i.includes(d))&&Xe(c,n,l,C.callable,C.delegationSelector)}},trigger(c,i,t){if(typeof i!="string"||!c)return null;let e=so(),b=Xo(i),o=i!==b,l=null,a=!0,n=!0,r=!1;o&&e&&(l=e.Event(i,t),e(c).trigger(l),a=!l.isPropagationStopped(),n=!l.isImmediatePropagationStopped(),r=l.isDefaultPrevented());let s=ue(new Event(i,{bubbles:a,cancelable:!0}),t);return r&&s.preventDefault(),n&&c.dispatchEvent(s),s.defaultPrevented&&l&&l.preventDefault(),s}};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 Lb(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 Wt={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),i[b]=Lb(c.dataset[e])}return i},getDataAttribute(c,i){return Lb(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)?Wt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof e=="object"?e:{},...Ct(t)?Wt.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":ba(o);if(!new RegExp(b).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${e}" provided type "${l}" but expected type "${b}".`)}}},Ga="5.3.8",q=class extends Et{constructor(i,t){super(),i=Rt(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),W.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 ie.get(Rt(i),this.DATA_KEY)}static getOrCreateInstance(i,t={}){return this.getInstance(i)||new this(i,typeof t=="object"?t:null)}static get VERSION(){return Ga}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=>ao(t)).join(","):null},V={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=>!Qt(t)&&Zi(t))},getSelectorFromElement(c){let i=oe(c);return i&&V.findOne(i)?i:null},getElementFromSelector(c){let i=oe(c);return i?V.findOne(i):null},getMultipleElementsFromSelector(c){let i=oe(c);return i?V.find(i):[]}},xc=(c,i="hide")=>{let t=`click.dismiss${c.EVENT_KEY}`,e=c.NAME;W.on(document,t,`[data-bs-dismiss="${e}"]`,function(b){if(["A","AREA"].includes(this.tagName)&&b.preventDefault(),Qt(this))return;let o=V.getElementFromSelector(this)||this.closest(`.${e}`);c.getOrCreateInstance(o)[i]()})},Fa="alert",Za="bs.alert",Co=`.${Za}`,Xa=`close${Co}`,Ca=`closed${Co}`,Wa="fade",pa="show",Fc=class c extends q{static get NAME(){return Fa}close(){if(W.trigger(this._element,Xa).defaultPrevented)return;this._element.classList.remove(pa);let t=this._element.classList.contains(Wa);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),W.trigger(this._element,Ca),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)}})}};xc(Fc,"close");lt(Fc);var Ba="button",ua="bs.button",ha=`.${ua}`,xa=".data-api",Ra="active",Ob='[data-bs-toggle="button"]',Qa=`click${ha}${xa}`,Zc=class c extends q{static get NAME(){return Ba}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Ra))}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);i==="toggle"&&t[i]()})}};W.on(document,Qa,Ob,c=>{c.preventDefault();let i=c.target.closest(Ob);Zc.getOrCreateInstance(i).toggle()});lt(Zc);var Ua="swipe",Xi=".bs.swipe",Va=`touchstart${Xi}`,ya=`touchmove${Xi}`,Aa=`touchend${Xi}`,fa=`pointerdown${Xi}`,Ya=`pointerup${Xi}`,va="touch",La="pen",Oa="pointer-event",Ja=40,Na={endCallback:null,leftCallback:null,rightCallback:null},wa={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Xc=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 Na}static get DefaultType(){return wa}static get NAME(){return Ua}dispose(){W.off(this._element,Xi)}_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<=Ja)return;let t=i/this._deltaX;this._deltaX=0,t&&$(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(W.on(this._element,fa,i=>this._start(i)),W.on(this._element,Ya,i=>this._end(i)),this._element.classList.add(Oa)):(W.on(this._element,Va,i=>this._start(i)),W.on(this._element,ya,i=>this._move(i)),W.on(this._element,Aa,i=>this._end(i)))}_eventIsPointerPenTouch(i){return this._supportPointerEvents&&(i.pointerType===La||i.pointerType===va)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},ka="carousel",ja="bs.carousel",yt=`.${ja}`,Wo=".data-api",za="ArrowLeft",Ha="ArrowRight",Sa=500,vi="next",si="prev",Ii="left",gc="right",Ta=`slide${yt}`,le=`slid${yt}`,Da=`keydown${yt}`,Ea=`mouseenter${yt}`,Ma=`mouseleave${yt}`,Ka=`dragstart${yt}`,_a=`load${yt}${Wo}`,Pa=`click${yt}${Wo}`,po="carousel",ac="active",$a="slide",qa="carousel-item-end",tn="carousel-item-start",cn="carousel-item-next",en="carousel-item-prev",Bo=".active",uo=".carousel-item",bn=Bo+uo,on=".carousel-item img",ln=".carousel-indicators",an="[data-bs-slide], [data-bs-slide-to]",nn='[data-bs-ride="carousel"]',rn={[za]:gc,[Ha]:Ii},sn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},dn={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Oi=class c extends q{constructor(i,t){super(i,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=V.findOne(ln,this._element),this._addEventListeners(),this._config.ride===po&&this.cycle()}static get Default(){return sn}static get DefaultType(){return dn}static get NAME(){return ka}next(){this._slide(vi)}nextWhenVisible(){!document.hidden&&Zi(this._element)&&this.next()}prev(){this._slide(si)}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){W.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){W.one(this._element,le,()=>this.to(i));return}let e=this._getItemIndex(this._getActive());if(e===i)return;let b=i>e?vi:si;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&&W.on(this._element,Da,i=>this._keydown(i)),this._config.pause==="hover"&&(W.on(this._element,Ea,()=>this.pause()),W.on(this._element,Ma,()=>this._maybeEnableCycle())),this._config.touch&&Xc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of V.find(on,this._element))W.on(e,Ka,b=>b.preventDefault());let t={leftCallback:()=>this._slide(this._directionToOrder(Ii)),rightCallback:()=>this._slide(this._directionToOrder(gc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Sa+this._config.interval))}};this._swipeHelper=new Xc(this._element,t)}_keydown(i){if(/input|textarea/i.test(i.target.tagName))return;let t=rn[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=V.findOne(Bo,this._indicatorsElement);t.classList.remove(ac),t.removeAttribute("aria-current");let e=V.findOne(`[data-bs-slide-to="${i}"]`,this._indicatorsElement);e&&(e.classList.add(ac),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||Be(this._getItems(),e,b,this._config.wrap);if(o===e)return;let l=this._getItemIndex(o),a=d=>W.trigger(this._element,d,{relatedTarget:o,direction:this._orderToDirection(i),from:this._getItemIndex(e),to:l});if(a(Ta).defaultPrevented||!e||!o)return;let r=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=o;let s=b?tn:qa,m=b?cn:en;o.classList.add(m),wi(o),e.classList.add(s),o.classList.add(s);let C=()=>{o.classList.remove(s,m),o.classList.add(ac),e.classList.remove(ac,m,s),this._isSliding=!1,a(le)};this._queueCallback(C,e,this._isAnimated()),r&&this.cycle()}_isAnimated(){return this._element.classList.contains($a)}_getActive(){return V.findOne(bn,this._element)}_getItems(){return V.find(uo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(i){return bt()?i===Ii?si:vi:i===Ii?vi:si}_orderToDirection(i){return bt()?i===si?Ii:gc:i===si?gc:Ii}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]()}})}};W.on(document,Pa,an,function(c){let i=V.getElementFromSelector(this);if(!i||!i.classList.contains(po))return;c.preventDefault();let t=Oi.getOrCreateInstance(i),e=this.getAttribute("data-bs-slide-to");if(e){t.to(e),t._maybeEnableCycle();return}if(Wt.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});W.on(window,_a,()=>{let c=V.find(nn);for(let i of c)Oi.getOrCreateInstance(i)});lt(Oi);var In="collapse",gn="bs.collapse",ki=`.${gn}`,mn=".data-api",Gn=`show${ki}`,Fn=`shown${ki}`,Zn=`hide${ki}`,Xn=`hidden${ki}`,Cn=`click${ki}${mn}`,ae="show",mi="collapse",nc="collapsing",Wn="collapsed",pn=`:scope .${mi} .${mi}`,Bn="collapse-horizontal",un="width",hn="height",xn=".collapse.show, .collapse.collapsing",Ce='[data-bs-toggle="collapse"]',Rn={parent:null,toggle:!0},Qn={parent:"(null|element)",toggle:"boolean"},Cc=class c extends q{constructor(i,t){super(i,t),this._isTransitioning=!1,this._triggerArray=[];let e=V.find(Ce);for(let b of e){let o=V.getSelectorFromElement(b),l=V.find(o).filter(a=>a===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 Rn}static get DefaultType(){return Qn}static get NAME(){return In}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let i=[];if(this._config.parent&&(i=this._getFirstLevelChildren(xn).filter(a=>a!==this._element).map(a=>c.getOrCreateInstance(a,{toggle:!1}))),i.length&&i[0]._isTransitioning||W.trigger(this._element,Gn).defaultPrevented)return;for(let a of i)a.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,ae),this._element.style[e]="",W.trigger(this._element,Fn)},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()||W.trigger(this._element,Zn).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,ae);for(let b of this._triggerArray){let o=V.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),W.trigger(this._element,Xn)};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=Rt(i.parent),i}_getDimension(){return this._element.classList.contains(Bn)?un:hn}_initializeChildren(){if(!this._config.parent)return;let i=this._getFirstLevelChildren(Ce);for(let t of i){let e=V.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(i){let t=V.find(pn,this._config.parent);return V.find(i,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(i,t){if(i.length)for(let e of i)e.classList.toggle(Wn,!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]()}})}};W.on(document,Cn,Ce,function(c){(c.target.tagName==="A"||c.delegateTarget&&c.delegateTarget.tagName==="A")&&c.preventDefault();for(let i of V.getMultipleElementsFromSelector(this))Cc.getOrCreateInstance(i,{toggle:!1}).toggle()});lt(Cc);var Jb="dropdown",Un="bs.dropdown",Mt=`.${Un}`,he=".data-api",Vn="Escape",Nb="Tab",yn="ArrowUp",wb="ArrowDown",An=2,fn=`hide${Mt}`,Yn=`hidden${Mt}`,vn=`show${Mt}`,Ln=`shown${Mt}`,ho=`click${Mt}${he}`,xo=`keydown${Mt}${he}`,On=`keyup${Mt}${he}`,gi="show",Jn="dropup",Nn="dropend",wn="dropstart",kn="dropup-center",jn="dropdown-center",Tt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',zn=`${Tt}.${gi}`,mc=".dropdown-menu",Hn=".navbar",Sn=".navbar-nav",Tn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Dn=bt()?"top-end":"top-start",En=bt()?"top-start":"top-end",Mn=bt()?"bottom-end":"bottom-start",Kn=bt()?"bottom-start":"bottom-end",_n=bt()?"left-start":"right-start",Pn=bt()?"right-start":"left-start",$n="top",qn="bottom",tr={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},ir={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Ut=class c extends q{constructor(i,t){super(i,t),this._popper=null,this._parent=this._element.parentNode,this._menu=V.next(this._element,mc)[0]||V.prev(this._element,mc)[0]||V.findOne(mc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return tr}static get DefaultType(){return ir}static get NAME(){return Jb}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Qt(this._element)||this._isShown())return;let i={relatedTarget:this._element};if(!W.trigger(this._element,vn,i).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Sn))for(let e of[].concat(...document.body.children))W.on(e,"mouseover",Gc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(gi),this._element.classList.add(gi),W.trigger(this._element,Ln,i)}}hide(){if(Qt(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(!W.trigger(this._element,fn,i).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))W.off(e,"mouseover",Gc);this._popper&&this._popper.destroy(),this._menu.classList.remove(gi),this._element.classList.remove(gi),this._element.setAttribute("aria-expanded","false"),Wt.removeDataAttribute(this._menu,"popper"),W.trigger(this._element,Yn,i)}}_getConfig(i){if(i=super._getConfig(i),typeof i.reference=="object"&&!Ct(i.reference)&&typeof i.reference.getBoundingClientRect!="function")throw new TypeError(`${Jb.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/docs/v2/)");let i=this._element;this._config.reference==="parent"?i=this._parent:Ct(this._config.reference)?i=Rt(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(Nn))return _n;if(i.classList.contains(wn))return Pn;if(i.classList.contains(kn))return $n;if(i.classList.contains(jn))return qn;let t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return i.classList.contains(Jn)?t?En:Dn:t?Kn:Mn}_detectNavbar(){return this._element.closest(Hn)!==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")&&(Wt.setDataAttribute(this._menu,"popper","static"),i.modifiers=[{name:"applyStyles",enabled:!1}]),{...i,...$(this._config.popperConfig,[void 0,i])}}_selectMenuItem({key:i,target:t}){let e=V.find(Tn,this._menu).filter(b=>Zi(b));e.length&&Be(e,t,i===wb,!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===An||i.type==="keyup"&&i.key!==Nb)return;let t=V.find(zn);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===Nb||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;let a={relatedTarget:b._element};i.type==="click"&&(a.clickEvent=i),b._completeHide(a)}}static dataApiKeydownHandler(i){let t=/input|textarea/i.test(i.target.tagName),e=i.key===Vn,b=[yn,wb].includes(i.key);if(!b&&!e||t&&!e)return;i.preventDefault();let o=this.matches(Tt)?this:V.prev(this,Tt)[0]||V.next(this,Tt)[0]||V.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())}};W.on(document,xo,Tt,Ut.dataApiKeydownHandler);W.on(document,xo,mc,Ut.dataApiKeydownHandler);W.on(document,ho,Ut.clearMenus);W.on(document,On,Ut.clearMenus);W.on(document,ho,Tt,function(c){c.preventDefault(),Ut.getOrCreateInstance(this).toggle()});lt(Ut);var Ro="backdrop",cr="fade",kb="show",jb=`mousedown.bs.${Ro}`,er={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},br={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Wc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isAppended=!1,this._element=null}static get Default(){return er}static get DefaultType(){return br}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(kb),this._emulateAnimation(()=>{$(i)})}hide(i){if(!this._config.isVisible){$(i);return}this._getElement().classList.remove(kb),this._emulateAnimation(()=>{this.dispose(),$(i)})}dispose(){this._isAppended&&(W.off(this._element,jb),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(cr),this._element=i}return this._element}_configAfterMerge(i){return i.rootElement=Rt(i.rootElement),i}_append(){if(this._isAppended)return;let i=this._getElement();this._config.rootElement.append(i),W.on(i,jb,()=>{$(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(i){Io(i,this._getElement(),this._config.isAnimated)}},or="focustrap",lr="bs.focustrap",pc=`.${lr}`,ar=`focusin${pc}`,nr=`keydown.tab${pc}`,rr="Tab",sr="forward",zb="backward",dr={autofocus:!0,trapElement:null},Ir={autofocus:"boolean",trapElement:"element"},Bc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return dr}static get DefaultType(){return Ir}static get NAME(){return or}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),W.off(document,pc),W.on(document,ar,i=>this._handleFocusin(i)),W.on(document,nr,i=>this._handleKeydown(i)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,W.off(document,pc))}_handleFocusin(i){let{trapElement:t}=this._config;if(i.target===document||i.target===t||t.contains(i.target))return;let e=V.focusableChildren(t);e.length===0?t.focus():this._lastTabNavDirection===zb?e[e.length-1].focus():e[0].focus()}_handleKeydown(i){i.key===rr&&(this._lastTabNavDirection=i.shiftKey?zb:sr)}},Hb=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Sb=".sticky-top",rc="padding-right",Tb="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,rc,t=>t+i),this._setElementAttributes(Hb,rc,t=>t+i),this._setElementAttributes(Sb,Tb,t=>t-i)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,rc),this._resetElementAttributes(Hb,rc),this._resetElementAttributes(Sb,Tb)}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 a=window.getComputedStyle(l).getPropertyValue(t);l.style.setProperty(t,`${e(Number.parseFloat(a))}px`)};this._applyManipulationCallback(i,o)}_saveInitialAttribute(i,t){let e=i.style.getPropertyValue(t);e&&Wt.setDataAttribute(i,t,e)}_resetElementAttributes(i,t){let e=b=>{let o=Wt.getDataAttribute(b,t);if(o===null){b.style.removeProperty(t);return}Wt.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 V.find(i,this._element))t(e)}},gr="modal",mr="bs.modal",ot=`.${mr}`,Gr=".data-api",Fr="Escape",Zr=`hide${ot}`,Xr=`hidePrevented${ot}`,Qo=`hidden${ot}`,Uo=`show${ot}`,Cr=`shown${ot}`,Wr=`resize${ot}`,pr=`click.dismiss${ot}`,Br=`mousedown.dismiss${ot}`,ur=`keydown.dismiss${ot}`,hr=`click${ot}${Gr}`,Db="modal-open",xr="fade",Eb="show",ne="modal-static",Rr=".modal.show",Qr=".modal-dialog",Ur=".modal-body",Vr='[data-bs-toggle="modal"]',yr={backdrop:!0,focus:!0,keyboard:!0},Ar={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Gi=class c extends q{constructor(i,t){super(i,t),this._dialog=V.findOne(Qr,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 yr}static get DefaultType(){return Ar}static get NAME(){return gr}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){this._isShown||this._isTransitioning||W.trigger(this._element,Uo,{relatedTarget:i}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Db),this._adjustDialog(),this._backdrop.show(()=>this._showElement(i)))}hide(){!this._isShown||this._isTransitioning||W.trigger(this._element,Zr).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Eb),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){W.off(window,ot),W.off(this._dialog,ot),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Wc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Bc({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=V.findOne(Ur,this._dialog);t&&(t.scrollTop=0),wi(this._element),this._element.classList.add(Eb);let e=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,W.trigger(this._element,Cr,{relatedTarget:i})};this._queueCallback(e,this._dialog,this._isAnimated())}_addEventListeners(){W.on(this._element,ur,i=>{if(i.key===Fr){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),W.on(window,Wr,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),W.on(this._element,Br,i=>{W.one(this._element,pr,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(Db),this._resetAdjustments(),this._scrollBar.reset(),W.trigger(this._element,Qo)})}_isAnimated(){return this._element.classList.contains(xr)}_triggerBackdropTransition(){if(W.trigger(this._element,Xr).defaultPrevented)return;let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;e==="hidden"||this._element.classList.contains(ne)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(ne),this._queueCallback(()=>{this._element.classList.remove(ne),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)}})}};W.on(document,hr,Vr,function(c){let i=V.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&c.preventDefault(),W.one(i,Uo,b=>{b.defaultPrevented||W.one(i,Qo,()=>{Zi(this)&&this.focus()})});let t=V.findOne(Rr);t&&Gi.getInstance(t).hide(),Gi.getOrCreateInstance(i).toggle(this)});xc(Gi);lt(Gi);var fr="offcanvas",Yr="bs.offcanvas",pt=`.${Yr}`,Vo=".data-api",vr=`load${pt}${Vo}`,Lr="Escape",Mb="show",Kb="showing",_b="hiding",Or="offcanvas-backdrop",yo=".offcanvas.show",Jr=`show${pt}`,Nr=`shown${pt}`,wr=`hide${pt}`,Pb=`hidePrevented${pt}`,Ao=`hidden${pt}`,kr=`resize${pt}`,jr=`click${pt}${Vo}`,zr=`keydown.dismiss${pt}`,Hr='[data-bs-toggle="offcanvas"]',Sr={backdrop:!0,keyboard:!0,scroll:!1},Tr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},Vt=class c extends q{constructor(i,t){super(i,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Sr}static get DefaultType(){return Tr}static get NAME(){return fr}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){if(this._isShown||W.trigger(this._element,Jr,{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(Kb);let e=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Mb),this._element.classList.remove(Kb),W.trigger(this._element,Nr,{relatedTarget:i})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown||W.trigger(this._element,wr).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(_b),this._backdrop.hide();let t=()=>{this._element.classList.remove(Mb,_b),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ji().reset(),W.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"){W.trigger(this._element,Pb);return}this.hide()},t=!!this._config.backdrop;return new Wc({className:Or,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?i:null})}_initializeFocusTrap(){return new Bc({trapElement:this._element})}_addEventListeners(){W.on(this._element,zr,i=>{if(i.key===Lr){if(this._config.keyboard){this.hide();return}W.trigger(this._element,Pb)}})}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)}})}};W.on(document,jr,Hr,function(c){let i=V.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&c.preventDefault(),Qt(this))return;W.one(i,Ao,()=>{Zi(this)&&this.focus()});let t=V.findOne(yo);t&&t!==i&&Vt.getInstance(t).hide(),Vt.getOrCreateInstance(i).toggle(this)});W.on(window,vr,()=>{for(let c of V.find(yo))Vt.getOrCreateInstance(c).show()});W.on(window,kr,()=>{for(let c of V.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(c).position!=="fixed"&&Vt.getOrCreateInstance(c).hide()});xc(Vt);lt(Vt);var Dr=/^aria-[\w-]*$/i,fo={"*":["class","dir","id","lang","role",Dr],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:[]},Er=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Mr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Kr=(c,i)=>{let t=c.nodeName.toLowerCase();return i.includes(t)?Er.has(t)?!!Mr.test(c.nodeValue):!0:i.filter(e=>e instanceof RegExp).some(e=>e.test(t))};function _r(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 a=l.nodeName.toLowerCase();if(!Object.keys(i).includes(a)){l.remove();continue}let n=[].concat(...l.attributes),r=[].concat(i["*"]||[],i[a]||[]);for(let s of n)Kr(s,r)||l.removeAttribute(s.nodeName)}return b.body.innerHTML}var Pr="TemplateFactory",$r={allowList:fo,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},qr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ts={entry:"(string|element|function|null)",selector:"(string|element)"},We=class extends Et{constructor(i){super(),this._config=this._getConfig(i)}static get Default(){return $r}static get DefaultType(){return qr}static get NAME(){return Pr}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},ts)}_setContent(i,t,e){let b=V.findOne(e,i);if(b){if(t=this._resolvePossibleFunction(t),!t){b.remove();return}if(Ct(t)){this._putElementInTemplate(Rt(t),b);return}if(this._config.html){b.innerHTML=this._maybeSanitize(t);return}b.textContent=t}}_maybeSanitize(i){return this._config.sanitize?_r(i,this._config.allowList,this._config.sanitizeFn):i}_resolvePossibleFunction(i){return $(i,[void 0,this])}_putElementInTemplate(i,t){if(this._config.html){t.innerHTML="",t.append(i);return}t.textContent=i.textContent}},is="tooltip",cs=new Set(["sanitize","allowList","sanitizeFn"]),re="fade",es="modal",sc="show",bs=".tooltip-inner",$b=`.${es}`,qb="hide.bs.modal",Li="hover",se="focus",de="click",os="manual",ls="hide",as="hidden",ns="show",rs="shown",ss="inserted",ds="click",Is="focusin",gs="focusout",ms="mouseenter",Gs="mouseleave",Fs={AUTO:"auto",TOP:"top",RIGHT:bt()?"left":"right",BOTTOM:"bottom",LEFT:bt()?"right":"left"},Zs={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"},Xs={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"},Fi=class c extends q{constructor(i,t){if(typeof lc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");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 Zs}static get DefaultType(){return Xs}static get NAME(){return is}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),W.off(this._element.closest($b),qb,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=W.trigger(this._element,this.constructor.eventName(ns)),e=(ro(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),W.trigger(this._element,this.constructor.eventName(ss))),this._popper=this._createPopper(b),b.classList.add(sc),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))W.on(a,"mouseover",Gc);let l=()=>{W.trigger(this._element,this.constructor.eventName(rs)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||W.trigger(this._element,this.constructor.eventName(ls)).defaultPrevented)return;if(this._getTipElement().classList.remove(sc),"ontouchstart"in document.documentElement)for(let b of[].concat(...document.body.children))W.off(b,"mouseover",Gc);this._activeTrigger[de]=!1,this._activeTrigger[se]=!1,this._activeTrigger[Li]=!1,this._isHovered=null;let e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),W.trigger(this._element,this.constructor.eventName(as)))};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,sc),t.classList.add(`bs-${this.constructor.NAME}-auto`);let e=oa(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 We({...this._config,content:i,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[bs]: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(sc)}_createPopper(i){let t=$(this._config.placement,[this,i,this._element]),e=Fs[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,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,[void 0,t])}}_setListeners(){let i=this._config.trigger.split(" ");for(let t of i)if(t==="click")W.on(this._element,this.constructor.eventName(ds),this._config.selector,e=>{let b=this._initializeOnDelegatedTarget(e);b._activeTrigger[de]=!(b._isShown()&&b._activeTrigger[de]),b.toggle()});else if(t!==os){let e=t===Li?this.constructor.eventName(ms):this.constructor.eventName(Is),b=t===Li?this.constructor.eventName(Gs):this.constructor.eventName(gs);W.on(this._element,e,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusin"?se:Li]=!0,l._enter()}),W.on(this._element,b,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusout"?se:Li]=l._element.contains(o.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},W.on(this._element.closest($b),qb,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=Wt.getDataAttributes(this._element);for(let e of Object.keys(t))cs.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:Rt(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(Fi);var Cs="popover",Ws=".popover-header",ps=".popover-body",Bs={...Fi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},us={...Fi.DefaultType,content:"(null|string|element|function)"},pe=class c extends Fi{static get Default(){return Bs}static get DefaultType(){return us}static get NAME(){return Cs}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[Ws]:this._getTitle(),[ps]: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(pe);var hs="scrollspy",xs="bs.scrollspy",xe=`.${xs}`,Rs=".data-api",Qs=`activate${xe}`,to=`click${xe}`,Us=`load${xe}${Rs}`,Vs="dropdown-item",di="active",ys='[data-bs-spy="scroll"]',Ie="[href]",As=".nav, .list-group",io=".nav-link",fs=".nav-item",Ys=".list-group-item",vs=`${io}, ${fs} > ${io}, ${Ys}`,Ls=".dropdown",Os=".dropdown-toggle",Js={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ns={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},uc=class c extends q{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 Js}static get DefaultType(){return Ns}static get NAME(){return hs}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=Rt(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&&(W.off(this._config.target,to),W.on(this._config.target,to,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 a=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(e(l),!b)return;continue}!o&&!a&&e(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let i=V.find(Ie,this._config.target);for(let t of i){if(!t.hash||Qt(t))continue;let e=V.findOne(decodeURI(t.hash),this._element);Zi(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(di),this._activateParents(i),W.trigger(this._element,Qs,{relatedTarget:i}))}_activateParents(i){if(i.classList.contains(Vs)){V.findOne(Os,i.closest(Ls)).classList.add(di);return}for(let t of V.parents(i,As))for(let e of V.prev(t,vs))e.classList.add(di)}_clearActiveClass(i){i.classList.remove(di);let t=V.find(`${Ie}.${di}`,i);for(let e of t)e.classList.remove(di)}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]()}})}};W.on(window,Us,()=>{for(let c of V.find(ys))uc.getOrCreateInstance(c)});lt(uc);var ws="tab",ks="bs.tab",Kt=`.${ks}`,js=`hide${Kt}`,zs=`hidden${Kt}`,Hs=`show${Kt}`,Ss=`shown${Kt}`,Ts=`click${Kt}`,Ds=`keydown${Kt}`,Es=`load${Kt}`,Ms="ArrowLeft",co="ArrowRight",Ks="ArrowUp",eo="ArrowDown",ge="Home",bo="End",Dt="active",oo="fade",me="show",_s="dropdown",Yo=".dropdown-toggle",Ps=".dropdown-menu",Ge=`:not(${Yo})`,$s='.list-group, .nav, [role="tablist"]',qs=".nav-item, .list-group-item",td=`.nav-link${Ge}, .list-group-item${Ge}, [role="tab"]${Ge}`,vo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Fe=`${td}, ${vo}`,id=`.${Dt}[data-bs-toggle="tab"], .${Dt}[data-bs-toggle="pill"], .${Dt}[data-bs-toggle="list"]`,Ni=class c extends q{constructor(i){super(i),this._parent=this._element.closest($s),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),W.on(this._element,Ds,t=>this._keydown(t)))}static get NAME(){return ws}show(){let i=this._element;if(this._elemIsActive(i))return;let t=this._getActiveElem(),e=t?W.trigger(t,js,{relatedTarget:i}):null;W.trigger(i,Hs,{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(V.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),W.trigger(i,Ss,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(oo))}_deactivate(i,t){if(!i)return;i.classList.remove(Dt),i.blur(),this._deactivate(V.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),W.trigger(i,zs,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(oo))}_keydown(i){if(![Ms,co,Ks,eo,ge,bo].includes(i.key))return;i.stopPropagation(),i.preventDefault();let t=this._getChildren().filter(b=>!Qt(b)),e;if([ge,bo].includes(i.key))e=t[i.key===ge?0:t.length-1];else{let b=[co,eo].includes(i.key);e=Be(t,i.target,b,!0)}e&&(e.focus({preventScroll:!0}),c.getOrCreateInstance(e).show())}_getChildren(){return V.find(Fe,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=V.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(_s))return;let b=(o,l)=>{let a=V.findOne(o,e);a&&a.classList.toggle(l,t)};b(Yo,Dt),b(Ps,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(Fe)?i:V.findOne(Fe,i)}_getOuterElement(i){return i.closest(qs)||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]()}})}};W.on(document,Ts,vo,function(c){["A","AREA"].includes(this.tagName)&&c.preventDefault(),!Qt(this)&&Ni.getOrCreateInstance(this).show()});W.on(window,Es,()=>{for(let c of V.find(id))Ni.getOrCreateInstance(c)});lt(Ni);var cd="toast",ed="bs.toast",At=`.${ed}`,bd=`mouseover${At}`,od=`mouseout${At}`,ld=`focusin${At}`,ad=`focusout${At}`,nd=`hide${At}`,rd=`hidden${At}`,sd=`show${At}`,dd=`shown${At}`,Id="fade",lo="hide",dc="show",Ic="showing",gd={animation:"boolean",autohide:"boolean",delay:"number"},md={animation:!0,autohide:!0,delay:5e3},hc=class c extends q{constructor(i,t){super(i,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return md}static get DefaultType(){return gd}static get NAME(){return cd}show(){if(W.trigger(this._element,sd).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Id);let t=()=>{this._element.classList.remove(Ic),W.trigger(this._element,dd),this._maybeScheduleHide()};this._element.classList.remove(lo),wi(this._element),this._element.classList.add(dc,Ic),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||W.trigger(this._element,nd).defaultPrevented)return;let t=()=>{this._element.classList.add(lo),this._element.classList.remove(Ic,dc),W.trigger(this._element,rd)};this._element.classList.add(Ic),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(dc),super.dispose()}isShown(){return this._element.classList.contains(dc)}_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(){W.on(this._element,bd,i=>this._onInteraction(i,!0)),W.on(this._element,od,i=>this._onInteraction(i,!1)),W.on(this._element,ld,i=>this._onInteraction(i,!0)),W.on(this._element,ad,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)}})}};xc(hc);lt(hc);var vc=wc(jo());var Ee=globalThis,zo=c=>c,Qc=Ee.trustedTypes,Ho=Qc?Qc.createPolicy("lit-html",{createHTML:c=>c}):void 0,Ko="$lit$",ft=`lit$${Math.random().toFixed(9).slice(2)}$`,_o="?"+ft,Gd=`<${_o}>`,$t=document,zi=()=>$t.createComment(""),Hi=c=>c===null||typeof c!="object"&&typeof c!="function",Me=Array.isArray,Fd=c=>Me(c)||typeof c?.[Symbol.iterator]=="function",je=`[ +import{a as gt,b as Al,c as wc}from"./chunk-MY7PHHTQ.min.js";var Lo=gt((Re,Qe)=>{(function(c,i){typeof Re=="object"&&typeof Qe<"u"?Qe.exports=i():typeof define=="function"&&define.amd?define(i):(c=typeof globalThis<"u"?globalThis:c||self,c.Data=i())})(Re,(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((Rc,Oo)=>{(function(c,i){typeof Rc=="object"&&typeof Oo<"u"?i(Rc):typeof define=="function"&&define.amd?define(["exports"],i):(c=typeof globalThis<"u"?globalThis:c||self,i(c.Index={}))})(Rc,(function(c){"use strict";let e="transitionend",b=I=>(I&&window.CSS&&window.CSS.escape&&(I=I.replace(/#([^\s"#']+)/g,(x,G)=>`#${CSS.escape(G)}`)),I),o=I=>I==null?`${I}`:Object.prototype.toString.call(I).match(/\s([a-z]+)/i)[1].toLowerCase(),l=I=>{do I+=Math.floor(Math.random()*1e6);while(document.getElementById(I));return I},a=I=>{if(!I)return 0;let{transitionDuration:x,transitionDelay:G}=window.getComputedStyle(I),R=Number.parseFloat(x),y=Number.parseFloat(G);return!R&&!y?0:(x=x.split(",")[0],G=G.split(",")[0],(Number.parseFloat(x)+Number.parseFloat(G))*1e3)},n=I=>{I.dispatchEvent(new Event(e))},s=I=>!I||typeof I!="object"?!1:(typeof I.jquery<"u"&&(I=I[0]),typeof I.nodeType<"u"),r=I=>s(I)?I.jquery?I[0]:I:typeof I=="string"&&I.length>0?document.querySelector(b(I)):null,F=I=>{if(!s(I)||I.getClientRects().length===0)return!1;let x=getComputedStyle(I).getPropertyValue("visibility")==="visible",G=I.closest("details:not([open])");if(!G)return x;if(G!==I){let R=I.closest("summary");if(R&&R.parentNode!==G||R===null)return!1}return x},C=I=>!I||I.nodeType!==Node.ELEMENT_NODE||I.classList.contains("disabled")?!0:typeof I.disabled<"u"?I.disabled:I.hasAttribute("disabled")&&I.getAttribute("disabled")!=="false",d=I=>{if(!document.documentElement.attachShadow)return null;if(typeof I.getRootNode=="function"){let x=I.getRootNode();return x instanceof ShadowRoot?x:null}return I instanceof ShadowRoot?I:I.parentNode?d(I.parentNode):null},g=()=>{},m=I=>{I.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,B=[],h=I=>{document.readyState==="loading"?(B.length||document.addEventListener("DOMContentLoaded",()=>{for(let x of B)x()}),B.push(I)):I()},Q=()=>document.documentElement.dir==="rtl",Z=I=>{h(()=>{let x=p();if(x){let G=I.NAME,R=x.fn[G];x.fn[G]=I.jQueryInterface,x.fn[G].Constructor=I,x.fn[G].noConflict=()=>(x.fn[G]=R,I.jQueryInterface)}})},X=(I,x=[],G=I)=>typeof I=="function"?I.call(...x):G,u=(I,x,G=!0)=>{if(!G){X(I);return}let y=a(x)+5,f=!1,v=({target:Y})=>{Y===x&&(f=!0,x.removeEventListener(e,v),X(I))};x.addEventListener(e,v),setTimeout(()=>{f||n(x)},y)},U=(I,x,G,R)=>{let y=I.length,f=I.indexOf(x);return f===-1?!G&&R?I[y-1]:I[0]:(f+=G?1:-1,R&&(f=(f+y)%y),I[Math.max(0,Math.min(f,y-1))])};c.defineJQueryPlugin=Z,c.execute=X,c.executeAfterTransition=u,c.findShadowRoot=d,c.getElement=r,c.getNextActiveElement=U,c.getTransitionDurationFromElement=a,c.getUID=l,c.getjQuery=p,c.isDisabled=C,c.isElement=s,c.isRTL=Q,c.isVisible=F,c.noop=g,c.onDOMContentLoaded=h,c.parseSelector=b,c.reflow=m,c.toType=o,c.triggerTransitionEnd=n,Object.defineProperty(c,Symbol.toStringTag,{value:"Module"})}))});var ye=gt((Ue,Ve)=>{(function(c,i){typeof Ue=="object"&&typeof Ve<"u"?Ve.exports=i(Ci()):typeof define=="function"&&define.amd?define(["../util/index"],i):(c=typeof globalThis<"u"?globalThis:c||self,c.EventHandler=i(c.Index))})(Ue,(function(c){"use strict";let i=/[^.]*(?=\..*)\.|.*/,t=/\..*/,e=/::\d+$/,b={},o=1,l={mouseenter:"mouseover",mouseleave:"mouseout"},a=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 n(Z,X){return X&&`${X}::${o++}`||Z.uidEvent||o++}function s(Z){let X=n(Z);return Z.uidEvent=X,b[X]=b[X]||{},b[X]}function r(Z,X){return function u(U){return Q(U,{delegateTarget:Z}),u.oneOff&&h.off(Z,U.type,X),X.apply(Z,[U])}}function F(Z,X,u){return function U(I){let x=Z.querySelectorAll(X);for(let{target:G}=I;G&&G!==this;G=G.parentNode)for(let R of x)if(R===G)return Q(I,{delegateTarget:G}),U.oneOff&&h.off(Z,I.type,X,u),u.apply(G,[I])}}function C(Z,X,u=null){return Object.values(Z).find(U=>U.callable===X&&U.delegationSelector===u)}function d(Z,X,u){let U=typeof X=="string",I=U?u:X||u,x=B(Z);return a.has(x)||(x=Z),[U,I,x]}function g(Z,X,u,U,I){if(typeof X!="string"||!Z)return;let[x,G,R]=d(X,u,U);X in l&&(G=(ti=>function(P){if(!P.relatedTarget||P.relatedTarget!==P.delegateTarget&&!P.delegateTarget.contains(P.relatedTarget))return ti.call(this,P)})(G));let y=s(Z),f=y[R]||(y[R]={}),v=C(f,G,x?u:null);if(v){v.oneOff=v.oneOff&&I;return}let Y=n(G,X.replace(i,"")),L=x?F(Z,u,G):r(Z,G);L.delegationSelector=x?u:null,L.callable=G,L.oneOff=I,L.uidEvent=Y,f[Y]=L,Z.addEventListener(R,L,x)}function m(Z,X,u,U,I){let x=C(X[u],U,I);x&&(Z.removeEventListener(u,x,!!I),delete X[u][x.uidEvent])}function p(Z,X,u,U){let I=X[u]||{};for(let[x,G]of Object.entries(I))x.includes(U)&&m(Z,X,u,G.callable,G.delegationSelector)}function B(Z){return Z=Z.replace(t,""),l[Z]||Z}let h={on(Z,X,u,U){g(Z,X,u,U,!1)},one(Z,X,u,U){g(Z,X,u,U,!0)},off(Z,X,u,U){if(typeof X!="string"||!Z)return;let[I,x,G]=d(X,u,U),R=G!==X,y=s(Z),f=y[G]||{},v=X.startsWith(".");if(typeof x<"u"){if(!Object.keys(f).length)return;m(Z,y,G,x,I?u:null);return}if(v)for(let Y of Object.keys(y))p(Z,y,Y,X.slice(1));for(let[Y,L]of Object.entries(f)){let _=Y.replace(e,"");(!R||X.includes(_))&&m(Z,y,G,L.callable,L.delegationSelector)}},trigger(Z,X,u){if(typeof X!="string"||!Z)return null;let U=c.getjQuery(),I=B(X),x=X!==I,G=null,R=!0,y=!0,f=!1;x&&U&&(G=U.Event(X,u),U(Z).trigger(G),R=!G.isPropagationStopped(),y=!G.isImmediatePropagationStopped(),f=G.isDefaultPrevented());let v=Q(new Event(X,{bubbles:R,cancelable:!0}),u);return f&&v.preventDefault(),y&&Z.dispatchEvent(v),v.defaultPrevented&&G&&G.preventDefault(),v}};function Q(Z,X={}){for(let[u,U]of Object.entries(X))try{Z[u]=U}catch{Object.defineProperty(Z,u,{configurable:!0,get(){return U}})}return Z}return h}))});var Jo=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 a=l.replace(/^bs/,"");a=a.charAt(0).toLowerCase()+a.slice(1),b[a]=c(e.dataset[l])}return b},getDataAttribute(e,b){return c(e.getAttribute(`data-bs-${i(b)}`))}}}))});var No=gt((Ye,ve)=>{(function(c,i){typeof Ye=="object"&&typeof ve<"u"?ve.exports=i(Jo(),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,a]of Object.entries(o)){let n=b[l],s=i.isElement(n)?"element":i.toType(n);if(!new RegExp(a).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${l}" provided type "${s}" but expected type "${a}".`)}}}return t}))});var wo=gt((Le,Oe)=>{(function(c,i){typeof Le=="object"&&typeof Oe<"u"?Oe.exports=i(Lo(),ye(),No(),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))})(Le,(function(c,i,t,e){"use strict";let b="5.3.8";class o extends t{constructor(a,n){super(),a=e.getElement(a),a&&(this._element=a,this._config=this._getConfig(n),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 a of Object.getOwnPropertyNames(this))this[a]=null}_queueCallback(a,n,s=!0){e.executeAfterTransition(a,n,s)}_getConfig(a){return a=this._mergeConfigObj(a,this._element),a=this._configAfterMerge(a),this._typeCheckConfig(a),a}static getInstance(a){return c.get(e.getElement(a),this.DATA_KEY)}static getOrCreateInstance(a,n={}){return this.getInstance(a)||new this(a,typeof n=="object"?n:null)}static get VERSION(){return b}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(a){return`${a}${this.EVENT_KEY}`}}return o}))});var ko=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 jo=gt((we,ke)=>{(function(c,i){typeof we=="object"&&typeof ke<"u"?ke.exports=i(wo(),ye(),ko(),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",a=".data-api",n=`activate${l}`,s=`click${l}`,r=`load${l}${a}`,F="dropdown-item",C="active",d='[data-bs-spy="scroll"]',g="[href]",m=".nav, .list-group",p=".nav-link",Q=`${p}, .nav-item > ${p}, .list-group-item`,Z=".dropdown",X=".dropdown-toggle",u={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},U={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class I extends c{constructor(G,R){super(G,R),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return u}static get DefaultType(){return U}static get NAME(){return b}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let G of this._observableSections.values())this._observer.observe(G)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(G){return G.target=e.getElement(G.target)||document.body,G.rootMargin=G.offset?`${G.offset}px 0px -30%`:G.rootMargin,typeof G.threshold=="string"&&(G.threshold=G.threshold.split(",").map(R=>Number.parseFloat(R))),G}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(i.off(this._config.target,s),i.on(this._config.target,s,g,G=>{let R=this._observableSections.get(G.target.hash);if(R){G.preventDefault();let y=this._rootElement||window,f=R.offsetTop-this._element.offsetTop;if(y.scrollTo){y.scrollTo({top:f,behavior:"smooth"});return}y.scrollTop=f}}))}_getNewObserver(){let G={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(R=>this._observerCallback(R),G)}_observerCallback(G){let R=Y=>this._targetLinks.get(`#${Y.target.id}`),y=Y=>{this._previousScrollData.visibleEntryTop=Y.target.offsetTop,this._process(R(Y))},f=(this._rootElement||document.documentElement).scrollTop,v=f>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=f;for(let Y of G){if(!Y.isIntersecting){this._activeTarget=null,this._clearActiveClass(R(Y));continue}let L=Y.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(v&&L){if(y(Y),!f)return;continue}!v&&!L&&y(Y)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let G=t.find(g,this._config.target);for(let R of G){if(!R.hash||e.isDisabled(R))continue;let y=t.findOne(decodeURI(R.hash),this._element);e.isVisible(y)&&(this._targetLinks.set(decodeURI(R.hash),R),this._observableSections.set(R.hash,y))}}_process(G){this._activeTarget!==G&&(this._clearActiveClass(this._config.target),this._activeTarget=G,G.classList.add(C),this._activateParents(G),i.trigger(this._element,n,{relatedTarget:G}))}_activateParents(G){if(G.classList.contains(F)){t.findOne(X,G.closest(Z)).classList.add(C);return}for(let R of t.parents(G,m))for(let y of t.prev(R,Q))y.classList.add(C)}_clearActiveClass(G){G.classList.remove(C);let R=t.find(`${g}.${C}`,G);for(let y of R)y.classList.remove(C)}static jQueryInterface(G){return this.each(function(){let R=I.getOrCreateInstance(this,G);if(typeof G=="string"){if(R[G]===void 0||G.startsWith("_")||G==="constructor")throw new TypeError(`No method named "${G}"`);R[G]()}})}}return i.on(window,r,()=>{for(let x of t.find(d))I.getOrCreateInstance(x)}),e.defineJQueryPlugin(I),I}))});var ml=gt((wF,fc)=>{(function(c,i){"use strict";typeof define=="function"&&define.amd?define([],i):typeof fc=="object"&&fc.exports?fc.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,a,n,s,r,F,C,d,g,m,p,B=[];if(t(this.options),o||(o="h2, h3, h4, h5, h6"),l=e(o),l.length===0)return this;for(b(),a=document.querySelectorAll("[id]"),n=[].map.call(a,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(a,"-").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,a=o.lastChild&&(" "+o.lastChild.className+" ").indexOf(" anchorjs-link ")>-1;return l||a||!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}",a=":hover>.anchorjs-link,.anchorjs-link:focus{opacity:1}",n='@font-face{font-family:anchorjs-icons;src:url(data:n/a;base64,AAEAAAALAIAAAwAwT1MvMg8yG2cAAAE4AAAAYGNtYXDp3gC3AAABpAAAAExnYXNwAAAAEAAAA9wAAAAIZ2x5ZlQCcfwAAAH4AAABCGhlYWQHFvHyAAAAvAAAADZoaGVhBnACFwAAAPQAAAAkaG10eASAADEAAAGYAAAADGxvY2EACACEAAAB8AAAAAhtYXhwAAYAVwAAARgAAAAgbmFtZQGOH9cAAAMAAAAAunBvc3QAAwAAAAADvAAAACAAAQAAAAEAAHzE2p9fDzz1AAkEAAAAAADRecUWAAAAANQA6R8AAAAAAoACwAAAAAgAAgAAAAAAAAABAAADwP/AAAACgAAA/9MCrQABAAAAAAAAAAAAAAAAAAAAAwABAAAAAwBVAAIAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAMCQAGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAg//0DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAAIAAAACgAAxAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADAAAAAIAAgAAgAAACDpy//9//8AAAAg6cv//f///+EWNwADAAEAAAAAAAAAAAAAAAAACACEAAEAAAAAAAAAAAAAAAAxAAACAAQARAKAAsAAKwBUAAABIiYnJjQ3NzY2MzIWFxYUBwcGIicmNDc3NjQnJiYjIgYHBwYUFxYUBwYGIwciJicmNDc3NjIXFhQHBwYUFxYWMzI2Nzc2NCcmNDc2MhcWFAcHBgYjARQGDAUtLXoWOR8fORYtLTgKGwoKCjgaGg0gEhIgDXoaGgkJBQwHdR85Fi0tOAobCgoKOBoaDSASEiANehoaCQkKGwotLXoWOR8BMwUFLYEuehYXFxYugC44CQkKGwo4GkoaDQ0NDXoaShoKGwoFBe8XFi6ALjgJCQobCjgaShoNDQ0NehpKGgobCgoKLYEuehYXAAAADACWAAEAAAAAAAEACAAAAAEAAAAAAAIAAwAIAAEAAAAAAAMACAAAAAEAAAAAAAQACAAAAAEAAAAAAAUAAQALAAEAAAAAAAYACAAAAAMAAQQJAAEAEAAMAAMAAQQJAAIABgAcAAMAAQQJAAMAEAAMAAMAAQQJAAQAEAAMAAMAAQQJAAUAAgAiAAMAAQQJAAYAEAAMYW5jaG9yanM0MDBAAGEAbgBjAGgAbwByAGoAcwA0ADAAMABAAAAAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAP) format("truetype")}',s="[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(a,o.sheet.cssRules.length),o.sheet.insertRule(s,o.sheet.cssRules.length),o.sheet.insertRule(n,o.sheet.cssRules.length)}}}return c})});var ul=gt(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.default=void 0;function eb(c){"@babel/helpers - typeof";return eb=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},eb(c)}function E(c,i){var t=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!t){if(Array.isArray(c)||(t=pl(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(s){throw s},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,a;return{s:function(){t=t.call(c)},n:function(){var s=t.next();return o=s.done,s},e:function(s){l=!0,a=s},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(l)throw a}}}}function jd(c){return Sd(c)||Hd(c)||pl(c)||zd()}function zd(){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 pl(c,i){if(c){if(typeof c=="string")return bb(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 bb(c,i)}}function Hd(c){if(typeof Symbol<"u"&&c[Symbol.iterator]!=null||c["@@iterator"]!=null)return Array.from(c)}function Sd(c){if(Array.isArray(c))return bb(c)}function bb(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 Dd(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 a=e;if(a+=b!==""?"#".concat(b):"",o)for(var n=o.trim().split(/\s/),s=0;s ").concat(a)}},{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,jd(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=a+e+"px",b.forEach(function(n){var s=n.style.paddingRight,r=window.getComputedStyle(n)["padding-right"];n.dataset.originalPaddingRight=s,n.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(n){var s=n.dataset.originalPaddingRight;typeof s<"u"&&(n.style.paddingRight=s)});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,a=new Image,n=new Image;a.addEventListener("load",function(s){var r=s.target.getAttribute("src");t.loadedImages.indexOf(r)===-1&&t.loadedImages.push(r),t.relatedElements[e].dispatchEvent(new Event("nextImageLoaded."+t.eventNamespace))}),a.setAttribute("src",this.relatedElements[o].getAttribute(this.options.sourceAttr)),n.addEventListener("load",function(s){var r=s.target.getAttribute("src");t.loadedImages.indexOf(r)===-1&&t.loadedImages.push(r),t.relatedElements[e].dispatchEvent(new Event("prevImageLoaded."+t.eventNamespace))}),n.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(a){e.relatedElements[e.currentImageIndex].dispatchEvent(new Event("error."+e.eventNamespace)),e.isAnimating=!1,e.isOpen=!0,e.domNodes.spinner.style.display="none";var n=t===1||t===-1;if(e.initialImageIndex===e.currentImageIndex&&n)return e.close();e.options.alertError&&alert(e.options.alertErrorMessage),e.loadImage(n?t:1)}),b.addEventListener("load",function(a){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 n=a.target.width,s=a.target.height;if(e.options.scaleImageToRatio||n>o||s>l){var r=n/s>o/l?n/o:s/l;n/=r,s/=r}e.domNodes.image.style.top=(window.innerHeight-s)/2+"px",e.domNodes.image.style.left=(window.innerWidth-n-e.globalScrollbarWidth)/2+"px",e.domNodes.image.style.width=n+"px",e.domNodes.image.style.height=s+"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 F,C;typeof e.options.captionSelector=="string"?F=e.options.captionSelector==="self"?e.relatedElements[e.currentImageIndex]:e.getCaptionElement(e.relatedElements[e.currentImageIndex]):typeof e.options.captionSelector=="function"&&(F=e.options.captionSelector(e.relatedElements[e.currentImageIndex])),e.options.captions&&F&&(e.options.captionType==="data"?C=F.dataset[e.options.captionsData]:e.options.captionType==="text"?C=F.innerHTML:C=F.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),a=parseFloat(e.borderBottomWidth),n=parseFloat(e.paddingTop),s=parseFloat(e.paddingBottom),r=parseFloat(e.borderLeftWidth),F=parseFloat(e.borderRightWidth),C=parseFloat(e.paddingLeft),d=parseFloat(e.paddingRight);return{height:b-a-l-n-s,width:o-r-F-C-d}}},{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,a=!((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[a]=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),a;try{for(l.s();!(a=l.n()).done;){var n=a.value;n.namespaces||(n.namespaces={});var s=E(e),r;try{for(s.s();!(r=s.n()).done;){var F=r.value,C=o||!1,d=["touchstart","touchmove","mousewheel","DOMMouseScroll"].indexOf(F.split(".")[0])>=0;d&&this.isPassiveEventsSupported&&(eb(C)==="object"?C.passive=!0:C={passive:!0}),n.namespaces[F]=b,n.addEventListener(F.split(".")[0],b,C)}}catch(g){s.e(g)}finally{s.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,a=E(e),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;l.namespaces&&l.namespaces[s]&&(l.removeEventListener(s.split(".")[0],l.namespaces[s]),delete l.namespaces[s])}}catch(r){a.e(r)}finally{a.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),a;try{for(l.s();!(a=l.n()).done;){var n=a.value;n.style.opacity=parseFloat(n)||window.getComputedStyle(n).getPropertyValue("opacity")}}catch(F){l.e(F)}finally{l.f()}this.isFadeIn=!1;var s=16.66666/(e||this.options.fadeSpeed),r=function F(){var C=parseFloat(t[0].style.opacity);if((C-=s)<0){var d=E(t),g;try{for(d.s();!(g=d.n()).done;){var m=g.value;m.style.display="none",m.style.opacity=1}}catch(Q){d.e(Q)}finally{d.f()}b&&b.call(o,t)}else{var p=E(t),B;try{for(p.s();!(B=p.n()).done;){var h=B.value;h.style.opacity=C}}catch(Q){p.e(Q)}finally{p.f()}requestAnimationFrame(F)}};r()}},{key:"fadeIn",value:function(t,e,b,o){var l=this;t=this.wrap(t);var a=E(t),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;s&&(s.style.opacity=0,s.style.display=o||"block")}}catch(d){a.e(d)}finally{a.f()}this.isFadeIn=!0;var r=parseFloat(t[0].dataset.opacityTarget||1),F=16.66666*r/(e||this.options.fadeSpeed),C=function d(){var g=parseFloat(t[0].style.opacity);if((g+=F)>r){var h=E(t),Q;try{for(h.s();!(Q=h.n()).done;){var Z=Q.value;Z&&(Z.style.opacity=r)}}catch(X){h.e(X)}finally{h.f()}b&&b.call(l,t)}else{var m=E(t),p;try{for(m.s();!(p=m.n()).done;){var B=p.value;B&&(B.style.opacity=g)}}catch(X){m.e(X)}finally{m.f()}if(!l.isFadeIn)return;requestAnimationFrame(d)}};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(a){b.e(a)}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 a=E(t),n;try{for(a.s();!(n=a.n()).done;){var s=n.value;l.fullyNamespacedEvents[s]=e,l.addEventListener(s,e)}}catch(r){a.e(r)}finally{a.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),a;try{for(l.s();!(a=l.n()).done;){var n=a.value;typeof o.fullyNamespacedEvents<"u"&&n in o.fullyNamespacedEvents&&o.removeEventListener(n,o.fullyNamespacedEvents[n])}}catch(s){l.e(s)}finally{l.f()}}}catch(s){e.e(s)}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})(),Ed=Bl;Yc.default=Ed;window.SimpleLightbox=Bl});var lc={};Al(lc,{afterMain:()=>Cb,afterRead:()=>Fb,afterWrite:()=>Bb,applyStyles:()=>ei,arrow:()=>$i,auto:()=>hi,basePlacements:()=>Ft,beforeMain:()=>Zb,beforeRead:()=>mb,beforeWrite:()=>Wb,bottom:()=>j,clippingParents:()=>kc,computeStyles:()=>oi,createPopper:()=>Yi,createPopperBase:()=>Ab,createPopperLite:()=>fb,detectOverflow:()=>K,end:()=>ut,eventListeners:()=>li,flip:()=>cc,hide:()=>ec,left:()=>w,main:()=>Xb,modifierPhases:()=>zc,offset:()=>bc,placements:()=>Ri,popper:()=>Ot,popperGenerator:()=>St,popperOffsets:()=>ri,preventOverflow:()=>oc,read:()=>Gb,reference:()=>jc,right:()=>k,start:()=>mt,top:()=>N,variationPlacements:()=>Pi,viewport:()=>xi,write:()=>pb});var N="top",j="bottom",k="right",w="left",hi="auto",Ft=[N,j,k,w],mt="start",ut="end",kc="clippingParents",xi="viewport",Ot="popper",jc="reference",Pi=Ft.reduce(function(c,i){return c.concat([i+"-"+mt,i+"-"+ut])},[]),Ri=[].concat(Ft,[hi]).reduce(function(c,i){return c.concat([i,i+"-"+mt,i+"-"+ut])},[]),mb="beforeRead",Gb="read",Fb="afterRead",Zb="beforeMain",Xb="main",Cb="afterMain",Wb="beforeWrite",pb="write",Bb="afterWrite",zc=[mb,Gb,Fb,Zb,Xb,Cb,Wb,pb,Bb];function H(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 z(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 fl(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];!z(o)||!H(o)||(Object.assign(o.style,e),Object.keys(b).forEach(function(l){var a=b[l];a===!1?o.removeAttribute(l):o.setAttribute(l,a===!0?"":a)}))})}function Yl(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]),a=l.reduce(function(n,s){return n[s]="",n},{});!z(b)||!H(b)||(Object.assign(b.style,a),Object.keys(o).forEach(function(n){b.removeAttribute(n)}))})}}var ei={name:"applyStyles",enabled:!0,phase:"write",fn:fl,effect:Yl,requires:["computeStyles"]};function S(c){return c.split("-")[0]}var rt=Math.max,Jt=Math.min,Zt=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 Qi(){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&&z(c)&&(b=c.offsetWidth>0&&Zt(e.width)/c.offsetWidth||1,o=c.offsetHeight>0&&Zt(e.height)/c.offsetHeight||1);var l=it(c)?J(c):window,a=l.visualViewport,n=!Qi()&&t,s=(e.left+(n&&a?a.offsetLeft:0))/b,r=(e.top+(n&&a?a.offsetTop:0))/o,F=e.width/b,C=e.height/o;return{width:F,height:C,top:r,right:s+F,bottom:r+C,left:s,x:s,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 Ui(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 Hc(c){return["table","td","th"].indexOf(H(c))>=0}function D(c){return((it(c)?c.ownerDocument:c.document)||window.document).documentElement}function Xt(c){return H(c)==="html"?c:c.assignedSlot||c.parentNode||(ci(c)?c.host:null)||D(c)}function ub(c){return!z(c)||M(c).position==="fixed"?null:c.offsetParent}function vl(c){var i=/firefox/i.test(bi()),t=/Trident/i.test(bi());if(t&&z(c)){var e=M(c);if(e.position==="fixed")return null}var b=Xt(c);for(ci(b)&&(b=b.host);z(b)&&["html","body"].indexOf(H(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 st(c){for(var i=J(c),t=ub(c);t&&Hc(t)&&M(t).position==="static";)t=ub(t);return t&&(H(t)==="html"||H(t)==="body"&&M(t).position==="static")?i:t||vl(c)||i}function wt(c){return["top","bottom"].indexOf(c)>=0?"x":"y"}function kt(c,i,t){return rt(c,Jt(i,t))}function hb(c,i,t){var e=kt(c,i,t);return e>t?t:e}function Vi(){return{top:0,right:0,bottom:0,left:0}}function yi(c){return Object.assign({},Vi(),c)}function Ai(c,i){return i.reduce(function(t,e){return t[e]=c,t},{})}var Ll=function(i,t){return i=typeof i=="function"?i(Object.assign({},t.rects,{placement:t.placement})):i,yi(typeof i!="number"?i:Ai(i,Ft))};function Ol(c){var i,t=c.state,e=c.name,b=c.options,o=t.elements.arrow,l=t.modifiersData.popperOffsets,a=S(t.placement),n=wt(a),s=[w,k].indexOf(a)>=0,r=s?"height":"width";if(!(!o||!l)){var F=Ll(b.padding,t),C=Nt(o),d=n==="y"?N:w,g=n==="y"?j:k,m=t.rects.reference[r]+t.rects.reference[n]-l[n]-t.rects.popper[r],p=l[n]-t.rects.reference[n],B=st(o),h=B?n==="y"?B.clientHeight||0:B.clientWidth||0:0,Q=m/2-p/2,Z=F[d],X=h-C[r]-F[g],u=h/2-C[r]/2+Q,U=kt(Z,u,X),I=n;t.modifiersData[e]=(i={},i[I]=U,i.centerOffset=U-u,i)}}function Jl(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)||Ui(i.elements.popper,b)&&(i.elements.arrow=b))}var $i={name:"arrow",enabled:!0,phase:"main",fn:Ol,effect:Jl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function et(c){return c.split("-")[1]}var Nl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wl(c,i){var t=c.x,e=c.y,b=i.devicePixelRatio||1;return{x:Zt(t*b)/b||0,y:Zt(e*b)/b||0}}function xb(c){var i,t=c.popper,e=c.popperRect,b=c.placement,o=c.variation,l=c.offsets,a=c.position,n=c.gpuAcceleration,s=c.adaptive,r=c.roundOffsets,F=c.isFixed,C=l.x,d=C===void 0?0:C,g=l.y,m=g===void 0?0:g,p=typeof r=="function"?r({x:d,y:m}):{x:d,y:m};d=p.x,m=p.y;var B=l.hasOwnProperty("x"),h=l.hasOwnProperty("y"),Q=w,Z=N,X=window;if(s){var u=st(t),U="clientHeight",I="clientWidth";if(u===J(t)&&(u=D(t),M(u).position!=="static"&&a==="absolute"&&(U="scrollHeight",I="scrollWidth")),u=u,b===N||(b===w||b===k)&&o===ut){Z=j;var x=F&&u===X&&X.visualViewport?X.visualViewport.height:u[U];m-=x-e.height,m*=n?1:-1}if(b===w||(b===N||b===j)&&o===ut){Q=k;var G=F&&u===X&&X.visualViewport?X.visualViewport.width:u[I];d-=G-e.width,d*=n?1:-1}}var R=Object.assign({position:a},s&&Nl),y=r===!0?wl({x:d,y:m},J(t)):{x:d,y:m};if(d=y.x,m=y.y,n){var f;return Object.assign({},R,(f={},f[Z]=h?"0":"",f[Q]=B?"0":"",f.transform=(X.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",f))}return Object.assign({},R,(i={},i[Z]=h?m+"px":"",i[Q]=B?d+"px":"",i.transform="",i))}function kl(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,a=t.roundOffsets,n=a===void 0?!0:a,s={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,xb(Object.assign({},s,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:l,roundOffsets:n})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,xb(Object.assign({},s,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:n})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var oi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:kl,data:{}};var qi={passive:!0};function jl(c){var i=c.state,t=c.instance,e=c.options,b=e.scroll,o=b===void 0?!0:b,l=e.resize,a=l===void 0?!0:l,n=J(i.elements.popper),s=[].concat(i.scrollParents.reference,i.scrollParents.popper);return o&&s.forEach(function(r){r.addEventListener("scroll",t.update,qi)}),a&&n.addEventListener("resize",t.update,qi),function(){o&&s.forEach(function(r){r.removeEventListener("scroll",t.update,qi)}),a&&n.removeEventListener("resize",t.update,qi)}}var li={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:jl,data:{}};var zl={left:"right",right:"left",bottom:"top",top:"bottom"};function ai(c){return c.replace(/left|right|bottom|top/g,function(i){return zl[i]})}var Hl={start:"end",end:"start"};function tc(c){return c.replace(/start|end/g,function(i){return Hl[i]})}function jt(c){var i=J(c),t=i.pageXOffset,e=i.pageYOffset;return{scrollLeft:t,scrollTop:e}}function zt(c){return ct(D(c)).left+jt(c).scrollLeft}function Sc(c,i){var t=J(c),e=D(c),b=t.visualViewport,o=e.clientWidth,l=e.clientHeight,a=0,n=0;if(b){o=b.width,l=b.height;var s=Qi();(s||!s&&i==="fixed")&&(a=b.offsetLeft,n=b.offsetTop)}return{width:o,height:l,x:a+zt(c),y:n}}function Tc(c){var i,t=D(c),e=jt(c),b=(i=c.ownerDocument)==null?void 0:i.body,o=rt(t.scrollWidth,t.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),l=rt(t.scrollHeight,t.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),a=-e.scrollLeft+zt(c),n=-e.scrollTop;return M(b||t).direction==="rtl"&&(a+=rt(t.clientWidth,b?b.clientWidth:0)-o),{width:o,height:l,x:a,y:n}}function Ht(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(H(c))>=0?c.ownerDocument.body:z(c)&&Ht(c)?c:ic(Xt(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||[],Ht(e)?e:[]):e,a=i.concat(l);return b?a:a.concat(ht(Xt(l)))}function ni(c){return Object.assign({},c,{left:c.x,top:c.y,right:c.x+c.width,bottom:c.y+c.height})}function Sl(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===xi?ni(Sc(c,t)):it(i)?Sl(i,t):ni(Tc(D(c)))}function Tl(c){var i=ht(Xt(c)),t=["absolute","fixed"].indexOf(M(c).position)>=0,e=t&&z(c)?st(c):c;return it(e)?i.filter(function(b){return it(b)&&Ui(b,e)&&H(b)!=="body"}):[]}function Dc(c,i,t,e){var b=i==="clippingParents"?Tl(c):[].concat(i),o=[].concat(b,[t]),l=o[0],a=o.reduce(function(n,s){var r=Rb(c,s,e);return n.top=rt(r.top,n.top),n.right=Jt(r.right,n.right),n.bottom=Jt(r.bottom,n.bottom),n.left=rt(r.left,n.left),n},Rb(c,l,e));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function fi(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,a=i.y+i.height/2-t.height/2,n;switch(b){case N:n={x:l,y:i.y-t.height};break;case j:n={x:l,y:i.y+i.height};break;case k:n={x:i.x+i.width,y:a};break;case w:n={x:i.x-t.width,y:a};break;default:n={x:i.x,y:i.y}}var s=b?wt(b):null;if(s!=null){var r=s==="y"?"height":"width";switch(o){case mt:n[s]=n[s]-(i[r]/2-t[r]/2);break;case ut:n[s]=n[s]+(i[r]/2-t[r]/2);break;default:}}return n}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,a=t.boundary,n=a===void 0?kc:a,s=t.rootBoundary,r=s===void 0?xi:s,F=t.elementContext,C=F===void 0?Ot:F,d=t.altBoundary,g=d===void 0?!1:d,m=t.padding,p=m===void 0?0:m,B=yi(typeof p!="number"?p:Ai(p,Ft)),h=C===Ot?jc:Ot,Q=c.rects.popper,Z=c.elements[g?h:C],X=Dc(it(Z)?Z:Z.contextElement||D(c.elements.popper),n,r,l),u=ct(c.elements.reference),U=fi({reference:u,element:Q,strategy:"absolute",placement:b}),I=ni(Object.assign({},Q,U)),x=C===Ot?I:u,G={top:X.top-x.top+B.top,bottom:x.bottom-X.bottom+B.bottom,left:X.left-x.left+B.left,right:x.right-X.right+B.right},R=c.modifiersData.offset;if(C===Ot&&R){var y=R[b];Object.keys(G).forEach(function(f){var v=[k,j].indexOf(f)>=0?1:-1,Y=[N,j].indexOf(f)>=0?"y":"x";G[f]+=y[Y]*v})}return G}function Ec(c,i){i===void 0&&(i={});var t=i,e=t.placement,b=t.boundary,o=t.rootBoundary,l=t.padding,a=t.flipVariations,n=t.allowedAutoPlacements,s=n===void 0?Ri:n,r=et(e),F=r?a?Pi:Pi.filter(function(g){return et(g)===r}):Ft,C=F.filter(function(g){return s.indexOf(g)>=0});C.length===0&&(C=F);var d=C.reduce(function(g,m){return g[m]=K(c,{placement:m,boundary:b,rootBoundary:o,padding:l})[S(m)],g},{});return Object.keys(d).sort(function(g,m){return d[g]-d[m]})}function Dl(c){if(S(c)===hi)return[];var i=ai(c);return[tc(c),i,tc(i)]}function El(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,a=l===void 0?!0:l,n=t.fallbackPlacements,s=t.padding,r=t.boundary,F=t.rootBoundary,C=t.altBoundary,d=t.flipVariations,g=d===void 0?!0:d,m=t.allowedAutoPlacements,p=i.options.placement,B=S(p),h=B===p,Q=n||(h||!g?[ai(p)]:Dl(p)),Z=[p].concat(Q).reduce(function(ii,Bt){return ii.concat(S(Bt)===hi?Ec(i,{placement:Bt,boundary:r,rootBoundary:F,padding:s,flipVariations:g,allowedAutoPlacements:m}):Bt)},[]),X=i.rects.reference,u=i.rects.popper,U=new Map,I=!0,x=Z[0],G=0;G=0,Y=v?"width":"height",L=K(i,{placement:R,boundary:r,rootBoundary:F,altBoundary:C,padding:s}),_=v?f?k:w:f?j:N;X[Y]>u[Y]&&(_=ai(_));var ti=ai(_),P=[];if(o&&P.push(L[y]<=0),a&&P.push(L[_]<=0,L[ti]<=0),P.every(function(ii){return ii})){x=R,I=!1;break}U.set(R,P)}if(I)for(var Ei=g?3:1,Lc=function(Bt){var ui=Z.find(function(Ki){var vt=U.get(Ki);if(vt)return vt.slice(0,Bt).every(function(Oc){return Oc})});if(ui)return x=ui,"break"},Bi=Ei;Bi>0;Bi--){var Mi=Lc(Bi);if(Mi==="break")break}i.placement!==x&&(i.modifiersData[e]._skip=!0,i.placement=x,i.reset=!0)}}var cc={name:"flip",enabled:!0,phase:"main",fn:El,requiresIfExists:["offset"],data:{_skip:!1}};function Qb(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 Ub(c){return[N,k,j,w].some(function(i){return c[i]>=0})}function Ml(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"}),a=K(i,{altBoundary:!0}),n=Qb(l,e),s=Qb(a,b,o),r=Ub(n),F=Ub(s);i.modifiersData[t]={referenceClippingOffsets:n,popperEscapeOffsets:s,isReferenceHidden:r,hasPopperEscaped:F},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":F})}var ec={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ml};function Kl(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],a=o[1];return l=l||0,a=(a||0)*b,[w,k].indexOf(e)>=0?{x:a,y:l}:{x:l,y:a}}function _l(c){var i=c.state,t=c.options,e=c.name,b=t.offset,o=b===void 0?[0,0]:b,l=Ri.reduce(function(r,F){return r[F]=Kl(F,i.rects,o),r},{}),a=l[i.placement],n=a.x,s=a.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=n,i.modifiersData.popperOffsets.y+=s),i.modifiersData[e]=l}var bc={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_l};function Pl(c){var i=c.state,t=c.name;i.modifiersData[t]=fi({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var ri={name:"popperOffsets",enabled:!0,phase:"read",fn:Pl,data:{}};function Mc(c){return c==="x"?"y":"x"}function $l(c){var i=c.state,t=c.options,e=c.name,b=t.mainAxis,o=b===void 0?!0:b,l=t.altAxis,a=l===void 0?!1:l,n=t.boundary,s=t.rootBoundary,r=t.altBoundary,F=t.padding,C=t.tether,d=C===void 0?!0:C,g=t.tetherOffset,m=g===void 0?0:g,p=K(i,{boundary:n,rootBoundary:s,padding:F,altBoundary:r}),B=S(i.placement),h=et(i.placement),Q=!h,Z=wt(B),X=Mc(Z),u=i.modifiersData.popperOffsets,U=i.rects.reference,I=i.rects.popper,x=typeof m=="function"?m(Object.assign({},i.rects,{placement:i.placement})):m,G=typeof x=="number"?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),R=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,y={x:0,y:0};if(u){if(o){var f,v=Z==="y"?N:w,Y=Z==="y"?j:k,L=Z==="y"?"height":"width",_=u[Z],ti=_+p[v],P=_-p[Y],Ei=d?-I[L]/2:0,Lc=h===mt?U[L]:I[L],Bi=h===mt?-I[L]:-U[L],Mi=i.elements.arrow,ii=d&&Mi?Nt(Mi):{width:0,height:0},Bt=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:Vi(),ui=Bt[v],Ki=Bt[Y],vt=kt(0,U[L],ii[L]),Oc=Q?U[L]/2-Ei-vt-ui-G.mainAxis:Lc-vt-ui-G.mainAxis,xl=Q?-U[L]/2+Ei+vt+Ki+G.mainAxis:Bi+vt+Ki+G.mainAxis,Jc=i.elements.arrow&&st(i.elements.arrow),Rl=Jc?Z==="y"?Jc.clientTop||0:Jc.clientLeft||0:0,ob=(f=R?.[Z])!=null?f:0,Ql=_+Oc-ob-Rl,Ul=_+xl-ob,lb=kt(d?Jt(ti,Ql):ti,_,d?rt(P,Ul):P);u[Z]=lb,y[Z]=lb-_}if(a){var ab,Vl=Z==="x"?N:w,yl=Z==="x"?j:k,Lt=u[X],_i=X==="y"?"height":"width",nb=Lt+p[Vl],rb=Lt-p[yl],Nc=[N,w].indexOf(B)!==-1,sb=(ab=R?.[X])!=null?ab:0,db=Nc?nb:Lt-U[_i]-I[_i]-sb+G.altAxis,Ib=Nc?Lt+U[_i]+I[_i]-sb-G.altAxis:rb,gb=d&&Nc?hb(db,Lt,Ib):kt(d?db:nb,Lt,d?Ib:rb);u[X]=gb,y[X]=gb-Lt}i.modifiersData[e]=y}}var oc={name:"preventOverflow",enabled:!0,phase:"main",fn:$l,requiresIfExists:["offset"]};function Kc(c){return{scrollLeft:c.scrollLeft,scrollTop:c.scrollTop}}function _c(c){return c===J(c)||!z(c)?jt(c):Kc(c)}function ql(c){var i=c.getBoundingClientRect(),t=Zt(i.width)/c.offsetWidth||1,e=Zt(i.height)/c.offsetHeight||1;return t!==1||e!==1}function Pc(c,i,t){t===void 0&&(t=!1);var e=z(i),b=z(i)&&ql(i),o=D(i),l=ct(c,b,t),a={scrollLeft:0,scrollTop:0},n={x:0,y:0};return(e||!e&&!t)&&((H(i)!=="body"||Ht(o))&&(a=_c(i)),z(i)?(n=ct(i,!0),n.x+=i.clientLeft,n.y+=i.clientTop):o&&(n.x=zt(o))),{x:l.left+a.scrollLeft-n.x,y:l.top+a.scrollTop-n.y,width:l.width,height:l.height}}function ta(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(a){if(!t.has(a)){var n=i.get(a);n&&b(n)}}),e.push(o)}return c.forEach(function(o){t.has(o.name)||b(o)}),e}function $c(c){var i=ta(c);return zc.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 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),oa=c=>c==null?`${c}`:Object.prototype.toString.call(c).match(/\s([a-z]+)/i)[1].toLowerCase(),la=c=>{do c+=Math.floor(Math.random()*ea);while(document.getElementById(c));return c},aa=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))*ba)},no=c=>{c.dispatchEvent(new Event(Ze))},Ct=c=>!c||typeof c!="object"?!1:(typeof c.jquery<"u"&&(c=c[0]),typeof c.nodeType<"u"),Rt=c=>Ct(c)?c.jquery?c[0]:c:typeof c=="string"&&c.length>0?document.querySelector(ao(c)):null,Zi=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},Qt=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",ro=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?ro(c.parentNode):null},Gc=()=>{},wi=c=>{c.offsetHeight},so=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,ce=[],na=c=>{document.readyState==="loading"?(ce.length||document.addEventListener("DOMContentLoaded",()=>{for(let i of ce)i()}),ce.push(c)):c()},bt=()=>document.documentElement.dir==="rtl",lt=c=>{na(()=>{let i=so();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.call(...i):t,Io=(c,i,t=!0)=>{if(!t){$(c);return}let b=aa(i)+5,o=!1,l=({target:a})=>{a===i&&(o=!0,i.removeEventListener(Ze,l),$(c))};i.addEventListener(Ze,l),setTimeout(()=>{o||no(i)},b)},Be=(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))])},ra=/[^.]*(?=\..*)\.|.*/,sa=/\..*/,da=/::\d+$/,ee={},Yb=1,go={mouseenter:"mouseover",mouseleave:"mouseout"},Ia=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 mo(c,i){return i&&`${i}::${Yb++}`||c.uidEvent||Yb++}function Go(c){let i=mo(c);return c.uidEvent=i,ee[i]=ee[i]||{},ee[i]}function ga(c,i){return function t(e){return ue(e,{delegateTarget:c}),t.oneOff&&W.off(c,e.type,i),i.apply(c,[e])}}function ma(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 a of o)if(a===l)return ue(b,{delegateTarget:l}),e.oneOff&&W.off(c,b.type,i,t),t.apply(l,[b])}}function Fo(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 Ia.has(o)||(o=c),[e,b,o]}function vb(c,i,t,e,b){if(typeof i!="string"||!c)return;let[o,l,a]=Zo(i,t,e);i in go&&(l=(g=>function(m){if(!m.relatedTarget||m.relatedTarget!==m.delegateTarget&&!m.delegateTarget.contains(m.relatedTarget))return g.call(this,m)})(l));let n=Go(c),s=n[a]||(n[a]={}),r=Fo(s,l,o?t:null);if(r){r.oneOff=r.oneOff&&b;return}let F=mo(l,i.replace(ra,"")),C=o?ma(c,t,l):ga(c,l);C.delegationSelector=o?t:null,C.callable=l,C.oneOff=b,C.uidEvent=F,s[F]=C,c.addEventListener(a,C,o)}function Xe(c,i,t,e,b){let o=Fo(i[t],e,b);o&&(c.removeEventListener(t,o,!!b),delete i[t][o.uidEvent])}function Ga(c,i,t,e){let b=i[t]||{};for(let[o,l]of Object.entries(b))o.includes(e)&&Xe(c,i,t,l.callable,l.delegationSelector)}function Xo(c){return c=c.replace(sa,""),go[c]||c}var W={on(c,i,t,e){vb(c,i,t,e,!1)},one(c,i,t,e){vb(c,i,t,e,!0)},off(c,i,t,e){if(typeof i!="string"||!c)return;let[b,o,l]=Zo(i,t,e),a=l!==i,n=Go(c),s=n[l]||{},r=i.startsWith(".");if(typeof o<"u"){if(!Object.keys(s).length)return;Xe(c,n,l,o,b?t:null);return}if(r)for(let F of Object.keys(n))Ga(c,n,F,i.slice(1));for(let[F,C]of Object.entries(s)){let d=F.replace(da,"");(!a||i.includes(d))&&Xe(c,n,l,C.callable,C.delegationSelector)}},trigger(c,i,t){if(typeof i!="string"||!c)return null;let e=so(),b=Xo(i),o=i!==b,l=null,a=!0,n=!0,s=!1;o&&e&&(l=e.Event(i,t),e(c).trigger(l),a=!l.isPropagationStopped(),n=!l.isImmediatePropagationStopped(),s=l.isDefaultPrevented());let r=ue(new Event(i,{bubbles:a,cancelable:!0}),t);return s&&r.preventDefault(),n&&c.dispatchEvent(r),r.defaultPrevented&&l&&l.preventDefault(),r}};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 Lb(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 Wt={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),i[b]=Lb(c.dataset[e])}return i},getDataAttribute(c,i){return Lb(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)?Wt.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof e=="object"?e:{},...Ct(t)?Wt.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":oa(o);if(!new RegExp(b).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${e}" provided type "${l}" but expected type "${b}".`)}}},Fa="5.3.8",q=class extends Et{constructor(i,t){super(),i=Rt(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),W.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 ie.get(Rt(i),this.DATA_KEY)}static getOrCreateInstance(i,t={}){return this.getInstance(i)||new this(i,typeof t=="object"?t:null)}static get VERSION(){return Fa}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=>ao(t)).join(","):null},V={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=>!Qt(t)&&Zi(t))},getSelectorFromElement(c){let i=oe(c);return i&&V.findOne(i)?i:null},getElementFromSelector(c){let i=oe(c);return i?V.findOne(i):null},getMultipleElementsFromSelector(c){let i=oe(c);return i?V.find(i):[]}},xc=(c,i="hide")=>{let t=`click.dismiss${c.EVENT_KEY}`,e=c.NAME;W.on(document,t,`[data-bs-dismiss="${e}"]`,function(b){if(["A","AREA"].includes(this.tagName)&&b.preventDefault(),Qt(this))return;let o=V.getElementFromSelector(this)||this.closest(`.${e}`);c.getOrCreateInstance(o)[i]()})},Za="alert",Xa="bs.alert",Co=`.${Xa}`,Ca=`close${Co}`,Wa=`closed${Co}`,pa="fade",Ba="show",Fc=class c extends q{static get NAME(){return Za}close(){if(W.trigger(this._element,Ca).defaultPrevented)return;this._element.classList.remove(Ba);let t=this._element.classList.contains(pa);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),W.trigger(this._element,Wa),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)}})}};xc(Fc,"close");lt(Fc);var ua="button",ha="bs.button",xa=`.${ha}`,Ra=".data-api",Qa="active",Ob='[data-bs-toggle="button"]',Ua=`click${xa}${Ra}`,Zc=class c extends q{static get NAME(){return ua}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Qa))}static jQueryInterface(i){return this.each(function(){let t=c.getOrCreateInstance(this);i==="toggle"&&t[i]()})}};W.on(document,Ua,Ob,c=>{c.preventDefault();let i=c.target.closest(Ob);Zc.getOrCreateInstance(i).toggle()});lt(Zc);var Va="swipe",Xi=".bs.swipe",ya=`touchstart${Xi}`,Aa=`touchmove${Xi}`,fa=`touchend${Xi}`,Ya=`pointerdown${Xi}`,va=`pointerup${Xi}`,La="touch",Oa="pen",Ja="pointer-event",Na=40,wa={endCallback:null,leftCallback:null,rightCallback:null},ka={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Xc=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 wa}static get DefaultType(){return ka}static get NAME(){return Va}dispose(){W.off(this._element,Xi)}_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<=Na)return;let t=i/this._deltaX;this._deltaX=0,t&&$(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(W.on(this._element,Ya,i=>this._start(i)),W.on(this._element,va,i=>this._end(i)),this._element.classList.add(Ja)):(W.on(this._element,ya,i=>this._start(i)),W.on(this._element,Aa,i=>this._move(i)),W.on(this._element,fa,i=>this._end(i)))}_eventIsPointerPenTouch(i){return this._supportPointerEvents&&(i.pointerType===Oa||i.pointerType===La)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},ja="carousel",za="bs.carousel",yt=`.${za}`,Wo=".data-api",Ha="ArrowLeft",Sa="ArrowRight",Ta=500,vi="next",si="prev",Ii="left",gc="right",Da=`slide${yt}`,le=`slid${yt}`,Ea=`keydown${yt}`,Ma=`mouseenter${yt}`,Ka=`mouseleave${yt}`,_a=`dragstart${yt}`,Pa=`load${yt}${Wo}`,$a=`click${yt}${Wo}`,po="carousel",ac="active",qa="slide",tn="carousel-item-end",cn="carousel-item-start",en="carousel-item-next",bn="carousel-item-prev",Bo=".active",uo=".carousel-item",on=Bo+uo,ln=".carousel-item img",an=".carousel-indicators",nn="[data-bs-slide], [data-bs-slide-to]",rn='[data-bs-ride="carousel"]',sn={[Ha]:gc,[Sa]:Ii},dn={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},In={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Oi=class c extends q{constructor(i,t){super(i,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=V.findOne(an,this._element),this._addEventListeners(),this._config.ride===po&&this.cycle()}static get Default(){return dn}static get DefaultType(){return In}static get NAME(){return ja}next(){this._slide(vi)}nextWhenVisible(){!document.hidden&&Zi(this._element)&&this.next()}prev(){this._slide(si)}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){W.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){W.one(this._element,le,()=>this.to(i));return}let e=this._getItemIndex(this._getActive());if(e===i)return;let b=i>e?vi:si;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&&W.on(this._element,Ea,i=>this._keydown(i)),this._config.pause==="hover"&&(W.on(this._element,Ma,()=>this.pause()),W.on(this._element,Ka,()=>this._maybeEnableCycle())),this._config.touch&&Xc.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let e of V.find(ln,this._element))W.on(e,_a,b=>b.preventDefault());let t={leftCallback:()=>this._slide(this._directionToOrder(Ii)),rightCallback:()=>this._slide(this._directionToOrder(gc)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Ta+this._config.interval))}};this._swipeHelper=new Xc(this._element,t)}_keydown(i){if(/input|textarea/i.test(i.target.tagName))return;let t=sn[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=V.findOne(Bo,this._indicatorsElement);t.classList.remove(ac),t.removeAttribute("aria-current");let e=V.findOne(`[data-bs-slide-to="${i}"]`,this._indicatorsElement);e&&(e.classList.add(ac),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||Be(this._getItems(),e,b,this._config.wrap);if(o===e)return;let l=this._getItemIndex(o),a=d=>W.trigger(this._element,d,{relatedTarget:o,direction:this._orderToDirection(i),from:this._getItemIndex(e),to:l});if(a(Da).defaultPrevented||!e||!o)return;let s=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=o;let r=b?cn:tn,F=b?en:bn;o.classList.add(F),wi(o),e.classList.add(r),o.classList.add(r);let C=()=>{o.classList.remove(r,F),o.classList.add(ac),e.classList.remove(ac,F,r),this._isSliding=!1,a(le)};this._queueCallback(C,e,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains(qa)}_getActive(){return V.findOne(on,this._element)}_getItems(){return V.find(uo,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(i){return bt()?i===Ii?si:vi:i===Ii?vi:si}_orderToDirection(i){return bt()?i===si?Ii:gc:i===si?gc:Ii}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]()}})}};W.on(document,$a,nn,function(c){let i=V.getElementFromSelector(this);if(!i||!i.classList.contains(po))return;c.preventDefault();let t=Oi.getOrCreateInstance(i),e=this.getAttribute("data-bs-slide-to");if(e){t.to(e),t._maybeEnableCycle();return}if(Wt.getDataAttribute(this,"slide")==="next"){t.next(),t._maybeEnableCycle();return}t.prev(),t._maybeEnableCycle()});W.on(window,Pa,()=>{let c=V.find(rn);for(let i of c)Oi.getOrCreateInstance(i)});lt(Oi);var gn="collapse",mn="bs.collapse",ki=`.${mn}`,Gn=".data-api",Fn=`show${ki}`,Zn=`shown${ki}`,Xn=`hide${ki}`,Cn=`hidden${ki}`,Wn=`click${ki}${Gn}`,ae="show",mi="collapse",nc="collapsing",pn="collapsed",Bn=`:scope .${mi} .${mi}`,un="collapse-horizontal",hn="width",xn="height",Rn=".collapse.show, .collapse.collapsing",Ce='[data-bs-toggle="collapse"]',Qn={parent:null,toggle:!0},Un={parent:"(null|element)",toggle:"boolean"},Cc=class c extends q{constructor(i,t){super(i,t),this._isTransitioning=!1,this._triggerArray=[];let e=V.find(Ce);for(let b of e){let o=V.getSelectorFromElement(b),l=V.find(o).filter(a=>a===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 Qn}static get DefaultType(){return Un}static get NAME(){return gn}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let i=[];if(this._config.parent&&(i=this._getFirstLevelChildren(Rn).filter(a=>a!==this._element).map(a=>c.getOrCreateInstance(a,{toggle:!1}))),i.length&&i[0]._isTransitioning||W.trigger(this._element,Fn).defaultPrevented)return;for(let a of i)a.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,ae),this._element.style[e]="",W.trigger(this._element,Zn)},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()||W.trigger(this._element,Xn).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,ae);for(let b of this._triggerArray){let o=V.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),W.trigger(this._element,Cn)};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=Rt(i.parent),i}_getDimension(){return this._element.classList.contains(un)?hn:xn}_initializeChildren(){if(!this._config.parent)return;let i=this._getFirstLevelChildren(Ce);for(let t of i){let e=V.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(i){let t=V.find(Bn,this._config.parent);return V.find(i,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(i,t){if(i.length)for(let e of i)e.classList.toggle(pn,!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]()}})}};W.on(document,Wn,Ce,function(c){(c.target.tagName==="A"||c.delegateTarget&&c.delegateTarget.tagName==="A")&&c.preventDefault();for(let i of V.getMultipleElementsFromSelector(this))Cc.getOrCreateInstance(i,{toggle:!1}).toggle()});lt(Cc);var Jb="dropdown",Vn="bs.dropdown",Mt=`.${Vn}`,he=".data-api",yn="Escape",Nb="Tab",An="ArrowUp",wb="ArrowDown",fn=2,Yn=`hide${Mt}`,vn=`hidden${Mt}`,Ln=`show${Mt}`,On=`shown${Mt}`,ho=`click${Mt}${he}`,xo=`keydown${Mt}${he}`,Jn=`keyup${Mt}${he}`,gi="show",Nn="dropup",wn="dropend",kn="dropstart",jn="dropup-center",zn="dropdown-center",Tt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hn=`${Tt}.${gi}`,mc=".dropdown-menu",Sn=".navbar",Tn=".navbar-nav",Dn=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",En=bt()?"top-end":"top-start",Mn=bt()?"top-start":"top-end",Kn=bt()?"bottom-end":"bottom-start",_n=bt()?"bottom-start":"bottom-end",Pn=bt()?"left-start":"right-start",$n=bt()?"right-start":"left-start",qn="top",tr="bottom",ir={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},cr={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},Ut=class c extends q{constructor(i,t){super(i,t),this._popper=null,this._parent=this._element.parentNode,this._menu=V.next(this._element,mc)[0]||V.prev(this._element,mc)[0]||V.findOne(mc,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ir}static get DefaultType(){return cr}static get NAME(){return Jb}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Qt(this._element)||this._isShown())return;let i={relatedTarget:this._element};if(!W.trigger(this._element,Ln,i).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Tn))for(let e of[].concat(...document.body.children))W.on(e,"mouseover",Gc);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(gi),this._element.classList.add(gi),W.trigger(this._element,On,i)}}hide(){if(Qt(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(!W.trigger(this._element,Yn,i).defaultPrevented){if("ontouchstart"in document.documentElement)for(let e of[].concat(...document.body.children))W.off(e,"mouseover",Gc);this._popper&&this._popper.destroy(),this._menu.classList.remove(gi),this._element.classList.remove(gi),this._element.setAttribute("aria-expanded","false"),Wt.removeDataAttribute(this._menu,"popper"),W.trigger(this._element,vn,i)}}_getConfig(i){if(i=super._getConfig(i),typeof i.reference=="object"&&!Ct(i.reference)&&typeof i.reference.getBoundingClientRect!="function")throw new TypeError(`${Jb.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/docs/v2/)");let i=this._element;this._config.reference==="parent"?i=this._parent:Ct(this._config.reference)?i=Rt(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(wn))return Pn;if(i.classList.contains(kn))return $n;if(i.classList.contains(jn))return qn;if(i.classList.contains(zn))return tr;let t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return i.classList.contains(Nn)?t?Mn:En:t?_n:Kn}_detectNavbar(){return this._element.closest(Sn)!==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")&&(Wt.setDataAttribute(this._menu,"popper","static"),i.modifiers=[{name:"applyStyles",enabled:!1}]),{...i,...$(this._config.popperConfig,[void 0,i])}}_selectMenuItem({key:i,target:t}){let e=V.find(Dn,this._menu).filter(b=>Zi(b));e.length&&Be(e,t,i===wb,!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===fn||i.type==="keyup"&&i.key!==Nb)return;let t=V.find(Hn);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===Nb||/input|select|option|textarea|form/i.test(i.target.tagName)))continue;let a={relatedTarget:b._element};i.type==="click"&&(a.clickEvent=i),b._completeHide(a)}}static dataApiKeydownHandler(i){let t=/input|textarea/i.test(i.target.tagName),e=i.key===yn,b=[An,wb].includes(i.key);if(!b&&!e||t&&!e)return;i.preventDefault();let o=this.matches(Tt)?this:V.prev(this,Tt)[0]||V.next(this,Tt)[0]||V.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())}};W.on(document,xo,Tt,Ut.dataApiKeydownHandler);W.on(document,xo,mc,Ut.dataApiKeydownHandler);W.on(document,ho,Ut.clearMenus);W.on(document,Jn,Ut.clearMenus);W.on(document,ho,Tt,function(c){c.preventDefault(),Ut.getOrCreateInstance(this).toggle()});lt(Ut);var Ro="backdrop",er="fade",kb="show",jb=`mousedown.bs.${Ro}`,br={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},or={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Wc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isAppended=!1,this._element=null}static get Default(){return br}static get DefaultType(){return or}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(kb),this._emulateAnimation(()=>{$(i)})}hide(i){if(!this._config.isVisible){$(i);return}this._getElement().classList.remove(kb),this._emulateAnimation(()=>{this.dispose(),$(i)})}dispose(){this._isAppended&&(W.off(this._element,jb),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(er),this._element=i}return this._element}_configAfterMerge(i){return i.rootElement=Rt(i.rootElement),i}_append(){if(this._isAppended)return;let i=this._getElement();this._config.rootElement.append(i),W.on(i,jb,()=>{$(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(i){Io(i,this._getElement(),this._config.isAnimated)}},lr="focustrap",ar="bs.focustrap",pc=`.${ar}`,nr=`focusin${pc}`,rr=`keydown.tab${pc}`,sr="Tab",dr="forward",zb="backward",Ir={autofocus:!0,trapElement:null},gr={autofocus:"boolean",trapElement:"element"},Bc=class extends Et{constructor(i){super(),this._config=this._getConfig(i),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ir}static get DefaultType(){return gr}static get NAME(){return lr}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),W.off(document,pc),W.on(document,nr,i=>this._handleFocusin(i)),W.on(document,rr,i=>this._handleKeydown(i)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,W.off(document,pc))}_handleFocusin(i){let{trapElement:t}=this._config;if(i.target===document||i.target===t||t.contains(i.target))return;let e=V.focusableChildren(t);e.length===0?t.focus():this._lastTabNavDirection===zb?e[e.length-1].focus():e[0].focus()}_handleKeydown(i){i.key===sr&&(this._lastTabNavDirection=i.shiftKey?zb:dr)}},Hb=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Sb=".sticky-top",rc="padding-right",Tb="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,rc,t=>t+i),this._setElementAttributes(Hb,rc,t=>t+i),this._setElementAttributes(Sb,Tb,t=>t-i)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,rc),this._resetElementAttributes(Hb,rc),this._resetElementAttributes(Sb,Tb)}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 a=window.getComputedStyle(l).getPropertyValue(t);l.style.setProperty(t,`${e(Number.parseFloat(a))}px`)};this._applyManipulationCallback(i,o)}_saveInitialAttribute(i,t){let e=i.style.getPropertyValue(t);e&&Wt.setDataAttribute(i,t,e)}_resetElementAttributes(i,t){let e=b=>{let o=Wt.getDataAttribute(b,t);if(o===null){b.style.removeProperty(t);return}Wt.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 V.find(i,this._element))t(e)}},mr="modal",Gr="bs.modal",ot=`.${Gr}`,Fr=".data-api",Zr="Escape",Xr=`hide${ot}`,Cr=`hidePrevented${ot}`,Qo=`hidden${ot}`,Uo=`show${ot}`,Wr=`shown${ot}`,pr=`resize${ot}`,Br=`click.dismiss${ot}`,ur=`mousedown.dismiss${ot}`,hr=`keydown.dismiss${ot}`,xr=`click${ot}${Fr}`,Db="modal-open",Rr="fade",Eb="show",ne="modal-static",Qr=".modal.show",Ur=".modal-dialog",Vr=".modal-body",yr='[data-bs-toggle="modal"]',Ar={backdrop:!0,focus:!0,keyboard:!0},fr={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},Gi=class c extends q{constructor(i,t){super(i,t),this._dialog=V.findOne(Ur,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 Ar}static get DefaultType(){return fr}static get NAME(){return mr}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){this._isShown||this._isTransitioning||W.trigger(this._element,Uo,{relatedTarget:i}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Db),this._adjustDialog(),this._backdrop.show(()=>this._showElement(i)))}hide(){!this._isShown||this._isTransitioning||W.trigger(this._element,Xr).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Eb),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){W.off(window,ot),W.off(this._dialog,ot),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Wc({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Bc({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=V.findOne(Vr,this._dialog);t&&(t.scrollTop=0),wi(this._element),this._element.classList.add(Eb);let e=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,W.trigger(this._element,Wr,{relatedTarget:i})};this._queueCallback(e,this._dialog,this._isAnimated())}_addEventListeners(){W.on(this._element,hr,i=>{if(i.key===Zr){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),W.on(window,pr,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),W.on(this._element,ur,i=>{W.one(this._element,Br,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(Db),this._resetAdjustments(),this._scrollBar.reset(),W.trigger(this._element,Qo)})}_isAnimated(){return this._element.classList.contains(Rr)}_triggerBackdropTransition(){if(W.trigger(this._element,Cr).defaultPrevented)return;let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;e==="hidden"||this._element.classList.contains(ne)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(ne),this._queueCallback(()=>{this._element.classList.remove(ne),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)}})}};W.on(document,xr,yr,function(c){let i=V.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&c.preventDefault(),W.one(i,Uo,b=>{b.defaultPrevented||W.one(i,Qo,()=>{Zi(this)&&this.focus()})});let t=V.findOne(Qr);t&&Gi.getInstance(t).hide(),Gi.getOrCreateInstance(i).toggle(this)});xc(Gi);lt(Gi);var Yr="offcanvas",vr="bs.offcanvas",pt=`.${vr}`,Vo=".data-api",Lr=`load${pt}${Vo}`,Or="Escape",Mb="show",Kb="showing",_b="hiding",Jr="offcanvas-backdrop",yo=".offcanvas.show",Nr=`show${pt}`,wr=`shown${pt}`,kr=`hide${pt}`,Pb=`hidePrevented${pt}`,Ao=`hidden${pt}`,jr=`resize${pt}`,zr=`click${pt}${Vo}`,Hr=`keydown.dismiss${pt}`,Sr='[data-bs-toggle="offcanvas"]',Tr={backdrop:!0,keyboard:!0,scroll:!1},Dr={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},Vt=class c extends q{constructor(i,t){super(i,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Tr}static get DefaultType(){return Dr}static get NAME(){return Yr}toggle(i){return this._isShown?this.hide():this.show(i)}show(i){if(this._isShown||W.trigger(this._element,Nr,{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(Kb);let e=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Mb),this._element.classList.remove(Kb),W.trigger(this._element,wr,{relatedTarget:i})};this._queueCallback(e,this._element,!0)}hide(){if(!this._isShown||W.trigger(this._element,kr).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(_b),this._backdrop.hide();let t=()=>{this._element.classList.remove(Mb,_b),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Ji().reset(),W.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"){W.trigger(this._element,Pb);return}this.hide()},t=!!this._config.backdrop;return new Wc({className:Jr,isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?i:null})}_initializeFocusTrap(){return new Bc({trapElement:this._element})}_addEventListeners(){W.on(this._element,Hr,i=>{if(i.key===Or){if(this._config.keyboard){this.hide();return}W.trigger(this._element,Pb)}})}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)}})}};W.on(document,zr,Sr,function(c){let i=V.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&c.preventDefault(),Qt(this))return;W.one(i,Ao,()=>{Zi(this)&&this.focus()});let t=V.findOne(yo);t&&t!==i&&Vt.getInstance(t).hide(),Vt.getOrCreateInstance(i).toggle(this)});W.on(window,Lr,()=>{for(let c of V.find(yo))Vt.getOrCreateInstance(c).show()});W.on(window,jr,()=>{for(let c of V.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(c).position!=="fixed"&&Vt.getOrCreateInstance(c).hide()});xc(Vt);lt(Vt);var Er=/^aria-[\w-]*$/i,fo={"*":["class","dir","id","lang","role",Er],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:[]},Mr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Kr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,_r=(c,i)=>{let t=c.nodeName.toLowerCase();return i.includes(t)?Mr.has(t)?!!Kr.test(c.nodeValue):!0:i.filter(e=>e instanceof RegExp).some(e=>e.test(t))};function Pr(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 a=l.nodeName.toLowerCase();if(!Object.keys(i).includes(a)){l.remove();continue}let n=[].concat(...l.attributes),s=[].concat(i["*"]||[],i[a]||[]);for(let r of n)_r(r,s)||l.removeAttribute(r.nodeName)}return b.body.innerHTML}var $r="TemplateFactory",qr={allowList:fo,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},ts={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},is={entry:"(string|element|function|null)",selector:"(string|element)"},We=class extends Et{constructor(i){super(),this._config=this._getConfig(i)}static get Default(){return qr}static get DefaultType(){return ts}static get NAME(){return $r}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},is)}_setContent(i,t,e){let b=V.findOne(e,i);if(b){if(t=this._resolvePossibleFunction(t),!t){b.remove();return}if(Ct(t)){this._putElementInTemplate(Rt(t),b);return}if(this._config.html){b.innerHTML=this._maybeSanitize(t);return}b.textContent=t}}_maybeSanitize(i){return this._config.sanitize?Pr(i,this._config.allowList,this._config.sanitizeFn):i}_resolvePossibleFunction(i){return $(i,[void 0,this])}_putElementInTemplate(i,t){if(this._config.html){t.innerHTML="",t.append(i);return}t.textContent=i.textContent}},cs="tooltip",es=new Set(["sanitize","allowList","sanitizeFn"]),re="fade",bs="modal",sc="show",os=".tooltip-inner",$b=`.${bs}`,qb="hide.bs.modal",Li="hover",se="focus",de="click",ls="manual",as="hide",ns="hidden",rs="show",ss="shown",ds="inserted",Is="click",gs="focusin",ms="focusout",Gs="mouseenter",Fs="mouseleave",Zs={AUTO:"auto",TOP:"top",RIGHT:bt()?"left":"right",BOTTOM:"bottom",LEFT:bt()?"right":"left"},Xs={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"},Cs={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"},Fi=class c extends q{constructor(i,t){if(typeof lc>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");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 Xs}static get DefaultType(){return Cs}static get NAME(){return cs}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),W.off(this._element.closest($b),qb,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=W.trigger(this._element,this.constructor.eventName(rs)),e=(ro(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),W.trigger(this._element,this.constructor.eventName(ds))),this._popper=this._createPopper(b),b.classList.add(sc),"ontouchstart"in document.documentElement)for(let a of[].concat(...document.body.children))W.on(a,"mouseover",Gc);let l=()=>{W.trigger(this._element,this.constructor.eventName(ss)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||W.trigger(this._element,this.constructor.eventName(as)).defaultPrevented)return;if(this._getTipElement().classList.remove(sc),"ontouchstart"in document.documentElement)for(let b of[].concat(...document.body.children))W.off(b,"mouseover",Gc);this._activeTrigger[de]=!1,this._activeTrigger[se]=!1,this._activeTrigger[Li]=!1,this._isHovered=null;let e=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),W.trigger(this._element,this.constructor.eventName(ns)))};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,sc),t.classList.add(`bs-${this.constructor.NAME}-auto`);let e=la(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 We({...this._config,content:i,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[os]: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(sc)}_createPopper(i){let t=$(this._config.placement,[this,i,this._element]),e=Zs[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,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,[void 0,t])}}_setListeners(){let i=this._config.trigger.split(" ");for(let t of i)if(t==="click")W.on(this._element,this.constructor.eventName(Is),this._config.selector,e=>{let b=this._initializeOnDelegatedTarget(e);b._activeTrigger[de]=!(b._isShown()&&b._activeTrigger[de]),b.toggle()});else if(t!==ls){let e=t===Li?this.constructor.eventName(Gs):this.constructor.eventName(gs),b=t===Li?this.constructor.eventName(Fs):this.constructor.eventName(ms);W.on(this._element,e,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusin"?se:Li]=!0,l._enter()}),W.on(this._element,b,this._config.selector,o=>{let l=this._initializeOnDelegatedTarget(o);l._activeTrigger[o.type==="focusout"?se:Li]=l._element.contains(o.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},W.on(this._element.closest($b),qb,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=Wt.getDataAttributes(this._element);for(let e of Object.keys(t))es.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:Rt(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(Fi);var Ws="popover",ps=".popover-header",Bs=".popover-body",us={...Fi.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},hs={...Fi.DefaultType,content:"(null|string|element|function)"},pe=class c extends Fi{static get Default(){return us}static get DefaultType(){return hs}static get NAME(){return Ws}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ps]:this._getTitle(),[Bs]: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(pe);var xs="scrollspy",Rs="bs.scrollspy",xe=`.${Rs}`,Qs=".data-api",Us=`activate${xe}`,to=`click${xe}`,Vs=`load${xe}${Qs}`,ys="dropdown-item",di="active",As='[data-bs-spy="scroll"]',Ie="[href]",fs=".nav, .list-group",io=".nav-link",Ys=".nav-item",vs=".list-group-item",Ls=`${io}, ${Ys} > ${io}, ${vs}`,Os=".dropdown",Js=".dropdown-toggle",Ns={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ws={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},uc=class c extends q{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 Ns}static get DefaultType(){return ws}static get NAME(){return xs}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=Rt(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&&(W.off(this._config.target,to),W.on(this._config.target,to,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 a=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(e(l),!b)return;continue}!o&&!a&&e(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let i=V.find(Ie,this._config.target);for(let t of i){if(!t.hash||Qt(t))continue;let e=V.findOne(decodeURI(t.hash),this._element);Zi(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(di),this._activateParents(i),W.trigger(this._element,Us,{relatedTarget:i}))}_activateParents(i){if(i.classList.contains(ys)){V.findOne(Js,i.closest(Os)).classList.add(di);return}for(let t of V.parents(i,fs))for(let e of V.prev(t,Ls))e.classList.add(di)}_clearActiveClass(i){i.classList.remove(di);let t=V.find(`${Ie}.${di}`,i);for(let e of t)e.classList.remove(di)}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]()}})}};W.on(window,Vs,()=>{for(let c of V.find(As))uc.getOrCreateInstance(c)});lt(uc);var ks="tab",js="bs.tab",Kt=`.${js}`,zs=`hide${Kt}`,Hs=`hidden${Kt}`,Ss=`show${Kt}`,Ts=`shown${Kt}`,Ds=`click${Kt}`,Es=`keydown${Kt}`,Ms=`load${Kt}`,Ks="ArrowLeft",co="ArrowRight",_s="ArrowUp",eo="ArrowDown",ge="Home",bo="End",Dt="active",oo="fade",me="show",Ps="dropdown",Yo=".dropdown-toggle",$s=".dropdown-menu",Ge=`:not(${Yo})`,qs='.list-group, .nav, [role="tablist"]',td=".nav-item, .list-group-item",id=`.nav-link${Ge}, .list-group-item${Ge}, [role="tab"]${Ge}`,vo='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Fe=`${id}, ${vo}`,cd=`.${Dt}[data-bs-toggle="tab"], .${Dt}[data-bs-toggle="pill"], .${Dt}[data-bs-toggle="list"]`,Ni=class c extends q{constructor(i){super(i),this._parent=this._element.closest(qs),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),W.on(this._element,Es,t=>this._keydown(t)))}static get NAME(){return ks}show(){let i=this._element;if(this._elemIsActive(i))return;let t=this._getActiveElem(),e=t?W.trigger(t,zs,{relatedTarget:i}):null;W.trigger(i,Ss,{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(V.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),W.trigger(i,Ts,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(oo))}_deactivate(i,t){if(!i)return;i.classList.remove(Dt),i.blur(),this._deactivate(V.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),W.trigger(i,Hs,{relatedTarget:t})};this._queueCallback(e,i,i.classList.contains(oo))}_keydown(i){if(![Ks,co,_s,eo,ge,bo].includes(i.key))return;i.stopPropagation(),i.preventDefault();let t=this._getChildren().filter(b=>!Qt(b)),e;if([ge,bo].includes(i.key))e=t[i.key===ge?0:t.length-1];else{let b=[co,eo].includes(i.key);e=Be(t,i.target,b,!0)}e&&(e.focus({preventScroll:!0}),c.getOrCreateInstance(e).show())}_getChildren(){return V.find(Fe,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=V.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(Ps))return;let b=(o,l)=>{let a=V.findOne(o,e);a&&a.classList.toggle(l,t)};b(Yo,Dt),b($s,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(Fe)?i:V.findOne(Fe,i)}_getOuterElement(i){return i.closest(td)||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]()}})}};W.on(document,Ds,vo,function(c){["A","AREA"].includes(this.tagName)&&c.preventDefault(),!Qt(this)&&Ni.getOrCreateInstance(this).show()});W.on(window,Ms,()=>{for(let c of V.find(cd))Ni.getOrCreateInstance(c)});lt(Ni);var ed="toast",bd="bs.toast",At=`.${bd}`,od=`mouseover${At}`,ld=`mouseout${At}`,ad=`focusin${At}`,nd=`focusout${At}`,rd=`hide${At}`,sd=`hidden${At}`,dd=`show${At}`,Id=`shown${At}`,gd="fade",lo="hide",dc="show",Ic="showing",md={animation:"boolean",autohide:"boolean",delay:"number"},Gd={animation:!0,autohide:!0,delay:5e3},hc=class c extends q{constructor(i,t){super(i,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Gd}static get DefaultType(){return md}static get NAME(){return ed}show(){if(W.trigger(this._element,dd).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(gd);let t=()=>{this._element.classList.remove(Ic),W.trigger(this._element,Id),this._maybeScheduleHide()};this._element.classList.remove(lo),wi(this._element),this._element.classList.add(dc,Ic),this._queueCallback(t,this._element,this._config.animation)}hide(){if(!this.isShown()||W.trigger(this._element,rd).defaultPrevented)return;let t=()=>{this._element.classList.add(lo),this._element.classList.remove(Ic,dc),W.trigger(this._element,sd)};this._element.classList.add(Ic),this._queueCallback(t,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(dc),super.dispose()}isShown(){return this._element.classList.contains(dc)}_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(){W.on(this._element,od,i=>this._onInteraction(i,!0)),W.on(this._element,ld,i=>this._onInteraction(i,!1)),W.on(this._element,ad,i=>this._onInteraction(i,!0)),W.on(this._element,nd,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)}})}};xc(hc);lt(hc);var vc=wc(jo());var Ee=globalThis,zo=c=>c,Qc=Ee.trustedTypes,Ho=Qc?Qc.createPolicy("lit-html",{createHTML:c=>c}):void 0,Ko="$lit$",ft=`lit$${Math.random().toFixed(9).slice(2)}$`,_o="?"+ft,Fd=`<${_o}>`,$t=document,zi=()=>$t.createComment(""),Hi=c=>c===null||typeof c!="object"&&typeof c!="function",Me=Array.isArray,Zd=c=>Me(c)||typeof c?.[Symbol.iterator]=="function",je=`[ \f\r]`,ji=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,So=/-->/g,To=/>/g,_t=RegExp(`>|${je}(?:([^\\s"'>=/]+)(${je}*=${je}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Do=/'/g,Eo=/"/g,Po=/^(?:script|style|textarea|title)$/i,Ke=c=>(i,...t)=>({_$litType$:c,strings:i,values:t}),A=Ke(1),lF=Ke(2),aF=Ke(3),qt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Mo=new WeakMap,Pt=$t.createTreeWalker($t,129);function $o(c,i){if(!Me(c)||!c.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ho!==void 0?Ho.createHTML(i):i}var Zd=(c,i)=>{let t=c.length-1,e=[],b,o=i===2?"":i===3?"":"",l=ji;for(let a=0;a"?(l=b??ji,m=-1):s[1]===void 0?m=-2:(m=l.lastIndex-s[2].length,r=s[1],l=s[3]===void 0?_t:s[3]==='"'?Eo:Do):l===Eo||l===Do?l=_t:l===So||l===To?l=ji:(l=_t,b=void 0);let d=l===_t&&c[a+1].startsWith("/>")?" ":"";o+=l===ji?n+Gd:m>=0?(e.push(r),n.slice(0,m)+Ko+n.slice(m)+ft+d):n+ft+(m===-2?a:d)}return[$o(c,o+(c[t]||"")+(i===2?"":i===3?"":"")),e]},Si=class c{constructor({strings:i,_$litType$:t},e){let b;this.parts=[];let o=0,l=0,a=i.length-1,n=this.parts,[r,s]=Zd(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&&n.length0){b.textContent=Qc?Qc.emptyScript:"";for(let d=0;d2||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=Wi(this,i,t,0),l=!Hi(i)||i!==this._$AH&&i!==qt,l&&(this._$AH=i);else{let a=i,n,r;for(i=o[0],n=0;n{let e=t?.renderBefore??i,b=e._$litPart$;if(b===void 0){let o=t?.renderBefore??null;e._$litPart$=b=new Ti(i.insertBefore(zi(),o),o,void 0,t??{})}return b._$AI(c),b};async function dt(){return await import("./main.js").then(c=>c.default)}function at(c){return document.querySelector(`meta[name="${c}"]`)?.content}function tt(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(A``),i.push(A`${t}`)}),A`${i}`}function Uc(c){return c.hostname!==window.location.hostname||c.protocol!==window.location.protocol}function qo(c,i){return t(c)===t(i);function t(e){return e.pathname.replace(/\/index\.html$/gi,"/").replace(/\.html$/gi,"").replace(/\/$/gi,"").toLowerCase()}}var Vc=null,yc=null;async function Di(){if(yc)return yc;let c=Pe();try{let i=await fetch(`/${c}/_ui-strings.json`);return!i.ok&&c!=="en"&&(i=await fetch("/en/_ui-strings.json")),i.ok?(yc=await i.json(),yc):(console.warn("UI strings not found"),tl())}catch(i){return console.warn("Failed to load UI strings:",i),tl()}}function tl(){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","footer.button2":"Buy Tabular Editor 3","footer.aboutUs":"About us","footer.career":"Career","footer.newsroom":"Newsroom","footer.contactUs":"Contact us","footer.technicalSupport":"Technical Support","footer.securityTrust":"Security & Trust Center","footer.privacyPolicy":"Privacy policy","footer.cookiePolicy":"Cookie policy","footer.siteTerms":"Site Terms","footer.commercialTerms":"Commercial Terms & Conditions",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 Cd(){if(Vc)return Vc;try{let c=await fetch("/languages.json");return c.ok?(Vc=await c.json(),Vc):(console.warn("Languages manifest not found at /languages.json"),null)}catch(c){return console.warn("Failed to load languages manifest:",c),null}}function Pe(){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 il(c){let i=window.location.pathname,t=window.location.hash,e=window.location.search,b=i.split("/").filter(Boolean);if(b.length>0){let l=b[0].toLowerCase();l.length>=2&&l.length<=5&&/^[a-z-]+$/.test(l)?b[0]=c:b.unshift(c)}else b.push(c);let o="/"+b.join("/");return(i.endsWith("/")||!o.endsWith(".html")&&!o.includes("."))&&(o+="/"),o+e+t}async function Wd(){let c=document.getElementById("language-picker");if(!c)return;let i=await Cd();if(!i||i.languages.length<=1){c.style.display="none";return}let t=Pe(),e=i.languages.find(n=>n.code===t)||i.languages.find(n=>n.default)||i.languages[0],o=(await Di()).selectLanguage||"Select language",l=(n,r)=>{n.preventDefault(),r.code!==t&&(window.location.href=il(r.code))},a=A` +\f\r"'\`<>=]|("|')|))|$)`,"g"),Do=/'/g,Eo=/"/g,Po=/^(?:script|style|textarea|title)$/i,Ke=c=>(i,...t)=>({_$litType$:c,strings:i,values:t}),A=Ke(1),aF=Ke(2),nF=Ke(3),qt=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),Mo=new WeakMap,Pt=$t.createTreeWalker($t,129);function $o(c,i){if(!Me(c)||!c.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ho!==void 0?Ho.createHTML(i):i}var Xd=(c,i)=>{let t=c.length-1,e=[],b,o=i===2?"":i===3?"":"",l=ji;for(let a=0;a"?(l=b??ji,F=-1):r[1]===void 0?F=-2:(F=l.lastIndex-r[2].length,s=r[1],l=r[3]===void 0?_t:r[3]==='"'?Eo:Do):l===Eo||l===Do?l=_t:l===So||l===To?l=ji:(l=_t,b=void 0);let d=l===_t&&c[a+1].startsWith("/>")?" ":"";o+=l===ji?n+Fd:F>=0?(e.push(s),n.slice(0,F)+Ko+n.slice(F)+ft+d):n+ft+(F===-2?a:d)}return[$o(c,o+(c[t]||"")+(i===2?"":i===3?"":"")),e]},Si=class c{constructor({strings:i,_$litType$:t},e){let b;this.parts=[];let o=0,l=0,a=i.length-1,n=this.parts,[s,r]=Xd(i,t);if(this.el=c.createElement(s,e),Pt.currentNode=this.el.content,t===2||t===3){let F=this.el.content.firstChild;F.replaceWith(...F.childNodes)}for(;(b=Pt.nextNode())!==null&&n.length0){b.textContent=Qc?Qc.emptyScript:"";for(let d=0;d2||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=Wi(this,i,t,0),l=!Hi(i)||i!==this._$AH&&i!==qt,l&&(this._$AH=i);else{let a=i,n,s;for(i=o[0],n=0;n{let e=t?.renderBefore??i,b=e._$litPart$;if(b===void 0){let o=t?.renderBefore??null;e._$litPart$=b=new Ti(i.insertBefore(zi(),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 tt(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(A``),i.push(A`${t}`)}),A`${i}`}function Uc(c){return c.hostname!==window.location.hostname||c.protocol!==window.location.protocol}function qo(c,i){return t(c)===t(i);function t(e){return e.pathname.replace(/\/index\.html$/gi,"/").replace(/\.html$/gi,"").replace(/\/$/gi,"").toLowerCase()}}var Vc=null,yc=null;async function Di(){if(yc)return yc;let c=Pe();try{let i=await fetch(`/${c}/_ui-strings.json`);return!i.ok&&c!=="en"&&(i=await fetch("/en/_ui-strings.json")),i.ok?(yc=await i.json(),yc):(console.warn("UI strings not found"),tl())}catch(i){return console.warn("Failed to load UI strings:",i),tl()}}function tl(){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","footer.button2":"Buy Tabular Editor 3","footer.aboutUs":"About us","footer.career":"Career","footer.newsroom":"Newsroom","footer.contactUs":"Contact us","footer.technicalSupport":"Technical Support","footer.securityTrust":"Security & Trust Center","footer.privacyPolicy":"Privacy policy","footer.cookiePolicy":"Cookie policy","footer.siteTerms":"Site Terms","footer.commercialTerms":"Commercial Terms & Conditions",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 Wd(){if(Vc)return Vc;try{let c=await fetch("/languages.json");return c.ok?(Vc=await c.json(),Vc):(console.warn("Languages manifest not found at /languages.json"),null)}catch(c){return console.warn("Failed to load languages manifest:",c),null}}function Pe(){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 il(c){let i=window.location.pathname,t=window.location.hash,e=window.location.search,b=i.split("/").filter(Boolean);if(b.length>0){let l=b[0].toLowerCase();l.length>=2&&l.length<=5&&/^[a-z-]+$/.test(l)?b[0]=c:b.unshift(c)}else b.push(c);let o="/"+b.join("/");return(i.endsWith("/")||!o.endsWith(".html")&&!o.includes("."))&&(o+="/"),o+e+t}async function pd(){let c=document.getElementById("language-picker");if(!c)return;let i=await Wd();if(!i||i.languages.length<=1){c.style.display="none";return}let t=Pe(),e=i.languages.find(n=>n.code===t)||i.languages.find(n=>n.default)||i.languages[0],o=(await Di()).selectLanguage||"Select language",l=(n,s)=>{n.preventDefault(),s.code!==t&&(window.location.href=il(s.code))},a=A` - `;st(a,c)}async function cl(){await Wd()}async function el(){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 bl(){if(Pe()==="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=` + `;dt(a,c)}async function cl(){await pd()}async function el(){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 bl(){if(Pe()==="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 $e(){if(document.querySelectorAll("pre code").length<=0)return;let{default:i}=await import("./es-7I5R37JZ.min.js"),{configureHljs:t}=await dt();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:ud??[]},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 a of l){let n=0,r=0,s=a.match(/^(\d+)-(\d+)?$/);if(s)n=+s[1],r=+s[2],(isNaN(r)||r>o.length)&&(r=o.length);else{if(isNaN(Number(a)))continue;n=+a,r=n}n<=0||r<=0||n>r||n>o.length||(o[n-1]=''+o[n-1],o[r-1]=o[r-1]+"")}e.innerHTML=o.join(` -`)}),await Bd()}var pd=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 Bd(){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=` + `;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 $e(){if(document.querySelectorAll("pre code").length<=0)return;let{default:i}=await import("./es-7I5R37JZ.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:hd??[]},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 a of l){let n=0,s=0,r=a.match(/^(\d+)-(\d+)?$/);if(r)n=+r[1],s=+r[2],(isNaN(s)||s>o.length)&&(s=o.length);else{if(isNaN(Number(a)))continue;n=+a,s=n}n<=0||s<=0||n>s||n>o.length||(o[n-1]=''+o[n-1],o[s-1]=o[s-1]+"")}e.innerHTML=o.join(` +`)}),await ud()}var Bd=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 ud(){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 a=document.createElement("div");a.className="code-container",e.parentNode.insertBefore(a,e),a.appendChild(e),document.querySelectorAll(".tabGroup").length>0?a.closest('[role="tabpanel"]')&&a.insertBefore(l,a.firstChild):a.parentNode.insertBefore(l,a),l.querySelector("button").addEventListener("click",()=>{pd(e.textContent||"");let r=l.querySelector(".successful-copy-alert");r.classList.remove("is-transparent"),setTimeout(()=>{r.classList.add("is-transparent")},2e3)})})}var ud=["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 hd(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 xd(){return localStorage.getItem("theme")||(await dt()).defaultTheme||"auto"}async function ol(){hd(await xd())}function ll(c){return new MutationObserver(()=>c(qe())).observe(document.documentElement,{attributes:!0,attributeFilter:["data-bs-theme"]})}function qe(){return document.documentElement.getAttribute("data-bs-theme")}async function ib(){Qd(),Vd(),yd(),Ad(),fd(),await Promise.all([Ud(),Rd(),tb()]),ll(tb)}async function Rd(){document.querySelectorAll(".math").length>0&&await import("./tex-svg-full-FOZ2BRQF.min.js")}async function tb(){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-RYCBC6YV.min.js"),e=qe()==="dark"?"dark":"default",{mermaid:b}=await dt();t.initialize(Object.assign({startOnLoad:!1,theme:e},b));let o=[];c.forEach(l=>{if(l.offsetParent){o.push(l.parentElement);let a=l.innerHTML;l.parentElement.classList.add("mermaid"),l.parentElement.setAttribute("data-mermaid",a),l.parentElement.innerHTML=a}}),i.forEach(l=>{l.offsetParent&&(l.removeAttribute("data-processed"),l.innerHTML=l.getAttribute("data-mermaid"),o.push(l))}),await t.run({nodes:o})}function Qd(){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 Ud(){let{showLightbox:c}=await dt(),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 Vd(){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 yd(){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 Ad(){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 fd(){m();let c={id:"data-bi-id",name:"data-bi-name",type:"data-bi-type"},i=(function(){function d(g,G,p){this.li=g,this.a=G,this.section=p}return Object.defineProperty(d.prototype,"tabIds",{get:function(){return this.a.getAttribute("data-tab").split(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"condition",{get:function(){return this.a.getAttribute("data-condition")},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.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}),d.prototype.focus=function(){this.a.focus()},d})();t(document.body);function t(d){let g=n(),G=d.querySelectorAll(".tabGroup"),p={groups:[],selectedTabs:[]};for(let B=0;B ul > li > a[data-tab="'+p+'"]:not([hidden])');if(B===null)return;B.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}}function n(){let g=new URLSearchParams(window.location.search).get("tabs");return g?g.split(","):[]}function r(d){let g=new URLSearchParams(window.location.search);g.set("tabs",d.selectedTabs.join());let G=location.protocol+"//"+location.host+location.pathname+"?"+g.toString()+location.hash;location.href!==G&&history.replaceState({},document.title,G)}function s(d,g){for(let G=0,p=d;Gul").forEach(d=>d.classList.add("nav","nav-tabs")),document.querySelectorAll("div.tabGroup>ul>li").forEach(d=>d.classList.add("nav-item")),document.querySelectorAll("div.tabGroup>ul>li>a").forEach(d=>d.classList.add("nav-link")),document.querySelectorAll("div.tabGroup>section").forEach(d=>d.classList.add("card"))}function C(){tb()}}var al={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},nl=c=>(...i)=>({_$litDirective$:c,values:i}),Ac=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=nl(class extends Ac{constructor(c){if(super(c),c.type!==al.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 Gt;async function rl(){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=a=>{console.error("Error occurred at search-worker. message: "+a.message)},t.onmessage=function(a){switch(a.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(a.data.d,0),window.docfx.searchResultReady=!0,c.value===""&&document.body.removeAttribute("data-search");break}},t.postMessage({init:!0});function e(){Gt=c.value,Gt===""?document.body.removeAttribute("data-search"):t.postMessage({q:Gt})}function b(a,n){let r=a.split(/\/+/),s=n.split(/\/+/),m=r.length-1,C=[];for(let d=0;dn)return"..."+a.slice(s-n,s+n)+"...";if(s<=n)return a.slice(0,s+n)+"..."}function l(a,n){let s=Math.ceil(a.length/10);st(m(n),document.getElementById("search-results"));function m(d){if(a.length===0)return A`
${tt("searchNoResults",{query:Gt})}
`;let g=d*10,G=a.slice(g,g+10),p=A` + `;let a=document.createElement("div");a.className="code-container",e.parentNode.insertBefore(a,e),a.appendChild(e),document.querySelectorAll(".tabGroup").length>0?a.closest('[role="tabpanel"]')&&a.insertBefore(l,a.firstChild):a.parentNode.insertBefore(l,a),l.querySelector("button").addEventListener("click",()=>{Bd(e.textContent||"");let s=l.querySelector(".successful-copy-alert");s.classList.remove("is-transparent"),setTimeout(()=>{s.classList.add("is-transparent")},2e3)})})}var hd=["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 xd(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 Rd(){return localStorage.getItem("theme")||(await It()).defaultTheme||"auto"}async function ol(){xd(await Rd())}function ll(c){return new MutationObserver(()=>c(qe())).observe(document.documentElement,{attributes:!0,attributeFilter:["data-bs-theme"]})}function qe(){return document.documentElement.getAttribute("data-bs-theme")}async function ib(){Ud(),yd(),Ad(),fd(),Yd(),await Promise.all([Vd(),Qd(),tb()]),ll(tb)}async function Qd(){document.querySelectorAll(".math").length>0&&await import("./tex-svg-full-FOZ2BRQF.min.js")}async function tb(){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-RYCBC6YV.min.js"),e=qe()==="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 a=l.innerHTML;l.parentElement.classList.add("mermaid"),l.parentElement.setAttribute("data-mermaid",a),l.parentElement.innerHTML=a}}),i.forEach(l=>{l.offsetParent&&(l.removeAttribute("data-processed"),l.innerHTML=l.getAttribute("data-mermaid"),o.push(l))}),await t.run({nodes:o})}function Ud(){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 Vd(){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 yd(){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 Ad(){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 fd(){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 Yd(){F();let c={id:"data-bi-id",name:"data-bi-name",type:"data-bi-type"},i=(function(){function d(g,m,p){this.li=g,this.a=m,this.section=p}return Object.defineProperty(d.prototype,"tabIds",{get:function(){return this.a.getAttribute("data-tab").split(" ")},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"condition",{get:function(){return this.a.getAttribute("data-condition")},enumerable:!0,configurable:!0}),Object.defineProperty(d.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(d.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}),d.prototype.focus=function(){this.a.focus()},d})();t(document.body);function t(d){let g=n(),m=d.querySelectorAll(".tabGroup"),p={groups:[],selectedTabs:[]};for(let B=0;B ul > li > a[data-tab="'+p+'"]:not([hidden])');if(B===null)return;B.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}}function n(){let g=new URLSearchParams(window.location.search).get("tabs");return g?g.split(","):[]}function s(d){let g=new URLSearchParams(window.location.search);g.set("tabs",d.selectedTabs.join());let m=location.protocol+"//"+location.host+location.pathname+"?"+g.toString()+location.hash;location.href!==m&&history.replaceState({},document.title,m)}function r(d,g){for(let m=0,p=d;mul").forEach(d=>d.classList.add("nav","nav-tabs")),document.querySelectorAll("div.tabGroup>ul>li").forEach(d=>d.classList.add("nav-item")),document.querySelectorAll("div.tabGroup>ul>li>a").forEach(d=>d.classList.add("nav-link")),document.querySelectorAll("div.tabGroup>section").forEach(d=>d.classList.add("card"))}function C(){tb()}}var al={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},nl=c=>(...i)=>({_$litDirective$:c,values:i}),Ac=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=nl(class extends Ac{constructor(c){if(super(c),c.type!==al.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 Gt;async function rl(){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=a=>{console.error("Error occurred at search-worker. message: "+a.message)},t.onmessage=function(a){switch(a.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(a.data.d,0),window.docfx.searchResultReady=!0,c.value===""&&document.body.removeAttribute("data-search");break}},t.postMessage({init:!0});function e(){Gt=c.value,Gt===""?document.body.removeAttribute("data-search"):t.postMessage({q:Gt})}function b(a,n){let s=a.split(/\/+/),r=n.split(/\/+/),F=s.length-1,C=[];for(let d=0;dn)return"..."+a.slice(r-n,r+n)+"...";if(r<=n)return a.slice(0,r+n)+"..."}function l(a,n){let r=Math.ceil(a.length/10);dt(F(n),document.getElementById("search-results"));function F(d){if(a.length===0)return A`
${tt("searchNoResults",{query:Gt})}
`;let g=d*10,m=a.slice(g,g+10),p=A`
${tt("searchResultsCount",{count:a.length.toString(),query:Gt})}
-
${G.map(B=>{let h=window.location.href,Q=b(h,i+B.href),Z=i+B.href+"?q="+Gt,X=o(B.summary);return A` +
${m.map(B=>{let h=window.location.href,Q=b(h,i+B.href),Z=i+B.href+"?q="+Gt,X=o(B.summary);return A`
${cb(Q,Gt)}
${cb(X,Gt)}
`})} -
`;return A`${p} ${C()}`}function C(){let g=Math.max(0,Math.min(n-2,s-5)),G=Math.min(s,g+5),p=Array.from(new Array(G-g).keys()).map(h=>h+g);if(p.length<=1)return null;return A` +
`;return A`${p} ${C()}`}function C(){let g=Math.max(0,Math.min(n-2,r-5)),m=Math.min(r,g+5),p=Array.from(new Array(m-g).keys()).map(h=>h+g);if(p.length<=1)return null;return A` `;function B(h){h>=0&&ha.toLowerCase()),b=c.toLowerCase(),o=[],l=0;for(let a=0;a=0&&(o.push(A`${c.slice(l,r)}`),o.push(A`${c.slice(r,r+n.length)}`),l=r+n.length)}return o.push(A`${c.slice(l)}`),A`${o}`}async function dl(){let c=await vd(),i=at("docfx:tocrel");if(!i)return sl(),[];let t=at("docfx:disabletocfilter")==="true",e=new URL(i.replace(/.html$/gi,".json"),window.location.href),b="",o="";if(c.length<=0)return sl(),[];Ld();let l=t?"":localStorage?.getItem("tocFilterUrl")||"",a=t?"":localStorage?.getItem("tocFilter")||"";(l===""||l!==e.toString())&&(a="",t||(localStorage?.setItem("tocFilter",""),localStorage?.setItem("tocFilterUrl",e.toString())));let n=[],r=[];c.forEach(m);let s=document.getElementById("toc");if(s){C();let B=s.querySelectorAll("li.active"),h=B[B.length-1];h&&(h.scrollIntoView({block:"nearest"}),location.hash&&(location.href=location.href))}return r.length>0&&Yd(c,r[0]),n;function m(B){let h;if(B.href){let Q=new URL(B.href,e),Z=B.shortcut??!1;h=Uc(Q)?!1:qo(Q,window.location)&&!Z,h&&(B.items&&(B.expanded=!0),r.push(B))}if(B.items)for(let Q of B.items)m(Q)&&(h=!0,B.expanded=!0);return h?(n.unshift(B),!0):!1}function C(){st(A` + `;function B(h){h>=0&&ha.toLowerCase()),b=c.toLowerCase(),o=[],l=0;for(let a=0;a=0&&(o.push(A`${c.slice(l,s)}`),o.push(A`${c.slice(s,s+n.length)}`),l=s+n.length)}return o.push(A`${c.slice(l)}`),A`${o}`}async function dl(){let c=await Ld(),i=at("docfx:tocrel");if(!i)return sl(),[];let t=at("docfx:disabletocfilter")==="true",e=new URL(i.replace(/.html$/gi,".json"),window.location.href),b="",o="";if(c.length<=0)return sl(),[];Od();let l=t?"":localStorage?.getItem("tocFilterUrl")||"",a=t?"":localStorage?.getItem("tocFilter")||"";(l===""||l!==e.toString())&&(a="",t||(localStorage?.setItem("tocFilter",""),localStorage?.setItem("tocFilterUrl",e.toString())));let n=[],s=[];c.forEach(F);let r=document.getElementById("toc");if(r){C();let B=r.querySelectorAll("li.active"),h=B[B.length-1];h&&(h.scrollIntoView({block:"nearest"}),location.hash&&(location.href=location.href))}return s.length>0&&vd(c,s[0]),n;function F(B){let h;if(B.href){let Q=new URL(B.href,e),Z=B.shortcut??!1;h=Uc(Q)?!1:qo(Q,window.location)&&!Z,h&&(B.items&&(B.expanded=!0),s.push(B))}if(B.items)for(let Q of B.items)F(Q)&&(h=!0,B.expanded=!0);return h?(n.unshift(B),!0):!1}function C(){dt(A` ${g()} -
${d(c,!1)||G()}
- ${p()}`,s)}function d(B,h){let Q=B.map(Z=>{let{href:X,name:u,items:U,expanded:I}=Z;if(!u)return null;let x=!U||U.length<=0,F=h||a!==""&&u.toLowerCase().includes(a.toLowerCase()),R=x?null:d(U,F);if(a!==""&&!R&&!u.toLowerCase().includes(a.toLowerCase())&&!F)return null;let y=X?A`${It(u)}`:x?A`${It(u)}`:A`${It(u)}`,f=a!==""&&I!==!1&&R!=null||I===!0;return A` +
${d(c,!1)||m()}
+ ${p()}`,r)}function d(B,h){let Q=B.map(Z=>{let{href:X,name:u,items:U,expanded:I}=Z;if(!u)return null;let x=!U||U.length<=0,G=h||a!==""&&u.toLowerCase().includes(a.toLowerCase()),R=x?null:d(U,G);if(a!==""&&!R&&!u.toLowerCase().includes(a.toLowerCase())&&!G)return null;let y=X?A`${nt(u)}`:x?A`${nt(u)}`:A`${nt(u)}`,f=a!==""&&I!==!1&&R!=null||I===!0;return A`
  • ${x?null:A``} ${y} @@ -90,14 +90,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
    -
    `;function B(h){a=h.target.value.trim(),localStorage?.setItem("tocFilter",a),C()}}function G(){return a===""?null:A`
    ${tt("searchNoResults",{query:a})}
    `}function p(){return b?A``:null}}function Yd(c,i){let t=document.getElementById("nextArticle");if(!t)return;let e=r(c),b=e.findIndex(s=>s===i),o=e[b-1],l=e[b+1];if(!o&&!l)return;let a=o?A``:null,n=l?A``:null;st(A`${a} ${n}`,t);function r(s){let m=[];for(let C of s)C.href&&m.push(C),C.items&&m.push(...r(C.items));return m}}async function vd(){let c=at("docfx:navrel");if(!c)return[];let i=new URL(c.replace(/.html$/gi,".json"),window.location.href),{items:t}=await fetch(i).then(b=>b.json()),e=at("docfx:rel");for(let b of t){let o=b.tocHref??"";if(o){let r=b.homepage??"";if(r){let s=new URL(e+r,window.location.href);b.href=s.href}else b.href=""}else{b.items=[],b.href=e+b.href;continue}let l=new URL(e+o.replace(/.html$/gi,".json"),window.location.href),a=l.pathname.split("/").slice(0,-1).join("/")+"/",{items:n}=await(await fetch(l)).json();for(let r of n){let s=r.href??r.topicHref??"";if(s){let m=new URL(a+s,window.location.href);r.href=m.href}r.items&&Il(l,a,r.items)}b.items=n}return t}function Il(c,i,t){for(let e of t)e.href&&(e.href=new URL(i+e.href,c).href,e.shortcut=!e.href.includes(i)),e.items&&Il(c,i,e.items)}function sl(){let c=document.getElementById("toc-actionbar");c&&!c.classList.contains("visually-hidden")&&c.classList.add("visually-hidden");let i=document.getElementById("toc-toggler-header");i&&!i.classList.contains("visually-hidden")&&i.classList.add("visually-hidden")}function Ld(){let c=document.getElementById("toc-actionbar");c&&c.classList.contains("visually-hidden")&&c.classList.remove("visually-hidden");let i=document.getElementById("toc-toggler-header");i&&i.classList.contains("visually-hidden")&&i.classList.remove("visually-hidden")}var ml=wc(gl());async function Gl(){let c=document.getElementById("navbar");if(!c)return[];let i=await l(),t=Nd(i),e=a=>A`${It(a.name)}`,b=A` - ${i.map(a=>e(a))}`;async function o(){let a=A``;st(A`${b} ${a}`,c)}return await o(),t?[t]:[];async function l(){let a=at("docfx:navrel");if(!a)return[];let n=new URL(a.replace(/.html$/gi,".json"),window.location.href),{items:r}=await fetch(n).then(s=>s.json());return r.map(s=>"items"in s?{name:s.name,items:s.items.map(m=>({name:m.name,href:new URL(m.href,n)}))}:{name:s.name,href:new URL(s.href,n)})}}function Fl(c){let i=document.getElementById("breadcrumb");i&&st(A` + `;function B(h){a=h.target.value.trim(),localStorage?.setItem("tocFilter",a),C()}}function m(){return a===""?null:A`
    ${tt("searchNoResults",{query:a})}
    `}function p(){return b?A``:null}}function vd(c,i){let t=document.getElementById("nextArticle");if(!t)return;let e=s(c),b=e.findIndex(r=>r===i),o=e[b-1],l=e[b+1];if(!o&&!l)return;let a=o?A``:null,n=l?A``:null;dt(A`${a} ${n}`,t);function s(r){let F=[];for(let C of r)C.href&&F.push(C),C.items&&F.push(...s(C.items));return F}}async function Ld(){let c=at("docfx:navrel");if(!c)return[];let i=new URL(c.replace(/.html$/gi,".json"),window.location.href),{items:t}=await fetch(i).then(b=>b.json()),e=at("docfx:rel");return await Il(t,e),t}async function Il(c,i){for(let t of c){let e=t.tocHref??"";if(!e){t.href=t.href?i+t.href:void 0,t.items&&t.items.length>0?await Il(t.items,i):t.items=[];continue}let b=t.homepage??"";if(b){let n=new URL(i+b,window.location.href);t.href=n.href}else t.href="";let o=new URL(i+e.replace(/.html$/gi,".json"),window.location.href),l=o.pathname.split("/").slice(0,-1).join("/")+"/",{items:a}=await(await fetch(o)).json();for(let n of a){let s=n.href??n.topicHref??"";if(s){let r=new URL(l+s,window.location.href);n.href=r.href}n.items&&gl(o,l,n.items)}t.items=a}}function gl(c,i,t){for(let e of t)e.href&&(e.href=new URL(i+e.href,c).href,e.shortcut=!e.href.includes(i)),e.items&&gl(c,i,e.items)}function sl(){let c=document.getElementById("toc-actionbar");c&&!c.classList.contains("visually-hidden")&&c.classList.add("visually-hidden");let i=document.getElementById("toc-toggler-header");i&&!i.classList.contains("visually-hidden")&&i.classList.add("visually-hidden")}function Od(){let c=document.getElementById("toc-actionbar");c&&c.classList.contains("visually-hidden")&&c.classList.remove("visually-hidden");let i=document.getElementById("toc-toggler-header");i&&i.classList.contains("visually-hidden")&&i.classList.remove("visually-hidden")}var Gl=wc(ml());async function Fl(){let c=document.getElementById("navbar");if(!c)return[];let i=await l(),t=wd(i),e=a=>A`${nt(a.name)}`,b=A` + ${i.map(a=>e(a))}`;async function o(){let a=A``;dt(A`${b} ${a}`,c)}return await o(),t?[t]:[];async function l(){let a=at("docfx:navrel");if(!a)return[];let n=new URL(a.replace(/.html$/gi,".json"),window.location.href),{items:s}=await fetch(n).then(r=>r.json());return s.map(r=>"items"in r?{name:r.name,items:r.items.map(F=>({name:F.name,href:new URL(F.href,n)}))}:{name:r.name,href:new URL(r.href,n)})}}function Zl(c){let i=document.getElementById("breadcrumb");i&&dt(A` `,i)}async function Zl(){let c=Array.from(document.querySelectorAll("article h1")).length>1;await Od(c);let i=document.getElementById("affix");i&&st(Jd(c),i)}async function Od(c){let i=new ml.default,{anchors:t}=await dt();i.options=Object.assign({visible:"hover",icon:"\uE9CB",placement:"left"},t),c?i.add("article h1:not(.no-anchor), article h2:not(.no-anchor), article h3:not(.no-anchor), article h4:not(.no-anchor)"):i.add("article h2:not(.no-anchor), article h3:not(.no-anchor), article h4:not(.no-anchor)"),location.hash&&(location.href=location.href)}function Jd(c){let i=c?"article h1, article h2":"article h2, article h3",t=c?"H1":"H2",e=Array.from(document.querySelectorAll(i));if(e.length>0)return A` + ${c.map(t=>t.href?A`
  • `:A``)} + `,i)}async function Xl(){let c=Array.from(document.querySelectorAll("article h1")).length>1;await Jd(c);let i=document.getElementById("affix");i&&dt(Nd(c),i)}async function Jd(c){let i=new Gl.default,{anchors:t}=await It();i.options=Object.assign({visible:"hover",icon:"\uE9CB",placement:"left"},t),c?i.add("article h1:not(.no-anchor), article h2:not(.no-anchor), article h3:not(.no-anchor), article h4:not(.no-anchor)"):i.add("article h2:not(.no-anchor), article h3:not(.no-anchor), article h4:not(.no-anchor)"),location.hash&&(location.href=location.href)}function Nd(c){let i=c?"article h1, article h2":"article h2, article h3",t=c?"H1":"H2",e=Array.from(document.querySelectorAll(i));if(e.length>0)return A`
    ${tt("inThisArticle")}
    - - `}function Nd(c){let i=new URL(window.location.href),t,e=0;for(let b of c.map(o=>"items"in o?o.items:o).flat()){if(Uc(b.href))continue;let o=wd(i,b.href);o===e?t=void 0:o>e&&(e=o,t=b)}return t}function wd(c,i){let t=c.pathname.split("/"),e=i.pathname.split("/"),b=0;for(;b=0?await Promise.all([ib(),$e()]):(await el(),await Promise.all([ol(),rl(),Zl(),ib(),t(),$e(),cl(),bl()])),window.docfx.ready=!0;async function t(){let[d,g]=await Promise.all([Gl(),dl()]);Fl([...d,...g])}Xl();let e={};function b(d,g){return new ul.default(d,g)}document.querySelectorAll("article a").forEach(d=>{d.querySelector("img")&&b(d,e)});let o=window.pageYOffset||document.documentElement.scrollTop,l="down",a="+80% 0px -10%",n="0px 0px +80%",r=!0,s=(()=>{let d=!1;return function(){d||(window.requestAnimationFrame(()=>{let g=document.getElementById("article");if(!g)return;let G=window.pageYOffset||document.documentElement.scrollTop,p=G>o?"down":"up";p!==l&&(l=p,vc.default.getInstance(g)?.dispose(),vc.default.getOrCreateInstance(g,{target:"#affix",smoothScroll:!1,rootMargin:l==="down"?a:n}).refresh()),o=G<=0?0:G,d=!1}),d=!0)}})();r&&window.addEventListener("scroll",s,{passive:!0});let m=document.getElementById("article");vc.default.getOrCreateInstance(m,{target:"#affix",smoothScroll:!1,rootMargin:a}).refresh()}Ed().catch(console.error); + + `}function wd(c){let i=new URL(window.location.href),t,e=0;for(let b of c.map(o=>"items"in o?o.items:o).flat()){if(Uc(b.href))continue;let o=kd(i,b.href);o===e?t=void 0:o>e&&(e=o,t=b)}return t}function kd(c,i){let t=c.pathname.split("/"),e=i.pathname.split("/"),b=0;for(;b=0?await Promise.all([ib(),$e()]):(await el(),await Promise.all([ol(),rl(),Xl(),ib(),t(),$e(),cl(),bl()])),window.docfx.ready=!0;async function t(){let[d,g]=await Promise.all([Fl(),dl()]);Zl([...d,...g])}Cl();let e={};function b(d,g){return new hl.default(d,g)}document.querySelectorAll("article a").forEach(d=>{d.querySelector("img")&&b(d,e)});let o=window.pageYOffset||document.documentElement.scrollTop,l="down",a="+80% 0px -10%",n="0px 0px +80%",s=!0,r=(()=>{let d=!1;return function(){d||(window.requestAnimationFrame(()=>{let g=document.getElementById("article");if(!g)return;let m=window.pageYOffset||document.documentElement.scrollTop,p=m>o?"down":"up";p!==l&&(l=p,vc.default.getInstance(g)?.dispose(),vc.default.getOrCreateInstance(g,{target:"#affix",smoothScroll:!1,rootMargin:l==="down"?a:n}).refresh()),o=m<=0?0:m,d=!1}),d=!0)}})();s&&window.addEventListener("scroll",r,{passive:!0});let F=document.getElementById("article");vc.default.getOrCreateInstance(F,{target:"#affix",smoothScroll:!1,rootMargin:a}).refresh()}Md().catch(console.error); /*! Bundled license information: bootstrap/js/dist/dom/data.js: diff --git a/templates/tabulareditor/public/docfx.min.js.map b/templates/tabulareditor/public/docfx.min.js.map index 5da6101e1..4065e0cf1 100644 --- a/templates/tabulareditor/public/docfx.min.js.map +++ b/templates/tabulareditor/public/docfx.min.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["../../node_modules/bootstrap/js/src/dom/data.js", "../../node_modules/bootstrap/js/src/util/index.js", "../../node_modules/bootstrap/js/src/dom/event-handler.js", "../../node_modules/bootstrap/js/src/dom/manipulator.js", "../../node_modules/bootstrap/js/src/util/config.js", "../../node_modules/bootstrap/js/src/base-component.js", "../../node_modules/bootstrap/js/src/dom/selector-engine.js", "../../node_modules/bootstrap/js/src/scrollspy.js", "../../node_modules/anchor-js/anchor.js", "../../node_modules/simplelightbox/dist/simple-lightbox.modules.js", "../../node_modules/@popperjs/core/lib/index.js", "../../node_modules/@popperjs/core/lib/enums.js", "../../node_modules/@popperjs/core/lib/dom-utils/getNodeName.js", "../../node_modules/@popperjs/core/lib/dom-utils/getWindow.js", "../../node_modules/@popperjs/core/lib/dom-utils/instanceOf.js", "../../node_modules/@popperjs/core/lib/modifiers/applyStyles.js", "../../node_modules/@popperjs/core/lib/utils/getBasePlacement.js", "../../node_modules/@popperjs/core/lib/utils/math.js", "../../node_modules/@popperjs/core/lib/utils/userAgent.js", "../../node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js", "../../node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js", "../../node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js", "../../node_modules/@popperjs/core/lib/dom-utils/contains.js", "../../node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js", "../../node_modules/@popperjs/core/lib/dom-utils/isTableElement.js", "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js", "../../node_modules/@popperjs/core/lib/dom-utils/getParentNode.js", "../../node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js", "../../node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js", "../../node_modules/@popperjs/core/lib/utils/within.js", "../../node_modules/@popperjs/core/lib/utils/getFreshSideObject.js", "../../node_modules/@popperjs/core/lib/utils/mergePaddingObject.js", "../../node_modules/@popperjs/core/lib/utils/expandToHashMap.js", "../../node_modules/@popperjs/core/lib/modifiers/arrow.js", "../../node_modules/@popperjs/core/lib/utils/getVariation.js", "../../node_modules/@popperjs/core/lib/modifiers/computeStyles.js", "../../node_modules/@popperjs/core/lib/modifiers/eventListeners.js", "../../node_modules/@popperjs/core/lib/utils/getOppositePlacement.js", "../../node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js", "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js", "../../node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js", "../../node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js", "../../node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js", "../../node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js", "../../node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js", "../../node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js", "../../node_modules/@popperjs/core/lib/utils/rectToClientRect.js", "../../node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js", "../../node_modules/@popperjs/core/lib/utils/computeOffsets.js", "../../node_modules/@popperjs/core/lib/utils/detectOverflow.js", "../../node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js", "../../node_modules/@popperjs/core/lib/modifiers/flip.js", "../../node_modules/@popperjs/core/lib/modifiers/hide.js", "../../node_modules/@popperjs/core/lib/modifiers/offset.js", "../../node_modules/@popperjs/core/lib/modifiers/popperOffsets.js", "../../node_modules/@popperjs/core/lib/utils/getAltAxis.js", "../../node_modules/@popperjs/core/lib/modifiers/preventOverflow.js", "../../node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js", "../../node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js", "../../node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js", "../../node_modules/@popperjs/core/lib/utils/orderModifiers.js", "../../node_modules/@popperjs/core/lib/utils/debounce.js", "../../node_modules/@popperjs/core/lib/utils/mergeByName.js", "../../node_modules/@popperjs/core/lib/createPopper.js", "../../node_modules/@popperjs/core/lib/popper-lite.js", "../../node_modules/@popperjs/core/lib/popper.js", "../../node_modules/bootstrap/js/src/dom/data.js", "../../node_modules/bootstrap/js/src/util/index.js", "../../node_modules/bootstrap/js/src/dom/event-handler.js", "../../node_modules/bootstrap/js/src/dom/manipulator.js", "../../node_modules/bootstrap/js/src/util/config.js", "../../node_modules/bootstrap/js/src/base-component.js", "../../node_modules/bootstrap/js/src/dom/selector-engine.js", "../../node_modules/bootstrap/js/src/util/component-functions.js", "../../node_modules/bootstrap/js/src/alert.js", "../../node_modules/bootstrap/js/src/button.js", "../../node_modules/bootstrap/js/src/util/swipe.js", "../../node_modules/bootstrap/js/src/carousel.js", "../../node_modules/bootstrap/js/src/collapse.js", "../../node_modules/bootstrap/js/src/dropdown.js", "../../node_modules/bootstrap/js/src/util/backdrop.js", "../../node_modules/bootstrap/js/src/util/focustrap.js", "../../node_modules/bootstrap/js/src/util/scrollbar.js", "../../node_modules/bootstrap/js/src/modal.js", "../../node_modules/bootstrap/js/src/offcanvas.js", "../../node_modules/bootstrap/js/src/util/sanitizer.js", "../../node_modules/bootstrap/js/src/util/template-factory.js", "../../node_modules/bootstrap/js/src/tooltip.js", "../../node_modules/bootstrap/js/src/popover.js", "../../node_modules/bootstrap/js/src/scrollspy.js", "../../node_modules/bootstrap/js/src/tab.js", "../../node_modules/bootstrap/js/src/toast.js", "../src/docfx.ts", "../../node_modules/lit-html/src/lit-html.ts", "../src/helper.ts", "../src/language.ts", "../src/highlight.ts", "../src/theme.ts", "../src/markdown.ts", "../../node_modules/lit-html/src/directive.ts", "../../node_modules/lit-html/src/directives/class-map.ts", "../src/search.ts", "../src/toc.ts", "../src/nav.ts", "../src/hubspot/modules/site-header.ts"], - "sourcesContent": ["/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/data.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\n/**\n * Constants\n */\n\nconst elementMap = new Map()\n\nexport default {\n set(element, key, instance) {\n if (!elementMap.has(element)) {\n elementMap.set(element, new Map())\n }\n\n const instanceMap = elementMap.get(element)\n\n // make it clear we only want one instance per element\n // can be removed later when multiple key/instances are fine to be used\n if (!instanceMap.has(key) && instanceMap.size !== 0) {\n // eslint-disable-next-line no-console\n console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`)\n return\n }\n\n instanceMap.set(key, instance)\n },\n\n get(element, key) {\n if (elementMap.has(element)) {\n return elementMap.get(element).get(key) || null\n }\n\n return null\n },\n\n remove(element, key) {\n if (!elementMap.has(element)) {\n return\n }\n\n const instanceMap = elementMap.get(element)\n\n instanceMap.delete(key)\n\n // free up element references if there are no instances left for an element\n if (instanceMap.size === 0) {\n elementMap.delete(element)\n }\n }\n}\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap util/index.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nconst MAX_UID = 1_000_000\nconst MILLISECONDS_MULTIPLIER = 1000\nconst TRANSITION_END = 'transitionend'\n\n/**\n * Properly escape IDs selectors to handle weird IDs\n * @param {string} selector\n * @returns {string}\n */\nconst parseSelector = selector => {\n if (selector && window.CSS && window.CSS.escape) {\n // document.querySelector needs escaping to handle IDs (html5+) containing for instance /\n selector = selector.replace(/#([^\\s\"#']+)/g, (match, id) => `#${CSS.escape(id)}`)\n }\n\n return selector\n}\n\n// Shout-out Angus Croll (https://goo.gl/pxwQGp)\nconst toType = object => {\n if (object === null || object === undefined) {\n return `${object}`\n }\n\n return Object.prototype.toString.call(object).match(/\\s([a-z]+)/i)[1].toLowerCase()\n}\n\n/**\n * Public Util API\n */\n\nconst getUID = prefix => {\n do {\n prefix += Math.floor(Math.random() * MAX_UID)\n } while (document.getElementById(prefix))\n\n return prefix\n}\n\nconst getTransitionDurationFromElement = element => {\n if (!element) {\n return 0\n }\n\n // Get transition-duration of the element\n let { transitionDuration, transitionDelay } = window.getComputedStyle(element)\n\n const floatTransitionDuration = Number.parseFloat(transitionDuration)\n const floatTransitionDelay = Number.parseFloat(transitionDelay)\n\n // Return 0 if element or transition duration is not found\n if (!floatTransitionDuration && !floatTransitionDelay) {\n return 0\n }\n\n // If multiple durations are defined, take the first\n transitionDuration = transitionDuration.split(',')[0]\n transitionDelay = transitionDelay.split(',')[0]\n\n return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER\n}\n\nconst triggerTransitionEnd = element => {\n element.dispatchEvent(new Event(TRANSITION_END))\n}\n\nconst isElement = object => {\n if (!object || typeof object !== 'object') {\n return false\n }\n\n if (typeof object.jquery !== 'undefined') {\n object = object[0]\n }\n\n return typeof object.nodeType !== 'undefined'\n}\n\nconst getElement = object => {\n // it's a jQuery object or a node element\n if (isElement(object)) {\n return object.jquery ? object[0] : object\n }\n\n if (typeof object === 'string' && object.length > 0) {\n return document.querySelector(parseSelector(object))\n }\n\n return null\n}\n\nconst isVisible = element => {\n if (!isElement(element) || element.getClientRects().length === 0) {\n return false\n }\n\n const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible'\n // Handle `details` element as its content may falsie appear visible when it is closed\n const closedDetails = element.closest('details:not([open])')\n\n if (!closedDetails) {\n return elementIsVisible\n }\n\n if (closedDetails !== element) {\n const summary = element.closest('summary')\n if (summary && summary.parentNode !== closedDetails) {\n return false\n }\n\n if (summary === null) {\n return false\n }\n }\n\n return elementIsVisible\n}\n\nconst isDisabled = element => {\n if (!element || element.nodeType !== Node.ELEMENT_NODE) {\n return true\n }\n\n if (element.classList.contains('disabled')) {\n return true\n }\n\n if (typeof element.disabled !== 'undefined') {\n return element.disabled\n }\n\n return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false'\n}\n\nconst findShadowRoot = element => {\n if (!document.documentElement.attachShadow) {\n return null\n }\n\n // Can find the shadow root otherwise it'll return the document\n if (typeof element.getRootNode === 'function') {\n const root = element.getRootNode()\n return root instanceof ShadowRoot ? root : null\n }\n\n if (element instanceof ShadowRoot) {\n return element\n }\n\n // when we don't find a shadow root\n if (!element.parentNode) {\n return null\n }\n\n return findShadowRoot(element.parentNode)\n}\n\nconst noop = () => {}\n\n/**\n * Trick to restart an element's animation\n *\n * @param {HTMLElement} element\n * @return void\n *\n * @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation\n */\nconst reflow = element => {\n element.offsetHeight // eslint-disable-line no-unused-expressions\n}\n\nconst getjQuery = () => {\n if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {\n return window.jQuery\n }\n\n return null\n}\n\nconst DOMContentLoadedCallbacks = []\n\nconst onDOMContentLoaded = callback => {\n if (document.readyState === 'loading') {\n // add listener on the first call when the document is in loading state\n if (!DOMContentLoadedCallbacks.length) {\n document.addEventListener('DOMContentLoaded', () => {\n for (const callback of DOMContentLoadedCallbacks) {\n callback()\n }\n })\n }\n\n DOMContentLoadedCallbacks.push(callback)\n } else {\n callback()\n }\n}\n\nconst isRTL = () => document.documentElement.dir === 'rtl'\n\nconst defineJQueryPlugin = plugin => {\n onDOMContentLoaded(() => {\n const $ = getjQuery()\n /* istanbul ignore if */\n if ($) {\n const name = plugin.NAME\n const JQUERY_NO_CONFLICT = $.fn[name]\n $.fn[name] = plugin.jQueryInterface\n $.fn[name].Constructor = plugin\n $.fn[name].noConflict = () => {\n $.fn[name] = JQUERY_NO_CONFLICT\n return plugin.jQueryInterface\n }\n }\n })\n}\n\nconst execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {\n return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue\n}\n\nconst executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {\n if (!waitForTransition) {\n execute(callback)\n return\n }\n\n const durationPadding = 5\n const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding\n\n let called = false\n\n const handler = ({ target }) => {\n if (target !== transitionElement) {\n return\n }\n\n called = true\n transitionElement.removeEventListener(TRANSITION_END, handler)\n execute(callback)\n }\n\n transitionElement.addEventListener(TRANSITION_END, handler)\n setTimeout(() => {\n if (!called) {\n triggerTransitionEnd(transitionElement)\n }\n }, emulatedDuration)\n}\n\n/**\n * Return the previous/next element of a list.\n *\n * @param {array} list The list of elements\n * @param activeElement The active element\n * @param shouldGetNext Choose to get next or previous element\n * @param isCycleAllowed\n * @return {Element|elem} The proper element\n */\nconst getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {\n const listLength = list.length\n let index = list.indexOf(activeElement)\n\n // if the element does not exist in the list return an element\n // depending on the direction and if cycle is allowed\n if (index === -1) {\n return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0]\n }\n\n index += shouldGetNext ? 1 : -1\n\n if (isCycleAllowed) {\n index = (index + listLength) % listLength\n }\n\n return list[Math.max(0, Math.min(index, listLength - 1))]\n}\n\nexport {\n defineJQueryPlugin,\n execute,\n executeAfterTransition,\n findShadowRoot,\n getElement,\n getjQuery,\n getNextActiveElement,\n getTransitionDurationFromElement,\n getUID,\n isDisabled,\n isElement,\n isRTL,\n isVisible,\n noop,\n onDOMContentLoaded,\n parseSelector,\n reflow,\n triggerTransitionEnd,\n toType\n}\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/event-handler.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { getjQuery } from '../util/index.js'\n\n/**\n * Constants\n */\n\nconst namespaceRegex = /[^.]*(?=\\..*)\\.|.*/\nconst stripNameRegex = /\\..*/\nconst stripUidRegex = /::\\d+$/\nconst eventRegistry = {} // Events storage\nlet uidEvent = 1\nconst customEvents = {\n mouseenter: 'mouseover',\n mouseleave: 'mouseout'\n}\n\nconst nativeEvents = new Set([\n 'click',\n 'dblclick',\n 'mouseup',\n 'mousedown',\n 'contextmenu',\n 'mousewheel',\n 'DOMMouseScroll',\n 'mouseover',\n 'mouseout',\n 'mousemove',\n 'selectstart',\n 'selectend',\n 'keydown',\n 'keypress',\n 'keyup',\n 'orientationchange',\n 'touchstart',\n 'touchmove',\n 'touchend',\n 'touchcancel',\n 'pointerdown',\n 'pointermove',\n 'pointerup',\n 'pointerleave',\n 'pointercancel',\n 'gesturestart',\n 'gesturechange',\n 'gestureend',\n 'focus',\n 'blur',\n 'change',\n 'reset',\n 'select',\n 'submit',\n 'focusin',\n 'focusout',\n 'load',\n 'unload',\n 'beforeunload',\n 'resize',\n 'move',\n 'DOMContentLoaded',\n 'readystatechange',\n 'error',\n 'abort',\n 'scroll'\n])\n\n/**\n * Private methods\n */\n\nfunction makeEventUid(element, uid) {\n return (uid && `${uid}::${uidEvent++}`) || element.uidEvent || uidEvent++\n}\n\nfunction getElementEvents(element) {\n const uid = makeEventUid(element)\n\n element.uidEvent = uid\n eventRegistry[uid] = eventRegistry[uid] || {}\n\n return eventRegistry[uid]\n}\n\nfunction bootstrapHandler(element, fn) {\n return function handler(event) {\n hydrateObj(event, { delegateTarget: element })\n\n if (handler.oneOff) {\n EventHandler.off(element, event.type, fn)\n }\n\n return fn.apply(element, [event])\n }\n}\n\nfunction bootstrapDelegationHandler(element, selector, fn) {\n return function handler(event) {\n const domElements = element.querySelectorAll(selector)\n\n for (let { target } = event; target && target !== this; target = target.parentNode) {\n for (const domElement of domElements) {\n if (domElement !== target) {\n continue\n }\n\n hydrateObj(event, { delegateTarget: target })\n\n if (handler.oneOff) {\n EventHandler.off(element, event.type, selector, fn)\n }\n\n return fn.apply(target, [event])\n }\n }\n }\n}\n\nfunction findHandler(events, callable, delegationSelector = null) {\n return Object.values(events)\n .find(event => event.callable === callable && event.delegationSelector === delegationSelector)\n}\n\nfunction normalizeParameters(originalTypeEvent, handler, delegationFunction) {\n const isDelegated = typeof handler === 'string'\n // TODO: tooltip passes `false` instead of selector, so we need to check\n const callable = isDelegated ? delegationFunction : (handler || delegationFunction)\n let typeEvent = getTypeEvent(originalTypeEvent)\n\n if (!nativeEvents.has(typeEvent)) {\n typeEvent = originalTypeEvent\n }\n\n return [isDelegated, callable, typeEvent]\n}\n\nfunction addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return\n }\n\n let [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction)\n\n // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position\n // this prevents the handler from being dispatched the same way as mouseover or mouseout does\n if (originalTypeEvent in customEvents) {\n const wrapFunction = fn => {\n return function (event) {\n if (!event.relatedTarget || (event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget))) {\n return fn.call(this, event)\n }\n }\n }\n\n callable = wrapFunction(callable)\n }\n\n const events = getElementEvents(element)\n const handlers = events[typeEvent] || (events[typeEvent] = {})\n const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null)\n\n if (previousFunction) {\n previousFunction.oneOff = previousFunction.oneOff && oneOff\n\n return\n }\n\n const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''))\n const fn = isDelegated ?\n bootstrapDelegationHandler(element, handler, callable) :\n bootstrapHandler(element, callable)\n\n fn.delegationSelector = isDelegated ? handler : null\n fn.callable = callable\n fn.oneOff = oneOff\n fn.uidEvent = uid\n handlers[uid] = fn\n\n element.addEventListener(typeEvent, fn, isDelegated)\n}\n\nfunction removeHandler(element, events, typeEvent, handler, delegationSelector) {\n const fn = findHandler(events[typeEvent], handler, delegationSelector)\n\n if (!fn) {\n return\n }\n\n element.removeEventListener(typeEvent, fn, Boolean(delegationSelector))\n delete events[typeEvent][fn.uidEvent]\n}\n\nfunction removeNamespacedHandlers(element, events, typeEvent, namespace) {\n const storeElementEvent = events[typeEvent] || {}\n\n for (const [handlerKey, event] of Object.entries(storeElementEvent)) {\n if (handlerKey.includes(namespace)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector)\n }\n }\n}\n\nfunction getTypeEvent(event) {\n // allow to get the native events from namespaced events ('click.bs.button' --> 'click')\n event = event.replace(stripNameRegex, '')\n return customEvents[event] || event\n}\n\nconst EventHandler = {\n on(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, false)\n },\n\n one(element, event, handler, delegationFunction) {\n addHandler(element, event, handler, delegationFunction, true)\n },\n\n off(element, originalTypeEvent, handler, delegationFunction) {\n if (typeof originalTypeEvent !== 'string' || !element) {\n return\n }\n\n const [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction)\n const inNamespace = typeEvent !== originalTypeEvent\n const events = getElementEvents(element)\n const storeElementEvent = events[typeEvent] || {}\n const isNamespace = originalTypeEvent.startsWith('.')\n\n if (typeof callable !== 'undefined') {\n // Simplest case: handler is passed, remove that listener ONLY.\n if (!Object.keys(storeElementEvent).length) {\n return\n }\n\n removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null)\n return\n }\n\n if (isNamespace) {\n for (const elementEvent of Object.keys(events)) {\n removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1))\n }\n }\n\n for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {\n const handlerKey = keyHandlers.replace(stripUidRegex, '')\n\n if (!inNamespace || originalTypeEvent.includes(handlerKey)) {\n removeHandler(element, events, typeEvent, event.callable, event.delegationSelector)\n }\n }\n },\n\n trigger(element, event, args) {\n if (typeof event !== 'string' || !element) {\n return null\n }\n\n const $ = getjQuery()\n const typeEvent = getTypeEvent(event)\n const inNamespace = event !== typeEvent\n\n let jQueryEvent = null\n let bubbles = true\n let nativeDispatch = true\n let defaultPrevented = false\n\n if (inNamespace && $) {\n jQueryEvent = $.Event(event, args)\n\n $(element).trigger(jQueryEvent)\n bubbles = !jQueryEvent.isPropagationStopped()\n nativeDispatch = !jQueryEvent.isImmediatePropagationStopped()\n defaultPrevented = jQueryEvent.isDefaultPrevented()\n }\n\n const evt = hydrateObj(new Event(event, { bubbles, cancelable: true }), args)\n\n if (defaultPrevented) {\n evt.preventDefault()\n }\n\n if (nativeDispatch) {\n element.dispatchEvent(evt)\n }\n\n if (evt.defaultPrevented && jQueryEvent) {\n jQueryEvent.preventDefault()\n }\n\n return evt\n }\n}\n\nfunction hydrateObj(obj, meta = {}) {\n for (const [key, value] of Object.entries(meta)) {\n try {\n obj[key] = value\n } catch {\n Object.defineProperty(obj, key, {\n configurable: true,\n get() {\n return value\n }\n })\n }\n }\n\n return obj\n}\n\nexport default EventHandler\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/manipulator.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nfunction normalizeData(value) {\n if (value === 'true') {\n return true\n }\n\n if (value === 'false') {\n return false\n }\n\n if (value === Number(value).toString()) {\n return Number(value)\n }\n\n if (value === '' || value === 'null') {\n return null\n }\n\n if (typeof value !== 'string') {\n return value\n }\n\n try {\n return JSON.parse(decodeURIComponent(value))\n } catch {\n return value\n }\n}\n\nfunction normalizeDataKey(key) {\n return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`)\n}\n\nconst Manipulator = {\n setDataAttribute(element, key, value) {\n element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value)\n },\n\n removeDataAttribute(element, key) {\n element.removeAttribute(`data-bs-${normalizeDataKey(key)}`)\n },\n\n getDataAttributes(element) {\n if (!element) {\n return {}\n }\n\n const attributes = {}\n const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'))\n\n for (const key of bsKeys) {\n let pureKey = key.replace(/^bs/, '')\n pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1)\n attributes[pureKey] = normalizeData(element.dataset[key])\n }\n\n return attributes\n },\n\n getDataAttribute(element, key) {\n return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n }\n}\n\nexport default Manipulator\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap util/config.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Manipulator from '../dom/manipulator.js'\nimport { isElement, toType } from './index.js'\n\n/**\n * Class definition\n */\n\nclass Config {\n // Getters\n static get Default() {\n return {}\n }\n\n static get DefaultType() {\n return {}\n }\n\n static get NAME() {\n throw new Error('You have to implement the static method \"NAME\", for each component!')\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config)\n config = this._configAfterMerge(config)\n this._typeCheckConfig(config)\n return config\n }\n\n _configAfterMerge(config) {\n return config\n }\n\n _mergeConfigObj(config, element) {\n const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {} // try to parse\n\n return {\n ...this.constructor.Default,\n ...(typeof jsonConfig === 'object' ? jsonConfig : {}),\n ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),\n ...(typeof config === 'object' ? config : {})\n }\n }\n\n _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {\n for (const [property, expectedTypes] of Object.entries(configTypes)) {\n const value = config[property]\n const valueType = isElement(value) ? 'element' : toType(value)\n\n if (!new RegExp(expectedTypes).test(valueType)) {\n throw new TypeError(\n `${this.constructor.NAME.toUpperCase()}: Option \"${property}\" provided type \"${valueType}\" but expected type \"${expectedTypes}\".`\n )\n }\n }\n }\n}\n\nexport default Config\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap base-component.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport Data from './dom/data.js'\nimport EventHandler from './dom/event-handler.js'\nimport Config from './util/config.js'\nimport { executeAfterTransition, getElement } from './util/index.js'\n\n/**\n * Constants\n */\n\nconst VERSION = '5.3.8'\n\n/**\n * Class definition\n */\n\nclass BaseComponent extends Config {\n constructor(element, config) {\n super()\n\n element = getElement(element)\n if (!element) {\n return\n }\n\n this._element = element\n this._config = this._getConfig(config)\n\n Data.set(this._element, this.constructor.DATA_KEY, this)\n }\n\n // Public\n dispose() {\n Data.remove(this._element, this.constructor.DATA_KEY)\n EventHandler.off(this._element, this.constructor.EVENT_KEY)\n\n for (const propertyName of Object.getOwnPropertyNames(this)) {\n this[propertyName] = null\n }\n }\n\n // Private\n _queueCallback(callback, element, isAnimated = true) {\n executeAfterTransition(callback, element, isAnimated)\n }\n\n _getConfig(config) {\n config = this._mergeConfigObj(config, this._element)\n config = this._configAfterMerge(config)\n this._typeCheckConfig(config)\n return config\n }\n\n // Static\n static getInstance(element) {\n return Data.get(getElement(element), this.DATA_KEY)\n }\n\n static getOrCreateInstance(element, config = {}) {\n return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null)\n }\n\n static get VERSION() {\n return VERSION\n }\n\n static get DATA_KEY() {\n return `bs.${this.NAME}`\n }\n\n static get EVENT_KEY() {\n return `.${this.DATA_KEY}`\n }\n\n static eventName(name) {\n return `${name}${this.EVENT_KEY}`\n }\n}\n\nexport default BaseComponent\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap dom/selector-engine.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport { isDisabled, isVisible, parseSelector } from '../util/index.js'\n\nconst getSelector = element => {\n let selector = element.getAttribute('data-bs-target')\n\n if (!selector || selector === '#') {\n let hrefAttribute = element.getAttribute('href')\n\n // The only valid content that could double as a selector are IDs or classes,\n // so everything starting with `#` or `.`. If a \"real\" URL is used as the selector,\n // `document.querySelector` will rightfully complain it is invalid.\n // See https://github.com/twbs/bootstrap/issues/32273\n if (!hrefAttribute || (!hrefAttribute.includes('#') && !hrefAttribute.startsWith('.'))) {\n return null\n }\n\n // Just in case some CMS puts out a full URL with the anchor appended\n if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {\n hrefAttribute = `#${hrefAttribute.split('#')[1]}`\n }\n\n selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null\n }\n\n return selector ? selector.split(',').map(sel => parseSelector(sel)).join(',') : null\n}\n\nconst SelectorEngine = {\n find(selector, element = document.documentElement) {\n return [].concat(...Element.prototype.querySelectorAll.call(element, selector))\n },\n\n findOne(selector, element = document.documentElement) {\n return Element.prototype.querySelector.call(element, selector)\n },\n\n children(element, selector) {\n return [].concat(...element.children).filter(child => child.matches(selector))\n },\n\n parents(element, selector) {\n const parents = []\n let ancestor = element.parentNode.closest(selector)\n\n while (ancestor) {\n parents.push(ancestor)\n ancestor = ancestor.parentNode.closest(selector)\n }\n\n return parents\n },\n\n prev(element, selector) {\n let previous = element.previousElementSibling\n\n while (previous) {\n if (previous.matches(selector)) {\n return [previous]\n }\n\n previous = previous.previousElementSibling\n }\n\n return []\n },\n // TODO: this is now unused; remove later along with prev()\n next(element, selector) {\n let next = element.nextElementSibling\n\n while (next) {\n if (next.matches(selector)) {\n return [next]\n }\n\n next = next.nextElementSibling\n }\n\n return []\n },\n\n focusableChildren(element) {\n const focusables = [\n 'a',\n 'button',\n 'input',\n 'textarea',\n 'select',\n 'details',\n '[tabindex]',\n '[contenteditable=\"true\"]'\n ].map(selector => `${selector}:not([tabindex^=\"-\"])`).join(',')\n\n return this.find(focusables, element).filter(el => !isDisabled(el) && isVisible(el))\n },\n\n getSelectorFromElement(element) {\n const selector = getSelector(element)\n\n if (selector) {\n return SelectorEngine.findOne(selector) ? selector : null\n }\n\n return null\n },\n\n getElementFromSelector(element) {\n const selector = getSelector(element)\n\n return selector ? SelectorEngine.findOne(selector) : null\n },\n\n getMultipleElementsFromSelector(element) {\n const selector = getSelector(element)\n\n return selector ? SelectorEngine.find(selector) : []\n }\n}\n\nexport default SelectorEngine\n", "/**\n * --------------------------------------------------------------------------\n * Bootstrap scrollspy.js\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n * --------------------------------------------------------------------------\n */\n\nimport BaseComponent from './base-component.js'\nimport EventHandler from './dom/event-handler.js'\nimport SelectorEngine from './dom/selector-engine.js'\nimport {\n defineJQueryPlugin, getElement, isDisabled, isVisible\n} from './util/index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'scrollspy'\nconst DATA_KEY = 'bs.scrollspy'\nconst EVENT_KEY = `.${DATA_KEY}`\nconst DATA_API_KEY = '.data-api'\n\nconst EVENT_ACTIVATE = `activate${EVENT_KEY}`\nconst EVENT_CLICK = `click${EVENT_KEY}`\nconst EVENT_LOAD_DATA_API = `load${EVENT_KEY}${DATA_API_KEY}`\n\nconst CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item'\nconst CLASS_NAME_ACTIVE = 'active'\n\nconst SELECTOR_DATA_SPY = '[data-bs-spy=\"scroll\"]'\nconst SELECTOR_TARGET_LINKS = '[href]'\nconst SELECTOR_NAV_LIST_GROUP = '.nav, .list-group'\nconst SELECTOR_NAV_LINKS = '.nav-link'\nconst SELECTOR_NAV_ITEMS = '.nav-item'\nconst SELECTOR_LIST_ITEMS = '.list-group-item'\nconst SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`\nconst SELECTOR_DROPDOWN = '.dropdown'\nconst SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle'\n\nconst Default = {\n offset: null, // TODO: v6 @deprecated, keep it for backwards compatibility reasons\n rootMargin: '0px 0px -25%',\n smoothScroll: false,\n target: null,\n threshold: [0.1, 0.5, 1]\n}\n\nconst DefaultType = {\n offset: '(number|null)', // TODO v6 @deprecated, keep it for backwards compatibility reasons\n rootMargin: 'string',\n smoothScroll: 'boolean',\n target: 'element',\n threshold: 'array'\n}\n\n/**\n * Class definition\n */\n\nclass ScrollSpy extends BaseComponent {\n constructor(element, config) {\n super(element, config)\n\n // this._element is the observablesContainer and config.target the menu links wrapper\n this._targetLinks = new Map()\n this._observableSections = new Map()\n this._rootElement = getComputedStyle(this._element).overflowY === 'visible' ? null : this._element\n this._activeTarget = null\n this._observer = null\n this._previousScrollData = {\n visibleEntryTop: 0,\n parentScrollTop: 0\n }\n this.refresh() // initialize\n }\n\n // Getters\n static get Default() {\n return Default\n }\n\n static get DefaultType() {\n return DefaultType\n }\n\n static get NAME() {\n return NAME\n }\n\n // Public\n refresh() {\n this._initializeTargetsAndObservables()\n this._maybeEnableSmoothScroll()\n\n if (this._observer) {\n this._observer.disconnect()\n } else {\n this._observer = this._getNewObserver()\n }\n\n for (const section of this._observableSections.values()) {\n this._observer.observe(section)\n }\n }\n\n dispose() {\n this._observer.disconnect()\n super.dispose()\n }\n\n // Private\n _configAfterMerge(config) {\n // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case\n config.target = getElement(config.target) || document.body\n\n // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only\n config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin\n\n if (typeof config.threshold === 'string') {\n config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value))\n }\n\n return config\n }\n\n _maybeEnableSmoothScroll() {\n if (!this._config.smoothScroll) {\n return\n }\n\n // unregister any previous listeners\n EventHandler.off(this._config.target, EVENT_CLICK)\n\n EventHandler.on(this._config.target, EVENT_CLICK, SELECTOR_TARGET_LINKS, event => {\n const observableSection = this._observableSections.get(event.target.hash)\n if (observableSection) {\n event.preventDefault()\n const root = this._rootElement || window\n const height = observableSection.offsetTop - this._element.offsetTop\n if (root.scrollTo) {\n root.scrollTo({ top: height, behavior: 'smooth' })\n return\n }\n\n // Chrome 60 doesn't support `scrollTo`\n root.scrollTop = height\n }\n })\n }\n\n _getNewObserver() {\n const options = {\n root: this._rootElement,\n threshold: this._config.threshold,\n rootMargin: this._config.rootMargin\n }\n\n return new IntersectionObserver(entries => this._observerCallback(entries), options)\n }\n\n // The logic of selection\n _observerCallback(entries) {\n const targetElement = entry => this._targetLinks.get(`#${entry.target.id}`)\n const activate = entry => {\n this._previousScrollData.visibleEntryTop = entry.target.offsetTop\n this._process(targetElement(entry))\n }\n\n const parentScrollTop = (this._rootElement || document.documentElement).scrollTop\n const userScrollsDown = parentScrollTop >= this._previousScrollData.parentScrollTop\n this._previousScrollData.parentScrollTop = parentScrollTop\n\n for (const entry of entries) {\n if (!entry.isIntersecting) {\n this._activeTarget = null\n this._clearActiveClass(targetElement(entry))\n\n continue\n }\n\n const entryIsLowerThanPrevious = entry.target.offsetTop >= this._previousScrollData.visibleEntryTop\n // if we are scrolling down, pick the bigger offsetTop\n if (userScrollsDown && entryIsLowerThanPrevious) {\n activate(entry)\n // if parent isn't scrolled, let's keep the first visible item, breaking the iteration\n if (!parentScrollTop) {\n return\n }\n\n continue\n }\n\n // if we are scrolling up, pick the smallest offsetTop\n if (!userScrollsDown && !entryIsLowerThanPrevious) {\n activate(entry)\n }\n }\n }\n\n _initializeTargetsAndObservables() {\n this._targetLinks = new Map()\n this._observableSections = new Map()\n\n const targetLinks = SelectorEngine.find(SELECTOR_TARGET_LINKS, this._config.target)\n\n for (const anchor of targetLinks) {\n // ensure that the anchor has an id and is not disabled\n if (!anchor.hash || isDisabled(anchor)) {\n continue\n }\n\n const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element)\n\n // ensure that the observableSection exists & is visible\n if (isVisible(observableSection)) {\n this._targetLinks.set(decodeURI(anchor.hash), anchor)\n this._observableSections.set(anchor.hash, observableSection)\n }\n }\n }\n\n _process(target) {\n if (this._activeTarget === target) {\n return\n }\n\n this._clearActiveClass(this._config.target)\n this._activeTarget = target\n target.classList.add(CLASS_NAME_ACTIVE)\n this._activateParents(target)\n\n EventHandler.trigger(this._element, EVENT_ACTIVATE, { relatedTarget: target })\n }\n\n _activateParents(target) {\n // Activate dropdown parents\n if (target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {\n SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE, target.closest(SELECTOR_DROPDOWN))\n .classList.add(CLASS_NAME_ACTIVE)\n return\n }\n\n for (const listGroup of SelectorEngine.parents(target, SELECTOR_NAV_LIST_GROUP)) {\n // Set triggered links parents as active\n // With both