1/*! 2 * Package: thieme 3 * Version: 13.4.0 4 * Copyright 2011-2026 Thieme Group (www.thieme.com) 5 * Licensed under MIT 6 */ 7 8import{a as Gi,b as Ki,c as Yi,d as O,e as R}from"./chunk-CCC2OERK.js";import{a as d}from"./chunk-P7MDYG22.js";var te=class{constructor(e={}){this.data={};this.data=e}static{d(this,"Registry")}get(e,t){return e!=null?this.data[e]?this.data[e].value:t:this.toArray(this.data)}set(e,t,i=!1){if(this.data[e]&&this.data[e].isConstant)throw"Cant override constants.";return this.data[e]={value:t,isConstant:!!i},this}unset(e){return this.data[e]&&!this.data[e].isConstant&&delete this.data[e],this}toArray(e){let t={};if(e instanceof Array||e instanceof Object)for(let i in this.data){let s=this.data[i];t[i]=this.toArray(s.value)}else t=e;return t}};var T=d(a=>typeof a=="string","isString"),me=d(()=>{let a,e,t=new Promise((i,s)=>{a=i,e=s});return t.resolve=a,t.reject=e,t},"defer"),Ji=d(a=>a==null?"":""+a,"makeString"),Yn=d((a,e,t)=>{a.forEach(i=>{e[i]&&(t[i]=e[i])})},"copy"),Jn=/###/g,Xi=d(a=>a&&a.indexOf("###")>-1?a.replace(Jn,"."):a,"cleanKey"),Qi=d(a=>!a||T(a),"canNotTraverseDeeper"),fe=d((a,e,t)=>{let i=T(e)?e.split("."):e,s=0;for(;s<i.length-1;){if(Qi(a))return{};let n=Xi(i[s]);!a[n]&&t&&(a[n]=new t),Object.prototype.hasOwnProperty.call(a,n)?a=a[n]:a={},++s}return Qi(a)?{}:{obj:a,k:Xi(i[s])}},"getLastOfPath"),es=d((a,e,t)=>{let{obj:i,k:s}=fe(a,e,Object);if(i!==void 0||e.length===1){i[s]=t;return}let n=e[e.length-1],o=e.slice(0,e.length-1),r=fe(a,o,Object);for(;r.obj===void 0&&o.length;)n=`${o[o.length-1]}.${n}`,o=o.slice(0,o.length-1),r=fe(a,o,Object),r?.obj&&typeof r.obj[`${r.k}.${n}`]<"u"&&(r.obj=void 0);r.obj[`${r.k}.${n}`]=t},"setPath"),Xn=d((a,e,t,i)=>{let{obj:s,k:n}=fe(a,e,Object);s[n]=s[n]||[],s[n].push(t)},"pushPath"),Pe=d((a,e)=>{let{obj:t,k:i}=fe(a,e);if(t&&Object.prototype.hasOwnProperty.call(t,i))return t[i]},"getPath"),Qn=d((a,e,t)=>{let i=Pe(a,t);return i!==void 0?i:Pe(e,t)},"getPathWithDefaults"),as=d((a,e,t)=>{for(let i in e)i!=="__proto__"&&i!=="constructor"&&(i in a?T(a[i])||a[i]instanceof String||T(e[i])||e[i]instanceof String?t&&(a[i]=e[i]):as(a[i],e[i],t):a[i]=e[i]);return a},"deepExtend"),X=d(a=>a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),eo={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},to=d(a=>T(a)?a.replace(/[&<>"'\/]/g,e=>eo[e]):a,"escape"),gt=class{static{d(this,"RegExpCache")}constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let i=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,i),this.regExpQueue.push(e),i}},io=[" ",",","?","!",";"],so=new gt(20),no=d((a,e,t)=>{e=e||"",t=t||"";let i=io.filter(o=>e.indexOf(o)<0&&t.indexOf(o)<0);if(i.length===0)return!0;let s=so.getRegExp(`(${i.map(o=>o==="?"?"\\?":o).join("|")})`),n=!s.test(a);if(!n){let o=a.indexOf(t);o>0&&!s.test(a.substring(0,o))&&(n=!0)}return n},"looksLikeObjectPath"),yt=d((a,e,t=".")=>{if(!a)return;if(a[e])return Object.prototype.hasOwnProperty.call(a,e)?a[e]:void 0;let i=e.split(t),s=a;for(let n=0;n<i.length;){if(!s||typeof s!="object")return;let o,r="";for(let c=n;c<i.length;++c)if(c!==n&&(r+=t),r+=i[c],o=s[r],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&c<i.length-1)continue;n+=c-n+1;break}s=o}return s},"deepFind"),ge=d(a=>a?.replace(/_/g,"-"),"getCleanedCode"),oo={type:"logger",log(a){this.output("log",a)},warn(a){this.output("warn",a)},error(a){this.output("error",a)},output(a,e){console?.[a]?.apply?.(console,e)}},bt=class a{static{d(this,"Logger")}constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||oo,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,i,s){return s&&!this.debug?null:(T(e[0])&&(e[0]=`${i}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new a(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new a(this.logger,e)}},Z=new bt,se=class{static{d(this,"EventEmitter")}constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(i=>
8{this.observers[i]||(this.observers[i]=new Map);let s=this.observers[i].get(t)||0;this.observers[i].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([s,n])=>{for(let o=0;o<n;o++)s(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,n])=>{for(let o=0;o<n;o++)s.apply(s,[e,...t])})}},He=class extends se{static{d(this,"ResourceStore")}constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,i,s={}){let n=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,o=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,r;e.indexOf(".")>-1?r=e.split("."):(r=[e,t],i&&(Array.isArray(i)?r.push(...i):T(i)&&n?r.push(...i.split(n)):r.push(i)));let c=Pe(this.data,r);return!c&&!t&&!i&&e.indexOf(".")>-1&&(e=r[0],t=r[1],i=r.slice(2).join(".")),c||!o||!T(i)?c:yt(this.data?.[e]?.[t],i,n)}addResource(e,t,i,s,n={silent:!1}){let o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,r=[e,t];i&&(r=r.concat(o?i.split(o):i)),e.indexOf(".")>-1&&(r=e.split("."),s=t,t=r[1]),this.addNamespaces(t),es(this.data,r,s),n.silent||this.emit("added",e,t,i,s)}addResources(e,t,i,s={silent:!1}){for(let n in i)(T(i[n])||Array.isArray(i[n]))&&this.addResource(e,t,n,i[n],{silent:!0});s.silent||this.emit("added",e,t,i)}addResourceBundle(e,t,i,s,n,o={silent:!1,skipCopy:!1}){let r=[e,t];e.indexOf(".")>-1&&(r=e.split("."),s=i,i=t,t=r[1]),this.addNamespaces(t);let c=Pe(this.data,r)||{};o.skipCopy||(i=JSON.parse(JSON.stringify(i))),s?as(c,i,n):c={...c,...i},es(this.data,r,c),o.silent||this.emit("added",e,t,i)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(s=>t[s]&&Object.keys(t[s]).length>0)}toJSON(){return this.data}},ls={processors:{},addPostProcessor(a){this.processors[a.name]=a},handle(a,e,t,i,s){return a.forEach(n=>{e=this.processors[n]?.process(e,t,i,s)??e}),e}},cs=Symbol("i18next/PATH_KEY");function ro(){let a=[],e=Object.create(null),t;return e.get=(i,s)=>(t?.revoke?.(),s===cs?a:(a.push(s),t=Proxy.revocable(i,e),t.proxy)),Proxy.revocable(Object.create(null),e).proxy}d(ro,"createProxy");function ie(a,e){let{[cs]:t}=a(ro()),i=e?.keySeparator??".",s=e?.nsSeparator??":";if(t.length>1&&s){let n=e?.ns,o=Array.isArray(n)?n:null;if(o&&o.length>1&&o.slice(1).includes(t[0]))return`${t[0]}${s}${t.slice(1).join(i)}`}return t.join(i)}d(ie,"keysFromSelector");var ts={},pt=d(a=>!T(a)&&typeof a!="boolean"&&typeof a!="number","shouldHandleAsObject"),ke=class a extends se{static{d(this,"Translator")}constructor(e,t={}){super(),Yn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
8i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Z.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let i={...t};if(e==null)return!1;let s=this.resolve(e,i);if(s?.res===void 0)return!1;let n=pt(s.res);return!(i.returnObjects===!1&&n)}extractFromKey(e,t){let i=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let s=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,n=t.ns||this.options.defaultNS||[],o=i&&e.indexOf(i)>-1,r=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!no(e,i,s);if(o&&!r){let c=e.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:e,namespaces:T(n)?[n]:n};let l=e.split(i);(i!==s||i===s&&this.options.ns.indexOf(l[0])>-1)&&(n=l.shift()),e=l.join(s)}return{key:e,namespaces:T(n)?[n]:n}}translate(e,t,i){let s=typeof t=="object"?{...t}:t;if(typeof s!="object"&&this.options.overloadTranslationOptionHandler&&(s=this.options.overloadTranslationOptionHandler(arguments)),typeof s=="object"&&(s={...s}),s||(s={}),e==null)return"";typeof e=="function"&&(e=ie(e,{...this.options,...s})),Array.isArray(e)||(e=[String(e)]),e=e.map(z=>typeof z=="function"?ie(z,{...this.options,...s}):String(z));let n=s.returnDetails!==void 0?s.returnDetails:this.options.returnDetails,o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,{key:r,namespaces:c}=this.extractFromKey(e[e.length-1],s),l=c[c.length-1],h=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;h===void 0&&(h=":");let u=s.lng||this.language,p=s.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u?.toLowerCase()==="cimode")return p?n?{res:`${l}${h}${r}`,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:`${l}${h}${r}`:n?{res:r,usedKey:r,exactUsedKey:r,usedLng:u,usedNS:l,usedParams:this.getUsedParamsDetails(s)}:r;let m=this.resolve(e,s),f=m?.res,g=m?.usedKey||r,b=m?.exactUsedKey||r,w=["[object Number]","[object Function]","[object RegExp]"],y=s.joinArrays!==void 0?s.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,x=s.count!==void 0&&!T(s.count),L=a.hasDefaultValue(s),E=x?this.pluralResolver.getSuffix(u,s.count,s):"",M=s.ordinal&&x?this.pluralResolver.getSuffix(u,s.count,{ordinal:!1}):"",A=x&&!s.ordinal&&s.count===0,C=A&&s[`defaultValue${this.options.pluralSeparator}zero`]||s[`defaultValue${E}`]||s[`defaultValue${M}`]||s.defaultValue,D=f;S&&!f&&L&&(D=C);let he=pt(D),Kn=Object.prototype.toString.apply(D);if(S&&D&&he&&w.indexOf(Kn)<0&&!(T(y)&&Array.isArray(D))){if(!s.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let z=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,D,{...s,ns:c}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(m.res=z,m.usedParams=this.getUsedParamsDetails(s),m):z}if(o){let z=Array.isArray(D),$=z?[]:{},Vi=z?b:g;for(let U in D)if(Object.prototype.hasOwnProperty.call(D,U)){let G=`${Vi}${o}${U}`;L&&!f?$[U]=this.translate(G,{...s,defaultValue:pt(C)?C[U]:void 0,joinArrays:!1,ns:c}):$[U]=this.translate(G,{...s,joinArrays:!1,ns:c}),$[U]===G&&($[U]=D[U])}f=$}}else if(S&&T(y)&&Array.isArray(f))f=f.join(y),f&&(f=this.extendTranslation(f,e,s,i));else{let z=!1,$=!1;!this.isValidLookup(f)&&L&&(z=!0,f=C),this.isValidLookup(f)||($=!0,f=r);let U=(s.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&$?void 0:f,G=L&&C!==f&&this.options.updateMissing;if($||z||G){if(this.logger.log(G?"updateKey":"missingKey",u,l,r,G?C:f),o){let N=this.resolve(r,{...s,keySeparator:!1});N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let ue=[],Ie=this.languageUtils.getFallbackCodes(this.options.fallbackLng,s.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ie&&Ie[0])for(let N=0;N<Ie.length;N++)ue.push(Ie[N]);else this.options.saveMissingTo==="all"?ue=this.languageUtils.toResolveHierarchy(s.lng||this.language):ue.push(s.lng||this.language);let Ui=d((N,J,pe)=>{let Zi=L&&pe!==f?pe:U;this.options.missingKeyHandler?this.options.missingKeyHandler(N,l,J,Zi,G,s):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(N,l,J,Zi,G,s),this.emit
vendor: 2,282 bytes, line 8
8("missingKey",N,l,J,f)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&x?ue.forEach(N=>{let J=this.pluralResolver.getSuffixes(N,s);A&&s[`defaultValue${this.options.pluralSeparator}zero`]&&J.indexOf(`${this.options.pluralSeparator}zero`)<0&&J.push(`${this.options.pluralSeparator}zero`),J.forEach(pe=>{Ui([N],r+pe,s[`defaultValue${pe}`]||C)})}):Ui(ue,r,C))}f=this.extendTranslation(f,e,s,m,i),$&&f===r&&this.options.appendNamespaceToMissingKey&&(f=`${l}${h}${r}`),($||z)&&this.options.parseMissingKeyHandler&&(f=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${h}${r}`:r,z?f:void 0,s))}return n?(m.res=f,m.usedParams=this.getUsedParamsDetails(s),m):f}extendTranslation(e,t,i,s,n){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||s.usedLng,s.usedNS,s.usedKey,{resolved:s});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let c=T(e)&&(i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),l;if(c){let u=e.match(this.interpolator.nestingRegexp);l=u&&u.length}let h=i.replace&&!T(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,i.lng||this.language||s.usedLng,i),c){let u=e.match(this.interpolator.nestingRegexp),p=u&&u.length;l<p&&(i.nest=!1)}!i.lng&&s&&s.res&&(i.lng=this.language||s.usedLng),i.nest!==!1&&(e=this.interpolator.nest(e,(...u)=>n?.[0]===u[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${u[0]} in key: ${t[0]}`),null):this.translate(...u,t),i)),i.interpolation&&this.interpolator.reset()}let o=i.postProcess||this.options.postProcess,r=T(o)?[o]:o;return e!=null&&r?.length&&i.applyPostProcessor!==!1&&(e=ls.handle(r,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...s,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),e}resolve(e,t={}){let i,s,n,o,r;return T(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(c=>typeof c=="function"?ie(c,{...this.options,...t}):c)),e.forEach(c=>{if(this.isValidLookup(i))return;
8let l=this.extractFromKey(c,t),h=l.key;s=h;let u=l.namespaces;this.options.fallbackNS&&(u=u.concat(this.options.fallbackNS));let p=t.count!==void 0&&!T(t.count),m=p&&!t.ordinal&&t.count===0,f=t.context!==void 0&&(T(t.context)||typeof t.context=="number")&&t.context!=="",g=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);u.forEach(b=>{this.isValidLookup(i)||(r=b,!ts[`${g[0]}-${b}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(r)&&(ts[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${s}" for languages "${g.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(w=>{if(this.isValidLookup(i))return;o=w;let y=[h];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(y,h,w,b,t);else{let x;p&&(x=this.pluralResolver.getSuffix(w,t.count,t));let L=`${this.options.pluralSeparator}zero`,E=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(t.ordinal&&x.indexOf(E)===0&&y.push(h+x.replace(E,this.options.pluralSeparator)),y.push(h+x),m&&y.push(h+L)),f){let M=`${h}${this.options.contextSeparator||"_"}${t.context}`;y.push(M),p&&(t.ordinal&&x.indexOf(E)===0&&y.push(M+x.replace(E,this.options.pluralSeparator)),y.push(M+x),m&&y.push(M+L))}}let S;for(;S=y.pop();)this.isValidLookup(i)||(n=S,i=this.getResource(w,b,S,t))}))})}),{res:i,usedKey:s,exactUsedKey:n,usedLng:o,usedNS:r}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,i,s={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,i,s):this.resourceStore.getResource(e,t,i,s)}getUsedParamsDetails(e={}){let t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=e.replace&&!T(e.replace),s=i?e.replace:e;if(i&&typeof e.count<"u"&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!i){s={...s};for(let n of t)delete s[n]}return s}static hasDefaultValue(e){let t="defaultValue";for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t===i.substring(0,t.length)&&e[i]!==void 0)return!0;return!1}},De=class{static{d(this,"LanguageUtil")}constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Z.create("languageUtils")}getScriptPartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return null;let t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=ge(e),!e||e.indexOf("-")<0)return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(T(e)&&e.indexOf("-")>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(i=>{if(t)return;let s=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(i=>{if(t)return;let s=this.getScriptPartFromCode(i);if(this.isSupportedCode(s))return t=s;let n=this.getLanguagePartFromCode(i);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(o=>{if(o===n)return o;if(!(o.indexOf("-")<0&&n.indexOf("-")<0)&&(o.indexOf("-")>0&&n.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===n||o.indexOf(n)===0&&n.length>1))return o})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),T(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let i=e[t];
8return i||(i=e[this.getScriptPartFromCode(t)]),i||(i=e[this.formatLanguageCode(t)]),i||(i=e[this.getLanguagePartFromCode(t)]),i||(i=e.default),i||[]}toResolveHierarchy(e,t){let i=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),s=[],n=d(o=>{o&&(this.isSupportedCode(o)?s.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))},"addCode");return T(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&n(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&n(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&n(this.getLanguagePartFromCode(e))):T(e)&&n(this.formatLanguageCode(e)),i.forEach(o=>{s.indexOf(o)<0&&n(this.formatLanguageCode(o))}),s}},is={zero:0,one:1,two:2,few:3,many:4,other:5},ss={select:d(a=>a===1?"one":"other","select"),resolvedOptions:d(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},vt=class{static{d(this,"PluralResolver")}constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=Z.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let i=ge(e==="dev"?"en":e),s=t.ordinal?"ordinal":"cardinal",n=JSON.stringify({cleanedCode:i,type:s});if(n in this.pluralRulesCache)return this.pluralRulesCache[n];let o;try{o=new Intl.PluralRules(i,{type:s})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),ss;if(!e.match(/-|_/))return ss;let c=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(c,t)}return this.pluralRulesCache[n]=o,o}needsPlural(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,i={}){return this.getSuffixes(e,i).map(s=>`${t}${s}`)}getSuffixes(e,t={}){let i=this.getRule(e,t);return i||(i=this.getRule("dev",t)),i?i.resolvedOptions().pluralCategories.sort((s,n)=>is[s]-is[n]).map(s=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${s}`):[]}getSuffix(e,t,i={}){let s=this.getRule(e,i);return s?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${s.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,i))}},ns=d((a,e,t,i=".",s=!0)=>{let n=Qn(a,e,t);return!n&&s&&T(t)&&(n=yt(a,t,i),n===void 0&&(n=yt(e,t,i))),n},"deepFindWithDefaults"),mt=d(a=>a.replace(/\$/g,"$$$$"),"regexSafe"),Re=class{static{d(this,"Interpolator")}constructor(e={}){this.logger=Z.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(t=>t),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:i,useRawValueToEscape:s,prefix:n,prefixEscaped:o,suffix:r,suffixEscaped:c,formatSeparator:l,unescapeSuffix:h,unescapePrefix:u,nestingPrefix:p,nestingPrefixEscaped:m,nestingSuffix:f,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:w,alwaysFormat:y}=e.interpolation;this.escape=t!==void 0?t:to,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=s!==void 0?s:!1,this.prefix=n?X(n):o||"{{",this.suffix=r?X(r):c||"}}",this.formatSeparator=l||",",this.unescapePrefix=h?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":h||"",this.nestingPrefix=p?X(p):m||X("$t("),this.nestingSuffix=f?X(f):g||X(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=w||1e3,this.alwaysFormat=y!==void 0?y:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=d((t,i)=>t?.source===i?(t.lastIndex=0,t):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,i,s){let n,o,r,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=d(m=>{if(m.indexOf(this.formatSeparator)<0){let w=ns(t,c,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,i,{...s,...t,interpolationkey:m}):w}
8let f=m.split(this.formatSeparator),g=f.shift().trim(),b=f.join(this.formatSeparator).trim();return this.format(ns(t,c,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,i,{...s,...t,interpolationkey:g})},"handleFormat");this.resetRegExp();let h=s?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:d(m=>mt(m),"safeValue")},{regex:this.regexp,safeValue:d(m=>this.escapeValue?mt(this.escape(m)):mt(m),"safeValue")}].forEach(m=>{for(r=0;n=m.regex.exec(e);){let f=n[1].trim();if(o=l(f),o===void 0)if(typeof h=="function"){let b=h(e,n,s);o=T(b)?b:""}else if(s&&Object.prototype.hasOwnProperty.call(s,f))o="";else if(u){o=n[0];continue}else this.logger.warn(`missed to pass in variable ${f} for interpolating ${e}`),o="";else!T(o)&&!this.useRawValueToEscape&&(o=Ji(o));let g=m.safeValue(o);if(e=e.replace(n[0],g),u?(m.regex.lastIndex+=o.length,m.regex.lastIndex-=n[0].length):m.regex.lastIndex=0,r++,r>=this.maxReplaces)break}}),e}nest(e,t,i={}){let s,n,o,r=d((c,l)=>{let h=this.nestingOptionsSeparator;if(c.indexOf(h)<0)return c;let u=c.split(new RegExp(`${X(h)}[ ]*{`)),p=`{${u[1]}`;c=u[0],p=this.interpolate(p,o);let m=p.match(/'/g),f=p.match(/"/g);((m?.length??0)%2===0&&!f||(f?.length??0)%2!==0)&&(p=p.replace(/'/g,'"'));try{o=JSON.parse(p),l&&(o={...l,...o})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${h}${p}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,c},"handleHasOptions");for(;s=this.nestingRegexp.exec(e);){let c=[];o={...i},o=o.replace&&!T(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let l=/{.*}/.test(s[1])?s[1].lastIndexOf("}")+1:s[1].indexOf(this.formatSeparator);if(l!==-1&&(c=s[1].slice(l).split(this.formatSeparator).map(h=>h.trim()).filter(Boolean),s[1]=s[1].slice(0,l)),n=t(r.call(this,s[1].trim(),o),o),n&&s[0]===e&&!T(n))return n;T(n)||(n=Ji(n)),n||(this.logger.warn(`missed to resolve ${s[1]} for nesting ${e}`),n=""),c.length&&(n=c.reduce((h,u)=>this.format(h,u,i.lng,{...i,interpolationkey:s[1].trim()}),n.trim())),e=e.replace(s[0],n),this.regexp.lastIndex=0}return e}},ao=d(a=>{let e=a.toLowerCase().trim(),t={};if(a.indexOf("(")>-1){let i=a.split("(");e=i[0].toLowerCase().trim();let s=i[1].substring(0,i[1].length-1);e==="currency"&&s.indexOf(":")<0?t.currency||(t.currency=s.trim()):e==="relativetime"&&s.indexOf(":")<0?t.range||(t.range=s.trim()):s.split(";").forEach(o=>{if(o){let[r,...c]=o.split(":"),l=c.join(":").trim().replace(/^'+|'+$/g,""),h=r.trim();t[h]||(t[h]=l),l==="false"&&(t[h]=!1),l==="true"&&(t[h]=!0),isNaN(l)||(t[h]=parseInt(l,10))}})}return{formatName:e,formatOptions:t}},"parseFormatStr"),os=d(a=>{let e={};return(t,i,s)=>{let n=s;s&&s.interpolationkey&&s.formatParams&&s.formatParams[s.interpolationkey]&&s[s.interpolationkey]&&(n={...n,[s.interpolationkey]:void 0});let o=i+JSON.stringify(n),r=e[o];return r||(r=a(ge(i),s),e[o]=r),r(t)}},"createCachedFormatter"),lo=d(a=>(e,t,i)=>a(ge(t),i)(e),"createNonCachedFormatter"),wt=class{static{d(this,"Formatter")}constructor(e={}){this.logger=Z.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let i=t.cacheInBuiltFormats?os:lo;this.formats={number:i((s,n)=>{let o=new Intl.NumberFormat(s,{...n});return r=>o.format(r)}),currency:i((s,n)=>{let o=new Intl.NumberFormat(s,{...n,style:"currency"});return r=>o.format(r)}),datetime:i((s,n)=>{let o=new Intl.DateTimeFormat(s,{...n});return r=>o.format(r)}),relativetime:i((s,n)=>{let o=new Intl.RelativeTimeFormat(s,{...n});return r=>o.format(r,n.range||"day")}),list:i((s,n)=>{let o=new Intl.ListFormat(s,{...n});return r=>o.format(r)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=os(t)}format(e,t,i,s={}){let n=t.split(this.formatSeparator);if(n.length>1&&n[0].indexOf("(")>1&&n[0].indexOf(")")<0&&n.find(r=>r.indexOf(")")>-1)){let r=n.findIndex(c=>c.indexOf(")")>-1);n[0]=[n[0],...n.splice(1,r)].join(this.formatSeparator)}return n.reduce((r,c)=>{let{formatName:l,formatOptions:h}=ao(c);if(this.formats[l]){let u=r;
vendor: 4,963 bytes, line 8
8try{let p=s?.formatParams?.[s.interpolationkey]||{},m=p.locale||p.lng||s.locale||s.lng||i;u=this.formats[l](r,m,{...h,...s,...p})}catch(p){this.logger.warn(p)}return u}else this.logger.warn(`there was no format function for ${l}`);return r},e)}},co=d((a,e)=>{a.pending[e]!==void 0&&(delete a.pending[e],a.pendingCount--)},"removePending"),Et=class extends se{static{d(this,"Connector")}constructor(e,t,i,s={}){super(),this.backend=e,this.store=t,this.services=i,this.languageUtils=i.languageUtils,this.options=s,this.logger=Z.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=s.maxParallelReads||10,this.readingCalls=0,this.maxRetries=s.maxRetries>=0?s.maxRetries:5,this.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(i,s.backend,s)}queueLoad(e,t,i,s){let n={},o={},r={},c={};return e.forEach(l=>{let h=!0;t.forEach(u=>{let p=`${l}|${u}`;!i.reload&&this.store.hasResourceBundle(l,u)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?o[p]===void 0&&(o[p]=!0):(this.state[p]=1,h=!1,o[p]===void 0&&(o[p]=!0),n[p]===void 0&&(n[p]=!0),c[u]===void 0&&(c[u]=!0)))}),h||(r[l]=!0)}),(Object.keys(n).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(n),pending:Object.keys(o),toLoadLanguages:Object.keys(r),toLoadNamespaces:Object.keys(c)}}loaded(e,t,i){let s=e.split("|"),n=s[0],o=s[1];t&&this.emit("failedLoading",n,o,t),!t&&i&&this.store.addResourceBundle(n,o,i,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&i&&(this.state[e]=0);let r={};this.queue.forEach(c=>{Xn(c.loaded,[n],o),co(c,e),t&&c.errors.push(t),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(l=>{r[l]||(r[l]={});let h=c.loaded[l];h.length&&h.forEach(u=>{r[l][u]===void 0&&(r[l][u]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",r),this.queue=this.queue.filter(c=>!c.done)}read(e,t,i,s=0,n=this.retryTimeout,o){if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:i,tried:s,wait:n,callback:o});return}this.readingCalls++;let r=d((l,h)=>{if(this.readingCalls--,this.waitingReads.length>0){let u=this.waitingReads.shift();this.read(u.lng,u.ns,u.fcName,u.tried,u.wait,u.callback)}if(l&&h&&s<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,i,s+1,n*2,o)},n);return}o(l,h)},"resolver"),c=this.backend[i].bind(this.backend);if(c.length===2){try{let l=c(e,t);l&&typeof l.then=="function"?l.then(h=>r(null,h)).catch(r):r(null,l)}catch(l){r(l)}return}return c(e,t,r)}prepareLoading(e,t,i={},s){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),s&&s();T(e)&&(e=this.languageUtils.toResolveHierarchy(e)),T(t)&&(t=[t]);let n=this.queueLoad(e,t,i,s);if(!n.toLoad.length)return n.pending.length||s(),null;n.toLoad.forEach(o=>{this.loadOne(o)})}load(e,t,i){this.prepareLoading(e,t,{},i)}reload(e,t,i){this.prepareLoading(e,t,{reload:!0},i)}loadOne(e,t=""){let i=e.split("|"),s=i[0],n=i[1];this.read(s,n,"read",void 0,void 0,(o,r)=>{o&&this.logger.warn(`${t}loading namespace ${n} for language ${s} failed`,o),!o&&r&&this.logger.log(`${t}loaded namespace ${n} for language ${s}`,r),this.loaded(e,o,r)})}saveMissing(e,t,i,s,n,o={},r=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${i}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend?.create){let c={...o,isUpdate:n},l=this.backend.create.bind(this.backend);if(l.length<6)try{let h;l.length===5?h=l(e,t,i,s,c):h=l(e,t,i,s),h&&typeof h.then=="function"?h.then(u=>r(null,u)).catch(r):r(null,h)}catch(h){r(h)}else l(e,t,i,s,r,c)}!e||!e[0]||this.store.addResource(e[0],t,i,s)}}},ft=d(()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:d(a=>{let e={};if(typeof a[1]=="object"&&(e=a[1]),T(a[1])&&(e.defaultValue=a[1]),T(a[2])&&(e.tDescription=a[2]),typeof a[2]=="object"||typeof a[3]=="object"){let t=a[3]||a[2];Object.keys(t).forEach(i=>
8{e[i]=t[i]})}return e},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:d(a=>a,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),rs=d(a=>(T(a.ns)&&(a.ns=[a.ns]),T(a.fallbackLng)&&(a.fallbackLng=[a.fallbackLng]),T(a.fallbackNS)&&(a.fallbackNS=[a.fallbackNS]),a.supportedLngs?.indexOf?.("cimode")<0&&(a.supportedLngs=a.supportedLngs.concat(["cimode"])),typeof a.initImmediate=="boolean"&&(a.initAsync=a.initImmediate),a),"transformOptions"),Oe=d(()=>{},"noop"),ho=d(a=>{Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(t=>{typeof a[t]=="function"&&(a[t]=a[t].bind(a))})},"bindMemberFunctions"),ds="__i18next_supportNoticeShown",uo=d(()=>!!(typeof globalThis<"u"&&globalThis[ds]||typeof process<"u"&&process.env&&process.env.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&process.env),"getSupportNoticeShown"),po=d(()=>{typeof globalThis<"u"&&(globalThis[ds]=!0)},"setSupportNoticeShown"),mo=d(a=>!!(a?.modules?.backend?.name?.indexOf("Locize")>0||a?.modules?.backend?.constructor?.name?.indexOf("Locize")>0||a?.options?.backend?.backends&&a.options.backend.backends.some(e=>e?.name?.indexOf("Locize")>0||e?.constructor?.name?.indexOf("Locize")>0)||a?.options?.backend?.projectId||a?.options?.backend?.backendOptions&&a.options.backend.backendOptions.some(e=>e?.projectId)),"usesLocize"),Lt=class a extends se{static{d(this,"I18n")}constructor(e={},t){if(super(),this.options=rs(e),this.services={},this.logger=Z,this.modules={external:[]},ho(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e=="function"&&(t=e,e={}),e.defaultNS==null&&e.ns&&(T(e.ns)?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));let i=ft();this.options={...i,...this.options,...rs(e)},this.options.interpolation={...i.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=i.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!mo(this)&&!uo()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}"),po());let s=d(l=>l?typeof l=="function"?new l:l:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Z.init(s(this.modules.logger),this.options):Z.init(null,this.options);let l;this.modules.formatter?l=this.modules.formatter:l=wt;let h=new De(this.options);this.store=new He(this.options.resources,this.options);let u=this.services;u.logger=Z,u.resourceStore=this.store,u.languageUtils=h,u.pluralResolver=new vt(h,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),l&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(u.formatter=s(l),u.formatter.init&&u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new Re(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new Et(s(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(m,...f)=>{this.emit(m,...f)}),this.modules.languageDetector&&(u.languageDetector=s(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=s(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new ke(this.services,this.options),this.translator.on("*",(m,...f)=>
8{this.emit(m,...f)}),this.modules.external.forEach(m=>{m.init&&m.init(this)})}if(this.format=this.options.interpolation.format,t||(t=Oe),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&l[0]!=="dev"&&(this.options.lng=l[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(l=>{this[l]=(...h)=>this.store[l](...h)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(l=>{this[l]=(...h)=>(this.store[l](...h),this)});let r=me(),c=d(()=>{let l=d((h,u)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(u),t(h,u)},"finish");if(this.languages&&!this.isInitialized)return l(null,this.t.bind(this));this.changeLanguage(this.options.lng,l)},"load");return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),r}loadResources(e,t=Oe){let i=t,s=T(e)?e:this.language;if(typeof e=="function"&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(s?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let n=[],o=d(r=>{if(!r||r==="cimode")return;this.services.languageUtils.toResolveHierarchy(r).forEach(l=>{l!=="cimode"&&n.indexOf(l)<0&&n.push(l)})},"append");s?o(s):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>o(c)),this.options.preload?.forEach?.(r=>o(r)),this.services.backendConnector.load(n,this.options.ns,r=>{!r&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(r)})}else i(null)}reloadResources(e,t,i){let s=me();return typeof e=="function"&&(i=e,e=void 0),typeof t=="function"&&(i=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),i||(i=Oe),this.services.backendConnector.reload(e,t,n=>{s.resolve(),i(n)}),s}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&ls.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1)){for(let t=0;t<this.languages.length;t++){let i=this.languages[t];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let i=me();this.emit("languageChanging",e);let s=d(r=>{this.language=r,this.languages=this.services.languageUtils.toResolveHierarchy(r),this.resolvedLanguage=void 0,this.setResolvedLanguage(r)},"setLngProps"),n=d((r,c)=>{c?this.isLanguageChangingTo===e&&(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,i.resolve((...l)=>this.t(...l)),t&&t(r,(...l)=>this.t(...l))},"done"),o=d(r=>{!e&&!r&&this.services.languageDetector&&(r=[]);let c=T(r)?r:r&&r[0],l=this.store.hasLanguageSomeTranslations(c)?c:this.services.languageUtils.getBestMatchFromCodes(T(r)?[r]:r);l&&(this.language||s(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector?.cacheUserLanguage?.(l)),this.loadResources(l,h=>{n(h,l)})},"setLng");return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),i}getFixedT(e,t,i){let s=d((n,o,...r)=>{let c;typeof o!="object"?c=this.options.overloadTranslationOptionHandler([n,o].concat(r)):c={...o}
8,c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||i||s.keyPrefix);let l={...this.options,...c};typeof c.keyPrefix=="function"&&(c.keyPrefix=ie(c.keyPrefix,l));let h=this.options.keySeparator||".",u;return c.keyPrefix&&Array.isArray(n)?u=n.map(p=>(typeof p=="function"&&(p=ie(p,l)),`${c.keyPrefix}${h}${p}`)):(typeof n=="function"&&(n=ie(n,l)),u=c.keyPrefix?`${c.keyPrefix}${h}${n}`:n),this.t(u,c)},"fixedT");return T(e)?s.lng=e:s.lngs=e,s.ns=t,s.keyPrefix=i,s}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=t.lng||this.resolvedLanguage||this.languages[0],s=this.options?this.options.fallbackLng:!1,n=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let o=d((r,c)=>{let l=this.services.backendConnector.state[`${r}|${c}`];return l===-1||l===0||l===2},"loadNotPending");if(t.precheck){let r=t.precheck(this,o);if(r!==void 0)return r}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(i,e)&&(!s||o(n,e)))}loadNamespaces(e,t){let i=me();return this.options.ns?(T(e)&&(e=[e]),e.forEach(s=>{this.options.ns.indexOf(s)<0&&this.options.ns.push(s)}),this.loadResources(s=>{i.resolve(),t&&t(s)}),i):(t&&t(),Promise.resolve())}loadLanguages(e,t){let i=me();T(e)&&(e=[e]);let s=this.options.preload||[],n=e.filter(o=>s.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return n.length?(this.options.preload=s.concat(n),this.loadResources(o=>{i.resolve(),t&&t(o)}),i):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let s=new Intl.Locale(e);if(s&&s.getTextInfo){let n=s.getTextInfo();if(n&&n.direction)return n.direction}}catch{}let t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services?.languageUtils||new De(ft());return e.toLowerCase().indexOf("-latn")>1?"ltr":t.indexOf(i.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let i=new a(e,t);return i.createInstance=a.createInstance,i}cloneInstance(e={},t=Oe){let i=e.forkResourceStore;i&&delete e.forkResourceStore;let s={...this.options,...e,isClone:!0},n=new a(s);if((e.debug!==void 0||e.prefix!==void 0)&&(n.logger=n.logger.clone(e)),["store","services","language"].forEach(r=>{n[r]=this[r]}),n.services={...this.services},n.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},i){let r=Object.keys(this.store.data).reduce((c,l)=>(c[l]={...this.store.data[l]},c[l]=Object.keys(c[l]).reduce((h,u)=>(h[u]={...c[l][u]},h),c[l]),c),{});n.store=new He(r,s),n.services.resourceStore=n.store}if(e.interpolation){let c={...ft().interpolation,...this.options.interpolation,...e.interpolation},l={...s,interpolation:c};n.services.interpolator=new Re(l)}return n.translator=new ke(n.services,s),n.translator.on("*",(r,...c)=>{n.emit(r,...c)}),n.init(s,t),n.translator.options=s,n.translator.backendConnector.services.utils={hasLoadedNamespace:n.hasLoadedNamespace.bind(n)},n}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},P=Lt.createInstance(),aa=P.createInstance,la=P.dir,ca=P.init,da=P.loadResources,ha=P.reloadResources,ua=P.use,pa=P.changeLanguage,ma=P.getFixedT,fa=P.t,ga=P.exists,ya=P.setDefaultNamespace,ba=P.hasLoadedNamespace,va=P.loadNamespaces,wa=P.loadLanguages;var fo={lang:"en"},ye=class{static{d(this,"Language")}constructor(e){let t=this;this.options=Object.assign(fo,e);let i=this.options.lang;(!i||i=="")&&(i=document.querySelector("html")?.getAttribute("lang"),i?i.indexOf("-")>-1&&(i=i.substring(0,i.indexOf("-"))):i="en");try{let s={lng:i,fallbackLng:"en",defaultNS:"common",showSupportNotice:!1};if(P.init(s),window.TYPO3.lang){let n={lang:i,namespace:"common",resources:window.TYPO3.lang};t.addResourceBundle(n)}P.changeLanguage(i)}catch{}}addBundles(e){Array.isArray(e)||(e=[e]),this.addResourceBundles(e)}addResourceBundles(e){let t=this;Array.isArray(e)&&e.forEach(i=>
8{t.addResourceBundle(i)})}addResourceBundle(e){typeof e.lang>"u"&&(e.lang=P.language),P.addResourceBundle(e.lang,e.namespace,e.resources,!0,!0)}setCurrentLanguage(e){P.changeLanguage(e)}getCurrentLanguage(){return P.language}translate(e,t=null,i="",s="common"){let n=P.t(e,{ns:s});if(n==e&&i&&i!=""&&(n=i),t)for(let o in t){let r=new RegExp("{{"+o+"}}","ig");n=n.replace(r,t[o])}return n}t(e,t=null,i="",s="common"){return this.translate(e,t,i)}translateBounded(e,t=null,i="",s="common"){let n=document.createElement("span");return this.bindings.push({el:n,key:e,defaultText:i,params:t}),n}tb(e,t=null,i=""){return this.translateBounded(e,t,i)}};var ze=[];ze.push({lang:"de",namespace:"common",resources:{charsLeft:"{{rest}} Zeichen verbleibend",minLength:"Mindestl\xE4nge: {{min}} Zeichen",maxLength:"Maximale L\xE4nge: {{max}} Zeichen",action:{ok:"OK",cancel:"Abbrechen",apply:"Anwenden",delete:"L\xF6schen",remove:"Entfernen",stop:"Stop",append:"Anf\xFCgen",add:"Hinzuf\xFCgen",selectDate:"Datum ausw\xE4hlen"},alert:{notice:"Notiz",notify:"Hinweis",error:"Fehler",warning:"Warnung",success:"Erfolgreich"},error:{request:{404:{title:"Fehler",message:"Der Inhalt konnte aufgrund eines Fehlers nicht geladen werden."}},general:{title:"Fehler",message:"W\xE4hrend der Verarbeitung ist ein unbekannter Fehler aufgetreten."}},login:{required:"F\xFCr den Zugriff auf die angeforderte Seite m\xFCssen Sie sich anmelden. Bitte geben Sie Ihre Anmeldedaten ein."},showPassword:"Passwort anzeigen",hidePassword:"Passwort verbergen",passwordStrength:"Passwortst\xE4rke",passwordStrengthEvaluation:{worst:"Schwach",bad:"Schlecht",weak:"Mittel",good:"Gut",strong:"Stark"},mimeTypes:{application:"Anwendungspezifisch","application/pdf":"PDF Dokument","application/msword":"MS Word Dokument","application/msexcel":"MS Excel Dokument","application/mspowerpoint":"MS Powerpoint","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"MS Word Dokument","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"MS Excel Dokument","application/vnd.openxmlformats-officedocument.presentationml.presentation":"MS Powerpoint","application/vnd.oasis.opendocument.text":"Open Dokument Text","application/vnd.oasis.opendocument.spreadsheet":"Open Dokument Tabellenkalkulation","application/vnd.oasis.opendocument.presentation":"Open Dokument Pr\xE4sentation","application/vnd.oasis.opendocument.chart":"Open Dokument Chart","application/vnd.oasis.opendocument.formula":"Open Dokument Formel",image:"Bild","image/jpg":"JPG Bild","image/jpeg":"JPG Bild","image/gif":"GIF Bild","image/png":"PNG Bild","image/tiff":"TIFF Bild","image/bmp":"Bitmap Bild",video:"Video","video/mp4":"MP4 Video","video/mpg":"MPG Video",audio:"Audio","audio/wav":"WAV Audio","audio/mp3":"MP3 Audio","audio/ogg":"OGG Audio"},validationError:{title:"Formulareingaben unvollst\xE4ndig",message:"Das Formular enth\xE4lt unvollst\xE4ndige oder fehlerhafte Eintr\xE4ge. Bitte \xFCberpr\xFCfen Sie die rot markierten Felder auf Richtigkeit."},validator:{passwordVerification:{notvalid:"Das Best\xE4tigungspasswort muss mit dem Passwort \xFCbereinstimmen."},selectionRequired:{notvalid:"Bitte nehmen Sie eine Auswahl vor."},equals:{notvalid:"Der eingegebene Wert \xAB{{source}}\xBB stimmt nicht mit \xAB{{dest}}\xBB \xFCberein."},notEmpty:{null:"Dieses Feld darf nicht leer sein.",notvalid:"Dieses Feld darf nicht leer sein."},string:{notvalid:"Es wird eine g\xFCltige Zeichenkette erwartet."},stringLength:{between:"Die L\xE4nge der angegebenen Zeichenkette liegt nicht zwischen {{min}} und {{max}} Zeichen.",less:"Die L\xE4nge der angegebenen Zeichenkette ist k\xFCrzer als {{min}} Zeichen.",exceed:"Die L\xE4nge der angegebenen Zeichenkette \xFCbersteigt {{max}} Zeichen.",pasteOverflow:"Die L\xE4nge des einzuf\xFCgenden Inhaltes \xFCbersteigt die erlaubten {{max}} Zeichen."},emailAddress:{notvalid:"Der eingegebene Wert ist keine g\xFCltige E-Mail Adresse."},integer:{notvalid:"Der eingegebene Wert ist keine g\xFCltige Ganzzahl."},float:{notvalid:"Der eingegebene Wert ist keine g\xFCltige Gleitkommazahl."},numbersOnly:{notvalid:"Der angegebene Wert darf nur Zahlen enthalten."},numberRange:{notvalid:"Der angegebene Wert ist keine g\xFCltige Zahl.",range:"Der angegebene Wert ist nicht im Bereich von {{min}} bis {{max}}."}
8,boolean:{nottrue:"Der angegebene Wert ist nicht WAHR.",notfalse:"Der angegebene Wert ist nicht FALSCH."},file:{notaccepted:"Es sind nur Dateien des folgenden Typs erlaubt: {{allowed}}.",wrongsize:"Die Gr\xF6\xDFe der ausgew\xE4hlten Datei(en) \xFCbersteigt die erlaubte Gr\xF6\xDFe von {{max}}."},regularExpression:{empty:"Der regul\xE4re Ausdruck ist leer.",nomatch:"Der angegebene Wert stimmt nicht mit dem Muster \xFCberein.",error:"Der regul\xE4re Ausdruck \xAB{{pattern}}\xBB enth\xE4lt einen Fehler."},yourInput:"Ihre Eingabe"},confirm:{delete:"M\xF6chten Sie wirklich diesen Eintrag l\xF6schen?"},consent:{info:"An dieser Stelle pr\xE4sentieren wir Ihnen Inhalt eines externen Anbieters. Damit Sie diesen Inhalt sehen k\xF6nnen, m\xFCssen Sie dem Einsatz von Cookies zustimmen.",optoutInfo:'Ich bin damit einverstanden, dass mir externe Inhalte angezeigt werden. Damit k\xF6nnen personenbezogene Daten an Drittplattformen \xFCbermittelt werden. Sie k\xF6nnen dieser Zustimmung jederzeit in Ihren Cookie-Einstellungen widerrufen. Mehr dazu in unserer <a href="/service/datenschutz" target="_blank">Datenschutzerkl\xE4rung</a>.',vendor:"Anbieter",confirmAction:"Zustimmung erteilen und Inhalt anzeigen",optoutAction:"Zustimmung verweigern und externen Inhalt nicht mehr anzeigen"}}});ze.push({lang:"de",namespace:"photoswipe",resources:{closeTitle:"schlie\xDFen",zoomTitle:"vergr\xF6\xDFern",arrowPrevTitle:"vorheriges Bild",arrowNextTitle:"n\xE4chstes Bild",indexIndicatorSep:" von ",errorMsg:"Das Foto konnte aufgrund eines Fehlers nicht geladen werden"}});ze.push({lang:"de",namespace:"accessibility",resources:{info:"Hier k\xF6nnen Sie verschiedene Einstellungen f\xFCr ein optimales Darstellungsbild und besserer Zug\xE4nglichkeit vornehmen.",group:{typeface:"Schriftbild",colorFilter:"Farbfilter",theme:"Thema"},control:{fontSize:"Schriftgr\xF6\xDFe",grayscale:"Graustufen",blueLightFilter:"Blaulichtfilter",brightness:"Helligkeit",moreContrast:"Mehr Kontrast",darkmode:"Dunkler Modus"},action:{bigger:"Schriftgr\xF6\xDFe gr\xF6\xDFer",smaller:"Schriftgr\xF6\xDFe kleiner",resetSettings:"Einstellungen zur\xFCcksetzen"},sizes:{normal:"Normal",middle:"Mittel",max:"Maximal"}}});var hs=ze;var Ne=[];Ne.push({lang:"en",namespace:"common",resources:{charsLeft:"{{rest}} Chars left",minLength:"Min length: {{min}} chars",maxLength:"Max length: {{max}} chars",action:{ok:"OK",cancel:"Cancel",apply:"Apply",delete:"Delete",remove:"Remove",stop:"Stop",append:"Append",add:"Add",selectDate:"Select date"},alert:{notice:"Notice",notify:"Notify",error:"Error",warning:"Warning",success:"Success"},error:{request:{404:{title:"Error",message:"The content could not be loaded due to an error."}},general:{title:"Error",message:"An unknown error occurred during processing."}},login:{required:"To access the requested page you must log in. Please enter your login data."},showPassword:"Show password",hidePassword:"Hide password",passwordStrength:"Password strength",passwordStrengthEvaluation:{worst:"Worst",bad:"Bad",weak:"Weak",good:"Good",strong:"Strong"},mimeTypes:{application:"Application specific","application/pdf":"PDF Document","application/msword":"MS Word Document","application/msexcel":"MS Excel Document","application/mspowerpoint":"MS Powerpoint","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"MS Word Document","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"MS Excel Document","application/vnd.openxmlformats-officedocument.presentationml.presentation":"MS Powerpoint","application/vnd.oasis.opendocument.text":"Open Dokument Text","application/vnd.oasis.opendocument.spreadsheet":"Open Dokument Tabellenkalkulation","application/vnd.oasis.opendocument.presentation":"Open Dokument Pr\xE4sentation","application/vnd.oasis.opendocument.chart":"Open Dokument Chart","application/vnd.oasis.opendocument.formula":"Open Dokument Formel",image:"Image","image/jpg":"JPG Image","image/jpeg":"JPG Image","image/gif":"GIF Image","image/png":"PNG Image","image/tiff":"TIFF Image","image/bmp":"Bitmap Image",video:"Video","video/mp4":"MP4 Video","video/mpg":"MPG Video",audio:"Audio","audio/wav":"WAV Audio","audio/mp3":"MP3 Audio","audio/ogg":"OGG Audio"},validationError:{title:"Formcheck failed",message:"The form contains incomplete or incorrect entries. Please check the red marked fields for c
8orrectness."},validator:{passwordVerification:{notvalid:"The confirmation password must match the password."},selectionRequired:{notvalid:"Please make a selection."},equals:{notvalid:"The entered value \xAB{{source}}\xBB does not match \xAB{{dest}}\xBB."},notEmpty:{null:"This field must not be empty.",notvalid:"This field must not be empty."},string:{notvalid:"A valid string is expected."},stringLength:{between:"The length of the given string was not between {{minimum}} and {{maximum}} characters.",less:"The length of the given string is less than {{minimum}} characters.",exceed:"The length of the given string exceeded {{maximum}} characters.",pasteOverflow:"The length of the pasted content exceeded {{maximum}} characters."},emailAddress:{notvalid:"The given subject was not a valid email address."},integer:{notvalid:"The given subject was not a valid integer."},float:{notvalid:"The given subject was not a valid float."},boolean:{nottrue:"The given subject was not true.",notfalse:"The given subject was not false."},numbersOnly:{notvalid:"The given subject may only contain numbers."},numberRange:{notvalid:"The given subject was not a valid number.",range:"The given subject was not in the valid range ({{minimum}} - {{maximum}})."},file:{notaccepted:"Only files of the following type are allowed: {{allowed}}.",wrongsize:"The size of the selected file(s) exceeds the allowed size of {{max}}."},regularExpression:{empty:"The regular expression was empty.",nomatch:"The given subject did not match the pattern.",error:"The regular expression \xAB{{pattern}}\xBB contained an error."},yourInput:"Your input"},confirm:{delete:"Do you really want to delete this entry?"},consent:{info:"At this point we present content from an external provider. In order for you to see this content, you must agree to the use of cookies.",optoutInfo:'I agree to external content being displayed to me. This may result in personal data being transmitted to third-party platforms. You can revoke this consent at any time in your cookie settings. More about this in our <a href="/service/datenschutz" target="_blank">Privacy policy</a>.',vendor:"Vendor",confirmAction:"Give consent and display content",optoutAction:"Disagree consent and don\xB4t display external content anymore"}}});Ne.push({lang:"en",namespace:"photoswipe",resources:{closeTitle:"close",zoomTitle:"zoom",arrowPrevTitle:"back",arrowNextTitle:"next",indexIndicatorSep:" von ",errorMsg:"A error occured while loading the image."}});Ne.push({lang:"en",namespace:"accessibility",resources:{info:"Here you can adjust various settings for optimal display and better accessibility.",group:{typeface:"Typeface",colorFilter:"Color filter",theme:"Theme"},control:{fontSize:"Font size",grayscale:"Grayscale",blueLightFilter:"Blue light filter",brightness:"Brightness",moreContrast:"More contrast",darkmode:"Dark mode"},action:{bigger:"Font size bigger",smaller:"Font size smaller",resetSettings:"Reset settings"},sizes:{normal:"Normal",middle:"Middle",max:"Max"}}});var us=Ne;var ne;(t=>{async function a(i,s=2e3){let n=[];return i.querySelectorAll("img").forEach(r=>{n.push(e(r,s))}),Promise.all(n)}t.imagesLoaded=a,d(a,"imagesLoaded");async function e(i,s=2e3){return new Promise((o,r)=>{i.complete||i.getAttribute("loading")!="lazy"?o():(i.addEventListener("load",()=>{o()},{once:!0}),i.addEventListener("error",()=>{r()},{once:!0})),window.setTimeout(()=>{o()},s)})}t.imageLoaded=e,d(e,"imageLoaded")})(ne||={});var go=window.bootstrap,oe=class{static{d(this,"Core")}constructor(){let e=this;this.Config=new te,this.Registry=new te;let t=document.querySelector("html")?.getAttribute("lang")??"",i=window.TYPO3??null;if(i&&(i.lang&&i.lang!=""&&(t=i.lang),i.settings&&i.settings.TS))for(let s in i.settings.TS)this.Config.set(s,i.settings.TS[s],!1);e.Lang=new ye({lang:t}),e.Lang.addBundles(hs),e.Lang.addBundles(us)}async imagesLoaded(e,t=2e3){return ne.imagesLoaded(e,t)}async imageLoaded(e,t=2e3){return ne.imageLoaded(e,t)}errorHandler(e,t,i,s){if(typeof i>"u"&&(i="warning"),console.trace(),e=this.Lang.translate(e,null,e),typeof s>"u"||s==""){let n=document.createElement("div");n.setAttribute("class","toast border-0 position-fixed placeto-tc p-0 alert alert-"+i),n.setAttribute("role","alert"),n.setAttribute("aria-live","assertive"),n.setAttribute("aria-atomic","true"),n.style.zIndex="100",t&&(n.innerHTML+=` 9 <div class="toast-header text-white bg-${i}"> 10 <strong class="mr-auto">${t}</strong> 11 <button type="button" class="ml-2 close text-white" data-dismiss="toast" aria-label="Close"><span aria-hidden="true">×</span></button> 12 </div> 13 `),n.innerHTML+=` 14 <div class="toast-body">${e}</div> 15 `,document.querySelector("body")?.appendChild(n),go.Toast.getOrCreateInstance(n,{autohide:!1,delay:15e3}).show()}else{let n=document.createElement("div");n.setAttribute("class","alert alert-"+i),n.innerHTML=e,document.querySelector("body")?.appendChild(n)}}getCookie(e){let i=("; "+decodeURIComponent(document.cookie)).split("; "+e+"=");return i&&i.length===2?i.pop().split(";").shift():""}setCookie(e,t,i,s="/",n="",o="Lax"){let r=new Date;r.setTime(r.getTime()+i*1e3);let c=e+"="+encodeURIComponent(t)+"; expires="+r.toUTCString();s!==""&&(c+="; path="+s),n!==""&&(c+="; domain="+n),o!==""&&(c+="; samesite="+o),c+=";",document.cookie=c}deleteCookie(e,t="",i=""){let s=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT";t!==""&&(s+="; path="+t),i!==""&&(s+="; domain="+i),s+=";",document.cookie=s}};var yo=window.bootstrap;var ps=0,Tt=class{static{d(this,"Modal")}static show(e,t,i="",s=0,n=0,o=!1){e=e??"";let r="modal-dialog modal-dialog-scrollable";i&&i!=""&&(r+=" modal-"+i),ps++;let c="th_modal_"+ps.toString(),l=document.createElement("div");l.setAttribute("role","dialog"),l.classList.add("modal","fade"),l.setAttribute("aria-hidden","true"),l.setAttribute("aria-labelledby",c+"_modal_title"),l.innerHTML=` 16 <div class="${r}"> 17 <div class="modal-content"> 18 <div class="modal-header"> 19 <h2 class="modal-title" id="${c}_modal_title">${e}</h2> 20 <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> 21 </div> 22 <div class="modal-body"> 23 <div class="modal-body-content"> 24 </div> 25 </div> 26 </div> 27 </div> 28 `;let h=l.querySelector(".modal-body");s>0&&(h.style.width=s+"px"),n>0&&(h.style.height=n+"px");let u=l.querySelector(".modal-body-content");t instanceof HTMLElement?u.append(t):u.innerHTML=t,document.querySelector("body").appendChild(l);let p=yo.Modal.getOrCreateInstance(l,{backdrop:o,keyboard:!0});return l.querySelector("button.close")&&l.querySelector("button.close").addEventListener("click",m=>{p.toggle(m.relatedTarget)}),p.show(),p}};var Fe=Tt;var bo={uri:"",placement:"after",signal:"",loader:!0},St=class a{constructor(e,t=null){this.asyncContentLoaded=!1;this.el=e,this.options=Object.assign(bo,t||{}),this.asyncUri=e.getAttribute("href")??e.dataset.asyncUri??this.options.uri,this.asyncSignal=e.dataset.asyncEvent??e.dataset.asyncSignal??this.options.signal,this.asyncLoader=parseInt(e.dataset.asyncLoader??"0")>0?!0:this.options.loader??!1,this.placement=e.dataset.asyncPlacement??t?.placement??"",this.targetEl=e.dataset.asyncTarget?document.querySelector(e.dataset.asyncTarget):e,this.asyncUri&&this.asyncUri!=""&&(this.asyncSignal&&this.asyncSignal!=""?this.asyncSignal==="visibleInViewport"?(this.el.setAttribute("data-loader","containerLoader"),new IntersectionObserver(s=>{s[0].intersectionRatio<=0||this.loadContent()}).observe(this.el)):this.el.addEventListener(this.asyncSignal,s=>(this.loadContent(),s.preventDefault(),!1)):this.loadContent())}static{d(this,"AsyncLoader")}static load(e,t=null){return new a(e,t)}loadContent(){if(this.asyncContentLoaded)return;let e;this.asyncLoader&&(e=document.createElement("div"),e.setAttribute("class","d-flex justify-content-center"),e.innerHTML='<div class="spinner-border text-th-gray" role="status"><span class="sr-only">
28Lade...</span></div>',this.el.parentNode?.insertBefore(e,this.el)),fetch(this.asyncUri).then(t=>{if(!t.ok)throw Error(t.statusText);return t.text()}).then(t=>{if(e&&e.remove(),t.indexOf("<body")<0)switch(this.placement){case"before":this.targetEl.before(t);break;case"after":this.targetEl.after(t);break;case"prepend":this.targetEl.prepend(t);break;case"append":this.targetEl.append(t);break;case"inner":this.targetEl.innerHTML=t;break;default:this.targetEl.replaceWith(t);break}this.asyncContentLoaded=!0,document.querySelector("body")?.dispatchEvent(new Event("asyncReady"))}).catch(t=>{e&&e.remove(),t.status&&t.status>0?window.ThiemeCore.errorHandler(window.ThiemeCore.Lang.translate("common:error.request."+t.status+".message",null,"An error occurred while loading the content."),window.ThiemeCore.Lang.translate("common:error.request."+t.status+".title",null,"Error"),"warning",this.el):window.ThiemeCore.errorHandler(window.ThiemeCore.Lang.translate("common:error.general.message",null,"An error occurred while loading the content."),window.ThiemeCore.Lang.translate("common:error.general.title",null,"Error"),"warning",this.el)})}};var ms=St;var vo='[data-bs-toggle="scrollto"],[data-bs-toggle="anchor"]',xt={offset:0,behavior:"smooth"},Be=class a extends O{constructor(){super(...arguments);this.options=xt;this.isLoaded=!1}static{d(this,"ScrollTo")}init(){this.options=this.assignConfig(xt,this.config);let t=document.querySelector(".th-page-header");t&&window.getComputedStyle(t).position=="fixed"&&(this.options.offset=t.offsetHeight+5);let i=this.options.target??this.element.dataset.target??this.element.getAttribute("href")??"";if(i!=""&&i!="#")try{this.targetElement=document.querySelector(i),this.element.setAttribute("data-origin-href",this.element.getAttribute("href")??""),this.element.setAttribute("href","#")}catch{}}process(){this.targetElement&&this.element.addEventListener("click",t=>{a.scrollTo(this.targetElement,this.options),t.preventDefault()})}static scrollTo(t,i=null){if(i==null&&(i=xt),typeof t!=null&&t!=null){let s=null;if(t instanceof HTMLElement?s=t:typeof t=="string"&&(s=document.querySelector(t)),s&&s!=null){let o=s.getBoundingClientRect().top+window.pageYOffset-(i.offset??0);window.scrollTo({top:o,behavior:i.behavior||"auto"})}}}};Be.initializeDom(vo,!0,!1,!0);var Y=Be;var be=class{constructor(){this.elementMap=new Map}static{d(this,"InitializationManager")}add(e){this.elementMap.has(e)||this.elementMap.set(e,new Set)}addElement(e,t){this.add(e),this.elementMap.has(e)||this.elementMap.set(e,new Set),this.elementMap.get(e).add(t)}has(e){return this.elementMap.has(e)}hasElement(e,t){return!!(this.elementMap.has(e)&&this.elementMap.get(e).has(t))}delete(e){this.elementMap.has(e)&&this.elementMap.delete(e)}deleteElement(e,t){this.elementMap.has(e)&&this.elementMap.get(e).delete(t)}};var wo='[data-th-toggle="attribute"]',fs={target:"",attribute:"class",toggleValue:"show",toggleMode:0,storeState:!1,storeId:"",initialState:!1,parent:"",aria:""},qe=class extends O{constructor(){super(...arguments);this.options=fs;this.isLoaded=!1;this.attributeInitialValue="";this.currentState=0}static{d(this,"AttributeToggler")}init(){this.options=this.assignConfig(fs,this.config);let t=this.options.target!==""?this.options.target:this.element.getAttribute("data-th-target")??null;if(t===null&&(this.element.getAttribute("href")??"")!=="#"&&(t=this.element.getAttribute("href")),t&&t!==""){let i=document;this.options.parent&&this.options.parent!==""&&document.querySelector(this.options.parent)&&(i=document.querySelector(this.options.parent)),this.targetElement=i.querySelector(t)}}process(){if(this.targetElement){this.targetElement.hasAttribute(this.options.attribute)||this.targetElement.setAttribute(this.options.attribute,""),this.attributeInitialValue=this.targetElement.getAttribute(this.options.attribute)??"";let t=this.options.aria;t!==""&&(this.element.hasAttribute("aria-"+t)||this.element.setAttribute("aria-"+t,"false")),this.element.removeAttribute("href"),this.element.addEventListener("click",i=>{this.toggle()}),this.options.initialState&&this.options.initialState===!0&&(this.currentState=1),this.options.storeState&&this.options.storeId&&this.options.storeId!==""&&window.localStorage.getItem(this.options.storeId)&&(this.currentState=parseInt(window.localStorage.getItem(this.options.storeId)??"0")),this.currentState>0?this.show():this.hide()}}show(){this.toggle(!0)}hide(){this.toggle(!1)}toggle(t){if(this.targetElement==null)return;
28let i=this.options.toggleValue,s=this.options.toggleMode??1,n=this.options.attribute,o=this.options.aria,r=!1;n==="class"?(r=!0,i.split(" ").forEach(c=>{this.targetElement.classList.toggle(c,t),this.targetElement.classList.contains(c)||(r=!1)})):typeof t!==null?t?(this.targetElement.setAttribute(n,i),r=!0):s>0?this.targetElement.removeAttribute(n):this.targetElement.setAttribute(n,this.attributeInitialValue):s>0?this.targetElement.hasAttribute(n)?this.targetElement.removeAttribute(n):(this.targetElement.setAttribute(n,i),r=!0):this.targetElement.getAttribute(n)===i?this.targetElement.setAttribute(n,this.attributeInitialValue):(this.targetElement.setAttribute(n,i),r=!0),this.element.hasAttribute("aria-"+o)&&this.element.setAttribute("aria-"+o,r?"true":"false"),r?this.currentState=1:this.currentState=0,this.options.storeState&&this.options.storeId&&this.options.storeId!==""&&window.localStorage.setItem(this.options.storeId,this.currentState.toString())}};qe.initializeDom(wo,!1,!1,!0);var Mt=qe;var _=class extends O{static{d(this,"ContentElement")}};var Eo=".th-fsc-csl",gs={url:"",mode:0,delay:0,cache:0,cacheLifetime:3600,cacheIdentifier:"",contextCssSelector:"",mediaMinWidth:0,mediaMaxWidth:0,placement:"after",loader:!0,lookingAhead:!0},We=class extends _{constructor(){super(...arguments);this.options=gs;this.isLoaded=!1}static{d(this,"CslContainer")}init(){this.options=this.assignConfig(gs,this.config)}process(){let t=!0,i=window.screen.width;if(this.element.addEventListener("loadContent",()=>{this.fetchContent()}),this.options.mediaMinWidth>0&&i<this.options.mediaMinWidth&&(t=!1),this.options.mediaMaxWidth>0&&i>this.options.mediaMaxWidth&&(t=!1),!t)return;let s=null;if(this.options.contextCssSelector){let n=this.options.contextCssSelector,o=0;switch(n.substring(0,1)==="^"?(o=1,n=n.substring(1)):n.substring(0,1)==="*"&&(o=2,n=n.substring(1)),s=this.element.querySelector(n),o){case 1:s=this.element.closest(n);break;case 2:s=document.querySelector(n);break}}switch(s==null&&(s=this.element),this.options.mode){case 0:this.fetchContent();break;case 1:s.setAttribute("data-loader","containerLoader"),new IntersectionObserver(c=>{c[0].intersectionRatio<=0||this.fetchContent()}).observe(s);break;case 2:let o=s!=this.element?s:null;if(o==null){let c=this.element.parentElement;for(;c!=null;){let l=c.getBoundingClientRect();if(c.classList.contains("offcanvas")&&l.left<0||c.style.display=="none"){o=c;break}c=c.parentElement}}if(o!=null){let c=o.getBoundingClientRect();new MutationObserver((h,u)=>{h.forEach(p=>{let m=o.getBoundingClientRect();p.type=="attributes"&&o.style.display!="none"&&(m.left>-1||m.left>c.left)&&this.fetchContent(),c=m})}).observe(o,{attributes:!0})}else this.fetchContent();break;case 3:let r=s!=this.element?s:this.element.querySelector(".btn-load");r&&r.addEventListener("click",()=>{this.fetchContent()});break}}loadContent(){this.fetchContent()}get isContentLoaded(){return this.isLoaded}fetchContent(){if(!this.isLoaded&&this.options.url!=""){let t=!0,i=Math.round(new Date().getTime()/1e3),s=this.options.cache>1?window.localStorage:window.sessionStorage;if(this.options.cache>0&&s){let n=s.getItem(this.options.cacheIdentifier);if(n){let o=JSON.parse(n);parseInt(o?.lifetime)>=i?(t=!1,this.parseContent(o.content)):s.removeItem(this.options.cacheIdentifier)}}if(t){let n=null;this.options.loader&&(n=document.createElement("div"),n.setAttribute("class","d-flex justify-content-center"),n.innerHTML='<div class="spinner-border text-th-gray" role="status"><span class="sr-only">Lade...</span></div>'),window.setTimeout(()=>{n&&this.element.parentNode?.insertBefore(n,this.element),fetch(this.options.url).then(o=>{if(o.status!==200&&o.status!==503)throw Error(o.statusText,{cause:o.status});return o.text()}).then(o=>{n&&n.remove(),this.options.cache&&s&&s.setItem(this.options.cacheIdentifier,JSON.stringify({content:o,lifetime:i+this.options.cacheLifetime})),this.parseContent(o),window.dispatchEvent(new Event("contentUpdated")),this.element.dispatchEvent(new Event("contentLoaded"))}).catch(o=>{console.error(o),n&&n.remove()}).finally(()=>{n&&n.remove()})},this.options.delay)}this.isLoaded=!0}}parseContent(t){let i=new DOMParser().parseFromString(t,"text/html"),s=i.querySelector("#th_csh_container_
28content");if(s){this.element.innerHTML=s.innerHTML;let n=window.document.querySelector("head"),o=window.document.querySelector("body");i.querySelectorAll("head *,body > script").forEach(r=>{if(r instanceof HTMLScriptElement){let c=!0;if(r.getAttribute("src")!==null&&document.querySelectorAll("script").forEach(h=>{h.getAttribute("src")!==null&&h.getAttribute("src")===r.getAttribute("src")&&(c=!1)}),!c)return;let l=document.createElement("script");for(let h in r.attributes){let u=r.attributes[h];u.value!=null&&l.setAttribute(u.name,u.value)}r.src?l.src=r.src:r.textContent?l.textContent=r.textContent:r.innerText&&(l.innerText=r.innerText),r.closest("body")?o.appendChild(l):n.appendChild(l)}else(r instanceof HTMLStyleElement||r instanceof HTMLLinkElement&&r.getAttribute("rel")==="stylesheet")&&n.appendChild(r)}),window.ThiemeMaintemplate.updateLayouts()}}};We.initializeDom(Eo,!0,!1,!0);var Ct=We;var H=window.bootstrap,I=new be,Lo={identifier:"",className:"",style:"",heading:{className:"toast-header"},body:{className:"toast-body"},content:{className:"content"},delay:0},re=class{constructor(){this.isMobile=!1;this.screenSize="xs";this.screenSizeInt=0;this.lang="en";this.initialOauthRedirectCookieValue="";this.lang=window.ThiemeCore.Lang.getCurrentLanguage(),this.init()}static{d(this,"Maintemplate")}init(){document.readyState=="loading"?document.addEventListener("DOMContentLoaded",this.initDom):this.initDom(),window.addEventListener("resize",t=>{this.updateDom()}),window.addEventListener("orientationchange",t=>{this.updateDom()}),window.addEventListener("message",t=>{t.isTrusted&&t.data&&t.data.command&&this.handleMessage(t.data.command,t.data)}),this.initialOauthRedirectCookieValue=window.ThiemeCore.getCookie("oauth_redirect");let e=window.ThiemeCore.Config.get("colorSchemeMode","");if(window.matchMedia&&e!=""){let t=document.querySelector("html");if(e=="dark")t.setAttribute("data-bs-theme","dark");else{let i=d(function(s=!1){s?t.setAttribute("data-bs-theme","dark"):t.removeAttribute("data-bs-theme")},"updateTheme");i(window.matchMedia("(prefers-color-scheme: dark)").matches),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>{i(s.matches)})}}}initDom(){this.updateScreenSize();let e=document.querySelector("html");e&&(e.classList.remove("no-js"),e.classList.add("js-enable"));let t=parseInt(window.ThiemeCore.Config.get("canonicalLinkSolution","0"));if(t>0){let o=document.querySelector('link[rel="canonical"]');o&&(t>1?o.setAttribute("rel","canonical-off"):o.remove())}document.querySelectorAll(".modal").forEach(o=>{o.parentElement.classList.contains("th-fsc-popup-wrapper")||o.parentElement.classList.contains("th-fsc-popup-wrapper")?document.body.appendChild(o.parentElement):document.body.appendChild(o)});let i=document.querySelector("#th_page_service");if(i&&document.body.appendChild(i),document.querySelectorAll("span.enc").forEach(o=>{let r=o.dataset.enc??"";r=r.replace(/\[.*?\]/ig,""),r=atob(r),o.after(r),o.remove()}),document.body.addEventListener("asyncReady",()=>{this.updateDom()}),window.location.href.indexOf("#")>-1){let o=window.location.href.substring(window.location.href.indexOf("#"));o&&o!="#"&&parseInt(o.substring(0,1))<1&&document.querySelector(o)&&this.scrollTo(o)}let s=document.querySelector("#th_page_service");if(s){let o=H.Offcanvas.getOrCreateInstance(s),r=document.querySelector("#th_page_service_tab_menu"),c=H.Tab.getOrCreateInstance(r),l=document.querySelector("#btn_trigger_th_page_service");l&&l.addEventListener("click",()=>{c.show();let f=r.querySelector(".th-page-nav-main-menu > .nav > .nav-item:first-child > .nav-link");f&&(f.tabIndex=-1,f.focus())});let h=document.querySelector("#th_page_nav_search_button"),u=document.querySelector("#th_page_service_tab_search");if(h&&u){let f=H.Tab.getOrCreateInstance(u),g=document.querySelector("#th_page_service_search_tabpane");h.addEventListener("click",b=>{b.preventDefault();let w=g?.querySelector('input[name="q"]');return s.classList.contains("show")?u.classList.contains("active")?o.show():(f.show(),window.setTimeout(function(){w.focus()},500)):(o.show(),f.show(),window.setTimeout(function(){w&&w.focus()},500)),!1})}let p=document.querySelector("#th_header_service_btn_user");if(p){let f=document.querySelector("#th_page_service_tab_user"),g=H.Tab.getOrCreateInstance(f),b=document.querySelector("#th_page_service_user_tabpane");if(p.addEventListener("click",w=>{w.preventDefault();let y=b.querySelector('input[name="user"]');s.classList.contains("show")?f.classList.contains("active")?o.show():(g.show(),window.setTimeout(function(){y&&y.focus()},500)):(b.querySelector(".login-info").innerHTML="",b.querySelector(".login-info").classList.add("d-none"),o.show(),g.show(),window.setTimeout(function(){y&&y.focus()},500))}),!document.querySelector(".th-page-main .login-error")&&(window.location.href.indexOf("promptLogin=1")>-1||window.location.href.indexOf("tx_felogin_pi1")>-1&&window.location.href.indexOf("/login/")<0||document.querySelector("#th_page_service_user_tabpane .login-error"))){let w=new Event("click");p.dispatchEvent(w)}}let m=document.querySelector("#th_header_service_btn_accessibility");if(m){let f=document.querySelector("#th_page_service_tab_accessibility"),g=H.Tab.getOrCreateInstance(f);m.addEventListener("click",b=>(b.preventDefault(),s.classList.contains("show")?f.classList.contains("active")?o.show():g.show():(o.show(),g.show()),!1))}}document.querySelectorAll(".th-page-nav-overlay-menu .dropdown-menu").forEach(o=>{H.Dropdown.getOrCreateInstance(o)&&o.offsetWidth<o.parentElement.offsetWidth&&o.parentElement.addEventListener("shown.bs.dropdown",c=>{let l=(o.parentElement.offsetWidth-o.offsetWidth)/2;o.style.left=l+"px"})});let n=document.querySelector(".th-page-header-meganav");if(n){let o=n.querySelector(".megamenu-items");if(o){let r=document.body.style.getPropertyValue("overflow-y"),c=d(()=>{let l=o.getBoundingClientRect(),h=window.innerHeight-l.top-45;o.querySelectorAll(".item-nav, .item-content").forEach(u=>{u.style.setProperty("max-height",h+"px")}),document.body.style.setProperty("overflow-y",r),o.querySelectorAll(".megamenu-item.show").length>0&&document.body.style.setProperty("overflow-y","hidden")},"updateLayout");n.querySelectorAll(".collapse").forEach(l=>{let h=n.querySelector('[data-bs-target="#'+l.getAttribute("id")+'"]');
28if(h){let u=h.closest(".nav-item");u&&(l.addEventListener("shown.bs.collapse",p=>{u.classList.add("activated"),c()}),l.addEventListener("hidden.bs.collapse",p=>{u.classList.remove("activated"),c()}))}}),document.body.addEventListener("click",l=>{let h=l.target;!n.contains(h)&&n.querySelector(".show")&&(n.querySelectorAll(".collapse").forEach(u=>{H.Collapse.getOrCreateInstance(u,{toggle:!1}).hide()}),c())}),window.addEventListener("resize",()=>{c()}),window.addEventListener("orientationchanged",()=>{c()}),c()}}this.initSearch(),this.updateDom()}initSearch(){this.handleSearch(),window.addEventListener("contentUpdated",e=>{this.handleSearch()})}handleSearch(){let e=document.querySelector("#th_page_service_tab_search");if(e==null)return;let t="";if(window.sessionStorage){let s=document.querySelector(".th-page-main #tx-solr-search,.th-page #tx-indexedsearch");if(s){let n=s.cloneNode(!0);n.querySelectorAll(".lazy-container").forEach(o=>{o.remove()}),n.querySelector(".results-list")||n.querySelector(".tx-indexedsearch-results")?sessionStorage.setItem("searchResults",n.innerHTML):sessionStorage.removeItem("searchResults")}else t=sessionStorage.getItem("searchResults")??""}let i=document.querySelector("#th_page_service_search_tabpane");if(i){let s=H.Tab.getOrCreateInstance(e),n=i.querySelector(".search-form"),o=i.querySelector(".search-results-wrapper");n&&o&&(o.style.display="none",n.style.display="block",t&&t!=""&&(n.style.display="none",o.style.display="block",s.show(),o.innerHTML=t))}}handleMessage(e,t){if(e==="showLogin"){let i=t.message??"";this.showLogin(i)}}updateCssHelperClasses(){document.querySelectorAll(".row, .content-wrapper").forEach(e=>{let t={},i=0,s=0,n=0,o=e.parentElement,r=!1,c=!1;if(o){let h=0;for(let u of o.children)h++,u===e&&(h===1&&(c=!0),h===o.children.length&&(r=!0))}for(let h of e.children)h instanceof HTMLElement&&(h.classList.remove("first-child-el","last-child-el","first-row-el","last-row-el","first-offsetline-el","last-offsetline-el","first-inline-el","last-inline-el"),s++,s===1&&(h.classList.add("first-row-el"),c&&h.classList.add("first-child-el")),s===e.children.length&&(h.classList.add("last-row-el"),r&&h.classList.add("last-child-el")),h.offsetTop>n&&(n=h.offsetTop,i++),typeof t[i]>"u"&&(t[i]=[]),t[i].push(h));i=0;let l=Object.keys(t).length;for(let h in t){i++;let u=t[h],p=u.length,m=0;u.forEach(f=>{i===1&&f.classList.add("first-offsetline-el"),i===l&&f.classList.add("last-offsetline-el"),m++,m===1&&f.classList.add("first-inline-el"),m===p&&f.classList.add("last-inline-el")})}})}updateScreenSize(){this.isMobile=!0;let e=document.querySelector("html");e.classList.remove("screen-xxs"),e.classList.remove("screen-xs"),e.classList.remove("screen-sm"),e.classList.remove("screen-md"),e.classList.remove("screen-lg"),e.classList.remove("screen-xl");let t=window.screen.width,i="xs",s=0,n=document.createElement("div");n.setAttribute("style","height: 1in; left: -100%; position: absolute; top: -100%; width: 1in;"),document.body.append(n);let o=n.offsetHeight;o<72&&(o=72),n.remove(),t>=576&&(i="sm",s=1,this.isMobile=!1),t>=768&&(i="md",s=2),t>=992&&(i="lg",s=3),t>=1200&&(i="xl",s=4),t>=1400&&(i="xxl",s=5),t>=3840&&(i="4k",s=6),t>=7680&&(i="8k",s=7),e.classList.add("screen-"+i),e.classList.add("screen-dpi-"+o),t<480&&(e.classList.add("screen-xxs"),i="xxs",s=-1),this.screenSize=i,this.screenSizeInt=s}prepareMedias(){document.querySelectorAll("iframe.vsh-player[data-chapters]").forEach(e=>{if(!I.hasElement("iframe",e)){if(e.dataset.chapters&&e.dataset.chapters!==""){let t=JSON.parse(decodeURIComponent(e.dataset.chapters)),i=t.options,s=t.items,n=document.createElement("div");n.setAttribute("class","media-chapters-wrapper");let o=document.createElement("div");o.setAttribute("class","media-chapters list-group"),n.appendChild(o),s.forEach(r=>{let c=document.createElement("a");c.setAttribute("class","list-group-item list-group-item-action"),c.addEventListener("click",h=>(h.preventDefault(),e.contentWindow?.postMessage({auftrag:"spuleZuSek",inhalt:r.seconds},"*"),!1));let l=document.createElement("div");l.setAttribute("class","row align-items-baseline"),l.innerHTML+='<div class="col-8"><span class="title">'+r.text+"</span></div>",i.hideCuepoint&&(l.innerHTML+='<div class="col-4 text-end text-small"><span class="cuepoint">'+r.cuepoint+"</span>"),c.appendChild(l),o.appendChild(c)}),e.closest("figure")?.after(n)}I.addElement("iframe",e)}}),document.querySelectorAll('*[data-toggle="media-chapter"],*[data-toggle="media-seek"]').forEach(e
28=>{I.hasElement("media-chapters",e)||(e.addEventListener("click",t=>{t.preventDefault();let i=parseInt(e.dataset.seconds),s=e.dataset.cuepoint;if(typeof s<"u"){let o=s.split(":"),r=new Date;r.setHours(parseInt(o[0])),r.setMinutes(parseInt(o[1])),r.setSeconds(parseInt(o[2]));let c=r.getTime();r=new Date,r.setHours(0),r.setMinutes(0),r.setSeconds(0),i=(c-r.getTime())/1e3}let n;if(e.dataset.bsTarget?n=document.querySelector(e.dataset.bsTarget):n=e.closest(".ce-textmedia,.article").querySelector("iframe.vsh-player,video,audio"),typeof i<"u"&&n){switch(n.constructor){case HTMLIFrameElement:n.contentWindow?.postMessage({auftrag:"spuleZuSek",inhalt:i},"*");break;case HTMLVideoElement:n.currentTime=i;break;case HTMLAudioElement:n.currentTime=i;break}this.scrollTo(n)}return!1}),I.addElement("media-chapters",e))})}prepareReferenceLinks(){document.querySelectorAll(".th-page-main").forEach(e=>{e.querySelectorAll("ol.reference-list-auto").forEach((t,i)=>{if(I.hasElement("reference-links",t))return;let s="popover";if(t.classList.contains("reference-mode-anchor")&&(s="anchor"),t.children.length>0){let n=d(function(o){if(!(!o||o===t||o.closest(".reference-list-auto")!==null||I.hasElement("reference-links-prepared-items",o))){if(o.children&&o.children.length>0)for(let r=0;r<o.children.length;r++)n(o.children[r]);o.nodeType===1&&(o.querySelectorAll("sup").forEach(r=>{let c=[],l=r.textContent.split(",");for(let h in l){let u=parseInt(l[h]);u>0&&t.children.item(u-1)&&c.push('<a href="#" class="autoref-link" data-refindex="'+(u-1)+'">'+u+"</a>")}c.length>0&&(r.innerHTML=c.join(", "))}),o.textContent.match(/\[\d.*?\]/ig)&&(o.innerHTML=o.innerHTML.replace(/\>.*?</ig,r=>(r=r.replace(/\[\d.*?\]/ig,c=>{let l=c.match(/(\[)(.*?)(\])/i);if(l[2]&&l[0].indexOf("[[")<0){let h=[],u=l[2].split(",");for(let p in u){let m=parseInt(u[p]);m>0&&t.children.item(m-1)&&h.push('<a href="#" class="autoref-link" data-refindex="'+(m-1)+'">'+m+"</a>")}return h.length>0?l[1]+h.join(", ")+l[3]:l[0]}return null}),r)))),I.addElement("reference-links-prepared-items",o)}},"replaceRecursive");n(e),e.querySelectorAll(".autoref-link").forEach(o=>{let r=o.dataset.refindex?parseInt(o.dataset.refindex):0,l=e.querySelectorAll("ol.reference-list-auto")[i].children[r];o.removeAttribute("href"),l&&(s==="popover"?H.Popover.getOrCreateInstance(o,{trigger:"click hover",placement:"bottom",html:!0,content:l.innerHTML}):o.addEventListener("click",function(h){window.scrollTo(0,l.offsetTop),h.preventDefault()}))})}I.addElement("reference-list",t)})})}updateLayouts(){document.querySelectorAll("[data-adjust-height-of]").forEach(i=>{this.adjustHeight(".tab-content",i.dataset.adjustHeightOf,null,i.parentElement)}),this.adjustHeight(".tab-content",".tab-pane",".frame,.card",document.querySelectorAll(".th-fsc-tab[data-adjust-height]")),this.adjustHeight(".carousel-inner",".carousel-item",null,document.querySelectorAll(".carousel[data-adjust-height]")),this.adjustHeight(".row",".th-fsc-cc-col",".frame,.card",document.querySelectorAll(".th-fsc-cc[data-adjust-height]")),this.adjustHeight(".adjust-children-height","*","",document.querySelector("body"),function(i,s){document.querySelectorAll(s).forEach(n=>{n.style.height=i+"px"})}),this.adjustHeight(".row[data-adjust-height]",".col > .article"),document.querySelectorAll(".th-page-main .th-asset-ad .ad-content").forEach(i=>{i.offsetHeight>0&&!i.classList.contains("my-4")&&i.classList.add("my-4")});let e=document.querySelector(".th-page-footer-overlay"),t=document.querySelector(".th-page-wrapper");e&&(t.style.paddingBottom=e.offsetHeight+20+"px")}toast(e="",t="",i){let s={...Lo,...i};if(this.toastContainer==null){this.toastContainer=document.createElement("div"),this.toastContainer.classList.add("th-page-toast-container");let u=document.querySelector(".th-page-footer-overlay");this.toastContainer.style.bottom=u&&u.style.getPropertyValue("display")!=="none"?u.offsetHeight+"px":"0px",document.body.appendChild(this.toastContainer)}s.identifier!=""&&document.querySelector("#"+s.identifier)!=null&&document.querySelector("#"+s.identifier)?.remove();let n=document.createElement("div");n.setAttribute("id",s.identifier),n.setAttribute("role","alert"),n.classList.add("toast"),s.className&&s.className!=""&&n.classList.add(...s.className.split(/ /)),s.style&&s.style!=""&&n.setAttribute("style",s.style);let o=document.createElement("div");s.heading.className&&s.heading.className!=""&&o.classList.add(...s.heading.className.split(/ /)),o.innerHTML=` 29 <strong class="flex-fill">${e}</strong> 30 <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button> 31 `,n.append(o);let r=document.createElement("div");s.body.className&&s.body.className!=""&&r.classList.add(...s.body.className.split(/ /));let c=document.createElement("div");s.content.className&&s.content.className!=""&&c.classList.add(...s.content.className.split(/ /)),c.innerHTML=t,r.append(c),n.append(r),this.toastContainer.append(n);let l={animation:!0,delay:s.delay,autohide:!0};s.delay<1&&(l.autohide=!1);let h=H.Toast.getOrCreateInstance(n,l);n.addEventListener("hidden.bs.toast",()=>{n.remove()}),h.show()}adjust(e,t,i,s=null,n=null,o=null){let r=d(function(l,h,u,p=null,m,f=null){m.querySelectorAll(h).forEac
31h(b=>{let w=0,y={},S=0,x=[];b.querySelectorAll(u).forEach(L=>{let E=L;p&&p!=""&&L.querySelector(p)&&(E=L.querySelector(p)),E&&(l=="width"?E.style.minWidth="":E.style.minHeight="",x.push(E))}),x.forEach(L=>{let E=L;p&&p!=""&&L.querySelector(p)&&(E=L.querySelector(p));let M=E.offsetTop,A=l=="width"?E.offsetWidth:E.offsetHeight,C=E.cloneNode(!0);Object.assign(C.style,{overflow:"auto",height:"auto",maxHeight:"none",opacity:"0",visibility:"hidden",display:"block",minHeight:""}),E.after(C);let D=window.getComputedStyle(E),he=parseFloat(D.marginTop)+parseFloat(D.marginBottom);A=C.offsetHeight+he,l=="width"&&(he=parseFloat(D.marginLeft)+parseFloat(D.marginRight),A=C.offsetHeight+he),C.remove(),typeof y[M]>"u"&&(y[M]={items:[],min:0},S=0),A>w&&(w=A),A>S&&(S=A),y[M].items.push(E),y[M].min=S});for(let L in y){let E=y[L];E.items.forEach(M=>{p&&p!=""&&M.querySelector(p)&&(M=M.querySelector(p));let A=b.classList.contains("row")?E.min:w;A>0&&(l=="width"?M.style.minWidth=A+"px":M.style.minHeight=A+"px"),typeof f=="function"&&f(w,h,u,p,m)})}})},"adjust"),c=[];n instanceof HTMLElement?c.push(n):n instanceof NodeList?n.forEac
31h(l=>{c.push(l)}):n===null&&c.push(document.body),c.length>0&&c.forEach(l=>{ne.imagesLoaded(l).then(()=>{r(e,t,i,null,l,o)})})}adjustWidth(e,t,i=null,s=null,n=null){this.adjust("width",e,t,i,s,n)}adjustHeight(e,t,i=null,s=null,n=null){this.adjust("height",e,t,i,s,n)}updateDom(){if(this.updateLayouts(),this.updateScreenSize(),this.updateCssHelperClasses(),this.prepareReferenceLinks(),document.querySelector(".th-page-header")){let s=document.querySelector(".th-page-aside .aside-content")}if(this.toastContainer){let s=document.querySelector(".th-page-main");this.toastContainer.style.top=s!=null?s.offsetTop+"px":"100px"}document.querySelectorAll("img[data-link]").forEach(s=>{s.dataset.isImageLinkInitialized||(s.style.cursor="pointer",s.addEventListener("click",n=>{let o=s.dataset.link??"",r="";o.search("_blank")>-1&&(o=o.substring(0,o.search("_blank")),r="_blank"),r!=""?window.open(o,r):window.location.href=o}),s.dataset.isImageLinkInitialized="true")}),document.querySelectorAll(".nav-autocut,.nav-fit").forEach(s=>{if(s.style.display.search("flex")>-1&&s.style.flexDirection==="column"||I.hasElement("nav-autocut",s))return;let n=0,o=s.style.width,r=s.style.height,c=s.style.overflow,l=s.style.overflowY,h=document.createElement("ul");h.classList.add("dropdown-menu");let u=document.createElement("a");u.classList.add("nav-link"),u.setAttribute("href","#"),u.setAttribute("data-bs-toggle","dropdown"),u.setAttribute("data-bs-config",'{ "autoClose": "outside" }'),u.innerHTML='<span class="bi bi-three-dots icon-lg"></span><span class="sr-only">Mehr...</span>';let p=s.querySelectorAll("li"),m,f=d(()=>{if(window.screen.width===n)return;n=window.screen.width,s.style.width=o,s.style.height=r,s.style.overflow=c,s.classList.remove("cutted"),p.forEach(L=>{let E=L.dataset.initialClass??"";E!==""&&L.setAttribute("class",E),s.append(L)}),m?.remove(),m=null;let b=[],w,y=0;p.forEach(L=>{let E=L.getBoundingClientRect();typeof w>"u"&&(w=E.top),E.top>w?y++:b.push(E.height)});let S=s.getBoundingClientRect();s.style.width=S.width+"px",s.style.overflowY="hidden",s.style.height=Math.max(...b)+"px";let x=s.offsetWidth;if(y>0){let L=[];p.forEach(E=>{x-=E.offsetWidth,(E.offsetTop>w||x-60<0)&&L.push(E)}),L.forEach(E=>{E.classList.contains("dropdown")&&(E.dataset.initialClass=E.getAttribute("class")??"",E.classList.remove("dropdown"),E.classList.add("dropend")),h.append(E)}),m=document.createElement("li"),m.classList.add("nav-item","dropdown","nav-item-split"),m.appendChild(u),m.appendChild(h),s.append(m),s.classList.add("cutted")}s.style.overflowY=l},"updateVisual"),g;window.addEventListener("resize",()=>{window.clearTimeout(g),g=window.setTimeout(f,100)}),window.addEventListener("orientationchange",()=>{window.clearTimeout(g),g=window.setTimeout(f,100)}),f(),I.addElement("nav-autocut",s)}),parseInt(window.ThiemeCore.Config.get("enableRestrictedPageLinkHandler",0))>0&&document.querySelectorAll("a,.btn-show-login").forEach(s=>{I.hasElement("show-login",s)||(s.getAttribute("href")&&s.getAttribute("href").search("#restricted-page")>-1||s.dataset.loginRequired&&parseInt(s.dataset.loginRequired)>0||s.dataset.login&&parseInt(s.dataset.login)>0||s.classList.contains("btn-show-login"))&&(s.addEventListener("click",n=>{n.preventDefault();let o=n.target.closest(".dropdown-menu");if(o){let l=o.parentElement?.querySelector('[data-bs-target="#'+o.getAttribute("id")+'"]');if(l){let h=H.Dropdown.getOrCreateInstance(l);h&&h.hide()}}let r=window.ThiemeCore.Lang.translate("login.required");s.dataset.message&&(r=s.dataset.message);let c="";return s.getAttribute("href")&&s.getAttribute("href")!="#"&&(c=s.getAttribute("href")),this.showLogin(r,c),!1}),I.addElement("show-login",s))}),document.querySelectorAll('[data-action="login"],[data-toggle="login"],[href="#showLogin"]').forEach(s=>{I.hasElement("show-login",s)||(s.addEventListener("click",n=>{n.preventDefault();let o="";s.dataset.message&&(o=s.dataset.message);let r="";s.getAttribute("href")!="#"&&s.getAttribute("href")!="#showLogin"&&(r=s.getAttribute("href")??""),this.showLogin(o,r)}),I.addElement("show-login",s))}),document.querySelectorAll(".anchor,[data-anchor]").forEach(s=>{if(I.hasElement("anchor-link",s))return;let n=s.dataset.target??s.getAttribute("href")??"";n!==""&&n!=="#"&&Y.getOrCreateInstance(s,{target:n}).process(),I.addElement("anchor-link",s)}),document.querySelectorAll('a[target="window"]').forEach(s=>{if(!this.isMobile){if(I.hasElement("target-window",s))return;s.addEventListener("click",n=>(window.open(s.getAttribute("href"),"","menubar=yes,width=800,height=600"),!1)),I.addElement("target-window",s)}}),document.querySelectorAll('a[target="_popup"],a[target="_modal"],a[data-target="popup"],a[data-target="modal"],a[data-bs-target="popup"],a[data-bs-target="modal"]').forEach(s=>{I.hasElement("modal-toggle",s)||(s.addEventListener("click",n=>{n.preventDefault();let o=s.getAttribute("title")??s.dataset.popupTitle??"",r=document.createElement("iframe");return r.setAttribute("src",s.getAttribute("href")),r.setAttribute("frameborder","0"),r.setAttribute("scrolling","auto"),r.setAttribute("loading","lazy"),r.style.width="100%",Fe.show(o,r,"xl",parseInt(s.dataset.popupWidth),parseInt(s.dataset.popupHeight),parseInt(s.dataset.popupBackdrop)>0),!1}),I.addElement("modal-toggle",s))}),document.querySelectorAll('[data-async="true"]').forEach(s=>{I.hasElement("async-loading",s)||(ms.load(s),I.addElement("async-loading",s))}),typeof H.Popover<"u"?(document.querySelectorAll('[data-toggle="popover"],[data-bs-toggle="popover"]').forEach(s=>{s.style.cursor="pointer",H.Popover.getOrCreateInstance(s,{content:s.dataset.bsContent||s.dataset.content||"",placement:"auto",trigger:s.dataset.bsTrigger||s.dataset.trigger||"click"})}),document.querySelectorAll("abbr").forEach(s=>{s.classList.add("custom"),s.style.cursor="pointer";let n,o=s.getAttribute("title")??"";s.removeAttribute("title");let r=H.Popover.getOrCreateInstance(s,{content:o,placement:"bottom",trigger:"hover",html:!0});s.addEventListener("click",()=>
31{r.toggle()}),s.addEventListener("hidden.bs.popover",()=>{window.clearTimeout(n)}),s.addEventListener("shown.bs.popover",()=>{n=window.setTimeout(function(){r.hide()},1e4),window.clearTimeout(n)})})):document.querySelectorAll("abbr").forEach(s=>{let n;s.addEventListener("click",()=>{s.classList.toggle("show"),s.classList.contains("show")?n=window.setTimeout(function(){s.classList.remove("show")},1e4):window.clearTimeout(n)})}),typeof H.Tooltip<"u"&&document.querySelectorAll('[data-toggle="tooltip"],[data-bs-toggle="tooltip"]').forEach(s=>{H.Tooltip.getOrCreateInstance(s,{title:s.dataset.bsConfig||s.dataset.title||"",trigger:s.dataset.bsTrigger||s.dataset.trigger||"click"}),s.style.cursor="pointer"}),document.querySelectorAll(".shariff").forEach(s=>{if(!I.hasElement("shariff",s)){if(document.querySelector("#comments")){let n='<span class="fas fa-comment"></span> <span class="share_text">kommentieren</span>';(s.querySelector("ul")?.classList.contains("icon")||s.querySelector("ul")?.classList.contains("icon-count"))&&(n='<span class="fas fa-comment"></span>'),s.querySelector("ul")?.prepend(` 32 <li class="shariff-button comment"> 33 <a href="#comments" title="kommentieren">${n}</a> 34 </li> 35 `),s.querySelector("li.shariff-button.comment > a")?.addEventListener("click",o=>{this.scrollTo("#comments")})}I.addElement("shariff",s)}});let t=document.querySelector(".th-banner-sky .banner-content"),i=document.querySelector(".th-page-main");if(t&&i){let s=t.offsetHeight-(i.offsetTop+i.offsetHeight);s>0&&i&&(i.style.minHeight=i.offsetHeight+s+"px")}document.querySelectorAll('[data-bs-toggle="collapse"],[data-bs-toggle="dropdown"],[data-bs-toggle="display"]').forEach(s=>{let n=s.dataset.initialState??s.dataset.bsInitialState??s.dataset.initialStatus??s.dataset.bsInitialStatus??"";if(n!==""){n=","+n.replace(/ /g,",")+",";let o=!1;switch((n.search(/,open,/i)>-1||n.search(/,show,/i)>-1)&&(o=!0),o||[{size:1,breakPoint:"sm"},{size:2,breakPoint:"md"},{size:3,breakPoint:"lg"},{size:4,breakPoint:"xl"},{size:5,breakPoint:"xxl"}].forEach(c=>{if(o)return!1;if(this.screenSizeInt>=c.size)return n.search(new RegExp(","+c.breakPoint+"-(open|show),","i"))>-1&&(o=!0),n.search(new RegExp(","+c.breakPoint+"-(close|hidden),","i"))>-1&&(o=!1),!1}),s.dataset.bsToggle??""){case"attribute":let c=Mt.getOrCreateInstance(s);o?c.show():c.hide();break;case"dropdown":let l=H.Dropdown.getOrCreateInstance(s);o?l.show():l.hide();break;case"collapse":let h=s.dataset.bsTarget??s.getAttribute("href")??"";if(h!==""){let u=document.querySelector(h);if(u){let p=H.Collapse.getOrCreateInstance(u,{toggle:o});o?p.show():p.hide()}}break}}}),document.querySelectorAll('[data-bs-toggle="dropdown"]').forEach(s=>{if(s.dataset.bsTarget){let n=document.querySelector(s.dataset.bsTarget);n&&s.addEventListener("shown.bs.dropdown",()=>{let o=window.innerHeight-50,r=document.querySelector(".th-page-header");r&&(o-=r.offsetHeight);let c=document.querySelector(".th-page-footer-overlay");c&&(o-=c.offsetHeight),n.offsetHeight>o&&(n.style.setProperty("overflow-y","auto"),n.style.setProperty("max-height",o+"px"))})}}),document.querySelectorAll(".carousel img").forEach(s=>{s.removeAttribute("loading")}),this.prepareMedias()}showLogin(e,t=""){let i=document.querySelector("#th_page_service"),s=H.Offcanvas.getOrCreateInstance(i),n=document.querySelector("#th_page_service_tab_user"),o=document.querySelector("#th_page_service_user_tabpane");if(o==null)return;i.addEventListener("hidden.bs.offcanvas",()=>{window.ThiemeCore.deleteCookie("oauth_redirect"),this.initialOauthRedirectCookieValue!==""&&window.ThiemeCore.setCookie("oauth_redirect",this.initialOauthRedirectCookieValue,120)});let r=H.Tab.getOrCreateInstance(n);s.show(),r.show();let c=d(()=>{let l=o.querySelector(".login-info"),h=o.querySelector('input[name="user"]');if(l&&(typeof this.loginAlertInfoDefaultContent>"u"&&(this.loginAlertInfoDefaultContent=l.innerHTML),e===""&&(e=this.loginAlertInfoDefaultContent),l.classList.remove("d-none"),e!==""?l.innerHTML=e:l.classList.add("d-none")),h&&h.focus(),t.indexOf("?")>
35-1&&(t=t.substring(0,t.indexOf("?"))),t!=""){let u=0,p;p=window.setInterval(()=>{let m=o.querySelector('input[name="redirect_url"]');m&&(m.value=t,u=5),u++,u>5&&window.clearInterval(p)},500),window.ThiemeCore.setCookie("oauth_redirect",t,120)}},"processLogin");o&&o.querySelector(".th-fsc-csl")?o.querySelectorAll(".th-fsc-csl").forEach(l=>{Ct.getOrCreateInstance(l).isContentLoaded?c():l.addEventListener("contentLoaded",()=>{c()})}):c()}getScreenSize(){return{key:this.screenSizeInt,size:this.screenSize}}scrollTo(e,t=null){Y.scrollTo(e,t)}};var At=class extends R{static{d(this,"ShowPasswordWidget")}process(){if(!this.element.parentElement?.classList.contains("input-group")){let s=document.createElement("div");this.element.after(s),s.classList.add("input-group"),s.append(this.element)}let e=document.createElement("div");e.classList.add("input-group-text","p-0"),this.element.after(e);let t=document.createElement("button");t.setAttribute("type","button"),t.setAttribute("class","btn btn-link"),t.setAttribute("title",window.ThiemeCore.Lang.translate("showPassword",null,"Show password")),t.setAttribute("tabindex","999");let i=document.createElement("i");i.setAttribute("class","bi bi-eye"),t.append(i),t.addEventListener("click",s=>{this.element.getAttribute("type")==="password"?(this.element.setAttribute("type","text"),i.setAttribute("class","bi bi-eye-slash"),t.setAttribute("title",window.ThiemeCore.Lang.translate("hidePassword",null,"Hide password"))):(i.setAttribute("class","bi bi-eye"),this.element.setAttribute("type","password"),t.setAttribute("title",window.ThiemeCore.Lang.translate("showPassword",null,"Show password"))),s.preventDefault()}),e.append(t)}},ys=At;var _t=class extends R{static{d(this,"CounterWidget")}process(){let e=this.element,t=document.createElement("div");t.setAttribute("class","mt-1 mb-1 badge-group char-counter-widget"),e.parentElement?.classList.contains("input-group")?e.parentElement?.after(t):e.after(t);let i=e.getAttribute("minlength")??e.dataset.minlength??"0",s=e.getAttribute("maxlength")??e.dataset.minlength??"0",n=parseInt(i),o=parseInt(s);if(n>0&&(t.innerHTML='<span class="badge badge-default">'+window.ThiemeCore.Lang.translate("minLength",{min:n.toString()},"Min length: {{min}} chars")+"</span>"),o>0){let r=document.createElement("span");r.setAttribute("class","badge badge-default"),t.append(r);let c=d(function(){let l=e.value.length;if(e.classList.contains("is-rte")){let u=document.createElement("div");u.innerHTML=e.value,l=u.textContent?u.textContent.length:0}let h=o-l;r.innerHTML=window.ThiemeCore.Lang.translate("charsLeft",{rest:h.toString()},"{{rest}} Chars left")},"updateCounter");e.addEventListener("keyup",()=>{c()}),e.addEventListener("change",()=>{c()}),e.addEventListener("keydown",l=>{let h=l.code?l.code.charCodeAt(0):l.keyCode;return!(e.value.length+1>o&&[8,46,35,36,37,38,39,40].indexOf(h)<0)}),c()}}},bs=_t;var ve=d((a,e)=>a.push.apply(a,e),"extend"),V=d(a=>a.sort((e,t)=>e.i-t.i||e.j-t.j),"sorted"),It=d(a=>{let e={},t=1;return a.forEach(i=>{e[i]=t,t+=1}),e},"buildRankedDictionary");var vs={4:[[1,2],[2,3]],5:[[1,3],[2,3],[2,4]],6:[[1,2],[2,4],[4,5]],7:[[1,3],[2,3],[4,5],[4,6]],8:[[2,4],[4,6]]};var Ot=2050,Pt=1e3,ws=vs,Es=10,Ls=1e4,je=10,$e=50,Ve=20,Ue=/^[A-Z\xbf-\xdf][^A-Z\xbf-\xdf]+$/,Ts=/^[^A-Z\xbf-\xdf]+[A-Z\xbf-\xdf]$/,Ss=/^[A-Z\xbf-\xdf]+$/,Ze=/^[^a-z\xdf-\xff]+$/,xs=/^[a-z\xdf-\xff]+$/,Ms=/^[^A-Z\xbf-\xdf]+$/,Cs=/[a-z\xdf-\xff]/,As=/[A-Z\xbf-\xdf]/,_s=/[^A-Za-z\xbf-\xdf]/gi,Is=/^\d+$/,ae=new Date().getFullYear(),Os={recentYear:/19\d\d|200\d|201\d|202\d/g},Ht=[" ",",",";",":","|","/","\\","_",".","-"],Ps=Ht.length;var Ge=class{static{d(this,"MatchDate")}match({password:e}){let t=[...this.getMatchesWithoutSeparator(e),...this.getMatchesWithSeparator(e)],i=this.filterNoise(t);return V(i)}getMatchesWithSeparator(e){let t=[],i=/^(\d{1,4})([\s/\\_.-])(\d{1,2})\2(\d{1,4})$/;for(let s=0;s<=Math.abs(e.length-6);s+=1)for(let n=s+5;n<=s+9&&!(n>=e.length);n+=1){let o=e.slice(s,+n+1||9e9),r=i.exec(o);if(r!=null){let c=this.mapIntegersToDayMonthYear([parseInt(r[1],10),parseInt(r[3],10),parseInt(r[4],10)]);c!=null&&t.push({pattern:"date",token:o,i:s,j:n,separator:r[2],year:c.year,month:c.month,day:c.day})}}return t}getMatchesWithoutSeparator(e){let t=[],i=/^\d{4,8}$/,s=d(n=>Math.abs(n.year-ae),"metric");for(let n=0;n<=Math.abs(e.length-4);n+=1)for(let o=n+3;o<=n+7&&!(o>=e.length);o+=1){let r=e.slice(n,+o+1||9e9);if(i.exec(r)){let c=[],l=r.length;if(ws[l].forEach(([u,p])=>{let m=this.mapIntegersToDayMonthYear([parseInt(r.slice(0,u),10),parseInt(r.slice(u,p),10),parseInt(r.slice(p),10)]);m!=null&&c.push(m)}),c.length>0){let u=c[0],p=s(c[0]);
35c.slice(1).forEach(m=>{let f=s(m);f<p&&(u=m,p=f)}),t.push({pattern:"date",token:r,i:n,j:o,separator:"",year:u.year,month:u.month,day:u.day})}}}return t}filterNoise(e){return e.filter(t=>{let i=!1,s=e.length;for(let n=0;n<s;n+=1){let o=e[n];if(t!==o&&o.i<=t.i&&o.j>=t.j){i=!0;break}}return!i})}mapIntegersToDayMonthYear(e){if(e[1]>31||e[1]<=0)return null;let t=0,i=0,s=0;for(let n=0,o=e.length;n<o;n+=1){let r=e[n];if(r>99&&r<Pt||r>Ot)return null;r>31&&(i+=1),r>12&&(t+=1),r<=0&&(s+=1)}return i>=2||t===3||s>=2?null:this.getDayMonth(e)}getDayMonth(e){let t=[[e[2],e.slice(0,2)],[e[0],e.slice(1,3)]],i=t.length;for(let s=0;s<i;s+=1){let[n,o]=t[s];if(Pt<=n&&n<=Ot){let r=this.mapIntegersToDayMonth(o);return r!=null?{year:n,month:r.month,day:r.day}:null}}for(let s=0;s<i;s+=1){let[n,o]=t[s],r=this.mapIntegersToDayMonth(o);if(r!=null)return{year:this.twoToFourDigitYear(n),month:r.month,day:r.day}}return null}mapIntegersToDayMonth(e){let t=[e,e.slice().reverse()];for(let i=0;i<t.length;i+=1){let s=t[i],n=s[0],o=s[1];if(n>=1&&n<=31&&o>=1&&o<=12)return{day:n,month:o}}return null}twoToFourDigitYear(e){return e>99?e:e>50?e+1900:e+2e3}};var K=new Uint32Array(65536),To=d((a,e)=>{let t=a.length,i=e.length,s=1<<t-1,n=-1,o=0,r=t,c=t;for(;c--;)K[a.charCodeAt(c)]|=1<<c;for(c=0;c<i;c++){let l=K[e.charCodeAt(c)],h=l|o;l|=(l&n)+n^n,o|=~(l|n),n&=l,o&s&&r++,n&s&&r--,o=o<<1|1,n=n<<1|~(h|o),o&=h}for(c=t;c--;)K[a.charCodeAt(c)]=0;return r},"myers_32"),So=d((a,e)=>{let t=e.length,i=a.length,s=[],n=[],o=Math.ceil(t/32),r=Math.ceil(i/32);for(let f=0;f<o;f++)n[f]=-1,s[f]=0;let c=0;for(;c<r-1;c++){let f=0,g=-1,b=c*32,w=Math.min(32,i)+b;for(let y=b;y<w;y++)K[a.charCodeAt(y)]|=1<<y;for(let y=0;y<t;y++){let S=K[e.charCodeAt(y)],x=n[y/32|0]>>>y&1,L=s[y/32|0]>>>y&1,E=S|f,M=((S|L)&g)+g^g|S|L,A=f|~(M|g),C=g&M;A>>>31^x&&(n[y/32|0]^=1<<y),C>>>31^L&&(s[y/32|0]^=1<<y),A=A<<1|x,C=C<<1|L,g=C|~(E|A),f=A&E}for(let y=b;y<w;y++)K[a.charCodeAt(y)]=0}let l=0,h=-1,u=c*32,p=Math.min(32,i-u)+u;for(let f=u;f<p;f++)K[a.charCodeAt(f)]|=1<<f;let m=i;for(let f=0;f<t;f++){let g=K[e.charCodeAt(f)],b=n[f/32|0]>>>f&1,w=s[f/32|0]>>>f&1,y=g|l,S=((g|w)&h)+h^h|g|w,x=l|~(S|h),L=h&S;m+=x>>>i-1&1,m-=L>>>i-1&1,x>>>31^b&&(n[f/32|0]^=1<<f),L>>>31^w&&(s[f/32|0]^=1<<f),x=x<<1|b,L=L<<1|w,h=L|~(y|x),l=x&y}for(let f=u;f<p;f++)K[a.charCodeAt(f)]=0;return m},"myers_x"),Hs=d((a,e)=>{if(a.length<e.length){let t=e;e=a,a=t}return e.length===0?a.length:a.length<=32?To(a,e):So(a,e)},"distance");var xo=d((a,e,t)=>{let i=a.length<=e.length,s=a.length<=t;return i||s?Math.ceil(a.length/4):t},"getUsedThreshold"),ks=d((a,e,t)=>{let i=0,s=Object.keys(e).find(n=>{let o=xo(a,n,t);if(Math.abs(a.length-n.length)>o)return!1;let r=Hs(a,n),c=r<=o;return c&&(i=r),c});return s?{levenshteinDistance:i,levenshteinDistanceEntry:s}:{}},"findLevenshteinDistance");var kt={a:["4","@"],b:["8"],c:["(","{","[","<"],d:["6","|)"],e:["3"],f:["#"],g:["6","9","&"],h:["#","|-|"],i:["1","!","|"],k:["<","|<"],l:["!","1","|","7"],m:["^^","nn","2n","/\\\\/\\\\"],n:["//"],o:["0","()"],q:["9"],u:["|_|"],s:["$","5"],t:["+","7"],v:["<",">","/"],w:["^/","uu","vv","2u","2v","\\\\/\\\\/"],x:["%","><"],z:["2"]};var Ke={warnings:{straightRow:"straightRow",keyPattern:"keyPattern",simpleRepeat:"simpleRepeat",extendedRepeat:"extendedRepeat",sequences:"sequences",recentYears:"recentYears",dates:"dates",topTen:"topTen",to
35pHundred:"topHundred",common:"common",similarToCommon:"similarToCommon",wordByItself:"wordByItself",namesByThemselves:"namesByThemselves",commonNames:"commonNames",userInputs:"userInputs",pwned:"pwned"},suggestions:{l33t:"l33t",reverseWords:"reverseWords",allUppercase:"allUppercase",capitalization:"capitalization",dates:"dates",recentYears:"recentYears",associatedYears:"associatedYears",sequences:"sequences",repeated:"repeated",longerKeyboardPattern:"longerKeyboardPattern",anotherWord:"anotherWord",useWords:"useWords",noNeed:"noNeed",pwned:"pwned"},timeEstimation:{ltSecond:"ltSecond",second:"second",seconds:"seconds",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",month:"month",months:"months",year:"year",years:"years",centuries:"centuries"}};var we=class a{static{d(this,"TrieNode")}constructor(e=[]){this.parents=e,this.children=new Map}addSub(e,...t){let i=e.charAt(0);this.children.has(i)||this.children.set(i,new a([...this.parents,i]));let s=this.children.get(i);for(let n=1;n<e.length;n+=1){let o=e.charAt(n);s.hasChild(o)||s.addChild(o),s=s.getChild(o)}return s.subs=(s.subs||[]).concat(t),this}getChild(e){return this.children.get(e)}isTerminal(){return!!this.subs}addChild(e){this.hasChild(e)||this.children.set(e,new a([...this.parents,e]))}hasChild(e){return this.children.has(e)}};var Dt=d(((a,e)=>(Object.entries(a).forEach(([t,i])=>{i.forEach(s=>{e.addSub(s,t)})}),e)),"l33tTableToTrieNode");var Ye=class{static{d(this,"Options")}constructor(){this.matchers={},this.l33tTable=kt,this.trieNodeRoot=Dt(kt,new we),this.dictionary={userInputs:[]},this.rankedDictionaries={},this.rankedDictionariesMaxWordSize={},this.translations=Ke,this.graphs={},this.useLevenshteinDistance=!1,this.levenshteinThreshold=2,this.l33tMaxSubstitutions=100,this.maxLength=256,this.setRankedDictionaries()}setOptions(e={}){e.l33tTable&&(this.l33tTable=e.l33tTable,this.trieNodeRoot=Dt(e.l33tTable,new we)),e.dictionary&&(this.dictionary=e.dictionary,this.setRankedDictionaries()),e.translations&&this.setTranslations(e.translations),e.graphs&&(this.graphs=e.graphs),e.useLevenshteinDistance!==void 0&&(this.useLevenshteinDistance=e.useLevenshteinDistance),e.levenshteinThreshold!==void 0&&(this.levenshteinThreshold=e.levenshteinThreshold),e.l33tMaxSubstitutions!==void 0&&(this.l33tMaxSubstitutions=e.l33tMaxSubstitutions),e.maxLength!==void 0&&(this.maxLength=e.maxLength)}setTranslations(e){if(this.checkCustomTranslations(e))this.translations=e;else throw new Error("Invalid translations object fallback to keys")}checkCustomTranslations(e){let t=!0;return Object.keys(Ke).forEach(i=>{if(i in e){let s=i;Object.keys(Ke[s]).forEach(n=>{n in e[s]||(t=!1)})}else t=!1}),t}setRankedDictionaries(){let e={},t={};Object.keys(this.dictionary).forEach(i=>{e[i]=It(this.dictionary[i]),t[i]=this.getRankedDictionariesMaxWordSize(this.dictionary[i])}),this.rankedDictionaries=e,this.rankedDictionariesMaxWordSize=t}getRankedDictionariesMaxWordSize(e){let t=e.map(i=>typeof i!="string"?i.toString().length:i.length);return t.length===0?0:t.reduce((i,s)=>Math.max(i,s),-1/0)}buildSanitizedRankedDictionary(e){let t=[];return e.forEach(i=>{let s=typeof i;(s==="string"||s==="number"||s==="boolean")&&t.push(i.toString().toLowerCase())}),It(t)}extendUserInputsDictionary(e){this.dictionary.userInputs||(this.dictionary.userInputs=[]);let t=[...this.dictionary.userInputs,...e];this.rankedDictionaries.userInputs=this.buildSanitizedRankedDictionary(t),this.rankedDictionariesMaxWordSize.userInputs=this.getRankedDictionariesMaxWordSize(t)}addMatcher(e,t){this.matchers[e]?console.info(`Matcher ${e} already exists`):this.matchers[e]=t}},v=new Ye;var Je=class{static{d(this,"MatchReverse")}constructor(e){this.defaultMatch=e}match({password:e}){let t=e.split("").reverse().join("");return this.defaultMatch({password:t}).map(i=>({...i,token:i.token.split("").reverse().join(""),reversed:!0,i:e.length-1-i.j,j:e.length-1-i.i}))}};var Rt=class{static{d(this,"CleanPasswords")}constructor({substr:e,limit:t,trieRoot:i}){this.buffer=[],this.finalPasswords=[],this.substr=e,this.limit=t,this.trieRoot=i}getAllPossibleSubsAtIndex(e){let t=[],i=this.trieRoot;for(let s=e;s<this.substr.length;s+=1){let n=this.substr.charAt(s);if(i=i.getChild(n),!i)break;t.push(i)}return t}helper({onlyFullSub:e,isFullSub:t,index:i,subIndex:s,changes:n,lastSubLetter:o,consecutiveSubCount:r}){if(this.finalPasswords.length>=this.limit)return;if(i===this.substr.length){e===t&&this.finalPasswords.push({password:this.buffer.join(""),changes:n});return}let c=[...this.getAllPossibleSubsAtIndex(i)],l=!1;for(let h=i+c.length-1;h>=i;h-=1){let u=c[h-i];if(u.isTerminal()){if(o===u.parents.join("")&&r>=3)continue;l=!0;let p=u.subs;for(let m of p){this.buffer.push(m);let f=n.concat({i:s,letter:m,substitution:u.parents.join("")});if(this.helper({onlyFullSub:e,isFullSub:t,index:h+1,subIndex:s+m.length,changes:f,lastSubLetter:u.parents.join(""),consecutiveSubCount:o===u.parents.join("")?r+1:1}),this.buffer.pop(),this.finalPasswords.length>=this.limit)return}}}if(!e||!l){let h=this.substr.charAt(i);this.buffer.push(h),this.helper({onlyFullSub:e,isFullSub:t&&!l,index:i+1,subIndex:s+1,changes:n,lastSubLetter:o,consecutiveSubCount:r}),this.buffer.pop()}}getAll(){return this.helper({onlyFullSub:!0,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.helper({onlyFullSub:!1,isFullSub:!0,index:0,subIndex:0,changes:[],lastSubLetter:void 0,consecutiveSubCount:0}),this.finalPasswords}},Ds=d((a,e,t)=>new Rt({substr:a,limit:e,trieRoot:t}).getAll(),"getCleanPasswords");var Mo=d((a,e,t)=>{let s=a.changes.filter(l=>l.i<e).reduce((l,h)=>l-h.letter.length+h.substitution.length,e),n=a.changes.filter(l=>l.i>=e&&l.i<=t),o=n.reduce((l,h)=>l-h.letter.length+h.substitution.length,t-e+s),r=[],c=[];
35return n.forEach(l=>{r.findIndex(u=>u.letter===l.letter&&u.substitution===l.substitution)<0&&(r.push({letter:l.letter,substitution:l.substitution}),c.push(`${l.substitution} -> ${l.letter}`))}),{i:s,j:o,subs:r,subDisplay:c.join(", ")}},"getExtras"),Xe=class{static{d(this,"MatchL33t")}constructor(e){this.defaultMatch=e}isAlreadyIncluded(e,t){return e.some(i=>Object.entries(i).every(([s,n])=>s==="subs"||n===t[s]))}match({password:e}){let t=[],i=Ds(e,v.l33tMaxSubstitutions,v.trieNodeRoot),s=!1,n=!0;return i.forEach(o=>{if(s)return;let r=this.defaultMatch({password:o.password,useLevenshtein:n});n=!1,r.forEach(c=>{s||(s=c.i===0&&c.j===e.length-1);let l=Mo(o,c.i,c.j),h=e.slice(l.i,+l.j+1||9e9),u={...c,l33t:!0,token:h,...l},p=this.isAlreadyIncluded(t,u);h.toLowerCase()!==c.matchedWord&&!p&&t.push(u)})}),t.filter(o=>o.token.length>1)}};var Qe=class{static{d(this,"MatchDictionary")}constructor(){this.l33t=new Xe(this.defaultMatch),this.reverse=new Je(this.defaultMatch)}match({password:e}){let t=[...this.defaultMatch({password:e}),...this.reverse.match({password:e}),...this.l33t.match({password:e})];return V(t)}defaultMatch({password:e,useLevenshtein:t=!0}){let i=[],s=e.length,n=e.toLowerCase();return Object.keys(v.rankedDictionaries).forEach(o=>{let r=v.rankedDictionaries[o],c=v.rankedDictionariesMaxWordSize[o],l=Math.min(c,s);for(let h=0;h<s;h+=1){let u=Math.min(h+l,s);for(let p=h;p<u;p+=1){let m=n.slice(h,+p+1||9e9),f=m in r,g={},b=h===0&&p===s-1;v.useLevenshteinDistance&&b&&!f&&t&&(g=ks(m,r,v.levenshteinThreshold));let w=Object.keys(g).length!==0;if(f||w){let y=w?g.levenshteinDistanceEntry:m,S=r[y];i.push({pattern:"dictionary",i:h,j:p,token:e.slice(h,+p+1||9e9),matchedWord:m,rank:S,dictionaryName:o,reversed:!1,l33t:!1,...g})}}}}),i}};var et=class{static{d(this,"MatchRegex")}match({password:e,regexes:t=Os}){let i=[];return Object.keys(t).forEach(s=>{let n=t[s];n.lastIndex=0;let o;for(;o=n.exec(e);)if(o){let r=o[0];i.push({pattern:"regex",token:r,i:o.index,j:o.index+o[0].length-1,regexName:s,regexMatch:o})}}),V(i)}};var q={nCk(a,e){let t=a;if(e>t)return 0;if(e===0)return 1;let i=1;for(let s=1;s<=e;s+=1)i*=t,i/=s,t-=1;return i},log10(a){return a===0?0:Math.log(a)/Math.log(10)},log2(a){return Math.log(a)/Math.log(2)},factorial(a){let e=1;for(let t=2;t<=a;t+=1)e*=t;return e}};var Rs=d((({token:a})=>{let e=Es**a.length;e===Number.POSITIVE_INFINITY&&(e=Number.MAX_VALUE);let t;return a.length===1?t=je+1:t=$e+1,Math.max(e,t)}),"bruteforceMatcher");var zs=d((({year:a,separator:e})=>{let i=Math.max(Math.abs(a-ae),Ve)*365;return e&&(i*=4),i}),"dateMatcher");var Co=d(a=>{let e=a.split(""),t=e.filter(o=>o.match(As)).length,i=e.filter(o=>o.match(Cs)).length,s=0,n=Math.min(t,i);for(let o=1;o<=n;o+=1)s+=q.nCk(t+i,o);return s},"getVariations"),Ns=d((a=>{let e=a.replace(_s,"");if(e.match(Ms)||e.toLowerCase()===e)return 1;let t=[Ue,Ts,Ze],i=t.length;for(let s=0;s<i;s+=1){let n=t[s];if(e.match(n))return 2}return Co(e)}),"uppercaseVariant");var Fs=d((a,e)=>{let t=0,i=a.indexOf(e);for(;i>=0;)t+=1,i=a.indexOf(e,i+e.length);return t},"countSubstring"),Ao=d(({sub:a,token:e})=>{let t=e.toLowerCase(),i=Fs(t,a.substitution),s=Fs(t,a.letter);return{subbedCount:i,unsubbedCount:s}},"getCounts"),Bs=d((({l33t:a,subs:e,token:t})=>{if(!a)return 1;let i=1;return e.forEach(s=>{let{subbedCount:n,unsubbedCount:o}=Ao({sub:s,token:t});if(n===0||o===0)i*=2;else{let r=Math.min(o,n),c=0;for(let l=1;l<=r;l+=1)c+=q.nCk(o+n,l);i*=c}}),i}),"l33tVariant");var qs=d((({rank:a,reversed:e,l33t:t,subs:i,token:s,dictionaryName:n})=>{let o=a,r=Ns(s),c=Bs({l33t:t,subs:i,token:s}),l=e&&2||1,h;return n==="diceware"?h=6**5/2:h=o*r*c*l,{baseGuesses:o,uppercaseVariations:r,l33tVariations:c,calculation:h}}),"dictionaryMatcher");var Ws=d((({regexName:a,regexMatch:e,token:t})=>{let i={alphaLower:26,alphaUpper:26,alpha:52,alphanumeric:62,digits:10,symbols:33};return a in i?i[a]**t.length:a==="recentYear"?Math.max(Math.abs(parseInt(e[0],10)-ae),Ve):0}),"regexMatcher");var js=d((({baseGuesses:a,repeatCount:e})=>a*e),"repeatMatcher");var $s=d((({token:a,ascending:e})=>{let t=a.charAt(0),i=0;
35return["a","A","z","Z","0","1","9"].includes(t)?i=4:t.match(/\d/)?i=10:i=26,e||(i*=2),i*a.length}),"sequenceMatcher");var _o=d(a=>{let e=0;return Object.keys(a).forEach(t=>{let i=a[t];e+=i.filter(s=>!!s).length}),e/=Object.entries(a).length,e},"calcAverageDegree"),Io=d(({token:a,graph:e,turns:t})=>{let i=Object.keys(v.graphs[e]).length,s=_o(v.graphs[e]),n=0,o=a.length;for(let r=2;r<=o;r+=1){let c=Math.min(t,r-1);for(let l=1;l<=c;l+=1)n+=q.nCk(r-1,l-1)*i*s**l}return n},"estimatePossiblePatterns"),Vs=d((({graph:a,token:e,shiftedCount:t,turns:i})=>{let s=Io({token:e,graph:a,turns:i});if(t){let n=e.length-t;if(t===0||n===0)s*=2;else{let o=0;for(let r=1;r<=Math.min(t,n);r+=1)o+=q.nCk(t+n,r);s*=o}}return Math.round(s)}),"spatialMatcher");var Us=d((()=>Ps),"separatorMatcher");var Oo=d((a,e)=>{let t=1;return a.token.length<e.length&&(a.token.length===1?t=je:t=$e),t},"getMinGuesses"),Zs={bruteforce:Rs,date:zs,dictionary:qs,regex:Ws,repeat:js,sequence:$s,spatial:Vs,separator:Us},Po=d((a,e)=>Zs[a]?Zs[a](e):v.matchers[a]&&"scoring"in v.matchers[a]?v.matchers[a].scoring(e):0,"getScoring"),Gs=d(((a,e)=>{let t={};if("guesses"in a&&a.guesses!=null)return a;let i=Oo(a,e),s=Po(a.pattern,a),n=0;typeof s=="number"?n=s:a.pattern==="dictionary"&&(n=s.calculation,t.baseGuesses=s.baseGuesses,t.uppercaseVariations=s.uppercaseVariations,t.l33tVariations=s.l33tVariations);let o=Math.max(n,i);return{...a,...t,guesses:o,guessesLog10:q.log10(o)}}),"estimateGuesses");var F={password:"",optimal:{},excludeAdditive:!1,separatorRegex:void 0,fillArray(a,e){let t=[];for(let i=0;i<a;i+=1){let s=[];e==="object"&&(s={}),t.push(s)}return t},makeBruteforceMatch(a,e){return{pattern:"bruteforce",token:this.password.slice(a,+e+1||9e9),i:a,j:e}},update(a,e){let t=a.j,i=Gs(a,this.password),s=i.guesses;e>1&&(s*=this.optimal.pi[i.i-1][e-1]);let n=q.factorial(e)*s;this.excludeAdditive||(n+=Ls**(e-1));let o=!1;Object.keys(this.optimal.g[t]).forEach(r=>{let c=this.optimal.g[t][r];parseInt(r,10)<=e&&c<=n&&(o=!0)}),o||(this.optimal.g[t][e]=n,this.optimal.m[t][e]=i,this.optimal.pi[t][e]=s)},bruteforceUpdate(a){let e=this.makeBruteforceMatch(0,a);this.update(e,1);for(let t=1;t<=a;t+=1){e=this.makeBruteforceMatch(t,a);let i=this.optimal.m[t-1];
35Object.keys(i).forEach(s=>{i[s].pattern!=="bruteforce"&&this.update(e,parseInt(s,10)+1)})}},unwind(a){let e=[],t=a-1,i=0,s=1/0,n=this.optimal.g[t];for(n&&Object.keys(n).forEach(o=>{let r=n[o];r<s&&(i=parseInt(o,10),s=r)});t>=0;){let o=this.optimal.m[t][i];e.unshift(o),t=o.i-1,i-=1}return e}},Ee={mostGuessableMatchSequence(a,e,t=!1){F.password=a,F.excludeAdditive=t;let i=a.length,s=F.fillArray(i,"array");e.forEach(c=>{s[c.j].push(c)}),s=s.map(c=>c.sort((l,h)=>l.i-h.i)),F.optimal={m:F.fillArray(i,"object"),pi:F.fillArray(i,"object"),g:F.fillArray(i,"object")};for(let c=0;c<i;c+=1)s[c].forEach(l=>{l.i>0?Object.keys(F.optimal.m[l.i-1]).forEach(h=>{F.update(l,parseInt(h,10)+1)}):F.update(l,1)}),F.bruteforceUpdate(c);let n=F.unwind(i),o=n.length,r=this.getGuesses(a,o);return{password:a,guesses:r,guessesLog10:q.log10(r),sequence:n}},getGuesses(a,e){let t=a.length,i=0;return a.length===0?i=1:i=F.optimal.g[t-1][e],i}};var tt=class{static{d(this,"MatchRepeat")}match({password:e,omniMatch:t}){let i=[],s=0;for(;s<e.length;){let o=this.getGreedyMatch(e,s),r=this.getLazyMatch(e,s);if(o==null)break;let{match:c,baseToken:l}=this.setMatchToken(o,r);if(c){let h=c.index+c[0].length-1,u=this.getBaseGuesses(l,t);i.push(this.normalizeMatch(l,h,c,u)),s=h+1}}return i.some(o=>o instanceof Promise)?Promise.all(i):i}normalizeMatch(e,t,i,s){let n={pattern:"repeat",i:i.index,j:t,token:i[0],baseToken:e,baseGuesses:0,repeatCount:i[0].length/e.length};return s instanceof Promise?s.then(o=>({...n,baseGuesses:o})):{...n,baseGuesses:s}}getGreedyMatch(e,t){let i=/(.+)\1+/g;return i.lastIndex=t,i.exec(e)}getLazyMatch(e,t){let i=/(.+?)\1+/g;return i.lastIndex=t,i.exec(e)}setMatchToken(e,t){let i=/^(.+?)\1+$/,s,n="";if(t&&e[0].length>t[0].length){s=e;let o=i.exec(s[0]);o&&(n=o[1])}else s=t,s&&(n=s[1]);return{match:s,baseToken:n}}getBaseGuesses(e,t){let i=t.match(e);return i instanceof Promise?i.then(n=>Ee.mostGuessableMatchSequence(e,n).guesses):Ee.mostGuessableMatchSequence(e,i).guesses}};var it=class{static{d(this,"MatchSequence")}constructor(){this.MAX_DELTA=5}match({password:e}){let t=[];if(e.length===1)return[];let i=0,s=null,n=e.length;for(let o=1;o<n;o+=1){let r=e.charCodeAt(o)-e.charCodeAt(o-1);if(s==null&&(s=r),r!==s){let c=o-1;this.update({i,j:c,delta:s,password:e,result:t}),i=c,s=r}}return this.update({i,j:n-1,delta:s,password:e,result:t}),t}update({i:e,j:t,delta:i,password:s,result:n}){if(t-e>1||Math.abs(i)===1){let o=Math.abs(i);if(o>0&&o<=this.MAX_DELTA){let r=s.slice(e,+t+1||9e9),{sequenceName:c,sequenceSpace:l}=this.getSequence(r);return n.push({pattern:"sequence",i:e,j:t,token:s.slice(e,+t+1||9e9),sequenceName:c,sequenceSpace:l,ascending:i>0})}}return null}getSequence(e){let t="unicode",i=26;return xs.test(e)?(t="lower",i=26):Ss.test(e)?(t="upper",i=26):Is.test(e)&&(t="digits",i=10),{sequenceName:t,sequenceSpace:i}}};var st=class{static{d(this,"MatchSpatial")}constructor(){this.SHIFTED_RX=/[~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:"ZXCVBNM<>?]/}match({password:e}){let t=[];return Object.keys(v.graphs).forEach(i=>{let s=v.graphs[i];ve(t,this.helper(e,s,i))}),V(t)}checkIfShifted(e,t,i){return!e.includes("keypad")&&this.SHIFTED_RX.test(t.charAt(i))?1:0}helper(e,t,i){let s,n=[],o=0,r=e.length;for(;o<r-1;){let c=o+1,l=null,h=0;for(s=this.checkIfShifted(i,e,o);;){let u=e.charAt(c-1),p=t[u]||[],m=!1,f=-1,g=-1;if(c<r){let b=e.charAt(c),w=p.length;for(let y=0;y<w;y+=1){let S=p[y];if(g+=1,S){let x=S.indexOf(b);if(x!==-1){m=!0,f=g,x===1&&(s+=1),l!==f&&(h+=1,l=f);break}}}}if(m)c+=1;else{c-o>2&&n.push({pattern:"spatial",i:o,j:c-1,token:e.slice(o,c),graph:i,turns:h,shiftedCount:s}),o=c;break}}}return n}};var Ho=new RegExp(`[${Ht.join("")}]`),nt=class a{static{d(this,"MatchSeparator")}static getMostUsedSeparatorChar(e){let t=[...e.split("").filter(s=>Ho.test(s)).reduce((s,n)=>{let o=s.get(n);return o?s.set(n,o+1):s.set(n,1),s},new Map).entries()].sort(([s,n],[o,r])=>r-n);if(!t.length)return;let i=t[0];if(!(i[1]<2))return i[0]}static getSeparatorRegex(e){return new RegExp(`([^${e} 36])(${e})(?!${e})`,"g")}match({password:e}){let t=[];if(e.length===0)return t;let i=a.getMostUsedSeparatorChar(e);if(i===void 0)return t;let s=a.getSeparatorRegex(i);
36for(let n of e.matchAll(s)){if(n.index===void 0)continue;let o=n.index+1;t.push({pattern:"separator",token:i,i:o,j:o})}return t}};var ot=class{static{d(this,"Matching")}constructor(){this.matchers={date:Ge,dictionary:Qe,regex:et,repeat:tt,sequence:it,spatial:st,separator:nt}}match(e){let t=[],i=[];return[...Object.keys(this.matchers),...Object.keys(v.matchers)].forEach(n=>{if(!this.matchers[n]&&!v.matchers[n])return;let o=this.matchers[n]?this.matchers[n]:v.matchers[n].Matching,c=new o().match({password:e,omniMatch:this});c instanceof Promise?(c.then(l=>{ve(t,l)}),i.push(c)):ve(t,c)}),i.length>0?new Promise((n,o)=>{Promise.all(i).then(()=>{n(V(t))}).catch(r=>{o(r)})}):V(t)}};var Ks=1,Ys=Ks*60,Js=Ys*60,Xs=Js*24,Qs=Xs*31,en=Qs*12,ko=en*100,zt={second:Ks,minute:Ys,hour:Js,day:Xs,month:Qs,year:en,century:ko},rt=class{static{d(this,"TimeEstimates")}translate(e,t){let i=e;t!==void 0&&t!==1&&(i+="s");let{timeEstimation:s}=v.translations;return s[i].replace("{base}",`${t}`)}estimateAttackTimes(e){let t={onlineThrottling100PerHour:e/.027777777777777776,onlineNoThrottling10PerSecond:e/10,offlineSlowHashing1e4PerSecond:e/1e4,offlineFastHashing1e10PerSecond:e/1e10},i={onlineThrottling100PerHour:"",onlineNoThrottling10PerSecond:"",offlineSlowHashing1e4PerSecond:"",offlineFastHashing1e10PerSecond:""};return Object.keys(t).forEach(s=>{let n=t[s];i[s]=this.displayTime(n)}),{crackTimesSeconds:t,crackTimesDisplay:i,score:this.guessesToScore(e)}}guessesToScore(e){return e<1005?0:e<1000005?1:e<100000005?2:e<1e10+5?3:4}displayTime(e){let t="centuries",i,s=Object.keys(zt),n=s.findIndex(o=>e<zt[o]);return n>-1&&(t=s[n-1],n!==0?i=Math.round(e/zt[t]):t="ltSecond"),this.translate(t,i)}};var tn=d((()=>null),"bruteforceMatcher");var sn=d((()=>({warning:v.translations.warnings.dates,suggestions:[v.translations.suggestions.dates]})),"dateMatcher");var Do=d((a,e)=>{let t=null;return e&&!a.l33t&&!a.reversed?a.rank<=10?t=v.translations.warnings.topTen:a.rank<=100?t=v.translations.warnings.topHundred:t=v.translations.warnings.common:a.guessesLog10<=4&&(t=v.translations.warnings.similarToCommon),t},"getDictionaryWarningPassword"),Ro=d((a,e)=>{let t=null;return e&&(t=v.translations.warnings.wordByItself),t},"getDictionaryWarningWikipedia"),zo=d((a,e)=>e?v.translations.warnings.namesByThemselves:v.translations.warnings.commonNames,"getDictionaryWarningNames"),No=d((a,e)=>{let t=null,i=a.dictionaryName,s=i==="lastnames"||i.toLowerCase().includes("firstnames");return i==="passwords"?t=Do(a,e):i.includes("wikipedia")?t=Ro(a,e):s?t=zo(a,e):i==="userInputs"&&(t=v.translations.warnings.userInputs),t},"getDictionaryWarning"),nn=d(((a,e)=>{let t=No(a,e),i=[],s=a.token;return s.match(Ue)?i.push(v.translations.suggestions.capitalization):s.match(Ze)&&s.toLowerCase()!==s&&i.push(v.translations.suggestions.allUppercase),a.reversed&&a.token.length>=4&&i.push(v.translations.suggestions.reverseWords),a.l33t&&i.push(v.translations.suggestions.l33t),{warning:t,suggestions:i}}),"dictionaryMatcher");var on=d((a=>a.regexName==="recentYear"?{warning:v.translations.warnings.recentYears,suggestions:[v.translations.suggestions.recentYears,v.translations.suggestions.associatedYears]}:{warning:null,suggestions:[]}),"regexMatcher");var rn=d((a=>{let e=v.translations.warnings.extendedRepeat;return a.baseToken.length===1&&(e=v.translations.warnings.simpleRepeat),{warning:e,suggestions:[v.translations.suggestions.repeated]}}),"repeatMatcher");var an=d((()=>({warning:v.translations.warnings.sequences,suggestions:[v.translations.suggestions.sequences]})),"sequenceMatcher");var ln=d((a=>{let e=v.translations.warnings.keyPattern;return a.turns===1&&(e=v.translations.warnings.straightRow),{warning:e,suggestions:[v.translations.suggestions.longerKeyboardPattern]}}),"spatialMatcher");var cn=d((()=>null),"separatorMatcher");var dn={warning:null,suggestions:[]},at=class{static{d(this,"Feedback")}constructor(){this.matchers={bruteforce:tn,date:sn,dictionary:nn,regex:on,repeat:rn,sequence:an,spatial:ln,separator:cn},this.defaultFeedback={warning:null,suggestions:[]},this.setDefaultSuggestions()}setDefaultSuggestions(){this.defaultFeedback.suggestions.push(v.translations.suggestions.useWords,v.translations.suggestions.noNeed)}getFeedback(e,t){if(t.length===0)return this.defaultFeedback;if(e>2)return dn;let i=v.translations.suggestions.anotherWord,s=this.getLongestMatch(t),n=this.getMatchFeedback(s,t.length===1);return n!=null?n.suggestions.unshift(i):n={warning:null,suggestions:[i]},n}getLongestMatch(e){let t=e[0];
36return e.slice(1).forEach(s=>{s.token.length>t.token.length&&(t=s)}),t}getMatchFeedback(e,t){return this.matchers[e.pattern]?this.matchers[e.pattern](e,t):v.matchers[e.pattern]&&"feedback"in v.matchers[e.pattern]?v.matchers[e.pattern].feedback(e,t):dn}};var hn=d(()=>new Date().getTime(),"time"),Fo=d((a,e,t)=>{let i=new at,s=new rt,n=Ee.mostGuessableMatchSequence(e,a),o=hn()-t,r=s.estimateAttackTimes(n.guesses);return{calcTime:o,...n,...r,feedback:i.getFeedback(r.score,n.sequence)}},"createReturnValue"),Bo=d((a,e)=>(e&&v.extendUserInputsDictionary(e),new ot().match(a)),"main"),un=d((a,e)=>{let t=hn(),i=Bo(a,e);if(i instanceof Promise)throw new Error("You are using a Promised matcher, please use `zxcvbnAsync` for it.");return Fo(i,a,t)},"zxcvbn");var qo={scores:[{id:0,color:"red",icon:"fa-exclamation-triangle",text:"common:passwordStrengthEvaluation.worst"},{id:1,color:"red",icon:"fa-exclamation-triangle",text:"common:passwordStrengthEvaluation.bad"},{id:2,color:"orange",icon:"fa-exclamation-circle",text:"common:passwordStrengthEvaluation.weak"},{id:3,color:"yellowgreen",icon:"fa-smile-beam",text:"common:passwordStrengthEvaluation.good"},{id:4,color:"green",icon:"fa-smile",text:"common:passwordStrengthEvaluation.strong"}]},Nt=class extends R{static{d(this,"PasswordStrengthWidget")}init(){this.options=this.assignConfig(qo,this.config)}process(){let e=this.element,t=document.createElement("div");t.setAttribute("class","password-strength-meter progress"),t.innerHTML='<div class="progress-bar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>';let i=document.createElement("div");i.setAttribute("class","password-strength-feedback text-small");let s=document.createElement("div");s.setAttribute("class","password-strength mt-2 mb-2"),s.append(i),s.append(t);let n=t.querySelector(".progress-bar");e.closest(".form-group")?.append(s),e.addEventListener("input",o=>{let r=un(e.value),c=this.options.scores.find(h=>h.id===r.score),l=100*r.score/4;if(n?.setAttribute("area-valuenow",l.toString()),n.style.width=l+"%",n.style.background=c.color,i.innerHTML="",e.value!=""){let h=window.ThiemeCore.Lang.translate("common:passwordStrength")+": ";h+=window.ThiemeCore.Lang.translate(c.text),i.innerHTML=h}}),e.value!=""&&e.dispatchEvent(new Event("input"))}},pn=Nt;var Wo=window.bootstrap,jo={valuePickerItems:[]},Ft=class extends R{static{d(this,"ValuePickerhWidget")}init(){this.options=this.assignConfig(jo,this.config)}process(){let e=this.element,t=this.options.valuePickerItems??[];e.dataset.valuePickerItems&&JSON.parse(e.dataset.valuePickerItems).forEach(o=>{let r={label:o[0],value:o[1]};t.push(r)});let i=e.closest(".form-element"),s="datalist_"+globalThis.crypto.randomUUID();if(i&&e.getAttribute("list")){let n=i.querySelector("datalist");n&&(n.hasAttribute("id")&&(s=n.getAttribute("id")),t=[],n.querySelectorAll("option").forEach(o=>{let r=o.getAttribute("value");r&&t.push({label:o.innerHTML,value:r})}),n.remove())}if(t&&t.length>0){let n=document.createElement("div");n.setAttribute("class","list-group list-group-flush");for(let c in t){let l=t[c],h=document.createElement("a");h.setAttribute("class","list-group-item list-group-item-action"),h.style.cursor="pointer",h.innerHTML=l.label,h.addEventListener("click",()=>{e.value=l.value}),n.append(h)}if(!e.parentElement?.classList.contains("input-group")){let c=document.createElement("div");c.classList.add("input-group"),e.after(c),c.append(e)}let o=document.createElement("button");o.setAttribute("class","btn btn-outline-form"),o.setAttribute("type","button"),o.setAttribute("data-bs-toggle","dropdown"),o.setAttribute("data-bs-target","#"+s),o.setAttribute("aria-expanded","false"),o.innerHTML='<span class="bi bi-chevron-down"></span>',e.after(o);let r=document.createElement("div");r.setAttribute("id",s),r.setAttribute("class","dropdown-menu dropdown-menu-end"),r.append(n),o.after(r),Wo.Dropdown.getOrCreateInstance(o)}}},mn=Ft;var Bt=class extends R{static{d(this,"FileUploadWidget")}process(){let e=this.element,t=e.getAttribute("accept")??"",i=null;if(e.closest(".form-element")&&(i=e.closest(".form-element").querySelector(".preview")),window.File&&window.FileReader&&window.Blob&&i!==null&&(e.classList.contains("image-upload")||t.search(/application\/pdf|image/i)>-1)){let s=e.dataset.maxWidth?parseInt(e.dataset.maxWidth):0;e.addEventListener("change",n=>{if(e.files&&e.files[0]){let o=e.files[0];if(o.type.search("application/pdf")>-1||o.type.search("image/")>-1){i.innerHTML="";let r=new FileReader;r.addEventListener("load",c=>{if(o.type.search("application/pdf")>
36-1){let l=document.createElement("embed");l.src=r.result?r.result.toString():"",l.setAttribute("type","application/pdf"),l.style.width="100%",l.style.height="300px",i.append(l)}else{let l=i.querySelector("img");if(l==null&&(l=document.createElement("img"),i.append(l)),l.src=r.result?r.result.toString():"",s>0){let h=new Image;h.addEventListener("load",u=>{let p=document.createElement("canvas"),m=h.width,f=h.height;m>f?m>s&&(f*=s/m,m=s):f>s&&(m*=s/f,f=s),p.width=m,p.height=f,p.getContext("2d")?.drawImage(h,0,0,m,f);let g=p.toDataURL(o.type);l.setAttribute("src",g),p.toBlob(b=>{if(b){let w=new File([b],o.name,{type:o.type}),y=new DataTransfer;y.items.add(w),e.files=y.files}},o.type)}),h.src=r.result?r.result.toString():""}}}),r.readAsDataURL(e.files[0])}}})}}},fn=Bt;var qt=class extends R{static{d(this,"RangeWidget")}process(){let e=this.element,t=e.getAttribute("unit")?" "+e.getAttribute("unit"):"";if(!e.parentElement?.classList.contains("input-group")){let o=document.createElement("div");o.setAttribute("class","input-group"),e.after(o),o.append(e)}e.classList.remove("form-control");let i=document.createElement("div");i.setAttribute("class","form-control d-flex flex-column"),e.after(i),i.append(e);let s=document.createElement("div");s.setAttribute("class","range-value input-group-text justify-content-center"),s.style.minWidth="60px",s.innerHTML=e.value,i.parentElement?.append(s);let n=d(function(){s.innerHTML=e.value+t},"updateView");e.addEventListener("input",n),e.addEventListener("change",n),n()}},gn=qt;var Wt=class extends R{static{d(this,"RatingGradingWidget")}process(){let e=this.element,t=parseInt(e.getAttribute("min")??"0"),i=parseInt(e.getAttribute("max")??"0"),s=parseInt(e.getAttribute("step")??"1"),n=this.config?.identifier.toLowerCase()??"rating";t<1&&(t=1);let o=document.createElement("div");o.setAttribute("class","widget-"+n),e.after(o),e.style.display="none";let r=document.createElement("div");r.setAttribute("class","options"),o.append(r);let c=new Map,l=d(function(h){r.childElementCount>0&&c.forEach((u,p)=>{p.classList.remove("inrange"),p.classList.remove("checked"),h>0&&(n=="rating"&&h>=u&&p.classList.add("inrange"),u===h&&p.classList.add("checked"))})},"updateVisual");for(let h=t;h<=i;h+=s){let u='<span class="icon bi bi-star icon-xl"></span>';n=="grading"&&(u='<span class="label">'+h+"</span>");let p=document.createElement("span");p.setAttribute("class","option"),p.innerHTML=u,p.addEventListener("click",m=>{e.value=h.toString(),l(h)}),c.set(p,h),n=="rating"&&(p.addEventListener("mouseover",m=>{l(h)}),p.addEventListener("mouseout",m=>{l(parseInt(e.value))})),r.append(p)}l(parseInt(e.value))}},yn=Wt;var $o={multiple:!1,submitOnChange:!1},jt=class extends R{static{d(this,"SelectListWidget")}init(){let e=Object.assign({},this.config,this.element.dataset);this.options=this.assignConfig($o,e)}process(){let e=this.element;e.style.display="none";let t=document.createElement("div");t.classList.add("form-select-list","list-group"),e.after(t);let i=new Map,s=d(()=>{let n=[];i.forEach((o,r)=>{let c=o.getAttribute("value")??o.innerHTML;r.classList.contains("selected")&&n.push(c)}),e.value=n.join(","),e.dispatchEvent(new Event("change"))},"updateField");e.querySelectorAll("option").forEach(n=>{let o=n.innerHTML,r=document.createElement("div");i.set(r,n),r.classList.add("list-item","list-group-item"),n.getAttribute("selected")&&r.classList.add("selected"),r.innerHTML=o,r.addEventListener("click",c=>
36{e.multiple||i.forEach((l,h)=>{h!=r&&h.classList.remove("selected")}),r.classList.contains("selected")?r.classList.remove("selected"):r.classList.add("selected"),s()}),t.append(r)}),s()}},bn=jt;var Vo={validateOnSubmit:!0,locale:""},$t=new Map,vn=new Map,Vt=class extends O{constructor(){super(...arguments);this.processState={widgets:[]}}static{d(this,"Form")}init(){this.form=this.element,this.options=this.assignConfig(Vo,this.config);let t=document.querySelector("html")?.getAttribute("lang");this.options.locale=t=="de"?"de":""}process(){this.processFields(),this.form.setAttribute("novalidate","novalidate"),this.form.addEventListener("submit",(t,i=null)=>{let s=!0;if(t.submitter&&t.submitter.formNoValidate||t.target&&t.target.ignoreValidation||i&&i.ignoreValidation||i&&i.noValidation||this.form.ignoreValidation||this.form.noValidation)return s;this.form.querySelectorAll("input,textarea,select").forEach(n=>{try{this.validate(n)||(s=!1)}catch{s=!1}}),s||(this.handleValidationResult(),t.preventDefault(),t.stopPropagation())}),this.processState.widgets.length>0&&this.renderWidgets(this.processState.widgets)}handleValidationResult(){let t=this.form.querySelector(".is-invalid");t&&(Y.scrollTo(t.closest(".form-element")),window.setTimeout(function(){t.focus()},0)),window.ThiemeMaintemplate.toast(window.ThiemeCore.Lang.translate("common:validationError.title"),window.ThiemeCore.Lang.translate("common:validationError.message"),{className:"alert alert-danger",heading:{className:"alert-heading d-flex mb-3"},body:{className:"alert-body"},delay:2e4})}processFields(){this.form.querySelectorAll("input,textarea,select").forEach(t=>{let i=t.tagName.toUpperCase();switch(t.getAttribute("type")=="datetime"&&(t.type="datetime-local"),i=="INPUT"&&t.type&&(i+=":"+t.type.toUpperCase()),(t.classList.contains("datefield")||t.classList.contains("dateselector")||t.classList.contains("datepicker")||t.dataset.t3FormDatepicker!=null||t.dataset.wizard&&t.dataset.wizard=="datepicker")&&(i="INPUT:DATE"),(t.classList.contains("datetimefield")||t.classList.contains("datetimeselector")||t.classList.contains("datetimepicker")||t.dataset.wizard&&t.dataset.wizard=="datetimepicker")&&(i="INPUT:DATETIME"),(t.classList.contains("timefield")||t.classList.contains("timeselector")||t.classList.contains("timepicker")||t.dataset.wizard&&t.dataset.wizard=="timepicker")&&(i="INPUT:TIME"),t.dataset.renderType&&(i+=":"+t.dataset.renderType.toUpperCase()),i){case"INPUT:PASSWORD":t.dataset.pvs&&parseInt(t.dataset.pvs)>0&&this.processState.widgets.push({identifier:"showHidePassword",field:t});break;case"INPUT:DATE":this.processState.widgets.push({identifier:"datePicker",field:t,format:t.dataset.format??"Y-m-d",enableDatePicker:!0,displayTimeSelector:!1});break;case"INPUT:DATETIME":case"INPUT:DATETIME-LOCAL":this.processState.widgets.push({identifier:"datePicker",field:t,format:t.dataset.format??"Y-m-dTH:i:sP",enableDatePicker:!0,displayTimeSelector:!0});break;case"INPUT:TIME":this.processState.widgets.push({identifier:"datePicker",field:t,format:t.dataset.format??"H:i",enableDatePicker:!1,displayTimeSelector:!0});break;case"INPUT:RANGE":this.processState.widgets.push({identifier:"range",field:t});break;case"INPUT:RATING":case"INPUT:TEXT:RATING":this.processState.widgets.push({identifier:"rating",field:t});break;case"INPUT:GRADING":case"INPUT:TEXT:GRADING":this.processState.widgets.push({identifier:"grading",field:t});break;case"SELECT:SELECTLIST":this.processState.widgets.push({identifier:"selectList",field:t});break;case"INPUT:FILE":let c={validators:[{identifier:"fileUpload",accept:t.getAttribute("accept")??"",fileSize:parseInt(t.dataset.fileSize??(1048576*2).toString()),validateOnChange:!0}]};$t.set(t,c),this.processState.widgets.push({identifier:"fileUpload",field:t});break;case"TEXTAREA":(t.classList.contains("enable-rte")||t.dataset.enableRichtext||t.dataset.enableRte)&&this.processState.widgets.push({identifier:"ckeditor",field:t});break}if(t.parentElement?.classList.contains("clearable")&&",INPUT:TEXT,INPUT:TEL,INPUT:NUMBER,INPUT:SEARCH,INPUT:EMAIL,INPUT:URL,".search(","+i+",")>-1&&parseInt(t.style.marginLeft)>-1){if(!t.parentElement?.classList.contains("input-group")){let l=d
36ocument.createElement("div");l.classList.add("input-group"),l.append(t)}let r=document.createElement("div");r.setAttribute("class","input-group-append clear"),t.after(r);let c=document.createElement("button");c.setAttribute("type","button"),c.setAttribute("class","button"),c.classList.add("btn btn-outline-th-lightblue btn-clear"),c.addEventListener("click",l=>{t.value=""}),r.append(c)}if(t.type!="range"&&(t.classList.contains("value-picker")||t.getAttribute("list"))&&t.closest(".form-element")?.querySelector("datalist")&&this.processState.widgets.push({identifier:"valuePicker",field:t}),(t.getAttribute("minlength")&&parseInt(t.getAttribute("minlength")??"0")>0||t.dataset.minlength&&parseInt(t.dataset.minlength??"0")>0||t.getAttribute("maxlength")&&parseInt(t.getAttribute("maxlength")??"0")>0||t.dataset.maxlength&&parseInt(t.dataset.maxlength??"0")>0)&&!t.classList.contains("disable-counter")&&parseInt(t.dataset.disableCounter??"0")<1&&this.processState.widgets.push({identifier:"counter",field:t}),t.dataset.widget&&t.dataset.widget!=""){let r=JSON.parse(decodeURIComponent(t.dataset.widget));r.field=t,this.processState.widgets.push(r)}let n=t.dataset.widgets?JSON.parse(decodeURIComponent(t.dataset.widgets)):null;n&&(Array.isArray(n)?n.forEach(r=>{r.field=t,this.processState.widgets.push(r)}):(n.field=t,this.processState.widgets.push(n)));let o=[];if(t.dataset.validateOnChange&&parseInt(t.dataset.validateOnChange)>0&&o.push("change"),t.dataset.validation){let r=JSON.parse(t.dataset.validation);if(r){let c=[];typeof r.listeners=="string"?c=r.listeners.split(" "):typeof r.listeners=="object"&&(c=Object.values(r.listeners)),c.length>0&&c.forEach(p=>{o.indexOf(p)<0&&o.push(p)});let l=new Map;(r.validators??[]).forEach(p=>{l.set(p.identifier,p)});let u={validators:Array.from(l.values())};$t.set(t,u),this.initValidators(t)}}o.length>0&&(o.forEach(r=>{t.addEventListener(r,()=>{let c=this.validate(t);return c||window.setTimeout(()=>{t.focus()},0),c})}),t.value!=""&&this.validate(t))})}initValidators(t){let i=JSON.parse(decodeURIComponent(t.dataset.validation??""));if(i&&i.validators&&Object.keys(i.validators).length>0)for(let s in i.validators){let n=i.validators[s],o=n.options?n.options:{};if(s.toUpperCase()==="PASSWORDVERIFICATION"){let r=this.form.querySelector(o.compareWithSelector);r&&(r.addEventListener("change",()=>{this.validate(t)}),r.addEventListener("input",()=>{this.validate(t)}))}}}validate(t){let i=!0,s=!1,n=[],o=t.dataset.validation&&t.dataset.validation!=""?JSON.parse(decodeURIComponent(t.dataset.validation)):$t.get(t)??{};if(t.classList.remove("is-valid"),t.classList.remove("is-invalid"),t.classList.remove("error"),t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),t.removeAttribute("aria-errormessage"),t.closest(".form-element")?.querySelectorAll(".invalid-feedback, .error.help-block").forEach(c=>{c.remove()}),o&&o.validators&&Object.keys(o.validators).length>0){s=!0;for(let c in o.validators){let l=t.value,h=o.validators[c],u=h.identifier,p=h.options??{},m=parseInt(t.getAttribute("min")??p.min??"0"),f=parseInt(t.getAttribute("max")??p.max??"0");switch(u.toUpperCase()){case"PASSWORDVERIFICATION":let g=this.form.querySelector(p.compareWithSelector);g?(g.value==""||l!==g.value)&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.passwordVerification.notvalid"))):(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.passwordVerification.notvalid")));break;case"EQUALS":let b=p.compareWith;if(p.compareWithSelector&&p.compareWithSelector!=""){let y=this.form.querySelector(p.compareWithSelector);y&&(b=y.value??"")}l!==b&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.equals.notvalid",{source:l,dest:b})));break;case"NOTEMPTY":l.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")==""&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.notEmpty.notvalid")));break;case"STRINGLENGTH":m>0&&f>0?(l.length<m||l.length>f)&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.stringLength.between",{max:f.toString(),min:m.toString()}))):(m>0&&l.length<m&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.stringLength.less",{min:m.toString()}))),f&&l.length>f&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.stringLength.exeed",{max:f.toString()}))));break;
36case"NUMBERSONLY":l.match(/\d+/)||(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.numbersOnly.notvalid")));break;case"NUMBERRANGE":l==""?(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.numberRange.notvalid"))):(parseInt(l)<m||parseInt(l)>f)&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.numberRange.range",{max:f.toString(),min:m.toString()})));break;case"INT":case"INTEGER":Number.isInteger(l)||(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.integer.notvalid")));break;case"FLOAT":Math.ceil(parseFloat(l))<parseFloat(l)&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.float.notvalid")));break;case"BOOL":case"BOOLEAN":if(typeof p.is<"u"){let y=p.is==="true"||parseInt(p.is)>0,S=l==="true"||parseInt(l)===1;y?S!==y&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.boolean.nottrue"))):S!==y&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.boolean.notfalse")))}break;case"REGULAREXPRESSION":if(p.pattern=="")i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.regularExpression.empty"));else try{l.match(p.pattern)||(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.regularExpression.nomatch")))}catch{i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.regularExpression.error"))}break;case"EMAILADDRESS":(p&&p.notEmpty&&l==""||/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(l)===!1)&&(i=!1,n.push(window.ThiemeCore.Lang.translate("common:validator.emailAddress.notvalid")));break;case"FILETYPE":t.files&&t.files.length>0&&Array.from(t.files).forEach(y=>{if((","+p.accept+",").search(","+y.type+",")<0){let x=p.accept.split(",").map(L=>window.ThiemeCore.Lang.translate("common:mimeTypes."+L));n.push(window.ThiemeCore.Lang.translate("common:validator.file.notaccepted",{allowed:x.join(", ")})),i=!1}});break;case"FILESIZE":t.files&&t.files.length>0&&Array.from(t.files).forEach(y=>{let S=parseInt(p.maxSize);y.size>S&&(n.push(window.ThiemeCore.Lang.translate("common:validator.file.wrongsize",{max:this.convertBytesToSize(S)})),i=!1)});break;case"FILEUPLOAD":let w=h;t.hasAttribute("required")&&(t.required=!0),t.files&&t.files.length>0&&(t.hasAttribute("required")&&(t.required=!1),Array.from(t.files).forEach(y=>{let S=w.fileSize,x=w.accept;if(S>0&&y.size>S&&(n.push(window.ThiemeCore.Lang.translate("common:validator.file.wrongsize",{max:this.convertBytesToSize(S)})),i=!1),x!==""&&(","+x+",").search(","+y.type+",")<0){let E=x.split(",").map(M=>window.ThiemeCore.Lang.translate("common:mimeTypes."+M));n.push(window.ThiemeCore.Lang.translate("common:validator.file.notaccepted",{allowed:E.join(", ")})),i=!1}}));break}}}let r=t.validity;if(r&&!r.valid&&(i=!1,t.validationMessage&&n.push(t.validationMessage)),i)s&&t.classList.add("is-valid");else{let c="invalid_feedback_";t.getAttribute("id")!==""?c+=t.getAttribute("id"):c+=Math.random().toString(16).slice(2),t.classList.add("is-invalid"),t.setAttribute("aria-invalid","true"),t.setAttribute("aria-describedby",c),t.setAttribute("aria-errormessage",c);let l=vn.get(t);if(l===void 0){l=document.createElement("div"),l.setAttribute("class","invalid-feedback");let h=t.parentElement?.querySelector(".feedback-container");if(h){let u=document.createElement("span");u.setAttribute("id",c),u.innerHTML=l.innerHTML,h.appendChild(u)}else l.setAttribute("id",c);t.parentElement?.classList.contains("input-group")?t.parentElement?.appendChild(l):t.after(l),vn.set(t,l)}l.innerHTML=n.join("<br/>")}return i}renderWidgets(t){for(let i in t){let s=t[i];if(typeof s.identifier>"u")continue;let n=s.field;switch(s.identifier.toUpperCase()){case"DATEPICKER":import("./date-picker-widget-HTO74PDZ.js").then(o=>{s.locale=this.options.locale,s.format=s.format??"Y-m-d H:i",s.forceBrowserNative=Gi(n.dataset.forceNative,1,!1),n.dataset.format&&(s.format=n.dataset.format),n.dataset.dateFormat&&(s.format=n.dataset.dateFormat),o.default.getOrCreateInstance(n,s)?.process()});break;case"SHOWHIDEPASSWORD":ys.getOrCreateInstance(n,s)?.process();break;case"PASSWORDSTRENGTH":pn.getOrCreateInstance(n,s)?.process();break;case"COUNTER":bs.getOrCreateInstance(n,s)?.process();break;case"RTEEDITOR":case"CKEDITOR":import("./rte-editor-widget-3A5QZUBR.js").then(o=>{o.default.getOrCreateInstance(n,s)?.process()});break;case"VALUEPICKER":mn.getOrCreateInstance(n,s)?.process();break;case"RANGE":gn.getOrCreateInstance(n,s)?.process();break;case"RATING":case"GRADEING":yn.getOrCreateInstance(n,s)?.process();break;case"SELECTLIST":bn.getOrCreateInstance(n,s)?.process();break;case"FILEUPLOAD":fn.getOrCreateInstance(n,s)?.process();break}}}convertBytesToSize(t){let i=["Bytes","KB","MB","GB","TB"];if(t===0)return"n/a";let s=Math.floor(Math.log(t)/Math.log(1024)),n=parseInt(s.toString());return n===0?t+" "+i[n]:(t/(1024*n)).toFixed(1)+" "+i[n]}};Vt.initializeDom("form",!0,!1,!0);var Le=class extends O{static{d(this,"FormField")}};var Uo='[data-render-type="fileUpload"]',Ut=class extends Le{static{d(this,"FileUploadField")}process(){let e=this.element,t=e.getAttribute("accept")??"";if(window.File&&window.FileReader&&window.Blob&&(e.classList.contains("image-upload")||t.search(/application\/pdf|image/i)>-1)){let i=e.closest(".input").querySelector(".preview"),s=e.dataset.maxWidth?parseInt(e.dataset.maxWidth):0;e.addEventListener("change",n=>{if(e.files&&e.files[0]){let o=e.files[0];if(o.type.search("application/pdf")>-1||o.type.search("image/")>-1){i.innerHTML="";let r=new FileReader;r.addEventListener("load",c=>{if(o.type.search("application/pdf")>
36-1){let l=document.createElement("embed");l.src=r.result?r.result.toString():"",l.setAttribute("type","application/pdf"),l.style.width="100%",l.style.height="300px",i.append(l)}else{let l=i.querySelector("img");if(l==null&&(l=document.createElement("img"),i.append(l)),l.src=r.result?r.result.toString():"",s>0){let h=new Image;h.addEventListener("load",u=>{let p=document.createElement("canvas"),m=h.width,f=h.height;m>f?m>s&&(f*=s/m,m=s):f>s&&(m*=s/f,f=s),p.width=m,p.height=f,p.getContext("2d")?.drawImage(h,0,0,m,f);let g=p.toDataURL(o.type);l.setAttribute("src",g),p.toBlob(b=>{if(b){let w=new File([b],o.name,{type:o.type}),y=new DataTransfer;y.items.add(w),e.files=y.files}},o.type)}),h.src=r.result?r.result.toString():""}}}),r.readAsDataURL(e.files[0])}}})}}};Ut.initializeDom(Uo,!0,!1,!0);var Zo=".th-fsc-fc",wn={animation:"flip-h",trigger:"click"},Zt=class extends _{constructor(){super(...arguments);this.options=wn;this.isLoaded=!1}static{d(this,"FlipContainer")}init(){this.options=this.assignConfig(wn,this.config)}process(){let t=this,i=t.options.animation;typeof i>"u"&&(i="flip-h"),this.element.querySelectorAll(".th-fsc-fc-item").forEach(s=>{s.classList.add(...i.split(" "));let n=s.style.width,o=t.options.trigger,r=[];o==="hover"?(r.push("mouseover"),r.push("mouseout"),r.push("touchstart")):r.push("click");let c=d(h=>{h.type=="mouseover"&&s.classList.contains("flipped")&&s.classList.remove("flipped"),s.classList.toggle("flipped")},"handleEvent");r.forEach(h=>{s.addEventListener(h,c)});let l=d(()=>{s.classList.remove("initialized"),s.style.width=n;let h=[];h.push(s.querySelector(".turnaround > .front").offsetHeight),h.push(s.querySelector(".turnaround > .back").offsetHeight);let u=Math.max(...h);s.querySelector(".turnaround").style.height=u+"px",s.classList.add("initialized")},"updateLayout");window.addEventListener("resize",l),l()})}};
vendor: 32,828 bytes, line 36
36Zt.initializeDom(Zo,!0,!1,!0);var Go=".th-fsc-magnet",Ko={conditionSelector:"",itemSelector:""},Gt=class extends _{constructor(){super(...arguments);this.items=new Map}static{d(this,"Magnet")}init(){this.options=this.assignConfig(Ko,this.config),Object.keys(this.options).forEach(t=>{this.options[t]!==null&&this.options[t].trim()===""&&this.element.dataset[t]!==null&&(this.options[t]=this.element.dataset[t])})}process(){if(this.options.itemSelector){let t=document.body;this.options.closestSelector&&this.options.closestSelector!==""?t=this.element.closest(this.options.closestSelector):this.options.contextSelector&&this.options.contextSelector!==""&&(t=document.querySelector(this.options.contextSelector)),t&&t.querySelectorAll(this.options.itemSelector)?.forEach(i=>{let s=document.createElement("div");s.classList.add("magnet-placeholder"),i.before(s),this.items.set(i,s)})}window.addEventListener("resize",()=>{this.update()}),window.addEventListener("orientationchanged",()=>{this.update()}),window.addEventListener("load",()=>{this.update()})}update(){this.options.conditionSelector&&this.items.size>0&&(document.querySelector(this.options.conditionSelector)?this.items.forEach((i,s)=>{s.parentElement!==this.element&&this.element.appendChild(s)}):this.items.forEach((i,s)=>{s.parentElement===this.element&&i.after(s)}))}};Gt.initializeDom(Go,!0,!0,!0);function B(a,e,t){let i=document.createElement(e);return a&&(i.className=a),t&&t.appendChild(i),i}d(B,"createElement");function k(a,e){return a.x=e.x,a.y=e.y,e.id!==void 0&&(a.id=e.id),a}d(k,"equalizePoints");function An(a){a.x=Math.round(a.x),a.y=Math.round(a.y)}d(An,"roundPoint");function Kt(a,e){let t=Math.abs(a.x-e.x),i=Math.abs(a.y-e.y);return Math.sqrt(t*t+i*i)}d(Kt,"getDistanceBetween");function xe(a,e){return a.x===e.x&&a.y===e.y}d(xe,"pointsEqual");function Ce(a,e,t){return Math.min(Math.max(a,e),t)}d(Ce,"clamp");function Me(a,e,t){let i=`translate3d(${a}px,${e||0}px,0)`;return t!==void 0&&(i+=` scale3d(${t},${t},1)`),i}d(Me,"toTransformString");function ee(a,e,t,i){a.style.transform=Me(e,t,i)}d(ee,"setTransform");var Yo="cubic-bezier(.4,0,.22,1)";function _n(a,e,t,i){a.style.transition=e?`${e} ${t}ms ${i||Yo}`:"none"}d(_n,"setTransitionStyle");function Yt(a,e,t){a.style.width=typeof e=="number"?`${e}px`:e,a.style.height=typeof t=="number"?`${t}px`:t}d(Yt,"setWidthHeight");function Jo(a){_n(a)}d(Jo,"removeTransitionStyle");function Xo(a){return"decode"in a?a.decode().catch(()=>{}):a.complete?Promise.resolve(a):new Promise((e,t)=>{a.onload=()=>e(a),a.onerror=t})}d(Xo,"decodeImage");var W={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function Qo(a){return"button"in a&&a.button===1||a.ctrlKey||a.metaKey||a.altKey||a.shiftKey}d(Qo,"specialKeyUsed");function er(a,e,t=document){let i=[];if(a instanceof Element)i=[a];else if(a instanceof NodeList||Array.isArray(a))i=Array.from(a);else{let s=typeof a=="string"?a:e;s&&(i=Array.from(t.querySelectorAll(s)))}return i}d(er,"getElementsFromOption");function En(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}d(En,"isSafari");var In=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:d(()=>{In=!0},"get")}))}catch{}var Jt=class{static{d(this,"DOMEvents")}constructor(){this._pool=[]}add(e,t,i,s){this._toggleListener(e,t,i,s)}remove(e,t,i,s){this._toggleListener(e,t,i,s,!0)}removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,t,i,s,n,o){if(!e)return;let r=n?"removeEventListener":"addEventListener";t.split(" ").forEach(l=>{if(l){o||(n?this._pool=this._pool.filter(u=>u.type!==l||u.listener!==i||u.target!==e):this._pool.push({target:e,type:l,listener:i,passive:s}));let h=In?{passive:s||!1}:!1;e[r](l,i,h)}})}};function On(a,e){if(a.getViewportSizeFn){let t=a.getViewportSizeFn(a,e);if(t)return t}return{x:document.documentElement.clientWidth,y:window.innerHeight}}d(On,"getViewportSize");function Se(a,e,t,i,s){let n=0;if(e.paddingFn)n=e.paddingFn(t,i,s)[a];else if(e.padding)n=e.padding[a];else{let o="padding"+a[0].toUpperCase()+a.slice(1);e[o]&&(n=e[o])}return Number(n)||0}d(Se,"parsePaddingOption");function Pn(a,e,t,i){return{x:e.x-Se("left",a,e,t,i)-Se("right",a,e,t,i),y:e.y-Se("top",a,e,t,i)-Se("bottom",a,e,t,i)}}d(Pn,"getPanAreaSize");var Xt=class{static{d(this,"PanBounds")}constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){let{pswp:t}=this.slide,i=this.slide[e==="x"?"width":"height"]*this.currZoomLevel,n=Se(e==="x"?"left":"top",t.options,t.viewportSize,this.slide.data,this.slide.index),o=this.slide.panAreaSize[e];this.center[e]=Math.round((o-i)/2)+n,this.max[e]=i>o?Math.round(o-i)+n:this.center[e],this.min[e]=i>o?n:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return Ce(t,this.max[e],this.min[e])}},Ln=4e3,lt=class{static{d(this,"ZoomLevel")}constructor(e,t,i,s){this.pswp=s,this.options=e,this.itemData=t,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,i){let s={x:e,y:t};this.elementSize=s,this.panAreaSize=i;let n=i.x/s.x,o=i.y/s.y;this.fit=Math.min(1,n<o?n:o),this.fill=Math.min(1,n>o?n:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){let t=e+"ZoomLevel",i=this.options[t];if(i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Ln&&(e=Ln/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}},Qt=class{static{d(this,"Slide")}constructor(e,t,i){this.data=e,this.index=t,this.pswp=i,this.isActive=t===i.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!i.opener.isOpen,this.zoomLevels=new lt(i.options,e,t,i),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:t}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=B("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new Xt(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){let{pswp:e}=this;this.heavyAppended||!e.opener.isOpen||e.mainScroll.isShifted()||!this.isActive&&!!0||this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this}))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel===this.zoomLevels.initial||!this.isActive?(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize()):(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y))}updateContentSize(e){let t=this.currentResolution||this.zoomLevels.initial;if(!t)return;let i=Math.round(this.width*t)||this.pswp.viewportSize.x,s=Math.round(this.height*t)||this.pswp.viewportSize.y;!this.sizeChanged(i,s)&&!e||this.content.setDisplayedSize(i,s)}sizeChanged(e,t){return e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight?(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0):!1}getPlaceholderElement(){var e;return(e=this.content.placeholder)===null||e===void 0?void 0:e.element}zoomTo(e,t,i,s){let{pswp:n}=this;if(!this.isZoomable()||n.mainScroll.isShifted())return;n.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:i}),n.animations.stopAllPan();let o=this.currZoomLevel;s||(e=Ce(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,o),this.pan.y=this.calculateZoomToPanOffset("y",t,o),An(this.pan);let r=d(()=>{this._setResolution(e),this.applyCurrentZoomPan()},"finishTransition");i?n.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:r,duration:i,easing:n.options.easing}):r()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,i){if(this.bounds.max[e]-this.bounds.min[e]===0)return this.bounds.center[e];t||(t=this.pswp.getViewportCenterPoint()),i||(i=this.zoomLevels.initial);let n=this.currZoomLevel/i;return this.bounds.correctPan(e,(this.pan[e]-t[e])*n+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return!!this.width&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return!!this.width&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),k(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,i){i/=this.currentResolution||this.zoomLevels.initial,ee(this.container,e,t,i)}calculateSize(){let{pswp:e}=this;k(this.panAreaSize,Pn(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){let e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return Me(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}},tr=.35,ir=.6,Tn=.4,Sn=.5;function sr(a,e){return a*e/(1-e)}d(sr,"project");var ei=class{static{d(this,"DragHandler")}constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&k(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){let{p1:e,prevP1:t,dragAxis:i}=this.gestures,{currSlide:s}=this.pswp;if(i==="y"&&this.pswp.options.closeOnVerticalDrag&&s&&s.currZoomLevel<=s.zoomLevels.fit&&!this.gestures.isMultitouch){let n=s.pan.y+(e.y-t.y);if(!this.pswp.dispatch("verticalDrag",{panY:n}).defaultPrevented){this._setPanWithFriction("y",n,ir);let o=1-Math.abs(this._getVerticalDragRatio(s.pan.y));this.pswp.applyBgOpacity(o),s.applyCurrentZoomPan()}}else this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),s&&(An(s.pan),s.applyCurrentZoomPan()))}end(){let{velocity:e}=this.gestures,{mainScroll:t,currSlide:i}=this.pswp,s=0;if(this.pswp.animations.stopAll(),t.isShifted()){let o=(t.x-t.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-Sn&&o<0||e.x<.1&&o<-.5?(s=1,e.x=Math.min(e.x,0)):(e.x>Sn&&o>0||e.x>-.1&&o>.5)&&(s=-1,e.x=Math.max(e.x,0)),t.moveIndexBy(s,!0,e.x)}i&&i.currZoomLevel>i.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){let{velocity:t}=this.gestures,{currSlide:i}=this.pswp;if(!i)return;let{pan:s,bounds:n}=i,o=s[e],r=this.pswp.bgOpacity<1&&e==="y",l=o+sr(t[e],.995);if(r){let f=this._getVerticalDragRatio(o),g=this._getVerticalDragRatio(l);if(f<0&&g<-Tn||f>0&&g>Tn){this.pswp.close();return}}let h=n.correctPan(e,l);if(o===h)return;let u=h===l?1:.82,p=this.pswp.bgOpacity,m=h-o;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:h,velocity:t[e],dampingRatio:u,onUpdate:d(f=>{if(r&&this.pswp.bgOpacity<1){let g=1-(h-f)/m;this.pswp.applyBgOpacity(Ce(p+(1-p)*g,0,1))}s[e]=Math.floor(f),i.applyCurrentZoomPan()},"onUpdate")})}_panOrMoveMainScroll(e){let{p1:t,dragAxis:i,prevP1:s,isMultitouch:n}=this.gestures,{currSlide:o,mainScroll:r}=this.pswp,c=t[e]-s[e],l=r.x+c;if(!c||!o)return!1;if(e==="x"&&!o.isPannable()&&!n)return r.moveTo(l,!0),!0;let{bounds:h}=o,u=o.pan[e]+c;if(this.pswp.options.allowPanToNext&&i==="x"&&e==="x"&&!n){let p=r.getCurrSlideX(),m=r.x-p,f=c>0,g=!f;if(u>h.min[e]&&f){if(h.min[e]<=this.startPan[e])return r.moveTo(l,!0),!0;this._setPanWithFriction(e,u)}else if(u<h.max[e]&&g){if(this.startPan[e]<=h.max[e])return r.moveTo(l,!0),!0;this._setPanWithFriction(e,u)}else if(m!==0){if(m>0)return r.moveTo(Math.max(l,p),!0),!0;if(m<0)return r.moveTo(Math.min(l,p),!0),!0}else this._setPanWithFriction(e,u)}else e==="y"?!r.isShifted()&&h.min.y!==h.max.y&&this._setPanWithFriction(e,u):this._setPanWithFriction(e,u);return!1}_getVerticalDragRatio(e){var t,i;return(e-((t=(i=this.pswp.currSlide)===null||i===void 0?void 0:i.bounds.center.y)!==null&&t!==void 0?t:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,i){let{currSlide:s}=this.pswp;if(!s)return;let{pan:n,bounds:o}=s;if(o.correctPan(e,t)!==t||i){let c=Math.round(t-n[e]);n[e]+=c*(i||tr)}else n[e]=t}},nr=.05,or=.15;function xn(a,e,t){return a.x=(e.x+t.x)/2,a.y=(e.y+t.y)/2,a}d(xn,"getZoomPointsCenter");var ti=class{static{d(this,"ZoomHandler")}constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){let{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,k(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){let{p1:e,startP1:t,p2:i,startP2:s,pswp:n}=this.gestures,{currSlide:o}=n;if(!o)return;let r=o.zoomLevels.min,c=o.zoomLevels.max;if(!o.isZoomable()||n.mainScroll.isShifted())return;xn(this._startZoomPoint,t,s),xn(this._zoomPoint,e,i);let l=1/Kt(t,s)*Kt(e,i)*this._startZoomLevel;if(l>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),l<r)if(n.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){let h=1-(r-l)/(r/1.2);n.dispatch("pinchClose",{bgOpacity:h}).defaultPrevented||n.applyBgOpacity(h)}else l=r-(r-l)*or;else l>c&&(l=c+(l-c)*nr);o.pan.x=this._calculatePanForZoomLevel("x",l),o.pan.y=this._calculatePanForZoomLevel("y",l),o.setZoomLevel(l),o.applyCurrentZoomPan()}end(){let{pswp:e}=this.gestures,{currSlide:t}=e;(!t||t.currZoomLevel<t.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){let i=t/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*i}correctZoomPan(e){let{pswp:t}=this.gestures,{currSlide:i}=t;if(!(i!=null&&i.isZoomable()))return;this._zoomPoint.x===0&&(e=!0);let s=i.currZoomLevel,n,o=!0;s<i.zoomLevels.initial?n=i.zoomLevels.initial:s>i.zoomLevels.max?n=i.zoomLevels.max:(o=!1,n=s);let r=t.bgOpacity,c=t.bgOpacity<1,l=k({x:0,y:0},i.pan),h=k({x:0,y:0},l);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=s,k(this._startPan,l)),o&&(h={x:this._calculatePanForZoomLevel("x",n),y:this._calculatePanForZoomLevel("y",n)}),i.setZoomLevel(n),h={x:i.bounds.correctPan("x",h.x),y:i.bounds.correctPan("y",h.y)},i.setZoomLevel(s);let u=!xe(h,l);if(!u&&!o&&!c){i._setResolution(n),i.applyCurrentZoomPan();return}t.animations.stopAllPan(),t.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:d(p=>{if(p/=1e3,u||o){if(u&&(i.pan.x=l.x+(h.x-l.x)*p,i.pan.y=l.y+(h.y-l.y)*p),o){let m=s+(n-s)*p;i.setZoomLevel(m)}i.applyCurrentZoomPan()}c&&t.bgOpacity<1&&t.applyBgOpacity(Ce(r+(1-r)*p,0,1))},"onUpdate"),onComplete:d(()=>{i._setResolution(n),i.applyCurrentZoomPan()},"onComplete")})}};function Mn(a){return!!a.target.closest(".pswp__container")}d(Mn,"didTapOnMainContent");var ii=class{static{d(this,"TapHandler")}constructor(e){this.gestures=e}click(e,t){let i=t.target.classList,s=i.contains("pswp__img"),n=i.contains("pswp__item")||i.contains("pswp__zoom-wrap");s?this._doClickOrTapAction("imageClick",e,t):n&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){Mn(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){Mn(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,i){var s;let{pswp:n}=this.gestures,{currSlide:o}=n,r=e+"Action",c=n.options[r];if(!n.dispatch(r,{point:t,originalEvent:i}).defaultPrevented){if(typeof c=="function"){c.call(n,t,i);return}switch(c){case"close":case"next":n[c]();break;case"zoom":o?.toggleZoom(t);break;case"zoom-or-close":o!=null&&o.isZoomable()&&o.zoomLevels.secondary!==o.zoomLevels.initial?o.toggleZoom(t):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":(s=this.gestures.pswp.element)===null||s===void 0||s.classList.toggle("pswp--ui-visible");break}}}},rr=10,ar=300,lr=25,si=class{static{d(this,"Gestures")}constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new ei(this),this.zoomLevels=new ti(this),this.tapHandler=new ii(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,t,i,s){let{pswp:n}=this,{events:o}=n,r=s?e+s:"";o.add(n.scrollWrap,e+t,this.onPointerDown.bind(this)),o.add(window,e+"move",this.onPointerMove.bind(this)),o.add(window,e+i,this.onPointerUp.bind(this)),r&&o.add(n.scrollWrap,r,this.onPointerUp.bind(this))}onPointerDown(e){let t=e.type==="mousedown"||e.pointerType==="mouse";if(t&&e.button>0)return;let{pswp:i}=this;if(!i.opener.isOpen){e.preventDefault();return}i.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(t&&(i.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),i.animations.stopAll(),this._updatePoints(e,"down"),this._numActivePoints===1&&(this.dragAxis=null,k(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1)}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),!this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===1&&!this.isDragging?(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,k(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop())):this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop())))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),!this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented&&(this._numActivePoints===0&&(this._rafStopLoop(),this.isDragging?this._finishDrag():!this.isZooming&&!this.isMultitouch&&this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),this._numActivePoints===1&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?xe(this.p1,this.prevP1)||this.drag.change():(!xe(this.p1,this.prevP1)||!xe(this.p2,this.prevP2))&&this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){let t=Date.now(),i=t-this._intervalTime;i<50&&!e||(this.velocity.x=this._getVelocity("x",i),this.velocity.y=this._getVelocity("y",i),this._intervalTime=t,k(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){let{mainScroll:t}=this.pswp;if(t.isShifted()){t.moveIndexBy(0,!0);return}if(e.type.indexOf("cancel")>0)return;if(e.type==="mouseup"||e.pointerType==="mouse"){this.tapHandler.click(this.startP1,e);return}let i=this.pswp.options.doubleTapAction?ar:0;this._tapTimer?(this._clearTapTimer(),Kt(this._lastStartP1,this.startP1)<lr&&this.tapHandler.doubleTap(this.startP1,e)):(k(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},i))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){let i=this.p1[e]-this._intervalP1[e];return Math.abs(i)>1&&t>5?i/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,t){this.pswp.applyFilters("preventPointerEvent",!0,e,t)&&e.preventDefault()}_updatePoints(e,t){if(this._pointerEventEnabled){let i=e,s=this._ongoingPointers.findIndex(n=>n.id===i.pointerId);t==="up"&&s>-1?this._ongoingPointers.splice(s,1):t==="down"&&s===-1?this._ongoingPointers.push(this._convertEventPosToPoint(i,{x:0,y:0})):s>-1&&this._convertEventPosToPoint(i,this._ongoingPointers[s]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&k(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&k(this.p2,this._ongoingPointers[1])}else{let i=e;this._numActivePoints=0,i.type.indexOf("touch")>-1?i.touches&&i.touches.length>0&&(this._convertEventPosToPoint(i.touches[0],this.p1),this._numActivePoints++,i.touches.length>1&&(this._convertEventPosToPoint(i.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),t==="up"?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){k(this.prevP1,this.p1),k(this.prevP2,this.p2)}_updateStartPoints(){k(this.startP1,this.p1),k(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{let e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(e!==0){let t=e>0?"x":"y";Math.abs(this.p1[t]-this.startP1[t])>=rr&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:e.identifier!==void 0&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}},cr=.35,ni=class{static{d(this,"MainScroll")}constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){let{pswp:t}=this,i=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),s=i!==this.slideWidth;s&&(this.slideWidth=i,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((n,o)=>{s&&ee(n.el,(o+this._containerShiftIndex)*this.slideWidth),e&&n.slide&&n.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let e=0;e<3;e++){let t=B("pswp__item","div",this.pswp.container);t.setAttribute("role","group"),t.setAttribute("aria-roledescription","slide"),t.setAttribute("aria-hidden","true"),t.style.display=e===1?"block":"none",this.itemHolders.push({el:t})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,i){let{pswp:s}=this,n=s.potentialIndex+e,o=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);let c=(e+o)%o;c<=o/2?e=c:e=c-o}else n<0?n=0:n>=o&&(n=o-1),e=n-s.potentialIndex;s.potentialIndex=n,this._currPositionIndex-=e,s.animations.stopMainScroll();let r=this.getCurrSlideX();if(!t)this.moveTo(r),this.updateCurrItem();else{s.animations.startSpring({isMainScroll:!0,start:this.x,end:r,velocity:i||0,naturalFrequency:30,dampingRatio:1,onUpdate:d(l=>{this.moveTo(l)},"onUpdate"),onComplete:d(()=>{this.updateCurrItem(),s.appendHeavy()},"onComplete")});let c=s.potentialIndex-s.currIndex;if(s.canLoop()){let l=(c+o)%o;l<=o/2?c=l:c=l-o}Math.abs(c)>1&&this.updateCurrItem()}return!!e}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;let{pswp:t}=this,i=this._prevPositionIndex-this._currPositionIndex;if(!i)return;this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex;let s=Math.abs(i),n;s>=3&&(this._containerShiftIndex+=i+(i>0?-3:3),s=3,this.itemHolders.forEach(o=>{var r;(r=o.slide)===null||r===void 0||r.destroy(),o.slide=void 0}));for(let o=0;o<s;o++)i>0?(n=this.itemHolders.shift(),n&&(this.itemHolders[2]=n,this._containerShiftIndex++,ee(n.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(n,t.currIndex-s+o+2))):(n=this.itemHolders.pop(),n&&(this.itemHolders.unshift(n),this._containerShiftIndex--,ee(n.el,this._containerShiftIndex*this.slideWidth),t.setContent(n,t.currIndex+s-o-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach((o,r)=>{o.slide&&o.slide.setIsActive(r===1)}),t.currSlide=(e=this.itemHolders[1])===null||e===void 0?void 0:e.slide,t.contentLoader.updateLazy(i),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(e,t){if(!this.pswp.canLoop()&&t){let i=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;i+=this.pswp.currIndex;let s=Math.round(e-this.x);(i<0&&s>0||i>=this.pswp.getNumItems()-1&&s<0)&&(e=this.x+s*cr)}this.x=e,this.pswp.container&&ee(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:t??!1})}},dr={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},Q=d((a,e)=>e?a:dr[a],"getKeyboardEventKey"),oi=class{static{d(this,"Keyboard")}constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});let t=document.activeElement;e.on("destroy",()=>{e.options.returnFocus&&t&&this._wasFocused&&t.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){let{pswp:t}=this;if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented||Qo(e))return;let i,s,n=!1,o="key"in e;switch(o?e.key:e.keyCode){case Q("Escape",o):t.options.escKey&&(i="close");break;case Q("z",o):i="toggleZoom";break;case Q("ArrowLeft",o):s="x";break;case Q("ArrowUp",o):s="y";break;case Q("ArrowRight",o):s="x",n=!0;break;case Q("ArrowDown",o):n=!0,s="y";break;case Q("Tab",o):this._focusRoot();break}if(s){e.preventDefault();let{currSlide:r}=t;t.options.arrowKeys&&s==="x"&&t.getNumItems()>1?i=n?"next":"prev":r&&r.currZoomLevel>r.zoomLevels.fit&&(r.pan[s]+=n?-80:80,r.panTo(r.pan.x,r.pan.y))}i&&(e.preventDefault(),t[i]())}_onFocusIn(e){let{template:t}=this.pswp;t&&document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}},hr="cubic-bezier(.4,0,.22,1)",ri=class{static{d(this,"CSSAnimation")}constructor(e){var t;this.props=e;let{target:i,onComplete:s,transform:n,onFinish:o=d(()=>{},"onFinish"),duration:r=333,easing:c=hr}=e;this.onFinish=o;let l=n?"transform":"opacity",h=(t=e[l])!==null&&t!==void 0?t:"";this._target=i,this._onComplete=s,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{_n(i,l,r,c),this._helperTimeout=setTimeout(()=>{i.addEventListener("transitionend",this._onTransitionEnd,!1),i.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},r+500),i.style[l]=h},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),Jo(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}},ur=12,pr=.75,ai=class{static{d(this,"SpringEaser")}constructor(e,t,i){this.velocity=e*1e3,this._dampingRatio=t||pr,this._naturalFrequency=i||ur,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let i=0,s;t/=1e3;let n=Math.E**(-this._dampingRatio*this._naturalFrequency*t);if(this._dampingRatio===1)s=this.velocity+this._naturalFrequency*e,i=(e+s*t)*n,this.velocity=i*-this._naturalFrequency+s*n;else if(this._dampingRatio<1){s=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);let o=Math.cos(this._dampedFrequency*t),r=Math.sin(this._dampedFrequency*t);i=n*(e*o+s*r),this.velocity=i*-this._naturalFrequency*this._dampingRatio+n*(-this._dampedFrequency*e*r+this._dampedFrequency*s*o)}return i}},li=class{static{d(this,"SpringAnimation")}constructor(e){this.props=e,this._raf=0;let{start:t,end:i,velocity:s,onUpdate:n,onComplete:o,onFinish:r=d(()=>{},"onFinish"),dampingRatio:c,naturalFrequency:l}=e;this.onFinish=r;let h=new ai(s,c,l),u=Date.now(),p=t-i,m=d(()=>{this._raf&&(p=h.easeFrame(p,Date.now()-u),Math.abs(p)<1&&Math.abs(h.velocity)<50?(n(i),o&&o(),this.onFinish()):(u=Date.now(),n(p+i),this._raf=requestAnimationFrame(m)))},"animationLoop");this._raf=requestAnimationFrame(m)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}},ci=class{static{d(this,"Animations")}constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){let i=t?new li(e):new ri(e);return this.activeAnimations.push(i),i.onFinish=()=>this.stop(i),i}stop(e){e.destroy();let t=this.activeAnimations.indexOf(e);t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isPan?(e.destroy(),!1):!0)}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>e.props.isMainScroll?(e.destroy(),!1):!0)}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}},di=class{static{d(this,"ScrollWheel")}constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();let{currSlide:t}=this.pswp,{deltaX:i,deltaY:s}=e;if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let n=-s;
36e.deltaMode===1?n*=.05:n*=e.deltaMode?1:.002,n=2**n;let o=t.currZoomLevel*n;t.zoomTo(o,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(e.deltaMode===1&&(i*=18,s*=18),t.panTo(t.pan.x-i,t.pan.y-s))}};function mr(a){if(typeof a=="string")return a;if(!a||!a.isCustomSVG)return"";let e=a,t='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return t=t.split("%d").join(e.size||32),e.outlineID&&(t+='<use class="pswp__icn-shadow" xlink:href="#'+e.outlineID+'"/>'),t+=e.inner,t+="</svg>",t}d(mr,"addElementHTML");var hi=class{static{d(this,"UIElement")}constructor(e,t){var i;let s=t.name||t.className,n=t.html;if(e.options[s]===!1)return;typeof e.options[s+"SVG"]=="string"&&(n=e.options[s+"SVG"]),e.dispatch("uiElementCreate",{data:t});let o="";t.isButton?(o+="pswp__button ",o+=t.className||`pswp__button--${t.name}`):o+=t.className||`pswp__${t.name}`;let r=t.isButton?t.tagName||"button":t.tagName||"div";r=r.toLowerCase();let c=B(o,r);if(t.isButton){r==="button"&&(c.type="button");let{title:u}=t,{ariaLabel:p}=t;typeof e.options[s+"Title"]=="string"&&(u=e.options[s+"Title"]),u&&(c.title=u);let m=p||u;m&&c.setAttribute("aria-label",m)}c.innerHTML=mr(n),t.onInit&&t.onInit(c,e),t.onClick&&(c.onclick=u=>{typeof t.onClick=="string"?e[t.onClick]():typeof t.onClick=="function"&&t.onClick(u,c,e)});let l=t.appendTo||"bar",h=e.element;l==="bar"?(e.topBar||(e.topBar=B("pswp__top-bar pswp__hide-on-close","div",e.scrollWrap)),h=e.topBar):(c.classList.add("pswp__hide-on-close"),l==="wrapper"&&(h=e.scrollWrap)),(i=h)===null||i===void 0||i.appendChild(e.applyFilters("uiElement",c,t))}};function Hn(a,e,t){a.classList.add("pswp__button--arrow"),a.setAttribute("aria-controls","pswp__items"),e.on("change",()=>{e.options.loop||(t?a.disabled=!(e.currIndex<e.getNumItems()-1):a.disabled=!(e.currIndex>0))})}d(Hn,"initArrowButton");var fr={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Hn},gr={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:d((a,e)=>{Hn(a,e,!0)},"onInit")},yr={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},br={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},vr={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:d((a,e)=>{let t,i=null,s=d((r,c)=>{a.classList.toggle("pswp__preloader--"+r,c)},"toggleIndicatorClass"),n=d(r=>{t!==r&&(t=r,s("active",r))},"setIndicatorVisibility"),o=d(()=>{var r;if(!((r=e.currSlide)!==null&&r!==void 0&&r.content.isLoading())){n(!1),i&&(clearTimeout(i),i=null);return}i||(i=setTimeout(()=>{var c;n(!!(!((c=e.currSlide)===null||c===void 0)&&c.content.isLoading())),i=null},e.options.preloaderDelay))},"updatePreloaderVisibility");e.on("change",o),e.on("loadComplete",r=>{e.currSlide===r.slide&&o()}),e.ui&&(e.ui.updatePreloaderVisibility=o)},"onInit")},wr={name:"counter",order:5,onInit:d((a,e)=>{e.on("change",()=>{a.innerText=e.currIndex+1+e.options.indexIndicatorSep+e.getNumItems()})},"onInit")};function Cn(a,e){a.classList.toggle("pswp--zoomed-in",e)}d(Cn,"setZoomedIn");var ui=class{static{d(this,"UI")}constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){let{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[yr,fr,gr,br,vr,wr],e.dispatch("uiRegister"),this.uiElementsData.sort((t,i)=>(t.order||0)-(i.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(t=>{this.registerElement(t)}),e.on("change",()=>{var t;(t=e.element)===null||t===void 0||t.classList.toggle("pswp--one-slide",e.getNumItems()===1)}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new hi(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){let{template:e,currSlide:t,options:i}=this.pswp;if(this.pswp.opener.isClosing||!e||!t)return;let{currZoomLevel:s}=t;if(this.pswp.opener.isOpen||(s=t.zoomLevels.initial),s===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=s;let n=t.zoomLevels.initial-t.zoomLevels.secondary;if(Math.abs(n)<.01||!t.isZoomable()){Cn(e,!1),e.classList.remove("pswp--zoom-allowed");return}e.classList.add("pswp--zoom-allowed");let o=s===t.zoomLevels.initial?t.zoomLevels.secondary:t.zoomLevels.initial;Cn(e,o<=s),(i.imageClickAction==="zoom"||i.imageClickAction==="zoom-or-close")&&e.classList.add("pswp--cl
36ick-to-zoom")}};function Er(a){let e=a.getBoundingClientRect();return{x:e.left,y:e.top,w:e.width}}d(Er,"getBoundsByElement");function Lr(a,e,t){let i=a.getBoundingClientRect(),s=i.width/e,n=i.height/t,o=s>n?s:n,r=(i.width-e*o)/2,c=(i.height-t*o)/2,l={x:i.left+r,y:i.top+c,w:e*o};return l.innerRect={w:i.width,h:i.height,x:r,y:c},l}d(Lr,"getCroppedBoundsByElement");function Tr(a,e,t){let i=t.dispatch("thumbBounds",{index:a,itemData:e,instance:t});if(i.thumbBounds)return i.thumbBounds;let{element:s}=e,n,o;if(s&&t.options.thumbSelector!==!1){let r=t.options.thumbSelector||"img";o=s.matches(r)?s:s.querySelector(r)}return o=t.applyFilters("thumbEl",o,e,a),o&&(e.thumbCropped?n=Lr(o,e.width||e.w||0,e.height||e.h||0):n=Er(o)),t.applyFilters("thumbBounds",n,e,a)}d(Tr,"getThumbBounds");var pi=class{static{d(this,"PhotoSwipeEvent")}constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}},mi=class{static{d(this,"Eventable")}constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,i=100){var s,n,o;this._filters[e]||(this._filters[e]=[]),(s=this._filters[e])===null||s===void 0||s.push({fn:t,priority:i}),(n=this._filters[e])===null||n===void 0||n.sort((r,c)=>r.priority-c.priority),(o=this.pswp)===null||o===void 0||o.addFilter(e,t,i)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(i=>i.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var i;return(i=this._filters[e])===null||i===void 0||i.forEach(s=>{t[0]=s.fn.apply(this,t)}),t[0]}on(e,t){var i,s;this._listeners[e]||(this._listeners[e]=[]),(i=this._listeners[e])===null||i===void 0||i.push(t),(s=this.pswp)===null||s===void 0||s.on(e,t)}off(e,t){var i;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(s=>t!==s)),(i=this.pswp)===null||i===void 0||i.off(e,t)}dispatch(e,t){var i;if(this.pswp)return this.pswp.dispatch(e,t);let s=new pi(e,t);return(i=this._listeners[e])===null||i===void 0||i.forEach(n=>{n.call(this,s)}),s}},fi=class{static{d(this,"Placeholder")}constructor(e,t){if(this.element=B("pswp__img pswp__img--placeholder",e?"img":"div",t),e){let i=this.element;i.decoding="async",i.alt="",i.src=e,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&(this.element.tagName==="IMG"?(Yt(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Me(0,0,e/250)):Yt(this.element,e,t))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},gi=class{static{d(this,"Content")}constructor(e,t,i){this.instance=t,this.data=e,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=W.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){let i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{let i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new fi(i,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=B("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=B("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=(t=this.data.src)!==null&&t!==void 0?t:"",s.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=W.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=W.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===W.LOADED||this.state===W.ERROR)&&this.removePlaceholder())}onError(){this.state=W.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
vendor: 11,924 bytes, line 36
36content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===W.LOADING,this)}isError(){return this.state===W.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(Yt(this.element,e,t),this.isImageContent()&&!this.isError()))){let i=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==W.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let i=B("pswp__error-msg","div");i.innerText=(e=(t=this.instance.options)===null||t===void 0?void 0:t.errorMsg)!==null&&e!==void 0?e:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=B("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===W.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||En())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!En()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===W.LOADED||this.state===W.ERROR)&&this.removePlaceholder()))}},Sr=5;function kn(a,e,t){let i=e.createContentFromData(a,t),s,{options:n}=e;if(n){s=new lt(n,a,-1);let o;e.pswp?o=e.pswp.viewportSize:o=On(n,e);let r=Pn(n,o,a,t);s.update(i.width,i.height,r)}return i.lazyLoad(),s&&i.setDisplayedSize(Math.ceil(i.width*s.initial),Math.ceil(i.height*s.initial)),i}d(kn,"lazyLoadData");function xr(a,e){let t=e.getItemData(a);if(!e.dispatch("lazyLoadSlide",{index:a,itemData:t}).defaultPrevented)return kn(t,e,a)}d(xr,"lazyLoadSlide");var yi=class{static{d(this,"ContentLoader")}constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,Sr),this._cachedItems=[]}updateLazy(e){let{pswp:t}=this;if(t.dispatch("lazyLoad").defaultPrevented)return;let{preload:i}=t.options,s=e===void 0?!0:e>=0,n;for(n=0;n<=i[1];n++)this.loadSlideByIndex(t.currIndex+(s?n:-n));for(n=1;n<=i[0];n++)this.loadSlideByIndex(t.currIndex+(s?-n:n))}loadSlideByIndex(e){let t=this.pswp.getLoopedIndex(e),i=this.getContentByIndex(t);i||(i=xr(t,this.pswp),i&&this.addToCache(i))}getContentBySlide(e){let t=this.getContentByIndex(e.index);return t||(t=this.pswp.createContentFromData(e.data,e.index),this.addToCache(t)),t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){let t=this._cachedItems.findIndex(i=>!i.isAttached&&!i.hasSlide);t!==-1&&this._cachedItems.splice(t,1)[0].destroy()}}removeByIndex(e){let t=this._cachedItems.findIndex(i=>i.index===e);t!==-1&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find(t=>t.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}},bi=class extends mi{static{d(this,"PhotoSwipeBase")}getNumItems(){var e;let t=0,i=(e=this.options)===null||e===void 0?void 0:e.dataSource;i&&"length"in i?t=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(t=i.items.length));let s=this.dispatch("numItems",{dataSource:i,numItems:t});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(e,t){return new gi(e,this,t)}getItemData(e){var t;let i=(t=this.options)===null||t===void 0?void 0:t.dataSource,s={};Array.isArray(i)?s=i[e]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[e]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));let o=this.dispatch("itemData",{itemData:n||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,i;return(t=this.options)!==null&&t!==void 0&&t.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?er(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let t={element:e},i=e.tagName==="A"?e:e.querySelector("a");if(i){t.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(t.srcset=i.dataset.pswpSrcset),t.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,t.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,i.dataset.pswpType&&(t.type=i.dataset.pswpType);let n=e.querySelector("img");if(n){var s;t.msrc=n.currentSrc||n.src,t.alt=(s=n.getAttribute("alt"))!==null&&s!==void 0?s:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,i)}lazyLoadData(e,t){return kn(e,this,t)}},Te=.003,vi=class{static{d(this,"Opener")}constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;let e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){let e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){let{pswp:e}=this,t=this.pswp.currSlide,{options:i}=e;if(i.showHideAnimationType==="fade"?(i.showHideOpacity=!0,this._thumbBounds=void 0):i.showHideAnimationType==="none"?(i.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=t?.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=!!(this._duration&&this._duration>50),this._animateZoom=!!this._thumbBounds&&t?.content.usePlaceholder()&&(!this.isClosing||!e.mainScroll.isShifted()),!this._animateZoom)this._animateRootOpacity=!0,this.isOpening&&t&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan());else{var s;this._animateRootOpacity=(s=i.showHideOpacity)!==null&&s!==void 0?s:!1}if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>Te,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation){this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,this.isOpening&&(e.element&&(e.element.style.opacity=String(Te)),e.applyBgOpacity(1));return}if(this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect){var n;this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=(n=this.pswp.currSlide)===null||n===void 0?void 0:n.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")}else this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(Te)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(Te)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(Te)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&e.mainScroll.x!==0&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&this._placeholder.tagName==="IMG"?new Promise(e=>{let t=!1,i=!0;Xo(this._placeholder).finally(()=>{t=!0,i||e(!0)}),setTimeout(()=>{i=!1,t&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,t;(e=this.pswp.element)===null||e===void 0||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),(t=this.pswp.element)===null||t===void 0||t.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){let{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var t;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),(t=e.currSlide)===null||t===void 0||t.applyCurrentZoomPan()}}_animateToOpenState(){let{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,
360,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){let{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;let{pswp:t}=this,{innerRect:i}=this._thumbBounds,{currSlide:s,viewportSize:n}=t;if(this._croppedZoom&&i&&this._cropContainer1&&this._cropContainer2){let o=-n.x+(this._thumbBounds.x-i.x)+i.w,r=-n.y+(this._thumbBounds.y-i.y)+i.h,c=n.x-i.w,l=n.y-i.h;e?(this._animateTo(this._cropContainer1,"transform",Me(o,r)),this._animateTo(this._cropContainer2,"transform",Me(c,l))):(ee(this._cropContainer1,o,r),ee(this._cropContainer2,c,l))}s&&(k(s.pan,i||this._thumbBounds),s.currZoomLevel=this._thumbBounds.w/s.width,e?this._animateTo(s.container,"transform",s.getCurrentTransform()):s.applyCurrentZoomPan())}_animateTo(e,t,i){if(!this._duration){e.style[t]=i;return}let{animations:s}=this.pswp,n={duration:this._duration,easing:this.pswp.options.easing,onComplete:d(()=>{s.activeAnimations.length||this._onAnimationComplete()},"onComplete"),target:e};n[t]=i,s.startTransition(n)}},Mr={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"},le=class extends bi{static{d(this,"PhotoSwipe")}constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new Jt,this.animations=new ci,this.mainScroll=new ni(this),this.gestures=new si(this),this.opener=new vi(this),this.keyboard=new oi(this),this.contentLoader=new yi(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new di(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{let{itemHolders:t}=this.mainScroll;t[0]&&(t[0].el.style.display="block",this.setContent(t[0],this.currIndex-1)),t[2]&&(t[2].el.style.display="block",this.setContent(t[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){let t=this.getNumItems();return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),Ce(e,0,t-1)}
vendor: 18,535 bytes, line 36
36appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var t;(t=e.slide)===null||t===void 0||t.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var t;(t=this.currSlide)===null||t===void 0||t.zoomTo(...e)}toggleZoom(){var e;(e=this.currSlide)===null||e===void 0||e.toggleZoom()}close(){!this.opener.isOpen||this.isDestroying||(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying){this.options.showHideAnimationType="none",this.close();return}this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),(e=this.element)===null||e===void 0||e.remove(),this.mainScroll.itemHolders.forEach(t=>{var i;(i=t.slide)===null||i===void 0||i.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((t,i)=>{var s,n;let o=((s=(n=this.currSlide)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:0)-1+i;if(this.canLoop()&&(o=this.getLoopedIndex(o)),o===e&&(this.setContent(t,e,!0),i===1)){var r;this.currSlide=t.slide,(r=t.slide)===null||r===void 0||r.setIsActive(!0)}}),this.dispatch("change")}setContent(e,t,i){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!i)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return;let s=this.getItemData(t);e.slide=new Qt(s,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;let t=On(this.options,this);!e&&xe(t,this._prevViewportSize)||(k(this._prevViewportSize,t),this.dispatch("beforeResize"),k(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){if(!this.hasMouse){var e;this.hasMouse=!0,(e=this.element)===null||e===void 0||e.classList.add("pswp--has_mouse")}}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=B("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=B("pswp__bg","div",this.element),this.scrollWrap=B("pswp__scroll-wrap","section",this.element),this.container=B("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new ui(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return Tr(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...Mr,...e}}};function Ae(a,e,t){let i=document.createElement(e);return a&&(i.className=a),t&&t.appendChild(i),i}d(Ae,"createElement");function Cr(a,e,t){let i=`translate3d(${a}px,${e||0}px,0)`;return t!==void 0&&(i+=` scale3d(${t},${t},1)`),i}d(Cr,"toTransformString");function wi(a,e,t){a.style.width=typeof e=="number"?`${e}px`:e,a.style.height=typeof t=="number"?`${t}px`:t}d(wi,"setWidthHeight");var j={IDLE:"idle",LOADING:"loading",LOADED:"loaded",ERROR:"error"};function Ar(a){return"button"in a&&a.button===1||a.ctrlKey||a.metaKey||a.altKey||a.shiftKey}d(Ar,"specialKeyUsed");function _e(a,e,t=document){let i=[];if(a instanceof Element)i=[a];else if(a instanceof NodeList||Array.isArray(a))i=Array.from(a);else{let s=typeof a=="string"?a:e;s&&(i=Array.from(t.querySelectorAll(s)))}return i}d(_e,"getElementsFromOption");function _r(a){return typeof a=="function"&&a.prototype&&a.prototype.goTo}d(_r,"isPswpClass");function Dn(){return!!(navigator.vendor&&navigator.vendor.match(/apple/i))}d(Dn,"isSafari");var Ei=class{static{d(this,"PhotoSwipeEvent")}constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}},Li=class{static{d(this,"Eventable")}constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,i=100){var s,n,o;this._filters[e]||(this._filters[e]=[]),(s=this._filters[e])===null||s===void 0||s.push({fn:t,priority:i}),(n=this._filters[e])===null||n===void 0||n.sort((r,c)=>r.priority-c.priority),(o=this.pswp)===null||o===void 0||o.addFilter(e,t,i)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(i=>i.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var i;return(i=this._filters[e])===null||i===void 0||i.forEach(s=>{t[0]=s.fn.apply(this,t)}),t[0]}on(e,t){var i,s;this._listeners[e]||(this._listeners[e]=[]),(i=this._listeners[e])===null||i===void 0||i.push(t),(s=this.pswp)===null||s===void 0||s.on(e,t)}off(e,t){var i;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(s=>t!==s)),(i=this.pswp)===null||i===void 0||i.off(e,t)}dispatch(e,t){var i;if(this.pswp)return this.pswp.dispatch(e,t);let s=new Ei(e,t);return(i=this._listeners[e])===null||i===void 0||i.forEach(n=>{n.call(this,s)}),s}},Ti=class{static{d(this,"Placeholder")}constructor(e,t){if(this.element=Ae("pswp__img pswp__img--placeholder",e?"img":"div",t),e){let i=this.element;i.decoding="async",i.alt="",i.src=e,i.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&(this.element.tagName==="IMG"?(wi(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=Cr(0,0,e/250)):wi(this.element,e,t))}destroy(){var e;(e=this.element)!==null&&e!==void 0&&e.parentNode&&this.element.remove(),this.element=null}},Si=class{static{d(this,"Content")}constructor(e,t,i){this.instance=t,this.data=e,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=j.IDLE,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(e,t){if(this.slide&&this.usePlaceholder())if(this.placeholder){let i=this.placeholder.element;i&&!i.parentElement&&this.slide.container.prepend(i)}else{let i=this.instance.applyFilters("placeholderSrc",this.data.msrc&&this.slide.isFirstSlide?this.data.msrc:!1,this);this.placeholder=new Ti(i,this.slide.container)}this.element&&!t||this.instance.dispatch("contentLoad",{content:this,isLazy:e}).defaultPrevented||(this.isImageContent()?(this.element=Ae("pswp__img","img"),this.displayedImageWidth&&this.loadImage(e)):(this.element=Ae("pswp__content","div"),this.element.innerHTML=this.data.html||""),t&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;let s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=(t=this.data.src)!==null&&t!==void 0?t:"",s.alt=(i=this.data.alt)!==null&&i!==void 0?i:"",this.state=j.LOADING,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=j.LOADED,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),(this.state===j.LOADED||this.state===j.ERROR)&&this.removePlaceholder())}onError(){this.state=j.ERROR,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===j.LOADING,this)}isError(){return this.state===j.ERROR}isImageContent(){return this.type==="image"}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(wi(this.element,e,t),this.isImageContent()&&!this.isError()))){let i=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==j.ERROR,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;let e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,!this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented&&(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var e,t;let i=Ae("pswp__error-msg","div");i.innerText=(e=(t=this.instance.options)===null||t===void 0?void 0:t.errorMsg)!==null&&e!==void 0?e:"",i=this.instance.applyFilters("contentErrorElement",i,this),this.element=Ae("pswp__content pswp__error-msg-container","div"),this.element.appendChild(i),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===j.ERROR){this.displayError();return}if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;let e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||Dn())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){this.instance.dispatch("contentActivate",{content:this}).defaultPrevented||!this.slide||(this.isImageContent()&&this.isDecoding&&!Dn()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,!this.instance.dispatch("contentRemove",{content:this}).defaultPrevented&&(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),(this.state===j.LOADED||this.state===j.ERROR)&&this.removePlaceholder()))}};function Ir(a,e){if(a.getViewportSizeFn){let t=a.getViewportSizeFn(a,e);if(t)return t}return{x:document.documentElement.clientWidth,y:window.innerHeight}}d(Ir,"getViewportSize");function ct(a,e,t,i,s){let n=0;if(e.paddingFn)n=e.paddingFn(t,i,s)[a];else if(e.padding)n=e.padding[a];else{let o="padding"+a[0].toUpperCase()+a.slice(1);e[o]&&(n=e[o])}return Number(n)||0}d(ct,"parsePaddingOption");function Or(a,e,t,i){return{x:e.x-ct("left",a,e,t,i)-ct("right",a,e,t,i),y:e.y-ct("top",a,e,t,i)-ct("bottom",a,e,t,i)}}d(Or,"getPanAreaSize");var Rn=4e3,xi=class{static{d(this,"ZoomLevel")}constructor(e,t,i,s){this.pswp=s,this.options=e,this.itemData=t,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,i){let s={x:e,y:t};this.elementSize=s,this.panAreaSize=i;let n=i.x/s.x,o=i.y/s.y;this.fit=Math.min(1,n<o?n:o),this.fill=Math.min(1,n>o?n:o),this.vFill=Math.min(1,o),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){let t=e+"ZoomLevel",i=this.options[t];if(i)return typeof i=="function"?i(this):i==="fill"?this.fill:i==="fit"?this.fit:Number(i)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,this.fit*3),this.elementSize&&e*this.elementSize.x>Rn&&(e=Rn/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,this.fit*4)}};function zn(a,e,t){let i=e.createContentFromData(a,t),s,{options:n}=e;if(n){s=new xi(n,a,-1);let o;e.pswp?o=e.pswp.viewportSize:o=Ir(n,e);let r=Or(n,o,a,t);s.update(i.width,i.height,r)}return i.lazyLoad(),s&&i.setDisplayedSize(Math.ceil(i.width*s.initial),Math.ceil(i.height*s.initial)),i}d(zn,"lazyLoadData");function Pr(a,e){let t=e.getItemData(a);if(!e.dispatch("lazyLoadSlide",{index:a,itemData:t}).defaultPrevented)return zn(t,e,a)}d(Pr,"lazyLoadSlide");var Mi=class extends Li{static{d(this,"PhotoSwipeBase")}getNumItems(){var e;let t=0,i=(e=this.options)===null||e===void 0?void 0:e.dataSource;i&&"length"in i?t=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(t=i.items.length));let s=this.dispatch("numItems",{dataSource:i,numItems:t});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(e,t){return new Si(e,this,t)}getItemData(e){var t;let i=(t=this.options)===null||t===void 0?void 0:t.dataSource,s={};Array.isArray(i)?s=i[e]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[e]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));let o=this.dispatch("itemData",{itemData:n||{},index:e});return this.applyFilters("itemData",o.itemData,e)}_getGalleryDOMElements(e){var t,i;return(t=this.options)!==null&&t!==void 0&&t.children||(i=this.options)!==null&&i!==void 0&&i.childSelector?_e(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){let t={element:e},i=e.tagName==="A"?e:e.querySelector("a");if(i){t.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(t.srcset=i.dataset.pswpSrcset),t.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,t.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,i.dataset.pswpType&&(t.type=i.dataset.pswpType);let n=e.querySelector("img");if(n){var s;t.msrc=n.currentSrc||n.src,t.alt=(s=n.getAttribute("alt"))!==null&&s!==void 0?s:""}(i.dataset.pswpCropped||i.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,i)}lazyLoadData(e,t){return zn(e,this,t)}},ce=class extends Mi{static{d(this,"PhotoSwipeLightbox")}constructor(e){super(),this.options=e||{},this._uid=0,this.shouldOpen=!1,this._preloadedContent=void 0,this.onThumbnailsClick=this.onThumbnailsClick.bind(this)}init(){_e(this.options.gallery,this.options.gallerySelector).forEach(e=>{e.addEventListener("click",this.onThumbnailsClick,!1)})}onThumbnailsClick(e){if(Ar(e)||window.pswp)return;let t={x:e.clientX,y:e.clientY};!t.x&&!t.y&&(t=null);let i=this.getClickedIndex(e);i=this.applyFilters("clickedIndex",i,e,this);let s={gallery:e.currentTarget};i>=0&&(e.preventDefault(),this.loadAndOpen(i,s,t))}getClickedIndex(e){if(this.options.getClickedIndexFn)return this.options.getClickedIndexFn.call(this,e);let t=e.target,s=_e(this.options.children,this.options.childSelector,e.currentTarget).findIndex(n=>n===t||n.contains(t));return s!==-1?s:this.options.children||this.options.childSelector?-1:0}loadAndOpen(e,t,i){if(window.pswp||!this.options)return!1;if(!t&&this.options.gallery&&this.options.children){let s=_e(this.options.gallery);s[0]&&(t={gallery:s[0]})}return this.options.index=e,this.options.initialPointerPos=i,this.shouldOpen=!0,this.preload(e,t),!0}preload(e,t){let{options:i}=this;t&&(i.dataSource=t);let s=[],n=typeof i.pswpModule;if(_r(i.pswpModule))s.push(Promise.resolve(i.pswpModule));else{if(n==="string")throw new Error("pswpModule as string is no longer supported");if(n==="function")s.push(i.pswpModule());else throw new Error("pswpModule is not valid")}typeof i.openPromise=="function"&&s.push(i.openPromise()),i.preloadFirstSlide!==!1&&e>=0&&(this._preloadedContent=Pr(e,this));let o=++this._uid;Promise.all(s).then(r=>{if(this.shouldOpen){let c=r[0];this._openPhotoswipe(c,o)}})}_openPhotoswipe(e,t){if(t!==this._uid&&this.shouldOpen||(this.shouldOpen=!1,window.pswp))return;let i=typeof e=="object"?new e.default(this.options):new e(this.options);this.pswp=i,window.pswp=i,Object.keys(this._listeners).forEach(s=>{var n;(n=this._listeners[s])===null||n===void 0||n.forEach(o=>{i.on(s,o)})}),Object.keys(this._filters).forEach(s=>{var n;
36(n=this._filters[s])===null||n===void 0||n.forEach(o=>{i.addFilter(s,o.fn,o.priority)})}),this._preloadedContent&&(i.contentLoader.addToCache(this._preloadedContent),this._preloadedContent=void 0),i.on("destroy",()=>{this.pswp=void 0,delete window.pswp}),i.init()}destroy(){var e;(e=this.pswp)===null||e===void 0||e.destroy(),this.shouldOpen=!1,this._listeners={},_e(this.options.gallery,this.options.gallerySelector).forEach(t=>{t.removeEventListener("click",this.onThumbnailsClick,!1)})}};var Hr={pswpModule:le,bgOpacity:.8,allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,wheelToZoom:!1,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,index:0,preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"},kr=".th-fsc-gallery-lightbox",Ci=class extends _{static{d(this,"Gallery")}init(){this.options=this.assignConfig(Hr,this.config,void 0,!0),this.options.closeTitle=window.ThiemeCore.Lang.translate("closeTitle",null,this.options.closeTitle,"photoswipe"),this.options.zoomTitle=window.ThiemeCore.Lang.translate("zoomTitle",null,this.options.zoomTitle,"photoswipe"),this.options.arrowPrevTitle=window.ThiemeCore.Lang.translate("arrowPrevTitle",null,this.options.arrowPrevTitle,"photoswipe"),this.options.arrowNextTitle=window.ThiemeCore.Lang.translate("arrowNextTitle",null,this.options.arrowNextTitle,"photoswipe"),this.options.indexIndicatorSep=window.ThiemeCore.Lang.translate("indexIndicatorSep",null,this.options.indexIndicatorSep,"photoswipe"),this.options.errorMsg=window.ThiemeCore.Lang.translate("errorMsg",null,this.options.errorMsg,"photoswipe")}process(){let e=[];this.element.querySelectorAll(".items .item").forEach(n=>{e.push({src:n.getAttribute("href")??n.dataset.src??"",caption:n.dataset.caption??"",copyright:n.dataset.copyright??"",width:0,height:0,srcset:"",alt:"",thumb:n.dataset.thumb??"",el:n})});let t=Object.assign({},this.options,{dataSource:e}),i=new ce(t);i.on("contentLoadImage",n=>{n.content.element&&(n.content.element.style.width="",n.content.element.style.height="")}),i.on("uiRegister",()=>{typeof i.pswp>"u"||i.pswp.ui?.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",html:"",onInit:d(function(n,o){n.style.display="none",i.pswp?.on("change",function(){n.innerHTML="",n.style.display="none",i.pswp?.currSlide?.data.copyright&&i.pswp?.currSlide?.data.copyright!=""&&(n.innerHTML+='<div class="credits"><div class="copyright">'+i.pswp.currSlide.data.copyright+"</div></div>"),i.pswp?.currSlide?.data.caption&&i.pswp?.currSlide?.data.caption!=""&&(n.innerHTML+='<div class="caption text-center">'+i.pswp.currSlide.data.caption+"</div>"),n.innerHTML!=""&&(n.style.display="block")})},"onInit")})}),i.init();let s=this.element.querySelector('[data-action="showGallery"]');s&&s.addEventListener("click",n=>(n.preventDefault(),i.loadAndOpen(0),!1))}};Ci.initializeDom(kr,!0,!1,!0);var Dr=".th-fsc-imagecomparison",Rr={defaultOffset:.5,orientation:"horizontal",beforeLabel:"Vorher",afterLabel:"Nachher"},Ai=class extends _{constructor(){super(...arguments);this.items=new Map}static{d(this,"ImageComparison")}init(){this.options=this.assignConfig(Rr,this.config)}process(){let t=this,i=this.element.querySelector(".comparison-container");if(i){let s=[];t.element.querySelectorAll("img").forEach(o=>{s.push(o.offsetHeight)});let n=Math.max(...s);i.style.minHeight=n+"px",jQuery(()=>{jQuery(i).twentytwenty({default_offset_pct:this.options.defaultOffset,orientation:this.options.orientation,before_label:this.options.beforeLabel,after_label:this.options.afterLabel})})}}};Ai.initializeDom(Dr,!0,!1,!0);var zr=".th-fsc-map",Nr={data:{},settings:{layer:"openStreetMap",width:"100%",height:"500px",showLocationMarkerByDefault:!1,options:{zoom:60,maxZoom:150,scrollWheelZoom:!1}}},Nn={openStreetMap:{url:location.protocol+"//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",options:{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> Mitwirkende',useCache:!0}},googleStreets:{url:location.protocol+"//{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}
36",options:{subdomains:["mt0","mt1","mt2","mt3"],attribution:"© GeoBasis-DE/BKG (\xA92009)",useCache:!0}},googleHybrid:{url:location.protocol+"//{s}.google.com/vt/lyrs=s,h&x={x}&y={y}&z={z}",options:{subdomains:["mt0","mt1","mt2","mt3"],attribution:"© GeoBasis-DE/BKG (\xA92009)",useCache:!0}},googleSat:{url:location.protocol+"//{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}",options:{subdomains:["mt0","mt1","mt2","mt3"],attribution:"© GeoBasis-DE/BKG (\xA92009)",useCache:!0}},googleTerrain:{url:location.protocol+"//{s}.google.com/vt/lyrs=p&x={x}&y={y}&z={z}",options:{subdomains:["mt0","mt1","mt2","mt3"],attribution:"© GeoBasis-DE/BKG (\xA92009)",useCache:!0}}},_i=class extends _{static{d(this,"Map")}init(){this.options=this.assignConfig(Nr,this.config)}process(){import("./leaflet-src-2QEYJARM.js").then(e=>{this.loadMap(e.default)})}loadMap(e){let t=this.options.data,i=this.options.settings,s=i.options,n=i.layer,o=Nn[n]??Nn.openStreetMap;o&&new Promise((r,c)=>{parseFloat(t.latitude??"0")>0&&parseFloat(t.longitude??"0")>0?r(t):t.location?fetch(location.protocol+"//nominatim.openstreetmap.org/search?format=json&q="+t.location).then(l=>l.json()).then(l=>{if(l.length>0)for(let h in l){let u=l[h];if(u.lat&&u.lon){t.longitude=u.lon,t.latitude=u.lat,r(t);break}}}):c("Required data for fetching location are missing.")}).then(r=>{r&&this.createMap(e,o,r,s)})}createMap(e,t,i,s){let n=new e.LatLng(parseFloat(i.latitude??"0"),parseFloat(i.longitude??"0")),o=this.element.querySelector(".map");if(!o)return;let r=e.map(o,{center:n,zoom:s.zoom,scrollWheelZoom:s.scrollWheelZoom});if(r.attributionControl.setPrefix('<a href="https://leafletjs.com" title="A JavaScript library for interactive maps" target="_blank">Leaflet</a>'),r.attributionControl.setPrefix(""),e.tileLayer(t.url,t.options).addTo(r),i.markers)for(let c in i.markers){let l=i.markers[c];if(l.location){let h=l.location;if(h.hidden=parseInt((h.hidden??"0").toString())>0,h.hidden)continue;let u=i.latitude??"0",p=i.longitude??"0";h.longitude&&(p=h.longitude),h.latitude&&(u=h.latitude);let m=Object.assign({},h.options),f=new e.LatLng(parseFloat(u),parseFloat(p)),g=e.marker(f,m).addTo(r);h.popupText&&g.bindPopup(h.popupText)}if(l.circle){let h=l.circle;if(h.hidden=parseInt((h.hidden??"0").toString())>0,h.hidden)continue;let u=i.latitude??"0",p=i.longitude??"0";h.longitude&&(p=h.longitude),h.latitude&&(u=h.latitude);let m=Object.assign({radius:10,color:"red",fillColor:"#f03",fillOpacity:.5},h.options),f=new e.LatLng(parseFloat(u),parseFloat(p)),g=e.circle(f,m).addTo(r);h.popupText&&g.bindPopup(h.popupText)}}}};_i.initializeDom(zr,!0,!1,!0);var Fr=".th-fsc-lg .light-gallery",Br={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!0,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}},Ii=class extends _{static{d(this,"LightGallery")}init(){this.options=this.assignConfig(Br,this.config,void 0,!0)}process(){let e=this,t=this.options;if(this.element.querySelectorAll(".items .properties").forEach(i=>
36{let s=i.textContent??"",n=JSON.parse(s);t.dynamicEl?.push(n)}),this.element.dataset.contentType&&this.element.dataset.contentType=="html"){t.appendSubHtmlTo=".lg-item";let i='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve"><style type="text/css">.st0{fill:#5B5B5B;}.st1{fill:#FFFFFF;}.st2{font-family:"ArialMT";}.st3{font-size:48px;}</style><g><rect x="0.5" y="0.5" class="st0" width="63" height="63"/><path class="st1" d="M63,1v62H1V1H63 M64,0H0v64h64V0L64,0z"/></g><text transform="matrix(1 0 0 1 18.6526 47.8569)" class="st1 st2 st3">###NUMBER###</text></svg>',s=1;t.dynamicEl?.forEach(n=>{n.thumb="data:image/svg+xml;base64,"+btoa(i.replace(/###NUMBER###/ig,s.toString())),s++})}this.element.dataset.viewmode&&this.element.dataset.viewmode=="embed"&&(t.closable=!1,t.escKey=!1,document.body.style.overflowY="hidden",(this.element.dataset.iframeBodyBackgroundColor??"")!=""&&(document.body.style.backgroundColor=this.element.dataset.iframeBodyBackgroundColor)),this.lightGalleryInstance=window.lightGallery(this.element,t),t.autoplay?this.lightGalleryInstance.openGallery():this.element.addEventListener("click",i=>{e.lightGalleryInstance.openGallery()}),t.closable||this.element.addEventListener("onAfterOpen.lg",i=>{this.element.querySelector(".lg-close")&&this.element.querySelector(".lg-close")?.remove()}),window.location.href.search("#"+this.element.getAttribute("id"))>-1&&e.lightGalleryInstance.openGallery()}};Ii.initializeDom(Fr,!0,!1,!0);var qr=window.bootstrap,Wr=".th-fsc-offcanvas.offcanvas",jr={binding:"",size:"",active:!1,fixed:!1,exclusive:!1,keyboard:!0,backdrop:!0,scroll:!1},dt=new Map,Oi=class extends _{constructor(){super(...arguments);this.isLoaded=!1}static{d(this,"OffcanvasContainer")}init(){this.options=this.assignConfig(jr,this.config)}process(){let t=this;if(this.offcanvasControlEl=this.element.querySelector(".offcanvas-control"),this.offcanvasControlButtonEl=this.element.querySelector(".offcanvas-control-button"),this.instance=new qr.Offcanvas(this.element,this.config),dt.set(this.element,this.instance),this.options.size!=""&&(this.element.classList.contains("offcanvas-start")||this.element.classList.contains("offcanvas-end")?this.element.style.width=this.options.size:this.element.style.height=this.options.size),this.options.binding==""&&this.element.parentElement)this.element.parentElement.style.position!="relative"&&(this.element.parentElement.style.position="relative"),this.element.parentElement.style.overflow!="hidden"&&(this.element.parentElement.style.overflow="hidden"),t.container=this.element.parentElement;else if(this.options.binding!=""){let i=document.querySelector(this.options.binding);i&&(i.append(this.element),t.container=i)}this.offcanvasControlEl&&this.offcanvasControlEl.addEventListener("click",i=>{t.toggle()}),this.options.keyboard&&document.addEventListener("keyup",i=>{i.key=="Escape"&&t.instance.hide()}),this.element.addEventListener("shown.bs.offcanvas",i=>{t.handleState()}),this.element.addEventListener("hidden.bs.offcanvas",i=>{t.handleState()})}toggle(){let t=this;this.options.exclusive&&t.container&&t.container.childNodes.forEach(i=>{let s=i;s!=t.element&&dt.has(s)&&dt.get(s).hide()}),t.instance.toggle()}handleState(){let t=this;this.options.exclusive&&this.element.classList.contains("show")&&dt.forEach((i,s)=>{s!=t.element&&s.classList.contains("show")&&i.hide()}),this.offcanvasControlEl&&(this.offcanvasControlEl.removeAttribute("aria-show"),this.element.classList.contains("show")?this.offcanvasControlEl.setAttribute("aria-show","true"):this.offcanvasControlEl.setAttribute("aria-show","false"))}};Oi.initializeDom(Wr,!0,!1,!0);var $r=window.bootstrap,de=window.jQuery,Vr=".th-fsc-modal-wrapper",Fn={id:"",storageName:"modal",modal:!1,trigger:"",clickContextCssSelector:"",delay:0,autoCloseTimeout:0,disableOnQueryParameter:"",scrollPosition:"",scrollContextCssSelector:"",frequency:0,position:"",fixed:!1,optout:!1,placementContext:"",animation:"",settings:{backdrop:!1,keyboard:!0,focus:!0}},Pi=class extends _{constructor(){super(...arguments);this.options=Fn}static{d(this,"Modal")}init(){this.options=this.assignConfig(Fn,this.config)}process(){let t=document.createElement("div");t.innerHTML=this.element.textContent??"";let i=t.firstElementChild,s=this.options,n=s.storageName,o=!0,r=0,c=0,l="",h=0,u=400;if(window.localStorage.getItem(n+"-optout")&&(r=parseInt(window.localStorage.getItem(n+"-optout"))),window.localStorage.getItem(n+"-freq")&&(c=parseInt(window.localStorage.getItem(n+"-freq")),c<new Date().getTime()&&(c=0,window.localStorage.removeItem(n+"-freq"))),window.localStorage.getItem(n+"-qp.hash")&&(l=window.localStorage.getItem(n+"-qp")??""),window.localStorage.getItem(n+"-qp.expire")&&(h=parseInt(window.localStorage.getItem(n+"-qp.expire")),h<new Date().getTime()&&(window.localStorage.removeItem(n+"-qp"),window.localStorage.removeItem(n+"-qp.expire"),l="",h=0)),s.optout&&r>0&&(o=!1),o&&s.frequency&&s.frequency>0)if(c<1){let m=new Date().getTime()+s.frequency*1e3;window.localStorage.setItem(n+"-freq",m.toString())}else o=!1;if(s.disableOnQueryParameter&&s.disableOnQueryParameter!=""){let p=window.btoa(s.disableOnQueryParameter);if(window.location.href.search(s.disableOnQueryParameter)>-1){let m=new Date().getTime()+157248e5;window.localStorage.setItem(n+"-qp",p),window.localStorage.setItem(n+"-qp.expire",m.toString())}h>0&&l==p&&(o=!1)}if(o){document.body.append(i);let p=!1,m=!1;s.modal&&(p=!0),s.trigger=="click"&&(m=!0);let f=s.settings??{backdrop:!0,keyboard:!0,focus:!1};
36f.backdrop=p,f.focus=m;let g=$r.Modal.getOrCreateInstance(i,f),b=i.querySelector(".modal-dialog");s.fixed&&b.classList.add("position-fixed"),s.position!=""&&b.classList.add("position-"+s.position);let w=i.querySelector('[data-action="close"]'),y=null;s.clickContextCssSelector&&s.clickContextCssSelector!=""&&(y=document.querySelector(s.clickContextCssSelector));let S=i.querySelector('[data-action="ban"]'),x,L=0,E=b.getAttribute("style")??"";if(window.document.addEventListener("keyup",M=>{M.key&&M.key==="Escape"&&g.hide()}),i.addEventListener("shown.bs.modal",()=>{if(b.setAttribute("style",E),!s.modal&&(i.style.top=document.body.scrollTop+"px",s.placementContext=="mainContent")){let C=document.querySelector(".th-page-header").offsetHeight;C=Math.ceil(C/2),b.style.marginTop=C+"px"}L++;let M=b.style.marginLeft,A=b.style.marginTop;switch(g.show(),s.animation){case"slide":de(b).slideDown(u);break;case"fade":de(b).fadeIn(u);break;case"slideInLeft":b.style.marginLeft="-100%",de(b).animate({"margin-left":M},{duration:u});break;case"slideInRight":b.style.marginLeft="100%",de(b).animate({"margin-left":M},{duration:u});break;case"slideInTop":b.style.marginTop="-100%",de(b).animate({"margin-top":A},{duration:u});break;case"slideInBottom":b.style.marginTop="100%",de(b).animate({"margin-top":A},{duration:u});break}(s.autoCloseTimeout??!1)&&window.setTimeout(function(){g.hide()},s.autoCloseTimeout*1e3)}),i.addEventListener("show.bs.modal",()=>{s.modal&&document.querySelector(".th-page-wrapper").classList.add("filter-blur")}),i.addEventListener("hide.bs.modal",()=>{s.modal&&document.querySelector(".th-page-wrapper").classList.remove("filter-blur")}),i.addEventListener("toggle",()=>{window.setTimeout(function(){L<1&&g.show()},s.delay??0*1e3)}),i.addEventListener("show",()=>{g.show()}),i.addEventListener("hide",()=>{g.hide()}),w&&w.addEventListener("click",M=>{M.preventDefault(),g.hide()}),S!=null&&(S.setAttribute("href","#"),S.addEventListener("click",M=>{M.preventDefault(),g.hide(),g.dispose();let C=new Date().getTime()+86400*182*1e3;window.localStorage.setItem(n+"-optout",C.toString())})),g.handleUpdate(),window.addEventListener("resize",()=>{g.handleUpdate()}),window.addEventListener("orientationchange",()=>{g.handleUpdate()}),s.trigger!="")switch(s.trigger){case"click":{y&&y.addEventListener("click",M=>{M.preventDefault(),g.toggle()});break}case"load":{window.setTimeout(function(){L<1&&g.show()},s.delay??0*1e3);break}case"scroll":{let M=0,A=document.body;s.scrollContextCssSelector&&s.scrollContextCssSelector!=""&&(A=document.querySelector(s.scrollContextCssSelector),A&&(M=A.offsetTop));let C=parseInt(s.scrollPosition??"");s.scrollPosition&&s.scrollPosition.search("%")>-1&&A&&(C=A.offsetHeight*C/100),C+=M;let D=d(()=>{window.clearTimeout(x),x=window.setTimeout(function(){window.scrollY>=C&&L<1&&g.toggle()},100)},"handleScroll");window.addEventListener("scroll",()=>{D()}),D();break}case"unload":{window.addEventListener("unload",()=>{L<1&&g.show()});break}case"mouseout":{document.body.addEventListener("mouseout",()=>{L<1&&g.show()});break}}}this.element.remove()}};Pi.initializeDom(Vr,!0,!1,!0);var Ur=".th-fsc-media-playlist",Hi=class extends _{static{d(this,"MediaPlaylist")}init(){}process(){let e=this,t=this.element.querySelectorAll(".playlist-item"),i=this.element.querySelectorAll(".playlist-index-item"),s=this.element.querySelector(".playlist-main");s&&(s.style.display="none");let n=[];t.forEach(r=>{n.push(r)});let o=d(function(r){i.forEach((c,l)=>{c.classList.remove("active")}),t.forEach((c,l)=>{c.style.display="none",l==r&&(c.style.display="block",i[l]&&i[l].classList.add("active"))})},"showItem");i.forEach((r,c)=>{let l=r.dataset.identifier;r.addEventListener("click",()=>{o(c),window.ThiemeMaintemplate.getScreenSize().key<2&&Y.scrollTo(e.element,{offset:10})}),window.location.href.search("#media-"+l)>-1?o(c):c===0&&o(0)})}};Hi.initializeDom(Ur,!0,!1,!0);var Zr=".th-fsc-timeline",ki={groups:[],entries:[],options:{locale:"de",horizontalScroll:!1,verticalScroll:!1}},Di=class extends _{constructor(){super(...arguments);this.options=ki;this.isLoaded=!1}static{d(this,"TimelineElement")}init(){this.options=this.assignConfig(ki,this.config);let t=import.meta.url;
36if(t=t.substring(0,t.indexOf("/JavaScript")),document.querySelector("link#ckeditor")==null){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",t+"/Vendor/vis-timeline/vis-timeline-graph2d.min.css"),i.setAttribute("id","vis_timeline"),document.querySelector("head").appendChild(i)}import("./vis-timeline-JXGYY6TN.js").then(i=>{this.renderTimeline(i)})}renderTimeline(t){let i=new Map,s=new Map,n=[],o=[];this.options.groups.forEach((u,p)=>{let m={id:"group_"+u.id,content:u.content??"",className:u.className??void 0,style:u.style??void 0};i.set(m.id.toString(),u),n.push(m)});let r=[],c=[];this.options.entries.forEach((u,p)=>{let m=document.createElement("div");m.classList.add("d-flex","align-items-start","text-start");let f="";u.renderedIcon&&u.renderedIcon!==""?f+='<div class="icon me-2" style="max-width:32px;">'+u.renderedIcon+"</div>":u.iconCssClass&&u.iconCssClass!==""&&(f+='<span class="'+(u.iconCssClass+" me-2").trim()+'"></span>');let g="<p><strong>"+u.title+"</strong></p>";u.teaser&&u.teaser!==""&&(g+=u.teaser),f+='<div class="content flex-fill">'+g+"</div>",m.innerHTML=f;let b=new Date(u.start);r.push(b.getTime()),c.push(b.getTime());let w={id:"entry_"+u.id,content:m,start:b,type:u.type??void 0,group:u.group??"",subgroup:u.subgroup??"",align:u.align??void 0,className:u.className??void 0,style:u.style??void 0};if(u.group&&parseInt(u.group.toString())>0&&(w.group="group_"+u.group),u.end){let y=new Date(u.end);w.end=y,c.push(y.getTime())}s.set(w.id.toString(),u),o.push(w)});let l=Object.assign(ki.options,this.options.options);l.min&&l.min.toString()!==""?l.min=new Date(l.min.toString()):(l.min=new Date,l.min.setTime(Math.min(...r)-2592e6)),l.max&&l.max.toString()!==""?l.max=new Date(l.max.toString()):(l.max=new Date,l.max.setTime(Math.max(...c)+2592e6)),new t.Timeline(this.element,o,n,l).on("click",u=>{if(u.item){let p=u.item?.toString();if(s.has(p)){let m=s.get(p);(m.content&&m.content!==""||m.renderedImages&&m.renderedImages.length>0)&&this.showContent(m)}}})}showContent(t){let i=t.content??"";if(t.renderedImages&&t.renderedImages.length>0){let s="images";t.content&&t.content!==""&&(s="col-12 col-md-3 col-xl-4 images ms-3 order-2 float-end"),i="",i+='<div class="'+s+'">',t.renderedImages.forEach((n,o)=>{s="image",o>0&&(s+=" mt-3"),i+='<div class="'+s+'">'+n+"</div>"}),i+="</div>",i+='<div class="content flex-fill">'+t.content+"</div>"}if(i!==""){let s=document.createElement("div");s.classList.add("timeline-item-content"),s.innerHTML=i,Fe.show(t.title??"",s,"lg",0,0,!0)}}};Di.initializeDom(Zr,!0,!1,!0);function Gr(a){if("leading"in a&&"lineGap"in a)throw new Error("Only a single line height style can be provided. Please pass either `lineGap` OR `leading`.");if("capHeight"in a&&"fontSize"in a)throw new Error("Please pass either `capHeight` OR `fontSize`, not both.");let{fontMetrics:e}=a,t=e.capHeight/e.unitsPerEm,i,s;if("capHeight"in a)i=a.capHeight/t,s=a.capHeight;else if("fontSize"in a)i=a.fontSize,s=a.fontSize*t;else throw new Error("Please pass either `capHeight` OR `fontSize`.");let n;return"lineGap"in a?n=s+a.lineGap:"leading"in a&&(n=a.leading),{fontSize:i,lineHeight:n,fontMetrics:e}}d(Gr,"normaliseOptions");var ht=d(a=>parseFloat(a.toFixed(4)),"round");function Kr(a){let{fontSize:e,lineHeight:t,fontMetrics:i}=Gr(a),s=Math.abs(i.descent),n=i.capHeight/i.unitsPerEm,o=s/i.unitsPerEm,r=i.ascent/i.unitsPerEm,c=i.lineGap/i.unitsPerEm,l=(i.ascent+i.lineGap+s)/i.unitsPerEm*e,h=d(m=>t?m-(l-t)/2/e:m,"allowForLineHeight"),u=h(r-n+c/2)*-1,p=h(o+c/2)*-1;return{fontSize:`${ht(e)}px`,lineHeight:t?`${ht(t)}px`:"normal",capHeightTrim:`${ht(u)}em`,baselineTrim:`${ht(p)}em`}}d(Kr,"precomputeValues");var Bn=d(({lineHeight:a,fontSize:e,capHeightTrim:t,baselineTrim:i})=>({fontSize:e,lineHeight:a,"::before":{content:"''",marginBottom:t,display:"table"},"::after":{content:"''",marginTop:i,display:"table"}}),"_createStyleObject");function Yr(a){return"capHeightTrim"in a?Bn(a):Bn(Kr(a))}d(Yr,"createStyleObject");function qn(a,e){let{"::before":t,"::after":i,...s}=Yr(e),n=d((o,r)=>` 37.${a}${r?`::${r}`:""} { 38${Object.keys(o).map(c=>` ${c.replace(/[A-Z]/g,"-$&").toLowerCase()}: ${o[c].replace(/'/g,'"')}`).join(`; 39`)}; 40}`,"objToCSSRules");return[n(s),n(t,"before"),n(i,"after")].join(` 41`)}
41d(qn,"createStyleString");var Jr=[{familyName:"Thieme Argo 2011 Light",fullName:"Thieme Argo 2011 Light",postscriptName:"ThiemeArgo2011-Light",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:890,subsets:{latin:{xWidthAvg:890},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2011 Light",fullName:"Thieme Argo 2011 Light Italic",postscriptName:"ThiemeArgo2011-LightItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:840,subsets:{latin:{xWidthAvg:840},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2011",fullName:"Thieme Argo 2011 Italic",postscriptName:"ThiemeArgo2011-Italic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:843,subsets:{latin:{xWidthAvg:843},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 Medium",fullName:"Thieme Argo 2011 Medium",postscriptName:"ThiemeArgo2011-Medium",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:922,subsets:{latin:{xWidthAvg:922},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2011",fullName:"Thieme Argo 2011",postscriptName:"ThiemeArgo2011-Regular",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:890,subsets:{latin:{xWidthAvg:890},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 SemiBold",fullName:"Thieme Argo 2011 SemiBold Italic",postscriptName:"ThiemeArgo2011-SemiBoldItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:875,subsets:{latin:{xWidthAvg:875},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 SemiBold",fullName:"Thieme Argo 2011 SemiBold",postscriptName:"ThiemeArgo2011-SemiBold",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:921,subsets:{latin:{xWidthAvg:921},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 Medium",fullName:"Thieme Argo 2011 Medium Italic",postscriptName:"ThiemeArgo2011-MediumItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:877,subsets:{latin:{xWidthAvg:877},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2011 SemiBold",fullName:"Thieme Argo 2011 SemiBold Italic",postscriptName:"ThiemeArgo2011-SemiBoldItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:875,subsets:{latin:{xWidthAvg:875},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 Light",fullName:"Thieme Argo 2011 Light Bold",postscriptName:"ThiemeArgo2011-Bold",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:948,subsets:{latin:{xWidthAvg:948},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2011 Light",fullName:"Thieme Argo 2011 Light Bold Italic",postscriptName:"ThiemeArgo2011-BoldItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:906,subsets:{latin:{xWidthAvg:906},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2011 ExtraBold",fullName:"Thieme Argo 2011 ExtraBold",postscriptName:"ThiemeArgo2011-ExtraBold",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:949,subsets:{latin:{xWidthAvg:949},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 ExtraBold",fullName:"Thieme Argo 2011 ExtraBold Italic",postscriptName:"ThiemeArgo2011-ExtraBoldItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:902,subsets:{latin:{xWidthAvg:902},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2011 Black",fullName:"Thieme Argo 2011 Black Italic",postscriptName:"ThiemeArgo2011-BlackItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:946,subsets:{latin:{xWidthAvg:946},thai:{xWidthAvg:1381}}},{familyName:"Thieme Argo 2023 Variable",fullName:"Thieme Argo 2023 Variable",postscriptName:"ThiemeArgo2023Variable-Regular",capHeight:707,ascent:950,descent:-244,lineGap:0,unitsPerEm:1e3,xHeight:511,xWidthAvg:435,subsets:{latin:{xWidthAvg:435},thai:{xWidthAvg:500}}},{familyName:"Thieme Argo 2011 ExtraBold",fullName:"Thieme Argo 2011 ExtraBold Italic",postscriptName:"ThiemeArgo2011-ExtraBoldItalic",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:902,subsets:{latin:{xWidthAvg:902},thai:{xWidthAvg:1380}}},{familyName:"Thieme Argo 2023 IT Variable ",fullName:"Thieme Argo 2023 IT Variable",postscriptName:"ThiemeArgo2023ITVariable-Italic",capHeight:707,ascent:950,descent:-244,lineGap:0,unitsPerEm:1e3,xHeight:509,xWidthAvg:412,subsets:{latin:{xWidthAvg:412},thai:{xWidthAvg:500}}},{familyName:"Thieme Argo 2011 Black",fullName:"Thieme Argo 2011 Black",postscriptName:"ThiemeArgo2011-Black",capHeight:1446,ascent:1950,descent:-500,lineGap:0,unitsPerEm:2048,xHeight:1041,xWidthAvg:984,subsets:{latin:{xWidthAvg:984},thai:{xWidthAvg:1381}}},{familyName:"Font Awesome 6 Free Regular",fullName:"Font Awesome 6 Free Regular",postscriptName:"FontAwesome6Free-Regular",capHeight:428,ascent:456,descent:-72,lineGap:0,unitsPerEm:512,xHeight:319,xWidthAvg:369,subsets:{latin:{xWidthAvg:369},thai:{xWidthAvg:384}}},{familyName:"Font Awesome 6 Brands Regular",fullName:"Font Awesome 6 Brands Regular",postscriptName:"FontAwesome6Brands-Regular",capHeight:432,ascent:460,descent:-75,lineGap:0,unitsPerEm:512,xHeight:322,xWidthAvg:369,subsets:{latin:{xWidthAvg:369},thai:{xWidthAvg:384}}},{familyName:"FluentSystemIcons-Resizable",fullName:"FluentSystemIcons-Resizable",postscriptName:"FluentSystemIcons-Resizable",capHeight:0,ascent:500,descent:0,lineGap:0,unitsPerEm:500,xHeight:0,xWidthAvg:0,subsets:{latin:{xWidthAvg:0},thai:{xWidthAvg:0}}}
41,{familyName:"Font Awesome v4 Compatibility Regular",fullName:"Font Awesome v4 Compatibility Regular",postscriptName:"FontAwesomev4Compatibility-Regular",capHeight:427,ascent:455,descent:-71,lineGap:0,unitsPerEm:512,xHeight:318,xWidthAvg:384,subsets:{latin:{xWidthAvg:384},thai:{xWidthAvg:384}}},{familyName:"bootstrap-icons",fullName:"bootstrap-icons",postscriptName:"bootstrap-icons",capHeight:0,ascent:300,descent:0,lineGap:0,unitsPerEm:300,xHeight:0,xWidthAvg:0,subsets:{latin:{xWidthAvg:0},thai:{xWidthAvg:0}}},{familyName:"Font Awesome 6 Free Solid",fullName:"Font Awesome 6 Free Solid",postscriptName:"FontAwesome6Free-Solid",capHeight:431,ascent:459,descent:-75,lineGap:0,unitsPerEm:512,xHeight:321,xWidthAvg:369,subsets:{latin:{xWidthAvg:369},thai:{xWidthAvg:384}}}],Wn=Jr;var Xr=".capsize",Ri=class extends O{static{d(this,"Capsize")}process(){let e=window.getComputedStyle(this.element),i=e.getPropertyValue("font-family").split(",")[0].trim();i=i.replace(/\"/ig,"");let s=e.getPropertyValue("font-size"),n=e.getPropertyValue("line-height"),o=this.convertToPixel(s),r=this.convertToPixel(n),c=Wn.find(l=>l.familyName==i);if(c){let l={fontSize:o,leading:r,fontMetrics:c},h=this.element.attachShadow({mode:"open"}),u=qn("capsized",l),p=document.createElement("style");p.textContent=u,h.appendChild(p);let m=document.createElement("span");m.classList.add("capsized"),m.innerHTML=this.element.innerHTML,h.appendChild(m),this.element.classList.add("capsized")}}convertToPixel(e){let t=e.match(/(\d+)(.*)/),i=0;if(t)switch(i=parseFloat(t[1]),t[2]??""){case"rem":i*parseFloat(window.getComputedStyle(document.documentElement).fontSize);break;case"em":i*parseFloat(window.getComputedStyle(document.documentElement).fontSize);break}return i}};Ri.initializeDom(Xr,!1,!1,!0);var Qr='[data-toggle="fullscreen"],[data-bs-toggle="fullscreen"]',ea={target:"",background:"#fff"},zi=class extends O{static{d(this,"Fullscreen")}init(){this.options=this.assignConfig(ea,this.config)}process(){let e=this,t=document.querySelector(this.options.target);if(t){let i=t.style.background;t.addEventListener("fullscreenchange",()=>{document.fullscreenElement?(e.element.classList.add("fullscreen"),e.element.setAttribute("aria-expanded","true"),t.classList.add("fullscreenmode"),e.options.background!=""&&(t.style.background=e.options.background)):(e.element.classList.remove("fullscreen"),e.element.setAttribute("aria-expanded","false"),t.classList.remove("fullscreenmode"),t.style.background=i)}),this.element.addEventListener("click",s=>{document.fullscreenElement?document.exitFullscreen():t.requestFullscreen()})}}};zi.initializeDom(Qr,!0,!1,!0);var ta='[data-consent-required],[data-consent-required="1"]',jn=new Map,Ni=class extends O{constructor(){super(...arguments);this.storageItemName="OnetrustActiveGroups";this.category="";this.src="";this.customConsentMode=!1}static{d(this,"ConsentManager")}init(){this.category=this.element.dataset.consentCategory??"",jn.set(this.element,this),this.category==""&&this.element.classList.forEach((t,i)=>{let s=t.match(/^optanon-category-(.*)$/);if(s&&s[1])return this.category=s[1],!1}),this.src=this.element.dataset.src??this.element.getAttribute("src")??"",this.customConsentMode=typeof this.element.dataset.otIgnore<"u",this.customConsentMode&&(this.storageItemName="CustomConsent_"+this.element.dataset.serviceVendor),this.consentInfoContainer=this.element,this.elParent=this.element,this.element.parentElement&&(this.element.parentElement.classList.contains("embed-responsive")||this.element.parentElement.classList.contains("ratio"))&&(this.consentInfoContainer=this.element.parentElement.parentElement,this.elParent=this.element.parentElement)}process(){this.performUpdate();let t=0,i=window.setInterval(()=>{t++,(typeof window.OneTrust<"u"||t>20)&&(window.clearInterval(i),this.performUpdate())},500)}update(){this.performUpdate()}updateConsentElements(t=!1){jn.forEach((i,s)=>{t&&s.removeAttribute("src"),i.update()})}performUpdate(){let t=this.element,i="";if(this.customConsentMode?window.localStorage&&window.localStorage.getItem(this.storageItemName)!=null?i+=","+window.localStorage.getItem(this.storageItemName)+",":t.removeAttribute("src"):window.OnetrustActiveGroups&&window.OnetrustActiveGroups!=""&&(i+=","+window.OnetrustActiveGroups+","),this.consentInfo&&(this.consentInfo.remove(),this.consentInfo=null),this.elParent.style.display="none",this.category!=""&&i.search(","+this.category+",")<0&&t.src==""){let s=t.dataset.consentInfo?t.dataset.consentInfo:"",n=t.dataset.serviceVendor?t.dataset.serviceVendor:"",o=t.dataset.serviceVendorInfo?t.dataset.serviceVendorInfo:"",r="<p>"+window.ThiemeCore.Lang.translate("consent.info")+"</p>";s!=""&&(r=s),n!=""&&(r+='<p style="margin-left: 1rem;">'+window.ThiemeCore.Lang.translate("consent.vendor")+": "+n+"</p>"),o!=""&&(r+='<p style="margin-left: 1rem;"><small>'+o+"</small></p>"),r+="<p><small>"+window.ThiemeCore.Lang.translate("consent.optoutInfo")+"</small></p>",this.consentInfo=document.createElement("div"),this.consentInfo.setAttribute("class","alert alert-info"),this.consentInfo.innerHTML=r;let c=document.createElement("button");c.innerHTML=window.ThiemeCore.Lang.translate("consent.confirmAction"),c.setAttribute("class","btn btn-primary"),c.addEventListener("click",()=>{i+=","+this.category+",",this.customConsentMode?window.localStorage.setItem(this.storageItemName,i):window.OneTrust&&window.OneTrust.UpdateConsent("Category",this.category+":1"),t.src=this.src,this.updateConsentElements()}),this.consentInfo.append(c),this.consentInfoContainer.after(this.consentInfo)}else if(this.elParent.style.display="block",t.src=this.src,this.customConsentMode){this.consentInfo=document.createElement("div"),this.consentInfo.setAttribute("class","my-3 text-center");let s=document.createElement("button");s.innerHTML=window.ThiemeCore.Lang.translate("consent.optoutAction")+" »",s.setAttribute("class","btn btn-outline-secondary text-small"),s.addEventListener("click",()=>{i="",this.customConsentMode?window.localStorage.removeItem(this.storageItemName):window.OneTrust&&window.OneTrust.UpdateConsent("Category",this.category+":0"),this.updateConsentElements(!0)}),this.consentInfo.append(s),this.consentInfoContainer.after(this.consentInfo)}}};
41Ni.initializeDom(ta,!0,!1,!0);var ia=[{identifier:"thene",label:"Theme",controls:[{identifier:"darkmode",label:"Darkmode",trigger:"switch",propertyName:"darkmode"}]},{identifier:"typeface",label:"Typeface",controls:[{identifier:"fontSize",label:"Font size",trigger:"custom"}]},{identifier:"colorFilter",label:"Color filter",controls:[{identifier:"grayscale",label:"Grayscale",trigger:"switch",propertyName:"grayscale"},{identifier:"moreContrast",label:"More contrast",trigger:"switch",propertyName:"moreContrast"},{identifier:"blueLightFilter",label:"Filter blue light",trigger:"custom"},{identifier:"brightness",label:"Brightness",trigger:"custom"}]}],$n={unavailableSettings:""},Vn={fontSize:0,moreContrast:!1,brightness:1,filterBluelight:-1,grayscale:!1,darkmode:!1},Fi=class extends HTMLElement{constructor(){super();this.options=$n;this.controls=[];this.dataset.config&&(this.options=Ki($n,JSON.parse(this.dataset.config))),this.settings=Object.assign({},Vn);try{let t=window.localStorage.getItem("accessibility-settings");t&&t!=""&&(this.settings=Object.assign(this.settings,JSON.parse(t))),this.settings.darkmode&&this.processControl("darkmode")}catch{}window.addEventListener("load",()=>{this.renderLayout()})}static{d(this,"AccessibilityElement")}renderLayout(){let t=window.ThiemeCore.Lang,i=document.createElement("div");i.classList.add("d-flex","justify-content-end","mb-3"),i.innerHTML=t.translate("info",null,"Here you can adjust various settings for optimal display and better accessibility.","accessibility"),this.appendChild(i),ia.forEach(o=>{let r=document.createElement("fieldset");r.classList.add("form-element");let c=document.createElement("legend");c.innerHTML=t.translate("group."+o.identifier,null,o.label,"accessibility"),r.append(c);let l=!1,h=document.createElement("div");h.classList.add("row"),r.append(h),o.controls.forEach(u=>{if(this.options.unavailableSettings!==""&&(","+this.options.unavailableSettings.toUpperCase()+",").indexOf(","+u.identifier.toUpperCase()+",")>-1)return;let p=this.renderControl(u);p&&(u.element=p,this.controls.push(u),h.appendChild(p),l=!0,this.processControl(u.identifier,u,!0))}),l&&(o.element=r,this.appendChild(r))});let s=document.createElement("button");s.classList.add("btn","btn-secondary"),s.innerHTML='<span class="bi bi-x-lg me-2"></span>',s.innerHTML+="<span>"+t.translate("action.resetSettings",null,"Reset settings","accessibility")+"</span>",s.addEventListener("click",()=>{this.settings=Object.assign({},Vn),this.controls.forEach(o=>{this.processControl(o.identifier,o,!1),this.saveSettings()})});let n=document.createElement("div");n.classList.add("d-flex","justify-content-center","mt-3"),n.appendChild(s),this.appendChild(n)}renderControl(t){let i=window.ThiemeCore.Lang,s=document.createElement("div");s.classList.add("control","form-group"),t.element=s;let n=i.translate("control."+t.identifier,null,t.label,"accessibility");switch(t.identifier){case"fontSize":{let o={0:i.translate("sizes.0",null,"Normal","accessibility"),3:i.translate("sizes.middle",null,"Middle","accessibility"),6:i.translate("sizes.max",null,"Big","accessibility")},r=i.translate("action.bigger",null,"Font size bigger","accessibility"),c=i.translate("action.bigger",null,"Font size bigger","accessibility");s.classList.add("col-12"),s.innerHTML=` 42 <label class="form-label" for="accessibility_font_size"> 43 ${n} 44 </label> 45 <div class="input-group"> 46 <button type="button" class="btn btn-outline-secondary" data-action="changeFontSize" data-option="-" title="${c}"> 47 <span class="bi bi-dash"></span> 48 </button> 49 <div class="form-control d-flex align-items-center"> 50 <input type="range" min="0" max="6" step="2" name="font-size" class="form-range" id="accessibility_font_size" title="${n}"> 51 </div> 52 <button type="button" class="btn btn-outline-secondary" data-action="changeFontSize" data-option="+" title="${r}">
53 <span class="bi bi-plus"></span> 54 </button> 55 </div> 56 <span class="badge text-bg-secondary range-value"></span> 57 `;let l=s.querySelector('[name="font-size"]');t.fieldElement=l;let h=s.querySelector(".range-value"),u=s.querySelectorAll('[data-action="changeFontSize"]'),p=d(()=>{let m=parseInt(l.value);for(let f in o)m>=parseInt(f)&&(h.innerHTML=o[f])},"updateVisual");l.value=this.settings.fontSize.toString(),l.addEventListener("change",m=>{p(),this.settings.fontSize=parseInt(l.value),this.processControl(t.identifier,t,!0)}),l.addEventListener("input",m=>{p()}),u.forEach(m=>{m.addEventListener("click",()=>{m.dataset.option==="+"&&parseInt(l.value)<parseInt(l.getAttribute("max")??"")&&(l.value=(parseInt(l.value)+parseInt(l.getAttribute("step")??"")).toString()),m.dataset.option==="-"&&parseInt(l.value)>parseInt(l.getAttribute("min")??"")&&(l.value=(parseInt(l.value)-parseInt(l.getAttribute("step")??"")).toString()),l.dispatchEvent(new Event("change"))})}),p(),this.processControl(t.identifier,t,!0);break}case"brightness":{s.classList.add("col-12"),s.innerHTML=` 58 <label class="form-label" for="accessibility_brightness"> 59 ${n} 60 </label> 61 <div class="input-group"> 62 <div class="input-group-text"> 63 <span class="bi bi-brightness-low"></span> 64 </div> 65 <div class="form-control d-flex align-items-center"> 66 <input type="range" min="0.3" max="1" step="0.1" name="brightness" class="form-range" id="accessibility_brightness" title="${n}"> 67 </div> 68 <div class="input-group-text"> 69 <span class="bi bi-brightness-high-fill"></span> 70 </div> 71 </div> 72 `;let o=s.querySelector('[name="brightness"]');t.fieldElement=o,o&&(o.value=this.settings.brightness.toString(),o.addEventListener("change",r=>{this.settings.brightness=parseFloat(o.value),this.processControl(t.identifier,t,!0)}),o.addEventListener("input",r=>{this.settings.brightness=parseFloat(o.value),this.processControl(t.identifier,t,!0)}),this.processControl(t.identifier,t,!0));break}case"grayscale":{s.classList.add("col-12","col-sm-6"),s.innerHTML=` 73 <div class="form-check form-switch"> 74 <input class="form-check-input" type="checkbox" role="switch" name="grayscale" id="accessibility_filter_grayscale"> 75 <label class="form-check-label" for="accessibility_filter_grayscale"> 76 ${n} 77 </label> 78 </div> 79 `;let o=s.querySelector('[name="grayscale"]');t.fieldElement=o,this.settings.grayscale&&(o.checked=!0),o.addEventListener("change",()=>{this.settings.grayscale=o.checked,this.processControl(t.identifier,t,!0)}),this.processControl(t.identifier,t,!0);break}case"darkmode":{s.classList.add("col-12","col-sm-6"),s.innerHTML=` 80 <div class="form-check form-switch"> 81 <input class="form-check-input" type="checkbox" role="switch" name="darkmode" id="accessibility_darkmode"> 82 <label class="form-check-label" for="accessibility_darkmode"> 83 ${n} 84 </label> 85 </div> 86 `;let o=s.querySelector('[name="darkmode"]');t.fieldElement=o,this.settings.darkmode&&(o.checked=!0),o.addEventListener("change",()=>{this.settings.darkmode=o.checked,this.processControl(t.identifier,t,!0)}),this.processControl(t.identifier,t,!0);break}case"moreContrast":{s.classList.add("col-12","col-sm-6"),s.innerHTML=` 87 <div class="form-check form-switch"> 88 <input class="form-check-input" type="checkbox" role="switch" name="more-contrast" id="accessibility_more_contrast"> 89 <label class="form-check-label" for="accessibility_more_contrast"> 90 ${n} 91 </label> 92 </div> 93 `;let o=s.querySelector('[name="more-contrast"]');t.fieldElement=o,this.settings.moreContrast&&(o.checked=!0),o.addEventListener("change",()=>{this.settings.moreContrast=o.checked,this.processControl(t.identifier,t,!0)}),this.processControl(t.identifier,t,!0);break}case"blueLightFilter":{s.classList.add("col-12"),s.innerHTML=` 94 <label class="form-label" for="accessibility_filter_bluelight"> 95 ${n} 96 </label> 97 <div class="input-group"> 98 <div class="input-group-text">
99 <span class="bi bi-circle"></span> 100 </div> 101 <div class="form-control d-flex align-items-center"> 102 <input type="range" min="0" max="1" step="0.1" name="filter-bluelight" class="form-range" id="accessibility_filter_bluelight"> 103 </div> 104 <div class="input-group-text"> 105 <span class="bi bi-circle-fill"></span> 106 </div> 107 </div> 108 `;let o=s.querySelector('[name="filter-bluelight"]');t.fieldElement=o,this.settings.filterBluelight>-1&&(o.value=this.settings.filterBluelight.toString()),o.addEventListener("change",()=>{this.settings.filterBluelight=parseFloat(o.value),this.processControl(t.identifier,t,!0)}),o.addEventListener("input",()=>{this.settings.filterBluelight=parseFloat(o.value),this.processControl(t.identifier,t,!0)}),this.processControl(t.identifier,t,!0);break}}return s}processControl(t,i,s=!1){let n=i&&i.fieldElement?i.fieldElement:null;switch(t){case"fontSize":let r=window.getComputedStyle(document.documentElement).getPropertyValue("--bs-root-font-size-initial"),c=r;parseInt(r)>0&&(c=(parseInt(r)+this.settings.fontSize).toString()+"px"),document.documentElement.style.setProperty("--bs-root-font-size",c),n&&(n.value=this.settings.fontSize.toString());break;case"moreContrast":n&&(n.checked=this.settings.moreContrast,this.settings.moreContrast?(i.styleEl=document.createElement("style"),i.styleEl.innerHTML=":root { --bs-primary: #000000; --bs-secondary: #222222; }",document.querySelector("html > head").append(i.styleEl),document.querySelector("html").classList.add("accessibility-more-contrast")):(i.styleEl&&(i.styleEl.remove(),delete i.styleEl),document.querySelector("html").classList.remove("accessibility-more-contrast")));break;case"brightness":let l=this.settings.brightness,h=document.querySelector("#accessibility_brightness_overlay");l<1&&h===null&&(h=document.createElement("div"),h.setAttribute("id","accessibility_brightness_overlay"),Object.assign(h.style,{display:"none",backgroundColor:"rgba(0, 0, 0, 0)",position:"fixed",zIndex:92890890299,pointerEvents:"none",inset:"-10px",width:"auto",height:"auto",mixBlendMode:"multiply",margin:0,padding:0}),document.querySelector("body").appendChild(h)),h&&(l<1?(h.style.display="block",h.style.backgroundColor="rgba(0, 0, 0, "+(1-l)+")"):h.style.display="none"),n&&(n.value=this.settings.brightness.toString());break;case"grayscale":n&&(n.checked=this.settings.grayscale,this.settings.grayscale?document.querySelector("html").classList.add("accessibility-grayscale"):document.querySelector("html").classList.remove("accessibility-grayscale"));break;case"darkmode":n&&(n.checked=this.settings.darkmode),this.settings.darkmode?document.querySelector("html")?.setAttribute("data-bs-theme","dark"):document.querySelector("html")?.removeAttribute("data-bs-theme");break;case"blueLightFilter":let u=this.settings.filterBluelight,p=document.querySelector("#accessibility_bluelight_filter_overlay");u&&p===null&&(p=document.createElement("div"),p.setAttribute("id","accessibility_bluelight_filter_overlay"),Object.assign(p.style,{display:"none",backgroundColor:"rgba(255, 147, 41, 0)",position:"fixed",zIndex:92890890299,pointerEvents:"none",inset:"-10px",width:"auto",height:"auto",mixBlendMode:"multiply",margin:0,padding:0}),document.querySelector("body").appendChild(p)),p&&(u>0?(p.style.display="block",p.style.backgroundColor="rgba(255, 147, 41, "+u+")"):p.style.display="none"),n&&(n.value=this.settings.filterBluelight.toString());break}s&&this.saveSettings()}saveSettings(){window.localStorage.setItem("accessibility-settings",JSON.stringify(this.settings))}};customElements.define("th-accessibility",Fi);var Un='.nav-pagination[data-loading="nested"]',sa={maxPages:5},Bi=class extends O{constructor(){super(...arguments);this.loadedPages=0}static{d(this,"PaginationNestedLoader")}init(){this.options=this.assignConfig(sa,this.config)}process(){parseInt(window.ThiemeCore.Config.get("disablePaginationNestedLoading",0))<1&&this.processPagination(this.element,!0)}processPagination(t,i=!1){let s=t.querySelector(".page-item.next");if(s){let n=s.dataset.page?parseInt(s.dataset.page):this.loadedPages;if(this.options.maxPages>0&&n>this.options.maxPages||i&&n>2)return;let o=s.querySelector("a.page-link");if(o){let r=o.getAttribute("href");if(r){let c=new IntersectionObserver(l=>{l[0].intersectionRatio<=0||(c.unobserve(t),this.loadContent(t,r))});c.observe(t)}}}else this.options.maxPages<1&&(t.hidden=!0)}loadContent(t,i){let s=document.createElement("div");s.innerHTML='<div class="spinner-border" role="status"><span class="visually-hidden">Loading...</span></div>',s.classList.add("d-flex","justify-content-center"),t.before(s);let n=t.parentElement?t.parentElement.querySelector(".separator"):null;n&&n.parentElement!==t.parentElement&&(n=null),n===null&&(n=document.createElement("div"),n.classList.add("pagination-separator")),fetch(i).then(o=>o.text()).then(o=>{let c=new DOMParser().parseFromString(o,"text/html");if(s.remove(),c){let l=c.querySelector(Un);l&&l.parentElement&&(t.after(...l.parentElement.children),n&&t.after(n.cloneNode()),t.remove(),this.element=l,this.loadedPages++,this.processPagination(l))}}).finally(()=>{s.remove()})}};Bi.initializeDom(Un,!1,!0,!1);
108var Zn={pswpModule:le,loop:!0,bgOpacity:.8,zoom:!0,wheelToZoom:!1,closeTitle:"schlie\xDFen",zoomTitle:"vergr\xF6\xDFern",arrowPrevTitle:"zur\xFCck",arrowNextTitle:"weiter",errorMsg:"Das Foto konnte aufgrund eines Fehlers nicht geladen werden",indexIndicatorSep:" / ",preloadFirstSlide:!0},Gn='button[rel="fullsize"],a[rel="fullsize"]',qi=new Map,Wi=class extends O{constructor(){super(...arguments);this.options=Zn}static{d(this,"Lightbox")}init(){this.options=this.assignConfig(Zn,this.config,void 0,!0),this.options.closeTitle=window.ThiemeCore.Lang.translate("closeTitle",null,this.options.closeTitle,"photoswipe"),this.options.zoomTitle=window.ThiemeCore.Lang.translate("zoomTitle",null,this.options.zoomTitle,"photoswipe"),this.options.arrowPrevTitle=window.ThiemeCore.Lang.translate("arrowPrevTitle",null,this.options.arrowPrevTitle,"photoswipe"),this.options.arrowNextTitle=window.ThiemeCore.Lang.translate("arrowNextTitle",null,this.options.arrowNextTitle,"photoswipe"),this.options.indexIndicatorSep=window.ThiemeCore.Lang.translate("indexIndicatorSep",null,this.options.indexIndicatorSep,"photoswipe"),this.options.errorMsg=window.ThiemeCore.Lang.translate("errorMsg",null,this.options.errorMsg,"photoswipe")}process(){let t=[],i=this.element.dataset.caption??this.element.closest("figure")?.querySelector("figcaption")?.textContent??"";if(this.element.dataset.gallery&&this.element.dataset.gallery!=""){let r=document.querySelector("#"+this.element.dataset.gallery);r?(qi.has(r)?t=qi.get(r):r.querySelectorAll(Gn).forEach((c,l)=>{let h=c.dataset.caption??c.closest("figure")?.querySelector("figcaption")?.textContent??"";t.push({src:c.getAttribute("href")??"",caption:h,width:0,height:0,srcset:"",alt:"",thumb:c.parentNode?.querySelector("img")?.getAttribute("src")??"",el:c})}),qi.set(r,t)):t.push({src:this.element.getAttribute("href")??"",caption:i,width:0,height:0,srcset:"",alt:"",thumb:this.element.parentNode?.querySelector("img")?.getAttribute("src")??"",el:this.element})}else t.push({src:this.element.getAttribute("href")??"",caption:i,width:0,height:0,srcset:"",alt:"",thumb:this.element.parentNode?.querySelector("img")?.getAttribute("src")??"",el:this.element});let s=0;t.forEach((r,c)=>{if(r.el==this.element)return s=c,!1});let n=this.options;n.dataSource=t;let o=new ce(n);o.on("contentLoadImage",r=>{r.content.element&&(r.content.element.style.width="",r.content.element.style.height="")}),o.on("uiRegister",()=>{typeof o.pswp>"u"||o.pswp.ui?.registerElement({name:"custom-caption",order:9,isButton:!1,appendTo:"root",html:"Caption text",onInit:d(function(r,c){r.style.display="none",o.pswp?.on("change",function(){o.pswp?.currSlide?.data.caption&&o.pswp?.currSlide?.data.caption!=""?(r.innerHTML='<div class="caption text-center">'+o.pswp.currSlide.data.caption+"</div>",r.style.display="block"):(r.innerHTML="",r.style.display="none")})},"onInit")})}),o.init(),this.element.addEventListener("click",r=>{o.loadAndOpen(s)})}};Wi.initializeDom(Gn,!1,!0,!0);var na="iframe",ut={bodyBackground:"",bodyMargin:"",bodyPadding:"",checkOrigin:!1,direction:"none",offsetWidth:0,offsetHeight:0,tolerance:0,scrolling:void 0,waitForLoad:!1},ji=class extends O{constructor(){super(...arguments);this.options=ut}static{d(this,"IframeResizeParent")}init(){this.options=this.assignConfig(ut,this.config,void 0,!1);let t=this.element;this.options.direction&&this.options.direction=="none"&&(this.options.direction="vertical"),typeof this.options.scrolling!=null&&(this.options.scrolling=="auto"?(t.setAttribute("scrolling","auto"),t.style.setProperty("overflow","auto")):this.options.scrolling?(t.setAttribute("scrolling","yes"),t.style.setProperty("overflow","scroll")):(t.setAttribute("scrolling","no"),t.style.setProperty("overflow","hidden"))),this.options.offsetWidth&&this.options.offsetWidth>0&&t.style.setProperty("width",this.options.offsetWidth+"px"),this.options.offsetHeight&&this.options.offsetHeight>0&&t.style.setProperty("height",this.options.offsetHeight+"px")}process(){let t=this.element;typeof this.options.direction>"u"||this.options.direction=="none"&&!t.classList.contains("autoresize")&&t.getAttribute("autoresize")==null||window.addEventListener("message",i=>
108{i.data&&typeof i.data=="string"&&i.source==t.contentWindow&&this.handleMessage(i.data)})}handleMessage(t){let i=JSON.parse(t);if(typeof i.command!=null)switch(i.command){case"init":this.postMessage({command:"parentFrameInizialized",data:{options:this.options}});break;case"clientSizeChanged":let s=i.data;this.resizeFrame(s);break}}resizeFrame(t){let i=!0,s=this.element;if(this.options.tolerance){i=!1;let n=this.options.tolerance;this.options.direction=="horizontal"?s.offsetWidth+n<t.scrollWidth&&(i=!0):this.options.direction=="vertical"&&s.offsetHeight+n<t.scrollHeight&&(i=!0)}i&&(s.style.height=t.scrollHeight+"px",s.style.overflowY="auto",this.postMessage({command:"parentFrameResized",data:{offsetWidth:s.offsetWidth,offsetHeight:s.offsetHeight}}))}postMessage(t){let i=this.element;i.contentWindow&&i.contentWindow.postMessage(JSON.stringify(t))}},$i=class extends Yi{constructor(){super();this.options=ut;this.lastScrollHeight=0;this.updateTimeOut=0;this.parentIframeOffsetWidth=0;this.parentIframeOffsetHeight=0;this.isInitialized=!1;window.self!==window.parent&&(window.addEventListener("message",t=>{t.source==window.parent&&t.data&&this.handleMessage(t.data)}),this.postMessage({command:"init"}))}static{d(this,"IframeResizeClient")}handleMessage(t){let i=JSON.parse(t);if(typeof i.command!=null)switch(i.command){case"parentFrameInizialized":this.options=i.data.options,this.updateFrameBody(),this.initReszing(),this.isInitialized=!0;break;case"parentFrameResized":this.parentIframeOffsetWidth=i.data.offsetWidth,this.parentIframeOffsetHeight=i.data.offsetHeight;break}}initReszing(){window.addEventListener("load",()=>{this.postUpdateMessage()}),ut.waitForLoad||this.postUpdateMessage(),new MutationObserver((i,s)=>{for(let n of i)n.addedNodes.length>0&&n.addedNodes.forEach(o=>{if(o instanceof HTMLImageElement||o instanceof HTMLIFrameElement||o instanceof HTMLMediaElement){let r=!0;o instanceof HTMLImageElement&&o.complete&&(r=!1),r&&o.addEventListener("load",()=>{this.postUpdateMessage()})}}),n.type=="childList"&&this.postUpdateMessage()}).observe(document.body,{childList:!0,subtree:!0}),window.addEventListener("resize",()=>{this.postUpdateMessage()}),window.addEventListener("orientationchange",()=>{this.postUpdateMessage()})}updateFrameBody(){this.setBodyStyle("background",this.options.bodyBackground),this.setBodyStyle("margin",this.options.bodyMargin?.toString())}setBodyStyle(t,i){i!==void 0&&i!==""&&i!=="null"&&document.body.style.setProperty(t,i)}postMessage(t){window.parent&&window.self!=window.parent&&window.parent.postMessage(JSON.stringify(t))}postUpdateMessage(){window.clearTimeout(this.updateTimeOut),this.updateTimeOut=window.setTimeout(()=>{let t={offsetWidth:document.body.offsetWidth,offsetHeight:document.body.offsetHeight,scrollWidth:document.body.scrollWidth,scrollHeight:document.body.scrollHeight,marginTop:document.body.style.marginTop,marginBottom:document.body.style.marginBottom,marginLeft:document.body.style.marginLeft,marginRight:document.body.style.marginRight};this.postMessage({command:"clientSizeChanged",data:t})},100)}};ji.initializeDom(na,!0,!1,!0);var vp=new $i;window.ThiemeCore=new oe;window.ThiemeMaintemplate=new re; 109/*! Bundled license information: 110 111photoswipe/dist/photoswipe.esm.js: 112 (*! 113 * PhotoSwipe 5.4.4 - https://photoswipe.com 114 * (c) 2024 Dmytro Semenov 115 *) 116 117photoswipe/dist/photoswipe-lightbox.esm.js: 118 (*! 119 * PhotoSwipe Lightbox 5.4.4 - https://photoswipe.com 120 * (c) 2024 Dmytro Semenov 121 *) 122*/ 123//# sourceMappingURL=bundle.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.