@supersoniks/concorde 3.1.83 → 3.1.85

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 (226) hide show
  1. package/build-infos.json +1 -1
  2. package/concorde-core.bundle.js +233 -9
  3. package/concorde-core.es.js +250 -24
  4. package/dist/concorde-core.bundle.js +233 -9
  5. package/dist/concorde-core.es.js +250 -24
  6. package/docs/assets/index-C0K6xugr.css +1 -0
  7. package/docs/assets/index-Dgl1lJQo.js +4861 -0
  8. package/docs/css/docs.css +0 -0
  9. package/docs/fonts/ClashGrotesk-Bold.eot +0 -0
  10. package/docs/fonts/ClashGrotesk-Bold.ttf +0 -0
  11. package/docs/fonts/ClashGrotesk-Bold.woff +0 -0
  12. package/docs/fonts/ClashGrotesk-Bold.woff2 +0 -0
  13. package/docs/fonts/ClashGrotesk-Extralight.eot +0 -0
  14. package/docs/fonts/ClashGrotesk-Extralight.ttf +0 -0
  15. package/docs/fonts/ClashGrotesk-Extralight.woff +0 -0
  16. package/docs/fonts/ClashGrotesk-Extralight.woff2 +0 -0
  17. package/docs/fonts/ClashGrotesk-Light.eot +0 -0
  18. package/docs/fonts/ClashGrotesk-Light.ttf +0 -0
  19. package/docs/fonts/ClashGrotesk-Light.woff +0 -0
  20. package/docs/fonts/ClashGrotesk-Light.woff2 +0 -0
  21. package/docs/fonts/ClashGrotesk-Medium.eot +0 -0
  22. package/docs/fonts/ClashGrotesk-Medium.ttf +0 -0
  23. package/docs/fonts/ClashGrotesk-Medium.woff +0 -0
  24. package/docs/fonts/ClashGrotesk-Medium.woff2 +0 -0
  25. package/docs/fonts/ClashGrotesk-Regular.eot +0 -0
  26. package/docs/fonts/ClashGrotesk-Regular.ttf +0 -0
  27. package/docs/fonts/ClashGrotesk-Regular.woff +0 -0
  28. package/docs/fonts/ClashGrotesk-Regular.woff2 +0 -0
  29. package/docs/fonts/ClashGrotesk-Semibold.eot +0 -0
  30. package/docs/fonts/ClashGrotesk-Semibold.ttf +0 -0
  31. package/docs/fonts/ClashGrotesk-Semibold.woff +0 -0
  32. package/docs/fonts/ClashGrotesk-Semibold.woff2 +0 -0
  33. package/docs/fonts/ClashGrotesk-Variable.eot +0 -0
  34. package/docs/fonts/ClashGrotesk-Variable.ttf +0 -0
  35. package/docs/fonts/ClashGrotesk-Variable.woff +0 -0
  36. package/docs/fonts/ClashGrotesk-Variable.woff2 +0 -0
  37. package/docs/img/concorde-icon.svg +5 -0
  38. package/docs/img/concorde-logo.svg +1 -0
  39. package/docs/img/concorde.png +0 -0
  40. package/docs/img/concorde_def.png +0 -0
  41. package/docs/img/concorde_seuil.png.webp +0 -0
  42. package/docs/img/concorde_seuil_invert.png +0 -0
  43. package/docs/img/paul_metrand.jpg +0 -0
  44. package/docs/img/paul_metrand_xs.jpg +0 -0
  45. package/docs/index.html +93 -0
  46. package/docs/src/core/components/functional/date/date.md +290 -0
  47. package/docs/src/core/components/functional/fetch/fetch.md +117 -0
  48. package/docs/src/core/components/functional/if/if.md +16 -0
  49. package/docs/src/core/components/functional/list/list.md +199 -0
  50. package/docs/src/core/components/functional/mix/mix.md +41 -0
  51. package/docs/src/core/components/functional/queue/queue.md +87 -0
  52. package/docs/src/core/components/functional/router/router.md +129 -0
  53. package/docs/src/core/components/functional/sdui/default-library.json +108 -0
  54. package/docs/src/core/components/functional/sdui/example.json +99 -0
  55. package/docs/src/core/components/functional/sdui/sdui.md +356 -0
  56. package/docs/src/core/components/functional/states/states.md +87 -0
  57. package/docs/src/core/components/functional/submit/submit.md +83 -0
  58. package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
  59. package/docs/src/core/components/functional/value/value.md +35 -0
  60. package/docs/src/core/components/ui/alert/alert.md +121 -0
  61. package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  62. package/docs/src/core/components/ui/badge/badge.md +127 -0
  63. package/docs/src/core/components/ui/button/button.md +182 -0
  64. package/docs/src/core/components/ui/captcha/captcha.md +24 -0
  65. package/docs/src/core/components/ui/card/card.md +97 -0
  66. package/docs/src/core/components/ui/divider/divider.md +35 -0
  67. package/docs/src/core/components/ui/form/checkbox/checkbox.md +104 -0
  68. package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
  69. package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
  70. package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
  71. package/docs/src/core/components/ui/form/input/input.md +167 -0
  72. package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +131 -0
  73. package/docs/src/core/components/ui/form/radio/radio.md +84 -0
  74. package/docs/src/core/components/ui/form/select/select.md +97 -0
  75. package/docs/src/core/components/ui/form/switch/switch.md +84 -0
  76. package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
  77. package/docs/src/core/components/ui/group/group.md +75 -0
  78. package/docs/src/core/components/ui/icon/icon.md +125 -0
  79. package/docs/src/core/components/ui/icon/icons.json +1 -0
  80. package/docs/src/core/components/ui/image/image.md +107 -0
  81. package/docs/src/core/components/ui/link/link.md +43 -0
  82. package/docs/src/core/components/ui/loader/loader.md +67 -0
  83. package/docs/src/core/components/ui/menu/menu.md +288 -0
  84. package/docs/src/core/components/ui/modal/modal.md +123 -0
  85. package/docs/src/core/components/ui/pop/pop.md +96 -0
  86. package/docs/src/core/components/ui/progress/progress.md +63 -0
  87. package/docs/src/core/components/ui/table/table.md +455 -0
  88. package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
  89. package/docs/src/docs/_core-concept/overview.md +57 -0
  90. package/docs/src/docs/_core-concept/subscriber.md +76 -0
  91. package/docs/src/docs/_getting-started/concorde-outside.md +143 -0
  92. package/docs/src/docs/_getting-started/create-a-component.md +137 -0
  93. package/docs/src/docs/_getting-started/my-first-subscriber.md +174 -0
  94. package/docs/src/docs/_getting-started/pubsub.md +150 -0
  95. package/docs/src/docs/_getting-started/start.md +39 -0
  96. package/docs/src/docs/_getting-started/theming.md +91 -0
  97. package/docs/src/docs/search/docs-search.json +3917 -0
  98. package/docs/src/tag-list.json +1 -0
  99. package/docs/src/tsconfig-model.json +23 -0
  100. package/docs/src/tsconfig.json +918 -0
  101. package/docs/svg/regular/plane.svg +1 -0
  102. package/docs/svg/solid/plane.svg +1 -0
  103. package/index.html +0 -0
  104. package/package.json +4 -1
  105. package/php/get-challenge.php +34 -0
  106. package/php/some-service.php +42 -0
  107. package/scripts/create-search.js +0 -0
  108. package/scripts/generate-routes.js +0 -0
  109. package/src/core/_types/types.ts +0 -0
  110. package/src/core/components/functional/date/date.ts +0 -0
  111. package/src/core/components/functional/functional.ts +0 -0
  112. package/src/core/components/functional/if/if.md +0 -0
  113. package/src/core/components/functional/if/if.test.ts +0 -0
  114. package/src/core/components/functional/list/list.spec.ts +0 -0
  115. package/src/core/components/functional/queue/queue.demo.ts +0 -0
  116. package/src/core/components/functional/router/router.demo.ts +0 -0
  117. package/src/core/components/functional/router/router.md +0 -0
  118. package/src/core/components/functional/router/router.spec.ts +0 -0
  119. package/src/core/components/functional/router/router.ts +0 -0
  120. package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
  121. package/src/core/components/functional/states/states.demo.ts +0 -0
  122. package/src/core/components/functional/states/states.md +0 -0
  123. package/src/core/components/functional/states/states.spec.ts +0 -0
  124. package/src/core/components/functional/states/states.ts +0 -0
  125. package/src/core/components/functional/submit/submit.ts +0 -0
  126. package/src/core/components/functional/translation/translation.ts +0 -0
  127. package/src/core/components/ui/_css/scroll.ts +0 -0
  128. package/src/core/components/ui/_css/shadow.ts +0 -0
  129. package/src/core/components/ui/_css/size.ts +0 -0
  130. package/src/core/components/ui/_css/type.ts +0 -0
  131. package/src/core/components/ui/alert/alert.md +0 -0
  132. package/src/core/components/ui/alert/alert.ts +0 -0
  133. package/src/core/components/ui/alert-messages/alert-messages.md +0 -0
  134. package/src/core/components/ui/badge/badge.md +0 -0
  135. package/src/core/components/ui/badge/badge.ts +0 -0
  136. package/src/core/components/ui/button/button.md +0 -0
  137. package/src/core/components/ui/button/button.ts +0 -0
  138. package/src/core/components/ui/captcha/actchaStyles.ts +226 -0
  139. package/src/core/components/ui/captcha/captcha.md +0 -0
  140. package/src/core/components/ui/captcha/captcha.ts +5 -2
  141. package/src/core/components/ui/card/card-footer.ts +0 -0
  142. package/src/core/components/ui/card/card-header-descripton.ts +0 -0
  143. package/src/core/components/ui/card/card-header.ts +0 -0
  144. package/src/core/components/ui/card/card-main.ts +0 -0
  145. package/src/core/components/ui/card/card.md +0 -0
  146. package/src/core/components/ui/card/card.ts +0 -0
  147. package/src/core/components/ui/divider/divider.ts +0 -0
  148. package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
  149. package/src/core/components/ui/form/checkbox/checkbox.ts +0 -0
  150. package/src/core/components/ui/form/css/form-control.ts +0 -0
  151. package/src/core/components/ui/form/fieldset/fieldset.ts +0 -0
  152. package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
  153. package/src/core/components/ui/form/fieldset/legend.ts +0 -0
  154. package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
  155. package/src/core/components/ui/form/input/input.md +0 -0
  156. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
  157. package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +1 -1
  158. package/src/core/components/ui/form/radio/radio.md +0 -0
  159. package/src/core/components/ui/form/radio/radio.ts +0 -0
  160. package/src/core/components/ui/form/select/select.md +0 -0
  161. package/src/core/components/ui/form/select/select.ts +1 -1
  162. package/src/core/components/ui/form/switch/switch.md +0 -0
  163. package/src/core/components/ui/form/switch/switch.ts +0 -0
  164. package/src/core/components/ui/form/textarea/textarea.ts +0 -0
  165. package/src/core/components/ui/icon/icon.ts +0 -0
  166. package/src/core/components/ui/icon/icons.ts +0 -0
  167. package/src/core/components/ui/image/image.md +0 -0
  168. package/src/core/components/ui/image/image.ts +0 -0
  169. package/src/core/components/ui/loader/loader.md +0 -0
  170. package/src/core/components/ui/loader/loader.ts +0 -0
  171. package/src/core/components/ui/loader/styles/fixed.ts +0 -0
  172. package/src/core/components/ui/loader/styles/inline.ts +0 -0
  173. package/src/core/components/ui/menu/menu.ts +0 -0
  174. package/src/core/components/ui/modal/modal-actions.ts +0 -0
  175. package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
  176. package/src/core/components/ui/modal/modal-title.ts +0 -0
  177. package/src/core/components/ui/modal/modal.md +0 -0
  178. package/src/core/components/ui/modal/modal.ts +0 -0
  179. package/src/core/components/ui/pop/pop.md +0 -0
  180. package/src/core/components/ui/pop/pop.ts +0 -0
  181. package/src/core/components/ui/progress/progress.ts +0 -0
  182. package/src/core/components/ui/table/table-tbody.ts +0 -0
  183. package/src/core/components/ui/table/table-th.ts +0 -0
  184. package/src/core/components/ui/table/table.ts +0 -0
  185. package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
  186. package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
  187. package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
  188. package/src/core/components/ui/theme/theme.ts +0 -0
  189. package/src/core/components/ui/toast/toast-item.ts +0 -0
  190. package/src/core/components/ui/toast/toast.ts +0 -0
  191. package/src/core/components/ui/tooltip/tooltip.ts +0 -0
  192. package/src/core/components/ui/ui.ts +0 -0
  193. package/src/core/directives/DataProvider.ts +0 -0
  194. package/src/core/directives/Wording.ts +0 -0
  195. package/src/core/mixins/Fetcher.ts +0 -0
  196. package/src/core/mixins/FormCheckable.ts +0 -0
  197. package/src/core/mixins/TemplatesContainer.ts +0 -0
  198. package/src/core/utils/HTML.ts +0 -0
  199. package/src/core/utils/LocationHandler.ts +0 -0
  200. package/src/core/utils/Objects.ts +0 -0
  201. package/src/core/utils/PublisherProxy.ts +0 -0
  202. package/src/core/utils/Utils.ts +0 -0
  203. package/src/core/utils/aesCrypto.ts +0 -0
  204. package/src/core/utils/api.ts +0 -0
  205. package/src/core/utils/route.spec.ts +0 -0
  206. package/src/core/utils/route.ts +0 -0
  207. package/src/docs/code.ts +0 -0
  208. package/src/docs/docs.ts +0 -0
  209. package/src/docs/header/header.ts +0 -0
  210. package/src/docs/layout.ts +0 -0
  211. package/src/docs/navigation/navigation.ts +0 -0
  212. package/src/docs/search/docs-search.json +0 -0
  213. package/src/docs/search/markdown-renderer.ts +0 -0
  214. package/src/docs/search/page.ts +0 -0
  215. package/src/docs/search/search.ts +0 -0
  216. package/src/docs/tailwind/css/tailwind.css +0 -0
  217. package/src/docs/tailwind/css.d.ts +0 -0
  218. package/src/index.ts +0 -0
  219. package/src/test-utils/TestUtils.ts +0 -0
  220. package/src/tsconfig-model.json +0 -0
  221. package/src/tsconfig.json +9 -0
  222. package/src/tsconfig.tsbuildinfo +1 -1
  223. package/tailwind.config.js +0 -0
  224. package/templates-test.html +0 -0
  225. package/vite/config.js +0 -0
  226. package/vite.config.mts +2 -3
