From 1333acf1eff2a03849273dac8aff711464d335c1 Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Sat, 16 Mar 2024 23:42:22 +0100 Subject: [PATCH] fix copy to clipboard bug --- package-lock.json | 13 ------- package.json | 1 - .../{app-44a1ce19.js => app-f7ac9558.js} | 12 +++--- public/build/manifest.json | 2 +- resources/js/app.js | 37 +++++++++++++------ resources/js/bootstrap.js | 6 --- .../database-user-password-modal.blade.php | 9 ++--- resources/views/layouts/server.blade.php | 18 ++------- resources/views/layouts/site.blade.php | 22 +++++------ .../views/server-settings/index.blade.php | 7 +--- .../servers/partials/public-key.blade.php | 9 ++--- 11 files changed, 56 insertions(+), 80 deletions(-) rename public/build/assets/{app-44a1ce19.js => app-f7ac9558.js} (53%) diff --git a/package-lock.json b/package-lock.json index 9c45767f..dafb1297 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "packages": { "": { "devDependencies": { - "@ryangjchandler/alpine-clipboard": "^2.2.0", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.9", "alpinejs": "^3.4.2", @@ -476,12 +475,6 @@ "url": "https://opencollective.com/popperjs" } }, - "node_modules/@ryangjchandler/alpine-clipboard": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ryangjchandler/alpine-clipboard/-/alpine-clipboard-2.2.0.tgz", - "integrity": "sha512-2kKHd2mA6K7RuYlC+1fikIUPVJeJLQlY2w9rNGrOgVfzXUZRotjTP+EjxouDizTEvqNRkVTJnmmNle32Uhb4zw==", - "dev": true - }, "node_modules/@tailwindcss/forms": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.3.tgz", @@ -2320,12 +2313,6 @@ "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", "dev": true }, - "@ryangjchandler/alpine-clipboard": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ryangjchandler/alpine-clipboard/-/alpine-clipboard-2.2.0.tgz", - "integrity": "sha512-2kKHd2mA6K7RuYlC+1fikIUPVJeJLQlY2w9rNGrOgVfzXUZRotjTP+EjxouDizTEvqNRkVTJnmmNle32Uhb4zw==", - "dev": true - }, "@tailwindcss/forms": { "version": "0.5.3", "resolved": "https://registry.npmjs.org/@tailwindcss/forms/-/forms-0.5.3.tgz", diff --git a/package.json b/package.json index 528ddcee..e510e65e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "lint:fix": "prettier --write ./resources/views" }, "devDependencies": { - "@ryangjchandler/alpine-clipboard": "^2.2.0", "@tailwindcss/forms": "^0.5.2", "@tailwindcss/typography": "^0.5.9", "alpinejs": "^3.4.2", diff --git a/public/build/assets/app-44a1ce19.js b/public/build/assets/app-f7ac9558.js similarity index 53% rename from public/build/assets/app-44a1ce19.js rename to public/build/assets/app-f7ac9558.js index 89f519e2..12161eac 100644 --- a/public/build/assets/app-44a1ce19.js +++ b/public/build/assets/app-f7ac9558.js @@ -1,4 +1,8 @@ -var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start$1="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(ze,Wr){return ze.concat([Wr+"-"+start$1,Wr+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(ze,Wr){return ze.concat([Wr,Wr+"-"+start$1,Wr+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(ze){return ze?(ze.nodeName||"").toLowerCase():null}function getWindow(ze){if(ze==null)return window;if(ze.toString()!=="[object Window]"){var Wr=ze.ownerDocument;return Wr&&Wr.defaultView||window}return ze}function isElement$1(ze){var Wr=getWindow(ze).Element;return ze instanceof Wr||ze instanceof Element}function isHTMLElement(ze){var Wr=getWindow(ze).HTMLElement;return ze instanceof Wr||ze instanceof HTMLElement}function isShadowRoot(ze){if(typeof ShadowRoot>"u")return!1;var Wr=getWindow(ze).ShadowRoot;return ze instanceof Wr||ze instanceof ShadowRoot}function applyStyles(ze){var Wr=ze.state;Object.keys(Wr.elements).forEach(function(Qr){var Gr=Wr.styles[Qr]||{},Jr=Wr.attributes[Qr]||{},rn=Wr.elements[Qr];!isHTMLElement(rn)||!getNodeName(rn)||(Object.assign(rn.style,Gr),Object.keys(Jr).forEach(function(nn){var un=Jr[nn];un===!1?rn.removeAttribute(nn):rn.setAttribute(nn,un===!0?"":un)}))})}function effect$3(ze){var Wr=ze.state,Qr={popper:{position:Wr.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(Wr.elements.popper.style,Qr.popper),Wr.styles=Qr,Wr.elements.arrow&&Object.assign(Wr.elements.arrow.style,Qr.arrow),function(){Object.keys(Wr.elements).forEach(function(Gr){var Jr=Wr.elements[Gr],rn=Wr.attributes[Gr]||{},nn=Object.keys(Wr.styles.hasOwnProperty(Gr)?Wr.styles[Gr]:Qr[Gr]),un=nn.reduce(function(cn,gn){return cn[gn]="",cn},{});!isHTMLElement(Jr)||!getNodeName(Jr)||(Object.assign(Jr.style,un),Object.keys(rn).forEach(function(cn){Jr.removeAttribute(cn)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$3,requires:["computeStyles"]};function getBasePlacement$1(ze){return ze.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var ze=navigator.userAgentData;return ze!=null&&ze.brands&&Array.isArray(ze.brands)?ze.brands.map(function(Wr){return Wr.brand+"/"+Wr.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(ze,Wr,Qr){Wr===void 0&&(Wr=!1),Qr===void 0&&(Qr=!1);var Gr=ze.getBoundingClientRect(),Jr=1,rn=1;Wr&&isHTMLElement(ze)&&(Jr=ze.offsetWidth>0&&round(Gr.width)/ze.offsetWidth||1,rn=ze.offsetHeight>0&&round(Gr.height)/ze.offsetHeight||1);var nn=isElement$1(ze)?getWindow(ze):window,un=nn.visualViewport,cn=!isLayoutViewport()&&Qr,gn=(Gr.left+(cn&&un?un.offsetLeft:0))/Jr,vn=(Gr.top+(cn&&un?un.offsetTop:0))/rn,En=Gr.width/Jr,Rn=Gr.height/rn;return{width:En,height:Rn,top:vn,right:gn+En,bottom:vn+Rn,left:gn,x:gn,y:vn}}function getLayoutRect(ze){var Wr=getBoundingClientRect(ze),Qr=ze.offsetWidth,Gr=ze.offsetHeight;return Math.abs(Wr.width-Qr)<=1&&(Qr=Wr.width),Math.abs(Wr.height-Gr)<=1&&(Gr=Wr.height),{x:ze.offsetLeft,y:ze.offsetTop,width:Qr,height:Gr}}function contains(ze,Wr){var Qr=Wr.getRootNode&&Wr.getRootNode();if(ze.contains(Wr))return!0;if(Qr&&isShadowRoot(Qr)){var Gr=Wr;do{if(Gr&&ze.isSameNode(Gr))return!0;Gr=Gr.parentNode||Gr.host}while(Gr)}return!1}function getComputedStyle$1(ze){return getWindow(ze).getComputedStyle(ze)}function isTableElement(ze){return["table","td","th"].indexOf(getNodeName(ze))>=0}function getDocumentElement(ze){return((isElement$1(ze)?ze.ownerDocument:ze.document)||window.document).documentElement}function getParentNode(ze){return getNodeName(ze)==="html"?ze:ze.assignedSlot||ze.parentNode||(isShadowRoot(ze)?ze.host:null)||getDocumentElement(ze)}function getTrueOffsetParent(ze){return!isHTMLElement(ze)||getComputedStyle$1(ze).position==="fixed"?null:ze.offsetParent}function getContainingBlock(ze){var Wr=/firefox/i.test(getUAString()),Qr=/Trident/i.test(getUAString());if(Qr&&isHTMLElement(ze)){var Gr=getComputedStyle$1(ze);if(Gr.position==="fixed")return null}var Jr=getParentNode(ze);for(isShadowRoot(Jr)&&(Jr=Jr.host);isHTMLElement(Jr)&&["html","body"].indexOf(getNodeName(Jr))<0;){var rn=getComputedStyle$1(Jr);if(rn.transform!=="none"||rn.perspective!=="none"||rn.contain==="paint"||["transform","perspective"].indexOf(rn.willChange)!==-1||Wr&&rn.willChange==="filter"||Wr&&rn.filter&&rn.filter!=="none")return Jr;Jr=Jr.parentNode}return null}function getOffsetParent(ze){for(var Wr=getWindow(ze),Qr=getTrueOffsetParent(ze);Qr&&isTableElement(Qr)&&getComputedStyle$1(Qr).position==="static";)Qr=getTrueOffsetParent(Qr);return Qr&&(getNodeName(Qr)==="html"||getNodeName(Qr)==="body"&&getComputedStyle$1(Qr).position==="static")?Wr:Qr||getContainingBlock(ze)||Wr}function getMainAxisFromPlacement(ze){return["top","bottom"].indexOf(ze)>=0?"x":"y"}function within(ze,Wr,Qr){return max(ze,min(Wr,Qr))}function withinMaxClamp(ze,Wr,Qr){var Gr=within(ze,Wr,Qr);return Gr>Qr?Qr:Gr}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(ze){return Object.assign({},getFreshSideObject(),ze)}function expandToHashMap(ze,Wr){return Wr.reduce(function(Qr,Gr){return Qr[Gr]=ze,Qr},{})}var toPaddingObject=function(Wr,Qr){return Wr=typeof Wr=="function"?Wr(Object.assign({},Qr.rects,{placement:Qr.placement})):Wr,mergePaddingObject(typeof Wr!="number"?Wr:expandToHashMap(Wr,basePlacements))};function arrow(ze){var Wr,Qr=ze.state,Gr=ze.name,Jr=ze.options,rn=Qr.elements.arrow,nn=Qr.modifiersData.popperOffsets,un=getBasePlacement$1(Qr.placement),cn=getMainAxisFromPlacement(un),gn=[left,right].indexOf(un)>=0,vn=gn?"height":"width";if(!(!rn||!nn)){var En=toPaddingObject(Jr.padding,Qr),Rn=getLayoutRect(rn),jn=cn==="y"?top:left,kn=cn==="y"?bottom:right,Mn=Qr.rects.reference[vn]+Qr.rects.reference[cn]-nn[cn]-Qr.rects.popper[vn],Nn=nn[cn]-Qr.rects.reference[cn],Ln=getOffsetParent(rn),Un=Ln?cn==="y"?Ln.clientHeight||0:Ln.clientWidth||0:0,Yn=Mn/2-Nn/2,yn=En[jn],Qn=Un-Rn[vn]-En[kn],tn=Un/2-Rn[vn]/2+Yn,Zn=within(yn,tn,Qn),ni=cn;Qr.modifiersData[Gr]=(Wr={},Wr[ni]=Zn,Wr.centerOffset=Zn-tn,Wr)}}function effect$2(ze){var Wr=ze.state,Qr=ze.options,Gr=Qr.element,Jr=Gr===void 0?"[data-popper-arrow]":Gr;Jr!=null&&(typeof Jr=="string"&&(Jr=Wr.elements.popper.querySelector(Jr),!Jr)||contains(Wr.elements.popper,Jr)&&(Wr.elements.arrow=Jr))}const arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(ze){return ze.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(ze,Wr){var Qr=ze.x,Gr=ze.y,Jr=Wr.devicePixelRatio||1;return{x:round(Qr*Jr)/Jr||0,y:round(Gr*Jr)/Jr||0}}function mapToStyles(ze){var Wr,Qr=ze.popper,Gr=ze.popperRect,Jr=ze.placement,rn=ze.variation,nn=ze.offsets,un=ze.position,cn=ze.gpuAcceleration,gn=ze.adaptive,vn=ze.roundOffsets,En=ze.isFixed,Rn=nn.x,jn=Rn===void 0?0:Rn,kn=nn.y,Mn=kn===void 0?0:kn,Nn=typeof vn=="function"?vn({x:jn,y:Mn}):{x:jn,y:Mn};jn=Nn.x,Mn=Nn.y;var Ln=nn.hasOwnProperty("x"),Un=nn.hasOwnProperty("y"),Yn=left,yn=top,Qn=window;if(gn){var tn=getOffsetParent(Qr),Zn="clientHeight",ni="clientWidth";if(tn===getWindow(Qr)&&(tn=getDocumentElement(Qr),getComputedStyle$1(tn).position!=="static"&&un==="absolute"&&(Zn="scrollHeight",ni="scrollWidth")),tn=tn,Jr===top||(Jr===left||Jr===right)&&rn===end){yn=bottom;var In=En&&tn===Qn&&Qn.visualViewport?Qn.visualViewport.height:tn[Zn];Mn-=In-Gr.height,Mn*=cn?1:-1}if(Jr===left||(Jr===top||Jr===bottom)&&rn===end){Yn=right;var An=En&&tn===Qn&&Qn.visualViewport?Qn.visualViewport.width:tn[ni];jn-=An-Gr.width,jn*=cn?1:-1}}var $n=Object.assign({position:un},gn&&unsetSides),Kn=vn===!0?roundOffsetsByDPR({x:jn,y:Mn},getWindow(Qr)):{x:jn,y:Mn};if(jn=Kn.x,Mn=Kn.y,cn){var Jn;return Object.assign({},$n,(Jn={},Jn[yn]=Un?"0":"",Jn[Yn]=Ln?"0":"",Jn.transform=(Qn.devicePixelRatio||1)<=1?"translate("+jn+"px, "+Mn+"px)":"translate3d("+jn+"px, "+Mn+"px, 0)",Jn))}return Object.assign({},$n,(Wr={},Wr[yn]=Un?Mn+"px":"",Wr[Yn]=Ln?jn+"px":"",Wr.transform="",Wr))}function computeStyles(ze){var Wr=ze.state,Qr=ze.options,Gr=Qr.gpuAcceleration,Jr=Gr===void 0?!0:Gr,rn=Qr.adaptive,nn=rn===void 0?!0:rn,un=Qr.roundOffsets,cn=un===void 0?!0:un,gn={placement:getBasePlacement$1(Wr.placement),variation:getVariation(Wr.placement),popper:Wr.elements.popper,popperRect:Wr.rects.popper,gpuAcceleration:Jr,isFixed:Wr.options.strategy==="fixed"};Wr.modifiersData.popperOffsets!=null&&(Wr.styles.popper=Object.assign({},Wr.styles.popper,mapToStyles(Object.assign({},gn,{offsets:Wr.modifiersData.popperOffsets,position:Wr.options.strategy,adaptive:nn,roundOffsets:cn})))),Wr.modifiersData.arrow!=null&&(Wr.styles.arrow=Object.assign({},Wr.styles.arrow,mapToStyles(Object.assign({},gn,{offsets:Wr.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:cn})))),Wr.attributes.popper=Object.assign({},Wr.attributes.popper,{"data-popper-placement":Wr.placement})}const computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:!0};function effect$1(ze){var Wr=ze.state,Qr=ze.instance,Gr=ze.options,Jr=Gr.scroll,rn=Jr===void 0?!0:Jr,nn=Gr.resize,un=nn===void 0?!0:nn,cn=getWindow(Wr.elements.popper),gn=[].concat(Wr.scrollParents.reference,Wr.scrollParents.popper);return rn&&gn.forEach(function(vn){vn.addEventListener("scroll",Qr.update,passive)}),un&&cn.addEventListener("resize",Qr.update,passive),function(){rn&&gn.forEach(function(vn){vn.removeEventListener("scroll",Qr.update,passive)}),un&&cn.removeEventListener("resize",Qr.update,passive)}}const eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:effect$1,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(ze){return ze.replace(/left|right|bottom|top/g,function(Wr){return hash$1[Wr]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(ze){return ze.replace(/start|end/g,function(Wr){return hash[Wr]})}function getWindowScroll(ze){var Wr=getWindow(ze),Qr=Wr.pageXOffset,Gr=Wr.pageYOffset;return{scrollLeft:Qr,scrollTop:Gr}}function getWindowScrollBarX(ze){return getBoundingClientRect(getDocumentElement(ze)).left+getWindowScroll(ze).scrollLeft}function getViewportRect(ze,Wr){var Qr=getWindow(ze),Gr=getDocumentElement(ze),Jr=Qr.visualViewport,rn=Gr.clientWidth,nn=Gr.clientHeight,un=0,cn=0;if(Jr){rn=Jr.width,nn=Jr.height;var gn=isLayoutViewport();(gn||!gn&&Wr==="fixed")&&(un=Jr.offsetLeft,cn=Jr.offsetTop)}return{width:rn,height:nn,x:un+getWindowScrollBarX(ze),y:cn}}function getDocumentRect(ze){var Wr,Qr=getDocumentElement(ze),Gr=getWindowScroll(ze),Jr=(Wr=ze.ownerDocument)==null?void 0:Wr.body,rn=max(Qr.scrollWidth,Qr.clientWidth,Jr?Jr.scrollWidth:0,Jr?Jr.clientWidth:0),nn=max(Qr.scrollHeight,Qr.clientHeight,Jr?Jr.scrollHeight:0,Jr?Jr.clientHeight:0),un=-Gr.scrollLeft+getWindowScrollBarX(ze),cn=-Gr.scrollTop;return getComputedStyle$1(Jr||Qr).direction==="rtl"&&(un+=max(Qr.clientWidth,Jr?Jr.clientWidth:0)-rn),{width:rn,height:nn,x:un,y:cn}}function isScrollParent(ze){var Wr=getComputedStyle$1(ze),Qr=Wr.overflow,Gr=Wr.overflowX,Jr=Wr.overflowY;return/auto|scroll|overlay|hidden/.test(Qr+Jr+Gr)}function getScrollParent(ze){return["html","body","#document"].indexOf(getNodeName(ze))>=0?ze.ownerDocument.body:isHTMLElement(ze)&&isScrollParent(ze)?ze:getScrollParent(getParentNode(ze))}function listScrollParents(ze,Wr){var Qr;Wr===void 0&&(Wr=[]);var Gr=getScrollParent(ze),Jr=Gr===((Qr=ze.ownerDocument)==null?void 0:Qr.body),rn=getWindow(Gr),nn=Jr?[rn].concat(rn.visualViewport||[],isScrollParent(Gr)?Gr:[]):Gr,un=Wr.concat(nn);return Jr?un:un.concat(listScrollParents(getParentNode(nn)))}function rectToClientRect(ze){return Object.assign({},ze,{left:ze.x,top:ze.y,right:ze.x+ze.width,bottom:ze.y+ze.height})}function getInnerBoundingClientRect(ze,Wr){var Qr=getBoundingClientRect(ze,!1,Wr==="fixed");return Qr.top=Qr.top+ze.clientTop,Qr.left=Qr.left+ze.clientLeft,Qr.bottom=Qr.top+ze.clientHeight,Qr.right=Qr.left+ze.clientWidth,Qr.width=ze.clientWidth,Qr.height=ze.clientHeight,Qr.x=Qr.left,Qr.y=Qr.top,Qr}function getClientRectFromMixedType(ze,Wr,Qr){return Wr===viewport?rectToClientRect(getViewportRect(ze,Qr)):isElement$1(Wr)?getInnerBoundingClientRect(Wr,Qr):rectToClientRect(getDocumentRect(getDocumentElement(ze)))}function getClippingParents(ze){var Wr=listScrollParents(getParentNode(ze)),Qr=["absolute","fixed"].indexOf(getComputedStyle$1(ze).position)>=0,Gr=Qr&&isHTMLElement(ze)?getOffsetParent(ze):ze;return isElement$1(Gr)?Wr.filter(function(Jr){return isElement$1(Jr)&&contains(Jr,Gr)&&getNodeName(Jr)!=="body"}):[]}function getClippingRect(ze,Wr,Qr,Gr){var Jr=Wr==="clippingParents"?getClippingParents(ze):[].concat(Wr),rn=[].concat(Jr,[Qr]),nn=rn[0],un=rn.reduce(function(cn,gn){var vn=getClientRectFromMixedType(ze,gn,Gr);return cn.top=max(vn.top,cn.top),cn.right=min(vn.right,cn.right),cn.bottom=min(vn.bottom,cn.bottom),cn.left=max(vn.left,cn.left),cn},getClientRectFromMixedType(ze,nn,Gr));return un.width=un.right-un.left,un.height=un.bottom-un.top,un.x=un.left,un.y=un.top,un}function computeOffsets(ze){var Wr=ze.reference,Qr=ze.element,Gr=ze.placement,Jr=Gr?getBasePlacement$1(Gr):null,rn=Gr?getVariation(Gr):null,nn=Wr.x+Wr.width/2-Qr.width/2,un=Wr.y+Wr.height/2-Qr.height/2,cn;switch(Jr){case top:cn={x:nn,y:Wr.y-Qr.height};break;case bottom:cn={x:nn,y:Wr.y+Wr.height};break;case right:cn={x:Wr.x+Wr.width,y:un};break;case left:cn={x:Wr.x-Qr.width,y:un};break;default:cn={x:Wr.x,y:Wr.y}}var gn=Jr?getMainAxisFromPlacement(Jr):null;if(gn!=null){var vn=gn==="y"?"height":"width";switch(rn){case start$1:cn[gn]=cn[gn]-(Wr[vn]/2-Qr[vn]/2);break;case end:cn[gn]=cn[gn]+(Wr[vn]/2-Qr[vn]/2);break}}return cn}function detectOverflow(ze,Wr){Wr===void 0&&(Wr={});var Qr=Wr,Gr=Qr.placement,Jr=Gr===void 0?ze.placement:Gr,rn=Qr.strategy,nn=rn===void 0?ze.strategy:rn,un=Qr.boundary,cn=un===void 0?clippingParents:un,gn=Qr.rootBoundary,vn=gn===void 0?viewport:gn,En=Qr.elementContext,Rn=En===void 0?popper:En,jn=Qr.altBoundary,kn=jn===void 0?!1:jn,Mn=Qr.padding,Nn=Mn===void 0?0:Mn,Ln=mergePaddingObject(typeof Nn!="number"?Nn:expandToHashMap(Nn,basePlacements)),Un=Rn===popper?reference:popper,Yn=ze.rects.popper,yn=ze.elements[kn?Un:Rn],Qn=getClippingRect(isElement$1(yn)?yn:yn.contextElement||getDocumentElement(ze.elements.popper),cn,vn,nn),tn=getBoundingClientRect(ze.elements.reference),Zn=computeOffsets({reference:tn,element:Yn,strategy:"absolute",placement:Jr}),ni=rectToClientRect(Object.assign({},Yn,Zn)),In=Rn===popper?ni:tn,An={top:Qn.top-In.top+Ln.top,bottom:In.bottom-Qn.bottom+Ln.bottom,left:Qn.left-In.left+Ln.left,right:In.right-Qn.right+Ln.right},$n=ze.modifiersData.offset;if(Rn===popper&&$n){var Kn=$n[Jr];Object.keys(An).forEach(function(Jn){var bi=[right,bottom].indexOf(Jn)>=0?1:-1,ui=[top,bottom].indexOf(Jn)>=0?"y":"x";An[Jn]+=Kn[ui]*bi})}return An}function computeAutoPlacement(ze,Wr){Wr===void 0&&(Wr={});var Qr=Wr,Gr=Qr.placement,Jr=Qr.boundary,rn=Qr.rootBoundary,nn=Qr.padding,un=Qr.flipVariations,cn=Qr.allowedAutoPlacements,gn=cn===void 0?placements:cn,vn=getVariation(Gr),En=vn?un?variationPlacements:variationPlacements.filter(function(kn){return getVariation(kn)===vn}):basePlacements,Rn=En.filter(function(kn){return gn.indexOf(kn)>=0});Rn.length===0&&(Rn=En);var jn=Rn.reduce(function(kn,Mn){return kn[Mn]=detectOverflow(ze,{placement:Mn,boundary:Jr,rootBoundary:rn,padding:nn})[getBasePlacement$1(Mn)],kn},{});return Object.keys(jn).sort(function(kn,Mn){return jn[kn]-jn[Mn]})}function getExpandedFallbackPlacements(ze){if(getBasePlacement$1(ze)===auto)return[];var Wr=getOppositePlacement(ze);return[getOppositeVariationPlacement(ze),Wr,getOppositeVariationPlacement(Wr)]}function flip(ze){var Wr=ze.state,Qr=ze.options,Gr=ze.name;if(!Wr.modifiersData[Gr]._skip){for(var Jr=Qr.mainAxis,rn=Jr===void 0?!0:Jr,nn=Qr.altAxis,un=nn===void 0?!0:nn,cn=Qr.fallbackPlacements,gn=Qr.padding,vn=Qr.boundary,En=Qr.rootBoundary,Rn=Qr.altBoundary,jn=Qr.flipVariations,kn=jn===void 0?!0:jn,Mn=Qr.allowedAutoPlacements,Nn=Wr.options.placement,Ln=getBasePlacement$1(Nn),Un=Ln===Nn,Yn=cn||(Un||!kn?[getOppositePlacement(Nn)]:getExpandedFallbackPlacements(Nn)),yn=[Nn].concat(Yn).reduce(function(Oi,hi){return Oi.concat(getBasePlacement$1(hi)===auto?computeAutoPlacement(Wr,{placement:hi,boundary:vn,rootBoundary:En,padding:gn,flipVariations:kn,allowedAutoPlacements:Mn}):hi)},[]),Qn=Wr.rects.reference,tn=Wr.rects.popper,Zn=new Map,ni=!0,In=yn[0],An=0;An=0,ui=bi?"width":"height",vi=detectOverflow(Wr,{placement:$n,boundary:vn,rootBoundary:En,altBoundary:Rn,padding:gn}),pi=bi?Jn?right:left:Jn?bottom:top;Qn[ui]>tn[ui]&&(pi=getOppositePlacement(pi));var si=getOppositePlacement(pi),Ci=[];if(rn&&Ci.push(vi[Kn]<=0),un&&Ci.push(vi[pi]<=0,vi[si]<=0),Ci.every(function(Oi){return Oi})){In=$n,ni=!1;break}Zn.set($n,Ci)}if(ni)for(var Di=kn?3:1,xi=function(hi){var ji=yn.find(function(Vi){var Ai=Zn.get(Vi);if(Ai)return Ai.slice(0,hi).every(function(mi){return mi})});if(ji)return In=ji,"break"},Mi=Di;Mi>0;Mi--){var Pi=xi(Mi);if(Pi==="break")break}Wr.placement!==In&&(Wr.modifiersData[Gr]._skip=!0,Wr.placement=In,Wr.reset=!0)}}const flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(ze,Wr,Qr){return Qr===void 0&&(Qr={x:0,y:0}),{top:ze.top-Wr.height-Qr.y,right:ze.right-Wr.width+Qr.x,bottom:ze.bottom-Wr.height+Qr.y,left:ze.left-Wr.width-Qr.x}}function isAnySideFullyClipped(ze){return[top,right,bottom,left].some(function(Wr){return ze[Wr]>=0})}function hide(ze){var Wr=ze.state,Qr=ze.name,Gr=Wr.rects.reference,Jr=Wr.rects.popper,rn=Wr.modifiersData.preventOverflow,nn=detectOverflow(Wr,{elementContext:"reference"}),un=detectOverflow(Wr,{altBoundary:!0}),cn=getSideOffsets(nn,Gr),gn=getSideOffsets(un,Jr,rn),vn=isAnySideFullyClipped(cn),En=isAnySideFullyClipped(gn);Wr.modifiersData[Qr]={referenceClippingOffsets:cn,popperEscapeOffsets:gn,isReferenceHidden:vn,hasPopperEscaped:En},Wr.attributes.popper=Object.assign({},Wr.attributes.popper,{"data-popper-reference-hidden":vn,"data-popper-escaped":En})}const hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(ze,Wr,Qr){var Gr=getBasePlacement$1(ze),Jr=[left,top].indexOf(Gr)>=0?-1:1,rn=typeof Qr=="function"?Qr(Object.assign({},Wr,{placement:ze})):Qr,nn=rn[0],un=rn[1];return nn=nn||0,un=(un||0)*Jr,[left,right].indexOf(Gr)>=0?{x:un,y:nn}:{x:nn,y:un}}function offset(ze){var Wr=ze.state,Qr=ze.options,Gr=ze.name,Jr=Qr.offset,rn=Jr===void 0?[0,0]:Jr,nn=placements.reduce(function(vn,En){return vn[En]=distanceAndSkiddingToXY(En,Wr.rects,rn),vn},{}),un=nn[Wr.placement],cn=un.x,gn=un.y;Wr.modifiersData.popperOffsets!=null&&(Wr.modifiersData.popperOffsets.x+=cn,Wr.modifiersData.popperOffsets.y+=gn),Wr.modifiersData[Gr]=nn}const offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(ze){var Wr=ze.state,Qr=ze.name;Wr.modifiersData[Qr]=computeOffsets({reference:Wr.rects.reference,element:Wr.rects.popper,strategy:"absolute",placement:Wr.placement})}const popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(ze){return ze==="x"?"y":"x"}function preventOverflow(ze){var Wr=ze.state,Qr=ze.options,Gr=ze.name,Jr=Qr.mainAxis,rn=Jr===void 0?!0:Jr,nn=Qr.altAxis,un=nn===void 0?!1:nn,cn=Qr.boundary,gn=Qr.rootBoundary,vn=Qr.altBoundary,En=Qr.padding,Rn=Qr.tether,jn=Rn===void 0?!0:Rn,kn=Qr.tetherOffset,Mn=kn===void 0?0:kn,Nn=detectOverflow(Wr,{boundary:cn,rootBoundary:gn,padding:En,altBoundary:vn}),Ln=getBasePlacement$1(Wr.placement),Un=getVariation(Wr.placement),Yn=!Un,yn=getMainAxisFromPlacement(Ln),Qn=getAltAxis(yn),tn=Wr.modifiersData.popperOffsets,Zn=Wr.rects.reference,ni=Wr.rects.popper,In=typeof Mn=="function"?Mn(Object.assign({},Wr.rects,{placement:Wr.placement})):Mn,An=typeof In=="number"?{mainAxis:In,altAxis:In}:Object.assign({mainAxis:0,altAxis:0},In),$n=Wr.modifiersData.offset?Wr.modifiersData.offset[Wr.placement]:null,Kn={x:0,y:0};if(tn){if(rn){var Jn,bi=yn==="y"?top:left,ui=yn==="y"?bottom:right,vi=yn==="y"?"height":"width",pi=tn[yn],si=pi+Nn[bi],Ci=pi-Nn[ui],Di=jn?-ni[vi]/2:0,xi=Un===start$1?Zn[vi]:ni[vi],Mi=Un===start$1?-ni[vi]:-Zn[vi],Pi=Wr.elements.arrow,Oi=jn&&Pi?getLayoutRect(Pi):{width:0,height:0},hi=Wr.modifiersData["arrow#persistent"]?Wr.modifiersData["arrow#persistent"].padding:getFreshSideObject(),ji=hi[bi],Vi=hi[ui],Ai=within(0,Zn[vi],Oi[vi]),mi=Yn?Zn[vi]/2-Di-Ai-ji-An.mainAxis:xi-Ai-ji-An.mainAxis,Ui=Yn?-Zn[vi]/2+Di+Ai+Vi+An.mainAxis:Mi+Ai+Vi+An.mainAxis,zi=Wr.elements.arrow&&getOffsetParent(Wr.elements.arrow),fo=zi?yn==="y"?zi.clientTop||0:zi.clientLeft||0:0,fi=(Jn=$n==null?void 0:$n[yn])!=null?Jn:0,ki=pi+mi-fi-fo,Ii=pi+Ui-fi,Wn=within(jn?min(si,ki):si,pi,jn?max(Ci,Ii):Ci);tn[yn]=Wn,Kn[yn]=Wn-pi}if(un){var Fn,_i=yn==="x"?top:left,Fi=yn==="x"?bottom:right,qi=tn[Qn],oo=Qn==="y"?"height":"width",mo=qi+Nn[_i],Gi=qi-Nn[Fi],Bi=[top,left].indexOf(Ln)!==-1,ro=(Fn=$n==null?void 0:$n[Qn])!=null?Fn:0,ao=Bi?mo:qi-Zn[oo]-ni[oo]-ro+An.altAxis,Ro=Bi?qi+Zn[oo]+ni[oo]-ro-An.altAxis:Gi,co=jn&&Bi?withinMaxClamp(ao,qi,Ro):within(jn?ao:mo,qi,jn?Ro:Gi);tn[Qn]=co,Kn[Qn]=co-qi}Wr.modifiersData[Gr]=Kn}}const preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(ze){return{scrollLeft:ze.scrollLeft,scrollTop:ze.scrollTop}}function getNodeScroll(ze){return ze===getWindow(ze)||!isHTMLElement(ze)?getWindowScroll(ze):getHTMLElementScroll(ze)}function isElementScaled(ze){var Wr=ze.getBoundingClientRect(),Qr=round(Wr.width)/ze.offsetWidth||1,Gr=round(Wr.height)/ze.offsetHeight||1;return Qr!==1||Gr!==1}function getCompositeRect(ze,Wr,Qr){Qr===void 0&&(Qr=!1);var Gr=isHTMLElement(Wr),Jr=isHTMLElement(Wr)&&isElementScaled(Wr),rn=getDocumentElement(Wr),nn=getBoundingClientRect(ze,Jr,Qr),un={scrollLeft:0,scrollTop:0},cn={x:0,y:0};return(Gr||!Gr&&!Qr)&&((getNodeName(Wr)!=="body"||isScrollParent(rn))&&(un=getNodeScroll(Wr)),isHTMLElement(Wr)?(cn=getBoundingClientRect(Wr,!0),cn.x+=Wr.clientLeft,cn.y+=Wr.clientTop):rn&&(cn.x=getWindowScrollBarX(rn))),{x:nn.left+un.scrollLeft-cn.x,y:nn.top+un.scrollTop-cn.y,width:nn.width,height:nn.height}}function order(ze){var Wr=new Map,Qr=new Set,Gr=[];ze.forEach(function(rn){Wr.set(rn.name,rn)});function Jr(rn){Qr.add(rn.name);var nn=[].concat(rn.requires||[],rn.requiresIfExists||[]);nn.forEach(function(un){if(!Qr.has(un)){var cn=Wr.get(un);cn&&Jr(cn)}}),Gr.push(rn)}return ze.forEach(function(rn){Qr.has(rn.name)||Jr(rn)}),Gr}function orderModifiers(ze){var Wr=order(ze);return modifierPhases.reduce(function(Qr,Gr){return Qr.concat(Wr.filter(function(Jr){return Jr.phase===Gr}))},[])}function debounce$2(ze){var Wr;return function(){return Wr||(Wr=new Promise(function(Qr){Promise.resolve().then(function(){Wr=void 0,Qr(ze())})})),Wr}}function mergeByName(ze){var Wr=ze.reduce(function(Qr,Gr){var Jr=Qr[Gr.name];return Qr[Gr.name]=Jr?Object.assign({},Jr,Gr,{options:Object.assign({},Jr.options,Gr.options),data:Object.assign({},Jr.data,Gr.data)}):Gr,Qr},{});return Object.keys(Wr).map(function(Qr){return Wr[Qr]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var ze=arguments.length,Wr=new Array(ze),Qr=0;Qr-1}function invokeWithArgsOrReturn(ze,Wr){return typeof ze=="function"?ze.apply(void 0,Wr):ze}function debounce$1(ze,Wr){if(Wr===0)return ze;var Qr;return function(Gr){clearTimeout(Qr),Qr=setTimeout(function(){ze(Gr)},Wr)}}function splitBySpaces(ze){return ze.split(/\s+/).filter(Boolean)}function normalizeToArray(ze){return[].concat(ze)}function pushIfUnique(ze,Wr){ze.indexOf(Wr)===-1&&ze.push(Wr)}function unique(ze){return ze.filter(function(Wr,Qr){return ze.indexOf(Wr)===Qr})}function getBasePlacement(ze){return ze.split("-")[0]}function arrayFrom(ze){return[].slice.call(ze)}function removeUndefinedProps(ze){return Object.keys(ze).reduce(function(Wr,Qr){return ze[Qr]!==void 0&&(Wr[Qr]=ze[Qr]),Wr},{})}function div(){return document.createElement("div")}function isElement(ze){return["Element","Fragment"].some(function(Wr){return isType(ze,Wr)})}function isNodeList(ze){return isType(ze,"NodeList")}function isMouseEvent(ze){return isType(ze,"MouseEvent")}function isReferenceElement(ze){return!!(ze&&ze._tippy&&ze._tippy.reference===ze)}function getArrayOfElements(ze){return isElement(ze)?[ze]:isNodeList(ze)?arrayFrom(ze):Array.isArray(ze)?ze:arrayFrom(document.querySelectorAll(ze))}function setTransitionDuration(ze,Wr){ze.forEach(function(Qr){Qr&&(Qr.style.transitionDuration=Wr+"ms")})}function setVisibilityState(ze,Wr){ze.forEach(function(Qr){Qr&&Qr.setAttribute("data-state",Wr)})}function getOwnerDocument(ze){var Wr,Qr=normalizeToArray(ze),Gr=Qr[0];return Gr!=null&&(Wr=Gr.ownerDocument)!=null&&Wr.body?Gr.ownerDocument:document}function isCursorOutsideInteractiveBorder(ze,Wr){var Qr=Wr.clientX,Gr=Wr.clientY;return ze.every(function(Jr){var rn=Jr.popperRect,nn=Jr.popperState,un=Jr.props,cn=un.interactiveBorder,gn=getBasePlacement(nn.placement),vn=nn.modifiersData.offset;if(!vn)return!0;var En=gn==="bottom"?vn.top.y:0,Rn=gn==="top"?vn.bottom.y:0,jn=gn==="right"?vn.left.x:0,kn=gn==="left"?vn.right.x:0,Mn=rn.top-Gr+En>cn,Nn=Gr-rn.bottom-Rn>cn,Ln=rn.left-Qr+jn>cn,Un=Qr-rn.right-kn>cn;return Mn||Nn||Ln||Un})}function updateTransitionEndListener(ze,Wr,Qr){var Gr=Wr+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(Jr){ze[Gr](Jr,Qr)})}function actualContains(ze,Wr){for(var Qr=Wr;Qr;){var Gr;if(ze.contains(Qr))return!0;Qr=Qr.getRootNode==null||(Gr=Qr.getRootNode())==null?void 0:Gr.host}return!1}var currentInput={isTouch:!1},lastMouseMoveTime=0;function onDocumentTouchStart(){currentInput.isTouch||(currentInput.isTouch=!0,window.performance&&document.addEventListener("mousemove",onDocumentMouseMove))}function onDocumentMouseMove(){var ze=performance.now();ze-lastMouseMoveTime<20&&(currentInput.isTouch=!1,document.removeEventListener("mousemove",onDocumentMouseMove)),lastMouseMoveTime=ze}function onWindowBlur(){var ze=document.activeElement;if(isReferenceElement(ze)){var Wr=ze._tippy;ze.blur&&!Wr.state.isVisible&&ze.blur()}}function bindGlobalEventListeners(){document.addEventListener("touchstart",onDocumentTouchStart,TOUCH_OPTIONS),window.addEventListener("blur",onWindowBlur)}var isBrowser=typeof window<"u"&&typeof document<"u",isIE11=isBrowser?!!window.msCrypto:!1,pluginProps={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},renderProps={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},defaultProps=Object.assign({appendTo:TIPPY_DEFAULT_APPEND_TO,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},pluginProps,renderProps),defaultKeys=Object.keys(defaultProps),setDefaultProps=function(Wr){var Qr=Object.keys(Wr);Qr.forEach(function(Gr){defaultProps[Gr]=Wr[Gr]})};function getExtendedPassedProps(ze){var Wr=ze.plugins||[],Qr=Wr.reduce(function(Gr,Jr){var rn=Jr.name,nn=Jr.defaultValue;if(rn){var un;Gr[rn]=ze[rn]!==void 0?ze[rn]:(un=defaultProps[rn])!=null?un:nn}return Gr},{});return Object.assign({},ze,Qr)}function getDataAttributeProps(ze,Wr){var Qr=Wr?Object.keys(getExtendedPassedProps(Object.assign({},defaultProps,{plugins:Wr}))):defaultKeys,Gr=Qr.reduce(function(Jr,rn){var nn=(ze.getAttribute("data-tippy-"+rn)||"").trim();if(!nn)return Jr;if(rn==="content")Jr[rn]=nn;else try{Jr[rn]=JSON.parse(nn)}catch{Jr[rn]=nn}return Jr},{});return Gr}function evaluateProps(ze,Wr){var Qr=Object.assign({},Wr,{content:invokeWithArgsOrReturn(Wr.content,[ze])},Wr.ignoreAttributes?{}:getDataAttributeProps(ze,Wr.plugins));return Qr.aria=Object.assign({},defaultProps.aria,Qr.aria),Qr.aria={expanded:Qr.aria.expanded==="auto"?Wr.interactive:Qr.aria.expanded,content:Qr.aria.content==="auto"?Wr.interactive?null:"describedby":Qr.aria.content},Qr}var innerHTML=function(){return"innerHTML"};function dangerouslySetInnerHTML(ze,Wr){ze[innerHTML()]=Wr}function createArrowElement(ze){var Wr=div();return ze===!0?Wr.className=ARROW_CLASS:(Wr.className=SVG_ARROW_CLASS,isElement(ze)?Wr.appendChild(ze):dangerouslySetInnerHTML(Wr,ze)),Wr}function setContent(ze,Wr){isElement(Wr.content)?(dangerouslySetInnerHTML(ze,""),ze.appendChild(Wr.content)):typeof Wr.content!="function"&&(Wr.allowHTML?dangerouslySetInnerHTML(ze,Wr.content):ze.textContent=Wr.content)}function getChildren(ze){var Wr=ze.firstElementChild,Qr=arrayFrom(Wr.children);return{box:Wr,content:Qr.find(function(Gr){return Gr.classList.contains(CONTENT_CLASS)}),arrow:Qr.find(function(Gr){return Gr.classList.contains(ARROW_CLASS)||Gr.classList.contains(SVG_ARROW_CLASS)}),backdrop:Qr.find(function(Gr){return Gr.classList.contains(BACKDROP_CLASS)})}}function render(ze){var Wr=div(),Qr=div();Qr.className=BOX_CLASS,Qr.setAttribute("data-state","hidden"),Qr.setAttribute("tabindex","-1");var Gr=div();Gr.className=CONTENT_CLASS,Gr.setAttribute("data-state","hidden"),setContent(Gr,ze.props),Wr.appendChild(Qr),Qr.appendChild(Gr),Jr(ze.props,ze.props);function Jr(rn,nn){var un=getChildren(Wr),cn=un.box,gn=un.content,vn=un.arrow;nn.theme?cn.setAttribute("data-theme",nn.theme):cn.removeAttribute("data-theme"),typeof nn.animation=="string"?cn.setAttribute("data-animation",nn.animation):cn.removeAttribute("data-animation"),nn.inertia?cn.setAttribute("data-inertia",""):cn.removeAttribute("data-inertia"),cn.style.maxWidth=typeof nn.maxWidth=="number"?nn.maxWidth+"px":nn.maxWidth,nn.role?cn.setAttribute("role",nn.role):cn.removeAttribute("role"),(rn.content!==nn.content||rn.allowHTML!==nn.allowHTML)&&setContent(gn,ze.props),nn.arrow?vn?rn.arrow!==nn.arrow&&(cn.removeChild(vn),cn.appendChild(createArrowElement(nn.arrow))):cn.appendChild(createArrowElement(nn.arrow)):vn&&cn.removeChild(vn)}return{popper:Wr,onUpdate:Jr}}render.$$tippy=!0;var idCounter=1,mouseMoveListeners=[],mountedInstances=[];function createTippy(ze,Wr){var Qr=evaluateProps(ze,Object.assign({},defaultProps,getExtendedPassedProps(removeUndefinedProps(Wr)))),Gr,Jr,rn,nn=!1,un=!1,cn=!1,gn=!1,vn,En,Rn,jn=[],kn=debounce$1(ki,Qr.interactiveDebounce),Mn,Nn=idCounter++,Ln=null,Un=unique(Qr.plugins),Yn={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},yn={id:Nn,reference:ze,popper:div(),popperInstance:Ln,props:Qr,state:Yn,plugins:Un,clearDelayTimeouts:ao,setProps:Ro,setContent:co,show:Uo,hide:zo,hideWithInteractivity:na,enable:Bi,disable:ro,unmount:yo,destroy:wo};if(!Qr.render)return yn;var Qn=Qr.render(yn),tn=Qn.popper,Zn=Qn.onUpdate;tn.setAttribute("data-tippy-root",""),tn.id="tippy-"+yn.id,yn.popper=tn,ze._tippy=yn,tn._tippy=yn;var ni=Un.map(function(Cn){return Cn.fn(yn)}),In=ze.hasAttribute("aria-expanded");return zi(),Di(),pi(),si("onCreate",[yn]),Qr.showOnCreate&&mo(),tn.addEventListener("mouseenter",function(){yn.props.interactive&&yn.state.isVisible&&yn.clearDelayTimeouts()}),tn.addEventListener("mouseleave",function(){yn.props.interactive&&yn.props.trigger.indexOf("mouseenter")>=0&&bi().addEventListener("mousemove",kn)}),yn;function An(){var Cn=yn.props.touch;return Array.isArray(Cn)?Cn:[Cn,0]}function $n(){return An()[0]==="hold"}function Kn(){var Cn;return!!((Cn=yn.props.render)!=null&&Cn.$$tippy)}function Jn(){return Mn||ze}function bi(){var Cn=Jn().parentNode;return Cn?getOwnerDocument(Cn):document}function ui(){return getChildren(tn)}function vi(Cn){return yn.state.isMounted&&!yn.state.isVisible||currentInput.isTouch||vn&&vn.type==="focus"?0:getValueAtIndexOrReturn(yn.props.delay,Cn?0:1,defaultProps.delay)}function pi(Cn){Cn===void 0&&(Cn=!1),tn.style.pointerEvents=yn.props.interactive&&!Cn?"":"none",tn.style.zIndex=""+yn.props.zIndex}function si(Cn,Bn,Vn){if(Vn===void 0&&(Vn=!0),ni.forEach(function(ci){ci[Cn]&&ci[Cn].apply(ci,Bn)}),Vn){var oi;(oi=yn.props)[Cn].apply(oi,Bn)}}function Ci(){var Cn=yn.props.aria;if(Cn.content){var Bn="aria-"+Cn.content,Vn=tn.id,oi=normalizeToArray(yn.props.triggerTarget||ze);oi.forEach(function(ci){var Hi=ci.getAttribute(Bn);if(yn.state.isVisible)ci.setAttribute(Bn,Hi?Hi+" "+Vn:Vn);else{var Wi=Hi&&Hi.replace(Vn,"").trim();Wi?ci.setAttribute(Bn,Wi):ci.removeAttribute(Bn)}})}}function Di(){if(!(In||!yn.props.aria.expanded)){var Cn=normalizeToArray(yn.props.triggerTarget||ze);Cn.forEach(function(Bn){yn.props.interactive?Bn.setAttribute("aria-expanded",yn.state.isVisible&&Bn===Jn()?"true":"false"):Bn.removeAttribute("aria-expanded")})}}function xi(){bi().removeEventListener("mousemove",kn),mouseMoveListeners=mouseMoveListeners.filter(function(Cn){return Cn!==kn})}function Mi(Cn){if(!(currentInput.isTouch&&(cn||Cn.type==="mousedown"))){var Bn=Cn.composedPath&&Cn.composedPath()[0]||Cn.target;if(!(yn.props.interactive&&actualContains(tn,Bn))){if(normalizeToArray(yn.props.triggerTarget||ze).some(function(Vn){return actualContains(Vn,Bn)})){if(currentInput.isTouch||yn.state.isVisible&&yn.props.trigger.indexOf("click")>=0)return}else si("onClickOutside",[yn,Cn]);yn.props.hideOnClick===!0&&(yn.clearDelayTimeouts(),yn.hide(),un=!0,setTimeout(function(){un=!1}),yn.state.isMounted||ji())}}}function Pi(){cn=!0}function Oi(){cn=!1}function hi(){var Cn=bi();Cn.addEventListener("mousedown",Mi,!0),Cn.addEventListener("touchend",Mi,TOUCH_OPTIONS),Cn.addEventListener("touchstart",Oi,TOUCH_OPTIONS),Cn.addEventListener("touchmove",Pi,TOUCH_OPTIONS)}function ji(){var Cn=bi();Cn.removeEventListener("mousedown",Mi,!0),Cn.removeEventListener("touchend",Mi,TOUCH_OPTIONS),Cn.removeEventListener("touchstart",Oi,TOUCH_OPTIONS),Cn.removeEventListener("touchmove",Pi,TOUCH_OPTIONS)}function Vi(Cn,Bn){mi(Cn,function(){!yn.state.isVisible&&tn.parentNode&&tn.parentNode.contains(tn)&&Bn()})}function Ai(Cn,Bn){mi(Cn,Bn)}function mi(Cn,Bn){var Vn=ui().box;function oi(ci){ci.target===Vn&&(updateTransitionEndListener(Vn,"remove",oi),Bn())}if(Cn===0)return Bn();updateTransitionEndListener(Vn,"remove",En),updateTransitionEndListener(Vn,"add",oi),En=oi}function Ui(Cn,Bn,Vn){Vn===void 0&&(Vn=!1);var oi=normalizeToArray(yn.props.triggerTarget||ze);oi.forEach(function(ci){ci.addEventListener(Cn,Bn,Vn),jn.push({node:ci,eventType:Cn,handler:Bn,options:Vn})})}function zi(){$n()&&(Ui("touchstart",fi,{passive:!0}),Ui("touchend",Ii,{passive:!0})),splitBySpaces(yn.props.trigger).forEach(function(Cn){if(Cn!=="manual")switch(Ui(Cn,fi),Cn){case"mouseenter":Ui("mouseleave",Ii);break;case"focus":Ui(isIE11?"focusout":"blur",Wn);break;case"focusin":Ui("focusout",Wn);break}})}function fo(){jn.forEach(function(Cn){var Bn=Cn.node,Vn=Cn.eventType,oi=Cn.handler,ci=Cn.options;Bn.removeEventListener(Vn,oi,ci)}),jn=[]}function fi(Cn){var Bn,Vn=!1;if(!(!yn.state.isEnabled||Fn(Cn)||un)){var oi=((Bn=vn)==null?void 0:Bn.type)==="focus";vn=Cn,Mn=Cn.currentTarget,Di(),!yn.state.isVisible&&isMouseEvent(Cn)&&mouseMoveListeners.forEach(function(ci){return ci(Cn)}),Cn.type==="click"&&(yn.props.trigger.indexOf("mouseenter")<0||nn)&&yn.props.hideOnClick!==!1&&yn.state.isVisible?Vn=!0:mo(Cn),Cn.type==="click"&&(nn=!Vn),Vn&&!oi&&Gi(Cn)}}function ki(Cn){var Bn=Cn.target,Vn=Jn().contains(Bn)||tn.contains(Bn);if(!(Cn.type==="mousemove"&&Vn)){var oi=oo().concat(tn).map(function(ci){var Hi,Wi=ci._tippy,po=(Hi=Wi.popperInstance)==null?void 0:Hi.state;return po?{popperRect:ci.getBoundingClientRect(),popperState:po,props:Qr}:null}).filter(Boolean);isCursorOutsideInteractiveBorder(oi,Cn)&&(xi(),Gi(Cn))}}function Ii(Cn){var Bn=Fn(Cn)||yn.props.trigger.indexOf("click")>=0&&nn;if(!Bn){if(yn.props.interactive){yn.hideWithInteractivity(Cn);return}Gi(Cn)}}function Wn(Cn){yn.props.trigger.indexOf("focusin")<0&&Cn.target!==Jn()||yn.props.interactive&&Cn.relatedTarget&&tn.contains(Cn.relatedTarget)||Gi(Cn)}function Fn(Cn){return currentInput.isTouch?$n()!==Cn.type.indexOf("touch")>=0:!1}function _i(){Fi();var Cn=yn.props,Bn=Cn.popperOptions,Vn=Cn.placement,oi=Cn.offset,ci=Cn.getReferenceClientRect,Hi=Cn.moveTransition,Wi=Kn()?getChildren(tn).arrow:null,po=ci?{getBoundingClientRect:ci,contextElement:ci.contextElement||Jn()}:ze,ho={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Do){var lo=Do.state;if(Kn()){var Po=ui(),Io=Po.box;["placement","reference-hidden","escaped"].forEach(function(Lo){Lo==="placement"?Io.setAttribute("data-placement",lo.placement):lo.attributes.popper["data-popper-"+Lo]?Io.setAttribute("data-"+Lo,""):Io.removeAttribute("data-"+Lo)}),lo.attributes.popper={}}}},Xi=[{name:"offset",options:{offset:oi}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Hi}},ho];Kn()&&Wi&&Xi.push({name:"arrow",options:{element:Wi,padding:3}}),Xi.push.apply(Xi,(Bn==null?void 0:Bn.modifiers)||[]),yn.popperInstance=createPopper(po,tn,Object.assign({},Bn,{placement:Vn,onFirstUpdate:Rn,modifiers:Xi}))}function Fi(){yn.popperInstance&&(yn.popperInstance.destroy(),yn.popperInstance=null)}function qi(){var Cn=yn.props.appendTo,Bn,Vn=Jn();yn.props.interactive&&Cn===TIPPY_DEFAULT_APPEND_TO||Cn==="parent"?Bn=Vn.parentNode:Bn=invokeWithArgsOrReturn(Cn,[Vn]),Bn.contains(tn)||Bn.appendChild(tn),yn.state.isMounted=!0,_i()}function oo(){return arrayFrom(tn.querySelectorAll("[data-tippy-root]"))}function mo(Cn){yn.clearDelayTimeouts(),Cn&&si("onTrigger",[yn,Cn]),hi();var Bn=vi(!0),Vn=An(),oi=Vn[0],ci=Vn[1];currentInput.isTouch&&oi==="hold"&&ci&&(Bn=ci),Bn?Gr=setTimeout(function(){yn.show()},Bn):yn.show()}function Gi(Cn){if(yn.clearDelayTimeouts(),si("onUntrigger",[yn,Cn]),!yn.state.isVisible){ji();return}if(!(yn.props.trigger.indexOf("mouseenter")>=0&&yn.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(Cn.type)>=0&&nn)){var Bn=vi(!1);Bn?Jr=setTimeout(function(){yn.state.isVisible&&yn.hide()},Bn):rn=requestAnimationFrame(function(){yn.hide()})}}function Bi(){yn.state.isEnabled=!0}function ro(){yn.hide(),yn.state.isEnabled=!1}function ao(){clearTimeout(Gr),clearTimeout(Jr),cancelAnimationFrame(rn)}function Ro(Cn){if(!yn.state.isDestroyed){si("onBeforeUpdate",[yn,Cn]),fo();var Bn=yn.props,Vn=evaluateProps(ze,Object.assign({},Bn,removeUndefinedProps(Cn),{ignoreAttributes:!0}));yn.props=Vn,zi(),Bn.interactiveDebounce!==Vn.interactiveDebounce&&(xi(),kn=debounce$1(ki,Vn.interactiveDebounce)),Bn.triggerTarget&&!Vn.triggerTarget?normalizeToArray(Bn.triggerTarget).forEach(function(oi){oi.removeAttribute("aria-expanded")}):Vn.triggerTarget&&ze.removeAttribute("aria-expanded"),Di(),pi(),Zn&&Zn(Bn,Vn),yn.popperInstance&&(_i(),oo().forEach(function(oi){requestAnimationFrame(oi._tippy.popperInstance.forceUpdate)})),si("onAfterUpdate",[yn,Cn])}}function co(Cn){yn.setProps({content:Cn})}function Uo(){var Cn=yn.state.isVisible,Bn=yn.state.isDestroyed,Vn=!yn.state.isEnabled,oi=currentInput.isTouch&&!yn.props.touch,ci=getValueAtIndexOrReturn(yn.props.duration,0,defaultProps.duration);if(!(Cn||Bn||Vn||oi)&&!Jn().hasAttribute("disabled")&&(si("onShow",[yn],!1),yn.props.onShow(yn)!==!1)){if(yn.state.isVisible=!0,Kn()&&(tn.style.visibility="visible"),pi(),hi(),yn.state.isMounted||(tn.style.transition="none"),Kn()){var Hi=ui(),Wi=Hi.box,po=Hi.content;setTransitionDuration([Wi,po],0)}Rn=function(){var Xi;if(!(!yn.state.isVisible||gn)){if(gn=!0,tn.offsetHeight,tn.style.transition=yn.props.moveTransition,Kn()&&yn.props.animation){var ko=ui(),Do=ko.box,lo=ko.content;setTransitionDuration([Do,lo],ci),setVisibilityState([Do,lo],"visible")}Ci(),Di(),pushIfUnique(mountedInstances,yn),(Xi=yn.popperInstance)==null||Xi.forceUpdate(),si("onMount",[yn]),yn.props.animation&&Kn()&&Ai(ci,function(){yn.state.isShown=!0,si("onShown",[yn])})}},qi()}}function zo(){var Cn=!yn.state.isVisible,Bn=yn.state.isDestroyed,Vn=!yn.state.isEnabled,oi=getValueAtIndexOrReturn(yn.props.duration,1,defaultProps.duration);if(!(Cn||Bn||Vn)&&(si("onHide",[yn],!1),yn.props.onHide(yn)!==!1)){if(yn.state.isVisible=!1,yn.state.isShown=!1,gn=!1,nn=!1,Kn()&&(tn.style.visibility="hidden"),xi(),ji(),pi(!0),Kn()){var ci=ui(),Hi=ci.box,Wi=ci.content;yn.props.animation&&(setTransitionDuration([Hi,Wi],oi),setVisibilityState([Hi,Wi],"hidden"))}Ci(),Di(),yn.props.animation?Kn()&&Vi(oi,yn.unmount):yn.unmount()}}function na(Cn){bi().addEventListener("mousemove",kn),pushIfUnique(mouseMoveListeners,kn),kn(Cn)}function yo(){yn.state.isVisible&&yn.hide(),yn.state.isMounted&&(Fi(),oo().forEach(function(Cn){Cn._tippy.unmount()}),tn.parentNode&&tn.parentNode.removeChild(tn),mountedInstances=mountedInstances.filter(function(Cn){return Cn!==yn}),yn.state.isMounted=!1,si("onHidden",[yn]))}function wo(){yn.state.isDestroyed||(yn.clearDelayTimeouts(),yn.unmount(),fo(),delete ze._tippy,yn.state.isDestroyed=!0,si("onDestroy",[yn]))}}function tippy$1(ze,Wr){Wr===void 0&&(Wr={});var Qr=defaultProps.plugins.concat(Wr.plugins||[]);bindGlobalEventListeners();var Gr=Object.assign({},Wr,{plugins:Qr}),Jr=getArrayOfElements(ze),rn=Jr.reduce(function(nn,un){var cn=un&&createTippy(un,Gr);return cn&&nn.push(cn),nn},[]);return isElement(ze)?rn[0]:rn}tippy$1.defaultProps=defaultProps;tippy$1.setDefaultProps=setDefaultProps;tippy$1.currentInput=currentInput;Object.assign({},applyStyles$1,{effect:function(Wr){var Qr=Wr.state,Gr={popper:{position:Qr.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(Qr.elements.popper.style,Gr.popper),Qr.styles=Gr,Qr.elements.arrow&&Object.assign(Qr.elements.arrow.style,Gr.arrow)}});tippy$1.setDefaultProps({render});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(ze){return ze&&ze.__esModule&&Object.prototype.hasOwnProperty.call(ze,"default")?ze.default:ze}var htmx_min={exports:{}};(function(module){(function(ze,Wr){module.exports?module.exports=Wr():ze.htmx=ze.htmx||Wr()})(typeof self<"u"?self:commonjsGlobal,function(){return function(){var Q={onLoad:F,process:zt,on:de,off:ge,trigger:ce,ajax:Nr,find:C,findAll:f,closest:v,values:function(ze,Wr){var Qr=dr(ze,Wr||"post");return Qr.values},remove:_,addClass:z,removeClass:n,toggleClass:$,takeClass:W,defineExtension:Ur,removeExtension:Br,logAll:V,logNone:j,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:!1,scrollBehavior:"smooth",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get"],selfRequestsOnly:!1,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null},parseInterval:d,_:t,createEventSource:function(ze){return new EventSource(ze,{withCredentials:!0})},createWebSocket:function(ze){var Wr=new WebSocket(ze,[]);return Wr.binaryType=Q.config.wsBinaryType,Wr},version:"1.9.10"},r={addTriggerHandler:Lt,bodyContains:se,canAccessLocalStorage:U,findThisElement:xe,filterValues:yr,hasAttribute:o,getAttributeValue:te,getClosestAttributeValue:ne,getClosestMatch:c,getExpressionVars:Hr,getHeaders:xr,getInputValues:dr,getInternalData:ae,getSwapSpecification:wr,getTriggerSpecs:it,getTarget:ye,makeFragment:l,mergeObjects:le,makeSettleInfo:T,oobSwap:Ee,querySelectorExt:ue,selectAndSwap:je,settleImmediately:nr,shouldCancel:ut,triggerEvent:ce,triggerErrorEvent:fe,withExtensions:R},w=["get","post","put","delete","patch"],i=w.map(function(ze){return"[hx-"+ze+"], [data-hx-"+ze+"]"}).join(", "),S=e("head"),q=e("title"),H=e("svg",!0);function e(ze,Wr=!1){return new RegExp(`<${ze}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${ze}>`,Wr?"gim":"im")}function d(ze){if(ze==null)return;let Wr=NaN;return ze.slice(-2)=="ms"?Wr=parseFloat(ze.slice(0,-2)):ze.slice(-1)=="s"?Wr=parseFloat(ze.slice(0,-1))*1e3:ze.slice(-1)=="m"?Wr=parseFloat(ze.slice(0,-1))*1e3*60:Wr=parseFloat(ze),isNaN(Wr)?void 0:Wr}function ee(ze,Wr){return ze.getAttribute&&ze.getAttribute(Wr)}function o(ze,Wr){return ze.hasAttribute&&(ze.hasAttribute(Wr)||ze.hasAttribute("data-"+Wr))}function te(ze,Wr){return ee(ze,Wr)||ee(ze,"data-"+Wr)}function u(ze){return ze.parentElement}function re(){return document}function c(ze,Wr){for(;ze&&!Wr(ze);)ze=u(ze);return ze||null}function L(ze,Wr,Qr){var Gr=te(Wr,Qr),Jr=te(Wr,"hx-disinherit");return ze!==Wr&&Jr&&(Jr==="*"||Jr.split(" ").indexOf(Qr)>=0)?"unset":Gr}function ne(ze,Wr){var Qr=null;if(c(ze,function(Gr){return Qr=L(ze,Gr,Wr)}),Qr!=="unset")return Qr}function h(ze,Wr){var Qr=ze.matches||ze.matchesSelector||ze.msMatchesSelector||ze.mozMatchesSelector||ze.webkitMatchesSelector||ze.oMatchesSelector;return Qr&&Qr.call(ze,Wr)}function A(ze){var Wr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Qr=Wr.exec(ze);return Qr?Qr[1].toLowerCase():""}function a(ze,Wr){for(var Qr=new DOMParser,Gr=Qr.parseFromString(ze,"text/html"),Jr=Gr.body;Wr>0;)Wr--,Jr=Jr.firstChild;return Jr==null&&(Jr=re().createDocumentFragment()),Jr}function N(ze){return/",0);return Jr.querySelector("template").content}switch(Qr){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return a(""+Gr+"
",1);case"col":return a(""+Gr+"
",2);case"tr":return a(""+Gr+"
",2);case"td":case"th":return a(""+Gr+"
",3);case"script":case"style":return a("
"+Gr+"
",1);default:return a(Gr,0)}}function ie(ze){ze&&ze()}function I(ze,Wr){return Object.prototype.toString.call(ze)==="[object "+Wr+"]"}function k(ze){return I(ze,"Function")}function P(ze){return I(ze,"Object")}function ae(ze){var Wr="htmx-internal-data",Qr=ze[Wr];return Qr||(Qr=ze[Wr]={}),Qr}function M(ze){var Wr=[];if(ze)for(var Qr=0;Qr=0}function se(ze){return ze.getRootNode&&ze.getRootNode()instanceof window.ShadowRoot?re().body.contains(ze.getRootNode().host):re().body.contains(ze)}function D(ze){return ze.trim().split(/\s+/)}function le(ze,Wr){for(var Qr in Wr)Wr.hasOwnProperty(Qr)&&(ze[Qr]=Wr[Qr]);return ze}function E(ze){try{return JSON.parse(ze)}catch(Wr){return b(Wr),null}}function U(){var ze="htmx:localStorageTest";try{return localStorage.setItem(ze,ze),localStorage.removeItem(ze),!0}catch{return!1}}function B(ze){try{var Wr=new URL(ze);return Wr&&(ze=Wr.pathname+Wr.search),/^\/$/.test(ze)||(ze=ze.replace(/\/+$/,"")),ze}catch{return ze}}function t(e){return Tr(re().body,function(){return eval(e)})}function F(ze){var Wr=Q.on("htmx:load",function(Qr){ze(Qr.detail.elt)});return Wr}function V(){Q.logger=function(ze,Wr,Qr){console&&console.log(Wr,ze,Qr)}}function j(){Q.logger=null}function C(ze,Wr){return Wr?ze.querySelector(Wr):C(re(),ze)}function f(ze,Wr){return Wr?ze.querySelectorAll(Wr):f(re(),ze)}function _(ze,Wr){ze=g(ze),Wr?setTimeout(function(){_(ze),ze=null},Wr):ze.parentElement.removeChild(ze)}function z(ze,Wr,Qr){ze=g(ze),Qr?setTimeout(function(){z(ze,Wr),ze=null},Qr):ze.classList&&ze.classList.add(Wr)}function n(ze,Wr,Qr){ze=g(ze),Qr?setTimeout(function(){n(ze,Wr),ze=null},Qr):ze.classList&&(ze.classList.remove(Wr),ze.classList.length===0&&ze.removeAttribute("class"))}function $(ze,Wr){ze=g(ze),ze.classList.toggle(Wr)}function W(ze,Wr){ze=g(ze),oe(ze.parentElement.children,function(Qr){n(Qr,Wr)}),z(ze,Wr)}function v(ze,Wr){if(ze=g(ze),ze.closest)return ze.closest(Wr);do if(ze==null||h(ze,Wr))return ze;while(ze=ze&&u(ze));return null}function s(ze,Wr){return ze.substring(0,Wr.length)===Wr}function G(ze,Wr){return ze.substring(ze.length-Wr.length)===Wr}function J(ze){var Wr=ze.trim();return s(Wr,"<")&&G(Wr,"/>")?Wr.substring(1,Wr.length-2):Wr}function Z(ze,Wr){return Wr.indexOf("closest ")===0?[v(ze,J(Wr.substr(8)))]:Wr.indexOf("find ")===0?[C(ze,J(Wr.substr(5)))]:Wr==="next"?[ze.nextElementSibling]:Wr.indexOf("next ")===0?[K(ze,J(Wr.substr(5)))]:Wr==="previous"?[ze.previousElementSibling]:Wr.indexOf("previous ")===0?[Y(ze,J(Wr.substr(9)))]:Wr==="document"?[document]:Wr==="window"?[window]:Wr==="body"?[document.body]:re().querySelectorAll(J(Wr))}var K=function(ze,Wr){for(var Qr=re().querySelectorAll(Wr),Gr=0;Gr=0;Gr--){var Jr=Qr[Gr];if(Jr.compareDocumentPosition(ze)===Node.DOCUMENT_POSITION_FOLLOWING)return Jr}};function ue(ze,Wr){return Wr?Z(ze,Wr)[0]:Z(re().body,ze)[0]}function g(ze){return I(ze,"String")?C(ze):ze}function ve(ze,Wr,Qr){return k(Wr)?{target:re().body,event:ze,listener:Wr}:{target:g(ze),event:Wr,listener:Qr}}function de(ze,Wr,Qr){jr(function(){var Jr=ve(ze,Wr,Qr);Jr.target.addEventListener(Jr.event,Jr.listener)});var Gr=k(Wr);return Gr?Wr:Qr}function ge(ze,Wr,Qr){return jr(function(){var Gr=ve(ze,Wr,Qr);Gr.target.removeEventListener(Gr.event,Gr.listener)}),k(Wr)?Wr:Qr}var me=re().createElement("output");function pe(ze,Wr){var Qr=ne(ze,Wr);if(Qr){if(Qr==="this")return[xe(ze,Wr)];var Gr=Z(ze,Qr);return Gr.length===0?(b('The selector "'+Qr+'" on '+Wr+" returned no matches!"),[me]):Gr}}function xe(ze,Wr){return c(ze,function(Qr){return te(Qr,Wr)!=null})}function ye(ze){var Wr=ne(ze,"hx-target");if(Wr)return Wr==="this"?xe(ze,"hx-target"):ue(ze,Wr);var Qr=ae(ze);return Qr.boosted?re().body:ze}function be(ze){for(var Wr=Q.config.attributesToSettle,Qr=0;Qr0?(Jr=ze.substr(0,ze.indexOf(":")),Gr=ze.substr(ze.indexOf(":")+1,ze.length)):Jr=ze);var rn=re().querySelectorAll(Gr);return rn?(oe(rn,function(nn){var un,cn=Wr.cloneNode(!0);un=re().createDocumentFragment(),un.appendChild(cn),Se(Jr,nn)||(un=cn);var gn={shouldSwap:!0,target:nn,fragment:un};ce(nn,"htmx:oobBeforeSwap",gn)&&(nn=gn.target,gn.shouldSwap&&Fe(Jr,nn,nn,un,Qr),oe(Qr.elts,function(vn){ce(vn,"htmx:oobAfterSwap",gn)}))}),Wr.parentNode.removeChild(Wr)):(Wr.parentNode.removeChild(Wr),fe(re().body,"htmx:oobErrorNoTarget",{content:Wr})),ze}function Ce(ze,Wr,Qr){var Gr=ne(ze,"hx-select-oob");if(Gr)for(var Jr=Gr.split(","),rn=0;rn0){var rn=Jr.replace("'","\\'"),nn=Gr.tagName.replace(":","\\:"),un=ze.querySelector(nn+"[id='"+rn+"']");if(un&&un!==ze){var cn=Gr.cloneNode();we(Gr,un),Qr.tasks.push(function(){we(Gr,cn)})}}})}function Oe(ze){return function(){n(ze,Q.config.addedClass),zt(ze),Nt(ze),qe(ze),ce(ze,"htmx:load")}}function qe(ze){var Wr="[autofocus]",Qr=h(ze,Wr)?ze:ze.querySelector(Wr);Qr!=null&&Qr.focus()}function m(ze,Wr,Qr,Gr){for(Te(ze,Qr,Gr);Qr.childNodes.length>0;){var Jr=Qr.firstChild;z(Jr,Q.config.addedClass),ze.insertBefore(Jr,Wr),Jr.nodeType!==Node.TEXT_NODE&&Jr.nodeType!==Node.COMMENT_NODE&&Gr.tasks.push(Oe(Jr))}}function He(ze,Wr){for(var Qr=0;Qr-1){var Wr=ze.replace(H,""),Qr=Wr.match(q);if(Qr)return Qr[2]}}function je(ze,Wr,Qr,Gr,Jr,rn){Jr.title=Ve(Gr);var nn=l(Gr);if(nn)return Ce(Qr,nn,Jr),nn=Be(Qr,nn,rn),Re(nn),Fe(ze,Qr,Wr,nn,Jr)}function _e(ze,Wr,Qr){var Gr=ze.getResponseHeader(Wr);if(Gr.indexOf("{")===0){var Jr=E(Gr);for(var rn in Jr)if(Jr.hasOwnProperty(rn)){var nn=Jr[rn];P(nn)||(nn={value:nn}),ce(Qr,rn,nn)}}else for(var un=Gr.split(","),cn=0;cn0;){var nn=Wr[0];if(nn==="]"){if(Gr--,Gr===0){rn===null&&(Jr=Jr+"true"),Wr.shift(),Jr+=")})";try{var un=Tr(ze,function(){return Function(Jr)()},function(){return!0});return un.source=Jr,un}catch(cn){return fe(re().body,"htmx:syntax:error",{error:cn,source:Jr}),null}}}else nn==="["&&Gr++;Qe(nn,rn,Qr)?Jr+="(("+Qr+"."+nn+") ? ("+Qr+"."+nn+") : (window."+nn+"))":Jr=Jr+nn,rn=Wr.shift()}}}function y(ze,Wr){for(var Qr="";ze.length>0&&!Wr.test(ze[0]);)Qr+=ze.shift();return Qr}function tt(ze){var Wr;return ze.length>0&&Ze.test(ze[0])?(ze.shift(),Wr=y(ze,Ke).trim(),ze.shift()):Wr=y(ze,x),Wr}var rt="input, textarea, select";function nt(ze,Wr,Qr){var Gr=[],Jr=Ye(Wr);do{y(Jr,Je);var rn=Jr.length,nn=y(Jr,/[,\[\s]/);if(nn!=="")if(nn==="every"){var un={trigger:"every"};y(Jr,Je),un.pollInterval=d(y(Jr,/[,\[\s]/)),y(Jr,Je);var cn=et(ze,Jr,"event");cn&&(un.eventFilter=cn),Gr.push(un)}else if(nn.indexOf("sse:")===0)Gr.push({trigger:"sse",sseEvent:nn.substr(4)});else{var gn={trigger:nn},cn=et(ze,Jr,"event");for(cn&&(gn.eventFilter=cn);Jr.length>0&&Jr[0]!==",";){y(Jr,Je);var vn=Jr.shift();if(vn==="changed")gn.changed=!0;else if(vn==="once")gn.once=!0;else if(vn==="consume")gn.consume=!0;else if(vn==="delay"&&Jr[0]===":")Jr.shift(),gn.delay=d(y(Jr,x));else if(vn==="from"&&Jr[0]===":"){if(Jr.shift(),Ze.test(Jr[0]))var En=tt(Jr);else{var En=y(Jr,x);if(En==="closest"||En==="find"||En==="next"||En==="previous"){Jr.shift();var Rn=tt(Jr);Rn.length>0&&(En+=" "+Rn)}}gn.from=En}else vn==="target"&&Jr[0]===":"?(Jr.shift(),gn.target=tt(Jr)):vn==="throttle"&&Jr[0]===":"?(Jr.shift(),gn.throttle=d(y(Jr,x))):vn==="queue"&&Jr[0]===":"?(Jr.shift(),gn.queue=y(Jr,x)):vn==="root"&&Jr[0]===":"?(Jr.shift(),gn[vn]=tt(Jr)):vn==="threshold"&&Jr[0]===":"?(Jr.shift(),gn[vn]=y(Jr,x)):fe(ze,"htmx:syntax:error",{token:Jr.shift()})}Gr.push(gn)}Jr.length===rn&&fe(ze,"htmx:syntax:error",{token:Jr.shift()}),y(Jr,Je)}while(Jr[0]===","&&Jr.shift());return Qr&&(Qr[Wr]=Gr),Gr}function it(ze){var Wr=te(ze,"hx-trigger"),Qr=[];if(Wr){var Gr=Q.config.triggerSpecsCache;Qr=Gr&&Gr[Wr]||nt(ze,Wr,Gr)}return Qr.length>0?Qr:h(ze,"form")?[{trigger:"submit"}]:h(ze,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:h(ze,rt)?[{trigger:"change"}]:[{trigger:"click"}]}function at(ze){ae(ze).cancelled=!0}function ot(ze,Wr,Qr){var Gr=ae(ze);Gr.timeout=setTimeout(function(){se(ze)&&Gr.cancelled!==!0&&(ct(Qr,ze,Wt("hx:poll:trigger",{triggerSpec:Qr,target:ze}))||Wr(ze),ot(ze,Wr,Qr))},Qr.pollInterval)}function st(ze){return location.hostname===ze.hostname&&ee(ze,"href")&&ee(ze,"href").indexOf("#")!==0}function lt(ze,Wr,Qr){if(ze.tagName==="A"&&st(ze)&&(ze.target===""||ze.target==="_self")||ze.tagName==="FORM"){Wr.boosted=!0;var Gr,Jr;if(ze.tagName==="A")Gr="get",Jr=ee(ze,"href");else{var rn=ee(ze,"method");Gr=rn?rn.toLowerCase():"get",Jr=ee(ze,"action")}Qr.forEach(function(nn){ht(ze,function(un,cn){if(v(un,Q.config.disableSelector)){p(un);return}he(Gr,Jr,un,cn)},Wr,nn,!0)})}}function ut(ze,Wr){return!!((ze.type==="submit"||ze.type==="click")&&(Wr.tagName==="FORM"||h(Wr,'input[type="submit"], button')&&v(Wr,"form")!==null||Wr.tagName==="A"&&Wr.href&&(Wr.getAttribute("href")==="#"||Wr.getAttribute("href").indexOf("#")!==0)))}function ft(ze,Wr){return ae(ze).boosted&&ze.tagName==="A"&&Wr.type==="click"&&(Wr.ctrlKey||Wr.metaKey)}function ct(ze,Wr,Qr){var Gr=ze.eventFilter;if(Gr)try{return Gr.call(Wr,Qr)!==!0}catch(Jr){return fe(re().body,"htmx:eventFilter:error",{error:Jr,source:Gr.source}),!0}return!1}function ht(ze,Wr,Qr,Gr,Jr){var rn=ae(ze),nn;Gr.from?nn=Z(ze,Gr.from):nn=[ze],Gr.changed&&nn.forEach(function(un){var cn=ae(un);cn.lastValue=un.value}),oe(nn,function(un){var cn=function(gn){if(!se(ze)){un.removeEventListener(Gr.trigger,cn);return}if(!ft(ze,gn)&&((Jr||ut(gn,ze))&&gn.preventDefault(),!ct(Gr,ze,gn))){var vn=ae(gn);if(vn.triggerSpec=Gr,vn.handledFor==null&&(vn.handledFor=[]),vn.handledFor.indexOf(ze)<0){if(vn.handledFor.push(ze),Gr.consume&&gn.stopPropagation(),Gr.target&&gn.target&&!h(gn.target,Gr.target))return;if(Gr.once){if(rn.triggeredOnce)return;rn.triggeredOnce=!0}if(Gr.changed){var En=ae(un);if(En.lastValue===un.value)return;En.lastValue=un.value}if(rn.delayed&&clearTimeout(rn.delayed),rn.throttle)return;Gr.throttle>0?rn.throttle||(Wr(ze,gn),rn.throttle=setTimeout(function(){rn.throttle=null},Gr.throttle)):Gr.delay>0?rn.delayed=setTimeout(function(){Wr(ze,gn)},Gr.delay):(ce(ze,"htmx:trigger"),Wr(ze,gn))}}};Qr.listenerInfos==null&&(Qr.listenerInfos=[]),Qr.listenerInfos.push({trigger:Gr.trigger,listener:cn,on:un}),un.addEventListener(Gr.trigger,cn)})}var vt=!1,dt=null;function gt(){dt||(dt=function(){vt=!0},window.addEventListener("scroll",dt),setInterval(function(){vt&&(vt=!1,oe(re().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(ze){mt(ze)}))},200))}function mt(ze){if(!o(ze,"data-hx-revealed")&&X(ze)){ze.setAttribute("data-hx-revealed","true");var Wr=ae(ze);Wr.initHash?ce(ze,"revealed"):ze.addEventListener("htmx:afterProcessNode",function(Qr){ce(ze,"revealed")},{once:!0})}}function pt(ze,Wr,Qr){for(var Gr=D(Qr),Jr=0;Jr=0){var nn=wt(Qr);setTimeout(function(){xt(ze,Wr,Qr+1)},nn)}},Jr.onopen=function(rn){Qr=0},ae(ze).webSocket=Jr,Jr.addEventListener("message",function(rn){if(!yt(ze)){var nn=rn.data;R(ze,function(Rn){nn=Rn.transformResponse(nn,null,ze)});for(var un=T(ze),cn=l(nn),gn=M(cn.children),vn=0;vn0){ce(ze,"htmx:validation:halted",nn);return}Gr.send(JSON.stringify(vn)),ut(Qr,ze)&&Qr.preventDefault()}):fe(ze,"htmx:noWebSocketSourceError")}function wt(ze){var Wr=Q.config.wsReconnectDelay;if(typeof Wr=="function")return Wr(ze);if(Wr==="full-jitter"){var Qr=Math.min(ze,6),Gr=1e3*Math.pow(2,Qr);return Gr*Math.random()}b('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"')}function St(ze,Wr,Qr){for(var Gr=D(Qr),Jr=0;Jr0?setTimeout(Jr,Gr):Jr()}function Ht(ze,Wr,Qr){var Gr=!1;return oe(w,function(Jr){if(o(ze,"hx-"+Jr)){var rn=te(ze,"hx-"+Jr);Gr=!0,Wr.path=rn,Wr.verb=Jr,Qr.forEach(function(nn){Lt(ze,nn,Wr,function(un,cn){if(v(un,Q.config.disableSelector)){p(un);return}he(Jr,rn,un,cn)})})}}),Gr}function Lt(ze,Wr,Qr,Gr){if(Wr.sseEvent)Rt(ze,Gr,Wr.sseEvent);else if(Wr.trigger==="revealed")gt(),ht(ze,Gr,Qr,Wr),mt(ze);else if(Wr.trigger==="intersect"){var Jr={};Wr.root&&(Jr.root=ue(ze,Wr.root)),Wr.threshold&&(Jr.threshold=parseFloat(Wr.threshold));var rn=new IntersectionObserver(function(nn){for(var un=0;un0?(Qr.polling=!0,ot(ze,Gr,Wr)):ht(ze,Gr,Qr,Wr)}function At(ze){if(Q.config.allowScriptTags&&(ze.type==="text/javascript"||ze.type==="module"||ze.type==="")){var Wr=re().createElement("script");oe(ze.attributes,function(Gr){Wr.setAttribute(Gr.name,Gr.value)}),Wr.textContent=ze.textContent,Wr.async=!1,Q.config.inlineScriptNonce&&(Wr.nonce=Q.config.inlineScriptNonce);var Qr=ze.parentElement;try{Qr.insertBefore(Wr,ze)}catch(Gr){b(Gr)}finally{ze.parentElement&&ze.parentElement.removeChild(ze)}}}function Nt(ze){h(ze,"script")&&At(ze),oe(f(ze,"script"),function(Wr){At(Wr)})}function It(ze){for(var Wr=ze.attributes,Qr=0;QrlastFlushedIndex&&queue.splice(Wr,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let ze=0;zeze.effect(Wr,{scheduler:Qr=>{shouldSchedule?scheduler(Qr):Qr()}}),raw=ze.raw}function overrideEffect(ze){effect$3=ze}function elementBoundEffect(ze){let Wr=()=>{};return[Gr=>{let Jr=effect$3(Gr);return ze._x_effects||(ze._x_effects=new Set,ze._x_runEffects=()=>{ze._x_effects.forEach(rn=>rn())}),ze._x_effects.add(Jr),Wr=()=>{Jr!==void 0&&(ze._x_effects.delete(Jr),release(Jr))},Jr},()=>{Wr()}]}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(ze){onElAddeds.push(ze)}function onElRemoved(ze,Wr){typeof Wr=="function"?(ze._x_cleanups||(ze._x_cleanups=[]),ze._x_cleanups.push(Wr)):(Wr=ze,onElRemoveds.push(Wr))}function onAttributesAdded(ze){onAttributeAddeds.push(ze)}function onAttributeRemoved(ze,Wr,Qr){ze._x_attributeCleanups||(ze._x_attributeCleanups={}),ze._x_attributeCleanups[Wr]||(ze._x_attributeCleanups[Wr]=[]),ze._x_attributeCleanups[Wr].push(Qr)}function cleanupAttributes(ze,Wr){ze._x_attributeCleanups&&Object.entries(ze._x_attributeCleanups).forEach(([Qr,Gr])=>{(Wr===void 0||Wr.includes(Qr))&&(Gr.forEach(Jr=>Jr()),delete ze._x_attributeCleanups[Qr])})}var observer=new MutationObserver(onMutate),currentlyObserving=!1;function startObservingMutations(){observer.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),currentlyObserving=!0}function stopObservingMutations(){flushObserver(),observer.disconnect(),currentlyObserving=!1}var recordQueue=[],willProcessRecordQueue=!1;function flushObserver(){recordQueue=recordQueue.concat(observer.takeRecords()),recordQueue.length&&!willProcessRecordQueue&&(willProcessRecordQueue=!0,queueMicrotask(()=>{processRecordQueue(),willProcessRecordQueue=!1}))}function processRecordQueue(){onMutate(recordQueue),recordQueue.length=0}function mutateDom(ze){if(!currentlyObserving)return ze();stopObservingMutations();let Wr=ze();return startObservingMutations(),Wr}var isCollecting=!1,deferredMutations=[];function deferMutations(){isCollecting=!0}function flushAndStopDeferringMutations(){isCollecting=!1,onMutate(deferredMutations),deferredMutations=[]}function onMutate(ze){if(isCollecting){deferredMutations=deferredMutations.concat(ze);return}let Wr=[],Qr=[],Gr=new Map,Jr=new Map;for(let rn=0;rnnn.nodeType===1&&Wr.push(nn)),ze[rn].removedNodes.forEach(nn=>nn.nodeType===1&&Qr.push(nn))),ze[rn].type==="attributes")){let nn=ze[rn].target,un=ze[rn].attributeName,cn=ze[rn].oldValue,gn=()=>{Gr.has(nn)||Gr.set(nn,[]),Gr.get(nn).push({name:un,value:nn.getAttribute(un)})},vn=()=>{Jr.has(nn)||Jr.set(nn,[]),Jr.get(nn).push(un)};nn.hasAttribute(un)&&cn===null?gn():nn.hasAttribute(un)?(vn(),gn()):vn()}Jr.forEach((rn,nn)=>{cleanupAttributes(nn,rn)}),Gr.forEach((rn,nn)=>{onAttributeAddeds.forEach(un=>un(nn,rn))});for(let rn of Qr)if(!Wr.includes(rn)&&(onElRemoveds.forEach(nn=>nn(rn)),rn._x_cleanups))for(;rn._x_cleanups.length;)rn._x_cleanups.pop()();Wr.forEach(rn=>{rn._x_ignoreSelf=!0,rn._x_ignore=!0});for(let rn of Wr)Qr.includes(rn)||rn.isConnected&&(delete rn._x_ignoreSelf,delete rn._x_ignore,onElAddeds.forEach(nn=>nn(rn)),rn._x_ignore=!0,rn._x_ignoreSelf=!0);Wr.forEach(rn=>{delete rn._x_ignoreSelf,delete rn._x_ignore}),Wr=null,Qr=null,Gr=null,Jr=null}function scope(ze){return mergeProxies(closestDataStack(ze))}function addScopeToNode(ze,Wr,Qr){return ze._x_dataStack=[Wr,...closestDataStack(Qr||ze)],()=>{ze._x_dataStack=ze._x_dataStack.filter(Gr=>Gr!==Wr)}}function refreshScope(ze,Wr){let Qr=ze._x_dataStack[0];Object.entries(Wr).forEach(([Gr,Jr])=>{Qr[Gr]=Jr})}function closestDataStack(ze){return ze._x_dataStack?ze._x_dataStack:typeof ShadowRoot=="function"&&ze instanceof ShadowRoot?closestDataStack(ze.host):ze.parentNode?closestDataStack(ze.parentNode):[]}function mergeProxies(ze){let Wr=new Proxy({},{ownKeys:()=>Array.from(new Set(ze.flatMap(Qr=>Object.keys(Qr)))),has:(Qr,Gr)=>ze.some(Jr=>Jr.hasOwnProperty(Gr)),get:(Qr,Gr)=>(ze.find(Jr=>{if(Jr.hasOwnProperty(Gr)){let rn=Object.getOwnPropertyDescriptor(Jr,Gr);if(rn.get&&rn.get._x_alreadyBound||rn.set&&rn.set._x_alreadyBound)return!0;if((rn.get||rn.set)&&rn.enumerable){let nn=rn.get,un=rn.set,cn=rn;nn=nn&&nn.bind(Wr),un=un&&un.bind(Wr),nn&&(nn._x_alreadyBound=!0),un&&(un._x_alreadyBound=!0),Object.defineProperty(Jr,Gr,{...cn,get:nn,set:un})}return!0}return!1})||{})[Gr],set:(Qr,Gr,Jr)=>{let rn=ze.find(nn=>nn.hasOwnProperty(Gr));return rn?rn[Gr]=Jr:ze[ze.length-1][Gr]=Jr,!0}});return Wr}function initInterceptors(ze){let Wr=Gr=>typeof Gr=="object"&&!Array.isArray(Gr)&&Gr!==null,Qr=(Gr,Jr="")=>{Object.entries(Object.getOwnPropertyDescriptors(Gr)).forEach(([rn,{value:nn,enumerable:un}])=>{if(un===!1||nn===void 0)return;let cn=Jr===""?rn:`${Jr}.${rn}`;typeof nn=="object"&&nn!==null&&nn._x_interceptor?Gr[rn]=nn.initialize(ze,cn,rn):Wr(nn)&&nn!==Gr&&!(nn instanceof Element)&&Qr(nn,cn)})};return Qr(ze)}function interceptor(ze,Wr=()=>{}){let Qr={initialValue:void 0,_x_interceptor:!0,initialize(Gr,Jr,rn){return ze(this.initialValue,()=>get(Gr,Jr),nn=>set(Gr,Jr,nn),Jr,rn)}};return Wr(Qr),Gr=>{if(typeof Gr=="object"&&Gr!==null&&Gr._x_interceptor){let Jr=Qr.initialize.bind(Qr);Qr.initialize=(rn,nn,un)=>{let cn=Gr.initialize(rn,nn,un);return Qr.initialValue=cn,Jr(rn,nn,un)}}else Qr.initialValue=Gr;return Qr}}function get(ze,Wr){return Wr.split(".").reduce((Qr,Gr)=>Qr[Gr],ze)}function set(ze,Wr,Qr){if(typeof Wr=="string"&&(Wr=Wr.split(".")),Wr.length===1)ze[Wr[0]]=Qr;else{if(Wr.length===0)throw error;return ze[Wr[0]]||(ze[Wr[0]]={}),set(ze[Wr[0]],Wr.slice(1),Qr)}}var magics={};function magic(ze,Wr){magics[ze]=Wr}function injectMagics(ze,Wr){return Object.entries(magics).forEach(([Qr,Gr])=>{Object.defineProperty(ze,`$${Qr}`,{get(){let[Jr,rn]=getElementBoundUtilities(Wr);return Jr={interceptor,...Jr},onElRemoved(Wr,rn),Gr(Wr,Jr)},enumerable:!1})}),ze}function tryCatch(ze,Wr,Qr,...Gr){try{return Qr(...Gr)}catch(Jr){handleError(Jr,ze,Wr)}}function handleError(ze,Wr,Qr=void 0){Object.assign(ze,{el:Wr,expression:Qr}),console.warn(`Alpine Expression Error: ${ze.message} + +${Qr?'Expression: "'+Qr+`" + +`:""}`,Wr),setTimeout(()=>{throw ze},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(ze){let Wr=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1,ze(),shouldAutoEvaluateFunctions=Wr}function evaluate(ze,Wr,Qr={}){let Gr;return evaluateLater(ze,Wr)(Jr=>Gr=Jr,Qr),Gr}function evaluateLater(...ze){return theEvaluatorFunction(...ze)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(ze){theEvaluatorFunction=ze}function normalEvaluator(ze,Wr){let Qr={};injectMagics(Qr,ze);let Gr=[Qr,...closestDataStack(ze)],Jr=typeof Wr=="function"?generateEvaluatorFromFunction(Gr,Wr):generateEvaluatorFromString(Gr,Wr,ze);return tryCatch.bind(null,ze,Wr,Jr)}function generateEvaluatorFromFunction(ze,Wr){return(Qr=()=>{},{scope:Gr={},params:Jr=[]}={})=>{let rn=Wr.apply(mergeProxies([Gr,...ze]),Jr);runIfTypeOfFunction(Qr,rn)}}var evaluatorMemo={};function generateFunctionFromString(ze,Wr){if(evaluatorMemo[ze])return evaluatorMemo[ze];let Qr=Object.getPrototypeOf(async function(){}).constructor,Gr=/^[\n\s]*if.*\(.*\)/.test(ze)||/^(let|const)\s/.test(ze)?`(async()=>{ ${ze} })()`:ze,rn=(()=>{try{return new Qr(["__self","scope"],`with (scope) { __self.result = ${Gr} }; __self.finished = true; return __self.result;`)}catch(nn){return handleError(nn,Wr,ze),Promise.resolve()}})();return evaluatorMemo[ze]=rn,rn}function generateEvaluatorFromString(ze,Wr,Qr){let Gr=generateFunctionFromString(Wr,Qr);return(Jr=()=>{},{scope:rn={},params:nn=[]}={})=>{Gr.result=void 0,Gr.finished=!1;let un=mergeProxies([rn,...ze]);if(typeof Gr=="function"){let cn=Gr(Gr,un).catch(gn=>handleError(gn,Qr,Wr));Gr.finished?(runIfTypeOfFunction(Jr,Gr.result,un,nn,Qr),Gr.result=void 0):cn.then(gn=>{runIfTypeOfFunction(Jr,gn,un,nn,Qr)}).catch(gn=>handleError(gn,Qr,Wr)).finally(()=>Gr.result=void 0)}}}function runIfTypeOfFunction(ze,Wr,Qr,Gr,Jr){if(shouldAutoEvaluateFunctions&&typeof Wr=="function"){let rn=Wr.apply(Qr,Gr);rn instanceof Promise?rn.then(nn=>runIfTypeOfFunction(ze,nn,Qr,Gr)).catch(nn=>handleError(nn,Jr,Wr)):ze(rn)}else typeof Wr=="object"&&Wr instanceof Promise?Wr.then(rn=>ze(rn)):ze(Wr)}var prefixAsString="x-";function prefix(ze=""){return prefixAsString+ze}function setPrefix(ze){prefixAsString=ze}var directiveHandlers={};function directive(ze,Wr){return directiveHandlers[ze]=Wr,{before(Qr){if(!directiveHandlers[Qr]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const Gr=directiveOrder.indexOf(Qr);directiveOrder.splice(Gr>=0?Gr:directiveOrder.indexOf("DEFAULT"),0,ze)}}}function directives(ze,Wr,Qr){if(Wr=Array.from(Wr),ze._x_virtualDirectives){let rn=Object.entries(ze._x_virtualDirectives).map(([un,cn])=>({name:un,value:cn})),nn=attributesOnly(rn);rn=rn.map(un=>nn.find(cn=>cn.name===un.name)?{name:`x-bind:${un.name}`,value:`"${un.value}"`}:un),Wr=Wr.concat(rn)}let Gr={};return Wr.map(toTransformedAttributes((rn,nn)=>Gr[rn]=nn)).filter(outNonAlpineAttributes).map(toParsedDirectives(Gr,Qr)).sort(byPriority).map(rn=>getDirectiveHandler(ze,rn))}function attributesOnly(ze){return Array.from(ze).map(toTransformedAttributes()).filter(Wr=>!outNonAlpineAttributes(Wr))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(ze){isDeferringHandlers=!0;let Wr=Symbol();currentHandlerStackKey=Wr,directiveHandlerStacks.set(Wr,[]);let Qr=()=>{for(;directiveHandlerStacks.get(Wr).length;)directiveHandlerStacks.get(Wr).shift()();directiveHandlerStacks.delete(Wr)},Gr=()=>{isDeferringHandlers=!1,Qr()};ze(Qr),Gr()}function getElementBoundUtilities(ze){let Wr=[],Qr=un=>Wr.push(un),[Gr,Jr]=elementBoundEffect(ze);return Wr.push(Jr),[{Alpine:alpine_default,effect:Gr,cleanup:Qr,evaluateLater:evaluateLater.bind(evaluateLater,ze),evaluate:evaluate.bind(evaluate,ze)},()=>Wr.forEach(un=>un())]}function getDirectiveHandler(ze,Wr){let Qr=()=>{},Gr=directiveHandlers[Wr.type]||Qr,[Jr,rn]=getElementBoundUtilities(ze);onAttributeRemoved(ze,Wr.original,rn);let nn=()=>{ze._x_ignore||ze._x_ignoreSelf||(Gr.inline&&Gr.inline(ze,Wr,Jr),Gr=Gr.bind(Gr,ze,Wr,Jr),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(Gr):Gr())};return nn.runCleanups=rn,nn}var startingWith=(ze,Wr)=>({name:Qr,value:Gr})=>(Qr.startsWith(ze)&&(Qr=Qr.replace(ze,Wr)),{name:Qr,value:Gr}),into=ze=>ze;function toTransformedAttributes(ze=()=>{}){return({name:Wr,value:Qr})=>{let{name:Gr,value:Jr}=attributeTransformers.reduce((rn,nn)=>nn(rn),{name:Wr,value:Qr});return Gr!==Wr&&ze(Gr,Wr),{name:Gr,value:Jr}}}var attributeTransformers=[];function mapAttributes(ze){attributeTransformers.push(ze)}function outNonAlpineAttributes({name:ze}){return alpineAttributeRegex().test(ze)}var alpineAttributeRegex=()=>new RegExp(`^${prefixAsString}([^:^.]+)\\b`);function toParsedDirectives(ze,Wr){return({name:Qr,value:Gr})=>{let Jr=Qr.match(alpineAttributeRegex()),rn=Qr.match(/:([a-zA-Z0-9\-:]+)/),nn=Qr.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],un=Wr||ze[Qr]||Qr;return{type:Jr?Jr[1]:null,value:rn?rn[1]:null,modifiers:nn.map(cn=>cn.replace(".","")),expression:Gr,original:un}}}var DEFAULT="DEFAULT",directiveOrder=["ignore","ref","data","id","bind","init","for","model","modelable","transition","show","if",DEFAULT,"teleport"];function byPriority(ze,Wr){let Qr=directiveOrder.indexOf(ze.type)===-1?DEFAULT:ze.type,Gr=directiveOrder.indexOf(Wr.type)===-1?DEFAULT:Wr.type;return directiveOrder.indexOf(Qr)-directiveOrder.indexOf(Gr)}function dispatch(ze,Wr,Qr={}){ze.dispatchEvent(new CustomEvent(Wr,{detail:Qr,bubbles:!0,composed:!0,cancelable:!0}))}function walk(ze,Wr){if(typeof ShadowRoot=="function"&&ze instanceof ShadowRoot){Array.from(ze.children).forEach(Jr=>walk(Jr,Wr));return}let Qr=!1;if(Wr(ze,()=>Qr=!0),Qr)return;let Gr=ze.firstElementChild;for(;Gr;)walk(Gr,Wr),Gr=Gr.nextElementSibling}function warn(ze,...Wr){console.warn(`Alpine Warning: ${ze}`,...Wr)}function start$1(){document.body||warn("Unable to initialize. Trying to load Alpine before `` is available. Did you forget to add `defer` in Alpine's `