@ganpatiinfo/gids-core-web 10.1.0 → 10.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. package/dist/css/index.css +201 -0
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/gids-action-bar.js +1 -1
  4. package/dist/gids-activity-gauge.js +1 -1
  5. package/dist/gids-bar-chart.js +1 -1
  6. package/dist/gids-calendar-header-panel.js +1 -1
  7. package/dist/gids-calendar-month-list.js +1 -1
  8. package/dist/gids-calendar-year-list.js +1 -1
  9. package/dist/gids-calendar.js +1 -1
  10. package/dist/gids-chart-legend-item.js +1 -1
  11. package/dist/gids-chart-legend.js +1 -1
  12. package/dist/gids-chart.js +1 -1
  13. package/dist/gids-chevron-button.js +1 -1
  14. package/dist/gids-dot.js +1 -1
  15. package/dist/gids-dropdown-field.js +1 -1
  16. package/dist/gids-dropdown-picker.js +1 -1
  17. package/dist/gids-dropdown.js +1 -1
  18. package/dist/gids-field.js +1 -1
  19. package/dist/gids-filter.js +1 -1
  20. package/dist/gids-icon.js +1 -1
  21. package/dist/gids-input.js +1 -1
  22. package/dist/gids-line-chart.js +1 -1
  23. package/dist/gids-overflow-container.js +1 -1
  24. package/dist/gids-overlay-provider.js +1 -1
  25. package/dist/gids-password-field.js +1 -1
  26. package/dist/gids-pie-chart.js +1 -1
  27. package/dist/gids-popover.js +1 -1
  28. package/dist/gids-scrim.js +1 -1
  29. package/dist/gids-tab-item.d.ts +11 -0
  30. package/dist/gids-tab-item.js +1 -0
  31. package/dist/gids-tab.d.ts +11 -0
  32. package/dist/gids-tab.js +1 -0
  33. package/dist/gids-text-field.js +1 -1
  34. package/dist/gids-toggle-button.js +1 -1
  35. package/dist/gids-tooltip.js +1 -1
  36. package/dist/{p-DfxTsSdZ.js → p-5VIPb1eU.js} +1 -1
  37. package/dist/{p-Db62Pz3n.js → p-8tOn5SjU.js} +1 -1
  38. package/dist/{p-V48JyMbP.js → p-B1Jgtjhu.js} +1 -1
  39. package/dist/{p-mZJdpfOo.js → p-BYDimyG-.js} +1 -1
  40. package/dist/{p-DPIK2ayL.js → p-BfnzH6wp.js} +1 -1
  41. package/dist/p-Bj28yqMD.js +1 -0
  42. package/dist/{p-CW7tw1Fb.js → p-C-cUL-aA.js} +1 -1
  43. package/dist/{p-DNTv2BQ5.js → p-C7ifjRCE.js} +1 -1
  44. package/dist/{p-JjN8U9B5.js → p-Ciw-O9qN.js} +1 -1
  45. package/dist/{p-BpQB6ncp.js → p-DiNad9Px.js} +1 -1
  46. package/dist/{p-CQH7eAs3.js → p-DoPuGtJd.js} +1 -1
  47. package/dist/{p-BQ-ZnlnH.js → p-Doi8Yizl.js} +1 -1
  48. package/dist/{p-BZCJlqVe.js → p-Jdpe4Sgj.js} +1 -1
  49. package/dist/{p-CP1wz2PI.js → p-bPPm7cuw.js} +1 -1
  50. package/dist/{p-DoCwI_bx.js → p-qb1aWgjh.js} +1 -1
  51. package/dist/{p-H1JIMJ2t.js → p-qrjEbv6g.js} +1 -1
  52. package/dist/{p-Cn3-K5eR.js → p-xITwQAMz.js} +1 -1
  53. package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
  54. package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
  55. package/dist/types/components.d.ts +123 -2
  56. package/dist-bundled/es/gids-action-bar.js +4 -4
  57. package/dist-bundled/es/gids-activity-gauge.js +1 -1
  58. package/dist-bundled/es/gids-bar-chart.js +3 -3
  59. package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
  60. package/dist-bundled/es/gids-calendar-month-list.js +1 -1
  61. package/dist-bundled/es/gids-calendar-year-list.js +3 -3
  62. package/dist-bundled/es/gids-calendar.js +33 -33
  63. package/dist-bundled/es/gids-chart-legend-item.js +4 -4
  64. package/dist-bundled/es/gids-chart-legend.js +4 -4
  65. package/dist-bundled/es/gids-chart.js +6 -6
  66. package/dist-bundled/es/gids-chevron-button.js +4 -4
  67. package/dist-bundled/es/gids-dot.js +3 -3
  68. package/dist-bundled/es/gids-dropdown-field.js +10 -10
  69. package/dist-bundled/es/gids-dropdown-picker.js +2 -2
  70. package/dist-bundled/es/gids-dropdown.js +1 -1
  71. package/dist-bundled/es/gids-field.js +1 -1
  72. package/dist-bundled/es/gids-filter.js +3 -3
  73. package/dist-bundled/es/gids-icon.js +4 -4
  74. package/dist-bundled/es/gids-input.js +4 -4
  75. package/dist-bundled/es/gids-line-chart.js +4 -4
  76. package/dist-bundled/es/gids-overflow-container.js +9 -9
  77. package/dist-bundled/es/gids-overlay-provider.js +2 -2
  78. package/dist-bundled/es/gids-password-field.js +19 -19
  79. package/dist-bundled/es/gids-pie-chart.js +4 -4
  80. package/dist-bundled/es/gids-popover.js +1 -1
  81. package/dist-bundled/es/gids-scrim.js +3 -3
  82. package/dist-bundled/es/gids-tab-item.js +100 -0
  83. package/dist-bundled/es/gids-tab.js +63 -0
  84. package/dist-bundled/es/gids-text-field.js +9 -9
  85. package/dist-bundled/es/gids-toggle-button.js +4 -4
  86. package/dist-bundled/es/gids-tooltip.js +4 -4
  87. package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
  88. package/dist-bundled/es/{p-DfxTsSdZ-C2Afv1lS.js → p-5VIPb1eU-MCAo8JCp.js} +2 -2
  89. package/dist-bundled/es/{p-Db62Pz3n-DpQjwBYb.js → p-8tOn5SjU-D9rZ28cf.js} +10 -10
  90. package/dist-bundled/es/{p-V48JyMbP-Bx-0od-Z.js → p-B1Jgtjhu-B_VYp-ZP.js} +7 -7
  91. package/dist-bundled/es/{p-mZJdpfOo-DicbKil0.js → p-BYDimyG--DBCLrqDJ.js} +6 -6
  92. package/dist-bundled/es/{p-DPIK2ayL-DPEbctqo.js → p-BfnzH6wp-BfLC7Nak.js} +2 -2
  93. package/dist-bundled/es/{p-DmLoB2Dn-D-FSoCvI.js → p-Bj28yqMD-Dz1SWSqM.js} +6 -6
  94. package/dist-bundled/es/{p-CW7tw1Fb-DtJ5TwCU.js → p-C-cUL-aA-2jsvw-Lr.js} +11 -11
  95. package/dist-bundled/es/{p-DNTv2BQ5-Bwgd30mM.js → p-C7ifjRCE-CRlorwoN.js} +12 -12
  96. package/dist-bundled/es/{p-JjN8U9B5-GeWjfJBY.js → p-Ciw-O9qN-DkWfirFu.js} +4 -4
  97. package/dist-bundled/es/{p-BpQB6ncp-C2AWddf-.js → p-DiNad9Px-uOCMHqAq.js} +9 -9
  98. package/dist-bundled/es/{p-CQH7eAs3-BVowyVGn.js → p-DoPuGtJd-DYlbhh57.js} +2 -2
  99. package/dist-bundled/es/{p-BQ-ZnlnH-CUVdDHzX.js → p-Doi8Yizl-BszWK5Dq.js} +3 -3
  100. package/dist-bundled/es/{p-BZCJlqVe-BcSwze-q.js → p-Jdpe4Sgj-acwaxLtK.js} +5 -5
  101. package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
  102. package/dist-bundled/es/{p-CP1wz2PI-DhVAsHFS.js → p-bPPm7cuw-B-dtPJF9.js} +5 -5
  103. package/dist-bundled/es/{p-DoCwI_bx-BXHlZI7-.js → p-qb1aWgjh-CzmMPIME.js} +6 -6
  104. package/dist-bundled/es/{p-H1JIMJ2t-DEXp7M4I.js → p-qrjEbv6g-ITSp3ky_.js} +2 -2
  105. package/dist-bundled/es/{p-Cn3-K5eR-tQ1EOnDF.js → p-xITwQAMz-BMXjOAAQ.js} +12 -12
  106. package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
  107. package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
  108. package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
  109. package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
  110. package/dist-bundled/umd/gids-calendar-month-list.umd.js +1 -1
  111. package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
  112. package/dist-bundled/umd/gids-calendar.umd.js +1 -1
  113. package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
  114. package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
  115. package/dist-bundled/umd/gids-chart.umd.js +1 -1
  116. package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
  117. package/dist-bundled/umd/gids-dot.umd.js +1 -1
  118. package/dist-bundled/umd/gids-dropdown-field.umd.js +1 -1
  119. package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
  120. package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
  121. package/dist-bundled/umd/gids-field.umd.js +2 -2
  122. package/dist-bundled/umd/gids-filter.umd.js +2 -2
  123. package/dist-bundled/umd/gids-icon.umd.js +1 -1
  124. package/dist-bundled/umd/gids-input.umd.js +1 -1
  125. package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
  126. package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
  127. package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
  128. package/dist-bundled/umd/gids-password-field.umd.js +1 -1
  129. package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
  130. package/dist-bundled/umd/gids-popover.umd.js +1 -1
  131. package/dist-bundled/umd/gids-scrim.umd.js +1 -1
  132. package/dist-bundled/umd/gids-tab-item.umd.js +5 -0
  133. package/dist-bundled/umd/gids-tab.umd.js +5 -0
  134. package/dist-bundled/umd/gids-text-field.umd.js +2 -2
  135. package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
  136. package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
  137. package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
  138. package/package.json +20 -4
  139. package/dist/p-DmLoB2Dn.js +0 -1
  140. package/dist-bundled/es/p-UVmSPzTd-DiTxS9kW.js +0 -25