package/build-infos.json CHANGED
@@ -1 +1 @@
1
- {"date":1751541148}
1
+ {"date":1753197450}
@@ -1,4 +1,4 @@
1
- (function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var Dt,k,E,ko,t,X;let K=class Ht{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="auto"||(i==null?void 0:i.overflowY)==="scroll"||(i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="auto"||(i==null?void 0:i.overflowX)==="scroll"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Ht.getAncestorAttributeValue(t,"token"),i=Ht.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ht.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Ht.getAncestorAttributeValue(t,"tokenProvider"),c=Ht.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Ht.getAncestorAttributeValue(t,"userName"),n=Ht.getAncestorAttributeValue(t,"password"));const h=Ht.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),p=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:p}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ht.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}};const si=r=>{const t=document.documentElement,s=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(t,i)};let ws=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=K.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,p){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:p}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Mo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},rr="sonic";typeof __SONIC_PREFIX__<"u"&&(rr=__SONIC_PREFIX__);let or=rr.replace(/-([a-z])/g,r=>r[1].toUpperCase());const xs=or.charAt(0).toUpperCase()+or.slice(1);function $s(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function He(r){return typeof r=="object"&&r!=null}let De="sonic";typeof __SONIC_PREFIX__>"u"&&(De="sonic"+Math.floor(Math.random()*1e6));const ii=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let ri=(Dt=class{constructor(t,s,i){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=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Dt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>{e(i)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&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 s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){var e,o,n;if(this._value_===t||this._value_&&t&&$s(this._value_)&&$s(t)&&this._value_.__value===t.__value)return!0;this._value_=He(t)?t:{__value:t},this._cachedGet_=void 0;const i=$s(this._value_);if(this._parentKey_&&this.parent){const a=$s(this._value_)?this._value_.__value:this._value_;if(((e=this.parent)==null?void 0:e.get())==null&&((o=this.parent)==null?void 0:o.get())==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:a});else{const c=[];c[Number(this._parentKey_)]=a,this.parent.set(c)}else this.parent._value_[this._parentKey_]=a}if(i)return this._proxies_.forEach((a,c)=>{c!="_parent_"&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const a in this._value_)this._value_[a]===void 0&&delete this._value_[a];if(this._proxies_.forEach((a,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),He(this._value_))for(const a in this._value_){const c=t[a],d=He(c)?c:{__value:c};if(!this._proxies_.has(a)){this._publishDynamicFilling_(a,c);continue}(n=this._proxies_.get(a))==null||n.set(d,!0),this._publishDynamicFilling_(a,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),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_||(Dt.instancesCounter++,this._instanceCounter_=Dt.instancesCounter),Dt.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},Dt.instances=new Map,Dt.instancesCounter=0,Dt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.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 i=localStorage.getItem(ii),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(ii,i),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const a=this.localStorageData[n],c=new Date().getTime()-(a.expirationDelayMs||o);a.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 s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+K.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled",e=(s==null?void 0:s.invalidateOnPageShow)===!0;if(!this.publishers.has(t)){const n={},a=new Be(n);this.set(t,a)}const o=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(s!=null&&s.expirationDelayMs&&(o._expiration_delay_=s.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,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+K.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ii,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Thu Jul 03 2025 13:12:28 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[xs+"PublisherManager"]=r[xs+"PublisherManager"]||N}const Io=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_"]);class Be extends ri{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Io.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new Be(He(a)?a:{__value:a},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,a){var h;if(n=="_value_")return o._value_=a,!0;if(n=="_cachedGet_")return o._cachedGet_=a,!0;if(n=="_assignmentId_")return o._assignmentId_=a,!0;if(n=="_is_savable_")return o._is_savable_=a,!0;if(n=="_expiration_delay_")return o._expiration_delay_=a,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=a,!0;if(n=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new Be({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==a&&(o._value_[n]=a,o._publishDynamicFilling_(n,a),(h=o._proxies_.get(n))==null||h.set(He(a)?a:{__value:a})),!0},deleteProperty:function(o,n){var a;return o._publishDynamicFilling_(n,null),(a=o._proxies_.get(n))==null||a.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,a){return a&&"value"in a&&(o._value_[n]=a.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class jo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=ri.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(De+"-publisher-proxy",jo)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&N.getInstance().invalidateAll()});let Ps=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const s=new MutationObserver(E.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>E.addPublisherListeners(s)):t.childNodes.forEach(s=>E.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)):t.childNodes.forEach(s=>E.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":E.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{E.onAdded(i)}),s.removedNodes.forEach(i=>{E.onRemoved(i)});break}}static removePublisherListeners(t){const s=E.publisherListeners.get(t);s&&(E.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const s=K.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let p=i;p=E.getSubPublisher(i,d);const g=t,v={publisher:p,onAssign:()=>{const b=a.variables.map(D=>{var f;return(f=E.getSubPublisher(i,D))==null?void 0:f.get()});let y=a.expression,_=!1;if(b.length==1&&a.variables[0].join(".")==y.substring(1)){let D=b[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<b.length;D++){let f=b[D];const u=a.variables[D];f===null&&(_=!0,f=void 0),y=y.replace("$"+u.join("."),f)}if(y.indexOf("|")!=-1){const D=y.indexOf("|");if(D==0)y=ws.js(y.substring(1));else{const f=y.substring(0,D),u=y.substring(D+1),w=ws[f];y=_?"":w?w(u):y}}else y=_?"":y;g[c]=y}};p==null||p.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);Ps.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Ps);let tt=class Zt{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=Zt.isObject(a)&&Zt.isObject(c),d=i?a!==c:a!=c;if(h&&!Zt.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Zt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&Zt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Zt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Zt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Zt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
1
+ (function(K){typeof define=="function"&&define.amd?define(K):K()})(function(){"use strict";var Dt,k,E,ko,t,X;let K=class Ht{static getLanguage(){const t=document.documentElement.lang;return localStorage.getItem("SonicSelectedLanguage")||t}static getCookies(){return document.cookie.split(";").reduce((t,s)=>{const i=s.indexOf("=");return t[s.substring(0,i).trim()]=s.substring(i+1),t},{})}static everyAncestors(t,s){for(;t;){if(!s(t))return;t=t.parentNode||t.host}}static getScrollableAncestor(t){for(;t;){const s=t;if(s.nodeType===1){const i=window.getComputedStyle(s);if((i==null?void 0:i.overflowY)==="auto"||(i==null?void 0:i.overflowY)==="scroll"||(i==null?void 0:i.overflowY)==="hidden"||(i==null?void 0:i.overflowX)==="auto"||(i==null?void 0:i.overflowX)==="scroll"||(i==null?void 0:i.overflowX)==="hidden")return t}t=t.parentNode||t.host}return null}static getAncestorAttributeValue(t,s){if(!t)return null;for(;!("hasAttribute"in t&&t.hasAttribute(s))&&(t.parentNode||t.host);)t=t.parentNode||t.host;return"hasAttribute"in t?t.getAttribute(s):null}static getApiConfiguration(t){const s=Ht.getAncestorAttributeValue(t,"token"),i=Ht.getAncestorAttributeValue(t,"addHTTPResponse")!=null,e=Ht.getAncestorAttributeValue(t,"serviceURL");let o=null,n=null;const a=Ht.getAncestorAttributeValue(t,"tokenProvider"),c=Ht.getAncestorAttributeValue(t,"eventsApiToken");s||(o=Ht.getAncestorAttributeValue(t,"userName"),n=Ht.getAncestorAttributeValue(t,"password"));const h=Ht.getAncestorAttributeValue(t,"credentials")||void 0,d=t.getAttribute("cache"),p=t.hasAttribute("blockUntilDone");return{serviceURL:e,token:s,userName:o,password:n,authToken:c,tokenProvider:a,addHTTPResponse:i,credentials:h,cache:d,blockUntilDone:p}}static getClosestElement(t,s){for(;!(t.nodeName&&t.nodeName.toLowerCase()===s)&&(t.parentNode||t.host);)t=t.parentNode||t.host;return t.nodeName?t:null}static getClosestForm(t){return Ht.getClosestElement(t,"form")}static async loadJS(t){return new Promise(async i=>{const e=document.createElement("script");e.src=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}static async loadCSS(t){return new Promise(async i=>{const e=document.createElement("link");e.type="text/css",e.rel="stylesheet",e.href=t,e.onload=()=>i(!0),e.onerror=()=>i(!0),document.head.appendChild(e)})}};const si=r=>{const t=document.documentElement,s=new MutationObserver(e=>{for(let o of e)o.type==="attributes"&&o.attributeName==="lang"&&r()}),i={attributes:!0,attributeFilter:["lang"]};s.observe(t,i)};let ws=class{static ucFirst(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.substring(1)}static minutesDuration(t,s="",i="long"){s||(s=K.getLanguage());const e=(h,d)=>[Math.floor(h/d),h%d];function o(h,d,p){return new Intl.NumberFormat(h,{style:"unit",unit:d,unitDisplay:p}).format}const[n,a]=e(t,60),c=[];return n&&c.push(o(s,"hour",i)(n)),a&&c.push(o(s,"minute",i)(a)),new Intl.ListFormat(s,{style:"long",type:"conjunction"}).format(c)}static js(t){try{return Function("return "+t)()}catch{return""}}},Mo=class{static async queueTaskPromise(){return new Promise(t=>{window.queueMicrotask(()=>t(null))})}static async delayPromise(t){return new Promise(s=>{setTimeout(s,t)})}},rr="sonic";typeof __SONIC_PREFIX__<"u"&&(rr=__SONIC_PREFIX__);let or=rr.replace(/-([a-z])/g,r=>r[1].toUpperCase());const xs=or.charAt(0).toUpperCase()+or.slice(1);function $s(r){return Object.prototype.hasOwnProperty.call(r,"__value")}function He(r){return typeof r=="object"&&r!=null}let De="sonic";typeof __SONIC_PREFIX__>"u"&&(De="sonic"+Math.floor(Math.random()*1e6));const ii=De=="sonic"?"publisher-proxies-data":De+"-publisher-proxies-data";let ri=(Dt=class{constructor(t,s,i){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=s||null,this._parentKey_=i,this.root=this,this._instanceCounter_=0;this.root.parent;)this.root=this.root.parent}delete(){var t;for(const s in this._proxies_.keys())s!="_parent_"&&((t=this._proxies_.get(s))==null||t.delete());this._invalidateListeners_.clear(),this._formInvalidateListeners_.clear(),this._assignListeners_.clear(),this._mutationListeners_.clear(),this._fillListeners_.clear(),this._templateFillListeners_.clear(),this._proxies_.clear(),Dt.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(s=>s()),this._is_savable_&&!N.changed){N.changed=!0,N.saveId++;const s=N.saveId;setTimeout(()=>N.getInstance().saveToLocalStorage(s),1e3)}t||this.parent&&this.parent._publishInternalMutation_()}async _publishAssignement_(t=!1){if(this._assignmentId_++,this._assignmentId_!==this._assignmentId_)return;const i=this.get();this._assignListeners_.forEach(e=>{e(i)}),this._publishInternalMutation_(t)}_publishInvalidation_(){this._invalidateListeners_.forEach(t=>t())}_publishFormInvalidation_(){this._formInvalidateListeners_.forEach(t=>t())}_publishDynamicFilling_(t,s){this._fillListeners_.forEach(i=>{i[t]!==s&&(i[t]=s)}),this._publishTemplateFilling_(t,s)}_publishTemplateFilling_(t,s){this._templateFillListeners_.forEach(i=>{const e=Object.getOwnPropertyDescriptor(i,t);e&&!e.set&&!e.writable||(i.propertyMap&&i.propertyMap[t]&&(t=i.propertyMap[t]),typeof i[t]<"u"&&i[t]!==s&&(i[t]=s))})}onAssign(t,s=!0){typeof t=="function"&&(this._assignListeners_.has(t)||(this._assignListeners_.add(t),s&&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 s in this._value_){let i=s;const e=this._value_[s];t.propertyMap&&t.propertyMap[s]&&(i=t.propertyMap[s]),typeof t[s]<"u"&&t[s]!==e&&(t[i]=e)}}stopTemplateFilling(t){this._templateFillListeners_.delete(t)}startDynamicFilling(t){this._fillListeners_.add(t);for(const s in this._value_){const i=this._value_[s];t[s]!==i&&(t[s]=i)}}stopDynamicFilling(t){this._fillListeners_.delete(t)}set(t,s=!1){var e,o,n;if(this._value_===t||this._value_&&t&&$s(this._value_)&&$s(t)&&this._value_.__value===t.__value)return!0;this._value_=He(t)?t:{__value:t},this._cachedGet_=void 0;const i=$s(this._value_);if(this._parentKey_&&this.parent){const a=$s(this._value_)?this._value_.__value:this._value_;if(((e=this.parent)==null?void 0:e.get())==null&&((o=this.parent)==null?void 0:o.get())==null)if(isNaN(Number(this._parentKey_)))this.parent.set({[this._parentKey_]:a});else{const c=[];c[Number(this._parentKey_)]=a,this.parent.set(c)}else this.parent._value_[this._parentKey_]=a}if(i)return this._proxies_.forEach((a,c)=>{c!="_parent_"&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(s),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_.__value),!0;for(const a in this._value_)this._value_[a]===void 0&&delete this._value_[a];if(this._proxies_.forEach((a,c)=>{const h=this._value_[c];c!="_parent_"&&h===void 0&&h!==null&&isNaN(Number(c))&&(a.set(null),this._publishDynamicFilling_(c,null))}),this._publishAssignement_(),this.parent&&this._parentKey_&&this.parent._publishDynamicFilling_(this._parentKey_,this._value_),He(this._value_))for(const a in this._value_){const c=t[a],d=He(c)?c:{__value:c};if(!this._proxies_.has(a)){this._publishDynamicFilling_(a,c);continue}(n=this._proxies_.get(a))==null||n.set(d,!0),this._publishDynamicFilling_(a,c)}return!0}get(){if(this._cachedGet_!==void 0)return this._cachedGet_;if(N.modifiedCollectore.length>0&&N.modifiedCollectore[0].add(this),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_||(Dt.instancesCounter++,this._instanceCounter_=Dt.instancesCounter),Dt.instances.set(this._instanceCounter_,this),"<"+De+'-publisher-proxy publisher="'+this._instanceCounter_+'"></'+De+"-publisher-proxy>"}},Dt.instances=new Map,Dt.instancesCounter=0,Dt),N=(k=class{constructor(){if(this.enabledLocaStorageProxies=[],this.publishers=new Map,this.localStorageData={},this.isLocalStrorageReady=null,this.initialisedData=[],k.instance!=null)throw"Singleton / use getInstance";k.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 i=localStorage.getItem(ii),e=null;if(i&&(e=await this.decompress(i,"gzip")),e)try{this.localStorageData=JSON.parse(e)}catch{this.localStorageData={}}else i=await this.compress("{}","gzip"),localStorage.setItem(ii,i),this.localStorageData={};const o=1e3*60*60*12;for(const n in this.localStorageData){const a=this.localStorageData[n],c=new Date().getTime()-(a.expirationDelayMs||o);a.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 s=k.instances.get(t);return s||(console.warn("No PublisherManager instance registered with id:",t,"creating new one"),new k)}return k.instance==null?new k:k.instance}static registerInstance(t,s){k.instances.has(t)&&console.warn("PublisherManager instance already registered with id: ",t),k.instances.set(t,s)}static get(t,s){return k.getInstance().get(t,s)}static collectModifiedPublisher(){k.modifiedCollectore.unshift(new Set)}static getModifiedPublishers(){return k.modifiedCollectore.shift()}static delete(t){return t?k.getInstance().delete(t):!1}async setLocalData(t,s){var i;await this.isLocalStrorageReady,t.set(((i=this.localStorageData[s+"¤lang_"+K.getLanguage()])==null?void 0:i.data)||t.get())}get(t,s){const i=(s==null?void 0:s.localStorageMode)==="enabled",e=(s==null?void 0:s.invalidateOnPageShow)===!0;if(!this.publishers.has(t)){const n={},a=new Be(n);this.set(t,a)}const o=this.publishers.get(t);return i&&this.initialisedData.indexOf(t)===-1&&(s!=null&&s.expirationDelayMs&&(o._expiration_delay_=s.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,s){this.publishers.set(t,s)}delete(t){return this.publishers.has(t)?(this.publishers.delete(t),!0):!1}async saveToLocalStorage(t=0){if(!(t!==k.saveId&&t%10!=0))try{if(!k.changed||k.saving)return;k.saving=!0,k.changed=!1;const s=Array.from(this.publishers.keys());let i=!1;for(const e of s){const o=this.publishers.get(e);if(!(o!=null&&o._is_savable_))continue;const n=o==null?void 0:o.get();n&&(this.localStorageData[e+"¤lang_"+K.getLanguage()]={lastModifiationMS:new Date().getTime(),expirationDelayMs:o._expiration_delay_,data:n},i=!0)}if(i){const e=await this.compress(JSON.stringify(this.localStorageData),"gzip");localStorage.setItem(ii,e)}if(k.saving=!1,k.changed){k.saveId++;const e=k.saveId;setTimeout(()=>this.saveToLocalStorage(e),1e3)}}catch{k.saving=!1}}async compress(t,s){const i=new TextEncoder().encode(t),e=window,o=new e.CompressionStream(s),n=o.writable.getWriter();n.write(i),n.close();const a=await new Response(o.readable).arrayBuffer(),c=new Uint8Array(a);let h="";for(let d=0;d<c.length;d++)h+=String.fromCharCode(c[d]);return btoa(h)}async decompress(t,s){const i=atob(t),o=Uint8Array.from(i,d=>d.charCodeAt(0)).buffer,n=window,a=new n.DecompressionStream(s),c=a.writable.getWriter();c.write(o),c.close();const h=await new Response(a.readable).arrayBuffer();return new TextDecoder().decode(h)}},k.buildDate="Tue Jul 22 2025 17:17:30 GMT+0200 (Central European Summer Time)",k.changed=!1,k.saving=!1,k.saveId=0,k.instance=null,k.instances=new Map,k.modifiedCollectore=[],k);if(typeof window<"u"){const r=window;r[xs+"PublisherManager"]=r[xs+"PublisherManager"]||N}const Io=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_"]);class Be extends ri{constructor(t,s=null,i){super(t,s,i);const e=new Proxy(this,{get:function(o,n){if(Io.has(n))return o[n];if(n==Symbol.toPrimitive)return()=>e.get();if(!o._proxies_.has(n)){const a=o._value_[n],c=new Be(He(a)?a:{__value:a},o,n);c._proxies_.set("_parent_",e),o._proxies_.set(n,c)}return o._proxies_.get(n)},set:function(o,n,a){var h;if(n=="_value_")return o._value_=a,!0;if(n=="_cachedGet_")return o._cachedGet_=a,!0;if(n=="_assignmentId_")return o._assignmentId_=a,!0;if(n=="_is_savable_")return o._is_savable_=a,!0;if(n=="_expiration_delay_")return o._expiration_delay_=a,!0;if(n=="_invalidate_on_page_show_")return o._invalidate_on_page_show_=a,!0;if(n=="_instanceCounter_")return o._instanceCounter_=a,!0;if(!o._proxies_.has(n)){const d=new Be({},o,n);d._proxies_.set("_parent_",e),o._proxies_.set(n,d)}return o._value_[n]!==a&&(o._value_[n]=a,o._publishDynamicFilling_(n,a),(h=o._proxies_.get(n))==null||h.set(He(a)?a:{__value:a})),!0},deleteProperty:function(o,n){var a;return o._publishDynamicFilling_(n,null),(a=o._proxies_.get(n))==null||a.set(null),delete o._value_[n]},has:function(o,n){return n in o._value_&&n!="_lockInternalMutationPublishing_"},defineProperty:function(o,n,a){return a&&"value"in a&&(o._value_[n]=a.value),!0},getOwnPropertyDescriptor:function(o,n){return{enumerable:!0,configurable:!0}},ownKeys:function(o){return o._value_.__value?Object.keys(o._value_.__value):Object.keys(o._value_)}});return e}getProperty(t,s){return t[s]}}class jo extends HTMLElement{constructor(){super(),this.publisherId="",this.onAssign=t=>{this.innerHTML=t.toString()}}connectedCallback(){var t;this.publisherId=this.getAttribute("publisher")||"",this.publisher=ri.instances.get(parseInt(this.publisherId)),(t=this.publisher)==null||t.onAssign(this.onAssign)}disconnectedCallback(){var t;(t=this.publisher)==null||t.offAssign(this.onAssign)}}try{customElements.define(De+"-publisher-proxy",jo)}catch{}window.addEventListener("pageshow",r=>{r.persisted&&N.getInstance().invalidateAll()});let Ps=(E=class{static disable(){this.enabled&&(this.enabled=!1,Array.from(E.observedElements.keys()).forEach(t=>E.unObserve(t)))}static observe(t){if(!t||!E.enabled||E.observedElements.has(t))return;const s=new MutationObserver(E.onMutation),i={};i.childList=!0,i.subtree=!0,i.attributes=!0,i.attributeFilter=["data-bind"],s.observe(t,i),t.querySelectorAll("[data-bind]").forEach(e=>E.addPublisherListeners(e)),E.observedElements.set(t,s)}static unObserve(t){if(!t)return;const s=this.observedElements.get(t);s&&(s.disconnect(),t.querySelectorAll("[data-bind]").forEach(i=>E.removePublisherListeners(i)))}static onAdded(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.addPublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>E.addPublisherListeners(s)):t.childNodes.forEach(s=>E.onAdded(s))}static onRemoved(t){t.hasAttribute&&t.hasAttribute("data-bind")&&E.removePublisherListeners(t),t.querySelectorAll?t.querySelectorAll("[data-bind]").forEach(s=>E.removePublisherListeners(s)):t.childNodes.forEach(s=>E.onRemoved(s))}static onMutation(t){for(const s of t)switch(s.type){case"attributes":E.addPublisherListeners(s.target);break;case"childList":s.addedNodes.forEach(i=>{E.onAdded(i)}),s.removedNodes.forEach(i=>{E.onRemoved(i)});break}}static removePublisherListeners(t){const s=E.publisherListeners.get(t);s&&(E.publisherListeners.delete(t),s.forEach(i=>{var e;(e=i.publisher)==null||e.offAssign(i.onAssign)}))}static getVariablesDescriptor(t){let s=t.match(/(\$(?:\w+\\?\.?)+)/g);return s?s=s.map(i=>i.replace("$","")):s=[t],s=s.filter(i=>i.length>0),{expression:t.replace("\\",""),variables:s.map(i=>i.split(/\b\.\b/).map(e=>e.replace("\\","")))}}static getDataBindItems(t){return"attributes"in t?Array.from(t.attributes).filter(s=>s.name.indexOf("::")==0).map(s=>({propertyToUpdate:s.name.substring(2).replace(/-((html)|\w)/g,e=>e.substring(1).toUpperCase()),bindedVariablesDescriptor:E.getVariablesDescriptor(s.value)})):[]}static getSubPublisher(t,s){if(!s)return t;for(const i of s)if(i!="_self_"){if(!t)return null;t=t[i]}return t}static addPublisherListeners(t){E.removePublisherListeners(t);const s=K.getAncestorAttributeValue(t.parentNode||t.host||t,"dataProvider");if(!s)return;const i=N.getInstance().get(s),e=E.getDataBindItems(t),o=[];e.forEach(n=>{const a=n.bindedVariablesDescriptor,c=n.propertyToUpdate;for(const h of a.variables){const d=h;let p=i;p=E.getSubPublisher(i,d);const g=t,v={publisher:p,onAssign:()=>{const b=a.variables.map(D=>{var f;return(f=E.getSubPublisher(i,D))==null?void 0:f.get()});let y=a.expression,_=!1;if(b.length==1&&a.variables[0].join(".")==y.substring(1)){let D=b[0];D===null&&(D=""),g[c]=D;return}for(let D=0;D<b.length;D++){let f=b[D];const u=a.variables[D];f===null&&(_=!0,f=void 0),y=y.replace("$"+u.join("."),f)}if(y.indexOf("|")!=-1){const D=y.indexOf("|");if(D==0)y=ws.js(y.substring(1));else{const f=y.substring(0,D),u=y.substring(D+1),w=ws[f];y=_?"":w?w(u):y}}else y=_?"":y;g[c]=y}};p==null||p.onAssign(v.onAssign),o.push(v)}}),E.publisherListeners.set(t,o)}},E.observedElements=new Map,E.enabled=!0,E.publisherListeners=new Map,E);Ps.observe(document.documentElement),window.SonicDataBindObserver||(window.SonicDataBindObserver=Ps);let tt=class Zt{static shallowEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n];if(i?a!==c:a!=c)return!1}return!0}static deepEqual(t,s,i=!0){const e=Object.keys(t),o=Object.keys(s);if(e.length!==o.length&&i)return!1;for(const n of e){const a=t[n],c=s[n],h=Zt.isObject(a)&&Zt.isObject(c),d=i?a!==c:a!=c;if(h&&!Zt.deepEqual(a,c)||!h&&d)return!1}return!0}static isObject(t){return t!=null&&typeof t=="object"}static isUndefindOrNull(t){return t==null}static isEmpty(t){return Zt.isUndefindOrNull(t)?!0:Object.keys(t).length===0}static traverse(t,s,i=!1){for(const e of s){const o=t[e];if(o===void 0)return;i&&Zt.isObject(o)?t=Object.assign(Array.isArray(o)?[]:{},t,o):t=t[e]}return t}static traverseDotNotation(t,s,i=!1){return Zt.traverse(t,s.split("."),i)}static getURLSearchArray(t,s=""){let i=[];for(let e in t){const o=t[e];s&&(e=s+"["+e+"]"),Zt.isObject(o)?i=[...i,...this.getURLSearchArray(o,e)]:i.push(`${e}=${o}`)}return i}static getURLSearchString(t){return Zt.getURLSearchArray(t,"").join("&")}};const pt=tt.traverseDotNotation;/**
2
2
  * @license
3
3
  * Copyright 2017 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
@@ -1262,7 +1262,7 @@
1262
1262
  >
1263
1263
  </sonic-list>
1264
1264
  `})}
1265
- `}};Q.instanceCounter=0,rt([l({type:Array})],Q.prototype,"templates",2),rt([l({type:Function})],Q.prototype,"items",2),rt([l({type:Function})],Q.prototype,"noItems",2),rt([l({type:Function})],Q.prototype,"skeleton",2),rt([l({type:Object})],Q.prototype,"itemPropertyMap",2),rt([l()],Q.prototype,"cache",2),rt([l()],Q.prototype,"targetRequestDuration",2),rt([l()],Q.prototype,"limit",2),rt([l()],Q.prototype,"lazyBoundsRatio",2),rt([l()],Q.prototype,"offset",2),rt([l()],Q.prototype,"resultCount",2),rt([l({type:Boolean})],Q.prototype,"noLazyload",2),rt([l({type:String})],Q.prototype,"loader",2),rt([l()],Q.prototype,"filteredFields",2),rt([l({type:String})],Q.prototype,"dataProviderExpression",2),rt([l({type:Boolean})],Q.prototype,"invalidateOnPageShow",2),rt([l({type:String})],Q.prototype,"idKey",2),Q=rt([$(sl)],Q);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,je=(r,t,s,i)=>{for(var e=i>1?void 0:i?rl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&il(t,s,e),e};const ol="sonic-submit";let ee=class extends G(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=>{var b;if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=N.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,nt.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((b=this.getAttribute("method"))==null?void 0:b.toLocaleLowerCase())||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?N.getInstance().get(n):null;let c={};a&&(c=a.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d,g=async()=>{var w,S,O,T,q,W,kt,Lo;const y={...o};if(delete y.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await((w=this.api)==null?void 0:w.submitFormData(p,y,i,c));else switch(i){case"put":h=await((S=this.api)==null?void 0:S.put(p,y,c));break;case"patch":h=await((O=this.api)==null?void 0:O.patch(p,y,c));break;case"delete":h=await((T=this.api)==null?void 0:T.delete(p,y,c));break;case"get":const ei=new URLSearchParams;if(y)for(const Eo in y)ei.append(Eo,y[Eo]);const Bd="?"+ei.toString();h=await((q=this.api)==null?void 0:q.get(p+Bd,c));break;default:h=await((W=this.api)==null?void 0:W.post(p,y,c));break}nt.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 _=this.getAncestorAttributeValue("clearedDataOnSuccess");_&&_.split(" ").forEach(ei=>N.get(ei).set({}));const D=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Lo=(kt=this.api)==null?void 0:kt.lastResult)!=null&&Lo.ok&&y[D]&&y[f]&&this.saveCredentials(y[D],y[f]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&N.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},v=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(v){v.captchaToken="request_token";const y=_=>{_!="request_token"?(g(),v.captchaToken.offAssign(y)):(nt.hide(),this.disabled=!1)};v.captchaToken.onAssign(y)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ne(this.getApiConfiguration())}submitNativeForm(){const r=Gt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s={...N.get(t).get()};delete s.needsCaptchaValidation;for(const e in s){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=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};ee.styles=P`
1265
+ `}};Q.instanceCounter=0,rt([l({type:Array})],Q.prototype,"templates",2),rt([l({type:Function})],Q.prototype,"items",2),rt([l({type:Function})],Q.prototype,"noItems",2),rt([l({type:Function})],Q.prototype,"skeleton",2),rt([l({type:Object})],Q.prototype,"itemPropertyMap",2),rt([l()],Q.prototype,"cache",2),rt([l()],Q.prototype,"targetRequestDuration",2),rt([l()],Q.prototype,"limit",2),rt([l()],Q.prototype,"lazyBoundsRatio",2),rt([l()],Q.prototype,"offset",2),rt([l()],Q.prototype,"resultCount",2),rt([l({type:Boolean})],Q.prototype,"noLazyload",2),rt([l({type:String})],Q.prototype,"loader",2),rt([l()],Q.prototype,"filteredFields",2),rt([l({type:String})],Q.prototype,"dataProviderExpression",2),rt([l({type:Boolean})],Q.prototype,"invalidateOnPageShow",2),rt([l({type:String})],Q.prototype,"idKey",2),Q=rt([$(sl)],Q);var il=Object.defineProperty,rl=Object.getOwnPropertyDescriptor,je=(r,t,s,i)=>{for(var e=i>1?void 0:i?rl(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&il(t,s,e),e};const ol="sonic-submit";let ee=class extends G(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=>{var b;if(this.disabled||r instanceof KeyboardEvent&&r.key!=="Enter")return;r instanceof MouseEvent&&r.stopPropagation();const t=N.getInstance().get(this.getAncestorAttributeValue("formDataProvider"));if(t.isFormValid=!0,t.invalidateForm(),!t.isFormValid.get())return;if(this.disabled=!0,nt.show(),t.isFormValid,this.hasAttribute("native")){this.submitNativeForm();return}const i=((b=this.getAttribute("method"))==null?void 0:b.toLocaleLowerCase())||"post",e=this.hasAttribute("sendAsFormData"),o=t.get();delete o.isFormValid;const n=this.getAncestorAttributeValue("headersDataProvider"),a=n?N.getInstance().get(n):null;let c={};a&&(c=a.get());let h=null;const d=this.getAncestorAttributeValue("dataProvider"),p=this.endPoint||d,g=async()=>{var w,S,O,T,q,W,kt,Lo;const y={...o};if(delete y.needsCaptchaValidation,delete c.needsCaptchaValidation,e)h=await((w=this.api)==null?void 0:w.submitFormData(p,y,i,c));else switch(i){case"put":h=await((S=this.api)==null?void 0:S.put(p,y,c));break;case"patch":h=await((O=this.api)==null?void 0:O.patch(p,y,c));break;case"delete":h=await((T=this.api)==null?void 0:T.delete(p,y,c));break;case"get":const ei=new URLSearchParams;if(y)for(const Eo in y)ei.append(Eo,y[Eo]);const qd="?"+ei.toString();h=await((q=this.api)==null?void 0:q.get(p+qd,c));break;default:h=await((W=this.api)==null?void 0:W.post(p,y,c));break}nt.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 _=this.getAncestorAttributeValue("clearedDataOnSuccess");_&&_.split(" ").forEach(ei=>N.get(ei).set({}));const D=this.hasAttribute("usernameKey")?this.getAttribute("usernameKey"):"username",f=this.hasAttribute("passwordKey")?this.getAttribute("passwordKey"):"password";(Lo=(kt=this.api)==null?void 0:kt.lastResult)!=null&&Lo.ok&&y[D]&&y[f]&&this.saveCredentials(y[D],y[f]),this.submitResultKey&&(h=tt.traverse(h,this.submitResultKey.split("."),!0));const u=this.getAncestorAttributeValue("submitResultDataProvider");u&&N.get(u).set(h),this.disabled=!1,this.dispatchEvent(new CustomEvent("submit",{detail:h,bubbles:!0,composed:!0}))},v=a!=null&&a.needsCaptchaValidation.get()?a:t.needsCaptchaValidation.get()?t:null;if(v){v.captchaToken="request_token";const y=_=>{_!="request_token"?(g(),v.captchaToken.offAssign(y)):(nt.hide(),this.disabled=!1)};v.captchaToken.onAssign(y)}else g()}}connectedCallback(){this.hasAttribute("onClick")&&this.addEventListener("click",this.submit),this.hasAttribute("onEnterKey")&&this.addEventListener("keydown",this.submit),super.connectedCallback(),this.api=new Ne(this.getApiConfiguration())}submitNativeForm(){const r=Gt.getClosestForm(this);if(!r)return;const t=this.getAncestorAttributeValue("formDataProvider"),s={...N.get(t).get()};delete s.needsCaptchaValidation;for(const e in s){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=s[e];Array.isArray(n)&&(n=n.join(",")),o.type==="checkbox"||o.type==="radio"?n&&(o.checked=!0):o.value=n}const i=document.createElement("input");i.name=this.name,i.style.display="none",i.value=this.value,i.type="submit",r.appendChild(i),i&&i.click()}async saveCredentials(r,t){if("PasswordCredential"in window){const s=new window.PasswordCredential({id:r,password:t});await navigator.credentials.store(s)}}render(){return m`<div ?data-disabled=${this.disabled}><slot></slot></div>`}};ee.styles=P`
1266
1266
  [data-disabled] {
1267
1267
  opacity: 0.3;
1268
1268
  pointer-events: none;
@@ -2092,7 +2092,7 @@
2092
2092
  * @license
2093
2093
  * Copyright 2021 Google LLC
2094
2094
  * SPDX-License-Identifier: BSD-3-Clause
2095
- */class wo{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,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){var s;this.value=(s=this.callback)==null?void 0:s.call(this,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 rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rc(t,s,e),e};let at=class extends Ei(lo(ao(te(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 wo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&((t=this.searchPublisher)==null||t.set(this.lastValidSearch))},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){var e,o,n,a;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=it.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=pt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(it.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(a=this.searchPublisher)==null||a.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=it.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=it.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=it.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}getInputValue(){var r;return this.isSearchParameter()?(r=this.searchPublisher)==null?void 0:r.get():this.lastValidSearch}render(){return m`
2095
+ */class wo{constructor(t,{target:s,config:i,callback:e,skipInitial:o}){this.t=new Set,this.o=!1,this.i=!1,this.h=t,s!==null&&this.t.add(s??t),this.l=i,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){var s;this.value=(s=this.callback)==null?void 0:s.call(this,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 rc=Object.defineProperty,oc=Object.getOwnPropertyDescriptor,ut=(r,t,s,i)=>{for(var e=i>1?void 0:i?oc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&rc(t,s,e),e};let at=class extends Ei(lo(ao(te(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 wo(this,{}),this.isPopVisible=!1,this.searchDataProvider="",this.initSearchDataProvider="",this.queueDataProvider="",this.initQueueDataProvider="",this.lastValidSearch="",this.updateSearchParameter=r=>{var s;if(r==""&&this.isSearchParameter()){this.lastValidSearch="";return}this.queryQueueListItem(this.queueDataProvider,this.findSelection,this.setSearchFromSelection)===!1&&this.isSearchParameter()&&(this.lastValidSearch=r,(s=this.searchPublisher)==null||s.set(this.lastValidSearch))},this.updatePopContentVisibility=r=>{this.isPopVisible=((r==null?void 0:r.length)||0)>=this.minSearchLength},this.initSearchParameter=()=>{this.queryQueueListItem(this.initQueueDataProvider,this.findSelection,this.setSearchFromSelection)},this.selectListItem=r=>{var s;const t=this.propertyName==="_self"?r:r[this.propertyName||this.name];(s=this.formValuePublisher)==null||s.set(t)},this.findSearchedItem=r=>{var s;return(this.propertyName==="_self"?r:r[this.propertyName||this.searchParameter||this.name])==((s=this.searchPublisher)==null?void 0:s.get())},this.findSelection=r=>(this.propertyName==="_self"?r:r[this.propertyName||this.name])==this.value,this.setSearchFromSelection=r=>{var t;this.lastValidSearch=this.propertyName==="_self"?r:r[this.searchParameter||this.propertyName||this.name],this.isSearchParameter()&&((t=this.searchPublisher)==null||t.set(this.lastValidSearch))},this.updateActiveSelection=()=>{var r,t,s;this.queryQueueListItem(this.queueDataProvider,this.findSearchedItem,this.selectListItem),!this.select&&this.lastValidSearch&&this.lastValidSearch!=((r=this.searchPublisher)==null?void 0:r.get())&&((t=this.formValuePublisher)!=null&&t.get())&&((s=this.formValuePublisher)==null||s.set(""))}}hasSlotOrProps(){var r;this.hasInputPrefix=!!((r=this.slotInputPrefixNodes)!=null&&r.length)}isSearchParameter(){return!this.searchParameter||this.searchParameter===this.name}connectedCallback(){var e,o,n,a;super.connectedCallback();const r=this.searchParameter||this.name,t=this.getAncestorAttributeValue("formDataProvider"),s=t+"__"+this.name+"__autocomplete";this.initSearchDataProvider=`${s}_init_search__`,this.initQueueDataProvider=`${s}_init_queue__`,this.searchDataProvider=`${s}_search__`,this.queueDataProvider=`${s}_queue__`;const i=it.get;this.searchPublisher=i(this.searchDataProvider)[r],this.formValuePublisher=pt(i(t),this.name),this.countPublisher=i(this.queueDataProvider).resultCount,this.initCountPublisher=i(this.initQueueDataProvider).resultCount,this.value&&(it.get(this.initSearchDataProvider)[this.name]=this.value),(e=this.initCountPublisher)==null||e.onAssign(this.initSearchParameter),(o=this.formValuePublisher)==null||o.onAssign(this.updateSearchParameter),(n=this.countPublisher)==null||n.onAssign(this.updateActiveSelection),(a=this.searchPublisher)==null||a.onAssign(this.updatePopContentVisibility)}disconnectedCallback(){var t,s,i,e;super.disconnectedCallback(),(t=this.initCountPublisher)==null||t.offAssign(this.initSearchParameter),(s=this.formValuePublisher)==null||s.offAssign(this.updateSearchParameter),(i=this.countPublisher)==null||i.offAssign(this.updateActiveSelection);const r=it.get;r(this.initSearchDataProvider).delete(),r(this.initQueueDataProvider).delete(),r(this.searchDataProvider).delete(),r(this.queueDataProvider).delete(),(e=this.searchPublisher)==null||e.offAssign(this.updatePopContentVisibility)}queryQueueListItem(r,t,s){const i=it.get(r);let e,o=i.get();if(!o||!Array.isArray(o)||!o.length)return!1;for(const n of o){let a=it.get(n.dataProvider).get();if(Array.isArray(a)&&(e=a.find(t),e))break}return e?(s(e),!0):!1}setSelectionRange(r,t){var s;(s=this.querySelector("sonic-input"))==null||s.setSelectionRange(r,t)}handleHide(){var r,t,s;if(this.select){if(((r=this.searchPublisher)==null?void 0:r.get())==""){this.lastValidSearch="",(t=this.formValuePublisher)==null||t.set("");return}(s=this.searchPublisher)==null||s.set(this.lastValidSearch)}}getInputValue(){var r;return this.isSearchParameter()?(r=this.searchPublisher)==null?void 0:r.get():this.lastValidSearch}render(){return m`
2096
2096
  <sonic-pop noToggle style="display:block;" @hide=${this.handleHide}>
2097
2097
  <sonic-input
2098
2098
  dataProvider="${this.initSearchDataProvider+Math.random()}"
@@ -2425,7 +2425,7 @@
2425
2425
  input + sonic-icon {
2426
2426
  display: none;
2427
2427
  }
2428
- `],Ri=wc([$(xc)],Ri);var $c=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,J=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&$c(t,s,e),e};const Ac="sonic-select";let Z=class extends Me(G(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 s of r)s.selected&&(this.value=s.value||"");!(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(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.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 m`
2428
+ `],Ri=wc([$(xc)],Ri);var $c=Object.defineProperty,Pc=Object.getOwnPropertyDescriptor,J=(r,t,s,i)=>{for(var e=i>1?void 0:i?Pc(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&$c(t,s,e),e};const Ac="sonic-select";let Z=class extends Me(G(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 s of r)s.selected&&(this.value=s[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(){var r,t,s,i;this.hasLabel=!!(this.label||(r=this.slotLabelNodes)!=null&&r.length),this.hasDescription=!!(this.description||(t=this.slotDescriptionNodes)!=null&&t.length),this.hasSuffix=!!((s=this.slotSuffixNodes)!=null&&s.length),this.hasPrefix=!!((i=this.slotPrefixNodes)!=null&&i.length)}validateFormElement(){var s;const r=(s=this.shadowRoot)==null?void 0:s.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 m`
2429
2429
  <label
2430
2430
  for="form-element"
2431
2431
  class="${this.hasLabel?"form-label":"hidden"}"
@@ -3925,7 +3925,230 @@ ${this.value}</textarea
3925
3925
  --sc-table-td-border-b: var(--sc-table-bw) solid
3926
3926
  var(--sc-table-border-color);
3927
3927
  }
3928
- `],Ue([l({type:String,reflect:!0})],ae.prototype,"size",2),Ue([l({type:Boolean,reflect:!0})],ae.prototype,"bordered",2),Ue([l({type:Boolean,reflect:!0})],ae.prototype,"rounded",2),Ue([l({type:Boolean,reflect:!0})],ae.prototype,"noCustomScroll",2),Ue([l({type:String})],ae.prototype,"maxHeight",2),ae=Ue([$(Sd)],ae);const So="AES-CBC",Od=256;async function Dd(){return crypto.subtle.generateKey({name:So,length:Od},!0,["encrypt","decrypt"])}function kd(r){return btoa(String.fromCharCode(...new Uint8Array(r)))}async function Ld(r,t,s){const i=new TextEncoder().encode(r),e=await crypto.subtle.encrypt({name:So,iv:s},t,i);return kd(e)}var Ed=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,ti=(r,t,s,i)=>{for(var e=i>1?void 0:i?Nd(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Ed(t,s,e),e};const Td="supersoniks_altcha",Md="Si2\\]X8M4!n9DCLd";let Oo=!1;const Id="sonic-captcha";let Ve=class extends te(x){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Oo){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://eu.altcha.org/js/latest/altcha.min.js",Oo=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=it.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken="",this.formPublisher.needsCaptchaValidation=!1),super.disconnectedCallback()}requestToken(){var s;if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey=this.key,this.formPublisher.captchaToken=((s=t.get("altcha"))==null?void 0:s.toString())||""}async generateEncryptedKey(){if(this.key)return;const r=await Dd(),t=new TextEncoder().encode(Md),s=await Ld(Td,r,t);this.key=s}render(){if(!this.key)return C;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 m`
3928
+ `],Ue([l({type:String,reflect:!0})],ae.prototype,"size",2),Ue([l({type:Boolean,reflect:!0})],ae.prototype,"bordered",2),Ue([l({type:Boolean,reflect:!0})],ae.prototype,"rounded",2),Ue([l({type:Boolean,reflect:!0})],ae.prototype,"noCustomScroll",2),Ue([l({type:String})],ae.prototype,"maxHeight",2),ae=Ue([$(Sd)],ae);const So="AES-CBC",Od=256;async function Dd(){return crypto.subtle.generateKey({name:So,length:Od},!0,["encrypt","decrypt"])}function kd(r){return btoa(String.fromCharCode(...new Uint8Array(r)))}async function Ld(r,t,s){const i=new TextEncoder().encode(r),e=await crypto.subtle.encrypt({name:So,iv:s},t,i);return kd(e)}const Ed=P`
3929
+ @keyframes altcha-spinner {
3930
+ to {
3931
+ transform: rotate(360deg);
3932
+ }
3933
+ }
3934
+ .altcha {
3935
+ background: var(--altcha-color-base, transparent);
3936
+ display: flex;
3937
+ flex-direction: column;
3938
+ position: relative;
3939
+ }
3940
+
3941
+ .altcha[data-floating] {
3942
+ background: var(--altcha-color-base, white);
3943
+ display: none;
3944
+ filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
3945
+ left: -100%;
3946
+ position: fixed;
3947
+ top: -100%;
3948
+ width: var(--altcha-max-width, 260px);
3949
+ z-index: 999999;
3950
+ }
3951
+ .altcha[data-floating="top"] .altcha-anchor-arrow {
3952
+ border-bottom-color: transparent;
3953
+ border-top-color: var(--altcha-color-border, #a0a0a0);
3954
+ bottom: -12px;
3955
+ top: auto;
3956
+ }
3957
+ .altcha[data-floating="bottom"]:focus-within::after {
3958
+ border-bottom-color: var(--altcha-color-border-focus, currentColor);
3959
+ }
3960
+ .altcha[data-floating="top"]:focus-within::after {
3961
+ border-top-color: var(--altcha-color-border-focus, currentColor);
3962
+ }
3963
+ .altcha[data-floating]:not([data-state="unverified"]) {
3964
+ display: block;
3965
+ }
3966
+ .altcha-anchor-arrow {
3967
+ border: 6px solid transparent;
3968
+ border-bottom-color: var(--altcha-color-border, #a0a0a0);
3969
+ content: "";
3970
+ height: 0;
3971
+ left: 12px;
3972
+ position: absolute;
3973
+ top: -12px;
3974
+ width: 0;
3975
+ }
3976
+ .altcha-main {
3977
+ align-items: center;
3978
+ display: flex;
3979
+ gap: 0.4rem;
3980
+ padding: 0.7rem;
3981
+ position: relative;
3982
+ }
3983
+ .altcha-code-challenge {
3984
+ background: var(--altcha-color-base, white);
3985
+ border: 1px solid var(--altcha-color-border-focus, currentColor);
3986
+ border-radius: var(--altcha-border-radius, 3px);
3987
+ filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.2));
3988
+ padding: 0.5rem;
3989
+ position: absolute;
3990
+ top: 2.5rem;
3991
+ z-index: 9999999;
3992
+ }
3993
+ .altcha-code-challenge > form {
3994
+ display: flex;
3995
+ flex-direction: column;
3996
+ gap: 0.5rem;
3997
+ }
3998
+ .altcha-code-challenge-input {
3999
+ border: 1px solid currentColor;
4000
+ border-radius: 3px;
4001
+ box-sizing: border-box;
4002
+ outline: 0;
4003
+ font-size: 16px;
4004
+ padding: 0.35rem;
4005
+ width: 220px;
4006
+ }
4007
+ .altcha-code-challenge-input:focus {
4008
+ outline: 2px solid
4009
+ color-mix(in srgb, var(--altcha-color-active, #1d1dc9) 20%, transparent);
4010
+ }
4011
+ .altcha-code-challenge-input:disabled {
4012
+ opacity: 0.7;
4013
+ }
4014
+ .altcha-code-challenge-image {
4015
+ background-color: #fff;
4016
+ border: 1px solid currentColor;
4017
+ border-radius: 3px;
4018
+ box-sizing: border-box;
4019
+ object-fit: contain;
4020
+ height: 50px;
4021
+ width: 220px;
4022
+ }
4023
+ .altcha-code-challenge-audio,
4024
+ .altcha-code-challenge-reload {
4025
+ background: color-mix(
4026
+ in srgb,
4027
+ var(--altcha-color-text, currentColor) 10%,
4028
+ transparent
4029
+ );
4030
+ border: 0;
4031
+ border-radius: 3px;
4032
+ color: var(--altcha-color-text, currentColor);
4033
+ cursor: pointer;
4034
+ display: flex;
4035
+ align-items: center;
4036
+ justify-content: center;
4037
+ padding: 0.35rem;
4038
+ }
4039
+ .altcha-code-challenge-audio:disabled,
4040
+ .altcha-code-challenge-reload:disabled,
4041
+ .altcha-code-challenge-verify:disabled {
4042
+ opacity: 0.7;
4043
+ pointer-events: none;
4044
+ }
4045
+ .altcha-code-challenge-audio > *,
4046
+ .altcha-code-challenge-reload > * {
4047
+ height: 20px;
4048
+ width: 20px;
4049
+ }
4050
+ .altcha-code-challenge-buttons {
4051
+ display: flex;
4052
+ justify-content: space-between;
4053
+ }
4054
+ .altcha-code-challenge-buttons-left {
4055
+ display: flex;
4056
+ gap: 0.25rem;
4057
+ }
4058
+ .altcha-code-challenge-verify {
4059
+ align-items: center;
4060
+ background: var(--altcha-color-active, #1d1dc9);
4061
+ border: 0;
4062
+ border-radius: 3px;
4063
+ color: #fff;
4064
+ cursor: pointer;
4065
+ display: flex;
4066
+ gap: 0.5rem;
4067
+ font-size: 100%;
4068
+ padding: 0.35rem 1rem;
4069
+ }
4070
+ .altcha-code-challenge-arrow {
4071
+ border: 6px solid transparent;
4072
+ border-bottom-color: var(--altcha-color-border, currentColor);
4073
+ content: "";
4074
+ height: 0;
4075
+ left: 0.15rem;
4076
+ position: absolute;
4077
+ top: -12px;
4078
+ width: 0;
4079
+ }
4080
+ .altcha[data-floating="top"] .altcha-code-challenge {
4081
+ top: -150px;
4082
+ }
4083
+ .altcha[data-floating="top"] .altcha-code-challenge-arrow {
4084
+ border-bottom-color: transparent;
4085
+ border-top-color: var(--altcha-color-border, currentColor);
4086
+ bottom: -12px;
4087
+ top: auto;
4088
+ }
4089
+ .altcha-label {
4090
+ cursor: pointer;
4091
+ flex-grow: 1;
4092
+ line-height: 1.15;
4093
+ }
4094
+ .altcha-logo {
4095
+ color: currentColor !important;
4096
+ opacity: 0.7;
4097
+ }
4098
+ .altcha-footer:hover,
4099
+ .altcha-logo:hover {
4100
+ opacity: 1;
4101
+ }
4102
+ .altcha-error {
4103
+ color: var(--altcha-color-error-text, #f23939);
4104
+ display: flex;
4105
+ font-size: 0.85rem;
4106
+ gap: 0.3rem;
4107
+ padding: 0 0.7rem 0.7rem;
4108
+ }
4109
+ .altcha-footer {
4110
+ align-items: center;
4111
+ background-color: var(--altcha-color-footer-bg, transparent);
4112
+ display: flex;
4113
+ font-size: 0.75rem;
4114
+ opacity: 0.7;
4115
+ justify-content: end;
4116
+ padding: 0.2rem 0.7rem;
4117
+ }
4118
+ .altcha-footer a {
4119
+ color: currentColor;
4120
+ }
4121
+ .altcha-checkbox {
4122
+ display: flex;
4123
+ align-items: center;
4124
+ justify-content: center;
4125
+ height: 24px;
4126
+ position: relative;
4127
+ width: 24px;
4128
+ margin: 0;
4129
+ }
4130
+ .altcha-checkbox .altcha-spinner {
4131
+ bottom: 0;
4132
+ left: 0;
4133
+ position: absolute;
4134
+ right: 0;
4135
+ top: 0;
4136
+ }
4137
+ .altcha-checkbox input {
4138
+ width: 18px;
4139
+ height: 18px;
4140
+ margin: 0;
4141
+ }
4142
+ .altcha-checkbox-verifying input {
4143
+ appearance: none;
4144
+ opacity: 0;
4145
+ pointer-events: none;
4146
+ }
4147
+ .altcha-spinner {
4148
+ animation: altcha-spinner 0.75s infinite linear;
4149
+ transform-origin: center;
4150
+ }
4151
+ `;var Nd=Object.defineProperty,Td=Object.getOwnPropertyDescriptor,ti=(r,t,s,i)=>{for(var e=i>1?void 0:i?Td(t,s):t,o=r.length-1,n;o>=0;o--)(n=r[o])&&(e=(i?n(t,s,e):n(e))||e);return i&&e&&Nd(t,s,e),e};const Md="supersoniks_altcha",Id="Si2\\]X8M4!n9DCLd";let Oo=!1;const jd="sonic-captcha";let Ve=class extends te(x){constructor(){super(...arguments),this.key="",this.action=null,this.zIndex=9999,this.onCaptchaTokenChanged=r=>{r=="request_token"&&(this.formPublisher&&(this.formPublisher.captchaToken=""),this.requestToken())},this.maxNumber=5e4,this.chalengeUrl="https://altcha.supersoniks.org/get-challenge"}connectedCallback(){if(document.location.protocol.includes("https")){if(!Oo){const r=document.createElement("script");r.type="module",this.setAttribute("async",""),this.setAttribute("defer",""),r.src="https://eu.altcha.org/js/latest/altcha.min.js",Oo=!0,document.head.appendChild(r)}this.generateEncryptedKey(),super.connectedCallback(),this.formPublisher=it.get(this.getAncestorAttributeValue("headersDataProvider")??this.getAncestorAttributeValue("formDataProvider")),this.formPublisher&&!this.formPublisher.captchaToken.get()&&(this.formPublisher.needsCaptchaValidation=!0,this.formPublisher.captchaToken.onAssign(this.onCaptchaTokenChanged))}}disconnectedCallback(){this.formPublisher&&(this.formPublisher.captchaToken.offAssign(this.onCaptchaTokenChanged),this.formPublisher.captchaToken="",this.formPublisher.needsCaptchaValidation=!1),super.disconnectedCallback()}requestToken(){var s;if(!this.formPublisher)return;const r=this.shadowRoot.querySelector("form");if(!r)return;const t=new FormData(r);this.formPublisher.captchaKey=this.key,this.formPublisher.captchaToken=((s=t.get("altcha"))==null?void 0:s.toString())||""}async generateEncryptedKey(){if(this.key)return;const r=await Dd(),t=new TextEncoder().encode(Id),s=await Ld(Md,r,t);this.key=s}render(){if(!this.key)return C;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 m`
3929
4152
  <form>
3930
4153
  <altcha-widget
3931
4154
  challengeurl="${this.chalengeUrl}?key=${this.key}&maxNumber=${this.maxNumber}"
@@ -3937,7 +4160,7 @@ ${this.value}</textarea
3937
4160
  ></altcha-widget>
3938
4161
  </form>
3939
4162
  <slot></slot>
3940
- `}};Ve.styles=[P`
4163
+ `}};Ve.styles=[Ed,P`
3941
4164
  :host {
3942
4165
  --altcha-border-width: var(--sc-border-width, 1px);
3943
4166
  --altcha-border-radius: var(--sc-rounded);
@@ -3946,13 +4169,14 @@ ${this.value}</textarea
3946
4169
  --sc-input-border-color,
3947
4170
  var(--sc-base-content, #000)
3948
4171
  );
3949
- --altcha-color-text: currentColor;
4172
+ --altcha-color-text: var(--sc-base-content, #000);
4173
+ --altcha-color-active: var(--sc-base-content, #000);
3950
4174
  --altcha-color-border-focus: currentColor;
3951
4175
  --altcha-color-error-text: var(
3952
4176
  --sc-danger,
3953
4177
  var(--sc-base-content, #000)
3954
4178
  );
3955
- --altcha-color-footer-bg: var(--sc-base-100);
4179
+ --altcha-color-footer-bg: var(--sc-base-100, #000);
3956
4180
  --altcha-max-width: 260px;
3957
4181
  }
3958
- `],ti([l()],Ve.prototype,"key",2),ti([l()],Ve.prototype,"action",2),ti([l({type:Number})],Ve.prototype,"zIndex",2),Ve=ti([$(Id)],Ve),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function jd(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function Fd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Do(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=jd,r.__onDisconnected__=Fd;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function zd(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=ts.traverse(i,t),function(e,o){if(!e)return;let n;Do(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Rd(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=N.get(n);a=ts.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(p=>p!==null).length==r.length&&c.forEach(p=>p(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){Do(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:zd,onAssing:Rd},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Lr,dataProvider:pn,sub:hn,subscribe:cn,get:dn,set:un};const Ud=M,Vd=F;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Ud,SonicModal:Vd};const Hd=window;Hd.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});
4182
+ `],ti([l()],Ve.prototype,"key",2),ti([l()],Ve.prototype,"action",2),ti([l({type:Number})],Ve.prototype,"zIndex",2),Ve=ti([$(jd)],Ve),window.queueMicrotask=window.queueMicrotask||function(r){Promise.resolve().then(r).catch(t=>setTimeout(()=>{throw t}))};function Fd(r){this.__connectedCallbackCalls__||(this.__connectedCallbackCalls__=new Set),this.__connectedCallbackCalls__.add(r)}function zd(r){this.__disconnectedCallbackCalls__||(this.__disconnectedCallbackCalls__=new Set),this.__disconnectedCallbackCalls__.add(r)}function Do(r){if(r.__is__setSubscribable__)return;r.__is__setSubscribable__=!0,r.__onConnected__=Fd,r.__onDisconnected__=zd;const t=r.connectedCallback;r.connectedCallback=function(){t.call(this),this.__connectedCallbackCalls__&&this.__connectedCallbackCalls__.forEach(i=>i(this))};const s=r.disconnectedCallback;r.disconnectedCallback=function(){s.call(this),this.__disconnectedCallbackCalls__&&this.__disconnectedCallbackCalls__.forEach(i=>i(this))}}function Rd(r){const t=r.split(".");if(t.length==0)return function(){};const s=t.shift()||"";let i=N.get(s);return i=ts.traverse(i,t),function(e,o){if(!e)return;let n;Do(e),e.__onConnected__(a=>{n=c=>{a[o]=c},i.onAssign(n)}),e.__onDisconnected__(()=>{i.offAssign(n)})}}function Ud(...r){const t=[],s=[];for(let i=0;i<r.length;i++){const o=r[i].split(".");if(o.length==0)continue;const n=o.shift()||"";let a=N.get(n);a=ts.traverse(a,o);const c=new Set,h=d=>{t[i]=d,t.filter(p=>p!==null).length==r.length&&c.forEach(p=>p(...t))};s.push({publisher:a,onAssign:h,callbacks:c})}return function(i,e,o){Do(i);let n;i.__onConnected__(a=>{for(const c of s)n=o.value.bind(a),c.callbacks.add(n),c.publisher.onAssign(c.onAssign)}),i.__onDisconnected__(()=>{for(const a of s)a.callbacks.delete(n),a.publisher.offAssign(a.onAssign)})}}window["concorde-decorator-subscriber"]=window["concorde-decorator-subscriber"]||{},window["concorde-decorator-subscriber"]={bind:Rd,onAssing:Ud},window["concorde-directives-data-provider"]=window["concorde-directives-data-provider"]||{},window["concorde-directives-data-provider"]={dp:Lr,dataProvider:pn,sub:hn,subscribe:cn,get:dn,set:un};const Vd=M,Hd=F;window["concorde-components"]=window["concorde-components"]||{},window["concorde-components"]={SonicToast:Vd,SonicModal:Hd};const Bd=window;Bd.concordeIsLoaded=!0,window.dispatchEvent(new CustomEvent("concorde-loaded"))});