@swisspost/design-system-components 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs.js +17 -17
- package/dist/cjs/{package-3ed88bb9.js → package-50bf984c.js} +1 -1
- package/dist/cjs/{post-accordion-9ef382e8.js → post-accordion-a1a67fe9.js} +1 -1
- package/dist/cjs/{post-accordion-item-5f685bee.js → post-accordion-item-5cee82d3.js} +1 -1
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{post-alert-88adc668.js → post-alert-ffd5a819.js} +1 -1
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-card-control-c6e5c427.js → post-card-control-b2088c83.js} +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-1764e6dc.js → post-collapsible-trigger-02e00228.js} +10 -3
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/{post-icon-f735da00.js → post-icon-6ee76a68.js} +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/{post-logo-2cd8ae98.js → post-logo-65ccaf3b.js} +1 -1
- package/dist/cjs/post-logo.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-36c854a4.js → post-popover-79dc99ac.js} +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-popovercontainer-cb4793c1.js → post-popovercontainer-143415c5.js} +1 -1
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-d5073d8d.js → post-rating-fceee056.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-header-b756d9b1.js → post-tab-header-7b1c0cc2.js} +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-97b79ecd.js → post-tab-panel-09044912.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-834497f2.js → post-tabs-7e910585.js} +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-c70fb945.js → post-tag-975194dd.js} +1 -1
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-20ebe011.js → post-tooltip-0a620738.js} +2 -2
- package/dist/cjs/{post-tooltip-trigger-6f4c9748.js → post-tooltip-trigger-32910e44.js} +1 -1
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/animations/collapse.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +10 -3
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-collapsible2.js +9 -2
- package/dist/components/post-tooltip2.js +1 -1
- package/dist/docs.json +1 -1
- package/dist/esm/index.js +17 -17
- package/dist/esm/{package-983f957d.js → package-e199a39d.js} +1 -1
- package/dist/esm/{post-accordion-ad570427.js → post-accordion-35147f4e.js} +1 -1
- package/dist/esm/{post-accordion-item-4db0aa2a.js → post-accordion-item-e2dd3a5a.js} +1 -1
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-1e9fbdfa.js → post-alert-c643ddc8.js} +1 -1
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-card-control-ccb189a8.js → post-card-control-558c0eb2.js} +1 -1
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-45fe328a.js → post-collapsible-trigger-dab62771.js} +10 -3
- package/dist/esm/post-collapsible_2.entry.js +2 -2
- package/dist/esm/{post-icon-3fc4dd7d.js → post-icon-04077f8b.js} +1 -1
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/{post-logo-e6cdea13.js → post-logo-04f83c6f.js} +1 -1
- package/dist/esm/post-logo.entry.js +2 -2
- package/dist/esm/{post-popover-afdf4906.js → post-popover-a45d8ccf.js} +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-popovercontainer-b19b7606.js → post-popovercontainer-6b908f81.js} +1 -1
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/{post-rating-f60024fa.js → post-rating-dfd671c2.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/{post-tab-header-333e15d5.js → post-tab-header-35ee01d9.js} +1 -1
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-0ddb05a2.js → post-tab-panel-53a52f41.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-ab7853cf.js → post-tabs-dfdbfe58.js} +1 -1
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-4a7d14b9.js → post-tag-6b8fc996.js} +1 -1
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-c03cd719.js → post-tooltip-d1739fcd.js} +2 -2
- package/dist/esm/{post-tooltip-trigger-1fefc8ad.js → post-tooltip-trigger-25718071.js} +1 -1
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/{p-82ea24e7.js → p-0058b862.js} +1 -1
- package/dist/post-components/{p-eb1e7a49.js → p-08f23aa4.js} +1 -1
- package/dist/post-components/{p-8e555dda.js → p-0cd2e5d0.js} +1 -1
- package/dist/post-components/p-0e5efc5b.entry.js +1 -0
- package/dist/post-components/p-14b573f8.entry.js +1 -0
- package/dist/post-components/p-1c8656e9.entry.js +1 -0
- package/dist/post-components/{p-256453ca.js → p-1f440d9d.js} +1 -1
- package/dist/post-components/p-3792f15a.entry.js +1 -0
- package/dist/post-components/p-3dacfa68.entry.js +1 -0
- package/dist/post-components/p-5736d28f.entry.js +1 -0
- package/dist/post-components/{p-7d5b41d1.js → p-5be93321.js} +1 -1
- package/dist/post-components/{p-85c4d04f.js → p-5c26f706.js} +1 -1
- package/dist/post-components/p-664ff6f8.entry.js +1 -0
- package/dist/post-components/p-6c845f02.entry.js +1 -0
- package/dist/post-components/{p-a76c71bc.js → p-7171667d.js} +1 -1
- package/dist/post-components/p-79631d8f.entry.js +1 -0
- package/dist/post-components/p-7e0f3b4d.entry.js +1 -0
- package/dist/post-components/p-7fcf3c80.entry.js +1 -0
- package/dist/post-components/{p-1528b798.js → p-876f1954.js} +1 -1
- package/dist/post-components/p-97f1379e.js +1 -0
- package/dist/post-components/{p-fc3bfe08.js → p-9bf94cb3.js} +1 -1
- package/dist/post-components/p-9e89e8db.entry.js +1 -0
- package/dist/post-components/{p-4e68c514.js → p-abb4d5e4.js} +1 -1
- package/dist/post-components/{p-1a8f6c84.entry.js → p-b1fcc296.entry.js} +1 -1
- package/dist/post-components/p-b77e45f0.entry.js +1 -0
- package/dist/post-components/{p-3596035e.js → p-b963d836.js} +1 -1
- package/dist/post-components/{p-3272ebad.js → p-c8d1bd9a.js} +1 -1
- package/dist/post-components/p-dc027837.js +1 -0
- package/dist/post-components/p-e1a039ae.entry.js +1 -0
- package/dist/post-components/{p-bc294d0b.js → p-e76edf25.js} +1 -1
- package/dist/post-components/{p-61a7d216.js → p-e99c825b.js} +1 -1
- package/dist/post-components/{p-1386b77d.js → p-f62ba0e1.js} +1 -1
- package/dist/post-components/p-fdedcd9d.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/animations/collapse.d.ts +1 -0
- package/loaders/package.js +1 -1
- package/loaders/post-collapsible2.js +9 -2
- package/loaders/post-tooltip.js +1 -1
- package/package.json +2 -2
- package/dist/post-components/p-0a45da5e.entry.js +0 -1
- package/dist/post-components/p-12e82863.entry.js +0 -1
- package/dist/post-components/p-18dc1299.entry.js +0 -1
- package/dist/post-components/p-3668f4fa.entry.js +0 -1
- package/dist/post-components/p-375845d4.js +0 -1
- package/dist/post-components/p-381de59d.entry.js +0 -1
- package/dist/post-components/p-4eb5d9a1.entry.js +0 -1
- package/dist/post-components/p-85c6d001.entry.js +0 -1
- package/dist/post-components/p-962a6f36.entry.js +0 -1
- package/dist/post-components/p-a7e8fd41.entry.js +0 -1
- package/dist/post-components/p-ac216bd0.entry.js +0 -1
- package/dist/post-components/p-b17ecbee.entry.js +0 -1
- package/dist/post-components/p-bb4227ad.entry.js +0 -1
- package/dist/post-components/p-d0b3c5d3.entry.js +0 -1
- package/dist/post-components/p-d4e148d8.entry.js +0 -1
- package/dist/post-components/p-d9809281.js +0 -1
- package/dist/post-components/p-f35291d5.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-e1b64755.js';
|
|
2
2
|
import { c as checkType } from './check-type-8828dbe4.js';
|
|
3
|
-
import { v as version$1 } from './package-
|
|
3
|
+
import { v as version$1 } from './package-e199a39d.js';
|
|
4
4
|
|
|
5
5
|
/*!
|
|
6
6
|
* long-press-event - v@version@
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { P as post_tooltip_trigger } from './post-tooltip-trigger-
|
|
1
|
+
export { P as post_tooltip_trigger } from './post-tooltip-trigger-25718071.js';
|
|
2
2
|
import './index-e1b64755.js';
|
|
3
3
|
import './check-type-8828dbe4.js';
|
|
4
|
-
import './package-
|
|
4
|
+
import './package-e199a39d.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{P as PostAccordion}from"./p-
|
|
1
|
+
export{P as PostAccordion}from"./p-5be93321.js";export{P as PostAccordionItem}from"./p-876f1954.js";export{P as PostAlert}from"./p-e99c825b.js";export{P as PostCardControl}from"./p-5c26f706.js";export{P as PostCollapsible,a as PostCollapsibleTrigger}from"./p-97f1379e.js";export{P as PostIcon}from"./p-c8d1bd9a.js";export{P as PostLogo}from"./p-abb4d5e4.js";export{P as PostPopover}from"./p-f62ba0e1.js";export{P as PostPopovercontainer}from"./p-08f23aa4.js";export{P as PostRating}from"./p-1f440d9d.js";export{P as PostTabs}from"./p-7171667d.js";export{P as PostTabHeader}from"./p-b963d836.js";export{P as PostTabPanel}from"./p-9bf94cb3.js";export{P as PostTooltip}from"./p-0058b862.js";export{P as PostTooltipTrigger}from"./p-0cd2e5d0.js";export{P as PostTag}from"./p-e76edf25.js";import"./p-3eab790d.js";import"./p-dc027837.js";import"./p-247a1668.js";import"./p-611b3c41.js";import"./p-788e64fb.js";import"./p-440193f4.js";import"./p-4a3f67ab.js";import"./p-2737eaf5.js";import"./p-b095519d.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as e,g as s}from"./p-3eab790d.js";import{v as a}from"./p-
|
|
1
|
+
import{r as t,h as o,H as e,g as s}from"./p-3eab790d.js";import{v as a}from"./p-dc027837.js";import{c as i}from"./p-4a3f67ab.js";const r=class{constructor(o){t(this,o),this.placement="top",this.arrow=!1,this.animation=null,this.open=!1}validateOpen(){i(this.open,"boolean",'The "open" property of the post-tooltip must be a boolean.')}componentDidLoad(){this.host.id||console.error("No id set: <post-tooltip> must have an id, linking it to it's target element with a <post-tooltip-trigger> element.")}async show(t){this.open||this.popoverRef.show(t)}async hide(){this.popoverRef.hide()}async toggle(t,o){this.popoverRef.toggle(t,o)}handleToggle(t){this.open=t.detail}render(){return o(e,{key:"42d4dbfacdfd2aa9d00c8555cfb672e71013d455","data-version":a,role:"tooltip"},o("post-popovercontainer",{key:"781b9a2a90d6e1d7dc1fe233d68787cdc96d1b2a",safeSpace:"trapezoid",class:this.arrow?"has-arrow":"",arrow:this.arrow,animation:this.animation,placement:this.placement,onPostToggle:t=>this.handleToggle(t),ref:t=>this.popoverRef=t},o("slot",{key:"895559a810d2ec11e5078c0334f4e8f9c73533e5"})))}get host(){return s(this)}static get watchers(){return{open:["validateOpen"]}}};r.style=':host{display:none;--post-contrast-color:#fff;--post-bg-rgb:51, 51, 51}:host([open]){display:block}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer>div{padding:.25rem .5rem;max-width:280px;min-height:32px;word-wrap:break-word;white-space:normal}';export{r as P}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,H as o,g as r}from"./p-3eab790d.js";import{v as i}from"./p-d9809281.js";const s=Math.min,a=Math.max,l=Math.round,p=Math.floor,c=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function h(t,e,n){return a(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function v(t){return"x"===t?"y":"x"}function x(t){return"y"===t?"height":"width"}function w(t){return["top","bottom"].includes(g(t))?"y":"x"}function y(t){return v(w(t))}function b(t){return t.replace(/start|end/g,(t=>u[t]))}function T(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function E(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function S(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function A(t,e,n){let{reference:o,floating:r}=t;const i=w(e),s=y(e),a=x(s),l=g(e),p="y"===i,c=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let h;switch(l){case"top":h={x:c,y:o.y-r.height};break;case"bottom":h={x:c,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(m(e)){case"start":h[s]-=u*(n&&p?-1:1);break;case"end":h[s]+=u*(n&&p?-1:1)}return h}async function O(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:p="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=d(e,t),g=E(h),m=a[u?"floating"===f?"reference":"floating":f],v=S(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:c,strategy:l})),x="floating"===f?{...s.floating,x:o,y:r}:s.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(v.top-b.top+g.top)/y.y,bottom:(b.bottom-v.bottom+g.bottom)/y.y,left:(v.left-b.left+g.left)/y.x,right:(b.right-v.right+g.right)/y.x}}function I(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:a(...t.map((t=>t.right)))-e,height:a(...t.map((t=>t.bottom)))-n}}function M(t){return H(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function L(t){var e;return null==(e=(H(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function H(t){return t instanceof Node||t instanceof R(t).Node}function k(t){return t instanceof Element||t instanceof R(t).Element}function N(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof R(t).ShadowRoot)}function F(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function C(t){return["table","td","th"].includes(M(t))}function P(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function W(t){const e=$(),n=k(t)?z(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function $(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(M(t))}function z(t){return R(t).getComputedStyle(t)}function j(t){return k(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||D(t)&&t.host||L(t);return D(e)?e.host:e}function q(t){const e=U(t);return B(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&F(e)?e:q(e)}function G(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=q(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),s=R(r);return i?e.concat(s,s.visualViewport||[],F(r)?r:[],s.frameElement&&n?G(s.frameElement):[]):e.concat(r,G(r,[],n))}function Y(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=N(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=l(n)!==i||l(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function V(t){return k(t)?t:t.contextElement}function X(t){const e=V(t);if(!N(e))return c(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Y(e);let s=(i?l(n.width):n.width)/o,a=(i?l(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const K=c(0);function _(t){const e=R(t);return $()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:K}function J(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=V(t);let s=c(1);e&&(o?k(o)&&(s=X(o)):s=X(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==R(t))&&e}(i,n,o)?_(i):c(0);let l=(r.left+a.x)/s.x,p=(r.top+a.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const t=R(i),e=o&&k(o)?R(o):o;let n=t,r=n.frameElement;for(;r&&o&&e!==n;){const t=X(r),e=r.getBoundingClientRect(),o=z(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,p*=t.y,f*=t.x,u*=t.y,l+=i,p+=s,n=R(r),r=n.frameElement}}return S({width:f,height:u,x:l,y:p})}function Q(t){return J(L(t)).left+j(t).scrollLeft}function Z(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=R(t),o=L(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const t=$();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}(t,n);else if("document"===e)o=function(t){const e=L(t),n=j(t),o=t.ownerDocument.body,r=a(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=a(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Q(t);const l=-n.scrollTop;return"rtl"===z(o).direction&&(s+=a(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}(L(t));else if(k(e))o=function(t,e){const n=J(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=N(t)?X(t):c(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=_(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return S(o)}function tt(t,e){const n=U(t);return!(n===e||!k(n)||B(n))&&("fixed"===z(n).position||tt(n,e))}function et(t,e,n){const o=N(e),r=L(e),i="fixed"===n,s=J(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=c(0);if(o||!o&&!i)if(("body"!==M(e)||F(r))&&(a=j(e)),o){const t=J(e,!0,i,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Q(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function nt(t){return"static"===z(t).position}function ot(t,e){return N(t)&&"fixed"!==z(t).position?e?e(t):t.offsetParent:null}function rt(t,e){const n=R(t);if(P(t))return n;if(!N(t)){let e=U(t);for(;e&&!B(e);){if(k(e)&&!nt(e))return e;e=U(e)}return n}let o=ot(t,e);for(;o&&C(o)&&nt(o);)o=ot(o,e);return o&&B(o)&&nt(o)&&!W(o)?n:o||function(t){let e=U(t);for(;N(e)&&!B(e);){if(W(e))return e;if(P(e))return null;e=U(e)}return null}(t)||n}const it={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=L(o),a=!!e&&P(e.floating);if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},p=c(1);const f=c(0),u=N(o);if((u||!u&&!i)&&(("body"!==M(o)||F(s))&&(l=j(o)),N(o))){const t=J(o);p=X(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+f.x,y:n.y*p.y-l.scrollTop*p.y+f.y}},getDocumentElement:L,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?P(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=G(t,[],!1).filter((t=>k(t)&&"body"!==M(t))),r=null;const i="fixed"===z(t).position;let s=i?U(t):t;for(;k(s)&&!B(s);){const e=z(s),n=W(s);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||F(s)&&!n&&tt(t,s))?o=o.filter((t=>t!==s)):r=e,s=U(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=i.reduce(((t,n)=>{const o=Z(e,n,r);return t.top=a(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=a(o.left,t.left),t}),Z(e,i[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:rt,getElementRects:async function(t){const e=this.getOffsetParent||rt,n=this.getDimensions,o=await n(t.floating);return{reference:et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Y(t);return{width:e,height:n}},getScale:X,isElement:k,isRTL:function(t){return"rtl"===z(t).direction}};const st=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=g(n),a=m(n),l="y"===w(n),p=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=d(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(h="end"===a?-1*v:v),l?{x:h*c,y:u*p}:{x:u*p,y:h*c}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},at=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=d(t,e),p={x:n,y:o},c=await O(e,l),f=w(g(r)),u=v(f);let m=p[u],x=p[f];i&&(m=h(m+c["y"===u?"top":"left"],m,m-c["y"===u?"bottom":"right"])),s&&(x=h(x+c["y"===f?"top":"left"],x,x-c["y"===f?"bottom":"right"]));const y=a.fn({...e,[u]:m,[f]:x});return{...y,data:{x:y.x-n,y:y.y-o}}}}},lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:p}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...E}=d(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const S=g(r),A=g(a)===a,I=await(null==l.isRTL?void 0:l.isRTL(p.floating)),M=u||(A||!w?[T(a)]:function(t){const e=T(t);return[b(t),e,b(e)]}(a));u||"none"===v||M.push(...function(t,e,n,o){const r=m(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}(g(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(b)))),i}(a,w,v,I));const R=[a,...M],L=await O(e,E),H=[];let k=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&H.push(L[S]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=m(t),r=y(t),i=x(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=T(s)),[s,T(s)]}(r,s,I);H.push(L[t[0]],L[t[1]])}if(k=[...k,{placement:r,overflows:H}],!H.every((t=>t<=0))){var N,D;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,e=R[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(D=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!n)switch(h){case"bestFit":{var F;const t=null==(F=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:F[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},pt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:l=(()=>{}),...p}=d(t,e),c=await O(e,p),f=g(n),u=m(n),h="y"===w(n),{width:v,height:x}=o.floating;let y,b;"top"===f||"bottom"===f?(y=f,b=u===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,y="end"===u?"top":"bottom");const T=x-c[y],E=v-c[b],S=!e.middlewareData.shift;let A=T,I=E;if(h){const t=v-c.left-c.right;I=u||S?s(E,t):t}else{const t=x-c.top-c.bottom;A=u||S?s(T,t):t}if(S&&!u){const t=a(c.left,0),e=a(c.right,0),n=a(c.top,0),o=a(c.bottom,0);h?I=v-2*(0!==t||0!==e?t+e:a(c.left,c.right)):A=x-2*(0!==n||0!==o?n+o:a(c.top,c.bottom))}await l({...e,availableWidth:I,availableHeight:A});const M=await r.getDimensions(i.floating);return v!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}},ct=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:p=!0}=d(t,e),c={x:n,y:o},f=w(r),u=v(f);let h=c[u],m=c[f];const x=d(a,e),y="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const t="y"===u?"height":"width",e=i.reference[u]-i.floating[t]+y.mainAxis,n=i.reference[u]+i.reference[t]-y.mainAxis;h<e?h=e:h>n&&(h=n)}if(p){var b,T;const t="y"===u?"width":"height",e=["top","left"].includes(g(r)),n=i.reference[f]-i.floating[t]+(e&&(null==(b=s.offset)?void 0:b[f])||0)+(e?0:y.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(T=s.offset)?void 0:T[f])||0)-(e?y.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[u]:h,[f]:m}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,r){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:r}))}),0))}var o=globalThis.ShadowRoot||function(){},r=globalThis.HTMLDialogElement||function(){},i=new WeakMap,s=new WeakMap,a=new WeakMap;function l(t){return a.get(t)||"hidden"}var p=new WeakMap;function c(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof r&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(s.get(t.ownerDocument)||[]).indexOf(t)+1:0}function u(t){let e=s.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function h(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?h(t.parentNode):t}function d(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===a.get(t))return t;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}function g(t){return!(t.hidden||t instanceof o||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var m=new WeakMap;function v(e){if(!c(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!c(e,!1))return;let r=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of s.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let r=null;return function(t){let n=d(t);if(null===n)return null;let o=e.get(n);(null===r||e.get(r)<o)&&(r=n)}(t?.parentElement),r}(e)||o;if(y(n,!1,!0),t!==e.getAttribute("popover")||!c(e,!1))return}u(o)||(r=!0),m.delete(e);let l=o.activeElement;e.classList.add(":popover-open"),a.set(e,"showing"),i.has(o)||i.set(o,new Set),i.get(o).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(g(r))return r;r=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(s.has(o)||s.set(o,new Set),s.get(o).add(e),S(p.get(e),!0)),r&&l&&"auto"===e.popover&&m.set(e,l),n(e,"closed","open")}function x(e,o=!1,r=!1){if(!c(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(y(e,o,r),!c(e,!0))||(S(p.get(e),!1),p.delete(e),r&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!c(e,!0))))return;i.get(l)?.delete(e),s.get(l)?.delete(e),e.classList.remove(":popover-open"),a.set(e,"hidden"),r&&n(e,"open","closed");let f=m.get(e);f&&(m.delete(e),o&&f.focus())}function w(t,e=!1,n=!1){let o=u(t);for(;o;)x(o,e,n),o=u(t)}function y(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return w(o,e,n);let r=null,i=!1;for(let e of s.get(o)||[])if(e===t)i=!0;else if(i){r=e;break}if(!i)return w(o,e,n);for(;r&&"showing"===l(r)&&s.get(o)?.size;)x(r,e,n)}var b=new WeakMap;function T(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!u(n))return;let r=function(t){let e=d(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(r&&"pointerdown"===t.type)b.set(n,r);else if("pointerup"===t.type){let t=b.get(n)===r;b.delete(n),t&&y(r||n,!1,!0)}}var E=new WeakMap;function S(t,e=!1){if(!t)return;E.has(t)||E.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=E.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var A=globalThis.ShadowRoot||function(){};function O(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var I=/(^|[^\\]):popover-open\b/g,M="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",R=null;function L(t){if(null===R)try{(R=new CSSStyleSheet).replaceSync(M)}catch{R=!1}if(!1===R){let e=document.createElement("style");e.textContent=M,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[R,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(I,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,O(Document.prototype,"querySelector",e),O(Document.prototype,"querySelectorAll",e),O(Element.prototype,"querySelector",e),O(Element.prototype,"querySelectorAll",e),O(Element.prototype,"matches",e),O(Element.prototype,"closest",e),O(DocumentFragment.prototype,"querySelectorAll",e),O(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){v(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){x(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===a.get(this)&&void 0===t||!1===t?x(this,!0,!0):(void 0===t||!0===t)&&v(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return L(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&L(t.shadowRoot),t}}});let r=new WeakMap;function i(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),r.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),r.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=r.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return r.delete(this),null;let e=h(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof A)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}i(HTMLButtonElement),i(HTMLInputElement);var s;(s=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=h(e);if(!(n instanceof A||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=l(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?x(e,!0,!0):c(e,!1)&&(p.set(e,t),v(e)))}(o),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&y(n.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",T),s.addEventListener("pointerup",T),L(document)}()})();const ft=class{constructor(n){t(this,n),this.postToggle=e(this,"postToggle",7),this.placement="top",this.edgeGap=8,this.animation=null,this.arrow=!1,this.safeSpace=void 0}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?(this.startAutoupdates(),this.safeSpace&&window.addEventListener("mousemove",this.mouseTrackingHandler.bind(this))):("function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&window.removeEventListener("mousemove",this.mouseTrackingHandler.bind(this))),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,u=V(t),h=r||i?[...u?G(u):[],...G(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=u&&c?function(t,e){let n,o=null;const r=L(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),i();const{left:u,top:h,width:d,height:g}=t.getBoundingClientRect();if(c||e(),!d||!g)return;const m={rootMargin:-p(h)+"px "+-p(r.clientWidth-(u+d))+"px "+-p(r.clientHeight-(h+g))+"px "+-p(u)+"px",threshold:a(0,s(1,f))||1};let v=!0;function x(t){const e=t[0].intersectionRatio;if(e!==f){if(!v)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}v=!1}try{o=new IntersectionObserver(x,{...m,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,m)}o.observe(t)}(!0),i}(u,n):null;let g,m=-1,v=null;l&&(v=new ResizeObserver((t=>{let[o]=t;o&&o.target===u&&v&&(v.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=v)||t.observe(e)}))),n()})),u&&!f&&v.observe(u),v.observe(e));let x=f?J(t):null;return f&&function e(){const o=J(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||n(),x=o,g=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=v)||t.disconnect(),v=null,f&&cancelAnimationFrame(g)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const{x:t,y:e,middlewareData:n,placement:o}=await this.computeMainPosition(),r=o.split("-")[0];if(this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&n.arrow){const{x:t,y:e}=n.arrow,o=ft.STATIC_SIDES[r];o&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[o]:"-7px"})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=[lt(),(void 0===n&&(n={}),{name:"inline",options:n,async fn(t){const{placement:e,elements:o,rects:r,platform:i,strategy:l}=t,{padding:p=2,x:c,y:f}=d(n,t),u=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const r=e[t];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((t=>S(I(t))))}(u),m=S(I(u)),v=E(p),x=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=f)return h.find((t=>c>t.left-v.left&&c<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||m;if(h.length>=2){if("y"===w(e)){const t=h[0],n=h[h.length-1],o="top"===g(e),r=t.top,i=n.bottom,s=o?t.left:n.left,a=o?t.right:n.right;return{top:r,bottom:i,left:s,right:a,width:a-s,height:i-r,x:s,y:r}}const t="left"===g(e),n=a(...h.map((t=>t.right))),o=s(...h.map((t=>t.left))),r=h.filter((e=>t?e.left===o:e.right===n)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:o,right:n,width:n-o,height:l-i,x:o,y:i}}return m}},floating:o.floating,strategy:l});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}),at({padding:t,limiter:ct({offset:32})}),pt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}}),st(this.arrow?t+4:t)];var n;return this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:p}=e,{element:c,padding:f=0}=d(t,e)||{};if(null==c)return{};const u=E(f),g={x:n,y:o},v=y(r),w=x(v),b=await a.getDimensions(c),T="y"===v,S=T?"top":"left",A=T?"bottom":"right",O=T?"clientHeight":"clientWidth",I=i.reference[w]+i.reference[v]-g[v]-i.floating[w],M=g[v]-i.reference[v],R=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let L=R?R[O]:0;L&&await(null==a.isElement?void 0:a.isElement(R))||(L=l.floating[O]||i.floating[w]);const H=I/2-M/2,k=L/2-b[w]/2-1,N=s(u[S],k),D=s(u[A],k),F=N,C=L-b[w]-D,P=L/2-b[w]/2+H,W=h(F,P,C),$=!p.arrow&&null!=m(r)&&P!==W&&i.reference[w]/2-(P<F?N:D)-b[w]/2<0,B=$?P<F?P-F:P-C:0;return{[v]:g[v]+B,data:{[v]:W,centerOffset:P-W-B,...$&&{alignmentOffset:B}},reset:$}}}))({element:this.arrowRef,padding:t})),((t,e,n)=>{const o=new Map,r={platform:it,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let p=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:f}=A(p,o,l),u=o,h={},d=0;for(let n=0;n<a.length;n++){const{name:i,fn:g}=a[n],{x:m,y:v,data:x,reset:w}=await g({x:c,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:h,rects:p,platform:s,elements:{reference:t,floating:e}});c=null!=m?m:c,f=null!=v?v:f,h={...h,[i]:{...h[i],...x}},w&&d<=50&&(d++,"object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(p=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),({x:c,y:f}=A(p,u,l))),n=-1)}return{x:c,y:f,placement:u,strategy:r,middlewareData:h}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),n="top"===t||"bottom"===t,o=((t,e,n)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?n.top:n.bottom,xStart:n.left,xEnd:n.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?n.left:n.right,yStart:n.top,yEnd:n.bottom}})(t,this.host.getBoundingClientRect(),e);ft.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),n?(this.host.style.setProperty("--post-safe-space-popover-y",`${o.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${o.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${o.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${o.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${o.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${o.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${o.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${o.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${o.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${o.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${o.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${o.trigger.yEnd}px`))}render(){return n(o,{key:"98ea26b46803e8aa98cc2cec53798d994c0ff856","data-version":i},n("div",{key:"230fa7df2963b36e67a4559f07010f7213240e3c",class:this.animation?`animate-${this.animation}`:""},this.arrow&&n("span",{key:"58647eb14ef84ff04b04b7dec0bbb38b9bcd4b69",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"de0afc53f013ac7d4cdd06e0e2d7746a8e0971dc"})))}get host(){return r(this)}};ft.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},ft.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ft.style='@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:where(post-popovercontainer)>div{box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);width:max-content;display:flex;align-items:center;max-width:100%;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px}:where(post-popovercontainer)>div.animate-pop-in{animation:popIn .25s ease-out forwards}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer)[safe-space]::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:where(post-popovercontainer)[safe-space=triangle]::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:where(post-popovercontainer)[safe-space=trapezoid]::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:where(post-popovercontainer):has(.arrow)>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.top)>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.left)>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.right)>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}';export{ft as P}
|
|
1
|
+
import{r as t,c as e,h as n,H as o,g as r}from"./p-3eab790d.js";import{v as i}from"./p-dc027837.js";const s=Math.min,a=Math.max,l=Math.round,p=Math.floor,c=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function h(t,e,n){return a(t,s(e,n))}function d(t,e){return"function"==typeof t?t(e):t}function g(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function v(t){return"x"===t?"y":"x"}function x(t){return"y"===t?"height":"width"}function w(t){return["top","bottom"].includes(g(t))?"y":"x"}function y(t){return v(w(t))}function b(t){return t.replace(/start|end/g,(t=>u[t]))}function T(t){return t.replace(/left|right|bottom|top/g,(t=>f[t]))}function E(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function S(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function A(t,e,n){let{reference:o,floating:r}=t;const i=w(e),s=y(e),a=x(s),l=g(e),p="y"===i,c=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,u=o[a]/2-r[a]/2;let h;switch(l){case"top":h={x:c,y:o.y-r.height};break;case"bottom":h={x:c,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:f};break;case"left":h={x:o.x-r.width,y:f};break;default:h={x:o.x,y:o.y}}switch(m(e)){case"start":h[s]-=u*(n&&p?-1:1);break;case"end":h[s]+=u*(n&&p?-1:1)}return h}async function O(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=t,{boundary:p="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:u=!1,padding:h=0}=d(e,t),g=E(h),m=a[u?"floating"===f?"reference":"floating":f],v=S(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:p,rootBoundary:c,strategy:l})),x="floating"===f?{...s.floating,x:o,y:r}:s.reference,w=await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),y=await(null==i.isElement?void 0:i.isElement(w))&&await(null==i.getScale?void 0:i.getScale(w))||{x:1,y:1},b=S(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:w,strategy:l}):x);return{top:(v.top-b.top+g.top)/y.y,bottom:(b.bottom-v.bottom+g.bottom)/y.y,left:(v.left-b.left+g.left)/y.x,right:(b.right-v.right+g.right)/y.x}}function I(t){const e=s(...t.map((t=>t.left))),n=s(...t.map((t=>t.top)));return{x:e,y:n,width:a(...t.map((t=>t.right)))-e,height:a(...t.map((t=>t.bottom)))-n}}function M(t){return H(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function L(t){var e;return null==(e=(H(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function H(t){return t instanceof Node||t instanceof R(t).Node}function k(t){return t instanceof Element||t instanceof R(t).Element}function N(t){return t instanceof HTMLElement||t instanceof R(t).HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof R(t).ShadowRoot)}function F(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=z(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(r)}function C(t){return["table","td","th"].includes(M(t))}function P(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function W(t){const e=$(),n=k(t)?z(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function $(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function B(t){return["html","body","#document"].includes(M(t))}function z(t){return R(t).getComputedStyle(t)}function j(t){return k(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if("html"===M(t))return t;const e=t.assignedSlot||t.parentNode||D(t)&&t.host||L(t);return D(e)?e.host:e}function q(t){const e=U(t);return B(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&F(e)?e:q(e)}function G(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=q(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),s=R(r);return i?e.concat(s,s.visualViewport||[],F(r)?r:[],s.frameElement&&n?G(s.frameElement):[]):e.concat(r,G(r,[],n))}function Y(t){const e=z(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=N(t),i=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=l(n)!==i||l(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function V(t){return k(t)?t:t.contextElement}function X(t){const e=V(t);if(!N(e))return c(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=Y(e);let s=(i?l(n.width):n.width)/o,a=(i?l(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const K=c(0);function _(t){const e=R(t);return $()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:K}function J(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=V(t);let s=c(1);e&&(o?k(o)&&(s=X(o)):s=X(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==R(t))&&e}(i,n,o)?_(i):c(0);let l=(r.left+a.x)/s.x,p=(r.top+a.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(i){const t=R(i),e=o&&k(o)?R(o):o;let n=t,r=n.frameElement;for(;r&&o&&e!==n;){const t=X(r),e=r.getBoundingClientRect(),o=z(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,s=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;l*=t.x,p*=t.y,f*=t.x,u*=t.y,l+=i,p+=s,n=R(r),r=n.frameElement}}return S({width:f,height:u,x:l,y:p})}function Q(t){return J(L(t)).left+j(t).scrollLeft}function Z(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=R(t),o=L(t),r=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,a=0,l=0;if(r){i=r.width,s=r.height;const t=$();(!t||t&&"fixed"===e)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:i,height:s,x:a,y:l}}(t,n);else if("document"===e)o=function(t){const e=L(t),n=j(t),o=t.ownerDocument.body,r=a(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=a(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Q(t);const l=-n.scrollTop;return"rtl"===z(o).direction&&(s+=a(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:s,y:l}}(L(t));else if(k(e))o=function(t,e){const n=J(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=N(t)?X(t):c(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=_(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return S(o)}function tt(t,e){const n=U(t);return!(n===e||!k(n)||B(n))&&("fixed"===z(n).position||tt(n,e))}function et(t,e,n){const o=N(e),r=L(e),i="fixed"===n,s=J(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const l=c(0);if(o||!o&&!i)if(("body"!==M(e)||F(r))&&(a=j(e)),o){const t=J(e,!0,i,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Q(r));return{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function nt(t){return"static"===z(t).position}function ot(t,e){return N(t)&&"fixed"!==z(t).position?e?e(t):t.offsetParent:null}function rt(t,e){const n=R(t);if(P(t))return n;if(!N(t)){let e=U(t);for(;e&&!B(e);){if(k(e)&&!nt(e))return e;e=U(e)}return n}let o=ot(t,e);for(;o&&C(o)&&nt(o);)o=ot(o,e);return o&&B(o)&&nt(o)&&!W(o)?n:o||function(t){let e=U(t);for(;N(e)&&!B(e);){if(W(e))return e;if(P(e))return null;e=U(e)}return null}(t)||n}const it={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,s=L(o),a=!!e&&P(e.floating);if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},p=c(1);const f=c(0),u=N(o);if((u||!u&&!i)&&(("body"!==M(o)||F(s))&&(l=j(o)),N(o))){const t=J(o);p=X(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-l.scrollLeft*p.x+f.x,y:n.y*p.y-l.scrollTop*p.y+f.y}},getDocumentElement:L,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?P(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=G(t,[],!1).filter((t=>k(t)&&"body"!==M(t))),r=null;const i="fixed"===z(t).position;let s=i?U(t):t;for(;k(s)&&!B(s);){const e=z(s),n=W(s);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||F(s)&&!n&&tt(t,s))?o=o.filter((t=>t!==s)):r=e,s=U(s)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=i.reduce(((t,n)=>{const o=Z(e,n,r);return t.top=a(o.top,t.top),t.right=s(o.right,t.right),t.bottom=s(o.bottom,t.bottom),t.left=a(o.left,t.left),t}),Z(e,i[0],r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:rt,getElementRects:async function(t){const e=this.getOffsetParent||rt,n=this.getDimensions,o=await n(t.floating);return{reference:et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Y(t);return{width:e,height:n}},getScale:X,isElement:k,isRTL:function(t){return"rtl"===z(t).direction}};const st=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),s=g(n),a=m(n),l="y"===w(n),p=["left","top"].includes(s)?-1:1,c=i&&l?-1:1,f=d(e,t);let{mainAxis:u,crossAxis:h,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(h="end"===a?-1*v:v),l?{x:h*c,y:u*p}:{x:u*p,y:h*c}}(e,t);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},at=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=d(t,e),p={x:n,y:o},c=await O(e,l),f=w(g(r)),u=v(f);let m=p[u],x=p[f];i&&(m=h(m+c["y"===u?"top":"left"],m,m-c["y"===u?"bottom":"right"])),s&&(x=h(x+c["y"===f?"top":"left"],x,x-c["y"===f?"bottom":"right"]));const y=a.fn({...e,[u]:m,[f]:x});return{...y,data:{x:y.x-n,y:y.y-o}}}}},lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:p}=e,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:u,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...E}=d(t,e);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const S=g(r),A=g(a)===a,I=await(null==l.isRTL?void 0:l.isRTL(p.floating)),M=u||(A||!w?[T(a)]:function(t){const e=T(t);return[b(t),e,b(e)]}(a));u||"none"===v||M.push(...function(t,e,n,o){const r=m(t);let i=function(t,e,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?r:o:e?o:r;case"left":case"right":return e?i:s;default:return[]}}(g(t),"start"===n,o);return r&&(i=i.map((t=>t+"-"+r)),e&&(i=i.concat(i.map(b)))),i}(a,w,v,I));const R=[a,...M],L=await O(e,E),H=[];let k=(null==(o=i.flip)?void 0:o.overflows)||[];if(c&&H.push(L[S]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=m(t),r=y(t),i=x(r);let s="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=T(s)),[s,T(s)]}(r,s,I);H.push(L[t[0]],L[t[1]])}if(k=[...k,{placement:r,overflows:H}],!H.every((t=>t<=0))){var N,D;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,e=R[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(D=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:D.placement;if(!n)switch(h){case"bestFit":{var F;const t=null==(F=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:F[0];t&&(n=t);break}case"initialPlacement":n=a}if(r!==n)return{reset:{placement:n}}}return{}}}},pt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:o,platform:r,elements:i}=e,{apply:l=(()=>{}),...p}=d(t,e),c=await O(e,p),f=g(n),u=m(n),h="y"===w(n),{width:v,height:x}=o.floating;let y,b;"top"===f||"bottom"===f?(y=f,b=u===(await(null==r.isRTL?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(b=f,y="end"===u?"top":"bottom");const T=x-c[y],E=v-c[b],S=!e.middlewareData.shift;let A=T,I=E;if(h){const t=v-c.left-c.right;I=u||S?s(E,t):t}else{const t=x-c.top-c.bottom;A=u||S?s(T,t):t}if(S&&!u){const t=a(c.left,0),e=a(c.right,0),n=a(c.top,0),o=a(c.bottom,0);h?I=v-2*(0!==t||0!==e?t+e:a(c.left,c.right)):A=x-2*(0!==n||0!==o?n+o:a(c.top,c.bottom))}await l({...e,availableWidth:I,availableHeight:A});const M=await r.getDimensions(i.floating);return v!==M.width||x!==M.height?{reset:{rects:!0}}:{}}}},ct=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:l=!0,crossAxis:p=!0}=d(t,e),c={x:n,y:o},f=w(r),u=v(f);let h=c[u],m=c[f];const x=d(a,e),y="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(l){const t="y"===u?"height":"width",e=i.reference[u]-i.floating[t]+y.mainAxis,n=i.reference[u]+i.reference[t]-y.mainAxis;h<e?h=e:h>n&&(h=n)}if(p){var b,T;const t="y"===u?"width":"height",e=["top","left"].includes(g(r)),n=i.reference[f]-i.floating[t]+(e&&(null==(b=s.offset)?void 0:b[f])||0)+(e?0:y.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(T=s.offset)?void 0:T[f])||0)-(e?y.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[u]:h,[f]:m}}}};(()=>{var t=class extends Event{oldState;newState;constructor(t,{oldState:e="",newState:n="",...o}={}){super(t,o),this.oldState=String(e||""),this.newState=String(n||"")}},e=new WeakMap;function n(n,o,r){e.set(n,setTimeout((()=>{e.has(n)&&n.dispatchEvent(new t("toggle",{cancelable:!1,oldState:o,newState:r}))}),0))}var o=globalThis.ShadowRoot||function(){},r=globalThis.HTMLDialogElement||function(){},i=new WeakMap,s=new WeakMap,a=new WeakMap;function l(t){return a.get(t)||"hidden"}var p=new WeakMap;function c(t,e){return!("auto"!==t.popover&&"manual"!==t.popover||!t.isConnected||e&&"showing"!==l(t)||!e&&"hidden"!==l(t)||t instanceof r&&t.hasAttribute("open")||document.fullscreenElement===t)}function f(t){return t?Array.from(s.get(t.ownerDocument)||[]).indexOf(t)+1:0}function u(t){let e=s.get(t);for(let t of e||[]){if(t.isConnected)return t;e.delete(t)}return null}function h(t){return"function"==typeof t.getRootNode?t.getRootNode():t.parentNode?h(t.parentNode):t}function d(t){for(;t;){if(t instanceof HTMLElement&&"auto"===t.popover&&"showing"===a.get(t))return t;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}function g(t){return!(t.hidden||t instanceof o||(t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLOptGroupElement||t instanceof HTMLOptionElement||t instanceof HTMLFieldSetElement)&&t.disabled||t instanceof HTMLInputElement&&"hidden"===t.type||t instanceof HTMLAnchorElement&&""===t.href)&&"number"==typeof t.tabIndex&&-1!==t.tabIndex}var m=new WeakMap;function v(e){if(!c(e,!1))return;let o=e.ownerDocument;if(!e.dispatchEvent(new t("beforetoggle",{cancelable:!0,oldState:"closed",newState:"open"}))||!c(e,!1))return;let r=!1;if("auto"===e.popover){let t=e.getAttribute("popover"),n=function(t){let e=new Map,n=0,o=t.ownerDocument;for(let t of s.get(o)||[])e.set(t,n),n+=1;e.set(t,n),n+=1;let r=null;return function(t){let n=d(t);if(null===n)return null;let o=e.get(n);(null===r||e.get(r)<o)&&(r=n)}(t?.parentElement),r}(e)||o;if(y(n,!1,!0),t!==e.getAttribute("popover")||!c(e,!1))return}u(o)||(r=!0),m.delete(e);let l=o.activeElement;e.classList.add(":popover-open"),a.set(e,"showing"),i.has(o)||i.set(o,new Set),i.get(o).add(e),function(t){(function(t){if(t.shadowRoot&&!0!==t.shadowRoot.delegatesFocus)return null;let e=t;e.shadowRoot&&(e=e.shadowRoot);let n=e.querySelector("[autofocus]");if(n)return n;{let t=e.querySelectorAll("slot");for(let e of t){let t=e.assignedElements({flatten:!0});for(let e of t){if(e.hasAttribute("autofocus"))return e;if(n=e.querySelector("[autofocus]"),n)return n}}}let o=t.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),r=o.currentNode;for(;r;){if(g(r))return r;r=o.nextNode()}})(t)?.focus()}(e),"auto"===e.popover&&(s.has(o)||s.set(o,new Set),s.get(o).add(e),S(p.get(e),!0)),r&&l&&"auto"===e.popover&&m.set(e,l),n(e,"closed","open")}function x(e,o=!1,r=!1){if(!c(e,!0))return;let l=e.ownerDocument;if("auto"===e.popover&&(y(e,o,r),!c(e,!0))||(S(p.get(e),!1),p.delete(e),r&&(e.dispatchEvent(new t("beforetoggle",{oldState:"open",newState:"closed"})),!c(e,!0))))return;i.get(l)?.delete(e),s.get(l)?.delete(e),e.classList.remove(":popover-open"),a.set(e,"hidden"),r&&n(e,"open","closed");let f=m.get(e);f&&(m.delete(e),o&&f.focus())}function w(t,e=!1,n=!1){let o=u(t);for(;o;)x(o,e,n),o=u(t)}function y(t,e,n){let o=t.ownerDocument||t;if(t instanceof Document)return w(o,e,n);let r=null,i=!1;for(let e of s.get(o)||[])if(e===t)i=!0;else if(i){r=e;break}if(!i)return w(o,e,n);for(;r&&"showing"===l(r)&&s.get(o)?.size;)x(r,e,n)}var b=new WeakMap;function T(t){if(!t.isTrusted)return;let e=t.composedPath()[0];if(!e)return;let n=e.ownerDocument;if(!u(n))return;let r=function(t){let e=d(t),n=function(t){for(;t;){let e=t.popoverTargetElement;if(e instanceof HTMLElement)return e;if((t=t.parentElement||h(t))instanceof o&&(t=t.host),t instanceof Document)return}}(t);return f(e)>f(n)?e:n}(e);if(r&&"pointerdown"===t.type)b.set(n,r);else if("pointerup"===t.type){let t=b.get(n)===r;b.delete(n),t&&y(r||n,!1,!0)}}var E=new WeakMap;function S(t,e=!1){if(!t)return;E.has(t)||E.set(t,t.getAttribute("aria-expanded"));let n=t.popoverTargetElement;if(n instanceof HTMLElement&&"auto"===n.popover)t.setAttribute("aria-expanded",String(e));else{let e=E.get(t);e?t.setAttribute("aria-expanded",e):t.removeAttribute("aria-expanded")}}var A=globalThis.ShadowRoot||function(){};function O(t,e,n){let o=t[e];Object.defineProperty(t,e,{value(t){return o.call(this,n(t))}})}var I=/(^|[^\\]):popover-open\b/g,M="\n :where([popover]) {\n position: fixed;\n z-index: 2147483647;\n inset: 0;\n padding: 0.25em;\n width: fit-content;\n height: fit-content;\n border-width: initial;\n border-color: initial;\n border-image: initial;\n border-style: solid;\n background-color: canvas;\n color: canvastext;\n overflow: auto;\n margin: auto;\n }\n\n :where(dialog[popover][open]) {\n display: revert;\n }\n\n :where([anchor].\\:popover-open) {\n inset: auto;\n }\n\n :where([anchor]:popover-open) {\n inset: auto;\n }\n\n @supports not (background-color: canvas) {\n :where([popover]) {\n background-color: white;\n color: black;\n }\n }\n\n @supports (width: -moz-fit-content) {\n :where([popover]) {\n width: -moz-fit-content;\n height: -moz-fit-content;\n }\n }\n\n @supports not (inset: 0) {\n :where([popover]) {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n }\n }\n\n :where([popover]:not(.\\:popover-open)) {\n display: none;\n }\n",R=null;function L(t){if(null===R)try{(R=new CSSStyleSheet).replaceSync(M)}catch{R=!1}if(!1===R){let e=document.createElement("style");e.textContent=M,t instanceof Document?t.head.prepend(e):t.prepend(e)}else t.adoptedStyleSheets=[R,...t.adoptedStyleSheets]}typeof HTMLElement<"u"&&"object"==typeof HTMLElement.prototype&&"popover"in HTMLElement.prototype||function(){function e(t){return t?.includes(":popover-open")&&(t=t.replace(I,"$1.\\:popover-open")),t}window.ToggleEvent=window.ToggleEvent||t,O(Document.prototype,"querySelector",e),O(Document.prototype,"querySelectorAll",e),O(Element.prototype,"querySelector",e),O(Element.prototype,"querySelectorAll",e),O(Element.prototype,"matches",e),O(Element.prototype,"closest",e),O(DocumentFragment.prototype,"querySelectorAll",e),O(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let t=(this.getAttribute("popover")||"").toLowerCase();return""===t||"auto"==t?"auto":"manual"},set(t){this.setAttribute("popover",t)}},showPopover:{enumerable:!0,configurable:!0,value(){v(this)}},hidePopover:{enumerable:!0,configurable:!0,value(){x(this,!0,!0)}},togglePopover:{enumerable:!0,configurable:!0,value(t){"showing"===a.get(this)&&void 0===t||!1===t?x(this,!0,!0):(void 0===t||!0===t)&&v(this)}}});let n=Element.prototype.attachShadow;n&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(t){let e=n.call(this,t);return L(e),e}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let t=o.call(this);return t.shadowRoot&&L(t.shadowRoot),t}}});let r=new WeakMap;function i(t){Object.defineProperties(t.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(t){if(null===t)this.removeAttribute("popovertarget"),r.delete(this);else{if(!(t instanceof Element))throw new TypeError("popoverTargetElement must be an element or null");this.setAttribute("popovertarget",""),r.set(this,t)}},get(){if("button"!==this.localName&&"input"!==this.localName||"input"===this.localName&&"reset"!==this.type&&"image"!==this.type&&"button"!==this.type||this.disabled||this.form&&"submit"===this.type)return null;let t=r.get(this);if(t&&t.isConnected)return t;if(t&&!t.isConnected)return r.delete(this),null;let e=h(this),n=this.getAttribute("popovertarget");return(e instanceof Document||e instanceof A)&&n&&e.getElementById(n)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let t=(this.getAttribute("popovertargetaction")||"").toLowerCase();return"show"===t||"hide"===t?t:"toggle"},set(t){this.setAttribute("popovertargetaction",t)}}})}i(HTMLButtonElement),i(HTMLInputElement);var s;(s=document).addEventListener("click",(t=>{if(!t.isTrusted)return;let e=t.composedPath()[0];if(!(e instanceof Element)||e?.shadowRoot)return;let n=h(e);if(!(n instanceof A||n instanceof Document))return;let o=e.closest("[popovertargetaction],[popovertarget]");return o?(function(t){let e=t.popoverTargetElement;if(!(e instanceof HTMLElement))return;let n=l(e);"show"===t.popoverTargetAction&&"showing"===n||"hide"===t.popoverTargetAction&&"hidden"===n||("showing"===n?x(e,!0,!0):c(e,!1)&&(p.set(e,t),v(e)))}(o),void t.preventDefault()):void 0})),s.addEventListener("keydown",(t=>{let e=t.key,n=t.target;!t.defaultPrevented&&n&&("Escape"===e||"Esc"===e)&&y(n.ownerDocument,!0,!0)})),s.addEventListener("pointerdown",T),s.addEventListener("pointerup",T),L(document)}()})();const ft=class{constructor(n){t(this,n),this.postToggle=e(this,"postToggle",7),this.placement="top",this.edgeGap=8,this.animation=null,this.arrow=!1,this.safeSpace=void 0}mouseTrackingHandler(t){this.host.style.setProperty("--post-safe-space-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--post-safe-space-cursor-y",`${t.clientY}px`)}componentDidLoad(){this.host.setAttribute("popover",""),this.host.addEventListener("beforetoggle",this.handleToggle.bind(this))}disconnectedCallback(){"function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate()}async show(t){this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.showPopover())}async hide(){this.toggleTimeoutId||(this.eventTarget=null,this.host.hidePopover())}async toggle(t,e){return this.toggleTimeoutId||(this.eventTarget=t,this.calculatePosition(),this.host.togglePopover(e),this.toggleTimeoutId=null),this.host.matches(":where(:popover-open, .popover-open)")}handleToggle(t){this.toggleTimeoutId=window.setTimeout((()=>this.toggleTimeoutId=null),10);const e="open"===t.newState;e?(this.startAutoupdates(),this.safeSpace&&window.addEventListener("mousemove",this.mouseTrackingHandler.bind(this))):("function"==typeof this.clearAutoUpdate&&this.clearAutoUpdate(),this.safeSpace&&window.removeEventListener("mousemove",this.mouseTrackingHandler.bind(this))),this.postToggle.emit(e)}startAutoupdates(){this.clearAutoUpdate=function(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,u=V(t),h=r||i?[...u?G(u):[],...G(e)]:[];h.forEach((t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)}));const d=u&&c?function(t,e){let n,o=null;const r=L(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(c,f){void 0===c&&(c=!1),void 0===f&&(f=1),i();const{left:u,top:h,width:d,height:g}=t.getBoundingClientRect();if(c||e(),!d||!g)return;const m={rootMargin:-p(h)+"px "+-p(r.clientWidth-(u+d))+"px "+-p(r.clientHeight-(h+g))+"px "+-p(u)+"px",threshold:a(0,s(1,f))||1};let v=!0;function x(t){const e=t[0].intersectionRatio;if(e!==f){if(!v)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}v=!1}try{o=new IntersectionObserver(x,{...m,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(x,m)}o.observe(t)}(!0),i}(u,n):null;let g,m=-1,v=null;l&&(v=new ResizeObserver((t=>{let[o]=t;o&&o.target===u&&v&&(v.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var t;null==(t=v)||t.observe(e)}))),n()})),u&&!f&&v.observe(u),v.observe(e));let x=f?J(t):null;return f&&function e(){const o=J(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||n(),x=o,g=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=v)||t.disconnect(),v=null,f&&cancelAnimationFrame(g)}}(this.eventTarget,this.host,this.calculatePosition.bind(this))}async calculatePosition(){const{x:t,y:e,middlewareData:n,placement:o}=await this.computeMainPosition(),r=o.split("-")[0];if(this.host.style.left=`${t}px`,this.host.style.top=`${e}px`,this.arrow&&n.arrow){const{x:t,y:e}=n.arrow,o=ft.STATIC_SIDES[r];o&&Object.assign(this.arrowRef.style,{left:t?`${t}px`:"",top:e?`${e}px`:"",[o]:"-7px"})}this.safeSpace&&this.eventTarget&&await this.updateSafeSpaceBoundaries(r)}async computeMainPosition(){const t=this.edgeGap,e=[lt(),(void 0===n&&(n={}),{name:"inline",options:n,async fn(t){const{placement:e,elements:o,rects:r,platform:i,strategy:l}=t,{padding:p=2,x:c,y:f}=d(n,t),u=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),h=function(t){const e=t.slice().sort(((t,e)=>t.y-e.y)),n=[];let o=null;for(let t=0;t<e.length;t++){const r=e[t];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((t=>S(I(t))))}(u),m=S(I(u)),v=E(p),x=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=f)return h.find((t=>c>t.left-v.left&&c<t.right+v.right&&f>t.top-v.top&&f<t.bottom+v.bottom))||m;if(h.length>=2){if("y"===w(e)){const t=h[0],n=h[h.length-1],o="top"===g(e),r=t.top,i=n.bottom,s=o?t.left:n.left,a=o?t.right:n.right;return{top:r,bottom:i,left:s,right:a,width:a-s,height:i-r,x:s,y:r}}const t="left"===g(e),n=a(...h.map((t=>t.right))),o=s(...h.map((t=>t.left))),r=h.filter((e=>t?e.left===o:e.right===n)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:o,right:n,width:n-o,height:l-i,x:o,y:i}}return m}},floating:o.floating,strategy:l});return r.reference.x!==x.reference.x||r.reference.y!==x.reference.y||r.reference.width!==x.reference.width||r.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}),at({padding:t,limiter:ct({offset:32})}),pt({apply({availableWidth:e,elements:n}){Object.assign(n.floating.style,{maxWidth:e-2*t+"px"})}}),st(this.arrow?t+4:t)];var n;return this.arrow&&e.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:a,elements:l,middlewareData:p}=e,{element:c,padding:f=0}=d(t,e)||{};if(null==c)return{};const u=E(f),g={x:n,y:o},v=y(r),w=x(v),b=await a.getDimensions(c),T="y"===v,S=T?"top":"left",A=T?"bottom":"right",O=T?"clientHeight":"clientWidth",I=i.reference[w]+i.reference[v]-g[v]-i.floating[w],M=g[v]-i.reference[v],R=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let L=R?R[O]:0;L&&await(null==a.isElement?void 0:a.isElement(R))||(L=l.floating[O]||i.floating[w]);const H=I/2-M/2,k=L/2-b[w]/2-1,N=s(u[S],k),D=s(u[A],k),F=N,C=L-b[w]-D,P=L/2-b[w]/2+H,W=h(F,P,C),$=!p.arrow&&null!=m(r)&&P!==W&&i.reference[w]/2-(P<F?N:D)-b[w]/2<0,B=$?P<F?P-F:P-C:0;return{[v]:g[v]+B,data:{[v]:W,centerOffset:P-W-B,...$&&{alignmentOffset:B}},reset:$}}}))({element:this.arrowRef,padding:t})),((t,e,n)=>{const o=new Map,r={platform:it,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(null==s.isRTL?void 0:s.isRTL(e));let p=await s.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:f}=A(p,o,l),u=o,h={},d=0;for(let n=0;n<a.length;n++){const{name:i,fn:g}=a[n],{x:m,y:v,data:x,reset:w}=await g({x:c,y:f,initialPlacement:o,placement:u,strategy:r,middlewareData:h,rects:p,platform:s,elements:{reference:t,floating:e}});c=null!=m?m:c,f=null!=v?v:f,h={...h,[i]:{...h[i],...x}},w&&d<=50&&(d++,"object"==typeof w&&(w.placement&&(u=w.placement),w.rects&&(p=!0===w.rects?await s.getElementRects({reference:t,floating:e,strategy:r}):w.rects),({x:c,y:f}=A(p,u,l))),n=-1)}return{x:c,y:f,placement:u,strategy:r,middlewareData:h}})(t,e,{...r,platform:i})})(this.eventTarget,this.host,{placement:this.placement||"top",strategy:"fixed",middleware:e})}async updateSafeSpaceBoundaries(t){const e=this.eventTarget.getBoundingClientRect(),n="top"===t||"bottom"===t,o=((t,e,n)=>"top"===t||"bottom"===t?{popover:{y:"top"===t?e.bottom:e.top,xStart:e.left,xEnd:e.right},trigger:{y:"top"===t?n.top:n.bottom,xStart:n.left,xEnd:n.right}}:{popover:{x:"left"===t?e.right:e.left,yStart:e.top,yEnd:e.bottom},trigger:{x:"left"===t?n.left:n.right,yStart:n.top,yEnd:n.bottom}})(t,this.host.getBoundingClientRect(),e);ft.PROPERTIES_TO_CLEAR.forEach((t=>{this.host.style.removeProperty(t)})),n?(this.host.style.setProperty("--post-safe-space-popover-y",`${o.popover.y}px`),this.host.style.setProperty("--post-safe-space-popover-x-start",`${o.popover.xStart}px`),this.host.style.setProperty("--post-safe-space-popover-x-end",`${o.popover.xEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-y",`${o.trigger.y}px`),this.host.style.setProperty("--post-safe-space-trigger-x-start",`${o.trigger.xStart}px`),this.host.style.setProperty("--post-safe-space-trigger-x-end",`${o.trigger.xEnd}px`)):(this.host.style.setProperty("--post-safe-space-popover-x",`${o.popover.x}px`),this.host.style.setProperty("--post-safe-space-popover-y-start",`${o.popover.yStart}px`),this.host.style.setProperty("--post-safe-space-popover-y-end",`${o.popover.yEnd}px`),this.host.style.setProperty("--post-safe-space-trigger-x",`${o.trigger.x}px`),this.host.style.setProperty("--post-safe-space-trigger-y-start",`${o.trigger.yStart}px`),this.host.style.setProperty("--post-safe-space-trigger-y-end",`${o.trigger.yEnd}px`))}render(){return n(o,{key:"98ea26b46803e8aa98cc2cec53798d994c0ff856","data-version":i},n("div",{key:"230fa7df2963b36e67a4559f07010f7213240e3c",class:this.animation?`animate-${this.animation}`:""},this.arrow&&n("span",{key:"58647eb14ef84ff04b04b7dec0bbb38b9bcd4b69",class:"arrow",ref:t=>{this.arrowRef=t}}),n("slot",{key:"de0afc53f013ac7d4cdd06e0e2d7746a8e0971dc"})))}get host(){return r(this)}};ft.STATIC_SIDES={top:"bottom",right:"left",bottom:"top",left:"right"},ft.PROPERTIES_TO_CLEAR=["--post-safe-space-popover-x","--post-safe-space-popover-y","--post-safe-space-popover-x-start","--post-safe-space-popover-x-end","--post-safe-space-popover-y-start","--post-safe-space-popover-y-end","--post-safe-space-trigger-x","--post-safe-space-trigger-y","--post-safe-space-trigger-x-start","--post-safe-space-trigger-x-end","--post-safe-space-trigger-y-start","--post-safe-space-trigger-y-end"],ft.style='@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){background-color:rgba(0,0,0,0);border:rgba(0,0,0,0);position:fixed;margin:0;padding:0;overflow:visible}:where(post-popovercontainer)>div{box-shadow:.5px 3px 4px rgba(0,0,0,.1),2px 4px 10px 4px rgba(0,0,0,.12);width:max-content;display:flex;align-items:center;max-width:100%;color:var(--post-contrast-color);background-color:rgb(var(--post-bg-rgb));border:2px solid rgba(0,0,0,0);border-radius:4px}:where(post-popovercontainer)>div.animate-pop-in{animation:popIn .25s ease-out forwards}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer)[safe-space]::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:auto}:where(post-popovercontainer)[safe-space=triangle]::after{clip-path:polygon(var(--post-safe-space-cursor-x, 0) var(--post-safe-space-cursor-y, 0), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)))}:where(post-popovercontainer)[safe-space=trapezoid]::after{clip-path:polygon(var(--post-safe-space-trigger-x-start, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-start, 0)), var(--post-safe-space-trigger-x-end, var(--post-safe-space-trigger-x, 0)) var(--post-safe-space-trigger-y, var(--post-safe-space-trigger-y-end, 0)), var(--post-safe-space-popover-x-end, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-end, 0)), var(--post-safe-space-popover-x-start, var(--post-safe-space-popover-x, 0)) var(--post-safe-space-popover-y, var(--post-safe-space-popover-y-start, 0)))}:where(post-popovercontainer):has(.arrow)>div{filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.top)>div{filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.left)>div{filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.right)>div{filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-block-start:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-block-start:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-block-end:2px solid rgba(0,0,0,0);border-inline-start:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-block-end:2px solid rgba(0,0,0,0);border-inline-end:2px solid rgba(0,0,0,0)}';export{ft as P}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,h as t,H as n,g as r}from"./p-3eab790d.js";import{c as i}from"./p-4a3f67ab.js";import{v as o}from"./p-
|
|
1
|
+
import{r as e,h as t,H as n,g as r}from"./p-3eab790d.js";import{c as i}from"./p-4a3f67ab.js";import{v as o}from"./p-dc027837.js";
|
|
2
2
|
/*!
|
|
3
3
|
* long-press-event - v@version@
|
|
4
4
|
* Pure JavaScript long-press-event
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_popovercontainer}from"./p-08f23aa4.js";import"./p-3eab790d.js";import"./p-dc027837.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_accordion_item}from"./p-876f1954.js";import"./p-3eab790d.js";import"./p-dc027837.js";import"./p-247a1668.js";import"./p-788e64fb.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tab_panel}from"./p-9bf94cb3.js";import"./p-3eab790d.js";import"./p-dc027837.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as r,g as a}from"./p-3eab790d.js";import{v as e}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as r,g as a}from"./p-3eab790d.js";import{v as e}from"./p-dc027837.js";const o=class{constructor(i){t(this,i),this.postInput=s(this,"postInput",7),this.postChange=s(this,"postChange",7),this.hasChanged=!1,this.hoveredIndex=void 0,this.label="Rating",this.stars=5,this.currentRating=0,this.readonly=!1,this.keydownHandler=this.keydownHandler.bind(this),this.blurHandler=this.blurHandler.bind(this),this.hoverHandler=this.hoverHandler.bind(this)}update(t){this.readonly||t<0||t>this.stars||(this.currentRating=this.currentRating!==t?t:0,this.postInput.emit({value:this.currentRating}),this.hasChanged=!0)}keydownHandler(t){switch(t.key){case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.update(this.currentRating-1);break;case"ArrowUp":case"ArrowRight":t.preventDefault(),this.update(this.currentRating+1);break;case"Home":t.preventDefault(),this.update(0);break;case"End":t.preventDefault(),this.update(this.stars);break;case"Enter":case" ":this.blurHandler();break;default:return}}blurHandler(){this.hasChanged&&(this.postChange.emit({value:this.currentRating}),this.hasChanged=!1)}hoverHandler(t,s){this.readonly||("mouseenter"===s.type?this.hoveredIndex=t:"mouseleave"===s.type&&(this.hoveredIndex=void 0))}render(){return i(r,{key:"442c936d6e9337d04b16edc62e56996139e86262","data-version":e},i("div",{key:"280ea877721676ba137c91d9be00007bcc5caf4f",role:"slider",class:"rating",tabindex:"0","aria-label":this.label,"aria-valuemin":"0","aria-valuemax":this.stars,"aria-valuenow":this.currentRating,"aria-valuetext":`${this.currentRating} out of ${this.stars}`,"aria-readonly":this.readonly?"true":"false",onKeyDown:this.keydownHandler,onBlur:this.blurHandler},Array.from({length:this.stars}).map(((t,s)=>i("div",{key:`star-${t}`,"aria-hidden":"true",class:{star:!0,"before-hover":s<this.hoveredIndex,active:s<Math.round(this.currentRating),hover:s===this.hoveredIndex,"after-active":s>this.hoveredIndex&&s<this.currentRating},onClick:()=>this.update(s+1),onMouseEnter:t=>this.hoverHandler(s,t),onMouseLeave:t=>this.hoverHandler(s,t)},i("post-icon",{name:"2062",class:"stroke"}),i("post-icon",{name:"2574",class:"fill"}))))))}get host(){return a(this)}};o.style='@keyframes popIn{from{transform:scale(0.9);opacity:0;transition-property:transform,opacity,overlay,display;transition-behavior:allow-discrete;transition-duration:var(--post-transition-duration, 0.35s);transition-timing-function:linear(0, 0.007, 0.029 2.2%, 0.118 4.7%, 0.625 14.4%, 0.826 19%, 0.902, 0.962, 1.008 26.1%, 1.041 28.7%, 1.064 32.1%, 1.07 36%, 1.061 40.5%, 1.015 53.4%, 0.999 61.6%, 0.995 71.2%, 1)}to{opacity:1;transform:scale(1)}}/*!\n * Bootstrap Utilities v5.1.3 (https://getbootstrap.com/)\n * Copyright 2011-2021 The Bootstrap Authors\n * Copyright 2011-2021 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)\n\n * The MIT License (MIT)\n\n * Copyright (c) 2011-2020 Twitter, Inc.\n * Copyright (c) 2011-2020 The Bootstrap Authors\n\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the "Software"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n\n * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n *//*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:inline-block}.rating{display:flex;flex-wrap:wrap;overflow:hidden;margin:0 -0.25rem;border-radius:4px}.rating .star{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fff;position:relative;width:2rem;height:2rem;cursor:pointer}.rating .star .stroke,.rating .star .fill{display:block;width:100%;height:100%;transition:all ease 100ms}.rating .star .stroke{position:absolute;inset:auto;z-index:1;color:var(--post-rating-star-stroke)}.rating .star .fill{margin:1px;width:calc(100% - 2px);height:calc(100% - 2px);color:var(--post-rating-star-fill)}.rating .star.before-hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.active{--post-rating-star-stroke:hsl(0, 0%, 20%);--post-rating-star-fill:#fc0}.rating .star.hover{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:#fc0}.rating .star.after-active{--post-rating-star-stroke:hsl(0, 0%, 40%);--post-rating-star-fill:hsl(0, 0%, 80%)}.rating :focus{outline:none}.rating:focus-visible{outline-offset:2px;outline:2px solid #1976c8}.rating[aria-readonly=true] .star,.rating[aria-disabled=true] .star{cursor:default}.rating[aria-disabled=true] .star{--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:#fff}.rating[aria-disabled=true] .star.active{cursor:default;--post-rating-star-stroke:hsl(0, 0%, 60%);--post-rating-star-fill:hsl(0, 0%, 90%)}';export{o as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tooltip_trigger}from"./p-0cd2e5d0.js";import"./p-3eab790d.js";import"./p-4a3f67ab.js";import"./p-dc027837.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_logo}from"./p-abb4d5e4.js";import"./p-3eab790d.js";import"./p-dc027837.js";import"./p-788e64fb.js";import"./p-440193f4.js";import"./p-611b3c41.js";import"./p-4a3f67ab.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{P as post_tooltip}from"./p-0058b862.js";import"./p-3eab790d.js";import"./p-dc027837.js";import"./p-4a3f67ab.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as e,g as i}from"./p-3eab790d.js";import{v as a}from"./p-
|
|
1
|
+
import{r as t,h as s,H as e,g as i}from"./p-3eab790d.js";import{v as a}from"./p-dc027837.js";import{H as o}from"./p-247a1668.js";import{c as r}from"./p-611b3c41.js";const c=class{constructor(s){t(this,s),this.expandedItems=new Set,this.headingLevel=void 0,this.multiple=!1}validateHeadingLevel(t=this.headingLevel){t&&(r(t,o,"The `heading-level` property of the `post-accordion` must be a number between 1 and 6."),this.accordionItems.forEach((s=>{s.setAttribute("heading-level",String(t))})))}componentWillLoad(){this.registerAccordionItems(),this.validateHeadingLevel()}collapseToggleHandler(t){t.stopPropagation();const s=t.target;if(s.closest("post-accordion")===this.host&&"post-accordion-item"===s.localName){const s=t.target,e=this.expandedItems.has(s);if(e?this.expandedItems.delete(s):this.expandedItems.add(s),this.multiple||e)return;Array.from(this.expandedItems.values()).filter((t=>t!==s)).forEach((t=>{t.toggle(!1)}))}}async toggle(t){const s=this.accordionItems.find((s=>s.id===t));if(!s)throw new Error(`No post-accordion-item found with id #${t}.`);await s.toggle()}async expandAll(){this.multiple?await Promise.all(this.accordionItems.map((t=>t.toggle(!0)))):this.expandedItems.size||await this.accordionItems[0].toggle(!0)}async collapseAll(){await Promise.all(this.accordionItems.map((t=>t.toggle(!1))))}registerAccordionItems(){this.accordionItems=Array.from(this.host.querySelectorAll("post-accordion-item")),this.accordionItems.filter((t=>!t.collapsed||this.expandedItems.has(t))).forEach(((t,s)=>{this.multiple||0===s?this.expandedItems.add(t):t.setAttribute("collapsed","")}))}render(){return s(e,{key:"cfc6280e052937f50bc481fe73cf25ede6e40314","data-version":a},s("div",{key:"090539a2ebe9d216609a7e56597c5f379d439fb8",class:"accordion"},s("slot",{key:"4ae4095b14b6b9233f1d66c8543d625a77a77e09",onSlotchange:()=>this.registerAccordionItems()})))}get host(){return i(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};c.style=":host{display:block}";export{c as P}
|