@supersoniks/concorde 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1772192157}
1
+ {"date":1775831345}
@@ -1,4 +1,4 @@
1
- (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var N,Z;let H=class zt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=zt.getAncestorAttributeValue(t,"token"),s=zt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=zt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=zt.getAncestorAttributeValue(t,"tokenProvider"),c=zt.getAncestorAttributeValue(t,"eventsApiToken");i||(o=zt.getAncestorAttributeValue(t,"userName"),n=zt.getAncestorAttributeValue(t,"password"));const h=zt.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),g=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:g}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return zt.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Us=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let cs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},tt=class Ht{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Ht.isObject(l)&&Ht.isObject(c),u=s?l!==c:l!=c;if(h&&!Ht.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Ht.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Ht.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Ht.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let Hr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},ji="sonic";typeof __SONIC_PREFIX__<"u"&&(ji=__SONIC_PREFIX__);let Fi=ji.replace(/-([a-z])/g,r=>r[1].toUpperCase());const hs=Fi.charAt(0).toUpperCase()+Fi.slice(1);function ds(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Vs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ds(this._value_)&&ds(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ds(this._value_);if(this._parentKey_&&this.parent){const e=ds(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let je=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Vs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Vs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=Bs({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Vs,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Fri Feb 27 2026 12:35:57 GMT+0100 (Central European Standard Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[hs+"PublisherManager"]=r[hs+"PublisherManager"]||k}const Wr=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Kr(r,t){return{get:function(i,s){if(typeof s=="string"&&Wr.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=Bs(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=Bs({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function Bs(r,t=null,i){const s=new je(r,t,i);let e=null;const o=Kr(s,()=>e);return e=new Proxy(s,o),e}class Yr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=je.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Yr)}catch{}const us=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])},Zr=r=>us(r).values().next().value?.get(),zi=r=>us(r).values().next().value,Xr=zi,ps=zi,Gr=(r,t)=>{us(r).values().next().value?.set(t)};window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let fs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const g=t,m={publisher:d,onAssign:()=>{const v=l.variables.map(L=>N.getSubPublisher(s,L)?.get());let y=l.expression,$=!1;if(v.length==1&&l.variables[0].join(".")==y.substring(1)){let L=v[0];L===null&&(L=""),g[c]=L;return}for(let L=0;L<v.length;L++){let p=v[L];const f=l.variables[L];p===null&&($=!0,p=void 0),y=y.replace("$"+f.join("."),p)}if(y.indexOf("|")!=-1){const L=y.indexOf("|");if(L==0)y=cs.js(y.substring(1));else{const p=y.substring(0,L),f=y.substring(L+1),_=cs[p];y=$?"":_?_(f):y}}else y=$?"":y;g[c]=y}};d?.onAssign(m.onAssign),o.push(m)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);fs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=fs);/**
1
+ (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var N,Z;let H=class zt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=zt.getAncestorAttributeValue(t,"token"),s=zt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=zt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=zt.getAncestorAttributeValue(t,"tokenProvider"),c=zt.getAncestorAttributeValue(t,"eventsApiToken");i||(o=zt.getAncestorAttributeValue(t,"userName"),n=zt.getAncestorAttributeValue(t,"password"));const h=zt.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),g=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:g}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return zt.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Us=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let cs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},tt=class Ht{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Ht.isObject(l)&&Ht.isObject(c),u=s?l!==c:l!=c;if(h&&!Ht.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Ht.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Ht.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Ht.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let Hr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},ji="sonic";typeof __SONIC_PREFIX__<"u"&&(ji=__SONIC_PREFIX__);let Fi=ji.replace(/-([a-z])/g,r=>r[1].toUpperCase());const hs=Fi.charAt(0).toUpperCase()+Fi.slice(1);function ds(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Vs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ds(this._value_)&&ds(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ds(this._value_);if(this._parentKey_&&this.parent){const e=ds(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let je=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Vs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Vs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=Bs({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Vs,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Fri Apr 10 2026 16:29:04 GMT+0200 (Central European Summer Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[hs+"PublisherManager"]=r[hs+"PublisherManager"]||k}const Wr=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Kr(r,t){return{get:function(i,s){if(typeof s=="string"&&Wr.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=Bs(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=Bs({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function Bs(r,t=null,i){const s=new je(r,t,i);let e=null;const o=Kr(s,()=>e);return e=new Proxy(s,o),e}class Yr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=je.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Yr)}catch{}const us=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])},Zr=r=>us(r).values().next().value?.get(),zi=r=>us(r).values().next().value,Xr=zi,ps=zi,Gr=(r,t)=>{us(r).values().next().value?.set(t)};window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let fs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const g=t,m={publisher:d,onAssign:()=>{const v=l.variables.map(L=>N.getSubPublisher(s,L)?.get());let y=l.expression,$=!1;if(v.length==1&&l.variables[0].join(".")==y.substring(1)){let L=v[0];L===null&&(L=""),g[c]=L;return}for(let L=0;L<v.length;L++){let p=v[L];const f=l.variables[L];p===null&&($=!0,p=void 0),y=y.replace("$"+f.join("."),p)}if(y.indexOf("|")!=-1){const L=y.indexOf("|");if(L==0)y=cs.js(y.substring(1));else{const p=y.substring(0,L),f=y.substring(L+1),_=cs[p];y=$?"":_?_(f):y}}else y=$?"":y;g[c]=y}};d?.onAssign(m.onAssign),o.push(m)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);fs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=fs);/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -4181,7 +4181,7 @@ ${this.value}</textarea
4181
4181
  animation: altcha-spinner 0.75s infinite linear;
4182
4182
  transform-origin: center;
4183
4183
  }
4184
- `;var wh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,js=(r,t,i,s)=>{for(var e=s>1?void 0:s?_h(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&wh(t,i,e),e};const xh="supersoniks_altcha",Ph="Si2\\]X8M4!n9DCLd";let Fr=!1;const $h="sonic-captcha";let Me=class extends Gt(w){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Fr){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://eu.altcha.org/js/latest/altcha.min.js",Fr=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=ps(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const r=await bh(),t=new TextEncoder().encode(Ph),i=await vh(xh,r,t);this.key=i}render(){if(!this.key)return S;const t=Xt.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return b`
4184
+ `;var wh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,js=(r,t,i,s)=>{for(var e=s>1?void 0:s?_h(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&wh(t,i,e),e};const xh="supersoniks_altcha",Ph="Si2\\]X8M4!n9DCLd";let Fr=!1;const $h="sonic-captcha";let Me=class extends Gt(w){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Fr){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",Fr=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=ps(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const r=await bh(),t=new TextEncoder().encode(Ph),i=await vh(xh,r,t);this.key=i}render(){if(!this.key)return S;const t=Xt.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return b`
4185
4185
  <form>
4186
4186
  <altcha-widget
4187
4187
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -677,7 +677,7 @@ const T = class T {
677
677
  return new TextDecoder().decode(h);
678
678
  }
679
679
  };
680
- T.buildDate = "Fri Feb 27 2026 12:35:57 GMT+0100 (Central European Standard Time)", T.changed = !1, T.saving = !1, T.saveId = 0, T.instance = null, T.instances = /* @__PURE__ */ new Map(), T.modifiedCollectore = [];
680
+ T.buildDate = "Fri Apr 10 2026 16:29:04 GMT+0200 (Central European Summer Time)", T.changed = !1, T.saving = !1, T.saveId = 0, T.instance = null, T.instances = /* @__PURE__ */ new Map(), T.modifiedCollectore = [];
681
681
  let k = T;
682
682
  if (typeof window < "u") {
683
683
  const r = window;
@@ -12485,7 +12485,7 @@ let Ae = class extends ie(_) {
12485
12485
  if (document.location.protocol.includes("https")) {
12486
12486
  if (!pr) {
12487
12487
  const r = document.createElement("script");
12488
- r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://eu.altcha.org/js/latest/altcha.min.js", pr = !0, document.head.appendChild(r);
12488
+ r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js", pr = !0, document.head.appendChild(r);
12489
12489
  }
12490
12490
  this.generateEncryptedKey(), super.connectedCallback(), this.formPublisher = Os(
12491
12491
  this.getAncestorAttributeValue("headersDataProvider") ?? this.getAncestorAttributeValue("formDataProvider")
@@ -12504,7 +12504,9 @@ let Ae = class extends ie(_) {
12504
12504
  const r = this.shadowRoot.querySelector("form");
12505
12505
  if (!r) return;
12506
12506
  const t = new FormData(r);
12507
- this.formPublisher.captchaKey.set(this.key), this.formPublisher.captchaToken.set(t.get("altcha")?.toString() || "");
12507
+ this.formPublisher.captchaKey.set(this.key), this.formPublisher.captchaToken.set(
12508
+ t.get("altcha")?.toString() || ""
12509
+ );
12508
12510
  }
12509
12511
  async generateEncryptedKey() {
12510
12512
  if (this.key) return;
@@ -1,4 +1,4 @@
1
- (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var N,Z;let H=class zt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=zt.getAncestorAttributeValue(t,"token"),s=zt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=zt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=zt.getAncestorAttributeValue(t,"tokenProvider"),c=zt.getAncestorAttributeValue(t,"eventsApiToken");i||(o=zt.getAncestorAttributeValue(t,"userName"),n=zt.getAncestorAttributeValue(t,"password"));const h=zt.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),g=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:g}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return zt.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Us=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let cs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},tt=class Ht{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Ht.isObject(l)&&Ht.isObject(c),u=s?l!==c:l!=c;if(h&&!Ht.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Ht.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Ht.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Ht.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let Hr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},ji="sonic";typeof __SONIC_PREFIX__<"u"&&(ji=__SONIC_PREFIX__);let Fi=ji.replace(/-([a-z])/g,r=>r[1].toUpperCase());const hs=Fi.charAt(0).toUpperCase()+Fi.slice(1);function ds(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Vs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ds(this._value_)&&ds(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ds(this._value_);if(this._parentKey_&&this.parent){const e=ds(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let je=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Vs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Vs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=Bs({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Vs,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Fri Feb 27 2026 12:35:57 GMT+0100 (Central European Standard Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[hs+"PublisherManager"]=r[hs+"PublisherManager"]||k}const Wr=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Kr(r,t){return{get:function(i,s){if(typeof s=="string"&&Wr.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=Bs(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=Bs({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function Bs(r,t=null,i){const s=new je(r,t,i);let e=null;const o=Kr(s,()=>e);return e=new Proxy(s,o),e}class Yr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=je.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Yr)}catch{}const us=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])},Zr=r=>us(r).values().next().value?.get(),zi=r=>us(r).values().next().value,Xr=zi,ps=zi,Gr=(r,t)=>{us(r).values().next().value?.set(t)};window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let fs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const g=t,m={publisher:d,onAssign:()=>{const v=l.variables.map(L=>N.getSubPublisher(s,L)?.get());let y=l.expression,$=!1;if(v.length==1&&l.variables[0].join(".")==y.substring(1)){let L=v[0];L===null&&(L=""),g[c]=L;return}for(let L=0;L<v.length;L++){let p=v[L];const f=l.variables[L];p===null&&($=!0,p=void 0),y=y.replace("$"+f.join("."),p)}if(y.indexOf("|")!=-1){const L=y.indexOf("|");if(L==0)y=cs.js(y.substring(1));else{const p=y.substring(0,L),f=y.substring(L+1),_=cs[p];y=$?"":_?_(f):y}}else y=$?"":y;g[c]=y}};d?.onAssign(m.onAssign),o.push(m)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);fs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=fs);/**
1
+ (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var N,Z;let H=class zt{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,i)=>{const s=i.indexOf("=");return t[i.substring(0,s).trim()]=i.substring(s+1),t},{})}static everyAncestors(t,i){for(;t;){if(!i(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const i=t;if(i.nodeType===1){const s=window.getComputedStyle(i);if(s?.overflowY==="auto"||s?.overflowY==="scroll"||s?.overflowY==="hidden"||s?.overflowX==="auto"||s?.overflowX==="scroll"||s?.overflowX==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,i){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(i))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(i):null}static getApiConfiguration(t){const i=zt.getAncestorAttributeValue(t,"token"),s=zt.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=zt.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const l=zt.getAncestorAttributeValue(t,"tokenProvider"),c=zt.getAncestorAttributeValue(t,"eventsApiToken");i||(o=zt.getAncestorAttributeValue(t,"userName"),n=zt.getAncestorAttributeValue(t,"password"));const h=zt.getAncestorAttributeValue(t,"credentials")||void 0,u=t.getAttribute("cache"),d=t.hasAttribute("blockUntilDone"),g=t.hasAttribute("keepAlive");return{serviceURL:e,token:i,userName:o,password:n,authToken:c,tokenProvider:l,addHTTPResponse:s,credentials:h,cache:u,blockUntilDone:d,keepAlive:g}}static getClosestElement(t,i){for(;!(t.nodeName&&t.nodeName.toLowerCase()===i)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return zt.getClosestElement(t,"form")}static getAncestorsByTagNames(t,i){const s=new Set(i.map(n=>n.toLowerCase())),e=[];let o=t.parentNode||t.host;for(;o;)o instanceof Element&&s.has(o.tagName.toLowerCase())&&e.push(o),o=o.parentNode||o.host;return e}static getAncestorsBySelectors(t,i){const s=[];let e=t.parentNode||t.host;for(;e;){if(e instanceof Element)for(const o of i)try{if(e.matches(o)){s.push(e);break}}catch{}e=e.parentNode||e.host}return s}static async loadJS(t){return new Promise(async s=>{const e=document.createElement("script");e.src=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async s=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>s(!0),e.onerror=()=>s(!0),document.head.appendChild(e)})}};const Us=r=>{const t=document.documentElement,i=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),s={attributes:!0,attributeFilter:["lang"]};i.observe(t,s)};let cs=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,i="",s="long"){i||(i=H.getLanguage());const e=(h,u)=>[Math.floor(h/u),h%u];function o(h,u,d){return new Intl.NumberFormat(h,{style:"unit",unit:u,unitDisplay:d}).format}const[n,l]=e(t,60),c=[];return n&&c.push(o(i,"hour",s)(n)),l&&c.push(o(i,"minute",s)(l)),new Intl.ListFormat(i,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},tt=class Ht{static shallowEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n];if(s?l!==c:l!=c)return!1}return!0}static deepEqual(t,i,s=!0){const e=Object.keys(t),o=Object.keys(i);if(e.length!==o.length&&s)return!1;for(const n of e){const l=t[n],c=i[n],h=Ht.isObject(l)&&Ht.isObject(c),u=s?l!==c:l!=c;if(h&&!Ht.deepEqual(l,c)||!h&&u)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Ht.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,i,s=!1){for(const e of i){const o=t[e];if(o===void 0)return;s&&Ht.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,i,s=!1){return Ht.traverse(t,i.split("."),s)}static getURLSearchArray(t,i=""){let s=[];for(let e in t){const o=t[e];i&&(e=i+"["+e+"]"),Ht.isObject(o)?s=[...s,...this.getURLSearchArray(o,e)]:s.push(`${e}=${o}`)}return s}static getURLSearchString(t){return Ht.getURLSearchArray(t,"").join("&")}};const ut=tt.traverseDotNotation;let Hr=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},ji="sonic";typeof __SONIC_PREFIX__<"u"&&(ji=__SONIC_PREFIX__);let Fi=ji.replace(/-([a-z])/g,r=>r[1].toUpperCase());const hs=Fi.charAt(0).toUpperCase()+Fi.slice(1);function ds(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let _e="sonic";typeof __SONIC_PREFIX__>"u"&&(_e="sonic");const Vs=_e=="sonic"?"publisher-proxies-data":_e+"-publisher-proxies-data",oe=class oe{constructor(t,i,s){for(this._proxies_=new Map,this._is_savable_=!1,this._expiration_delay_=1e3*60*60*12,this._invalidate_on_page_show_=!1,this._invalidateListeners_=new Set,this._formInvalidateListeners_=new Set,this._assignListeners_=new Set,this._mutationListeners_=new Set,this._fillListeners_=new Set,this._templateFillListeners_=new Set,this._lockInternalMutationPublishing_=!1,this._instanceCounter_=0,this._assignmentId_=0,this._value_=t,this.parent=i||null,this._parentKey_=s,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){for(const t in this._proxies_.keys())t!="_parent_"&&this._proxies_.get(t)?.delete();this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),oe.instances.delete(this._instanceCounter_)}hasListener(){return this._templateFillListeners_.size>0||this._assignListeners_.size>0||this._invalidateListeners_.size>0||this._formInvalidateListeners_.size>0||this._mutationListeners_.size>0||this._fillListeners_.size>0}_publishInternalMutation_(t=!1){if(this._mutationListeners_.forEach(i=>i()),this._is_savable_&&!k.changed){k.changed=!0,k.saveId++;const i=k.saveId;setTimeout(()=>k.getInstance().saveToLocalStorage(i),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const s=this.get();this._assignListeners_.forEach(e=>{e(s)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,i){this._fillListeners_.forEach(s=>{s[t]!==i&&(s[t]=i)}),this._publishTemplateFilling_(t,i)}_publishTemplateFilling_(t,i){this._templateFillListeners_.forEach(s=>{const e=Object.getOwnPropertyDescriptor(s,t);e&&!e.set&&!e.writable||(s.propertyMap&&s.propertyMap[t]&&(t=s.propertyMap[t]),typeof s[t]<"u"&&s[t]!==i&&(s[t]=i))})}onAssign(t,i=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),i&&t(this.get())))}offAssign(t){this._assignListeners_.delete(t)}onInvalidate(t){typeof t=="function"&&this._invalidateListeners_.add(t)}offInvalidate(t){typeof t=="function"&&this._invalidateListeners_.delete(t)}invalidate(){this._publishInvalidation_()}onFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.add(t)}offFormInvalidate(t){typeof t=="function"&&this._formInvalidateListeners_.delete(t)}invalidateForm(){this._publishFormInvalidation_()}onInternalMutation(t){typeof t=="function"&&(this._mutationListeners_.add(t),t())}offInternalMutation(t){typeof t=="function"&&this._mutationListeners_.delete(t)}startTemplateFilling(t){if(this._templateFillListeners_.add(t),typeof this._value_=="object")for(const i in this._value_){let s=i;const e=this._value_[i];t.propertyMap&&t.propertyMap[i]&&(s=t.propertyMap[i]),typeof t[i]<"u"&&t[i]!==e&&(t[s]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const i in this._value_){const s=this._value_[i];t[i]!==s&&(t[i]=s)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,i=!1){if(this._value_===t||Wt(this._value_)&&Wt(t)&&t&&ds(this._value_)&&ds(t)&&this._value_.__value===t.__value||!Wt(t)&&t===this._value_.__value)return!0;this._value_=Wt(t)?t:{__value:t},this._cachedGet_=void 0;const s=ds(this._value_);if(this._parentKey_&&this.parent){const e=ds(this._value_)?this._value_.__value:this._value_;if(this.parent?.get()==null&&this.parent?.get()==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:e});else{const o=[];o[Number(this._parentKey_)]=e,this.parent.set(o)}else this.parent._value_[this._parentKey_]=e}if(s)return this._proxies_.forEach((e,o)=>{o!="_parent_"&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(i),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const e in this._value_)this._value_[e]===void 0&&delete this._value_[e];if(this._proxies_.forEach((e,o)=>{const n=this._value_[o];o!="_parent_"&&n===void 0&&n!==null&&isNaN(Number(o))&&(e.set(null),this._publishDynamicFilling_(o,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),Wt(this._value_))for(const e in this._value_){const o=t[e],l=Wt(o)?o:{__value:o};if(!this._proxies_.has(e)){this._publishDynamicFilling_(e,o);continue}this._proxies_.get(e)?.set(l,!0),this._publishDynamicFilling_(e,o)}return!0}get(){if(k.modifiedCollectore.length>0&&k.modifiedCollectore[0].add(this),this._cachedGet_!==void 0)return this._cachedGet_;if(Object.prototype.hasOwnProperty.call(this._value_,"__value")){const t=this._value_.__value;return this._cachedGet_=t??null}return this._cachedGet_=this._value_!=null?this._value_:null}get $tag(){return this._instanceCounter_||(oe.instancesCounter++,this._instanceCounter_=oe.instancesCounter),oe.instances.set(this._instanceCounter_,this),"<"+_e+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+_e+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let je=oe;const I=class I{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],I.instance!=null)throw"Singleton / use getInstance";I.instance=this,this.isLocalStrorageReady=this.cleanStorageData()}invalidateAll(){this.publishers.forEach(t=>{t._invalidate_on_page_show_&&t.invalidate()})}async cleanStorageData(){return new Promise(t=>{(async()=>{try{let s=localStorage.getItem(Vs),e=null;if(s&&(e=await this.decompress(s,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else s=await this.compress("{}","gzip"),localStorage.setItem(Vs,s),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const l=this.localStorageData[n],c=new Date().getTime()-(l.expirationDelayMs||o);l.lastModifiationMS<c&&delete this.localStorageData[n]}t(!0)}catch{window.requestAnimationFrame(()=>{t(!1)}),console.warn("no publisher cache in this browser")}})()})}static getInstance(t){if(t){const i=I.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new I)}return I.instance==null?new I:I.instance}static registerInstance(t,i){I.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),I.instances.set(t,i)}static get(t,i){return I.getInstance().get(t,i)}static collectModifiedPublisher(){I.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return I.modifiedCollectore.shift()}static delete(t){return t?I.getInstance().delete(t):!1}async setLocalData(t,i){await this.isLocalStrorageReady,t.set(this.localStorageData[i+"¤lang_"+H.getLanguage()]?.data||t.get())}get(t,i){const s=i?.localStorageMode==="enabled",e=i?.invalidateOnPageShow===!0;if(!this.publishers.has(t)){const l=Bs({});this.set(t,l)}const o=this.publishers.get(t);return s&&this.initialisedData.indexOf(t)===-1&&(i?.expirationDelayMs&&(o._expiration_delay_=i.expirationDelayMs),o._is_savable_=!0,this.initialisedData.push(t),this.setLocalData(o,t)),e&&(o._invalidate_on_page_show_=e),this.publishers.get(t)}set(t,i){this.publishers.set(t,i)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==I.saveId&&t%10!=0))try{if(!I.changed||I.saving)return;I.saving=!0,I.changed=!1;const i=Array.from(this.publishers.keys());let s=!1;for(const e of i){const o=this.publishers.get(e);if(!o?._is_savable_)continue;const n=o?.get();n&&(this.localStorageData[e+"¤lang_"+H.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},s=!0)}if(s){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(Vs,e)}if(I.saving=!1,I.changed){I.saveId++;const e=I.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{I.saving=!1}}async compress(t,i){const s=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(i),n=o.writable.getWriter();n.write(s),n.close();const l=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(l);let h="";for(let u=0;u<c.length;u++)h+=String.fromCharCode(c[u]);return btoa(h)}async decompress(t,i){const s=atob(t),o=Uint8Array.from(s,u=>u.charCodeAt(0)).buffer,n=window,l=new n.DecompressionStream(i),c=l.writable.getWriter();c.write(o),c.close();const h=await new Response(l.readable).arrayBuffer();return new TextDecoder().decode(h)}};I.buildDate="Fri Apr 10 2026 16:29:04 GMT+0200 (Central European Summer Time)",I.changed=!1,I.saving=!1,I.saveId=0,I.instance=null,I.instances=new Map,I.modifiedCollectore=[];let k=I;if(typeof window<"u"){const r=window;r[hs+"PublisherManager"]=r[hs+"PublisherManager"]||k}const Wr=new Set(["invalidate","onInvalidate","offInvalidate","invalidateForm","onFormInvalidate","offFormInvalidate","onAssign","offAssign","startDynamicFilling","stopDynamicFilling","startTemplateFilling","stopTemplateFilling","onInternalMutation","offInternalMutation","set","get","$tag","_cachedGet_","_templateFillListeners_","_fillListeners_","_assignListeners_","_invalidateListeners_","_formInvalidateListeners_","_publishInternalMutation_","hasListener","delete","_mutationListeners_","_publishDynamicFilling_","_publishInvalidation_","_publishFormInvalidation_","_publishTemplateFilling_","_publishAssignement_","_proxies_","parent","_parentKey_","_value_","_is_savable_","_expiration_delay_","_lockInternalMutationPublishing_","_instanceCounter_","_assignmentId_","_invalidate_on_page_show_"]);function Kr(r,t){return{get:function(i,s){if(typeof s=="string"&&Wr.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=Bs(Wt(e)?e:{__value:e},r,s);o._proxies_.set("_parent_",t()),r._proxies_.set(s,o)}return r._proxies_.get(s)},set:function(i,s,e){if(s=="_value_")return r._value_=e,!0;if(s=="_cachedGet_")return r._cachedGet_=e,!0;if(s=="_assignmentId_")return r._assignmentId_=e,!0;if(s=="_is_savable_")return r._is_savable_=e,!0;if(s=="_expiration_delay_")return r._expiration_delay_=e,!0;if(s=="_invalidate_on_page_show_")return r._invalidate_on_page_show_=e,!0;if(s=="_instanceCounter_")return r._instanceCounter_=e,!0;if(!r._proxies_.has(s)){const n=Bs({},r,s);n._proxies_.set("_parent_",t()),r._proxies_.set(s,n)}return r._value_[s]!==e&&(r._value_[s]=e,r._publishDynamicFilling_(s,e),r._proxies_.get(s)?.set(Wt(e)?e:{__value:e})),!0},deleteProperty:function(i,s){return r._publishDynamicFilling_(s,null),r._proxies_.get(s)?.set(null),delete r._value_[s]},has:function(i,s){return s in r._value_&&s!="_lockInternalMutationPublishing_"},defineProperty:function(i,s,e){return e&&"value"in e&&(r._value_[s]=e.value),!0},getOwnPropertyDescriptor:function(i,s){return{enumerable:!0,configurable:!0}},ownKeys:function(i){return r._value_.__value?Object.keys(r._value_.__value):Object.keys(r._value_)}}}function Bs(r,t=null,i){const s=new je(r,t,i);let e=null;const o=Kr(s,()=>e);return e=new Proxy(s,o),e}class Yr extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=je.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(_e+"-publisher-proxy",Yr)}catch{}const us=r=>{if(typeof r=="function"){const t=r;return k.collectModifiedPublisher(),t(),k.getModifiedPublishers()}if(typeof r=="string"){const t=r.split("."),i=t.shift()||"";let s=k.get(i);s=tt.traverse(s,t);const e=new Set;return e.add(s),e}return new Set([r])},Zr=r=>us(r).values().next().value?.get(),zi=r=>us(r).values().next().value,Xr=zi,ps=zi,Gr=(r,t)=>{us(r).values().next().value?.set(t)};window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let fs=(N=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(N.observedElements.keys()).forEach(t=>N.unObserve(t)))}static observe(t){if(!t||!N.enabled||N.observedElements.has(t))return;const i=new MutationObserver(N.onMutation),s={};s.childList=!0,s.subtree=!0,s.attributes=!0,s.attributeFilter=["data-bind"],i.observe(t,s),t.querySelectorAll("[data-bind]").forEach(e=>N.addPublisherListeners(e)),N.observedElements.set(t,i)}static unObserve(t){if(!t)return;const i=this.observedElements.get(t);i&&(i.disconnect(),t.querySelectorAll("[data-bind]").forEach(s=>N.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.addPublisherListeners(i)):t.childNodes.forEach(i=>N.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&N.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>N.removePublisherListeners(i)):t.childNodes.forEach(i=>N.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":N.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{N.onAdded(s)}),i.removedNodes.forEach(s=>{N.onRemoved(s)});break}}static removePublisherListeners(t){const i=N.publisherListeners.get(t);i&&(N.publisherListeners.delete(t),i.forEach(s=>{s.publisher?.offAssign(s.onAssign)}))}static getVariablesDescriptor(t){let i=t.match(/(\$(?:\w+\\?\.?)+)/g);return i?i=i.map(s=>s.replace("$","")):i=[t],i=i.filter(s=>s.length>0),{expression:t.replace("\\",""),variables:i.map(s=>s.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(i=>i.name.indexOf("::")==0).map(i=>({propertyToUpdate:i.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:N.getVariablesDescriptor(i.value)})):[]}static getSubPublisher(t,i){if(!i)return t;for(const s of i)if(s!="_self_"){if(!t)return null;t=t[s]}return t}static addPublisherListeners(t){N.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=N.getDataBindItems(t),o=[];e.forEach(n=>{const l=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of l.variables){const u=h;let d=s;d=N.getSubPublisher(s,u);const g=t,m={publisher:d,onAssign:()=>{const v=l.variables.map(L=>N.getSubPublisher(s,L)?.get());let y=l.expression,$=!1;if(v.length==1&&l.variables[0].join(".")==y.substring(1)){let L=v[0];L===null&&(L=""),g[c]=L;return}for(let L=0;L<v.length;L++){let p=v[L];const f=l.variables[L];p===null&&($=!0,p=void 0),y=y.replace("$"+f.join("."),p)}if(y.indexOf("|")!=-1){const L=y.indexOf("|");if(L==0)y=cs.js(y.substring(1));else{const p=y.substring(0,L),f=y.substring(L+1),_=cs[p];y=$?"":_?_(f):y}}else y=$?"":y;g[c]=y}};d?.onAssign(m.onAssign),o.push(m)}}),N.publisherListeners.set(t,o)}},N.observedElements=new Map,N.enabled=!0,N.publisherListeners=new Map,N);fs.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=fs);/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -4181,7 +4181,7 @@ ${this.value}</textarea
4181
4181
  animation: altcha-spinner 0.75s infinite linear;
4182
4182
  transform-origin: center;
4183
4183
  }
4184
- `;var wh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,js=(r,t,i,s)=>{for(var e=s>1?void 0:s?_h(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&wh(t,i,e),e};const xh="supersoniks_altcha",Ph="Si2\\]X8M4!n9DCLd";let Fr=!1;const $h="sonic-captcha";let Me=class extends Gt(w){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Fr){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://eu.altcha.org/js/latest/altcha.min.js",Fr=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=ps(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const r=await bh(),t=new TextEncoder().encode(Ph),i=await vh(xh,r,t);this.key=i}render(){if(!this.key)return S;const t=Xt.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return b`
4184
+ `;var wh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,js=(r,t,i,s)=>{for(var e=s>1?void 0:s?_h(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(s?n(t,i,e):n(e))||e);return s&&e&&wh(t,i,e),e};const xh="supersoniks_altcha",Ph="Si2\\]X8M4!n9DCLd";let Fr=!1;const $h="sonic-captcha";let Me=class extends Gt(w){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&this.formPublisher.captchaToken.set(""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Fr){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js",Fr=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=ps(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation.set(!0),this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken.set(""),this.formPublisher.needsCaptchaValidation.set(!1)),super.disconnectedCallback()}requestToken(){if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey.set(this.key),this.formPublisher.captchaToken.set(t.get("altcha")?.toString()||"")}async generateEncryptedKey(){if(this.key)return;const r=await bh(),t=new TextEncoder().encode(Ph),i=await vh(xh,r,t);this.key=i}render(){if(!this.key)return S;const t=Xt.getLanguage().match("^fr\\b")?{aria:"Visitez altcha.org",error:"La vérification a échoué, réessayez plus tard.",expired:"La vérification a expiré, réessayez.",footer:"Protégé par Altcha",label:"Je ne suis pas un robot.",verified:"Vérifié",verifying:"Vérification en cours...",wait:"Vérification en cours… Veuillez patienter."}:{aria:"Visit altcha.org",error:"Verification failed, try again later.",expired:"Verification expired, try again.",footer:"Protected by Altcha",label:"I'm not a robot.",verified:"Verified",verifying:"Verifying...",wait:"Verifying... Please wait."};return b`
4185
4185
  <form>
4186
4186
  <altcha-widget
4187
4187
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -677,7 +677,7 @@ const T = class T {
677
677
  return new TextDecoder().decode(h);
678
678
  }
679
679
  };
680
- T.buildDate = "Fri Feb 27 2026 12:35:57 GMT+0100 (Central European Standard Time)", T.changed = !1, T.saving = !1, T.saveId = 0, T.instance = null, T.instances = /* @__PURE__ */ new Map(), T.modifiedCollectore = [];
680
+ T.buildDate = "Fri Apr 10 2026 16:29:04 GMT+0200 (Central European Summer Time)", T.changed = !1, T.saving = !1, T.saveId = 0, T.instance = null, T.instances = /* @__PURE__ */ new Map(), T.modifiedCollectore = [];
681
681
  let k = T;
682
682
  if (typeof window < "u") {
683
683
  const r = window;
@@ -12485,7 +12485,7 @@ let Ae = class extends ie(_) {
12485
12485
  if (document.location.protocol.includes("https")) {
12486
12486
  if (!pr) {
12487
12487
  const r = document.createElement("script");
12488
- r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://eu.altcha.org/js/latest/altcha.min.js", pr = !0, document.head.appendChild(r);
12488
+ r.type = "module", this.setAttribute("async", ""), this.setAttribute("defer", ""), r.src = "https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js", pr = !0, document.head.appendChild(r);
12489
12489
  }
12490
12490
  this.generateEncryptedKey(), super.connectedCallback(), this.formPublisher = Os(
12491
12491
  this.getAncestorAttributeValue("headersDataProvider") ?? this.getAncestorAttributeValue("formDataProvider")
@@ -12504,7 +12504,9 @@ let Ae = class extends ie(_) {
12504
12504
  const r = this.shadowRoot.querySelector("form");
12505
12505
  if (!r) return;
12506
12506
  const t = new FormData(r);
12507
- this.formPublisher.captchaKey.set(this.key), this.formPublisher.captchaToken.set(t.get("altcha")?.toString() || "");
12507
+ this.formPublisher.captchaKey.set(this.key), this.formPublisher.captchaToken.set(
12508
+ t.get("altcha")?.toString() || ""
12509
+ );
12508
12510
  }
12509
12511
  async generateEncryptedKey() {
12510
12512
  if (this.key) return;