ariadne_view_components 0.0.86.1 → 0.0.86.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/ariadne_view_components.js +1 -1
- data/app/assets/javascripts/ariadne_view_components.js.br +0 -0
- data/app/assets/javascripts/ariadne_view_components.js.gz +0 -0
- data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
- data/app/components/ariadne/{ui → form}/toggle/component.rb +3 -1
- data/lib/ariadne/view_components/version.rb +1 -1
- metadata +4 -4
- /data/app/components/ariadne/{ui → form}/toggle/component.html.erb +0 -0
- /data/app/components/ariadne/{ui → form}/toggle/component.ts +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: decf10fda316c17f41680ed93bde1134ab82da0214a746d0bb578ae886b9ca19
|
4
|
+
data.tar.gz: 5a78100b9a0d2a9fc044ce6c5f89851184dbfe34ba9249485b27fc268ab2d745
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac8f98c18afa04b69712b4629b164636cba4a87f3d72d216a62e3025dfaa83fea231f66569f549907252f48138d504f4e8a6811edeca0eb855d21cab41dbffa
|
7
|
+
data.tar.gz: 11d264b73e1329184cbc5e6887ea64d6f9ece05fd0c8806a662d55dacbd6e4fe1a4987e693137ccf288555db7ade34774a0706bbffba4e417e26c25614fda1f1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
# [v0.0.86.3] - 08-08-2024
|
2
|
+
**Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.2...v0.0.86.3
|
3
|
+
# [v0.0.86.2] - 08-08-2024
|
4
|
+
**Full Changelog**: https://github.com/yettoapp/ariadne/compare/v0.0.86.1...v0.0.86.2
|
1
5
|
# [v0.0.86.1] - 08-08-2024
|
2
6
|
## What's Changed
|
3
7
|
* Bump the npm-dependencies group across 1 directory with 25 updates by @dependabot in https://github.com/yettoapp/ariadne/pull/507
|
@@ -95,5 +95,5 @@ ${a}`:r;if(l){const v=n.value[n.selectionStart-1];n.selectionStart!==0&&v!=null&
|
|
95
95
|
|
96
96
|
%o
|
97
97
|
|
98
|
-
%o`,e,t,s),(i=window.onerror)===null||i===void 0||i.call(window,e,"",0,0,t)}logFormattedMessage(t,e,s={}){s=Object.assign({application:this},s),this.logger.groupCollapsed(`${t} #${e}`),this.logger.log("details:",Object.assign({},s)),this.logger.groupEnd()}}function Vr(){return new Promise(n=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>n()):n()})}function Hr(n){return Ht(n,"classes").reduce((e,s)=>Object.assign(e,Wr(s)),{})}function Wr(n){return{[`${n}Class`]:{get(){const{classes:t}=this;if(t.has(n))return t.get(n);{const e=t.getAttributeName(n);throw new Error(`Missing attribute "${e}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${Vt(n)}Class`]:{get(){return this.classes.has(n)}}}}function Ur(n){return Ht(n,"outlets").reduce((e,s)=>Object.assign(e,Kr(s)),{})}function Un(n,t,e){return n.application.getControllerForElementAndIdentifier(t,e)}function Kn(n,t,e){let s=Un(n,t,e);if(s||(n.application.router.proposeToConnectScopeForElementAndIdentifier(t,e),s=Un(n,t,e),s))return s}function Kr(n){const t=Be(n);return{[`${t}Outlet`]:{get(){const e=this.outlets.find(n),s=this.outlets.getSelectorForOutletName(n);if(e){const i=Kn(this,e,n);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${n}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${n}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${s}".`)}},[`${t}Outlets`]:{get(){const e=this.outlets.findAll(n);return e.length>0?e.map(s=>{const i=Kn(this,s,n);if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${n}" instance for host controller "${this.identifier}"`,s)}).filter(s=>s):[]}},[`${t}OutletElement`]:{get(){const e=this.outlets.find(n),s=this.outlets.getSelectorForOutletName(n);if(e)return e;throw new Error(`Missing outlet element "${n}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${s}".`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(n)}},[`has${Vt(t)}Outlet`]:{get(){return this.outlets.has(n)}}}}function zr(n){return Ht(n,"targets").reduce((e,s)=>Object.assign(e,qr(s)),{})}function qr(n){return{[`${n}Target`]:{get(){const t=this.targets.find(n);if(t)return t;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${Vt(n)}Target`]:{get(){return this.targets.has(n)}}}}function Yr(n){const t=vr(n,"values"),e={valueDescriptorMap:{get(){return t.reduce((s,i)=>{const r=Ds(i,this.identifier),o=this.data.getAttributeNameForKey(r.key);return Object.assign(s,{[o]:r})},{})}}};return t.reduce((s,i)=>Object.assign(s,Xr(i)),e)}function Xr(n,t){const e=Ds(n,t),{key:s,name:i,reader:r,writer:o}=e;return{[i]:{get(){const a=this.data.get(s);return a!==null?r(a):e.defaultValue},set(a){a===void 0?this.data.delete(s):this.data.set(s,o(a))}},[`has${Vt(i)}`]:{get(){return this.data.has(s)||e.hasCustomDefaultValue}}}}function Ds([n,t],e){return Qr({controller:e,token:n,typeDefinition:t})}function Qt(n){switch(n){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function Nt(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(n))return"array";if(Object.prototype.toString.call(n)==="[object Object]")return"object"}function Gr(n){const{controller:t,token:e,typeObject:s}=n,i=jn(s.type),r=jn(s.default),o=i&&r,a=i&&!r,c=!i&&r,l=Qt(s.type),u=Nt(n.typeObject.default);if(a)return l;if(c)return u;if(l!==u){const d=t?`${t}.${e}`:e;throw new Error(`The specified default value for the Stimulus Value "${d}" must match the defined type "${l}". The provided default value of "${s.default}" is of type "${u}".`)}if(o)return l}function Zr(n){const{controller:t,token:e,typeDefinition:s}=n,r=Gr({controller:t,token:e,typeObject:s}),o=Nt(s),a=Qt(s),c=r||o||a;if(c)return c;const l=t?`${t}.${s}`:e;throw new Error(`Unknown value type "${l}" for "${e}" value`)}function Jr(n){const t=Qt(n);if(t)return zn[t];const e=Re(n,"default"),s=Re(n,"type"),i=n;if(e)return i.default;if(s){const{type:r}=i,o=Qt(r);if(o)return zn[o]}return n}function Qr(n){const{token:t,typeDefinition:e}=n,s=`${Os(t)}-value`,i=Zr(n);return{type:i,key:s,name:Xe(s),get defaultValue(){return Jr(e)},get hasCustomDefaultValue(){return Nt(e)!==void 0},reader:to[i],writer:qn[i]||qn.default}}const zn={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},to={array(n){const t=JSON.parse(n);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${n}" of type "${Nt(t)}"`);return t},boolean(n){return!(n=="0"||String(n).toLowerCase()=="false")},number(n){return Number(n.replace(/_/g,""))},object(n){const t=JSON.parse(n);if(t===null||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${n}" of type "${Nt(t)}"`);return t},string(n){return n}},qn={default:eo,array:Yn,object:Yn};function Yn(n){return JSON.stringify(n)}function eo(n){return`${n}`}let K=class{constructor(t){this.context=t}static get shouldLoad(){return!0}static afterLoad(t,e){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(t,{target:e=this.element,detail:s={},prefix:i=this.identifier,bubbles:r=!0,cancelable:o=!0}={}){const a=i?`${i}:${t}`:t,c=new CustomEvent(a,{detail:s,bubbles:r,cancelable:o});return e.dispatchEvent(c),c}};K.blessings=[Hr,zr,Yr,Ur];K.targets=[];K.outlets=[];K.values={};function V(){return function({targets:t,values:e}={}){const i=class i extends K{};i.targets=Object.keys(t??{}),i.values=e??{};let s=i;return s}}function no(n,t){n.indexOf(t)===-1&&n.push(t)}const _s=(n,t,e)=>Math.min(Math.max(e,n),t),_={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},te=n=>typeof n=="number",bt=n=>Array.isArray(n)&&!te(n[0]),so=(n,t,e)=>{const s=t-n;return((e-n)%s+s)%s+n};function io(n,t){return bt(n)?n[so(0,n.length,t)]:n}const Bs=(n,t,e)=>-e*n+e*t+n,Rs=()=>{},J=n=>n,Ze=(n,t,e)=>t-n===0?1:(e-n)/(t-n);function $s(n,t){const e=n[n.length-1];for(let s=1;s<=t;s++){const i=Ze(0,t,s);n.push(Bs(e,1,i))}}function ro(n){const t=[0];return $s(t,n-1),t}function oo(n,t=ro(n.length),e=J){const s=n.length,i=s-t.length;return i>0&&$s(t,i),r=>{let o=0;for(;o<s-2&&!(r<t[o+1]);o++);let a=_s(0,1,Ze(t[o],t[o+1],r));return a=io(e,o)(a),Bs(n[o],n[o+1],a)}}const Ps=n=>Array.isArray(n)&&te(n[0]),Pe=n=>typeof n=="object"&&!!n.createAnimation,wt=n=>typeof n=="function",ao=n=>typeof n=="string",Bt={ms:n=>n*1e3,s:n=>n/1e3},Ns=(n,t,e)=>(((1-3*e+3*t)*n+(3*e-6*t))*n+3*t)*n,co=1e-7,lo=12;function uo(n,t,e,s,i){let r,o,a=0;do o=t+(e-t)/2,r=Ns(o,s,i)-n,r>0?e=o:t=o;while(Math.abs(r)>co&&++a<lo);return o}function Lt(n,t,e,s){if(n===t&&e===s)return J;const i=r=>uo(r,0,1,n,e);return r=>r===0||r===1?r:Ns(i(r),t,s)}const ho=(n,t="end")=>e=>{e=t==="end"?Math.min(e,.999):Math.max(e,.001);const s=e*n,i=t==="end"?Math.floor(s):Math.ceil(s);return _s(0,1,i/n)},fo={ease:Lt(.25,.1,.25,1),"ease-in":Lt(.42,0,1,1),"ease-in-out":Lt(.42,0,.58,1),"ease-out":Lt(0,0,.58,1)},mo=/\((.*?)\)/;function Xn(n){if(wt(n))return n;if(Ps(n))return Lt(...n);const t=fo[n];if(t)return t;if(n.startsWith("steps")){const e=mo.exec(n);if(e){const s=e[1].split(",");return ho(parseFloat(s[0]),s[1].trim())}}return J}class Is{constructor(t,e=[0,1],{easing:s,duration:i=_.duration,delay:r=_.delay,endDelay:o=_.endDelay,repeat:a=_.repeat,offset:c,direction:l="normal",autoplay:u=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=J,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,m)=>{this.resolve=h,this.reject=m}),s=s||_.easing,Pe(s)){const h=s.createAnimation(e);s=h.easing,e=h.keyframes||e,i=h.duration||i}this.repeat=a,this.easing=bt(s)?J:Xn(s),this.updateDuration(i);const d=oo(e,c,bt(s)?s.map(Xn):J);this.tick=h=>{var m;r=r;let f=0;this.pauseTime!==void 0?f=this.pauseTime:f=(h-this.startTime)*this.rate,this.t=f,f/=1e3,f=Math.max(f-r,0),this.playState==="finished"&&this.pauseTime===void 0&&(f=this.totalDuration);const g=f/this.duration;let b=Math.floor(g),p=g%1;!p&&g>=1&&(p=1),p===1&&b--;const w=b%2;(l==="reverse"||l==="alternate"&&w||l==="alternate-reverse"&&!w)&&(p=1-p);const E=f>=this.totalDuration?1:Math.min(p,1),v=d(this.easing(E));t(v),this.pauseTime===void 0&&(this.playState==="finished"||f>=this.totalDuration+o)?(this.playState="finished",(m=this.resolve)===null||m===void 0||m.call(this,v)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},u&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class po{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const we=new WeakMap;function js(n){return we.has(n)||we.set(n,{transforms:[],values:new Map}),we.get(n)}function go(n,t){return n.has(t)||n.set(t,new po),n.get(t)}const bo=["","X","Y","Z"],vo=["translate","scale","rotate","skew"],ee={x:"translateX",y:"translateY",z:"translateZ"},Gn={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:n=>n+"deg"},yo={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:n=>n+"px"},rotate:Gn,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:J},skew:Gn},It=new Map,Je=n=>`--motion-${n}`,ne=["x","y","z"];vo.forEach(n=>{bo.forEach(t=>{ne.push(n+t),It.set(Je(n+t),yo[n])})});const wo=(n,t)=>ne.indexOf(n)-ne.indexOf(t),Eo=new Set(ne),Vs=n=>Eo.has(n),Ao=(n,t)=>{ee[t]&&(t=ee[t]);const{transforms:e}=js(n);no(e,t),n.style.transform=To(e)},To=n=>n.sort(wo).reduce(xo,"").trim(),xo=(n,t)=>`${n} ${t}(var(${Je(t)}))`,Ne=n=>n.startsWith("--"),Zn=new Set;function Oo(n){if(!Zn.has(n)){Zn.add(n);try{const{syntax:t,initialValue:e}=It.has(n)?It.get(n):{};CSS.registerProperty({name:n,inherits:!1,syntax:t,initialValue:e})}catch{}}}const Ee=(n,t)=>document.createElement("div").animate(n,t),Jn={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Ee({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Ee({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Ee({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Ae={},ft={};for(const n in Jn)ft[n]=()=>(Ae[n]===void 0&&(Ae[n]=Jn[n]()),Ae[n]);const So=.015,Mo=(n,t)=>{let e="";const s=Math.round(t/So);for(let i=0;i<s;i++)e+=n(Ze(0,s-1,i))+", ";return e.substring(0,e.length-2)},Qn=(n,t)=>wt(n)?ft.linearEasing()?`linear(${Mo(n,t)})`:_.easing:Ps(n)?ko(n):n,ko=([n,t,e,s])=>`cubic-bezier(${n}, ${t}, ${e}, ${s})`;function Co(n,t){for(let e=0;e<n.length;e++)n[e]===null&&(n[e]=e?n[e-1]:t());return n}const Lo=n=>Array.isArray(n)?n:[n];function Ie(n){return ee[n]&&(n=ee[n]),Vs(n)?Je(n):n}const qt={get:(n,t)=>{t=Ie(t);let e=Ne(t)?n.style.getPropertyValue(t):getComputedStyle(n)[t];if(!e&&e!==0){const s=It.get(t);s&&(e=s.initialValue)}return e},set:(n,t,e)=>{t=Ie(t),Ne(t)?n.style.setProperty(t,e):n.style[t]=e}};function Hs(n,t=!0){if(!(!n||n.playState==="finished"))try{n.stop?n.stop():(t&&n.commitStyles(),n.cancel())}catch{}}function Fo(n,t){var e;let s=(t==null?void 0:t.toDefaultUnit)||J;const i=n[n.length-1];if(ao(i)){const r=((e=i.match(/(-?[\d.]+)([a-z%]*)/))===null||e===void 0?void 0:e[2])||"";r&&(s=o=>o+r)}return s}function Do(){return window.__MOTION_DEV_TOOLS_RECORD}function _o(n,t,e,s={},i){const r=Do(),o=s.record!==!1&&r;let a,{duration:c=_.duration,delay:l=_.delay,endDelay:u=_.endDelay,repeat:d=_.repeat,easing:h=_.easing,persist:m=!1,direction:f,offset:g,allowWebkitAcceleration:b=!1,autoplay:p=!0}=s;const w=js(n),E=Vs(t);let v=ft.waapi();E&&Ao(n,t);const y=Ie(t),x=go(w.values,y),S=It.get(y);return Hs(x.animation,!(Pe(h)&&x.generator)&&s.record!==!1),()=>{const B=()=>{var T,q;return(q=(T=qt.get(n,y))!==null&&T!==void 0?T:S==null?void 0:S.initialValue)!==null&&q!==void 0?q:0};let A=Co(Lo(e),B);const R=Fo(A,S);if(Pe(h)){const T=h.createAnimation(A,t!=="opacity",B,y,x);h=T.easing,A=T.keyframes||A,c=T.duration||c}if(Ne(y)&&(ft.cssRegisterProperty()?Oo(y):v=!1),E&&!ft.linearEasing()&&(wt(h)||bt(h)&&h.some(wt))&&(v=!1),v){S&&(A=A.map(I=>te(I)?S.toDefaultUnit(I):I)),A.length===1&&(!ft.partialKeyframes()||o)&&A.unshift(B());const T={delay:Bt.ms(l),duration:Bt.ms(c),endDelay:Bt.ms(u),easing:bt(h)?void 0:Qn(h,c),direction:f,iterations:d+1,fill:"both"};a=n.animate({[y]:A,offset:g,easing:bt(h)?h.map(I=>Qn(I,c)):void 0},T),a.finished||(a.finished=new Promise((I,H)=>{a.onfinish=I,a.oncancel=H}));const q=A[A.length-1];a.finished.then(()=>{m||(qt.set(n,y,q),a.cancel())}).catch(Rs),b||(a.playbackRate=1.000001)}else if(i&&E)A=A.map(T=>typeof T=="string"?parseFloat(T):T),A.length===1&&A.unshift(parseFloat(B())),a=new i(T=>{qt.set(n,y,R?R(T):T)},A,Object.assign(Object.assign({},s),{duration:c,easing:h}));else{const T=A[A.length-1];qt.set(n,y,S&&te(T)?S.toDefaultUnit(T):T)}return o&&r(n,t,A,{duration:c,delay:l,easing:h,repeat:d,offset:g},"motion-one"),x.setAnimation(a),a&&!p&&a.pause(),a}}const Bo=(n,t)=>n[t]?Object.assign(Object.assign({},n),n[t]):Object.assign({},n);function Ro(n,t){return typeof n=="string"?n=document.querySelectorAll(n):n instanceof Element&&(n=[n]),Array.from(n||[])}const $o=n=>n(),Ws=(n,t,e=_.duration)=>new Proxy({animations:n.map($o).filter(Boolean),duration:e,options:t},No),Po=n=>n.animations[0],No={get:(n,t)=>{const e=Po(n);switch(t){case"duration":return n.duration;case"currentTime":return Bt.s((e==null?void 0:e[t])||0);case"playbackRate":case"playState":return e==null?void 0:e[t];case"finished":return n.finished||(n.finished=Promise.all(n.animations.map(Io)).catch(Rs)),n.finished;case"stop":return()=>{n.animations.forEach(s=>Hs(s))};case"forEachNative":return s=>{n.animations.forEach(i=>s(i,n))};default:return typeof(e==null?void 0:e[t])>"u"?void 0:()=>n.animations.forEach(s=>s[t]())}},set:(n,t,e)=>{switch(t){case"currentTime":e=Bt.ms(e);case"playbackRate":for(let s=0;s<n.animations.length;s++)n.animations[s][t]=e;return!0}return!1}},Io=n=>n.finished;function jo(n,t,e){return wt(n)?n(t,e):n}function Vo(n){return function(e,s,i={}){e=Ro(e);const r=e.length,o=[];for(let a=0;a<r;a++){const c=e[a];for(const l in s){const u=Bo(i,l);u.delay=jo(u.delay,a,r);const d=_o(c,l,s[l],u,n);o.push(d)}}return Ws(o,i,i.duration)}}const Ho=Vo(Is);function Wo(n,t={}){return Ws([()=>{const e=new Is(n,[0,1],t);return e.finished.catch(()=>{}),e}],t,t.duration)}function Te(n,t,e){return(wt(n)?Wo:Ho)(n,t,e)}class Uo extends V()({targets:{icon:HTMLElement,content:HTMLElement},values:{open:Boolean}}){connect(){this.animationDurationValue=.15,this.openValue?this.open():this.close()}toggle(){this.openValue=!this.openValue}openValueChanged(t,e){t?this.open():this.close()}open(){this.hasContentTarget&&(this.revealContent(),this.hasIconTarget&&this.rotateIcon(),this.openValue=!0)}close(){this.hasContentTarget&&(this.hideContent(),this.hasIconTarget&&this.rotateIcon(),this.openValue=!1)}revealContent(){const t=this.contentTarget.scrollHeight;Te(this.contentTarget,{height:`${t}px`},{duration:this.animationDurationValue,easing:"ease-in-out"})}hideContent(){Te(this.contentTarget,{height:0},{duration:this.animationDurationValue,easing:"ease-in-out"})}rotateIcon(){Te(this.iconTarget,{rotate:`${this.openValue?180:0}deg`})}}const Ko=Object.freeze(Object.defineProperty({__proto__:null,default:Uo},Symbol.toStringTag,{value:"Module"}));function zo(n){const t=document.createElement("pre");return t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=n,t}function Us(n){if("clipboard"in navigator)return navigator.clipboard.writeText(n.textContent||"");const t=getSelection();if(t==null)return Promise.reject(new Error);t.removeAllRanges();const e=document.createRange();return e.selectNodeContents(n),t.addRange(e),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}function je(n){if("clipboard"in navigator)return navigator.clipboard.writeText(n);const t=document.body;if(!t)return Promise.reject(new Error);const e=zo(n);return t.appendChild(e),Us(e),t.removeChild(e),Promise.resolve()}async function Ks(n){const t=n.getAttribute("for"),e=n.getAttribute("value");function s(){n.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}if(n.getAttribute("aria-disabled")!=="true"){if(e)await je(e),s();else if(t){const i="getRootNode"in Element.prototype?n.getRootNode():n.ownerDocument;if(!(i instanceof Document||"ShadowRoot"in window&&i instanceof ShadowRoot))return;const r=i.getElementById(t);r&&(await qo(r),s())}}}function qo(n){return n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?je(n.value):n instanceof HTMLAnchorElement&&n.hasAttribute("href")?je(n.href):Us(n)}function Yo(n){const t=n.currentTarget;t instanceof HTMLElement&&Ks(t)}function zs(n){if(n.key===" "||n.key==="Enter"){const t=n.currentTarget;t instanceof HTMLElement&&(n.preventDefault(),Ks(t))}}function Xo(n){n.currentTarget.addEventListener("keydown",zs)}function Go(n){n.currentTarget.removeEventListener("keydown",zs)}class Zo extends HTMLElement{static define(t="clipboard-copy",e=customElements){return e.define(t,this),this}constructor(){super(),this.addEventListener("click",Yo),this.addEventListener("focus",Xo),this.addEventListener("blur",Go)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}const ts=typeof globalThis<"u"?globalThis:window;try{ts.ClipboardCopyElement=Zo.define()}catch(n){if(!(ts.DOMException&&n instanceof DOMException&&n.name==="NotSupportedError")&&!(n instanceof ReferenceError))throw n}const Jo=2e3;class Qo extends V()({targets:{initial:HTMLElement,confirmed:null}}){connect(){this.clipboardCopyElementTimers=new WeakMap}copy(t){const e=t.target,s=this.clipboardCopyElementTimers.get(e);s?(clearTimeout(s),this.clipboardCopyElementTimers.delete(e)):this.showConfirm(),this.clipboardCopyElementTimers.set(e,window.setTimeout(()=>{this.showInitial(),this.clipboardCopyElementTimers.delete(e)},Jo))}showConfirm(){this.hasConfirmedTarget&&(this.confirmedTarget.classList.remove("hidden"),this.confirmedTarget.classList.add("inline-block"),this.initialTarget.classList.add("hidden"))}showInitial(){this.initialTarget.classList.remove("hidden"),this.initialTarget.classList.add("inline-block"),this.hasConfirmedTarget&&this.confirmedTarget.classList.add("hidden")}}const ta=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"})),Z=Math.min,k=Math.max,se=Math.round,Yt=Math.floor,Q=n=>({x:n,y:n}),ea={left:"right",right:"left",bottom:"top",top:"bottom"},na={start:"end",end:"start"};function es(n,t,e){return k(n,Z(t,e))}function Wt(n,t){return typeof n=="function"?n(t):n}function tt(n){return n.split("-")[0]}function Ut(n){return n.split("-")[1]}function qs(n){return n==="x"?"y":"x"}function Ys(n){return n==="y"?"height":"width"}function ct(n){return["top","bottom"].includes(tt(n))?"y":"x"}function Xs(n){return qs(ct(n))}function sa(n,t,e){e===void 0&&(e=!1);const s=Ut(n),i=Xs(n),r=Ys(i);let o=i==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=ie(o)),[o,ie(o)]}function ia(n){const t=ie(n);return[Ve(n),t,Ve(t)]}function Ve(n){return n.replace(/start|end/g,t=>na[t])}function ra(n,t,e){const s=["left","right"],i=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return e?t?i:s:t?s:i;case"left":case"right":return t?r:o;default:return[]}}function oa(n,t,e,s){const i=Ut(n);let r=ra(tt(n),e==="start",s);return i&&(r=r.map(o=>o+"-"+i),t&&(r=r.concat(r.map(Ve)))),r}function ie(n){return n.replace(/left|right|bottom|top/g,t=>ea[t])}function aa(n){return{top:0,right:0,bottom:0,left:0,...n}}function ca(n){return typeof n!="number"?aa(n):{top:n,right:n,bottom:n,left:n}}function re(n){const{x:t,y:e,width:s,height:i}=n;return{width:s,height:i,top:e,left:t,right:t+s,bottom:e+i,x:t,y:e}}function ns(n,t,e){let{reference:s,floating:i}=n;const r=ct(t),o=Xs(t),a=Ys(o),c=tt(t),l=r==="y",u=s.x+s.width/2-i.width/2,d=s.y+s.height/2-i.height/2,h=s[a]/2-i[a]/2;let m;switch(c){case"top":m={x:u,y:s.y-i.height};break;case"bottom":m={x:u,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:d};break;case"left":m={x:s.x-i.width,y:d};break;default:m={x:s.x,y:s.y}}switch(Ut(t)){case"start":m[o]-=h*(e&&l?-1:1);break;case"end":m[o]+=h*(e&&l?-1:1);break}return m}const la=async(n,t,e)=>{const{placement:s="bottom",strategy:i="absolute",middleware:r=[],platform:o}=e,a=r.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:n,floating:t,strategy:i}),{x:u,y:d}=ns(l,s,c),h=s,m={},f=0;for(let g=0;g<a.length;g++){const{name:b,fn:p}=a[g],{x:w,y:E,data:v,reset:y}=await p({x:u,y:d,initialPlacement:s,placement:h,strategy:i,middlewareData:m,rects:l,platform:o,elements:{reference:n,floating:t}});u=w??u,d=E??d,m={...m,[b]:{...m[b],...v}},y&&f<=50&&(f++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:n,floating:t,strategy:i}):y.rects),{x:u,y:d}=ns(l,h,c)),g=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:m}};async function Qe(n,t){var e;t===void 0&&(t={});const{x:s,y:i,platform:r,rects:o,elements:a,strategy:c}=n,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Wt(t,n),f=ca(m),b=a[h?d==="floating"?"reference":"floating":d],p=re(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(b)))==null||e?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),w=d==="floating"?{x:s,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),v=await(r.isElement==null?void 0:r.isElement(E))?await(r.getScale==null?void 0:r.getScale(E))||{x:1,y:1}:{x:1,y:1},y=re(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:E,strategy:c}):w);return{top:(p.top-y.top+f.top)/v.y,bottom:(y.bottom-p.bottom+f.bottom)/v.y,left:(p.left-y.left+f.left)/v.x,right:(y.right-p.right+f.right)/v.x}}const ua=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,s;const{placement:i,middlewareData:r,rects:o,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...b}=Wt(n,t);if((e=r.arrow)!=null&&e.alignmentOffset)return{};const p=tt(i),w=ct(a),E=tt(a)===a,v=await(c.isRTL==null?void 0:c.isRTL(l.floating)),y=h||(E||!g?[ie(a)]:ia(a)),x=f!=="none";!h&&x&&y.push(...oa(a,g,f,v));const S=[a,...y],B=await Qe(t,b),A=[];let R=((s=r.flip)==null?void 0:s.overflows)||[];if(u&&A.push(B[p]),d){const H=sa(i,o,v);A.push(B[H[0]],B[H[1]])}if(R=[...R,{placement:i,overflows:A}],!A.every(H=>H<=0)){var T,q;const H=(((T=r.flip)==null?void 0:T.index)||0)+1,hn=S[H];if(hn)return{data:{index:H,overflows:R},reset:{placement:hn}};let Tt=(q=R.filter(ut=>ut.overflows[0]<=0).sort((ut,Y)=>ut.overflows[1]-Y.overflows[1])[0])==null?void 0:q.placement;if(!Tt)switch(m){case"bestFit":{var I;const ut=(I=R.filter(Y=>{if(x){const X=ct(Y.placement);return X===w||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,fi)=>X+fi,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:I[0];ut&&(Tt=ut);break}case"initialPlacement":Tt=a;break}if(i!==Tt)return{reset:{placement:Tt}}}return{}}}};async function ha(n,t){const{placement:e,platform:s,elements:i}=n,r=await(s.isRTL==null?void 0:s.isRTL(i.floating)),o=tt(e),a=Ut(e),c=ct(e)==="y",l=["left","top"].includes(o)?-1:1,u=r&&c?-1:1,d=Wt(t,n);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),c?{x:m*u,y:h*l}:{x:h*l,y:m*u}}const da=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,s;const{x:i,y:r,placement:o,middlewareData:a}=t,c=await ha(t,n);return o===((e=a.offset)==null?void 0:e.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:o}}}}},fa=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:e,y:s,placement:i}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:p,y:w}=b;return{x:p,y:w}}},...c}=Wt(n,t),l={x:e,y:s},u=await Qe(t,c),d=ct(tt(i)),h=qs(d);let m=l[h],f=l[d];if(r){const b=h==="y"?"top":"left",p=h==="y"?"bottom":"right",w=m+u[b],E=m-u[p];m=es(w,m,E)}if(o){const b=d==="y"?"top":"left",p=d==="y"?"bottom":"right",w=f+u[b],E=f-u[p];f=es(w,f,E)}const g=a.fn({...t,[h]:m,[d]:f});return{...g,data:{x:g.x-e,y:g.y-s}}}}},ma=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){const{placement:e,rects:s,platform:i,elements:r}=t,{apply:o=()=>{},...a}=Wt(n,t),c=await Qe(t,a),l=tt(e),u=Ut(e),d=ct(e)==="y",{width:h,height:m}=s.floating;let f,g;l==="top"||l==="bottom"?(f=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=l,f=u==="end"?"top":"bottom");const b=m-c.top-c.bottom,p=h-c.left-c.right,w=Z(m-c[f],b),E=Z(h-c[g],p),v=!t.middlewareData.shift;let y=w,x=E;if(d?x=u||v?Z(E,p):p:y=u||v?Z(w,b):b,v&&!u){const B=k(c.left,0),A=k(c.right,0),R=k(c.top,0),T=k(c.bottom,0);d?x=h-2*(B!==0||A!==0?B+A:k(c.left,c.right)):y=m-2*(R!==0||T!==0?R+T:k(c.top,c.bottom))}await o({...t,availableWidth:x,availableHeight:y});const S=await i.getDimensions(r.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function At(n){return Gs(n)?(n.nodeName||"").toLowerCase():"#document"}function L(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function z(n){var t;return(t=(Gs(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function Gs(n){return n instanceof Node||n instanceof L(n).Node}function P(n){return n instanceof Element||n instanceof L(n).Element}function j(n){return n instanceof HTMLElement||n instanceof L(n).HTMLElement}function ss(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof L(n).ShadowRoot}function Kt(n){const{overflow:t,overflowX:e,overflowY:s,display:i}=N(n);return/auto|scroll|overlay|hidden|clip/.test(t+s+e)&&!["inline","contents"].includes(i)}function pa(n){return["table","td","th"].includes(At(n))}function de(n){return[":popover-open",":modal"].some(t=>{try{return n.matches(t)}catch{return!1}})}function tn(n){const t=en(),e=P(n)?N(n):n;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function ga(n){let t=et(n);for(;j(t)&&!Et(t);){if(tn(t))return t;if(de(t))return null;t=et(t)}return null}function en(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Et(n){return["html","body","#document"].includes(At(n))}function N(n){return L(n).getComputedStyle(n)}function fe(n){return P(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function et(n){if(At(n)==="html")return n;const t=n.assignedSlot||n.parentNode||ss(n)&&n.host||z(n);return ss(t)?t.host:t}function Zs(n){const t=et(n);return Et(t)?n.ownerDocument?n.ownerDocument.body:n.body:j(t)&&Kt(t)?t:Zs(t)}function jt(n,t,e){var s;t===void 0&&(t=[]),e===void 0&&(e=!0);const i=Zs(n),r=i===((s=n.ownerDocument)==null?void 0:s.body),o=L(i);if(r){const a=He(o);return t.concat(o,o.visualViewport||[],Kt(i)?i:[],a&&e?jt(a):[])}return t.concat(i,jt(i,[],e))}function He(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Js(n){const t=N(n);let e=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=j(n),r=i?n.offsetWidth:e,o=i?n.offsetHeight:s,a=se(e)!==r||se(s)!==o;return a&&(e=r,s=o),{width:e,height:s,$:a}}function nn(n){return P(n)?n:n.contextElement}function vt(n){const t=nn(n);if(!j(t))return Q(1);const e=t.getBoundingClientRect(),{width:s,height:i,$:r}=Js(t);let o=(r?se(e.width):e.width)/s,a=(r?se(e.height):e.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const ba=Q(0);function Qs(n){const t=L(n);return!en()||!t.visualViewport?ba:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(n,t,e){return t===void 0&&(t=!1),!e||t&&e!==L(n)?!1:t}function lt(n,t,e,s){t===void 0&&(t=!1),e===void 0&&(e=!1);const i=n.getBoundingClientRect(),r=nn(n);let o=Q(1);t&&(s?P(s)&&(o=vt(s)):o=vt(n));const a=va(r,e,s)?Qs(r):Q(0);let c=(i.left+a.x)/o.x,l=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(r){const h=L(r),m=s&&P(s)?L(s):s;let f=h,g=He(f);for(;g&&s&&m!==f;){const b=vt(g),p=g.getBoundingClientRect(),w=N(g),E=p.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,v=p.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=E,l+=v,f=L(g),g=He(f)}}return re({width:u,height:d,x:c,y:l})}function ya(n){let{elements:t,rect:e,offsetParent:s,strategy:i}=n;const r=i==="fixed",o=z(s),a=t?de(t.floating):!1;if(s===o||a&&r)return e;let c={scrollLeft:0,scrollTop:0},l=Q(1);const u=Q(0),d=j(s);if((d||!d&&!r)&&((At(s)!=="body"||Kt(o))&&(c=fe(s)),j(s))){const h=lt(s);l=vt(s),u.x=h.x+s.clientLeft,u.y=h.y+s.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-c.scrollLeft*l.x+u.x,y:e.y*l.y-c.scrollTop*l.y+u.y}}function wa(n){return Array.from(n.getClientRects())}function ti(n){return lt(z(n)).left+fe(n).scrollLeft}function Ea(n){const t=z(n),e=fe(n),s=n.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),r=k(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-e.scrollLeft+ti(n);const a=-e.scrollTop;return N(s).direction==="rtl"&&(o+=k(t.clientWidth,s.clientWidth)-i),{width:i,height:r,x:o,y:a}}function Aa(n,t){const e=L(n),s=z(n),i=e.visualViewport;let r=s.clientWidth,o=s.clientHeight,a=0,c=0;if(i){r=i.width,o=i.height;const l=en();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:a,y:c}}function Ta(n,t){const e=lt(n,!0,t==="fixed"),s=e.top+n.clientTop,i=e.left+n.clientLeft,r=j(n)?vt(n):Q(1),o=n.clientWidth*r.x,a=n.clientHeight*r.y,c=i*r.x,l=s*r.y;return{width:o,height:a,x:c,y:l}}function is(n,t,e){let s;if(t==="viewport")s=Aa(n,e);else if(t==="document")s=Ea(z(n));else if(P(t))s=Ta(t,e);else{const i=Qs(n);s={...t,x:t.x-i.x,y:t.y-i.y}}return re(s)}function ei(n,t){const e=et(n);return e===t||!P(e)||Et(e)?!1:N(e).position==="fixed"||ei(e,t)}function xa(n,t){const e=t.get(n);if(e)return e;let s=jt(n,[],!1).filter(a=>P(a)&&At(a)!=="body"),i=null;const r=N(n).position==="fixed";let o=r?et(n):n;for(;P(o)&&!Et(o);){const a=N(o),c=tn(o);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Kt(o)&&!c&&ei(n,o))?s=s.filter(u=>u!==o):i=a,o=et(o)}return t.set(n,s),s}function Oa(n){let{element:t,boundary:e,rootBoundary:s,strategy:i}=n;const o=[...e==="clippingAncestors"?de(t)?[]:xa(t,this._c):[].concat(e),s],a=o[0],c=o.reduce((l,u)=>{const d=is(t,u,i);return l.top=k(d.top,l.top),l.right=Z(d.right,l.right),l.bottom=Z(d.bottom,l.bottom),l.left=k(d.left,l.left),l},is(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Sa(n){const{width:t,height:e}=Js(n);return{width:t,height:e}}function Ma(n,t,e){const s=j(t),i=z(t),r=e==="fixed",o=lt(n,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=Q(0);if(s||!s&&!r)if((At(t)!=="body"||Kt(i))&&(a=fe(t)),s){const d=lt(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&(c.x=ti(i));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function xe(n){return N(n).position==="static"}function rs(n,t){return!j(n)||N(n).position==="fixed"?null:t?t(n):n.offsetParent}function ni(n,t){const e=L(n);if(de(n))return e;if(!j(n)){let i=et(n);for(;i&&!Et(i);){if(P(i)&&!xe(i))return i;i=et(i)}return e}let s=rs(n,t);for(;s&&pa(s)&&xe(s);)s=rs(s,t);return s&&Et(s)&&xe(s)&&!tn(s)?e:s||ga(n)||e}const ka=async function(n){const t=this.getOffsetParent||ni,e=this.getDimensions,s=await e(n.floating);return{reference:Ma(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ca(n){return N(n).direction==="rtl"}const La={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:z,getClippingRect:Oa,getOffsetParent:ni,getElementRects:ka,getClientRects:wa,getDimensions:Sa,getScale:vt,isElement:P,isRTL:Ca};function Fa(n,t){let e=null,s;const i=z(n);function r(){var a;clearTimeout(s),(a=e)==null||a.disconnect(),e=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:l,top:u,width:d,height:h}=n.getBoundingClientRect();if(a||t(),!d||!h)return;const m=Yt(u),f=Yt(i.clientWidth-(l+d)),g=Yt(i.clientHeight-(u+h)),b=Yt(l),w={rootMargin:-m+"px "+-f+"px "+-g+"px "+-b+"px",threshold:k(0,Z(1,c))||1};let E=!0;function v(y){const x=y[0].intersectionRatio;if(x!==c){if(!E)return o();x?o(!1,x):s=setTimeout(()=>{o(!1,1e-7)},1e3)}E=!1}try{e=new IntersectionObserver(v,{...w,root:i.ownerDocument})}catch{e=new IntersectionObserver(v,w)}e.observe(n)}return o(!0),r}function sn(n,t,e,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=nn(n),u=i||r?[...l?jt(l):[],...jt(t)]:[];u.forEach(p=>{i&&p.addEventListener("scroll",e,{passive:!0}),r&&p.addEventListener("resize",e)});const d=l&&a?Fa(l,e):null;let h=-1,m=null;o&&(m=new ResizeObserver(p=>{let[w]=p;w&&w.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),e()}),l&&!c&&m.observe(l),m.observe(t));let f,g=c?lt(n):null;c&&b();function b(){const p=lt(n);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&e(),g=p,f=requestAnimationFrame(b)}return e(),()=>{var p;u.forEach(w=>{i&&w.removeEventListener("scroll",e),r&&w.removeEventListener("resize",e)}),d==null||d(),(p=m)==null||p.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const rn=da,on=fa,an=ua,Da=ma,cn=(n,t,e)=>{const s=new Map,i={platform:La,...e},r={...i.platform,_c:s};return la(n,t,{...i,platform:r})},os=(n,t)=>{const e=n[t];return typeof e=="function"?e:(...s)=>{}},We=(n,t,e)=>{let s=n;return e===!0?s=`${t.identifier}:${n}`:typeof e=="string"&&(s=`${e}:${n}`),s},Ue=(n,t,e)=>{const{bubbles:s,cancelable:i,composed:r}=t||{bubbles:!0,cancelable:!0,composed:!0};return t&&Object.assign(e,{originalEvent:t}),new CustomEvent(n,{bubbles:s,cancelable:i,composed:r,detail:e})};function _a(n){const t=n.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth,i=t.top<=e&&t.top+t.height>0,r=t.left<=s&&t.left+t.width>0;return i&&r}function Ba(n,t){var e={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&t.indexOf(s)<0&&(e[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(n);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(n,s[i])&&(e[s[i]]=n[s[i]]);return e}const Oe={debug:!1,logger:console,dispatchEvent:!0,eventPrefix:!0};class Ra{constructor(t,e={}){var s,i,r;this.log=(c,l)=>{this.debug&&(this.logger.groupCollapsed(`%c${this.controller.identifier} %c#${c}`,"color: #3B82F6","color: unset"),this.logger.log(Object.assign({controllerId:this.controllerId},l)),this.logger.groupEnd())},this.warn=c=>{this.logger.warn(`%c${this.controller.identifier} %c${c}`,"color: #3B82F6; font-weight: bold","color: unset")},this.dispatch=(c,l={})=>{if(this.dispatchEvent){const{event:u}=l,d=Ba(l,["event"]),h=this.extendedEvent(c,u||null,d);this.targetElement.dispatchEvent(h),this.log("dispatchEvent",Object.assign({eventName:h.type},d))}},this.call=(c,l={})=>{const u=this.controller[c];if(typeof u=="function")return u.call(this.controller,l)},this.extendedEvent=(c,l,u)=>{const{bubbles:d,cancelable:h,composed:m}=l||{bubbles:!0,cancelable:!0,composed:!0};return l&&Object.assign(u,{originalEvent:l}),new CustomEvent(this.composeEventName(c),{bubbles:d,cancelable:h,composed:m,detail:u})},this.composeEventName=c=>{let l=c;return this.eventPrefix===!0?l=`${this.controller.identifier}:${c}`:typeof this.eventPrefix=="string"&&(l=`${this.eventPrefix}:${c}`),l},this.debug=(i=(s=e==null?void 0:e.debug)!==null&&s!==void 0?s:t.application.stimulusUseDebug)!==null&&i!==void 0?i:Oe.debug,this.logger=(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:Oe.logger,this.controller=t,this.controllerId=t.element.id||t.element.dataset.id,this.targetElement=(e==null?void 0:e.element)||t.element;const{dispatchEvent:o,eventPrefix:a}=Object.assign({},Oe,e);Object.assign(this,{dispatchEvent:o,eventPrefix:a}),this.controllerInitialize=t.initialize.bind(t),this.controllerConnect=t.connect.bind(t),this.controllerDisconnect=t.disconnect.bind(t)}}const $a={events:["click","touchend"],onlyVisible:!0,dispatchEvent:!0,eventPrefix:!0},si=(n,t={})=>{const e=n,{onlyVisible:s,dispatchEvent:i,events:r,eventPrefix:o}=Object.assign({},$a,t),a=d=>{const h=(t==null?void 0:t.element)||e.element;if(!(h.contains(d.target)||!_a(h)&&s)&&(e.clickOutside&&e.clickOutside(d),i)){const m=We("click:outside",e,o),f=Ue(m,d,{controller:e});h.dispatchEvent(f)}},c=()=>{r==null||r.forEach(d=>{window.addEventListener(d,a,!0)})},l=()=>{r==null||r.forEach(d=>{window.removeEventListener(d,a,!0)})},u=e.disconnect.bind(e);return Object.assign(e,{disconnect(){l(),u()}}),c(),[c,l]};class Pa extends K{}Pa.debounces=[];const Na=200,as=(n,t=Na)=>{let e=null;return function(){const s=Array.from(arguments),i=this,r=s.map(a=>a.params),o=()=>(s.forEach((a,c)=>a.params=r[c]),n.apply(i,s));e&&clearTimeout(e),e=setTimeout(o,t)}},Ia=(n,t)=>{const e=n;e.constructor.debounces.forEach(i=>{if(typeof i=="string"&&(e[i]=as(e[i],void 0)),typeof i=="object"){const{name:r,wait:o}=i;if(!r)return;e[r]=as(e[r],o||void 0)}})},ja={dispatchEvent:!0,eventPrefix:!0,visibleAttribute:"isVisible"},Va=(n,t={})=>{const e=n,{dispatchEvent:s,eventPrefix:i,visibleAttribute:r}=Object.assign({},ja,t),o=(t==null?void 0:t.element)||e.element;e.intersectionElements||(e.intersectionElements=[]),e.intersectionElements.push(o);const a=v=>{const[y]=v;y.isIntersecting?l(y):o.hasAttribute(r)&&u(y)},c=new IntersectionObserver(a,t),l=v=>{if(o.setAttribute(r,"true"),os(e,"appear").call(e,v,c),s){const y=We("appear",e,i),x=Ue(y,null,{controller:e,entry:v,observer:c});o.dispatchEvent(x)}},u=v=>{if(o.removeAttribute(r),os(e,"disappear").call(e,v,c),s){const y=We("disappear",e,i),x=Ue(y,null,{controller:e,entry:v,observer:c});o.dispatchEvent(x)}},d=e.disconnect.bind(e),h=()=>{f(),d()},m=()=>{c.observe(o)},f=()=>{c.unobserve(o)},g=()=>e.intersectionElements.filter(v=>v.hasAttribute(r)).length===0,b=()=>e.intersectionElements.filter(v=>v.hasAttribute(r)).length===1,p=()=>e.intersectionElements.some(v=>v.hasAttribute(r)),w=()=>e.intersectionElements.every(v=>v.hasAttribute(r));return Object.assign(e,{isVisible:w,noneVisible:g,oneVisible:b,atLeastOneVisible:p,allVisible:w,disconnect:h}),m(),[m,f]};class Ha extends Ra{constructor(t,e={}){super(t,e),this.observe=()=>{try{this.observer.observe(this.targetElement,this.options)}catch(s){this.controller.application.handleError(s,"At a minimum, one of childList, attributes, and/or characterData must be true",{})}},this.unobserve=()=>{this.observer.disconnect()},this.mutation=s=>{this.call("mutate",s),this.log("mutate",{entries:s}),this.dispatch("mutate",{entries:s})},this.targetElement=(e==null?void 0:e.element)||t.element,this.controller=t,this.options=e,this.observer=new MutationObserver(this.mutation),this.enhanceController(),this.observe()}enhanceController(){const t=this.controller.disconnect.bind(this.controller),e=()=>{this.unobserve(),t()};Object.assign(this.controller,{disconnect:e})}}const ln=(n,t={})=>{const e=new Ha(n,t);return[e.observe,e.unobserve]};class Wa extends K{}Wa.throttles=[];class Ua extends V()({targets:{wrapper:HTMLDetailsElement,button:HTMLElement,popover:Le,options:HTMLDivElement},values:{clamped:Boolean,placement:String,dynamicLabelPrefix:String}}){constructor(){super(...arguments),this.changedIds=new Set}clickOutside(){this.element.open=!1,this.setupAutoUpdate(),this.close()}close(){this.changedIds.size>0&&(this.dispatch("changed"),this.changedIds.clear())}connect(){si(this),ln(this,{childList:!0,subtree:!0}),this.setupAutoUpdate(),this.setupForm()}disconnect(){var t;(t=this.unsubAutoUpdate)==null||t.call(this)}setupForm(){for(const t of["checkbox","radio"])for(const e of this.popoverTarget.querySelectorAll(`input[type="${t}"]`))e.addEventListener("change",s=>{const i=s.target;this.changedIds.has(i)?this.changedIds.delete(i):this.changedIds.add(i),this.dispatch("clicked",{detail:i})})}setupAutoUpdate(){var e;if(!this.element.open){(e=this.unsubAutoUpdate)==null||e.call(this);return}const t=()=>{const s=this.optionsTarget,i=this.clampedValue;cn(this.buttonTarget,this.popoverTarget,{middleware:[rn(6),an(),on({padding:6}),Da({apply({availableHeight:r}){let o=r-6;i&&o>400&&(o=400),Object.assign(s.style,{maxHeight:`${o}px`})}})],placement:this.placementValue,strategy:"fixed"}).then(({x:r,y:o})=>{Object.assign(this.popoverTarget.style,{left:`${r}px`,top:`${o}px`})})};t(),this.unsubAutoUpdate=sn(this.buttonTarget,this.popoverTarget,t)}updateButtonLabel(t){var r;const s=t.target.querySelector("input[type=radio]:checked");if(!s)return;const i=((r=s.labels)==null?void 0:r.item(0)).textContent;this.buttonTarget.querySelector('[data-ariadne-ui-button-target="content"]').textContent=`${this.dynamicLabelPrefixValue}${i}`}toggle(){this.element.open=!this.element.open,this.setupAutoUpdate()}}const Ka=Object.freeze(Object.defineProperty({__proto__:null,default:Ua},Symbol.toStringTag,{value:"Module"}));function za(n){if(Array.isArray(n)){for(var t=0,e=Array(n.length);t<n.length;t++)e[t]=n[t];return e}else return Array.from(n)}var un=!1;if(typeof window<"u"){var cs={get passive(){un=!0}};window.addEventListener("testPassive",null,cs),window.removeEventListener("testPassive",null,cs)}var oe=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),at=[],ae=!1,ii=-1,Rt=void 0,rt=void 0,$t=void 0,ri=function(t){return at.some(function(e){return!!(e.options.allowTouchMove&&e.options.allowTouchMove(t))})},ce=function(t){var e=t||window.event;return ri(e.target)||e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)},qa=function(t){if($t===void 0){var e=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;if(e&&s>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);$t=document.body.style.paddingRight,document.body.style.paddingRight=i+s+"px"}}Rt===void 0&&(Rt=document.body.style.overflow,document.body.style.overflow="hidden")},Ya=function(){$t!==void 0&&(document.body.style.paddingRight=$t,$t=void 0),Rt!==void 0&&(document.body.style.overflow=Rt,Rt=void 0)},Xa=function(){return window.requestAnimationFrame(function(){if(rt===void 0){rt={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,e=t.scrollY,s=t.scrollX,i=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-e,document.body.style.left=-s,setTimeout(function(){return window.requestAnimationFrame(function(){var r=i-window.innerHeight;r&&e>=i&&(document.body.style.top=-(e+r))})},300)}})},Ga=function(){if(rt!==void 0){var t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);document.body.style.position=rt.position,document.body.style.top=rt.top,document.body.style.left=rt.left,window.scrollTo(e,t),rt=void 0}},Za=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},Ja=function(t,e){var s=t.targetTouches[0].clientY-ii;return ri(t.target)?!1:e&&e.scrollTop===0&&s>0||Za(e)&&s<0?ce(t):(t.stopPropagation(),!0)},Qa=function(t,e){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!at.some(function(i){return i.targetElement===t})){var s={targetElement:t,options:e||{}};at=[].concat(za(at),[s]),oe?Xa():qa(e),oe&&(t.ontouchstart=function(i){i.targetTouches.length===1&&(ii=i.targetTouches[0].clientY)},t.ontouchmove=function(i){i.targetTouches.length===1&&Ja(i,t)},ae||(document.addEventListener("touchmove",ce,un?{passive:!1}:void 0),ae=!0))}},tc=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}at=at.filter(function(e){return e.targetElement!==t}),oe&&(t.ontouchstart=null,t.ontouchmove=null,ae&&at.length===0&&(document.removeEventListener("touchmove",ce,un?{passive:!1}:void 0),ae=!1)),oe?Ga():Ya()};class ec extends V()({targets:{dialog:HTMLDialogElement}}){close(){this.dialogTarget.open&&(this.dialogTarget.close(),tc(this.dialogTarget))}disconnect(){this.close()}open(){this.dialogTarget.showModal(),Qa(this.dialogTarget,{reserveScrollBarGap:!0})}triggerClick(){this.dialogTarget.open?this.close():this.open()}windowClick(t){t.target===this.dialogTarget&&this.close()}}const nc=Object.freeze(Object.defineProperty({__proto__:null,default:ec},Symbol.toStringTag,{value:"Module"}));async function sc(n,t=null){n.classList.remove("hidden"),await oi("enter",n,t)}async function ic(n,t=null){await oi("leave",n,t),n.classList.add("hidden")}async function oi(n,t,e){const s=t.dataset,i=e?`${e}-${n}`:n;let r=`transition${n.charAt(0).toUpperCase()+n.slice(1)}`;const o=s[r]?s[r].split(" "):[i],a=s[`${r}Start`]?s[`${r}Start`].split(" "):[`${i}-start`],c=s[`${r}End`]?s[`${r}End`].split(" "):[`${i}-end`];Se(t,o),Se(t,a),await rc(),Me(t,a),Se(t,c),await oc(t),Me(t,c),Me(t,o)}function Se(n,t){n.classList.add(...t)}function Me(n,t){n.classList.remove(...t)}function rc(){return new Promise(n=>{requestAnimationFrame(()=>{requestAnimationFrame(n)})})}function oc(n){return new Promise(t=>{const e=getComputedStyle(n).transitionDuration.split(",")[0],s=Number(e.replace("s",""))*1e3;setTimeout(()=>{t()},s)})}const ue=class ue extends K{async connect(){await this.show();const t=()=>{};setTimeout(()=>{this.hide().then(t).catch(t)},this.timerValue)}async disconnect(){await this.hide()}async hide(){await ic(this.element),this.hasHiddenClass?this.element.classList.add(this.hiddenClass):this.element.classList.add("hidden"),this.element.remove()}async show(){this.hasHiddenClass?this.element.classList.remove(this.hiddenClass):this.element.classList.remove("hidden"),await sc(this.element)}};ue.classes=["ariadne-hidden"],ue.values={timer:{default:4e3,type:Number}};let Ke=ue;const ac=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));class cc extends V()({targets:{emptyRoot:null,input:HTMLInputElement,searchString:null}}){handleNewQuery(t){let e=!1;for(const{el:s,searchString:i}of this.items){const r=i.includes(t.trim().toLowerCase());!e&&r&&(e=!0),r?s.classList.remove("ariadne-hidden"):s.classList.add("ariadne-hidden")}e?this.emptyRootTarget.classList.add("ariadne-hidden"):this.emptyRootTarget.classList.remove("ariadne-hidden")}connect(){this.items=this.searchStringTargets.map(t=>({el:t,searchString:(t.textContent??"").trim().toLowerCase()})),Va(this)}appear(t,e){this.reset()}handleInput(){this.hasSearchStringTarget&&this.handleNewQuery(this.inputTarget.value)}reset(){this.handleNewQuery(""),this.hasInputTarget&&(this.inputTarget.value="")}}const lc=Object.freeze(Object.defineProperty({__proto__:null,default:cc},Symbol.toStringTag,{value:"Module"}));class uc extends V()({targets:{anchor:null,popover:null},values:{clamped:Boolean,placement:String}}){constructor(){super(...arguments),this.changedIds=new Set,this.clickHandlers=[]}setupClickHandlers(){const t=()=>this.toggle();for(const e of this.clickHandlers)e();this.clickHandlers=[];for(const e of this.anchorTarget.querySelectorAll('button, [tabindex]:not([tabindex="-1"])'))e.addEventListener("click",t),this.clickHandlers.push(()=>e.removeEventListener("click",t))}checkboxClicked(t){const s=t.target.value;this.changedIds.has(s)?this.changedIds.delete(s):this.changedIds.add(s),this.dispatch("clicked",{detail:s})}clickOutside(){this.setupAutoUpdate(),this.close()}close(){this.element.open=!1}connect(){si(this),ln(this,{childList:!0,subtree:!0}),this.setupAutoUpdate(),this.setupClickHandlers()}disconnect(){var t;(t=this.unsubAutoUpdate)==null||t.call(this)}setupAutoUpdate(){var e;if(!this.element.open){(e=this.unsubAutoUpdate)==null||e.call(this);return}const t=()=>{cn(this.anchorTarget,this.popoverTarget,{middleware:[rn(6),an(),on({padding:6})],placement:this.placementValue,strategy:"fixed"}).then(({x:s,y:i})=>{Object.assign(this.popoverTarget.style,{left:`${s}px`,top:`${i}px`})})};t(),this.unsubAutoUpdate=sn(this.anchorTarget,this.popoverTarget,t)}toggle(){this.element.open=!this.element.open,this.setupAutoUpdate()}}const hc=Object.freeze(Object.defineProperty({__proto__:null,default:uc},Symbol.toStringTag,{value:"Module"}));class dc extends V()({targets:{button:HTMLButtonElement,popover:HTMLElement},values:{placement:String}}){connect(){this.popoverTarget.addEventListener("toggle",t=>{t.newState==="open"&&this.updatePosition()})}updatePosition(){sn(this.buttonTarget,this.popoverTarget,()=>{cn(this.buttonTarget,this.popoverTarget,{placement:this.placementValue,middleware:[rn(5),an(),on({padding:5})]}).then(({x:t,y:e})=>{Object.assign(this.buttonTarget.style,{left:`${t}px`,top:`${e}px`})})})}}const fc=Object.freeze(Object.defineProperty({__proto__:null,default:dc},Symbol.toStringTag,{value:"Module"}));var mc=function(n,t,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e},ls=function(n,t,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!s:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(n):s?s.value:t.get(n)},Ft;class pc{formatToParts(t){const e=[];for(const s of t)e.push({type:"element",value:s}),e.push({type:"literal",value:", "});return e.slice(0,-1)}}const gc=typeof Intl<"u"&&Intl.ListFormat||pc,bc=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],vc={minimumIntegerDigits:2};class yc{constructor(t,e={}){Ft.set(this,void 0);let s=String(e.style||"short");s!=="long"&&s!=="short"&&s!=="narrow"&&s!=="digital"&&(s="short");let i=s==="digital"?"numeric":s;const r=e.hours||i;i=r==="2-digit"?"numeric":r;const o=e.minutes||i;i=o==="2-digit"?"numeric":o;const a=e.seconds||i;i=a==="2-digit"?"numeric":a;const c=e.milliseconds||i;mc(this,Ft,{locale:t,style:s,years:e.years||s==="digital"?"short":s,yearsDisplay:e.yearsDisplay==="always"?"always":"auto",months:e.months||s==="digital"?"short":s,monthsDisplay:e.monthsDisplay==="always"?"always":"auto",weeks:e.weeks||s==="digital"?"short":s,weeksDisplay:e.weeksDisplay==="always"?"always":"auto",days:e.days||s==="digital"?"short":s,daysDisplay:e.daysDisplay==="always"?"always":"auto",hours:r,hoursDisplay:e.hoursDisplay==="always"||s==="digital"?"always":"auto",minutes:o,minutesDisplay:e.minutesDisplay==="always"||s==="digital"?"always":"auto",seconds:a,secondsDisplay:e.secondsDisplay==="always"||s==="digital"?"always":"auto",milliseconds:c,millisecondsDisplay:e.millisecondsDisplay==="always"?"always":"auto"},"f")}resolvedOptions(){return ls(this,Ft,"f")}formatToParts(t){const e=[],s=ls(this,Ft,"f"),i=s.style,r=s.locale;for(const[o,a]of bc){const c=t[o];if(s[`${o}Display`]==="auto"&&!c)continue;const l=s[o],u=l==="2-digit"?vc:l==="numeric"?{}:{style:"unit",unit:a,unitDisplay:l};e.push(new Intl.NumberFormat(r,u).format(c))}return new gc(r,{type:"unit",style:i==="digital"?"short":i}).formatToParts(e)}format(t){return this.formatToParts(t).map(e=>e.value).join("")}}Ft=new WeakMap;const ai=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,le=["year","month","week","day","hour","minute","second","millisecond"],wc=n=>ai.test(n);class C{constructor(t=0,e=0,s=0,i=0,r=0,o=0,a=0,c=0){this.years=t,this.months=e,this.weeks=s,this.days=i,this.hours=r,this.minutes=o,this.seconds=a,this.milliseconds=c,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=this.sign===0}abs(){return new C(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var e;if(typeof t=="string"){const s=String(t).trim(),i=s.startsWith("-")?-1:1,r=(e=s.match(ai))===null||e===void 0?void 0:e.slice(1).map(o=>(Number(o)||0)*i);return r?new C(...r):new C}else if(typeof t=="object"){const{years:s,months:i,weeks:r,days:o,hours:a,minutes:c,seconds:l,milliseconds:u}=t;return new C(s,i,r,o,a,c,l,u)}throw new RangeError("invalid duration")}static compare(t,e){const s=Date.now(),i=Math.abs(us(s,C.from(t)).getTime()-s),r=Math.abs(us(s,C.from(e)).getTime()-s);return i>r?-1:i<r?1:0}toLocaleString(t,e){return new yc(t,e).format(this)}}function us(n,t){const e=new Date(n);return e.setFullYear(e.getFullYear()+t.years),e.setMonth(e.getMonth()+t.months),e.setDate(e.getDate()+t.weeks*7+t.days),e.setHours(e.getHours()+t.hours),e.setMinutes(e.getMinutes()+t.minutes),e.setSeconds(e.getSeconds()+t.seconds),e}function Ec(n,t="second",e=Date.now()){const s=n.getTime()-e;if(s===0)return new C;const i=Math.sign(s),r=Math.abs(s),o=Math.floor(r/1e3),a=Math.floor(o/60),c=Math.floor(a/60),l=Math.floor(c/24),u=Math.floor(l/30),d=Math.floor(u/12),h=le.indexOf(t)||le.length;return new C(h>=0?d*i:0,h>=1?(u-d*12)*i:0,0,h>=3?(l-u*30)*i:0,h>=4?(c-l*24)*i:0,h>=5?(a-c*60)*i:0,h>=6?(o-a*60)*i:0,h>=7?(r-o*1e3)*i:0)}function ci(n,{relativeTo:t=Date.now()}={}){if(t=new Date(t),n.blank)return n;const e=n.sign;let s=Math.abs(n.years),i=Math.abs(n.months),r=Math.abs(n.weeks),o=Math.abs(n.days),a=Math.abs(n.hours),c=Math.abs(n.minutes),l=Math.abs(n.seconds),u=Math.abs(n.milliseconds);u>=900&&(l+=Math.round(u/1e3)),(l||c||a||o||r||i||s)&&(u=0),l>=55&&(c+=Math.round(l/60)),(c||a||o||r||i||s)&&(l=0),c>=55&&(a+=Math.round(c/60)),(a||o||r||i||s)&&(c=0),o&&a>=12&&(o+=Math.round(a/24)),!o&&a>=21&&(o+=Math.round(a/24)),(o||r||i||s)&&(a=0);const d=t.getFullYear(),h=t.getMonth(),m=t.getDate();if(o>=27||s+i+o){const f=new Date(t);f.setDate(1),f.setMonth(h+i*e+1),f.setDate(0);const g=Math.max(0,m-f.getDate()),b=new Date(t);b.setFullYear(d+s*e),b.setDate(m-g),b.setMonth(h+i*e),b.setDate(m-g+o*e);const p=b.getFullYear()-t.getFullYear(),w=b.getMonth()-t.getMonth(),E=Math.abs(Math.round((Number(b)-Number(t))/864e5))+g,v=Math.abs(p*12+w);E<27?(o>=6?(r+=Math.round(o/7),o=0):o=E,i=s=0):v<11?(i=v,s=0):(i=0,s=p*e),(i||s)&&(o=0)}return s&&(i=0),r>=4&&(i+=Math.round(r/4)),(i||s)&&(r=0),o&&r&&!i&&!s&&(r+=Math.round(o/7),o=0),new C(s*e,i*e,r*e,o*e,a*e,c*e,l*e,u*e)}function Ac(n,t){const e=ci(n,t);if(e.blank)return[0,"second"];for(const s of le){if(s==="millisecond")continue;const i=e[`${s}s`];if(i)return[i,s]}return[0,"second"]}var O=function(n,t,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!s:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(n):s?s.value:t.get(n)},Xt=function(n,t,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e},D,Dt,_t,Ot,it,ze,li,ui,hi,di,dt;const Tc=globalThis.HTMLElement||null,ke=new C,hs=new C(0,0,0,0,0,1);class xc extends Event{constructor(t,e,s,i){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=t,this.newText=e,this.oldTitle=s,this.newTitle=i}}function ds(n){if(!n.date)return 1/0;if(n.format==="duration"||n.format==="elapsed"){const e=n.precision;if(e==="second")return 1e3;if(e==="minute")return 60*1e3}const t=Math.abs(Date.now()-n.date.getTime());return t<60*1e3?1e3:t<60*60*1e3?60*1e3:60*60*1e3}const Ce=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(n){if(this.elements.has(n))return;this.elements.add(n);const t=n.date;if(t&&t.getTime()){const e=ds(n),s=Date.now()+e;s<this.time&&(clearTimeout(this.timer),this.timer=setTimeout(()=>this.update(),e),this.time=s)}}unobserve(n){this.elements.has(n)&&this.elements.delete(n)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let n=1/0;for(const t of this.elements)n=Math.min(n,ds(t)),t.update();this.time=Math.min(60*60*1e3,n),this.timer=setTimeout(()=>this.update(),this.time),this.time+=Date.now()}};class Oc extends Tc{constructor(){super(...arguments),D.add(this),Dt.set(this,!1),_t.set(this,!1),it.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),dt.set(this,null)}static define(t="relative-time",e=customElements){return e.define(t,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return O(this,dt,"f")}set onRelativeTimeUpdated(t){O(this,dt,"f")&&this.removeEventListener("relative-time-updated",O(this,dt,"f")),Xt(this,dt,typeof t=="object"||typeof t=="function"?t:null,"f"),typeof t=="function"&&this.addEventListener("relative-time-updated",t)}get second(){const t=this.getAttribute("second");if(t==="numeric"||t==="2-digit")return t}set second(t){this.setAttribute("second",t||"")}get minute(){const t=this.getAttribute("minute");if(t==="numeric"||t==="2-digit")return t}set minute(t){this.setAttribute("minute",t||"")}get hour(){const t=this.getAttribute("hour");if(t==="numeric"||t==="2-digit")return t}set hour(t){this.setAttribute("hour",t||"")}get weekday(){const t=this.getAttribute("weekday");if(t==="long"||t==="short"||t==="narrow")return t;if(this.format==="datetime"&&t!=="")return this.formatStyle}set weekday(t){this.setAttribute("weekday",t||"")}get day(){var t;const e=(t=this.getAttribute("day"))!==null&&t!==void 0?t:"numeric";if(e==="numeric"||e==="2-digit")return e}set day(t){this.setAttribute("day",t||"")}get month(){const t=this.format;let e=this.getAttribute("month");if(e!==""&&(e??(e=t==="datetime"?this.formatStyle:"short"),e==="numeric"||e==="2-digit"||e==="short"||e==="long"||e==="narrow"))return e}set month(t){this.setAttribute("month",t||"")}get year(){var t;const e=this.getAttribute("year");if(e==="numeric"||e==="2-digit")return e;if(!this.hasAttribute("year")&&new Date().getUTCFullYear()!==((t=this.date)===null||t===void 0?void 0:t.getUTCFullYear()))return"numeric"}set year(t){this.setAttribute("year",t||"")}get timeZoneName(){const t=this.getAttribute("time-zone-name");if(t==="long"||t==="short"||t==="shortOffset"||t==="longOffset"||t==="shortGeneric"||t==="longGeneric")return t}set timeZoneName(t){this.setAttribute("time-zone-name",t||"")}get prefix(){var t;return(t=this.getAttribute("prefix"))!==null&&t!==void 0?t:this.format==="datetime"?"":"on"}set prefix(t){this.setAttribute("prefix",t)}get threshold(){const t=this.getAttribute("threshold");return t&&wc(t)?t:"P30D"}set threshold(t){this.setAttribute("threshold",t)}get tense(){const t=this.getAttribute("tense");return t==="past"?"past":t==="future"?"future":"auto"}set tense(t){this.setAttribute("tense",t)}get precision(){const t=this.getAttribute("precision");return le.includes(t)?t:this.format==="micro"?"minute":"second"}set precision(t){this.setAttribute("precision",t)}get format(){const t=this.getAttribute("format");return t==="datetime"?"datetime":t==="relative"?"relative":t==="duration"?"duration":t==="micro"?"micro":t==="elapsed"?"elapsed":"auto"}set format(t){this.setAttribute("format",t)}get formatStyle(){const t=this.getAttribute("format-style");if(t==="long")return"long";if(t==="short")return"short";if(t==="narrow")return"narrow";const e=this.format;return e==="elapsed"||e==="micro"?"narrow":e==="datetime"?"short":"long"}set formatStyle(t){this.setAttribute("format-style",t)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(t){this.toggleAttribute("no-title",t)}get datetime(){return this.getAttribute("datetime")||""}set datetime(t){this.setAttribute("datetime",t)}get date(){const t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(t==null?void 0:t.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){Ce.unobserve(this)}attributeChangedCallback(t,e,s){e!==s&&(t==="title"&&Xt(this,Dt,s!==null&&(this.date&&O(this,D,"m",ze).call(this,this.date))!==s,"f"),!O(this,_t,"f")&&!(t==="title"&&O(this,Dt,"f"))&&Xt(this,_t,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const t=O(this,it,"f").textContent||this.textContent||"",e=this.getAttribute("title")||"";let s=e;const i=this.date;if(typeof Intl>"u"||!Intl.DateTimeFormat||!i){O(this,it,"f").textContent=t;return}const r=Date.now();O(this,Dt,"f")||(s=O(this,D,"m",ze).call(this,i)||"",s&&!this.noTitle&&this.setAttribute("title",s));const o=Ec(i,this.precision,r),a=O(this,D,"m",li).call(this,o);let c=t;a==="duration"?c=O(this,D,"m",ui).call(this,o):a==="relative"?c=O(this,D,"m",hi).call(this,o):c=O(this,D,"m",di).call(this,i),c?O(this,it,"f").textContent=c:this.shadowRoot===O(this,it,"f")&&this.textContent&&(O(this,it,"f").textContent=this.textContent),(c!==t||s!==e)&&this.dispatchEvent(new xc(t,c,e,s)),a==="relative"||a==="duration"?Ce.observe(this):Ce.unobserve(this),Xt(this,_t,!1,"f")}}Dt=new WeakMap,_t=new WeakMap,it=new WeakMap,dt=new WeakMap,D=new WeakSet,Ot=function(){var t;return((t=this.closest("[lang]"))===null||t===void 0?void 0:t.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},ze=function(t){return new Intl.DateTimeFormat(O(this,D,"a",Ot),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(t)},li=function(t){const e=this.format;if(e==="datetime")return"datetime";if(e==="duration"||e==="elapsed"||e==="micro")return"duration";if((e==="auto"||e==="relative")&&typeof Intl<"u"&&Intl.RelativeTimeFormat){const s=this.tense;if(s==="past"||s==="future"||C.compare(t,this.threshold)===1)return"relative"}return"datetime"},ui=function(t){const e=O(this,D,"a",Ot),s=this.format,i=this.formatStyle,r=this.tense;let o=ke;s==="micro"?(t=ci(t),o=hs,(this.tense==="past"&&t.sign!==-1||this.tense==="future"&&t.sign!==1)&&(t=hs)):(r==="past"&&t.sign!==-1||r==="future"&&t.sign!==1)&&(t=o);const a=`${this.precision}sDisplay`;return t.blank?o.toLocaleString(e,{style:i,[a]:"always"}):t.abs().toLocaleString(e,{style:i})},hi=function(t){const e=new Intl.RelativeTimeFormat(O(this,D,"a",Ot),{numeric:"auto",style:this.formatStyle}),s=this.tense;s==="future"&&t.sign!==1&&(t=ke),s==="past"&&t.sign!==-1&&(t=ke);const[i,r]=Ac(t);return r==="second"&&i<10?e.format(0,this.precision==="millisecond"?"second":this.precision):e.format(i,r)},di=function(t){const e=new Intl.DateTimeFormat(O(this,D,"a",Ot),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${e.format(t)}`.trim()};const fs=typeof globalThis<"u"?globalThis:window;try{fs.RelativeTimeElement=Oc.define()}catch(n){if(!(fs.DOMException&&n instanceof DOMException&&n.name==="NotSupportedError")&&!(n instanceof ReferenceError))throw n}class Sc extends V()({targets:{}}){}const Mc=Object.freeze(Object.defineProperty({__proto__:null,default:Sc},Symbol.toStringTag,{value:"Module"}));class kc extends V()({targets:{toggle:HTMLInputElement},values:{formMethod:String,formUrl:String,csrfToken:String}}){connect(){this.toggling=!1}requiresFormSubmit(){return this.formUrlValue!=null}async toggle(){if(!this.toggling&&(this.toggling=!0,!this.isDisabled())){if(!this.requiresFormSubmit()){this.performToggle(),this.toggling=!1;return}this.performToggle();try{await this.submitForm()}catch(t){t instanceof Error&&this.performToggle();return}finally{this.toggling=!1}}}performToggle(){this.isOn()?this.turnOff():this.turnOn()}turnOn(){this.isDisabled()||this.toggleTarget.setAttribute("aria-pressed","true")}turnOff(){this.isDisabled()||this.toggleTarget.setAttribute("aria-pressed","false")}isOn(){return this.toggleTarget.getAttribute("aria-pressed")==="true"}isOff(){return!this.isOn()}isDisabled(){return this.toggleTarget.getAttribute("disabled")!=null}async submitForm(){const t=new FormData,e=this.documentCsrfToken()||this.csrfTokenValue;if(e&&t.append(this.csrfField(),e),t.append(this.toggleTarget.name,this.isOn()?"true":"false"),!this.formUrlValue)throw new Error("invalid src");let s;try{s=await fetch(this.formUrlValue,{credentials:"same-origin",method:this.formMethodValue,headers:{"Requested-With":"XMLHttpRequest"},body:t})}catch{throw new Error("A network error occurred, please try again.")}if(!s.ok)throw new Error(await s.text())}csrfField(){return this.toggleTarget.getAttribute("csrf-field")||"authenticity_token"}documentCsrfToken(){const t=document.querySelector("meta[name=csrf-token]");return t&&t.getAttribute("content")}}const Cc=Object.freeze(Object.defineProperty({__proto__:null,default:kc},Symbol.toStringTag,{value:"Module"})),he=class he extends K{connect(){Ia(this)}save(){this.hasFormTarget?this.formTarget.requestSubmit():this.element.requestSubmit()}};he.debounces=["save"],he.targets=["form"];let qe=he;const Lc=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"}));class Fc extends V()({targets:{button:HTMLButtonElement,form:HTMLFormElement}}){get form(){return this.hasFormTarget?this.formTarget:this.element}runCheck(){this.buttonTarget.disabled=!this.form.checkValidity()}connect(){this.form.addEventListener("input",()=>this.runCheck()),this.runCheck(),ln(this,{childList:!0,subtree:!0})}mutate(){this.runCheck()}}const Dc=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),me=jr.start();me.debug=!1;window.Stimulus=me;const _c=Object.assign({"../../components/ariadne/ui/accordion/component.ts":Ko,"../../components/ariadne/ui/clipboard_copy/component.ts":ta,"../../components/ariadne/ui/combobox/component.ts":Ka,"../../components/ariadne/ui/dialog/component.ts":nc,"../../components/ariadne/ui/flash/component.ts":ac,"../../components/ariadne/ui/list/component.ts":lc,"../../components/ariadne/ui/overlay/component.ts":hc,"../../components/ariadne/ui/popover/component.ts":fc,"../../components/ariadne/ui/time_ago/component.ts":Mc,"../../components/ariadne/ui/toggle/component.ts":Cc});for(const[n,t]of Object.entries(_c)){const e=n.split("/"),s=e.slice(3,e.length-1).join("-").replaceAll("_","-").toLocaleLowerCase();me.register(s,t.default)}const Bc=Object.assign({"/controllers/form_autosubmit_controller.ts":Lc,"/controllers/form_validity_controller.ts":Dc});for(const[n,t]of Object.entries(Bc)){const e=n.split("/"),s=e[e.length-1].replace("_controller.ts","").replaceAll("_","-").toLocaleLowerCase();me.register(`ariadne-${s}`,t.default)}
|
98
|
+
%o`,e,t,s),(i=window.onerror)===null||i===void 0||i.call(window,e,"",0,0,t)}logFormattedMessage(t,e,s={}){s=Object.assign({application:this},s),this.logger.groupCollapsed(`${t} #${e}`),this.logger.log("details:",Object.assign({},s)),this.logger.groupEnd()}}function Vr(){return new Promise(n=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>n()):n()})}function Hr(n){return Ht(n,"classes").reduce((e,s)=>Object.assign(e,Wr(s)),{})}function Wr(n){return{[`${n}Class`]:{get(){const{classes:t}=this;if(t.has(n))return t.get(n);{const e=t.getAttributeName(n);throw new Error(`Missing attribute "${e}"`)}}},[`${n}Classes`]:{get(){return this.classes.getAll(n)}},[`has${Vt(n)}Class`]:{get(){return this.classes.has(n)}}}}function Ur(n){return Ht(n,"outlets").reduce((e,s)=>Object.assign(e,Kr(s)),{})}function Un(n,t,e){return n.application.getControllerForElementAndIdentifier(t,e)}function Kn(n,t,e){let s=Un(n,t,e);if(s||(n.application.router.proposeToConnectScopeForElementAndIdentifier(t,e),s=Un(n,t,e),s))return s}function Kr(n){const t=Be(n);return{[`${t}Outlet`]:{get(){const e=this.outlets.find(n),s=this.outlets.getSelectorForOutletName(n);if(e){const i=Kn(this,e,n);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${n}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${n}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${s}".`)}},[`${t}Outlets`]:{get(){const e=this.outlets.findAll(n);return e.length>0?e.map(s=>{const i=Kn(this,s,n);if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${n}" instance for host controller "${this.identifier}"`,s)}).filter(s=>s):[]}},[`${t}OutletElement`]:{get(){const e=this.outlets.find(n),s=this.outlets.getSelectorForOutletName(n);if(e)return e;throw new Error(`Missing outlet element "${n}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${s}".`)}},[`${t}OutletElements`]:{get(){return this.outlets.findAll(n)}},[`has${Vt(t)}Outlet`]:{get(){return this.outlets.has(n)}}}}function zr(n){return Ht(n,"targets").reduce((e,s)=>Object.assign(e,qr(s)),{})}function qr(n){return{[`${n}Target`]:{get(){const t=this.targets.find(n);if(t)return t;throw new Error(`Missing target element "${n}" for "${this.identifier}" controller`)}},[`${n}Targets`]:{get(){return this.targets.findAll(n)}},[`has${Vt(n)}Target`]:{get(){return this.targets.has(n)}}}}function Yr(n){const t=vr(n,"values"),e={valueDescriptorMap:{get(){return t.reduce((s,i)=>{const r=Ds(i,this.identifier),o=this.data.getAttributeNameForKey(r.key);return Object.assign(s,{[o]:r})},{})}}};return t.reduce((s,i)=>Object.assign(s,Xr(i)),e)}function Xr(n,t){const e=Ds(n,t),{key:s,name:i,reader:r,writer:o}=e;return{[i]:{get(){const a=this.data.get(s);return a!==null?r(a):e.defaultValue},set(a){a===void 0?this.data.delete(s):this.data.set(s,o(a))}},[`has${Vt(i)}`]:{get(){return this.data.has(s)||e.hasCustomDefaultValue}}}}function Ds([n,t],e){return Qr({controller:e,token:n,typeDefinition:t})}function Qt(n){switch(n){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function Nt(n){switch(typeof n){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(n))return"array";if(Object.prototype.toString.call(n)==="[object Object]")return"object"}function Gr(n){const{controller:t,token:e,typeObject:s}=n,i=jn(s.type),r=jn(s.default),o=i&&r,a=i&&!r,c=!i&&r,l=Qt(s.type),u=Nt(n.typeObject.default);if(a)return l;if(c)return u;if(l!==u){const d=t?`${t}.${e}`:e;throw new Error(`The specified default value for the Stimulus Value "${d}" must match the defined type "${l}". The provided default value of "${s.default}" is of type "${u}".`)}if(o)return l}function Zr(n){const{controller:t,token:e,typeDefinition:s}=n,r=Gr({controller:t,token:e,typeObject:s}),o=Nt(s),a=Qt(s),c=r||o||a;if(c)return c;const l=t?`${t}.${s}`:e;throw new Error(`Unknown value type "${l}" for "${e}" value`)}function Jr(n){const t=Qt(n);if(t)return zn[t];const e=Re(n,"default"),s=Re(n,"type"),i=n;if(e)return i.default;if(s){const{type:r}=i,o=Qt(r);if(o)return zn[o]}return n}function Qr(n){const{token:t,typeDefinition:e}=n,s=`${Os(t)}-value`,i=Zr(n);return{type:i,key:s,name:Xe(s),get defaultValue(){return Jr(e)},get hasCustomDefaultValue(){return Nt(e)!==void 0},reader:to[i],writer:qn[i]||qn.default}}const zn={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},to={array(n){const t=JSON.parse(n);if(!Array.isArray(t))throw new TypeError(`expected value of type "array" but instead got value "${n}" of type "${Nt(t)}"`);return t},boolean(n){return!(n=="0"||String(n).toLowerCase()=="false")},number(n){return Number(n.replace(/_/g,""))},object(n){const t=JSON.parse(n);if(t===null||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected value of type "object" but instead got value "${n}" of type "${Nt(t)}"`);return t},string(n){return n}},qn={default:eo,array:Yn,object:Yn};function Yn(n){return JSON.stringify(n)}function eo(n){return`${n}`}let K=class{constructor(t){this.context=t}static get shouldLoad(){return!0}static afterLoad(t,e){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(t,{target:e=this.element,detail:s={},prefix:i=this.identifier,bubbles:r=!0,cancelable:o=!0}={}){const a=i?`${i}:${t}`:t,c=new CustomEvent(a,{detail:s,bubbles:r,cancelable:o});return e.dispatchEvent(c),c}};K.blessings=[Hr,zr,Yr,Ur];K.targets=[];K.outlets=[];K.values={};function V(){return function({targets:t,values:e}={}){const i=class i extends K{};i.targets=Object.keys(t??{}),i.values=e??{};let s=i;return s}}class no extends V()({targets:{toggle:HTMLInputElement},values:{formMethod:String,formUrl:String,csrfToken:String}}){connect(){this.toggling=!1}requiresFormSubmit(){return this.formUrlValue!=null}async toggle(){if(!this.toggling&&(this.toggling=!0,!this.isDisabled())){if(!this.requiresFormSubmit()){this.performToggle(),this.toggling=!1;return}this.performToggle();try{await this.submitForm()}catch(t){t instanceof Error&&this.performToggle();return}finally{this.toggling=!1}}}performToggle(){this.isOn()?this.turnOff():this.turnOn()}turnOn(){this.isDisabled()||this.toggleTarget.setAttribute("aria-pressed","true")}turnOff(){this.isDisabled()||this.toggleTarget.setAttribute("aria-pressed","false")}isOn(){return this.toggleTarget.getAttribute("aria-pressed")==="true"}isOff(){return!this.isOn()}isDisabled(){return this.toggleTarget.getAttribute("disabled")!=null}async submitForm(){const t=new FormData,e=this.documentCsrfToken()||this.csrfTokenValue;if(e&&t.append(this.csrfField(),e),t.append(this.toggleTarget.name,this.isOn()?"true":"false"),!this.formUrlValue)throw new Error("invalid src");let s;try{s=await fetch(this.formUrlValue,{credentials:"same-origin",method:this.formMethodValue,headers:{"Requested-With":"XMLHttpRequest"},body:t})}catch{throw new Error("A network error occurred, please try again.")}if(!s.ok)throw new Error(await s.text())}csrfField(){return this.toggleTarget.getAttribute("csrf-field")||"authenticity_token"}documentCsrfToken(){const t=document.querySelector("meta[name=csrf-token]");return t&&t.getAttribute("content")}}const so=Object.freeze(Object.defineProperty({__proto__:null,default:no},Symbol.toStringTag,{value:"Module"}));function io(n,t){n.indexOf(t)===-1&&n.push(t)}const _s=(n,t,e)=>Math.min(Math.max(e,n),t),_={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},te=n=>typeof n=="number",bt=n=>Array.isArray(n)&&!te(n[0]),ro=(n,t,e)=>{const s=t-n;return((e-n)%s+s)%s+n};function oo(n,t){return bt(n)?n[ro(0,n.length,t)]:n}const Bs=(n,t,e)=>-e*n+e*t+n,Rs=()=>{},J=n=>n,Ze=(n,t,e)=>t-n===0?1:(e-n)/(t-n);function $s(n,t){const e=n[n.length-1];for(let s=1;s<=t;s++){const i=Ze(0,t,s);n.push(Bs(e,1,i))}}function ao(n){const t=[0];return $s(t,n-1),t}function co(n,t=ao(n.length),e=J){const s=n.length,i=s-t.length;return i>0&&$s(t,i),r=>{let o=0;for(;o<s-2&&!(r<t[o+1]);o++);let a=_s(0,1,Ze(t[o],t[o+1],r));return a=oo(e,o)(a),Bs(n[o],n[o+1],a)}}const Ps=n=>Array.isArray(n)&&te(n[0]),Pe=n=>typeof n=="object"&&!!n.createAnimation,wt=n=>typeof n=="function",lo=n=>typeof n=="string",Bt={ms:n=>n*1e3,s:n=>n/1e3},Ns=(n,t,e)=>(((1-3*e+3*t)*n+(3*e-6*t))*n+3*t)*n,uo=1e-7,ho=12;function fo(n,t,e,s,i){let r,o,a=0;do o=t+(e-t)/2,r=Ns(o,s,i)-n,r>0?e=o:t=o;while(Math.abs(r)>uo&&++a<ho);return o}function Lt(n,t,e,s){if(n===t&&e===s)return J;const i=r=>fo(r,0,1,n,e);return r=>r===0||r===1?r:Ns(i(r),t,s)}const mo=(n,t="end")=>e=>{e=t==="end"?Math.min(e,.999):Math.max(e,.001);const s=e*n,i=t==="end"?Math.floor(s):Math.ceil(s);return _s(0,1,i/n)},po={ease:Lt(.25,.1,.25,1),"ease-in":Lt(.42,0,1,1),"ease-in-out":Lt(.42,0,.58,1),"ease-out":Lt(0,0,.58,1)},go=/\((.*?)\)/;function Xn(n){if(wt(n))return n;if(Ps(n))return Lt(...n);const t=po[n];if(t)return t;if(n.startsWith("steps")){const e=go.exec(n);if(e){const s=e[1].split(",");return mo(parseFloat(s[0]),s[1].trim())}}return J}class Is{constructor(t,e=[0,1],{easing:s,duration:i=_.duration,delay:r=_.delay,endDelay:o=_.endDelay,repeat:a=_.repeat,offset:c,direction:l="normal",autoplay:u=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=J,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,m)=>{this.resolve=h,this.reject=m}),s=s||_.easing,Pe(s)){const h=s.createAnimation(e);s=h.easing,e=h.keyframes||e,i=h.duration||i}this.repeat=a,this.easing=bt(s)?J:Xn(s),this.updateDuration(i);const d=co(e,c,bt(s)?s.map(Xn):J);this.tick=h=>{var m;r=r;let f=0;this.pauseTime!==void 0?f=this.pauseTime:f=(h-this.startTime)*this.rate,this.t=f,f/=1e3,f=Math.max(f-r,0),this.playState==="finished"&&this.pauseTime===void 0&&(f=this.totalDuration);const g=f/this.duration;let b=Math.floor(g),p=g%1;!p&&g>=1&&(p=1),p===1&&b--;const w=b%2;(l==="reverse"||l==="alternate"&&w||l==="alternate-reverse"&&!w)&&(p=1-p);const E=f>=this.totalDuration?1:Math.min(p,1),v=d(this.easing(E));t(v),this.pauseTime===void 0&&(this.playState==="finished"||f>=this.totalDuration+o)?(this.playState="finished",(m=this.resolve)===null||m===void 0||m.call(this,v)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},u&&this.play()}play(){const t=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(t=this.reject)===null||t===void 0||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){this.pauseTime!==void 0||this.rate===0?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class bo{setAnimation(t){this.animation=t,t==null||t.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}const we=new WeakMap;function js(n){return we.has(n)||we.set(n,{transforms:[],values:new Map}),we.get(n)}function vo(n,t){return n.has(t)||n.set(t,new bo),n.get(t)}const yo=["","X","Y","Z"],wo=["translate","scale","rotate","skew"],ee={x:"translateX",y:"translateY",z:"translateZ"},Gn={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:n=>n+"deg"},Eo={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:n=>n+"px"},rotate:Gn,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:J},skew:Gn},It=new Map,Je=n=>`--motion-${n}`,ne=["x","y","z"];wo.forEach(n=>{yo.forEach(t=>{ne.push(n+t),It.set(Je(n+t),Eo[n])})});const Ao=(n,t)=>ne.indexOf(n)-ne.indexOf(t),To=new Set(ne),Vs=n=>To.has(n),xo=(n,t)=>{ee[t]&&(t=ee[t]);const{transforms:e}=js(n);io(e,t),n.style.transform=Oo(e)},Oo=n=>n.sort(Ao).reduce(So,"").trim(),So=(n,t)=>`${n} ${t}(var(${Je(t)}))`,Ne=n=>n.startsWith("--"),Zn=new Set;function Mo(n){if(!Zn.has(n)){Zn.add(n);try{const{syntax:t,initialValue:e}=It.has(n)?It.get(n):{};CSS.registerProperty({name:n,inherits:!1,syntax:t,initialValue:e})}catch{}}}const Ee=(n,t)=>document.createElement("div").animate(n,t),Jn={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Ee({opacity:[1]})}catch{return!1}return!0},finished:()=>!!Ee({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{Ee({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Ae={},ft={};for(const n in Jn)ft[n]=()=>(Ae[n]===void 0&&(Ae[n]=Jn[n]()),Ae[n]);const ko=.015,Co=(n,t)=>{let e="";const s=Math.round(t/ko);for(let i=0;i<s;i++)e+=n(Ze(0,s-1,i))+", ";return e.substring(0,e.length-2)},Qn=(n,t)=>wt(n)?ft.linearEasing()?`linear(${Co(n,t)})`:_.easing:Ps(n)?Lo(n):n,Lo=([n,t,e,s])=>`cubic-bezier(${n}, ${t}, ${e}, ${s})`;function Fo(n,t){for(let e=0;e<n.length;e++)n[e]===null&&(n[e]=e?n[e-1]:t());return n}const Do=n=>Array.isArray(n)?n:[n];function Ie(n){return ee[n]&&(n=ee[n]),Vs(n)?Je(n):n}const qt={get:(n,t)=>{t=Ie(t);let e=Ne(t)?n.style.getPropertyValue(t):getComputedStyle(n)[t];if(!e&&e!==0){const s=It.get(t);s&&(e=s.initialValue)}return e},set:(n,t,e)=>{t=Ie(t),Ne(t)?n.style.setProperty(t,e):n.style[t]=e}};function Hs(n,t=!0){if(!(!n||n.playState==="finished"))try{n.stop?n.stop():(t&&n.commitStyles(),n.cancel())}catch{}}function _o(n,t){var e;let s=(t==null?void 0:t.toDefaultUnit)||J;const i=n[n.length-1];if(lo(i)){const r=((e=i.match(/(-?[\d.]+)([a-z%]*)/))===null||e===void 0?void 0:e[2])||"";r&&(s=o=>o+r)}return s}function Bo(){return window.__MOTION_DEV_TOOLS_RECORD}function Ro(n,t,e,s={},i){const r=Bo(),o=s.record!==!1&&r;let a,{duration:c=_.duration,delay:l=_.delay,endDelay:u=_.endDelay,repeat:d=_.repeat,easing:h=_.easing,persist:m=!1,direction:f,offset:g,allowWebkitAcceleration:b=!1,autoplay:p=!0}=s;const w=js(n),E=Vs(t);let v=ft.waapi();E&&xo(n,t);const y=Ie(t),x=vo(w.values,y),S=It.get(y);return Hs(x.animation,!(Pe(h)&&x.generator)&&s.record!==!1),()=>{const B=()=>{var T,q;return(q=(T=qt.get(n,y))!==null&&T!==void 0?T:S==null?void 0:S.initialValue)!==null&&q!==void 0?q:0};let A=Fo(Do(e),B);const R=_o(A,S);if(Pe(h)){const T=h.createAnimation(A,t!=="opacity",B,y,x);h=T.easing,A=T.keyframes||A,c=T.duration||c}if(Ne(y)&&(ft.cssRegisterProperty()?Mo(y):v=!1),E&&!ft.linearEasing()&&(wt(h)||bt(h)&&h.some(wt))&&(v=!1),v){S&&(A=A.map(I=>te(I)?S.toDefaultUnit(I):I)),A.length===1&&(!ft.partialKeyframes()||o)&&A.unshift(B());const T={delay:Bt.ms(l),duration:Bt.ms(c),endDelay:Bt.ms(u),easing:bt(h)?void 0:Qn(h,c),direction:f,iterations:d+1,fill:"both"};a=n.animate({[y]:A,offset:g,easing:bt(h)?h.map(I=>Qn(I,c)):void 0},T),a.finished||(a.finished=new Promise((I,H)=>{a.onfinish=I,a.oncancel=H}));const q=A[A.length-1];a.finished.then(()=>{m||(qt.set(n,y,q),a.cancel())}).catch(Rs),b||(a.playbackRate=1.000001)}else if(i&&E)A=A.map(T=>typeof T=="string"?parseFloat(T):T),A.length===1&&A.unshift(parseFloat(B())),a=new i(T=>{qt.set(n,y,R?R(T):T)},A,Object.assign(Object.assign({},s),{duration:c,easing:h}));else{const T=A[A.length-1];qt.set(n,y,S&&te(T)?S.toDefaultUnit(T):T)}return o&&r(n,t,A,{duration:c,delay:l,easing:h,repeat:d,offset:g},"motion-one"),x.setAnimation(a),a&&!p&&a.pause(),a}}const $o=(n,t)=>n[t]?Object.assign(Object.assign({},n),n[t]):Object.assign({},n);function Po(n,t){return typeof n=="string"?n=document.querySelectorAll(n):n instanceof Element&&(n=[n]),Array.from(n||[])}const No=n=>n(),Ws=(n,t,e=_.duration)=>new Proxy({animations:n.map(No).filter(Boolean),duration:e,options:t},jo),Io=n=>n.animations[0],jo={get:(n,t)=>{const e=Io(n);switch(t){case"duration":return n.duration;case"currentTime":return Bt.s((e==null?void 0:e[t])||0);case"playbackRate":case"playState":return e==null?void 0:e[t];case"finished":return n.finished||(n.finished=Promise.all(n.animations.map(Vo)).catch(Rs)),n.finished;case"stop":return()=>{n.animations.forEach(s=>Hs(s))};case"forEachNative":return s=>{n.animations.forEach(i=>s(i,n))};default:return typeof(e==null?void 0:e[t])>"u"?void 0:()=>n.animations.forEach(s=>s[t]())}},set:(n,t,e)=>{switch(t){case"currentTime":e=Bt.ms(e);case"playbackRate":for(let s=0;s<n.animations.length;s++)n.animations[s][t]=e;return!0}return!1}},Vo=n=>n.finished;function Ho(n,t,e){return wt(n)?n(t,e):n}function Wo(n){return function(e,s,i={}){e=Po(e);const r=e.length,o=[];for(let a=0;a<r;a++){const c=e[a];for(const l in s){const u=$o(i,l);u.delay=Ho(u.delay,a,r);const d=Ro(c,l,s[l],u,n);o.push(d)}}return Ws(o,i,i.duration)}}const Uo=Wo(Is);function Ko(n,t={}){return Ws([()=>{const e=new Is(n,[0,1],t);return e.finished.catch(()=>{}),e}],t,t.duration)}function Te(n,t,e){return(wt(n)?Ko:Uo)(n,t,e)}class zo extends V()({targets:{icon:HTMLElement,content:HTMLElement},values:{open:Boolean}}){connect(){this.animationDurationValue=.15,this.openValue?this.open():this.close()}toggle(){this.openValue=!this.openValue}openValueChanged(t,e){t?this.open():this.close()}open(){this.hasContentTarget&&(this.revealContent(),this.hasIconTarget&&this.rotateIcon(),this.openValue=!0)}close(){this.hasContentTarget&&(this.hideContent(),this.hasIconTarget&&this.rotateIcon(),this.openValue=!1)}revealContent(){const t=this.contentTarget.scrollHeight;Te(this.contentTarget,{height:`${t}px`},{duration:this.animationDurationValue,easing:"ease-in-out"})}hideContent(){Te(this.contentTarget,{height:0},{duration:this.animationDurationValue,easing:"ease-in-out"})}rotateIcon(){Te(this.iconTarget,{rotate:`${this.openValue?180:0}deg`})}}const qo=Object.freeze(Object.defineProperty({__proto__:null,default:zo},Symbol.toStringTag,{value:"Module"}));function Yo(n){const t=document.createElement("pre");return t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="5px",t.textContent=n,t}function Us(n){if("clipboard"in navigator)return navigator.clipboard.writeText(n.textContent||"");const t=getSelection();if(t==null)return Promise.reject(new Error);t.removeAllRanges();const e=document.createRange();return e.selectNodeContents(n),t.addRange(e),document.execCommand("copy"),t.removeAllRanges(),Promise.resolve()}function je(n){if("clipboard"in navigator)return navigator.clipboard.writeText(n);const t=document.body;if(!t)return Promise.reject(new Error);const e=Yo(n);return t.appendChild(e),Us(e),t.removeChild(e),Promise.resolve()}async function Ks(n){const t=n.getAttribute("for"),e=n.getAttribute("value");function s(){n.dispatchEvent(new CustomEvent("clipboard-copy",{bubbles:!0}))}if(n.getAttribute("aria-disabled")!=="true"){if(e)await je(e),s();else if(t){const i="getRootNode"in Element.prototype?n.getRootNode():n.ownerDocument;if(!(i instanceof Document||"ShadowRoot"in window&&i instanceof ShadowRoot))return;const r=i.getElementById(t);r&&(await Xo(r),s())}}}function Xo(n){return n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement?je(n.value):n instanceof HTMLAnchorElement&&n.hasAttribute("href")?je(n.href):Us(n)}function Go(n){const t=n.currentTarget;t instanceof HTMLElement&&Ks(t)}function zs(n){if(n.key===" "||n.key==="Enter"){const t=n.currentTarget;t instanceof HTMLElement&&(n.preventDefault(),Ks(t))}}function Zo(n){n.currentTarget.addEventListener("keydown",zs)}function Jo(n){n.currentTarget.removeEventListener("keydown",zs)}class Qo extends HTMLElement{static define(t="clipboard-copy",e=customElements){return e.define(t,this),this}constructor(){super(),this.addEventListener("click",Go),this.addEventListener("focus",Zo),this.addEventListener("blur",Jo)}connectedCallback(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button")}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}}const ts=typeof globalThis<"u"?globalThis:window;try{ts.ClipboardCopyElement=Qo.define()}catch(n){if(!(ts.DOMException&&n instanceof DOMException&&n.name==="NotSupportedError")&&!(n instanceof ReferenceError))throw n}const ta=2e3;class ea extends V()({targets:{initial:HTMLElement,confirmed:null}}){connect(){this.clipboardCopyElementTimers=new WeakMap}copy(t){const e=t.target,s=this.clipboardCopyElementTimers.get(e);s?(clearTimeout(s),this.clipboardCopyElementTimers.delete(e)):this.showConfirm(),this.clipboardCopyElementTimers.set(e,window.setTimeout(()=>{this.showInitial(),this.clipboardCopyElementTimers.delete(e)},ta))}showConfirm(){this.hasConfirmedTarget&&(this.confirmedTarget.classList.remove("hidden"),this.confirmedTarget.classList.add("inline-block"),this.initialTarget.classList.add("hidden"))}showInitial(){this.initialTarget.classList.remove("hidden"),this.initialTarget.classList.add("inline-block"),this.hasConfirmedTarget&&this.confirmedTarget.classList.add("hidden")}}const na=Object.freeze(Object.defineProperty({__proto__:null,default:ea},Symbol.toStringTag,{value:"Module"})),Z=Math.min,k=Math.max,se=Math.round,Yt=Math.floor,Q=n=>({x:n,y:n}),sa={left:"right",right:"left",bottom:"top",top:"bottom"},ia={start:"end",end:"start"};function es(n,t,e){return k(n,Z(t,e))}function Wt(n,t){return typeof n=="function"?n(t):n}function tt(n){return n.split("-")[0]}function Ut(n){return n.split("-")[1]}function qs(n){return n==="x"?"y":"x"}function Ys(n){return n==="y"?"height":"width"}function ct(n){return["top","bottom"].includes(tt(n))?"y":"x"}function Xs(n){return qs(ct(n))}function ra(n,t,e){e===void 0&&(e=!1);const s=Ut(n),i=Xs(n),r=Ys(i);let o=i==="x"?s===(e?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=ie(o)),[o,ie(o)]}function oa(n){const t=ie(n);return[Ve(n),t,Ve(t)]}function Ve(n){return n.replace(/start|end/g,t=>ia[t])}function aa(n,t,e){const s=["left","right"],i=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return e?t?i:s:t?s:i;case"left":case"right":return t?r:o;default:return[]}}function ca(n,t,e,s){const i=Ut(n);let r=aa(tt(n),e==="start",s);return i&&(r=r.map(o=>o+"-"+i),t&&(r=r.concat(r.map(Ve)))),r}function ie(n){return n.replace(/left|right|bottom|top/g,t=>sa[t])}function la(n){return{top:0,right:0,bottom:0,left:0,...n}}function ua(n){return typeof n!="number"?la(n):{top:n,right:n,bottom:n,left:n}}function re(n){const{x:t,y:e,width:s,height:i}=n;return{width:s,height:i,top:e,left:t,right:t+s,bottom:e+i,x:t,y:e}}function ns(n,t,e){let{reference:s,floating:i}=n;const r=ct(t),o=Xs(t),a=Ys(o),c=tt(t),l=r==="y",u=s.x+s.width/2-i.width/2,d=s.y+s.height/2-i.height/2,h=s[a]/2-i[a]/2;let m;switch(c){case"top":m={x:u,y:s.y-i.height};break;case"bottom":m={x:u,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:d};break;case"left":m={x:s.x-i.width,y:d};break;default:m={x:s.x,y:s.y}}switch(Ut(t)){case"start":m[o]-=h*(e&&l?-1:1);break;case"end":m[o]+=h*(e&&l?-1:1);break}return m}const ha=async(n,t,e)=>{const{placement:s="bottom",strategy:i="absolute",middleware:r=[],platform:o}=e,a=r.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:n,floating:t,strategy:i}),{x:u,y:d}=ns(l,s,c),h=s,m={},f=0;for(let g=0;g<a.length;g++){const{name:b,fn:p}=a[g],{x:w,y:E,data:v,reset:y}=await p({x:u,y:d,initialPlacement:s,placement:h,strategy:i,middlewareData:m,rects:l,platform:o,elements:{reference:n,floating:t}});u=w??u,d=E??d,m={...m,[b]:{...m[b],...v}},y&&f<=50&&(f++,typeof y=="object"&&(y.placement&&(h=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:n,floating:t,strategy:i}):y.rects),{x:u,y:d}=ns(l,h,c)),g=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:m}};async function Qe(n,t){var e;t===void 0&&(t={});const{x:s,y:i,platform:r,rects:o,elements:a,strategy:c}=n,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=Wt(t,n),f=ua(m),b=a[h?d==="floating"?"reference":"floating":d],p=re(await r.getClippingRect({element:(e=await(r.isElement==null?void 0:r.isElement(b)))==null||e?b:b.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),w=d==="floating"?{x:s,y:i,width:o.floating.width,height:o.floating.height}:o.reference,E=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a.floating)),v=await(r.isElement==null?void 0:r.isElement(E))?await(r.getScale==null?void 0:r.getScale(E))||{x:1,y:1}:{x:1,y:1},y=re(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:w,offsetParent:E,strategy:c}):w);return{top:(p.top-y.top+f.top)/v.y,bottom:(y.bottom-p.bottom+f.bottom)/v.y,left:(p.left-y.left+f.left)/v.x,right:(y.right-p.right+f.right)/v.x}}const da=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,s;const{placement:i,middlewareData:r,rects:o,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...b}=Wt(n,t);if((e=r.arrow)!=null&&e.alignmentOffset)return{};const p=tt(i),w=ct(a),E=tt(a)===a,v=await(c.isRTL==null?void 0:c.isRTL(l.floating)),y=h||(E||!g?[ie(a)]:oa(a)),x=f!=="none";!h&&x&&y.push(...ca(a,g,f,v));const S=[a,...y],B=await Qe(t,b),A=[];let R=((s=r.flip)==null?void 0:s.overflows)||[];if(u&&A.push(B[p]),d){const H=ra(i,o,v);A.push(B[H[0]],B[H[1]])}if(R=[...R,{placement:i,overflows:A}],!A.every(H=>H<=0)){var T,q;const H=(((T=r.flip)==null?void 0:T.index)||0)+1,hn=S[H];if(hn)return{data:{index:H,overflows:R},reset:{placement:hn}};let Tt=(q=R.filter(ut=>ut.overflows[0]<=0).sort((ut,Y)=>ut.overflows[1]-Y.overflows[1])[0])==null?void 0:q.placement;if(!Tt)switch(m){case"bestFit":{var I;const ut=(I=R.filter(Y=>{if(x){const X=ct(Y.placement);return X===w||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,fi)=>X+fi,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:I[0];ut&&(Tt=ut);break}case"initialPlacement":Tt=a;break}if(i!==Tt)return{reset:{placement:Tt}}}return{}}}};async function fa(n,t){const{placement:e,platform:s,elements:i}=n,r=await(s.isRTL==null?void 0:s.isRTL(i.floating)),o=tt(e),a=Ut(e),c=ct(e)==="y",l=["left","top"].includes(o)?-1:1,u=r&&c?-1:1,d=Wt(t,n);let{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),c?{x:m*u,y:h*l}:{x:h*l,y:m*u}}const ma=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,s;const{x:i,y:r,placement:o,middlewareData:a}=t,c=await fa(t,n);return o===((e=a.offset)==null?void 0:e.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:o}}}}},pa=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){const{x:e,y:s,placement:i}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:p,y:w}=b;return{x:p,y:w}}},...c}=Wt(n,t),l={x:e,y:s},u=await Qe(t,c),d=ct(tt(i)),h=qs(d);let m=l[h],f=l[d];if(r){const b=h==="y"?"top":"left",p=h==="y"?"bottom":"right",w=m+u[b],E=m-u[p];m=es(w,m,E)}if(o){const b=d==="y"?"top":"left",p=d==="y"?"bottom":"right",w=f+u[b],E=f-u[p];f=es(w,f,E)}const g=a.fn({...t,[h]:m,[d]:f});return{...g,data:{x:g.x-e,y:g.y-s}}}}},ga=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){const{placement:e,rects:s,platform:i,elements:r}=t,{apply:o=()=>{},...a}=Wt(n,t),c=await Qe(t,a),l=tt(e),u=Ut(e),d=ct(e)==="y",{width:h,height:m}=s.floating;let f,g;l==="top"||l==="bottom"?(f=l,g=u===(await(i.isRTL==null?void 0:i.isRTL(r.floating))?"start":"end")?"left":"right"):(g=l,f=u==="end"?"top":"bottom");const b=m-c.top-c.bottom,p=h-c.left-c.right,w=Z(m-c[f],b),E=Z(h-c[g],p),v=!t.middlewareData.shift;let y=w,x=E;if(d?x=u||v?Z(E,p):p:y=u||v?Z(w,b):b,v&&!u){const B=k(c.left,0),A=k(c.right,0),R=k(c.top,0),T=k(c.bottom,0);d?x=h-2*(B!==0||A!==0?B+A:k(c.left,c.right)):y=m-2*(R!==0||T!==0?R+T:k(c.top,c.bottom))}await o({...t,availableWidth:x,availableHeight:y});const S=await i.getDimensions(r.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}};function At(n){return Gs(n)?(n.nodeName||"").toLowerCase():"#document"}function L(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function z(n){var t;return(t=(Gs(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function Gs(n){return n instanceof Node||n instanceof L(n).Node}function P(n){return n instanceof Element||n instanceof L(n).Element}function j(n){return n instanceof HTMLElement||n instanceof L(n).HTMLElement}function ss(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof L(n).ShadowRoot}function Kt(n){const{overflow:t,overflowX:e,overflowY:s,display:i}=N(n);return/auto|scroll|overlay|hidden|clip/.test(t+s+e)&&!["inline","contents"].includes(i)}function ba(n){return["table","td","th"].includes(At(n))}function de(n){return[":popover-open",":modal"].some(t=>{try{return n.matches(t)}catch{return!1}})}function tn(n){const t=en(),e=P(n)?N(n):n;return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(e.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(e.contain||"").includes(s))}function va(n){let t=et(n);for(;j(t)&&!Et(t);){if(tn(t))return t;if(de(t))return null;t=et(t)}return null}function en(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Et(n){return["html","body","#document"].includes(At(n))}function N(n){return L(n).getComputedStyle(n)}function fe(n){return P(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function et(n){if(At(n)==="html")return n;const t=n.assignedSlot||n.parentNode||ss(n)&&n.host||z(n);return ss(t)?t.host:t}function Zs(n){const t=et(n);return Et(t)?n.ownerDocument?n.ownerDocument.body:n.body:j(t)&&Kt(t)?t:Zs(t)}function jt(n,t,e){var s;t===void 0&&(t=[]),e===void 0&&(e=!0);const i=Zs(n),r=i===((s=n.ownerDocument)==null?void 0:s.body),o=L(i);if(r){const a=He(o);return t.concat(o,o.visualViewport||[],Kt(i)?i:[],a&&e?jt(a):[])}return t.concat(i,jt(i,[],e))}function He(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Js(n){const t=N(n);let e=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=j(n),r=i?n.offsetWidth:e,o=i?n.offsetHeight:s,a=se(e)!==r||se(s)!==o;return a&&(e=r,s=o),{width:e,height:s,$:a}}function nn(n){return P(n)?n:n.contextElement}function vt(n){const t=nn(n);if(!j(t))return Q(1);const e=t.getBoundingClientRect(),{width:s,height:i,$:r}=Js(t);let o=(r?se(e.width):e.width)/s,a=(r?se(e.height):e.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const ya=Q(0);function Qs(n){const t=L(n);return!en()||!t.visualViewport?ya:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function wa(n,t,e){return t===void 0&&(t=!1),!e||t&&e!==L(n)?!1:t}function lt(n,t,e,s){t===void 0&&(t=!1),e===void 0&&(e=!1);const i=n.getBoundingClientRect(),r=nn(n);let o=Q(1);t&&(s?P(s)&&(o=vt(s)):o=vt(n));const a=wa(r,e,s)?Qs(r):Q(0);let c=(i.left+a.x)/o.x,l=(i.top+a.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(r){const h=L(r),m=s&&P(s)?L(s):s;let f=h,g=He(f);for(;g&&s&&m!==f;){const b=vt(g),p=g.getBoundingClientRect(),w=N(g),E=p.left+(g.clientLeft+parseFloat(w.paddingLeft))*b.x,v=p.top+(g.clientTop+parseFloat(w.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,d*=b.y,c+=E,l+=v,f=L(g),g=He(f)}}return re({width:u,height:d,x:c,y:l})}function Ea(n){let{elements:t,rect:e,offsetParent:s,strategy:i}=n;const r=i==="fixed",o=z(s),a=t?de(t.floating):!1;if(s===o||a&&r)return e;let c={scrollLeft:0,scrollTop:0},l=Q(1);const u=Q(0),d=j(s);if((d||!d&&!r)&&((At(s)!=="body"||Kt(o))&&(c=fe(s)),j(s))){const h=lt(s);l=vt(s),u.x=h.x+s.clientLeft,u.y=h.y+s.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-c.scrollLeft*l.x+u.x,y:e.y*l.y-c.scrollTop*l.y+u.y}}function Aa(n){return Array.from(n.getClientRects())}function ti(n){return lt(z(n)).left+fe(n).scrollLeft}function Ta(n){const t=z(n),e=fe(n),s=n.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),r=k(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-e.scrollLeft+ti(n);const a=-e.scrollTop;return N(s).direction==="rtl"&&(o+=k(t.clientWidth,s.clientWidth)-i),{width:i,height:r,x:o,y:a}}function xa(n,t){const e=L(n),s=z(n),i=e.visualViewport;let r=s.clientWidth,o=s.clientHeight,a=0,c=0;if(i){r=i.width,o=i.height;const l=en();(!l||l&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:o,x:a,y:c}}function Oa(n,t){const e=lt(n,!0,t==="fixed"),s=e.top+n.clientTop,i=e.left+n.clientLeft,r=j(n)?vt(n):Q(1),o=n.clientWidth*r.x,a=n.clientHeight*r.y,c=i*r.x,l=s*r.y;return{width:o,height:a,x:c,y:l}}function is(n,t,e){let s;if(t==="viewport")s=xa(n,e);else if(t==="document")s=Ta(z(n));else if(P(t))s=Oa(t,e);else{const i=Qs(n);s={...t,x:t.x-i.x,y:t.y-i.y}}return re(s)}function ei(n,t){const e=et(n);return e===t||!P(e)||Et(e)?!1:N(e).position==="fixed"||ei(e,t)}function Sa(n,t){const e=t.get(n);if(e)return e;let s=jt(n,[],!1).filter(a=>P(a)&&At(a)!=="body"),i=null;const r=N(n).position==="fixed";let o=r?et(n):n;for(;P(o)&&!Et(o);){const a=N(o),c=tn(o);!c&&a.position==="fixed"&&(i=null),(r?!c&&!i:!c&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Kt(o)&&!c&&ei(n,o))?s=s.filter(u=>u!==o):i=a,o=et(o)}return t.set(n,s),s}function Ma(n){let{element:t,boundary:e,rootBoundary:s,strategy:i}=n;const o=[...e==="clippingAncestors"?de(t)?[]:Sa(t,this._c):[].concat(e),s],a=o[0],c=o.reduce((l,u)=>{const d=is(t,u,i);return l.top=k(d.top,l.top),l.right=Z(d.right,l.right),l.bottom=Z(d.bottom,l.bottom),l.left=k(d.left,l.left),l},is(t,a,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ka(n){const{width:t,height:e}=Js(n);return{width:t,height:e}}function Ca(n,t,e){const s=j(t),i=z(t),r=e==="fixed",o=lt(n,!0,r,t);let a={scrollLeft:0,scrollTop:0};const c=Q(0);if(s||!s&&!r)if((At(t)!=="body"||Kt(i))&&(a=fe(t)),s){const d=lt(t,!0,r,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else i&&(c.x=ti(i));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function xe(n){return N(n).position==="static"}function rs(n,t){return!j(n)||N(n).position==="fixed"?null:t?t(n):n.offsetParent}function ni(n,t){const e=L(n);if(de(n))return e;if(!j(n)){let i=et(n);for(;i&&!Et(i);){if(P(i)&&!xe(i))return i;i=et(i)}return e}let s=rs(n,t);for(;s&&ba(s)&&xe(s);)s=rs(s,t);return s&&Et(s)&&xe(s)&&!tn(s)?e:s||va(n)||e}const La=async function(n){const t=this.getOffsetParent||ni,e=this.getDimensions,s=await e(n.floating);return{reference:Ca(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Fa(n){return N(n).direction==="rtl"}const Da={convertOffsetParentRelativeRectToViewportRelativeRect:Ea,getDocumentElement:z,getClippingRect:Ma,getOffsetParent:ni,getElementRects:La,getClientRects:Aa,getDimensions:ka,getScale:vt,isElement:P,isRTL:Fa};function _a(n,t){let e=null,s;const i=z(n);function r(){var a;clearTimeout(s),(a=e)==null||a.disconnect(),e=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),r();const{left:l,top:u,width:d,height:h}=n.getBoundingClientRect();if(a||t(),!d||!h)return;const m=Yt(u),f=Yt(i.clientWidth-(l+d)),g=Yt(i.clientHeight-(u+h)),b=Yt(l),w={rootMargin:-m+"px "+-f+"px "+-g+"px "+-b+"px",threshold:k(0,Z(1,c))||1};let E=!0;function v(y){const x=y[0].intersectionRatio;if(x!==c){if(!E)return o();x?o(!1,x):s=setTimeout(()=>{o(!1,1e-7)},1e3)}E=!1}try{e=new IntersectionObserver(v,{...w,root:i.ownerDocument})}catch{e=new IntersectionObserver(v,w)}e.observe(n)}return o(!0),r}function sn(n,t,e,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=nn(n),u=i||r?[...l?jt(l):[],...jt(t)]:[];u.forEach(p=>{i&&p.addEventListener("scroll",e,{passive:!0}),r&&p.addEventListener("resize",e)});const d=l&&a?_a(l,e):null;let h=-1,m=null;o&&(m=new ResizeObserver(p=>{let[w]=p;w&&w.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var E;(E=m)==null||E.observe(t)})),e()}),l&&!c&&m.observe(l),m.observe(t));let f,g=c?lt(n):null;c&&b();function b(){const p=lt(n);g&&(p.x!==g.x||p.y!==g.y||p.width!==g.width||p.height!==g.height)&&e(),g=p,f=requestAnimationFrame(b)}return e(),()=>{var p;u.forEach(w=>{i&&w.removeEventListener("scroll",e),r&&w.removeEventListener("resize",e)}),d==null||d(),(p=m)==null||p.disconnect(),m=null,c&&cancelAnimationFrame(f)}}const rn=ma,on=pa,an=da,Ba=ga,cn=(n,t,e)=>{const s=new Map,i={platform:Da,...e},r={...i.platform,_c:s};return ha(n,t,{...i,platform:r})},os=(n,t)=>{const e=n[t];return typeof e=="function"?e:(...s)=>{}},We=(n,t,e)=>{let s=n;return e===!0?s=`${t.identifier}:${n}`:typeof e=="string"&&(s=`${e}:${n}`),s},Ue=(n,t,e)=>{const{bubbles:s,cancelable:i,composed:r}=t||{bubbles:!0,cancelable:!0,composed:!0};return t&&Object.assign(e,{originalEvent:t}),new CustomEvent(n,{bubbles:s,cancelable:i,composed:r,detail:e})};function Ra(n){const t=n.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth,i=t.top<=e&&t.top+t.height>0,r=t.left<=s&&t.left+t.width>0;return i&&r}function $a(n,t){var e={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&t.indexOf(s)<0&&(e[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,s=Object.getOwnPropertySymbols(n);i<s.length;i++)t.indexOf(s[i])<0&&Object.prototype.propertyIsEnumerable.call(n,s[i])&&(e[s[i]]=n[s[i]]);return e}const Oe={debug:!1,logger:console,dispatchEvent:!0,eventPrefix:!0};class Pa{constructor(t,e={}){var s,i,r;this.log=(c,l)=>{this.debug&&(this.logger.groupCollapsed(`%c${this.controller.identifier} %c#${c}`,"color: #3B82F6","color: unset"),this.logger.log(Object.assign({controllerId:this.controllerId},l)),this.logger.groupEnd())},this.warn=c=>{this.logger.warn(`%c${this.controller.identifier} %c${c}`,"color: #3B82F6; font-weight: bold","color: unset")},this.dispatch=(c,l={})=>{if(this.dispatchEvent){const{event:u}=l,d=$a(l,["event"]),h=this.extendedEvent(c,u||null,d);this.targetElement.dispatchEvent(h),this.log("dispatchEvent",Object.assign({eventName:h.type},d))}},this.call=(c,l={})=>{const u=this.controller[c];if(typeof u=="function")return u.call(this.controller,l)},this.extendedEvent=(c,l,u)=>{const{bubbles:d,cancelable:h,composed:m}=l||{bubbles:!0,cancelable:!0,composed:!0};return l&&Object.assign(u,{originalEvent:l}),new CustomEvent(this.composeEventName(c),{bubbles:d,cancelable:h,composed:m,detail:u})},this.composeEventName=c=>{let l=c;return this.eventPrefix===!0?l=`${this.controller.identifier}:${c}`:typeof this.eventPrefix=="string"&&(l=`${this.eventPrefix}:${c}`),l},this.debug=(i=(s=e==null?void 0:e.debug)!==null&&s!==void 0?s:t.application.stimulusUseDebug)!==null&&i!==void 0?i:Oe.debug,this.logger=(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:Oe.logger,this.controller=t,this.controllerId=t.element.id||t.element.dataset.id,this.targetElement=(e==null?void 0:e.element)||t.element;const{dispatchEvent:o,eventPrefix:a}=Object.assign({},Oe,e);Object.assign(this,{dispatchEvent:o,eventPrefix:a}),this.controllerInitialize=t.initialize.bind(t),this.controllerConnect=t.connect.bind(t),this.controllerDisconnect=t.disconnect.bind(t)}}const Na={events:["click","touchend"],onlyVisible:!0,dispatchEvent:!0,eventPrefix:!0},si=(n,t={})=>{const e=n,{onlyVisible:s,dispatchEvent:i,events:r,eventPrefix:o}=Object.assign({},Na,t),a=d=>{const h=(t==null?void 0:t.element)||e.element;if(!(h.contains(d.target)||!Ra(h)&&s)&&(e.clickOutside&&e.clickOutside(d),i)){const m=We("click:outside",e,o),f=Ue(m,d,{controller:e});h.dispatchEvent(f)}},c=()=>{r==null||r.forEach(d=>{window.addEventListener(d,a,!0)})},l=()=>{r==null||r.forEach(d=>{window.removeEventListener(d,a,!0)})},u=e.disconnect.bind(e);return Object.assign(e,{disconnect(){l(),u()}}),c(),[c,l]};class Ia extends K{}Ia.debounces=[];const ja=200,as=(n,t=ja)=>{let e=null;return function(){const s=Array.from(arguments),i=this,r=s.map(a=>a.params),o=()=>(s.forEach((a,c)=>a.params=r[c]),n.apply(i,s));e&&clearTimeout(e),e=setTimeout(o,t)}},Va=(n,t)=>{const e=n;e.constructor.debounces.forEach(i=>{if(typeof i=="string"&&(e[i]=as(e[i],void 0)),typeof i=="object"){const{name:r,wait:o}=i;if(!r)return;e[r]=as(e[r],o||void 0)}})},Ha={dispatchEvent:!0,eventPrefix:!0,visibleAttribute:"isVisible"},Wa=(n,t={})=>{const e=n,{dispatchEvent:s,eventPrefix:i,visibleAttribute:r}=Object.assign({},Ha,t),o=(t==null?void 0:t.element)||e.element;e.intersectionElements||(e.intersectionElements=[]),e.intersectionElements.push(o);const a=v=>{const[y]=v;y.isIntersecting?l(y):o.hasAttribute(r)&&u(y)},c=new IntersectionObserver(a,t),l=v=>{if(o.setAttribute(r,"true"),os(e,"appear").call(e,v,c),s){const y=We("appear",e,i),x=Ue(y,null,{controller:e,entry:v,observer:c});o.dispatchEvent(x)}},u=v=>{if(o.removeAttribute(r),os(e,"disappear").call(e,v,c),s){const y=We("disappear",e,i),x=Ue(y,null,{controller:e,entry:v,observer:c});o.dispatchEvent(x)}},d=e.disconnect.bind(e),h=()=>{f(),d()},m=()=>{c.observe(o)},f=()=>{c.unobserve(o)},g=()=>e.intersectionElements.filter(v=>v.hasAttribute(r)).length===0,b=()=>e.intersectionElements.filter(v=>v.hasAttribute(r)).length===1,p=()=>e.intersectionElements.some(v=>v.hasAttribute(r)),w=()=>e.intersectionElements.every(v=>v.hasAttribute(r));return Object.assign(e,{isVisible:w,noneVisible:g,oneVisible:b,atLeastOneVisible:p,allVisible:w,disconnect:h}),m(),[m,f]};class Ua extends Pa{constructor(t,e={}){super(t,e),this.observe=()=>{try{this.observer.observe(this.targetElement,this.options)}catch(s){this.controller.application.handleError(s,"At a minimum, one of childList, attributes, and/or characterData must be true",{})}},this.unobserve=()=>{this.observer.disconnect()},this.mutation=s=>{this.call("mutate",s),this.log("mutate",{entries:s}),this.dispatch("mutate",{entries:s})},this.targetElement=(e==null?void 0:e.element)||t.element,this.controller=t,this.options=e,this.observer=new MutationObserver(this.mutation),this.enhanceController(),this.observe()}enhanceController(){const t=this.controller.disconnect.bind(this.controller),e=()=>{this.unobserve(),t()};Object.assign(this.controller,{disconnect:e})}}const ln=(n,t={})=>{const e=new Ua(n,t);return[e.observe,e.unobserve]};class Ka extends K{}Ka.throttles=[];class za extends V()({targets:{wrapper:HTMLDetailsElement,button:HTMLElement,popover:Le,options:HTMLDivElement},values:{clamped:Boolean,placement:String,dynamicLabelPrefix:String}}){constructor(){super(...arguments),this.changedIds=new Set}clickOutside(){this.element.open=!1,this.setupAutoUpdate(),this.close()}close(){this.changedIds.size>0&&(this.dispatch("changed"),this.changedIds.clear())}connect(){si(this),ln(this,{childList:!0,subtree:!0}),this.setupAutoUpdate(),this.setupForm()}disconnect(){var t;(t=this.unsubAutoUpdate)==null||t.call(this)}setupForm(){for(const t of["checkbox","radio"])for(const e of this.popoverTarget.querySelectorAll(`input[type="${t}"]`))e.addEventListener("change",s=>{const i=s.target;this.changedIds.has(i)?this.changedIds.delete(i):this.changedIds.add(i),this.dispatch("clicked",{detail:i})})}setupAutoUpdate(){var e;if(!this.element.open){(e=this.unsubAutoUpdate)==null||e.call(this);return}const t=()=>{const s=this.optionsTarget,i=this.clampedValue;cn(this.buttonTarget,this.popoverTarget,{middleware:[rn(6),an(),on({padding:6}),Ba({apply({availableHeight:r}){let o=r-6;i&&o>400&&(o=400),Object.assign(s.style,{maxHeight:`${o}px`})}})],placement:this.placementValue,strategy:"fixed"}).then(({x:r,y:o})=>{Object.assign(this.popoverTarget.style,{left:`${r}px`,top:`${o}px`})})};t(),this.unsubAutoUpdate=sn(this.buttonTarget,this.popoverTarget,t)}updateButtonLabel(t){var r;const s=t.target.querySelector("input[type=radio]:checked");if(!s)return;const i=((r=s.labels)==null?void 0:r.item(0)).textContent;this.buttonTarget.querySelector('[data-ariadne-ui-button-target="content"]').textContent=`${this.dynamicLabelPrefixValue}${i}`}toggle(){this.element.open=!this.element.open,this.setupAutoUpdate()}}const qa=Object.freeze(Object.defineProperty({__proto__:null,default:za},Symbol.toStringTag,{value:"Module"}));function Ya(n){if(Array.isArray(n)){for(var t=0,e=Array(n.length);t<n.length;t++)e[t]=n[t];return e}else return Array.from(n)}var un=!1;if(typeof window<"u"){var cs={get passive(){un=!0}};window.addEventListener("testPassive",null,cs),window.removeEventListener("testPassive",null,cs)}var oe=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),at=[],ae=!1,ii=-1,Rt=void 0,rt=void 0,$t=void 0,ri=function(t){return at.some(function(e){return!!(e.options.allowTouchMove&&e.options.allowTouchMove(t))})},ce=function(t){var e=t||window.event;return ri(e.target)||e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)},Xa=function(t){if($t===void 0){var e=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;if(e&&s>0){var i=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);$t=document.body.style.paddingRight,document.body.style.paddingRight=i+s+"px"}}Rt===void 0&&(Rt=document.body.style.overflow,document.body.style.overflow="hidden")},Ga=function(){$t!==void 0&&(document.body.style.paddingRight=$t,$t=void 0),Rt!==void 0&&(document.body.style.overflow=Rt,Rt=void 0)},Za=function(){return window.requestAnimationFrame(function(){if(rt===void 0){rt={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left};var t=window,e=t.scrollY,s=t.scrollX,i=t.innerHeight;document.body.style.position="fixed",document.body.style.top=-e,document.body.style.left=-s,setTimeout(function(){return window.requestAnimationFrame(function(){var r=i-window.innerHeight;r&&e>=i&&(document.body.style.top=-(e+r))})},300)}})},Ja=function(){if(rt!==void 0){var t=-parseInt(document.body.style.top,10),e=-parseInt(document.body.style.left,10);document.body.style.position=rt.position,document.body.style.top=rt.top,document.body.style.left=rt.left,window.scrollTo(e,t),rt=void 0}},Qa=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},tc=function(t,e){var s=t.targetTouches[0].clientY-ii;return ri(t.target)?!1:e&&e.scrollTop===0&&s>0||Qa(e)&&s<0?ce(t):(t.stopPropagation(),!0)},ec=function(t,e){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!at.some(function(i){return i.targetElement===t})){var s={targetElement:t,options:e||{}};at=[].concat(Ya(at),[s]),oe?Za():Xa(e),oe&&(t.ontouchstart=function(i){i.targetTouches.length===1&&(ii=i.targetTouches[0].clientY)},t.ontouchmove=function(i){i.targetTouches.length===1&&tc(i,t)},ae||(document.addEventListener("touchmove",ce,un?{passive:!1}:void 0),ae=!0))}},nc=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}at=at.filter(function(e){return e.targetElement!==t}),oe&&(t.ontouchstart=null,t.ontouchmove=null,ae&&at.length===0&&(document.removeEventListener("touchmove",ce,un?{passive:!1}:void 0),ae=!1)),oe?Ja():Ga()};class sc extends V()({targets:{dialog:HTMLDialogElement}}){close(){this.dialogTarget.open&&(this.dialogTarget.close(),nc(this.dialogTarget))}disconnect(){this.close()}open(){this.dialogTarget.showModal(),ec(this.dialogTarget,{reserveScrollBarGap:!0})}triggerClick(){this.dialogTarget.open?this.close():this.open()}windowClick(t){t.target===this.dialogTarget&&this.close()}}const ic=Object.freeze(Object.defineProperty({__proto__:null,default:sc},Symbol.toStringTag,{value:"Module"}));async function rc(n,t=null){n.classList.remove("hidden"),await oi("enter",n,t)}async function oc(n,t=null){await oi("leave",n,t),n.classList.add("hidden")}async function oi(n,t,e){const s=t.dataset,i=e?`${e}-${n}`:n;let r=`transition${n.charAt(0).toUpperCase()+n.slice(1)}`;const o=s[r]?s[r].split(" "):[i],a=s[`${r}Start`]?s[`${r}Start`].split(" "):[`${i}-start`],c=s[`${r}End`]?s[`${r}End`].split(" "):[`${i}-end`];Se(t,o),Se(t,a),await ac(),Me(t,a),Se(t,c),await cc(t),Me(t,c),Me(t,o)}function Se(n,t){n.classList.add(...t)}function Me(n,t){n.classList.remove(...t)}function ac(){return new Promise(n=>{requestAnimationFrame(()=>{requestAnimationFrame(n)})})}function cc(n){return new Promise(t=>{const e=getComputedStyle(n).transitionDuration.split(",")[0],s=Number(e.replace("s",""))*1e3;setTimeout(()=>{t()},s)})}const ue=class ue extends K{async connect(){await this.show();const t=()=>{};setTimeout(()=>{this.hide().then(t).catch(t)},this.timerValue)}async disconnect(){await this.hide()}async hide(){await oc(this.element),this.hasHiddenClass?this.element.classList.add(this.hiddenClass):this.element.classList.add("hidden"),this.element.remove()}async show(){this.hasHiddenClass?this.element.classList.remove(this.hiddenClass):this.element.classList.remove("hidden"),await rc(this.element)}};ue.classes=["ariadne-hidden"],ue.values={timer:{default:4e3,type:Number}};let Ke=ue;const lc=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));class uc extends V()({targets:{emptyRoot:null,input:HTMLInputElement,searchString:null}}){handleNewQuery(t){let e=!1;for(const{el:s,searchString:i}of this.items){const r=i.includes(t.trim().toLowerCase());!e&&r&&(e=!0),r?s.classList.remove("ariadne-hidden"):s.classList.add("ariadne-hidden")}e?this.emptyRootTarget.classList.add("ariadne-hidden"):this.emptyRootTarget.classList.remove("ariadne-hidden")}connect(){this.items=this.searchStringTargets.map(t=>({el:t,searchString:(t.textContent??"").trim().toLowerCase()})),Wa(this)}appear(t,e){this.reset()}handleInput(){this.hasSearchStringTarget&&this.handleNewQuery(this.inputTarget.value)}reset(){this.handleNewQuery(""),this.hasInputTarget&&(this.inputTarget.value="")}}const hc=Object.freeze(Object.defineProperty({__proto__:null,default:uc},Symbol.toStringTag,{value:"Module"}));class dc extends V()({targets:{anchor:null,popover:null},values:{clamped:Boolean,placement:String}}){constructor(){super(...arguments),this.changedIds=new Set,this.clickHandlers=[]}setupClickHandlers(){const t=()=>this.toggle();for(const e of this.clickHandlers)e();this.clickHandlers=[];for(const e of this.anchorTarget.querySelectorAll('button, [tabindex]:not([tabindex="-1"])'))e.addEventListener("click",t),this.clickHandlers.push(()=>e.removeEventListener("click",t))}checkboxClicked(t){const s=t.target.value;this.changedIds.has(s)?this.changedIds.delete(s):this.changedIds.add(s),this.dispatch("clicked",{detail:s})}clickOutside(){this.setupAutoUpdate(),this.close()}close(){this.element.open=!1}connect(){si(this),ln(this,{childList:!0,subtree:!0}),this.setupAutoUpdate(),this.setupClickHandlers()}disconnect(){var t;(t=this.unsubAutoUpdate)==null||t.call(this)}setupAutoUpdate(){var e;if(!this.element.open){(e=this.unsubAutoUpdate)==null||e.call(this);return}const t=()=>{cn(this.anchorTarget,this.popoverTarget,{middleware:[rn(6),an(),on({padding:6})],placement:this.placementValue,strategy:"fixed"}).then(({x:s,y:i})=>{Object.assign(this.popoverTarget.style,{left:`${s}px`,top:`${i}px`})})};t(),this.unsubAutoUpdate=sn(this.anchorTarget,this.popoverTarget,t)}toggle(){this.element.open=!this.element.open,this.setupAutoUpdate()}}const fc=Object.freeze(Object.defineProperty({__proto__:null,default:dc},Symbol.toStringTag,{value:"Module"}));class mc extends V()({targets:{button:HTMLButtonElement,popover:HTMLElement},values:{placement:String}}){connect(){this.popoverTarget.addEventListener("toggle",t=>{t.newState==="open"&&this.updatePosition()})}updatePosition(){sn(this.buttonTarget,this.popoverTarget,()=>{cn(this.buttonTarget,this.popoverTarget,{placement:this.placementValue,middleware:[rn(5),an(),on({padding:5})]}).then(({x:t,y:e})=>{Object.assign(this.buttonTarget.style,{left:`${t}px`,top:`${e}px`})})})}}const pc=Object.freeze(Object.defineProperty({__proto__:null,default:mc},Symbol.toStringTag,{value:"Module"}));var gc=function(n,t,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e},ls=function(n,t,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!s:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(n):s?s.value:t.get(n)},Ft;class bc{formatToParts(t){const e=[];for(const s of t)e.push({type:"element",value:s}),e.push({type:"literal",value:", "});return e.slice(0,-1)}}const vc=typeof Intl<"u"&&Intl.ListFormat||bc,yc=[["years","year"],["months","month"],["weeks","week"],["days","day"],["hours","hour"],["minutes","minute"],["seconds","second"],["milliseconds","millisecond"]],wc={minimumIntegerDigits:2};class Ec{constructor(t,e={}){Ft.set(this,void 0);let s=String(e.style||"short");s!=="long"&&s!=="short"&&s!=="narrow"&&s!=="digital"&&(s="short");let i=s==="digital"?"numeric":s;const r=e.hours||i;i=r==="2-digit"?"numeric":r;const o=e.minutes||i;i=o==="2-digit"?"numeric":o;const a=e.seconds||i;i=a==="2-digit"?"numeric":a;const c=e.milliseconds||i;gc(this,Ft,{locale:t,style:s,years:e.years||s==="digital"?"short":s,yearsDisplay:e.yearsDisplay==="always"?"always":"auto",months:e.months||s==="digital"?"short":s,monthsDisplay:e.monthsDisplay==="always"?"always":"auto",weeks:e.weeks||s==="digital"?"short":s,weeksDisplay:e.weeksDisplay==="always"?"always":"auto",days:e.days||s==="digital"?"short":s,daysDisplay:e.daysDisplay==="always"?"always":"auto",hours:r,hoursDisplay:e.hoursDisplay==="always"||s==="digital"?"always":"auto",minutes:o,minutesDisplay:e.minutesDisplay==="always"||s==="digital"?"always":"auto",seconds:a,secondsDisplay:e.secondsDisplay==="always"||s==="digital"?"always":"auto",milliseconds:c,millisecondsDisplay:e.millisecondsDisplay==="always"?"always":"auto"},"f")}resolvedOptions(){return ls(this,Ft,"f")}formatToParts(t){const e=[],s=ls(this,Ft,"f"),i=s.style,r=s.locale;for(const[o,a]of yc){const c=t[o];if(s[`${o}Display`]==="auto"&&!c)continue;const l=s[o],u=l==="2-digit"?wc:l==="numeric"?{}:{style:"unit",unit:a,unitDisplay:l};e.push(new Intl.NumberFormat(r,u).format(c))}return new vc(r,{type:"unit",style:i==="digital"?"short":i}).formatToParts(e)}format(t){return this.formatToParts(t).map(e=>e.value).join("")}}Ft=new WeakMap;const ai=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,le=["year","month","week","day","hour","minute","second","millisecond"],Ac=n=>ai.test(n);class C{constructor(t=0,e=0,s=0,i=0,r=0,o=0,a=0,c=0){this.years=t,this.months=e,this.weeks=s,this.days=i,this.hours=r,this.minutes=o,this.seconds=a,this.milliseconds=c,this.years||(this.years=0),this.sign||(this.sign=Math.sign(this.years)),this.months||(this.months=0),this.sign||(this.sign=Math.sign(this.months)),this.weeks||(this.weeks=0),this.sign||(this.sign=Math.sign(this.weeks)),this.days||(this.days=0),this.sign||(this.sign=Math.sign(this.days)),this.hours||(this.hours=0),this.sign||(this.sign=Math.sign(this.hours)),this.minutes||(this.minutes=0),this.sign||(this.sign=Math.sign(this.minutes)),this.seconds||(this.seconds=0),this.sign||(this.sign=Math.sign(this.seconds)),this.milliseconds||(this.milliseconds=0),this.sign||(this.sign=Math.sign(this.milliseconds)),this.blank=this.sign===0}abs(){return new C(Math.abs(this.years),Math.abs(this.months),Math.abs(this.weeks),Math.abs(this.days),Math.abs(this.hours),Math.abs(this.minutes),Math.abs(this.seconds),Math.abs(this.milliseconds))}static from(t){var e;if(typeof t=="string"){const s=String(t).trim(),i=s.startsWith("-")?-1:1,r=(e=s.match(ai))===null||e===void 0?void 0:e.slice(1).map(o=>(Number(o)||0)*i);return r?new C(...r):new C}else if(typeof t=="object"){const{years:s,months:i,weeks:r,days:o,hours:a,minutes:c,seconds:l,milliseconds:u}=t;return new C(s,i,r,o,a,c,l,u)}throw new RangeError("invalid duration")}static compare(t,e){const s=Date.now(),i=Math.abs(us(s,C.from(t)).getTime()-s),r=Math.abs(us(s,C.from(e)).getTime()-s);return i>r?-1:i<r?1:0}toLocaleString(t,e){return new Ec(t,e).format(this)}}function us(n,t){const e=new Date(n);return e.setFullYear(e.getFullYear()+t.years),e.setMonth(e.getMonth()+t.months),e.setDate(e.getDate()+t.weeks*7+t.days),e.setHours(e.getHours()+t.hours),e.setMinutes(e.getMinutes()+t.minutes),e.setSeconds(e.getSeconds()+t.seconds),e}function Tc(n,t="second",e=Date.now()){const s=n.getTime()-e;if(s===0)return new C;const i=Math.sign(s),r=Math.abs(s),o=Math.floor(r/1e3),a=Math.floor(o/60),c=Math.floor(a/60),l=Math.floor(c/24),u=Math.floor(l/30),d=Math.floor(u/12),h=le.indexOf(t)||le.length;return new C(h>=0?d*i:0,h>=1?(u-d*12)*i:0,0,h>=3?(l-u*30)*i:0,h>=4?(c-l*24)*i:0,h>=5?(a-c*60)*i:0,h>=6?(o-a*60)*i:0,h>=7?(r-o*1e3)*i:0)}function ci(n,{relativeTo:t=Date.now()}={}){if(t=new Date(t),n.blank)return n;const e=n.sign;let s=Math.abs(n.years),i=Math.abs(n.months),r=Math.abs(n.weeks),o=Math.abs(n.days),a=Math.abs(n.hours),c=Math.abs(n.minutes),l=Math.abs(n.seconds),u=Math.abs(n.milliseconds);u>=900&&(l+=Math.round(u/1e3)),(l||c||a||o||r||i||s)&&(u=0),l>=55&&(c+=Math.round(l/60)),(c||a||o||r||i||s)&&(l=0),c>=55&&(a+=Math.round(c/60)),(a||o||r||i||s)&&(c=0),o&&a>=12&&(o+=Math.round(a/24)),!o&&a>=21&&(o+=Math.round(a/24)),(o||r||i||s)&&(a=0);const d=t.getFullYear(),h=t.getMonth(),m=t.getDate();if(o>=27||s+i+o){const f=new Date(t);f.setDate(1),f.setMonth(h+i*e+1),f.setDate(0);const g=Math.max(0,m-f.getDate()),b=new Date(t);b.setFullYear(d+s*e),b.setDate(m-g),b.setMonth(h+i*e),b.setDate(m-g+o*e);const p=b.getFullYear()-t.getFullYear(),w=b.getMonth()-t.getMonth(),E=Math.abs(Math.round((Number(b)-Number(t))/864e5))+g,v=Math.abs(p*12+w);E<27?(o>=6?(r+=Math.round(o/7),o=0):o=E,i=s=0):v<11?(i=v,s=0):(i=0,s=p*e),(i||s)&&(o=0)}return s&&(i=0),r>=4&&(i+=Math.round(r/4)),(i||s)&&(r=0),o&&r&&!i&&!s&&(r+=Math.round(o/7),o=0),new C(s*e,i*e,r*e,o*e,a*e,c*e,l*e,u*e)}function xc(n,t){const e=ci(n,t);if(e.blank)return[0,"second"];for(const s of le){if(s==="millisecond")continue;const i=e[`${s}s`];if(i)return[i,s]}return[0,"second"]}var O=function(n,t,e,s){if(e==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!s:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?s:e==="a"?s.call(n):s?s.value:t.get(n)},Xt=function(n,t,e,s,i){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!i:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?i.call(n,e):i?i.value=e:t.set(n,e),e},D,Dt,_t,Ot,it,ze,li,ui,hi,di,dt;const Oc=globalThis.HTMLElement||null,ke=new C,hs=new C(0,0,0,0,0,1);class Sc extends Event{constructor(t,e,s,i){super("relative-time-updated",{bubbles:!0,composed:!0}),this.oldText=t,this.newText=e,this.oldTitle=s,this.newTitle=i}}function ds(n){if(!n.date)return 1/0;if(n.format==="duration"||n.format==="elapsed"){const e=n.precision;if(e==="second")return 1e3;if(e==="minute")return 60*1e3}const t=Math.abs(Date.now()-n.date.getTime());return t<60*1e3?1e3:t<60*60*1e3?60*1e3:60*60*1e3}const Ce=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(n){if(this.elements.has(n))return;this.elements.add(n);const t=n.date;if(t&&t.getTime()){const e=ds(n),s=Date.now()+e;s<this.time&&(clearTimeout(this.timer),this.timer=setTimeout(()=>this.update(),e),this.time=s)}}unobserve(n){this.elements.has(n)&&this.elements.delete(n)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let n=1/0;for(const t of this.elements)n=Math.min(n,ds(t)),t.update();this.time=Math.min(60*60*1e3,n),this.timer=setTimeout(()=>this.update(),this.time),this.time+=Date.now()}};class Mc extends Oc{constructor(){super(...arguments),D.add(this),Dt.set(this,!1),_t.set(this,!1),it.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:"open"}):this),dt.set(this,null)}static define(t="relative-time",e=customElements){return e.define(t,this),this}static get observedAttributes(){return["second","minute","hour","weekday","day","month","year","time-zone-name","prefix","threshold","tense","precision","format","format-style","no-title","datetime","lang","title"]}get onRelativeTimeUpdated(){return O(this,dt,"f")}set onRelativeTimeUpdated(t){O(this,dt,"f")&&this.removeEventListener("relative-time-updated",O(this,dt,"f")),Xt(this,dt,typeof t=="object"||typeof t=="function"?t:null,"f"),typeof t=="function"&&this.addEventListener("relative-time-updated",t)}get second(){const t=this.getAttribute("second");if(t==="numeric"||t==="2-digit")return t}set second(t){this.setAttribute("second",t||"")}get minute(){const t=this.getAttribute("minute");if(t==="numeric"||t==="2-digit")return t}set minute(t){this.setAttribute("minute",t||"")}get hour(){const t=this.getAttribute("hour");if(t==="numeric"||t==="2-digit")return t}set hour(t){this.setAttribute("hour",t||"")}get weekday(){const t=this.getAttribute("weekday");if(t==="long"||t==="short"||t==="narrow")return t;if(this.format==="datetime"&&t!=="")return this.formatStyle}set weekday(t){this.setAttribute("weekday",t||"")}get day(){var t;const e=(t=this.getAttribute("day"))!==null&&t!==void 0?t:"numeric";if(e==="numeric"||e==="2-digit")return e}set day(t){this.setAttribute("day",t||"")}get month(){const t=this.format;let e=this.getAttribute("month");if(e!==""&&(e??(e=t==="datetime"?this.formatStyle:"short"),e==="numeric"||e==="2-digit"||e==="short"||e==="long"||e==="narrow"))return e}set month(t){this.setAttribute("month",t||"")}get year(){var t;const e=this.getAttribute("year");if(e==="numeric"||e==="2-digit")return e;if(!this.hasAttribute("year")&&new Date().getUTCFullYear()!==((t=this.date)===null||t===void 0?void 0:t.getUTCFullYear()))return"numeric"}set year(t){this.setAttribute("year",t||"")}get timeZoneName(){const t=this.getAttribute("time-zone-name");if(t==="long"||t==="short"||t==="shortOffset"||t==="longOffset"||t==="shortGeneric"||t==="longGeneric")return t}set timeZoneName(t){this.setAttribute("time-zone-name",t||"")}get prefix(){var t;return(t=this.getAttribute("prefix"))!==null&&t!==void 0?t:this.format==="datetime"?"":"on"}set prefix(t){this.setAttribute("prefix",t)}get threshold(){const t=this.getAttribute("threshold");return t&&Ac(t)?t:"P30D"}set threshold(t){this.setAttribute("threshold",t)}get tense(){const t=this.getAttribute("tense");return t==="past"?"past":t==="future"?"future":"auto"}set tense(t){this.setAttribute("tense",t)}get precision(){const t=this.getAttribute("precision");return le.includes(t)?t:this.format==="micro"?"minute":"second"}set precision(t){this.setAttribute("precision",t)}get format(){const t=this.getAttribute("format");return t==="datetime"?"datetime":t==="relative"?"relative":t==="duration"?"duration":t==="micro"?"micro":t==="elapsed"?"elapsed":"auto"}set format(t){this.setAttribute("format",t)}get formatStyle(){const t=this.getAttribute("format-style");if(t==="long")return"long";if(t==="short")return"short";if(t==="narrow")return"narrow";const e=this.format;return e==="elapsed"||e==="micro"?"narrow":e==="datetime"?"short":"long"}set formatStyle(t){this.setAttribute("format-style",t)}get noTitle(){return this.hasAttribute("no-title")}set noTitle(t){this.toggleAttribute("no-title",t)}get datetime(){return this.getAttribute("datetime")||""}set datetime(t){this.setAttribute("datetime",t)}get date(){const t=Date.parse(this.datetime);return Number.isNaN(t)?null:new Date(t)}set date(t){this.datetime=(t==null?void 0:t.toISOString())||""}connectedCallback(){this.update()}disconnectedCallback(){Ce.unobserve(this)}attributeChangedCallback(t,e,s){e!==s&&(t==="title"&&Xt(this,Dt,s!==null&&(this.date&&O(this,D,"m",ze).call(this,this.date))!==s,"f"),!O(this,_t,"f")&&!(t==="title"&&O(this,Dt,"f"))&&Xt(this,_t,(async()=>{await Promise.resolve(),this.update()})(),"f"))}update(){const t=O(this,it,"f").textContent||this.textContent||"",e=this.getAttribute("title")||"";let s=e;const i=this.date;if(typeof Intl>"u"||!Intl.DateTimeFormat||!i){O(this,it,"f").textContent=t;return}const r=Date.now();O(this,Dt,"f")||(s=O(this,D,"m",ze).call(this,i)||"",s&&!this.noTitle&&this.setAttribute("title",s));const o=Tc(i,this.precision,r),a=O(this,D,"m",li).call(this,o);let c=t;a==="duration"?c=O(this,D,"m",ui).call(this,o):a==="relative"?c=O(this,D,"m",hi).call(this,o):c=O(this,D,"m",di).call(this,i),c?O(this,it,"f").textContent=c:this.shadowRoot===O(this,it,"f")&&this.textContent&&(O(this,it,"f").textContent=this.textContent),(c!==t||s!==e)&&this.dispatchEvent(new Sc(t,c,e,s)),a==="relative"||a==="duration"?Ce.observe(this):Ce.unobserve(this),Xt(this,_t,!1,"f")}}Dt=new WeakMap,_t=new WeakMap,it=new WeakMap,dt=new WeakMap,D=new WeakSet,Ot=function(){var t;return((t=this.closest("[lang]"))===null||t===void 0?void 0:t.getAttribute("lang"))||this.ownerDocument.documentElement.getAttribute("lang")||"default"},ze=function(t){return new Intl.DateTimeFormat(O(this,D,"a",Ot),{day:"numeric",month:"short",year:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}).format(t)},li=function(t){const e=this.format;if(e==="datetime")return"datetime";if(e==="duration"||e==="elapsed"||e==="micro")return"duration";if((e==="auto"||e==="relative")&&typeof Intl<"u"&&Intl.RelativeTimeFormat){const s=this.tense;if(s==="past"||s==="future"||C.compare(t,this.threshold)===1)return"relative"}return"datetime"},ui=function(t){const e=O(this,D,"a",Ot),s=this.format,i=this.formatStyle,r=this.tense;let o=ke;s==="micro"?(t=ci(t),o=hs,(this.tense==="past"&&t.sign!==-1||this.tense==="future"&&t.sign!==1)&&(t=hs)):(r==="past"&&t.sign!==-1||r==="future"&&t.sign!==1)&&(t=o);const a=`${this.precision}sDisplay`;return t.blank?o.toLocaleString(e,{style:i,[a]:"always"}):t.abs().toLocaleString(e,{style:i})},hi=function(t){const e=new Intl.RelativeTimeFormat(O(this,D,"a",Ot),{numeric:"auto",style:this.formatStyle}),s=this.tense;s==="future"&&t.sign!==1&&(t=ke),s==="past"&&t.sign!==-1&&(t=ke);const[i,r]=xc(t);return r==="second"&&i<10?e.format(0,this.precision==="millisecond"?"second":this.precision):e.format(i,r)},di=function(t){const e=new Intl.DateTimeFormat(O(this,D,"a",Ot),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName});return`${this.prefix} ${e.format(t)}`.trim()};const fs=typeof globalThis<"u"?globalThis:window;try{fs.RelativeTimeElement=Mc.define()}catch(n){if(!(fs.DOMException&&n instanceof DOMException&&n.name==="NotSupportedError")&&!(n instanceof ReferenceError))throw n}class kc extends V()({targets:{}}){}const Cc=Object.freeze(Object.defineProperty({__proto__:null,default:kc},Symbol.toStringTag,{value:"Module"})),he=class he extends K{connect(){Va(this)}save(){this.hasFormTarget?this.formTarget.requestSubmit():this.element.requestSubmit()}};he.debounces=["save"],he.targets=["form"];let qe=he;const Lc=Object.freeze(Object.defineProperty({__proto__:null,default:qe},Symbol.toStringTag,{value:"Module"}));class Fc extends V()({targets:{button:HTMLButtonElement,form:HTMLFormElement}}){get form(){return this.hasFormTarget?this.formTarget:this.element}runCheck(){this.buttonTarget.disabled=!this.form.checkValidity()}connect(){this.form.addEventListener("input",()=>this.runCheck()),this.runCheck(),ln(this,{childList:!0,subtree:!0})}mutate(){this.runCheck()}}const Dc=Object.freeze(Object.defineProperty({__proto__:null,default:Fc},Symbol.toStringTag,{value:"Module"})),me=jr.start();me.debug=!1;window.Stimulus=me;const _c=Object.assign({"../../components/ariadne/form/toggle/component.ts":so,"../../components/ariadne/ui/accordion/component.ts":qo,"../../components/ariadne/ui/clipboard_copy/component.ts":na,"../../components/ariadne/ui/combobox/component.ts":qa,"../../components/ariadne/ui/dialog/component.ts":ic,"../../components/ariadne/ui/flash/component.ts":lc,"../../components/ariadne/ui/list/component.ts":hc,"../../components/ariadne/ui/overlay/component.ts":fc,"../../components/ariadne/ui/popover/component.ts":pc,"../../components/ariadne/ui/time_ago/component.ts":Cc});for(const[n,t]of Object.entries(_c)){const e=n.split("/"),s=e.slice(3,e.length-1).join("-").replaceAll("_","-").toLocaleLowerCase();me.register(s,t.default)}const Bc=Object.assign({"/controllers/form_autosubmit_controller.ts":Lc,"/controllers/form_validity_controller.ts":Dc});for(const[n,t]of Object.entries(Bc)){const e=n.split("/"),s=e[e.length-1].replace("_controller.ts","").replaceAll("_","-").toLocaleLowerCase();me.register(`ariadne-${s}`,t.default)}
|
99
99
|
//# sourceMappingURL=ariadne_view_components.js.map
|
Binary file
|
Binary file
|