@@ -2,4 +2,4 @@
2
2
  Flattening is not supported for Stencil non-shadow slots.
3
3
  You can use \`.childNodes\` to nested slot fallback content.
4
4
  If you have a particular use case, please open an issue on the Stencil repo.
5
- `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===he(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Rt(e.S)),s},Rt=e=>{C.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Te=!0)}C.i&=-2},Re=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==G&&i["s-ol"]&&(_(me(i).parentNode,i,me(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Re(i,t)}C.i&=-2},kt=(e,t,o,n,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===G&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(l=Ne(null,o,i),l&&(n[i].S=l,_(c,l,me(t))))},Lt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;$t(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},ke=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),me=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(R=l==="svg"||l!=="foreignObject"&&R,l!=="slot"||pe||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Rt(t.S.parentElement)),Ye(e,t,R),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,x=u.length-1,b=u[0],S=u[x],E=d.length-1,A=d[0],T=d[E];const L=a.O==="template"?f.content:f;for(;w<=x&&g<=E;)if(b==null)b=u[++w];else if(S==null)S=u[--x];else if(A==null)A=d[++g];else if(T==null)T=d[--E];else if(ke(b,A,p))se(b,A,p),b=u[++w],A=d[++g];else if(ke(S,T,p))se(S,T,p),S=u[--x],T=d[--E];else if(ke(b,T,p))b.O!=="slot"&&T.O!=="slot"||Re(b.S.parentNode,!1),se(b,T,p),_(L,b.S,S.S.nextSibling),b=u[++w],T=d[--E];else if(ke(S,A,p))b.O!=="slot"&&T.O!=="slot"||Re(S.S.parentNode,!1),se(S,A,p),_(L,S.S,b.S),S=u[--x],A=d[++g];else{for(y=-1,m=w;m<=x;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){y=m;break}y>=0?(v=u[y],v.O!==A.O?h=Ne(u&&u[g],a,y):(se(v,A,p),u[y]=void 0,h=v.S),A=d[++g]):(h=Ne(u&&u[g],a,g),A=d[++g]),h&&_(me(b.S).parentNode,h,me(b.S))}w>x?kt(f,d[E+1]==null?null:d[E+1].S,a,d,g,E):g>E&&Lt(u,w,x)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),kt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Lt(i,0,i.length-1),R&&l==="svg"&&(R=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],_t=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(bt(t,l)){let c=V.find((r=>r.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((r=>{bt(r.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!r.N&&(r.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&_t(s)}},$t=e=>{e.v&&e.v.ref&&Ge.push((()=>e.v.ref(null))),e.m&&e.m.map($t)},xn=(e,t)=>{Ze.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=he(s)||"";return{slotNode:Ie(Ue(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Sn=(e,t,o=!1)=>{var n,i,s,l,c;const r=e.$hostElement$,f=e.o,u=e.M||Ae(null,null);var a;const d=(a=t)&&a.O===mn?t:ie(null,null,t);if(G=r.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=r.shadowRoot||r,pe=!(!(1&f.i)||128&f.i),qe=r["s-cr"],Ce=!1,se(u,d,o),C.i|=1,Te){_t(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&&wt(d.S),C.i&=-2,V.length=0,!pe&&!(1&f.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==G&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}qe=void 0,Ge.forEach((p=>p())),Ge.length=0,Ze.forEach((p=>p())),Ze.length=0},Pt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ke=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Pt(e,e.R);const o=()=>En(e,t);if(!t)return dn(o);queueMicrotask((()=>{o()}))},En=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=ge(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Dt(i,(()=>ge(n,"componentWillRender",void 0,o))),Dt(i,(()=>An(e,n,t)))},Dt=(e,t)=>On(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),On=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",An=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(l=>{const c=l.o,r=l.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=xt(d),g=Oe.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=z.get(a=a.head||a);if(m||z.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const x=(p=C._)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&y.setAttribute("nonce",x),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,S?.parentNode===a?S:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),Ve?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=z.get(a);if(y||z.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let x;if(g.constructor===m.CSSStyleSheet)x=g;else{x=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)x.insertRule(g.cssRules[b].cssText,b)}Ve?a.adoptedStyleSheets.push(x):a.adoptedStyleSheets=[...a.adoptedStyleSheets,x],y.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&f&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),Cn(e,t,i,o),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(n=i["s-p"])!=null?n:[],c=()=>Tn(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},Cn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Sn(e,t,n)}catch(i){Y(i,e.$hostElement$)}return null},Tn=e=>{const t=e.$hostElement$,o=t,n=e.R;ge(o,"componentDidRender",void 0,t),64&e.i?ge(o,"componentDidUpdate",void 0,t):(e.i|=64,Rn(t),ge(o,"componentDidLoad",void 0,t),e.L(t),n||Nn()),e.A&&(e.A(),e.A=void 0),512&e.i&&ze((()=>Ke(e,!1))),e.i&=-517},Nn=()=>{ze((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},ge=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){Y(i,n)}},Rn=e=>e.classList.add("hydrated"),Mt=(e,t,o,n)=>{const i=j(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;o=Ot(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,l,t):i.T.push((()=>{i.D[d](o,l,t)})))}catch(d){Y(d,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,l,t)===!1&&!(16&c))return;16&c||Ke(i,!1)}}},kn=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&cn.forEach((l=>{const c=s[l];Object.defineProperty(s,l,{value(...r){var f;const u=j(this),a=this;a?typeof c=="function"&&c.call(a,...r):(f=u?.H)==null||f.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Et(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((n=t.t)!=null?n:{});l.map((([c,[r]])=>{if(31&r||32&r){const{get:f,set:u}=oe(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,j(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=j(this);if(d){if(u)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[Ot(a,r,!!(64&t.i))]),void Mt(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Mt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(r,f,u){C.jmp((()=>{var a;const d=c.get(r),p=j(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,x=(a=t.F)==null?void 0:a[r];x?.forEach((b=>{const[[S,E]]=Object.entries(b);m[S]!=null&&(128&y||1&E)&&m[S].call(m,u,f,r)}))}return}const h=l.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...l.filter((([r,f])=>31&f[0])).map((([r,f])=>{var u;const a=f[1]||r;return c.set(a,r),512&f[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},Ln=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Et(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&rn(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=j(this);if(!s)return;Ft(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&C.i)){const l=j(s);if(!l)return;const c=l.o;if(1&l.i)Ft(s,l,c.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const f=r["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(r,f,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){Pt(l,l.R=r);break}}c.t&&Object.entries(c.t).map((([r,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,r)){const u=s[r];delete s[r],s[r]=u}})),(async(r,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=xt(u);Oe.has(v)||((w,g,y)=>{let m=Oe.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Oe.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ke(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){Y(d,r),f.A&&(f.A(),f.A=void 0),f.L&&f.L(r)}})(s,l,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&C.i)){const l=j(s);l?.V&&(l.V.map((c=>c())),l.V=void 0)}z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else hn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),kn(e,o,3)}catch(n){return Y(n),e}},_n=(e,t)=>t,Ft=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const l=Pn(O.document,e,n),c=$n(t,s),r=Dn(n);C.ael(l,i,c,r),(t.V=t.V||[]).push((()=>C.rel(l,i,c,r)))}))},$n=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){Y(n,e.$hostElement$)}},Pn=(e,t,o)=>8&o?O:t,Dn=e=>fn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function _o(e){return e}const le=Math.min,Z=Math.max,Le=Math.round,_e=Math.floor,F=e=>({x:e,y:e}),Mn={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e,t,o){return Z(e,le(t,o))}function ye(e,t){return typeof e=="function"?e(t):e}function K(e){return e.split("-")[0]}function ve(e){return e.split("-")[1]}function Wt(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function I(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function et(e){return Wt(I(e))}function Fn(e,t,o){o===void 0&&(o=!1);const n=ve(e),i=et(e),s=Qe(i);let l=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$e(l)),[l,$e(l)]}function Wn(e){const t=$e(e);return[tt(e),t,tt(t)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jt=["left","right"],Vt=["right","left"],jn=["top","bottom"],Vn=["bottom","top"];function Hn(e,t,o){switch(e){case"top":case"bottom":return o?t?Vt:jt:t?jt:Vt;case"left":case"right":return t?jn:Vn;default:return[]}}function Bn(e,t,o,n){const i=ve(e);let s=Hn(K(e),o==="start",n);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(tt)))),s}function $e(e){const t=K(e);return Mn[t]+e.slice(t.length)}function zn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ht(e){return typeof e!="number"?zn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Bt(e,t,o){let{reference:n,floating:i}=e;const s=I(t),l=et(t),c=Qe(l),r=K(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(r){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ve(t)){case"start":p[l]-=d*(o&&f?-1:1);break;case"end":p[l]+=d*(o&&f?-1:1);break}return p}async function In(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ye(t,e),h=Ht(p),w=c[d?a==="floating"?"reference":"floating":a],g=Pe(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:r})),y=a==="floating"?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:r}):y);return{top:(g.top-b.top+h.top)/x.y,bottom:(b.bottom-g.bottom+h.bottom)/x.y,left:(g.left-b.left+h.left)/x.x,right:(b.right-g.right+h.right)/x.x}}const Un=50,qn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:l}=o,c=l.detectOverflow?l:{...l,detectOverflow:In},r=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Bt(f,n,r),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:x,data:b,reset:S}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=x??a,h[g]={...h[g],...b},S&&p<Un&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(f=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:a}=Bt(f,d,r)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},Xn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:f,padding:u=0}=ye(e,t)||{};if(f==null)return{};const a=Ht(u),d={x:o,y:n},p=et(i),h=Qe(p),v=await l.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let E=S?S[m]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=c.floating[m]||s.floating[h]);const A=x/2-b/2,T=E/2-v[h]/2-1,L=le(a[g],T),Se=le(a[y],T),te=L,Ee=E-v[h]-Se,N=E/2-v[h]/2+A,ne=Je(te,N,Ee),B=!r.arrow&&ve(i)!=null&&N!==ne&&s.reference[h]/2-(N<te?L:Se)-v[h]/2<0,D=B?N<te?N-te:N-Ee:0;return{[p]:d[p]+D,data:{[p]:ne,centerOffset:N-ne-D,...B&&{alignmentOffset:D}},reset:B}}}),Yn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ye(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=K(i),y=I(c),m=K(c)===c,x=await(r.isRTL==null?void 0:r.isRTL(f.floating)),b=d||(m||!v?[$e(c)]:Wn(c)),S=h!=="none";!d&&S&&b.push(...Bn(c,v,h,x));const E=[c,...b],A=await r.detectOverflow(t,w),T=[];let L=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&T.push(A[g]),a){const N=Fn(i,l,x);T.push(A[N[0]],A[N[1]])}if(L=[...L,{placement:i,overflows:T}],!T.every(N=>N<=0)){var Se,te;const N=(((Se=s.flip)==null?void 0:Se.index)||0)+1,ne=E[N];if(ne&&(!(a==="alignment"?y!==I(ne):!1)||L.every(M=>I(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:N,overflows:L},reset:{placement:ne}};let B=(te=L.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(p){case"bestFit":{var Ee;const D=(Ee=L.filter(M=>{if(S){const q=I(M.placement);return q===y||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Lo)=>q+Lo,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:Ee[0];D&&(B=D);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Gn=new Set(["left","top"]);async function Zn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),l=K(o),c=ve(o),r=I(o)==="y",f=Gn.has(l)?-1:1,u=s&&r?-1:1,a=ye(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),r?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await Zn(t,e);return l===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},Jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ye(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=I(K(i)),p=Wt(d);let h=u[p],v=u[d];if(l){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],x=h-a[y];h=Je(m,h,x)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],x=v-a[y];v=Je(m,v,x)}const w=r.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:l,[d]:c}}}}}};function De(){return typeof window<"u"}function re(e){return zt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(zt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zt(e){return De()?e instanceof Node||e instanceof k(e).Node:!1}function $(e){return De()?e instanceof Element||e instanceof k(e).Element:!1}function H(e){return De()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function It(e){return!De()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function we(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Qn(e){return/^(table|td|th)$/.test(re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const eo=/transform|translate|scale|rotate|perspective|filter/,to=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let nt;function ot(e){const t=$(e)?P(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!it()&&(J(t.backdropFilter)||J(t.filter))||eo.test(t.willChange||"")||to.test(t.contain||"")}function no(e){let t=U(e);for(;H(t)&&!ce(t);){if(ot(t))return t;if(Me(t))return null;t=U(t)}return null}function it(){return nt==null&&(nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nt}function ce(e){return/^(html|body|#document)$/.test(re(e))}function P(e){return k(e).getComputedStyle(e)}function Fe(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||W(e);return It(t)?t.host:t}function Ut(e){const t=U(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&we(t)?t:Ut(t)}function be(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ut(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=k(i);if(s){const c=st(l);return t.concat(l,l.visualViewport||[],we(i)?i:[],c&&o?be(c):[])}else return t.concat(i,be(i,[],o))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qt(e){const t=P(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=H(e),s=i?e.offsetWidth:o,l=i?e.offsetHeight:n,c=Le(o)!==s||Le(n)!==l;return c&&(o=s,n=l),{width:o,height:n,$:c}}function lt(e){return $(e)?e:e.contextElement}function ae(e){const t=lt(e);if(!H(t))return F(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=qt(t);let l=(s?Le(o.width):o.width)/n,c=(s?Le(o.height):o.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const oo=F(0);function Xt(e){const t=k(e);return!it()||!t.visualViewport?oo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function io(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==k(e)?!1:t}function Q(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=lt(e);let l=F(1);t&&(n?$(n)&&(l=ae(n)):l=ae(e));const c=io(s,o,n)?Xt(s):F(0);let r=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,u=i.width/l.x,a=i.height/l.y;if(s){const d=k(s),p=n&&$(n)?k(n):n;let h=d,v=st(h);for(;v&&n&&p!==h;){const w=ae(v),g=v.getBoundingClientRect(),y=P(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,x=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;r*=w.x,f*=w.y,u*=w.x,a*=w.y,r+=m,f+=x,h=k(v),v=st(h)}}return Pe({width:u,height:a,x:r,y:f})}function We(e,t){const o=Fe(e).scrollLeft;return t?t.left+o:Q(W(e)).left+o}function Yt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-We(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function so(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",l=W(n),c=t?Me(t.floating):!1;if(n===l||c&&s)return o;let r={scrollLeft:0,scrollTop:0},f=F(1);const u=F(0),a=H(n);if((a||!a&&!s)&&((re(n)!=="body"||we(l))&&(r=Fe(n)),a)){const p=Q(n);f=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=l&&!a&&!s?Yt(l,r):F(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-r.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-r.scrollTop*f.y+u.y+d.y}}function lo(e){return Array.from(e.getClientRects())}function ro(e){const t=W(e),o=Fe(e),n=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-o.scrollLeft+We(e);const c=-o.scrollTop;return P(n).direction==="rtl"&&(l+=Z(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Gt=25;function co(e,t){const o=k(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,l=n.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const u=it();(!u||u&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const f=We(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=Gt&&(s-=h)}else f<=Gt&&(s+=f);return{width:s,height:l,x:c,y:r}}function ao(e,t){const o=Q(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=H(e)?ae(e):F(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,f=n*s.y;return{width:l,height:c,x:r,y:f}}function Zt(e,t,o){let n;if(t==="viewport")n=co(e,o);else if(t==="document")n=ro(W(e));else if($(t))n=ao(t,o);else{const i=Xt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pe(n)}function Kt(e,t){const o=U(e);return o===t||!$(o)||ce(o)?!1:P(o).position==="fixed"||Kt(o,t)}function fo(e,t){const o=t.get(e);if(o)return o;let n=be(e,[],!1).filter(c=>$(c)&&re(c)!=="body"),i=null;const s=P(e).position==="fixed";let l=s?U(e):e;for(;$(l)&&!ce(l);){const c=P(l),r=ot(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(l)&&!r&&Kt(e,l))?n=n.filter(u=>u!==l):i=c,l=U(l)}return t.set(e,n),n}function uo(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const l=[...o==="clippingAncestors"?Me(t)?[]:fo(t,this._c):[].concat(o),n],c=Zt(t,l[0],i);let r=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<l.length;d++){const p=Zt(t,l[d],i);r=Z(p.top,r),f=le(p.right,f),u=le(p.bottom,u),a=Z(p.left,a)}return{width:f-a,height:u-r,x:a,y:r}}function ho(e){const{width:t,height:o}=qt(e);return{width:t,height:o}}function po(e,t,o){const n=H(t),i=W(t),s=o==="fixed",l=Q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=F(0);function f(){r.x=We(i)}if(n||!n&&!s)if((re(t)!=="body"||we(i))&&(c=Fe(t)),n){const p=Q(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Yt(i,c):F(0),a=l.left+c.scrollLeft-r.x-u.x,d=l.top+c.scrollTop-r.y-u.y;return{x:a,y:d,width:l.width,height:l.height}}function rt(e){return P(e).position==="static"}function Jt(e,t){if(!H(e)||P(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Qt(e,t){const o=k(e);if(Me(e))return o;if(!H(e)){let i=U(e);for(;i&&!ce(i);){if($(i)&&!rt(i))return i;i=U(i)}return o}let n=Jt(e,t);for(;n&&Qn(n)&&rt(n);)n=Jt(n,t);return n&&ce(n)&&rt(n)&&!ot(n)?o:n||no(e)||o}const mo=async function(e){const t=this.getOffsetParent||Qt,o=this.getDimensions,n=await o(e.floating);return{reference:po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function go(e){return P(e).direction==="rtl"}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:so,getDocumentElement:W,getClippingRect:uo,getOffsetParent:Qt,getElementRects:mo,getClientRects:lo,getDimensions:ho,getScale:ae,isElement:$,isRTL:go};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=_e(a),v=_e(i.clientWidth-(u+d)),w=_e(i.clientHeight-(a+p)),g=_e(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:Z(0,le(1,r))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==r){if(!x)return l();E?l(!1,E):n=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!en(f,e.getBoundingClientRect())&&l(),x=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return l(!0),s}function vo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=n,f=lt(e),u=i||s?[...f?be(f):[],...t?be(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?yo(f,o):null;let d=-1,p=null;l&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!r&&p.observe(f),t&&p.observe(t));let h,v=r?Q(e):null;r&&w();function w(){const g=Q(e);v&&!en(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,r&&cancelAnimationFrame(h)}}const wo=Kn,bo=Jn,xo=Yn,So=Xn,Eo=(e,t,o)=>{const n=new Map,i={platform:ct,...o},s={...i.platform,_c:n};return qn(e,t,{...i,platform:s})};var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(xe||(xe={}));function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Oo=/transform|translate|scale|rotate|perspective|filter/,Ao=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let at;function Co(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof tn(o).Element)?tn(n=e).getComputedStyle(n):e);var o,n;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||(at==null&&(at=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!at&&(ee(t.backdropFilter)||ee(t.filter)))||Oo.test(t.willChange||"")||Ao.test(t.contain||"")}function To(e){return(function(t){for(let o=t;o;o=ft(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=ft(t);o;o=ft(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||Co(n)||o.tagName==="BODY"))return o}return null})(e)}function ft(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const ue=class ue{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=vo(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[wo(this.offset)],o=xo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===xe.POPOVER,i=bo({padding:this.offset,mainAxis:this.config.elementType===xe.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(So({element:this.arrowEl,padding:this.offset})),Eo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...ct,getOffsetParent:s=>ct.getOffsetParent(s,To)}}).then((({x:s,y:l,middlewareData:c,placement:r})=>{if(n){const d=r.startsWith("left")||r.startsWith("right"),p=r.startsWith("top")||r.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=r,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${l}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=r.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),ue.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=ue.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),ue.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};ue.currentFloatingElements=new Map;let ut=ue;const fe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nn=!1;fe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(fe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let dt=null;const ht=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{on()})):void 0,on=()=>{if(fe===void 0)return!1;const e=(()=>{if(fe===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let i=-1,s=0;for(let l=0;l<n.cssRules.length;l++){const c=n.cssRules.item(l);if(c?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(c?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}t.push(c)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ht!==void 0&&t!==dt&&(dt&&ht.disconnect(),t instanceof Element&&ht.observe(t,{childList:!0,characterData:!0,subtree:!0}),dt=t),fe.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:s}=o;for(let l=0;l<i;l++)s.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},No=()=>(nn||(nn=on()),fe),sn=Ln(class extends an{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=No();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ut(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:xe.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return ie(_n,{key:"87da0ed1ded01cd47b54a7445df2ec4a1ce621b2"},ie("slot",{key:"31b07131bcd26021340d37cadc8aa01f59ad0262"}),ie("span",{key:"03fa6ca6e6f3d9bfa2b319254a22a817091fa9b5",id:"tooltip",part:"tooltip",role:"tooltip"},ie("span",{key:"7affbdf276e42c78a4829b5c47854786b97af3bd",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function ln(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,sn))}))}ln();const Ro=sn,ko=ln;X.GidsTooltip=Ro,X.defineCustomElement=ko,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));
5
+ `);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(w=>{const g=[];for(let y=0;y<w.length;y++){const m=w[y]["s-nr"]||void 0;m&&m.isConnected&&g.push(m)}return g})(v.childNodes)).forEach((w=>{h===he(w)&&p.push(w)})),a?p.filter((w=>w.nodeType===1)):p}).bind(f);f.assignedElements=u(!0),f.assignedNodes=u(!1)})(s),c=e&&e.m&&e.m[o],c&&c.O===i.O&&e.S&&Rt(e.S)),s},Rt=e=>{C.i|=1;const t=e.closest(G.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of o?n.reverse():n)i["s-sh"]!=null&&(_(t,i,o??null),i["s-sh"]=void 0,Te=!0)}C.i&=-2},Re=(e,t)=>{C.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===G&&o.push(n)}for(let n=o.length-1;n>=0;n--){const i=o[n];i["s-hn"]!==G&&i["s-ol"]&&(_(me(i).parentNode,i,me(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Re(i,t)}C.i&=-2},kt=(e,t,o,n,i,s)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===G&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);i<=s;++i)n[i]&&(l=Ne(null,o,i),l&&(n[i].S=l,_(c,l,me(t))))},Lt=(e,t,o)=>{for(let n=t;n<=o;++n){const i=e[n];if(i){const s=i.S;$t(i),s&&(Ce=!0,s["s-ol"]?s["s-ol"].remove():Re(s,!0),s.remove())}}},ke=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),me=e=>e&&e["s-ol"]||e,se=(e,t,o=!1)=>{const n=t.S=e.S,i=e.m,s=t.m,l=t.O,c=t.h;let r;c==null?(R=l==="svg"||l!=="foreignObject"&&R,l!=="slot"||pe||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Rt(t.S.parentElement)),Ye(e,t,R),i!==null&&s!==null?((f,u,a,d,p=!1)=>{let h,v,w=0,g=0,y=0,m=0,x=u.length-1,b=u[0],S=u[x],E=d.length-1,A=d[0],T=d[E];const L=a.O==="template"?f.content:f;for(;w<=x&&g<=E;)if(b==null)b=u[++w];else if(S==null)S=u[--x];else if(A==null)A=d[++g];else if(T==null)T=d[--E];else if(ke(b,A,p))se(b,A,p),b=u[++w],A=d[++g];else if(ke(S,T,p))se(S,T,p),S=u[--x],T=d[--E];else if(ke(b,T,p))b.O!=="slot"&&T.O!=="slot"||Re(b.S.parentNode,!1),se(b,T,p),_(L,b.S,S.S.nextSibling),b=u[++w],T=d[--E];else if(ke(S,A,p))b.O!=="slot"&&T.O!=="slot"||Re(S.S.parentNode,!1),se(S,A,p),_(L,S.S,b.S),S=u[--x],A=d[++g];else{for(y=-1,m=w;m<=x;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){y=m;break}y>=0?(v=u[y],v.O!==A.O?h=Ne(u&&u[g],a,y):(se(v,A,p),u[y]=void 0,h=v.S),A=d[++g]):(h=Ne(u&&u[g],a,g),A=d[++g]),h&&_(me(b.S).parentNode,h,me(b.S))}w>x?kt(f,d[E+1]==null?null:d[E+1].S,a,d,g,E):g>E&&Lt(u,w,x)})(n,i,t,s,o):s!==null?(e.h!==null&&(n.textContent=""),kt(n,null,t,s,0,s.length-1)):!o&&i!==null&&Lt(i,0,i.length-1),R&&l==="svg"&&(R=!1)):(r=n["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(n.data=c)},V=[],_t=e=>{let t,o,n;const i=e.__childNodes||e.childNodes;for(const s of i){if(s["s-sr"]&&(t=s["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=s["s-sn"];for(n=o.length-1;n>=0;n--)if(t=o[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===s["s-hn"]||t["s-sh"]&&t["s-sh"]===s["s-hn"]))if(bt(t,l)){let c=V.find((r=>r.k===t));Ce=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=s["s-hn"],c.N=s):(t["s-sh"]=s["s-hn"],V.push({N:s,k:t})),t["s-sr"]&&V.map((r=>{bt(r.k,t["s-sn"])&&(c=V.find((f=>f.k===t)),c&&!r.N&&(r.N=c.N))}))}else V.some((c=>c.k===t))||V.push({k:t})}s.nodeType===1&&_t(s)}},$t=e=>{e.v&&e.v.ref&&Ge.push((()=>e.v.ref(null))),e.m&&e.m.map($t)},xn=(e,t)=>{Ze.push((()=>e(t)))},_=(e,t,o,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:i}=(function(s,l){var c;if(!(l=l||((c=s["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=s["s-sn"]=he(s)||"";return{slotNode:Ie(Ue(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},Sn=(e,t,o=!1)=>{var n,i,s,l,c;const r=e.$hostElement$,f=e.o,u=e.M||Ae(null,null);var a;const d=(a=t)&&a.O===mn?t:ie(null,null,t);if(G=r.tagName,f.C&&(d.v=d.v||{},f.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=u.S=r.shadowRoot||r,pe=!(!(1&f.i)||128&f.i),qe=r["s-cr"],Ce=!1,se(u,d,o),C.i|=1,Te){_t(d.S);for(const p of V){const h=p.k;if(!h["s-ol"]&&O.document){const v=O.document.createTextNode("");v["s-nr"]=h,_(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of V){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(n=h.hidden)!=null&&n),v){const w=v.parentNode;let g=v.nextSibling;if(g&&g.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(s=y["s-nr"])!=null?s:null;if(m&&m["s-sn"]===h["s-sn"]&&w===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){g=m;break}}y=y.previousSibling}}if((!g&&w!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==g)&&h!==g){if(_(w,h,g,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=O.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,_(h.parentNode,y,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(l=h["s-ih"])!=null&&l)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(Ce&&wt(d.S),C.i&=-2,V.length=0,!pe&&!(1&f.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==G&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=O.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],_(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}qe=void 0,Ge.forEach((p=>p())),Ge.length=0,Ze.forEach((p=>p())),Ze.length=0},Pt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(o-1,1),n()})))}},Ke=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Pt(e,e.R);const o=()=>En(e,t);if(!t)return dn(o);queueMicrotask((()=>{o()}))},En=(e,t)=>{const o=e.$hostElement$,n=o;if(!n)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=ge(n,t?"componentWillLoad":"componentWillUpdate",void 0,o),i=Dt(i,(()=>ge(n,"componentWillRender",void 0,o))),Dt(i,(()=>An(e,n,t)))},Dt=(e,t)=>On(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),On=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",An=async(e,t,o)=>{var n;const i=e.$hostElement$,s=i["s-rc"];o&&(l=>{const c=l.o,r=l.$hostElement$,f=c.i,u=((a,d)=>{var p,h,v;const w=xt(d),g=Oe.get(w);if(!O.document)return w;if(a=a.nodeType===11?a:O.document,g)if(typeof g=="string"){let y,m=z.get(a=a.head||a);if(m||z.set(a,m=new Set),!m.has(w)){y=O.document.createElement("style"),y.textContent=g;const x=(p=C._)!=null?p:(function(){var b,S,E;return(E=(S=(b=O.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:S.getAttribute("content"))!=null?E:void 0})();if(x!=null&&y.setAttribute("nonce",x),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),S=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(y,S?.parentNode===a?S:null)}else if("host"in a)if(je){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(g),Ve?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=g+b.textContent:a.prepend(y)}else a.append(y);1&d.i&&a.insertBefore(y,null),4&d.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(w)}}else{let y=z.get(a);if(y||z.set(a,y=new Set),!y.has(w)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let x;if(g.constructor===m.CSSStyleSheet)x=g;else{x=new m.CSSStyleSheet;for(let b=0;b<g.cssRules.length;b++)x.insertRule(g.cssRules[b].cssText,b)}Ve?a.adoptedStyleSheets.push(x):a.adoptedStyleSheets=[...a.adoptedStyleSheets,x],y.add(w)}}return w})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&f&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),Cn(e,t,i,o),s&&(s.map((l=>l())),i["s-rc"]=void 0);{const l=(n=i["s-p"])!=null?n:[],c=()=>Tn(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},Cn=(e,t,o,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,Sn(e,t,n)}catch(i){Y(i,e.$hostElement$)}return null},Tn=e=>{const t=e.$hostElement$,o=t,n=e.R;ge(o,"componentDidRender",void 0,t),64&e.i?ge(o,"componentDidUpdate",void 0,t):(e.i|=64,Rn(t),ge(o,"componentDidLoad",void 0,t),e.L(t),n||Nn()),e.A&&(e.A(),e.A=void 0),512&e.i&&ze((()=>Ke(e,!1))),e.i&=-517},Nn=()=>{ze((()=>vn(O,"appload",{detail:{namespace:"gids-core-web"}})))},ge=(e,t,o,n)=>{if(e&&e[t])try{return e[t](o)}catch(i){Y(i,n)}},Rn=e=>e.classList.add("hydrated"),Mt=(e,t,o,n)=>{const i=j(e);if(!i)return;const s=e,l=i.l.get(t),c=i.i,r=s;o=Ot(o,n.t[t][0],!!(64&n.i));const f=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!f){if(i.l.set(t,o),n.F){const u=n.F[t];u&&u.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,l,t):i.T.push((()=>{i.D[d](o,l,t)})))}catch(d){Y(d,s)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,l,t)===!1&&!(16&c))return;16&c||Ke(i,!1)}}},kn=(e,t,o)=>{var n,i;const s=e.prototype;64&t.i&&1&o&&cn.forEach((l=>{const c=s[l];Object.defineProperty(s,l,{value(...r){var f;const u=j(this),a=this;a?typeof c=="function"&&c.call(a,...r):(f=u?.H)==null||f.then((d=>{const p=d[l];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Et(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((n=t.t)!=null?n:{});l.map((([c,[r]])=>{if(31&r||32&r){const{get:f,set:u}=oe(s,c)||{};f&&(t.t[c][0]|=2048),u&&(t.t[c][0]|=4096),Object.defineProperty(s,c,{get(){return f?f.apply(this):(a=c,j(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(s,c,{set(a){const d=j(this);if(d){if(u)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),u.apply(this,[Ot(a,r,!!(64&t.i))]),void Mt(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Mt(this,c,a,t)}}})}}));{const c=new Map;s.attributeChangedCallback=function(r,f,u){C.jmp((()=>{var a;const d=c.get(r),p=j(this);if(this.hasOwnProperty(d),s.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==u)return;if(d==null){const y=p?.i;if(p&&y&&!(8&y)&&u!==f){const m=this,x=(a=t.F)==null?void 0:a[r];x?.forEach((b=>{const[[S,E]]=Object.entries(b);m[S]!=null&&(128&y||1&E)&&m[S].call(m,u,f,r)}))}return}const h=l.find((([y])=>y===d)),v=h&&4&h[1][0],w=v&&u===null&&this[d]===void 0;v&&(u=u!==null&&u!=="false");const g=Object.getOwnPropertyDescriptor(s,d);w||u==this[d]||g.get&&!g.set||(this[d]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...l.filter((([r,f])=>31&f[0])).map((([r,f])=>{var u;const a=f[1]||r;return c.set(a,r),512&f[0]&&((u=t.C)==null||u.push([r,a])),a}))]))}}return e},Ln=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=Et(e.F),o.P=e.P,o.U=e.U,o.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((s,l)=>{const c={i:0,$hostElement$:s,o:l,l:new Map,B:new Map};c.H=new Promise((f=>c.L=f)),s["s-p"]=[],s["s-rc"]=[];const r=c;s.__stencil__getHostRef=()=>r,512&l.i&&rn(s,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const s=j(this);if(!s)return;Ft(this,s,o.W),this.__hasHostListenerAttached=!0}(s=>{if(!(1&C.i)){const l=j(s);if(!l)return;const c=l.o;if(1&l.i)Ft(s,l,c.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&c.i&&(r=>{if(!O.document)return;const f=r["s-cr"]=O.document.createComment("");f["s-cn"]=!0,_(r,f,r.firstChild)})(s);{let r=s;for(;r=r.parentNode||r.host;)if(r["s-p"]){Pt(l,l.R=r);break}}c.t&&Object.entries(c.t).map((([r,[f]])=>{if(31&f&&Object.prototype.hasOwnProperty.call(s,r)){const u=s[r];delete s[r],s[r]=u}})),(async(r,f,u)=>{let a;try{if(!(32&f.i)&&(f.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>f.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=xt(u);Oe.has(v)||((w,g,y)=>{let m=Oe.get(w);je&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=g:m.replaceSync(g)):m=g,Oe.set(w,m)})(v,h,!!(1&u.i))}const d=f.R,p=()=>Ke(f,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){Y(d,r),f.A&&(f.A(),f.A=void 0),f.L&&f.L(r)}})(s,l,c)}}})(this),n&&n.call(this)},disconnectedCallback(){(async s=>{if(!(1&C.i)){const l=j(s);l?.V&&(l.V.map((c=>c())),l.V=void 0)}z.has(s)&&z.delete(s),s.shadowRoot&&z.has(s.shadowRoot)&&z.delete(s.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else hn.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),kn(e,o,3)}catch(n){return Y(n),e}},_n=(e,t)=>t,Ft=(e,t,o)=>{o&&O.document&&o.map((([n,i,s])=>{const l=Pn(O.document,e,n),c=$n(t,s),r=Dn(n);C.ael(l,i,c,r),(t.V=t.V||[]).push((()=>C.rel(l,i,c,r)))}))},$n=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(n){Y(n,e.$hostElement$)}},Pn=(e,t,o)=>8&o?O:t,Dn=e=>fn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function _o(e){return e}const le=Math.min,Z=Math.max,Le=Math.round,_e=Math.floor,F=e=>({x:e,y:e}),Mn={left:"right",right:"left",bottom:"top",top:"bottom"};function Je(e,t,o){return Z(e,le(t,o))}function ye(e,t){return typeof e=="function"?e(t):e}function K(e){return e.split("-")[0]}function ve(e){return e.split("-")[1]}function Wt(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function I(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function et(e){return Wt(I(e))}function Fn(e,t,o){o===void 0&&(o=!1);const n=ve(e),i=et(e),s=Qe(i);let l=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=$e(l)),[l,$e(l)]}function Wn(e){const t=$e(e);return[tt(e),t,tt(t)]}function tt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const jt=["left","right"],Vt=["right","left"],jn=["top","bottom"],Vn=["bottom","top"];function Hn(e,t,o){switch(e){case"top":case"bottom":return o?t?Vt:jt:t?jt:Vt;case"left":case"right":return t?jn:Vn;default:return[]}}function Bn(e,t,o,n){const i=ve(e);let s=Hn(K(e),o==="start",n);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(tt)))),s}function $e(e){const t=K(e);return Mn[t]+e.slice(t.length)}function zn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ht(e){return typeof e!="number"?zn(e):{top:e,right:e,bottom:e,left:e}}function Pe(e){const{x:t,y:o,width:n,height:i}=e;return{width:n,height:i,top:o,left:t,right:t+n,bottom:o+i,x:t,y:o}}function Bt(e,t,o){let{reference:n,floating:i}=e;const s=I(t),l=et(t),c=Qe(l),r=K(t),f=s==="y",u=n.x+n.width/2-i.width/2,a=n.y+n.height/2-i.height/2,d=n[c]/2-i[c]/2;let p;switch(r){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:a};break;case"left":p={x:n.x-i.width,y:a};break;default:p={x:n.x,y:n.y}}switch(ve(t)){case"start":p[l]-=d*(o&&f?-1:1);break;case"end":p[l]+=d*(o&&f?-1:1);break}return p}async function In(e,t){var o;t===void 0&&(t={});const{x:n,y:i,platform:s,rects:l,elements:c,strategy:r}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:a="floating",altBoundary:d=!1,padding:p=0}=ye(t,e),h=Ht(p),w=c[d?a==="floating"?"reference":"floating":a],g=Pe(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(w)))==null||o?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:f,rootBoundary:u,strategy:r})),y=a==="floating"?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,m=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),x=await(s.isElement==null?void 0:s.isElement(m))?await(s.getScale==null?void 0:s.getScale(m))||{x:1,y:1}:{x:1,y:1},b=Pe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:r}):y);return{top:(g.top-b.top+h.top)/x.y,bottom:(b.bottom-g.bottom+h.bottom)/x.y,left:(g.left-b.left+h.left)/x.x,right:(b.right-g.right+h.right)/x.x}}const Un=50,qn=async(e,t,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:l}=o,c=l.detectOverflow?l:{...l,detectOverflow:In},r=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:a}=Bt(f,n,r),d=n,p=0;const h={};for(let v=0;v<s.length;v++){const w=s[v];if(!w)continue;const{name:g,fn:y}=w,{x:m,y:x,data:b,reset:S}=await y({x:u,y:a,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:c,elements:{reference:e,floating:t}});u=m??u,a=x??a,h[g]={...h[g],...b},S&&p<Un&&(p++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(f=S.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:u,y:a}=Bt(f,d,r)),v=-1)}return{x:u,y:a,placement:d,strategy:i,middlewareData:h}},Xn=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:i,rects:s,platform:l,elements:c,middlewareData:r}=t,{element:f,padding:u=0}=ye(e,t)||{};if(f==null)return{};const a=Ht(u),d={x:o,y:n},p=et(i),h=Qe(p),v=await l.getDimensions(f),w=p==="y",g=w?"top":"left",y=w?"bottom":"right",m=w?"clientHeight":"clientWidth",x=s.reference[h]+s.reference[p]-d[p]-s.floating[h],b=d[p]-s.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let E=S?S[m]:0;(!E||!await(l.isElement==null?void 0:l.isElement(S)))&&(E=c.floating[m]||s.floating[h]);const A=x/2-b/2,T=E/2-v[h]/2-1,L=le(a[g],T),Se=le(a[y],T),te=L,Ee=E-v[h]-Se,N=E/2-v[h]/2+A,ne=Je(te,N,Ee),B=!r.arrow&&ve(i)!=null&&N!==ne&&s.reference[h]/2-(N<te?L:Se)-v[h]/2<0,D=B?N<te?N-te:N-Ee:0;return{[p]:d[p]+D,data:{[p]:ne,centerOffset:N-ne-D,...B&&{alignmentOffset:D}},reset:B}}}),Yn=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:r,elements:f}=t,{mainAxis:u=!0,crossAxis:a=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...w}=ye(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=K(i),y=I(c),m=K(c)===c,x=await(r.isRTL==null?void 0:r.isRTL(f.floating)),b=d||(m||!v?[$e(c)]:Wn(c)),S=h!=="none";!d&&S&&b.push(...Bn(c,v,h,x));const E=[c,...b],A=await r.detectOverflow(t,w),T=[];let L=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&T.push(A[g]),a){const N=Fn(i,l,x);T.push(A[N[0]],A[N[1]])}if(L=[...L,{placement:i,overflows:T}],!T.every(N=>N<=0)){var Se,te;const N=(((Se=s.flip)==null?void 0:Se.index)||0)+1,ne=E[N];if(ne&&(!(a==="alignment"?y!==I(ne):!1)||L.every(M=>I(M.placement)===y?M.overflows[0]>0:!0)))return{data:{index:N,overflows:L},reset:{placement:ne}};let B=(te=L.filter(D=>D.overflows[0]<=0).sort((D,M)=>D.overflows[1]-M.overflows[1])[0])==null?void 0:te.placement;if(!B)switch(p){case"bestFit":{var Ee;const D=(Ee=L.filter(M=>{if(S){const q=I(M.placement);return q===y||q==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(q=>q>0).reduce((q,Lo)=>q+Lo,0)]).sort((M,q)=>M[1]-q[1])[0])==null?void 0:Ee[0];D&&(B=D);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}},Gn=new Set(["left","top"]);async function Zn(e,t){const{placement:o,platform:n,elements:i}=e,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),l=K(o),c=ve(o),r=I(o)==="y",f=Gn.has(l)?-1:1,u=s&&r?-1:1,a=ye(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof a=="number"?{mainAxis:a,crossAxis:0,alignmentAxis:null}:{mainAxis:a.mainAxis||0,crossAxis:a.crossAxis||0,alignmentAxis:a.alignmentAxis};return c&&typeof h=="number"&&(p=c==="end"?h*-1:h),r?{x:p*u,y:d*f}:{x:d*f,y:p*u}}const Kn=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:i,y:s,placement:l,middlewareData:c}=t,r=await Zn(t,e);return l===((o=c.offset)==null?void 0:o.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+r.x,y:s+r.y,data:{...r,placement:l}}}}},Jn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:i,platform:s}=t,{mainAxis:l=!0,crossAxis:c=!1,limiter:r={fn:g=>{let{x:y,y:m}=g;return{x:y,y:m}}},...f}=ye(e,t),u={x:o,y:n},a=await s.detectOverflow(t,f),d=I(K(i)),p=Wt(d);let h=u[p],v=u[d];if(l){const g=p==="y"?"top":"left",y=p==="y"?"bottom":"right",m=h+a[g],x=h-a[y];h=Je(m,h,x)}if(c){const g=d==="y"?"top":"left",y=d==="y"?"bottom":"right",m=v+a[g],x=v-a[y];v=Je(m,v,x)}const w=r.fn({...t,[p]:h,[d]:v});return{...w,data:{x:w.x-o,y:w.y-n,enabled:{[p]:l,[d]:c}}}}}};function De(){return typeof window<"u"}function re(e){return zt(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(zt(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function zt(e){return De()?e instanceof Node||e instanceof k(e).Node:!1}function $(e){return De()?e instanceof Element||e instanceof k(e).Element:!1}function H(e){return De()?e instanceof HTMLElement||e instanceof k(e).HTMLElement:!1}function It(e){return!De()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof k(e).ShadowRoot}function we(e){const{overflow:t,overflowX:o,overflowY:n,display:i}=P(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&i!=="inline"&&i!=="contents"}function Qn(e){return/^(table|td|th)$/.test(re(e))}function Me(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const eo=/transform|translate|scale|rotate|perspective|filter/,to=/paint|layout|strict|content/,J=e=>!!e&&e!=="none";let nt;function ot(e){const t=$(e)?P(e):e;return J(t.transform)||J(t.translate)||J(t.scale)||J(t.rotate)||J(t.perspective)||!it()&&(J(t.backdropFilter)||J(t.filter))||eo.test(t.willChange||"")||to.test(t.contain||"")}function no(e){let t=U(e);for(;H(t)&&!ce(t);){if(ot(t))return t;if(Me(t))return null;t=U(t)}return null}function it(){return nt==null&&(nt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),nt}function ce(e){return/^(html|body|#document)$/.test(re(e))}function P(e){return k(e).getComputedStyle(e)}function Fe(e){return $(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function U(e){if(re(e)==="html")return e;const t=e.assignedSlot||e.parentNode||It(e)&&e.host||W(e);return It(t)?t.host:t}function Ut(e){const t=U(e);return ce(t)?e.ownerDocument?e.ownerDocument.body:e.body:H(t)&&we(t)?t:Ut(t)}function be(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const i=Ut(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),l=k(i);if(s){const c=st(l);return t.concat(l,l.visualViewport||[],we(i)?i:[],c&&o?be(c):[])}else return t.concat(i,be(i,[],o))}function st(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function qt(e){const t=P(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=H(e),s=i?e.offsetWidth:o,l=i?e.offsetHeight:n,c=Le(o)!==s||Le(n)!==l;return c&&(o=s,n=l),{width:o,height:n,$:c}}function lt(e){return $(e)?e:e.contextElement}function ae(e){const t=lt(e);if(!H(t))return F(1);const o=t.getBoundingClientRect(),{width:n,height:i,$:s}=qt(t);let l=(s?Le(o.width):o.width)/n,c=(s?Le(o.height):o.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const oo=F(0);function Xt(e){const t=k(e);return!it()||!t.visualViewport?oo:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function io(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==k(e)?!1:t}function Q(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),s=lt(e);let l=F(1);t&&(n?$(n)&&(l=ae(n)):l=ae(e));const c=io(s,o,n)?Xt(s):F(0);let r=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,u=i.width/l.x,a=i.height/l.y;if(s){const d=k(s),p=n&&$(n)?k(n):n;let h=d,v=st(h);for(;v&&n&&p!==h;){const w=ae(v),g=v.getBoundingClientRect(),y=P(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*w.x,x=g.top+(v.clientTop+parseFloat(y.paddingTop))*w.y;r*=w.x,f*=w.y,u*=w.x,a*=w.y,r+=m,f+=x,h=k(v),v=st(h)}}return Pe({width:u,height:a,x:r,y:f})}function We(e,t){const o=Fe(e).scrollLeft;return t?t.left+o:Q(W(e)).left+o}function Yt(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-We(e,o),i=o.top+t.scrollTop;return{x:n,y:i}}function so(e){let{elements:t,rect:o,offsetParent:n,strategy:i}=e;const s=i==="fixed",l=W(n),c=t?Me(t.floating):!1;if(n===l||c&&s)return o;let r={scrollLeft:0,scrollTop:0},f=F(1);const u=F(0),a=H(n);if((a||!a&&!s)&&((re(n)!=="body"||we(l))&&(r=Fe(n)),a)){const p=Q(n);f=ae(n),u.x=p.x+n.clientLeft,u.y=p.y+n.clientTop}const d=l&&!a&&!s?Yt(l,r):F(0);return{width:o.width*f.x,height:o.height*f.y,x:o.x*f.x-r.scrollLeft*f.x+u.x+d.x,y:o.y*f.y-r.scrollTop*f.y+u.y+d.y}}function lo(e){return Array.from(e.getClientRects())}function ro(e){const t=W(e),o=Fe(e),n=e.ownerDocument.body,i=Z(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Z(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let l=-o.scrollLeft+We(e);const c=-o.scrollTop;return P(n).direction==="rtl"&&(l+=Z(t.clientWidth,n.clientWidth)-i),{width:i,height:s,x:l,y:c}}const Gt=25;function co(e,t){const o=k(e),n=W(e),i=o.visualViewport;let s=n.clientWidth,l=n.clientHeight,c=0,r=0;if(i){s=i.width,l=i.height;const u=it();(!u||u&&t==="fixed")&&(c=i.offsetLeft,r=i.offsetTop)}const f=We(n);if(f<=0){const u=n.ownerDocument,a=u.body,d=getComputedStyle(a),p=u.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,h=Math.abs(n.clientWidth-a.clientWidth-p);h<=Gt&&(s-=h)}else f<=Gt&&(s+=f);return{width:s,height:l,x:c,y:r}}function ao(e,t){const o=Q(e,!0,t==="fixed"),n=o.top+e.clientTop,i=o.left+e.clientLeft,s=H(e)?ae(e):F(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,r=i*s.x,f=n*s.y;return{width:l,height:c,x:r,y:f}}function Zt(e,t,o){let n;if(t==="viewport")n=co(e,o);else if(t==="document")n=ro(W(e));else if($(t))n=ao(t,o);else{const i=Xt(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Pe(n)}function Kt(e,t){const o=U(e);return o===t||!$(o)||ce(o)?!1:P(o).position==="fixed"||Kt(o,t)}function fo(e,t){const o=t.get(e);if(o)return o;let n=be(e,[],!1).filter(c=>$(c)&&re(c)!=="body"),i=null;const s=P(e).position==="fixed";let l=s?U(e):e;for(;$(l)&&!ce(l);){const c=P(l),r=ot(l);!r&&c.position==="fixed"&&(i=null),(s?!r&&!i:!r&&c.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||we(l)&&!r&&Kt(e,l))?n=n.filter(u=>u!==l):i=c,l=U(l)}return t.set(e,n),n}function uo(e){let{element:t,boundary:o,rootBoundary:n,strategy:i}=e;const l=[...o==="clippingAncestors"?Me(t)?[]:fo(t,this._c):[].concat(o),n],c=Zt(t,l[0],i);let r=c.top,f=c.right,u=c.bottom,a=c.left;for(let d=1;d<l.length;d++){const p=Zt(t,l[d],i);r=Z(p.top,r),f=le(p.right,f),u=le(p.bottom,u),a=Z(p.left,a)}return{width:f-a,height:u-r,x:a,y:r}}function ho(e){const{width:t,height:o}=qt(e);return{width:t,height:o}}function po(e,t,o){const n=H(t),i=W(t),s=o==="fixed",l=Q(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const r=F(0);function f(){r.x=We(i)}if(n||!n&&!s)if((re(t)!=="body"||we(i))&&(c=Fe(t)),n){const p=Q(t,!0,s,t);r.x=p.x+t.clientLeft,r.y=p.y+t.clientTop}else i&&f();s&&!n&&i&&f();const u=i&&!n&&!s?Yt(i,c):F(0),a=l.left+c.scrollLeft-r.x-u.x,d=l.top+c.scrollTop-r.y-u.y;return{x:a,y:d,width:l.width,height:l.height}}function rt(e){return P(e).position==="static"}function Jt(e,t){if(!H(e)||P(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return W(e)===o&&(o=o.ownerDocument.body),o}function Qt(e,t){const o=k(e);if(Me(e))return o;if(!H(e)){let i=U(e);for(;i&&!ce(i);){if($(i)&&!rt(i))return i;i=U(i)}return o}let n=Jt(e,t);for(;n&&Qn(n)&&rt(n);)n=Jt(n,t);return n&&ce(n)&&rt(n)&&!ot(n)?o:n||no(e)||o}const mo=async function(e){const t=this.getOffsetParent||Qt,o=this.getDimensions,n=await o(e.floating);return{reference:po(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function go(e){return P(e).direction==="rtl"}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:so,getDocumentElement:W,getClippingRect:uo,getOffsetParent:Qt,getElementRects:mo,getClientRects:lo,getDimensions:ho,getScale:ae,isElement:$,isRTL:go};function en(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yo(e,t){let o=null,n;const i=W(e);function s(){var c;clearTimeout(n),(c=o)==null||c.disconnect(),o=null}function l(c,r){c===void 0&&(c=!1),r===void 0&&(r=1),s();const f=e.getBoundingClientRect(),{left:u,top:a,width:d,height:p}=f;if(c||t(),!d||!p)return;const h=_e(a),v=_e(i.clientWidth-(u+d)),w=_e(i.clientHeight-(a+p)),g=_e(u),m={rootMargin:-h+"px "+-v+"px "+-w+"px "+-g+"px",threshold:Z(0,le(1,r))||1};let x=!0;function b(S){const E=S[0].intersectionRatio;if(E!==r){if(!x)return l();E?l(!1,E):n=setTimeout(()=>{l(!1,1e-7)},1e3)}E===1&&!en(f,e.getBoundingClientRect())&&l(),x=!1}try{o=new IntersectionObserver(b,{...m,root:i.ownerDocument})}catch{o=new IntersectionObserver(b,m)}o.observe(e)}return l(!0),s}function vo(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:r=!1}=n,f=lt(e),u=i||s?[...f?be(f):[],...t?be(t):[]]:[];u.forEach(g=>{i&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const a=f&&c?yo(f,o):null;let d=-1,p=null;l&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===f&&p&&t&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var m;(m=p)==null||m.observe(t)})),o()}),f&&!r&&p.observe(f),t&&p.observe(t));let h,v=r?Q(e):null;r&&w();function w(){const g=Q(e);v&&!en(v,g)&&o(),v=g,h=requestAnimationFrame(w)}return o(),()=>{var g;u.forEach(y=>{i&&y.removeEventListener("scroll",o),s&&y.removeEventListener("resize",o)}),a?.(),(g=p)==null||g.disconnect(),p=null,r&&cancelAnimationFrame(h)}}const wo=Kn,bo=Jn,xo=Yn,So=Xn,Eo=(e,t,o)=>{const n=new Map,i={platform:ct,...o},s={...i.platform,_c:n};return qn(e,t,{...i,platform:s})};var xe;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover"})(xe||(xe={}));function tn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Oo=/transform|translate|scale|rotate|perspective|filter/,Ao=/paint|layout|strict|content/,ee=e=>!!e&&e!=="none";let at;function Co(e){const t=(o=e,typeof window<"u"&&(o instanceof Element||o instanceof tn(o).Element)?tn(n=e).getComputedStyle(n):e);var o,n;return ee(t.transform)||ee(t.translate)||ee(t.scale)||ee(t.rotate)||ee(t.perspective)||(at==null&&(at=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!at&&(ee(t.backdropFilter)||ee(t.filter)))||Oo.test(t.willChange||"")||Ao.test(t.contain||"")}function To(e){return(function(t){for(let o=t;o;o=ft(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=ft(t);o;o=ft(o)){if(!(o instanceof Element))continue;const n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||Co(n)||o.tagName==="BODY"))return o}return null})(e)}function ft(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}const ue=class ue{constructor(t,o){this.el=t,this.config=o,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=o.placement,this.cleanup=null}setCommonTimingConfig(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250}initialize(){this.setCommonTimingConfig(),this.floatingElement=this.el.shadowRoot?.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?this.el.shadowRoot?.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElementFromSlot(this.el.shadowRoot),this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&this.setCommonTimingConfig(),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=vo(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=[wo(this.offset)],o=xo({mainAxis:!0,crossAxis:!this.config.lockToMainAxis&&"alignment",fallbackAxisSideDirection:"end",padding:this.offset}),n=this.config.elementType===xe.POPOVER,i=bo({padding:this.offset,mainAxis:this.config.elementType===xe.TOOLTIP||n&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.placement.includes("-")?t.push(o,i):t.push(i,o),this.config.showArrow!==!1&&this.arrowEl&&t.push(So({element:this.arrowEl,padding:this.offset})),Eo(this.anchorElement,this.floatingElement,{placement:this.config.placement,strategy:"fixed",middleware:t,platform:{...ct,getOffsetParent:s=>ct.getOffsetParent(s,To)}}).then((({x:s,y:l,middlewareData:c,placement:r})=>{if(n){const d=r.startsWith("left")||r.startsWith("right"),p=r.startsWith("top")||r.startsWith("bottom"),h=this.isAnchorInViewport(),v=!!p||(d?h:this.popoverMainAxisEnabled);if(v!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=v,void this.updatePosition()}this.currentPlacement=r,Object.assign(this.floatingElement.style,{left:`${s}px`,top:`${l}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const f=r.split("-")[0]??"bottom",u={top:"bottom",right:"left",bottom:"top",left:"right"}[f],{arrowZIndex:a}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const d=this.arrowEl.offsetWidth,{x:p,y:h}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(f)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(f)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:h!==null?`${h}px`:"",right:"",bottom:"",[u]:-d/2+"px",transform:"rotate(45deg)",zIndex:`${a}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),o=Number.parseInt(t,10),n=Number.isNaN(o)?-1:o-1,i=Number.isNaN(o)?n+1:o;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((s=>{if(!(s instanceof HTMLElement)||s===this.arrowEl)return;const l=s.style.zIndex||(window.getComputedStyle?.(s).zIndex??""),c=Number.parseInt(l,10),r=window.getComputedStyle?.(s).position??"";(l===""||l==="auto"||Number.isNaN(c)||c<i)&&(s.style.zIndex=`${i}`,r!==""&&r!=="static"||(s.style.position="relative"))})),{contentZIndex:i,arrowZIndex:n}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),ue.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=ue.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),ue.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),o=window.innerHeight||document.documentElement?.clientHeight||0,n=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=o-i&&t.right>=0&&t.left<=n}};ue.currentFloatingElements=new Map;let ut=ue;const fe=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let nn=!1;fe&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(fe):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let dt=null;const ht=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{on()})):void 0,on=()=>{if(fe===void 0)return!1;const e=(()=>{if(fe===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const n=document.styleSheets.item(o);if(n)try{let i=-1,s=0;for(let l=0;l<n.cssRules.length;l++){const c=n.cssRules.item(l);if(c?.cssText.startsWith("gids-global-styles-start"))i=l;else if(i>-1){if(c?.cssText.startsWith("gids-global-styles-end")){s=l-i+1;break}t.push(c)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:s,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ht!==void 0&&t!==dt&&(dt&&ht.disconnect(),t instanceof Element&&ht.observe(t,{childList:!0,characterData:!0,subtree:!0}),dt=t),fe.replaceSync((o=>o.rules.map((n=>n.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:s}=o;for(let l=0;l<i;l++)s.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},No=()=>(nn||(nn=on()),fe),sn=Ln(class extends an{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.showWithoutDelay=!1,this.lockToMainAxis=!1,this.handleShowEvent=()=>{this.floatingElementManager.showAfterDelay()},this.handleHideEvent=()=>{this.floatingElementManager.hideAfterDelay()}}connectedCallback(){const e=No();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){this.floatingElementManager=new ut(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:this.showWithoutDelay,lockToMainAxis:this.lockToMainAxis,floatingElementSelector:"#tooltip",arrowElementSelector:"#arrow",visibilityClass:"gids-tooltip--visible",elementType:xe.TOOLTIP,getAnchorElementFromSlot:e=>e.querySelector("slot")?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("mouseenter",this.handleShowEvent),e.addEventListener("focus",this.handleShowEvent),e.addEventListener("mouseleave",this.handleHideEvent),e.addEventListener("blur",this.handleHideEvent))}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}showWithoutDelayChanged(e){this.floatingElementManager?.updateConfig({showWithoutDelay:e})}lockToMainAxisChanged(e){this.floatingElementManager?.updateConfig({lockToMainAxis:e})}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&(e.removeEventListener("mouseenter",this.handleShowEvent),e.removeEventListener("focus",this.handleShowEvent),e.removeEventListener("mouseleave",this.handleHideEvent),e.removeEventListener("blur",this.handleHideEvent))}render(){return ie(_n,{key:"b1339ba783e86f33840b20038f900b09ba70e61f"},ie("slot",{key:"1103b8056a880282cad202905f8a606ffd8ed119"}),ie("span",{key:"ad2f4fc135f7d26d7224e134149f2075f66bed4e",id:"tooltip",part:"tooltip",role:"tooltip"},ie("span",{key:"c1edf194581bd0696b32b92657a59bc6f876774d",id:"arrow"}),this.tooltipText))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-tooltip{--gidsTooltip-background:var(--gids-color-background-neutral-bold-default);--gidsTooltip-text-color:var(--gids-color-text-inverse);--gidsTooltip-padding:var(--gids-padding-vertical-edge-to-element-100) var(--gids-padding-horizontal-edge-to-element-200);--gidsTooltip-border-radius:var(--gids-border-radius-sm);--gidsTooltip-tip-border-radius:2px;--gidsTooltip-tip-size:12px;--gidsFloatingElement-background:var(--gidsTooltip-background);--gidsFloatingElement-tip-border-radius:var(--gidsTooltip-tip-border-radius)}[part=tooltip]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;hyphens:auto;background-color:var(--gidsTooltip-background);color:var(--gidsTooltip-text-color);padding:var(--gidsTooltip-padding);border-radius:var(--gidsTooltip-border-radius);z-index:1000;opacity:0;pointer-events:none}[part=tooltip].gids-tooltip--visible{pointer-events:initial;opacity:1}[part=tooltip] span#arrow{position:absolute;height:var(--gidsTooltip-tip-size);width:var(--gidsTooltip-tip-size)}"}},[257,"gids-tooltip",{htmlFor:[513,"for"],tooltipText:[513,"tooltip-text"],placement:[513],showWithoutDelay:[516,"show-without-delay"],lockToMainAxis:[4,"lock-to-main-axis"]},void 0,{placement:[{placementChanged:0}],showWithoutDelay:[{showWithoutDelayChanged:0}],lockToMainAxis:[{lockToMainAxisChanged:0}],htmlFor:[{htmlForChanged:0}]}]);function ln(){typeof customElements<"u"&&["gids-tooltip"].forEach((e=>{e==="gids-tooltip"&&(customElements.get(e)||customElements.define(e,sn))}))}ln();const Ro=sn,ko=ln;X.GidsTooltip=Ro,X.defineCustomElement=ko,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})}));