diff --git a/packages/craftcms-cp/src/components/action-item/action-item.styles.ts b/packages/craftcms-cp/src/components/action-item/action-item.styles.ts index 31b1cbaa20e..8ee0ede56e4 100644 --- a/packages/craftcms-cp/src/components/action-item/action-item.styles.ts +++ b/packages/craftcms-cp/src/components/action-item/action-item.styles.ts @@ -13,7 +13,6 @@ export default css` font: inherit; text-align: left; display: flex; - width: 100%; align-items: center; text-decoration: none; padding-inline: var(--c-spacing-sm); diff --git a/packages/craftcms-cp/src/components/button/button.styles.ts b/packages/craftcms-cp/src/components/button/button.styles.ts index 52ec9d5c69c..454ff4681ec 100644 --- a/packages/craftcms-cp/src/components/button/button.styles.ts +++ b/packages/craftcms-cp/src/components/button/button.styles.ts @@ -113,6 +113,16 @@ export default css` Appearances */ + /* None */ + :host([appearance~='none']), + :host([appearance~='none']:hover), + :host([appearance~='none']:not(:disabled):not(.loading):active) { + background-color: transparent; + border-color: transparent; + color: inherit; + padding: 0; + } + /* Plain */ :host([appearance~='plain']) { background-color: transparent; @@ -120,7 +130,7 @@ export default css` color: inherit; } - :host([appearance~='plain']:hover) { + :host([appearance~='plain']:not(:disabled):not(.loading):hover) { background-color: color-mix( in oklab, var(--c-color-fill-quiet, var(--c-button-default-fill)), @@ -129,7 +139,7 @@ export default css` color: var(--c-color-on-quiet); } - :host([appearance~='plain']:active) { + :host([appearance~='plain']:not(:disabled):not(.loading):active) { color: var(--c-color-on-quiet, var(--c-color-neutral-on-quiet)); background-color: color-mix( in oklab, @@ -148,7 +158,7 @@ export default css` color: var(--c-color-on-normal, var(--c-color-neutral-on-normal)); } - :host([appearance~='filled']:hover) { + :host([appearance~='filled']:not(:disabled):not(.loading):hover) { background-color: color-mix( in oklab, var(--c-color-fill-normal, var(--c-color-neutral-fill-normal)), @@ -157,7 +167,7 @@ export default css` color: var(--c-color-on-normal, var(--c-color-neutral-on-normal)); } - :host([appearance~='filled']:active) { + :host([appearance~='filled']:not(:disabled):not(.loading):active) { color: var(--c-color-on-quiet, var(--c-color-neutral-on-quiet)); background-color: color-mix( in oklab, @@ -174,7 +184,7 @@ export default css` color: var(--c-color-on-quiet); } - :host([appearance~='dashed']:hover) { + :host([appearance~='dashed']:not(:disabled):not(.loading):hover) { background-color: color-mix( in oklab, var(--c-color-fill-quiet, var(--c-button-default-fill)), @@ -183,7 +193,7 @@ export default css` color: var(--c-color-on-quiet); } - :host([appearance~='dashed']:active) { + :host([appearance~='dashed']:not(:disabled):not(.loading):active) { color: var(--c-color-on-quiet, var(--c-color-neutral-on-quiet)); background-color: color-mix( in oklab, diff --git a/packages/craftcms-cp/src/components/button/button.ts b/packages/craftcms-cp/src/components/button/button.ts index c988d3013b0..5943899724d 100644 --- a/packages/craftcms-cp/src/components/button/button.ts +++ b/packages/craftcms-cp/src/components/button/button.ts @@ -54,6 +54,7 @@ export default class CraftButton extends LionButtonSubmit { | 'accent' | 'plain' | 'filled' + | 'none' | 'dashed' = 'accent'; /** diff --git a/packages/craftcms-cp/src/components/input-handle/input-handle.ts b/packages/craftcms-cp/src/components/input-handle/input-handle.ts index 66ce1717f00..fb690436384 100644 --- a/packages/craftcms-cp/src/components/input-handle/input-handle.ts +++ b/packages/craftcms-cp/src/components/input-handle/input-handle.ts @@ -1,5 +1,6 @@ import {css} from 'lit'; import {CraftInput} from '@src/index'; +import {property} from 'lit/decorators.js'; export default class CraftInputHandle extends CraftInput { static override get styles() { @@ -14,15 +15,20 @@ export default class CraftInputHandle extends CraftInput { ]; } - constructor() { - super(); - this.autocorrect = false; - } + @property({reflect: true}) + override autocorrect = false; + + @property({reflect: true, type: String}) + override autocapitalize = 'off'; override firstUpdated(changedProperties: Map) { super.firstUpdated(changedProperties); - this._inputNode?.setAttribute('autocapitalize', 'off'); + this._inputNode?.setAttribute( + 'autocorrect', + this.autocorrect ? 'on' : 'off' + ); + this._inputNode?.setAttribute('autocapitalize', this.autocapitalize); } } diff --git a/resources/build/AppLayout.js b/resources/build/AppLayout.js index 041102f8343..030ddb02a6e 100644 --- a/resources/build/AppLayout.js +++ b/resources/build/AppLayout.js @@ -1 +1 @@ -import{$ as e,B as t,E as n,G as r,J as i,K as a,L as o,P as s,S as c,T as l,V as u,X as d,a as f,b as p,d as m,h,it as g,l as _,lt as v,rt as ee,t as y,v as b,w as x,x as S,y as C,z as w}from"./_plugin-vue_export-helper.js";import{r as T}from"./nav-item-9g3ebwBJ.js";import{a as E,i as D,n as O,r as k,t as A}from"./useAnnouncer.js";import{a as j,r as te}from"./dist.js";var M={class:`system-info__icon`},N=[`src`],P={class:`system-info__name`},F=y(n({__name:`SystemInfo`,setup(t){let n=j(),r=b(()=>n.system),a=b(()=>n.site),s=b(()=>a.value.url?`a`:`div`);return(t,n)=>(o(),p(u(s.value),{class:`system-info`,href:a.value.url,target:a.value.url?`_blank`:null},{default:i(()=>[C(`div`,M,[r.value.icon?(o(),c(`img`,{key:0,src:r.value.icon,alt:``},null,8,N)):S(``,!0)]),C(`div`,P,e(r.value.name),1)]),_:1},8,[`href`,`target`]))}}),[[`__scopeId`,`data-v-d8aced2c`]]),I=[`icon`,`href`,`active`,`indicator`],L={key:0,slot:`subnav`},R=[`active`,`href`,`indicator`],z=[`name`],B={key:1,class:`nav-indicator`,slot:`icon`},V=[`.displayedJob`,`.hasReservedJobs`,`.hasWaitingJobs`],H=y(n({__name:`MainNav`,setup(t){let n=_(),{nav:r}=j(),i=b(()=>n.props.queue);return(t,n)=>(o(),c(`craft-nav-list`,null,[(o(!0),c(h,null,w(v(r),t=>(o(),c(`craft-nav-item`,{key:t.url,icon:t.icon,href:t.url,active:t.sel,indicator:!!t.badgeCount},[x(e(t.label)+` `,1),t.subnav?(o(),c(h,{key:0},[t.subnav?(o(),c(`craft-nav-list`,L,[(o(!0),c(h,null,w(t.subnav,t=>(o(),c(`craft-nav-item`,{key:t.url,active:t.sel,href:t.url,indicator:!!t.badgeCount},[t.icon?(o(),c(`craft-icon`,{key:0,name:t.icon,slot:`icon`},null,8,z)):(o(),c(`span`,B)),x(` `+e(t.label),1)],8,R))),128))])):S(``,!0)],64)):S(``,!0)],8,I))),128)),C(`cp-queue-indicator`,{".displayedJob":i.value.displayedJob,".hasReservedJobs":i.value.hasReservedJobs,".hasWaitingJobs":i.value.hasWaitingJobs},null,40,V)]))}}),[[`__scopeId`,`data-v-2115cac3`]]),U={class:`flex justify-center py-4 px-2 text-muted`},W={lang:`en`,class:`flex items-center gap-2`},G={class:`edition-logo`},K={"aria-hidden":`true`},q={class:`sr-only`},J=y(n({__name:`EditionInfo`,setup(t){let{app:n}=j(),r=b(()=>`${n.edition.name} Edition`);return(t,i)=>(o(),c(`div`,U,[C(`div`,null,[C(`span`,W,[i[0]||=x(` Craft CMS `,-1),C(`span`,G,[C(`span`,K,e(v(n).edition.name),1),C(`span`,q,e(r.value),1)]),x(` `+e(v(n).version),1)])])]))}}),[[`__scopeId`,`data-v-f8b4ece7`]]),Y={},X={class:`dev-mode`};function Z(e,t){return o(),c(`div`,X,[...t[0]||=[C(`div`,{class:`inline-flex py-1 px-2 bg-slate-900 text-slate-100 font-mono text-xs rounded-lg`},` Dev Mode is enabled `,-1)]])}var Q=y(Y,[[`render`,Z],[`__scopeId`,`data-v-52fa7a33`]]),ne=[`data-visibility`,`data-mode`,`aria-label`],re={class:`cp-sidebar__header`},ie={key:0,class:`sidebar-header`},ae=[`label`],oe={class:`cp-sidebar__body`},se={class:`cp-sidebar__footer`},ce=y(n({__name:`CpSidebar`,props:{mode:{default:`floating`},visibility:{default:`hidden`}},emits:[`close`,`dock`],setup(e,{emit:t}){let n=t,r=b(()=>e.mode===`floating`);return a(()=>e.visibility,async e=>{r.value&&e===`visible`&&(await s(),document.querySelector(`.cp-sidebar`).querySelector(`button, [href], [tabindex]:not([tabindex="-1"])`)?.focus())}),(t,r)=>(o(),c(`nav`,{class:`cp-sidebar`,"data-visibility":e.visibility,"data-mode":e.mode,"aria-label":v(T)(`Primary`)},[e.visibility===`visible`?(o(),c(h,{key:0},[C(`div`,re,[e.mode===`docked`?S(``,!0):(o(),c(`div`,ie,[l(F),r[1]||=C(`div`,{class:`ml-auto`},null,-1),C(`craft-button`,{size:`small`,icon:``,onClick:r[0]||=e=>n(`close`),type:`button`},[C(`craft-icon`,{name:`x`,style:{"font-size":`0.7em`},label:v(T)(`Close`)},null,8,ae)])]))]),C(`div`,oe,[l(H)]),C(`div`,se,[l(J),l(Q)])],64)):S(``,!0)],8,ne))}}),[[`__scopeId`,`data-v-c4268663`]]),le=[`aria-label`],ue={class:`breadcrumbs`},de={key:2,class:`separator`},fe=y(n({__name:`Breadcrumbs`,props:{items:{},separator:{default:`/`}},setup(t){return(n,r)=>(o(),c(`nav`,{"aria-label":v(T)(`Breadcrumbs`)},[C(`ul`,ue,[(o(!0),c(h,null,w(t.items,(n,r)=>(o(),c(`li`,{key:r,class:d({"breadcrumb-item":!0,"breadcrumb-item--active":r===t.items.length-1})},[n.url?(o(),p(E,{key:0,href:n.url},{default:i(()=>[x(e(n.label),1)]),_:2},1032,[`href`])):(o(),c(h,{key:1},[x(e(n.label),1)],64)),r(o(),p(O,null,{default:i(()=>[v(n)?(o(),c(`div`,pe,e(v(n)),1)):S(``,!0)]),_:1}))}}),he={class:`cp`},ge={class:`cp__header`},_e=[`href`],ve={class:`flex gap-2 p-2`},ye=[`name`,`label`],be={icon:``,appearance:`plain`},xe=[`label`],Se={key:0,variant:`danger`,rounded:`none`},Ce={key:1,variant:`success`,rounded:`none`},we={class:`cp__sidebar`},Te={class:`cp__main`},Ee={key:0,class:`px-4 py-2 border-b border-b-neutral-border-quiet`},De={id:`main`,tabindex:`-1`},$={class:`index-grid index-grid--header`},Oe={class:`index-grid__aside`},ke={class:`text-xl`},Ae={class:`index-grid__main`},je={class:`cp__footer`},Me={key:0,class:`fixed bottom-2 right-2 flex gap-2 justify-end items-center p-2`},Ne={class:`bg-blue-50 border border-blue-500 py-1 px-4 rounded`},Pe=[`label`],Fe=[`label`],Ie=y(n({__name:`AppLayout`,props:{title:{},debug:{},fullWidth:{type:Boolean,default:!1},additionalSkipLinks:{}},setup(n){m(e=>({c87de578:W.value}));let i=n,{system:s}=j(),{messages:u}=D(),y=_(),x=b(()=>y.props.flash?.error??u.value.error??null),E=b(()=>y.props.flash?.success??u.value.success??null),O=b(()=>y.props.crumbs??null),M=b(()=>[{label:T(`Skip to main section`),url:`#main`},...i.additionalSkipLinks??[]]),N=r(`sidebarToggle`),{announcement:P,announce:I}=A(),L=b(()=>{let e=i.title?.trim();return e?`${e} - ${s.name}`:s.name});a(E,e=>I(e)),a(x,e=>I(e));let R=ee({sidebar:{mode:`floating`,visibility:`hidden`}}),z=te(`(min-width: 1024px)`),B=g(!1);a(z,e=>{e?(R.sidebar.mode=`docked`,R.sidebar.visibility=`visible`):(R.sidebar.mode=`floating`,R.sidebar.visibility=`hidden`)},{immediate:!0});function V(){R.sidebar.visibility===`visible`?R.sidebar.visibility=`hidden`:R.sidebar.visibility=`visible`}function H(){R.sidebar.visibility=`hidden`,N.value.focus()}let U=b(()=>R.sidebar.visibility===`visible`?`x`:`bars`),W=b(()=>R.sidebar.mode===`docked`?R.sidebar.visibility===`visible`?`var(--global-sidebar-width)`:`0`:`auto`);return(r,i)=>(o(),c(h,null,[l(v(f),{title:L.value},null,8,[`title`]),l(me,{debug:!0}),C(`div`,he,[C(`header`,ge,[(o(!0),c(h,null,w(M.value,t=>(o(),c(`a`,{key:t.url,href:t.url,class:`skip-link skip-link--global`},e(t.label),9,_e))),128)),C(`div`,ve,[v(z)?S(``,!0):(o(),c(`craft-button`,{key:0,icon:``,type:`button`,appearance:`plain`,onClick:V,ref_key:`sidebarToggle`,ref:N},[C(`craft-icon`,{name:U.value,label:v(T)(`Toggle menu`)},null,8,ye)],512)),v(z)?(o(),p(F,{key:1})):S(``,!0),i[2]||=C(`div`,{class:`ml-auto`},null,-1),C(`craft-button`,be,[C(`craft-icon`,{name:`search`,label:v(T)(`Search`)},null,8,xe)])]),x.value?(o(),c(`craft-callout`,Se,e(x.value),1)):S(``,!0),E.value?(o(),c(`craft-callout`,Ce,e(E.value),1)):S(``,!0)]),C(`div`,we,[l(ce,{mode:R.sidebar.mode,visibility:R.sidebar.visibility,onClose:H},null,8,[`mode`,`visibility`])]),C(`div`,Te,[t(r.$slots,`main`,{},()=>[t(r.$slots,`breadcrumbs`,{},()=>[O.value?(o(),c(`div`,Ee,[l(fe,{items:O.value},null,8,[`items`])])):S(``,!0)],!0),C(`main`,De,[t(r.$slots,`header`,{},()=>[C(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[C(`div`,$,[C(`div`,Oe,[t(r.$slots,`title`,{},()=>[C(`h1`,ke,e(n.title),1)],!0),t(r.$slots,`title-badge`,{},void 0,!0)]),C(`div`,Ae,[t(r.$slots,`actions`,{},void 0,!0)])])],2)],!0),C(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`default`,{},void 0,!0)],2)])],!0)]),C(`div`,je,[C(`footer`,null,[C(`div`,{class:d({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`footer`,{},void 0,!0)],2)])])]),n.debug?(o(),c(`div`,Me,[C(`div`,Ne,e(v(P)??`No announcement`),1),C(`div`,null,[B.value?(o(),p(k,{key:0,data:n.debug,class:`max-h-[50vh] max-w-[600px] overflow-scroll absolute transform -translate-full`},null,8,[`data`])):S(``,!0),B.value?(o(),c(`craft-button`,{key:1,icon:``,type:`button`,onClick:i[0]||=e=>B.value=!1},[C(`craft-icon`,{label:v(T)(`Close Debug panel`),name:`x`},null,8,Pe)])):(o(),c(`craft-button`,{key:2,type:`button`,onClick:i[1]||=e=>B.value=!0,icon:``},[C(`craft-icon`,{name:`code`,label:v(T)(`Show debug variables`)},null,8,Fe)]))])])):S(``,!0)],64))}}),[[`__scopeId`,`data-v-af8bc5be`]]);export{Ie as t}; \ No newline at end of file +import{$ as e,B as t,E as n,G as r,J as i,K as a,L as o,N as s,P as ee,S as c,T as l,V as te,X as u,a as ne,b as d,d as re,h as f,it as ie,l as p,lt as m,rt as ae,t as h,v as g,w as _,x as v,y,z as b}from"./_plugin-vue_export-helper.js";import{r as x}from"./nav-item-9g3ebwBJ.js";import{a as S,i as oe,n as C,r as se,t as w}from"./useAnnouncer.js";import{a as T,c as E,o as D,r as ce,s as O}from"./dist.js";var k={class:`system-info__icon`},A=[`src`],j={class:`system-info__name`},le=h(n({__name:`SystemInfo`,setup(t){let n=E(),r=g(()=>n.system),a=g(()=>n.site),s=g(()=>a.value.url?`a`:`div`);return(t,n)=>(o(),d(te(s.value),{class:`system-info`,href:a.value.url,target:a.value.url?`_blank`:null},{default:i(()=>[y(`div`,k,[r.value.icon?(o(),c(`img`,{key:0,src:r.value.icon,alt:``},null,8,A)):v(``,!0)]),y(`div`,j,e(r.value.name),1)]),_:1},8,[`href`,`target`]))}}),[[`__scopeId`,`data-v-d8aced2c`]]),M=[`icon`,`href`,`active`,`indicator`],N={key:0,slot:`subnav`},P=[`active`,`href`,`indicator`],ue=[`name`],de={key:1,class:`nav-indicator`,slot:`icon`},fe=[`.displayedJob`,`.hasReservedJobs`,`.hasWaitingJobs`],pe=h(n({__name:`MainNav`,setup(t){let n=p(),{nav:r}=E(),i=g(()=>n.props.queue);return(t,n)=>(o(),c(`craft-nav-list`,null,[(o(!0),c(f,null,b(m(r),t=>(o(),c(`craft-nav-item`,{key:t.url,icon:t.icon,href:t.url,active:t.sel,indicator:!!t.badgeCount},[_(e(t.label)+` `,1),t.subnav?(o(),c(f,{key:0},[t.subnav?(o(),c(`craft-nav-list`,N,[(o(!0),c(f,null,b(t.subnav,t=>(o(),c(`craft-nav-item`,{key:t.url,active:t.sel,href:t.url,indicator:!!t.badgeCount},[t.icon?(o(),c(`craft-icon`,{key:0,name:t.icon,slot:`icon`},null,8,ue)):(o(),c(`span`,de)),_(` `+e(t.label),1)],8,P))),128))])):v(``,!0)],64)):v(``,!0)],8,M))),128)),y(`cp-queue-indicator`,{".displayedJob":i.value.displayedJob,".hasReservedJobs":i.value.hasReservedJobs,".hasWaitingJobs":i.value.hasWaitingJobs},null,40,fe)]))}}),[[`__scopeId`,`data-v-2115cac3`]]),me={class:`flex justify-center py-4 px-2 text-muted`},he={lang:`en`,class:`flex items-center gap-2`},ge={class:`edition-logo`},_e={"aria-hidden":`true`},ve={class:`sr-only`},ye=h(n({__name:`EditionInfo`,setup(t){let{app:n}=E(),r=g(()=>`${n.edition.name} Edition`);return(t,i)=>(o(),c(`div`,me,[y(`div`,null,[y(`span`,he,[i[0]||=_(` Craft CMS `,-1),y(`span`,ge,[y(`span`,_e,e(m(n).edition.name),1),y(`span`,ve,e(r.value),1)]),_(` `+e(m(n).version),1)])])]))}}),[[`__scopeId`,`data-v-f8b4ece7`]]),be={},xe={class:`dev-mode`};function Se(e,t){return o(),c(`div`,xe,[...t[0]||=[y(`div`,{class:`inline-flex py-1 px-2 bg-slate-900 text-slate-100 font-mono text-xs rounded-lg`},` Dev Mode is enabled `,-1)]])}var Ce=h(be,[[`render`,Se],[`__scopeId`,`data-v-52fa7a33`]]),we=[`data-visibility`,`data-mode`,`aria-label`],Te={class:`cp-sidebar__header`},Ee={key:0,class:`sidebar-header`},De=[`label`],Oe={class:`cp-sidebar__body`},ke={class:`cp-sidebar__footer`},Ae=h(n({__name:`CpSidebar`,props:{mode:{default:`floating`},visibility:{default:`hidden`}},emits:[`close`,`dock`],setup(e,{emit:t}){let n=t,r=g(()=>e.mode===`floating`);return a(()=>e.visibility,async e=>{r.value&&e===`visible`&&(await ee(),document.querySelector(`.cp-sidebar`).querySelector(`button, [href], [tabindex]:not([tabindex="-1"])`)?.focus())}),(t,r)=>(o(),c(`nav`,{class:`cp-sidebar`,"data-visibility":e.visibility,"data-mode":e.mode,"aria-label":m(x)(`Primary`)},[e.visibility===`visible`?(o(),c(f,{key:0},[y(`div`,Te,[e.mode===`docked`?v(``,!0):(o(),c(`div`,Ee,[l(le),r[1]||=y(`div`,{class:`ml-auto`},null,-1),y(`craft-button`,{size:`small`,icon:``,onClick:r[0]||=e=>n(`close`),type:`button`},[y(`craft-icon`,{name:`x`,style:{"font-size":`0.7em`},label:m(x)(`Close`)},null,8,De)])]))]),y(`div`,Oe,[l(pe)]),y(`div`,ke,[l(ye),l(Ce)])],64)):v(``,!0)],8,we))}}),[[`__scopeId`,`data-v-c4268663`]]),je=[`aria-label`],Me={class:`breadcrumbs`},Ne={key:2,class:`separator`},Pe=h(n({__name:`Breadcrumbs`,props:{items:{},separator:{default:`/`}},setup(t){return(n,r)=>(o(),c(`nav`,{"aria-label":m(x)(`Breadcrumbs`)},[y(`ul`,Me,[(o(!0),c(f,null,b(t.items,(n,r)=>(o(),c(`li`,{key:r,class:u({"breadcrumb-item":!0,"breadcrumb-item--active":r===t.items.length-1})},[n.url?(o(),d(S,{key:0,href:n.url},{default:i(()=>[_(e(n.label),1)]),_:2},1032,[`href`])):(o(),c(f,{key:1},[_(e(n.label),1)],64)),r(o(),d(C,null,{default:i(()=>[m(n)?(o(),c(`div`,Fe,e(m(n)),1)):v(``,!0)]),_:1}))}}),F=e=>({url:F.url(e),method:`post`});F.definition={methods:[`post`],url:`/actions/users/login`},F.url=e=>F.definition.url+D(e),F.post=e=>({url:F.url(e),method:`post`});var I=e=>({url:I.url(e),method:`post`});I.definition={methods:[`post`],url:`/admin/actions/users/login`},I.url=e=>I.definition.url+D(e),I.post=e=>({url:I.url(e),method:`post`});var Le={"/actions/users/login":F,"/admin/actions/users/login":I},L=e=>({url:L.url(e),method:`post`});L.definition={methods:[`post`],url:`/actions/users/login-modal`},L.url=e=>L.definition.url+D(e),L.post=e=>({url:L.url(e),method:`post`});var R=e=>({url:R.url(e),method:`post`});R.definition={methods:[`post`],url:`/admin/actions/users/login-modal`},R.url=e=>R.definition.url+D(e),R.post=e=>({url:R.url(e),method:`post`});var Re={"/actions/users/login-modal":L,"/admin/actions/users/login-modal":R},z=e=>({url:z.url(e),method:`get`});z.definition={methods:[`get`,`head`,`post`,`put`,`patch`,`delete`,`options`],url:`/actions/users/redirect`},z.url=e=>z.definition.url+D(e),z.get=e=>({url:z.url(e),method:`get`}),z.head=e=>({url:z.url(e),method:`head`}),z.post=e=>({url:z.url(e),method:`post`}),z.put=e=>({url:z.url(e),method:`put`}),z.patch=e=>({url:z.url(e),method:`patch`}),z.delete=e=>({url:z.url(e),method:`delete`}),z.options=e=>({url:z.url(e),method:`options`});var B=e=>({url:B.url(e),method:`get`});B.definition={methods:[`get`,`head`,`post`,`put`,`patch`,`delete`,`options`],url:`/admin/actions/users/redirect`},B.url=e=>B.definition.url+D(e),B.get=e=>({url:B.url(e),method:`get`}),B.head=e=>({url:B.url(e),method:`head`}),B.post=e=>({url:B.url(e),method:`post`}),B.put=e=>({url:B.url(e),method:`put`}),B.patch=e=>({url:B.url(e),method:`patch`}),B.delete=e=>({url:B.url(e),method:`delete`}),B.options=e=>({url:B.url(e),method:`options`});var ze={"/actions/users/redirect":z,"/admin/actions/users/redirect":B},V=e=>({url:V.url(e),method:`get`});V.definition={methods:[`get`,`head`],url:`/admin/login`},V.url=e=>V.definition.url+D(e),V.get=e=>({url:V.url(e),method:`get`}),V.head=e=>({url:V.url(e),method:`head`});var H=e=>({url:H.url(e),method:`get`});H.definition={methods:[`get`,`head`],url:`/admin/logout`},H.url=e=>H.definition.url+D(e),H.get=e=>({url:H.url(e),method:`get`}),H.head=e=>({url:H.url(e),method:`head`});var Be={attemptLogin:Le,showLoginModal:Re,redirect:ze,showLogin:V,logout:H},U=e=>({url:U.url(e),method:`post`});U.definition={methods:[`post`],url:`/admin/actions/users/save-permissions`},U.url=e=>U.definition.url+D(e),U.post=e=>({url:U.url(e),method:`post`});var W=e=>({url:W.url(e),method:`get`});W.definition={methods:[`get`,`head`],url:`/admin/myaccount/permissions`},W.url=e=>W.definition.url+D(e),W.get=e=>({url:W.url(e),method:`get`}),W.head=e=>({url:W.url(e),method:`head`});var G=(e,t)=>({url:G.url(e,t),method:`get`});G.definition={methods:[`get`,`head`],url:`/admin/users/{userId}/permissions`},G.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={userId:e}),Array.isArray(e)&&(e={userId:e[0]}),e=T(e);let n={userId:e.userId};return G.definition.url.replace(`{userId}`,n.userId.toString()).replace(/\/+$/,``)+D(t)},G.get=(e,t)=>({url:G.url(e,t),method:`get`}),G.head=(e,t)=>({url:G.url(e,t),method:`head`});var Ve={store:U,index:{"/admin/myaccount/permissions":W,"/admin/users/{userId}/permissions":G}},K=e=>({url:K.url(e),method:`post`});K.definition={methods:[`post`],url:`/admin/actions/users/save-preferences`},K.url=e=>K.definition.url+D(e),K.post=e=>({url:K.url(e),method:`post`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/myaccount/preferences`},q.url=e=>q.definition.url+D(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var He={store:K,index:q},J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/users/delete-user`},J.url=e=>J.definition.url+D(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/users/user-content-summary`},Y.url=e=>Y.definition.url+D(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`get`});X.definition={methods:[`get`,`head`],url:`/admin/myaccount`},X.url=e=>X.definition.url+D(e),X.get=e=>({url:X.url(e),method:`get`}),X.head=e=>({url:X.url(e),method:`head`});var Z=(e,t)=>({url:Z.url(e,t),method:`get`});Z.definition={methods:[`get`,`head`],url:`/admin/users/{userId}`},Z.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={userId:e}),Array.isArray(e)&&(e={userId:e[0]}),e=T(e);let n={userId:e.userId};return Z.definition.url.replace(`{userId}`,n.userId.toString()).replace(/\/+$/,``)+D(t)},Z.get=(e,t)=>({url:Z.url(e,t),method:`get`}),Z.head=(e,t)=>({url:Z.url(e,t),method:`head`});var Ue={"/admin/myaccount":X,"/admin/users/{userId}":Z},Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/users/new`},Q.url=e=>Q.definition.url+D(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var $=(e,t)=>({url:$.url(e,t),method:`get`});$.definition={methods:[`get`,`head`],url:`/admin/users/{slug?}`},$.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={slug:e}),Array.isArray(e)&&(e={slug:e[0]}),e=T(e),O(e,[`slug`]);let n={slug:e?.slug};return $.definition.url.replace(`{slug?}`,n.slug?.toString()??``).replace(/\/+$/,``)+D(t)},$.get=(e,t)=>({url:$.url(e,t),method:`get`}),$.head=(e,t)=>({url:$.url(e,t),method:`head`});var We={destroy:J,contentSummary:Y,edit:Ue,create:Q,index:$},Ge={type:`button`,slot:`invoker`,icon:``,size:`small`,variant:`inherit`,appearance:`plain`},Ke=[`name`,`label`],qe={slot:`content`,class:`m-sm`},Je={key:0,class:`m-0`},Ye=[`href`],Xe=[`onClick`],Ze=h(n({__name:`ActionMenu`,props:{icon:{default:`ellipsis`},label:{default:x(`Actions`)},actions:{}},setup(n){let r=n,i=g(()=>r.actions.map(e=>e.type===`hr`||e.type===`display`?e:{...e,type:e.type??(`href`in e?`link`:`button`)})),a=g(()=>i.value.sort((e,t)=>(`variant`in e&&e.variant===`danger`)-+(`variant`in t&&t.variant===`danger`)));return(r,i)=>(o(),c(`craft-action-menu`,null,[t(r.$slots,`invoker`,{label:n.label},()=>[y(`craft-button`,Ge,[y(`craft-icon`,{name:n.icon,label:n.label},null,8,Ke)])],!0),y(`div`,qe,[(o(!0),c(f,null,b(a.value,(t,n)=>(o(),c(f,{key:n},[t.type===`hr`?(o(),c(`hr`,Je)):t.type===`display`?(o(),d(te(t.is),{key:1})):t.type===`link`?(o(),c(`craft-action-item`,s({key:2,ref_for:!0},t,{href:t.href}),e(t.label),17,Ye)):(o(),c(`craft-action-item`,s({key:3,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,Xe))],64))),128))])]))}}),[[`__scopeId`,`data-v-a3876157`]]),Qe=[`innerHTML`],$e=h(n({__name:`UserThumbnail`,props:{size:{default:`sm`}},setup(e){let{currentUser:t}=E(),n={sm:`size-7`,md:`size-10`},r=e,i=g(()=>n[r.size]);return(e,n)=>m(t).thumbHtml?(o(),c(`div`,{key:0,innerHTML:m(t).thumbHtml,"data-color":`white`,class:u({"user-thumbnail":!0,"rounded-full":!0,[i.value]:!0})},null,10,Qe)):v(``,!0)}}),[[`__scopeId`,`data-v-7c22e181`]]),et=[`href`],tt={class:`flex items-center gap-3`},nt={class:`font-bold`},rt={key:0,class:`text-xs`},it=n({__name:`CurrentUser`,setup(t){let{currentUser:n,general:r}=E(),i=g(()=>n.name===n.username?n.username:n.name),a=g(()=>n.username===n.name?n.email:n.username);return(t,n)=>(o(),c(`craft-action-item`,{href:m(We).edit[`/admin/myaccount`]().url},[y(`div`,tt,[l($e,{size:`md`}),y(`div`,null,[y(`div`,nt,e(i.value),1),a.value===i.value?v(``,!0):(o(),c(`div`,rt,e(a.value),1))])])],8,et))}}),at={slot:`invoker`,type:`button`,"aria-label":`User menu`,appearance:`none`},ot=h(n({__name:`UserMenu`,setup(e){let{currentUser:t,general:n}=E(),r=g(()=>[{type:`display`,is:it},{type:`hr`},{href:We.edit[`/admin/myaccount`]().url,label:x(`Profile`)},{href:Ve.index[`/admin/myaccount/permissions`]().url,label:x(`Permissions`)},{href:He.index().url,label:x(`Preferences`)},{type:`hr`},{href:Be.logout().url,variant:`danger`,label:x(`Sign out`)}]);return(e,n)=>(o(),d(Ze,{actions:r.value,label:m(t).username},{invoker:i(({label:e})=>[y(`craft-button`,at,[l($e)])]),_:1},8,[`actions`,`label`]))}}),[[`__scopeId`,`data-v-ee5abf56`]]),st={class:`cp`},ct={class:`cp__header`},lt=[`href`],ut={class:`flex gap-2 p-2`},dt=[`name`,`label`],ft={icon:``,appearance:`plain`,type:`button`},pt=[`label`],mt={key:0,variant:`danger`,rounded:`none`},ht={key:1,variant:`success`,rounded:`none`},gt={class:`cp__sidebar`},_t={class:`cp__main`},vt={key:0,class:`px-4 py-2 border-b border-b-neutral-border-quiet`},yt={id:`main`,tabindex:`-1`},bt={class:`index-grid index-grid--header`},xt={class:`index-grid__aside`},St={class:`text-xl`},Ct={class:`index-grid__main`},wt={class:`cp__footer`},Tt={key:0,class:`fixed bottom-2 right-2 flex gap-2 justify-end items-center p-2`},Et={class:`bg-blue-50 border border-blue-500 py-1 px-4 rounded`},Dt=[`label`],Ot=[`label`],kt=h(n({__name:`AppLayout`,props:{title:{},debug:{},fullWidth:{type:Boolean,default:!1},additionalSkipLinks:{}},setup(n){re(e=>({v69576e02:pe.value}));let i=n,{system:s,currentUser:ee,general:te}=E(),{messages:h}=oe(),_=p(),S=g(()=>_.props.flash?.error??h.value.error??null),C=g(()=>_.props.flash?.success??h.value.success??null),T=g(()=>_.props.crumbs??null),D=g(()=>[{label:x(`Skip to main section`),url:`#main`},...i.additionalSkipLinks??[]]),O=r(`sidebarToggle`),{announcement:k,announce:A}=w(),j=g(()=>{let e=i.title?.trim();return e?`${e} - ${s.name}`:s.name});a(C,e=>A(e)),a(S,e=>A(e));let M=ae({sidebar:{mode:`floating`,visibility:`hidden`}}),N=ce(`(min-width: 1024px)`),P=ie(!1);a(N,e=>{e?(M.sidebar.mode=`docked`,M.sidebar.visibility=`visible`):(M.sidebar.mode=`floating`,M.sidebar.visibility=`hidden`)},{immediate:!0});function ue(){M.sidebar.visibility===`visible`?M.sidebar.visibility=`hidden`:M.sidebar.visibility=`visible`}function de(){M.sidebar.visibility=`hidden`,O.value.focus()}let fe=g(()=>M.sidebar.visibility===`visible`?`x`:`bars`),pe=g(()=>M.sidebar.mode===`docked`?M.sidebar.visibility===`visible`?`var(--global-sidebar-width)`:`0`:`auto`);return(r,i)=>(o(),c(f,null,[l(m(ne),{title:j.value},null,8,[`title`]),l(Ie,{debug:!0}),y(`div`,st,[y(`header`,ct,[(o(!0),c(f,null,b(D.value,t=>(o(),c(`a`,{key:t.url,href:t.url,class:`skip-link skip-link--global`},e(t.label),9,lt))),128)),y(`div`,ut,[m(N)?v(``,!0):(o(),c(`craft-button`,{key:0,icon:``,type:`button`,appearance:`plain`,onClick:ue,ref_key:`sidebarToggle`,ref:O},[y(`craft-icon`,{name:fe.value,label:m(x)(`Toggle menu`)},null,8,dt)],512)),m(N)?(o(),d(le,{key:1})):v(``,!0),i[2]||=y(`div`,{class:`ml-auto`},null,-1),y(`craft-button`,ft,[y(`craft-icon`,{name:`search`,label:m(x)(`Search`)},null,8,pt)]),l(ot)]),S.value?(o(),c(`craft-callout`,mt,e(S.value),1)):v(``,!0),C.value?(o(),c(`craft-callout`,ht,e(C.value),1)):v(``,!0)]),y(`div`,gt,[l(Ae,{mode:M.sidebar.mode,visibility:M.sidebar.visibility,onClose:de},null,8,[`mode`,`visibility`])]),y(`div`,_t,[t(r.$slots,`main`,{},()=>[t(r.$slots,`breadcrumbs`,{},()=>[T.value?(o(),c(`div`,vt,[l(Pe,{items:T.value},null,8,[`items`])])):v(``,!0)],!0),y(`main`,yt,[t(r.$slots,`header`,{},()=>[y(`div`,{class:u({container:!0,"container--full":n.fullWidth})},[y(`div`,bt,[y(`div`,xt,[t(r.$slots,`title`,{},()=>[y(`h1`,St,e(n.title),1)],!0),t(r.$slots,`title-badge`,{},void 0,!0)]),y(`div`,Ct,[t(r.$slots,`actions`,{},void 0,!0)])])],2)],!0),y(`div`,{class:u({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`default`,{},void 0,!0)],2)])],!0)]),y(`div`,wt,[y(`footer`,null,[y(`div`,{class:u({container:!0,"container--full":n.fullWidth})},[t(r.$slots,`footer`,{},void 0,!0)],2)])])]),n.debug?(o(),c(`div`,Tt,[y(`div`,Et,e(m(k)??`No announcement`),1),y(`div`,null,[P.value?(o(),d(se,{key:0,data:n.debug,class:`max-h-[50vh] max-w-[600px] overflow-scroll absolute transform -translate-full`},null,8,[`data`])):v(``,!0),P.value?(o(),c(`craft-button`,{key:1,icon:``,type:`button`,onClick:i[0]||=e=>P.value=!1},[y(`craft-icon`,{label:m(x)(`Close Debug panel`),name:`x`},null,8,Dt)])):(o(),c(`craft-button`,{key:2,type:`button`,onClick:i[1]||=e=>P.value=!0,icon:``},[y(`craft-icon`,{name:`code`,label:m(x)(`Show debug variables`)},null,8,Ot)]))])])):v(``,!0)],64))}}),[[`__scopeId`,`data-v-9d0f9857`]]);export{Ze as n,kt as t}; \ No newline at end of file diff --git a/resources/build/DeleteSiteModal.js b/resources/build/DeleteSiteModal.js index 25ce06a156c..e6cc8309992 100644 --- a/resources/build/DeleteSiteModal.js +++ b/resources/build/DeleteSiteModal.js @@ -1 +1 @@ -import{$ as e,E as t,J as n,L as r,S as i,b as a,h as o,l as s,lt as c,r as l,s as u,v as d,x as f,y as p,z as m}from"./_plugin-vue_export-helper.js";import{r as h}from"./nav-item-9g3ebwBJ.js";import{t as g}from"./ModalForm.js";import{n as _,t as v}from"./wayfinder.js";var y=e=>({url:y.url(e),method:`get`});y.definition={methods:[`get`,`head`],url:`/admin/settings/sites`},y.url=e=>y.definition.url+_(e),y.get=e=>({url:y.url(e),method:`get`}),y.head=e=>({url:y.url(e),method:`head`});var b=e=>({url:b.url(e),method:`get`});b.definition={methods:[`get`,`head`],url:`/admin/settings/sites/new`},b.url=e=>b.definition.url+_(e),b.get=e=>({url:b.url(e),method:`get`}),b.head=e=>({url:b.url(e),method:`head`});var x=e=>({url:x.url(e),method:`post`});x.definition={methods:[`post`],url:`/admin/settings/sites/reorder`},x.url=e=>x.definition.url+_(e),x.post=e=>({url:x.url(e),method:`post`});var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/settings/sites`},S.url=e=>S.definition.url+_(e),S.post=e=>({url:S.url(e),method:`post`});var C=(e,t)=>({url:C.url(e,t),method:`delete`});C.definition={methods:[`delete`],url:`/admin/settings/sites/{site}`},C.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={site:e}),Array.isArray(e)&&(e={site:e[0]}),e=v(e);let n={site:e.site};return C.definition.url.replace(`{site}`,n.site.toString()).replace(/\/+$/,``)+_(t)},C.delete=(e,t)=>({url:C.url(e,t),method:`delete`});var w=(e,t)=>({url:w.url(e,t),method:`get`});w.definition={methods:[`get`,`head`],url:`/admin/settings/sites/{site}`},w.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={site:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={site:e.id}),Array.isArray(e)&&(e={site:e[0]}),e=v(e);let n={site:typeof e.site==`object`?e.site.id:e.site};return w.definition.url.replace(`{site}`,n.site.toString()).replace(/\/+$/,``)+_(t)},w.get=(e,t)=>({url:w.url(e,t),method:`get`}),w.head=(e,t)=>({url:w.url(e,t),method:`head`});var T={class:`grid gap-3`},E=[`label`,`help-text`,`.modelValue`],D=[`label`,`checked`],O=[`label`,`checked`],k=[`label`],A=[`label`,`.modelValue`],j={slot:`input`},M={value:``},N=[`selected`,`value`],P={slot:`feedback`},F={key:0,class:`error-list`},I=t({__name:`DeleteSiteModal`,props:{open:{type:Boolean,default:!1},site:{}},emits:[`close`],setup(t,{emit:_}){let v=_,y=t,b=s(),x=d(()=>b.props.transferContentOptions?b.props.transferContentOptions.filter(e=>e.id!==y.site.id):[]),S=u({id:y.site.id,contentDestination:`transfer`,transferContentTo:null});async function w(){I()}function I(){S.clearErrors().delete(C(y.site.id).url,{onSuccess:()=>{v(`close`),S.reset()}})}function L(){v(`close`),S.clearErrors(),S.reset()}return(s,u)=>(r(),a(g,{title:c(h)(`Delete {site}`,{site:t.site.name}),"is-active":t.open,onClose:L,onSubmit:w,loading:c(S).processing,"submit-label":c(h)(`Delete`)},{default:n(()=>[p(`div`,T,[p(`craft-radio-group`,{name:`contentDestination`,label:c(h)(`Content Destination`),"help-text":c(h)(`What do you want to do with any content that is only available in {siteName}?`,{siteName:t.site.name}),".modelValue":c(S).contentDestination,onModelValueChanged:u[0]||=e=>c(S).contentDestination=e.target.modelValue},[p(`craft-radio`,{label:c(h)(`Transfer it`),".choiceValue":`transfer`,checked:c(S).contentDestination===`transfer`},null,40,D),p(`craft-radio`,{label:c(h)(`Delete it`),".choiceValue":`delete`,checked:c(S).contentDestination===`delete`},null,40,O)],40,E),c(S).contentDestination===`transfer`?(r(),a(c(l),{key:0,data:`transferContentOptions`},{fallback:n(()=>[p(`craft-input`,{disabled:``,label:c(h)(`Transfer content to`)},null,8,k)]),default:n(()=>[p(`craft-select`,{label:c(h)(`Transfer content to`),id:`transfer-to`,name:`transferContentTo`,".modelValue":c(S).transferContentTo,onModelValueChanged:u[1]||=e=>c(S).transferContentTo=e.target.modelValue},[p(`select`,j,[p(`option`,M,e(c(h)(`Select site`)),1),(r(!0),i(o,null,m(x.value,t=>(r(),i(`option`,{key:t.id,selected:t.id===c(S).transferContentTo,value:t.id},e(t.name),9,N))),128))]),p(`div`,P,[c(S).errors?.transferContentTo?(r(),i(`ul`,F,[p(`li`,null,e(c(S).errors.transferContentTo),1)])):f(``,!0)])],40,A)]),_:1})):f(``,!0)])]),_:1},8,[`title`,`is-active`,`loading`,`submit-label`]))}});export{S as a,x as i,b as n,w as r,I as t}; \ No newline at end of file +import{$ as e,E as t,J as n,L as r,S as i,b as a,h as o,l as s,lt as c,r as l,s as u,v as d,x as f,y as p,z as m}from"./_plugin-vue_export-helper.js";import{r as h}from"./nav-item-9g3ebwBJ.js";import{t as g}from"./ModalForm.js";import{a as _,o as v}from"./dist.js";var y=e=>({url:y.url(e),method:`get`});y.definition={methods:[`get`,`head`],url:`/admin/settings/sites`},y.url=e=>y.definition.url+v(e),y.get=e=>({url:y.url(e),method:`get`}),y.head=e=>({url:y.url(e),method:`head`});var b=e=>({url:b.url(e),method:`get`});b.definition={methods:[`get`,`head`],url:`/admin/settings/sites/new`},b.url=e=>b.definition.url+v(e),b.get=e=>({url:b.url(e),method:`get`}),b.head=e=>({url:b.url(e),method:`head`});var x=e=>({url:x.url(e),method:`post`});x.definition={methods:[`post`],url:`/admin/settings/sites/reorder`},x.url=e=>x.definition.url+v(e),x.post=e=>({url:x.url(e),method:`post`});var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/settings/sites`},S.url=e=>S.definition.url+v(e),S.post=e=>({url:S.url(e),method:`post`});var C=(e,t)=>({url:C.url(e,t),method:`delete`});C.definition={methods:[`delete`],url:`/admin/settings/sites/{site}`},C.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={site:e}),Array.isArray(e)&&(e={site:e[0]}),e=_(e);let n={site:e.site};return C.definition.url.replace(`{site}`,n.site.toString()).replace(/\/+$/,``)+v(t)},C.delete=(e,t)=>({url:C.url(e,t),method:`delete`});var w=(e,t)=>({url:w.url(e,t),method:`get`});w.definition={methods:[`get`,`head`],url:`/admin/settings/sites/{site}`},w.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={site:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={site:e.id}),Array.isArray(e)&&(e={site:e[0]}),e=_(e);let n={site:typeof e.site==`object`?e.site.id:e.site};return w.definition.url.replace(`{site}`,n.site.toString()).replace(/\/+$/,``)+v(t)},w.get=(e,t)=>({url:w.url(e,t),method:`get`}),w.head=(e,t)=>({url:w.url(e,t),method:`head`});var T={class:`grid gap-3`},E=[`label`,`help-text`,`.modelValue`],D=[`label`,`checked`],O=[`label`,`checked`],k=[`label`],A=[`label`,`.modelValue`],j={slot:`input`},M={value:``},N=[`selected`,`value`],P={slot:`feedback`},F={key:0,class:`error-list`},I=t({__name:`DeleteSiteModal`,props:{open:{type:Boolean,default:!1},site:{}},emits:[`close`],setup(t,{emit:_}){let v=_,y=t,b=s(),x=d(()=>b.props.transferContentOptions?b.props.transferContentOptions.filter(e=>e.id!==y.site.id):[]),S=u({id:y.site.id,contentDestination:`transfer`,transferContentTo:null});async function w(){I()}function I(){S.clearErrors().delete(C(y.site.id).url,{onSuccess:()=>{v(`close`),S.reset()}})}function L(){v(`close`),S.clearErrors(),S.reset()}return(s,u)=>(r(),a(g,{title:c(h)(`Delete {site}`,{site:t.site.name}),"is-active":t.open,onClose:L,onSubmit:w,loading:c(S).processing,"submit-label":c(h)(`Delete`)},{default:n(()=>[p(`div`,T,[p(`craft-radio-group`,{name:`contentDestination`,label:c(h)(`Content Destination`),"help-text":c(h)(`What do you want to do with any content that is only available in {siteName}?`,{siteName:t.site.name}),".modelValue":c(S).contentDestination,onModelValueChanged:u[0]||=e=>c(S).contentDestination=e.target.modelValue},[p(`craft-radio`,{label:c(h)(`Transfer it`),".choiceValue":`transfer`,checked:c(S).contentDestination===`transfer`},null,40,D),p(`craft-radio`,{label:c(h)(`Delete it`),".choiceValue":`delete`,checked:c(S).contentDestination===`delete`},null,40,O)],40,E),c(S).contentDestination===`transfer`?(r(),a(c(l),{key:0,data:`transferContentOptions`},{fallback:n(()=>[p(`craft-input`,{disabled:``,label:c(h)(`Transfer content to`)},null,8,k)]),default:n(()=>[p(`craft-select`,{label:c(h)(`Transfer content to`),id:`transfer-to`,name:`transferContentTo`,".modelValue":c(S).transferContentTo,onModelValueChanged:u[1]||=e=>c(S).transferContentTo=e.target.modelValue},[p(`select`,j,[p(`option`,M,e(c(h)(`Select site`)),1),(r(!0),i(o,null,m(x.value,t=>(r(),i(`option`,{key:t.id,selected:t.id===c(S).transferContentTo,value:t.id},e(t.name),9,N))),128))]),p(`div`,P,[c(S).errors?.transferContentTo?(r(),i(`ul`,F,[p(`li`,null,e(c(S).errors.transferContentTo),1)])):f(``,!0)])],40,A)]),_:1})):f(``,!0)])]),_:1},8,[`title`,`is-active`,`loading`,`submit-label`]))}});export{S as a,x as i,b as n,w as r,I as t}; \ No newline at end of file diff --git a/resources/build/InputCombobox.js b/resources/build/InputCombobox.js index ff3dc4278d0..6b05f182b62 100644 --- a/resources/build/InputCombobox.js +++ b/resources/build/InputCombobox.js @@ -1,4 +1,4 @@ import{$ as e,B as t,E as n,F as r,G as i,I as a,J as o,K as s,L as c,P as l,Q as u,R as d,S as f,T as p,X as m,_ as h,at as g,b as _,ct as v,h as y,it as b,j as x,k as S,lt as C,nt as w,ot as T,q as E,rt as D,t as O,v as k,w as A,x as j,y as M,z as N}from"./_plugin-vue_export-helper.js";import{a as ee,c as P,d as te,f as F,i as ne,l as I,m as L,n as R,o as z,p as B,r as V,s as re,t as H,u as U}from"./keyboard.js";function W(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o;n.key&&n.debug?.call(n)&&(o=Date.now());let s=e();if(!(s.length!==r.length||s.some((e,t)=>r[t]!==e)))return i;r=s;let c;if(n.key&&n.debug?.call(n)&&(c=Date.now()),i=t(...s),n.key&&n.debug?.call(n)){let e=Math.round((Date.now()-o)*100)/100,t=Math.round((Date.now()-c)*100)/100,r=t/16,i=(e,t)=>{for(e=String(e);e.length{r=e},o}function ie(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var ae=(e,t)=>Math.abs(e-t)<1.01,oe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},se=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},ce=e=>e,le=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},ue=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(se(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(se(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},de={passive:!0},fe=typeof window>`u`?!0:`onscrollend`in window,pe=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&fe?()=>void 0:oe(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);n.addEventListener(`scroll`,s,de);let l=e.options.useScrollendEvent&&fe;return l&&n.addEventListener(`scrollend`,c,de),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c)}},me=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},he=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},ge=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ce,rangeExtractor:le,onChange:()=>{},measureElement:me,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=W(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=W(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,i,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a}),{key:!1}),this.getMeasurements=W(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let c=this.measurementsCache.slice(0,s),l=Array(a).fill(void 0);for(let e=0;e1){s=a;let e=l[s],r=e===void 0?void 0:c[e];u=r?r.end+this.options.gap:t+n}else{let e=this.options.lanes===1?c[i-1]:this.getFurthestMeasurement(c,i);u=e?e.end+this.options.gap:t+n,s=e?e.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,s)}let d=o.get(e),f=typeof d==`number`?d:this.options.estimateSize(i),p=u+f;c[i]={index:i,start:u,size:f,end:p,key:e,lane:s},l[s]=i}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=W(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?ve({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=W(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=W(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return ie(t[_e(0,t.length-1,e=>ie(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if(t===`auto`)if(n.end>=i+r-this.options.scrollPaddingEnd)t=`end`;else if(n.start<=i+this.options.scrollPaddingStart)t=`start`;else return[i,t];if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t=`start`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t=`auto`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let r=0,i=t=>{if(!this.targetWindow)return;let r=this.getOffsetForIndex(e,t);if(!r){console.warn(`Failed to get offset for index:`,e);return}let[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,o);if(!n){console.warn(`Failed to get offset for index:`,e);return}ae(n[0],t)||a(o)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},a=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(r++,r<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{t===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}},_e=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(ar)t=i-1;else return i}return e>0?e-1:0};function ve({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=_e(0,i,a,n),s=o;if(r===1)for(;s1){let a=Array(r).fill(0);for(;se=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function ye(e){let t=new ge(C(e)),n=g(t),r=t._didMount();return s(()=>C(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),s(()=>C(e),e=>{t.setOptions({...e,onChange:(t,r)=>{var i;v(n),(i=e.onChange)==null||i.call(e,t,r)}}),t._willUpdate(),v(n)},{immediate:!0}),w(r),n}function be(e){return ye(k(()=>({observeElementRect:ue,observeElementOffset:pe,scrollToFn:he,...C(e)})))}function xe(e,t,n){let r=b(n?.value),i=k(()=>e.value!==void 0);return[k(()=>i.value?e.value:r.value),function(e){return i.value||(r.value=e),t?.(e)}]}function Se(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function G(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...e)})},setTimeout(...e){let n=setTimeout(...e);t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return Se(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=G();return e(t),this.add(()=>t.dispose())},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function Ce(){let e=G();return a(()=>e.dispose()),e}function we(){let e=Ce();return t=>{e.dispose(),e.nextFrame(t)}}var Te=Object.defineProperty,Ee=(e,t,n)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t,n)=>(Ee(e,typeof t==`symbol`?t:t+``,n),n),K=new class{constructor(){De(this,`current`,this.detect()),De(this,`currentId`,0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}};function Oe(e){if(K.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty(`value`)){let t=B(e);if(t)return t.ownerDocument}return document}var ke=[`[contentEditable=true]`,`[tabindex]`,`a[href]`,`area[href]`,`button:not([disabled])`,`iframe`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`].map(e=>`${e}:not([tabindex='-1'])`).join(`,`),Ae=(e=>(e[e.First=1]=`First`,e[e.Previous=2]=`Previous`,e[e.Next=4]=`Next`,e[e.Last=8]=`Last`,e[e.WrapAround=16]=`WrapAround`,e[e.NoScroll=32]=`NoScroll`,e))(Ae||{}),je=(e=>(e[e.Error=0]=`Error`,e[e.Overflow=1]=`Overflow`,e[e.Success=2]=`Success`,e[e.Underflow=3]=`Underflow`,e))(je||{}),Me=(e=>(e[e.Previous=-1]=`Previous`,e[e.Next=1]=`Next`,e))(Me||{}),Ne=(e=>(e[e.Strict=0]=`Strict`,e[e.Loose=1]=`Loose`,e))(Ne||{});function Pe(e,t=0){return e===Oe(e)?.body?!1:F(t,{0(){return e.matches(ke)},1(){let t=e;for(;t!==null;){if(t.matches(ke))return!0;t=t.parentElement}return!1}})}var Fe=(e=>(e[e.Keyboard=0]=`Keyboard`,e[e.Mouse=1]=`Mouse`,e))(Fe||{});typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`keydown`,e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=``)},!0),document.addEventListener(`click`,e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible=``)},!0)),[`textarea`,`input`].join(`,`);function Ie(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Le(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Re(){return/Android/gi.test(window.navigator.userAgent)}function ze(){return Le()||Re()}function q(e,t,n){K.isServer||E(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Be(e,t,n){K.isServer||E(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function Ve(e,t,n=k(()=>!0)){function r(r,i){if(!n.value||r.defaultPrevented)return;let a=i(r);if(a===null||!a.getRootNode().contains(a))return;let o=function e(t){return typeof t==`function`?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of o){if(e===null)continue;let t=e instanceof HTMLElement?e:B(e);if(t!=null&&t.contains(a)||r.composed&&r.composedPath().includes(t))return}return!Pe(a,Ne.Loose)&&a.tabIndex!==-1&&r.preventDefault(),t(r,a)}let i=b(null);q(`pointerdown`,e=>{n.value&&(i.value=e.composedPath?.call(e)?.[0]||e.target)},!0),q(`mousedown`,e=>{n.value&&(i.value=e.composedPath?.call(e)?.[0]||e.target)},!0),q(`click`,e=>{ze()||(i.value&&=(r(e,()=>i.value),null))},!0),q(`touchend`,e=>r(e,()=>e.target instanceof HTMLElement?e.target:null),!0),Be(`blur`,e=>r(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function He(e){return[e.screenX,e.screenY]}function Ue(){let e=b([-1,-1]);return{wasMoved(t){let n=He(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=He(t)}}}function We({container:e,accept:t,walk:n,enabled:r}){E(()=>{let i=e.value;if(!i||r!==void 0&&!r.value)return;let a=Oe(e);if(!a)return;let o=Object.assign(e=>t(e),{acceptNode:t}),s=a.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,o,!1);for(;s.nextNode();)n(s.currentNode)})}var Ge=(e=>(e[e.None=1]=`None`,e[e.Focusable=2]=`Focusable`,e[e.Hidden=4]=`Hidden`,e))(Ge||{}),Ke=n({name:`Hidden`,props:{as:{type:[Object,String],default:`div`},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...i}=e;return z({ourProps:{"aria-hidden":(r&2)==2?!0:i[`aria-hidden`]??void 0,hidden:(r&4)==4?!0:void 0,style:{position:`fixed`,top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,...(r&4)==4&&(r&2)!=2&&{display:`none`}}},theirProps:i,slot:{},attrs:n,slots:t,name:`Hidden`})}}}),qe=(e=>(e[e.Left=0]=`Left`,e[e.Right=2]=`Right`,e))(qe||{});function Je(e){function t(){document.readyState!==`loading`&&(e(),document.removeEventListener(`DOMContentLoaded`,t))}typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`DOMContentLoaded`,t),t())}var J=[];Je(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&J[0]!==e.target&&(J.unshift(e.target),J=J.filter(e=>e!=null&&e.isConnected),J.splice(10))}window.addEventListener(`click`,e,{capture:!0}),window.addEventListener(`mousedown`,e,{capture:!0}),window.addEventListener(`focus`,e,{capture:!0}),document.body.addEventListener(`click`,e,{capture:!0}),document.body.addEventListener(`mousedown`,e,{capture:!0}),document.body.addEventListener(`focus`,e,{capture:!0})});function Ye(e){throw Error(`Unexpected object: `+e)}var Y=(e=>(e[e.First=0]=`First`,e[e.Previous=1]=`Previous`,e[e.Next=2]=`Next`,e[e.Last=3]=`Last`,e[e.Specific=4]=`Specific`,e[e.Nothing=5]=`Nothing`,e))(Y||{});function Xe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(tt||{}),nt=(e=>(e[e.Single=0]=`Single`,e[e.Multi=1]=`Multi`,e))(nt||{}),rt=(e=>(e[e.Pointer=0]=`Pointer`,e[e.Focus=1]=`Focus`,e[e.Other=2]=`Other`,e))(rt||{}),it=Symbol(`ComboboxContext`);function X(e){let t=x(it,null);if(t===null){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,X),t}return t}var at=Symbol(`VirtualContext`),ot=n({name:`VirtualProvider`,setup(e,{slots:t}){let n=X(`VirtualProvider`),r=k(()=>{let e=B(n.optionsRef);if(!e)return{start:0,end:0};let t=window.getComputedStyle(e);return{start:parseFloat(t.paddingBlockStart||t.paddingTop),end:parseFloat(t.paddingBlockEnd||t.paddingBottom)}}),i=be(k(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return B(n.optionsRef)},overscan:12}))),a=k(()=>n.virtual.value?.options),o=b(0);return s([a],()=>{o.value+=1}),d(at,n.virtual.value?i:null),()=>[S(`div`,{style:{position:`relative`,width:`100%`,height:`${i.value.getTotalSize()}px`},ref:e=>{if(e){if(typeof process<`u`&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&i.value.scrollToIndex(n.activeOptionIndex.value)}}},i.value.getVirtualItems().map(e=>h(t.default({option:n.virtual.value.options[e.index],open:n.comboboxState.value===0})[0],{key:`${o.value}-${e.index}`,"data-index":e.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":e.index+1,style:{position:`absolute`,top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:`none`}})))]}}),st=n({name:`Combobox`,emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:`template`},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:i}){let a=b(1),o=b(null),c=b(null),l=b(null),u=b(null),f=b({static:!1,hold:!1}),p=b([]),m=b(null),h=b(2),g=b(!1);function _(e=e=>e){let t=m.value===null?null:p.value[m.value],n=e(p.value.slice()),r=n.length>0&&n[0].dataRef.order.value!==null?n.sort((e,t)=>e.dataRef.order.value-t.dataRef.order.value):Ie(n,e=>B(e.dataRef.domRef)),i=t?r.indexOf(t):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let v=k(()=>+!!e.multiple),x=k(()=>e.nullable),[C,w]=xe(k(()=>e.modelValue),e=>i(`update:modelValue`,e),k(()=>e.defaultValue)),E=k(()=>C.value===void 0?F(v.value,{1:[],0:void 0}):C.value),O=null,A=null;function j(e){return F(v.value,{0(){return w?.(e)},1:()=>{let t=T(M.value.value).slice(),n=T(e),r=t.findIndex(e=>M.compare(n,T(e)));return r===-1?t.push(n):t.splice(r,1),w?.(t)}})}s([k(()=>{})],([e],[t])=>{if(M.virtual.value&&e&&t&&m.value!==null){let n=e.indexOf(t[m.value]);n===-1?m.value=null:m.value=n}});let M={comboboxState:a,value:E,mode:v,compare(t,n){if(typeof e.by==`string`){let r=e.by;return t?.[r]===n?.[r]}return e.by===null?et(t,n):e.by(t,n)},calculateIndex(t){return M.virtual.value?e.by===null?M.virtual.value.options.indexOf(t):M.virtual.value.options.findIndex(e=>M.compare(e,t)):p.value.findIndex(e=>M.compare(e.dataRef.value,t))},defaultValue:k(()=>e.defaultValue),nullable:x,immediate:k(()=>!1),virtual:k(()=>null),inputRef:c,labelRef:o,buttonRef:l,optionsRef:u,disabled:k(()=>e.disabled),options:p,change(e){w(e)},activeOptionIndex:k(()=>{if(g.value&&m.value===null&&(M.virtual.value?M.virtual.value.options.length>0:p.value.length>0)){if(M.virtual.value){let e=M.virtual.value.options.findIndex(e=>{var t;return!((t=M.virtual.value)!=null&&t.disabled(e))});if(e!==-1)return e}let e=p.value.findIndex(e=>!e.dataRef.disabled);if(e!==-1)return e}return m.value}),activationTrigger:h,optionsPropsRef:f,closeCombobox(){g.value=!1,!e.disabled&&a.value!==1&&(a.value=1,m.value=null)},openCombobox(){if(g.value=!0,!e.disabled&&a.value!==0){if(M.value.value){let e=M.calculateIndex(M.value.value);e!==-1&&(m.value=e)}a.value=0}},setActivationTrigger(e){h.value=e},goToOption(t,n,r){g.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||u.value&&!f.value.static&&a.value===1)return;if(M.virtual.value){m.value=t===Y.Specific?n:Xe({focus:t},{resolveItems:()=>M.virtual.value.options,resolveActiveIndex:()=>M.activeOptionIndex.value??M.virtual.value.options.findIndex(e=>{var t;return!((t=M.virtual.value)!=null&&t.disabled(e))})??null,resolveDisabled:e=>M.virtual.value.disabled(e),resolveId(){throw Error(`Function not implemented.`)}}),h.value=r??2;return}let i=_();if(i.activeOptionIndex===null){let e=i.options.findIndex(e=>!e.dataRef.disabled);e!==-1&&(i.activeOptionIndex=e)}m.value=t===Y.Specific?n:Xe({focus:t},{resolveItems:()=>i.options,resolveActiveIndex:()=>i.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.disabled}),h.value=r??2,p.value=i.options})},selectOption(e){let t=p.value.find(t=>t.id===e);if(!t)return;let{dataRef:n}=t;j(n.value)},selectActiveOption(){if(M.activeOptionIndex.value!==null){if(M.virtual.value)j(M.virtual.value.options[M.activeOptionIndex.value]);else{let{dataRef:e}=p.value[M.activeOptionIndex.value];j(e.value)}M.goToOption(Y.Specific,M.activeOptionIndex.value)}},registerOption(e,t){let n=D({id:e,dataRef:t});if(M.virtual.value){p.value.push(n);return}A&&cancelAnimationFrame(A);let r=_(e=>(e.push(n),e));m.value===null&&M.isSelected(t.value.value)&&(r.activeOptionIndex=r.options.indexOf(n)),p.value=r.options,m.value=r.activeOptionIndex,h.value=2,r.options.some(e=>!B(e.dataRef.domRef))&&(A=requestAnimationFrame(()=>{let e=_();p.value=e.options,m.value=e.activeOptionIndex}))},unregisterOption(e,t){if(O!==null&&cancelAnimationFrame(O),t&&(g.value=!0),M.virtual.value){p.value=p.value.filter(t=>t.id!==e);return}let n=_(t=>{let n=t.findIndex(t=>t.id===e);return n!==-1&&t.splice(n,1),t});p.value=n.options,m.value=n.activeOptionIndex,h.value=2},isSelected(e){return F(v.value,{0:()=>M.compare(T(M.value.value),T(e)),1:()=>T(M.value.value).some(t=>M.compare(T(t),T(e)))})},isActive(e){return m.value===M.calculateIndex(e)}};Ve([c,l,u],()=>M.closeCombobox(),k(()=>a.value===0)),d(it,M),ee(k(()=>F(a.value,{0:R.Open,1:R.Closed})));let N=k(()=>B(c)?.closest(`form`));return r(()=>{s([N],()=>{if(!N.value||e.defaultValue===void 0)return;function t(){M.change(e.defaultValue)}return N.value.addEventListener(`reset`,t),()=>{var e;(e=N.value)==null||e.removeEventListener(`reset`,t)}},{immediate:!0})}),()=>{let{name:r,disabled:i,form:o,...s}=e,c={open:a.value===0,disabled:i,activeIndex:M.activeOptionIndex.value,activeOption:M.activeOptionIndex.value===null?null:M.virtual.value?M.virtual.value.options[M.activeOptionIndex.value??0]:M.options.value[M.activeOptionIndex.value]?.dataRef.value??null,value:E.value};return S(y,[...r!=null&&E.value!=null?Ze({[r]:E.value}).map(([e,t])=>S(Ke,re({features:Ge.Hidden,key:e,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,form:o,disabled:i,name:e,value:t}))):[],z({theirProps:{...n,...U(s,[`by`,`defaultValue`,`immediate`,`modelValue`,`multiple`,`nullable`,`onUpdate:modelValue`,`virtual`])},ourProps:{},slot:c,slots:t,attrs:n,name:`Combobox`})])}}});n({name:`ComboboxLabel`,props:{as:{type:[Object,String],default:`label`},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){let r=e.id??`headlessui-combobox-label-${L()}`,i=X(`ComboboxLabel`);function a(){var e;(e=B(i.inputRef))==null||e.focus({preventScroll:!0})}return()=>{let o={open:i.comboboxState.value===0,disabled:i.disabled.value},{...s}=e;return z({ourProps:{id:r,ref:i.labelRef,onClick:a},theirProps:s,slot:o,attrs:t,slots:n,name:`ComboboxLabel`})}}});var ct=n({name:`ComboboxButton`,props:{as:{type:[Object,String],default:`button`},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=e.id??`headlessui-combobox-button-${L()}`,a=X(`ComboboxButton`);r({el:a.buttonRef,$el:a.buttonRef});function o(e){a.disabled.value||(a.comboboxState.value===0?a.closeCombobox():(e.preventDefault(),a.openCombobox()),l(()=>B(a.inputRef)?.focus({preventScroll:!0})))}function s(e){switch(e.key){case H.ArrowDown:e.preventDefault(),e.stopPropagation(),a.comboboxState.value===1&&a.openCombobox(),l(()=>a.inputRef.value?.focus({preventScroll:!0}));return;case H.ArrowUp:e.preventDefault(),e.stopPropagation(),a.comboboxState.value===1&&(a.openCombobox(),l(()=>{a.value.value||a.goToOption(Y.Last)})),l(()=>a.inputRef.value?.focus({preventScroll:!0}));return;case H.Escape:if(a.comboboxState.value!==0)return;e.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&e.stopPropagation(),a.closeCombobox(),l(()=>a.inputRef.value?.focus({preventScroll:!0}));return}}let c=te(k(()=>({as:e.as,type:t.type})),a.buttonRef);return()=>{let r={open:a.comboboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...l}=e;return z({ourProps:{ref:a.buttonRef,id:i,type:c.value,tabindex:`-1`,"aria-haspopup":`listbox`,"aria-controls":B(a.optionsRef)?.id,"aria-expanded":a.comboboxState.value===0,"aria-labelledby":a.labelRef.value?[B(a.labelRef)?.id,i].join(` `):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:s,onClick:o},theirProps:l,slot:r,attrs:t,slots:n,name:`ComboboxButton`})}}}),lt=n({name:`ComboboxInput`,props:{as:{type:[Object,String],default:`input`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:i,expose:a}){let o=e.id??`headlessui-combobox-input-${L()}`,c=X(`ComboboxInput`),u=k(()=>Oe(B(c.inputRef))),d={value:!1};a({el:c.inputRef,$el:c.inputRef});function f(){c.change(null);let e=B(c.optionsRef);e&&(e.scrollTop=0),c.goToOption(Y.Nothing)}let p=k(()=>{let t=c.value.value;return B(c.inputRef)?e.displayValue!==void 0&&t!==void 0?e.displayValue(t)??``:typeof t==`string`?t:``:``});r(()=>{s([p,c.comboboxState,u],([e,t],[n,r])=>{if(d.value)return;let i=B(c.inputRef);i&&((r===0&&t===1||e!==n)&&(i.value=e),requestAnimationFrame(()=>{if(d.value||!i||u.value?.activeElement!==i)return;let{selectionStart:e,selectionEnd:t}=i;Math.abs((t??0)-(e??0))===0&&e===0&&i.setSelectionRange(i.value.length,i.value.length)}))},{immediate:!0}),s([c.comboboxState],([e],[t])=>{if(e===0&&t===1){if(d.value)return;let e=B(c.inputRef);if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value=``,e.value=t,i===null?e.setSelectionRange(n,r):e.setSelectionRange(n,r,i)}})});let m=b(!1);function h(){m.value=!0}function g(){G().nextFrame(()=>{m.value=!1})}let _=we();function v(e){switch(d.value=!0,_(()=>{d.value=!1}),e.key){case H.Enter:if(d.value=!1,c.comboboxState.value!==0||m.value)return;if(e.preventDefault(),e.stopPropagation(),c.activeOptionIndex.value===null){c.closeCombobox();return}c.selectActiveOption(),c.mode.value===0&&c.closeCombobox();break;case H.ArrowDown:return d.value=!1,e.preventDefault(),e.stopPropagation(),F(c.comboboxState.value,{0:()=>c.goToOption(Y.Next),1:()=>c.openCombobox()});case H.ArrowUp:return d.value=!1,e.preventDefault(),e.stopPropagation(),F(c.comboboxState.value,{0:()=>c.goToOption(Y.Previous),1:()=>{c.openCombobox(),l(()=>{c.value.value||c.goToOption(Y.Last)})}});case H.Home:if(e.shiftKey)break;return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.First);case H.PageUp:return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.First);case H.End:if(e.shiftKey)break;return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.Last);case H.PageDown:return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.Last);case H.Escape:if(d.value=!1,c.comboboxState.value!==0)return;e.preventDefault(),c.optionsRef.value&&!c.optionsPropsRef.value.static&&e.stopPropagation(),c.nullable.value&&c.mode.value===0&&c.value.value===null&&f(),c.closeCombobox();break;case H.Tab:if(d.value=!1,c.comboboxState.value!==0)return;c.mode.value===0&&c.activationTrigger.value!==1&&c.selectActiveOption(),c.closeCombobox();break}}function y(e){t(`change`,e),c.nullable.value&&c.mode.value===0&&e.target.value===``&&f(),c.openCombobox()}function x(e){var t,n;let r=e.relatedTarget??J.find(t=>t!==e.currentTarget);if(d.value=!1,!((t=B(c.optionsRef))!=null&&t.contains(r))&&!((n=B(c.buttonRef))!=null&&n.contains(r))&&c.comboboxState.value===0)return e.preventDefault(),c.mode.value===0&&(c.nullable.value&&c.value.value===null?f():c.activationTrigger.value!==1&&c.selectActiveOption()),c.closeCombobox()}function S(e){var t,n;let r=e.relatedTarget??J.find(t=>t!==e.currentTarget);(t=B(c.buttonRef))!=null&&t.contains(r)||(n=B(c.optionsRef))!=null&&n.contains(r)||c.disabled.value||c.immediate.value&&c.comboboxState.value!==0&&(c.openCombobox(),G().nextFrame(()=>{c.setActivationTrigger(1)}))}let C=k(()=>e.defaultValue??(c.defaultValue.value===void 0?null:e.displayValue?.call(e,c.defaultValue.value))??c.defaultValue.value??``);return()=>{let t={open:c.comboboxState.value===0},{displayValue:r,onChange:a,...s}=e;return z({ourProps:{"aria-controls":c.optionsRef.value?.id,"aria-expanded":c.comboboxState.value===0,"aria-activedescendant":c.activeOptionIndex.value===null?void 0:c.virtual.value?c.options.value.find(e=>!c.virtual.value.disabled(e.dataRef.value)&&c.compare(e.dataRef.value,c.virtual.value.options[c.activeOptionIndex.value]))?.id:c.options.value[c.activeOptionIndex.value]?.id,"aria-labelledby":B(c.labelRef)?.id??B(c.buttonRef)?.id,"aria-autocomplete":`list`,id:o,onCompositionstart:h,onCompositionend:g,onKeydown:v,onInput:y,onFocus:S,onBlur:x,role:`combobox`,type:n.type??`text`,tabIndex:0,ref:c.inputRef,defaultValue:C.value,disabled:c.disabled.value===!0?!0:void 0},theirProps:s,slot:t,attrs:n,slots:i,features:P.RenderStrategy|P.Static,name:`ComboboxInput`})}}}),ut=n({name:`ComboboxOptions`,props:{as:{type:[Object,String],default:`ul`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let i=X(`ComboboxOptions`),a=`headlessui-combobox-options-${L()}`;r({el:i.optionsRef,$el:i.optionsRef}),E(()=>{i.optionsPropsRef.value.static=e.static}),E(()=>{i.optionsPropsRef.value.hold=e.hold});let o=V(),s=k(()=>o===null?i.comboboxState.value===0:(o.value&R.Open)===R.Open);We({container:k(()=>B(i.optionsRef)),enabled:k(()=>i.comboboxState.value===0),accept(e){return e.getAttribute(`role`)===`option`?NodeFilter.FILTER_REJECT:e.hasAttribute(`role`)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute(`role`,`none`)}});function c(e){e.preventDefault()}return()=>{let r={open:i.comboboxState.value===0};return z({ourProps:{"aria-labelledby":B(i.labelRef)?.id??B(i.buttonRef)?.id,id:a,ref:i.optionsRef,role:`listbox`,"aria-multiselectable":i.mode.value===1?!0:void 0,onMousedown:c},theirProps:U(e,[`hold`]),slot:r,attrs:t,slots:i.virtual.value&&i.comboboxState.value===0?{...n,default:()=>[S(ot,{},n.default)]}:n,features:P.RenderStrategy|P.Static,visible:s.value,name:`ComboboxOptions`})}}}),dt=n({name:`ComboboxOption`,props:{as:{type:[Object,String],default:`li`},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:i}){let o=X(`ComboboxOption`),s=`headlessui-combobox-option-${L()}`,c=b(null),u=k(()=>e.disabled);i({el:c,$el:c});let d=k(()=>o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:o.options.value[o.activeOptionIndex.value]?.id===s),f=k(()=>o.isSelected(e.value)),p=x(at,null),m=k(()=>({disabled:e.disabled,value:e.value,domRef:c,order:k(()=>e.order)}));r(()=>o.registerOption(s,m)),a(()=>o.unregisterOption(s,d.value)),E(()=>{let e=B(c);e&&p?.value.measureElement(e)}),E(()=>{o.comboboxState.value===0&&d.value&&(o.virtual.value||o.activationTrigger.value!==0&&l(()=>{var e;return((e=B(c))?.scrollIntoView)?.call(e,{block:`nearest`})}))});function h(e){e.preventDefault(),e.button===qe.Left&&(u.value||(o.selectOption(s),ze()||requestAnimationFrame(()=>B(o.inputRef)?.focus({preventScroll:!0})),o.mode.value===0&&o.closeCombobox()))}function g(){var t;if(e.disabled||(t=o.virtual.value)!=null&&t.disabled(e.value))return o.goToOption(Y.Nothing);let n=o.calculateIndex(e.value);o.goToOption(Y.Specific,n)}let _=Ue();function v(e){_.update(e)}function y(t){var n;if(!_.wasMoved(t)||e.disabled||(n=o.virtual.value)!=null&&n.disabled(e.value)||d.value)return;let r=o.calculateIndex(e.value);o.goToOption(Y.Specific,r,0)}function S(t){var n;_.wasMoved(t)&&(e.disabled||(n=o.virtual.value)!=null&&n.disabled(e.value)||d.value&&(o.optionsPropsRef.value.hold||o.goToOption(Y.Nothing)))}return()=>{let{disabled:r}=e,i={active:d.value,selected:f.value,disabled:r};return z({ourProps:{id:s,ref:c,role:`option`,tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:h,onFocus:g,onPointerenter:v,onMouseenter:v,onPointermove:y,onMousemove:y,onPointerleave:S,onMouseleave:S},theirProps:U(e,[`order`,`value`]),slot:i,attrs:n,slots:t,name:`ComboboxOption`})}}});function ft(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function pt(e,...t){e&&t.length>0&&e.classList.add(...t)}function Z(e,...t){e&&t.length>0&&e.classList.remove(...t)}var mt=(e=>(e.Finished=`finished`,e.Cancelled=`cancelled`,e))(mt||{});function ht(e,t){let n=G();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(`,`).filter(Boolean).map(e=>e.includes(`ms`)?parseFloat(e):parseFloat(e)*1e3).sort((e,t)=>t-e);return t});return a===0?t(`finished`):n.setTimeout(()=>t(`finished`),a+o),n.add(()=>t(`cancelled`)),n.dispose}function gt(e,t,n,r,i,a){let o=G(),s=a===void 0?()=>{}:ft(a);return Z(e,...i),pt(e,...t,...n),o.nextFrame(()=>{Z(e,...n),pt(e,...r),o.add(ht(e,n=>(Z(e,...r,...t),pt(e,...i),s(n))))}),o.add(()=>Z(e,...t,...n,...r,...i)),o.add(()=>s(`cancelled`)),o.dispose}function Q(e=``){return e.split(/\s+/).filter(e=>e.length>1)}var _t=Symbol(`TransitionContext`),vt=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(vt||{});function yt(){return x(_t,null)!==null}function bt(){let e=x(_t,null);if(e===null)throw Error(`A is used but it is missing a parent .`);return e}function xt(){let e=x(St,null);if(e===null)throw Error(`A is used but it is missing a parent .`);return e}var St=Symbol(`NestingContext`);function $(e){return`children`in e?$(e.children):e.value.filter(({state:e})=>e===`visible`).length>0}function Ct(e){let t=b([]),n=b(!1);r(()=>n.value=!0),a(()=>n.value=!1);function i(r,i=I.Hidden){let a=t.value.findIndex(({id:e})=>e===r);a!==-1&&(F(i,{[I.Unmount](){t.value.splice(a,1)},[I.Hidden](){t.value[a].state=`hidden`}}),!$(t)&&n.value&&e?.())}function o(e){let n=t.value.find(({id:t})=>t===e);return n?n.state!==`visible`&&(n.state=`visible`):t.value.push({id:e,state:`visible`}),()=>i(e,I.Unmount)}return{children:t,register:o,unregister:i}}var wt=P.RenderStrategy,Tt=n({props:{as:{type:[Object,String],default:`div`},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:``},enterFrom:{type:[String],default:``},enterTo:{type:[String],default:``},entered:{type:[String],default:``},leave:{type:[String],default:``},leaveFrom:{type:[String],default:``},leaveTo:{type:[String],default:``}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:i,expose:o}){let c=b(0);function l(){c.value|=R.Opening,t(`beforeEnter`)}function u(){c.value&=~R.Opening,t(`afterEnter`)}function f(){c.value|=R.Closing,t(`beforeLeave`)}function p(){c.value&=~R.Closing,t(`afterLeave`)}if(!yt()&&ne())return()=>S(Et,{...e,onBeforeEnter:l,onAfterEnter:u,onBeforeLeave:f,onAfterLeave:p},i);let h=b(null),g=k(()=>e.unmount?I.Unmount:I.Hidden);o({el:h,$el:h});let{show:_,appear:v}=bt(),{register:y,unregister:x}=xt(),C=b(_.value?`visible`:`hidden`),w={value:!0},T=L(),D={value:!1},O=Ct(()=>{!D.value&&C.value!==`hidden`&&(C.value=`hidden`,x(T),p())});r(()=>{a(y(T))}),E(()=>{if(g.value===I.Hidden&&T){if(_.value&&C.value!==`visible`){C.value=`visible`;return}F(C.value,{hidden:()=>x(T),visible:()=>y(T)})}});let A=Q(e.enter),j=Q(e.enterFrom),M=Q(e.enterTo),N=Q(e.entered),P=Q(e.leave),te=Q(e.leaveFrom),V=Q(e.leaveTo);r(()=>{E(()=>{if(C.value===`visible`){let e=B(h);if(e instanceof Comment&&e.data===``)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function re(e){let t=w.value&&!v.value,n=B(h);!n||!(n instanceof HTMLElement)||t||(D.value=!0,_.value&&l(),_.value||f(),e(_.value?gt(n,A,j,M,N,e=>{D.value=!1,e===mt.Finished&&u()}):gt(n,P,te,V,N,e=>{D.value=!1,e===mt.Finished&&($(O)||(C.value=`hidden`,x(T),p()))})))}return r(()=>{s([_],(e,t,n)=>{re(n),w.value=!1},{immediate:!0})}),d(St,O),ee(k(()=>F(C.value,{visible:R.Open,hidden:R.Closed})|c.value)),()=>{let{appear:t,show:r,enter:a,enterFrom:o,enterTo:s,entered:c,leave:l,leaveFrom:u,leaveTo:d,...f}=e,p={ref:h};return z({theirProps:{...f,...v.value&&_.value&&K.isServer?{class:m([n.class,f.class,...A,...j])}:{}},ourProps:p,slot:{},slots:i,attrs:n,features:wt,visible:C.value===`visible`,name:`TransitionChild`})}}}),Et=n({inheritAttrs:!1,props:{as:{type:[Object,String],default:`div`},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:``},enterFrom:{type:[String],default:``},enterTo:{type:[String],default:``},entered:{type:[String],default:``},leave:{type:[String],default:``},leaveFrom:{type:[String],default:``},leaveTo:{type:[String],default:``}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:i}){let a=V(),o=k(()=>e.show===null&&a!==null?(a.value&R.Open)===R.Open:e.show);E(()=>{if(![!0,!1].includes(o.value))throw Error('A is used but it is missing a `:show="true | false"` prop.')});let s=b(o.value?`visible`:`hidden`),c=Ct(()=>{s.value=`hidden`}),l=b(!0),u={show:o,appear:k(()=>e.appear||!l.value)};return r(()=>{E(()=>{l.value=!1,o.value?s.value=`visible`:$(c)||(s.value=`hidden`)})}),d(St,c),d(_t,u),()=>{let r=U(e,[`show`,`appear`,`unmount`,`onBeforeEnter`,`onBeforeLeave`,`onAfterEnter`,`onAfterLeave`]),a={unmount:e.unmount};return z({ourProps:{...a,as:`template`},theirProps:{},slot:{},slots:{...i,default:()=>[S(Tt,{onBeforeEnter:()=>t(`beforeEnter`),onAfterEnter:()=>t(`afterEnter`),onBeforeLeave:()=>t(`beforeLeave`),onAfterLeave:()=>t(`afterLeave`),...n,...a,...r},i.default)]},attrs:{},features:wt,visible:s.value===`visible`,name:`Transition`})}}}),Dt=[`active`,`checked`,`hint`],Ot={key:0},kt=n({__name:`InputComboboxOption`,props:{option:{}},setup(n){return(r,i)=>(c(),_(C(dt),{value:n.option,as:`template`},{default:o(({active:i,selected:a})=>[t(r.$slots,`option`,{option:n.option,active:i,selected:a},()=>[M(`craft-option`,{active:i,checked:a,hint:n.option.data?.hint},[n.option.label.startsWith(`$`)||n.option.label.startsWith(`@`)?(c(),f(`code`,Ot,e(n.option.label),1)):(c(),f(y,{key:1},[A(e(n.option.label),1)],64))],8,Dt)])]),_:3},8,[`value`]))}}),At={key:1},jt={class:`group-label`},Mt=O(n({__name:`InputCombobox`,props:{label:{},options:{default:()=>[]},modelValue:{default:``},requireOptionMatch:{type:Boolean,default:!1},transformModelValue:{type:Function,default:e=>e?e.value:``},class:{type:[Boolean,null,String,Object,Array]},placeholder:{}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,a=t,s=k({get(){let e=null;return a.options.forEach(t=>{t.type===`optgroup`?t.options.forEach(t=>{t.value===a.modelValue&&(e=t)}):t.value===a.modelValue&&(e=t)}),!e&&!a.requireOptionMatch&&(e={label:a.modelValue,value:a.modelValue}),e},set(e){r(`update:modelValue`,a.transformModelValue(e))}}),l=i(`reference`),d=b(a.modelValue??``),h=k(()=>l.value?.getBoundingClientRect()||new DOMRect);function g(e,t){let n=C(e).toLowerCase(),r=C(t);return r.label.toLowerCase().includes(n)||r.value.toLowerCase().includes(n)||(r.data?.keywords?.toLowerCase().includes(n)??!1)}function v(e,t){return C(t).map(t=>{if(t.type===`optgroup`){let n=t.options.filter(t=>g(e,t));return n.length>0?{...t,options:n}:null}return g(e,t)?t:null}).filter(e=>e!==null)}let x=k(()=>d.value===``?a.options:v(d,a.options));function S(e){return e?e.label:``}let w=k(()=>[``,`@`,`$`].includes(d.value)?null:{value:d.value,label:d.value});return(n,r)=>(c(),f(`div`,{class:`relative`,ref_key:`reference`,ref:l},[p(C(st),{modelValue:s.value,"onUpdate:modelValue":r[2]||=e=>s.value=e},{default:o(()=>[p(C(lt),{onChange:r[0]||=e=>d.value=e.target.value,class:m([`input`,a.class]),displayValue:S,placeholder:t.placeholder},null,8,[`class`,`placeholder`]),p(C(ct),{class:`absolute inset-y-1 right-1 flex items-center`,type:`button`,as:`craft-button`,appearance:`plain`,size:`small`,icon:``,"aria-label":t.label},{default:o(()=>[...r[3]||=[M(`craft-icon`,{name:`chevron-down`,style:{"font-size":`0.8em`}},null,-1)]]),_:1},8,[`aria-label`]),p(C(Et),{leave:`transition ease-in duration-100`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,onAfterLeave:r[1]||=e=>d.value=``},{default:o(()=>[p(C(ut),{class:`options`,style:u({position:`fixed`,insetInlineStart:`${h.value.left}px`,width:`${h.value.width}px`,insetBlockStart:`${h.value.bottom}px`})},{default:o(()=>[!t.requireOptionMatch&&w.value?(c(),_(kt,{key:0,option:w.value},null,8,[`option`])):x.value.length===0&&d.value!==``?(c(),f(`div`,At,` Nothing found. `)):j(``,!0),(c(!0),f(y,null,N(x.value,(t,n)=>(c(),f(y,{key:n},[t.type===`optgroup`?(c(),f(y,{key:0},[M(`div`,jt,e(t.label),1),(c(!0),f(y,null,N(t.options,(e,t)=>(c(),_(kt,{key:t,option:e},null,8,[`option`]))),128))],64)):(c(),_(kt,{key:1,option:t},null,8,[`option`]))],64))),128))]),_:1},8,[`style`])]),_:1})]),_:1},8,[`modelValue`])],512))}}),[[`__scopeId`,`data-v-edae8701`]]);export{Mt as t}; \ No newline at end of file + color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,n?.key)}return n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i}return o.updateDeps=e=>{r=e},o}function ie(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var ae=(e,t)=>Math.abs(e-t)<1.01,oe=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},se=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},ce=e=>e,le=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let e=t;e<=n;e++)r.push(e);return r},ue=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(se(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(se(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},de={passive:!0},fe=typeof window>`u`?!0:`onscrollend`in window,pe=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=0,a=e.options.useScrollendEvent&&fe?()=>void 0:oe(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),o=r=>()=>{let{horizontal:o,isRtl:s}=e.options;i=o?n.scrollLeft*(s&&-1||1):n.scrollTop,a(),t(i,r)},s=o(!0),c=o(!1);n.addEventListener(`scroll`,s,de);let l=e.options.useScrollendEvent&&fe;return l&&n.addEventListener(`scrollend`,c,de),()=>{n.removeEventListener(`scroll`,s),l&&n.removeEventListener(`scrollend`,c)}},me=(e,t,n)=>{if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},he=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;let o=e+t;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:o,behavior:n})},ge=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.currentScrollToIndex=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{let t=()=>{this._measureElement(e.target,e)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{n===void 0&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ce,rangeExtractor:le,onChange:()=>{},measureElement:me,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...e}},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=W(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}this.scrollElement=e,this.scrollElement&&`ownerDocument`in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let n=new Map,r=new Map;for(let i=t-1;i>=0;i--){let t=e[i];if(n.has(t.lane))continue;let a=r.get(t.lane);if(a==null||t.end>a.end?r.set(t.lane,t):t.ende.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=W(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,i,a)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a}),{key:!1}),this.getMeasurements=W(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a},o)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);let c=this.measurementsCache.slice(0,s),l=Array(a).fill(void 0);for(let e=0;e1){s=a;let e=l[s],r=e===void 0?void 0:c[e];u=r?r.end+this.options.gap:t+n}else{let e=this.options.lanes===1?c[i-1]:this.getFurthestMeasurement(c,i);u=e?e.end+this.options.gap:t+n,s=e?e.lane:i%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(i,s)}let d=o.get(e),f=typeof d==`number`?d:this.options.estimateSize(i),p=u+f;c[i]={index:i,start:u,size:f,end:p,key:e,lane:s},l[s]=i}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=W(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?ve({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=W(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;let i=r.key,a=this.elementsCache.get(i);a!==e&&(a&&this.observer.unobserve(a),this.observer.observe(e),this.elementsCache.set(i,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{let n=this.measurementsCache[e];if(!n)return;let r=t-(this.itemSizeCache.get(n.key)??n.size);r!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange===void 0?n.start{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}this._measureElement(e,void 0)},this.getVirtualItems=W(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;rthis.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length!==0)return ie(t[_e(0,t.length-1,e=>ie(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.measurementsCache[e];if(!n)return;let r=this.getSize(),i=this.getScrollOffset();if(t===`auto`)if(n.end>=i+r-this.options.scrollPaddingEnd)t=`end`;else if(n.start<=i+this.options.scrollPaddingStart)t=`start`;else return[i,t];if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,n.size),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(e,{align:t=`start`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t=`auto`,behavior:n}={})=>{n===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),e=Math.max(0,Math.min(e,this.options.count-1)),this.currentScrollToIndex=e;let r=0,i=t=>{if(!this.targetWindow)return;let r=this.getOffsetForIndex(e,t);if(!r){console.warn(`Failed to get offset for index:`,e);return}let[i,o]=r;this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.targetWindow.requestAnimationFrame(()=>{let t=()=>{if(this.currentScrollToIndex!==e)return;let t=this.getScrollOffset(),n=this.getOffsetForIndex(e,o);if(!n){console.warn(`Failed to get offset for index:`,e);return}ae(n[0],t)||a(o)};this.isDynamicMode()?this.targetWindow.requestAnimationFrame(t):t()})},a=t=>{this.targetWindow&&this.currentScrollToIndex===e&&(r++,r<10?this.targetWindow.requestAnimationFrame(()=>i(t)):console.warn(`Failed to scroll to index ${e} after 10 attempts.`))};i(t)},this.scrollBy=(e,{behavior:t}={})=>{t===`smooth`&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1)t=e[e.length-1]?.end??0;else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}},_e=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(ar)t=i-1;else return i}return e>0?e-1:0};function ve({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){let i=e.length-1,a=t=>e[t].start;if(e.length<=r)return{startIndex:0,endIndex:i};let o=_e(0,i,a,n),s=o;if(r===1)for(;s1){let a=Array(r).fill(0);for(;se=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(i,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}function ye(e){let t=new ge(C(e)),n=g(t),r=t._didMount();return s(()=>C(e).getScrollElement(),e=>{e&&t._willUpdate()},{immediate:!0}),s(()=>C(e),e=>{t.setOptions({...e,onChange:(t,r)=>{var i;v(n),(i=e.onChange)==null||i.call(e,t,r)}}),t._willUpdate(),v(n)},{immediate:!0}),w(r),n}function be(e){return ye(k(()=>({observeElementRect:ue,observeElementOffset:pe,scrollToFn:he,...C(e)})))}function xe(e,t,n){let r=b(n?.value),i=k(()=>e.value!==void 0);return[k(()=>i.value?e.value:r.value),function(e){return i.value||(r.value=e),t?.(e)}]}function Se(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function G(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){t.requestAnimationFrame(()=>{t.requestAnimationFrame(...e)})},setTimeout(...e){let n=setTimeout(...e);t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return Se(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=G();return e(t),this.add(()=>t.dispose())},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function Ce(){let e=G();return a(()=>e.dispose()),e}function we(){let e=Ce();return t=>{e.dispose(),e.nextFrame(t)}}var Te=Object.defineProperty,Ee=(e,t,n)=>t in e?Te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,De=(e,t,n)=>(Ee(e,typeof t==`symbol`?t:t+``,n),n),K=new class{constructor(){De(this,`current`,this.detect()),De(this,`currentId`,0)}set(e){this.current!==e&&(this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}};function Oe(e){if(K.isServer)return null;if(e instanceof Node)return e.ownerDocument;if(e!=null&&e.hasOwnProperty(`value`)){let t=B(e);if(t)return t.ownerDocument}return document}var ke=[`[contentEditable=true]`,`[tabindex]`,`a[href]`,`area[href]`,`button:not([disabled])`,`iframe`,`input:not([disabled])`,`select:not([disabled])`,`textarea:not([disabled])`].map(e=>`${e}:not([tabindex='-1'])`).join(`,`),Ae=(e=>(e[e.First=1]=`First`,e[e.Previous=2]=`Previous`,e[e.Next=4]=`Next`,e[e.Last=8]=`Last`,e[e.WrapAround=16]=`WrapAround`,e[e.NoScroll=32]=`NoScroll`,e))(Ae||{}),je=(e=>(e[e.Error=0]=`Error`,e[e.Overflow=1]=`Overflow`,e[e.Success=2]=`Success`,e[e.Underflow=3]=`Underflow`,e))(je||{}),Me=(e=>(e[e.Previous=-1]=`Previous`,e[e.Next=1]=`Next`,e))(Me||{}),Ne=(e=>(e[e.Strict=0]=`Strict`,e[e.Loose=1]=`Loose`,e))(Ne||{});function Pe(e,t=0){return e===Oe(e)?.body?!1:F(t,{0(){return e.matches(ke)},1(){let t=e;for(;t!==null;){if(t.matches(ke))return!0;t=t.parentElement}return!1}})}var Fe=(e=>(e[e.Keyboard=0]=`Keyboard`,e[e.Mouse=1]=`Mouse`,e))(Fe||{});typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`keydown`,e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible=``)},!0),document.addEventListener(`click`,e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible=``)},!0)),[`textarea`,`input`].join(`,`);function Ie(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Le(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Re(){return/Android/gi.test(window.navigator.userAgent)}function ze(){return Le()||Re()}function q(e,t,n){K.isServer||E(r=>{document.addEventListener(e,t,n),r(()=>document.removeEventListener(e,t,n))})}function Be(e,t,n){K.isServer||E(r=>{window.addEventListener(e,t,n),r(()=>window.removeEventListener(e,t,n))})}function Ve(e,t,n=k(()=>!0)){function r(r,i){if(!n.value||r.defaultPrevented)return;let a=i(r);if(a===null||!a.getRootNode().contains(a))return;let o=function e(t){return typeof t==`function`?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of o){if(e===null)continue;let t=e instanceof HTMLElement?e:B(e);if(t!=null&&t.contains(a)||r.composed&&r.composedPath().includes(t))return}return!Pe(a,Ne.Loose)&&a.tabIndex!==-1&&r.preventDefault(),t(r,a)}let i=b(null);q(`pointerdown`,e=>{n.value&&(i.value=e.composedPath?.call(e)?.[0]||e.target)},!0),q(`mousedown`,e=>{n.value&&(i.value=e.composedPath?.call(e)?.[0]||e.target)},!0),q(`click`,e=>{ze()||(i.value&&=(r(e,()=>i.value),null))},!0),q(`touchend`,e=>r(e,()=>e.target instanceof HTMLElement?e.target:null),!0),Be(`blur`,e=>r(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function He(e){return[e.screenX,e.screenY]}function Ue(){let e=b([-1,-1]);return{wasMoved(t){let n=He(t);return e.value[0]===n[0]&&e.value[1]===n[1]?!1:(e.value=n,!0)},update(t){e.value=He(t)}}}function We({container:e,accept:t,walk:n,enabled:r}){E(()=>{let i=e.value;if(!i||r!==void 0&&!r.value)return;let a=Oe(e);if(!a)return;let o=Object.assign(e=>t(e),{acceptNode:t}),s=a.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,o,!1);for(;s.nextNode();)n(s.currentNode)})}var Ge=(e=>(e[e.None=1]=`None`,e[e.Focusable=2]=`Focusable`,e[e.Hidden=4]=`Hidden`,e))(Ge||{}),Ke=n({name:`Hidden`,props:{as:{type:[Object,String],default:`div`},features:{type:Number,default:1}},setup(e,{slots:t,attrs:n}){return()=>{let{features:r,...i}=e;return z({ourProps:{"aria-hidden":(r&2)==2?!0:i[`aria-hidden`]??void 0,hidden:(r&4)==4?!0:void 0,style:{position:`fixed`,top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,borderWidth:`0`,...(r&4)==4&&(r&2)!=2&&{display:`none`}}},theirProps:i,slot:{},attrs:n,slots:t,name:`Hidden`})}}}),qe=(e=>(e[e.Left=0]=`Left`,e[e.Right=2]=`Right`,e))(qe||{});function Je(e){function t(){document.readyState!==`loading`&&(e(),document.removeEventListener(`DOMContentLoaded`,t))}typeof window<`u`&&typeof document<`u`&&(document.addEventListener(`DOMContentLoaded`,t),t())}var J=[];Je(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&J[0]!==e.target&&(J.unshift(e.target),J=J.filter(e=>e!=null&&e.isConnected),J.splice(10))}window.addEventListener(`click`,e,{capture:!0}),window.addEventListener(`mousedown`,e,{capture:!0}),window.addEventListener(`focus`,e,{capture:!0}),document.body.addEventListener(`click`,e,{capture:!0}),document.body.addEventListener(`mousedown`,e,{capture:!0}),document.body.addEventListener(`focus`,e,{capture:!0})});function Ye(e){throw Error(`Unexpected object: `+e)}var Y=(e=>(e[e.First=0]=`First`,e[e.Previous=1]=`Previous`,e[e.Next=2]=`Next`,e[e.Last=3]=`Last`,e[e.Specific=4]=`Specific`,e[e.Nothing=5]=`Nothing`,e))(Y||{});function Xe(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(tt||{}),nt=(e=>(e[e.Single=0]=`Single`,e[e.Multi=1]=`Multi`,e))(nt||{}),rt=(e=>(e[e.Pointer=0]=`Pointer`,e[e.Focus=1]=`Focus`,e[e.Other=2]=`Other`,e))(rt||{}),it=Symbol(`ComboboxContext`);function X(e){let t=x(it,null);if(t===null){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,X),t}return t}var at=Symbol(`VirtualContext`),ot=n({name:`VirtualProvider`,setup(e,{slots:t}){let n=X(`VirtualProvider`),r=k(()=>{let e=B(n.optionsRef);if(!e)return{start:0,end:0};let t=window.getComputedStyle(e);return{start:parseFloat(t.paddingBlockStart||t.paddingTop),end:parseFloat(t.paddingBlockEnd||t.paddingBottom)}}),i=be(k(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:n.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return B(n.optionsRef)},overscan:12}))),a=k(()=>n.virtual.value?.options),o=b(0);return s([a],()=>{o.value+=1}),d(at,n.virtual.value?i:null),()=>[S(`div`,{style:{position:`relative`,width:`100%`,height:`${i.value.getTotalSize()}px`},ref:e=>{if(e){if(typeof process<`u`&&{}.JEST_WORKER_ID!==void 0||n.activationTrigger.value===0)return;n.activeOptionIndex.value!==null&&n.virtual.value.options.length>n.activeOptionIndex.value&&i.value.scrollToIndex(n.activeOptionIndex.value)}}},i.value.getVirtualItems().map(e=>h(t.default({option:n.virtual.value.options[e.index],open:n.comboboxState.value===0})[0],{key:`${o.value}-${e.index}`,"data-index":e.index,"aria-setsize":n.virtual.value.options.length,"aria-posinset":e.index+1,style:{position:`absolute`,top:0,left:0,transform:`translateY(${e.start}px)`,overflowAnchor:`none`}})))]}}),st=n({name:`Combobox`,emits:{"update:modelValue":e=>!0},props:{as:{type:[Object,String],default:`template`},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(e,{slots:t,attrs:n,emit:i}){let a=b(1),o=b(null),c=b(null),l=b(null),u=b(null),f=b({static:!1,hold:!1}),p=b([]),m=b(null),h=b(2),g=b(!1);function _(e=e=>e){let t=m.value===null?null:p.value[m.value],n=e(p.value.slice()),r=n.length>0&&n[0].dataRef.order.value!==null?n.sort((e,t)=>e.dataRef.order.value-t.dataRef.order.value):Ie(n,e=>B(e.dataRef.domRef)),i=t?r.indexOf(t):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let v=k(()=>+!!e.multiple),x=k(()=>e.nullable),[C,w]=xe(k(()=>e.modelValue),e=>i(`update:modelValue`,e),k(()=>e.defaultValue)),E=k(()=>C.value===void 0?F(v.value,{1:[],0:void 0}):C.value),O=null,A=null;function j(e){return F(v.value,{0(){return w?.(e)},1:()=>{let t=T(M.value.value).slice(),n=T(e),r=t.findIndex(e=>M.compare(n,T(e)));return r===-1?t.push(n):t.splice(r,1),w?.(t)}})}s([k(()=>{})],([e],[t])=>{if(M.virtual.value&&e&&t&&m.value!==null){let n=e.indexOf(t[m.value]);n===-1?m.value=null:m.value=n}});let M={comboboxState:a,value:E,mode:v,compare(t,n){if(typeof e.by==`string`){let r=e.by;return t?.[r]===n?.[r]}return e.by===null?et(t,n):e.by(t,n)},calculateIndex(t){return M.virtual.value?e.by===null?M.virtual.value.options.indexOf(t):M.virtual.value.options.findIndex(e=>M.compare(e,t)):p.value.findIndex(e=>M.compare(e.dataRef.value,t))},defaultValue:k(()=>e.defaultValue),nullable:x,immediate:k(()=>!1),virtual:k(()=>null),inputRef:c,labelRef:o,buttonRef:l,optionsRef:u,disabled:k(()=>e.disabled),options:p,change(e){w(e)},activeOptionIndex:k(()=>{if(g.value&&m.value===null&&(M.virtual.value?M.virtual.value.options.length>0:p.value.length>0)){if(M.virtual.value){let e=M.virtual.value.options.findIndex(e=>{var t;return!((t=M.virtual.value)!=null&&t.disabled(e))});if(e!==-1)return e}let e=p.value.findIndex(e=>!e.dataRef.disabled);if(e!==-1)return e}return m.value}),activationTrigger:h,optionsPropsRef:f,closeCombobox(){g.value=!1,!e.disabled&&a.value!==1&&(a.value=1,m.value=null)},openCombobox(){if(g.value=!0,!e.disabled&&a.value!==0){if(M.value.value){let e=M.calculateIndex(M.value.value);e!==-1&&(m.value=e)}a.value=0}},setActivationTrigger(e){h.value=e},goToOption(t,n,r){g.value=!1,O!==null&&cancelAnimationFrame(O),O=requestAnimationFrame(()=>{if(e.disabled||u.value&&!f.value.static&&a.value===1)return;if(M.virtual.value){m.value=t===Y.Specific?n:Xe({focus:t},{resolveItems:()=>M.virtual.value.options,resolveActiveIndex:()=>M.activeOptionIndex.value??M.virtual.value.options.findIndex(e=>{var t;return!((t=M.virtual.value)!=null&&t.disabled(e))})??null,resolveDisabled:e=>M.virtual.value.disabled(e),resolveId(){throw Error(`Function not implemented.`)}}),h.value=r??2;return}let i=_();if(i.activeOptionIndex===null){let e=i.options.findIndex(e=>!e.dataRef.disabled);e!==-1&&(i.activeOptionIndex=e)}m.value=t===Y.Specific?n:Xe({focus:t},{resolveItems:()=>i.options,resolveActiveIndex:()=>i.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.disabled}),h.value=r??2,p.value=i.options})},selectOption(e){let t=p.value.find(t=>t.id===e);if(!t)return;let{dataRef:n}=t;j(n.value)},selectActiveOption(){if(M.activeOptionIndex.value!==null){if(M.virtual.value)j(M.virtual.value.options[M.activeOptionIndex.value]);else{let{dataRef:e}=p.value[M.activeOptionIndex.value];j(e.value)}M.goToOption(Y.Specific,M.activeOptionIndex.value)}},registerOption(e,t){let n=D({id:e,dataRef:t});if(M.virtual.value){p.value.push(n);return}A&&cancelAnimationFrame(A);let r=_(e=>(e.push(n),e));m.value===null&&M.isSelected(t.value.value)&&(r.activeOptionIndex=r.options.indexOf(n)),p.value=r.options,m.value=r.activeOptionIndex,h.value=2,r.options.some(e=>!B(e.dataRef.domRef))&&(A=requestAnimationFrame(()=>{let e=_();p.value=e.options,m.value=e.activeOptionIndex}))},unregisterOption(e,t){if(O!==null&&cancelAnimationFrame(O),t&&(g.value=!0),M.virtual.value){p.value=p.value.filter(t=>t.id!==e);return}let n=_(t=>{let n=t.findIndex(t=>t.id===e);return n!==-1&&t.splice(n,1),t});p.value=n.options,m.value=n.activeOptionIndex,h.value=2},isSelected(e){return F(v.value,{0:()=>M.compare(T(M.value.value),T(e)),1:()=>T(M.value.value).some(t=>M.compare(T(t),T(e)))})},isActive(e){return m.value===M.calculateIndex(e)}};Ve([c,l,u],()=>M.closeCombobox(),k(()=>a.value===0)),d(it,M),ee(k(()=>F(a.value,{0:R.Open,1:R.Closed})));let N=k(()=>B(c)?.closest(`form`));return r(()=>{s([N],()=>{if(!N.value||e.defaultValue===void 0)return;function t(){M.change(e.defaultValue)}return N.value.addEventListener(`reset`,t),()=>{var e;(e=N.value)==null||e.removeEventListener(`reset`,t)}},{immediate:!0})}),()=>{let{name:r,disabled:i,form:o,...s}=e,c={open:a.value===0,disabled:i,activeIndex:M.activeOptionIndex.value,activeOption:M.activeOptionIndex.value===null?null:M.virtual.value?M.virtual.value.options[M.activeOptionIndex.value??0]:M.options.value[M.activeOptionIndex.value]?.dataRef.value??null,value:E.value};return S(y,[...r!=null&&E.value!=null?Ze({[r]:E.value}).map(([e,t])=>S(Ke,re({features:Ge.Hidden,key:e,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,form:o,disabled:i,name:e,value:t}))):[],z({theirProps:{...n,...U(s,[`by`,`defaultValue`,`immediate`,`modelValue`,`multiple`,`nullable`,`onUpdate:modelValue`,`virtual`])},ourProps:{},slot:c,slots:t,attrs:n,name:`Combobox`})])}}});n({name:`ComboboxLabel`,props:{as:{type:[Object,String],default:`label`},id:{type:String,default:null}},setup(e,{attrs:t,slots:n}){let r=e.id??`headlessui-combobox-label-${L()}`,i=X(`ComboboxLabel`);function a(){var e;(e=B(i.inputRef))==null||e.focus({preventScroll:!0})}return()=>{let o={open:i.comboboxState.value===0,disabled:i.disabled.value},{...s}=e;return z({ourProps:{id:r,ref:i.labelRef,onClick:a},theirProps:s,slot:o,attrs:t,slots:n,name:`ComboboxLabel`})}}});var ct=n({name:`ComboboxButton`,props:{as:{type:[Object,String],default:`button`},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let i=e.id??`headlessui-combobox-button-${L()}`,a=X(`ComboboxButton`);r({el:a.buttonRef,$el:a.buttonRef});function o(e){a.disabled.value||(a.comboboxState.value===0?a.closeCombobox():(e.preventDefault(),a.openCombobox()),l(()=>B(a.inputRef)?.focus({preventScroll:!0})))}function s(e){switch(e.key){case H.ArrowDown:e.preventDefault(),e.stopPropagation(),a.comboboxState.value===1&&a.openCombobox(),l(()=>a.inputRef.value?.focus({preventScroll:!0}));return;case H.ArrowUp:e.preventDefault(),e.stopPropagation(),a.comboboxState.value===1&&(a.openCombobox(),l(()=>{a.value.value||a.goToOption(Y.Last)})),l(()=>a.inputRef.value?.focus({preventScroll:!0}));return;case H.Escape:if(a.comboboxState.value!==0)return;e.preventDefault(),a.optionsRef.value&&!a.optionsPropsRef.value.static&&e.stopPropagation(),a.closeCombobox(),l(()=>a.inputRef.value?.focus({preventScroll:!0}));return}}let c=te(k(()=>({as:e.as,type:t.type})),a.buttonRef);return()=>{let r={open:a.comboboxState.value===0,disabled:a.disabled.value,value:a.value.value},{...l}=e;return z({ourProps:{ref:a.buttonRef,id:i,type:c.value,tabindex:`-1`,"aria-haspopup":`listbox`,"aria-controls":B(a.optionsRef)?.id,"aria-expanded":a.comboboxState.value===0,"aria-labelledby":a.labelRef.value?[B(a.labelRef)?.id,i].join(` `):void 0,disabled:a.disabled.value===!0?!0:void 0,onKeydown:s,onClick:o},theirProps:l,slot:r,attrs:t,slots:n,name:`ComboboxButton`})}}}),lt=n({name:`ComboboxInput`,props:{as:{type:[Object,String],default:`input`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:e=>!0},setup(e,{emit:t,attrs:n,slots:i,expose:a}){let o=e.id??`headlessui-combobox-input-${L()}`,c=X(`ComboboxInput`),u=k(()=>Oe(B(c.inputRef))),d={value:!1};a({el:c.inputRef,$el:c.inputRef});function f(){c.change(null);let e=B(c.optionsRef);e&&(e.scrollTop=0),c.goToOption(Y.Nothing)}let p=k(()=>{let t=c.value.value;return B(c.inputRef)?e.displayValue!==void 0&&t!==void 0?e.displayValue(t)??``:typeof t==`string`?t:``:``});r(()=>{s([p,c.comboboxState,u],([e,t],[n,r])=>{if(d.value)return;let i=B(c.inputRef);i&&((r===0&&t===1||e!==n)&&(i.value=e),requestAnimationFrame(()=>{if(d.value||!i||u.value?.activeElement!==i)return;let{selectionStart:e,selectionEnd:t}=i;Math.abs((t??0)-(e??0))===0&&e===0&&i.setSelectionRange(i.value.length,i.value.length)}))},{immediate:!0}),s([c.comboboxState],([e],[t])=>{if(e===0&&t===1){if(d.value)return;let e=B(c.inputRef);if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;e.value=``,e.value=t,i===null?e.setSelectionRange(n,r):e.setSelectionRange(n,r,i)}})});let m=b(!1);function h(){m.value=!0}function g(){G().nextFrame(()=>{m.value=!1})}let _=we();function v(e){switch(d.value=!0,_(()=>{d.value=!1}),e.key){case H.Enter:if(d.value=!1,c.comboboxState.value!==0||m.value)return;if(e.preventDefault(),e.stopPropagation(),c.activeOptionIndex.value===null){c.closeCombobox();return}c.selectActiveOption(),c.mode.value===0&&c.closeCombobox();break;case H.ArrowDown:return d.value=!1,e.preventDefault(),e.stopPropagation(),F(c.comboboxState.value,{0:()=>c.goToOption(Y.Next),1:()=>c.openCombobox()});case H.ArrowUp:return d.value=!1,e.preventDefault(),e.stopPropagation(),F(c.comboboxState.value,{0:()=>c.goToOption(Y.Previous),1:()=>{c.openCombobox(),l(()=>{c.value.value||c.goToOption(Y.Last)})}});case H.Home:if(e.shiftKey)break;return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.First);case H.PageUp:return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.First);case H.End:if(e.shiftKey)break;return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.Last);case H.PageDown:return d.value=!1,e.preventDefault(),e.stopPropagation(),c.goToOption(Y.Last);case H.Escape:if(d.value=!1,c.comboboxState.value!==0)return;e.preventDefault(),c.optionsRef.value&&!c.optionsPropsRef.value.static&&e.stopPropagation(),c.nullable.value&&c.mode.value===0&&c.value.value===null&&f(),c.closeCombobox();break;case H.Tab:if(d.value=!1,c.comboboxState.value!==0)return;c.mode.value===0&&c.activationTrigger.value!==1&&c.selectActiveOption(),c.closeCombobox();break}}function y(e){t(`change`,e),c.nullable.value&&c.mode.value===0&&e.target.value===``&&f(),c.openCombobox()}function x(e){var t,n;let r=e.relatedTarget??J.find(t=>t!==e.currentTarget);if(d.value=!1,!((t=B(c.optionsRef))!=null&&t.contains(r))&&!((n=B(c.buttonRef))!=null&&n.contains(r))&&c.comboboxState.value===0)return e.preventDefault(),c.mode.value===0&&(c.nullable.value&&c.value.value===null?f():c.activationTrigger.value!==1&&c.selectActiveOption()),c.closeCombobox()}function S(e){var t,n;let r=e.relatedTarget??J.find(t=>t!==e.currentTarget);(t=B(c.buttonRef))!=null&&t.contains(r)||(n=B(c.optionsRef))!=null&&n.contains(r)||c.disabled.value||c.immediate.value&&c.comboboxState.value!==0&&(c.openCombobox(),G().nextFrame(()=>{c.setActivationTrigger(1)}))}let C=k(()=>e.defaultValue??(c.defaultValue.value===void 0?null:e.displayValue?.call(e,c.defaultValue.value))??c.defaultValue.value??``);return()=>{let t={open:c.comboboxState.value===0},{displayValue:r,onChange:a,...s}=e;return z({ourProps:{"aria-controls":c.optionsRef.value?.id,"aria-expanded":c.comboboxState.value===0,"aria-activedescendant":c.activeOptionIndex.value===null?void 0:c.virtual.value?c.options.value.find(e=>!c.virtual.value.disabled(e.dataRef.value)&&c.compare(e.dataRef.value,c.virtual.value.options[c.activeOptionIndex.value]))?.id:c.options.value[c.activeOptionIndex.value]?.id,"aria-labelledby":B(c.labelRef)?.id??B(c.buttonRef)?.id,"aria-autocomplete":`list`,id:o,onCompositionstart:h,onCompositionend:g,onKeydown:v,onInput:y,onFocus:S,onBlur:x,role:`combobox`,type:n.type??`text`,tabIndex:0,ref:c.inputRef,defaultValue:C.value,disabled:c.disabled.value===!0?!0:void 0},theirProps:s,slot:t,attrs:n,slots:i,features:P.RenderStrategy|P.Static,name:`ComboboxInput`})}}}),ut=n({name:`ComboboxOptions`,props:{as:{type:[Object,String],default:`ul`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(e,{attrs:t,slots:n,expose:r}){let i=X(`ComboboxOptions`),a=`headlessui-combobox-options-${L()}`;r({el:i.optionsRef,$el:i.optionsRef}),E(()=>{i.optionsPropsRef.value.static=e.static}),E(()=>{i.optionsPropsRef.value.hold=e.hold});let o=V(),s=k(()=>o===null?i.comboboxState.value===0:(o.value&R.Open)===R.Open);We({container:k(()=>B(i.optionsRef)),enabled:k(()=>i.comboboxState.value===0),accept(e){return e.getAttribute(`role`)===`option`?NodeFilter.FILTER_REJECT:e.hasAttribute(`role`)?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(e){e.setAttribute(`role`,`none`)}});function c(e){e.preventDefault()}return()=>{let r={open:i.comboboxState.value===0};return z({ourProps:{"aria-labelledby":B(i.labelRef)?.id??B(i.buttonRef)?.id,id:a,ref:i.optionsRef,role:`listbox`,"aria-multiselectable":i.mode.value===1?!0:void 0,onMousedown:c},theirProps:U(e,[`hold`]),slot:r,attrs:t,slots:i.virtual.value&&i.comboboxState.value===0?{...n,default:()=>[S(ot,{},n.default)]}:n,features:P.RenderStrategy|P.Static,visible:s.value,name:`ComboboxOptions`})}}}),dt=n({name:`ComboboxOption`,props:{as:{type:[Object,String],default:`li`},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(e,{slots:t,attrs:n,expose:i}){let o=X(`ComboboxOption`),s=`headlessui-combobox-option-${L()}`,c=b(null),u=k(()=>e.disabled);i({el:c,$el:c});let d=k(()=>o.virtual.value?o.activeOptionIndex.value===o.calculateIndex(e.value):o.activeOptionIndex.value===null?!1:o.options.value[o.activeOptionIndex.value]?.id===s),f=k(()=>o.isSelected(e.value)),p=x(at,null),m=k(()=>({disabled:e.disabled,value:e.value,domRef:c,order:k(()=>e.order)}));r(()=>o.registerOption(s,m)),a(()=>o.unregisterOption(s,d.value)),E(()=>{let e=B(c);e&&p?.value.measureElement(e)}),E(()=>{o.comboboxState.value===0&&d.value&&(o.virtual.value||o.activationTrigger.value!==0&&l(()=>{var e;return((e=B(c))?.scrollIntoView)?.call(e,{block:`nearest`})}))});function h(e){e.preventDefault(),e.button===qe.Left&&(u.value||(o.selectOption(s),ze()||requestAnimationFrame(()=>B(o.inputRef)?.focus({preventScroll:!0})),o.mode.value===0&&o.closeCombobox()))}function g(){var t;if(e.disabled||(t=o.virtual.value)!=null&&t.disabled(e.value))return o.goToOption(Y.Nothing);let n=o.calculateIndex(e.value);o.goToOption(Y.Specific,n)}let _=Ue();function v(e){_.update(e)}function y(t){var n;if(!_.wasMoved(t)||e.disabled||(n=o.virtual.value)!=null&&n.disabled(e.value)||d.value)return;let r=o.calculateIndex(e.value);o.goToOption(Y.Specific,r,0)}function S(t){var n;_.wasMoved(t)&&(e.disabled||(n=o.virtual.value)!=null&&n.disabled(e.value)||d.value&&(o.optionsPropsRef.value.hold||o.goToOption(Y.Nothing)))}return()=>{let{disabled:r}=e,i={active:d.value,selected:f.value,disabled:r};return z({ourProps:{id:s,ref:c,role:`option`,tabIndex:r===!0?void 0:-1,"aria-disabled":r===!0?!0:void 0,"aria-selected":f.value,disabled:void 0,onMousedown:h,onFocus:g,onPointerenter:v,onMouseenter:v,onPointermove:y,onMousemove:y,onPointerleave:S,onMouseleave:S},theirProps:U(e,[`order`,`value`]),slot:i,attrs:n,slots:t,name:`ComboboxOption`})}}});function ft(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function pt(e,...t){e&&t.length>0&&e.classList.add(...t)}function Z(e,...t){e&&t.length>0&&e.classList.remove(...t)}var mt=(e=>(e.Finished=`finished`,e.Cancelled=`cancelled`,e))(mt||{});function ht(e,t){let n=G();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(`,`).filter(Boolean).map(e=>e.includes(`ms`)?parseFloat(e):parseFloat(e)*1e3).sort((e,t)=>t-e);return t});return a===0?t(`finished`):n.setTimeout(()=>t(`finished`),a+o),n.add(()=>t(`cancelled`)),n.dispose}function gt(e,t,n,r,i,a){let o=G(),s=a===void 0?()=>{}:ft(a);return Z(e,...i),pt(e,...t,...n),o.nextFrame(()=>{Z(e,...n),pt(e,...r),o.add(ht(e,n=>(Z(e,...r,...t),pt(e,...i),s(n))))}),o.add(()=>Z(e,...t,...n,...r,...i)),o.add(()=>s(`cancelled`)),o.dispose}function Q(e=``){return e.split(/\s+/).filter(e=>e.length>1)}var _t=Symbol(`TransitionContext`),vt=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(vt||{});function yt(){return x(_t,null)!==null}function bt(){let e=x(_t,null);if(e===null)throw Error(`A is used but it is missing a parent .`);return e}function xt(){let e=x(St,null);if(e===null)throw Error(`A is used but it is missing a parent .`);return e}var St=Symbol(`NestingContext`);function $(e){return`children`in e?$(e.children):e.value.filter(({state:e})=>e===`visible`).length>0}function Ct(e){let t=b([]),n=b(!1);r(()=>n.value=!0),a(()=>n.value=!1);function i(r,i=I.Hidden){let a=t.value.findIndex(({id:e})=>e===r);a!==-1&&(F(i,{[I.Unmount](){t.value.splice(a,1)},[I.Hidden](){t.value[a].state=`hidden`}}),!$(t)&&n.value&&e?.())}function o(e){let n=t.value.find(({id:t})=>t===e);return n?n.state!==`visible`&&(n.state=`visible`):t.value.push({id:e,state:`visible`}),()=>i(e,I.Unmount)}return{children:t,register:o,unregister:i}}var wt=P.RenderStrategy,Tt=n({props:{as:{type:[Object,String],default:`div`},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:``},enterFrom:{type:[String],default:``},enterTo:{type:[String],default:``},entered:{type:[String],default:``},leave:{type:[String],default:``},leaveFrom:{type:[String],default:``},leaveTo:{type:[String],default:``}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:i,expose:o}){let c=b(0);function l(){c.value|=R.Opening,t(`beforeEnter`)}function u(){c.value&=~R.Opening,t(`afterEnter`)}function f(){c.value|=R.Closing,t(`beforeLeave`)}function p(){c.value&=~R.Closing,t(`afterLeave`)}if(!yt()&&ne())return()=>S(Et,{...e,onBeforeEnter:l,onAfterEnter:u,onBeforeLeave:f,onAfterLeave:p},i);let h=b(null),g=k(()=>e.unmount?I.Unmount:I.Hidden);o({el:h,$el:h});let{show:_,appear:v}=bt(),{register:y,unregister:x}=xt(),C=b(_.value?`visible`:`hidden`),w={value:!0},T=L(),D={value:!1},O=Ct(()=>{!D.value&&C.value!==`hidden`&&(C.value=`hidden`,x(T),p())});r(()=>{a(y(T))}),E(()=>{if(g.value===I.Hidden&&T){if(_.value&&C.value!==`visible`){C.value=`visible`;return}F(C.value,{hidden:()=>x(T),visible:()=>y(T)})}});let A=Q(e.enter),j=Q(e.enterFrom),M=Q(e.enterTo),N=Q(e.entered),P=Q(e.leave),te=Q(e.leaveFrom),V=Q(e.leaveTo);r(()=>{E(()=>{if(C.value===`visible`){let e=B(h);if(e instanceof Comment&&e.data===``)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")}})});function re(e){let t=w.value&&!v.value,n=B(h);!n||!(n instanceof HTMLElement)||t||(D.value=!0,_.value&&l(),_.value||f(),e(_.value?gt(n,A,j,M,N,e=>{D.value=!1,e===mt.Finished&&u()}):gt(n,P,te,V,N,e=>{D.value=!1,e===mt.Finished&&($(O)||(C.value=`hidden`,x(T),p()))})))}return r(()=>{s([_],(e,t,n)=>{re(n),w.value=!1},{immediate:!0})}),d(St,O),ee(k(()=>F(C.value,{visible:R.Open,hidden:R.Closed})|c.value)),()=>{let{appear:t,show:r,enter:a,enterFrom:o,enterTo:s,entered:c,leave:l,leaveFrom:u,leaveTo:d,...f}=e,p={ref:h};return z({theirProps:{...f,...v.value&&_.value&&K.isServer?{class:m([n.class,f.class,...A,...j])}:{}},ourProps:p,slot:{},slots:i,attrs:n,features:wt,visible:C.value===`visible`,name:`TransitionChild`})}}}),Et=n({inheritAttrs:!1,props:{as:{type:[Object,String],default:`div`},show:{type:[Boolean],default:null},unmount:{type:[Boolean],default:!0},appear:{type:[Boolean],default:!1},enter:{type:[String],default:``},enterFrom:{type:[String],default:``},enterTo:{type:[String],default:``},entered:{type:[String],default:``},leave:{type:[String],default:``},leaveFrom:{type:[String],default:``},leaveTo:{type:[String],default:``}},emits:{beforeEnter:()=>!0,afterEnter:()=>!0,beforeLeave:()=>!0,afterLeave:()=>!0},setup(e,{emit:t,attrs:n,slots:i}){let a=V(),o=k(()=>e.show===null&&a!==null?(a.value&R.Open)===R.Open:e.show);E(()=>{if(![!0,!1].includes(o.value))throw Error('A is used but it is missing a `:show="true | false"` prop.')});let s=b(o.value?`visible`:`hidden`),c=Ct(()=>{s.value=`hidden`}),l=b(!0),u={show:o,appear:k(()=>e.appear||!l.value)};return r(()=>{E(()=>{l.value=!1,o.value?s.value=`visible`:$(c)||(s.value=`hidden`)})}),d(St,c),d(_t,u),()=>{let r=U(e,[`show`,`appear`,`unmount`,`onBeforeEnter`,`onBeforeLeave`,`onAfterEnter`,`onAfterLeave`]),a={unmount:e.unmount};return z({ourProps:{...a,as:`template`},theirProps:{},slot:{},slots:{...i,default:()=>[S(Tt,{onBeforeEnter:()=>t(`beforeEnter`),onAfterEnter:()=>t(`afterEnter`),onBeforeLeave:()=>t(`beforeLeave`),onAfterLeave:()=>t(`afterLeave`),...n,...a,...r},i.default)]},attrs:{},features:wt,visible:s.value===`visible`,name:`Transition`})}}}),Dt=[`active`,`checked`,`hint`],Ot={key:0},kt=n({__name:`InputComboboxOption`,props:{option:{}},setup(n){return(r,i)=>(c(),_(C(dt),{value:n.option,as:`template`},{default:o(({active:i,selected:a})=>[t(r.$slots,`option`,{option:n.option,active:i,selected:a},()=>[M(`craft-option`,{active:i,checked:a,hint:n.option.data?.hint},[n.option.label.startsWith(`$`)||n.option.label.startsWith(`@`)?(c(),f(`code`,Ot,e(n.option.label),1)):(c(),f(y,{key:1},[A(e(n.option.label),1)],64))],8,Dt)])]),_:3},8,[`value`]))}}),At={key:1},jt={class:`group-label`},Mt=O(n({__name:`InputCombobox`,props:{label:{},options:{default:()=>[]},modelValue:{default:``},requireOptionMatch:{type:Boolean,default:!1},transformModelValue:{type:Function,default:e=>e?e.value:``},class:{type:[Boolean,null,String,Object,Array]},placeholder:{},disabled:{type:Boolean}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,a=t,s=k({get(){let e=null;return a.options.forEach(t=>{t.type===`optgroup`?t.options.forEach(t=>{t.value===a.modelValue&&(e=t)}):t.value===a.modelValue&&(e=t)}),!e&&!a.requireOptionMatch&&(e={label:a.modelValue,value:a.modelValue}),e},set(e){r(`update:modelValue`,a.transformModelValue(e))}}),l=i(`reference`),d=b(a.modelValue??``),h=k(()=>l.value?.getBoundingClientRect()||new DOMRect);function g(e,t){let n=C(e).toLowerCase(),r=C(t);return r.label.toLowerCase().includes(n)||r.value.toLowerCase().includes(n)||(r.data?.keywords?.toLowerCase().includes(n)??!1)}function v(e,t){return C(t).map(t=>{if(t.type===`optgroup`){let n=t.options.filter(t=>g(e,t));return n.length>0?{...t,options:n}:null}return g(e,t)?t:null}).filter(e=>e!==null)}let x=k(()=>d.value===``?a.options:v(d,a.options));function S(e){return e?e.label:``}let w=k(()=>[``,`@`,`$`].includes(d.value)?null:{value:d.value,label:d.value});return(n,r)=>(c(),f(`div`,{class:`relative`,ref_key:`reference`,ref:l},[p(C(st),{modelValue:s.value,"onUpdate:modelValue":r[2]||=e=>s.value=e,disabled:a.disabled},{default:o(()=>[p(C(lt),{onChange:r[0]||=e=>d.value=e.target.value,class:m([`input`,a.class]),displayValue:S,placeholder:t.placeholder},null,8,[`class`,`placeholder`]),p(C(ct),{class:`absolute inset-y-1 right-1 flex items-center`,type:`button`,as:`craft-button`,appearance:`plain`,size:`small`,icon:``,"aria-label":t.label},{default:o(()=>[...r[3]||=[M(`craft-icon`,{name:`chevron-down`,style:{"font-size":`0.8em`}},null,-1)]]),_:1},8,[`aria-label`]),p(C(Et),{leave:`transition ease-in duration-100`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,onAfterLeave:r[1]||=e=>d.value=``},{default:o(()=>[p(C(ut),{class:`options`,style:u({position:`fixed`,insetInlineStart:`${h.value.left}px`,width:`${h.value.width}px`,insetBlockStart:`${h.value.bottom}px`})},{default:o(()=>[!t.requireOptionMatch&&w.value?(c(),_(kt,{key:0,option:w.value},null,8,[`option`])):x.value.length===0&&d.value!==``?(c(),f(`div`,At,` Nothing found. `)):j(``,!0),(c(!0),f(y,null,N(x.value,(t,n)=>(c(),f(y,{key:n},[t.type===`optgroup`?(c(),f(y,{key:0},[M(`div`,jt,e(t.label),1),(c(!0),f(y,null,N(t.options,(e,t)=>(c(),_(kt,{key:t,option:e},null,8,[`option`]))),128))],64)):(c(),_(kt,{key:1,option:t},null,8,[`option`]))],64))),128))]),_:1},8,[`style`])]),_:1})]),_:1},8,[`modelValue`,`disabled`])],512))}}),[[`__scopeId`,`data-v-b00ef27e`]]);export{Mt as t}; \ No newline at end of file diff --git a/resources/build/Install.js b/resources/build/Install.js index a68c2b5962c..89718084680 100644 --- a/resources/build/Install.js +++ b/resources/build/Install.js @@ -1 +1 @@ -import{$ as e,B as t,E as n,F as r,G as i,J as a,K as o,L as s,M as c,N as l,S as u,T as d,U as f,X as p,a as ee,b as m,c as h,d as te,h as g,it as _,l as v,lt as y,m as b,q as x,r as S,rt as C,t as w,v as T,w as E,x as D,y as O,z as k}from"./_plugin-vue_export-helper.js";import"./lit.js";import{r as A}from"./nav-item-9g3ebwBJ.js";import{t as j}from"./Select.js";import{t as M}from"./Pane.js";import{i as N}from"./dist.js";import{i as P}from"./useFetch.js";import{n as F}from"./wayfinder.js";import{t as I}from"./Modal.js";import{t as L}from"./CraftInput.js";import{t as ne}from"./CraftCombobox.js";var re=``+new URL(`assets/installer-bg.png`,import.meta.url).href,R=e=>{o(i(e),async e=>{e?.tagName.includes(`CRAFT-`)&&(await customElements.whenDefined(e.tagName.toLowerCase()),await e?.updateComplete),e?.focus()})},z=[`.modelValue`,`has-feedbck-for`],B={slot:`feedback`},V={key:0,class:`error-list`},H=n({name:`CraftInputPassword`,__name:`CraftInputPassword`,props:c({error:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=f(n,`modelValue`);return(i,a)=>(s(),u(`craft-input-password`,l(i.$attrs,{".modelValue":r.value,onModelValueChanged:a[0]||=e=>r.value=e.target?.modelValue,"has-feedbck-for":n.error?`error`:``}),[t(i.$slots,`default`),O(`div`,B,[n.error?(s(),u(`ul`,V,[O(`li`,null,e(n.error),1)])):D(``,!0)])],48,z))}}),U=n({__name:`AccountFields`,props:{modelValue:{default:()=>({email:``,username:``,password:``})},errors:{default:()=>({email:``,username:``,password:``})}},emits:[`success`,`click:back`,`update:modelValue`],setup(e,{emit:t}){let n=t,r=e,i=v(),a=T(()=>!i.props.useEmailAsUsername),o=T({get(){return console.log(r.modelValue),r.modelValue},set(e){console.log(`value`,e),n(`update:modelValue`,e)}});return R(`username-input`),(t,n)=>(s(),u(g,null,[a.value?(s(),m(L,{key:0,label:y(A)(`Username`),id:`account-username`,name:`username`,modelValue:o.value.username,"onUpdate:modelValue":n[0]||=e=>o.value.username=e,error:e.errors?.username,maxlength:`255`,required:``,autofocus:``},null,8,[`label`,`modelValue`,`error`])):D(``,!0),d(L,{label:y(A)(`Email`),id:`account-email`,name:`email`,modelValue:o.value.email,"onUpdate:modelValue":n[1]||=e=>o.value.email=e,maxlength:`255`,autocomplete:`email`,error:e.errors?.email,required:``,type:`email`},null,8,[`label`,`modelValue`,`error`]),d(H,{label:y(A)(`Password`),id:`account-password`,name:`password`,modelValue:o.value.password,"onUpdate:modelValue":n[2]||=e=>o.value.password=e,error:e.errors?.password,required:``,autocomplete:`new-password`},null,8,[`label`,`modelValue`,`error`])],64))}}),W={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},G={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},K=n({__name:`SiteFields`,props:{modelValue:{default:()=>({})},localeOptions:{default:()=>[]},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,o=v(),c=T({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});return R(`site-name`),(n,r)=>(s(),u(g,null,[d(L,{name:`name`,label:y(A)(`System Name`),id:`site-name`,modelValue:c.value.name,"onUpdate:modelValue":r[0]||=e=>c.value.name=e,maxlength:`255`,ref:`site-name`,error:t.errors?.name},null,8,[`label`,`modelValue`,`error`]),d(ne,{modelValue:c.value.baseUrl,"onUpdate:modelValue":r[1]||=e=>c.value.baseUrl=e,label:y(A)(`Base URL`),"help-text":y(A)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:t.errors?.baseUrl,options:y(o).props.baseUrlSuggestions},{after:a(()=>[O(`craft-callout`,W,[E(e(y(A)(`This can begin with an environment variable or alias.`))+` `,1),O(`a`,G,e(y(A)(`Learn more`)),1)])]),_:1},8,[`modelValue`,`label`,`help-text`,`error`,`options`]),d(j,{modelValue:c.value.language,"onUpdate:modelValue":r[2]||=e=>c.value.language=e,options:t.localeOptions,label:y(A)(`Language`),id:`site-language`,name:`language`},{"option-label":a(({option:t})=>[E(e(t.value)+` (`+e(t.label)+`) `,1)]),_:1},8,[`modelValue`,`options`,`label`])],64))}}),q=e=>({url:q.url(e),method:`post`});q.definition={methods:[`post`],url:`/admin/actions/install/validate-db`},q.url=e=>q.definition.url+F(e),q.post=e=>({url:q.url(e),method:`post`});var J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/install/validate-account`},J.url=e=>J.definition.url+F(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/install/validate-site`},Y.url=e=>Y.definition.url+F(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/install/install`},X.url=e=>X.definition.url+F(e),X.post=e=>({url:X.url(e),method:`post`});var Z=e=>({url:Z.url(e),method:`get`});Z.definition={methods:[`get`,`head`],url:`/admin/install`},Z.url=e=>Z.definition.url+F(e),Z.get=e=>({url:Z.url(e),method:`get`}),Z.head=e=>({url:Z.url(e),method:`head`});var ie=()=>{let e=_({start:{},license:{id:`license`,label:`License`},account:{id:`account`,label:`Account`,action:J().url,heading:A(`Create your account`)},db:{id:`db`,label:`Database`,action:q().url,heading:A(`Connect to your database`)},site:{id:`site`,label:`Site`,action:Y().url,heading:A(`Set up your site`),submitLabel:A(`Finish up`)},installing:{label:`Installing`,id:`installing`}}),t=T(()=>Object.keys(e.value).reduce((t,n)=>{let r=e.value[n];return(r.hidden??!1)||(t[n]=r),t},{})),n=T(()=>Object.keys(t.value).reduce((e,n)=>{let r=t.value[n];return(r.label??!1)&&(e[n]=r),e},{})),r=N(t),i=T(()=>r.stepNames.value[r.index.value]);return{...r,possibleSteps:e,currentId:i,dotSteps:n}},ae=``+new URL(`assets/account.png`,import.meta.url).href,oe=``+new URL(`assets/site.png`,import.meta.url).href,se=``+new URL(`assets/db.png`,import.meta.url).href,ce=w(n({__name:`Callout`,props:{variant:{default:`info`},appearance:{default:`default`}},setup(e){return(n,r)=>(s(),u(`div`,{class:p({callout:!0,"callout--danger":e.variant===`danger`,"callout--info":e.variant===`info`,"callout--success":e.variant===`success`,"callout--warning":e.variant===`warning`,"callout--emphasis":e.appearance===`emphasis`,"callout--default":e.appearance===`default`,"callout--outline":e.appearance===`outline`,"callout--plain":e.appearance===`plain`})},[t(n.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-2a01f40b`]]),le={class:`grid grid-cols-5 gap-2`},ue={class:`col-span-2`},de={class:`col-span-2`},fe={key:0,class:`error-list col-span-5`},pe={class:`grid grid-cols-2 gap-2`},me={key:0,class:`error-list col-span-2`},he={class:`grid grid-cols-4 gap-2`},ge={class:`col-span-2`},_e=n({__name:`DbFields`,props:{modelValue:{default:()=>({})},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,o=T({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}}),c=[{value:`mysql`,label:`MySQL`},{value:`pgsql`,label:`PostgreSQL`}];return R(`db-driver`),(n,r)=>(s(),u(g,null,[t.errors&&t.errors[`*`]?(s(),m(ce,{key:0,variant:`danger`},{default:a(()=>[O(`ul`,null,[(s(!0),u(g,null,k(t.errors[`*`],t=>(s(),u(`li`,null,e(t),1))),256))])]),_:1})):D(``,!0),O(`div`,le,[O(`div`,ue,[d(j,{label:y(A)(`Driver`),name:`driver`,id:`db-driver`,modelValue:o.value.driver,"onUpdate:modelValue":r[0]||=e=>o.value.driver=e,ref:`db-driver`,options:c,error:t.errors?.drive},null,8,[`label`,`modelValue`,`error`])]),O(`div`,de,[d(L,{label:y(A)(`Host`),name:`host`,id:`db-host`,modelValue:o.value.host,"onUpdate:modelValue":r[1]||=e=>o.value.host=e,placeholder:`127.0.0.1`,error:t.errors?.host},null,8,[`label`,`modelValue`,`error`])]),O(`div`,null,[d(L,{label:y(A)(`Port`),name:`port`,id:`db-port`,modelValue:o.value.port,"onUpdate:modelValue":r[2]||=e=>o.value.port=e,size:`7`,error:t.errors?.port},null,8,[`label`,`modelValue`,`error`])]),t.errors?.server?(s(),u(`ul`,fe,[O(`li`,null,e(t.errors?.server),1)])):D(``,!0)]),O(`div`,pe,[O(`div`,null,[d(L,{label:y(A)(`Username`),name:`username`,id:`db-username`,modelValue:o.value.username,"onUpdate:modelValue":r[3]||=e=>o.value.username=e,placeholder:`root`,error:t.errors?.username},null,8,[`label`,`modelValue`,`error`])]),O(`div`,null,[d(H,{label:y(A)(`Password`),name:`password`,id:`db-password`,modelValue:o.value.password,"onUpdate:modelValue":r[4]||=e=>o.value.password=e,error:t.errors?.password},null,8,[`label`,`modelValue`,`error`])]),t.errors?.user?(s(),u(`ul`,me,[O(`li`,null,e(t.errors?.user),1)])):D(``,!0)]),O(`div`,he,[O(`div`,ge,[d(L,{label:y(A)(`Database Name`),name:`name`,id:`db-database`,modelValue:o.value.database,"onUpdate:modelValue":r[5]||=e=>o.value.database=e,errors:t.errors?.database},null,8,[`label`,`modelValue`,`errors`])]),O(`div`,null,[d(L,{label:y(A)(`Prefix`),name:`prefix`,id:`db-prefix`,modelValue:o.value.prefix,"onUpdate:modelValue":r[6]||=e=>o.value.prefix=e,maxlength:`5`,size:`7`,error:t.errors?.prefix},null,8,[`label`,`modelValue`,`error`])])])],64))}}),ve={key:0,class:`content`},ye={key:1,class:`content`},be={key:2,class:`content`},xe={class:`text-left border border-red-500 rounded p-4 text-red-800 bg-red-50 font-mono text-xs`},Se=w(n({__name:`InstallingScreen`,props:{data:{}},setup(t){let{props:n}=v(),i=t,{execute:o,error:c,isSuccess:l,isLoading:d,isError:f}=P(`/admin/actions/install/install`,{onSuccess:e=>{setTimeout(()=>{window.location.href=n.postCpLoginRedirect},1e3)}});return r(async()=>{await o(i.data)}),(t,n)=>(s(),m(M,{class:`max-w-[80ch] mx-auto`},{default:a(()=>[y(d)?(s(),u(`div`,ve,[O(`h2`,null,e(y(A)(`Installing Craft CMS…`)),1),n[0]||=O(`craft-spinner`,null,null,-1)])):y(l)?(s(),u(`div`,ye,[O(`h2`,null,e(y(A)(`Craft is installed! 🎉`)),1),n[1]||=O(`div`,{class:`flex justify-center items-center`},[O(`craft-icon`,{name:`circle-check`,variant:`regular`,style:{color:`var(--c-color-success-fill-loud)`,"font-size":`2.5rem`}})],-1)])):D(``,!0),y(f)?(s(),u(`div`,be,[O(`h2`,null,e(y(A)(`Install failed 😞`)),1),O(`div`,xe,e(y(c).message),1)])):D(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-900f8a00`]]),Ce={class:`grid md:grid-cols-2 gap-4 items-center`},we={class:`aspect-[352/455] w-1/2 md:w-3/4 mx-auto`},Te=[`src`],Ee={class:`mb-4`},De={class:`grid gap-3 md:pr-6`},Q=n({__name:`StepScreen`,props:{illustrationSrc:{default:``},heading:{default:``}},setup(n){return(r,i)=>(s(),u(`div`,Ce,[O(`div`,we,[O(`img`,{loading:`lazy`,src:n.illustrationSrc,alt:``,width:`368`},null,8,Te)]),O(`div`,null,[O(`h2`,Ee,e(n.heading),1),O(`div`,De,[t(r.$slots,`default`)])])]))}}),$={class:`install`},Oe=[`innerHTML`],ke={class:`flex justify-center w-full`},Ae={key:2},je={class:`grid grid-cols-3 items-center gap-2 w-full`},Me={class:`flex gap-2 justify-center`},Ne={class:`sr-only`},Pe=[`loading`],Fe=w(n({__name:`Install`,props:{dbConfig:{},localeOptions:{},licenseHtml:{},defaultSystemName:{},defaultSiteUrl:{},defaultSiteLanguage:{},showDbScreen:{type:Boolean}},setup(t){te(e=>({v50826d02:n.value}));let n=T(()=>`url(${re})`),r=t,{dotSteps:i,current:o,currentId:c,goTo:l,goToNext:f,goToPrevious:_,isCurrent:v,possibleSteps:w}=ie();x(()=>{w.value.db.hidden=!r.showDbScreen});function j(){l(`license`)}let N=C({account:{},db:{},site:{}}),P=h({account:{username:``,email:``,password:``},db:{driver:r.dbConfig.driver,host:r.dbConfig.host,port:r.dbConfig.port,database:r.dbConfig.database,username:r.dbConfig.username,password:r.dbConfig.password,prefix:r.dbConfig.prefix},site:{name:r.defaultSystemName,baseUrl:r.defaultSiteUrl,language:r.defaultSiteLanguage}}),F=T(()=>!v(`start`));function L(e){if(P.processing)return;N[c.value]={};let t=e.currentTarget;P.transform(e=>e[c.value]).post(t.action,{onSuccess:()=>{f()},onError:e=>{N[c.value]=e}})}return(n,r)=>(s(),u(g,null,[d(y(ee),{title:y(A)(`Install Craft CMS`)},null,8,[`title`]),O(`div`,$,[y(v)(`start`)?(s(),u(`craft-button`,{key:0,type:`button`,onClick:j,variant:`primary`,class:`begin-button`},[E(e(y(A)(`Install Craft CMS`))+` `,1),r[6]||=O(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)])):D(``,!0),d(I,{"is-active":F.value,overlay:!1,width:`2xl`},{default:a(()=>[y(v)(`license`)?(s(),m(M,{key:0,class:`max-w-[80ch] mx-auto`},{actions:a(()=>[O(`div`,ke,[O(`craft-button`,{type:`button`,variant:`primary`,onClick:r[0]||=e=>y(l)(`account`)},e(y(A)(`Got it`)),1)])]),default:a(()=>[d(y(S),{data:`licenseHtml`},{fallback:a(()=>[...r[7]||=[O(`div`,{class:`flex justify-center`},[O(`craft-spinner`)],-1)]]),default:a(()=>[O(`div`,{class:`license`,innerHTML:t.licenseHtml},null,8,Oe)]),_:1})]),_:1})):y(v)(`installing`)?(s(),m(Se,{key:1,data:y(P),onSuccess:r[1]||=e=>y(f)()},null,8,[`data`])):(s(),u(`div`,Ae,[d(M,{as:`form`,action:y(o).action,onSubmit:b(L,[`prevent`])},{"footer-content":a(()=>[O(`div`,je,[O(`craft-button`,{type:`button`,onClick:r[5]||=(...e)=>y(_)&&y(_)(...e),appearance:`plain`,class:`justify-self-start`},[E(e(y(A)(`Back`))+` `,1),r[9]||=O(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1)]),O(`ul`,Me,[(s(!0),u(g,null,k(y(i),(t,n)=>(s(),u(`li`,{key:n},[O(`span`,{class:p([`dot`,{"dot--active":y(v)(n)}])},[O(`span`,Ne,e(t.label),1)],2)]))),128))]),O(`craft-button`,{class:`justify-self-end`,type:`submit`,variant:`primary`,loading:y(P).processing},[E(e(y(o).submitLabel??y(A)(`Next`))+` `,1),r[10]||=O(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)],8,Pe)])]),default:a(()=>[y(v)(`account`)?(s(),m(Q,{key:0,"illustration-src":y(ae),heading:y(o).heading,class:`screen`},{default:a(()=>[y(v)(`account`)?(s(),m(U,{key:0,modelValue:y(P).account,"onUpdate:modelValue":r[2]||=e=>y(P).account=e,errors:N.account},null,8,[`modelValue`,`errors`])):D(``,!0)]),_:1},8,[`illustration-src`,`heading`])):D(``,!0),y(v)(`db`)?(s(),m(Q,{key:1,"illustration-src":y(se),heading:y(o).heading,class:`screen`},{default:a(()=>[d(_e,{modelValue:y(P).db,"onUpdate:modelValue":r[3]||=e=>y(P).db=e,errors:N.db},null,8,[`modelValue`,`errors`])]),_:1},8,[`illustration-src`,`heading`])):D(``,!0),y(v)(`site`)?(s(),m(Q,{key:2,"illustration-src":y(oe),heading:y(o).heading,class:`screen`},{default:a(()=>[d(y(S),{data:`localeOptions`},{fallback:a(()=>[...r[8]||=[O(`craft-spinner`,null,null,-1)]]),default:a(()=>[d(K,{modelValue:y(P).site,"onUpdate:modelValue":r[4]||=e=>y(P).site=e,localeOptions:t.localeOptions,errors:N.site},null,8,[`modelValue`,`localeOptions`,`errors`])]),_:1})]),_:1},8,[`illustration-src`,`heading`])):D(``,!0)]),_:1},8,[`action`])]))]),_:1},8,[`is-active`])])],64))}}),[[`__scopeId`,`data-v-da5490c7`]]);export{Fe as default}; \ No newline at end of file +import{$ as e,B as t,E as n,F as r,G as i,J as a,K as o,L as s,M as c,N as l,S as u,T as d,U as f,X as p,a as ee,b as m,c as h,d as te,h as g,it as _,l as v,lt as y,m as b,q as x,r as S,rt as C,t as w,v as T,w as E,x as D,y as O,z as k}from"./_plugin-vue_export-helper.js";import"./lit.js";import{r as A}from"./nav-item-9g3ebwBJ.js";import{t as j}from"./Select.js";import{t as M}from"./Pane.js";import{i as N,o as P}from"./dist.js";import{i as F}from"./useFetch.js";import{t as I}from"./Modal.js";import{t as L}from"./CraftInput.js";import{t as ne}from"./CraftCombobox.js";var re=``+new URL(`assets/installer-bg.png`,import.meta.url).href,R=e=>{o(i(e),async e=>{e?.tagName.includes(`CRAFT-`)&&(await customElements.whenDefined(e.tagName.toLowerCase()),await e?.updateComplete),e?.focus()})},z=[`.modelValue`,`has-feedbck-for`],B={slot:`feedback`},V={key:0,class:`error-list`},H=n({name:`CraftInputPassword`,__name:`CraftInputPassword`,props:c({error:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=f(n,`modelValue`);return(i,a)=>(s(),u(`craft-input-password`,l(i.$attrs,{".modelValue":r.value,onModelValueChanged:a[0]||=e=>r.value=e.target?.modelValue,"has-feedbck-for":n.error?`error`:``}),[t(i.$slots,`default`),O(`div`,B,[n.error?(s(),u(`ul`,V,[O(`li`,null,e(n.error),1)])):D(``,!0)])],48,z))}}),U=n({__name:`AccountFields`,props:{modelValue:{default:()=>({email:``,username:``,password:``})},errors:{default:()=>({email:``,username:``,password:``})}},emits:[`success`,`click:back`,`update:modelValue`],setup(e,{emit:t}){let n=t,r=e,i=v(),a=T(()=>!i.props.useEmailAsUsername),o=T({get(){return console.log(r.modelValue),r.modelValue},set(e){console.log(`value`,e),n(`update:modelValue`,e)}});return R(`username-input`),(t,n)=>(s(),u(g,null,[a.value?(s(),m(L,{key:0,label:y(A)(`Username`),id:`account-username`,name:`username`,modelValue:o.value.username,"onUpdate:modelValue":n[0]||=e=>o.value.username=e,error:e.errors?.username,maxlength:`255`,required:``,autofocus:``},null,8,[`label`,`modelValue`,`error`])):D(``,!0),d(L,{label:y(A)(`Email`),id:`account-email`,name:`email`,modelValue:o.value.email,"onUpdate:modelValue":n[1]||=e=>o.value.email=e,maxlength:`255`,autocomplete:`email`,error:e.errors?.email,required:``,type:`email`},null,8,[`label`,`modelValue`,`error`]),d(H,{label:y(A)(`Password`),id:`account-password`,name:`password`,modelValue:o.value.password,"onUpdate:modelValue":n[2]||=e=>o.value.password=e,error:e.errors?.password,required:``,autocomplete:`new-password`},null,8,[`label`,`modelValue`,`error`])],64))}}),W={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},G={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},K=n({__name:`SiteFields`,props:{modelValue:{default:()=>({})},localeOptions:{default:()=>[]},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,o=v(),c=T({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}});return R(`site-name`),(n,r)=>(s(),u(g,null,[d(L,{name:`name`,label:y(A)(`System Name`),id:`site-name`,modelValue:c.value.name,"onUpdate:modelValue":r[0]||=e=>c.value.name=e,maxlength:`255`,ref:`site-name`,error:t.errors?.name},null,8,[`label`,`modelValue`,`error`]),d(ne,{modelValue:c.value.baseUrl,"onUpdate:modelValue":r[1]||=e=>c.value.baseUrl=e,label:y(A)(`Base URL`),"help-text":y(A)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:t.errors?.baseUrl,options:y(o).props.baseUrlSuggestions},{after:a(()=>[O(`craft-callout`,W,[E(e(y(A)(`This can begin with an environment variable or alias.`))+` `,1),O(`a`,G,e(y(A)(`Learn more`)),1)])]),_:1},8,[`modelValue`,`label`,`help-text`,`error`,`options`]),d(j,{modelValue:c.value.language,"onUpdate:modelValue":r[2]||=e=>c.value.language=e,options:t.localeOptions,label:y(A)(`Language`),id:`site-language`,name:`language`},{"option-label":a(({option:t})=>[E(e(t.value)+` (`+e(t.label)+`) `,1)]),_:1},8,[`modelValue`,`options`,`label`])],64))}}),q=e=>({url:q.url(e),method:`post`});q.definition={methods:[`post`],url:`/admin/actions/install/validate-db`},q.url=e=>q.definition.url+P(e),q.post=e=>({url:q.url(e),method:`post`});var J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/install/validate-account`},J.url=e=>J.definition.url+P(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/install/validate-site`},Y.url=e=>Y.definition.url+P(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/install/install`},X.url=e=>X.definition.url+P(e),X.post=e=>({url:X.url(e),method:`post`});var Z=e=>({url:Z.url(e),method:`get`});Z.definition={methods:[`get`,`head`],url:`/admin/install`},Z.url=e=>Z.definition.url+P(e),Z.get=e=>({url:Z.url(e),method:`get`}),Z.head=e=>({url:Z.url(e),method:`head`});var ie=()=>{let e=_({start:{},license:{id:`license`,label:`License`},account:{id:`account`,label:`Account`,action:J().url,heading:A(`Create your account`)},db:{id:`db`,label:`Database`,action:q().url,heading:A(`Connect to your database`)},site:{id:`site`,label:`Site`,action:Y().url,heading:A(`Set up your site`),submitLabel:A(`Finish up`)},installing:{label:`Installing`,id:`installing`}}),t=T(()=>Object.keys(e.value).reduce((t,n)=>{let r=e.value[n];return(r.hidden??!1)||(t[n]=r),t},{})),n=T(()=>Object.keys(t.value).reduce((e,n)=>{let r=t.value[n];return(r.label??!1)&&(e[n]=r),e},{})),r=N(t),i=T(()=>r.stepNames.value[r.index.value]);return{...r,possibleSteps:e,currentId:i,dotSteps:n}},ae=``+new URL(`assets/account.png`,import.meta.url).href,oe=``+new URL(`assets/site.png`,import.meta.url).href,se=``+new URL(`assets/db.png`,import.meta.url).href,ce=w(n({__name:`Callout`,props:{variant:{default:`info`},appearance:{default:`default`}},setup(e){return(n,r)=>(s(),u(`div`,{class:p({callout:!0,"callout--danger":e.variant===`danger`,"callout--info":e.variant===`info`,"callout--success":e.variant===`success`,"callout--warning":e.variant===`warning`,"callout--emphasis":e.appearance===`emphasis`,"callout--default":e.appearance===`default`,"callout--outline":e.appearance===`outline`,"callout--plain":e.appearance===`plain`})},[t(n.$slots,`default`,{},void 0,!0)],2))}}),[[`__scopeId`,`data-v-2a01f40b`]]),le={class:`grid grid-cols-5 gap-2`},ue={class:`col-span-2`},de={class:`col-span-2`},fe={key:0,class:`error-list col-span-5`},pe={class:`grid grid-cols-2 gap-2`},me={key:0,class:`error-list col-span-2`},he={class:`grid grid-cols-4 gap-2`},ge={class:`col-span-2`},_e=n({__name:`DbFields`,props:{modelValue:{default:()=>({})},errors:{default:()=>({})}},emits:[`update:modelValue`],setup(t,{emit:n}){let r=n,i=t,o=T({get(){return i.modelValue},set(e){r(`update:modelValue`,e)}}),c=[{value:`mysql`,label:`MySQL`},{value:`pgsql`,label:`PostgreSQL`}];return R(`db-driver`),(n,r)=>(s(),u(g,null,[t.errors&&t.errors[`*`]?(s(),m(ce,{key:0,variant:`danger`},{default:a(()=>[O(`ul`,null,[(s(!0),u(g,null,k(t.errors[`*`],t=>(s(),u(`li`,null,e(t),1))),256))])]),_:1})):D(``,!0),O(`div`,le,[O(`div`,ue,[d(j,{label:y(A)(`Driver`),name:`driver`,id:`db-driver`,modelValue:o.value.driver,"onUpdate:modelValue":r[0]||=e=>o.value.driver=e,ref:`db-driver`,options:c,error:t.errors?.drive},null,8,[`label`,`modelValue`,`error`])]),O(`div`,de,[d(L,{label:y(A)(`Host`),name:`host`,id:`db-host`,modelValue:o.value.host,"onUpdate:modelValue":r[1]||=e=>o.value.host=e,placeholder:`127.0.0.1`,error:t.errors?.host},null,8,[`label`,`modelValue`,`error`])]),O(`div`,null,[d(L,{label:y(A)(`Port`),name:`port`,id:`db-port`,modelValue:o.value.port,"onUpdate:modelValue":r[2]||=e=>o.value.port=e,size:`7`,error:t.errors?.port},null,8,[`label`,`modelValue`,`error`])]),t.errors?.server?(s(),u(`ul`,fe,[O(`li`,null,e(t.errors?.server),1)])):D(``,!0)]),O(`div`,pe,[O(`div`,null,[d(L,{label:y(A)(`Username`),name:`username`,id:`db-username`,modelValue:o.value.username,"onUpdate:modelValue":r[3]||=e=>o.value.username=e,placeholder:`root`,error:t.errors?.username},null,8,[`label`,`modelValue`,`error`])]),O(`div`,null,[d(H,{label:y(A)(`Password`),name:`password`,id:`db-password`,modelValue:o.value.password,"onUpdate:modelValue":r[4]||=e=>o.value.password=e,error:t.errors?.password},null,8,[`label`,`modelValue`,`error`])]),t.errors?.user?(s(),u(`ul`,me,[O(`li`,null,e(t.errors?.user),1)])):D(``,!0)]),O(`div`,he,[O(`div`,ge,[d(L,{label:y(A)(`Database Name`),name:`name`,id:`db-database`,modelValue:o.value.database,"onUpdate:modelValue":r[5]||=e=>o.value.database=e,errors:t.errors?.database},null,8,[`label`,`modelValue`,`errors`])]),O(`div`,null,[d(L,{label:y(A)(`Prefix`),name:`prefix`,id:`db-prefix`,modelValue:o.value.prefix,"onUpdate:modelValue":r[6]||=e=>o.value.prefix=e,maxlength:`5`,size:`7`,error:t.errors?.prefix},null,8,[`label`,`modelValue`,`error`])])])],64))}}),ve={key:0,class:`content`},ye={key:1,class:`content`},be={key:2,class:`content`},xe={class:`text-left border border-red-500 rounded p-4 text-red-800 bg-red-50 font-mono text-xs`},Se=w(n({__name:`InstallingScreen`,props:{data:{}},setup(t){let{props:n}=v(),i=t,{execute:o,error:c,isSuccess:l,isLoading:d,isError:f}=F(`/admin/actions/install/install`,{onSuccess:e=>{setTimeout(()=>{window.location.href=n.postCpLoginRedirect},1e3)}});return r(async()=>{await o(i.data)}),(t,n)=>(s(),m(M,{class:`max-w-[80ch] mx-auto`},{default:a(()=>[y(d)?(s(),u(`div`,ve,[O(`h2`,null,e(y(A)(`Installing Craft CMS…`)),1),n[0]||=O(`craft-spinner`,null,null,-1)])):y(l)?(s(),u(`div`,ye,[O(`h2`,null,e(y(A)(`Craft is installed! 🎉`)),1),n[1]||=O(`div`,{class:`flex justify-center items-center`},[O(`craft-icon`,{name:`circle-check`,variant:`regular`,style:{color:`var(--c-color-success-fill-loud)`,"font-size":`2.5rem`}})],-1)])):D(``,!0),y(f)?(s(),u(`div`,be,[O(`h2`,null,e(y(A)(`Install failed 😞`)),1),O(`div`,xe,e(y(c).message),1)])):D(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-900f8a00`]]),Ce={class:`grid md:grid-cols-2 gap-4 items-center`},we={class:`aspect-[352/455] w-1/2 md:w-3/4 mx-auto`},Te=[`src`],Ee={class:`mb-4`},De={class:`grid gap-3 md:pr-6`},Q=n({__name:`StepScreen`,props:{illustrationSrc:{default:``},heading:{default:``}},setup(n){return(r,i)=>(s(),u(`div`,Ce,[O(`div`,we,[O(`img`,{loading:`lazy`,src:n.illustrationSrc,alt:``,width:`368`},null,8,Te)]),O(`div`,null,[O(`h2`,Ee,e(n.heading),1),O(`div`,De,[t(r.$slots,`default`)])])]))}}),$={class:`install`},Oe=[`innerHTML`],ke={class:`flex justify-center w-full`},Ae={key:2},je={class:`grid grid-cols-3 items-center gap-2 w-full`},Me={class:`flex gap-2 justify-center`},Ne={class:`sr-only`},Pe=[`loading`],Fe=w(n({__name:`Install`,props:{dbConfig:{},localeOptions:{},licenseHtml:{},defaultSystemName:{},defaultSiteUrl:{},defaultSiteLanguage:{},showDbScreen:{type:Boolean}},setup(t){te(e=>({v50826d02:n.value}));let n=T(()=>`url(${re})`),r=t,{dotSteps:i,current:o,currentId:c,goTo:l,goToNext:f,goToPrevious:_,isCurrent:v,possibleSteps:w}=ie();x(()=>{w.value.db.hidden=!r.showDbScreen});function j(){l(`license`)}let N=C({account:{},db:{},site:{}}),P=h({account:{username:``,email:``,password:``},db:{driver:r.dbConfig.driver,host:r.dbConfig.host,port:r.dbConfig.port,database:r.dbConfig.database,username:r.dbConfig.username,password:r.dbConfig.password,prefix:r.dbConfig.prefix},site:{name:r.defaultSystemName,baseUrl:r.defaultSiteUrl,language:r.defaultSiteLanguage}}),F=T(()=>!v(`start`));function L(e){if(P.processing)return;N[c.value]={};let t=e.currentTarget;P.transform(e=>e[c.value]).post(t.action,{onSuccess:()=>{f()},onError:e=>{N[c.value]=e}})}return(n,r)=>(s(),u(g,null,[d(y(ee),{title:y(A)(`Install Craft CMS`)},null,8,[`title`]),O(`div`,$,[y(v)(`start`)?(s(),u(`craft-button`,{key:0,type:`button`,onClick:j,variant:`primary`,class:`begin-button`},[E(e(y(A)(`Install Craft CMS`))+` `,1),r[6]||=O(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)])):D(``,!0),d(I,{"is-active":F.value,overlay:!1,width:`2xl`},{default:a(()=>[y(v)(`license`)?(s(),m(M,{key:0,class:`max-w-[80ch] mx-auto`},{actions:a(()=>[O(`div`,ke,[O(`craft-button`,{type:`button`,variant:`primary`,onClick:r[0]||=e=>y(l)(`account`)},e(y(A)(`Got it`)),1)])]),default:a(()=>[d(y(S),{data:`licenseHtml`},{fallback:a(()=>[...r[7]||=[O(`div`,{class:`flex justify-center`},[O(`craft-spinner`)],-1)]]),default:a(()=>[O(`div`,{class:`license`,innerHTML:t.licenseHtml},null,8,Oe)]),_:1})]),_:1})):y(v)(`installing`)?(s(),m(Se,{key:1,data:y(P),onSuccess:r[1]||=e=>y(f)()},null,8,[`data`])):(s(),u(`div`,Ae,[d(M,{as:`form`,action:y(o).action,onSubmit:b(L,[`prevent`])},{"footer-content":a(()=>[O(`div`,je,[O(`craft-button`,{type:`button`,onClick:r[5]||=(...e)=>y(_)&&y(_)(...e),appearance:`plain`,class:`justify-self-start`},[E(e(y(A)(`Back`))+` `,1),r[9]||=O(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1)]),O(`ul`,Me,[(s(!0),u(g,null,k(y(i),(t,n)=>(s(),u(`li`,{key:n},[O(`span`,{class:p([`dot`,{"dot--active":y(v)(n)}])},[O(`span`,Ne,e(t.label),1)],2)]))),128))]),O(`craft-button`,{class:`justify-self-end`,type:`submit`,variant:`primary`,loading:y(P).processing},[E(e(y(o).submitLabel??y(A)(`Next`))+` `,1),r[10]||=O(`craft-icon`,{name:`arrow-right`,slot:`suffix`},null,-1)],8,Pe)])]),default:a(()=>[y(v)(`account`)?(s(),m(Q,{key:0,"illustration-src":y(ae),heading:y(o).heading,class:`screen`},{default:a(()=>[y(v)(`account`)?(s(),m(U,{key:0,modelValue:y(P).account,"onUpdate:modelValue":r[2]||=e=>y(P).account=e,errors:N.account},null,8,[`modelValue`,`errors`])):D(``,!0)]),_:1},8,[`illustration-src`,`heading`])):D(``,!0),y(v)(`db`)?(s(),m(Q,{key:1,"illustration-src":y(se),heading:y(o).heading,class:`screen`},{default:a(()=>[d(_e,{modelValue:y(P).db,"onUpdate:modelValue":r[3]||=e=>y(P).db=e,errors:N.db},null,8,[`modelValue`,`errors`])]),_:1},8,[`illustration-src`,`heading`])):D(``,!0),y(v)(`site`)?(s(),m(Q,{key:2,"illustration-src":y(oe),heading:y(o).heading,class:`screen`},{default:a(()=>[d(y(S),{data:`localeOptions`},{fallback:a(()=>[...r[8]||=[O(`craft-spinner`,null,null,-1)]]),default:a(()=>[d(K,{modelValue:y(P).site,"onUpdate:modelValue":r[4]||=e=>y(P).site=e,localeOptions:t.localeOptions,errors:N.site},null,8,[`modelValue`,`localeOptions`,`errors`])]),_:1})]),_:1},8,[`illustration-src`,`heading`])):D(``,!0)]),_:1},8,[`action`])]))]),_:1},8,[`is-active`])])],64))}}),[[`__scopeId`,`data-v-da5490c7`]]);export{Fe as default}; \ No newline at end of file diff --git a/resources/build/SectionsController.js b/resources/build/SectionsController.js index dada0963810..6d9153010d8 100644 --- a/resources/build/SectionsController.js +++ b/resources/build/SectionsController.js @@ -1 +1 @@ -import{n as e,t}from"./wayfinder.js";var n=e=>({url:n.url(e),method:`get`});n.definition={methods:[`get`,`head`],url:`/admin/actions/sections/table-data`},n.url=t=>n.definition.url+e(t),n.get=e=>({url:n.url(e),method:`get`}),n.head=e=>({url:n.url(e),method:`head`});var r=(e,t)=>({url:r.url(e,t),method:`get`});r.definition={methods:[`get`,`head`],url:`/admin/actions/sections/edit/{section}`},r.url=(n,i)=>{(typeof n==`string`||typeof n==`number`)&&(n={section:n}),typeof n==`object`&&!Array.isArray(n)&&`id`in n&&(n={section:n.id}),Array.isArray(n)&&(n={section:n[0]}),n=t(n);let a={section:typeof n.section==`object`?n.section.id:n.section};return r.definition.url.replace(`{section}`,a.section.toString()).replace(/\/+$/,``)+e(i)},r.get=(e,t)=>({url:r.url(e,t),method:`get`}),r.head=(e,t)=>({url:r.url(e,t),method:`head`});var i=(e,t)=>({url:i.url(e,t),method:`get`});i.definition={methods:[`get`,`head`],url:`/admin/settings/sections/{section}`},i.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={section:n}),typeof n==`object`&&!Array.isArray(n)&&`id`in n&&(n={section:n.id}),Array.isArray(n)&&(n={section:n[0]}),n=t(n);let a={section:typeof n.section==`object`?n.section.id:n.section};return i.definition.url.replace(`{section}`,a.section.toString()).replace(/\/+$/,``)+e(r)},i.get=(e,t)=>({url:i.url(e,t),method:`get`}),i.head=(e,t)=>({url:i.url(e,t),method:`head`});var a={"/admin/actions/sections/edit/{section}":r,"/admin/settings/sections/{section}":i},o=e=>({url:o.url(e),method:`post`});o.definition={methods:[`post`],url:`/admin/actions/sections/save-section`},o.url=t=>o.definition.url+e(t),o.post=e=>({url:o.url(e),method:`post`});var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/admin/actions/sections/delete-section`},s.url=t=>s.definition.url+e(t),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({url:c.url(e),method:`get`});c.definition={methods:[`get`,`head`],url:`/admin/settings/sections`},c.url=t=>c.definition.url+e(t),c.get=e=>({url:c.url(e),method:`get`}),c.head=e=>({url:c.url(e),method:`head`});var l=e=>({url:l.url(e),method:`get`});l.definition={methods:[`get`,`head`],url:`/admin/settings/sections/new`},l.url=t=>l.definition.url+e(t),l.get=e=>({url:l.url(e),method:`get`}),l.head=e=>({url:l.url(e),method:`head`});export{o as a,c as i,s as n,a as r,l as t}; \ No newline at end of file +import{a as e,o as t}from"./dist.js";var n=e=>({url:n.url(e),method:`get`});n.definition={methods:[`get`,`head`],url:`/admin/actions/sections/table-data`},n.url=e=>n.definition.url+t(e),n.get=e=>({url:n.url(e),method:`get`}),n.head=e=>({url:n.url(e),method:`head`});var r=(e,t)=>({url:r.url(e,t),method:`get`});r.definition={methods:[`get`,`head`],url:`/admin/actions/sections/edit/{section}`},r.url=(n,i)=>{(typeof n==`string`||typeof n==`number`)&&(n={section:n}),typeof n==`object`&&!Array.isArray(n)&&`id`in n&&(n={section:n.id}),Array.isArray(n)&&(n={section:n[0]}),n=e(n);let a={section:typeof n.section==`object`?n.section.id:n.section};return r.definition.url.replace(`{section}`,a.section.toString()).replace(/\/+$/,``)+t(i)},r.get=(e,t)=>({url:r.url(e,t),method:`get`}),r.head=(e,t)=>({url:r.url(e,t),method:`head`});var i=(e,t)=>({url:i.url(e,t),method:`get`});i.definition={methods:[`get`,`head`],url:`/admin/settings/sections/{section}`},i.url=(n,r)=>{(typeof n==`string`||typeof n==`number`)&&(n={section:n}),typeof n==`object`&&!Array.isArray(n)&&`id`in n&&(n={section:n.id}),Array.isArray(n)&&(n={section:n[0]}),n=e(n);let a={section:typeof n.section==`object`?n.section.id:n.section};return i.definition.url.replace(`{section}`,a.section.toString()).replace(/\/+$/,``)+t(r)},i.get=(e,t)=>({url:i.url(e,t),method:`get`}),i.head=(e,t)=>({url:i.url(e,t),method:`head`});var a={"/admin/actions/sections/edit/{section}":r,"/admin/settings/sections/{section}":i},o=e=>({url:o.url(e),method:`post`});o.definition={methods:[`post`],url:`/admin/actions/sections/save-section`},o.url=e=>o.definition.url+t(e),o.post=e=>({url:o.url(e),method:`post`});var s=e=>({url:s.url(e),method:`post`});s.definition={methods:[`post`],url:`/admin/actions/sections/delete-section`},s.url=e=>s.definition.url+t(e),s.post=e=>({url:s.url(e),method:`post`});var c=e=>({url:c.url(e),method:`get`});c.definition={methods:[`get`,`head`],url:`/admin/settings/sections`},c.url=e=>c.definition.url+t(e),c.get=e=>({url:c.url(e),method:`get`}),c.head=e=>({url:c.url(e),method:`head`});var l=e=>({url:l.url(e),method:`get`});l.definition={methods:[`get`,`head`],url:`/admin/settings/sections/new`},l.url=e=>l.definition.url+t(e),l.get=e=>({url:l.url(e),method:`get`}),l.head=e=>({url:l.url(e),method:`head`});export{o as a,c as i,s as n,a as r,l as t}; \ No newline at end of file diff --git a/resources/build/SettingsEmailPage.js b/resources/build/SettingsEmailPage.js index ebca1ea9189..105bfc3e876 100644 --- a/resources/build/SettingsEmailPage.js +++ b/resources/build/SettingsEmailPage.js @@ -1 +1 @@ -import{$ as e,E as t,J as n,L as r,S as i,T as a,b as o,h as s,l as c,lt as l,m as u,s as d,v as f,w as p,x as m,y as h,z as ee}from"./_plugin-vue_export-helper.js";import{r as g}from"./nav-item-9g3ebwBJ.js";import{t as _}from"./AdminTable.js";import{t as v}from"./Pane.js";import{n as y}from"./useAnnouncer.js";import{n as b}from"./dist.js";import{n as x}from"./wayfinder.js";import{t as S}from"./Input.js";import{t as C}from"./CraftCombobox.js";import{t as w}from"./AppLayout.js";import{t as T}from"./CalloutReadOnly.js";import{t as E}from"./useEditableTable.js";var te=t({__name:`SiteOverridesTable`,props:{sites:{},modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let i=t,s=e,u=c(),d=f(()=>u.props.envSuggestions);f(()=>u.props.readOnly);let p=f(()=>u.props.templateSuggestions);function m(e){return s.sites.find(t=>t.uid===e)?.name??e}let{table:h}=E({data:()=>s.modelValue,key:`uid`,name:`siteOverrides`,onChange:e=>i(`update:modelValue`,e),columns:({columnHelper:e})=>[e.display({id:`name`,header:g(`Site`),cell:({row:e})=>m(e.original.uid),meta:{cellTag:`th`}}),e.autocomplete(`fromEmail`,{header:g(`System Email Address`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:d.value}),e.autocomplete(`fromName`,{header:g(`Sender Name`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:d.value}),e.autocomplete(`replyToEmail`,{header:g(`Reply-To Address`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:d.value}),e.autocomplete(`template`,{header:g(`HTML Email Template`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:p.value})]});return(e,t)=>(r(),o(v,{padding:0,appearance:`raised`},{default:n(()=>[a(_,{table:l(h),reorderable:!1},null,8,[`table`])]),_:1}))}}),D=e=>({url:D.url(e),method:`get`});D.definition={methods:[`get`,`head`],url:`/admin/settings/email`},D.url=e=>D.definition.url+x(e),D.get=e=>({url:D.url(e),method:`get`}),D.head=e=>({url:D.url(e),method:`head`});var O=e=>({url:O.url(e),method:`post`});O.definition={methods:[`post`],url:`/admin/settings/email`},O.url=e=>O.definition.url+x(e),O.post=e=>({url:O.url(e),method:`post`});var k=e=>({url:k.url(e),method:`post`});k.definition={methods:[`post`],url:`/admin/settings/email/test`},k.url=e=>k.definition.url+x(e),k.post=e=>({url:k.url(e),method:`post`}),Object.assign(D,D),Object.assign(O,O),Object.assign(k,k);var A={key:0,class:`flex gap-1 items-center text-sm`},j={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},M={key:0},N=[`loading`],P={slot:`invoker`,variant:`primary`,type:`button`,icon:``},F=[`label`],I={slot:`content`},L={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},R={class:`grid gap-3 p-5`},z={key:0,variant:`danger`,icon:`triangle-exclamation`},B={slot:`title`,class:`tw:font-bold`},V={class:`p-5`},H={class:`mb-2`},U={class:`text-sm text-neutral-text-quiet mb-4`},W={class:`p-5`},G={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm mt-6`},K={class:`p-5`},q={class:`mb-3`},J={class:`grid gap-3`},Y={key:0,variant:`success`,icon:`circle-check`},X={class:`buttons`},Z=[`loading`],Q=t({__name:`SettingsEmailPage`,props:{readOnly:{type:Boolean},emailConfig:{},mailerOptions:{},envSuggestions:{},templateSuggestions:{},sites:{},defaultToEmail:{},flash:{},errors:{}},setup(t){let c=t,_=f(()=>c.flash),v=f(()=>c.errors),x=f(()=>c.sites.length>1),E={};for(let e of c.sites){let t=c.emailConfig.siteOverrides?.[e.uid]??{};E[e.uid]={fromEmail:t.fromEmail??``,fromName:t.fromName??``,replyToEmail:t.replyToEmail??``,template:t.template??``}}let D=d({fromEmail:c.emailConfig.fromEmail??``,fromName:c.emailConfig.fromName??``,replyToEmail:c.emailConfig.replyToEmail??``,mailer:c.emailConfig.mailer??``,template:c.emailConfig.template??``,siteOverrides:E}),Q=d({to:c.defaultToEmail});b(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),$())});function $(){D.clearErrors().submit(O())}function ne(){Q.clearErrors().submit(k(),{onSuccess:()=>{Q.reset()}})}return(c,d)=>(r(),i(`form`,{onSubmit:u($,[`prevent`])},[a(w,{title:l(g)(`Email Settings`)},{actions:n(()=>[a(y,null,{default:n(()=>[l(D).recentlySuccessful&&_.value?.success?(r(),i(`div`,A,[d[7]||=h(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),p(` `+e(_.value.success),1)])):m(``,!0),l(D).hasErrors?(r(),i(`div`,j,[d[8]||=h(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),p(` `+e(l(g)(`Could not save settings`)),1)])):m(``,!0)]),_:1}),t.readOnly?m(``,!0):(r(),i(`craft-button-group`,M,[h(`craft-button`,{type:`submit`,variant:`primary`,loading:l(D).processing},e(l(g)(`Save`)),9,N),h(`craft-action-menu`,null,[h(`craft-button`,P,[h(`craft-icon`,{name:`chevron-down`,label:l(g)(`More actions`)},null,8,F)]),h(`div`,I,[h(`craft-action-item`,{onClick:$},[p(e(l(g)(`Save and continue editing`))+` `,1),d[9]||=h(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:n(()=>[h(`div`,L,[t.readOnly?(r(),o(T,{key:0})):m(``,!0),h(`div`,R,[l(D).hasErrors?(r(),i(`craft-callout`,z,[h(`div`,B,e(l(g)(`Could not save settings`)),1),h(`ul`,null,[(r(!0),i(s,null,ee(v.value,(t,n)=>(r(),i(`li`,{key:n},e(t),1))),128))])])):m(``,!0),a(C,{label:l(g)(`System Email Address`),"help-text":l(g)(`The email address Craft CMS will use when sending email.`),id:`fromEmail`,name:`fromEmail`,modelValue:l(D).fromEmail,"onUpdate:modelValue":d[0]||=e=>l(D).fromEmail=e,error:l(D).errors?.fromEmail,options:t.envSuggestions,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`options`,`disabled`]),a(C,{label:l(g)(`Sender Name`),"help-text":l(g)(`The “From” name Craft CMS will use when sending email.`),id:`fromName`,name:`fromName`,modelValue:l(D).fromName,"onUpdate:modelValue":d[1]||=e=>l(D).fromName=e,error:l(D).errors?.fromName,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,options:t.envSuggestions,callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`]),a(C,{label:l(g)(`Reply-To Address`),"help-text":l(g)(`The Reply-To email address Craft CMS should use when sending email.`),id:`replyToEmail`,name:`replyToEmail`,modelValue:l(D).replyToEmail,"onUpdate:modelValue":d[2]||=e=>l(D).replyToEmail=e,error:l(D).errors?.replyToEmail,disabled:t.readOnly,"require-option-match":!1,options:t.envSuggestions,"show-all-on-empty":``,callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`]),a(C,{label:l(g)(`HTML Email Template`),"help-text":l(g)(`The template Craft CMS will use for HTML emails. Leave blank to use the default template.`),id:`template`,name:`template`,modelValue:l(D).template,"onUpdate:modelValue":d[3]||=e=>l(D).template=e,error:v.value?.template,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,options:[...t.templateSuggestions,...t.envSuggestions],callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`])]),x.value?(r(),i(s,{key:1},[d[10]||=h(`hr`,null,null,-1),h(`div`,V,[h(`h2`,H,e(l(g)(`Site Overrides`)),1),h(`p`,U,e(l(g)(`Override the default email settings on a per-site basis. Blank values will use the defaults above.`)),1),a(te,{modelValue:l(D).siteOverrides,"onUpdate:modelValue":d[4]||=e=>l(D).siteOverrides=e,sites:t.sites},null,8,[`modelValue`,`sites`])])],64)):m(``,!0),d[11]||=h(`hr`,null,null,-1),h(`div`,W,[a(C,{label:l(g)(`Mailer`),"help-text":l(g)(`How should Craft CMS send the emails?`),id:`mailer`,name:`mailer`,modelValue:l(D).mailer,"onUpdate:modelValue":d[5]||=e=>l(D).mailer=e,error:l(D).errors?.mailer,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,options:[...t.mailerOptions,...t.envSuggestions],callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`])])]),h(`div`,G,[h(`div`,K,[h(`h2`,q,e(l(g)(`Send a test email`)),1),h(`div`,J,[a(S,{label:l(g)(`To`),modelValue:l(Q).to,"onUpdate:modelValue":d[6]||=e=>l(Q).to=e,name:`to`,error:l(Q).errors.to},null,8,[`label`,`modelValue`,`error`]),a(y,null,{default:n(()=>[l(Q).recentlySuccessful&&_.value?.success?(r(),i(`craft-callout`,Y,e(_.value.success),1)):m(``,!0)]),_:1}),h(`div`,X,[h(`craft-button`,{type:`button`,variant:`primary`,loading:l(Q).processing,onClick:ne},e(l(g)(`Test`)),9,Z)])])])])]),_:1},8,[`title`])],32))}});export{Q as default}; \ No newline at end of file +import{$ as e,E as t,J as n,L as r,S as i,T as a,b as o,h as s,l as c,lt as l,m as u,s as d,v as f,w as p,x as m,y as h,z as ee}from"./_plugin-vue_export-helper.js";import{r as g}from"./nav-item-9g3ebwBJ.js";import{t as _}from"./AdminTable.js";import{t as v}from"./Pane.js";import{n as y}from"./useAnnouncer.js";import{n as b,o as x}from"./dist.js";import{t as S}from"./Input.js";import{t as C}from"./CraftCombobox.js";import{t as w}from"./AppLayout.js";import{t as T}from"./CalloutReadOnly.js";import{t as E}from"./useEditableTable.js";var te=t({__name:`SiteOverridesTable`,props:{sites:{},modelValue:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let i=t,s=e,u=c(),d=f(()=>u.props.envSuggestions);f(()=>u.props.readOnly);let p=f(()=>u.props.templateSuggestions);function m(e){return s.sites.find(t=>t.uid===e)?.name??e}let{table:h}=E({data:()=>s.modelValue,key:`uid`,name:`siteOverrides`,onChange:e=>i(`update:modelValue`,e),columns:({columnHelper:e})=>[e.display({id:`name`,header:g(`Site`),cell:({row:e})=>m(e.original.uid),meta:{cellTag:`th`}}),e.autocomplete(`fromEmail`,{header:g(`System Email Address`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:d.value}),e.autocomplete(`fromName`,{header:g(`Sender Name`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:d.value}),e.autocomplete(`replyToEmail`,{header:g(`Reply-To Address`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:d.value}),e.autocomplete(`template`,{header:g(`HTML Email Template`),class:`font-mono text-xs !px-[var(--_cell-spacing-inline)]`,options:p.value})]});return(e,t)=>(r(),o(v,{padding:0,appearance:`raised`},{default:n(()=>[a(_,{table:l(h),reorderable:!1},null,8,[`table`])]),_:1}))}}),D=e=>({url:D.url(e),method:`get`});D.definition={methods:[`get`,`head`],url:`/admin/settings/email`},D.url=e=>D.definition.url+x(e),D.get=e=>({url:D.url(e),method:`get`}),D.head=e=>({url:D.url(e),method:`head`});var O=e=>({url:O.url(e),method:`post`});O.definition={methods:[`post`],url:`/admin/settings/email`},O.url=e=>O.definition.url+x(e),O.post=e=>({url:O.url(e),method:`post`});var k=e=>({url:k.url(e),method:`post`});k.definition={methods:[`post`],url:`/admin/settings/email/test`},k.url=e=>k.definition.url+x(e),k.post=e=>({url:k.url(e),method:`post`}),Object.assign(D,D),Object.assign(O,O),Object.assign(k,k);var A={key:0,class:`flex gap-1 items-center text-sm`},j={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},M={key:0},N=[`loading`],P={slot:`invoker`,variant:`primary`,type:`button`,icon:``},F=[`label`],I={slot:`content`},L={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},R={class:`grid gap-3 p-5`},z={key:0,variant:`danger`,icon:`triangle-exclamation`},B={slot:`title`,class:`tw:font-bold`},V={class:`p-5`},H={class:`mb-2`},U={class:`text-sm text-neutral-text-quiet mb-4`},W={class:`p-5`},G={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm mt-6`},K={class:`p-5`},q={class:`mb-3`},J={class:`grid gap-3`},Y={key:0,variant:`success`,icon:`circle-check`},X={class:`buttons`},Z=[`loading`],Q=t({__name:`SettingsEmailPage`,props:{readOnly:{type:Boolean},emailConfig:{},mailerOptions:{},envSuggestions:{},templateSuggestions:{},sites:{},defaultToEmail:{},flash:{},errors:{}},setup(t){let c=t,_=f(()=>c.flash),v=f(()=>c.errors),x=f(()=>c.sites.length>1),E={};for(let e of c.sites){let t=c.emailConfig.siteOverrides?.[e.uid]??{};E[e.uid]={fromEmail:t.fromEmail??``,fromName:t.fromName??``,replyToEmail:t.replyToEmail??``,template:t.template??``}}let D=d({fromEmail:c.emailConfig.fromEmail??``,fromName:c.emailConfig.fromName??``,replyToEmail:c.emailConfig.replyToEmail??``,mailer:c.emailConfig.mailer??``,template:c.emailConfig.template??``,siteOverrides:E}),Q=d({to:c.defaultToEmail});b(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),$())});function $(){D.clearErrors().submit(O())}function ne(){Q.clearErrors().submit(k(),{onSuccess:()=>{Q.reset()}})}return(c,d)=>(r(),i(`form`,{onSubmit:u($,[`prevent`])},[a(w,{title:l(g)(`Email Settings`)},{actions:n(()=>[a(y,null,{default:n(()=>[l(D).recentlySuccessful&&_.value?.success?(r(),i(`div`,A,[d[7]||=h(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),p(` `+e(_.value.success),1)])):m(``,!0),l(D).hasErrors?(r(),i(`div`,j,[d[8]||=h(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),p(` `+e(l(g)(`Could not save settings`)),1)])):m(``,!0)]),_:1}),t.readOnly?m(``,!0):(r(),i(`craft-button-group`,M,[h(`craft-button`,{type:`submit`,variant:`primary`,loading:l(D).processing},e(l(g)(`Save`)),9,N),h(`craft-action-menu`,null,[h(`craft-button`,P,[h(`craft-icon`,{name:`chevron-down`,label:l(g)(`More actions`)},null,8,F)]),h(`div`,I,[h(`craft-action-item`,{onClick:$},[p(e(l(g)(`Save and continue editing`))+` `,1),d[9]||=h(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:n(()=>[h(`div`,L,[t.readOnly?(r(),o(T,{key:0})):m(``,!0),h(`div`,R,[l(D).hasErrors?(r(),i(`craft-callout`,z,[h(`div`,B,e(l(g)(`Could not save settings`)),1),h(`ul`,null,[(r(!0),i(s,null,ee(v.value,(t,n)=>(r(),i(`li`,{key:n},e(t),1))),128))])])):m(``,!0),a(C,{label:l(g)(`System Email Address`),"help-text":l(g)(`The email address Craft CMS will use when sending email.`),id:`fromEmail`,name:`fromEmail`,modelValue:l(D).fromEmail,"onUpdate:modelValue":d[0]||=e=>l(D).fromEmail=e,error:l(D).errors?.fromEmail,options:t.envSuggestions,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`options`,`disabled`]),a(C,{label:l(g)(`Sender Name`),"help-text":l(g)(`The “From” name Craft CMS will use when sending email.`),id:`fromName`,name:`fromName`,modelValue:l(D).fromName,"onUpdate:modelValue":d[1]||=e=>l(D).fromName=e,error:l(D).errors?.fromName,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,options:t.envSuggestions,callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`]),a(C,{label:l(g)(`Reply-To Address`),"help-text":l(g)(`The Reply-To email address Craft CMS should use when sending email.`),id:`replyToEmail`,name:`replyToEmail`,modelValue:l(D).replyToEmail,"onUpdate:modelValue":d[2]||=e=>l(D).replyToEmail=e,error:l(D).errors?.replyToEmail,disabled:t.readOnly,"require-option-match":!1,options:t.envSuggestions,"show-all-on-empty":``,callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`]),a(C,{label:l(g)(`HTML Email Template`),"help-text":l(g)(`The template Craft CMS will use for HTML emails. Leave blank to use the default template.`),id:`template`,name:`template`,modelValue:l(D).template,"onUpdate:modelValue":d[3]||=e=>l(D).template=e,error:v.value?.template,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,options:[...t.templateSuggestions,...t.envSuggestions],callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`])]),x.value?(r(),i(s,{key:1},[d[10]||=h(`hr`,null,null,-1),h(`div`,V,[h(`h2`,H,e(l(g)(`Site Overrides`)),1),h(`p`,U,e(l(g)(`Override the default email settings on a per-site basis. Blank values will use the defaults above.`)),1),a(te,{modelValue:l(D).siteOverrides,"onUpdate:modelValue":d[4]||=e=>l(D).siteOverrides=e,sites:t.sites},null,8,[`modelValue`,`sites`])])],64)):m(``,!0),d[11]||=h(`hr`,null,null,-1),h(`div`,W,[a(C,{label:l(g)(`Mailer`),"help-text":l(g)(`How should Craft CMS send the emails?`),id:`mailer`,name:`mailer`,modelValue:l(D).mailer,"onUpdate:modelValue":d[5]||=e=>l(D).mailer=e,error:l(D).errors?.mailer,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``,options:[...t.mailerOptions,...t.envSuggestions],callouts:[`envVars`]},null,8,[`label`,`help-text`,`modelValue`,`error`,`disabled`,`options`])])]),h(`div`,G,[h(`div`,K,[h(`h2`,q,e(l(g)(`Send a test email`)),1),h(`div`,J,[a(S,{label:l(g)(`To`),modelValue:l(Q).to,"onUpdate:modelValue":d[6]||=e=>l(Q).to=e,name:`to`,error:l(Q).errors.to},null,8,[`label`,`modelValue`,`error`]),a(y,null,{default:n(()=>[l(Q).recentlySuccessful&&_.value?.success?(r(),i(`craft-callout`,Y,e(_.value.success),1)):m(``,!0)]),_:1}),h(`div`,X,[h(`craft-button`,{type:`button`,variant:`primary`,loading:l(Q).processing,onClick:ne},e(l(g)(`Test`)),9,Z)])])])])]),_:1},8,[`title`])],32))}});export{Q as default}; \ No newline at end of file diff --git a/resources/build/SettingsGeneralPage.js b/resources/build/SettingsGeneralPage.js index 864347ad91f..9788a1230d1 100644 --- a/resources/build/SettingsGeneralPage.js +++ b/resources/build/SettingsGeneralPage.js @@ -1 +1 @@ -import{$ as e,E as t,J as n,L as r,S as i,T as a,Y as o,b as ee,h as s,lt as c,m as l,p as u,s as d,t as f,v as p,w as m,x as h,y as g,z as _}from"./_plugin-vue_export-helper.js";import{r as v}from"./nav-item-9g3ebwBJ.js";import{n as te}from"./useAnnouncer.js";import{n as ne}from"./dist.js";import{n as y}from"./wayfinder.js";import{t as re}from"./AppLayout.js";import{t as b}from"./CalloutReadOnly.js";var x=e=>({url:x.url(e),method:`get`});x.definition={methods:[`get`,`head`],url:`/admin/settings/general`},x.url=e=>x.definition.url+y(e),x.get=e=>({url:x.url(e),method:`get`}),x.head=e=>({url:x.url(e),method:`head`});var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/settings/general`},S.url=e=>S.definition.url+y(e),S.post=e=>({url:S.url(e),method:`post`});var C={key:0,class:`flex gap-1 items-center text-sm`},w={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},T={key:0},E=[`loading`],D={slot:`invoker`,variant:`primary`,type:`button`,icon:``},O=[`label`],k={slot:`content`},A={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},j={class:`grid gap-3 p-5`},M={key:0,variant:`danger`,icon:`triangle-exclamation`},N={slot:`title`,class:`tw:font-bold`},P=[`label`,`has-feedback-for`,`disabled`],F=[`.choiceValue`,`.hint`],I={slot:`after`},L={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},R={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},z={slot:`feedback`},ie={key:0,class:`error-list`},B=[`label`,`.modelValue`,`has-feedback-for`,`disabled`],V={class:`tw:flex tw:items-center tw:gap-1`},H={class:`tw:flex tw:items-center tw:gap-1`},U=[`.choiceValue`],W={class:`tw:flex tw:items-center tw:gap-1`},G=[`variant`],K={class:`tw:font-mono`},q=[`innerHTML`],J={slot:`feedback`},Y={key:0,class:`error-list`},ae=[`label`,`has-feedback-for`,`disabled`],oe=[`innerHTML`],se={key:0,class:`error-list`,slot:`feedback`},ce=[`label`,`.modelValue`,`has-feedback-for`,`disabled`],le=[`.choiceValue`],X={key:0,class:`error-list`,slot:`feedback`},Z=f(t({__name:`SettingsGeneralPage`,props:{readOnly:{type:Boolean},system:{},nameSuggestions:{},timezoneOptions:{},systemStatusOptions:{},saveUrl:{},flash:{},errors:{}},setup(t){let f=t,y=p(()=>f.flash),x=p(()=>f.errors),Z=d({name:f.system.name,live:f.system.live,retryDuration:f.system.retryDuration,timeZone:f.system.timeZone});function Q(e){let t=e.target;t&&(Z[t.name]=t.modelValue)}ne(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),$())});function $(){Z.clearErrors().submit(S())}return(d,f)=>(r(),i(`form`,{onSubmit:l($,[`prevent`])},[a(re,{title:c(v)(`General Settings`)},{actions:n(()=>[a(te,null,{default:n(()=>[c(Z).recentlySuccessful&&y.value?.success?(r(),i(`div`,C,[f[2]||=g(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),m(` `+e(y.value.success),1)])):h(``,!0),c(Z).hasErrors?(r(),i(`div`,w,[f[3]||=g(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),m(` `+e(c(v)(`Could not save settings`)),1)])):h(``,!0)]),_:1}),t.readOnly?h(``,!0):(r(),i(`craft-button-group`,T,[g(`craft-button`,{type:`submit`,variant:`primary`,loading:c(Z).processing},e(c(v)(`Save`)),9,E),g(`craft-action-menu`,null,[g(`craft-button`,D,[g(`craft-icon`,{name:`chevron-down`,label:c(v)(`More actions`)},null,8,O)]),g(`div`,k,[g(`craft-action-item`,{onClick:$},[m(e(c(v)(`Save and continue editing`))+` `,1),f[4]||=g(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:n(()=>[g(`div`,A,[t.readOnly?(r(),ee(b,{key:0})):h(``,!0),g(`div`,j,[c(Z).hasErrors?(r(),i(`craft-callout`,M,[g(`div`,N,e(c(v)(`Could not save settings`)),1),g(`ul`,null,[(r(!0),i(s,null,_(x.value,(t,n)=>(r(),i(`li`,null,e(t),1))),256))])])):h(``,!0),o(g(`craft-combobox`,{label:c(v)(`System Name`),id:`name`,name:`name`,"onUpdate:modelValue":f[0]||=e=>c(Z).name=e,"has-feedback-for":x.value?.name?`error`:``,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``},[(r(!0),i(s,null,_(t.nameSuggestions,(t,n)=>(r(),i(s,{key:n},[(r(!0),i(s,null,_(t.data,t=>(r(),i(`craft-option`,{key:t.name,".choiceValue":t.name,".hint":t.hint},e(t.name),41,F))),128))],64))),128)),g(`div`,I,[g(`craft-callout`,L,[m(e(c(v)(`This can begin with an environment variable.`))+` `,1),g(`a`,R,e(c(v)(`Learn more`)),1)])]),g(`div`,z,[x.value?.name?(r(),i(`ul`,ie,[g(`li`,null,e(x.value.name),1)])):h(``,!0)])],8,P),[[u,c(Z).name]]),g(`craft-combobox`,{label:c(v)(`System Status`),id:`live`,name:`live`,".modelValue":t.system.live?`1`:`0`,"has-feedback-for":x.value?.live?`error`:``,onModelValueChanged:Q,disabled:t.readOnly,"show-all-on-empty":``},[g(`craft-option`,{".choiceValue":`1`},[g(`div`,V,[f[5]||=g(`craft-indicator`,{variant:`success`},null,-1),g(`span`,null,e(c(v)(`Online`)),1)])],32),g(`craft-option`,{".choiceValue":`0`},[g(`div`,H,[f[6]||=g(`craft-indicator`,{variant:`danger`},null,-1),g(`span`,null,e(c(v)(`Offline`)),1)])],32),(r(!0),i(s,null,_(t.systemStatusOptions,t=>(r(),i(s,{key:t.label},[t.optgroup?(r(),i(s,{key:0},[],64)):(r(),i(`craft-option`,{key:1,".choiceValue":t.value},[g(`div`,W,[g(`craft-indicator`,{variant:t.value?`success`:`error`},null,8,G),g(`span`,K,e(t.label),1)])],40,U))],64))),128)),g(`craft-callout`,{slot:`after`,variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:c(v)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,q),g(`div`,J,[x.value.live?(r(),i(`ul`,Y,[g(`li`,null,e(x.value.live),1)])):h(``,!0)])],40,B),o(g(`craft-input`,{label:c(v)(`Retry Duration`),id:`retry-duration`,name:`retryDuration`,"onUpdate:modelValue":f[1]||=e=>c(Z).retryDuration=e,"has-feedback-for":x.value?.retryDuration?`error`:``,inputmode:`numeric`,maxlength:`4`,disabled:t.readOnly},[g(`div`,{slot:`help-text`,innerHTML:c(v)(`The number of seconds that the Retry-After HTTP header should be set to for 503 responses when the system is offline.`)},null,8,oe),x.value?.retryDuration?(r(),i(`ul`,se,[g(`li`,null,e(x.value.retryDuration),1)])):h(``,!0)],8,ae),[[u,c(Z).retryDuration]]),g(`craft-combobox`,{label:c(v)(`Time Zone`),id:`time-zone`,name:`timeZone`,".modelValue":c(Z).timeZone,onModelValueChanged:Q,"has-feedback-for":x.value?.timeZone?`error`:``,disabled:t.readOnly,"show-all-on-empty":``},[(r(!0),i(s,null,_(t.timezoneOptions,t=>(r(),i(`craft-option`,{key:t.value,".choiceValue":t.value},e(t.label)+e(t.data?.hint?` — ${t.data.hint}`:``),41,le))),128)),f[7]||=g(`craft-callout`,{slot:`after`,variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},[m(` This can be set to an environment variable with a value of a `),g(`a`,{href:`https://www.php.net/manual/en/timezones.php`,rel:`noopener`,target:`_blank`},`supported time zone`),m(`. `)],-1),x.value?.timeZone?(r(),i(`ul`,X,[g(`li`,null,e(x.value.timeZone),1)])):h(``,!0)],40,ce)])])]),_:1},8,[`title`])],32))}}),[[`__scopeId`,`data-v-0665d962`]]);export{Z as default}; \ No newline at end of file +import{$ as e,E as t,J as n,L as r,S as i,T as a,Y as o,b as ee,h as s,lt as c,m as l,p as u,s as d,t as f,v as p,w as m,x as h,y as g,z as _}from"./_plugin-vue_export-helper.js";import{r as v}from"./nav-item-9g3ebwBJ.js";import{n as te}from"./useAnnouncer.js";import{n as ne,o as y}from"./dist.js";import{t as re}from"./AppLayout.js";import{t as b}from"./CalloutReadOnly.js";var x=e=>({url:x.url(e),method:`get`});x.definition={methods:[`get`,`head`],url:`/admin/settings/general`},x.url=e=>x.definition.url+y(e),x.get=e=>({url:x.url(e),method:`get`}),x.head=e=>({url:x.url(e),method:`head`});var S=e=>({url:S.url(e),method:`post`});S.definition={methods:[`post`],url:`/admin/settings/general`},S.url=e=>S.definition.url+y(e),S.post=e=>({url:S.url(e),method:`post`});var C={key:0,class:`flex gap-1 items-center text-sm`},w={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},T={key:0},E=[`loading`],D={slot:`invoker`,variant:`primary`,type:`button`,icon:``},O=[`label`],k={slot:`content`},A={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},j={class:`grid gap-3 p-5`},M={key:0,variant:`danger`,icon:`triangle-exclamation`},N={slot:`title`,class:`tw:font-bold`},P=[`label`,`has-feedback-for`,`disabled`],F=[`.choiceValue`,`.hint`],I={slot:`after`},L={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},R={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},z={slot:`feedback`},ie={key:0,class:`error-list`},B=[`label`,`.modelValue`,`has-feedback-for`,`disabled`],V={class:`tw:flex tw:items-center tw:gap-1`},H={class:`tw:flex tw:items-center tw:gap-1`},U=[`.choiceValue`],W={class:`tw:flex tw:items-center tw:gap-1`},G=[`variant`],K={class:`tw:font-mono`},q=[`innerHTML`],J={slot:`feedback`},Y={key:0,class:`error-list`},ae=[`label`,`has-feedback-for`,`disabled`],oe=[`innerHTML`],se={key:0,class:`error-list`,slot:`feedback`},ce=[`label`,`.modelValue`,`has-feedback-for`,`disabled`],le=[`.choiceValue`],X={key:0,class:`error-list`,slot:`feedback`},Z=f(t({__name:`SettingsGeneralPage`,props:{readOnly:{type:Boolean},system:{},nameSuggestions:{},timezoneOptions:{},systemStatusOptions:{},saveUrl:{},flash:{},errors:{}},setup(t){let f=t,y=p(()=>f.flash),x=p(()=>f.errors),Z=d({name:f.system.name,live:f.system.live,retryDuration:f.system.retryDuration,timeZone:f.system.timeZone});function Q(e){let t=e.target;t&&(Z[t.name]=t.modelValue)}ne(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),$())});function $(){Z.clearErrors().submit(S())}return(d,f)=>(r(),i(`form`,{onSubmit:l($,[`prevent`])},[a(re,{title:c(v)(`General Settings`)},{actions:n(()=>[a(te,null,{default:n(()=>[c(Z).recentlySuccessful&&y.value?.success?(r(),i(`div`,C,[f[2]||=g(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),m(` `+e(y.value.success),1)])):h(``,!0),c(Z).hasErrors?(r(),i(`div`,w,[f[3]||=g(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),m(` `+e(c(v)(`Could not save settings`)),1)])):h(``,!0)]),_:1}),t.readOnly?h(``,!0):(r(),i(`craft-button-group`,T,[g(`craft-button`,{type:`submit`,variant:`primary`,loading:c(Z).processing},e(c(v)(`Save`)),9,E),g(`craft-action-menu`,null,[g(`craft-button`,D,[g(`craft-icon`,{name:`chevron-down`,label:c(v)(`More actions`)},null,8,O)]),g(`div`,k,[g(`craft-action-item`,{onClick:$},[m(e(c(v)(`Save and continue editing`))+` `,1),f[4]||=g(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:n(()=>[g(`div`,A,[t.readOnly?(r(),ee(b,{key:0})):h(``,!0),g(`div`,j,[c(Z).hasErrors?(r(),i(`craft-callout`,M,[g(`div`,N,e(c(v)(`Could not save settings`)),1),g(`ul`,null,[(r(!0),i(s,null,_(x.value,(t,n)=>(r(),i(`li`,null,e(t),1))),256))])])):h(``,!0),o(g(`craft-combobox`,{label:c(v)(`System Name`),id:`name`,name:`name`,"onUpdate:modelValue":f[0]||=e=>c(Z).name=e,"has-feedback-for":x.value?.name?`error`:``,disabled:t.readOnly,"require-option-match":!1,"show-all-on-empty":``},[(r(!0),i(s,null,_(t.nameSuggestions,(t,n)=>(r(),i(s,{key:n},[(r(!0),i(s,null,_(t.data,t=>(r(),i(`craft-option`,{key:t.name,".choiceValue":t.name,".hint":t.hint},e(t.name),41,F))),128))],64))),128)),g(`div`,I,[g(`craft-callout`,L,[m(e(c(v)(`This can begin with an environment variable.`))+` `,1),g(`a`,R,e(c(v)(`Learn more`)),1)])]),g(`div`,z,[x.value?.name?(r(),i(`ul`,ie,[g(`li`,null,e(x.value.name),1)])):h(``,!0)])],8,P),[[u,c(Z).name]]),g(`craft-combobox`,{label:c(v)(`System Status`),id:`live`,name:`live`,".modelValue":t.system.live?`1`:`0`,"has-feedback-for":x.value?.live?`error`:``,onModelValueChanged:Q,disabled:t.readOnly,"show-all-on-empty":``},[g(`craft-option`,{".choiceValue":`1`},[g(`div`,V,[f[5]||=g(`craft-indicator`,{variant:`success`},null,-1),g(`span`,null,e(c(v)(`Online`)),1)])],32),g(`craft-option`,{".choiceValue":`0`},[g(`div`,H,[f[6]||=g(`craft-indicator`,{variant:`danger`},null,-1),g(`span`,null,e(c(v)(`Offline`)),1)])],32),(r(!0),i(s,null,_(t.systemStatusOptions,t=>(r(),i(s,{key:t.label},[t.optgroup?(r(),i(s,{key:0},[],64)):(r(),i(`craft-option`,{key:1,".choiceValue":t.value},[g(`div`,W,[g(`craft-indicator`,{variant:t.value?`success`:`error`},null,8,G),g(`span`,K,e(t.label),1)])],40,U))],64))),128)),g(`craft-callout`,{slot:`after`,variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:c(v)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,q),g(`div`,J,[x.value.live?(r(),i(`ul`,Y,[g(`li`,null,e(x.value.live),1)])):h(``,!0)])],40,B),o(g(`craft-input`,{label:c(v)(`Retry Duration`),id:`retry-duration`,name:`retryDuration`,"onUpdate:modelValue":f[1]||=e=>c(Z).retryDuration=e,"has-feedback-for":x.value?.retryDuration?`error`:``,inputmode:`numeric`,maxlength:`4`,disabled:t.readOnly},[g(`div`,{slot:`help-text`,innerHTML:c(v)(`The number of seconds that the Retry-After HTTP header should be set to for 503 responses when the system is offline.`)},null,8,oe),x.value?.retryDuration?(r(),i(`ul`,se,[g(`li`,null,e(x.value.retryDuration),1)])):h(``,!0)],8,ae),[[u,c(Z).retryDuration]]),g(`craft-combobox`,{label:c(v)(`Time Zone`),id:`time-zone`,name:`timeZone`,".modelValue":c(Z).timeZone,onModelValueChanged:Q,"has-feedback-for":x.value?.timeZone?`error`:``,disabled:t.readOnly,"show-all-on-empty":``},[(r(!0),i(s,null,_(t.timezoneOptions,t=>(r(),i(`craft-option`,{key:t.value,".choiceValue":t.value},e(t.label)+e(t.data?.hint?` — ${t.data.hint}`:``),41,le))),128)),f[7]||=g(`craft-callout`,{slot:`after`,variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},[m(` This can be set to an environment variable with a value of a `),g(`a`,{href:`https://www.php.net/manual/en/timezones.php`,rel:`noopener`,target:`_blank`},`supported time zone`),m(`. `)],-1),x.value?.timeZone?(r(),i(`ul`,X,[g(`li`,null,e(x.value.timeZone),1)])):h(``,!0)],40,ce)])])]),_:1},8,[`title`])],32))}}),[[`__scopeId`,`data-v-0665d962`]]);export{Z as default}; \ No newline at end of file diff --git a/resources/build/SettingsSectionsEditPage.js b/resources/build/SettingsSectionsEditPage.js index 7646341278c..65a252486ea 100644 --- a/resources/build/SettingsSectionsEditPage.js +++ b/resources/build/SettingsSectionsEditPage.js @@ -1 +1 @@ -import{$ as e,B as t,E as n,J as r,L as i,M as a,N as o,S as s,T as c,U as l,b as u,dt as d,ft as f,h as p,it as m,k as h,l as g,lt as _,m as ee,s as te,t as v,v as y,w as b,x,y as S,z as C}from"./_plugin-vue_export-helper.js";import{r as w}from"./nav-item-9g3ebwBJ.js";import{i as T,n as ne,r as re,t as E}from"./AdminTable.js";import{n as D}from"./Select.js";import{t as O}from"./Pane.js";import{n as ie}from"./useAnnouncer.js";import{n as ae}from"./dist.js";import{n as k,r as oe,t as A}from"./wayfinder.js";import{t as j}from"./CraftInput.js";import{t as se}from"./AppLayout.js";import{t as ce}from"./CalloutReadOnly.js";import{n as le,t as M}from"./useEditableTable.js";import{a as ue}from"./SectionsController.js";import{t as N}from"./useInputGenerator.js";var de=[`.modelValue`,`has-feedbck-for`],P={slot:`feedback`},F={key:0,class:`error-list`},I=n({name:`CraftInputHandle`,__name:`CraftInputHandle`,props:a({error:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=l(n,`modelValue`);return(a,c)=>(i(),s(`craft-input-handle`,o(a.$attrs,{".modelValue":r.value,onModelValueChanged:c[0]||=e=>r.value=e.target?.modelValue,"has-feedbck-for":n.error?`error`:``}),[t(a.$slots,`default`),S(`div`,P,[n.error?(i(),s(`ul`,F,[S(`li`,null,e(n.error),1)])):x(``,!0)])],48,de))}}),L={type:`button`,slot:`invoker`,icon:``,size:`small`,variant:`inherit`,appearance:`plain`},R=[`name`,`label`],z={slot:`content`,class:`m-sm`},B=[`onClick`],V=[`onClick`],H=v(n({__name:`ActionMenu`,props:{icon:{default:`ellipsis`},label:{default:w(`Actions`)},actions:{}},setup(t){let n=t,r=y(()=>n.actions.filter(e=>e.variant&&e.variant===`danger`)),a=y(()=>n.actions.filter(e=>!e.variant||e.variant!==`danger`));return(n,c)=>(i(),s(`craft-action-menu`,null,[S(`craft-button`,L,[S(`craft-icon`,{name:t.icon,label:t.label},null,8,R)]),S(`div`,z,[(i(!0),s(p,null,C(a.value,(t,n)=>(i(),s(`craft-action-item`,o({key:`safe-${n}`,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,B))),128)),c[0]||=S(`hr`,{class:`m-0`},null,-1),(i(!0),s(p,null,C(r.value,(t,n)=>(i(),s(`craft-action-item`,o({key:`dangerous-${n}`,onClick:e=>t.onClick?.()},{ref_for:!0},t),e(t.label),17,V))),128))])]))}}),[[`__scopeId`,`data-v-3697a5e3`]]),U=e=>({url:U.url(e),method:`get`});U.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/table-data`},U.url=e=>U.definition.url+k(e),U.get=e=>({url:U.url(e),method:`get`}),U.head=e=>({url:U.url(e),method:`head`});var W=(e,t)=>({url:W.url(e,t),method:`get`});W.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/edit/{entryType?}`},W.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=A(e),oe(e,[`entryType`]);let n={entryType:typeof e?.entryType==`object`?e.entryType.id:e?.entryType};return W.definition.url.replace(`{entryType?}`,n.entryType?.toString()??``).replace(/\/+$/,``)+k(t)},W.get=(e,t)=>({url:W.url(e,t),method:`get`}),W.head=(e,t)=>({url:W.url(e,t),method:`head`});var G=(e,t)=>({url:G.url(e,t),method:`get`});G.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/{entryType}`},G.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=A(e);let n={entryType:typeof e.entryType==`object`?e.entryType.id:e.entryType};return G.definition.url.replace(`{entryType}`,n.entryType.toString()).replace(/\/+$/,``)+k(t)},G.get=(e,t)=>({url:G.url(e,t),method:`get`}),G.head=(e,t)=>({url:G.url(e,t),method:`head`});var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/new`},K.url=e=>K.definition.url+k(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/new`},q.url=e=>q.definition.url+k(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var fe={"/admin/actions/entry-types/new":K,"/admin/settings/entry-types/new":q},J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/entry-types/save`},J.url=e=>J.definition.url+k(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/entry-types/delete`},Y.url=e=>Y.definition.url+k(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/entry-types/render-override-settings`},X.url=e=>X.definition.url+k(e),X.post=e=>({url:X.url(e),method:`post`});var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/admin/actions/entry-types/apply-override-settings`},Z.url=e=>Z.definition.url+k(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types`},Q.url=e=>Q.definition.url+k(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var pe=[`icon`,`data-color`],me=[`data-id`],he={class:`font-bold`},ge={slot:`suffix`,class:`flex gap-1 items-center`},_e={class:`flex gap-2 mt-3 items-center`},ve={key:0},ye={type:`button`,slot:`invoker`,appearance:`filled`},be={slot:`content`},xe={class:`p-2`},Se={key:0,class:`p-2`},Ce=[`onClick`,`icon`,`checked`,`data-color`],we=[`href`],Te=v(n({__name:`EntryTypeSelect`,props:{modelValue:{},types:{},actions:{}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,o=t,l=y(()=>o.modelValue.map(e=>o.types?.find(t=>t.id===e)??null).filter(Boolean)),u=m(``),d=y(()=>o.types?.filter(e=>e.name.includes(u.value)||e.handle.includes(u.value)));function f(e){let t=[...o.modelValue];t.includes(e.id)?t.splice(t.indexOf(e.id),1):t.push(e.id),a(`update:modelValue`,t)}function h(e){let t=[...o.modelValue];t.includes(e)&&t.splice(t.indexOf(e),1),a(`update:modelValue`,t)}return(n,a)=>(i(),s(p,null,[S(`div`,null,[(i(!0),s(p,null,C(l.value,t=>(i(),s(p,null,[t?(i(),s(`craft-chip`,{key:0,icon:t.icon,"data-color":t.color?.value??`white`},[S(`div`,{"data-id":t.id},[S(`div`,he,e(t.name),1),S(`code`,null,e(t.handle),1)],8,me),S(`div`,ge,[c(H,{actions:[{label:_(w)(`Settings`),icon:`gear`},{label:_(w)(`Remove`),variant:`danger`,icon:`x`,onClick:()=>h(t.id)}]},null,8,[`actions`]),c(re,{variant:`inherit`})])],8,pe)):x(``,!0)],64))),256))]),S(`div`,_e,[t.types?.length?(i(),s(`craft-action-menu`,ve,[S(`craft-button`,ye,[a[1]||=S(`craft-icon`,{name:`chevron-down`,slot:`prefix`},null,-1),b(` `+e(_(w)(`Choose`)),1)]),S(`div`,be,[S(`div`,xe,[c(j,{label:_(w)(`Search`),modelValue:u.value,"onUpdate:modelValue":a[0]||=e=>u.value=e,"label-sr-only":``},{default:r(()=>[...a[2]||=[S(`craft-icon`,{name:`search`,slot:`prefix`},null,-1)]]),_:1},8,[`label`,`modelValue`])]),a[3]||=S(`hr`,{class:`m-0`},null,-1),d.value.length<1?(i(),s(`div`,Se,[c(ne,{template:`No entry types match “{query}”`,params:{query:u.value}},null,8,[`params`])])):(i(!0),s(p,{key:1},C(d.value,n=>(i(),s(`craft-action-item`,{key:n.id,onClick:e=>f(n),type:`checkbox`,icon:n.icon??`empty`,checked:t.modelValue.includes(n.id),"data-color":n.color?.value??`white`},[S(`div`,null,[b(e(n.name)+` `,1),S(`pre`,null,e(n.handle),1)])],8,Ce))),128))])])):x(``,!0),S(`a`,{href:_(fe)[`/admin/settings/entry-types/new`]().url,class:``},[a[4]||=S(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),b(` `+e(_(w)(`Create`)),1)],8,we)])],64))}}),[[`__scopeId`,`data-v-69cf6612`]]),Ee=n({__name:`SiteSettingsTable`,props:{modelValue:{},selectedType:{},isMultisite:{type:Boolean,default:!1},isHeadless:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t,a=e,o=g(),s=y(()=>o.props.homepageUri),l=y(()=>o.props.templateOptions),d=y(()=>({name:!0,enabled:a.isMultisite,singleHomepage:a.selectedType===`single`,singleUri:a.selectedType===`single`,uriFormat:a.selectedType!==`single`,template:!a.isHeadless,enabledByDefault:a.selectedType!==`single`})),{table:f}=M({data:()=>a.modelValue,key:`handle`,name:`sites`,columnVisibility:()=>d.value,onChange:e=>n(`update:modelValue`,e),columns:({columnHelper:e})=>[e.accessor(`name`,{header:w(`Site`),cell:({getValue:e})=>e(),meta:{cellTag:`th`}}),e.lightswitch(`enabled`,{header:w(`Enabled`),size:80,meta:{cellClass:`bg-[var(--c-color-neutral-fill-quiet)]`},label:w(`Enabled`)}),e.checkbox(`singleHomepage`,{header:()=>h(`craft-icon`,{name:`home`,label:w(`Homepage`)}),size:44,meta:{cellClass:`text-center`,headerClass:`justify-center`},onChange:(e,{row:t})=>{if(e){let e={...a.modelValue};e[t.original.handle].singleUri=s.value??``,n(`update:modelValue`,e)}else{let e={...a.modelValue};e[t.original.handle].singleUri=``,n(`update:modelValue`,e)}},disabled:e=>!e.original.enabled}),e.text(`singleUri`,{header:w(`URI`),class:`font-mono text-xs`,placeholder:w(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled||e.original.singleHomepage,meta:{headerTip:w(`What the entry URI should be for the site. Leave blank if the entry doesn’t have a URL.`)}}),e.text(`uriFormat`,{header:w(`Entry URI Format`),class:`font-mono text-xs`,placeholder:w(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled,meta:{headerTip:w(`What entry URIs should look like for the site. Leave blank if entries don’t have URLs.`)}}),e.autocomplete(`template`,{header:w(`Template`),class:`font-mono text-xs !px-[var(--_cell-spacing)]`,options:l.value,disabled:e=>!e.original.enabled,meta:{headerTip:w(`Which template should be loaded when an entry’s URL is requested.`)}}),e.lightswitch(`enabledByDefault`,{header:w(`Default Status`),size:40,disabled:e=>!e.original.enabled})]});return(e,t)=>(i(),u(O,{padding:0,appearance:`raised`},{default:r(()=>[c(E,{table:_(f),spacing:_(T).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}))}}),De=[`name`,`label`],Oe=n({__name:`DeleteButton`,props:{label:{default:w(`Delete item`)},icon:{default:`x`}},emits:[`click`],setup(e,{emit:t}){let n=t;return(t,r)=>(i(),s(`craft-button`,o({type:`button`,onClick:r[0]||=e=>n(`click`),size:`small`,appearance:`plain`,variant:`danger`},t.$attrs),[S(`craft-icon`,{name:e.icon,label:e.label},null,8,De)],16))}}),ke={key:0,class:`border border-dashed border-neutral-border-quiet rounded-bl-md rounded-br-md border-t-0 p-1 pt-2 -mt-1`},Ae=n({__name:`PreviewTargetsTable`,props:{modelValue:{},name:{default:`previewTargets`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,o=t,{table:l}=M({data:()=>o.modelValue,name:o.name,onChange:e=>a(`update:modelValue`,e),columns:({columnHelper:e})=>[e.text(`label`,{header:w(`Label`),disabled:()=>o.disabled}),e.text(`urlFormat`,{header:w(`URL Format`),class:`font-mono text-xs`,disabled:()=>o.disabled}),e.lightswitch(`refresh`,{header:w(`Auto-Refresh`),disabled:()=>o.disabled}),e.display({id:`actions`,header:w(`Actions`),meta:{headerSrOnly:!0},cell:({row:e})=>h(`div`,{class:`flex justify-end gap-2`},[h(Oe,{disabled:o.disabled,onClick:()=>{let t=[...o.modelValue];t.splice(e.index,1),a(`update:modelValue`,t)}})])})]});function u(){a(`update:modelValue`,[...o.modelValue,{label:``,urlFormat:``,refresh:!0}])}return(n,a)=>(i(),s(p,null,[c(O,{padding:0,appearance:`raised`},{default:r(()=>[c(E,{table:_(l),spacing:_(T).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}),t.disabled?x(``,!0):(i(),s(`div`,ke,[S(`craft-button`,{type:`button`,size:`small`,onClick:u,class:`w-full`,appearance:`plain`},e(_(w)(`Add a target`)),1)]))],64))}}),je={key:0,class:`flex gap-1 items-center text-sm`},Me={key:1,class:`flex gap-1 items-center text-sm`},Ne={key:0},Pe=[`loading`],Fe={slot:`content`},Ie={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},Le={class:`grid gap-3 p-5`},Re={key:0,variant:`danger`,icon:`triangle-exclamation`},ze={slot:`title`,class:`font-bold`},Be=[`value`],Ve={slot:`feedback`},He={key:0,class:`error-list`},Ue={slot:`feedback`},We={key:0,class:`error-list`},Ge={slot:`input`},Ke=[`value`],qe={key:0,slot:`after`},Je={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},Ye={slot:`feedback`},Xe={key:0,class:`error-list`},Ze={class:`grid gap-3 p-5`},Qe={class:`font-bold text-sm`},$e={class:`text-sm text-neutral-500 mb-2`},et={class:`grid gap-6 p-5`},tt={class:`font-bold text-sm`},$={class:`text-sm text-neutral-500 mb-2`},nt={slot:`input`},rt=[`value`],it={key:0,slot:`after`},at={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},ot={class:`grid gap-3 p-5`},st={slot:`feedback`},ct={key:0,class:`error-list`},lt={slot:`input`},ut=[`value`],dt={class:`grid gap-3 p-5`},ft={class:`font-bold text-sm`},pt={class:`text-sm text-neutral-500 mb-2`},mt={class:`grid gap-3 p-5`},ht={slot:`feedback`},gt={key:0,class:`error-list`},_t=n({__name:`SettingsSectionsEditPage`,props:{title:{},crumbs:{},section:{},brandNew:{type:Boolean},typeOptions:{},entryTypes:{},propagationOptions:{},placementOptions:{},siteSettings:{},isMultiSite:{type:Boolean},headlessMode:{type:Boolean},readOnly:{type:Boolean},flash:{},errors:{}},setup(t){let n=t,a=te({sectionId:n.section.id,name:n.section.name??``,handle:n.section.handle??``,type:n.section.type,entryTypes:n.section.entryTypes?.map(e=>e.id)??[],enableVersioning:n.section.enableVersioning,maxAuthors:n.section.maxAuthors??1,maxLevels:n.section.maxLevels??``,propagationMethod:n.section.propagationMethod,defaultPlacement:n.section.defaultPlacement,previewTargets:n.section.previewTargets??[],sites:Object.fromEntries(n.siteSettings.map(e=>[e.handle,{enabled:e.enabled,siteId:e.siteId??null,name:e.name??``,singleHomepage:!1,singleUri:e.uriFormat??``,uriFormat:e.uriFormat??``,template:e.template??``,enabledByDefault:e.enabledByDefault}]))}),o=y(()=>a.type===`structure`),l=y(()=>a.type===`channel`||a.type===`structure`),m=N(()=>a.name,e=>a.handle=f(e)),h=N(()=>a.name,e=>{if(!a.sites)return;let t=d(e);a.sites=Object.fromEntries(Object.entries(a.sites).map(([e,n])=>[e,{...n,singleUri:t&&!n.singleHomepage?`${t}`:n.singleUri,uriFormat:t?`${t}/{slug}`:``,template:t?`${t}/_entry.twig`:``}]))});n.brandNew||(m.stop(),h.stop()),ae(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),g())});function g(){a.clearErrors().submit(ue())}return(n,d)=>(i(),s(`form`,{onSubmit:ee(g,[`prevent`])},[c(se,{title:t.title,debug:{form:_(a),$props:n.$props}},{actions:r(()=>[c(ie,null,{default:r(()=>[_(a).recentlySuccessful&&t.flash?.success?(i(),s(`div`,je,[d[12]||=S(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),b(` `+e(t.flash.success),1)])):x(``,!0),_(a).hasErrors?(i(),s(`div`,Me,[d[13]||=S(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),b(` `+e(_(w)(`Could not save settings`)),1)])):x(``,!0)]),_:1}),t.readOnly?x(``,!0):(i(),s(`craft-button-group`,Ne,[S(`craft-button`,{type:`submit`,variant:`primary`,loading:_(a).processing},e(_(w)(`Save`)),9,Pe),S(`craft-action-menu`,null,[d[15]||=S(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[S(`craft-icon`,{name:`chevron-down`})],-1),S(`div`,Fe,[S(`craft-action-item`,{onClick:g},[b(e(_(w)(`Save and continue editing`))+` `,1),d[14]||=S(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:r(()=>[S(`div`,Ie,[t.readOnly?(i(),u(ce,{key:0})):x(``,!0),S(`div`,Le,[_(a).hasErrors?(i(),s(`craft-callout`,Re,[S(`div`,ze,e(_(w)(`Could not save settings`)),1),S(`ul`,null,[(i(!0),s(p,null,C(_(a).errors,(t,n)=>(i(),s(`li`,{key:n},e(t),1))),128))])])):x(``,!0),t.section.id?(i(),s(`input`,{key:1,type:`hidden`,name:`sectionId`,value:t.section.id},null,8,Be)):x(``,!0),c(j,{label:_(w)(`Name`),"help-text":_(w)(`What this section will be called in the control panel.`),id:`name`,name:`name`,modelValue:_(a).name,"onUpdate:modelValue":d[0]||=e=>_(a).name=e,disabled:t.readOnly,"has-feedback-for":_(a).errors?.name?`error`:``,required:``,autofocus:``},{default:r(()=>[S(`div`,Ve,[_(a).errors?.name?(i(),s(`ul`,He,[S(`li`,null,e(_(a).errors.name),1)])):x(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),c(I,{label:_(w)(`Handle`),"help-text":_(w)(`How you'll refer to this section in the templates.`),id:`handle`,name:`handle`,modelValue:_(a).handle,"onUpdate:modelValue":d[1]||=e=>_(a).handle=e,disabled:t.readOnly,"has-feedback-for":_(a).errors?.handle?`error`:``,required:``,onChange:d[2]||=e=>_(m).markDirty()},{default:r(()=>[S(`div`,Ue,[_(a).errors?.handle?(i(),s(`ul`,We,[S(`li`,null,e(_(a).errors.handle),1)])):x(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),c(le,{label:_(w)(`Enable versioning for entries in this section`),id:`enableVersioning`,name:`enableVersioning`,disabled:t.readOnly,modelValue:_(a).enableVersioning,"onUpdate:modelValue":d[3]||=e=>_(a).enableVersioning=e},null,8,[`label`,`disabled`,`modelValue`]),c(D,{label:_(w)(`Section Type`),"help-text":_(w)(`What type of section is this?`),id:`type`,name:`type`,modelValue:_(a).type,"onUpdate:modelValue":d[4]||=e=>_(a).type=e,disabled:t.readOnly,"has-feedback-for":_(a).errors?.type?`error`:``},{default:r(()=>[S(`select`,Ge,[(i(!0),s(p,null,C(t.typeOptions,t=>(i(),s(`option`,{key:t.value,value:t.value},e(t.label),9,Ke))),128))]),t.section.id&&_(a).type!==`single`?(i(),s(`div`,qe,[S(`craft-callout`,Je,e(_(w)(`Changing this may result in data loss.`)),1)])):x(``,!0),S(`div`,Ye,[_(a).errors?.type?(i(),s(`ul`,Xe,[S(`li`,null,e(_(a).errors.type),1)])):x(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])]),d[17]||=S(`hr`,null,null,-1),S(`div`,Ze,[S(`div`,null,[S(`h3`,Qe,e(_(w)(`Entry Types`)),1),S(`p`,$e,e(_(w)(`Choose the types of entries that can be included in this section.`)),1),c(Te,{types:t.entryTypes,modelValue:_(a).entryTypes,"onUpdate:modelValue":d[5]||=e=>_(a).entryTypes=e},null,8,[`types`,`modelValue`])])]),d[18]||=S(`hr`,null,null,-1),S(`div`,et,[S(`div`,null,[S(`h3`,tt,e(_(w)(`Site settings`)),1),S(`p`,$,e(_(w)(`Choose which sites this section should be available in, and configure the site-specific settings.`)),1),c(Ee,{"is-multisite":t.isMultiSite,"is-headless":t.headlessMode,"selected-type":_(a).type,modelValue:_(a).sites,"onUpdate:modelValue":d[6]||=e=>_(a).sites=e},null,8,[`is-multisite`,`is-headless`,`selected-type`,`modelValue`])]),t.isMultiSite&&l.value?(i(),u(D,{key:0,label:_(w)(`Propagation Method`),"help-text":_(w)(`Of the enabled sites above, which sites should entries in this section be saved to?`),id:`propagationMethod`,name:`propagationMethod`,modelValue:_(a).propagationMethod,"onUpdate:modelValue":d[7]||=e=>_(a).propagationMethod=e,disabled:t.readOnly},{default:r(()=>[S(`select`,nt,[(i(!0),s(p,null,C(t.propagationOptions,t=>(i(),s(`option`,{key:t.value,value:t.value},e(t.label),9,rt))),128))]),t.section.id&&t.section.propagationMethod!==`none`&&t.siteSettings.length>1?(i(),s(`div`,it,[S(`craft-callout`,at,e(_(w)(`Changing this may result in data loss.`)),1)])):x(``,!0)]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])):x(``,!0)]),o.value?(i(),s(p,{key:1},[d[16]||=S(`hr`,null,null,-1),S(`div`,ot,[c(j,{label:_(w)(`Max Levels`),"help-text":_(w)(`The maximum number of levels this section can have.`),id:`maxLevels`,name:`maxLevels`,modelValue:_(a).maxLevels,"onUpdate:modelValue":d[8]||=e=>_(a).maxLevels=e,disabled:t.readOnly,inputmode:`numeric`,size:`5`,"has-feedback-for":_(a).errors?.maxLevels?`error`:``},{default:r(()=>[S(`div`,st,[_(a).errors?.maxLevels?(i(),s(`ul`,ct,[S(`li`,null,e(_(a).errors.maxLevels),1)])):x(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),c(D,{label:_(w)(`Default {type} Placement`,{type:_(w)(`Entry`)}),"help-text":_(w)(`Where new {type} should be placed by default in the structure.`,{type:_(w)(`entries`)}),id:`defaultPlacement`,name:`defaultPlacement`,modelValue:_(a).defaultPlacement,"onUpdate:modelValue":d[9]||=e=>_(a).defaultPlacement=e,disabled:t.readOnly},{default:r(()=>[S(`select`,lt,[(i(!0),s(p,null,C(t.placementOptions,t=>(i(),s(`option`,{key:t.value,value:t.value},e(t.label),9,ut))),128))])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])])],64)):x(``,!0),d[19]||=S(`hr`,null,null,-1),S(`div`,dt,[S(`div`,null,[S(`h3`,ft,e(_(w)(`Preview Targets`)),1),S(`p`,pt,e(_(w)(`Locations that should be available for previewing entries in this section.`)),1),c(Ae,{modelValue:_(a).previewTargets,"onUpdate:modelValue":d[10]||=e=>_(a).previewTargets=e,disabled:t.readOnly},null,8,[`modelValue`,`disabled`])])]),d[20]||=S(`hr`,null,null,-1),S(`div`,mt,[c(j,{label:_(w)(`Max Authors`),"help-text":_(w)(`The maximum number of authors that entries in this section can have.`),id:`maxAuthors`,name:`maxAuthors`,modelValue:_(a).maxAuthors,"onUpdate:modelValue":d[11]||=e=>_(a).maxAuthors=e,disabled:t.readOnly,inputmode:`numeric`,maxlength:`5`,"has-feedback-for":_(a).errors?.maxAuthors?`error`:``},{default:r(()=>[S(`div`,ht,[_(a).errors?.maxAuthors?(i(),s(`ul`,gt,[S(`li`,null,e(_(a).errors.maxAuthors),1)])):x(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])])])]),_:1},8,[`title`,`debug`])],32))}});export{_t as default}; \ No newline at end of file +import{$ as e,B as t,E as n,J as r,L as i,M as a,N as o,S as s,T as c,U as l,b as u,dt as d,ft as f,h as p,it as m,k as h,l as g,lt as _,m as v,s as ee,t as y,v as b,w as x,x as S,y as C,z as w}from"./_plugin-vue_export-helper.js";import{r as T}from"./nav-item-9g3ebwBJ.js";import{i as E,n as te,r as D,t as O}from"./AdminTable.js";import{n as k}from"./Select.js";import{t as A}from"./Pane.js";import{n as j}from"./useAnnouncer.js";import{a as M,c as N,n as P,o as F,s as I}from"./dist.js";import{t as L}from"./CraftInput.js";import{n as ne,t as re}from"./AppLayout.js";import{t as ie}from"./CalloutReadOnly.js";import{n as ae,t as R}from"./useEditableTable.js";import{a as oe}from"./SectionsController.js";import{t as z}from"./useInputGenerator.js";var se=[`.modelValue`,`has-feedbck-for`],B={slot:`feedback`},V={key:0,class:`error-list`},H=n({name:`CraftInputHandle`,__name:`CraftInputHandle`,props:a({error:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=l(n,`modelValue`);return(a,c)=>(i(),s(`craft-input-handle`,o(a.$attrs,{".modelValue":r.value,onModelValueChanged:c[0]||=e=>r.value=e.target?.modelValue,"has-feedbck-for":n.error?`error`:``}),[t(a.$slots,`default`),C(`div`,B,[n.error?(i(),s(`ul`,V,[C(`li`,null,e(n.error),1)])):S(``,!0)])],48,se))}}),U=e=>({url:U.url(e),method:`get`});U.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/table-data`},U.url=e=>U.definition.url+F(e),U.get=e=>({url:U.url(e),method:`get`}),U.head=e=>({url:U.url(e),method:`head`});var W=(e,t)=>({url:W.url(e,t),method:`get`});W.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/edit/{entryType?}`},W.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=M(e),I(e,[`entryType`]);let n={entryType:typeof e?.entryType==`object`?e.entryType.id:e?.entryType};return W.definition.url.replace(`{entryType?}`,n.entryType?.toString()??``).replace(/\/+$/,``)+F(t)},W.get=(e,t)=>({url:W.url(e,t),method:`get`}),W.head=(e,t)=>({url:W.url(e,t),method:`head`});var G=(e,t)=>({url:G.url(e,t),method:`get`});G.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/{entryType}`},G.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={entryType:e}),typeof e==`object`&&!Array.isArray(e)&&`id`in e&&(e={entryType:e.id}),Array.isArray(e)&&(e={entryType:e[0]}),e=M(e);let n={entryType:typeof e.entryType==`object`?e.entryType.id:e.entryType};return G.definition.url.replace(`{entryType}`,n.entryType.toString()).replace(/\/+$/,``)+F(t)},G.get=(e,t)=>({url:G.url(e,t),method:`get`}),G.head=(e,t)=>({url:G.url(e,t),method:`head`});var K=e=>({url:K.url(e),method:`get`});K.definition={methods:[`get`,`head`],url:`/admin/actions/entry-types/new`},K.url=e=>K.definition.url+F(e),K.get=e=>({url:K.url(e),method:`get`}),K.head=e=>({url:K.url(e),method:`head`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types/new`},q.url=e=>q.definition.url+F(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var ce={"/admin/actions/entry-types/new":K,"/admin/settings/entry-types/new":q},J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/entry-types/save`},J.url=e=>J.definition.url+F(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`post`});Y.definition={methods:[`post`],url:`/admin/actions/entry-types/delete`},Y.url=e=>Y.definition.url+F(e),Y.post=e=>({url:Y.url(e),method:`post`});var X=e=>({url:X.url(e),method:`post`});X.definition={methods:[`post`],url:`/admin/actions/entry-types/render-override-settings`},X.url=e=>X.definition.url+F(e),X.post=e=>({url:X.url(e),method:`post`});var Z=e=>({url:Z.url(e),method:`post`});Z.definition={methods:[`post`],url:`/admin/actions/entry-types/apply-override-settings`},Z.url=e=>Z.definition.url+F(e),Z.post=e=>({url:Z.url(e),method:`post`});var Q=e=>({url:Q.url(e),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/settings/entry-types`},Q.url=e=>Q.definition.url+F(e),Q.get=e=>({url:Q.url(e),method:`get`}),Q.head=e=>({url:Q.url(e),method:`head`});var le=[`icon`,`data-color`],ue=[`data-id`],de={class:`font-bold`},fe={slot:`suffix`,class:`flex gap-1 items-center`},pe={class:`flex gap-2 mt-3 items-center`},me={key:0},he={key:0,type:`button`,slot:`invoker`,appearance:`filled`},ge={slot:`content`},_e={class:`p-2`},ve={key:0,class:`p-2`},ye=[`onClick`,`icon`,`checked`,`data-color`],be=[`href`],xe=y(n({__name:`EntryTypeSelect`,props:{modelValue:{},types:{},actions:{}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,o=t,{readOnly:l}=N(),d=b(()=>o.modelValue.map(e=>o.types?.find(t=>t.id===e)??null).filter(Boolean)),f=m(``),h=b(()=>o.types?.filter(e=>e.name.includes(f.value)||e.handle.includes(f.value)));function g(e){let t=[...o.modelValue];t.includes(e.id)?t.splice(t.indexOf(e.id),1):t.push(e.id),a(`update:modelValue`,t)}function v(e){let t=[...o.modelValue];t.includes(e)&&t.splice(t.indexOf(e),1),a(`update:modelValue`,t)}return(n,a)=>(i(),s(p,null,[C(`div`,null,[(i(!0),s(p,null,w(d.value,t=>(i(),s(p,null,[t?(i(),s(`craft-chip`,{key:0,icon:t.icon,"data-color":t.color?.value??`white`},[C(`div`,{"data-id":t.id},[C(`div`,de,e(t.name),1),C(`code`,null,e(t.handle),1)],8,ue),C(`div`,fe,[c(ne,{actions:[{label:_(T)(`Settings`),icon:`gear`},...[_(l)?null:{label:_(T)(`Remove`),variant:`danger`,icon:`x`,onClick:()=>v(t.id)}]]},null,8,[`actions`]),_(l)?S(``,!0):(i(),u(D,{key:0,variant:`inherit`}))])],8,le)):S(``,!0)],64))),256))]),C(`div`,pe,[t.types?.length?(i(),s(`craft-action-menu`,me,[_(l)?S(``,!0):(i(),s(`craft-button`,he,[a[1]||=C(`craft-icon`,{name:`chevron-down`,slot:`prefix`},null,-1),x(` `+e(_(T)(`Choose`)),1)])),C(`div`,ge,[C(`div`,_e,[c(L,{label:_(T)(`Search`),modelValue:f.value,"onUpdate:modelValue":a[0]||=e=>f.value=e,"label-sr-only":``},{default:r(()=>[...a[2]||=[C(`craft-icon`,{name:`search`,slot:`prefix`},null,-1)]]),_:1},8,[`label`,`modelValue`])]),a[3]||=C(`hr`,{class:`m-0`},null,-1),h.value.length<1?(i(),s(`div`,ve,[c(te,{template:`No entry types match “{query}”`,params:{query:f.value}},null,8,[`params`])])):(i(!0),s(p,{key:1},w(h.value,n=>(i(),s(`craft-action-item`,{key:n.id,onClick:e=>g(n),type:`checkbox`,icon:n.icon??`empty`,checked:t.modelValue.includes(n.id),"data-color":n.color?.value??`white`},[C(`div`,null,[x(e(n.name)+` `,1),C(`pre`,null,e(n.handle),1)])],8,ye))),128))])])):S(``,!0),_(l)?S(``,!0):(i(),s(`a`,{key:1,href:_(ce)[`/admin/settings/entry-types/new`]().url,class:``},[a[4]||=C(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),x(` `+e(_(T)(`Create`)),1)],8,be))])],64))}}),[[`__scopeId`,`data-v-548c3575`]]),Se=n({__name:`SiteSettingsTable`,props:{modelValue:{},selectedType:{},isMultisite:{type:Boolean,default:!1},isHeadless:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=t,a=e,o=g(),s=b(()=>o.props.homepageUri),l=b(()=>o.props.templateOptions),d=b(()=>({name:!0,enabled:a.isMultisite,singleHomepage:a.selectedType===`single`,singleUri:a.selectedType===`single`,uriFormat:a.selectedType!==`single`,template:!a.isHeadless,enabledByDefault:a.selectedType!==`single`})),{table:f}=R({data:()=>a.modelValue,key:`handle`,name:`sites`,columnVisibility:()=>d.value,onChange:e=>n(`update:modelValue`,e),columns:({columnHelper:e})=>[e.accessor(`name`,{header:T(`Site`),cell:({getValue:e})=>e(),meta:{cellTag:`th`}}),e.lightswitch(`enabled`,{header:T(`Enabled`),size:80,meta:{cellClass:`bg-[var(--c-color-neutral-fill-quiet)]`},label:T(`Enabled`)}),e.checkbox(`singleHomepage`,{header:()=>h(`craft-icon`,{name:`home`,label:T(`Homepage`)}),size:44,meta:{cellClass:`text-center`,headerClass:`justify-center`},onChange:(e,{row:t})=>{if(e){let e={...a.modelValue};e[t.original.handle].singleUri=s.value??``,n(`update:modelValue`,e)}else{let e={...a.modelValue};e[t.original.handle].singleUri=``,n(`update:modelValue`,e)}},disabled:e=>!e.original.enabled}),e.text(`singleUri`,{header:T(`URI`),class:`font-mono text-xs`,placeholder:T(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled||e.original.singleHomepage,meta:{headerTip:T(`What the entry URI should be for the site. Leave blank if the entry doesn’t have a URL.`)}}),e.text(`uriFormat`,{header:T(`Entry URI Format`),class:`font-mono text-xs`,placeholder:T(`Leave blank if the entry doesn't have a URL`),disabled:e=>!e.original.enabled,meta:{headerTip:T(`What entry URIs should look like for the site. Leave blank if entries don’t have URLs.`)}}),e.autocomplete(`template`,{header:T(`Template`),class:`font-mono text-xs !px-[var(--_cell-spacing)]`,options:l.value,disabled:e=>!e.original.enabled,meta:{headerTip:T(`Which template should be loaded when an entry’s URL is requested.`)}}),e.lightswitch(`enabledByDefault`,{header:T(`Default Status`),size:40,disabled:e=>!e.original.enabled})]});return(e,t)=>(i(),u(A,{padding:0,appearance:`raised`},{default:r(()=>[c(O,{table:_(f),spacing:_(E).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}))}}),Ce=[`name`,`label`],we=n({__name:`DeleteButton`,props:{label:{default:T(`Delete item`)},icon:{default:`x`}},emits:[`click`],setup(e,{emit:t}){let n=t;return(t,r)=>(i(),s(`craft-button`,o({type:`button`,onClick:r[0]||=e=>n(`click`),size:`small`,appearance:`plain`,variant:`danger`},t.$attrs),[C(`craft-icon`,{name:e.icon,label:e.label},null,8,Ce)],16))}}),Te={key:0,class:`border border-dashed border-neutral-border-quiet rounded-bl-md rounded-br-md border-t-0 p-1 pt-2 -mt-1`},Ee=n({__name:`PreviewTargetsTable`,props:{modelValue:{},name:{default:`previewTargets`},disabled:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(t,{emit:n}){let a=n,o=t,{table:l}=R({data:()=>o.modelValue,name:o.name,onChange:e=>a(`update:modelValue`,e),columns:({columnHelper:e})=>[e.text(`label`,{header:T(`Label`),disabled:()=>o.disabled}),e.text(`urlFormat`,{header:T(`URL Format`),class:`font-mono text-xs`,disabled:()=>o.disabled}),e.lightswitch(`refresh`,{header:T(`Auto-Refresh`),disabled:()=>o.disabled}),e.display({id:`actions`,header:T(`Actions`),meta:{headerSrOnly:!0},cell:({row:e})=>h(`div`,{class:`flex justify-end gap-2`},[h(we,{disabled:o.disabled,onClick:()=>{let t=[...o.modelValue];t.splice(e.index,1),a(`update:modelValue`,t)}})])})]});function u(){a(`update:modelValue`,[...o.modelValue,{label:``,urlFormat:``,refresh:!0}])}return(n,a)=>(i(),s(p,null,[c(A,{padding:0,appearance:`raised`},{default:r(()=>[c(O,{table:_(l),spacing:_(E).Relaxed,reorderable:!1},null,8,[`table`,`spacing`])]),_:1}),t.disabled?S(``,!0):(i(),s(`div`,Te,[C(`craft-button`,{type:`button`,size:`small`,onClick:u,class:`w-full`,appearance:`plain`},e(_(T)(`Add a target`)),1)]))],64))}}),De={key:0,class:`flex gap-1 items-center text-sm`},Oe={key:1,class:`flex gap-1 items-center text-sm`},ke={key:0},Ae=[`loading`],je={slot:`content`},Me={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},Ne={class:`grid gap-3 p-5`},Pe={key:0,variant:`danger`,icon:`triangle-exclamation`},Fe={slot:`title`,class:`font-bold`},Ie=[`value`],Le={slot:`feedback`},Re={key:0,class:`error-list`},ze={slot:`feedback`},Be={key:0,class:`error-list`},Ve={slot:`input`},He=[`value`],Ue={key:0,slot:`after`},We={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},Ge={slot:`feedback`},Ke={key:0,class:`error-list`},qe={class:`grid gap-3 p-5`},Je={class:`font-bold text-sm`},Ye={class:`text-sm text-neutral-500 mb-2`},Xe={class:`grid gap-6 p-5`},Ze={class:`font-bold text-sm`},Qe={class:`text-sm text-neutral-500 mb-2`},$e={slot:`input`},et=[`value`],tt={key:0,slot:`after`},$={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},nt={class:`grid gap-3 p-5`},rt={slot:`feedback`},it={key:0,class:`error-list`},at={slot:`input`},ot=[`value`],st={class:`grid gap-3 p-5`},ct={class:`font-bold text-sm`},lt={class:`text-sm text-neutral-500 mb-2`},ut={class:`grid gap-3 p-5`},dt={slot:`feedback`},ft={key:0,class:`error-list`},pt=n({__name:`SettingsSectionsEditPage`,props:{title:{},crumbs:{},section:{},brandNew:{type:Boolean},typeOptions:{},entryTypes:{},propagationOptions:{},placementOptions:{},siteSettings:{},isMultiSite:{type:Boolean},headlessMode:{type:Boolean},flash:{},errors:{}},setup(t){let n=t,{readOnly:a}=N(),o=ee({sectionId:n.section.id,name:n.section.name??``,handle:n.section.handle??``,type:n.section.type,entryTypes:n.section.entryTypes?.map(e=>e.id)??[],enableVersioning:n.section.enableVersioning,maxAuthors:n.section.maxAuthors??1,maxLevels:n.section.maxLevels??``,propagationMethod:n.section.propagationMethod,defaultPlacement:n.section.defaultPlacement,previewTargets:n.section.previewTargets??[],sites:Object.fromEntries(n.siteSettings.map(e=>[e.handle,{enabled:e.enabled,siteId:e.siteId??null,name:e.name??``,singleHomepage:!1,singleUri:e.uriFormat??``,uriFormat:e.uriFormat??``,template:e.template??``,enabledByDefault:e.enabledByDefault}]))}),l=b(()=>o.type===`structure`),m=b(()=>o.type===`channel`||o.type===`structure`),h=z(()=>o.name,e=>o.handle=f(e)),g=z(()=>o.name,e=>{if(!o.sites)return;let t=d(e);o.sites=Object.fromEntries(Object.entries(o.sites).map(([e,n])=>[e,{...n,singleUri:t&&!n.singleHomepage?`${t}`:n.singleUri,uriFormat:t?`${t}/{slug}`:``,template:t?`${t}/_entry.twig`:``}]))});n.brandNew||(h.stop(),g.stop()),P(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),y())});function y(){o.clearErrors().submit(oe())}return(n,d)=>(i(),s(`form`,{onSubmit:v(y,[`prevent`])},[c(re,{title:t.title,debug:{form:_(o),$props:n.$props}},{actions:r(()=>[c(j,null,{default:r(()=>[_(o).recentlySuccessful&&t.flash?.success?(i(),s(`div`,De,[d[12]||=C(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),x(` `+e(t.flash.success),1)])):S(``,!0),_(o).hasErrors?(i(),s(`div`,Oe,[d[13]||=C(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),x(` `+e(_(T)(`Could not save settings`)),1)])):S(``,!0)]),_:1}),_(a)?S(``,!0):(i(),s(`craft-button-group`,ke,[C(`craft-button`,{type:`submit`,variant:`primary`,loading:_(o).processing},e(_(T)(`Save`)),9,Ae),C(`craft-action-menu`,null,[d[15]||=C(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[C(`craft-icon`,{name:`chevron-down`})],-1),C(`div`,je,[C(`craft-action-item`,{onClick:y},[x(e(_(T)(`Save and continue editing`))+` `,1),d[14]||=C(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)])])])]))]),default:r(()=>[C(`div`,Me,[_(a)?(i(),u(ie,{key:0})):S(``,!0),C(`div`,Ne,[_(o).hasErrors?(i(),s(`craft-callout`,Pe,[C(`div`,Fe,e(_(T)(`Could not save settings`)),1),C(`ul`,null,[(i(!0),s(p,null,w(_(o).errors,(t,n)=>(i(),s(`li`,{key:n},e(t),1))),128))])])):S(``,!0),t.section.id?(i(),s(`input`,{key:1,type:`hidden`,name:`sectionId`,value:t.section.id},null,8,Ie)):S(``,!0),c(L,{label:_(T)(`Name`),"help-text":_(T)(`What this section will be called in the control panel.`),id:`name`,name:`name`,modelValue:_(o).name,"onUpdate:modelValue":d[0]||=e=>_(o).name=e,disabled:_(a),"has-feedback-for":_(o).errors?.name?`error`:``,required:``,autofocus:``},{default:r(()=>[C(`div`,Le,[_(o).errors?.name?(i(),s(`ul`,Re,[C(`li`,null,e(_(o).errors.name),1)])):S(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),c(H,{label:_(T)(`Handle`),"help-text":_(T)(`How you'll refer to this section in the templates.`),id:`handle`,name:`handle`,modelValue:_(o).handle,"onUpdate:modelValue":d[1]||=e=>_(o).handle=e,disabled:_(a),"has-feedback-for":_(o).errors?.handle?`error`:``,required:``,onChange:d[2]||=e=>_(h).markDirty()},{default:r(()=>[C(`div`,ze,[_(o).errors?.handle?(i(),s(`ul`,Be,[C(`li`,null,e(_(o).errors.handle),1)])):S(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),c(ae,{label:_(T)(`Enable versioning for entries in this section`),id:`enableVersioning`,name:`enableVersioning`,disabled:_(a),modelValue:_(o).enableVersioning,"onUpdate:modelValue":d[3]||=e=>_(o).enableVersioning=e},null,8,[`label`,`disabled`,`modelValue`]),c(k,{label:_(T)(`Section Type`),"help-text":_(T)(`What type of section is this?`),id:`type`,name:`type`,modelValue:_(o).type,"onUpdate:modelValue":d[4]||=e=>_(o).type=e,disabled:_(a),"has-feedback-for":_(o).errors?.type?`error`:``},{default:r(()=>[C(`select`,Ve,[(i(!0),s(p,null,w(t.typeOptions,t=>(i(),s(`option`,{key:t.value,value:t.value},e(t.label),9,He))),128))]),t.section.id&&_(o).type!==`single`?(i(),s(`div`,Ue,[C(`craft-callout`,We,e(_(T)(`Changing this may result in data loss.`)),1)])):S(``,!0),C(`div`,Ge,[_(o).errors?.type?(i(),s(`ul`,Ke,[C(`li`,null,e(_(o).errors.type),1)])):S(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])]),d[17]||=C(`hr`,null,null,-1),C(`div`,qe,[C(`div`,null,[C(`h3`,Je,e(_(T)(`Entry Types`)),1),C(`p`,Ye,e(_(T)(`Choose the types of entries that can be included in this section.`)),1),c(xe,{types:t.entryTypes,modelValue:_(o).entryTypes,"onUpdate:modelValue":d[5]||=e=>_(o).entryTypes=e},null,8,[`types`,`modelValue`])])]),d[18]||=C(`hr`,null,null,-1),C(`div`,Xe,[C(`div`,null,[C(`h3`,Ze,e(_(T)(`Site settings`)),1),C(`p`,Qe,e(_(T)(`Choose which sites this section should be available in, and configure the site-specific settings.`)),1),c(Se,{"is-multisite":t.isMultiSite,"is-headless":t.headlessMode,"selected-type":_(o).type,modelValue:_(o).sites,"onUpdate:modelValue":d[6]||=e=>_(o).sites=e},null,8,[`is-multisite`,`is-headless`,`selected-type`,`modelValue`])]),t.isMultiSite&&m.value?(i(),u(k,{key:0,label:_(T)(`Propagation Method`),"help-text":_(T)(`Of the enabled sites above, which sites should entries in this section be saved to?`),id:`propagationMethod`,name:`propagationMethod`,modelValue:_(o).propagationMethod,"onUpdate:modelValue":d[7]||=e=>_(o).propagationMethod=e,disabled:_(a)},{default:r(()=>[C(`select`,$e,[(i(!0),s(p,null,w(t.propagationOptions,t=>(i(),s(`option`,{key:t.value,value:t.value},e(t.label),9,et))),128))]),t.section.id&&t.section.propagationMethod!==`none`&&t.siteSettings.length>1?(i(),s(`div`,tt,[C(`craft-callout`,$,e(_(T)(`Changing this may result in data loss.`)),1)])):S(``,!0)]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])):S(``,!0)]),l.value?(i(),s(p,{key:1},[d[16]||=C(`hr`,null,null,-1),C(`div`,nt,[c(L,{label:_(T)(`Max Levels`),"help-text":_(T)(`The maximum number of levels this section can have.`),id:`maxLevels`,name:`maxLevels`,modelValue:_(o).maxLevels,"onUpdate:modelValue":d[8]||=e=>_(o).maxLevels=e,disabled:_(a),inputmode:`numeric`,size:`5`,"has-feedback-for":_(o).errors?.maxLevels?`error`:``},{default:r(()=>[C(`div`,rt,[_(o).errors?.maxLevels?(i(),s(`ul`,it,[C(`li`,null,e(_(o).errors.maxLevels),1)])):S(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`]),c(k,{label:_(T)(`Default {type} Placement`,{type:_(T)(`Entry`)}),"help-text":_(T)(`Where new {type} should be placed by default in the structure.`,{type:_(T)(`entries`)}),id:`defaultPlacement`,name:`defaultPlacement`,modelValue:_(o).defaultPlacement,"onUpdate:modelValue":d[9]||=e=>_(o).defaultPlacement=e,disabled:_(a)},{default:r(()=>[C(`select`,at,[(i(!0),s(p,null,w(t.placementOptions,t=>(i(),s(`option`,{key:t.value,value:t.value},e(t.label),9,ot))),128))])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`])])],64)):S(``,!0),d[19]||=C(`hr`,null,null,-1),C(`div`,st,[C(`div`,null,[C(`h3`,ct,e(_(T)(`Preview Targets`)),1),C(`p`,lt,e(_(T)(`Locations that should be available for previewing entries in this section.`)),1),c(Ee,{modelValue:_(o).previewTargets,"onUpdate:modelValue":d[10]||=e=>_(o).previewTargets=e,disabled:_(a)},null,8,[`modelValue`,`disabled`])])]),d[20]||=C(`hr`,null,null,-1),C(`div`,ut,[c(L,{label:_(T)(`Max Authors`),"help-text":_(T)(`The maximum number of authors that entries in this section can have.`),id:`maxAuthors`,name:`maxAuthors`,modelValue:_(o).maxAuthors,"onUpdate:modelValue":d[11]||=e=>_(o).maxAuthors=e,disabled:_(a),inputmode:`numeric`,maxlength:`5`,"has-feedback-for":_(o).errors?.maxAuthors?`error`:``},{default:r(()=>[C(`div`,dt,[_(o).errors?.maxAuthors?(i(),s(`ul`,ft,[C(`li`,null,e(_(o).errors.maxAuthors),1)])):S(``,!0)])]),_:1},8,[`label`,`help-text`,`modelValue`,`disabled`,`has-feedback-for`])])])]),_:1},8,[`title`,`debug`])],32))}});export{pt as default}; \ No newline at end of file diff --git a/resources/build/SettingsSectionsIndexPage.js b/resources/build/SettingsSectionsIndexPage.js index 05122d00b09..99486645dda 100644 --- a/resources/build/SettingsSectionsIndexPage.js +++ b/resources/build/SettingsSectionsIndexPage.js @@ -1 +1 @@ -import{$ as e,E as t,J as n,L as r,S as i,T as a,b as o,i as s,it as c,k as l,lt as u,m as d,s as f,ut as p,v as m,w as h,y as g}from"./_plugin-vue_export-helper.js";import{r as _}from"./nav-item-9g3ebwBJ.js";import{a as v,o as y,s as b,t as x}from"./AdminTable.js";import{t as S}from"./Pane.js";import{a as C}from"./useAnnouncer.js";import{t as w}from"./AppLayout.js";import{i as T,n as E,r as D,t as O}from"./SectionsController.js";var k=[`loading`],A=[`label`],j=t({__name:`DeleteSectionButton`,props:{section:{}},setup(e){let t=e,n=f({id:t.section.id});function a(){confirm(_(`Are you sure you want to delete “{name}” and all its entries?`,{name:t.section.name}))&&n.submit(E())}return(e,t)=>(r(),i(`form`,{onSubmit:d(a,[`prevent`]),method:`post`},[g(`craft-button`,{variant:`danger`,type:`submit`,size:`small`,icon:``,appearance:`plain`,loading:u(n).processing},[g(`craft-icon`,{label:u(_)(`Delete section`),name:`x`},null,8,A)],8,k)],32))}}),M={class:`flex gap-1 items-center`},N=[`label`,`value`],P=[`loading`],F=t({__name:`SettingsSectionsIndexPage`,props:{title:{},data:{},pagination:{},sort:{},searchTerm:{},emptyMessage:{},readOnly:{type:Boolean}},setup(t){let i=t,d=y(),f=c([d.accessor(`name`,{header:_(`Name`),cell:({row:e,getValue:t})=>l(`a`,{class:`font-bold`,href:D[`/admin/settings/sections/{section}`](e.original.id).url},t())}),d.accessor(`handle`,{header:_(`Handle`),cell:({getValue:e})=>l(`craft-copy-attribute`,{value:e()},e())}),d.accessor(`type`,{header:_(`Type`)}),d.display({id:`actions`,cell:({row:e})=>l(`div`,{class:`flex justify-end items-center gap-2`},l(j,{section:e.original}))})]),E=m(()=>i.pagination.current_page?i.pagination.current_page-1:0),k=window.Craft?.pageTrigger??`page`,A=c({pageIndex:E.value,pageSize:i.pagination.per_page}),F=c(i.sort?i.sort.map(e=>({id:e.field,desc:e.direction===`desc`})):[]),I=v({get data(){return i.data},get columns(){return f.value},getCoreRowModel:b(),manualPagination:!0,manualSorting:!0,rowCount:i.pagination.total,enableMultiSort:!0,enableSortingRemoval:!1,state:{get pagination(){return A.value},get sorting(){return F.value}},onSortingChange:e=>{let t=(typeof e==`function`?e(F.value):e).reduce((e,t,n)=>(e[n]={field:t.id,direction:t.desc?`desc`:`asc`},e),{}),n=new URLSearchParams(window.location.search);p.visit(T({query:{...Object.fromEntries(n),sort:t,[k]:1}}),{only:[`data`,`sort`],preserveScroll:!0})},onPaginationChange:e=>{let t=typeof e==`function`?e(A.value):e,n=new URLSearchParams(window.location.search);p.visit(T({query:{...Object.fromEntries(n),[k]:t.pageIndex+1,per_page:t.pageSize}}),{only:[`data`,`pagination`],preserveScroll:!0})}});return(i,c)=>(r(),o(w,{title:t.title},{actions:n(()=>[a(C,{as:`craft-button`,variant:`primary`,href:u(O)()},{default:n(()=>[c[0]||=g(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),h(` `+e(u(_)(`New section`)),1)]),_:1},8,[`href`])]),default:n(()=>[a(S,{padding:0,appearance:`raised`},{default:n(()=>[a(x,{spacing:`relaxed`,title:t.title,table:u(I),reorderable:!1,from:t.pagination.from,to:t.pagination.to,total:t.pagination.total,"enable-adjust-page-size":!0},{"search-form":n(()=>[a(u(s),{action:u(T)()},{default:n(({processing:n})=>[g(`div`,M,[g(`craft-input`,{name:`search`,label:u(_)(`Search term`),value:t.searchTerm,"label-sr-only":``},null,8,N),g(`craft-button`,{type:`submit`,loading:n},e(u(_)(`Search`)),9,P)])]),_:1},8,[`action`])]),_:1},8,[`title`,`table`,`from`,`to`,`total`])]),_:1})]),_:1},8,[`title`]))}});export{F as default}; \ No newline at end of file +import{$ as e,E as t,J as n,L as r,S as i,T as a,b as o,i as s,it as c,k as l,lt as u,m as d,s as f,ut as p,v as m,w as h,x as g,y as _}from"./_plugin-vue_export-helper.js";import{r as v}from"./nav-item-9g3ebwBJ.js";import{a as y,o as b,s as x,t as S}from"./AdminTable.js";import{t as C}from"./Pane.js";import{a as w}from"./useAnnouncer.js";import{c as T}from"./dist.js";import{t as E}from"./AppLayout.js";import{t as D}from"./CalloutReadOnly.js";import{i as O,n as k,r as A,t as j}from"./SectionsController.js";var M=[`loading`],N=[`label`],P=t({__name:`DeleteSectionButton`,props:{section:{}},setup(e){let t=e,n=f({id:t.section.id});function a(){confirm(v(`Are you sure you want to delete “{name}” and all its entries?`,{name:t.section.name}))&&n.submit(k())}return(e,t)=>(r(),i(`form`,{onSubmit:d(a,[`prevent`]),method:`post`},[_(`craft-button`,{variant:`danger`,type:`submit`,size:`small`,icon:``,appearance:`plain`,loading:u(n).processing},[_(`craft-icon`,{label:u(v)(`Delete section`),name:`x`},null,8,N)],8,M)],32))}}),F={class:`flex gap-1 items-center`},I=[`label`,`value`],L=[`loading`],R=t({__name:`SettingsSectionsIndexPage`,props:{title:{},data:{},pagination:{},sort:{},searchTerm:{},emptyMessage:{}},setup(t){let i=t,{readOnly:d}=T(),f=b(),k=c([f.accessor(`name`,{header:v(`Name`),cell:({row:e,getValue:t})=>l(`a`,{class:`font-bold`,href:A[`/admin/settings/sections/{section}`](e.original.id).url},t())}),f.accessor(`handle`,{header:v(`Handle`),cell:({getValue:e})=>l(`craft-copy-attribute`,{value:e()},e())}),f.accessor(`type`,{header:v(`Type`)}),f.display({id:`actions`,cell:({row:e})=>l(`div`,{class:`flex justify-end items-center gap-2`},l(P,{section:e.original}))})]),M=m(()=>i.pagination.current_page?i.pagination.current_page-1:0),N=window.Craft?.pageTrigger??`page`,R=c({pageIndex:M.value,pageSize:i.pagination.per_page}),z=c(i.sort?i.sort.map(e=>({id:e.field,desc:e.direction===`desc`})):[]),B=y({get data(){return i.data},get columns(){return k.value},getCoreRowModel:x(),manualPagination:!0,manualSorting:!0,rowCount:i.pagination.total,enableMultiSort:!0,enableSortingRemoval:!1,state:{get pagination(){return R.value},get sorting(){return z.value},get columnVisibility(){return{actions:!d}}},onSortingChange:e=>{let t=(typeof e==`function`?e(z.value):e).reduce((e,t,n)=>(e[n]={field:t.id,direction:t.desc?`desc`:`asc`},e),{}),n=new URLSearchParams(window.location.search);p.visit(O({query:{...Object.fromEntries(n),sort:t,[N]:1}}),{only:[`data`,`sort`],preserveScroll:!0})},onPaginationChange:e=>{let t=typeof e==`function`?e(R.value):e,n=new URLSearchParams(window.location.search);p.visit(O({query:{...Object.fromEntries(n),[N]:t.pageIndex+1,per_page:t.pageSize}}),{only:[`data`,`pagination`],preserveScroll:!0})}});return(i,c)=>(r(),o(E,{title:t.title},{actions:n(()=>[u(d)?g(``,!0):(r(),o(w,{key:0,as:`craft-button`,variant:`primary`,href:u(j)()},{default:n(()=>[c[0]||=_(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),h(` `+e(u(v)(`New section`)),1)]),_:1},8,[`href`]))]),default:n(()=>[u(d)?(r(),o(D,{key:0})):g(``,!0),a(C,{padding:0,appearance:`raised`},{default:n(()=>[a(S,{spacing:`relaxed`,title:t.title,table:u(B),reorderable:!1,from:t.pagination.from,to:t.pagination.to,total:t.pagination.total,"enable-adjust-page-size":!0},{"search-form":n(()=>[a(u(s),{action:u(O)()},{default:n(({processing:n})=>[_(`div`,F,[_(`craft-input`,{name:`search`,label:u(v)(`Search term`),value:t.searchTerm,"label-sr-only":``},null,8,I),_(`craft-button`,{type:`submit`,loading:n},e(u(v)(`Search`)),9,L)])]),_:1},8,[`action`])]),_:1},8,[`title`,`table`,`from`,`to`,`total`])]),_:1})]),_:1},8,[`title`]))}});export{R as default}; \ No newline at end of file diff --git a/resources/build/SettingsSitesEdit.js b/resources/build/SettingsSitesEdit.js index 3ae9b820322..430fc0301cc 100644 --- a/resources/build/SettingsSitesEdit.js +++ b/resources/build/SettingsSitesEdit.js @@ -1 +1 @@ -import{$ as e,E as t,G as n,J as r,L as i,S as a,T as o,Y as s,b as c,ft as l,h as u,it as d,l as f,lt as p,m,p as h,pt as ee,s as g,v as _,w as v,x as y,y as b,z as x}from"./_plugin-vue_export-helper.js";import{r as S}from"./nav-item-9g3ebwBJ.js";import{n as C}from"./useAnnouncer.js";import{n as w}from"./ModalForm.js";import{n as T}from"./dist.js";import{t as E}from"./InputCombobox.js";import{t as D}from"./CraftCombobox.js";import{t as O}from"./AppLayout.js";import{t as k}from"./CalloutReadOnly.js";import{t as A}from"./useInputGenerator.js";import{a as j,t as M}from"./DeleteSiteModal.js";var te={key:0,variant:`danger`,icon:`triangle-exclamation`},ne={slot:`title`,class:`tw:font-bold`},re=[`label`,`help-text`,`.modelValue`],ie={slot:`input`},ae=[`value`],N={key:0,class:`error-list`,slot:`feedback`},P={key:1,slot:`after`},F={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},I={class:`sr-only`},L=[`label`,`disabled`],R={slot:`after`},z={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},B={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},V={slot:`feedback`},H={key:0,class:`error-list`},U=[`label`,`help-text`,`has-feedback-for`],W={slot:`feedback`},G={key:0,class:`error-list`},K=[`innerHTML`],q=[`label`,`disabled`,`has-feedback-for`],J=[`active`,`checked`,`hint`],oe={class:`inline-flex items-center gap-1`},se=[`variant`],ce={key:0},le={key:1},ue={slot:`after`},de={key:0,variant:`warning`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},fe=[`innerHTML`],pe={slot:`feedback`},me={key:0,class:`error-list`},he=[`label`,`help-text`,`disabled`,`checked`],ge=[`label`,`disabled`,`checked`],_e={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},Y={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},X=t({__name:`SiteFields`,props:{inertiaForm:{},readOnly:{type:Boolean,default:!1}},setup(t){let d=t,m=f();function g(e){return e.value.startsWith(`$`)||e.value.startsWith(`@`)?{...e,data:{...e.data||{},hint:e.data?.boolean===`1`?S(`Enabled`):S(`Disabled`)}}:e}let C=_(()=>d.inertiaForm),w=_(()=>m.props.isMultisite),T=_(()=>m.props.groupOptions),O=_(()=>m.props.nameSuggestions),k=_(()=>m.props.languageOptions),j=_(()=>m.props.booleanEnvOptions.map(e=>e.type===`optgroup`?{...e,options:e.options.map(g)}:g(e))),M=_(()=>m.props.baseUrlSuggestions),X=_(()=>m.props.site);n(`handle`),n(`baseUrl`);let Z=_({get(){return C.value.enabled?`1`:`0`},set(e){C.value.enabled=e}}),Q=A(()=>C.value.name,e=>C.value.handle=l(e)),$=A(()=>C.value.name,e=>C.value.baseUrl=ee(e,{prefix:`$`,suffix:`_URL`}));return C.value.id&&(Q.stop(),$.stop()),(n,l)=>(i(),a(u,null,[C.value?.hasErrors?(i(),a(`craft-callout`,te,[b(`div`,ne,e(p(S)(`Could not save settings`)),1),b(`ul`,null,[(i(!0),a(u,null,x(C.value.errors,(t,n)=>(i(),a(`li`,{key:n},e(t),1))),128))])])):y(``,!0),C.value.id?s((i(),a(`input`,{key:1,name:`id`,"onUpdate:modelValue":l[0]||=e=>C.value.id=e,type:`hidden`},null,512)),[[h,C.value.id]]):y(``,!0),b(`craft-select`,{label:p(S)(`Group`),"help-text":p(S)(`Which group should this site belong to?`),name:`group`,id:`group`,".modelValue":C.value.group,onModelValueChanged:l[1]||=e=>C.value.group=e.target?.modelValue},[b(`select`,ie,[(i(!0),a(u,null,x(T.value,t=>(i(),a(`option`,{key:t.value,value:t.value},e(t.label),9,ae))),128))]),C.value.errors?.group?(i(),a(`ul`,N,[(i(!0),a(u,null,x(C.value.errors?.group,t=>(i(),a(`li`,null,e(t),1))),256))])):y(``,!0),C.value?.id&&w.value?(i(),a(`div`,P,[b(`craft-callout`,F,[b(`span`,I,e(p(S)(`Warning:`)),1),v(` `+e(p(S)(`Changing this may result in data loss.`)),1)])])):y(``,!0)],40,re),b(`craft-input`,{label:p(S)(`Name`),id:`name`,name:`name`,disabled:t.readOnly},[o(E,{slot:`input`,modelValue:C.value.name,"onUpdate:modelValue":l[2]||=e=>C.value.name=e,options:O.value},null,8,[`modelValue`,`options`]),b(`div`,R,[b(`craft-callout`,z,[v(e(p(S)(`This can begin with an environment variable.`))+` `,1),b(`a`,B,e(p(S)(`Learn more`)),1)])]),b(`div`,V,[C.value.errors?.name?(i(),a(`ul`,H,[b(`li`,null,e(C.value.errors.name),1)])):y(``,!0)])],8,L),s(b(`craft-input-handle`,{label:p(S)(`Handle`),"help-text":p(S)(`How you’ll refer to this site in the templates.`),ref:`handle`,id:`handle`,name:`handle`,"has-feedback-for":C.value.errors?.handle?`error`:``,"onUpdate:modelValue":l[3]||=e=>C.value.handle=e},[b(`div`,W,[C.value.errors?.handle?(i(),a(`ul`,G,[b(`li`,null,e(C.value.errors.handle),1)])):y(``,!0)])],8,U),[[h,C.value.handle]]),o(D,{modelValue:C.value.language,"onUpdate:modelValue":l[4]||=e=>C.value.language=e,label:p(S)(`Language`),name:`language`,id:`site-language`,"help-text":p(S)(`The language content in this site will use.`),disabled:t.readOnly,error:C.value.errors?.language,options:k.value},{after:r(()=>[b(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:p(S)(`This can be set to an environment variable with a valid language ID ({examples}).`,{examples:`en/en-GB`})},null,8,K)]),_:1},8,[`modelValue`,`label`,`help-text`,`disabled`,`error`,`options`]),w.value||!X.value.id?(i(),a(`craft-input`,{key:2,label:p(S)(`Status`),name:`enabled`,id:`enabled`,disabled:t.readOnly,"has-feedback-for":C.value.errors?.enabled?`error`:``},[o(E,{slot:`input`,modelValue:Z.value,"onUpdate:modelValue":l[5]||=e=>Z.value=e,options:j.value,"require-option-match":!0},{option:r(({active:t,selected:n,option:r})=>[b(`craft-option`,{active:t,checked:n,hint:r.data?.hint},[b(`div`,oe,[b(`craft-indicator`,{variant:r.data?.boolean===`1`?`success`:`empty`},null,8,se),r.label.startsWith(`$`)||r.label.startsWith(`@`)?(i(),a(`code`,ce,e(r.label),1)):(i(),a(`span`,le,e(r.label),1))])],8,J)]),_:1},8,[`modelValue`,`options`]),b(`div`,ue,[X.value.primary?(i(),a(`craft-callout`,de,e(p(S)(`The primary site cannot be disabled.`)),1)):y(``,!0),b(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:p(S)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,fe)]),b(`div`,pe,[C.value.errors?.enabled?(i(),a(`ul`,me,[b(`li`,null,e(C.value.errors.enabled),1)])):y(``,!0)])],8,q)):y(``,!0),(w.value||!X.value.id)&&!X.value.primary?(i(),a(u,{key:3},[X.value.primary?y(``,!0):(i(),a(`craft-switch`,{key:0,label:p(S)(`Make this the primary site`),"help-text":p(S)(`The primary site will be loaded by default on the front end.`),disabled:t.readOnly,checked:C.value.primary,onCheckedChanged:l[6]||=e=>C.value.primary=e.target?.checked},null,40,he))],64)):y(``,!0),b(`craft-switch`,{label:p(S)(`This site has its own base URL`),id:`has-urls`,name:`hasUrls`,disabled:t.readOnly,checked:C.value.hasUrls,onCheckedChanged:l[7]||=e=>C.value.hasUrls=e.target?.checked},null,40,ge),C.value.hasUrls?(i(),c(D,{key:4,modelValue:C.value.baseUrl,"onUpdate:modelValue":l[8]||=e=>C.value.baseUrl=e,label:p(S)(`Base URL`),"help-text":p(S)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:C.value.errors?.baseUrl,disabled:t.readOnly,options:M.value},{after:r(()=>[b(`craft-callout`,_e,[v(e(p(S)(`This can begin with an environment variable or alias.`))+` `,1),b(`a`,Y,e(p(S)(`Learn more`)),1)])]),_:1},8,[`modelValue`,`label`,`help-text`,`error`,`disabled`,`options`])):y(``,!0)],64))}}),Z={key:0,size:`small`,inline:``},Q={key:0,class:`flex gap-1 items-center text-sm`},$={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},ve={key:0},ye=[`loading`],be={slot:`content`},xe={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},Se={class:`grid gap-3 p-5`},Ce=t({__name:`SettingsSitesEdit`,props:{title:{},crumbs:{},readOnly:{type:Boolean},site:{},groupId:{},flash:{},errors:{},isMultisite:{type:Boolean}},setup(t){let n=t,s=g({siteId:n.site.id??null,group:n.groupId,name:n.site.nameRaw,handle:n.site.handle,language:n.site.languageRaw,enabled:n.site.enabledRaw,hasUrls:n.site.hasUrls,primary:n.site.primary,baseUrl:n.site.baseUrlRaw??``});T(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),l())});function l(){s.clearErrors().submit(j())}let f=d(!1);return(d,h)=>(i(),a(u,null,[b(`form`,{onSubmit:m(l,[`prevent`])},[o(O,{title:t.title,debug:d.$props},{"title-badge":r(()=>[o(w,{variant:t.site.enabled?`success`:`default`},{default:r(()=>[v(e(t.site.enabled?p(S)(`Enabled`):p(S)(`Disabled`)),1)]),_:1},8,[`variant`]),t.site.primary?(i(),a(`craft-callout`,Z,[b(`span`,null,e(p(S)(`Primary`)),1)])):y(``,!0)]),actions:r(()=>[o(C,null,{default:r(()=>[p(s).recentlySuccessful&&t.flash?.success?(i(),a(`div`,Q,[h[2]||=b(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),v(` `+e(t.flash.success),1)])):y(``,!0),p(s).hasErrors?(i(),a(`div`,$,[h[3]||=b(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),v(` `+e(p(S)(`Could not save settings`)),1)])):y(``,!0)]),_:1}),t.readOnly?y(``,!0):(i(),a(`craft-button-group`,ve,[b(`craft-button`,{type:`submit`,variant:`primary`,loading:p(s).processing},e(p(S)(`Save`)),9,ye),b(`craft-action-menu`,null,[h[6]||=b(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[b(`craft-icon`,{name:`chevron-down`})],-1),b(`div`,be,[b(`craft-action-item`,{onClick:l},[v(e(p(S)(`Save and continue editing`))+` `,1),h[4]||=b(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)]),t.site.id&&!t.site.primary?(i(),a(u,{key:0},[h[5]||=b(`hr`,null,null,-1),b(`craft-action-item`,{onClick:h[0]||=e=>f.value=!0,variant:`danger`},e(p(S)(`Delete site`)),1)],64)):y(``,!0)])])]))]),default:r(()=>[b(`div`,xe,[t.readOnly?(i(),c(k,{key:0})):y(``,!0),b(`div`,Se,[o(X,{"inertia-form":p(s),"read-only":t.readOnly},null,8,[`inertia-form`,`read-only`])])])]),_:1},8,[`title`,`debug`])],32),t.site.primary?y(``,!0):(i(),c(M,{key:0,onClose:h[1]||=e=>f.value=!1,open:f.value,site:n.site},null,8,[`open`,`site`]))],64))}});export{Ce as default}; \ No newline at end of file +import{$ as e,E as t,G as n,J as r,L as i,S as a,T as o,Y as s,b as c,ft as l,h as u,it as d,l as f,lt as p,m,p as h,pt as g,s as _,v,w as y,x as b,y as x,z as S}from"./_plugin-vue_export-helper.js";import{r as C}from"./nav-item-9g3ebwBJ.js";import{n as w}from"./useAnnouncer.js";import{n as T}from"./ModalForm.js";import{c as E,n as D}from"./dist.js";import{t as O}from"./InputCombobox.js";import{t as k}from"./CraftCombobox.js";import{t as A}from"./AppLayout.js";import{t as j}from"./CalloutReadOnly.js";import{t as M}from"./useInputGenerator.js";import{a as N,t as P}from"./DeleteSiteModal.js";var ee={key:0,variant:`danger`,icon:`triangle-exclamation`},te={slot:`title`,class:`tw:font-bold`},ne=[`label`,`help-text`,`.modelValue`,`disabled`],re={slot:`input`},ie=[`value`],ae={key:0,class:`error-list`,slot:`feedback`},oe={key:1,slot:`after`},F={variant:`danger`,appearance:`plain`,class:`p-0`,icon:`triangle-exclamation`},I={class:`sr-only`},L=[`label`,`disabled`],R={slot:`after`},z={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},B={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},V={slot:`feedback`},H={key:0,class:`error-list`},U=[`label`,`help-text`,`has-feedback-for`,`disabled`],W={slot:`feedback`},G={key:0,class:`error-list`},K=[`innerHTML`],q=[`label`,`disabled`,`has-feedback-for`],se=[`active`,`checked`,`hint`],ce={class:`inline-flex items-center gap-1`},le=[`variant`],ue={key:0},de={key:1},fe={slot:`after`},pe={key:0,variant:`warning`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},me=[`innerHTML`],he={slot:`feedback`},ge={key:0,class:`error-list`},_e=[`label`,`help-text`,`disabled`,`checked`],ve=[`label`,`disabled`,`checked`],J={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},ye={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},Y=t({__name:`SiteFields`,props:{inertiaForm:{}},setup(t){let d=t,m=f(),{readOnly:_}=E();function w(e){return e.value.startsWith(`$`)||e.value.startsWith(`@`)?{...e,data:{...e.data||{},hint:e.data?.boolean===`1`?C(`Enabled`):C(`Disabled`)}}:e}let T=v(()=>d.inertiaForm),D=v(()=>m.props.isMultisite),A=v(()=>m.props.groupOptions),j=v(()=>m.props.nameSuggestions),N=v(()=>m.props.languageOptions),P=v(()=>m.props.booleanEnvOptions.map(e=>e.type===`optgroup`?{...e,options:e.options.map(w)}:w(e))),Y=v(()=>m.props.baseUrlSuggestions),X=v(()=>m.props.site);n(`handle`),n(`baseUrl`);let Z=v({get(){return T.value.enabled?`1`:`0`},set(e){T.value.enabled=e}}),Q=M(()=>T.value.name,e=>T.value.handle=l(e)),$=M(()=>T.value.name,e=>T.value.baseUrl=g(e,{prefix:`$`,suffix:`_URL`}));return T.value.id&&(Q.stop(),$.stop()),(t,n)=>(i(),a(u,null,[T.value?.hasErrors?(i(),a(`craft-callout`,ee,[x(`div`,te,e(p(C)(`Could not save settings`)),1),x(`ul`,null,[(i(!0),a(u,null,S(T.value.errors,(t,n)=>(i(),a(`li`,{key:n},e(t),1))),128))])])):b(``,!0),T.value.id?s((i(),a(`input`,{key:1,name:`id`,"onUpdate:modelValue":n[0]||=e=>T.value.id=e,type:`hidden`},null,512)),[[h,T.value.id]]):b(``,!0),x(`craft-select`,{label:p(C)(`Group`),"help-text":p(C)(`Which group should this site belong to?`),name:`group`,id:`group`,".modelValue":T.value.group,onModelValueChanged:n[1]||=e=>T.value.group=e.target?.modelValue,disabled:p(_)},[x(`select`,re,[(i(!0),a(u,null,S(A.value,t=>(i(),a(`option`,{key:t.value,value:t.value},e(t.label),9,ie))),128))]),T.value.errors?.group?(i(),a(`ul`,ae,[(i(!0),a(u,null,S(T.value.errors?.group,t=>(i(),a(`li`,null,e(t),1))),256))])):b(``,!0),T.value?.id&&D.value?(i(),a(`div`,oe,[x(`craft-callout`,F,[x(`span`,I,e(p(C)(`Warning:`)),1),y(` `+e(p(C)(`Changing this may result in data loss.`)),1)])])):b(``,!0)],40,ne),x(`craft-input`,{label:p(C)(`Name`),id:`name`,name:`name`,disabled:p(_)},[o(O,{slot:`input`,modelValue:T.value.name,"onUpdate:modelValue":n[2]||=e=>T.value.name=e,options:j.value},null,8,[`modelValue`,`options`]),x(`div`,R,[x(`craft-callout`,z,[y(e(p(C)(`This can begin with an environment variable.`))+` `,1),x(`a`,B,e(p(C)(`Learn more`)),1)])]),x(`div`,V,[T.value.errors?.name?(i(),a(`ul`,H,[x(`li`,null,e(T.value.errors.name),1)])):b(``,!0)])],8,L),s(x(`craft-input-handle`,{label:p(C)(`Handle`),"help-text":p(C)(`How you’ll refer to this site in the templates.`),ref:`handle`,id:`handle`,name:`handle`,"has-feedback-for":T.value.errors?.handle?`error`:``,disabled:p(_),"onUpdate:modelValue":n[3]||=e=>T.value.handle=e},[x(`div`,W,[T.value.errors?.handle?(i(),a(`ul`,G,[x(`li`,null,e(T.value.errors.handle),1)])):b(``,!0)])],8,U),[[h,T.value.handle]]),o(k,{modelValue:T.value.language,"onUpdate:modelValue":n[4]||=e=>T.value.language=e,label:p(C)(`Language`),name:`language`,id:`site-language`,"help-text":p(C)(`The language content in this site will use.`),disabled:p(_),error:T.value.errors?.language,options:N.value},{after:r(()=>[x(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:p(C)(`This can be set to an environment variable with a valid language ID ({examples}).`,{examples:`en/en-GB`})},null,8,K)]),_:1},8,[`modelValue`,`label`,`help-text`,`disabled`,`error`,`options`]),D.value||!X.value.id?(i(),a(`craft-input`,{key:2,label:p(C)(`Status`),name:`enabled`,id:`enabled`,disabled:p(_),"has-feedback-for":T.value.errors?.enabled?`error`:``},[o(O,{slot:`input`,modelValue:Z.value,"onUpdate:modelValue":n[5]||=e=>Z.value=e,options:P.value,"require-option-match":!0},{option:r(({active:t,selected:n,option:r})=>[x(`craft-option`,{active:t,checked:n,hint:r.data?.hint},[x(`div`,ce,[x(`craft-indicator`,{variant:r.data?.boolean===`1`?`success`:`empty`},null,8,le),r.label.startsWith(`$`)||r.label.startsWith(`@`)?(i(),a(`code`,ue,e(r.label),1)):(i(),a(`span`,de,e(r.label),1))])],8,se)]),_:1},8,[`modelValue`,`options`]),x(`div`,fe,[X.value.primary?(i(),a(`craft-callout`,pe,e(p(C)(`The primary site cannot be disabled.`)),1)):b(``,!0),x(`craft-callout`,{variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`,innerHTML:p(C)(`This can be set to an environment variable with a boolean value ({examples})`,{examples:`yes/no/true/false/on/off/0/1`})},null,8,me)]),x(`div`,he,[T.value.errors?.enabled?(i(),a(`ul`,ge,[x(`li`,null,e(T.value.errors.enabled),1)])):b(``,!0)])],8,q)):b(``,!0),(D.value||!X.value.id)&&!X.value.primary?(i(),a(u,{key:3},[X.value.primary?b(``,!0):(i(),a(`craft-switch`,{key:0,label:p(C)(`Make this the primary site`),"help-text":p(C)(`The primary site will be loaded by default on the front end.`),disabled:p(_),checked:T.value.primary,onCheckedChanged:n[6]||=e=>T.value.primary=e.target?.checked},null,40,_e))],64)):b(``,!0),x(`craft-switch`,{label:p(C)(`This site has its own base URL`),id:`has-urls`,name:`hasUrls`,disabled:p(_),checked:T.value.hasUrls,onCheckedChanged:n[7]||=e=>T.value.hasUrls=e.target?.checked},null,40,ve),T.value.hasUrls?(i(),c(k,{key:4,modelValue:T.value.baseUrl,"onUpdate:modelValue":n[8]||=e=>T.value.baseUrl=e,label:p(C)(`Base URL`),"help-text":p(C)(`The base URL for the site.`),id:`base-url`,name:`baseUrl`,error:T.value.errors?.baseUrl,disabled:p(_),options:Y.value},{after:r(()=>[x(`craft-callout`,J,[y(e(p(C)(`This can begin with an environment variable or alias.`))+` `,1),x(`a`,ye,e(p(C)(`Learn more`)),1)])]),_:1},8,[`modelValue`,`label`,`help-text`,`error`,`disabled`,`options`])):b(``,!0)],64))}}),X={key:0,size:`small`,inline:``},Z={key:0,class:`flex gap-1 items-center text-sm`},Q={key:1,class:`tw:flex tw:gap-1 tw:items-center tw:text-sm`},$={key:0},be=[`loading`],xe={slot:`content`},Se={class:`bg-white border border-neutral-border-quiet rounded-sm shadow-sm`},Ce={class:`grid gap-3 p-5`},we=t({__name:`SettingsSitesEdit`,props:{title:{},crumbs:{},site:{},groupId:{},flash:{},errors:{},isMultisite:{type:Boolean}},setup(t){let n=t,s=_({siteId:n.site.id??null,group:n.groupId,name:n.site.nameRaw,handle:n.site.handle,language:n.site.languageRaw,enabled:n.site.enabledRaw,hasUrls:n.site.hasUrls,primary:n.site.primary,baseUrl:n.site.baseUrlRaw??``}),{readOnly:l}=E();D(`keydown`,e=>{(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),f())});function f(){s.clearErrors().submit(N())}let h=d(!1);return(d,g)=>(i(),a(u,null,[x(`form`,{onSubmit:m(f,[`prevent`])},[o(A,{title:t.title,debug:d.$props},{"title-badge":r(()=>[o(T,{variant:t.site.enabled?`success`:`default`},{default:r(()=>[y(e(t.site.enabled?p(C)(`Enabled`):p(C)(`Disabled`)),1)]),_:1},8,[`variant`]),t.site.primary?(i(),a(`craft-callout`,X,[x(`span`,null,e(p(C)(`Primary`)),1)])):b(``,!0)]),actions:r(()=>[o(w,null,{default:r(()=>[p(s).recentlySuccessful&&t.flash?.success?(i(),a(`div`,Z,[g[2]||=x(`craft-icon`,{name:`circle-check`,style:{color:`var(--c-color-success-fill-loud)`}},null,-1),y(` `+e(t.flash.success),1)])):b(``,!0),p(s).hasErrors?(i(),a(`div`,Q,[g[3]||=x(`craft-icon`,{name:`triangle-exclamation`,style:{color:`var(--c-color-danger-fill-loud)`}},null,-1),y(` `+e(p(C)(`Could not save settings`)),1)])):b(``,!0)]),_:1}),p(l)?b(``,!0):(i(),a(`craft-button-group`,$,[x(`craft-button`,{type:`submit`,variant:`primary`,loading:p(s).processing},e(p(C)(`Save`)),9,be),x(`craft-action-menu`,null,[g[6]||=x(`craft-button`,{slot:`invoker`,variant:`primary`,type:`button`,icon:``},[x(`craft-icon`,{name:`chevron-down`})],-1),x(`div`,xe,[x(`craft-action-item`,{onClick:f},[y(e(p(C)(`Save and continue editing`))+` `,1),g[4]||=x(`craft-shortcut`,{slot:`suffix`,class:`ml-2`},`S`,-1)]),t.site.id&&!t.site.primary?(i(),a(u,{key:0},[g[5]||=x(`hr`,null,null,-1),x(`craft-action-item`,{onClick:g[0]||=e=>h.value=!0,variant:`danger`},e(p(C)(`Delete site`)),1)],64)):b(``,!0)])])]))]),default:r(()=>[x(`div`,Se,[p(l)?(i(),c(j,{key:0})):b(``,!0),x(`div`,Ce,[o(Y,{"inertia-form":p(s)},null,8,[`inertia-form`])])])]),_:1},8,[`title`,`debug`])],32),t.site.primary?b(``,!0):(i(),c(P,{key:0,onClose:g[1]||=e=>h.value=!1,open:h.value,site:n.site},null,8,[`open`,`site`]))],64))}});export{we as default}; \ No newline at end of file diff --git a/resources/build/SettingsSitesIndex.js b/resources/build/SettingsSitesIndex.js index 743f9e85a3f..52b7dcb755b 100644 --- a/resources/build/SettingsSitesIndex.js +++ b/resources/build/SettingsSitesIndex.js @@ -1 +1 @@ -import{$ as e,E as t,J as n,K as r,L as i,P as a,S as o,T as s,Y as ee,b as c,h as l,it as u,k as d,lt as f,m as p,p as te,r as ne,s as m,t as h,ut as g,v as _,w as v,x as y,y as b,z as re}from"./_plugin-vue_export-helper.js";import{r as x}from"./nav-item-9g3ebwBJ.js";import{a as S,o as C,s as w,t as T}from"./AdminTable.js";import{a as E}from"./useAnnouncer.js";import{n as D,t as ie}from"./ModalForm.js";import{n as O,t as k}from"./wayfinder.js";import{t as ae}from"./InputCombobox.js";import{t as A}from"./CalloutReadOnly.js";import{i as j,n as M,r as N,t as P}from"./DeleteSiteModal.js";import{t as F}from"./IndexLayout.js";var I=e=>({url:I.url(e),method:`post`});I.definition={methods:[`post`],url:`/admin/settings/site-groups`},I.url=e=>I.definition.url+O(e),I.post=e=>({url:I.url(e),method:`post`});var L=(e,t)=>({url:L.url(e,t),method:`delete`});L.definition={methods:[`delete`],url:`/admin/settings/site-groups/{groupId}`},L.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={groupId:e}),Array.isArray(e)&&(e={groupId:e[0]}),e=k(e);let n={groupId:e.groupId};return L.definition.url.replace(`{groupId}`,n.groupId.toString()).replace(/\/+$/,``)+O(t)},L.delete=(e,t)=>({url:L.url(e,t),method:`delete`});var R=[`disabled`],z=t({__name:`DeleteSiteButton`,props:{site:{}},setup(e){let t=u(!1);return(n,r)=>(i(),o(`div`,null,[b(`craft-button`,{size:`small`,icon:``,type:`button`,variant:`danger`,appearance:`plain`,disabled:e.site.primary,onClick:r[0]||=e=>t.value=!0},[...r[2]||=[b(`craft-icon`,{name:`x`,label:`t('Delete site'`},null,-1)]],8,R),s(P,{site:e.site,open:t.value,onClose:r[1]||=e=>t.value=!1},null,8,[`site`,`open`])]))}}),B=e=>({url:B.url(e),method:`get`});B.definition={methods:[`get`,`head`],url:`/admin/settings/sites`},B.url=e=>B.definition.url+O(e),B.get=e=>({url:B.url(e),method:`get`}),B.head=e=>({url:B.url(e),method:`head`}),Object.assign(B,B);var V={class:`flex gap-2 items-center`},H={class:`title text-xl`},U={key:0},W={type:`button`,icon:``,size:`small`,slot:`invoker`},G=[`label`],K={slot:`content`},q=[`disabled`],J={class:`-mx-2`},oe=[`href`,`active`],se={class:`mt-4 flex gap-2`},ce={class:`border-neutral-border-quiet rounded p-2 bg-white`},le={key:2,class:`py-20`},ue={class:`w-[60ch] mx-auto text-center grid gap-3 justify-items-center text-gray-500`},de=[`label`,`help-text`],fe={slot:`after`},pe={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},me={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},Y=[`label`,`help-text`,`has-feedback-for`],he={slot:`after`},ge={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},_e={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},ve={slot:`feedback`},ye={key:0,class:`error-list`},X=h(t({__name:`SettingsSitesIndex`,props:{readOnly:{type:Boolean},group:{},groups:{},sites:{},nameSuggestions:{},flash:{}},setup(t){let h=t,O=u(!1),k=C(),P=m({id:h.group?.id??null,name:h.group?.name??``});function R(){P.clearErrors().submit(I(),{onSuccess:()=>{O.value=!1,P.reset()}})}function X(e){e===`create`?(P.name=``,P.id=null):e===`update`&&(P.name=h.group?.rawName??h.group?.name??``,P.id=h.group?.id??null),O.value=!0}let Z=u(h.sites.map(e=>e.id)),Q=_(()=>Z.value.map(e=>h.sites.find(t=>t.id===e)).filter(Boolean));r(Z,(e,t)=>{a(()=>{g.post(j(),{ids:[...e]},{preserveScroll:!0,preserveState:!0,onError:()=>{Z.value=t}})})});function be(e,t){let n=[...Z.value],[r]=n.splice(e,1);n.splice(t,0,r),Z.value=n}let xe=u([k.accessor(`name`,{header:()=>x(`Name`),cell:({row:e,getValue:t})=>d(E,{href:N.url(e.original.id)},()=>d(`div`,{class:`flex gap-2`},[d(`craft-indicator`,{variant:e.original.enabled?`success`:`empty`}),d(`span`,t())]))}),k.accessor(`handle`,{header:()=>x(`Handle`),cell:e=>d(`code`,e.getValue())}),k.accessor(`enabled`,{header:()=>x(`Status`),cell:e=>d(D,{variant:e.getValue()?`success`:`default`},()=>e.getValue()?x(`Enabled`):x(`Disabled`))}),k.accessor(`language`,{header:()=>x(`Language`),cell:e=>d(`code`,e.getValue())}),k.accessor(`primary`,{header:()=>x(`Primary`),cell:e=>e.getValue()?d(`craft-icon`,{name:`check`}):``}),k.accessor(`baseUrl`,{header:()=>x(`Base URL`),cell:e=>d(`code`,e.getValue())}),k.accessor(`group.name`,{id:`group`,header:()=>x(`Group`)}),k.display({id:`actions`,cell:({row:e})=>d(`div`,{class:`flex justify-end`},[d(z,{site:e.original,disabled:e.original.primary,class:`whitespace-normal`})]),meta:{wrap:!0}})]),Se=S({get data(){return Q.value},get columns(){return xe.value},getCoreRowModel:w(),getRowId:e=>e.id.toString(),enableSorting:!1,defaultColumn:{size:`auto`,minSize:50,maxSize:200}});function Ce(){h.group?.id&&confirm(x(`Are you sure you want to delete this group?`))&&g.delete(L({groupId:h.group.id}))}let $=_(()=>h.group?.name?h.group.name:x(`Sites`));return(r,a)=>(i(),o(l,null,[s(F,{debug:{form:f(P),$props:r.$props},"full-width":!0,title:$.value},{title:n(()=>[b(`div`,V,[b(`h1`,H,e($.value),1),t.group?.id?(i(),o(`craft-action-menu`,U,[b(`craft-button`,W,[b(`craft-icon`,{name:`gear`,label:f(x)(`Site group Actions`)},null,8,G)]),b(`div`,K,[b(`craft-action-item`,{onClick:a[0]||=p(e=>X(`update`),[`prevent`])},e(f(x)(`Rename Group`)),1),b(`craft-action-item`,{variant:`danger`,disabled:Q.value.length>0,onClick:p(Ce,[`prevent`])},e(f(x)(`Delete Group`)),9,q)])])):y(``,!0)])]),actions:n(()=>[s(E,{as:`craft-button`,href:f(M)({query:{groupId:t.group?.id}}).url,variant:`primary`,appearance:`button`},{default:n(()=>[a[5]||=b(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),v(` `+e(f(x)(`New Site`)),1)]),_:1},8,[`href`])]),"interior-nav":n(({state:r})=>[b(`craft-nav-list`,J,[b(`craft-nav-item`,{href:f(B).url(),active:!t.group},e(f(x)(`All Sites`)),9,oe),(i(!0),o(l,null,re(t.groups,r=>(i(),c(E,{as:`craft-nav-item`,key:r.id,href:f(B).url({query:{groupId:r.id}}),active:t.group&&r.id===t.group.id,block:``},{default:n(()=>[v(e(r.name),1)]),_:2},1032,[`href`,`active`]))),128))]),b(`div`,se,[b(`craft-button`,{type:`button`,onClick:a[1]||=e=>X(`create`),size:`small`},[a[6]||=b(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),v(` `+e(f(x)(`New Group`)),1)])])]),default:n(()=>[b(`div`,null,[t.readOnly?(i(),c(A,{key:0})):y(``,!0),Q.value.length?(i(),c(T,{key:1,table:f(Se),"read-only":t.readOnly,reorderable:!!t.group?.id,spacing:`relaxed`,onReorder:be},{"drag-preview":n(({row:t})=>[b(`div`,ce,e(t.original.name),1)]),_:1},8,[`table`,`read-only`,`reorderable`])):(i(),o(`div`,le,[b(`div`,ue,[a[8]||=b(`craft-icon`,{name:`light/earth-americas`,style:{"font-size":`calc(48rem / 16)`}},null,-1),b(`p`,null,e(f(x)(`No sites exist for this group yet.`)),1),s(E,{as:`craft-button`,href:f(M)({query:{groupId:t.group?.id}}).url,appearance:`button`},{default:n(()=>[a[7]||=b(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),v(` `+e(f(x)(`New Site`)),1)]),_:1},8,[`href`])])]))])]),_:1},8,[`debug`,`title`]),s(ie,{"is-active":O.value,onClose:a[4]||=e=>{O.value=!1,f(P).reset()},onSubmit:R,loading:f(P).processing},{default:n(()=>[ee(b(`craft-input`,{name:`id`,id:`id`,"onUpdate:modelValue":a[2]||=e=>f(P).id=e,type:`hidden`},null,512),[[te,f(P).id]]),s(f(ne),{data:`nameSuggestions`},{fallback:n(()=>[b(`craft-input`,{readonly:``,name:`readonly-name`,label:f(x)(`Group Name`),"help-text":f(x)(`What this group will be called in the control panel.`)},[b(`div`,fe,[b(`craft-callout`,pe,[v(e(f(x)(`This can begin with an environment variable.`))+` `,1),b(`a`,me,e(f(x)(`Learn more`)),1)])])],8,de)]),default:n(()=>[b(`craft-input`,{label:f(x)(`Group Name`),id:`name`,name:`name`,required:``,"help-text":f(x)(`What this group will be called in the control panel.`),"has-feedback-for":f(P).errors?.name?`error`:``},[s(ae,{options:t.nameSuggestions,modelValue:f(P).name,"onUpdate:modelValue":a[3]||=e=>f(P).name=e,slot:`input`},null,8,[`options`,`modelValue`]),b(`div`,he,[b(`craft-callout`,ge,[v(e(f(x)(`This can begin with an environment variable.`))+` `,1),b(`a`,_e,e(f(x)(`Learn more`)),1)])]),b(`div`,ve,[f(P).errors?.name?(i(),o(`ul`,ye,[b(`li`,null,e(f(P).errors.name),1)])):y(``,!0)])],8,Y)]),_:1})]),_:1},8,[`is-active`,`loading`])],64))}}),[[`__scopeId`,`data-v-87fd6160`]]);export{X as default}; \ No newline at end of file +import{$ as e,E as t,J as n,K as r,L as i,P as a,S as o,T as s,Y as c,b as l,h as u,it as d,k as f,lt as p,m,p as h,r as ee,s as g,t as _,ut as v,v as y,w as b,x,y as S,z as C}from"./_plugin-vue_export-helper.js";import{r as w}from"./nav-item-9g3ebwBJ.js";import{a as T,o as te,s as ne,t as re}from"./AdminTable.js";import{a as E}from"./useAnnouncer.js";import{n as D,t as O}from"./ModalForm.js";import{a as k,c as ie,o as A}from"./dist.js";import{t as ae}from"./InputCombobox.js";import{t as j}from"./CalloutReadOnly.js";import{i as M,n as N,r as P,t as F}from"./DeleteSiteModal.js";import{t as I}from"./IndexLayout.js";var L=e=>({url:L.url(e),method:`post`});L.definition={methods:[`post`],url:`/admin/settings/site-groups`},L.url=e=>L.definition.url+A(e),L.post=e=>({url:L.url(e),method:`post`});var R=(e,t)=>({url:R.url(e,t),method:`delete`});R.definition={methods:[`delete`],url:`/admin/settings/site-groups/{groupId}`},R.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={groupId:e}),Array.isArray(e)&&(e={groupId:e[0]}),e=k(e);let n={groupId:e.groupId};return R.definition.url.replace(`{groupId}`,n.groupId.toString()).replace(/\/+$/,``)+A(t)},R.delete=(e,t)=>({url:R.url(e,t),method:`delete`});var z=[`disabled`],B=t({__name:`DeleteSiteButton`,props:{site:{}},setup(e){let t=d(!1);return(n,r)=>(i(),o(`div`,null,[S(`craft-button`,{size:`small`,icon:``,type:`button`,variant:`danger`,appearance:`plain`,disabled:e.site.primary,onClick:r[0]||=e=>t.value=!0},[...r[2]||=[S(`craft-icon`,{name:`x`,label:`t('Delete site'`},null,-1)]],8,z),s(F,{site:e.site,open:t.value,onClose:r[1]||=e=>t.value=!1},null,8,[`site`,`open`])]))}}),V=e=>({url:V.url(e),method:`get`});V.definition={methods:[`get`,`head`],url:`/admin/settings/sites`},V.url=e=>V.definition.url+A(e),V.get=e=>({url:V.url(e),method:`get`}),V.head=e=>({url:V.url(e),method:`head`}),Object.assign(V,V);var H={class:`flex gap-2 items-center`},U={class:`title text-xl`},W={key:0},G={type:`button`,icon:``,size:`small`,slot:`invoker`},K=[`label`],q={slot:`content`},J=[`disabled`],oe={class:`-mx-2`},se=[`href`,`active`],ce={key:0,class:`mt-4 flex gap-2`},le={class:`border-neutral-border-quiet rounded p-2 bg-white`},ue={key:2,class:`py-20`},de={class:`w-[60ch] mx-auto text-center grid gap-3 justify-items-center text-gray-500`},fe=[`label`,`help-text`],pe={slot:`after`},me={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},he={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},ge=[`label`,`help-text`,`has-feedback-for`],_e={slot:`after`},ve={variant:`info`,appearance:`plain`,class:`p-0`,icon:`lightbulb`},ye={href:`https://craftcms.com/docs/5.x/configure.html#control-panel-settings`},be={slot:`feedback`},xe={key:0,class:`error-list`},Y=_(t({__name:`SettingsSitesIndex`,props:{group:{},groups:{},sites:{},nameSuggestions:{},flash:{}},setup(t){let _=t,k=d(!1),A=te(),{readOnly:F}=ie(),z=g({id:_.group?.id??null,name:_.group?.name??``});function Y(){z.clearErrors().submit(L(),{onSuccess:()=>{k.value=!1,z.reset()}})}function X(e){e===`create`?(z.name=``,z.id=null):e===`update`&&(z.name=_.group?.rawName??_.group?.name??``,z.id=_.group?.id??null),k.value=!0}let Z=d(_.sites.map(e=>e.id)),Q=y(()=>Z.value.map(e=>_.sites.find(t=>t.id===e)).filter(Boolean));r(Z,(e,t)=>{a(()=>{v.post(M(),{ids:[...e]},{preserveScroll:!0,preserveState:!0,onError:()=>{Z.value=t}})})});function Se(e,t){let n=[...Z.value],[r]=n.splice(e,1);n.splice(t,0,r),Z.value=n}let Ce=d([A.accessor(`name`,{header:()=>w(`Name`),cell:({row:e,getValue:t})=>f(E,{href:P.url(e.original.id)},()=>f(`div`,{class:`flex gap-2`},[f(`craft-indicator`,{variant:e.original.enabled?`success`:`empty`}),f(`span`,t())]))}),A.accessor(`handle`,{header:()=>w(`Handle`),cell:e=>f(`code`,e.getValue())}),A.accessor(`enabled`,{header:()=>w(`Status`),cell:e=>f(D,{variant:e.getValue()?`success`:`default`},()=>e.getValue()?w(`Enabled`):w(`Disabled`))}),A.accessor(`language`,{header:()=>w(`Language`),cell:e=>f(`code`,e.getValue())}),A.accessor(`primary`,{header:()=>w(`Primary`),cell:e=>e.getValue()?f(`craft-icon`,{name:`check`}):``}),A.accessor(`baseUrl`,{header:()=>w(`Base URL`),cell:e=>f(`code`,e.getValue())}),A.accessor(`group.name`,{id:`group`,header:()=>w(`Group`)}),A.display({id:`actions`,cell:({row:e})=>f(`div`,{class:`flex justify-end`},[f(B,{site:e.original,disabled:e.original.primary,class:`whitespace-normal`})]),meta:{wrap:!0}})]),we=T({get data(){return Q.value},get columns(){return Ce.value},state:{get columnVisibility(){return{actions:!F}}},getCoreRowModel:ne(),getRowId:e=>e.id.toString(),enableSorting:!1,defaultColumn:{size:`auto`,minSize:50,maxSize:200}});function Te(){_.group?.id&&confirm(w(`Are you sure you want to delete this group?`))&&v.delete(R({groupId:_.group.id}))}let $=y(()=>_.group?.name?_.group.name:w(`Sites`));return(r,a)=>(i(),o(u,null,[s(I,{debug:{form:p(z),$props:r.$props},"full-width":!0,title:$.value},{title:n(()=>[S(`div`,H,[S(`h1`,U,e($.value),1),t.group?.id&&!p(F)?(i(),o(`craft-action-menu`,W,[S(`craft-button`,G,[S(`craft-icon`,{name:`gear`,label:p(w)(`Site group Actions`)},null,8,K)]),S(`div`,q,[S(`craft-action-item`,{onClick:a[0]||=m(e=>X(`update`),[`prevent`])},e(p(w)(`Rename Group`)),1),S(`craft-action-item`,{variant:`danger`,disabled:Q.value.length>0,onClick:m(Te,[`prevent`])},e(p(w)(`Delete Group`)),9,J)])])):x(``,!0)])]),actions:n(()=>[p(F)?x(``,!0):(i(),l(E,{key:0,as:`craft-button`,href:p(N)({query:{groupId:t.group?.id}}).url,variant:`primary`,appearance:`button`},{default:n(()=>[a[5]||=S(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),b(` `+e(p(w)(`New Site`)),1)]),_:1},8,[`href`]))]),"interior-nav":n(({state:r})=>[S(`craft-nav-list`,oe,[S(`craft-nav-item`,{href:p(V).url(),active:!t.group},e(p(w)(`All Sites`)),9,se),(i(!0),o(u,null,C(t.groups,r=>(i(),l(E,{as:`craft-nav-item`,key:r.id,href:p(V).url({query:{groupId:r.id}}),active:t.group&&r.id===t.group.id,block:``},{default:n(()=>[b(e(r.name),1)]),_:2},1032,[`href`,`active`]))),128))]),p(F)?x(``,!0):(i(),o(`div`,ce,[S(`craft-button`,{type:`button`,onClick:a[1]||=e=>X(`create`),size:`small`},[a[6]||=S(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),b(` `+e(p(w)(`New Group`)),1)])]))]),default:n(()=>[S(`div`,null,[p(F)?(i(),l(j,{key:0})):x(``,!0),Q.value.length?(i(),l(re,{key:1,table:p(we),"read-only":p(F),reorderable:!!t.group?.id,spacing:`relaxed`,onReorder:Se},{"drag-preview":n(({row:t})=>[S(`div`,le,e(t.original.name),1)]),_:1},8,[`table`,`read-only`,`reorderable`])):(i(),o(`div`,ue,[S(`div`,de,[a[8]||=S(`craft-icon`,{name:`light/earth-americas`,style:{"font-size":`calc(48rem / 16)`}},null,-1),S(`p`,null,e(p(w)(`No sites exist for this group yet.`)),1),p(F)?x(``,!0):(i(),l(E,{key:0,as:`craft-button`,href:p(N)({query:{groupId:t.group?.id}}).url,appearance:`button`},{default:n(()=>[a[7]||=S(`craft-icon`,{name:`plus`,slot:`prefix`},null,-1),b(` `+e(p(w)(`New Site`)),1)]),_:1},8,[`href`]))])]))])]),_:1},8,[`debug`,`title`]),s(O,{"is-active":k.value,onClose:a[4]||=e=>{k.value=!1,p(z).reset()},onSubmit:Y,loading:p(z).processing},{default:n(()=>[c(S(`craft-input`,{name:`id`,id:`id`,"onUpdate:modelValue":a[2]||=e=>p(z).id=e,type:`hidden`},null,512),[[h,p(z).id]]),s(p(ee),{data:`nameSuggestions`},{fallback:n(()=>[S(`craft-input`,{readonly:``,name:`readonly-name`,label:p(w)(`Group Name`),"help-text":p(w)(`What this group will be called in the control panel.`)},[S(`div`,pe,[S(`craft-callout`,me,[b(e(p(w)(`This can begin with an environment variable.`))+` `,1),S(`a`,he,e(p(w)(`Learn more`)),1)])])],8,fe)]),default:n(()=>[S(`craft-input`,{label:p(w)(`Group Name`),id:`name`,name:`name`,required:``,"help-text":p(w)(`What this group will be called in the control panel.`),"has-feedback-for":p(z).errors?.name?`error`:``},[s(ae,{options:t.nameSuggestions,modelValue:p(z).name,"onUpdate:modelValue":a[3]||=e=>p(z).name=e,slot:`input`},null,8,[`options`,`modelValue`]),S(`div`,_e,[S(`craft-callout`,ve,[b(e(p(w)(`This can begin with an environment variable.`))+` `,1),S(`a`,ye,e(p(w)(`Learn more`)),1)])]),S(`div`,be,[p(z).errors?.name?(i(),o(`ul`,xe,[S(`li`,null,e(p(z).errors.name),1)])):x(``,!0)])],8,ge)]),_:1})]),_:1},8,[`is-active`,`loading`])],64))}}),[[`__scopeId`,`data-v-731ee9fc`]]);export{Y as default}; \ No newline at end of file diff --git a/resources/build/_plugin-vue_export-helper.js b/resources/build/_plugin-vue_export-helper.js index a34e961b907..510eb6000eb 100644 --- a/resources/build/_plugin-vue_export-helper.js +++ b/resources/build/_plugin-vue_export-helper.js @@ -967,6 +967,16 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; Appearances */ + /* None */ + :host([appearance~='none']), + :host([appearance~='none']:hover), + :host([appearance~='none']:not(:disabled):not(.loading):active) { + background-color: transparent; + border-color: transparent; + color: inherit; + padding: 0; + } + /* Plain */ :host([appearance~='plain']) { background-color: transparent; @@ -974,7 +984,7 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; color: inherit; } - :host([appearance~='plain']:hover) { + :host([appearance~='plain']:not(:disabled):not(.loading):hover) { background-color: color-mix( in oklab, var(--c-color-fill-quiet, var(--c-button-default-fill)), @@ -983,7 +993,7 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; color: var(--c-color-on-quiet); } - :host([appearance~='plain']:active) { + :host([appearance~='plain']:not(:disabled):not(.loading):active) { color: var(--c-color-on-quiet, var(--c-color-neutral-on-quiet)); background-color: color-mix( in oklab, @@ -1002,7 +1012,7 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; color: var(--c-color-on-normal, var(--c-color-neutral-on-normal)); } - :host([appearance~='filled']:hover) { + :host([appearance~='filled']:not(:disabled):not(.loading):hover) { background-color: color-mix( in oklab, var(--c-color-fill-normal, var(--c-color-neutral-fill-normal)), @@ -1011,7 +1021,7 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; color: var(--c-color-on-normal, var(--c-color-neutral-on-normal)); } - :host([appearance~='filled']:active) { + :host([appearance~='filled']:not(:disabled):not(.loading):active) { color: var(--c-color-on-quiet, var(--c-color-neutral-on-quiet)); background-color: color-mix( in oklab, @@ -1028,7 +1038,7 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; color: var(--c-color-on-quiet); } - :host([appearance~='dashed']:hover) { + :host([appearance~='dashed']:not(:disabled):not(.loading):hover) { background-color: color-mix( in oklab, var(--c-color-fill-quiet, var(--c-button-default-fill)), @@ -1037,7 +1047,7 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; color: var(--c-color-on-quiet); } - :host([appearance~='dashed']:active) { + :host([appearance~='dashed']:not(:disabled):not(.loading):active) { color: var(--c-color-on-quiet, var(--c-color-neutral-on-quiet)); background-color: color-mix( in oklab, @@ -4438,7 +4448,6 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; font: inherit; text-align: left; display: flex; - width: 100%; align-items: center; text-decoration: none; padding-inline: var(--c-spacing-sm); @@ -4995,12 +5004,12 @@ import{n as e}from"./rolldown-runtime.js";import{t}from"./decorate-EVKP5RjP.js"; :host { gap: var(--c-spacing-sm); } - `]}};customElements.get(`craft-radio`)||customElements.define(`craft-radio`,cu);var lu=class e{constructor(t={}){this.config={...e.defaultCookieOptions,...t}}set(e,t,n={}){let{path:r,domain:i,maxAge:a,expires:o,secure:s,sameSite:c,prefix:l}=Object.assign({},this.config,n),u=`${this.config.prefix}:${e}=${encodeURIComponent(t)}`;r&&(u+=`;path=${r}`),i&&(u+=`;domain=${i}`),a?u+=`;max-age-in-seconds=${a}`:o&&(u+=`;expires=${o.toUTCString()}`),s&&(u+=`;secure`),document.cookie=u}get(e){return document.cookie.replace(RegExp(`(?:(?:^|.*;\\s*)${this.config.prefix}:${e}\\s*\\=\\s*([^;]*).*$)|^.*$`),`$1`)}remove(e){this.set(e,``,{expires:new Date(`1970-01-01T00:00:00`)})}};lu.defaultCookieOptions={path:`/`,domain:null,secure:!1,sameSite:`strict`,prefix:`Craft`};var uu=class{constructor(){this.refreshPromise=null,this.tokenName=null,this.tokenValue=null,this.refreshPromise=null}async getToken(){return this.tokenValue||await this.refreshToken(),this.tokenValue}async refreshToken(){return this.refreshPromise||=pu.get(`users/session-info`).then(({data:e})=>{let{csrfTokenName:t,csrfTokenValue:n}=e;return this.tokenName=t??null,this.tokenValue=n??null,this.tokenValue}).finally(()=>{this.refreshPromise=null}),this.refreshPromise}clearToken(){this.tokenValue=null}};function du(e=``){return`/admin/actions/${e}`}function fu(){return{"X-Registered-Asset-Bundles":[...new Set(Cp.registeredAssetBundles)].join(`,`),"X-Registered-Js-Files":[...new Set(Cp.registeredJsFiles)].join(`,`)}}var pu=E.create({baseURL:du()}),mu=new uu;pu.interceptors.request.use(async e=>{e.headers.set(`X-Requested-With`,`XMLHttpRequest`);let t=fu();return Object.entries(t).forEach(([t,n])=>{e.headers.set(t,n)}),e}),pu.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status===419||e.response?.status===403&&!t._retry){t._retry=!0;try{return mu.clearToken(),t.headers[`X-CSRF-Token`]=await mu.refreshToken(),E(t)}catch(e){return console.error(`Failed to refresh CSRF token:`,e),Promise.reject(e)}}return Promise.reject(e)});var hu=!1,gu=null;async function _u(e){if(!hu){if(gu)return gu;hu=!0;try{return(await pu.post(`app/api-headers`,void 0,{cancelToken:e})).data}catch{}finally{hu=!1}}}var vu=E.create({baseURL:`https://api.craftcms.com/v1/`});async function yu(e){return gu?Object.entries(gu).forEach(([t,n])=>{e.headers.set(t,n)}):(e.params=e.params||{},e.params.processCraftHeaders=1),e}async function bu(e,t){if(gu)return;let{data:n}=await pu.post(`app/process-api-response-headers`,{headers:e},{cancelToken:t});return gu=n,hu=!1,gu}async function xu(e){return await bu(e.headers,e.config.cancelToken),e}vu.interceptors.request.use(async e=>{let{cancelToken:t}=e,n=await _u(t);n&&Object.entries(n).forEach(([t,n])=>{e.headers.set(t,n)});let r={...e,params:{...Cp.apiParams||{},...e.params,v:new Date().getTime()}};return n||(r.params.processCraftHeaders=1),Cp.httpProxy&&(r.proxy=Cp.httpProxy),r}),vu.interceptors.request.use(yu),vu.interceptors.response.use(xu);var Su={START:`asset-indexes/start-indexing`,STOP:`asset-indexes/stop-indexing-session`,PROCESS:`asset-indexes/process-indexing-session`,OVERVIEW:`asset-indexes/indexing-session-overview`,FINISH:`asset-indexes/finish-indexing-session`},Cu=new WeakMap,wu=new WeakMap,Tu=new WeakMap,Eu=new WeakMap,Du=new WeakMap,Ou=new WeakMap,ku=new WeakMap,L=new WeakSet,Au=class{constructor(e={}){C(this,L),ee(this,Cu,new Map),ee(this,wu,null),ee(this,Tu,0),ee(this,Eu,[]),ee(this,Du,[]),ee(this,Ou,new Set),ee(this,ku,new Map);let{existingSessions:t=[],maxConcurrentConnections:n=3,autoResume:r=!0}=e;this.maxConcurrentConnections=n;for(let e of t)D(Cu,this).set(e.id,e);r&&(S(L,this,Pu).call(this),D(wu,this)!==null&&S(L,this,Fu).call(this))}getSessions(){return Array.from(D(Cu,this).values())}getCurrentSessionId(){return D(wu,this)}isProcessing(){return D(Tu,this)>0}on(e,t){return D(ku,this).has(e)||D(ku,this).set(e,new Set),D(ku,this).get(e).add(t),()=>{D(ku,this).get(e)?.delete(t)}}async startIndexing(e){let t=await pu.post(Su.START,e),{data:n}=t;return n.session&&(D(Cu,this).set(n.session.id,n.session),w(wu,this,n.session.id),S(L,this,Mu).call(this),n.stop||S(L,this,Fu).call(this)),n.stop&&S(L,this,Nu).call(this,n.stop),t}stopSession(e){S(L,this,Iu).call(this,e),S(L,this,Lu).call(this,{sessionId:e,action:Su.STOP,params:{sessionId:e},priority:!0})}getSessionOverview(e){S(L,this,Lu).call(this,{sessionId:e,action:Su.OVERVIEW,params:{sessionId:e},priority:!0})}finishSession(e){S(L,this,Lu).call(this,{sessionId:e.sessionId,action:Su.FINISH,params:e,priority:!0})}destroy(){D(Cu,this).clear(),w(Eu,this,[]),w(Du,this,[]),D(ku,this).clear(),w(wu,this,null),w(Tu,this,0)}};function ju(e,t){D(ku,this).get(e)?.forEach(e=>e(t))}function Mu(e){S(L,this,ju).call(this,`change`,{sessions:this.getSessions(),currentSessionId:D(wu,this),reviewSessionId:e})}function Nu(e){D(Cu,this).delete(e),D(wu,this)===e&&w(wu,this,null),S(L,this,Mu).call(this)}function Pu(){for(let[e,t]of D(Cu,this))if(!t.actionRequired&&!D(Ou,this).has(e)){w(wu,this,e);return}w(wu,this,null)}function Fu(){if(D(wu,this)||S(L,this,Pu).call(this),!D(wu,this))return;let e=D(Cu,this).get(D(wu,this));if(!e)return;let t=e.totalEntries-e.processedEntries,n=this.maxConcurrentConnections-D(Tu,this),r=Math.min(n,t);for(let t=0;tt.sessionId!==e))}function Lu(e){e.priority?D(Du,this).push(e):D(Eu,this).push(e),S(L,this,Ru).call(this)}function Ru(){if(!(D(Eu,this).length+D(Du,this).length===0||D(Tu,this)>=this.maxConcurrentConnections))for(;D(Eu,this).length+D(Du,this).length>0&&D(Tu,this)0?D(Du,this).shift():D(Eu,this).shift();S(L,this,zu).call(this,t)}}async function zu(e){try{let t=await pu.post(e.action,e.params);S(L,this,Bu).call(this,t.data)}catch(t){S(L,this,Vu).call(this,t,e)}finally{var t;w(Tu,this,(t=D(Tu,this),t--,t)),S(L,this,Ru).call(this)}}function Bu(e){let t;e.session&&(D(Cu,this).set(e.session.id,e.session),S(L,this,Pu).call(this),e.session.actionRequired&&!e.skipDialog?D(Ou,this).has(e.session.id)||(t=e.session.id):D(Ou,this).has(e.session.id)||S(L,this,Fu).call(this)),S(L,this,Pu).call(this),e.stop&&(D(Cu,this).delete(e.stop),D(wu,this)===e.stop&&w(wu,this,null)),S(L,this,Mu).call(this,t),D(Cu,this).size===0&&S(L,this,ju).call(this,`complete`,{})}function Vu(e,t){S(L,this,Pu).call(this);let n=e?.response?.data?.message||e.message||`An error occurred during indexing.`;S(L,this,ju).call(this,`error`,{message:n,sessionId:t.sessionId}),S(L,this,Ru).call(this)}var Hu=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Uu=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Wu,Gu=class{formatToParts(e){let t=[];for(let n of e)t.push({type:`element`,value:n}),t.push({type:`literal`,value:`, `});return t.slice(0,-1)}},Ku=typeof Intl<`u`&&Intl.ListFormat||Gu,qu=[[`years`,`year`],[`months`,`month`],[`weeks`,`week`],[`days`,`day`],[`hours`,`hour`],[`minutes`,`minute`],[`seconds`,`second`],[`milliseconds`,`millisecond`]],Ju={minimumIntegerDigits:2},Yu=class{constructor(e,t={}){Wu.set(this,void 0);let n=String(t.style||`short`);n!==`long`&&n!==`short`&&n!==`narrow`&&n!==`digital`&&(n=`short`);let r=n===`digital`?`numeric`:n,i=t.hours||r;r=i===`2-digit`?`numeric`:i;let a=t.minutes||r;r=a===`2-digit`?`numeric`:a;let o=t.seconds||r;r=o===`2-digit`?`numeric`:o;let s=t.milliseconds||r;Hu(this,Wu,{locale:e,style:n,years:t.years||n===`digital`?`short`:n,yearsDisplay:t.yearsDisplay===`always`?`always`:`auto`,months:t.months||n===`digital`?`short`:n,monthsDisplay:t.monthsDisplay===`always`?`always`:`auto`,weeks:t.weeks||n===`digital`?`short`:n,weeksDisplay:t.weeksDisplay===`always`?`always`:`auto`,days:t.days||n===`digital`?`short`:n,daysDisplay:t.daysDisplay===`always`?`always`:`auto`,hours:i,hoursDisplay:t.hoursDisplay===`always`||n===`digital`?`always`:`auto`,minutes:a,minutesDisplay:t.minutesDisplay===`always`||n===`digital`?`always`:`auto`,seconds:o,secondsDisplay:t.secondsDisplay===`always`||n===`digital`?`always`:`auto`,milliseconds:s,millisecondsDisplay:t.millisecondsDisplay===`always`?`always`:`auto`},`f`)}resolvedOptions(){return Uu(this,Wu,`f`)}formatToParts(e){let t=[],n=Uu(this,Wu,`f`),r=n.style,i=n.locale;for(let[a,o]of qu){let s=e[a];if(n[`${a}Display`]===`auto`&&!s)continue;let c=n[a],l=c===`2-digit`?Ju:c===`numeric`?{}:{style:`unit`,unit:o,unitDisplay:c},u=new Intl.NumberFormat(i,l).format(s);a===`months`&&(c===`narrow`||r===`narrow`&&u.endsWith(`m`))&&(u=u.replace(/(\d+)m$/,`$1mo`)),t.push(u)}return new Ku(i,{type:`unit`,style:r===`digital`?`short`:r}).formatToParts(t)}format(e){return this.formatToParts(e).map(e=>e.value).join(``)}};Wu=new WeakMap;var Xu=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Zu=[`year`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`],Qu=e=>Xu.test(e),$u=class e{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0){this.years=e,this.months=t,this.weeks=n,this.days=r,this.hours=i,this.minutes=a,this.seconds=o,this.milliseconds=s,this.years||=0,this.sign||=Math.sign(this.years),this.months||=0,this.sign||=Math.sign(this.months),this.weeks||=0,this.sign||=Math.sign(this.weeks),this.days||=0,this.sign||=Math.sign(this.days),this.hours||=0,this.sign||=Math.sign(this.hours),this.minutes||=0,this.sign||=Math.sign(this.minutes),this.seconds||=0,this.sign||=Math.sign(this.seconds),this.milliseconds||=0,this.sign||=Math.sign(this.milliseconds),this.blank=this.sign===0}abs(){return new e(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){if(typeof t==`string`){let n=String(t).trim(),r=n.startsWith(`-`)?-1:1,i=n.match(Xu)?.slice(1).map(e=>(Number(e)||0)*r);return i?new e(...i):new e}else if(typeof t==`object`){let{years:n,months:r,weeks:i,days:a,hours:o,minutes:s,seconds:c,milliseconds:l}=t;return new e(n,r,i,a,o,s,c,l)}throw RangeError(`invalid duration`)}static compare(t,n){let r=Date.now(),i=Math.abs(ed(r,e.from(t)).getTime()-r),a=Math.abs(ed(r,e.from(n)).getTime()-r);return i>a?-1:+(i=0?d*i:0,f>=1?(u-d*12)*i:0,0,f>=3?(l-u*30)*i:0,f>=4?(c-l*24)*i:0,f>=5?(s-c*60)*i:0,f>=6?(o-s*60)*i:0,f>=7?(a-o*1e3)*i:0)}function nd(e,{relativeTo:t=Date.now()}={}){if(t=new Date(t),e.blank)return e;let n=e.sign,r=Math.abs(e.years),i=Math.abs(e.months),a=Math.abs(e.weeks),o=Math.abs(e.days),s=Math.abs(e.hours),c=Math.abs(e.minutes),l=Math.abs(e.seconds),u=Math.abs(e.milliseconds);u>=900&&(l+=Math.round(u/1e3)),(l||c||s||o||a||i||r)&&(u=0),l>=55&&(c+=Math.round(l/60)),(c||s||o||a||i||r)&&(l=0),c>=55&&(s+=Math.round(c/60)),(s||o||a||i||r)&&(c=0),o&&s>=12&&(o+=Math.round(s/24)),!o&&s>=21&&(o+=Math.round(s/24)),(o||a||i||r)&&(s=0);let d=t.getFullYear(),f=t.getMonth(),p=t.getDate();if(o>=27||r+i+o){let e=new Date(t);e.setDate(1),e.setMonth(f+i*n+1),e.setDate(0);let s=Math.max(0,p-e.getDate()),c=new Date(t);c.setFullYear(d+r*n),c.setDate(p-s),c.setMonth(f+i*n),c.setDate(p-s+o*n);let l=c.getFullYear()-t.getFullYear(),u=c.getMonth()-t.getMonth(),m=Math.abs(Math.round((Number(c)-Number(t))/864e5))+s,h=Math.abs(l*12+u);m<27?(o>=6?(a+=Math.round(o/7),o=0):o=m,i=r=0):h<=11?(i=h,r=0):(i=0,r=l*n),(i||r)&&(o=0)}return r&&(i=0),a>=4&&(i+=Math.round(a/4)),(i||r)&&(a=0),o&&a&&!i&&!r&&(a+=Math.round(o/7),o=0),new $u(r*n,i*n,a*n,o*n,s*n,c*n,l*n,u*n)}function rd(e,t){let n=nd(e,t);if(n.blank)return[0,`second`];for(let e of Zu){if(e===`millisecond`)continue;let t=n[`${e}s`];if(t)return[t,e]}return[0,`second`]}var R=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},id=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},z,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd=globalThis.HTMLElement||null,xd=new $u,Sd=new $u(0,0,0,0,0,1),Cd=class extends Event{constructor(e,t,n,r){super(`relative-time-updated`,{bubbles:!0,composed:!0}),this.oldText=e,this.newText=t,this.oldTitle=n,this.newTitle=r}};function wd(e){if(!e.date)return 1/0;if(e.format===`duration`||e.format===`elapsed`){let t=e.precision;if(t===`second`)return 1e3;if(t===`minute`)return 60*1e3}let t=Math.abs(Date.now()-e.date.getTime());return t<60*1e3?1e3:t<3600*1e3?60*1e3:3600*1e3}var Td=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);let t=e.date;if(t&&t.getTime()){let t=wd(e),n=Date.now()+t;nthis.update(),t),this.time=n)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(let t of this.elements)e=Math.min(e,wd(t)),t.update();this.time=Math.min(3600*1e3,e),this.timer=setTimeout(()=>this.update(),this.time),this.time+=Date.now()}},Ed=class extends bd{constructor(){super(...arguments),z.add(this),ad.set(this,!1),od.set(this,!1),cd.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:`open`}):this),yd.set(this,null)}static define(e=`relative-time`,t=customElements){return t.define(e,this),this}get timeZone(){return this.closest(`[time-zone]`)?.getAttribute(`time-zone`)||this.ownerDocument.documentElement.getAttribute(`time-zone`)||void 0}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`,`aria-hidden`,`time-zone`]}get onRelativeTimeUpdated(){return R(this,yd,`f`)}set onRelativeTimeUpdated(e){R(this,yd,`f`)&&this.removeEventListener(`relative-time-updated`,R(this,yd,`f`)),id(this,yd,typeof e==`object`||typeof e==`function`?e:null,`f`),typeof e==`function`&&this.addEventListener(`relative-time-updated`,e)}get second(){let e=this.getAttribute(`second`);if(e===`numeric`||e===`2-digit`)return e}set second(e){this.setAttribute(`second`,e||``)}get minute(){let e=this.getAttribute(`minute`);if(e===`numeric`||e===`2-digit`)return e}set minute(e){this.setAttribute(`minute`,e||``)}get hour(){let e=this.getAttribute(`hour`);if(e===`numeric`||e===`2-digit`)return e}set hour(e){this.setAttribute(`hour`,e||``)}get weekday(){let e=this.getAttribute(`weekday`);if(e===`long`||e===`short`||e===`narrow`)return e;if(this.format===`datetime`&&e!==``)return this.formatStyle}set weekday(e){this.setAttribute(`weekday`,e||``)}get day(){let e=this.getAttribute(`day`)??`numeric`;if(e===`numeric`||e===`2-digit`)return e}set day(e){this.setAttribute(`day`,e||``)}get month(){let e=this.format,t=this.getAttribute(`month`);if(t!==``&&(t??=e===`datetime`?this.formatStyle:`short`,t===`numeric`||t===`2-digit`||t===`short`||t===`long`||t===`narrow`))return t}set month(e){this.setAttribute(`month`,e||``)}get year(){let e=this.getAttribute(`year`);if(e===`numeric`||e===`2-digit`)return e;if(!this.hasAttribute(`year`)&&new Date().getUTCFullYear()!==this.date?.getUTCFullYear())return`numeric`}set year(e){this.setAttribute(`year`,e||``)}get timeZoneName(){let e=this.getAttribute(`time-zone-name`);if(e===`long`||e===`short`||e===`shortOffset`||e===`longOffset`||e===`shortGeneric`||e===`longGeneric`)return e}set timeZoneName(e){this.setAttribute(`time-zone-name`,e||``)}get prefix(){return this.getAttribute(`prefix`)??(this.format===`datetime`?``:`on`)}set prefix(e){this.setAttribute(`prefix`,e)}get threshold(){let e=this.getAttribute(`threshold`);return e&&Qu(e)?e:`P30D`}set threshold(e){this.setAttribute(`threshold`,e)}get tense(){let e=this.getAttribute(`tense`);return e===`past`?`past`:e===`future`?`future`:`auto`}set tense(e){this.setAttribute(`tense`,e)}get precision(){let e=this.getAttribute(`precision`);return Zu.includes(e)?e:this.format===`micro`?`minute`:`second`}set precision(e){this.setAttribute(`precision`,e)}get format(){let e=this.getAttribute(`format`);return e===`datetime`?`datetime`:e===`relative`?`relative`:e===`duration`?`duration`:e===`micro`?`micro`:e===`elapsed`?`elapsed`:`auto`}set format(e){this.setAttribute(`format`,e)}get formatStyle(){let e=this.getAttribute(`format-style`);if(e===`long`)return`long`;if(e===`short`)return`short`;if(e===`narrow`)return`narrow`;let t=this.format;return t===`elapsed`||t===`micro`?`narrow`:t===`datetime`?`short`:`long`}set formatStyle(e){this.setAttribute(`format-style`,e)}get noTitle(){return this.hasAttribute(`no-title`)}set noTitle(e){this.toggleAttribute(`no-title`,e)}get datetime(){return this.getAttribute(`datetime`)||``}set datetime(e){this.setAttribute(`datetime`,e)}get date(){let e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=e?.toISOString()||``}connectedCallback(){this.update()}disconnectedCallback(){Td.unobserve(this)}attributeChangedCallback(e,t,n){t!==n&&(e===`title`&&id(this,ad,n!==null&&(this.date&&R(this,z,`m`,ld).call(this,this.date))!==n,`f`),!R(this,od,`f`)&&!(e===`title`&&R(this,ad,`f`))&&id(this,od,(async()=>{await Promise.resolve(),this.update(),id(this,od,!1,`f`)})(),`f`))}update(){let e=R(this,cd,`f`).textContent||this.textContent||``,t=this.getAttribute(`title`)||``,n=t,r=this.date;if(typeof Intl>`u`||!Intl.DateTimeFormat||!r){R(this,cd,`f`).textContent=e;return}let i=Date.now();R(this,ad,`f`)||(n=R(this,z,`m`,ld).call(this,r)||``,n&&!this.noTitle&&this.setAttribute(`title`,n));let a=td(r,this.precision,i),o=R(this,z,`m`,ud).call(this,a),s=e,c=R(this,z,`m`,vd).call(this,o);s=c?R(this,z,`m`,gd).call(this,r):o===`duration`?R(this,z,`m`,dd).call(this,a):o===`relative`?R(this,z,`m`,fd).call(this,a):R(this,z,`m`,pd).call(this,r),s?R(this,z,`m`,_d).call(this,s):this.shadowRoot===R(this,cd,`f`)&&this.textContent&&R(this,z,`m`,_d).call(this,this.textContent),(s!==e||n!==t)&&this.dispatchEvent(new Cd(e,s,t,n)),o===`relative`||o===`duration`||c&&(R(this,z,`m`,md).call(this,r)||R(this,z,`m`,hd).call(this,r))?Td.observe(this):Td.unobserve(this)}};ad=new WeakMap,od=new WeakMap,cd=new WeakMap,yd=new WeakMap,z=new WeakSet,sd=function(){let e=this.closest(`[lang]`)?.getAttribute(`lang`)||this.ownerDocument.documentElement.getAttribute(`lang`);try{return new Intl.Locale(e??``).toString()}catch{return`default`}},ld=function(e){return new Intl.DateTimeFormat(R(this,z,`a`,sd),{day:`numeric`,month:`short`,year:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`,timeZone:this.timeZone}).format(e)},ud=function(e){let t=this.format;if(t===`datetime`)return`datetime`;if(t===`duration`||t===`elapsed`||t===`micro`)return`duration`;if((t===`auto`||t===`relative`)&&typeof Intl<`u`&&Intl.RelativeTimeFormat){let t=this.tense;if(t===`past`||t===`future`||$u.compare(e,this.threshold)===1)return`relative`}return`datetime`},dd=function(e){let t=R(this,z,`a`,sd),n=this.format,r=this.formatStyle,i=this.tense,a=xd;n===`micro`?(e=nd(e),a=Sd,e.months===0&&(this.tense===`past`&&e.sign!==-1||this.tense===`future`&&e.sign!==1)&&(e=Sd)):(i===`past`&&e.sign!==-1||i===`future`&&e.sign!==1)&&(e=a);let o=`${this.precision}sDisplay`;return e.blank?a.toLocaleString(t,{style:r,[o]:`always`}):e.abs().toLocaleString(t,{style:r})},fd=function(e){let t=new Intl.RelativeTimeFormat(R(this,z,`a`,sd),{numeric:`auto`,style:this.formatStyle}),n=this.tense;n===`future`&&e.sign!==1&&(e=xd),n===`past`&&e.sign!==-1&&(e=xd);let[r,i]=rd(e);return i===`second`&&r<10?t.format(0,this.precision===`millisecond`?`second`:this.precision):t.format(r,i)},pd=function(e){let t=new Intl.DateTimeFormat(R(this,z,`a`,sd),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName,timeZone:this.timeZone});return`${this.prefix} ${t.format(e)}`.trim()},md=function(e){let t=new Date,n=new Intl.DateTimeFormat(R(this,z,`a`,sd),{timeZone:this.timeZone,year:`numeric`,month:`2-digit`,day:`2-digit`});return n.format(t)===n.format(e)},hd=function(e){let t=new Date,n=new Intl.DateTimeFormat(R(this,z,`a`,sd),{timeZone:this.timeZone,year:`numeric`});return n.format(t)===n.format(e)},gd=function(e){let t={hour:`numeric`,minute:`2-digit`,timeZoneName:`short`,timeZone:this.timeZone};if(R(this,z,`m`,md).call(this,e)){let n=new Intl.RelativeTimeFormat(R(this,z,`a`,sd),{numeric:`auto`}).format(0,`day`);n=n.charAt(0).toLocaleUpperCase(R(this,z,`a`,sd))+n.slice(1);let r=new Intl.DateTimeFormat(R(this,z,`a`,sd),t).format(e);return`${n} ${r}`}let n=Object.assign(Object.assign({},t),{day:`numeric`,month:`short`});return R(this,z,`m`,hd).call(this,e)?new Intl.DateTimeFormat(R(this,z,`a`,sd),n).format(e):new Intl.DateTimeFormat(R(this,z,`a`,sd),Object.assign(Object.assign({},n),{year:`numeric`})).format(e)},_d=function(e){if(this.hasAttribute(`aria-hidden`)&&this.getAttribute(`aria-hidden`)===`true`){let t=document.createElement(`span`);t.setAttribute(`aria-hidden`,`true`),t.textContent=e,R(this,cd,`f`).replaceChildren(t)}else R(this,cd,`f`).textContent=e},vd=function(e){return e===`duration`?!1:this.ownerDocument.documentElement.getAttribute(`data-prefers-absolute-time`)===`true`||this.ownerDocument.body?.getAttribute(`data-prefers-absolute-time`)===`true`};var Dd=typeof globalThis<`u`?globalThis:window;try{Dd.RelativeTimeElement=Ed.define()}catch(e){if(!(Dd.DOMException&&e instanceof DOMException&&e.name===`NotSupportedError`)&&!(e instanceof ReferenceError))throw e}var Od=class extends Uo{static get styles(){return[...super.styles,a` + `]}};customElements.get(`craft-radio`)||customElements.define(`craft-radio`,cu);var lu=class e{constructor(t={}){this.config={...e.defaultCookieOptions,...t}}set(e,t,n={}){let{path:r,domain:i,maxAge:a,expires:o,secure:s,sameSite:c,prefix:l}=Object.assign({},this.config,n),u=`${this.config.prefix}:${e}=${encodeURIComponent(t)}`;r&&(u+=`;path=${r}`),i&&(u+=`;domain=${i}`),a?u+=`;max-age-in-seconds=${a}`:o&&(u+=`;expires=${o.toUTCString()}`),s&&(u+=`;secure`),document.cookie=u}get(e){return document.cookie.replace(RegExp(`(?:(?:^|.*;\\s*)${this.config.prefix}:${e}\\s*\\=\\s*([^;]*).*$)|^.*$`),`$1`)}remove(e){this.set(e,``,{expires:new Date(`1970-01-01T00:00:00`)})}};lu.defaultCookieOptions={path:`/`,domain:null,secure:!1,sameSite:`strict`,prefix:`Craft`};var uu=class{constructor(){this.refreshPromise=null,this.tokenName=null,this.tokenValue=null,this.refreshPromise=null}async getToken(){return this.tokenValue||await this.refreshToken(),this.tokenValue}async refreshToken(){return this.refreshPromise||=pu.get(`users/session-info`).then(({data:e})=>{let{csrfTokenName:t,csrfTokenValue:n}=e;return this.tokenName=t??null,this.tokenValue=n??null,this.tokenValue}).finally(()=>{this.refreshPromise=null}),this.refreshPromise}clearToken(){this.tokenValue=null}};function du(e=``){return`/admin/actions/${e}`}function fu(){return{"X-Registered-Asset-Bundles":[...new Set(Cp.registeredAssetBundles)].join(`,`),"X-Registered-Js-Files":[...new Set(Cp.registeredJsFiles)].join(`,`)}}var pu=E.create({baseURL:du()}),mu=new uu;pu.interceptors.request.use(async e=>{e.headers.set(`X-Requested-With`,`XMLHttpRequest`);let t=fu();return Object.entries(t).forEach(([t,n])=>{e.headers.set(t,n)}),e}),pu.interceptors.response.use(e=>e,async e=>{let t=e.config;if(e.response?.status===419||e.response?.status===403&&!t._retry){t._retry=!0;try{return mu.clearToken(),t.headers[`X-CSRF-Token`]=await mu.refreshToken(),E(t)}catch(e){return console.error(`Failed to refresh CSRF token:`,e),Promise.reject(e)}}return Promise.reject(e)});var hu=!1,gu=null;async function _u(e){if(!hu){if(gu)return gu;hu=!0;try{return(await pu.post(`app/api-headers`,void 0,{cancelToken:e})).data}catch{}finally{hu=!1}}}var vu=E.create({baseURL:`https://api.craftcms.com/v1/`});async function yu(e){return gu?Object.entries(gu).forEach(([t,n])=>{e.headers.set(t,n)}):(e.params=e.params||{},e.params.processCraftHeaders=1),e}async function bu(e,t){if(gu)return;let{data:n}=await pu.post(`app/process-api-response-headers`,{headers:e},{cancelToken:t});return gu=n,hu=!1,gu}async function xu(e){return await bu(e.headers,e.config.cancelToken),e}vu.interceptors.request.use(async e=>{let{cancelToken:t}=e,n=await _u(t);n&&Object.entries(n).forEach(([t,n])=>{e.headers.set(t,n)});let r={...e,params:{...Cp.apiParams||{},...e.params,v:new Date().getTime()}};return n||(r.params.processCraftHeaders=1),Cp.httpProxy&&(r.proxy=Cp.httpProxy),r}),vu.interceptors.request.use(yu),vu.interceptors.response.use(xu);var Su={START:`asset-indexes/start-indexing`,STOP:`asset-indexes/stop-indexing-session`,PROCESS:`asset-indexes/process-indexing-session`,OVERVIEW:`asset-indexes/indexing-session-overview`,FINISH:`asset-indexes/finish-indexing-session`},Cu=new WeakMap,wu=new WeakMap,Tu=new WeakMap,Eu=new WeakMap,Du=new WeakMap,Ou=new WeakMap,ku=new WeakMap,L=new WeakSet,Au=class{constructor(e={}){C(this,L),ee(this,Cu,new Map),ee(this,wu,null),ee(this,Tu,0),ee(this,Eu,[]),ee(this,Du,[]),ee(this,Ou,new Set),ee(this,ku,new Map);let{existingSessions:t=[],maxConcurrentConnections:n=3,autoResume:r=!0}=e;this.maxConcurrentConnections=n;for(let e of t)D(Cu,this).set(e.id,e);r&&(S(L,this,Pu).call(this),D(wu,this)!==null&&S(L,this,Fu).call(this))}getSessions(){return Array.from(D(Cu,this).values())}getCurrentSessionId(){return D(wu,this)}isProcessing(){return D(Tu,this)>0}on(e,t){return D(ku,this).has(e)||D(ku,this).set(e,new Set),D(ku,this).get(e).add(t),()=>{D(ku,this).get(e)?.delete(t)}}async startIndexing(e){let t=await pu.post(Su.START,e),{data:n}=t;return n.session&&(D(Cu,this).set(n.session.id,n.session),w(wu,this,n.session.id),S(L,this,Mu).call(this),n.stop||S(L,this,Fu).call(this)),n.stop&&S(L,this,Nu).call(this,n.stop),t}stopSession(e){S(L,this,Iu).call(this,e),S(L,this,Lu).call(this,{sessionId:e,action:Su.STOP,params:{sessionId:e},priority:!0})}getSessionOverview(e){S(L,this,Lu).call(this,{sessionId:e,action:Su.OVERVIEW,params:{sessionId:e},priority:!0})}finishSession(e){S(L,this,Lu).call(this,{sessionId:e.sessionId,action:Su.FINISH,params:e,priority:!0})}destroy(){D(Cu,this).clear(),w(Eu,this,[]),w(Du,this,[]),D(ku,this).clear(),w(wu,this,null),w(Tu,this,0)}};function ju(e,t){D(ku,this).get(e)?.forEach(e=>e(t))}function Mu(e){S(L,this,ju).call(this,`change`,{sessions:this.getSessions(),currentSessionId:D(wu,this),reviewSessionId:e})}function Nu(e){D(Cu,this).delete(e),D(wu,this)===e&&w(wu,this,null),S(L,this,Mu).call(this)}function Pu(){for(let[e,t]of D(Cu,this))if(!t.actionRequired&&!D(Ou,this).has(e)){w(wu,this,e);return}w(wu,this,null)}function Fu(){if(D(wu,this)||S(L,this,Pu).call(this),!D(wu,this))return;let e=D(Cu,this).get(D(wu,this));if(!e)return;let t=e.totalEntries-e.processedEntries,n=this.maxConcurrentConnections-D(Tu,this),r=Math.min(n,t);for(let t=0;tt.sessionId!==e))}function Lu(e){e.priority?D(Du,this).push(e):D(Eu,this).push(e),S(L,this,Ru).call(this)}function Ru(){if(!(D(Eu,this).length+D(Du,this).length===0||D(Tu,this)>=this.maxConcurrentConnections))for(;D(Eu,this).length+D(Du,this).length>0&&D(Tu,this)0?D(Du,this).shift():D(Eu,this).shift();S(L,this,zu).call(this,t)}}async function zu(e){try{let t=await pu.post(e.action,e.params);S(L,this,Bu).call(this,t.data)}catch(t){S(L,this,Vu).call(this,t,e)}finally{var t;w(Tu,this,(t=D(Tu,this),t--,t)),S(L,this,Ru).call(this)}}function Bu(e){let t;e.session&&(D(Cu,this).set(e.session.id,e.session),S(L,this,Pu).call(this),e.session.actionRequired&&!e.skipDialog?D(Ou,this).has(e.session.id)||(t=e.session.id):D(Ou,this).has(e.session.id)||S(L,this,Fu).call(this)),S(L,this,Pu).call(this),e.stop&&(D(Cu,this).delete(e.stop),D(wu,this)===e.stop&&w(wu,this,null)),S(L,this,Mu).call(this,t),D(Cu,this).size===0&&S(L,this,ju).call(this,`complete`,{})}function Vu(e,t){S(L,this,Pu).call(this);let n=e?.response?.data?.message||e.message||`An error occurred during indexing.`;S(L,this,ju).call(this,`error`,{message:n,sessionId:t.sessionId}),S(L,this,Ru).call(this)}var Hu=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},Uu=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},Wu,Gu=class{formatToParts(e){let t=[];for(let n of e)t.push({type:`element`,value:n}),t.push({type:`literal`,value:`, `});return t.slice(0,-1)}},Ku=typeof Intl<`u`&&Intl.ListFormat||Gu,qu=[[`years`,`year`],[`months`,`month`],[`weeks`,`week`],[`days`,`day`],[`hours`,`hour`],[`minutes`,`minute`],[`seconds`,`second`],[`milliseconds`,`millisecond`]],Ju={minimumIntegerDigits:2},Yu=class{constructor(e,t={}){Wu.set(this,void 0);let n=String(t.style||`short`);n!==`long`&&n!==`short`&&n!==`narrow`&&n!==`digital`&&(n=`short`);let r=n===`digital`?`numeric`:n,i=t.hours||r;r=i===`2-digit`?`numeric`:i;let a=t.minutes||r;r=a===`2-digit`?`numeric`:a;let o=t.seconds||r;r=o===`2-digit`?`numeric`:o;let s=t.milliseconds||r;Hu(this,Wu,{locale:e,style:n,years:t.years||n===`digital`?`short`:n,yearsDisplay:t.yearsDisplay===`always`?`always`:`auto`,months:t.months||n===`digital`?`short`:n,monthsDisplay:t.monthsDisplay===`always`?`always`:`auto`,weeks:t.weeks||n===`digital`?`short`:n,weeksDisplay:t.weeksDisplay===`always`?`always`:`auto`,days:t.days||n===`digital`?`short`:n,daysDisplay:t.daysDisplay===`always`?`always`:`auto`,hours:i,hoursDisplay:t.hoursDisplay===`always`||n===`digital`?`always`:`auto`,minutes:a,minutesDisplay:t.minutesDisplay===`always`||n===`digital`?`always`:`auto`,seconds:o,secondsDisplay:t.secondsDisplay===`always`||n===`digital`?`always`:`auto`,milliseconds:s,millisecondsDisplay:t.millisecondsDisplay===`always`?`always`:`auto`},`f`)}resolvedOptions(){return Uu(this,Wu,`f`)}formatToParts(e){let t=[],n=Uu(this,Wu,`f`),r=n.style,i=n.locale;for(let[a,o]of qu){let s=e[a];if(n[`${a}Display`]===`auto`&&!s)continue;let c=n[a],l=c===`2-digit`?Ju:c===`numeric`?{}:{style:`unit`,unit:o,unitDisplay:c},u=new Intl.NumberFormat(i,l).format(s);a===`months`&&(c===`narrow`||r===`narrow`&&u.endsWith(`m`))&&(u=u.replace(/(\d+)m$/,`$1mo`)),t.push(u)}return new Ku(i,{type:`unit`,style:r===`digital`?`short`:r}).formatToParts(t)}format(e){return this.formatToParts(e).map(e=>e.value).join(``)}};Wu=new WeakMap;var Xu=/^[-+]?P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)W)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/,Zu=[`year`,`month`,`week`,`day`,`hour`,`minute`,`second`,`millisecond`],Qu=e=>Xu.test(e),$u=class e{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0){this.years=e,this.months=t,this.weeks=n,this.days=r,this.hours=i,this.minutes=a,this.seconds=o,this.milliseconds=s,this.years||=0,this.sign||=Math.sign(this.years),this.months||=0,this.sign||=Math.sign(this.months),this.weeks||=0,this.sign||=Math.sign(this.weeks),this.days||=0,this.sign||=Math.sign(this.days),this.hours||=0,this.sign||=Math.sign(this.hours),this.minutes||=0,this.sign||=Math.sign(this.minutes),this.seconds||=0,this.sign||=Math.sign(this.seconds),this.milliseconds||=0,this.sign||=Math.sign(this.milliseconds),this.blank=this.sign===0}abs(){return new e(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){if(typeof t==`string`){let n=String(t).trim(),r=n.startsWith(`-`)?-1:1,i=n.match(Xu)?.slice(1).map(e=>(Number(e)||0)*r);return i?new e(...i):new e}else if(typeof t==`object`){let{years:n,months:r,weeks:i,days:a,hours:o,minutes:s,seconds:c,milliseconds:l}=t;return new e(n,r,i,a,o,s,c,l)}throw RangeError(`invalid duration`)}static compare(t,n){let r=Date.now(),i=Math.abs(ed(r,e.from(t)).getTime()-r),a=Math.abs(ed(r,e.from(n)).getTime()-r);return i>a?-1:+(i=0?d*i:0,f>=1?(u-d*12)*i:0,0,f>=3?(l-u*30)*i:0,f>=4?(c-l*24)*i:0,f>=5?(s-c*60)*i:0,f>=6?(o-s*60)*i:0,f>=7?(a-o*1e3)*i:0)}function nd(e,{relativeTo:t=Date.now()}={}){if(t=new Date(t),e.blank)return e;let n=e.sign,r=Math.abs(e.years),i=Math.abs(e.months),a=Math.abs(e.weeks),o=Math.abs(e.days),s=Math.abs(e.hours),c=Math.abs(e.minutes),l=Math.abs(e.seconds),u=Math.abs(e.milliseconds);u>=900&&(l+=Math.round(u/1e3)),(l||c||s||o||a||i||r)&&(u=0),l>=55&&(c+=Math.round(l/60)),(c||s||o||a||i||r)&&(l=0),c>=55&&(s+=Math.round(c/60)),(s||o||a||i||r)&&(c=0),o&&s>=12&&(o+=Math.round(s/24)),!o&&s>=21&&(o+=Math.round(s/24)),(o||a||i||r)&&(s=0);let d=t.getFullYear(),f=t.getMonth(),p=t.getDate();if(o>=27||r+i+o){let e=new Date(t);e.setDate(1),e.setMonth(f+i*n+1),e.setDate(0);let s=Math.max(0,p-e.getDate()),c=new Date(t);c.setFullYear(d+r*n),c.setDate(p-s),c.setMonth(f+i*n),c.setDate(p-s+o*n);let l=c.getFullYear()-t.getFullYear(),u=c.getMonth()-t.getMonth(),m=Math.abs(Math.round((Number(c)-Number(t))/864e5))+s,h=Math.abs(l*12+u);m<27?(o>=6?(a+=Math.round(o/7),o=0):o=m,i=r=0):h<=11?(i=h,r=0):(i=0,r=l*n),(i||r)&&(o=0)}return r&&(i=0),a>=4&&(i+=Math.round(a/4)),(i||r)&&(a=0),o&&a&&!i&&!r&&(a+=Math.round(o/7),o=0),new $u(r*n,i*n,a*n,o*n,s*n,c*n,l*n,u*n)}function rd(e,t){let n=nd(e,t);if(n.blank)return[0,`second`];for(let e of Zu){if(e===`millisecond`)continue;let t=n[`${e}s`];if(t)return[t,e]}return[0,`second`]}var R=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},id=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},z,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd=globalThis.HTMLElement||null,xd=new $u,Sd=new $u(0,0,0,0,0,1),Cd=class extends Event{constructor(e,t,n,r){super(`relative-time-updated`,{bubbles:!0,composed:!0}),this.oldText=e,this.newText=t,this.oldTitle=n,this.newTitle=r}};function wd(e){if(!e.date)return 1/0;if(e.format===`duration`||e.format===`elapsed`){let t=e.precision;if(t===`second`)return 1e3;if(t===`minute`)return 60*1e3}let t=Math.abs(Date.now()-e.date.getTime());return t<60*1e3?1e3:t<3600*1e3?60*1e3:3600*1e3}var Td=new class{constructor(){this.elements=new Set,this.time=1/0,this.timer=-1}observe(e){if(this.elements.has(e))return;this.elements.add(e);let t=e.date;if(t&&t.getTime()){let t=wd(e),n=Date.now()+t;nthis.update(),t),this.time=n)}}unobserve(e){this.elements.has(e)&&this.elements.delete(e)}update(){if(clearTimeout(this.timer),!this.elements.size)return;let e=1/0;for(let t of this.elements)e=Math.min(e,wd(t)),t.update();this.time=Math.min(3600*1e3,e),this.timer=setTimeout(()=>this.update(),this.time),this.time+=Date.now()}},Ed=class extends bd{constructor(){super(...arguments),z.add(this),ad.set(this,!1),od.set(this,!1),cd.set(this,this.shadowRoot?this.shadowRoot:this.attachShadow?this.attachShadow({mode:`open`}):this),yd.set(this,null)}static define(e=`relative-time`,t=customElements){return t.define(e,this),this}get timeZone(){return this.closest(`[time-zone]`)?.getAttribute(`time-zone`)||this.ownerDocument.documentElement.getAttribute(`time-zone`)||void 0}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`,`aria-hidden`,`time-zone`]}get onRelativeTimeUpdated(){return R(this,yd,`f`)}set onRelativeTimeUpdated(e){R(this,yd,`f`)&&this.removeEventListener(`relative-time-updated`,R(this,yd,`f`)),id(this,yd,typeof e==`object`||typeof e==`function`?e:null,`f`),typeof e==`function`&&this.addEventListener(`relative-time-updated`,e)}get second(){let e=this.getAttribute(`second`);if(e===`numeric`||e===`2-digit`)return e}set second(e){this.setAttribute(`second`,e||``)}get minute(){let e=this.getAttribute(`minute`);if(e===`numeric`||e===`2-digit`)return e}set minute(e){this.setAttribute(`minute`,e||``)}get hour(){let e=this.getAttribute(`hour`);if(e===`numeric`||e===`2-digit`)return e}set hour(e){this.setAttribute(`hour`,e||``)}get weekday(){let e=this.getAttribute(`weekday`);if(e===`long`||e===`short`||e===`narrow`)return e;if(this.format===`datetime`&&e!==``)return this.formatStyle}set weekday(e){this.setAttribute(`weekday`,e||``)}get day(){let e=this.getAttribute(`day`)??`numeric`;if(e===`numeric`||e===`2-digit`)return e}set day(e){this.setAttribute(`day`,e||``)}get month(){let e=this.format,t=this.getAttribute(`month`);if(t!==``&&(t??=e===`datetime`?this.formatStyle:`short`,t===`numeric`||t===`2-digit`||t===`short`||t===`long`||t===`narrow`))return t}set month(e){this.setAttribute(`month`,e||``)}get year(){let e=this.getAttribute(`year`);if(e===`numeric`||e===`2-digit`)return e;if(!this.hasAttribute(`year`)&&new Date().getUTCFullYear()!==this.date?.getUTCFullYear())return`numeric`}set year(e){this.setAttribute(`year`,e||``)}get timeZoneName(){let e=this.getAttribute(`time-zone-name`);if(e===`long`||e===`short`||e===`shortOffset`||e===`longOffset`||e===`shortGeneric`||e===`longGeneric`)return e}set timeZoneName(e){this.setAttribute(`time-zone-name`,e||``)}get prefix(){return this.getAttribute(`prefix`)??(this.format===`datetime`?``:`on`)}set prefix(e){this.setAttribute(`prefix`,e)}get threshold(){let e=this.getAttribute(`threshold`);return e&&Qu(e)?e:`P30D`}set threshold(e){this.setAttribute(`threshold`,e)}get tense(){let e=this.getAttribute(`tense`);return e===`past`?`past`:e===`future`?`future`:`auto`}set tense(e){this.setAttribute(`tense`,e)}get precision(){let e=this.getAttribute(`precision`);return Zu.includes(e)?e:this.format===`micro`?`minute`:`second`}set precision(e){this.setAttribute(`precision`,e)}get format(){let e=this.getAttribute(`format`);return e===`datetime`?`datetime`:e===`relative`?`relative`:e===`duration`?`duration`:e===`micro`?`micro`:e===`elapsed`?`elapsed`:`auto`}set format(e){this.setAttribute(`format`,e)}get formatStyle(){let e=this.getAttribute(`format-style`);if(e===`long`)return`long`;if(e===`short`)return`short`;if(e===`narrow`)return`narrow`;let t=this.format;return t===`elapsed`||t===`micro`?`narrow`:t===`datetime`?`short`:`long`}set formatStyle(e){this.setAttribute(`format-style`,e)}get noTitle(){return this.hasAttribute(`no-title`)}set noTitle(e){this.toggleAttribute(`no-title`,e)}get datetime(){return this.getAttribute(`datetime`)||``}set datetime(e){this.setAttribute(`datetime`,e)}get date(){let e=Date.parse(this.datetime);return Number.isNaN(e)?null:new Date(e)}set date(e){this.datetime=e?.toISOString()||``}connectedCallback(){this.update()}disconnectedCallback(){Td.unobserve(this)}attributeChangedCallback(e,t,n){t!==n&&(e===`title`&&id(this,ad,n!==null&&(this.date&&R(this,z,`m`,ld).call(this,this.date))!==n,`f`),!R(this,od,`f`)&&!(e===`title`&&R(this,ad,`f`))&&id(this,od,(async()=>{await Promise.resolve(),this.update(),id(this,od,!1,`f`)})(),`f`))}update(){let e=R(this,cd,`f`).textContent||this.textContent||``,t=this.getAttribute(`title`)||``,n=t,r=this.date;if(typeof Intl>`u`||!Intl.DateTimeFormat||!r){R(this,cd,`f`).textContent=e;return}let i=Date.now();R(this,ad,`f`)||(n=R(this,z,`m`,ld).call(this,r)||``,n&&!this.noTitle&&this.setAttribute(`title`,n));let a=td(r,this.precision,i),o=R(this,z,`m`,ud).call(this,a),s=e,c=R(this,z,`m`,vd).call(this,o);s=c?R(this,z,`m`,gd).call(this,r):o===`duration`?R(this,z,`m`,dd).call(this,a):o===`relative`?R(this,z,`m`,fd).call(this,a):R(this,z,`m`,pd).call(this,r),s?R(this,z,`m`,_d).call(this,s):this.shadowRoot===R(this,cd,`f`)&&this.textContent&&R(this,z,`m`,_d).call(this,this.textContent),(s!==e||n!==t)&&this.dispatchEvent(new Cd(e,s,t,n)),o===`relative`||o===`duration`||c&&(R(this,z,`m`,md).call(this,r)||R(this,z,`m`,hd).call(this,r))?Td.observe(this):Td.unobserve(this)}};ad=new WeakMap,od=new WeakMap,cd=new WeakMap,yd=new WeakMap,z=new WeakSet,sd=function(){let e=this.closest(`[lang]`)?.getAttribute(`lang`)||this.ownerDocument.documentElement.getAttribute(`lang`);try{return new Intl.Locale(e??``).toString()}catch{return`default`}},ld=function(e){return new Intl.DateTimeFormat(R(this,z,`a`,sd),{day:`numeric`,month:`short`,year:`numeric`,hour:`numeric`,minute:`2-digit`,timeZoneName:`short`,timeZone:this.timeZone}).format(e)},ud=function(e){let t=this.format;if(t===`datetime`)return`datetime`;if(t===`duration`||t===`elapsed`||t===`micro`)return`duration`;if((t===`auto`||t===`relative`)&&typeof Intl<`u`&&Intl.RelativeTimeFormat){let t=this.tense;if(t===`past`||t===`future`||$u.compare(e,this.threshold)===1)return`relative`}return`datetime`},dd=function(e){let t=R(this,z,`a`,sd),n=this.format,r=this.formatStyle,i=this.tense,a=xd;n===`micro`?(e=nd(e),a=Sd,e.months===0&&(this.tense===`past`&&e.sign!==-1||this.tense===`future`&&e.sign!==1)&&(e=Sd)):(i===`past`&&e.sign!==-1||i===`future`&&e.sign!==1)&&(e=a);let o=`${this.precision}sDisplay`;return e.blank?a.toLocaleString(t,{style:r,[o]:`always`}):e.abs().toLocaleString(t,{style:r})},fd=function(e){let t=new Intl.RelativeTimeFormat(R(this,z,`a`,sd),{numeric:`auto`,style:this.formatStyle}),n=this.tense;n===`future`&&e.sign!==1&&(e=xd),n===`past`&&e.sign!==-1&&(e=xd);let[r,i]=rd(e);return i===`second`&&r<10?t.format(0,this.precision===`millisecond`?`second`:this.precision):t.format(r,i)},pd=function(e){let t=new Intl.DateTimeFormat(R(this,z,`a`,sd),{second:this.second,minute:this.minute,hour:this.hour,weekday:this.weekday,day:this.day,month:this.month,year:this.year,timeZoneName:this.timeZoneName,timeZone:this.timeZone});return`${this.prefix} ${t.format(e)}`.trim()},md=function(e){let t=new Date,n=new Intl.DateTimeFormat(R(this,z,`a`,sd),{timeZone:this.timeZone,year:`numeric`,month:`2-digit`,day:`2-digit`});return n.format(t)===n.format(e)},hd=function(e){let t=new Date,n=new Intl.DateTimeFormat(R(this,z,`a`,sd),{timeZone:this.timeZone,year:`numeric`});return n.format(t)===n.format(e)},gd=function(e){let t={hour:`numeric`,minute:`2-digit`,timeZoneName:`short`,timeZone:this.timeZone};if(R(this,z,`m`,md).call(this,e)){let n=new Intl.RelativeTimeFormat(R(this,z,`a`,sd),{numeric:`auto`}).format(0,`day`);n=n.charAt(0).toLocaleUpperCase(R(this,z,`a`,sd))+n.slice(1);let r=new Intl.DateTimeFormat(R(this,z,`a`,sd),t).format(e);return`${n} ${r}`}let n=Object.assign(Object.assign({},t),{day:`numeric`,month:`short`});return R(this,z,`m`,hd).call(this,e)?new Intl.DateTimeFormat(R(this,z,`a`,sd),n).format(e):new Intl.DateTimeFormat(R(this,z,`a`,sd),Object.assign(Object.assign({},n),{year:`numeric`})).format(e)},_d=function(e){if(this.hasAttribute(`aria-hidden`)&&this.getAttribute(`aria-hidden`)===`true`){let t=document.createElement(`span`);t.setAttribute(`aria-hidden`,`true`),t.textContent=e,R(this,cd,`f`).replaceChildren(t)}else R(this,cd,`f`).textContent=e},vd=function(e){return e===`duration`?!1:this.ownerDocument.documentElement.getAttribute(`data-prefers-absolute-time`)===`true`||this.ownerDocument.body?.getAttribute(`data-prefers-absolute-time`)===`true`};var Dd=typeof globalThis<`u`?globalThis:window;try{Dd.RelativeTimeElement=Ed.define()}catch(e){if(!(Dd.DOMException&&e instanceof DOMException&&e.name===`NotSupportedError`)&&!(e instanceof ReferenceError))throw e}var Od=class extends Uo{constructor(...e){super(...e),this.autocorrect=!1,this.autocapitalize=`off`}static get styles(){return[...super.styles,a` .input-group__input { font-family: var(--c-font-mono); font-size: 0.9em; } - `]}constructor(){super(),this.autocorrect=!1}firstUpdated(e){super.firstUpdated(e),this._inputNode?.setAttribute(`autocapitalize`,`off`)}};customElements.get(`craft-input-handle`)||customElements.define(`craft-input-handle`,Od),us();var kd={Á:`A`,á:`a`,Ä:`A`,ä:`a`,À:`A`,à:`a`,Â:`A`,â:`a`,É:`E`,é:`e`,Ë:`E`,ë:`e`,È:`E`,è:`e`,Ê:`E`,ê:`e`,Í:`I`,í:`i`,Ï:`I`,ï:`i`,Ì:`I`,ì:`i`,Î:`I`,î:`i`,Ó:`O`,ó:`o`,Ö:`O`,ö:`o`,Ò:`O`,ò:`o`,Ô:`O`,ô:`o`,Ú:`U`,ú:`u`,Ü:`U`,ü:`u`,Ù:`U`,ù:`u`,Û:`U`,û:`u`,Ý:`Y`,ý:`y`,Ÿ:`Y`,А:`A`,Б:`B`,В:`V`,Г:`G`,Д:`D`,Ѓ:`Gj`,Е:`E`,Ж:`Z`,З:`Z`,Ѕ:`Dz`,И:`I`,Ј:`j`,К:`K`,Л:`L`,Љ:`Lj`,М:`M`,Н:`N`,Њ:`Nj`,О:`O`,П:`P`,Р:`R`,С:`S`,Т:`T`,Ќ:`Kj`,У:`U`,Ф:`F`,Х:`X`,Ц:`C`,Ч:`C`,Џ:`Dz`,Ш:`S`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,ѓ:`gj`,е:`e`,ж:`z`,з:`z`,ѕ:`dz`,и:`i`,ј:`j`,к:`k`,л:`l`,љ:`lj`,м:`m`,н:`n`,њ:`nj`,о:`o`,п:`p`,р:`r`,с:`s`,т:`t`,ќ:`kj`,у:`u`,ф:`f`,х:`x`,ц:`c`,ч:`c`,џ:`dz`,ш:`s`,æ:`ae`,ǽ:`ae`,Ã:`A`,Å:`A`,Ǻ:`A`,Ă:`A`,Ǎ:`A`,Æ:`AE`,Ǽ:`AE`,ã:`a`,å:`a`,ǻ:`a`,ă:`a`,ǎ:`a`,ª:`a`,Ĉ:`C`,Ċ:`C`,Ç:`C`,ç:`c`,ĉ:`c`,ċ:`c`,Ð:`D`,Đ:`D`,ð:`d`,đ:`d`,Ĕ:`E`,Ė:`E`,ĕ:`e`,ė:`e`,ƒ:`f`,Ĝ:`G`,Ġ:`G`,ĝ:`g`,ġ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ĭ:`I`,Ǐ:`I`,Į:`I`,IJ:`IJ`,ĩ:`i`,ĭ:`i`,ǐ:`i`,į:`i`,ij:`ij`,Ĵ:`J`,ĵ:`j`,Ĺ:`L`,Ľ:`L`,Ŀ:`L`,ĺ:`l`,ľ:`l`,ŀ:`l`,Ñ:`N`,ñ:`n`,ʼn:`n`,Õ:`O`,Ō:`O`,Ŏ:`O`,Ǒ:`O`,Ő:`O`,Ơ:`O`,Ø:`O`,Ǿ:`O`,Œ:`OE`,õ:`o`,ō:`o`,ŏ:`o`,ǒ:`o`,ő:`o`,ơ:`o`,ø:`o`,ǿ:`o`,º:`o`,œ:`oe`,Ŕ:`R`,Ŗ:`R`,ŕ:`r`,ŗ:`r`,Ŝ:`S`,Ș:`S`,ŝ:`s`,ș:`s`,ſ:`s`,Ţ:`T`,Ț:`T`,Ŧ:`T`,Þ:`TH`,ţ:`t`,ț:`t`,ŧ:`t`,þ:`th`,Ũ:`U`,Ŭ:`U`,Ű:`U`,Ų:`U`,Ư:`U`,Ǔ:`U`,Ǖ:`U`,Ǘ:`U`,Ǚ:`U`,Ǜ:`U`,ũ:`u`,ŭ:`u`,ű:`u`,ų:`u`,ư:`u`,ǔ:`u`,ǖ:`u`,ǘ:`u`,ǚ:`u`,ǜ:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ÿ:`y`,ŷ:`y`,ΑΥ:`AU`,ΑΎ:`AU`,Αυ:`Au`,Αύ:`Au`,ΕΊ:`I`,ΕΙ:`I`,Ει:`Ei`,ΕΥ:`EF`,ΕΎ:`EU`,Εί:`I`,Ευ:`Ef`,Εύ:`Eu`,ΟΙ:`I`,ΟΊ:`I`,ΟΥ:`U`,ΟΎ:`OU`,Οι:`Oi`,Οί:`I`,Ου:`Oy`,Ού:`Ou`,ΥΙ:`I`,ΎΙ:`I`,Υι:`Yi`,Ύι:`I`,ΥΊ:`I`,Υί:`I`,αυ:`au`,αύ:`au`,εί:`i`,ει:`ei`,ευ:`ef`,εύ:`eu`,οι:`oi`,οί:`i`,ου:`oy`,ού:`ou`,υι:`yi`,ύι:`i`,υί:`i`,Α:`A`,Ά:`A`,Β:`B`,Δ:`D`,Ε:`E`,Έ:`E`,Φ:`F`,Γ:`G`,Η:`H`,Ή:`I`,Ι:`I`,Ί:`I`,Ϊ:`I`,Κ:`K`,Ξ:`Ks`,Λ:`L`,Μ:`M`,Ν:`N`,Π:`P`,Ο:`O`,Ό:`O`,Ψ:`Ps`,Ρ:`R`,Σ:`S`,Τ:`T`,Θ:`Th`,Ω:`O`,Ώ:`W`,Χ:`X`,ϒ:`Y`,Υ:`Y`,Ύ:`Y`,Ϋ:`Y`,Ζ:`Z`,α:`a`,ά:`a`,β:`v`,δ:`d`,ε:`e`,έ:`e`,φ:`f`,γ:`gh`,η:`i`,ή:`i`,ι:`i`,ί:`i`,ϊ:`i`,ΐ:`i`,κ:`k`,ξ:`ks`,λ:`l`,μ:`m`,ν:`n`,ο:`o`,ό:`o`,π:`p`,ψ:`ps`,ρ:`r`,σ:`s`,ς:`s`,τ:`t`,ϑ:`th`,θ:`th`,ϐ:`v`,ω:`o`,ώ:`w`,χ:`kh`,υ:`i`,ύ:`y`,ΰ:`y`,ϋ:`y`,ζ:`z`,अ:`a`,आ:`aa`,ए:`e`,ई:`ii`,ऍ:`ei`,ऎ:`ae`,ऐ:`ai`,इ:`i`,ओ:`o`,ऑ:`oi`,ऒ:`oii`,ऊ:`uu`,औ:`ou`,उ:`u`,ब:`B`,भ:`Bha`,च:`Ca`,छ:`Chha`,ड:`Da`,ढ:`Dha`,फ:`Fa`,फ़:`Fi`,ग:`Ga`,घ:`Gha`,ग़:`Ghi`,ह:`Ha`,ज:`Ja`,झ:`Jha`,क:`Ka`,ख:`Kha`,ख़:`Khi`,ल:`L`,ळ:`Li`,ऌ:`Li`,ऴ:`Lii`,ॡ:`Lii`,म:`Ma`,न:`Na`,ङ:`Na`,ञ:`Nia`,ण:`Nae`,ऩ:`Ni`,ॐ:`oms`,प:`Pa`,क़:`Qi`,र:`Ra`,ऋ:`Ri`,ॠ:`Ri`,ऱ:`Ri`,स:`Sa`,श:`Sha`,ष:`Shha`,ट:`Ta`,त:`Ta`,ठ:`Tha`,द:`Tha`,थ:`Tha`,ध:`Thha`,ड़:`ugDha`,ढ़:`ugDhha`,व:`Va`,य:`Ya`,य़:`Yi`,ज़:`Za`,Ա:`A`,Բ:`B`,Գ:`G`,Դ:`D`,Ե:`E`,Զ:`Z`,Է:`E`,Ը:`Y`,Թ:`Th`,Ժ:`Zh`,Ի:`I`,Լ:`L`,Խ:`Kh`,Ծ:`Ts`,Կ:`K`,Հ:`H`,Ձ:`Dz`,Ղ:`Gh`,Ճ:`Tch`,Մ:`M`,Յ:`Y`,Ն:`N`,Շ:`Sh`,Ո:`Vo`,Չ:`Ch`,Պ:`P`,Ջ:`J`,Ռ:`R`,Ս:`S`,Վ:`V`,Տ:`T`,Ր:`R`,Ց:`C`,Ւ:`u`,Փ:`Ph`,Ք:`Q`,և:`ev`,Օ:`O`,Ֆ:`F`,ա:`a`,բ:`b`,գ:`g`,դ:`d`,ե:`e`,զ:`z`,է:`e`,ը:`y`,թ:`th`,ժ:`zh`,ի:`i`,լ:`l`,խ:`kh`,ծ:`ts`,կ:`k`,հ:`h`,ձ:`dz`,ղ:`gh`,ճ:`tch`,մ:`m`,յ:`y`,ն:`n`,շ:`sh`,ո:`vo`,չ:`ch`,պ:`p`,ջ:`j`,ռ:`r`,ս:`s`,վ:`v`,տ:`t`,ր:`r`,ց:`c`,ւ:`u`,փ:`ph`,ք:`q`,օ:`o`,ֆ:`f`,Ž:`Z`,Ň:`N`,Ş:`S`,ž:`z`,ň:`n`,ş:`s`,ı:`i`,İ:`I`,ğ:`g`,Ğ:`G`,ьо:`yo`,Й:`i`,Щ:`Shh`,Ъ:`Ie`,Ь:``,Ю:`Iu`,Я:`Ia`,й:`i`,щ:`shh`,ъ:`ie`,ь:``,ю:`iu`,я:`ia`,Ē:`E`,ē:`e`,န်ုပ်:`nub`,"ောင်":`aung`,"ိုက်":`aik`,"ိုဒ်":`ok`,"ိုင်":`aing`,"ိုလ်":`ol`,"ေါင်":`aung`,သြော:`aw`,"ောက်":`auk`,"ိတ်":`eik`,"ုတ်":`ok`,"ုန်":`on`,"ေတ်":`it`,"ုဒ်":`ait`,"ာန်":`an`,"ိန်":`ein`,"ွတ်":`ut`,"ေါ်":`aw`,"ွန်":`un`,"ိပ်":`eik`,"ုပ်":`ok`,"ွပ်":`ut`,"ိမ်":`ein`,"ုမ်":`on`,"ော်":`aw`,"ွမ်":`un`,က်:`et`,"ေါ":`aw`,"ော":`aw`,"ျွ":`ywa`,"ြွ":`yw`,"ို":`o`,"ုံ":`on`,တ်:`at`,င်:`in`,ည်:`i`,ဒ်:`d`,န်:`an`,ပ်:`at`,မ်:`an`,စျ:`za`,ယ်:`e`,ဉ်:`in`,စ်:`it`,"ိံ":`ein`,"ဲ":`e`,"း":``,"ာ":`a`,"ါ":`a`,"ေ":`e`,"ံ":`an`,"ိ":`i`,"ီ":`i`,"ု":`u`,"ူ":`u`,"်":`at`,"္":``,"့":``,က:`k`,"၉":`9`,တ:`t`,ရ:`ya`,ယ:`y`,မ:`m`,ဘ:`ba`,ဗ:`b`,ဖ:`pa`,ပ:`p`,န:`n`,ဓ:`da`,ဒ:`d`,ထ:`ta`,ဏ:`na`,ဝ:`w`,ဎ:`da`,ဍ:`d`,ဌ:`ta`,ဋ:`t`,ည:`ny`,ဇ:`z`,ဆ:`sa`,စ:`s`,င:`ng`,ဃ:`ga`,ဂ:`g`,လ:`l`,သ:`th`,"၈":`8`,ဩ:`aw`,ခ:`kh`,"၆":`6`,"၅":`5`,"၄":`4`,"၃":`3`,"၂":`2`,"၁":`1`,"၀":`0`,"၌":`hnaik`,"၍":`ywae`,ဪ:`aw`,ဦ:`-u`,ဟ:`h`,ဉ:`u`,ဤ:`-i`,ဣ:`i`,"၏":`-e`,ဧ:`e`,"ှ":`h`,"ွ":`w`,"ျ":`ya`,"ြ":`y`,အ:`a`,ဠ:`la`,"၇":`7`,DŽ:`DZ`,Dž:`Dz`,dž:`dz`,DZ:`DZ`,Dz:`Dz`,dz:`dz`,LJ:`LJ`,Lj:`Lj`,lj:`lj`,NJ:`NJ`,Nj:`Nj`,nj:`nj`,č:`c`,Č:`C`,ć:`c`,Ć:`C`,š:`s`,Š:`S`,ა:`a`,ბ:`b`,გ:`g`,დ:`d`,ე:`e`,ვ:`v`,ზ:`z`,თ:`t`,ი:`i`,კ:`k`,ლ:`l`,მ:`m`,ნ:`n`,ო:`o`,პ:`p`,ჟ:`zh`,რ:`r`,ს:`s`,ტ:`t`,უ:`u`,ფ:`f`,ქ:`q`,ღ:`gh`,ყ:`y`,შ:`sh`,ჩ:`ch`,ც:`ts`,ძ:`dz`,წ:`ts`,ჭ:`ch`,ხ:`kh`,ჯ:`j`,ჰ:`h`,Ё:`E`,ё:`e`,Ы:`Y`,ы:`y`,Э:`E`,э:`e`,І:`I`,і:`i`,Ѳ:`F`,ѳ:`f`,Ѣ:`E`,ѣ:`e`,Ѵ:`I`,ѵ:`i`,Є:`Je`,є:`je`,Ѥ:`Je`,ѥ:`je`,Ꙋ:`U`,ꙋ:`u`,Ѡ:`O`,ѡ:`o`,Ѿ:`Ot`,ѿ:`ot`,Ѫ:`U`,ѫ:`u`,Ѧ:`Ja`,ѧ:`ja`,Ѭ:`Ju`,ѭ:`ju`,Ѩ:`Ja`,ѩ:`Ja`,Ѯ:`Ks`,ѯ:`ks`,Ѱ:`Ps`,ѱ:`ps`,Ґ:`G`,ґ:`g`,Ї:`Yi`,ї:`yi`,Ә:`A`,Ғ:`G`,Қ:`Q`,Ң:`N`,Ө:`O`,Ұ:`U`,Ү:`U`,Һ:`H`,ә:`a`,ғ:`g`,қ:`q`,ң:`n`,ө:`o`,ұ:`u`,ү:`u`,һ:`h`,ď:`d`,Ď:`D`,ě:`e`,Ě:`E`,ř:`r`,Ř:`R`,ť:`t`,Ť:`T`,ů:`u`,Ů:`U`,ą:`a`,ę:`e`,ł:`l`,ń:`n`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ę:`E`,Ł:`L`,Ń:`N`,Ś:`S`,Ź:`Z`,Ż:`Z`,ā:`a`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,ū:`u`,Ā:`A`,Ģ:`G`,Ī:`I`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Ū:`U`,Ả:`A`,Ạ:`A`,Ắ:`A`,Ằ:`A`,Ẳ:`A`,Ẵ:`A`,Ặ:`A`,Ấ:`A`,Ầ:`A`,Ẩ:`A`,Ẫ:`A`,Ậ:`A`,ả:`a`,ạ:`a`,ắ:`a`,ằ:`a`,ẳ:`a`,ẵ:`a`,ặ:`a`,ấ:`a`,ầ:`a`,ẩ:`a`,ẫ:`a`,ậ:`a`,Ẻ:`E`,Ẽ:`E`,Ẹ:`E`,Ế:`E`,Ề:`E`,Ể:`E`,Ễ:`E`,Ệ:`E`,ẻ:`e`,ẽ:`e`,ẹ:`e`,ế:`e`,ề:`e`,ể:`e`,ễ:`e`,ệ:`e`,Ỉ:`I`,Ị:`I`,ỉ:`i`,ị:`i`,Ỏ:`O`,Ọ:`O`,Ố:`O`,Ồ:`O`,Ổ:`O`,Ỗ:`O`,Ộ:`O`,Ớ:`O`,Ờ:`O`,Ở:`O`,Ỡ:`O`,Ợ:`O`,ỏ:`o`,ọ:`o`,ố:`o`,ồ:`o`,ổ:`o`,ỗ:`o`,ộ:`o`,ớ:`o`,ờ:`o`,ở:`o`,ỡ:`o`,ợ:`o`,Ủ:`U`,Ụ:`U`,Ứ:`U`,Ừ:`U`,Ử:`U`,Ữ:`U`,Ự:`U`,ủ:`u`,ụ:`u`,ứ:`u`,ừ:`u`,ử:`u`,ữ:`u`,ự:`u`,Ỳ:`Y`,Ỷ:`Y`,Ỹ:`Y`,Ỵ:`Y`,ỳ:`y`,ỷ:`y`,ỹ:`y`,ỵ:`y`,ا:`a`,ب:`b`,پ:`p`,ت:`t`,ث:`th`,ج:`g`,چ:`ch`,ح:`h`,خ:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,ش:`sh`,ص:`s`,ض:`d`,ط:`t`,ظ:`th`,ع:`aa`,غ:`gh`,ف:`f`,ق:`k`,ک:`k`,گ:`g`,ل:`l`,ژ:`zh`,ك:`k`,م:`m`,ن:`n`,ه:`h`,و:`o`,ی:`y`,آ:`a`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,أ:`a`,ي:`y`,إ:`a`,ؤ:`o`,ئ:`y`,ء:`aa`,ђ:`dj`,ћ:`c`,Ђ:`Dj`,Ћ:`C`,ə:`e`,Ə:`E`,ß:`ss`,ẞ:`SS`,ভ্ল:`vl`,পশ:`psh`,ব্ধ:`bdh`,ব্জ:`bj`,ব্দ:`bd`,ব্ব:`bb`,ব্ল:`bl`,ভ:`v`,ব:`b`,চ্ঞ:`cNG`,চ্ছ:`cch`,চ্চ:`cc`,ছ:`ch`,চ:`c`,ধ্ন:`dhn`,ধ্ম:`dhm`,দ্ঘ:`dgh`,দ্ধ:`ddh`,দ্ভ:`dv`,দ্ম:`dm`,ড্ড:`DD`,ঢ:`Dh`,ধ:`dh`,দ্গ:`dg`,দ্দ:`dd`,ড:`D`,দ:`d`,"।":`.`,ঘ্ন:`Ghn`,গ্ধ:`Gdh`,গ্ণ:`GN`,গ্ন:`Gn`,গ্ম:`Gm`,গ্ল:`Gl`,জ্ঞ:`jNG`,ঘ:`Gh`,গ:`g`,হ্ণ:`hN`,হ্ন:`hn`,হ্ম:`hm`,হ্ল:`hl`,হ:`h`,জ্ঝ:`jjh`,ঝ:`jh`,জ্জ:`jj`,জ:`j`,ক্ষ্ণ:`kxN`,ক্ষ্ম:`kxm`,ক্ষ:`ksh`,কশ:`ksh`,ক্ক:`kk`,ক্ট:`kT`,ক্ত:`kt`,ক্ল:`kl`,ক্স:`ks`,খ:`kh`,ক:`k`,ল্ভ:`lv`,ল্ধ:`ldh`,লখ:`lkh`,লঘ:`lgh`,লফ:`lph`,ল্ক:`lk`,ল্গ:`lg`,ল্ট:`lT`,ল্ড:`lD`,ল্প:`lp`,ল্ম:`lm`,ল্ল:`ll`,ল্ব:`lb`,ল:`l`,ম্থ:`mth`,ম্ফ:`mf`,ম্ভ:`mv`,মপ্ল:`mpl`,ম্ন:`mn`,ম্প:`mp`,ম্ম:`mm`,ম্ল:`ml`,ম্ব:`mb`,ম:`m`,"০":`0`,"১":`1`,"২":`2`,"৩":`3`,"৪":`4`,"৫":`5`,"৬":`6`,"৭":`7`,"৮":`8`,"৯":`9`,ঙ্ক্ষ:`Ngkx`,ঞ্ছ:`nch`,ঙ্ঘ:`ngh`,ঙ্খ:`nkh`,ঞ্ঝ:`njh`,ঙ্গৌ:`ngOU`,ঙ্গৈ:`ngOI`,ঞ্চ:`nc`,ঙ্ক:`nk`,ঙ্ষ:`Ngx`,ঙ্গ:`ngo`,ঙ্ম:`Ngm`,ঞ্জ:`nj`,ন্ধ:`ndh`,ন্ঠ:`nTh`,ণ্ঠ:`NTh`,ন্থ:`nth`,ঙ্গা:`nga`,ঙ্গি:`ngi`,ঙ্গী:`ngI`,ঙ্গু:`ngu`,ঙ্গূ:`ngU`,ঙ্গে:`nge`,ঙ্গো:`ngO`,ণ্ঢ:`NDh`,নশ:`nsh`,ঙর:`Ngr`,ঞর:`NGr`,"ংর":`ngr`,ঙ:`Ng`,ঞ:`NG`,"ং":`ng`,ন্ন:`nn`,ণ্ণ:`NN`,ণ্ন:`Nn`,ন্ম:`nm`,ণ্ম:`Nm`,ন্দ:`nd`,ন্ট:`nT`,ণ্ট:`NT`,ন্ড:`nD`,ণ্ড:`ND`,ন্ত:`nt`,ন্স:`ns`,ন:`n`,ণ:`N`,"ৈ":`OI`,"ৌ":`OU`,"ো":`O`,ঐ:`OI`,ঔ:`OU`,অ:`o`,ও:`oo`,ফ্ল:`fl`,প্ট:`pT`,প্ত:`pt`,প্ন:`pn`,প্প:`pp`,প্ল:`pl`,প্স:`ps`,ফ:`f`,প:`p`,"ৃ":`rri`,ঋ:`rri`,রর‍্য:`rry`,"্র্য":`ry`,"্রর":`rr`,ড়্গ:`Rg`,ঢ়:`Rh`,ড়:`R`,র:`r`,"্র":`r`,শ্ছ:`Sch`,ষ্ঠ:`ShTh`,ষ্ফ:`Shf`,স্ক্ল:`skl`,স্খ:`skh`,স্থ:`sth`,স্ফ:`sf`,শ্চ:`Sc`,শ্ত:`St`,শ্ন:`Sn`,শ্ম:`Sm`,শ্ল:`Sl`,ষ্ক:`Shk`,ষ্ট:`ShT`,ষ্ণ:`ShN`,ষ্প:`Shp`,ষ্ম:`Shm`,স্প্ল:`spl`,স্ক:`sk`,স্ট:`sT`,স্ত:`st`,স্ন:`sn`,স্প:`sp`,স্ম:`sm`,স্ল:`sl`,শ:`S`,ষ:`Sh`,স:`s`,"ু":`u`,উ:`u`,অ্য:`oZ`,ত্থ:`tth`,ৎ:`tt`,ট্ট:`TT`,ট্ম:`Tm`,ঠ:`Th`,ত্ন:`tn`,ত্ম:`tm`,থ:`th`,ত্ত:`tt`,ট:`T`,ত:`t`,অ্যা:`AZ`,"া":`a`,আ:`a`,য়া:`ya`,য়:`y`,"ি":`i`,ই:`i`,"ী":`ee`,ঈ:`ee`,"ূ":`uu`,ঊ:`uu`,"ে":`e`,এ:`e`,য:`z`,"্য":`Z`,ইয়:`y`,ওয়:`w`,"্ব":`w`,এক্স:`x`,"ঃ":`:`,"ঁ":`nn`,"্‌":``,"˚":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,"௦":`0`,"௧":`1`,"௨":`2`,"௩":`3`,"௪":`4`,"௫":`5`,"௬":`6`,"௭":`7`,"௮":`8`,"௯":`9`,"௰":`10`,"௱":`100`,"௲":`1000`,Ꜳ:`AA`,ꜳ:`aa`,Ꜵ:`AO`,ꜵ:`ao`,Ꜷ:`AU`,ꜷ:`au`,Ꜹ:`AV`,ꜹ:`av`,Ꜻ:`av`,ꜻ:`av`,Ꜽ:`AY`,ꜽ:`ay`,ȸ:`db`,ʣ:`dz`,ʥ:`dz`,ʤ:`dezh`,"🙰":`et`,ff:`ff`,ffi:`ffi`,ffl:`ffl`,fi:`fi`,fl:`fl`,ʩ:`feng`,ʪ:`ls`,ʫ:`lz`,ɮ:`lezh`,ȹ:`qp`,ʨ:`tc`,ʦ:`ts`,ʧ:`tesh`,Ꝏ:`OO`,ꝏ:`oo`,st:`st`,ſt:`st`,Ꜩ:`TZ`,ꜩ:`tz`,ᵫ:`ue`,Aι:`Ai`,αι:`ai`,ἀ:`a`,ἁ:`a`,ἂ:`a`,ἃ:`a`,ἄ:`a`,ἅ:`a`,ἆ:`a`,ἇ:`a`,Ἀ:`A`,Ἁ:`A`,Ἂ:`A`,Ἃ:`A`,Ἄ:`A`,Ἅ:`A`,Ἆ:`A`,Ἇ:`A`,ᾰ:`a`,ᾱ:`a`,ᾲ:`a`,ᾳ:`a`,ᾴ:`a`,ᾶ:`a`,ᾷ:`a`,Ᾰ:`A`,Ᾱ:`A`,Ὰ:`A`,Ά:`A`,ᾼ:`A`,A̧:`A`,a̧:`a`,Ⱥ:`A`,ⱥ:`a`,Ȧ:`A`,ȧ:`a`,Ɓ:`B`,C̈:`C`,c̈:`c`,C̨:`C`,c̨:`c`,Ȼ:`C`,ȼ:`c`,C̀:`C`,c̀:`c`,C̣:`C`,c̣:`c`,C̄:`C`,c̄:`c`,C̃:`C`,c̃:`c`,Ȩ:`E`,ȩ:`e`,Ɇ:`E`,ɇ:`e`,I̧:`I`,i̧:`i`,Ɨ:`I`,ɨ:`i`,i:`i`,J́́:`J`,j́:`j`,J̀̀:`J`,j̀:`j`,J̈:`J`,j̈:`j`,J̧:`J`,j̧:`j`,J̨:`J`,j̨:`j`,Ɉ:`J`,ɉ:`j`,J̌:`J`,ǰ:`j`,J̇:`J`,j:`j`,J̣:`J`,j̣:`j`,J̄:`J`,j̄:`j`,J̃:`J`,j̃:`j`,ĸ:`k`,L̀:`L`,l̀:`l`,L̂:`L`,l̂:`l`,L̈:`L`,l̈:`l`,L̨:`L`,l̨:`l`,Ƚ:`L`,ƚ:`l`,L̇:`L`,l̇:`l`,Ḷ:`L`,ḷ:`l`,L̄:`L`,l̄:`l`,L̃:`L`,l̃:`l`,Ŋ:`N`,ŋ:`n`,Ǹ:`N`,ǹ:`n`,N̂:`N`,n̂:`n`,N̈:`N`,n̈:`n`,N̨:`N`,n̨:`n`,Ꞥ:`N`,ꞥ:`n`,Ṅ:`N`,ṅ:`n`,Ṇ:`N`,ṇ:`n`,N̄:`N`,n̄:`n`,O̧:`O`,o̧:`o`,Ǫ:`O`,ǫ:`o`,Ɵ:`O`,ɵ:`o`,Ȯ:`O`,ȯ:`o`,S̀:`S`,s̀:`s`,Ŝ̀:`S`,S̈:`S`,s̈:`s`,S̨:`S`,s̨:`s`,Ꞩ:`S`,ꞩ:`s`,Ṡ:`S`,ṡ:`s`,Ṣ:`S`,ṣ:`s`,S̄:`S`,s̄:`s`,S̃:`S`,s̃:`s`,T́:`T`,t́:`t`,T̀:`T`,t̀:`t`,T̂:`T`,t̂:`t`,T̈:`T`,ẗ:`t`,T̨:`T`,t̨:`t`,Ⱦ:`T`,ⱦ:`t`,Ṫ:`T`,ṫ:`t`,Ṭ:`T`,ṭ:`t`,T̄:`T`,t̄:`t`,T̃:`T`,t̃:`t`,U̧:`U`,u̧:`u`,Ʉ:`U`,ʉ:`u`,U̇:`U`,u̇:`u`,Ʊ:`U`,ʊ:`u`,Ẁ:`W`,ẁ:`w`,Ẃ:`W`,ẃ:`w`,Ẅ:`W`,ẅ:`w`,Ꙗ:`Ja`,ꙗ:`ja`,Y̧:`Y`,y̧:`y`,Y̨:`Y`,y̨:`y`,Ɏ:`Y`,ɏ:`y`,Y̌:`Y`,y̌:`y`,Ẏ:`Y`,ẏ:`y`,Ȳ:`Y`,ȳ:`y`,Z̀:`Z`,z̀:`z`,Ẑ:`Z`,ẑ:`z`,Z̈:`Z`,z̈:`z`,Z̧:`Z`,z̧:`z`,Z̨:`Z`,z̨:`z`,Ƶ:`Z`,ƶ:`z`,Ẓ:`Z`,ẓ:`z`,Z̄:`Z`,z̄:`z`,Z̃:`Z`,z̃:`z`,"\xA0":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `,"\u2028":` `,"\u2029":` `,"​":` `," ":` `," ":` `," ":` `,ᅠ:` `,"«":`<<`,"»":`>>`,"‘":`'`,"’":`'`,"‚":`'`,"‛":`'`,"“":`"`,"”":`"`,"„":`"`,"‟":`"`,"‹":`'`,"›":`'`,"–":`-`,"—":`-`,"…":`...`,"€":`EUR`,$:`$`,"₢":`Cr`,"₣":`Fr.`,"£":`PS`,"₤":`L.`,ℳ:`M`,"₥":`mil`,"₦":`N`,"₧":`Pts`,"₨":`Rs`,රු:`LKR`,ரூ:`LKR`,"௹":`Rs`,रू:`NPR`,"₹":`Rs`,"૱":`Rs`,"₩":`W`,"₪":`NS`,"₸":`KZT`,"₫":`D`,"֏":`AMD`,"₭":`K`,"₺":`TL`,"₼":`AZN`,"₮":`T`,"₯":`Dr`,"₲":`PYG`,"₾":`GEL`,"₳":`ARA`,"₴":`UAH`,"₽":`RUB`,"₵":`GHS`,"₡":`CL`,"¢":`c`,"¥":`YEN`,円:`JPY`,"৳":`BDT`,元:`CNY`,"﷼":`SAR`,"៛":`KR`,"₠":`ECU`,"¤":`$?`,"฿":`THB`,"؋":`AFN`};function Ad(e,t=kd){e=e.normalize(`NFC`);let n=``,r;for(let i=0;i/g,``);r=r.replace(/['"‘’“”ʻ\[\]\(\)\{\}:]/g,``),r=r.toLowerCase(),r=Ad(r),n.allowNonAlphaStart||(r=r.replace(/^[^a-z]+/,``));let i=r.split(/[^a-z0-9]+/).filter(Boolean);if(r=``,n.handleCasing===`snake`)return i.join(`_`);for(let e=0;e/g,``);return t=t.toLowerCase(),t=Ad(t),t=t.replace(/^[^a-z]+/,``),t=t.replace(/[^a-z0-9]+$/,``),t.split(/[^a-z0-9]+/).filter(Boolean).join(`-`)}function Pd(e){return typeof e==`symbol`||e instanceof Symbol}var Fd=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)();function Id(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Ld(){}function Rd(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function zd(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bd(e){if(Rd(e))return e;if(Array.isArray(e)||zd(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function Vd(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Hd(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ud=`[object RegExp]`,Wd=`[object String]`,Gd=`[object Number]`,Kd=`[object Boolean]`,qd=`[object Arguments]`,Jd=`[object Symbol]`,Yd=`[object Date]`,Xd=`[object Map]`,Zd=`[object Set]`,Qd=`[object Array]`,$d=`[object Function]`,ef=`[object ArrayBuffer]`,tf=`[object Object]`,nf=`[object Error]`,rf=`[object DataView]`,af=`[object Uint8Array]`,of=`[object Uint8ClampedArray]`,sf=`[object Uint16Array]`,cf=`[object Uint32Array]`,lf=`[object BigUint64Array]`,uf=`[object Int8Array]`,df=`[object Int16Array]`,ff=`[object Int32Array]`,pf=`[object BigInt64Array]`,mf=`[object Float32Array]`,hf=`[object Float64Array]`;function gf(e){return Fd.Buffer!==void 0&&Fd.Buffer.isBuffer(e)}function _f(e,t){return vf(e,void 0,e,new Map,t)}function vf(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Rd(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;aEf(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case Qd:case af:case of:case sf:case cf:case lf:case uf:case df:case ff:case pf:case mf:case hf:if(gf(e)!==gf(t)||e.length!==t.length)return!1;for(let i=0;i=0}var Af={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function jf(e){return e.replace(/[&<>"']/g,e=>Af[e])}function Mf(e){return e!=null&&typeof e!=`function`&&kf(e.length)}function Nf(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function Pf(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Ff(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Ff).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function If(e){if(Array.isArray(e))return e.map(Pf);if(typeof e==`symbol`)return[e];e=Ff(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Hd(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),yf(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Gd:case Wd:case Kd:{let t=new e.constructor(e?.valueOf());return yf(t,e),t}case qd:{let t={};return yf(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Vf(e){return Bf(e)}var Hf=/^(?:0|[1-9]\d*)$/;function Uf(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{let r=e[t];(!(Object.hasOwn(e,t)&&wf(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function Qf(e,t,n,r){if(e==null&&!zf(e))return e;let i;i=Xf(t,e)?[t]:Array.isArray(t)?t:If(t);let a=n(Lf(e,i)),o=e;for(let t=0;tn,()=>void 0)}function ep(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Id(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function tp(e){return zd(e)}function np(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;etypeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0,sp=e=>e instanceof FormData?!0:op(e)||typeof e==`object`&&!!e&&Object.values(e).some(e=>sp(e)),cp=class extends Error{response;constructor(e){super(`HTTP error ${e.status}`),this.name=`HttpResponseError`,this.response=e}},lp=class extends Error{constructor(e=`Request was cancelled`){super(e),this.name=`HttpCancelledError`}},up=class extends Error{constructor(e=`Network error`){super(e),this.name=`HttpNetworkError`}};function dp(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(n=>t.append(`${e}[]`,String(n))):typeof n==`object`?t.append(e,JSON.stringify(n)):t.append(e,String(n)))}),t.toString()}function fp(e,t,n){if(t&&!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=t.replace(/\/$/,``)+`/`+e.replace(/^\//,``)),n&&Object.keys(n).length>0){let t=dp(n);t&&(e+=(e.includes(`?`)?`&`:`?`)+t)}return e}function pp(){return typeof window>`u`?null:window.axios?.defaults?.headers?.common?.[`X-Requested-With`]??null}function mp(e,t=new FormData,n=null){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&hp(t,n?`${n}[${r}]`:r,e[r]);return t}function hp(e,t,n){if(Array.isArray(n))return n.forEach((n,r)=>hp(e,`${t}[${r}]`,n));if(n instanceof Date)return e.append(t,n.toISOString());if(typeof File<`u`&&n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);mp(n,e,t)}function gp(e,t){if(e!=null)return e instanceof FormData?e:typeof e==`object`&&sp(e)?mp(e):typeof e==`object`||t[`Content-Type`]?.includes(`application/json`)?JSON.stringify(e):String(e)}function _p(e){let t={};return e.forEach((e,n)=>{t[n.toLowerCase()]=e}),t}function vp(e={}){let t=e.xsrfCookieName??`XSRF-TOKEN`,n=e.xsrfHeaderName??`X-XSRF-TOKEN`;function r(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(^|;\\s*)`+t+`=([^;]*)`));return e?decodeURIComponent(e[2]):null}return{setXsrfCookieName(e){t=e},setXsrfHeaderName(e){n=e},async request(e){let t=fp(e.url,e.baseURL,e.params),i=e.method.toUpperCase(),a={},o=pp();o&&(a[`X-Requested-With`]=o),e.data!==void 0&&![`GET`,`DELETE`].includes(i)&&!(e.data instanceof FormData)&&!sp(e.data)&&(a[`Content-Type`]=`application/json`),e.headers&&Object.entries(e.headers).forEach(([e,t])=>{t!==void 0&&(a[e]=String(t))});let s=r();s&&![`GET`,`HEAD`,`OPTIONS`].includes(i)&&(a[n]=s);let c=e.signal,l,u=e.timeout??3e4;if(u>0&&!c){let e=new AbortController;c=e.signal,l=setTimeout(()=>e.abort(),u)}let d=[`GET`,`DELETE`].includes(i)?void 0:gp(e.data,a);d instanceof FormData&&delete a[`Content-Type`];try{let n=await fetch(t,{method:i,headers:a,body:d,signal:c,credentials:e.credentials??`same-origin`});l&&clearTimeout(l);let r;r=n.headers.get(`content-type`)?.includes(`application/json`)?await n.json():await n.text();let o={status:n.status,data:r,headers:_p(n.headers)};if(!n.ok)throw new cp(o);return o}catch(e){throw l&&clearTimeout(l),e instanceof cp?e:e instanceof DOMException&&e.name===`AbortError`?new lp:e instanceof TypeError?new up(e.message):e}}}}var yp=vp(),bp=yp,xp=void 0,Sp=void 0,wp=`same-origin`,Tp=e=>`${e.method}:${e.baseURL??xp??``}${e.url}`,Ep=e=>e.status===204&&e.headers[`precognition-success`]===`true`,Dp={},Op={get:(e,t={},n={})=>Ap(kp(`get`,e,t,n)),post:(e,t={},n={})=>Ap(kp(`post`,e,t,n)),patch:(e,t={},n={})=>Ap(kp(`patch`,e,t,n)),put:(e,t={},n={})=>Ap(kp(`put`,e,t,n)),delete:(e,t={},n={})=>Ap(kp(`delete`,e,t,n)),useHttpClient(e){return bp=e,Op},withBaseURL(e){return xp=e,Op},withTimeout(e){return Sp=e,Op},withCredentials(e){return wp=typeof e==`string`?e:e?`include`:`omit`,Op},fingerprintRequestsUsing(e){return Tp=e===null?()=>null:e,Op},determineSuccessUsing(e){return Ep=e,Op},withXsrfCookieName(e){return yp.setXsrfCookieName(e),Op},withXsrfHeaderName(e){return yp.setXsrfHeaderName(e),Op}},kp=(e,t,n,r)=>({url:t,method:e,...r,...[`get`,`delete`].includes(e)?{params:ip({},n,r?.params)}:{data:ip({},n,r?.data)}}),Ap=(e={})=>{let t=[jp,Np,Pp].reduce((e,t)=>t(e),e);return(t.onBefore??(()=>!0))()===!1?Promise.resolve(null):((t.onStart??(()=>null))(),bp.request({method:t.method,url:t.url,baseURL:t.baseURL??xp,data:t.data,params:t.params,headers:t.headers,signal:t.signal,timeout:t.timeout,credentials:wp}).then(async e=>{t.precognitive&&Fp(e);let n=e.status,r=e;return t.precognitive&&t.onPrecognitionSuccess&&Ep(e)&&(r=await Promise.resolve(t.onPrecognitionSuccess(e)??r)),t.onSuccess&&Mp(n)&&(r=await Promise.resolve(t.onSuccess(r)??r)),(Lp(t,n)??(e=>e))(r)??r},e=>{if(Ip(e))return Promise.reject(e);let n=e;return t.precognitive&&Fp(n.response),(Lp(t,n.response.status)??((e,t)=>Promise.reject(t)))(n.response,n)}).finally(t.onFinish??(()=>null)))},jp=e=>{let t=e.only??e.validate;return{...e,timeout:e.timeout??Sp,precognitive:e.precognitive!==!1,fingerprint:e.fingerprint===void 0?Tp(e,bp):e.fingerprint,headers:{...e.headers,Accept:`application/json`,"Content-Type":Rp(e),...e.precognitive===!1?{}:{Precognition:!0},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},Mp=e=>e>=200&&e<300,Np=e=>typeof e.fingerprint==`string`?(Dp[e.fingerprint]?.abort(),delete Dp[e.fingerprint],e):e,Pp=e=>typeof e.fingerprint!=`string`||e.signal||!e.precognitive?e:(Dp[e.fingerprint]=new AbortController,{...e,signal:Dp[e.fingerprint].signal}),Fp=e=>{if(e.headers?.precognition!==`true`)throw Error(`Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.`)},Ip=e=>!(e instanceof cp)||typeof e.response?.status!=`number`,Lp=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked})[t],Rp=e=>e.headers?.[`Content-Type`]??e.headers?.[`Content-type`]??e.headers?.[`content-type`]??(sp(e.data)?`multipart/form-data`:`application/json`),zp=(e,t)=>{if(!e.includes(`*`))return[e];let n=e.split(`.`),r=[``];for(let e of n)if(e===`*`){let e=[];for(let n of r){let r=n?Lf(t,n):t;if(Array.isArray(r))for(let t=0;tt?`${t}.${e}`:e);return r},Bp=(e,t)=>t.includes(`*`)?RegExp(`^`+t.replace(/\./g,`\\.`).replace(/\*/g,`[^.]+`)+`$`).test(e):e===t,Vp=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>!t.some(t=>Bp(e,t)))),Hp=(e,t={})=>{let n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]},r=!1,i=!1,a=e=>e===i?[]:(i=e,n.validatingChanged),o=[],s=e=>{let t=[...new Set(e)];return o.length!==t.length||!t.every(e=>o.includes(e))?(o=t,n.validatedChanged):[]},c=()=>o.filter(e=>d[e]===void 0),l=[],u=e=>{let t=[...new Set(e)];return l.length!==t.length||!t.every(e=>l.includes(e))?(l=t,n.touchedChanged):[]},d={},f=e=>{let t=Wp(e);return Of(d,t)?[]:(d=t,n.errorsChanged)},p=e=>{let t={...d};return delete t[Gp(e)],f(t)},m=()=>Object.keys(d).length>0,h=1500,g=e=>{h=e,S.cancel(),S=x()},_=t,v=null,y=[],b=null,x=()=>ep(t=>{e({get:(e,n={},r={})=>Op.get(e,T(n),C(r,t,n)),post:(e,n={},r={})=>Op.post(e,T(n),C(r,t,n)),patch:(e,n={},r={})=>Op.patch(e,T(n),C(r,t,n)),put:(e,n={},r={})=>Op.put(e,T(n),C(r,t,n)),delete:(e,n={},r={})=>Op.delete(e,T(n),C(r,t,n))}).catch(e=>e instanceof lp||e instanceof cp&&e.response?.status===422?null:Promise.reject(e))},h,{leading:!0,trailing:!0}),S=x(),C=(e,t,n={})=>{let r={...e,...t},i=Array.from(r.only??r.validate??l);return{...t,...ip({},e,t),only:i,timeout:r.timeout??5e3,onValidationError:(e,t)=>([...s([...o,...i]),...f(ip(Vp({...d},i),e.data.errors))].forEach(e=>e()),r.onValidationError?r.onValidationError(e,t):Promise.reject(t)),onSuccess:e=>(s([...o,...i]).forEach(e=>e()),r.onSuccess?r.onSuccess(e):e),onPrecognitionSuccess:e=>([...s([...o,...i]),...f(Vp({...d},i))].forEach(e=>e()),r.onPrecognitionSuccess?r.onPrecognitionSuccess(e):e),onBefore:()=>{let e=l.some(e=>e.includes(`*`)),t=e?[...new Set(l.flatMap(e=>zp(e,n)))]:l;return r.onBeforeValidation&&r.onBeforeValidation({data:n,touched:t},{data:_,touched:y})===!1||(r.onBefore||(()=>!0))()===!1?!1:(e&&u(t).forEach(e=>e()),b=l,v=n,!0)},onStart:()=>{a(!0).forEach(e=>e()),(r.onStart??(()=>null))()},onFinish:()=>{a(!1).forEach(e=>e()),y=b,_=v,b=v=null,(r.onFinish??(()=>null))()}}},w=(e,t,n)=>{if(e===void 0){let e=Array.from(n?.only??n?.validate??[]);u([...l,...e]).forEach(e=>e()),S(n??{});return}if(op(t)&&!r){console.warn(`Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.`);return}e=Gp(e),(e.includes(`*`)||Lf(_,e)!==t)&&(u([e,...l]).forEach(e=>e()),S(n??{}))},T=e=>r===!1?Kp(e):e,E={touched:()=>l,validate(e,t,n){return typeof e==`object`&&!(`target`in e)&&(n=e,e=t=void 0),w(e,t,n),E},touch(e){let t=Array.isArray(e)?e:[Gp(e)];return u([...l,...t]).forEach(e=>e()),E},validating:()=>i,valid:c,errors:()=>d,hasErrors:m,setErrors(e){return f(e).forEach(e=>e()),E},forgetError(e){return p(e).forEach(e=>e()),E},defaults(e){return t=e,_=e,E},reset(...e){if(e.length===0)u([]).forEach(e=>e());else{let n=[...l];e.forEach(e=>{n.includes(e)&&n.splice(n.indexOf(e),1),$f(_,e,Lf(t,e))}),u(n).forEach(e=>e())}return E},setTimeout(e){return g(e),E},on(e,t){return n[e].push(t),E},validateFiles(){return r=!0,E},withoutFileValidation(){return r=!1,E}};return E},Up=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:Array.isArray(e[n])?e[n][0]:e[n]}),{}),Wp=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:typeof e[n]==`string`?[e[n]]:e[n]}),{}),Gp=e=>typeof e==`string`?e:e.target.name,Kp=e=>{let t={...e};return Object.keys(t).forEach(e=>{let n=t[e];if(n!==null){if(op(n)){delete t[e];return}if(Array.isArray(n)){t[e]=Object.values(Kp({...n}));return}if(typeof n==`object`){t[e]=Kp(t[e]);return}}}),t},qp=new class{config={};defaults;constructor(e){this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Gf(this.config,e)?Lf(this.config,e):Lf(this.defaults,e)}set(e,t){typeof e==`string`?$f(this.config,e,t):Object.entries(e).forEach(([e,t])=>{$f(this.config,e,t)})}}({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function Jp(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function Yp(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var Xp=e=>Yp(`before`,{cancelable:!0,detail:{visit:e}}),Zp=e=>Yp(`error`,{detail:{errors:e}}),Qp=e=>Yp(`networkError`,{cancelable:!0,detail:{error:e}}),$p=e=>Yp(`finish`,{detail:{visit:e}}),em=e=>Yp(`httpException`,{cancelable:!0,detail:{response:e}}),tm=e=>Yp(`beforeUpdate`,{detail:{page:e}}),nm=e=>Yp(`navigate`,{detail:{page:e}}),rm=e=>Yp(`progress`,{detail:{progress:e}}),im=e=>Yp(`start`,{detail:{visit:e}}),am=e=>Yp(`success`,{detail:{page:e}}),om=(e,t)=>Yp(`prefetched`,{detail:{fetchedAt:Date.now(),response:e,visit:t}}),sm=e=>Yp(`prefetching`,{detail:{visit:e}}),cm=e=>Yp(`flash`,{detail:{flash:e}}),lm=class{static locationVisitKey=`inertiaLocationVisit`;static set(e,t){typeof window<`u`&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<`u`)return JSON.parse(window.sessionStorage.getItem(e)||`null`)}static merge(e,t){let n=this.get(e);n===null?this.set(e,t):this.set(e,{...n,...t})}static remove(e){typeof window<`u`&&window.sessionStorage.removeItem(e)}static removeNested(e,t){let n=this.get(e);n!==null&&(delete n[t],this.set(e,n))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<`u`&&window.sessionStorage.clear()}},um=async e=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);let t=hm(),n=await vm(await ym());if(!n)throw Error(`Unable to encrypt history`);return await pm(t,n,e)},dm={key:`historyKey`,iv:`historyIv`},fm=async e=>{let t=hm(),n=await ym();if(!n)throw Error(`Unable to decrypt history`);return await mm(t,n,e)},pm=async(e,t,n)=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=new TextEncoder,i=JSON.stringify(n),a=new Uint8Array(i.length*3),o=r.encodeInto(i,a);return window.crypto.subtle.encrypt({name:`AES-GCM`,iv:e},t,a.subarray(0,o.written))},mm=async(e,t,n)=>{if(window.crypto.subtle===void 0)return console.warn(`Decryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=await window.crypto.subtle.decrypt({name:`AES-GCM`,iv:e},t,n);return JSON.parse(new TextDecoder().decode(r))},hm=()=>{let e=lm.get(dm.iv);if(e)return new Uint8Array(e);let t=window.crypto.getRandomValues(new Uint8Array(12));return lm.set(dm.iv,Array.from(t)),t},gm=async()=>window.crypto.subtle===void 0?(console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(null)):window.crypto.subtle.generateKey({name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]),_m=async e=>{if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve();let t=await window.crypto.subtle.exportKey(`raw`,e);lm.set(dm.key,Array.from(new Uint8Array(t)))},vm=async e=>{if(e)return e;let t=await gm();return t?(await _m(t),t):null},ym=async()=>{let e=lm.get(dm.key);return e?await window.crypto.subtle.importKey(`raw`,new Uint8Array(e),{name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]):null},bm=(e,t,n)=>{if(e===t)return!0;for(let r in e)if(!n.includes(r)&&e[r]!==t[r]&&!xm(e[r],t[r]))return!1;for(let r in t)if(!n.includes(r)&&!(r in e))return!1;return!0},xm=(e,t)=>{switch(typeof e){case`object`:return bm(e,t,[]);case`function`:return e.toString()===t.toString();default:return e===t}},Sm={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},Cm=e=>{if(typeof e==`number`)return e;for(let[t,n]of Object.entries(Sm))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},wm=new class{cached=[];inFlightRequests=[];removalTimers=[];currentUseId=null;add(e,t,{cacheFor:n,cacheTags:r}){if(this.findInFlight(e))return Promise.resolve();let i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();let[a,o]=this.extractStaleValues(n),s=new Promise((n,r)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),r()},onError:t=>{this.remove(e),e.onError(t),r()},onPrefetching(t){e.onPrefetching(t)},onPrefetched(t,n){e.onPrefetched(t,n)},onPrefetchResponse(e){n(e)},onPrefetchError(t){wm.removeFromInFlight(e),r(t)}})}).then(t=>{this.remove(e);let n=t.getPageResponse();V.mergeOncePropsIntoResponse(n),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,expiresAt:Date.now()+o,response:s,singleUse:o===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(r)?r:[r]});let i=this.getShortestOncePropTtl(n);return this.scheduleForRemoval(e,i?Math.min(o,i):o),this.removeFromInFlight(e),t.handlePrefetch(),t});return this.inFlightRequests.push({params:{...e},response:s,staleTimestamp:null,inFlight:!0}),s}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(t=>e.includes(t)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){let[t,n]=this.cacheForToStaleAndExpires(e);return[Cm(t),Cm(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){let t=this.removalTimers.find(t=>this.paramsAreEqual(t.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(e=>e!==t))}scheduleForRemoval(e,t){if(!(typeof window>`u`)&&(this.clearTimer(e),t>0)){let n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){let n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=n,e.response.then(e=>{if(this.currentUseId===n)return e.mergeParams({...t,onPrefetched:()=>{}}),this.removeSingleUseItems(t),e.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>this.paramsAreEqual(t.params,e)?!t.singleUse:!0)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){let t=B(e);return t.headers.Purpose===`prefetch`&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return bm(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),[`showProgress`,`replace`,`prefetch`,`preserveScroll`,`preserveState`,`onBefore`,`onBeforeUpdate`,`onStart`,`onProgress`,`onFinish`,`onCancel`,`onSuccess`,`onError`,`onFlash`,`onPrefetched`,`onCancelToken`,`onPrefetching`,`async`,`viewTransition`,`optimistic`,`component`,`pageProps`])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{let n=t.getPageResponse();V.mergeOncePropsIntoResponse(n,{force:!0});for(let[e,t]of Object.entries(n.deferredProps??{})){let r=t.filter(e=>Lf(n.props,e)===void 0);r.length>0?n.deferredProps[e]=r:delete n.deferredProps[e]}let r=this.getShortestOncePropTtl(n);if(r===null)return;let i=e.expiresAt-Date.now(),a=Math.min(i,r);a>0?this.scheduleForRemoval(e.params,a):this.remove(e.params)})})}getShortestOncePropTtl(e){let t=Object.values(e.onceProps??{}).map(e=>e.expiresAt).filter(e=>!!e);return t.length===0?null:Math.min(...t)-Date.now()}},Tm=(e,t=1)=>{window.requestAnimationFrame(()=>{t>1?Tm(e,t-1):e()})},Em=e=>{if(typeof window>`u`)return null;let t=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return t?.textContent?JSON.parse(t.textContent):null},Dm=typeof window>`u`,Om=!Dm&&/Firefox/i.test(window.navigator.userAgent),km=class{static save(){H.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll(`[scroll-region]`)}static scrollToTop(){if(Om&&getComputedStyle(document.documentElement).scrollBehavior===`smooth`)return Tm(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){!Dm&&window.location.hash||this.scrollToTop(),this.regions().forEach(e=>{typeof e.scrollTo==`function`?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){let e=Dm?null:window.location.hash;e&&setTimeout(()=>{let t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){Dm||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){Dm||this.regions().forEach((t,n)=>{let r=e[n];r&&(typeof t.scrollTo==`function`?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))})}static restoreDocument(){let e=H.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){let t=e.target;typeof t.hasAttribute==`function`&&t.hasAttribute(`scroll-region`)&&this.save()}static onWindowScroll(){H.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},Am=e=>typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0;function jm(e){return Am(e)||e instanceof FormData&&Array.from(e.values()).some(e=>jm(e))||typeof e==`object`&&!!e&&Object.values(e).some(e=>jm(e))}var Mm=e=>e instanceof FormData;function Nm(e,t=new FormData,n=null,r=`brackets`){e||={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&Fm(t,Pm(n,i,`indices`),e[i],r);return t}function Pm(e,t,n){return e?n===`brackets`?`${e}[]`:`${e}[${t}]`:t}function Fm(e,t,n,r){if(Array.isArray(n))return Array.from(n.keys()).forEach(i=>Fm(e,Pm(t,i.toString(),r),n[i],r));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);Nm(n,e,t,r)}function Im(e){return/\[\d+\]/.test(decodeURIComponent(e.search))}function Lm(e){if(!e||e===`?`)return{};let t={};return e.replace(/^\?/,``).split(`&`).filter(Boolean).forEach(e=>{let[n,r]=zm(e);Vm(t,Bm(n),Bm(r))}),t}function Rm(e,t){let n=[];return Um(e,``,n,t),n.length?`?`+n.join(`&`):``}function zm(e){let t=e.indexOf(`=`);return t===-1?[e,``]:[e.substring(0,t),e.substring(t+1)]}function Bm(e){return decodeURIComponent(e.replace(/\+/g,` `))}function Vm(e,t,n){let r=Hm(t),i=e;for(;r.length>1;){let e=r.shift(),t=r[0]===``;(typeof i[e]!=`object`||i[e]===null)&&(i[e]=t?[]:{}),i=i[e]}let a=r.shift();a===``&&Array.isArray(i)?i.push(n):i[a]=n}function Hm(e){let t=[],n=e.split(`[`)[0];n&&t.push(n);let r,i=/\[([^\]]*)\]/g;for(;(r=i.exec(e))!==null;)t.push(r[1]);return t}function Um(e,t,n,r){if(e!==void 0){if(e===null){n.push(`${t}=`);return}if(Array.isArray(e)){e.forEach((e,i)=>{Um(e,r===`indices`?`${t}[${i}]`:`${t}[]`,n,r)});return}if(typeof e==`object`){Object.keys(e).forEach(i=>{Um(e[i],t?`${t}[${i}]`:i,n,r)});return}n.push(`${t}=${encodeURIComponent(String(e))}`)}}function Wm(e){return new URL(e.toString(),typeof window>`u`?void 0:window.location.toString())}var Gm=(e,t,n,r,i)=>{let a=typeof e==`string`?Wm(e):e;if((jm(t)||r)&&!Mm(t)&&(qp.get(`form.forceIndicesArrayFormatInFormData`)&&(i=`indices`),t=Nm(t,new FormData,null,i)),Mm(t))return[a,t];let[o,s]=Km(n,a,t,i);return[Wm(o),s]};function Km(e,t,n,r=`brackets`){let i=e===`get`&&!Mm(n)&&Object.keys(n).length>0,a=$m(t.toString()),o=a||t.toString().startsWith(`/`)||t.toString()===``,s=!o&&!t.toString().startsWith(`#`)&&!t.toString().startsWith(`?`),c=/^[.]{1,2}([/]|$)/.test(t.toString()),l=t.toString().includes(`?`)||i,u=t.toString().includes(`#`),d=new URL(t.toString(),typeof window>`u`?`http://localhost`:window.location.toString());if(i){let e=Im(d)?`indices`:r;d.search=Rm({...Lm(d.search),...n},e)}return[[a?`${d.protocol}//${d.host}`:``,o?d.pathname:``,s?d.pathname.substring(+!c):``,l?d.search:``,u?d.hash:``].join(``),i?{}:n]}function qm(e){return e=new URL(e.href),e.hash=``,e}var Jm=(e,t)=>{e.hash&&!t.hash&&qm(e).href===t.href&&(t.hash=e.hash)},Ym=(e,t)=>qm(e).href===qm(t).href,Xm=(e,t)=>e.origin===t.origin&&e.pathname===t.pathname;function Zm(e){return typeof e==`object`&&!!e&&e!==void 0&&`url`in e&&`method`in e}function Qm(e){return e.component?typeof e.component==`string`?e.component:(console.error(`The "component" property on the URL method pair received multiple components (${Object.keys(e.component).join(`, `)}), but only a single component string is supported for instant visits. Use the withComponent() method to specify which component to use.`),null):null}function $m(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}var V=new class{page;swapComponent;resolveComponent;onFlashCallback;componentId={};listeners=[];isFirstPageLoad=!0;cleared=!1;pendingDeferredProps=null;historyQuotaExceeded=!1;optimisticBaseline={};pendingOptimistics=[];optimisticCounter=0;init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:r}){return this.page={...e,flash:e.flash??{}},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=r,ah.on(`historyQuotaExceeded`,()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:r=!1,viewTransition:i=!1}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},e.initialDeferredProps===void 0&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};let a=this.componentId;return e.clearHistory&&H.clear(),this.resolve(e.component,e).then(o=>{if(a!==this.componentId)return;e.rememberedState??={};let s=typeof window>`u`,c=s?new URL(e.url):window.location,l=!s&&n?km.getScrollRegions():[];t||=Ym(Wm(e.url),c);let u={...e,flash:{}};return new Promise(e=>t?H.replaceState(u,e):H.pushState(u,e)).then(()=>{let a=!this.isTheSame(e);if(!a&&Object.keys(e.props.errors||{}).length>0&&(i=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&wm.updateCachedOncePropsFromCurrentPage(),a&&this.fireEventsFor(`newComponent`),this.isFirstPageLoad&&this.fireEventsFor(`firstLoad`),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:o,page:e,preserveState:r,viewTransition:i}).then(()=>{n?window.requestAnimationFrame(()=>km.restoreScrollRegions(l)):km.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&ah.fireInternalEvent(`loadDeferredProps`,this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||nm(e)})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component,e).then(n=>(this.page=e,this.cleared=!1,H.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setPropsQuietly(e){return this.page={...this.page,props:e},this.resolve(this.page.component,this.page).then(e=>this.swap({component:e,page:this.page,preserveState:!0,viewTransition:!1}))}setFlash(e){this.page={...this.page,flash:e},this.onFlashCallback?.(e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:r}){let i=()=>this.swapComponent({component:e,page:t,preserveState:n});if(!r||!document?.startViewTransition||document.visibilityState===`hidden`)return i();let a=typeof r==`boolean`?()=>null:r;return new Promise(e=>{a(document.startViewTransition(()=>i().then(e)))})}resolve(e,t){return Promise.resolve(this.resolveComponent(e,t))}nextOptimisticId(){return++this.optimisticCounter}setBaseline(e,t){e in this.optimisticBaseline||(this.optimisticBaseline[e]=t)}updateBaseline(e,t){e in this.optimisticBaseline&&(this.optimisticBaseline[e]=t)}hasBaseline(e){return e in this.optimisticBaseline}registerOptimistic(e,t){this.pendingOptimistics.push({id:e,callback:t})}unregisterOptimistic(e){this.pendingOptimistics=this.pendingOptimistics.filter(t=>t.id!==e)}replayOptimistics(){let e=Object.keys(this.optimisticBaseline);if(e.length===0)return{};let t=B(this.page.props);for(let n of e)t[n]=B(this.optimisticBaseline[n]);for(let{callback:e}of this.pendingOptimistics){let n=e(B(t));n&&Object.assign(t,n)}let n={};for(let r of e)n[r]=t[r];return n}pendingOptimisticCount(){return this.pendingOptimistics.length}clearOptimisticState(){this.optimisticBaseline={},this.pendingOptimistics=[]}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(e=>e.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,r])=>{let i=this.page.onceProps?.[n];i!==void 0&&(t||Lf(e.props,r.prop)===void 0)&&($f(e.props,r.prop,Lf(this.page.props,i.prop)),e.onceProps[n].expiresAt=i.expiresAt)})}},eh=class{items=[];processingPromise=null;add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??=this.processNext().finally(()=>{this.processingPromise=null}),this.processingPromise}processNext(){let e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},th=typeof window>`u`,nh=new eh,rh=!th&&/CriOS/.test(window.navigator.userAgent),ih=class{rememberedState=`rememberedState`;scrollRegions=`scrollRegions`;preserveUrl=!1;current={};initialState=null;remember(e,t){this.replaceState({...V.getWithoutFlashData(),rememberedState:{...V.get()?.rememberedState??{},[t]:e}})}restore(e){if(!th)return this.current[this.rememberedState]?.[e]===void 0?this.initialState?.[this.rememberedState]?.[e]:this.current[this.rememberedState]?.[e]}pushState(e,t=null){if(!th){if(this.preserveUrl){t&&t();return}this.current=e,nh.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doPushState({page:n},e.url).then(()=>t?.());return rh?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:B(e.props)}}}getPageData(e){let t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?um(t).then(n):n(t))}processQueue(){return nh.process()}decrypt(e=null){if(th)return Promise.resolve(e??V.get());let t=e??window.history.state?.page;return this.decryptPageData(t).then(e=>{if(!e)throw Error(`Unable to decrypt history`);return this.initialState===null?this.initialState=e??void 0:this.current=e??{},e})}decryptPageData(e){return e instanceof ArrayBuffer?fm(e):Promise.resolve(e)}saveScrollPositions(e){nh.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!Of(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){nh.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!Of(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(Of(this.current,e)){t&&t();return}let{flash:n,...r}=e;if(V.merge(r),!th){if(this.preserveUrl){t&&t();return}this.current=e,nh.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doReplaceState({page:n},e.url).then(()=>t?.());return rh?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}isHistoryThrottleError(e){return e instanceof Error&&e.name===`SecurityError`&&(e.message.includes(`history.pushState`)||e.message.includes(`history.replaceState`))}isQuotaExceededError(e){return e instanceof Error&&e.name===`QuotaExceededError`}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(e){if(!this.isHistoryThrottleError(e))throw e;console.error(e.message)}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},``,t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,``,t)}catch(e){if(!this.isQuotaExceededError(e))throw e;ah.fireInternalEvent(`historyQuotaExceeded`,t)}})}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}browserHasHistoryEntry(){return!th&&!!window.history.state?.page}clear(){lm.remove(dm.key),lm.remove(dm.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<`u`&&window.history.scrollRestoration&&(window.history.scrollRestoration=`manual`);var H=new ih,ah=new class{internalListeners=[];init(){typeof window<`u`&&(window.addEventListener(`popstate`,this.handlePopstateEvent.bind(this)),window.addEventListener(`pageshow`,this.handlePageshowEvent.bind(this)),window.addEventListener(`scroll`,Jp(km.onWindowScroll.bind(km),100),!0)),typeof document<`u`&&document.addEventListener(`scroll`,Jp(km.onScroll.bind(km),100),!0)}onGlobalEvent(e,t){return this.registerListener(`inertia:${e}`,(e=>{let n=t(e);e.cancelable&&!e.defaultPrevented&&n===!1&&e.preventDefault()}))}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(e=>e.listener!==t)}}onMissingHistoryItem(){V.clear(),this.fireInternalEvent(`missingHistoryItem`)}fireInternalEvent(e,...t){this.internalListeners.filter(t=>t.event===e).forEach(e=>e.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&H.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){let t=e.state||null;if(t===null){let e=Wm(V.get().url);e.hash=window.location.hash,H.replaceState({...V.getWithoutFlashData(),url:e.href}),km.reset();return}if(!H.isValidState(t))return this.onMissingHistoryItem();H.decrypt(t.page).then(e=>{if(V.get().version!==e.version){this.onMissingHistoryItem();return}Pg.cancelAll({prefetch:!1}),V.setQuietly(e,{preserveState:!1}).then(()=>{km.restore(H.getScrollRegions()),nm(V.get());let t={},n=V.get().props;for(let[r,i]of Object.entries(e.initialDeferredProps??e.deferredProps??{})){let e=i.filter(e=>Lf(n,e)===void 0);e.length>0&&(t[r]=e)}Object.keys(t).length>0&&this.fireInternalEvent(`loadDeferredProps`,t)})}).catch(()=>{this.onMissingHistoryItem()})}},oh=new class{type;constructor(){this.type=this.resolveType()}resolveType(){return typeof window>`u`?`navigate`:window.performance?.getEntriesByType(`navigation`)[0]?.type??`navigate`}get(){return this.type}isBackForward(){return this.type===`back_forward`}isReload(){return this.type===`reload`}},sh=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(e=>e.bind(this)())}static clearRememberedStateOnReload(){oh.isReload()&&(H.deleteState(H.rememberedState),H.clearInitialState(H.rememberedState))}static handleBackForward(){if(!oh.isBackForward()||!H.browserHasHistoryEntry())return!1;let e=H.getScrollRegions();return H.decrypt().then(t=>{V.set(t,{preserveScroll:!0,preserveState:!0}).then(()=>{km.restore(e),nm(V.get())})}).catch(()=>{ah.onMissingHistoryItem()}),!0}static handleLocation(){if(!lm.exists(lm.locationVisitKey))return!1;let e=lm.get(lm.locationVisitKey)||{};return lm.remove(lm.locationVisitKey),typeof window<`u`&&V.setUrlHash(window.location.hash),H.decrypt(V.get()).then(()=>{let t=H.getState(H.rememberedState,{}),n=H.getScrollRegions();V.remember(t),V.set(V.get(),{preserveScroll:e.preserveScroll,preserveState:!0}).then(()=>{e.preserveScroll&&km.restore(n),this.fireInitialEvents()})}).catch(()=>{ah.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<`u`&&V.setUrlHash(window.location.hash),V.set(V.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{oh.isReload()?km.restore(H.getScrollRegions()):km.scrollToAnchor(),this.fireInitialEvents()})}static fireInitialEvents(){let e=V.get();nm(e),Object.keys(e.flash).length>0&&queueMicrotask(()=>cm(e.flash))}},ch=class{id=null;throttle=!1;keepAlive=!1;cb;interval;cbCount=0;constructor(e,t,n){this.keepAlive=n.keepAlive??!1,this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>`u`||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10==0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(e){this.throttle=this.keepAlive?!1:e,this.throttle&&(this.cbCount=0)}},lh=new class{polls=[];constructor(){this.setupVisibilityListener()}add(e,t,n){let r=new ch(e,t,n);return this.polls.push(r),{stop:()=>r.stop(),start:()=>r.start()}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document>`u`||document.addEventListener(`visibilitychange`,()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},uh=new class{requestHandlers=[];responseHandlers=[];errorHandlers=[];onRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}onError(e){return this.errorHandlers.push(e),()=>{this.errorHandlers=this.errorHandlers.filter(t=>t!==e)}}async processRequest(e){let t=e;for(let e of this.requestHandlers)t=await e(t);return t}async processResponse(e){let t=e;for(let e of this.responseHandlers)t=await e(t);return t}async processError(e){for(let t of this.errorHandlers)await t(e)}},dh=class extends Error{code;url;constructor(e,t,n){super(n?`${e} (${n})`:e),this.name=`HttpError`,this.code=t,this.url=n}},fh=class extends dh{response;constructor(e,t,n){super(e,`ERR_HTTP_RESPONSE`,n),this.name=`HttpResponseError`,this.response=t}},ph=class extends dh{constructor(e=`Request was cancelled`,t){super(e,`ERR_CANCELLED`,t),this.name=`HttpCancelledError`}},mh=class extends dh{cause;constructor(e,t,n){super(e,`ERR_NETWORK`,t),this.name=`HttpNetworkError`,this.cause=n}};function hh(e){let t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null}function gh(e){let t={};return e.getAllResponseHeaders().split(`\r + `]}firstUpdated(e){super.firstUpdated(e),this._inputNode?.setAttribute(`autocorrect`,this.autocorrect?`on`:`off`),this._inputNode?.setAttribute(`autocapitalize`,this.autocapitalize)}};t([u({reflect:!0})],Od.prototype,`autocorrect`,void 0),t([u({reflect:!0,type:String})],Od.prototype,`autocapitalize`,void 0),customElements.get(`craft-input-handle`)||customElements.define(`craft-input-handle`,Od),us();var kd={Á:`A`,á:`a`,Ä:`A`,ä:`a`,À:`A`,à:`a`,Â:`A`,â:`a`,É:`E`,é:`e`,Ë:`E`,ë:`e`,È:`E`,è:`e`,Ê:`E`,ê:`e`,Í:`I`,í:`i`,Ï:`I`,ï:`i`,Ì:`I`,ì:`i`,Î:`I`,î:`i`,Ó:`O`,ó:`o`,Ö:`O`,ö:`o`,Ò:`O`,ò:`o`,Ô:`O`,ô:`o`,Ú:`U`,ú:`u`,Ü:`U`,ü:`u`,Ù:`U`,ù:`u`,Û:`U`,û:`u`,Ý:`Y`,ý:`y`,Ÿ:`Y`,А:`A`,Б:`B`,В:`V`,Г:`G`,Д:`D`,Ѓ:`Gj`,Е:`E`,Ж:`Z`,З:`Z`,Ѕ:`Dz`,И:`I`,Ј:`j`,К:`K`,Л:`L`,Љ:`Lj`,М:`M`,Н:`N`,Њ:`Nj`,О:`O`,П:`P`,Р:`R`,С:`S`,Т:`T`,Ќ:`Kj`,У:`U`,Ф:`F`,Х:`X`,Ц:`C`,Ч:`C`,Џ:`Dz`,Ш:`S`,а:`a`,б:`b`,в:`v`,г:`g`,д:`d`,ѓ:`gj`,е:`e`,ж:`z`,з:`z`,ѕ:`dz`,и:`i`,ј:`j`,к:`k`,л:`l`,љ:`lj`,м:`m`,н:`n`,њ:`nj`,о:`o`,п:`p`,р:`r`,с:`s`,т:`t`,ќ:`kj`,у:`u`,ф:`f`,х:`x`,ц:`c`,ч:`c`,џ:`dz`,ш:`s`,æ:`ae`,ǽ:`ae`,Ã:`A`,Å:`A`,Ǻ:`A`,Ă:`A`,Ǎ:`A`,Æ:`AE`,Ǽ:`AE`,ã:`a`,å:`a`,ǻ:`a`,ă:`a`,ǎ:`a`,ª:`a`,Ĉ:`C`,Ċ:`C`,Ç:`C`,ç:`c`,ĉ:`c`,ċ:`c`,Ð:`D`,Đ:`D`,ð:`d`,đ:`d`,Ĕ:`E`,Ė:`E`,ĕ:`e`,ė:`e`,ƒ:`f`,Ĝ:`G`,Ġ:`G`,ĝ:`g`,ġ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ĭ:`I`,Ǐ:`I`,Į:`I`,IJ:`IJ`,ĩ:`i`,ĭ:`i`,ǐ:`i`,į:`i`,ij:`ij`,Ĵ:`J`,ĵ:`j`,Ĺ:`L`,Ľ:`L`,Ŀ:`L`,ĺ:`l`,ľ:`l`,ŀ:`l`,Ñ:`N`,ñ:`n`,ʼn:`n`,Õ:`O`,Ō:`O`,Ŏ:`O`,Ǒ:`O`,Ő:`O`,Ơ:`O`,Ø:`O`,Ǿ:`O`,Œ:`OE`,õ:`o`,ō:`o`,ŏ:`o`,ǒ:`o`,ő:`o`,ơ:`o`,ø:`o`,ǿ:`o`,º:`o`,œ:`oe`,Ŕ:`R`,Ŗ:`R`,ŕ:`r`,ŗ:`r`,Ŝ:`S`,Ș:`S`,ŝ:`s`,ș:`s`,ſ:`s`,Ţ:`T`,Ț:`T`,Ŧ:`T`,Þ:`TH`,ţ:`t`,ț:`t`,ŧ:`t`,þ:`th`,Ũ:`U`,Ŭ:`U`,Ű:`U`,Ų:`U`,Ư:`U`,Ǔ:`U`,Ǖ:`U`,Ǘ:`U`,Ǚ:`U`,Ǜ:`U`,ũ:`u`,ŭ:`u`,ű:`u`,ų:`u`,ư:`u`,ǔ:`u`,ǖ:`u`,ǘ:`u`,ǚ:`u`,ǜ:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ÿ:`y`,ŷ:`y`,ΑΥ:`AU`,ΑΎ:`AU`,Αυ:`Au`,Αύ:`Au`,ΕΊ:`I`,ΕΙ:`I`,Ει:`Ei`,ΕΥ:`EF`,ΕΎ:`EU`,Εί:`I`,Ευ:`Ef`,Εύ:`Eu`,ΟΙ:`I`,ΟΊ:`I`,ΟΥ:`U`,ΟΎ:`OU`,Οι:`Oi`,Οί:`I`,Ου:`Oy`,Ού:`Ou`,ΥΙ:`I`,ΎΙ:`I`,Υι:`Yi`,Ύι:`I`,ΥΊ:`I`,Υί:`I`,αυ:`au`,αύ:`au`,εί:`i`,ει:`ei`,ευ:`ef`,εύ:`eu`,οι:`oi`,οί:`i`,ου:`oy`,ού:`ou`,υι:`yi`,ύι:`i`,υί:`i`,Α:`A`,Ά:`A`,Β:`B`,Δ:`D`,Ε:`E`,Έ:`E`,Φ:`F`,Γ:`G`,Η:`H`,Ή:`I`,Ι:`I`,Ί:`I`,Ϊ:`I`,Κ:`K`,Ξ:`Ks`,Λ:`L`,Μ:`M`,Ν:`N`,Π:`P`,Ο:`O`,Ό:`O`,Ψ:`Ps`,Ρ:`R`,Σ:`S`,Τ:`T`,Θ:`Th`,Ω:`O`,Ώ:`W`,Χ:`X`,ϒ:`Y`,Υ:`Y`,Ύ:`Y`,Ϋ:`Y`,Ζ:`Z`,α:`a`,ά:`a`,β:`v`,δ:`d`,ε:`e`,έ:`e`,φ:`f`,γ:`gh`,η:`i`,ή:`i`,ι:`i`,ί:`i`,ϊ:`i`,ΐ:`i`,κ:`k`,ξ:`ks`,λ:`l`,μ:`m`,ν:`n`,ο:`o`,ό:`o`,π:`p`,ψ:`ps`,ρ:`r`,σ:`s`,ς:`s`,τ:`t`,ϑ:`th`,θ:`th`,ϐ:`v`,ω:`o`,ώ:`w`,χ:`kh`,υ:`i`,ύ:`y`,ΰ:`y`,ϋ:`y`,ζ:`z`,अ:`a`,आ:`aa`,ए:`e`,ई:`ii`,ऍ:`ei`,ऎ:`ae`,ऐ:`ai`,इ:`i`,ओ:`o`,ऑ:`oi`,ऒ:`oii`,ऊ:`uu`,औ:`ou`,उ:`u`,ब:`B`,भ:`Bha`,च:`Ca`,छ:`Chha`,ड:`Da`,ढ:`Dha`,फ:`Fa`,फ़:`Fi`,ग:`Ga`,घ:`Gha`,ग़:`Ghi`,ह:`Ha`,ज:`Ja`,झ:`Jha`,क:`Ka`,ख:`Kha`,ख़:`Khi`,ल:`L`,ळ:`Li`,ऌ:`Li`,ऴ:`Lii`,ॡ:`Lii`,म:`Ma`,न:`Na`,ङ:`Na`,ञ:`Nia`,ण:`Nae`,ऩ:`Ni`,ॐ:`oms`,प:`Pa`,क़:`Qi`,र:`Ra`,ऋ:`Ri`,ॠ:`Ri`,ऱ:`Ri`,स:`Sa`,श:`Sha`,ष:`Shha`,ट:`Ta`,त:`Ta`,ठ:`Tha`,द:`Tha`,थ:`Tha`,ध:`Thha`,ड़:`ugDha`,ढ़:`ugDhha`,व:`Va`,य:`Ya`,य़:`Yi`,ज़:`Za`,Ա:`A`,Բ:`B`,Գ:`G`,Դ:`D`,Ե:`E`,Զ:`Z`,Է:`E`,Ը:`Y`,Թ:`Th`,Ժ:`Zh`,Ի:`I`,Լ:`L`,Խ:`Kh`,Ծ:`Ts`,Կ:`K`,Հ:`H`,Ձ:`Dz`,Ղ:`Gh`,Ճ:`Tch`,Մ:`M`,Յ:`Y`,Ն:`N`,Շ:`Sh`,Ո:`Vo`,Չ:`Ch`,Պ:`P`,Ջ:`J`,Ռ:`R`,Ս:`S`,Վ:`V`,Տ:`T`,Ր:`R`,Ց:`C`,Ւ:`u`,Փ:`Ph`,Ք:`Q`,և:`ev`,Օ:`O`,Ֆ:`F`,ա:`a`,բ:`b`,գ:`g`,դ:`d`,ե:`e`,զ:`z`,է:`e`,ը:`y`,թ:`th`,ժ:`zh`,ի:`i`,լ:`l`,խ:`kh`,ծ:`ts`,կ:`k`,հ:`h`,ձ:`dz`,ղ:`gh`,ճ:`tch`,մ:`m`,յ:`y`,ն:`n`,շ:`sh`,ո:`vo`,չ:`ch`,պ:`p`,ջ:`j`,ռ:`r`,ս:`s`,վ:`v`,տ:`t`,ր:`r`,ց:`c`,ւ:`u`,փ:`ph`,ք:`q`,օ:`o`,ֆ:`f`,Ž:`Z`,Ň:`N`,Ş:`S`,ž:`z`,ň:`n`,ş:`s`,ı:`i`,İ:`I`,ğ:`g`,Ğ:`G`,ьо:`yo`,Й:`i`,Щ:`Shh`,Ъ:`Ie`,Ь:``,Ю:`Iu`,Я:`Ia`,й:`i`,щ:`shh`,ъ:`ie`,ь:``,ю:`iu`,я:`ia`,Ē:`E`,ē:`e`,န်ုပ်:`nub`,"ောင်":`aung`,"ိုက်":`aik`,"ိုဒ်":`ok`,"ိုင်":`aing`,"ိုလ်":`ol`,"ေါင်":`aung`,သြော:`aw`,"ောက်":`auk`,"ိတ်":`eik`,"ုတ်":`ok`,"ုန်":`on`,"ေတ်":`it`,"ုဒ်":`ait`,"ာန်":`an`,"ိန်":`ein`,"ွတ်":`ut`,"ေါ်":`aw`,"ွန်":`un`,"ိပ်":`eik`,"ုပ်":`ok`,"ွပ်":`ut`,"ိမ်":`ein`,"ုမ်":`on`,"ော်":`aw`,"ွမ်":`un`,က်:`et`,"ေါ":`aw`,"ော":`aw`,"ျွ":`ywa`,"ြွ":`yw`,"ို":`o`,"ုံ":`on`,တ်:`at`,င်:`in`,ည်:`i`,ဒ်:`d`,န်:`an`,ပ်:`at`,မ်:`an`,စျ:`za`,ယ်:`e`,ဉ်:`in`,စ်:`it`,"ိံ":`ein`,"ဲ":`e`,"း":``,"ာ":`a`,"ါ":`a`,"ေ":`e`,"ံ":`an`,"ိ":`i`,"ီ":`i`,"ု":`u`,"ူ":`u`,"်":`at`,"္":``,"့":``,က:`k`,"၉":`9`,တ:`t`,ရ:`ya`,ယ:`y`,မ:`m`,ဘ:`ba`,ဗ:`b`,ဖ:`pa`,ပ:`p`,န:`n`,ဓ:`da`,ဒ:`d`,ထ:`ta`,ဏ:`na`,ဝ:`w`,ဎ:`da`,ဍ:`d`,ဌ:`ta`,ဋ:`t`,ည:`ny`,ဇ:`z`,ဆ:`sa`,စ:`s`,င:`ng`,ဃ:`ga`,ဂ:`g`,လ:`l`,သ:`th`,"၈":`8`,ဩ:`aw`,ခ:`kh`,"၆":`6`,"၅":`5`,"၄":`4`,"၃":`3`,"၂":`2`,"၁":`1`,"၀":`0`,"၌":`hnaik`,"၍":`ywae`,ဪ:`aw`,ဦ:`-u`,ဟ:`h`,ဉ:`u`,ဤ:`-i`,ဣ:`i`,"၏":`-e`,ဧ:`e`,"ှ":`h`,"ွ":`w`,"ျ":`ya`,"ြ":`y`,အ:`a`,ဠ:`la`,"၇":`7`,DŽ:`DZ`,Dž:`Dz`,dž:`dz`,DZ:`DZ`,Dz:`Dz`,dz:`dz`,LJ:`LJ`,Lj:`Lj`,lj:`lj`,NJ:`NJ`,Nj:`Nj`,nj:`nj`,č:`c`,Č:`C`,ć:`c`,Ć:`C`,š:`s`,Š:`S`,ა:`a`,ბ:`b`,გ:`g`,დ:`d`,ე:`e`,ვ:`v`,ზ:`z`,თ:`t`,ი:`i`,კ:`k`,ლ:`l`,მ:`m`,ნ:`n`,ო:`o`,პ:`p`,ჟ:`zh`,რ:`r`,ს:`s`,ტ:`t`,უ:`u`,ფ:`f`,ქ:`q`,ღ:`gh`,ყ:`y`,შ:`sh`,ჩ:`ch`,ც:`ts`,ძ:`dz`,წ:`ts`,ჭ:`ch`,ხ:`kh`,ჯ:`j`,ჰ:`h`,Ё:`E`,ё:`e`,Ы:`Y`,ы:`y`,Э:`E`,э:`e`,І:`I`,і:`i`,Ѳ:`F`,ѳ:`f`,Ѣ:`E`,ѣ:`e`,Ѵ:`I`,ѵ:`i`,Є:`Je`,є:`je`,Ѥ:`Je`,ѥ:`je`,Ꙋ:`U`,ꙋ:`u`,Ѡ:`O`,ѡ:`o`,Ѿ:`Ot`,ѿ:`ot`,Ѫ:`U`,ѫ:`u`,Ѧ:`Ja`,ѧ:`ja`,Ѭ:`Ju`,ѭ:`ju`,Ѩ:`Ja`,ѩ:`Ja`,Ѯ:`Ks`,ѯ:`ks`,Ѱ:`Ps`,ѱ:`ps`,Ґ:`G`,ґ:`g`,Ї:`Yi`,ї:`yi`,Ә:`A`,Ғ:`G`,Қ:`Q`,Ң:`N`,Ө:`O`,Ұ:`U`,Ү:`U`,Һ:`H`,ә:`a`,ғ:`g`,қ:`q`,ң:`n`,ө:`o`,ұ:`u`,ү:`u`,һ:`h`,ď:`d`,Ď:`D`,ě:`e`,Ě:`E`,ř:`r`,Ř:`R`,ť:`t`,Ť:`T`,ů:`u`,Ů:`U`,ą:`a`,ę:`e`,ł:`l`,ń:`n`,ś:`s`,ź:`z`,ż:`z`,Ą:`A`,Ę:`E`,Ł:`L`,Ń:`N`,Ś:`S`,Ź:`Z`,Ż:`Z`,ā:`a`,ģ:`g`,ī:`i`,ķ:`k`,ļ:`l`,ņ:`n`,ū:`u`,Ā:`A`,Ģ:`G`,Ī:`I`,Ķ:`k`,Ļ:`L`,Ņ:`N`,Ū:`U`,Ả:`A`,Ạ:`A`,Ắ:`A`,Ằ:`A`,Ẳ:`A`,Ẵ:`A`,Ặ:`A`,Ấ:`A`,Ầ:`A`,Ẩ:`A`,Ẫ:`A`,Ậ:`A`,ả:`a`,ạ:`a`,ắ:`a`,ằ:`a`,ẳ:`a`,ẵ:`a`,ặ:`a`,ấ:`a`,ầ:`a`,ẩ:`a`,ẫ:`a`,ậ:`a`,Ẻ:`E`,Ẽ:`E`,Ẹ:`E`,Ế:`E`,Ề:`E`,Ể:`E`,Ễ:`E`,Ệ:`E`,ẻ:`e`,ẽ:`e`,ẹ:`e`,ế:`e`,ề:`e`,ể:`e`,ễ:`e`,ệ:`e`,Ỉ:`I`,Ị:`I`,ỉ:`i`,ị:`i`,Ỏ:`O`,Ọ:`O`,Ố:`O`,Ồ:`O`,Ổ:`O`,Ỗ:`O`,Ộ:`O`,Ớ:`O`,Ờ:`O`,Ở:`O`,Ỡ:`O`,Ợ:`O`,ỏ:`o`,ọ:`o`,ố:`o`,ồ:`o`,ổ:`o`,ỗ:`o`,ộ:`o`,ớ:`o`,ờ:`o`,ở:`o`,ỡ:`o`,ợ:`o`,Ủ:`U`,Ụ:`U`,Ứ:`U`,Ừ:`U`,Ử:`U`,Ữ:`U`,Ự:`U`,ủ:`u`,ụ:`u`,ứ:`u`,ừ:`u`,ử:`u`,ữ:`u`,ự:`u`,Ỳ:`Y`,Ỷ:`Y`,Ỹ:`Y`,Ỵ:`Y`,ỳ:`y`,ỷ:`y`,ỹ:`y`,ỵ:`y`,ا:`a`,ب:`b`,پ:`p`,ت:`t`,ث:`th`,ج:`g`,چ:`ch`,ح:`h`,خ:`kh`,د:`d`,ذ:`th`,ر:`r`,ز:`z`,س:`s`,ش:`sh`,ص:`s`,ض:`d`,ط:`t`,ظ:`th`,ع:`aa`,غ:`gh`,ف:`f`,ق:`k`,ک:`k`,گ:`g`,ل:`l`,ژ:`zh`,ك:`k`,م:`m`,ن:`n`,ه:`h`,و:`o`,ی:`y`,آ:`a`,"٠":`0`,"١":`1`,"٢":`2`,"٣":`3`,"٤":`4`,"٥":`5`,"٦":`6`,"٧":`7`,"٨":`8`,"٩":`9`,أ:`a`,ي:`y`,إ:`a`,ؤ:`o`,ئ:`y`,ء:`aa`,ђ:`dj`,ћ:`c`,Ђ:`Dj`,Ћ:`C`,ə:`e`,Ə:`E`,ß:`ss`,ẞ:`SS`,ভ্ল:`vl`,পশ:`psh`,ব্ধ:`bdh`,ব্জ:`bj`,ব্দ:`bd`,ব্ব:`bb`,ব্ল:`bl`,ভ:`v`,ব:`b`,চ্ঞ:`cNG`,চ্ছ:`cch`,চ্চ:`cc`,ছ:`ch`,চ:`c`,ধ্ন:`dhn`,ধ্ম:`dhm`,দ্ঘ:`dgh`,দ্ধ:`ddh`,দ্ভ:`dv`,দ্ম:`dm`,ড্ড:`DD`,ঢ:`Dh`,ধ:`dh`,দ্গ:`dg`,দ্দ:`dd`,ড:`D`,দ:`d`,"।":`.`,ঘ্ন:`Ghn`,গ্ধ:`Gdh`,গ্ণ:`GN`,গ্ন:`Gn`,গ্ম:`Gm`,গ্ল:`Gl`,জ্ঞ:`jNG`,ঘ:`Gh`,গ:`g`,হ্ণ:`hN`,হ্ন:`hn`,হ্ম:`hm`,হ্ল:`hl`,হ:`h`,জ্ঝ:`jjh`,ঝ:`jh`,জ্জ:`jj`,জ:`j`,ক্ষ্ণ:`kxN`,ক্ষ্ম:`kxm`,ক্ষ:`ksh`,কশ:`ksh`,ক্ক:`kk`,ক্ট:`kT`,ক্ত:`kt`,ক্ল:`kl`,ক্স:`ks`,খ:`kh`,ক:`k`,ল্ভ:`lv`,ল্ধ:`ldh`,লখ:`lkh`,লঘ:`lgh`,লফ:`lph`,ল্ক:`lk`,ল্গ:`lg`,ল্ট:`lT`,ল্ড:`lD`,ল্প:`lp`,ল্ম:`lm`,ল্ল:`ll`,ল্ব:`lb`,ল:`l`,ম্থ:`mth`,ম্ফ:`mf`,ম্ভ:`mv`,মপ্ল:`mpl`,ম্ন:`mn`,ম্প:`mp`,ম্ম:`mm`,ম্ল:`ml`,ম্ব:`mb`,ম:`m`,"০":`0`,"১":`1`,"২":`2`,"৩":`3`,"৪":`4`,"৫":`5`,"৬":`6`,"৭":`7`,"৮":`8`,"৯":`9`,ঙ্ক্ষ:`Ngkx`,ঞ্ছ:`nch`,ঙ্ঘ:`ngh`,ঙ্খ:`nkh`,ঞ্ঝ:`njh`,ঙ্গৌ:`ngOU`,ঙ্গৈ:`ngOI`,ঞ্চ:`nc`,ঙ্ক:`nk`,ঙ্ষ:`Ngx`,ঙ্গ:`ngo`,ঙ্ম:`Ngm`,ঞ্জ:`nj`,ন্ধ:`ndh`,ন্ঠ:`nTh`,ণ্ঠ:`NTh`,ন্থ:`nth`,ঙ্গা:`nga`,ঙ্গি:`ngi`,ঙ্গী:`ngI`,ঙ্গু:`ngu`,ঙ্গূ:`ngU`,ঙ্গে:`nge`,ঙ্গো:`ngO`,ণ্ঢ:`NDh`,নশ:`nsh`,ঙর:`Ngr`,ঞর:`NGr`,"ংর":`ngr`,ঙ:`Ng`,ঞ:`NG`,"ং":`ng`,ন্ন:`nn`,ণ্ণ:`NN`,ণ্ন:`Nn`,ন্ম:`nm`,ণ্ম:`Nm`,ন্দ:`nd`,ন্ট:`nT`,ণ্ট:`NT`,ন্ড:`nD`,ণ্ড:`ND`,ন্ত:`nt`,ন্স:`ns`,ন:`n`,ণ:`N`,"ৈ":`OI`,"ৌ":`OU`,"ো":`O`,ঐ:`OI`,ঔ:`OU`,অ:`o`,ও:`oo`,ফ্ল:`fl`,প্ট:`pT`,প্ত:`pt`,প্ন:`pn`,প্প:`pp`,প্ল:`pl`,প্স:`ps`,ফ:`f`,প:`p`,"ৃ":`rri`,ঋ:`rri`,রর‍্য:`rry`,"্র্য":`ry`,"্রর":`rr`,ড়্গ:`Rg`,ঢ়:`Rh`,ড়:`R`,র:`r`,"্র":`r`,শ্ছ:`Sch`,ষ্ঠ:`ShTh`,ষ্ফ:`Shf`,স্ক্ল:`skl`,স্খ:`skh`,স্থ:`sth`,স্ফ:`sf`,শ্চ:`Sc`,শ্ত:`St`,শ্ন:`Sn`,শ্ম:`Sm`,শ্ল:`Sl`,ষ্ক:`Shk`,ষ্ট:`ShT`,ষ্ণ:`ShN`,ষ্প:`Shp`,ষ্ম:`Shm`,স্প্ল:`spl`,স্ক:`sk`,স্ট:`sT`,স্ত:`st`,স্ন:`sn`,স্প:`sp`,স্ম:`sm`,স্ল:`sl`,শ:`S`,ষ:`Sh`,স:`s`,"ু":`u`,উ:`u`,অ্য:`oZ`,ত্থ:`tth`,ৎ:`tt`,ট্ট:`TT`,ট্ম:`Tm`,ঠ:`Th`,ত্ন:`tn`,ত্ম:`tm`,থ:`th`,ত্ত:`tt`,ট:`T`,ত:`t`,অ্যা:`AZ`,"া":`a`,আ:`a`,য়া:`ya`,য়:`y`,"ি":`i`,ই:`i`,"ী":`ee`,ঈ:`ee`,"ূ":`uu`,ঊ:`uu`,"ে":`e`,এ:`e`,য:`z`,"্য":`Z`,ইয়:`y`,ওয়:`w`,"্ব":`w`,এক্স:`x`,"ঃ":`:`,"ঁ":`nn`,"্‌":``,"˚":`0`,"¹":`1`,"²":`2`,"³":`3`,"⁴":`4`,"⁵":`5`,"⁶":`6`,"⁷":`7`,"⁸":`8`,"⁹":`9`,"₀":`0`,"₁":`1`,"₂":`2`,"₃":`3`,"₄":`4`,"₅":`5`,"₆":`6`,"₇":`7`,"₈":`8`,"₉":`9`,"௦":`0`,"௧":`1`,"௨":`2`,"௩":`3`,"௪":`4`,"௫":`5`,"௬":`6`,"௭":`7`,"௮":`8`,"௯":`9`,"௰":`10`,"௱":`100`,"௲":`1000`,Ꜳ:`AA`,ꜳ:`aa`,Ꜵ:`AO`,ꜵ:`ao`,Ꜷ:`AU`,ꜷ:`au`,Ꜹ:`AV`,ꜹ:`av`,Ꜻ:`av`,ꜻ:`av`,Ꜽ:`AY`,ꜽ:`ay`,ȸ:`db`,ʣ:`dz`,ʥ:`dz`,ʤ:`dezh`,"🙰":`et`,ff:`ff`,ffi:`ffi`,ffl:`ffl`,fi:`fi`,fl:`fl`,ʩ:`feng`,ʪ:`ls`,ʫ:`lz`,ɮ:`lezh`,ȹ:`qp`,ʨ:`tc`,ʦ:`ts`,ʧ:`tesh`,Ꝏ:`OO`,ꝏ:`oo`,st:`st`,ſt:`st`,Ꜩ:`TZ`,ꜩ:`tz`,ᵫ:`ue`,Aι:`Ai`,αι:`ai`,ἀ:`a`,ἁ:`a`,ἂ:`a`,ἃ:`a`,ἄ:`a`,ἅ:`a`,ἆ:`a`,ἇ:`a`,Ἀ:`A`,Ἁ:`A`,Ἂ:`A`,Ἃ:`A`,Ἄ:`A`,Ἅ:`A`,Ἆ:`A`,Ἇ:`A`,ᾰ:`a`,ᾱ:`a`,ᾲ:`a`,ᾳ:`a`,ᾴ:`a`,ᾶ:`a`,ᾷ:`a`,Ᾰ:`A`,Ᾱ:`A`,Ὰ:`A`,Ά:`A`,ᾼ:`A`,A̧:`A`,a̧:`a`,Ⱥ:`A`,ⱥ:`a`,Ȧ:`A`,ȧ:`a`,Ɓ:`B`,C̈:`C`,c̈:`c`,C̨:`C`,c̨:`c`,Ȼ:`C`,ȼ:`c`,C̀:`C`,c̀:`c`,C̣:`C`,c̣:`c`,C̄:`C`,c̄:`c`,C̃:`C`,c̃:`c`,Ȩ:`E`,ȩ:`e`,Ɇ:`E`,ɇ:`e`,I̧:`I`,i̧:`i`,Ɨ:`I`,ɨ:`i`,i:`i`,J́́:`J`,j́:`j`,J̀̀:`J`,j̀:`j`,J̈:`J`,j̈:`j`,J̧:`J`,j̧:`j`,J̨:`J`,j̨:`j`,Ɉ:`J`,ɉ:`j`,J̌:`J`,ǰ:`j`,J̇:`J`,j:`j`,J̣:`J`,j̣:`j`,J̄:`J`,j̄:`j`,J̃:`J`,j̃:`j`,ĸ:`k`,L̀:`L`,l̀:`l`,L̂:`L`,l̂:`l`,L̈:`L`,l̈:`l`,L̨:`L`,l̨:`l`,Ƚ:`L`,ƚ:`l`,L̇:`L`,l̇:`l`,Ḷ:`L`,ḷ:`l`,L̄:`L`,l̄:`l`,L̃:`L`,l̃:`l`,Ŋ:`N`,ŋ:`n`,Ǹ:`N`,ǹ:`n`,N̂:`N`,n̂:`n`,N̈:`N`,n̈:`n`,N̨:`N`,n̨:`n`,Ꞥ:`N`,ꞥ:`n`,Ṅ:`N`,ṅ:`n`,Ṇ:`N`,ṇ:`n`,N̄:`N`,n̄:`n`,O̧:`O`,o̧:`o`,Ǫ:`O`,ǫ:`o`,Ɵ:`O`,ɵ:`o`,Ȯ:`O`,ȯ:`o`,S̀:`S`,s̀:`s`,Ŝ̀:`S`,S̈:`S`,s̈:`s`,S̨:`S`,s̨:`s`,Ꞩ:`S`,ꞩ:`s`,Ṡ:`S`,ṡ:`s`,Ṣ:`S`,ṣ:`s`,S̄:`S`,s̄:`s`,S̃:`S`,s̃:`s`,T́:`T`,t́:`t`,T̀:`T`,t̀:`t`,T̂:`T`,t̂:`t`,T̈:`T`,ẗ:`t`,T̨:`T`,t̨:`t`,Ⱦ:`T`,ⱦ:`t`,Ṫ:`T`,ṫ:`t`,Ṭ:`T`,ṭ:`t`,T̄:`T`,t̄:`t`,T̃:`T`,t̃:`t`,U̧:`U`,u̧:`u`,Ʉ:`U`,ʉ:`u`,U̇:`U`,u̇:`u`,Ʊ:`U`,ʊ:`u`,Ẁ:`W`,ẁ:`w`,Ẃ:`W`,ẃ:`w`,Ẅ:`W`,ẅ:`w`,Ꙗ:`Ja`,ꙗ:`ja`,Y̧:`Y`,y̧:`y`,Y̨:`Y`,y̨:`y`,Ɏ:`Y`,ɏ:`y`,Y̌:`Y`,y̌:`y`,Ẏ:`Y`,ẏ:`y`,Ȳ:`Y`,ȳ:`y`,Z̀:`Z`,z̀:`z`,Ẑ:`Z`,ẑ:`z`,Z̈:`Z`,z̈:`z`,Z̧:`Z`,z̧:`z`,Z̨:`Z`,z̨:`z`,Ƶ:`Z`,ƶ:`z`,Ẓ:`Z`,ẓ:`z`,Z̄:`Z`,z̄:`z`,Z̃:`Z`,z̃:`z`,"\xA0":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `," ":` `,"\u2028":` `,"\u2029":` `,"​":` `," ":` `," ":` `," ":` `,ᅠ:` `,"«":`<<`,"»":`>>`,"‘":`'`,"’":`'`,"‚":`'`,"‛":`'`,"“":`"`,"”":`"`,"„":`"`,"‟":`"`,"‹":`'`,"›":`'`,"–":`-`,"—":`-`,"…":`...`,"€":`EUR`,$:`$`,"₢":`Cr`,"₣":`Fr.`,"£":`PS`,"₤":`L.`,ℳ:`M`,"₥":`mil`,"₦":`N`,"₧":`Pts`,"₨":`Rs`,රු:`LKR`,ரூ:`LKR`,"௹":`Rs`,रू:`NPR`,"₹":`Rs`,"૱":`Rs`,"₩":`W`,"₪":`NS`,"₸":`KZT`,"₫":`D`,"֏":`AMD`,"₭":`K`,"₺":`TL`,"₼":`AZN`,"₮":`T`,"₯":`Dr`,"₲":`PYG`,"₾":`GEL`,"₳":`ARA`,"₴":`UAH`,"₽":`RUB`,"₵":`GHS`,"₡":`CL`,"¢":`c`,"¥":`YEN`,円:`JPY`,"৳":`BDT`,元:`CNY`,"﷼":`SAR`,"៛":`KR`,"₠":`ECU`,"¤":`$?`,"฿":`THB`,"؋":`AFN`};function Ad(e,t=kd){e=e.normalize(`NFC`);let n=``,r;for(let i=0;i/g,``);r=r.replace(/['"‘’“”ʻ\[\]\(\)\{\}:]/g,``),r=r.toLowerCase(),r=Ad(r),n.allowNonAlphaStart||(r=r.replace(/^[^a-z]+/,``));let i=r.split(/[^a-z0-9]+/).filter(Boolean);if(r=``,n.handleCasing===`snake`)return i.join(`_`);for(let e=0;e/g,``);return t=t.toLowerCase(),t=Ad(t),t=t.replace(/^[^a-z]+/,``),t=t.replace(/[^a-z0-9]+$/,``),t.split(/[^a-z0-9]+/).filter(Boolean).join(`-`)}function Pd(e){return typeof e==`symbol`||e instanceof Symbol}var Fd=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()||Function(`return this`)();function Id(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function Ld(){}function Rd(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function zd(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bd(e){if(Rd(e))return e;if(Array.isArray(e)||zd(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}function Vd(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Hd(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Ud=`[object RegExp]`,Wd=`[object String]`,Gd=`[object Number]`,Kd=`[object Boolean]`,qd=`[object Arguments]`,Jd=`[object Symbol]`,Yd=`[object Date]`,Xd=`[object Map]`,Zd=`[object Set]`,Qd=`[object Array]`,$d=`[object Function]`,ef=`[object ArrayBuffer]`,tf=`[object Object]`,nf=`[object Error]`,rf=`[object DataView]`,af=`[object Uint8Array]`,of=`[object Uint8ClampedArray]`,sf=`[object Uint16Array]`,cf=`[object Uint32Array]`,lf=`[object BigUint64Array]`,uf=`[object Int8Array]`,df=`[object Int16Array]`,ff=`[object Int32Array]`,pf=`[object BigInt64Array]`,mf=`[object Float32Array]`,hf=`[object Float64Array]`;function gf(e){return Fd.Buffer!==void 0&&Fd.Buffer.isBuffer(e)}function _f(e,t){return vf(e,void 0,e,new Map,t)}function vf(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Rd(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;aEf(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case Qd:case af:case of:case sf:case cf:case lf:case uf:case df:case ff:case pf:case mf:case hf:if(gf(e)!==gf(t)||e.length!==t.length)return!1;for(let i=0;i=0}var Af={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function jf(e){return e.replace(/[&<>"']/g,e=>Af[e])}function Mf(e){return e!=null&&typeof e!=`function`&&kf(e.length)}function Nf(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function Pf(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function Ff(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(Ff).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function If(e){if(Array.isArray(e))return e.map(Pf);if(typeof e==`symbol`)return[e];e=Ff(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&(t.push(``),r++);r{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Hd(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),yf(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Gd:case Wd:case Kd:{let t=new e.constructor(e?.valueOf());return yf(t,e),t}case qd:{let t={};return yf(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Vf(e){return Bf(e)}var Hf=/^(?:0|[1-9]\d*)$/;function Uf(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e{let r=e[t];(!(Object.hasOwn(e,t)&&wf(r,n))||n===void 0&&!(t in e))&&(e[t]=n)};function Qf(e,t,n,r){if(e==null&&!zf(e))return e;let i;i=Xf(t,e)?[t]:Array.isArray(t)?t:If(t);let a=n(Lf(e,i)),o=e;for(let t=0;tn,()=>void 0)}function ep(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=Id(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?(s=e.apply(this,t),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function tp(e){return zd(e)}function np(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;etypeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0,sp=e=>e instanceof FormData?!0:op(e)||typeof e==`object`&&!!e&&Object.values(e).some(e=>sp(e)),cp=class extends Error{response;constructor(e){super(`HTTP error ${e.status}`),this.name=`HttpResponseError`,this.response=e}},lp=class extends Error{constructor(e=`Request was cancelled`){super(e),this.name=`HttpCancelledError`}},up=class extends Error{constructor(e=`Network error`){super(e),this.name=`HttpNetworkError`}};function dp(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,n])=>{n!=null&&(Array.isArray(n)?n.forEach(n=>t.append(`${e}[]`,String(n))):typeof n==`object`?t.append(e,JSON.stringify(n)):t.append(e,String(n)))}),t.toString()}function fp(e,t,n){if(t&&!e.startsWith(`http://`)&&!e.startsWith(`https://`)&&(e=t.replace(/\/$/,``)+`/`+e.replace(/^\//,``)),n&&Object.keys(n).length>0){let t=dp(n);t&&(e+=(e.includes(`?`)?`&`:`?`)+t)}return e}function pp(){return typeof window>`u`?null:window.axios?.defaults?.headers?.common?.[`X-Requested-With`]??null}function mp(e,t=new FormData,n=null){for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&hp(t,n?`${n}[${r}]`:r,e[r]);return t}function hp(e,t,n){if(Array.isArray(n))return n.forEach((n,r)=>hp(e,`${t}[${r}]`,n));if(n instanceof Date)return e.append(t,n.toISOString());if(typeof File<`u`&&n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);mp(n,e,t)}function gp(e,t){if(e!=null)return e instanceof FormData?e:typeof e==`object`&&sp(e)?mp(e):typeof e==`object`||t[`Content-Type`]?.includes(`application/json`)?JSON.stringify(e):String(e)}function _p(e){let t={};return e.forEach((e,n)=>{t[n.toLowerCase()]=e}),t}function vp(e={}){let t=e.xsrfCookieName??`XSRF-TOKEN`,n=e.xsrfHeaderName??`X-XSRF-TOKEN`;function r(){if(typeof document>`u`)return null;let e=document.cookie.match(RegExp(`(^|;\\s*)`+t+`=([^;]*)`));return e?decodeURIComponent(e[2]):null}return{setXsrfCookieName(e){t=e},setXsrfHeaderName(e){n=e},async request(e){let t=fp(e.url,e.baseURL,e.params),i=e.method.toUpperCase(),a={},o=pp();o&&(a[`X-Requested-With`]=o),e.data!==void 0&&![`GET`,`DELETE`].includes(i)&&!(e.data instanceof FormData)&&!sp(e.data)&&(a[`Content-Type`]=`application/json`),e.headers&&Object.entries(e.headers).forEach(([e,t])=>{t!==void 0&&(a[e]=String(t))});let s=r();s&&![`GET`,`HEAD`,`OPTIONS`].includes(i)&&(a[n]=s);let c=e.signal,l,u=e.timeout??3e4;if(u>0&&!c){let e=new AbortController;c=e.signal,l=setTimeout(()=>e.abort(),u)}let d=[`GET`,`DELETE`].includes(i)?void 0:gp(e.data,a);d instanceof FormData&&delete a[`Content-Type`];try{let n=await fetch(t,{method:i,headers:a,body:d,signal:c,credentials:e.credentials??`same-origin`});l&&clearTimeout(l);let r;r=n.headers.get(`content-type`)?.includes(`application/json`)?await n.json():await n.text();let o={status:n.status,data:r,headers:_p(n.headers)};if(!n.ok)throw new cp(o);return o}catch(e){throw l&&clearTimeout(l),e instanceof cp?e:e instanceof DOMException&&e.name===`AbortError`?new lp:e instanceof TypeError?new up(e.message):e}}}}var yp=vp(),bp=yp,xp=void 0,Sp=void 0,wp=`same-origin`,Tp=e=>`${e.method}:${e.baseURL??xp??``}${e.url}`,Ep=e=>e.status===204&&e.headers[`precognition-success`]===`true`,Dp={},Op={get:(e,t={},n={})=>Ap(kp(`get`,e,t,n)),post:(e,t={},n={})=>Ap(kp(`post`,e,t,n)),patch:(e,t={},n={})=>Ap(kp(`patch`,e,t,n)),put:(e,t={},n={})=>Ap(kp(`put`,e,t,n)),delete:(e,t={},n={})=>Ap(kp(`delete`,e,t,n)),useHttpClient(e){return bp=e,Op},withBaseURL(e){return xp=e,Op},withTimeout(e){return Sp=e,Op},withCredentials(e){return wp=typeof e==`string`?e:e?`include`:`omit`,Op},fingerprintRequestsUsing(e){return Tp=e===null?()=>null:e,Op},determineSuccessUsing(e){return Ep=e,Op},withXsrfCookieName(e){return yp.setXsrfCookieName(e),Op},withXsrfHeaderName(e){return yp.setXsrfHeaderName(e),Op}},kp=(e,t,n,r)=>({url:t,method:e,...r,...[`get`,`delete`].includes(e)?{params:ip({},n,r?.params)}:{data:ip({},n,r?.data)}}),Ap=(e={})=>{let t=[jp,Np,Pp].reduce((e,t)=>t(e),e);return(t.onBefore??(()=>!0))()===!1?Promise.resolve(null):((t.onStart??(()=>null))(),bp.request({method:t.method,url:t.url,baseURL:t.baseURL??xp,data:t.data,params:t.params,headers:t.headers,signal:t.signal,timeout:t.timeout,credentials:wp}).then(async e=>{t.precognitive&&Fp(e);let n=e.status,r=e;return t.precognitive&&t.onPrecognitionSuccess&&Ep(e)&&(r=await Promise.resolve(t.onPrecognitionSuccess(e)??r)),t.onSuccess&&Mp(n)&&(r=await Promise.resolve(t.onSuccess(r)??r)),(Lp(t,n)??(e=>e))(r)??r},e=>{if(Ip(e))return Promise.reject(e);let n=e;return t.precognitive&&Fp(n.response),(Lp(t,n.response.status)??((e,t)=>Promise.reject(t)))(n.response,n)}).finally(t.onFinish??(()=>null)))},jp=e=>{let t=e.only??e.validate;return{...e,timeout:e.timeout??Sp,precognitive:e.precognitive!==!1,fingerprint:e.fingerprint===void 0?Tp(e,bp):e.fingerprint,headers:{...e.headers,Accept:`application/json`,"Content-Type":Rp(e),...e.precognitive===!1?{}:{Precognition:!0},...t?{"Precognition-Validate-Only":Array.from(t).join()}:{}}}},Mp=e=>e>=200&&e<300,Np=e=>typeof e.fingerprint==`string`?(Dp[e.fingerprint]?.abort(),delete Dp[e.fingerprint],e):e,Pp=e=>typeof e.fingerprint!=`string`||e.signal||!e.precognitive?e:(Dp[e.fingerprint]=new AbortController,{...e,signal:Dp[e.fingerprint].signal}),Fp=e=>{if(e.headers?.precognition!==`true`)throw Error(`Did not receive a Precognition response. Ensure you have the Precognition middleware in place for the route.`)},Ip=e=>!(e instanceof cp)||typeof e.response?.status!=`number`,Lp=(e,t)=>({401:e.onUnauthorized,403:e.onForbidden,404:e.onNotFound,409:e.onConflict,422:e.onValidationError,423:e.onLocked})[t],Rp=e=>e.headers?.[`Content-Type`]??e.headers?.[`Content-type`]??e.headers?.[`content-type`]??(sp(e.data)?`multipart/form-data`:`application/json`),zp=(e,t)=>{if(!e.includes(`*`))return[e];let n=e.split(`.`),r=[``];for(let e of n)if(e===`*`){let e=[];for(let n of r){let r=n?Lf(t,n):t;if(Array.isArray(r))for(let t=0;tt?`${t}.${e}`:e);return r},Bp=(e,t)=>t.includes(`*`)?RegExp(`^`+t.replace(/\./g,`\\.`).replace(/\*/g,`[^.]+`)+`$`).test(e):e===t,Vp=(e,t)=>Object.fromEntries(Object.entries(e).filter(([e])=>!t.some(t=>Bp(e,t)))),Hp=(e,t={})=>{let n={errorsChanged:[],touchedChanged:[],validatingChanged:[],validatedChanged:[]},r=!1,i=!1,a=e=>e===i?[]:(i=e,n.validatingChanged),o=[],s=e=>{let t=[...new Set(e)];return o.length!==t.length||!t.every(e=>o.includes(e))?(o=t,n.validatedChanged):[]},c=()=>o.filter(e=>d[e]===void 0),l=[],u=e=>{let t=[...new Set(e)];return l.length!==t.length||!t.every(e=>l.includes(e))?(l=t,n.touchedChanged):[]},d={},f=e=>{let t=Wp(e);return Of(d,t)?[]:(d=t,n.errorsChanged)},p=e=>{let t={...d};return delete t[Gp(e)],f(t)},m=()=>Object.keys(d).length>0,h=1500,g=e=>{h=e,S.cancel(),S=x()},_=t,v=null,y=[],b=null,x=()=>ep(t=>{e({get:(e,n={},r={})=>Op.get(e,T(n),C(r,t,n)),post:(e,n={},r={})=>Op.post(e,T(n),C(r,t,n)),patch:(e,n={},r={})=>Op.patch(e,T(n),C(r,t,n)),put:(e,n={},r={})=>Op.put(e,T(n),C(r,t,n)),delete:(e,n={},r={})=>Op.delete(e,T(n),C(r,t,n))}).catch(e=>e instanceof lp||e instanceof cp&&e.response?.status===422?null:Promise.reject(e))},h,{leading:!0,trailing:!0}),S=x(),C=(e,t,n={})=>{let r={...e,...t},i=Array.from(r.only??r.validate??l);return{...t,...ip({},e,t),only:i,timeout:r.timeout??5e3,onValidationError:(e,t)=>([...s([...o,...i]),...f(ip(Vp({...d},i),e.data.errors))].forEach(e=>e()),r.onValidationError?r.onValidationError(e,t):Promise.reject(t)),onSuccess:e=>(s([...o,...i]).forEach(e=>e()),r.onSuccess?r.onSuccess(e):e),onPrecognitionSuccess:e=>([...s([...o,...i]),...f(Vp({...d},i))].forEach(e=>e()),r.onPrecognitionSuccess?r.onPrecognitionSuccess(e):e),onBefore:()=>{let e=l.some(e=>e.includes(`*`)),t=e?[...new Set(l.flatMap(e=>zp(e,n)))]:l;return r.onBeforeValidation&&r.onBeforeValidation({data:n,touched:t},{data:_,touched:y})===!1||(r.onBefore||(()=>!0))()===!1?!1:(e&&u(t).forEach(e=>e()),b=l,v=n,!0)},onStart:()=>{a(!0).forEach(e=>e()),(r.onStart??(()=>null))()},onFinish:()=>{a(!1).forEach(e=>e()),y=b,_=v,b=v=null,(r.onFinish??(()=>null))()}}},w=(e,t,n)=>{if(e===void 0){let e=Array.from(n?.only??n?.validate??[]);u([...l,...e]).forEach(e=>e()),S(n??{});return}if(op(t)&&!r){console.warn(`Precognition file validation is not active. Call the "validateFiles" function on your form to enable it.`);return}e=Gp(e),(e.includes(`*`)||Lf(_,e)!==t)&&(u([e,...l]).forEach(e=>e()),S(n??{}))},T=e=>r===!1?Kp(e):e,E={touched:()=>l,validate(e,t,n){return typeof e==`object`&&!(`target`in e)&&(n=e,e=t=void 0),w(e,t,n),E},touch(e){let t=Array.isArray(e)?e:[Gp(e)];return u([...l,...t]).forEach(e=>e()),E},validating:()=>i,valid:c,errors:()=>d,hasErrors:m,setErrors(e){return f(e).forEach(e=>e()),E},forgetError(e){return p(e).forEach(e=>e()),E},defaults(e){return t=e,_=e,E},reset(...e){if(e.length===0)u([]).forEach(e=>e());else{let n=[...l];e.forEach(e=>{n.includes(e)&&n.splice(n.indexOf(e),1),$f(_,e,Lf(t,e))}),u(n).forEach(e=>e())}return E},setTimeout(e){return g(e),E},on(e,t){return n[e].push(t),E},validateFiles(){return r=!0,E},withoutFileValidation(){return r=!1,E}};return E},Up=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:Array.isArray(e[n])?e[n][0]:e[n]}),{}),Wp=e=>Object.keys(e).reduce((t,n)=>({...t,[n]:typeof e[n]==`string`?[e[n]]:e[n]}),{}),Gp=e=>typeof e==`string`?e:e.target.name,Kp=e=>{let t={...e};return Object.keys(t).forEach(e=>{let n=t[e];if(n!==null){if(op(n)){delete t[e];return}if(Array.isArray(n)){t[e]=Object.values(Kp({...n}));return}if(typeof n==`object`){t[e]=Kp(t[e]);return}}}),t},qp=new class{config={};defaults;constructor(e){this.defaults=e}extend(e){return e&&(this.defaults={...this.defaults,...e}),this}replace(e){this.config=e}get(e){return Gf(this.config,e)?Lf(this.config,e):Lf(this.defaults,e)}set(e,t){typeof e==`string`?$f(this.config,e,t):Object.entries(e).forEach(([e,t])=>{$f(this.config,e,t)})}}({form:{recentlySuccessfulDuration:2e3,forceIndicesArrayFormatInFormData:!0,withAllErrors:!1},prefetch:{cacheFor:3e4,hoverDelay:75}});function Jp(e,t){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function Yp(e,t){return document.dispatchEvent(new CustomEvent(`inertia:${e}`,t))}var Xp=e=>Yp(`before`,{cancelable:!0,detail:{visit:e}}),Zp=e=>Yp(`error`,{detail:{errors:e}}),Qp=e=>Yp(`networkError`,{cancelable:!0,detail:{error:e}}),$p=e=>Yp(`finish`,{detail:{visit:e}}),em=e=>Yp(`httpException`,{cancelable:!0,detail:{response:e}}),tm=e=>Yp(`beforeUpdate`,{detail:{page:e}}),nm=e=>Yp(`navigate`,{detail:{page:e}}),rm=e=>Yp(`progress`,{detail:{progress:e}}),im=e=>Yp(`start`,{detail:{visit:e}}),am=e=>Yp(`success`,{detail:{page:e}}),om=(e,t)=>Yp(`prefetched`,{detail:{fetchedAt:Date.now(),response:e,visit:t}}),sm=e=>Yp(`prefetching`,{detail:{visit:e}}),cm=e=>Yp(`flash`,{detail:{flash:e}}),lm=class{static locationVisitKey=`inertiaLocationVisit`;static set(e,t){typeof window<`u`&&window.sessionStorage.setItem(e,JSON.stringify(t))}static get(e){if(typeof window<`u`)return JSON.parse(window.sessionStorage.getItem(e)||`null`)}static merge(e,t){let n=this.get(e);n===null?this.set(e,t):this.set(e,{...n,...t})}static remove(e){typeof window<`u`&&window.sessionStorage.removeItem(e)}static removeNested(e,t){let n=this.get(e);n!==null&&(delete n[t],this.set(e,n))}static exists(e){try{return this.get(e)!==null}catch{return!1}}static clear(){typeof window<`u`&&window.sessionStorage.clear()}},um=async e=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);let t=hm(),n=await vm(await ym());if(!n)throw Error(`Unable to encrypt history`);return await pm(t,n,e)},dm={key:`historyKey`,iv:`historyIv`},fm=async e=>{let t=hm(),n=await ym();if(!n)throw Error(`Unable to decrypt history`);return await mm(t,n,e)},pm=async(e,t,n)=>{if(typeof window>`u`)throw Error(`Unable to encrypt history`);if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=new TextEncoder,i=JSON.stringify(n),a=new Uint8Array(i.length*3),o=r.encodeInto(i,a);return window.crypto.subtle.encrypt({name:`AES-GCM`,iv:e},t,a.subarray(0,o.written))},mm=async(e,t,n)=>{if(window.crypto.subtle===void 0)return console.warn(`Decryption is not supported in this environment. SSL is required.`),Promise.resolve(n);let r=await window.crypto.subtle.decrypt({name:`AES-GCM`,iv:e},t,n);return JSON.parse(new TextDecoder().decode(r))},hm=()=>{let e=lm.get(dm.iv);if(e)return new Uint8Array(e);let t=window.crypto.getRandomValues(new Uint8Array(12));return lm.set(dm.iv,Array.from(t)),t},gm=async()=>window.crypto.subtle===void 0?(console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve(null)):window.crypto.subtle.generateKey({name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]),_m=async e=>{if(window.crypto.subtle===void 0)return console.warn(`Encryption is not supported in this environment. SSL is required.`),Promise.resolve();let t=await window.crypto.subtle.exportKey(`raw`,e);lm.set(dm.key,Array.from(new Uint8Array(t)))},vm=async e=>{if(e)return e;let t=await gm();return t?(await _m(t),t):null},ym=async()=>{let e=lm.get(dm.key);return e?await window.crypto.subtle.importKey(`raw`,new Uint8Array(e),{name:`AES-GCM`,length:256},!0,[`encrypt`,`decrypt`]):null},bm=(e,t,n)=>{if(e===t)return!0;for(let r in e)if(!n.includes(r)&&e[r]!==t[r]&&!xm(e[r],t[r]))return!1;for(let r in t)if(!n.includes(r)&&!(r in e))return!1;return!0},xm=(e,t)=>{switch(typeof e){case`object`:return bm(e,t,[]);case`function`:return e.toString()===t.toString();default:return e===t}},Sm={ms:1,s:1e3,m:1e3*60,h:1e3*60*60,d:1e3*60*60*24},Cm=e=>{if(typeof e==`number`)return e;for(let[t,n]of Object.entries(Sm))if(e.endsWith(t))return parseFloat(e)*n;return parseInt(e)},wm=new class{cached=[];inFlightRequests=[];removalTimers=[];currentUseId=null;add(e,t,{cacheFor:n,cacheTags:r}){if(this.findInFlight(e))return Promise.resolve();let i=this.findCached(e);if(!e.fresh&&i&&i.staleTimestamp>Date.now())return Promise.resolve();let[a,o]=this.extractStaleValues(n),s=new Promise((n,r)=>{t({...e,onCancel:()=>{this.remove(e),e.onCancel(),r()},onError:t=>{this.remove(e),e.onError(t),r()},onPrefetching(t){e.onPrefetching(t)},onPrefetched(t,n){e.onPrefetched(t,n)},onPrefetchResponse(e){n(e)},onPrefetchError(t){wm.removeFromInFlight(e),r(t)}})}).then(t=>{this.remove(e);let n=t.getPageResponse();V.mergeOncePropsIntoResponse(n),this.cached.push({params:{...e},staleTimestamp:Date.now()+a,expiresAt:Date.now()+o,response:s,singleUse:o===0,timestamp:Date.now(),inFlight:!1,tags:Array.isArray(r)?r:[r]});let i=this.getShortestOncePropTtl(n);return this.scheduleForRemoval(e,i?Math.min(o,i):o),this.removeFromInFlight(e),t.handlePrefetch(),t});return this.inFlightRequests.push({params:{...e},response:s,staleTimestamp:null,inFlight:!0}),s}removeAll(){this.cached=[],this.removalTimers.forEach(e=>{clearTimeout(e.timer)}),this.removalTimers=[]}removeByTags(e){this.cached=this.cached.filter(t=>!t.tags.some(t=>e.includes(t)))}remove(e){this.cached=this.cached.filter(t=>!this.paramsAreEqual(t.params,e)),this.clearTimer(e)}removeFromInFlight(e){this.inFlightRequests=this.inFlightRequests.filter(t=>!this.paramsAreEqual(t.params,e))}extractStaleValues(e){let[t,n]=this.cacheForToStaleAndExpires(e);return[Cm(t),Cm(n)]}cacheForToStaleAndExpires(e){if(!Array.isArray(e))return[e,e];switch(e.length){case 0:return[0,0];case 1:return[e[0],e[0]];default:return[e[0],e[1]]}}clearTimer(e){let t=this.removalTimers.find(t=>this.paramsAreEqual(t.params,e));t&&(clearTimeout(t.timer),this.removalTimers=this.removalTimers.filter(e=>e!==t))}scheduleForRemoval(e,t){if(!(typeof window>`u`)&&(this.clearTimer(e),t>0)){let n=window.setTimeout(()=>this.remove(e),t);this.removalTimers.push({params:e,timer:n})}}get(e){return this.findCached(e)||this.findInFlight(e)}use(e,t){let n=`${t.url.pathname}-${Date.now()}-${Math.random().toString(36).substring(7)}`;return this.currentUseId=n,e.response.then(e=>{if(this.currentUseId===n)return e.mergeParams({...t,onPrefetched:()=>{}}),this.removeSingleUseItems(t),e.handle()})}removeSingleUseItems(e){this.cached=this.cached.filter(t=>this.paramsAreEqual(t.params,e)?!t.singleUse:!0)}findCached(e){return this.cached.find(t=>this.paramsAreEqual(t.params,e))||null}findInFlight(e){return this.inFlightRequests.find(t=>this.paramsAreEqual(t.params,e))||null}withoutPurposePrefetchHeader(e){let t=B(e);return t.headers.Purpose===`prefetch`&&delete t.headers.Purpose,t}paramsAreEqual(e,t){return bm(this.withoutPurposePrefetchHeader(e),this.withoutPurposePrefetchHeader(t),[`showProgress`,`replace`,`prefetch`,`preserveScroll`,`preserveState`,`onBefore`,`onBeforeUpdate`,`onStart`,`onProgress`,`onFinish`,`onCancel`,`onSuccess`,`onError`,`onFlash`,`onPrefetched`,`onCancelToken`,`onPrefetching`,`async`,`viewTransition`,`optimistic`,`component`,`pageProps`])}updateCachedOncePropsFromCurrentPage(){this.cached.forEach(e=>{e.response.then(t=>{let n=t.getPageResponse();V.mergeOncePropsIntoResponse(n,{force:!0});for(let[e,t]of Object.entries(n.deferredProps??{})){let r=t.filter(e=>Lf(n.props,e)===void 0);r.length>0?n.deferredProps[e]=r:delete n.deferredProps[e]}let r=this.getShortestOncePropTtl(n);if(r===null)return;let i=e.expiresAt-Date.now(),a=Math.min(i,r);a>0?this.scheduleForRemoval(e.params,a):this.remove(e.params)})})}getShortestOncePropTtl(e){let t=Object.values(e.onceProps??{}).map(e=>e.expiresAt).filter(e=>!!e);return t.length===0?null:Math.min(...t)-Date.now()}},Tm=(e,t=1)=>{window.requestAnimationFrame(()=>{t>1?Tm(e,t-1):e()})},Em=e=>{if(typeof window>`u`)return null;let t=document.querySelector(`script[data-page="${e}"][type="application/json"]`);return t?.textContent?JSON.parse(t.textContent):null},Dm=typeof window>`u`,Om=!Dm&&/Firefox/i.test(window.navigator.userAgent),km=class{static save(){H.saveScrollPositions(this.getScrollRegions())}static getScrollRegions(){return Array.from(this.regions()).map(e=>({top:e.scrollTop,left:e.scrollLeft}))}static regions(){return document.querySelectorAll(`[scroll-region]`)}static scrollToTop(){if(Om&&getComputedStyle(document.documentElement).scrollBehavior===`smooth`)return Tm(()=>window.scrollTo(0,0),2);window.scrollTo(0,0)}static reset(){!Dm&&window.location.hash||this.scrollToTop(),this.regions().forEach(e=>{typeof e.scrollTo==`function`?e.scrollTo(0,0):(e.scrollTop=0,e.scrollLeft=0)}),this.save(),this.scrollToAnchor()}static scrollToAnchor(){let e=Dm?null:window.location.hash;e&&setTimeout(()=>{let t=document.getElementById(e.slice(1));t?t.scrollIntoView():this.scrollToTop()})}static restore(e){Dm||window.requestAnimationFrame(()=>{this.restoreDocument(),this.restoreScrollRegions(e)})}static restoreScrollRegions(e){Dm||this.regions().forEach((t,n)=>{let r=e[n];r&&(typeof t.scrollTo==`function`?t.scrollTo(r.left,r.top):(t.scrollTop=r.top,t.scrollLeft=r.left))})}static restoreDocument(){let e=H.getDocumentScrollPosition();window.scrollTo(e.left,e.top)}static onScroll(e){let t=e.target;typeof t.hasAttribute==`function`&&t.hasAttribute(`scroll-region`)&&this.save()}static onWindowScroll(){H.saveDocumentScrollPosition({top:window.scrollY,left:window.scrollX})}},Am=e=>typeof File<`u`&&e instanceof File||e instanceof Blob||typeof FileList<`u`&&e instanceof FileList&&e.length>0;function jm(e){return Am(e)||e instanceof FormData&&Array.from(e.values()).some(e=>jm(e))||typeof e==`object`&&!!e&&Object.values(e).some(e=>jm(e))}var Mm=e=>e instanceof FormData;function Nm(e,t=new FormData,n=null,r=`brackets`){e||={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&Fm(t,Pm(n,i,`indices`),e[i],r);return t}function Pm(e,t,n){return e?n===`brackets`?`${e}[]`:`${e}[${t}]`:t}function Fm(e,t,n,r){if(Array.isArray(n))return Array.from(n.keys()).forEach(i=>Fm(e,Pm(t,i.toString(),r),n[i],r));if(n instanceof Date)return e.append(t,n.toISOString());if(n instanceof File)return e.append(t,n,n.name);if(n instanceof Blob)return e.append(t,n);if(typeof n==`boolean`)return e.append(t,n?`1`:`0`);if(typeof n==`string`)return e.append(t,n);if(typeof n==`number`)return e.append(t,`${n}`);if(n==null)return e.append(t,``);Nm(n,e,t,r)}function Im(e){return/\[\d+\]/.test(decodeURIComponent(e.search))}function Lm(e){if(!e||e===`?`)return{};let t={};return e.replace(/^\?/,``).split(`&`).filter(Boolean).forEach(e=>{let[n,r]=zm(e);Vm(t,Bm(n),Bm(r))}),t}function Rm(e,t){let n=[];return Um(e,``,n,t),n.length?`?`+n.join(`&`):``}function zm(e){let t=e.indexOf(`=`);return t===-1?[e,``]:[e.substring(0,t),e.substring(t+1)]}function Bm(e){return decodeURIComponent(e.replace(/\+/g,` `))}function Vm(e,t,n){let r=Hm(t),i=e;for(;r.length>1;){let e=r.shift(),t=r[0]===``;(typeof i[e]!=`object`||i[e]===null)&&(i[e]=t?[]:{}),i=i[e]}let a=r.shift();a===``&&Array.isArray(i)?i.push(n):i[a]=n}function Hm(e){let t=[],n=e.split(`[`)[0];n&&t.push(n);let r,i=/\[([^\]]*)\]/g;for(;(r=i.exec(e))!==null;)t.push(r[1]);return t}function Um(e,t,n,r){if(e!==void 0){if(e===null){n.push(`${t}=`);return}if(Array.isArray(e)){e.forEach((e,i)=>{Um(e,r===`indices`?`${t}[${i}]`:`${t}[]`,n,r)});return}if(typeof e==`object`){Object.keys(e).forEach(i=>{Um(e[i],t?`${t}[${i}]`:i,n,r)});return}n.push(`${t}=${encodeURIComponent(String(e))}`)}}function Wm(e){return new URL(e.toString(),typeof window>`u`?void 0:window.location.toString())}var Gm=(e,t,n,r,i)=>{let a=typeof e==`string`?Wm(e):e;if((jm(t)||r)&&!Mm(t)&&(qp.get(`form.forceIndicesArrayFormatInFormData`)&&(i=`indices`),t=Nm(t,new FormData,null,i)),Mm(t))return[a,t];let[o,s]=Km(n,a,t,i);return[Wm(o),s]};function Km(e,t,n,r=`brackets`){let i=e===`get`&&!Mm(n)&&Object.keys(n).length>0,a=$m(t.toString()),o=a||t.toString().startsWith(`/`)||t.toString()===``,s=!o&&!t.toString().startsWith(`#`)&&!t.toString().startsWith(`?`),c=/^[.]{1,2}([/]|$)/.test(t.toString()),l=t.toString().includes(`?`)||i,u=t.toString().includes(`#`),d=new URL(t.toString(),typeof window>`u`?`http://localhost`:window.location.toString());if(i){let e=Im(d)?`indices`:r;d.search=Rm({...Lm(d.search),...n},e)}return[[a?`${d.protocol}//${d.host}`:``,o?d.pathname:``,s?d.pathname.substring(+!c):``,l?d.search:``,u?d.hash:``].join(``),i?{}:n]}function qm(e){return e=new URL(e.href),e.hash=``,e}var Jm=(e,t)=>{e.hash&&!t.hash&&qm(e).href===t.href&&(t.hash=e.hash)},Ym=(e,t)=>qm(e).href===qm(t).href,Xm=(e,t)=>e.origin===t.origin&&e.pathname===t.pathname;function Zm(e){return typeof e==`object`&&!!e&&e!==void 0&&`url`in e&&`method`in e}function Qm(e){return e.component?typeof e.component==`string`?e.component:(console.error(`The "component" property on the URL method pair received multiple components (${Object.keys(e.component).join(`, `)}), but only a single component string is supported for instant visits. Use the withComponent() method to specify which component to use.`),null):null}function $m(e){return/^([a-z][a-z0-9+.-]*:)?\/\/[^/]/i.test(e)}var V=new class{page;swapComponent;resolveComponent;onFlashCallback;componentId={};listeners=[];isFirstPageLoad=!0;cleared=!1;pendingDeferredProps=null;historyQuotaExceeded=!1;optimisticBaseline={};pendingOptimistics=[];optimisticCounter=0;init({initialPage:e,swapComponent:t,resolveComponent:n,onFlash:r}){return this.page={...e,flash:e.flash??{}},this.swapComponent=t,this.resolveComponent=n,this.onFlashCallback=r,ah.on(`historyQuotaExceeded`,()=>{this.historyQuotaExceeded=!0}),this}set(e,{replace:t=!1,preserveScroll:n=!1,preserveState:r=!1,viewTransition:i=!1}={}){Object.keys(e.deferredProps||{}).length&&(this.pendingDeferredProps={deferredProps:e.deferredProps,component:e.component,url:e.url},e.initialDeferredProps===void 0&&(e.initialDeferredProps=e.deferredProps)),this.componentId={};let a=this.componentId;return e.clearHistory&&H.clear(),this.resolve(e.component,e).then(o=>{if(a!==this.componentId)return;e.rememberedState??={};let s=typeof window>`u`,c=s?new URL(e.url):window.location,l=!s&&n?km.getScrollRegions():[];t||=Ym(Wm(e.url),c);let u={...e,flash:{}};return new Promise(e=>t?H.replaceState(u,e):H.pushState(u,e)).then(()=>{let a=!this.isTheSame(e);if(!a&&Object.keys(e.props.errors||{}).length>0&&(i=!1),this.page=e,this.cleared=!1,this.hasOnceProps()&&wm.updateCachedOncePropsFromCurrentPage(),a&&this.fireEventsFor(`newComponent`),this.isFirstPageLoad&&this.fireEventsFor(`firstLoad`),this.isFirstPageLoad=!1,this.historyQuotaExceeded){this.historyQuotaExceeded=!1;return}return this.swap({component:o,page:e,preserveState:r,viewTransition:i}).then(()=>{n?window.requestAnimationFrame(()=>km.restoreScrollRegions(l)):km.reset(),this.pendingDeferredProps&&this.pendingDeferredProps.component===e.component&&this.pendingDeferredProps.url===e.url&&ah.fireInternalEvent(`loadDeferredProps`,this.pendingDeferredProps.deferredProps),this.pendingDeferredProps=null,t||nm(e)})})})}setQuietly(e,{preserveState:t=!1}={}){return this.resolve(e.component,e).then(n=>(this.page=e,this.cleared=!1,H.setCurrent(e),this.swap({component:n,page:e,preserveState:t,viewTransition:!1})))}clear(){this.cleared=!0}isCleared(){return this.cleared}get(){return this.page}getWithoutFlashData(){return{...this.page,flash:{}}}hasOnceProps(){return Object.keys(this.page.onceProps??{}).length>0}merge(e){this.page={...this.page,...e}}setPropsQuietly(e){return this.page={...this.page,props:e},this.resolve(this.page.component,this.page).then(e=>this.swap({component:e,page:this.page,preserveState:!0,viewTransition:!1}))}setFlash(e){this.page={...this.page,flash:e},this.onFlashCallback?.(e)}setUrlHash(e){this.page.url.includes(e)||(this.page.url+=e)}remember(e){this.page.rememberedState=e}swap({component:e,page:t,preserveState:n,viewTransition:r}){let i=()=>this.swapComponent({component:e,page:t,preserveState:n});if(!r||!document?.startViewTransition||document.visibilityState===`hidden`)return i();let a=typeof r==`boolean`?()=>null:r;return new Promise(e=>{a(document.startViewTransition(()=>i().then(e)))})}resolve(e,t){return Promise.resolve(this.resolveComponent(e,t))}nextOptimisticId(){return++this.optimisticCounter}setBaseline(e,t){e in this.optimisticBaseline||(this.optimisticBaseline[e]=t)}updateBaseline(e,t){e in this.optimisticBaseline&&(this.optimisticBaseline[e]=t)}hasBaseline(e){return e in this.optimisticBaseline}registerOptimistic(e,t){this.pendingOptimistics.push({id:e,callback:t})}unregisterOptimistic(e){this.pendingOptimistics=this.pendingOptimistics.filter(t=>t.id!==e)}replayOptimistics(){let e=Object.keys(this.optimisticBaseline);if(e.length===0)return{};let t=B(this.page.props);for(let n of e)t[n]=B(this.optimisticBaseline[n]);for(let{callback:e}of this.pendingOptimistics){let n=e(B(t));n&&Object.assign(t,n)}let n={};for(let r of e)n[r]=t[r];return n}pendingOptimisticCount(){return this.pendingOptimistics.length}clearOptimisticState(){this.optimisticBaseline={},this.pendingOptimistics=[]}isTheSame(e){return this.page.component===e.component}on(e,t){return this.listeners.push({event:e,callback:t}),()=>{this.listeners=this.listeners.filter(n=>n.event!==e&&n.callback!==t)}}fireEventsFor(e){this.listeners.filter(t=>t.event===e).forEach(e=>e.callback())}mergeOncePropsIntoResponse(e,{force:t=!1}={}){Object.entries(e.onceProps??{}).forEach(([n,r])=>{let i=this.page.onceProps?.[n];i!==void 0&&(t||Lf(e.props,r.prop)===void 0)&&($f(e.props,r.prop,Lf(this.page.props,i.prop)),e.onceProps[n].expiresAt=i.expiresAt)})}},eh=class{items=[];processingPromise=null;add(e){return this.items.push(e),this.process()}process(){return this.processingPromise??=this.processNext().finally(()=>{this.processingPromise=null}),this.processingPromise}processNext(){let e=this.items.shift();return e?Promise.resolve(e()).then(()=>this.processNext()):Promise.resolve()}},th=typeof window>`u`,nh=new eh,rh=!th&&/CriOS/.test(window.navigator.userAgent),ih=class{rememberedState=`rememberedState`;scrollRegions=`scrollRegions`;preserveUrl=!1;current={};initialState=null;remember(e,t){this.replaceState({...V.getWithoutFlashData(),rememberedState:{...V.get()?.rememberedState??{},[t]:e}})}restore(e){if(!th)return this.current[this.rememberedState]?.[e]===void 0?this.initialState?.[this.rememberedState]?.[e]:this.current[this.rememberedState]?.[e]}pushState(e,t=null){if(!th){if(this.preserveUrl){t&&t();return}this.current=e,nh.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doPushState({page:n},e.url).then(()=>t?.());return rh?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}clonePageProps(e){try{return structuredClone(e.props),e}catch{return{...e,props:B(e.props)}}}getPageData(e){let t=this.clonePageProps(e);return new Promise(n=>e.encryptHistory?um(t).then(n):n(t))}processQueue(){return nh.process()}decrypt(e=null){if(th)return Promise.resolve(e??V.get());let t=e??window.history.state?.page;return this.decryptPageData(t).then(e=>{if(!e)throw Error(`Unable to decrypt history`);return this.initialState===null?this.initialState=e??void 0:this.current=e??{},e})}decryptPageData(e){return e instanceof ArrayBuffer?fm(e):Promise.resolve(e)}saveScrollPositions(e){nh.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!Of(this.getScrollRegions(),e))return this.doReplaceState({page:window.history.state.page,scrollRegions:e})}))}saveDocumentScrollPosition(e){nh.add(()=>Promise.resolve().then(()=>{if(window.history.state?.page&&!Of(this.getDocumentScrollPosition(),e))return this.doReplaceState({page:window.history.state.page,documentScrollPosition:e})}))}getScrollRegions(){return window.history.state?.scrollRegions||[]}getDocumentScrollPosition(){return window.history.state?.documentScrollPosition||{top:0,left:0}}replaceState(e,t=null){if(Of(this.current,e)){t&&t();return}let{flash:n,...r}=e;if(V.merge(r),!th){if(this.preserveUrl){t&&t();return}this.current=e,nh.add(()=>this.getPageData(e).then(n=>{let r=()=>this.doReplaceState({page:n},e.url).then(()=>t?.());return rh?new Promise(e=>{setTimeout(()=>r().then(e))}):r()}))}}isHistoryThrottleError(e){return e instanceof Error&&e.name===`SecurityError`&&(e.message.includes(`history.pushState`)||e.message.includes(`history.replaceState`))}isQuotaExceededError(e){return e instanceof Error&&e.name===`QuotaExceededError`}withThrottleProtection(e){return Promise.resolve().then(()=>{try{return e()}catch(e){if(!this.isHistoryThrottleError(e))throw e;console.error(e.message)}})}doReplaceState(e,t){return this.withThrottleProtection(()=>{window.history.replaceState({...e,scrollRegions:e.scrollRegions??window.history.state?.scrollRegions,documentScrollPosition:e.documentScrollPosition??window.history.state?.documentScrollPosition},``,t)})}doPushState(e,t){return this.withThrottleProtection(()=>{try{window.history.pushState(e,``,t)}catch(e){if(!this.isQuotaExceededError(e))throw e;ah.fireInternalEvent(`historyQuotaExceeded`,t)}})}getState(e,t){return this.current?.[e]??t}deleteState(e){this.current[e]!==void 0&&(delete this.current[e],this.replaceState(this.current))}clearInitialState(e){this.initialState&&this.initialState[e]!==void 0&&delete this.initialState[e]}browserHasHistoryEntry(){return!th&&!!window.history.state?.page}clear(){lm.remove(dm.key),lm.remove(dm.iv)}setCurrent(e){this.current=e}isValidState(e){return!!e.page}getAllState(){return this.current}};typeof window<`u`&&window.history.scrollRestoration&&(window.history.scrollRestoration=`manual`);var H=new ih,ah=new class{internalListeners=[];init(){typeof window<`u`&&(window.addEventListener(`popstate`,this.handlePopstateEvent.bind(this)),window.addEventListener(`pageshow`,this.handlePageshowEvent.bind(this)),window.addEventListener(`scroll`,Jp(km.onWindowScroll.bind(km),100),!0)),typeof document<`u`&&document.addEventListener(`scroll`,Jp(km.onScroll.bind(km),100),!0)}onGlobalEvent(e,t){return this.registerListener(`inertia:${e}`,(e=>{let n=t(e);e.cancelable&&!e.defaultPrevented&&n===!1&&e.preventDefault()}))}on(e,t){return this.internalListeners.push({event:e,listener:t}),()=>{this.internalListeners=this.internalListeners.filter(e=>e.listener!==t)}}onMissingHistoryItem(){V.clear(),this.fireInternalEvent(`missingHistoryItem`)}fireInternalEvent(e,...t){this.internalListeners.filter(t=>t.event===e).forEach(e=>e.listener(...t))}registerListener(e,t){return document.addEventListener(e,t),()=>document.removeEventListener(e,t)}handlePageshowEvent(e){e.persisted&&H.decrypt().catch(()=>this.onMissingHistoryItem())}handlePopstateEvent(e){let t=e.state||null;if(t===null){let e=Wm(V.get().url);e.hash=window.location.hash,H.replaceState({...V.getWithoutFlashData(),url:e.href}),km.reset();return}if(!H.isValidState(t))return this.onMissingHistoryItem();H.decrypt(t.page).then(e=>{if(V.get().version!==e.version){this.onMissingHistoryItem();return}Pg.cancelAll({prefetch:!1}),V.setQuietly(e,{preserveState:!1}).then(()=>{km.restore(H.getScrollRegions()),nm(V.get());let t={},n=V.get().props;for(let[r,i]of Object.entries(e.initialDeferredProps??e.deferredProps??{})){let e=i.filter(e=>Lf(n,e)===void 0);e.length>0&&(t[r]=e)}Object.keys(t).length>0&&this.fireInternalEvent(`loadDeferredProps`,t)})}).catch(()=>{this.onMissingHistoryItem()})}},oh=new class{type;constructor(){this.type=this.resolveType()}resolveType(){return typeof window>`u`?`navigate`:window.performance?.getEntriesByType(`navigation`)[0]?.type??`navigate`}get(){return this.type}isBackForward(){return this.type===`back_forward`}isReload(){return this.type===`reload`}},sh=class{static handle(){this.clearRememberedStateOnReload(),[this.handleBackForward,this.handleLocation,this.handleDefault].find(e=>e.bind(this)())}static clearRememberedStateOnReload(){oh.isReload()&&(H.deleteState(H.rememberedState),H.clearInitialState(H.rememberedState))}static handleBackForward(){if(!oh.isBackForward()||!H.browserHasHistoryEntry())return!1;let e=H.getScrollRegions();return H.decrypt().then(t=>{V.set(t,{preserveScroll:!0,preserveState:!0}).then(()=>{km.restore(e),nm(V.get())})}).catch(()=>{ah.onMissingHistoryItem()}),!0}static handleLocation(){if(!lm.exists(lm.locationVisitKey))return!1;let e=lm.get(lm.locationVisitKey)||{};return lm.remove(lm.locationVisitKey),typeof window<`u`&&V.setUrlHash(window.location.hash),H.decrypt(V.get()).then(()=>{let t=H.getState(H.rememberedState,{}),n=H.getScrollRegions();V.remember(t),V.set(V.get(),{preserveScroll:e.preserveScroll,preserveState:!0}).then(()=>{e.preserveScroll&&km.restore(n),this.fireInitialEvents()})}).catch(()=>{ah.onMissingHistoryItem()}),!0}static handleDefault(){typeof window<`u`&&V.setUrlHash(window.location.hash),V.set(V.get(),{preserveScroll:!0,preserveState:!0}).then(()=>{oh.isReload()?km.restore(H.getScrollRegions()):km.scrollToAnchor(),this.fireInitialEvents()})}static fireInitialEvents(){let e=V.get();nm(e),Object.keys(e.flash).length>0&&queueMicrotask(()=>cm(e.flash))}},ch=class{id=null;throttle=!1;keepAlive=!1;cb;interval;cbCount=0;constructor(e,t,n){this.keepAlive=n.keepAlive??!1,this.cb=t,this.interval=e,(n.autoStart??!0)&&this.start()}stop(){this.id&&clearInterval(this.id)}start(){typeof window>`u`||(this.stop(),this.id=window.setInterval(()=>{(!this.throttle||this.cbCount%10==0)&&this.cb(),this.throttle&&this.cbCount++},this.interval))}isInBackground(e){this.throttle=this.keepAlive?!1:e,this.throttle&&(this.cbCount=0)}},lh=new class{polls=[];constructor(){this.setupVisibilityListener()}add(e,t,n){let r=new ch(e,t,n);return this.polls.push(r),{stop:()=>r.stop(),start:()=>r.start()}}clear(){this.polls.forEach(e=>e.stop()),this.polls=[]}setupVisibilityListener(){typeof document>`u`||document.addEventListener(`visibilitychange`,()=>{this.polls.forEach(e=>e.isInBackground(document.hidden))},!1)}},uh=new class{requestHandlers=[];responseHandlers=[];errorHandlers=[];onRequest(e){return this.requestHandlers.push(e),()=>{this.requestHandlers=this.requestHandlers.filter(t=>t!==e)}}onResponse(e){return this.responseHandlers.push(e),()=>{this.responseHandlers=this.responseHandlers.filter(t=>t!==e)}}onError(e){return this.errorHandlers.push(e),()=>{this.errorHandlers=this.errorHandlers.filter(t=>t!==e)}}async processRequest(e){let t=e;for(let e of this.requestHandlers)t=await e(t);return t}async processResponse(e){let t=e;for(let e of this.responseHandlers)t=await e(t);return t}async processError(e){for(let t of this.errorHandlers)await t(e)}},dh=class extends Error{code;url;constructor(e,t,n){super(n?`${e} (${n})`:e),this.name=`HttpError`,this.code=t,this.url=n}},fh=class extends dh{response;constructor(e,t,n){super(e,`ERR_HTTP_RESPONSE`,n),this.name=`HttpResponseError`,this.response=t}},ph=class extends dh{constructor(e=`Request was cancelled`,t){super(e,`ERR_CANCELLED`,t),this.name=`HttpCancelledError`}},mh=class extends dh{cause;constructor(e,t,n){super(e,`ERR_NETWORK`,t),this.name=`HttpNetworkError`,this.cause=n}};function hh(e){let t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null}function gh(e){let t={};return e.getAllResponseHeaders().split(`\r `).forEach(e=>{let n=e.indexOf(`:`);n>0&&(t[e.slice(0,n).toLowerCase().trim()]=e.slice(n+1).trim())}),t}function _h(e,t){if(!t.headers)return;let n=t.data instanceof FormData;Object.entries(t.headers).forEach(([t,r])=>{(t.toLowerCase()!==`content-type`||!n)&&e.setRequestHeader(t,String(r))})}function vh(e,t){if(!t||Object.keys(t).length===0)return e;let[n]=Km(`get`,e,t);return n}var yh=class{xsrfCookieName;xsrfHeaderName;constructor(e={}){this.xsrfCookieName=e.xsrfCookieName??`XSRF-TOKEN`,this.xsrfHeaderName=e.xsrfHeaderName??`X-XSRF-TOKEN`}async request(e){let t=await uh.processRequest(e);try{let e=await this.doRequest(t);return await uh.processResponse(e)}catch(e){throw(e instanceof fh||e instanceof mh||e instanceof ph)&&await uh.processError(e),e}}doRequest(e){return new Promise((t,n)=>{let r=new XMLHttpRequest,i=vh(e.url,e.params);r.open(e.method.toUpperCase(),i,!0);let a=hh(this.xsrfCookieName);a&&r.setRequestHeader(this.xsrfHeaderName,a);let o=null;e.data!==null&&e.data!==void 0&&(e.data instanceof FormData?o=e.data:typeof e.data==`object`?(o=JSON.stringify(e.data),!e.headers?.[`Content-Type`]&&!e.headers?.[`content-type`]&&r.setRequestHeader(`Content-Type`,`application/json`)):o=String(e.data)),_h(r,e),e.onUploadProgress&&(r.upload.onprogress=t=>{let n=t.lengthComputable?t.loaded/t.total:void 0;e.onUploadProgress({progress:n,percentage:n?Math.round(n*100):0,loaded:t.loaded,total:t.lengthComputable?t.total:void 0})}),e.signal&&e.signal.addEventListener(`abort`,()=>r.abort()),r.onabort=()=>n(new ph(`Request was cancelled`,e.url)),r.onerror=()=>n(new mh(`Network error`,e.url)),r.onload=()=>{let i={status:r.status,data:r.responseText,headers:gh(r)};r.status>=400?n(new fh(`Request failed with status ${r.status}`,i,e.url)):t(i)},r.send(o)})}},bh=new yh;function xh(e){return!(`request`in e)}var Sh={getClient(){return bh},setClient(e){if(!xh(e)){bh=e;return}bh=new yh(e),e.xsrfCookieName&&Op.withXsrfCookieName(e.xsrfCookieName),e.xsrfHeaderName&&Op.withXsrfHeaderName(e.xsrfHeaderName)},onRequest:uh.onRequest.bind(uh),onResponse:uh.onResponse.bind(uh),onError:uh.onError.bind(uh),processRequest:uh.processRequest.bind(uh),processResponse:uh.processResponse.bind(uh),processError:uh.processError.bind(uh)},Ch=class e{callbacks=[];params;constructor(e){if(!e.prefetch)this.params=e;else{let t={onBefore:this.wrapCallback(e,`onBefore`),onBeforeUpdate:this.wrapCallback(e,`onBeforeUpdate`),onStart:this.wrapCallback(e,`onStart`),onProgress:this.wrapCallback(e,`onProgress`),onFinish:this.wrapCallback(e,`onFinish`),onCancel:this.wrapCallback(e,`onCancel`),onSuccess:this.wrapCallback(e,`onSuccess`),onError:this.wrapCallback(e,`onError`),onHttpException:this.wrapCallback(e,`onHttpException`),onNetworkError:this.wrapCallback(e,`onNetworkError`),onFlash:this.wrapCallback(e,`onFlash`),onCancelToken:this.wrapCallback(e,`onCancelToken`),onPrefetched:this.wrapCallback(e,`onPrefetched`),onPrefetching:this.wrapCallback(e,`onPrefetching`)};this.params={...e,...t,onPrefetchResponse:e.onPrefetchResponse||(()=>{}),onPrefetchError:e.onPrefetchError||(()=>{})}}}static create(t){return new e(t)}data(){return this.params.method===`get`?null:this.params.data}queryParams(){return this.params.method===`get`?this.params.data:{}}isPartial(){return this.params.only.length>0||this.params.except.length>0||this.params.reset.length>0}isPrefetch(){return this.params.prefetch===!0}isDeferredPropsRequest(){return this.params.deferredProps===!0}onCancelToken(e){this.params.onCancelToken({cancel:e})}markAsFinished(){this.params.completed=!0,this.params.cancelled=!1,this.params.interrupted=!1}markAsCancelled({cancelled:e=!0,interrupted:t=!1}){this.params.onCancel(),this.params.completed=!1,this.params.cancelled=e,this.params.interrupted=t}wasCancelledAtAll(){return this.params.cancelled||this.params.interrupted}onFinish(){this.params.onFinish(this.params)}onStart(){this.params.onStart(this.params)}onPrefetching(){this.params.onPrefetching(this.params)}onPrefetchResponse(e){this.params.onPrefetchResponse&&this.params.onPrefetchResponse(e)}onPrefetchError(e){this.params.onPrefetchError&&this.params.onPrefetchError(e)}all(){return this.params}headers(){let e={...this.params.headers};this.isPartial()&&(e[`X-Inertia-Partial-Component`]=V.get().component);let t=this.params.only.concat(this.params.reset);return t.length>0&&(e[`X-Inertia-Partial-Data`]=t.join(`,`)),this.params.except.length>0&&(e[`X-Inertia-Partial-Except`]=this.params.except.join(`,`)),this.params.reset.length>0&&(e[`X-Inertia-Reset`]=this.params.reset.join(`,`)),this.params.errorBag&&this.params.errorBag.length>0&&(e[`X-Inertia-Error-Bag`]=this.params.errorBag),e}setPreserveOptions(t){this.params.preserveScroll=e.resolvePreserveOption(this.params.preserveScroll,t),this.params.preserveState=e.resolvePreserveOption(this.params.preserveState,t)}runCallbacks(){this.callbacks.forEach(({name:e,args:t})=>{this.params[e](...t)})}merge(e){this.params={...this.params,...e}}wrapCallback(e,t){return(...n)=>{this.recordCallback(t,n),e[t](...n)}}recordCallback(e,t){this.callbacks.push({name:e,args:t})}static resolvePreserveOption(e,t){return typeof e==`function`?e(t):e===`errors`?Object.keys(t.props.errors||{}).length>0:e}},wh={createIframeAndPage(e){typeof e==`object`&&(e=`All Inertia requests must receive a valid Inertia response, however a plain JSON response was received.
${JSON.stringify(e)}`);let t=document.createElement(`html`);t.innerHTML=e,t.querySelectorAll(`a`).forEach(e=>e.setAttribute(`target`,`_top`));let n=document.createElement(`iframe`);return n.style.backgroundColor=`white`,n.style.borderRadius=`5px`,n.style.width=`100%`,n.style.height=`100%`,{iframe:n,page:t}},show(e){let{iframe:t,page:n}=this.createIframeAndPage(e);t.style.boxSizing=`border-box`,t.style.display=`block`;let r=document.createElement(`dialog`);r.id=`inertia-error-dialog`,Object.assign(r.style,{width:`calc(100vw - 100px)`,height:`calc(100vh - 100px)`,padding:`0`,margin:`auto`,border:`none`,backgroundColor:`transparent`});let i=document.createElement(`style`);if(i.textContent=` dialog#inertia-error-dialog::backdrop { background-color: rgba(0, 0, 0, 0.6); diff --git a/resources/build/assets/AppLayout.css b/resources/build/assets/AppLayout.css index 582e321180c..24319a2ff59 100644 --- a/resources/build/assets/AppLayout.css +++ b/resources/build/assets/AppLayout.css @@ -1 +1 @@ -.system-info[data-v-d8aced2c]{gap:var(--c-spacing-md);color:currentColor;grid-template-columns:2rem auto;align-items:center;display:grid}.system-info__icon[data-v-d8aced2c]{aspect-ratio:1}[data-v-d8aced2c] svg{fill:currentColor;max-width:100%;height:auto}.nav-indicator[data-v-2115cac3]{--nav-item-indicator-size:calc(4rem / 16);width:var(--nav-item-indicator-size);border-radius:var(--c-radius-full);aspect-ratio:1;background-color:currentColor;display:inline-flex}.nav-indicator[active][data-v-2115cac3]{--nav-item-indicator-size:calc(6rem / 16)}.edition-logo[data-v-f8b4ece7]{-webkit-user-select:none;user-select:none;box-sizing:content-box;letter-spacing:1.7px;text-transform:uppercase;border:1px solid;border-radius:3px;padding-block:6px;padding-inline:7px 5px;font-size:11px;font-weight:600;line-height:8px;display:inline-flex}.dev-mode[data-v-52fa7a33]{padding:calc(var(--spacing) * 2);text-align:center;background-image:repeating-linear-gradient(-45deg, transparent, transparent 12px, var(--color-yellow-400) 12px, var(--color-yellow-400) 20px);background-color:var(--color-slate-900)}.cp-sidebar[data-v-c4268663]{height:100%;width:var(--global-sidebar-width);background-color:var(--c-surface-overlay);grid-template-rows:minmax(0,auto) 1fr minmax(0,auto);display:grid}.cp-sidebar[data-mode=docked][data-v-c4268663]{transform:0;position:relative}.cp-sidebar[data-mode=floating][data-v-c4268663]{border-radius:0 var(--c-radius-md) var(--c-radius-md) 0;box-shadow:var(--c-shadow-lg);z-index:100;max-width:90%;transition:transform .2s cubic-bezier(0,.55,.45,1);position:fixed;inset-block:0;inset-inline:0 auto;transform:translate(0)}.cp-sidebar[data-visibility=hidden][data-v-c4268663]{transform:translate(-100%)}.cp-sidebar__body[data-v-c4268663]{padding-block:var(--c-spacing-md);padding-inline:var(--c-spacing-md)}.sidebar-header[data-v-c4268663]{padding-block:var(--c-spacing-md);padding-inline:var(--c-spacing-md);justify-content:space-between;align-items:center;display:flex}.cp-sidebar__body[data-v-c4268663]{background-color:#0000;background-image:linear-gradient(#fff 30%,#fff0),linear-gradient(#fff0,#fff 70%),linear-gradient(#0000001a,#0000),linear-gradient(#0000,#0000001a);background-position:top,bottom,top,bottom;background-repeat:no-repeat;background-size:100% 2.5rem,100% 2.5rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;overflow-y:scroll}.breadcrumbs[data-v-9d4a3cfc]{display:flex}.breadcrumb-item--active[data-v-9d4a3cfc]{color:currentColor;font-weight:700}.separator[data-v-9d4a3cfc]{padding:0 var(--c-spacing-md)}.cp[data-v-af8bc5be]{display:grid}.cp__main[data-v-af8bc5be]{padding-block-end:var(--c-spacing-2xl);container-type:size}.cp__header[data-v-af8bc5be]{color:var(--color-slate-200);background-color:var(--color-slate-950)}.container[data-v-af8bc5be]{max-width:var(--global-content-width);padding-inline:var(--c-spacing-lg);margin:0 auto}.container--full[data-v-af8bc5be]{max-width:none}@media screen and (width>=1024px){.cp[data-v-af8bc5be]{grid-template-columns:var(--c87de578) minmax(0, 1fr);grid-template-rows:auto 1fr;grid-template-areas:"header header""sidebar main";width:100%;height:100%;min-height:100vh;position:fixed;inset:0}.cp__header[data-v-af8bc5be]{grid-area:header}.cp__sidebar[data-v-af8bc5be]{grid-area:sidebar}.cp__main[data-v-af8bc5be]{grid-area:main;overflow:auto}} +.system-info[data-v-d8aced2c]{gap:var(--c-spacing-md);color:currentColor;grid-template-columns:2rem auto;align-items:center;display:grid}.system-info__icon[data-v-d8aced2c]{aspect-ratio:1}[data-v-d8aced2c] svg{fill:currentColor;max-width:100%;height:auto}.nav-indicator[data-v-2115cac3]{--nav-item-indicator-size:calc(4rem / 16);width:var(--nav-item-indicator-size);border-radius:var(--c-radius-full);aspect-ratio:1;background-color:currentColor;display:inline-flex}.nav-indicator[active][data-v-2115cac3]{--nav-item-indicator-size:calc(6rem / 16)}.edition-logo[data-v-f8b4ece7]{-webkit-user-select:none;user-select:none;box-sizing:content-box;letter-spacing:1.7px;text-transform:uppercase;border:1px solid;border-radius:3px;padding-block:6px;padding-inline:7px 5px;font-size:11px;font-weight:600;line-height:8px;display:inline-flex}.dev-mode[data-v-52fa7a33]{padding:calc(var(--spacing) * 2);text-align:center;background-image:repeating-linear-gradient(-45deg, transparent, transparent 12px, var(--color-yellow-400) 12px, var(--color-yellow-400) 20px);background-color:var(--color-slate-900)}.cp-sidebar[data-v-c4268663]{height:100%;width:var(--global-sidebar-width);background-color:var(--c-surface-overlay);grid-template-rows:minmax(0,auto) 1fr minmax(0,auto);display:grid}.cp-sidebar[data-mode=docked][data-v-c4268663]{transform:0;position:relative}.cp-sidebar[data-mode=floating][data-v-c4268663]{border-radius:0 var(--c-radius-md) var(--c-radius-md) 0;box-shadow:var(--c-shadow-lg);z-index:100;max-width:90%;transition:transform .2s cubic-bezier(0,.55,.45,1);position:fixed;inset-block:0;inset-inline:0 auto;transform:translate(0)}.cp-sidebar[data-visibility=hidden][data-v-c4268663]{transform:translate(-100%)}.cp-sidebar__body[data-v-c4268663]{padding-block:var(--c-spacing-md);padding-inline:var(--c-spacing-md)}.sidebar-header[data-v-c4268663]{padding-block:var(--c-spacing-md);padding-inline:var(--c-spacing-md);justify-content:space-between;align-items:center;display:flex}.cp-sidebar__body[data-v-c4268663]{background-color:#0000;background-image:linear-gradient(#fff 30%,#fff0),linear-gradient(#fff0,#fff 70%),linear-gradient(#0000001a,#0000),linear-gradient(#0000,#0000001a);background-position:top,bottom,top,bottom;background-repeat:no-repeat;background-size:100% 2.5rem,100% 2.5rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-origin:padding-box,padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box,border-box;overflow-y:scroll}.breadcrumbs[data-v-9d4a3cfc]{display:flex}.breadcrumb-item--active[data-v-9d4a3cfc]{color:currentColor;font-weight:700}.separator[data-v-9d4a3cfc]{padding:0 var(--c-spacing-md)}craft-action-item[data-v-a3876157]{min-width:200px}.user-thumbnail[data-v-7c22e181]{background-color:var(--c-color-fill-loud)}[data-v-7c22e181] svg{width:100%;height:100%}.cp[data-v-9d0f9857]{display:grid}.cp__main[data-v-9d0f9857]{padding-block-end:var(--c-spacing-2xl);container-type:size}.cp__header[data-v-9d0f9857]{color:var(--color-slate-200);background-color:var(--color-slate-950)}.container[data-v-9d0f9857]{max-width:var(--global-content-width);padding-inline:var(--c-spacing-lg);margin:0 auto}.container--full[data-v-9d0f9857]{max-width:none}@media screen and (width>=1024px){.cp[data-v-9d0f9857]{grid-template-columns:var(--v69576e02) minmax(0, 1fr);grid-template-rows:auto 1fr;grid-template-areas:"header header""sidebar main";width:100%;height:100%;min-height:100vh;position:fixed;inset:0}.cp__header[data-v-9d0f9857]{grid-area:header}.cp__sidebar[data-v-9d0f9857]{grid-area:sidebar}.cp__main[data-v-9d0f9857]{grid-area:main;overflow:auto}} diff --git a/resources/build/assets/InputCombobox.css b/resources/build/assets/InputCombobox.css index 9ba7212267b..cb65c41b36a 100644 --- a/resources/build/assets/InputCombobox.css +++ b/resources/build/assets/InputCombobox.css @@ -1 +1 @@ -.group-label[data-v-edae8701]{padding:var(--c-spacing-sm);text-transform:uppercase;padding-inline:var(--c-spacing-md);padding-block:var(--c-spacing-sm);color:var(--c-color-neutral-on-normal);border-bottom:1px solid var(--c-color-neutral-border-quiet);font-size:.8em}.input[data-v-edae8701]{border-radius:var(--c-input-radius,var(--c-radius-sm));width:100%;min-height:var(--c-input-height,var(--c-size-control-md));appearance:none;border:0;padding-block:0;padding-inline:0}.input[data-v-edae8701]:focus{outline:none}.options[data-v-edae8701]{padding:var(--c-spacing-sm);max-height:calc(var(--c-spacing) * 60);border-radius:var(--c-radius-md);box-shadow:var(--c-shadow-sm);background-color:var(--c-surface-overlay);border:1px solid var(--c-color-neutral-border-quiet);z-index:40;gap:var(--c-spacing-1px);width:100%;max-width:100%;margin-block-start:var(--c-spacing-1px);display:grid;overflow:auto}.options[data-v-edae8701]:nth-child(2n){background-color:var(--c-color-neutral-fill-quiet)} +.group-label[data-v-b00ef27e]{padding:var(--c-spacing-sm);text-transform:uppercase;padding-inline:var(--c-spacing-md);padding-block:var(--c-spacing-sm);color:var(--c-color-neutral-on-normal);border-bottom:1px solid var(--c-color-neutral-border-quiet);font-size:.8em}.input[data-v-b00ef27e]{border-radius:var(--c-input-radius,var(--c-radius-sm));width:100%;min-height:var(--c-input-height,var(--c-size-control-md));appearance:none;border:0;padding-block:0;padding-inline:0}.input[data-v-b00ef27e]:focus{outline:none}.options[data-v-b00ef27e]{padding:var(--c-spacing-sm);max-height:calc(var(--c-spacing) * 60);border-radius:var(--c-radius-md);box-shadow:var(--c-shadow-sm);background-color:var(--c-surface-overlay);border:1px solid var(--c-color-neutral-border-quiet);z-index:40;gap:var(--c-spacing-1px);width:100%;max-width:100%;margin-block-start:var(--c-spacing-1px);display:grid;overflow:auto}.options[data-v-b00ef27e]:nth-child(2n){background-color:var(--c-color-neutral-fill-quiet)} diff --git a/resources/build/assets/SettingsSectionsEditPage.css b/resources/build/assets/SettingsSectionsEditPage.css index 19fc4e8ff4f..cc5fad92548 100644 --- a/resources/build/assets/SettingsSectionsEditPage.css +++ b/resources/build/assets/SettingsSectionsEditPage.css @@ -1 +1 @@ -craft-action-item[data-v-3697a5e3],craft-chip[data-v-69cf6612]::part(chip){min-width:200px}craft-chip[data-v-69cf6612]::part(prefix){justify-content:center;align-self:start;height:1lh} +craft-chip[data-v-548c3575]::part(chip){min-width:200px}craft-chip[data-v-548c3575]::part(prefix){justify-content:center;align-self:start;height:1lh} diff --git a/resources/build/assets/SettingsSitesIndex.css b/resources/build/assets/SettingsSitesIndex.css index 9a16c6cdba5..2cc11fba48d 100644 --- a/resources/build/assets/SettingsSitesIndex.css +++ b/resources/build/assets/SettingsSitesIndex.css @@ -1 +1 @@ -.interior[data-v-87fd6160]{gap:var(--c-spacing-md);grid-template-columns:minmax(7.5rem,16%) 1fr;align-items:start;display:grid}.title[data-v-87fd6160]{align-items:center;gap:var(--c-spacing-md);display:flex}.separator[data-v-87fd6160]{opacity:.5;font-size:.8em;font-weight:400} +.interior[data-v-731ee9fc]{gap:var(--c-spacing-md);grid-template-columns:minmax(7.5rem,16%) 1fr;align-items:start;display:grid}.title[data-v-731ee9fc]{align-items:center;gap:var(--c-spacing-md);display:flex}.separator[data-v-731ee9fc]{opacity:.5;font-size:.8em;font-weight:400} diff --git a/resources/build/assets/cp.css b/resources/build/assets/cp.css index d3d445aa086..fe1b107258e 100644 --- a/resources/build/assets/cp.css +++ b/resources/build/assets/cp.css @@ -1,2 +1,2 @@ /*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-50:oklch(98.6% .031 120.757);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-900:oklch(40.5% .101 131.063);--color-lime-950:oklch(27.4% .072 132.109);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-teal-950:oklch(27.7% .046 192.524);--color-cyan-50:oklch(98.4% .019 200.873);--color-cyan-100:oklch(95.6% .045 203.388);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-900:oklch(39.8% .07 227.392);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-fuchsia-50:oklch(97.7% .017 320.058);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-400:oklch(74% .238 322.16);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-900:oklch(40.1% .17 325.612);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-600:oklch(59.2% .249 .584);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-800:oklch(45.9% .187 3.815);--color-pink-900:oklch(40.8% .153 2.432);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--leading-normal:1.5;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--inset-shadow-sm:inset 0 2px 4px #0000000d;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--color-border-subtle:var(--c-color-neutral-border-quiet)}}@layer base,components;@layer cp{@layer preflight{*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}ol,ul,menu{list-style:none}img{max-width:100%;height:auto;display:flex}}@layer theme{:root,:host{--color-gray-50:#eaecef;--color-gray-100:#d4d7dd;--color-gray-200:#c2c6ce;--color-gray-300:#9ba1ae;--color-gray-400:#888e9c;--color-gray-500:#757b8a;--color-gray-600:#626978;--color-gray-700:#4f5665;--color-gray-800:#3e4555;--color-gray-900:#2e3545;--color-gray-950:#1e2635;--color-red-50:#fae8e8;--color-red-100:#f6cdcc;--color-red-200:#f4b6b4;--color-red-300:#ee817e;--color-red-400:#e8645f;--color-red-500:#dc463e;--color-red-600:#c72c22;--color-red-700:#a32720;--color-red-800:#80231f;--color-red-900:#631b18;--color-red-950:#4b110f;--color-orange-50:#fbead2;--color-orange-100:#f7d0a1;--color-orange-200:#f4ba7c;--color-orange-300:#ed8633;--color-orange-400:#e6692c;--color-orange-500:#d45124;--color-orange-600:#b5441d;--color-orange-700:#963816;--color-orange-800:#792c12;--color-orange-900:#5e220e;--color-orange-950:#44180b;--color-amber-50:#fbecaf;--color-amber-100:#f7d36f;--color-amber-200:#f4bd44;--color-amber-300:#df8e32;--color-amber-400:#ca7c2c;--color-amber-500:#b56825;--color-amber-600:#a0551e;--color-amber-700:#8a4217;--color-amber-800:#703411;--color-amber-900:#58270b;--color-amber-950:#411b06;--color-emerald-50:#cff6e1;--color-emerald-100:#9ae7be;--color-emerald-200:#77d9a6;--color-emerald-300:#51b37f;--color-emerald-400:#479e70;--color-emerald-500:#3d8961;--color-emerald-600:#327555;--color-emerald-700:#286048;--color-emerald-800:#1e4d3c;--color-emerald-900:#173b2e;--color-emerald-950:#112a21;--color-blue-50:#e2edfd;--color-blue-100:#c1d9fb;--color-blue-200:#a5c8fa;--color-blue-300:#68a2f7;--color-blue-400:#518cf6;--color-blue-500:#3e74f2;--color-blue-600:#305ce7;--color-blue-700:#2244d7;--color-blue-800:#2138a7;--color-blue-900:#1d2d7a;--color-blue-950:#192250;--color-yellow-50:#fcef90;--color-yellow-100:#f7d358;--color-yellow-200:#eebf40;--color-yellow-300:#ce9733;--color-yellow-400:#bd822c;--color-yellow-500:#aa6f24;--color-yellow-600:#945c1d;--color-yellow-700:#7c4b16;--color-yellow-800:#633c12;--color-yellow-900:#4c2e0e;--color-yellow-950:#37210a;--color-slate-50:#e9eef3;--color-slate-100:#ced7e2;--color-slate-200:#bdc7d4;--color-slate-300:#95a2b4;--color-slate-400:#828fa4;--color-slate-500:#6f7c94;--color-slate-600:#5c6982;--color-slate-700:#4a576d;--color-slate-800:#3a455a;--color-slate-900:#2b3549;--color-slate-950:#1e2637;--color-lime-50:#ddf7a2;--color-lime-100:#b4e758;--color-lime-200:#9ed742;--color-lime-300:#7ab034;--color-lime-400:#6a9c2d;--color-lime-500:#5d8726;--color-lime-600:#50731f;--color-lime-700:#435e18;--color-lime-800:#344c13;--color-lime-900:#273a0e;--color-lime-950:#1b2a09;--color-green-50:#cef7d8;--color-green-100:#96e9a8;--color-green-200:#6add82;--color-green-300:#52b555;--color-green-400:#48a04a;--color-green-500:#3e8b42;--color-green-600:#34763b;--color-green-700:#2b6133;--color-green-800:#234e2b;--color-green-900:#1b3b21;--color-green-950:#142b18;--color-teal-50:#c7f7ec;--color-teal-100:#90e7d6;--color-teal-200:#6dd7c4;--color-teal-300:#4fb0a1;--color-teal-400:#459c90;--color-teal-500:#3b877f;--color-teal-600:#31736d;--color-teal-700:#275f5b;--color-teal-800:#1e4c49;--color-teal-900:#163a39;--color-teal-950:#0f2a2a;--color-cyan-50:#c9f5fc;--color-cyan-100:#7fe6fa;--color-cyan-200:#66d4f1;--color-cyan-300:#4dacce;--color-cyan-400:#4397bb;--color-cyan-500:#3983a5;--color-cyan-600:#2f6f8d;--color-cyan-700:#265c74;--color-cyan-800:#1e4a5e;--color-cyan-900:#17384b;--color-cyan-950:#102836;--color-sky-50:#dceffc;--color-sky-100:#aaddfb;--color-sky-200:#84cefa;--color-sky-300:#4ca8eb;--color-sky-400:#4193d9;--color-sky-500:#377fc5;--color-sky-600:#2e6ca7;--color-sky-700:#25598a;--color-sky-800:#1d476f;--color-sky-900:#163655;--color-sky-950:#10273e;--color-zinc-50:#ededee;--color-zinc-100:#d6d6da;--color-zinc-200:#c5c5ca;--color-zinc-300:#a0a0a7;--color-zinc-400:#8d8d95;--color-zinc-500:#7b7b83;--color-zinc-600:#686872;--color-zinc-700:#55555f;--color-zinc-800:#44444c;--color-zinc-900:#34343b;--color-zinc-950:#25252b;--color-violet-50:#eeebfd;--color-violet-100:#d8d2fb;--color-violet-200:#c9bdfa;--color-violet-300:#a991f8;--color-violet-400:#9979f7;--color-violet-500:#8b5df5;--color-violet-600:#7c3cf4;--color-violet-700:#6a1be3;--color-violet-800:#5518b5;--color-violet-900:#401889;--color-violet-950:#2d0f69;--color-purple-50:#f2eafd;--color-purple-100:#e2cefb;--color-purple-200:#d6b9f9;--color-purple-300:#be88f8;--color-purple-400:#b16df7;--color-purple-500:#a24ff6;--color-purple-600:#902bf2;--color-purple-700:#7815d6;--color-purple-800:#6118a6;--color-purple-900:#4b167c;--color-purple-950:#380963;--color-fuchsia-50:#f7e7fd;--color-fuchsia-100:#eecafb;--color-fuchsia-200:#e9b2f9;--color-fuchsia-300:#dd78f7;--color-fuchsia-400:#d15bed;--color-fuchsia-500:#c23be0;--color-fuchsia-600:#ac22c8;--color-fuchsia-700:#8e1ea3;--color-fuchsia-800:#721c7f;--color-fuchsia-900:#571861;--color-fuchsia-950:#401146;--color-pink-50:#f9e7f2;--color-pink-100:#f4cbe4;--color-pink-200:#f1b3d8;--color-pink-300:#eb7bba;--color-pink-400:#e65ba6;--color-pink-500:#db3b88;--color-pink-600:#c2296a;--color-pink-700:#a22054;--color-pink-800:#801d44;--color-pink-900:#631735;--color-pink-950:#481127;--color-rose-50:#fbe8ea;--color-rose-100:#f7ccd0;--color-rose-200:#f3b6bd;--color-rose-300:#ee7f8f;--color-rose-400:#ec5e74;--color-rose-500:#e43852;--color-rose-600:#c7293f;--color-rose-700:#a52138;--color-rose-800:#851930;--color-rose-900:#681225;--color-rose-950:#4e0b1b;--color-neutral-50:#ededed;--color-neutral-100:#d7d7d7;--color-neutral-200:#c5c5c5;--color-neutral-300:#a0a0a0;--color-neutral-400:#8e8e8e;--color-neutral-500:#7c7c7c;--color-neutral-600:#686868;--color-neutral-700:#565656;--color-neutral-800:#444;--color-neutral-900:#343434;--color-neutral-950:#262626;--color-stone-50:#eeedec;--color-stone-100:#d8d7d5;--color-stone-200:#c8c5c2;--color-stone-300:#a4a09b;--color-stone-400:#928e88;--color-stone-500:#807a75;--color-stone-600:#6d6862;--color-stone-700:#5a5550;--color-stone-800:#48443f;--color-stone-900:#373430;--color-stone-950:#282523;--color-indigo-50:#e7ebfd;--color-indigo-100:#cfd5fb;--color-indigo-200:#bbc2fa;--color-indigo-300:#9198f8;--color-indigo-400:#7b83f6;--color-indigo-500:#6b6cec;--color-indigo-600:#5a54e1;--color-indigo-700:#483bd6;--color-indigo-800:#3a2eaf;--color-indigo-900:#2e2681;--color-indigo-950:#221e56;--color-base-50:#fff;--color-base-100:#f2f5f8;--color-base-200:#dae1e9;--color-base-300:#c8d2de;--color-base-400:#a6b1c1;--color-base-500:#6c7a92;--color-base-600:#5d6a83;--color-base-700:#4d5970;--color-base-800:#313c50;--color-base-900:#1f283b;--color-base-950:#0f141c;--color-static-gray-50:#eaecef;--color-static-gray-100:#d4d7dd;--color-static-gray-200:#c2c6ce;--color-static-gray-300:#9ba1ae;--color-static-gray-400:#888e9c;--color-static-gray-500:#757b8a;--color-static-gray-600:#626978;--color-static-gray-700:#4f5665;--color-static-gray-800:#3e4555;--color-static-gray-900:#2e3545;--color-static-gray-950:#1e2635;--color-static-red-50:#fae8e8;--color-static-red-100:#f6cdcc;--color-static-red-200:#f4b6b4;--color-static-red-300:#ee817e;--color-static-red-400:#e8645f;--color-static-red-500:#dc463e;--color-static-red-600:#c72c22;--color-static-red-700:#a32720;--color-static-red-800:#80231f;--color-static-red-900:#631b18;--color-static-red-950:#4b110f;--color-static-orange-50:#fbead2;--color-static-orange-100:#f7d0a1;--color-static-orange-200:#f4ba7c;--color-static-orange-300:#ed8633;--color-static-orange-400:#e6692c;--color-static-orange-500:#d45124;--color-static-orange-600:#b5441d;--color-static-orange-700:#963816;--color-static-orange-800:#792c12;--color-static-orange-900:#5e220e;--color-static-orange-950:#44180b;--color-static-amber-50:#fbecaf;--color-static-amber-100:#f7d36f;--color-static-amber-200:#f4bd44;--color-static-amber-300:#df8e32;--color-static-amber-400:#ca7c2c;--color-static-amber-500:#b56825;--color-static-amber-600:#a0551e;--color-static-amber-700:#8a4217;--color-static-amber-800:#703411;--color-static-amber-900:#58270b;--color-static-amber-950:#411b06;--color-static-emerald-50:#cff6e1;--color-static-emerald-100:#9ae7be;--color-static-emerald-200:#77d9a6;--color-static-emerald-300:#51b37f;--color-static-emerald-400:#479e70;--color-static-emerald-500:#3d8961;--color-static-emerald-600:#327555;--color-static-emerald-700:#286048;--color-static-emerald-800:#1e4d3c;--color-static-emerald-900:#173b2e;--color-static-emerald-950:#112a21;--color-static-blue-50:#e2edfd;--color-static-blue-100:#c1d9fb;--color-static-blue-200:#a5c8fa;--color-static-blue-300:#68a2f7;--color-static-blue-400:#518cf6;--color-static-blue-500:#3e74f2;--color-static-blue-600:#305ce7;--color-static-blue-700:#2244d7;--color-static-blue-800:#2138a7;--color-static-blue-900:#1d2d7a;--color-static-blue-950:#192250;--color-static-yellow-50:#fcef90;--color-static-yellow-100:#f7d358;--color-static-yellow-200:#eebf40;--color-static-yellow-300:#ce9733;--color-static-yellow-400:#bd822c;--color-static-yellow-500:#aa6f24;--color-static-yellow-600:#945c1d;--color-static-yellow-700:#7c4b16;--color-static-yellow-800:#633c12;--color-static-yellow-900:#4c2e0e;--color-static-yellow-950:#37210a;--color-static-slate-50:#e9eef3;--color-static-slate-100:#ced7e2;--color-static-slate-200:#bdc7d4;--color-static-slate-300:#95a2b4;--color-static-slate-400:#828fa4;--color-static-slate-500:#6f7c94;--color-static-slate-600:#5c6982;--color-static-slate-700:#4a576d;--color-static-slate-800:#3a455a;--color-static-slate-900:#2b3549;--color-static-slate-950:#1e2637;--color-static-lime-50:#ddf7a2;--color-static-lime-100:#b4e758;--color-static-lime-200:#9ed742;--color-static-lime-300:#7ab034;--color-static-lime-400:#6a9c2d;--color-static-lime-500:#5d8726;--color-static-lime-600:#50731f;--color-static-lime-700:#435e18;--color-static-lime-800:#344c13;--color-static-lime-900:#273a0e;--color-static-lime-950:#1b2a09;--color-static-green-50:#cef7d8;--color-static-green-100:#96e9a8;--color-static-green-200:#6add82;--color-static-green-300:#52b555;--color-static-green-400:#48a04a;--color-static-green-500:#3e8b42;--color-static-green-600:#34763b;--color-static-green-700:#2b6133;--color-static-green-800:#234e2b;--color-static-green-900:#1b3b21;--color-static-green-950:#142b18;--color-static-teal-50:#c7f7ec;--color-static-teal-100:#90e7d6;--color-static-teal-200:#6dd7c4;--color-static-teal-300:#4fb0a1;--color-static-teal-400:#459c90;--color-static-teal-500:#3b877f;--color-static-teal-600:#31736d;--color-static-teal-700:#275f5b;--color-static-teal-800:#1e4c49;--color-static-teal-900:#163a39;--color-static-teal-950:#0f2a2a;--color-static-cyan-50:#c9f5fc;--color-static-cyan-100:#7fe6fa;--color-static-cyan-200:#66d4f1;--color-static-cyan-300:#4dacce;--color-static-cyan-400:#4397bb;--color-static-cyan-500:#3983a5;--color-static-cyan-600:#2f6f8d;--color-static-cyan-700:#265c74;--color-static-cyan-800:#1e4a5e;--color-static-cyan-900:#17384b;--color-static-cyan-950:#102836;--color-static-sky-50:#dceffc;--color-static-sky-100:#aaddfb;--color-static-sky-200:#84cefa;--color-static-sky-300:#4ca8eb;--color-static-sky-400:#4193d9;--color-static-sky-500:#377fc5;--color-static-sky-600:#2e6ca7;--color-static-sky-700:#25598a;--color-static-sky-800:#1d476f;--color-static-sky-900:#163655;--color-static-sky-950:#10273e;--color-static-zinc-50:#ededee;--color-static-zinc-100:#d6d6da;--color-static-zinc-200:#c5c5ca;--color-static-zinc-300:#a0a0a7;--color-static-zinc-400:#8d8d95;--color-static-zinc-500:#7b7b83;--color-static-zinc-600:#686872;--color-static-zinc-700:#55555f;--color-static-zinc-800:#44444c;--color-static-zinc-900:#34343b;--color-static-zinc-950:#25252b;--color-static-violet-50:#eeebfd;--color-static-violet-100:#d8d2fb;--color-static-violet-200:#c9bdfa;--color-static-violet-300:#a991f8;--color-static-violet-400:#9979f7;--color-static-violet-500:#8b5df5;--color-static-violet-600:#7c3cf4;--color-static-violet-700:#6a1be3;--color-static-violet-800:#5518b5;--color-static-violet-900:#401889;--color-static-violet-950:#2d0f69;--color-static-purple-50:#f2eafd;--color-static-purple-100:#e2cefb;--color-static-purple-200:#d6b9f9;--color-static-purple-300:#be88f8;--color-static-purple-400:#b16df7;--color-static-purple-500:#a24ff6;--color-static-purple-600:#902bf2;--color-static-purple-700:#7815d6;--color-static-purple-800:#6118a6;--color-static-purple-900:#4b167c;--color-static-purple-950:#380963;--color-static-fuchsia-50:#f7e7fd;--color-static-fuchsia-100:#eecafb;--color-static-fuchsia-200:#e9b2f9;--color-static-fuchsia-300:#dd78f7;--color-static-fuchsia-400:#d15bed;--color-static-fuchsia-500:#c23be0;--color-static-fuchsia-600:#ac22c8;--color-static-fuchsia-700:#8e1ea3;--color-static-fuchsia-800:#721c7f;--color-static-fuchsia-900:#571861;--color-static-fuchsia-950:#401146;--color-static-pink-50:#f9e7f2;--color-static-pink-100:#f4cbe4;--color-static-pink-200:#f1b3d8;--color-static-pink-300:#eb7bba;--color-static-pink-400:#e65ba6;--color-static-pink-500:#db3b88;--color-static-pink-600:#c2296a;--color-static-pink-700:#a22054;--color-static-pink-800:#801d44;--color-static-pink-900:#631735;--color-static-pink-950:#481127;--color-static-rose-50:#fbe8ea;--color-static-rose-100:#f7ccd0;--color-static-rose-200:#f3b6bd;--color-static-rose-300:#ee7f8f;--color-static-rose-400:#ec5e74;--color-static-rose-500:#e43852;--color-static-rose-600:#c7293f;--color-static-rose-700:#a52138;--color-static-rose-800:#851930;--color-static-rose-900:#681225;--color-static-rose-950:#4e0b1b;--color-static-neutral-50:#ededed;--color-static-neutral-100:#d7d7d7;--color-static-neutral-200:#c5c5c5;--color-static-neutral-300:#a0a0a0;--color-static-neutral-400:#8e8e8e;--color-static-neutral-500:#7c7c7c;--color-static-neutral-600:#686868;--color-static-neutral-700:#565656;--color-static-neutral-800:#444;--color-static-neutral-900:#343434;--color-static-neutral-950:#262626;--color-static-stone-50:#eeedec;--color-static-stone-100:#d8d7d5;--color-static-stone-200:#c8c5c2;--color-static-stone-300:#a4a09b;--color-static-stone-400:#928e88;--color-static-stone-500:#807a75;--color-static-stone-600:#6d6862;--color-static-stone-700:#5a5550;--color-static-stone-800:#48443f;--color-static-stone-900:#373430;--color-static-stone-950:#282523;--color-static-indigo-50:#e7ebfd;--color-static-indigo-100:#cfd5fb;--color-static-indigo-200:#bbc2fa;--color-static-indigo-300:#9198f8;--color-static-indigo-400:#7b83f6;--color-static-indigo-500:#6b6cec;--color-static-indigo-600:#5a54e1;--color-static-indigo-700:#483bd6;--color-static-indigo-800:#3a2eaf;--color-static-indigo-900:#2e2681;--color-static-indigo-950:#221e56;--color-static-base-50:#fff;--color-static-base-100:#f2f5f8;--color-static-base-200:#dae1e9;--color-static-base-300:#c8d2de;--color-static-base-400:#a6b1c1;--color-static-base-500:#6c7a92;--color-static-base-600:#5d6a83;--color-static-base-700:#4d5970;--color-static-base-800:#313c50;--color-static-base-900:#1f283b;--color-static-base-950:#0f141c}[data-theme=dark]{--color-gray-50:#3b4252;--color-gray-100:#535a69;--color-gray-200:#626877;--color-gray-300:#717786;--color-gray-400:#828896;--color-gray-500:#949aa8;--color-gray-600:#acb1bc;--color-gray-700:#bcc0c9;--color-gray-800:#d0d4da;--color-gray-900:#e5e6ea;--color-gray-950:#f6f7f9;--color-red-50:#7b221f;--color-red-100:#ab2821;--color-red-200:#c62b22;--color-red-300:#da3e35;--color-red-400:#e55b56;--color-red-500:#ed7775;--color-red-600:#f19997;--color-red-700:#f3afae;--color-red-800:#f6c9c8;--color-red-900:#f9e1e0;--color-red-950:#fdf5f5;--color-orange-50:#732a11;--color-orange-100:#9c3a17;--color-orange-200:#b3441d;--color-orange-300:#cd4e22;--color-orange-400:#e35f29;--color-orange-500:#eb7d31;--color-orange-600:#f19e4d;--color-orange-700:#f4b371;--color-orange-800:#f7cc9b;--color-orange-900:#fae3c4;--color-orange-950:#fdf6eb;--color-amber-50:#6c3210;--color-amber-100:#8f4618;--color-amber-200:#9f541d;--color-amber-300:#b16423;--color-amber-400:#c47529;--color-amber-500:#d88830;--color-amber-600:#f0a038;--color-amber-700:#f3b63f;--color-amber-800:#f7cf67;--color-amber-900:#fae694;--color-amber-950:#fdf7e1;--color-emerald-50:#1d4a3a;--color-emerald-100:#2a654b;--color-emerald-200:#327454;--color-emerald-300:#3a855f;--color-emerald-400:#44986b;--color-emerald-500:#4dac7a;--color-emerald-600:#59c48d;--color-emerald-700:#6bd49e;--color-emerald-800:#94e4ba;--color-emerald-900:#bdf2d5;--color-emerald-950:#eafbf2;--color-blue-50:#20369e;--color-blue-100:#2448de;--color-blue-200:#2f5be7;--color-blue-300:#3b6ff0;--color-blue-400:#4a84f6;--color-blue-500:#609bf7;--color-blue-600:#83b3f8;--color-blue-700:#9dc2f9;--color-blue-800:#bcd5fb;--color-blue-900:#d9e7fc;--color-blue-950:#f3f8fe;--color-yellow-50:#5f3a11;--color-yellow-100:#814f17;--color-yellow-200:#945b1d;--color-yellow-300:#a56a23;--color-yellow-400:#b77c2a;--color-yellow-500:#c99031;--color-yellow-600:#dca839;--color-yellow-700:#eaba3f;--color-yellow-800:#f6d054;--color-yellow-900:#fbe782;--color-yellow-950:#fdf8d0;--color-slate-50:#374257;--color-slate-100:#4e5b71;--color-slate-200:#5c6981;--color-slate-300:#6b7890;--color-slate-400:#7c899f;--color-slate-500:#8f9baf;--color-slate-600:#a6b2c2;--color-slate-700:#b7c1cf;--color-slate-800:#cbd5e0;--color-slate-900:#e1e7ee;--color-slate-950:#f5f7fa;--color-lime-50:#324912;--color-lime-100:#46631a;--color-lime-200:#50721f;--color-lime-300:#5a8324;--color-lime-400:#66962b;--color-lime-500:#74a931;--color-lime-600:#8ac13a;--color-lime-700:#9ad140;--color-lime-800:#aee54d;--color-lime-900:#d2f28e;--color-lime-950:#f2fcd7;--color-green-50:#214a29;--color-green-100:#2d6635;--color-green-200:#34753a;--color-green-300:#3b8740;--color-green-400:#449a47;--color-green-500:#4fae51;--color-green-600:#5ac760;--color-green-700:#63d878;--color-green-800:#8fe7a2;--color-green-900:#bcf3c9;--color-green-950:#ebfbee;--color-teal-50:#1d4946;--color-teal-100:#29635e;--color-teal-200:#31726c;--color-teal-300:#39837b;--color-teal-400:#42968b;--color-teal-500:#4ca99c;--color-teal-600:#58c2b0;--color-teal-700:#63d2c0;--color-teal-800:#8ae4d3;--color-teal-900:#aef4e5;--color-teal-950:#e8fbf6;--color-cyan-50:#1c465a;--color-cyan-100:#276079;--color-cyan-200:#2f6f8c;--color-cyan-300:#377fa0;--color-cyan-400:#4091b5;--color-cyan-500:#4aa5c7;--color-cyan-600:#56bdde;--color-cyan-700:#5fceee;--color-cyan-800:#7be2f8;--color-cyan-900:#b2f1fb;--color-cyan-950:#e5fbfe;--color-sky-50:#1c446a;--color-sky-100:#275d8f;--color-sky-200:#2e6ba5;--color-sky-300:#357bbf;--color-sky-400:#3e8dd4;--color-sky-500:#48a1e5;--color-sky-600:#55b9f9;--color-sky-700:#7ac9fa;--color-sky-800:#a5dbfb;--color-sky-900:#d0eafc;--color-sky-950:#f0f8fe;--color-zinc-50:#414149;--color-zinc-100:#595962;--color-zinc-200:#676771;--color-zinc-300:#777780;--color-zinc-400:#88888f;--color-zinc-500:#9a9aa1;--color-zinc-600:#b1b1b6;--color-zinc-700:#c0c0c5;--color-zinc-800:#d4d4d7;--color-zinc-900:#e6e6e8;--color-zinc-950:#f6f6f7;--color-violet-50:#5118ac;--color-violet-100:#6e20e9;--color-violet-200:#7c3af4;--color-violet-300:#8757f5;--color-violet-400:#9570f6;--color-violet-500:#a389f7;--color-violet-600:#b7a5f9;--color-violet-700:#c5b8f9;--color-violet-800:#d6cefb;--color-violet-900:#e7e3fc;--color-violet-950:#f7f6fe;--color-purple-50:#5c199c;--color-purple-100:#7d18dd;--color-purple-200:#8f2af1;--color-purple-300:#9e48f5;--color-purple-400:#ac65f7;--color-purple-500:#b97ff7;--color-purple-600:#c99ef8;--color-purple-700:#d3b3f9;--color-purple-800:#e0cbfb;--color-purple-900:#ede1fd;--color-purple-950:#f9f5fe;--color-fuchsia-50:#6d1c79;--color-fuchsia-100:#951eab;--color-fuchsia-200:#ab22c6;--color-fuchsia-300:#be34dd;--color-fuchsia-400:#cd51e9;--color-fuchsia-500:#da6df5;--color-fuchsia-600:#e392f8;--color-fuchsia-700:#e8aaf9;--color-fuchsia-800:#edc6fa;--color-fuchsia-900:#f4dffc;--color-fuchsia-950:#fbf5fe;--color-pink-50:#7a1d42;--color-pink-100:#a92259;--color-pink-200:#c12869;--color-pink-300:#d73681;--color-pink-400:#e4509e;--color-pink-500:#e971b5;--color-pink-600:#ee95c8;--color-pink-700:#f0acd4;--color-pink-800:#f3c7e2;--color-pink-900:#f7e0ee;--color-pink-950:#fcf5f9;--color-rose-50:#80172e;--color-rose-100:#ac2239;--color-rose-200:#c6293f;--color-rose-300:#df344c;--color-rose-400:#eb526b;--color-rose-500:#ee7586;--color-rose-600:#f098a3;--color-rose-700:#f2afb6;--color-rose-800:#f6c8cd;--color-rose-900:#f9e0e3;--color-rose-950:#fdf5f5;--color-neutral-50:#424242;--color-neutral-100:#5a5a5a;--color-neutral-200:#686868;--color-neutral-300:#777;--color-neutral-400:#888;--color-neutral-500:#9a9a9a;--color-neutral-600:#b0b0b0;--color-neutral-700:silver;--color-neutral-800:#d4d4d4;--color-neutral-900:#e6e6e6;--color-neutral-950:#f6f6f6;--color-stone-50:#45423d;--color-stone-100:#5e5954;--color-stone-200:#6d6761;--color-stone-300:#7c7771;--color-stone-400:#8d8782;--color-stone-500:#9e9a95;--color-stone-600:#b4b0ac;--color-stone-700:#c3c0bd;--color-stone-800:#d5d3d1;--color-stone-900:#e7e6e5;--color-stone-950:#f7f7f6;--color-indigo-50:#372da6;--color-indigo-100:#4c41d9;--color-indigo-200:#5a54e1;--color-indigo-300:#6767ea;--color-indigo-400:#777cf3;--color-indigo-500:#8a91f8;--color-indigo-600:#a4abf9;--color-indigo-700:#b6bcfa;--color-indigo-800:#cbd2fb;--color-indigo-900:#e0e5fc;--color-indigo-950:#f5f7fe;--color-base-50:#273043;--color-base-100:#333d51;--color-base-200:#3e495e;--color-base-300:#475369;--color-base-400:#5d6a82;--color-base-500:#919db0;--color-base-600:#a5b0c1;--color-base-700:#bec9d5;--color-base-800:#f5f7fa;--color-base-900:#fff;--color-base-950:#fff}:root,:host{--c-text-lg:calc(16rem / 16);--c-text-base:calc(14rem / 16);--c-text-sm:calc(11rem / 16);--c-text-xs:calc(9rem / 16);--c-leading-normal:1.42;--c-surface-default:var(--color-base-100);--c-surface-raised:var(--color-base-50);--c-surface-sunken:var(--color-slate-200);--c-surface-form:var(--color-base-100);--c-surface-overlay:var(--color-base-50);--c-text-white:var(--color-white);--c-text-default:var(--color-slate-900);--c-text-quiet:var(--color-slate-600);--c-text-link:var(--color-blue-600);--c-shadow-sunken:var(--inset-shadow-sm);--c-shadow-raised:var(--shadow-sm);--c-shadow-overlay:var(--shadow-lg);--c-color-mix-hover:currentColor 10%;--c-color-mix-active:currentColor 20%;--c-font-body:system-ui, BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--c-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--c-radius-sm:3px;--c-radius-md:4px;--c-radius-lg:6px;--c-radius-xl:12px;--c-radius-full:calc(Infinity * 1px);--c-spacing:.25rem;--c-spacing-1px:1px;--c-spacing-xs:calc(var(--c-spacing) * .5);--c-spacing-sm:calc(var(--c-spacing) * 1);--c-spacing-md:calc(var(--c-spacing) * 2);--c-spacing-lg:calc(var(--c-spacing) * 4);--c-spacing-xl:calc(var(--c-spacing) * 8);--c-spacing-2xl:calc(var(--c-spacing) * 16);--c-size-touch-target:calc(34rem / 16);--c-size-icon-xs:calc(10rem / 16);--c-size-icon-sm:calc(12rem / 16);--c-size-icon-md:calc(14rem / 16);--c-size-icon-lg:calc(22rem / 16);--c-size-icon-xl:calc(30rem / 16);--c-size-control-xs:calc(16rem / 16);--c-size-control-sm:calc(24rem / 16);--c-size-control-md:calc(34rem / 16);--c-size-control-lg:calc(44rem / 16);--c-shadow-2xs:0 1px #0000000d;--c-shadow-xs:0 1px 2px 0 #0000000d;--c-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--c-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--c-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--c-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--c-shadow-2xl:0 25px 50px -12px #00000040;--c-status-live-fill:var(--color-emerald-500);--c-status-live-border:var(--color-emerald-700);--c-status-live-text:var(--color-emerald-700);--c-status-enabled-fill:var(--color-emerald-500);--c-status-enabled-border:var(--color-emerald-700);--c-status-enabled-text:var(--color-emerald-700);--c-status-pending-fill:var(--color-orange-400);--c-status-pending-text:var(--color-orange-700);--c-status-pending-border:var(--color-orange-700);--c-status-expired-fill:var(--color-red-400);--c-status-expired-text:var(--color-red-700);--c-status-expired-border:var(--color-red-700);--c-status-disabled-fill:var(--color-slate-200);--c-status-disabled-text:var(--color-slate-600);--c-status-disabled-border:var(--color-slate-600);--c-form-control-fill:var(--c-surface-form);--c-form-control-text:var(--c-text-default);--c-form-control-border-color:var(--color-slate-500);--c-form-control-border-width:1px;--c-form-control-border-style:solid;--c-form-control-radius:var(--c-radius-md);--c-form-control-spacing-inline:var(--c-spacing-md);--c-form-control-spacing-block:var(--c-spacing-sm);--c-form-control-height:var(--c-size-control-md);--c-input-fill:var(--c-form-control-fill);--c-input-text:var(--c-form-control-text);--c-input-border-color:var(--c-form-control-border-color);--c-input-border-width:var(--c-form-control-border-width);--c-input-border-style:var(--c-form-control-border-style);--c-input-radius:var(--c-form-control-radius);--c-input-spacing-inline:var(--c-form-control-spacing-inline);--c-input-spacing-block:var(--c-form-control-spacing-block);--c-input-shadow:var(--inset-shadow-sm);--c-select-fill:var(--c-form-control-fill);--c-select-text:var(--c-form-control-text);--c-select-border-color:var(--c-form-control-border-color);--c-select-border-width:var(--c-form-control-border-width);--c-select-border-style:var(--c-form-control-border-style);--c-select-radius:var(--c-form-control-radius);--c-select-spacing-inline:var(--c-form-control-spacing-inline);--c-select-spacing-block:var(--c-form-control-spacing-block);--c-select-shadow:var(--shadow-sm);--c-button-default-fill:var(--color-slate-200);--c-button-default-fill-hover:var(--color-slate-300);--c-button-default-text:var(--c-text-default);--c-button-default-text-hover:var(--c-button-default-text);--c-button-default-border:var(--color-slate-300);--c-button-default-border-hover:var(--c-button-default-border);--c-button-primary-fill:var(--color-red-600);--c-button-primary-border:var(--color-red-700);--c-button-primary-text:var(--color-white);--c-button-primary-fill-hover:var(--color-red-700);--c-button-primary-border-hover:var(--c-button-primary-border);--c-button-primary-text-hover:var(--c-button-primary-text);--c-button-danger-fill:var(--color-red-600);--c-button-danger-border:var(--color-red-700);--c-button-danger-text:var(--color-white);--c-button-danger-fill-hover:var(--color-red-700);--c-button-danger-border-hover:var(--c-button-danger-border);--c-button-danger-text-hover:var(--c-button-danger-text);--c-pane-fill:var(--c-surface-overlay);--c-pane-text:var(--c-text-default);--c-pane-padding:var(--c-spacing-lg);--c-pane-border-width:1px;--c-pane-border-style:solid;--c-pane-border-color:transparent;--c-pane-radius:var(--c-radius-md);--c-pane-shadow:0 0 0 1px var(--gray-200), 0 2px 12px hsl(from var(--gray-200) h s l / 50%);--c-callout-radius:var(--c-pane-radius);--c-modal-fill:var(--c-pane-fill);--c-modal-text:var(--c-pane-text);--c-modal-radius:var(--c-radius-lg);--c-modal-border-width:var(--c-pane-border-width);--c-modal-border-style:var(--c-pane-border-style);--c-modal-border-color:var(--c-pane-border-color);--c-modal-padding:var(--c-pane-padding);--c-modal-shadow:0 0 0 1px hsl(from var(--color-gray-400) h s l / 25%), 0 25px 100px hsl(from var(--color-gray-900) h s l / 50%);--wa-panel-border-style:solid;--wa-panel-border-width:1px;--wa-color-surface-border:var(--c-color-neutral-border-quiet);--wa-panel-border-color:var(--c-color-neutral-border-quiet);--wa-panel-border-radius:var(--c-radius-md);--wa-color-surface-raised:var(--c-surface-raised);--wa-shadow-l:var(--c-shadow-lg)}:root{--c-color-red-fill-quiet:var(--color-red-50);--c-color-red-fill-normal:var(--color-red-100);--c-color-red-fill-loud:var(--color-red-600);--c-color-red-border-quiet:var(--color-red-400);--c-color-red-border-normal:var(--color-red-600);--c-color-red-border-loud:var(--color-red-800);--c-color-red-on-quiet:var(--color-red-800);--c-color-red-on-normal:var(--color-red-950);--c-color-red-on-loud:var(--color-red-50);--c-color-orange-fill-quiet:var(--color-orange-50);--c-color-orange-fill-normal:var(--color-orange-100);--c-color-orange-fill-loud:var(--color-orange-600);--c-color-orange-border-quiet:var(--color-orange-400);--c-color-orange-border-normal:var(--color-orange-600);--c-color-orange-border-loud:var(--color-orange-800);--c-color-orange-on-quiet:var(--color-orange-800);--c-color-orange-on-normal:var(--color-orange-950);--c-color-orange-on-loud:var(--color-orange-50);--c-color-amber-fill-quiet:var(--color-amber-50);--c-color-amber-fill-normal:var(--color-amber-100);--c-color-amber-fill-loud:var(--color-amber-600);--c-color-amber-border-quiet:var(--color-amber-400);--c-color-amber-border-normal:var(--color-amber-600);--c-color-amber-border-loud:var(--color-amber-800);--c-color-amber-on-quiet:var(--color-amber-800);--c-color-amber-on-normal:var(--color-amber-950);--c-color-amber-on-loud:var(--color-amber-50);--c-color-yellow-fill-quiet:var(--color-yellow-50);--c-color-yellow-fill-normal:var(--color-yellow-100);--c-color-yellow-fill-loud:var(--color-yellow-600);--c-color-yellow-border-quiet:var(--color-yellow-400);--c-color-yellow-border-normal:var(--color-yellow-600);--c-color-yellow-border-loud:var(--color-yellow-800);--c-color-yellow-on-quiet:var(--color-yellow-800);--c-color-yellow-on-normal:var(--color-yellow-950);--c-color-yellow-on-loud:var(--color-yellow-50);--c-color-lime-fill-quiet:var(--color-lime-50);--c-color-lime-fill-normal:var(--color-lime-100);--c-color-lime-fill-loud:var(--color-lime-600);--c-color-lime-border-quiet:var(--color-lime-400);--c-color-lime-border-normal:var(--color-lime-600);--c-color-lime-border-loud:var(--color-lime-800);--c-color-lime-on-quiet:var(--color-lime-800);--c-color-lime-on-normal:var(--color-lime-950);--c-color-lime-on-loud:var(--color-lime-50);--c-color-green-fill-quiet:var(--color-green-50);--c-color-green-fill-normal:var(--color-green-100);--c-color-green-fill-loud:var(--color-green-600);--c-color-green-border-quiet:var(--color-green-400);--c-color-green-border-normal:var(--color-green-600);--c-color-green-border-loud:var(--color-green-800);--c-color-green-on-quiet:var(--color-green-800);--c-color-green-on-normal:var(--color-green-950);--c-color-green-on-loud:var(--color-green-50);--c-color-emerald-fill-quiet:var(--color-emerald-50);--c-color-emerald-fill-normal:var(--color-emerald-100);--c-color-emerald-fill-loud:var(--color-emerald-600);--c-color-emerald-border-quiet:var(--color-emerald-400);--c-color-emerald-border-normal:var(--color-emerald-600);--c-color-emerald-border-loud:var(--color-emerald-800);--c-color-emerald-on-quiet:var(--color-emerald-800);--c-color-emerald-on-normal:var(--color-emerald-950);--c-color-emerald-on-loud:var(--color-emerald-50);--c-color-teal-fill-quiet:var(--color-teal-50);--c-color-teal-fill-normal:var(--color-teal-100);--c-color-teal-fill-loud:var(--color-teal-600);--c-color-teal-border-quiet:var(--color-teal-400);--c-color-teal-border-normal:var(--color-teal-600);--c-color-teal-border-loud:var(--color-teal-800);--c-color-teal-on-quiet:var(--color-teal-800);--c-color-teal-on-normal:var(--color-teal-950);--c-color-teal-on-loud:var(--color-teal-50);--c-color-cyan-fill-quiet:var(--color-cyan-50);--c-color-cyan-fill-normal:var(--color-cyan-100);--c-color-cyan-fill-loud:var(--color-cyan-600);--c-color-cyan-border-quiet:var(--color-cyan-400);--c-color-cyan-border-normal:var(--color-cyan-600);--c-color-cyan-border-loud:var(--color-cyan-800);--c-color-cyan-on-quiet:var(--color-cyan-800);--c-color-cyan-on-normal:var(--color-cyan-950);--c-color-cyan-on-loud:var(--color-cyan-50);--c-color-sky-fill-quiet:var(--color-sky-50);--c-color-sky-fill-normal:var(--color-sky-100);--c-color-sky-fill-loud:var(--color-sky-600);--c-color-sky-border-quiet:var(--color-sky-400);--c-color-sky-border-normal:var(--color-sky-600);--c-color-sky-border-loud:var(--color-sky-800);--c-color-sky-on-quiet:var(--color-sky-800);--c-color-sky-on-normal:var(--color-sky-950);--c-color-sky-on-loud:var(--color-sky-50);--c-color-blue-fill-quiet:var(--color-blue-50);--c-color-blue-fill-normal:var(--color-blue-100);--c-color-blue-fill-loud:var(--color-blue-600);--c-color-blue-border-quiet:var(--color-blue-400);--c-color-blue-border-normal:var(--color-blue-600);--c-color-blue-border-loud:var(--color-blue-800);--c-color-blue-on-quiet:var(--color-blue-800);--c-color-blue-on-normal:var(--color-blue-950);--c-color-blue-on-loud:var(--color-blue-50);--c-color-indigo-fill-quiet:var(--color-indigo-50);--c-color-indigo-fill-normal:var(--color-indigo-100);--c-color-indigo-fill-loud:var(--color-indigo-600);--c-color-indigo-border-quiet:var(--color-indigo-400);--c-color-indigo-border-normal:var(--color-indigo-600);--c-color-indigo-border-loud:var(--color-indigo-800);--c-color-indigo-on-quiet:var(--color-indigo-800);--c-color-indigo-on-normal:var(--color-indigo-950);--c-color-indigo-on-loud:var(--color-indigo-50);--c-color-violet-fill-quiet:var(--color-violet-50);--c-color-violet-fill-normal:var(--color-violet-100);--c-color-violet-fill-loud:var(--color-violet-600);--c-color-violet-border-quiet:var(--color-violet-400);--c-color-violet-border-normal:var(--color-violet-600);--c-color-violet-border-loud:var(--color-violet-800);--c-color-violet-on-quiet:var(--color-violet-800);--c-color-violet-on-normal:var(--color-violet-950);--c-color-violet-on-loud:var(--color-violet-50);--c-color-purple-fill-quiet:var(--color-purple-50);--c-color-purple-fill-normal:var(--color-purple-100);--c-color-purple-fill-loud:var(--color-purple-600);--c-color-purple-border-quiet:var(--color-purple-400);--c-color-purple-border-normal:var(--color-purple-600);--c-color-purple-border-loud:var(--color-purple-800);--c-color-purple-on-quiet:var(--color-purple-800);--c-color-purple-on-normal:var(--color-purple-950);--c-color-purple-on-loud:var(--color-purple-50);--c-color-fuchsia-fill-quiet:var(--color-fuchsia-50);--c-color-fuchsia-fill-normal:var(--color-fuchsia-100);--c-color-fuchsia-fill-loud:var(--color-fuchsia-600);--c-color-fuchsia-border-quiet:var(--color-fuchsia-400);--c-color-fuchsia-border-normal:var(--color-fuchsia-600);--c-color-fuchsia-border-loud:var(--color-fuchsia-800);--c-color-fuchsia-on-quiet:var(--color-fuchsia-800);--c-color-fuchsia-on-normal:var(--color-fuchsia-950);--c-color-fuchsia-on-loud:var(--color-fuchsia-50);--c-color-pink-fill-quiet:var(--color-pink-50);--c-color-pink-fill-normal:var(--color-pink-100);--c-color-pink-fill-loud:var(--color-pink-600);--c-color-pink-border-quiet:var(--color-pink-400);--c-color-pink-border-normal:var(--color-pink-600);--c-color-pink-border-loud:var(--color-pink-800);--c-color-pink-on-quiet:var(--color-pink-800);--c-color-pink-on-normal:var(--color-pink-950);--c-color-pink-on-loud:var(--color-pink-50);--c-color-rose-fill-quiet:var(--color-rose-50);--c-color-rose-fill-normal:var(--color-rose-100);--c-color-rose-fill-loud:var(--color-rose-600);--c-color-rose-border-quiet:var(--color-rose-400);--c-color-rose-border-normal:var(--color-rose-600);--c-color-rose-border-loud:var(--color-rose-800);--c-color-rose-on-quiet:var(--color-rose-800);--c-color-rose-on-normal:var(--color-rose-950);--c-color-rose-on-loud:var(--color-rose-50);--c-color-white-fill-quiet:var(--color-white);--c-color-white-fill-normal:var(--color-white);--c-color-white-fill-loud:var(--color-white);--c-color-white-border-quiet:var(--color-static-gray-200);--c-color-white-border-normal:var(--color-static-gray-200);--c-color-white-border-loud:var(--color-static-gray-200);--c-color-white-on-quiet:var(--color-static-gray-800);--c-color-white-on-normal:var(--color-static-gray-800);--c-color-white-on-loud:var(--color-static-gray-800);--c-color-gray-fill-quiet:var(--color-gray-50);--c-color-gray-fill-normal:var(--color-gray-100);--c-color-gray-fill-loud:var(--color-gray-600);--c-color-gray-border-quiet:var(--color-gray-400);--c-color-gray-border-normal:var(--color-gray-600);--c-color-gray-border-loud:var(--color-gray-800);--c-color-gray-on-quiet:var(--color-gray-800);--c-color-gray-on-normal:var(--color-gray-950);--c-color-gray-on-loud:var(--color-gray-50);--c-color-black-fill-quiet:var(--color-static-gray-900);--c-color-black-fill-normal:var(--color-static-gray-900);--c-color-black-fill-loud:var(--color-static-gray-900);--c-color-black-border-quiet:var(--color-static-gray-800);--c-color-black-border-normal:var(--color-static-gray-800);--c-color-black-border-loud:var(--color-static-gray-800);--c-color-black-on-quiet:var(--color-static-gray-100);--c-color-black-on-normal:var(--color-static-gray-100);--c-color-black-on-loud:var(--color-static-gray-100);--c-color-neutral-fill-quiet:var(--color-slate-50);--c-color-neutral-fill-normal:var(--color-slate-100);--c-color-neutral-fill-loud:var(--color-slate-600);--c-color-neutral-border-quiet:var(--color-slate-400);--c-color-neutral-border-normal:var(--color-slate-600);--c-color-neutral-border-loud:var(--color-slate-800);--c-color-neutral-on-quiet:var(--color-slate-800);--c-color-neutral-on-normal:var(--color-slate-950);--c-color-neutral-on-loud:var(--color-slate-50);--c-color-brand-fill-quiet:var(--color-red-50);--c-color-brand-fill-normal:var(--color-red-100);--c-color-brand-fill-loud:var(--color-red-600);--c-color-brand-border-quiet:var(--color-red-400);--c-color-brand-border-normal:var(--color-red-600);--c-color-brand-border-loud:var(--color-red-800);--c-color-brand-on-quiet:var(--color-red-800);--c-color-brand-on-normal:var(--color-red-950);--c-color-brand-on-loud:var(--color-red-50);--c-color-accent-fill-quiet:var(--color-blue-50);--c-color-accent-fill-normal:var(--color-blue-100);--c-color-accent-fill-loud:var(--color-blue-600);--c-color-accent-border-quiet:var(--color-blue-400);--c-color-accent-border-normal:var(--color-blue-600);--c-color-accent-border-loud:var(--color-blue-800);--c-color-accent-on-quiet:var(--color-blue-800);--c-color-accent-on-normal:var(--color-blue-950);--c-color-accent-on-loud:var(--color-blue-50);--c-color-info-fill-quiet:var(--color-blue-50);--c-color-info-fill-normal:var(--color-blue-100);--c-color-info-fill-loud:var(--color-blue-600);--c-color-info-border-quiet:var(--color-blue-400);--c-color-info-border-normal:var(--color-blue-600);--c-color-info-border-loud:var(--color-blue-800);--c-color-info-on-quiet:var(--color-blue-800);--c-color-info-on-normal:var(--color-blue-950);--c-color-info-on-loud:var(--color-blue-50);--c-color-success-fill-quiet:var(--color-emerald-50);--c-color-success-fill-normal:var(--color-emerald-100);--c-color-success-fill-loud:var(--color-emerald-600);--c-color-success-border-quiet:var(--color-emerald-400);--c-color-success-border-normal:var(--color-emerald-600);--c-color-success-border-loud:var(--color-emerald-800);--c-color-success-on-quiet:var(--color-emerald-800);--c-color-success-on-normal:var(--color-emerald-950);--c-color-success-on-loud:var(--color-emerald-50);--c-color-warning-fill-quiet:var(--color-orange-50);--c-color-warning-fill-normal:var(--color-orange-100);--c-color-warning-fill-loud:var(--color-orange-600);--c-color-warning-border-quiet:var(--color-orange-400);--c-color-warning-border-normal:var(--color-orange-600);--c-color-warning-border-loud:var(--color-orange-800);--c-color-warning-on-quiet:var(--color-orange-800);--c-color-warning-on-normal:var(--color-orange-950);--c-color-warning-on-loud:var(--color-orange-50);--c-color-danger-fill-quiet:var(--color-red-50);--c-color-danger-fill-normal:var(--color-red-100);--c-color-danger-fill-loud:var(--color-red-600);--c-color-danger-border-quiet:var(--color-red-400);--c-color-danger-border-normal:var(--color-red-600);--c-color-danger-border-loud:var(--color-red-800);--c-color-danger-on-quiet:var(--color-red-800);--c-color-danger-on-normal:var(--color-red-950);--c-color-danger-on-loud:var(--color-red-50)}.c-colorable,[data-color]{--c-color-fill-quiet:var(--c-color-neutral-fill-quiet);--c-color-fill-normal:var(--c-color-neutral-fill-normal);--c-color-fill-loud:var(--c-color-neutral-fill-loud);--c-color-border-quiet:var(--c-color-neutral-border-quiet);--c-color-border-normal:var(--c-color-neutral-border-normal);--c-color-border-loud:var(--c-color-neutral-border-loud);--c-color-on-quiet:var(--c-color-neutral-on-quiet);--c-color-on-normal:var(--c-color-neutral-on-normal);--c-color-on-loud:var(--c-color-neutral-on-loud);background-color:var(--c-color-fill-quiet);border-color:var(--c-color-border-quiet);color:var(--c-color-on-quiet)}.c-colorable--red,[data-color=red]{--c-color-fill-quiet:var(--c-color-red-fill-quiet);--c-color-border-quiet:var(--c-color-red-border-quiet);--c-color-on-quiet:var(--c-color-red-on-quiet);--c-color-fill-normal:var(--c-color-red-fill-normal);--c-color-border-normal:var(--c-color-red-border-normal);--c-color-on-normal:var(--c-color-red-on-normal);--c-color-fill-loud:var(--c-color-red-fill-loud);--c-color-border-loud:var(--c-color-red-border-loud);--c-color-on-loud:var(--c-color-red-on-loud)}.c-colorable--orange,[data-color=orange]{--c-color-fill-quiet:var(--c-color-orange-fill-quiet);--c-color-border-quiet:var(--c-color-orange-border-quiet);--c-color-on-quiet:var(--c-color-orange-on-quiet);--c-color-fill-normal:var(--c-color-orange-fill-normal);--c-color-border-normal:var(--c-color-orange-border-normal);--c-color-on-normal:var(--c-color-orange-on-normal);--c-color-fill-loud:var(--c-color-orange-fill-loud);--c-color-border-loud:var(--c-color-orange-border-loud);--c-color-on-loud:var(--c-color-orange-on-loud)}.c-colorable--amber,[data-color=amber]{--c-color-fill-quiet:var(--c-color-amber-fill-quiet);--c-color-border-quiet:var(--c-color-amber-border-quiet);--c-color-on-quiet:var(--c-color-amber-on-quiet);--c-color-fill-normal:var(--c-color-amber-fill-normal);--c-color-border-normal:var(--c-color-amber-border-normal);--c-color-on-normal:var(--c-color-amber-on-normal);--c-color-fill-loud:var(--c-color-amber-fill-loud);--c-color-border-loud:var(--c-color-amber-border-loud);--c-color-on-loud:var(--c-color-amber-on-loud)}.c-colorable--yellow,[data-color=yellow]{--c-color-fill-quiet:var(--c-color-yellow-fill-quiet);--c-color-border-quiet:var(--c-color-yellow-border-quiet);--c-color-on-quiet:var(--c-color-yellow-on-quiet);--c-color-fill-normal:var(--c-color-yellow-fill-normal);--c-color-border-normal:var(--c-color-yellow-border-normal);--c-color-on-normal:var(--c-color-yellow-on-normal);--c-color-fill-loud:var(--c-color-yellow-fill-loud);--c-color-border-loud:var(--c-color-yellow-border-loud);--c-color-on-loud:var(--c-color-yellow-on-loud)}.c-colorable--lime,[data-color=lime]{--c-color-fill-quiet:var(--c-color-lime-fill-quiet);--c-color-border-quiet:var(--c-color-lime-border-quiet);--c-color-on-quiet:var(--c-color-lime-on-quiet);--c-color-fill-normal:var(--c-color-lime-fill-normal);--c-color-border-normal:var(--c-color-lime-border-normal);--c-color-on-normal:var(--c-color-lime-on-normal);--c-color-fill-loud:var(--c-color-lime-fill-loud);--c-color-border-loud:var(--c-color-lime-border-loud);--c-color-on-loud:var(--c-color-lime-on-loud)}.c-colorable--green,[data-color=green]{--c-color-fill-quiet:var(--c-color-green-fill-quiet);--c-color-border-quiet:var(--c-color-green-border-quiet);--c-color-on-quiet:var(--c-color-green-on-quiet);--c-color-fill-normal:var(--c-color-green-fill-normal);--c-color-border-normal:var(--c-color-green-border-normal);--c-color-on-normal:var(--c-color-green-on-normal);--c-color-fill-loud:var(--c-color-green-fill-loud);--c-color-border-loud:var(--c-color-green-border-loud);--c-color-on-loud:var(--c-color-green-on-loud)}.c-colorable--emerald,[data-color=emerald]{--c-color-fill-quiet:var(--c-color-emerald-fill-quiet);--c-color-border-quiet:var(--c-color-emerald-border-quiet);--c-color-on-quiet:var(--c-color-emerald-on-quiet);--c-color-fill-normal:var(--c-color-emerald-fill-normal);--c-color-border-normal:var(--c-color-emerald-border-normal);--c-color-on-normal:var(--c-color-emerald-on-normal);--c-color-fill-loud:var(--c-color-emerald-fill-loud);--c-color-border-loud:var(--c-color-emerald-border-loud);--c-color-on-loud:var(--c-color-emerald-on-loud)}.c-colorable--teal,[data-color=teal]{--c-color-fill-quiet:var(--c-color-teal-fill-quiet);--c-color-border-quiet:var(--c-color-teal-border-quiet);--c-color-on-quiet:var(--c-color-teal-on-quiet);--c-color-fill-normal:var(--c-color-teal-fill-normal);--c-color-border-normal:var(--c-color-teal-border-normal);--c-color-on-normal:var(--c-color-teal-on-normal);--c-color-fill-loud:var(--c-color-teal-fill-loud);--c-color-border-loud:var(--c-color-teal-border-loud);--c-color-on-loud:var(--c-color-teal-on-loud)}.c-colorable--cyan,[data-color=cyan]{--c-color-fill-quiet:var(--c-color-cyan-fill-quiet);--c-color-border-quiet:var(--c-color-cyan-border-quiet);--c-color-on-quiet:var(--c-color-cyan-on-quiet);--c-color-fill-normal:var(--c-color-cyan-fill-normal);--c-color-border-normal:var(--c-color-cyan-border-normal);--c-color-on-normal:var(--c-color-cyan-on-normal);--c-color-fill-loud:var(--c-color-cyan-fill-loud);--c-color-border-loud:var(--c-color-cyan-border-loud);--c-color-on-loud:var(--c-color-cyan-on-loud)}.c-colorable--sky,[data-color=sky]{--c-color-fill-quiet:var(--c-color-sky-fill-quiet);--c-color-border-quiet:var(--c-color-sky-border-quiet);--c-color-on-quiet:var(--c-color-sky-on-quiet);--c-color-fill-normal:var(--c-color-sky-fill-normal);--c-color-border-normal:var(--c-color-sky-border-normal);--c-color-on-normal:var(--c-color-sky-on-normal);--c-color-fill-loud:var(--c-color-sky-fill-loud);--c-color-border-loud:var(--c-color-sky-border-loud);--c-color-on-loud:var(--c-color-sky-on-loud)}.c-colorable--blue,[data-color=blue]{--c-color-fill-quiet:var(--c-color-blue-fill-quiet);--c-color-border-quiet:var(--c-color-blue-border-quiet);--c-color-on-quiet:var(--c-color-blue-on-quiet);--c-color-fill-normal:var(--c-color-blue-fill-normal);--c-color-border-normal:var(--c-color-blue-border-normal);--c-color-on-normal:var(--c-color-blue-on-normal);--c-color-fill-loud:var(--c-color-blue-fill-loud);--c-color-border-loud:var(--c-color-blue-border-loud);--c-color-on-loud:var(--c-color-blue-on-loud)}.c-colorable--indigo,[data-color=indigo]{--c-color-fill-quiet:var(--c-color-indigo-fill-quiet);--c-color-border-quiet:var(--c-color-indigo-border-quiet);--c-color-on-quiet:var(--c-color-indigo-on-quiet);--c-color-fill-normal:var(--c-color-indigo-fill-normal);--c-color-border-normal:var(--c-color-indigo-border-normal);--c-color-on-normal:var(--c-color-indigo-on-normal);--c-color-fill-loud:var(--c-color-indigo-fill-loud);--c-color-border-loud:var(--c-color-indigo-border-loud);--c-color-on-loud:var(--c-color-indigo-on-loud)}.c-colorable--violet,[data-color=violet]{--c-color-fill-quiet:var(--c-color-violet-fill-quiet);--c-color-border-quiet:var(--c-color-violet-border-quiet);--c-color-on-quiet:var(--c-color-violet-on-quiet);--c-color-fill-normal:var(--c-color-violet-fill-normal);--c-color-border-normal:var(--c-color-violet-border-normal);--c-color-on-normal:var(--c-color-violet-on-normal);--c-color-fill-loud:var(--c-color-violet-fill-loud);--c-color-border-loud:var(--c-color-violet-border-loud);--c-color-on-loud:var(--c-color-violet-on-loud)}.c-colorable--purple,[data-color=purple]{--c-color-fill-quiet:var(--c-color-purple-fill-quiet);--c-color-border-quiet:var(--c-color-purple-border-quiet);--c-color-on-quiet:var(--c-color-purple-on-quiet);--c-color-fill-normal:var(--c-color-purple-fill-normal);--c-color-border-normal:var(--c-color-purple-border-normal);--c-color-on-normal:var(--c-color-purple-on-normal);--c-color-fill-loud:var(--c-color-purple-fill-loud);--c-color-border-loud:var(--c-color-purple-border-loud);--c-color-on-loud:var(--c-color-purple-on-loud)}.c-colorable--fuchsia,[data-color=fuchsia]{--c-color-fill-quiet:var(--c-color-fuchsia-fill-quiet);--c-color-border-quiet:var(--c-color-fuchsia-border-quiet);--c-color-on-quiet:var(--c-color-fuchsia-on-quiet);--c-color-fill-normal:var(--c-color-fuchsia-fill-normal);--c-color-border-normal:var(--c-color-fuchsia-border-normal);--c-color-on-normal:var(--c-color-fuchsia-on-normal);--c-color-fill-loud:var(--c-color-fuchsia-fill-loud);--c-color-border-loud:var(--c-color-fuchsia-border-loud);--c-color-on-loud:var(--c-color-fuchsia-on-loud)}.c-colorable--pink,[data-color=pink]{--c-color-fill-quiet:var(--c-color-pink-fill-quiet);--c-color-border-quiet:var(--c-color-pink-border-quiet);--c-color-on-quiet:var(--c-color-pink-on-quiet);--c-color-fill-normal:var(--c-color-pink-fill-normal);--c-color-border-normal:var(--c-color-pink-border-normal);--c-color-on-normal:var(--c-color-pink-on-normal);--c-color-fill-loud:var(--c-color-pink-fill-loud);--c-color-border-loud:var(--c-color-pink-border-loud);--c-color-on-loud:var(--c-color-pink-on-loud)}.c-colorable--rose,[data-color=rose]{--c-color-fill-quiet:var(--c-color-rose-fill-quiet);--c-color-border-quiet:var(--c-color-rose-border-quiet);--c-color-on-quiet:var(--c-color-rose-on-quiet);--c-color-fill-normal:var(--c-color-rose-fill-normal);--c-color-border-normal:var(--c-color-rose-border-normal);--c-color-on-normal:var(--c-color-rose-on-normal);--c-color-fill-loud:var(--c-color-rose-fill-loud);--c-color-border-loud:var(--c-color-rose-border-loud);--c-color-on-loud:var(--c-color-rose-on-loud)}.c-colorable--white,[data-color=white]{--c-color-fill-quiet:var(--c-color-white-fill-quiet);--c-color-border-quiet:var(--c-color-white-border-quiet);--c-color-on-quiet:var(--c-color-white-on-quiet);--c-color-fill-normal:var(--c-color-white-fill-normal);--c-color-border-normal:var(--c-color-white-border-normal);--c-color-on-normal:var(--c-color-white-on-normal);--c-color-fill-loud:var(--c-color-white-fill-loud);--c-color-border-loud:var(--c-color-white-border-loud);--c-color-on-loud:var(--c-color-white-on-loud)}.c-colorable--gray,[data-color=gray]{--c-color-fill-quiet:var(--c-color-gray-fill-quiet);--c-color-border-quiet:var(--c-color-gray-border-quiet);--c-color-on-quiet:var(--c-color-gray-on-quiet);--c-color-fill-normal:var(--c-color-gray-fill-normal);--c-color-border-normal:var(--c-color-gray-border-normal);--c-color-on-normal:var(--c-color-gray-on-normal);--c-color-fill-loud:var(--c-color-gray-fill-loud);--c-color-border-loud:var(--c-color-gray-border-loud);--c-color-on-loud:var(--c-color-gray-on-loud)}.c-colorable--black,[data-color=black]{--c-color-fill-quiet:var(--c-color-black-fill-quiet);--c-color-border-quiet:var(--c-color-black-border-quiet);--c-color-on-quiet:var(--c-color-black-on-quiet);--c-color-fill-normal:var(--c-color-black-fill-normal);--c-color-border-normal:var(--c-color-black-border-normal);--c-color-on-normal:var(--c-color-black-on-normal);--c-color-fill-loud:var(--c-color-black-fill-loud);--c-color-border-loud:var(--c-color-black-border-loud);--c-color-on-loud:var(--c-color-black-on-loud)}}@layer base{html,body{background-color:var(--c-surface-default)}body{width:100%;font-family:var(--c-font-body,sans-serif);font-size:var(--c-text-base);line-height:var(--c-leading-normal);color:var(--c-text-default);-webkit-font-smoothing:subpixel-antialiased;overflow-x:hidden}h1,h2,h3,h4,h5,h6,p,pre{margin:0}a{cursor:pointer;color:var(--c-text-link)}ol,ul{margin:0;padding:0;list-style:none}.code{padding:0 var(--c-spacing-sm);border-radius:var(--c-radius-sm);background-color:#0000000d;border:1px solid #0003;font-size:.9em;display:inline-flex}hr{border:0;border-top:1px solid var(--c-color-neutral-border-quiet);width:100%;margin-block:var(--c-spacing-lg);display:block}.index-grid{gap:var(--c-spacing-md);display:grid}@container (width>=768px){.index-grid{grid-template-columns:clamp(7.5rem,20%,13.75rem) 6fr;align-items:start}}.index-grid__aside,.index-grid__main{gap:var(--c-spacing-md);align-items:center;display:flex}.index-grid--header{min-height:2.5rem;padding-block:var(--c-spacing-lg);align-items:center}@container (width>=768px){.index-grid--header{padding-block-end:var(--c-spacing-md)}.index-grid--header .index-grid__main{justify-self:end}}.prose>:first-child{margin-block-start:0}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{margin-block:.5rem}.prose ol,.prose ul{gap:.25em;padding-inline-start:1.5em;display:grid}.prose ul{list-style:outside}.cp-table{--_cell-spacing-inline:var(--c-spacing-md);--_cell-spacing-block:var(--c-spacing-md);text-align:left;border-spacing:0;font-variant-numeric:tabular-nums;width:100%}@container (width>=840px){.cp-table{table-layout:fixed}}.cp-table thead,.cp-table th{background-color:var(--c-color-neutral-fill-quiet)}.cp-table .cell{vertical-align:middle;padding:0;padding-inline:var(--_cell-spacing-inline);height:var(--c-size-control-md);padding-block:0;position:relative}:is(.cp-table .cell:has(textarea),.cp-table .cell:has(input:not([type=checkbox]):not([type=radio]))){padding:0}.cp-table td,.cp-table th,.cp-table tr:not(:last-child){border-block-end:1px solid var(--c-color-neutral-border-quiet)}.cp-table td:not(:first-child),.cp-table th:not(:first-child){border-inline-start:1px solid var(--c-color-neutral-border-quiet)}.cp-table textarea,.cp-table input:not([type=checkbox]):not([type=radio]){padding-block:var(--_cell-spacing-block);padding-inline:var(--_cell-spacing-inline);border:0;width:100%;height:100%;margin:0}.cp-table textarea{resize:none;line-height:1.2}.cp-table--padded th,.cp-table--padded td{padding-block:var(--c-spacing-md)}.cp-table--auto{table-layout:auto}.cp-table--fixed{table-layout:fixed}.cp-table--collapsed,.cp-table--borderless{--_cell-spacing-block:0}.cp-table--compact{--_cell-spacing-block:var(--c-spacing-sm)}.cp-table-header,.cp-table-footer{padding:var(--c-spacing-md);background-color:var(--c-color-neutral-fill-quiet);justify-content:space-between;align-items:center;display:flex}}@layer components,utilities;.resizable-container{resize:both;border:2px solid;width:300px;padding:20px;overflow:auto}.skip-link{--x-position:0;--y-position:0;clip:rect(0, 0, 0, 0);white-space:nowrap;background-color:var(--c-bg-body);width:1px;height:1px;padding-block:var(--c-spacing-md);padding-inline:var(--c-spacing-lg);border:1px dashed var(--c-form-control-border);color:var(--c-fg-text);font-weight:var(--font-weight-medium);border-radius:var(--c-radius-md);outline:none;margin:-1px;text-decoration:none;display:inline-block;position:absolute;overflow:hidden}.skip-link:focus{clip:auto;white-space:normal;width:auto;height:auto;inset-block-start:var(--y-position);inset-inline-start:var(--x-position);overflow:visible}.skip-link--global{--x-position:calc(10rem / 16);--y-position:calc(5rem / 16)}.error-list{color:var(--c-color-danger-on-normal);margin:0;padding:0;list-style:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.c-icon{width:1.25em;height:1em;display:inline-flex}.c-icon svg{height:1em;overflow:visible}}@layer utilities{.\@container{container-type:inline-size}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-y-1{inset-block:calc(var(--spacing) * 1)}.\!start{inset-inline-start:var(--spacing)!important}.-start{inset-inline-start:calc(var(--spacing) * -1)}.start{inset-inline-start:var(--spacing)}.\!end{inset-inline-end:var(--spacing)!important}.-end{inset-inline-end:calc(var(--spacing) * -1)}.end{inset-inline-end:var(--spacing)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.bottom-2{bottom:calc(var(--spacing) * 2)}.col-span-2{grid-column:span 2/span 2}.col-span-5{grid-column:span 5/span 5}.\!container{width:100%!important}@media (width>=40rem){.\!container{max-width:40rem!important}}@media (width>=48rem){.\!container{max-width:48rem!important}}@media (width>=64rem){.\!container{max-width:64rem!important}}@media (width>=80rem){.\!container{max-width:80rem!important}}@media (width>=96rem){.\!container{max-width:96rem!important}}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\!{width:100%!important}@media (width>=40rem){.container\!{max-width:40rem!important}}@media (width>=48rem){.container\!{max-width:48rem!important}}@media (width>=64rem){.container\!{max-width:64rem!important}}@media (width>=80rem){.container\!{max-width:80rem!important}}@media (width>=96rem){.container\!{max-width:96rem!important}}.m-0{margin:calc(var(--spacing) * 0)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.my-0{margin-block:calc(var(--spacing) * 0)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:calc(var(--spacing) * 0)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mr-0{margin-right:calc(var(--spacing) * 0)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-16{margin-bottom:calc(var(--spacing) * 16)}.ml-0{margin-left:calc(var(--spacing) * 0)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.hidden\!{display:none!important}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.table-row{display:table-row}.table-row-group{display:table-row-group}.aspect-\[352\/455\]{aspect-ratio:352/455}.h-1{height:calc(var(--spacing) * 1)}.max-h-\[50vh\]{max-height:50vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-1\/2{width:50%}.w-2xl{width:var(--container-2xl)}.w-3xl{width:var(--container-3xl)}.w-4xl{width:var(--container-4xl)}.w-5xl{width:var(--container-5xl)}.w-6xl{width:var(--container-6xl)}.w-7xl{width:var(--container-7xl)}.w-\[60ch\]{width:60ch}.w-auto{width:auto}.w-full{width:100%}.w-lg{width:var(--container-lg)}.w-md{width:var(--container-md)}.w-sm{width:var(--container-sm)}.w-xl{width:var(--container-xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\[80ch\]{max-width:80ch}.max-w-\[600px\]{max-width:600px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.-translate-full{--tw-translate-x:-100%;--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize\!{resize:both!important}.columns-3{columns:3}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.self-center{align-self:center}.self-end{align-self:flex-end}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-scroll{overflow:scroll}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-blue-500{border-color:var(--color-blue-500)}.border-border-subtle,.border-neutral-border-quiet{border-color:var(--c-color-neutral-border-quiet)}.border-red-500{border-color:var(--color-red-500)}.border-b-border-subtle,.border-b-neutral-border-quiet{border-bottom-color:var(--c-color-neutral-border-quiet)}.bg-\[var\(--c-color-neutral-bg-normal\)\]{background-color:var(--c-color-neutral-bg-normal)}.bg-\[var\(--c-color-neutral-fill-quiet\)\]{background-color:var(--c-color-neutral-fill-quiet)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.\!px-\[var\(--_cell-spacing\)\]{padding-inline:var(--_cell-spacing)!important}.\!px-\[var\(--_cell-spacing-inline\)\]{padding-inline:var(--_cell-spacing-inline)!important}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-20{padding-block:calc(var(--spacing) * 20)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-0{padding-right:calc(var(--spacing) * 0)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-0{padding-left:calc(var(--spacing) * 0)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.whitespace-normal{white-space:normal}.text-gray-500{color:var(--color-gray-500)}.text-neutral-500{color:var(--color-neutral-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-slate-100{color:var(--color-slate-100)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.backface-hidden{backface-visibility:hidden}@media (width>=48rem){.md\:w-3\/4{width:75%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}}.\[\&\[disabled\]\]\:opacity-50[disabled]{opacity:.5}}.global-sidebar{--is-always-visible:true;grid-template-columns:var(--global-sidebar-width);grid-template-rows:calc(var(--header-height) + 1px) minmax(0, 1fr) auto;-webkit-overflow-scrolling:touch;background-color:var(--gray-150);border-inline-end:1px solid var(--border-hairline);height:100vh;width:var(--global-sidebar-width);isolation:isolate;z-index:1;grid-auto-flow:row;padding:0;display:grid;position:sticky;inset-block-start:0}@media only screen and (width<=1999px){.global-sidebar{--is-always-visible:false}}.global-sidebar__nav{padding-block:var(--s);padding-inline:var(--s);-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior:contain;overflow:hidden auto}.global-sidebar__footer{border-block-start:1px solid var(--border-hairline);margin-block-start:auto}.nav-indicator{width:var(--nav-item-indicator-size);border-radius:var(--radius-sm);aspect-ratio:1;background-color:currentColor}:root{--global-sidebar-width:calc(226rem / 16);--global-content-width:calc(1440rem / 16);--header-height:calc(44rem / 16)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-red-50:oklch(97.1% .013 17.38);--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-400:oklch(70.4% .191 22.216);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-red-800:oklch(44.4% .177 26.899);--color-red-900:oklch(39.6% .141 25.723);--color-red-950:oklch(25.8% .092 26.042);--color-orange-50:oklch(98% .016 73.684);--color-orange-100:oklch(95.4% .038 75.164);--color-orange-200:oklch(90.1% .076 70.697);--color-orange-300:oklch(83.7% .128 66.29);--color-orange-400:oklch(75% .183 55.934);--color-orange-500:oklch(70.5% .213 47.604);--color-orange-600:oklch(64.6% .222 41.116);--color-orange-700:oklch(55.3% .195 38.402);--color-orange-800:oklch(47% .157 37.304);--color-orange-900:oklch(40.8% .123 38.172);--color-orange-950:oklch(26.6% .079 36.259);--color-amber-50:oklch(98.7% .022 95.277);--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-300:oklch(87.9% .169 91.605);--color-amber-400:oklch(82.8% .189 84.429);--color-amber-500:oklch(76.9% .188 70.08);--color-amber-600:oklch(66.6% .179 58.318);--color-amber-700:oklch(55.5% .163 48.998);--color-amber-800:oklch(47.3% .137 46.201);--color-amber-900:oklch(41.4% .112 45.904);--color-amber-950:oklch(27.9% .077 45.635);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-100:oklch(97.3% .071 103.193);--color-yellow-200:oklch(94.5% .129 101.54);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-400:oklch(85.2% .199 91.936);--color-yellow-500:oklch(79.5% .184 86.047);--color-yellow-600:oklch(68.1% .162 75.834);--color-yellow-700:oklch(55.4% .135 66.442);--color-yellow-800:oklch(47.6% .114 61.907);--color-yellow-900:oklch(42.1% .095 57.708);--color-yellow-950:oklch(28.6% .066 53.813);--color-lime-50:oklch(98.6% .031 120.757);--color-lime-100:oklch(96.7% .067 122.328);--color-lime-200:oklch(93.8% .127 124.321);--color-lime-300:oklch(89.7% .196 126.665);--color-lime-400:oklch(84.1% .238 128.85);--color-lime-500:oklch(76.8% .233 130.85);--color-lime-600:oklch(64.8% .2 131.684);--color-lime-700:oklch(53.2% .157 131.589);--color-lime-800:oklch(45.3% .124 130.933);--color-lime-900:oklch(40.5% .101 131.063);--color-lime-950:oklch(27.4% .072 132.109);--color-green-50:oklch(98.2% .018 155.826);--color-green-100:oklch(96.2% .044 156.743);--color-green-200:oklch(92.5% .084 155.995);--color-green-300:oklch(87.1% .15 154.449);--color-green-400:oklch(79.2% .209 151.711);--color-green-500:oklch(72.3% .219 149.579);--color-green-600:oklch(62.7% .194 149.214);--color-green-700:oklch(52.7% .154 150.069);--color-green-800:oklch(44.8% .119 151.328);--color-green-900:oklch(39.3% .095 152.535);--color-green-950:oklch(26.6% .065 152.934);--color-emerald-50:oklch(97.9% .021 166.113);--color-emerald-100:oklch(95% .052 163.051);--color-emerald-200:oklch(90.5% .093 164.15);--color-emerald-300:oklch(84.5% .143 164.978);--color-emerald-400:oklch(76.5% .177 163.223);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-emerald-800:oklch(43.2% .095 166.913);--color-emerald-900:oklch(37.8% .077 168.94);--color-emerald-950:oklch(26.2% .051 172.552);--color-teal-50:oklch(98.4% .014 180.72);--color-teal-100:oklch(95.3% .051 180.801);--color-teal-200:oklch(91% .096 180.426);--color-teal-300:oklch(85.5% .138 181.071);--color-teal-400:oklch(77.7% .152 181.912);--color-teal-500:oklch(70.4% .14 182.503);--color-teal-600:oklch(60% .118 184.704);--color-teal-700:oklch(51.1% .096 186.391);--color-teal-800:oklch(43.7% .078 188.216);--color-teal-900:oklch(38.6% .063 188.416);--color-teal-950:oklch(27.7% .046 192.524);--color-cyan-50:oklch(98.4% .019 200.873);--color-cyan-100:oklch(95.6% .045 203.388);--color-cyan-200:oklch(91.7% .08 205.041);--color-cyan-300:oklch(86.5% .127 207.078);--color-cyan-400:oklch(78.9% .154 211.53);--color-cyan-500:oklch(71.5% .143 215.221);--color-cyan-600:oklch(60.9% .126 221.723);--color-cyan-700:oklch(52% .105 223.128);--color-cyan-800:oklch(45% .085 224.283);--color-cyan-900:oklch(39.8% .07 227.392);--color-cyan-950:oklch(30.2% .056 229.695);--color-sky-50:oklch(97.7% .013 236.62);--color-sky-100:oklch(95.1% .026 236.824);--color-sky-200:oklch(90.1% .058 230.902);--color-sky-300:oklch(82.8% .111 230.318);--color-sky-400:oklch(74.6% .16 232.661);--color-sky-500:oklch(68.5% .169 237.323);--color-sky-600:oklch(58.8% .158 241.966);--color-sky-700:oklch(50% .134 242.749);--color-sky-800:oklch(44.3% .11 240.79);--color-sky-900:oklch(39.1% .09 240.876);--color-sky-950:oklch(29.3% .066 243.157);--color-blue-50:oklch(97% .014 254.604);--color-blue-100:oklch(93.2% .032 255.585);--color-blue-200:oklch(88.2% .059 254.128);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-500:oklch(62.3% .214 259.815);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-blue-900:oklch(37.9% .146 265.522);--color-blue-950:oklch(28.2% .091 267.935);--color-indigo-50:oklch(96.2% .018 272.314);--color-indigo-100:oklch(93% .034 272.788);--color-indigo-200:oklch(87% .065 274.039);--color-indigo-300:oklch(78.5% .115 274.713);--color-indigo-400:oklch(67.3% .182 276.935);--color-indigo-500:oklch(58.5% .233 277.117);--color-indigo-600:oklch(51.1% .262 276.966);--color-indigo-700:oklch(45.7% .24 277.023);--color-indigo-800:oklch(39.8% .195 277.366);--color-indigo-900:oklch(35.9% .144 278.697);--color-indigo-950:oklch(25.7% .09 281.288);--color-violet-50:oklch(96.9% .016 293.756);--color-violet-100:oklch(94.3% .029 294.588);--color-violet-200:oklch(89.4% .057 293.283);--color-violet-300:oklch(81.1% .111 293.571);--color-violet-400:oklch(70.2% .183 293.541);--color-violet-500:oklch(60.6% .25 292.717);--color-violet-600:oklch(54.1% .281 293.009);--color-violet-700:oklch(49.1% .27 292.581);--color-violet-800:oklch(43.2% .232 292.759);--color-violet-900:oklch(38% .189 293.745);--color-violet-950:oklch(28.3% .141 291.089);--color-purple-50:oklch(97.7% .014 308.299);--color-purple-100:oklch(94.6% .033 307.174);--color-purple-200:oklch(90.2% .063 306.703);--color-purple-300:oklch(82.7% .119 306.383);--color-purple-400:oklch(71.4% .203 305.504);--color-purple-500:oklch(62.7% .265 303.9);--color-purple-600:oklch(55.8% .288 302.321);--color-purple-700:oklch(49.6% .265 301.924);--color-purple-800:oklch(43.8% .218 303.724);--color-purple-900:oklch(38.1% .176 304.987);--color-purple-950:oklch(29.1% .149 302.717);--color-fuchsia-50:oklch(97.7% .017 320.058);--color-fuchsia-100:oklch(95.2% .037 318.852);--color-fuchsia-200:oklch(90.3% .076 319.62);--color-fuchsia-300:oklch(83.3% .145 321.434);--color-fuchsia-400:oklch(74% .238 322.16);--color-fuchsia-500:oklch(66.7% .295 322.15);--color-fuchsia-600:oklch(59.1% .293 322.896);--color-fuchsia-700:oklch(51.8% .253 323.949);--color-fuchsia-800:oklch(45.2% .211 324.591);--color-fuchsia-900:oklch(40.1% .17 325.612);--color-fuchsia-950:oklch(29.3% .136 325.661);--color-pink-50:oklch(97.1% .014 343.198);--color-pink-100:oklch(94.8% .028 342.258);--color-pink-200:oklch(89.9% .061 343.231);--color-pink-300:oklch(82.3% .12 346.018);--color-pink-400:oklch(71.8% .202 349.761);--color-pink-500:oklch(65.6% .241 354.308);--color-pink-600:oklch(59.2% .249 .584);--color-pink-700:oklch(52.5% .223 3.958);--color-pink-800:oklch(45.9% .187 3.815);--color-pink-900:oklch(40.8% .153 2.432);--color-pink-950:oklch(28.4% .109 3.907);--color-rose-50:oklch(96.9% .015 12.422);--color-rose-100:oklch(94.1% .03 12.58);--color-rose-200:oklch(89.2% .058 10.001);--color-rose-300:oklch(81% .117 11.638);--color-rose-400:oklch(71.2% .194 13.428);--color-rose-500:oklch(64.5% .246 16.439);--color-rose-600:oklch(58.6% .253 17.585);--color-rose-700:oklch(51.4% .222 16.935);--color-rose-800:oklch(45.5% .188 13.697);--color-rose-900:oklch(41% .159 10.272);--color-rose-950:oklch(27.1% .105 12.094);--color-slate-50:oklch(98.4% .003 247.858);--color-slate-100:oklch(96.8% .007 247.896);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-300:oklch(86.9% .022 252.894);--color-slate-400:oklch(70.4% .04 256.788);--color-slate-500:oklch(55.4% .046 257.417);--color-slate-600:oklch(44.6% .043 257.281);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-800:oklch(27.9% .041 260.031);--color-slate-900:oklch(20.8% .042 265.755);--color-slate-950:oklch(12.9% .042 264.695);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-neutral-500:oklch(55.6% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--text-base:1rem;--text-base--line-height:calc(1.5 / 1);--text-lg:1.125rem;--text-lg--line-height:calc(1.75 / 1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2 / 1.5);--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--leading-normal:1.5;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--inset-shadow-sm:inset 0 2px 4px #0000000d;--ease-in:cubic-bezier(.4, 0, 1, 1);--ease-out:cubic-bezier(0, 0, .2, 1);--ease-in-out:cubic-bezier(.4, 0, .2, 1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--color-border-subtle:var(--c-color-neutral-border-quiet)}}@layer base,components;@layer cp{@layer preflight{*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.9em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}ol,ul,menu{list-style:none}img{max-width:100%;height:auto;display:flex}}@layer theme{:root,:host{--color-gray-50:#eaecef;--color-gray-100:#d4d7dd;--color-gray-200:#c2c6ce;--color-gray-300:#9ba1ae;--color-gray-400:#888e9c;--color-gray-500:#757b8a;--color-gray-600:#626978;--color-gray-700:#4f5665;--color-gray-800:#3e4555;--color-gray-900:#2e3545;--color-gray-950:#1e2635;--color-red-50:#fae8e8;--color-red-100:#f6cdcc;--color-red-200:#f4b6b4;--color-red-300:#ee817e;--color-red-400:#e8645f;--color-red-500:#dc463e;--color-red-600:#c72c22;--color-red-700:#a32720;--color-red-800:#80231f;--color-red-900:#631b18;--color-red-950:#4b110f;--color-orange-50:#fbead2;--color-orange-100:#f7d0a1;--color-orange-200:#f4ba7c;--color-orange-300:#ed8633;--color-orange-400:#e6692c;--color-orange-500:#d45124;--color-orange-600:#b5441d;--color-orange-700:#963816;--color-orange-800:#792c12;--color-orange-900:#5e220e;--color-orange-950:#44180b;--color-amber-50:#fbecaf;--color-amber-100:#f7d36f;--color-amber-200:#f4bd44;--color-amber-300:#df8e32;--color-amber-400:#ca7c2c;--color-amber-500:#b56825;--color-amber-600:#a0551e;--color-amber-700:#8a4217;--color-amber-800:#703411;--color-amber-900:#58270b;--color-amber-950:#411b06;--color-emerald-50:#cff6e1;--color-emerald-100:#9ae7be;--color-emerald-200:#77d9a6;--color-emerald-300:#51b37f;--color-emerald-400:#479e70;--color-emerald-500:#3d8961;--color-emerald-600:#327555;--color-emerald-700:#286048;--color-emerald-800:#1e4d3c;--color-emerald-900:#173b2e;--color-emerald-950:#112a21;--color-blue-50:#e2edfd;--color-blue-100:#c1d9fb;--color-blue-200:#a5c8fa;--color-blue-300:#68a2f7;--color-blue-400:#518cf6;--color-blue-500:#3e74f2;--color-blue-600:#305ce7;--color-blue-700:#2244d7;--color-blue-800:#2138a7;--color-blue-900:#1d2d7a;--color-blue-950:#192250;--color-yellow-50:#fcef90;--color-yellow-100:#f7d358;--color-yellow-200:#eebf40;--color-yellow-300:#ce9733;--color-yellow-400:#bd822c;--color-yellow-500:#aa6f24;--color-yellow-600:#945c1d;--color-yellow-700:#7c4b16;--color-yellow-800:#633c12;--color-yellow-900:#4c2e0e;--color-yellow-950:#37210a;--color-slate-50:#e9eef3;--color-slate-100:#ced7e2;--color-slate-200:#bdc7d4;--color-slate-300:#95a2b4;--color-slate-400:#828fa4;--color-slate-500:#6f7c94;--color-slate-600:#5c6982;--color-slate-700:#4a576d;--color-slate-800:#3a455a;--color-slate-900:#2b3549;--color-slate-950:#1e2637;--color-lime-50:#ddf7a2;--color-lime-100:#b4e758;--color-lime-200:#9ed742;--color-lime-300:#7ab034;--color-lime-400:#6a9c2d;--color-lime-500:#5d8726;--color-lime-600:#50731f;--color-lime-700:#435e18;--color-lime-800:#344c13;--color-lime-900:#273a0e;--color-lime-950:#1b2a09;--color-green-50:#cef7d8;--color-green-100:#96e9a8;--color-green-200:#6add82;--color-green-300:#52b555;--color-green-400:#48a04a;--color-green-500:#3e8b42;--color-green-600:#34763b;--color-green-700:#2b6133;--color-green-800:#234e2b;--color-green-900:#1b3b21;--color-green-950:#142b18;--color-teal-50:#c7f7ec;--color-teal-100:#90e7d6;--color-teal-200:#6dd7c4;--color-teal-300:#4fb0a1;--color-teal-400:#459c90;--color-teal-500:#3b877f;--color-teal-600:#31736d;--color-teal-700:#275f5b;--color-teal-800:#1e4c49;--color-teal-900:#163a39;--color-teal-950:#0f2a2a;--color-cyan-50:#c9f5fc;--color-cyan-100:#7fe6fa;--color-cyan-200:#66d4f1;--color-cyan-300:#4dacce;--color-cyan-400:#4397bb;--color-cyan-500:#3983a5;--color-cyan-600:#2f6f8d;--color-cyan-700:#265c74;--color-cyan-800:#1e4a5e;--color-cyan-900:#17384b;--color-cyan-950:#102836;--color-sky-50:#dceffc;--color-sky-100:#aaddfb;--color-sky-200:#84cefa;--color-sky-300:#4ca8eb;--color-sky-400:#4193d9;--color-sky-500:#377fc5;--color-sky-600:#2e6ca7;--color-sky-700:#25598a;--color-sky-800:#1d476f;--color-sky-900:#163655;--color-sky-950:#10273e;--color-zinc-50:#ededee;--color-zinc-100:#d6d6da;--color-zinc-200:#c5c5ca;--color-zinc-300:#a0a0a7;--color-zinc-400:#8d8d95;--color-zinc-500:#7b7b83;--color-zinc-600:#686872;--color-zinc-700:#55555f;--color-zinc-800:#44444c;--color-zinc-900:#34343b;--color-zinc-950:#25252b;--color-violet-50:#eeebfd;--color-violet-100:#d8d2fb;--color-violet-200:#c9bdfa;--color-violet-300:#a991f8;--color-violet-400:#9979f7;--color-violet-500:#8b5df5;--color-violet-600:#7c3cf4;--color-violet-700:#6a1be3;--color-violet-800:#5518b5;--color-violet-900:#401889;--color-violet-950:#2d0f69;--color-purple-50:#f2eafd;--color-purple-100:#e2cefb;--color-purple-200:#d6b9f9;--color-purple-300:#be88f8;--color-purple-400:#b16df7;--color-purple-500:#a24ff6;--color-purple-600:#902bf2;--color-purple-700:#7815d6;--color-purple-800:#6118a6;--color-purple-900:#4b167c;--color-purple-950:#380963;--color-fuchsia-50:#f7e7fd;--color-fuchsia-100:#eecafb;--color-fuchsia-200:#e9b2f9;--color-fuchsia-300:#dd78f7;--color-fuchsia-400:#d15bed;--color-fuchsia-500:#c23be0;--color-fuchsia-600:#ac22c8;--color-fuchsia-700:#8e1ea3;--color-fuchsia-800:#721c7f;--color-fuchsia-900:#571861;--color-fuchsia-950:#401146;--color-pink-50:#f9e7f2;--color-pink-100:#f4cbe4;--color-pink-200:#f1b3d8;--color-pink-300:#eb7bba;--color-pink-400:#e65ba6;--color-pink-500:#db3b88;--color-pink-600:#c2296a;--color-pink-700:#a22054;--color-pink-800:#801d44;--color-pink-900:#631735;--color-pink-950:#481127;--color-rose-50:#fbe8ea;--color-rose-100:#f7ccd0;--color-rose-200:#f3b6bd;--color-rose-300:#ee7f8f;--color-rose-400:#ec5e74;--color-rose-500:#e43852;--color-rose-600:#c7293f;--color-rose-700:#a52138;--color-rose-800:#851930;--color-rose-900:#681225;--color-rose-950:#4e0b1b;--color-neutral-50:#ededed;--color-neutral-100:#d7d7d7;--color-neutral-200:#c5c5c5;--color-neutral-300:#a0a0a0;--color-neutral-400:#8e8e8e;--color-neutral-500:#7c7c7c;--color-neutral-600:#686868;--color-neutral-700:#565656;--color-neutral-800:#444;--color-neutral-900:#343434;--color-neutral-950:#262626;--color-stone-50:#eeedec;--color-stone-100:#d8d7d5;--color-stone-200:#c8c5c2;--color-stone-300:#a4a09b;--color-stone-400:#928e88;--color-stone-500:#807a75;--color-stone-600:#6d6862;--color-stone-700:#5a5550;--color-stone-800:#48443f;--color-stone-900:#373430;--color-stone-950:#282523;--color-indigo-50:#e7ebfd;--color-indigo-100:#cfd5fb;--color-indigo-200:#bbc2fa;--color-indigo-300:#9198f8;--color-indigo-400:#7b83f6;--color-indigo-500:#6b6cec;--color-indigo-600:#5a54e1;--color-indigo-700:#483bd6;--color-indigo-800:#3a2eaf;--color-indigo-900:#2e2681;--color-indigo-950:#221e56;--color-base-50:#fff;--color-base-100:#f2f5f8;--color-base-200:#dae1e9;--color-base-300:#c8d2de;--color-base-400:#a6b1c1;--color-base-500:#6c7a92;--color-base-600:#5d6a83;--color-base-700:#4d5970;--color-base-800:#313c50;--color-base-900:#1f283b;--color-base-950:#0f141c;--color-static-gray-50:#eaecef;--color-static-gray-100:#d4d7dd;--color-static-gray-200:#c2c6ce;--color-static-gray-300:#9ba1ae;--color-static-gray-400:#888e9c;--color-static-gray-500:#757b8a;--color-static-gray-600:#626978;--color-static-gray-700:#4f5665;--color-static-gray-800:#3e4555;--color-static-gray-900:#2e3545;--color-static-gray-950:#1e2635;--color-static-red-50:#fae8e8;--color-static-red-100:#f6cdcc;--color-static-red-200:#f4b6b4;--color-static-red-300:#ee817e;--color-static-red-400:#e8645f;--color-static-red-500:#dc463e;--color-static-red-600:#c72c22;--color-static-red-700:#a32720;--color-static-red-800:#80231f;--color-static-red-900:#631b18;--color-static-red-950:#4b110f;--color-static-orange-50:#fbead2;--color-static-orange-100:#f7d0a1;--color-static-orange-200:#f4ba7c;--color-static-orange-300:#ed8633;--color-static-orange-400:#e6692c;--color-static-orange-500:#d45124;--color-static-orange-600:#b5441d;--color-static-orange-700:#963816;--color-static-orange-800:#792c12;--color-static-orange-900:#5e220e;--color-static-orange-950:#44180b;--color-static-amber-50:#fbecaf;--color-static-amber-100:#f7d36f;--color-static-amber-200:#f4bd44;--color-static-amber-300:#df8e32;--color-static-amber-400:#ca7c2c;--color-static-amber-500:#b56825;--color-static-amber-600:#a0551e;--color-static-amber-700:#8a4217;--color-static-amber-800:#703411;--color-static-amber-900:#58270b;--color-static-amber-950:#411b06;--color-static-emerald-50:#cff6e1;--color-static-emerald-100:#9ae7be;--color-static-emerald-200:#77d9a6;--color-static-emerald-300:#51b37f;--color-static-emerald-400:#479e70;--color-static-emerald-500:#3d8961;--color-static-emerald-600:#327555;--color-static-emerald-700:#286048;--color-static-emerald-800:#1e4d3c;--color-static-emerald-900:#173b2e;--color-static-emerald-950:#112a21;--color-static-blue-50:#e2edfd;--color-static-blue-100:#c1d9fb;--color-static-blue-200:#a5c8fa;--color-static-blue-300:#68a2f7;--color-static-blue-400:#518cf6;--color-static-blue-500:#3e74f2;--color-static-blue-600:#305ce7;--color-static-blue-700:#2244d7;--color-static-blue-800:#2138a7;--color-static-blue-900:#1d2d7a;--color-static-blue-950:#192250;--color-static-yellow-50:#fcef90;--color-static-yellow-100:#f7d358;--color-static-yellow-200:#eebf40;--color-static-yellow-300:#ce9733;--color-static-yellow-400:#bd822c;--color-static-yellow-500:#aa6f24;--color-static-yellow-600:#945c1d;--color-static-yellow-700:#7c4b16;--color-static-yellow-800:#633c12;--color-static-yellow-900:#4c2e0e;--color-static-yellow-950:#37210a;--color-static-slate-50:#e9eef3;--color-static-slate-100:#ced7e2;--color-static-slate-200:#bdc7d4;--color-static-slate-300:#95a2b4;--color-static-slate-400:#828fa4;--color-static-slate-500:#6f7c94;--color-static-slate-600:#5c6982;--color-static-slate-700:#4a576d;--color-static-slate-800:#3a455a;--color-static-slate-900:#2b3549;--color-static-slate-950:#1e2637;--color-static-lime-50:#ddf7a2;--color-static-lime-100:#b4e758;--color-static-lime-200:#9ed742;--color-static-lime-300:#7ab034;--color-static-lime-400:#6a9c2d;--color-static-lime-500:#5d8726;--color-static-lime-600:#50731f;--color-static-lime-700:#435e18;--color-static-lime-800:#344c13;--color-static-lime-900:#273a0e;--color-static-lime-950:#1b2a09;--color-static-green-50:#cef7d8;--color-static-green-100:#96e9a8;--color-static-green-200:#6add82;--color-static-green-300:#52b555;--color-static-green-400:#48a04a;--color-static-green-500:#3e8b42;--color-static-green-600:#34763b;--color-static-green-700:#2b6133;--color-static-green-800:#234e2b;--color-static-green-900:#1b3b21;--color-static-green-950:#142b18;--color-static-teal-50:#c7f7ec;--color-static-teal-100:#90e7d6;--color-static-teal-200:#6dd7c4;--color-static-teal-300:#4fb0a1;--color-static-teal-400:#459c90;--color-static-teal-500:#3b877f;--color-static-teal-600:#31736d;--color-static-teal-700:#275f5b;--color-static-teal-800:#1e4c49;--color-static-teal-900:#163a39;--color-static-teal-950:#0f2a2a;--color-static-cyan-50:#c9f5fc;--color-static-cyan-100:#7fe6fa;--color-static-cyan-200:#66d4f1;--color-static-cyan-300:#4dacce;--color-static-cyan-400:#4397bb;--color-static-cyan-500:#3983a5;--color-static-cyan-600:#2f6f8d;--color-static-cyan-700:#265c74;--color-static-cyan-800:#1e4a5e;--color-static-cyan-900:#17384b;--color-static-cyan-950:#102836;--color-static-sky-50:#dceffc;--color-static-sky-100:#aaddfb;--color-static-sky-200:#84cefa;--color-static-sky-300:#4ca8eb;--color-static-sky-400:#4193d9;--color-static-sky-500:#377fc5;--color-static-sky-600:#2e6ca7;--color-static-sky-700:#25598a;--color-static-sky-800:#1d476f;--color-static-sky-900:#163655;--color-static-sky-950:#10273e;--color-static-zinc-50:#ededee;--color-static-zinc-100:#d6d6da;--color-static-zinc-200:#c5c5ca;--color-static-zinc-300:#a0a0a7;--color-static-zinc-400:#8d8d95;--color-static-zinc-500:#7b7b83;--color-static-zinc-600:#686872;--color-static-zinc-700:#55555f;--color-static-zinc-800:#44444c;--color-static-zinc-900:#34343b;--color-static-zinc-950:#25252b;--color-static-violet-50:#eeebfd;--color-static-violet-100:#d8d2fb;--color-static-violet-200:#c9bdfa;--color-static-violet-300:#a991f8;--color-static-violet-400:#9979f7;--color-static-violet-500:#8b5df5;--color-static-violet-600:#7c3cf4;--color-static-violet-700:#6a1be3;--color-static-violet-800:#5518b5;--color-static-violet-900:#401889;--color-static-violet-950:#2d0f69;--color-static-purple-50:#f2eafd;--color-static-purple-100:#e2cefb;--color-static-purple-200:#d6b9f9;--color-static-purple-300:#be88f8;--color-static-purple-400:#b16df7;--color-static-purple-500:#a24ff6;--color-static-purple-600:#902bf2;--color-static-purple-700:#7815d6;--color-static-purple-800:#6118a6;--color-static-purple-900:#4b167c;--color-static-purple-950:#380963;--color-static-fuchsia-50:#f7e7fd;--color-static-fuchsia-100:#eecafb;--color-static-fuchsia-200:#e9b2f9;--color-static-fuchsia-300:#dd78f7;--color-static-fuchsia-400:#d15bed;--color-static-fuchsia-500:#c23be0;--color-static-fuchsia-600:#ac22c8;--color-static-fuchsia-700:#8e1ea3;--color-static-fuchsia-800:#721c7f;--color-static-fuchsia-900:#571861;--color-static-fuchsia-950:#401146;--color-static-pink-50:#f9e7f2;--color-static-pink-100:#f4cbe4;--color-static-pink-200:#f1b3d8;--color-static-pink-300:#eb7bba;--color-static-pink-400:#e65ba6;--color-static-pink-500:#db3b88;--color-static-pink-600:#c2296a;--color-static-pink-700:#a22054;--color-static-pink-800:#801d44;--color-static-pink-900:#631735;--color-static-pink-950:#481127;--color-static-rose-50:#fbe8ea;--color-static-rose-100:#f7ccd0;--color-static-rose-200:#f3b6bd;--color-static-rose-300:#ee7f8f;--color-static-rose-400:#ec5e74;--color-static-rose-500:#e43852;--color-static-rose-600:#c7293f;--color-static-rose-700:#a52138;--color-static-rose-800:#851930;--color-static-rose-900:#681225;--color-static-rose-950:#4e0b1b;--color-static-neutral-50:#ededed;--color-static-neutral-100:#d7d7d7;--color-static-neutral-200:#c5c5c5;--color-static-neutral-300:#a0a0a0;--color-static-neutral-400:#8e8e8e;--color-static-neutral-500:#7c7c7c;--color-static-neutral-600:#686868;--color-static-neutral-700:#565656;--color-static-neutral-800:#444;--color-static-neutral-900:#343434;--color-static-neutral-950:#262626;--color-static-stone-50:#eeedec;--color-static-stone-100:#d8d7d5;--color-static-stone-200:#c8c5c2;--color-static-stone-300:#a4a09b;--color-static-stone-400:#928e88;--color-static-stone-500:#807a75;--color-static-stone-600:#6d6862;--color-static-stone-700:#5a5550;--color-static-stone-800:#48443f;--color-static-stone-900:#373430;--color-static-stone-950:#282523;--color-static-indigo-50:#e7ebfd;--color-static-indigo-100:#cfd5fb;--color-static-indigo-200:#bbc2fa;--color-static-indigo-300:#9198f8;--color-static-indigo-400:#7b83f6;--color-static-indigo-500:#6b6cec;--color-static-indigo-600:#5a54e1;--color-static-indigo-700:#483bd6;--color-static-indigo-800:#3a2eaf;--color-static-indigo-900:#2e2681;--color-static-indigo-950:#221e56;--color-static-base-50:#fff;--color-static-base-100:#f2f5f8;--color-static-base-200:#dae1e9;--color-static-base-300:#c8d2de;--color-static-base-400:#a6b1c1;--color-static-base-500:#6c7a92;--color-static-base-600:#5d6a83;--color-static-base-700:#4d5970;--color-static-base-800:#313c50;--color-static-base-900:#1f283b;--color-static-base-950:#0f141c}[data-theme=dark]{--color-gray-50:#3b4252;--color-gray-100:#535a69;--color-gray-200:#626877;--color-gray-300:#717786;--color-gray-400:#828896;--color-gray-500:#949aa8;--color-gray-600:#acb1bc;--color-gray-700:#bcc0c9;--color-gray-800:#d0d4da;--color-gray-900:#e5e6ea;--color-gray-950:#f6f7f9;--color-red-50:#7b221f;--color-red-100:#ab2821;--color-red-200:#c62b22;--color-red-300:#da3e35;--color-red-400:#e55b56;--color-red-500:#ed7775;--color-red-600:#f19997;--color-red-700:#f3afae;--color-red-800:#f6c9c8;--color-red-900:#f9e1e0;--color-red-950:#fdf5f5;--color-orange-50:#732a11;--color-orange-100:#9c3a17;--color-orange-200:#b3441d;--color-orange-300:#cd4e22;--color-orange-400:#e35f29;--color-orange-500:#eb7d31;--color-orange-600:#f19e4d;--color-orange-700:#f4b371;--color-orange-800:#f7cc9b;--color-orange-900:#fae3c4;--color-orange-950:#fdf6eb;--color-amber-50:#6c3210;--color-amber-100:#8f4618;--color-amber-200:#9f541d;--color-amber-300:#b16423;--color-amber-400:#c47529;--color-amber-500:#d88830;--color-amber-600:#f0a038;--color-amber-700:#f3b63f;--color-amber-800:#f7cf67;--color-amber-900:#fae694;--color-amber-950:#fdf7e1;--color-emerald-50:#1d4a3a;--color-emerald-100:#2a654b;--color-emerald-200:#327454;--color-emerald-300:#3a855f;--color-emerald-400:#44986b;--color-emerald-500:#4dac7a;--color-emerald-600:#59c48d;--color-emerald-700:#6bd49e;--color-emerald-800:#94e4ba;--color-emerald-900:#bdf2d5;--color-emerald-950:#eafbf2;--color-blue-50:#20369e;--color-blue-100:#2448de;--color-blue-200:#2f5be7;--color-blue-300:#3b6ff0;--color-blue-400:#4a84f6;--color-blue-500:#609bf7;--color-blue-600:#83b3f8;--color-blue-700:#9dc2f9;--color-blue-800:#bcd5fb;--color-blue-900:#d9e7fc;--color-blue-950:#f3f8fe;--color-yellow-50:#5f3a11;--color-yellow-100:#814f17;--color-yellow-200:#945b1d;--color-yellow-300:#a56a23;--color-yellow-400:#b77c2a;--color-yellow-500:#c99031;--color-yellow-600:#dca839;--color-yellow-700:#eaba3f;--color-yellow-800:#f6d054;--color-yellow-900:#fbe782;--color-yellow-950:#fdf8d0;--color-slate-50:#374257;--color-slate-100:#4e5b71;--color-slate-200:#5c6981;--color-slate-300:#6b7890;--color-slate-400:#7c899f;--color-slate-500:#8f9baf;--color-slate-600:#a6b2c2;--color-slate-700:#b7c1cf;--color-slate-800:#cbd5e0;--color-slate-900:#e1e7ee;--color-slate-950:#f5f7fa;--color-lime-50:#324912;--color-lime-100:#46631a;--color-lime-200:#50721f;--color-lime-300:#5a8324;--color-lime-400:#66962b;--color-lime-500:#74a931;--color-lime-600:#8ac13a;--color-lime-700:#9ad140;--color-lime-800:#aee54d;--color-lime-900:#d2f28e;--color-lime-950:#f2fcd7;--color-green-50:#214a29;--color-green-100:#2d6635;--color-green-200:#34753a;--color-green-300:#3b8740;--color-green-400:#449a47;--color-green-500:#4fae51;--color-green-600:#5ac760;--color-green-700:#63d878;--color-green-800:#8fe7a2;--color-green-900:#bcf3c9;--color-green-950:#ebfbee;--color-teal-50:#1d4946;--color-teal-100:#29635e;--color-teal-200:#31726c;--color-teal-300:#39837b;--color-teal-400:#42968b;--color-teal-500:#4ca99c;--color-teal-600:#58c2b0;--color-teal-700:#63d2c0;--color-teal-800:#8ae4d3;--color-teal-900:#aef4e5;--color-teal-950:#e8fbf6;--color-cyan-50:#1c465a;--color-cyan-100:#276079;--color-cyan-200:#2f6f8c;--color-cyan-300:#377fa0;--color-cyan-400:#4091b5;--color-cyan-500:#4aa5c7;--color-cyan-600:#56bdde;--color-cyan-700:#5fceee;--color-cyan-800:#7be2f8;--color-cyan-900:#b2f1fb;--color-cyan-950:#e5fbfe;--color-sky-50:#1c446a;--color-sky-100:#275d8f;--color-sky-200:#2e6ba5;--color-sky-300:#357bbf;--color-sky-400:#3e8dd4;--color-sky-500:#48a1e5;--color-sky-600:#55b9f9;--color-sky-700:#7ac9fa;--color-sky-800:#a5dbfb;--color-sky-900:#d0eafc;--color-sky-950:#f0f8fe;--color-zinc-50:#414149;--color-zinc-100:#595962;--color-zinc-200:#676771;--color-zinc-300:#777780;--color-zinc-400:#88888f;--color-zinc-500:#9a9aa1;--color-zinc-600:#b1b1b6;--color-zinc-700:#c0c0c5;--color-zinc-800:#d4d4d7;--color-zinc-900:#e6e6e8;--color-zinc-950:#f6f6f7;--color-violet-50:#5118ac;--color-violet-100:#6e20e9;--color-violet-200:#7c3af4;--color-violet-300:#8757f5;--color-violet-400:#9570f6;--color-violet-500:#a389f7;--color-violet-600:#b7a5f9;--color-violet-700:#c5b8f9;--color-violet-800:#d6cefb;--color-violet-900:#e7e3fc;--color-violet-950:#f7f6fe;--color-purple-50:#5c199c;--color-purple-100:#7d18dd;--color-purple-200:#8f2af1;--color-purple-300:#9e48f5;--color-purple-400:#ac65f7;--color-purple-500:#b97ff7;--color-purple-600:#c99ef8;--color-purple-700:#d3b3f9;--color-purple-800:#e0cbfb;--color-purple-900:#ede1fd;--color-purple-950:#f9f5fe;--color-fuchsia-50:#6d1c79;--color-fuchsia-100:#951eab;--color-fuchsia-200:#ab22c6;--color-fuchsia-300:#be34dd;--color-fuchsia-400:#cd51e9;--color-fuchsia-500:#da6df5;--color-fuchsia-600:#e392f8;--color-fuchsia-700:#e8aaf9;--color-fuchsia-800:#edc6fa;--color-fuchsia-900:#f4dffc;--color-fuchsia-950:#fbf5fe;--color-pink-50:#7a1d42;--color-pink-100:#a92259;--color-pink-200:#c12869;--color-pink-300:#d73681;--color-pink-400:#e4509e;--color-pink-500:#e971b5;--color-pink-600:#ee95c8;--color-pink-700:#f0acd4;--color-pink-800:#f3c7e2;--color-pink-900:#f7e0ee;--color-pink-950:#fcf5f9;--color-rose-50:#80172e;--color-rose-100:#ac2239;--color-rose-200:#c6293f;--color-rose-300:#df344c;--color-rose-400:#eb526b;--color-rose-500:#ee7586;--color-rose-600:#f098a3;--color-rose-700:#f2afb6;--color-rose-800:#f6c8cd;--color-rose-900:#f9e0e3;--color-rose-950:#fdf5f5;--color-neutral-50:#424242;--color-neutral-100:#5a5a5a;--color-neutral-200:#686868;--color-neutral-300:#777;--color-neutral-400:#888;--color-neutral-500:#9a9a9a;--color-neutral-600:#b0b0b0;--color-neutral-700:silver;--color-neutral-800:#d4d4d4;--color-neutral-900:#e6e6e6;--color-neutral-950:#f6f6f6;--color-stone-50:#45423d;--color-stone-100:#5e5954;--color-stone-200:#6d6761;--color-stone-300:#7c7771;--color-stone-400:#8d8782;--color-stone-500:#9e9a95;--color-stone-600:#b4b0ac;--color-stone-700:#c3c0bd;--color-stone-800:#d5d3d1;--color-stone-900:#e7e6e5;--color-stone-950:#f7f7f6;--color-indigo-50:#372da6;--color-indigo-100:#4c41d9;--color-indigo-200:#5a54e1;--color-indigo-300:#6767ea;--color-indigo-400:#777cf3;--color-indigo-500:#8a91f8;--color-indigo-600:#a4abf9;--color-indigo-700:#b6bcfa;--color-indigo-800:#cbd2fb;--color-indigo-900:#e0e5fc;--color-indigo-950:#f5f7fe;--color-base-50:#273043;--color-base-100:#333d51;--color-base-200:#3e495e;--color-base-300:#475369;--color-base-400:#5d6a82;--color-base-500:#919db0;--color-base-600:#a5b0c1;--color-base-700:#bec9d5;--color-base-800:#f5f7fa;--color-base-900:#fff;--color-base-950:#fff}:root,:host{--c-text-lg:calc(16rem / 16);--c-text-base:calc(14rem / 16);--c-text-sm:calc(11rem / 16);--c-text-xs:calc(9rem / 16);--c-leading-normal:1.42;--c-surface-default:var(--color-base-100);--c-surface-raised:var(--color-base-50);--c-surface-sunken:var(--color-slate-200);--c-surface-form:var(--color-base-100);--c-surface-overlay:var(--color-base-50);--c-text-white:var(--color-white);--c-text-default:var(--color-slate-900);--c-text-quiet:var(--color-slate-600);--c-text-link:var(--color-blue-600);--c-shadow-sunken:var(--inset-shadow-sm);--c-shadow-raised:var(--shadow-sm);--c-shadow-overlay:var(--shadow-lg);--c-color-mix-hover:currentColor 10%;--c-color-mix-active:currentColor 20%;--c-font-body:system-ui, BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;--c-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--c-radius-sm:3px;--c-radius-md:4px;--c-radius-lg:6px;--c-radius-xl:12px;--c-radius-full:calc(Infinity * 1px);--c-spacing:.25rem;--c-spacing-1px:1px;--c-spacing-xs:calc(var(--c-spacing) * .5);--c-spacing-sm:calc(var(--c-spacing) * 1);--c-spacing-md:calc(var(--c-spacing) * 2);--c-spacing-lg:calc(var(--c-spacing) * 4);--c-spacing-xl:calc(var(--c-spacing) * 8);--c-spacing-2xl:calc(var(--c-spacing) * 16);--c-size-touch-target:calc(34rem / 16);--c-size-icon-xs:calc(10rem / 16);--c-size-icon-sm:calc(12rem / 16);--c-size-icon-md:calc(14rem / 16);--c-size-icon-lg:calc(22rem / 16);--c-size-icon-xl:calc(30rem / 16);--c-size-control-xs:calc(16rem / 16);--c-size-control-sm:calc(24rem / 16);--c-size-control-md:calc(34rem / 16);--c-size-control-lg:calc(44rem / 16);--c-shadow-2xs:0 1px #0000000d;--c-shadow-xs:0 1px 2px 0 #0000000d;--c-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--c-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--c-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--c-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--c-shadow-2xl:0 25px 50px -12px #00000040;--c-status-live-fill:var(--color-emerald-500);--c-status-live-border:var(--color-emerald-700);--c-status-live-text:var(--color-emerald-700);--c-status-enabled-fill:var(--color-emerald-500);--c-status-enabled-border:var(--color-emerald-700);--c-status-enabled-text:var(--color-emerald-700);--c-status-pending-fill:var(--color-orange-400);--c-status-pending-text:var(--color-orange-700);--c-status-pending-border:var(--color-orange-700);--c-status-expired-fill:var(--color-red-400);--c-status-expired-text:var(--color-red-700);--c-status-expired-border:var(--color-red-700);--c-status-disabled-fill:var(--color-slate-200);--c-status-disabled-text:var(--color-slate-600);--c-status-disabled-border:var(--color-slate-600);--c-form-control-fill:var(--c-surface-form);--c-form-control-text:var(--c-text-default);--c-form-control-border-color:var(--color-slate-500);--c-form-control-border-width:1px;--c-form-control-border-style:solid;--c-form-control-radius:var(--c-radius-md);--c-form-control-spacing-inline:var(--c-spacing-md);--c-form-control-spacing-block:var(--c-spacing-sm);--c-form-control-height:var(--c-size-control-md);--c-input-fill:var(--c-form-control-fill);--c-input-text:var(--c-form-control-text);--c-input-border-color:var(--c-form-control-border-color);--c-input-border-width:var(--c-form-control-border-width);--c-input-border-style:var(--c-form-control-border-style);--c-input-radius:var(--c-form-control-radius);--c-input-spacing-inline:var(--c-form-control-spacing-inline);--c-input-spacing-block:var(--c-form-control-spacing-block);--c-input-shadow:var(--inset-shadow-sm);--c-select-fill:var(--c-form-control-fill);--c-select-text:var(--c-form-control-text);--c-select-border-color:var(--c-form-control-border-color);--c-select-border-width:var(--c-form-control-border-width);--c-select-border-style:var(--c-form-control-border-style);--c-select-radius:var(--c-form-control-radius);--c-select-spacing-inline:var(--c-form-control-spacing-inline);--c-select-spacing-block:var(--c-form-control-spacing-block);--c-select-shadow:var(--shadow-sm);--c-button-default-fill:var(--color-slate-200);--c-button-default-fill-hover:var(--color-slate-300);--c-button-default-text:var(--c-text-default);--c-button-default-text-hover:var(--c-button-default-text);--c-button-default-border:var(--color-slate-300);--c-button-default-border-hover:var(--c-button-default-border);--c-button-primary-fill:var(--color-red-600);--c-button-primary-border:var(--color-red-700);--c-button-primary-text:var(--color-white);--c-button-primary-fill-hover:var(--color-red-700);--c-button-primary-border-hover:var(--c-button-primary-border);--c-button-primary-text-hover:var(--c-button-primary-text);--c-button-danger-fill:var(--color-red-600);--c-button-danger-border:var(--color-red-700);--c-button-danger-text:var(--color-white);--c-button-danger-fill-hover:var(--color-red-700);--c-button-danger-border-hover:var(--c-button-danger-border);--c-button-danger-text-hover:var(--c-button-danger-text);--c-pane-fill:var(--c-surface-overlay);--c-pane-text:var(--c-text-default);--c-pane-padding:var(--c-spacing-lg);--c-pane-border-width:1px;--c-pane-border-style:solid;--c-pane-border-color:transparent;--c-pane-radius:var(--c-radius-md);--c-pane-shadow:0 0 0 1px var(--gray-200), 0 2px 12px hsl(from var(--gray-200) h s l / 50%);--c-callout-radius:var(--c-pane-radius);--c-modal-fill:var(--c-pane-fill);--c-modal-text:var(--c-pane-text);--c-modal-radius:var(--c-radius-lg);--c-modal-border-width:var(--c-pane-border-width);--c-modal-border-style:var(--c-pane-border-style);--c-modal-border-color:var(--c-pane-border-color);--c-modal-padding:var(--c-pane-padding);--c-modal-shadow:0 0 0 1px hsl(from var(--color-gray-400) h s l / 25%), 0 25px 100px hsl(from var(--color-gray-900) h s l / 50%);--wa-panel-border-style:solid;--wa-panel-border-width:1px;--wa-color-surface-border:var(--c-color-neutral-border-quiet);--wa-panel-border-color:var(--c-color-neutral-border-quiet);--wa-panel-border-radius:var(--c-radius-md);--wa-color-surface-raised:var(--c-surface-raised);--wa-shadow-l:var(--c-shadow-lg)}:root{--c-color-red-fill-quiet:var(--color-red-50);--c-color-red-fill-normal:var(--color-red-100);--c-color-red-fill-loud:var(--color-red-600);--c-color-red-border-quiet:var(--color-red-400);--c-color-red-border-normal:var(--color-red-600);--c-color-red-border-loud:var(--color-red-800);--c-color-red-on-quiet:var(--color-red-800);--c-color-red-on-normal:var(--color-red-950);--c-color-red-on-loud:var(--color-red-50);--c-color-orange-fill-quiet:var(--color-orange-50);--c-color-orange-fill-normal:var(--color-orange-100);--c-color-orange-fill-loud:var(--color-orange-600);--c-color-orange-border-quiet:var(--color-orange-400);--c-color-orange-border-normal:var(--color-orange-600);--c-color-orange-border-loud:var(--color-orange-800);--c-color-orange-on-quiet:var(--color-orange-800);--c-color-orange-on-normal:var(--color-orange-950);--c-color-orange-on-loud:var(--color-orange-50);--c-color-amber-fill-quiet:var(--color-amber-50);--c-color-amber-fill-normal:var(--color-amber-100);--c-color-amber-fill-loud:var(--color-amber-600);--c-color-amber-border-quiet:var(--color-amber-400);--c-color-amber-border-normal:var(--color-amber-600);--c-color-amber-border-loud:var(--color-amber-800);--c-color-amber-on-quiet:var(--color-amber-800);--c-color-amber-on-normal:var(--color-amber-950);--c-color-amber-on-loud:var(--color-amber-50);--c-color-yellow-fill-quiet:var(--color-yellow-50);--c-color-yellow-fill-normal:var(--color-yellow-100);--c-color-yellow-fill-loud:var(--color-yellow-600);--c-color-yellow-border-quiet:var(--color-yellow-400);--c-color-yellow-border-normal:var(--color-yellow-600);--c-color-yellow-border-loud:var(--color-yellow-800);--c-color-yellow-on-quiet:var(--color-yellow-800);--c-color-yellow-on-normal:var(--color-yellow-950);--c-color-yellow-on-loud:var(--color-yellow-50);--c-color-lime-fill-quiet:var(--color-lime-50);--c-color-lime-fill-normal:var(--color-lime-100);--c-color-lime-fill-loud:var(--color-lime-600);--c-color-lime-border-quiet:var(--color-lime-400);--c-color-lime-border-normal:var(--color-lime-600);--c-color-lime-border-loud:var(--color-lime-800);--c-color-lime-on-quiet:var(--color-lime-800);--c-color-lime-on-normal:var(--color-lime-950);--c-color-lime-on-loud:var(--color-lime-50);--c-color-green-fill-quiet:var(--color-green-50);--c-color-green-fill-normal:var(--color-green-100);--c-color-green-fill-loud:var(--color-green-600);--c-color-green-border-quiet:var(--color-green-400);--c-color-green-border-normal:var(--color-green-600);--c-color-green-border-loud:var(--color-green-800);--c-color-green-on-quiet:var(--color-green-800);--c-color-green-on-normal:var(--color-green-950);--c-color-green-on-loud:var(--color-green-50);--c-color-emerald-fill-quiet:var(--color-emerald-50);--c-color-emerald-fill-normal:var(--color-emerald-100);--c-color-emerald-fill-loud:var(--color-emerald-600);--c-color-emerald-border-quiet:var(--color-emerald-400);--c-color-emerald-border-normal:var(--color-emerald-600);--c-color-emerald-border-loud:var(--color-emerald-800);--c-color-emerald-on-quiet:var(--color-emerald-800);--c-color-emerald-on-normal:var(--color-emerald-950);--c-color-emerald-on-loud:var(--color-emerald-50);--c-color-teal-fill-quiet:var(--color-teal-50);--c-color-teal-fill-normal:var(--color-teal-100);--c-color-teal-fill-loud:var(--color-teal-600);--c-color-teal-border-quiet:var(--color-teal-400);--c-color-teal-border-normal:var(--color-teal-600);--c-color-teal-border-loud:var(--color-teal-800);--c-color-teal-on-quiet:var(--color-teal-800);--c-color-teal-on-normal:var(--color-teal-950);--c-color-teal-on-loud:var(--color-teal-50);--c-color-cyan-fill-quiet:var(--color-cyan-50);--c-color-cyan-fill-normal:var(--color-cyan-100);--c-color-cyan-fill-loud:var(--color-cyan-600);--c-color-cyan-border-quiet:var(--color-cyan-400);--c-color-cyan-border-normal:var(--color-cyan-600);--c-color-cyan-border-loud:var(--color-cyan-800);--c-color-cyan-on-quiet:var(--color-cyan-800);--c-color-cyan-on-normal:var(--color-cyan-950);--c-color-cyan-on-loud:var(--color-cyan-50);--c-color-sky-fill-quiet:var(--color-sky-50);--c-color-sky-fill-normal:var(--color-sky-100);--c-color-sky-fill-loud:var(--color-sky-600);--c-color-sky-border-quiet:var(--color-sky-400);--c-color-sky-border-normal:var(--color-sky-600);--c-color-sky-border-loud:var(--color-sky-800);--c-color-sky-on-quiet:var(--color-sky-800);--c-color-sky-on-normal:var(--color-sky-950);--c-color-sky-on-loud:var(--color-sky-50);--c-color-blue-fill-quiet:var(--color-blue-50);--c-color-blue-fill-normal:var(--color-blue-100);--c-color-blue-fill-loud:var(--color-blue-600);--c-color-blue-border-quiet:var(--color-blue-400);--c-color-blue-border-normal:var(--color-blue-600);--c-color-blue-border-loud:var(--color-blue-800);--c-color-blue-on-quiet:var(--color-blue-800);--c-color-blue-on-normal:var(--color-blue-950);--c-color-blue-on-loud:var(--color-blue-50);--c-color-indigo-fill-quiet:var(--color-indigo-50);--c-color-indigo-fill-normal:var(--color-indigo-100);--c-color-indigo-fill-loud:var(--color-indigo-600);--c-color-indigo-border-quiet:var(--color-indigo-400);--c-color-indigo-border-normal:var(--color-indigo-600);--c-color-indigo-border-loud:var(--color-indigo-800);--c-color-indigo-on-quiet:var(--color-indigo-800);--c-color-indigo-on-normal:var(--color-indigo-950);--c-color-indigo-on-loud:var(--color-indigo-50);--c-color-violet-fill-quiet:var(--color-violet-50);--c-color-violet-fill-normal:var(--color-violet-100);--c-color-violet-fill-loud:var(--color-violet-600);--c-color-violet-border-quiet:var(--color-violet-400);--c-color-violet-border-normal:var(--color-violet-600);--c-color-violet-border-loud:var(--color-violet-800);--c-color-violet-on-quiet:var(--color-violet-800);--c-color-violet-on-normal:var(--color-violet-950);--c-color-violet-on-loud:var(--color-violet-50);--c-color-purple-fill-quiet:var(--color-purple-50);--c-color-purple-fill-normal:var(--color-purple-100);--c-color-purple-fill-loud:var(--color-purple-600);--c-color-purple-border-quiet:var(--color-purple-400);--c-color-purple-border-normal:var(--color-purple-600);--c-color-purple-border-loud:var(--color-purple-800);--c-color-purple-on-quiet:var(--color-purple-800);--c-color-purple-on-normal:var(--color-purple-950);--c-color-purple-on-loud:var(--color-purple-50);--c-color-fuchsia-fill-quiet:var(--color-fuchsia-50);--c-color-fuchsia-fill-normal:var(--color-fuchsia-100);--c-color-fuchsia-fill-loud:var(--color-fuchsia-600);--c-color-fuchsia-border-quiet:var(--color-fuchsia-400);--c-color-fuchsia-border-normal:var(--color-fuchsia-600);--c-color-fuchsia-border-loud:var(--color-fuchsia-800);--c-color-fuchsia-on-quiet:var(--color-fuchsia-800);--c-color-fuchsia-on-normal:var(--color-fuchsia-950);--c-color-fuchsia-on-loud:var(--color-fuchsia-50);--c-color-pink-fill-quiet:var(--color-pink-50);--c-color-pink-fill-normal:var(--color-pink-100);--c-color-pink-fill-loud:var(--color-pink-600);--c-color-pink-border-quiet:var(--color-pink-400);--c-color-pink-border-normal:var(--color-pink-600);--c-color-pink-border-loud:var(--color-pink-800);--c-color-pink-on-quiet:var(--color-pink-800);--c-color-pink-on-normal:var(--color-pink-950);--c-color-pink-on-loud:var(--color-pink-50);--c-color-rose-fill-quiet:var(--color-rose-50);--c-color-rose-fill-normal:var(--color-rose-100);--c-color-rose-fill-loud:var(--color-rose-600);--c-color-rose-border-quiet:var(--color-rose-400);--c-color-rose-border-normal:var(--color-rose-600);--c-color-rose-border-loud:var(--color-rose-800);--c-color-rose-on-quiet:var(--color-rose-800);--c-color-rose-on-normal:var(--color-rose-950);--c-color-rose-on-loud:var(--color-rose-50);--c-color-white-fill-quiet:var(--color-white);--c-color-white-fill-normal:var(--color-white);--c-color-white-fill-loud:var(--color-white);--c-color-white-border-quiet:var(--color-static-gray-200);--c-color-white-border-normal:var(--color-static-gray-200);--c-color-white-border-loud:var(--color-static-gray-200);--c-color-white-on-quiet:var(--color-static-gray-800);--c-color-white-on-normal:var(--color-static-gray-800);--c-color-white-on-loud:var(--color-static-gray-800);--c-color-gray-fill-quiet:var(--color-gray-50);--c-color-gray-fill-normal:var(--color-gray-100);--c-color-gray-fill-loud:var(--color-gray-600);--c-color-gray-border-quiet:var(--color-gray-400);--c-color-gray-border-normal:var(--color-gray-600);--c-color-gray-border-loud:var(--color-gray-800);--c-color-gray-on-quiet:var(--color-gray-800);--c-color-gray-on-normal:var(--color-gray-950);--c-color-gray-on-loud:var(--color-gray-50);--c-color-black-fill-quiet:var(--color-static-gray-900);--c-color-black-fill-normal:var(--color-static-gray-900);--c-color-black-fill-loud:var(--color-static-gray-900);--c-color-black-border-quiet:var(--color-static-gray-800);--c-color-black-border-normal:var(--color-static-gray-800);--c-color-black-border-loud:var(--color-static-gray-800);--c-color-black-on-quiet:var(--color-static-gray-100);--c-color-black-on-normal:var(--color-static-gray-100);--c-color-black-on-loud:var(--color-static-gray-100);--c-color-neutral-fill-quiet:var(--color-slate-50);--c-color-neutral-fill-normal:var(--color-slate-100);--c-color-neutral-fill-loud:var(--color-slate-600);--c-color-neutral-border-quiet:var(--color-slate-400);--c-color-neutral-border-normal:var(--color-slate-600);--c-color-neutral-border-loud:var(--color-slate-800);--c-color-neutral-on-quiet:var(--color-slate-800);--c-color-neutral-on-normal:var(--color-slate-950);--c-color-neutral-on-loud:var(--color-slate-50);--c-color-brand-fill-quiet:var(--color-red-50);--c-color-brand-fill-normal:var(--color-red-100);--c-color-brand-fill-loud:var(--color-red-600);--c-color-brand-border-quiet:var(--color-red-400);--c-color-brand-border-normal:var(--color-red-600);--c-color-brand-border-loud:var(--color-red-800);--c-color-brand-on-quiet:var(--color-red-800);--c-color-brand-on-normal:var(--color-red-950);--c-color-brand-on-loud:var(--color-red-50);--c-color-accent-fill-quiet:var(--color-blue-50);--c-color-accent-fill-normal:var(--color-blue-100);--c-color-accent-fill-loud:var(--color-blue-600);--c-color-accent-border-quiet:var(--color-blue-400);--c-color-accent-border-normal:var(--color-blue-600);--c-color-accent-border-loud:var(--color-blue-800);--c-color-accent-on-quiet:var(--color-blue-800);--c-color-accent-on-normal:var(--color-blue-950);--c-color-accent-on-loud:var(--color-blue-50);--c-color-info-fill-quiet:var(--color-blue-50);--c-color-info-fill-normal:var(--color-blue-100);--c-color-info-fill-loud:var(--color-blue-600);--c-color-info-border-quiet:var(--color-blue-400);--c-color-info-border-normal:var(--color-blue-600);--c-color-info-border-loud:var(--color-blue-800);--c-color-info-on-quiet:var(--color-blue-800);--c-color-info-on-normal:var(--color-blue-950);--c-color-info-on-loud:var(--color-blue-50);--c-color-success-fill-quiet:var(--color-emerald-50);--c-color-success-fill-normal:var(--color-emerald-100);--c-color-success-fill-loud:var(--color-emerald-600);--c-color-success-border-quiet:var(--color-emerald-400);--c-color-success-border-normal:var(--color-emerald-600);--c-color-success-border-loud:var(--color-emerald-800);--c-color-success-on-quiet:var(--color-emerald-800);--c-color-success-on-normal:var(--color-emerald-950);--c-color-success-on-loud:var(--color-emerald-50);--c-color-warning-fill-quiet:var(--color-orange-50);--c-color-warning-fill-normal:var(--color-orange-100);--c-color-warning-fill-loud:var(--color-orange-600);--c-color-warning-border-quiet:var(--color-orange-400);--c-color-warning-border-normal:var(--color-orange-600);--c-color-warning-border-loud:var(--color-orange-800);--c-color-warning-on-quiet:var(--color-orange-800);--c-color-warning-on-normal:var(--color-orange-950);--c-color-warning-on-loud:var(--color-orange-50);--c-color-danger-fill-quiet:var(--color-red-50);--c-color-danger-fill-normal:var(--color-red-100);--c-color-danger-fill-loud:var(--color-red-600);--c-color-danger-border-quiet:var(--color-red-400);--c-color-danger-border-normal:var(--color-red-600);--c-color-danger-border-loud:var(--color-red-800);--c-color-danger-on-quiet:var(--color-red-800);--c-color-danger-on-normal:var(--color-red-950);--c-color-danger-on-loud:var(--color-red-50)}.c-colorable,[data-color]{--c-color-fill-quiet:var(--c-color-neutral-fill-quiet);--c-color-fill-normal:var(--c-color-neutral-fill-normal);--c-color-fill-loud:var(--c-color-neutral-fill-loud);--c-color-border-quiet:var(--c-color-neutral-border-quiet);--c-color-border-normal:var(--c-color-neutral-border-normal);--c-color-border-loud:var(--c-color-neutral-border-loud);--c-color-on-quiet:var(--c-color-neutral-on-quiet);--c-color-on-normal:var(--c-color-neutral-on-normal);--c-color-on-loud:var(--c-color-neutral-on-loud);background-color:var(--c-color-fill-quiet);border-color:var(--c-color-border-quiet);color:var(--c-color-on-quiet)}.c-colorable--red,[data-color=red]{--c-color-fill-quiet:var(--c-color-red-fill-quiet);--c-color-border-quiet:var(--c-color-red-border-quiet);--c-color-on-quiet:var(--c-color-red-on-quiet);--c-color-fill-normal:var(--c-color-red-fill-normal);--c-color-border-normal:var(--c-color-red-border-normal);--c-color-on-normal:var(--c-color-red-on-normal);--c-color-fill-loud:var(--c-color-red-fill-loud);--c-color-border-loud:var(--c-color-red-border-loud);--c-color-on-loud:var(--c-color-red-on-loud)}.c-colorable--orange,[data-color=orange]{--c-color-fill-quiet:var(--c-color-orange-fill-quiet);--c-color-border-quiet:var(--c-color-orange-border-quiet);--c-color-on-quiet:var(--c-color-orange-on-quiet);--c-color-fill-normal:var(--c-color-orange-fill-normal);--c-color-border-normal:var(--c-color-orange-border-normal);--c-color-on-normal:var(--c-color-orange-on-normal);--c-color-fill-loud:var(--c-color-orange-fill-loud);--c-color-border-loud:var(--c-color-orange-border-loud);--c-color-on-loud:var(--c-color-orange-on-loud)}.c-colorable--amber,[data-color=amber]{--c-color-fill-quiet:var(--c-color-amber-fill-quiet);--c-color-border-quiet:var(--c-color-amber-border-quiet);--c-color-on-quiet:var(--c-color-amber-on-quiet);--c-color-fill-normal:var(--c-color-amber-fill-normal);--c-color-border-normal:var(--c-color-amber-border-normal);--c-color-on-normal:var(--c-color-amber-on-normal);--c-color-fill-loud:var(--c-color-amber-fill-loud);--c-color-border-loud:var(--c-color-amber-border-loud);--c-color-on-loud:var(--c-color-amber-on-loud)}.c-colorable--yellow,[data-color=yellow]{--c-color-fill-quiet:var(--c-color-yellow-fill-quiet);--c-color-border-quiet:var(--c-color-yellow-border-quiet);--c-color-on-quiet:var(--c-color-yellow-on-quiet);--c-color-fill-normal:var(--c-color-yellow-fill-normal);--c-color-border-normal:var(--c-color-yellow-border-normal);--c-color-on-normal:var(--c-color-yellow-on-normal);--c-color-fill-loud:var(--c-color-yellow-fill-loud);--c-color-border-loud:var(--c-color-yellow-border-loud);--c-color-on-loud:var(--c-color-yellow-on-loud)}.c-colorable--lime,[data-color=lime]{--c-color-fill-quiet:var(--c-color-lime-fill-quiet);--c-color-border-quiet:var(--c-color-lime-border-quiet);--c-color-on-quiet:var(--c-color-lime-on-quiet);--c-color-fill-normal:var(--c-color-lime-fill-normal);--c-color-border-normal:var(--c-color-lime-border-normal);--c-color-on-normal:var(--c-color-lime-on-normal);--c-color-fill-loud:var(--c-color-lime-fill-loud);--c-color-border-loud:var(--c-color-lime-border-loud);--c-color-on-loud:var(--c-color-lime-on-loud)}.c-colorable--green,[data-color=green]{--c-color-fill-quiet:var(--c-color-green-fill-quiet);--c-color-border-quiet:var(--c-color-green-border-quiet);--c-color-on-quiet:var(--c-color-green-on-quiet);--c-color-fill-normal:var(--c-color-green-fill-normal);--c-color-border-normal:var(--c-color-green-border-normal);--c-color-on-normal:var(--c-color-green-on-normal);--c-color-fill-loud:var(--c-color-green-fill-loud);--c-color-border-loud:var(--c-color-green-border-loud);--c-color-on-loud:var(--c-color-green-on-loud)}.c-colorable--emerald,[data-color=emerald]{--c-color-fill-quiet:var(--c-color-emerald-fill-quiet);--c-color-border-quiet:var(--c-color-emerald-border-quiet);--c-color-on-quiet:var(--c-color-emerald-on-quiet);--c-color-fill-normal:var(--c-color-emerald-fill-normal);--c-color-border-normal:var(--c-color-emerald-border-normal);--c-color-on-normal:var(--c-color-emerald-on-normal);--c-color-fill-loud:var(--c-color-emerald-fill-loud);--c-color-border-loud:var(--c-color-emerald-border-loud);--c-color-on-loud:var(--c-color-emerald-on-loud)}.c-colorable--teal,[data-color=teal]{--c-color-fill-quiet:var(--c-color-teal-fill-quiet);--c-color-border-quiet:var(--c-color-teal-border-quiet);--c-color-on-quiet:var(--c-color-teal-on-quiet);--c-color-fill-normal:var(--c-color-teal-fill-normal);--c-color-border-normal:var(--c-color-teal-border-normal);--c-color-on-normal:var(--c-color-teal-on-normal);--c-color-fill-loud:var(--c-color-teal-fill-loud);--c-color-border-loud:var(--c-color-teal-border-loud);--c-color-on-loud:var(--c-color-teal-on-loud)}.c-colorable--cyan,[data-color=cyan]{--c-color-fill-quiet:var(--c-color-cyan-fill-quiet);--c-color-border-quiet:var(--c-color-cyan-border-quiet);--c-color-on-quiet:var(--c-color-cyan-on-quiet);--c-color-fill-normal:var(--c-color-cyan-fill-normal);--c-color-border-normal:var(--c-color-cyan-border-normal);--c-color-on-normal:var(--c-color-cyan-on-normal);--c-color-fill-loud:var(--c-color-cyan-fill-loud);--c-color-border-loud:var(--c-color-cyan-border-loud);--c-color-on-loud:var(--c-color-cyan-on-loud)}.c-colorable--sky,[data-color=sky]{--c-color-fill-quiet:var(--c-color-sky-fill-quiet);--c-color-border-quiet:var(--c-color-sky-border-quiet);--c-color-on-quiet:var(--c-color-sky-on-quiet);--c-color-fill-normal:var(--c-color-sky-fill-normal);--c-color-border-normal:var(--c-color-sky-border-normal);--c-color-on-normal:var(--c-color-sky-on-normal);--c-color-fill-loud:var(--c-color-sky-fill-loud);--c-color-border-loud:var(--c-color-sky-border-loud);--c-color-on-loud:var(--c-color-sky-on-loud)}.c-colorable--blue,[data-color=blue]{--c-color-fill-quiet:var(--c-color-blue-fill-quiet);--c-color-border-quiet:var(--c-color-blue-border-quiet);--c-color-on-quiet:var(--c-color-blue-on-quiet);--c-color-fill-normal:var(--c-color-blue-fill-normal);--c-color-border-normal:var(--c-color-blue-border-normal);--c-color-on-normal:var(--c-color-blue-on-normal);--c-color-fill-loud:var(--c-color-blue-fill-loud);--c-color-border-loud:var(--c-color-blue-border-loud);--c-color-on-loud:var(--c-color-blue-on-loud)}.c-colorable--indigo,[data-color=indigo]{--c-color-fill-quiet:var(--c-color-indigo-fill-quiet);--c-color-border-quiet:var(--c-color-indigo-border-quiet);--c-color-on-quiet:var(--c-color-indigo-on-quiet);--c-color-fill-normal:var(--c-color-indigo-fill-normal);--c-color-border-normal:var(--c-color-indigo-border-normal);--c-color-on-normal:var(--c-color-indigo-on-normal);--c-color-fill-loud:var(--c-color-indigo-fill-loud);--c-color-border-loud:var(--c-color-indigo-border-loud);--c-color-on-loud:var(--c-color-indigo-on-loud)}.c-colorable--violet,[data-color=violet]{--c-color-fill-quiet:var(--c-color-violet-fill-quiet);--c-color-border-quiet:var(--c-color-violet-border-quiet);--c-color-on-quiet:var(--c-color-violet-on-quiet);--c-color-fill-normal:var(--c-color-violet-fill-normal);--c-color-border-normal:var(--c-color-violet-border-normal);--c-color-on-normal:var(--c-color-violet-on-normal);--c-color-fill-loud:var(--c-color-violet-fill-loud);--c-color-border-loud:var(--c-color-violet-border-loud);--c-color-on-loud:var(--c-color-violet-on-loud)}.c-colorable--purple,[data-color=purple]{--c-color-fill-quiet:var(--c-color-purple-fill-quiet);--c-color-border-quiet:var(--c-color-purple-border-quiet);--c-color-on-quiet:var(--c-color-purple-on-quiet);--c-color-fill-normal:var(--c-color-purple-fill-normal);--c-color-border-normal:var(--c-color-purple-border-normal);--c-color-on-normal:var(--c-color-purple-on-normal);--c-color-fill-loud:var(--c-color-purple-fill-loud);--c-color-border-loud:var(--c-color-purple-border-loud);--c-color-on-loud:var(--c-color-purple-on-loud)}.c-colorable--fuchsia,[data-color=fuchsia]{--c-color-fill-quiet:var(--c-color-fuchsia-fill-quiet);--c-color-border-quiet:var(--c-color-fuchsia-border-quiet);--c-color-on-quiet:var(--c-color-fuchsia-on-quiet);--c-color-fill-normal:var(--c-color-fuchsia-fill-normal);--c-color-border-normal:var(--c-color-fuchsia-border-normal);--c-color-on-normal:var(--c-color-fuchsia-on-normal);--c-color-fill-loud:var(--c-color-fuchsia-fill-loud);--c-color-border-loud:var(--c-color-fuchsia-border-loud);--c-color-on-loud:var(--c-color-fuchsia-on-loud)}.c-colorable--pink,[data-color=pink]{--c-color-fill-quiet:var(--c-color-pink-fill-quiet);--c-color-border-quiet:var(--c-color-pink-border-quiet);--c-color-on-quiet:var(--c-color-pink-on-quiet);--c-color-fill-normal:var(--c-color-pink-fill-normal);--c-color-border-normal:var(--c-color-pink-border-normal);--c-color-on-normal:var(--c-color-pink-on-normal);--c-color-fill-loud:var(--c-color-pink-fill-loud);--c-color-border-loud:var(--c-color-pink-border-loud);--c-color-on-loud:var(--c-color-pink-on-loud)}.c-colorable--rose,[data-color=rose]{--c-color-fill-quiet:var(--c-color-rose-fill-quiet);--c-color-border-quiet:var(--c-color-rose-border-quiet);--c-color-on-quiet:var(--c-color-rose-on-quiet);--c-color-fill-normal:var(--c-color-rose-fill-normal);--c-color-border-normal:var(--c-color-rose-border-normal);--c-color-on-normal:var(--c-color-rose-on-normal);--c-color-fill-loud:var(--c-color-rose-fill-loud);--c-color-border-loud:var(--c-color-rose-border-loud);--c-color-on-loud:var(--c-color-rose-on-loud)}.c-colorable--white,[data-color=white]{--c-color-fill-quiet:var(--c-color-white-fill-quiet);--c-color-border-quiet:var(--c-color-white-border-quiet);--c-color-on-quiet:var(--c-color-white-on-quiet);--c-color-fill-normal:var(--c-color-white-fill-normal);--c-color-border-normal:var(--c-color-white-border-normal);--c-color-on-normal:var(--c-color-white-on-normal);--c-color-fill-loud:var(--c-color-white-fill-loud);--c-color-border-loud:var(--c-color-white-border-loud);--c-color-on-loud:var(--c-color-white-on-loud)}.c-colorable--gray,[data-color=gray]{--c-color-fill-quiet:var(--c-color-gray-fill-quiet);--c-color-border-quiet:var(--c-color-gray-border-quiet);--c-color-on-quiet:var(--c-color-gray-on-quiet);--c-color-fill-normal:var(--c-color-gray-fill-normal);--c-color-border-normal:var(--c-color-gray-border-normal);--c-color-on-normal:var(--c-color-gray-on-normal);--c-color-fill-loud:var(--c-color-gray-fill-loud);--c-color-border-loud:var(--c-color-gray-border-loud);--c-color-on-loud:var(--c-color-gray-on-loud)}.c-colorable--black,[data-color=black]{--c-color-fill-quiet:var(--c-color-black-fill-quiet);--c-color-border-quiet:var(--c-color-black-border-quiet);--c-color-on-quiet:var(--c-color-black-on-quiet);--c-color-fill-normal:var(--c-color-black-fill-normal);--c-color-border-normal:var(--c-color-black-border-normal);--c-color-on-normal:var(--c-color-black-on-normal);--c-color-fill-loud:var(--c-color-black-fill-loud);--c-color-border-loud:var(--c-color-black-border-loud);--c-color-on-loud:var(--c-color-black-on-loud)}}@layer base{html,body{background-color:var(--c-surface-default)}body{width:100%;font-family:var(--c-font-body,sans-serif);font-size:var(--c-text-base);line-height:var(--c-leading-normal);color:var(--c-text-default);-webkit-font-smoothing:subpixel-antialiased;overflow-x:hidden}h1,h2,h3,h4,h5,h6,p,pre{margin:0}a{cursor:pointer;color:var(--c-text-link)}ol,ul{margin:0;padding:0;list-style:none}.code{padding:0 var(--c-spacing-sm);border-radius:var(--c-radius-sm);background-color:#0000000d;border:1px solid #0003;font-size:.9em;display:inline-flex}hr{border:0;border-top:1px solid var(--c-color-neutral-border-quiet);width:100%;margin-block:var(--c-spacing-lg);display:block}.index-grid{gap:var(--c-spacing-md);display:grid}@container (width>=768px){.index-grid{grid-template-columns:clamp(7.5rem,20%,13.75rem) 6fr;align-items:start}}.index-grid__aside,.index-grid__main{gap:var(--c-spacing-md);align-items:center;display:flex}.index-grid--header{min-height:2.5rem;padding-block:var(--c-spacing-lg);align-items:center}@container (width>=768px){.index-grid--header{padding-block-end:var(--c-spacing-md)}.index-grid--header .index-grid__main{justify-self:end}}.prose>:first-child{margin-block-start:0}.prose h1,.prose h2,.prose h3,.prose h4,.prose h5,.prose h6{margin-block:.5rem}.prose ol,.prose ul{gap:.25em;padding-inline-start:1.5em;display:grid}.prose ul{list-style:outside}.cp-table{--_cell-spacing-inline:var(--c-spacing-md);--_cell-spacing-block:var(--c-spacing-md);text-align:left;border-spacing:0;font-variant-numeric:tabular-nums;width:100%}@container (width>=840px){.cp-table{table-layout:fixed}}.cp-table thead,.cp-table th{background-color:var(--c-color-neutral-fill-quiet)}.cp-table .cell{vertical-align:middle;padding:0;padding-inline:var(--_cell-spacing-inline);height:var(--c-size-control-md);padding-block:0;position:relative}:is(.cp-table .cell:has(textarea),.cp-table .cell:has(input:not([type=checkbox]):not([type=radio]))){padding:0}.cp-table td,.cp-table th,.cp-table tr:not(:last-child){border-block-end:1px solid var(--c-color-neutral-border-quiet)}.cp-table td:not(:first-child),.cp-table th:not(:first-child){border-inline-start:1px solid var(--c-color-neutral-border-quiet)}.cp-table textarea,.cp-table input:not([type=checkbox]):not([type=radio]){padding-block:var(--_cell-spacing-block);padding-inline:var(--_cell-spacing-inline);border:0;width:100%;height:100%;margin:0}.cp-table textarea{resize:none;line-height:1.2}.cp-table--padded th,.cp-table--padded td{padding-block:var(--c-spacing-md)}.cp-table--auto{table-layout:auto}.cp-table--fixed{table-layout:fixed}.cp-table--collapsed,.cp-table--borderless{--_cell-spacing-block:0}.cp-table--compact{--_cell-spacing-block:var(--c-spacing-sm)}.cp-table-header,.cp-table-footer{padding:var(--c-spacing-md);background-color:var(--c-color-neutral-fill-quiet);justify-content:space-between;align-items:center;display:flex}}@layer components,utilities;.resizable-container{resize:both;border:2px solid;width:300px;padding:20px;overflow:auto}.skip-link{--x-position:0;--y-position:0;clip:rect(0, 0, 0, 0);white-space:nowrap;background-color:var(--c-bg-body);width:1px;height:1px;padding-block:var(--c-spacing-md);padding-inline:var(--c-spacing-lg);border:1px dashed var(--c-form-control-border);color:var(--c-fg-text);font-weight:var(--font-weight-medium);border-radius:var(--c-radius-md);outline:none;margin:-1px;text-decoration:none;display:inline-block;position:absolute;overflow:hidden}.skip-link:focus{clip:auto;white-space:normal;width:auto;height:auto;inset-block-start:var(--y-position);inset-inline-start:var(--x-position);overflow:visible}.skip-link--global{--x-position:calc(10rem / 16);--y-position:calc(5rem / 16)}.error-list{color:var(--c-color-danger-on-normal);margin:0;padding:0;list-style:none}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.c-icon{width:1.25em;height:1em;display:inline-flex}.c-icon svg{height:1em;overflow:visible}}@layer utilities{.\@container{container-type:inline-size}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-y-1{inset-block:calc(var(--spacing) * 1)}.\!start{inset-inline-start:var(--spacing)!important}.-start{inset-inline-start:calc(var(--spacing) * -1)}.start{inset-inline-start:var(--spacing)}.\!end{inset-inline-end:var(--spacing)!important}.-end{inset-inline-end:calc(var(--spacing) * -1)}.end{inset-inline-end:var(--spacing)}.right-1{right:calc(var(--spacing) * 1)}.right-2{right:calc(var(--spacing) * 2)}.bottom-2{bottom:calc(var(--spacing) * 2)}.col-span-2{grid-column:span 2/span 2}.col-span-5{grid-column:span 5/span 5}.\!container{width:100%!important}@media (width>=40rem){.\!container{max-width:40rem!important}}@media (width>=48rem){.\!container{max-width:48rem!important}}@media (width>=64rem){.\!container{max-width:64rem!important}}@media (width>=80rem){.\!container{max-width:80rem!important}}@media (width>=96rem){.\!container{max-width:96rem!important}}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.container\!{width:100%!important}@media (width>=40rem){.container\!{max-width:40rem!important}}@media (width>=48rem){.container\!{max-width:48rem!important}}@media (width>=64rem){.container\!{max-width:64rem!important}}@media (width>=80rem){.container\!{max-width:80rem!important}}@media (width>=96rem){.container\!{max-width:96rem!important}}.m-0{margin:calc(var(--spacing) * 0)}.-mx-2{margin-inline:calc(var(--spacing) * -2)}.mx-0{margin-inline:calc(var(--spacing) * 0)}.mx-2{margin-inline:calc(var(--spacing) * 2)}.mx-auto{margin-inline:auto}.my-0{margin-block:calc(var(--spacing) * 0)}.my-2{margin-block:calc(var(--spacing) * 2)}.my-3{margin-block:calc(var(--spacing) * 3)}.my-4{margin-block:calc(var(--spacing) * 4)}.my-6{margin-block:calc(var(--spacing) * 6)}.my-8{margin-block:calc(var(--spacing) * 8)}.-mt-1{margin-top:calc(var(--spacing) * -1)}.mt-0{margin-top:calc(var(--spacing) * 0)}.mt-1{margin-top:calc(var(--spacing) * 1)}.mt-3{margin-top:calc(var(--spacing) * 3)}.mt-4{margin-top:calc(var(--spacing) * 4)}.mt-6{margin-top:calc(var(--spacing) * 6)}.mr-0{margin-right:calc(var(--spacing) * 0)}.mb-0{margin-bottom:calc(var(--spacing) * 0)}.mb-1{margin-bottom:calc(var(--spacing) * 1)}.mb-2{margin-bottom:calc(var(--spacing) * 2)}.mb-3{margin-bottom:calc(var(--spacing) * 3)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.mb-6{margin-bottom:calc(var(--spacing) * 6)}.mb-16{margin-bottom:calc(var(--spacing) * 16)}.ml-0{margin-left:calc(var(--spacing) * 0)}.ml-2{margin-left:calc(var(--spacing) * 2)}.ml-auto{margin-left:auto}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.hidden\!{display:none!important}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.list-item{display:list-item}.table{display:table}.table-row{display:table-row}.table-row-group{display:table-row-group}.aspect-\[352\/455\]{aspect-ratio:352/455}.size-7{width:calc(var(--spacing) * 7);height:calc(var(--spacing) * 7)}.size-10{width:calc(var(--spacing) * 10);height:calc(var(--spacing) * 10)}.h-1{height:calc(var(--spacing) * 1)}.max-h-\[50vh\]{max-height:50vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-1\/2{width:50%}.w-2xl{width:var(--container-2xl)}.w-3xl{width:var(--container-3xl)}.w-4xl{width:var(--container-4xl)}.w-5xl{width:var(--container-5xl)}.w-6xl{width:var(--container-6xl)}.w-7xl{width:var(--container-7xl)}.w-\[60ch\]{width:60ch}.w-auto{width:auto}.w-full{width:100%}.w-lg{width:var(--container-lg)}.w-md{width:var(--container-md)}.w-sm{width:var(--container-sm)}.w-xl{width:var(--container-xl)}.max-w-4xl{max-width:var(--container-4xl)}.max-w-\[80ch\]{max-width:80ch}.max-w-\[600px\]{max-width:600px}.flex-1{flex:1}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.table-fixed{table-layout:fixed}.border-collapse{border-collapse:collapse}.-translate-full{--tw-translate-x:-100%;--tw-translate-y:-100%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.transform\!{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)!important}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize\!{resize:both!important}.columns-3{columns:3}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.items-baseline{align-items:baseline}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-items-center{justify-items:center}.justify-items-start{justify-items:start}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-1{gap:calc(var(--spacing) * 1)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.self-center{align-self:center}.self-end{align-self:flex-end}.justify-self-end{justify-self:flex-end}.justify-self-start{justify-self:flex-start}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-scroll{overflow:scroll}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-br-md{border-bottom-right-radius:var(--radius-md)}.rounded-bl-md{border-bottom-left-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t-0{border-top-style:var(--tw-border-style);border-top-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-none{--tw-border-style:none;border-style:none}.border-blue-500{border-color:var(--color-blue-500)}.border-border-subtle,.border-neutral-border-quiet{border-color:var(--c-color-neutral-border-quiet)}.border-red-500{border-color:var(--color-red-500)}.border-b-border-subtle,.border-b-neutral-border-quiet{border-bottom-color:var(--c-color-neutral-border-quiet)}.bg-\[var\(--c-color-neutral-bg-normal\)\]{background-color:var(--c-color-neutral-bg-normal)}.bg-\[var\(--c-color-neutral-fill-quiet\)\]{background-color:var(--c-color-neutral-fill-quiet)}.bg-black{background-color:var(--color-black)}.bg-blue-50{background-color:var(--color-blue-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-red-50{background-color:var(--color-red-50)}.bg-slate-100{background-color:var(--color-slate-100)}.bg-slate-900{background-color:var(--color-slate-900)}.bg-white{background-color:var(--color-white)}.mask-repeat{-webkit-mask-repeat:repeat;mask-repeat:repeat}.p-0{padding:calc(var(--spacing) * 0)}.p-1{padding:calc(var(--spacing) * 1)}.p-2{padding:calc(var(--spacing) * 2)}.p-4{padding:calc(var(--spacing) * 4)}.p-5{padding:calc(var(--spacing) * 5)}.\!px-\[var\(--_cell-spacing\)\]{padding-inline:var(--_cell-spacing)!important}.\!px-\[var\(--_cell-spacing-inline\)\]{padding-inline:var(--_cell-spacing-inline)!important}.px-0{padding-inline:calc(var(--spacing) * 0)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-1{padding-block:calc(var(--spacing) * 1)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-20{padding-block:calc(var(--spacing) * 20)}.pt-0{padding-top:calc(var(--spacing) * 0)}.pt-2{padding-top:calc(var(--spacing) * 2)}.pr-0{padding-right:calc(var(--spacing) * 0)}.pr-6{padding-right:calc(var(--spacing) * 6)}.pb-0{padding-bottom:calc(var(--spacing) * 0)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pl-0{padding-left:calc(var(--spacing) * 0)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg{font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-wrap{text-wrap:wrap}.whitespace-normal{white-space:normal}.text-gray-500{color:var(--color-gray-500)}.text-neutral-500{color:var(--color-neutral-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-slate-100{color:var(--color-slate-100)}.capitalize{text-transform:capitalize}.lowercase{text-transform:lowercase}.uppercase{text-transform:uppercase}.italic{font-style:italic}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.line-through{text-decoration-line:line-through}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow,.shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.drop-shadow{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#0000001a)) drop-shadow(0 1px 1px var(--tw-drop-shadow-color,#0000000f));--tw-drop-shadow:drop-shadow(0 1px 2px #0000001a) drop-shadow(0 1px 1px #0000000f);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.filter\!{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)!important}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-100{--tw-duration:.1s;transition-duration:.1s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.select-all{-webkit-user-select:all;user-select:all}.select-none{-webkit-user-select:none;user-select:none}.backface-hidden{backface-visibility:hidden}@media (width>=48rem){.md\:w-3\/4{width:75%}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:pr-6{padding-right:calc(var(--spacing) * 6)}}.\[\&\[disabled\]\]\:opacity-50[disabled]{opacity:.5}}.global-sidebar{--is-always-visible:true;grid-template-columns:var(--global-sidebar-width);grid-template-rows:calc(var(--header-height) + 1px) minmax(0, 1fr) auto;-webkit-overflow-scrolling:touch;background-color:var(--gray-150);border-inline-end:1px solid var(--border-hairline);height:100vh;width:var(--global-sidebar-width);isolation:isolate;z-index:1;grid-auto-flow:row;padding:0;display:grid;position:sticky;inset-block-start:0}@media only screen and (width<=1999px){.global-sidebar{--is-always-visible:false}}.global-sidebar__nav{padding-block:var(--s);padding-inline:var(--s);-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior:contain;overflow:hidden auto}.global-sidebar__footer{border-block-start:1px solid var(--border-hairline);margin-block-start:auto}.nav-indicator{width:var(--nav-item-indicator-size);border-radius:var(--radius-sm);aspect-ratio:1;background-color:currentColor}:root{--global-sidebar-width:calc(226rem / 16);--global-content-width:calc(1440rem / 16);--header-height:calc(44rem / 16)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false} diff --git a/resources/build/cp3.js b/resources/build/cp3.js index 14af1bf53b9..984b7cd251e 100644 --- a/resources/build/cp3.js +++ b/resources/build/cp3.js @@ -1,2 +1,2 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Install.js","./_plugin-vue_export-helper.js","./rolldown-runtime.js","./lit.js","./decorators.js","./Queue.ts.js","./decorate-EVKP5RjP.js","./nav-item-9g3ebwBJ.js","./nav-list.ts.js","./dist.js","./CraftInput.js","./Select.js","./Modal.js","./assets/Modal.css","./Pane.js","./assets/Pane.css","./CraftCombobox.js","./InputCombobox.js","./keyboard.js","./assets/InputCombobox.css","./useFetch.js","./wayfinder.js","./assets/Install.css","./SettingsEmailPage.js","./AdminTable.js","./assets/AdminTable.css","./useEditableTable.js","./AppLayout.js","./useAnnouncer.js","./assets/useAnnouncer.css","./assets/AppLayout.css","./CalloutReadOnly.js","./Input.js","./SettingsGeneralPage.js","./assets/SettingsGeneralPage.css","./SettingsIndexPage.js","./assets/SettingsIndexPage.css","./SettingsSectionsEditPage.js","./SectionsController.js","./useInputGenerator.js","./assets/SettingsSectionsEditPage.css","./SettingsSectionsIndexPage.js","./SettingsSitesEdit.js","./DeleteSiteModal.js","./ModalForm.js","./SettingsSitesIndex.js","./IndexLayout.js","./assets/IndexLayout.css","./assets/SettingsSitesIndex.css","./Updater.js","./assets/Updater.css","./UtilitiesShowPage.js"])))=>i.map(i=>d[i]); -import{$ as e,B as t,C as n,E as r,F as i,I as a,J as o,K as s,L as c,M as l,N as u,R as d,S as f,T as p,U as m,X as h,at as g,b as _,c as v,g as y,gt as b,h as x,i as S,it as C,j as ee,k as w,lt as T,m as te,mt as ne,n as re,q as ie,rt as ae,s as oe,t as E,ut as D,v as O,w as k,x as A,y as j,z as M}from"./_plugin-vue_export-helper.js";import{r as N}from"./nav-item-9g3ebwBJ.js";import{n as se,r as ce,t as le}from"./Queue.ts.js";import{a as ue,o as de,s as fe,t as pe}from"./AdminTable.js";import{t as me}from"./Select.js";import{t as he}from"./Pane.js";import{a as ge,i as _e,n as ve,r as ye,t as be}from"./useAnnouncer.js";import{n as P,t as xe}from"./ModalForm.js";import{t as Se}from"./queue.js";import{n as Ce}from"./dist.js";import{n as we,r as Te,t as Ee}from"./useFetch.js";import{n as F,r as De,t as Oe}from"./wayfinder.js";import{t as ke}from"./Modal.js";import{t as Ae}from"./Input.js";import{a as je,c as Me,d as Ne,f as Pe,m as Fe,n as Ie,o as Le,p as Re,r as ze,t as Be}from"./keyboard.js";import{t as Ve}from"./CraftInput.js";var I=(e,t)=>({url:I.url(e,t),method:`get`});I.definition={methods:[`get`,`head`],url:`/admin/utilities/deprecation-errors/{logId}`},I.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Oe(e);let n={logId:e.logId};return I.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+F(t)},I.get=(e,t)=>({url:I.url(e,t),method:`get`}),I.head=(e,t)=>({url:I.url(e,t),method:`head`});var He={show:Object.assign(I,I)},L=(e,t)=>({url:L.url(e,t),method:`get`});L.definition={methods:[`get`,`head`],url:`/admin/utilities/{id}/{extra?}`},L.url=(e,t)=>{Array.isArray(e)&&(e={id:e[0],extra:e[1]}),e=Oe(e),De(e,[`extra`]);let n={id:e.id,extra:e.extra};return L.definition.url.replace(`{id}`,n.id.toString()).replace(`{extra?}`,n.extra?.toString()??``).replace(/\/+$/,``)+F(t)},L.get=(e,t)=>({url:L.url(e,t),method:`get`}),L.head=(e,t)=>({url:L.url(e,t),method:`head`}),Object.assign(He,He),Object.assign(L,L);var Ue=[`loading`],We=r({__name:`RetryJobButton`,props:{job:{}},setup(t){let n=t,{flash:r}=_e(),{execute:i,state:a}=Ee(`queue/retry`);async function o(){confirm(N(`Are you sure you want to restart the job “{description}”? Any progress could be lost.`,{description:n.job.description}))&&(await i({id:T(n.job.uid)}),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]}))}return s(a,e=>{e===`success`?n.job.status.value===Se.Reserved?r(`success`,N(`Job restarted.`)):r(`success`,N(`Job retried.`)):e===`error`&&r(`error`,N(`Failed to retry job.`))}),(t,n)=>(c(),f(`craft-button`,u({type:`button`,onClick:o,size:`small`,loading:T(a)===`loading`},t.$attrs),[n[0]||=j(`craft-icon`,{name:`play`,slot:`prefix`,style:{"font-size":`0.7em`}},null,-1),k(` `+e(T(N)(`Retry`)),1)],16,Ue))}}),Ge=[`loading`],Ke=r({__name:`ReleaseJobButton`,props:{job:{}},setup(t){let n=t,{flash:r}=_e(),{execute:i,state:a}=Ee(`queue/release`);async function o(){confirm(N(`Are you sure you want to release the job “{description}”?`,{description:n.job.description}))&&(await i({id:T(n.job.uid)}),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]}))}return s(a,e=>{e===`success`?r(`success`,N(`Job released.`)):e===`error`&&r(`error`,N(`Failed to release job.`))}),(t,n)=>(c(),f(`craft-button`,u({type:`button`,onClick:o,size:`small`,loading:T(a)===`loading`},t.$attrs),[n[0]||=j(`craft-icon`,{name:`remove`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Release`)),1)],16,Ge))}}),qe={class:`py-20`},Je={class:`w-[60ch] mx-auto text-center grid gap-3 justify-items-center text-gray-500`},Ye=[`name`],Xe={class:`text-lg`},R=r({__name:`Empty`,props:{icon:{},label:{}},setup(n){return(r,i)=>(c(),f(`div`,qe,[j(`div`,Je,[t(r.$slots,`graphic`,{},()=>[n.icon?(c(),f(`craft-icon`,{key:0,name:n.icon,style:{"font-size":`calc(48rem / 16)`}},null,8,Ye)):A(``,!0)]),t(r.$slots,`content`,{},()=>[j(`p`,Xe,e(n.label),1)])])]))}}),Ze=[`textContent`],Qe=r({__name:`QueueManagerIndex`,props:{jobs:{},totalJobs:{default:0}},setup(t){let n=t,r=de();function i(e){return e===2||e===3?`success`:e===4?`danger`:e===5?`warning`:`default`}function a(e){return e.status.value==Se.Failed}let s=C([r.accessor(`description`,{header:()=>N(`Name`),cell:({row:e,getValue:t})=>w(ge,{href:L.url({id:`queue-manager`,extra:e.original.uid})},()=>t())}),r.accessor(`status`,{header:()=>N(`Status`),size:50,cell:e=>w(P,{variant:i(e.getValue().value)},()=>e.getValue().label)}),r.display({id:`progress`,header:()=>N(`Progress`),cell:({row:e})=>e.original.progress>0?`${e.original.progress}% ${e.original.progressLabel?`(${e.original.progressLabel})`:``}`:``}),r.display({id:`actions`,cell:({row:e})=>w(`div`,{class:`flex justify-end gap-2`},[a(e.original)?w(We,{job:e.original}):null,e.original.status.value===Se.Done?null:w(Ke,{job:e.original})])})]),l=ue({get data(){return n.jobs},get columns(){return s.value},getCoreRowModel:fe()});return(n,r)=>t.jobs.length>0?(c(),_(he,{key:0,padding:0},{footer:o(()=>[j(`div`,{class:`flex p-2 bg-slate-100`,textContent:e(T(N)(`{totalJobs, plural, =0{No jobs} =1{# job} other{# jobs}}`,{totalJobs:t.totalJobs}))},null,8,Ze)]),default:o(()=>[p(pe,{table:T(l),reorderable:!1,layout:`fixed`},null,8,[`table`])]),_:1})):(c(),_(R,{key:1,icon:`play`,label:T(N)(`There are no jobs in the queue`)},null,8,[`label`]))}}),$e={class:`p-4`},et={class:`mb-3`},tt={class:`table-fixed border-collapse w-full`},nt={key:0},rt={key:3},it={key:1},at={class:`mt-6`},ot={class:`text-lg`},st={class:`my-2`},ct=E(r({__name:`QueueManagerShow`,props:{job:{}},setup(t){let n=[`delay`,`description`,`progressLabel`,`job`];function r(e){return e===2||e===3?`success`:e===4?`danger`:e===5?`warning`:`default`}function i(e){return N(`{num, number} {num, plural, =1{second} other{seconds}}`,{num:e})}function a(e){switch(e){case`uid`:return N(`UID`);case`class`:return N(`Class`);case`status`:return N(`Status`);case`progress`:return N(`Progress`);case`description`:return N(`Description`);case`label`:return N(`Label`);case`dateCreated`:return N(`Created`);case`ttr`:return N(`Time to reserve`);case`error`:return N(`Error`);case`delay`:return N(`Delay`);default:return e}}return(s,l)=>(c(),f(`div`,$e,[j(`h2`,et,e(t.job.description),1),j(`table`,tt,[j(`tbody`,null,[(c(!0),f(x,null,M(t.job,(s,l)=>(c(),f(`tr`,null,[n.includes(l)?A(``,!0):(c(),f(x,{key:0},[j(`th`,{class:h({"text-left":!0,"py-2":!0,"text-red-600":l===`error`})},e(a(l)),3),j(`td`,{class:h({"py-2":!0,"text-red-600":l===`error`})},[l==`status`?(c(),_(P,{key:0,variant:r(t.job.status.value)},{default:o(()=>[k(e(t.job.status.label),1)]),_:1},8,[`variant`])):l==`progress`?(c(),f(x,{key:1},[k(e(t.job.progress)+`% `,1),t.job.progressLabel?(c(),f(`span`,nt,`(`+e(t.job.progressLabel)+`)`,1)):A(``,!0)],64)):l==`ttr`?(c(),f(x,{key:2},[k(e(i(s)),1)],64)):l==`class`?(c(),f(`code`,rt,e(s),1)):l===`dateCreated`?(c(),f(x,{key:4},[k(e(new Date(s).toLocaleString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`})),1)],64)):(c(),f(x,{key:5},[typeof s==`string`?(c(),f(x,{key:0},[k(e(s),1)],64)):(c(),f(`code`,it,e(JSON.stringify(s,null,2)),1))],64))],2)],64))]))),256))])]),j(`div`,at,[j(`h4`,ot,e(T(N)(`Job Data`)),1),j(`div`,st,[p(ye,{data:t.job,style:{"font-size":`0.8rem`}},null,8,[`data`])])])]))}}),[[`__scopeId`,`data-v-59e8d626`]]),lt=Symbol(`Queue`),ut=Symbol(`Axios`),dt=Symbol(`Config`),ft=r({__name:`QueueManager`,props:{initialData:{},totalJobs:{default:0},activeJob:{default:null},hasReservedJobs:{type:Boolean,default:!1},hasWaitingJobs:{type:Boolean,default:!1}},setup(e){let t=e,n=ee(lt),r=C(t.initialData??[]),a=C(t.totalJobs);return i(async()=>{n?.addEventListener(`job-update`,({detail:e})=>{r.value=e.jobInfo,a.value=e.totalJobs}),t.hasReservedJobs?n?.startTracking(!0):t.hasWaitingJobs&&await n?.runQueue()}),(t,n)=>e.activeJob?(c(),_(ct,{key:0,job:e.activeJob},null,8,[`job`])):(c(),_(Qe,{key:1,jobs:r.value,totalJobs:a.value},null,8,[`jobs`,`totalJobs`]))}}),pt={key:0,class:`spinner`},mt={key:0,icon:`triangle-exlamation`,variant:`danger`,appearance:`plain`},ht={key:0,icon:`circle-check`,variant:`success`,appearance:`plain`},gt=[`loading`],_t=[`loading`],vt=r({__name:`QueueManagerToolbar`,props:{activeJob:{default:null},jobs:{default:()=>[]}},setup(t){let n=t;ee(lt),ee(ut);let{execute:r,state:i,error:a}=Ee(`queue/retry-all`),{execute:l,state:u,error:d}=Ee(`queue/release-all`),{flash:m,messages:h}=_e();C({retryAll:`idle`,releaseAll:`idle`});let g=C(!1),v=O(()=>n.activeJob.status.value==Se.Reserved||n.activeJob.status.value==Se.Failed);async function y(){await r(),m(`success`,N(`Retrying all failed jobs.`)),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]})}s(a,()=>{m(`error`,N(`Failed to retry all jobs.`))}),s(d,()=>{m(`error`,N(`Failed to release all jobs.`))});async function b(){confirm(N(`Are you sure you want to release all jobs in the queue?`))&&(await l(),m(`success`,N(`All jobs released.`)),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]}))}return(n,r)=>t.activeJob?(c(),f(x,{key:0},[p(ge,{as:`craft-button`,href:T(L).url({id:`queue-manager`})},{default:o(()=>[r[0]||=j(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Back`)),1)]),_:1},8,[`href`]),r[1]||=j(`div`,{class:`grow`},null,-1),g.value?(c(),f(`craft-spinner`,pt)):A(``,!0),v.value?(c(),_(We,{key:1,job:t.activeJob,size:`default`},null,8,[`job`])):A(``,!0),t.activeJob.status.value===T(Se).Done?A(``,!0):(c(),_(Ke,{key:2,job:t.activeJob,size:`default`},null,8,[`job`]))],64)):t.jobs.length?(c(),f(x,{key:1},[p(ve,null,{default:o(()=>[T(h).error?(c(),f(`craft-callout`,mt,e(T(h).error),1)):A(``,!0)]),_:1}),p(ve,null,{default:o(()=>[T(h).success?(c(),f(`craft-callout`,ht,e(T(h).success),1)):A(``,!0)]),_:1}),j(`craft-button`,{type:`button`,onClick:y,loading:T(i)===`loading`},[r[2]||=j(`craft-icon`,{name:`play`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Retry all failed jobs`)),1)],8,gt),j(`craft-button`,{type:`button`,onClick:b,loading:T(u)===`loading`},[r[3]||=j(`craft-icon`,{name:`remove`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Release all jobs`)),1)],8,_t)],64)):A(``,!0)}}),yt=e=>({url:yt.url(e),method:`post`});yt.definition={methods:[`post`],url:`/admin/actions/utilities/get-deprecation-error-traces-modal`},yt.url=e=>yt.definition.url+F(e),yt.post=e=>({url:yt.url(e),method:`post`});var bt=e=>({url:bt.url(e),method:`post`});bt.definition={methods:[`post`],url:`/admin/actions/utilities/delete-deprecation-error`},bt.url=e=>bt.definition.url+F(e),bt.post=e=>({url:bt.url(e),method:`post`});var xt=e=>({url:xt.url(e),method:`post`});xt.definition={methods:[`post`],url:`/admin/actions/utilities/delete-all-deprecation-errors`},xt.url=e=>xt.definition.url+F(e),xt.post=e=>({url:xt.url(e),method:`post`});var z=(e,t)=>({url:z.url(e,t),method:`get`});z.definition={methods:[`get`,`head`],url:`/admin/utilities/deprecation-errors/{logId}`},z.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Oe(e);let n={logId:e.logId};return z.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+F(t)},z.get=(e,t)=>({url:z.url(e,t),method:`get`}),z.head=(e,t)=>({url:z.url(e,t),method:`head`});var B=(e,t)=>({url:B.url(e,t),method:`delete`});B.definition={methods:[`delete`],url:`/admin/utilities/deprecation-errors/{logId}`},B.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Oe(e);let n={logId:e.logId};return B.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+F(t)},B.delete=(e,t)=>({url:B.url(e,t),method:`delete`});var V=e=>({url:V.url(e),method:`delete`});V.definition={methods:[`delete`],url:`/admin/utilities/deprecation-errors`},V.url=e=>V.definition.url+F(e),V.delete=e=>({url:V.url(e),method:`delete`});var St=[`loading`],Ct=[`label`],wt=r({__name:`DeleteLogButton`,props:{logId:{}},setup(e){let t=e,n=oe({logId:t.logId});async function r(){n.submit(B(t.logId),{preserveScroll:!0,preserveState:!0})}return(e,t)=>(c(),f(`craft-button`,{size:`small`,icon:``,appearance:`plain`,onClick:r,loading:T(n).processing},[j(`craft-icon`,{name:`remove`,label:T(N)(`Delete log`)},null,8,Ct)],8,St))}}),Tt=[`innerHTML`],Et={key:2},Dt=r({__name:`StackTrace`,props:{logId:{}},setup(e){let t=e;oe({logId:t.logId});let n=C({html:``}),r=C(!1),a=v();return i(()=>{a.get(z(t.logId).url,{onHttpException:()=>{r.value=!0},onSuccess:e=>{n.value=e}})}),(e,t)=>(c(),_(he,{class:`max-w-4xl`},{default:o(()=>[n.value?.html?(c(),f(`div`,{key:0,innerHTML:n.value?.html},null,8,Tt)):r.value?(c(),_(R,{key:1,label:T(N)(`Failed to load stack trace.`),icon:`triangle-exclamation`},null,8,[`label`])):(c(),f(`craft-spinner`,Et))]),_:1}))}}),Ot=r({__name:`StackTraceButton`,props:{logId:{}},setup(t){let n=C(!1);return(r,i)=>(c(),f(x,null,[j(`craft-button`,{size:`small`,type:`button`,onClick:i[0]||=te(e=>n.value=!0,[`prevent`])},e(T(N)(`Stack Trace`)),1),(c(),_(y,{to:`body`},[p(ke,{"is-active":n.value,onClose:i[1]||=e=>n.value=!1},{default:o(()=>[p(Dt,{"log-id":t.logId},null,8,[`log-id`])]),_:1},8,[`is-active`])]))],64))}}),kt=r({__name:`DeprecationErrors`,props:{logs:{}},setup(e){let t=e,n=de(),r=C([n.accessor(`message`,{header:N(`Message`),cell:e=>w(`span`,{innerHTML:e.getValue()}),meta:{wrap:!0}}),n.accessor(`origin`,{header:N(`Origin`),cell:e=>w(`code`,{innerHTML:e.getValue()}),meta:{wrap:!0}}),n.accessor(`lastOccurrence`,{header:N(`Last Occurrence`),cell:e=>new Date(e.getValue()).toLocaleString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`})}),n.display({id:`stackTrace`,header:N(`Stack Trace`),cell:({row:e})=>w(Ot,{logId:e.original.id})}),n.display({id:`actions`,cell:({row:e})=>w(`div`,{class:`flex justify-end`},[w(wt,{logId:e.original.id})])})]),i=ue({get columns(){return r.value},get data(){return t.logs},getCoreRowModel:fe(),enableSorting:!1});return(t,n)=>e.logs.length?(c(),_(pe,{key:1,spacing:`relaxed`,layout:`auto`,table:T(i),from:1,to:e.logs.length,total:e.logs.length,reorderable:!1},null,8,[`table`,`to`,`total`])):(c(),_(R,{key:0,label:T(N)(`No deprecation warnings to report!`)},null,8,[`label`]))}}),H=e=>({url:H.url(e),method:`post`});H.definition={methods:[`post`],url:`/admin/actions/utilities/clear-caches-perform-action`},H.url=e=>H.definition.url+F(e),H.post=e=>({url:H.url(e),method:`post`});var U=e=>({url:U.url(e),method:`post`});U.definition={methods:[`post`],url:`/admin/actions/utilities/invalidate-tags`},U.url=e=>U.definition.url+F(e),U.post=e=>({url:U.url(e),method:`post`});var At=[`name`,`label`,`.modelValue`,`disabled`],jt=[`label`],Mt=[`.choiceValue`],Nt={slot:`label`},Pt=[`innerHTML`],Ft=[`.choiceValue`],It={slot:`label`},Lt=[`innerHTML`],Rt=r({__name:`CheckboxGroup`,props:{name:{},label:{},disabled:{type:Boolean},modelValue:{},options:{},allowSelectAll:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(n,{emit:r}){let i=r,a=n;function o(e){let t=e.target;i(`update:modelValue`,t.modelValue)}return O(()=>!a.modelValue||a.modelValue.includes(`*`)),(r,i)=>(c(),f(`craft-checkbox-group`,{name:n.name,label:n.label,".modelValue":n.modelValue,onModelValueChanged:o,disabled:n.disabled},[n.allowSelectAll?(c(),f(`craft-checkbox-indeterminate`,{key:0,label:T(N)(`All`)},[(c(!0),f(x,null,M(n.options,n=>(c(),f(`craft-checkbox`,{key:n.value,".choiceValue":n.value},[j(`label`,Nt,[t(r.$slots,`label`,{option:n},()=>[k(e(n.label),1)])]),n.info?(c(),f(`div`,{key:0,slot:`help-text`,innerHTML:n.info},null,8,Pt)):A(``,!0)],40,Mt))),128))],8,jt)):(c(!0),f(x,{key:1},M(n.options,n=>(c(),f(`craft-checkbox`,{key:n.value,".choiceValue":n.value},[j(`label`,It,[t(r.$slots,`label`,{option:n},()=>[k(e(n.label),1)])]),n.info?(c(),f(`div`,{key:0,slot:`help-text`,innerHTML:n.info},null,8,Lt)):A(``,!0)],40,Ft))),128))],40,At))}}),zt={class:`p-4`},Bt={class:`mb-3`},Vt={class:`mt-4 flex gap-2 items-center`},Ht=[`loading`],Ut={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},Wt={class:`p-4`},Gt={class:`mb-3`},Kt={class:`mt-4`},qt={class:`flex gap-2 items-center`},Jt=[`loading`],Yt={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},Xt=r({__name:`ClearCaches`,props:{cacheOptions:{},tagOptions:{}},setup(t){let n=t,{announce:r}=be(),i=oe({caches:n.cacheOptions.map(e=>e.value)}),a=oe({tags:n.tagOptions.map(e=>e.value)});function s(e=[]){return e.filter(Boolean)}return(n,l)=>(c(),f(x,null,[j(`div`,zt,[j(`h2`,Bt,e(T(N)(`Clear Caches`)),1),p(T(S),{method:`post`,action:T(H)(),transform:e=>({caches:s(e.caches)}),"on-success":()=>{T(r)(T(N)(`Caches cleared`))}},{default:o(({processing:n,recentlySuccessful:r})=>[p(Rt,{name:`caches[]`,label:T(N)(`Caches`),modelValue:T(i).caches,"onUpdate:modelValue":l[0]||=e=>T(i).caches=e,options:t.cacheOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),j(`div`,Vt,[j(`craft-button`,{type:`submit`,loading:n},e(T(N)(`Clear caches`)),9,Ht),p(ve,null,{default:o(()=>[r?(c(),f(`craft-callout`,Ut,e(T(N)(`Caches cleared.`)),1)):A(``,!0)]),_:2},1024)])]),_:1},8,[`action`,`transform`,`on-success`])]),l[2]||=j(`hr`,null,null,-1),j(`div`,Wt,[j(`h2`,Gt,e(T(N)(`Invalidate Data Caches`)),1),p(T(S),{method:`post`,action:T(U)(),transform:e=>({tags:s(e.tags)}),"on-success":()=>{T(r)(T(N)(`Data caches invalidated`))}},{default:o(({processing:n,recentlySuccessful:r})=>[p(Rt,{name:`tags[]`,label:T(N)(`Data Caches`),modelValue:T(a).tags,"onUpdate:modelValue":l[1]||=e=>T(a).tags=e,options:t.tagOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),j(`div`,Kt,[j(`div`,qt,[j(`craft-button`,{type:`submit`,loading:n},e(T(N)(`Invalidate caches`)),9,Jt),p(ve,null,{default:o(()=>[r?(c(),f(`craft-callout`,Yt,e(T(N)(`Data caches invalidated.`)),1)):A(``,!0)]),_:2},1024)])])]),_:1},8,[`action`,`transform`,`on-success`])])],64))}}),W=e=>({url:W.url(e),method:`post`});W.definition={methods:[`post`],url:`/admin/actions/utilities/find-and-replace-perform-action`},W.url=e=>W.definition.url+F(e),W.post=e=>({url:W.url(e),method:`post`});var Zt={class:`p-4`},Qt={class:`grid gap-3`},$t={class:`mt-4`},en={class:`flex gap-2 items-center`},tn=[`loading`],nn={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},rn=r({__name:`FindReplace`,setup(t){let n=oe({find:``,replace:``});function r(){n.clearErrors(),n.submit(W(),{onSuccess:()=>{n.reset()}})}return(t,i)=>(c(),f(`div`,Zt,[j(`form`,{onSubmit:te(r,[`prevent`]),method:`post`},[j(`div`,Qt,[p(Ae,{label:T(N)(`Find Text`),modelValue:T(n).find,"onUpdate:modelValue":i[0]||=e=>T(n).find=e,name:`find`,error:T(n).errors.find},null,8,[`label`,`modelValue`,`error`]),p(Ae,{label:T(N)(`Replace Text`),modelValue:T(n).replace,"onUpdate:modelValue":i[1]||=e=>T(n).replace=e,name:`replace`,error:T(n).errors.replace},null,8,[`label`,`modelValue`,`error`])]),j(`div`,$t,[j(`div`,en,[j(`craft-button`,{type:`submit`,loading:T(n).processing,variant:`primary`},e(T(N)(`Find and Replace`)),9,tn),p(ve,null,{default:o(()=>[T(n).recentlySuccessful?(c(),f(`craft-callout`,nn,e(T(N)(`Replace job dispatched.`)),1)):A(``,!0)]),_:1})])])],32)]))}}),G=e=>({url:G.url(e),method:`post`});G.definition={methods:[`post`],url:`/admin/actions/utilities/db-backup-perform-action`},G.url=e=>G.definition.url+F(e),G.post=e=>({url:G.url(e),method:`post`});var an={class:`p-4`},on=[`label`,`.checked`],sn={class:`mt-4`},cn=[`loading`],ln=r({__name:`DatabaseBackup`,setup(t){let n=oe({downloadBackup:!1});function r(){n.clearErrors(),n.submit(G(),{onError:e=>{console.log(`uh oh`)}})}return(t,i)=>(c(),f(`div`,an,[j(`form`,{onSubmit:te(r,[`prevent`]),id:`db-backup`,method:`post`},[j(`craft-checkbox`,{label:T(N)(`Download backup`),name:`downloadBackup`,".checked":T(n).downloadBackup,onModelValueChanged:i[0]||=e=>T(n).downloadBackup=e.target?.checked===!0},null,40,on),j(`div`,sn,[j(`craft-button`,{type:`submit`,variant:`primary`,loading:T(n).processing},e(T(N)(`Backup`)),9,cn)])],32)]))}}),un=e=>({url:un.url(e),method:`post`});un.definition={methods:[`post`],url:`/admin/actions/utilities/apply-new-migrations`},un.url=e=>un.definition.url+F(e),un.post=e=>({url:un.url(e),method:`post`});var dn={type:`submit`,variant:`primary`},fn=r({__name:`Migrations`,props:{newMigrations:{},migrationHistory:{}},setup(t){let n=t,r=O(()=>[...n.newMigrations.map(e=>({name:e,status:N(`New`),batch:``})),...n.migrationHistory.map(e=>({name:e.migration,status:N(`Applied`),batch:e.batch}))]),i=de(),a=C([i.accessor(`name`,{header:N(`Name`),cell:e=>e.getValue()}),i.accessor(`status`,{header:N(`Status`),cell:e=>e.getValue()}),i.accessor(`batch`,{header:N(`Batch`),cell:e=>e.getValue()})]),s=ue({get columns(){return a.value},get data(){return r.value},getCoreRowModel:fe()});return(n,i)=>(c(),f(x,null,[p(ye,{data:t.newMigrations},null,8,[`data`]),t.newMigrations?A(``,!0):(c(),_(R,{key:0,label:T(N)(`No pending content migrations.`)},null,8,[`label`])),r.value.length?(c(),f(x,{key:1},[t.newMigrations.length?(c(),_(T(S),{key:0,action:T(un)(),method:`post`},{default:o(()=>[j(`craft-button`,dn,e(T(N)(`Apply new migrations`)),1)]),_:1},8,[`action`])):A(``,!0),p(pe,{table:T(s),reorderable:!1},null,8,[`table`])],64)):A(``,!0)],64))}}),pn=(e=>(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(pn||{}),mn=Symbol(`DisclosureContext`);function hn(e){let t=ee(mn,null);if(t===null){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hn),t}return t}var gn=Symbol(`DisclosurePanelContext`);function _n(){return ee(gn,null)}var vn=r({name:`Disclosure`,props:{as:{type:[Object,String],default:`template`},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=C(+!e.defaultOpen),i=C(null),a=C(null),o={buttonId:C(`headlessui-disclosure-button-${Fe()}`),panelId:C(`headlessui-disclosure-panel-${Fe()}`),disclosureState:r,panel:i,button:a,toggleDisclosure(){r.value=Pe(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(e){o.closeDisclosure(),(e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?Re(e):Re(o.button):Re(o.button))?.focus()}};return d(mn,o),je(O(()=>Pe(r.value,{0:Ie.Open,1:Ie.Closed}))),()=>{let{defaultOpen:i,...a}=e;return Le({theirProps:a,ourProps:{},slot:{open:r.value===0,close:o.close},slots:t,attrs:n,name:`Disclosure`})}}}),yn=r({name:`DisclosureButton`,props:{as:{type:[Object,String],default:`button`},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=hn(`DisclosureButton`),s=_n(),c=O(()=>s===null?!1:s.value===o.panelId.value);i(()=>{c.value||e.id!==null&&(o.buttonId.value=e.id)}),a(()=>{c.value||(o.buttonId.value=null)});let l=C(null);r({el:l,$el:l}),c.value||ie(()=>{o.button.value=l.value});let u=Ne(O(()=>({as:e.as,type:t.type})),l);function d(){var t;e.disabled||(c.value?(o.toggleDisclosure(),(t=Re(o.button))==null||t.focus()):o.toggleDisclosure())}function f(t){var n;if(!e.disabled)if(c.value)switch(t.key){case Be.Space:case Be.Enter:t.preventDefault(),t.stopPropagation(),o.toggleDisclosure(),(n=Re(o.button))==null||n.focus();break}else switch(t.key){case Be.Space:case Be.Enter:t.preventDefault(),t.stopPropagation(),o.toggleDisclosure();break}}function p(e){switch(e.key){case Be.Space:e.preventDefault();break}}return()=>{let r={open:o.disclosureState.value===0},{id:i,...a}=e;return Le({ourProps:c.value?{ref:l,type:u.value,onClick:d,onKeydown:f}:{id:o.buttonId.value??i,ref:l,type:u.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||Re(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:f,onKeyup:p},theirProps:a,slot:r,attrs:t,slots:n,name:`DisclosureButton`})}}}),bn=r({name:`DisclosurePanel`,props:{as:{type:[Object,String],default:`div`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=hn(`DisclosurePanel`);i(()=>{e.id!==null&&(o.panelId.value=e.id)}),a(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),d(gn,o.panelId);let s=ze(),c=O(()=>s===null?o.disclosureState.value===0:(s.value&Ie.Open)===Ie.Open);return()=>{let r={open:o.disclosureState.value===0,close:o.close},{id:i,...a}=e;return Le({ourProps:{id:o.panelId.value??i,ref:o.panel},theirProps:a,slot:r,attrs:t,slots:n,features:Me.RenderStrategy|Me.Static,visible:c.value,name:`DisclosurePanel`})}}}),xn=[`name`],Sn={class:`release-info`},Cn={class:`release-version`},wn={key:0,class:`release-badge`},Tn={key:1,class:`release-date`},En={key:1,class:`release-header-static`},Dn={class:`release-info`},On={class:`release-version`},kn={key:0,class:`release-badge`},An={key:1,class:`release-date`},jn=E(r({__name:`Release`,props:{version:{},date:{},critical:{type:Boolean},notes:{}},setup(t){let n=t;function r(e){return e?new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):``}let i=O(()=>!!(n.critical||n.notes&&n.notes.includes(`n.notes?n.notes.replace(/(<\/?h)(3|4|5)\b/g,(e,t,n)=>`${t}${parseInt(n)+1} class="h${n}"`):``),s=O(()=>!!n.notes);return(n,l)=>(c(),_(T(vn),{defaultOpen:i.value},{default:o(({open:n})=>[j(`div`,{class:h([`release`,{"release--critical":t.critical}])},[s.value?(c(),_(T(yn),{key:0,class:`release-trigger`},{default:o(()=>[j(`craft-icon`,{name:n?`chevron-down`:`chevron-right`,style:{"font-size":`0.8em`}},null,8,xn),j(`div`,Sn,[j(`strong`,Cn,e(t.version),1),t.critical?(c(),f(`span`,wn,e(T(N)(`Critical`)),1)):A(``,!0),t.date?(c(),f(`span`,Tn,e(r(t.date)),1)):A(``,!0)])]),_:2},1024)):(c(),f(`div`,En,[j(`div`,Dn,[j(`strong`,On,e(t.version),1),t.critical?(c(),f(`span`,kn,e(T(N)(`Critical`)),1)):A(``,!0),t.date?(c(),f(`span`,An,e(r(t.date)),1)):A(``,!0)])])),s.value?(c(),_(T(bn),{key:2,class:`release-notes prose`,innerHTML:a.value},null,8,[`innerHTML`])):A(``,!0)],2)]),_:1},8,[`defaultOpen`]))}}),[[`__scopeId`,`data-v-664b43fa`]]),Mn=e=>({url:Mn.url(e),method:`post`});Mn.definition={methods:[`post`],url:`/admin/actions/updater`},Mn.url=e=>Mn.definition.url+F(e),Mn.post=e=>({url:Mn.url(e),method:`post`});var Nn=e=>({url:Nn.url(e),method:`post`});Nn.definition={methods:[`post`],url:`/admin/updates`},Nn.url=e=>Nn.definition.url+F(e),Nn.post=e=>({url:Nn.url(e),method:`post`});var Pn={"/admin/actions/updater":Mn,"/admin/updates":Nn},Fn=e=>({url:Fn.url(e),method:`post`});Fn.definition={methods:[`post`],url:`/admin/actions/updater/force-update`},Fn.url=e=>Fn.definition.url+F(e),Fn.post=e=>({url:Fn.url(e),method:`post`});var In=e=>({url:In.url(e),method:`post`});In.definition={methods:[`post`],url:`/admin/actions/updater/backup`},In.url=e=>In.definition.url+F(e),In.post=e=>({url:In.url(e),method:`post`});var Ln=e=>({url:Ln.url(e),method:`post`});Ln.definition={methods:[`post`],url:`/admin/actions/updater/server-check`},Ln.url=e=>Ln.definition.url+F(e),Ln.post=e=>({url:Ln.url(e),method:`post`});var Rn=e=>({url:Rn.url(e),method:`post`});Rn.definition={methods:[`post`],url:`/admin/actions/updater/revert`},Rn.url=e=>Rn.definition.url+F(e),Rn.post=e=>({url:Rn.url(e),method:`post`});var zn=e=>({url:zn.url(e),method:`post`});zn.definition={methods:[`post`],url:`/admin/actions/updater/migrate`},zn.url=e=>zn.definition.url+F(e),zn.post=e=>({url:zn.url(e),method:`post`});var Bn=e=>({url:Bn.url(e),method:`post`});Bn.definition={methods:[`post`],url:`/admin/actions/updater/precheck`},Bn.url=e=>Bn.definition.url+F(e),Bn.post=e=>({url:Bn.url(e),method:`post`});var Vn=e=>({url:Vn.url(e),method:`post`});Vn.definition={methods:[`post`],url:`/admin/actions/updater/recheck-composer`},Vn.url=e=>Vn.definition.url+F(e),Vn.post=e=>({url:Vn.url(e),method:`post`});var Hn=e=>({url:Hn.url(e),method:`post`});Hn.definition={methods:[`post`],url:`/admin/actions/updater/composer-install`},Hn.url=e=>Hn.definition.url+F(e),Hn.post=e=>({url:Hn.url(e),method:`post`});var Un=e=>({url:Un.url(e),method:`post`});Un.definition={methods:[`post`],url:`/admin/actions/updater/composer-remove`},Un.url=e=>Un.definition.url+F(e),Un.post=e=>({url:Un.url(e),method:`post`});var Wn=e=>({url:Wn.url(e),method:`post`});Wn.definition={methods:[`post`],url:`/admin/actions/updater/finish`},Wn.url=e=>Wn.definition.url+F(e),Wn.post=e=>({url:Wn.url(e),method:`post`});var Gn={index:Pn,forceUpdate:Fn,backup:In,serverCheck:Ln,revert:Rn,migrate:zn,precheck:Bn,recheckComposer:Vn,composerInstall:Hn,composerRemove:Un,finish:Wn},Kn={class:`update`},qn={class:`update-header`},Jn={class:`text-xl font-semibold`},Yn={class:`update-actions`},Xn=[`name`,`value`],Zn=[`name`,`value`],Qn=[`loading`],$n={type:`button`,slot:`invoker`,icon:``},er=[`label`],tr={slot:`content`},nr={key:0,class:`note`},rr={key:1,class:`note ineligible`},ir={class:`releases`},ar=E(r({__name:`Update`,props:{name:{},handle:{},packageName:{},releases:{default:()=>[]},status:{default:`eligible`},statusText:{},abandoned:{type:Boolean,default:!1},latestVersion:{},ctaText:{},ctaUrl:{type:[String,Boolean]},altCtaText:{},altCtaUrl:{},allowUpdates:{type:Boolean,default:!0}},setup(t){let n=t,r=O(()=>n.allowUpdates&&n.latestVersion&&n.ctaUrl!==void 0),i=O(()=>n.ctaText||N(`Update`));C(!1);let a=N(`Copy plugin handle`),s=C(a);async function l(){try{await navigator.clipboard.writeText(n.handle??``),s.value=N(`Copied!`),setTimeout(()=>{s.value=a},1500)}catch{s.value=N(`Failed to copy`)}}let d=N(`Copy package name`),p=C(d);async function m(){try{await navigator.clipboard.writeText(n.packageName??``),p.value=N(`Copied!`),setTimeout(()=>{p.value=d},1500)}catch{p.value=N(`Failed to copy`)}}return(n,a)=>(c(),f(`div`,Kn,[j(`div`,qn,[j(`h2`,Jn,e(t.name),1),j(`div`,Yn,[r.value?(c(),f(x,{key:0},[t.ctaUrl?(c(),_(ge,{key:0,href:t.ctaUrl,target:`_blank`,variant:`primary`,appearance:`button`},{default:o(()=>[k(e(i.value),1)]),_:1},8,[`href`])):(c(),_(T(S),{key:1,action:T(Gn).index[`/admin/actions/updater`](),method:`post`},{default:o(({processing:n})=>[a[0]||=j(`input`,{type:`hidden`,name:`return`,value:`utilities/updates`},null,-1),j(`input`,{type:`hidden`,name:`install[${t.handle}]`,value:`^${t.latestVersion}`},null,8,Xn),j(`input`,{type:`hidden`,name:`packageNames[${t.handle}]`,value:t.packageName},null,8,Zn),j(`craft-button`,{type:`submit`,variant:`primary`,loading:n},e(i.value),9,Qn)]),_:1},8,[`action`]))],64)):A(``,!0),t.allowUpdates&&t.altCtaText?(c(),f(x,{key:1},[t.altCtaUrl?(c(),_(ge,{key:0,href:t.altCtaUrl,appearance:`button`,variant:`default`},{default:o(()=>[k(e(t.altCtaText),1)]),_:1},8,[`href`])):A(``,!0)],64)):A(``,!0),j(`craft-action-menu`,null,[j(`craft-button`,$n,[j(`craft-icon`,{name:`ellipsis`,label:T(N)(`Actions`)},null,8,er)]),j(`div`,tr,[j(`craft-action-item`,{icon:`clipboard`,onClick:l},e(s.value),1),j(`craft-action-item`,{icon:`clipboard`,onClick:m},e(p.value),1)])])])]),t.abandoned?(c(),f(`blockquote`,nr,[j(`p`,null,e(t.statusText),1)])):t.status===`eligible`?A(``,!0):(c(),f(`blockquote`,rr,[j(`p`,null,e(t.statusText),1)])),j(`div`,ir,[(c(!0),f(x,null,M(t.releases,e=>(c(),_(jn,u({key:e.version},{ref_for:!0},e),null,16))),128))])]))}}),[[`__scopeId`,`data-v-ec2cd8d0`]]),or={key:1,class:`updates-utility`},sr={key:0,class:`updates-header`},cr={class:`text-2xl font-semibold`},lr=[`loading`],ur={class:`updates-grid`},dr=E(r({__name:`Updates`,setup(t){let{data:n,isLoading:r,isError:i,isSuccess:a}=we(`updates`,{params:{forceRefresh:!0,includeDetails:!0}}),s=O(()=>n.value?.allowUpdates??!1),l=O(()=>{let e=n.value?.updates?.cms;return!e||e.releases.length===0&&!e.abandoned?null:e}),d=O(()=>(n.value?.updates?.plugins??[]).filter(e=>e.releases.length>0||e.abandoned)),p=O(()=>l.value!==null||d.value.length>0),m=O(()=>{let e=0;return l.value&&y(l.value)&&e++,d.value.forEach(t=>{y(t)&&e++}),e}),h=O(()=>{let e=[];return l.value&&v(l.value)&&e.push(l.value),d.value.forEach(t=>{v(t)&&e.push(t)}),e}),g=O(()=>N(`{num, plural, =1{# Available Update} other{# Available Updates}}`,{num:m.value}));function v(e){return!(e.status===`phpIssue`||e.status===`expired`||!e.releases.length||e.latestVersion===null)}function y(e){return!(e.status===`phpIssue`||!e.releases.length||e.latestVersion===null)}let b=C(!1);function S(){if(h.value.length===0)return;b.value=!0;let e={},t={};h.value.forEach(n=>{e[n.handle]=`^${n.latestVersion}`,t[n.handle]=n.packageName}),D.post(Gn.index[`/admin/actions/updater`](),{return:`utilities/updates`,install:e,packageNames:t},{onFinish:()=>{b.value=!1}})}return(t,n)=>T(r)?(c(),_(R,{key:0,label:T(N)(`Checking for updates…`)},{graphic:o(()=>[...n[0]||=[j(`craft-spinner`,{style:{"--size":`3rem`},visible:!0},null,-1)]]),_:1},8,[`label`])):T(i)?(c(),_(R,{key:1,icon:`alert-circle`,label:T(N)(`Unable to fetch updates at this time.`)},null,8,[`label`])):T(a)?(c(),f(x,{key:2},[p.value?(c(),f(`div`,or,[s.value&&h.value.length>1?(c(),f(`div`,sr,[j(`h1`,cr,e(g.value),1),j(`craft-button`,{type:`button`,variant:`primary`,loading:b.value,onClick:S},e(T(N)(`Update all`)),9,lr)])):A(``,!0),j(`div`,ur,[l.value?(c(),_(ar,u({key:0},l.value,{allowUpdates:s.value}),null,16,[`allowUpdates`])):A(``,!0),(c(!0),f(x,null,M(d.value,e=>(c(),_(ar,u({key:e.handle},{ref_for:!0},e,{allowUpdates:s.value}),null,16,[`allowUpdates`]))),128))])])):(c(),_(R,{key:0,icon:`check`,label:T(N)(`You’re all up to date!`)},null,8,[`label`]))],64)):A(``,!0)}}),[[`__scopeId`,`data-v-4e8d3551`]]),K=e=>({url:K.url(e),method:`post`});K.definition={methods:[`post`],url:`/admin/actions/project-config/rebuild`},K.url=e=>K.definition.url+F(e),K.post=e=>({url:K.url(e),method:`post`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/diff`},q.url=e=>q.definition.url+F(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/project-config/discard`},J.url=e=>J.definition.url+F(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`get`});Y.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/download`},Y.url=e=>Y.definition.url+F(e),Y.get=e=>({url:Y.url(e),method:`get`}),Y.head=e=>({url:Y.url(e),method:`head`});var fr={rebuild:K,diff:q,discard:J,download:Y},pr={key:0,class:`diff-loading`},mr={class:`py-2`},hr={key:0,class:`diff-show-all`},gr=20,_r=E(r({__name:`ProjectConfigDiff`,props:{invert:{type:Boolean}},setup(t){let n=t,{data:r,isLoading:i}=Te(fr.diff().url,{params:{invert:n.invert}}),a=C([]),l=C(!1);s(r,e=>{a.value=e.split(/\n/)});function u(){l.value=!0}let d=O(()=>l.value||a.value.length<=gr?a.value:a.value.slice(0,gr)),p=O(()=>a.value.length>gr&&!l.value);return(t,n)=>(c(),_(he,{variant:`code`,padding:0,class:h({loading:T(i)}),tabindex:`0`},{default:o(()=>[T(i)?(c(),f(`div`,pr,[...n[0]||=[j(`craft-spinner`,{visible:!0,class:`spinner`},null,-1)]])):(c(),f(x,{key:1},[j(`pre`,mr,[(c(!0),f(x,null,M(d.value,(t,n)=>(c(),f(`code`,{key:n,class:h({"diff-line":!0,"diff-line--add":t.startsWith(`+`),"diff-line--remove":t.startsWith(`-`),"diff-line--info":t.startsWith(`@@`)})},e(t),3))),128))]),p.value?(c(),f(`div`,hr,[j(`craft-button`,{type:`button`,variant:`hairline`,size:`lg`,onClick:u},e(T(N)(`Show all changes`)),1)])):A(``,!0)],64))]),_:1},8,[`class`]))}}),[[`__scopeId`,`data-v-581e5f14`]]);function vr(){let e=C(!1),t=C(!1);function n(){confirm(N(`Are you sure you want to discard the pending project config YAML changes?`))&&(t.value=!0,D.post(fr.discard().url,{},{onFinish:()=>{t.value=!1}}))}async function r(){e.value=!0;try{let e=await ce.get(Y().url,{responseType:`blob`}),t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement(`a`);n.href=t,n.setAttribute(`download`,`project.zip`),document.body.appendChild(n),n.click(),n.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error(`Download failed:`,e)}finally{e.value=!1}}return{isDownloading:e,isDiscarding:t,discardChanges:n,downloadConfig:r}}var yr=e=>({url:yr.url(e),method:`post`});yr.definition={methods:[`post`],url:`/admin/actions/config-sync`},yr.url=e=>yr.definition.url+F(e),yr.post=e=>({url:yr.url(e),method:`post`});var br=e=>({url:br.url(e),method:`post`});br.definition={methods:[`post`],url:`/admin/actions/config-sync/retry`},br.url=e=>br.definition.url+F(e),br.post=e=>({url:br.url(e),method:`post`});var xr=e=>({url:xr.url(e),method:`post`});xr.definition={methods:[`post`],url:`/admin/actions/config-sync/apply-yaml-changes`},xr.url=e=>xr.definition.url+F(e),xr.post=e=>({url:xr.url(e),method:`post`});var Sr=e=>({url:Sr.url(e),method:`post`});Sr.definition={methods:[`post`],url:`/admin/actions/config-sync/regenerate-yaml`},Sr.url=e=>Sr.definition.url+F(e),Sr.post=e=>({url:Sr.url(e),method:`post`});var Cr=e=>({url:Cr.url(e),method:`post`});Cr.definition={methods:[`post`],url:`/admin/actions/config-sync/uninstall-plugin`},Cr.url=e=>Cr.definition.url+F(e),Cr.post=e=>({url:Cr.url(e),method:`post`});var wr=e=>({url:wr.url(e),method:`post`});wr.definition={methods:[`post`],url:`/admin/actions/config-sync/install-plugin`},wr.url=e=>wr.definition.url+F(e),wr.post=e=>({url:wr.url(e),method:`post`});var Tr=e=>({url:Tr.url(e),method:`post`});Tr.definition={methods:[`post`],url:`/admin/actions/config-sync/precheck`},Tr.url=e=>Tr.definition.url+F(e),Tr.post=e=>({url:Tr.url(e),method:`post`});var Er=e=>({url:Er.url(e),method:`post`});Er.definition={methods:[`post`],url:`/admin/actions/config-sync/recheck-composer`},Er.url=e=>Er.definition.url+F(e),Er.post=e=>({url:Er.url(e),method:`post`});var Dr=e=>({url:Dr.url(e),method:`post`});Dr.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-install`},Dr.url=e=>Dr.definition.url+F(e),Dr.post=e=>({url:Dr.url(e),method:`post`});var Or=e=>({url:Or.url(e),method:`post`});Or.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-remove`},Or.url=e=>Or.definition.url+F(e),Or.post=e=>({url:Or.url(e),method:`post`});var kr=e=>({url:kr.url(e),method:`post`});kr.definition={methods:[`post`],url:`/admin/actions/config-sync/finish`},kr.url=e=>kr.definition.url+F(e),kr.post=e=>({url:kr.url(e),method:`post`});var Ar={index:yr,retry:br,applyYamlChanges:xr,regenerateYaml:Sr,uninstallPlugin:Cr,installPlugin:wr,precheck:Tr,recheckComposer:Er,composerInstall:Dr,composerRemove:Or,finish:kr},jr=[`value`],Mr={key:0,type:`hidden`,name:`force`,value:`1`},Nr=[`loading`],Pr=r({__name:`SyncConfigButton`,props:{force:{type:Boolean,default:!1},returnTo:{default:`utilities/project-config`},label:{default:N(`Reapply everything`)}},setup(n){return(r,i)=>(c(),_(T(S),{action:T(Ar).index()},{default:o(({processing:i})=>[j(`input`,{type:`hidden`,name:`return`,value:n.returnTo},null,8,jr),n.force?(c(),f(`input`,Mr)):A(``,!0),j(`craft-button`,u({type:`submit`,variant:`primary`,loading:i},r.$attrs),[t(r.$slots,`label`,{},()=>[k(e(n.label),1)])],16,Nr)]),_:3},8,[`action`]))}}),Fr={class:`project-config-utility`},Ir={class:`config-section`},Lr=[`innerHTML`],Rr={class:`mt-3`},zr=[`innerHTML`],Br={key:0,class:`buttons`},Vr=[`loading`],Hr={key:1,class:`buttons`},Ur=[`loading`],Wr={variant:`success`,icon:`circle-check`,class:`my-3`},Gr={class:`buttons`},Kr={key:1,class:`buttons`},qr=[`loading`],Jr={class:`config-section`},Yr={class:`buttons`},Xr={class:`flex gap-2 items-center`},Zr=[`loading`],Qr={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},$r={class:`config-section`},ei={class:`buttons`},ti=[`loading`],ni=E(r({__name:`ProjectConfig`,props:{readOnly:{type:Boolean},invert:{type:Boolean},yamlExists:{type:Boolean},areChangesPending:{type:Boolean},entireConfig:{}},setup(t){let n=t,{isDownloading:r,isDiscarding:i,discardChanges:a,downloadConfig:s}=vr(n),l=O(()=>n.yamlExists?n.invert?N(`Update YAML Files`):N(`Apply YAML Changes`):N(`Generate YAML Files`)),u=O(()=>n.yamlExists?n.invert?N(`Update your project config YAML files to reflect the latest changes in the loaded project config.`):N(`Apply changes in your project config YAML files to the loaded project config.`):N(`Save the loaded project config data to YAML files in your {folder} folder.`,{folder:`config/project/`})),d=O(()=>n.invert?N(`Make sure you're not overwriting changes in the YAML files that were made on another environment.`):N(`Make sure you've followed the Environment Setup instructions before applying project config YAML changes.`,{url:`https://craftcms.com/docs/5.x/system/project-config.html#environment-setup`}));return(n,m)=>(c(),f(`div`,Fr,[j(`section`,Ir,[j(`h2`,null,e(l.value),1),j(`p`,{innerHTML:u.value,class:`mb-3`},null,8,Lr),j(`div`,Rr,[t.yamlExists?(c(),f(x,{key:0},[t.areChangesPending?(c(),f(x,{key:0},[p(_r,{invert:t.invert},null,8,[`invert`]),j(`craft-callout`,{variant:`info`,innerHTML:d.value,class:`my-2`},null,8,zr),t.invert?(c(),f(`div`,Br,[j(`craft-button`,{type:`button`,variant:`secondary`,loading:T(i),onClick:m[0]||=(...e)=>T(a)&&T(a)(...e)},e(T(N)(`Update YAML files`)),9,Vr),p(Pr,{label:T(N)(`Apply YAML changes`)},null,8,[`label`])])):(c(),f(`div`,Hr,[p(Pr,{label:T(N)(`Apply changes only`),variant:`default`},null,8,[`label`]),p(Pr,{force:!0}),t.readOnly?A(``,!0):(c(),f(`craft-button`,{key:0,type:`button`,loading:T(i),onClick:m[1]||=(...e)=>T(a)&&T(a)(...e)},e(T(N)(`Discard changes`)),9,Ur))]))],64)):(c(),f(x,{key:1},[j(`craft-callout`,Wr,e(T(N)(`There aren't any pending project config changes to apply.`)),1),j(`div`,Gr,[p(Pr,{force:!0,label:T(N)(`Reapply everything`)},null,8,[`label`])])],64))],64)):(c(),f(`div`,Kr,[p(T(S),{action:T(J)()},{default:o(({processing:t})=>[j(`craft-button`,{type:`submit`,variant:`secondary`,loading:t},e(T(N)(`Generate`)),9,qr)]),_:1},8,[`action`])]))])]),t.readOnly?A(``,!0):(c(),f(x,{key:0},[m[3]||=j(`hr`,null,null,-1),j(`section`,Jr,[j(`h2`,null,e(T(N)(`Rebuild the Config`)),1),j(`p`,null,e(T(N)(`Rebuild the project config based on the data stored throughout the database.`)),1),j(`div`,Yr,[p(T(S),{action:T(K)(),method:`post`},{default:o(({processing:t,recentlySuccessful:n})=>[j(`div`,Xr,[j(`craft-button`,{type:`submit`,variant:`default`,loading:t},e(T(N)(`Rebuild`)),9,Zr),p(ve,null,{default:o(()=>[n?(c(),f(`craft-callout`,Qr,e(T(N)(`Config rebuilt.`)),1)):A(``,!0)]),_:2},1024)])]),_:1},8,[`action`])])])],64)),m[5]||=j(`hr`,null,null,-1),j(`section`,$r,[j(`h2`,null,e(T(N)(`Loaded Project Config Data`)),1),p(he,{variant:`code`,tabindex:`0`,class:`my-3`},{default:o(()=>[j(`pre`,null,[j(`code`,null,e(t.entireConfig),1)])]),_:1}),j(`div`,ei,[j(`craft-button`,{type:`button`,loading:T(r),onClick:m[2]||=(...e)=>T(s)&&T(s)(...e)},[m[4]||=j(`craft-icon`,{name:`download`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Download`)),1)],8,ti)])])]))}}),[[`__scopeId`,`data-v-b8fb6328`]]),ri={class:`progress-cell`},ii=[`total`,`processed`,`pending`],ai=E(r({__name:`SessionProgress`,props:{processedEntries:{},totalEntries:{},pending:{type:Boolean}},setup(e){let t=e;return O(()=>t.totalEntries===0?0:Math.round(t.processedEntries/t.totalEntries*100)),(t,n)=>(c(),f(`div`,ri,[j(`craft-progress-bar`,{total:e.totalEntries,processed:e.processedEntries,pending:e.pending,"show-status":``},null,8,ii)]))}}),[[`__scopeId`,`data-v-a83164ce`]]),oi={class:`flex gap-1`},si=[`loading`],ci=[`loading`],li=r({__name:`SessionActions`,props:{sessionId:{},actionRequired:{type:Boolean}},emits:[`stop`,`review`],setup(t,{emit:n}){let r=n,i=C(!1),a=C(!1);function o(e){a.value=!0,r(`stop`,e)}function s(e){i.value=!0,r(`review`,e)}return(n,r)=>(c(),f(`div`,oi,[t.actionRequired?(c(),f(`craft-button`,{key:0,type:`button`,size:`small`,loading:i.value,onClick:r[0]||=e=>s(t.sessionId)},e(T(N)(`Review`)),9,si)):A(``,!0),j(`craft-button`,{type:`button`,size:`small`,variant:`danger`,loading:a.value,onClick:r[1]||=e=>o(t.sessionId)},[r[2]||=j(`craft-icon`,{name:`x`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Discard`)),1)],8,ci)]))}}),X=g(null),Z=C(new Map),ui=C(null),di=C(null),fi=C(!1),pi=C(!1),mi=C(null),hi=C(!1),gi=!1;function _i(){X.value&&(Z.value=new Map(X.value.getSessions().map(e=>[e.id,e])),ui.value=X.value.getCurrentSessionId())}function vi(){X.value&&(X.value.on(`change`,({reviewSessionId:e})=>{if(_i(),fi.value&&di.value&&!Z.value.has(di.value.id)&&ji(),e&&!fi.value){let t=Z.value.get(e);t&&Ai(t)}}),X.value.on(`error`,({message:e})=>{mi.value=e}),X.value.on(`complete`,()=>{hi.value=!0}))}var yi=O(()=>Array.from(Z.value.values())),bi=O(()=>Z.value.size>0),xi=O(()=>X.value?.isProcessing()??!1),Si=O(()=>ui.value===null?null:Z.value.get(ui.value)??null),Ci=O(()=>{let e=Si.value;return!e||e.totalEntries===0?0:Math.round(e.processedEntries/e.totalEntries*100)}),wi=O(()=>{let e=Si.value;return e?`${e.processedEntries} / ${e.totalEntries}`:null});async function Ti(e){if(!(!X.value||e.volumes.length===0)){pi.value=!0,hi.value=!1,mi.value=null;try{let t=await X.value.startIndexing(e);return _i(),t}finally{pi.value=!1}}}function Ei(e){X.value?.stopSession(e)}function Di(e){X.value?.getSessionOverview(e)}function Oi(e){X.value?.finishSession(e)}function ki(e){Ei(e)}function Ai(e){fi.value||=(di.value=e,!0)}function ji(){fi.value=!1,di.value=null}function Mi(e={}){if(!gi){let{existingSessions:t=[],maxConcurrentConnections:n,autoResume:r=!0}=e;X.value=new ne({existingSessions:t,maxConcurrentConnections:n,autoResume:r}),vi(),_i(),gi=!0}return{sessions:Z,sessionsArray:yi,currentSessionId:ui,currentSession:Si,hasSessions:bi,isProcessing:xi,isStarting:pi,isComplete:hi,lastError:mi,progressPercent:Ci,progressInfo:wi,reviewSession:di,isReviewOpen:fi,startIndexing:Ti,stopSession:Ei,reviewSessionOverview:Di,finishSession:Oi,keepFiles:ki,openReview:Ai,closeReview:ji}}var Ni={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Pi(e){return e.replace(/[&<>"']/g,e=>Ni[e]??``)}var Fi={class:`grid gap-3`},Ii={key:0},Li={class:`mb-2`},Ri={class:`my-2`},zi={key:1},Bi=r({__name:`ReviewSessionModal`,props:{isActive:{type:Boolean,default:!1}},setup(t){let{stopSession:n,finishSession:r,closeReview:i,reviewSession:a}=Mi(),s=O(()=>a.value?.missingEntries),l=O(()=>s.value?.folders??{}),u=O(()=>s.value?.files??{}),d=O(()=>l.value?Object.keys(l.value).length>0:!1),m=O(()=>u.value?Object.keys(u.value??{}).length>0:!1),h=O(()=>d.value||m.value),g=O(()=>l.value?Object.keys(l.value).map(e=>({label:Pi(l.value[e]),value:e})):[]),v=O(()=>u.value?Object.keys(u.value).map(e=>({label:Pi(u.value[e]),value:e})):[]),y=ae({deleteFolder:[``,...g.value.map(e=>e.value.toString())],deleteAsset:[``,...v.value.map(e=>e.value.toString())]});function b(e,t){return e===`folders`&&a.value?.listEmptyFolders?N(`Missing or empty {items}`,t):N(`Missing {items}`,t)}function S(e,t){return e===`files`&&a.value?.listEmptyFolders?N(`The following {items} could not be found or are empty. Should they be deleted from the index?`,t):N(`The following {items} could not be found. Should they be deleted from the index?`,t)}async function C(){r({sessionId:a.value.id,deleteFolder:y.deleteFolder?.filter(Boolean),deleteAsset:y.deleteAsset?.filter(Boolean)}),D.visit(L({id:`asset-indexes`}))}return(t,n)=>T(a)?(c(),_(xe,{key:0,"is-active":!0,onClose:T(i),"reset-label":h.value?T(N)(`Keep them`):void 0,"submit-label":h.value?T(N)(`Delete them`):T(N)(`OK`),onSubmit:C},{default:o(()=>[j(`div`,Fi,[T(a).skippedEntries?(c(),f(`div`,Ii,[j(`h2`,Li,e(T(N)(`Skipped files`)),1),j(`p`,null,e(T(N)(`The following items were not indexed.`)),1),j(`ul`,Ri,[(c(!0),f(x,null,M(T(a).skippedEntries,t=>(c(),f(`li`,{key:t},[j(`code`,null,e(t),1)]))),128))])])):A(``,!0),h.value?(c(),f(`div`,zi,[d.value?(c(),f(x,{key:0},[j(`h2`,null,e(b(`folders`,{items:`folders`})),1),j(`p`,null,e(S(`folders`,{items:`folders`})),1),p(Rt,{class:`my-2`,label:T(N)(`Delete folders`),"model-value":y.deleteFolder,options:g.value,"allow-select-all":!0},{label:o(({option:t})=>[j(`code`,null,e(t.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):A(``,!0),m.value?(c(),f(x,{key:1},[j(`h2`,null,e(b(`files`,{items:`files`})),1),j(`p`,null,e(S(`files`,{items:`files`})),1),p(Rt,{class:`my-2`,label:T(N)(`Delete assets`),"model-value":y.deleteAsset,options:v.value,"allow-select-all":!0},{label:o(({option:t})=>[j(`code`,null,e(t.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):A(``,!0)])):A(``,!0)])]),_:1},8,[`onClose`,`reset-label`,`submit-label`])):A(``,!0)}}),Vi={class:``},Hi=r({__name:`SessionVolumes`,props:{value:{}},setup(t){function n(e){let t=JSON.parse(e);return Object.values(t)}return(r,i)=>(c(),f(`ul`,Vi,[(c(!0),f(x,null,M(n(t.value),t=>(c(),f(`li`,{key:t},e(t),1))),128))]))}}),Ui=r({__name:`Date`,props:{value:{}},setup(t){let n=t,r=O(()=>new Date(n.value).toLocaleString());return(t,n)=>e(r.value)}}),Wi={class:`sessions`},Gi={class:`session`},Ki={class:`session__label`},qi={class:`mb-1`},Ji={class:`session__status`},Yi={class:`mb-1`},Xi={class:`session__last-update`},Zi={class:`mb-1`},Qi={class:`session__progress`},$i={class:`mb-1`},ea={class:`session__actions`},ta=E(r({__name:`IndexingSessions`,setup(t){let{sessionsArray:n,currentSessionId:r,stopSession:i,reviewSessionOverview:a,reviewSession:s}=Mi(),l=de(),u=C([l.accessor(`indexedVolumes`,{header:()=>N(`Volumes being indexed`),cell:({getValue:e})=>w(Hi,{value:e()})}),l.accessor(`dateUpdated`,{header:()=>N(`Last update`),cell:({getValue:e})=>w(Ui,{value:e().date})}),l.display({id:`progress`,header:()=>N(`Progress`),cell:({row:e})=>w(ai,{pending:!e.original.actionRequired&&e.original.id!==r.value,processedEntries:e.original.processedEntries,totalEntries:e.original.totalEntries})}),l.display({id:`status`,header:()=>N(`Status`),cell:({row:e})=>{let t=e.original;return t.actionRequired?w(P,{variant:`warning`},()=>N(`Waiting for review`)):t.id===r.value?w(P,{variant:`success`},()=>N(`Active`)):w(P,{variant:`default`},()=>N(`Waiting`))}}),l.display({id:`actions`,cell:({row:e})=>w(li,{sessionId:e.original.id,actionRequired:e.original.actionRequired,onStop:e=>i(e),onReview:e=>a(e)})})]);return ue({get data(){return n.value},get columns(){return u.value},getRowId:e=>String(e.id),getCoreRowModel:fe()}),(t,l)=>(c(),f(x,null,[j(`div`,Wi,[(c(!0),f(x,null,M(T(n),t=>(c(),f(`div`,Gi,[j(`div`,Ki,[j(`div`,qi,[j(`strong`,null,e(T(N)(`Volumes being indexed`)),1)]),p(Hi,{value:t.indexedVolumes},null,8,[`value`])]),j(`div`,Ji,[j(`div`,Yi,[j(`strong`,null,e(T(N)(`Status`)),1)]),t.actionRequired?(c(),_(P,{key:0,variant:`warning`},{default:o(()=>[k(e(T(N)(`Waiting for review`)),1)]),_:1})):t.id===T(r)?(c(),_(P,{key:1,variant:`success`},{default:o(()=>[k(e(T(N)(`Active`)),1)]),_:1})):(c(),_(P,{key:2},{default:o(()=>[k(e(T(N)(`Waiting`)),1)]),_:1}))]),j(`div`,Xi,[j(`div`,Zi,[j(`strong`,null,e(T(N)(`Last update`)),1)]),p(Ui,{value:t.dateUpdated.date},null,8,[`value`])]),j(`div`,Qi,[j(`div`,$i,[j(`strong`,null,e(T(N)(`Progress`)),1)]),p(ai,{"processed-entries":t.processedEntries,"total-entries":t.totalEntries,pending:!t.actionRequired&&t.id!==T(r)},null,8,[`processed-entries`,`total-entries`,`pending`])]),j(`div`,ea,[p(li,{"session-id":t.id,"action-required":t.actionRequired,onStop:l[0]||=e=>T(i)(e),onReview:l[1]||=e=>T(a)(e)},null,8,[`session-id`,`action-required`])])]))),256))]),T(s)?(c(),_(Bi,{key:0})):A(``,!0)],64))}}),[[`__scopeId`,`data-v-99f02379`]]),na={key:0,class:`p-4`},ra={key:1,class:`p-4`},ia={class:`text-sm mb-2 mt-6`},aa={class:`grid gap-3`},oa=[`label`,`checked`,`disabled`],sa={slot:`help-text`},ca=[`label`,`checked`],la={slot:`help-text`},ua={class:`mt-4 flex gap-2 items-center`},da=[`loading`,`disabled`],fa=r({__name:`AssetIndexes`,props:{existingSessions:{},volumeOptions:{default:()=>[]},dateFormat:{},isEphemeral:{type:Boolean}},setup(t){let n=t,{sessionsArray:r,hasSessions:i,startIndexing:a,isStarting:o}=Mi({existingSessions:n.existingSessions}),s=ae({volumes:[`*`,...n.volumeOptions.map(e=>e.value)],cacheImages:!1,listEmptyFolders:!1});async function l(){await a(s)}return(n,r)=>(c(),f(x,null,[T(i)?(c(),f(`div`,na,[p(ta)])):A(``,!0),t.volumeOptions?(c(),f(`div`,ra,[j(`form`,{onSubmit:te(l,[`prevent`])},[p(Rt,{name:`volumes[]`,label:T(N)(`Volumes`),modelValue:s.volumes,"onUpdate:modelValue":r[0]||=e=>s.volumes=e,options:t.volumeOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),j(`h2`,ia,e(T(N)(`Options`)),1),j(`div`,aa,[t.isEphemeral?A(``,!0):(c(),f(`craft-switch`,{key:0,name:`cacheImages`,label:T(N)(`Cache remote images`),checked:s.cacheImages,disabled:t.isEphemeral,onChange:r[1]||=e=>s.cacheImages=e.target.checked},[j(`div`,sa,[k(e(T(N)(`Download copies of remote images to the local filesystem.`))+` `,1),t.isEphemeral?(c(),f(x,{key:0},[r[3]||=j(`br`,null,null,-1),j(`em`,null,e(T(N)(`This option is disabled for ephemeral environments.`)),1)],64)):A(``,!0)])],40,oa)),j(`craft-switch`,{name:`listEmptyFolders`,label:T(N)(`List empty folders`),checked:s.listEmptyFolders,onChange:r[2]||=e=>s.listEmptyFolders=e.target.checked},[j(`div`,la,e(T(N)(`Include empty folders in the review step.`)),1)],40,ca)]),j(`div`,ua,[j(`craft-button`,{type:`submit`,variant:`primary`,loading:T(o),disabled:s.volumes.length===0},e(T(N)(`Update asset indexes`)),9,da)])],32)])):A(``,!0)],64))}}),Q=(e,t)=>({url:Q.url(e,t),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/system-messages/{key}`},Q.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={key:e}),Array.isArray(e)&&(e={key:e[0]}),e=Oe(e);let n={key:e.key};return Q.definition.url.replace(`{key}`,n.key.toString()).replace(/\/+$/,``)+F(t)},Q.get=(e,t)=>({url:Q.url(e,t),method:`get`}),Q.head=(e,t)=>({url:Q.url(e,t),method:`head`});var $=e=>({url:$.url(e),method:`post`});$.definition={methods:[`post`],url:`/admin/system-messages`},$.url=e=>$.definition.url+F(e),$.post=e=>({url:$.url(e),method:`post`});var pa={show:Q,store:$},ma=[`.modelValue`,`has-feedbck-for`],ha={slot:`feedback`},ga={key:0,class:`error-list`},_a=r({name:`CraftTextarea`,__name:`CraftTextarea`,props:l({error:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=m(n,`modelValue`);return(i,a)=>(c(),f(`craft-textarea`,u(i.$attrs,{".modelValue":r.value,onModelValueChanged:a[0]||=e=>r.value=e.target?.modelValue,"has-feedbck-for":n.error?`error`:``}),[t(i.$slots,`default`),j(`div`,ha,[n.error?(c(),f(`ul`,ga,[j(`li`,null,e(n.error),1)])):A(``,!0)])],48,ma))}}),va={class:`flex items-center gap-2`},ya=[`visible`],ba={class:`grid gap-3`},xa=[`variant`,`icon`],Sa=r({__name:`SystemMessageEditModal`,props:{isActive:{type:Boolean},message:{},locales:{},isMultiSite:{type:Boolean},initialLanguage:{}},emits:[`close`,`save`],setup(t,{emit:r}){let i=t,a=r,{flash:l}=_e(),{announce:u}=be(),d=C(null),f=v({language:i.initialLanguage}),m=v({key:i.message.key,language:i.initialLanguage,subject:i.message.subject,body:i.message.body});function h(){f.get(pa.show({key:i.message.key}).url,{onSuccess:({message:e})=>{e&&(m.language=e.language,m.subject=e.subject,m.body=e.body)}})}s(()=>i.message,e=>{m.key=e.key,m.subject=e.subject,m.body=e.body,m.language=i.initialLanguage});function g({closeOnSuccess:e=!0}={}){!m.subject.trim()||!m.body.trim()||(d.value=null,m.post($().url,{onHttpException:e=>{d.value={icon:`triangle-exclamation`,message:N(`Failed to save message.`),variant:`danger`}},onSuccess:t=>{a(`save`,{subject:t.subject,body:t.body,language:t.language}),e?(l(`success`,N(`Message saved.`),{duration:-1}),a(`close`)):d.value={icon:`circle-check`,message:N(`Message saved`),variant:`success`}},onError:()=>{d.value={icon:`triangle-exclamation`,message:N(`Failed to save`),variant:`danger`}}}))}function y(){g()}return Ce(`keydown`,e=>{i.isActive&&((e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),y()),(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),g({closeOnSuccess:!1})))}),(r,i)=>(c(),_(xe,{"is-active":t.isActive,title:T(N)(`Edit Message`),loading:T(m).processing,onClose:i[3]||=e=>a(`close`),onSubmit:y,width:`2xl`},n({"header-actions":o(()=>[j(`div`,va,[j(`craft-spinner`,{visible:T(f).processing,style:{"--size":`1rem`}},null,8,ya),p(me,{modelValue:T(f).language,"onUpdate:modelValue":i[0]||=e=>T(f).language=e,options:t.locales,onChange:h},null,8,[`modelValue`,`options`])])]),default:o(()=>[j(`div`,ba,[p(Ve,{label:T(N)(`Subject`),"help-text":T(N)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:T(m).subject,"onUpdate:modelValue":i[1]||=e=>T(m).subject=e,maxlength:`1000`,required:``,disabled:T(f).processing},null,8,[`label`,`help-text`,`modelValue`,`disabled`]),p(_a,{label:T(N)(`Body`),"help-text":T(N)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:T(m).body,"onUpdate:modelValue":i[2]||=e=>T(m).body=e,monospace:``,required:``,disabled:T(f).processing,"max-rows":`25`},null,8,[`label`,`help-text`,`modelValue`,`disabled`])])]),_:2},[d.value?{name:`feedback`,fn:o(()=>[j(`craft-callout`,{variant:d.value.variant,icon:d.value.icon,appearance:`plain`,inline:``,class:`p-0`},e(d.value.message),9,xa)]),key:`0`}:void 0]),1032,[`is-active`,`title`,`loading`]))}}),Ca={id:`messages`,class:`p-4`},wa={class:`text-lg mb-2`},Ta={class:`font-medium`},Ea=[`onClick`],Da=[`label`],Oa=[`innerHTML`],ka=E(r({__name:`SystemMessages`,props:{messages:{},locales:{},isMultiSite:{type:Boolean},primaryLanguage:{}},setup(t){let n=t,{flash:r}=_e(),i=C([...n.messages]),a=C(!1),s=C(null);function l(e){s.value=e,a.value=!0}function u(){a.value=!1,s.value=null}function d(e){if(s.value&&e.language===n.primaryLanguage){let t=i.value.findIndex(e=>e.key===s.value?.key),n=i.value[t];n&&(n.subject=e.subject,n.body=e.body)}}function m(e){return e.replace(/\n/g,`
`)}return(n,r)=>(c(),f(x,null,[j(`div`,Ca,[(c(!0),f(x,null,M(i.value,t=>(c(),f(`div`,{key:t.key,class:`mb-6`},[j(`h2`,wa,e(t.heading),1),p(he,{appearance:`outline`,variant:`code`},{title:o(()=>[j(`div`,Ta,e(t.subject),1)]),"header-actions":o(()=>[j(`craft-button`,{type:`button`,icon:``,size:`small`,onClick:e=>l(t)},[j(`craft-icon`,{name:`pencil`,label:T(N)(`Edit message`)},null,8,Da)],8,Ea)]),default:o(()=>[j(`div`,{class:`font-mono text-xs`,innerHTML:m(t.body)},null,8,Oa)]),_:2},1024)]))),128))]),s.value?(c(),_(Sa,{key:0,"is-active":a.value,message:s.value,locales:t.locales,"is-multi-site":t.isMultiSite,"initial-language":t.primaryLanguage,onClose:u,onSave:d},null,8,[`is-active`,`message`,`locales`,`is-multi-site`,`initial-language`])):A(``,!0)],64))}}),[[`__scopeId`,`data-v-a4f74fa5`]]),Aa=[`disabled`,`loading`],ja=r({__name:`DeprecationErrorsToolbar`,props:{disabled:{type:Boolean}},setup(t){return(n,r)=>(c(),_(T(S),{action:T(V)(),method:`delete`},{default:o(({processing:n})=>[j(`craft-button`,{disabled:t.disabled,type:`submit`,loading:n},e(T(N)(`Clear All`)),9,Aa)]),_:1},8,[`action`]))}}),Ma=[],Na=[],Pa=se.getInstance(),Fa=le.getInstance(),Ia={initialConfig:{},get $config(){return Pa},get $queue(){return Fa},get $axios(){return ce},booted(e){Ma.push(e)},booting(e){Na.push(e)},config(e){this.initialConfig=e},init(){Pa.initialize(this.initialConfig),Fa.initialize({enabled:!0,appId:Pa.get(`systemUid`,``),canAccessQueueManager:Pa.get(`canAccessQueueManager`,!1)})},async start(){this.init(),ce.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`,ce.defaults.headers.common[`X-CSRF-TOKEN`]=this.$config.get(`csrfToken`),console.groupCollapsed(`Craft configuration`),console.log(Pa.all().entries()),console.groupEnd(),console.log(`Calling booting callbacks`,Na),Na.forEach(e=>e(this)),Na=[],await re({resolve:async(e,t)=>{let n=await Object.assign({"../pages/Install.vue":()=>b(()=>import(`./Install.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22]),import.meta.url),"../pages/SettingsEmailPage.vue":()=>b(()=>import(`./SettingsEmailPage.js`),__vite__mapDeps([23,1,2,3,4,5,6,7,8,24,11,25,9,26,17,18,19,27,28,29,30,31,14,15,16,32,21]),import.meta.url),"../pages/SettingsGeneralPage.vue":()=>b(()=>import(`./SettingsGeneralPage.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,8,9,27,28,29,30,31,21,34]),import.meta.url),"../pages/SettingsIndexPage.vue":()=>b(()=>import(`./SettingsIndexPage.js`),__vite__mapDeps([35,1,2,3,4,5,6,7,8,27,9,28,29,30,31,36]),import.meta.url),"../pages/SettingsSectionsEditPage.vue":()=>b(()=>import(`./SettingsSectionsEditPage.js`),__vite__mapDeps([37,1,2,3,4,5,6,7,8,24,11,25,9,10,26,17,18,19,38,21,27,28,29,30,31,14,15,39,40]),import.meta.url),"../pages/SettingsSectionsIndexPage.vue":()=>b(()=>import(`./SettingsSectionsIndexPage.js`),__vite__mapDeps([41,1,2,3,4,5,6,7,8,24,11,25,38,21,27,9,28,29,30,14,15]),import.meta.url),"../pages/SettingsSitesEdit.vue":()=>b(()=>import(`./SettingsSitesEdit.js`),__vite__mapDeps([42,1,2,3,4,5,6,7,8,17,18,19,9,43,44,12,13,14,15,21,27,28,29,30,31,16,39]),import.meta.url),"../pages/SettingsSitesIndex.vue":()=>b(()=>import(`./SettingsSitesIndex.js`),__vite__mapDeps([45,1,2,3,4,5,6,7,8,24,11,25,17,18,19,43,44,12,9,13,14,15,21,31,28,29,46,27,30,47,48]),import.meta.url),"../pages/Updater.vue":()=>b(()=>import(`./Updater.js`),__vite__mapDeps([49,1,2,3,4,5,6,7,8,50]),import.meta.url),"../pages/UtilitiesShowPage.vue":()=>b(()=>import(`./UtilitiesShowPage.js`),__vite__mapDeps([51,1,2,3,4,5,6,7,8,28,29,46,9,27,30,47]),import.meta.url)})[`../pages/${e}.vue`]?.();if(!n)throw Error(`Page not found: ${e}`);return n.default??n},withApp(e){e.provide(lt,Fa),e.provide(ut,ce),e.provide(dt,Pa),e.component(`QueueManager`,ft),e.component(`QueueManagerToolbar`,vt),e.component(`DeprecationErrors`,kt),e.component(`DeprecationErrorsToolbar`,ja),e.component(`ClearCaches`,Xt),e.component(`FindReplace`,rn),e.component(`DatabaseBackup`,ln),e.component(`Migrations`,fn),e.component(`Updates`,dr),e.component(`ProjectConfig`,ni),e.component(`AssetIndexes`,fa),e.component(`SystemMessages`,ka)}}),console.log(`Calling booted callbacks`,Ma),Ma.forEach(e=>e(this)),Ma=[]}};export{Ia as t}; \ No newline at end of file +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Install.js","./_plugin-vue_export-helper.js","./rolldown-runtime.js","./lit.js","./decorators.js","./Queue.ts.js","./decorate-EVKP5RjP.js","./nav-item-9g3ebwBJ.js","./nav-list.ts.js","./dist.js","./CraftInput.js","./Select.js","./Modal.js","./assets/Modal.css","./Pane.js","./assets/Pane.css","./CraftCombobox.js","./InputCombobox.js","./keyboard.js","./assets/InputCombobox.css","./useFetch.js","./assets/Install.css","./SettingsEmailPage.js","./AdminTable.js","./assets/AdminTable.css","./useEditableTable.js","./AppLayout.js","./useAnnouncer.js","./assets/useAnnouncer.css","./assets/AppLayout.css","./CalloutReadOnly.js","./Input.js","./SettingsGeneralPage.js","./assets/SettingsGeneralPage.css","./SettingsIndexPage.js","./assets/SettingsIndexPage.css","./SettingsSectionsEditPage.js","./SectionsController.js","./useInputGenerator.js","./assets/SettingsSectionsEditPage.css","./SettingsSectionsIndexPage.js","./SettingsSitesEdit.js","./DeleteSiteModal.js","./ModalForm.js","./SettingsSitesIndex.js","./IndexLayout.js","./assets/IndexLayout.css","./assets/SettingsSitesIndex.css","./Updater.js","./assets/Updater.css","./UtilitiesShowPage.js"])))=>i.map(i=>d[i]); +import{$ as e,B as t,C as n,E as r,F as i,I as a,J as o,K as s,L as c,M as l,N as u,R as d,S as f,T as p,U as m,X as h,at as g,b as _,c as v,g as y,gt as b,h as x,i as S,it as C,j as ee,k as w,lt as T,m as te,mt as ne,n as re,q as ie,rt as ae,s as oe,t as E,ut as D,v as O,w as k,x as A,y as j,z as M}from"./_plugin-vue_export-helper.js";import{r as N}from"./nav-item-9g3ebwBJ.js";import{n as se,r as ce,t as le}from"./Queue.ts.js";import{a as ue,o as de,s as fe,t as pe}from"./AdminTable.js";import{t as me}from"./Select.js";import{t as he}from"./Pane.js";import{a as ge,i as _e,n as ve,r as ye,t as be}from"./useAnnouncer.js";import{n as P,t as xe}from"./ModalForm.js";import{t as Se}from"./queue.js";import{a as Ce,n as we,o as F,s as Te}from"./dist.js";import{n as Ee,r as De,t as Oe}from"./useFetch.js";import{t as ke}from"./Modal.js";import{t as Ae}from"./Input.js";import{a as je,c as Me,d as Ne,f as Pe,m as Fe,n as Ie,o as Le,p as Re,r as ze,t as Be}from"./keyboard.js";import{t as Ve}from"./CraftInput.js";var I=(e,t)=>({url:I.url(e,t),method:`get`});I.definition={methods:[`get`,`head`],url:`/admin/utilities/deprecation-errors/{logId}`},I.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Ce(e);let n={logId:e.logId};return I.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+F(t)},I.get=(e,t)=>({url:I.url(e,t),method:`get`}),I.head=(e,t)=>({url:I.url(e,t),method:`head`});var He={show:Object.assign(I,I)},L=(e,t)=>({url:L.url(e,t),method:`get`});L.definition={methods:[`get`,`head`],url:`/admin/utilities/{id}/{extra?}`},L.url=(e,t)=>{Array.isArray(e)&&(e={id:e[0],extra:e[1]}),e=Ce(e),Te(e,[`extra`]);let n={id:e.id,extra:e.extra};return L.definition.url.replace(`{id}`,n.id.toString()).replace(`{extra?}`,n.extra?.toString()??``).replace(/\/+$/,``)+F(t)},L.get=(e,t)=>({url:L.url(e,t),method:`get`}),L.head=(e,t)=>({url:L.url(e,t),method:`head`}),Object.assign(He,He),Object.assign(L,L);var Ue=[`loading`],We=r({__name:`RetryJobButton`,props:{job:{}},setup(t){let n=t,{flash:r}=_e(),{execute:i,state:a}=Oe(`queue/retry`);async function o(){confirm(N(`Are you sure you want to restart the job “{description}”? Any progress could be lost.`,{description:n.job.description}))&&(await i({id:T(n.job.uid)}),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]}))}return s(a,e=>{e===`success`?n.job.status.value===Se.Reserved?r(`success`,N(`Job restarted.`)):r(`success`,N(`Job retried.`)):e===`error`&&r(`error`,N(`Failed to retry job.`))}),(t,n)=>(c(),f(`craft-button`,u({type:`button`,onClick:o,size:`small`,loading:T(a)===`loading`},t.$attrs),[n[0]||=j(`craft-icon`,{name:`play`,slot:`prefix`,style:{"font-size":`0.7em`}},null,-1),k(` `+e(T(N)(`Retry`)),1)],16,Ue))}}),Ge=[`loading`],Ke=r({__name:`ReleaseJobButton`,props:{job:{}},setup(t){let n=t,{flash:r}=_e(),{execute:i,state:a}=Oe(`queue/release`);async function o(){confirm(N(`Are you sure you want to release the job “{description}”?`,{description:n.job.description}))&&(await i({id:T(n.job.uid)}),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]}))}return s(a,e=>{e===`success`?r(`success`,N(`Job released.`)):e===`error`&&r(`error`,N(`Failed to release job.`))}),(t,n)=>(c(),f(`craft-button`,u({type:`button`,onClick:o,size:`small`,loading:T(a)===`loading`},t.$attrs),[n[0]||=j(`craft-icon`,{name:`remove`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Release`)),1)],16,Ge))}}),qe={class:`py-20`},Je={class:`w-[60ch] mx-auto text-center grid gap-3 justify-items-center text-gray-500`},Ye=[`name`],Xe={class:`text-lg`},R=r({__name:`Empty`,props:{icon:{},label:{}},setup(n){return(r,i)=>(c(),f(`div`,qe,[j(`div`,Je,[t(r.$slots,`graphic`,{},()=>[n.icon?(c(),f(`craft-icon`,{key:0,name:n.icon,style:{"font-size":`calc(48rem / 16)`}},null,8,Ye)):A(``,!0)]),t(r.$slots,`content`,{},()=>[j(`p`,Xe,e(n.label),1)])])]))}}),Ze=[`textContent`],Qe=r({__name:`QueueManagerIndex`,props:{jobs:{},totalJobs:{default:0}},setup(t){let n=t,r=de();function i(e){return e===2||e===3?`success`:e===4?`danger`:e===5?`warning`:`default`}function a(e){return e.status.value==Se.Failed}let s=C([r.accessor(`description`,{header:()=>N(`Name`),cell:({row:e,getValue:t})=>w(ge,{href:L.url({id:`queue-manager`,extra:e.original.uid})},()=>t())}),r.accessor(`status`,{header:()=>N(`Status`),size:50,cell:e=>w(P,{variant:i(e.getValue().value)},()=>e.getValue().label)}),r.display({id:`progress`,header:()=>N(`Progress`),cell:({row:e})=>e.original.progress>0?`${e.original.progress}% ${e.original.progressLabel?`(${e.original.progressLabel})`:``}`:``}),r.display({id:`actions`,cell:({row:e})=>w(`div`,{class:`flex justify-end gap-2`},[a(e.original)?w(We,{job:e.original}):null,e.original.status.value===Se.Done?null:w(Ke,{job:e.original})])})]),l=ue({get data(){return n.jobs},get columns(){return s.value},getCoreRowModel:fe()});return(n,r)=>t.jobs.length>0?(c(),_(he,{key:0,padding:0},{footer:o(()=>[j(`div`,{class:`flex p-2 bg-slate-100`,textContent:e(T(N)(`{totalJobs, plural, =0{No jobs} =1{# job} other{# jobs}}`,{totalJobs:t.totalJobs}))},null,8,Ze)]),default:o(()=>[p(pe,{table:T(l),reorderable:!1,layout:`fixed`},null,8,[`table`])]),_:1})):(c(),_(R,{key:1,icon:`play`,label:T(N)(`There are no jobs in the queue`)},null,8,[`label`]))}}),$e={class:`p-4`},et={class:`mb-3`},tt={class:`table-fixed border-collapse w-full`},nt={key:0},rt={key:3},it={key:1},at={class:`mt-6`},ot={class:`text-lg`},st={class:`my-2`},ct=E(r({__name:`QueueManagerShow`,props:{job:{}},setup(t){let n=[`delay`,`description`,`progressLabel`,`job`];function r(e){return e===2||e===3?`success`:e===4?`danger`:e===5?`warning`:`default`}function i(e){return N(`{num, number} {num, plural, =1{second} other{seconds}}`,{num:e})}function a(e){switch(e){case`uid`:return N(`UID`);case`class`:return N(`Class`);case`status`:return N(`Status`);case`progress`:return N(`Progress`);case`description`:return N(`Description`);case`label`:return N(`Label`);case`dateCreated`:return N(`Created`);case`ttr`:return N(`Time to reserve`);case`error`:return N(`Error`);case`delay`:return N(`Delay`);default:return e}}return(s,l)=>(c(),f(`div`,$e,[j(`h2`,et,e(t.job.description),1),j(`table`,tt,[j(`tbody`,null,[(c(!0),f(x,null,M(t.job,(s,l)=>(c(),f(`tr`,null,[n.includes(l)?A(``,!0):(c(),f(x,{key:0},[j(`th`,{class:h({"text-left":!0,"py-2":!0,"text-red-600":l===`error`})},e(a(l)),3),j(`td`,{class:h({"py-2":!0,"text-red-600":l===`error`})},[l==`status`?(c(),_(P,{key:0,variant:r(t.job.status.value)},{default:o(()=>[k(e(t.job.status.label),1)]),_:1},8,[`variant`])):l==`progress`?(c(),f(x,{key:1},[k(e(t.job.progress)+`% `,1),t.job.progressLabel?(c(),f(`span`,nt,`(`+e(t.job.progressLabel)+`)`,1)):A(``,!0)],64)):l==`ttr`?(c(),f(x,{key:2},[k(e(i(s)),1)],64)):l==`class`?(c(),f(`code`,rt,e(s),1)):l===`dateCreated`?(c(),f(x,{key:4},[k(e(new Date(s).toLocaleString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`})),1)],64)):(c(),f(x,{key:5},[typeof s==`string`?(c(),f(x,{key:0},[k(e(s),1)],64)):(c(),f(`code`,it,e(JSON.stringify(s,null,2)),1))],64))],2)],64))]))),256))])]),j(`div`,at,[j(`h4`,ot,e(T(N)(`Job Data`)),1),j(`div`,st,[p(ye,{data:t.job,style:{"font-size":`0.8rem`}},null,8,[`data`])])])]))}}),[[`__scopeId`,`data-v-59e8d626`]]),lt=Symbol(`Queue`),ut=Symbol(`Axios`),dt=Symbol(`Config`),ft=r({__name:`QueueManager`,props:{initialData:{},totalJobs:{default:0},activeJob:{default:null},hasReservedJobs:{type:Boolean,default:!1},hasWaitingJobs:{type:Boolean,default:!1}},setup(e){let t=e,n=ee(lt),r=C(t.initialData??[]),a=C(t.totalJobs);return i(async()=>{n?.addEventListener(`job-update`,({detail:e})=>{r.value=e.jobInfo,a.value=e.totalJobs}),t.hasReservedJobs?n?.startTracking(!0):t.hasWaitingJobs&&await n?.runQueue()}),(t,n)=>e.activeJob?(c(),_(ct,{key:0,job:e.activeJob},null,8,[`job`])):(c(),_(Qe,{key:1,jobs:r.value,totalJobs:a.value},null,8,[`jobs`,`totalJobs`]))}}),pt={key:0,class:`spinner`},mt={key:0,icon:`triangle-exlamation`,variant:`danger`,appearance:`plain`},ht={key:0,icon:`circle-check`,variant:`success`,appearance:`plain`},gt=[`loading`],_t=[`loading`],vt=r({__name:`QueueManagerToolbar`,props:{activeJob:{default:null},jobs:{default:()=>[]}},setup(t){let n=t;ee(lt),ee(ut);let{execute:r,state:i,error:a}=Oe(`queue/retry-all`),{execute:l,state:u,error:d}=Oe(`queue/release-all`),{flash:m,messages:h}=_e();C({retryAll:`idle`,releaseAll:`idle`});let g=C(!1),v=O(()=>n.activeJob.status.value==Se.Reserved||n.activeJob.status.value==Se.Failed);async function y(){await r(),m(`success`,N(`Retrying all failed jobs.`)),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]})}s(a,()=>{m(`error`,N(`Failed to retry all jobs.`))}),s(d,()=>{m(`error`,N(`Failed to release all jobs.`))});async function b(){confirm(N(`Are you sure you want to release all jobs in the queue?`))&&(await l(),m(`success`,N(`All jobs released.`)),D.visit(L({id:`queue-manager`}),{only:[`contentHtml`]}))}return(n,r)=>t.activeJob?(c(),f(x,{key:0},[p(ge,{as:`craft-button`,href:T(L).url({id:`queue-manager`})},{default:o(()=>[r[0]||=j(`craft-icon`,{name:`arrow-left`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Back`)),1)]),_:1},8,[`href`]),r[1]||=j(`div`,{class:`grow`},null,-1),g.value?(c(),f(`craft-spinner`,pt)):A(``,!0),v.value?(c(),_(We,{key:1,job:t.activeJob,size:`default`},null,8,[`job`])):A(``,!0),t.activeJob.status.value===T(Se).Done?A(``,!0):(c(),_(Ke,{key:2,job:t.activeJob,size:`default`},null,8,[`job`]))],64)):t.jobs.length?(c(),f(x,{key:1},[p(ve,null,{default:o(()=>[T(h).error?(c(),f(`craft-callout`,mt,e(T(h).error),1)):A(``,!0)]),_:1}),p(ve,null,{default:o(()=>[T(h).success?(c(),f(`craft-callout`,ht,e(T(h).success),1)):A(``,!0)]),_:1}),j(`craft-button`,{type:`button`,onClick:y,loading:T(i)===`loading`},[r[2]||=j(`craft-icon`,{name:`play`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Retry all failed jobs`)),1)],8,gt),j(`craft-button`,{type:`button`,onClick:b,loading:T(u)===`loading`},[r[3]||=j(`craft-icon`,{name:`remove`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Release all jobs`)),1)],8,_t)],64)):A(``,!0)}}),yt=e=>({url:yt.url(e),method:`post`});yt.definition={methods:[`post`],url:`/admin/actions/utilities/get-deprecation-error-traces-modal`},yt.url=e=>yt.definition.url+F(e),yt.post=e=>({url:yt.url(e),method:`post`});var bt=e=>({url:bt.url(e),method:`post`});bt.definition={methods:[`post`],url:`/admin/actions/utilities/delete-deprecation-error`},bt.url=e=>bt.definition.url+F(e),bt.post=e=>({url:bt.url(e),method:`post`});var xt=e=>({url:xt.url(e),method:`post`});xt.definition={methods:[`post`],url:`/admin/actions/utilities/delete-all-deprecation-errors`},xt.url=e=>xt.definition.url+F(e),xt.post=e=>({url:xt.url(e),method:`post`});var z=(e,t)=>({url:z.url(e,t),method:`get`});z.definition={methods:[`get`,`head`],url:`/admin/utilities/deprecation-errors/{logId}`},z.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Ce(e);let n={logId:e.logId};return z.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+F(t)},z.get=(e,t)=>({url:z.url(e,t),method:`get`}),z.head=(e,t)=>({url:z.url(e,t),method:`head`});var B=(e,t)=>({url:B.url(e,t),method:`delete`});B.definition={methods:[`delete`],url:`/admin/utilities/deprecation-errors/{logId}`},B.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={logId:e}),Array.isArray(e)&&(e={logId:e[0]}),e=Ce(e);let n={logId:e.logId};return B.definition.url.replace(`{logId}`,n.logId.toString()).replace(/\/+$/,``)+F(t)},B.delete=(e,t)=>({url:B.url(e,t),method:`delete`});var V=e=>({url:V.url(e),method:`delete`});V.definition={methods:[`delete`],url:`/admin/utilities/deprecation-errors`},V.url=e=>V.definition.url+F(e),V.delete=e=>({url:V.url(e),method:`delete`});var St=[`loading`],Ct=[`label`],wt=r({__name:`DeleteLogButton`,props:{logId:{}},setup(e){let t=e,n=oe({logId:t.logId});async function r(){n.submit(B(t.logId),{preserveScroll:!0,preserveState:!0})}return(e,t)=>(c(),f(`craft-button`,{size:`small`,icon:``,appearance:`plain`,onClick:r,loading:T(n).processing},[j(`craft-icon`,{name:`remove`,label:T(N)(`Delete log`)},null,8,Ct)],8,St))}}),Tt=[`innerHTML`],Et={key:2},Dt=r({__name:`StackTrace`,props:{logId:{}},setup(e){let t=e;oe({logId:t.logId});let n=C({html:``}),r=C(!1),a=v();return i(()=>{a.get(z(t.logId).url,{onHttpException:()=>{r.value=!0},onSuccess:e=>{n.value=e}})}),(e,t)=>(c(),_(he,{class:`max-w-4xl`},{default:o(()=>[n.value?.html?(c(),f(`div`,{key:0,innerHTML:n.value?.html},null,8,Tt)):r.value?(c(),_(R,{key:1,label:T(N)(`Failed to load stack trace.`),icon:`triangle-exclamation`},null,8,[`label`])):(c(),f(`craft-spinner`,Et))]),_:1}))}}),Ot=r({__name:`StackTraceButton`,props:{logId:{}},setup(t){let n=C(!1);return(r,i)=>(c(),f(x,null,[j(`craft-button`,{size:`small`,type:`button`,onClick:i[0]||=te(e=>n.value=!0,[`prevent`])},e(T(N)(`Stack Trace`)),1),(c(),_(y,{to:`body`},[p(ke,{"is-active":n.value,onClose:i[1]||=e=>n.value=!1},{default:o(()=>[p(Dt,{"log-id":t.logId},null,8,[`log-id`])]),_:1},8,[`is-active`])]))],64))}}),kt=r({__name:`DeprecationErrors`,props:{logs:{}},setup(e){let t=e,n=de(),r=C([n.accessor(`message`,{header:N(`Message`),cell:e=>w(`span`,{innerHTML:e.getValue()}),meta:{wrap:!0}}),n.accessor(`origin`,{header:N(`Origin`),cell:e=>w(`code`,{innerHTML:e.getValue()}),meta:{wrap:!0}}),n.accessor(`lastOccurrence`,{header:N(`Last Occurrence`),cell:e=>new Date(e.getValue()).toLocaleString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,second:`2-digit`,timeZoneName:`short`})}),n.display({id:`stackTrace`,header:N(`Stack Trace`),cell:({row:e})=>w(Ot,{logId:e.original.id})}),n.display({id:`actions`,cell:({row:e})=>w(`div`,{class:`flex justify-end`},[w(wt,{logId:e.original.id})])})]),i=ue({get columns(){return r.value},get data(){return t.logs},getCoreRowModel:fe(),enableSorting:!1});return(t,n)=>e.logs.length?(c(),_(pe,{key:1,spacing:`relaxed`,layout:`auto`,table:T(i),from:1,to:e.logs.length,total:e.logs.length,reorderable:!1},null,8,[`table`,`to`,`total`])):(c(),_(R,{key:0,label:T(N)(`No deprecation warnings to report!`)},null,8,[`label`]))}}),H=e=>({url:H.url(e),method:`post`});H.definition={methods:[`post`],url:`/admin/actions/utilities/clear-caches-perform-action`},H.url=e=>H.definition.url+F(e),H.post=e=>({url:H.url(e),method:`post`});var U=e=>({url:U.url(e),method:`post`});U.definition={methods:[`post`],url:`/admin/actions/utilities/invalidate-tags`},U.url=e=>U.definition.url+F(e),U.post=e=>({url:U.url(e),method:`post`});var At=[`name`,`label`,`.modelValue`,`disabled`],jt=[`label`],Mt=[`.choiceValue`],Nt={slot:`label`},Pt=[`innerHTML`],Ft=[`.choiceValue`],It={slot:`label`},Lt=[`innerHTML`],Rt=r({__name:`CheckboxGroup`,props:{name:{},label:{},disabled:{type:Boolean},modelValue:{},options:{},allowSelectAll:{type:Boolean,default:!1}},emits:[`update:modelValue`],setup(n,{emit:r}){let i=r,a=n;function o(e){let t=e.target;i(`update:modelValue`,t.modelValue)}return O(()=>!a.modelValue||a.modelValue.includes(`*`)),(r,i)=>(c(),f(`craft-checkbox-group`,{name:n.name,label:n.label,".modelValue":n.modelValue,onModelValueChanged:o,disabled:n.disabled},[n.allowSelectAll?(c(),f(`craft-checkbox-indeterminate`,{key:0,label:T(N)(`All`)},[(c(!0),f(x,null,M(n.options,n=>(c(),f(`craft-checkbox`,{key:n.value,".choiceValue":n.value},[j(`label`,Nt,[t(r.$slots,`label`,{option:n},()=>[k(e(n.label),1)])]),n.info?(c(),f(`div`,{key:0,slot:`help-text`,innerHTML:n.info},null,8,Pt)):A(``,!0)],40,Mt))),128))],8,jt)):(c(!0),f(x,{key:1},M(n.options,n=>(c(),f(`craft-checkbox`,{key:n.value,".choiceValue":n.value},[j(`label`,It,[t(r.$slots,`label`,{option:n},()=>[k(e(n.label),1)])]),n.info?(c(),f(`div`,{key:0,slot:`help-text`,innerHTML:n.info},null,8,Lt)):A(``,!0)],40,Ft))),128))],40,At))}}),zt={class:`p-4`},Bt={class:`mb-3`},Vt={class:`mt-4 flex gap-2 items-center`},Ht=[`loading`],Ut={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},Wt={class:`p-4`},Gt={class:`mb-3`},Kt={class:`mt-4`},qt={class:`flex gap-2 items-center`},Jt=[`loading`],Yt={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},Xt=r({__name:`ClearCaches`,props:{cacheOptions:{},tagOptions:{}},setup(t){let n=t,{announce:r}=be(),i=oe({caches:n.cacheOptions.map(e=>e.value)}),a=oe({tags:n.tagOptions.map(e=>e.value)});function s(e=[]){return e.filter(Boolean)}return(n,l)=>(c(),f(x,null,[j(`div`,zt,[j(`h2`,Bt,e(T(N)(`Clear Caches`)),1),p(T(S),{method:`post`,action:T(H)(),transform:e=>({caches:s(e.caches)}),"on-success":()=>{T(r)(T(N)(`Caches cleared`))}},{default:o(({processing:n,recentlySuccessful:r})=>[p(Rt,{name:`caches[]`,label:T(N)(`Caches`),modelValue:T(i).caches,"onUpdate:modelValue":l[0]||=e=>T(i).caches=e,options:t.cacheOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),j(`div`,Vt,[j(`craft-button`,{type:`submit`,loading:n},e(T(N)(`Clear caches`)),9,Ht),p(ve,null,{default:o(()=>[r?(c(),f(`craft-callout`,Ut,e(T(N)(`Caches cleared.`)),1)):A(``,!0)]),_:2},1024)])]),_:1},8,[`action`,`transform`,`on-success`])]),l[2]||=j(`hr`,null,null,-1),j(`div`,Wt,[j(`h2`,Gt,e(T(N)(`Invalidate Data Caches`)),1),p(T(S),{method:`post`,action:T(U)(),transform:e=>({tags:s(e.tags)}),"on-success":()=>{T(r)(T(N)(`Data caches invalidated`))}},{default:o(({processing:n,recentlySuccessful:r})=>[p(Rt,{name:`tags[]`,label:T(N)(`Data Caches`),modelValue:T(a).tags,"onUpdate:modelValue":l[1]||=e=>T(a).tags=e,options:t.tagOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),j(`div`,Kt,[j(`div`,qt,[j(`craft-button`,{type:`submit`,loading:n},e(T(N)(`Invalidate caches`)),9,Jt),p(ve,null,{default:o(()=>[r?(c(),f(`craft-callout`,Yt,e(T(N)(`Data caches invalidated.`)),1)):A(``,!0)]),_:2},1024)])])]),_:1},8,[`action`,`transform`,`on-success`])])],64))}}),W=e=>({url:W.url(e),method:`post`});W.definition={methods:[`post`],url:`/admin/actions/utilities/find-and-replace-perform-action`},W.url=e=>W.definition.url+F(e),W.post=e=>({url:W.url(e),method:`post`});var Zt={class:`p-4`},Qt={class:`grid gap-3`},$t={class:`mt-4`},en={class:`flex gap-2 items-center`},tn=[`loading`],nn={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},rn=r({__name:`FindReplace`,setup(t){let n=oe({find:``,replace:``});function r(){n.clearErrors(),n.submit(W(),{onSuccess:()=>{n.reset()}})}return(t,i)=>(c(),f(`div`,Zt,[j(`form`,{onSubmit:te(r,[`prevent`]),method:`post`},[j(`div`,Qt,[p(Ae,{label:T(N)(`Find Text`),modelValue:T(n).find,"onUpdate:modelValue":i[0]||=e=>T(n).find=e,name:`find`,error:T(n).errors.find},null,8,[`label`,`modelValue`,`error`]),p(Ae,{label:T(N)(`Replace Text`),modelValue:T(n).replace,"onUpdate:modelValue":i[1]||=e=>T(n).replace=e,name:`replace`,error:T(n).errors.replace},null,8,[`label`,`modelValue`,`error`])]),j(`div`,$t,[j(`div`,en,[j(`craft-button`,{type:`submit`,loading:T(n).processing,variant:`primary`},e(T(N)(`Find and Replace`)),9,tn),p(ve,null,{default:o(()=>[T(n).recentlySuccessful?(c(),f(`craft-callout`,nn,e(T(N)(`Replace job dispatched.`)),1)):A(``,!0)]),_:1})])])],32)]))}}),G=e=>({url:G.url(e),method:`post`});G.definition={methods:[`post`],url:`/admin/actions/utilities/db-backup-perform-action`},G.url=e=>G.definition.url+F(e),G.post=e=>({url:G.url(e),method:`post`});var an={class:`p-4`},on=[`label`,`.checked`],sn={class:`mt-4`},cn=[`loading`],ln=r({__name:`DatabaseBackup`,setup(t){let n=oe({downloadBackup:!1});function r(){n.clearErrors(),n.submit(G(),{onError:e=>{console.log(`uh oh`)}})}return(t,i)=>(c(),f(`div`,an,[j(`form`,{onSubmit:te(r,[`prevent`]),id:`db-backup`,method:`post`},[j(`craft-checkbox`,{label:T(N)(`Download backup`),name:`downloadBackup`,".checked":T(n).downloadBackup,onModelValueChanged:i[0]||=e=>T(n).downloadBackup=e.target?.checked===!0},null,40,on),j(`div`,sn,[j(`craft-button`,{type:`submit`,variant:`primary`,loading:T(n).processing},e(T(N)(`Backup`)),9,cn)])],32)]))}}),un=e=>({url:un.url(e),method:`post`});un.definition={methods:[`post`],url:`/admin/actions/utilities/apply-new-migrations`},un.url=e=>un.definition.url+F(e),un.post=e=>({url:un.url(e),method:`post`});var dn={type:`submit`,variant:`primary`},fn=r({__name:`Migrations`,props:{newMigrations:{},migrationHistory:{}},setup(t){let n=t,r=O(()=>[...n.newMigrations.map(e=>({name:e,status:N(`New`),batch:``})),...n.migrationHistory.map(e=>({name:e.migration,status:N(`Applied`),batch:e.batch}))]),i=de(),a=C([i.accessor(`name`,{header:N(`Name`),cell:e=>e.getValue()}),i.accessor(`status`,{header:N(`Status`),cell:e=>e.getValue()}),i.accessor(`batch`,{header:N(`Batch`),cell:e=>e.getValue()})]),s=ue({get columns(){return a.value},get data(){return r.value},getCoreRowModel:fe()});return(n,i)=>(c(),f(x,null,[p(ye,{data:t.newMigrations},null,8,[`data`]),t.newMigrations?A(``,!0):(c(),_(R,{key:0,label:T(N)(`No pending content migrations.`)},null,8,[`label`])),r.value.length?(c(),f(x,{key:1},[t.newMigrations.length?(c(),_(T(S),{key:0,action:T(un)(),method:`post`},{default:o(()=>[j(`craft-button`,dn,e(T(N)(`Apply new migrations`)),1)]),_:1},8,[`action`])):A(``,!0),p(pe,{table:T(s),reorderable:!1},null,8,[`table`])],64)):A(``,!0)],64))}}),pn=(e=>(e[e.Open=0]=`Open`,e[e.Closed=1]=`Closed`,e))(pn||{}),mn=Symbol(`DisclosureContext`);function hn(e){let t=ee(mn,null);if(t===null){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,hn),t}return t}var gn=Symbol(`DisclosurePanelContext`);function _n(){return ee(gn,null)}var vn=r({name:`Disclosure`,props:{as:{type:[Object,String],default:`template`},defaultOpen:{type:[Boolean],default:!1}},setup(e,{slots:t,attrs:n}){let r=C(+!e.defaultOpen),i=C(null),a=C(null),o={buttonId:C(`headlessui-disclosure-button-${Fe()}`),panelId:C(`headlessui-disclosure-panel-${Fe()}`),disclosureState:r,panel:i,button:a,toggleDisclosure(){r.value=Pe(r.value,{0:1,1:0})},closeDisclosure(){r.value!==1&&(r.value=1)},close(e){o.closeDisclosure(),(e?e instanceof HTMLElement?e:e.value instanceof HTMLElement?Re(e):Re(o.button):Re(o.button))?.focus()}};return d(mn,o),je(O(()=>Pe(r.value,{0:Ie.Open,1:Ie.Closed}))),()=>{let{defaultOpen:i,...a}=e;return Le({theirProps:a,ourProps:{},slot:{open:r.value===0,close:o.close},slots:t,attrs:n,name:`Disclosure`})}}}),yn=r({name:`DisclosureButton`,props:{as:{type:[Object,String],default:`button`},disabled:{type:[Boolean],default:!1},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=hn(`DisclosureButton`),s=_n(),c=O(()=>s===null?!1:s.value===o.panelId.value);i(()=>{c.value||e.id!==null&&(o.buttonId.value=e.id)}),a(()=>{c.value||(o.buttonId.value=null)});let l=C(null);r({el:l,$el:l}),c.value||ie(()=>{o.button.value=l.value});let u=Ne(O(()=>({as:e.as,type:t.type})),l);function d(){var t;e.disabled||(c.value?(o.toggleDisclosure(),(t=Re(o.button))==null||t.focus()):o.toggleDisclosure())}function f(t){var n;if(!e.disabled)if(c.value)switch(t.key){case Be.Space:case Be.Enter:t.preventDefault(),t.stopPropagation(),o.toggleDisclosure(),(n=Re(o.button))==null||n.focus();break}else switch(t.key){case Be.Space:case Be.Enter:t.preventDefault(),t.stopPropagation(),o.toggleDisclosure();break}}function p(e){switch(e.key){case Be.Space:e.preventDefault();break}}return()=>{let r={open:o.disclosureState.value===0},{id:i,...a}=e;return Le({ourProps:c.value?{ref:l,type:u.value,onClick:d,onKeydown:f}:{id:o.buttonId.value??i,ref:l,type:u.value,"aria-expanded":o.disclosureState.value===0,"aria-controls":o.disclosureState.value===0||Re(o.panel)?o.panelId.value:void 0,disabled:e.disabled?!0:void 0,onClick:d,onKeydown:f,onKeyup:p},theirProps:a,slot:r,attrs:t,slots:n,name:`DisclosureButton`})}}}),bn=r({name:`DisclosurePanel`,props:{as:{type:[Object,String],default:`div`},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(e,{attrs:t,slots:n,expose:r}){let o=hn(`DisclosurePanel`);i(()=>{e.id!==null&&(o.panelId.value=e.id)}),a(()=>{o.panelId.value=null}),r({el:o.panel,$el:o.panel}),d(gn,o.panelId);let s=ze(),c=O(()=>s===null?o.disclosureState.value===0:(s.value&Ie.Open)===Ie.Open);return()=>{let r={open:o.disclosureState.value===0,close:o.close},{id:i,...a}=e;return Le({ourProps:{id:o.panelId.value??i,ref:o.panel},theirProps:a,slot:r,attrs:t,slots:n,features:Me.RenderStrategy|Me.Static,visible:c.value,name:`DisclosurePanel`})}}}),xn=[`name`],Sn={class:`release-info`},Cn={class:`release-version`},wn={key:0,class:`release-badge`},Tn={key:1,class:`release-date`},En={key:1,class:`release-header-static`},Dn={class:`release-info`},On={class:`release-version`},kn={key:0,class:`release-badge`},An={key:1,class:`release-date`},jn=E(r({__name:`Release`,props:{version:{},date:{},critical:{type:Boolean},notes:{}},setup(t){let n=t;function r(e){return e?new Date(e).toLocaleDateString(void 0,{month:`short`,day:`numeric`,year:`numeric`}):``}let i=O(()=>!!(n.critical||n.notes&&n.notes.includes(`n.notes?n.notes.replace(/(<\/?h)(3|4|5)\b/g,(e,t,n)=>`${t}${parseInt(n)+1} class="h${n}"`):``),s=O(()=>!!n.notes);return(n,l)=>(c(),_(T(vn),{defaultOpen:i.value},{default:o(({open:n})=>[j(`div`,{class:h([`release`,{"release--critical":t.critical}])},[s.value?(c(),_(T(yn),{key:0,class:`release-trigger`},{default:o(()=>[j(`craft-icon`,{name:n?`chevron-down`:`chevron-right`,style:{"font-size":`0.8em`}},null,8,xn),j(`div`,Sn,[j(`strong`,Cn,e(t.version),1),t.critical?(c(),f(`span`,wn,e(T(N)(`Critical`)),1)):A(``,!0),t.date?(c(),f(`span`,Tn,e(r(t.date)),1)):A(``,!0)])]),_:2},1024)):(c(),f(`div`,En,[j(`div`,Dn,[j(`strong`,On,e(t.version),1),t.critical?(c(),f(`span`,kn,e(T(N)(`Critical`)),1)):A(``,!0),t.date?(c(),f(`span`,An,e(r(t.date)),1)):A(``,!0)])])),s.value?(c(),_(T(bn),{key:2,class:`release-notes prose`,innerHTML:a.value},null,8,[`innerHTML`])):A(``,!0)],2)]),_:1},8,[`defaultOpen`]))}}),[[`__scopeId`,`data-v-664b43fa`]]),Mn=e=>({url:Mn.url(e),method:`post`});Mn.definition={methods:[`post`],url:`/admin/actions/updater`},Mn.url=e=>Mn.definition.url+F(e),Mn.post=e=>({url:Mn.url(e),method:`post`});var Nn=e=>({url:Nn.url(e),method:`post`});Nn.definition={methods:[`post`],url:`/admin/updates`},Nn.url=e=>Nn.definition.url+F(e),Nn.post=e=>({url:Nn.url(e),method:`post`});var Pn={"/admin/actions/updater":Mn,"/admin/updates":Nn},Fn=e=>({url:Fn.url(e),method:`post`});Fn.definition={methods:[`post`],url:`/admin/actions/updater/force-update`},Fn.url=e=>Fn.definition.url+F(e),Fn.post=e=>({url:Fn.url(e),method:`post`});var In=e=>({url:In.url(e),method:`post`});In.definition={methods:[`post`],url:`/admin/actions/updater/backup`},In.url=e=>In.definition.url+F(e),In.post=e=>({url:In.url(e),method:`post`});var Ln=e=>({url:Ln.url(e),method:`post`});Ln.definition={methods:[`post`],url:`/admin/actions/updater/server-check`},Ln.url=e=>Ln.definition.url+F(e),Ln.post=e=>({url:Ln.url(e),method:`post`});var Rn=e=>({url:Rn.url(e),method:`post`});Rn.definition={methods:[`post`],url:`/admin/actions/updater/revert`},Rn.url=e=>Rn.definition.url+F(e),Rn.post=e=>({url:Rn.url(e),method:`post`});var zn=e=>({url:zn.url(e),method:`post`});zn.definition={methods:[`post`],url:`/admin/actions/updater/migrate`},zn.url=e=>zn.definition.url+F(e),zn.post=e=>({url:zn.url(e),method:`post`});var Bn=e=>({url:Bn.url(e),method:`post`});Bn.definition={methods:[`post`],url:`/admin/actions/updater/precheck`},Bn.url=e=>Bn.definition.url+F(e),Bn.post=e=>({url:Bn.url(e),method:`post`});var Vn=e=>({url:Vn.url(e),method:`post`});Vn.definition={methods:[`post`],url:`/admin/actions/updater/recheck-composer`},Vn.url=e=>Vn.definition.url+F(e),Vn.post=e=>({url:Vn.url(e),method:`post`});var Hn=e=>({url:Hn.url(e),method:`post`});Hn.definition={methods:[`post`],url:`/admin/actions/updater/composer-install`},Hn.url=e=>Hn.definition.url+F(e),Hn.post=e=>({url:Hn.url(e),method:`post`});var Un=e=>({url:Un.url(e),method:`post`});Un.definition={methods:[`post`],url:`/admin/actions/updater/composer-remove`},Un.url=e=>Un.definition.url+F(e),Un.post=e=>({url:Un.url(e),method:`post`});var Wn=e=>({url:Wn.url(e),method:`post`});Wn.definition={methods:[`post`],url:`/admin/actions/updater/finish`},Wn.url=e=>Wn.definition.url+F(e),Wn.post=e=>({url:Wn.url(e),method:`post`});var Gn={index:Pn,forceUpdate:Fn,backup:In,serverCheck:Ln,revert:Rn,migrate:zn,precheck:Bn,recheckComposer:Vn,composerInstall:Hn,composerRemove:Un,finish:Wn},Kn={class:`update`},qn={class:`update-header`},Jn={class:`text-xl font-semibold`},Yn={class:`update-actions`},Xn=[`name`,`value`],Zn=[`name`,`value`],Qn=[`loading`],$n={type:`button`,slot:`invoker`,icon:``},er=[`label`],tr={slot:`content`},nr={key:0,class:`note`},rr={key:1,class:`note ineligible`},ir={class:`releases`},ar=E(r({__name:`Update`,props:{name:{},handle:{},packageName:{},releases:{default:()=>[]},status:{default:`eligible`},statusText:{},abandoned:{type:Boolean,default:!1},latestVersion:{},ctaText:{},ctaUrl:{type:[String,Boolean]},altCtaText:{},altCtaUrl:{},allowUpdates:{type:Boolean,default:!0}},setup(t){let n=t,r=O(()=>n.allowUpdates&&n.latestVersion&&n.ctaUrl!==void 0),i=O(()=>n.ctaText||N(`Update`));C(!1);let a=N(`Copy plugin handle`),s=C(a);async function l(){try{await navigator.clipboard.writeText(n.handle??``),s.value=N(`Copied!`),setTimeout(()=>{s.value=a},1500)}catch{s.value=N(`Failed to copy`)}}let d=N(`Copy package name`),p=C(d);async function m(){try{await navigator.clipboard.writeText(n.packageName??``),p.value=N(`Copied!`),setTimeout(()=>{p.value=d},1500)}catch{p.value=N(`Failed to copy`)}}return(n,a)=>(c(),f(`div`,Kn,[j(`div`,qn,[j(`h2`,Jn,e(t.name),1),j(`div`,Yn,[r.value?(c(),f(x,{key:0},[t.ctaUrl?(c(),_(ge,{key:0,href:t.ctaUrl,target:`_blank`,variant:`primary`,appearance:`button`},{default:o(()=>[k(e(i.value),1)]),_:1},8,[`href`])):(c(),_(T(S),{key:1,action:T(Gn).index[`/admin/actions/updater`](),method:`post`},{default:o(({processing:n})=>[a[0]||=j(`input`,{type:`hidden`,name:`return`,value:`utilities/updates`},null,-1),j(`input`,{type:`hidden`,name:`install[${t.handle}]`,value:`^${t.latestVersion}`},null,8,Xn),j(`input`,{type:`hidden`,name:`packageNames[${t.handle}]`,value:t.packageName},null,8,Zn),j(`craft-button`,{type:`submit`,variant:`primary`,loading:n},e(i.value),9,Qn)]),_:1},8,[`action`]))],64)):A(``,!0),t.allowUpdates&&t.altCtaText?(c(),f(x,{key:1},[t.altCtaUrl?(c(),_(ge,{key:0,href:t.altCtaUrl,appearance:`button`,variant:`default`},{default:o(()=>[k(e(t.altCtaText),1)]),_:1},8,[`href`])):A(``,!0)],64)):A(``,!0),j(`craft-action-menu`,null,[j(`craft-button`,$n,[j(`craft-icon`,{name:`ellipsis`,label:T(N)(`Actions`)},null,8,er)]),j(`div`,tr,[j(`craft-action-item`,{icon:`clipboard`,onClick:l},e(s.value),1),j(`craft-action-item`,{icon:`clipboard`,onClick:m},e(p.value),1)])])])]),t.abandoned?(c(),f(`blockquote`,nr,[j(`p`,null,e(t.statusText),1)])):t.status===`eligible`?A(``,!0):(c(),f(`blockquote`,rr,[j(`p`,null,e(t.statusText),1)])),j(`div`,ir,[(c(!0),f(x,null,M(t.releases,e=>(c(),_(jn,u({key:e.version},{ref_for:!0},e),null,16))),128))])]))}}),[[`__scopeId`,`data-v-ec2cd8d0`]]),or={key:1,class:`updates-utility`},sr={key:0,class:`updates-header`},cr={class:`text-2xl font-semibold`},lr=[`loading`],ur={class:`updates-grid`},dr=E(r({__name:`Updates`,setup(t){let{data:n,isLoading:r,isError:i,isSuccess:a}=Ee(`updates`,{params:{forceRefresh:!0,includeDetails:!0}}),s=O(()=>n.value?.allowUpdates??!1),l=O(()=>{let e=n.value?.updates?.cms;return!e||e.releases.length===0&&!e.abandoned?null:e}),d=O(()=>(n.value?.updates?.plugins??[]).filter(e=>e.releases.length>0||e.abandoned)),p=O(()=>l.value!==null||d.value.length>0),m=O(()=>{let e=0;return l.value&&y(l.value)&&e++,d.value.forEach(t=>{y(t)&&e++}),e}),h=O(()=>{let e=[];return l.value&&v(l.value)&&e.push(l.value),d.value.forEach(t=>{v(t)&&e.push(t)}),e}),g=O(()=>N(`{num, plural, =1{# Available Update} other{# Available Updates}}`,{num:m.value}));function v(e){return!(e.status===`phpIssue`||e.status===`expired`||!e.releases.length||e.latestVersion===null)}function y(e){return!(e.status===`phpIssue`||!e.releases.length||e.latestVersion===null)}let b=C(!1);function S(){if(h.value.length===0)return;b.value=!0;let e={},t={};h.value.forEach(n=>{e[n.handle]=`^${n.latestVersion}`,t[n.handle]=n.packageName}),D.post(Gn.index[`/admin/actions/updater`](),{return:`utilities/updates`,install:e,packageNames:t},{onFinish:()=>{b.value=!1}})}return(t,n)=>T(r)?(c(),_(R,{key:0,label:T(N)(`Checking for updates…`)},{graphic:o(()=>[...n[0]||=[j(`craft-spinner`,{style:{"--size":`3rem`},visible:!0},null,-1)]]),_:1},8,[`label`])):T(i)?(c(),_(R,{key:1,icon:`alert-circle`,label:T(N)(`Unable to fetch updates at this time.`)},null,8,[`label`])):T(a)?(c(),f(x,{key:2},[p.value?(c(),f(`div`,or,[s.value&&h.value.length>1?(c(),f(`div`,sr,[j(`h1`,cr,e(g.value),1),j(`craft-button`,{type:`button`,variant:`primary`,loading:b.value,onClick:S},e(T(N)(`Update all`)),9,lr)])):A(``,!0),j(`div`,ur,[l.value?(c(),_(ar,u({key:0},l.value,{allowUpdates:s.value}),null,16,[`allowUpdates`])):A(``,!0),(c(!0),f(x,null,M(d.value,e=>(c(),_(ar,u({key:e.handle},{ref_for:!0},e,{allowUpdates:s.value}),null,16,[`allowUpdates`]))),128))])])):(c(),_(R,{key:0,icon:`check`,label:T(N)(`You’re all up to date!`)},null,8,[`label`]))],64)):A(``,!0)}}),[[`__scopeId`,`data-v-4e8d3551`]]),K=e=>({url:K.url(e),method:`post`});K.definition={methods:[`post`],url:`/admin/actions/project-config/rebuild`},K.url=e=>K.definition.url+F(e),K.post=e=>({url:K.url(e),method:`post`});var q=e=>({url:q.url(e),method:`get`});q.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/diff`},q.url=e=>q.definition.url+F(e),q.get=e=>({url:q.url(e),method:`get`}),q.head=e=>({url:q.url(e),method:`head`});var J=e=>({url:J.url(e),method:`post`});J.definition={methods:[`post`],url:`/admin/actions/project-config/discard`},J.url=e=>J.definition.url+F(e),J.post=e=>({url:J.url(e),method:`post`});var Y=e=>({url:Y.url(e),method:`get`});Y.definition={methods:[`get`,`head`],url:`/admin/actions/project-config/download`},Y.url=e=>Y.definition.url+F(e),Y.get=e=>({url:Y.url(e),method:`get`}),Y.head=e=>({url:Y.url(e),method:`head`});var fr={rebuild:K,diff:q,discard:J,download:Y},pr={key:0,class:`diff-loading`},mr={class:`py-2`},hr={key:0,class:`diff-show-all`},gr=20,_r=E(r({__name:`ProjectConfigDiff`,props:{invert:{type:Boolean}},setup(t){let n=t,{data:r,isLoading:i}=De(fr.diff().url,{params:{invert:n.invert}}),a=C([]),l=C(!1);s(r,e=>{a.value=e.split(/\n/)});function u(){l.value=!0}let d=O(()=>l.value||a.value.length<=gr?a.value:a.value.slice(0,gr)),p=O(()=>a.value.length>gr&&!l.value);return(t,n)=>(c(),_(he,{variant:`code`,padding:0,class:h({loading:T(i)}),tabindex:`0`},{default:o(()=>[T(i)?(c(),f(`div`,pr,[...n[0]||=[j(`craft-spinner`,{visible:!0,class:`spinner`},null,-1)]])):(c(),f(x,{key:1},[j(`pre`,mr,[(c(!0),f(x,null,M(d.value,(t,n)=>(c(),f(`code`,{key:n,class:h({"diff-line":!0,"diff-line--add":t.startsWith(`+`),"diff-line--remove":t.startsWith(`-`),"diff-line--info":t.startsWith(`@@`)})},e(t),3))),128))]),p.value?(c(),f(`div`,hr,[j(`craft-button`,{type:`button`,variant:`hairline`,size:`lg`,onClick:u},e(T(N)(`Show all changes`)),1)])):A(``,!0)],64))]),_:1},8,[`class`]))}}),[[`__scopeId`,`data-v-581e5f14`]]);function vr(){let e=C(!1),t=C(!1);function n(){confirm(N(`Are you sure you want to discard the pending project config YAML changes?`))&&(t.value=!0,D.post(fr.discard().url,{},{onFinish:()=>{t.value=!1}}))}async function r(){e.value=!0;try{let e=await ce.get(Y().url,{responseType:`blob`}),t=window.URL.createObjectURL(new Blob([e.data])),n=document.createElement(`a`);n.href=t,n.setAttribute(`download`,`project.zip`),document.body.appendChild(n),n.click(),n.remove(),window.URL.revokeObjectURL(t)}catch(e){console.error(`Download failed:`,e)}finally{e.value=!1}}return{isDownloading:e,isDiscarding:t,discardChanges:n,downloadConfig:r}}var yr=e=>({url:yr.url(e),method:`post`});yr.definition={methods:[`post`],url:`/admin/actions/config-sync`},yr.url=e=>yr.definition.url+F(e),yr.post=e=>({url:yr.url(e),method:`post`});var br=e=>({url:br.url(e),method:`post`});br.definition={methods:[`post`],url:`/admin/actions/config-sync/retry`},br.url=e=>br.definition.url+F(e),br.post=e=>({url:br.url(e),method:`post`});var xr=e=>({url:xr.url(e),method:`post`});xr.definition={methods:[`post`],url:`/admin/actions/config-sync/apply-yaml-changes`},xr.url=e=>xr.definition.url+F(e),xr.post=e=>({url:xr.url(e),method:`post`});var Sr=e=>({url:Sr.url(e),method:`post`});Sr.definition={methods:[`post`],url:`/admin/actions/config-sync/regenerate-yaml`},Sr.url=e=>Sr.definition.url+F(e),Sr.post=e=>({url:Sr.url(e),method:`post`});var Cr=e=>({url:Cr.url(e),method:`post`});Cr.definition={methods:[`post`],url:`/admin/actions/config-sync/uninstall-plugin`},Cr.url=e=>Cr.definition.url+F(e),Cr.post=e=>({url:Cr.url(e),method:`post`});var wr=e=>({url:wr.url(e),method:`post`});wr.definition={methods:[`post`],url:`/admin/actions/config-sync/install-plugin`},wr.url=e=>wr.definition.url+F(e),wr.post=e=>({url:wr.url(e),method:`post`});var Tr=e=>({url:Tr.url(e),method:`post`});Tr.definition={methods:[`post`],url:`/admin/actions/config-sync/precheck`},Tr.url=e=>Tr.definition.url+F(e),Tr.post=e=>({url:Tr.url(e),method:`post`});var Er=e=>({url:Er.url(e),method:`post`});Er.definition={methods:[`post`],url:`/admin/actions/config-sync/recheck-composer`},Er.url=e=>Er.definition.url+F(e),Er.post=e=>({url:Er.url(e),method:`post`});var Dr=e=>({url:Dr.url(e),method:`post`});Dr.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-install`},Dr.url=e=>Dr.definition.url+F(e),Dr.post=e=>({url:Dr.url(e),method:`post`});var Or=e=>({url:Or.url(e),method:`post`});Or.definition={methods:[`post`],url:`/admin/actions/config-sync/composer-remove`},Or.url=e=>Or.definition.url+F(e),Or.post=e=>({url:Or.url(e),method:`post`});var kr=e=>({url:kr.url(e),method:`post`});kr.definition={methods:[`post`],url:`/admin/actions/config-sync/finish`},kr.url=e=>kr.definition.url+F(e),kr.post=e=>({url:kr.url(e),method:`post`});var Ar={index:yr,retry:br,applyYamlChanges:xr,regenerateYaml:Sr,uninstallPlugin:Cr,installPlugin:wr,precheck:Tr,recheckComposer:Er,composerInstall:Dr,composerRemove:Or,finish:kr},jr=[`value`],Mr={key:0,type:`hidden`,name:`force`,value:`1`},Nr=[`loading`],Pr=r({__name:`SyncConfigButton`,props:{force:{type:Boolean,default:!1},returnTo:{default:`utilities/project-config`},label:{default:N(`Reapply everything`)}},setup(n){return(r,i)=>(c(),_(T(S),{action:T(Ar).index()},{default:o(({processing:i})=>[j(`input`,{type:`hidden`,name:`return`,value:n.returnTo},null,8,jr),n.force?(c(),f(`input`,Mr)):A(``,!0),j(`craft-button`,u({type:`submit`,variant:`primary`,loading:i},r.$attrs),[t(r.$slots,`label`,{},()=>[k(e(n.label),1)])],16,Nr)]),_:3},8,[`action`]))}}),Fr={class:`project-config-utility`},Ir={class:`config-section`},Lr=[`innerHTML`],Rr={class:`mt-3`},zr=[`innerHTML`],Br={key:0,class:`buttons`},Vr=[`loading`],Hr={key:1,class:`buttons`},Ur=[`loading`],Wr={variant:`success`,icon:`circle-check`,class:`my-3`},Gr={class:`buttons`},Kr={key:1,class:`buttons`},qr=[`loading`],Jr={class:`config-section`},Yr={class:`buttons`},Xr={class:`flex gap-2 items-center`},Zr=[`loading`],Qr={key:0,variant:`success`,icon:`circle-check`,appearance:`plain`,class:`p-0`},$r={class:`config-section`},ei={class:`buttons`},ti=[`loading`],ni=E(r({__name:`ProjectConfig`,props:{readOnly:{type:Boolean},invert:{type:Boolean},yamlExists:{type:Boolean},areChangesPending:{type:Boolean},entireConfig:{}},setup(t){let n=t,{isDownloading:r,isDiscarding:i,discardChanges:a,downloadConfig:s}=vr(n),l=O(()=>n.yamlExists?n.invert?N(`Update YAML Files`):N(`Apply YAML Changes`):N(`Generate YAML Files`)),u=O(()=>n.yamlExists?n.invert?N(`Update your project config YAML files to reflect the latest changes in the loaded project config.`):N(`Apply changes in your project config YAML files to the loaded project config.`):N(`Save the loaded project config data to YAML files in your {folder} folder.`,{folder:`config/project/`})),d=O(()=>n.invert?N(`Make sure you're not overwriting changes in the YAML files that were made on another environment.`):N(`Make sure you've followed the Environment Setup instructions before applying project config YAML changes.`,{url:`https://craftcms.com/docs/5.x/system/project-config.html#environment-setup`}));return(n,m)=>(c(),f(`div`,Fr,[j(`section`,Ir,[j(`h2`,null,e(l.value),1),j(`p`,{innerHTML:u.value,class:`mb-3`},null,8,Lr),j(`div`,Rr,[t.yamlExists?(c(),f(x,{key:0},[t.areChangesPending?(c(),f(x,{key:0},[p(_r,{invert:t.invert},null,8,[`invert`]),j(`craft-callout`,{variant:`info`,innerHTML:d.value,class:`my-2`},null,8,zr),t.invert?(c(),f(`div`,Br,[j(`craft-button`,{type:`button`,variant:`secondary`,loading:T(i),onClick:m[0]||=(...e)=>T(a)&&T(a)(...e)},e(T(N)(`Update YAML files`)),9,Vr),p(Pr,{label:T(N)(`Apply YAML changes`)},null,8,[`label`])])):(c(),f(`div`,Hr,[p(Pr,{label:T(N)(`Apply changes only`),variant:`default`},null,8,[`label`]),p(Pr,{force:!0}),t.readOnly?A(``,!0):(c(),f(`craft-button`,{key:0,type:`button`,loading:T(i),onClick:m[1]||=(...e)=>T(a)&&T(a)(...e)},e(T(N)(`Discard changes`)),9,Ur))]))],64)):(c(),f(x,{key:1},[j(`craft-callout`,Wr,e(T(N)(`There aren't any pending project config changes to apply.`)),1),j(`div`,Gr,[p(Pr,{force:!0,label:T(N)(`Reapply everything`)},null,8,[`label`])])],64))],64)):(c(),f(`div`,Kr,[p(T(S),{action:T(J)()},{default:o(({processing:t})=>[j(`craft-button`,{type:`submit`,variant:`secondary`,loading:t},e(T(N)(`Generate`)),9,qr)]),_:1},8,[`action`])]))])]),t.readOnly?A(``,!0):(c(),f(x,{key:0},[m[3]||=j(`hr`,null,null,-1),j(`section`,Jr,[j(`h2`,null,e(T(N)(`Rebuild the Config`)),1),j(`p`,null,e(T(N)(`Rebuild the project config based on the data stored throughout the database.`)),1),j(`div`,Yr,[p(T(S),{action:T(K)(),method:`post`},{default:o(({processing:t,recentlySuccessful:n})=>[j(`div`,Xr,[j(`craft-button`,{type:`submit`,variant:`default`,loading:t},e(T(N)(`Rebuild`)),9,Zr),p(ve,null,{default:o(()=>[n?(c(),f(`craft-callout`,Qr,e(T(N)(`Config rebuilt.`)),1)):A(``,!0)]),_:2},1024)])]),_:1},8,[`action`])])])],64)),m[5]||=j(`hr`,null,null,-1),j(`section`,$r,[j(`h2`,null,e(T(N)(`Loaded Project Config Data`)),1),p(he,{variant:`code`,tabindex:`0`,class:`my-3`},{default:o(()=>[j(`pre`,null,[j(`code`,null,e(t.entireConfig),1)])]),_:1}),j(`div`,ei,[j(`craft-button`,{type:`button`,loading:T(r),onClick:m[2]||=(...e)=>T(s)&&T(s)(...e)},[m[4]||=j(`craft-icon`,{name:`download`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Download`)),1)],8,ti)])])]))}}),[[`__scopeId`,`data-v-b8fb6328`]]),ri={class:`progress-cell`},ii=[`total`,`processed`,`pending`],ai=E(r({__name:`SessionProgress`,props:{processedEntries:{},totalEntries:{},pending:{type:Boolean}},setup(e){let t=e;return O(()=>t.totalEntries===0?0:Math.round(t.processedEntries/t.totalEntries*100)),(t,n)=>(c(),f(`div`,ri,[j(`craft-progress-bar`,{total:e.totalEntries,processed:e.processedEntries,pending:e.pending,"show-status":``},null,8,ii)]))}}),[[`__scopeId`,`data-v-a83164ce`]]),oi={class:`flex gap-1`},si=[`loading`],ci=[`loading`],li=r({__name:`SessionActions`,props:{sessionId:{},actionRequired:{type:Boolean}},emits:[`stop`,`review`],setup(t,{emit:n}){let r=n,i=C(!1),a=C(!1);function o(e){a.value=!0,r(`stop`,e)}function s(e){i.value=!0,r(`review`,e)}return(n,r)=>(c(),f(`div`,oi,[t.actionRequired?(c(),f(`craft-button`,{key:0,type:`button`,size:`small`,loading:i.value,onClick:r[0]||=e=>s(t.sessionId)},e(T(N)(`Review`)),9,si)):A(``,!0),j(`craft-button`,{type:`button`,size:`small`,variant:`danger`,loading:a.value,onClick:r[1]||=e=>o(t.sessionId)},[r[2]||=j(`craft-icon`,{name:`x`,slot:`prefix`},null,-1),k(` `+e(T(N)(`Discard`)),1)],8,ci)]))}}),X=g(null),Z=C(new Map),ui=C(null),di=C(null),fi=C(!1),pi=C(!1),mi=C(null),hi=C(!1),gi=!1;function _i(){X.value&&(Z.value=new Map(X.value.getSessions().map(e=>[e.id,e])),ui.value=X.value.getCurrentSessionId())}function vi(){X.value&&(X.value.on(`change`,({reviewSessionId:e})=>{if(_i(),fi.value&&di.value&&!Z.value.has(di.value.id)&&ji(),e&&!fi.value){let t=Z.value.get(e);t&&Ai(t)}}),X.value.on(`error`,({message:e})=>{mi.value=e}),X.value.on(`complete`,()=>{hi.value=!0}))}var yi=O(()=>Array.from(Z.value.values())),bi=O(()=>Z.value.size>0),xi=O(()=>X.value?.isProcessing()??!1),Si=O(()=>ui.value===null?null:Z.value.get(ui.value)??null),Ci=O(()=>{let e=Si.value;return!e||e.totalEntries===0?0:Math.round(e.processedEntries/e.totalEntries*100)}),wi=O(()=>{let e=Si.value;return e?`${e.processedEntries} / ${e.totalEntries}`:null});async function Ti(e){if(!(!X.value||e.volumes.length===0)){pi.value=!0,hi.value=!1,mi.value=null;try{let t=await X.value.startIndexing(e);return _i(),t}finally{pi.value=!1}}}function Ei(e){X.value?.stopSession(e)}function Di(e){X.value?.getSessionOverview(e)}function Oi(e){X.value?.finishSession(e)}function ki(e){Ei(e)}function Ai(e){fi.value||=(di.value=e,!0)}function ji(){fi.value=!1,di.value=null}function Mi(e={}){if(!gi){let{existingSessions:t=[],maxConcurrentConnections:n,autoResume:r=!0}=e;X.value=new ne({existingSessions:t,maxConcurrentConnections:n,autoResume:r}),vi(),_i(),gi=!0}return{sessions:Z,sessionsArray:yi,currentSessionId:ui,currentSession:Si,hasSessions:bi,isProcessing:xi,isStarting:pi,isComplete:hi,lastError:mi,progressPercent:Ci,progressInfo:wi,reviewSession:di,isReviewOpen:fi,startIndexing:Ti,stopSession:Ei,reviewSessionOverview:Di,finishSession:Oi,keepFiles:ki,openReview:Ai,closeReview:ji}}var Ni={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Pi(e){return e.replace(/[&<>"']/g,e=>Ni[e]??``)}var Fi={class:`grid gap-3`},Ii={key:0},Li={class:`mb-2`},Ri={class:`my-2`},zi={key:1},Bi=r({__name:`ReviewSessionModal`,props:{isActive:{type:Boolean,default:!1}},setup(t){let{stopSession:n,finishSession:r,closeReview:i,reviewSession:a}=Mi(),s=O(()=>a.value?.missingEntries),l=O(()=>s.value?.folders??{}),u=O(()=>s.value?.files??{}),d=O(()=>l.value?Object.keys(l.value).length>0:!1),m=O(()=>u.value?Object.keys(u.value??{}).length>0:!1),h=O(()=>d.value||m.value),g=O(()=>l.value?Object.keys(l.value).map(e=>({label:Pi(l.value[e]),value:e})):[]),v=O(()=>u.value?Object.keys(u.value).map(e=>({label:Pi(u.value[e]),value:e})):[]),y=ae({deleteFolder:[``,...g.value.map(e=>e.value.toString())],deleteAsset:[``,...v.value.map(e=>e.value.toString())]});function b(e,t){return e===`folders`&&a.value?.listEmptyFolders?N(`Missing or empty {items}`,t):N(`Missing {items}`,t)}function S(e,t){return e===`files`&&a.value?.listEmptyFolders?N(`The following {items} could not be found or are empty. Should they be deleted from the index?`,t):N(`The following {items} could not be found. Should they be deleted from the index?`,t)}async function C(){r({sessionId:a.value.id,deleteFolder:y.deleteFolder?.filter(Boolean),deleteAsset:y.deleteAsset?.filter(Boolean)}),D.visit(L({id:`asset-indexes`}))}return(t,n)=>T(a)?(c(),_(xe,{key:0,"is-active":!0,onClose:T(i),"reset-label":h.value?T(N)(`Keep them`):void 0,"submit-label":h.value?T(N)(`Delete them`):T(N)(`OK`),onSubmit:C},{default:o(()=>[j(`div`,Fi,[T(a).skippedEntries?(c(),f(`div`,Ii,[j(`h2`,Li,e(T(N)(`Skipped files`)),1),j(`p`,null,e(T(N)(`The following items were not indexed.`)),1),j(`ul`,Ri,[(c(!0),f(x,null,M(T(a).skippedEntries,t=>(c(),f(`li`,{key:t},[j(`code`,null,e(t),1)]))),128))])])):A(``,!0),h.value?(c(),f(`div`,zi,[d.value?(c(),f(x,{key:0},[j(`h2`,null,e(b(`folders`,{items:`folders`})),1),j(`p`,null,e(S(`folders`,{items:`folders`})),1),p(Rt,{class:`my-2`,label:T(N)(`Delete folders`),"model-value":y.deleteFolder,options:g.value,"allow-select-all":!0},{label:o(({option:t})=>[j(`code`,null,e(t.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):A(``,!0),m.value?(c(),f(x,{key:1},[j(`h2`,null,e(b(`files`,{items:`files`})),1),j(`p`,null,e(S(`files`,{items:`files`})),1),p(Rt,{class:`my-2`,label:T(N)(`Delete assets`),"model-value":y.deleteAsset,options:v.value,"allow-select-all":!0},{label:o(({option:t})=>[j(`code`,null,e(t.label),1)]),_:1},8,[`label`,`model-value`,`options`])],64)):A(``,!0)])):A(``,!0)])]),_:1},8,[`onClose`,`reset-label`,`submit-label`])):A(``,!0)}}),Vi={class:``},Hi=r({__name:`SessionVolumes`,props:{value:{}},setup(t){function n(e){let t=JSON.parse(e);return Object.values(t)}return(r,i)=>(c(),f(`ul`,Vi,[(c(!0),f(x,null,M(n(t.value),t=>(c(),f(`li`,{key:t},e(t),1))),128))]))}}),Ui=r({__name:`Date`,props:{value:{}},setup(t){let n=t,r=O(()=>new Date(n.value).toLocaleString());return(t,n)=>e(r.value)}}),Wi={class:`sessions`},Gi={class:`session`},Ki={class:`session__label`},qi={class:`mb-1`},Ji={class:`session__status`},Yi={class:`mb-1`},Xi={class:`session__last-update`},Zi={class:`mb-1`},Qi={class:`session__progress`},$i={class:`mb-1`},ea={class:`session__actions`},ta=E(r({__name:`IndexingSessions`,setup(t){let{sessionsArray:n,currentSessionId:r,stopSession:i,reviewSessionOverview:a,reviewSession:s}=Mi(),l=de(),u=C([l.accessor(`indexedVolumes`,{header:()=>N(`Volumes being indexed`),cell:({getValue:e})=>w(Hi,{value:e()})}),l.accessor(`dateUpdated`,{header:()=>N(`Last update`),cell:({getValue:e})=>w(Ui,{value:e().date})}),l.display({id:`progress`,header:()=>N(`Progress`),cell:({row:e})=>w(ai,{pending:!e.original.actionRequired&&e.original.id!==r.value,processedEntries:e.original.processedEntries,totalEntries:e.original.totalEntries})}),l.display({id:`status`,header:()=>N(`Status`),cell:({row:e})=>{let t=e.original;return t.actionRequired?w(P,{variant:`warning`},()=>N(`Waiting for review`)):t.id===r.value?w(P,{variant:`success`},()=>N(`Active`)):w(P,{variant:`default`},()=>N(`Waiting`))}}),l.display({id:`actions`,cell:({row:e})=>w(li,{sessionId:e.original.id,actionRequired:e.original.actionRequired,onStop:e=>i(e),onReview:e=>a(e)})})]);return ue({get data(){return n.value},get columns(){return u.value},getRowId:e=>String(e.id),getCoreRowModel:fe()}),(t,l)=>(c(),f(x,null,[j(`div`,Wi,[(c(!0),f(x,null,M(T(n),t=>(c(),f(`div`,Gi,[j(`div`,Ki,[j(`div`,qi,[j(`strong`,null,e(T(N)(`Volumes being indexed`)),1)]),p(Hi,{value:t.indexedVolumes},null,8,[`value`])]),j(`div`,Ji,[j(`div`,Yi,[j(`strong`,null,e(T(N)(`Status`)),1)]),t.actionRequired?(c(),_(P,{key:0,variant:`warning`},{default:o(()=>[k(e(T(N)(`Waiting for review`)),1)]),_:1})):t.id===T(r)?(c(),_(P,{key:1,variant:`success`},{default:o(()=>[k(e(T(N)(`Active`)),1)]),_:1})):(c(),_(P,{key:2},{default:o(()=>[k(e(T(N)(`Waiting`)),1)]),_:1}))]),j(`div`,Xi,[j(`div`,Zi,[j(`strong`,null,e(T(N)(`Last update`)),1)]),p(Ui,{value:t.dateUpdated.date},null,8,[`value`])]),j(`div`,Qi,[j(`div`,$i,[j(`strong`,null,e(T(N)(`Progress`)),1)]),p(ai,{"processed-entries":t.processedEntries,"total-entries":t.totalEntries,pending:!t.actionRequired&&t.id!==T(r)},null,8,[`processed-entries`,`total-entries`,`pending`])]),j(`div`,ea,[p(li,{"session-id":t.id,"action-required":t.actionRequired,onStop:l[0]||=e=>T(i)(e),onReview:l[1]||=e=>T(a)(e)},null,8,[`session-id`,`action-required`])])]))),256))]),T(s)?(c(),_(Bi,{key:0})):A(``,!0)],64))}}),[[`__scopeId`,`data-v-99f02379`]]),na={key:0,class:`p-4`},ra={key:1,class:`p-4`},ia={class:`text-sm mb-2 mt-6`},aa={class:`grid gap-3`},oa=[`label`,`checked`,`disabled`],sa={slot:`help-text`},ca=[`label`,`checked`],la={slot:`help-text`},ua={class:`mt-4 flex gap-2 items-center`},da=[`loading`,`disabled`],fa=r({__name:`AssetIndexes`,props:{existingSessions:{},volumeOptions:{default:()=>[]},dateFormat:{},isEphemeral:{type:Boolean}},setup(t){let n=t,{sessionsArray:r,hasSessions:i,startIndexing:a,isStarting:o}=Mi({existingSessions:n.existingSessions}),s=ae({volumes:[`*`,...n.volumeOptions.map(e=>e.value)],cacheImages:!1,listEmptyFolders:!1});async function l(){await a(s)}return(n,r)=>(c(),f(x,null,[T(i)?(c(),f(`div`,na,[p(ta)])):A(``,!0),t.volumeOptions?(c(),f(`div`,ra,[j(`form`,{onSubmit:te(l,[`prevent`])},[p(Rt,{name:`volumes[]`,label:T(N)(`Volumes`),modelValue:s.volumes,"onUpdate:modelValue":r[0]||=e=>s.volumes=e,options:t.volumeOptions,"allow-select-all":!0},null,8,[`label`,`modelValue`,`options`]),j(`h2`,ia,e(T(N)(`Options`)),1),j(`div`,aa,[t.isEphemeral?A(``,!0):(c(),f(`craft-switch`,{key:0,name:`cacheImages`,label:T(N)(`Cache remote images`),checked:s.cacheImages,disabled:t.isEphemeral,onChange:r[1]||=e=>s.cacheImages=e.target.checked},[j(`div`,sa,[k(e(T(N)(`Download copies of remote images to the local filesystem.`))+` `,1),t.isEphemeral?(c(),f(x,{key:0},[r[3]||=j(`br`,null,null,-1),j(`em`,null,e(T(N)(`This option is disabled for ephemeral environments.`)),1)],64)):A(``,!0)])],40,oa)),j(`craft-switch`,{name:`listEmptyFolders`,label:T(N)(`List empty folders`),checked:s.listEmptyFolders,onChange:r[2]||=e=>s.listEmptyFolders=e.target.checked},[j(`div`,la,e(T(N)(`Include empty folders in the review step.`)),1)],40,ca)]),j(`div`,ua,[j(`craft-button`,{type:`submit`,variant:`primary`,loading:T(o),disabled:s.volumes.length===0},e(T(N)(`Update asset indexes`)),9,da)])],32)])):A(``,!0)],64))}}),Q=(e,t)=>({url:Q.url(e,t),method:`get`});Q.definition={methods:[`get`,`head`],url:`/admin/system-messages/{key}`},Q.url=(e,t)=>{(typeof e==`string`||typeof e==`number`)&&(e={key:e}),Array.isArray(e)&&(e={key:e[0]}),e=Ce(e);let n={key:e.key};return Q.definition.url.replace(`{key}`,n.key.toString()).replace(/\/+$/,``)+F(t)},Q.get=(e,t)=>({url:Q.url(e,t),method:`get`}),Q.head=(e,t)=>({url:Q.url(e,t),method:`head`});var $=e=>({url:$.url(e),method:`post`});$.definition={methods:[`post`],url:`/admin/system-messages`},$.url=e=>$.definition.url+F(e),$.post=e=>({url:$.url(e),method:`post`});var pa={show:Q,store:$},ma=[`.modelValue`,`has-feedbck-for`],ha={slot:`feedback`},ga={key:0,class:`error-list`},_a=r({name:`CraftTextarea`,__name:`CraftTextarea`,props:l({error:{}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let r=m(n,`modelValue`);return(i,a)=>(c(),f(`craft-textarea`,u(i.$attrs,{".modelValue":r.value,onModelValueChanged:a[0]||=e=>r.value=e.target?.modelValue,"has-feedbck-for":n.error?`error`:``}),[t(i.$slots,`default`),j(`div`,ha,[n.error?(c(),f(`ul`,ga,[j(`li`,null,e(n.error),1)])):A(``,!0)])],48,ma))}}),va={class:`flex items-center gap-2`},ya=[`visible`],ba={class:`grid gap-3`},xa=[`variant`,`icon`],Sa=r({__name:`SystemMessageEditModal`,props:{isActive:{type:Boolean},message:{},locales:{},isMultiSite:{type:Boolean},initialLanguage:{}},emits:[`close`,`save`],setup(t,{emit:r}){let i=t,a=r,{flash:l}=_e(),{announce:u}=be(),d=C(null),f=v({language:i.initialLanguage}),m=v({key:i.message.key,language:i.initialLanguage,subject:i.message.subject,body:i.message.body});function h(){f.get(pa.show({key:i.message.key}).url,{onSuccess:({message:e})=>{e&&(m.language=e.language,m.subject=e.subject,m.body=e.body)}})}s(()=>i.message,e=>{m.key=e.key,m.subject=e.subject,m.body=e.body,m.language=i.initialLanguage});function g({closeOnSuccess:e=!0}={}){!m.subject.trim()||!m.body.trim()||(d.value=null,m.post($().url,{onHttpException:e=>{d.value={icon:`triangle-exclamation`,message:N(`Failed to save message.`),variant:`danger`}},onSuccess:t=>{a(`save`,{subject:t.subject,body:t.body,language:t.language}),e?(l(`success`,N(`Message saved.`),{duration:-1}),a(`close`)):d.value={icon:`circle-check`,message:N(`Message saved`),variant:`success`}},onError:()=>{d.value={icon:`triangle-exclamation`,message:N(`Failed to save`),variant:`danger`}}}))}function y(){g()}return we(`keydown`,e=>{i.isActive&&((e.metaKey||e.ctrlKey)&&e.key===`Enter`&&(e.preventDefault(),y()),(e.metaKey||e.ctrlKey)&&e.key===`s`&&(e.preventDefault(),g({closeOnSuccess:!1})))}),(r,i)=>(c(),_(xe,{"is-active":t.isActive,title:T(N)(`Edit Message`),loading:T(m).processing,onClose:i[3]||=e=>a(`close`),onSubmit:y,width:`2xl`},n({"header-actions":o(()=>[j(`div`,va,[j(`craft-spinner`,{visible:T(f).processing,style:{"--size":`1rem`}},null,8,ya),p(me,{modelValue:T(f).language,"onUpdate:modelValue":i[0]||=e=>T(f).language=e,options:t.locales,onChange:h},null,8,[`modelValue`,`options`])])]),default:o(()=>[j(`div`,ba,[p(Ve,{label:T(N)(`Subject`),"help-text":T(N)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:T(m).subject,"onUpdate:modelValue":i[1]||=e=>T(m).subject=e,maxlength:`1000`,required:``,disabled:T(f).processing},null,8,[`label`,`help-text`,`modelValue`,`disabled`]),p(_a,{label:T(N)(`Body`),"help-text":T(N)(`Evaluated as a twig template, then parsed as markdown.`),modelValue:T(m).body,"onUpdate:modelValue":i[2]||=e=>T(m).body=e,monospace:``,required:``,disabled:T(f).processing,"max-rows":`25`},null,8,[`label`,`help-text`,`modelValue`,`disabled`])])]),_:2},[d.value?{name:`feedback`,fn:o(()=>[j(`craft-callout`,{variant:d.value.variant,icon:d.value.icon,appearance:`plain`,inline:``,class:`p-0`},e(d.value.message),9,xa)]),key:`0`}:void 0]),1032,[`is-active`,`title`,`loading`]))}}),Ca={id:`messages`,class:`p-4`},wa={class:`text-lg mb-2`},Ta={class:`font-medium`},Ea=[`onClick`],Da=[`label`],Oa=[`innerHTML`],ka=E(r({__name:`SystemMessages`,props:{messages:{},locales:{},isMultiSite:{type:Boolean},primaryLanguage:{}},setup(t){let n=t,{flash:r}=_e(),i=C([...n.messages]),a=C(!1),s=C(null);function l(e){s.value=e,a.value=!0}function u(){a.value=!1,s.value=null}function d(e){if(s.value&&e.language===n.primaryLanguage){let t=i.value.findIndex(e=>e.key===s.value?.key),n=i.value[t];n&&(n.subject=e.subject,n.body=e.body)}}function m(e){return e.replace(/\n/g,`
`)}return(n,r)=>(c(),f(x,null,[j(`div`,Ca,[(c(!0),f(x,null,M(i.value,t=>(c(),f(`div`,{key:t.key,class:`mb-6`},[j(`h2`,wa,e(t.heading),1),p(he,{appearance:`outline`,variant:`code`},{title:o(()=>[j(`div`,Ta,e(t.subject),1)]),"header-actions":o(()=>[j(`craft-button`,{type:`button`,icon:``,size:`small`,onClick:e=>l(t)},[j(`craft-icon`,{name:`pencil`,label:T(N)(`Edit message`)},null,8,Da)],8,Ea)]),default:o(()=>[j(`div`,{class:`font-mono text-xs`,innerHTML:m(t.body)},null,8,Oa)]),_:2},1024)]))),128))]),s.value?(c(),_(Sa,{key:0,"is-active":a.value,message:s.value,locales:t.locales,"is-multi-site":t.isMultiSite,"initial-language":t.primaryLanguage,onClose:u,onSave:d},null,8,[`is-active`,`message`,`locales`,`is-multi-site`,`initial-language`])):A(``,!0)],64))}}),[[`__scopeId`,`data-v-a4f74fa5`]]),Aa=[`disabled`,`loading`],ja=r({__name:`DeprecationErrorsToolbar`,props:{disabled:{type:Boolean}},setup(t){return(n,r)=>(c(),_(T(S),{action:T(V)(),method:`delete`},{default:o(({processing:n})=>[j(`craft-button`,{disabled:t.disabled,type:`submit`,loading:n},e(T(N)(`Clear All`)),9,Aa)]),_:1},8,[`action`]))}}),Ma=[],Na=[],Pa=se.getInstance(),Fa=le.getInstance(),Ia={initialConfig:{},get $config(){return Pa},get $queue(){return Fa},get $axios(){return ce},booted(e){Ma.push(e)},booting(e){Na.push(e)},config(e){this.initialConfig=e},init(){Pa.initialize(this.initialConfig),Fa.initialize({enabled:!0,appId:Pa.get(`systemUid`,``),canAccessQueueManager:Pa.get(`canAccessQueueManager`,!1)})},async start(){this.init(),ce.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`,ce.defaults.headers.common[`X-CSRF-TOKEN`]=this.$config.get(`csrfToken`),console.groupCollapsed(`Craft configuration`),console.log(Pa.all().entries()),console.groupEnd(),console.log(`Calling booting callbacks`,Na),Na.forEach(e=>e(this)),Na=[],await re({resolve:async(e,t)=>{let n=await Object.assign({"../pages/Install.vue":()=>b(()=>import(`./Install.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),"../pages/SettingsEmailPage.vue":()=>b(()=>import(`./SettingsEmailPage.js`),__vite__mapDeps([22,1,2,3,4,5,6,7,8,23,11,24,9,25,17,18,19,26,27,28,29,30,14,15,16,31]),import.meta.url),"../pages/SettingsGeneralPage.vue":()=>b(()=>import(`./SettingsGeneralPage.js`),__vite__mapDeps([32,1,2,3,4,5,6,7,8,9,26,27,28,29,30,33]),import.meta.url),"../pages/SettingsIndexPage.vue":()=>b(()=>import(`./SettingsIndexPage.js`),__vite__mapDeps([34,1,2,3,4,5,6,7,8,26,9,27,28,29,30,35]),import.meta.url),"../pages/SettingsSectionsEditPage.vue":()=>b(()=>import(`./SettingsSectionsEditPage.js`),__vite__mapDeps([36,1,2,3,4,5,6,7,8,23,11,24,9,10,25,17,18,19,26,27,28,29,37,30,14,15,38,39]),import.meta.url),"../pages/SettingsSectionsIndexPage.vue":()=>b(()=>import(`./SettingsSectionsIndexPage.js`),__vite__mapDeps([40,1,2,3,4,5,6,7,8,23,11,24,9,26,27,28,29,37,30,14,15]),import.meta.url),"../pages/SettingsSitesEdit.vue":()=>b(()=>import(`./SettingsSitesEdit.js`),__vite__mapDeps([41,1,2,3,4,5,6,7,8,17,18,19,9,26,27,28,29,42,43,12,13,14,15,30,16,38]),import.meta.url),"../pages/SettingsSitesIndex.vue":()=>b(()=>import(`./SettingsSitesIndex.js`),__vite__mapDeps([44,1,2,3,4,5,6,7,8,23,11,24,17,18,19,9,42,43,12,13,14,15,30,27,28,45,26,29,46,47]),import.meta.url),"../pages/Updater.vue":()=>b(()=>import(`./Updater.js`),__vite__mapDeps([48,1,2,3,4,5,6,7,8,49]),import.meta.url),"../pages/UtilitiesShowPage.vue":()=>b(()=>import(`./UtilitiesShowPage.js`),__vite__mapDeps([50,1,2,3,4,5,6,7,8,27,28,45,9,26,29,46]),import.meta.url)})[`../pages/${e}.vue`]?.();if(!n)throw Error(`Page not found: ${e}`);return n.default??n},withApp(e){e.provide(lt,Fa),e.provide(ut,ce),e.provide(dt,Pa),e.component(`QueueManager`,ft),e.component(`QueueManagerToolbar`,vt),e.component(`DeprecationErrors`,kt),e.component(`DeprecationErrorsToolbar`,ja),e.component(`ClearCaches`,Xt),e.component(`FindReplace`,rn),e.component(`DatabaseBackup`,ln),e.component(`Migrations`,fn),e.component(`Updates`,dr),e.component(`ProjectConfig`,ni),e.component(`AssetIndexes`,fa),e.component(`SystemMessages`,ka)}}),console.log(`Calling booted callbacks`,Ma),Ma.forEach(e=>e(this)),Ma=[]}};export{Ia as t}; \ No newline at end of file diff --git a/resources/build/dist.js b/resources/build/dist.js index 09d0dc4ff83..ee67f516d11 100644 --- a/resources/build/dist.js +++ b/resources/build/dist.js @@ -1 +1 @@ -import{A as e,D as t,F as n,K as r,at as i,et as a,it as o,j as s,l as c,lt as l,q as u,st as d,v as f}from"./_plugin-vue_export-helper.js";function p(e,t){let n=new URL(e),r=t.startsWith(`/`)?t.slice(1):t;return n.pathname=`${n.pathname}/${r}`,n.toString()}function m(){let e=h();return{getActionUrl(t){return p(e.actionUrl,t)},getCpUrl(t){return`${e.cpUrl}${t}`},getApiUrl(t){return p(e.baseApiUrl,t)}}}function h(){let e=c();return new Proxy({},{get(t,n){return e.props.craft?.[n]}})}var g=new WeakMap,_=(...n)=>{let r=n[0],i=t()?.proxy??a();if(i==null&&!e())throw Error(`injectLocal must be called in setup`);return i&&g.has(i)&&r in g.get(i)?g.get(i)[r]:s(...n)},v=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var y=Object.prototype.toString,b=e=>y.call(e)===`[object Object]`;function x(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function S(e){return Array.isArray(e)?e:[e]}function C(e,t,n){return r(e,t,{...n,immediate:!0})}var w=v?window:void 0;v&&window.document,v&&window.navigator,v&&window.location;function T(e){let t=d(e);return t?.$el??t}function E(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=f(()=>{let t=S(d(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return C(()=>[n.value?.map(e=>T(e))??[w].filter(e=>e!=null),S(d(n.value?e[1]:e[0])),S(l(n.value?e[2]:e[1])),d(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=b(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function D(){let e=i(!1),r=t();return r&&n(()=>{e.value=!0},r),e}function O(e){let t=D();return f(()=>(t.value,!!e()))}function k(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function A(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=w,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=k(t);return E(i,a,e=>{e.repeat&&d(s)||c(e)&&n(e)},o)}var j=Symbol(`vueuse-ssr-width`);function M(){let t=e()?_(j,null):null;return typeof t==`number`?t:void 0}function N(e,t={}){let{window:n=w,ssrWidth:r=M()}=t,a=O(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),o=i(typeof r==`number`),s=i(),c=i(!1);return u(()=>{if(o.value){o.value=!a.value,c.value=d(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=x(n[1])),i&&a&&(a=r<=x(i[1])),t?!a:a});return}a.value&&(s.value=n.matchMedia(d(e)),c.value=s.value.matches)}),E(s,`change`,e=>{c.value=e.matches},{passive:!0}),f(()=>c.value)}function P(e,t){let n=o(e),r=f(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),i=o(r.value.indexOf(t??r.value[0])),a=f(()=>d(i.value)),s=f(()=>i.value===0),c=f(()=>i.value===r.value.length-1),l=f(()=>r.value[i.value+1]),u=f(()=>r.value[i.value-1]);function d(e){return Array.isArray(n.value)?n.value[e]:n.value[r.value[e]]}function p(e){if(r.value.includes(e))return d(r.value.indexOf(e))}function m(e){r.value.includes(e)&&(i.value=r.value.indexOf(e))}function h(){c.value||i.value++}function g(){s.value||i.value--}function _(e){S(e)&&m(e)}function v(e){return r.value.indexOf(e)===i.value+1}function y(e){return r.value.indexOf(e)===i.value-1}function b(e){return r.value.indexOf(e)===i.value}function x(e){return i.valuer.value.indexOf(e)}return{steps:n,stepNames:r,index:i,current:a,next:l,previous:u,isFirst:s,isLast:c,at:d,get:p,goTo:m,goToNext:h,goToPrevious:g,goBackTo:_,isNext:v,isPrevious:y,isCurrent:b,isBefore:x,isAfter:S}}export{h as a,P as i,E as n,m as o,N as r,A as t}; \ No newline at end of file +import{A as e,D as t,F as n,K as r,at as i,et as a,it as o,j as s,l as c,lt as l,q as u,st as d,v as f}from"./_plugin-vue_export-helper.js";function p(e,t){let n=new URL(e),r=t.startsWith(`/`)?t.slice(1):t;return n.pathname=`${n.pathname}/${r}`,n.toString()}function m(){let e=h();return{getActionUrl(t){return p(e.actionUrl,t)},getCpUrl(t){return`${e.cpUrl}${t}`},getApiUrl(t){return p(e.baseApiUrl,t)}}}function h(){let e=c();return new Proxy({},{get(t,n){return e.props.craft?.[n]}})}var g=()=>({}),_=e=>e===!0?`1`:e===!1?`0`:e.toString(),v=(e,t,n)=>{Object.entries(e).forEach(([e,r])=>{if(r===void 0)return;let i=`${t}[${e}]`;Array.isArray(r)?r.forEach(e=>n.append(`${i}[]`,_(e))):typeof r==`object`&&r?v(r,i,n):[`string`,`number`,`boolean`].includes(typeof r)&&n.set(i,_(r))})},y=e=>{if(!e||!e.query&&!e.mergeQuery)return``;let t=e.query??e.mergeQuery,n=e.mergeQuery!==void 0,r=new URLSearchParams(n&&typeof window<`u`?window.location.search:``);for(let e in t){let n=t[e];if(n==null){r.delete(e);continue}Array.isArray(n)?(r.has(`${e}[]`)&&r.delete(`${e}[]`),n.forEach(t=>{r.append(`${e}[]`,t.toString())})):typeof n==`object`?(r.forEach((t,n)=>{n.startsWith(`${e}[`)&&r.delete(n)}),v(n,e,r)):r.set(e,_(n))}let i=r.toString();return i.length>0?`?${i}`:``},b=e=>{let t={...e??{}},n=g();for(let e in n)t[e]===void 0&&n[e]!==void 0&&(t[e]=n[e]);return t},x=(e,t)=>{let n=t.filter(t=>{let n=e?.[t];return n==null||n===``||n===!1}),r=t.slice(n.length*-1);for(let e=0;e{let r=n[0],i=t()?.proxy??a();if(i==null&&!e())throw Error(`injectLocal must be called in setup`);return i&&S.has(i)&&r in S.get(i)?S.get(i)[r]:s(...n)},w=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var T=Object.prototype.toString,E=e=>T.call(e)===`[object Object]`;function D(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function O(e){return Array.isArray(e)?e:[e]}function k(e,t,n){return r(e,t,{...n,immediate:!0})}var A=w?window:void 0;w&&window.document,w&&window.navigator,w&&window.location;function j(e){let t=d(e);return t?.$el??t}function M(...e){let t=(e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)),n=f(()=>{let t=O(d(e[0])).filter(e=>e!=null);return t.every(e=>typeof e!=`string`)?t:void 0});return k(()=>[n.value?.map(e=>j(e))??[A].filter(e=>e!=null),O(d(n.value?e[1]:e[0])),O(l(n.value?e[2]:e[1])),d(n.value?e[3]:e[2])],([e,n,r,i],a,o)=>{if(!e?.length||!n?.length||!r?.length)return;let s=E(i)?{...i}:i,c=e.flatMap(e=>n.flatMap(n=>r.map(r=>t(e,n,r,s))));o(()=>{c.forEach(e=>e())})},{flush:`post`})}function N(){let e=i(!1),r=t();return r&&n(()=>{e.value=!0},r),e}function P(e){let t=N();return f(()=>(t.value,!!e()))}function F(e){return typeof e==`function`?e:typeof e==`string`?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function I(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]==`object`?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);let{target:i=A,eventName:a=`keydown`,passive:o=!1,dedupe:s=!1}=r,c=F(t);return M(i,a,e=>{e.repeat&&d(s)||c(e)&&n(e)},o)}var L=Symbol(`vueuse-ssr-width`);function R(){let t=e()?C(L,null):null;return typeof t==`number`?t:void 0}function z(e,t={}){let{window:n=A,ssrWidth:r=R()}=t,a=P(()=>n&&`matchMedia`in n&&typeof n.matchMedia==`function`),o=i(typeof r==`number`),s=i(),c=i(!1);return u(()=>{if(o.value){o.value=!a.value,c.value=d(e).split(`,`).some(e=>{let t=e.includes(`not all`),n=e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),i=e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),a=!!(n||i);return n&&a&&(a=r>=D(n[1])),i&&a&&(a=r<=D(i[1])),t?!a:a});return}a.value&&(s.value=n.matchMedia(d(e)),c.value=s.value.matches)}),M(s,`change`,e=>{c.value=e.matches},{passive:!0}),f(()=>c.value)}function B(e,t){let n=o(e),r=f(()=>Array.isArray(n.value)?n.value:Object.keys(n.value)),i=o(r.value.indexOf(t??r.value[0])),a=f(()=>d(i.value)),s=f(()=>i.value===0),c=f(()=>i.value===r.value.length-1),l=f(()=>r.value[i.value+1]),u=f(()=>r.value[i.value-1]);function d(e){return Array.isArray(n.value)?n.value[e]:n.value[r.value[e]]}function p(e){if(r.value.includes(e))return d(r.value.indexOf(e))}function m(e){r.value.includes(e)&&(i.value=r.value.indexOf(e))}function h(){c.value||i.value++}function g(){s.value||i.value--}function _(e){S(e)&&m(e)}function v(e){return r.value.indexOf(e)===i.value+1}function y(e){return r.value.indexOf(e)===i.value-1}function b(e){return r.value.indexOf(e)===i.value}function x(e){return i.valuer.value.indexOf(e)}return{steps:n,stepNames:r,index:i,current:a,next:l,previous:u,isFirst:s,isLast:c,at:d,get:p,goTo:m,goToNext:h,goToPrevious:g,goBackTo:_,isNext:v,isPrevious:y,isCurrent:b,isBefore:x,isAfter:S}}export{b as a,h as c,B as i,m as l,M as n,y as o,z as r,x as s,I as t}; \ No newline at end of file diff --git a/resources/build/manifest.json b/resources/build/manifest.json index aa6b8b62579..b36082b6a3d 100644 --- a/resources/build/manifest.json +++ b/resources/build/manifest.json @@ -84,9 +84,9 @@ "name": "DeleteSiteModal", "imports": [ "__plugin-vue_export-helper.js", + "_dist.js", "_nav-item-9g3ebwBJ.js", - "_ModalForm.js", - "_wayfinder.js" + "_ModalForm.js" ] }, "_IndexLayout.css": { @@ -181,7 +181,7 @@ "file": "SectionsController.js", "name": "SectionsController", "imports": [ - "_wayfinder.js" + "_dist.js" ] }, "_Select.js": { @@ -314,8 +314,7 @@ "_Modal.js", "_Pane.js", "_Input.js", - "_useFetch.js", - "_wayfinder.js" + "_useFetch.js" ], "dynamicImports": [ "resources/js/pages/Install.vue", @@ -411,7 +410,8 @@ "imports": [ "__plugin-vue_export-helper.js", "_AdminTable.js", - "_InputCombobox.js" + "_InputCombobox.js", + "_dist.js" ] }, "_useFetch.js": { @@ -430,10 +430,6 @@ "__plugin-vue_export-helper.js" ] }, - "_wayfinder.js": { - "file": "wayfinder.js", - "name": "wayfinder" - }, "node_modules/@lion/ui/components/combobox/translations/bg.js": { "file": "bg.js", "name": "bg", @@ -1141,8 +1137,7 @@ "_Modal.js", "_Pane.js", "_CraftCombobox.js", - "_useFetch.js", - "_wayfinder.js" + "_useFetch.js" ], "css": [ "assets/Install.css" @@ -1170,8 +1165,7 @@ "_useAnnouncer.js", "_Pane.js", "_CraftCombobox.js", - "_Input.js", - "_wayfinder.js" + "_Input.js" ] }, "resources/js/pages/SettingsGeneralPage.vue": { @@ -1185,8 +1179,7 @@ "_nav-item-9g3ebwBJ.js", "_AppLayout.js", "_CalloutReadOnly.js", - "_useAnnouncer.js", - "_wayfinder.js" + "_useAnnouncer.js" ], "css": [ "assets/SettingsGeneralPage.css" @@ -1220,13 +1213,12 @@ "_CraftInput.js", "_Select.js", "_useEditableTable.js", - "_SectionsController.js", "_AppLayout.js", + "_SectionsController.js", "_CalloutReadOnly.js", "_useAnnouncer.js", "_Pane.js", - "_useInputGenerator.js", - "_wayfinder.js" + "_useInputGenerator.js" ], "css": [ "assets/SettingsSectionsEditPage.css" @@ -1240,9 +1232,11 @@ "imports": [ "__plugin-vue_export-helper.js", "_AdminTable.js", + "_dist.js", "_nav-item-9g3ebwBJ.js", - "_SectionsController.js", "_AppLayout.js", + "_SectionsController.js", + "_CalloutReadOnly.js", "_useAnnouncer.js", "_Pane.js" ] @@ -1257,9 +1251,9 @@ "_InputCombobox.js", "_dist.js", "_nav-item-9g3ebwBJ.js", + "_AppLayout.js", "_DeleteSiteModal.js", "_ModalForm.js", - "_AppLayout.js", "_CalloutReadOnly.js", "_useAnnouncer.js", "_CraftCombobox.js", @@ -1275,13 +1269,13 @@ "__plugin-vue_export-helper.js", "_AdminTable.js", "_InputCombobox.js", + "_dist.js", "_nav-item-9g3ebwBJ.js", "_DeleteSiteModal.js", "_ModalForm.js", "_CalloutReadOnly.js", "_useAnnouncer.js", - "_IndexLayout.js", - "_wayfinder.js" + "_IndexLayout.js" ], "css": [ "assets/SettingsSitesIndex.css" diff --git a/resources/build/useEditableTable.js b/resources/build/useEditableTable.js index 5889bfc9a58..c9ff604fa66 100644 --- a/resources/build/useEditableTable.js +++ b/resources/build/useEditableTable.js @@ -1 +1 @@ -import{$ as e,B as t,E as n,L as r,M as i,N as a,S as o,U as s,it as c,k as l,v as u,x as d,y as f}from"./_plugin-vue_export-helper.js";import{a as p,o as m,s as h}from"./AdminTable.js";import{t as g}from"./InputCombobox.js";var _=[`.checked`,`has-feedbck-for`],v={slot:`feedback`},y={key:0,class:`error-list`},b=n({name:`CraftSwitch`,__name:`CraftSwitch`,props:i({error:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let i=s(n,`modelValue`);return(s,c)=>(r(),o(`craft-switch`,a(s.$attrs,{".checked":i.value,onModelValueChanged:c[0]||=e=>i.value=e.target?.checked,"has-feedbck-for":n.error?`error`:``}),[t(s.$slots,`default`),f(`div`,v,[n.error?(r(),o(`ul`,y,[f(`li`,null,e(n.error),1)])):d(``,!0)])],48,_))}});function x(e){return typeof e==`function`?e():e}function S(e){let t=e.key??`id`;function n(e){return!Array.isArray(e)}let r=u(()=>{let r=e.data();return n(r)?Object.entries(r).map(([e,n])=>({...n,[t]:e})):r});function i(i,a,o){let s=n(e.data()),c=r.value.map((e,t)=>t===i.index?{...e,[a]:o}:e);if(s){let n={};for(let e of c){let{[t]:r,...i}=e;n[r]=i}e.onChange(n)}else e.onChange(c)}function a(e,t){if(e!==void 0){if(typeof e==`boolean`)return e;if(typeof e==`function`)return e(t)}}function o(n,r){return({row:o,column:s,getValue:c})=>l(`textarea`,{rows:1,type:n,value:c(),class:r?.class,autocomplete:`off`,autocorrect:`off`,autocapitalize:`off`,spellcheck:!1,placeholder:r?.placeholder,disabled:a(r?.disabled,o),name:r?.name?r.name(o,s.id):e.name?`${e.name}[${o.original[t]}][${s.id}]`:void 0,"aria-labelledby":`header-${s.id}`,onInput:e=>{typeof r?.onInput==`function`&&r.onInput(e)},onChange:e=>{let t=e.target.value;typeof r?.onChange==`function`&&r.onChange(t,{row:o,column:s}),i(o,s.id,t)}})}function s(e){return({row:t,column:n})=>l(b,{modelValue:t.original[n.id],"label-sr-only":!0,size:e?.switchSize??`small`,label:e?.label,"aria-labelledby":e?.ariaLabelledBy??`header-${n.id}`,disabled:a(e?.disabled,t),"onUpdate:modelValue":r=>{typeof e?.onUpdate==`function`&&e.onUpdate(r),i(t,n.id,r??!1)}})}function d(e){return({row:t,column:n})=>l(`input`,{type:`checkbox`,checked:t.original[n.id],"aria-labelledby":e?.ariaLabelledBy??`header-${n.id}`,disabled:a(e?.disabled,t),onChange:r=>{let a=r.target.checked;typeof e?.onChange==`function`&&e.onChange(a,{row:t,column:n}),i(t,n.id,a??!1)}})}function f(e){return({row:t,column:n})=>{let r=typeof e?.options==`function`?e.options(t):x(e?.options??[]);return l(g,{modelValue:t.original[n.id],options:r,class:e?.class,placeholder:e?.placeholder,requireOptionMatch:e?.requireOptionMatch,transformModelValue:e?.transformModelValue,"onUpdate:modelValue":r=>{typeof e?.onChange==`function`&&e.onChange(r,{row:t,column:n}),i(t,n.id,r)}})}}let _=m();function v(e){let t={};return e?.header!==void 0&&(t.header=e.header),e?.size!==void 0&&(t.size=e.size),e?.meta!==void 0&&(t.meta=e.meta),t}let y={accessor:_.accessor,display:_.display,group:_.group,text(e,t={}){let{inputType:n,class:r,placeholder:i,name:a,onInput:s,onChange:c,...l}=t,u=v(l);return u.cell=o(n??`text`,{class:r,placeholder:i,disabled:l.disabled,name:a,onInput:s,onChange:c}),_.accessor(e,u)},lightswitch(e,t={}){let{label:n,ariaLabelledBy:r,switchSize:i,onUpdate:a,...o}=t,c=v(o);return c.cell=s({disabled:o.disabled,label:n,ariaLabelledBy:r,switchSize:i,onUpdate:a}),_.accessor(e,c)},checkbox(e,t={}){let{ariaLabelledBy:n,onChange:r,...i}=t,a=v(i);return a.cell=d({disabled:i.disabled,ariaLabelledBy:n,onChange:r}),_.accessor(e,a)},autocomplete(e,t={}){let{options:n,requireOptionMatch:r,transformModelValue:i,onChange:a,...o}=t,s=v(o);return s.cell=f({disabled:o.disabled,options:n,requireOptionMatch:r,transformModelValue:i,onChange:a,class:t.class??``,placeholder:t.placeholder??``}),_.accessor(e,s)}},S=c(e.columns({columnHelper:y})),C={get data(){return r.value},get columns(){return S.value},enableSorting:!1,getCoreRowModel:h(),defaultColumn:{size:`auto`}};return e.columnVisibility&&(C.state={get columnVisibility(){return e.columnVisibility()}}),{table:p(C)}}export{b as n,S as t}; \ No newline at end of file +import{$ as e,B as t,E as n,L as r,M as i,N as a,S as o,U as s,it as c,k as l,v as u,x as d,y as f}from"./_plugin-vue_export-helper.js";import{a as p,o as m,s as h}from"./AdminTable.js";import{c as g}from"./dist.js";import{t as _}from"./InputCombobox.js";var v=[`.checked`,`has-feedbck-for`],y={slot:`feedback`},b={key:0,class:`error-list`},x=n({name:`CraftSwitch`,__name:`CraftSwitch`,props:i({error:{}},{modelValue:{type:Boolean},modelModifiers:{}}),emits:[`update:modelValue`],setup(n){let i=s(n,`modelValue`);return(s,c)=>(r(),o(`craft-switch`,a(s.$attrs,{".checked":i.value,onModelValueChanged:c[0]||=e=>i.value=e.target?.checked,"has-feedbck-for":n.error?`error`:``}),[t(s.$slots,`default`),f(`div`,y,[n.error?(r(),o(`ul`,b,[f(`li`,null,e(n.error),1)])):d(``,!0)])],48,v))}});function S(e){return typeof e==`function`?e():e}function C(e){let t=e.key??`id`,{readOnly:n}=g();function r(e){return!Array.isArray(e)}let i=u(()=>{let n=e.data();return r(n)?Object.entries(n).map(([e,n])=>({...n,[t]:e})):n});function a(n,a,o){let s=r(e.data()),c=i.value.map((e,t)=>t===n.index?{...e,[a]:o}:e);if(s){let n={};for(let e of c){let{[t]:r,...i}=e;n[r]=i}e.onChange(n)}else e.onChange(c)}function o(e,t){let r=e;return typeof e==`boolean`&&(r=e),typeof e==`function`&&(r=e(t)),n?!0:!!r}function s(n,r){return({row:i,column:s,getValue:c})=>l(`textarea`,{rows:1,type:n,value:c(),class:r?.class,autocomplete:`off`,autocorrect:`off`,autocapitalize:`off`,spellcheck:!1,placeholder:r?.placeholder,disabled:o(r?.disabled,i),name:r?.name?r.name(i,s.id):e.name?`${e.name}[${i.original[t]}][${s.id}]`:void 0,"aria-labelledby":`header-${s.id}`,onInput:e=>{typeof r?.onInput==`function`&&r.onInput(e)},onChange:e=>{let t=e.target.value;typeof r?.onChange==`function`&&r.onChange(t,{row:i,column:s}),a(i,s.id,t)}})}function d(e){return({row:t,column:n})=>l(x,{modelValue:t.original[n.id],"label-sr-only":!0,size:e?.switchSize??`small`,label:e?.label,"aria-labelledby":e?.ariaLabelledBy??`header-${n.id}`,disabled:o(e?.disabled,t),"onUpdate:modelValue":r=>{typeof e?.onUpdate==`function`&&e.onUpdate(r),a(t,n.id,r??!1)}})}function f(e){return({row:t,column:n})=>l(`input`,{type:`checkbox`,checked:t.original[n.id],"aria-labelledby":e?.ariaLabelledBy??`header-${n.id}`,disabled:o(e?.disabled,t),onChange:r=>{let i=r.target.checked;typeof e?.onChange==`function`&&e.onChange(i,{row:t,column:n}),a(t,n.id,i??!1)}})}function v(e){return({row:t,column:n})=>{let r=typeof e?.options==`function`?e.options(t):S(e?.options??[]);return l(_,{modelValue:t.original[n.id],options:r,class:e?.class,placeholder:e?.placeholder,requireOptionMatch:e?.requireOptionMatch,transformModelValue:e?.transformModelValue,disabled:o(e?.disabled,t),"onUpdate:modelValue":r=>{typeof e?.onChange==`function`&&e.onChange(r,{row:t,column:n}),a(t,n.id,r)}})}}let y=m();function b(e){let t={};return e?.header!==void 0&&(t.header=e.header),e?.size!==void 0&&(t.size=e.size),e?.meta!==void 0&&(t.meta=e.meta),t}let C={accessor:y.accessor,display:y.display,group:y.group,text(e,t={}){let{inputType:n,class:r,placeholder:i,name:a,onInput:o,onChange:c,...l}=t,u=b(l);return u.cell=s(n??`text`,{class:r,placeholder:i,disabled:l.disabled,name:a,onInput:o,onChange:c}),y.accessor(e,u)},lightswitch(e,t={}){let{label:n,ariaLabelledBy:r,switchSize:i,onUpdate:a,...o}=t,s=b(o);return s.cell=d({disabled:o.disabled,label:n,ariaLabelledBy:r,switchSize:i,onUpdate:a}),y.accessor(e,s)},checkbox(e,t={}){let{ariaLabelledBy:n,onChange:r,...i}=t,a=b(i);return a.cell=f({disabled:i.disabled,ariaLabelledBy:n,onChange:r}),y.accessor(e,a)},autocomplete(e,t={}){let{options:n,requireOptionMatch:r,transformModelValue:i,onChange:a,...o}=t,s=b(o);return s.cell=v({disabled:o.disabled,options:n,requireOptionMatch:r,transformModelValue:i,onChange:a,class:t.class??``,placeholder:t.placeholder??``}),y.accessor(e,s)}},w=c(e.columns({columnHelper:C})),T={get data(){return i.value},get columns(){return w.value},enableSorting:!1,getCoreRowModel:h(),defaultColumn:{size:`auto`}};return e.columnVisibility&&(T.state={get columnVisibility(){return e.columnVisibility()}}),{table:p(T)}}export{x as n,C as t}; \ No newline at end of file diff --git a/resources/build/useFetch.js b/resources/build/useFetch.js index 5dfd68e0c97..6d73c13daa3 100644 --- a/resources/build/useFetch.js +++ b/resources/build/useFetch.js @@ -1 +1 @@ -import{K as e,ht as t,it as n,lt as r,v as i}from"./_plugin-vue_export-helper.js";import{r as a}from"./Queue.ts.js";import{o}from"./dist.js";function s(t,o={}){let{immediate:s=!0,refetch:c=!0,params:l,enabled:u=!0,debounce:d=0,transform:f=e=>e,onSuccess:p,onError:m,initialData:h=null,method:g=`get`,axiosInstance:_=a,...v}=o,y=n(h),b=n(`idle`),x=n(null),S=i(()=>b.value===`loading`),C=i(()=>b.value===`success`),w=i(()=>b.value===`error`),T=i(()=>r(t)),E=i(()=>r(u)),D=i(()=>r(l)),O=i(()=>r(g.toLowerCase())),k=null,A=null,j=async(e={})=>{if(!(!T.value||!E.value)){k&&k.cancel(`Request superseded by new request`),k=a.CancelToken.source(),b.value=`loading`,x.value=null;try{let t=await _({method:O.value,url:T.value,params:D.value,cancelToken:k.token,data:O.value===`get`?void 0:e,...v}),n=f(t.data);b.value=`success`,y.value=n,p?.(n,t)}catch(e){a.isCancel(e)?b.value=`aborted`:a.isAxiosError(e)?(console.error(`Axios error:`,e.response?.data),b.value=`error`,x.value=e.response?.data||e.message||`Unknown error`,m?.(e)):(console.error(`Unkown error:`,e.message),b.value=`error`,x.value=e.message||`Unknown error`)}}},M=()=>{A&&clearTimeout(A),d>0?A=setTimeout(()=>{j()},d):j()};return c?e([T,D,E],()=>{E.value?M():(A&&clearTimeout(A),k&&k.cancel(`Request disabled`))},{immediate:s,deep:!0}):s&&E.value&&M(),{data:y,error:x,state:b,isLoading:S,isSuccess:C,isError:w,execute:j,refetch:()=>j(),abort:()=>{A&&clearTimeout(A),k&&k.cancel(`Request cancelled by user`)}}}function c(e,t={}){return s(e,{immediate:!1,...t,method:`post`})}function l(e,t={}){let n=t.method??`POST`,{getActionUrl:a}=o();return s(i(()=>a(r(e))),{immediate:!1,...t,method:n})}function u(e,n={}){let{getApiUrl:a}=o();return s(i(()=>a(r(e))),{...n,axiosInstance:t})}export{c as i,u as n,s as r,l as t}; \ No newline at end of file +import{K as e,ht as t,it as n,lt as r,v as i}from"./_plugin-vue_export-helper.js";import{r as a}from"./Queue.ts.js";import{l as o}from"./dist.js";function s(t,o={}){let{immediate:s=!0,refetch:c=!0,params:l,enabled:u=!0,debounce:d=0,transform:f=e=>e,onSuccess:p,onError:m,initialData:h=null,method:g=`get`,axiosInstance:_=a,...v}=o,y=n(h),b=n(`idle`),x=n(null),S=i(()=>b.value===`loading`),C=i(()=>b.value===`success`),w=i(()=>b.value===`error`),T=i(()=>r(t)),E=i(()=>r(u)),D=i(()=>r(l)),O=i(()=>r(g.toLowerCase())),k=null,A=null,j=async(e={})=>{if(!(!T.value||!E.value)){k&&k.cancel(`Request superseded by new request`),k=a.CancelToken.source(),b.value=`loading`,x.value=null;try{let t=await _({method:O.value,url:T.value,params:D.value,cancelToken:k.token,data:O.value===`get`?void 0:e,...v}),n=f(t.data);b.value=`success`,y.value=n,p?.(n,t)}catch(e){a.isCancel(e)?b.value=`aborted`:a.isAxiosError(e)?(console.error(`Axios error:`,e.response?.data),b.value=`error`,x.value=e.response?.data||e.message||`Unknown error`,m?.(e)):(console.error(`Unkown error:`,e.message),b.value=`error`,x.value=e.message||`Unknown error`)}}},M=()=>{A&&clearTimeout(A),d>0?A=setTimeout(()=>{j()},d):j()};return c?e([T,D,E],()=>{E.value?M():(A&&clearTimeout(A),k&&k.cancel(`Request disabled`))},{immediate:s,deep:!0}):s&&E.value&&M(),{data:y,error:x,state:b,isLoading:S,isSuccess:C,isError:w,execute:j,refetch:()=>j(),abort:()=>{A&&clearTimeout(A),k&&k.cancel(`Request cancelled by user`)}}}function c(e,t={}){return s(e,{immediate:!1,...t,method:`post`})}function l(e,t={}){let n=t.method??`POST`,{getActionUrl:a}=o();return s(i(()=>a(r(e))),{immediate:!1,...t,method:n})}function u(e,n={}){let{getApiUrl:a}=o();return s(i(()=>a(r(e))),{...n,axiosInstance:t})}export{c as i,u as n,s as r,l as t}; \ No newline at end of file diff --git a/resources/build/wayfinder.js b/resources/build/wayfinder.js deleted file mode 100644 index 9c535422a52..00000000000 --- a/resources/build/wayfinder.js +++ /dev/null @@ -1 +0,0 @@ -var e=()=>({}),t=e=>e===!0?`1`:e===!1?`0`:e.toString(),n=(e,r,i)=>{Object.entries(e).forEach(([e,a])=>{if(a===void 0)return;let o=`${r}[${e}]`;Array.isArray(a)?a.forEach(e=>i.append(`${o}[]`,t(e))):typeof a==`object`&&a?n(a,o,i):[`string`,`number`,`boolean`].includes(typeof a)&&i.set(o,t(a))})},r=e=>{if(!e||!e.query&&!e.mergeQuery)return``;let r=e.query??e.mergeQuery,i=e.mergeQuery!==void 0,a=new URLSearchParams(i&&typeof window<`u`?window.location.search:``);for(let e in r){let i=r[e];if(i==null){a.delete(e);continue}Array.isArray(i)?(a.has(`${e}[]`)&&a.delete(`${e}[]`),i.forEach(t=>{a.append(`${e}[]`,t.toString())})):typeof i==`object`?(a.forEach((t,n)=>{n.startsWith(`${e}[`)&&a.delete(n)}),n(i,e,a)):a.set(e,t(i))}let o=a.toString();return o.length>0?`?${o}`:``},i=t=>{let n={...t??{}},r=e();for(let e in r)n[e]===void 0&&r[e]!==void 0&&(n[e]=r[e]);return n},a=(e,t)=>{let n=t.filter(t=>{let n=e?.[t];return n==null||n===``||n===!1}),r=t.slice(n.length*-1);for(let e=0;e import {t} from '@craftcms/cp/utilities/translate.ts.mjs'; import type {VariantKey} from '@craftcms/cp/types/index.ts'; - import {computed} from 'vue'; + import {type Component, computed, type VNode} from 'vue'; - export interface ActionItem { + interface ActionItemHr { + type: 'hr'; + } + + interface ActionItemDisplay { + type: 'display'; + is: () => VNode | 'string' | Component; + } + + interface ActionItemButton { + type?: 'button'; label: string; variant?: VariantKey; icon?: string; onClick?: () => void; } + interface ActionItemLink { + type?: 'link'; + href: string; + label: string; + variant?: VariantKey; + } + + export type ActionItem = + | ActionItemDisplay + | ActionItemHr + | ActionItemButton + | ActionItemLink; + + export type ActionItems = Array; + const props = withDefaults( defineProps<{ icon?: string; @@ -22,52 +47,60 @@ } ); - const validActions = computed(() => - props.actions.filter((action) => action && Boolean(action.label)) - ); + const normalizedActions = computed((): ActionItems => { + return props.actions.map((action): ActionItem => { + if (action.type === 'hr' || action.type === 'display') { + return action; + } - const dangerousActions = computed(() => - validActions.value.filter( - (action) => action.variant && action.variant === 'danger' - ) - ); + return { + ...action, + type: + action.type ?? + (('href' in action ? 'link' : 'button') as 'link' | 'button'), + }; + }); + }); - const safeActions = computed(() => - validActions.value.filter( - (action) => !action.variant || action.variant !== 'danger' - ) - ); + const sortedActions = computed(() => { + return normalizedActions.value.sort((a, b) => { + const aDanger = 'variant' in a && a.variant === 'danger' ? 1 : 0; + const bDanger = 'variant' in b && b.variant === 'danger' ? 1 : 0; + return aDanger - bDanger; + }); + }); diff --git a/resources/js/components/CurrentUser.vue b/resources/js/components/CurrentUser.vue new file mode 100644 index 00000000000..a623b2ce5e1 --- /dev/null +++ b/resources/js/components/CurrentUser.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/resources/js/components/UserMenu.vue b/resources/js/components/UserMenu.vue new file mode 100644 index 00000000000..716d37b226f --- /dev/null +++ b/resources/js/components/UserMenu.vue @@ -0,0 +1,62 @@ + + + + + diff --git a/resources/js/components/UserThumbnail.vue b/resources/js/components/UserThumbnail.vue new file mode 100644 index 00000000000..eb4b792cf41 --- /dev/null +++ b/resources/js/components/UserThumbnail.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/resources/js/components/form/EntryTypeSelect.vue b/resources/js/components/form/EntryTypeSelect.vue index d55e9f6855b..853b93d9c62 100644 --- a/resources/js/components/form/EntryTypeSelect.vue +++ b/resources/js/components/form/EntryTypeSelect.vue @@ -78,12 +78,16 @@ label: t('Settings'), icon: 'gear', }, - ...[(readOnly ? null : { - label: t('Remove'), - variant: 'danger', - icon: 'x', - onClick: () => removeItem(type.id), - })], + ...[ + readOnly + ? null + : { + label: t('Remove'), + variant: 'danger', + icon: 'x', + onClick: () => removeItem(type.id), + }, + ], ]" /> @@ -94,7 +98,12 @@
- + {{ t('Choose') }} @@ -136,7 +145,11 @@
- + {{ t('Create') }} diff --git a/resources/js/components/sites/SiteFields.vue b/resources/js/components/sites/SiteFields.vue index 626a2bfef13..ab88bd1fb15 100644 --- a/resources/js/components/sites/SiteFields.vue +++ b/resources/js/components/sites/SiteFields.vue @@ -5,10 +5,10 @@ import {computed, useTemplateRef} from 'vue'; import type {SelectItem, SelectOption, Site} from '@/types'; import InputCombobox from '@/components/form/InputCombobox.vue'; + import CraftCombobox from '@/components/form/CraftCombobox.vue'; import {useInputGenerator} from '@/composables/useInputGenerator'; import {toHandle} from '@craftcms/cp/utilities/string.ts.mjs'; import useCraftData from '@/composables/useCraftData'; - import CraftCombobox from '@/components/form/CraftCombobox.vue'; const props = defineProps<{ inertiaForm: InertiaForm; diff --git a/resources/js/composables/useCraftData.ts b/resources/js/composables/useCraftData.ts index 8e93c1f08c2..27bf8f8a3af 100644 --- a/resources/js/composables/useCraftData.ts +++ b/resources/js/composables/useCraftData.ts @@ -15,10 +15,19 @@ export interface CraftData { }; site: { url: string; - } + }; readOnly: boolean; allowAdminChanges: boolean; - currentUser: any; + currentUser: { + username: string | null; + email: string | null; + id: number | null; + thumbHtml: string | null; + name: string | null; + }; + general: { + useEmailAsUsername: boolean; + }; nav: any[]; [key: string]: any; } diff --git a/resources/js/layout/AppLayout.vue b/resources/js/layout/AppLayout.vue index 4bdbe03e1f2..368891c3dc1 100644 --- a/resources/js/layout/AppLayout.vue +++ b/resources/js/layout/AppLayout.vue @@ -11,6 +11,7 @@ import {useAnnouncer} from '@/composables/useAnnouncer'; import LiveRegion from '@/components/LiveRegion.vue'; import {useFlashMessages} from '@/composables/useFlashMessages'; + import UserMenu from '@/components/UserMenu.vue'; const props = withDefaults( defineProps<{ @@ -22,7 +23,7 @@ {fullWidth: false} ); - const {system} = useCraftData(); + const {system, currentUser, general} = useCraftData(); const {messages} = useFlashMessages(); const page = usePage<{ @@ -141,9 +142,10 @@
- + +