@pod-os/contacts 0.2.0 → 0.3.0-rc.22aea6d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{chunk.5JY5FUCG-DBOKVhYw.js → chunk.5JY5FUCG-BJJbNIiG.js} +2 -2
- package/dist/cjs/{chunk.HVTXQL7M-CkreIIRp.js → chunk.HVTXQL7M-C6x_EQ24.js} +4 -4
- package/dist/cjs/{chunk.URTPIBTY-CR-txaLF.js → chunk.URTPIBTY-BiNv2Ckb.js} +3 -3
- package/dist/cjs/{chunk.XQ2OKYYA-DwhvXyP9.js → chunk.XQ2OKYYA-CDJtWcvs.js} +4 -4
- package/dist/cjs/{chunk.YHLNUJ7P-BQOX8L9A.js → chunk.YHLNUJ7P-CoQhYOM2.js} +1 -1
- package/dist/cjs/chunk.ZGGPD2XJ-C--tZiyf.js +5 -0
- package/dist/cjs/{class-map-Bp6RgbSP.js → class-map-CyEFRZYn.js} +1 -1
- package/dist/cjs/contacts.cjs.js +2 -2
- package/dist/cjs/{if-defined-C9hF9oNL.js → if-defined-TQmAS6tz.js} +1 -1
- package/dist/cjs/{index-CYTjugvn.js → index-CpATWk39.js} +1 -1
- package/dist/cjs/{index-FUnpyb19.js → index-D1Wk2cIF.js} +2 -2
- package/dist/cjs/{index-BicjKg3I.js → index-DdRXU5II.js} +547 -2001
- package/dist/cjs/{jsonld-V2RB47OZ-BerQ9IRa.js → jsonld-V2RB47OZ-DDsC42qL.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pos-add-literal-value_3.cjs.entry.js +8 -8
- package/dist/cjs/pos-add-new-thing_7.cjs.entry.js +9 -9
- package/dist/cjs/pos-app-browser.cjs.entry.js +2 -2
- package/dist/cjs/pos-app-dashboard_6.cjs.entry.js +5 -5
- package/dist/cjs/pos-app-document-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-generic.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-image-viewer.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-ldp-container.cjs.entry.js +1 -1
- package/dist/cjs/pos-app-rdf-document.cjs.entry.js +1 -1
- package/dist/cjs/pos-app_24.cjs.entry.js +309 -178
- package/dist/cjs/pos-attachments.cjs.entry.js +2 -2
- package/dist/cjs/pos-container-contents.cjs.entry.js +2 -2
- package/dist/cjs/pos-container-item_3.cjs.entry.js +6 -6
- package/dist/cjs/pos-description_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-document.cjs.entry.js +6 -6
- package/dist/cjs/pos-list.cjs.entry.js +1 -1
- package/dist/cjs/pos-make-findable_2.cjs.entry.js +9 -9
- package/dist/cjs/pos-markdown-document.cjs.entry.js +443 -2328
- package/dist/cjs/pos-new-thing-form.cjs.entry.js +1 -1
- package/dist/cjs/pos-predicate.cjs.entry.js +6 -6
- package/dist/cjs/pos-relations_2.cjs.entry.js +1 -1
- package/dist/cjs/pos-select-term.cjs.entry.js +1 -1
- package/dist/cjs/pos-subjects.cjs.entry.js +2 -2
- package/dist/cjs/pos-tool-attachments.cjs.entry.js +1 -1
- package/dist/cjs/pos-tool-select.cjs.entry.js +4 -4
- package/dist/cjs/pos-value.cjs.entry.js +1 -1
- package/dist/cjs/{session-DkRUfe3C.js → session-kBhmup9r.js} +1 -1
- package/dist/cjs/{settings-C4KFmugv.js → settings-CpwCCkhx.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/contact-details/email-addresses/email-addresses.js +2 -1
- package/dist/collection/components/contact-details/phone-numbers/phone-numbers.js +2 -1
- package/dist/collection/components/contact-list/contact-list.js +4 -2
- package/dist/collection/components/create-new-contact-form/create-new-contact-form.js +2 -1
- package/dist/collection/components/group-list/group-list.js +4 -2
- package/dist/collection/components/open-address-book/open-address-book.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/open-address-book.js +1 -1
- package/dist/components/pos-add-literal-value2.js +1 -1
- package/dist/components/pos-attachments2.js +1 -1
- package/dist/components/pos-make-findable2.js +1 -1
- package/dist/components/pos-markdown-document2.js +1 -1
- package/dist/components/pos-tool-select2.js +1 -1
- package/dist/components/pos-type-index-entries2.js +1 -1
- package/dist/components/pos-upload2.js +12 -3
- package/dist/contacts/contacts.esm.js +1 -1
- package/dist/contacts/{p-728d6af6.entry.js → p-26248da8.entry.js} +1 -1
- package/dist/contacts/p-40b2d792.entry.js +1 -0
- package/dist/contacts/{p-2f71dc3f.entry.js → p-46f8861e.entry.js} +1 -1
- package/dist/contacts/{p-a1eccbb3.entry.js → p-4ef3891c.entry.js} +1 -1
- package/dist/contacts/{p-Doy_38_j.js → p-5LNPeQkx.js} +1 -1
- package/dist/contacts/p-5e11ce90.entry.js +1 -0
- package/dist/contacts/{p-f5733446.entry.js → p-649e7365.entry.js} +1 -1
- package/dist/contacts/{p-ZMx7-r-Z.js → p-68gi0rt1.js} +2 -2
- package/dist/contacts/p-6d4ec7e5.entry.js +1 -0
- package/dist/contacts/{p-2838a706.entry.js → p-76382e6a.entry.js} +1 -1
- package/dist/contacts/{p-a4ce6940.entry.js → p-78715d17.entry.js} +1 -1
- package/dist/contacts/p-7a01c820.entry.js +1 -0
- package/dist/contacts/{p-1a3db10b.entry.js → p-7d796ba8.entry.js} +12 -12
- package/dist/contacts/{p-274a058e.entry.js → p-7f565d49.entry.js} +1 -1
- package/dist/contacts/{p-a2fd47c3.entry.js → p-84fdbc1a.entry.js} +1 -1
- package/dist/contacts/p-8bc26fd9.entry.js +1 -0
- package/dist/contacts/{p-d84a0a69.entry.js → p-92fcdd59.entry.js} +1 -1
- package/dist/contacts/p-B0L5m2PZ.js +67 -0
- package/dist/contacts/{p-1xUnBGk9.js → p-B0_xZCeV.js} +3 -3
- package/dist/contacts/{p-GY-EgIvC.js → p-BXcFVJku.js} +2 -2
- package/dist/contacts/{p-B9Os6GUk.js → p-BXdS2klL.js} +4 -4
- package/dist/contacts/p-Bk6kpzHk.js +1 -0
- package/dist/contacts/{p-C_2ssh--.js → p-BkeypvMo.js} +7 -7
- package/dist/contacts/{p-sjhA5ZF-.js → p-Bug_w-vi.js} +1 -1
- package/dist/contacts/p-C1XsyD29.js +1 -0
- package/dist/contacts/{p-DAeBhDur.js → p-C8LPXtIR.js} +8 -8
- package/dist/contacts/p-DScSUBy-.js +2 -0
- package/dist/contacts/p-D_nUMgR-.js +11 -0
- package/dist/contacts/{p-CXax1-ne.js → p-SrdKoY3I.js} +1 -1
- package/dist/contacts/p-a3082900.entry.js +1 -0
- package/dist/contacts/{p-1d26260f.entry.js → p-a629ae72.entry.js} +1 -1
- package/dist/contacts/{p-67acd5f1.entry.js → p-a9d03996.entry.js} +1 -1
- package/dist/contacts/{p-a98a5bbc.entry.js → p-ae43e046.entry.js} +1 -1
- package/dist/contacts/{p-a7162c9d.entry.js → p-c306d8ca.entry.js} +1 -1
- package/dist/contacts/{p-1c438065.entry.js → p-c4a1c42a.entry.js} +1 -1
- package/dist/contacts/{p-fe469d93.entry.js → p-c89722f1.entry.js} +1 -1
- package/dist/contacts/{p-04958ea3.entry.js → p-ce6b4a9a.entry.js} +1 -1
- package/dist/contacts/{p-8bfd4d17.entry.js → p-d510fa6c.entry.js} +12 -3
- package/dist/contacts/{p-be6f3b82.entry.js → p-ecf8719a.entry.js} +1 -1
- package/dist/contacts/{p-934f49b1.entry.js → p-f8517ff2.entry.js} +1 -1
- package/dist/esm/{chunk.5JY5FUCG-BOo64hgz.js → chunk.5JY5FUCG-B58l5Mdn.js} +2 -2
- package/dist/esm/{chunk.HVTXQL7M-D4GE2ek9.js → chunk.HVTXQL7M-DXJDg6h_.js} +4 -4
- package/dist/esm/{chunk.URTPIBTY-DtWmW4Pb.js → chunk.URTPIBTY-C1YI_wtI.js} +3 -3
- package/dist/esm/{chunk.XQ2OKYYA-Cgug_yvW.js → chunk.XQ2OKYYA-B0surOUs.js} +4 -4
- package/dist/esm/{chunk.YHLNUJ7P-CGClYowr.js → chunk.YHLNUJ7P-B10Qbx9i.js} +1 -1
- package/dist/esm/chunk.ZGGPD2XJ-CxH68zCl.js +3 -0
- package/dist/esm/{class-map-CuxcTjQ5.js → class-map-DcKoKhP0.js} +1 -1
- package/dist/esm/contacts.js +3 -3
- package/dist/esm/{if-defined-1V1UljxT.js → if-defined-TtuUo8or.js} +1 -1
- package/dist/esm/{index-DFqG64hG.js → index-D-Cg1uHv.js} +2 -2
- package/dist/esm/{index-DlhTPhZx.js → index-D4tjvI9D.js} +1 -1
- package/dist/esm/{index-_4aU9NfA.js → index-DScSUBy-.js} +546 -2000
- package/dist/esm/{jsonld-V2RB47OZ-CaIJ08AA.js → jsonld-V2RB47OZ-BA1jAPl4.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/pos-add-literal-value_3.entry.js +8 -8
- package/dist/esm/pos-add-new-thing_7.entry.js +9 -9
- package/dist/esm/pos-app-browser.entry.js +2 -2
- package/dist/esm/pos-app-dashboard_6.entry.js +5 -5
- package/dist/esm/pos-app-document-viewer.entry.js +1 -1
- package/dist/esm/pos-app-generic.entry.js +1 -1
- package/dist/esm/pos-app-image-viewer.entry.js +1 -1
- package/dist/esm/pos-app-ldp-container.entry.js +1 -1
- package/dist/esm/pos-app-rdf-document.entry.js +1 -1
- package/dist/esm/pos-app_24.entry.js +309 -178
- package/dist/esm/pos-attachments.entry.js +2 -2
- package/dist/esm/pos-container-contents.entry.js +2 -2
- package/dist/esm/pos-container-item_3.entry.js +6 -6
- package/dist/esm/pos-description_2.entry.js +1 -1
- package/dist/esm/pos-document.entry.js +6 -6
- package/dist/esm/pos-list.entry.js +1 -1
- package/dist/esm/pos-make-findable_2.entry.js +9 -9
- package/dist/esm/pos-markdown-document.entry.js +443 -2328
- package/dist/esm/pos-new-thing-form.entry.js +1 -1
- package/dist/esm/pos-predicate.entry.js +6 -6
- package/dist/esm/pos-relations_2.entry.js +1 -1
- package/dist/esm/pos-select-term.entry.js +1 -1
- package/dist/esm/pos-subjects.entry.js +2 -2
- package/dist/esm/pos-tool-attachments.entry.js +1 -1
- package/dist/esm/pos-tool-select.entry.js +4 -4
- package/dist/esm/pos-value.entry.js +1 -1
- package/dist/esm/{session-dNJIwSOx.js → session-CtUoUtdF.js} +1 -1
- package/dist/esm/{settings-B396TU1j.js → settings-Cnw1mSJw.js} +1 -1
- package/dist/types/components.d.ts +47 -22
- package/dist/types/stencil-public-runtime.d.ts +52 -2
- package/package.json +2 -2
- package/dist/cjs/chunk.ZGGPD2XJ-D0JTxaR_.js +0 -5
- package/dist/contacts/p-34745d30.entry.js +0 -1
- package/dist/contacts/p-40c74195.entry.js +0 -1
- package/dist/contacts/p-4b083d14.entry.js +0 -1
- package/dist/contacts/p-734b1a7b.entry.js +0 -1
- package/dist/contacts/p-CbjulEge.js +0 -1
- package/dist/contacts/p-D6s4RlTY.js +0 -1
- package/dist/contacts/p-LoCE14bN.js +0 -67
- package/dist/contacts/p-_4aU9NfA.js +0 -2
- package/dist/contacts/p-c5e66c2d.entry.js +0 -1
- package/dist/contacts/p-c614a152.entry.js +0 -1
- package/dist/contacts/p-ffZsjcF5.js +0 -11
- package/dist/esm/chunk.ZGGPD2XJ-BfEMOYfC.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-
|
|
1
|
+
import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-C8LPXtIR.js";import{S as l,e as r,s as p,p as n,a as d,g as c,b as u,w as m}from"./p-BXdS2klL.js";import{L as f}from"./p-BnGEOH37.js";import{e as w}from"./p-D_nUMgR-.js";var g=t`
|
|
2
2
|
:host {
|
|
3
3
|
--max-width: 20rem;
|
|
4
4
|
--hide-delay: 0ms;
|
|
@@ -50,7 +50,7 @@ import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-DAeBhDur.js";import{
|
|
|
50
50
|
user-select: none;
|
|
51
51
|
-webkit-user-select: none;
|
|
52
52
|
}
|
|
53
|
-
`,
|
|
53
|
+
`,y=class extends a{constructor(){super(),this.localize=new f(this),this.content="",this.placement="top",this.disabled=!1,this.distance=8,this.open=!1,this.skidding=0,this.trigger="hover focus",this.hoist=!1,this.handleBlur=()=>{this.hasTrigger("focus")&&this.hide()},this.handleClick=()=>{this.hasTrigger("click")&&(this.open?this.hide():this.show())},this.handleFocus=()=>{this.hasTrigger("focus")&&this.show()},this.handleDocumentKeyDown=t=>{"Escape"===t.key&&(t.stopPropagation(),this.hide())},this.handleMouseOver=()=>{if(this.hasTrigger("hover")){const t=n(getComputedStyle(this).getPropertyValue("--show-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.show()),t)}},this.handleMouseOut=()=>{if(this.hasTrigger("hover")){const t=n(getComputedStyle(this).getPropertyValue("--hide-delay"));clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout((()=>this.hide()),t)}},this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var t;super.disconnectedCallback(),null==(t=this.closeWatcher)||t.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition())}hasTrigger(t){return this.trigger.split(" ").includes(t)}async handleOpenChange(){var t,i;if(this.open){if(this.disabled)return;this.emit("sl-show"),"CloseWatcher"in window?(null==(t=this.closeWatcher)||t.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),await d(this.body),this.body.hidden=!1,this.popup.active=!0;const{keyframes:i,options:s}=c(this,"tooltip.show",{dir:this.localize.dir()});await u(this.popup.popup,i,s),this.popup.reposition(),this.emit("sl-after-show")}else{this.emit("sl-hide"),null==(i=this.closeWatcher)||i.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown),await d(this.body);const{keyframes:t,options:s}=c(this,"tooltip.hide",{dir:this.localize.dir()});await u(this.popup.popup,t,s),this.popup.active=!1,this.body.hidden=!0,this.emit("sl-after-hide")}}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,m(this,"sl-after-show")}async hide(){if(this.open)return this.open=!1,m(this,"sl-after-hide")}render(){return h`
|
|
54
54
|
<sl-popup
|
|
55
55
|
part="base"
|
|
56
56
|
exportparts="
|
|
@@ -75,4 +75,4 @@ import{i as t,c as i,_ as s,n as o,w as e,a,x as h}from"./p-DAeBhDur.js";import{
|
|
|
75
75
|
<slot name="content">${this.content}</slot>
|
|
76
76
|
</div>
|
|
77
77
|
</sl-popup>
|
|
78
|
-
`}};
|
|
78
|
+
`}};y.styles=[i,g],y.dependencies={"sl-popup":l},s([r("slot:not([name])")],y.prototype,"defaultSlot",2),s([r(".tooltip__body")],y.prototype,"body",2),s([r("sl-popup")],y.prototype,"popup",2),s([o()],y.prototype,"content",2),s([o()],y.prototype,"placement",2),s([o({type:Boolean,reflect:!0})],y.prototype,"disabled",2),s([o({type:Number})],y.prototype,"distance",2),s([o({type:Boolean,reflect:!0})],y.prototype,"open",2),s([o({type:Number})],y.prototype,"skidding",2),s([o()],y.prototype,"trigger",2),s([o({type:Boolean})],y.prototype,"hoist",2),s([e("open",{waitUntilFirstUpdate:!0})],y.prototype,"handleOpenChange",1),s([e(["content","distance","hoist","placement","skidding"])],y.prototype,"handleOptionsChange",1),s([e("disabled")],y.prototype,"handleDisabledChange",1),p("tooltip.show",{keyframes:[{opacity:0,scale:.8},{opacity:1,scale:1}],options:{duration:150,easing:"ease"}}),p("tooltip.hide",{keyframes:[{opacity:1,scale:1},{opacity:0,scale:.8}],options:{duration:150,easing:"ease"}}),y.define("sl-tooltip");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as t,d as e,i as n,c as i,_ as o,n as r,a,x as s}from"./p-
|
|
1
|
+
import{b as t,d as e,i as n,c as i,_ as o,n as r,a,x as s}from"./p-C8LPXtIR.js";import{L as l}from"./p-BnGEOH37.js";import{e as c}from"./p-D_nUMgR-.js";
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
@@ -9,7 +9,7 @@ import{b as t,d as e,i as n,c as i,_ as o,n as r,a,x as s}from"./p-DAeBhDur.js";
|
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
11
|
*/
|
|
12
|
-
function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return this.renderRoot?.querySelector(t)??null}})}var f=new Map,h=new WeakMap;function p(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function d(t,e){f.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function m(t,e,n){const i=h.get(t);if(null==i?void 0:i[e])return p(i[e],n.dir);const o=f.get(e);return o?p(o,n.dir):{keyframes:[],options:{duration:0}}}function
|
|
12
|
+
function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,n),n))(e,n,{get(){return this.renderRoot?.querySelector(t)??null}})}var f=new Map,h=new WeakMap;function p(t,e){return"rtl"===e.toLowerCase()?{keyframes:t.rtlKeyframes||t.keyframes,options:t.options}:t}function d(t,e){f.set(t,function(t){return null!=t?t:{keyframes:[],options:{duration:0}}}(e))}function m(t,e,n){const i=h.get(t);if(null==i?void 0:i[e])return p(i[e],n.dir);const o=f.get(e);return o?p(o,n.dir):{keyframes:[],options:{duration:0}}}function g(t,e){return new Promise((n=>{t.addEventListener(e,(function i(o){o.target===t&&(t.removeEventListener(e,i),n())}))}))}function b(n,i,o){return new Promise((r=>{if((null==o?void 0:o.duration)===1/0)throw new Error("Promise-based animations must be finite.");const a=n.animate(i,t(e({},o),{duration:window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:o.duration}));a.addEventListener("cancel",r,{once:!0}),a.addEventListener("finish",r,{once:!0})}))}function y(t){return(t=t.toString().toLowerCase()).indexOf("ms")>-1?parseFloat(t):t.indexOf("s")>-1?1e3*parseFloat(t):parseFloat(t)}function v(t){return Promise.all(t.getAnimations().map((t=>new Promise((e=>{t.cancel(),requestAnimationFrame(e)})))))}var w=n`
|
|
13
13
|
:host {
|
|
14
14
|
--arrow-color: var(--sl-color-neutral-1000);
|
|
15
15
|
--arrow-size: 6px;
|
|
@@ -67,7 +67,7 @@ function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.
|
|
|
67
67
|
var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
|
|
68
68
|
);
|
|
69
69
|
}
|
|
70
|
-
`;const x=Math.min,z=Math.max,A=Math.round,S=Math.floor,$=t=>({x:t,y:t}),k={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function F(t,e,n){return z(t,x(e,n))}function O(t,e){return"function"==typeof t?t(e):t}function B(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function j(t){return"x"===t?"y":"x"}function E(t){return"y"===t?"height":"width"}const C=new Set(["top","bottom"]);function D(t){return C.has(B(t))?"y":"x"}function T(t){return j(D(t))}function M(t){return t.replace(/start|end/g,(t=>P[t]))}const N=["left","right"],L=["right","left"],_=["top","bottom"],H=["bottom","top"];function q(t){return t.replace(/left|right|bottom|top/g,(t=>k[t]))}function W(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 I(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function Y(t,e,n){let{reference:i,floating:o}=t;const r=D(e),a=T(e),s=E(a),l=B(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-o.width,y:f};break;default:p={x:i.x,y:i.y}}switch(R(e)){case"start":p[a]-=h*(n&&c?-1:1);break;case"end":p[a]+=h*(n&&c?-1:1)}return p}async function G(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=O(e,t),d=W(p),m=s[h?"floating"===f?"reference":"floating":f],b=I(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=I(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(b.top-w.top+d.top)/v.y,bottom:(w.bottom-b.bottom+d.bottom)/v.y,left:(b.left-w.left+d.left)/v.x,right:(w.right-b.right+d.right)/v.x}}const V=new Set(["left","top"]);function X(){return"undefined"!=typeof window}function Z(t){return Q(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function K(t){var e;return null==(e=(Q(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Q(t){return!!X()&&(t instanceof Node||t instanceof J(t).Node)}function U(t){return!!X()&&(t instanceof Element||t instanceof J(t).Element)}function tt(t){return!!X()&&(t instanceof HTMLElement||t instanceof J(t).HTMLElement)}function et(t){return!(!X()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof J(t).ShadowRoot)}const nt=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!nt.has(o)}const ot=new Set(["table","td","th"]);function rt(t){return ot.has(Z(t))}const at=[":popover-open",":modal"];function st(t){return at.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const lt=["transform","translate","scale","rotate","perspective"],ct=["transform","translate","scale","rotate","perspective","filter"],ut=["paint","layout","strict","content"];function ft(t){const e=ht(),n=U(t)?mt(t):t;return lt.some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||ct.some((t=>(n.willChange||"").includes(t)))||ut.some((t=>(n.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pt=new Set(["html","body","#document"]);function dt(t){return pt.has(Z(t))}function mt(t){return J(t).getComputedStyle(t)}function bt(t){return U(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function gt(t){if("html"===Z(t))return t;const e=t.assignedSlot||t.parentNode||et(t)&&t.host||K(t);return et(e)?e.host:e}function yt(t){const e=gt(t);return dt(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&it(e)?e:yt(e)}function vt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=yt(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=J(o);if(r){const t=wt(a);return e.concat(a,a.visualViewport||[],it(o)?o:[],t&&n?vt(t):[])}return e.concat(o,vt(o,[],n))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xt(t){const e=mt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=tt(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=A(n)!==r||A(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function zt(t){return U(t)?t:t.contextElement}function At(t){const e=zt(t);if(!tt(e))return $(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=xt(e);let a=(r?A(n.width):n.width)/i,s=(r?A(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const St=$(0);function $t(t){const e=J(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:St}function kt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=zt(t);let a=$(1);e&&(i?U(i)&&(a=At(i)):a=At(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==J(t))&&e}(r,n,i)?$t(r):$(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){const t=J(r),e=i&&U(i)?J(i):i;let n=t,o=wt(n);for(;o&&i&&e!==n;){const t=At(o),e=o.getBoundingClientRect(),i=mt(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,f*=t.y,l+=r,c+=a,n=J(o),o=wt(n)}}return I({width:u,height:f,x:l,y:c})}function Pt(t,e){const n=bt(t).scrollLeft;return e?e.left+n:kt(K(t)).left+n}function Ft(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Pt(t,i)),y:i.top+e.scrollTop}}const Ot=new Set(["absolute","fixed"]);function Bt(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=J(t),i=K(t),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const t=ht();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=K(t),n=bt(t),i=t.ownerDocument.body,o=z(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=z(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Pt(t);const s=-n.scrollTop;return"rtl"===mt(i).direction&&(a+=z(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(K(t));else if(U(e))i=function(t,e){const n=kt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=tt(t)?At(t):$(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=$t(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return I(i)}function Rt(t,e){const n=gt(t);return!(n===e||!U(n)||dt(n))&&("fixed"===mt(n).position||Rt(n,e))}function jt(t,e,n){const i=tt(e),o=K(e),r="fixed"===n,a=kt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=$(0);function c(){l.x=Pt(o)}if(i||!i&&!r)if(("body"!==Z(e)||it(o))&&(s=bt(e)),i){const t=kt(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&c();r&&!i&&o&&c();const u=!o||i||r?$(0):Ft(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Et(t){return"static"===mt(t).position}function Ct(t,e){if(!tt(t)||"fixed"===mt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return K(t)===n&&(n=n.ownerDocument.body),n}function Dt(t,e){const n=J(t);if(st(t))return n;if(!tt(t)){let e=gt(t);for(;e&&!dt(e);){if(U(e)&&!Et(e))return e;e=gt(e)}return n}let i=Ct(t,e);for(;i&&rt(i)&&Et(i);)i=Ct(i,e);return i&&dt(i)&&Et(i)&&!ft(i)?n:i||function(t){let e=gt(t);for(;tt(e)&&!dt(e);){if(ft(e))return e;if(st(e))return null;e=gt(e)}return null}(t)||n}const Tt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,a=K(i),s=!!e&&st(e.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=$(1);const u=$(0),f=tt(i);if((f||!f&&!r)&&(("body"!==Z(i)||it(a))&&(l=bt(i)),tt(i))){const t=kt(i);c=At(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!a||f||r?$(0):Ft(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:K,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?st(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=vt(t,[],!1).filter((t=>U(t)&&"body"!==Z(t))),o=null;const r="fixed"===mt(t).position;let a=r?gt(t):t;for(;U(a)&&!dt(a);){const e=mt(a),n=ft(a);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&Ot.has(o.position)||it(a)&&!n&&Rt(t,a))?i=i.filter((t=>t!==a)):o=e,a=gt(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=r.reduce(((t,n)=>{const i=Bt(e,n,o);return t.top=z(i.top,t.top),t.right=x(i.right,t.right),t.bottom=x(i.bottom,t.bottom),t.left=z(i.left,t.left),t}),Bt(e,r[0],o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Dt,getElementRects:async function(t){const e=this.getOffsetParent||Dt,n=this.getDimensions,i=await n(t.floating);return{reference:jt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=xt(t);return{width:e,height:n}},getScale:At,isElement:U,isRTL:function(t){return"rtl"===mt(t).direction}};function Mt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Nt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...b}=O(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const g=B(o),y=D(s),v=B(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(v||!m?[q(s)]:function(t){const e=q(t);return[M(t),e,M(e)]}(s)),z="none"!==d;!h&&z&&x.push(...function(t,e,n,i){const o=R(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?L:N:e?N:L;case"left":case"right":return e?_:H;default:return[]}}(B(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(M)))),r}(s,m,d,w));const A=[s,...x],S=await G(e,b),$=[];let k=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(S[g]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=R(t),o=T(t),r=E(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=q(a)),[a,q(a)]}(o,a,w);$.push(S[t[0]],S[t[1]])}if(k=[...k,{placement:o,overflows:$}],!$.every((t=>t<=0))){var P,F;const t=((null==(P=r.flip)?void 0:P.index)||0)+1,e=A[t];if(e&&("alignment"!==f||y===D(e)||k.every((t=>t.overflows[0]>0&&D(t.placement)===y))))return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(F=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(p){case"bestFit":{var j;const t=null==(j=k.filter((t=>{if(z){const e=D(t.placement);return e===y||"y"===e}return!0})).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:j[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Lt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=O(t,e),u=await G(e,c),f=B(o),h=R(o),p="y"===D(o),{width:d,height:m}=r.floating;let b,g;"top"===f||"bottom"===f?(b=f,g=h===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=f,b="end"===h?"top":"bottom");const y=m-u.top-u.bottom,v=d-u.left-u.right;let w=x(m-u[b],y),A=x(d-u[g],v);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=v),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(w=y),!e.middlewareData.shift&&!h){const t=z(u.left,0),e=z(u.right,0),n=z(u.top,0),i=z(u.bottom,0);p?A=d-2*(0!==t||0!==e?t+e:z(u.left,u.right)):w=m-2*(0!==n||0!==i?n+i:z(u.top,u.bottom))}await l({...e,availableWidth:A,availableHeight:w});const S=await a.getDimensions(s.floating);return d!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function _t(t){return function(t){for(let e=t;e;e=Ht(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ht(t);e;e=Ht(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||ft(t))return e;if("BODY"===e.tagName)return e}}return null}(t)}function Ht(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var qt=class extends a{constructor(){super(...arguments),this.localize=new l(this),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let n=0,i=0,o=0,r=0,a=0,s=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(n=t.left,i=t.bottom,o=t.right,r=t.bottom,a=e.left,s=e.top,l=e.right,c=e.top):(n=e.left,i=e.bottom,o=e.right,r=e.bottom,a=t.left,s=t.top,l=t.right,c=t.top):t.left<e.left?(n=t.right,i=t.top,o=e.left,r=e.top,a=t.right,s=t.bottom,l=e.left,c=e.bottom):(n=e.right,i=e.top,o=t.left,r=t.top,a=e.right,s=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${n}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${o}px`),this.style.setProperty("--hover-bridge-top-right-y",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchorEl=this.anchor instanceof Element||function(t){return null!==t&&"object"==typeof t&&"getBoundingClientRect"in t&&(!("contextElement"in t)||t.contextElement instanceof Element)}(this.anchor)?this.anchor:this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){this.anchorEl&&this.active&&(this.cleanup=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=zt(t),u=o||r?[...c?vt(c):[],...vt(e)]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const f=c&&s?function(t,e){let n,i=null;const o=K(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(s||e(),!h||!p)return;const d={rootMargin:-S(f)+"px "+-S(o.clientWidth-(u+h))+"px "+-S(o.clientHeight-(f+p))+"px "+-S(u)+"px",threshold:z(0,x(1,l))||1};let m=!0;function b(e){const i=e[0].intersectionRatio;if(i!==l){if(!m)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||Mt(c,t.getBoundingClientRect())||a(),m=!1}try{i=new IntersectionObserver(b,{...d,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(b,d)}i.observe(t)}(!0),r}(c,n):null;let h,p=-1,d=null;a&&(d=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&d&&(d.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=d)||t.observe(e)}))),n()})),c&&!l&&d.observe(c),d.observe(e));let m=l?kt(t):null;return l&&function e(){const i=kt(t);m&&!Mt(m,i)&&n(),m=i,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=d)||t.disconnect(),d=null,l&&cancelAnimationFrame(h)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const n=[(i={mainAxis:this.distance,crossAxis:this.skidding},void 0===i&&(i=0),{name:"offset",options:i,async fn(t){var e,n;const{x:o,y:r,placement:a,middlewareData:s}=t,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=B(n),s=R(n),l="y"===D(n),c=V.has(a)?-1:1,u=r&&l?-1:1,f=O(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof d&&(p="end"===s?-1*d:d),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,i);return a===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}})];var i;this.sync?n.push(Lt({apply:({rects:t})=>{const e="height"===this.sync||"both"===this.sync;this.popup.style.width="width"===this.sync||"both"===this.sync?`${t.reference.width}px`:"",this.popup.style.height=e?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(Nt({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=O(t,e),c={x:n,y:i},u=await G(e,l),f=D(B(o)),h=j(f);let p=c[h],d=c[f];r&&(p=F(p+u["y"===h?"top":"left"],p,p-u["y"===h?"bottom":"right"])),a&&(d=F(d+u["y"===f?"top":"left"],d,d-u["y"===f?"bottom":"right"]));const m=s.fn({...e,[h]:p,[f]:d});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[h]:r,[f]:a}}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(Lt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=O(t,e)||{};if(null==c)return{};const f=W(u),h={x:n,y:i},p=T(o),d=E(p),m=await a.getDimensions(c),b="y"===p,g=b?"top":"left",y=b?"bottom":"right",v=b?"clientHeight":"clientWidth",w=r.reference[d]+r.reference[p]-h[p]-r.floating[d],z=h[p]-r.reference[p],A=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=A?A[v]:0;S&&await(null==a.isElement?void 0:a.isElement(A))||(S=s.floating[v]||r.floating[d]);const $=w/2-z/2,k=S/2-m[d]/2-1,P=x(f[g],k),B=x(f[y],k),j=P,C=S-m[d]-B,D=S/2-m[d]/2+$,M=F(j,D,C),N=!l.arrow&&null!=R(o)&&D!==M&&r.reference[d]/2-(D<j?P:B)-m[d]/2<0,L=N?D<j?D-j:D-C:0;return{[p]:h[p]+L,data:{[p]:M,centerOffset:D-M-L,...N&&{alignmentOffset:L}},reset:N}}}))({element:this.arrowEl,padding:this.arrowPadding}));const o="absolute"===this.strategy?t=>Tt.getOffsetParent(t,_t):Tt.getOffsetParent;((t,e,n)=>{const i=new Map,o={platform:Tt,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=Y(c,i,l),h=i,p={},d=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:b,y:g,data:y,reset:v}=await m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=b?b:u,f=null!=g?g:f,p={...p,[r]:{...p[r],...y}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:f}=Y(c,h,l))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:p}})(t,e,{...o,platform:r})})(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy,platform:t(e({},Tt),{getOffsetParent:o})}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const o="rtl"===this.localize.dir(),r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=n.arrow.x,e=n.arrow.y;let i="",a="",s="",l="";if("start"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=o?n:"",l=o?"":n}else if("end"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=o?"":n,l=o?n:"",s="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:a,bottom:s,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return s`
|
|
70
|
+
`;const x=Math.min,z=Math.max,A=Math.round,S=Math.floor,$=t=>({x:t,y:t}),k={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function F(t,e,n){return z(t,x(e,n))}function O(t,e){return"function"==typeof t?t(e):t}function R(t){return t.split("-")[0]}function B(t){return t.split("-")[1]}function E(t){return"x"===t?"y":"x"}function j(t){return"y"===t?"height":"width"}const C=new Set(["top","bottom"]);function T(t){return C.has(R(t))?"y":"x"}function D(t){return E(T(t))}function M(t){return t.replace(/start|end/g,(t=>P[t]))}const L=["left","right"],N=["right","left"],_=["top","bottom"],H=["bottom","top"];function q(t){return t.replace(/left|right|bottom|top/g,(t=>k[t]))}function I(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 W(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function X(t,e,n){let{reference:i,floating:o}=t;const r=T(e),a=D(e),s=j(a),l=R(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:i.y-o.height};break;case"bottom":p={x:u,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:f};break;case"left":p={x:i.x-o.width,y:f};break;default:p={x:i.x,y:i.y}}switch(B(e)){case"start":p[a]-=h*(n&&c?-1:1);break;case"end":p[a]+=h*(n&&c?-1:1)}return p}async function Y(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=O(e,t),d=I(p),m=s[h?"floating"===f?"reference":"floating":f],g=W(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(y))&&await(null==r.getScale?void 0:r.getScale(y))||{x:1,y:1},w=W(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-w.top+d.top)/v.y,bottom:(w.bottom-g.bottom+d.bottom)/v.y,left:(g.left-w.left+d.left)/v.x,right:(w.right-g.right+d.right)/v.x}}const G=new Set(["left","top"]);function U(){return"undefined"!=typeof window}function V(t){return Q(t)?(t.nodeName||"").toLowerCase():"#document"}function J(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function K(t){var e;return null==(e=(Q(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function Q(t){return!!U()&&(t instanceof Node||t instanceof J(t).Node)}function Z(t){return!!U()&&(t instanceof Element||t instanceof J(t).Element)}function tt(t){return!!U()&&(t instanceof HTMLElement||t instanceof J(t).HTMLElement)}function et(t){return!(!U()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof J(t).ShadowRoot)}const nt=new Set(["inline","contents"]);function it(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=mt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!nt.has(o)}const ot=new Set(["table","td","th"]);function rt(t){return ot.has(V(t))}const at=[":popover-open",":modal"];function st(t){return at.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}const lt=["transform","translate","scale","rotate","perspective"],ct=["transform","translate","scale","rotate","perspective","filter"],ut=["paint","layout","strict","content"];function ft(t){const e=ht(),n=Z(t)?mt(t):t;return lt.some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||ct.some((t=>(n.willChange||"").includes(t)))||ut.some((t=>(n.contain||"").includes(t)))}function ht(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const pt=new Set(["html","body","#document"]);function dt(t){return pt.has(V(t))}function mt(t){return J(t).getComputedStyle(t)}function gt(t){return Z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function bt(t){if("html"===V(t))return t;const e=t.assignedSlot||t.parentNode||et(t)&&t.host||K(t);return et(e)?e.host:e}function yt(t){const e=bt(t);return dt(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&it(e)?e:yt(e)}function vt(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=yt(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=J(o);if(r){const t=wt(a);return e.concat(a,a.visualViewport||[],it(o)?o:[],t&&n?vt(t):[])}return e.concat(o,vt(o,[],n))}function wt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function xt(t){const e=mt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=tt(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=A(n)!==r||A(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function zt(t){return Z(t)?t:t.contextElement}function At(t){const e=zt(t);if(!tt(e))return $(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=xt(e);let a=(r?A(n.width):n.width)/i,s=(r?A(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const St=$(0);function $t(t){const e=J(t);return ht()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:St}function kt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=zt(t);let a=$(1);e&&(i?Z(i)&&(a=At(i)):a=At(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==J(t))&&e}(r,n,i)?$t(r):$(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){const t=J(r),e=i&&Z(i)?J(i):i;let n=t,o=wt(n);for(;o&&i&&e!==n;){const t=At(o),e=o.getBoundingClientRect(),i=mt(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,f*=t.y,l+=r,c+=a,n=J(o),o=wt(n)}}return W({width:u,height:f,x:l,y:c})}function Pt(t,e){const n=gt(t).scrollLeft;return e?e.left+n:kt(K(t)).left+n}function Ft(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:Pt(t,i)),y:i.top+e.scrollTop}}const Ot=new Set(["absolute","fixed"]);function Rt(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=J(t),i=K(t),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const t=ht();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=K(t),n=gt(t),i=t.ownerDocument.body,o=z(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=z(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+Pt(t);const s=-n.scrollTop;return"rtl"===mt(i).direction&&(a+=z(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(K(t));else if(Z(e))i=function(t,e){const n=kt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=tt(t)?At(t):$(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=$t(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return W(i)}function Bt(t,e){const n=bt(t);return!(n===e||!Z(n)||dt(n))&&("fixed"===mt(n).position||Bt(n,e))}function Et(t,e,n){const i=tt(e),o=K(e),r="fixed"===n,a=kt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=$(0);function c(){l.x=Pt(o)}if(i||!i&&!r)if(("body"!==V(e)||it(o))&&(s=gt(e)),i){const t=kt(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&c();r&&!i&&o&&c();const u=!o||i||r?$(0):Ft(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function jt(t){return"static"===mt(t).position}function Ct(t,e){if(!tt(t)||"fixed"===mt(t).position)return null;if(e)return e(t);let n=t.offsetParent;return K(t)===n&&(n=n.ownerDocument.body),n}function Tt(t,e){const n=J(t);if(st(t))return n;if(!tt(t)){let e=bt(t);for(;e&&!dt(e);){if(Z(e)&&!jt(e))return e;e=bt(e)}return n}let i=Ct(t,e);for(;i&&rt(i)&&jt(i);)i=Ct(i,e);return i&&dt(i)&&jt(i)&&!ft(i)?n:i||function(t){let e=bt(t);for(;tt(e)&&!dt(e);){if(ft(e))return e;if(st(e))return null;e=bt(e)}return null}(t)||n}const Dt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,a=K(i),s=!!e&&st(e.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=$(1);const u=$(0),f=tt(i);if((f||!f&&!r)&&(("body"!==V(i)||it(a))&&(l=gt(i)),tt(i))){const t=kt(i);c=At(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const h=!a||f||r?$(0):Ft(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}},getDocumentElement:K,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?st(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=vt(t,[],!1).filter((t=>Z(t)&&"body"!==V(t))),o=null;const r="fixed"===mt(t).position;let a=r?bt(t):t;for(;Z(a)&&!dt(a);){const e=mt(a),n=ft(a);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&Ot.has(o.position)||it(a)&&!n&&Bt(t,a))?i=i.filter((t=>t!==a)):o=e,a=bt(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=r.reduce(((t,n)=>{const i=Rt(e,n,o);return t.top=z(i.top,t.top),t.right=x(i.right,t.right),t.bottom=x(i.bottom,t.bottom),t.left=z(i.left,t.left),t}),Rt(e,r[0],o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:Tt,getElementRects:async function(t){const e=this.getOffsetParent||Tt,n=this.getDimensions,i=await n(t.floating);return{reference:Et(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=xt(t);return{width:e,height:n}},getScale:At,isElement:Z,isRTL:function(t){return"rtl"===mt(t).direction}};function Mt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:m=!0,...g}=O(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const b=R(o),y=T(s),v=R(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=h||(v||!m?[q(s)]:function(t){const e=q(t);return[M(t),e,M(e)]}(s)),z="none"!==d;!h&&z&&x.push(...function(t,e,n,i){const o=B(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?N:L:e?L:N;case"left":case"right":return e?_:H;default:return[]}}(R(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(M)))),r}(s,m,d,w));const A=[s,...x],S=await Y(e,g),$=[];let k=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&$.push(S[b]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=B(t),o=D(t),r=j(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=q(a)),[a,q(a)]}(o,a,w);$.push(S[t[0]],S[t[1]])}if(k=[...k,{placement:o,overflows:$}],!$.every((t=>t<=0))){var P,F;const t=((null==(P=r.flip)?void 0:P.index)||0)+1,e=A[t];if(e&&("alignment"!==f||y===T(e)||k.every((t=>t.overflows[0]>0&&T(t.placement)===y))))return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(F=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:F.placement;if(!n)switch(p){case"bestFit":{var E;const t=null==(E=k.filter((t=>{if(z){const e=T(t.placement);return e===y||"y"===e}return!0})).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:E[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Nt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=O(t,e),u=await Y(e,c),f=R(o),h=B(o),p="y"===T(o),{width:d,height:m}=r.floating;let g,b;"top"===f||"bottom"===f?(g=f,b=h===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=f,g="end"===h?"top":"bottom");const y=m-u.top-u.bottom,v=d-u.left-u.right;let w=x(m-u[g],y),A=x(d-u[b],v);if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(A=v),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(w=y),!e.middlewareData.shift&&!h){const t=z(u.left,0),e=z(u.right,0),n=z(u.top,0),i=z(u.bottom,0);p?A=d-2*(0!==t||0!==e?t+e:z(u.left,u.right)):w=m-2*(0!==n||0!==i?n+i:z(u.top,u.bottom))}await l({...e,availableWidth:A,availableHeight:w});const S=await a.getDimensions(s.floating);return d!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function _t(t){return function(t){for(let e=t;e;e=Ht(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Ht(t);e;e=Ht(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||ft(t))return e;if("BODY"===e.tagName)return e}}return null}(t)}function Ht(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var qt=class extends a{constructor(){super(...arguments),this.localize=new l(this),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0,this.hoverBridge=!1,this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){const t=this.anchorEl.getBoundingClientRect(),e=this.popup.getBoundingClientRect();let n=0,i=0,o=0,r=0,a=0,s=0,l=0,c=0;this.placement.includes("top")||this.placement.includes("bottom")?t.top<e.top?(n=t.left,i=t.bottom,o=t.right,r=t.bottom,a=e.left,s=e.top,l=e.right,c=e.top):(n=e.left,i=e.bottom,o=e.right,r=e.bottom,a=t.left,s=t.top,l=t.right,c=t.top):t.left<e.left?(n=t.right,i=t.top,o=e.left,r=e.top,a=t.right,s=t.bottom,l=e.left,c=e.bottom):(n=e.right,i=e.top,o=t.left,r=t.top,a=e.right,s=e.bottom,l=t.left,c=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${n}px`),this.style.setProperty("--hover-bridge-top-left-y",`${i}px`),this.style.setProperty("--hover-bridge-top-right-x",`${o}px`),this.style.setProperty("--hover-bridge-top-right-y",`${r}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${s}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${c}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchorEl=this.anchor instanceof Element||function(t){return null!==t&&"object"==typeof t&&"getBoundingClientRect"in t&&(!("contextElement"in t)||t.contextElement instanceof Element)}(this.anchor)?this.anchor:this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.active&&this.start()}start(){this.anchorEl&&this.active&&(this.cleanup=function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=zt(t),u=o||r?[...c?vt(c):[],...vt(e)]:[];u.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const f=c&&s?function(t,e){let n,i=null;const o=K(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),r();const c=t.getBoundingClientRect(),{left:u,top:f,width:h,height:p}=c;if(s||e(),!h||!p)return;const d={rootMargin:-S(f)+"px "+-S(o.clientWidth-(u+h))+"px "+-S(o.clientHeight-(f+p))+"px "+-S(u)+"px",threshold:z(0,x(1,l))||1};let m=!0;function g(e){const i=e[0].intersectionRatio;if(i!==l){if(!m)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||Mt(c,t.getBoundingClientRect())||a(),m=!1}try{i=new IntersectionObserver(g,{...d,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(g,d)}i.observe(t)}(!0),r}(c,n):null;let h,p=-1,d=null;a&&(d=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&d&&(d.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=d)||t.observe(e)}))),n()})),c&&!l&&d.observe(c),d.observe(e));let m=l?kt(t):null;return l&&function e(){const i=kt(t);m&&!Mt(m,i)&&n(),m=i,h=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==f||f(),null==(t=d)||t.disconnect(),d=null,l&&cancelAnimationFrame(h)}}(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const n=[(i={mainAxis:this.distance,crossAxis:this.skidding},void 0===i&&(i=0),{name:"offset",options:i,async fn(t){var e,n;const{x:o,y:r,placement:a,middlewareData:s}=t,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=R(n),s=B(n),l="y"===T(n),c=G.has(a)?-1:1,u=r&&l?-1:1,f=O(e,t);let{mainAxis:h,crossAxis:p,alignmentAxis:d}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof d&&(p="end"===s?-1*d:d),l?{x:p*u,y:h*c}:{x:h*c,y:p*u}}(t,i);return a===(null==(e=s.offset)?void 0:e.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}})];var i;this.sync?n.push(Nt({apply:({rects:t})=>{const e="height"===this.sync||"both"===this.sync;this.popup.style.width="width"===this.sync||"both"===this.sync?`${t.reference.width}px`:"",this.popup.style.height=e?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&n.push(Lt({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&n.push(function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=O(t,e),c={x:n,y:i},u=await Y(e,l),f=T(R(o)),h=E(f);let p=c[h],d=c[f];r&&(p=F(p+u["y"===h?"top":"left"],p,p-u["y"===h?"bottom":"right"])),a&&(d=F(d+u["y"===f?"top":"left"],d,d-u["y"===f?"bottom":"right"]));const m=s.fn({...e,[h]:p,[f]:d});return{...m,data:{x:m.x-n,y:m.y-i,enabled:{[h]:r,[f]:a}}}}}}({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?n.push(Nt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&n.push((t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:l}=e,{element:c,padding:u=0}=O(t,e)||{};if(null==c)return{};const f=I(u),h={x:n,y:i},p=D(o),d=j(p),m=await a.getDimensions(c),g="y"===p,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",w=r.reference[d]+r.reference[p]-h[p]-r.floating[d],z=h[p]-r.reference[p],A=await(null==a.getOffsetParent?void 0:a.getOffsetParent(c));let S=A?A[v]:0;S&&await(null==a.isElement?void 0:a.isElement(A))||(S=s.floating[v]||r.floating[d]);const $=w/2-z/2,k=S/2-m[d]/2-1,P=x(f[b],k),R=x(f[y],k),E=P,C=S-m[d]-R,T=S/2-m[d]/2+$,M=F(E,T,C),L=!l.arrow&&null!=B(o)&&T!==M&&r.reference[d]/2-(T<E?P:R)-m[d]/2<0,N=L?T<E?T-E:T-C:0;return{[p]:h[p]+N,data:{[p]:M,centerOffset:T-M-N,...L&&{alignmentOffset:N}},reset:L}}}))({element:this.arrowEl,padding:this.arrowPadding}));const o="absolute"===this.strategy?t=>Dt.getOffsetParent(t,_t):Dt.getOffsetParent;((t,e,n)=>{const i=new Map,o={platform:Dt,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=X(c,i,l),h=i,p={},d=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:g,y:b,data:y,reset:v}=await m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=b?b:f,p={...p,[r]:{...p[r],...y}},v&&d<=50&&(d++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):v.rects),({x:u,y:f}=X(c,h,l))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:p}})(t,e,{...o,platform:r})})(this.anchorEl,this.popup,{placement:this.placement,middleware:n,strategy:this.strategy,platform:t(e({},Dt),{getOffsetParent:o})}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const o="rtl"===this.localize.dir(),r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=n.arrow.x,e=n.arrow.y;let i="",a="",s="",l="";if("start"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=o?n:"",l=o?"":n}else if("end"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=o?"":n,l=o?n:"",s="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:a,bottom:s,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),requestAnimationFrame((()=>this.updateHoverBridge())),this.emit("sl-reposition")}render(){return s`
|
|
71
71
|
<slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
|
|
72
72
|
|
|
73
73
|
<span
|
|
@@ -82,4 +82,4 @@ function u(t){return(e,n)=>((t,e,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.
|
|
|
82
82
|
<slot></slot>
|
|
83
83
|
${this.arrow?s`<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
|
|
84
84
|
</div>
|
|
85
|
-
`}};qt.styles=[i,w],o([u(".popup")],qt.prototype,"popup",2),o([u(".popup__arrow")],qt.prototype,"arrowEl",2),o([r()],qt.prototype,"anchor",2),o([r({type:Boolean,reflect:!0})],qt.prototype,"active",2),o([r({reflect:!0})],qt.prototype,"placement",2),o([r({reflect:!0})],qt.prototype,"strategy",2),o([r({type:Number})],qt.prototype,"distance",2),o([r({type:Number})],qt.prototype,"skidding",2),o([r({type:Boolean})],qt.prototype,"arrow",2),o([r({attribute:"arrow-placement"})],qt.prototype,"arrowPlacement",2),o([r({attribute:"arrow-padding",type:Number})],qt.prototype,"arrowPadding",2),o([r({type:Boolean})],qt.prototype,"flip",2),o([r({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],qt.prototype,"flipFallbackPlacements",2),o([r({attribute:"flip-fallback-strategy"})],qt.prototype,"flipFallbackStrategy",2),o([r({type:Object})],qt.prototype,"flipBoundary",2),o([r({attribute:"flip-padding",type:Number})],qt.prototype,"flipPadding",2),o([r({type:Boolean})],qt.prototype,"shift",2),o([r({type:Object})],qt.prototype,"shiftBoundary",2),o([r({attribute:"shift-padding",type:Number})],qt.prototype,"shiftPadding",2),o([r({attribute:"auto-size"})],qt.prototype,"autoSize",2),o([r()],qt.prototype,"sync",2),o([r({type:Object})],qt.prototype,"autoSizeBoundary",2),o([r({attribute:"auto-size-padding",type:Number})],qt.prototype,"autoSizePadding",2),o([r({attribute:"hover-bridge",type:Boolean})],qt.prototype,"hoverBridge",2);export{qt as S,v as a,
|
|
85
|
+
`}};qt.styles=[i,w],o([u(".popup")],qt.prototype,"popup",2),o([u(".popup__arrow")],qt.prototype,"arrowEl",2),o([r()],qt.prototype,"anchor",2),o([r({type:Boolean,reflect:!0})],qt.prototype,"active",2),o([r({reflect:!0})],qt.prototype,"placement",2),o([r({reflect:!0})],qt.prototype,"strategy",2),o([r({type:Number})],qt.prototype,"distance",2),o([r({type:Number})],qt.prototype,"skidding",2),o([r({type:Boolean})],qt.prototype,"arrow",2),o([r({attribute:"arrow-placement"})],qt.prototype,"arrowPlacement",2),o([r({attribute:"arrow-padding",type:Number})],qt.prototype,"arrowPadding",2),o([r({type:Boolean})],qt.prototype,"flip",2),o([r({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map((t=>t.trim())).filter((t=>""!==t)),toAttribute:t=>t.join(" ")}})],qt.prototype,"flipFallbackPlacements",2),o([r({attribute:"flip-fallback-strategy"})],qt.prototype,"flipFallbackStrategy",2),o([r({type:Object})],qt.prototype,"flipBoundary",2),o([r({attribute:"flip-padding",type:Number})],qt.prototype,"flipPadding",2),o([r({type:Boolean})],qt.prototype,"shift",2),o([r({type:Object})],qt.prototype,"shiftBoundary",2),o([r({attribute:"shift-padding",type:Number})],qt.prototype,"shiftPadding",2),o([r({attribute:"auto-size"})],qt.prototype,"autoSize",2),o([r()],qt.prototype,"sync",2),o([r({type:Object})],qt.prototype,"autoSizeBoundary",2),o([r({attribute:"auto-size-padding",type:Number})],qt.prototype,"autoSizePadding",2),o([r({attribute:"hover-bridge",type:Boolean})],qt.prototype,"hoverBridge",2);export{qt as S,v as a,b,u as e,m as g,y as p,d as s,g as w}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as o}from"./p-C8LPXtIR.js";o.define("sl-icon");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as t,e,c as s,_ as i,n,w as o,a as r,x as a,f as l,E as h,S as u}from"./p-
|
|
1
|
+
import{i as t,e,c as s,_ as i,n,w as o,a as r,x as a,f as l,E as h,S as u}from"./p-C8LPXtIR.js";import{S as d,e as c,s as m,w as p,a as f,g as b,b as v}from"./p-BXdS2klL.js";import{L as g}from"./p-BnGEOH37.js";import{e as w,i as y,t as k,a as x}from"./p-D_nUMgR-.js";import{o as _}from"./p-BXcFVJku.js";var $=class{constructor(t,...e){this.slotNames=[],this.handleSlotChange=t=>{const e=t.target;(this.slotNames.includes("[default]")&&!e.name||e.name&&this.slotNames.includes(e.name))&&this.host.requestUpdate()},(this.host=t).addController(this),this.slotNames=e}hasDefaultSlot(){return[...this.host.childNodes].some((t=>{if(t.nodeType===t.TEXT_NODE&&""!==t.textContent.trim())return!0;if(t.nodeType===t.ELEMENT_NODE){const e=t;if("sl-visually-hidden"===e.tagName.toLowerCase())return!1;if(!e.hasAttribute("slot"))return!0}return!1}))}hasNamedSlot(t){return null!==this.host.querySelector(`:scope > [slot="${t}"]`)}test(t){return"[default]"===t?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}},C=t`
|
|
2
2
|
:host {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
}
|
|
@@ -99,7 +99,7 @@ import{i as t,e,c as s,_ as i,n,w as o,a as r,x as a,f as l,E as h,S as u}from".
|
|
|
99
99
|
@keydown=${this.handleKeyDown}
|
|
100
100
|
@mousedown=${this.handleMouseDown}
|
|
101
101
|
></slot>
|
|
102
|
-
`}};U.styles=[s,D],i([c("slot")],U.prototype,"defaultSlot",2),U.define("sl-menu");var
|
|
102
|
+
`}};U.styles=[s,D],i([c("slot")],U.prototype,"defaultSlot",2),U.define("sl-menu");var L=t`
|
|
103
103
|
:host {
|
|
104
104
|
--submenu-offset: -2px;
|
|
105
105
|
|
|
@@ -256,14 +256,14 @@ import{i as t,e,c as s,_ as i,n,w as o,a as r,x as a,f as l,E as h,S as u}from".
|
|
|
256
256
|
* @license
|
|
257
257
|
* Copyright 2017 Google LLC
|
|
258
258
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
259
|
-
*/;const
|
|
259
|
+
*/;const M=(t,e)=>{const s=t._$AN;if(void 0===s)return!1;for(const t of s)t._$AO?.(e,!1),M(t,e);return!0},B=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===s?.size)},O=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),I(e)}};function H(t){void 0!==this._$AN?(B(this),this._$AM=t,O(this)):this._$AM=t}function N(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)M(i[t],!1),B(i[t]);else null!=i&&(M(i,!1),B(i));else M(this,t)}const I=t=>{t.type==k.CHILD&&(t._$AP??=N,t._$AQ??=H)};class W extends y{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),O(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(M(this,t),B(this))}setValue(t){if(l(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}
|
|
260
260
|
/**
|
|
261
261
|
* @license
|
|
262
262
|
* Copyright 2020 Google LLC
|
|
263
263
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
264
|
-
*/class
|
|
264
|
+
*/class j{}const R=new WeakMap,V=x(class extends W{render(t){return h}update(t,[e]){const s=e!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),h}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const e=this.ht??globalThis;let s=R.get(e);void 0===s&&(s=new WeakMap,R.set(e,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?R.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var X=class{constructor(t,e){this.popupRef=new j,this.enableSubmenuTimer=-1,this.isConnected=!1,this.isPopupConnected=!1,this.skidding=0,this.submenuOpenDelay=100,this.handleMouseMove=t=>{this.host.style.setProperty("--safe-triangle-cursor-x",`${t.clientX}px`),this.host.style.setProperty("--safe-triangle-cursor-y",`${t.clientY}px`)},this.handleMouseOver=()=>{this.hasSlotController.test("submenu")&&this.enableSubmenu()},this.handleKeyDown=t=>{switch(t.key){case"Escape":case"Tab":this.disableSubmenu();break;case"ArrowLeft":t.target!==this.host&&(t.preventDefault(),t.stopPropagation(),this.host.focus(),this.disableSubmenu());break;case"ArrowRight":case"Enter":case" ":this.handleSubmenuEntry(t)}},this.handleClick=t=>{var e;t.target===this.host?(t.preventDefault(),t.stopPropagation()):t.target instanceof Element&&("sl-menu-item"===t.target.tagName||(null==(e=t.target.role)?void 0:e.startsWith("menuitem")))&&this.disableSubmenu()},this.handleFocusOut=t=>{t.relatedTarget&&t.relatedTarget instanceof Element&&this.host.contains(t.relatedTarget)||this.disableSubmenu()},this.handlePopupMouseover=t=>{t.stopPropagation()},this.handlePopupReposition=()=>{const t=this.host.renderRoot.querySelector("slot[name='submenu']"),e=null==t?void 0:t.assignedElements({flatten:!0}).filter((t=>"sl-menu"===t.localName))[0],s="rtl"===getComputedStyle(this.host).direction;if(!e)return;const{left:i,top:n,width:o,height:r}=e.getBoundingClientRect();this.host.style.setProperty("--safe-triangle-submenu-start-x",`${s?i+o:i}px`),this.host.style.setProperty("--safe-triangle-submenu-start-y",`${n}px`),this.host.style.setProperty("--safe-triangle-submenu-end-x",`${s?i+o:i}px`),this.host.style.setProperty("--safe-triangle-submenu-end-y",`${n+r}px`)},(this.host=t).addController(this),this.hasSlotController=e}hostConnected(){this.hasSlotController.test("submenu")&&!this.host.disabled&&this.addListeners()}hostDisconnected(){this.removeListeners()}hostUpdated(){this.hasSlotController.test("submenu")&&!this.host.disabled?(this.addListeners(),this.updateSkidding()):this.removeListeners()}addListeners(){this.isConnected||(this.host.addEventListener("mousemove",this.handleMouseMove),this.host.addEventListener("mouseover",this.handleMouseOver),this.host.addEventListener("keydown",this.handleKeyDown),this.host.addEventListener("click",this.handleClick),this.host.addEventListener("focusout",this.handleFocusOut),this.isConnected=!0),this.isPopupConnected||this.popupRef.value&&(this.popupRef.value.addEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.addEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!0)}removeListeners(){this.isConnected&&(this.host.removeEventListener("mousemove",this.handleMouseMove),this.host.removeEventListener("mouseover",this.handleMouseOver),this.host.removeEventListener("keydown",this.handleKeyDown),this.host.removeEventListener("click",this.handleClick),this.host.removeEventListener("focusout",this.handleFocusOut),this.isConnected=!1),this.isPopupConnected&&this.popupRef.value&&(this.popupRef.value.removeEventListener("mouseover",this.handlePopupMouseover),this.popupRef.value.removeEventListener("sl-reposition",this.handlePopupReposition),this.isPopupConnected=!1)}handleSubmenuEntry(t){const e=this.host.renderRoot.querySelector("slot[name='submenu']");if(!e)return void console.error("Cannot activate a submenu if no corresponding menuitem can be found.",this);let s=null;for(const t of e.assignedElements())if(s=t.querySelectorAll("sl-menu-item, [role^='menuitem']"),0!==s.length)break;if(s&&0!==s.length){s[0].setAttribute("tabindex","0");for(let t=1;t!==s.length;++t)s[t].setAttribute("tabindex","-1");this.popupRef.value&&(t.preventDefault(),t.stopPropagation(),this.popupRef.value.active?s[0]instanceof HTMLElement&&s[0].focus():(this.enableSubmenu(!1),this.host.updateComplete.then((()=>{s[0]instanceof HTMLElement&&s[0].focus()})),this.host.requestUpdate()))}}setSubmenuState(t){this.popupRef.value&&this.popupRef.value.active!==t&&(this.popupRef.value.active=t,this.host.requestUpdate())}enableSubmenu(t=!0){t?(window.clearTimeout(this.enableSubmenuTimer),this.enableSubmenuTimer=window.setTimeout((()=>{this.setSubmenuState(!0)}),this.submenuOpenDelay)):this.setSubmenuState(!0)}disableSubmenu(){window.clearTimeout(this.enableSubmenuTimer),this.setSubmenuState(!1)}updateSkidding(){var t;if(!(null==(t=this.host.parentElement)?void 0:t.computedStyleMap))return;const e=this.host.parentElement.computedStyleMap(),s=["padding-top","border-top-width","margin-top"].reduce(((t,s)=>{var i;const n=null!=(i=e.get(s))?i:new CSSUnitValue(0,"px");return t-(n instanceof CSSUnitValue?n:new CSSUnitValue(0,"px")).to("px").value}),0);this.skidding=s}isExpanded(){return!!this.popupRef.value&&this.popupRef.value.active}renderSubmenu(){const t="rtl"===getComputedStyle(this.host).direction;return this.isConnected?a`
|
|
265
265
|
<sl-popup
|
|
266
|
-
${
|
|
266
|
+
${V(this.popupRef)}
|
|
267
267
|
placement=${t?"left-start":"right-start"}
|
|
268
268
|
anchor="anchor"
|
|
269
269
|
flip
|
|
@@ -337,7 +337,7 @@ import{i as t,e,c as s,_ as i,n,w as o,a as r,x as a,f as l,E as h,S as u}from".
|
|
|
337
337
|
<circle class="spinner__track"></circle>
|
|
338
338
|
<circle class="spinner__indicator"></circle>
|
|
339
339
|
</svg>
|
|
340
|
-
`}};F.styles=[s,K];var
|
|
340
|
+
`}};F.styles=[s,K];var G=class extends r{constructor(){super(...arguments),this.localize=new g(this),this.type="normal",this.checked=!1,this.value="",this.loading=!1,this.disabled=!1,this.hasSlotController=new $(this,"submenu"),this.submenuController=new X(this,this.hasSlotController),this.handleHostClick=t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},this.handleMouseOver=t=>{this.focus(),t.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleHostClick),this.addEventListener("mouseover",this.handleMouseOver)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleHostClick),this.removeEventListener("mouseover",this.handleMouseOver)}handleDefaultSlotChange(){const t=this.getTextLabel();void 0!==this.cachedTextLabel?t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1})):this.cachedTextLabel=t}handleCheckedChange(){if(this.checked&&"checkbox"!==this.type)return this.checked=!1,void console.error('The checked attribute can only be used on menu items with type="checkbox"',this);"checkbox"===this.type?this.setAttribute("aria-checked",this.checked?"true":"false"):this.removeAttribute("aria-checked")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleTypeChange(){"checkbox"===this.type?(this.setAttribute("role","menuitemcheckbox"),this.setAttribute("aria-checked",this.checked?"true":"false")):(this.setAttribute("role","menuitem"),this.removeAttribute("aria-checked"))}getTextLabel(){return function(t){if(!t)return"";const e=t.assignedNodes({flatten:!0});let s="";return[...e].forEach((t=>{t.nodeType===Node.TEXT_NODE&&(s+=t.textContent)})),s}(this.defaultSlot)}isSubmenu(){return this.hasSlotController.test("submenu")}render(){const t="rtl"===this.localize.dir(),e=this.submenuController.isExpanded();return a`
|
|
341
341
|
<div
|
|
342
342
|
id="anchor"
|
|
343
343
|
part="base"
|
|
@@ -362,4 +362,4 @@ import{i as t,e,c as s,_ as i,n,w as o,a as r,x as a,f as l,E as h,S as u}from".
|
|
|
362
362
|
${this.submenuController.renderSubmenu()}
|
|
363
363
|
${this.loading?a` <sl-spinner part="spinner" exportparts="base:spinner__base"></sl-spinner> `:""}
|
|
364
364
|
</div>
|
|
365
|
-
`}};
|
|
365
|
+
`}};G.styles=[s,L],G.dependencies={"sl-icon":u,"sl-popup":d,"sl-spinner":F},i([c("slot:not([name])")],G.prototype,"defaultSlot",2),i([c(".menu-item")],G.prototype,"menuItem",2),i([n()],G.prototype,"type",2),i([n({type:Boolean,reflect:!0})],G.prototype,"checked",2),i([n()],G.prototype,"value",2),i([n({type:Boolean,reflect:!0})],G.prototype,"loading",2),i([n({type:Boolean,reflect:!0})],G.prototype,"disabled",2),i([o("checked")],G.prototype,"handleCheckedChange",1),i([o("disabled")],G.prototype,"handleDisabledChange",1),i([o("type")],G.prototype,"handleTypeChange",1),G.define("sl-menu-item");export{$ as H}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as e}from"./p-
|
|
1
|
+
import{S as e}from"./p-DScSUBy-.js";const t=(()=>{let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout((()=>{e=0,(e=>{for(let t of e.keys()){const n=e.get(t).filter((e=>{const t=e.deref();return t&&(!("isConnected"in(n=t))||n.isConnected);var n}));e.set(t,n)}})(...t)}),2e3)}})(),n=e.forceUpdate,o=e.getRenderingRef,s=(e,t)=>{const n=e.indexOf(t);n>=0&&(e[n]=e[e.length-1],e.length--)},r=(e,r)=>{const c=((e,t=(e,t)=>e!==t)=>{const n=()=>{return("function"==typeof(t=e)?t():t)??{};var t},o=n();let r=new Map(Object.entries(o));const c="undefined"!=typeof Proxy,u=c?null:{},f={dispose:[],get:[],set:[],reset:[]},i=new Map,a=()=>{r=new Map(Object.entries(n())),c||w(),f.reset.forEach((e=>e()))},p=e=>(f.get.forEach((t=>t(e))),r.get(e)),l=(e,n)=>{const o=r.get(e);t(n,o,e)&&(r.set(e,n),c||b(e),f.set.forEach((t=>t(e,n,o))))},d=c?new Proxy(o,{get:(e,t)=>p(t),ownKeys:()=>Array.from(r.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(e,t)=>r.has(t),set:(e,t,n)=>(l(t,n),!0)}):(w(),u),g=(e,t)=>(f[e].push(t),()=>{s(f[e],t)});function b(e){!c&&u&&(Object.prototype.hasOwnProperty.call(u,e)||Object.defineProperty(u,e,{configurable:!0,enumerable:!0,get:()=>p(e),set(t){l(e,t)}}))}function w(){if(c||!u)return;const e=new Set(r.keys());for(const t of Object.keys(u))e.has(t)||delete u[t];for(const t of e)b(t)}return{state:d,get:p,set:l,on:g,onChange:(e,t)=>{const o=(n,o)=>{n===e&&t(o)},s=()=>{const o=n();t(o[e])},r=g("set",o),c=g("reset",s);return i.set(t,{setHandler:o,resetHandler:s,propName:e}),()=>{r(),c(),i.delete(t)}},use:(...e)=>{const t=e.reduce(((e,t)=>(t.set&&e.push(g("set",t.set)),t.get&&e.push(g("get",t.get)),t.reset&&e.push(g("reset",t.reset)),t.dispose&&e.push(g("dispose",t.dispose)),e)),[]);return()=>t.forEach((e=>e()))},dispose:()=>{f.dispose.forEach((e=>e())),a()},reset:a,forceUpdate:e=>{const t=r.get(e);f.set.forEach((n=>n(e,t,t)))},removeListener:(e,t)=>{const n=i.get(t);n&&n.propName===e&&(s(f.set,n.setHandler),s(f.reset,n.resetHandler),i.delete(t))}}})(e,r);return c.use((()=>{if("function"!=typeof o||"function"!=typeof n)return{};const e=n,s=o,r=new Map;return{dispose:()=>r.clear(),get:e=>{const t=s();t&&((e,t,n)=>{let o=e.get(t);o||(o=[],e.set(t,o)),o.some((e=>e.deref()===n))||o.push(new WeakRef(n))})(r,e,t)},set:n=>{const o=r.get(n);if(o){const t=o.filter((t=>{const n=t.deref();return!!n&&e(n)}));r.set(n,t)}t(r)},reset:()=>{r.forEach((t=>{t.forEach((t=>{const n=t.deref();n&&e(n)}))})),t(r)}}})()),c},c=r({isLoggedIn:!1,webId:"",profile:null});export{r as c,c as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as t}from"./p-Bug_w-vi.js";const s=localStorage.getItem("settings"),o=t(s?JSON.parse(s):{offlineCache:!1});o.on("set",(()=>{const t=JSON.stringify(o.state);localStorage.setItem("settings",t)})),window.addEventListener("storage",(t=>{if("settings"===t.key&&t.newValue){const s=JSON.parse(t.newValue);o.state.offlineCache=s.offlineCache}}));export{o as l}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as t}from"./p-
|
|
1
|
+
import{k as t}from"./p-DScSUBy-.js";var s=Object.defineProperty,i=Object.defineProperties,e=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,l=(t,s)=>(s=Symbol[t])?s:Symbol.for("Symbol."+t),a=t=>{throw TypeError(t)},c=(t,i,e)=>i in t?s(t,i,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[i]=e,d=(t,s)=>{for(var i in s||(s={}))o.call(s,i)&&c(t,i,s[i]);if(r)for(var i of r(s))h.call(s,i)&&c(t,i,s[i]);return t},u=(t,s)=>i(t,n(s)),v=(t,i,n,r)=>{for(var o,h=r>1?void 0:r?e(i,n):i,l=t.length-1;l>=0;l--)(o=t[l])&&(h=(r?o(i,n,h):o(h))||h);return r&&h&&s(i,n,h),h},f=(t,s,i)=>s.has(t)||a("Cannot "+i),p=function(t,s){this[0]=t,this[1]=s},g=t=>{var s,i=t[l("asyncIterator")],e=!1,n={};return null==i?(i=t[l("iterator")](),s=t=>n[t]=s=>i[t](s)):(i=i.call(t),s=t=>n[t]=s=>{if(e){if(e=!1,"throw"===t)throw s;return s}return e=!0,{done:!1,value:new p(new Promise((e=>{var n=i[t](s);n instanceof Object||a("Object expected"),e(n)})),1)}}),n[l("iterator")]=()=>n,s("next"),"throw"in i?s("throw"):n.throw=t=>{throw t},"return"in i&&s("return"),n};
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2019 Google LLC
|
|
@@ -9,13 +9,13 @@ const w=globalThis,b=w.ShadowRoot&&(void 0===w.ShadyCSS||w.ShadyCSS.nativeShadow
|
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/,{is:M,defineProperty:$,getOwnPropertyDescriptor:k,getOwnPropertyNames:z,getOwnPropertySymbols:A,getPrototypeOf:
|
|
12
|
+
*/,{is:M,defineProperty:$,getOwnPropertyDescriptor:k,getOwnPropertyNames:z,getOwnPropertySymbols:A,getPrototypeOf:L}=Object,_=globalThis,E=_.trustedTypes,O=E?E.emptyScript:"",j=_.reactiveElementPolyfillSupport,B={toAttribute(t,s){switch(s){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},U=(t,s)=>!M(t,s),P={attribute:!0,type:String,converter:B,reflect:!1,useDefault:!1,hasChanged:U};Symbol.metadata??=Symbol("metadata"),_.litPropertyMetadata??=new WeakMap;let T=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=P){if(s.state&&(s.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=!0),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),e=this.getPropertyDescriptor(t,i,s);void 0!==e&&$(this.prototype,t,e)}}static getPropertyDescriptor(t,s,i){const{get:e,set:n}=k(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t}};return{get:e,set(s){const r=e?.call(this);n?.call(this,s),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??P}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=L(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,s=[...z(t),...A(t)];for(const i of s)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const s=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)s.unshift(S(t))}else void 0!==t&&s.push(S(t));return s}static _$Eu(t,s){const i=s.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,s)=>{if(b)t.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of s){const s=document.createElement("style"),e=w.litNonce;void 0!==e&&s.setAttribute("nonce",e),s.textContent=i.cssText,t.appendChild(s)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,s,i){this._$AK(t,i)}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&!0===i.reflect){const n=(void 0!==i.converter?.toAttribute?i.converter:B).toAttribute(s,i.type);this._$Em=t,null==n?this.removeAttribute(e):this.setAttribute(e,n),this._$Em=null}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:B;this._$Em=e;const r=n.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,n=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??U)(n,s)||i.useDefault&&i.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,s,{useDefault:i,reflect:e,wrapped:n},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),!0!==n||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),!0===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];!0!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e)}}let t=!1;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(s)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};T.elementStyles=[],T.shadowRootOptions={mode:"open"},T.elementProperties=new Map,T.finalized=new Map,j?.({ReactiveElement:T}),(_.reactiveElementVersions??=[]).push("2.1.1");
|
|
13
13
|
/**
|
|
14
14
|
* @license
|
|
15
15
|
* Copyright 2017 Google LLC
|
|
16
16
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
17
17
|
*/
|
|
18
|
-
const I=globalThis,N=I.trustedTypes,R=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,H="$lit$",
|
|
18
|
+
const I=globalThis,N=I.trustedTypes,R=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,H="$lit$",D=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+D,Z=`<${V}>`,W=document,J=()=>W.createComment(""),q=t=>null===t||"object"!=typeof t&&"function"!=typeof t,F=Array.isArray,K="[ \t\n\f\r]",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Q=/-->/g,X=/>/g,Y=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,st=/"/g,it=/^(?:script|style|textarea|title)$/i,et=(t,...s)=>({_$litType$:1,strings:t,values:s}),nt=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),ot=new WeakMap,ht=W.createTreeWalker(W,129);function lt(t,s){if(!F(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==R?R.createHTML(s):s}const at=(t,s)=>{const i=t.length-1,e=[];let n,r=2===s?"<svg>":3===s?"<math>":"",o=G;for(let s=0;s<i;s++){const i=t[s];let h,l,a=-1,c=0;for(;c<i.length&&(o.lastIndex=c,l=o.exec(i),null!==l);)c=o.lastIndex,o===G?"!--"===l[1]?o=Q:void 0!==l[1]?o=X:void 0!==l[2]?(it.test(l[2])&&(n=RegExp("</"+l[2],"g")),o=Y):void 0!==l[3]&&(o=Y):o===Y?">"===l[0]?(o=n??G,a=-1):void 0===l[1]?a=-2:(a=o.lastIndex-l[2].length,h=l[1],o=void 0===l[3]?Y:'"'===l[3]?st:tt):o===st||o===tt?o=Y:o===Q||o===X?o=G:(o=Y,n=void 0);const d=o===Y&&t[s+1].startsWith("/>")?" ":"";r+=o===G?i+Z:a>=0?(e.push(h),i.slice(0,a)+H+i.slice(a)+D+d):i+D+(-2===a?s:d)}return[lt(t,r+(t[i]||"<?>")+(2===s?"</svg>":3===s?"</math>":"")),e]};class ct{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let n=0,r=0;const o=t.length-1,h=this.parts,[l,a]=at(t,s);if(this.el=ct.createElement(l,i),ht.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(e=ht.nextNode())&&h.length<o;){if(1===e.nodeType){if(e.hasAttributes())for(const t of e.getAttributeNames())if(t.endsWith(H)){const s=a[r++],i=e.getAttribute(t).split(D),o=/([.?@])?(.*)/.exec(s);h.push({type:1,index:n,name:o[2],strings:i,ctor:"."===o[1]?pt:"?"===o[1]?gt:"@"===o[1]?wt:ft}),e.removeAttribute(t)}else t.startsWith(D)&&(h.push({type:6,index:n}),e.removeAttribute(t));if(it.test(e.tagName)){const t=e.textContent.split(D),s=t.length-1;if(s>0){e.textContent=N?N.emptyScript:"";for(let i=0;i<s;i++)e.append(t[i],J()),ht.nextNode(),h.push({type:2,index:++n});e.append(t[s],J())}}}else if(8===e.nodeType)if(e.data===V)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf(D,t+1));)h.push({type:7,index:n}),t+=D.length-1}n++}}static createElement(t,s){const i=W.createElement("template");return i.innerHTML=t,i}}function dt(t,s,i=t,e){if(s===nt)return s;let n=void 0!==e?i._$Co?.[e]:i._$Cl;const r=q(s)?void 0:s._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),void 0===r?n=void 0:(n=new r(t),n._$AT(t,i,e)),void 0!==e?(i._$Co??=[])[e]=n:i._$Cl=n),void 0!==n&&(s=dt(t,n._$AS(t,s.values),n,e)),s}class ut{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=(t?.creationScope??W).importNode(s,!0);ht.currentNode=e;let n=ht.nextNode(),r=0,o=0,h=i[0];for(;void 0!==h;){if(r===h.index){let s;2===h.type?s=new vt(n,n.nextSibling,this,t):1===h.type?s=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(s=new bt(n,this,t)),this._$AV.push(s),h=i[++o]}r!==h?.index&&(n=ht.nextNode(),r++)}return ht.currentNode=W,e}p(t){let s=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class vt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=e?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return void 0!==s&&11===t?.nodeType&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=dt(this,t,s),q(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>F(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==rt&&q(this._$AH)?this._$AA.nextSibling.data=t:this.T(W.createTextNode(t)),this._$AH=t}$(t){const{values:s,_$litType$:i}=t,e="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ct.createElement(lt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===e)this._$AH.p(s);else{const t=new ut(e,this),i=t.u(this.options);t.p(s),this.T(i),this._$AH=t}}_$AC(t){let s=ot.get(t.strings);return void 0===s&&ot.set(t.strings,s=new ct(t)),s}k(t){F(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const n of t)e===s.length?s.push(i=new vt(this.O(J()),this.O(J()),this,this.options)):i=s[e],i._$AI(n),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){for(this._$AP?.(!1,!0,s);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,n){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=rt}_$AI(t,s=this,i,e){const n=this.strings;let r=!1;if(void 0===n)t=dt(this,t,s,0),r=!q(t)||t!==this._$AH&&t!==nt,r&&(this._$AH=t);else{const e=t;let o,h;for(t=n[0],o=0;o<n.length-1;o++)h=dt(this,e[i+o],s,o),h===nt&&(h=this._$AH[o]),r||=!q(h)||h!==this._$AH[o],h===rt?t=rt:t!==rt&&(t+=(h??"")+n[o+1]),this._$AH[o]=h}r&&!e&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class pt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}}class gt extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==rt)}}class wt extends ft{constructor(t,s,i,e,n){super(t,s,i,e,n),this.type=5}_$AI(t,s=this){if((t=dt(this,t,s,0)??rt)===nt)return;const i=this._$AH,e=t===rt&&i!==rt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==rt&&(i===rt||e);e&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class bt{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){dt(this,t)}}const mt=I.litHtmlPolyfillSupport;mt?.(ct,vt),(I.litHtmlVersions??=[]).push("3.3.1");const yt=globalThis;
|
|
19
19
|
/**
|
|
20
20
|
* @license
|
|
21
21
|
* Copyright 2017 Google LLC
|
|
@@ -39,12 +39,12 @@ const I=globalThis,N=I.trustedTypes,R=N?N.createPolicy("lit-html",{createHTML:t=
|
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2017 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
|
-
*/;const Mt={attribute:!0,type:String,converter:
|
|
42
|
+
*/;const Mt={attribute:!0,type:String,converter:B,reflect:!1,hasChanged:U},$t=(t=Mt,s,i)=>{const{kind:e,metadata:n}=i;let r=globalThis.litPropertyMetadata.get(n);if(void 0===r&&globalThis.litPropertyMetadata.set(n,r=new Map),"setter"===e&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),"accessor"===e){const{name:e}=i;return{set(i){const n=s.get.call(this);s.set.call(this,i),this.requestUpdate(e,n,t)},init(s){return void 0!==s&&this.C(e,void 0,t,s),s}}}if("setter"===e){const{name:e}=i;return function(i){const n=this[e];s.call(this,i),this.requestUpdate(e,n,t)}}throw Error("Unsupported decorator location: "+e)};function kt(t){return(s,i)=>"object"==typeof i?$t(t,s,i):((t,s,i)=>{const e=s.hasOwnProperty(i);return s.constructor.createProperty(i,t),e?Object.getOwnPropertyDescriptor(s,i):void 0})(t,s,i)
|
|
43
43
|
/**
|
|
44
44
|
* @license
|
|
45
45
|
* Copyright 2017 Google LLC
|
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
47
|
-
*/}function zt(t){return kt({...t,state:!0,attribute:!1})}var At,
|
|
47
|
+
*/}function zt(t){return kt({...t,state:!0,attribute:!1})}var At,Lt=class extends xt{constructor(){var t;super(),(t=At).has(this)?a("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(this):t.set(this,false),this.initialReflectedProperties=new Map,Object.entries(this.constructor.dependencies).forEach((([t,s])=>{this.constructor.define(t,s)}))}emit(t,s){const i=new CustomEvent(t,d({bubbles:!0,cancelable:!1,composed:!0,detail:{}},s));return this.dispatchEvent(i),i}static define(t,s=this,i={}){const e=customElements.get(t);if(!e){try{customElements.define(t,s,i)}catch(e){customElements.define(t,class extends s{},i)}return}let n=" (unknown version)",r=n;"version"in s&&s.version&&(n=" v"+s.version),"version"in e&&e.version&&(r=" v"+e.version),n&&r&&n===r||console.warn(`Attempted to register <${t}>${n}, but <${t}>${r} has already been registered.`)}attributeChangedCallback(t,s,i){var e;f(this,e=At,"read from private field"),e.get(this)||(this.constructor.elementProperties.forEach(((t,s)=>{t.reflect&&null!=this[s]&&this.initialReflectedProperties.set(s,this[s])})),((t,s)=>{f(t,s,"write to private field"),s.set(t,!0)})(this,At)),super.attributeChangedCallback(t,s,i)}willUpdate(t){super.willUpdate(t),this.initialReflectedProperties.forEach(((s,i)=>{t.has(i)&&null==this[i]&&(this[i]=s)}))}};At=new WeakMap,Lt.version="2.20.1",Lt.dependencies={},v([kt()],Lt.prototype,"dir",2),v([kt()],Lt.prototype,"lang",2);var _t={caret:'\n <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <polyline points="6 9 12 15 18 9"></polyline>\n </svg>\n ',check:'\n <svg part="checked-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor">\n <g transform="translate(3.428571, 3.428571)">\n <path d="M0,5.71428571 L3.42857143,9.14285714"></path>\n <path d="M9.14285714,0 L3.42857143,9.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n ',"chevron-down":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>\n </svg>\n ',"chevron-left":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"/>\n </svg>\n ',"chevron-right":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"/>\n </svg>\n ',copy:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-copy" viewBox="0 0 16 16">\n <path fill-rule="evenodd" d="M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V2Zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H6ZM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1H2Z"/>\n </svg>\n ',eye:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye" viewBox="0 0 16 16">\n <path d="M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5c-2.12 0-3.879-1.168-5.168-2.457A13.134 13.134 0 0 1 1.172 8z"/>\n <path d="M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z"/>\n </svg>\n ',"eye-slash":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eye-slash" viewBox="0 0 16 16">\n <path d="M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z"/>\n <path d="M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z"/>\n <path d="M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884-12-12 .708-.708 12 12-.708.708z"/>\n </svg>\n ',eyedropper:'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-eyedropper" viewBox="0 0 16 16">\n <path d="M13.354.646a1.207 1.207 0 0 0-1.708 0L8.5 3.793l-.646-.647a.5.5 0 1 0-.708.708L8.293 5l-7.147 7.146A.5.5 0 0 0 1 12.5v1.793l-.854.853a.5.5 0 1 0 .708.707L1.707 15H3.5a.5.5 0 0 0 .354-.146L11 7.707l1.146 1.147a.5.5 0 0 0 .708-.708l-.647-.646 3.147-3.146a1.207 1.207 0 0 0 0-1.708l-2-2zM2 12.707l7-7L10.293 7l-7 7H2v-1.293z"></path>\n </svg>\n ',"grip-vertical":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-grip-vertical" viewBox="0 0 16 16">\n <path d="M7 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM7 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-3 3a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm3 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"></path>\n </svg>\n ',indeterminate:'\n <svg part="indeterminate-icon" class="checkbox__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round">\n <g stroke="currentColor" stroke-width="2">\n <g transform="translate(2.285714, 6.857143)">\n <path d="M10.2857143,1.14285714 L1.14285714,1.14285714"></path>\n </g>\n </g>\n </g>\n </svg>\n ',"person-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-fill" viewBox="0 0 16 16">\n <path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/>\n </svg>\n ',"play-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-play-fill" viewBox="0 0 16 16">\n <path d="m11.596 8.697-6.363 3.692c-.54.313-1.233-.066-1.233-.697V4.308c0-.63.692-1.01 1.233-.696l6.363 3.692a.802.802 0 0 1 0 1.393z"></path>\n </svg>\n ',"pause-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pause-fill" viewBox="0 0 16 16">\n <path d="M5.5 3.5A1.5 1.5 0 0 1 7 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5zm5 0A1.5 1.5 0 0 1 12 5v6a1.5 1.5 0 0 1-3 0V5a1.5 1.5 0 0 1 1.5-1.5z"></path>\n </svg>\n ',radio:'\n <svg part="checked-icon" class="radio__icon" viewBox="0 0 16 16">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <circle cx="8" cy="8" r="3.42857143"></circle>\n </g>\n </g>\n </svg>\n ',"star-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-star-fill" viewBox="0 0 16 16">\n <path d="M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"/>\n </svg>\n ',"x-lg":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">\n <path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"/>\n </svg>\n ',"x-circle-fill":'\n <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">\n <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293 5.354 4.646z"></path>\n </svg>\n '},Et=[{name:"default",resolver:s=>t(`assets/icons/${s}.svg`)},{name:"system",resolver:t=>t in _t?`data:image/svg+xml,${encodeURIComponent(_t[t])}`:""}],Ot=[];function jt(t){return Et.find((s=>s.name===t))}var Bt=C`
|
|
48
48
|
:host {
|
|
49
49
|
display: inline-block;
|
|
50
50
|
width: 1em;
|
|
@@ -57,11 +57,11 @@ const I=globalThis,N=I.trustedTypes,R=N?N.createPolicy("lit-html",{createHTML:t=
|
|
|
57
57
|
height: 100%;
|
|
58
58
|
width: 100%;
|
|
59
59
|
}
|
|
60
|
-
`;function
|
|
60
|
+
`;function Ut(t,s){const i=d({waitUntilFirstUpdate:!1},s);return(s,e)=>{const{update:n}=s,r=Array.isArray(t)?t:[t];s.update=function(t){r.forEach((s=>{const n=s;if(t.has(n)){const s=t.get(n),r=this[n];s!==r&&(i.waitUntilFirstUpdate&&!this.hasUpdated||this[e](s,r))}})),n.call(this,t)}}}
|
|
61
61
|
/**
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const Pt=t=>void 0===t.strings;var Tt,It=Symbol(),Nt=Symbol(),Rt=new Map,Ht=class extends
|
|
65
|
+
*/const Pt=t=>void 0===t.strings;var Tt,It=Symbol(),Nt=Symbol(),Rt=new Map,Ht=class extends Lt{constructor(){super(...arguments),this.initialRender=!1,this.svg=null,this.label="",this.library="default"}async resolveIcon(t,s){var i;let e;if(null==s?void 0:s.spriteSheet)return this.svg=et`<svg part="svg">
|
|
66
66
|
<use part="use" href="${t}"></use>
|
|
67
|
-
</svg>`,this.svg;try{if(e=await fetch(t,{mode:"cors"}),!e.ok)return 410===e.status?It:Nt}catch(t){return Nt}try{const t=document.createElement("div");t.innerHTML=await e.text();const s=t.firstElementChild;if("svg"!==(null==(i=null==s?void 0:s.tagName)?void 0:i.toLowerCase()))return It;Tt||(Tt=new DOMParser);const n=Tt.parseFromString(s.outerHTML,"text/html").body.querySelector("svg");return n?(n.part.add("svg"),document.adoptNode(n)):It}catch(t){return It}}connectedCallback(){super.connectedCallback(),Ot.push(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var t;super.disconnectedCallback(),t=this,Ot=Ot.filter((s=>s!==t))}getIconSource(){const t=jt(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:s,fromLibrary:i}=this.getIconSource(),e=i?jt(this.library):void 0;if(!s)return void(this.svg=null);let n=Rt.get(s);if(n||(n=this.resolveIcon(s,e),Rt.set(s,n)),!this.initialRender)return;const r=await n;if(r===Nt&&Rt.delete(s),s===this.getIconSource().url)if((t=>void 0!==t?._$litType$)(r)){if(this.svg=r,e){await this.updateComplete;const t=this.shadowRoot.querySelector("[part='svg']");"function"==typeof e.mutator&&t&&e.mutator(t)}}else switch(r){case Nt:case It:this.svg=null,this.emit("sl-error");break;default:this.svg=r.cloneNode(!0),null==(t=null==e?void 0:e.mutator)||t.call(e,this.svg),this.emit("sl-load")}}render(){return this.svg}};Ht.styles=[St,
|
|
67
|
+
</svg>`,this.svg;try{if(e=await fetch(t,{mode:"cors"}),!e.ok)return 410===e.status?It:Nt}catch(t){return Nt}try{const t=document.createElement("div");t.innerHTML=await e.text();const s=t.firstElementChild;if("svg"!==(null==(i=null==s?void 0:s.tagName)?void 0:i.toLowerCase()))return It;Tt||(Tt=new DOMParser);const n=Tt.parseFromString(s.outerHTML,"text/html").body.querySelector("svg");return n?(n.part.add("svg"),document.adoptNode(n)):It}catch(t){return It}}connectedCallback(){super.connectedCallback(),Ot.push(this)}firstUpdated(){this.initialRender=!0,this.setIcon()}disconnectedCallback(){var t;super.disconnectedCallback(),t=this,Ot=Ot.filter((s=>s!==t))}getIconSource(){const t=jt(this.library);return this.name&&t?{url:t.resolver(this.name),fromLibrary:!0}:{url:this.src,fromLibrary:!1}}handleLabelChange(){"string"==typeof this.label&&this.label.length>0?(this.setAttribute("role","img"),this.setAttribute("aria-label",this.label),this.removeAttribute("aria-hidden")):(this.removeAttribute("role"),this.removeAttribute("aria-label"),this.setAttribute("aria-hidden","true"))}async setIcon(){var t;const{url:s,fromLibrary:i}=this.getIconSource(),e=i?jt(this.library):void 0;if(!s)return void(this.svg=null);let n=Rt.get(s);if(n||(n=this.resolveIcon(s,e),Rt.set(s,n)),!this.initialRender)return;const r=await n;if(r===Nt&&Rt.delete(s),s===this.getIconSource().url)if((t=>void 0!==t?._$litType$)(r)){if(this.svg=r,e){await this.updateComplete;const t=this.shadowRoot.querySelector("[part='svg']");"function"==typeof e.mutator&&t&&e.mutator(t)}}else switch(r){case Nt:case It:this.svg=null,this.emit("sl-error");break;default:this.svg=r.cloneNode(!0),null==(t=null==e?void 0:e.mutator)||t.call(e,this.svg),this.emit("sl-load")}}render(){return this.svg}};Ht.styles=[St,Bt],v([zt()],Ht.prototype,"svg",2),v([kt({reflect:!0})],Ht.prototype,"name",2),v([kt()],Ht.prototype,"src",2),v([kt()],Ht.prototype,"label",2),v([kt({reflect:!0})],Ht.prototype,"library",2),v([Ut("label")],Ht.prototype,"handleLabelChange",1),v([Ut(["name","src","library"])],Ht.prototype,"setIcon",1);export{rt as E,Ht as S,nt as T,v as _,Lt as a,u as b,St as c,d,g as e,Pt as f,C as i,kt as n,zt as r,Ut as w,et as x}
|