Mini Kabibi Habibi

Current Path : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/UXP/com.adobe.cclibrariespanel/
Upload File :
Current File : C:/Program Files/Adobe/Adobe Photoshop 2025/Required/UXP/com.adobe.cclibrariespanel/8490.bundle.js

"use strict";(self.webpackChunkCCLibraries=self.webpackChunkCCLibraries||[]).push([[8490],{59626:(t,e,n)=>{function i(t,e,n){const i=Array.isArray(n)?n:[n],o=t.getAttribute(e),s=o?o.split(/\s+/):[];return i.every((t=>s.indexOf(t)>-1))?()=>{}:(s.push(...i),t.setAttribute(e,s.join(" ")),()=>function(t,e,n){const i=t.getAttribute(e);let o=i?i.split(/\s+/):[];o=o.filter((t=>!n.find((e=>t===e)))),o.length?t.setAttribute(e,o.join(" ")):t.removeAttribute(e)}(t,e,i))}n.d(e,{q:()=>i})},34028:(t,e,n)=>{n.d(e,{D:()=>l,yr:()=>r,gl:()=>a,ZT:()=>s,Qs:()=>o});var i=n(28731);const o=new class{constructor(t={}){this.warmUpDelay=1e3,this.coolDownDelay=1e3,this.isWarm=!1,this.timeout=0,Object.assign(this,t)}async openTimer(t){if(this.cancelCooldownTimer(),!this.component||t!==this.component)return this.component&&(this.close(this.component),this.cancelCooldownTimer()),this.component=t,!this.isWarm&&(this.promise=new Promise((t=>{this.resolve=t,this.timeout=window.setTimeout((()=>{this.resolve&&(this.resolve(!1),this.isWarm=!0)}),this.warmUpDelay)})),this.promise);if(this.promise)return this.promise;throw new Error("Inconsistent state")}close(t){this.component&&this.component===t&&(this.resetCooldownTimer(),this.timeout>0&&(clearTimeout(this.timeout),this.timeout=0),this.resolve&&(this.resolve(!0),delete this.resolve),delete this.promise,delete this.component)}resetCooldownTimer(){this.isWarm&&(this.cooldownTimeout&&window.clearTimeout(this.cooldownTimeout),this.cooldownTimeout=window.setTimeout((()=>{this.isWarm=!1,delete this.cooldownTimeout}),this.coolDownDelay))}cancelCooldownTimer(){this.cooldownTimeout&&window.clearTimeout(this.cooldownTimeout),delete this.cooldownTimeout}},s=()=>{},r=(t,e,n)=>{const i=new AbortController,o=new Map,s=()=>{i.abort(),n()};let r,a;const l=requestAnimationFrame((()=>{r=requestAnimationFrame((()=>{a=requestAnimationFrame((()=>{s()}))}))})),c=e=>{e.target===t&&(o.set(e.propertyName,o.get(e.propertyName)-1),o.get(e.propertyName)||o.delete(e.propertyName),0===o.size&&s())};t.addEventListener("transitionrun",(e=>{e.target===t&&(o.has(e.propertyName)||o.set(e.propertyName,0),o.set(e.propertyName,o.get(e.propertyName)+1),cancelAnimationFrame(l),cancelAnimationFrame(r),cancelAnimationFrame(a))}),{signal:i.signal}),t.addEventListener("transitionend",c,{signal:i.signal}),t.addEventListener("transitioncancel",c,{signal:i.signal}),e()};function a(){return new Promise((t=>requestAnimationFrame((()=>t()))))}class l extends i.o{constructor(){super(...arguments),this.dispose=s,this.offset=0,this.willPreventClose=!1}async applyFocus(t,e){}get delayed(){return!1}set delayed(t){}get disabled(){return!1}set disabled(t){}get elementResolver(){return this._elementResolver}set elementResolver(t){this._elementResolver=t}async ensureOnDOM(t){}async makeTransition(t){return null}async manageDelay(t){}async manageDialogOpen(){}async managePopoverOpen(){}managePosition(){}get open(){return!1}set open(t){}get placementController(){return this._placementController}set placementController(t){this._placementController=t}requestSlottable(){}returnFocus(){}get state(){return"closed"}set state(t){}manuallyKeepOpen(){}static update(){const t=new CustomEvent("sp-update-overlays",{bubbles:!0,composed:!0,cancelable:!0});document.dispatchEvent(t)}static async open(t,e,i,o){await n.e(5501).then(n.bind(n,35501));const r=2===arguments.length,a=i||t,c=new this;let h=!1;c.dispose=()=>{c.addEventListener("sp-closed",(()=>{h||(d(),h=!0),requestAnimationFrame((()=>{c.remove()}))})),c.open=!1,c.dispose=s};const d=((t,e,{position:n,prepareCallback:i}={position:"beforeend"})=>{let{length:o}=t;if(0===o)return()=>t;let s=1,r=0;("afterbegin"===n||"afterend"===n)&&(s=-1,r=o-1);const a=new Array(o),l=new Array(o),c=document.createComment("placeholder for reparented element");do{const o=t[r];i&&(l[r]=i(o)),a[r]=c.cloneNode();const h=o.parentElement||o.getRootNode();h&&h!==o&&h.replaceChild(a[r],o),e.insertAdjacentElement(n,o),r+=s}while(--o>0);return function(){return function(t,e,n=[]){for(let i=0;i<e.length;++i){const o=e[i],s=t[i],r=s.parentElement||s.getRootNode();n[i]&&n[i](o),r&&r!==s&&r.replaceChild(o,s),delete t[i]}return e}(a,t,l)}})([a],c,{position:"beforeend",prepareCallback:t=>{const e=t.slot;return t.removeAttribute("slot"),()=>{t.slot=e}}});if(!r&&a&&o){const n=t,i=e,s=o;return l.applyOptions(c,{...s,delayed:s.delayed||a.hasAttribute("delayed"),trigger:s.virtualTrigger||n,type:"modal"===i?"modal":"hover"===i?"hint":"auto"}),n.insertAdjacentElement("afterend",c),await c.updateComplete,c.open=!0,c.dispose}const p=e;return c.append(a),l.applyOptions(c,{...p,delayed:p.delayed||a.hasAttribute("delayed")}),c.updateComplete.then((()=>{c.open=!0})),c}static applyOptions(t,e){var n,i;t.delayed=!!e.delayed,t.receivesFocus=null!=(n=e.receivesFocus)?n:"auto",t.triggerElement=e.trigger||null,t.type=e.type||"modal",t.offset=null!=(i=e.offset)?i:0,t.placement=e.placement,t.willPreventClose=!!e.notImmediatelyClosable}}},95125:(t,e,n)=>{n.d(e,{B:()=>o,y:()=>s});var i,o=((i=o||{})[i.click=0]="click",i[i.hover=1]="hover",i[i.longpress=2]="longpress",i);class s{constructor(t,{overlay:e,isPersistent:n,handleOverlayReady:i}){this.target=t,this.isLazilyOpen=!1,this.isPersistent=!1,this.isPersistent=!!n,this.handleOverlayReady=i,this.isPersistent&&this.init(),this.overlay=e}get activelyOpening(){return!1}get open(){var t,e;return null!=(e=null==(t=this.overlay)?void 0:t.open)?e:this.isLazilyOpen}set open(t){if(t!==this.open){if(this.isLazilyOpen=t,this.overlay)return void(this.overlay.open=t);t&&(customElements.whenDefined("sp-overlay").then((async()=>{const{Overlay:t}=await Promise.resolve().then(n.bind(n,31826));this.overlay=new t,this.overlay.open=!0})),n.e(5501).then(n.bind(n,35501)))}}get overlay(){return this._overlay}set overlay(t){var e;t&&this.overlay!==t&&(this.overlay&&this.overlay.removeController(this),this._overlay=t,this.overlay.addController(this),this.initOverlay(),this.prepareDescription(this.target),null==(e=this.handleOverlayReady)||e.call(this,this.overlay))}prepareDescription(t){}releaseDescription(){}shouldCompleteOpen(){}init(){}initOverlay(){}abort(){var t;this.releaseDescription(),null==(t=this.abortController)||t.abort()}hostConnected(){this.init()}hostDisconnected(){this.isPersistent||this.abort()}}},25182:(t,e,n)=>{function i(t){return"undefined"!=typeof window&&null!=window.navigator&&t.test(window.navigator.userAgent)}function o(t){return"undefined"!=typeof window&&null!=window.navigator&&t.test(window.navigator.platform)}function s(){return o(/^Mac/)}function r(){return o(/^iPhone/)||o(/^iPad/)||s()&&navigator.maxTouchPoints>1}function a(){return i(/Android/)}n.d(e,{v:()=>p,c:()=>u});var l=n(59626),c=n(52132),h=n(34028),d=n(95125);const p={touch:"Double tap and long press for additional options",keyboard:"Press Space or Alt+Down Arrow for additional options",mouse:"Click and hold for additional options"};class u extends d.y{constructor(){super(...arguments),this.type=d.B.longpress,this.longpressState=null,this.releaseDescription=h.ZT,this.handlePointerup=()=>{var t;clearTimeout(this.timeout),this.target&&(this.longpressState="opening"===(null==(t=this.overlay)?void 0:t.state)?"pressed":null,document.removeEventListener("pointerup",this.handlePointerup),document.removeEventListener("pointercancel",this.handlePointerup))}}get activelyOpening(){return"opening"===this.longpressState||"pressed"===this.longpressState}handleLongpress(){this.open=!0,this.longpressState="potential"===this.longpressState?"opening":"pressed"}handlePointerdown(t){!this.target||0!==t.button||(this.longpressState="potential",document.addEventListener("pointerup",this.handlePointerup),document.addEventListener("pointercancel",this.handlePointerup),"holdAffordance"in this.target)||(this.timeout=setTimeout((()=>{this.target&&this.target.dispatchEvent(new CustomEvent("longpress",{bubbles:!0,composed:!0,detail:{source:"pointer"}}))}),300))}handleKeydown(t){const{code:e,altKey:n}=t;n&&"ArrowDown"===e&&(t.stopPropagation(),t.stopImmediatePropagation())}handleKeyup(t){const{code:e,altKey:n}=t;if("Space"===e||n&&"ArrowDown"===e){if(!this.target)return;t.stopPropagation(),this.target.dispatchEvent(new CustomEvent("longpress",{bubbles:!0,composed:!0,detail:{source:"keyboard"}})),setTimeout((()=>{this.longpressState=null}))}}prepareDescription(t){if(this.releaseDescription!==h.ZT||!this.overlay.elements.length)return;const e=document.createElement("div");e.id=`longpress-describedby-descriptor-${(0,c.c)()}`;const n=r()||a()?"touch":"keyboard";e.textContent=p[n],e.slot="longpress-describedby-descriptor";const i=t.getRootNode();i===this.overlay.getRootNode()?this.overlay.append(e):(e.hidden=!("host"in i),t.insertAdjacentElement("afterend",e));const o=(0,l.q)(t,"aria-describedby",[e.id]);this.releaseDescription=()=>{o(),e.remove(),this.releaseDescription=h.ZT}}shouldCompleteOpen(){this.longpressState="pressed"===this.longpressState?null:this.longpressState}init(){var t;null==(t=this.abortController)||t.abort(),this.abortController=new AbortController;const{signal:e}=this.abortController;this.target.addEventListener("longpress",(()=>this.handleLongpress()),{signal:e}),this.target.addEventListener("pointerdown",(t=>this.handlePointerdown(t)),{signal:e}),this.prepareDescription(this.target),!this.target.holdAffordance&&(this.target.addEventListener("keydown",(t=>this.handleKeydown(t)),{signal:e}),this.target.addEventListener("keyup",(t=>this.handleKeyup(t)),{signal:e}))}}},31826:(t,e,n)=>{n.r(e),n.d(e,{LONGPRESS_INSTRUCTIONS:()=>St.v,Overlay:()=>Wt});var i=n(12827),o=n(19392);const s=Symbol("element resolver updated");class r{constructor(t,{selector:e}={selector:""}){this._element=null,this._selector="",this.mutationCallback=t=>{let e=!1;t.forEach((t=>{if(!e){if("childList"===t.type){const n=this.element&&[...t.removedNodes].includes(this.element),i=!!this.selector&&[...t.addedNodes].some(this.elementIsSelected);e=e||n||i}if("attributes"===t.type){const n=t.target===this.element,i=!!this.selector&&this.elementIsSelected(t.target);e=e||n||i}}})),e&&this.resolveElement()},this.elementIsSelected=t=>{var e;return this.selectorIsId?(null==t?void 0:t.id)===this.selectorAsId:null==(e=null==t?void 0:t.matches)?void 0:e.call(t,this.selector)},this.host=t,this.selector=e,this.observer=new MutationObserver(this.mutationCallback),this.host.addController(this)}get element(){return this._element}set element(t){if(t===this.element)return;const e=this.element;this._element=t,this.host.requestUpdate(s,e)}get selector(){return this._selector}set selector(t){t!==this.selector&&(this.releaseElement(),this._selector=t,this.resolveElement())}get selectorAsId(){return this.selector.slice(1)}get selectorIsId(){return!!this.selector&&this.selector.startsWith("#")}hostConnected(){this.resolveElement(),this.observer.observe(this.host.getRootNode(),{subtree:!0,childList:!0,attributes:!0})}hostDisconnected(){this.releaseElement(),this.observer.disconnect()}resolveElement(){if(!this.selector)return void this.releaseElement();const t=this.host.getRootNode();this.element=this.selectorIsId?t.getElementById(this.selectorAsId):t.querySelector(this.selector)}releaseElement(){this.element=null}}var a=n(30959),l=n(73719),c=n(52132),h=n(34028),d=n(6425),p=n(94697);class u extends Event{constructor(){super("beforetoggle",{bubbles:!1,composed:!1}),this.currentState="open",this.newState="closed"}}class g extends Event{constructor(){super("beforetoggle",{bubbles:!1,composed:!1}),this.currentState="closed",this.newState="open"}}class m extends Event{constructor(t,e,{publish:n,interaction:i,reason:o}){super(t,{bubbles:n,composed:n}),this.overlay=e,this.detail={interaction:i,reason:o}}}var f=n(56146);const v=CSS.supports("(overlay: auto)");function y(t){let e=!1;try{e=t.matches(":popover-open")}catch(t){}let n=!1;try{n=t.matches(":open")}catch(t){}return e||n}const w="showPopover"in document.createElement("div");const b=new class{constructor(){this.root=document.body,this.stack=[],this.handlePointerdown=t=>{this.pointerdownPath=t.composedPath(),this.lastOverlay=this.stack.at(-1)},this.handlePointerup=()=>{const t=this.pointerdownPath;if(this.pointerdownPath=void 0,!this.stack.length||null==t||!t.length)return;const e=this.stack.length-1,n=this.stack.filter(((n,i)=>!t.find((t=>t===n||t===(null==n?void 0:n.triggerElement)&&"hint"===(null==n?void 0:n.type)||i===e&&n!==this.lastOverlay&&"longpress"===n.triggerInteraction))&&!n.shouldPreventClose()&&"manual"!==n.type));n.reverse(),n.forEach((t=>{this.closeOverlay(t);let e=t.parentOverlayToForceClose;for(;e;)this.closeOverlay(e),e=e.parentOverlayToForceClose}))},this.handleBeforetoggle=t=>{const{target:e,newState:n}=t;"open"!==n&&this.closeOverlay(e)},this.handleKeydown=t=>{if("Escape"!==t.code||!this.stack.length)return;const e=this.stack.at(-1);"page"!==(null==e?void 0:e.type)?w||"manual"!==(null==e?void 0:e.type)&&e&&this.closeOverlay(e):t.preventDefault()},this.bindEvents()}get document(){return this.root.ownerDocument||document}bindEvents(){this.document.addEventListener("pointerdown",this.handlePointerdown),this.document.addEventListener("pointerup",this.handlePointerup),this.document.addEventListener("keydown",this.handleKeydown)}closeOverlay(t){const e=this.stack.indexOf(t);e>-1&&this.stack.splice(e,1),t.open=!1}overlaysByTriggerElement(t){return this.stack.filter((e=>e.triggerElement===t))}add(t){if(this.stack.includes(t)){const e=this.stack.indexOf(t);e>-1&&(this.stack.splice(e,1),this.stack.push(t))}else{if("auto"===t.type||"modal"===t.type||"page"===t.type){const e="sp-overlay-query-path",n=new Event(e,{composed:!0,bubbles:!0});t.addEventListener(e,(t=>{const e=t.composedPath();this.stack.forEach((t=>{!e.find((e=>e===t))&&"manual"!==t.type&&this.closeOverlay(t)}))}),{once:!0}),t.dispatchEvent(n)}else if("hint"===t.type){if(this.stack.some((e=>"manual"!==e.type&&e.triggerElement&&e.triggerElement===t.triggerElement)))return void(t.open=!1);this.stack.forEach((t=>{"hint"===t.type&&this.closeOverlay(t)}))}requestAnimationFrame((()=>{this.stack.push(t),t.addEventListener("beforetoggle",this.handleBeforetoggle,{once:!0})}))}}remove(t){this.closeOverlay(t)}},E=Math.min,x=Math.max,C=Math.round,P=Math.floor,O=t=>({x:t,y:t}),T={left:"right",right:"left",bottom:"top",top:"bottom"},L={start:"end",end:"start"};function A(t,e,n){return x(t,E(e,n))}function R(t,e){return"function"==typeof t?t(e):t}function D(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function k(t){return"x"===t?"y":"x"}function F(t){return"y"===t?"height":"width"}function N(t){return["top","bottom"].includes(D(t))?"y":"x"}function q(t){return k(N(t))}function _(t){return t.replace(/start|end/g,(t=>L[t]))}function B(t){return t.replace(/left|right|bottom|top/g,(t=>T[t]))}function I(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function $(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function H(t,e,n){let{reference:i,floating:o}=t;const s=N(e),r=q(e),a=F(r),l=D(e),c="y"===s,h=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[a]/2-o[a]/2;let u;switch(l){case"top":u={x:h,y:i.y-o.height};break;case"bottom":u={x:h,y:i.y+i.height};break;case"right":u={x:i.x+i.width,y:d};break;case"left":u={x:i.x-o.width,y:d};break;default:u={x:i.x,y:i.y}}switch(S(e)){case"start":u[r]-=p*(n&&c?-1:1);break;case"end":u[r]+=p*(n&&c?-1:1)}return u}async function M(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:s,rects:r,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:p=!1,padding:u=0}=R(e,t),g=I(u),m=a[p?"floating"===d?"reference":"floating":d],f=$(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:h,strategy:l})),v="floating"===d?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),w=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},b=$(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(f.top-b.top+g.top)/w.y,bottom:(b.bottom-f.bottom+g.bottom)/w.y,left:(f.left-b.left+g.left)/w.x,right:(b.right-f.right+g.right)/w.x}}function W(t){return V(t)?(t.nodeName||"").toLowerCase():"#document"}function U(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function z(t){var e;return null==(e=(V(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function V(t){return t instanceof Node||t instanceof U(t).Node}function j(t){return t instanceof Element||t instanceof U(t).Element}function K(t){return t instanceof HTMLElement||t instanceof U(t).HTMLElement}function Z(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof U(t).ShadowRoot)}function Q(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=tt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function X(t){return["table","td","th"].includes(W(t))}function Y(t){const e=G(),n=tt(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function G(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(W(t))}function tt(t){return U(t).getComputedStyle(t)}function et(t){return j(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function nt(t){if("html"===W(t))return t;const e=t.assignedSlot||t.parentNode||Z(t)&&t.host||z(t);return Z(e)?e.host:e}function it(t){const e=nt(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:K(e)&&Q(e)?e:it(e)}function ot(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=it(t),s=o===(null==(i=t.ownerDocument)?void 0:i.body),r=U(o);return s?e.concat(r,r.visualViewport||[],Q(o)?o:[],r.frameElement&&n?ot(r.frameElement):[]):e.concat(o,ot(o,[],n))}function st(t){const e=tt(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=K(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,a=C(n)!==s||C(i)!==r;return a&&(n=s,i=r),{width:n,height:i,$:a}}function rt(t){return j(t)?t:t.contextElement}function at(t){const e=rt(t);if(!K(e))return O(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:s}=st(e);let r=(s?C(n.width):n.width)/i,a=(s?C(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}const lt=O(0);function ct(t){const e=U(t);return G()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:lt}function ht(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),s=rt(t);let r=O(1);e&&(i?j(i)&&(r=at(i)):r=at(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==U(t))&&e}(s,n,i)?ct(s):O(0);let l=(o.left+a.x)/r.x,c=(o.top+a.y)/r.y,h=o.width/r.x,d=o.height/r.y;if(s){const t=U(s),e=i&&j(i)?U(i):i;let n=t,o=n.frameElement;for(;o&&i&&e!==n;){const t=at(o),e=o.getBoundingClientRect(),i=tt(o),s=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,r=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,h*=t.x,d*=t.y,l+=s,c+=r,n=U(o),o=n.frameElement}}return $({width:h,height:d,x:l,y:c})}const dt=[":popover-open",":modal"];function pt(t){return dt.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function ut(t){return ht(z(t)).left+et(t).scrollLeft}function gt(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=U(t),i=z(t),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;const t=G();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a,y:l}}(t,n);else if("document"===e)i=function(t){const e=z(t),n=et(t),i=t.ownerDocument.body,o=x(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=x(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+ut(t);const a=-n.scrollTop;return"rtl"===tt(i).direction&&(r+=x(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:a}}(z(t));else if(j(e))i=function(t,e){const n=ht(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=K(t)?at(t):O(1);return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:o*s.x,y:i*s.y}}(e,n);else{const n=ct(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return $(i)}function mt(t,e){const n=nt(t);return!(n===e||!j(n)||J(n))&&("fixed"===tt(n).position||mt(n,e))}function ft(t,e,n){const i=K(e),o=z(e),s="fixed"===n,r=ht(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=O(0);if(i||!i&&!s)if(("body"!==W(e)||Q(o))&&(a=et(e)),i){const t=ht(e,!0,s,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=ut(o));return{x:r.left+a.scrollLeft-l.x,y:r.top+a.scrollTop-l.y,width:r.width,height:r.height}}function vt(t){return"static"===tt(t).position}function yt(t,e){return K(t)&&"fixed"!==tt(t).position?e?e(t):t.offsetParent:null}function wt(t,e){const n=U(t);if(pt(t))return n;if(!K(t)){let e=nt(t);for(;e&&!J(e);){if(j(e)&&!vt(e))return e;e=nt(e)}return n}let i=yt(t,e);for(;i&&X(i)&&vt(i);)i=yt(i,e);return i&&J(i)&&vt(i)&&!Y(i)?n:i||function(t){let e=nt(t);for(;K(e)&&!J(e);){if(Y(e))return e;e=nt(e)}return null}(t)||n}const bt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const s="fixed"===o,r=z(i),a=!!e&&pt(e.floating);if(i===r||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=O(1);const h=O(0),d=K(i);if((d||!d&&!s)&&(("body"!==W(i)||Q(r))&&(l=et(i)),K(i))){const t=ht(i);c=at(i),h.x=t.x+i.clientLeft,h.y=t.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+h.x,y:n.y*c.y-l.scrollTop*c.y+h.y}},getDocumentElement:z,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s="clippingAncestors"===n?pt(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=ot(t,[],!1).filter((t=>j(t)&&"body"!==W(t))),o=null;const s="fixed"===tt(t).position;let r=s?nt(t):t;for(;j(r)&&!J(r);){const e=tt(r),n=Y(r);n||"fixed"!==e.position||(o=null),(s?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||Q(r)&&!n&&mt(t,r))?i=i.filter((t=>t!==r)):o=e,r=nt(r)}return e.set(t,i),i}(e,this._c):[].concat(n),r=[...s,i],a=r[0],l=r.reduce(((t,n)=>{const i=gt(e,n,o);return t.top=x(i.top,t.top),t.right=E(i.right,t.right),t.bottom=E(i.bottom,t.bottom),t.left=x(i.left,t.left),t}),gt(e,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:wt,getElementRects:async function(t){const e=this.getOffsetParent||wt,n=this.getDimensions,i=await n(t.floating);return{reference:ft(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=st(t);return{width:e,height:n}},getScale:at,isElement:j,isRTL:function(t){return"rtl"===tt(t).direction}};function Et(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=rt(t),h=o||s?[...c?ot(c):[],...ot(e)]:[];h.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));const d=c&&a?function(t,e){let n,i=null;const o=z(t);function s(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function r(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),s();const{left:c,top:h,width:d,height:p}=t.getBoundingClientRect();if(a||e(),!d||!p)return;const u={rootMargin:-P(h)+"px "+-P(o.clientWidth-(c+d))+"px "+-P(o.clientHeight-(h+p))+"px "+-P(c)+"px",threshold:x(0,E(1,l))||1};let g=!0;function m(t){const e=t[0].intersectionRatio;if(e!==l){if(!g)return r();e?r(!1,e):n=setTimeout((()=>{r(!1,1e-7)}),1e3)}g=!1}try{i=new IntersectionObserver(m,{...u,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(m,u)}i.observe(t)}(!0),s}(c,n):null;let p,u=-1,g=null;r&&(g=new ResizeObserver((t=>{let[i]=t;i&&i.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame((()=>{var t;null==(t=g)||t.observe(e)}))),n()})),c&&!l&&g.observe(c),g.observe(e));let m=l?ht(t):null;return l&&function e(){const i=ht(t);!m||i.x===m.x&&i.y===m.y&&i.width===m.width&&i.height===m.height||n();m=i,p=requestAnimationFrame(e)}(),n(),()=>{var t;h.forEach((t=>{o&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=g)||t.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const xt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:s,placement:r,middlewareData:a}=e,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,s=await(null==i.isRTL?void 0:i.isRTL(o.floating)),r=D(n),a=S(n),l="y"===N(n),c=["left","top"].includes(r)?-1:1,h=s&&l?-1:1,d=R(e,t);let{mainAxis:p,crossAxis:u,alignmentAxis:g}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&"number"==typeof g&&(u="end"===a?-1*g:g),l?{x:u*h,y:p*c}:{x:p*c,y:u*h}}(e,t);return r===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}},Ct=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=R(t,e),c={x:n,y:i},h=await M(e,l),d=N(D(o)),p=k(d);let u=c[p],g=c[d];if(s){const t="y"===p?"bottom":"right";u=A(u+h["y"===p?"top":"left"],u,u-h[t])}if(r){const t="y"===d?"bottom":"right";g=A(g+h["y"===d?"top":"left"],g,g-h[t])}const m=a.fn({...e,[p]:u,[d]:g});return{...m,data:{x:m.x-n,y:m.y-i}}}}},Pt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...f}=R(t,e);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};const v=D(o),y=D(a)===a,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(y||!m?[B(a)]:function(t){const e=B(t);return[_(t),e,_(e)]}(a));p||"none"===g||b.push(...function(t,e,n,i){const o=S(t);let s=function(t,e,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?s:r;default:return[]}}(D(t),"start"===n,i);return o&&(s=s.map((t=>t+"-"+o)),e&&(s=s.concat(s.map(_)))),s}(a,m,g,w));const E=[a,...b],x=await M(e,f),C=[];let P=(null==(i=s.flip)?void 0:i.overflows)||[];if(h&&C.push(x[v]),d){const t=function(t,e,n){void 0===n&&(n=!1);const i=S(t),o=q(t),s=F(o);let r="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=B(r)),[r,B(r)]}(o,r,w);C.push(x[t[0]],x[t[1]])}if(P=[...P,{placement:o,overflows:C}],!C.every((t=>t<=0))){var O,T;const t=((null==(O=s.flip)?void 0:O.index)||0)+1,e=E[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(T=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:T.placement;if(!n)switch(u){case"bestFit":{var L;const t=null==(L=P.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:L[0];t&&(n=t);break}case"initialPlacement":n=a}if(o!==n)return{reset:{placement:n}}}return{}}}},Ot=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){const{placement:n,rects:i,platform:o,elements:s}=e,{apply:r=(()=>{}),...a}=R(t,e),l=await M(e,a),c=D(n),h=S(n),d="y"===N(n),{width:p,height:u}=i.floating;let g,m;"top"===c||"bottom"===c?(g=c,m=h===(await(null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(m=c,g="end"===h?"top":"bottom");const f=u-l.top-l.bottom,v=p-l.left-l.right,y=E(u-l[g],f),w=E(p-l[m],v),b=!e.middlewareData.shift;let C=y,P=w;if(d?P=h||b?E(w,v):v:C=h||b?E(y,f):f,b&&!h){const t=x(l.left,0),e=x(l.right,0),n=x(l.top,0),i=x(l.bottom,0);d?P=p-2*(0!==t||0!==e?t+e:x(l.left,l.right)):C=u-2*(0!==n||0!==i?n+i:x(l.top,l.bottom))}await r({...e,availableWidth:P,availableHeight:C});const O=await o.getDimensions(s.floating);return p!==O.width||u!==O.height?{reset:{rects:!0}}:{}}}},Tt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:s,platform:r,elements:a,middlewareData:l}=e,{element:c,padding:h=0}=R(t,e)||{};if(null==c)return{};const d=I(h),p={x:n,y:i},u=q(o),g=F(u),m=await r.getDimensions(c),f="y"===u,v=f?"top":"left",y=f?"bottom":"right",w=f?"clientHeight":"clientWidth",b=s.reference[g]+s.reference[u]-p[u]-s.floating[g],x=p[u]-s.reference[u],C=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c));let P=C?C[w]:0;P&&await(null==r.isElement?void 0:r.isElement(C))||(P=a.floating[w]||s.floating[g]);const O=b/2-x/2,T=P/2-m[g]/2-1,L=E(d[v],T),D=E(d[y],T),k=L,N=P-m[g]-D,_=P/2-m[g]/2+O,B=A(k,_,N),$=!l.arrow&&null!=S(o)&&_!==B&&s.reference[g]/2-(_<k?L:D)-m[g]/2<0,H=$?_<k?_-k:_-N:0;return{[u]:p[u]+H,data:{[u]:B,centerOffset:_-B-H,...$&&{alignmentOffset:H}},reset:$}}}),Lt=(t,e,n)=>{const i=new Map,o={platform:bt,...n},s={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,a=s.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:h,y:d}=H(c,i,l),p=i,u={},g=0;for(let n=0;n<a.length;n++){const{name:s,fn:m}=a[n],{x:f,y:v,data:y,reset:w}=await m({x:h,y:d,initialPlacement:i,placement:p,strategy:o,middlewareData:u,rects:c,platform:r,elements:{reference:t,floating:e}});h=null!=f?f:h,d=null!=v?v:d,u={...u,[s]:{...u[s],...y}},w&&g<=50&&(g++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await r.getElementRects({reference:t,floating:e,strategy:o}):w.rects),({x:h,y:d}=H(c,p,l))),n=-1)}return{x:h,y:d,placement:p,strategy:o,middlewareData:u}})(t,e,{...o,platform:s})};function At(t){if(void 0===t)return 0;const e=window.devicePixelRatio||1;return Math.round(t*e)/e}const Rt=t=>{var e;return null!=(e={left:["right","bottom","top"],"left-start":["right-start","bottom","top"],"left-end":["right-end","bottom","top"],right:["left","bottom","top"],"right-start":["left-start","bottom","top"],"right-end":["left-end","bottom","top"],top:["bottom","left","right"],"top-start":["bottom-start","left","right"],"top-end":["bottom-end","left","right"],bottom:["top","left","right"],"bottom-start":["top-start","left","right"],"bottom-end":["top-end","left","right"]}[t])?e:[t]};Symbol("placement updated");class Dt{constructor(t){this.originalPlacements=new WeakMap,this.allowPlacementUpdate=!1,this.closeForAncestorUpdate=()=>{!this.allowPlacementUpdate&&"modal"!==this.options.type&&this.cleanup&&this.target.dispatchEvent(new Event("close",{bubbles:!0})),this.allowPlacementUpdate=!1},this.updatePlacement=()=>{this.computePlacement()},this.resetOverlayPosition=()=>{!this.target||!this.options||(this.clearOverlayPosition(),this.host.offsetHeight,this.computePlacement())},this.host=t,this.host.addController(this)}async placeOverlay(t=this.target,e=this.options){if(this.target=t,this.options=e,!t||!e)return;const n=Et(e.trigger,t,this.closeForAncestorUpdate,{ancestorResize:!1,elementResize:!1,layoutShift:!1}),i=Et(e.trigger,t,this.updatePlacement,{ancestorScroll:!1});this.cleanup=()=>{var t;null==(t=this.host.elements)||t.forEach((t=>{t.addEventListener("sp-closed",(()=>{const e=this.originalPlacements.get(t);e&&t.setAttribute("placement",e),this.originalPlacements.delete(t)}),{once:!0})})),n(),i()}}async computePlacement(){var t,e;const{options:n,target:i}=this;await(document.fonts?document.fonts.ready:Promise.resolve());const o=n.trigger instanceof HTMLElement?Pt():Pt({padding:8,fallbackPlacements:Rt(n.placement)}),[s=0,r=0]=Array.isArray(null==n?void 0:n.offset)?n.offset:[n.offset,0],a=null==(t=this.host.elements.find((t=>t.tipElement)))?void 0:t.tipElement,l=[xt({mainAxis:s,crossAxis:r}),Ct({padding:8}),o,Ot({padding:8,apply:({availableWidth:t,availableHeight:e,rects:{floating:n}})=>{const o=Math.max(100,Math.floor(e)),s=n.height;this.initialHeight=this.isConstrained&&this.initialHeight||s,this.isConstrained=s<this.initialHeight||o<=s;const r=this.isConstrained?`${o}px`:"";Object.assign(i.style,{maxWidth:`${Math.floor(t)}px`,maxHeight:r})}}),...a?[Tt({element:a,padding:n.tipPadding||8})]:[]],{x:c,y:h,placement:d,middlewareData:p}=await Lt(n.trigger,i,{placement:n.placement,middleware:l,strategy:"fixed"});if(Object.assign(i.style,{top:"0px",left:"0px",translate:`${At(c)}px ${At(h)}px`}),i.setAttribute("actual-placement",d),null==(e=this.host.elements)||e.forEach((t=>{this.originalPlacements.has(t)||this.originalPlacements.set(t,t.getAttribute("placement")),t.setAttribute("placement",d)})),a&&p.arrow){const{x:t,y:e}=p.arrow;Object.assign(a.style,{top:d.startsWith("right")||d.startsWith("left")?"0px":"",left:d.startsWith("bottom")||d.startsWith("top")?"0px":"",translate:`${At(t)}px ${At(e)}px`})}}clearOverlayPosition(){this.target&&(this.target.style.removeProperty("max-height"),this.target.style.removeProperty("max-width"),this.initialHeight=void 0,this.isConstrained=!1)}hostConnected(){document.addEventListener("sp-update-overlays",this.resetOverlayPosition)}hostUpdated(){var t;this.host.open||(null==(t=this.cleanup)||t.call(this),this.cleanup=void 0)}hostDisconnected(){var t;null==(t=this.cleanup)||t.call(this),this.cleanup=void 0,document.removeEventListener("sp-update-overlays",this.resetOverlayPosition)}}var St=n(25182),kt=n(11273),Ft=n(59052);const Nt=i.iv`
    :host{pointer-events:none;--swc-overlay-animation-distance:var(--spectrum-spacing-100);display:contents}:host(:has(>sp-tooltip-1-0-111)){--swc-overlay-animation-distance:var(--spectrum-tooltip-animation-distance)}.dialog{box-sizing:border-box;--sp-overlay-open-1-0-111:true;background:0 0;border:0;max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px);margin:0;padding:0;display:flex;position:fixed;inset:0 auto auto 0;overflow:visible;opacity:1!important}.dialog:not([is-visible]){display:none}.dialog:focus{outline:none}dialog:modal{--mod-popover-filter:var(--spectrum-popover-filter)}:host(:not([open])) .dialog{--sp-overlay-open-1-0-111:false}.dialog::backdrop{display:none}.dialog:before{content:"";position:absolute;inset:-999em;pointer-events:auto!important}.dialog:not(.not-immediately-closable):before{display:none}.dialog>div{width:100%}::slotted(*){pointer-events:auto;visibility:visible!important}::slotted(sp-popover-1-0-111){position:static}.dialog:not([actual-placement])[placement*=top]{padding-block:var(--swc-overlay-animation-distance);margin-top:var(--swc-overlay-animation-distance)}.dialog:not([actual-placement])[placement*=right]{padding-inline:var(--swc-overlay-animation-distance);margin-left:calc(-1*var(--swc-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=bottom]{padding-block:var(--swc-overlay-animation-distance);margin-top:calc(-1*var(--swc-overlay-animation-distance))}.dialog:not([actual-placement])[placement*=left]{padding-inline:var(--swc-overlay-animation-distance);margin-left:var(--swc-overlay-animation-distance)}.dialog[actual-placement*=top]{padding-block:var(--swc-overlay-animation-distance);margin-top:var(--swc-overlay-animation-distance)}.dialog[actual-placement*=right]{padding-inline:var(--swc-overlay-animation-distance);margin-left:calc(-1*var(--swc-overlay-animation-distance))}.dialog[actual-placement*=bottom]{padding-block:var(--swc-overlay-animation-distance);margin-top:calc(-1*var(--swc-overlay-animation-distance))}.dialog[actual-placement*=left]{padding-inline:var(--swc-overlay-animation-distance);margin-left:var(--swc-overlay-animation-distance)}slot[name=longpress-describedby-descriptor]{display:none}@supports selector(:open){.dialog{opacity:0}.dialog:open{opacity:1;--mod-popover-filter:var(--spectrum-popover-filter)}}@supports selector(:popover-open){.dialog{opacity:0}.dialog:popover-open{opacity:1;--mod-popover-filter:var(--spectrum-popover-filter)}}@supports (overlay:auto){.dialog{transition:all var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s)),translate 0s,display var(--mod-overlay-animation-duration,var(--spectrum-animation-duration-100,.13s));transition-behavior:allow-discrete;display:none}.dialog:popover-open,.dialog:modal{display:flex}}@supports (not selector(:open)) and (not selector(:popover-open)){:host:not([open]) .dialog{pointer-events:none}.dialog[actual-placement]{z-index:calc(var(--swc-overlay-z-index-base,1000) + var(--swc-overlay-open-count))}}
`;var qt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,Bt=(t,e,n,i)=>{for(var o,s=i>1?void 0:i?_t(e,n):e,r=t.length-1;r>=0;r--)(o=t[r])&&(s=(i?o(e,n,s):o(s))||s);return i&&s&&qt(e,n,s),s};const It="showPopover"in document.createElement("div");let $t=function(t){return class extends t{async manageDialogOpen(){const t=this.open;if(await this.managePosition(),this.open!==t)return;const e=await this.dialogMakeTransition(t);this.open===t&&await this.dialogApplyFocus(t,e)}async dialogMakeTransition(t){let e=null;const n=(n,o)=>async()=>{if(n.open=t,!t){const t=()=>{n.removeEventListener("close",t),i(n,o)};n.addEventListener("close",t)}if(o>0)return;const s=t?g:u;this.dispatchEvent(new s),t&&(n.matches(f.N)&&(e=n),e=e||(0,d.i)(n),e||n.querySelectorAll("slot").forEach((t=>{e||(e=(0,d.l)(t))})),this.isConnected&&!this.dialogEl.open&&this.dialogEl.showModal())},i=(e,n)=>()=>{if(this.open!==t)return;const i=t?"sp-opened":"sp-closed";if(n>0)return void e.dispatchEvent(new m(i,this,{interaction:this.type,publish:!1}));if(!this.isConnected||t!==this.open)return;const o=async()=>{const n=this.triggerElement instanceof p.U;this.dispatchEvent(new m(i,this,{interaction:this.type,publish:n})),e.dispatchEvent(new m(i,this,{interaction:this.type,publish:!1})),this.triggerElement&&!n&&this.triggerElement.dispatchEvent(new m(i,this,{interaction:this.type,publish:!0})),this.state=t?"opened":"closed",this.returnFocus(),await(0,h.gl)(),await(0,h.gl)(),t===this.open&&!1===t&&this.requestSlottable()};!t&&this.dialogEl.open?(this.dialogEl.addEventListener("close",(()=>{o()}),{once:!0}),this.dialogEl.close()):o()};return this.elements.forEach(((t,e)=>{(0,h.yr)(t,n(t,e),i(t,e))})),e}async dialogApplyFocus(t,e){this.applyFocus(t,e)}}}(h.D);var Ht;It?(Ht=$t,$t=class extends Ht{async manageDelay(t){!1!==t&&t===this.open?this.delayed&&await h.Qs.openTimer(this)&&(this.open=!t):h.Qs.close(this)}async shouldHidePopover(t){if(t&&this.open!==t)return;const e=async({newState:t}={})=>{"open"!==t&&await this.placementController.resetOverlayPosition()};y(this.dialogEl)?this.dialogEl.addEventListener("toggle",e,{once:!0}):e()}async shouldShowPopover(t){let e=!1;try{e=this.dialogEl.matches(":popover-open")}catch(t){}let n=!1;try{n=this.dialogEl.matches(":open")}catch(t){}t&&this.open===t&&!e&&!n&&this.isConnected&&(this.dialogEl.showPopover(),await this.managePosition())}async ensureOnDOM(t){await(0,h.gl)(),v||await this.shouldHidePopover(t),await this.shouldShowPopover(t),await(0,h.gl)()}async makeTransition(t){if(this.open!==t)return null;let e=null;const n=(n,i)=>()=>{if(n.open=t,0===i){const e=t?g:u;this.dispatchEvent(new e)}t&&(n.matches(f.N)&&(e=n),e=e||(0,d.i)(n),!e)&&n.querySelectorAll("slot").forEach((t=>{e||(e=(0,d.l)(t))}))},i=(e,n)=>async()=>{if(this.open!==t)return;const i=t?"sp-opened":"sp-closed";if(n>0)return void e.dispatchEvent(new m(i,this,{interaction:this.type,publish:!1}));const o=async()=>{if(this.open!==t)return;await(0,h.gl)();const n=this.triggerElement instanceof p.U;this.dispatchEvent(new m(i,this,{interaction:this.type,publish:n})),e.dispatchEvent(new m(i,this,{interaction:this.type,publish:!1})),this.triggerElement&&!n&&this.triggerElement.dispatchEvent(new m(i,this,{interaction:this.type,publish:!0})),this.state=t?"opened":"closed",this.returnFocus(),await(0,h.gl)(),await(0,h.gl)(),t===this.open&&!1===t&&this.requestSlottable()};if(this.open!==t)return;const s=y(this.dialogEl);!0!==t&&s&&this.isConnected?(this.dialogEl.addEventListener("beforetoggle",(()=>{o()}),{once:!0}),this.dialogEl.hidePopover()):o()};return this.elements.forEach(((t,e)=>{(0,h.yr)(t,n(t,e),i(t,e))})),e}}):$t=function(t){return class extends t{async managePopoverOpen(){await this.managePosition()}async manageDelay(t){!1!==t&&t===this.open?this.delayed&&await h.Qs.openTimer(this)&&(this.open=!t):h.Qs.close(this)}async ensureOnDOM(t){document.body.offsetHeight}async makeTransition(t){if(this.open!==t)return null;let e=null;const n=(n,i)=>()=>{if(t===this.open){if(n.open=t,0===i){const e=t?g:u;this.dispatchEvent(new e)}!0!==t||(n.matches(f.N)&&(e=n),e=e||(0,d.i)(n),e)||n.querySelectorAll("slot").forEach((t=>{e||(e=(0,d.l)(t))}))}},i=(e,n)=>async()=>{if(this.open!==t)return;const i=t?"sp-opened":"sp-closed";if(e.dispatchEvent(new m(i,this,{interaction:this.type})),n>0)return;const o=this.triggerElement instanceof p.U;this.dispatchEvent(new m(i,this,{interaction:this.type,publish:o})),this.triggerElement&&!o&&this.triggerElement.dispatchEvent(new m(i,this,{interaction:this.type,publish:!0})),this.state=t?"opened":"closed",this.returnFocus(),await(0,h.gl)(),await(0,h.gl)(),t===this.open&&!1===t&&this.requestSlottable()};return this.elements.forEach(((t,e)=>{(0,h.yr)(t,n(t,e),i(t,e))})),e}}}($t);const Mt=class t extends $t{constructor(){super(...arguments),this._delayed=!1,this._disabled=!1,this.offset=0,this._open=!1,this.lastRequestSlottableState=!1,this.receivesFocus="auto",this._state="closed",this.triggerElement=null,this.type="auto",this.wasOpen=!1,this.closeOnFocusOut=t=>{if(!t.relatedTarget)return;const e=new Event("overlay-relation-query",{bubbles:!0,composed:!0});t.relatedTarget.addEventListener(e.type,(t=>{t.composedPath().includes(this)||(this.open=!1)})),t.relatedTarget.dispatchEvent(e)}}get delayed(){var t;return(null==(t=this.elements.at(-1))?void 0:t.hasAttribute("delayed"))||this._delayed}set delayed(t){this._delayed=t}get disabled(){return this._disabled}set disabled(t){var e;this._disabled=t,t?(null==(e=this.strategy)||e.abort(),this.wasOpen=this.open,this.open=!1):(this.bindEvents(),this.open=this.open||this.wasOpen,this.wasOpen=!1)}get hasNonVirtualTrigger(){return!(!this.triggerElement||this.triggerElement instanceof p.U)}get placementController(){return this._placementController||(this._placementController=new Dt(this)),this._placementController}get open(){return this._open}set open(e){var n;e&&this.disabled||e!==this.open&&(null!=(n=this.strategy)&&n.activelyOpening&&!e||(this._open=e,this.open&&(t.openCount+=1),this.requestUpdate("open",!this.open),this.open&&this.requestSlottable()))}get state(){return this._state}set state(t){var e;if(t===this.state)return;const n=this.state;this._state=t,("opened"===this.state||"closed"===this.state)&&(null==(e=this.strategy)||e.shouldCompleteOpen()),this.requestUpdate("state",n)}get elementResolver(){return this._elementResolver||(this._elementResolver=new r(this)),this._elementResolver}get usesDialog(){return"modal"===this.type||"page"===this.type}get popoverValue(){if("popover"in this)switch(this.type){case"modal":case"page":return;case"hint":return"manual";default:return this.type}}get requiresPosition(){return!("page"===this.type||!this.open||!this.triggerElement||!this.placement&&"hint"!==this.type)}managePosition(){if(!this.requiresPosition||!this.open)return;const t=this.offset||0,e=this.triggerElement,n=this.placement||"right",i=this.tipPadding;this.placementController.placeOverlay(this.dialogEl,{offset:t,placement:n,tipPadding:i,trigger:e,type:this.type})}async managePopoverOpen(){super.managePopoverOpen();const t=this.open;if(this.open!==t||(await this.manageDelay(t),this.open!==t)||(await this.ensureOnDOM(t),this.open!==t))return;const e=await this.makeTransition(t);this.open===t&&await this.applyFocus(t,e)}async applyFocus(t,e){if("false"!==this.receivesFocus&&"hint"!==this.type){if(await(0,h.gl)(),await(0,h.gl)(),t===this.open&&!this.open)return void(this.hasNonVirtualTrigger&&this.contains(this.getRootNode().activeElement)&&this.triggerElement.focus());null==e||e.focus()}}returnFocus(){var t;if(this.open||"hint"===this.type)return;"false"!==this.receivesFocus&&null!=(t=this.triggerElement)&&t.focus&&(this.contains(this.getRootNode().activeElement)||(()=>{var t,e;const n=[];let i=document.activeElement;for(;null!=(t=null==i?void 0:i.shadowRoot)&&t.activeElement;)i=i.shadowRoot.activeElement;for(;i;){const t=i.assignedSlot||i.parentElement||(null==(e=i.getRootNode())?void 0:e.host);t&&n.push(t),i=t}return n})().includes(this)||document.activeElement===document.body)&&this.triggerElement.focus()}async manageOpen(t){if((this.isConnected||!this.open)&&(this.hasUpdated||await this.updateComplete,this.open?(b.add(this),this.willPreventClose&&(document.addEventListener("pointerup",(()=>{this.dialogEl.classList.toggle("not-immediately-closable",!1),this.willPreventClose=!1}),{once:!0}),this.dialogEl.classList.toggle("not-immediately-closable",!0))):(t&&this.dispose(),b.remove(this)),this.open&&"opened"!==this.state?this.state="opening":!this.open&&"closed"!==this.state&&(this.state="closing"),this.usesDialog?this.manageDialogOpen():this.managePopoverOpen(),"auto"===this.type)){const t=this.getRootNode();this.open?t.addEventListener("focusout",this.closeOnFocusOut,{capture:!0}):t.removeEventListener("focusout",this.closeOnFocusOut,{capture:!0})}}bindEvents(){var t;null==(t=this.strategy)||t.abort(),this.strategy=void 0,this.hasNonVirtualTrigger&&this.triggerInteraction&&(this.strategy=new kt.A[this.triggerInteraction](this.triggerElement,{overlay:this}))}handleBeforetoggle(t){"open"!==t.newState&&this.handleBrowserClose()}handleBrowserClose(){var t;null!=(t=this.strategy)&&t.activelyOpening?this.manuallyKeepOpen():this.open=!1}manuallyKeepOpen(){this.open=!0,this.placementController.allowPlacementUpdate=!0,this.manageOpen(!1)}handleSlotchange(){var t,e;this.elements.length?this.hasNonVirtualTrigger&&(null==(e=this.strategy)||e.prepareDescription(this.triggerElement)):null==(t=this.strategy)||t.releaseDescription()}shouldPreventClose(){const t=this.willPreventClose;return this.willPreventClose=!1,t}requestSlottable(){this.lastRequestSlottableState!==this.open&&(this.open||document.body.offsetHeight,this.dispatchEvent(new Ft.z("overlay-content",this.open?{}:Ft.p)),this.lastRequestSlottableState=this.open)}willUpdate(t){var e;if(this.hasAttribute("id")||this.setAttribute("id",`${this.tagName.toLowerCase()}-${(0,c.c)()}`),t.has("open")&&(this.hasUpdated||this.open)&&this.manageOpen(t.get("open")),t.has("trigger")){const[t,n]=(null==(e=this.trigger)?void 0:e.split("@"))||[];this.elementResolver.selector=t?`#${t}`:"",this.triggerInteraction=n}let n=!1;t.has(s)&&(n=this.triggerElement,this.triggerElement=this.elementResolver.element),t.has("triggerElement")&&(n=t.get("triggerElement")),!1!==n&&this.bindEvents()}updated(t){super.updated(t),t.has("placement")&&(this.placement?this.dialogEl.setAttribute("actual-placement",this.placement):this.dialogEl.removeAttribute("actual-placement"),this.open&&void 0!==t.get("placement")&&this.placementController.resetOverlayPosition()),t.has("state")&&"closed"===this.state&&void 0!==t.get("state")&&this.placementController.clearOverlayPosition()}renderContent(){return i.dy`
            <slot @slotchange=${this.handleSlotchange}></slot>
        `}get dialogStyleMap(){return{"--swc-overlay-open-count":t.openCount.toString()}}renderDialog(){return i.dy`
            <dialog
                class="dialog"
                part="dialog"
                placement=${(0,a.o)(this.requiresPosition?this.placement||"right":void 0)}
                style=${(0,l.V)(this.dialogStyleMap)}
                @close=${this.handleBrowserClose}
                @cancel=${this.handleBrowserClose}
                @beforetoggle=${this.handleBeforetoggle}
                ?is-visible=${"closed"!==this.state}
            >
                ${this.renderContent()}
            </dialog>
        `}renderPopover(){return i.dy`
            <div
                class="dialog"
                part="dialog"
                placement=${(0,a.o)(this.requiresPosition?this.placement||"right":void 0)}
                popover=${(0,a.o)(this.popoverValue)}
                style=${(0,l.V)(this.dialogStyleMap)}
                @beforetoggle=${this.handleBeforetoggle}
                @close=${this.handleBrowserClose}
                ?is-visible=${"closed"!==this.state}
            >
                ${this.renderContent()}
            </div>
        `}render(){const t="modal"===this.type||"page"===this.type;return i.dy`
            ${t?this.renderDialog():this.renderPopover()}
            <slot name="longpress-describedby-descriptor"></slot>
        `}connectedCallback(){super.connectedCallback(),this.addEventListener("close",(()=>{this.open=!1})),this.hasUpdated&&this.bindEvents()}disconnectedCallback(){var t;null==(t=this.strategy)||t.releaseDescription(),this.open=!1,super.disconnectedCallback()}};Mt.styles=[Nt],Mt.openCount=1,Bt([(0,o.Cb)({type:Boolean})],Mt.prototype,"delayed",1),Bt([(0,o.IO)(".dialog")],Mt.prototype,"dialogEl",2),Bt([(0,o.Cb)({type:Boolean})],Mt.prototype,"disabled",1),Bt([(0,o.NH)({flatten:!0,selector:':not([slot="longpress-describedby-descriptor"], slot)'})],Mt.prototype,"elements",2),Bt([(0,o.Cb)({type:Number})],Mt.prototype,"offset",2),Bt([(0,o.Cb)({type:Boolean,reflect:!0})],Mt.prototype,"open",1),Bt([(0,o.Cb)()],Mt.prototype,"placement",2),Bt([(0,o.Cb)({attribute:"receives-focus"})],Mt.prototype,"receivesFocus",2),Bt([(0,o.IO)("slot")],Mt.prototype,"slotEl",2),Bt([(0,o.SB)()],Mt.prototype,"state",1),Bt([(0,o.Cb)({type:Number,attribute:"tip-padding"})],Mt.prototype,"tipPadding",2),Bt([(0,o.Cb)()],Mt.prototype,"trigger",2),Bt([(0,o.Cb)({attribute:!1})],Mt.prototype,"triggerElement",2),Bt([(0,o.Cb)({attribute:!1})],Mt.prototype,"triggerInteraction",2),Bt([(0,o.Cb)()],Mt.prototype,"type",2);let Wt=Mt},94697:(t,e,n)=>{n.d(e,{U:()=>o});var i=n(34028);class o{constructor(t,e){this.x=0,this.y=0,this.x=t,this.y=e}updateBoundingClientRect(t,e){this.x=t,this.y=e,i.D.update()}getBoundingClientRect(){return{width:0,height:0,top:this.y,right:this.x,y:this.y,x:this.x,bottom:this.y,left:this.x,toJSON(){}}}}},11273:(t,e,n)=>{n.d(e,{A:()=>c});var i=n(95125);class o extends i.y{constructor(){super(...arguments),this.type=i.B.click,this.preventNextToggle=!1}handleClick(){this.preventNextToggle||(this.open=!this.open),this.preventNextToggle=!1}handlePointerdown(){this.preventNextToggle=this.open}init(){var t;null==(t=this.abortController)||t.abort(),this.abortController=new AbortController;const{signal:e}=this.abortController;this.target.addEventListener("click",(()=>this.handleClick()),{signal:e}),this.target.addEventListener("pointerdown",(()=>this.handlePointerdown()),{signal:e})}}var s=n(59626),r=n(52132),a=n(34028);class l extends i.y{constructor(){super(...arguments),this.type=i.B.hover,this.elementIds=[],this.focusedin=!1,this.pointerentered=!1}handleTargetFocusin(){this.target.matches(":focus-visible")&&(this.open=!0,this.focusedin=!0)}handleTargetFocusout(){this.focusedin=!1,!this.pointerentered&&(this.open=!1)}handleTargetPointerenter(){var t;this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=void 0),(null==(t=this.overlay)||!t.disabled)&&(this.open=!0,this.pointerentered=!0)}handleTargetPointerleave(){this.doPointerleave()}handleHostPointerenter(){this.hoverTimeout&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=void 0)}handleHostPointerleave(){this.doPointerleave()}prepareDescription(){if(!this.overlay.elements.length)return;const t=this.target.getRootNode(),e=this.overlay.elements[0].getRootNode();t===this.overlay.getRootNode()?this.prepareOverlayRelativeDescription():t===e&&this.prepareContentRelativeDescription()}prepareOverlayRelativeDescription(){const t=(0,s.q)(this.target,"aria-describedby",[this.overlay.id]);this.releaseDescription=()=>{t(),this.releaseDescription=a.ZT}}prepareContentRelativeDescription(){const t=[],e=this.overlay.elements.map((e=>(t.push(e.id),e.id||(e.id=`${this.overlay.tagName.toLowerCase()}-helper-${(0,r.c)()}`),e.id)));this.elementIds=t;const n=(0,s.q)(this.target,"aria-describedby",e);this.releaseDescription=()=>{n(),this.overlay.elements.map(((t,e)=>{t.id=this.elementIds[e]})),this.releaseDescription=a.ZT}}doPointerleave(){this.pointerentered=!1;const t=this.target;this.focusedin&&t.matches(":focus-visible")||(this.hoverTimeout=setTimeout((()=>{this.open=!1}),300))}init(){var t;null==(t=this.abortController)||t.abort(),this.abortController=new AbortController;const{signal:e}=this.abortController;this.target.addEventListener("focusin",(()=>this.handleTargetFocusin()),{signal:e}),this.target.addEventListener("focusout",(()=>this.handleTargetFocusout()),{signal:e}),this.target.addEventListener("pointerenter",(()=>this.handleTargetPointerenter()),{signal:e}),this.target.addEventListener("pointerleave",(()=>this.handleTargetPointerleave()),{signal:e}),this.overlay&&this.initOverlay()}initOverlay(){if(!this.abortController)return;const{signal:t}=this.abortController;this.overlay.addEventListener("pointerenter",(()=>this.handleHostPointerenter()),{signal:t}),this.overlay.addEventListener("pointerleave",(()=>this.handleHostPointerleave()),{signal:t})}}const c={click:o,longpress:n(25182).c,hover:l}},6425:(t,e,n)=>{n.d(e,{i:()=>o,l:()=>s});var i=n(56146);const o=t=>t.querySelector(i.N),s=t=>t.assignedElements().find((t=>t.matches(i.N)))}}]);