@supersoniks/concorde 4.2.1 → 4.3.0

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.
Files changed (55) hide show
  1. package/README.md +163 -0
  2. package/build-infos.json +1 -1
  3. package/concorde-core.bundle.js +175 -171
  4. package/concorde-core.es.js +2490 -2246
  5. package/dist/concorde-core.bundle.js +175 -171
  6. package/dist/concorde-core.es.js +2490 -2246
  7. package/package.json +22 -1
  8. package/php/get-challenge.php +34 -0
  9. package/php/some-service.php +42 -0
  10. package/scripts/pre-build.mjs +4 -0
  11. package/src/core/_types/endpoint.ts +4 -0
  12. package/src/core/_types/key.ts +1 -0
  13. package/src/core/components/functional/example/example.ts +38 -6
  14. package/src/core/decorators/Subscriber.ts +2 -0
  15. package/src/core/decorators/api.spec.ts +150 -0
  16. package/src/core/decorators/api.ts +244 -0
  17. package/src/core/decorators/subscriber/bind.ts +57 -145
  18. package/src/core/decorators/subscriber/dynamicPath.ts +77 -0
  19. package/src/core/decorators/subscriber/dynamicPropertyWatch.ts +105 -0
  20. package/src/core/decorators/subscriber/onAssign.ts +11 -147
  21. package/src/core/decorators/subscriber/publish.spec.ts +21 -0
  22. package/src/core/decorators/subscriber/publish.ts +148 -0
  23. package/src/core/decorators/subscriber/publisherPath.ts +13 -0
  24. package/src/core/decorators/subscriber/subscribe.spec.ts +21 -0
  25. package/src/core/decorators/subscriber/subscribe.ts +32 -0
  26. package/src/core/decorators/subscriber/subscribe.type-test.ts +32 -0
  27. package/src/core/utils/api.ts +83 -15
  28. package/src/core/utils/dataProviderKey.spec.ts +34 -0
  29. package/src/core/utils/dataProviderKey.ts +86 -0
  30. package/src/core/utils/endpoint.spec.ts +41 -0
  31. package/src/core/utils/endpoint.ts +87 -0
  32. package/src/decorators.ts +14 -0
  33. package/src/docs/{_misc → _decorators}/ancestor-attribute.md +15 -31
  34. package/src/docs/_decorators/bind.md +164 -0
  35. package/src/docs/_decorators/get.md +65 -0
  36. package/src/docs/_decorators/publish.md +54 -0
  37. package/src/docs/_decorators/subscribe.md +36 -0
  38. package/src/docs/_misc/dataProviderKey.md +135 -0
  39. package/src/docs/_misc/endpoint.md +42 -0
  40. package/src/docs/example/decorators-demo-bind-demos.ts +210 -0
  41. package/src/docs/example/decorators-demo-geo.ts +45 -0
  42. package/src/docs/example/decorators-demo-init.ts +228 -0
  43. package/src/docs/example/decorators-demo-subscribe-publish-get-demos.ts +324 -0
  44. package/src/docs/example/decorators-demo.ts +12 -459
  45. package/src/docs/navigation/navigation.ts +27 -10
  46. package/src/docs/search/docs-search.json +1059 -609
  47. package/src/tsconfig-model.json +1 -1
  48. package/src/tsconfig.json +65 -1
  49. package/src/tsconfig.tsbuildinfo +1 -1
  50. package/src/utils.ts +8 -1
  51. package/vite.config.mts +11 -0
  52. package/src/docs/_misc/bind.md +0 -362
  53. /package/src/docs/{_misc → _decorators}/auto-subscribe.md +0 -0
  54. /package/src/docs/{_misc → _decorators}/on-assign.md +0 -0
  55. /package/src/docs/{_misc → _decorators}/wait-for-ancestors.md +0 -0
@@ -1,20 +1,20 @@
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);/**
1
+ (function(H){typeof define=="function"&&define.amd?define(H):H()})((function(){"use strict";var T,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 Ys=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 bs=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 ro=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(i=>{setTimeout(i,t)})}},Bi="sonic";typeof __SONIC_PREFIX__<"u"&&(Bi=__SONIC_PREFIX__);let qi=Bi.replace(/-([a-z])/g,r=>r[1].toUpperCase());const gs=qi.charAt(0).toUpperCase()+qi.slice(1);function vs(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function Wt(r){return typeof r=="object"&&r!==null}let xe="sonic";typeof __SONIC_PREFIX__>"u"&&(xe="sonic");const Zs=xe=="sonic"?"publisher-proxies-data":xe+"-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&&vs(this._value_)&&vs(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=vs(this._value_);if(this._parentKey_&&this.parent){const e=vs(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),"<"+xe+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+xe+"-publisher-proxy>"}};oe.instances=new Map,oe.instancesCounter=0;let Fe=oe;const M=class M{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],M.instance!=null)throw"Singleton / use getInstance";M.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(Zs),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(Zs,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=M.instances.get(t);return i||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new M)}return M.instance==null?new M:M.instance}static registerInstance(t,i){M.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),M.instances.set(t,i)}static get(t,i){return M.getInstance().get(t,i)}static collectModifiedPublisher(){M.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return M.modifiedCollectore.shift()}static delete(t){return t?M.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=Gs({});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!==M.saveId&&t%10!=0))try{if(!M.changed||M.saving)return;M.saving=!0,M.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(Zs,e)}if(M.saving=!1,M.changed){M.saveId++;const e=M.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{M.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)}};M.buildDate="Thu Apr 23 2026 15:47:36 GMT+0200 (Central European Summer Time)",M.changed=!1,M.saving=!1,M.saveId=0,M.instance=null,M.instances=new Map,M.modifiedCollectore=[];let k=M;if(typeof window<"u"){const r=window;r[gs+"PublisherManager"]=r[gs+"PublisherManager"]||k}const oo=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 no(r,t){return{get:function(i,s){if(typeof s=="string"&&oo.has(s))return r[s];if(s==Symbol.toPrimitive)return()=>t().get();if(!r._proxies_.has(s)){const e=r._value_[s],o=Gs(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=Gs({},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 Gs(r,t=null,i){const s=new Fe(r,t,i);let e=null;const o=no(s,()=>e);return e=new Proxy(s,o),e}class ao extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){this.publisherId=this.getAttribute("publisher")||"",this.publisher=Fe.instances.get(parseInt(this.publisherId)),this.publisher?.onAssign(this.onAssign)}disconnectedCallback(){this.publisher?.offAssign(this.onAssign)}}try{customElements.define(xe+"-publisher-proxy",ao)}catch{}const ys=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])},lo=r=>ys(r).values().next().value?.get(),Hi=r=>ys(r).values().next().value,co=Hi,_s=Hi,ho=(r,t)=>{ys(r).values().next().value?.set(t)};window.addEventListener("pageshow",r=>{r.persisted&&k.getInstance().invalidateAll()});let ws=(T=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(T.observedElements.keys()).forEach(t=>T.unObserve(t)))}static observe(t){if(!t||!T.enabled||T.observedElements.has(t))return;const i=new MutationObserver(T.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=>T.addPublisherListeners(e)),T.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=>T.removePublisherListeners(s)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&T.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>T.addPublisherListeners(i)):t.childNodes.forEach(i=>T.onAdded(i))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&T.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(i=>T.removePublisherListeners(i)):t.childNodes.forEach(i=>T.onRemoved(i))}static onMutation(t){for(const i of t)switch(i.type){case"attributes":T.addPublisherListeners(i.target);break;case"childList":i.addedNodes.forEach(s=>{T.onAdded(s)}),i.removedNodes.forEach(s=>{T.onRemoved(s)});break}}static removePublisherListeners(t){const i=T.publisherListeners.get(t);i&&(T.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:T.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){T.removePublisherListeners(t);const i=H.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!i)return;const s=k.getInstance().get(i),e=T.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=T.getSubPublisher(s,u);const g=t,f={publisher:d,onAssign:()=>{const m=l.variables.map(D=>T.getSubPublisher(s,D)?.get());let y=l.expression,_=!1;if(m.length==1&&l.variables[0].join(".")==y.substring(1)){let D=m[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<m.length;D++){let p=m[D];const b=l.variables[D];p===null&&(_=!0,p=void 0),y=y.replace("$"+b.join("."),p)}if(y.indexOf("|")!=-1){const D=y.indexOf("|");if(D==0)y=bs.js(y.substring(1));else{const p=y.substring(0,D),b=y.substring(D+1),w=bs[p];y=_?"":w?w(b):y}}else y=_?"":y;g[c]=y}};d?.onAssign(f.onAssign),o.push(f)}}),T.publisherListeners.set(t,o)}},T.observedElements=new Map,T.enabled=!0,T.publisherListeners=new Map,T);ws.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=ws);/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const x=r=>(t,i)=>{i!==void 0?i.addInitializer((()=>{customElements.define(r,t)})):customElements.define(r,t)};/**
5
+ */const P=r=>(t,i)=>{i!==void 0?i.addInitializer((()=>{customElements.define(r,t)})):customElements.define(r,t)};/**
6
6
  * @license
7
7
  * Copyright 2019 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const ms=globalThis,qs=ms.ShadowRoot&&(ms.ShadyCSS===void 0||ms.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hs=Symbol(),Ri=new WeakMap;let Ui=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==Hs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(qs&&t===void 0){const s=i!==void 0&&i.length===1;s&&(t=Ri.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ri.set(i,t))}return t}toString(){return this.cssText}};const Qr=r=>new Ui(typeof r=="string"?r:r+"",void 0,Hs),P=(r,...t)=>{const i=r.length===1?r[0]:t.reduce(((s,e,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1]),r[0]);return new Ui(i,r,Hs)},Jr=(r,t)=>{if(qs)r.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of t){const s=document.createElement("style"),e=ms.litNonce;e!==void 0&&s.setAttribute("nonce",e),s.textContent=i.cssText,r.appendChild(s)}},Vi=qs?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return Qr(i)})(r):r;/**
9
+ */const xs=globalThis,Xs=xs.ShadowRoot&&(xs.ShadyCSS===void 0||xs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qs=Symbol(),Wi=new WeakMap;let Ki=class{constructor(t,i,s){if(this._$cssResult$=!0,s!==Qs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o;const i=this.t;if(Xs&&t===void 0){const s=i!==void 0&&i.length===1;s&&(t=Wi.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Wi.set(i,t))}return t}toString(){return this.cssText}};const uo=r=>new Ki(typeof r=="string"?r:r+"",void 0,Qs),$=(r,...t)=>{const i=r.length===1?r[0]:t.reduce(((s,e,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(e)+r[o+1]),r[0]);return new Ki(i,r,Qs)},po=(r,t)=>{if(Xs)r.adoptedStyleSheets=t.map((i=>i instanceof CSSStyleSheet?i:i.styleSheet));else for(const i of t){const s=document.createElement("style"),e=xs.litNonce;e!==void 0&&s.setAttribute("nonce",e),s.textContent=i.cssText,r.appendChild(s)}},Yi=Xs?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let i="";for(const s of t.cssRules)i+=s.cssText;return uo(i)})(r):r;/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const{is:to,defineProperty:eo,getOwnPropertyDescriptor:so,getOwnPropertyNames:io,getOwnPropertySymbols:ro,getPrototypeOf:oo}=Object,bs=globalThis,Bi=bs.trustedTypes,no=Bi?Bi.emptyScript:"",ao=bs.reactiveElementPolyfillSupport,Fe=(r,t)=>r,gs={toAttribute(r,t){switch(t){case Boolean:r=r?no:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let i=r;switch(t){case Boolean:i=r!==null;break;case Number:i=r===null?null:Number(r);break;case Object:case Array:try{i=JSON.parse(r)}catch{i=null}}return i}},Ws=(r,t)=>!to(r,t),qi={attribute:!0,type:String,converter:gs,reflect:!1,useDefault:!1,hasChanged:Ws};Symbol.metadata??=Symbol("metadata"),bs.litPropertyMetadata??=new WeakMap;let xe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=qi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){const s=Symbol(),e=this.getPropertyDescriptor(t,s,i);e!==void 0&&eo(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){const{get:e,set:o}=so(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:e,set(n){const l=e?.call(this);o?.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??qi}static _$Ei(){if(this.hasOwnProperty(Fe("elementProperties")))return;const t=oo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Fe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Fe("properties"))){const i=this.properties,s=[...io(i),...ro(i)];for(const e of s)this.createProperty(e,i[e])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[s,e]of i)this.elementProperties.set(s,e)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const e=this._$Eu(i,s);e!==void 0&&this._$Eh.set(e,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const e of s)i.unshift(Vi(e))}else t!==void 0&&i.push(Vi(t));return i}static _$Eu(t,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Jr(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ET(t,i){const s=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,s);if(e!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:gs).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,i){const s=this.constructor,e=s._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const o=s.getPropertyOptions(e),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:gs;this._$Em=e;const l=n.fromAttribute(i,o.type);this[e]=l??this._$Ej?.get(e)??l,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){const e=this.constructor,o=this[t];if(s??=e.getPropertyOptions(t),!((s.hasChanged??Ws)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:e,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),e===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,o]of this._$Ep)this[e]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[e,o]of s){const{wrapped:n}=o,l=this[e];n!==!0||this._$AL.has(e)||l===void 0||this.C(e,void 0,o,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};xe.elementStyles=[],xe.shadowRootOptions={mode:"open"},xe[Fe("elementProperties")]=new Map,xe[Fe("finalized")]=new Map,ao?.({ReactiveElement:xe}),(bs.reactiveElementVersions??=[]).push("2.1.1");/**
13
+ */const{is:fo,defineProperty:mo,getOwnPropertyDescriptor:bo,getOwnPropertyNames:go,getOwnPropertySymbols:vo,getPrototypeOf:yo}=Object,Ps=globalThis,Zi=Ps.trustedTypes,_o=Zi?Zi.emptyScript:"",wo=Ps.reactiveElementPolyfillSupport,ze=(r,t)=>r,$s={toAttribute(r,t){switch(t){case Boolean:r=r?_o:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let i=r;switch(t){case Boolean:i=r!==null;break;case Number:i=r===null?null:Number(r);break;case Object:case Array:try{i=JSON.parse(r)}catch{i=null}}return i}},Js=(r,t)=>!fo(r,t),Gi={attribute:!0,type:String,converter:$s,reflect:!1,useDefault:!1,hasChanged:Js};Symbol.metadata??=Symbol("metadata"),Ps.litPropertyMetadata??=new WeakMap;let Pe=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,i=Gi){if(i.state&&(i.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((i=Object.create(i)).wrapped=!0),this.elementProperties.set(t,i),!i.noAccessor){const s=Symbol(),e=this.getPropertyDescriptor(t,s,i);e!==void 0&&mo(this.prototype,t,e)}}static getPropertyDescriptor(t,i,s){const{get:e,set:o}=bo(this.prototype,t)??{get(){return this[i]},set(n){this[i]=n}};return{get:e,set(n){const l=e?.call(this);o?.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Gi}static _$Ei(){if(this.hasOwnProperty(ze("elementProperties")))return;const t=yo(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ze("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ze("properties"))){const i=this.properties,s=[...go(i),...vo(i)];for(const e of s)this.createProperty(e,i[e])}const t=this[Symbol.metadata];if(t!==null){const i=litPropertyMetadata.get(t);if(i!==void 0)for(const[s,e]of i)this.elementProperties.set(s,e)}this._$Eh=new Map;for(const[i,s]of this.elementProperties){const e=this._$Eu(i,s);e!==void 0&&this._$Eh.set(e,i)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const i=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const e of s)i.unshift(Yi(e))}else t!==void 0&&i.push(Yi(t));return i}static _$Eu(t,i){const s=i.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,i=this.constructor.elementProperties;for(const s of i.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return po(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,i,s){this._$AK(t,s)}_$ET(t,i){const s=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,s);if(e!==void 0&&s.reflect===!0){const o=(s.converter?.toAttribute!==void 0?s.converter:$s).toAttribute(i,s.type);this._$Em=t,o==null?this.removeAttribute(e):this.setAttribute(e,o),this._$Em=null}}_$AK(t,i){const s=this.constructor,e=s._$Eh.get(t);if(e!==void 0&&this._$Em!==e){const o=s.getPropertyOptions(e),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:$s;this._$Em=e;const l=n.fromAttribute(i,o.type);this[e]=l??this._$Ej?.get(e)??l,this._$Em=null}}requestUpdate(t,i,s){if(t!==void 0){const e=this.constructor,o=this[t];if(s??=e.getPropertyOptions(t),!((s.hasChanged??Js)(o,i)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,s))))return;this.C(t,i,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,i,{useDefault:s,reflect:e,wrapped:o},n){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??i??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(i=void 0),this._$AL.set(t,i)),e===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(i){Promise.reject(i)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,o]of this._$Ep)this[e]=o;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[e,o]of s){const{wrapped:n}=o,l=this[e];n!==!0||this._$AL.has(e)||l===void 0||this.C(e,void 0,o,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),this._$EO?.forEach((s=>s.hostUpdate?.())),this.update(i)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(i)}willUpdate(t){}_$AE(t){this._$EO?.forEach((i=>i.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((i=>this._$ET(i,this[i]))),this._$EM()}updated(t){}firstUpdated(t){}};Pe.elementStyles=[],Pe.shadowRootOptions={mode:"open"},Pe[ze("elementProperties")]=new Map,Pe[ze("finalized")]=new Map,wo?.({ReactiveElement:Pe}),(Ps.reactiveElementVersions??=[]).push("2.1.1");/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const lo={attribute:!0,type:String,converter:gs,reflect:!1,hasChanged:Ws},co=(r=lo,t,i)=>{const{kind:s,metadata:e}=i;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),s==="setter"&&((r=Object.create(r)).wrapped=!0),o.set(i.name,r),s==="accessor"){const{name:n}=i;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,r)},init(l){return l!==void 0&&this.C(n,void 0,r,l),l}}}if(s==="setter"){const{name:n}=i;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+s)};function a(r){return(t,i)=>typeof i=="object"?co(r,t,i):((s,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,s),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,i)}/**
17
+ */const xo={attribute:!0,type:String,converter:$s,reflect:!1,hasChanged:Js},Po=(r=xo,t,i)=>{const{kind:s,metadata:e}=i;let o=globalThis.litPropertyMetadata.get(e);if(o===void 0&&globalThis.litPropertyMetadata.set(e,o=new Map),s==="setter"&&((r=Object.create(r)).wrapped=!0),o.set(i.name,r),s==="accessor"){const{name:n}=i;return{set(l){const c=t.get.call(this);t.set.call(this,l),this.requestUpdate(n,c,r)},init(l){return l!==void 0&&this.C(n,void 0,r,l),l}}}if(s==="setter"){const{name:n}=i;return function(l){const c=this[n];t.call(this,l),this.requestUpdate(n,c,r)}}throw Error("Unsupported decorator location: "+s)};function a(r){return(t,i)=>typeof i=="object"?Po(r,t,i):((s,e,o)=>{const n=e.hasOwnProperty(o);return e.constructor.createProperty(o,s),n?Object.getOwnPropertyDescriptor(e,o):void 0})(r,t,i)}/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
@@ -22,58 +22,58 @@
22
22
  * @license
23
23
  * Copyright 2017 Google LLC
24
24
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Ks=(r,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,i),i);/**
25
+ */const ti=(r,t,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,i),i);/**
26
26
  * @license
27
27
  * Copyright 2017 Google LLC
28
28
  * SPDX-License-Identifier: BSD-3-Clause
29
- */function Kt(r,t){return(i,s,e)=>{const o=n=>n.renderRoot?.querySelector(r)??null;return Ks(i,s,{get(){return o(this)}})}}/**
29
+ */function Kt(r,t){return(i,s,e)=>{const o=n=>n.renderRoot?.querySelector(r)??null;return ti(i,s,{get(){return o(this)}})}}/**
30
30
  * @license
31
31
  * Copyright 2021 Google LLC
32
32
  * SPDX-License-Identifier: BSD-3-Clause
33
- */function Pe(r){return(t,i)=>{const{slot:s,selector:e}=r??{},o="slot"+(s?`[name=${s}]`:":not([name])");return Ks(t,i,{get(){const n=this.renderRoot?.querySelector(o),l=n?.assignedElements(r)??[];return e===void 0?l:l.filter((c=>c.matches(e)))}})}}/**
33
+ */function $e(r){return(t,i)=>{const{slot:s,selector:e}=r??{},o="slot"+(s?`[name=${s}]`:":not([name])");return ti(t,i,{get(){const n=this.renderRoot?.querySelector(o),l=n?.assignedElements(r)??[];return e===void 0?l:l.filter((c=>c.matches(e)))}})}}/**
34
34
  * @license
35
35
  * Copyright 2017 Google LLC
36
36
  * SPDX-License-Identifier: BSD-3-Clause
37
- */function at(r){return(t,i)=>{const{slot:s}=r??{},e="slot"+(s?`[name=${s}]`:":not([name])");return Ks(t,i,{get(){return this.renderRoot?.querySelector(e)?.assignedNodes(r)??[]}})}}/**
37
+ */function at(r){return(t,i)=>{const{slot:s}=r??{},e="slot"+(s?`[name=${s}]`:":not([name])");return ti(t,i,{get(){return this.renderRoot?.querySelector(e)?.assignedNodes(r)??[]}})}}/**
38
38
  * @license
39
39
  * Copyright 2017 Google LLC
40
40
  * SPDX-License-Identifier: BSD-3-Clause
41
- */const Ys=globalThis,vs=Ys.trustedTypes,Hi=vs?vs.createPolicy("lit-html",{createHTML:r=>r}):void 0,Wi="$lit$",Yt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ki="?"+Yt,ho=`<${Ki}>`,ne=document,ze=()=>ne.createComment(""),Re=r=>r===null||typeof r!="object"&&typeof r!="function",Zs=Array.isArray,uo=r=>Zs(r)||typeof r?.[Symbol.iterator]=="function",Xs=`[
42
- \f\r]`,Ue=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yi=/-->/g,Zi=/>/g,ae=RegExp(`>|${Xs}(?:([^\\s"'>=/]+)(${Xs}*=${Xs}*(?:[^
43
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Xi=/'/g,Gi=/"/g,Qi=/^(?:script|style|textarea|title)$/i,po=r=>(t,...i)=>({_$litType$:r,strings:t,values:i}),b=po(1),vt=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),Ji=new WeakMap,le=ne.createTreeWalker(ne,129);function tr(r,t){if(!Zs(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Hi!==void 0?Hi.createHTML(t):t}const fo=(r,t)=>{const i=r.length-1,s=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ue;for(let l=0;l<i;l++){const c=r[l];let h,u,d=-1,g=0;for(;g<c.length&&(n.lastIndex=g,u=n.exec(c),u!==null);)g=n.lastIndex,n===Ue?u[1]==="!--"?n=Yi:u[1]!==void 0?n=Zi:u[2]!==void 0?(Qi.test(u[2])&&(e=RegExp("</"+u[2],"g")),n=ae):u[3]!==void 0&&(n=ae):n===ae?u[0]===">"?(n=e??Ue,d=-1):u[1]===void 0?d=-2:(d=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?ae:u[3]==='"'?Gi:Xi):n===Gi||n===Xi?n=ae:n===Yi||n===Zi?n=Ue:(n=ae,e=void 0);const m=n===ae&&r[l+1].startsWith("/>")?" ":"";o+=n===Ue?c+ho:d>=0?(s.push(h),c.slice(0,d)+Wi+c.slice(d)+Yt+m):c+Yt+(d===-2?l:m)}return[tr(r,o+(r[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let Gs=class qr{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,u]=fo(t,i);if(this.el=qr.createElement(h,s),le.currentNode=this.el.content,i===2||i===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=le.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(Wi)){const g=u[n++],m=e.getAttribute(d).split(Yt),v=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:v[2],strings:m,ctor:v[1]==="."?bo:v[1]==="?"?go:v[1]==="@"?vo:ys}),e.removeAttribute(d)}else d.startsWith(Yt)&&(c.push({type:6,index:o}),e.removeAttribute(d));if(Qi.test(e.tagName)){const d=e.textContent.split(Yt),g=d.length-1;if(g>0){e.textContent=vs?vs.emptyScript:"";for(let m=0;m<g;m++)e.append(d[m],ze()),le.nextNode(),c.push({type:2,index:++o});e.append(d[g],ze())}}}else if(e.nodeType===8)if(e.data===Ki)c.push({type:2,index:o});else{let d=-1;for(;(d=e.data.indexOf(Yt,d+1))!==-1;)c.push({type:7,index:o}),d+=Yt.length-1}o++}}static createElement(t,i){const s=ne.createElement("template");return s.innerHTML=t,s}};function $e(r,t,i=r,s){if(t===vt)return t;let e=s!==void 0?i._$Co?.[s]:i._$Cl;const o=Re(t)?void 0:t._$litDirective$;return e?.constructor!==o&&(e?._$AO?.(!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,i,s)),s!==void 0?(i._$Co??=[])[s]=e:i._$Cl=e),e!==void 0&&(t=$e(r,e._$AS(r,t.values),e,s)),t}let mo=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??ne).importNode(i,!0);le.currentNode=e;let o=le.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Ce(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new yo(o,this,t)),this._$AV.push(h),c=s[++l]}n!==c?.index&&(o=le.nextNode(),n++)}return le.currentNode=ne,e}p(t){let i=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}};class Ce{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=$e(this,t,i),Re(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):uo(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&Re(this._$AH)?this._$AA.nextSibling.data=t:this.T(ne.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Gs.createElement(tr(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const o=new mo(e,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=Ji.get(t.strings);return i===void 0&&Ji.set(t.strings,i=new Gs(t)),i}k(t){Zs(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Ce(this.O(ze()),this.O(ze()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class ys{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,o){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(o===void 0)t=$e(this,t,i,0),n=!Re(t)||t!==this._$AH&&t!==vt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=$e(this,l[s+c],i,c),h===vt&&(h=this._$AH[c]),n||=!Re(h)||h!==this._$AH[c],h===S?t=S:t!==S&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class bo extends ys{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class go extends ys{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class vo extends ys{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){if((t=$e(this,t,i,0)??S)===vt)return;const s=this._$AH,e=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==S&&(s===S||e);e&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class yo{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const wo={I:Ce},_o=Ys.litHtmlPolyfillSupport;_o?.(Gs,Ce),(Ys.litHtmlVersions??=[]).push("3.3.1");const xo=(r,t,i)=>{const s=i?.renderBefore??t;let e=s._$litPart$;if(e===void 0){const o=i?.renderBefore??null;s._$litPart$=e=new Ce(t.insertBefore(ze(),o),o,void 0,i??{})}return e._$AI(r),e};/**
41
+ */const ei=globalThis,Cs=ei.trustedTypes,Xi=Cs?Cs.createPolicy("lit-html",{createHTML:r=>r}):void 0,Qi="$lit$",Yt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ji="?"+Yt,$o=`<${Ji}>`,ne=document,Re=()=>ne.createComment(""),Ue=r=>r===null||typeof r!="object"&&typeof r!="function",si=Array.isArray,Co=r=>si(r)||typeof r?.[Symbol.iterator]=="function",ii=`[
42
+ \f\r]`,Ve=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,tr=/-->/g,er=/>/g,ae=RegExp(`>|${ii}(?:([^\\s"'>=/]+)(${ii}*=${ii}*(?:[^
43
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),sr=/'/g,ir=/"/g,rr=/^(?:script|style|textarea|title)$/i,So=r=>(t,...i)=>({_$litType$:r,strings:t,values:i}),v=So(1),vt=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),or=new WeakMap,le=ne.createTreeWalker(ne,129);function nr(r,t){if(!si(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Xi!==void 0?Xi.createHTML(t):t}const Ao=(r,t)=>{const i=r.length-1,s=[];let e,o=t===2?"<svg>":t===3?"<math>":"",n=Ve;for(let l=0;l<i;l++){const c=r[l];let h,u,d=-1,g=0;for(;g<c.length&&(n.lastIndex=g,u=n.exec(c),u!==null);)g=n.lastIndex,n===Ve?u[1]==="!--"?n=tr:u[1]!==void 0?n=er:u[2]!==void 0?(rr.test(u[2])&&(e=RegExp("</"+u[2],"g")),n=ae):u[3]!==void 0&&(n=ae):n===ae?u[0]===">"?(n=e??Ve,d=-1):u[1]===void 0?d=-2:(d=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?ae:u[3]==='"'?ir:sr):n===ir||n===sr?n=ae:n===tr||n===er?n=Ve:(n=ae,e=void 0);const f=n===ae&&r[l+1].startsWith("/>")?" ":"";o+=n===Ve?c+$o:d>=0?(s.push(h),c.slice(0,d)+Qi+c.slice(d)+Yt+f):c+Yt+(d===-2?l:f)}return[nr(r,o+(r[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]};let ri=class io{constructor({strings:t,_$litType$:i},s){let e;this.parts=[];let o=0,n=0;const l=t.length-1,c=this.parts,[h,u]=Ao(t,i);if(this.el=io.createElement(h,s),le.currentNode=this.el.content,i===2||i===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(e=le.nextNode())!==null&&c.length<l;){if(e.nodeType===1){if(e.hasAttributes())for(const d of e.getAttributeNames())if(d.endsWith(Qi)){const g=u[n++],f=e.getAttribute(d).split(Yt),m=/([.?@])?(.*)/.exec(g);c.push({type:1,index:o,name:m[2],strings:f,ctor:m[1]==="."?Do:m[1]==="?"?Oo:m[1]==="@"?Lo:Ss}),e.removeAttribute(d)}else d.startsWith(Yt)&&(c.push({type:6,index:o}),e.removeAttribute(d));if(rr.test(e.tagName)){const d=e.textContent.split(Yt),g=d.length-1;if(g>0){e.textContent=Cs?Cs.emptyScript:"";for(let f=0;f<g;f++)e.append(d[f],Re()),le.nextNode(),c.push({type:2,index:++o});e.append(d[g],Re())}}}else if(e.nodeType===8)if(e.data===Ji)c.push({type:2,index:o});else{let d=-1;for(;(d=e.data.indexOf(Yt,d+1))!==-1;)c.push({type:7,index:o}),d+=Yt.length-1}o++}}static createElement(t,i){const s=ne.createElement("template");return s.innerHTML=t,s}};function Ce(r,t,i=r,s){if(t===vt)return t;let e=s!==void 0?i._$Co?.[s]:i._$Cl;const o=Ue(t)?void 0:t._$litDirective$;return e?.constructor!==o&&(e?._$AO?.(!1),o===void 0?e=void 0:(e=new o(r),e._$AT(r,i,s)),s!==void 0?(i._$Co??=[])[s]=e:i._$Cl=e),e!==void 0&&(t=Ce(r,e._$AS(r,t.values),e,s)),t}let ko=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??ne).importNode(i,!0);le.currentNode=e;let o=le.nextNode(),n=0,l=0,c=s[0];for(;c!==void 0;){if(n===c.index){let h;c.type===2?h=new Se(o,o.nextSibling,this,t):c.type===1?h=new c.ctor(o,c.name,c.strings,this,t):c.type===6&&(h=new Eo(o,this,t)),this._$AV.push(h),c=s[++l]}n!==c?.index&&(o=le.nextNode(),n++)}return le.currentNode=ne,e}p(t){let i=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++}};class Se{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return i!==void 0&&t?.nodeType===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Ce(this,t,i),Ue(t)?t===S||t==null||t===""?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==vt&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Co(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==S&&Ue(this._$AH)?this._$AA.nextSibling.data=t:this.T(ne.createTextNode(t)),this._$AH=t}$(t){const{values:i,_$litType$:s}=t,e=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=ri.createElement(nr(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else{const o=new ko(e,this),n=o.u(this.options);o.p(i),this.T(n),this._$AH=o}}_$AC(t){let i=or.get(t.strings);return i===void 0&&or.set(t.strings,i=new ri(t)),i}k(t){si(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const o of t)e===i.length?i.push(s=new Se(this.O(Re()),this.O(Re()),this,this.options)):s=i[e],s._$AI(o),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class Ss{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,o){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=S}_$AI(t,i=this,s,e){const o=this.strings;let n=!1;if(o===void 0)t=Ce(this,t,i,0),n=!Ue(t)||t!==this._$AH&&t!==vt,n&&(this._$AH=t);else{const l=t;let c,h;for(t=o[0],c=0;c<o.length-1;c++)h=Ce(this,l[s+c],i,c),h===vt&&(h=this._$AH[c]),n||=!Ue(h)||h!==this._$AH[c],h===S?t=S:t!==S&&(t+=(h??"")+o[c+1]),this._$AH[c]=h}n&&!e&&this.j(t)}j(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Do extends Ss{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===S?void 0:t}}class Oo extends Ss{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==S)}}class Lo extends Ss{constructor(t,i,s,e,o){super(t,i,s,e,o),this.type=5}_$AI(t,i=this){if((t=Ce(this,t,i,0)??S)===vt)return;const s=this._$AH,e=t===S&&s!==S||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==S&&(s===S||e);e&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Eo{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Ce(this,t)}}const To={I:Se},No=ei.litHtmlPolyfillSupport;No?.(ri,Se),(ei.litHtmlVersions??=[]).push("3.3.1");const Mo=(r,t,i)=>{const s=i?.renderBefore??t;let e=s._$litPart$;if(e===void 0){const o=i?.renderBefore??null;s._$litPart$=e=new Se(t.insertBefore(Re(),o),o,void 0,i??{})}return e._$AI(r),e};/**
44
44
  * @license
45
45
  * Copyright 2020 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
- */const{I:Po}=wo,$o=r=>r.strings===void 0,er=()=>document.createComment(""),Ve=(r,t,i)=>{const s=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(i===void 0){const o=s.insertBefore(er(),e),n=s.insertBefore(er(),e);i=new Po(o,n,r,r.options)}else{const o=i._$AB.nextSibling,n=i._$AM,l=n!==r;if(l){let c;i._$AQ?.(r),i._$AM=r,i._$AP!==void 0&&(c=r._$AU)!==n._$AU&&i._$AP(c)}if(o!==e||l){let c=i._$AA;for(;c!==o;){const h=c.nextSibling;s.insertBefore(c,e),c=h}}}return i},ce=(r,t,i=r)=>(r._$AI(t,i),r),Co={},So=(r,t=Co)=>r._$AH=t,Ao=r=>r._$AH,Qs=r=>{r._$AR(),r._$AA.remove()};/**
47
+ */const{I:Io}=To,jo=r=>r.strings===void 0,ar=()=>document.createComment(""),Be=(r,t,i)=>{const s=r._$AA.parentNode,e=t===void 0?r._$AB:t._$AA;if(i===void 0){const o=s.insertBefore(ar(),e),n=s.insertBefore(ar(),e);i=new Io(o,n,r,r.options)}else{const o=i._$AB.nextSibling,n=i._$AM,l=n!==r;if(l){let c;i._$AQ?.(r),i._$AM=r,i._$AP!==void 0&&(c=r._$AU)!==n._$AU&&i._$AP(c)}if(o!==e||l){let c=i._$AA;for(;c!==o;){const h=c.nextSibling;s.insertBefore(c,e),c=h}}}return i},ce=(r,t,i=r)=>(r._$AI(t,i),r),Fo={},zo=(r,t=Fo)=>r._$AH=t,Ro=r=>r._$AH,oi=r=>{r._$AR(),r._$AA.remove()};/**
48
48
  * @license
49
49
  * Copyright 2017 Google LLC
50
50
  * SPDX-License-Identifier: BSD-3-Clause
51
- */const he={ATTRIBUTE:1,CHILD:2},Zt=r=>(...t)=>({_$litDirective$:r,values:t});let Se=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this._$Ct=t,this._$AM=i,this._$Ci=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/**
51
+ */const he={ATTRIBUTE:1,CHILD:2},Zt=r=>(...t)=>({_$litDirective$:r,values:t});let Ae=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,s){this._$Ct=t,this._$AM=i,this._$Ci=s}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};/**
52
52
  * @license
53
53
  * Copyright 2017 Google LLC
54
54
  * SPDX-License-Identifier: BSD-3-Clause
55
- */const Be=(r,t)=>{const i=r._$AN;if(i===void 0)return!1;for(const s of i)s._$AO?.(t,!1),Be(s,t);return!0},ws=r=>{let t,i;do{if((t=r._$AM)===void 0)break;i=t._$AN,i.delete(r),r=t}while(i?.size===0)},sr=r=>{for(let t;t=r._$AM;r=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(r))break;i.add(r),Do(t)}};function ko(r){this._$AN!==void 0?(ws(this),this._$AM=r,sr(this)):this._$AM=r}function Oo(r,t=!1,i=0){const s=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(s))for(let o=i;o<s.length;o++)Be(s[o],!1),ws(s[o]);else s!=null&&(Be(s,!1),ws(s));else Be(this,r)}const Do=r=>{r.type==he.CHILD&&(r._$AP??=Oo,r._$AQ??=ko)};class Js extends Se{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,s){super._$AT(t,i,s),sr(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(Be(this,t),ws(this))}setValue(t){if($o(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
55
+ */const qe=(r,t)=>{const i=r._$AN;if(i===void 0)return!1;for(const s of i)s._$AO?.(t,!1),qe(s,t);return!0},As=r=>{let t,i;do{if((t=r._$AM)===void 0)break;i=t._$AN,i.delete(r),r=t}while(i?.size===0)},lr=r=>{for(let t;t=r._$AM;r=t){let i=t._$AN;if(i===void 0)t._$AN=i=new Set;else if(i.has(r))break;i.add(r),Bo(t)}};function Uo(r){this._$AN!==void 0?(As(this),this._$AM=r,lr(this)):this._$AM=r}function Vo(r,t=!1,i=0){const s=this._$AH,e=this._$AN;if(e!==void 0&&e.size!==0)if(t)if(Array.isArray(s))for(let o=i;o<s.length;o++)qe(s[o],!1),As(s[o]);else s!=null&&(qe(s,!1),As(s));else qe(this,r)}const Bo=r=>{r.type==he.CHILD&&(r._$AP??=Vo,r._$AQ??=Uo)};class ni extends Ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,i,s){super._$AT(t,i,s),lr(this),this.isConnected=t._$AU}_$AO(t,i=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),i&&(qe(this,t),As(this))}setValue(t){if(jo(this._$Ct))this._$Ct._$AI(t,this);else{const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0)}}disconnected(){}reconnected(){}}/**
56
56
  * @license
57
57
  * Copyright 2017 Google LLC
58
58
  * SPDX-License-Identifier: BSD-3-Clause
59
- */const ti=globalThis;let w=class extends xe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=xo(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};w._$litElement$=!0,w.finalized=!0,ti.litElementHydrateSupport?.({LitElement:w});const Lo=ti.litElementPolyfillSupport;Lo?.({LitElement:w}),(ti.litElementVersions??=[]).push("4.2.1");const U=class U{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default",this.keepAlive=t.keepAlive||!1}set token(t){if(this._token=t,!t){U.tokens.delete(this.serviceURL);return}U.invalidTokens.includes(t)||U.tokens.set(this.serviceURL,t)}get token(){return U.invalidTokens.includes(this._token)?U.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(U.invalidTokens.includes(t)||(U.invalidTokens.push(t),this.token=null))}async handleResult(t,i){U.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const s=t.headers.get("content-type")?.toLowerCase(),e=t.status;let o={};if(!s||s.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&tt.isObject(o)&&(o._sonic_http_response_=t),e===498&&!U.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),i.apiMethod==="get"?o=await this[i.apiMethod](i.path,i.additionalHeaders):o=await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders)),ps("sonic-api").lastResponse.set({http:t,processed:o}),o}async auth(){if(this.token)return;if(U.tokens.has(this.serviceURL)){this.token=U.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const i=new URL(this.serviceURL),s=i.protocol+"//"+i.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:s}),{headers:t,credentials:this.credentials,keepalive:this.keepAlive});try{const o=await e.json();o.token?this.token=o.token:U.failledTokenUpdates.set(this.serviceURL,!0)}catch{U.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,i){const s=k.get(t),e=new URLSearchParams(i.split("?")[1]||""),o=s.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,u=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),u++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),u++),u>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[d,g]of e.entries()){const m=g.split(",").map(v=>v.trim());for(const v of m)for(const y of n)if(typeof y!="object")isNaN(+y)?y.toString().toLowerCase().includes(g.toLowerCase())&&l.push(y):y===g&&l.push(y);else{const $=y;if(!$[d])continue;isNaN(+$[d])?$[d]?.toString().toLowerCase().includes(v.toLowerCase())&&l.push(y):$[d]===v&&l.push(y)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!U.firstCallDoneFlags.has(this.serviceURL))U.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const i=()=>{[void 0,"loading"].includes(U.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):t(!0)};i()}})}async get(t,i){await this.firstCallDone(),this.blockUntilDone&&U.firstCallDoneFlags.set(this.serviceURL,"loading");const s=/dataProvider\((.*?)\)(.*?)$/;if(s.test(t)){const h=t.match(s);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:i},o=await this.createHeaders(i),n=this.computeURL(t),l=JSON.stringify({url:n,headers:o});if(!U.loadingGetPromises.has(l)){const h=new Promise(async u=>{try{const d=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),g=await this.handleResult(d,e);u(g)}catch{u(null)}});U.loadingGetPromises.set(l,h)}const c=await U.loadingGetPromises.get(l);return U.loadingGetPromises.delete(l),c}async createHeaders(t){await this.auth();const i={};return this.token&&(i.Authorization="Bearer "+this.token),i["Accept-Language"]=H.getLanguage(),t&&Object.assign(i,t),i}computeURL(t,i={}){let s="";t.startsWith("http")?s=t:s=this.serviceURL+"/"+t,s.startsWith("http")||(s=window.location.origin+s);const e=new URL(s);for(const o in i)e.searchParams.set(o,i[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,i,s="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:JSON.stringify(i),keepalive:this.keepAlive});return await this.handleResult(l,o)}async submitFormData(t,i,s="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json";const l=new FormData,c=i;for(const u in c)l.set(u,c[u]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:l,keepalive:this.keepAlive});return await this.handleResult(h,o)}async put(t,i,s){return this.send(t,i,"PUT",s)}async post(t,i,s){return this.send(t,i,"POST",s)}async patch(t,i,s){return this.send(t,i,"PATCH",s)}async delete(t,i,s){return this.send(t,i,"delete",s)}};U.loadingGetPromises=new Map,U.tokens=new Map,U.invalidTokens=[],U.failledTokenUpdates=new Map,U.firstCallDoneFlags=new Map;let Ae=U;H.getApiConfiguration(document.body||document.documentElement);const Eo=async(r,t)=>{};/**
59
+ */const ai=globalThis;let x=class extends Pe{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Mo(i,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return vt}};x._$litElement$=!0,x.finalized=!0,ai.litElementHydrateSupport?.({LitElement:x});const qo=ai.litElementPolyfillSupport;qo?.({LitElement:x}),(ai.litElementVersions??=[]).push("4.2.1");function Ho(r){if(r==null||typeof r!="object"||Array.isArray(r))return r;const t={...r};return delete t._sonic_http_response_,t}const U=class U{constructor(t){this.addHTTPResponse=!1,this.cache="default",this.isServiceSimulated=!1,this.blockUntilDone=!1,this.keepAlive=!1,this.serviceURL=t.serviceURL,this.blockUntilDone=t.blockUntilDone||!1,this.serviceURL=="publisher://"&&(this.isServiceSimulated=!0),this.serviceURL||(this.serviceURL=document.location.origin),this.userName=t.userName,this.password=t.password,t.token&&(this.token=t.token),this.tokenProvider=t.tokenProvider,this.authToken=t.authToken,this.addHTTPResponse=t.addHTTPResponse||!1,this.credentials=t.credentials,this.cache=t.cache||"default",this.keepAlive=t.keepAlive||!1}set token(t){if(this._token=t,!t){U.tokens.delete(this.serviceURL);return}U.invalidTokens.includes(t)||U.tokens.set(this.serviceURL,t)}get token(){return U.invalidTokens.includes(this._token)?U.tokens.get(this.serviceURL):this._token}handleInvalidToken(t){t&&(U.invalidTokens.includes(t)||(U.invalidTokens.push(t),this.token=null))}async handleResult(t,i){U.firstCallDoneFlags.set(this.serviceURL,"done"),this.lastResult=t;const s=t.headers.get("content-type")?.toLowerCase(),e=t.status;let o={};if(!s||s.indexOf("text/")==0)o={text:await t.text()};else try{o=await t.json()}catch{o={}}return this.addHTTPResponse&&tt.isObject(o)&&(o._sonic_http_response_=t),e===498&&!U.failledTokenUpdates.has(this.serviceURL)&&(this.handleInvalidToken(this.token),i.apiMethod==="get"?o=await this[i.apiMethod](i.path,i.additionalHeaders):o=await this[i.apiMethod](i.path,i.data,i.method,i.additionalHeaders)),_s("sonic-api").lastResponse.set({http:t,processed:o}),o}async auth(){if(this.token)return;if(U.tokens.has(this.serviceURL)){this.token=U.tokens.get(this.serviceURL);return}if(!this.tokenProvider)return;let t={};this.userName&&this.password?t={Authorization:"Basic "+window.btoa(unescape(encodeURIComponent(this.userName+":"+this.password)))}:this.authToken&&(t={Authorization:"Bearer "+this.authToken});const i=new URL(this.serviceURL),s=i.protocol+"//"+i.host,e=await fetch(this.computeURL(this.tokenProvider,{serviceHost:s}),{headers:t,credentials:this.credentials,keepalive:this.keepAlive});try{const o=await e.json();o.token?this.token=o.token:U.failledTokenUpdates.set(this.serviceURL,!0)}catch{U.failledTokenUpdates.set(this.serviceURL,!0)}}async localGet(t,i){const s=k.get(t),e=new URLSearchParams(i.split("?")[1]||""),o=s.get();let n=[];Array.isArray(o)?n=o:n=[o];const l=[];let c=Number.POSITIVE_INFINITY,h=0,u=0;if(e.has("limit")&&(c=parseInt(e.get("limit")||"0"),u++),e.has("offset")&&(h=parseInt(e.get("offset")||"0"),u++),u>0&&(e.delete("limit"),e.delete("offset")),e.size===0)return n.slice(h,h+c);for(const[d,g]of e.entries()){const f=g.split(",").map(m=>m.trim());for(const m of f)for(const y of n)if(typeof y!="object")isNaN(+y)?y.toString().toLowerCase().includes(g.toLowerCase())&&l.push(y):y===g&&l.push(y);else{const _=y;if(!_[d])continue;isNaN(+_[d])?_[d]?.toString().toLowerCase().includes(m.toLowerCase())&&l.push(y):_[d]===m&&l.push(y)}}return l.slice(h,h+c)}firstCallDone(){return new Promise(t=>{if(!U.firstCallDoneFlags.has(this.serviceURL))U.firstCallDoneFlags.set(this.serviceURL,"loading"),t(!0);else{const i=()=>{[void 0,"loading"].includes(U.firstCallDoneFlags.get(this.serviceURL))?window.requestAnimationFrame(i):t(!0)};i()}})}async get(t,i){await this.firstCallDone(),this.blockUntilDone&&U.firstCallDoneFlags.set(this.serviceURL,"loading");const s=/dataProvider\((.*?)\)(.*?)$/;if(s.test(t)){const h=t.match(s);if(!h)throw new Error("dataProvider path is not valid");return await this.localGet(h[1],h[2])}const e={apiMethod:"get",path:t,additionalHeaders:i},o=await this.createHeaders(i),n=this.computeURL(t),l=JSON.stringify({url:n,headers:o});if(!U.loadingGetPromises.has(l)){const h=new Promise(async u=>{try{const d=await fetch(n,{headers:o,credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),g=await this.handleResult(d,e);u(g)}catch{u(null)}});U.loadingGetPromises.set(l,h)}const c=await U.loadingGetPromises.get(l);return U.loadingGetPromises.delete(l),c}async getDetailed(t,i){const s=/dataProvider\((.*?)\)(.*?)$/.test(t),e=await this.get(t,i);if(e==null)return;const o=Ho(e),n=this.computeURL(t);if(s)return{request:new Request(n,{method:"GET"}),result:o};const l=await this.createHeaders(i);return{request:new Request(n,{method:"GET",headers:new Headers(l),credentials:this.credentials,cache:this.cache,keepalive:this.keepAlive}),response:this.lastResult,result:o}}async createHeaders(t){await this.auth();const i={};return this.token&&(i.Authorization="Bearer "+this.token),i["Accept-Language"]=H.getLanguage(),t&&Object.assign(i,t),i}computeURL(t,i={}){let s="";t.startsWith("http")?s=t:s=this.serviceURL+"/"+t,s.startsWith("http")||(s=window.location.origin+s);const e=new URL(s);for(const o in i)e.searchParams.set(o,i[o]);return e.toString().replace(/([^(https?:)])\/{2,}/g,"$1/")}async send(t,i,s="POST",e){const o={apiMethod:"send",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json",n["Content-Type"]="application/json";const l=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:JSON.stringify(i),keepalive:this.keepAlive});return await this.handleResult(l,o)}async submitFormData(t,i,s="POST",e){const o={apiMethod:"submitFormData",path:t,additionalHeaders:e,method:s,data:i},n=await this.createHeaders(e);n.Accept="application/json";const l=new FormData,c=i;for(const u in c)l.set(u,c[u]);const h=await fetch(this.computeURL(t),{headers:n,credentials:this.credentials,method:s,body:l,keepalive:this.keepAlive});return await this.handleResult(h,o)}async put(t,i,s){return this.send(t,i,"PUT",s)}async post(t,i,s){return this.send(t,i,"POST",s)}async patch(t,i,s){return this.send(t,i,"PATCH",s)}async delete(t,i,s){return this.send(t,i,"delete",s)}};U.loadingGetPromises=new Map,U.tokens=new Map,U.invalidTokens=[],U.failledTokenUpdates=new Map,U.firstCallDoneFlags=new Map;let de=U;H.getApiConfiguration(document.body||document.documentElement);const Wo=async(r,t)=>{};/**
60
60
  * @license
61
61
  * Copyright 2017 Google LLC
62
62
  * SPDX-License-Identifier: BSD-3-Clause
63
- */let ei=class extends Se{constructor(t){if(super(t),this.it=S,t.type!==he.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===S||t==null)return this._t=void 0,this.it=t;if(t===vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};ei.directiveName="unsafeHTML",ei.resultType=1;const F=Zt(ei),si=new Map,ir=r=>{if(!r)return null;const t=H.getApiConfiguration(r),i=H.getAncestorAttributeValue(r,"wordingProvider"),s=H.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:i,wordingVersionProvider:s};let o=null;for(const[n,l]of si)if(tt.deepEqual(n,e)){o=l;break}return o||(o={api:new Ae(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:s,apiCallKey:e},si.set(e,o)),o},rr="",B=class B extends Js{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=i=>{const s=this.useUnsafeHTML?F(i):i;this.setValue(s)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,i=!1){return this.useUnsafeHTML=i,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),vt}static async callApi(t,i,s=!0,e){if(await k.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,Us(B.reloadWordings);const u=Object.keys(B.publisher.get());for(const d of u)B.publisher.get()[d]===rr&&delete B.publisher[d]}if(t){const u=H.getAncestorAttributeValue(t,"wordingVersionProvider");u&&ps(u).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+i]!=null;const n=e||ir(t);if(!n)return;if(o&&i!==""){n.translatedKeys.add(i);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&s){window.setTimeout(async()=>{B.callApi(null,i,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+i].get()!=null,!o&&i!==""&&(n.keysToTranslate.add(i),B.publisher["wording_"+i].set(rr)),l!==n.callIndex)return;const u=Array.from(n.keysToTranslate);if(!u.length)return;const d=c.split("?"),g=d.shift(),m=(d.length>0?d.join("?")+"&":"")+"labels[]="+u.join("&labels[]="),v=g+"?"+m;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const y=await h.get(v);for(const $ in y)B.publisher["wording_"+$].set(y[$])})}static reloadWordings(){for(const t of si.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const i=ir(t),s=o=>{};if(!i)return s;if(B.versionProviderHandlers.has(i))return B.versionProviderHandlers.get(i)||s;const e=function(o){if(!i.wordingVersionProvider)return;const l=B.publisher.get().__wording_versions__??[];if(o==null)return;const c=l.find(h=>h.serviceURL===i.api.serviceURL)||{serviceURL:i.api.serviceURL,version:0};l.includes(c)||l.push(c),o!==c.version&&(c.version=o,B.publisher.set({__wording_versions__:l}),B.reloadWordings())};return B.versionProviderHandlers.set(i,e),e}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=k.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let ke=B;const No=Zt(ke);var To=Object.defineProperty,Io=Object.getOwnPropertyDescriptor,kt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Io(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&&To(t,i,e),e};let _s=!1,ii=new Set;const X=(r,t)=>{var e;const i=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return H.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(u=>u.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const u of h)if(l&&u.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),ke.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const n=this.debug.style;n.position="fixed",n.top="0",n.right="0",n.margin="auto",n.borderRadius=".7rem",n.backgroundColor="#0f1729",n.color="#c5d4f9",n.padding="16px 16px",n.margin="16px 16px",n.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",n.overflowY="auto",n.zIndex="99999999",n.maxHeight="calc(100vh - 32px)",n.fontFamily="Consolas, monospace",n.maxWidth="min(50vw,25rem)",n.fontSize="12px",n.minWidth="300px",n.overflowWrap="break-word",n.resize="vertical"}this.addEventListener("click",n=>{n.ctrlKey&&(n.preventDefault(),_s=!_s)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{_s||this.removeDebugger(),document.body.appendChild(this.debug),ii.add(this.debug)}),this.addEventListener("mouseout",()=>{_s||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
63
+ */let li=class extends Ae{constructor(t){if(super(t),this.it=S,t.type!==he.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===S||t==null)return this._t=void 0,this.it=t;if(t===vt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};li.directiveName="unsafeHTML",li.resultType=1;const F=Zt(li),ci=new Map,cr=r=>{if(!r)return null;const t=H.getApiConfiguration(r),i=H.getAncestorAttributeValue(r,"wordingProvider"),s=H.getAncestorAttributeValue(r,"wordingVersionProvider"),e={apiConfiguration:t,wordingProvider:i,wordingVersionProvider:s};let o=null;for(const[n,l]of ci)if(tt.deepEqual(n,e)){o=l;break}return o||(o={api:new de(t),keysToTranslate:new Set,translatedKeys:new Set,wordingProvider:i,callIndex:0,wordingVersionProvider:s,apiCallKey:e},ci.set(e,o)),o},hr="",B=class B extends ni{constructor(t){super(t),this.useUnsafeHTML=!1,this.onAssign=i=>{const s=this.useUnsafeHTML?F(i):i;this.setValue(s)},this.node=t.options.host}unsubscribe(){B.publisher["wording_"+this.key].offAssign(this.onAssign)}render(t,i=!1){return this.useUnsafeHTML=i,this.key!==t&&(this.key=t,this.isConnected&&this.subscribe(t)),vt}static async callApi(t,i,s=!0,e){if(await k.getInstance().isLocalStrorageReady,B.firstCall){B.firstCall=!1,Ys(B.reloadWordings);const u=Object.keys(B.publisher.get());for(const d of u)B.publisher.get()[d]===hr&&delete B.publisher[d]}if(t){const u=H.getAncestorAttributeValue(t,"wordingVersionProvider");u&&_s(u).onAssign(B.handleVersionProvider(t))}let o=B.publisher.get()["wording_"+i]!=null;const n=e||cr(t);if(!n)return;if(o&&i!==""){n.translatedKeys.add(i);return}n.callIndex++;const l=n.callIndex,c=n.wordingProvider??"";if(!c&&s){window.setTimeout(async()=>{B.callApi(null,i,!1,n)},1e3);return}const h=n.api;window.queueMicrotask(async()=>{if(o=B.publisher["wording_"+i].get()!=null,!o&&i!==""&&(n.keysToTranslate.add(i),B.publisher["wording_"+i].set(hr)),l!==n.callIndex)return;const u=Array.from(n.keysToTranslate);if(!u.length)return;const d=c.split("?"),g=d.shift(),f=(d.length>0?d.join("?")+"&":"")+"labels[]="+u.join("&labels[]="),m=g+"?"+f;n.translatedKeys=new Set([...n.translatedKeys,...n.keysToTranslate]),n.keysToTranslate.clear();const y=await h.get(m);for(const _ in y)B.publisher["wording_"+_].set(y[_])})}static reloadWordings(){for(const t of ci.values())t.keysToTranslate=new Set(t.translatedKeys),t.keysToTranslate.size>0&&B.callApi(null,"",!1,t)}static handleVersionProvider(t){const i=cr(t),s=o=>{};if(!i)return s;if(B.versionProviderHandlers.has(i))return B.versionProviderHandlers.get(i)||s;const e=function(o){if(!i.wordingVersionProvider)return;const l=B.publisher.get().__wording_versions__??[];if(o==null)return;const c=l.find(h=>h.serviceURL===i.api.serviceURL)||{serviceURL:i.api.serviceURL,version:0};l.includes(c)||l.push(c),o!==c.version&&(c.version=o,B.publisher.set({__wording_versions__:l}),B.reloadWordings())};return B.versionProviderHandlers.set(i,e),e}subscribe(t){this.unsubscribe(),B.publisher["wording_"+t].onAssign(this.onAssign),B.callApi(this.node,t)}disconnected(){this.unsubscribe()}reconnected(){this.key&&this.subscribe(this.key)}};B.publisher=k.get("sonic-wording",{localStorageMode:"enabled"}),B.firstCall=!0,B.versionProviderHandlers=new Map;let ke=B;const Ko=Zt(ke);var Yo=Object.defineProperty,Zo=Object.getOwnPropertyDescriptor,kt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zo(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&&Yo(t,i,e),e};let ks=!1,hi=new Set;const Q=(r,t)=>{var e;const i=(e=class extends r{constructor(...n){super(),this.collectDependenciesVersion=0,this.displayContents=!1,this.noAutoFill=!1,this.forceAutoFill=!1,this.renderOnPropsInternalChange=!1,this.noShadowDom=null,this.propertyMap=null,this.title="",this.dataProvider=null,this.bindPublisher=null,this._props=null,this.shouldRenderLazy=!0,this.defferedDebug=null,this.debug=null,this.onAssign=l=>{this.props=l}}hasAncestorAttribute(n){return this.getAncestorAttributeValue(n)!=null}getAncestorAttributeValue(n){return H.getAncestorAttributeValue(this,n)}get props(){return this._props!==null||!this.publisher?this._props:this.publisher.get()}set props(n){typeof n=="string"&&["{","["].includes(n.trim().charAt(0))&&(n=JSON.parse(n)),n!=this._props&&(this._props=n,this.publisher&&this.publisher.get()!=n&&this.publisher.set(n),this.requestUpdate())}updated(n){super.updated(n);const c=[...(this.shadowRoot||this).children].filter(u=>u.tagName!="STYLE"),h=this.displayContents?"contents":c.length==0?"none":null;h?this.style.display=h:this.style.removeProperty("display")}connectedCallback(){if(e.instanceCounter++,this.hasAttribute("lazyRendering")){const n={root:null,threshold:.9};let l=!0;const c=new IntersectionObserver(h=>{for(const u of h)if(l&&u.isIntersecting){l=!1,c.disconnect(),this.initWording(),this.shouldRenderLazy=!1,this.startPublisher();break}},n);c.observe(this)}else this.initWording(),this.shouldRenderLazy=!1;this.initPublisher(),this.addDebugger(),super.connectedCallback()}disconnectedCallback(){this.removeDebugger(),super.disconnectedCallback(),this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate)),ke.publisher.stopTemplateFilling(this),this.onAssign&&this.publisher?.offAssign(this.onAssign)}addDebugger(){if(this.hasAttribute("debug")&&!this.defferedDebug){if(!this.debug){this.debug=document.createElement("div");const n=this.debug.style;n.position="fixed",n.top="0",n.right="0",n.margin="auto",n.borderRadius=".7rem",n.backgroundColor="#0f1729",n.color="#c5d4f9",n.padding="16px 16px",n.margin="16px 16px",n.boxShadow="0 10px 30px -18px rgba(0,0,0,.3)",n.overflowY="auto",n.zIndex="99999999",n.maxHeight="calc(100vh - 32px)",n.fontFamily="Consolas, monospace",n.maxWidth="min(50vw,25rem)",n.fontSize="12px",n.minWidth="300px",n.overflowWrap="break-word",n.resize="vertical"}this.addEventListener("click",n=>{n.ctrlKey&&(n.preventDefault(),ks=!ks)}),this.dataProvider&&(window[this.dataProvider]=this.publisher),this.addEventListener("mouseover",()=>{ks||this.removeDebugger(),document.body.appendChild(this.debug),hi.add(this.debug)}),this.addEventListener("mouseout",()=>{ks||this.removeDebugger()}),this.publisher?.onInternalMutation(()=>{this.debug.innerHTML=`🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
64
64
  <div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
65
65
  Variable disponible dans la console<br>
66
66
  ctrl + Clique : épingler / désépingler
67
67
  </div>
68
- <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){ii.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),ii=new Set}getApiConfiguration(){return H.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&ke.callApi(this,l.substring(8));ke.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return fs.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=k.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=tt.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return kt([a({type:Number})],i.prototype,"collectDependenciesVersion",2),kt([a({type:Boolean})],i.prototype,"displayContents",2),kt([a({type:Boolean})],i.prototype,"noAutoFill",2),kt([a({type:Boolean})],i.prototype,"forceAutoFill",2),kt([a({type:Object})],i.prototype,"propertyMap",2),kt([a({type:String,attribute:"data-title"})],i.prototype,"title",2),kt([a({reflect:!0})],i.prototype,"dataProvider",2),kt([a()],i.prototype,"bindPublisher",2),kt([a()],i.prototype,"props",1),kt([E()],i.prototype,"shouldRenderLazy",2),i};var Mo=Object.defineProperty,jo=(r,t,i,s)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,i,e)||e);return e&&Mo(t,i,e),e};const qe=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const s=this.templates||[...this.querySelectorAll("template")];for(const e of s)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=s.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=s),super.connectedCallback()}}return jo([a({type:Array})],t.prototype,"templates"),t};var Fo=Object.defineProperty,zo=Object.getOwnPropertyDescriptor,W=(r,t,i,s)=>{for(var e=s>1?void 0:s?zo(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&&Fo(t,i,e),e};const Ro="sonic-date";Us(()=>z.updateComponentsLanguage());let z=class extends X(qe(w)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){z.dateCompnents.forEach(r=>r.pageLanguage=H.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=this.wording_billet_periode_validite?.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=H.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.dateCompnents.delete(this)}getDatesParts(r,t,i){const s=this.startDateObject;s.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=s.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete i.hour,delete i.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(s,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(s);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=cs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return S;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return F(`${t.map(i=>{const s=this.templateParts[i.type];if(s){const n=document.importNode(s.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=i.value),n.outerHTML}const e=document.createElement("span");return e.innerText=i.value,e.className=i.type,`<span class="${i.type}">${i.value}</span>`}).join("")}`)}};z.dateCompnents=new Set,W([a()],z.prototype,"wording_billet_periode_validite",1),W([a({type:Boolean})],z.prototype,"designMode",2),W([a({type:String})],z.prototype,"time_zone",2),W([a({type:Number})],z.prototype,"date",2),W([a({type:String})],z.prototype,"date_string",2),W([a({type:String})],z.prototype,"start_date_string",2),W([a({type:String})],z.prototype,"end_date_string",2),W([a({type:Number})],z.prototype,"start_date",2),W([a({type:Number})],z.prototype,"end_date",2),W([a({type:Boolean})],z.prototype,"hide_hours",2),W([a({type:String})],z.prototype,"era",2),W([a({type:String})],z.prototype,"year",2),W([a({type:String})],z.prototype,"month",2),W([a({type:String})],z.prototype,"day",2),W([a({type:String})],z.prototype,"weekday",2),W([a({type:String})],z.prototype,"hour",2),W([a({type:Boolean})],z.prototype,"hour12",2),W([a({type:String})],z.prototype,"minute",2),W([a({type:String})],z.prototype,"language",2),W([a({type:Boolean})],z.prototype,"renderIf",2),W([a({type:Boolean})],z.prototype,"now",2),z=W([x(Ro)],z);let et=(Z=class{static listen(){if(!Z.listening)return;const t=document.location?.href.replace(document.location.origin,"");Z.prevURL&&Z.prevURL!=t&&(Z.prevURL=t,Z.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Z.listen)}static offChange(t){const i=Z.listeners.indexOf(t);i!=-1&&(Z.listeners.splice(i,1),Z.listeners.length==0&&(Z.listening=!1))}static onChange(t){Z.listening||(Z.listening=!0,Z.listen()),Z.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const i=t.goBack,s=document.referrer;if(i!=null){const h=document.location.origin,u=(i||h).toString(),g=s.indexOf("http")==0?new URL(s).origin!=h:!1,m=s=="",v=history.length<3,y=m&&v,$=u!=document.location.href;if(g&&$||y){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(u)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href?.toString()||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),l=[];let c="";for(const h of n)h!=c&&l.push(h),c=h;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const i=t.href?.toString()||"";if(t.href&&i.indexOf("http")!=0){const s=new URL(i,document.location.href),e=new URL(t.location||"",document.location.origin);let o=!1;t.autoActive=="strict"?o=s.pathname==e.pathname&&s.hash==e.hash&&s.search==e.search:t.autoActive=="strict-path-only"?o=s.pathname==e.pathname&&s.hash==e.hash:o=e.href.indexOf(s.href)==0,o?t.setAttribute("active","true"):t.removeAttribute("active")}}},Z.listeners=[],Z.listening=!1,Z.prevURL=document.location?.href.replace(document.location.origin,""),Z);/**
68
+ <pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(),null," ")}</pre>`})}}removeDebugger(){hi.forEach(n=>{document.body.contains(n)&&document.body.removeChild(n)}),hi=new Set}getApiConfiguration(){return H.getApiConfiguration(this)}async initWording(){const n=Object.getOwnPropertyNames(this.constructor.prototype);for(const l of n)l.indexOf("wording_")==0&&ke.callApi(this,l.substring(8));ke.publisher.startTemplateFilling(this)}createRenderRoot(){if(this.noShadowDom===""||this.getAttribute("noShadowDom")==="")return this;const n=super.createRenderRoot();return ws.observe(n),n}initPublisher(){if(!document)return;this.publisher&&(this.publisher.stopTemplateFilling(this),this.publisher.offInternalMutation(this.requestUpdate),this.onAssign&&this.publisher.offAssign(this.onAssign));const n=k.getInstance();this.dataProvider||(this.dataProvider=this.getAncestorAttributeValue("dataProvider"));let l=this.dataProvider;if(!l&&this._props&&(this.dataProvider=l="__subscriber__"+e.instanceCounter),l){this.bindPublisher&&n.set(l,this.bindPublisher());let c=n.get(l,{localStorageMode:this.getAttribute("localStorage")||"disabled",invalidateOnPageShow:this.hasAttribute("invalidateOnPageShow")});if(this.dataProvider=l,this.hasAttribute("subDataProvider")){const h=this.getAttribute("subDataProvider");this.dataProvider=l+"/"+h,c=tt.traverse(c,h.split(".")),n.set(this.dataProvider,c),this.publisher=c}this.publisher=c}this.hasAttribute("lazyRendering")||this.startPublisher()}startPublisher(){this.publisher&&(this._props&&this.publisher.set(this._props),this.noAutoFill||this.publisher.startTemplateFilling(this),this.renderOnPropsInternalChange&&this.publisher.onInternalMutation(this.requestUpdate),this.publisher.onAssign(this.onAssign))}},e.instanceCounter=0,e);return kt([a({type:Number})],i.prototype,"collectDependenciesVersion",2),kt([a({type:Boolean})],i.prototype,"displayContents",2),kt([a({type:Boolean})],i.prototype,"noAutoFill",2),kt([a({type:Boolean})],i.prototype,"forceAutoFill",2),kt([a({type:Object})],i.prototype,"propertyMap",2),kt([a({type:String,attribute:"data-title"})],i.prototype,"title",2),kt([a({reflect:!0})],i.prototype,"dataProvider",2),kt([a()],i.prototype,"bindPublisher",2),kt([a()],i.prototype,"props",1),kt([E()],i.prototype,"shouldRenderLazy",2),i};var Go=Object.defineProperty,Xo=(r,t,i,s)=>{for(var e=void 0,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(t,i,e)||e);return e&&Go(t,i,e),e};const He=r=>{class t extends r{constructor(){super(...arguments),this.templates=null,this.templateValueAttribute="data-value",this.templateList=[],this.templateParts={},this.templatePartsList=[]}connectedCallback(){const s=this.templates||[...this.querySelectorAll("template")];for(const e of s)e.hasAttribute(this.templateValueAttribute)&&(this.templateParts[e.getAttribute(this.templateValueAttribute)]=e,this.templatePartsList.push(e)),e.hasAttribute("skeleton")&&(this.templateParts.skeleton=e),e.hasAttribute("no-result")&&(this.templateParts["no-result"]=e),e.hasAttribute("no-item")&&(this.templateParts["no-item"]=e);this.templateList=s.filter(e=>!e.getAttribute("data-value")),this.templateList.length==0&&(this.templateList=s),super.connectedCallback()}}return Xo([a({type:Array})],t.prototype,"templates"),t};var Qo=Object.defineProperty,Jo=Object.getOwnPropertyDescriptor,W=(r,t,i,s)=>{for(var e=s>1?void 0:s?Jo(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&&Qo(t,i,e),e};const tn="sonic-date";Ys(()=>z.updateComponentsLanguage());let z=class extends Q(He(x)){constructor(){super(...arguments),this.pageLanguage="fr",this.duAu=[],this._wording_billet_periode_validite="",this.designMode=null,this.time_zone=null,this.date=null,this.date_string=null,this.start_date_string=null,this.end_date_string=null,this.start_date=0,this.computedStartDate=0,this.end_date=0,this.computedEndDate=0,this.hide_hours=!1,this.era="",this.year="numeric",this.month="short",this.day="2-digit",this.weekday="short",this.hour="2-digit",this.hour12=!1,this.minute="2-digit",this.language="",this.renderIf=!0,this.now=!1,this.startDateObject=new Date,this.endDateObject=new Date}static updateComponentsLanguage(){z.dateCompnents.forEach(r=>r.pageLanguage=H.getLanguage())}get wording_billet_periode_validite(){return this._wording_billet_periode_validite}set wording_billet_periode_validite(r){r||(r="Du %s au %s"),this._wording_billet_periode_validite=r,this.duAu=this.wording_billet_periode_validite?.split("%s").map(t=>t.trim()),this.duAu.pop(),this.requestUpdate()}connectedCallback(){this.hasAttribute("wording_billet_periode_validite")||(this.wording_billet_periode_validite="Du %s au %s"),this.pageLanguage=H.getLanguage(),z.dateCompnents.add(this),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),z.dateCompnents.delete(this)}getDatesParts(r,t,i){const s=this.startDateObject;s.setTime(r*1e3);let e=[];if(t>0){const o=this.endDateObject;o.setTime(t*1e3);const n=s.toDateString()==o.toDateString();if((!n||this.hide_hours)&&(delete i.hour,delete i.minute),e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatRangeToParts(s,o),!n){const c=e.find(h=>h.type=="literal"&&h.source=="shared"&&h.value.trim().length>0);c&&(c.value=" "+this.duAu[1]+" ",c.type="to"),this.designMode||e.unshift({type:"from",value:this.duAu[0]+" ",source:"shared"})}}else e=new Intl.DateTimeFormat(this.language||this.pageLanguage,i).formatToParts(s);return this.designMode&&e.forEach(o=>o.value=o.value.replace(/,/g," ")),e[0].value=bs.ucFirst(e[0].value),e.filter(o=>o.hidden!==!0)}dateStringToSeconds(r){return new Date(r).getTime()/1e3}willUpdate(r){if(this.computedStartDate=0,this.computedEndDate=0,this.date_string&&(this.date=this.dateStringToSeconds(this.date_string)),this.date&&(this.computedStartDate=this.date),this.start_date_string&&(this.computedStartDate=this.dateStringToSeconds(this.start_date_string)),this.end_date_string&&(this.end_date=this.dateStringToSeconds(this.end_date_string)),this.start_date&&(this.computedStartDate=this.start_date),!(!this.computedStartDate&&!this.now&&!this.end_date)&&(this.computedStartDate||(this.computedStartDate=Date.now()/1e3),this.end_date&&(this.computedEndDate=this.end_date),this.computedEndDate>0&&this.computedEndDate<this.computedStartDate)){const t=this.computedStartDate;this.computedStartDate=this.computedEndDate,this.computedEndDate=t}}render(){if(!this.renderIf||!this.computedStartDate&&!this.now&&!this.computedEndDate)return S;const r={year:this.year||"numeric",month:this.month||"short",day:this.day||"2-digit",hour12:this.hour12||!1};this.weekday!=="hidden"&&(r.weekday=this.weekday||"short"),this.hour!=="hidden"&&(r.hour=this.hour||"2-digit"),this.minute!=="hidden"&&(r.minute=this.minute||"2-digit"),this.era&&(r.era=this.era),this.time_zone&&(r.timeZone=this.time_zone);const t=this.getDatesParts(this.computedStartDate,this.computedEndDate,r);return F(`${t.map(i=>{const s=this.templateParts[i.type];if(s){const n=document.importNode(s.content,!0).children[0];return n.innerText.trim()==""&&(n.innerText=i.value),n.outerHTML}const e=document.createElement("span");return e.innerText=i.value,e.className=i.type,`<span class="${i.type}">${i.value}</span>`}).join("")}`)}};z.dateCompnents=new Set,W([a()],z.prototype,"wording_billet_periode_validite",1),W([a({type:Boolean})],z.prototype,"designMode",2),W([a({type:String})],z.prototype,"time_zone",2),W([a({type:Number})],z.prototype,"date",2),W([a({type:String})],z.prototype,"date_string",2),W([a({type:String})],z.prototype,"start_date_string",2),W([a({type:String})],z.prototype,"end_date_string",2),W([a({type:Number})],z.prototype,"start_date",2),W([a({type:Number})],z.prototype,"end_date",2),W([a({type:Boolean})],z.prototype,"hide_hours",2),W([a({type:String})],z.prototype,"era",2),W([a({type:String})],z.prototype,"year",2),W([a({type:String})],z.prototype,"month",2),W([a({type:String})],z.prototype,"day",2),W([a({type:String})],z.prototype,"weekday",2),W([a({type:String})],z.prototype,"hour",2),W([a({type:Boolean})],z.prototype,"hour12",2),W([a({type:String})],z.prototype,"minute",2),W([a({type:String})],z.prototype,"language",2),W([a({type:Boolean})],z.prototype,"renderIf",2),W([a({type:Boolean})],z.prototype,"now",2),z=W([P(tn)],z);let et=(Z=class{static listen(){if(!Z.listening)return;const t=document.location?.href.replace(document.location.origin,"");Z.prevURL&&Z.prevURL!=t&&(Z.prevURL=t,Z.listeners.forEach(i=>{i.location=t})),window.requestAnimationFrame(Z.listen)}static offChange(t){const i=Z.listeners.indexOf(t);i!=-1&&(Z.listeners.splice(i,1),Z.listeners.length==0&&(Z.listening=!1))}static onChange(t){Z.listening||(Z.listening=!0,Z.listen()),Z.listeners.push(t),t.location=this.prevURL}static changeFromComponent(t){const i=t.goBack,s=document.referrer;if(i!=null){const h=document.location.origin,u=(i||h).toString(),g=s.indexOf("http")==0?new URL(s).origin!=h:!1,f=s=="",m=history.length<3,y=f&&m,_=u!=document.location.href;if(g&&_||y){const p=history.state||{};p.concorde=p.concorde||{},p.concorde.hasDoneHistoryBack=!0,history.pushState(p,document.title),history.back(),document.location.replace(u)}else history.back();return}let e=t.getAttribute("to")||"";if(e||(e=t.href?.toString()||""),!e)return;if(e.indexOf("#")==0){document.location.hash=e.substring(1);return}const o=new URL(e,document.location.href),n=o.pathname.split("/"),l=[];let c="";for(const h of n)h!=c&&l.push(h),c=h;e="/"+l.join("/")+o.search+(o.hash?+o.hash:""),t.hasAttribute("pushState")?history.pushState(null,"",e):t.hasAttribute("replaceState")?history.replaceState(null,"",e):document.location.href=e}static updateComponentActiveState(t){if(t.autoActive=="disabled")return;const i=t.href?.toString()||"";if(t.href&&i.indexOf("http")!=0){const s=new URL(i,document.location.href),e=new URL(t.location||"",document.location.origin);let o=!1;t.autoActive=="strict"?o=s.pathname==e.pathname&&s.hash==e.hash&&s.search==e.search:t.autoActive=="strict-path-only"?o=s.pathname==e.pathname&&s.hash==e.hash:o=e.href.indexOf(s.href)==0,o?t.setAttribute("active","true"):t.removeAttribute("active")}}},Z.listeners=[],Z.listening=!1,Z.prevURL=document.location?.href.replace(document.location.origin,""),Z);/**
69
69
  * @license
70
70
  * Copyright 2018 Google LLC
71
71
  * SPDX-License-Identifier: BSD-3-Clause
72
- */const or="important",Uo=" !"+or,pt=Zt(class extends Se{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce(((t,i)=>{const s=r[i];return s==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(r,[t]){const{style:i}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in t){const e=t[s];if(e!=null){this.ft.add(s);const o=typeof e=="string"&&e.endsWith(Uo);s.includes("-")||o?i.setProperty(s,o?e.slice(0,-11):e,o?or:""):i[s]=e}}return vt}});var Vo=Object.defineProperty,Bo=Object.getOwnPropertyDescriptor,Ot=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bo(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&&Vo(t,i,e),e};const xs=new Map,Oe=r=>{class t extends r{constructor(...s){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(s){this.hasAttribute("name")&&!this.forceAutoFill&&(s=this.getAttribute("name")),this._name=s,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?k.get(this.formDataProvider):null}setFormPublisherValue(s){const e=this.getFormPublisher();e&&ut(e,this.name).set(s)}getFormPublisherValue(){const s=this.getFormPublisher();return s?ut(s,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(s){this.value=s}setFormValueFromPublisher(s){this.value=s}get value(){return this._value}set value(s){s==null&&(s=""),tt.isObject(s)&&Object.prototype.hasOwnProperty.call(s,"__value")&&s._value==null&&(s=""),this._value!=s&&(this._value=s,this.updateDataValue(),this.requestUpdate())}initPublisher(){let s=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&ut(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&s&&ut(s,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&ut(this.publisher,this._name).onAssign(this.onValueAssign),s=this.getFormPublisher(),this._name&&s&&(ut(s,this._name).onAssign(this.onFormValueAssign),s.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(s){this.value=s.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const s=this.getAncestorAttributeValue("data-keyboard-nav");if(!s)return;const e=s.split(" "),o=e[0];if(!o)return;for(const l of e){xs.has(l)||xs.set(l,[]);const c=xs.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=xs.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=n?.filter(m=>{const v=m.shadowRoot?.querySelector(h);if(!v)return!1;const y=window.getComputedStyle(v);return y.display!=="none"&&y.display!==""&&y.pointerEvents!="none"&&y.visibility!=="hidden"&&v.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const m=u.indexOf(this);m==u.length-1?d=u[0]:d=u[m+1]}else if(c.key=="ArrowUp"&&u){const m=u.indexOf(this);m==0?d=u[u.length-1]:d=u[m-1]}const g=d?.shadowRoot?.querySelector(h);g&&g.focus&&(g.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&ut(this.publisher,this._name).offAssign(this.onValueAssign);const s=this.getFormPublisher();this._name&&s&&(ut(s,this._name).offAssign(this.onFormValueAssign),s.offFormInvalidate(this.onFormDataInValidate))}}return Ot([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Ot([a({type:Boolean})],t.prototype,"error",2),Ot([a({type:Boolean})],t.prototype,"autofocus",2),Ot([a({type:Boolean})],t.prototype,"required",2),Ot([a({type:Boolean})],t.prototype,"forceAutoFill",2),Ot([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Ot([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Ot([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Ot([a()],t.prototype,"name",1),Ot([a()],t.prototype,"value",1),t};let qo=class we{static areEqual(t,i){return t.length===i.length?t.every((s,e)=>s===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(s=>i=i.concat(s)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const s=(t[0]||{})[i];return t.every(e=>(e||{})[i]==s)}})})}),value:()=>({forKey:i=>we.from(t.map(s=>s[i]))}),copy:()=>({fromKey:i=>({toKey:s=>{t.forEach(e=>{e[s]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>we.from(t.map(i)),filter:i=>we.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const s=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=s.length;e.set(n,l);const c={items:[]};c[i]=n,s.push(c)}s[e.get(n)].items.push(o)}return we.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(t.map(e=>e[i]))];return we.from(s.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>{const e=(o,n)=>l=>o[n]!=l[n];return we.from(t.filter(o=>i.every(e(o,s))))}})})})}}};function Ho(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var He={exports:{}},Wo=He.exports,nr;function Ko(){return nr||(nr=1,(function(r,t){var i=[].slice;(function(s,e){return t!==null?r.exports=e():s.UrlPattern=e()})(Wo,function(){var s,e,o,n,l,c,h,u,d,g,m,v,y,$,L;return d=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,f){var _,A,O;for(O=[],_=-1,A=p.length;++_<A;)O=O.concat(f(p[_]));return O},$=function(p,f){var _,A,O;for(O="",_=-1,A=p.length;++_<A;)O+=f(p[_]);return O},y=function(p){return new RegExp(p.toString()+"|").exec("").length-1},m=function(p,f){var _,A,O,q,Q;for(q={},_=-1,O=p.length;++_<O;)A=p[_],Q=f[_],Q!=null&&(q[A]!=null?(Array.isArray(q[A])||(q[A]=[q[A]]),q[A].push(Q)):q[A]=Q);return q},s={},s.Result=function(p,f){this.value=p,this.rest=f},s.Tagged=function(p,f){this.tag=p,this.value=f},s.tag=function(p,f){return function(_){var A,O;if(A=f(_),A!=null)return O=new s.Tagged(p,A.value),new s.Result(O,A.rest)}},s.regex=function(p){return function(f){var _,A;if(_=p.exec(f),_!=null)return A=_[0],new s.Result(A,f.slice(A.length))}},s.sequence=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var _,A,O,q,Q,nt;for(_=-1,A=p.length,nt=[],q=f;++_<A;){if(O=p[_],Q=O(q),Q==null)return;nt.push(Q.value),q=Q.rest}return new s.Result(nt,q)}},s.pick=function(){var p,f;return p=arguments[0],f=2<=arguments.length?i.call(arguments,1):[],function(_){var A,O;if(O=s.sequence.apply(s,f)(_),O!=null)return A=O.value,O.value=A[p],O}},s.string=function(p){var f;return f=p.length,function(_){if(_.slice(0,f)===p)return new s.Result(p,_.slice(f))}},s.lazy=function(p){var f;return f=null,function(_){return f==null&&(f=p()),f(_)}},s.baseMany=function(p,f,_,A,O){var q,Q,nt,ls;for(nt=O,ls=_?"":[];!(f!=null&&(q=f(nt),q!=null)||(Q=p(nt),Q==null));)_?ls+=Q.value:ls.push(Q.value),nt=Q.rest;if(!(A&&ls.length===0))return new s.Result(ls,nt)},s.many1=function(p){return function(f){return s.baseMany(p,null,!1,!0,f)}},s.concatMany1Till=function(p,f){return function(_){return s.baseMany(p,f,!0,!0,_)}},s.firstChoice=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(f){var _,A,O,q;for(_=-1,A=p.length;++_<A;)if(O=p[_],q=O(f),q!=null)return q}},v=function(p){var f;return f={},f.wildcard=s.tag("wildcard",s.string(p.wildcardChar)),f.optional=s.tag("optional",s.pick(1,s.string(p.optionalSegmentStartChar),s.lazy(function(){return f.pattern}),s.string(p.optionalSegmentEndChar))),f.name=s.regex(new RegExp("^["+p.segmentNameCharset+"]+")),f.named=s.tag("named",s.pick(1,s.string(p.segmentNameStartChar),s.lazy(function(){return f.name}))),f.escapedChar=s.pick(1,s.string(p.escapeChar),s.regex(/^./)),f.static=s.tag("static",s.concatMany1Till(s.firstChoice(s.lazy(function(){return f.escapedChar}),s.regex(/^./)),s.firstChoice(s.string(p.segmentNameStartChar),s.string(p.optionalSegmentStartChar),s.string(p.optionalSegmentEndChar),f.wildcard))),f.token=s.lazy(function(){return s.firstChoice(f.wildcard,f.optional,f.named,f.static)}),f.pattern=s.many1(s.lazy(function(){return f.token})),f},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,f){if(Array.isArray(p))return $(p,function(_){return c(_,f)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+f+"]+)";case"static":return d(p.value);case"optional":return"(?:"+c(p.value,f)+")?"}},l=function(p,f){return f==null&&(f=u.segmentValueCharset),"^"+c(p,f)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},g=function(p,f,_,A){var O,q,Q,nt;if(A==null&&(A=!1),nt=p[f],nt==null){if(A)throw new Error("no values provided for key `"+f+"`");return}if(O=_[f]||0,q=Array.isArray(nt)?nt.length-1:0,O>q){if(A)throw new Error("too few values provided for key `"+f+"`");return}return Q=Array.isArray(nt)?nt[O]:nt,A&&(_[f]=O+1),Q},o=function(p,f,_){var A,O;if(Array.isArray(p)){for(A=-1,O=p.length;++A<O;)if(o(p[A],f,_))return!0;return!1}switch(p.tag){case"wildcard":return g(f,"_",_,!1)!=null;case"named":return g(f,p.value,_,!1)!=null;case"static":return!1;case"optional":return o(p.value,f,_)}},L=function(p,f,_){if(Array.isArray(p))return $(p,function(A){return L(A,f,_)});switch(p.tag){case"wildcard":return g(f,"_",_,!0);case"named":return g(f,p.value,_,!0);case"static":return p.value;case"optional":return o(p.value,f,_)?L(p.value,f,_):""}},e=function(p,f){var _,A,O,q,Q;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,f!=null){if(!Array.isArray(f))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(_=y(this.regex),f.length!==_)throw new Error("regex contains "+_+" groups but array of group names contains "+f.length);this.names=f}return}if(p==="")throw new Error("argument must not be the empty string");if(Q=p.replace(/\s+/g,""),Q!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:f?.escapeChar||u.escapeChar,segmentNameStartChar:f?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:f?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:f?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:f?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:f?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:f?.wildcardChar||u.wildcardChar},q=v(A),O=q.pattern(p),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var f,_;return _=this.regex.exec(p),_==null?null:(f=_.slice(1),this.names?m(this.names,f):f)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return L(this.ast,p,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=$,e.regexGroupCount=y,e.keysAndValuesToObject=m,e.P=s,e.newParser=v,e.defaultOptions=u,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=L,e})})(He,He.exports)),He.exports}var Yo=Ko();const Rt=Ho(Yo),Zo=Hr,Xo=qo,Go=fs,Qo=cs,Xt=H,Jo=et,De=tt,tn=Ae,en=Rt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:Zo,Arrays:Xo,DataBindObserver:Go,Format:Qo,HTML:Xt,LocationHandler:Jo,Objects:De,PublisherManager:k,api:tn,URLPattern:en};var sn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,We=(r,t,i,s)=>{for(var e=s>1?void 0:s?rn(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&&sn(t,i,e),e};const ri=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const s=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&s){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&e.checkMode.set("someUnchecked");else{e.checkMode.set("noneChecked");return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&e.checkMode.set("allChecked"),c==0&&e.checkMode.set("noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=s=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),s=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),s=="noneChecked"&&(this.checked=null),s=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(s){if(this.value==s||(this.hasAttribute("value")&&!this.forceAutoFill&&(s=this.getAttribute("value")),this._value==s)||s==null||(this._value=s,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==s?!0:null),Array.isArray(o)||(o=[]),o.indexOf(s)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(s){if(this.setCheckedValue(s),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode.set("allChecked"):this.checked===null&&(e.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,s.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(s){this._checked!=s&&(this._checked=s,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const s=this.checked===!0?this.radio?!0:null:!0;this.checked=s;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let s=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:s;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(s)||(s=[]);const e=s.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(s){if(this.unique||this.radio){this.checked=this.value==s?!0:null;return}Array.isArray(s)||(s=[]),!this.checksAll()&&(this.checked=s.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const s=this.formDataProvider,e=this.getAttribute("name");return!s||!e?null:k.get(s+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const s=this.getCheckAllPublisher();if(s&&(s.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=s.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),s.values.set(e))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&e.hasCheckAll.set(!0),e.values.get()||e.values.set([]),this.checksAll()||e.values.set([...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return We([a()],t.prototype,"value",1),We([a()],t.prototype,"forceAutoFill",2),We([a({type:Boolean})],t.prototype,"unique",2),We([a({type:Boolean})],t.prototype,"radio",2),We([a()],t.prototype,"checked",1),t};/**
72
+ */const dr="important",en=" !"+dr,pt=Zt(class extends Ae{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce(((t,i)=>{const s=r[i];return s==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(r,[t]){const{style:i}=r.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?i.removeProperty(s):i[s]=null);for(const s in t){const e=t[s];if(e!=null){this.ft.add(s);const o=typeof e=="string"&&e.endsWith(en);s.includes("-")||o?i.setProperty(s,o?e.slice(0,-11):e,o?dr:""):i[s]=e}}return vt}});var sn=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,Dt=(r,t,i,s)=>{for(var e=s>1?void 0:s?rn(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&&sn(t,i,e),e};const Ds=new Map,De=r=>{class t extends r{constructor(...s){super(),this.touched=!1,this.error=!1,this.autofocus=!1,this.required=!1,this.forceAutoFill=!1,this.disabled=!1,this.formDataProvider="",this._name="",this._value="",this.onValueAssign=e=>{this.setValueFromPublisher(e)},this.onFormValueAssign=async e=>{this.setFormValueFromPublisher(e)},this.onFormDataInValidate=()=>{const e=this.getFormPublisher();e&&e.isFormValid.get()&&this.validateFormElement()}}get name(){return this._name}set name(s){this.hasAttribute("name")&&!this.forceAutoFill&&(s=this.getAttribute("name")),this._name=s,this.requestUpdate()}validateFormElement(){}unsetOnDisconnect(){return this.hasAttribute("unsetOnDisconnect")}updateDataValue(){this.getAttribute("name")&&this.getFormPublisher()&&(this.setFormPublisherValue(this.getValueForFormPublisher()),this.setFormValueFromPublisher(this.getFormPublisherValue()))}getFormPublisher(){return this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider")),this.formDataProvider?k.get(this.formDataProvider):null}setFormPublisherValue(s){const e=this.getFormPublisher();e&&ut(e,this.name).set(s)}getFormPublisherValue(){const s=this.getFormPublisher();return s?ut(s,this.name).get():null}getValueForFormPublisher(){return this.value}setValueFromPublisher(s){this.value=s}setFormValueFromPublisher(s){this.value=s}get value(){return this._value}set value(s){s==null&&(s=""),tt.isObject(s)&&Object.prototype.hasOwnProperty.call(s,"__value")&&s._value==null&&(s=""),this._value!=s&&(this._value=s,this.updateDataValue(),this.requestUpdate())}initPublisher(){let s=this.getFormPublisher();const e=this.hasAncestorAttribute("initFromPublisher")&&this._name&&this.getFormPublisherValue()?this.getFormPublisherValue():this.getAttribute("value");this._name&&this.publisher&&ut(this.publisher,this._name).offAssign(this.onValueAssign),this._name&&s&&ut(s,this._name).offAssign(this.onFormValueAssign),super.initPublisher(),this.name||(this._name=this.getAttribute("name")),this.value||(this._value=this.getAttribute("value")),this.publisher&&this._name&&ut(this.publisher,this._name).onAssign(this.onValueAssign),s=this.getFormPublisher(),this._name&&s&&(ut(s,this._name).onAssign(this.onFormValueAssign),s.onFormInvalidate(this.onFormDataInValidate)),this.updateDataValue(),e&&(this.value=e)}handleBlur(){this.touched=!0}handleChange(s){this.value=s.target.value;const e=new Event("change");this.dispatchEvent(e)}addKeyboardNavigation(){const s=this.getAncestorAttributeValue("data-keyboard-nav");if(!s)return;const e=s.split(" "),o=e[0];if(!o)return;for(const l of e){Ds.has(l)||Ds.set(l,[]);const c=Ds.get(l);c?.indexOf(this)==-1&&c.push(this)}const n=Ds.get(o);this.addEventListener("keydown",l=>{const c=l;if(!["ArrowDown","ArrowUp"].includes(c.key))return;const h="input:not([disabled]), button:not([disabled]), select:not([disabled]), textarea:not([disabled])",u=n?.filter(f=>{const m=f.shadowRoot?.querySelector(h);if(!m)return!1;const y=window.getComputedStyle(m);return y.display!=="none"&&y.display!==""&&y.pointerEvents!="none"&&y.visibility!=="hidden"&&m.getBoundingClientRect().width>0});let d=null;if(c.key=="ArrowDown"&&u){const f=u.indexOf(this);f==u.length-1?d=u[0]:d=u[f+1]}else if(c.key=="ArrowUp"&&u){const f=u.indexOf(this);f==0?d=u[u.length-1]:d=u[f-1]}const g=d?.shadowRoot?.querySelector(h);g&&g.focus&&(g.focus(),l.preventDefault(),l.stopPropagation())})}focus(){this.shadowRoot?.querySelector("[data-form-element], button")?.focus()}connectedCallback(){this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"),super.connectedCallback(),this.addKeyboardNavigation()}unset(){this.value=null}disconnectedCallback(){this.unsetOnDisconnect()&&this.unset(),super.disconnectedCallback(),this._name&&this.publisher&&ut(this.publisher,this._name).offAssign(this.onValueAssign);const s=this.getFormPublisher();this._name&&s&&(ut(s,this._name).offAssign(this.onFormValueAssign),s.offFormInvalidate(this.onFormDataInValidate))}}return Dt([a({type:Boolean,reflect:!0})],t.prototype,"touched",2),Dt([a({type:Boolean})],t.prototype,"error",2),Dt([a({type:Boolean})],t.prototype,"autofocus",2),Dt([a({type:Boolean})],t.prototype,"required",2),Dt([a({type:Boolean})],t.prototype,"forceAutoFill",2),Dt([a({type:Boolean,reflect:!0})],t.prototype,"disabled",2),Dt([a({type:String,attribute:"data-aria-label"})],t.prototype,"ariaLabel",2),Dt([a({type:String,attribute:"data-aria-labelledby"})],t.prototype,"ariaLabelledby",2),Dt([a()],t.prototype,"name",1),Dt([a()],t.prototype,"value",1),t};let on=class we{static areEqual(t,i){return t.length===i.length?t.every((s,e)=>s===i[e]):!1}static from2d(t){return{to1D:()=>{let i=[];return t.forEach(s=>i=i.concat(s)),this.from(i)}}}static from(t){return{get:()=>t||[],everyItem:()=>({has:()=>({same:()=>({value:()=>({forKey:i=>{if(t.length<1)return!0;const s=(t[0]||{})[i];return t.every(e=>(e||{})[i]==s)}})})}),value:()=>({forKey:i=>we.from(t.map(s=>s[i]))}),copy:()=>({fromKey:i=>({toKey:s=>{t.forEach(e=>{e[s]=Array.isArray(e[i])?[...e[i]]:typeof e[i]=="object"&&e[i]!=null?{...e[i]}:e[i]})}})})}),map:i=>we.from(t.map(i)),filter:i=>we.from(t.filter(i)),find:i=>t.find(i),some:i=>t.some(i),every:i=>t.every(i),group:()=>({byKey:i=>{const s=[],e=new Map;for(const o of t){const n=o[i];if(!e.has(n)){const l=s.length;e.set(n,l);const c={items:[]};c[i]=n,s.push(c)}s[e.get(n)].items.push(o)}return we.from(s)}}),without:()=>({duplicates:()=>({forKey:i=>{const s=[...new Set(t.map(e=>e[i]))];return we.from(s.map(e=>t.find(o=>o[i]==e)))}}),itemsIn:i=>({havingSameValue:()=>({forKey:s=>{const e=(o,n)=>l=>o[n]!=l[n];return we.from(t.filter(o=>i.every(e(o,s))))}})})})}}};function nn(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var We={exports:{}},an=We.exports,ur;function ln(){return ur||(ur=1,(function(r,t){var i=[].slice;(function(s,e){return t!==null?r.exports=e():s.UrlPattern=e()})(an,function(){var s,e,o,n,l,c,h,u,d,g,f,m,y,_,D;return d=function(p){return p.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")},h=function(p,b){var w,A,O;for(O=[],w=-1,A=p.length;++w<A;)O=O.concat(b(p[w]));return O},_=function(p,b){var w,A,O;for(O="",w=-1,A=p.length;++w<A;)O+=b(p[w]);return O},y=function(p){return new RegExp(p.toString()+"|").exec("").length-1},f=function(p,b){var w,A,O,q,X;for(q={},w=-1,O=p.length;++w<O;)A=p[w],X=b[w],X!=null&&(q[A]!=null?(Array.isArray(q[A])||(q[A]=[q[A]]),q[A].push(X)):q[A]=X);return q},s={},s.Result=function(p,b){this.value=p,this.rest=b},s.Tagged=function(p,b){this.tag=p,this.value=b},s.tag=function(p,b){return function(w){var A,O;if(A=b(w),A!=null)return O=new s.Tagged(p,A.value),new s.Result(O,A.rest)}},s.regex=function(p){return function(b){var w,A;if(w=p.exec(b),w!=null)return A=w[0],new s.Result(A,b.slice(A.length))}},s.sequence=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(b){var w,A,O,q,X,nt;for(w=-1,A=p.length,nt=[],q=b;++w<A;){if(O=p[w],X=O(q),X==null)return;nt.push(X.value),q=X.rest}return new s.Result(nt,q)}},s.pick=function(){var p,b;return p=arguments[0],b=2<=arguments.length?i.call(arguments,1):[],function(w){var A,O;if(O=s.sequence.apply(s,b)(w),O!=null)return A=O.value,O.value=A[p],O}},s.string=function(p){var b;return b=p.length,function(w){if(w.slice(0,b)===p)return new s.Result(p,w.slice(b))}},s.lazy=function(p){var b;return b=null,function(w){return b==null&&(b=p()),b(w)}},s.baseMany=function(p,b,w,A,O){var q,X,nt,ms;for(nt=O,ms=w?"":[];!(b!=null&&(q=b(nt),q!=null)||(X=p(nt),X==null));)w?ms+=X.value:ms.push(X.value),nt=X.rest;if(!(A&&ms.length===0))return new s.Result(ms,nt)},s.many1=function(p){return function(b){return s.baseMany(p,null,!1,!0,b)}},s.concatMany1Till=function(p,b){return function(w){return s.baseMany(p,b,!0,!0,w)}},s.firstChoice=function(){var p;return p=1<=arguments.length?i.call(arguments,0):[],function(b){var w,A,O,q;for(w=-1,A=p.length;++w<A;)if(O=p[w],q=O(b),q!=null)return q}},m=function(p){var b;return b={},b.wildcard=s.tag("wildcard",s.string(p.wildcardChar)),b.optional=s.tag("optional",s.pick(1,s.string(p.optionalSegmentStartChar),s.lazy(function(){return b.pattern}),s.string(p.optionalSegmentEndChar))),b.name=s.regex(new RegExp("^["+p.segmentNameCharset+"]+")),b.named=s.tag("named",s.pick(1,s.string(p.segmentNameStartChar),s.lazy(function(){return b.name}))),b.escapedChar=s.pick(1,s.string(p.escapeChar),s.regex(/^./)),b.static=s.tag("static",s.concatMany1Till(s.firstChoice(s.lazy(function(){return b.escapedChar}),s.regex(/^./)),s.firstChoice(s.string(p.segmentNameStartChar),s.string(p.optionalSegmentStartChar),s.string(p.optionalSegmentEndChar),b.wildcard))),b.token=s.lazy(function(){return s.firstChoice(b.wildcard,b.optional,b.named,b.static)}),b.pattern=s.many1(s.lazy(function(){return b.token})),b},u={escapeChar:"\\",segmentNameStartChar:":",segmentValueCharset:"a-zA-Z0-9-_~ %",segmentNameCharset:"a-zA-Z0-9",optionalSegmentStartChar:"(",optionalSegmentEndChar:")",wildcardChar:"*"},c=function(p,b){if(Array.isArray(p))return _(p,function(w){return c(w,b)});switch(p.tag){case"wildcard":return"(.*?)";case"named":return"(["+b+"]+)";case"static":return d(p.value);case"optional":return"(?:"+c(p.value,b)+")?"}},l=function(p,b){return b==null&&(b=u.segmentValueCharset),"^"+c(p,b)+"$"},n=function(p){if(Array.isArray(p))return h(p,n);switch(p.tag){case"wildcard":return["_"];case"named":return[p.value];case"static":return[];case"optional":return n(p.value)}},g=function(p,b,w,A){var O,q,X,nt;if(A==null&&(A=!1),nt=p[b],nt==null){if(A)throw new Error("no values provided for key `"+b+"`");return}if(O=w[b]||0,q=Array.isArray(nt)?nt.length-1:0,O>q){if(A)throw new Error("too few values provided for key `"+b+"`");return}return X=Array.isArray(nt)?nt[O]:nt,A&&(w[b]=O+1),X},o=function(p,b,w){var A,O;if(Array.isArray(p)){for(A=-1,O=p.length;++A<O;)if(o(p[A],b,w))return!0;return!1}switch(p.tag){case"wildcard":return g(b,"_",w,!1)!=null;case"named":return g(b,p.value,w,!1)!=null;case"static":return!1;case"optional":return o(p.value,b,w)}},D=function(p,b,w){if(Array.isArray(p))return _(p,function(A){return D(A,b,w)});switch(p.tag){case"wildcard":return g(b,"_",w,!0);case"named":return g(b,p.value,w,!0);case"static":return p.value;case"optional":return o(p.value,b,w)?D(p.value,b,w):""}},e=function(p,b){var w,A,O,q,X;if(p instanceof e){this.isRegex=p.isRegex,this.regex=p.regex,this.ast=p.ast,this.names=p.names;return}if(this.isRegex=p instanceof RegExp,!(typeof p=="string"||this.isRegex))throw new TypeError("argument must be a regex or a string");if(this.isRegex){if(this.regex=p,b!=null){if(!Array.isArray(b))throw new Error("if first argument is a regex the second argument may be an array of group names but you provided something else");if(w=y(this.regex),b.length!==w)throw new Error("regex contains "+w+" groups but array of group names contains "+b.length);this.names=b}return}if(p==="")throw new Error("argument must not be the empty string");if(X=p.replace(/\s+/g,""),X!==p)throw new Error("argument must not contain whitespace");if(A={escapeChar:b?.escapeChar||u.escapeChar,segmentNameStartChar:b?.segmentNameStartChar||u.segmentNameStartChar,segmentNameCharset:b?.segmentNameCharset||u.segmentNameCharset,segmentValueCharset:b?.segmentValueCharset||u.segmentValueCharset,optionalSegmentStartChar:b?.optionalSegmentStartChar||u.optionalSegmentStartChar,optionalSegmentEndChar:b?.optionalSegmentEndChar||u.optionalSegmentEndChar,wildcardChar:b?.wildcardChar||u.wildcardChar},q=m(A),O=q.pattern(p),O==null)throw new Error("couldn't parse pattern");if(O.rest!=="")throw new Error("could only partially parse pattern");this.ast=O.value,this.regex=new RegExp(l(this.ast,A.segmentValueCharset)),this.names=n(this.ast)},e.prototype.match=function(p){var b,w;return w=this.regex.exec(p),w==null?null:(b=w.slice(1),this.names?f(this.names,b):b)},e.prototype.stringify=function(p){if(p==null&&(p={}),this.isRegex)throw new Error("can't stringify patterns generated from a regex");if(p!==Object(p))throw new Error("argument must be an object or undefined");return D(this.ast,p,{})},e.escapeForRegex=d,e.concatMap=h,e.stringConcatMap=_,e.regexGroupCount=y,e.keysAndValuesToObject=f,e.P=s,e.newParser=m,e.defaultOptions=u,e.astNodeToRegexString=l,e.astNodeToNames=n,e.getParam=g,e.astNodeContainsSegmentsForProvidedParams=o,e.stringify=D,e})})(We,We.exports)),We.exports}var cn=ln();const Rt=nn(cn);class pr{constructor(t){this.path=t}toString(){return this.path}}function fr(r){return new Proxy(r,{get(t,i){if(i==="path")return t.path;if(i==="toString")return t.toString.bind(t);if(i===Symbol.toStringTag)return"DataProviderKey";if(typeof i=="symbol")return t[i];const s=t.path?`${t.path}.${String(i)}`:String(i);return fr(new pr(s))}})}const Ke=function(r){return this instanceof Ke?fr(new pr(r)):new Ke(r)};class Os{constructor(t){this.path=Os.normalizePath(t)}getDataProviderKey(){return new Ke(this.path)}static normalizePath(t){const i=String(t).trim();if(!i)throw new RangeError("Endpoint: path cannot be empty");if(/^https?:\/\//i.test(i)){let c;try{c=new URL(i)}catch{throw new RangeError("Endpoint: invalid absolute URL")}return c.pathname=c.pathname.replace(/\/+/g,"/"),c.href}const s=i.indexOf("?"),e=i.indexOf("#");let o=i.length;s>=0&&(o=Math.min(o,s)),e>=0&&(o=Math.min(o,e));let n=i.slice(0,o);const l=i.slice(o);if(n=n.replace(/^\/+/,""),n=n.replace(/\/+/g,"/"),!n&&l)throw new RangeError("Endpoint: path cannot be empty");return n+l}static isNonEmpty(t){return String(t).trim().length>0}static looksLikeDataProviderPath(t){return/^\s*dataProvider\s*\(/i.test(String(t))}toString(){return this.path}}const hn=ro,dn=on,un=ws,pn=bs,Gt=H,fn=et,Ye=tt,mn=de,bn=Rt;window["concorde-utils"]=window["concorde-utils"]||{},window["concorde-utils"]={Utils:hn,Arrays:dn,DataBindObserver:un,Format:pn,HTML:Gt,LocationHandler:fn,Objects:Ye,PublisherManager:k,api:mn,URLPattern:bn,Endpoint:Os,DataProviderKey:Ke};var gn=Object.defineProperty,vn=Object.getOwnPropertyDescriptor,Ze=(r,t,i,s)=>{for(var e=s>1?void 0:s?vn(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&&gn(t,i,e),e};const di=r=>{class t extends r{constructor(){super(...arguments),this._value="",this.forceAutoFill=!1,this.unique=null,this.radio=null,this._checked=null,this.updateAllChecked=()=>{const s=this.getAttribute("name"),e=this.getCheckAllPublisher(),o=this.getFormPublisher();if(e?.hasCheckAll.get()&&!this.checksAll()&&e&&o&&s){if(this.getFormPublisherValue()?.length)(this.checked===null||e.checkMode.get()=="noneChecked"||e.checkMode.get()==null)&&e.checkMode.set("someUnchecked");else{e.checkMode.set("noneChecked");return}const n=this.getFormPublisherValue(),l=e.values.get();if(l&&l.length){let c=l.length;for(const h of l)n.indexOf(h)==-1&&(c-=1);c==l.length&&e.checkMode.set("allChecked"),c==0&&e.checkMode.set("noneChecked")}l.indexOf(this.value)==-1&&this.unsetOnDisconnect()&&(this.checked=null)}},this.onChecksAllRequest=s=>{this.removeAttribute("allChecked"),this.removeAttribute("indeterminate"),s=="allChecked"&&(this.checked=!0,this.setAttribute("allChecked","")),s=="noneChecked"&&(this.checked=null),s=="someUnchecked"&&(this.checksAll()&&(this.checked="indeterminate"),this.setAttribute("indeterminate",""))}}get value(){return this._value}set value(s){if(this.value==s||(this.hasAttribute("value")&&!this.forceAutoFill&&(s=this.getAttribute("value")),this._value==s)||s==null||(this._value=s,!this.value))return;if(this.getFormPublisher()&&this.name){let o=this.getFormPublisherValue();(this.radio||this.unique)&&(this.checked=o==s?!0:null),Array.isArray(o)||(o=[]),o.indexOf(s)!=-1&&(this.checked=!0)}this.checked==!0&&this.updateDataValue(),this.requestUpdate()}get checked(){return this._checked}set checked(s){if(this.setCheckedValue(s),this.checksAll()){const e=this.getCheckAllPublisher();e&&(this.checked===!0?e.checkMode.set("allChecked"):this.checked===null&&(e.checkMode.set("noneChecked"),this.getFormPublisher()&&this.setFormPublisherValue([])))}this.requestUpdate()}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();if(e){const o=this.getFormPublisherValue();if((this.unique||this.radio)&&o!==null&&o!==void 0&&o.toString().length>0)return;e.isFormValid=!1,s.reportValidity()}}checksAll(){return this.hasAttribute("checksAll")}setCheckedValue(s){this._checked!=s&&(this._checked=s,this.updateDataValue(),this.requestUpdate(),setTimeout(()=>this.updateAllChecked(),1))}handleChange(){const s=this.checked===!0?this.radio?!0:null:!0;this.checked=s;const e=new Event("change");this.dispatchEvent(e)}getValueForFormPublisher(){let s=this.getFormPublisherValue();if(this.radio)return this.checked===!0&&this.value!=null?this.value:s;if(this.unique)return this.checked===!0&&this.value!=null?this.value:null;Array.isArray(s)||(s=[]);const e=s.slice(0),o=e.indexOf(this.value);return this.checked===!0&&o===-1&&!this.checksAll()&&e.push(this.value),this.checked===null&&o!==-1&&e.splice(o,1),e}setFormValueFromPublisher(s){if(this.unique||this.radio){this.checked=this.value==s?!0:null;return}Array.isArray(s)||(s=[]),!this.checksAll()&&(this.checked=s.indexOf(this.value)!==-1?!0:null)}getCheckAllPublisher(){this.formDataProvider||(this.formDataProvider=this.getAncestorAttributeValue("formDataProvider"));const s=this.formDataProvider,e=this.getAttribute("name");return!s||!e?null:k.get(s+"/"+e+"/_available_values_")}unset(){this.checked=null}disconnectedCallback(){super.disconnectedCallback();const s=this.getCheckAllPublisher();if(s&&(s.checkMode.offAssign(this.onChecksAllRequest),!this.checksAll())){const e=s.values.get().slice(0),o=e.indexOf(this.value);o!=-1&&(e.splice(o,1),s.values.set(e))}setTimeout(()=>this.updateAllChecked(),1)}connectedCallback(){if(super.connectedCallback(),this.getFormPublisher()&&this.name){const o=this.getFormPublisherValue();o&&Array.isArray(o)&&o.indexOf(this.value)!==-1&&(this.checked=!0)}const e=this.getCheckAllPublisher();e&&(e.checkMode.onAssign(this.onChecksAllRequest),this.checksAll()&&e.hasCheckAll.set(!0),e.values.get()||e.values.set([]),this.checksAll()||e.values.set([...e.values.get(),this.value])),this.hasAttribute("checked")&&(!this.publisher||this.publisher.get().checked!==!1)&&setTimeout(()=>this.checked=!0,1)}}return Ze([a()],t.prototype,"value",1),Ze([a()],t.prototype,"forceAutoFill",2),Ze([a({type:Boolean})],t.prototype,"unique",2),Ze([a({type:Boolean})],t.prototype,"radio",2),Ze([a()],t.prototype,"checked",1),t};/**
73
73
  * @license
74
74
  * Copyright 2018 Google LLC
75
75
  * SPDX-License-Identifier: BSD-3-Clause
76
- */const C=r=>r??S,Dt=P`
76
+ */const C=r=>r??S,Ot=$`
77
77
  /*SIZES*/
78
78
  :host {
79
79
  --sc-_fs: 1rem;
@@ -106,7 +106,7 @@
106
106
  :host([size="inherit"]) {
107
107
  --sc-_fs: 1em;
108
108
  }
109
- `;var on=Object.defineProperty,nn=Object.getOwnPropertyDescriptor,V=(r,t,i,s)=>{for(var e=s>1?void 0:s?nn(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&&on(t,i,e),e};const an="sonic-button";let M=class extends ri(Oe(X(w))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?et.onChange(this):et.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),et.changeFromComponent(this)}handleChange(r){if(!(r?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r?.preventDefault(),r?.stopPropagation(),et.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),i=t?k.get(t):this.getFormPublisher();i&&i.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&et.updateComponentActiveState(this),r.has("location")&&et.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=b`
109
+ `;var yn=Object.defineProperty,_n=Object.getOwnPropertyDescriptor,V=(r,t,i,s)=>{for(var e=s>1?void 0:s?_n(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&&yn(t,i,e),e};const wn="sonic-button";let I=class extends di(De(Q(x))){constructor(){super(...arguments),this.type="default",this.variant="default",this.shape="default",this.direction="row",this.alignItems="center",this.justify="center",this.minWidth="0",this.icon=!1,this.download=null,this.autoActive="partial",this.loading=!1,this.hasPrefix=!1,this.hasSuffix=!1,this._href="",this.goBack=null,this.pushState=!1,this.active=!1,this.autoRepeat=!1,this.pointerDownTime=0,this.lastRepeatTime=0,this.isRepeating=!1,this.handleRepeatend=()=>{window.removeEventListener("pointerup",this.handleRepeatend),window.removeEventListener("blur",this.handleRepeatend),this.autoRepeat&&(this.isRepeating=!1)},this.location=""}set href(r){this._href=r;const t=this._href.toString();t&&t.indexOf("http")!=0?et.onChange(this):et.offChange(this),this.requestUpdate()}get href(){return this._href}handleNavigation(r){r.preventDefault(),et.changeFromComponent(this)}handleChange(r){if(!(r?.type=="click"&&this.autoRepeat)&&(super.handleChange(),(this.pushState||this.goBack!==null)&&(r?.preventDefault(),r?.stopPropagation(),et.changeFromComponent(this)),this.hasAttribute("reset"))){const t=this.getAttribute("reset"),i=t?k.get(t):this.getFormPublisher();i&&i.set({})}}handleRepeatStart(r){this.autoRepeat&&(this.handleChange(r),this.pointerDownTime=Date.now(),this.isRepeating=!0,this.repeat()),window.addEventListener("pointerup",this.handleRepeatend),window.addEventListener("blur",this.handleRepeatend)}repeat(){if(this.isRepeating){if(this.hasAttribute("disabled")){this.isRepeating=!1;return}window.requestAnimationFrame(this.repeat.bind(this)),!(Date.now()-this.pointerDownTime<500)&&(Date.now()-this.lastRepeatTime<100||(this.handleChange(),this.lastRepeatTime=Date.now()))}}connectedCallback(){super.connectedCallback()}setCheckedValue(r){if(this.name){if(r?this.setAttribute("active","true"):this.removeAttribute("active"),r==this._checked)return;super.setCheckedValue(r)}}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}willUpdate(r){(r.has("href")||r.has("autoActive"))&&et.updateComponentActiveState(this),r.has("location")&&et.updateComponentActiveState(this)}render(){const r={flexDirection:this.direction,alignItems:this.alignItems,justifyContent:this.justify,align:this.align,minWidth:this.minWidth},t=v`
110
110
  <button
111
111
  part="button"
112
112
  class=${this.hasPrefix||this.hasSuffix?"has-prefix-or-suffix":""}
@@ -130,9 +130,9 @@
130
130
  part="suffix"
131
131
  name="suffix"
132
132
  ></slot>
133
- ${this.loading==!0?b`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}
133
+ ${this.loading==!0?v`<sonic-icon name="loader" class="loader"></sonic-icon>`:""}
134
134
  </button>
135
- `;return this.href?b`<a
135
+ `;return this.href?v`<a
136
136
  href="${this.href}"
137
137
  download=${C(this.download)}
138
138
  target=${C(this.target)}
@@ -140,7 +140,7 @@
140
140
  aria-labelledby=${C(this.ariaLabelledby)}
141
141
  @click=${this.pushState||this.goBack!==null?this.handleNavigation:null}
142
142
  >${t}</a
143
- >`:b`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};M.styles=[Dt,P`
143
+ >`:v`${t}`}onSlotChange(){this.hasPrefix=!!this.prefixes?.length,this.hasSuffix=!!this.suffixes?.length}};I.styles=[Ot,$`
144
144
  * {
145
145
  box-sizing: border-box;
146
146
  }
@@ -506,11 +506,11 @@
506
506
  transform: translate(-50%, -50%) rotate(359deg);
507
507
  }
508
508
  }
509
- `],V([a({type:String,reflect:!0})],M.prototype,"type",2),V([a({type:String,reflect:!0})],M.prototype,"variant",2),V([a({type:String,reflect:!0})],M.prototype,"size",2),V([a({type:String,reflect:!0})],M.prototype,"shape",2),V([a({type:String})],M.prototype,"direction",2),V([a({type:String,reflect:!0})],M.prototype,"alignItems",2),V([a({type:String})],M.prototype,"justify",2),V([a({type:String,reflect:!0})],M.prototype,"align",2),V([a({type:String})],M.prototype,"minWidth",2),V([a({type:Boolean,reflect:!0})],M.prototype,"icon",2),V([a({type:String})],M.prototype,"download",2),V([a({type:String})],M.prototype,"autoActive",2),V([a({type:Boolean,reflect:!0})],M.prototype,"loading",2),V([E()],M.prototype,"hasPrefix",2),V([E()],M.prototype,"hasSuffix",2),V([Pe({flatten:!0,slot:"prefix"})],M.prototype,"prefixes",2),V([Pe({flatten:!0,slot:"suffix"})],M.prototype,"suffixes",2),V([a({type:String})],M.prototype,"target",2),V([a({type:String})],M.prototype,"href",1),V([a({type:String})],M.prototype,"goBack",2),V([a({type:Boolean})],M.prototype,"pushState",2),V([a({type:Boolean,reflect:!0})],M.prototype,"active",2),V([a({type:Boolean,reflect:!0})],M.prototype,"autoRepeat",2),V([a({type:String,attribute:"data-aria-controls"})],M.prototype,"ariaControls",2),V([a({type:Boolean,attribute:"data-aria-expanded"})],M.prototype,"sonicAriaExpanded",2),V([E()],M.prototype,"location",2),M=V([x(an)],M);/**
509
+ `],V([a({type:String,reflect:!0})],I.prototype,"type",2),V([a({type:String,reflect:!0})],I.prototype,"variant",2),V([a({type:String,reflect:!0})],I.prototype,"size",2),V([a({type:String,reflect:!0})],I.prototype,"shape",2),V([a({type:String})],I.prototype,"direction",2),V([a({type:String,reflect:!0})],I.prototype,"alignItems",2),V([a({type:String})],I.prototype,"justify",2),V([a({type:String,reflect:!0})],I.prototype,"align",2),V([a({type:String})],I.prototype,"minWidth",2),V([a({type:Boolean,reflect:!0})],I.prototype,"icon",2),V([a({type:String})],I.prototype,"download",2),V([a({type:String})],I.prototype,"autoActive",2),V([a({type:Boolean,reflect:!0})],I.prototype,"loading",2),V([E()],I.prototype,"hasPrefix",2),V([E()],I.prototype,"hasSuffix",2),V([$e({flatten:!0,slot:"prefix"})],I.prototype,"prefixes",2),V([$e({flatten:!0,slot:"suffix"})],I.prototype,"suffixes",2),V([a({type:String})],I.prototype,"target",2),V([a({type:String})],I.prototype,"href",1),V([a({type:String})],I.prototype,"goBack",2),V([a({type:Boolean})],I.prototype,"pushState",2),V([a({type:Boolean,reflect:!0})],I.prototype,"active",2),V([a({type:Boolean,reflect:!0})],I.prototype,"autoRepeat",2),V([a({type:String,attribute:"data-aria-controls"})],I.prototype,"ariaControls",2),V([a({type:Boolean,attribute:"data-aria-expanded"})],I.prototype,"sonicAriaExpanded",2),V([E()],I.prototype,"location",2),I=V([P(wn)],I);/**
510
510
  * @license
511
511
  * Copyright 2017 Google LLC
512
512
  * SPDX-License-Identifier: BSD-3-Clause
513
- */const ar=(r,t,i)=>{const s=new Map;for(let e=t;e<=i;e++)s.set(r[e],e);return s},Ps=Zt(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,i){let s;i===void 0?i=t:t!==void 0&&(s=t);const e=[],o=[];let n=0;for(const l of r)e[n]=s?s(l,n):n,o[n]=i(l,n),n++;return{values:o,keys:e}}render(r,t,i){return this.dt(r,t,i).values}update(r,[t,i,s]){const e=Ao(r),{values:o,keys:n}=this.dt(t,i,s);if(!Array.isArray(e))return this.ut=n,o;const l=this.ut??=[],c=[];let h,u,d=0,g=e.length-1,m=0,v=o.length-1;for(;d<=g&&m<=v;)if(e[d]===null)d++;else if(e[g]===null)g--;else if(l[d]===n[m])c[m]=ce(e[d],o[m]),d++,m++;else if(l[g]===n[v])c[v]=ce(e[g],o[v]),g--,v--;else if(l[d]===n[v])c[v]=ce(e[d],o[v]),Ve(r,c[v+1],e[d]),d++,v--;else if(l[g]===n[m])c[m]=ce(e[g],o[m]),Ve(r,e[d],e[g]),g--,m++;else if(h===void 0&&(h=ar(n,m,v),u=ar(l,d,g)),h.has(l[d]))if(h.has(l[g])){const y=u.get(n[m]),$=y!==void 0?e[y]:null;if($===null){const L=Ve(r,e[d]);ce(L,o[m]),c[m]=L}else c[m]=ce($,o[m]),Ve(r,e[d],$),e[y]=null;m++}else Qs(e[g]),g--;else Qs(e[d]),d++;for(;m<=v;){const y=Ve(r,c[v+1]);ce(y,o[m]),c[m++]=y}for(;d<=g;){const y=e[d++];y!==null&&Qs(y)}return this.ut=n,So(r,c),vt}}),ln=new WeakMap;let lr=0;const oi=new Map,cr=new WeakSet,hr=()=>new Promise((r=>requestAnimationFrame(r))),dr=(r,t)=>{const i=r-t;return i===0?void 0:i},ur=(r,t)=>{const i=r/t;return i===1?void 0:i},ni={left:(r,t)=>{const i=dr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(r,t)=>{const i=dr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(r,t)=>{let i;t===0&&(t=1,i={width:"1px"});const s=ur(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(r,t)=>{let i;t===0&&(t=1,i={height:"1px"});const s=ur(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},cn={duration:333,easing:"ease-in-out"},hn=["left","top","width","height","opacity","color","background"],pr=new WeakMap;class dn extends Js{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===he.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){this.l?.(),this.l=void 0}render(t){return S}getController(){return ln.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const s=this.u===void 0;return s&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((e=>this.t=!0)),this.element=t.element,pr.set(this.element,this)),this.optionsOrCallback=i,(s||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=hn,this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const o=i[e]??(ni[e]?void 0:s[e]),n=Number(o);t[e]=isNaN(n)?o+"":n})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((s,e)=>{if(Array.isArray(s)){if(Array.isArray(e)&&e.length===s.length&&s.every(((o,n)=>o===e[n])))return!1}else if(e===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await hr;const i=this.O(),s=this.j(this.options.keyframeOptions,i),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,i);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=oi.get(this.options.inId);if(o){oi.delete(this.options.inId);const{from:n,to:l}=this.N(o,e,i);t=this.calculateKeyframes(n,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,lr++,t.forEach((c=>c.zIndex=lr))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&oi.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await hr(),this.i?.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const s=this.m();this.log("stabilizing out");const e=this.A.left-s.left,o=this.A.top-s.top;getComputedStyle(this.element).position!=="static"||e===0&&o===0||(this.element.style.position="relative"),e!==0&&(this.element.style.left=e+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){this.options.onStart?.(this)}didFinish(t){t&&this.options.onComplete?.(this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i?.parentNode){const s=pr.get(i);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=cr.has(this.u);return t||this.u.updateComplete.then((()=>{cr.add(this.u)})),t}j(t,i=this.O()){const s={...cn};return i.forEach((e=>Object.assign(s,e.options.keyframeOptions))),Object.assign(s,t),s}N(t,i,s){t={...t},i={...i};const e=s.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let o=1,n=1;return e.length>0&&(e.forEach((l=>{l.width&&(o/=l.width),l.height&&(n/=l.height)})),t.left!==void 0&&i.left!==void 0&&(t.left=o*t.left,i.left=o*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=n*t.top,i.top=n*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){const e={},o={};let n=!1;const l={};for(const c in i){const h=t[c],u=i[c];if(c in ni){const d=ni[c];if(h===void 0||u===void 0)continue;const g=d(h,u);g.transform!==void 0&&(l[c]=g.value,n=!0,e.transform=`${e.transform??""} ${g.transform}`,g.overrideFrom!==void 0&&Object.assign(e,g.overrideFrom))}else h!==u&&h!==void 0&&u!==void 0&&(n=!0,e[c]=h,o[c]=u)}return e.transformOrigin=o.transformOrigin=s?"center center":"top left",this.animatingProperties=l,n?[e,o]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished}catch{}e?.remove(this)}return this.didFinish(s),s}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const un=Zt(dn),pn={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
513
+ */const mr=(r,t,i)=>{const s=new Map;for(let e=t;e<=i;e++)s.set(r[e],e);return s},Ls=Zt(class extends Ae{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("repeat() can only be used in text expressions")}dt(r,t,i){let s;i===void 0?i=t:t!==void 0&&(s=t);const e=[],o=[];let n=0;for(const l of r)e[n]=s?s(l,n):n,o[n]=i(l,n),n++;return{values:o,keys:e}}render(r,t,i){return this.dt(r,t,i).values}update(r,[t,i,s]){const e=Ro(r),{values:o,keys:n}=this.dt(t,i,s);if(!Array.isArray(e))return this.ut=n,o;const l=this.ut??=[],c=[];let h,u,d=0,g=e.length-1,f=0,m=o.length-1;for(;d<=g&&f<=m;)if(e[d]===null)d++;else if(e[g]===null)g--;else if(l[d]===n[f])c[f]=ce(e[d],o[f]),d++,f++;else if(l[g]===n[m])c[m]=ce(e[g],o[m]),g--,m--;else if(l[d]===n[m])c[m]=ce(e[d],o[m]),Be(r,c[m+1],e[d]),d++,m--;else if(l[g]===n[f])c[f]=ce(e[g],o[f]),Be(r,e[d],e[g]),g--,f++;else if(h===void 0&&(h=mr(n,f,m),u=mr(l,d,g)),h.has(l[d]))if(h.has(l[g])){const y=u.get(n[f]),_=y!==void 0?e[y]:null;if(_===null){const D=Be(r,e[d]);ce(D,o[f]),c[f]=D}else c[f]=ce(_,o[f]),Be(r,e[d],_),e[y]=null;f++}else oi(e[g]),g--;else oi(e[d]),d++;for(;f<=m;){const y=Be(r,c[m+1]);ce(y,o[f]),c[f++]=y}for(;d<=g;){const y=e[d++];y!==null&&oi(y)}return this.ut=n,zo(r,c),vt}}),xn=new WeakMap;let br=0;const ui=new Map,gr=new WeakSet,vr=()=>new Promise((r=>requestAnimationFrame(r))),yr=(r,t)=>{const i=r-t;return i===0?void 0:i},_r=(r,t)=>{const i=r/t;return i===1?void 0:i},pi={left:(r,t)=>{const i=yr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateX(${i}px)`}},top:(r,t)=>{const i=yr(r,t);return{value:i,transform:i==null||isNaN(i)?void 0:`translateY(${i}px)`}},width:(r,t)=>{let i;t===0&&(t=1,i={width:"1px"});const s=_r(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(r,t)=>{let i;t===0&&(t=1,i={height:"1px"});const s=_r(r,t);return{value:s,overrideFrom:i,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},Pn={duration:333,easing:"ease-in-out"},$n=["left","top","width","height","opacity","color","background"],wr=new WeakMap;class Cn extends ni{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===he.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){this.resolveFinished?.(),this.finished=new Promise((t=>{this.l=t}))}async resolveFinished(){this.l?.(),this.l=void 0}render(t){return S}getController(){return xn.get(this.u)}isDisabled(){return this.options.disabled||this.getController()?.disabled}update(t,[i]){const s=this.u===void 0;return s&&(this.u=t.options?.host,this.u.addController(this),this.u.updateComplete.then((e=>this.t=!0)),this.element=t.element,wr.set(this.element,this)),this.optionsOrCallback=i,(s||typeof i!="function")&&this.p(i),this.render(i)}p(t){t=t??{};const i=this.getController();i!==void 0&&((t={...i.defaultOptions,...t}).keyframeOptions={...i.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??=$n,this.options=t}m(){const t={},i=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach((e=>{const o=i[e]??(pi[e]?void 0:s[e]),n=Number(o);t[e]=isNaN(n)?o+"":n})),t}v(){let t,i=!0;return this.options.guard&&(t=this.options.guard(),i=((s,e)=>{if(Array.isArray(s)){if(Array.isArray(e)&&e.length===s.length&&s.every(((o,n)=>o===e[n])))return!1}else if(e===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&i&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await vr;const i=this.O(),s=this.j(this.options.keyframeOptions,i),e=this.m();if(this.A!==void 0){const{from:o,to:n}=this.N(this.A,e,i);this.log("measured",[this.A,e,o,n]),t=this.calculateKeyframes(o,n)}else{const o=ui.get(this.options.inId);if(o){ui.delete(this.options.inId);const{from:n,to:l}=this.N(o,e,i);t=this.calculateKeyframes(n,l),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,br++,t.forEach((c=>c.zIndex=br))}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){this.P=this.element.getAttribute("style"),this.webAnimation?.commitStyles(),this.webAnimation?.cancel()}reconnected(){}async disconnected(){if(!this.h||(this.options.id!==void 0&&ui.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await vr(),this.i?.isConnected){const i=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,i),this.options.stabilizeOut){const s=this.m();this.log("stabilizing out");const e=this.A.left-s.left,o=this.A.top-s.top;getComputedStyle(this.element).position!=="static"||e===0&&o===0||(this.element.style.position="relative"),e!==0&&(this.element.style.left=e+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){this.options.onStart?.(this)}didFinish(t){t&&this.options.onComplete?.(this),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let i=this.element.parentNode;i;i=i?.parentNode){const s=wr.get(i);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=gr.has(this.u);return t||this.u.updateComplete.then((()=>{gr.add(this.u)})),t}j(t,i=this.O()){const s={...Pn};return i.forEach((e=>Object.assign(s,e.options.keyframeOptions))),Object.assign(s,t),s}N(t,i,s){t={...t},i={...i};const e=s.map((l=>l.animatingProperties)).filter((l=>l!==void 0));let o=1,n=1;return e.length>0&&(e.forEach((l=>{l.width&&(o/=l.width),l.height&&(n/=l.height)})),t.left!==void 0&&i.left!==void 0&&(t.left=o*t.left,i.left=o*i.left),t.top!==void 0&&i.top!==void 0&&(t.top=n*t.top,i.top=n*i.top)),{from:t,to:i}}calculateKeyframes(t,i,s=!1){const e={},o={};let n=!1;const l={};for(const c in i){const h=t[c],u=i[c];if(c in pi){const d=pi[c];if(h===void 0||u===void 0)continue;const g=d(h,u);g.transform!==void 0&&(l[c]=g.value,n=!0,e.transform=`${e.transform??""} ${g.transform}`,g.overrideFrom!==void 0&&Object.assign(e,g.overrideFrom))}else h!==u&&h!==void 0&&u!==void 0&&(n=!0,e[c]=h,o[c]=u)}return e.transformOrigin=o.transformOrigin=s?"center center":"top left",this.animatingProperties=l,n?[e,o]:void 0}async animate(t,i=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,i]),s=!0,this.webAnimation=this.element.animate(t,i);const e=this.getController();e?.add(this);try{await this.webAnimation.finished}catch{}e?.remove(this)}return this.didFinish(s),s}isAnimating(){return this.webAnimation?.playState==="running"||this.webAnimation?.pending}log(t,i){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,i)}}const Sn=Zt(Cn),An={core:{cancel:`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
514
514
  <path d="M6.75827 17.2426L12.0009 12M17.2435 6.75736L12.0009 12M12.0009 12L6.75827 6.75736M12.0009 12L17.2435 17.2426" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
515
515
  </svg>
516
516
  `,"check-circled-outline":`<svg width="24" height="24" stroke-width="1.5" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -546,7 +546,7 @@
546
546
  <path d="M12 17.01L12.01 16.9989" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
547
547
  <path d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/>
548
548
  </svg>
549
- `}},$s=new Map,Ke={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let fr=!1;function fn(){fr||(Ke.custom.url=document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath")||"",Ke.custom.defaultPrefix=document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")||"",Ke.custom.url&&(fr=!0))}const mr=sessionStorage.getItem("sonicIconsCache"),Ut=mr?JSON.parse(mr):{icons:{},names:[]},mn=100,Mi=class Mi{};Mi.default={get:async t=>{const i=t.library;if(!t.name)return"";const s=t.name,e=pn;if(i=="custom"&&fn(),i&&i in Ke){const o=Ke[i],n=t.prefix||o.defaultPrefix||"",l=e[i]||{};e[i]=l;const c=n+"-"+s;if(l[c])return F(l[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",s);if(Ut.icons[h]){const d=Ut.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,F(d);delete Ut.icons[h]}if(!$s.has(h)){const d=new Promise(async g=>{try{const m=await fetch(h);if(!m.ok){g("");return}try{const v=m.headers.get("content-type")||"";if(!v.includes("image/svg+xml")&&!v.includes("svg")){g("");return}const y=await m.text(),$=/^\s*<svg[\s>]/i.test(y);g($?y:"")}catch{g("")}}catch{Eo(),g("")}});$s.set(h,d)}const u=await $s.get(h);if($s.delete(h),l[c]=u||"",u&&/^\s*<svg[\s>]/i.test(u)&&(Ut.icons[h]=u,Ut.names.push(h)),Ut.names.length>mn){const d=Ut.names.shift();delete Ut.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Ut)),u?F(u):""}return F(e.core[t.name]||"")}};let ai=Mi;var bn=Object.defineProperty,gn=Object.getOwnPropertyDescriptor,Ye=(r,t,i,s)=>{for(var e=s>1?void 0:s?gn(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&&bn(t,i,e),e};const vn="sonic-icon";let de=class extends w{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await ai.default.get({name:this.name,prefix:this.prefix,library:this.library})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:S}};de.styles=P`
549
+ `}},Es=new Map,Ge={heroicons:{url:"https://cdn.jsdelivr.net/npm/heroicons@2.0.4/24/$prefix/$name.svg",defaultPrefix:"outline"},iconoir:{url:"https://cdnjs.cloudflare.com/ajax/libs/iconoir/5.1.4/icons/$name.svg"},feathers:{url:"https://cdn.jsdelivr.net/npm/feather-icons@4.29.0/dist/icons/$name.svg"},lucide:{url:"https://cdn.jsdelivr.net/npm/lucide-static@0.16.29/icons/$name.svg"},material:{url:"https://cdn.jsdelivr.net/npm/@material-icons/svg@1.0.5/svg/$name/$prefix.svg",defaultPrefix:"regular"},fontAwesome:{url:"https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.1/svgs/$prefix/$name.svg",defaultPrefix:"regular"},custom:{url:"",defaultPrefix:""}};let xr=!1;function kn(){xr||(Ge.custom.url=document.querySelector("[customIconLibraryPath]")?.getAttribute("customIconLibraryPath")||"",Ge.custom.defaultPrefix=document.querySelector("[customIconDefaultPrefix]")?.getAttribute("customIconDefaultPrefix")||"",Ge.custom.url&&(xr=!0))}const Pr=sessionStorage.getItem("sonicIconsCache"),Ut=Pr?JSON.parse(Pr):{icons:{},names:[]},Dn=100,Vi=class Vi{};Vi.default={get:async t=>{const i=t.library;if(!t.name)return"";const s=t.name,e=An;if(i=="custom"&&kn(),i&&i in Ge){const o=Ge[i],n=t.prefix||o.defaultPrefix||"",l=e[i]||{};e[i]=l;const c=n+"-"+s;if(l[c])return F(l[c]);const h=(o.url||"").replace("$prefix",n).replace("$name",s);if(Ut.icons[h]){const d=Ut.icons[h];if(/^\s*<svg[\s>]/i.test(d||""))return l[c]=d,F(d);delete Ut.icons[h]}if(!Es.has(h)){const d=new Promise(async g=>{try{const f=await fetch(h);if(!f.ok){g("");return}try{const m=f.headers.get("content-type")||"";if(!m.includes("image/svg+xml")&&!m.includes("svg")){g("");return}const y=await f.text(),_=/^\s*<svg[\s>]/i.test(y);g(_?y:"")}catch{g("")}}catch{Wo(),g("")}});Es.set(h,d)}const u=await Es.get(h);if(Es.delete(h),l[c]=u||"",u&&/^\s*<svg[\s>]/i.test(u)&&(Ut.icons[h]=u,Ut.names.push(h)),Ut.names.length>Dn){const d=Ut.names.shift();delete Ut.icons[d]}return sessionStorage.setItem("sonicIconsCache",JSON.stringify(Ut)),u?F(u):""}return F(e.core[t.name]||"")}};let fi=Vi;var On=Object.defineProperty,Ln=Object.getOwnPropertyDescriptor,Xe=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ln(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&&On(t,i,e),e};const En="sonic-icon";let ue=class extends x{constructor(){super(...arguments),this.iconText="",this.name="",this.prefix="",this.library=""}async updateIcon(){this.iconText=await fi.default.get({name:this.name,prefix:this.prefix,library:this.library})}connectedCallback(){this.setAttribute("aria-hidden","true"),super.connectedCallback()}willUpdate(r){(r.has("name")||r.has("prefix")||r.has("library"))&&this.updateIcon(),super.willUpdate(r)}render(){return this.iconText?this.iconText:S}};ue.styles=$`
550
550
  :host {
551
551
  line-height: 0.1em;
552
552
  width: fit-content;
@@ -596,7 +596,7 @@
596
596
  :host([size="3xl"]) svg {
597
597
  --_sc-icon-size: 2.8em;
598
598
  }
599
- `,Ye([E()],de.prototype,"iconText",2),Ye([a({type:String})],de.prototype,"name",2),Ye([a({type:String})],de.prototype,"prefix",2),Ye([a({type:String})],de.prototype,"library",2),de=Ye([x(vn)],de);const Ze=P`
599
+ `,Xe([E()],ue.prototype,"iconText",2),Xe([a({type:String})],ue.prototype,"name",2),Xe([a({type:String})],ue.prototype,"prefix",2),Xe([a({type:String})],ue.prototype,"library",2),ue=Xe([P(En)],ue);const Qe=$`
600
600
  .custom-scroll {
601
601
  overflow: auto !important;
602
602
  overflow-y: overlay !important;
@@ -618,7 +618,7 @@
618
618
  border: solid 0.15rem transparent;
619
619
  }
620
620
  }
621
- `;var yn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor,St=(r,t,i,s)=>{for(var e=s>1?void 0:s?wn(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&&yn(t,i,e),e};const _n={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},xn="sonic-toast-item";let yt=class extends w{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0,this._titleId=""}getAriaRole(){return this.status==="error"?"alert":"status"}getAriaLive(){return this.status==="error"?null:"polite"}getTitleId(){return this._titleId?this._titleId:(this._titleId=this.id?`toast-title-${this.id}`:`toast-title-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,this._titleId)}getCloseButtonLabel(){const r={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&r[this.status]||"Fermer la notification"}render(){if(this.dismissForever){const s=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(s)[this.id])return S}if(!this.visible)return S;const r=this.title?this.getTitleId():void 0,t=!this.title&&this.text?this.text.length>100?this.text.substring(0,100).replace(/\s+\S*$/,"")+"...":this.text:void 0,i=this.getAriaLive();return b`<div
621
+ `;var Tn=Object.defineProperty,Nn=Object.getOwnPropertyDescriptor,St=(r,t,i,s)=>{for(var e=s>1?void 0:s?Nn(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&&Tn(t,i,e),e};const Mn={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty"},In="sonic-toast-item";let yt=class extends x{constructor(){super(...arguments),this.title="",this.id="",this.text="",this.status="",this.ghost=!1,this.preserve=!1,this.dismissForever=!1,this.maxHeight="10rem",this.visible=!0,this._titleId=""}getAriaRole(){return this.status==="error"?"alert":"status"}getAriaLive(){return this.status==="error"?null:"polite"}getTitleId(){return this._titleId?this._titleId:(this._titleId=this.id?`toast-title-${this.id}`:`toast-title-${Date.now()}-${Math.random().toString(36).slice(2,11)}`,this._titleId)}getCloseButtonLabel(){const r={error:"Fermer le message d'erreur",warning:"Fermer l'avertissement",success:"Fermer le message de succès",info:"Fermer l'information"};return this.status&&r[this.status]||"Fermer la notification"}render(){if(this.dismissForever){const s=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(s)[this.id])return S}if(!this.visible)return S;const r=this.title?this.getTitleId():void 0,t=!this.title&&this.text?this.text.length>100?this.text.substring(0,100).replace(/\s+\S*$/,"")+"...":this.text:void 0,i=this.getAriaLive();return v`<div
622
622
  class="sonic-toast ${this.status} ${this.ghost?"ghost":""}"
623
623
  role=${this.getAriaRole()}
624
624
  aria-live=${i||S}
@@ -636,15 +636,15 @@
636
636
  class="sonic-toast-content custom-scroll"
637
637
  style="max-height: ${this.maxHeight} ;"
638
638
  >
639
- ${this.status&&b`<sonic-icon
640
- name=${_n[this.status]}
639
+ ${this.status&&v`<sonic-icon
640
+ name=${Mn[this.status]}
641
641
  class="sonic-toast-icon"
642
642
  size="2xl"
643
643
  aria-hidden="true"
644
644
  ></sonic-icon>`}
645
645
 
646
646
  <div class="sonic-toast-text">
647
- ${this.title?b`<div class="sonic-toast-title" id=${r}>
647
+ ${this.title?v`<div class="sonic-toast-title" id=${r}>
648
648
  ${this.title}
649
649
  </div>`:""}
650
650
  ${this.text?F(this.text):""}
@@ -653,7 +653,7 @@
653
653
 
654
654
  ${this.preserve?"":this.autoHide()}
655
655
  </div>
656
- </div>`}hide(){if(Xt.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};yt.styles=[Ze,P`
656
+ </div>`}hide(){if(Gt.getClosestElement(this,"sonic-toast")||(this.visible=!1),this.dismissForever){const r=localStorage.getItem("sonic-toast-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-toast-dismissed",JSON.stringify(t))}this.dispatchEvent(new CustomEvent("hide",{bubbles:!0}))}show(){this.visible=!0}autoHide(){setTimeout(()=>{this.hide()},6e3)}};yt.styles=[Qe,$`
657
657
  * {
658
658
  box-sizing: border-box;
659
659
  }
@@ -833,7 +833,7 @@
833
833
  opacity: 0.85;
834
834
  pointer-events: none;
835
835
  }
836
- `],St([a({type:String})],yt.prototype,"title",2),St([a({type:String})],yt.prototype,"id",2),St([a({type:String})],yt.prototype,"text",2),St([a({type:String})],yt.prototype,"status",2),St([a({type:Boolean})],yt.prototype,"ghost",2),St([a({type:Boolean})],yt.prototype,"preserve",2),St([a({type:Boolean})],yt.prototype,"dismissForever",2),St([a({type:String})],yt.prototype,"maxHeight",2),St([E()],yt.prototype,"visible",2),St([E()],yt.prototype,"_titleId",2),yt=St([x(xn)],yt);const Pn=P`
836
+ `],St([a({type:String})],yt.prototype,"title",2),St([a({type:String})],yt.prototype,"id",2),St([a({type:String})],yt.prototype,"text",2),St([a({type:String})],yt.prototype,"status",2),St([a({type:Boolean})],yt.prototype,"ghost",2),St([a({type:Boolean})],yt.prototype,"preserve",2),St([a({type:Boolean})],yt.prototype,"dismissForever",2),St([a({type:String})],yt.prototype,"maxHeight",2),St([E()],yt.prototype,"visible",2),St([E()],yt.prototype,"_titleId",2),yt=St([P(In)],yt);const jn=$`
837
837
  :host {
838
838
  /* POLICES */
839
839
  /*
@@ -904,7 +904,7 @@
904
904
  --sc-contrast-content: #fff;
905
905
  --sc-contrast: #000000;
906
906
  }
907
- `,$n=P`
907
+ `,Fn=$`
908
908
  :host([theme="light"]) {
909
909
  /*Boutons*/
910
910
  --sc-primary: var(--sc-base-800);
@@ -933,7 +933,7 @@
933
933
  --sc-base-900: #0f172a;
934
934
  --sc-base-content: var(--sc-base-700);
935
935
  }
936
- `,br=P`
936
+ `,$r=$`
937
937
  --sc-primary: var(--sc-dark-primary, var(--sc-base-700));
938
938
  --sc-info: var(--sc-dark-info, #3abff8);
939
939
  --sc-danger: var(--sc-dark-danger, #f87272);
@@ -958,17 +958,17 @@
958
958
  --sc-base-800: var(--sc-dark-base-800, #d9dce0);
959
959
  --sc-base-900: var(--sc-dark-base-900, #e5e7eb);
960
960
  --sc-base-content: var(--sc-dark-base-content, #e5e7eb);
961
- `,Cn=P`
961
+ `,zn=$`
962
962
  :host([theme="dark"]) {
963
- ${br}
963
+ ${$r}
964
964
  }
965
965
 
966
966
  @media (prefers-color-scheme: dark) {
967
967
  :host([theme="auto"]) {
968
- ${br}
968
+ ${$r}
969
969
  }
970
970
  }
971
- `;var Sn=Object.defineProperty,An=Object.getOwnPropertyDescriptor,Xe=(r,t,i,s)=>{for(var e=s>1?void 0:s?An(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&&Sn(t,i,e),e};const kn="sonic-theme";let wt=class extends w{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,wt.instance=this}static getPopContainer(){return wt.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const r=document.styleSheets,t=r.length,i=[];for(let e=0;e<t;e++){const o=r[e];o.href&&(o.href.includes("googleapis")||o.href.includes("typekit.net"))&&i.push(o.href)}const s={variables:this.getCssVariables(),fonts:i};k.get("sonic-theme")?.set(s),document.querySelectorAll("iframe").forEach(e=>e.contentWindow?.postMessage({type:"SonicTheme",...s},"*"))}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[...wt.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const l=n.style;for(const c of l)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),s={};return r.forEach(e=>s[e]=i.getPropertyValue(e)),s}render(){return b`<slot></slot>`}};wt.styles=[$n,Cn,Pn,P`
971
+ `;var Rn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,Je=(r,t,i,s)=>{for(var e=s>1?void 0:s?Un(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&&Rn(t,i,e),e};const Vn="sonic-theme";let _t=class extends x{constructor(){super(),this.background=!1,this.color=!1,this.font=!1,_t.instance=this}static getPopContainer(){return _t.instance||document.body}connectedCallback(){super.connectedCallback(),window.addEventListener("message",r=>this.receiveMessage(r),!1),window.dispatchEvent(new CustomEvent("SonicThemeReady")),this.postCSSVars()}postCSSVars(){const r=document.styleSheets,t=r.length,i=[];for(let e=0;e<t;e++){const o=r[e];o.href&&(o.href.includes("googleapis")||o.href.includes("typekit.net"))&&i.push(o.href)}const s={variables:this.getCssVariables(),fonts:i};k.get("sonic-theme")?.set(s),document.querySelectorAll("iframe").forEach(e=>e.contentWindow?.postMessage({type:"SonicTheme",...s},"*"))}receiveMessage(r){const t=r.data;!t.type||t.type!="GetSonicTheme"||this.postCSSVars()}getCssVariables(){const r=[],t=[..._t.styles.map(e=>e.styleSheet),...Array.from(document.styleSheets)];for(const e of t)try{if(!e)continue;const o=e.cssRules;for(const n of o){if(!("style"in n))continue;const l=n.style;for(const c of l)r.includes(c)||c.indexOf("--sc")!==0||r.push(c)}}catch{console.warn("Erreur lors de la récupération des variables CSS")}const i=window.getComputedStyle(this),s={};return r.forEach(e=>s[e]=i.getPropertyValue(e)),s}render(){return v`<slot></slot>`}};_t.styles=[Fn,zn,jn,$`
972
972
  :host([color]) {
973
973
  color: var(--sc-base-content, #000);
974
974
  }
@@ -1000,8 +1000,8 @@
1000
1000
  transition-property: scale, opacity;
1001
1001
  transition-timing-function: cubic-bezier(0.25, 0.25, 0.42, 1.225);
1002
1002
  }
1003
- `],Xe([a({type:String,reflect:!0})],wt.prototype,"theme",2),Xe([a({type:Boolean,reflect:!0})],wt.prototype,"background",2),Xe([a({type:Boolean,reflect:!0})],wt.prototype,"color",2),Xe([a({type:Boolean,reflect:!0})],wt.prototype,"font",2),wt=Xe([x(kn)],wt);var On=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,gr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Dn(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&&On(t,i,e),e};const Ln="sonic-toast";let D=class extends w{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),D.handleExistingToastDelegation(),this.toasts?b`<div style=${pt(i)}>
1004
- ${Ps(this.toasts,s=>s.id,s=>b`
1003
+ `],Je([a({type:String,reflect:!0})],_t.prototype,"theme",2),Je([a({type:Boolean,reflect:!0})],_t.prototype,"background",2),Je([a({type:Boolean,reflect:!0})],_t.prototype,"color",2),Je([a({type:Boolean,reflect:!0})],_t.prototype,"font",2),_t=Je([P(Vn)],_t);var Bn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Cr=(r,t,i,s)=>{for(var e=s>1?void 0:s?qn(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&&Bn(t,i,e),e};const Hn="sonic-toast";let L=class extends x{constructor(){super(...arguments),this.toasts=[]}createRenderRoot(){return this}render(){const t=window.parent!=window;let i={pointerEvents:"none",gap:"1rem",display:"flex",margin:this.toasts.length?"1rem":"0"};return t||(i={...i,margin:"0",width:"calc(100% - 2.5rem)",position:"fixed",bottom:"1.25rem",right:"1.25rem",zIndex:"10000",maxWidth:"64ch",flexDirection:"column-reverse"}),L.handleExistingToastDelegation(),this.toasts?v`<div style=${pt(i)}>
1004
+ ${Ls(this.toasts,s=>s.id,s=>v`
1005
1005
  <sonic-toast-item
1006
1006
  maxHeight=${t?"none":"10rem"}
1007
1007
  status=${C(s.status)}
@@ -1011,28 +1011,28 @@
1011
1011
  ?preserve=${s.preserve}
1012
1012
  id=${C(s.id)}
1013
1013
  @hide=${()=>this.removeItem(s)}
1014
- ${un({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
1014
+ ${Sn({keyframeOptions:{duration:250,easing:"cubic-bezier(0.250, 0.250, 0.420, 1.225)"},in:[{transform:"translateY(0) scale(1.25)",boxShadow:"0 0 0 rgba(0,0,0,0)",opacity:0}],out:[{transform:"scale(.90) ",opacity:0,duration:3e3,easing:"ease-in-out"}],stabilizeOut:!0})}
1015
1015
  >
1016
1016
  <!-- Le texte est passé dans le slot et non pas en propriété pour contrer des problèmatiques de shadow-dom et d'appel exterieur (exemple: fancybox) -->
1017
1017
  ${s.text?F(s.text):""}
1018
1018
  </sonic-toast-item>
1019
1019
  `)}
1020
- </div>`:S}static removeAll(){if(D.delegateToasts){D.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=D.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.ghost))}static removeItemsByStatus(t){if(D.delegateToasts){D.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const i=D.getInstance();i&&(i.toasts=i.toasts.filter(s=>s.status!==t))}static removeTemporaryItems(){if(D.delegateToasts){D.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=D.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.preserve))}static getInstance(){return D.instance||(D.instance=document.createElement("sonic-toast"),wt.getPopContainer().prepend(D.instance)),D.instance}static add(t){if(D.delegateToasts){D.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const i=D.getInstance(),s=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:s,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(i?.toasts.length){const l={...n};for(const c of i.toasts){const h={...c};if(l.id=h.id=0,tt.shallowEqual(l,h))return null}}return i&&(i.toasts=[...i.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=D.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(D.delegateToasts){D.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const i=D.getInstance();i&&i.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(i=>(i={...i},delete i.id,!tt.shallowEqual(i,t,!1))))}};D.delegateToasts=!1,gr([a({type:Array})],D.prototype,"toasts",2),D=gr([x(Ln)],D),typeof window<"u"&&(window[hs+"Toast"]=window[hs+"Toast"]||D);function En(){const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="removeItemsByStatus"&&D.removeItemsByStatus(i.data.status),i.data.type=="removeTemporaryItems"&&D.removeTemporaryItems(),i.data.type=="sonicToastAvailable"&&(D.delegateToasts=!0,D.handleExistingToastDelegation()),i.data.type=="addToasts"&&(D.getInstance().toasts=[...D.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&D.removeAll(),i.data.type=="removeToast"&&D.removeItem(i.data.toast),i.data.type=="addToast"&&D.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))i.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}En();var Nn=Object.defineProperty,Tn=Object.getOwnPropertyDescriptor,Ge=(r,t,i,s)=>{for(var e=s>1?void 0:s?Tn(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&&Nn(t,i,e),e};const In=new Set,Mn=new Set,jn=r=>{for(const t of Mn)t(r)},li=new Set;let ci=0;Us(async()=>{ci++;const r=ci,t=Array.from(li);for(;t.length>0;){if(r!=ci)return;const i=t.splice(0,4);await Promise.all(i.map(s=>s._fetchData()))}});const hi=(r,t)=>{class i extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}handleStartFetching(){return this._isFetching?(this._mustRefetch=!0,"fetching"):(this._isFetching=!0,"okToFetch")}handleEndFetching(){this._isFetching=!1,this._mustRefetch&&(this._mustRefetch=!1,this._fetchData())}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new Ae(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await k.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=k.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(this.isLoading=!0,tt.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}),this.handleStartFetching()==="fetching")return;let n=null;try{n=await this.api.get(this.endPoint||this.dataProvider||"",e)}catch{}if(this.handleEndFetching(),this.fetchedData=n,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||In.add(this),jn(this.api.lastResult)),!!this.isConnected){if(n)n._sonic_http_response_&&!n._sonic_http_response_.ok&&Object.keys(n).length===1&&D.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const l=n._sonic_http_response_,c=this.key.split(".");n=tt.traverse(n,c,this.hasAttribute("preserveOtherKeys")),n&&tt.isObject(n)&&l&&(n._sonic_http_response_=l)}this.props=n,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){super.disconnectedCallback(),li.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),li.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),o={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),o);let l=[...(this.shadowRoot?this.shadowRoot:this).children].filter(c=>c.nodeName.toLowerCase()!="style")[0];if(l?.nodeName.toLocaleLowerCase()=="slot"&&(l=[...l.children].filter(c=>c.nodeName.toLowerCase()!="style")[0]),!l||l.nodeName.toLocaleLowerCase()=="template"){l=document.createElement("div");const c=l.style;c.pointerEvents="none",c.width="1px",c.height="1px",this.lazyLoadPlaceHolder=l,this.appendChild(l)}l?this.iObserver.observe(l):this.isFirstLoad&&this._fetchData()}onIntersection(e){for(const o of e)if(o.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return Ge([a()],i.prototype,"noErrorsRecordings",2),Ge([a()],i.prototype,"props",1),Ge([a({type:String})],i.prototype,"endPoint",1),Ge([a()],i.prototype,"requestId",2),Ge([a({type:Number})],i.prototype,"refetchEveryMs",2),i};var Fn=Object.defineProperty,zn=Object.getOwnPropertyDescriptor,ue=(r,t,i,s)=>{for(var e=s>1?void 0:s?zn(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&&Fn(t,i,e),e};const Cs=r=>{class t extends r{constructor(...s){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),s.reportValidity()}set type(s){this.hasAttribute("type")&&!this.forceAutoFill&&(s=this.getAttribute("type")),this._type=s,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}}return ue([a()],t.prototype,"forceAutoFill",2),ue([a({type:String})],t.prototype,"type",1),ue([a()],t.prototype,"description",1),ue([a()],t.prototype,"label",1),ue([a({type:String,reflect:!0})],t.prototype,"status",2),ue([a({type:Number})],t.prototype,"tabindex",2),ue([a({type:String})],t.prototype,"autocomplete",2),t},vr=hi,Rn=ri,yr=Oe,wr=Cs,Gt=X,di=qe;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:vr,FormCheckable:Rn,FormElement:yr,FormInput:wr,Subscriber:Gt,TemplatesContainer:di};/**
1020
+ </div>`:S}static removeAll(){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeAllToasts"},"*");return}const t=L.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.ghost))}static removeItemsByStatus(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeItemsByStatus",status:t},"*");return}const i=L.getInstance();i&&(i.toasts=i.toasts.filter(s=>s.status!==t))}static removeTemporaryItems(){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeTemporaryItems"},"*");return}const t=L.getInstance();t&&(t.toasts=t.toasts.filter(i=>i.preserve))}static getInstance(){return L.instance||(L.instance=document.createElement("sonic-toast"),_t.getPopContainer().prepend(L.instance)),L.instance}static add(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"addToast",toast:t},"*");return}const i=L.getInstance(),s=t.id??new Date().valueOf(),o=new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>").test(t.text),n={id:s,text:t.text,title:t.title,status:t.status,preserve:o?!0:t.preserve,ghost:t.ghost,dismissForever:t.dismissForever};if(t.dismissForever&&t.id){const l=localStorage.getItem("sonic-toast-dismissed")||"{}";if(JSON.parse(l)[t.id])return null}if(i?.toasts.length){const l={...n};for(const c of i.toasts){const h={...c};if(l.id=h.id=0,tt.shallowEqual(l,h))return null}}return i&&(i.toasts=[...i.toasts,n]),n}static handleExistingToastDelegation(){if(!this.delegateToasts)return;const t=L.getInstance();window.parent.postMessage({type:"addToasts",toasts:t.toasts},"*"),t.toasts=[]}static removeItem(t){if(L.delegateToasts){L.handleExistingToastDelegation(),window.parent.postMessage({type:"removeToast",toast:t},"*");return}const i=L.getInstance();i&&i.removeItem(t)}removeItem(t){t&&(this.toasts=this.toasts.filter(i=>(i={...i},delete i.id,!tt.shallowEqual(i,t,!1))))}};L.delegateToasts=!1,Cr([a({type:Array})],L.prototype,"toasts",2),L=Cr([P(Hn)],L),typeof window<"u"&&(window[gs+"Toast"]=window[gs+"Toast"]||L);function Wn(){const r=i=>{i.data.type=="querySonicToastAvailability"&&i.source.postMessage({type:"sonicToastAvailable"},"*"),i.data.type=="removeItemsByStatus"&&L.removeItemsByStatus(i.data.status),i.data.type=="removeTemporaryItems"&&L.removeTemporaryItems(),i.data.type=="sonicToastAvailable"&&(L.delegateToasts=!0,L.handleExistingToastDelegation()),i.data.type=="addToasts"&&(L.getInstance().toasts=[...L.getInstance().toasts,...i.data.toasts]),i.data.type=="removeAllToasts"&&L.removeAll(),i.data.type=="removeToast"&&L.removeItem(i.data.toast),i.data.type=="addToast"&&L.add(i.data.toast)},t=window.parent!=window;if(window.addEventListener("message",r,!1),t&&window.parent.postMessage({type:"querySonicToastAvailability"},"*"),!t)for(const i of document.querySelectorAll("iframe"))i.contentWindow?.postMessage({type:"sonicToastAvailable"},"*")}Wn();var Kn=Object.defineProperty,Yn=Object.getOwnPropertyDescriptor,ts=(r,t,i,s)=>{for(var e=s>1?void 0:s?Yn(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&&Kn(t,i,e),e};const Zn=new Set,Gn=new Set,Xn=r=>{for(const t of Gn)t(r)},mi=new Set;let bi=0;Ys(async()=>{bi++;const r=bi,t=Array.from(mi);for(;t.length>0;){if(r!=bi)return;const i=t.splice(0,4);await Promise.all(i.map(s=>s._fetchData()))}});const gi=(r,t)=>{class i extends r{constructor(...e){super(),this.api=null,this.key="",this.isFirstLoad=!0,this.isLoading=!1,this.iObserver=null,this.isFetchEnabled=!0,this.fetchedData=null,this._endPoint="",this.noErrorsRecordings=!1,this.requestId=0,this.refetchEveryMs=0,this._isFetching=!1,this._mustRefetch=!1,this.dataProvider=""}get props(){return super.props}set props(e){super.props=e}set endPoint(e){this._endPoint=e,this.isConnected&&this._fetchData()}get endPoint(){return this._endPoint}handleStartFetching(){return this._isFetching?(this._mustRefetch=!0,"fetching"):(this._isFetching=!0,"okToFetch")}handleEndFetching(){this._isFetching=!1,this._mustRefetch&&(this._mustRefetch=!1,this._fetchData())}async _fetchData(){if(this.requestUpdate(),!this.isFetchEnabled||(this.api=new de(this.getApiConfiguration()),!this.api)||(this.dispatchEvent(new CustomEvent("loading",{detail:this})),this.getAttribute("localStorage")==="enabled"&&await k.getInstance().isLocalStrorageReady,!this.isConnected))return;const e=k.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();if(this.isLoading=!0,tt.isObject(this.props)&&Object.keys(this.props||{}).length>0&&this.isFirstLoad&&window.requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1}),this.handleStartFetching()==="fetching")return;let n=null;try{n=await this.api.get(this.endPoint||this.dataProvider||"",e)}catch{}if(this.handleEndFetching(),this.fetchedData=n,this.api.lastResult&&!this.api.lastResult.ok&&(this.noErrorsRecordings||Zn.add(this),Xn(this.api.lastResult)),!!this.isConnected){if(n)n._sonic_http_response_&&!n._sonic_http_response_.ok&&Object.keys(n).length===1&&L.add({text:"Network Error",status:"error"});else{this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs));return}if(this.key){const l=n._sonic_http_response_,c=this.key.split(".");n=tt.traverse(n,c,this.hasAttribute("preserveOtherKeys")),n&&tt.isObject(n)&&l&&(n._sonic_http_response_=l)}this.props=n,this.dispatchEvent(new CustomEvent("load",{detail:this})),this.isFirstLoad=!1,this.isLoading=!1,this.refetchEveryMs&&this.isConnected&&(this.refetchTimeOutId=setTimeout(()=>this._fetchData(),this.refetchEveryMs))}}disconnectedCallback(){super.disconnectedCallback(),mi.delete(this),this.publisher?.offInvalidate(this.onInvalidate),clearTimeout(this.refetchTimeOutId),this.isFirstLoad=!1}connectedCallback(){this.lazyLoad=this.lazyLoad!==void 0?this.lazyLoad:this.hasAttribute("lazyload"),mi.add(this),super.connectedCallback(),this.isFetchEnabled&&(this.key=this.key!=""?this.key:this.getAttribute("key"),this.props&&this.publisher.set(this.props),this.onInvalidate=()=>this._fetchData(),this.publisher?.onInvalidate(this.onInvalidate),this.lazyLoad?this.handleLazyLoad():this._fetchData())}handleLazyLoad(){if(!this.lazyLoad)return;const e=parseFloat(this.getAttribute("lazyBoundsRatio")||"1"),o={root:null,rootMargin:Math.max(window.innerWidth*e,window.innerHeight*e)+"px",threshold:.9};this.iObserver=new IntersectionObserver(c=>this.onIntersection(c),o);let l=[...(this.shadowRoot?this.shadowRoot:this).children].filter(c=>c.nodeName.toLowerCase()!="style")[0];if(l?.nodeName.toLocaleLowerCase()=="slot"&&(l=[...l.children].filter(c=>c.nodeName.toLowerCase()!="style")[0]),!l||l.nodeName.toLocaleLowerCase()=="template"){l=document.createElement("div");const c=l.style;c.pointerEvents="none",c.width="1px",c.height="1px",this.lazyLoadPlaceHolder=l,this.appendChild(l)}l?this.iObserver.observe(l):this.isFirstLoad&&this._fetchData()}onIntersection(e){for(const o of e)if(o.isIntersecting&&this.isFirstLoad){this._fetchData(),this.lazyLoadPlaceHolder?.remove(),this.lazyLoadPlaceHolder=void 0,this.iObserver?.disconnect();break}}}return ts([a()],i.prototype,"noErrorsRecordings",2),ts([a()],i.prototype,"props",1),ts([a({type:String})],i.prototype,"endPoint",1),ts([a()],i.prototype,"requestId",2),ts([a({type:Number})],i.prototype,"refetchEveryMs",2),i};var Qn=Object.defineProperty,Jn=Object.getOwnPropertyDescriptor,pe=(r,t,i,s)=>{for(var e=s>1?void 0:s?Jn(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&&Qn(t,i,e),e};const Ts=r=>{class t extends r{constructor(...s){super(),this.forceAutoFill=!1,this._type="text",this.status="default"}validateFormElement(){const s=this.shadowRoot?.querySelector("input");if(!s||s.checkValidity())return;const e=this.getFormPublisher();e&&(e.isFormValid=!1),s.reportValidity()}set type(s){this.hasAttribute("type")&&!this.forceAutoFill&&(s=this.getAttribute("type")),this._type=s,this.requestUpdate()}get type(){return this._type}get description(){return this._description}set description(s){this.hasAttribute("description")&&!this.forceAutoFill&&(s=this.getAttribute("description")),this._description=s,this.requestUpdate()}get label(){return this._label}set label(s){this.hasAttribute("label")&&!this.forceAutoFill&&(s=this.getAttribute("label")),this._label=s,this.requestUpdate()}}return pe([a()],t.prototype,"forceAutoFill",2),pe([a({type:String})],t.prototype,"type",1),pe([a()],t.prototype,"description",1),pe([a()],t.prototype,"label",1),pe([a({type:String,reflect:!0})],t.prototype,"status",2),pe([a({type:Number})],t.prototype,"tabindex",2),pe([a({type:String})],t.prototype,"autocomplete",2),t},Sr=gi,ta=di,Ar=De,kr=Ts,Xt=Q,vi=He;window["concorde-mixins"]=window["concorde-mixins"]||{},window["concorde-mixins"]={Fetcher:Sr,FormCheckable:ta,FormElement:Ar,FormInput:kr,Subscriber:Xt,TemplatesContainer:vi};/**
1021
1021
  * @license
1022
1022
  * Copyright 2020 Google LLC
1023
1023
  * SPDX-License-Identifier: BSD-3-Clause
1024
- */const Lt=Zt(class extends Se{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?vt:(this.vt=r,document.importNode(r.content,!0))}});var Un=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,_r=(r,t,i,s)=>{for(var e=s>1?void 0:s?Vn(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&&Un(t,i,e),e};const Bn="sonic-fetch";let Ss=class extends hi(X(di(w))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return S;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return b`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):S}render(){return b`
1024
+ */const Lt=Zt(class extends Ae{constructor(r){if(super(r),r.type!==he.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?vt:(this.vt=r,document.importNode(r.content,!0))}});var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,Dr=(r,t,i,s)=>{for(var e=s>1?void 0:s?sa(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&&ea(t,i,e),e};const ia="sonic-fetch";let Ns=class extends gi(Q(vi(x))){renderLoader(){if(!(this.isLoading&&this.loader!==void 0))return S;const r=this.loader===!0||this.loader===""?"fixed":this.loader;return v`<sonic-loader mode=${r}></sonic-loader>`}renderSkeleton(){const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):S}render(){return v`
1025
1025
  ${this.renderSkeleton()} ${this.renderLoader()}
1026
- ${this.isLoading?S:b`<slot></slot>`}
1027
- `}};Ss.styles=[P`
1026
+ ${this.isLoading?S:v`<slot></slot>`}
1027
+ `}};Ns.styles=[$`
1028
1028
  :host {
1029
1029
  display: contents;
1030
1030
  }
1031
- `],_r([a()],Ss.prototype,"loader",2),Ss=_r([x(Bn)],Ss);var qn=Object.defineProperty,Hn=Object.getOwnPropertyDescriptor,xr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Hn(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&&qn(t,i,e),e};const Wn="sonic-if";let As=class extends w{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?b` <slot></slot> `:S}};As.styles=P`
1031
+ `],Dr([a()],Ns.prototype,"loader",2),Ns=Dr([P(ia)],Ns);var ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,Or=(r,t,i,s)=>{for(var e=s>1?void 0:s?oa(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&&ra(t,i,e),e};const na="sonic-if";let Ms=class extends x{constructor(){super(...arguments),this.condition=!1}render(){return this.condition?v` <slot></slot> `:S}};Ms.styles=$`
1032
1032
  :host {
1033
1033
  display: contents;
1034
1034
  }
1035
- `,xr([a({type:Boolean})],As.prototype,"condition",2),As=xr([x(Wn)],As);const Kn=P`
1035
+ `,Or([a({type:Boolean})],Ms.prototype,"condition",2),Ms=Or([P(na)],Ms);const aa=$`
1036
1036
  :host([align="left"]) .sonic-loader--inline {
1037
1037
  margin-left: 0;
1038
1038
  }
@@ -1099,7 +1099,7 @@
1099
1099
  transform: translate(24px, 0);
1100
1100
  }
1101
1101
  }
1102
- `,Yn=P`
1102
+ `,la=$`
1103
1103
  @keyframes sonic-loader--fixed {
1104
1104
  0% {
1105
1105
  transform: scale(0);
@@ -1152,14 +1152,14 @@
1152
1152
  height: 5rem;
1153
1153
  animation: sonic-loader--fixed 1s 0s linear infinite;
1154
1154
  }
1155
- `;var Zn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,ui=(r,t,i,s)=>{for(var e=s>1?void 0:s?Xn(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&&Zn(t,i,e),e};const Gn="sonic-loader";let ot=class extends w{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){ot.loader||(ot.loader=document.createElement("sonic-loader"));const t=ot.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=wt.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),ot.callCounter++}static hide(){ot.callCounter--,!(ot.callCounter>0)&&ot.loader&&ot.loader.remove()}render(){return b`<div
1155
+ `;var ca=Object.defineProperty,ha=Object.getOwnPropertyDescriptor,yi=(r,t,i,s)=>{for(var e=s>1?void 0:s?ha(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&&ca(t,i,e),e};const da="sonic-loader";let ot=class extends x{constructor(){super(...arguments),this.mode="fixed",this.noDelay=!1}static show(r){ot.loader||(ot.loader=document.createElement("sonic-loader"));const t=ot.loader;r||(r={}),r.mode&&t.setAttribute("mode",r.mode),r.noDelay&&t.setAttribute("noDelay",""),r.container||(r.container=_t.getPopContainer(),r.mode="fixed"),r.container.appendChild(t),ot.callCounter++}static hide(){ot.callCounter--,!(ot.callCounter>0)&&ot.loader&&ot.loader.remove()}render(){return v`<div
1156
1156
  class="sonic-loader sonic-loader--${this.mode} ${this.noDelay?"sonic-loader--nodelay":""} "
1157
1157
  >
1158
1158
  <div></div>
1159
1159
  <div></div>
1160
1160
  <div></div>
1161
1161
  <div></div>
1162
- </div>`}};ot.styles=[Kn,Yn,P`
1162
+ </div>`}};ot.styles=[aa,la,$`
1163
1163
  :host {
1164
1164
  --sc-_loader-bg: var(--sc-primary, currentColor);
1165
1165
  pointer-events: none;
@@ -1187,7 +1187,7 @@
1187
1187
  opacity: 1;
1188
1188
  }
1189
1189
  }
1190
- `],ot.callCounter=0,ui([a({type:String})],ot.prototype,"mode",2),ui([a({type:Boolean})],ot.prototype,"noDelay",2),ot=ui([x(Gn)],ot);var Qn=Object.getOwnPropertyDescriptor,Jn=(r,t,i,s)=>{for(var e=s>1?void 0:s?Qn(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ta="sonic-subscriber";let Pr=class extends X(w){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return b`<slot></slot> `}};Pr=Jn([x(ta)],Pr);var ea=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,At=(r,t,i,s)=>{for(var e=s>1?void 0:s?sa(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&&ea(t,i,e),e};const ia="sonic-list";let _t=class extends hi(X(qe(w))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(r){typeof r!="function"&&r!==void 0||(this._items=r,this.requestUpdate())}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return S;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return b`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):S}renderSeparator(){if(this.separator)return this.separator();const r=this.templateParts.separator;return r?Lt(r):S}renderLoadingState(){return b`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return b` <div
1190
+ `],ot.callCounter=0,yi([a({type:String})],ot.prototype,"mode",2),yi([a({type:Boolean})],ot.prototype,"noDelay",2),ot=yi([P(da)],ot);var ua=Object.getOwnPropertyDescriptor,pa=(r,t,i,s)=>{for(var e=s>1?void 0:s?ua(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const fa="sonic-subscriber";let Lr=class extends Q(x){constructor(){super(...arguments),this.noAutofill=!0}connectedCallback(){this.noShadowDom="",super.connectedCallback()}updated(r){super.updated(r),this.children.length==0?this.style.display="none":this.style.display="contents"}render(){return v`<slot></slot> `}};Lr=pa([P(fa)],Lr);var ma=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,At=(r,t,i,s)=>{for(var e=s>1?void 0:s?ba(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&&ma(t,i,e),e};const ga="sonic-list";let wt=class extends gi(Q(He(x))){constructor(){super(...arguments),this.templateKey="template",this.idKey="id",this.limit=Number.POSITIVE_INFINITY,this.offset=0,this.loadingSize={width:0,height:0}}get items(){return this._items}set items(r){typeof r!="function"&&r!==void 0||(this._items=r,this.requestUpdate())}connectedCallback(){this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.isFetchEnabled=this.hasAttribute("fetch"),this.isFetchEnabled&&(this.isLoading=!0),super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}renderLoader(){if(!(this.isLoading&&this.loader!==void 0)||this.templateParts.skeleton)return S;const t=this.loader===!0||this.loader===""?"fixed":this.loader;return v`<sonic-loader mode=${t}></sonic-loader>`}renderSkeleton(){if(this.skeleton)return this.skeleton();const r=this.templateParts.skeleton;return this.isLoading&&r?Lt(r):S}renderSeparator(){if(this.separator)return this.separator();const r=this.templateParts.separator;return r?Lt(r):S}renderLoadingState(){return v`${this.renderSkeleton()} ${this.renderLoader()} `}renderNoResultState(){return v` <div
1191
1191
  style="color: var(--sc-base-400);
1192
1192
  font-size: 1.5em;
1193
1193
  margin: 4rem 0;
@@ -1198,36 +1198,36 @@
1198
1198
  ><span class="sonic-no-result-text"
1199
1199
  >${typeof this.props=="string"&&this.props==""?"Aucun résultat":this.props}</span
1200
1200
  >
1201
- </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(r)||(i?r=Object.entries(r).map(([s,e])=>({key:s,value:e})):tt.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(s=>s!=null),t&&(r._sonic_http_response_=t),r}updated(r){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(r)}getAllRenderableElements(r){let t=[];function i(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s.getBoundingClientRect();(e.width>0||e.height>0)&&t.push(s),s.childNodes.forEach(i),s.shadowRoot&&s.shadowRoot.childNodes.forEach(i)}}return i(r),t}getDisplayContentsSize(r){const t=this.getAllRenderableElements(r);if(t.length===0)return{width:0,height:0};const i=t.map(l=>l.getBoundingClientRect()),s=Math.min(...i.map(l=>l.left)),e=Math.max(...i.map(l=>l.right)),o=Math.min(...i.map(l=>l.top)),n=Math.max(...i.map(l=>l.bottom));return{width:e-s,height:n-o}}render(){return b`
1201
+ </div>`}formatProps(){let r=this.props;if(r==null)return null;const t=r._sonic_http_response_,i=this.hasAttribute("extractValues");return Array.isArray(r)||(i?r=Object.entries(r).map(([s,e])=>({key:s,value:e})):tt.isObject(r)&&Object.keys(r).length>0&&(!t||t.ok)?r=[r]:r=[]),r=r.filter(s=>s!=null),t&&(r._sonic_http_response_=t),r}updated(r){window.requestAnimationFrame(()=>{if(!this.isLoading){this.style.setProperty("--list-loader-height-display","none");return}this.style.setProperty("--list-loader-height-display","block"),this.loadingSize=this.getDisplayContentsSize(this)}),super.updated(r)}getAllRenderableElements(r){let t=[];function i(s){if(s.nodeType===Node.ELEMENT_NODE){const e=s.getBoundingClientRect();(e.width>0||e.height>0)&&t.push(s),s.childNodes.forEach(i),s.shadowRoot&&s.shadowRoot.childNodes.forEach(i)}}return i(r),t}getDisplayContentsSize(r){const t=this.getAllRenderableElements(r);if(t.length===0)return{width:0,height:0};const i=t.map(l=>l.getBoundingClientRect()),s=Math.min(...i.map(l=>l.left)),e=Math.max(...i.map(l=>l.right)),o=Math.min(...i.map(l=>l.top)),n=Math.max(...i.map(l=>l.bottom));return{width:e-s,height:n-o}}render(){return v`
1202
1202
  ${this.renderContent()}
1203
1203
  <div
1204
1204
  style="grid-column: 1 / -1;min-height:${this.isLoading?0:this.loadingSize.height}px; width:0;float:left;display: var(--list-loader-height-display);"
1205
1205
  ></div>
1206
- `}handleProgrammaticTemplates(r,t,i){return this.items?b`<sonic-subscriber
1206
+ `}handleProgrammaticTemplates(r,t,i){return this.items?v`<sonic-subscriber
1207
1207
  ?debug=${this.defferedDebug===!0}
1208
1208
  .bindPublisher=${()=>this.publisher[i]}
1209
1209
  .propertyMap?=${this.itemPropertyMap}
1210
1210
  dataProvider="${this.dataProvider}/list-item/${i}"
1211
1211
  >
1212
1212
  ${this.items(r,t)}
1213
- </sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!tt.isObject(this.props))return b`<div></div>`;const s=this.formatProps();if((s?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return Lt(this.templateParts["no-items"])}const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=s?.length||0,h=s?.slice(this.offset,this.offset+this.limit);return b`
1214
- ${h?.map((u,d)=>{if(u==null)return S;let g=d,m=null;if(typeof u=="object"&&!Array.isArray(u)){n&&(g=u?.key);const f=u[this.templateKey];f&&typeof f=="string"&&(m=this.templateParts[f])}if(g=="_sonic_http_response_"||typeof g!="string"&&typeof g!="number")return S;const v=d>=c-1,y=d%2,$=this.publisher[g],L={key:g,even:y==0,odd:y==1,onlyChild:c==1,firstChild:d==0,lastChild:v};$._key_=g+"",$._metadata_={...$._metadata_.get(),...L};const p=this.handleProgrammaticTemplates(u,L,g);return p?b`${p}${v?S:l}`:(o++,m&&(o=-1),b`
1213
+ </sonic-subscriber>`:null}renderContent(){if(this.isLoading&&!Array.isArray(this.props))return this.renderLoadingState();if(typeof this.props=="string")return this.renderNoResultState();if(!tt.isObject(this.props))return v`<div></div>`;const s=this.formatProps();if((s?.length||0)==0){if(this.noItems)return this.noItems();if(this.templateParts["no-items"]=this.templateParts["no-items"]||this.templateParts["no-item"],this.templateParts["no-items"])return Lt(this.templateParts["no-items"])}const e=this.templateList.length;let o=-1;const n=this.hasAttribute("extractValues"),l=this.renderSeparator(),c=s?.length||0,h=s?.slice(this.offset,this.offset+this.limit);return v`
1214
+ ${h?.map((u,d)=>{if(u==null)return S;let g=d,f=null;if(typeof u=="object"&&!Array.isArray(u)){n&&(g=u?.key);const b=u[this.templateKey];b&&typeof b=="string"&&(f=this.templateParts[b])}if(g=="_sonic_http_response_"||typeof g!="string"&&typeof g!="number")return S;const m=d>=c-1,y=d%2,_=this.publisher[g],D={key:g,even:y==0,odd:y==1,onlyChild:c==1,firstChild:d==0,lastChild:m};_._key_=g+"",_._metadata_={..._._metadata_.get(),...D};const p=this.handleProgrammaticTemplates(u,D,g);return p?v`${p}${m?S:l}`:(o++,f&&(o=-1),v`
1215
1215
  <sonic-subscriber
1216
1216
  ?debug=${this.defferedDebug===!0}
1217
- .bindPublisher=${function(){return $}}
1217
+ .bindPublisher=${function(){return _}}
1218
1218
  .propertyMap?=${this.itemPropertyMap}
1219
1219
  dataProvider="${this.dataProvider}/list-item/${g}"
1220
1220
  >
1221
- ${Lt(m||this.templateList[o%e])}
1221
+ ${Lt(f||this.templateList[o%e])}
1222
1222
  </sonic-subscriber>
1223
- ${v?S:l}
1223
+ ${m?S:l}
1224
1224
  `)})}
1225
- `}};At([a({type:Object})],_t.prototype,"itemPropertyMap",2),At([a({type:String})],_t.prototype,"templateKey",2),At([a({type:String})],_t.prototype,"idKey",2),At([a()],_t.prototype,"loader",2),At([a()],_t.prototype,"limit",2),At([a()],_t.prototype,"offset",2),At([a({type:Function})],_t.prototype,"items",1),At([a({type:Function})],_t.prototype,"noItems",2),At([a({type:Function})],_t.prototype,"skeleton",2),At([a({type:Function})],_t.prototype,"separator",2),_t=At([x(ia)],_t);/**
1225
+ `}};At([a({type:Object})],wt.prototype,"itemPropertyMap",2),At([a({type:String})],wt.prototype,"templateKey",2),At([a({type:String})],wt.prototype,"idKey",2),At([a()],wt.prototype,"loader",2),At([a()],wt.prototype,"limit",2),At([a()],wt.prototype,"offset",2),At([a({type:Function})],wt.prototype,"items",1),At([a({type:Function})],wt.prototype,"noItems",2),At([a({type:Function})],wt.prototype,"skeleton",2),At([a({type:Function})],wt.prototype,"separator",2),wt=At([P(ga)],wt);/**
1226
1226
  * @license
1227
1227
  * Copyright 2021 Google LLC
1228
1228
  * SPDX-License-Identifier: BSD-3-Clause
1229
- */function*$r(r,t){if(r!==void 0){let i=0;for(const s of r)yield t(s,i++)}}var ra=Object.defineProperty,oa=Object.getOwnPropertyDescriptor,st=(r,t,i,s)=>{for(var e=s>1?void 0:s?oa(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&&ra(t,i,e),e};const na="sonic-queue";let G=class extends X(w){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const t=this.dataProviderExpression.split("?");t.shift();const i=new URLSearchParams(t.join("?")),s=this.filterPublisher?.get(),e=this.filteredFields.split(" ");for(const n in s){let l=s[n];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&!e.includes(n)||l==null||l.toString()==="")&&i.set(n,s[n].toString())}const o=i.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const n of this.listDataProviders)k.delete(n);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const n=this.resultCount;this.props=null,this.requestId++,this.resultCount=n,await k.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){for(const r of this.listDataProviders)k.delete(r),this.listDataProviders=[];this.filterPublisher?.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=G.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Xt.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await k.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=k.getInstance().get(r),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(r){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){let t=this.offset;const s=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=r.detail.props?.length||0,!r.detail.isFirstLoad||!r.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,g=d[d.length-1];t=parseInt(g.offset.toString())+parseInt(g.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=r?.detail.fetchedData||{},this.props=d}s>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/s*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const l=new URLSearchParams(o.join("?")),c=this.filterPublisher?.get(),h=this.filteredFields.split(" ");for(const d in c)this.filteredFields&&h.includes(d)||c[d]==null||c[d]==""||l.set(d,c[d]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const u=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];u.resultCount=this.resultCount,u.lastFetchedData=r?.detail.fetchedData||{},this.props=u,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return S;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",b`
1230
- ${$r(this.props,(t,i)=>{const s=i==0?this.templates:this.templates?.filter(e=>e.getAttribute("data-value")!="no-item");return b`
1229
+ */function*Er(r,t){if(r!==void 0){let i=0;for(const s of r)yield t(s,i++)}}var va=Object.defineProperty,ya=Object.getOwnPropertyDescriptor,st=(r,t,i,s)=>{for(var e=s>1?void 0:s?ya(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&&va(t,i,e),e};const _a="sonic-queue";let G=class extends Q(x){constructor(){super(...arguments),this.templates=null,this.items=null,this.noItems=null,this.skeleton=null,this.lastRequestTime=0,this.key="",this.itemPropertyMap=null,this.cache="default",this.targetRequestDuration=500,this.limit=5,this.lazyBoundsRatio=1,this.offset=0,this.resultCount=0,this.noLazyload=!1,this.loader="inline",this.filteredFields="",this.instanceId=0,this.localStorage="disabled",this.filterPublisher=null,this.filterTimeoutMs=400,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.updateFilteredContent=()=>{const t=this.dataProviderExpression.split("?");t.shift();const i=new URLSearchParams(t.join("?")),s=this.filterPublisher?.get(),e=this.filteredFields.split(" ");for(const n in s){let l=s[n];Array.isArray(l)&&(l=l.filter(c=>c!==null)),!(this.filteredFields&&!e.includes(n)||l==null||l.toString()==="")&&i.set(n,s[n].toString())}const o=i.toString();if(!(o==this.searchHash&&!this.isFirstRequest)){this.searchHash=o;for(const n of this.listDataProviders)k.delete(n);this.listDataProviders=[],clearTimeout(this.filterTimeoutId),this.filterTimeoutId=setTimeout(async()=>{const n=this.resultCount;this.props=null,this.requestId++,this.resultCount=n,await k.getInstance().isLocalStrorageReady,window.requestAnimationFrame(()=>this.next())},this.isFirstRequest?0:this.filterTimeoutMs),this.isFirstRequest=!1}},this.dataProviderExpression="",this.invalidateOnPageShow=!1,this.idKey="id",this.listDataProviders=[],this.nextHadEvent=!1,this.storedScrollY=0,this.storedScrollX=0}disconnectedCallback(){for(const r of this.listDataProviders)k.delete(r),this.listDataProviders=[];this.filterPublisher?.offInternalMutation(this.updateFilteredContent),this.props=null,this.limit=5,this.offset=0,this.resultCount=0,this.searchHash="",this.requestId=0,this.isFirstRequest=!0,this.nextHadEvent=!1,this.publisher.set({}),super.disconnectedCallback()}async connectedCallback(){this.instanceId=G.instanceCounter++,this.localStorage=this.getAttribute("localStorage")||this.localStorage,this.filterTimeoutMs=parseInt(this.getAttribute("filterTimeoutMs")||"400"),this.removeAttribute("localStorage"),this.noShadowDom="",this.defferedDebug=this.hasAttribute("debug")||null,this.dataProvider||(this.dataProvider=this.dataProviderExpression||"sonic-queue-"+this.instanceId+"-"+Math.random().toString(36).substring(7)),this.dataProviderExpression||(this.dataProviderExpression=Gt.getAncestorAttributeValue(this.parentElement,"dataProvider")||""),this.storeScrollPosition(),super.connectedCallback(),this.publisher.set({}),this.key=this.getAttribute("key"),await k.getInstance().isLocalStrorageReady,this.templates||(this.templates=Array.from(this.querySelectorAll("template"))),this.lastRequestTime=new Date().getTime(),this.configFilter()}configFilter(){const r=this.getAncestorAttributeValue("dataFilterProvider");if(!r){this.next();return}this.filterPublisher=k.getInstance().get(r),this.filterPublisher?.onInternalMutation(this.updateFilteredContent)}storeScrollPosition(){this.isSafari()&&(this.storedScrollX=window.scrollX,this.storedScrollY=window.scrollY)}isSafari(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}updated(r){this.isSafari()&&((Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY),window.requestAnimationFrame(()=>{(Math.abs(this.storedScrollX-window.scrollX)>10||Math.abs(this.storedScrollY-window.scrollY)>10)&&window.scrollTo(this.storedScrollX,this.storedScrollY)})),super.updated(r)}resetDuration(){this.lastRequestTime=new Date().getTime()}next(r){let t=this.offset;const s=new Date().getTime()-this.lastRequestTime;if(!this.nextHadEvent&&r&&(this.publisher.resultCount=0,this.resultCount=0),this.nextHadEvent=!!r,r){if(this.publisher.lastFetchedData=r.detail.fetchedData,r.detail.requestId<this.requestId)return;if(this.resultCount+=r.detail.props?.length||0,!r.detail.isFirstLoad||!r.detail.props?.length||this.dataProviderExpression.indexOf("$offset")==-1){this.publisher.resultCount=this.resultCount;return}}if(Array.isArray(this.props)){const d=this.props,g=d[d.length-1];t=parseInt(g.offset.toString())+parseInt(g.limit.toString())}else{const d=[];d.resultCount=this.resultCount,d.lastFetchedData=r?.detail.fetchedData||{},this.props=d}s>0&&r&&!this.localStorage&&(this.limit=Math.round(this.limit/s*this.targetRequestDuration)),this.limit<1&&(this.limit=1),this.limit>15&&(this.limit=15);let e=this.dataProviderExpression.replace("$offset",t+"").replace("$limit",this.limit+"");const o=e.split("?");let n=o.shift();const l=new URLSearchParams(o.join("?")),c=this.filterPublisher?.get(),h=this.filteredFields.split(" ");for(const d in c)this.filteredFields&&h.includes(d)||c[d]==null||c[d]==""||l.set(d,c[d]);this.searchHash||(this.searchHash=l.toString()),n=n+"?"+l.toString(),e=e+"_item_from_queue_"+this.instanceId,this.listDataProviders.push(e);const u=[...this.props,{id:l.toString()+"/"+this.props.length,dataProvider:e,endPoint:n,offset:t,limit:this.limit}];u.resultCount=this.resultCount,u.lastFetchedData=r?.detail.fetchedData||{},this.props=u,this.lastRequestTime=new Date().getTime()}render(){if(this.storeScrollPosition(),!Array.isArray(this.props))return S;let r=!this.noLazyload;return this.props.length==1&&(r=!1),this.style.display="block",v`
1230
+ ${Er(this.props,(t,i)=>{const s=i==0?this.templates:this.templates?.filter(e=>e.getAttribute("data-value")!="no-item");return v`
1231
1231
  <sonic-list
1232
1232
  fetch
1233
1233
  loader="${this.loader}"
@@ -1253,32 +1253,36 @@
1253
1253
  >
1254
1254
  </sonic-list>
1255
1255
  `})}
1256
- `}};G.instanceCounter=0,st([a({type:Array})],G.prototype,"templates",2),st([a({type:Function})],G.prototype,"items",2),st([a({type:Function})],G.prototype,"noItems",2),st([a({type:Function})],G.prototype,"skeleton",2),st([a({type:Object})],G.prototype,"itemPropertyMap",2),st([a()],G.prototype,"cache",2),st([a()],G.prototype,"targetRequestDuration",2),st([a()],G.prototype,"limit",2),st([a()],G.prototype,"lazyBoundsRatio",2),st([a()],G.prototype,"offset",2),st([a()],G.prototype,"resultCount",2),st([a({type:Boolean})],G.prototype,"noLazyload",2),st([a({type:String})],G.prototype,"loader",2),st([a()],G.prototype,"filteredFields",2),st([a({type:String})],G.prototype,"dataProviderExpression",2),st([a({type:Boolean})],G.prototype,"invalidateOnPageShow",2),st([a({type:String})],G.prototype,"idKey",2),G=st([x(na)],G);var aa=Object.defineProperty,la=Object.getOwnPropertyDescriptor,Le=(r,t,i,s)=>{for(var e=s>1?void 0:s?la(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&&aa(t,i,e),e};const ca="sonic-submit";let Qt=class extends X(w){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async r=>{if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=k.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid.set(!0),t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,ot.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=this.getAttribute("method")?.toLocaleLowerCase()||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),l=n?k.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const u=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||u,g=async()=>{const v={...o};if(delete v.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await this.api?.submitFormData(d,v,s,c);else switch(s){case"put":h=await this.api?.put(d,v,c);break;case"patch":h=await this.api?.patch(d,v,c);break;case"delete":h=await this.api?.delete(d,v,c);break;case"get":const f=new URLSearchParams;if(v)for(const A in v)f.append(A,v[A]);const _="?"+f.toString();h=await this.api?.get(d+_,c);break;default:h=await this.api?.post(d,v,c);break}ot.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const y=this.getAncestorAttributeValue("clearedDataOnSuccess");y&&y.split(" ").forEach(f=>k.get(f).set({}));const $=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",L=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&v[$]&&v[L]&&this.saveCredentials(v[$],v[L]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&k.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},m=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(m){m.captchaToken.set("request_token");const v=y=>{y!="request_token"?(g(),m.captchaToken.offAssign(v)):(ot.hide(),this.disabled=!1)};m.captchaToken.onAssign(v)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ae(this.getApiConfiguration())}submitNativeForm(){const r=Xt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),i={...k.get(t).get()};delete i.needsCaptchaValidation;for(const e in i){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=i[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const s=document.createElement("input");s.name=this.name,s.style.display="none",s.value=this.value,s.type="submit",r.appendChild(s),s&&s.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(i)}}render(){return b`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Qt.styles=P`
1256
+ `}};G.instanceCounter=0,st([a({type:Array})],G.prototype,"templates",2),st([a({type:Function})],G.prototype,"items",2),st([a({type:Function})],G.prototype,"noItems",2),st([a({type:Function})],G.prototype,"skeleton",2),st([a({type:Object})],G.prototype,"itemPropertyMap",2),st([a()],G.prototype,"cache",2),st([a()],G.prototype,"targetRequestDuration",2),st([a()],G.prototype,"limit",2),st([a()],G.prototype,"lazyBoundsRatio",2),st([a()],G.prototype,"offset",2),st([a()],G.prototype,"resultCount",2),st([a({type:Boolean})],G.prototype,"noLazyload",2),st([a({type:String})],G.prototype,"loader",2),st([a()],G.prototype,"filteredFields",2),st([a({type:String})],G.prototype,"dataProviderExpression",2),st([a({type:Boolean})],G.prototype,"invalidateOnPageShow",2),st([a({type:String})],G.prototype,"idKey",2),G=st([P(_a)],G);var wa=Object.defineProperty,xa=Object.getOwnPropertyDescriptor,Oe=(r,t,i,s)=>{for(var e=s>1?void 0:s?xa(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&&wa(t,i,e),e};const Pa="sonic-submit";let Qt=class extends Q(x){constructor(){super(...arguments),this.submitResultKey=null,this.disabled=!1,this.endPoint=null,this.name="",this.value="",this.api=null,this.clickTimeStamp=0,this.submit=async r=>{if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=k.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid.set(!0),t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,ot.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const s=this.getAttribute("method")?.toLocaleLowerCase()||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),l=n?k.getInstance().get(n):null;let c={};l&&(c=l.get());let h=null;const u=this.getAncestorAttributeValue("dataProvider"),d=this.endPoint||u,g=async()=>{const m={...o};if(delete m.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await this.api?.submitFormData(d,m,s,c);else switch(s){case"put":h=await this.api?.put(d,m,c);break;case"patch":h=await this.api?.patch(d,m,c);break;case"delete":h=await this.api?.delete(d,m,c);break;case"get":const b=new URLSearchParams;if(m)for(const A in m)b.append(A,m[A]);const w="?"+b.toString();h=await this.api?.get(d+w,c);break;default:h=await this.api?.post(d,m,c);break}ot.hide(),h?h._sonic_http_response_&&!h._sonic_http_response_.ok&&Object.keys(h).length===1&&(h.messages=[{content:"Network Error",status:"error"}]):h={messages:[{content:"Network Error",status:"error"}]};const y=this.getAncestorAttributeValue("clearedDataOnSuccess");y&&y.split(" ").forEach(b=>k.get(b).set({}));const _=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",D=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";this.api?.lastResult?.ok&&m[_]&&m[D]&&this.saveCredentials(m[_],m[D]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const p=this.getAncestorAttributeValue("submitResultDataProvider");p&&k.get(p).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},f=l?.needsCaptchaValidation.get()?l:t.needsCaptchaValidation.get()?t:null;if(f){f.captchaToken.set("request_token");const m=y=>{y!="request_token"?(g(),f.captchaToken.offAssign(m)):(ot.hide(),this.disabled=!1)};f.captchaToken.onAssign(m)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new de(this.getApiConfiguration())}submitNativeForm(){const r=Gt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),i={...k.get(t).get()};delete i.needsCaptchaValidation;for(const e in i){if(e=="isFormValid")continue;let o=r.querySelector('input[name="'+e+'"], select[name="'+e+'"], textarea[name="'+e+'"]');o||(o=document.createElement("input"),o.type="hidden",o.name=e,r.appendChild(o));let n=i[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const s=document.createElement("input");s.name=this.name,s.style.display="none",s.value=this.value,s.type="submit",r.appendChild(s),s&&s.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const i=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(i)}}render(){return v`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};Qt.styles=$`
1257
1257
  [data-disabled] {
1258
1258
  opacity: 0.3;
1259
1259
  pointer-events: none;
1260
1260
  user-select: none;
1261
1261
  }
1262
- `,Le([a({type:String})],Qt.prototype,"submitResultKey",2),Le([a({type:Boolean})],Qt.prototype,"disabled",2),Le([a({type:String})],Qt.prototype,"endPoint",2),Le([a()],Qt.prototype,"name",2),Le([a()],Qt.prototype,"value",2),Qt=Le([x(ca)],Qt);var ha=Object.defineProperty,da=Object.getOwnPropertyDescriptor,Qe=(r,t,i,s)=>{for(var e=s>1?void 0:s?da(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&&ha(t,i,e),e};const ua="sonic-router";let Ee=class extends qe(w){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const r=new URL(this.location,document.location.origin);return r.pathname+r.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const r=[];for(let[t,i]of Object.entries(this.routes)){if(t==="fallback"||!i)continue;const s=new RegExp(this.regExpBasePath+t);if(s.test(this.cleanLocation)){const e=s.exec(this.cleanLocation)||[t];e.shift(),r.push(i([...e]))}else try{const o=new Rt(this.patternBasePath+t).match(this.cleanLocation);if(o){const n=o||{};r.push(i(n))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&r.push(i({}))}}return r.length==0&&this.routes?.fallback&&this.isConnected&&r.push(this.routes.fallback()),r}render(){const r=this.handleroutes();if(r.length>0)return b`${r}`;const t=[];for(const i of this.templatePartsList){const s=i.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+s).test(this.cleanLocation))t.push(i);else try{new Rt(this.patternBasePath+s+"(/*)").match(this.cleanLocation)&&(i.setAttribute("mode","patternMatching"),t.push(i))}catch{this.cleanLocation.indexOf((this.basePath||"")+s.replace(document.location.origin,""))!=-1&&t.push(i)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const i=this.templateList.find(s=>s.hasAttribute("data-fallback"));i&&t.push(i)}return b`${Ps(t,(i,s)=>s+new Date().getTime(),i=>{if(i.title&&(document.title=i.title),i.hasAttribute("dataProviderExpression")){let s="";const e=i.getAttribute("dataProviderExpression")||"";if(i.getAttribute("mode")=="patternMatching"){const o=new Rt("(/)*"+(i.getAttribute(this.templateValueAttribute)||"")+"*");s=new Rt(e).stringify(o.match(this.cleanLocation))}else{const o=new RegExp(i.getAttribute(this.templateValueAttribute)||""),n=(this.cleanLocation+"").match(o);n&&(s=n.shift()?.replace(o,e)||"")}return b`<div
1262
+ `,Oe([a({type:String})],Qt.prototype,"submitResultKey",2),Oe([a({type:Boolean})],Qt.prototype,"disabled",2),Oe([a({type:String})],Qt.prototype,"endPoint",2),Oe([a()],Qt.prototype,"name",2),Oe([a()],Qt.prototype,"value",2),Qt=Oe([P(Pa)],Qt);var $a=Object.defineProperty,Ca=Object.getOwnPropertyDescriptor,es=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ca(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&&$a(t,i,e),e};const Sa="sonic-router";let Le=class extends He(x){constructor(){super(...arguments),this.templateValueAttribute="data-route",this._location=document.location.href.replace(document.location.origin,"")}createRenderRoot(){return this}connectedCallback(){et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set location(r){this._location=r,this.requestUpdate()}get location(){return this._location}get cleanLocation(){const r=new URL(this.location,document.location.origin);return r.pathname+r.hash}get patternBasePath(){return this.basePath!==void 0?this.basePath:"(/)*"}get regExpBasePath(){return this.basePath!==void 0?"^"+this.basePath:""}handleroutes(){if(!this.routes)return[];const r=[];for(let[t,i]of Object.entries(this.routes)){if(t==="fallback"||!i)continue;const s=new RegExp(this.regExpBasePath+t);if(s.test(this.cleanLocation)){const e=s.exec(this.cleanLocation)||[t];e.shift(),r.push(i([...e]))}else try{const o=new Rt(this.patternBasePath+t).match(this.cleanLocation);if(o){const n=o||{};r.push(i(n))}}catch{this.cleanLocation.indexOf((this.basePath||"")+t.replace(document.location.origin,""))!=-1&&r.push(i({}))}}return r.length==0&&this.routes?.fallback&&this.isConnected&&r.push(this.routes.fallback()),r}render(){const r=this.handleroutes();if(r.length>0)return v`${r}`;const t=[];for(const i of this.templatePartsList){const s=i.getAttribute(this.templateValueAttribute)||"";if(new RegExp(this.regExpBasePath+s).test(this.cleanLocation))t.push(i);else try{new Rt(this.patternBasePath+s+"(/*)").match(this.cleanLocation)&&(i.setAttribute("mode","patternMatching"),t.push(i))}catch{this.cleanLocation.indexOf((this.basePath||"")+s.replace(document.location.origin,""))!=-1&&t.push(i)}}if(t.length==0){this.fallBackRoute&&this.isConnected&&(document.location.href=this.fallBackRoute);const i=this.templateList.find(s=>s.hasAttribute("data-fallback"));i&&t.push(i)}return v`${Ls(t,(i,s)=>s+new Date().getTime(),i=>{if(i.title&&(document.title=i.title),i.hasAttribute("dataProviderExpression")){let s="";const e=i.getAttribute("dataProviderExpression")||"";if(i.getAttribute("mode")=="patternMatching"){const o=new Rt("(/)*"+(i.getAttribute(this.templateValueAttribute)||"")+"*");s=new Rt(e).stringify(o.match(this.cleanLocation))}else{const o=new RegExp(i.getAttribute(this.templateValueAttribute)||""),n=(this.cleanLocation+"").match(o);n&&(s=n.shift()?.replace(o,e)||"")}return v`<div
1263
1263
  style="display:contents"
1264
1264
  dataProvider="${s}"
1265
1265
  >
1266
1266
  ${Lt(i)}
1267
- </div>`}return Lt(i)})}`}};Qe([a({type:String})],Ee.prototype,"fallBackRoute",2),Qe([a({type:Object})],Ee.prototype,"routes",2),Qe([a({type:String})],Ee.prototype,"basePath",2),Qe([a()],Ee.prototype,"location",1),Ee=Qe([x(ua)],Ee);var pa=Object.getOwnPropertyDescriptor,fa=(r,t,i,s)=>{for(var e=s>1?void 0:s?pa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ma="sonic-redirect";let Cr=class extends X(w){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){et.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=tt.traverse(this.props,r);t&&!(tt.isObject(t)&&t)&&et.changeFromComponent(this)}};Cr=fa([x(ma)],Cr);var ba=Object.defineProperty,ga=Object.getOwnPropertyDescriptor,ks=(r,t,i,s)=>{for(var e=s>1?void 0:s?ga(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&&ba(t,i,e),e};const va="sonic-states";let Je=class extends X(qe(w)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(r){if(!this.states)return[];const t=[];for(const[i,s]of Object.entries(this.states)){if(i==="fallback"||!s)continue;const e=new RegExp(i);if(e.test(r)){const o=e.exec(r)||[i];o.shift(),t.push(s([...o]))}else try{const o=new Rt("(/)*"+i+"*");if(o.match(r)){const n=o.match(r)||{};t.push(s(n))}}catch{r.indexOf(i.replace(document.location.origin,""))!=-1&&t.push(s({}))}}return t.length==0&&this.states?.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let r=this.state;(!Array.isArray(r)&&tt.isObject(r)||r===void 0)&&(r="");const t=this.handleStates(r);if(t.length>0)return b`${t}`;const i=[];for(const s of this.templatePartsList){let e=s.getAttribute(this.templateValueAttribute),o=r;if(this.inverted&&(o=e,e=r),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))i.push(s),s.removeAttribute("mode");else{const l=new Rt(e);l.names.length>0&&l.match(o)&&(s.setAttribute("mode","patternMatching"),i.push(s))}}return b`${Ps(i,(s,e)=>e+new Date().getTime(),s=>{if(s?.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=r,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=r),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new Rt(l);o=new Rt(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=h.shift()?.replace(c,e))}return b`<div
1267
+ </div>`}return Lt(i)})}`}};es([a({type:String})],Le.prototype,"fallBackRoute",2),es([a({type:Object})],Le.prototype,"routes",2),es([a({type:String})],Le.prototype,"basePath",2),es([a()],Le.prototype,"location",1),Le=es([P(Sa)],Le);var Aa=Object.getOwnPropertyDescriptor,ka=(r,t,i,s)=>{for(var e=s>1?void 0:s?Aa(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Da="sonic-redirect";let Tr=class extends Q(x){connectedCallback(){this.noShadowDom="",this.style.display="none",super.connectedCallback(),this.udpateCallBack=()=>this.update(),this.publisher&&this.publisher.onInternalMutation(this.udpateCallBack)}disconnectedCallback(){this.publisher&&this.publisher.offInternalMutation(this.udpateCallBack),super.disconnectedCallback()}update(){if(this.hasAttribute("onAdded")){et.changeFromComponent(this);return}if(!this.props)return;const r=this.getAttribute("onData").split("."),t=tt.traverse(this.props,r);t&&!(tt.isObject(t)&&t)&&et.changeFromComponent(this)}};Tr=ka([P(Da)],Tr);var Oa=Object.defineProperty,La=Object.getOwnPropertyDescriptor,Is=(r,t,i,s)=>{for(var e=s>1?void 0:s?La(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&&Oa(t,i,e),e};const Ea="sonic-states";let ss=class extends Q(He(x)){constructor(){super(...arguments),this.state="",this.inverted=!1,this.statePath="",this.onStateAssign=r=>{this.state=r,this.requestUpdate()}}connectedCallback(){if(this.noShadowDom="",super.connectedCallback(),this.hasAttribute("data-path")&&(this.statePath=this.getAttribute("data-path")),this.statePath){this.statePublisher=this.publisher;const r=this.statePath.split(".");for(const t of r)this.statePublisher=this.statePublisher[t];this.statePublisher.onAssign(this.onStateAssign)}}disconnectedCallback(){this.statePath&&this.statePublisher?.offAssign(this.onStateAssign),super.disconnectedCallback()}handleStates(r){if(!this.states)return[];const t=[];for(const[i,s]of Object.entries(this.states)){if(i==="fallback"||!s)continue;const e=new RegExp(i);if(e.test(r)){const o=e.exec(r)||[i];o.shift(),t.push(s([...o]))}else try{const o=new Rt("(/)*"+i+"*");if(o.match(r)){const n=o.match(r)||{};t.push(s(n))}}catch{r.indexOf(i.replace(document.location.origin,""))!=-1&&t.push(s({}))}}return t.length==0&&this.states?.fallback&&this.isConnected&&t.push(this.states.fallback()),t}render(){let r=this.state;(!Array.isArray(r)&&tt.isObject(r)||r===void 0)&&(r="");const t=this.handleStates(r);if(t.length>0)return v`${t}`;const i=[];for(const s of this.templatePartsList){let e=s.getAttribute(this.templateValueAttribute),o=r;if(this.inverted&&(o=e,e=r),e==""&&(e=this.inverted?".*?":"^$"),new RegExp(e).test(o+""))i.push(s),s.removeAttribute("mode");else{const l=new Rt(e);l.names.length>0&&l.match(o)&&(s.setAttribute("mode","patternMatching"),i.push(s))}}return v`${Ls(i,(s,e)=>e+new Date().getTime(),s=>{if(s?.hasAttribute("dataProviderExpression")){const e=s.getAttribute("dataProviderExpression");let o="",n=r,l=s.getAttribute(this.templateValueAttribute);if(this.inverted&&(n=l,l=r),l==""&&(l=this.inverted?"*":"^$"),s.getAttribute("mode")=="patternMatching"){const c=new Rt(l);o=new Rt(e).stringify(c.match(n))}else{const c=new RegExp(l),h=(n+"").match(c);h&&(o=h.shift()?.replace(c,e))}return v`<div
1268
1268
  style="display:contents"
1269
1269
  dataProvider="${o}"
1270
1270
  >
1271
1271
  ${Lt(s)}
1272
- </div>`}return Lt(s)})}`}};ks([a()],Je.prototype,"state",2),ks([a({type:Boolean,reflect:!0})],Je.prototype,"inverted",2),ks([a({type:Object})],Je.prototype,"states",2),Je=ks([x(va)],Je);var ya=Object.getOwnPropertyDescriptor,wa=(r,t,i,s)=>{for(var e=s>1?void 0:s?ya(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const _a="sonic-scope";let Sr=class extends w{createRenderRoot(){return this}render(){return b`<slot></slot>`}};Sr=wa([x(_a)],Sr);var xa=Object.defineProperty,Pa=Object.getOwnPropertyDescriptor,Ar=(r,t,i,s)=>{for(var e=s>1?void 0:s?Pa(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&&xa(t,i,e),e};const $a="sonic-example";let pi=class extends X(w){constructor(){super(...arguments),this.text="Example"}render(){return b`<div>${this.text}</div>`}};Ar([a()],pi.prototype,"text",2),pi=Ar([x($a)],pi);const Ca={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class Sa{async transform(t,i){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const s in i.library)this.sduiDescriptor.library[s]=i.library[s];for(const s of i.transforms)this.transformAction(s)}transformAction(t){const i=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,i)}getNodesMatchingPatterns(t,i){if(!t)return[];if(!i)return[];const s=i.nodes;if(!s)return[];let e=[],o=0;for(const n of t)for(const l of s)this.nodeMatchesPattern(n,l)&&e.push({parent:i,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),o++;return e}stringMatchesExpression(t,i){return!i||t&&t.match(i)}nodeMatchesPattern(t,i){const s=t,e=i,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],s[c]))return!1;const n=t.attributes,l=i.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1),s.child.nodes&&s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),0,...s.child.nodes)}wrap(t,i){const s={...t.ui};s.nodes||(s.nodes=[]);let e=0;for(const n of i)s.nodes?.push(n.child),e>0&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child),1),e++;const o=i[0]?.parent.nodes?.indexOf(i[0].child);o&&(i[0].parent.nodes?.splice(o,1),i[0].parent.nodes?.splice(o,0,s))}move(t,i){for(const s of i){s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,s.child)}}remap(t,i){for(const s of i){const e={...t.ui};e.attributes||(e.attributes={});const o=s.child.attributes;if(o)for(const d in o)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[d]=o[d]);const n=["libraryKey","innerHTML","prefix","suffix","markup"],l=s.child,c=e;for(const d of n)!Object.prototype.hasOwnProperty.call(e,d)&&l[d]&&(c[d]=l[d]);e.nodes||(e.nodes=[]);const h=s.child.nodes;if(h)for(const d of h)e.nodes.push(d);const u=s.parent.nodes?.indexOf(s.child)||-1;u!=-1&&(s.parent.nodes?.splice(u,1),s.parent.nodes?.splice(u,0,e))}}delete(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1)}insert(t,i){const s=t.after?"after":t.before?"before":"in";i=[],t.after?i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(i=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=i[0];e&&(s=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):e.parent.nodes?.splice(e.parent.nodes.indexOf(e.child)+(s=="after"?1:0),0,{...t.ui}))}}var Aa=Object.defineProperty,ka=Object.getOwnPropertyDescriptor,fi=(r,t,i,s)=>{for(var e=s>1?void 0:s?ka(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&&Aa(t,i,e),e};const Oa="sonic-sdui";let Os=class extends vr(Gt(w)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,Ca,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)Xt.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)Xt.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new Sa().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(i=>this.appendChild(this.parseChild(i)))}parseChild(r){const t=r.tagName||"div";let{element:i,contentElement:s}=this.handleLibrary(r,t);return this.handleAttributes(r,i),i=this.handleMarkup(r,i),s||(s=i),this.handleChildNodes(r,s,i),this.handleInnerHTML(r,s),r.prefix||r.suffix?this.handlePrefixSuffix(r,i):i}handlePrefixSuffix(r,t){const i=document.createElement("div");return i.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),i.style.display="contents",i}handleChildNodes(r,t,i){if(r.nodes){const s=r.nodes;for(const e of s){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=i.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let i,s;if(r.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(s=i.querySelector(e))}else i=document.createElement(t);return{element:i,contentElement:s}}handleAttributes(r,t){const i=r.attributes;for(const s in i){const e=i[s],o=De.isObject(e)?JSON.stringify(e):e;t.setAttribute(s,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");this.api?.post(i,{labels:[r.innerHTML.substring(8)]}).then(s=>{t&&(t.innerHTML+=s)})}else t&&(t.innerHTML+=r.innerHTML)}};fi([a()],Os.prototype,"sduiKey",2),fi([a()],Os.prototype,"messagesKey",2),Os=fi([x(Oa)],Os);var Da=Object.defineProperty,La=Object.getOwnPropertyDescriptor,kr=(r,t,i,s)=>{for(var e=s>1?void 0:s?La(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&&Da(t,i,e),e};let Ds=class extends Gt(w){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const i in r){const s=r[i];if(typeof s=="string"){const e=s.split("."),o=e.shift();if(!o)continue;let n=k.get(o);n=De.traverse(n,e);const l={publisher:n,subscriber:c=>{t[i]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(i,n)}else{this.publisher[i]={};const e=new je({},t);t._proxies_.set(i,e);const o={publisher:e,subscriber:n=>{t[i]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(s,e)}}}render(){return b`<slot></slot>`}};Ds.styles=[P`
1272
+ </div>`}return Lt(s)})}`}};Is([a()],ss.prototype,"state",2),Is([a({type:Boolean,reflect:!0})],ss.prototype,"inverted",2),Is([a({type:Object})],ss.prototype,"states",2),ss=Is([P(Ea)],ss);var Ta=Object.getOwnPropertyDescriptor,Na=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ta(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ma="sonic-scope";let Nr=class extends x{createRenderRoot(){return this}render(){return v`<slot></slot>`}};Nr=Na([P(Ma)],Nr);function Ia(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function ja(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Ee(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=Ia,r.__onDisconnected__=ja;const t=r.connectedCallback;r.connectedCallback=function(){t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}function Fa(r){return r.trim().replace(/^this\./,"")}function za(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function Te(r,t){let i=!1;const s=(n,l)=>{const c=Fa(l),h=za(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function is(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=(e[1]||"").trim().replace(/^this\./,"");if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Ra(r){return typeof r=="object"&&r!==null&&"path"in r&&typeof r.path=="string"}function rs(r,t,i,s,e){const o=i,n=String(s);Ua(r,t,i),o[r]||Object.defineProperty(o,r,{value:new Map,enumerable:!1,configurable:!1,writable:!1});const l=o[r];l.has(n)||l.set(n,new Set);const c=l.get(n);return c.add(e),()=>{c.delete(e),c.size===0&&l.delete(n)}}function Ua(r,t,i){const s=Object.getPrototypeOf(i);if(!s||s[t])return;const e=Object.prototype.hasOwnProperty.call(s,"willUpdate")?s.willUpdate:Object.getPrototypeOf(s)?.willUpdate;s.willUpdate=function(o){const n=this[r];n&&n.size>0&&(o&&o.size>0?o.forEach((l,c)=>{const h=n.get(String(c));h&&h.forEach(u=>u())}):n.forEach(l=>l.forEach(c=>c()))),typeof e=="function"&&e.call(this,o)},s[t]=!0}const Mr={watcherStore:Symbol("__bindDynamicWatcherStore__"),hooked:Symbol("__bindDynamicWillUpdateHooked__")},Ir={watcherStore:"__publishDynamicWatcherStore__",hooked:"__publishDynamicWillUpdateHooked__"},js={watcherStore:"__getDynamicWatcherStore__",hooked:"__getDynamicWillUpdateHooked__"},jr={watcherStore:Symbol("__onAssignDynamicWatcherStore__"),hooked:Symbol("__onAssignDynamicWillUpdateHooked__")};function os(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=Ye.traverse(s,t),s):null}function Va(r,t){const i=t?.reflect??!1,s=is(r),e=s.length>0;return function(o,n){if(!o)return;Ee(o);const l=`__bind_state_${n}`,c=`__bind_${n}_publisher__`,h=i?`__bind_${n}_updating_from_publisher__`:null;if(i){const u=Object.getOwnPropertyDescriptor(o,n),d=`__bind_${n}_value__`,g=`__bind_${n}_updating_from_publisher__`,f=u&&!u.get&&!u.set?u.value:void 0;Object.defineProperty(o,n,{get(){return u?.get?u.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&f!==void 0&&(this[d]=f),this[d])},set(m){u?.set?u.set.call(this,m):this[d]=m,!this[g]&&this[c]&&this[c].set(m)},enumerable:u?.enumerable??!0,configurable:u?.configurable??!0})}o.__onConnected__(u=>{const d=u[l]||(u[l]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(m=>m()),d.cleanupWatchers=[],d.currentPath=null;const g=m=>{if(!m){d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.currentPath=null,u[c]=null;return}if(m===d.currentPath)return;d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null);const y=os(m);if(!y){d.currentPath=null,u[c]=null;return}const _=D=>{i&&h&&(u[h]=!0),u[n]=D,i&&h&&(u[h]=!1)};y.onAssign(_),d.unsubscribePublisher=()=>{y.offAssign(_),u[c]===y&&(u[c]=null)},d.currentPath=m,u[c]=y},f=()=>{if(e){const m=Te(u,r);if(!m.ready){g(null);return}g(m.path);return}g(r)};if(e)for(const m of s){const y=rs(Mr.watcherStore,Mr.hooked,u,m,()=>f());d.cleanupWatchers.push(y)}f()}),o.__onDisconnected__(u=>{const d=u[l];d&&(d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(g=>g()),d.cleanupWatchers=[],d.currentPath=null,u[c]=null)})}}function Fr(r,t){const i=Ra(r)?r.path:r;return Va(i,t)}function zr(r){const t=r.path,i=is(t);return function(s,e){Ee(s);const o=`__publish_${e}_publisher__`,n=`__publish_${e}_value__`,l=Object.getOwnPropertyDescriptor(s,e),c=l&&!l.get&&!l.set?l.value:void 0;Object.defineProperty(s,e,{get(){return l?.get?l.get.call(this):(!Object.prototype.hasOwnProperty.call(this,n)&&c!==void 0&&(this[n]=c),this[n])},set(h){l?.set?l.set.call(this,h):this[n]=h;const u=this[o];u&&u.set(h)},enumerable:l?.enumerable??!0,configurable:l?.configurable??!0}),s.__onConnected__(h=>{const u=h,d=`__publish_state_${e}`,g=u[d]||(u[d]={cleanupWatchers:[]}),f=()=>{let m;if(i.length){const _=Te(h,t);m=_.ready?_.path:null}else m=t;const y=m?os(m):void 0;if(u[o]=y??null,y&&e in h){const _=u[e];_!==void 0&&y.set(_)}};if(g.cleanupWatchers.forEach(m=>m()),g.cleanupWatchers=[],i.length)for(const m of i)g.cleanupWatchers.push(rs(Ir.watcherStore,Ir.hooked,u,m,f));f()}),s.__onDisconnected__(h=>{const u=h,d=`__publish_state_${e}`,g=u[d];g?.cleanupWatchers&&g.cleanupWatchers.forEach(f=>f()),u[o]=void 0})}}function Rr(r){return Fr(r)}function Ba(...r){const t=r.map(i=>{const s=is(i);return{originalPath:i,dynamicDependencies:s,isDynamic:s.length>0}});return function(i,s,e){Ee(i);const o=`__onAssign_state_${s}__`;let n;i.__onConnected__(l=>{const c=l[o]||(l[o]={cleanupWatchers:[],configurations:[]});c.cleanupWatchers.forEach(f=>f()),c.cleanupWatchers=[],c.configurations.forEach(f=>{f.unsubscribePublisher&&f.unsubscribePublisher()}),c.configurations=[];const h=[],u=[];for(let f=0;f<r.length;f++){const m=t[f],y=new Set,_=D=>{h[f]=D,h.filter(p=>p!=null).length===r.length&&y.forEach(p=>p(...h))};u.push({publisher:null,onAssign:_,callbacks:y,unsubscribePublisher:null,pathConfig:m,index:f})}const d=(f,m)=>{if(f.unsubscribePublisher&&(f.unsubscribePublisher(),f.unsubscribePublisher=null),h[f.index]=null,f.publisher=null,!m)return;const y=os(m);y&&(y.onAssign(f.onAssign),f.unsubscribePublisher=()=>{y.offAssign(f.onAssign),f.publisher===y&&(f.publisher=null)},f.publisher=y)},g=()=>{for(const f of u)if(f.pathConfig.isDynamic){const m=Te(l,f.pathConfig.originalPath);if(!m.ready){d(f,null);continue}d(f,m.path)}else d(f,f.pathConfig.originalPath)};for(const f of u)if(f.pathConfig.isDynamic)for(const m of f.pathConfig.dynamicDependencies){const y=rs(jr.watcherStore,jr.hooked,l,m,()=>g());c.cleanupWatchers.push(y)}n=e.value.bind(l);for(const f of u)f.callbacks.add(n);g(),c.configurations=u}),i.__onDisconnected__(l=>{const c=l[o];c&&(c.cleanupWatchers.forEach(h=>h()),c.cleanupWatchers=[],c.configurations.forEach(h=>{h.unsubscribePublisher&&h.unsubscribePublisher(),h.callbacks.delete(n)}),c.configurations=[])})}}function qa(){return function(r,t,i){let s=0;const e=i.value,o=r.constructor.prototype.disconnectedCallback;r.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=r.connectedCallback;r.connectedCallback=function(){n?.call(this),this[t]()},i.value=function(...l){let c=new Set;const h=()=>{s++;const d=s;window.queueMicrotask(()=>{d===s&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),k.collectModifiedPublisher();const u=e.apply(this,l);return c=k.getModifiedPublishers()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function Ha(r){return function(t){Ee(t);for(const i of r){const s=i.split(".");if(s.length===0)continue;const e=s.shift()||"";let o=k.get(e);o=Ye.traverse(o,s),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function Wa(r){return function(t,i){t&&(Ee(t),t.__onConnected__(s=>{const e=H.getAncestorAttributeValue(s,r);s[i]=e}))}}function Ka(r){return r instanceof HTMLElement||r instanceof ShadowRoot?r:null}function Ya(r){if(!r||typeof r.get!="function")return null;const t=r.get();return!t||typeof t!="object"||!("serviceURL"in t)?null:t}function Za(r){const t=Ka(r);return t?H.getApiConfiguration(t):null}function Ur(r){r.configPublisher&&r.configMutationHandler&&r.configPublisher.offInternalMutation(r.configMutationHandler),r.configPublisher=null,r.configMutationHandler=null}function Vr(r,t){const i=r.path,s=t?.path,e=is(i),o=s?is(s):[],n=[...new Set([...e,...o])],l=e.length>0,c=!!s;return function(h,u){if(!h)return;Ee(h);const d=`__get_state_${u}`;h.__onConnected__(g=>{const f=g;let m=f[d];m||(m={cleanupWatchers:[],requestGeneration:0,configPublisher:null,configMutationHandler:null},f[d]=m),m.cleanupWatchers.forEach(D=>D()),m.cleanupWatchers=[],m.requestGeneration++;const y=()=>{const D=l?Te(g,i):{ready:!0,path:i};if(!D.ready||!D.path){f[u]=void 0;return}let p=null;if(c&&s){const A=Te(g,s);if(!A.ready||!A.path){f[u]=void 0;return}const O=os(A.path);p=Ya(O)}else p=Za(g);if(!p){f[u]=void 0;return}const b=++m.requestGeneration;new de(p).getDetailed(D.path).then(A=>{b===m.requestGeneration&&(f[u]=A)})},_=()=>{if(!c||!s)return;Ur(m);const D=Te(g,s);if(!D.ready||!D.path){f[u]=void 0;return}const p=os(D.path);if(!p){f[u]=void 0;return}const b=()=>{y()};p.onInternalMutation(b),m.configPublisher=p,m.configMutationHandler=b};if(c){for(const D of n){const p=rs(js.watcherStore,js.hooked,g,D,()=>_());m.cleanupWatchers.push(p)}_()}else{if(l)for(const D of e){const p=rs(js.watcherStore,js.hooked,g,D,()=>y());m.cleanupWatchers.push(p)}y()}}),h.__onDisconnected__(g=>{const f=g,m=f[d];m&&(Ur(m),m.cleanupWatchers.forEach(y=>y()),m.cleanupWatchers=[],m.requestGeneration++,f[u]=void 0)})}}const Ga=zr,Xa=Rr,Qa=Vr;window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Fr,publish:zr,subscribe:Rr,onAssing:Ba,ancestorAttribute:Wa,autoSubscribe:qa,autoFill:Ha,get:Vr};var Ja=Object.defineProperty,tl=Object.getOwnPropertyDescriptor,Fs=(r,t,i,s)=>{for(var e=s>1?void 0:s?tl(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&&Ja(t,i,e),e};const Br=new Os("communes?limit=$limit&fields=nom,code"),qr=new Ke(Br.path),el="sonic-example";let ns=class extends x{constructor(){super(...arguments),this.limit=5}render(){return v` <span part="api-get-demo">
1273
+ · get: ${JSON.stringify(this.geoCommunesPayload?.result??null)} · HTTP
1274
+ ${this.geoCommunesPayload?.response?.status??"—"} · subscribe:
1275
+ ${JSON.stringify(this.geoCommunesResult??null)}</span
1276
+ >`}};Fs([a({type:Number})],ns.prototype,"limit",2),Fs([Qa(Br),Ga(qr)],ns.prototype,"geoCommunesPayload",2),Fs([E(),Xa(qr.result)],ns.prototype,"geoCommunesResult",2),ns=Fs([P(el)],ns);const sl={checkbox:{tagName:"sonic-checkbox"},date:{tagName:"sonic-input",attributes:{type:"date"}},fieldset:{tagName:"sonic-fieldset",nodes:[{libraryKey:"formLayout"}],contentElementSelector:"sonic-form-layout"},managed_file:{tagName:"sonic-input",attributes:{variant:"ghost",type:"file"}},password:{tagName:"sonic-input",attributes:{type:"password"}},radio:{tagName:"sonic-radio"},select:{tagName:"sonic-select"},textarea:{tagName:"sonic-textarea"},textfield:{tagName:"sonic-input",attributes:{type:"text"}},hidden:{tagName:"sonic-input",attributes:{type:"hidden"}},button:{tagName:"sonic-button"},form:{tagName:"sonic-submit",attributes:{onEnterKey:!0}},submit:{tagName:"sonic-submit",attributes:{onClick:!0},contentElementSelector:"sonic-button",nodes:[{libraryKey:"button",attributes:{type:"success"},nodes:[{tagName:"sonic-icon",attributes:{name:"check",slot:"prefix"}}]}]},email:{tagName:"sonic-input",attributes:{type:"email"}},formItemContainer:{tagName:"div",attributes:{class:"form-item-container"}},formLayout:{tagName:"sonic-form-layout"},formActions:{tagName:"sonic-form-actions"},passwordHelper:{tagName:"sonic-password-helper"},sameValueHelper:{tagName:"sonic-same-value-helper"},divider:{tagName:"sonic-divider"}};class il{async transform(t,i){if(this.sduiDescriptor=t,this.sduiDescriptor.library)for(const s in i.library)this.sduiDescriptor.library[s]=i.library[s];for(const s of i.transforms)this.transformAction(s)}transformAction(t){const i=this.getNodesMatchingPatterns(t.patterns,this.sduiDescriptor);this[t.action](t,i)}getNodesMatchingPatterns(t,i){if(!t)return[];if(!i)return[];const s=i.nodes;if(!s)return[];let e=[],o=0;for(const n of t)for(const l of s)this.nodeMatchesPattern(n,l)&&e.push({parent:i,child:l,index:o}),e=e.concat(this.getNodesMatchingPatterns([n],l)),o++;return e}stringMatchesExpression(t,i){return!i||t&&t.match(i)}nodeMatchesPattern(t,i){const s=t,e=i,o=["libraryKey","innerHTML","prefix","suffix","markup"];for(const c of o)if(!this.stringMatchesExpression(e[c],s[c]))return!1;const n=t.attributes,l=i.attributes;if(n&&!l)return!1;if(n){for(const c in n)if(!l||!this.stringMatchesExpression(l[c],n[c]))return!1}return!0}unwrap(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1),s.child.nodes&&s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),0,...s.child.nodes)}wrap(t,i){const s={...t.ui};s.nodes||(s.nodes=[]);let e=0;for(const n of i)s.nodes?.push(n.child),e>0&&n.parent.nodes?.splice(n.parent.nodes.indexOf(n.child),1),e++;const o=i[0]?.parent.nodes?.indexOf(i[0].child);o&&(i[0].parent.nodes?.splice(o,1),i[0].parent.nodes?.splice(o,0,s))}move(t,i){for(const s of i){s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1);let e=[];t.after&&(e=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor)),t.before&&(e=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor));const o=e[0];o&&o.parent.nodes?.splice(o.parent.nodes.indexOf(o.child)+(t.after?1:0),0,s.child)}}remap(t,i){for(const s of i){const e={...t.ui};e.attributes||(e.attributes={});const o=s.child.attributes;if(o)for(const d in o)Object.prototype.hasOwnProperty.call(e.attributes,"key")||(e.attributes[d]=o[d]);const n=["libraryKey","innerHTML","prefix","suffix","markup"],l=s.child,c=e;for(const d of n)!Object.prototype.hasOwnProperty.call(e,d)&&l[d]&&(c[d]=l[d]);e.nodes||(e.nodes=[]);const h=s.child.nodes;if(h)for(const d of h)e.nodes.push(d);const u=s.parent.nodes?.indexOf(s.child)||-1;u!=-1&&(s.parent.nodes?.splice(u,1),s.parent.nodes?.splice(u,0,e))}}delete(t,i){for(const s of i)s.parent.nodes?.splice(s.parent.nodes.indexOf(s.child),1)}insert(t,i){const s=t.after?"after":t.before?"before":"in";i=[],t.after?i=this.getNodesMatchingPatterns([t.after],this.sduiDescriptor):t.before?i=this.getNodesMatchingPatterns([t.before],this.sduiDescriptor):t.in&&(i=this.getNodesMatchingPatterns([t.in],this.sduiDescriptor));const e=i[0];e&&(s=="in"?(e.child.nodes||(e.child.nodes=[]),e.child.nodes.push({...t.ui})):e.parent.nodes?.splice(e.parent.nodes.indexOf(e.child)+(s=="after"?1:0),0,{...t.ui}))}}var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,_i=(r,t,i,s)=>{for(var e=s>1?void 0:s?ol(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&&rl(t,i,e),e};const nl="sonic-sdui";let zs=class extends Sr(Xt(x)){constructor(){super(...arguments),this.sduiDescriptor={}}connectedCallback(){this.noShadowDom="",this.displayContents=!0,this.isFetchEnabled=this.hasAttribute("fetch"),super.connectedCallback()}willUpdate(r){this.props==null&&(this.sduiDescriptor={});{const t=this.sduiKey?this.props[this.sduiKey]:this.props;if(this.sduiDescriptor==t)return;this.sduiDescriptor=t,this.updateContents()}super.willUpdate(r)}async updateContents(){if(!this.sduiDescriptor)return;const r={};Object.assign(r,sl,this.sduiDescriptor.library),this.sduiDescriptor.library=r,this.loadAssets(),await this.loadLibrary(),await this.transformSDUIDescriptor(),this.parseRootNodes()}removeChildren(){for(;[...this.children].filter(r=>r.nodeName!="SLOT").length>0;)this.removeChild(this.children[0])}loadAssets(){if(this.sduiDescriptor){if(this.sduiDescriptor.js)for(const r of this.sduiDescriptor.js)Gt.loadJS(r);if(this.sduiDescriptor.css)for(const r of this.sduiDescriptor.css)Gt.loadCSS(r)}}async transformSDUIDescriptor(){if(!this.hasAttribute("transformation"))return;const t=await(await fetch(this.getAttribute("transformation"))).json();await new il().transform(this.sduiDescriptor,t)}async loadLibrary(){if(!this.hasAttribute("library"))return;const t=await(await fetch(this.getAttribute("library"))).json();this.sduiDescriptor.library=t}parseRootNodes(){if(this.removeChildren(),!this.sduiDescriptor)return;let r=this.sduiDescriptor.nodes;r||(r=[]);const t={tagName:"sonic-toast-message-subscriber",attributes:{}};this.messagesKey&&(t.attributes={subDataProvider:this.messagesKey}),r.push(t),r.forEach(i=>this.appendChild(this.parseChild(i)))}parseChild(r){const t=r.tagName||"div";let{element:i,contentElement:s}=this.handleLibrary(r,t);return this.handleAttributes(r,i),i=this.handleMarkup(r,i),s||(s=i),this.handleChildNodes(r,s,i),this.handleInnerHTML(r,s),r.prefix||r.suffix?this.handlePrefixSuffix(r,i):i}handlePrefixSuffix(r,t){const i=document.createElement("div");return i.innerHTML=(r.prefix||"")+t.outerHTML+(r.suffix||""),i.style.display="contents",i}handleChildNodes(r,t,i){if(r.nodes){const s=r.nodes;for(const e of s){const o=this.parseChild(e);let n=t;e.parentElementSelector&&(n=i.querySelector(e.parentElementSelector)||t),n.shadowRoot?n.shadowRoot.appendChild(o):n.tagName.toLocaleLowerCase()=="template"?n.content.appendChild(o):n.appendChild(o)}}}handleLibrary(r,t){let i,s;if(r.libraryKey&&this.sduiDescriptor.library){i=this.parseChild(this.sduiDescriptor.library[r.libraryKey]||{tagName:"div"});const e=(this.sduiDescriptor.library[r.libraryKey]||{}).contentElementSelector;e&&(s=i.querySelector(e))}else i=document.createElement(t);return{element:i,contentElement:s}}handleAttributes(r,t){const i=r.attributes;for(const s in i){const e=i[s],o=Ye.isObject(e)?JSON.stringify(e):e;t.setAttribute(s,o)}}handleMarkup(r,t){return r.markup&&(t=document.createElement("div"),t.style.display="contents",t.innerHTML=r.markup),t}handleInnerHTML(r,t){if(r.innerHTML)if(r.innerHTML.indexOf("wording_")!=-1){const i=this.getAncestorAttributeValue("wordingProvider");this.api?.post(i,{labels:[r.innerHTML.substring(8)]}).then(s=>{t&&(t.innerHTML+=s)})}else t&&(t.innerHTML+=r.innerHTML)}};_i([a()],zs.prototype,"sduiKey",2),_i([a()],zs.prototype,"messagesKey",2),zs=_i([P(nl)],zs);var al=Object.defineProperty,ll=Object.getOwnPropertyDescriptor,Hr=(r,t,i,s)=>{for(var e=s>1?void 0:s?ll(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&&al(t,i,e),e};let Rs=class extends Xt(x){constructor(){super(...arguments),this._composition={},this.listeners=[]}get composition(){return this._composition}set composition(r){this._composition=r,this.updateComposition()}connectedCallback(){super.connectedCallback(),this.updateComposition()}disconnectedCallback(){this.removePublisherListeners(),super.disconnectedCallback()}updateComposition(){this.removePublisherListeners(),this.publisher&&(this.publisher.set({}),this.parseComposition(this.composition,this.publisher))}removePublisherListeners(){const r=this.listeners;this.listeners=[],r.forEach(t=>{this.publisher.offAssign(t.subscriber)})}parseComposition(r,t){if(r)for(const i in r){const s=r[i];if(typeof s=="string"){const e=s.split("."),o=e.shift();if(!o)continue;let n=k.get(o);n=Ye.traverse(n,e);const l={publisher:n,subscriber:c=>{t[i]=c}};this.listeners.push(l),n.onAssign(l.subscriber),t._proxies_.set(i,n)}else{this.publisher[i]={};const e=new Fe({},t);t._proxies_.set(i,e);const o={publisher:e,subscriber:n=>{t[i]=n}};this.listeners.push(o),e.onAssign(o.subscriber),this.parseComposition(s,e)}}}render(){return v`<slot></slot>`}};Rs.styles=[$`
1273
1277
  :host {
1274
1278
  display: contents;
1275
1279
  }
1276
- `],kr([a({type:Object})],Ds.prototype,"composition",1),Ds=kr([x("sonic-mix")],Ds);var Ea=Object.getOwnPropertyDescriptor,Na=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ea(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ta="sonic-value";let Or=class extends Gt(w){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?b`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:b`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1277
- ><slot name="suffix"></slot>`}};Or=Na([x(Ta)],Or);var Ia=Object.defineProperty,Ma=Object.getOwnPropertyDescriptor,mi=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ma(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&&Ia(t,i,e),e};const ja="sonic-t";let Ls=class extends w{render(){return this.key?b`${No(this.key,this.unsafeHTML)}`:S}};mi([a({type:String})],Ls.prototype,"key",2),mi([a({type:Boolean})],Ls.prototype,"unsafeHTML",2),Ls=mi([x(ja)],Ls);var Fa=Object.defineProperty,za=Object.getOwnPropertyDescriptor,ts=(r,t,i,s)=>{for(var e=s>1?void 0:s?za(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&&Fa(t,i,e),e};const Ra="sonic-badge";let pe=class extends w{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return b`
1280
+ `],Hr([a({type:Object})],Rs.prototype,"composition",1),Rs=Hr([P("sonic-mix")],Rs);var cl=Object.getOwnPropertyDescriptor,hl=(r,t,i,s)=>{for(var e=s>1?void 0:s?cl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const dl="sonic-value";let Wr=class extends Xt(x){connectedCallback(){this.setAttribute("subDataProvider",this.getAttribute("key")),super.connectedCallback()}render(){return typeof this.props=="object"||this.props===void 0?v`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`:v`${F(this.props.toString())}<slot name="prefix"></slot><slot></slot
1281
+ ><slot name="suffix"></slot>`}};Wr=hl([P(dl)],Wr);var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,wi=(r,t,i,s)=>{for(var e=s>1?void 0:s?pl(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&&ul(t,i,e),e};const fl="sonic-t";let Us=class extends x{render(){return this.key?v`${Ko(this.key,this.unsafeHTML)}`:S}};wi([a({type:String})],Us.prototype,"key",2),wi([a({type:Boolean})],Us.prototype,"unsafeHTML",2),Us=wi([P(fl)],Us);var ml=Object.defineProperty,bl=Object.getOwnPropertyDescriptor,as=(r,t,i,s)=>{for(var e=s>1?void 0:s?bl(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&&ml(t,i,e),e};const gl="sonic-badge";let fe=class extends x{constructor(){super(...arguments),this.type="default",this.variant="default",this.ellipsis=!1}render(){return v`
1278
1282
  <slot name="prefix"></slot>
1279
1283
  <slot></slot>
1280
1284
  <slot name="suffix"></slot>
1281
- `}};pe.styles=[Dt,P`
1285
+ `}};fe.styles=[Ot,$`
1282
1286
  :host {
1283
1287
  --sc-badge-gap: 0.3em;
1284
1288
  --sc-badge-py: 0.35em;
@@ -1418,7 +1422,7 @@
1418
1422
  slot[name="prefix"] {
1419
1423
  flex-shrink: 0;
1420
1424
  }
1421
- `],ts([a({type:String,reflect:!0})],pe.prototype,"type",2),ts([a({type:String,reflect:!0})],pe.prototype,"variant",2),ts([a({type:String,reflect:!0})],pe.prototype,"size",2),ts([a({type:Boolean,reflect:!0})],pe.prototype,"ellipsis",2),pe=ts([x(Ra)],pe);class Ua{static fixBlankLink(t){const s=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{s?.shell.openExternal(t.href)})}}var Va=Object.defineProperty,Ba=Object.getOwnPropertyDescriptor,Ne=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ba(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&&Va(t,i,e),e};const qa="sonic-link";let Jt=class extends w{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,et.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(et.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{r.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,Ua.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),et.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?b`
1425
+ `],as([a({type:String,reflect:!0})],fe.prototype,"type",2),as([a({type:String,reflect:!0})],fe.prototype,"variant",2),as([a({type:String,reflect:!0})],fe.prototype,"size",2),as([a({type:Boolean,reflect:!0})],fe.prototype,"ellipsis",2),fe=as([P(gl)],fe);class vl{static fixBlankLink(t){const s=typeof require>"u"||typeof process!="object"?null:require("electron");t.target=="_blank"&&t.addEventListener("click",()=>{s?.shell.openExternal(t.href)})}}var yl=Object.defineProperty,_l=Object.getOwnPropertyDescriptor,Ne=(r,t,i,s)=>{for(var e=s>1?void 0:s?_l(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&&yl(t,i,e),e};const wl="sonic-link";let Jt=class extends x{constructor(){super(...arguments),this.href="",this._location="",this.ariaLabel=null,this.autoActive="partial",this._target=null,this.pushState=null}get location(){return this._location}set location(r){this._location=r,et.updateComponentActiveState(this)}connectedCallback(){this.href&&this.href.indexOf("http")!=0&&(et.onChange(this),this.location=document.location.href.replace(document.location.origin,"")),this.addEventListener("keypress",r=>{r.key==="Enter"&&this.shadowRoot?.querySelector("a")?.click()}),this.setFocusable(),super.connectedCallback()}setFocusable(){this.href?this.setAttribute("tabIndex","0"):this.removeAttribute("tabIndex")}disconnectedCallback(){et.offChange(this),super.disconnectedCallback()}set target(r){this._target=r,vl.fixBlankLink(this),this.requestUpdate()}get target(){return this._target}handlePushState(r){r.preventDefault(),et.changeFromComponent(this)}updated(r){r.has("href")&&this.setFocusable()}render(){return this.href?v`
1422
1426
  <a
1423
1427
  href="${this.href}"
1424
1428
  aria-label=${this.ariaLabel||S}
@@ -1427,19 +1431,19 @@
1427
1431
  >
1428
1432
  <slot></slot>
1429
1433
  </a>
1430
- `:b`<slot></slot>`}};Jt.styles=[P`
1434
+ `:v`<slot></slot>`}};Jt.styles=[$`
1431
1435
  a {
1432
1436
  color: inherit;
1433
1437
  text-decoration: none;
1434
1438
  display: contents;
1435
1439
  }
1436
- `],Ne([a({type:String})],Jt.prototype,"href",2),Ne([a({type:String,attribute:"data-aria-label"})],Jt.prototype,"ariaLabel",2),Ne([a({type:String})],Jt.prototype,"autoActive",2),Ne([a({type:String})],Jt.prototype,"target",1),Ne([a({type:Boolean})],Jt.prototype,"pushState",2),Jt=Ne([x(qa)],Jt);var Ha=Object.defineProperty,Wa=Object.getOwnPropertyDescriptor,Te=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wa(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&&Ha(t,i,e),e};const Ka="sonic-progress";let te=class extends w{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return b`
1440
+ `],Ne([a({type:String})],Jt.prototype,"href",2),Ne([a({type:String,attribute:"data-aria-label"})],Jt.prototype,"ariaLabel",2),Ne([a({type:String})],Jt.prototype,"autoActive",2),Ne([a({type:String})],Jt.prototype,"target",1),Ne([a({type:Boolean})],Jt.prototype,"pushState",2),Jt=Ne([P(wl)],Jt);var xl=Object.defineProperty,Pl=Object.getOwnPropertyDescriptor,Me=(r,t,i,s)=>{for(var e=s>1?void 0:s?Pl(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&&xl(t,i,e),e};const $l="sonic-progress";let te=class extends x{constructor(){super(...arguments),this.max=100,this.invert=!1,this.type="default"}render(){return v`
1437
1441
  <progress value=${C(this.value)} max=${this.max}></progress>
1438
1442
  <div class="slot-container">
1439
1443
  <slot></slot>
1440
1444
  <slot name="remaining"></slot>
1441
1445
  </div>
1442
- `}};te.styles=[Dt,P`
1446
+ `}};te.styles=[Ot,$`
1443
1447
  :host {
1444
1448
  --sc-progress-bg: var(
1445
1449
  --sc-input-bg,
@@ -1551,7 +1555,7 @@
1551
1555
  gap: 0.5em;
1552
1556
  margin-top: 0.15em;
1553
1557
  }
1554
- `],Te([a({type:Number})],te.prototype,"value",2),Te([a({type:Number})],te.prototype,"max",2),Te([a({type:Boolean})],te.prototype,"invert",2),Te([a({type:String,reflect:!0})],te.prototype,"type",2),Te([a({type:String,reflect:!0})],te.prototype,"size",2),te=Te([x(Ka)],te);const Ya=P`
1558
+ `],Me([a({type:Number})],te.prototype,"value",2),Me([a({type:Number})],te.prototype,"max",2),Me([a({type:Boolean})],te.prototype,"invert",2),Me([a({type:String,reflect:!0})],te.prototype,"type",2),Me([a({type:String,reflect:!0})],te.prototype,"size",2),te=Me([P($l)],te);const Cl=$`
1555
1559
  .password-toggle {
1556
1560
  color: var(--sc-input-c);
1557
1561
  font-size: var(--sc-input-fs);
@@ -1562,7 +1566,7 @@
1562
1566
  :host([inlineContent]) .has-suffix .password-toggle {
1563
1567
  margin-right: 0;
1564
1568
  }
1565
- `,Es=P`
1569
+ `,Vs=$`
1566
1570
  :host {
1567
1571
  --sc-label-fs: var(--sc-_fs, 1rem);
1568
1572
  --sc-label-fw: var(--sc-label-font-weight, 500);
@@ -1576,14 +1580,14 @@
1576
1580
  margin-bottom: 0.22em;
1577
1581
  display: block;
1578
1582
  }
1579
- `,Ns=P`
1583
+ `,Bs=$`
1580
1584
  .form-description {
1581
1585
  color: var(--sc-base-400, var(--sc-base-content, #000));
1582
1586
  font-size: 0.85em;
1583
1587
  margin-top: 0.2em;
1584
1588
  display: block;
1585
1589
  }
1586
- `,bi=P`
1590
+ `,xi=$`
1587
1591
  * {
1588
1592
  box-sizing: border-box;
1589
1593
  }
@@ -1942,7 +1946,7 @@
1942
1946
  * @license
1943
1947
  * Copyright 2018 Google LLC
1944
1948
  * SPDX-License-Identifier: BSD-3-Clause
1945
- */const gi=Zt(class extends Se{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((t=>r[t])).join(" ")+" "}update(r,[t]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(const s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}const i=r.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const e=!!t[s];e===this.st.has(s)||this.nt?.has(s)||(e?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return vt}});var Za=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,R=(r,t,i,s)=>{for(var e=s>1?void 0:s?Xa(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&&Za(t,i,e),e};const Ga="sonic-input";let j=class extends Cs(Oe(X(w))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),this.autoActive&&r.has("value")&&(this.active=!!this.value),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return b`
1949
+ */const Pi=Zt(class extends Ae{constructor(r){if(super(r),r.type!==he.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter((t=>r[t])).join(" ")+" "}update(r,[t]){if(this.st===void 0){this.st=new Set,r.strings!==void 0&&(this.nt=new Set(r.strings.join(" ").split(/\s/).filter((s=>s!==""))));for(const s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}const i=r.element.classList;for(const s of this.st)s in t||(i.remove(s),this.st.delete(s));for(const s in t){const e=!!t[s];e===this.st.has(s)||this.nt?.has(s)||(e?(i.add(s),this.st.add(s)):(i.remove(s),this.st.delete(s)))}return vt}});var Sl=Object.defineProperty,Al=Object.getOwnPropertyDescriptor,R=(r,t,i,s)=>{for(var e=s>1?void 0:s?Al(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&&Sl(t,i,e),e};const kl="sonic-input";let j=class extends Ts(De(Q(x))){constructor(){super(...arguments),this.readonly=!1,this.inlineContent=!1,this.disableInlineContentFocus=!1,this.showPasswordToggle=!1,this.autoActive=!1,this.active=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1,this.isPassword=!1}connectedCallback(){if(super.connectedCallback(),this.hasSlotOrProps(),this.hasAttribute("sameValueAs")){this.sameValueAsName=this.getAttribute("sameValueAs"),this.sameValueAsHandle=t=>this.pattern=this.escapeRegExp(t);const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].onAssign(this.sameValueAsHandle)}this.type=="password"&&(this.isPassword=!0,this.showPasswordToggle=!0,this.inlineContent=!0)}disconnectedCallback(){if(super.disconnectedCallback(),this.hasAttribute("sameValueAs")&&this.sameValueAsName){const r=this.getFormPublisher();if(!r)return;r[this.sameValueAsName].offAssign(this.sameValueAsHandle)}}escapeRegExp(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}willUpdate(r){this.hasSlotOrProps(),this.autoActive&&r.has("value")&&(this.active=!!this.value),super.willUpdate(r)}setSelectionRange(r,t){this.input.setSelectionRange(r,t)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}inlineContentFocus(){!this.inlineContent||this.disableInlineContentFocus||this.input?.focus()}handleChange(r){if(!this.hasAttribute("inputDelayMs")){super.handleChange(r);return}this.changeTimeoutId&&clearTimeout(this.changeTimeoutId),this.changeTimeoutId=setTimeout(()=>super.handleChange(r),parseInt(this.getAttribute("inputDelayMs")))}togglePasswordVisibility(r){r.preventDefault(),r.stopPropagation(),this.isPassword=!this.isPassword,this._type=this.isPassword?"password":"text"}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix,"no-suffix":!this.hasSuffix,"no-prefix":!this.hasPrefix};return v`
1946
1950
  <label for="${this.id||"form-element"}" class="${this.hasLabel?"form-label":"hidden"}"
1947
1951
  >${this.label?F(this.label):""}<slot
1948
1952
  name="label"
@@ -1950,7 +1954,7 @@
1950
1954
  ></slot
1951
1955
  ></label>
1952
1956
 
1953
- <div @click=${this.inlineContentFocus} class="form-control ${gi(r)}">
1957
+ <div @click=${this.inlineContentFocus} class="form-control ${Pi(r)}">
1954
1958
  <div part="content" class="${this.inlineContent?"form-element form-element-wrapper":"contents"}">
1955
1959
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
1956
1960
  <input
@@ -1983,7 +1987,7 @@
1983
1987
  .name=${this.name}
1984
1988
  .value=${this.value}
1985
1989
  />
1986
- ${this.showPasswordToggle?b`<sonic-button
1990
+ ${this.showPasswordToggle?v`<sonic-button
1987
1991
  shape="circle"
1988
1992
  class="password-toggle"
1989
1993
  @click=${this.togglePasswordVisibility}
@@ -2004,10 +2008,10 @@
2004
2008
  name="description"
2005
2009
  @slotchange=${this.hasSlotOrProps}
2006
2010
  class="${this.hasDescription?"form-description":"hidden"}"
2007
- >${this.description?b`${F(this.description)}`:S}</slot>
2011
+ >${this.description?v`${F(this.description)}`:S}</slot>
2008
2012
  <slot name="list"></slot>
2009
2013
  </div>
2010
- `}};j.styles=[Dt,bi,Es,Ns,Ya,P`
2014
+ `}};j.styles=[Ot,xi,Vs,Bs,Cl,$`
2011
2015
  :host([type="hidden"]) {
2012
2016
  appearance: none !important;
2013
2017
  display: none !important;
@@ -2015,7 +2019,7 @@
2015
2019
  :host > .form-control {
2016
2020
  position: relative;
2017
2021
  }
2018
- `],R([a({type:String,reflect:!0})],j.prototype,"size",2),R([a({type:String})],j.prototype,"inputmode",2),R([a({type:String})],j.prototype,"list",2),R([a({type:String})],j.prototype,"placeholder",2),R([a({type:String})],j.prototype,"pattern",2),R([a({type:String})],j.prototype,"min",2),R([a({type:String})],j.prototype,"max",2),R([a({type:Boolean,reflect:!0})],j.prototype,"readonly",2),R([a({type:Number})],j.prototype,"step",2),R([a({type:Number})],j.prototype,"minlength",2),R([a({type:Number})],j.prototype,"maxlength",2),R([a({type:String})],j.prototype,"src",2),R([a({type:Boolean,reflect:!0})],j.prototype,"inlineContent",2),R([a({type:Boolean})],j.prototype,"disableInlineContentFocus",2),R([a({type:Boolean})],j.prototype,"showPasswordToggle",2),R([a({type:Boolean})],j.prototype,"autoActive",2),R([a({type:Boolean,reflect:!0})],j.prototype,"active",2),R([at({slot:"label",flatten:!0})],j.prototype,"slotLabelNodes",2),R([at({slot:"description",flatten:!0})],j.prototype,"slotDescriptionNodes",2),R([at({slot:"suffix",flatten:!0})],j.prototype,"slotSuffixNodes",2),R([at({slot:"prefix",flatten:!0})],j.prototype,"slotPrefixNodes",2),R([Kt("input")],j.prototype,"input",2),R([E()],j.prototype,"hasDescription",2),R([E()],j.prototype,"hasLabel",2),R([E()],j.prototype,"hasSuffix",2),R([E()],j.prototype,"hasPrefix",2),R([E()],j.prototype,"isPassword",2),j=R([x(Ga)],j);const Dr=P`
2022
+ `],R([a({type:String,reflect:!0})],j.prototype,"size",2),R([a({type:String})],j.prototype,"inputmode",2),R([a({type:String})],j.prototype,"list",2),R([a({type:String})],j.prototype,"placeholder",2),R([a({type:String})],j.prototype,"pattern",2),R([a({type:String})],j.prototype,"min",2),R([a({type:String})],j.prototype,"max",2),R([a({type:Boolean,reflect:!0})],j.prototype,"readonly",2),R([a({type:Number})],j.prototype,"step",2),R([a({type:Number})],j.prototype,"minlength",2),R([a({type:Number})],j.prototype,"maxlength",2),R([a({type:String})],j.prototype,"src",2),R([a({type:Boolean,reflect:!0})],j.prototype,"inlineContent",2),R([a({type:Boolean})],j.prototype,"disableInlineContentFocus",2),R([a({type:Boolean})],j.prototype,"showPasswordToggle",2),R([a({type:Boolean})],j.prototype,"autoActive",2),R([a({type:Boolean,reflect:!0})],j.prototype,"active",2),R([at({slot:"label",flatten:!0})],j.prototype,"slotLabelNodes",2),R([at({slot:"description",flatten:!0})],j.prototype,"slotDescriptionNodes",2),R([at({slot:"suffix",flatten:!0})],j.prototype,"slotSuffixNodes",2),R([at({slot:"prefix",flatten:!0})],j.prototype,"slotPrefixNodes",2),R([Kt("input")],j.prototype,"input",2),R([E()],j.prototype,"hasDescription",2),R([E()],j.prototype,"hasLabel",2),R([E()],j.prototype,"hasSuffix",2),R([E()],j.prototype,"hasPrefix",2),R([E()],j.prototype,"isPassword",2),j=R([P(kl)],j);const Kr=$`
2019
2023
  /*OMBRE*/
2020
2024
  :host([shadow]) .shadowable,
2021
2025
  :host([shadow="md"]) .shadowable,
@@ -2034,7 +2038,7 @@
2034
2038
  :host([shadow="none"]) .shadowable {
2035
2039
  box-shadow: none;
2036
2040
  }
2037
- `;var Qa=Object.defineProperty,Ja=Object.getOwnPropertyDescriptor,Et=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ja(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&&Qa(t,i,e),e};const tl="sonic-pop";let it=class extends w{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=r=>{r.key==="Escape"&&this.open&&(r.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=r.target),this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent?.style?.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){H.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const i=t.style;i.zIndex="999999999";const s=getComputedStyle(t);return s.position!=="relative"&&s.position!=="absolute"&&(i.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),i=t[0];it.pops.forEach(s=>{const e=t.includes(s),o=t.includes(s.querySelector('[slot="content"]')),n=H.getAncestorAttributeValue(i,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||s.hide()})}connectedCallback(){super.connectedCallback(),it.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),it.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),it.pops.delete(this),it.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(r){const t=r.split(" "),i=t[0];let s=t[1];const e=5,o=this.getBoundingClientRect(),l=H.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+e,h=Math.max(0,l?.top||0)+e,u=Math.min(window.innerWidth,l?.right||window.innerWidth)-e,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-e,g=o.left,m=o.top;let v=g,y=m,$=this.popContent?.getBoundingClientRect();const L=m-$.height,p=g-$.width,f=g+o.width,_=m+o.height,A=g+(o.width-$.width)*.5,O=m+(o.height-$.height)*.5;switch(i){case"bottom":y=_,s=="center"&&(v=A);break;case"top":y=L,s=="center"&&(v=A);break;case"left":v=p,s=="center"&&(y=O);break;case"right":v=f,s=="center"&&(y=O);break}this.lastContentX+=v-$.x,this.lastContentY+=y-$.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),$=this.popContent?.getBoundingClientRect(),$.x<c&&i=="left"&&(v=f),$.y<h&&i=="top"&&(y=_),$.x+$.width>u&&i=="right"&&(v=p),$.y+$.height>d&&i=="bottom"&&(y=L),this.lastContentX+=v-$.x,this.lastContentY+=y-$.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),$=this.popContent?.getBoundingClientRect(),$.x<c&&(this.lastContentX+=c-$.x),$.y<h&&(this.lastContentY+=h-$.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),$=this.popContent?.getBoundingClientRect(),$.x+$.width>u&&(this.lastContentX+=u-($.x+$.width)),$.y+$.height>d&&(this.lastContentY+=d-($.y+$.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return b`
2041
+ `;var Dl=Object.defineProperty,Ol=Object.getOwnPropertyDescriptor,Et=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ol(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&&Dl(t,i,e),e};const Ll="sonic-pop";let it=class extends x{constructor(){super(...arguments),this.open=!1,this.noToggle=!1,this.inline=!1,this.manual=!1,this.shadow="lg",this.placement="bottom",this.positioningRuns=!1,this.lastContentX=0,this.lastContentY=0,this.resizeObserver=new ResizeObserver(()=>this.computePosition(this.placement)),this.triggerElement=null,this.ancestorsHavingZIndex=new Set,this._handleKeyDown=r=>{r.key==="Escape"&&this.open&&(r.stopPropagation(),this.hide())}}runPositioningLoop(){this.positioningRuns&&(this.positioningRuns=!0,this.computePosition(this.placement),window.requestAnimationFrame(()=>this.runPositioningLoop()))}toggle(r){if(this.open&&this.noToggle)return;const t=r;r.type=="keydown"&&(t.key!="ArrowDown"||this.open)||(this.open||(this.triggerElement=r.target),this.open=!this.open,this.open?this.show():this.hide())}show(){this.setMaxZindex(),this.popContent?.style?.removeProperty("display"),this.open=!0,this.popContent.setAttribute("tabindex","0"),this.popBtn&&this.popContent&&!this.positioningRuns&&(this.positioningRuns=!0,this.lastContentX=0,this.lastContentY=0,this.runPositioningLoop()),this.dispatchEvent(new CustomEvent("show"))}hide(){this.resetZindexes(),this.open=!1,this.popContent.setAttribute("tabindex","-1"),this.positioningRuns=!1,this.triggerElement&&(this.triggerElement.focus(),this.triggerElement=null),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),this.dispatchEvent(new CustomEvent("hide"))}setMaxZindex(){H.everyAncestors(this,r=>{const t=r;if(!t.className)return!0;if([...t.classList].includes("@container")){const i=t.style;i.zIndex="999999999";const s=getComputedStyle(t);return s.position!=="relative"&&s.position!=="absolute"&&(i.position="relative"),this.ancestorsHavingZIndex.add(r),!1}return!0})}resetZindexes(){this.ancestorsHavingZIndex.forEach(r=>{r.style.removeProperty("position"),r.style.removeProperty("z-index")}),this.ancestorsHavingZIndex.clear()}_handleClosePop(r){const t=r.composedPath(),i=t[0];it.pops.forEach(s=>{const e=t.includes(s),o=t.includes(s.querySelector('[slot="content"]')),n=H.getAncestorAttributeValue(i,"data-on-select")==="keep";r.type=="pointerdown"&&e||r.type=="click"&&(e&&n||!o)||s.hide()})}connectedCallback(){super.connectedCallback(),it.pops.size==0&&(document.addEventListener("pointerdown",this._handleClosePop),document.addEventListener("click",this._handleClosePop),document.addEventListener("keydown",this._handleKeyDown)),it.pops.add(this)}firstUpdated(r){super.firstUpdated(r),this.resizeObserver.observe(this.popContent)}disconnectedCallback(){this.popContent&&this.resizeObserver.unobserve(this.popContent),super.disconnectedCallback(),it.pops.delete(this),it.pops.size==0&&(document.removeEventListener("pointerdown",this._handleClosePop),document.removeEventListener("click",this._handleClosePop),document.removeEventListener("keydown",this._handleKeyDown))}computePosition(r){const t=r.split(" "),i=t[0];let s=t[1];const e=5,o=this.getBoundingClientRect(),l=H.getScrollableAncestor(this.popContent)?.getBoundingClientRect(),c=Math.max(0,l?.left||0)+e,h=Math.max(0,l?.top||0)+e,u=Math.min(window.innerWidth,l?.right||window.innerWidth)-e,d=Math.min(window.innerHeight,l?.bottom||window.innerHeight)-e,g=o.left,f=o.top;let m=g,y=f,_=this.popContent?.getBoundingClientRect();const D=f-_.height,p=g-_.width,b=g+o.width,w=f+o.height,A=g+(o.width-_.width)*.5,O=f+(o.height-_.height)*.5;switch(i){case"bottom":y=w,s=="center"&&(m=A);break;case"top":y=D,s=="center"&&(m=A);break;case"left":m=p,s=="center"&&(y=O);break;case"right":m=b,s=="center"&&(y=O);break}this.lastContentX+=m-_.x,this.lastContentY+=y-_.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),_=this.popContent?.getBoundingClientRect(),_.x<c&&i=="left"&&(m=b),_.y<h&&i=="top"&&(y=w),_.x+_.width>u&&i=="right"&&(m=p),_.y+_.height>d&&i=="bottom"&&(y=D),this.lastContentX+=m-_.x,this.lastContentY+=y-_.y,Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),_=this.popContent?.getBoundingClientRect(),_.x<c&&(this.lastContentX+=c-_.x),_.y<h&&(this.lastContentY+=h-_.y),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`}),_=this.popContent?.getBoundingClientRect(),_.x+_.width>u&&(this.lastContentX+=u-(_.x+_.width)),_.y+_.height>d&&(this.lastContentY+=d-(_.y+_.height)),Object.assign(this.popContent.style,{left:`${this.lastContentX}px`,top:`${this.lastContentY}px`})}render(){return v`
2038
2042
  <slot
2039
2043
  @click=${this.manual?()=>{}:this.toggle}
2040
2044
  @keydown=${this.manual?()=>{}:this.toggle}
@@ -2048,7 +2052,7 @@
2048
2052
  class="shadowable
2049
2053
  ${this.open?"is-open":""}"
2050
2054
  ></slot>
2051
- `}};it.pops=new Set,it.styles=[P`
2055
+ `}};it.pops=new Set,it.styles=[$`
2052
2056
  :host {
2053
2057
  display: inline-block;
2054
2058
  vertical-align: middle;
@@ -2080,11 +2084,11 @@
2080
2084
  :host([inline]) {
2081
2085
  vertical-align: baseline;
2082
2086
  }
2083
- `,Dr],Et([E()],it.prototype,"open",2),Et([Kt("slot:not([name=content])")],it.prototype,"popBtn",2),Et([Kt("slot[name=content]")],it.prototype,"popContent",2),Et([a({type:Boolean})],it.prototype,"noToggle",2),Et([a({type:Boolean,reflect:!0})],it.prototype,"inline",2),Et([a({type:Boolean})],it.prototype,"manual",2),Et([a({type:String,reflect:!0})],it.prototype,"shadow",2),Et([a({type:String})],it.prototype,"placement",2),Et([E()],it.prototype,"triggerElement",2),it=Et([x(tl)],it);var el=Object.getOwnPropertyDescriptor,sl=(r,t,i,s)=>{for(var e=s>1?void 0:s?el(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const il="sonic-menu-item";let Lr=class extends M{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};Lr=sl([x(il)],Lr);/**
2087
+ `,Kr],Et([E()],it.prototype,"open",2),Et([Kt("slot:not([name=content])")],it.prototype,"popBtn",2),Et([Kt("slot[name=content]")],it.prototype,"popContent",2),Et([a({type:Boolean})],it.prototype,"noToggle",2),Et([a({type:Boolean,reflect:!0})],it.prototype,"inline",2),Et([a({type:Boolean})],it.prototype,"manual",2),Et([a({type:String,reflect:!0})],it.prototype,"shadow",2),Et([a({type:String})],it.prototype,"placement",2),Et([E()],it.prototype,"triggerElement",2),it=Et([P(Ll)],it);var El=Object.getOwnPropertyDescriptor,Tl=(r,t,i,s)=>{for(var e=s>1?void 0:s?El(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Nl="sonic-menu-item";let Yr=class extends I{constructor(){super()}connectedCallback(){this.hasAttribute("variant")||(this.variant="ghost"),this.hasAttribute("type")||(this.type="default"),this.hasAttribute("shape")||(this.shape="block");const r=this.shape==="square"||this.shape==="circle";!this.hasAttribute("align")&&!r&&(this.align="left"),super.connectedCallback()}};Yr=Tl([P(Nl)],Yr);/**
2084
2088
  * @license
2085
2089
  * Copyright 2021 Google LLC
2086
2090
  * SPDX-License-Identifier: BSD-3-Clause
2087
- */class Er{constructor(t,{target:i,config:s,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=s,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var rl=Object.defineProperty,ol=Object.getOwnPropertyDescriptor,lt=(r,t,i,s)=>{for(var e=s>1?void 0:s?ol(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&&rl(t,i,e),e};let rt=class extends di(wr(yr(Gt(w)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Er(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=(r?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")},this.handleFocusOut=r=>{setTimeout(()=>{const t=document.activeElement;if(!t){this.popElement.hide();return}const i=this.popElement.contains(t)||this.popElement.shadowRoot?.contains(t),s=this.contains(t)||this.shadowRoot?.contains(t);!i&&!s&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const s=k.get;this.searchPublisher=s(this.searchDataProvider)[r],this.formValuePublisher=ut(s(t),this.name),this.countPublisher=s(this.queueDataProvider).resultCount,this.initCountPublisher=s(this.initQueueDataProvider).resultCount,this.value&&k.get(this.initSearchDataProvider)[this.name].set(this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}firstUpdated(r){super.firstUpdated(r),this.popElement.addEventListener("focusout",this.handleFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const r=k.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(r,t,i){const s=k.get(r);let e,o=s.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=k.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(r,t){this.querySelector("sonic-input")?.setSelectionRange(r,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}handleFocus(){this.popElement.show()}render(){return b`
2091
+ */class Zr{constructor(t,{target:i,config:s,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,i!==null&&this.t.add(i??t),this.l=s,this.o=o??this.o,this.callback=e,window.ResizeObserver?(this.u=new ResizeObserver((n=>{this.handleChanges(n),this.h.requestUpdate()})),t.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(t){this.value=this.callback?.(t,this.u)}hostConnected(){for(const t of this.t)this.observe(t)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(t){this.t.add(t),this.u.observe(t,this.l),this.i=!0,this.h.requestUpdate()}unobserve(t){this.t.delete(t),this.u.unobserve(t)}disconnect(){this.u.disconnect()}}var Ml=Object.defineProperty,Il=Object.getOwnPropertyDescriptor,lt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Il(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&&Ml(t,i,e),e};let rt=class extends vi(kr(Ar(Xt(x)))){constructor(){super(...arguments),this.size="md",this.placeholder="",this.filteredFields="",this.readonly=null,this.dataProviderExpression="",this.minSearchLength=0,this.key="",this.searchParameter="",this.propertyName="",this.hasInputPrefix=!1,this._resizeController=new Zr(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,this.searchPublisher?.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=(r?.length||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];this.formValuePublisher?.set(t)},this.findSearchedItem=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==this.searchPublisher?.get(),this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&this.searchPublisher?.set(this.lastValidSearch)},this.updateActiveSelection=()=>{this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=this.searchPublisher?.get()&&this.formValuePublisher?.get()&&this.formValuePublisher?.set("")},this.handleFocusOut=r=>{setTimeout(()=>{const t=document.activeElement;if(!t){this.popElement.hide();return}const i=this.popElement.contains(t)||this.popElement.shadowRoot?.contains(t),s=this.contains(t)||this.shadowRoot?.contains(t);!i&&!s&&this.popElement.hide()},0)}}hasSlotOrProps(){this.hasInputPrefix=!!this.slotInputPrefixNodes?.length}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),i=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${i}_init_search__`,this.initQueueDataProvider=`${i}_init_queue__`,this.searchDataProvider=`${i}_search__`,this.queueDataProvider=`${i}_queue__`;const s=k.get;this.searchPublisher=s(this.searchDataProvider)[r],this.formValuePublisher=ut(s(t),this.name),this.countPublisher=s(this.queueDataProvider).resultCount,this.initCountPublisher=s(this.initQueueDataProvider).resultCount,this.value&&k.get(this.initSearchDataProvider)[this.name].set(this.value),this.initCountPublisher?.onAssign(this.initSearchParameter),this.formValuePublisher?.onAssign(this.updateSearchParameter),this.countPublisher?.onAssign(this.updateActiveSelection),this.searchPublisher?.onAssign(this.updatePopContentVisibility)}firstUpdated(r){super.firstUpdated(r),this.popElement.addEventListener("focusout",this.handleFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.initCountPublisher?.offAssign(this.initSearchParameter),this.formValuePublisher?.offAssign(this.updateSearchParameter),this.countPublisher?.offAssign(this.updateActiveSelection);const r=k.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),this.searchPublisher?.offAssign(this.updatePopContentVisibility),this.popElement.removeEventListener("focusout",this.handleFocusOut)}queryQueueListItem(r,t,i){const s=k.get(r);let e,o=s.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let l=k.get(n.dataProvider).get();if(Array.isArray(l)&&(e=l.find(t),e))break}return e?(i(e),!0):!1}setSelectionRange(r,t){this.querySelector("sonic-input")?.setSelectionRange(r,t)}handleHide(){if(this.select){if(this.searchPublisher?.get()==""){this.lastValidSearch="",this.formValuePublisher?.set("");return}this.searchPublisher?.set(this.lastValidSearch)}}getInputValue(){return this.isSearchParameter()?this.searchPublisher?.get():this.lastValidSearch}handleFocus(){this.popElement.show()}render(){return v`
2088
2092
  <sonic-pop manual style="display:block;" @hide=${this.handleHide}>
2089
2093
  <sonic-input
2090
2094
  class="form-element"
@@ -2112,7 +2116,7 @@
2112
2116
  @slotchange=${this.hasSlotOrProps}
2113
2117
  ></slot>
2114
2118
 
2115
- ${this.select?b`
2119
+ ${this.select?v`
2116
2120
  <sonic-icon
2117
2121
  slot="suffix"
2118
2122
  class="select-chevron"
@@ -2149,7 +2153,7 @@
2149
2153
  </sonic-queue>
2150
2154
  </sonic-menu>
2151
2155
  </sonic-pop>
2152
- `}};rt.styles=[Ze,P`
2156
+ `}};rt.styles=[Qe,$`
2153
2157
  :host {
2154
2158
  display: block;
2155
2159
  }
@@ -2170,7 +2174,7 @@
2170
2174
  min-width: 14rem;
2171
2175
  width: 100%;
2172
2176
  }
2173
- `],lt([a({type:String})],rt.prototype,"size",2),lt([a({type:String})],rt.prototype,"placeholder",2),lt([a()],rt.prototype,"filteredFields",2),lt([a({type:Boolean,reflect:!0})],rt.prototype,"readonly",2),lt([a({type:String})],rt.prototype,"dataProviderExpression",2),lt([a({type:Number})],rt.prototype,"minSearchLength",2),lt([a({type:Boolean})],rt.prototype,"select",2),lt([a({type:String})],rt.prototype,"key",2),lt([a({type:String})],rt.prototype,"searchParameter",2),lt([a({type:String})],rt.prototype,"propertyName",2),lt([at({slot:"prefix",flatten:!0})],rt.prototype,"slotInputPrefixNodes",2),lt([E()],rt.prototype,"hasInputPrefix",2),lt([Kt("sonic-pop")],rt.prototype,"popElement",2),lt([E()],rt.prototype,"isPopVisible",2),lt([E()],rt.prototype,"lastValidSearch",2),rt=lt([x("sonic-input-autocomplete")],rt);var nl=Object.defineProperty,al=Object.getOwnPropertyDescriptor,ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?al(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&&nl(t,i,e),e};const ll="sonic-password-helper";let ct=class extends Gt(w){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},k.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&k.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?b`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:b`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?S:b`
2177
+ `],lt([a({type:String})],rt.prototype,"size",2),lt([a({type:String})],rt.prototype,"placeholder",2),lt([a()],rt.prototype,"filteredFields",2),lt([a({type:Boolean,reflect:!0})],rt.prototype,"readonly",2),lt([a({type:String})],rt.prototype,"dataProviderExpression",2),lt([a({type:Number})],rt.prototype,"minSearchLength",2),lt([a({type:Boolean})],rt.prototype,"select",2),lt([a({type:String})],rt.prototype,"key",2),lt([a({type:String})],rt.prototype,"searchParameter",2),lt([a({type:String})],rt.prototype,"propertyName",2),lt([at({slot:"prefix",flatten:!0})],rt.prototype,"slotInputPrefixNodes",2),lt([E()],rt.prototype,"hasInputPrefix",2),lt([Kt("sonic-pop")],rt.prototype,"popElement",2),lt([E()],rt.prototype,"isPopVisible",2),lt([E()],rt.prototype,"lastValidSearch",2),rt=lt([P("sonic-input-autocomplete")],rt);var jl=Object.defineProperty,Fl=Object.getOwnPropertyDescriptor,ft=(r,t,i,s)=>{for(var e=s>1?void 0:s?Fl(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&&jl(t,i,e),e};const zl="sonic-password-helper";let ct=class extends Xt(x){constructor(){super(...arguments),this.minChars=8,this.hasNoChar=!0,this.hasEnoughChars=!1,this.hasMinuscule=!1,this.hasMajuscule=!1,this.hasNumber=!1,this.hasSpecialChar=!1,this.wording_password_helper_decription="Le mot de passe doit contenir au moins :",this.wording_password_helper_min_length="8 caractères",this.wording_password_helper_lower_case="1 minuscule",this.wording_password_helper_upper_case="1 majuscule",this.wording_password_helper_number="1 chiffre",this.wording_password_helper_special_char="1 caractère spécial"}connectedCallback(){super.connectedCallback(),this.name&&(this.checkValue=t=>{t?(this.hasNoChar=t.length==0,this.hasEnoughChars=t.length>this.minChars):(this.hasNoChar=!0,this.hasEnoughChars=!1),this.hasMinuscule=/[a-z]/.test(t),this.hasMajuscule=/[A-Z]/.test(t),this.hasNumber=/[0-9]/.test(t),this.hasSpecialChar=/[!"#$%&'()*+,\-./:;<=>?@[\]^_`{|}~]/.test(t)},k.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].onAssign(this.checkValue))}disconnectedCallback(){this.checkValue&&this.name&&k.get(this.getAncestorAttributeValue("formDataProvider"))[this.name].offAssign(this.checkValue),super.disconnectedCallback()}getIcon(t){return t?v`<sonic-icon library="heroicons" name="face-smile"></sonic-icon>`:v`<sonic-icon library="heroicons" name="x-mark"></sonic-icon>`}render(){return this.hasNoChar?S:v`
2174
2178
  <div>${this.wording_password_helper_decription}</div>
2175
2179
  <div>
2176
2180
  ${this.getIcon(this.hasEnoughChars)}
@@ -2191,11 +2195,11 @@
2191
2195
  ${this.getIcon(this.hasSpecialChar)}
2192
2196
  ${this.wording_password_helper_special_char}
2193
2197
  </div>
2194
- `}};ft([a()],ct.prototype,"name",2),ft([a()],ct.prototype,"minChars",2),ft([E()],ct.prototype,"hasNoChar",2),ft([E()],ct.prototype,"hasEnoughChars",2),ft([E()],ct.prototype,"hasMinuscule",2),ft([E()],ct.prototype,"hasMajuscule",2),ft([E()],ct.prototype,"hasNumber",2),ft([E()],ct.prototype,"hasSpecialChar",2),ft([a()],ct.prototype,"wording_password_helper_decription",2),ft([a()],ct.prototype,"wording_password_helper_min_length",2),ft([a()],ct.prototype,"wording_password_helper_lower_case",2),ft([a()],ct.prototype,"wording_password_helper_upper_case",2),ft([a()],ct.prototype,"wording_password_helper_number",2),ft([a()],ct.prototype,"wording_password_helper_special_char",2),ct=ft([x(ll)],ct);var cl=Object.defineProperty,hl=Object.getOwnPropertyDescriptor,fe=(r,t,i,s)=>{for(var e=s>1?void 0:s?hl(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&&cl(t,i,e),e};const dl="sonic-same-value-helper";let ee=class extends Gt(w){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=k.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=ut(r,this.name).get()==ut(r,this.sameValueAs).get())},ut(r,this.name).onAssign(this.checkValue),ut(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=k.get(this.getAncestorAttributeValue("formDataProvider"));ut(r,this.name).offAssign(this.checkValue),ut(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?S:b`
2198
+ `}};ft([a()],ct.prototype,"name",2),ft([a()],ct.prototype,"minChars",2),ft([E()],ct.prototype,"hasNoChar",2),ft([E()],ct.prototype,"hasEnoughChars",2),ft([E()],ct.prototype,"hasMinuscule",2),ft([E()],ct.prototype,"hasMajuscule",2),ft([E()],ct.prototype,"hasNumber",2),ft([E()],ct.prototype,"hasSpecialChar",2),ft([a()],ct.prototype,"wording_password_helper_decription",2),ft([a()],ct.prototype,"wording_password_helper_min_length",2),ft([a()],ct.prototype,"wording_password_helper_lower_case",2),ft([a()],ct.prototype,"wording_password_helper_upper_case",2),ft([a()],ct.prototype,"wording_password_helper_number",2),ft([a()],ct.prototype,"wording_password_helper_special_char",2),ct=ft([P(zl)],ct);var Rl=Object.defineProperty,Ul=Object.getOwnPropertyDescriptor,me=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ul(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&&Rl(t,i,e),e};const Vl="sonic-same-value-helper";let ee=class extends Xt(x){constructor(){super(...arguments),this.descriptionWhenEqual="Correspondance : oui",this.descriptionWhenNotEqual="Correspondance : non",this.areEqual=!1,this.hasNoChar=!0}connectedCallback(){super.connectedCallback();const r=k.get(this.getAncestorAttributeValue("formDataProvider"));this.name&&this.sameValueAs&&(this.checkValue=t=>{t?this.hasNoChar=t.length==0:this.hasNoChar=!0,this.name&&this.sameValueAs&&(this.areEqual=ut(r,this.name).get()==ut(r,this.sameValueAs).get())},ut(r,this.name).onAssign(this.checkValue),ut(r,this.sameValueAs).onAssign(this.checkValue))}disconnectedCallback(){if(this.checkValue&&this.name&&this.sameValueAs){const r=k.get(this.getAncestorAttributeValue("formDataProvider"));ut(r,this.name).offAssign(this.checkValue),ut(r,this.sameValueAs).offAssign(this.checkValue)}super.disconnectedCallback()}render(){return this.hasNoChar?S:v`
2195
2199
  <span>
2196
2200
  ${this.areEqual?F(this.descriptionWhenEqual):F(this.descriptionWhenNotEqual)}
2197
2201
  </span>
2198
- `}};fe([a()],ee.prototype,"name",2),fe([a()],ee.prototype,"sameValueAs",2),fe([a()],ee.prototype,"descriptionWhenEqual",2),fe([a()],ee.prototype,"descriptionWhenNotEqual",2),fe([E()],ee.prototype,"areEqual",2),fe([E()],ee.prototype,"hasNoChar",2),ee=fe([x(dl)],ee);var ul=Object.defineProperty,pl=Object.getOwnPropertyDescriptor,Vt=(r,t,i,s)=>{for(var e=s>1?void 0:s?pl(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&&ul(t,i,e),e};const fl="sonic-checkbox";let mt=class extends ri(Cs(Oe(X(w)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r),r.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return b`
2202
+ `}};me([a()],ee.prototype,"name",2),me([a()],ee.prototype,"sameValueAs",2),me([a()],ee.prototype,"descriptionWhenEqual",2),me([a()],ee.prototype,"descriptionWhenNotEqual",2),me([E()],ee.prototype,"areEqual",2),me([E()],ee.prototype,"hasNoChar",2),ee=me([P(Vl)],ee);var Bl=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,Vt=(r,t,i,s)=>{for(var e=s>1?void 0:s?ql(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&&Bl(t,i,e),e};const Hl="sonic-checkbox";let mt=class extends di(Ts(De(Q(x)))){constructor(){super(...arguments),this.touched=!1,this.iconName="check",this.indeterminateIconName="minus-small",this.showAsIndeterminate=!1,this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){this.type="checkbox",this.hasSlotOrProps(),super.connectedCallback()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r),r.has("type")&&(this.type="checkbox")}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){return v`
2199
2203
  <label class="checkbox-container ${this.disabled?"disabled":""}">
2200
2204
 
2201
2205
  <span class="icon-container">
@@ -2219,11 +2223,11 @@
2219
2223
  <div class="checkbox-text ${!this.hasDescription&&!this.hasLabel?"hidden":"checkbox-text"}">
2220
2224
  ${this.label?F(this.label):""}
2221
2225
  <slot @slotchange=${this.hasSlotOrProps}></slot>
2222
- <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?b`${F(this.description)}`:""}</slot>
2226
+ <slot @slotchange=${this.hasSlotOrProps} name="description" class="${this.hasDescription?"description":"hidden"} ">${this.description?v`${F(this.description)}`:""}</slot>
2223
2227
  </div>
2224
2228
  </label>
2225
2229
  </label>
2226
- `}};mt.styles=[Dt,P`
2230
+ `}};mt.styles=[Ot,$`
2227
2231
  :host {
2228
2232
  --sc-checkbox-border-width: var(--sc-form-border-width);
2229
2233
  --sc-checkbox-border-color: var(
@@ -2345,7 +2349,7 @@
2345
2349
  .hidden {
2346
2350
  display: none;
2347
2351
  }
2348
- `],Vt([a({type:Boolean,reflect:!0})],mt.prototype,"touched",2),Vt([a({type:String})],mt.prototype,"iconName",2),Vt([a({type:String})],mt.prototype,"indeterminateIconName",2),Vt([a({type:Boolean})],mt.prototype,"showAsIndeterminate",2),Vt([a({type:Boolean})],mt.prototype,"hasDescription",2),Vt([a({type:Boolean})],mt.prototype,"hasLabel",2),Vt([at({flatten:!0})],mt.prototype,"slotLabelNodes",2),Vt([at({slot:"description",flatten:!0})],mt.prototype,"slotDescriptionNodes",2),mt=Vt([x(fl)],mt);var ml=Object.getOwnPropertyDescriptor,bl=(r,t,i,s)=>{for(var e=s>1?void 0:s?ml(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const gl="sonic-radio";let vi=class extends mt{constructor(){super(),this.radio=!0}willUpdate(r){const t=r.has("type");super.willUpdate(r),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};vi.styles=[mt.styles,P`
2352
+ `],Vt([a({type:Boolean,reflect:!0})],mt.prototype,"touched",2),Vt([a({type:String})],mt.prototype,"iconName",2),Vt([a({type:String})],mt.prototype,"indeterminateIconName",2),Vt([a({type:Boolean})],mt.prototype,"showAsIndeterminate",2),Vt([a({type:Boolean})],mt.prototype,"hasDescription",2),Vt([a({type:Boolean})],mt.prototype,"hasLabel",2),Vt([at({flatten:!0})],mt.prototype,"slotLabelNodes",2),Vt([at({slot:"description",flatten:!0})],mt.prototype,"slotDescriptionNodes",2),mt=Vt([P(Hl)],mt);var Wl=Object.getOwnPropertyDescriptor,Kl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Yl="sonic-radio";let $i=class extends mt{constructor(){super(),this.radio=!0}willUpdate(r){const t=r.has("type");super.willUpdate(r),t&&(this.type="radio")}connectedCallback(){super.connectedCallback(),this.type="radio"}};$i.styles=[mt.styles,$`
2349
2353
  :host input {
2350
2354
  border-radius: 50%;
2351
2355
  }
@@ -2361,7 +2365,7 @@
2361
2365
  width: 0.6em;
2362
2366
  width: round(0.6em, 1px);
2363
2367
  }
2364
- `],vi=bl([x(gl)],vi);var vl=Object.getOwnPropertyDescriptor,yl=(r,t,i,s)=>{for(var e=s>1?void 0:s?vl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const wl="sonic-switch";let yi=class extends mt{constructor(){super(),this.unique=!0}};yi.styles=[mt.styles,P`
2368
+ `],$i=Kl([P(Yl)],$i);var Zl=Object.getOwnPropertyDescriptor,Gl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zl(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Xl="sonic-switch";let Ci=class extends mt{constructor(){super(),this.unique=!0}};Ci.styles=[mt.styles,$`
2365
2369
  sonic-icon {
2366
2370
  display: none;
2367
2371
  }
@@ -2426,7 +2430,7 @@
2426
2430
  input + sonic-icon {
2427
2431
  display: none;
2428
2432
  }
2429
- `],yi=yl([x(wl)],yi);var _l=Object.defineProperty,xl=Object.getOwnPropertyDescriptor,J=(r,t,i,s)=>{for(var e=s>1?void 0:s?xl(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&&_l(t,i,e),e};const Pl="sonic-select";let K=class extends Oe(X(w)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const i of r)i.selected&&(this.value=i[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const r=this.shadowRoot?.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return b`
2433
+ `],Ci=Gl([P(Xl)],Ci);var Ql=Object.defineProperty,Jl=Object.getOwnPropertyDescriptor,J=(r,t,i,s)=>{for(var e=s>1?void 0:s?Jl(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&&Ql(t,i,e),e};const tc="sonic-select";let K=class extends De(Q(x)){constructor(){super(...arguments),this.valueKey="value",this.wordingKey="wording",this.multiple=!1,this.status="default",this._options=[],this.hasDoneFirstUpdate=!1,this._value="",this.updateOptions=()=>{const r=this.querySelectorAll("option");r.length>0&&(this.options=Array.from(r).map(t=>({value:t.value,wording:t.text,selected:t.hasAttribute("selected")})))},this.forceAutoFill=!1,this.hasDescription=!1,this.hasLabel=!1,this.hasSuffix=!1,this.hasPrefix=!1}set options(r){this._options=r;for(const i of r)i.selected&&(this.value=i[this.valueKey]||"");!(this.value||this.getAttribute("value"))&&this._options.length>0&&(this.value=this._options[0][this.valueKey]),this.requestUpdate()}get options(){return this._options}firstUpdated(r){this.hasDoneFirstUpdate=!0,super.firstUpdated(r)}set value(r){r==null&&!this.hasDoneFirstUpdate||(r||(r=""),this._value!=r&&(this._value=r,this.updateFormPublisherValue(),this.requestUpdate()))}get value(){return this._value}updateFormPublisherValue(){this.setFormPublisherValue(this.value)}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps(),this.updateOptions()}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length),this.hasSuffix=!!this.slotSuffixNodes?.length,this.hasPrefix=!!this.slotPrefixNodes?.length}validateFormElement(){const r=this.shadowRoot?.querySelector("select");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={"has-prefix":this.hasPrefix,"has-suffix":this.hasSuffix};return v`
2430
2434
  <label
2431
2435
  for="form-element"
2432
2436
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2436,7 +2440,7 @@
2436
2440
  ></slot
2437
2441
  ></label>
2438
2442
 
2439
- <div class="form-control ${gi(r)}">
2443
+ <div class="form-control ${Pi(r)}">
2440
2444
  <slot name="prefix" @slotchange=${this.hasSlotOrProps}></slot>
2441
2445
  <div class="form-select-wrapper">
2442
2446
  <select
@@ -2454,7 +2458,7 @@
2454
2458
  aria-label=${C(this.ariaLabel)}
2455
2459
  aria-labelledby=${C(this.ariaLabelledby)}
2456
2460
  >
2457
- ${Ps(this.options,t=>t[this.valueKey],t=>{const i=this.value==t[this.valueKey];return b`<option
2461
+ ${Ls(this.options,t=>t[this.valueKey],t=>{const i=this.value==t[this.valueKey];return v`<option
2458
2462
  ?selected=${i}
2459
2463
  value="${t[this.valueKey]}"
2460
2464
  >
@@ -2475,9 +2479,9 @@
2475
2479
  name="description"
2476
2480
  @slotchange=${this.hasSlotOrProps}
2477
2481
  class="${this.hasDescription?"form-description":"hidden"}"
2478
- >${this.description?b`${F(this.description)}`:""}</slot
2482
+ >${this.description?v`${F(this.description)}`:""}</slot
2479
2483
  >
2480
- `}};K.styles=[Dt,bi,Es,Ns,P`
2484
+ `}};K.styles=[Ot,xi,Vs,Bs,$`
2481
2485
  .form-element {
2482
2486
  appearance: none;
2483
2487
  white-space: nowrap;
@@ -2530,7 +2534,7 @@
2530
2534
  :host([multiple]) sonic-icon {
2531
2535
  display: none !important;
2532
2536
  }
2533
- `],J([a({type:String})],K.prototype,"valueKey",2),J([a({type:String})],K.prototype,"wordingKey",2),J([a({type:Boolean})],K.prototype,"multiple",2),J([a({type:String,reflect:!0})],K.prototype,"size",2),J([a({type:Number})],K.prototype,"selectSize",2),J([a({type:String,reflect:!0})],K.prototype,"status",2),J([a({type:Array})],K.prototype,"options",1),J([a({reflect:!0})],K.prototype,"value",1),J([a({type:Boolean})],K.prototype,"forceAutoFill",2),J([a()],K.prototype,"description",1),J([a()],K.prototype,"label",1),J([at({slot:"label",flatten:!0})],K.prototype,"slotLabelNodes",2),J([at({slot:"description",flatten:!0})],K.prototype,"slotDescriptionNodes",2),J([at({slot:"suffix",flatten:!0})],K.prototype,"slotSuffixNodes",2),J([at({slot:"prefix",flatten:!0})],K.prototype,"slotPrefixNodes",2),J([E()],K.prototype,"hasDescription",2),J([E()],K.prototype,"hasLabel",2),J([E()],K.prototype,"hasSuffix",2),J([E()],K.prototype,"hasPrefix",2),K=J([x(Pl)],K);var $l=Object.defineProperty,Cl=Object.getOwnPropertyDescriptor,bt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cl(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&&$l(t,i,e),e};const Sl="sonic-textarea";let ht=class extends Cs(Oe(X(w))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const r=this.shadowRoot?.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return b`
2537
+ `],J([a({type:String})],K.prototype,"valueKey",2),J([a({type:String})],K.prototype,"wordingKey",2),J([a({type:Boolean})],K.prototype,"multiple",2),J([a({type:String,reflect:!0})],K.prototype,"size",2),J([a({type:Number})],K.prototype,"selectSize",2),J([a({type:String,reflect:!0})],K.prototype,"status",2),J([a({type:Array})],K.prototype,"options",1),J([a({reflect:!0})],K.prototype,"value",1),J([a({type:Boolean})],K.prototype,"forceAutoFill",2),J([a()],K.prototype,"description",1),J([a()],K.prototype,"label",1),J([at({slot:"label",flatten:!0})],K.prototype,"slotLabelNodes",2),J([at({slot:"description",flatten:!0})],K.prototype,"slotDescriptionNodes",2),J([at({slot:"suffix",flatten:!0})],K.prototype,"slotSuffixNodes",2),J([at({slot:"prefix",flatten:!0})],K.prototype,"slotPrefixNodes",2),J([E()],K.prototype,"hasDescription",2),J([E()],K.prototype,"hasLabel",2),J([E()],K.prototype,"hasSuffix",2),J([E()],K.prototype,"hasPrefix",2),K=J([P(tc)],K);var ec=Object.defineProperty,sc=Object.getOwnPropertyDescriptor,bt=(r,t,i,s)=>{for(var e=s>1?void 0:s?sc(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&&ec(t,i,e),e};const ic="sonic-textarea";let ht=class extends Ts(De(Q(x))){constructor(){super(...arguments),this.size="md",this.readonly=!1,this.resize="vertical",this.hasDescription=!1,this.hasLabel=!1}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}validateFormElement(){const r=this.shadowRoot?.querySelector("textarea");if(!r||r.checkValidity())return;const t=this.getFormPublisher();t&&(t.isFormValid=!1),r.reportValidity()}render(){const r={resize:this.resize};return v`
2534
2538
  <label
2535
2539
  for="${this.id||"form-element"}"
2536
2540
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -2572,14 +2576,14 @@ ${this.value}</textarea
2572
2576
  name="description"
2573
2577
  @slotchange=${this.hasSlotOrProps}
2574
2578
  class="${this.hasDescription?"form-description":"hidden"}"
2575
- >${this.description?b`${F(this.description)}`:""}</slot
2579
+ >${this.description?v`${F(this.description)}`:""}</slot
2576
2580
  >
2577
- `}};ht.styles=[Dt,bi,Es,Ns,Ze,P`
2581
+ `}};ht.styles=[Ot,xi,Vs,Bs,Qe,$`
2578
2582
  textarea {
2579
2583
  overflow-y: auto !important;
2580
2584
  font-size: inherit;
2581
2585
  }
2582
- `],bt([a({type:String})],ht.prototype,"size",2),bt([a({type:Number})],ht.prototype,"rows",2),bt([a({type:Number})],ht.prototype,"cols",2),bt([a({type:Number})],ht.prototype,"maxlength",2),bt([a({type:Number})],ht.prototype,"minlength",2),bt([a({type:String})],ht.prototype,"wrap",2),bt([a({type:Boolean})],ht.prototype,"readonly",2),bt([a({type:String})],ht.prototype,"placeholder",2),bt([a({type:String})],ht.prototype,"resize",2),bt([at({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),bt([at({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),bt([E()],ht.prototype,"hasDescription",2),bt([E()],ht.prototype,"hasLabel",2),ht=bt([x(Sl)],ht);var Al=Object.getOwnPropertyDescriptor,kl=(r,t,i,s)=>{for(var e=s>1?void 0:s?Al(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};let wi=class extends w{render(){return b`<slot></slot>`}};wi.styles=[P`
2586
+ `],bt([a({type:String})],ht.prototype,"size",2),bt([a({type:Number})],ht.prototype,"rows",2),bt([a({type:Number})],ht.prototype,"cols",2),bt([a({type:Number})],ht.prototype,"maxlength",2),bt([a({type:Number})],ht.prototype,"minlength",2),bt([a({type:String})],ht.prototype,"wrap",2),bt([a({type:Boolean})],ht.prototype,"readonly",2),bt([a({type:String})],ht.prototype,"placeholder",2),bt([a({type:String})],ht.prototype,"resize",2),bt([at({slot:"label",flatten:!0})],ht.prototype,"slotLabelNodes",2),bt([at({slot:"description",flatten:!0})],ht.prototype,"slotDescriptionNodes",2),bt([E()],ht.prototype,"hasDescription",2),bt([E()],ht.prototype,"hasLabel",2),ht=bt([P(ic)],ht);var rc=Object.getOwnPropertyDescriptor,oc=(r,t,i,s)=>{for(var e=s>1?void 0:s?rc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};let Si=class extends x{render(){return v`<slot></slot>`}};Si.styles=[$`
2583
2587
  :host {
2584
2588
  font-size: 1.15rem;
2585
2589
  line-height: 1.2;
@@ -2596,8 +2600,8 @@ ${this.value}</textarea
2596
2600
  font-size: 1rem;
2597
2601
  }
2598
2602
  }
2599
- `],wi=kl([x("sonic-legend-description")],wi);var Ol=Object.defineProperty,Dl=Object.getOwnPropertyDescriptor,me=(r,t,i,s)=>{for(var e=s>1?void 0:s?Dl(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&&Ol(t,i,e),e};const Ll="sonic-legend";let Bt=class extends w{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return b`<legend part="legend">
2600
- ${this.iconName?b`<div class="icon">
2603
+ `],Si=oc([P("sonic-legend-description")],Si);var nc=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,be=(r,t,i,s)=>{for(var e=s>1?void 0:s?ac(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&&nc(t,i,e),e};const lc="sonic-legend";let Bt=class extends x{constructor(){super(...arguments),this.forceAutoFill=!1}get description(){return this._description}set description(r){this.hasAttribute("description")&&!this.forceAutoFill&&(r=this.getAttribute("description")),this._description=r,this.requestUpdate()}get label(){return this._label}set label(r){this.hasAttribute("label")&&!this.forceAutoFill&&(r=this.getAttribute("label")),this._label=r,this.requestUpdate()}render(){return v`<legend part="legend">
2604
+ ${this.iconName?v`<div class="icon">
2601
2605
  <sonic-icon
2602
2606
  name=${this.iconName}
2603
2607
  prefix=${C(this.iconPrefix)}
@@ -2607,13 +2611,13 @@ ${this.value}</textarea
2607
2611
 
2608
2612
  <div class="legend-content">
2609
2613
  ${F(this.label?this.label:"")}
2610
- ${this.description?b`<sonic-legend-description
2614
+ ${this.description?v`<sonic-legend-description
2611
2615
  >${F(this.description)}</sonic-legend-description
2612
2616
  >`:""}
2613
2617
  <slot></slot>
2614
2618
  </div>
2615
2619
  <slot name="suffix"></slot>
2616
- </legend>`}};Bt.styles=[P`
2620
+ </legend>`}};Bt.styles=[$`
2617
2621
  :host {
2618
2622
  --sc-legend-font-size: 1.5rem;
2619
2623
  --sc-legend-font-weight: var(--sc-font-weight-base, 400);
@@ -2657,11 +2661,11 @@ ${this.value}</textarea
2657
2661
  .legend-content {
2658
2662
  flex-grow: 1;
2659
2663
  }
2660
- `],me([a({type:Boolean})],Bt.prototype,"forceAutoFill",2),me([a()],Bt.prototype,"description",1),me([a()],Bt.prototype,"label",1),me([a({type:String})],Bt.prototype,"iconName",2),me([a({type:String})],Bt.prototype,"iconLibrary",2),me([a({type:String})],Bt.prototype,"iconPrefix",2),Bt=me([x(Ll)],Bt);var El=Object.defineProperty,Nl=Object.getOwnPropertyDescriptor,Nt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Nl(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&&El(t,i,e),e};const Tl="sonic-fieldset";let xt=class extends X(w){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return b`<fieldset
2664
+ `],be([a({type:Boolean})],Bt.prototype,"forceAutoFill",2),be([a()],Bt.prototype,"description",1),be([a()],Bt.prototype,"label",1),be([a({type:String})],Bt.prototype,"iconName",2),be([a({type:String})],Bt.prototype,"iconLibrary",2),be([a({type:String})],Bt.prototype,"iconPrefix",2),Bt=be([P(lc)],Bt);var cc=Object.defineProperty,hc=Object.getOwnPropertyDescriptor,Tt=(r,t,i,s)=>{for(var e=s>1?void 0:s?hc(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&&cc(t,i,e),e};const dc="sonic-fieldset";let xt=class extends Q(x){constructor(){super(...arguments),this.disabled=!1,this.variant="default"}render(){return v`<fieldset
2661
2665
  form="${C(this.form)}"
2662
2666
  ?disabled="${this.disabled}"
2663
2667
  >
2664
- ${this.label?b` <sonic-legend
2668
+ ${this.label?v` <sonic-legend
2665
2669
  label=${C(this.label)}
2666
2670
  description=${C(this.description)}
2667
2671
  iconName=${C(this.iconName)}
@@ -2669,7 +2673,7 @@ ${this.value}</textarea
2669
2673
  iconLibrary=${C(this.iconLibrary)}
2670
2674
  ></sonic-legend>`:S}
2671
2675
  <slot></slot>
2672
- </fieldset>`}};xt.styles=[P`
2676
+ </fieldset>`}};xt.styles=[$`
2673
2677
  :host {
2674
2678
  --sc-fieldset-mt: 0;
2675
2679
  --sc-fieldset-mb: 1rem;
@@ -2718,9 +2722,9 @@ ${this.value}</textarea
2718
2722
  ::slotted(sonic-legend:last-child) {
2719
2723
  margin-bottom: 0;
2720
2724
  }
2721
- `],Nt([a({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Nt([a({type:String})],xt.prototype,"form",2),Nt([a({type:String})],xt.prototype,"label",2),Nt([a({type:String})],xt.prototype,"description",2),Nt([a({type:String})],xt.prototype,"iconName",2),Nt([a({type:String})],xt.prototype,"iconLibrary",2),Nt([a({type:String})],xt.prototype,"iconPrefix",2),Nt([a({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Nt([a({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Nt([x(Tl)],xt);var Il=Object.defineProperty,Ml=Object.getOwnPropertyDescriptor,_i=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ml(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&&Il(t,i,e),e};const jl="sonic-form-layout";let es=class extends X(w){constructor(){super(...arguments),this._resizeController=new Er(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(i=>t.includes(i.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return b`<div class=${gi(r)}>
2725
+ `],Tt([a({type:Boolean,reflect:!0})],xt.prototype,"disabled",2),Tt([a({type:String})],xt.prototype,"form",2),Tt([a({type:String})],xt.prototype,"label",2),Tt([a({type:String})],xt.prototype,"description",2),Tt([a({type:String})],xt.prototype,"iconName",2),Tt([a({type:String})],xt.prototype,"iconLibrary",2),Tt([a({type:String})],xt.prototype,"iconPrefix",2),Tt([a({type:Boolean,reflect:!0})],xt.prototype,"tight",2),Tt([a({type:String,reflect:!0})],xt.prototype,"variant",2),xt=Tt([P(dc)],xt);var uc=Object.defineProperty,pc=Object.getOwnPropertyDescriptor,Ai=(r,t,i,s)=>{for(var e=s>1?void 0:s?pc(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&&uc(t,i,e),e};const fc="sonic-form-layout";let ls=class extends Q(x){constructor(){super(...arguments),this._resizeController=new Zr(this,{}),this.oneFormElement=!1}onSlotChange(){let r=this.slottedElements;const t=["sonic-input","sonic-select","sonic-input-autocomplete",".form-item-container"];r=r.filter(i=>t.includes(i.nodeName.toLowerCase())),this.oneFormElement=r.length==1}render(){const r={"cq--md":this.offsetWidth>440,"one-form-element":this.oneFormElement};return v`<div class=${Pi(r)}>
2722
2726
  <slot @slotchange=${this.onSlotChange}></slot>
2723
- </div>`}};es.styles=[P`
2727
+ </div>`}};ls.styles=[$`
2724
2728
  :host {
2725
2729
  display: block;
2726
2730
  }
@@ -2755,7 +2759,7 @@ ${this.value}</textarea
2755
2759
  ::slotted(sonic-divider) {
2756
2760
  --sc-divider-my: 0;
2757
2761
  }
2758
- `],_i([Pe({flatten:!0})],es.prototype,"slottedElements",2),_i([a({type:Boolean})],es.prototype,"oneFormElement",2),es=_i([x(jl)],es);var Fl=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,xi=(r,t,i,s)=>{for(var e=s>1?void 0:s?zl(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&&Fl(t,i,e),e};const Rl="sonic-form-actions";let ss=class extends w{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return b`<slot style=${pt(r)}></slot>`}};ss.styles=[P`
2762
+ `],Ai([$e({flatten:!0})],ls.prototype,"slottedElements",2),Ai([a({type:Boolean})],ls.prototype,"oneFormElement",2),ls=Ai([P(fc)],ls);var mc=Object.defineProperty,bc=Object.getOwnPropertyDescriptor,ki=(r,t,i,s)=>{for(var e=s>1?void 0:s?bc(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&&mc(t,i,e),e};const gc="sonic-form-actions";let cs=class extends x{constructor(){super(...arguments),this.direction="row",this.justify="flex-start"}render(){const r={flexDirection:this.direction,justifyContent:this.justify};return v`<slot style=${pt(r)}></slot>`}};cs.styles=[$`
2759
2763
  :host {
2760
2764
  display: block;
2761
2765
  }
@@ -2764,7 +2768,7 @@ ${this.value}</textarea
2764
2768
  flex-wrap: wrap;
2765
2769
  gap: 0.3rem;
2766
2770
  }
2767
- `],xi([a({type:String})],ss.prototype,"direction",2),xi([a({type:String})],ss.prototype,"justify",2),ss=xi([x(Rl)],ss);var Ul=Object.defineProperty,Vl=Object.getOwnPropertyDescriptor,se=(r,t,i,s)=>{for(var e=s>1?void 0:s?Vl(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&&Ul(t,i,e),e};const Bl="sonic-group";let Tt=class extends w{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((i,s)=>{const e=i;s===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):s===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const r={alignItems:this.alignItems};return b`<span class="${this.hasLabel?"form-label":"hidden"}"
2771
+ `],ki([a({type:String})],cs.prototype,"direction",2),ki([a({type:String})],cs.prototype,"justify",2),cs=ki([P(gc)],cs);var vc=Object.defineProperty,yc=Object.getOwnPropertyDescriptor,se=(r,t,i,s)=>{for(var e=s>1?void 0:s?yc(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&&vc(t,i,e),e};const _c="sonic-group";let Nt=class extends x{constructor(){super(...arguments),this.alignItems="center",this.hasDescription=!1,this.hasLabel=!1}updated(){const r=this.querySelectorAll("sonic-input, sonic-button, sonic-select"),t=r.length;t>1&&r.forEach((i,s)=>{const e=i;s===0?(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0")):s===t-1?(e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0")):(e.style.setProperty("--sc-item-rounded-tr","0"),e.style.setProperty("--sc-item-rounded-br","0"),e.style.setProperty("--sc-item-rounded-tl","0"),e.style.setProperty("--sc-item-rounded-bl","0"))})}connectedCallback(){super.connectedCallback(),this.hasSlotOrProps()}willUpdate(r){this.hasSlotOrProps(),super.willUpdate(r)}hasSlotOrProps(){this.hasLabel=!!(this.label||this.slotLabelNodes?.length),this.hasDescription=!!(this.description||this.slotDescriptionNodes?.length)}render(){const r={alignItems:this.alignItems};return v`<span class="${this.hasLabel?"form-label":"hidden"}"
2768
2772
  >${this.label?F(this.label):""}<slot
2769
2773
  name="label"
2770
2774
  @slotchange=${this.hasSlotOrProps}
@@ -2776,8 +2780,8 @@ ${this.value}</textarea
2776
2780
  @slotchange=${this.hasSlotOrProps}
2777
2781
  class="${this.hasDescription?"form-description":"hidden"}"
2778
2782
  >
2779
- ${this.description?b`${F(this.description)}`:""}
2780
- </slot>`}};Tt.styles=[Dt,Es,Ns,P`
2783
+ ${this.description?v`${F(this.description)}`:""}
2784
+ </slot>`}};Nt.styles=[Ot,Vs,Bs,$`
2781
2785
  :host {
2782
2786
  display: inline-block;
2783
2787
  vertical-align: middle;
@@ -2797,7 +2801,7 @@ ${this.value}</textarea
2797
2801
  ::slotted(sonic-select) {
2798
2802
  flex-grow: 1;
2799
2803
  }
2800
- `],se([a({type:String})],Tt.prototype,"alignItems",2),se([a({type:String})],Tt.prototype,"label",2),se([a({type:String})],Tt.prototype,"description",2),se([at({slot:"label",flatten:!0})],Tt.prototype,"slotLabelNodes",2),se([at({slot:"description",flatten:!0})],Tt.prototype,"slotDescriptionNodes",2),se([E()],Tt.prototype,"hasDescription",2),se([E()],Tt.prototype,"hasLabel",2),Tt=se([x(Bl)],Tt);var ql=Object.defineProperty,Hl=Object.getOwnPropertyDescriptor,It=(r,t,i,s)=>{for(var e=s>1?void 0:s?Hl(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&&ql(t,i,e),e};const Wl="sonic-image";let Pt=class extends w{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return b`<div part="image">
2804
+ `],se([a({type:String})],Nt.prototype,"alignItems",2),se([a({type:String})],Nt.prototype,"label",2),se([a({type:String})],Nt.prototype,"description",2),se([at({slot:"label",flatten:!0})],Nt.prototype,"slotLabelNodes",2),se([at({slot:"description",flatten:!0})],Nt.prototype,"slotDescriptionNodes",2),se([E()],Nt.prototype,"hasDescription",2),se([E()],Nt.prototype,"hasLabel",2),Nt=se([P(_c)],Nt);var wc=Object.defineProperty,xc=Object.getOwnPropertyDescriptor,Mt=(r,t,i,s)=>{for(var e=s>1?void 0:s?xc(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&&wc(t,i,e),e};const Pc="sonic-image";let Pt=class extends x{constructor(){super(...arguments),this.rounded="none",this.src="",this.alt="",this.loading="lazy",this.ratio="auto",this.objectPosition="center center",this.imageRendering="auto",this.cover=!1}firstUpdated(r){if(this.transition){const t=this.shadowRoot?.querySelector("img");if(!t)return;t.onload=function(){t.classList.add("loaded")}}super.firstUpdated(r)}render(){const r={aspectRatio:this.cover?"auto":this.ratio,imageRendering:this.imageRendering,objectPosition:this.objectPosition};return v`<div part="image">
2801
2805
  <picture part="picture"
2802
2806
  ><img
2803
2807
  part="img"
@@ -2806,7 +2810,7 @@ ${this.value}</textarea
2806
2810
  alt="${this.alt}"
2807
2811
  style=${pt(r)}
2808
2812
  /></picture>
2809
- </div>`}};Pt.styles=[P`
2813
+ </div>`}};Pt.styles=[$`
2810
2814
  :host {
2811
2815
  --sc-img-radius: 0;
2812
2816
  --sc-img-bg: var(--sc-placeholder-bg, rgba(12, 12, 12, 0.05));
@@ -2880,7 +2884,7 @@ ${this.value}</textarea
2880
2884
  opacity: 1;
2881
2885
  scale: 1;
2882
2886
  }
2883
- `],It([a({type:String})],Pt.prototype,"rounded",2),It([a({type:String})],Pt.prototype,"src",2),It([a({type:String})],Pt.prototype,"alt",2),It([a({type:String})],Pt.prototype,"loading",2),It([a({type:String,reflect:!0})],Pt.prototype,"transition",2),It([a({type:String})],Pt.prototype,"ratio",2),It([a({type:String})],Pt.prototype,"objectPosition",2),It([a({type:String})],Pt.prototype,"imageRendering",2),It([a({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=It([x(Wl)],Pt);var Kl=Object.defineProperty,Yl=Object.getOwnPropertyDescriptor,gt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Yl(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&&Kl(t,i,e),e};const Zl="sonic-menu";let dt=class extends w{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(r)}setDividersSize(r){r.forEach(t=>{t.setAttribute("size","sm"),this.direction=="row"?t.style.setProperty("margin","0 .1rem "):t.style.setProperty("margin"," 0.1rem 0")})}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.setDividersSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(r=>{this.attributeObserver.observe(r,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const r=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");r.length===1&&requestAnimationFrame(()=>{r[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(r){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let r=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",s=>{r=!0,this.classList.add("active"),t=s.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",s=>{if(!r)return;s.preventDefault();const o=(s.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-o,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",s=>{s.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",i={gap:this.gap,flexDirection:this.direction},s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},e={marginLeft:t?"":".55em"};return b`<menu
2887
+ `],Mt([a({type:String})],Pt.prototype,"rounded",2),Mt([a({type:String})],Pt.prototype,"src",2),Mt([a({type:String})],Pt.prototype,"alt",2),Mt([a({type:String})],Pt.prototype,"loading",2),Mt([a({type:String,reflect:!0})],Pt.prototype,"transition",2),Mt([a({type:String})],Pt.prototype,"ratio",2),Mt([a({type:String})],Pt.prototype,"objectPosition",2),Mt([a({type:String})],Pt.prototype,"imageRendering",2),Mt([a({type:Boolean,reflect:!0})],Pt.prototype,"cover",2),Pt=Mt([P(Pc)],Pt);var $c=Object.defineProperty,Cc=Object.getOwnPropertyDescriptor,gt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Cc(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&&$c(t,i,e),e};const Sc="sonic-menu";let dt=class extends x{constructor(){super(...arguments),this.direction="column",this.gap="var(--sc-menu-gap)",this.align="left",this.shadow=null,this.moreShape="circle",this.scrollable=!1,this.observer=null,this.attributeObserver=null,this.minWidth="0",this.hasMoreElements=!1,this.handleScrollEnd=()=>{this.setScrollShadow(this.menuContent,this.direction)},this.updateIsScollable=()=>{this.scrollable&&(this.initScrollable(),this.setScrollShadow(this.menuContent,this.direction))}}checkIfMore(){this.hasMoreElements=!!this.moreElements?.length}moreSlotChange(){this.checkIfMore(),this.updateIsScollable()}updated(r){const t=this.querySelector(".more-btn");this.size&&t&&t.setAttribute("size",this.size),super.updated(r)}setDividersSize(r){r.forEach(t=>{t.setAttribute("size","sm"),this.direction=="row"?t.style.setProperty("margin","0 .1rem "):t.style.setProperty("margin"," 0.1rem 0")})}mainSlotChange(){this.setChildrenSize(this.menuChildren),this.setDividersSize(this.menuChildren),this.updateIsScollable(),this.updateScrollPosition(),this.observeMenuItemsAttributes()}observeMenuItemsAttributes(){this.attributeObserver?.disconnect(),this.attributeObserver=new MutationObserver(()=>{this.updateScrollPosition()}),this.menuChildren.forEach(r=>{this.attributeObserver.observe(r,{attributes:!0,attributeFilter:["active"]})})}updateScrollPosition(){if(this.scrollable){const r=this.menuChildren.filter(t=>t.hasAttribute("active")&&t.getAttribute("active")!=="false");r.length===1&&requestAnimationFrame(()=>{r[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})}}connectedCallback(){this.observer=new ResizeObserver(this.updateIsScollable),this.observer.observe(this),super.connectedCallback()}firstUpdated(r){this.menuContent.addEventListener("scrollend",this.handleScrollEnd)}disconnectedCallback(){this.observer?.disconnect(),this.attributeObserver?.disconnect(),this.menuContent.removeEventListener("scrollend",this.handleScrollEnd),super.disconnectedCallback()}initScrollable(){let r=!1,t,i;this.scrollable&&(this.addEventListener("mousedown",s=>{r=!0,this.classList.add("active"),t=s.pageX-this.menuContent.offsetLeft,i=this.menuContent.scrollLeft}),this.addEventListener("mouseleave",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mouseup",()=>{r=!1,this.classList.remove("active")}),this.addEventListener("mousemove",s=>{if(!r)return;s.preventDefault();const o=(s.pageX-this.menuContent.offsetLeft-t)*1.5;this.menuContent.scrollLeft=i-o,this.setScrollShadow(this.menuContent,this.direction)}),this.addEventListener("scroll",s=>{s.preventDefault(),this.setScrollShadow(this.menuContent,this.direction)}))}setScrollShadow(r,t){t=="row"?(r.scrollLeft>0?this.classList.add("shadow-left"):this.classList.remove("shadow-left"),r.scrollLeft<r.scrollWidth-r.offsetWidth?this.classList.add("shadow-right"):this.classList.remove("shadow-right")):t=="column"&&(r.scrollTop>0?this.classList.add("shadow-top"):this.classList.remove("shadow-top"),r.scrollTop<r.scrollHeight-(r.offsetHeight+1)?this.classList.add("shadow-bottom"):this.classList.remove("shadow-bottom"))}setChildrenSize(r){r.forEach(t=>{this.size&&t.setAttribute("size",this.size),this.align&&t.getAttribute("shape")!="square"&&t.getAttribute("shape")!="circle"&&t.setAttribute("align",this.align),this.direction=="row"&&t.getAttribute("shape")=="block"&&t.setAttribute("shape","default")})}render(){const r={minWidth:this.minWidth,flexDirection:this.direction},t=this.direction=="row",i={gap:this.gap,flexDirection:this.direction},s={display:"block",alignSelf:t?"center":"flex-start",justifySelf:"center",flexDirection:this.direction},e={marginLeft:t?"":".55em"};return v`<menu
2884
2888
  part="menu"
2885
2889
  class="shadowable"
2886
2890
  style=${pt(r)}
@@ -2911,7 +2915,7 @@ ${this.value}</textarea
2911
2915
  slot="content"
2912
2916
  ></slot>
2913
2917
  </sonic-pop>
2914
- </menu>`}};dt.styles=[P`
2918
+ </menu>`}};dt.styles=[$`
2915
2919
  :host {
2916
2920
  display: block;
2917
2921
  --sc-menu-gap: 0.15rem;
@@ -3039,14 +3043,14 @@ ${this.value}</textarea
3039
3043
  rgba(0, 0, 0, 0) 100%
3040
3044
  );
3041
3045
  }
3042
- `,Dr],gt([a({type:String,reflect:!0})],dt.prototype,"size",2),gt([a({type:String,reflect:!0})],dt.prototype,"direction",2),gt([a({type:String})],dt.prototype,"gap",2),gt([a({type:String,reflect:!0})],dt.prototype,"align",2),gt([a({type:String,reflect:!0})],dt.prototype,"shadow",2),gt([a({type:String})],dt.prototype,"moreShape",2),gt([a({type:Boolean})],dt.prototype,"scrollable",2),gt([a({type:String})],dt.prototype,"minWidth",2),gt([Kt("menu")],dt.prototype,"menu",2),gt([Kt("#menu-content")],dt.prototype,"menuContent",2),gt([Pe({selector:"*"})],dt.prototype,"menuChildren",2),gt([Pe({slot:"more",selector:"*"})],dt.prototype,"moreElements",2),gt([E()],dt.prototype,"hasMoreElements",2),dt=gt([x(Zl)],dt);var Xl=Object.defineProperty,Gl=Object.getOwnPropertyDescriptor,Nr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Gl(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&&Xl(t,i,e),e};const Ql="sonic-modal-actions";let Ts=class extends w{firstUpdated(r){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{Xt.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(r)}render(){return b`<slot></slot>`}};Ts.styles=[P`
3046
+ `,Kr],gt([a({type:String,reflect:!0})],dt.prototype,"size",2),gt([a({type:String,reflect:!0})],dt.prototype,"direction",2),gt([a({type:String})],dt.prototype,"gap",2),gt([a({type:String,reflect:!0})],dt.prototype,"align",2),gt([a({type:String,reflect:!0})],dt.prototype,"shadow",2),gt([a({type:String})],dt.prototype,"moreShape",2),gt([a({type:Boolean})],dt.prototype,"scrollable",2),gt([a({type:String})],dt.prototype,"minWidth",2),gt([Kt("menu")],dt.prototype,"menu",2),gt([Kt("#menu-content")],dt.prototype,"menuContent",2),gt([$e({selector:"*"})],dt.prototype,"menuChildren",2),gt([$e({slot:"more",selector:"*"})],dt.prototype,"moreElements",2),gt([E()],dt.prototype,"hasMoreElements",2),dt=gt([P(Sc)],dt);var Ac=Object.defineProperty,kc=Object.getOwnPropertyDescriptor,Gr=(r,t,i,s)=>{for(var e=s>1?void 0:s?kc(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&&Ac(t,i,e),e};const Dc="sonic-modal-actions";let qs=class extends x{firstUpdated(r){this.buttons?.forEach(t=>{t.hasAttribute("hideModal")&&t.addEventListener("click",()=>{Gt.getClosestElement(this,"sonic-modal")?.hide()})}),super.firstUpdated(r)}render(){return v`<slot></slot>`}};qs.styles=[$`
3043
3047
  :host {
3044
3048
  display: flex;
3045
3049
  gap: 0.5rem;
3046
3050
  margin-top: auto;
3047
3051
  padding-top: 1.5rem;
3048
3052
  }
3049
- `],Nr([Pe({selector:"sonic-button"})],Ts.prototype,"buttons",2),Ts=Nr([x(Ql)],Ts);var Jl=Object.defineProperty,tc=Object.getOwnPropertyDescriptor,Is=(r,t,i,s)=>{for(var e=s>1?void 0:s?tc(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&&Jl(t,i,e),e};const ec="sonic-modal-close";let is=class extends w{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return b`<sonic-button
3053
+ `],Gr([$e({selector:"sonic-button"})],qs.prototype,"buttons",2),qs=Gr([P(Dc)],qs);var Oc=Object.defineProperty,Lc=Object.getOwnPropertyDescriptor,Hs=(r,t,i,s)=>{for(var e=s>1?void 0:s?Lc(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&&Oc(t,i,e),e};const Ec="sonic-modal-close";let hs=class extends x{constructor(){super(...arguments),this.translation={fr:"Fermer la fenêtre",en:"Close window",de:"Fenster schließen",nl:"Venster sluiten",es:"Cerrar"}}connectedCallback(){super.connectedCallback(),this.lang=document.documentElement.lang?.split("-")[0]??"fr"}render(){return v`<sonic-button
3050
3054
  noAutoFill
3051
3055
  data-aria-label=${this.translation[this.lang]}
3052
3056
  reset=${C(this.reset)}
@@ -3054,12 +3058,12 @@ ${this.value}</textarea
3054
3058
  @click=${this.handleClick}
3055
3059
  type=${C(this.type)}
3056
3060
  ><sonic-icon name="cancel" size="lg"></sonic-icon
3057
- ></sonic-button>`}handleClick(){H.getClosestElement(this,"sonic-modal").hide()}};Is([a()],is.prototype,"translation",2),Is([a()],is.prototype,"reset",2),Is([a()],is.prototype,"type",2),is=Is([x(ec)],is);var sc=Object.getOwnPropertyDescriptor,ic=(r,t,i,s)=>{for(var e=s>1?void 0:s?sc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const rc="sonic-modal-content";let Pi=class extends w{render(){return b`<slot></slot>`}};Pi.styles=[P`
3061
+ ></sonic-button>`}handleClick(){H.getClosestElement(this,"sonic-modal").hide()}};Hs([a()],hs.prototype,"translation",2),Hs([a()],hs.prototype,"reset",2),Hs([a()],hs.prototype,"type",2),hs=Hs([P(Ec)],hs);var Tc=Object.getOwnPropertyDescriptor,Nc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Tc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Mc="sonic-modal-content";let Di=class extends x{render(){return v`<slot></slot>`}};Di.styles=[$`
3058
3062
  :host {
3059
3063
  display: block;
3060
3064
  width: 100%;
3061
3065
  }
3062
- `],Pi=ic([x(rc)],Pi);var oc=Object.getOwnPropertyDescriptor,nc=(r,t,i,s)=>{for(var e=s>1?void 0:s?oc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const ac="sonic-modal-subtitle";let $i=class extends w{render(){return b`<slot></slot>`}};$i.styles=[P`
3066
+ `],Di=Nc([P(Mc)],Di);var Ic=Object.getOwnPropertyDescriptor,jc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ic(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Fc="sonic-modal-subtitle";let Oi=class extends x{render(){return v`<slot></slot>`}};Oi.styles=[$`
3063
3067
  :host {
3064
3068
  font-size: 1.25rem;
3065
3069
  display: block;
@@ -3071,7 +3075,7 @@ ${this.value}</textarea
3071
3075
  font-weight: var(--sc-headings-font-weight, 700);
3072
3076
  font-style: var(--sc-headings-font-style, normal);
3073
3077
  }
3074
- `],$i=nc([x(ac)],$i);var lc=Object.getOwnPropertyDescriptor,cc=(r,t,i,s)=>{for(var e=s>1?void 0:s?lc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const hc="sonic-modal-title";let Ci=class extends w{render(){return b`<slot></slot>`}};Ci.styles=[P`
3078
+ `],Oi=jc([P(Fc)],Oi);var zc=Object.getOwnPropertyDescriptor,Rc=(r,t,i,s)=>{for(var e=s>1?void 0:s?zc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Uc="sonic-modal-title";let Li=class extends x{render(){return v`<slot></slot>`}};Li.styles=[$`
3075
3079
  :host {
3076
3080
  font-weight: bold;
3077
3081
  font-size: 1.5rem;
@@ -3084,7 +3088,7 @@ ${this.value}</textarea
3084
3088
  font-weight: var(--sc-headings-font-weight, 700);
3085
3089
  font-style: var(--sc-headings-font-style, normal);
3086
3090
  }
3087
- `],Ci=cc([x(hc)],Ci);var dc=Object.defineProperty,uc=Object.getOwnPropertyDescriptor,Y=(r,t,i,s)=>{for(var e=s>1?void 0:s?uc(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&&dc(t,i,e),e};const Tr="sonic-modal";let T=class extends X(w){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(r){const t=document.createElement(Tr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),r.maxWidth&&(t.maxWidth=r?.maxWidth),r.width&&(t.width=r?.width),r.maxHeight&&(t.maxHeight=r?.maxHeight),r.height&&(t.height=r?.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r?.fullScreen),r.effect&&(t.effect=r?.effect),r.noCloseButton&&(t.noCloseButton=!0),r.closeButtonType&&(t.closeButtonType=r?.closeButtonType),r.paddingX&&(t.paddingX=r?.paddingX),r.paddingY&&(t.paddingY=r?.paddingY),r.zIndex&&(t.zIndex=r?.zIndex),wt.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){T.modals.push(this),et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),T.modals.splice(T.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(r){if(this.closeOnLocationChange&&r.has("location")){const t=r.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}r.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),r.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),r.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(r)}updated(r){const t=!r.get("visible")&&this.visible,i=r.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():i&&this._animationState==="visible"&&this.hide()}handleOverlayClick(r){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const r={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState!=="hidden"?"auto":"none"},t={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return b`
3091
+ `],Li=Rc([P(Uc)],Li);var Vc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,Y=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bc(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&&Vc(t,i,e),e};const Xr="sonic-modal";let N=class extends Q(x){constructor(){super(...arguments),this.forceAction=!1,this.noCloseButton=!1,this.removeOnHide=!1,this.removeHashOnHide=!1,this.align="left",this.maxWidth="min(100vw, 40rem)",this.maxHeight="90vh",this.width="100%",this.height="fit-content",this.effect="slide",this.fullScreen=!1,this.visible=!1,this.closeOnLocationChange=!1,this.location="",this._animationState="hidden",this._animationConfig={quartOut:"cubic-bezier(0.165, 0.84, 0.44, 1)",quadOut:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",linear:"linear",translateY:"translateY(2.5rem)",durationIn:300,durationOut:300}}static create(r){const t=document.createElement(Xr);return t.options=r,r.removeHashOnHide===!0&&t.setAttribute("removeHashOnHide","true"),r.removeOnHide===!0&&t.setAttribute("removeOnHide","true"),r.closeOnLocationChange===!0&&t.setAttribute("closeOnLocationChange","true"),r.maxWidth&&(t.maxWidth=r?.maxWidth),r.width&&(t.width=r?.width),r.maxHeight&&(t.maxHeight=r?.maxHeight),r.height&&(t.height=r?.height),r.forceAction&&(t.forceAction=!0),r.fullScreen&&(t.fullScreen=r?.fullScreen),r.effect&&(t.effect=r?.effect),r.noCloseButton&&(t.noCloseButton=!0),r.closeButtonType&&(t.closeButtonType=r?.closeButtonType),r.paddingX&&(t.paddingX=r?.paddingX),r.paddingY&&(t.paddingY=r?.paddingY),r.zIndex&&(t.zIndex=r?.zIndex),_t.getPopContainer().appendChild(t),t.updateComplete.then(()=>{t.show()}),t}connectedCallback(){N.modals.push(this),et.onChange(this),super.connectedCallback()}disconnectedCallback(){et.offChange(this),N.modals.splice(N.modals.indexOf(this),1),this.removeEventListener("keydown",this.handleEscape),super.disconnectedCallback()}firstUpdated(){this.addEventListener("keydown",this.handleEscape)}willUpdate(r){if(this.closeOnLocationChange&&r.has("location")){const t=r.get("location");t&&this.location&&this.location!==t&&setTimeout(()=>{this.hide()},50)}r.has("zIndex")&&this.style.setProperty("--sc_z-index",this.zIndex||"990"),r.has("paddingX")&&this.style.setProperty("--sc-modal-px",this.paddingX||""),r.has("paddingY")&&this.style.setProperty("--sc-modal-py",this.paddingY||""),super.willUpdate(r)}updated(r){const t=!r.get("visible")&&this.visible,i=r.get("visible")&&!this.visible;t&&this._animationState==="hidden"?this.show():i&&this._animationState==="visible"&&this.hide()}handleOverlayClick(r){!this.forceAction&&this._animationState==="visible"&&this.hide()}render(){const r={maxWidth:this.maxWidth,maxHeight:this.maxHeight,width:this.width,height:this.height,pointerEvents:this._animationState!=="hidden"?"auto":"none"},t={display:this.fullScreen?"none":"block",pointerEvents:this._animationState==="visible"?"auto":"none"};return v`
3088
3092
  <div
3089
3093
  id="backdrop"
3090
3094
  @click=${this.handleOverlayClick}
@@ -3097,8 +3101,8 @@ ${this.value}</textarea
3097
3101
  aria-modal="true"
3098
3102
  style=${pt(r)}
3099
3103
  >
3100
- ${this._animationState!=="hidden"?b`<div id="modal-content">
3101
- ${!this.forceAction&&!this.noCloseButton?b`<sonic-modal-close
3104
+ ${this._animationState!=="hidden"?v`<div id="modal-content">
3105
+ ${!this.forceAction&&!this.noCloseButton?v`<sonic-modal-close
3102
3106
  class="${this._animationState=="visible"?"animate-in":"animate-out"}"
3103
3107
  type=${C(this.closeButtonType)}
3104
3108
  ></sonic-modal-close>`:S}
@@ -3107,7 +3111,7 @@ ${this.value}</textarea
3107
3111
  <slot></slot>
3108
3112
  </div>`:S}
3109
3113
  </dialog>
3110
- `}modalFragment(r){const t=this.options?.[r];if(!t)return S;let i;switch(t instanceof Object?i=t:i=F(t),r){case"title":return b`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return b`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return b`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return b`<sonic-modal-actions>${i}</sonic-modal-actions>`;default:return S}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&k.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){T.modals.forEach(r=>{r.dispose()})}handleEscape(r){if(r.key==="Escape"){r.preventDefault();const t=T.modals.filter(i=>i._animationState!=="hidden"&&!i.forceAction);t.length>0&&t[t.length-1].hide()}}animation(r){return new Promise(t=>{const{quartOut:i,linear:s,translateY:e,durationIn:o,durationOut:n,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=r==="in",u=h?o:n,d=!this.fullScreen&&h?100:0;this.fullScreen||(h?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const g=[];this.effect==="slide"&&(g.push(c.animate([{transform:h?e:"translateY(0)"},{transform:h?"translateY(0)":e}],{duration:u,easing:h?i:l,fill:"both",delay:d})),g.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:u,easing:s,fill:"both",delay:d}))),Promise.all(g.map(m=>m.finished)).then(()=>t())})}};T.styles=[Ze,P`
3114
+ `}modalFragment(r){const t=this.options?.[r];if(!t)return S;let i;switch(t instanceof Object?i=t:i=F(t),r){case"title":return v`<sonic-modal-title>${i}</sonic-modal-title>`;case"subtitle":return v`<sonic-modal-subtitle>${i}</sonic-modal-subtitle>`;case"content":return v`<sonic-modal-content>${i}</sonic-modal-content>`;case"actions":return v`<sonic-modal-actions>${i}</sonic-modal-actions>`;default:return S}}async show(){this._modalElement.show(),this._animationState="in",await this.animation("in"),this._animationState="visible",this.visible=!0,this.dispatchEvent(new CustomEvent("show")),this._modalElement.focus()}async hide(){this._animationState="out",this.dispatchEvent(new CustomEvent("hide")),await this.animation("out"),this._modalElement.close(),this._animationState="hidden",this.visible=!1,this.hasAttribute("resetDataProviderOnHide")&&k.get(this.getAttribute("resetDataProviderOnHide")).set({}),this.removeHashOnHide&&window.history.replaceState({},"",window.location.pathname),this.removeOnHide&&this.remove(),this.dispatchEvent(new CustomEvent("hidden"))}async dispose(){await this.hide(),this.remove()}static disposeAll(){N.modals.forEach(r=>{r.dispose()})}handleEscape(r){if(r.key==="Escape"){r.preventDefault();const t=N.modals.filter(i=>i._animationState!=="hidden"&&!i.forceAction);t.length>0&&t[t.length-1].hide()}}animation(r){return new Promise(t=>{const{quartOut:i,linear:s,translateY:e,durationIn:o,durationOut:n,quadOut:l}=this._animationConfig,c=this._modalElement;if(!c)return t();const h=r==="in",u=h?o:n,d=!this.fullScreen&&h?100:0;this.fullScreen||(h?this.style.setProperty("--sc_backdrop-opacity","0.8"):setTimeout(()=>{this.style.setProperty("--sc_backdrop-opacity","0")},150));const g=[];this.effect==="slide"&&(g.push(c.animate([{transform:h?e:"translateY(0)"},{transform:h?"translateY(0)":e}],{duration:u,easing:h?i:l,fill:"both",delay:d})),g.push(c.animate([{opacity:h?0:1},{opacity:h?1:0}],{duration:u,easing:s,fill:"both",delay:d}))),Promise.all(g.map(f=>f.finished)).then(()=>t())})}};N.styles=[Qe,$`
3111
3115
  :host {
3112
3116
  --sc-modal-py: 2.5rem;
3113
3117
  --sc-modal-px: 1.5rem;
@@ -3257,17 +3261,17 @@ ${this.value}</textarea
3257
3261
  transform: scale(0) !important;
3258
3262
  transition: 0.2s linear !important;
3259
3263
  }
3260
- `],T.modals=[],Y([a({type:Boolean})],T.prototype,"forceAction",2),Y([a({type:Boolean})],T.prototype,"noCloseButton",2),Y([a({type:Boolean})],T.prototype,"removeOnHide",2),Y([a({type:Boolean})],T.prototype,"removeHashOnHide",2),Y([a({type:String,reflect:!0})],T.prototype,"align",2),Y([a({type:String})],T.prototype,"paddingX",2),Y([a({type:String})],T.prototype,"paddingY",2),Y([a({type:String})],T.prototype,"maxWidth",2),Y([a({type:String})],T.prototype,"maxHeight",2),Y([a({type:String})],T.prototype,"zIndex",2),Y([a({type:String})],T.prototype,"width",2),Y([a({type:String})],T.prototype,"height",2),Y([a({type:String})],T.prototype,"effect",2),Y([a({type:Object})],T.prototype,"options",2),Y([a({type:Boolean,reflect:!0})],T.prototype,"fullScreen",2),Y([a({type:Boolean,reflect:!0})],T.prototype,"visible",2),Y([a({type:String})],T.prototype,"closeButtonType",2),Y([Kt("#modal")],T.prototype,"_modalElement",2),Y([a({type:Boolean})],T.prototype,"closeOnLocationChange",2),Y([E()],T.prototype,"location",2),Y([E()],T.prototype,"_animationState",2),T=Y([x(Tr)],T),typeof window<"u"&&(window.SonicModal=T);var pc=Object.defineProperty,fc=Object.getOwnPropertyDescriptor,Mt=(r,t,i,s)=>{for(var e=s>1?void 0:s?fc(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&&pc(t,i,e),e};const mc={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},bc="sonic-alert";let $t=class extends w{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}connectedCallback(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(r)[this.id]&&this.remove()}super.connectedCallback()}render(){return b`
3264
+ `],N.modals=[],Y([a({type:Boolean})],N.prototype,"forceAction",2),Y([a({type:Boolean})],N.prototype,"noCloseButton",2),Y([a({type:Boolean})],N.prototype,"removeOnHide",2),Y([a({type:Boolean})],N.prototype,"removeHashOnHide",2),Y([a({type:String,reflect:!0})],N.prototype,"align",2),Y([a({type:String})],N.prototype,"paddingX",2),Y([a({type:String})],N.prototype,"paddingY",2),Y([a({type:String})],N.prototype,"maxWidth",2),Y([a({type:String})],N.prototype,"maxHeight",2),Y([a({type:String})],N.prototype,"zIndex",2),Y([a({type:String})],N.prototype,"width",2),Y([a({type:String})],N.prototype,"height",2),Y([a({type:String})],N.prototype,"effect",2),Y([a({type:Object})],N.prototype,"options",2),Y([a({type:Boolean,reflect:!0})],N.prototype,"fullScreen",2),Y([a({type:Boolean,reflect:!0})],N.prototype,"visible",2),Y([a({type:String})],N.prototype,"closeButtonType",2),Y([Kt("#modal")],N.prototype,"_modalElement",2),Y([a({type:Boolean})],N.prototype,"closeOnLocationChange",2),Y([E()],N.prototype,"location",2),Y([E()],N.prototype,"_animationState",2),N=Y([P(Xr)],N),typeof window<"u"&&(window.SonicModal=N);var qc=Object.defineProperty,Hc=Object.getOwnPropertyDescriptor,It=(r,t,i,s)=>{for(var e=s>1?void 0:s?Hc(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&&qc(t,i,e),e};const Wc={warning:"warning-circled-outline",success:"check-circled-outline",error:"warning-circled-outline",info:"info-empty",default:"info-empty"},Kc="sonic-alert";let $t=class extends x{constructor(){super(...arguments),this.label="",this.noIcon=!1,this.text="",this.id=new Date().getTime().toString(),this.dismissible=!1,this.background=!1,this.status="default",this.dismissForever=!1}connectedCallback(){if(this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}";JSON.parse(r)[this.id]&&this.remove()}super.connectedCallback()}render(){return v`
3261
3265
  <slot name="icon" class="${this.noIcon?"hidden":""}"
3262
- >${this.noIcon?S:b`<div>
3263
- ${this.status&&b`<sonic-icon name=${mc[this.status]}></sonic-icon>`}
3266
+ >${this.noIcon?S:v`<div>
3267
+ ${this.status&&v`<sonic-icon name=${Wc[this.status]}></sonic-icon>`}
3264
3268
  </div>`}</slot
3265
3269
  >
3266
3270
  <div class="content">
3267
- ${this.label?b`<span class="label">${F(this.label)}</span>`:S}
3271
+ ${this.label?v`<span class="label">${F(this.label)}</span>`:S}
3268
3272
  <div>${this.text}<slot></slot></div>
3269
3273
  </div>
3270
- ${this.dismissible?b`<sonic-button
3274
+ ${this.dismissible?v`<sonic-button
3271
3275
  @click=${this.close}
3272
3276
  class="close-btn"
3273
3277
  variant="unstyled"
@@ -3276,7 +3280,7 @@ ${this.value}</textarea
3276
3280
  >
3277
3281
  <sonic-icon name="cancel"></sonic-icon>
3278
3282
  </sonic-button>`:S}
3279
- `}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};$t.styles=[Dt,P`
3283
+ `}close(){if(this.remove(),this.dismissForever){const r=localStorage.getItem("sonic-alert-dismissed")||"{}",t=JSON.parse(r);t[this.id]=!0,localStorage.setItem("sonic-alert-dismissed",JSON.stringify(t))}}};$t.styles=[Ot,$`
3280
3284
  :host {
3281
3285
  --sc_color: var(--sc-base-content, #000);
3282
3286
  --sc_rounded: var(--sc-rounded);
@@ -3363,27 +3367,27 @@ ${this.value}</textarea
3363
3367
  top: 0.4rem;
3364
3368
  right: 0.3rem;
3365
3369
  }
3366
- `],Mt([a({type:String})],$t.prototype,"label",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"noIcon",2),Mt([a({type:String})],$t.prototype,"text",2),Mt([a({type:String})],$t.prototype,"id",2),Mt([a({type:String,reflect:!0})],$t.prototype,"size",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissible",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"background",2),Mt([a({type:String,reflect:!0})],$t.prototype,"status",2),Mt([a({type:Boolean,reflect:!0})],$t.prototype,"dismissForever",2),$t=Mt([x(bc)],$t);var gc=Object.defineProperty,vc=Object.getOwnPropertyDescriptor,rs=(r,t,i,s)=>{for(var e=s>1?void 0:s?vc(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&&gc(t,i,e),e};const yc="sonic-alert-messages";let be=class extends X(w){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?b`<div class="container">
3367
- ${$r(this.messages,r=>r.type=="public"?b`<sonic-alert
3370
+ `],It([a({type:String})],$t.prototype,"label",2),It([a({type:Boolean,reflect:!0})],$t.prototype,"noIcon",2),It([a({type:String})],$t.prototype,"text",2),It([a({type:String})],$t.prototype,"id",2),It([a({type:String,reflect:!0})],$t.prototype,"size",2),It([a({type:Boolean,reflect:!0})],$t.prototype,"dismissible",2),It([a({type:Boolean,reflect:!0})],$t.prototype,"background",2),It([a({type:String,reflect:!0})],$t.prototype,"status",2),It([a({type:Boolean,reflect:!0})],$t.prototype,"dismissForever",2),$t=It([P(Kc)],$t);var Yc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ds=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zc(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&&Yc(t,i,e),e};const Gc="sonic-alert-messages";let ge=class extends Q(x){constructor(){super(...arguments),this.size="md",this.background=!1,this.noIcon=!1,this.messages=[]}render(){return this.messages?.length?v`<div class="container">
3371
+ ${Er(this.messages,r=>r.type=="public"?v`<sonic-alert
3368
3372
  status=${r.status||"default"}
3369
3373
  text=${C(r.content)}
3370
3374
  size=${this.size}
3371
3375
  ?noIcon=${this.noIcon}
3372
3376
  ?background=${this.background}
3373
3377
  ></sonic-alert>`:S)}
3374
- </div>`:S}};be.styles=[P`
3378
+ </div>`:S}};ge.styles=[$`
3375
3379
  .container {
3376
3380
  display: grid;
3377
3381
  gap: 0.5em;
3378
3382
  grid-template-columns: minmax(0, 1fr);
3379
3383
  width: 100%;
3380
3384
  }
3381
- `],rs([a({type:String})],be.prototype,"size",2),rs([a({type:Boolean})],be.prototype,"background",2),rs([a({type:Boolean})],be.prototype,"noIcon",2),rs([a({type:Array})],be.prototype,"messages",2),be=rs([x(yc)],be);var wc=Object.defineProperty,_c=Object.getOwnPropertyDescriptor,Ir=(r,t,i,s)=>{for(var e=s>1?void 0:s?_c(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&&wc(t,i,e),e};const xc="sonic-toast-message-subscriber";let Si=class extends X(w){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&D.add({text:t.content||"",status:t.status})})}render(){return S}};Ir([a({type:Array})],Si.prototype,"messages",1),Si=Ir([x(xc)],Si);var Pc=Object.defineProperty,$c=Object.getOwnPropertyDescriptor,os=(r,t,i,s)=>{for(var e=s>1?void 0:s?$c(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&&Pc(t,i,e),e};const Cc="sonic-tooltip";let ge=class extends w{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=r=>{r.key==="Tab"&&(this.lastKeyWasTab=!0)},this.handleMouseDown=()=>{this.lastKeyWasTab=!1,this.classList.remove("keyboard-focus")},this.handleFocusIn=()=>{this.lastKeyWasTab&&this.classList.add("keyboard-focus"),this.lastKeyWasTab=!1},this.handleFocusOut=()=>{this.classList.remove("keyboard-focus"),this.lastKeyWasTab=!1},this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandleMouseDown=this.handleMouseDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),document.addEventListener("keydown",this.boundHandleKeyDown,!0),document.addEventListener("mousedown",this.boundHandleMouseDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),document.removeEventListener("keydown",this.boundHandleKeyDown,!0),document.removeEventListener("mousedown",this.boundHandleMouseDown,!0)}willUpdate(r){if(r.has("disabled")){const t=r.get("disabled")===!0;this.disabled?(this.setAttribute("tabindex","-1"),this.classList.remove("keyboard-focus")):!this.disabled&&t&&(this.focusable?this.setAttribute("tabindex","0"):this.removeAttribute("tabindex"))}r.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(r)}render(){const r=this.disabled||this.label==""?"disabled":"";return b`<div
3385
+ `],ds([a({type:String})],ge.prototype,"size",2),ds([a({type:Boolean})],ge.prototype,"background",2),ds([a({type:Boolean})],ge.prototype,"noIcon",2),ds([a({type:Array})],ge.prototype,"messages",2),ge=ds([P(Gc)],ge);var Xc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,Qr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Qc(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&&Xc(t,i,e),e};const Jc="sonic-toast-message-subscriber";let Ei=class extends Q(x){constructor(){super(...arguments),this._messages=[]}get messages(){return this._messages}set messages(r){this._messages=r,this.messages&&r.forEach(t=>{t.type=="public"&&L.add({text:t.content||"",status:t.status})})}render(){return S}};Qr([a({type:Array})],Ei.prototype,"messages",1),Ei=Qr([P(Jc)],Ei);var th=Object.defineProperty,eh=Object.getOwnPropertyDescriptor,us=(r,t,i,s)=>{for(var e=s>1?void 0:s?eh(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&&th(t,i,e),e};const sh="sonic-tooltip";let ve=class extends x{constructor(){super(),this.label="",this.disabled=!1,this.focusable=!1,this.lastKeyWasTab=!1,this.handleKeyDown=r=>{r.key==="Tab"&&(this.lastKeyWasTab=!0)},this.handleMouseDown=()=>{this.lastKeyWasTab=!1,this.classList.remove("keyboard-focus")},this.handleFocusIn=()=>{this.lastKeyWasTab&&this.classList.add("keyboard-focus"),this.lastKeyWasTab=!1},this.handleFocusOut=()=>{this.classList.remove("keyboard-focus"),this.lastKeyWasTab=!1},this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandleMouseDown=this.handleMouseDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("focusin",this.handleFocusIn),this.addEventListener("focusout",this.handleFocusOut),document.addEventListener("keydown",this.boundHandleKeyDown,!0),document.addEventListener("mousedown",this.boundHandleMouseDown,!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusin",this.handleFocusIn),this.removeEventListener("focusout",this.handleFocusOut),document.removeEventListener("keydown",this.boundHandleKeyDown,!0),document.removeEventListener("mousedown",this.boundHandleMouseDown,!0)}willUpdate(r){if(r.has("disabled")){const t=r.get("disabled")===!0;this.disabled?(this.setAttribute("tabindex","-1"),this.classList.remove("keyboard-focus")):!this.disabled&&t&&(this.focusable?this.setAttribute("tabindex","0"):this.removeAttribute("tabindex"))}r.has("focusable")&&(this.focusable&&!this.disabled?this.setAttribute("tabindex","0"):!this.focusable&&!this.disabled&&this.removeAttribute("tabindex")),super.willUpdate(r)}render(){const r=this.disabled||this.label==""?"disabled":"";return v`<div
3382
3386
  data-tooltip-text="${this.label.trim().replace("&nbsp;"," ")}"
3383
3387
  class="tooltip ${r}"
3384
3388
  >
3385
3389
  <slot></slot>
3386
- </div>`}};ge.styles=[P`
3390
+ </div>`}};ve.styles=[$`
3387
3391
  :host {
3388
3392
  position: relative;
3389
3393
  display: inline-flex;
@@ -3489,11 +3493,11 @@ ${this.value}</textarea
3489
3493
  bottom: 0;
3490
3494
  left: var(--sc-tooltip-position);
3491
3495
  }
3492
- `],os([a({type:String})],ge.prototype,"label",2),os([a({type:String,reflect:!0})],ge.prototype,"placement",2),os([a({type:Boolean})],ge.prototype,"disabled",2),os([a({type:Boolean})],ge.prototype,"focusable",2),ge=os([x(Cc)],ge);var Sc=Object.defineProperty,Ac=Object.getOwnPropertyDescriptor,jt=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ac(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&&Sc(t,i,e),e};const kc="sonic-divider";let Ct=class extends w{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){super.firstUpdated(r),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return b`<div part="divider">
3496
+ `],us([a({type:String})],ve.prototype,"label",2),us([a({type:String,reflect:!0})],ve.prototype,"placement",2),us([a({type:Boolean})],ve.prototype,"disabled",2),us([a({type:Boolean})],ve.prototype,"focusable",2),ve=us([P(sh)],ve);var ih=Object.defineProperty,rh=Object.getOwnPropertyDescriptor,jt=(r,t,i,s)=>{for(var e=s>1?void 0:s?rh(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&&ih(t,i,e),e};const oh="sonic-divider";let Ct=class extends x{constructor(){super(...arguments),this.label="",this.align="center",this.vertical=!1,this.noMargin=!1,this.dashed=!1,this.dotted=!1}firstUpdated(r){super.firstUpdated(r),(this.label||this.slotNodes?.length)&&this.divider?.classList.add("has-text")}render(){return v`<div part="divider">
3493
3497
  <span class="text"
3494
3498
  >${F(this.label?this.label:"")}<slot></slot
3495
3499
  ></span>
3496
- </div>`}};Ct.styles=[P`
3500
+ </div>`}};Ct.styles=[$`
3497
3501
  :host {
3498
3502
  --sc-divider-my: 0.5rem;
3499
3503
  --sc-divider-mx: 0;
@@ -3624,7 +3628,7 @@ ${this.value}</textarea
3624
3628
  :host([dashed]) {
3625
3629
  --sc-divider-border-style: dashed;
3626
3630
  }
3627
- `],jt([at({flatten:!0})],Ct.prototype,"slotNodes",2),jt([Kt("div")],Ct.prototype,"divider",2),jt([a({type:String})],Ct.prototype,"label",2),jt([a({type:String,reflect:!0})],Ct.prototype,"size",2),jt([a({type:String,reflect:!0})],Ct.prototype,"align",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=jt([x(kc)],Ct);var Oc=Object.getOwnPropertyDescriptor,Dc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Oc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Lc="sonic-card-header-description";let Ai=class extends w{render(){return b`<slot></slot>`}};Ai.styles=[P`
3631
+ `],jt([at({flatten:!0})],Ct.prototype,"slotNodes",2),jt([Kt("div")],Ct.prototype,"divider",2),jt([a({type:String})],Ct.prototype,"label",2),jt([a({type:String,reflect:!0})],Ct.prototype,"size",2),jt([a({type:String,reflect:!0})],Ct.prototype,"align",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"vertical",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"noMargin",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"dashed",2),jt([a({type:Boolean,reflect:!0})],Ct.prototype,"dotted",2),Ct=jt([P(oh)],Ct);var nh=Object.getOwnPropertyDescriptor,ah=(r,t,i,s)=>{for(var e=s>1?void 0:s?nh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const lh="sonic-card-header-description";let Ti=class extends x{render(){return v`<slot></slot>`}};Ti.styles=[$`
3628
3632
  :host() {
3629
3633
  display: block;
3630
3634
  font-size: 0.7em;
@@ -3632,16 +3636,16 @@ ${this.value}</textarea
3632
3636
  font-family: var(--sc-font-family-base, sans-serif);
3633
3637
  font-weight: var(--sc-font-style-base, normal);
3634
3638
  }
3635
- `],Ai=Dc([x(Lc)],Ai);var Ec=Object.defineProperty,Nc=Object.getOwnPropertyDescriptor,ki=(r,t,i,s)=>{for(var e=s>1?void 0:s?Nc(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&&Ec(t,i,e),e};const Tc="sonic-card-header";let ns=class extends w{render(){return b`
3639
+ `],Ti=ah([P(lh)],Ti);var ch=Object.defineProperty,hh=Object.getOwnPropertyDescriptor,Ni=(r,t,i,s)=>{for(var e=s>1?void 0:s?hh(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&&ch(t,i,e),e};const dh="sonic-card-header";let ps=class extends x{render(){return v`
3636
3640
  <div class="header-content">
3637
3641
  ${F(this.label)}
3638
- ${this.description?b`<sonic-card-header-description
3642
+ ${this.description?v`<sonic-card-header-description
3639
3643
  >${F(this.description)}</sonic-card-header-description
3640
3644
  >`:S}
3641
3645
  <slot></slot>
3642
3646
  </div>
3643
3647
  <slot name="suffix"></slot>
3644
- `}};ns.styles=[P`
3648
+ `}};ps.styles=[$`
3645
3649
  :host {
3646
3650
  --sc-card-header-mb: 1.35rem;
3647
3651
  --sc-card-header-font-size: 1.875rem;
@@ -3679,15 +3683,15 @@ ${this.value}</textarea
3679
3683
  ::slotted(sonic-card-header-description) {
3680
3684
  margin-top: 0.1em;
3681
3685
  }
3682
- `],ki([a()],ns.prototype,"label",2),ki([a()],ns.prototype,"description",2),ns=ki([x(Tc)],ns);var Ic=Object.getOwnPropertyDescriptor,Mc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ic(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const jc="sonic-card-main";let Oi=class extends w{render(){return b`<slot></slot>`}};Oi.styles=[P`
3686
+ `],Ni([a()],ps.prototype,"label",2),Ni([a()],ps.prototype,"description",2),ps=Ni([P(dh)],ps);var uh=Object.getOwnPropertyDescriptor,ph=(r,t,i,s)=>{for(var e=s>1?void 0:s?uh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const fh="sonic-card-main";let Mi=class extends x{render(){return v`<slot></slot>`}};Mi.styles=[$`
3683
3687
  :host {
3684
3688
  display: block;
3685
3689
  }
3686
- `],Oi=Mc([x(jc)],Oi);var Fc=Object.getOwnPropertyDescriptor,zc=(r,t,i,s)=>{for(var e=s>1?void 0:s?Fc(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Rc="sonic-card-footer";let Di=class extends w{render(){return b` <slot></slot> `}};Di.styles=[P`
3690
+ `],Mi=ph([P(fh)],Mi);var mh=Object.getOwnPropertyDescriptor,bh=(r,t,i,s)=>{for(var e=s>1?void 0:s?mh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const gh="sonic-card-footer";let Ii=class extends x{render(){return v` <slot></slot> `}};Ii.styles=[$`
3687
3691
  :host {
3688
3692
  display: block;
3689
3693
  }
3690
- `],Di=zc([x(Rc)],Di);const Li=P`
3694
+ `],Ii=bh([P(gh)],Ii);const ji=$`
3691
3695
  :host {
3692
3696
  --sc-_color: inherit;
3693
3697
  color: var(--sc-_color);
@@ -3712,7 +3716,7 @@ ${this.value}</textarea
3712
3716
  .inherit-color {
3713
3717
  color: var(--sc-_color);
3714
3718
  }
3715
- `,Uc=P`
3719
+ `,vh=$`
3716
3720
  :host {
3717
3721
  --sc-_color: inherit;
3718
3722
  --sc-_bg: inherit;
@@ -3775,7 +3779,7 @@ ${this.value}</textarea
3775
3779
  .inherit-bg {
3776
3780
  color: inherit;
3777
3781
  }
3778
- `;var Vc=Object.defineProperty,Bc=Object.getOwnPropertyDescriptor,Mr=(r,t,i,s)=>{for(var e=s>1?void 0:s?Bc(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&&Vc(t,i,e),e};const qc="sonic-card";let Ms=class extends w{constructor(){super(...arguments),this.type="base"}render(){return b`<slot></slot> `}};Ms.styles=[Uc,P`
3782
+ `;var yh=Object.defineProperty,_h=Object.getOwnPropertyDescriptor,Jr=(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&&yh(t,i,e),e};const wh="sonic-card";let Ws=class extends x{constructor(){super(...arguments),this.type="base"}render(){return v`<slot></slot> `}};Ws.styles=[vh,$`
3779
3783
  * {
3780
3784
  box-sizing: border-box;
3781
3785
  }
@@ -3805,7 +3809,7 @@ ${this.value}</textarea
3805
3809
  box-shadow: var(--sc-_shadow);
3806
3810
  color: var(--sc-_color);
3807
3811
  }
3808
- `],Mr([a({type:String,reflect:!0})],Ms.prototype,"type",2),Ms=Mr([x(qc)],Ms);var Hc=Object.defineProperty,Wc=Object.getOwnPropertyDescriptor,as=(r,t,i,s)=>{for(var e=s>1?void 0:s?Wc(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&&Hc(t,i,e),e};const Kc="sonic-tr";let ve=class extends X(w){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return b`<slot></slot>`}};ve.styles=[Li,P`
3812
+ `],Jr([a({type:String,reflect:!0})],Ws.prototype,"type",2),Ws=Jr([P(wh)],Ws);var xh=Object.defineProperty,Ph=Object.getOwnPropertyDescriptor,fs=(r,t,i,s)=>{for(var e=s>1?void 0:s?Ph(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&&xh(t,i,e),e};const $h="sonic-tr";let ye=class extends Q(x){constructor(){super(...arguments),this._metadata_={}}willUpdate(r){r.has("_metadata_")&&(this.even=!!this._metadata_.even,this.odd=!!this._metadata_.odd,this.last=!!this._metadata_.lastChild),super.willUpdate(r)}render(){return v`<slot></slot>`}};ye.styles=[ji,$`
3809
3813
  :host {
3810
3814
  display: table-row;
3811
3815
  }
@@ -3823,14 +3827,14 @@ ${this.value}</textarea
3823
3827
  :host(:hover) {
3824
3828
  background: var(--sc-table-hover-bg) !important;
3825
3829
  }
3826
- `],as([a({type:Object})],ve.prototype,"_metadata_",2),as([a({type:Boolean,reflect:!0})],ve.prototype,"even",2),as([a({type:Boolean,reflect:!0})],ve.prototype,"odd",2),as([a({type:Boolean,reflect:!0})],ve.prototype,"last",2),ve=as([x(Kc)],ve);var Yc=Object.defineProperty,Zc=Object.getOwnPropertyDescriptor,ye=(r,t,i,s)=>{for(var e=s>1?void 0:s?Zc(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&&Yc(t,i,e),e};const Xc="sonic-th";let qt=class extends w{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return b`<th
3830
+ `],fs([a({type:Object})],ye.prototype,"_metadata_",2),fs([a({type:Boolean,reflect:!0})],ye.prototype,"even",2),fs([a({type:Boolean,reflect:!0})],ye.prototype,"odd",2),fs([a({type:Boolean,reflect:!0})],ye.prototype,"last",2),ye=fs([P($h)],ye);var Ch=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,_e=(r,t,i,s)=>{for(var e=s>1?void 0:s?Sh(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&&Ch(t,i,e),e};const Ah="sonic-th";let qt=class extends x{render(){const r={textAlign:this.align,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return v`<th
3827
3831
  part="th"
3828
3832
  style=${pt(r)}
3829
3833
  colspan=${C(this.colSpan)}
3830
3834
  rowspan=${C(this.rowSpan)}
3831
3835
  >
3832
3836
  <slot></slot>
3833
- </th> `}};qt.styles=[Li,P`
3837
+ </th> `}};qt.styles=[ji,$`
3834
3838
  :host {
3835
3839
  display: contents;
3836
3840
  background: var(--sc-table-bg);
@@ -3853,9 +3857,9 @@ ${this.value}</textarea
3853
3857
  :host([noBorder]) th {
3854
3858
  border-bottom: none;
3855
3859
  }
3856
- `],ye([a({type:Number})],qt.prototype,"colSpan",2),ye([a({type:Number})],qt.prototype,"rowSpan",2),ye([a({type:String})],qt.prototype,"align",2),ye([a({type:String})],qt.prototype,"minWidth",2),ye([a({type:String})],qt.prototype,"maxWidth",2),ye([a({type:String})],qt.prototype,"width",2),qt=ye([x(Xc)],qt);var Gc=Object.defineProperty,Qc=Object.getOwnPropertyDescriptor,ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?Qc(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&&Gc(t,i,e),e};const Jc="sonic-td";let Ft=class extends w{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return b`<td part="td" style=${pt(r)} colspan=${C(this.colSpan)} rowspan=${C(this.rowSpan)}>
3860
+ `],_e([a({type:Number})],qt.prototype,"colSpan",2),_e([a({type:Number})],qt.prototype,"rowSpan",2),_e([a({type:String})],qt.prototype,"align",2),_e([a({type:String})],qt.prototype,"minWidth",2),_e([a({type:String})],qt.prototype,"maxWidth",2),_e([a({type:String})],qt.prototype,"width",2),qt=_e([P(Ah)],qt);var kh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?Dh(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&&kh(t,i,e),e};const Oh="sonic-td";let Ft=class extends x{render(){const r={textAlign:this.align,verticalAlign:this.vAlign,minWidth:this.minWidth,maxWidth:this.maxWidth,width:this.width};return v`<td part="td" style=${pt(r)} colspan=${C(this.colSpan)} rowspan=${C(this.rowSpan)}>
3857
3861
  <slot></slot>
3858
- </td>`}};Ft.styles=[Li,P`
3862
+ </td>`}};Ft.styles=[ji,$`
3859
3863
  :host {
3860
3864
  display: contents;
3861
3865
  }
@@ -3868,13 +3872,13 @@ ${this.value}</textarea
3868
3872
  border-right: var(--sc-table-td-border-r, none);
3869
3873
  border-left: var(--sc-table-td-border-l, none);
3870
3874
  }
3871
- `],ie([a({type:Number})],Ft.prototype,"colSpan",2),ie([a({type:Number})],Ft.prototype,"rowSpan",2),ie([a({type:String})],Ft.prototype,"align",2),ie([a({type:String})],Ft.prototype,"vAlign",2),ie([a({type:String})],Ft.prototype,"minWidth",2),ie([a({type:String})],Ft.prototype,"maxWidth",2),ie([a({type:String})],Ft.prototype,"width",2),Ft=ie([x(Jc)],Ft);var th=Object.getOwnPropertyDescriptor,eh=(r,t,i,s)=>{for(var e=s>1?void 0:s?th(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const sh="sonic-thead";let Ei=class extends w{render(){return b`<slot></slot>`}};Ei.styles=[P`
3875
+ `],ie([a({type:Number})],Ft.prototype,"colSpan",2),ie([a({type:Number})],Ft.prototype,"rowSpan",2),ie([a({type:String})],Ft.prototype,"align",2),ie([a({type:String})],Ft.prototype,"vAlign",2),ie([a({type:String})],Ft.prototype,"minWidth",2),ie([a({type:String})],Ft.prototype,"maxWidth",2),ie([a({type:String})],Ft.prototype,"width",2),Ft=ie([P(Oh)],Ft);var Lh=Object.getOwnPropertyDescriptor,Eh=(r,t,i,s)=>{for(var e=s>1?void 0:s?Lh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Th="sonic-thead";let Fi=class extends x{render(){return v`<slot></slot>`}};Fi.styles=[$`
3872
3876
  :host {
3873
3877
  display: table-header-group;
3874
3878
  }
3875
- `],Ei=eh([x(sh)],Ei);var ih=Object.getOwnPropertyDescriptor,rh=(r,t,i,s)=>{for(var e=s>1?void 0:s?ih(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const oh="sonic-tbody";let Ni=class extends w{render(){return b`<tbody part="tbody">
3879
+ `],Fi=Eh([P(Th)],Fi);var Nh=Object.getOwnPropertyDescriptor,Mh=(r,t,i,s)=>{for(var e=s>1?void 0:s?Nh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Ih="sonic-tbody";let zi=class extends x{render(){return v`<tbody part="tbody">
3876
3880
  <slot></slot>
3877
- </tbody>`}};Ni.styles=[P`
3881
+ </tbody>`}};zi.styles=[$`
3878
3882
  :host {
3879
3883
  display: table-row-group;
3880
3884
  }
@@ -3891,20 +3895,20 @@ ${this.value}</textarea
3891
3895
  border-bottom: var(--sc-form-border-width) solid
3892
3896
  var(--sc-base-200, rgba(0, 0, 0, 0.12)) !important;
3893
3897
  }
3894
- `],Ni=rh([x(oh)],Ni);var nh=Object.getOwnPropertyDescriptor,ah=(r,t,i,s)=>{for(var e=s>1?void 0:s?nh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const lh="sonic-tfoot";let Ti=class extends w{render(){return b`<tfoot>
3898
+ `],zi=Mh([P(Ih)],zi);var jh=Object.getOwnPropertyDescriptor,Fh=(r,t,i,s)=>{for(var e=s>1?void 0:s?jh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const zh="sonic-tfoot";let Ri=class extends x{render(){return v`<tfoot>
3895
3899
  <slot></slot>
3896
- </tfoot>`}};Ti.styles=[P`
3900
+ </tfoot>`}};Ri.styles=[$`
3897
3901
  :host {
3898
3902
  display: contents;
3899
3903
  }
3900
- `],Ti=ah([x(lh)],Ti);var ch=Object.getOwnPropertyDescriptor,hh=(r,t,i,s)=>{for(var e=s>1?void 0:s?ch(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const dh="sonic-caption";let Ii=class extends w{render(){return b`<slot></slot>`}};Ii.styles=[P`
3904
+ `],Ri=Fh([P(zh)],Ri);var Rh=Object.getOwnPropertyDescriptor,Uh=(r,t,i,s)=>{for(var e=s>1?void 0:s?Rh(t,i):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=n(e)||e);return e};const Vh="sonic-caption";let Ui=class extends x{render(){return v`<slot></slot>`}};Ui.styles=[$`
3901
3905
  :host {
3902
3906
  display: table-caption;
3903
3907
  font-size: 0.75rem;
3904
3908
  color: var(--sc-table-caption-color);
3905
3909
  padding: var(--sc-table-td-py) var(--sc-table-td-px) calc(2 * var(--sc-table-td-py));
3906
3910
  }
3907
- `],Ii=hh([x(dh)],Ii);var uh=Object.defineProperty,ph=Object.getOwnPropertyDescriptor,Ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?ph(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&&uh(t,i,e),e};const fh="sonic-table";let re=class extends w{render(){const r={maxHeight:this.maxHeight};return b`
3911
+ `],Ui=Uh([P(Vh)],Ui);var Bh=Object.defineProperty,qh=Object.getOwnPropertyDescriptor,Ie=(r,t,i,s)=>{for(var e=s>1?void 0:s?qh(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&&Bh(t,i,e),e};const Hh="sonic-table";let re=class extends x{render(){const r={maxHeight:this.maxHeight};return v`
3908
3912
  <div
3909
3913
  class="table-container ${this.noCustomScroll?"":"custom-scroll"}"
3910
3914
  style=${pt(r)}
@@ -3913,7 +3917,7 @@ ${this.value}</textarea
3913
3917
  <slot></slot>
3914
3918
  </div>
3915
3919
  </div>
3916
- `}};re.styles=[Ze,Dt,P`
3920
+ `}};re.styles=[Qe,Ot,$`
3917
3921
  :host {
3918
3922
  --sc-table-fw: var(--sc-font-weight-base, 400);
3919
3923
  --sc-table-fst: var(--sc-font-style-base, normal);
@@ -3958,7 +3962,7 @@ ${this.value}</textarea
3958
3962
  --sc-table-td-border-b: var(--sc-table-bw) solid
3959
3963
  var(--sc-table-border-color);
3960
3964
  }
3961
- `],Ie([a({type:String,reflect:!0})],re.prototype,"size",2),Ie([a({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Ie([a({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Ie([a({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Ie([a({type:String})],re.prototype,"maxHeight",2),re=Ie([x(fh)],re);const jr="AES-CBC",mh=256;async function bh(){return crypto.subtle.generateKey({name:jr,length:mh},!0,["encrypt","decrypt"])}function gh(r){return btoa(String.fromCharCode(...new Uint8Array(r)))}async function vh(r,t,i){const s=new TextEncoder().encode(r),e=await crypto.subtle.encrypt({name:jr,iv:i.buffer},t,s);return gh(e)}const yh=P`
3965
+ `],Ie([a({type:String,reflect:!0})],re.prototype,"size",2),Ie([a({type:Boolean,reflect:!0})],re.prototype,"bordered",2),Ie([a({type:Boolean,reflect:!0})],re.prototype,"rounded",2),Ie([a({type:Boolean,reflect:!0})],re.prototype,"noCustomScroll",2),Ie([a({type:String})],re.prototype,"maxHeight",2),re=Ie([P(Hh)],re);const to="AES-CBC",Wh=256;async function Kh(){return crypto.subtle.generateKey({name:to,length:Wh},!0,["encrypt","decrypt"])}function Yh(r){return btoa(String.fromCharCode(...new Uint8Array(r)))}async function Zh(r,t,i){const s=new TextEncoder().encode(r),e=await crypto.subtle.encrypt({name:to,iv:i.buffer},t,s);return Yh(e)}const Gh=$`
3962
3966
  @keyframes altcha-spinner {
3963
3967
  to {
3964
3968
  transform: rotate(360deg);
@@ -4181,7 +4185,7 @@ ${this.value}</textarea
4181
4185
  animation: altcha-spinner 0.75s infinite linear;
4182
4186
  transform-origin: center;
4183
4187
  }
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`
4188
+ `;var Xh=Object.defineProperty,Qh=Object.getOwnPropertyDescriptor,Ks=(r,t,i,s)=>{for(var e=s>1?void 0:s?Qh(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&&Xh(t,i,e),e};const Jh="supersoniks_altcha",td="Si2\\]X8M4!n9DCLd";let eo=!1;const ed="sonic-captcha";let je=class extends Xt(x){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(!eo){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",eo=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=_s(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 Kh(),t=new TextEncoder().encode(td),i=await Zh(Jh,r,t);this.key=i}render(){if(!this.key)return S;const t=Gt.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 v`
4185
4189
  <form>
4186
4190
  <altcha-widget
4187
4191
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -4193,7 +4197,7 @@ ${this.value}</textarea
4193
4197
  ></altcha-widget>
4194
4198
  </form>
4195
4199
  <slot></slot>
4196
- `}};Me.styles=[yh,P`
4200
+ `}};je.styles=[Gh,$`
4197
4201
  :host {
4198
4202
  --altcha-border-width: var(--sc-border-width, 1px);
4199
4203
  --altcha-border-radius: var(--sc-rounded);
@@ -4212,4 +4216,4 @@ ${this.value}</textarea
4212
4216
  --altcha-color-footer-bg: var(--sc-base-100, #000);
4213
4217
  --altcha-max-width: 260px;
4214
4218
  }
4215
- `],js([a()],Me.prototype,"key",2),js([a()],Me.prototype,"action",2),js([a({type:Number})],Me.prototype,"zIndex",2),Me=js([x($h)],Me),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function Ch(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Sh(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Fs(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=Ch,r.__onDisconnected__=Sh;const t=r.connectedCallback;r.connectedCallback=function(){t?.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(s=>s(this))};const i=r.disconnectedCallback;r.disconnectedCallback=function(){i?.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(s=>s(this))}}const zs=Symbol("__bindDynamicWatcherStore__"),zr=Symbol("__bindDynamicWillUpdateHooked__");function Ah(r,t,i){const s=String(t);kh(r),r[zs]||Object.defineProperty(r,zs,{value:new Map,enumerable:!1,configurable:!1,writable:!1});const e=r[zs];e.has(s)||e.set(s,new Set);const o=e.get(s);return o.add(i),()=>{o.delete(i),o.size===0&&e.delete(s)}}function kh(r){const t=Object.getPrototypeOf(r);if(!t||t[zr])return;const i=Object.prototype.hasOwnProperty.call(t,"willUpdate")?t.willUpdate:Object.getPrototypeOf(t)?.willUpdate;t.willUpdate=function(s){const e=this[zs];e&&e.size>0&&(s&&s.size>0?s.forEach((o,n)=>{const l=e.get(String(n));l&&l.forEach(c=>c())}):e.forEach(o=>o.forEach(n=>n()))),i?.call(this,s)},t[zr]=!0}function Oh(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=Rr(e[1]);if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Rr(r){return r.trim().replace(/^this\./,"")}function Dh(r,t){let i=!1;const s=(n,l)=>{const c=Rr(l),h=Lh(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function Lh(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function Eh(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=De.traverse(s,t),s):null}function Nh(r,t){const i=t?.reflect??!1,s=Oh(r),e=s.length>0;return function(o,n){if(!o)return;Fs(o);const l=`__bind_state_${n}`,c=`__bind_${n}_publisher__`,h=i?`__bind_${n}_updating_from_publisher__`:null;if(i){const u=Object.getOwnPropertyDescriptor(o,n),d=`__bind_${n}_value__`,g=`__bind_${n}_updating_from_publisher__`,m=u&&!u.get&&!u.set?u.value:void 0;Object.defineProperty(o,n,{get(){return u?.get?u.get.call(this):(!Object.prototype.hasOwnProperty.call(this,d)&&m!==void 0&&(this[d]=m),this[d])},set(v){u?.set?u.set.call(this,v):this[d]=v,!this[g]&&this[c]&&this[c].set(v)},enumerable:u?.enumerable??!0,configurable:u?.configurable??!0})}o.__onConnected__(u=>{const d=u[l]||(u[l]={cleanupWatchers:[],unsubscribePublisher:null,currentPath:null});d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(v=>v()),d.cleanupWatchers=[],d.currentPath=null;const g=v=>{if(!v){d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.currentPath=null,u[c]=null;return}if(v===d.currentPath)return;d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null);const y=Eh(v);if(!y){d.currentPath=null,u[c]=null;return}const $=L=>{i&&h&&(u[h]=!0),u[n]=L,i&&h&&(u[h]=!1)};y.onAssign($),d.unsubscribePublisher=()=>{y.offAssign($),u[c]===y&&(u[c]=null)},d.currentPath=v,u[c]=y},m=()=>{if(e){const v=Dh(u,r);if(!v.ready){g(null);return}g(v.path);return}g(r)};if(e)for(const v of s){const y=Ah(u,v,()=>m());d.cleanupWatchers.push(y)}m()}),o.__onDisconnected__(u=>{const d=u[l];d&&(d.unsubscribePublisher&&(d.unsubscribePublisher(),d.unsubscribePublisher=null),d.cleanupWatchers.forEach(g=>g()),d.cleanupWatchers=[],d.currentPath=null,u[c]=null)})}}const Rs=Symbol("__onAssignDynamicWatcherStore__"),Ur=Symbol("__onAssignDynamicWillUpdateHooked__");function Th(r,t,i){const s=String(t);Ih(r),r[Rs]||Object.defineProperty(r,Rs,{value:new Map,enumerable:!1,configurable:!1,writable:!1});const e=r[Rs];e.has(s)||e.set(s,new Set);const o=e.get(s);return o.add(i),()=>{o.delete(i),o.size===0&&e.delete(s)}}function Ih(r){const t=Object.getPrototypeOf(r);if(!t||t[Ur])return;const i=Object.prototype.hasOwnProperty.call(t,"willUpdate")?t.willUpdate:Object.getPrototypeOf(t)?.willUpdate;t.willUpdate=function(s){const e=this[Rs];e&&e.size>0&&(s&&s.size>0?s.forEach((o,n)=>{const l=e.get(String(n));l&&l.forEach(c=>c())}):e.forEach(o=>o.forEach(n=>n()))),i?.call(this,s)},t[Ur]=!0}function Mh(r){const t=[/\$\{([^}]+)\}/g,/\{\$([^}]+)\}/g],i=new Set;for(const s of t){let e;for(;(e=s.exec(r))!==null;){const o=Vr(e[1]);if(!o)continue;const[n]=o.split(".");n&&i.add(n)}}return Array.from(i)}function Vr(r){return r.trim().replace(/^this\./,"")}function jh(r,t){let i=!1;const s=(n,l)=>{const c=Vr(l),h=Fh(r,c);return h==null?(i=!0,""):`${h}`},e=t.replace(/\$\{([^}]+)\}/g,s).replace(/\{\$([^}]+)\}/g,s).trim();if(i||!e.length)return{ready:!1,path:null};const o=e.split(".").filter(Boolean);return o.length===0||!o[0]?{ready:!1,path:null}:{ready:!0,path:e}}function Fh(r,t){if(!t)return;const i=t.split(".").filter(Boolean);if(i.length===0)return;let s=r;for(const e of i){if(s==null||typeof s!="object")return;s=s[e]}return s}function zh(r){const t=r.split(".").filter(e=>e.length>0);if(t.length===0)return null;const i=t.shift()||"";if(!i)return null;let s=k.get(i);return s?(s=De.traverse(s,t),s):null}function Rh(...r){const t=r.map(i=>{const s=Mh(i);return{originalPath:i,dynamicDependencies:s,isDynamic:s.length>0}});return function(i,s,e){Fs(i);const o=`__onAssign_state_${s}__`;let n;i.__onConnected__(l=>{const c=l[o]||(l[o]={cleanupWatchers:[],configurations:[]});c.cleanupWatchers.forEach(m=>m()),c.cleanupWatchers=[],c.configurations.forEach(m=>{m.unsubscribePublisher&&m.unsubscribePublisher()}),c.configurations=[];const h=[],u=[];for(let m=0;m<r.length;m++){const v=t[m],y=new Set,$=L=>{h[m]=L,h.filter(p=>p!=null).length===r.length&&y.forEach(p=>p(...h))};u.push({publisher:null,onAssign:$,callbacks:y,unsubscribePublisher:null,pathConfig:v,index:m})}const d=(m,v)=>{if(m.unsubscribePublisher&&(m.unsubscribePublisher(),m.unsubscribePublisher=null),h[m.index]=null,m.publisher=null,!v)return;const y=zh(v);y&&(y.onAssign(m.onAssign),m.unsubscribePublisher=()=>{y.offAssign(m.onAssign),m.publisher===y&&(m.publisher=null)},m.publisher=y)},g=()=>{for(const m of u)if(m.pathConfig.isDynamic){const v=jh(l,m.pathConfig.originalPath);if(!v.ready){d(m,null);continue}d(m,v.path)}else d(m,m.pathConfig.originalPath)};for(const m of u)if(m.pathConfig.isDynamic)for(const v of m.pathConfig.dynamicDependencies){const y=Th(l,v,()=>g());c.cleanupWatchers.push(y)}n=e.value.bind(l);for(const m of u)m.callbacks.add(n);g(),c.configurations=u}),i.__onDisconnected__(l=>{const c=l[o];c&&(c.cleanupWatchers.forEach(h=>h()),c.cleanupWatchers=[],c.configurations.forEach(h=>{h.unsubscribePublisher&&h.unsubscribePublisher(),h.callbacks.delete(n)}),c.configurations=[])})}}function Uh(){return function(r,t,i){let s=0;const e=i.value,o=r.constructor.prototype.disconnectedCallback;r.constructor.prototype.disconnectedCallback=function(){o?.apply(this),this.__removeAutoSubscribe__()};const n=r.connectedCallback;r.connectedCallback=function(){n?.call(this),this[t]()},i.value=function(...l){let c=new Set;const h=()=>{s++;const d=s;window.queueMicrotask(()=>{d===s&&this[t]()})};c.forEach(d=>{d.offAssign(h)}),k.collectModifiedPublisher();const u=e.apply(this,l);return c=k.getModifiedPublishers()||new Set,c.forEach(d=>{d.onAssign(h,!1)}),this.__removeAutoSubscribe__=()=>{c.forEach(d=>{d.offAssign(h)})},u}}}function Vh(r){return function(t){Fs(t);for(const i of r){const s=i.split(".");if(s.length===0)continue;const e=s.shift()||"";let o=k.get(e);o=De.traverse(o,s),t.__onConnected__(n=>{o.startTemplateFilling(n)}),t.__onDisconnected__(()=>{})}}}function Bh(r){return function(t,i){t&&(Fs(t),t.__onConnected__(s=>{const e=H.getAncestorAttributeValue(s,r);s[i]=e}))}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Nh,onAssing:Rh,ancestorAttribute:Bh,autoSubscribe:Uh,autoFill:Vh};class qh extends Js{constructor(t){super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=t.options?.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),vt}subscribe(t){this.unsubscribe(),this.onAssign=i=>{this.setValue(i)},this.observables=us(t),this.observables.forEach(i=>{i.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const Br=Zt(qh),Hh=Br,Wh=Br;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:ps,dataProvider:Xr,sub:Wh,subscribe:Hh,get:Zr,set:Gr};const Kh=D,Yh=T;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Kh,SonicModal:Yh};const Zh=window;Zh.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));
4219
+ `],Ks([a()],je.prototype,"key",2),Ks([a()],je.prototype,"action",2),Ks([a({type:Number})],je.prototype,"zIndex",2),je=Ks([P(ed)],je),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};class sd extends ni{constructor(t){super(t),this.observables=new Set,this.onAssign=i=>{this.setValue(i)},this.node=t.options?.host}unsubscribe(){this.observables.forEach(t=>t.offAssign(this.onAssign))}render(t){return this.observable!==t&&(this.observable=t,this.isConnected&&this.subscribe(t)),vt}subscribe(t){this.unsubscribe(),this.onAssign=i=>{this.setValue(i)},this.observables=ys(t),this.observables.forEach(i=>{i.onAssign(this.onAssign)})}disconnected(){this.unsubscribe()}reconnected(){this.observable&&this.subscribe(this.observable)}}const so=Zt(sd),id=so,rd=so;window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:_s,dataProvider:co,sub:rd,subscribe:id,get:lo,set:ho};const od=L,nd=N;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:od,SonicModal:nd};const ad=window;ad.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))}));