@teipublisher/pb-components 1.43.1 → 1.43.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.43.3](https://github.com/eeditiones/tei-publisher-components/compare/v1.43.2...v1.43.3) (2023-02-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **pb-popover:** add property to stop propagation, thus avoiding multiple nested pb-popover to all appear at once ([d015797](https://github.com/eeditiones/tei-publisher-components/commit/d015797084838f9d9007f6bb47a3af9313b7622a))
7
+
8
+ ## [1.43.2](https://github.com/eeditiones/tei-publisher-components/compare/v1.43.1...v1.43.2) (2023-02-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **pb-load:** wrong initial setting for noCredentials broke pagination ([6433e07](https://github.com/eeditiones/tei-publisher-components/commit/6433e078900d713b6f489e54850ffcb9bdc08163))
14
+
1
15
  ## [1.43.1](https://github.com/eeditiones/tei-publisher-components/compare/v1.43.0...v1.43.1) (2023-01-18)
2
16
 
3
17
 
@@ -507,7 +507,7 @@ const J=n`
507
507
  border-color: #999;
508
508
  color: #999;
509
509
  }
510
- `}}customElements.define("pb-demo-snippet",ot);class st{static subscribe(t,e,i,n=!1){e&&!Array.isArray(e)&&(e=[e]);const r=document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i&&i(t,r)},{once:n})}static subscribeOnce(t,e=null){return e&&!Array.isArray(e)&&(e=[e]),new Promise(i=>{document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i(t)},{once:!0})})}static emit(t,e=null,i=null){const n=i||{};e&&(n.key=e);const r=new CustomEvent(t,{detail:n});document.dispatchEvent(r)}}window.pbEvents||(window.pbEvents=st);const at="1.43.1";class lt extends D{static get properties(){return Object.assign({version:{type:String,reflect:!0}},super.properties)}constructor(){super(),this.version=at}connectedCallback(){if(super.connectedCallback(),!this.version){const t=P("../package.json");fetch(t).then(t=>t.json()).then(t=>{this.version=t.version})}}render(){return R`<span>${this.version?this.version:"unknown"}</span>`}createRenderRoot(){return this}}customElements.define("pb-version",lt);var ct="top",ht="bottom",dt="right",pt="left",ut="auto",gt=[ct,ht,dt,pt],ft="start",mt="end",vt="clippingParents",bt="viewport",yt="popper",_t="reference",wt=gt.reduce((function(t,e){return t.concat([e+"-"+ft,e+"-"+mt])}),[]),xt=[].concat(gt,[ut]).reduce((function(t,e){return t.concat([e,e+"-"+ft,e+"-"+mt])}),[]),kt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function At(t){return t?(t.nodeName||"").toLowerCase():null}function zt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function St(t){return t instanceof zt(t).Element||t instanceof Element}function Ct(t){return t instanceof zt(t).HTMLElement||t instanceof HTMLElement}function Et(t){return"undefined"!=typeof ShadowRoot&&(t instanceof zt(t).ShadowRoot||t instanceof ShadowRoot)}function Mt(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Ct(r)&&At(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))}function Lt(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Ct(n)&&At(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}}var Tt={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Lt,requires:["computeStyles"]};function Ht(t){return t.split("-")[0]}function Ot(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function $t(t){var e=Ot(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Vt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Et(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rt(t){return zt(t).getComputedStyle(t)}function It(t){return["table","td","th"].indexOf(At(t))>=0}function Pt(t){return((St(t)?t.ownerDocument:t.document)||window.document).documentElement}function Dt(t){return"html"===At(t)?t:t.assignedSlot||t.parentNode||(Et(t)?t.host:null)||Pt(t)}function Nt(t){return Ct(t)&&"fixed"!==Rt(t).position?t.offsetParent:null}function Ft(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ct(t)&&"fixed"===Rt(t).position)return null;for(var i=Dt(t);Ct(i)&&["html","body"].indexOf(At(i))<0;){var n=Rt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function Bt(t){for(var e=zt(t),i=Nt(t);i&&It(i)&&"static"===Rt(i).position;)i=Nt(i);return i&&("html"===At(i)||"body"===At(i)&&"static"===Rt(i).position)?e:i||Ft(t)||e}function jt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var qt=Math.max,Ut=Math.min,Wt=Math.round;function Yt(t,e,i){return qt(t,Ut(e,i))}function Gt(){return{top:0,right:0,bottom:0,left:0}}function Xt(t){return Object.assign({},Gt(),t)}function Kt(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Qt=function(t,e){return Xt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Kt(t,gt))};function Zt(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,s=i.modifiersData.popperOffsets,a=Ht(i.placement),l=jt(a),c=[pt,dt].indexOf(a)>=0?"height":"width";if(o&&s){var h=Qt(r.padding,i),d=$t(o),p="y"===l?ct:pt,u="y"===l?ht:dt,g=i.rects.reference[c]+i.rects.reference[l]-s[l]-i.rects.popper[c],f=s[l]-i.rects.reference[l],m=Bt(o),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=g/2-f/2,y=h[p],_=v-d[c]-h[u],w=v/2-d[c]/2+b,x=Yt(y,w,_),k=l;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-w,e)}}function Jt(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Vt(e.elements.popper,n)&&(e.elements.arrow=n)}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Wt(Wt(e*n)/n)||0,y:Wt(Wt(i*n)/n)||0}}function ie(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=!0===c?ee(o):"function"==typeof c?c(o):o,d=h.x,p=void 0===d?0:d,u=h.y,g=void 0===u?0:u,f=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),v=pt,b=ct,y=window;if(l){var _=Bt(i),w="clientHeight",x="clientWidth";_===zt(i)&&"static"!==Rt(_=Pt(i)).position&&(w="scrollHeight",x="scrollWidth"),_=_,r===ct&&(b=ht,g-=_[w]-n.height,g*=a?1:-1),r===pt&&(v=dt,p-=_[x]-n.width,p*=a?1:-1)}var k,A=Object.assign({position:s},l&&te);return a?Object.assign({},A,((k={})[b]=m?"0":"",k[v]=f?"0":"",k.transform=(y.devicePixelRatio||1)<2?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},A,((e={})[b]=m?g+"px":"",e[v]=f?p+"px":"",e.transform="",e))}function ne(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:Ht(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ie(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ie(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var re={passive:!0};function oe(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=zt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,re)})),a&&l.addEventListener("resize",i.update,re),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,re)})),a&&l.removeEventListener("resize",i.update,re)}}var se={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(t){return t.replace(/left|right|bottom|top/g,(function(t){return se[t]}))}var le={start:"end",end:"start"};function ce(t){return t.replace(/start|end/g,(function(t){return le[t]}))}function he(t){var e=zt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function de(t){return Ot(Pt(t)).left+he(t).scrollLeft}function pe(t){var e=zt(t),i=Pt(t),n=e.visualViewport,r=i.clientWidth,o=i.clientHeight,s=0,a=0;return n&&(r=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,a=n.offsetTop)),{width:r,height:o,x:s+de(t),y:a}}function ue(t){var e,i=Pt(t),n=he(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=qt(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=qt(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+de(t),l=-n.scrollTop;return"rtl"===Rt(r||i).direction&&(a+=qt(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function ge(t){var e=Rt(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function fe(t){return["html","body","#document"].indexOf(At(t))>=0?t.ownerDocument.body:Ct(t)&&ge(t)?t:fe(Dt(t))}function me(t,e){var i;void 0===e&&(e=[]);var n=fe(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),o=zt(n),s=r?[o].concat(o.visualViewport||[],ge(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(me(Dt(s)))}function ve(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function be(t){var e=Ot(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ye(t,e){return e===bt?ve(pe(t)):Ct(e)?be(e):ve(ue(Pt(t)))}function _e(t){var e=me(Dt(t)),i=["absolute","fixed"].indexOf(Rt(t).position)>=0&&Ct(t)?Bt(t):t;return St(i)?e.filter((function(t){return St(t)&&Vt(t,i)&&"body"!==At(t)})):[]}function we(t,e,i){var n="clippingParents"===e?_e(t):[].concat(e),r=[].concat(n,[i]),o=r[0],s=r.reduce((function(e,i){var n=ye(t,i);return e.top=qt(n.top,e.top),e.right=Ut(n.right,e.right),e.bottom=Ut(n.bottom,e.bottom),e.left=qt(n.left,e.left),e}),ye(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function xe(t){return t.split("-")[1]}function ke(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?Ht(r):null,s=r?xe(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case ct:e={x:a,y:i.y-n.height};break;case ht:e={x:a,y:i.y+i.height};break;case dt:e={x:i.x+i.width,y:l};break;case pt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?jt(o):null;if(null!=c){var h="y"===c?"height":"width";switch(s){case ft:e[c]=e[c]-(i[h]/2-n[h]/2);break;case mt:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Ae(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,o=i.boundary,s=void 0===o?vt:o,a=i.rootBoundary,l=void 0===a?bt:a,c=i.elementContext,h=void 0===c?yt:c,d=i.altBoundary,p=void 0!==d&&d,u=i.padding,g=void 0===u?0:u,f=Xt("number"!=typeof g?g:Kt(g,gt)),m=h===yt?_t:yt,v=t.elements.reference,b=t.rects.popper,y=t.elements[p?m:h],_=we(St(y)?y:y.contextElement||Pt(t.elements.popper),s,l),w=Ot(v),x=ke({reference:w,element:b,strategy:"absolute",placement:r}),k=ve(Object.assign({},b,x)),A=h===yt?k:w,z={top:_.top-A.top+f.top,bottom:A.bottom-_.bottom+f.bottom,left:_.left-A.left+f.left,right:A.right-_.right+f.right},S=t.modifiersData.offset;if(h===yt&&S){var C=S[r];Object.keys(z).forEach((function(t){var e=[dt,ht].indexOf(t)>=0?1:-1,i=[ct,ht].indexOf(t)>=0?"y":"x";z[t]+=C[i]*e}))}return z}function ze(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?xt:l,h=xe(n),d=h?a?wt:wt.filter((function(t){return xe(t)===h})):gt,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var u=p.reduce((function(e,i){return e[i]=Ae(t,{placement:i,boundary:r,rootBoundary:o,padding:s})[Ht(i)],e}),{});return Object.keys(u).sort((function(t,e){return u[t]-u[e]}))}function Se(t){if(Ht(t)===ut)return[];var e=ae(t);return[ce(t),e,ce(e)]}function Ce(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,p=i.altBoundary,u=i.flipVariations,g=void 0===u||u,f=i.allowedAutoPlacements,m=e.options.placement,v=Ht(m),b=l||(v===m||!g?[ae(m)]:Se(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Ht(i)===ut?ze(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:f}):i)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,A=y[0],z=0;z<y.length;z++){var S=y[z],C=Ht(S),E=xe(S)===ft,M=[ct,ht].indexOf(C)>=0,L=M?"width":"height",T=Ae(e,{placement:S,boundary:h,rootBoundary:d,altBoundary:p,padding:c}),H=M?E?dt:pt:E?ht:ct;_[L]>w[L]&&(H=ae(H));var O=ae(H),$=[];if(o&&$.push(T[C]<=0),a&&$.push(T[H]<=0,T[O]<=0),$.every((function(t){return t}))){A=S,k=!1;break}x.set(S,$)}if(k)for(var V=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return A=e,"break"},R=g?3:1;R>0;R--){if("break"===V(R))break}e.placement!==A&&(e.modifiersData[n]._skip=!0,e.placement=A,e.reset=!0)}}function Ee(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Me(t){return[ct,dt,ht,pt].some((function(e){return t[e]>=0}))}function Le(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ae(e,{elementContext:"reference"}),a=Ae(e,{altBoundary:!0}),l=Ee(s,n),c=Ee(a,r,o),h=Me(l),d=Me(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}function Te(t,e,i){var n=Ht(t),r=[pt,ct].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[pt,dt].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function He(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,s=xt.reduce((function(t,i){return t[i]=Te(i,e.rects,o),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}function Oe(t){var e=t.state,i=t.name;e.modifiersData[i]=ke({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}function $e(t){return"x"===t?"y":"x"}function Ve(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0!==s&&s,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,p=i.tether,u=void 0===p||p,g=i.tetherOffset,f=void 0===g?0:g,m=Ae(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),v=Ht(e.placement),b=xe(e.placement),y=!b,_=jt(v),w=$e(_),x=e.modifiersData.popperOffsets,k=e.rects.reference,A=e.rects.popper,z="function"==typeof f?f(Object.assign({},e.rects,{placement:e.placement})):f,S={x:0,y:0};if(x){if(o||a){var C="y"===_?ct:pt,E="y"===_?ht:dt,M="y"===_?"height":"width",L=x[_],T=x[_]+m[C],H=x[_]-m[E],O=u?-A[M]/2:0,$=b===ft?k[M]:A[M],V=b===ft?-A[M]:-k[M],R=e.elements.arrow,I=u&&R?$t(R):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gt(),D=P[C],N=P[E],F=Yt(0,k[M],I[M]),B=y?k[M]/2-O-F-D-z:$-F-D-z,j=y?-k[M]/2+O+F+N+z:V+F+N+z,q=e.elements.arrow&&Bt(e.elements.arrow),U=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,W=e.modifiersData.offset?e.modifiersData.offset[e.placement][_]:0,Y=x[_]+B-W-U,G=x[_]+j-W;if(o){var X=Yt(u?Ut(T,Y):T,L,u?qt(H,G):H);x[_]=X,S[_]=X-L}if(a){var K="x"===_?ct:pt,Q="x"===_?ht:dt,Z=x[w],J=Z+m[K],tt=Z-m[Q],et=Yt(u?Ut(J,Y):J,Z,u?qt(tt,G):tt);x[w]=et,S[w]=et-Z}}e.modifiersData[n]=S}}function Re(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ie(t){return t!==zt(t)&&Ct(t)?Re(t):he(t)}function Pe(t,e,i){void 0===i&&(i=!1);var n=Pt(e),r=Ot(t),o=Ct(e),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!i)&&(("body"!==At(e)||ge(n))&&(s=Ie(e)),Ct(e)?((a=Ot(e)).x+=e.clientLeft,a.y+=e.clientTop):n&&(a.x=de(n))),{x:r.left+s.scrollLeft-a.x,y:r.top+s.scrollTop-a.y,width:r.width,height:r.height}}function De(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}function Ne(t){var e=De(t);return kt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Fe(t){var e;return function(){return e||(e=new Promise((function(i){Promise.resolve().then((function(){e=void 0,i(t())}))}))),e}}function Be(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ue(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,o=void 0===r?je:r;return function(t,e,i){void 0===i&&(i=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},s=[],a=!1,l={state:r,setOptions:function(i){h(),r.options=Object.assign({},o,r.options,i),r.scrollParents={reference:St(t)?me(t):t.contextElement?me(t.contextElement):[],popper:me(e)};var s=Ne(Be([].concat(n,r.options.modifiers)));return r.orderedModifiers=s.filter((function(t){return t.enabled})),c(),l.update()},forceUpdate:function(){if(!a){var t=r.elements,e=t.reference,i=t.popper;if(qe(e,i)){r.rects={reference:Pe(e,Bt(i),"fixed"===r.options.strategy),popper:$t(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var o=r.orderedModifiers[n],s=o.fn,c=o.options,h=void 0===c?{}:c,d=o.name;"function"==typeof s&&(r=s({state:r,options:h,name:d,instance:l})||r)}else r.reset=!1,n=-1}}},update:Fe((function(){return new Promise((function(t){l.forceUpdate(),t(r)}))})),destroy:function(){h(),a=!0}};if(!qe(t,e))return l;function c(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var a=o({state:r,name:e,instance:l,options:n}),c=function(){};s.push(a||c)}}))}function h(){s.forEach((function(t){return t()})),s=[]}return l.setOptions(i).then((function(t){!a&&i.onFirstUpdate&&i.onFirstUpdate(t)})),l}}var We=Ue({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oe,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:Oe,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ne,data:{}},Tt,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:He},{name:"flip",enabled:!0,phase:"main",fn:Ce,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Ve,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:Zt,effect:Jt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Le}]}),Ye="tippy-box",Ge="tippy-content",Xe="tippy-backdrop",Ke="tippy-arrow",Qe="tippy-svg-arrow",Ze={passive:!0,capture:!0};function Je(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function ti(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function ei(t,e){return"function"==typeof t?t.apply(void 0,e):t}function ii(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function ni(t){return t.split(/\s+/).filter(Boolean)}function ri(t){return[].concat(t)}function oi(t,e){-1===t.indexOf(e)&&t.push(e)}function si(t){return t.filter((function(e,i){return t.indexOf(e)===i}))}function ai(t){return t.split("-")[0]}function li(t){return[].slice.call(t)}function ci(t){return Object.keys(t).reduce((function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e}),{})}function hi(){return document.createElement("div")}function di(t){return["Element","Fragment"].some((function(e){return ti(t,e)}))}function pi(t){return ti(t,"NodeList")}function ui(t){return ti(t,"MouseEvent")}function gi(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function fi(t){return di(t)?[t]:pi(t)?li(t):Array.isArray(t)?t:li(document.querySelectorAll(t))}function mi(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function vi(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function bi(t){var e,i=ri(t)[0];return(null==i||null==(e=i.ownerDocument)?void 0:e.body)?i.ownerDocument:document}function yi(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,s=ai(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,c="top"===s?a.bottom.y:0,h="right"===s?a.left.x:0,d="left"===s?a.right.x:0,p=e.top-n+l>o,u=n-e.bottom-c>o,g=e.left-i+h>o,f=i-e.right-d>o;return p||u||g||f}))}function _i(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}var wi={isTouch:!1},xi=0;function ki(){wi.isTouch||(wi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ai))}function Ai(){var t=performance.now();t-xi<20&&(wi.isTouch=!1,document.removeEventListener("mousemove",Ai)),xi=t}function zi(){var t=document.activeElement;if(gi(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Si(){document.addEventListener("touchstart",ki,Ze),window.addEventListener("blur",zi)}var Ci="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Ei=/MSIE |Trident\//.test(Ci),Mi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Li={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ti=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mi,{},Li),Hi=Object.keys(Ti),Oi=function(t){Object.keys(t).forEach((function(e){Ti[e]=t[e]}))};function $i(t){var e=(t.plugins||[]).reduce((function(e,i){var n=i.name,r=i.defaultValue;return n&&(e[n]=void 0!==t[n]?t[n]:r),e}),{});return Object.assign({},t,{},e)}function Vi(t,e){return(e?Object.keys($i(Object.assign({},Ti,{plugins:e}))):Hi).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e}),{})}function Ri(t,e){var i=Object.assign({},e,{content:ei(e.content,[t])},e.ignoreAttributes?{}:Vi(t,e.plugins));return i.aria=Object.assign({},Ti.aria,{},i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}var Ii=function(){return"innerHTML"};function Pi(t,e){t[Ii()]=e}function Di(t){var e=hi();return!0===t?e.className=Ke:(e.className=Qe,di(t)?e.appendChild(t):Pi(e,t)),e}function Ni(t,e){di(e.content)?(Pi(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Pi(t,e.content):t.textContent=e.content)}function Fi(t){var e=t.firstElementChild,i=li(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(Ge)})),arrow:i.find((function(t){return t.classList.contains(Ke)||t.classList.contains(Qe)})),backdrop:i.find((function(t){return t.classList.contains(Xe)}))}}function Bi(t){var e=hi(),i=hi();i.className=Ye,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=hi();function r(i,n){var r=Fi(e),o=r.box,s=r.content,a=r.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Ni(s,t.props),n.arrow?a?i.arrow!==n.arrow&&(o.removeChild(a),o.appendChild(Di(n.arrow))):o.appendChild(Di(n.arrow)):a&&o.removeChild(a)}return n.className=Ge,n.setAttribute("data-state","hidden"),Ni(n,t.props),e.appendChild(i),i.appendChild(n),r(t.props,t.props),{popper:e,onUpdate:r}}Bi.$$tippy=!0;var ji=1,qi=[],Ui=[];function Wi(t,e){var i,n,r,o,s,a,l,c=Ri(t,Object.assign({},Ti,{},$i(ci(e)))),h=!1,d=!1,p=!1,u=!1,g=[],f=ii(K,c.interactiveDebounce),m=ji++,v=null,b=si(c.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:m,reference:t,popper:hi(),popperInstance:v,props:c,state:y,plugins:b,clearDelayTimeouts:lt,setProps:ct,setContent:ht,show:dt,hide:pt,hideWithInteractivity:ut,enable:st,disable:at,unmount:gt,destroy:ft};if(!c.render)return _;var w=c.render(_),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,t._tippy=_,x._tippy=_;var A=b.map((function(t){return t.fn(_)})),z=t.hasAttribute("aria-expanded");return Y(),R(),O(),$("onCreate",[_]),c.showOnCreate&&rt(),x.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(t){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",f),f(t))})),_;function S(){var t=_.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===S()[0]}function E(){var t;return!!(null==(t=_.props.render)?void 0:t.$$tippy)}function M(){return l||t}function L(){var t=M().parentNode;return t?bi(t):document}function T(){return Fi(x)}function H(t){return _.state.isMounted&&!_.state.isVisible||wi.isTouch||o&&"focus"===o.type?0:Je(_.props.delay,t?0:1,Ti.delay)}function O(){x.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",x.style.zIndex=""+_.props.zIndex}function $(t,e,i){var n;(void 0===i&&(i=!0),A.forEach((function(i){i[t]&&i[t].apply(void 0,e)})),i)&&(n=_.props)[t].apply(n,e)}function V(){var e=_.props.aria;if(e.content){var i="aria-"+e.content,n=x.id;ri(_.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(_.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var r=e&&e.replace(n,"").trim();r?t.setAttribute(i,r):t.removeAttribute(i)}}))}}function R(){!z&&_.props.aria.expanded&&ri(_.props.triggerTarget||t).forEach((function(t){_.props.interactive?t.setAttribute("aria-expanded",_.state.isVisible&&t===M()?"true":"false"):t.removeAttribute("aria-expanded")}))}function I(){L().removeEventListener("mousemove",f),qi=qi.filter((function(t){return t!==f}))}function P(t){if(!(wi.isTouch&&(p||"mousedown"===t.type)||_.props.interactive&&x.contains(t.target))){if(M().contains(t.target)){if(wi.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||B())}}function D(){p=!0}function N(){p=!1}function F(){var t=L();t.addEventListener("mousedown",P,!0),t.addEventListener("touchend",P,Ze),t.addEventListener("touchstart",N,Ze),t.addEventListener("touchmove",D,Ze)}function B(){var t=L();t.removeEventListener("mousedown",P,!0),t.removeEventListener("touchend",P,Ze),t.removeEventListener("touchstart",N,Ze),t.removeEventListener("touchmove",D,Ze)}function j(t,e){U(t,(function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}function q(t,e){U(t,e)}function U(t,e){var i=T().box;function n(t){t.target===i&&(_i(i,"remove",n),e())}if(0===t)return e();_i(i,"remove",s),_i(i,"add",n),s=n}function W(e,i,n){void 0===n&&(n=!1),ri(_.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function Y(){C()&&(W("touchstart",X,{passive:!0}),W("touchend",Q,{passive:!0})),ni(_.props.trigger).forEach((function(t){if("manual"!==t)switch(W(t,X),t){case"mouseenter":W("mouseleave",Q);break;case"focus":W(Ei?"focusout":"blur",Z);break;case"focusin":W("focusout",Z)}}))}function G(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,r=t.options;e.removeEventListener(i,n,r)})),g=[]}function X(t){var e,i=!1;if(_.state.isEnabled&&!J(t)&&!d){var n="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,R(),!_.state.isVisible&&ui(t)&&qi.forEach((function(e){return e(t)})),"click"===t.type&&(_.props.trigger.indexOf("mouseenter")<0||h)&&!1!==_.props.hideOnClick&&_.state.isVisible?i=!0:rt(t),"click"===t.type&&(h=!i),i&&!n&&ot(t)}}function K(t){var e=t.target,i=M().contains(e)||x.contains(e);"mousemove"===t.type&&i||yi(nt().concat(x).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:c}:null})).filter(Boolean),t)&&(I(),ot(t))}function Q(t){J(t)||_.props.trigger.indexOf("click")>=0&&h||(_.props.interactive?_.hideWithInteractivity(t):ot(t))}function Z(t){_.props.trigger.indexOf("focusin")<0&&t.target!==M()||_.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||ot(t)}function J(t){return!!wi.isTouch&&C()!==t.type.indexOf("touch")>=0}function tt(){et();var e=_.props,i=e.popperOptions,n=e.placement,r=e.offset,o=e.getReferenceClientRect,s=e.moveTransition,l=E()?Fi(x).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:t,h=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=T().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];E()&&l&&h.push({name:"arrow",options:{element:l,padding:3}}),h.push.apply(h,(null==i?void 0:i.modifiers)||[]),_.popperInstance=We(c,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:h}))}function et(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function it(){var t,e=_.props.appendTo,i=M();(t=_.props.interactive&&e===Ti.appendTo||"parent"===e?i.parentNode:ei(e,[i])).contains(x)||t.appendChild(x),tt()}function nt(){return li(x.querySelectorAll("[data-tippy-root]"))}function rt(t){_.clearDelayTimeouts(),t&&$("onTrigger",[_,t]),F();var e=H(!0),n=S(),r=n[0],o=n[1];wi.isTouch&&"hold"===r&&o&&(e=o),e?i=setTimeout((function(){_.show()}),e):_.show()}function ot(t){if(_.clearDelayTimeouts(),$("onUntrigger",[_,t]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=H(!1);e?n=setTimeout((function(){_.state.isVisible&&_.hide()}),e):r=requestAnimationFrame((function(){_.hide()}))}}else B()}function st(){_.state.isEnabled=!0}function at(){_.hide(),_.state.isEnabled=!1}function lt(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)}function ct(e){if(!_.state.isDestroyed){$("onBeforeUpdate",[_,e]),G();var i=_.props,n=Ri(t,Object.assign({},_.props,{},e,{ignoreAttributes:!0}));_.props=n,Y(),i.interactiveDebounce!==n.interactiveDebounce&&(I(),f=ii(K,n.interactiveDebounce)),i.triggerTarget&&!n.triggerTarget?ri(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded"),R(),O(),k&&k(i,n),_.popperInstance&&(tt(),nt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),$("onAfterUpdate",[_,e])}}function ht(t){_.setProps({content:t})}function dt(){var t=_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=wi.isTouch&&!_.props.touch,r=Je(_.props.duration,0,Ti.duration);if(!(t||e||i||n||M().hasAttribute("disabled")||($("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,E()&&(x.style.visibility="visible"),O(),F(),_.state.isMounted||(x.style.transition="none"),E()){var o=T();mi([o.box,o.content],0)}a=function(){var t;if(_.state.isVisible&&!u){if(u=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,E()&&_.props.animation){var e=T(),i=e.box,n=e.content;mi([i,n],r),vi([i,n],"visible")}V(),R(),oi(Ui,_),null==(t=_.popperInstance)||t.forceUpdate(),_.state.isMounted=!0,$("onMount",[_]),_.props.animation&&E()&&q(r,(function(){_.state.isShown=!0,$("onShown",[_])}))}},it()}}function pt(){var t=!_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=Je(_.props.duration,1,Ti.duration);if(!(t||e||i)&&($("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,u=!1,h=!1,E()&&(x.style.visibility="hidden"),I(),B(),O(),E()){var r=T(),o=r.box,s=r.content;_.props.animation&&(mi([o,s],n),vi([o,s],"hidden"))}V(),R(),_.props.animation?E()&&j(n,_.unmount):_.unmount()}}function ut(t){L().addEventListener("mousemove",f),oi(qi,f),f(t)}function gt(){_.state.isVisible&&_.hide(),_.state.isMounted&&(et(),nt().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Ui=Ui.filter((function(t){return t!==_})),_.state.isMounted=!1,$("onHidden",[_]))}function ft(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),G(),delete t._tippy,_.state.isDestroyed=!0,$("onDestroy",[_]))}}function Yi(t,e){void 0===e&&(e={});var i=Ti.plugins.concat(e.plugins||[]);Si();var n=Object.assign({},e,{plugins:i}),r=fi(t).reduce((function(t,e){var i=e&&Wi(e,n);return i&&t.push(i),t}),[]);return di(t)?r[0]:r}Yi.defaultProps=Ti,Yi.setDefaultProps=Oi,Yi.currentInput=wi;Object.assign({},Tt,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});function Gi(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==+t?"":0===e?t.toLowerCase():t.toUpperCase()).replace("-","")}Yi.setDefaultProps({render:Bi});const Xi='\n .tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n }\n\n .tippy-iOS {\n cursor: pointer!important;\n -webkit-tap-highlight-color: transparent\n }\n\n [data-tippy-root] {\n max-width: calc(100vw - 10px)\n }\n\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: var(--pb-popover-font-size, var(--pb-base-font-size, 14px));\n line-height: var(--pb-popover-line-height, var(--pb-base-line-height, 1.4));\n text-align: left;\n font-style: normal;\n font-weight: normal;\n outline: 0;\n transition-property: transform, visibility, opacity\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow {\n bottom: 0\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow {\n top: 0\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow {\n right: 0\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow {\n left: 0\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)\n }\n\n .tippy-arrow {\n width: 16px;\n height: 16px;\n color: #333\n }\n\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-content {\n position: relative;\n padding: 5px 9px;\n z-index: 1;\n overflow: auto;\n max-height: var(--pb-popover-max-height, calc(100vh - 60px));\n min-height: var(--pb-popover-min-height, auto);\n max-width: var(--pb-popover-max-width, auto);\n min-width: var(--pb-popover-min-width, auto);\n color: var(--pb-popover-color);\n }\n',Ki='\n .tippy-box[data-theme~=light-border] {\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 8, 16, .15);\n color: #333;\n box-shadow: 0 4px 14px -2px rgba(0, 8, 16, .08)\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after, .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n content: "";\n position: absolute;\n z-index: -1\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after {\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after {\n border-top-color: rgba(0, 8, 16, .2);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg {\n top: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after {\n top: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff;\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after {\n border-bottom-color: rgba(0, 8, 16, .2);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg {\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after {\n bottom: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after {\n border-left-color: rgba(0, 8, 16, .2);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg {\n left: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after {\n left: 12px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff;\n right: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: rgba(0, 8, 16, .2)\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg {\n right: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after {\n right: 12px\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow {\n fill: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);\n background-size: 16px 6px;\n width: 16px;\n height: 6px\n }\n',Qi="\n .tippy-box[data-theme~=light] {\n color: #26323d;\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-svg-arrow {\n fill: #fff\n }",Zi="\n .tippy-box[data-theme~=material] {\n background-color: #505355;\n font-weight: 600\n }\n\n .tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-backdrop {\n background-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-svg-arrow {\n fill: #505355\n }\n",Ji="\n .tippy-box[data-theme~=translucent] {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-arrow {\n width: 14px;\n height: 14px\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {\n border-width: 7px 7px 0;\n border-top-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {\n border-width: 0 7px 7px;\n border-bottom-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {\n border-width: 7px 0 7px 7px;\n border-left-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {\n border-width: 7px 7px 7px 0;\n border-right-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-backdrop {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-svg-arrow {\n fill: rgba(0, 0, 0, .7)\n }\n";var tn=Object.freeze({__proto__:null,camelize:Gi,base:Xi,lightBorder:Ki,light:Qi,material:Zi,translucent:Ji});function en(t,e,i){if(!t.querySelector("#pb-popover-"+e)){const n=t.nodeType===Node.DOCUMENT_NODE?document.head:t;console.log("Loading tippy styles for theme %s into %o",e,n);const r=document.createElement("style");r.type="text/css",r.id="pb-popover-"+e,r.innerHTML=i,n.appendChild(r)}}function nn(t,e){if(en(t,"base",Xi),e&&"none"!==e){const i=Gi(e),n=tn[i];n&&en(t,i,n)}}class rn extends(N(D)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{for:{type:String},theme:{type:String},placement:{type:String},fallbackPlacement:{type:String,attribute:"fallback-placement"},persistent:{type:Boolean},trigger:{type:String},popupClass:{type:String,attribute:"popup-class"},remote:{type:String}})}constructor(){super(),this.persistent=!1,this.trigger=null,this.for=null,this.theme=null,this.placement=null,this.fallbackPlacement=null,this.popupClass=null,this._tippy=null,this._content=null}render(){return this.for?R`<div class="hidden"><slot></slot></div>`:R`<span id="link" part="trigger" class="${this.persistent?"persistent":""}"><slot name="default"><slot></slot></slot></span><span class="hidden"><slot name="alternate"></slot></span>`}disconnectedCallback(){super.disconnectedCallback(),this._tippy&&this._tippy.destroy(),this._observer&&this._observer.disconnect()}_checkCSSProperties(){this.theme||"none"===this.theme||(this.theme=V(this,"--pb-popover-theme","none")),this.placement||(this.placement=V(this,"--pb-popover-placement","auto")),this.fallbackPlacement||(this.fallbackPlacement=V(this,"--pb-popover-fallback-placement",null)),this.persistent||(this.persistent=V(this,"--pb-popover-persistent",!1)),this.trigger||(this.trigger=V(this,"--pb-popover-trigger",null))}_injectStyles(){this._checkCSSProperties(),nn(this.getRootNode(),this.theme)}_getContent(){if(this._content)return this._content;const t=this._getSlot();if(t){const e=document.createElement("div");return t.assignedNodes().forEach(t=>{e.appendChild(t.content?t.content.cloneNode(!0):t.cloneNode(!0))}),this._content=e,e}return null}_getSlot(){return this.for?this.shadowRoot.querySelector("slot"):this.shadowRoot.querySelector("[name=alternate]")}_registerMutationObserver(){const t=this._getSlot();this._observer=new MutationObserver(()=>{this.alternate=this._getContent(),console.log("alternate changed"),this.emitTo("pb-popover-changed",this.alternate)}),this._observer.observe(this,{subtree:!0,childList:!0,characterData:!0}),t&&t.assignedNodes().forEach(t=>{this._observer.observe(t.content?t.content:t,{subtree:!0,childList:!0,characterData:!0})})}get alternate(){return this._getContent()}set alternate(t){this._content=t,this._tippy&&this._tippy.setContent(this._content)}command(t,e){"disable"===t&&(this.disabled=e,this._tippy&&(e?this._tippy.disable():this._tippy.enable()))}firstUpdated(){super.firstUpdated(),this._injectStyles(),this._registerMutationObserver(),this.trigger||(this.trigger=this.persistent?"click":"mouseenter");const t=this.getRootNode();let e;if(this.for?(e=t.getElementById(this.for),e||console.error("<pb-popover> target element %s not found",this.for)):e=this.shadowRoot.getElementById("link"),e){const i={allowHTML:!0,appendTo:t.nodeType===Node.DOCUMENT_NODE?document.body:t,placement:this.placement,interactive:!0,ignoreAttributes:!0,boundary:"viewport",maxWidth:"none",touch:"hold",hideOnClick:!1,trigger:this.trigger};if(this.persistent&&(i.onClickOutside=(t,e)=>{t.hideWithInteractivity(e)}),this.theme&&"none"!==this.theme&&(i.theme=this.theme),this.fallbackPlacement){const t=this.fallbackPlacement.split(" ");i.popperOptions={modifiers:[{name:"flip",options:{fallbackPlacements:t}}]}}this.popupClass&&(i.onCreate=t=>{t.popper.classList.add(this.popupClass)}),i.onShow=t=>{this.remote?this._loadRemoteContent():t.setContent(this._getContent()),this.emitTo("pb-popover-show",{source:this})},this._tippy=Yi(e,i)}}_loadRemoteContent(){const t=this.toAbsoluteURL(this.remote);fetch(t,{method:"GET",mode:"cors",credentials:"same-origin"}).then(t=>t.text()).then(t=>{this.alternate=t}).catch(t=>{console.error("<pb-popover> Error retrieving remote content: %o",t)})}static get styles(){return[I`
510
+ `}}customElements.define("pb-demo-snippet",ot);class st{static subscribe(t,e,i,n=!1){e&&!Array.isArray(e)&&(e=[e]);const r=document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i&&i(t,r)},{once:n})}static subscribeOnce(t,e=null){return e&&!Array.isArray(e)&&(e=[e]),new Promise(i=>{document.addEventListener(t,t=>{(e||t.detail&&t.detail.key)&&!(e&&t.detail&&t.detail.key&&e.indexOf(t.detail.key)>-1)||i(t)},{once:!0})})}static emit(t,e=null,i=null){const n=i||{};e&&(n.key=e);const r=new CustomEvent(t,{detail:n});document.dispatchEvent(r)}}window.pbEvents||(window.pbEvents=st);const at="1.43.3";class lt extends D{static get properties(){return Object.assign({version:{type:String,reflect:!0}},super.properties)}constructor(){super(),this.version=at}connectedCallback(){if(super.connectedCallback(),!this.version){const t=P("../package.json");fetch(t).then(t=>t.json()).then(t=>{this.version=t.version})}}render(){return R`<span>${this.version?this.version:"unknown"}</span>`}createRenderRoot(){return this}}customElements.define("pb-version",lt);var ct="top",ht="bottom",dt="right",pt="left",ut="auto",gt=[ct,ht,dt,pt],ft="start",mt="end",vt="clippingParents",bt="viewport",yt="popper",_t="reference",wt=gt.reduce((function(t,e){return t.concat([e+"-"+ft,e+"-"+mt])}),[]),xt=[].concat(gt,[ut]).reduce((function(t,e){return t.concat([e,e+"-"+ft,e+"-"+mt])}),[]),kt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function At(t){return t?(t.nodeName||"").toLowerCase():null}function zt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function St(t){return t instanceof zt(t).Element||t instanceof Element}function Ct(t){return t instanceof zt(t).HTMLElement||t instanceof HTMLElement}function Et(t){return"undefined"!=typeof ShadowRoot&&(t instanceof zt(t).ShadowRoot||t instanceof ShadowRoot)}function Mt(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Ct(r)&&At(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))}function Lt(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Ct(n)&&At(n)&&(Object.assign(n.style,o),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}}var Tt={name:"applyStyles",enabled:!0,phase:"write",fn:Mt,effect:Lt,requires:["computeStyles"]};function Ht(t){return t.split("-")[0]}function Ot(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function $t(t){var e=Ot(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Vt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Et(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Rt(t){return zt(t).getComputedStyle(t)}function It(t){return["table","td","th"].indexOf(At(t))>=0}function Pt(t){return((St(t)?t.ownerDocument:t.document)||window.document).documentElement}function Dt(t){return"html"===At(t)?t:t.assignedSlot||t.parentNode||(Et(t)?t.host:null)||Pt(t)}function Nt(t){return Ct(t)&&"fixed"!==Rt(t).position?t.offsetParent:null}function Ft(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ct(t)&&"fixed"===Rt(t).position)return null;for(var i=Dt(t);Ct(i)&&["html","body"].indexOf(At(i))<0;){var n=Rt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}function Bt(t){for(var e=zt(t),i=Nt(t);i&&It(i)&&"static"===Rt(i).position;)i=Nt(i);return i&&("html"===At(i)||"body"===At(i)&&"static"===Rt(i).position)?e:i||Ft(t)||e}function jt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var qt=Math.max,Ut=Math.min,Wt=Math.round;function Yt(t,e,i){return qt(t,Ut(e,i))}function Gt(){return{top:0,right:0,bottom:0,left:0}}function Xt(t){return Object.assign({},Gt(),t)}function Kt(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}var Qt=function(t,e){return Xt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Kt(t,gt))};function Zt(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,s=i.modifiersData.popperOffsets,a=Ht(i.placement),l=jt(a),c=[pt,dt].indexOf(a)>=0?"height":"width";if(o&&s){var h=Qt(r.padding,i),d=$t(o),p="y"===l?ct:pt,u="y"===l?ht:dt,g=i.rects.reference[c]+i.rects.reference[l]-s[l]-i.rects.popper[c],f=s[l]-i.rects.reference[l],m=Bt(o),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=g/2-f/2,y=h[p],_=v-d[c]-h[u],w=v/2-d[c]/2+b,x=Yt(y,w,_),k=l;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-w,e)}}function Jt(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Vt(e.elements.popper,n)&&(e.elements.arrow=n)}var te={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ee(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Wt(Wt(e*n)/n)||0,y:Wt(Wt(i*n)/n)||0}}function ie(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.offsets,s=t.position,a=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=!0===c?ee(o):"function"==typeof c?c(o):o,d=h.x,p=void 0===d?0:d,u=h.y,g=void 0===u?0:u,f=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),v=pt,b=ct,y=window;if(l){var _=Bt(i),w="clientHeight",x="clientWidth";_===zt(i)&&"static"!==Rt(_=Pt(i)).position&&(w="scrollHeight",x="scrollWidth"),_=_,r===ct&&(b=ht,g-=_[w]-n.height,g*=a?1:-1),r===pt&&(v=dt,p-=_[x]-n.width,p*=a?1:-1)}var k,A=Object.assign({position:s},l&&te);return a?Object.assign({},A,((k={})[b]=m?"0":"",k[v]=f?"0":"",k.transform=(y.devicePixelRatio||1)<2?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},A,((e={})[b]=m?g+"px":"",e[v]=f?p+"px":"",e.transform="",e))}function ne(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,o=i.adaptive,s=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:Ht(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ie(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ie(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var re={passive:!0};function oe(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=void 0===r||r,s=n.resize,a=void 0===s||s,l=zt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,re)})),a&&l.addEventListener("resize",i.update,re),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,re)})),a&&l.removeEventListener("resize",i.update,re)}}var se={left:"right",right:"left",bottom:"top",top:"bottom"};function ae(t){return t.replace(/left|right|bottom|top/g,(function(t){return se[t]}))}var le={start:"end",end:"start"};function ce(t){return t.replace(/start|end/g,(function(t){return le[t]}))}function he(t){var e=zt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function de(t){return Ot(Pt(t)).left+he(t).scrollLeft}function pe(t){var e=zt(t),i=Pt(t),n=e.visualViewport,r=i.clientWidth,o=i.clientHeight,s=0,a=0;return n&&(r=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=n.offsetLeft,a=n.offsetTop)),{width:r,height:o,x:s+de(t),y:a}}function ue(t){var e,i=Pt(t),n=he(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=qt(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=qt(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+de(t),l=-n.scrollTop;return"rtl"===Rt(r||i).direction&&(a+=qt(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function ge(t){var e=Rt(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function fe(t){return["html","body","#document"].indexOf(At(t))>=0?t.ownerDocument.body:Ct(t)&&ge(t)?t:fe(Dt(t))}function me(t,e){var i;void 0===e&&(e=[]);var n=fe(t),r=n===(null==(i=t.ownerDocument)?void 0:i.body),o=zt(n),s=r?[o].concat(o.visualViewport||[],ge(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(me(Dt(s)))}function ve(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function be(t){var e=Ot(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function ye(t,e){return e===bt?ve(pe(t)):Ct(e)?be(e):ve(ue(Pt(t)))}function _e(t){var e=me(Dt(t)),i=["absolute","fixed"].indexOf(Rt(t).position)>=0&&Ct(t)?Bt(t):t;return St(i)?e.filter((function(t){return St(t)&&Vt(t,i)&&"body"!==At(t)})):[]}function we(t,e,i){var n="clippingParents"===e?_e(t):[].concat(e),r=[].concat(n,[i]),o=r[0],s=r.reduce((function(e,i){var n=ye(t,i);return e.top=qt(n.top,e.top),e.right=Ut(n.right,e.right),e.bottom=Ut(n.bottom,e.bottom),e.left=qt(n.left,e.left),e}),ye(t,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function xe(t){return t.split("-")[1]}function ke(t){var e,i=t.reference,n=t.element,r=t.placement,o=r?Ht(r):null,s=r?xe(r):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case ct:e={x:a,y:i.y-n.height};break;case ht:e={x:a,y:i.y+i.height};break;case dt:e={x:i.x+i.width,y:l};break;case pt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?jt(o):null;if(null!=c){var h="y"===c?"height":"width";switch(s){case ft:e[c]=e[c]-(i[h]/2-n[h]/2);break;case mt:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function Ae(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,o=i.boundary,s=void 0===o?vt:o,a=i.rootBoundary,l=void 0===a?bt:a,c=i.elementContext,h=void 0===c?yt:c,d=i.altBoundary,p=void 0!==d&&d,u=i.padding,g=void 0===u?0:u,f=Xt("number"!=typeof g?g:Kt(g,gt)),m=h===yt?_t:yt,v=t.elements.reference,b=t.rects.popper,y=t.elements[p?m:h],_=we(St(y)?y:y.contextElement||Pt(t.elements.popper),s,l),w=Ot(v),x=ke({reference:w,element:b,strategy:"absolute",placement:r}),k=ve(Object.assign({},b,x)),A=h===yt?k:w,z={top:_.top-A.top+f.top,bottom:A.bottom-_.bottom+f.bottom,left:_.left-A.left+f.left,right:A.right-_.right+f.right},S=t.modifiersData.offset;if(h===yt&&S){var C=S[r];Object.keys(z).forEach((function(t){var e=[dt,ht].indexOf(t)>=0?1:-1,i=[ct,ht].indexOf(t)>=0?"y":"x";z[t]+=C[i]*e}))}return z}function ze(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?xt:l,h=xe(n),d=h?a?wt:wt.filter((function(t){return xe(t)===h})):gt,p=d.filter((function(t){return c.indexOf(t)>=0}));0===p.length&&(p=d);var u=p.reduce((function(e,i){return e[i]=Ae(t,{placement:i,boundary:r,rootBoundary:o,padding:s})[Ht(i)],e}),{});return Object.keys(u).sort((function(t,e){return u[t]-u[e]}))}function Se(t){if(Ht(t)===ut)return[];var e=ae(t);return[ce(t),e,ce(e)]}function Ce(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0===s||s,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,p=i.altBoundary,u=i.flipVariations,g=void 0===u||u,f=i.allowedAutoPlacements,m=e.options.placement,v=Ht(m),b=l||(v===m||!g?[ae(m)]:Se(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(Ht(i)===ut?ze(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:g,allowedAutoPlacements:f}):i)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,A=y[0],z=0;z<y.length;z++){var S=y[z],C=Ht(S),E=xe(S)===ft,M=[ct,ht].indexOf(C)>=0,L=M?"width":"height",T=Ae(e,{placement:S,boundary:h,rootBoundary:d,altBoundary:p,padding:c}),H=M?E?dt:pt:E?ht:ct;_[L]>w[L]&&(H=ae(H));var O=ae(H),$=[];if(o&&$.push(T[C]<=0),a&&$.push(T[H]<=0,T[O]<=0),$.every((function(t){return t}))){A=S,k=!1;break}x.set(S,$)}if(k)for(var V=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return A=e,"break"},R=g?3:1;R>0;R--){if("break"===V(R))break}e.placement!==A&&(e.modifiersData[n]._skip=!0,e.placement=A,e.reset=!0)}}function Ee(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Me(t){return[ct,dt,ht,pt].some((function(e){return t[e]>=0}))}function Le(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=Ae(e,{elementContext:"reference"}),a=Ae(e,{altBoundary:!0}),l=Ee(s,n),c=Ee(a,r,o),h=Me(l),d=Me(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}function Te(t,e,i){var n=Ht(t),r=[pt,ct].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[pt,dt].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function He(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=void 0===r?[0,0]:r,s=xt.reduce((function(t,i){return t[i]=Te(i,e.rects,o),t}),{}),a=s[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=s}function Oe(t){var e=t.state,i=t.name;e.modifiersData[i]=ke({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}function $e(t){return"x"===t?"y":"x"}function Ve(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=void 0===r||r,s=i.altAxis,a=void 0!==s&&s,l=i.boundary,c=i.rootBoundary,h=i.altBoundary,d=i.padding,p=i.tether,u=void 0===p||p,g=i.tetherOffset,f=void 0===g?0:g,m=Ae(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:h}),v=Ht(e.placement),b=xe(e.placement),y=!b,_=jt(v),w=$e(_),x=e.modifiersData.popperOffsets,k=e.rects.reference,A=e.rects.popper,z="function"==typeof f?f(Object.assign({},e.rects,{placement:e.placement})):f,S={x:0,y:0};if(x){if(o||a){var C="y"===_?ct:pt,E="y"===_?ht:dt,M="y"===_?"height":"width",L=x[_],T=x[_]+m[C],H=x[_]-m[E],O=u?-A[M]/2:0,$=b===ft?k[M]:A[M],V=b===ft?-A[M]:-k[M],R=e.elements.arrow,I=u&&R?$t(R):{width:0,height:0},P=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Gt(),D=P[C],N=P[E],F=Yt(0,k[M],I[M]),B=y?k[M]/2-O-F-D-z:$-F-D-z,j=y?-k[M]/2+O+F+N+z:V+F+N+z,q=e.elements.arrow&&Bt(e.elements.arrow),U=q?"y"===_?q.clientTop||0:q.clientLeft||0:0,W=e.modifiersData.offset?e.modifiersData.offset[e.placement][_]:0,Y=x[_]+B-W-U,G=x[_]+j-W;if(o){var X=Yt(u?Ut(T,Y):T,L,u?qt(H,G):H);x[_]=X,S[_]=X-L}if(a){var K="x"===_?ct:pt,Q="x"===_?ht:dt,Z=x[w],J=Z+m[K],tt=Z-m[Q],et=Yt(u?Ut(J,Y):J,Z,u?qt(tt,G):tt);x[w]=et,S[w]=et-Z}}e.modifiersData[n]=S}}function Re(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Ie(t){return t!==zt(t)&&Ct(t)?Re(t):he(t)}function Pe(t,e,i){void 0===i&&(i=!1);var n=Pt(e),r=Ot(t),o=Ct(e),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!i)&&(("body"!==At(e)||ge(n))&&(s=Ie(e)),Ct(e)?((a=Ot(e)).x+=e.clientLeft,a.y+=e.clientTop):n&&(a.x=de(n))),{x:r.left+s.scrollLeft-a.x,y:r.top+s.scrollTop-a.y,width:r.width,height:r.height}}function De(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}function Ne(t){var e=De(t);return kt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}function Fe(t){var e;return function(){return e||(e=new Promise((function(i){Promise.resolve().then((function(){e=void 0,i(t())}))}))),e}}function Be(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function qe(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ue(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,o=void 0===r?je:r;return function(t,e,i){void 0===i&&(i=o);var r={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},s=[],a=!1,l={state:r,setOptions:function(i){h(),r.options=Object.assign({},o,r.options,i),r.scrollParents={reference:St(t)?me(t):t.contextElement?me(t.contextElement):[],popper:me(e)};var s=Ne(Be([].concat(n,r.options.modifiers)));return r.orderedModifiers=s.filter((function(t){return t.enabled})),c(),l.update()},forceUpdate:function(){if(!a){var t=r.elements,e=t.reference,i=t.popper;if(qe(e,i)){r.rects={reference:Pe(e,Bt(i),"fixed"===r.options.strategy),popper:$t(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var o=r.orderedModifiers[n],s=o.fn,c=o.options,h=void 0===c?{}:c,d=o.name;"function"==typeof s&&(r=s({state:r,options:h,name:d,instance:l})||r)}else r.reset=!1,n=-1}}},update:Fe((function(){return new Promise((function(t){l.forceUpdate(),t(r)}))})),destroy:function(){h(),a=!0}};if(!qe(t,e))return l;function c(){r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var a=o({state:r,name:e,instance:l,options:n}),c=function(){};s.push(a||c)}}))}function h(){s.forEach((function(t){return t()})),s=[]}return l.setOptions(i).then((function(t){!a&&i.onFirstUpdate&&i.onFirstUpdate(t)})),l}}var We=Ue({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:oe,data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:Oe,data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ne,data:{}},Tt,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:He},{name:"flip",enabled:!0,phase:"main",fn:Ce,requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:Ve,requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:Zt,effect:Jt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Le}]}),Ye="tippy-box",Ge="tippy-content",Xe="tippy-backdrop",Ke="tippy-arrow",Qe="tippy-svg-arrow",Ze={passive:!0,capture:!0};function Je(t,e,i){if(Array.isArray(t)){var n=t[e];return null==n?Array.isArray(i)?i[e]:i:n}return t}function ti(t,e){var i={}.toString.call(t);return 0===i.indexOf("[object")&&i.indexOf(e+"]")>-1}function ei(t,e){return"function"==typeof t?t.apply(void 0,e):t}function ii(t,e){return 0===e?t:function(n){clearTimeout(i),i=setTimeout((function(){t(n)}),e)};var i}function ni(t){return t.split(/\s+/).filter(Boolean)}function ri(t){return[].concat(t)}function oi(t,e){-1===t.indexOf(e)&&t.push(e)}function si(t){return t.filter((function(e,i){return t.indexOf(e)===i}))}function ai(t){return t.split("-")[0]}function li(t){return[].slice.call(t)}function ci(t){return Object.keys(t).reduce((function(e,i){return void 0!==t[i]&&(e[i]=t[i]),e}),{})}function hi(){return document.createElement("div")}function di(t){return["Element","Fragment"].some((function(e){return ti(t,e)}))}function pi(t){return ti(t,"NodeList")}function ui(t){return ti(t,"MouseEvent")}function gi(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function fi(t){return di(t)?[t]:pi(t)?li(t):Array.isArray(t)?t:li(document.querySelectorAll(t))}function mi(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function vi(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function bi(t){var e,i=ri(t)[0];return(null==i||null==(e=i.ownerDocument)?void 0:e.body)?i.ownerDocument:document}function yi(t,e){var i=e.clientX,n=e.clientY;return t.every((function(t){var e=t.popperRect,r=t.popperState,o=t.props.interactiveBorder,s=ai(r.placement),a=r.modifiersData.offset;if(!a)return!0;var l="bottom"===s?a.top.y:0,c="top"===s?a.bottom.y:0,h="right"===s?a.left.x:0,d="left"===s?a.right.x:0,p=e.top-n+l>o,u=n-e.bottom-c>o,g=e.left-i+h>o,f=i-e.right-d>o;return p||u||g||f}))}function _i(t,e,i){var n=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[n](e,i)}))}var wi={isTouch:!1},xi=0;function ki(){wi.isTouch||(wi.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ai))}function Ai(){var t=performance.now();t-xi<20&&(wi.isTouch=!1,document.removeEventListener("mousemove",Ai)),xi=t}function zi(){var t=document.activeElement;if(gi(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Si(){document.addEventListener("touchstart",ki,Ze),window.addEventListener("blur",zi)}var Ci="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Ei=/MSIE |Trident\//.test(Ci),Mi={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Li={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Ti=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mi,{},Li),Hi=Object.keys(Ti),Oi=function(t){Object.keys(t).forEach((function(e){Ti[e]=t[e]}))};function $i(t){var e=(t.plugins||[]).reduce((function(e,i){var n=i.name,r=i.defaultValue;return n&&(e[n]=void 0!==t[n]?t[n]:r),e}),{});return Object.assign({},t,{},e)}function Vi(t,e){return(e?Object.keys($i(Object.assign({},Ti,{plugins:e}))):Hi).reduce((function(e,i){var n=(t.getAttribute("data-tippy-"+i)||"").trim();if(!n)return e;if("content"===i)e[i]=n;else try{e[i]=JSON.parse(n)}catch(t){e[i]=n}return e}),{})}function Ri(t,e){var i=Object.assign({},e,{content:ei(e.content,[t])},e.ignoreAttributes?{}:Vi(t,e.plugins));return i.aria=Object.assign({},Ti.aria,{},i.aria),i.aria={expanded:"auto"===i.aria.expanded?e.interactive:i.aria.expanded,content:"auto"===i.aria.content?e.interactive?null:"describedby":i.aria.content},i}var Ii=function(){return"innerHTML"};function Pi(t,e){t[Ii()]=e}function Di(t){var e=hi();return!0===t?e.className=Ke:(e.className=Qe,di(t)?e.appendChild(t):Pi(e,t)),e}function Ni(t,e){di(e.content)?(Pi(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?Pi(t,e.content):t.textContent=e.content)}function Fi(t){var e=t.firstElementChild,i=li(e.children);return{box:e,content:i.find((function(t){return t.classList.contains(Ge)})),arrow:i.find((function(t){return t.classList.contains(Ke)||t.classList.contains(Qe)})),backdrop:i.find((function(t){return t.classList.contains(Xe)}))}}function Bi(t){var e=hi(),i=hi();i.className=Ye,i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var n=hi();function r(i,n){var r=Fi(e),o=r.box,s=r.content,a=r.arrow;n.theme?o.setAttribute("data-theme",n.theme):o.removeAttribute("data-theme"),"string"==typeof n.animation?o.setAttribute("data-animation",n.animation):o.removeAttribute("data-animation"),n.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?o.setAttribute("role",n.role):o.removeAttribute("role"),i.content===n.content&&i.allowHTML===n.allowHTML||Ni(s,t.props),n.arrow?a?i.arrow!==n.arrow&&(o.removeChild(a),o.appendChild(Di(n.arrow))):o.appendChild(Di(n.arrow)):a&&o.removeChild(a)}return n.className=Ge,n.setAttribute("data-state","hidden"),Ni(n,t.props),e.appendChild(i),i.appendChild(n),r(t.props,t.props),{popper:e,onUpdate:r}}Bi.$$tippy=!0;var ji=1,qi=[],Ui=[];function Wi(t,e){var i,n,r,o,s,a,l,c=Ri(t,Object.assign({},Ti,{},$i(ci(e)))),h=!1,d=!1,p=!1,u=!1,g=[],f=ii(K,c.interactiveDebounce),m=ji++,v=null,b=si(c.plugins),y={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},_={id:m,reference:t,popper:hi(),popperInstance:v,props:c,state:y,plugins:b,clearDelayTimeouts:lt,setProps:ct,setContent:ht,show:dt,hide:pt,hideWithInteractivity:ut,enable:st,disable:at,unmount:gt,destroy:ft};if(!c.render)return _;var w=c.render(_),x=w.popper,k=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+_.id,_.popper=x,t._tippy=_,x._tippy=_;var A=b.map((function(t){return t.fn(_)})),z=t.hasAttribute("aria-expanded");return Y(),R(),O(),$("onCreate",[_]),c.showOnCreate&&rt(),x.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(t){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(L().addEventListener("mousemove",f),f(t))})),_;function S(){var t=_.props.touch;return Array.isArray(t)?t:[t,0]}function C(){return"hold"===S()[0]}function E(){var t;return!!(null==(t=_.props.render)?void 0:t.$$tippy)}function M(){return l||t}function L(){var t=M().parentNode;return t?bi(t):document}function T(){return Fi(x)}function H(t){return _.state.isMounted&&!_.state.isVisible||wi.isTouch||o&&"focus"===o.type?0:Je(_.props.delay,t?0:1,Ti.delay)}function O(){x.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",x.style.zIndex=""+_.props.zIndex}function $(t,e,i){var n;(void 0===i&&(i=!0),A.forEach((function(i){i[t]&&i[t].apply(void 0,e)})),i)&&(n=_.props)[t].apply(n,e)}function V(){var e=_.props.aria;if(e.content){var i="aria-"+e.content,n=x.id;ri(_.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(i);if(_.state.isVisible)t.setAttribute(i,e?e+" "+n:n);else{var r=e&&e.replace(n,"").trim();r?t.setAttribute(i,r):t.removeAttribute(i)}}))}}function R(){!z&&_.props.aria.expanded&&ri(_.props.triggerTarget||t).forEach((function(t){_.props.interactive?t.setAttribute("aria-expanded",_.state.isVisible&&t===M()?"true":"false"):t.removeAttribute("aria-expanded")}))}function I(){L().removeEventListener("mousemove",f),qi=qi.filter((function(t){return t!==f}))}function P(t){if(!(wi.isTouch&&(p||"mousedown"===t.type)||_.props.interactive&&x.contains(t.target))){if(M().contains(t.target)){if(wi.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else $("onClickOutside",[_,t]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||B())}}function D(){p=!0}function N(){p=!1}function F(){var t=L();t.addEventListener("mousedown",P,!0),t.addEventListener("touchend",P,Ze),t.addEventListener("touchstart",N,Ze),t.addEventListener("touchmove",D,Ze)}function B(){var t=L();t.removeEventListener("mousedown",P,!0),t.removeEventListener("touchend",P,Ze),t.removeEventListener("touchstart",N,Ze),t.removeEventListener("touchmove",D,Ze)}function j(t,e){U(t,(function(){!_.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}function q(t,e){U(t,e)}function U(t,e){var i=T().box;function n(t){t.target===i&&(_i(i,"remove",n),e())}if(0===t)return e();_i(i,"remove",s),_i(i,"add",n),s=n}function W(e,i,n){void 0===n&&(n=!1),ri(_.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,i,n),g.push({node:t,eventType:e,handler:i,options:n})}))}function Y(){C()&&(W("touchstart",X,{passive:!0}),W("touchend",Q,{passive:!0})),ni(_.props.trigger).forEach((function(t){if("manual"!==t)switch(W(t,X),t){case"mouseenter":W("mouseleave",Q);break;case"focus":W(Ei?"focusout":"blur",Z);break;case"focusin":W("focusout",Z)}}))}function G(){g.forEach((function(t){var e=t.node,i=t.eventType,n=t.handler,r=t.options;e.removeEventListener(i,n,r)})),g=[]}function X(t){var e,i=!1;if(_.state.isEnabled&&!J(t)&&!d){var n="focus"===(null==(e=o)?void 0:e.type);o=t,l=t.currentTarget,R(),!_.state.isVisible&&ui(t)&&qi.forEach((function(e){return e(t)})),"click"===t.type&&(_.props.trigger.indexOf("mouseenter")<0||h)&&!1!==_.props.hideOnClick&&_.state.isVisible?i=!0:rt(t),"click"===t.type&&(h=!i),i&&!n&&ot(t)}}function K(t){var e=t.target,i=M().contains(e)||x.contains(e);"mousemove"===t.type&&i||yi(nt().concat(x).map((function(t){var e,i=null==(e=t._tippy.popperInstance)?void 0:e.state;return i?{popperRect:t.getBoundingClientRect(),popperState:i,props:c}:null})).filter(Boolean),t)&&(I(),ot(t))}function Q(t){J(t)||_.props.trigger.indexOf("click")>=0&&h||(_.props.interactive?_.hideWithInteractivity(t):ot(t))}function Z(t){_.props.trigger.indexOf("focusin")<0&&t.target!==M()||_.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||ot(t)}function J(t){return!!wi.isTouch&&C()!==t.type.indexOf("touch")>=0}function tt(){et();var e=_.props,i=e.popperOptions,n=e.placement,r=e.offset,o=e.getReferenceClientRect,s=e.moveTransition,l=E()?Fi(x).arrow:null,c=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:t,h=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(E()){var i=T().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?i.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?i.setAttribute("data-"+t,""):i.removeAttribute("data-"+t)})),e.attributes.popper={}}}}];E()&&l&&h.push({name:"arrow",options:{element:l,padding:3}}),h.push.apply(h,(null==i?void 0:i.modifiers)||[]),_.popperInstance=We(c,x,Object.assign({},i,{placement:n,onFirstUpdate:a,modifiers:h}))}function et(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function it(){var t,e=_.props.appendTo,i=M();(t=_.props.interactive&&e===Ti.appendTo||"parent"===e?i.parentNode:ei(e,[i])).contains(x)||t.appendChild(x),tt()}function nt(){return li(x.querySelectorAll("[data-tippy-root]"))}function rt(t){_.clearDelayTimeouts(),t&&$("onTrigger",[_,t]),F();var e=H(!0),n=S(),r=n[0],o=n[1];wi.isTouch&&"hold"===r&&o&&(e=o),e?i=setTimeout((function(){_.show()}),e):_.show()}function ot(t){if(_.clearDelayTimeouts(),$("onUntrigger",[_,t]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&h)){var e=H(!1);e?n=setTimeout((function(){_.state.isVisible&&_.hide()}),e):r=requestAnimationFrame((function(){_.hide()}))}}else B()}function st(){_.state.isEnabled=!0}function at(){_.hide(),_.state.isEnabled=!1}function lt(){clearTimeout(i),clearTimeout(n),cancelAnimationFrame(r)}function ct(e){if(!_.state.isDestroyed){$("onBeforeUpdate",[_,e]),G();var i=_.props,n=Ri(t,Object.assign({},_.props,{},e,{ignoreAttributes:!0}));_.props=n,Y(),i.interactiveDebounce!==n.interactiveDebounce&&(I(),f=ii(K,n.interactiveDebounce)),i.triggerTarget&&!n.triggerTarget?ri(i.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):n.triggerTarget&&t.removeAttribute("aria-expanded"),R(),O(),k&&k(i,n),_.popperInstance&&(tt(),nt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)}))),$("onAfterUpdate",[_,e])}}function ht(t){_.setProps({content:t})}function dt(){var t=_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=wi.isTouch&&!_.props.touch,r=Je(_.props.duration,0,Ti.duration);if(!(t||e||i||n||M().hasAttribute("disabled")||($("onShow",[_],!1),!1===_.props.onShow(_)))){if(_.state.isVisible=!0,E()&&(x.style.visibility="visible"),O(),F(),_.state.isMounted||(x.style.transition="none"),E()){var o=T();mi([o.box,o.content],0)}a=function(){var t;if(_.state.isVisible&&!u){if(u=!0,x.offsetHeight,x.style.transition=_.props.moveTransition,E()&&_.props.animation){var e=T(),i=e.box,n=e.content;mi([i,n],r),vi([i,n],"visible")}V(),R(),oi(Ui,_),null==(t=_.popperInstance)||t.forceUpdate(),_.state.isMounted=!0,$("onMount",[_]),_.props.animation&&E()&&q(r,(function(){_.state.isShown=!0,$("onShown",[_])}))}},it()}}function pt(){var t=!_.state.isVisible,e=_.state.isDestroyed,i=!_.state.isEnabled,n=Je(_.props.duration,1,Ti.duration);if(!(t||e||i)&&($("onHide",[_],!1),!1!==_.props.onHide(_))){if(_.state.isVisible=!1,_.state.isShown=!1,u=!1,h=!1,E()&&(x.style.visibility="hidden"),I(),B(),O(),E()){var r=T(),o=r.box,s=r.content;_.props.animation&&(mi([o,s],n),vi([o,s],"hidden"))}V(),R(),_.props.animation?E()&&j(n,_.unmount):_.unmount()}}function ut(t){L().addEventListener("mousemove",f),oi(qi,f),f(t)}function gt(){_.state.isVisible&&_.hide(),_.state.isMounted&&(et(),nt().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x),Ui=Ui.filter((function(t){return t!==_})),_.state.isMounted=!1,$("onHidden",[_]))}function ft(){_.state.isDestroyed||(_.clearDelayTimeouts(),_.unmount(),G(),delete t._tippy,_.state.isDestroyed=!0,$("onDestroy",[_]))}}function Yi(t,e){void 0===e&&(e={});var i=Ti.plugins.concat(e.plugins||[]);Si();var n=Object.assign({},e,{plugins:i}),r=fi(t).reduce((function(t,e){var i=e&&Wi(e,n);return i&&t.push(i),t}),[]);return di(t)?r[0]:r}Yi.defaultProps=Ti,Yi.setDefaultProps=Oi,Yi.currentInput=wi;Object.assign({},Tt,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});function Gi(t){return t.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,e)=>0==+t?"":0===e?t.toLowerCase():t.toUpperCase()).replace("-","")}Yi.setDefaultProps({render:Bi});const Xi='\n .tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n }\n\n .tippy-iOS {\n cursor: pointer!important;\n -webkit-tap-highlight-color: transparent\n }\n\n [data-tippy-root] {\n max-width: calc(100vw - 10px)\n }\n\n .tippy-box {\n position: relative;\n background-color: #333;\n color: #fff;\n border-radius: 4px;\n font-size: var(--pb-popover-font-size, var(--pb-base-font-size, 14px));\n line-height: var(--pb-popover-line-height, var(--pb-base-line-height, 1.4));\n text-align: left;\n font-style: normal;\n font-weight: normal;\n outline: 0;\n transition-property: transform, visibility, opacity\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow {\n bottom: 0\n }\n\n .tippy-box[data-placement^=top]>.tippy-arrow:before {\n bottom: -7px;\n left: 0;\n border-width: 8px 8px 0;\n border-top-color: initial;\n transform-origin: center top\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow {\n top: 0\n }\n\n .tippy-box[data-placement^=bottom]>.tippy-arrow:before {\n top: -7px;\n left: 0;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n transform-origin: center bottom\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow {\n right: 0\n }\n\n .tippy-box[data-placement^=left]>.tippy-arrow:before {\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n right: -7px;\n transform-origin: center left\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow {\n left: 0\n }\n\n .tippy-box[data-placement^=right]>.tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n transform-origin: center right\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11)\n }\n\n .tippy-arrow {\n width: 16px;\n height: 16px;\n color: #333\n }\n\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-content {\n position: relative;\n padding: 5px 9px;\n z-index: 1;\n overflow: auto;\n max-height: var(--pb-popover-max-height, calc(100vh - 60px));\n min-height: var(--pb-popover-min-height, auto);\n max-width: var(--pb-popover-max-width, auto);\n min-width: var(--pb-popover-min-width, auto);\n color: var(--pb-popover-color);\n }\n',Ki='\n .tippy-box[data-theme~=light-border] {\n background-color: #fff;\n background-clip: padding-box;\n border: 1px solid rgba(0, 8, 16, .15);\n color: #333;\n box-shadow: 0 4px 14px -2px rgba(0, 8, 16, .08)\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after, .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n content: "";\n position: absolute;\n z-index: -1\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-arrow:after {\n border-color: transparent;\n border-style: solid\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after {\n border-top-color: rgba(0, 8, 16, .2);\n border-width: 7px 7px 0;\n top: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg {\n top: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after {\n top: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff;\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after {\n border-bottom-color: rgba(0, 8, 16, .2);\n border-width: 0 7px 7px;\n bottom: 17px;\n left: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg {\n bottom: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after {\n bottom: 17px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after {\n border-left-color: rgba(0, 8, 16, .2);\n border-width: 7px 0 7px 7px;\n left: 17px;\n top: 1px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg {\n left: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after {\n left: 12px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff;\n right: 16px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after {\n border-width: 7px 7px 7px 0;\n right: 17px;\n top: 1px;\n border-right-color: rgba(0, 8, 16, .2)\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg {\n right: 11px\n }\n\n .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after {\n right: 12px\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow {\n fill: #fff\n }\n\n .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after {\n background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);\n background-size: 16px 6px;\n width: 16px;\n height: 6px\n }\n',Qi="\n .tippy-box[data-theme~=light] {\n color: #26323d;\n box-shadow: 0 0 20px 4px rgba(154, 161, 177, .15), 0 4px 80px -8px rgba(36, 40, 47, .25), 0 4px 4px -2px rgba(91, 94, 105, .15);\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #fff\n }\n\n .tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-backdrop {\n background-color: #fff\n }\n\n .tippy-box[data-theme~=light]>.tippy-svg-arrow {\n fill: #fff\n }",Zi="\n .tippy-box[data-theme~=material] {\n background-color: #505355;\n font-weight: 600\n }\n\n .tippy-box[data-theme~=material][data-placement^=top]>.tippy-arrow:before {\n border-top-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=bottom]>.tippy-arrow:before {\n border-bottom-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=left]>.tippy-arrow:before {\n border-left-color: #505355\n }\n\n .tippy-box[data-theme~=material][data-placement^=right]>.tippy-arrow:before {\n border-right-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-backdrop {\n background-color: #505355\n }\n\n .tippy-box[data-theme~=material]>.tippy-svg-arrow {\n fill: #505355\n }\n",Ji="\n .tippy-box[data-theme~=translucent] {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-arrow {\n width: 14px;\n height: 14px\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=top]>.tippy-arrow:before {\n border-width: 7px 7px 0;\n border-top-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=bottom]>.tippy-arrow:before {\n border-width: 0 7px 7px;\n border-bottom-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=left]>.tippy-arrow:before {\n border-width: 7px 0 7px 7px;\n border-left-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent][data-placement^=right]>.tippy-arrow:before {\n border-width: 7px 7px 7px 0;\n border-right-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-backdrop {\n background-color: rgba(0, 0, 0, .7)\n }\n\n .tippy-box[data-theme~=translucent]>.tippy-svg-arrow {\n fill: rgba(0, 0, 0, .7)\n }\n";var tn=Object.freeze({__proto__:null,camelize:Gi,base:Xi,lightBorder:Ki,light:Qi,material:Zi,translucent:Ji});function en(t,e,i){if(!t.querySelector("#pb-popover-"+e)){const n=t.nodeType===Node.DOCUMENT_NODE?document.head:t;console.log("Loading tippy styles for theme %s into %o",e,n);const r=document.createElement("style");r.type="text/css",r.id="pb-popover-"+e,r.innerHTML=i,n.appendChild(r)}}function nn(t,e){if(en(t,"base",Xi),e&&"none"!==e){const i=Gi(e),n=tn[i];n&&en(t,i,n)}}class rn extends(N(D)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{for:{type:String},theme:{type:String},placement:{type:String},fallbackPlacement:{type:String,attribute:"fallback-placement"},persistent:{type:Boolean},trigger:{type:String},popupClass:{type:String,attribute:"popup-class"},remote:{type:String},stopPropagation:{type:Boolean,attribute:"stop-propagation"}})}constructor(){super(),this.persistent=!1,this.trigger=null,this.for=null,this.theme=null,this.placement=null,this.fallbackPlacement=null,this.popupClass=null,this.stopPropagation=!1,this._tippy=null,this._content=null}render(){return this.for?R`<div class="hidden"><slot></slot></div>`:R`<span id="link" part="trigger" class="${this.persistent?"persistent":""}"><slot name="default"><slot></slot></slot></span><span class="hidden"><slot name="alternate"></slot></span>`}disconnectedCallback(){super.disconnectedCallback(),this._tippy&&this._tippy.destroy(),this._observer&&this._observer.disconnect()}_checkCSSProperties(){this.theme||"none"===this.theme||(this.theme=V(this,"--pb-popover-theme","none")),this.placement||(this.placement=V(this,"--pb-popover-placement","auto")),this.fallbackPlacement||(this.fallbackPlacement=V(this,"--pb-popover-fallback-placement",null)),this.persistent||(this.persistent=V(this,"--pb-popover-persistent",!1)),this.trigger||(this.trigger=V(this,"--pb-popover-trigger",null))}_injectStyles(){this._checkCSSProperties(),nn(this.getRootNode(),this.theme)}_getContent(){if(this._content)return this._content;const t=this._getSlot();if(t){const e=document.createElement("div");return t.assignedNodes().forEach(t=>{e.appendChild(t.content?t.content.cloneNode(!0):t.cloneNode(!0))}),this._content=e,e}return null}_getSlot(){return this.for?this.shadowRoot.querySelector("slot"):this.shadowRoot.querySelector("[name=alternate]")}_registerMutationObserver(){const t=this._getSlot();this._observer=new MutationObserver(()=>{this.alternate=this._getContent(),console.log("alternate changed"),this.emitTo("pb-popover-changed",this.alternate)}),this._observer.observe(this,{subtree:!0,childList:!0,characterData:!0}),t&&t.assignedNodes().forEach(t=>{this._observer.observe(t.content?t.content:t,{subtree:!0,childList:!0,characterData:!0})})}get alternate(){return this._getContent()}set alternate(t){this._content=t,this._tippy&&this._tippy.setContent(this._content)}command(t,e){"disable"===t&&(this.disabled=e,this._tippy&&(e?this._tippy.disable():this._tippy.enable()))}firstUpdated(){super.firstUpdated(),this._injectStyles(),this._registerMutationObserver(),this.trigger||(this.trigger=this.persistent?"click":"mouseenter");const t=this.getRootNode();let e;if(this.for?(e=t.getElementById(this.for),e||console.error("<pb-popover> target element %s not found",this.for)):e=this.shadowRoot.getElementById("link"),e){const i={allowHTML:!0,appendTo:t.nodeType===Node.DOCUMENT_NODE?document.body:t,placement:this.placement,interactive:!0,ignoreAttributes:!0,boundary:"viewport",maxWidth:"none",touch:"hold",hideOnClick:!1,trigger:this.trigger};if(this.stopPropagation&&(i.onTrigger=(t,e)=>{e.stopPropagation()}),this.persistent&&(i.onClickOutside=(t,e)=>{t.hideWithInteractivity(e)}),this.theme&&"none"!==this.theme&&(i.theme=this.theme),this.fallbackPlacement){const t=this.fallbackPlacement.split(" ");i.popperOptions={modifiers:[{name:"flip",options:{fallbackPlacements:t}}]}}this.popupClass&&(i.onCreate=t=>{t.popper.classList.add(this.popupClass)}),i.onShow=t=>{this.remote?this._loadRemoteContent():t.setContent(this._getContent()),this.emitTo("pb-popover-show",{source:this,popup:t})},this._tippy=Yi(e,i)}}_loadRemoteContent(){const t=this.toAbsoluteURL(this.remote);fetch(t,{method:"GET",mode:"cors",credentials:"same-origin"}).then(t=>t.text()).then(t=>{this.alternate=t}).catch(t=>{console.error("<pb-popover> Error retrieving remote content: %o",t)})}static get styles(){return[I`
511
511
  :host {
512
512
  display: inline;
513
513
  }
@@ -573,7 +573,7 @@ const J=n`
573
573
  .loading {
574
574
  color: #808080;
575
575
  }
576
- `}}customElements.define("pb-formula",pn);class un extends(N(D)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{url:{type:String},expand:{type:Boolean},src:{type:String},container:{type:String},auto:{type:Boolean},loadOnce:{type:Boolean},fixLinks:{type:Boolean,attribute:"fix-links"},start:{type:Number},useLanguage:{type:Boolean,attribute:"use-language"},noCredentials:{type:Boolean,attribute:"no-credentials"},history:{type:Boolean},event:{type:String},userParams:{type:Object},silent:{type:Boolean}})}constructor(){super(),this.auto=!1,this.loadOnce=!1,this.history=!1,this.event="pb-load",this.loaded=!1,this.language=null,this.noCredentials=!0,this.silent=!1}connectedCallback(){super.connectedCallback(),this.subscribeTo(this.event,t=>{if(this.history&&t.detail&&t.detail.params){const e=t.detail.params.start;e&&(this.setParameter("start",e),this.pushHistory("pagination",{start:e}))}un.waitOnce("pb-page-ready",()=>{this.load(t)})}),this.history&&window.addEventListener("popstate",t=>{t.preventDefault(),t.state&&t.state.start&&t.state.start!==this.start&&(this.start=t.state.start,this.load())}),this.subscribeTo("pb-toggle",t=>{this.toggleFeature(t)}),this.subscribeTo("pb-i18n-update",t=>{const e=this.language&&this.language!==t.detail.language;this.language=t.detail.language,this.useLanguage&&e&&this.load()},[]),this.signalReady()}firstUpdated(){this.auto?(this.start=this.getParameter("start",this.start),un.waitOnce("pb-page-ready",t=>{t&&t.language&&(this.language=t.language),this.wait(()=>this.load())})):un.waitOnce("pb-page-ready",t=>{t&&t.language&&(this.language=t.language)})}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e&&e!==i)switch(t){case"url":case"userParams":case"start":this.auto&&this.loader&&un.waitOnce("pb-page-ready",()=>{this.wait(()=>this.load())})}}render(){return R`
576
+ `}}customElements.define("pb-formula",pn);class un extends(N(D)){static get properties(){return Object.assign(Object.assign({},super.properties),{},{url:{type:String},expand:{type:Boolean},src:{type:String},container:{type:String},auto:{type:Boolean},loadOnce:{type:Boolean},fixLinks:{type:Boolean,attribute:"fix-links"},start:{type:Number},useLanguage:{type:Boolean,attribute:"use-language"},noCredentials:{type:Boolean,attribute:"no-credentials"},history:{type:Boolean},event:{type:String},userParams:{type:Object},silent:{type:Boolean}})}constructor(){super(),this.auto=!1,this.loadOnce=!1,this.history=!1,this.event="pb-load",this.loaded=!1,this.language=null,this.noCredentials=!1,this.silent=!1}connectedCallback(){super.connectedCallback(),this.subscribeTo(this.event,t=>{if(this.history&&t.detail&&t.detail.params){const e=t.detail.params.start;e&&(this.setParameter("start",e),this.pushHistory("pagination",{start:e}))}un.waitOnce("pb-page-ready",()=>{this.load(t)})}),this.history&&window.addEventListener("popstate",t=>{t.preventDefault(),t.state&&t.state.start&&t.state.start!==this.start&&(this.start=t.state.start,this.load())}),this.subscribeTo("pb-toggle",t=>{this.toggleFeature(t)}),this.subscribeTo("pb-i18n-update",t=>{const e=this.language&&this.language!==t.detail.language;this.language=t.detail.language,this.useLanguage&&e&&this.load()},[]),this.signalReady()}firstUpdated(){this.auto?(this.start=this.getParameter("start",this.start),un.waitOnce("pb-page-ready",t=>{t&&t.language&&(this.language=t.language),this.wait(()=>this.load())})):un.waitOnce("pb-page-ready",t=>{t&&t.language&&(this.language=t.language)})}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),e&&e!==i)switch(t){case"url":case"userParams":case"start":this.auto&&this.loader&&un.waitOnce("pb-page-ready",()=>{this.wait(()=>this.load())})}}render(){return R`
577
577
  <slot></slot>
578
578
  <iron-ajax
579
579
  id="loadContent"
@@ -1428,7 +1428,7 @@
1428
1428
  "name": "no-credentials",
1429
1429
  "description": "Indicates whether or not cross-site Access-Control requests should be made.\nDefault is false.",
1430
1430
  "type": "boolean",
1431
- "default": "true"
1431
+ "default": "false"
1432
1432
  },
1433
1433
  {
1434
1434
  "name": "silent",
@@ -1640,7 +1640,7 @@
1640
1640
  "attribute": "no-credentials",
1641
1641
  "description": "Indicates whether or not cross-site Access-Control requests should be made.\nDefault is false.",
1642
1642
  "type": "boolean",
1643
- "default": "true"
1643
+ "default": "false"
1644
1644
  },
1645
1645
  {
1646
1646
  "name": "silent",
@@ -2026,7 +2026,9 @@
2026
2026
  {
2027
2027
  "name": "code-changed"
2028
2028
  }
2029
- ]
2029
+ ],
2030
+ "deprecated": true,
2031
+ "deprecatedMessage": "directly use `jinn-codemirror` instead, which is included in the tei-publisher-components \nbundle."
2030
2032
  },
2031
2033
  {
2032
2034
  "name": "pb-code-highlight",
@@ -2600,7 +2602,7 @@
2600
2602
  "name": "no-credentials",
2601
2603
  "description": "Indicates whether or not cross-site Access-Control requests should be made.\nDefault is false.",
2602
2604
  "type": "boolean",
2603
- "default": "true"
2605
+ "default": "false"
2604
2606
  },
2605
2607
  {
2606
2608
  "name": "silent",
@@ -2736,7 +2738,7 @@
2736
2738
  "attribute": "no-credentials",
2737
2739
  "description": "Indicates whether or not cross-site Access-Control requests should be made.\nDefault is false.",
2738
2740
  "type": "boolean",
2739
- "default": "true"
2741
+ "default": "false"
2740
2742
  },
2741
2743
  {
2742
2744
  "name": "silent",
@@ -5356,7 +5358,7 @@
5356
5358
  "name": "no-credentials",
5357
5359
  "description": "Indicates whether or not cross-site Access-Control requests should be made.\nDefault is false.",
5358
5360
  "type": "boolean",
5359
- "default": "true"
5361
+ "default": "false"
5360
5362
  },
5361
5363
  {
5362
5364
  "name": "silent",
@@ -5486,7 +5488,7 @@
5486
5488
  "attribute": "no-credentials",
5487
5489
  "description": "Indicates whether or not cross-site Access-Control requests should be made.\nDefault is false.",
5488
5490
  "type": "boolean",
5489
- "default": "true"
5491
+ "default": "false"
5490
5492
  },
5491
5493
  {
5492
5494
  "name": "silent",
@@ -8173,27 +8175,27 @@
8173
8175
  {
8174
8176
  "name": "pb-popover",
8175
8177
  "path": "./src/pb-popover.js",
8176
- "description": "Show a popover. It may either \n\n1. be attached to another element on the page which serves as a trigger. For this the\n`for` property must be specified and should contain the ID of the trigger element. \nThe whole content of the `pb-popover` element will be shown in the popup.\n\n2. if no `for` property is specified, the `pb-popover` acts itself as the trigger. The trigger\ntext is either taken from a slot named `default` - or the default slot (i.e. the content of the element).\nThe content to show in the popup should be supplied in a slot named `alternate`. It is recommended to use an\nHTML `template` to specify the alternate, so it is ignored by the browser:\n\n```html\n<pb-popover theme=\"material\">\n <span slot=\"default\">ipsum dolor sit amet</span>\n <template slot=\"alternate\">\n <p>At vero eos et <strong>accusam</strong> et justo duo dolores<br>\n et ea rebum.</p>\n </template>\n</pb-popover>\n```\n\nIf you would like popovers to contain nested popovers, choose approach 1 above and use `for`.\n\nIf property `persistent` is true, the popover will be shown\non click. Otherwise display a tooltip on mouseover.\n\n`pb-popover` uses the tippy.js library for the popup.\n\n## Styling\n\nWhen showing the popup, the popup content will either be added to the parent shadow DOM - if the `pb-popover`\nis located inside the shadow DOM of another element like `pb-view`; or the document body. This has an\neffect on where CSS styles can be defined: within a `pb-view`, only the styles specified inside the\nCSS attached to the ODD are applied.",
8178
+ "description": "Show a popover. It may either \r\n\r\n1. be attached to another element on the page which serves as a trigger. For this the\r\n`for` property must be specified and should contain the ID of the trigger element. \r\nThe whole content of the `pb-popover` element will be shown in the popup.\r\n\r\n2. if no `for` property is specified, the `pb-popover` acts itself as the trigger. The trigger\r\ntext is either taken from a slot named `default` - or the default slot (i.e. the content of the element).\r\nThe content to show in the popup should be supplied in a slot named `alternate`. It is recommended to use an\r\nHTML `template` to specify the alternate, so it is ignored by the browser:\r\n\r\n```html\r\n<pb-popover theme=\"material\">\r\n <span slot=\"default\">ipsum dolor sit amet</span>\r\n <template slot=\"alternate\">\r\n <p>At vero eos et <strong>accusam</strong> et justo duo dolores<br>\r\n et ea rebum.</p>\r\n </template>\r\n</pb-popover>\r\n```\r\n\r\nIf you would like popovers to contain nested popovers, choose approach 1 above and use `for`.\r\n\r\nIf property `persistent` is true, the popover will be shown\r\non click. Otherwise display a tooltip on mouseover.\r\n\r\n`pb-popover` uses the tippy.js library for the popup.\r\n\r\n## Styling\r\n\r\nWhen showing the popup, the popup content will either be added to the parent shadow DOM - if the `pb-popover`\r\nis located inside the shadow DOM of another element like `pb-view`; or the document body. This has an\r\neffect on where CSS styles can be defined: within a `pb-view`, only the styles specified inside the\r\nCSS attached to the ODD are applied.",
8177
8179
  "attributes": [
8178
8180
  {
8179
8181
  "name": "remote",
8180
- "description": "An optional URL to asynchronously load the popover's content from. Content will\nbe loaded after the popover is displayed. The downloaded HTML content will replace the text set via the alternate slot.",
8182
+ "description": "An optional URL to asynchronously load the popover's content from. Content will\rbe loaded after the popover is displayed. The downloaded HTML content will replace the text set via the alternate slot.",
8181
8183
  "type": "String"
8182
8184
  },
8183
8185
  {
8184
8186
  "name": "persistent",
8185
- "description": "If true, show the 'hand' cursor when hovering over the link; `trigger` will be set to 'click'\nunless defined otherwise; clicking anywhere on the page will close the popup.",
8187
+ "description": "If true, show the 'hand' cursor when hovering over the link; `trigger` will be set to 'click'\runless defined otherwise; clicking anywhere on the page will close the popup.",
8186
8188
  "type": "Boolean",
8187
8189
  "default": "false"
8188
8190
  },
8189
8191
  {
8190
8192
  "name": "trigger",
8191
- "description": "Defines one or more actions (space separated) which should cause\nthe popover to show. If property `persistent` is set, `trigger` will by default be set to `click`.",
8193
+ "description": "Defines one or more actions (space separated) which should cause\rthe popover to show. If property `persistent` is set, `trigger` will by default be set to `click`.",
8192
8194
  "type": "\"click\" | \"mouseenter\" | \"focus\" | \"focusin\""
8193
8195
  },
8194
8196
  {
8195
8197
  "name": "for",
8196
- "description": "The id of a trigger element (e.g. a link) to which the popover will\nbe attached. If not set, the trigger is the pb-popover itself.",
8198
+ "description": "The id of a trigger element (e.g. a link) to which the popover will\rbe attached. If not set, the trigger is the pb-popover itself.",
8197
8199
  "type": "String"
8198
8200
  },
8199
8201
  {
@@ -8203,19 +8205,25 @@
8203
8205
  },
8204
8206
  {
8205
8207
  "name": "placement",
8206
- "description": "Preferred placement of the popup.\nDefault is 'auto'.",
8208
+ "description": "Preferred placement of the popup.\rDefault is 'auto'.",
8207
8209
  "type": "\"auto\" | \"top\" | \"bottom\" | \"left\" | \"right\""
8208
8210
  },
8209
8211
  {
8210
8212
  "name": "fallback-placement",
8211
- "description": "Fallback placement if there is more space on another side.\nAccepts same values as `placement`. Separate by space if more than one.",
8213
+ "description": "Fallback placement if there is more space on another side.\rAccepts same values as `placement`. Separate by space if more than one.",
8212
8214
  "type": "String"
8213
8215
  },
8214
8216
  {
8215
8217
  "name": "popup-class",
8216
- "description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
8218
+ "description": "Additional class names which will be added to the popup element.\rUse this to apply a specific style to certain popovers, but not others.",
8217
8219
  "type": "String"
8218
8220
  },
8221
+ {
8222
+ "name": "stop-propagation",
8223
+ "description": "If you have nested pb-popover, set this property to\ronly show the innermost popover when triggered",
8224
+ "type": "Boolean",
8225
+ "default": "false"
8226
+ },
8219
8227
  {
8220
8228
  "name": "subscribe",
8221
8229
  "description": "The name of the channel to subscribe to. Only events on a channel corresponding\r\nto this property are listened to.",
@@ -8252,30 +8260,30 @@
8252
8260
  {
8253
8261
  "name": "remote",
8254
8262
  "attribute": "remote",
8255
- "description": "An optional URL to asynchronously load the popover's content from. Content will\nbe loaded after the popover is displayed. The downloaded HTML content will replace the text set via the alternate slot.",
8263
+ "description": "An optional URL to asynchronously load the popover's content from. Content will\rbe loaded after the popover is displayed. The downloaded HTML content will replace the text set via the alternate slot.",
8256
8264
  "type": "String"
8257
8265
  },
8258
8266
  {
8259
8267
  "name": "alternate",
8260
- "description": "Returns the root element of the alternate content currently shown in the popover.\nThis will be initialized from either the default slot or the slot with name 'alternate' (if present).\nThe returned element is always a `div` and can be modified."
8268
+ "description": "Returns the root element of the alternate content currently shown in the popover.\r\nThis will be initialized from either the default slot or the slot with name 'alternate' (if present).\r\nThe returned element is always a `div` and can be modified."
8261
8269
  },
8262
8270
  {
8263
8271
  "name": "persistent",
8264
8272
  "attribute": "persistent",
8265
- "description": "If true, show the 'hand' cursor when hovering over the link; `trigger` will be set to 'click'\nunless defined otherwise; clicking anywhere on the page will close the popup.",
8273
+ "description": "If true, show the 'hand' cursor when hovering over the link; `trigger` will be set to 'click'\runless defined otherwise; clicking anywhere on the page will close the popup.",
8266
8274
  "type": "Boolean",
8267
8275
  "default": "false"
8268
8276
  },
8269
8277
  {
8270
8278
  "name": "trigger",
8271
8279
  "attribute": "trigger",
8272
- "description": "Defines one or more actions (space separated) which should cause\nthe popover to show. If property `persistent` is set, `trigger` will by default be set to `click`.",
8280
+ "description": "Defines one or more actions (space separated) which should cause\rthe popover to show. If property `persistent` is set, `trigger` will by default be set to `click`.",
8273
8281
  "type": "\"click\" | \"mouseenter\" | \"focus\" | \"focusin\""
8274
8282
  },
8275
8283
  {
8276
8284
  "name": "for",
8277
8285
  "attribute": "for",
8278
- "description": "The id of a trigger element (e.g. a link) to which the popover will\nbe attached. If not set, the trigger is the pb-popover itself.",
8286
+ "description": "The id of a trigger element (e.g. a link) to which the popover will\rbe attached. If not set, the trigger is the pb-popover itself.",
8279
8287
  "type": "String"
8280
8288
  },
8281
8289
  {
@@ -8287,21 +8295,28 @@
8287
8295
  {
8288
8296
  "name": "placement",
8289
8297
  "attribute": "placement",
8290
- "description": "Preferred placement of the popup.\nDefault is 'auto'.",
8298
+ "description": "Preferred placement of the popup.\rDefault is 'auto'.",
8291
8299
  "type": "\"auto\" | \"top\" | \"bottom\" | \"left\" | \"right\""
8292
8300
  },
8293
8301
  {
8294
8302
  "name": "fallbackPlacement",
8295
8303
  "attribute": "fallback-placement",
8296
- "description": "Fallback placement if there is more space on another side.\nAccepts same values as `placement`. Separate by space if more than one.",
8304
+ "description": "Fallback placement if there is more space on another side.\rAccepts same values as `placement`. Separate by space if more than one.",
8297
8305
  "type": "String"
8298
8306
  },
8299
8307
  {
8300
8308
  "name": "popupClass",
8301
8309
  "attribute": "popup-class",
8302
- "description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
8310
+ "description": "Additional class names which will be added to the popup element.\rUse this to apply a specific style to certain popovers, but not others.",
8303
8311
  "type": "String"
8304
8312
  },
8313
+ {
8314
+ "name": "stopPropagation",
8315
+ "attribute": "stop-propagation",
8316
+ "description": "If you have nested pb-popover, set this property to\ronly show the innermost popover when triggered",
8317
+ "type": "Boolean",
8318
+ "default": "false"
8319
+ },
8305
8320
  {
8306
8321
  "name": "subscribe",
8307
8322
  "attribute": "subscribe",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teipublisher/pb-components",
3
- "version": "1.43.1",
3
+ "version": "1.43.3",
4
4
  "description": "Collection of webcomponents underlying TEI Publisher",
5
5
  "repository": "https://github.com/eeditiones/tei-publisher-components.git",
6
6
  "main": "index.html",