@mattilsynet/design 2.2.16 → 2.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mtds/analytics/analytics.js +1 -1
- package/mtds/analytics/analytics.js.map +1 -1
- package/mtds/chart/chart-element.js +1 -1
- package/mtds/chart/chart-element.js.map +1 -1
- package/mtds/chart/chart.d.ts +7 -12
- package/mtds/chart/chart.js.map +1 -1
- package/mtds/dialog/dialog-observer.js +16 -16
- package/mtds/dialog/dialog-observer.js.map +1 -1
- package/mtds/field/field-observer.js +47 -44
- package/mtds/field/field-observer.js.map +1 -1
- package/mtds/fieldset/fieldset.stories.d.ts +1 -0
- package/mtds/fileupload/fileupload.d.ts +6 -0
- package/mtds/fileupload/fileupload.js +13 -0
- package/mtds/fileupload/fileupload.js.map +1 -0
- package/mtds/fileupload/fileupload.stories.d.ts +11 -0
- package/mtds/illustrations/index.json +139 -0
- package/mtds/index.d.ts +1 -0
- package/mtds/index.iife.js +12 -12
- package/mtds/law/law-helper.d.ts +31 -0
- package/mtds/law/law.d.ts +18 -0
- package/mtds/law/vin.d.ts +1 -0
- package/mtds/map.iife.js +2 -2
- package/mtds/package.json.js +1 -1
- package/mtds/react.d.ts +1 -0
- package/mtds/react.js +49 -47
- package/mtds/react.js.map +1 -1
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +42 -41
- package/mtds/styles.module.css.js +90 -88
- package/mtds/styles.module.css.js.map +1 -1
- package/mtds/table/table.stories.d.ts +1 -0
- package/package.json +9 -9
- package/mtds/lawpicker/lawpicker-element.d.ts +0 -18
- /package/mtds/{lawpicker/lawpicker.stories.d.ts → law/law.stories.d.ts} +0 -0
|
@@ -628,5 +628,144 @@
|
|
|
628
628
|
"stars.svg": {
|
|
629
629
|
"categories": ["Visjon"],
|
|
630
630
|
"tags": ["stjerner", "visjon", "premium", "best", "lykkes"]
|
|
631
|
+
},
|
|
632
|
+
"tre-1.svg": {
|
|
633
|
+
"categories": ["Planter"],
|
|
634
|
+
"tags": ["tre"]
|
|
635
|
+
},
|
|
636
|
+
"tre-2.svg": {
|
|
637
|
+
"categories": ["Planter"],
|
|
638
|
+
"tags": ["tre"]
|
|
639
|
+
},
|
|
640
|
+
"tre-3.svg": {
|
|
641
|
+
"categories": ["Planter"],
|
|
642
|
+
"tags": ["tre"]
|
|
643
|
+
},
|
|
644
|
+
"byggning-1-gronn.svg": {
|
|
645
|
+
"categories": ["Bygg"],
|
|
646
|
+
"tags": ["byggninger", "by", "hus"]
|
|
647
|
+
},
|
|
648
|
+
"byggning-1-mattilsynet.svg": {
|
|
649
|
+
"categories": ["Bygg"],
|
|
650
|
+
"tags": ["byggninger", "by", "hus", "mattilsynet"]
|
|
651
|
+
},
|
|
652
|
+
"byggning-2-gronn.svg": {
|
|
653
|
+
"categories": ["Bygg"],
|
|
654
|
+
"tags": ["byggninger", "by", "hus"]
|
|
655
|
+
},
|
|
656
|
+
"byggning-3-gronn.svg": {
|
|
657
|
+
"categories": ["Bygg"],
|
|
658
|
+
"tags": ["byggninger", "by", "hus"]
|
|
659
|
+
},
|
|
660
|
+
"byggning-4-gronn.svg": {
|
|
661
|
+
"categories": ["Bygg"],
|
|
662
|
+
"tags": ["byggninger", "by", "hus"]
|
|
663
|
+
},
|
|
664
|
+
"byggning-5-gronn.svg": {
|
|
665
|
+
"categories": ["Bygg"],
|
|
666
|
+
"tags": ["byggninger", "by", "hus"]
|
|
667
|
+
},
|
|
668
|
+
"byggning-6-blaa.svg": {
|
|
669
|
+
"categories": ["Bygg"],
|
|
670
|
+
"tags": ["byggninger", "by", "hus"]
|
|
671
|
+
},
|
|
672
|
+
"byggning-7-blaa.svg": {
|
|
673
|
+
"categories": ["Bygg"],
|
|
674
|
+
"tags": ["byggninger", "by", "hus"]
|
|
675
|
+
},
|
|
676
|
+
"byggning-8-blaa.svg": {
|
|
677
|
+
"categories": ["Bygg"],
|
|
678
|
+
"tags": ["byggninger", "by", "hus"]
|
|
679
|
+
},
|
|
680
|
+
"byggningsrekke-1-gronn.svg": {
|
|
681
|
+
"categories": ["Bygg"],
|
|
682
|
+
"tags": ["byggninger", "by", "hus", "byggningsrekke"]
|
|
683
|
+
},
|
|
684
|
+
"byggningsrekke-1-mattilsynet.svg": {
|
|
685
|
+
"categories": ["Bygg"],
|
|
686
|
+
"tags": ["byggninger", "by", "hus", "byggningsrekke"]
|
|
687
|
+
},
|
|
688
|
+
"byggningsrekke-2-gronn.svg": {
|
|
689
|
+
"categories": ["Bygg"],
|
|
690
|
+
"tags": ["byggninger", "by", "hus", "byggningsrekke"]
|
|
691
|
+
},
|
|
692
|
+
"byggningsrekke-3-blaa.svg": {
|
|
693
|
+
"categories": ["Bygg"],
|
|
694
|
+
"tags": ["byggninger", "by", "hus", "byggningsrekke"]
|
|
695
|
+
},
|
|
696
|
+
"debatt.svg": {
|
|
697
|
+
"categories": ["Mennesker", "Visjon"],
|
|
698
|
+
"tags": [
|
|
699
|
+
"paneldebatt",
|
|
700
|
+
"diskusjon",
|
|
701
|
+
"samtale",
|
|
702
|
+
"mennesker",
|
|
703
|
+
"personer",
|
|
704
|
+
"gruppe"
|
|
705
|
+
]
|
|
706
|
+
},
|
|
707
|
+
"egg.svg": {
|
|
708
|
+
"categories": ["Mat"],
|
|
709
|
+
"tags": ["egg"]
|
|
710
|
+
},
|
|
711
|
+
"flagg-aaland.svg": {
|
|
712
|
+
"categories": ["Flagg"],
|
|
713
|
+
"tags": ["flagg", "Åland"]
|
|
714
|
+
},
|
|
715
|
+
"flagg-danmark.svg": {
|
|
716
|
+
"categories": ["Flagg"],
|
|
717
|
+
"tags": ["flagg", "Danmark"]
|
|
718
|
+
},
|
|
719
|
+
"flagg-faeroyene.svg": {
|
|
720
|
+
"categories": ["Flagg"],
|
|
721
|
+
"tags": ["flagg", "Færøyene"]
|
|
722
|
+
},
|
|
723
|
+
"flagg-finland.svg": {
|
|
724
|
+
"categories": ["Flagg"],
|
|
725
|
+
"tags": ["flagg", "Finland"]
|
|
726
|
+
},
|
|
727
|
+
"flagg-gronland.svg": {
|
|
728
|
+
"categories": ["Flagg"],
|
|
729
|
+
"tags": ["flagg", "Grønland"]
|
|
730
|
+
},
|
|
731
|
+
"flagg-island.svg": {
|
|
732
|
+
"categories": ["Flagg"],
|
|
733
|
+
"tags": ["flagg", "Island"]
|
|
734
|
+
},
|
|
735
|
+
"flagg-norge.svg": {
|
|
736
|
+
"categories": ["Flagg"],
|
|
737
|
+
"tags": ["flagg", "Norge"]
|
|
738
|
+
},
|
|
739
|
+
"flagg-sapmi.svg": {
|
|
740
|
+
"categories": ["Flagg"],
|
|
741
|
+
"tags": ["flagg", "Sapmi"]
|
|
742
|
+
},
|
|
743
|
+
"flagg-sverige.svg": {
|
|
744
|
+
"categories": ["Flagg"],
|
|
745
|
+
"tags": ["flagg", "Sverige"]
|
|
746
|
+
},
|
|
747
|
+
"forstorrelsesglass.svg": {
|
|
748
|
+
"categories": ["Utstyr"],
|
|
749
|
+
"tags": ["forstørrelsesglass", "lupe"]
|
|
750
|
+
},
|
|
751
|
+
"hengelas.svg": {
|
|
752
|
+
"categories": ["Utstyr"],
|
|
753
|
+
"tags": ["hengelås", "nøkkel"]
|
|
754
|
+
},
|
|
755
|
+
"kompass.svg": {
|
|
756
|
+
"categories": ["Utstyr"],
|
|
757
|
+
"tags": ["kompass"]
|
|
758
|
+
},
|
|
759
|
+
"skinke.svg": {
|
|
760
|
+
"categories": ["Mat"],
|
|
761
|
+
"tags": ["skinke", "kjøtt"]
|
|
762
|
+
},
|
|
763
|
+
"system-stotte.svg": {
|
|
764
|
+
"categories": ["Utstyr"],
|
|
765
|
+
"tags": ["systemstøtte", "støttesystem"]
|
|
766
|
+
},
|
|
767
|
+
"system.svg": {
|
|
768
|
+
"categories": ["Utstyr"],
|
|
769
|
+
"tags": ["system"]
|
|
631
770
|
}
|
|
632
771
|
}
|
package/mtds/index.d.ts
CHANGED
package/mtds/index.iife.js
CHANGED
|
@@ -5,17 +5,17 @@ var mtds=function(O){"use strict";var ts=Object.defineProperty,tn=Object.getOwnP
|
|
|
5
5
|
::slotted(del) { text-decoration: none }
|
|
6
6
|
::slotted(data:not([hidden])) { display: inline-block; pointer-events: none }
|
|
7
7
|
::slotted(data)::after { content: '\\00D7'; content: '\\00D7' / ''; padding-inline: .5ch; pointer-events: auto; cursor: pointer }
|
|
8
|
-
::slotted(data:focus) { ${as} }`,ln="beforeinput,blur,focus,click,input,keydown,mousedown",cn={once:!0,passive:!0},Dt="false",gs=is&&!nn,bs=nn||ss,dn="".repeat(5),un="deleteContentBackward",vs="insertText",Nt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ge=class extends rs{constructor(){super(),this._item="",this._speak="",this._texts=os({},Nt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Pt("slot"),Pt("style",ms))}static get observedAttributes(){return Object.keys(Nt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ds(this),Ot(this,ln,this,!0),fe(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ht,0,this),setTimeout(Bt,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Nt[o]&&(this._texts[o]=n||Nt[o])}disconnectedCallback(){fe(this,!1),ls(this,ln,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;ve(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&_s(this),t.type==="click"&&xs(this,t),t.type==="focus"&&ys(this,t),t.type==="input"&&Es(this,t),t.type==="keydown"&&Ss(this,t),t.type==="mousedown"&&me(t),t.type==="mutation"&&Ht(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Dt)!==Dt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Dt)!==Dt}set creatable(t){x(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},nt=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},be=t=>t instanceof HTMLDataElement,ve=({control:t})=>t?.disabled||t?.readOnly||!1,Ht=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:l}=t;if(!a||!r)return;const c=ps(a),d=c.endsWith(dn)?x(a,"data-label"):c;x(a,"data-label",d);let u=`${d}${l?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const p=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)be(w)&&p.unshift(w);for(const w of y)be(w)&&p.push(w)}const h=l?p.length===1:p[0]===o;if(o&&h){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=be(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${nt(p[0])}, `,(bs||o===a)&&pe(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var M;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(M=w?.focus)==null||M.call(w),x(a,"inputmode",y),t._speak="",gs?Ot(t,"blur",()=>Ht(t),cn):setTimeout(Ht,100,t)},100)}let m=0;const g=t.querySelector("select"),_=ve(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[m],w=nt(b),E=b.value||w,M=`${t._speak}${w}, ${_}${++m} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",M),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",l?"":null);for(const b of[...g?.options||[]].slice(m))b.remove();!l&&m>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${l}`),x(a,"list",an(r)),x(a,"aria-label",`${t._speak}${u}${dn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",an(r)),x(r,"popover","manual"));const v=nt(s[0]);v!==t._item&&Bt(t),t._item=v,fn(t),pn(t),(n=fe(t))==null||n.takeRecords()},fn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||ve(t))},pn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:nt(s);x(s,"aria-label",n?`${n}${nt(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Bt=t=>{const{multiple:e,control:n,items:o}=t,i=nt(o[0]);!e&&n&&i!==n.value&&rn(n,i,i?vs:un)},ye=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:l}=t,c=((n=a?.value)==null?void 0:n.trim())||"",d=c.toLowerCase()||null;let u=[...i].find(h=>(x(h,"label")||nt(h)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(h=>h.selected)),e)return pn(t),u?pt(t,u,!1):s&&c?pt(t,{value:c},!1):(!l&&!c&&r[0]?pt(t,r[0]):Bt(t),pe(o.invalid));for(const h of i)h.selected=h===u},pt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Pt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),l={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Bt(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",l))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",l))}},ys=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),pe()},_s=t=>me()||setTimeout(ws,0,t),ws=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||ye(t),t._focus=void 0)},xs=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&rn(a,"",un),a?.focus();for(const l of r){const{top:c,right:d,bottom:u,left:p}=l.getBoundingClientRect();if(l.contains(i))return pt(t,l);if(o>=c&&o<=u&&n>=p&&n<=d)return l.focus()}i===t&&a?.focus()},Es=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const l of o)if(l.value&&l.value===a)return pt(t,l,s)}else s||ye(t,!1);fn(t)},Ss=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:l}=e,c=i&&i===l,d=c&&i?.selectionEnd;let u=c?s.length:[...s].indexOf(l);if(c&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=-1,o.focus(),Ot(o,"blur",()=>x(o,"tabindex",null),cn)),!(!c&&cs(e)||u===-1)){if(a==="ArrowRight"&&!c)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&c){const p=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",p)),ye(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return pt(t,s[u]);c&&(u-=1)}else return c||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};fs.define("u-combobox",ge);var _e=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ts=_e&&/android/i.test(navigator.userAgent),hn;_e&&/^Mac/i.test(((hn=navigator.userAgentData)==null?void 0:hn.platform)||navigator.platform);var Cs=`${Ts?"data":"aria"}-labelledby`,we=":host(:not([hidden])) { display: block }",jt=typeof HTMLElement>"u"?class{}:HTMLElement;function A(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var mn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},$s=(t,...e)=>mn("add",t,e),ks=(t,...e)=>mn("remove",t,e),Ft=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(yn("slot"),yn("style",e)),Ut=new WeakMap,gn=(t,e)=>{if(e===void 0)return Ut.get(t);try{Ut.get(t).disconnect(),Ut.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Ut.set(t,n)}},As=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},bn=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ls=0,vn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ls).toString(32)}`),t.id):"",yn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Vt={define:(t,e)=>!_e||window.customElements.get(t)||window.customElements.define(t,e)},Is=we,Ms=we,Os=we,Rs=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',qt="aria-controls",ht="aria-selected",_n=class extends jt{constructor(){super(),Ft(this,Is)}get tabList(){return zt("u-tablist",this)[0]||null}get selectedIndex(){return Wt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}get tabs(){return zt("u-tab",this)}get panels(){return zt("u-tabpanel",this)}},wn=class extends jt{constructor(){super(),Ft(this,Ms)}connectedCallback(){A(this,"role","tablist"),$s(this,"click,keydown",this),gn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){ks(this,"click,keydown",this),gn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Se(n[o]),t.type==="keydown"&&!As(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=Wt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return Wt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}},xe=!1,xn=class extends jt{static get observedAttributes(){return["id",ht,qt]}constructor(){super(),Ft(this,Rs)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!xe&&this.selected&&this.tabList){xe=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=zt("u-tabpanel",this.tabsElement||this),n=Ee(this,e[t.indexOf(this)]);n&&A(n,Cs,vn(this)),t.forEach((o,i)=>{const s=Ee(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,qt,s?.id||null),s&&(s.hidden=s!==n)}),xe=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ee(this)}},En=class extends jt{static get observedAttributes(){return["hidden"]}constructor(){super(),Ft(this,Os)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Wt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Ps(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${qt}="${this.id}"]`;return bn(this).querySelectorAll(t)}},zt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ee=(t,e)=>{const n=A(t,qt)||vn(e),o=bn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Wt=t=>[...t].findIndex(e=>A(e,ht)==="true"),Se=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Ps=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Vt.define("u-tabs",_n),Vt.define("u-tablist",wn),Vt.define("u-tab",xn),Vt.define("u-tabpanel",En);const Ds="2.2.16",Sn="_alert_3aj69_1 _ds-alert_pxycd_3",Tn="_app_3aj69_1",Cn="_sticky_3aj69_1",$n="_avatar_3aj69_1 _ds-avatar_pxycd_1",kn="_badge_3aj69_1",An="_breadcrumbs_3aj69_1 _ds-breadcrumbs_pxycd_5",Ln="_button_3aj69_1 _ds-button_pxycd_1",In="_card_3aj69_1",Mn="_group_3aj69_1",On="_chip_3aj69_1 _ds-chip_pxycd_5",Rn="_details_3aj69_1 _ds-details_pxycd_3",Pn="_dialog_3aj69_1 _ds-dialog_pxycd_5",Dn="__drawer_3aj69_1",Nn="_divider_3aj69_1",Hn="_errorsummary_3aj69_1 _ds-error-summary_pxycd_5",Bn="__errorsummary_3aj69_1",jn="_field_3aj69_1 _ds-field_pxycd_1",Fn="__datalist_3aj69_1",Un="_affixes_3aj69_1 _ds-field-affixes_pxycd_3",Vn="_fieldset_3aj69_1 _ds-fieldset_pxycd_3",qn="_helptext_3aj69_1 _ds-focus_pxycd_1",zn="_input_3aj69_1 _ds-input_pxycd_1",Wn="_grid_3aj69_1",Gn="_flex_3aj69_1",Yn="_link_3aj69_1",Kn="_logo_3aj69_1",Xn="_pagination_3aj69_1 _ds-pagination_pxycd_5",Qn="_popover_3aj69_1",Jn="_progress_3aj69_1",Zn="__indeterminate_3aj69_1",to="_skeleton_3aj69_1 _ds-skeleton_pxycd_5",eo="__skeleton_3aj69_1",no="_spinner_3aj69_1",oo="_steps_3aj69_1",io="_table_3aj69_1 _ds-table_pxycd_5",so="__scrollShadow_3aj69_1",ao="_tabs_3aj69_1 _ds-tabs_pxycd_5",ro="__scrollMask_3aj69_1",lo="_tag_3aj69_1 _ds-tag_pxycd_5",co="_toast_3aj69_1",uo="__toastClose_3aj69_1",fo="__toastOpen_3aj69_1",po="__toastTimeout_3aj69_1",ho="_togglegroup_3aj69_1",mo="__tooltip_3aj69_1",go="_heading_3aj69_1 _ds-heading_pxycd_1",bo="_ingress_3aj69_1",vo="_muted_3aj69_1",yo="_info_3aj69_1",_o="_prose_3aj69_1",wo="_validation_3aj69_1 _ds-validation-message_pxycd_1",xo="_body_3aj69_173",Eo="__checked_3aj69_1",T={alert:Sn,app:Tn,sticky:Cn,avatar:$n,badge:kn,breadcrumbs:An,button:Ln,card:In,group:Mn,chip:On,details:Rn,dialog:Pn,_drawer:Dn,divider:Nn,errorsummary:Hn,_errorsummary:Bn,field:jn,_datalist:Fn,affixes:Un,fieldset:Vn,helptext:qn,input:zn,grid:Wn,flex:Gn,link:Yn,logo:Kn,pagination:Xn,popover:Qn,progress:Jn,_indeterminate:Zn,skeleton:to,_skeleton:eo,spinner:no,steps:oo,table:io,_scrollShadow:so,tabs:ao,_scrollMask:ro,tag:lo,toast:co,_toastClose:uo,_toastOpen:fo,_toastTimeout:po,togglegroup:ho,_tooltip:mo,heading:go,ingress:bo,muted:vo,info:yo,prose:_o,validation:wo,body:xo,_checked:Eo},Ns=Object.freeze(Object.defineProperty({__proto__:null,_checked:Eo,_datalist:Fn,_drawer:Dn,_errorsummary:Bn,_indeterminate:Zn,_scrollMask:ro,_scrollShadow:so,_skeleton:eo,_toastClose:uo,_toastOpen:fo,_toastTimeout:po,_tooltip:mo,affixes:Un,alert:Sn,app:Tn,avatar:$n,badge:kn,body:xo,breadcrumbs:An,button:Ln,card:In,chip:On,default:T,details:Rn,dialog:Pn,divider:Nn,errorsummary:Hn,field:jn,fieldset:Vn,flex:Gn,grid:Wn,group:Mn,heading:go,helptext:qn,info:yo,ingress:bo,input:zn,link:Yn,logo:Kn,muted:vo,pagination:Xn,popover:Qn,progress:Jn,prose:_o,skeleton:to,spinner:no,steps:oo,sticky:Cn,table:io,tabs:ao,tag:lo,toast:co,togglegroup:ho,validation:wo},Symbol.toStringTag,{value:"Module"})),mt=Math.min,R=Math.max,Gt=Math.round,Yt=Math.floor,V=t=>({x:t,y:t}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Bs={start:"end",end:"start"};function So(t,e,n){return R(t,mt(e,n))}function Kt(t,e){return typeof t=="function"?t(e):t}function ot(t){return t.split("-")[0]}function Xt(t){return t.split("-")[1]}function To(t){return t==="x"?"y":"x"}function Co(t){return t==="y"?"height":"width"}const js=new Set(["top","bottom"]);function Q(t){return js.has(ot(t))?"y":"x"}function $o(t){return To(Q(t))}function Fs(t,e,n){n===void 0&&(n=!1);const o=Xt(t),i=$o(t),s=Co(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qt(a)),[a,Qt(a)]}function Us(t){const e=Qt(t);return[Te(t),e,Te(e)]}function Te(t){return t.replace(/start|end/g,e=>Bs[e])}const ko=["left","right"],Ao=["right","left"],Vs=["top","bottom"],qs=["bottom","top"];function zs(t,e,n){switch(t){case"top":case"bottom":return n?e?Ao:ko:e?ko:Ao;case"left":case"right":return e?Vs:qs;default:return[]}}function Ws(t,e,n,o){const i=Xt(t);let s=zs(ot(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Te)))),s}function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Hs[e])}function Gs(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ys(t){return typeof t!="number"?Gs(t):{top:t,right:t,bottom:t,left:t}}function Jt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Lo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=$o(e),r=Co(a),l=ot(e),c=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[r]/2-i[r]/2;let h;switch(l){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(Xt(e)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1);break}return h}const Ks=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Lo(c,o,l),p=o,h={},m=0;for(let g=0;g<r.length;g++){const{name:_,fn:v}=r[g],{x:b,y,data:w,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,h={...h,[_]:{...h[_],...w}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Lo(c,p,l)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}};async function Ce(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Kt(e,t),m=Ys(h),_=r[p?u==="floating"?"reference":"floating":u],v=Jt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:l}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const Xs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,..._}=Kt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ot(i),b=Q(r),y=ot(r)===r,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(y||!g?[Qt(r)]:Us(r)),M=m!=="none";!p&&M&&E.push(...Ws(r,g,m,w));const W=[r,...E],ct=await Ce(e,_),dt=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&dt.push(ct[v]),u){const ut=Fs(i,a,w);dt.push(ct[ut[0]],ct[ut[1]])}if(X=[...X,{placement:i,overflows:dt}],!dt.every(ut=>ut<=0)){var At,Lt;const ut=(((At=s.flip)==null?void 0:At.index)||0)+1,Ze=W[ut];if(Ze&&(!(u==="alignment"?b!==Q(Ze):!1)||X.every(U=>Q(U.placement)===b?U.overflows[0]>0:!0)))return{data:{index:ut,overflows:X},reset:{placement:Ze}};let Mt=(Lt=X.filter(ft=>ft.overflows[0]<=0).sort((ft,U)=>ft.overflows[1]-U.overflows[1])[0])==null?void 0:Lt.placement;if(!Mt)switch(h){case"bestFit":{var It;const ft=(It=X.filter(U=>{if(M){const tt=Q(U.placement);return tt===b||tt==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(tt=>tt>0).reduce((tt,Cl)=>tt+Cl,0)]).sort((U,tt)=>U[1]-tt[1])[0])==null?void 0:It[0];ft&&(Mt=ft);break}case"initialPlacement":Mt=r;break}if(i!==Mt)return{reset:{placement:Mt}}}return{}}}},Qs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}},...l}=Kt(t,e),c={x:n,y:o},d=await Ce(e,l),u=Q(ot(i)),p=To(u);let h=c[p],m=c[u];if(s){const _=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=So(b,h,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=So(b,m,y)}const g=r.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},Js=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:l=()=>{},...c}=Kt(t,e),d=await Ce(e,c),u=ot(i),p=Xt(i),h=Q(i)==="y",{width:m,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=m-d.left-d.right,w=mt(g-d[_],b),E=mt(m-d[v],y),M=!e.middlewareData.shift;let W=w,ct=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(ct=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(W=b),M&&!p){const X=R(d.left,0),At=R(d.right,0),Lt=R(d.top,0),It=R(d.bottom,0);h?ct=m-2*(X!==0||At!==0?X+At:R(d.left,d.right)):W=g-2*(Lt!==0||It!==0?Lt+It:R(d.top,d.bottom))}await l({...e,availableWidth:ct,availableHeight:W});const dt=await a.getDimensions(r.floating);return m!==dt.width||g!==dt.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function gt(t){return Io(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Io(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Io(t){return Zt()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return Zt()?t instanceof Element||t instanceof P(t).Element:!1}function z(t){return Zt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Mo(t){return!Zt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const Zs=new Set(["inline","contents"]);function wt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Zs.has(i)}const ta=new Set(["table","td","th"]);function ea(t){return ta.has(gt(t))}const na=[":popover-open",":modal"];function te(t){return na.some(e=>{try{return t.matches(e)}catch{return!1}})}const oa=["transform","translate","scale","rotate","perspective"],ia=["transform","translate","scale","rotate","perspective","filter"],sa=["paint","layout","strict","content"];function $e(t){const e=ke(),n=H(t)?B(t):t;return oa.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ia.some(o=>(n.willChange||"").includes(o))||sa.some(o=>(n.contain||"").includes(o))}function aa(t){let e=J(t);for(;z(e)&&!bt(e);){if($e(e))return e;if(te(e))return null;e=J(e)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ra=new Set(["html","body","#document"]);function bt(t){return ra.has(gt(t))}function B(t){return P(t).getComputedStyle(t)}function ee(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(gt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mo(t)&&t.host||q(t);return Mo(e)?e.host:e}function Oo(t){const e=J(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&wt(e)?e:Oo(e)}function xt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Oo(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ae(a);return e.concat(a,a.visualViewport||[],wt(i)?i:[],r&&n?xt(r):[])}return e.concat(i,xt(i,[],n))}function Ae(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ro(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Gt(n)!==s||Gt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Le(t){return H(t)?t:t.contextElement}function vt(t){const e=Le(t);if(!z(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ro(e);let a=(s?Gt(n.width):n.width)/o,r=(s?Gt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const la=V(0);function Po(t){const e=P(t);return!ke()||!e.visualViewport?la:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ca(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Le(t);let a=V(1);e&&(o?H(o)&&(a=vt(o)):a=vt(t));const r=ca(s,n,o)?Po(s):V(0);let l=(i.left+r.x)/a.x,c=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const p=P(s),h=o&&H(o)?P(o):o;let m=p,g=Ae(m);for(;g&&o&&h!==m;){const _=vt(g),v=g.getBoundingClientRect(),b=B(g),y=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,w=v.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;l*=_.x,c*=_.y,d*=_.x,u*=_.y,l+=y,c+=w,m=P(g),g=Ae(m)}}return Jt({width:d,height:u,x:l,y:c})}function ne(t,e){const n=ee(t).scrollLeft;return e?e.left+n:it(q(t)).left+n}function Do(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ne(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function da(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=q(o),r=e?te(e.floating):!1;if(o===a||r&&s)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const d=V(0),u=z(o);if((u||!u&&!s)&&((gt(o)!=="body"||wt(a))&&(l=ee(o)),z(o))){const h=it(o);c=vt(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const p=a&&!u&&!s?Do(a,l):V(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function ua(t){return Array.from(t.getClientRects())}function fa(t){const e=q(t),n=ee(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ne(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const No=25;function pa(t,e){const n=P(t),o=q(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;const d=ke();(!d||d&&e==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const c=ne(o);if(c<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=No&&(s-=m)}else c<=No&&(s+=c);return{width:s,height:a,x:r,y:l}}const ha=new Set(["absolute","fixed"]);function ma(t,e){const n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=z(t)?vt(t):V(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,l=i*s.x,c=o*s.y;return{width:a,height:r,x:l,y:c}}function Ho(t,e,n){let o;if(e==="viewport")o=pa(t,n);else if(e==="document")o=fa(q(t));else if(H(e))o=ma(e,n);else{const i=Po(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Jt(o)}function Bo(t,e){const n=J(t);return n===e||!H(n)||bt(n)?!1:B(n).position==="fixed"||Bo(n,e)}function ga(t,e){const n=e.get(t);if(n)return n;let o=xt(t,[],!1).filter(r=>H(r)&>(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!bt(a);){const r=B(a),l=$e(a);!l&&r.position==="fixed"&&(i=null),(s?!l&&!i:!l&&r.position==="static"&&!!i&&ha.has(i.position)||wt(a)&&!l&&Bo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function ba(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?te(e)?[]:ga(e,this._c):[].concat(n),o],r=a[0],l=a.reduce((c,d)=>{const u=Ho(e,d,i);return c.top=R(u.top,c.top),c.right=mt(u.right,c.right),c.bottom=mt(u.bottom,c.bottom),c.left=R(u.left,c.left),c},Ho(e,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function va(t){const{width:e,height:n}=Ro(t);return{width:e,height:n}}function ya(t,e,n){const o=z(e),i=q(e),s=n==="fixed",a=it(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=ne(i)}if(o||!o&&!s)if((gt(e)!=="body"||wt(i))&&(r=ee(e)),o){const h=it(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();s&&!o&&i&&c();const d=i&&!o&&!s?Do(i,r):V(0),u=a.left+r.scrollLeft-l.x-d.x,p=a.top+r.scrollTop-l.y-d.y;return{x:u,y:p,width:a.width,height:a.height}}function Ie(t){return B(t).position==="static"}function jo(t,e){if(!z(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function Fo(t,e){const n=P(t);if(te(t))return n;if(!z(t)){let i=J(t);for(;i&&!bt(i);){if(H(i)&&!Ie(i))return i;i=J(i)}return n}let o=jo(t,e);for(;o&&ea(o)&&Ie(o);)o=jo(o,e);return o&&bt(o)&&Ie(o)&&!$e(o)?n:o||aa(t)||n}const _a=async function(t){const e=this.getOffsetParent||Fo,n=this.getDimensions,o=await n(t.floating);return{reference:ya(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wa(t){return B(t).direction==="rtl"}const xa={convertOffsetParentRelativeRectToViewportRelativeRect:da,getDocumentElement:q,getClippingRect:ba,getOffsetParent:Fo,getElementRects:_a,getClientRects:ua,getDimensions:va,getScale:vt,isElement:H,isRTL:wa};function Uo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ea(t,e){let n=null,o;const i=q(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(r||e(),!p||!h)return;const m=Yt(u),g=Yt(i.clientWidth-(d+p)),_=Yt(i.clientHeight-(u+h)),v=Yt(d),y={rootMargin:-m+"px "+-g+"px "+-_+"px "+-v+"px",threshold:R(0,mt(1,l))||1};let w=!0;function E(M){const W=M[0].intersectionRatio;if(W!==l){if(!w)return a();W?a(!1,W):o=setTimeout(()=>{a(!1,1e-7)},1e3)}W===1&&!Uo(c,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),s}function Sa(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Le(t),d=i||s?[...c?xt(c):[],...xt(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=c&&r?Ea(c,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let m,g=l?it(t):null;l&&_();function _(){const v=it(t);g&&!Uo(g,v)&&n(),g=v,m=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Vo=Qs,qo=Xs,Ta=Js,Ca=(t,e,n)=>{const o=new Map,i={platform:xa,...n},s={...i.platform,_c:o};return Ks(t,e,{...i,platform:s})};function zo(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=zo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function $a(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=zo(t))&&(o&&(o+=" "),o+=e);return o}const L={capture:!0,passive:!0},N=typeof window<"u"&&typeof document<"u";function ka(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function f(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let Aa=0;const La=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function oe(t){return t.id||(t.id=`${La}${++Aa}`),t.id}const Wo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},C=(t,...e)=>(Wo("add",t,e),()=>Go(t,...e)),Go=(t,...e)=>Wo("remove",t,e),D=t=>{if(!N||!window.requestAnimationFrame)return;window._mtdsCleanups||(window._mtdsCleanups=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsCleanups?.get(n)?.map(o=>o()),window._mtdsCleanups?.set(n,t())});document.readyState==="complete"?e():C(window,"load",e)},Me=new WeakMap,Ia=`.${T.dialog.split(" ")[0]}`;function st(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ia)?.querySelector(":scope > footer"),r=Number(f(t,"data-inset"))||20,c={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=f(t,"data-position")??"bottom";Me.set(t,Sa(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return st(t,!1);Ca(e,t,{...s,placement:i||d,middleware:[qo({padding:c}),Vo(),...n?[Ta({padding:c,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function at(t,...e){let n=0;const o=()=>setTimeout(i,200),i=()=>{t([],s),s.takeRecords(),n=0},s=new MutationObserver(()=>{n||(n=requestAnimationFrame(o))});return s.observe(document.documentElement,{attributeFilter:e,attributes:!0,childList:!0,subtree:!0}),()=>s.disconnect()}const Oe=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),$=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ma=typeof HTMLElement>"u"?class{}:HTMLElement,Oa=`.${T.breadcrumbs.split(" ")[0]}`,Ra=`.${T.card.split(" ")[0]}`,Yo=`.${T.chip.split(" ")[0]}`,Pa=`.${T.helptext.split(" ")[0]}`,Da=`.${T.pagination.split(" ")[0]}`,Na='summary,u-summary,a,button,[role="tab"],[role="button"]',Ha="click,toggle,submit,change",Re="mattilsynet.matomo.cloud",j="mtds-analytics-banner",Ba="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Ko(t,e={}){if(N){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Re}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&ja();const a=s?`https://cdn.matomo.cloud/${Re}/container_${s}.js`:`https://cdn.matomo.cloud/${Re}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append($("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics("${t}", `,e,")");if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function ja(){if(document.getElementById(j)||window.localStorage.getItem(j))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${j}" data-analytics="ignore"><style>
|
|
9
|
-
#${
|
|
10
|
-
#${
|
|
11
|
-
#${
|
|
12
|
-
#${
|
|
13
|
-
#${
|
|
14
|
-
#${
|
|
8
|
+
::slotted(data:focus) { ${as} }`,ln="beforeinput,blur,focus,click,input,keydown,mousedown",cn={once:!0,passive:!0},Dt="false",gs=is&&!nn,bs=nn||ss,dn="".repeat(5),un="deleteContentBackward",vs="insertText",Nt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ge=class extends rs{constructor(){super(),this._item="",this._speak="",this._texts=os({},Nt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Pt("slot"),Pt("style",ms))}static get observedAttributes(){return Object.keys(Nt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ds(this),Ot(this,ln,this,!0),fe(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ht,0,this),setTimeout(Bt,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Nt[o]&&(this._texts[o]=n||Nt[o])}disconnectedCallback(){fe(this,!1),ls(this,ln,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;ve(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&_s(this),t.type==="click"&&xs(this,t),t.type==="focus"&&ys(this,t),t.type==="input"&&Es(this,t),t.type==="keydown"&&Ss(this,t),t.type==="mousedown"&&me(t),t.type==="mutation"&&Ht(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Dt)!==Dt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Dt)!==Dt}set creatable(t){x(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},nt=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},be=t=>t instanceof HTMLDataElement,ve=({control:t})=>t?.disabled||t?.readOnly||!1,Ht=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=ps(a),d=l.endsWith(dn)?x(a,"data-label"):l;x(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const p=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)be(w)&&p.unshift(w);for(const w of y)be(w)&&p.push(w)}const h=c?p.length===1:p[0]===o;if(o&&h){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=be(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${nt(p[0])}, `,(bs||o===a)&&pe(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var M;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(M=w?.focus)==null||M.call(w),x(a,"inputmode",y),t._speak="",gs?Ot(t,"blur",()=>Ht(t),cn):setTimeout(Ht,100,t)},100)}let m=0;const g=t.querySelector("select"),_=ve(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[m],w=nt(b),E=b.value||w,M=`${t._speak}${w}, ${_}${++m} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",M),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",c?"":null);for(const b of[...g?.options||[]].slice(m))b.remove();!c&&m>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",an(r)),x(a,"aria-label",`${t._speak}${u}${dn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",an(r)),x(r,"popover","manual"));const v=nt(s[0]);v!==t._item&&Bt(t),t._item=v,fn(t),pn(t),(n=fe(t))==null||n.takeRecords()},fn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||ve(t))},pn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:nt(s);x(s,"aria-label",n?`${n}${nt(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Bt=t=>{const{multiple:e,control:n,items:o}=t,i=nt(o[0]);!e&&n&&i!==n.value&&rn(n,i,i?vs:un)},ye=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(h=>(x(h,"label")||nt(h)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(h=>h.selected)),e)return pn(t),u?pt(t,u,!1):s&&l?pt(t,{value:l},!1):(!c&&!l&&r[0]?pt(t,r[0]):Bt(t),pe(o.invalid));for(const h of i)h.selected=h===u},pt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Pt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Bt(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},ys=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),pe()},_s=t=>me()||setTimeout(ws,0,t),ws=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||ye(t),t._focus=void 0)},xs=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&rn(a,"",un),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:p}=c.getBoundingClientRect();if(c.contains(i))return pt(t,c);if(o>=l&&o<=u&&n>=p&&n<=d)return c.focus()}i===t&&a?.focus()},Es=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const c of o)if(c.value&&c.value===a)return pt(t,c,s)}else s||ye(t,!1);fn(t)},Ss=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=-1,o.focus(),Ot(o,"blur",()=>x(o,"tabindex",null),cn)),!(!l&&cs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const p=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",p)),ye(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return pt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};fs.define("u-combobox",ge);var _e=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ks=_e&&/android/i.test(navigator.userAgent),hn;_e&&/^Mac/i.test(((hn=navigator.userAgentData)==null?void 0:hn.platform)||navigator.platform);var Ts=`${ks?"data":"aria"}-labelledby`,we=":host(:not([hidden])) { display: block }",Ft=typeof HTMLElement>"u"?class{}:HTMLElement;function A(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var mn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Cs=(t,...e)=>mn("add",t,e),$s=(t,...e)=>mn("remove",t,e),Ut=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(yn("slot"),yn("style",e)),Vt=new WeakMap,gn=(t,e)=>{if(e===void 0)return Vt.get(t);try{Vt.get(t).disconnect(),Vt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Vt.set(t,n)}},As=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},bn=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ls=0,vn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ls).toString(32)}`),t.id):"",yn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},qt={define:(t,e)=>!_e||window.customElements.get(t)||window.customElements.define(t,e)},Is=we,Ms=we,Os=we,Rs=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',zt="aria-controls",ht="aria-selected",_n=class extends Ft{constructor(){super(),Ut(this,Is)}get tabList(){return Wt("u-tablist",this)[0]||null}get selectedIndex(){return jt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}get tabs(){return Wt("u-tab",this)}get panels(){return Wt("u-tabpanel",this)}},wn=class extends Ft{constructor(){super(),Ut(this,Ms)}connectedCallback(){A(this,"role","tablist"),Cs(this,"click,keydown",this),gn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){$s(this,"click,keydown",this),gn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Se(n[o]),t.type==="keydown"&&!As(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=jt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return jt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}},xe=!1,xn=class extends Ft{static get observedAttributes(){return["id",ht,zt]}constructor(){super(),Ut(this,Rs)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!xe&&this.selected&&this.tabList){xe=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Wt("u-tabpanel",this.tabsElement||this),n=Ee(this,e[t.indexOf(this)]);n&&A(n,Ts,vn(this)),t.forEach((o,i)=>{const s=Ee(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,zt,s?.id||null),s&&(s.hidden=s!==n)}),xe=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ee(this)}},En=class extends Ft{static get observedAttributes(){return["hidden"]}constructor(){super(),Ut(this,Os)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=jt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Ps(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${zt}="${this.id}"]`;return bn(this).querySelectorAll(t)}},Wt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ee=(t,e)=>{const n=A(t,zt)||vn(e),o=bn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},jt=t=>[...t].findIndex(e=>A(e,ht)==="true"),Se=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Ps=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');qt.define("u-tabs",_n),qt.define("u-tablist",wn),qt.define("u-tab",xn),qt.define("u-tabpanel",En);const Ds="2.2.18",Sn="_alert_1akns_1 _ds-alert_pxycd_3",kn="_app_1akns_1",Tn="_sticky_1akns_1",Cn="_avatar_1akns_1 _ds-avatar_pxycd_1",$n="_badge_1akns_1",An="_breadcrumbs_1akns_1 _ds-breadcrumbs_pxycd_5",Ln="_button_1akns_1 _ds-button_pxycd_1",In="_card_1akns_1",Mn="_group_1akns_1",On="_chip_1akns_1 _ds-chip_pxycd_5",Rn="_details_1akns_1 _ds-details_pxycd_3",Pn="_dialog_1akns_1 _ds-dialog_pxycd_5",Dn="__drawer_1akns_1",Nn="_divider_1akns_1",Hn="_errorsummary_1akns_1 _ds-error-summary_pxycd_5",Bn="__errorsummary_1akns_1",Fn="_field_1akns_1 _ds-field_pxycd_1",Un="__datalist_1akns_1",Vn="_affixes_1akns_1 _ds-field-affixes_pxycd_3",qn="_fieldset_1akns_1 _ds-fieldset_pxycd_3",zn="_fileupload_1akns_1",Wn="_helptext_1akns_1 _ds-focus_pxycd_1",jn="_input_1akns_1 _ds-input_pxycd_1",Gn="_grid_1akns_1",Yn="_flex_1akns_1",Kn="_link_1akns_1",Xn="_logo_1akns_1",Qn="_pagination_1akns_1 _ds-pagination_pxycd_5",Jn="_popover_1akns_1",Zn="_progress_1akns_1",to="__indeterminate_1akns_1",eo="_skeleton_1akns_1 _ds-skeleton_pxycd_5",no="__skeleton_1akns_1",oo="_spinner_1akns_1",io="_steps_1akns_1",so="_table_1akns_1 _ds-table_pxycd_5",ao="__scrollShadow_1akns_1",ro="_tabs_1akns_1 _ds-tabs_pxycd_5",lo="__scrollMask_1akns_1",co="_tag_1akns_1 _ds-tag_pxycd_5",uo="_toast_1akns_1",fo="__toastClose_1akns_1",po="__toastOpen_1akns_1",ho="__toastTimeout_1akns_1",mo="_togglegroup_1akns_1",go="__tooltip_1akns_1",bo="_heading_1akns_1 _ds-heading_pxycd_1",vo="_ingress_1akns_1",yo="_muted_1akns_1",_o="_info_1akns_1",wo="_prose_1akns_1",xo="_validation_1akns_1 _ds-validation-message_pxycd_1",Eo="_body_1akns_168",So="__checked_1akns_1",k={alert:Sn,app:kn,sticky:Tn,avatar:Cn,badge:$n,breadcrumbs:An,button:Ln,card:In,group:Mn,chip:On,details:Rn,dialog:Pn,_drawer:Dn,divider:Nn,errorsummary:Hn,_errorsummary:Bn,field:Fn,_datalist:Un,affixes:Vn,fieldset:qn,fileupload:zn,helptext:Wn,input:jn,grid:Gn,flex:Yn,link:Kn,logo:Xn,pagination:Qn,popover:Jn,progress:Zn,_indeterminate:to,skeleton:eo,_skeleton:no,spinner:oo,steps:io,table:so,_scrollShadow:ao,tabs:ro,_scrollMask:lo,tag:co,toast:uo,_toastClose:fo,_toastOpen:po,_toastTimeout:ho,togglegroup:mo,_tooltip:go,heading:bo,ingress:vo,muted:yo,info:_o,prose:wo,validation:xo,body:Eo,_checked:So},Ns=Object.freeze(Object.defineProperty({__proto__:null,_checked:So,_datalist:Un,_drawer:Dn,_errorsummary:Bn,_indeterminate:to,_scrollMask:lo,_scrollShadow:ao,_skeleton:no,_toastClose:fo,_toastOpen:po,_toastTimeout:ho,_tooltip:go,affixes:Vn,alert:Sn,app:kn,avatar:Cn,badge:$n,body:Eo,breadcrumbs:An,button:Ln,card:In,chip:On,default:k,details:Rn,dialog:Pn,divider:Nn,errorsummary:Hn,field:Fn,fieldset:qn,fileupload:zn,flex:Yn,grid:Gn,group:Mn,heading:bo,helptext:Wn,info:_o,ingress:vo,input:jn,link:Kn,logo:Xn,muted:yo,pagination:Qn,popover:Jn,progress:Zn,prose:wo,skeleton:eo,spinner:oo,steps:io,sticky:Tn,table:so,tabs:ro,tag:co,toast:uo,togglegroup:mo,validation:xo},Symbol.toStringTag,{value:"Module"})),mt=Math.min,R=Math.max,Gt=Math.round,Yt=Math.floor,q=t=>({x:t,y:t}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Bs={start:"end",end:"start"};function ko(t,e,n){return R(t,mt(e,n))}function Kt(t,e){return typeof t=="function"?t(e):t}function ot(t){return t.split("-")[0]}function Xt(t){return t.split("-")[1]}function To(t){return t==="x"?"y":"x"}function Co(t){return t==="y"?"height":"width"}const Fs=new Set(["top","bottom"]);function Q(t){return Fs.has(ot(t))?"y":"x"}function $o(t){return To(Q(t))}function Us(t,e,n){n===void 0&&(n=!1);const o=Xt(t),i=$o(t),s=Co(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qt(a)),[a,Qt(a)]}function Vs(t){const e=Qt(t);return[ke(t),e,ke(e)]}function ke(t){return t.replace(/start|end/g,e=>Bs[e])}const Ao=["left","right"],Lo=["right","left"],qs=["top","bottom"],zs=["bottom","top"];function Ws(t,e,n){switch(t){case"top":case"bottom":return n?e?Lo:Ao:e?Ao:Lo;case"left":case"right":return e?qs:zs;default:return[]}}function js(t,e,n,o){const i=Xt(t);let s=Ws(ot(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(ke)))),s}function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Hs[e])}function Gs(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ys(t){return typeof t!="number"?Gs(t):{top:t,right:t,bottom:t,left:t}}function Jt(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Io(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=$o(e),r=Co(a),c=ot(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[r]/2-i[r]/2;let h;switch(c){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(Xt(e)){case"start":h[a]-=p*(n&&l?-1:1);break;case"end":h[a]+=p*(n&&l?-1:1);break}return h}const Ks=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Io(l,o,c),p=o,h={},m=0;for(let g=0;g<r.length;g++){const{name:_,fn:v}=r[g],{x:b,y,data:w,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:p,strategy:i,middlewareData:h,rects:l,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,h={...h,[_]:{...h[_],...w}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Io(l,p,c)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}};async function Te(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Kt(e,t),m=Ys(h),_=r[p?u==="floating"?"reference":"floating":u],v=Jt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:c}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const Xs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,..._}=Kt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ot(i),b=Q(r),y=ot(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=p||(y||!g?[Qt(r)]:Vs(r)),M=m!=="none";!p&&M&&E.push(...js(r,g,m,w));const j=[r,...E],ct=await Te(e,_),dt=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&dt.push(ct[v]),u){const ut=Us(i,a,w);dt.push(ct[ut[0]],ct[ut[1]])}if(X=[...X,{placement:i,overflows:dt}],!dt.every(ut=>ut<=0)){var At,Lt;const ut=(((At=s.flip)==null?void 0:At.index)||0)+1,Ze=j[ut];if(Ze&&(!(u==="alignment"?b!==Q(Ze):!1)||X.every(V=>Q(V.placement)===b?V.overflows[0]>0:!0)))return{data:{index:ut,overflows:X},reset:{placement:Ze}};let Mt=(Lt=X.filter(ft=>ft.overflows[0]<=0).sort((ft,V)=>ft.overflows[1]-V.overflows[1])[0])==null?void 0:Lt.placement;if(!Mt)switch(h){case"bestFit":{var It;const ft=(It=X.filter(V=>{if(M){const tt=Q(V.placement);return tt===b||tt==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(tt=>tt>0).reduce((tt,Cl)=>tt+Cl,0)]).sort((V,tt)=>V[1]-tt[1])[0])==null?void 0:It[0];ft&&(Mt=ft);break}case"initialPlacement":Mt=r;break}if(i!==Mt)return{reset:{placement:Mt}}}return{}}}},Qs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}},...c}=Kt(t,e),l={x:n,y:o},d=await Te(e,c),u=Q(ot(i)),p=To(u);let h=l[p],m=l[u];if(s){const _=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=ko(b,h,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=ko(b,m,y)}const g=r.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},Js=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Kt(t,e),d=await Te(e,l),u=ot(i),p=Xt(i),h=Q(i)==="y",{width:m,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=m-d.left-d.right,w=mt(g-d[_],b),E=mt(m-d[v],y),M=!e.middlewareData.shift;let j=w,ct=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(ct=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(j=b),M&&!p){const X=R(d.left,0),At=R(d.right,0),Lt=R(d.top,0),It=R(d.bottom,0);h?ct=m-2*(X!==0||At!==0?X+At:R(d.left,d.right)):j=g-2*(Lt!==0||It!==0?Lt+It:R(d.top,d.bottom))}await c({...e,availableWidth:ct,availableHeight:j});const dt=await a.getDimensions(r.floating);return m!==dt.width||g!==dt.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function gt(t){return Mo(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function z(t){var e;return(e=(Mo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Mo(t){return Zt()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return Zt()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return Zt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Oo(t){return!Zt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const Zs=new Set(["inline","contents"]);function wt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Zs.has(i)}const ta=new Set(["table","td","th"]);function ea(t){return ta.has(gt(t))}const na=[":popover-open",":modal"];function te(t){return na.some(e=>{try{return t.matches(e)}catch{return!1}})}const oa=["transform","translate","scale","rotate","perspective"],ia=["transform","translate","scale","rotate","perspective","filter"],sa=["paint","layout","strict","content"];function Ce(t){const e=$e(),n=H(t)?B(t):t;return oa.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||ia.some(o=>(n.willChange||"").includes(o))||sa.some(o=>(n.contain||"").includes(o))}function aa(t){let e=J(t);for(;W(e)&&!bt(e);){if(Ce(e))return e;if(te(e))return null;e=J(e)}return null}function $e(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ra=new Set(["html","body","#document"]);function bt(t){return ra.has(gt(t))}function B(t){return P(t).getComputedStyle(t)}function ee(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(gt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Oo(t)&&t.host||z(t);return Oo(e)?e.host:e}function Ro(t){const e=J(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&wt(e)?e:Ro(e)}function xt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Ro(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ae(a);return e.concat(a,a.visualViewport||[],wt(i)?i:[],r&&n?xt(r):[])}return e.concat(i,xt(i,[],n))}function Ae(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Po(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=W(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Gt(n)!==s||Gt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Le(t){return H(t)?t:t.contextElement}function vt(t){const e=Le(t);if(!W(e))return q(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Po(e);let a=(s?Gt(n.width):n.width)/o,r=(s?Gt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const la=q(0);function Do(t){const e=P(t);return!$e()||!e.visualViewport?la:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ca(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Le(t);let a=q(1);e&&(o?H(o)&&(a=vt(o)):a=vt(t));const r=ca(s,n,o)?Do(s):q(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const p=P(s),h=o&&H(o)?P(o):o;let m=p,g=Ae(m);for(;g&&o&&h!==m;){const _=vt(g),v=g.getBoundingClientRect(),b=B(g),y=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,w=v.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=y,l+=w,m=P(g),g=Ae(m)}}return Jt({width:d,height:u,x:c,y:l})}function ne(t,e){const n=ee(t).scrollLeft;return e?e.left+n:it(z(t)).left+n}function No(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ne(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function da(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=z(o),r=e?te(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=q(1);const d=q(0),u=W(o);if((u||!u&&!s)&&((gt(o)!=="body"||wt(a))&&(c=ee(o)),W(o))){const h=it(o);l=vt(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const p=a&&!u&&!s?No(a,c):q(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+p.x,y:n.y*l.y-c.scrollTop*l.y+d.y+p.y}}function ua(t){return Array.from(t.getClientRects())}function fa(t){const e=z(t),n=ee(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ne(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Ho=25;function pa(t,e){const n=P(t),o=z(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=$e();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=ne(o);if(l<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=Ho&&(s-=m)}else l<=Ho&&(s+=l);return{width:s,height:a,x:r,y:c}}const ha=new Set(["absolute","fixed"]);function ma(t,e){const n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?vt(t):q(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function Bo(t,e,n){let o;if(e==="viewport")o=pa(t,n);else if(e==="document")o=fa(z(t));else if(H(e))o=ma(e,n);else{const i=Do(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Jt(o)}function Fo(t,e){const n=J(t);return n===e||!H(n)||bt(n)?!1:B(n).position==="fixed"||Fo(n,e)}function ga(t,e){const n=e.get(t);if(n)return n;let o=xt(t,[],!1).filter(r=>H(r)&>(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!bt(a);){const r=B(a),c=Ce(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&ha.has(i.position)||wt(a)&&!c&&Fo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function ba(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?te(e)?[]:ga(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=Bo(e,d,i);return l.top=R(u.top,l.top),l.right=mt(u.right,l.right),l.bottom=mt(u.bottom,l.bottom),l.left=R(u.left,l.left),l},Bo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function va(t){const{width:e,height:n}=Po(t);return{width:e,height:n}}function ya(t,e,n){const o=W(e),i=z(e),s=n==="fixed",a=it(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=q(0);function l(){c.x=ne(i)}if(o||!o&&!s)if((gt(e)!=="body"||wt(i))&&(r=ee(e)),o){const h=it(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?No(i,r):q(0),u=a.left+r.scrollLeft-c.x-d.x,p=a.top+r.scrollTop-c.y-d.y;return{x:u,y:p,width:a.width,height:a.height}}function Ie(t){return B(t).position==="static"}function Uo(t,e){if(!W(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return z(t)===n&&(n=n.ownerDocument.body),n}function Vo(t,e){const n=P(t);if(te(t))return n;if(!W(t)){let i=J(t);for(;i&&!bt(i);){if(H(i)&&!Ie(i))return i;i=J(i)}return n}let o=Uo(t,e);for(;o&&ea(o)&&Ie(o);)o=Uo(o,e);return o&&bt(o)&&Ie(o)&&!Ce(o)?n:o||aa(t)||n}const _a=async function(t){const e=this.getOffsetParent||Vo,n=this.getDimensions,o=await n(t.floating);return{reference:ya(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wa(t){return B(t).direction==="rtl"}const xa={convertOffsetParentRelativeRectToViewportRelativeRect:da,getDocumentElement:z,getClippingRect:ba,getOffsetParent:Vo,getElementRects:_a,getClientRects:ua,getDimensions:va,getScale:vt,isElement:H,isRTL:wa};function qo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ea(t,e){let n=null,o;const i=z(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=l;if(r||e(),!p||!h)return;const m=Yt(u),g=Yt(i.clientWidth-(d+p)),_=Yt(i.clientHeight-(u+h)),v=Yt(d),y={rootMargin:-m+"px "+-g+"px "+-_+"px "+-v+"px",threshold:R(0,mt(1,c))||1};let w=!0;function E(M){const j=M[0].intersectionRatio;if(j!==c){if(!w)return a();j?a(!1,j):o=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!qo(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),s}function Sa(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Le(t),d=i||s?[...l?xt(l):[],...xt(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?Ea(l,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(e)})),n()}),l&&!c&&h.observe(l),h.observe(e));let m,g=c?it(t):null;c&&_();function _(){const v=it(t);g&&!qo(g,v)&&n(),g=v,m=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(m)}}const zo=Qs,Wo=Xs,ka=Js,Ta=(t,e,n)=>{const o=new Map,i={platform:xa,...n},s={...i.platform,_c:o};return Ks(t,e,{...i,platform:s})};function jo(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=jo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Ca(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=jo(t))&&(o&&(o+=" "),o+=e);return o}const L={capture:!0,passive:!0},N=typeof window<"u"&&typeof document<"u";function $a(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function f(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let Aa=0;const La=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function oe(t){return t.id||(t.id=`${La}${++Aa}`),t.id}const Go=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},T=(t,...e)=>(Go("add",t,e),()=>Yo(t,...e)),Yo=(t,...e)=>Go("remove",t,e),D=t=>{if(!N||!window.requestAnimationFrame)return;window._mtdsCleanups||(window._mtdsCleanups=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsCleanups?.get(n)?.map(o=>o()),window._mtdsCleanups?.set(n,t())});document.readyState==="complete"?e():T(window,"load",e)},Me=new WeakMap,Ia=`.${k.dialog.split(" ")[0]}`;function st(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ia)?.querySelector(":scope > footer"),r=Number(f(t,"data-inset"))||20,l={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=f(t,"data-position")??"bottom";Me.set(t,Sa(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return st(t,!1);Ta(e,t,{...s,placement:i||d,middleware:[Wo({padding:l}),zo(),...n?[ka({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function at(t,...e){let n=0;const o=()=>setTimeout(i,200),i=()=>{t([],s),s.takeRecords(),n=0},s=new MutationObserver(()=>{n||(n=requestAnimationFrame(o))});return s.observe(document.documentElement,{attributeFilter:e,attributes:!0,childList:!0,subtree:!0}),()=>s.disconnect()}const Oe=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),C=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ma=typeof HTMLElement>"u"?class{}:HTMLElement,Oa=`.${k.breadcrumbs.split(" ")[0]}`,Ra=`.${k.card.split(" ")[0]}`,Ko=`.${k.chip.split(" ")[0]}`,Pa=`.${k.helptext.split(" ")[0]}`,Da=`.${k.pagination.split(" ")[0]}`,Na='summary,u-summary,a,button,[role="tab"],[role="button"]',Ha="click,toggle,submit,change",Re="mattilsynet.matomo.cloud",F="mtds-analytics-banner",Ba="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Xo(t,e={}){if(N){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Re}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&Fa();const a=s?`https://cdn.matomo.cloud/${Re}/container_${s}.js`:`https://cdn.matomo.cloud/${Re}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(C("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function Fa(){if(document.getElementById(F)||window.localStorage.getItem(F))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${F}" data-analytics="ignore"><style>
|
|
9
|
+
#${F}[open] { box-sizing: border-box; display: flex; align-items: center; background: #116e6b; border-radius: .5em; border: 0; box-shadow: 0 .25em .5em rgba(0,0,0,.3); color: #fff; font-size: .875em; inset: auto auto 1em 1em; max-width: calc(100vw - 2em); outline: 0; padding: .5em; position: fixed; z-index: 99999 }
|
|
10
|
+
#${F} button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 1.5em; height: 1.5em; font: 300 1.5em/1.35 sans-serif; border-radius: .25em; place-content: center; transition: .2s; transition-property: background, scale }
|
|
11
|
+
#${F} button:focus-visible { outline: 2px solid }
|
|
12
|
+
#${F} button:hover { background: #0a4e4f }
|
|
13
|
+
#${F} button:active { background: #054449; scale: .9 }
|
|
14
|
+
#${F} p { margin: 0 .25em }
|
|
15
15
|
</style>
|
|
16
16
|
<p>Vi bruker <a href="${Ba}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
|
|
17
17
|
<form method="dialog" data-analytics="ignore"><button type="submit" aria-label="OK">×</button></form>
|
|
18
|
-
</dialog>`);const e=document.getElementById(
|
|
18
|
+
</dialog>`);const e=document.getElementById(F),n=()=>window.localStorage.setItem(F,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function Ua(t){window._mtdsTracking?.enabled&&setTimeout(Va,0,t)}function Va({type:t,target:e}){const n=t==="click"?e?.closest?.(Na):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=Qo(n)||Wa(n)||f(n,"data-tooltip")||"";if(t==="submit")i="Form",o="submit",s=s||document.title;else if(t==="toggle"){if(!n.matches("dialog:modal"))return;i="Dialog",o="open"}else if(t==="change"){const a=f(n,"type"),r=a==="checkbox"||a==="radio"?n.closest("fieldset"):null;i=n.closest(Ko)?"Chip":"Form",o="change",s=Qo(r||n)||Et(r?.querySelector("legend"))||Et(n?.labels?.[0])}else if(f(n,"role")==="tab")i="Tab",o="navigate";else if(f(n,"popovertarget")){if(!qa(n)?.matches(":popover-open"))return;i=n.closest(Pa)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(f(n,"data-command")==="toggle-app-expanded"){const a=za(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",s=a&&f(n,"data-tooltip")||Et(n)}else if(n.closest(Oa))i="Breadcrumbs",o="navigate";else if(n.closest(Da))i="Pagintation",o="navigate";else if(n.closest(Ra))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(Ko))i="Chip",o=n.hasAttribute("data-removable")?"remove":"click";else if(n.closest("th[aria-sort]"))i="Table",o="sort";else if(n instanceof HTMLAnchorElement)i="Link",o=n.protocol==="mailto:"?"email":"navigate",n.hasAttribute("download")?o="download":n.hash&&n.href.startsWith(location.href.split("#")[0])&&(o="anchor");else if(n.hasAttribute("aria-expanded")){if(f(n,"aria-expanded")!=="true")return;i="Expand",o="open"}Xo("event",{category:f(n,"data-analytics-category")??i,action:f(n,"data-analytics-action")??o,name:f(n,"data-analytics-name")??s})}const Et=t=>t?.textContent?.trim()||"",Qo=t=>t&&f(t,"aria-label")||"",qa=t=>document.getElementById(f(t,"popovertarget")||""),za=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),Wa=t=>{const e=Et(t),n=Et(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};D(()=>[T(document,Ha,Ua,L)]),typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets&&(()=>{const t="--mtds-app-expanded",e=new CSSStyleSheet,n=()=>!window.localStorage.getItem(t)?.includes("false");document.adoptedStyleSheets.push(e),window.mtdsToggleAppExpanded=o=>{try{const i=o??!n();e.replaceSync?.(`:root { ${t}: var(${t}--${i})}`),window.localStorage.setItem(t,i)}catch{}},window.mtdsToggleAppExpanded(n())})();const Jo=k.app.split(" ")[0],ja=k.sticky.split(" ")[0],Ga='[data-command="toggle-app-expanded"]',Pe=`.${Jo} > dialog,.${Jo} dialog ~ main`,Zo=N?document.getElementsByClassName(ja):[],ti=t=>{document.startViewTransition?document.startViewTransition(t):t()},ei=t=>ti(()=>window.mtdsToggleAppExpanded?.(t));function Ya({target:t,defaultPrevented:e}){const n=t?.closest?.("a");if(n?.closest("dialog")&&n?.closest(Pe))return ni();if(e||!(t instanceof HTMLButtonElement)||!t.matches(Ga))return;getComputedStyle(t).position==="sticky"?ei():ti(()=>{const i=document.querySelector(Pe);i?.setAttribute("data-closedby","any"),i?.showModal()})}function ni(){document.querySelector(Pe)?.close()}let De=0,yt,G=0,Ne=0,ie=0,He=!1,Be=0,rt=0;function Ka(){if(!Zo?.length)return;const t=Zo[0],e=window.scrollY,n=e<rt;rt=e,n!==yt&&(De=(t.parentElement?.getBoundingClientRect().top||0)+rt,yt=n,Ne=t.offsetHeight,ie=t.getBoundingClientRect().top+rt,He=t.offsetHeight<=window.innerHeight,Be=window.innerHeight),!(G===-1&&He)&&(G!==-1&&(He||yt&&rt<=ie)?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top","0px"),G=-1):G===-1&&!yt?(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Math.max(0,rt-De)}px`),G=0):G!==1&&!yt&&rt+Be>=ie+Ne?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top",`${Be-Ne}px`),G=1):G===1&&yt&&(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${ie-De}px`),G=0))}D(()=>[T(document,"click",Ya,L),T(window,"resize",$a(ni,100),L),T(window,"scroll",Ka,L)]);const Xa=(t,e,n=Number.POSITIVE_INFINITY)=>{const o=(n-1)/2,i=Math.max(Math.min(t-Math.floor(o),e-n+1),1),s=Math.min(Math.max(t+Math.ceil(o),n),e),a=Array.from({length:s+1-i},(r,c)=>c+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&s<e&&a.splice(-2,2,0,e),a},Qa=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Xa(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function $(t,e={}){const n=document.getElementById(e.id||"")||C("dialog");return f(n,"aria-busy",e.busy?"true":null),f(n,"class",Ca(k.toast,e.className)),f(n,"data-closedby",e.closedby||null),f(n,"data-color",e.color||null),f(n,"data-icon",`${e.icon??""}`||null),f(n,"data-timeout",`${e.timeout??""}`||null),f(n,"id",e.id||`${Date.now()}`),f(n,"open",e.open===!1?null:""),n.innerHTML=t,n.addEventListener("animationend",Ja,{once:!0}),document.body.appendChild(n),n.id}function Ja({animationName:t,target:e}){t===k._toastClose&&e.remove()}$.success=(t,e)=>$(t,{color:"success",...e}),$.danger=(t,e)=>$(t,{color:"danger",...e}),$.info=(t,e)=>$(t,{color:"info",...e}),$.warning=(t,e)=>$(t,{color:"warning",...e}),$.neutral=(t,e)=>$(t,{color:"neutral",...e}),$.promise=async function(e,n){const{loading:o,success:i,error:s,...a}=n,r=$(o,{busy:!0,...a});try{const c=await e();return $.success(i,{id:r,busy:!1}),c}catch(c){throw $.danger(s,{id:r,busy:!1}),c}};const Za=k.breadcrumbs.split(" ")[0],oi=N?document.getElementsByClassName(Za):[];function tr(){if(oi)for(const t of oi)t.querySelectorAll("a").forEach((e,n,{length:o})=>{f(e,"aria-current",n===o-1?"page":null)})}D(()=>[at(tr,"class")]);const er=`:host(:not([hidden])) {
|
|
19
19
|
display: grid;
|
|
20
20
|
gap: var(--ds-size-6);
|
|
21
21
|
}
|
|
@@ -382,17 +382,17 @@ var mtds=function(O){"use strict";var ts=Object.defineProperty,tn=Object.getOwnP
|
|
|
382
382
|
:host([data-legend="none"]) .legends {
|
|
383
383
|
display: none;
|
|
384
384
|
}
|
|
385
|
-
`,nr=[.1,.2,.25,.5,1];function or(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((m,g,_)=>{const v=t.map(y=>y[_].number),b=v.reduce((y,w)=>y+w,0);return Math.max(m,...i?[b]:v)},0),a=s/10,r=10**`${Math.round(a)}`.length,l=a/r,c=(nr.find(m=>m>l)||1)*r,d=Math.ceil(s/c)*c,u=$("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure",style:`${e?`--mtdsc-chart-aspect: ${e};`:""} --bars: ${t[0]?.length-1}; --groups: ${t.length-1}; --total: ${d}`}),p=u.appendChild($("div",{class:"axisSteps"})),h=u.appendChild($("div",{class:"axisGroups"}));return Array.from({length:d/c+1},(m,g)=>ir(c*g)).reverse().map(m=>p.append($("div",{class:"axisStep","data-label":m}))),{total:d,groups:h,axis:u}}const ir=new Intl.NumberFormat().format;function sr(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=$("div",{class:"axisGroup","data-label":e}),s=i.appendChild($("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:r,number:l})=>s.appendChild($("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${r}; --value: ${l}`,tabindex:"0"}))),i})}function ar(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,s=$("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const r=$("div",{class:"lineContainer",role:"list",style:a[0].style}),l=rr(a.map(({number:u},p,{length:h})=>[100/(h-1)*p,100-u/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");f(c,"aria-hidden","true"),f(c,"preserveAspectRatio","none"),f(c,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(f(d,"class","line"),f(d,"d",l),f(d,"fill","none"),f(d,"stroke","currentColor"),o==="area"){const u=d.cloneNode(!0);f(u,"d",`M-100,100 L${l.slice(1)}L200,100`),f(u,"class","lineShade"),c.append(u)}a.forEach(({number:u,tooltip:p,event:h})=>{const m=$("div",{role:"listitem"});m.appendChild($("div",{"aria-label":p,"data-event":h,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),r.append(m)}),r.appendChild(c).append(d),s.append(r)}),s}const rr=(t,e)=>t.map(([n,o],i,s)=>i?lr(i,s,e):`M${n},${o}`).join(" "),oi=([t,e],[n,o])=>[t+n,e+o],ii=([t,e],[n,o])=>[t-n,e-o],si=(t,[e,n])=>[t*e,t*n],lr=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=oi(o,si(n,ii(i,e[t-2]||o))),[r,l]=oi(i,si(n,ii(o,e[t+1]||i)));return`C ${s},${a} ${r},${l} ${i[0]},${i[1]}`};function cr(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),f(o,"class","pie"),f(o,"viewBox","0 0 100 100");let i=0;const s=50,a=n==="doughnut"?25:0,r=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:d,style:u}])=>{if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","path"),h=i/r;i+=c;const m=Math.min(i/r,.99999),g=m-h>.5?1:0,_=2*Math.PI*(h-.25),v=2*Math.PI*(m-.25),b=Math.cos(_),y=Math.sin(_),w=Math.cos(v),E=Math.sin(v),M=`M ${s+a*b} ${s+a*y} L ${s+s*b} ${s+s*y} A ${s} ${s} 0 ${g} 1 ${s+s*w} ${s+s*E} L ${s+a*w} ${s+a*E} A ${a} ${a} 0 ${g} 0 ${s+a*b} ${s+a*y}`;f(p,"aria-label",l),f(p,"data-event",d),f(p,"style",u),f(p,"d",M),f(p,"role","img"),f(p,"tabindex","0"),o.appendChild(p)}),o}const ai="click,keydown,mousemove,mouseout",ri="mtds-chart-tooltip",Z=N?document.getElementById(ri)||$("div",{"aria-hidden":"true",class:T._tooltip,hidden:"",id:ri}):null;class dr extends Ma{_observer;_resize;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this._resize=new ResizeObserver(this.handleResize.bind(this)),this._resize.observe(this),this._observer=new MutationObserver(this.attributeChangedCallback.bind(this)),this._observer.observe(this,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.attributeChangedCallback(),C(this,ai,this)}disconnectedCallback(){Z&&(Z.hidden=!0),Go(this,ai,this),this._resize?.disconnect(),this._observer?.disconnect(),this._observer=this._resize=void 0}attributeChangedCallback(){Array.from(this.shadowRoot?.children||[]).map(d=>d.remove());const[e,n]=(f(this,"data-variant")||"column").split("-"),o=f(this,"data-aspect")||void 0,i=pr(this.querySelector("table")),s=$("style",{},er),a=$("div",{"aria-hidden":"hidden",class:"legends",role:"group"});i.slice(1).forEach(([{value:d,style:u}])=>{a.appendChild($("div",{class:"legend",style:u},d))});const{axis:r,groups:l,total:c}=or(i,{aspect:o,type:n});(e==="column"||e==="bar")&&l.append(...sr(i)),(e==="line"||e==="area")&&l.append(ar(i,{total:c,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(cr(i,{aspect:o,variant:e})),this.shadowRoot?.append(r,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?ur(e,this):fr(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function ur(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,s]=n instanceof Element&&f(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[s]?.querySelector("a,button")?.click?.()}let li="";function fr(t){if(!Z)return;Z?.isConnected||document.body.append(Z);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(Z.style.transform=`translate(${t.pageX}px, ${t.pageY}px)`),n!==li&&(n&&(Z.textContent=n),li=n,Z.hidden=!n)}const St=t=>t?.textContent?.trim()||"",pr=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const s=St(e.cells[0]),a=St(t?.rows[0].cells[i]),r=`${s}: ${St(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat(St(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:St(o),tooltip:f(o,"data-tooltip")||r}}));N&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",dr);const hr=T.dialog.split(" ")[0],ci=N?document.getElementsByClassName(hr):[];function mr(){for(const t of ci)t.isConnected&&t.showModal&&t.close&&(t.matches('[open]:not([data-modal="false"]):not(:modal)')?(f(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(f(t,"open",""),t.close()))}let je=!1;const di=(t,{clientX:e=0,clientY:n=0})=>{const{top:o,right:i,bottom:s,left:a}=t.getBoundingClientRect();return o<=n&&n<=s&&a<=e&&e<=i};function gr(t){const e=t.target?.closest?.("dialog");je=!!e&&di(e,t)}function br(t){for(const e of ci)e.open&&(di(e,t)?t.target?.closest?.('[data-command="close"]'):!je&&f(e,"data-closedby")==="any")&&e.close();je=!1}D(()=>[C(document,"click",br,L),C(document,"pointerdown",gr,L),at(mr,"open")]);function vr(t){if(t.animationName!==T._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}D(()=>[C(document,"animationend",vr,L)]);var yr=Object.defineProperty,ui=Object.getOwnPropertySymbols,_r=Object.prototype.hasOwnProperty,wr=Object.prototype.propertyIsEnumerable,fi=(t,e,n)=>e in t?yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xr=(t,e)=>{for(var n in e||(e={}))_r.call(e,n)&&fi(t,n,e[n]);if(ui)for(var n of ui(e))wr.call(e,n)&&fi(t,n,e[n]);return t},Tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",se=Tt&&/android/i.test(navigator.userAgent),Fe=Tt&&/iPad|iPhone|iPod/.test(navigator.userAgent),pi;Tt&&/^Mac/i.test(((pi=navigator.userAgentData)==null?void 0:pi.platform)||navigator.platform);var Er=`${se?"data":"aria"}-labelledby`,Sr=":host(:not([hidden])) { display: block }",Tr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",hi=typeof HTMLElement>"u"?class{}:HTMLElement;function S(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var mi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ct=(t,...e)=>mi("add",t,e),ae=(t,...e)=>mi("remove",t,e),Cr=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(qe("slot"),qe("style",e)),re=new WeakMap,Ue=(t,e)=>{if(e===void 0)return re.get(t);try{re.get(t).disconnect(),re.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),re.set(t,n)}},gi=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},$r=0,Ve=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++$r).toString(32)}`),t.id):"",qe=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},bi={define:(t,e)=>!Tt||window.customElements.get(t)||window.customElements.define(t,e)},lt,kr=0,vi=t=>{lt||(lt=qe("div"),lt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",S(lt,"aria-live","assertive")),lt.isConnected||document.body.append(lt),t&&(lt.textContent=`${t}${kr++%2?" ":""}`)},Ar=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},ze=!1,We=t=>(t?.type==="mouseup"&&(ze=!1),t?.type==="mousedown"&&(ze=!0,Ct(document,"mouseup",We,{once:!0})),ze),Ge="disabled",$t="selected",Lr=class extends hi{static get observedAttributes(){return[Ge,$t]}connectedCallback(){Fe||(this.tabIndex=-1),this.hasAttribute("role")||S(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){S(this,"aria-disabled",`${this.disabled}`),S(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[$t]}set defaultSelected(t){this[$t]=t}get disabled(){return S(this,Ge)!==null}set disabled(t){S(this,Ge,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=S(this,"label"))!=null?t:this.text}set label(t){S(this,"label",t)}get selected(){return S(this,$t)!==null}set selected(t){S(this,$t,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=S(this,"value"))!=null?t:this.text}set value(t){S(this,"value",t)}};bi.define("u-option",Lr);var Ir=`${Sr}
|
|
385
|
+
`,nr=[.1,.2,.25,.5,1];function or(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((m,g,_)=>{const v=t.map(y=>y[_].number),b=v.reduce((y,w)=>y+w,0);return Math.max(m,...i?[b]:v)},0),a=s/10,r=10**`${Math.round(a)}`.length,c=a/r,l=(nr.find(m=>m>c)||1)*r,d=Math.ceil(s/l)*l,u=C("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure",style:`${e?`--mtdsc-chart-aspect: ${e};`:""} --bars: ${t[0]?.length-1}; --groups: ${t.length-1}; --total: ${d}`}),p=u.appendChild(C("div",{class:"axisSteps"})),h=u.appendChild(C("div",{class:"axisGroups"}));return Array.from({length:d/l+1},(m,g)=>ir(l*g)).reverse().map(m=>p.append(C("div",{class:"axisStep","data-label":m}))),{total:d,groups:h,axis:u}}const ir=new Intl.NumberFormat().format;function sr(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=C("div",{class:"axisGroup","data-label":e}),s=i.appendChild(C("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:r,number:c})=>s.appendChild(C("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${r}; --value: ${c}`,tabindex:"0"}))),i})}function ar(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,s=C("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const r=C("div",{class:"lineContainer",role:"list",style:a[0].style}),c=rr(a.map(({number:u},p,{length:h})=>[100/(h-1)*p,100-u/e*100]),i/100),l=document.createElementNS("http://www.w3.org/2000/svg","svg");f(l,"aria-hidden","true"),f(l,"preserveAspectRatio","none"),f(l,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(f(d,"class","line"),f(d,"d",c),f(d,"fill","none"),f(d,"stroke","currentColor"),o==="area"){const u=d.cloneNode(!0);f(u,"d",`M-100,100 L${c.slice(1)}L200,100`),f(u,"class","lineShade"),l.append(u)}a.forEach(({number:u,tooltip:p,event:h})=>{const m=C("div",{role:"listitem"});m.appendChild(C("div",{"aria-label":p,"data-event":h,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),r.append(m)}),r.appendChild(l).append(d),s.append(r)}),s}const rr=(t,e)=>t.map(([n,o],i,s)=>i?lr(i,s,e):`M${n},${o}`).join(" "),ii=([t,e],[n,o])=>[t+n,e+o],si=([t,e],[n,o])=>[t-n,e-o],ai=(t,[e,n])=>[t*e,t*n],lr=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=ii(o,ai(n,si(i,e[t-2]||o))),[r,c]=ii(i,ai(n,si(o,e[t+1]||i)));return`C ${s},${a} ${r},${c} ${i[0]},${i[1]}`};function cr(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),f(o,"class","pie"),f(o,"viewBox","0 0 100 100");let i=0;const s=50,a=n==="doughnut"?25:0,r=t.slice(1).reduce((c,[,l])=>c+l.number,0);return t.slice(1).forEach(([,{tooltip:c,number:l,event:d,style:u}])=>{if(!l)return;const p=document.createElementNS("http://www.w3.org/2000/svg","path"),h=i/r;i+=l;const m=Math.min(i/r,.99999),g=m-h>.5?1:0,_=2*Math.PI*(h-.25),v=2*Math.PI*(m-.25),b=Math.cos(_),y=Math.sin(_),w=Math.cos(v),E=Math.sin(v),M=`M ${s+a*b} ${s+a*y} L ${s+s*b} ${s+s*y} A ${s} ${s} 0 ${g} 1 ${s+s*w} ${s+s*E} L ${s+a*w} ${s+a*E} A ${a} ${a} 0 ${g} 0 ${s+a*b} ${s+a*y}`;f(p,"aria-label",c),f(p,"data-event",d),f(p,"style",u),f(p,"d",M),f(p,"role","img"),f(p,"tabindex","0"),o.appendChild(p)}),o}const ri="click,keydown,mousemove,mouseout",li="mtds-chart-tooltip",Z=N?document.getElementById(li)||C("div",{"aria-hidden":"true",class:k._tooltip,hidden:"",id:li}):null;class dr extends Ma{_observer;_resize;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this._resize=new ResizeObserver(this.handleResize.bind(this)),this._resize.observe(this),this._observer=new MutationObserver(()=>this.attributeChangedCallback()),this._observer.observe(this,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.attributeChangedCallback(),T(this,ri,this)}disconnectedCallback(){Z&&(Z.hidden=!0),Yo(this,ri,this),this._resize?.disconnect(),this._observer?.disconnect(),this._observer=this._resize=void 0}attributeChangedCallback(){Array.from(this.shadowRoot?.children||[]).map(d=>d.remove());const[e,n]=(f(this,"data-variant")||"column").split("-"),o=f(this,"data-aspect")||void 0,i=pr(this.querySelector("table")),s=C("style",{},er),a=C("div",{"aria-hidden":"hidden",class:"legends",role:"group"});i.slice(1).forEach(([{value:d,style:u}])=>{a.appendChild(C("div",{class:"legend",style:u},d))});const{axis:r,groups:c,total:l}=or(i,{aspect:o,type:n});(e==="column"||e==="bar")&&c.append(...sr(i)),(e==="line"||e==="area")&&c.append(ar(i,{total:l,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(cr(i,{aspect:o,variant:e})),this.shadowRoot?.append(r,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?ur(e,this):fr(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function ur(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,s]=n instanceof Element&&f(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[s]?.querySelector("a,button")?.click?.()}let ci="";function fr(t){if(!Z)return;Z?.isConnected||document.body.append(Z);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(Z.style.transform=`translate(${t.pageX}px, ${t.pageY}px)`),n!==ci&&(n&&(Z.textContent=n),ci=n,Z.hidden=!n)}const St=t=>t?.textContent?.trim()||"",pr=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const s=St(e.cells[0]),a=St(t?.rows[0].cells[i]),r=`${s}: ${St(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat(St(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:St(o),tooltip:f(o,"data-tooltip")||r}}));N&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",dr);const hr=k.dialog.split(" ")[0],di=N?document.getElementsByClassName(hr):[];function mr(){for(const t of di)t.isConnected&&t.showModal&&t.close&&(t.matches('[open]:not([data-modal="false"]):not(:modal)')?(f(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(f(t,"open",""),t.close()))}let Fe=!1;const gr=(t,{clientX:e=0,clientY:n=0})=>{const{top:o,right:i,bottom:s,left:a}=t.getBoundingClientRect();return o<=n&&n<=s&&a<=e&&e<=i};function br(t){const e=t.target?.closest?.("dialog");Fe=!!e&&gr(e,t)}function vr({target:t}){for(const e of di)e.open&&(e!==t&&e.contains(t)?t?.closest?.('[data-command="close"]'):!Fe&&f(e,"data-closedby")==="any")&&e.close();Fe=!1}D(()=>[T(document,"click",vr,L),T(document,"pointerdown",br,L),at(mr,"open")]);function yr(t){if(t.animationName!==k._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}D(()=>[T(document,"animationend",yr,L)]);var _r=Object.defineProperty,ui=Object.getOwnPropertySymbols,wr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,fi=(t,e,n)=>e in t?_r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Er=(t,e)=>{for(var n in e||(e={}))wr.call(e,n)&&fi(t,n,e[n]);if(ui)for(var n of ui(e))xr.call(e,n)&&fi(t,n,e[n]);return t},kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",se=kt&&/android/i.test(navigator.userAgent),Ue=kt&&/iPad|iPhone|iPod/.test(navigator.userAgent),pi;kt&&/^Mac/i.test(((pi=navigator.userAgentData)==null?void 0:pi.platform)||navigator.platform);var Sr=`${se?"data":"aria"}-labelledby`,kr=":host(:not([hidden])) { display: block }",Tr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",hi=typeof HTMLElement>"u"?class{}:HTMLElement;function S(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var mi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Tt=(t,...e)=>mi("add",t,e),ae=(t,...e)=>mi("remove",t,e),Cr=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(ze("slot"),ze("style",e)),re=new WeakMap,Ve=(t,e)=>{if(e===void 0)return re.get(t);try{re.get(t).disconnect(),re.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),re.set(t,n)}},gi=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},$r=0,qe=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++$r).toString(32)}`),t.id):"",ze=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},bi={define:(t,e)=>!kt||window.customElements.get(t)||window.customElements.define(t,e)},lt,Ar=0,vi=t=>{lt||(lt=ze("div"),lt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",S(lt,"aria-live","assertive")),lt.isConnected||document.body.append(lt),t&&(lt.textContent=`${t}${Ar++%2?" ":""}`)},Lr=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},We=!1,je=t=>(t?.type==="mouseup"&&(We=!1),t?.type==="mousedown"&&(We=!0,Tt(document,"mouseup",je,{once:!0})),We),Ge="disabled",Ct="selected",Ir=class extends hi{static get observedAttributes(){return[Ge,Ct]}connectedCallback(){Ue||(this.tabIndex=-1),this.hasAttribute("role")||S(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){S(this,"aria-disabled",`${this.disabled}`),S(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[Ct]}set defaultSelected(t){this[Ct]=t}get disabled(){return S(this,Ge)!==null}set disabled(t){S(this,Ge,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=S(this,"label"))!=null?t:this.text}set label(t){S(this,"label",t)}get selected(){return S(this,Ct)!==null}set selected(t){S(this,Ct,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=S(this,"value"))!=null?t:this.text}set value(t){S(this,"value",t)}};bi.define("u-option",Ir);var Mr=`${kr}
|
|
386
386
|
::slotted(u-option) { display: block; cursor: pointer }
|
|
387
387
|
::slotted(u-option:focus) { ${Tr} }
|
|
388
388
|
::slotted(u-option[aria-hidden="true"]),
|
|
389
389
|
::slotted(u-option[disabled]),
|
|
390
|
-
::slotted(u-option[hidden]) { display: none !important }`,yi,_i=0,Mr=Fe||se,wi="click,focusout,input,keydown,mousedown,mouseup",xi="focus,focusin,blur,focusout",le={singular:"%d hit",plural:"%d hits"},Ei=class extends hi{constructor(){super(),this._texts=xr({},le),this._value="",Cr(this,Ir)}static get observedAttributes(){return["id",...Object.keys(le).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=gi(this),S(this,"role","listbox"),S(this,"tabindex","-1"),Ct(this._root,"focusin",this),Ct(this._root,"focus",this,!0),Ue(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ae(this._root||this,"focus",this,!0),ae(this._root||this,"focusin",this),Ue(this,!1),Ye(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(le[o])this._texts[o]=n||le[o];else if(this._root){this._input&&Ke(this,this._input);for(const s of this._root.querySelectorAll(i))Ke(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Pr(this,t),(n==="focus"||n==="focusin")&&Or(this,t),(n==="blur"||n==="focusout")&&Rr(this,t),n==="keydown"&&Dr(this,t),n==="mousedown"&&this.contains(e)&&We(t),(n==="mutation"||n==="input")&&(clearTimeout(_i),_i=setTimeout(Ci,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},Si=t=>t?.disabled||t?.readOnly||!1,kt=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=Si(t?._input)||!e,(n=Ue(t))==null||n.takeRecords();const s=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&Ke(t,t._input,e),s&&S(t,"popover","manual"),s&&t.togglePopover(e),e&&Ci(t)},Ye=t=>{t._input&&(ae(t._input||t,xi,t),ae(t._root||t,wi,t),kt(t,!1),t._input=void 0)},Ke=(t,e,n=!1)=>{t.popover&&S(e,"popovertarget",Ve(t)),Ct(e,xi,t,!0),S(e,"aria-autocomplete","list"),S(e,"aria-controls",Ve(t)),S(e,"aria-expanded",`${!Mr||n}`),S(e,"autocomplete","off"),S(e,"role",Si(e)?null:"combobox")},Or=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&Ye(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),S(t,Er,Ve((n=t._input.labels)==null?void 0:n[0])),Ct(t._root||t,wi,t),kt(t,S(t._input,"inputmode")!=="none"),vi())},Rr=(t,e)=>{!se&&!We()&&t._input&&setTimeout(Ti,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Ti=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),Ye(t))},Pr=(t,{target:e})=>{var n;if(!t._input||t._input===e)return kt(t,!0);for(const o of t.options)if(o.contains(e))return S(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),kt(t,!1)),Ar(t._input,o.value);se&&Ti(t)},Dr=(t,e)=>{var n;const{key:o,target:i,altKey:s,ctrlKey:a,shiftKey:r,metaKey:l}=e,c=o==="Escape"||o==="Esc";if(s||a||l||r||o==="Tab")return;c&&!t.hidden&&e?.preventDefault(),kt(t,!c);const d=[...t.options].filter(h=>S(h,"aria-hidden")!=="true"&&h.offsetHeight),u=d.indexOf(i);let p=-1;if(o==="ArrowDown"&&(p=(u+1)%d.length),o==="ArrowUp"&&(p=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(p=0),(o==="End"||o==="PageDown")&&(p=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[p])for(const h of d)h.tabIndex=-1;d[p]&&e.preventDefault(),(n=d[p]||t._input)==null||n.focus(),!d[p]&&o==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},Ci=(t,e)=>{const{_texts:n,_root:o,_input:i,options:s}=t,a=i?.value.toLowerCase().trim()||"",r=!t.hasAttribute("data-nofilter"),l=[],c=[];for(const u of s)(u.disabled||u.hidden||r&&!u.label.toLowerCase().includes(a)?l:c).push(u);for(const u of l)S(u,"aria-hidden","true");for(const u of c)S(u,"aria-hidden","false");const d=c.length;clearTimeout(yi),e?.type==="input"&&a!==t._value&&(yi=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&vi(u),t._value=a},1e3)),Fe&&c.map((u,p)=>S(u,"title",`${p+1}/${d}`))};Tt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return gi(this).getElementById(S(this,"list")||"")}}),bi.define("u-datalist",Ei);const $i=T.field.split(" ")[0],ki=T.validation.split(" "),Nr=ki[0],Hr=N?document.getElementsByClassName($i):[],F=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Ai(t){for(const e of Hr)if(e.isConnected){const n=[],o=[],i=[];let s=null,a=null,r=!0;for(const l of e.getElementsByTagName("*"))l instanceof HTMLLabelElement?n.push(l):l instanceof ge?s=l:Oe(l)&&!l.hidden?a=l:l.hasAttribute("data-description")?o.push(l):l.classList.contains(Nr)?(r=f(l,"data-color")==="success"||!l.clientHeight,i.push(l),o.unshift(l)):l instanceof HTMLParagraphElement&&(o.some(c=>c.contains(l))||o.push(l));if(a){for(const l of n)l.htmlFor=oe(a);if(t&&f(e,"data-validation")==="form"){r=a.matches(":valid");for(const l of i)f(l,"hidden",r?"":null)}Br(s),Ii(a),Li(a),f(a,"aria-describedby",o.map(oe).join(" ")||null),f(a,"aria-invalid",`${!r}`)}}}function Li(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function Br(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);f(t,"data-sr-added",F(o,"combobox-added")),f(t,"data-sr-empty",F(o,"combobox-empty")),f(t,"data-sr-found",F(o,"combobox-found")),f(t,"data-sr-invalid",F(o,"combobox-invalid")),f(t,"data-sr-of",F(o,"combobox-of")),f(t,"data-sr-remove",F(o,"combobox-remove")),f(t,"data-sr-removed",F(o,"combobox-removed")),f(n,"data-sr-plural",F(o,"datalist-plural")),f(n,"data-sr-singular",F(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",oe(n)))}function Ii(t){const e=t?.nextElementSibling,n=e&&f(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,s=f(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),r=F(a,"count-over"),l=F(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const c of ki)e.classList.toggle(c,i)}e.textContent=(i?r:l).replace("%d",`${Math.abs(o)}`)}}function jr({target:t,newState:e}){if(t instanceof Ei){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?st(t,!1):o&&st(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function Fr(t){Oe(t.target)&&(Ii(t.target),Li(t.target))}function Ur(t){const e=t.target?.closest?.(`.${$i}`);t.type==="invalid"&&e&&t.preventDefault(),Ai(!0)}D(()=>[at(()=>Ai()),C(document,"input",Fr,L),C(document,"toggle",jr,L),C(document,"invalid,submit",Ur,!0)]);const Vr=T.fieldset.split(" ")[0],qr=T.validation.split(" ")[0],Mi="aria-describedby",zr="aria-invalid",Wr=N?document.getElementsByClassName(Vr):[];function Gr(){setTimeout(()=>{for(const t of Wr)if(t.isConnected){const e=[];let n=null,o=!0;for(const i of t.getElementsByTagName("*"))i.classList.contains(qr)?(o=f(i,"data-color")==="success"||!i.clientHeight,n=oe(i)):Oe(i)&&e.push(i);for(const i of e){const s=f(i,Mi)?.replace(n||"#","");f(i,Mi,`${n||""} ${s||""}`.trim()),f(i,zr,`${!o}`)}}})}D(()=>[at(Gr,"class")]);const Yr=T.logo.split(" ")[0],Kr=N?document.getElementsByClassName(Yr):[];function Xr(){const t=Kr[0],e=t?.firstElementChild;if(e instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtds-logo-color"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild($("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":s}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}D(()=>[at(Xr,"class")]);const ce=T.popover.split(" ")[0],Oi="_mtds-popover-auto";function Qr({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(ce)){const n=document.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?st(t,!1):n&&st(t,n,{contain:f(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function Jr({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(ce)&&f(t,"popover")!=="manual"&&(t.classList.add(Oi),f(t,"popover","manual"))}function Zr(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${ce}`);for(const i of document.getElementsByClassName(Oi))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(ce)&&e){const i=f(e,"popovertargetaction"),s=i==="show"||(i==="hide"?!1:void 0),a=e instanceof HTMLButtonElement;if(a&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(a&&n)return;if(o.hasAttribute("popover"))return o.togglePopover(s);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}D(()=>[C(document,"click",Zr),C(document,"toggle",Qr,L),C(document,"beforetoggle",Jr,L)]);const tl=T.table.split(" ")[0],el='a,button,label,input,select,textarea,[role="button"]',nl=N?document.getElementsByClassName(tl):[];function ol(){for(const t of nl){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)f(i,"data-th",e[i.cellIndex]||":empty")}}function il({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(el)&&n.click?.()}D(()=>[C(document,"click",il),at(ol,"class")]);const Ri=T.toast.split(" ")[0],de="data-sort";function sl({animationName:t,target:e}){const n=e;if(t===T._toastTimeout&&n.close(),t!==T._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(de)||f(n,de,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ri}[open]`)].sort((i,s)=>Number(f(s,de))-Number(f(i,de))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function al({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ri)&&f(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),r=a+Number.parseInt(s.height,10),l=o.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(s.width,10);a<=n&&n<=r&&c<=e&&e<=l&&t.close()}}D(()=>[C(document,"animationstart",sl),C(document,"click",al)]);const rl=`.${T.togglegroup.split(" ")[0]}`;function ll(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(rl);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),s=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+s+a)%i.length]?.focus()}}D(()=>[C(document,"keydown",ll)]);const Pi="Escape",cl=300,Di="mtds-tooltip",Y=N?document.getElementById(Di)||$("div",{class:T._tooltip,id:Di,popover:"manual"}):null;let Ni=null,Hi=Number.NEGATIVE_INFINITY,Bi=0;function Xe({target:t,type:e,key:n}){if(e==="keydown"&&n!==Pi)return;const o=Hi+cl-Date.now();clearTimeout(Bi),Bi=setTimeout(dl,Math.max(o,0),n===Pi?null:t)}function dl(t){if(Hi=Date.now(),!Y||t===Y)return;Y?.isConnected||document.body.append(Y);let e=t?.closest?.("[data-tooltip]")||null;if(e===Ni)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue("--mtds-tooltip-position")?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(Y.textContent=n),st(Y,!1),Ni=e,Y.hidePopover(),Y.togglePopover(!!e),st(Y,e||!1,{strategy:"fixed",placement:o,middleware:[qo(),Vo({padding:10})]})}function ul(){document.querySelectorAll("[data-tooltip]").forEach(t=>{const e=!t?.textContent?.trim(),n=f(t,"data-tooltip");f(t,`aria-${e?"label":"description"}`,n)})}D(()=>[C(document,"blur,focus,mouseout,mouseover",Xe,L),C(window,"keydown",Xe,L),C(window,"blur",Xe,L),at(ul,"data-tooltip")]);var ji=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Fi;ji&&/^Mac/i.test(((Fi=navigator.userAgentData)==null?void 0:Fi.platform)||navigator.platform);var fl=":host(:not([hidden])) { display: block }",Ui=typeof HTMLElement>"u"?class{}:HTMLElement;function K(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Vi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},qi=(t,...e)=>Vi("add",t,e),zi=(t,...e)=>Vi("remove",t,e),pl=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},hl=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Qe=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))K(o,i,s);return o},Wi={define:(t,e)=>!ji||window.customElements.get(t)||window.customElements.define(t,e)},ml=`${fl}
|
|
390
|
+
::slotted(u-option[hidden]) { display: none !important }`,yi,_i=0,Or=Ue||se,wi="click,focusout,input,keydown,mousedown,mouseup",xi="focus,focusin,blur,focusout",le={singular:"%d hit",plural:"%d hits"},Ei=class extends hi{constructor(){super(),this._texts=Er({},le),this._value="",Cr(this,Mr)}static get observedAttributes(){return["id",...Object.keys(le).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=gi(this),S(this,"role","listbox"),S(this,"tabindex","-1"),Tt(this._root,"focusin",this),Tt(this._root,"focus",this,!0),Ve(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ae(this._root||this,"focus",this,!0),ae(this._root||this,"focusin",this),Ve(this,!1),Ye(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(le[o])this._texts[o]=n||le[o];else if(this._root){this._input&&Ke(this,this._input);for(const s of this._root.querySelectorAll(i))Ke(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Dr(this,t),(n==="focus"||n==="focusin")&&Rr(this,t),(n==="blur"||n==="focusout")&&Pr(this,t),n==="keydown"&&Nr(this,t),n==="mousedown"&&this.contains(e)&&je(t),(n==="mutation"||n==="input")&&(clearTimeout(_i),_i=setTimeout(Ti,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},Si=t=>t?.disabled||t?.readOnly||!1,$t=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=Si(t?._input)||!e,(n=Ve(t))==null||n.takeRecords();const s=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&Ke(t,t._input,e),s&&S(t,"popover","manual"),s&&t.togglePopover(e),e&&Ti(t)},Ye=t=>{t._input&&(ae(t._input||t,xi,t),ae(t._root||t,wi,t),$t(t,!1),t._input=void 0)},Ke=(t,e,n=!1)=>{t.popover&&S(e,"popovertarget",qe(t)),Tt(e,xi,t,!0),S(e,"aria-autocomplete","list"),S(e,"aria-controls",qe(t)),S(e,"aria-expanded",`${!Or||n}`),S(e,"autocomplete","off"),S(e,"role",Si(e)?null:"combobox")},Rr=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&Ye(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),S(t,Sr,qe((n=t._input.labels)==null?void 0:n[0])),Tt(t._root||t,wi,t),$t(t,S(t._input,"inputmode")!=="none"),vi())},Pr=(t,e)=>{!se&&!je()&&t._input&&setTimeout(ki,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},ki=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),Ye(t))},Dr=(t,{target:e})=>{var n;if(!t._input||t._input===e)return $t(t,!0);for(const o of t.options)if(o.contains(e))return S(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),$t(t,!1)),Lr(t._input,o.value);se&&ki(t)},Nr=(t,e)=>{var n;const{key:o,target:i,altKey:s,ctrlKey:a,shiftKey:r,metaKey:c}=e,l=o==="Escape"||o==="Esc";if(s||a||c||r||o==="Tab")return;l&&!t.hidden&&e?.preventDefault(),$t(t,!l);const d=[...t.options].filter(h=>S(h,"aria-hidden")!=="true"&&h.offsetHeight),u=d.indexOf(i);let p=-1;if(o==="ArrowDown"&&(p=(u+1)%d.length),o==="ArrowUp"&&(p=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(p=0),(o==="End"||o==="PageDown")&&(p=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[p])for(const h of d)h.tabIndex=-1;d[p]&&e.preventDefault(),(n=d[p]||t._input)==null||n.focus(),!d[p]&&o==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},Ti=(t,e)=>{const{_texts:n,_root:o,_input:i,options:s}=t,a=i?.value.toLowerCase().trim()||"",r=!t.hasAttribute("data-nofilter"),c=[],l=[];for(const u of s)(u.disabled||u.hidden||r&&!u.label.toLowerCase().includes(a)?c:l).push(u);for(const u of c)S(u,"aria-hidden","true");for(const u of l)S(u,"aria-hidden","false");const d=l.length;clearTimeout(yi),e?.type==="input"&&a!==t._value&&(yi=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&vi(u),t._value=a},1e3)),Ue&&l.map((u,p)=>S(u,"title",`${p+1}/${d}`))};kt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return gi(this).getElementById(S(this,"list")||"")}}),bi.define("u-datalist",Ei);const Ci=k.field.split(" ")[0],$i=k.validation.split(" "),Hr=$i[0],Br=N?document.getElementsByClassName(Ci):[],U=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Ai(t){let e=null;for(const n of Br)if(n.isConnected){const o=[],i=[],s=[];let a=null,r=null,c=!0;for(const l of n.getElementsByTagName("*"))l instanceof HTMLLabelElement?o.push(l):l instanceof ge?a=l:Oe(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(Hr)?(c=f(l,"data-color")==="success"||!l.clientHeight,s.push(l),i.unshift(l)):l instanceof HTMLParagraphElement&&(i.some(d=>d.contains(l))||i.push(l));if(r){for(const l of o)l.htmlFor=oe(r);if(t&&f(n,"data-validation")==="form"){c=r.matches(":valid"),!e&&!c&&(e=r);for(const l of s)f(l,"hidden",c?"":null)}Fr(a),Ii(r),Li(r),f(r,"aria-describedby",i.map(oe).join(" ")),f(r,"aria-invalid",`${!c}`)}}e?.focus()}function Li(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function Fr(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);f(t,"data-sr-added",U(o,"combobox-added")),f(t,"data-sr-empty",U(o,"combobox-empty")),f(t,"data-sr-found",U(o,"combobox-found")),f(t,"data-sr-invalid",U(o,"combobox-invalid")),f(t,"data-sr-of",U(o,"combobox-of")),f(t,"data-sr-remove",U(o,"combobox-remove")),f(t,"data-sr-removed",U(o,"combobox-removed")),f(n,"data-sr-plural",U(o,"datalist-plural")),f(n,"data-sr-singular",U(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",oe(n)))}function Ii(t){const e=t?.nextElementSibling,n=e&&f(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,s=f(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),r=U(a,"count-over"),c=U(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of $i)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function Ur({target:t,newState:e}){if(t instanceof Ei){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?st(t,!1):o&&st(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function Vr(t){Oe(t.target)&&(Ii(t.target),Li(t.target))}function qr(t){const e=t.target?.closest?.(`.${Ci}`);t.type==="invalid"&&e&&t.preventDefault(),Ai(!0)}D(()=>[at(()=>Ai()),T(document,"input",Vr,L),T(document,"toggle",Ur,L),T(document,"invalid,submit",qr,!0)]);const zr=k.fieldset.split(" ")[0],Wr=k.validation.split(" ")[0],Mi="aria-describedby",jr="aria-invalid",Gr=N?document.getElementsByClassName(zr):[];function Yr(){setTimeout(()=>{for(const t of Gr)if(t.isConnected){const e=[];let n=null,o=!0;for(const i of t.getElementsByTagName("*"))i.classList.contains(Wr)?(o=f(i,"data-color")==="success"||!i.clientHeight,n=oe(i)):Oe(i)&&e.push(i);for(const i of e){const s=f(i,Mi)?.replace(n||"#","");f(i,Mi,`${n||""} ${s||""}`.trim()),f(i,jr,`${!o}`)}}})}D(()=>[at(Yr,"class")]);const Kr=k.logo.split(" ")[0],Xr=N?document.getElementsByClassName(Kr):[];function Qr(){const t=Xr[0],e=t?.firstElementChild;if(e instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtds-logo-color"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild(C("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":s}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}D(()=>[at(Qr,"class")]);const ce=k.popover.split(" ")[0],Oi="_mtds-popover-auto";function Jr({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(ce)){const n=document.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?st(t,!1):n&&st(t,n,{contain:f(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function Zr({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(ce)&&f(t,"popover")!=="manual"&&(t.classList.add(Oi),f(t,"popover","manual"))}function tl(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${ce}`);for(const i of document.getElementsByClassName(Oi))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(ce)&&e){const i=f(e,"popovertargetaction"),s=i==="show"||(i==="hide"?!1:void 0),a=e instanceof HTMLButtonElement;if(a&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(a&&n)return;if(o.hasAttribute("popover"))return o.togglePopover(s);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}D(()=>[T(document,"click",tl),T(document,"toggle",Jr,L),T(document,"beforetoggle",Zr,L)]);const el=k.table.split(" ")[0],nl='a,button,label,input,select,textarea,[role="button"]',ol=N?document.getElementsByClassName(el):[];function il(){for(const t of ol){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)f(i,"data-th",e[i.cellIndex]||":empty")}}function sl({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(nl)&&n.click?.()}D(()=>[T(document,"click",sl),at(il,"class")]);const Ri=k.toast.split(" ")[0],de="data-sort";function al({animationName:t,target:e}){const n=e;if(t===k._toastTimeout&&n.close(),t!==k._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(de)||f(n,de,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ri}[open]`)].sort((i,s)=>Number(f(s,de))-Number(f(i,de))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function rl({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ri)&&f(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),r=a+Number.parseInt(s.height,10),c=o.right-Number.parseInt(i.paddingRight,10),l=c-Number.parseInt(s.width,10);a<=n&&n<=r&&l<=e&&e<=c&&t.close()}}D(()=>[T(document,"animationstart",al),T(document,"click",rl)]);const ll=`.${k.togglegroup.split(" ")[0]}`;function cl(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(ll);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),s=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+s+a)%i.length]?.focus()}}D(()=>[T(document,"keydown",cl)]);const Pi="Escape",dl=300,Di="mtds-tooltip",Y=N?document.getElementById(Di)||C("div",{class:k._tooltip,id:Di,popover:"manual"}):null;let Ni=null,Hi=Number.NEGATIVE_INFINITY,Bi=0;function Xe({target:t,type:e,key:n}){if(e==="keydown"&&n!==Pi)return;const o=Hi+dl-Date.now();clearTimeout(Bi),Bi=setTimeout(ul,Math.max(o,0),n===Pi?null:t)}function ul(t){if(Hi=Date.now(),!Y||t===Y)return;Y?.isConnected||document.body.append(Y);let e=t?.closest?.("[data-tooltip]")||null;if(e===Ni)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue("--mtds-tooltip-position")?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(Y.textContent=n),st(Y,!1),Ni=e,Y.hidePopover(),Y.togglePopover(!!e),st(Y,e||!1,{strategy:"fixed",placement:o,middleware:[Wo(),zo({padding:10})]})}function fl(){document.querySelectorAll("[data-tooltip]").forEach(t=>{const e=!t?.textContent?.trim(),n=f(t,"data-tooltip");f(t,`aria-${e?"label":"description"}`,n)})}D(()=>[T(document,"blur,focus,mouseout,mouseover",Xe,L),T(window,"keydown",Xe,L),T(window,"blur",Xe,L),at(fl,"data-tooltip")]);var Fi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ui;Fi&&/^Mac/i.test(((Ui=navigator.userAgentData)==null?void 0:Ui.platform)||navigator.platform);var pl=":host(:not([hidden])) { display: block }",Vi=typeof HTMLElement>"u"?class{}:HTMLElement;function K(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var qi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},zi=(t,...e)=>qi("add",t,e),Wi=(t,...e)=>qi("remove",t,e),hl=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},ml=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Qe=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))K(o,i,s);return o},ji={define:(t,e)=>!Fi||window.customElements.get(t)||window.customElements.define(t,e)},gl=`${pl}
|
|
391
391
|
::slotted(u-summary) { cursor: pointer; display: block }
|
|
392
392
|
::slotted(u-summary)::before { content: ''; display: inline-block; vertical-align: middle; margin-inline: .05em .3125em; border-block: .3125em solid transparent; border-inline-start: .5em solid }
|
|
393
393
|
::slotted(u-summary[aria-expanded="true"])::before { rotate: 90deg }
|
|
394
|
-
:host > [part="details-content"]:not([hidden=""]) { display: block }`,
|
|
394
|
+
:host > [part="details-content"]:not([hidden=""]) { display: block }`,bl=class extends Vi{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(Qe("slot",null,{name:"summary"}),Qe("slot",null,{part:"details-content"}),Qe("style",gl))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],K(this,"role","group"),zi(this._content,"beforematch",this),zi(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&Wi(this._content,"beforematch",this),Wi(this,"click,keydown",this),this._content=null}attributeChangedCallback(t,e,n){const o="onbeforematch"in this?"until-found":!0,i=this.open;for(const s of this.children)s.nodeName==="U-SUMMARY"&&K(s,"aria-expanded",`${i}`);if(this._content&&(K(this._content,"aria-hidden",`${!i}`),K(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const s=ml(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of s)a!==this&&(a.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e?.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&hl(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){K(this,"open",t?"":null)}get name(){return K(this,"name")||""}set name(t){K(this,"name",t)}},vl=class extends Vi{connectedCallback(){K(this,"role","button"),this.slot="summary",this.tabIndex=0}};ji.define("u-details",bl),ji.define("u-summary",vl);var ue=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Gi=ue&&/firefox/i.test(navigator.userAgent),yl=ue&&/iPad|iPhone|iPod/.test(navigator.userAgent),Yi;ue&&/^Mac/i.test(((Yi=navigator.userAgentData)==null?void 0:Yi.platform)||navigator.platform);var _l=typeof HTMLElement>"u"?class{}:HTMLElement;function I(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var wl=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},xl=0,El=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++xl).toString(32)}`),t.id):"",Ki=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))I(o,i,s);return o},Sl={define:(t,e)=>!ue||window.customElements.get(t)||window.customElements.define(t,e)},kl=t=>{var e;const n=I(t,"aria-label")||"";return[...(((e=I(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},Tl=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
|
|
395
395
|
:host::before { content: ''; display: block; height: 100%; background: currentColor; width: var(--percentage, 0%); transition: width .2s }
|
|
396
396
|
:host(:not([value])) { background: linear-gradient(90deg,currentColor 25%, transparent 50%, currentColor 75%) 50%/400% }
|
|
397
397
|
@media (prefers-reduced-motion: no-preference) { :host { animation: indeterminate 2s linear infinite } }
|
|
398
|
-
@keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,Je=!1,Xi=class extends
|
|
398
|
+
@keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,Je=!1,Xi=class extends _l{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(Ki("slot",null,{hidden:""}),Ki("style",Tl))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(Je)return;Je=!0;const t=yl||Gi,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=kl(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),Gi)for(const o of this.labels)I(o,"aria-label",n);I(this,"aria-busy",`${this.position===-1}`),I(this,"aria-label",n.trim()),I(this,"aria-labelledby",null),I(this,"aria-valuemax","100"),I(this,"aria-valuemin","0"),I(this,"aria-valuenow",`${e}`),I(this,"role",t?"img":"progressbar"),Je=!1}get labels(){const t=this.closest("label:not([for])"),e=El(this);return t&&(t.htmlFor=e),wl(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return Ji(this,"value")}set value(t){Zi(this,"value",t)}get max(){return Ji(this,"max")||1}set max(t){Zi(this,"max",t)}};Xi.formAssociated=!0;var Qi=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),Ji=(t,e)=>{const n=I(t,e);return Qi(n)?Math.max(0,Number.parseFloat(n)):null},Zi=(t,e,n)=>{if(n===null||Qi(n))I(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${I}': '${n}'`)};return Sl.define("u-progress",Xi),O.UHTMLComboboxElement=ge,O.UHTMLTabElement=xn,O.UHTMLTabListElement=wn,O.UHTMLTabPanelElement=En,O.UHTMLTabsElement=_n,O.analytics=Xo,O.pagination=Qa,O.styles=Ns,O.toast=$,O.toggleAppExpanded=ei,O.version=Ds,Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),O}({});
|