@wix/events 1.0.898 → 1.0.899

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,5 @@ import*as e from"react";import{Component as t,Suspense as n,createContext as r,c
2
2
  Try polyfilling it using "@formatjs/intl-pluralrules"
3
3
  `,`MISSING_INTL_API`,o);let e=typeof l==`bigint`?Number(l):l,r=n.getPluralRules(t,{type:c.pluralType}).select(e-(c.offset||0));a=(Object.prototype.hasOwnProperty.call(c.options,r)?c.options[r]:void 0)||c.options.other}if(!a)throw new Ri(c.value,l,Object.keys(c.options),o);let u=typeof l==`bigint`?Number(l):l;s.push(...Ui(a.value,t,n,r,i,u-(c.offset||0)))}}}return Vi(s)}function Wi(e,t){return t?{...e,...t,...Object.keys(e).reduce((n,r)=>(n[r]={...e[r],...t[r]},n),{})}:e}function Gi(e,t){return t?Object.keys(e).reduce((n,r)=>(n[r]=Wi(e[r],t[r]),n),{...e}):e}function Ki(e){return{create(){return{get(t){return e[t]},set(t,n){e[t]=n}}}}}function qi(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:Ar((...e)=>new Intl.NumberFormat(...e),{cache:Ki(e.number),strategy:Vr.variadic}),getDateTimeFormat:Ar((...e)=>new Intl.DateTimeFormat(...e),{cache:Ki(e.dateTime),strategy:Vr.variadic}),getPluralRules:Ar((...e)=>new Intl.PluralRules(...e),{cache:Ki(e.pluralRules),strategy:Vr.variadic})}}var Ji=class e{constructor(t,n=e.defaultLocale,r,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{let t=this.formatToParts(e);if(t.length===1)return t[0].value;let n=t.reduce((e,t)=>(!e.length||t.type!==0||typeof e[e.length-1]!=`string`?e.push(t.value):e[e.length-1]+=t.value,e),[]);return n.length<=1?n[0]||``:n},this.formatToParts=e=>Ui(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t==`string`){if(this.message=t,!e.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...n}=i||{};this.ast=e.__parse(t,{...n,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw TypeError(`A message must be provided as a String or AST.`);this.formats=Gi(e.formats,r),this.formatters=i&&i.formatters||qi(this.formatterCache)}static{this.memoizedDefaultLocale=null}static get defaultLocale(){return e.memoizedDefaultLocale||=new Intl.NumberFormat().resolvedOptions().locale,e.memoizedDefaultLocale}static{this.resolveLocale=e=>{if(Intl.Locale===void 0)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e==`string`?e:e[0])}}static{this.__parse=Ii}static{this.formats={number:{integer:{maximumFractionDigits:0},currency:{style:`currency`},percent:{style:`percent`}},date:{short:{month:`numeric`,day:`numeric`,year:`2-digit`},medium:{month:`short`,day:`numeric`,year:`numeric`},long:{month:`long`,day:`numeric`,year:`numeric`},full:{weekday:`long`,month:`long`,day:`numeric`,year:`numeric`}},time:{short:{hour:`numeric`,minute:`numeric`},medium:{hour:`numeric`,minute:`numeric`,second:`numeric`},long:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`},full:{hour:`numeric`,minute:`numeric`,second:`numeric`,timeZoneName:`short`}}}}};function Yi(e,t){return ea(e)||$i(e,t)||Zi(e,t)||Xi()}function Xi(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zi(e,t){if(e){if(typeof e==`string`)return Qi(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}function Qi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $i(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ea(e){if(Array.isArray(e))return e}function ta(e){"@babel/helpers - typeof";return ta=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ta(e)}function na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ra(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?na(Object(n),!0).forEach(function(t){ia(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):na(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ia(e,t,n){return(t=ca(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aa(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ca(r.key),r)}}function sa(e,t,n){return t&&oa(e.prototype,t),n&&oa(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ca(e){var t=la(e,`string`);return ta(t)==`symbol`?t:t+``}function la(e,t){if(ta(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ta(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ua(){return{memoize:!0,memoizeFallback:!1,bindI18n:``,bindI18nStore:``,parseErrorHandler:function(e,t,n,r){return n},parseLngForICU:function(e){return e},escapeVariables:!1}}var da=function(){function e(t){aa(this,e),this.type=`i18nFormat`,this.mem={},this.init(null,t)}return sa(e,[{key:`init`,value:function(e,t){var n=this,r=e&&e.options&&e.options.i18nFormat||{};if(this.options=kr(r,t,this.options||{},ua()),this.formats=this.options.formats,e){var i=this.options,a=i.bindI18n,o=i.bindI18nStore,s=i.memoize;e.IntlMessageFormat=Ji,e.ICU=this,s&&(a&&e.on(a,function(){return n.clearCache()}),o&&e.store.on(o,function(){return n.clearCache()}))}}},{key:`addUserDefinedFormats`,value:function(e){this.formats=this.formats?ra(ra({},this.formats),e):e}},{key:`parse`,value:function(e,t,n,r,i,a){var o=a&&a.resolved&&a.resolved.res,s=this.options.memoize&&`${n}.${r}.${i.replace(/\./g,`###`)}`,c;this.options.memoize&&(c=Tr(this.mem,s));try{return c||(c=new Ji(e,this.options.parseLngForICU(n),this.formats,{ignoreTag:!0}),this.options.memoize&&(this.options.memoizeFallback||!a||o)&&wr(this.mem,s,c)),c.format(this.escapeVariableValues(t))}catch(n){return this.options.parseErrorHandler(n,i,e,t)}}},{key:`addLookupKeys`,value:function(e,t,n,r,i){return e}},{key:`clearCache`,value:function(){this.mem={}}},{key:`escapeVariableValues`,value:function(e){if(!this.options.escapeVariables||!e||ta(e)!==`object`)return e;for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=Yi(r[n],2),a=i[0],o=i[1];t[a]=typeof o==`string`?o.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`):o}return t}}]),e}();da.type=`i18nFormat`;function fa({icuOptions:e={},...t}){let{parseErrorHandler:n=void 0}=t;return xr(t,{icu:new da({parseErrorHandler:n,bindI18n:t.bindI18n,...e})})}var pa=r();function ma({i18n:e,defaultNS:t,children:n}){let r=c(()=>({i18n:e,defaultNS:t}),[e,t]);return i(pa.Provider,{value:r},n)}function ha(e){return e}var ga=ha(`@wix/site-service-url`),_a=e=>{if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:(e.status===`pending`||(e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t})),e)},va=`1522827f-c56c-a5c9-2ac9-00f9e6ae12d3`,ya=`membership_plan_picker_tpa`,ba=()=>!!d(ga).appSectionRelativeUrl(va,ya),xa=ha(`@wix/site-service-rendering-context`),Sa=ha(`@wix/site-service-warmup-data`),Ca=e=>{let{SSR:t}=d(xa),n=d(Sa);return c(()=>({SSR:t,get:async r=>{if(t||e)return null;try{return await n.get(r)}catch{return null}},set:(r,i)=>{if(t&&!e)try{n.set(r,i)}catch{}}}),[t,e,n])};function wa(e){let{host:t,pathname:n}=new URL(e);return{base:t,path:n}}function Ta(e){if(e)return[`http://`,`https://`].some(t=>e.base?.startsWith(t))?`${e.base}${e.path}`:`http://${e.base}${e.path}`}function Ea(e){return Object.keys(e).length===1&&`$and`in e&&Array.isArray(e.$and)}function Da(e){return Object.keys(e).length===1&&`$or`in e&&Array.isArray(e.$or)}function Oa(e){return Object.keys(e).length===1&&`$not`in e&&typeof e.$not==`object`}function ka(e,t){return e===void 0||Object.keys(e).length===0?t:t===void 0||Object.keys(t).length===0?e:{$and:[...Ea(e)?e.$and:[e],...Ea(t)?t.$and:[t]]}}function Aa(e,t){return e===void 0||Object.keys(e).length===0?t:t===void 0||Object.keys(t).length===0?e:{$or:[...Da(e)?e.$or:[e],...Da(t)?t.$or:[t]]}}function ja(e){if(e!==void 0&&Object.keys(e).length!==0)return Oa(e)?e.$not:{$not:e}}var Ma=class{_items;_fetchNextPage;_fetchPrevPage;_originQuery;_limit;constructor({items:e,originQuery:t,fetchNextPage:n,fetchPrevPage:r,limit:i}){this._items=e,this._fetchNextPage=n,this._fetchPrevPage=r,this._originQuery=t,this._limit=i}get items(){return this._items}get length(){return this._items.length}get pageSize(){return this._limit}get query(){return this._originQuery}async next(){if(!this.hasNext())throw Error(`No next page to fetch`);return await this._fetchNextPage()}async prev(){if(!this.hasPrev())throw Error(`No previous page to fetch`);return await this._fetchPrevPage()}},Na=class extends Ma{_nextCursor;_prevCursor;cursors;constructor({items:e,originQuery:t,fetchNextPage:n,fetchPrevPage:r,limit:i,nextCursor:a,prevCursor:o}){super({items:e,originQuery:t,fetchNextPage:n,fetchPrevPage:r,limit:i}),this._nextCursor=a,this._prevCursor=o,this.cursors={next:a,prev:o}}hasNext(){return!!this._nextCursor}hasPrev(){return!!this._prevCursor}},Pa=class extends Ma{_totalCount;_offset;_tooManyToCount;constructor({items:e,fetchNextPage:t,fetchPrevPage:n,offset:r,originQuery:i,limit:a,totalCount:o,tooManyToCount:s}){super({items:e,fetchNextPage:t,fetchPrevPage:n,originQuery:i,limit:a}),this._totalCount=o,this._offset=r,this._tooManyToCount=s}get currentPage(){return this._limit===0?void 0:Math.floor(this._offset/this._limit)}get totalPages(){return this._tooManyToCount||this._limit===0?void 0:Math.ceil(this._totalCount/this._limit)}get totalCount(){return this._tooManyToCount?void 0:this._totalCount}hasNext(){return this._limit!==0&&this.currentPage!==void 0&&this.totalPages!==void 0&&this.currentPage<this.totalPages-1}hasPrev(){return!!(this._limit!==0&&this.currentPage&&this.currentPage>0)}};function Fa(e){let t=n=>({query:n,async find(){try{let r=e.requestTransformer(e.pagingMethod===`CURSOR`&&n.cursorPaging.cursor?{cursorPaging:n.cursorPaging}:n),i=await e.func(r),{[Me]:a,[Ne]:o}=e.responseTransformer(i);if(e.pagingMethod===`OFFSET`){let e=n;return new Pa({items:a??[],fetchNextPage:()=>t({...e,paging:{offset:e.paging.offset+e.paging.limit,limit:e.paging.limit}}).find(),fetchPrevPage:()=>t({...n,paging:{offset:Math.max(e.paging.offset-e.paging.limit,0),limit:e.paging.limit}}).find(),offset:e.paging.offset,limit:e.paging.limit,totalCount:o?.total,tooManyToCount:o?.tooManyToCount,originQuery:this})}let s=n.cursorPaging;return new Na({items:a??[],limit:s.limit,originQuery:this,fetchNextPage:()=>t({...n,cursorPaging:{cursor:o?.cursors?.next??void 0,limit:s.limit}}).find(),fetchPrevPage:()=>t({...n,cursorPaging:{cursor:o?.cursors?.prev??void 0,limit:s.limit}}).find(),prevCursor:o?.cursors?.prev??void 0,nextCursor:o?.cursors?.next??void 0})}catch(t){throw e.errorTransformer(t)}},skipTo(e){return t({...n,cursorPaging:{cursor:e,limit:n.cursorPaging.limit}})},eq(r,i){let a=i===void 0?null:i,o={[Ia(e.transformationPaths,r)]:a};return t({...n,filter:ka(n.filter,o)})},ne(r,i){let a=i===void 0?null:i,o={[Ia(e.transformationPaths,r)]:{$ne:a}};return t({...n,filter:ka(n.filter,o)})},ge(r,i){let a={[Ia(e.transformationPaths,r)]:{$gte:i}};return t({...n,filter:ka(n.filter,a)})},gt(r,i){let a={[Ia(e.transformationPaths,r)]:{$gt:i}};return t({...n,filter:ka(n.filter,a)})},le(r,i){let a={[Ia(e.transformationPaths,r)]:{$lte:i}};return t({...n,filter:ka(n.filter,a)})},lt(r,i){let a={[Ia(e.transformationPaths,r)]:{$lt:i}};return t({...n,filter:ka(n.filter,a)})},isNotEmpty(e){return this.ne(e,null)},isEmpty(e){return this.eq(e,null)},startsWith(r,i){let a={[Ia(e.transformationPaths,r)]:{$startsWith:i}};return t({...n,filter:ka(n.filter,a)})},endsWith(r,i){let a={[Ia(e.transformationPaths,r)]:{$endsWith:i}};return t({...n,filter:ka(n.filter,a)})},contains(r,i){let a={[Ia(e.transformationPaths,r)]:{$contains:i}};return t({...n,filter:ka(n.filter,a)})},hasSome(r,...i){let a={[Ia(e.transformationPaths,r)]:{$hasSome:Array.isArray(i[0])?i[0]:i}};return t({...n,filter:ka(n.filter,a)})},hasAll(r,...i){let a={[Ia(e.transformationPaths,r)]:{$hasAll:Array.isArray(i[0])?i[0]:i}};return t({...n,filter:ka(n.filter,a)})},between(e,t,n){return this.ge(e,t).lt(e,n)},in(r,i){let a={[Ia(e.transformationPaths,r)]:{$in:i}};return t({...n,filter:ka(n.filter,a)})},exists(r,i=!0){let a={[Ia(e.transformationPaths,r)]:{$exists:i}};return t({...n,filter:ka(n.filter,a)})},or(e){return t({...n,filter:Aa(n.filter,e.query.filter)})},and(e){return t({...n,filter:ka(n.filter,e.query.filter)})},not(e){return t({...n,filter:ja(e.query.filter)})},ascending(...r){return t({...n,sort:[...n.sort??[],...r.map(t=>({fieldName:Ia(e.transformationPaths,t),order:`ASC`}))]})},descending(...r){return t({...n,sort:[...n.sort??[],...r.map(t=>({fieldName:Ia(e.transformationPaths,t),order:`DESC`}))]})},skip(e){return t({...n,paging:{offset:e,limit:`limit`in n.paging?n.paging.limit:50}})},limit(r){if(e.pagingMethod===`CURSOR`){let e=n;return t({...n,cursorPaging:{limit:r,cursor:`cursor`in e.cursorPaging?e.cursorPaging.cursor:void 0}})}let i=n;return t({...n,paging:{limit:r,offset:`offset`in i.paging?i.paging.offset:0}})}});return t({filter:{},...e.pagingMethod===`OFFSET`?{paging:{offset:0,limit:50}}:{cursorPaging:{limit:50}}})}function Ia(e,t){let n=Object.entries(e).find(([e])=>e===t||t.startsWith(`${e}.`))?.[0];return n?t.replace(n,e[n]):Fe(t,{...e,...Pe})}function La(e,t,n={}){let r=(r,i)=>La(e,t,{...n,[r]:i}),i=()=>Object.keys(n).length===0?{}:{[Ie(e,t)]:n};return{get filter(){return i()},eq:e=>r(`$eq`,e),ne:e=>r(`$ne`,e),gt:e=>r(`$gt`,e),gte:e=>r(`$gte`,e),lt:e=>r(`$lt`,e),lte:e=>r(`$lte`,e),startsWith:e=>r(`$startsWith`,e),endsWith:e=>r(`$endsWith`,e),contains:e=>r(`$contains`,e),in:e=>r(`$in`,e),nin:e=>r(`$nin`,e),hasSome:e=>r(`$hasSome`,e),hasAll:e=>r(`$hasAll`,e),exists:(e=!0)=>r(`$exists`,e),isEmpty:(e=!0)=>r(`$isEmpty`,e),isNotEmpty:()=>r(`$ne`,null)}}function Ra(e){return Object.assign(t=>La(t,e),{and:(...e)=>({filter:{$and:e.map(e=>e.filter)}}),or:(...e)=>({filter:{$or:e.map(e=>e.filter)}}),not:e=>({filter:{$not:e.filter}})})}function za(e){return(t=>({asc:()=>({sort:{fieldName:Ie(t,e),order:`ASC`}}),desc:()=>({sort:{fieldName:Ie(t,e),order:`DESC`}})}))}function Ba(e){return()=>{let t={},n={withFilter(e){return t={...t,filter:e.filter},n},withFields(...r){return t={...t,fields:r.map(t=>Ie(t,e))},n},withSorting(...e){return t={...t,sort:e.map(e=>e.sort)},n},withPaging(e){return t={...t,paging:e},n},build(){return t}};return n}}function Va(e){return{QueryBuilder:Ba(e),Filter:Ra(e),Sort:za(e)}}var Ha=`filter`,Ua=`sort`,Wa=`cursorPaging`,Ga=`paging`,Ka=[Ha,Ua,Wa],qa=[Ha,Ua,Ga];function Ja(e,t){return!e||typeof e!=`object`?!1:t.some(t=>e.hasOwnProperty(t))}function Ya(e){return Ja(e,Ka)}function Xa(e){return Ja(e,qa)}function Za(e){let{hasOptionsParameter:t}=e;return function(...n){return t?$a(n,e):Qa(n,e)}}function Qa(e,t){return e.length===0?t.builderQueryFunction():t.typedQueryFunction(e[0])}function $a(e,t){switch(e.length){case 0:return t.builderQueryFunction();case 1:return Ya(e[0])||Xa(e[0])?t.typedQueryFunction(e[0]):t.builderQueryFunction(e[0]);default:return t.typedQueryFunction(e[0],e[1])}}var eo=[{path:`categories.createdDate`}];function to(e){return kt(Object.assign(e,{domainToMappings:{"events._base_domain_":[{srcPath:``,destPath:``},{srcPath:`/_api/wix-events-web`,destPath:`/api`}],"www.wixevents.com":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/api`,destPath:`/api`},{srcPath:`/viewEvent`,destPath:`/viewEvent`},{srcPath:`/viewRsvpDashboard`,destPath:`/viewRsvpDashboard`},{srcPath:`/viewOrderDashboard`,destPath:`/viewOrderDashboard`},{srcPath:`/viewSummarySubscription`,destPath:`/viewSummarySubscription`},{srcPath:`/v2`,destPath:`/v2`},{srcPath:`/export`,destPath:`/export`},{srcPath:`/tickets`,destPath:`/tickets`},{srcPath:`/payment-redirect`,destPath:`/payment-redirect`},{srcPath:`/admin`,destPath:`/admin`},{srcPath:`/ticket`,destPath:`/ticket`},{srcPath:`/media`,destPath:`/media`},{srcPath:`/wix-events-web/media`,destPath:`/media`}],"api._api_base_domain_":[{srcPath:`/wix-events-web`,destPath:``}],"events.wixapps.net":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/events`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/_api/wix-events-web/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`}],"apps._base_domain_":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/events`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/wix-events-web`,destPath:`/api`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v2/events`,destPath:`/v2/events`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/events`,destPath:`/v1/bulk/events`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/events`,destPath:`/v1/events`},{srcPath:`/events/v1/categories`,destPath:`/v1/categories`},{srcPath:`/events/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/events/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`},{srcPath:`/events/v1/reports`,destPath:`/v1/reports`},{srcPath:`/events/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/web`,destPath:`/v1/web`},{srcPath:`/events/v2/tickets`,destPath:`/v2/tickets`},{srcPath:`/events/v2/events`,destPath:`/v2/events`}],"www.wixapis.com":[{srcPath:`/events/v1/events`,destPath:`/v1/events`},{srcPath:`/events/v1/categories`,destPath:`/v1/categories`},{srcPath:`/events/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/events/v2/events`,destPath:`/v2/events`},{srcPath:`/events/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`}],"api._base_domain_":[{srcPath:`/events/v2`,destPath:`/v2`},{srcPath:`/events/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/events/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/events/v1/categories`,destPath:`/v1/categories`},{srcPath:`/events/v1/events`,destPath:`/v1/events`},{srcPath:`/events/v1/orders`,destPath:`/v1/orders`}],_:[{srcPath:`/_api/wix-events-web/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`}],"editor.wixapps.net":[{srcPath:`/events/v2/events`,destPath:`/v2/events`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"*.dev.wix-code.com":[{srcPath:`/_api/wix-events-web/v2`,destPath:`/v2`},{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`},{srcPath:`/events/v1/bulk/events`,destPath:`/v1/bulk/events`}],"*.pub.wix-code.com":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"editor-flow.wixapps.net":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"editor._base_domain_":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"blocks._base_domain_":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}],"create.editorx":[{srcPath:`/_api/wix-events-web/v1/bulk-async/categories`,destPath:`/v1/bulk-async/categories`},{srcPath:`/_api/wix-events-web/v1/bulk/categories`,destPath:`/v1/bulk/categories`},{srcPath:`/_api/wix-events-web/v1/categories`,destPath:`/v1/categories`},{srcPath:`/_api/wix-events-web/v1/events`,destPath:`/v1/events`},{srcPath:`/_api/wix-events-web/v1/orders`,destPath:`/v1/orders`}]}}))}var no=`@wix/auto_sdk_events_categories`;function ro(e){function t({host:t}){return{entityFqdn:`wix.events.v1.category`,method:`POST`,methodFqn:`wix.events.categories.CategoryManagement.QueryCategories`,packageName:no,migrationOptions:{optInTransformResponse:!0},url:to({protoPath:`/v1/categories/query`,data:e,host:t}),data:e,transformResponse:e=>rt(e,[{transformFn:We,paths:eo}])}}return t}function io(e){let{httpClient:t,sideEffects:n}=arguments[1];return Fa({func:async r=>{let i=ro({...r,...e??{}});n?.onSiteCall?.();try{let e=await t.request(i);return n?.onSuccess?.(e),e}catch(e){throw n?.onError?.(e),e}},requestTransformer:t=>{let n=[t,e];return Ve({...n?.[1],query:n?.[0]})},responseTransformer:({data:e})=>{let t=He(rt(e,[]));return{items:t?.categories,pagingMetadata:t?.metaData}},errorTransformer:e=>{throw ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1})},pagingMethod:`OFFSET`,transformationPaths:{}})}async function ao(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=ro(Ve({query:e,...t}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(e.data)}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1},[`query`,`options`]);throw r?.onError?.(e),t}}function oo(e){return t=>io(t,{httpClient:e})}function so(e){return(t,n)=>ao(t,n,{httpClient:e})}function co(e){let t=Za({builderQueryFunction:t=>oo(e)(t),typedQueryFunction:(t,n)=>so(e)(t,n),hasOptionsParameter:!0});function n(e,n){return t(...arguments)}return n}var lo=Dt(co);function uo(e){if(!e)return;let t=it(e,`image`),{protocol:n,hash:r,pathname:i}=new URL(t),a=new URLSearchParams(r.replace(`#`,``)),o=a.get(`originHeight`),s=a.get(`originWidth`),[c,l]=i.replace(`image://v1/`,``).split(`/`),u=decodeURIComponent(l);if(n===`wix:`){let t={id:c,height:Number(o),width:Number(s)};return u?{...t,altText:u,filename:u,url:e}:t}return{url:e}}function fo(e){if(!e)return;let t=``;return(e.filename||e.altText)&&(t=`/${encodeURIComponent(e.filename||e.altText)}`),e.id?`wix:image://v1/${e.id}${t}#originWidth=${e.width}&originHeight=${e.height}`:e.url}var po=_({ActorType:()=>$o,Alignment:()=>Vs,AnimationType:()=>ls,AppType:()=>Us,AspectRatio:()=>Ls,BackdropType:()=>tc,BackgroundType:()=>rs,BadgeTypeType:()=>fc,BannerPosition:()=>Qs,ButtonDataType:()=>ss,CardDataBackgroundType:()=>sc,CardStylesType:()=>Bs,CheckoutType:()=>Jo,ColorDataBackgroundType:()=>Ps,ColumnSize:()=>dc,CommonSortOrder:()=>gc,ConferenceTypeType:()=>es,Crop:()=>Ss,DecorationType:()=>Ns,DesignTarget:()=>ic,Direction:()=>Gs,DividerDataAlignment:()=>vs,EntranceEffectType:()=>us,FontType:()=>ms,GIFType:()=>ws,GradientType:()=>is,GuestTypeType:()=>Yo,ImagePosition:()=>Ys,ImagePositionPosition:()=>oc,ImageScalingScaling:()=>Js,Indentation:()=>lc,InitialExpandedItems:()=>Ws,InitialRegistrationTypeType:()=>Xo,InputControlType:()=>Zo,LayerEffect:()=>$s,Layout:()=>Hs,LayoutDataBackgroundType:()=>Xs,LayoutType:()=>bs,LineCap:()=>hs,LineStyle:()=>gs,ListStyle:()=>cc,LocationType:()=>Bo,LoopEffectType:()=>ds,MapType:()=>Ds,NodeType:()=>ns,NullValue:()=>qs,Orientation:()=>xs,Origin:()=>Zs,Placement:()=>zs,PluginContainerDataAlignment:()=>os,PointerEffectType:()=>fs,PollDesignBackgroundType:()=>Ms,PollLayoutDirection:()=>js,PollLayoutType:()=>As,Position:()=>Is,PublishStatus:()=>hc,RecurrenceStatusStatus:()=>Ho,RegistrationStatusStatus:()=>Go,RegistrationTypeType:()=>Wo,Relation:()=>vc,RequestedFields:()=>pc,Resizing:()=>Rs,ResponseType:()=>Ko,ResponsivenessBehaviour:()=>rc,Scaling:()=>ac,Shape:()=>ec,SmartBlockDataType:()=>uc,SortOrder:()=>_c,Source:()=>Ts,Status:()=>Uo,StylesPosition:()=>Es,SubdivisionType:()=>Vo,Target:()=>cs,TaxType:()=>qo,TextAlignment:()=>ps,ThumbnailsAlignment:()=>Cs,Type:()=>ts,UpdaterIdentity:()=>mc,ValueType:()=>Qo,Variant:()=>Fs,VerticalAlignment:()=>Ks,VerticalAlignmentAlignment:()=>nc,ViewMode:()=>ys,ViewRole:()=>Os,VoteRole:()=>ks,WebhookIdentityType:()=>yc,Width:()=>_s,WidthType:()=>as,bulkCancelEventsByFilter:()=>Tl,bulkDeleteEventsByFilter:()=>Dl,cancelEvent:()=>wl,cloneEvent:()=>xl,countEventsByStatus:()=>Ol,createEvent:()=>bl,deleteEvent:()=>El,getEvent:()=>Al,getEventBySlug:()=>jl,listEventsByCategory:()=>kl,onEventCanceled:()=>Nl,onEventCloned:()=>Pl,onEventCreated:()=>Fl,onEventDeleted:()=>Il,onEventEnded:()=>Ll,onEventPublished:()=>Rl,onEventReminder:()=>zl,onEventStarted:()=>Bl,onEventUpdated:()=>Vl,publishDraftEvent:()=>Cl,queryEvents:()=>Ml,updateEvent:()=>Sl,utils:()=>Ac}),mo=[{path:`event.createdDate`},{path:`event.updatedDate`},{path:`event.publishedDate`},{path:`event.dateAndTimeSettings.startDate`},{path:`event.dateAndTimeSettings.endDate`},{path:`event.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`event.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`event.mainImage.urlExpirationDate`},{path:`event.registration.rsvp.startDate`},{path:`event.registration.rsvp.endDate`},{path:`event.summaries.cancellation.canceledDate`},{path:`event.categories.categories.createdDate`},{path:`event.description.metadata.createdTimestamp`},{path:`event.description.metadata.updatedTimestamp`},{path:`event.badges.badges.functionUpdateDate`}],ho=[{path:`event.location.address.geocode.latitude`},{path:`event.location.address.geocode.longitude`},{path:`event.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`event.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`event.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`event.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`event.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`event.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`event.description.nodes.galleryData.items.image.media.duration`},{path:`event.description.nodes.galleryData.items.video.media.duration`},{path:`event.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`event.description.nodes.galleryData.options.item.ratio`},{path:`event.description.nodes.imageData.image.duration`},{path:`event.description.nodes.imageData.crop.x`},{path:`event.description.nodes.imageData.crop.y`},{path:`event.description.nodes.imageData.crop.width`},{path:`event.description.nodes.imageData.crop.height`},{path:`event.description.nodes.mapData.mapSettings.lat`},{path:`event.description.nodes.mapData.mapSettings.lng`},{path:`event.description.nodes.pollData.poll.image.duration`},{path:`event.description.nodes.pollData.poll.options.image.duration`},{path:`event.description.nodes.pollData.design.poll.background.image.duration`},{path:`event.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.nodes.appEmbedData.image.duration`},{path:`event.description.nodes.videoData.video.duration`},{path:`event.description.nodes.videoData.thumbnail.duration`},{path:`event.description.nodes.audioData.audio.duration`},{path:`event.description.nodes.audioData.coverImage.duration`},{path:`event.description.nodes.layoutData.backgroundImage.media.duration`},{path:`event.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`event.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`event.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`event.description.nodes.layoutData.backdropImage.media.duration`},{path:`event.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`event.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`event.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`event.description.nodes.layoutData.background.gradient.centerX`},{path:`event.description.nodes.layoutData.background.gradient.centerY`},{path:`event.description.nodes.layoutData.background.gradient.stops.position`},{path:`event.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`event.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`event.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`event.description.nodes.shapeData.shape.duration`},{path:`event.description.nodes.cardData.background.gradient.centerX`},{path:`event.description.nodes.cardData.background.gradient.centerY`},{path:`event.description.nodes.cardData.background.gradient.stops.position`},{path:`event.description.nodes.cardData.backgroundImage.media.duration`},{path:`event.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`event.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`event.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`event.description.nodes.tocData.fontSize`},{path:`event.description.nodes.tocData.itemSpacing`},{path:`event.description.nodes.smartBlockCellData.shape.duration`},{path:`event.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`event.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}],go=[{path:`fieldmask`}],_o=[{path:`events.createdDate`},{path:`events.updatedDate`},{path:`events.publishedDate`},{path:`events.dateAndTimeSettings.startDate`},{path:`events.dateAndTimeSettings.endDate`},{path:`events.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`events.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`events.mainImage.urlExpirationDate`},{path:`events.registration.rsvp.startDate`},{path:`events.registration.rsvp.endDate`},{path:`events.summaries.cancellation.canceledDate`},{path:`events.categories.categories.createdDate`},{path:`events.description.metadata.createdTimestamp`},{path:`events.description.metadata.updatedTimestamp`},{path:`events.badges.badges.functionUpdateDate`}],vo=[{path:`events.location.address.geocode.latitude`},{path:`events.location.address.geocode.longitude`},{path:`events.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`events.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`events.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`events.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`events.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`events.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`events.description.nodes.galleryData.items.image.media.duration`},{path:`events.description.nodes.galleryData.items.video.media.duration`},{path:`events.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`events.description.nodes.galleryData.options.item.ratio`},{path:`events.description.nodes.imageData.image.duration`},{path:`events.description.nodes.imageData.crop.x`},{path:`events.description.nodes.imageData.crop.y`},{path:`events.description.nodes.imageData.crop.width`},{path:`events.description.nodes.imageData.crop.height`},{path:`events.description.nodes.mapData.mapSettings.lat`},{path:`events.description.nodes.mapData.mapSettings.lng`},{path:`events.description.nodes.pollData.poll.image.duration`},{path:`events.description.nodes.pollData.poll.options.image.duration`},{path:`events.description.nodes.pollData.design.poll.background.image.duration`},{path:`events.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.nodes.appEmbedData.image.duration`},{path:`events.description.nodes.videoData.video.duration`},{path:`events.description.nodes.videoData.thumbnail.duration`},{path:`events.description.nodes.audioData.audio.duration`},{path:`events.description.nodes.audioData.coverImage.duration`},{path:`events.description.nodes.layoutData.backgroundImage.media.duration`},{path:`events.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`events.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`events.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`events.description.nodes.layoutData.backdropImage.media.duration`},{path:`events.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`events.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`events.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`events.description.nodes.layoutData.background.gradient.centerX`},{path:`events.description.nodes.layoutData.background.gradient.centerY`},{path:`events.description.nodes.layoutData.background.gradient.stops.position`},{path:`events.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`events.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`events.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`events.description.nodes.shapeData.shape.duration`},{path:`events.description.nodes.cardData.background.gradient.centerX`},{path:`events.description.nodes.cardData.background.gradient.centerY`},{path:`events.description.nodes.cardData.background.gradient.stops.position`},{path:`events.description.nodes.cardData.backgroundImage.media.duration`},{path:`events.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`events.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`events.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`events.description.nodes.tocData.fontSize`},{path:`events.description.nodes.tocData.itemSpacing`},{path:`events.description.nodes.smartBlockCellData.shape.duration`},{path:`events.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`events.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}];function yo(e){return kt(Object.assign(e,{domainToMappings:{"www.wixapis.com":[{srcPath:`/events/v3/events`,destPath:`/v3/events`},{srcPath:`/events/v3/bulk/events`,destPath:`/v3/bulk/events`}],"api._api_base_domain_":[{srcPath:`/events-events-v3-adapter`,destPath:``}],"manage._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"editor._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"blocks._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"create.editorx":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"*.dev.wix-code.com":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],_:[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/events-events-v3-adapter`,destPath:``}]}}))}var bo=`@wix/auto_sdk_events_wix-events-v-2`;function xo(e){function t({host:t}){let n=rt(e,[{transformFn:Ue,paths:mo},{transformFn:nn,paths:ho}]);return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CreateEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events`,data:n,host:t}),data:n,transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}function So(e){function t({host:t}){let n=rt(e,[{transformFn:sn,paths:go},{transformFn:Ue,paths:mo},{transformFn:nn,paths:ho}]);return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CloneEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/{eventId}/clone`,data:n,host:t}),data:n,transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}function Co(e){function t({host:t}){let n=rt(e,[{transformFn:sn,paths:go},{transformFn:Ue,paths:mo},{transformFn:nn,paths:ho}]);return{entityFqdn:`wix.events.v3.event`,method:`PATCH`,methodFqn:`wix.events.events.v3.EventManagement.UpdateEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/{event.id}`,data:n,host:t}),data:n,transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}function wo(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.PublishDraftEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/{eventId}/publish`,data:e,host:t}),data:e,transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}function To(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CancelEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/{eventId}/cancel`,data:e,host:t}),data:e,transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}function Eo(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.BulkCancelEventsByFilter`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/bulk/events/cancel-by-filter`,data:e,host:t}),data:e}}return t}function Do(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`DELETE`,methodFqn:`wix.events.events.v3.EventManagement.DeleteEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/{eventId}`,data:e,host:t}),params:Ot(e)}}return t}function Oo(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.BulkDeleteEventsByFilter`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/bulk/events/delete-by-filter`,data:e,host:t}),data:e}}return t}function ko(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.QueryEvents`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/query`,data:e,host:t}),data:e,transformResponse:e=>rt(e,[{transformFn:We,paths:_o},{transformFn:rn,paths:vo}])}}return t}function Ao(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`POST`,methodFqn:`wix.events.events.v3.EventManagement.CountEventsByStatus`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/count-by-status`,data:e,host:t}),data:e}}return t}function jo(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`GET`,methodFqn:`wix.events.events.v3.EventManagement.ListEventsByCategory`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/category/{categoryId}`,data:e,host:t}),params:Ot(e),transformResponse:e=>rt(e,[{transformFn:We,paths:_o},{transformFn:rn,paths:vo}])}}return t}function Mo(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`GET`,methodFqn:`wix.events.events.v3.EventManagement.GetEvent`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/{eventId}`,data:e,host:t}),params:Ot(e),transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}function No(e){function t({host:t}){return{entityFqdn:`wix.events.v3.event`,method:`GET`,methodFqn:`wix.events.events.v3.EventManagement.GetEventBySlug`,packageName:bo,migrationOptions:{optInTransformResponse:!0},url:yo({protoPath:`/v3/events/slug/{slug}`,data:e,host:t}),params:Ot(e),transformResponse:e=>rt(e,[{transformFn:We,paths:mo},{transformFn:rn,paths:ho}])}}return t}var Po=[{path:`event.mainImage`}],Fo=[{path:`event.eventPageUrl`},{path:`event.agendaSettings.pageUrl`}],Io=[{path:`event.location.address`}],Lo=[{path:`events.mainImage`}],Ro=[{path:`events.eventPageUrl`},{path:`events.agendaSettings.pageUrl`}],zo=[{path:`events.location.address`}],Bo=(e=>(e.VENUE=`VENUE`,e.ONLINE=`ONLINE`,e))(Bo||{}),Vo=(e=>(e.UNKNOWN_SUBDIVISION_TYPE=`UNKNOWN_SUBDIVISION_TYPE`,e.ADMINISTRATIVE_AREA_LEVEL_1=`ADMINISTRATIVE_AREA_LEVEL_1`,e.ADMINISTRATIVE_AREA_LEVEL_2=`ADMINISTRATIVE_AREA_LEVEL_2`,e.ADMINISTRATIVE_AREA_LEVEL_3=`ADMINISTRATIVE_AREA_LEVEL_3`,e.ADMINISTRATIVE_AREA_LEVEL_4=`ADMINISTRATIVE_AREA_LEVEL_4`,e.ADMINISTRATIVE_AREA_LEVEL_5=`ADMINISTRATIVE_AREA_LEVEL_5`,e.COUNTRY=`COUNTRY`,e))(Vo||{}),Ho=(e=>(e.ONE_TIME=`ONE_TIME`,e.RECURRING=`RECURRING`,e.RECURRING_UPCOMING=`RECURRING_UPCOMING`,e.RECURRING_RECENTLY_ENDED=`RECURRING_RECENTLY_ENDED`,e.RECURRING_RECENTLY_CANCELED=`RECURRING_RECENTLY_CANCELED`,e))(Ho||{}),Uo=(e=>(e.UPCOMING=`UPCOMING`,e.STARTED=`STARTED`,e.ENDED=`ENDED`,e.CANCELED=`CANCELED`,e.DRAFT=`DRAFT`,e))(Uo||{}),Wo=(e=>(e.RSVP=`RSVP`,e.TICKETING=`TICKETING`,e.EXTERNAL=`EXTERNAL`,e.NONE=`NONE`,e.RSVP_AND_TICKETING=`RSVP_AND_TICKETING`,e))(Wo||{}),Go=(e=>(e.UNKNOWN_REGISTRATION_STATUS=`UNKNOWN_REGISTRATION_STATUS`,e.CLOSED_AUTOMATICALLY=`CLOSED_AUTOMATICALLY`,e.CLOSED_MANUALLY=`CLOSED_MANUALLY`,e.OPEN_RSVP=`OPEN_RSVP`,e.OPEN_RSVP_WAITLIST_ONLY=`OPEN_RSVP_WAITLIST_ONLY`,e.OPEN_TICKETS=`OPEN_TICKETS`,e.OPEN_EXTERNAL=`OPEN_EXTERNAL`,e.SCHEDULED_RSVP=`SCHEDULED_RSVP`,e.OPEN_RSVP_AND_TICKETS=`OPEN_RSVP_AND_TICKETS`,e))(Go||{}),Ko=(e=>(e.YES_ONLY=`YES_ONLY`,e.YES_AND_NO=`YES_AND_NO`,e))(Ko||{}),qo=(e=>(e.INCLUDED_IN_PRICE=`INCLUDED_IN_PRICE`,e.ADDED_AT_CHECKOUT=`ADDED_AT_CHECKOUT`,e))(qo||{}),Jo=(e=>(e.EVENTS_APP=`EVENTS_APP`,e.ECOMM_PLATFORM=`ECOMM_PLATFORM`,e))(Jo||{}),Yo=(e=>(e.VISITOR_OR_MEMBER=`VISITOR_OR_MEMBER`,e.MEMBER=`MEMBER`,e))(Yo||{}),Xo=(e=>(e.RSVP=`RSVP`,e.TICKETING=`TICKETING`,e.RSVP_AND_TICKETING=`RSVP_AND_TICKETING`,e))(Xo||{}),Zo=(e=>(e.INPUT=`INPUT`,e.TEXTAREA=`TEXTAREA`,e.DROPDOWN=`DROPDOWN`,e.RADIO=`RADIO`,e.CHECKBOX=`CHECKBOX`,e.NAME=`NAME`,e.GUEST_CONTROL=`GUEST_CONTROL`,e.ADDRESS_SHORT=`ADDRESS_SHORT`,e.ADDRESS_FULL=`ADDRESS_FULL`,e.DATE=`DATE`,e))(Zo||{}),Qo=(e=>(e.TEXT=`TEXT`,e.NUMBER=`NUMBER`,e.TEXT_ARRAY=`TEXT_ARRAY`,e.DATE_TIME=`DATE_TIME`,e.ADDRESS=`ADDRESS`,e))(Qo||{}),$o=(e=>(e.USER=`USER`,e.APP=`APP`,e.SYSTEM=`SYSTEM`,e))($o||{}),es=(e=>(e.MEETING=`MEETING`,e.WEBINAR=`WEBINAR`,e))(es||{}),ts=(e=>(e.MANUAL=`MANUAL`,e.RECURRING_EVENT=`RECURRING_EVENT`,e.COMPONENT=`COMPONENT`,e))(ts||{}),ns=(e=>(e.PARAGRAPH=`PARAGRAPH`,e.TEXT=`TEXT`,e.HEADING=`HEADING`,e.BULLETED_LIST=`BULLETED_LIST`,e.ORDERED_LIST=`ORDERED_LIST`,e.LIST_ITEM=`LIST_ITEM`,e.BLOCKQUOTE=`BLOCKQUOTE`,e.CODE_BLOCK=`CODE_BLOCK`,e.VIDEO=`VIDEO`,e.DIVIDER=`DIVIDER`,e.FILE=`FILE`,e.GALLERY=`GALLERY`,e.GIF=`GIF`,e.HTML=`HTML`,e.IMAGE=`IMAGE`,e.LINK_PREVIEW=`LINK_PREVIEW`,e.MAP=`MAP`,e.POLL=`POLL`,e.APP_EMBED=`APP_EMBED`,e.BUTTON=`BUTTON`,e.COLLAPSIBLE_LIST=`COLLAPSIBLE_LIST`,e.TABLE=`TABLE`,e.EMBED=`EMBED`,e.COLLAPSIBLE_ITEM=`COLLAPSIBLE_ITEM`,e.COLLAPSIBLE_ITEM_TITLE=`COLLAPSIBLE_ITEM_TITLE`,e.COLLAPSIBLE_ITEM_BODY=`COLLAPSIBLE_ITEM_BODY`,e.TABLE_CELL=`TABLE_CELL`,e.TABLE_ROW=`TABLE_ROW`,e.EXTERNAL=`EXTERNAL`,e.AUDIO=`AUDIO`,e.CAPTION=`CAPTION`,e.LAYOUT=`LAYOUT`,e.LAYOUT_CELL=`LAYOUT_CELL`,e.SHAPE=`SHAPE`,e.CARD=`CARD`,e.TOC=`TOC`,e.SMART_BLOCK=`SMART_BLOCK`,e.SMART_BLOCK_CELL=`SMART_BLOCK_CELL`,e.CHECKBOX_LIST=`CHECKBOX_LIST`,e.SLOT=`SLOT`,e))(ns||{}),rs=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(rs||{}),is=(e=>(e.LINEAR=`LINEAR`,e.RADIAL=`RADIAL`,e))(is||{}),as=(e=>(e.CONTENT=`CONTENT`,e.SMALL=`SMALL`,e.ORIGINAL=`ORIGINAL`,e.FULL_WIDTH=`FULL_WIDTH`,e))(as||{}),os=(e=>(e.CENTER=`CENTER`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e))(os||{}),ss=(e=>(e.LINK=`LINK`,e.ACTION=`ACTION`,e))(ss||{}),cs=(e=>(e.SELF=`SELF`,e.BLANK=`BLANK`,e.PARENT=`PARENT`,e.TOP=`TOP`,e))(cs||{}),ls=(e=>(e.VIEW=`VIEW`,e.POINTER=`POINTER`,e))(ls||{}),us=(e=>(e.FADE=`FADE`,e.ARC=`ARC`,e.BLUR=`BLUR`,e.BOUNCE=`BOUNCE`,e.DROP=`DROP`,e.EXPAND=`EXPAND`,e.FLIP=`FLIP`,e.FLOAT=`FLOAT`,e.FOLD=`FOLD`,e.GLIDE=`GLIDE`,e.REVEAL=`REVEAL`,e.SHAPE=`SHAPE`,e.SHUTTERS=`SHUTTERS`,e.SLIDE=`SLIDE`,e.SPIN=`SPIN`,e.TILT=`TILT`,e.TURN=`TURN`,e.WINK=`WINK`,e))(us||{}),ds=(e=>(e.BOUNCE=`BOUNCE`,e.BREATHE=`BREATHE`,e.CROSS=`CROSS`,e.FLASH=`FLASH`,e.FLIP=`FLIP`,e.FOLD=`FOLD`,e.JELLO=`JELLO`,e.POKE=`POKE`,e.PULSE=`PULSE`,e.RUBBER=`RUBBER`,e.SPIN=`SPIN`,e.SWING=`SWING`,e.WIGGLE=`WIGGLE`,e))(ds||{}),fs=(e=>(e.AIRY=`AIRY`,e.BLOB=`BLOB`,e.BLUR=`BLUR`,e.SCALE=`SCALE`,e.SKEW=`SKEW`,e.SWIVEL=`SWIVEL`,e.TILT_3D=`TILT_3D`,e.TRACK=`TRACK`,e.TRACK_3D=`TRACK_3D`,e))(fs||{}),ps=(e=>(e.AUTO=`AUTO`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e.CENTER=`CENTER`,e.JUSTIFY=`JUSTIFY`,e))(ps||{}),ms=(e=>(e.PX=`PX`,e.EM=`EM`,e))(ms||{}),hs=(e=>(e.SQUARE=`SQUARE`,e.ROUND=`ROUND`,e))(hs||{}),gs=(e=>(e.SINGLE=`SINGLE`,e.DOUBLE=`DOUBLE`,e.DASHED=`DASHED`,e.DOTTED=`DOTTED`,e))(gs||{}),_s=(e=>(e.LARGE=`LARGE`,e.MEDIUM=`MEDIUM`,e.SMALL=`SMALL`,e))(_s||{}),vs=(e=>(e.CENTER=`CENTER`,e.LEFT=`LEFT`,e.RIGHT=`RIGHT`,e))(vs||{}),ys=(e=>(e.NONE=`NONE`,e.FULL=`FULL`,e.MINI=`MINI`,e))(ys||{}),bs=(e=>(e.COLLAGE=`COLLAGE`,e.MASONRY=`MASONRY`,e.GRID=`GRID`,e.THUMBNAIL=`THUMBNAIL`,e.SLIDER=`SLIDER`,e.SLIDESHOW=`SLIDESHOW`,e.PANORAMA=`PANORAMA`,e.COLUMN=`COLUMN`,e.MAGIC=`MAGIC`,e.FULLSIZE=`FULLSIZE`,e))(bs||{}),xs=(e=>(e.ROWS=`ROWS`,e.COLUMNS=`COLUMNS`,e))(xs||{}),Ss=(e=>(e.FILL=`FILL`,e.FIT=`FIT`,e))(Ss||{}),Cs=(e=>(e.TOP=`TOP`,e.RIGHT=`RIGHT`,e.BOTTOM=`BOTTOM`,e.LEFT=`LEFT`,e.NONE=`NONE`,e))(Cs||{}),ws=(e=>(e.NORMAL=`NORMAL`,e.STICKER=`STICKER`,e))(ws||{}),Ts=(e=>(e.HTML=`HTML`,e.ADSENSE=`ADSENSE`,e.AI=`AI`,e.AI_WIDGET=`AI_WIDGET`,e))(Ts||{}),Es=(e=>(e.START=`START`,e.END=`END`,e.TOP=`TOP`,e.HIDDEN=`HIDDEN`,e))(Es||{}),Ds=(e=>(e.ROADMAP=`ROADMAP`,e.SATELITE=`SATELITE`,e.HYBRID=`HYBRID`,e.TERRAIN=`TERRAIN`,e))(Ds||{}),Os=(e=>(e.CREATOR=`CREATOR`,e.VOTERS=`VOTERS`,e.EVERYONE=`EVERYONE`,e))(Os||{}),ks=(e=>(e.SITE_MEMBERS=`SITE_MEMBERS`,e.ALL=`ALL`,e))(ks||{}),As=(e=>(e.LIST=`LIST`,e.GRID=`GRID`,e))(As||{}),js=(e=>(e.LTR=`LTR`,e.RTL=`RTL`,e))(js||{}),Ms=(e=>(e.COLOR=`COLOR`,e.IMAGE=`IMAGE`,e.GRADIENT=`GRADIENT`,e))(Ms||{}),Ns=(e=>(e.BOLD=`BOLD`,e.ITALIC=`ITALIC`,e.UNDERLINE=`UNDERLINE`,e.SPOILER=`SPOILER`,e.ANCHOR=`ANCHOR`,e.MENTION=`MENTION`,e.LINK=`LINK`,e.COLOR=`COLOR`,e.FONT_SIZE=`FONT_SIZE`,e.EXTERNAL=`EXTERNAL`,e.STRIKETHROUGH=`STRIKETHROUGH`,e.SUPERSCRIPT=`SUPERSCRIPT`,e.SUBSCRIPT=`SUBSCRIPT`,e.FONT_FAMILY=`FONT_FAMILY`,e.SKETCH=`SKETCH`,e))(Ns||{}),Ps=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(Ps||{}),Fs=(e=>(e.UNDERLINE=`UNDERLINE`,e.BOX=`BOX`,e.CIRCLE=`CIRCLE`,e.HIGHLIGHT=`HIGHLIGHT`,e.STRIKETHROUGH=`STRIKETHROUGH`,e.CROSSED_OFF=`CROSSED_OFF`,e))(Fs||{}),Is=(e=>(e.START=`START`,e.END=`END`,e.TOP=`TOP`,e))(Is||{}),Ls=(e=>(e.SQUARE=`SQUARE`,e.RECTANGLE=`RECTANGLE`,e))(Ls||{}),Rs=(e=>(e.FILL=`FILL`,e.FIT=`FIT`,e))(Rs||{}),zs=(e=>(e.IMAGE=`IMAGE`,e.PRODUCT_INFO=`PRODUCT_INFO`,e))(zs||{}),Bs=(e=>(e.CONTAINED=`CONTAINED`,e.FRAMELESS=`FRAMELESS`,e))(Bs||{}),Vs=(e=>(e.START=`START`,e.CENTER=`CENTER`,e.END=`END`,e))(Vs||{}),Hs=(e=>(e.STACKED=`STACKED`,e.SIDE_BY_SIDE=`SIDE_BY_SIDE`,e))(Hs||{}),Us=(e=>(e.PRODUCT=`PRODUCT`,e.EVENT=`EVENT`,e.BOOKING=`BOOKING`,e))(Us||{}),Ws=(e=>(e.FIRST=`FIRST`,e.ALL=`ALL`,e.NONE=`NONE`,e))(Ws||{}),Gs=(e=>(e.LTR=`LTR`,e.RTL=`RTL`,e))(Gs||{}),Ks=(e=>(e.TOP=`TOP`,e.MIDDLE=`MIDDLE`,e.BOTTOM=`BOTTOM`,e))(Ks||{}),qs=(e=>(e.NULL_VALUE=`NULL_VALUE`,e))(qs||{}),Js=(e=>(e.AUTO=`AUTO`,e.CONTAIN=`CONTAIN`,e.COVER=`COVER`,e))(Js||{}),Ys=(e=>(e.CENTER=`CENTER`,e.CENTER_LEFT=`CENTER_LEFT`,e.CENTER_RIGHT=`CENTER_RIGHT`,e.TOP=`TOP`,e.TOP_LEFT=`TOP_LEFT`,e.TOP_RIGHT=`TOP_RIGHT`,e.BOTTOM=`BOTTOM`,e.BOTTOM_LEFT=`BOTTOM_LEFT`,e.BOTTOM_RIGHT=`BOTTOM_RIGHT`,e))(Ys||{}),Xs=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(Xs||{}),Zs=(e=>(e.IMAGE=`IMAGE`,e.LAYOUT=`LAYOUT`,e))(Zs||{}),Qs=(e=>(e.TOP=`TOP`,e.BOTTOM=`BOTTOM`,e.PAYWALL=`PAYWALL`,e))(Qs||{}),$s=(e=>(e.CENTER=`CENTER`,e.FADE_TO_TOP=`FADE_TO_TOP`,e.FADE_TO_BOTTOM=`FADE_TO_BOTTOM`,e))($s||{}),ec=(e=>(e.ELLIPSE=`ELLIPSE`,e.TILT=`TILT`,e.LIQUID=`LIQUID`,e.LEFT_WAVE=`LEFT_WAVE`,e.PAINT_SCRIBBLE=`PAINT_SCRIBBLE`,e.INVERTED_ELLIPSE=`INVERTED_ELLIPSE`,e.RIGHT_WAVE=`RIGHT_WAVE`,e.DUNES=`DUNES`,e.WAVES=`WAVES`,e.TRIANGLE=`TRIANGLE`,e.SEMI_ELLIPSE=`SEMI_ELLIPSE`,e.PLANTS=`PLANTS`,e.LAYERED_ELLIPSE=`LAYERED_ELLIPSE`,e.PIXELS=`PIXELS`,e.PAINT=`PAINT`,e.CLOUDS=`CLOUDS`,e.OPTICAL_ILLUSION=`OPTICAL_ILLUSION`,e.STRIPES=`STRIPES`,e.BLOBS=`BLOBS`,e.SEMI_CIRCLES=`SEMI_CIRCLES`,e.HILL=`HILL`,e.BRUSH=`BRUSH`,e.PEAKS=`PEAKS`,e.ANGLED_TRIANGLE=`ANGLED_TRIANGLE`,e))(ec||{}),tc=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(tc||{}),nc=(e=>(e.TOP=`TOP`,e.MIDDLE=`MIDDLE`,e.BOTTOM=`BOTTOM`,e))(nc||{}),rc=(e=>(e.STACK=`STACK`,e.WRAP=`WRAP`,e))(rc||{}),ic=(e=>(e.LAYOUT=`LAYOUT`,e.CELL=`CELL`,e))(ic||{}),ac=(e=>(e.AUTO=`AUTO`,e.CONTAIN=`CONTAIN`,e.COVER=`COVER`,e))(ac||{}),oc=(e=>(e.CENTER=`CENTER`,e.CENTER_LEFT=`CENTER_LEFT`,e.CENTER_RIGHT=`CENTER_RIGHT`,e.TOP=`TOP`,e.TOP_LEFT=`TOP_LEFT`,e.TOP_RIGHT=`TOP_RIGHT`,e.BOTTOM=`BOTTOM`,e.BOTTOM_LEFT=`BOTTOM_LEFT`,e.BOTTOM_RIGHT=`BOTTOM_RIGHT`,e))(oc||{}),sc=(e=>(e.COLOR=`COLOR`,e.GRADIENT=`GRADIENT`,e))(sc||{}),cc=(e=>(e.PLAIN=`PLAIN`,e.NUMBERED=`NUMBERED`,e.LETTERS=`LETTERS`,e.ROMAN=`ROMAN`,e.BULLETED=`BULLETED`,e.ALPHABETICAL_INDEX=`ALPHABETICAL_INDEX`,e.ALPHABETICAL_INDEX_COMPACT=`ALPHABETICAL_INDEX_COMPACT`,e))(cc||{}),lc=(e=>(e.NESTED=`NESTED`,e.FLAT=`FLAT`,e))(lc||{}),uc=(e=>(e.SOLID_BOXES=`SOLID_BOXES`,e.NUMBERED_BOXES=`NUMBERED_BOXES`,e.STATS=`STATS`,e.CIRCLE_STATS=`CIRCLE_STATS`,e.SOLID_BOXES_ALTERNATING=`SOLID_BOXES_ALTERNATING`,e.SOLID_JOINED_BOXES=`SOLID_JOINED_BOXES`,e.SIDE_LINE_TEXT=`SIDE_LINE_TEXT`,e.TOP_LINE_TEXT=`TOP_LINE_TEXT`,e.OUTLINE_BOXES_WITH_TOP_CIRCLE=`OUTLINE_BOXES_WITH_TOP_CIRCLE`,e.BIG_BULLETS=`BIG_BULLETS`,e.SMALL_BULLETS=`SMALL_BULLETS`,e.ARROW_BULLETS=`ARROW_BULLETS`,e.PROCESS_STEPS=`PROCESS_STEPS`,e.BAR_STATS=`BAR_STATS`,e.TIMELINE=`TIMELINE`,e.MINIMAL_TIMELINE=`MINIMAL_TIMELINE`,e.PILLS=`PILLS`,e.STAR_RATING=`STAR_RATING`,e.QUOTE_BOXES=`QUOTE_BOXES`,e.CIRCLE=`CIRCLE`,e.PYRAMID=`PYRAMID`,e.STAIRCASE=`STAIRCASE`,e.VERTICAL_FUNNEL=`VERTICAL_FUNNEL`,e))(uc||{}),dc=(e=>(e.SMALL=`SMALL`,e.MEDIUM=`MEDIUM`,e.LARGE=`LARGE`,e.EXTRA_LARGE=`EXTRA_LARGE`,e))(dc||{}),fc=(e=>(e.FIRST_PRIORITY=`FIRST_PRIORITY`,e.SECOND_PRIORITY=`SECOND_PRIORITY`,e.THIRD_PRIORITY=`THIRD_PRIORITY`,e))(fc||{}),pc=(e=>(e.DETAILS=`DETAILS`,e.TEXTS=`TEXTS`,e.REGISTRATION=`REGISTRATION`,e.URLS=`URLS`,e.FORM=`FORM`,e.DASHBOARD=`DASHBOARD`,e.FEED=`FEED`,e.ONLINE_CONFERENCING_SESSION=`ONLINE_CONFERENCING_SESSION`,e.SEO_SETTINGS=`SEO_SETTINGS`,e.AGENDA=`AGENDA`,e.CATEGORIES=`CATEGORIES`,e.CUSTOMIZABLE_TICKETS=`CUSTOMIZABLE_TICKETS`,e.BADGES=`BADGES`,e))(pc||{}),mc=(e=>(e.UNKNOWN_UPDATER_IDENTITY=`UNKNOWN_UPDATER_IDENTITY`,e.USER=`USER`,e.EXTERNAL_APP=`EXTERNAL_APP`,e.MACHINE=`MACHINE`,e))(mc||{}),hc=(e=>(e.UNKNOWN_PUBLISH_STATUS=`UNKNOWN_PUBLISH_STATUS`,e.UNPUBLISHED=`UNPUBLISHED`,e.PARTIALLY_PUBLISHED=`PARTIALLY_PUBLISHED`,e.PUBLISHED=`PUBLISHED`,e))(hc||{}),gc=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(gc||{}),_c=(e=>(e.ASC=`ASC`,e.DESC=`DESC`,e))(_c||{}),vc=(e=>(e.ATTENDING=`ATTENDING`,e))(vc||{}),yc=(e=>(e.UNKNOWN=`UNKNOWN`,e.ANONYMOUS_VISITOR=`ANONYMOUS_VISITOR`,e.MEMBER=`MEMBER`,e.WIX_USER=`WIX_USER`,e.APP=`APP`,e))(yc||{});async function bc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=xo(rt(Ve({event:e,draft:t?.draft,fields:t?.fields},[`event.description`]),[{transformFn:uo,paths:Po},{transformFn:wa,paths:Fo},{transformFn:an,paths:Io}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])?.event}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{event:`$[0]`,draft:`$[1].draft`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`event`,`options`]);throw r?.onError?.(e),t}}async function xc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=So(rt(Ve({eventId:e,event:t?.event,draft:t?.draft,fields:t?.fields},[`event.description`]),[{transformFn:uo,paths:Po},{transformFn:wa,paths:Fo},{transformFn:an,paths:Io}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,event:`$[1].event`,draft:`$[1].draft`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function Sc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Co(rt(Ve({event:{...t?.event,id:e},fields:t?.fields},[`event.description`]),[{transformFn:uo,paths:Po},{transformFn:wa,paths:Fo},{transformFn:an,paths:Io}]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])?.event}catch(e){let t=ht(e,{spreadPathsToArguments:{event:`$[1].event`},explicitPathsToArguments:{"event.id":`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`_id`,`options`]);throw r?.onError?.(e),t}}async function Cc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=wo(Ve({eventId:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function wc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=To(Ve({eventId:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function Tc(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Eo(Ve({filter:e?.filter},[]));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Ec(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Do(Ve({eventId:e},[]));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),He(e.data,[])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`},singleArgumentUnchanged:!1},[`eventId`]);throw n?.onError?.(e),t}}async function Dc(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Oo(Ve({filter:e?.filter},[]));n?.onSiteCall?.();try{let e=await t.request(r);n?.onSuccess?.(e)}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}function Oc(e){let{httpClient:t,sideEffects:n}=arguments[1];return Fa({func:async r=>{let i=ko({...r,...e??{}});n?.onSiteCall?.();try{let e=await t.request(i);return n?.onSuccess?.(e),e}catch(e){throw n?.onError?.(e),e}},requestTransformer:t=>{let n=[t,e];return Ve({...n?.[1],query:n?.[0]},[])},responseTransformer:({data:e})=>{let t=He(rt(e,[{transformFn:fo,paths:Lo},{transformFn:Ta,paths:Ro},{transformFn:on,paths:zo}]),[`events.description`]);return{items:t?.events,pagingMetadata:t?.pagingMetadata}},errorTransformer:e=>{throw ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1})},pagingMethod:`OFFSET`,transformationPaths:{}})}async function kc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=ko(Ve({query:e,...t},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Lo},{transformFn:Ta,paths:Ro},{transformFn:on,paths:zo}]),[`events.description`])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{query:`$[0]`},singleArgumentUnchanged:!1},[`query`,`options`]);throw r?.onError?.(e),t}}var Ac={query:Va()};async function jc(e){let{httpClient:t,sideEffects:n}=arguments[1],r=Ao(Ve({filter:e?.filter,facet:e?.facet,includeDrafts:e?.includeDrafts},[]));n?.onSiteCall?.();try{let e=await t.request(r);return n?.onSuccess?.(e),He(e.data,[])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{filter:`$[0].filter`,facet:`$[0].facet`,includeDrafts:`$[0].includeDrafts`},singleArgumentUnchanged:!1},[`options`]);throw n?.onError?.(e),t}}async function Mc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=jo(Ve({categoryId:e,paging:t?.paging,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Lo},{transformFn:Ta,paths:Ro},{transformFn:on,paths:zo}]),[`events.description`])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{categoryId:`$[0]`,paging:`$[1].paging`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`categoryId`,`options`]);throw r?.onError?.(e),t}}async function Nc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Mo(Ve({eventId:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])?.event}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{eventId:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`eventId`,`options`]);throw r?.onError?.(e),t}}async function Pc(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=No(Ve({slug:e,fields:t?.fields},[]));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:Po},{transformFn:Ta,paths:Fo},{transformFn:on,paths:Io}]),[`event.description`])}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{slug:`$[0]`,fields:`$[1].fields`},singleArgumentUnchanged:!1},[`slug`,`options`]);throw r?.onError?.(e),t}}var Fc=[{path:`data.timestamp`},{path:`metadata.eventTime`}],Ic=[{path:`data.timestamp`},{path:`data.dateAndTimeSettings.startDate`},{path:`data.dateAndTimeSettings.endDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`metadata.eventTime`}],Lc=[{path:`data.location.address`}],Rc=[{path:`entity.mainImage`}],zc=[{path:`entity.createdDate`},{path:`entity.updatedDate`},{path:`entity.publishedDate`},{path:`entity.dateAndTimeSettings.startDate`},{path:`entity.dateAndTimeSettings.endDate`},{path:`entity.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`entity.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`entity.registration.rsvp.startDate`},{path:`entity.registration.rsvp.endDate`},{path:`entity.summaries.cancellation.canceledDate`},{path:`entity.categories.categories.createdDate`},{path:`entity.description.metadata.createdTimestamp`},{path:`entity.description.metadata.updatedTimestamp`},{path:`entity.badges.badges.functionUpdateDate`},{path:`metadata.eventTime`}],Bc=[{path:`entity.eventPageUrl`},{path:`entity.agendaSettings.pageUrl`}],Vc=[{path:`entity.location.address`}],Hc=[{path:`entity.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`entity.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`entity.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`entity.description.nodes.galleryData.items.image.media.duration`},{path:`entity.description.nodes.galleryData.items.video.media.duration`},{path:`entity.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`entity.description.nodes.galleryData.options.item.ratio`},{path:`entity.description.nodes.imageData.image.duration`},{path:`entity.description.nodes.imageData.crop.x`},{path:`entity.description.nodes.imageData.crop.y`},{path:`entity.description.nodes.imageData.crop.width`},{path:`entity.description.nodes.imageData.crop.height`},{path:`entity.description.nodes.mapData.mapSettings.lat`},{path:`entity.description.nodes.mapData.mapSettings.lng`},{path:`entity.description.nodes.pollData.poll.image.duration`},{path:`entity.description.nodes.pollData.poll.options.image.duration`},{path:`entity.description.nodes.pollData.design.poll.background.image.duration`},{path:`entity.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.nodes.appEmbedData.image.duration`},{path:`entity.description.nodes.videoData.video.duration`},{path:`entity.description.nodes.videoData.thumbnail.duration`},{path:`entity.description.nodes.audioData.audio.duration`},{path:`entity.description.nodes.audioData.coverImage.duration`},{path:`entity.description.nodes.layoutData.backgroundImage.media.duration`},{path:`entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`entity.description.nodes.layoutData.backdropImage.media.duration`},{path:`entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`entity.description.nodes.layoutData.background.gradient.centerX`},{path:`entity.description.nodes.layoutData.background.gradient.centerY`},{path:`entity.description.nodes.layoutData.background.gradient.stops.position`},{path:`entity.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`entity.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`entity.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`entity.description.nodes.shapeData.shape.duration`},{path:`entity.description.nodes.cardData.background.gradient.centerX`},{path:`entity.description.nodes.cardData.background.gradient.centerY`},{path:`entity.description.nodes.cardData.background.gradient.stops.position`},{path:`entity.description.nodes.cardData.backgroundImage.media.duration`},{path:`entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`entity.description.nodes.tocData.fontSize`},{path:`entity.description.nodes.tocData.itemSpacing`},{path:`entity.description.nodes.smartBlockCellData.shape.duration`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`entity.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}],Uc=[{path:`undefined.mainImage`}],Wc=[{path:`undefined.createdDate`},{path:`undefined.updatedDate`},{path:`undefined.publishedDate`},{path:`undefined.dateAndTimeSettings.startDate`},{path:`undefined.dateAndTimeSettings.endDate`},{path:`undefined.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`undefined.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`undefined.registration.rsvp.startDate`},{path:`undefined.registration.rsvp.endDate`},{path:`undefined.summaries.cancellation.canceledDate`},{path:`undefined.categories.categories.createdDate`},{path:`undefined.description.metadata.createdTimestamp`},{path:`undefined.description.metadata.updatedTimestamp`},{path:`undefined.badges.badges.functionUpdateDate`},{path:`metadata.eventTime`}],Gc=[{path:`undefined.eventPageUrl`},{path:`undefined.agendaSettings.pageUrl`}],Kc=[{path:`undefined.location.address`}],qc=[{path:`undefined.description.nodes.buttonData.styles.background.gradient.centerX`},{path:`undefined.description.nodes.buttonData.styles.background.gradient.centerY`},{path:`undefined.description.nodes.buttonData.styles.background.gradient.stops.position`},{path:`undefined.description.nodes.buttonData.styles.backgroundHover.gradient.centerX`},{path:`undefined.description.nodes.buttonData.styles.backgroundHover.gradient.centerY`},{path:`undefined.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position`},{path:`undefined.description.nodes.galleryData.items.image.media.duration`},{path:`undefined.description.nodes.galleryData.items.video.media.duration`},{path:`undefined.description.nodes.galleryData.items.video.thumbnail.duration`},{path:`undefined.description.nodes.galleryData.options.item.ratio`},{path:`undefined.description.nodes.imageData.image.duration`},{path:`undefined.description.nodes.imageData.crop.x`},{path:`undefined.description.nodes.imageData.crop.y`},{path:`undefined.description.nodes.imageData.crop.width`},{path:`undefined.description.nodes.imageData.crop.height`},{path:`undefined.description.nodes.mapData.mapSettings.lat`},{path:`undefined.description.nodes.mapData.mapSettings.lng`},{path:`undefined.description.nodes.pollData.poll.image.duration`},{path:`undefined.description.nodes.pollData.poll.options.image.duration`},{path:`undefined.description.nodes.pollData.design.poll.background.image.duration`},{path:`undefined.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.nodes.textData.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.nodes.textData.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.nodes.appEmbedData.image.duration`},{path:`undefined.description.nodes.videoData.video.duration`},{path:`undefined.description.nodes.videoData.thumbnail.duration`},{path:`undefined.description.nodes.audioData.audio.duration`},{path:`undefined.description.nodes.audioData.coverImage.duration`},{path:`undefined.description.nodes.layoutData.backgroundImage.media.duration`},{path:`undefined.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX`},{path:`undefined.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY`},{path:`undefined.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position`},{path:`undefined.description.nodes.layoutData.backdropImage.media.duration`},{path:`undefined.description.nodes.layoutData.backdropImage.overlay.gradient.centerX`},{path:`undefined.description.nodes.layoutData.backdropImage.overlay.gradient.centerY`},{path:`undefined.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position`},{path:`undefined.description.nodes.layoutData.background.gradient.centerX`},{path:`undefined.description.nodes.layoutData.background.gradient.centerY`},{path:`undefined.description.nodes.layoutData.background.gradient.stops.position`},{path:`undefined.description.nodes.layoutData.backdrop.gradient.centerX`},{path:`undefined.description.nodes.layoutData.backdrop.gradient.centerY`},{path:`undefined.description.nodes.layoutData.backdrop.gradient.stops.position`},{path:`undefined.description.nodes.shapeData.shape.duration`},{path:`undefined.description.nodes.cardData.background.gradient.centerX`},{path:`undefined.description.nodes.cardData.background.gradient.centerY`},{path:`undefined.description.nodes.cardData.background.gradient.stops.position`},{path:`undefined.description.nodes.cardData.backgroundImage.media.duration`},{path:`undefined.description.nodes.cardData.backgroundImage.overlay.gradient.centerX`},{path:`undefined.description.nodes.cardData.backgroundImage.overlay.gradient.centerY`},{path:`undefined.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position`},{path:`undefined.description.nodes.tocData.fontSize`},{path:`undefined.description.nodes.tocData.itemSpacing`},{path:`undefined.description.nodes.smartBlockCellData.shape.duration`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerOne.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerTwo.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerThree.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFour.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerFive.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.headerSix.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.paragraph.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.blockquote.decorations.colorData.backgroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.foregroundStyle.gradient.stops.position`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerX`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.centerY`},{path:`undefined.description.documentStyle.codeBlock.decorations.colorData.backgroundStyle.gradient.stops.position`}],Jc=[{path:`data.timestamp`},{path:`data.dateAndTimeSettings.startDate`},{path:`data.dateAndTimeSettings.endDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.startDate`},{path:`data.dateAndTimeSettings.recurringEvents.individualEventDates.endDate`},{path:`data.registration.rsvp.startDate`},{path:`data.registration.rsvp.endDate`},{path:`metadata.eventTime`}],Yc=[{path:`data.eventPageUrl`}];function Xc(e){return(t,n)=>bc(t,n,{httpClient:e})}function Zc(e){return(t,n)=>xc(t,n,{httpClient:e})}function Qc(e){return(t,n)=>Sc(t,n,{httpClient:e})}function $c(e){return(t,n)=>Cc(t,n,{httpClient:e})}function el(e){return(t,n)=>wc(t,n,{httpClient:e})}function tl(e){return t=>Tc(t,{httpClient:e})}function nl(e){return t=>Ec(t,{httpClient:e})}function rl(e){return t=>Dc(t,{httpClient:e})}function il(e){return t=>Oc(t,{httpClient:e})}function al(e){return(t,n)=>kc(t,n,{httpClient:e})}function ol(e){return t=>jc(t,{httpClient:e})}function sl(e){return(t,n)=>Mc(t,n,{httpClient:e})}function cl(e){return(t,n)=>Nc(t,n,{httpClient:e})}function ll(e){return(t,n)=>Pc(t,n,{httpClient:e})}var ul=y(`wix.events.v3.event_canceled`,!0,e=>He(rt(e,[{transformFn:We,paths:Fc}])))(),dl=y(`wix.events.v3.event_cloned`,!0,e=>He(rt(e,[{transformFn:We,paths:Ic},{transformFn:on,paths:Lc}])))(),fl=y(`wix.events.v3.event_created`,!0,e=>He(rt(e,[{transformFn:fo,paths:Rc},{transformFn:We,paths:zc},{transformFn:Ta,paths:Bc},{transformFn:on,paths:Vc},{transformFn:rn,paths:Hc}])))(),pl=y(`wix.events.v3.event_deleted`,!0,e=>He(rt(e,[{transformFn:fo,paths:Uc},{transformFn:We,paths:Wc},{transformFn:Ta,paths:Gc},{transformFn:on,paths:Kc},{transformFn:rn,paths:qc}])))(),ml=y(`wix.events.v3.event_ended`,!0,e=>He(rt(e,[{transformFn:We,paths:Fc}])))(),hl=y(`wix.events.v3.event_published`,!0,e=>He(rt(e,[{transformFn:We,paths:Jc},{transformFn:Ta,paths:Yc},{transformFn:on,paths:Lc}])))(),gl=y(`wix.events.v3.event_reminder`,!0,e=>He(rt(e,[{transformFn:We,paths:Ic},{transformFn:on,paths:Lc}])))(),_l=y(`wix.events.v3.event_started`,!0,e=>He(rt(e,[{transformFn:We,paths:Fc}])))(),vl=y(`wix.events.v3.event_updated`,!0,e=>He(rt(e,[{transformFn:fo,paths:Rc},{transformFn:We,paths:zc},{transformFn:Ta,paths:Bc},{transformFn:on,paths:Vc},{transformFn:rn,paths:Hc}])))();function yl(e){let t=Za({builderQueryFunction:t=>il(e)(t),typedQueryFunction:(t,n)=>al(e)(t,n),hasOptionsParameter:!0});function n(e,n){return t(...arguments)}return n}var bl=Dt(Xc),xl=Dt(Zc),Sl=Dt(Qc),Cl=Dt($c),wl=Dt(el),Tl=Dt(tl),El=Dt(nl),Dl=Dt(rl),Ol=Dt(ol),kl=Dt(sl),Al=Dt(cl),jl=Dt(ll),Ml=Dt(yl),Nl=tn(ul),Pl=tn(dl),Fl=tn(fl),Il=tn(pl),Ll=tn(ml),Rl=tn(hl),zl=tn(gl),Bl=tn(_l),Vl=tn(vl),Hl=!0,Ul=`__LITE_EVENTS_DEBUG__`,Wl=typeof window>`u`,Gl=()=>typeof performance<`u`?performance.now():Date.now(),Kl=Gl(),ql=()=>{let e=globalThis[Ul];if(typeof e==`boolean`)return e;if(!Wl)try{let e=new URLSearchParams(window.location.search).get(`debug`);return e===null?void 0:e===`true`}catch{return}},Jl=()=>ql()??Hl,Yl=(e,t,n)=>{if(!Jl())return;let r=(Gl()-Kl).toFixed(1),i=`[lite-events ${Wl?`server`:`client`} ${r}ms] ${e}:${t}`,a=t===`error`?console.error:console.log;n===void 0?a(i):a(i,n)},Xl=(e,t,n)=>Yl(e,`error`,{...n,error:t}),Zl=100,Ql=async()=>{Yl(`fetchCategories`,`request`);try{let{items:e}=await lo().hasSome(`states`,[`MANUAL`]).limit(Zl).find();return Yl(`fetchCategories`,`response`,{categoriesCount:e?.length??0}),e??[]}catch(e){throw Xl(`fetchCategories`,e),e}},$l=864e5,eu=14,tu=19,nu=23,ru=(e,t)=>Object.fromEntries(new Intl.DateTimeFormat(`en-US`,{timeZone:t,hourCycle:`h23`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}).formatToParts(e).filter(({type:e})=>e!==`literal`).map(({type:e,value:t})=>[e,Number(t)])),iu=(e,t)=>{let{year:n,month:r,day:i,hour:a,minute:o,second:s}=ru(e,t);return Date.UTC(n,r-1,i,a,o,s)-Math.floor(e.getTime()/1e3)*1e3},au=(e,t=new Date)=>{let{year:n,month:r,day:i}=ru(new Date(t.getTime()+eu*$l),e),a=Date.UTC(n,r-1,i,tu),o=a-iu(new Date(a),e);return new Date(a-iu(new Date(o),e))},ou=(e,t=new Date)=>{let{year:n,month:r,day:i}=ru(new Date(t.getTime()+eu*$l),e),a=Date.UTC(n,r-1,i,nu),o=a-iu(new Date(a),e);return new Date(a-iu(new Date(o),e))},su=e=>e?._id??``,cu=e=>e?.registration?.type===`TICKETING`,lu=e=>e?.registration?.type===`RSVP`,uu=e=>e?.registration?.type===`EXTERNAL`,du=e=>e?.registration?.type===`NONE`,fu=e=>cu(e)||lu(e)?!1:du(e)?!!e?.eventDisplaySettings?.hideEventDetailsButton:!!e?.eventDisplaySettings?.hideEventDetailsPage,pu=e=>e?.registration?.external?.url,mu=e=>e?.dateAndTimeSettings?.recurringEvents?.categoryId??void 0,{InitialRegistrationTypeType:hu,LocationType:gu,NodeType:_u,RegistrationStatusStatus:vu,RegistrationTypeType:yu,RequestedFields:bu,SortOrder:xu,Status:Su,TaxType:Cu}=po,wu=[{path:`targetDate`}],Tu=[{path:`planBenefits.planInfo.nextStartDate`},{path:`planBenefits.planInfo.plan.createdDate`},{path:`planBenefits.planInfo.plan.updatedDate`},{path:`planBenefits.planInfo.plan.pricingVariants.priceOverrides.overrides.conditions.validFromDate`},{path:`planBenefits.planInfo.plan.pricingVariants.priceOverrides.overrides.conditions.validUntilDate`},{path:`planBenefits.planInfo.plan.pricingVariants.feeOverrides.overrides.conditions.validFromDate`},{path:`planBenefits.planInfo.plan.pricingVariants.feeOverrides.overrides.conditions.validUntilDate`},{path:`planBenefits.planInfo.plan.startDateSettings.fixedDateOptions.startDates`,isRepeated:!0},{path:`planBenefits.planInfo.plan.startDateSettings.dateRangeOptions.startDate`},{path:`planBenefits.planInfo.plan.startDateSettings.dateRangeOptions.endDate`}];function Eu(e){return kt(Object.assign(e,{domainToMappings:{_:[{srcPath:`/_api/pricing-plan-benefits`,destPath:``},{srcPath:`/_api/pricing-plan-benefits/v3/plan-benefits`,destPath:`/v3/plan-benefits`}],"manage._base_domain_":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``},{srcPath:`/_api/pricing-plan-benefits/v3/plan-benefits`,destPath:`/v3/plan-benefits`}],"www.wixapis.com":[{srcPath:`/pricing-plan-benefits/v3/plan-benefits`,destPath:`/v3/plan-benefits`}],"*.dev.wix-code.com":[{srcPath:`/_api/pricing-plan-benefits/v3/plan-benefits`,destPath:`/v3/plan-benefits`},{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"editor._base_domain_":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"blocks._base_domain_":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"create.editorx":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"editor.wixapps.net":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"apps._base_domain_":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"dev._base_domain_":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}],"www._base_domain_":[{srcPath:`/_api/pricing-plan-benefits`,destPath:``}]}}))}var Du=`@wix/auto_sdk_pricing-plans_plan-benefits`;function Ou(e){function t({host:t}){let n=rt(e,[{transformFn:Ue,paths:wu}]);return{entityFqdn:`wix.pricing_plans.v3.plan_benefit`,method:`POST`,methodFqn:`wix.pricing_plans.v3.plan_benefit.PlanBenefitService.ListPlansByItemIdentifier`,packageName:Du,migrationOptions:{optInTransformResponse:!0},url:Eu({protoPath:`/v3/plan-benefits/list-plans-by-item-identifier`,data:n,host:t}),data:n,transformResponse:e=>rt(e,[{transformFn:We,paths:Tu}])}}return t}var ku=[{path:`planBenefits.planInfo.plan.image`}];async function Au(e,t){let{httpClient:n,sideEffects:r}=arguments[2],i=Ou(Ve({itemIdentifier:e,targetDate:t?.targetDate,count:t?.count}));r?.onSiteCall?.();try{let e=await n.request(i);return r?.onSuccess?.(e),He(rt(e.data,[{transformFn:fo,paths:ku}]))}catch(e){let t=ht(e,{spreadPathsToArguments:{},explicitPathsToArguments:{itemIdentifier:`$[0]`,targetDate:`$[1].targetDate`,count:`$[1].count`},singleArgumentUnchanged:!1},[`itemIdentifier`,`options`]);throw r?.onError?.(e),t}}function ju(e){return(t,n)=>Au(t,n,{httpClient:e})}var Mu=Dt(ju),Nu=e=>/^https?:\/\/.+$/i.test(e)?e:`http://${e}`,Pu=`140603ad-af8d-84a5-2c80-a0f60cb47351`,Fu=`event-details-builder`,Iu=`event-registration-builder`,Lu=e=>e.appSectionRelativeUrl(Pu,Fu,!0),Ru=e=>e.appSectionRelativeUrl(Pu,Iu,!0),zu=(e,t,n,r=``)=>`${e.siteUrl}${t}${n?`/${n}`:``}${r}`,Bu=(e,t)=>{let n=Lu(e),r=Ru(e);return uu(t)&&fu(t)?{href:Nu(pu(t)),target:`_blank`}:fu(t)?du(t)?{href:void 0}:r?{href:zu(e,r,t.slug),target:`_self`}:void 0:n?{href:zu(e,n,t.slug),target:`_self`}:void 0},Vu=`/_api/wix-one-events-server`;Dt(e=>t=>e.request(t)),Dt(e=>async t=>{let n=await e.fetchWithAuth(`${Vu}${t}`,{method:`GET`,headers:{Accept:`application/json`}});if(!n.ok)throw Error(`Events web API request failed (${n.status})`);return n.json()});var Hu=async e=>{Yl(`fetchMembershipBenefits`,`request`,{eventId:e});try{let{planBenefits:t}=await Mu({externalId:e,providerAppId:Pu},{count:1});return Yl(`fetchMembershipBenefits`,`response`,{benefitsCount:t?.length??0}),t??[]}catch(t){return Xl(`fetchMembershipBenefits`,t,{eventId:e}),[]}},Uu=[bu.REGISTRATION,bu.DETAILS,bu.URLS,bu.TEXTS,bu.FORM,bu.SEO_SETTINGS],Wu=[bu.REGISTRATION,bu.DETAILS,bu.URLS,bu.FORM],Gu=404,Ku=async(e,t=Uu)=>{if(!e)Yl(`fetchEventBySlug`,`skipped`,{reason:`no-slug`});else{Yl(`fetchEventBySlug`,`request`,{slug:e});try{let n=await jl(e,{fields:t});return Yl(`fetchEventBySlug`,`response`,{eventId:n.event?._id}),n.event}catch(t){if(t?.response?.status===Gu){Yl(`fetchEventBySlug`,`skipped`,{reason:`event-not-found`,slug:e});return}throw Xl(`fetchEventBySlug`,t,{slug:e}),t}}},qu=async({offset:e=0,limit:t,filter:n,sort:r,categoryIds:i,pricingPlansInstalled:a})=>{Yl(`fetchEventList`,`request`,{offset:e,limit:t,filter:n,sort:r,categoryIds:i,pricingPlansInstalled:a});try{let o=n.status?.$eq===Su.UPCOMING?{...n,status:{$in:[Su.UPCOMING,Su.STARTED]}}:n,s=await Ml({sort:r,filter:i.length?{$and:[o,{categoryId:{$in:i}}]}:o,paging:{offset:e,limit:t}},{fields:Wu}),c=s.events??[],l=s.pagingMetadata?.count??0,u=s.pagingMetadata?.total??0,d=e+l<u;return Yl(`fetchEventList`,`response`,{eventsCount:c.length}),{events:await Promise.all(c.map(async e=>({event:e,hasMemberships:!!(cu(e)&&a?await Hu(e._id):[]).length}))),hasMore:d,total:u}}catch(e){throw Xl(`fetchEventList`,e),e}},Ju=({size:t,...n})=>e.createElement(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,width:t||`24`,height:t||`24`,...n},e.createElement(`path`,{d:`M8.14644661,10.1464466 C8.34170876,9.95118446 8.65829124,9.95118446 8.85355339,10.1464466 L12.4989857,13.7981758 L16.1502401,10.1464466 C16.3455022,9.95118446 16.6620847,9.95118446 16.8573469,10.1464466 C17.052609,10.3417088 17.052609,10.6582912 16.8573469,10.8535534 L12.4989857,15.2123894 L8.14644661,10.8535534 C7.95118446,10.6582912 7.95118446,10.3417088 8.14644661,10.1464466 Z`}));Ju.displayName=`ChevronDown`;var Yu=Ju,Xu=({size:t,...n})=>e.createElement(`svg`,{viewBox:`0 0 24 24`,fill:`currentColor`,width:t||`24`,height:t||`24`,...n},e.createElement(`path`,{d:`M13,15 L13,10 L11,10 L10,12 L11,12 L11,15 L10,16 L10,17 L14,17 L14,16 L13,15 Z M11,9 L13,9 L13,7 L11,7 L11,9 Z M12,20 C7.589,20 4,16.411 4,12 C4,7.589 7.589,4 12,4 C16.411,4 20,7.589 20,12 C20,16.411 16.411,20 12,20 L12,20 Z M12,3 C7.029,3 3,7.029 3,12 C3,16.971 7.029,21 12,21 C16.971,21 21,16.971 21,12 C21,7.029 16.971,3 12,3 L12,3 Z`}));Xu.displayName=`InfoCircle`;var Zu=Xu;function Qu(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Qu(e[t]))&&(r&&(r+=` `),r+=n);else for(t in e)e[t]&&(r&&(r+=` `),r+=t)}return r}function $u(){for(var e,t,n=0,r=``;n<arguments.length;)(e=arguments[n++])&&(t=Qu(e))&&(r&&(r+=` `),r+=t);return r}var ed={};function td(t,n){let r=e.useRef(ed);return r.current===ed&&(r.current=t(n)),r}function nd(e,t,n,r){let i=td(id).current;return ad(i,e,t,n,r)&&sd(i,[e,t,n,r]),i.callback}function rd(e){let t=td(id).current;return od(t,e)&&sd(t,e),t.callback}function id(){return{callback:null,cleanup:null,refs:[]}}function ad(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function od(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function sd(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function cd(){}var ld=Object.freeze([]),ud=Object.freeze({});function dd(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var fd=dd(`https://base-ui.com/production-error`,`Base UI`),pd=parseInt(e.version,10);function md(e){return pd>=e}function hd(t){if(!e.isValidElement(t))return null;let n=t,r=n.props;return(md(19)?r?.ref:n.ref)??null}function gd(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function _d(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else!0===i?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function vd(e,t){return typeof e==`function`?e(t):e}function yd(e,t){return typeof e==`function`?e(t):e}var bd={};function xd(e,t,n,r,i){if(!n&&!r&&!i&&!e)return Cd(t);let a=Cd(e);return t&&(a=wd(a,t)),n&&(a=wd(a,n)),r&&(a=wd(a,r)),i&&(a=wd(a,i)),a}function Sd(e){if(e.length===0)return bd;if(e.length===1)return Cd(e[0]);let t=Cd(e[0]);for(let n=1;n<e.length;n+=1)t=wd(t,e[n]);return t}function Cd(e){return Od(e)?{...kd(e,bd)}:Td(e)}function wd(e,t){return Od(t)?kd(t,e):Ed(e,t)}function Td(e){let t={...e};for(let e in t){let n=t[e];Dd(e,n)&&(t[e]=jd(n))}return t}function Ed(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=gd(e.style,r);break;case`className`:e[n]=Nd(e.className,r);break;default:e[n]=Dd(n,r)?Ad(e[n],r):r}}return e}function Dd(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Od(e){return typeof e==`function`}function kd(e,t){return Od(e)?e(t):e??bd}function Ad(e,t){return t?e?(...n)=>{let r=n[0];if(Pd(r)){let i=r;Md(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:jd(t):e}function jd(e){return e&&((...t)=>{let n=t[0];return Pd(n)&&Md(n),e(...t)})}function Md(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function Nd(e,t){return t?e?t+` `+e:t:e}function Pd(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function Fd(e,t,n={}){let r=t.render,i=Id(t,n);return!1===n.enabled?null:zd(e,r,i,n.state??ud)}function Id(e,t={}){let{className:n,style:r,render:i}=e,{state:a=ud,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?vd(n,a):void 0,d=l?yd(r,a):void 0,f=l?_d(a,c):ud,p=l&&s?Ld(s):void 0,m=l?gd(f,p)??{}:ud;return`u`>typeof document&&(l?m.ref=Array.isArray(o)?rd([m.ref,hd(i),...o]):nd(m.ref,hd(i),o):nd(null,null)),l?(u!==void 0&&(m.className=Nd(m.className,u)),d!==void 0&&(m.style=gd(m.style,d)),m):ud}function Ld(e){return Array.isArray(e)?Sd(e):xd(void 0,e)}var Rd=Symbol.for(`react.lazy`);function zd(t,n,r,i){if(n){if(typeof n==`function`)return n(r,i);let t=xd(r,n.props);t.ref=r.ref;let a=n;return a?.$$typeof===Rd&&(a=e.Children.toArray(n)[0]),e.cloneElement(a,t)}if(t&&typeof t==`string`)return Bd(t,r);throw Error(fd(8))}function Bd(t,n){return t===`button`?(0,e.createElement)(`button`,{type:`button`,...n,key:n.key}):t===`img`?(0,e.createElement)(`img`,{alt:``,...n,key:n.key}):e.createElement(t,n)}function Vd({controlled:t,default:n,name:r,state:i=`value`}){let{current:a}=e.useRef(t!==void 0),[o,s]=e.useState(n);return[a?t:o,e.useCallback(e=>{a||s(e)},[])]}var Hd={...e},J=`u`>typeof document?e.useLayoutEffect:()=>{},Ud=[];function Wd(t){e.useEffect(t,Ud)}var Gd=null;globalThis.requestAnimationFrame;var Kd=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},qd=class e{static create(){return new e}static request(e){return Kd.request(e)}static cancel(e){return Kd.cancel(e)}currentId=Gd;request(e){this.cancel(),this.currentId=Kd.request(()=>{this.currentId=Gd,e()})}cancel=()=>{this.currentId!==Gd&&(Kd.cancel(this.currentId),this.currentId=Gd)};disposeEffect=()=>this.cancel};function Jd(){let e=td(qd.create).current;return Wd(e.disposeEffect),e}function Yd(t,n=!1,r=!1){let[i,a]=e.useState(t&&n?`idle`:void 0),[o,s]=e.useState(t);return t&&!o&&(s(!0),a(`starting`)),!t&&o&&i!==`ending`&&!r&&a(`ending`),!t&&!o&&i===`ending`&&a(void 0),J(()=>{if(!t&&o&&i!==`ending`&&r){let e=qd.request(()=>{a(`ending`)});return()=>{qd.cancel(e)}}},[t,o,i,r]),J(()=>{if(!t||n)return;let e=qd.request(()=>{a(void 0)});return()=>{qd.cancel(e)}},[n,t]),J(()=>{if(!t||!n)return;t&&o&&i!==`idle`&&a(`starting`);let e=qd.request(()=>{a(`idle`)});return()=>{qd.cancel(e)}},[n,t,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}var Xd=0;function Zd(t,n=`mui`){let[r,i]=e.useState(t),a=t||r;return e.useEffect(()=>{r??(Xd+=1,i(`${n}-${Xd}`))},[r,n]),a}var Qd=Hd.useId;function $d(e,t){if(Qd!==void 0){let n=Qd();return e??(t?`${t}-${n}`:n)}return Zd(e,t)}function ef(e){return $d(e,`base-ui`)}var tf=Hd.useInsertionEffect,nf=tf&&tf!==Hd.useLayoutEffect?tf:e=>e();function Y(e){let t=td(rf).current;return t.next=e,nf(t.effect),t.trampoline}function rf(){let e={next:void 0,callback:af,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function af(){}function of(e,t,n,r){let i=!1,a=!1,o=r??ud;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var sf=`trigger-press`,cf=`trigger-hover`,lf=`trigger-focus`,uf=`outside-press`,df=`item-press`,ff=`focus-out`,pf=`escape-key`,mf=`list-navigation`,hf=`cancel-open`,gf=`disabled`,_f=`imperative-action`,vf=`window-resize`,yf=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),bf={[yf.startingStyle]:``},xf={[yf.endingStyle]:``},Sf={transitionStatus(e){return e===`starting`?bf:e===`ending`?xf:null}};function Cf(e){return e==null?e:`current`in e?e.current:e}function wf(e,t=!1,n=!0){let r=Jd();return Y((i,a=null)=>{r.cancel();let o=Cf(e);if(o==null)return;let s=o,c=()=>{h.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED)return void i();function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=yf.startingStyle;if(!s.hasAttribute(e))return void r.request(l);let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function Tf(t){let{enabled:n=!0,open:r,ref:i,onComplete:a}=t,o=Y(a),s=wf(i,r,!1);e.useEffect(()=>{if(!n)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[n,r,o,s])}function Ef(e){let t=td(Df,e).current;return t.next=e,J(t.effect),t}function Df(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Of(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function kf(){return`u`>typeof window}function Af(e){return Nf(e)?(e.nodeName||``).toLowerCase():`#document`}function jf(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Mf(e){return((Nf(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Nf(e){return kf()?e instanceof Node||e instanceof jf(e).Node:!1}function Pf(e){return kf()?e instanceof Element||e instanceof jf(e).Element:!1}function Ff(e){return kf()?e instanceof HTMLElement||e instanceof jf(e).HTMLElement:!1}function If(e){return!kf()||`u`<typeof ShadowRoot?!1:e instanceof ShadowRoot||e instanceof jf(e).ShadowRoot}function Lf(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Jf(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Rf(e){return/^(table|td|th)$/.test(Af(e))}function zf(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Bf=/transform|translate|scale|rotate|perspective|filter/,Vf=/paint|layout|strict|content/,Hf=e=>!!e&&e!==`none`,Uf;function Wf(e){let t=Pf(e)?Jf(e):e;return Hf(t.transform)||Hf(t.translate)||Hf(t.scale)||Hf(t.rotate)||Hf(t.perspective)||!Kf()&&(Hf(t.backdropFilter)||Hf(t.filter))||Bf.test(t.willChange||``)||Vf.test(t.contain||``)}function Gf(e){let t=Xf(e);for(;Ff(t)&&!qf(t);){if(Wf(t))return t;if(zf(t))break;t=Xf(t)}return null}function Kf(){return Uf??=`u`>typeof CSS&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Uf}function qf(e){return/^(html|body|#document)$/.test(Af(e))}function Jf(e){return jf(e).getComputedStyle(e)}function Yf(e){return Pf(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Xf(e){if(Af(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||If(e)&&e.host||Mf(e);return If(t)?t.host:t}function Zf(e){let t=Xf(e);return qf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ff(t)&&Lf(t)?t:Zf(t)}function Qf(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Zf(e),i=r===e.ownerDocument?.body,a=jf(r);if(!i)return t.concat(r,Qf(r,[],n));{let e=$f(a);return t.concat(a,a.visualViewport||[],Lf(r)?r:[],e&&n?Qf(e):[])}}function $f(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var ep=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=yf.startingStyle]=`startingStyle`,e[e.endingStyle=yf.endingStyle]=`endingStyle`,e}({}),tp=function(e){return e.panelOpen=`data-panel-open`,e}({}),np={[ep.open]:``},rp={[ep.closed]:``},ip={open(e){return e?{[tp.panelOpen]:``}:null}},ap={open(e){return e?np:rp}},op=e.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function sp(){return e.useContext(op)}var cp=function(e){return e[e.None=0]=`None`,e[e.GuessFromOrder=1]=`GuessFromOrder`,e}({});function lp(t={}){let{label:n,metadata:r,textRef:i,indexGuessBehavior:a,index:o}=t,{register:s,unregister:c,subscribeMapChange:l,elementsRef:u,labelsRef:d,nextIndexRef:f}=sp(),p=e.useRef(-1),[m,h]=e.useState(o??(a===cp.GuessFromOrder?()=>{if(p.current===-1){let e=f.current;f.current+=1,p.current=e}return p.current}:-1)),g=e.useRef(null),_=e.useCallback(e=>{if(g.current=e,m!==-1&&e!==null&&(u.current[m]=e,d)){let t=n!==void 0;d.current[m]=t?n:i?.current?.textContent??e.textContent}},[m,u,d,n,i]);return J(()=>{if(o!=null)return;let e=g.current;if(e)return s(e,r),()=>{c(e)}},[o,s,c,r]),J(()=>{if(o==null)return l(e=>{let t=g.current?e.get(g.current)?.index:null;t!=null&&h(t)})},[o,l,h]),e.useMemo(()=>({ref:_,index:m}),[m,_])}function up(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}var dp=e.createContext(void 0);function fp(t=!1){let n=e.useContext(dp);if(n===void 0&&!t)throw Error(fd(16));return n}function pp(t){let{focusableWhenDisabled:n,disabled:r,composite:i=!1,tabIndex:a=0,isNativeButton:o}=t,s=i&&!1!==n,c=i&&!1===n;return{props:e.useMemo(()=>{let e={onKeyDown(e){r&&n&&e.key!==`Tab`&&e.preventDefault()}};return i||(e.tabIndex=a,!o&&r&&(e.tabIndex=n?a:-1)),(o&&(n||s)||!o&&r)&&(e[`aria-disabled`]=r),o&&(!n||c)&&(e.disabled=r),e},[i,r,n,s,c,o,a])}}function mp(t={}){let{disabled:n=!1,focusableWhenDisabled:r,tabIndex:i=0,native:a=!0,composite:o}=t,s=e.useRef(null),c=fp(!0),l=o??c!==void 0,{props:u}=pp({focusableWhenDisabled:r,disabled:n,composite:l,tabIndex:i,isNativeButton:a}),d=e.useCallback(()=>{let e=s.current;hp(e)&&l&&n&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[n,u.disabled,l]);return J(d,[d]),{getButtonProps:e.useCallback((e={})=>{let{onClick:t,onMouseDown:r,onKeyUp:i,onKeyDown:o,onPointerDown:s,...c}=e;return xd({onClick(e){if(n)return void e.preventDefault();t?.(e)},onMouseDown(e){n||r?.(e)},onKeyDown(e){if(n||(Md(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,i=e.currentTarget,s=hp(i),c=!a&&gp(i),u=r&&(a?s:!c),d=e.key===`Enter`,f=e.key===` `,p=i.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&l&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),c||a&&s?(i.click(),e.preventBaseUIHandler()):u&&(t?.(e),e.preventBaseUIHandler())}else u&&(!a&&(f||d)&&e.preventDefault(),!a&&d&&t?.(e))},onKeyUp(e){if(!n){if(Md(e),i?.(e),e.target===e.currentTarget&&a&&l&&hp(e.currentTarget)&&e.key===` `)return void e.preventDefault();e.baseUIHandlerPrevented||e.target===e.currentTarget&&!a&&!l&&e.key===` `&&t?.(e)}},onPointerDown(e){if(n)return void e.preventDefault();s?.(e)}},a?{type:`button`}:{role:`button`},u,c)},[n,u,l,a]),buttonRef:Y(e=>{s.current=e,d()})}}function hp(e){return Ff(e)&&e.tagName===`BUTTON`}function gp(e){return!!(e?.tagName===`A`&&e?.href)}var _p=`ArrowUp`,vp=`ArrowDown`,yp=`ArrowLeft`,bp=`ArrowRight`,xp=`Home`,Sp=`End`,Cp=new Set([yp,bp]),wp=new Set([yp,bp,xp,Sp]),Tp=new Set([_p,vp]),Ep=new Set([_p,vp,xp,Sp]),Dp=new Set([...Cp,...Tp]),Op=new Set([...Dp,xp,Sp]),kp=new Set([`Shift`,`Control`,`Alt`,`Meta`]);function Ap(e){return Ff(e)&&e.tagName===`INPUT`}function jp(e){return!!(Ap(e)&&e.selectionStart!=null||Ff(e)&&e.tagName===`TEXTAREA`)}function Mp(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Np(e,t,`left`),a=Pp(e),o=Pp(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginRight<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Np(e,t,`top`),r=Pp(e),i=Pp(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Np(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function Pp(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var Fp=`u`>typeof navigator,Ip=Gp(),Lp=qp(),Rp=Kp(),zp=`u`>typeof CSS&&CSS.supports?CSS.supports(`-webkit-backdrop-filter:none`):!1,Bp=Ip.platform===`MacIntel`&&Ip.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(Ip.platform);Fp&&/firefox/i.test(Rp);var Vp=Fp&&/apple/i.test(navigator.vendor);Fp&&/Edg/i.test(Rp);var Hp=Fp&&/android/i.test(Lp)||/android/i.test(Rp),Up=Fp&&Lp.toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints,Wp=Rp.includes(`jsdom/`);function Gp(){if(!Fp)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Kp(){if(!Fp)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function qp(){if(!Fp)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}function Jp(e){e.preventDefault(),e.stopPropagation()}function Yp(e){return`nativeEvent`in e}function Xp(e){return e.pointerType===``&&e.isTrusted?!0:Hp&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Zp(e){return Wp?!1:!Hp&&e.width===0&&e.height===0||Hp&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function Qp(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function $p(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var em=e.createContext(void 0);function tm(){return e.useContext(em)?.direction??`ltr`}function nm(t){let{children:n,elementsRef:r,labelsRef:i,onMapChange:a}=t,o=Y(a),s=e.useRef(0),c=td(im).current,l=td(rm).current,[u,d]=e.useState(0),f=e.useRef(u),m=Y((e,t)=>{l.set(e,t??null),f.current+=1,d(f.current)}),h=Y(e=>{l.delete(e),f.current+=1,d(f.current)}),g=e.useMemo(()=>{let e=new Map;return Array.from(l.keys()).filter(e=>e.isConnected).sort(am).forEach((t,n)=>{let r=l.get(t)??{};e.set(t,{...r,index:n})}),e},[l,u]);J(()=>{if(typeof MutationObserver!=`function`||g.size===0)return;let e=new MutationObserver(e=>{let t=new Set,n=e=>t.has(e)?t.delete(e):t.add(e);e.forEach(e=>{e.removedNodes.forEach(n),e.addedNodes.forEach(n)}),t.size===0&&(f.current+=1,d(f.current))});return g.forEach((t,n)=>{n.parentElement&&e.observe(n.parentElement,{childList:!0})}),()=>{e.disconnect()}},[g]),J(()=>{f.current===u&&(r.current.length!==g.size&&(r.current.length=g.size),i&&i.current.length!==g.size&&(i.current.length=g.size),s.current=g.size),o(g)},[o,g,r,i,u]),J(()=>()=>{r.current=[]},[r]),J(()=>()=>{i&&(i.current=[])},[i]);let _=Y(e=>(c.add(e),()=>{c.delete(e)}));J(()=>{c.forEach(e=>e(g))},[c,g]);let v=e.useMemo(()=>({register:m,unregister:h,subscribeMapChange:_,elementsRef:r,labelsRef:i,nextIndexRef:s}),[m,h,_,r,i,s]);return p(op.Provider,{value:v,children:n})}function rm(){return new Map}function im(){return new Set}function am(e,t){let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}var om={h1:`h1-go2_mI`,h2:`h2-dAyvwd`,h3:`h3-LClqyK`,h4:`h4-pzBHGr`,h5:`h5-HOx5Wp`,h6:`h6-zCNm1M`,p1:`p1-pY02jM`,p2:`p2-TsZIq5`,p3:`p3-N6QdAQ`},sm={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,p1:`p`,p2:`p`,p3:`p`},cm=e.forwardRef(({variant:t=`p2`,render:n,className:r,...i},a)=>{let o=om[t];if(n){let{className:t,...s}=n.props;return e.cloneElement(n,{...s,...i,ref:a,className:$u(o,t,r)})}let s=sm[t];return p(s,{ref:a,className:$u(o,r),...i})});({...ap}),{...Sf};var lm=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=yf.startingStyle]=`startingStyle`,e[e.endingStyle=yf.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),um=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),dm={[um.popupOpen]:``},fm={[um.popupOpen]:``,[um.pressed]:``},pm={[lm.open]:``},mm={[lm.closed]:``},hm={[lm.anchorHidden]:``},gm={open(e){return e?dm:null}},_m={open(e){return e?fm:null}},vm={open(e){return e?pm:mm},anchorHidden(e){return e?hm:null}},ym={},bm={};function xm(e){var t=bm[e];if(t!==void 0)return t.exports;var n=bm[e]={exports:{}};return ym[e](n,n.exports,xm),n.exports}xm.m=ym,xm.add=function(e){Object.assign(xm.m,e)},xm.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js"(e,t,n){t.useSyncExternalStore=n(`react?f15c`).useSyncExternalStore},"../../node_modules/use-sync-external-store/index.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store.production.js`)},"react?f15c"(t){t.exports=e}}),xm.add({"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js"(e,t,n){},"../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js"(e,t,n){var r=n(`react?1096`);function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=r.useSyncExternalStore,s=r.useRef,c=r.useEffect,l=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},"../../node_modules/use-sync-external-store/with-selector.js"(e,t,n){e.exports=n(`../../node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js`)},"react?1096"(t){t.exports=e}});function Sm(e){return`data-base-ui-${e}`}var X=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(fd(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Cm=[],wm;function Tm(){return wm}function Em(e){Cm.push(e)}function Dm(e){let t=(t,n)=>{let r=td(km).current,i;try{wm=r;for(let e of Cm)e.before(r);i=e(t,n);for(let e of Cm)e.after(r);r.didInitialize=!0}finally{wm=void 0}return i};return t.displayName=e.displayName||e.name,t}function Om(t){return e.forwardRef(Dm(t))}function km(){return{didInitialize:!1}}var Am=xm(`../../node_modules/use-sync-external-store/index.js`),jm=xm(`../../node_modules/use-sync-external-store/with-selector.js`),Mm=md(19)?Pm:Fm;function Z(e,t,n,r,i){return Mm(e,t,n,r,i)}function Nm(t,n,r,i,a){let o=e.useCallback(()=>n(t.getSnapshot(),r,i,a),[t,n,r,i,a]);return(0,Am.useSyncExternalStore)(t.subscribe,o,o)}Em({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Am.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Pm(e,t,n,r,i){let a=Tm();if(!a)return Nm(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Fm(e,t,n,r,i){return(0,jm.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Im=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t]))return void this.setState({...this.state,...e})}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Z(this,e,t,n,r)}},Lm=class extends Im{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(t,n){e.useDebugValue(t);let r=this;J(()=>{r.state[t]!==n&&r.set(t,n)},[r,t,n])}useSyncedValueWithCleanup(e,t){let n=this;J(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;J(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(t,n){e.useDebugValue(t);let r=this,i=n!==void 0;J(()=>{i&&!Object.is(r.state[t],n)&&r.setState({...r.state,[t]:n})},[r,t,n,i])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(t,n,r,i){return e.useDebugValue(t),Z(this,this.selectors[t],n,r,i)}useContextCallback(t,n){e.useDebugValue(t);let r=Y(n??cd);this.context[t]=r}useStateSetter(t){let n=e.useRef(void 0);return n.current===void 0&&(n.current=e=>{this.set(t,e)}),n.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function Rm(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var zm=class{nodesRef={current:[]};events=Rm();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},Bm=e.createContext(null),Vm=e.createContext(null),Hm=()=>e.useContext(Bm)?.id||null,Um=t=>{let n=e.useContext(Vm);return t??n};function Wm(e){let t=$d(),n=Um(e),r=Hm();return J(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function Gm(e){let{children:t,externalTree:n}=e,r=td(()=>n??new zm).current;return p(Vm.Provider,{value:r,children:t})}var Km=0,qm=class e{static create(){return new e}currentId=Km;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Km,t()},e)}isStarted(){return this.currentId!==Km}clear=()=>{this.currentId!==Km&&(clearTimeout(this.currentId),this.currentId=Km)};disposeEffect=()=>this.clear};function Jm(){let e=td(qm.create).current;return Wd(e.disposeEffect),e}function Ym(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Q(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&If(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Xm(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Zm=`data-base-ui-focusable`,Qm=`ArrowLeft`,$m=`ArrowRight`,eh=`ArrowUp`,th=`ArrowDown`;function nh(e,t){if(!Pf(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(Q(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function rh(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function ih(e){return e.matches(`html,body`)}function ah(e){return Ff(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function oh(e){return e?e.getAttribute(`role`)===`combobox`&&ah(e):!1}function sh(e){if(!e||Wp)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function ch(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function lh(e){return e?.ownerDocument||document}function uh(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function dh(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...dh(e,t.id,n)])}function fh(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}var ph={open:X(e=>e.open),transitionStatus:X(e=>e.transitionStatus),domReferenceElement:X(e=>e.domReferenceElement),referenceElement:X(e=>e.positionReference??e.referenceElement),floatingElement:X(e=>e.floatingElement),floatingId:X(e=>e.floatingId)},mh=class extends Lm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Rm(),nested:n,triggerElements:i},ph),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&$p(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly)return void this.context.onOpenChange?.(e,t);this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}},hh={intentional:`onClick`,sloppy:`onPointerDown`};function gh(){return!1}function _h(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function vh(t,n={}){let{enabled:r=!0,escapeKey:i=!0,outsidePress:a=!0,outsidePressEvent:o=`sloppy`,referencePress:s=gh,referencePressEvent:c=`sloppy`,bubbles:l,externalTree:u}=n,d=`rootStore`in t?t.rootStore:t,f=d.useState(`open`),p=d.useState(`floatingElement`),{dataRef:m}=d.context,h=Um(u),g=Y(typeof a==`function`?a:()=>!1),_=typeof a==`function`?g:a,v=!1!==_,y=Y(()=>o),{escapeKey:b,outsidePress:x}=_h(l),S=e.useRef(!1),C=e.useRef(!1),w=e.useRef(!1),T=e.useRef(!1),E=e.useRef(``),D=e.useRef(null),O=Jm(),k=Jm(),A=Y(()=>{k.clear(),m.current.insideReactTree=!1}),j=Y(e=>{let t=m.current.floatingContext?.nodeId;return(h?dh(h.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=Y(e=>rh(e,d.select(`floatingElement`))||rh(e,d.select(`domReferenceElement`))),N=Y(e=>{s()&&d.setOpen(!1,of(sf,e.nativeEvent))}),P=Y(e=>{if(!f||!r||!i||e.key!==`Escape`||T.current||!b&&j(`__escapeKeyBubbles`))return;let t=of(pf,Yp(e)?e.nativeEvent:e);d.setOpen(!1,t),t.isCanceled||e.preventDefault(),!b&&!t.isPropagationAllowed&&e.stopPropagation()}),F=Y(()=>{m.current.insideReactTree=!0,k.start(0,A)}),I=Y(e=>{if(!f||!r||e.button!==0)return;let t=Xm(e.nativeEvent);Q(d.select(`floatingElement`),t)&&(S.current||(S.current=!0,C.current=!1))}),L=Y(e=>{f&&r&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&S.current&&(C.current=!0)});e.useEffect(()=>{if(!f||!r)return;m.current.__escapeKeyBubbles=b,m.current.__outsidePressBubbles=x;let e=new qm,t=new qm;function n(){e.clear(),T.current=!0}function a(){e.start(Kf()?5:0,()=>{T.current=!1})}function o(){w.current=!0,t.start(0,()=>{w.current=!1})}function s(){S.current=!1,C.current=!1}function c(){let e=E.current,t=e!==`pen`&&e?e:`mouse`,n=y(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function l(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function u(e){let t=m.current.floatingContext?.nodeId,n=h&&dh(h.nodesRef.current,t).some(t=>rh(e,t.context?.elements.floating));return M(e)||n}function g(e){if(l(e)){e.type!==`click`&&!M(e)&&(t.clear(),w.current=!1),A();return}if(m.current.insideReactTree)return void A();let n=Xm(e),r=`[${Sm(`inert`)}]`,i=Pf(n)?n.getRootNode():null,a=Array.from((If(i)?i:lh(d.select(`floatingElement`))).querySelectorAll(r)),o=d.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>Q(e,n))))return;let s=Pf(n)?n:null;for(;s&&!qf(s);){let e=Xf(s);if(qf(e)||!Pf(e))break;s=e}if(!(a.length&&Pf(n)&&!ih(n)&&!Q(n,d.select(`floatingElement`))&&a.every(e=>!Q(s,e)))){if(Ff(n)&&!(`touches`in e)){let t=qf(n),r=Jf(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}u(e)||(c()===`intentional`&&w.current?(t.clear(),w.current=!1):(typeof _!=`function`||_(e))&&(j(`__outsidePressBubbles`)||(d.setOpen(!1,of(uf,e)),A())))}}function k(e){c()===`sloppy`&&e.pointerType!==`touch`&&d.select(`open`)&&r&&!M(e)&&g(e)}function N(e){if(c()!==`sloppy`||!d.select(`open`)||!r||M(e))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function F(e,t){let n=Xm(e);if(!n)return;let r=Of(n,e.type,()=>{t(e),r()})}function I(e){E.current=`touch`,F(e,N)}function L(e){O.clear(),e.type===`pointerdown`&&(E.current=e.pointerType),(e.type!==`mousedown`||!D.current||D.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?k(e):g(e)})}function ee(e){if(!S.current)return;let n=C.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`)n&&o();else if(!u(e)){if(n)return void o();(typeof _!=`function`||_(e))&&(t.clear(),w.current=!0,A())}}}function R(e){if(c()!==`sloppy`||!D.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(g(e),O.clear(),D.current=null)}function z(e){F(e,R)}function B(e){c()===`sloppy`&&D.current&&!M(e)&&(D.current.dismissOnTouchEnd&&g(e),O.clear(),D.current=null)}function V(e){F(e,B)}let H=lh(p),U=uh(i&&uh(Of(H,`keydown`,P),Of(H,`compositionstart`,n),Of(H,`compositionend`,a)),v&&uh(Of(H,`click`,L,!0),Of(H,`pointerdown`,L,!0),Of(H,`pointerup`,ee,!0),Of(H,`pointercancel`,ee,!0),Of(H,`mousedown`,L,!0),Of(H,`mouseup`,ee,!0),Of(H,`touchstart`,I,!0),Of(H,`touchmove`,z,!0),Of(H,`touchend`,V,!0)));return()=>{U(),e.clear(),t.clear(),s(),w.current=!1}},[m,p,i,v,_,f,r,b,x,P,A,y,j,M,h,d,O]),e.useEffect(A,[_,A]);let ee=e.useMemo(()=>({onKeyDown:P,[hh[c]]:N,...c!==`intentional`&&{onClick:N}}),[P,N,c]),R=e.useMemo(()=>({onKeyDown:P,onPointerDown:L,onMouseDown:L,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,L]);return e.useMemo(()=>r?{reference:ee,floating:R,trigger:ee}:{},[r,ee,R])}var yh=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function bh(t){let{popupStore:n,treatPopupAsFloatingElement:r=!1,floatingRootContext:i,floatingId:a,nested:o,onOpenChange:s}=t,c=n.useState(`open`),l=n.useState(`activeTriggerElement`),u=n.useState(r?`popupElement`:`positionerElement`),d=n.context.triggerElements,f=s,p=e.useRef(null);i===void 0&&p.current===null&&(p.current=new mh({open:c,transitionStatus:void 0,referenceElement:l,floatingElement:u,triggerElements:d,onOpenChange:f,floatingId:a,syncOnly:!0,nested:o}));let m=i??p.current;return n.useSyncedValue(`floatingId`,a),J(()=>{let e={open:c,floatingId:a,referenceElement:l,floatingElement:u};Pf(l)&&(e.domReferenceElement=l),m.state.positionReference===m.state.referenceElement&&(e.positionReference=l),m.update(e)},[c,a,l,u,m]),m.context.onOpenChange=f,m.context.nested=o,m}var xh={tabIndex:-1,[Zm]:``};function Sh(t,n,r=!1){let i=$d(),a=Hm()!=null,o=e.useRef(null);t===void 0&&o.current===null&&(o.current=n(i,a));let s=t??o.current;return bh({popupStore:s,treatPopupAsFloatingElement:r,floatingRootContext:s.state.floatingRootContext,floatingId:i,nested:a,onOpenChange:s.setOpen}),{store:s,internalStore:o.current}}function Ch(t,n){let r=e.useRef(null),i=e.useRef(null);return e.useCallback(e=>{if(t===void 0)return;let a=!1;if(r.current!==null){let e=r.current,t=i.current,o=n.context.triggerElements.getById(e);t&&o===t&&(n.context.triggerElements.delete(e),a=!0),r.current=null,i.current=null}if(e!==null&&(r.current=t,i.current=e,n.context.triggerElements.add(t,e),a=!0),a){let e=n.context.triggerElements.size;n.select(`open`)&&n.state.triggerCount!==e&&n.set(`triggerCount`,e)}},[n,t])}function wh(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Th(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Ch(e,n),o=Y(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e)return void n.update({activeTriggerElement:t,...i?r:null});o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return J(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Eh(e){let t=e.useState(`open`);J(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function Dh(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Yd(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=Y(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return Tf({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Oh(e,t){e.useSyncedValues(t),J(()=>()=>{e.update({activeTriggerProps:ud,inactiveTriggerProps:ud,popupProps:ud})},[e])}function kh(t){let n=e.useRef(!0);n.current&&(n.current=!1,t())}function Ah(t,n={}){let{enabled:r=!0,event:i=`click`,toggle:a=!0,ignoreMouse:o=!1,stickIfOpen:s=!0,touchOpenDelay:c=0,reason:l=sf}=n,u=`rootStore`in t?t.rootStore:t,d=u.context.dataRef,f=e.useRef(void 0),p=Jd(),m=Jm(),h=e.useMemo(()=>{function e(e,t,n,r){let i=of(l,t,n);e&&r===`touch`&&c>0?m.start(c,()=>{u.setOpen(!0,i)}):u.setOpen(e,i)}function t(e,t,n){let r=d.current.openEvent,i=u.select(`domReferenceElement`)!==t;return e&&i||!e||!a?!0:r&&s?!n(r.type):!1}return{onPointerDown(e){f.current=e.pointerType},onMouseDown(n){let r=f.current,a=n.nativeEvent,s=u.select(`open`);if(n.button!==0||i===`click`||Qp(r,!0)&&o)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),l=Xm(a);if(ah(l))return void e(c,a,l,r);let d=n.currentTarget;p.request(()=>{e(c,a,d,r)})},onClick(n){if(i===`mousedown-only`)return;let r=f.current;i===`mousedown`&&r?f.current=void 0:Qp(r,!0)&&o||e(t(u.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,r)},onKeyDown(){f.current=void 0}}},[d,i,o,l,u,s,a,p,m,c]);return e.useMemo(()=>r?{reference:h}:ud,[r,h])}var jh={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Mh={...jh,position:`fixed`,top:0,left:0},Nh={...jh,position:`absolute`},Ph=[`top`,`right`,`bottom`,`left`],Fh=Math.min,Ih=Math.max,Lh=Math.round,Rh=Math.floor,zh=e=>({x:e,y:e}),Bh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Vh(e,t,n){return Ih(e,Fh(t,n))}function Hh(e,t){return typeof e==`function`?e(t):e}function Uh(e){return e.split(`-`)[0]}function Wh(e){return e.split(`-`)[1]}function Gh(e){return e===`x`?`y`:`x`}function Kh(e){return e===`y`?`height`:`width`}function qh(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Jh(e){return Gh(qh(e))}function Yh(e,t,n){n===void 0&&(n=!1);let r=Wh(e),i=Jh(e),a=Kh(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ig(o)),[o,ig(o)]}function Xh(e){let t=ig(e);return[Zh(e),t,Zh(t)]}function Zh(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Qh=[`left`,`right`],$h=[`right`,`left`],eg=[`top`,`bottom`],tg=[`bottom`,`top`];function ng(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$h:Qh:t?Qh:$h;case`left`:case`right`:return t?eg:tg;default:return[]}}function rg(e,t,n,r){let i=Wh(e),a=ng(Uh(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Zh)))),a}function ig(e){let t=Uh(e);return Bh[t]+e.slice(t.length)}function ag(e){return{top:0,right:0,bottom:0,left:0,...e}}function og(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ag(e)}function sg(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function cg(e,t,n){return Math.floor(e/t)!==n}function lg(e,t){return t<0||t>=e.length}function ug(e,t){return fg(e.current,{disabledIndices:t})}function dg(e,t){return fg(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function fg(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&_g(e,a,r));return a}function pg(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1),r=i(t,u,n[o][e]??n[o][0]);o=a[r]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!_g(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=Rh(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!_g(e,r,s))return r}};d&&Jp(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=fg(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=fg(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}lg(e,f)&&(f=u)}if(n===`both`){let n=Rh(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Jp(t),u%o===o-1?r&&(f=fg(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=fg(e,{startingIndex:u,disabledIndices:s}),r&&cg(f,o,n)&&(f=fg(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),cg(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Jp(t),u%o===0?r&&(f=fg(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=fg(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&cg(f,o,n)&&(f=fg(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),cg(f,o,n)&&(f=u));let c=Rh(l/o)===n;lg(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:fg(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function mg(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function hg(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function gg(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function _g(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!yg(r)||!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function vg(e){return e.visibility===`hidden`||e.visibility===`collapse`}function yg(e,t=e?Jf(e):null){return!e||!e.isConnected||!t||vg(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var bg=e.forwardRef(function(t,n){let[r,i]=e.useState();J(()=>{Vp&&i(`button`)},[]);let a={tabIndex:0,role:r};return p(`span`,{...t,ref:n,style:Mh,"aria-hidden":!r||void 0,...a,"data-base-ui-focus-guard":``})}),xg=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Sg(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return If(n)?n.host:null}function Cg(e){for(let t of Array.from(e.children))if(Af(t)===`summary`)return t;return null}function wg(e,t){let n=Cg(t);return!!n&&(e===n||Q(n,e))}function Tg(e){let t=e?Af(e):``;return e!=null&&e.matches(xg)&&(t!==`summary`||e.parentElement!=null&&Af(e.parentElement)===`details`&&Cg(e.parentElement)===e)&&(t!==`details`||Cg(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Eg(e){if(!Tg(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Sg(t)){let n=t!==e,r=Af(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Af(t)===`details`&&!t.open&&!wg(e,t)||t.hasAttribute(`hidden`)||!r&&!Dg(t,n))return!1}return!0}function Dg(e,t){let n=Jf(e);return t?n.display!==`none`:yg(e,n)}function Og(e){let t=e.tabIndex;if(t<0){let t=Af(e);if(t===`details`||t===`audio`||t===`video`||Ff(e)&&e.isContentEditable)return 0}return t}function kg(e){if(Af(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Ag(e,t){let n=kg(e);if(!n)return!0;let r=t.find(e=>{let t=kg(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=kg(e);return t?.name===n.name&&t.form===n.form})===n}function jg(e){if(Ff(e)&&Af(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Ff(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Mg(e,t){jg(e).forEach(e=>{Tg(e)&&t.push(e),Mg(e,t)})}function Ng(e,t,n){jg(e).forEach(e=>{Ff(e)&&e.matches(t)&&n.push(e),Ng(e,t,n)})}function Pg(e){return Eg(e)&&Og(e)>=0}function Fg(e){let t=[];return Mg(e,t),t.filter(Eg)}function Ig(e){let t=Fg(e);return t.filter(e=>Og(e)>=0&&Ag(e,t))}function Lg(e,t){let n=Ig(e),r=n.length;if(r===0)return;let i=Ym(lh(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Rg(e){return Lg(lh(e).body,1)||e}function zg(e){return Lg(lh(e).body,-1)||e}function Bg(e,t){if(!e)return null;let n=Ig(lh(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Vg(e){return Bg(e,1)}function Hg(e){return Bg(e,-1)}function Ug(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Q(n,r)}function Wg(e){Ig(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Gg(e){let t=[];Ng(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Kg={style:{transition:`none`}},qg={fallbackAxisSide:`none`},Jg={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},Yg=e.createContext(null),Xg=()=>e.useContext(Yg),Zg=Sm(`portal`);function Qg(t={}){let{ref:n,container:r,componentProps:i=ud,elementProps:a}=t,o=$d(),s=Xg()?.portalNode,[c,l]=e.useState(null),[u,d]=e.useState(null),f=Y(e=>{e!==null&&d(e)}),p=e.useRef(null);J(()=>{if(r===null){p.current&&(p.current=null,d(null),l(null));return}if(o==null)return;let e=(r&&(Nf(r)?r:r.current))??s??document.body;e==null?p.current&&(p.current=null,d(null),l(null)):p.current!==e&&(p.current=e,d(null),l(e))},[r,s,o]);let m=Fd(`div`,i,{ref:[n,f],props:[{id:o,[Zg]:``},a]});return{portalNode:u,portalSubtree:c&&m?h.createPortal(m,c):null}}var $g=e.forwardRef(function(t,n){let{render:r,className:i,style:a,children:o,container:s,renderGuards:c,...l}=t,{portalNode:u,portalSubtree:d}=Qg({container:s,ref:n,componentProps:t,elementProps:l}),f=e.useRef(null),g=e.useRef(null),_=e.useRef(null),v=e.useRef(null),[y,b]=e.useState(null),x=e.useRef(!1),S=y?.modal,C=y?.open,w=typeof c==`boolean`?c:!!y&&!y.modal&&y.open&&!!u;e.useEffect(()=>{if(!u||S)return;function e(e){u&&e.relatedTarget&&Ug(e)&&(e.type===`focusin`?x.current&&=(Gg(u),!1):(Wg(u),x.current=!0))}return uh(Of(u,`focusin`,e,!0),Of(u,`focusout`,e,!0))},[u,S]),e.useEffect(()=>{u&&!1===C&&(Gg(u),x.current=!1)},[C,u]);let T=e.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:g,beforeInsideRef:_,afterInsideRef:v,portalNode:u,setFocusManagerState:b}),[u]);return m(e.Fragment,{children:[d,m(Yg.Provider,{value:T,children:[w&&u&&p(bg,{"data-type":`outside`,ref:f,onFocus:e=>{Ug(e,u)?_.current?.focus():zg(y?y.domReference:null)?.focus()}}),w&&u&&p(`span`,{"aria-owns":u.id,style:Jg}),u&&h.createPortal(o,u),w&&u&&p(bg,{"data-type":`outside`,ref:g,onFocus:e=>{Ug(e,u)?v.current?.focus():(Rg(y?y.domReference:null)?.focus(),y?.closeOnFocusOut&&y?.onOpenChange(!1,of(`focus-out`,e.nativeEvent)))}})]})]})});function e_(t,n){let r=e.useRef(t),i=Y(n);J(()=>{r.current!==t&&i(r.current)},[t,i]),J(()=>{r.current=t},[t])}var t_=0;function n_(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(t_);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),cd;let o=requestAnimationFrame(a);return t_=o,()=>{t_===o&&(cancelAnimationFrame(o),t_=0)}}var r_={inert:new WeakMap,"aria-hidden":new WeakMap},i_=`data-base-ui-inert`,a_={inert:new WeakSet,"aria-hidden":new WeakSet},o_=new WeakMap,s_=0;function c_(e){return a_[e]}function l_(e){return e?If(e)?e.host:l_(e.parentNode):null}var u_=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=l_(t);return e.contains(n)?n:null}).filter(e=>e!=null),d_=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},f_=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Af(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function p_(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=u_(t,e),u=i?u_(t,a):[],d=new Set(u),f=i?f_(t,d_(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=r_[o],n=c_(o);c=n,s=e;let r=u_(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);f_(t,d_(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(o_.get(e)||0)+1;o_.set(e,t),m.push(e),t===1&&e.setAttribute(i_,``)}),s_+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(o_.get(e)||0)-1;o_.set(e,t),t||e.removeAttribute(i_)}),--s_,s_||(r_.inert=new WeakMap,r_[`aria-hidden`]=new WeakMap,a_.inert=new WeakSet,a_[`aria-hidden`]=new WeakSet,o_=new WeakMap)}}function m_(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=lh(e[0]).body;return p_(e,o,n,r,{mark:i,markerIgnoreElements:a})}function h_(e,t){let n=jf(Xm(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var g_=20,__=[];function v_(){__=__.filter(e=>e.deref()?.isConnected)}function y_(e){v_(),e&&Af(e)!==`body`&&(__.push(new WeakRef(e)),__.length>g_&&(__=__.slice(-20)))}function b_(){return v_(),__[__.length-1]?.deref()}function x_(e){return e?Pg(e)?e:Ig(e)[0]||e:null}function S_(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Fg(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Pg(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function C_(t){let{context:n,children:r,disabled:i=!1,initialFocus:a=!0,returnFocus:o=!0,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:h,externalTree:g,getInsideElements:_}=t,v=`rootStore`in n?n.rootStore:n,y=v.useState(`open`),b=v.useState(`domReferenceElement`),x=v.useState(`floatingElement`),{events:S,dataRef:C}=v.context,w=Y(()=>C.current.floatingContext?.nodeId),T=!1===a,E=oh(b)&&T,D=e.useRef([`content`]),O=Ef(a),k=Ef(o),A=Ef(u),j=Um(g),M=Xg(),N=e.useRef(!1),P=e.useRef(!1),F=e.useRef(!1),I=e.useRef(null),L=e.useRef(``),ee=e.useRef(``),R=e.useRef(null),z=e.useRef(null),B=nd(R,h,M?.beforeInsideRef),V=nd(z,M?.afterInsideRef),H=Jm(),U=Jm(),W=Jd(),G=M!=null,K=ch(x),te=Y((e=K)=>e?Ig(e):[]),ne=Y(()=>_?.().filter(e=>e!=null)??[]);e.useEffect(()=>{if(i||!c)return;function e(e){e.key===`Tab`&&Q(K,Ym(lh(K)))&&te().length===0&&!E&&Jp(e)}return Of(lh(K),`keydown`,e)},[i,K,c,E,te]),e.useEffect(()=>{if(i||!y)return;let e=lh(K);function t(){F.current=!1}function n(e){let t=Xm(e),n=ne(),r=Q(x,t)||Q(b,t)||Q(M?.portalNode,t)||n.some(e=>e===t||Q(e,t));F.current=!r,ee.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(P.current=!0)}function r(){ee.current=`keyboard`}return uh(Of(e,`pointerdown`,n,!0),Of(e,`pointerup`,t,!0),Of(e,`pointercancel`,t,!0),Of(e,`keydown`,r,!0))},[i,x,b,K,y,M,ne]),e.useEffect(()=>{if(i||!l)return;let e=lh(K);function t(){P.current=!0,U.start(0,()=>{P.current=!1})}function n(e){let t=Xm(e);Pg(t)&&(I.current=t)}function r(t){let n=t.relatedTarget,r=t.currentTarget,i=Xm(t);queueMicrotask(()=>{let a=w(),o=v.context.triggerElements,l=ne(),u=n?.hasAttribute(Sm(`focus-guard`))&&[R.current,z.current,M?.beforeInsideRef.current,M?.afterInsideRef.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,Cf(f),Cf(d)].includes(n),p=!(Q(b,n)||Q(x,n)||Q(n,x)||Q(M?.portalNode,n)||l.some(e=>e===n||Q(e,n))||n!=null&&o.hasElement(n)||o.hasMatchingElement(e=>Q(e,n))||u||j&&(dh(j.nodesRef.current,a).find(e=>Q(e.context?.elements.floating,n)||Q(e.context?.elements.domReference,n))||fh(j.nodesRef.current,a).find(e=>[e.context?.elements.floating,ch(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===b&&K&&S_(K,D),s&&r!==b&&!yg(i)&&Ym(e)===e.body){if(Ff(K)&&(K.focus(),s===`popup`))return void W.request(()=>{K.focus()});let e=te(),t=I.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||K;Ff(n)&&n.focus()}C.current.insideReactTree?C.current.insideReactTree=!1:(E||!c)&&n&&p&&!P.current&&(E||n!==b_())&&(N.current=!0,v.setOpen(!1,of(ff,t)))})}function a(){F.current||(C.current.insideReactTree=!0,H.start(0,()=>{C.current.insideReactTree=!1}))}let o=Ff(b)?b:null;if(x||o)return uh(o&&Of(o,`focusout`,r),o&&Of(o,`pointerdown`,t),x&&Of(x,`focusin`,n),x&&Of(x,`focusout`,r),x&&M&&Of(x,`focusout`,a,!0))},[i,b,x,K,c,j,M,v,l,s,te,E,w,D,C,H,U,W,d,f,ne]),e.useEffect(()=>{if(i||!x||!y)return;let e=Array.from(M?.portalNode?.querySelectorAll(`[${Sm(`portal`)}]`)||[]),t=(j?fh(j.nodesRef.current,w()):[]).find(e=>oh(e.context?.elements.domReference||null))?.context?.elements.domReference,n=m_([x,...e,R.current,z.current,M?.beforeOutsideRef.current,M?.afterOutsideRef.current,...ne(),t,Cf(f),Cf(d),E?b:null].filter(e=>e!=null),{ariaHidden:c||E,mark:!1}),r=m_([x,...e].filter(e=>e!=null));return()=>{r(),n()}},[y,i,b,x,c,M,E,j,w,d,f,ne]),J(()=>{if(!y||i||!Ff(K))return;let e=lh(K),t=Ym(e);queueMicrotask(()=>{let n=O.current,r=typeof n==`function`?n(A.current||``):n;if(r===void 0||!1===r||Q(K,t))return;let i=null,a=()=>(i??=te(K),i[0]||K),o;o=!0===r||r===null?a():Cf(r),o||=a();let s=Q(K,Ym(e));n_(o,{preventScroll:o===K,shouldFocus(){if(s)return!0;let t=Ym(e);return!(t!==o&&Q(K,t))}})})},[i,y,K,te,O,A]),J(()=>{if(i||!K)return;let e=lh(K);y_(Ym(e));function t(e){if(e.open||(L.current=h_(e.nativeEvent,ee.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(N.current=!0),e.reason===`outside-press`){if(e.nested)N.current=!1;else if(Xp(e.nativeEvent)||Zp(e.nativeEvent))N.current=!1;else{let e=!1;lh(K).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?N.current=!1:N.current=!0}}}S.on(`openchange`,t);function n(){let e=k.current,t=typeof e==`function`?e(L.current):e;if(t===void 0||!1===t)return null;if(t===null&&(t=!0),typeof t==`boolean`)return b?.isConnected?b:b_()||null;let n=b?.isConnected?b:b_();return Cf(t)||n||null}return()=>{S.off(`openchange`,t);let r=Ym(e),i=ne(),a=Q(x,r)||i.some(e=>e===r||Q(e,r))||j&&dh(j.nodesRef.current,w(),!1).some(e=>Q(e.context?.elements.floating,r)),o=k.current,s=n();queueMicrotask(()=>{let t=x_(s),n=typeof o!=`boolean`;o&&!N.current&&Ff(t)&&(n||t===r||r===e.body||a)&&t.focus({preventScroll:!0}),N.current=!1})}},[i,x,K,k,S,j,b,w,ne]),J(()=>{if(!zp||y||!x)return;let e=Ym(lh(x));Ff(e)&&ah(e)&&Q(x,e)&&e.blur()},[y,x]),J(()=>{if(!i&&M)return M.setFocusManagerState({modal:c,closeOnFocusOut:l,open:y,onOpenChange:v.setOpen,domReference:b}),()=>{M.setFocusManagerState(null)}},[i,M,c,y,v,l,b]),J(()=>{if(!i&&K)return S_(K,D),()=>{queueMicrotask(v_)}},[i,K,D]);let re=!i&&(!c||!E)&&(G||c);return m(e.Fragment,{children:[re&&p(bg,{"data-type":`inside`,ref:B,onFocus:e=>{if(c){let e=te();n_(e[e.length-1])}else M?.portalNode&&(N.current=!1,Ug(e,M.portalNode)?Rg(b)?.focus():Cf(f??M.beforeOutsideRef)?.focus())}}),r,re&&p(bg,{"data-type":`inside`,ref:V,onFocus:e=>{c?n_(te()[0]):M?.portalNode&&(l&&(N.current=!0),Ug(e,M.portalNode)?zg(b)?.focus():Cf(d??M.afterOutsideRef)?.focus())}})]})}function w_(t){let n=e.useRef(``),r=e.useCallback(e=>{e.defaultPrevented||(n.current=e.pointerType,t(e,e.pointerType))},[t]);return{onClick:e.useCallback(e=>{if(e.detail===0)return void t(e,`keyboard`);`pointerType`in e?t(e,e.pointerType):t(e,n.current),n.current=``},[t]),onPointerDown:r}}function T_(t,n){let{onClick:r,onPointerDown:i}=w_(Y((e,r)=>{(typeof t==`function`?t():t)||n(r||(Bp?`touch`:``))}));return e.useMemo(()=>({onClick:r,onPointerDown:i}),[r,i])}function E_(t){let[n,r]=e.useState(null),i=T_(t,r);return e_(t,e=>{e&&!t&&r(null)}),e.useMemo(()=>({openMethod:n,triggerProps:i}),[n,i])}var D_={},O_={},k_=``;function A_(e){if(`u`<typeof document)return!1;let t=lh(e);return jf(t).innerWidth-t.documentElement.clientWidth>0}function j_(e){if(!(`u`>typeof CSS&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||`u`<typeof document)return!1;let t=lh(e),n=t.documentElement,r=t.body,i=Lf(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function M_(e){let t=lh(e),n=t.documentElement,r=t.body,i=Lf(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function N_(e){let t=lh(e),n=t.documentElement,r=t.body,i=jf(n),a=0,o=0,s=!1,c=qd.create();if(zp&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,D_={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},k_=n.style.scrollBehavior,O_={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Lf(n)?n:r;s=j_(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,D_),Object.assign(r.style,O_),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=k_)}function d(){u(),c.request(l)}l();let f=Of(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var P_=new class{lockCount=0;restore=null;timeoutLock=qm.create();timeoutUnlock=qm.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=lh(e).documentElement,n=jf(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=cd;return}let r=Bp||!A_(e);this.restore=r?M_(e):N_(e)}};function F_(e=!0,t=null){J(()=>{if(e)return P_.acquire(t)},[e,t])}var I_=e.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return p(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function L_(){return new mh({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new yh,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function R_(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:L_(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:ud,inactiveTriggerProps:ud,popupProps:ud}}function z_(e,t,n=!1){return new mh({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var B_=X(e=>e.triggerIdProp??e.activeTriggerId),V_=X(e=>e.openProp??e.open),H_=X(e=>(e.popupElement?.id??e.floatingId)||void 0);function U_(e,t){return t!==void 0&&V_(e)&&B_(e)===t}function W_(e,t){return U_(e,t)?!0:t!==void 0&&V_(e)&&B_(e)==null&&e.triggerCount===1}var G_={open:V_,mounted:X(e=>e.mounted),transitionStatus:X(e=>e.transitionStatus),floatingRootContext:X(e=>e.floatingRootContext),triggerCount:X(e=>e.triggerCount),preventUnmountingOnClose:X(e=>e.preventUnmountingOnClose),payload:X(e=>e.payload),activeTriggerId:B_,activeTriggerElement:X(e=>e.mounted?e.activeTriggerElement:null),popupId:H_,isTriggerActive:X((e,t)=>t!==void 0&&B_(e)===t),isOpenedByTrigger:X((e,t)=>U_(e,t)),isMountedByTrigger:X((e,t)=>t!==void 0&&B_(e)===t&&e.mounted),triggerProps:X((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:X((e,t)=>W_(e,t)?H_(e):void 0),popupProps:X(e=>e.popupProps),popupElement:X(e=>e.popupElement),positionerElement:X(e=>e.positionerElement)};function K_(e){return md(19)?e:e?`true`:void 0}(function(e){return e[e.open=lm.open]=`open`,e[e.closed=lm.closed]=`closed`,e[e.startingStyle=lm.startingStyle]=`startingStyle`,e[e.endingStyle=lm.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e})({}),{...vm,...Sf},{...G_},X(e=>e.modal),X(e=>e.nested),X(e=>e.nestedOpenDialogCount),X(e=>e.nestedOpenDrawerCount),X(e=>e.disablePointerDismissal),X(e=>e.openMethod),X(e=>e.descriptionElementId),X(e=>e.titleElementId),X(e=>e.viewportElement),X(e=>e.role),{...vm,...Sf},function(e){return e[e.open=lm.open]=`open`,e[e.closed=lm.closed]=`closed`,e[e.startingStyle=lm.startingStyle]=`startingStyle`,e[e.endingStyle=lm.endingStyle]=`endingStyle`,e.nested=`data-nested`,e.nestedDialogOpen=`data-nested-dialog-open`,e}({}),{...vm,...Sf};function q_(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var J_=(e,t)=>Object.is(e,t);function Y_(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function X_(e,t,n){return!e||e.length===0?!1:e.some(e=>e!==void 0&&Y_(t,e,n))}function Z_(e,t,n){return!e||e.length===0?-1:e.findIndex(e=>e!==void 0&&Y_(e,t,n))}function Q_(e,t,n){return e.filter(e=>!Y_(t,e,n))}function $_(e){return e!=null&&e.length>0&&typeof e[0]==`object`&&e[0]!=null&&`items`in e[0]}function ev(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if($_(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function tv(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return q_(e)}function nv(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?q_(e.value):q_(e)}function rv(e,t,n){function r(){return tv(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return t[e]??r();if(Array.isArray(t)){let n=t,i=$_(n)?n.flatMap(e=>e.items):n;if(typeof e!=`object`||!e){let t=i.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=i.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function iv(t,n,r){return t.reduce((t,i,a)=>(a>0&&t.push(`, `),t.push(p(e.Fragment,{children:rv(i,n,r)},a)),t),[])}var av=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),ov={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},sv={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},cv={disabled:!1,...sv},lv={valid(e){return e===null?null:e?{[av.valid]:``}:{[av.invalid]:``}}},uv={invalid:void 0,name:void 0,validityData:{state:ov,errors:[],error:``,value:``,initialValue:null},setValidityData:cd,disabled:void 0,touched:sv.touched,setTouched:cd,dirty:sv.dirty,setDirty:cd,filled:sv.filled,setFilled:cd,focused:sv.focused,setFocused:cd,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:cv,markedDirtyRef:{current:!1},registerFieldControl:cd,validation:{getValidationProps:(e=ud)=>e,getInputValidationProps:(e=ud)=>e,inputRef:{current:null},commit:async()=>{}}},dv=e.createContext(uv);function fv(t=!0){let n=e.useContext(dv);if(n.setValidityData===cd&&!t)throw Error(fd(28));return n}var pv=e.createContext({controlId:void 0,registerControlId:cd,labelId:void 0,setLabelId:cd,messageIds:[],setMessageIds:cd,getDescriptionProps:e=>e});function mv(){return e.useContext(pv)}function hv(e){return e==null?void 0:`${e}-label`}function gv(e,t){return e??t}function _v(e,t,n){let{reference:r,floating:i}=e,a=qh(t),o=Jh(t),s=Kh(o),c=Uh(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Wh(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function vv(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Hh(t,e),p=og(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=sg(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=sg(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var yv=50,bv=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:vv},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=_v(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<yv&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=_v(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},xv=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Hh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Uh(r),_=qh(o),v=Uh(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ig(o)]:Xh(o)),x=p!==`none`;!d&&x&&b.push(...rg(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Yh(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===qh(t)||T.every(e=>qh(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=qh(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Sv(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Cv(e){return Ph.some(t=>e[t]>=0)}var wv=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Hh(e,t);switch(i){case`referenceHidden`:{let e=Sv(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Cv(e)}}}case`escaped`:{let e=Sv(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Cv(e)}}}default:return{}}}}},Tv=new Set([`left`,`top`]);async function Ev(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Uh(n),s=Wh(n),c=qh(n)===`y`,l=Tv.has(o)?-1:1,u=a&&c?-1:1,d=Hh(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?-1*m:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Dv=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ev(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Ov=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Hh(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=qh(Uh(i)),p=Gh(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Vh(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Vh(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},kv=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Hh(e,t),u={x:n,y:r},d=qh(i),f=Gh(d),p=u[f],m=u[d],h=Hh(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Tv.has(Uh(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Av=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Hh(e,t),u=await o.detectOverflow(t,l),d=Uh(i),f=Wh(i),p=qh(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Fh(h-u[g],v),x=Fh(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ih(u.left,0),t=Ih(u.right,0),n=Ih(u.top,0),r=Ih(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ih(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ih(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function jv(e){let t=Jf(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Ff(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Lh(n)!==a||Lh(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Mv(e){return Pf(e)?e:e.contextElement}function Nv(e){let t=Mv(e);if(!Ff(t))return zh(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=jv(t),o=(a?Lh(n.width):n.width)/r,s=(a?Lh(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Pv=zh(0);function Fv(e){let t=jf(e);return!Kf()||!t.visualViewport?Pv:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Iv(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==jf(e)?!1:t}function Lv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Mv(e),o=zh(1);t&&(r?Pf(r)&&(o=Nv(r)):o=Nv(e));let s=Iv(a,n,r)?Fv(a):zh(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=jf(a),t=r&&Pf(r)?jf(r):r,n=e,i=$f(n);for(;i&&r&&t!==n;){let e=Nv(i),t=i.getBoundingClientRect(),r=Jf(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=jf(i),i=$f(n)}}return sg({width:u,height:d,x:c,y:l})}function Rv(e,t){let n=Yf(e).scrollLeft;return t?t.left+n:Lv(Mf(e)).left+n}function zv(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Rv(e,n),y:n.top+t.scrollTop}}function Bv(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Mf(r),s=t?zf(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=zh(1),u=zh(0),d=Ff(r);if((d||!d&&!a)&&((Af(r)!==`body`||Lf(o))&&(c=Yf(r)),d)){let e=Lv(r);l=Nv(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=!o||d||a?zh(0):zv(o,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Vv(e){return Array.from(e.getClientRects())}function Hv(e){let t=Mf(e),n=Yf(e),r=e.ownerDocument.body,i=Ih(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Ih(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Rv(e),s=-n.scrollTop;return Jf(r).direction===`rtl`&&(o+=Ih(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Uv=25;function Wv(e,t){let n=jf(e),r=Mf(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Kf();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=Rv(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Uv&&(a-=o)}else l<=Uv&&(a+=l);return{width:a,height:o,x:s,y:c}}function Gv(e,t){let n=Lv(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ff(e)?Nv(e):zh(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Kv(e,t,n){let r;if(t===`viewport`)r=Wv(e,n);else if(t===`document`)r=Hv(Mf(e));else if(Pf(t))r=Gv(t,n);else{let n=Fv(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return sg(r)}function qv(e,t){let n=Xf(e);return n===t||!Pf(n)||qf(n)?!1:Jf(n).position===`fixed`||qv(n,t)}function Jv(e,t){let n=t.get(e);if(n)return n;let r=Qf(e,[],!1).filter(e=>Pf(e)&&Af(e)!==`body`),i=null,a=Jf(e).position===`fixed`,o=a?Xf(e):e;for(;Pf(o)&&!qf(o);){let t=Jf(o),n=Wf(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||Lf(o)&&!n&&qv(e,o))?r=r.filter(e=>e!==o):i=t,o=Xf(o)}return t.set(e,r),r}function Yv(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?zf(t)?[]:Jv(t,this._c):[].concat(n),r],o=Kv(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=Kv(t,a[e],i);s=Ih(n.top,s),c=Fh(n.right,c),l=Fh(n.bottom,l),u=Ih(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Xv(e){let{width:t,height:n}=jv(e);return{width:t,height:n}}function Zv(e,t,n){let r=Ff(t),i=Mf(t),a=n===`fixed`,o=Lv(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=zh(0);function l(){c.x=Rv(i)}if(r||!r&&!a){if((Af(t)!==`body`||Lf(i))&&(s=Yf(t)),r){let e=Lv(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=!i||r||a?zh(0):zv(i,s);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Qv(e){return Jf(e).position===`static`}function $v(e,t){if(!Ff(e)||Jf(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Mf(e)===n&&(n=n.ownerDocument.body),n}function ey(e,t){let n=jf(e);if(zf(e))return n;if(!Ff(e)){let t=Xf(e);for(;t&&!qf(t);){if(Pf(t)&&!Qv(t))return t;t=Xf(t)}return n}let r=$v(e,t);for(;r&&Rf(r)&&Qv(r);)r=$v(r,t);return r&&qf(r)&&Qv(r)&&!Wf(r)?n:r||Gf(e)||n}var ty=async function(e){let t=this.getOffsetParent||ey,n=this.getDimensions,r=await n(e.floating);return{reference:Zv(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ny(e){return Jf(e).direction===`rtl`}var ry={convertOffsetParentRelativeRectToViewportRelativeRect:Bv,getDocumentElement:Mf,getClippingRect:Yv,getOffsetParent:ey,getElementRects:ty,getClientRects:Vv,getDimensions:Xv,getScale:Nv,isElement:Pf,isRTL:ny};function iy(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ay(e,t){let n=null,r,i=Mf(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Rh(d),h=Rh(i.clientWidth-(u+f)),g=Rh(i.clientHeight-(d+p)),_=Rh(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ih(0,Fh(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!iy(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function oy(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Mv(e),u=i||a?[...l?Qf(l):[],...t?Qf(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?ay(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Lv(e):null;c&&g();function g(){let t=Lv(e);h&&!iy(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var sy=Dv,cy=Ov,ly=xv,uy=Av,dy=wv,fy=kv,py=(e,t,n)=>{let r=new Map,i={platform:ry,...n},a={...i.platform,_c:r};return bv(e,t,{...i,platform:a})},my=`u`>typeof document?e.useLayoutEffect:function(){};function hy(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!hy(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if((n!==`_owner`||!e.$$typeof)&&!hy(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function gy(e){return`u`<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _y(e,t){let n=gy(e);return Math.round(t*n)/n}function vy(t){let n=e.useRef(t);return my(()=>{n.current=t}),n}function yy(t){t===void 0&&(t={});let{placement:n=`bottom`,strategy:r=`absolute`,middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:c=!0,whileElementsMounted:l,open:u}=t,[d,f]=e.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[p,m]=e.useState(i);hy(p,i)||m(i);let[g,_]=e.useState(null),[v,y]=e.useState(null),b=e.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=e.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=o||g,C=s||v,w=e.useRef(null),T=e.useRef(null),E=e.useRef(d),D=l!=null,O=vy(l),k=vy(a),A=vy(u),j=e.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:n,strategy:r,middleware:p};k.current&&(e.platform=k.current),py(w.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};M.current&&!hy(E.current,t)&&(E.current=t,h.flushSync(()=>{f(t)}))})},[p,n,r,k,A]);my(()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[u]);let M=e.useRef(!1);my(()=>(M.current=!0,()=>{M.current=!1}),[]),my(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=e.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=e.useMemo(()=>({reference:S,floating:C}),[S,C]),F=e.useMemo(()=>{let e={position:r,left:0,top:0};if(!P.floating)return e;let t=_y(P.floating,d.x),n=_y(P.floating,d.y);return c?{...e,transform:`translate(`+t+`px, `+n+`px)`,...gy(P.floating)>=1.5&&{willChange:`transform`}}:{position:r,left:t,top:n}},[r,c,P.floating,d.x,d.y]);return e.useMemo(()=>({...d,update:j,refs:N,elements:P,floatingStyles:F}),[d,j,N,P,F])}var by=(e,t)=>{let n=sy(e);return{name:n.name,fn:n.fn,options:[e,t]}},xy=(e,t)=>{let n=cy(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sy=(e,t)=>({fn:fy(e).fn,options:[e,t]}),Cy=(e,t)=>{let n=ly(e);return{name:n.name,fn:n.fn,options:[e,t]}},wy=(e,t)=>{let n=uy(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ty=(e,t)=>{let n=dy(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Ey(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=$d(),a=Hm()!=null,o=td(()=>new mh({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new yh,floatingId:i,syncOnly:!1,nested:a})).current;return J(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=Pf(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Dy(t={}){let{nodeId:n,externalTree:r}=t,i=Ey(t),a=t.rootContext||i,o=a.useState(`referenceElement`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.useState(`open`),u=a.useState(`floatingId`),[d,f]=e.useState(null),[p,m]=e.useState(void 0),[h,g]=e.useState(void 0),_=e.useRef(null),v=Um(r),y=e.useMemo(()=>({reference:o,floating:s,domReference:c}),[o,s,c]),b=yy({...t,elements:{...y,...d&&{reference:d}}}),x=Pf(p)?p:null,S=h===void 0?a.state.floatingElement:h;a.useSyncedValue(`referenceElement`,p??null),a.useSyncedValue(`domReferenceElement`,p===void 0?c:x),a.useSyncedValue(`floatingElement`,S);let C=e.useCallback(e=>{let t=Pf(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;f(t),b.refs.setReference(t)},[b.refs]),w=e.useCallback(e=>{(Pf(e)||e===null)&&(_.current=e,m(e)),(Pf(b.refs.reference.current)||b.refs.reference.current===null||e!==null&&!Pf(e))&&b.refs.setReference(e)},[b.refs,m]),T=e.useCallback(e=>{g(e),b.refs.setFloating(e)},[b.refs]),E=e.useMemo(()=>({...b.refs,setReference:w,setFloating:T,setPositionReference:C,domReference:_}),[b.refs,w,T,C]),D=e.useMemo(()=>({...b.elements,domReference:c}),[b.elements,c]),O=e.useMemo(()=>({...b,dataRef:a.context.dataRef,open:l,onOpenChange:a.setOpen,events:a.context.events,floatingId:u,refs:E,elements:D,nodeId:n,rootStore:a}),[b,E,D,n,a,l,u]);return J(()=>{c&&(_.current=c)},[c]),J(()=>{a.context.dataRef.current.floatingContext=O;let e=v?.nodesRef.current.find(e=>e.id===n);e&&(e.context=O)}),e.useMemo(()=>({...b,context:O,refs:E,elements:D,rootStore:a}),[b,E,D,O,a])}var Oy=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Hh(e,t)||{};if(l==null)return{};let f=og(u),p={x:n,y:r},m=Jh(i),h=Kh(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Vh(k,j,A),N=!c.arrow&&Wh(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),ky=(e,t)=>({...Oy(e),options:[e,t]}),Ay={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Ty().fn(e)).data?.referenceHidden||a}}}},jy={sideX:`left`,sideY:`top`};function My(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Ny(e,t,n){let{rects:r,placement:i}=e;return{side:My(t,Uh(i),n),align:Wh(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Py(t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shiftCrossAxis:v=!1,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=t,[C,w]=e.useState(null);!g&&C!==null&&w(null);let T=_.side||`flip`,E=_.align||`flip`,D=_.fallbackAxisSide||`end`,O=typeof n==`function`?n:void 0,k=Y(O),A=O?k:n,j=Ef(n),M=Ef(g),N=tm()===`rtl`,P=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],F=o===`center`?P:`${P}-${o}`,I=l,L=+(i===`bottom`),ee=+(i===`top`),R=+(i===`right`),z=+(i===`left`);typeof I==`number`?I={top:I+L,right:I+z,bottom:I+ee,left:I+R}:I&&={top:(I.top||0)+L,right:(I.right||0)+z,bottom:(I.bottom||0)+ee,left:(I.left||0)+R};let B={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:I},V=e.useRef(null),H=Ef(a),U=Ef(s),W=typeof a==`function`?0:a,G=typeof s==`function`?0:s,K=[];p&&K.push(p),K.push(by(e=>{let t=Ny(e,i,N),n=typeof H.current==`function`?H.current(t):H.current,r=typeof U.current==`function`?U.current(t):U.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[W,G,N,i]));let te=E===`none`&&T!==`shift`,ne=!te&&(u||v||T===`shift`),re=T===`none`?null:Cy({...B,padding:{top:I.top+1,right:I.right+1,bottom:I.bottom+1,left:I.left+1},mainAxis:!v&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),ie=te?null:xy(e=>{let t=lh(e.elements.floating).documentElement;return{...B,rootBoundary:v?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:ne,limiter:u||v?void 0:Sy(e=>{if(!V.current)return{};let{width:t,height:n}=V.current.getBoundingClientRect(),r=qh(Uh(e.placement)),i=r===`y`?t:n,a=r===`y`?I.left+I.right:I.top+I.bottom;return{offset:i/2+a/2}})}},[B,u,v,I,E]);T===`shift`||E===`shift`||o===`center`?K.push(ie,re):K.push(re,ie),K.push(wy({...B,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=jf(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),ky(e=>({element:V.current||lh(e.elements.floating).createElement(`div`),padding:d,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:s}=e,c=Uh(r),l=qh(c),u=V.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof a==`function`?a(Ny(e,i,N)):a,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,ne&&l===`y`&&b?S:x),{}}},Ay,b),J(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ae=e.useMemo(()=>({elementResize:!f&&`u`>typeof ResizeObserver,layoutShift:!f&&`u`>typeof IntersectionObserver}),[f]),{refs:oe,elements:se,x:ce,y:le,middlewareData:ue,update:de,placement:fe,context:pe,isPositioned:me,floatingStyles:he}=Dy({rootContext:h,open:m?g:void 0,placement:F,middleware:K,strategy:r,whileElementsMounted:m?void 0:(...e)=>oy(...e,ae),nodeId:y,externalTree:S}),{sideX:ge,sideY:_e}=ue.adaptiveOrigin||jy,ve=me?r:`fixed`,ye=e.useMemo(()=>{let e=b?{position:ve,[ge]:ce,[_e]:le}:{position:ve,...he};return me||(e.opacity=0),e},[b,ve,ge,ce,_e,le,he,me]),be=e.useRef(null);J(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(Fy(t)?t.current:t)||null;n!==be.current&&(oe.setPositionReference(n),be.current=n)},[g,oe,A,j]),e.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&Fy(e)&&e.current!==be.current&&(oe.setPositionReference(e.current),be.current=e.current)},[g,oe,A,j]),e.useEffect(()=>{if(m&&g&&se.domReference&&se.floating)return oy(se.domReference,se.floating,de,ae)},[m,g,se,de,ae]);let xe=Uh(fe),Se=My(i,xe,N),Ce=Wh(fe)||`center`,we=!!ue.hide?.referenceHidden;J(()=>{x&&g&&me&&w(xe)},[x,g,me,xe]);let Te=e.useMemo(()=>({position:`absolute`,top:ue.arrow?.y,left:ue.arrow?.x}),[ue.arrow]),Ee=ue.arrow?.centerOffset!==0;return e.useMemo(()=>({positionerStyles:ye,arrowStyles:Te,arrowRef:V,arrowUncentered:Ee,side:Se,align:Ce,physicalSide:xe,anchorHidden:we,refs:oe,context:pe,isPositioned:me,update:de}),[ye,Te,V,Ee,Se,Ce,xe,we,oe,pe,me,de])}function Fy(e){return e!=null&&`current`in e}function Iy(e){return e===`starting`?Kg:ud}function Ly(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),Fd(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Iy(r),i],stateAttributesMapping:vm})}var Ry=20;function zy(t,n,r,i){let[a,o]=e.useState(!1);J(()=>{if(!t||!n||r==null)return void o(!1);let e=lh(r).documentElement.clientWidth,i=r.offsetWidth;o(e>0&&i>0&&i>=e-Ry)},[t,n,r]),F_(t&&(!n||a),i)}function By(t={}){let{id:n,implicit:r=!1,controlRef:i}=t,{controlId:a,registerControlId:o}=mv(),s=ef(n),c=r?a:void 0,l=td(()=>Symbol(`labelable-control`)),u=e.useRef(!1),d=e.useRef(n!=null),f=Y(()=>{u.current&&o!==cd&&(u.current=!1,o(l.current,void 0))});return J(()=>{if(o===cd)return;let e;if(r){let t=i?.current;e=Pf(t)&&t.closest(`label`)!=null?n??null:c??s}else if(n!=null)d.current=!0,e=n;else{if(!d.current)return void f();e=s}if(e===void 0)return void f();u.current=!0,o(l.current,e)},[n,i,c,o,r,s,l,f]),e.useEffect(()=>f,[f]),a??s}function Vy(t,n){let{listRef:r,elementsRef:i,activeIndex:a,onMatch:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=n,d=`rootStore`in t?t.rootStore:t,f=d.useState(`open`),p=Jm(),m=e.useRef(``),h=e.useRef(u??a??-1),g=e.useRef(null),_=Y(e=>{function t(e){let t=i?.current[e];return!t||yg(t)}function n(e,n,r=0){if(e.length===0)return-1;let i=(r%e.length+e.length)%e.length,a=n.toLocaleLowerCase();for(let n=0;n<e.length;n+=1){let r=(i+n)%e.length;if(e[r]?.toLocaleLowerCase().startsWith(a)&&t(r))return r}return-1}let c=r.current;if(m.current.length>0&&e.key===` `&&(Jp(e),s?.(!0)),m.current.length>0&&m.current[0]!==` `&&n(c,m.current)===-1&&e.key!==` `&&s?.(!1),c==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(Jp(e),s?.(!0));let d=m.current===``;d&&(h.current=u??a??-1),c.every(e=>!e||e[0]?.toLocaleLowerCase()!==e[1]?.toLocaleLowerCase())&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,s?.(!1)});let _=((d?u??a??-1:h.current)??0)+1,v=n(c,m.current,_);v===-1?e.key!==` `&&(m.current=``,s?.(!1)):(o?.(v),g.current=v)}),v=Y(e=>{let t=e.relatedTarget,n=d.select(`domReferenceElement`),r=d.select(`floatingElement`);Q(n,t)||Q(r,t)||(p.clear(),m.current=``,h.current=g.current,s?.(!1))});J(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[f,u,p]),J(()=>{f&&m.current===``&&(h.current=u??a??-1)},[f,u,a]);let y=e.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return e.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var Hy=`Escape`;function Uy(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function Wy(e,t){return Uy(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function Gy(e,t,n){return Uy(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function Ky(e,t,n){return Uy(t,n?e===Qm:e===$m,e===th)}function qy(e,t,n,r){return t===`both`||t===`horizontal`&&r&&r>1?e===Hy:Uy(t,n?e===$m:e===Qm,e===eh)}function Jy(t,n){let{listRef:r,activeIndex:i,onNavigate:a=()=>{},enabled:o=!0,selectedIndex:s=null,allowEscape:c=!1,loopFocus:l=!1,nested:u=!1,rtl:d=!1,virtual:f=!1,focusItemOnOpen:p=`auto`,focusItemOnHover:m=!0,openOnArrowKeyDown:h=!0,disabledIndices:g,orientation:_=`vertical`,parentOrientation:v,cols:y=1,id:b,resetOnPointerLeave:x=!0,externalTree:S}=n,C=`rootStore`in t?t.rootStore:t,w=C.useState(`open`),T=C.useState(`floatingElement`),E=C.useState(`domReferenceElement`),D=C.context.dataRef,O=ch(T),k=oh(E),A=Ef(O),j=Hm(),M=Um(S),N=e.useRef(p),P=e.useRef(s??-1),F=e.useRef(null),I=e.useRef(!0),L=Y(e=>{a(P.current===-1?null:P.current,e)}),ee=e.useRef(L),R=e.useRef(!!T),z=e.useRef(w),B=e.useRef(!1),V=e.useRef(!1),H=e.useRef(null),U=Ef(g),W=Ef(w),G=Ef(s),K=Ef(x),te=Jd(),ne=Jd(),re=Y(()=>{function e(e){f?M?.events.emit(`virtualfocus`,e):H.current=n_(e,{sync:B.current,preventScroll:!0})}let t=r.current[P.current],n=V.current;t&&e(t),(B.current?e=>e():e=>te.request(e))(()=>{let i=r.current[P.current]||t;i&&(t||e(i),le&&(n||!I.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});J(()=>{D.current.orientation=_},[D,_]),J(()=>{o&&(w&&T?(P.current=s??-1,N.current&&s!=null&&(V.current=!0,L())):R.current&&(P.current=-1,ee.current()))},[o,w,T,s,L]),J(()=>{if(o){if(!w)B.current=!1;else if(T){if(i==null){if(B.current=!1,G.current!=null)return;if(R.current&&(P.current=-1,re()),(!z.current||!R.current)&&N.current&&(F.current!=null||!0===N.current&&F.current==null)){let e=0,t=()=>{r.current[0]==null?(e<2&&(e?e=>ne.request(e):queueMicrotask)(t),e+=1):(P.current=F.current==null||Gy(F.current,_,d)||u?ug(r):dg(r),F.current=null,L())};t()}}else lg(r.current,i)||(P.current=i,re(),V.current=!1)}}},[o,w,T,i,G,u,r,_,d,L,re,ne]),J(()=>{if(!o||T||!M||f||!R.current)return;let e=M.nodesRef.current,t=e.find(e=>e.id===j)?.context?.elements.floating,n=Ym(lh(T)),r=e.some(e=>e.context&&Q(e.context.elements.floating,n));t&&!r&&I.current&&t.focus({preventScroll:!0})},[o,T,M,j,f]),J(()=>{ee.current=L,z.current=w,R.current=!!T}),J(()=>{w||(F.current=null,N.current=p)},[w,p]);let ie=i!=null,ae=Y(e=>{if(!W.current)return;let t=r.current.indexOf(e.currentTarget);t!==-1&&(P.current!==t||i!==t)&&(P.current=t,L(e))}),oe=Y(()=>v??M?.nodesRef.current.find(e=>e.id===j)?.context?.dataRef?.current.orientation),se=Y(()=>ug(r,U.current)),ce=Y(e=>{if(I.current=!1,B.current=!0,e.which===229||!W.current&&e.currentTarget===A.current)return;if(u&&qy(e.key,_,d,y)){Wy(e.key,oe())||Jp(e),C.setOpen(!1,of(mf,e.nativeEvent)),Ff(E)&&(f?M?.events.emit(`virtualfocus`,E):E.focus());return}let t=P.current,n=ug(r,g),i=dg(r,g);if(k||(e.key===`Home`&&(Jp(e),P.current=n,L(e)),e.key===`End`&&(Jp(e),P.current=i,L(e))),y>1){let t=Array.from({length:r.current.length},()=>({width:1,height:1})),a=mg(t,y,!1),o=a.findIndex(e=>e!=null&&!_g(r.current,e,g)),s=a.reduce((e,t,n)=>t==null||_g(r.current,t,g)?e:n,-1),c=a[pg(a.map(e=>e==null?null:r.current[e]),{event:e,orientation:_,loopFocus:l,rtl:d,cols:y,disabledIndices:gg([...(typeof g==`function`?null:g)||r.current.map((e,t)=>_g(r.current,t,g)?t:void 0),void 0],a),minIndex:o,maxIndex:s,prevIndex:hg(P.current>i?n:P.current,t,a,y,e.key===`ArrowDown`?`bl`:e.key===(d?`ArrowLeft`:`ArrowRight`)?`tr`:`tl`),stopEvent:!0})];if(c!=null&&(P.current=c,L(e)),_===`both`)return}if(Wy(e.key,_)){if(Jp(e),w&&!f&&Ym(e.currentTarget.ownerDocument)===e.currentTarget){P.current=Gy(e.key,_,d)?n:i,L(e);return}Gy(e.key,_,d)?l?t>=i?c&&t!==r.current.length?P.current=-1:(B.current=!1,P.current=n):P.current=fg(r.current,{startingIndex:t,disabledIndices:g}):P.current=Math.min(i,fg(r.current,{startingIndex:t,disabledIndices:g})):l?t<=n?c&&t!==-1?P.current=r.current.length:(B.current=!1,P.current=i):P.current=fg(r.current,{startingIndex:t,decrement:!0,disabledIndices:g}):P.current=Math.max(n,fg(r.current,{startingIndex:t,decrement:!0,disabledIndices:g})),lg(r.current,P.current)&&(P.current=-1),L(e)}}),le=e.useMemo(()=>({onFocus(e){B.current=!0,ae(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){B.current=!0,V.current=!1,m&&ae(e)},onPointerLeave(e){if(!W.current||!I.current||e.pointerType===`touch`)return;B.current=!0;let t=e.relatedTarget;if(m&&!r.current.includes(t)&&K.current&&(H.current?.(),H.current=null,P.current=-1,L(e),!f)){let e=A.current,t=Ym(lh(e));e&&Q(e,t)&&e.focus({preventScroll:!0})}}}),[ae,W,A,m,r,L,K,f]),ue=e.useMemo(()=>f&&w&&ie&&{"aria-activedescendant":`${b}-${i}`},[f,w,ie,b,i]),de=e.useMemo(()=>({"aria-orientation":_===`both`?void 0:_,...k?{}:ue,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&w&&!f){let t=Xm(e.nativeEvent);if(t&&!Q(A.current,t))return;Jp(e),C.setOpen(!1,of(ff,e.nativeEvent)),Ff(E)&&E.focus()}else ce(e)},onPointerMove(){I.current=!0}}),[ue,ce,A,_,k,C,w,f,E]),fe=e.useMemo(()=>{function e(e){C.setOpen(!0,of(mf,e.nativeEvent,e.currentTarget))}function t(e){p===`auto`&&Xp(e.nativeEvent)&&(N.current=!f)}function n(e){N.current=p,p===`auto`&&Zp(e.nativeEvent)&&(N.current=!0)}return{onKeyDown(t){let n=C.select(`open`);I.current=!1;let r=t.key.startsWith(`Arrow`),i=Ky(t.key,oe(),d),a=Wy(t.key,_),o=(u?i:a)||t.key===`Enter`||t.key.trim()===``;if(f&&n)return ce(t);if(n||h||!r){if(o){let e=Wy(t.key,oe());F.current=u&&e?null:t.key}u?i&&(Jp(t),n?(P.current=se(),L(t)):e(t)):a&&(G.current!=null&&(P.current=G.current),Jp(t),!n&&h?e(t):ce(t),n&&L(t))}},onFocus(e){C.select(`open`)&&!f&&(P.current=-1,L(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[ce,p,se,u,L,C,h,_,oe,d,G,f]),pe=e.useMemo(()=>({...ue,...fe}),[ue,fe]);return e.useMemo(()=>o?{reference:pe,floating:de,item:le,trigger:fe}:{},[o,pe,de,fe,le])}function Yy(e){let t=e.getBoundingClientRect(),n=jf(e),r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Xy=e.createContext({formRef:{current:{fields:new Map}},errors:{},clearErrors:cd,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});function Zy(){return e.useContext(Xy)}function Qy(t,n,r,i,a=!0){let{registerFieldControl:o}=fv(),s=e.useRef(null);s.current||=Symbol(),J(()=>{let e=s.current;if(e&&a)return o(e,{controlRef:t,getValue:i,id:n,value:r}),()=>{o(e,void 0)}},[t,a,i,n,o,r])}X(e=>e.id),X(e=>e.labelId),X(e=>e.items),X(e=>e.selectedValue),X(e=>{let t=e.selectedValue;return Array.isArray(t)&&t.length>0}),X(e=>{let{selectedValue:t,selectionMode:n}=e;return t==null?!1:n===`multiple`&&Array.isArray(t)?t.length>0:!0}),X((e,t)=>t?ev(e.items):!1),X(e=>e.open),X(e=>e.mounted),X(e=>e.forceMounted),X(e=>e.inline),X(e=>e.activeIndex),X(e=>e.selectedIndex),X((e,t)=>e.activeIndex===t),X((e,t)=>{let n=e.isItemEqualToValue,r=e.selectedValue;return Array.isArray(r)?r.some(e=>Y_(t,e,n)):Y_(t,r,n)}),X(e=>e.transitionStatus),X(e=>e.popupProps),X(e=>e.inputProps),X(e=>e.triggerProps),X(e=>e.itemProps),X(e=>e.positionerElement),X(e=>e.listElement),X(e=>e.triggerElement),X(e=>e.inputElement),X(e=>e.inputGroupElement),X(e=>e.popupSide),X(e=>e.openMethod),X(e=>e.inputInsidePopup),X(e=>e.inputOwnsFormValue),X(e=>e.selectionMode),X(e=>e.name),X(e=>e.form),X(e=>e.disabled),X(e=>e.readOnly),X(e=>e.required),X(e=>e.grid),X(e=>e.virtualized),X(e=>e.itemToStringLabel),X(e=>e.isItemEqualToValue),X(e=>e.modal),X(e=>e.autoHighlight),X(e=>e.submitOnItemClick),{..._m,...lv},{...Sf,...gm},{...vm,...Sf},{...vm,...Sf};var $y=e.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return Fd(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});({...Sf});var eb={root:`root-ig2Z1s`,default:`default-nJusqF`,light:`light-qGxiE8`,primary:`primary-bU68vw`,secondary:`secondary-dA1Wg2`},tb={default:`default`,light:`light`,primary:`primary`,secondary:`secondary`},nb=e.forwardRef(({variant:e=tb.default,className:t,...n},r)=>p(`span`,{ref:r,className:$u(eb.root,eb[e],t),...n}));nb.displayName=`Badge`;var rb={root:`root-Ao8l6B`,primary:`primary-CVNdae`,secondary:`secondary-cuRZXS`},ib=e.forwardRef(({variant:t=`primary`,render:n,className:r,...i},a)=>{let o=rb[t];if(n){let{className:t,...s}=n.props;return e.cloneElement(n,{...s,...i,ref:a,className:$u(rb.root,o,t,r)})}return p(`div`,{ref:a,className:$u(rb.root,o,r),...i})});ib.displayName=`Box`;var ab=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new qm,this.restTimeout=new qm,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},ob=new WeakMap;function sb(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&ob.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),ob.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function cb(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=ob.get(n);a&&a!==e&&sb(a),sb(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,ob.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function lb(e){let t=e.context.dataRef.current,n=td(()=>t.hoverInteractionState??ab.create()).current;return t.hoverInteractionState||=n,Wd(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function ub(e,t){return t!=null&&!Qp(t)?0:typeof e==`function`?e():e}function db(e,t,n){let r=ub(e,n);return typeof r==`number`?r:r?.[t]}function fb(e){return typeof e==`function`?e():e}function pb(e,t){return t||e===`click`||e===`mousedown`}var mb=`data-composite-item-active`,hb=[];function gb(t){let{itemSizes:n,cols:r=1,loopFocus:i=!0,onLoop:a,dense:o=!1,orientation:s=`both`,direction:c,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:d,enableHomeAndEndKeys:f=!1,stopEventPropagation:p=!1,disabledIndices:m,modifierKeys:h=hb}=t,[g,_]=e.useState(0),v=r>1,y=e.useRef(null),b=nd(y,d),x=e.useRef([]),S=e.useRef(!1),C=l??g,w=Y((e,t=!1)=>{if((u??_)(e),t){let t=x.current[e];Mp(y.current,t,c,s)}}),T=Y(e=>{if(e.size===0||S.current)return;S.current=!0;let t=Array.from(e.keys()),n=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,r=n?t.indexOf(n):-1;r!==-1&&w(r),Mp(y.current,n,c,s)}),E=Y((e,t,n)=>a?a?.(e,t,n,x):n),D=e.useMemo(()=>({"aria-orientation":s===`both`?void 0:s,ref:b,onFocus(e){let t=y.current,n=Xm(e.nativeEvent);t&&n!=null&&jp(n)&&n.setSelectionRange(0,n.value.length??0)},onKeyDown(e){let t=f?Op:Dp;if(!t.has(e.key)||_b(e,h)||!y.current)return;let l=c===`rtl`,u=l?yp:bp,d={horizontal:u,vertical:vp,both:u}[s],g=l?bp:yp,_={horizontal:g,vertical:_p,both:g}[s],b=Xm(e.nativeEvent);if(b!=null&&jp(b)&&!up(b)){let t=b.selectionStart,n=b.selectionEnd,r=b.value??``;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==d&&t>0)return}let S=C,T=ug(x,m),D=dg(x,m);if(v){let t=n||Array.from({length:x.current.length},()=>({width:1,height:1})),a=mg(t,r,o),c=a.findIndex(e=>e!=null&&!_g(x.current,e,m)),u=a.reduce((e,t,n)=>t==null||_g(x.current,t,m)?e:n,-1);S=a[pg(a.map(e=>e==null?null:x.current[e]),{event:e,orientation:s,loopFocus:i,onLoop:E,cols:r,disabledIndices:gg([...m||x.current.map((e,t)=>_g(x.current,t)?t:void 0),void 0],a),minIndex:c,maxIndex:u,prevIndex:hg(C>D?T:C,t,a,r,e.key===`ArrowDown`?`bl`:e.key===`ArrowRight`?`tr`:`tl`),rtl:l})]}let O={horizontal:[u],vertical:[vp],both:[u,vp]}[s],k={horizontal:[g],vertical:[_p],both:[g,_p]}[s],A=v?t:{horizontal:f?wp:Cp,vertical:f?Ep:Tp,both:t}[s];f&&(e.key===`Home`?S=T:e.key===`End`&&(S=D)),S===C&&(O.includes(e.key)||k.includes(e.key))&&(i&&S===D&&O.includes(e.key)?(S=T,a&&(S=a(e,C,S,x))):i&&S===T&&k.includes(e.key)?(S=D,a&&(S=a(e,C,S,x))):S=fg(x.current,{startingIndex:S,decrement:k.includes(e.key),disabledIndices:m})),S!==C&&!lg(x.current,S)&&(p&&e.stopPropagation(),A.has(e.key)&&e.preventDefault(),w(S,!0),queueMicrotask(()=>{x.current[S]?.focus()}))}}),[r,o,c,m,x,f,C,v,n,i,a,E,b,h,w,s,p]);return e.useMemo(()=>({props:D,highlightedIndex:C,onHighlightedIndexChange:w,elementsRef:x,disabledIndices:m,onMapChange:T,relayKeyboardEvent:D.onKeyDown}),[D,C,w,x,m,T])}function _b(e,t){for(let n of kp.values())if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function vb(t){let{render:n,className:r,style:i,refs:a=ld,props:o=ld,state:s=ud,stateAttributesMapping:c,highlightedIndex:l,onHighlightedIndexChange:u,orientation:d,dense:f,itemSizes:m,loopFocus:h,onLoop:g,cols:_,enableHomeAndEndKeys:v,onMapChange:y,stopEventPropagation:b=!0,rootRef:x,disabledIndices:S,modifierKeys:C,highlightItemOnHover:w=!1,tag:T=`div`,...E}=t,{props:D,highlightedIndex:O,onHighlightedIndexChange:k,elementsRef:A,onMapChange:j,relayKeyboardEvent:M}=gb({itemSizes:m,cols:_,loopFocus:h,onLoop:g,dense:f,orientation:d,highlightedIndex:l,onHighlightedIndexChange:u,rootRef:x,stopEventPropagation:b,enableHomeAndEndKeys:v,direction:tm(),disabledIndices:S,modifierKeys:C}),N=Fd(T,t,{state:s,ref:a,props:[D,...o,E],stateAttributesMapping:c}),P=e.useMemo(()=>({highlightedIndex:O,onHighlightedIndexChange:k,highlightItemOnHover:w,relayKeyboardEvent:M}),[O,k,w,M]);return p(dp.Provider,{value:P,children:p(nm,{elementsRef:A,onMapChange:e=>{y?.(e),j(e)},children:N})})}function yb(t={}){let{highlightItemOnHover:n,highlightedIndex:r,onHighlightedIndexChange:i}=fp(),{ref:a,index:o}=lp(t),s=r===o,c=e.useRef(null),l=nd(a,c);return{compositeProps:e.useMemo(()=>({tabIndex:s?0:-1,onFocus(){i(o)},onMouseMove(){let e=c.current;if(!n||!e)return;let t=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!s&&!t&&e.focus()}}),[s,i,o,n]),compositeRef:l,index:o}}function bb(e){let{render:t,className:n,style:r,state:i=ud,props:a=ld,refs:o=ld,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=yb({metadata:s});return Fd(l,e,{state:i,ref:[...o,f],props:[d,...a,u],stateAttributesMapping:c})}({root:`root-uwc56U`,list:`list-HHG8hu`,item:`item-yTmapi`,link:`link-GDIKcZ`,page:`page-adRf_w`,separator:`separator-Kz0pCd`,separatorIcon:`separatorIcon-vONtbc`}).separatorIcon;var xb=e.createContext({disabled:!1});function Sb(){return e.useContext(xb)}var Cb=e.createContext(void 0);function wb(t=!0){let n=e.useContext(Cb);if(n===void 0&&!t)throw Error(fd(3));return n}function Tb(t,n,r,i=!0,a){let[o,s]=e.useState(),c=ef(a?`${a}-label`:void 0),l=t??n??o;return J(()=>{let e=t||n||!i?void 0:Eb(r.current,c);o!==e&&s(e)}),l}function Eb(e,t){let n=Db(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Db(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Ob(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var kb=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.indeterminate=`data-indeterminate`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({});function Ab(t){return e.useMemo(()=>({checked(e){return t.indeterminate?{}:e?{[kb.checked]:``}:{[kb.unchecked]:``}},...lv}),[t.indeterminate])}var jb=e.createContext(void 0);function Mb(){let t=e.useContext(jb);if(t===void 0)throw Error(fd(14));return t}var Nb=`data-parent`,Pb=e.forwardRef(function(t,n){let{checked:r,className:i,defaultChecked:a=!1,"aria-labelledby":o,disabled:s=!1,form:c,id:l,indeterminate:u=!1,inputRef:d,name:f,onCheckedChange:h,parent:g=!1,readOnly:_=!1,render:v,required:y=!1,uncheckedValue:b,value:x,nativeButton:S=!1,style:C,...w}=t,{clearErrors:T}=Zy(),{disabled:E,name:D,setDirty:O,setFilled:k,setFocused:A,setTouched:j,state:M,validationMode:N,validityData:P,shouldValidateOnChange:F,validation:I}=fv(),L=Sb(),{labelId:ee,controlId:R,registerControlId:z,getDescriptionProps:B}=mv(),V=wb(),H=V?.parent,U=H&&V.allValues,W=E||L.disabled||V?.disabled||s,G=D??f,K=x??G,te=ef(),ne=ef(),re=R;U?re=g?ne:`${H.id}-${K}`:l&&(re=l);let ie={};U&&(g?ie=V.parent.getParentProps():K&&(ie=V.parent.getChildProps(K)));let{checked:ae=r,indeterminate:oe=u,onCheckedChange:se,...ce}=ie,le=V?.value,ue=V?.setValue,de=V?.defaultValue,fe=e.useRef(null),pe=td(()=>Symbol(`checkbox-control`)),me=e.useRef(!1),{getButtonProps:he,buttonRef:ge}=mp({disabled:W,native:S}),_e=V?.validation??I,[ve,ye]=Vd({controlled:K&&le&&!g?le.includes(K):ae,default:K&&de&&!g?de.includes(K):a,name:`Checkbox`,state:`checked`});J(()=>{z!==cd&&(me.current=!0,z(pe.current,re))},[re,z,pe]),e.useEffect(()=>{let e=pe.current;return()=>{me.current&&z!==cd&&(me.current=!1,z(e,void 0))}},[z,pe]),Qy(fe,te,ve,void 0,!V);let be=e.useRef(null),xe=nd(d,be,_e.inputRef),Se=Tb(o,ee,be,!S,re??void 0);J(()=>{be.current&&(be.current.indeterminate=oe,ve&&k(!0))},[ve,oe,k]),e_(ve,()=>{(!V||g)&&(T(G),k(ve),O(ve!==P.initialValue),F()?_e.commit(ve):_e.commit(ve,!0))});let Ce=xd({checked:ve,disabled:W,form:c,name:g?void 0:G,id:S?void 0:re??void 0,required:y,ref:xe,style:G?Nh:Mh,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(_)return void e.preventDefault();let t=e.currentTarget.checked,n=of(`none`,e.nativeEvent);if(se?.(t,n),h?.(t,n),!n.isCanceled&&(ye(t),K&&le&&ue&&!g&&!U)){let e=t?[...le,K]:le.filter(e=>e!==K);ue(e,n)}},onFocus(){fe.current?.focus()}},x===void 0?ud:{value:(V?ve&&x:x)||``},B,V?_e.getValidationProps:_e.getInputValidationProps),we=U?!!ae:ve,Te=U&&oe||u;e.useEffect(()=>{if(!H||!K)return;let e=H.disabledStatesRef.current;return e.set(K,W),()=>{e.delete(K)}},[H,W,K]);let Ee=e.useMemo(()=>({...M,checked:we,disabled:W,readOnly:_,required:y,indeterminate:Te}),[M,we,W,_,y,Te]),De=Ab(Ee),Oe=Fd(`span`,t,{state:Ee,ref:[ge,fe,n,V?.registerControlRef],props:[{id:S?re??void 0:te,role:`checkbox`,"aria-checked":oe?`mixed`:ve,"aria-readonly":_||void 0,"aria-required":y||void 0,"aria-labelledby":Se,[Nb]:g?``:void 0,onFocus(){A(!0)},onBlur(){let e=be.current;e&&(j(!0),A(!1),N===`onBlur`&&_e.commit(V?le:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=be.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),jf(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||Ob(t)?.click()})},onClick(e){if(_||W)return;e.preventDefault();let t=be.current;t&&t.dispatchEvent(new(jf(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))}},B,_e.getValidationProps,w,ce,he],stateAttributesMapping:De});return m(jb.Provider,{value:Ee,children:[Oe,!ve&&!V&&G&&!g&&b!==void 0&&p(`input`,{type:`hidden`,form:c,name:G,value:b}),p(`input`,{...Ce,suppressHydrationWarning:!0})]})}),Fb=e.forwardRef(function(t,n){let{render:r,className:i,style:a,keepMounted:o=!1,...s}=t,c=Mb(),l=c.checked||c.indeterminate,{mounted:u,transitionStatus:d,setMounted:f}=Yd(l),p=e.useRef(null),m={...c,transitionStatus:d};Tf({open:l,ref:p,onComplete(){l||f(!1)}});let h={...Ab(c),...Sf,...lv},g=o||u,_=Fd(`span`,t,{ref:[n,p],state:m,stateAttributesMapping:h,props:s});return g?_:null}),Ib={root:`root-OrOWpu`,indicator:`indicator-g_8JYy`,indicatorIcon:`indicatorIcon-6oqHA9`,checkmarkIcon:`checkmarkIcon-MX0Ccp`,indeterminateIcon:`indeterminateIcon-_b18QI`},Lb=({size:e,...t})=>p(`svg`,{viewBox:`0 0 10 8`,fill:`currentColor`,width:e||`10`,height:e||`8`,...t,children:p(`path`,{d:`M3.5 5.2 1.2 3 0 4.2 3.5 7.8 10 1.2 8.8 0z`})}),Rb=({size:e,...t})=>p(`svg`,{viewBox:`0 0 8 2`,fill:`currentColor`,width:e||`8`,height:e||`2`,...t,children:p(`path`,{d:`M0 0H8V2H0z`})}),zb={small:12,medium:14,large:20},Bb=e.forwardRef(({className:e,size:t=zb.medium,style:n,...r},i)=>p(Pb,{ref:i,className:$u(Ib.root,e,`has-custom-focus`),style:{"--checkbox-size":`${t}px`,...n},...r}));Bb.displayName=`Checkbox.Root`;var Vb=e.forwardRef(({className:e,children:t,...n},r)=>p(Fb,{ref:r,keepMounted:!0,className:$u(Ib.indicator,e),...n,children:t??m(f,{children:[p(Lb,{"aria-hidden":`true`,className:$u(Ib.indicatorIcon,Ib.checkmarkIcon)}),p(Rb,{"aria-hidden":`true`,className:$u(Ib.indicatorIcon,Ib.indeterminateIcon)})]})}));Vb.displayName=`Checkbox.Indicator`;var Hb={Root:Bb,Indicator:Vb},Ub=e.createContext({legendId:void 0,setLegendId:()=>{},disabled:void 0});function Wb(t=!1){let n=e.useContext(Ub);if(!n&&!t)throw Error(fd(86));return n}function Gb(e,t){let n=ef(e);return J(()=>(t(n),()=>{t(void 0)}),[n,t]),n}function Kb(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=mv(),c=Gb(t,Y(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a)return void a(e,l);if(!l)return;let t=lh(e.currentTarget).getElementById(l);Ff(t)&&qb(t)}function d(e){Xm(e.nativeEvent)?.closest(`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l??void 0,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function qb(e){e.focus({focusVisible:!0})}var Jb=e.forwardRef(function(t,n){let{render:r,className:i,id:a,name:o,value:s,disabled:c=!1,onValueChange:l,defaultValue:u,autoFocus:d=!1,style:f,...p}=t,{state:m,name:h,disabled:g,setTouched:_,setDirty:v,validityData:y,setFocused:b,setFilled:x,validationMode:S,validation:C}=fv(),w=g||c,T=h??o,E={...m,disabled:w},{labelId:D}=mv(),O=By({id:a});J(()=>{let e=s!=null;C.inputRef.current?.value||e&&s!==``?x(!0):e&&s===``&&x(!1)},[C.inputRef,x,s]);let k=e.useRef(null);J(()=>{d&&k.current===Ym(lh(k.current))&&b(!0)},[d,b]);let[A]=Vd({controlled:s,default:u,name:`FieldControl`,state:`value`}),j=s!==void 0,M=j?A:void 0,N=Y(()=>C.inputRef.current?.value);return Qy(C.inputRef,O,M,N),Fd(`input`,t,{ref:[n,k],state:E,props:[{id:O,disabled:w,name:T,ref:C.inputRef,"aria-labelledby":D,autoFocus:d,...j?{value:M}:{defaultValue:u},onChange(e){let t=e.currentTarget.value;l?.(t,of(`none`,e.nativeEvent)),v(t!==y.initialValue),x(t!==``)},onFocus(){b(!0)},onBlur(e){_(!0),b(!1),S===`onBlur`&&C.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(_(!0),C.commit(e.currentTarget.value))}},C.getInputValidationProps(),p],stateAttributesMapping:lv})}),Yb={root:`root-Y7wYn3`},Xb=function(t){let n=ef(),r=t.controlId===void 0?n:t.controlId,[i,a]=e.useState(r),[o,s]=e.useState(t.labelId),[c,l]=e.useState([]),u=td(()=>new Map),{messageIds:d}=mv(),f=Y((e,t)=>{let n=u.current;if(t===void 0)return void n.delete(e);n.set(e,t),a(e=>{if(n.size===0)return;let t;for(let r of n.values()){if(e!==void 0&&r===e)return e;t===void 0&&(t=r)}return t})}),m=e.useCallback(e=>xd({"aria-describedby":d.concat(c).join(` `)||void 0},e),[d,c]),h=e.useMemo(()=>({controlId:i,registerControlId:f,labelId:o,setLabelId:s,messageIds:c,setMessageIds:l,getDescriptionProps:m}),[i,f,o,s,c,l,m]);return p(pv.Provider,{value:h,children:t.children})};function Zb(e,t){return{...e,state:{...e.state,valid:!t&&e.state.valid}}}var Qb=Object.keys(ov);function $b(e){if(!e||e.valid||!e.valueMissing)return!1;let t=!1;for(let n of Qb)n!==`valid`&&(n===`valueMissing`&&(t=e[n]),e[n]&&(t=!1));return t}function ex(t){let{formRef:n,clearErrors:r}=Zy(),{setValidityData:i,validate:a,validityData:o,validationDebounceTime:s,invalid:c,markedDirtyRef:l,state:u,name:d,shouldValidateOnChange:f,getRegisteredFieldId:p}=t,{controlId:m,getDescriptionProps:h}=mv(),g=Jm(),_=e.useRef(null),v=Y(async(e,t=!1)=>{let r=_.current;if(!r)return;function s(e,t=c){let r=p()??m;if(r==null)return;let i=n.current.fields.get(r);if(!i)return;let a=Zb(e,t);n.current.fields.set(r,{...i,validityData:a})}if(t){if(!1!==u.valid)return;let t=r.validity;if(!t.valueMissing){let t={value:e,state:{...ov,valid:!0},error:``,errors:[],initialValue:o.initialValue};r.setCustomValidity(``),s(t,!1),i(t);return}let n=Qb.reduce((e,n)=>(e[n]=t[n],e),{});if(!n.valid&&!$b(n))return}function d(e){let t=Qb.reduce((t,n)=>(t[n]=e.validity[n],t),{}),n=!1;for(let e of Qb)if(e!==`valid`){if(e===`valueMissing`&&t[e])n=!0;else if(t[e])return t}return n&&!l.current&&(t.valid=!0,t.valueMissing=!1),t}g.clear();let h=null,v=[],y=d(r),b,x=f();if(r.validationMessage&&!x)b=r.validationMessage,v=[r.validationMessage];else{let t=Array.from(n.current.fields.values()).reduce((e,t)=>(t.name&&(e[t.name]=t.getValue()),e),{}),i=a(e,t);h=typeof i==`object`&&i&&`then`in i?await i:i,h===null?x&&(r.setCustomValidity(``),y.customError=!1,r.validationMessage?(b=r.validationMessage,v=[r.validationMessage]):r.validity.valid&&!y.valid&&(y.valid=!0)):(y.valid=!1,y.customError=!0,Array.isArray(h)?(v=h,r.setCustomValidity(h.join(`
5
- `))):h&&(v=[h],r.setCustomValidity(h)))}let S={value:e,state:y,error:b??(Array.isArray(h)?h[0]:h??``),errors:v,initialValue:o.initialValue};s(S),i(S)}),y=e.useCallback((e={})=>xd(h,!1===u.valid?{"aria-invalid":!0}:ud,e),[h,u.valid]),b=e.useCallback((e={})=>xd({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(r(d),!f())return void v(e.currentTarget.value,!0);let t=e.currentTarget;if(t.value===``)return void v(t.value);g.clear(),s?g.start(s,()=>{v(t.value)}):v(t.value)}},y(e)),[y,r,d,g,v,s,f]);return e.useMemo(()=>({getValidationProps:y,getInputValidationProps:b,inputRef:_,commit:v}),[y,b,v])}function tx(t){let{commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldId:o,setValidityData:s,validityData:c}=t,{formRef:l}=Zy(),u=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=Y(()=>{let e=d.current;if(e)return e.getValue?e.getValue():e.value}),m=Y(()=>{let e=d.current;if(!e)return;let t=e.value;t===void 0&&(t=p()),i.current=!0,n(t)});function h(){let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:Zb(c,r),validate:m})}function g(e=d.current?.id){e&&l.current.fields.delete(e)}function _(){let e=d.current;if(!e)return;let t=e.value;t===void 0&&(t=p()),c.initialValue===null&&t!==null&&s(e=>({...e,initialValue:t}))}return J(()=>{let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:Zb(c,r),validate:m})},[l,p,r,a,m,c]),J(()=>{let e=l.current.fields;return()=>{let t=d.current?.id;t&&e.delete(t)}},[l]),Y((e,t)=>{if(!t){u.current===e&&(u.current=null,g(),d.current=null,o(void 0));return}let n=d.current?.id;u.current=e,d.current=t,o(t.id),n&&n!==t.id&&g(n),_(),h()})}var nx=e.forwardRef(function(t,n){let{errors:r,validationMode:i,submitAttemptedRef:a}=Zy(),{render:o,className:s,validate:c,validationDebounceTime:l=0,validationMode:u=i,name:d,disabled:f=!1,invalid:m,dirty:h,touched:g,actionsRef:_,style:v,...y}=t,{disabled:b}=Wb(),x=Y(c||(()=>null)),S=b||f,[C,w]=e.useState(!1),[T,E]=e.useState(!1),[D,O]=e.useState(!1),[k,A]=e.useState(!1),j=h??T,M=g??C,N=e.useRef(!1),P=e.useRef(void 0),F=e.useCallback(()=>P.current,[]),I=e.useCallback(e=>{P.current=e},[]),L=Y(e=>{h===void 0&&(e&&(N.current=!0),E(e))}),ee=Y(e=>{g===void 0&&w(e)}),R=Y(()=>u===`onChange`||u===`onSubmit`&&a.current),z=!!d&&Object.hasOwn(r,d)&&r[d]!==void 0,B=!0===m||z,[V,H]=e.useState({state:ov,error:``,errors:[],value:null,initialValue:null}),U=!B&&V.state.valid,W=e.useMemo(()=>({disabled:S,touched:M,dirty:j,valid:U,filled:D,focused:k}),[S,M,j,U,D,k]),G=ex({setValidityData:H,validate:x,validityData:V,validationDebounceTime:l,invalid:B,markedDirtyRef:N,state:W,name:d,shouldValidateOnChange:R,getRegisteredFieldId:F}),K=V.value,te=e.useCallback(()=>{N.current=!0,G.commit(K)},[G,K]),ne=tx({commit:G.commit,invalid:B,markedDirtyRef:N,name:d,setRegisteredFieldId:I,setValidityData:H,validityData:V});e.useImperativeHandle(_,()=>({validate:te}),[te]);let re=e.useMemo(()=>({invalid:B,name:d,validityData:V,setValidityData:H,disabled:S,touched:M,setTouched:ee,dirty:j,setDirty:L,filled:D,setFilled:O,focused:k,setFocused:A,validate:x,validationMode:u,validationDebounceTime:l,shouldValidateOnChange:R,state:W,markedDirtyRef:N,registerFieldControl:ne,validation:G}),[B,d,V,S,M,ee,j,L,D,O,k,A,x,u,l,R,W,ne,G]),ie=Fd(`div`,t,{ref:n,state:W,props:y,stateAttributesMapping:lv});return p(dv.Provider,{value:re,children:ie})}),rx=e.forwardRef(function(e,t){return p(Xb,{children:p(nx,{...e,ref:t})})}),ix=e.forwardRef(function(t,n){let{render:r,className:i,style:a,id:o,nativeLabel:s=!0,...c}=t,l=fv(!1),{labelId:u}=mv(),d=e.useRef(null),f=Kb({id:u??o,native:s});return Fd(`label`,t,{ref:[n,d],state:l.state,props:[f,c],stateAttributesMapping:lv})}),ax={...lv,...Sf},ox=e.forwardRef(function(t,n){let{render:r,id:i,className:a,match:o,style:s,...c}=t,l=ef(i),{validityData:u,state:d,name:f}=fv(!1),{setMessageIds:m}=mv(),{errors:h}=Zy(),g=f?h[f]:null,_=typeof o==`string`,v=!1;v=!0===o?!0:_?!!u.state[o]:!!g||!1===u.state.valid;let{mounted:y,transitionStatus:b,setMounted:x}=Yd(v);J(()=>{if(v&&l)return m(e=>e.concat(l)),()=>{m(e=>e.filter(e=>e!==l))}},[v,l,m]);let S=e.useRef(null),[C,w]=e.useState(null),[T,E]=e.useState(null),D=u.errors.length>1?p(`ul`,{children:u.errors.map(e=>p(`li`,{children:e},e))}):u.error,O=_?D:g||D,k=u.error;g==null?u.errors.length>1&&(k=JSON.stringify(u.errors)):k=Array.isArray(g)?JSON.stringify(g):g,v&&k!==T&&(E(k),w(O)),Tf({open:v,ref:S,onComplete(){v||x(!1)}});let A={...d,transitionStatus:b},j=Fd(`div`,t,{ref:[n,S],state:A,props:[{id:l,children:v?O:C},c],stateAttributesMapping:ax,enabled:y});return y?j:null}),sx=e.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=ef(r),c=fv(!1),{setMessageIds:l}=mv();return J(()=>{if(s)return l(e=>e.concat(s)),()=>{l(e=>e.filter(e=>e!==s))}},[s,l]),Fd(`p`,e,{ref:t,state:c.state,props:[{id:s},o],stateAttributesMapping:lv})}),cx=e.forwardRef(function(t,n){let{render:r,className:i,style:a,disabled:o=!1,...s}=t,{state:c,disabled:l}=fv(!1),u=l||o,d=wb(),f=d?.allValues===void 0?void 0:d?.parent.id,m=e.useMemo(()=>({disabled:u}),[u]),h=Fd(`div`,t,{ref:n,state:c,props:s,stateAttributesMapping:lv});return p(Xb,{controlId:f,children:p(xb.Provider,{value:m,children:h})})}),lx=function(t){let{children:n}=t,{validityData:r,invalid:i}=fv(!1),a=e.useMemo(()=>Zb(r,i),[r,i]),{transitionStatus:o}=Yd(!1===a.state.valid),s=e.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return p(e.Fragment,{children:n(s)})},ux={root:`root-ECdHfF`,label:`label-YSWZBs`,error:`error-BUDKWp`,description:`description-IVviYU`,descriptionEnd:`descriptionEnd-O3mOtW`,control:`control-fRhDZ8`,controlLine:`controlLine-cAw0CF`,labelFloating:`labelFloating-io8BLN`,group:`group-XazO1A`,adornment:`adornment-Z1N0NF`,item:`item-kQeHOQ`,groupLine:`groupLine-vlna4V`},dx=e.createContext(!1),fx=e.forwardRef(({className:e,...t},n)=>p(dx.Provider,{value:!1,children:p(rx,{ref:n,className:$u(ux.root,e),...t})})),px=e.forwardRef(({className:e,variant:t=`default`,...n},r)=>p(ix,{ref:r,className:$u(ux.label,{[ux.labelFloating]:t===`floating`},e),...n})),mx=e.forwardRef(({className:e,...t},n)=>p(ox,{ref:n,className:$u(ux.error,e),render:({children:e,...t})=>m(`div`,{...t,children:[p(Zu,{"aria-hidden":!0}),e]}),...t})),hx=e.forwardRef(({className:e,align:t=`start`,...n},r)=>p(sx,{ref:r,className:$u(ux.description,{[ux.descriptionEnd]:t===`end`},e),...n})),gx=e.forwardRef(({className:e,variant:t=`box`,...n},r)=>p(dx.Provider,{value:!0,children:p(`div`,{ref:r,className:$u(Yb.root,ux.group,{[ux.groupLine]:t===`line`},e),...n})})),_x=e.forwardRef(({className:e,...t},n)=>p(`span`,{ref:n,className:$u(ux.adornment,e),...t})),vx=new Set([`text`,`email`,`password`,`search`,`url`,`tel`,`number`,`date`,`datetime-local`,`month`,`week`,`time`]),yx=e=>e!=null&&typeof e!=`boolean`,bx={Root:fx,Label:px,Error:mx,Description:hx,Control:e.forwardRef(({className:t,type:n=`text`,variant:r=`box`,prefix:i,suffix:a,groupClassName:o,...s},c)=>{let l=e.useContext(dx),u=yx(i),d=yx(a),h=u||d,g=p(Jb,{ref:c,type:n,className:$u({[Yb.root]:vx.has(n)},ux.control,{[ux.controlLine]:r===`line`},{"has-custom-focus":h||l},t),...s}),_=m(f,{children:[u&&p(_x,{children:i}),g,d&&p(_x,{children:a})]});return l?_:h?p(gx,{variant:r,className:o,children:_}):g}),Group:gx,Adornment:_x,Item:e.forwardRef(({className:e,...t},n)=>p(cx,{ref:n,className:$u(ux.item,e),...t})),Validity:lx};function xx(e){return typeof e==`number`?`${e}px`:e}var Sx={option:`option-o8pAcb`,root:`root-tqmYsF`,indicator:`indicator-_WzHbq`,optionContent:`optionContent-inaJL9`,optionLabel:`optionLabel-fJWxkM`,optionSuffix:`optionSuffix-AJytXe`},Cx=e.forwardRef(({className:e,style:t,label:n,suffix:r,variant:i=`default`,error:a=!1,errorMessage:o,verticalAlignment:s=`center`,size:c=zb.medium,width:l,indeterminate:u=!1,disabled:d=!1,...f},h)=>{let g=a||!!o,_=xx(l),v={...t,..._?{"--checkbox-option-width":_}:null};return m(bx.Root,{ref:h,className:$u(Sx.option,e),style:v,invalid:g,disabled:d,"data-variant":i,"data-has-error-message":o?``:void 0,children:[m(Hb.Root,{...f,className:Sx.root,indeterminate:u,disabled:d,"data-variant":i,"data-vertical-alignment":s,render:p(`label`,{}),size:c,children:[p(Hb.Indicator,{className:Sx.indicator}),m(`span`,{className:Sx.optionContent,children:[p(`span`,{className:Sx.optionLabel,children:n}),r?p(`span`,{className:Sx.optionSuffix,children:r}):null]})]}),g&&o?p(bx.Error,{match:!0,children:o}):null]})});Cx.displayName=`CheckboxField`;function wx(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var Tx=[];function Ex(t){let{allValues:n=Tx,value:r=Tx,onValueChange:i}=t,a=e.useRef(r),o=e.useRef(new Map),[s,c]=e.useState(`mixed`),l=ef(),u=r.length===n.length,d=r.length!==n.length&&r.length>0,f=Y(i),p=e.useCallback(()=>({id:l,indeterminate:d,checked:u,"aria-controls":n.map(e=>`${l}-${e}`).join(` `),onCheckedChange(e,t){let i=a.current,l=n.filter(e=>o.current.get(e)&&i.includes(e)),u=n.filter(e=>!o.current.get(e)||o.current.get(e)&&i.includes(e));if(i.length===u.length||i.length===0)return void(r.length===u.length?f(l,t):f(u,t));s===`mixed`?(f(u,t),c(`on`)):s===`on`?(f(l,t),c(`off`)):s===`off`&&(f(i,t),c(`mixed`))}}),[n,u,l,d,f,s,r.length]),m=e.useCallback(e=>({checked:r.includes(e),onCheckedChange(t,n){let i=r.slice();t?i.push(e):i.splice(i.indexOf(e),1),a.current=i,f(i,n),c(`mixed`)}}),[f,r]);return e.useMemo(()=>({id:l,indeterminate:d,getParentProps:p,getChildProps:m,disabledStatesRef:o}),[l,d,p,m])}var Dx=e.forwardRef(function(t,n){let{allValues:r,className:i,defaultValue:a,disabled:o=!1,id:s,onValueChange:c,render:l,value:u,style:d,...f}=t,{disabled:m,name:h,state:g,validation:_,setFilled:v,setDirty:y,shouldValidateOnChange:b,validityData:x}=fv(),{labelId:S,getDescriptionProps:C}=mv(),{clearErrors:w}=Zy(),T=m||o,E=e.useMemo(()=>{if(u===void 0)return a??[]},[u,a]),[D,O]=Vd({controlled:u,default:E,name:`CheckboxGroup`,state:`value`}),k=Y((e,t)=>{c?.(e,t),!t.isCanceled&&O(e)}),A=Ex({allValues:r,value:D,onValueChange:k}),j=ef(s),M=e.useRef(null),N=e.useCallback(e=>{M.current==null&&e!=null&&!e.hasAttribute(`data-parent`)&&(M.current=e)},[]);Qy(M,j,D,void 0,!!h);let P=D??ld;e_(P,()=>{h&&w(h);let e=Array.isArray(x.initialValue)?x.initialValue:ld;v(P.length>0),y(!wx(P,e)),b()?_.commit(P):_.commit(P,!0)});let F={...g,disabled:T},I=e.useMemo(()=>({allValues:r,value:D,defaultValue:E,setValue:k,parent:A,disabled:T,validation:_,registerControlRef:N}),[r,D,E,k,A,T,_,N]),L=Fd(`div`,t,{state:F,ref:n,props:[{role:`group`,"aria-labelledby":S},C,f],stateAttributesMapping:lv});return p(Cb.Provider,{value:I,children:L})}),Ox=e.forwardRef((e,t)=>p(Dx,{ref:t,...e})),kx={field:`field-Tx5eMP`,label:`label-E_rDm0`,items:`items-lFFDGE`},Ax=e.forwardRef(({className:t,style:n,children:r,label:i,layout:a=`vertical`,fluid:o=!1,error:s=!1,errorMessage:c,required:l=!1,width:u,disabled:d=!1,"aria-labelledby":f,"aria-required":h,...g},_)=>{let v=e.useId(),y=s||!!c,b=i?v:void 0,x=b&&f?`${f} ${b}`:b??f,S=xx(u),C={...n,...S?{"--checkbox-group-width":S}:null};return m(bx.Root,{className:$u(kx.field,t),style:C,invalid:y,disabled:d,"data-fluid":o?``:void 0,children:[i?p(`span`,{id:b,className:kx.label,children:i}):null,p(Ox,{ref:_,className:kx.items,disabled:d,"data-layout":a,"data-fluid":o?``:void 0,"aria-labelledby":x,"aria-required":l?!0:h,...g,children:r}),y&&c?p(bx.Error,{match:!0,children:c}):null]})});Ax.displayName=`CheckboxGroupField`,{...ap,...Sf},{...ip,...Sf};var jx=e.createContext(void 0);function Mx(t){let n=e.useContext(jx);if(n===void 0&&!t)throw Error(fd(69));return n}var Nx={current:null};function Px(t,n={}){let{enabled:r=!0,delay:i=0,handleClose:a=null,mouseOnly:o=!1,restMs:s=0,move:c=!0,triggerElementRef:l=Nx,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=n,g=`rootStore`in t?t.rootStore:t,{dataRef:_,events:v}=g.context,y=Um(u),b=lb(g),x=e.useRef(!1),S=Ef(a),C=Ef(i),w=Ef(s),T=Ef(r),E=Ef(m),D=Ef(p),O=Y(()=>pb(_.current.openEvent?.type,b.interactedInside)),k=Y(()=>E.current?.()!==!1),A=Y((e,t,n)=>{let r=g.context.triggerElements;if(r.hasElement(t))return!e||!Q(e,t);if(!Pf(n))return!1;let i=n;return r.hasMatchingElement(e=>Q(e,i))&&(!e||!Q(e,i))}),j=Y(()=>{b.handler&&=(lh(g.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),M=Y(()=>{sb(b)});return d&&(b.handleCloseOptions=S.current?.__options),e.useEffect(()=>j,[j]),e.useEffect(()=>{if(!r)return;function e(e){e.open?x.current=!1:(x.current=e.reason===cf,j(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return v.on(`openchange`,e),()=>{v.off(`openchange`,e)}},[r,v,b,j]),e.useEffect(()=>{if(!r)return;function e(e,t=!0){let n=db(C.current,`close`,b.pointerType);n?b.openChangeTimeout.start(n,()=>{g.setOpen(!1,of(cf,e)),y?.events.emit(`floating.closed`,e)}):t&&(b.openChangeTimeout.clear(),g.setOpen(!1,of(cf,e)),y?.events.emit(`floating.closed`,e))}let t=l.current??(d?g.select(`domReferenceElement`):null);if(!Pf(t))return;function n(e){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!Qp(b.pointerType))return;let t=fb(w.current),n=db(C.current,`open`,b.pointerType),r=Xm(e),i=e.currentTarget??null,a=g.select(`domReferenceElement`),s=i;if(Pf(r)&&!g.context.triggerElements.hasElement(r)){for(let e of g.context.triggerElements.elements())if(Q(e,r)){s=e;break}}Pf(i)&&Pf(a)&&!g.context.triggerElements.hasElement(i)&&Q(i,a)&&(s=a);let c=s!=null&&A(a,s,r),l=g.select(`open`),u=D.current?.()??g.select(`transitionStatus`)===`ending`,d=!l&&u&&x.current,f=!c&&Pf(s)&&Pf(a)&&Q(a,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,h=!l||c;m?k()&&g.setOpen(!0,of(cf,e,s)):p||(n?b.openChangeTimeout.start(n,()=>{h&&k()&&g.setOpen(!0,of(cf,e,s))}):h&&k()&&g.setOpen(!0,of(cf,e,s)))}function i(t){if(O())return void M();j();let n=lh(g.select(`domReferenceElement`));b.restTimeout.clear(),b.restTimeoutPending=!1;let r=_.current.floatingContext??f?.();if(!nh(t.relatedTarget,g.context.triggerElements)){if(S.current&&r){g.select(`open`)||b.openChangeTimeout.clear();let i=l.current;b.handler=S.current({...r,tree:y,x:t.clientX,y:t.clientY,onClose(){M(),j(),T.current&&!O()&&i===g.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,b.handler),b.handler(t)}else(b.pointerType!==`touch`||!Q(g.select(`floatingElement`),t.relatedTarget))&&e(t)}}return c?uh(Of(t,`mousemove`,n,{once:!0}),Of(t,`mouseenter`,n),Of(t,`mouseleave`,i)):uh(Of(t,`mouseenter`,n),Of(t,`mouseleave`,i))},[j,M,_,C,g,r,S,b,d,A,O,o,c,w,l,y,T,f,D,k]),e.useMemo(()=>{if(!r)return;function e(e){b.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=g.select(`domReferenceElement`),i=g.select(`open`),a=A(r,n,e.target);if(o&&!Qp(b.pointerType))return;if(i&&a&&b.handleCloseOptions?.blockPointerEvents){let e=g.select(`floatingElement`);if(e){let t=b.handleCloseOptions?.getScope?.()??n.ownerDocument.body;cb(b,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=fb(w.current);if(i&&!a||s===0||!a&&b.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;b.restTimeout.clear();function c(){if(b.restTimeoutPending=!1,O())return;let e=g.select(`open`);!b.blockMouseMove&&(!e||a)&&k()&&g.setOpen(!0,of(cf,t,n))}b.pointerType===`touch`?h.flushSync(()=>{c()}):a&&i?c():(b.restTimeoutPending=!0,b.restTimeout.start(s,c))}}},[r,b,O,A,o,g,w,k])}var Fx=.1,Ix=Fx*Fx,Lx=.5;function Rx(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function zx(e,t,n,r,i,a,o,s,c,l){let u=!1;return Rx(e,t,n,r,i,a)&&(u=!u),Rx(e,t,i,a,o,s)&&(u=!u),Rx(e,t,o,s,c,l)&&(u=!u),Rx(e,t,c,l,n,r)&&(u=!u),u}function Bx(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Vx(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Hx(e={}){let{blockPointerEvents:t=!1}=e,n=new qm,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=`u`>typeof performance?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Ix;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Xm(r),g=r.type===`mouseleave`,_=Q(u,h),v=Q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&Pf(r.relatedTarget)&&Q(u,r.relatedTarget))return;function y(){return!!(s&&dh(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1)return void b();let j=!1;switch(c){case`top`:j=Vx(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Vx(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Vx(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Vx(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!Bx(d,f,x)||!g&&p(d,f))return void b();let M=!1;switch(c){case`top`:{let n=T?Lx/2:4*Lx,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Lx+1,o=C||T?S.bottom-Lx:S.top,s=C?T?S.bottom-Lx:S.top:S.bottom-Lx;M=zx(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Lx/2:4*Lx,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Lx,o=C||T?S.top+Lx:S.bottom,s=C?T?S.top+Lx:S.bottom:S.top+Lx;M=zx(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Lx/2:4*Lx,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Lx+1,o=w||E?S.right-Lx:S.left,s=w?E?S.right-Lx:S.left:S.right-Lx;M=zx(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Lx/2:4*Lx,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Lx,o=w||E?S.left+Lx:S.right,s=w?E?S.left+Lx:S.right:S.left+Lx;M=zx(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Ux=e.createContext(null);function Wx(t){let n=e.useContext(Ux);if(n===null&&!t)throw Error(fd(5));return n}var Gx=e.createContext(void 0);function Kx(t=!0){let n=e.useContext(Gx);if(n===void 0&&!t)throw Error(fd(25));return n}var qx=e.createContext(void 0);function Jx(t){let n=e.useContext(qx);if(n===void 0&&!t)throw Error(fd(36));return n}function Yx(e){if(Ff(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!qf(e))return Yx(Xf(e))}({...vm,...Sf}),{...vm,...Sf},{...Sf};var Xx=e.createContext(void 0);function Zx(){return e.useContext(Xx)}var Qx={...G_,disabled:X(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:X(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:X(e=>e.openMethod),allowMouseEnter:X(e=>e.allowMouseEnter),stickIfOpen:X(e=>e.stickIfOpen),parent:X(e=>e.parent),rootId:X(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:X(e=>e.activeIndex),isActive:X((e,t)=>e.activeIndex===t),hoverEnabled:X(e=>e.hoverEnabled),instantType:X(e=>e.instantType),lastOpenChangeReason:X(e=>e.openChangeReason),floatingTreeRoot:X(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:X(e=>e.floatingNodeId),floatingParentNodeId:X(e=>e.floatingParentNodeId),itemProps:X(e=>e.itemProps),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport),keyboardEventRelay:X(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},$x=class t extends Lm{constructor(t){super({...eS(),...t},{positionerRef:e.createRef(),popupRef:e.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:e.createRef(),beforeContentFocusGuardRef:e.createRef(),onOpenChangeComplete:void 0,triggerElements:new yh},Qx),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef}else e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(e,n){let r=td(()=>new t(n)).current;return e??r}unsubscribeParentListener=null};function eS(){return{...R_(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new zm,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:ud,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}Dm(function(t){let{children:n,open:r,onOpenChange:i,onOpenChangeComplete:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:m,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:_=!0}=t,v=Kx(!0),y=Jx(!0),b=Wx(!0),x=Zx(),S=e.useMemo(()=>x&&y?{type:`menu`,store:y.store}:b?{type:`menubar`,context:b}:v&&!y?{type:`context-menu`,context:v}:{type:void 0},[v,y,b,x]),C=$x.useStore(m?.store,{open:o,openProp:r,activeTriggerId:g,triggerIdProp:h,parent:S});kh(()=>{r===void 0&&!1===C.state.open&&!0===o&&C.update({open:!0,activeTriggerId:g})}),C.useControlledProp(`openProp`,r),C.useControlledProp(`triggerIdProp`,h),C.useContextCallback(`onOpenChangeComplete`,a);let w=$d(),T=$d(),E=C.useState(`floatingTreeRoot`),D=Wm(E),O=Hm(),k=C.useState(`open`),A=C.useState(`activeTriggerElement`),j=C.useState(`positionerElement`),M=C.useState(`hoverEnabled`),N=C.useState(`disabled`),P=C.useState(`lastOpenChangeReason`),F=C.useState(`parent`),I=C.useState(`activeIndex`),L=C.useState(`payload`),ee=C.useState(`floatingParentNodeId`),R=e.useRef(null),z=e.useRef(F.type!==`context-menu`),B=Jm(),V=e.useRef(!0),H=Jm(),U=ee!=null,{openMethod:W,triggerProps:G}=E_(k);C.useSyncedValues({disabled:s,modal:F.type===void 0?c:void 0,openMethod:W,rootId:w}),Eh(C);let{forceUnmount:K}=Dh(k,C,()=>{C.update({allowMouseEnter:!1,stickIfOpen:!0})});J(()=>{v&&!y?C.update({parent:{type:`context-menu`,context:v},floatingNodeId:D,floatingParentNodeId:O}):y&&C.update({floatingNodeId:D,floatingParentNodeId:O})},[v,y,D,O,C]),e.useEffect(()=>{k||(R.current=null),F.type===`context-menu`&&(k?B.start(500,()=>{z.current=!0}):(B.clear(),z.current=!1))},[B,k,F.type]),J(()=>{!k&&!M&&C.set(`hoverEnabled`,!0)},[k,M,C]);let te=Y((e,t)=>{let n=t.reason;if(k===e&&t.trigger===A&&P===n||(t.preventUnmountOnClose=()=>{C.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=A??void 0),i?.(e,t),t.isCanceled))return;C.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type===`click`&&r.pointerType===`touch`&&!V.current)return;if(!e&&I!==null){let e=C.context.itemDomElements.current[I];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(V.current=!1,H.start(300,()=>{V.current=!0})):(V.current=!0,H.clear());let a=(n===`trigger-press`||n===`item-press`)&&r.detail===0&&r?.isTrusted,o=!e&&(n===`escape-key`||n==null),s={open:e,openChangeReason:n};R.current=t.event??null;let c=t.trigger?.id??null;(c||e)&&(s.activeTriggerId=c,s.activeTriggerElement=t.trigger??null),C.update(s),F.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?C.set(`instantType`,`group`):a||o?C.set(`instantType`,a?`click`:`dismiss`):C.set(`instantType`,void 0)}),ne=bh({popupStore:C,floatingId:T,nested:O!=null,onOpenChange:te}),re=ne.context.events;e.useEffect(()=>{let e=({open:e,eventDetails:t})=>te(e,t);return re.on(`setOpen`,e),()=>{re?.off(`setOpen`,e)}},[re,te]);let ie=e.useCallback(()=>{C.setOpen(!1,of(_f))},[C]);e.useImperativeHandle(d,()=>({unmount:K,close:ie}),[K,ie]);let ae;F.type===`context-menu`&&(ae=F.context),e.useImperativeHandle(ae?.positionerRef,()=>j,[j]),e.useImperativeHandle(ae?.actionsRef,()=>({setOpen:te}),[te]);let oe=vh(ne,{enabled:!N,bubbles:{escapeKey:f&&F.type===`menu`},outsidePress(){return F.type!==`context-menu`||R.current?.type===`contextmenu`||z.current},externalTree:U?E:void 0}),se=tm(),ce=e.useCallback(e=>{C.select(`activeIndex`)!==e&&C.set(`activeIndex`,e)},[C]),le=Jy(ne,{enabled:!N,listRef:C.context.itemDomElements,activeIndex:I,nested:F.type!==void 0,loopFocus:l,orientation:u,parentOrientation:F.type===`menubar`?F.context.orientation:void 0,rtl:se===`rtl`,disabledIndices:ld,onNavigate:ce,openOnArrowKeyDown:F.type!==`context-menu`,externalTree:U?E:void 0,focusItemOnHover:_}),ue=e.useCallback(e=>{C.context.typingRef.current=e},[C]),de=Vy(ne,{listRef:C.context.itemLabels,elementsRef:C.context.itemDomElements,activeIndex:I,resetMs:500,onMatch:e=>{k&&e!==I&&C.set(`activeIndex`,e)},onTyping:ue});Oh(C,{floatingRootContext:ne,activeTriggerProps:e.useMemo(()=>{let e=xd(de.reference,le.reference,oe.reference,{onMouseMove(){C.set(`allowMouseEnter`,!0)}},G);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=k,e},[C,de.reference,le.reference,oe.reference,G,k]),inactiveTriggerProps:e.useMemo(()=>{let e=xd(le.trigger,oe.trigger,G);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[le.trigger,oe.trigger,G]),popupProps:e.useMemo(()=>xd(xh,{id:T,role:`menu`,"aria-labelledby":A?.id,onMouseMove(){C.set(`allowMouseEnter`,!0),F.type===`menu`&&C.set(`hoverEnabled`,!1)},onClick(){C.select(`hoverEnabled`)&&C.set(`hoverEnabled`,!1)},onKeyDown(e){let t=C.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},de.floating,le.floating,oe.floating),[A,T,F.type,C,de.floating,le.floating,oe.floating]),itemProps:le.item??ud});let fe=e.useMemo(()=>({store:C,parent:S}),[C,S]),pe=p(qx.Provider,{value:fe,children:typeof n==`function`?n({payload:L}):n});return F.type===void 0||F.type===`context-menu`?p(Gm,{externalTree:E,children:pe}):pe});function tS(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}({...vm,...Sf}),function(e){return e[e.open=lm.open]=`open`,e[e.closed=lm.closed]=`closed`,e[e.startingStyle=lm.startingStyle]=`startingStyle`,e[e.endingStyle=lm.endingStyle]=`endingStyle`,e.expanded=`data-expanded`,e.nestedDrawerOpen=`data-nested-drawer-open`,e.nestedDrawerSwiping=`data-nested-drawer-swiping`,e.swipeDismiss=`data-swipe-dismiss`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({}),{...vm,...Sf};var nS=function(e){return e[e.open=lm.open]=`open`,e[e.closed=lm.closed]=`closed`,e.disabled=`data-disabled`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({});nS.open,nS.closed,nS.swiping,nS.disabled;function rS(t){let[n,r]=e.useState({current:t,previous:null});return t!==n.current&&r({current:t,previous:n.current}),n.previous}var iS=Up&&Vp;function aS(t,n={}){let{enabled:r=!0,delay:i}=n,a=`rootStore`in t?t.rootStore:t,{events:o,dataRef:s}=a.context,c=e.useRef(!1),l=e.useRef(null),u=e.useRef(!0),d=Jm();e.useEffect(()=>{let e=a.select(`domReferenceElement`);if(!r)return;let t=jf(e);function n(){let e=a.select(`domReferenceElement`);!a.select(`open`)&&Ff(e)&&e===Ym(lh(e))&&(c.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return uh(Of(t,`blur`,n),iS&&Of(t,`keydown`,i,!0),iS&&Of(t,`pointerdown`,o,!0))},[a,r]),e.useEffect(()=>{if(!r)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=a.select(`domReferenceElement`);Pf(e)&&(l.current=e,c.current=!0)}}return o.on(`openchange`,e),()=>{o.off(`openchange`,e)}},[o,r,a]);let f=e.useMemo(()=>{function e(){c.current=!1,l.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(c.current){if(l.current===n)return;e()}let r=Xm(t.nativeEvent);if(Pf(r)){if(iS&&!t.relatedTarget){if(!u.current&&!ah(r))return}else if(!sh(r))return}let o=nh(t.relatedTarget,a.context.triggerElements),{nativeEvent:s,currentTarget:f}=t,p=typeof i==`function`?i():i;if(a.select(`open`)&&o||p===0||p===void 0)return void a.setOpen(!0,of(lf,s,f));d.start(p,()=>{c.current||a.setOpen(!0,of(lf,s,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,i=Pf(n)&&n.hasAttribute(Sm(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;d.start(0,()=>{let e=a.select(`domReferenceElement`),t=Ym(lh(e));(n||t!==e)&&(Q(s.current.floatingContext?.refs.floating.current,t)||Q(e,t)||i||nh(n??t,a.context.triggerElements)||a.setOpen(!1,of(lf,r)))})}}},[s,i,a,d]);return e.useMemo(()=>r?{reference:f,trigger:f}:{},[r,f])}function oS(t,n){let r=e.useRef(null);function i(e){h.flushSync(()=>{t.setOpen(!1,of(ff,e.nativeEvent,e.currentTarget))}),Hg(r.current)?.focus()}function a(e){let r=t.select(`positionerElement`);if(r&&Ug(e,r))t.context.beforeContentFocusGuardRef.current?.focus();else{h.flushSync(()=>{t.setOpen(!1,of(ff,e.nativeEvent,e.currentTarget))});let i=Vg(t.context.triggerFocusTargetRef.current||n.current);for(;i!==null&&Q(r,i);){let e=i;if(i=Rg(i),i===e)break}i?.focus()}}return{preFocusGuardRef:r,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function sS(t){let{enabled:n=!0,mouseDownAction:r,open:i}=t,a=e.useRef(!1);return e.useMemo(()=>n?{onMouseDown:e=>{(r===`open`&&!i||r===`close`&&i)&&(a.current=!0,lh(e.currentTarget).addEventListener(`click`,()=>{a.current=!1},{once:!0}))},onClick:e=>{a.current&&(a.current=!1,e.preventBaseUIHandler())}}:ud,[n,r,i])}var cS=2;Om(function(t,n){let{render:r,className:i,style:a,disabled:o=!1,nativeButton:s=!0,id:c,openOnHover:l,delay:u=100,closeDelay:d=0,handle:f,payload:h,...g}=t,_=Jx(!0),v=f?.store??_?.store;if(!v)throw Error(fd(85));let y=ef(c),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),S=v.useState(`isOpenedByTrigger`,y),C=v.useState(`triggerPopupId`,y),w=e.useRef(null),T=uS(),E=fp(!0),D=Um(),O=e.useMemo(()=>D??new zm,[D]),{registerTrigger:k,isMountedByThisTrigger:A}=Th(y,w,v,{payload:h,closeDelay:d,parent:T,floatingTreeRoot:O,floatingNodeId:Wm(O),floatingParentNodeId:Hm(),keyboardEventRelay:E?.relayKeyboardEvent}),j=T.type===`menubar`,M=v.useState(`disabled`),N=o||M||j&&T.context.disabled,{getButtonProps:P,buttonRef:F}=mp({disabled:N,native:s});e.useEffect(()=>{!S&&T.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,S,T.type]);let I=e.useRef(null),L=Jm(),ee=Y(e=>{if(!I.current)return;L.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(Q(I.current,t)||Q(v.select(`positionerElement`),t)||t===I.current||t!=null&&Yx(t)===v.select(`rootId`))return;let n=Yy(I.current);e.clientX>=n.left-cS&&e.clientX<=n.right+cS&&e.clientY>=n.top-cS&&e.clientY<=n.bottom+cS||O.events.emit(`close`,{domEvent:e,reason:hf})});e.useEffect(()=>{S&&v.select(`lastOpenChangeReason`)===`trigger-hover`&&lh(I.current).addEventListener(`mouseup`,ee,{once:!0})},[S,ee,v]);let R=j&&T.context.hasSubmenuOpen,z=Px(x,{enabled:(l??R)&&!N&&T.type!==`context-menu`&&(!j||R&&!A),handleClose:Hx({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:T.type===void 0?u:void 0,delay:{close:d},triggerElementRef:w,externalTree:O,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),B=lS(S,v.select(`lastOpenChangeReason`)),V=Ah(x,{enabled:!N&&T.type!==`context-menu`,event:S&&j?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&B}),H=aS(x,{enabled:!N&&R}),U=sS({open:S,enabled:j,mouseDownAction:`open`}),W=e.useMemo(()=>xd(H.reference,V.reference),[H.reference,V.reference]),G=v.useState(`triggerProps`,A),{preFocusGuardRef:K,handlePreFocusGuardFocus:te,handleFocusTargetFocus:ne}=oS(v,w),re={disabled:N,open:S},ie=[I,n,F,k,w],ae=[W,z??ud,G,{"aria-haspopup":`menu`,"aria-controls":C,id:y,onMouseDown:e=>{v.select(`open`)||(L.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),lh(e.currentTarget).addEventListener(`mouseup`,ee,{once:!0}))}},j?{role:`menuitem`}:{},U,g,P],oe=Fd(`button`,t,{enabled:!j,stateAttributesMapping:_m,state:re,ref:ie,props:ae});return j?p(bb,{tag:`button`,render:r,className:i,style:a,state:re,refs:ie,props:ae,stateAttributesMapping:_m}):S?m(e.Fragment,{children:[p(bg,{ref:K,onFocus:te},`${y}-pre-focus-guard`),p(e.Fragment,{children:oe},y),p(bg,{ref:v.context.triggerFocusTargetRef,onFocus:ne},`${y}-post-focus-guard`)]}):p(e.Fragment,{children:oe},y)});function lS(t,n){let r=Jm(),[i,a]=e.useState(!1);return J(()=>{t&&n===`trigger-hover`?(a(!0),r.start(500,()=>{a(!1)})):t||(r.clear(),a(!1))},[t,n,r]),i}function uS(){let t=Kx(!0),n=Jx(!0),r=Wx(!0);return e.useMemo(()=>r?{type:`menubar`,context:r}:t&&!n?{type:`context-menu`,context:t}:{type:void 0},[t,n,r])}({...vm,...Sf}),L_(),L_(),{...vm,...Sf},{...vm,...Sf};var dS={inputValue:()=>null,value:()=>null,...lv},fS=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],pS=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],mS=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],hS=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],gS=[`%`,`٪`,`%`,`﹪`],_S=[`‰`,`؉`],vS=[`−`,`-`,`‒`,`–`,`—`,`﹣`],yS=[`+`,`﹢`];RegExp(`[${pS.join(``)}]`,`g`),RegExp(`[${mS.join(``)}]`,`g`),RegExp(`[${hS.join(``)}]`,`g`),RegExp(`[${fS.join(``)}]`,`g`),RegExp(`[${gS.join(``)}]`),RegExp(`[${_S.join(``)}]`),RegExp(`[${hS.join(``)}]`),[...yS],[...vS];var bS=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),xS=e=>`[${e.map(bS).join(``)}]`,SS=xS([`-`].concat(vS)),CS=xS([`+`].concat(yS));new RegExp(SS,`gu`),new RegExp(CS,`gu`),new RegExp(SS),new RegExp(CS),{...lv,...dS},bx.Error,{...vm,...Sf},{...vm,...Sf},{...G_},X(e=>e.disabled),X(e=>e.instantType),X(e=>e.openMethod),X(e=>e.openChangeReason),X(e=>e.modal),X(e=>e.focusManagerModal),X(e=>e.stickIfOpen),X(e=>e.titleElementId),X(e=>e.descriptionElementId),X(e=>e.openOnHover),X(e=>e.closeDelay),X(e=>e.hasViewport);var wS=e.createContext(void 0);function TS(t){let n=e.useContext(wS);if(n===void 0&&!t)throw Error(fd(50));return n}function ES(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function DS(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function OS(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(DS(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:ES(r,i,a,o)}}function kS(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function AS(e,t,n){let{lines:r}=OS(e.getClientRects());if(r.length<2)return;let i=kS(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function jS(e,t){function n(t){MS(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function MS(e,t,n,r){let i=AS(t,n,r);return e.current=i,i}({...vm,...Sf}),{...vm,...Sf},Om(function(t,n){let{render:r,className:i,delay:a,closeDelay:o,id:s,payload:c,handle:l,style:u,...d}=t,f=TS(!0),p=l?.store??f;if(!p)throw Error(fd(89));let m=ef(s),h=p.useState(`isTriggerActive`,m),g=p.useState(`isOpenedByTrigger`,m),_=p.useState(`floatingRootContext`),v=p.context.inlineRectCoordsRef,y=e.useRef(null),b=a??600,x=o??300,{registerTrigger:S,isMountedByThisTrigger:C}=Th(m,y,p,{payload:c});J(()=>{C&&(p.context.closeDelayRef.current=x)},[p,C,x]);let w=Px(_,{mouseOnly:!0,move:!1,handleClose:Hx(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:h,isClosing:()=>p.select(`transitionStatus`)===`ending`}),T=aS(_,{delay:b}),E={open:g},D=p.useState(`triggerProps`,C),O=jS(v,g);return Fd(`a`,t,{state:E,ref:[n,S,y],props:[w,T.reference,D,O,{id:m},d],stateAttributesMapping:gm})});var NS={...G_,instantType:X(e=>e.instantType),hasViewport:X(e=>e.hasViewport)},PS=class t extends Lm{constructor(t,n,r=!1){let i=new yh,a={...FS(),...t};a.floatingRootContext=z_(i,n,r),super(a,{popupRef:e.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},NS)}setOpen=(e,t)=>{let n=t.reason,r=n===cf,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&MS(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),wh(r,e,t.trigger),this.update(r)};r?h.flushSync(s):s()};static useStore(e,n){return Sh(e,(e,r)=>new t(n,e,r)).store}};function FS(){return{...R_(),instantType:void 0,hasViewport:!1}}function IS(t){let{open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,actionsRef:o,handle:s,triggerId:c,defaultTriggerId:l=null,children:u}=t,d=PS.useStore(s?.store,{open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});kh(()=>{n===void 0&&!1===d.state.open&&!0===r&&d.update({open:!0,activeTriggerId:l})}),d.useControlledProp(`openProp`,n),d.useControlledProp(`triggerIdProp`,c),d.useContextCallback(`onOpenChange`,i),d.useContextCallback(`onOpenChangeComplete`,a);let f=d.useState(`open`),h=d.useState(`activeTriggerId`),g=d.useState(`mounted`),_=d.useState(`payload`);Eh(d);let{forceUnmount:v}=Dh(f,d,()=>{d.context.inlineRectCoordsRef.current=void 0});J(()=>{f&&(h??d.set(`payload`,void 0))},[d,h,f]);let y=e.useCallback(()=>{d.setOpen(!1,of(_f))},[d]);e.useImperativeHandle(o,()=>({unmount:v,close:y}),[v,y]);let b=f||g;return m(wS.Provider,{value:d,children:[b&&p(LS,{store:d}),typeof u==`function`?u({payload:_}):u]})}function LS({store:t}){let n=vh(t.useState(`floatingRootContext`));return Oh(t,{activeTriggerProps:n.reference??ud,inactiveTriggerProps:n.trigger??ud,popupProps:e.useMemo(()=>xd(xh,n.floating),[n.floating])}),null}Dm(function(e){return TS(!0)?p(IS,{...e}):p(Gm,{children:p(IS,{...e})})});var RS=e.createContext(void 0);function zS(){return e.useContext(RS)}var BS=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),VS={checked(e){return e?{[BS.checked]:``}:{[BS.unchecked]:``}},...Sf,...lv},HS=e.createContext(void 0);function US(){let t=e.useContext(HS);if(t===void 0)throw Error(fd(52));return t}var WS=e.forwardRef(function(t,n){let{render:r,className:i,disabled:a=!1,readOnly:o=!1,required:s=!1,"aria-labelledby":c,value:l,inputRef:u,nativeButton:d=!1,id:f,style:h,...g}=t,_=zS(),{disabled:v,readOnly:y,required:b,form:x,checkedValue:S,touched:C=!1,validation:w,name:T}=_??{},E=_?.setCheckedValue??cd,D=_?.setTouched??cd,O=_?.registerControlRef??cd,k=_?.registerInputRef??cd,{setDirty:A,validityData:j,setTouched:M,setFilled:N,state:P,disabled:F}=fv(),I=Sb(),{labelId:L,getDescriptionProps:ee}=mv(),R=F||I.disabled||v||a,z=y||o,B=b||s,V=x,H=_?S===l:l===``,U=e.useRef(null),W=e.useRef(null),G=Y(e=>{e&&O(e,R)}),K=nd(u,W,k);J(()=>{W.current?.checked&&N(!0)},[N]),J(()=>{if(W.current){if(R&&H)return void k(null);U.current&&O(U.current,R),k(W.current)}},[H,R,O,k]);let te=ef(),ne=By({id:f,implicit:!1,controlRef:U}),re=d?void 0:ne,ie=Tb(c,L,W,!d,re),ae={role:`radio`,"aria-checked":H,"aria-required":B||void 0,"aria-readonly":z||void 0,"aria-labelledby":ie,[mb]:H?``:void 0,id:d?ne:te,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||R||z)return;e.preventDefault();let t=W.current;t&&t.dispatchEvent(new(jf(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))},onFocus(e){e.defaultPrevented||R||z||!C||(W.current?.click(),D(!1))}},{getButtonProps:oe,buttonRef:se}=mp({disabled:R,native:d}),ce={type:`radio`,ref:K,form:V,id:re,name:T,tabIndex:-1,style:T?Nh:Mh,"aria-hidden":!0,...l===void 0?ud:{value:q_(l)},disabled:R,checked:H,required:B,readOnly:z,onChange(e){if(e.nativeEvent.defaultPrevented||R||z||l===void 0)return;let t=of(`none`,e.nativeEvent);t.isCanceled||(M(!0),A(l!==j.initialValue),N(!0),E(l,t))},onFocus(){U.current?.focus()}},le=e.useMemo(()=>({...P,required:B,disabled:R,readOnly:z,checked:H}),[P,R,z,H,B]),ue=le,de=_!==void 0,fe=[n,U,se,G],pe=[ae,ee,w?.getValidationProps??ud,g,oe],me=Fd(`span`,t,{enabled:!de,state:le,ref:fe,props:pe,stateAttributesMapping:VS});return m(HS.Provider,{value:ue,children:[de?p(bb,{tag:`span`,render:r,className:i,style:h,state:le,refs:fe,props:pe,stateAttributesMapping:VS}):me,p(`input`,{...ce,suppressHydrationWarning:!0})]})}),GS=e.forwardRef(function(t,n){let{render:r,className:i,style:a,keepMounted:o=!1,...s}=t,c=US(),l=c.checked,{mounted:u,transitionStatus:d,setMounted:f}=Yd(l),p={...c,transitionStatus:d},m=e.useRef(null),h=o||u,g=Fd(`span`,t,{ref:[n,m],state:p,props:s,stateAttributesMapping:VS});return Tf({open:l,ref:m,onComplete(){l||f(!1)}}),h?g:null}),KS={root:`root-Lal8hj`,indicator:`indicator-YyFvol`},qS={small:12,medium:16,large:20};function JS({className:e,size:t=qS.medium,style:n,...r}){return p(WS,{...r,className:$u(KS.root,e,`has-custom-focus`),style:{"--radio-size":`${t}px`,...n}})}var YS={Root:JS,Indicator:e.forwardRef(({className:e,...t},n)=>p(GS,{ref:n,className:$u(KS.indicator,e),...t}))},XS={fieldItem:`fieldItem-RyE1Xd`,fieldLabel:`fieldLabel-3Ws24V`,fieldLabelStack:`fieldLabelStack-TwpByX`,fieldLabelText:`fieldLabelText-cfnyvw`,fieldSuffix:`fieldSuffix-SKi6ny`},ZS=e.forwardRef(({checked:e,description:t,descriptionProps:n,disabled:r,error:i,errorProps:a,indicatorProps:o,invalid:s,itemProps:c,label:l,labelProps:u,name:d,onSelect:f,radioProps:h,size:g,suffix:_,value:v,variant:y=`default`,...b},x)=>{let{className:S,onClick:C,...w}=c??{},{className:T,...E}=u??{},{className:D,render:O=p(`span`,{}),...k}=n??{},{className:A,match:j=!0,...M}=a??{},{disabled:N,...P}=h??{},F=r||N,I=t=>{C?.(t),!t.defaultPrevented&&f&&!F&&!e&&f(v)};return m(bx.Root,{...b,ref:x,name:d,disabled:F,invalid:s??!!i,children:[m(bx.Item,{...w,className:$u(XS.fieldItem,S),"data-variant":y,onClick:I,children:[p(YS.Root,{value:e?``:v,size:g,disabled:F,...P,children:p(YS.Indicator,{...o})}),m(bx.Label,{...E,className:$u(XS.fieldLabel,{[XS.fieldLabelStack]:t},T),children:[m(`span`,{className:XS.fieldLabelText,children:[l,_?p(`span`,{className:XS.fieldSuffix,children:_}):null]}),t?p(bx.Description,{...k,render:O,className:D,children:t}):null]})]}),i?p(bx.Error,{...M,match:j,className:A,children:i}):null]})});ZS.displayName=`RadioField`;var QS=[`Shift`],$S=e.forwardRef(function(t,n){let{render:r,className:i,disabled:a,readOnly:o,required:s,onValueChange:c,value:l,defaultValue:u,form:d,name:f,inputRef:m,id:h,style:g,..._}=t,{setTouched:v,setFocused:y,shouldValidateOnChange:b,validationMode:x,name:S,disabled:C,state:w,validation:T,setDirty:E,setFilled:D,validityData:O}=fv(),{labelId:k}=mv(),{clearErrors:A}=Zy(),j=Wb(!0),M=C||a,N=S??f,P=ef(h),[F,I]=Vd({controlled:l,default:u,name:`RadioGroup`,state:`value`}),[L,ee]=e.useState(!1),R=Y((e,t)=>{c?.(e,t),!t.isCanceled&&I(e)}),z=e.useRef(null),B=e.useRef(null),V=e.useRef(null);function H(e){let t;return m&&(typeof m==`function`?t=m(e):m.current=e),B.current=e,T.inputRef.current=e,t}let U=Y((e,t=!1)=>{e&&(t?z.current===e&&(z.current=null):z.current??=e)}),W=Y(e=>{if(!e||e.disabled)return;V.current||=e;let t=B.current;if(e.checked||t==null||t.disabled)return H(e)});Qy(z,P,F??null),e_(F,()=>{A(N),E(F!==O.initialValue),D(F!=null),b()?T.commit(F):T.commit(F,!0);let e=V.current;F==null&&e&&!e.disabled&&H(e)});let G=_[`aria-labelledby`]??k??j?.legendId,K={...w,disabled:M??!1,required:s??!1,readOnly:o??!1},te=e.useMemo(()=>({...w,checkedValue:F,disabled:M,form:d,validation:T,name:N,readOnly:o,registerControlRef:U,registerInputRef:W,required:s,setCheckedValue:R,setTouched:ee,touched:L}),[F,M,d,T,w,N,o,U,W,s,R,ee,L]),ne={role:`radiogroup`,"aria-required":s||void 0,"aria-disabled":M||void 0,"aria-readonly":o||void 0,"aria-labelledby":G,onFocus(){y(!0)},onBlur(e){Q(e.currentTarget,e.relatedTarget)||(v(!0),y(!1),x===`onBlur`&&T.commit(F))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(v(!0),ee(!0),y(!0))}};return p(RS.Provider,{value:te,children:p(vb,{render:r,className:i,style:g,state:K,props:[ne,T.getValidationProps,_],refs:[n],stateAttributesMapping:lv,enableHomeAndEndKeys:!1,modifierKeys:QS})})}),eC={root:`root-kKvIZ_`},tC=e.forwardRef(({className:e,orientation:t=`vertical`,"aria-orientation":n,...r},i)=>p($S,{ref:i,className:$u(eC.root,e),"data-orientation":t,"aria-orientation":n??(t===`horizontal`?t:void 0),...r})),nC={label:`label-JrSYqL`,group:`group-N19s7N`},rC=e.forwardRef(({label:t,error:n,description:r,variant:i=`default`,withSpacing:a=!1,fluid:o=!1,invalid:s,disabled:c,size:l,children:u,className:d,"aria-label":f,"aria-labelledby":h,...g},_)=>{let v=e.useId(),y=s??!!n,b=e.Children.map(u,t=>{if(!e.isValidElement(t))return t;let n=t.props;return e.cloneElement(t,{variant:n.variant??i,invalid:n.invalid??(y||void 0),size:n.size??l,checked:void 0})});return m(bx.Root,{invalid:y,disabled:c,children:[t==null?null:p(`span`,{id:v,className:nC.label,children:t}),p(tC,{ref:_,disabled:c,"aria-label":t==null?f:void 0,"aria-labelledby":t==null?h:h??v,"data-variant":i,"data-spacing":a?``:void 0,"data-fluid":o?``:void 0,className:$u(nC.group,d),...g,children:b}),n==null?null:p(bx.Error,{match:y,children:n}),r==null?null:p(bx.Description,{children:r})]})});rC.displayName=`RadioGroupField`;var iC=e.createContext(void 0),aC={disableStyleElements:!1};function oC(){return e.useContext(iC)??aC}var sC=`base-ui-disable-scrollbar`,cC={className:sC,getElement(e){return p(`style`,{nonce:e,href:sC,precedence:`base-ui:low`,children:`.${sC}{scrollbar-width:none}.${sC}::-webkit-scrollbar{display:none}`})}},lC=1;function uC(e,t){return Math.max(0,e-t)}function dC(e,t){if(t<=0)return 0;let n=tS(e,0,t),r=n,i=t-n,a=r<=lC,o=i<=lC;return a&&o?r<=i?0:t:a?0:o?t:n}var fC=e.createContext(null),pC=e.createContext(null);function mC(){let t=e.useContext(fC);if(t===null)throw Error(fd(60));return t}function hC(){let t=e.useContext(pC);if(t===null)throw Error(fd(61));return t}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:nv(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?ev(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>Y_(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null||Y_(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)},gC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=fv(),{store:c}=mC(),l=Z(c,$.triggerElement),u=Z(c,$.id),d=Kb({id:hv(u),fallbackControlId:l?.id??u,setLabelId(e){c.set(`labelId`,e)}});return Fd(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:lv})}),_C=2,vC=400,yC={..._m,...lv,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},bC=e.forwardRef(function(t,n){let{render:r,className:i,id:a,disabled:o=!1,nativeButton:s=!0,style:c,...l}=t,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=fv(),{labelId:h}=mv(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:C,keyboardActiveRef:w}=mC(),T=m||C||o,E=Z(g,$.open),D=Z(g,$.mounted),O=Z(g,$.value),k=Z(g,$.triggerProps),A=Z(g,$.positionerElement),j=Z(g,$.listElement),M=Z(g,$.popupSide),N=Z(g,$.id),P=Z(g,$.labelId),F=Z(g,$.hasSelectedValue),I=D&&A?M:null,L=a??N,ee=gv(h,P);By({id:L});let R=Ef(A),z=e.useRef(null),{getButtonProps:B,buttonRef:V}=mp({disabled:T,native:s}),H=nd(n,z,V,Y(e=>{g.set(`triggerElement`,e)})),U=Jm(),W=Jm(),G=Jm();e.useEffect(()=>{if(E)return G.start(vC,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},W.clear()},[E,v,W,G]);let K=xd(k,{id:L,role:`combobox`,"aria-expanded":E?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":E?j?.id??ch(A)?.id:void 0,"aria-labelledby":ee,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:T?-1:0,ref:H,onFocus(e){d(!0),E&&S.current&&_(!1,of(`none`,e.nativeEvent)),U.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){Q(A,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&y.commit(O))},onPointerMove(){w.current=!1},onKeyDown(){w.current=!0},onMouseDown(e){if(E)return;let t=lh(e.currentTarget);function n(e){if(!z.current)return;let t=e.target;if(Q(z.current,t)||Q(R.current,t)||t===z.current)return;let n=Yy(z.current);e.clientX>=n.left-_C&&e.clientX<=n.right+_C&&e.clientY>=n.top-_C&&e.clientY<=n.bottom+_C||_(!1,of(hf,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,l,B);K.role=`combobox`;let te={...p,open:E,disabled:T,value:O,readOnly:b,popupSide:I,placeholder:!F};return Fd(`button`,t,{ref:[n,z],state:te,stateAttributesMapping:yC,props:K})}),xC={value:()=>null},SC=e.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=mC(),u=Z(c,$.value),d=Z(c,$.items),f=Z(c,$.itemToStringLabel),p=Z(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=Z(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(p||a==null||h?Array.isArray(u)?iv(u,d,f):rv(u,d,f):a),Fd(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:xC})}),CC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=mC();return Fd(`span`,e,{state:{open:Z(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:gm})}),wC={...vm,...Sf},TC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=mC(),s=Z(o,$.open),c=Z(o,$.mounted);return Fd(`div`,e,{state:{open:s,transitionStatus:Z(o,$.transitionStatus)},ref:t,props:[{role:`presentation`,hidden:!c,style:{userSelect:`none`,WebkitUserSelect:`none`}},a],stateAttributesMapping:wC})}),EC=e.createContext(void 0);function DC(){let t=e.useContext(EC);if(!t)throw Error(fd(59));return t}function OC(e,t){e&&Object.assign(e.style,t)}var kC={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},AC={position:`fixed`},jC=e.forwardRef(function(t,n){let{anchor:r,positionMethod:i=`absolute`,className:a,render:o,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:_,alignItemWithTrigger:v=!0,collisionAvoidance:y=qg,style:b,...x}=t,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:k,setValue:A}=mC(),j=hC(),M=Z(S,$.open),N=Z(S,$.mounted),P=Z(S,$.modal),F=Z(S,$.value),I=Z(S,$.openMethod),L=Z(S,$.positionerElement),ee=Z(S,$.triggerElement),R=Z(S,$.isItemEqualToValue),z=Z(S,$.transitionStatus),B=e.useRef(null),V=e.useRef(null),[H,U]=e.useState(v),W=N&&H&&I!==`touch`;!N&&H!==v&&U(v),J(()=>{N||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,N]),e.useImperativeHandle(T,()=>W),zy((W||P)&&M,I===`touch`,L,ee);let G=Py({anchor:r,floatingRootContext:j,positionMethod:i,mounted:N,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:h,collisionBoundary:d,collisionPadding:f,sticky:g,disableAnchorTracking:_??W,collisionAvoidance:y,keepMounted:!0}),K=W?`none`:G.side,te=W?AC:G.positionerStyles,ne={open:M,side:K,align:G.align,anchorHidden:G.anchorHidden};J(()=>{S.set(`popupSide`,G.side)},[S,G.side]);let re=Ly(t,ne,{styles:te,transitionStatus:z,props:x,refs:[n,Y(e=>{S.set(`positionerElement`,e)})],hidden:!N,inert:!M}),ie=e.useRef(0),ae=Y(e=>{if(e.size===0&&ie.current===0||D.current.length===0)return;let t=ie.current;if(ie.current=e.size,e.size===t)return;let n=of(`none`);if(t!==0&&!S.state.multiple&&F!==null&&Z_(D.current,F,R)===-1){let e=O.current,t=e!=null&&Z_(D.current,e,R)!==-1?e:null;A(t,n),t===null&&(S.set(`selectedIndex`,null),E.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(F)){let e=e=>Z_(D.current,e,R)!==-1,t=F.filter(t=>e(t));(t.length!==F.length||t.some(e=>!X_(F,e,R)))&&(A(t,n),t.length===0&&(S.set(`selectedIndex`,null),E.current=null))}if(M&&W){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};OC(L,e),OC(k.current,e)}}),oe=e.useMemo(()=>({...G,side:K,alignItemWithTriggerActive:W,setControlledAlignItemWithTrigger:U,scrollUpArrowRef:B,scrollDownArrowRef:V}),[G,K,W,U]);return p(nm,{elementsRef:C,labelsRef:w,onMapChange:ae,children:m(EC.Provider,{value:oe,children:[N&&P&&p(I_,{inert:K_(!M),cutout:ee}),re]})})}),MC={...vm,...Sf},NC=e.forwardRef(function(t,n){let{render:r,className:i,style:a,finalFocus:o,...s}=t,{store:c,popupRef:l,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:h,selectedItemTextRef:g,keyboardActiveRef:_,multiple:v,handleScrollArrowVisibility:y,scrollHandlerRef:b,listRef:x,highlightItemOnHover:S}=mC(),{side:C,align:w,alignItemWithTriggerActive:T,isPositioned:E,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:O,scrollUpArrowRef:k}=DC(),A=Mx(!0)!=null,j=hC(),M=tm(),{nonce:N,disableStyleElements:P}=oC(),F=Z(c,$.id),I=Z(c,$.open),L=Z(c,$.mounted),ee=Z(c,$.popupProps),R=Z(c,$.transitionStatus),z=Z(c,$.triggerElement),B=Z(c,$.positionerElement),V=Z(c,$.listElement),H=e.useRef(!1),U=e.useRef(!1),W=e.useRef({}),G=Jd(),K=Y(e=>{if(!B||!l.current||!U.current)return;if(H.current||!T)return void y();let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n)return void y();let r=IC(B),i=LC(B.getBoundingClientRect().height,`y`,r),a=lh(B),o=getComputedStyle(B),s=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),u=PC(getComputedStyle(l.current)),d=Math.min(a.documentElement.clientHeight-s-c,u),f=e.scrollTop,p=FC(e),m=0,h=null,g=!1,_=!1,v=e=>{B.style.height=`${e}px`},b=(t,n)=>{let r=tS(t,0,d-i);r>0&&v(i+r),e.scrollTop=n,d-(i+r)<=1&&(H.current=!0),y()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1)return void b(x,t?p:0);if(d-S>1?t?_=!0:h=0:(g=!0,n&&f<p&&(h=f-(x-(i+x-d)))),m=Math.ceil(m),m!==0&&v(m),_||h!=null){let t=FC(e),n=_?t:tS(h,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(g||m>=d-1)&&(H.current=!0),y()});e.useImperativeHandle(b,()=>K,[K]),Tf({open:I,ref:l,onComplete(){I&&u?.(!0)}});let te={open:I,transitionStatus:R,side:C,align:w};J(()=>{B&&l.current&&!Object.keys(W.current).length&&(W.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[l,B]),J(()=>{I||T||(U.current=!1,H.current=!1,OC(B,W.current))},[I,T,B,l]),J(()=>{let e=l.current;if(!I||!z||!B||!e||T&&!E||c.state.transitionStatus===`ending`)return;if(!T){U.current=!0,G.request(y),e.style.removeProperty(`--transform-origin`);return}let t=BC(e);e.style.removeProperty(`--transform-origin`);try{let t=g.current;t?.isConnected||(t=!$.hasSelectedValue(c.state)&&h.current?.isConnected?h.current:null);let n=f.current,r=getComputedStyle(B),i=getComputedStyle(e),a=lh(z),o=jf(B),s=IC(z),l=RC(z.getBoundingClientRect(),s),u=RC(B.getBoundingClientRect(),s),d=l.height,p=V||e,m=p.scrollHeight,_=parseFloat(i.borderBottomWidth),v=parseFloat(r.marginTop)||10,b=parseFloat(r.marginBottom)||10,C=parseFloat(r.minHeight)||100,w=PC(i),T=a.documentElement.clientHeight-v-b,E=a.documentElement.clientWidth,O=T-l.bottom+d,k,A=M===`rtl`?l.right-u.width:l.left,j=0;if(t&&n){let e=RC(n.getBoundingClientRect(),s);k=RC(t.getBoundingClientRect(),s),A=u.left+(M===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;j=k.top-u.top+k.height/2-r}let N=O+j+b+_,P=Math.min(T,N),F=T-v-b,I=N-P,L=E-5;B.style.left=`${tS(A,5,L-u.width)}px`,B.style.height=`${P}px`,B.style.maxHeight=`auto`,B.style.marginTop=`${v}px`,B.style.marginBottom=`${b}px`,e.style.height=`100%`;let ee=FC(p),R=I>=ee-1;R&&(P=Math.min(T,u.height)-(I-ee));let G=l.top<20||l.bottom>T-20||Math.ceil(P)+1<Math.min(m,C),K=(o.visualViewport?.scale??1)!==1&&zp;if(G||K){U.current=!0,OC(B,W.current),D(!1);return}let te=Math.max(C,P);if(R){let e=Math.max(0,T-N);B.style.top=u.height>=F?`0`:`${e}px`,B.style.height=`${P}px`,p.scrollTop=FC(p)}else B.style.bottom=`0`,p.scrollTop=I;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=tS(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(te===T||P>=w)&&(H.current=!0),y(),S&&c.state.selectedIndex===null&&c.state.activeIndex===null&&x.current[0]!=null&&c.set(`activeIndex`,0),U.current=!0}finally{t()}},[c,I,B,z,f,h,g,l,y,T,D,G,O,k,V,x,S,M,E]),e.useEffect(()=>{if(!T||!B||!I)return;let e=jf(B);function t(e){d(!1,of(vf,e))}return Of(e,`resize`,t)},[d,T,B,I]);let ne={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":v||void 0,id:`${F}-list`},onKeyDown(e){_.current=!0,A&&Op.has(e.key)&&e.stopPropagation()},onMouseMove(){_.current=!1},onScroll(e){V||K(e.currentTarget)},...T&&{style:V?{height:`100%`}:kC}},re=Fd(`div`,t,{ref:[n,l],state:te,stateAttributesMapping:MC,props:[ee,ne,Iy(R),{className:!V&&T?cC.className:void 0},s]});return m(e.Fragment,{children:[!P&&cC.getElement(N),p(C_,{context:j,modal:!1,disabled:!L,returnFocus:o,restoreFocus:!0,children:re})]})});function PC(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function FC(e){return uC(e.scrollHeight,e.clientHeight)}function IC(e){return ry.getScale(e)}function LC(e,t,n){return e/n[t]}function RC(e,t){return sg({x:LC(e.x,`x`,t),y:LC(e.y,`y`,t),width:LC(e.width,`x`,t),height:LC(e.height,`y`,t)})}var zC=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function BC(e){let{style:t}=e,n={};for(let[e,r]of zC)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of zC){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var VC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=mC(),{alignItemWithTriggerActive:c}=DC(),l=Z(o,$.hasScrollArrows),u=Z(o,$.openMethod),d=Z(o,$.multiple),f={id:`${Z(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:kC},className:l&&u!==`touch`?cC.className:void 0};return Fd(`div`,e,{ref:[t,Y(e=>{o.set(`listElement`,e)})],props:[f,a]})}),HC=e.createContext(void 0);function UC(){let t=e.useContext(HC);if(!t)throw Error(fd(57));return t}var WC=e.memo(e.forwardRef(function(t,n){let{render:r,className:i,style:a,value:o=null,label:s,disabled:c=!1,nativeButton:l=!1,...u}=t,d=e.useRef(null),f=lp({label:s,textRef:d,indexGuessBehavior:cp.GuessFromOrder}),{store:m,itemProps:h,setOpen:g,setValue:_,selectionRef:v,typingRef:y,valuesRef:b,multiple:x,selectedItemTextRef:S}=mC(),C=Z(m,$.isActive,f.index),w=Z(m,$.isSelected,f.index,o),T=Z(m,$.isSelectedByFocus,f.index),E=Z(m,$.isItemEqualToValue),D=f.index,O=D!==-1,k=e.useRef(null);J(()=>{if(!O)return;let e=b.current;return e[D]=o,()=>{delete e[D]}},[O,D,o,b]),J(()=>{if(!O)return;let e=m.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&Y_(o,t,E)&&(m.set(`selectedIndex`,D),d.current&&(S.current=d.current))},[O,D,x,E,m,o,S]);let A=e.useRef(null),j=e.useRef(`mouse`),M=e.useRef(!1),{getButtonProps:N,buttonRef:P}=mp({disabled:c,focusableWhenDisabled:!0,native:l,composite:!0}),F={disabled:c,selected:w,highlighted:C};function I(e){let t=m.state.value;if(x){let n=Array.isArray(t)?t:[],r=w?Q_(n,o,E):[...n,o];_(r,of(df,e))}else _(o,of(df,e)),g(!1,of(df,e))}function L(){v.current.dragY=0}let ee={role:`option`,"aria-selected":w,tabIndex:C?0:-1,onKeyDown(e){A.current=e.key,m.set(`activeIndex`,D),e.key===` `&&y.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Xp(e.nativeEvent)&&(n!==void 0||C),i=t&&!r&&!M.current;M.current=!1,(e.type!==`keydown`||A.current!==null)&&(c||e.type===`keydown`&&A.current===` `&&y.current||i||(A.current=null,I(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,L()},onMouseUp(){if(L(),c||j.current===`touch`||M.current)return;let e=!v.current.allowSelectedMouseUp&&w,t=!v.current.allowUnselectedMouseUp&&!w;e||t||(M.current=!0,k.current?.click(),M.current=!1)}},R=Fd(`div`,t,{ref:[P,n,f.ref,k],state:F,props:[h,ee,u,N]}),z=e.useMemo(()=>({selected:w,index:D,textRef:d,selectedByFocus:T,hasRegistered:O}),[w,D,d,T,O]);return p(HC.Provider,{value:z,children:R})})),GC=e.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=UC();return n||r?p(KC,{...e,ref:t}):null}),KC=e.memo(e.forwardRef((t,n)=>{let{render:r,className:i,style:a,keepMounted:o,...s}=t,{selected:c}=UC(),l=e.useRef(null),{transitionStatus:u,setMounted:d}=Yd(c),f=Fd(`span`,t,{ref:[n,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:Sf});return Tf({open:c,ref:l,onComplete(){c||d(!1)}}),f})),qC=e.memo(e.forwardRef(function(t,n){let{index:r,textRef:i,selectedByFocus:a,hasRegistered:o}=UC(),{firstItemTextRef:s,selectedItemTextRef:c}=mC(),{render:l,className:u,style:d,...f}=t;return Fd(`div`,t,{ref:[e.useCallback(e=>{e&&(o&&r===0&&(s.current=e),o&&a&&(c.current=e))},[s,c,r,a,o]),n,i],props:f})})),JC={...vm,...Sf},YC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=mC(),{side:s,align:c,arrowRef:l,arrowStyles:u,arrowUncentered:d,alignItemWithTriggerActive:f}=DC(),p=Fd(`div`,e,{state:{open:Z(o,$.open,!0),side:s,align:c,uncentered:d},ref:[l,t],props:[{style:u,"aria-hidden":!0},a],stateAttributesMapping:JC});return f?null:p}),XC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=mC(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=DC(),_=Z(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=Z(l,$.openMethod),y=_&&v!==`touch`,b=Jm(),x=c?g:h,{transitionStatus:S,setMounted:C}=Yd(y);J(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),Tf({open:y,ref:x,onComplete(){y||C(!1)}});let w=Fd(`div`,e,{ref:[t,x],state:{direction:a,visible:y,side:m,transitionStatus:S},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=uC(e.scrollHeight,e.clientHeight),r=dC(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i)return void b.clear();if(a.length>0){let t=x.current?.offsetHeight||0;e.scrollTop=ZC(a,c,r,e.clientHeight,t,n)}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},s]});return y||o?w:null});function ZC(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?dC(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?dC(l.offsetTop+l.offsetHeight-r+i,a):a}var QC=e.forwardRef(function(e,t){return p(XC,{...e,ref:t,direction:`down`})}),$C=e.forwardRef(function(e,t){return p(XC,{...e,ref:t,direction:`up`})}),ew=e.createContext(void 0);function tw(){let t=e.useContext(ew);if(t===void 0)throw Error(fd(56));return t}var nw=e.forwardRef(function(t,n){let{render:r,className:i,style:a,...o}=t,[s,c]=e.useState(),l=e.useMemo(()=>({labelId:s,setLabelId:c}),[s,c]),u=Fd(`div`,t,{ref:n,props:[{role:`group`,"aria-labelledby":s},o]});return p(ew.Provider,{value:l,children:u})}),rw=e.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=tw(),c=ef(a);return J(()=>{s(c)},[c,s]),Fd(`div`,e,{ref:t,props:[{id:c},o]})});function iw(t){let{id:n,value:r,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:c,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:h=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:b,items:x,multiple:S=!1,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T=J_,highlightItemOnHover:E=!0,children:D}=t,{clearErrors:O}=Zy(),{setDirty:k,setTouched:A,setFocused:j,shouldValidateOnChange:M,validityData:N,setFilled:P,name:F,disabled:I,validation:L,validationMode:ee}=fv(),R=By({id:n}),z=I||f,B=F??l,[V,H]=Vd({controlled:r,default:S?i??ld:i,name:`Select`,state:`value`}),[U,W]=Vd({controlled:o,default:s,name:`Select`,state:`open`}),G=e.useRef([]),K=e.useRef([]),te=e.useRef(null),ne=e.useRef(null),re=e.useRef(0),ie=e.useRef(null),ae=e.useRef([]),oe=e.useRef(!1),se=e.useRef(!1),ce=e.useRef(null),le=e.useRef(null),ue=e.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),de=e.useRef(!1),{mounted:fe,setMounted:pe,transitionStatus:me}=Yd(U),{openMethod:he,triggerProps:ge}=E_(U),_e=td(()=>new Im({id:R,labelId:void 0,modal:_,multiple:S,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,value:V,open:U,mounted:fe,transitionStatus:me,items:x,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ve=Z(_e,$.activeIndex),ye=Z(_e,$.selectedIndex),be=Z(_e,$.triggerElement),xe=Z(_e,$.positionerElement),Se=rS(he),Ce=he??Se,we=e.useMemo(()=>S&&Array.isArray(V)&&V.length===0?``:nv(V,w),[S,V,w]),Te=e.useMemo(()=>S&&Array.isArray(V)?V.map(e=>nv(e,w)):nv(V,w),[S,V,w]);Qy(Ef(_e.state.triggerElement),R,V,Y(()=>Te));let Ee=e.useRef(V),De=S?Array.isArray(V)&&V.length>0:V!=null;J(()=>{V!==Ee.current&&_e.set(`forceMount`,!0)},[_e,V]),J(()=>{P(De)},[De,P]),J(function(){let e=ae.current,t;if(S){let n=Array.isArray(V)?V:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=Z_(e,r,T);t=i===-1?null:i}}else{let n=Z_(e,V,T);t=n===-1?null:n}t===null&&(le.current=null),!U&&_e.set(`selectedIndex`,t)},[De,S,U,V,ae,T,_e,le]),e_(V,()=>{O(B),k(V!==N.initialValue),M()?L.commit(V):L.commit(V,!0)});let Oe=Y((e,t)=>{if(c?.(e,t),!t.isCanceled&&(W(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(A(!0),j(!1),ee===`onBlur`&&L.commit(V)),!e&&_e.state.activeIndex!==null)){let e=G.current[_e.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),ke=Y(()=>{pe(!1),_e.update({activeIndex:null,openMethod:null}),b?.(!1)});Tf({enabled:!v,open:U,ref:te,onComplete(){U||ke()}}),e.useImperativeHandle(v,()=>({unmount:ke}),[ke]);let Ae=Y((e,t)=>{a?.(e,t),!t.isCanceled&&H(e)}),je=Y(()=>{let e=_e.state.listElement||te.current;if(!e)return;let t=uC(e.scrollHeight,e.clientHeight),n=dC(e.scrollTop,t),r=n>0,i=n<t;_e.state.scrollUpArrowVisible!==r&&_e.set(`scrollUpArrowVisible`,r),_e.state.scrollDownArrowVisible!==i&&_e.set(`scrollDownArrowVisible`,i)}),Me=Ey({open:U,onOpenChange:Oe,elements:{reference:be,floating:xe}}),Ne=Ah(Me,{enabled:!h&&!z,event:`mousedown`}),Pe=vh(Me),Fe=Jy(Me,{enabled:!h&&!z,listRef:G,activeIndex:ve,selectedIndex:ye,disabledIndices:ld,onNavigate(e){(e!==null||U)&&_e.set(`activeIndex`,e)},focusItemOnHover:E}),Ie=Vy(Me,{enabled:!h&&!z&&(U||!S),listRef:K,activeIndex:ve,selectedIndex:ye,onMatch(e){U?_e.set(`activeIndex`,e):Ae(ae.current[e],of(`none`))},onTyping(e){oe.current=e}}),Le=e.useMemo(()=>{let e=xd(Ie.reference,Fe.reference,Pe.reference,Ne.reference,ge);return R&&(e.id=R),e},[Ne.reference,Ie.reference,Fe.reference,Pe.reference,ge,R]),Re=e.useMemo(()=>xd(xh,Ie.floating,Fe.floating,Pe.floating),[Ie.floating,Fe.floating,Pe.floating]),ze=Fe.item??ud;kh(()=>{_e.update({popupProps:Re,triggerProps:Le})}),J(()=>{_e.update({id:R,modal:_,multiple:S,value:V,open:U,mounted:fe,transitionStatus:me,popupProps:Re,triggerProps:Le,items:x,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,openMethod:Ce})},[_e,R,_,S,V,U,fe,me,Re,Le,x,C,w,T,Ce]);let Be=e.useMemo(()=>({store:_e,name:B,required:g,disabled:z,readOnly:h,multiple:S,highlightItemOnHover:E,setValue:Ae,setOpen:Oe,listRef:G,popupRef:te,scrollHandlerRef:ne,handleScrollArrowVisibility:je,scrollArrowsMountedCountRef:re,itemProps:ze,events:Me.context.events,valueRef:ie,valuesRef:ae,labelsRef:K,typingRef:oe,selectionRef:ue,firstItemTextRef:ce,selectedItemTextRef:le,validation:L,onOpenChangeComplete:b,keyboardActiveRef:se,alignItemWithTriggerActiveRef:de,initialValueRef:Ee}),[_e,B,g,z,h,S,E,Ae,Oe,ze,Me.context.events,L,b,je]),Ve=nd(y,L.inputRef),He=S&&Array.isArray(V)&&V.length>0,Ue=S?void 0:B,We=e.useMemo(()=>!S||!Array.isArray(V)||!B?null:V.map(e=>{let t=nv(e,w);return p(`input`,{type:`hidden`,form:u,name:B,value:t},t)}),[S,V,u,B,w]);return p(fC.Provider,{value:Be,children:m(pC.Provider,{value:Me,children:[D,p(`input`,{...L.getInputValidationProps({onFocus(){_e.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||z||h)return void e.preventBaseUIHandler?.();let t=e.currentTarget.value,n=of(`none`,e.nativeEvent);function r(){if(S)return;let e=ae.current.find(e=>nv(e,w).toLowerCase()===t.toLowerCase()||tv(e,C).toLowerCase()===t.toLowerCase());e!=null&&(k(e!==N.initialValue),Ae(e,n),M()&&L.commit(e))}_e.set(`forceMount`,!0),queueMicrotask(r)}}),id:R&&Ue==null?`${R}-hidden-input`:void 0,form:u,name:Ue,autoComplete:d,value:we,disabled:z,required:g&&!He,readOnly:h,ref:Ve,style:B?Nh:Mh,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),We]})})}var aw=e.createContext(void 0),ow=e.forwardRef(function(e,t){let{store:n}=mC(),r=Z(n,$.mounted),i=Z(n,$.forceMount);return r||i?p(aw.Provider,{value:!0,children:p($g,{ref:t,...e})}):null}),sw={label:`label-UrIm_f`,fieldLabel:`fieldLabel-KieHgU`,requiredMarker:`requiredMarker-ZRoZQT`,trigger:`trigger-UPubf5`,value:`value-fKND1Z`,icon:`icon-_ToIv8`,backdrop:`backdrop-kGw5mZ`,positioner:`positioner-rz27gX`,popup:`popup-BEvbSY`,list:`list-fTpwcL`,item:`item-SBIvtk`,itemText:`itemText-tVdjcF`,itemContent:`itemContent-N1nRUK`,itemDescription:`itemDescription-MNvNbs`,itemIcon:`itemIcon-ASIDFq`,itemSuffix:`itemSuffix-h2RKor`,itemIndicator:`itemIndicator-qlxJA4`,arrow:`arrow-TRzfpO`,scrollDownArrow:`scrollDownArrow-mffvLs`,scrollUpArrow:`scrollUpArrow-P67Eti`,groupLabel:`groupLabel-GC3RgN`,separator:`separator-XEtOy2`,loadingIndicator:`loadingIndicator-X_6SEg`,loadingIndicatorSpin:`loadingIndicatorSpin-xPUyVe`},cw={Root:iw,Label:e.forwardRef(({className:e,...t},n)=>p(gC,{ref:n,className:$u(sw.label,e),...t})),Trigger:e.forwardRef(({className:e,...t},n)=>p(bC,{ref:n,className:$u(sw.trigger,e),...t})),Value:e.forwardRef(({className:e,...t},n)=>p(SC,{ref:n,className:$u(sw.value,e),...t})),Icon:e.forwardRef(({className:e,...t},n)=>p(CC,{ref:n,className:$u(sw.icon,e),...t})),Portal:ow,Backdrop:e.forwardRef(({className:e,...t},n)=>p(TC,{ref:n,className:$u(sw.backdrop,e),...t})),Positioner:e.forwardRef(({className:e,...t},n)=>p(jC,{ref:n,className:$u(sw.positioner,e),...t})),Popup:e.forwardRef(({className:e,...t},n)=>p(NC,{ref:n,className:$u(sw.popup,e),...t})),List:e.forwardRef(({className:e,...t},n)=>p(VC,{ref:n,className:$u(sw.list,e),...t})),Item:e.forwardRef(({className:e,...t},n)=>p(WC,{ref:n,className:$u(sw.item,e),...t})),ItemIndicator:e.forwardRef(({className:e,...t},n)=>p(GC,{ref:n,className:$u(sw.itemIndicator,e),...t})),ItemText:e.forwardRef(({className:e,...t},n)=>p(qC,{ref:n,className:$u(sw.itemText,e),...t})),Arrow:e.forwardRef(({className:e,...t},n)=>p(YC,{ref:n,className:$u(sw.arrow,e),...t})),ScrollDownArrow:e.forwardRef(({className:e,...t},n)=>p(QC,{ref:n,className:$u(sw.scrollDownArrow,e),...t})),ScrollUpArrow:e.forwardRef(({className:e,...t},n)=>p($C,{ref:n,className:$u(sw.scrollUpArrow,e),...t})),Group:e.forwardRef(({className:e,...t},n)=>p(nw,{ref:n,className:$u(sw.group,e),...t})),GroupLabel:e.forwardRef(({className:e,...t},n)=>p(rw,{ref:n,className:$u(sw.groupLabel,e),...t})),Separator:e.forwardRef(({className:e,...t},n)=>p($y,{ref:n,className:$u(sw.separator,e),...t}))},lw=e=>`divider`in e,uw=e=>`groupLabel`in e;function dw(e){let{value:t,label:n,disabled:r,icon:i,description:a,suffix:o}=e,s=n??t,c=i!=null||a!=null||o!=null;return p(cw.Item,{value:t,disabled:r,children:c?m(f,{children:[i==null?null:p(`span`,{className:sw.itemIcon,"aria-hidden":`true`,children:i}),m(`div`,{className:sw.itemContent,children:[p(cw.ItemText,{children:s}),a==null?null:p(`div`,{className:sw.itemDescription,children:a})]}),o==null?null:p(`span`,{className:sw.itemSuffix,children:o})]}):p(cw.ItemText,{children:s})},t)}var fw=e.forwardRef(({options:e,label:t,"aria-label":n,placeholder:r,description:i,error:a,variant:o=`floating`,alignment:s=`start`,invalid:c=!1,loading:l=!1,required:u=!1,disabled:d=!1,readOnly:f,icon:h=p(Yu,{}),outerBorder:g=!1,sideOffset:_=4,dir:v,triggerClassName:y,popupClassName:b,...x},S)=>p(bx.Root,{invalid:c,disabled:d,children:m(cw.Root,{readOnly:f||l,required:u,disabled:d,...x,children:[t==null?null:m(cw.Label,{className:sw.fieldLabel,children:[t,u?p(`span`,{className:sw.requiredMarker,"aria-hidden":`true`,children:`*`}):null]}),m(cw.Trigger,{ref:S,dir:v,"aria-label":t==null?n:void 0,"aria-busy":l||void 0,"data-variant":o,"data-alignment":s,"data-loading":l?``:void 0,className:y,children:[p(cw.Value,{placeholder:r}),l?p(`span`,{className:sw.loadingIndicator,"aria-hidden":`true`}):p(cw.Icon,{children:h})]}),a==null?null:p(bx.Error,{match:c,children:a}),i==null?null:p(bx.Description,{children:i}),p(cw.Portal,{children:p(cw.Positioner,{dir:v,align:`start`,alignItemWithTrigger:!1,sideOffset:_,children:p(cw.Popup,{dir:v,"data-variant":o,"data-outer-border":g?``:void 0,className:b,children:p(cw.List,{children:e.map((e,t)=>lw(e)?p(cw.Separator,{},`divider-${t}`):uw(e)?m(cw.Group,{children:[p(cw.GroupLabel,{children:e.groupLabel}),e.options.map(dw)]},`group-${t}`):dw(e))})})})})]})}));fw.displayName=`SelectField`,xm(`../../node_modules/use-sync-external-store/index.js`),{...lv},[...Op],{...lv};var pw=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),mw={tabActivationDirection:e=>({[pw.activationDirection]:e})};({...mw}),function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=yf.startingStyle]=`startingStyle`,e[e.endingStyle=yf.endingStyle]=`endingStyle`,e}({}),{...mw,...Sf};var hw={root:`root-Hb4MhN`,list:`list-ZEK7AG`,underlineFull:`underlineFull-qh4VtD`,underlineFit:`underlineFit-ahY1xs`,alignStart:`alignStart-haA6GJ`,alignCenter:`alignCenter-e896qY`,alignEnd:`alignEnd-ClTg6L`,tab:`tab-FRO0Rd`,indicator:`indicator-a2Roef`,panel:`panel-dMpxFc`};hw.underlineFull,hw.underlineFit,hw.underlineNone,hw.alignStart,hw.alignCenter,hw.alignEnd,{...Sf};var gw=e=>e.toastMetadata;X(e=>e.toasts),X(e=>e.toasts.length===0),X(gw,(e,t)=>e.get(t)?.value),X(gw,(e,t)=>e.get(t)?.domIndex??-1),X(gw,(e,t)=>e.get(t)?.offsetY??0),X(gw,(e,t)=>e.get(t)?.visibleIndex??-1),X(e=>e.hovering),X(e=>e.focused),X(e=>e.hovering||e.focused),X(e=>e.hovering||e.focused||!e.isWindowFocused),X(e=>e.prevFocusElement);var _w=e.createContext(void 0);function vw(t){let n=e.useContext(_w);if(n===void 0&&!t)throw Error(fd(72));return n}var yw=e.createContext(void 0);function bw(){return e.useContext(yw)}var xw=e.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qm,currentIdRef:{current:null},currentContextRef:{current:null}});function Sw(t,n={open:!1}){let{open:r}=n,i=`rootStore`in t?t.rootStore:t,a=i.useState(`floatingId`),{currentIdRef:o,delayRef:s,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=e.useContext(xw),[p,m]=e.useState(!1);return J(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),o.current=null,u.current=null,s.current=l.current}if(o.current&&!r&&o.current===a){if(m(!1),c){let t=a;return f.start(c,()=>{i.select(`open`)||o.current&&o.current!==t||e()}),()=>{f.clear()}}e()}},[r,a,o,s,c,l,u,f,i]),J(()=>{if(!r)return;let e=u.current,t=o.current;f.clear(),u.current={onOpenChange:i.setOpen,setIsInstantPhase:m},o.current=a,s.current={open:0,close:db(l.current,`close`)},t!==null&&t!==a?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,of(`none`))):(m(!1),e?.setIsInstantPhase(!1))},[r,a,i,o,s,l,u,f]),J(()=>()=>{u.current=null},[u]),e.useMemo(()=>({hasProvider:d,delayRef:s,isInstantPhase:p}),[d,s,p])}var Cw=function(e){return e[e.popupOpen=um.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),ww=`data-base-ui-tooltip-trigger`;function Tw(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(Pf(n))return n}}let t=e.target;return Pf(t)?t:null}function Ew(e){let t=e;for(;t;){if(t.hasAttribute(ww))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&Pf(n.host)?n.host:null}return null}Om(function(t,n){let{render:r,className:i,style:a,handle:o,payload:s,disabled:c,delay:l,closeOnClick:u=!0,closeDelay:d,id:f,...p}=t,m=vw(!0),h=o?.store??m;if(!h)throw Error(fd(82));let g=ef(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),b=e.useRef(null),x=l??600,S=d??0,{registerTrigger:C,isMountedByThisTrigger:w}=Th(g,b,h,{payload:s,closeOnClick:u,closeDelay:S}),T=bw(),{delayRef:E,isInstantPhase:D,hasProvider:O}=Sw(y,{open:v}),k=lb(y);h.useSyncedValue(`isInstantPhase`,D);let A=h.useState(`disabled`),j=c??A,M=Ef(j),N=h.useState(`trackCursorAxis`),P=h.useState(`disableHoverablePopup`),F=e.useRef(!1),I=Jm(),L=e.useRef(void 0);function ee(){let e=T?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=x;return O&&(n=t===0?0:l??e??x),n}function R(e){let t=b.current;if(!t||!e)return!1;let n=Ew(e);return n!==null&&n!==t&&Q(t,n)}function z(e){let t=R(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let B=Px(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:P||N===`both`?null:Hx(),restMs:ee,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=S;return d==null&&O&&(t=e),{close:t}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),V=aS(y,{enabled:!j}).reference,H=e=>{let t=F.current,n=Tw(e),r=z(n),i=b.current,a=i&&n&&Q(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return void h.setOpen(!1,of(cf,e));if(t&&!r&&a&&!M.current&&!h.select(`open`)&&i&&Qp(L.current)){let t=()=>{!F.current&&!M.current&&!h.select(`open`)&&h.setOpen(!0,of(cf,e,i))},n=ee();n===0?(I.clear(),t()):I.start(n,t)}},U=h.useState(`triggerProps`,w);return Fd(`button`,t,{state:{open:v},ref:[n,C,b],props:[B,V,w||N!==`none`?U:void 0,{onMouseOver(e){H(e.nativeEvent)},onFocus(e){R(Tw(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,h.set(`closeOnClick`,u),u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,[Cw.triggerDisabled]:j?``:void 0,[ww]:j?void 0:``},p],stateAttributesMapping:gm})}),{...vm,...Sf};function Dw(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Ow(e){return e!=null&&e.clientX!=null}function kw(t,n={}){let{enabled:r=!0,axis:i=`both`}=n,a=`rootStore`in t?t.rootStore:t,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.context.dataRef,u=e.useRef(!1),d=e.useRef(null),[f,p]=e.useState(),[m,h]=e.useState([]),g=Y(e=>{a.set(`positionReference`,e)}),_=Y((e,t,n)=>{u.current||(!l.current.openEvent||Ow(l.current.openEvent))&&a.set(`positionReference`,Dw(n??c,{x:e,y:t,axis:i,dataRef:l,pointerType:f}))}),v=Y(e=>{o?d.current||(_(e.clientX,e.clientY,e.currentTarget),h([])):_(e.clientX,e.clientY,e.currentTarget)}),y=Qp(f)?s:o;e.useEffect(()=>{if(!r)return void g(c);if(!y)return;function e(){d.current?.(),d.current=null}let t=jf(s);function n(t){let n=Xm(t);Q(s,n)?e():_(t.clientX,t.clientY)}return!l.current.openEvent||Ow(l.current.openEvent)?d.current=Of(t,`mousemove`,n):g(c),e},[y,r,s,l,c,a,_,g,m]),e.useEffect(()=>()=>{a.set(`positionReference`,null)},[a]),e.useEffect(()=>{r&&!s&&(u.current=!1)},[r,s]),e.useEffect(()=>{!r&&o&&(u.current=!0)},[r,o]);let b=e.useMemo(()=>{function e(e){p(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return e.useMemo(()=>r?{reference:b,trigger:b}:{},[r,b])}var Aw={...G_,disabled:X(e=>e.disabled),instantType:X(e=>e.instantType),isInstantPhase:X(e=>e.isInstantPhase),trackCursorAxis:X(e=>e.trackCursorAxis),disableHoverablePopup:X(e=>e.disableHoverablePopup),lastOpenChangeReason:X(e=>e.openChangeReason),closeOnClick:X(e=>e.closeOnClick),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport)},jw=class t extends Lm{constructor(t,n,r=!1){let i=new yh,a={...Mw(),...t};a.floatingRootContext=z_(i,n,r),super(a,{popupRef:e.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i},Aw)}setOpen=(e,t)=>{let n=t.reason,r=n===cf,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),wh(r,e,t.trigger),this.update(r)};r?h.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,of(sf,e))}static useStore(e,n){return Sh(e,(e,r)=>new t(n,e,r)).store}};function Mw(){return{...R_(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}Dm(function(t){let{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:o=`none`,actionsRef:s,onOpenChange:c,onOpenChangeComplete:l,handle:u,triggerId:d,defaultTriggerId:f=null,children:h}=t,g=jw.useStore(u?.store,{open:r,openProp:i,activeTriggerId:f,triggerIdProp:d});kh(()=>{i===void 0&&!1===g.state.open&&!0===r&&g.update({open:!0,activeTriggerId:f})}),g.useControlledProp(`openProp`,i),g.useControlledProp(`triggerIdProp`,d),g.useContextCallback(`onOpenChange`,c),g.useContextCallback(`onOpenChangeComplete`,l);let _=g.useState(`open`),v=!n&&_,y=g.useState(`activeTriggerId`),b=g.useState(`mounted`),x=g.useState(`payload`);g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:a}),g.useSyncedValue(`disabled`,n),Eh(g);let{forceUnmount:S,transitionStatus:C}=Dh(v,g),w=g.useState(`isInstantPhase`),T=g.useState(`instantType`),E=g.useState(`lastOpenChangeReason`),D=e.useRef(null);J(()=>{_&&n&&g.setOpen(!1,of(gf))},[_,n,g]),J(()=>{C===`ending`&&E===`none`||C!==`ending`&&w?(T!==`delay`&&(D.current=T),g.set(`instantType`,`delay`)):D.current!==null&&(g.set(`instantType`,D.current),D.current=null)},[C,w,E,T,g]),J(()=>{v&&(y??g.set(`payload`,void 0))},[g,y,v]);let O=e.useCallback(()=>{g.setOpen(!1,of(_f))},[g]);e.useImperativeHandle(s,()=>({unmount:S,close:O}),[S,O]);let k=v||b||!n&&o!==`none`;return m(_w.Provider,{value:g,children:[k&&p(Nw,{store:g,disabled:n,trackCursorAxis:o}),typeof h==`function`?h({payload:x}):h]})});function Nw({store:t,disabled:n,trackCursorAxis:r}){let i=t.useState(`floatingRootContext`),a=vh(i,{enabled:!n,referencePress:()=>t.select(`closeOnClick`)}),o=kw(i,{enabled:!n&&r!==`none`,axis:r===`none`?void 0:r});return Oh(t,{activeTriggerProps:e.useMemo(()=>xd(o.reference,a.reference),[o.reference,a.reference]),inactiveTriggerProps:e.useMemo(()=>xd(o.trigger,a.trigger),[o.trigger,a.trigger]),popupProps:e.useMemo(()=>xd(xh,o.floating,a.floating),[o.floating,a.floating])}),null}var Pw={root:`_root_1b47m_1`,content:`_content_1b47m_9`,icon:`_icon_1b47m_15`,label:`_label_1b47m_22`,message:`_message_1b47m_27`},Fw=`Event configuration does not provide data for this component`,Iw=()=>m(`svg`,{className:Pw.icon,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[p(`circle`,{cx:`20`,cy:`20`,r:`18`,stroke:`currentColor`,strokeWidth:`1.5`}),p(`path`,{d:`M20 12v11`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}),p(`circle`,{cx:`20`,cy:`28`,r:`1.5`,fill:`currentColor`})]}),Lw=({id:e,className:t,componentName:n,message:r=Fw})=>(Yl(`MissingEventData`,`render`,{id:e,componentName:n}),p(`div`,{id:e,className:`${Pw.root} ${t??``}`,role:`status`,"data-hook":`missing-event-data`,children:m(`div`,{className:Pw.content,children:[p(Iw,{}),p(cm,{variant:`p3`,className:Pw.label,children:n}),p(cm,{variant:`p3`,className:Pw.message,children:r})]})})),Rw=`Something went wrong while rendering this component`,zw=class extends t{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){Xl(this.props.componentName,e,{componentStack:t.componentStack})}render(){let{componentName:e,id:t,className:n,children:r,fallback:i}=this.props,{error:a}=this.state;return a?`fallback`in this.props?i:p(Lw,{id:t,className:n,componentName:e,message:a.message||Rw}):r}},Bw=(e,t)=>{let n=n=>p(zw,{componentName:t,fallback:n.children,children:p(e,{...n})});return n.displayName=`WithProviderErrorBoundary(${t})`,n},Vw=_({default:()=>Hw}),Hw={"events.demo.adult":`Adult`,"events.common.checkout":`Checkout`,"events.checkout.ticketTitle":`Ticket #{number} - {name}`,"events.seating.removeFromBasketLabel":`Remove {label} from basket`,"events.order.sentToBuyer":`{count, plural, one {The ticket is on the way to your email: {email}.} other {The tickets are on the way to your email: {email}.}}`,"events.registration.weCouldnTAddYouToTheWaitlistBecauseItS":`We couldn't add you to the waitlist because it's no longer available.`,"events.common.close":`Close`,"events.seating.chooseYourSeatOnTheMap":`Choose your seat on the map.`,"events.registration.nextTicket":`Next Ticket`,"events.checkout.seat":`Seat: {label}`,"events.seating.tablePrice":`Table reservation price: {price}`,"events.demo.child":`Child`,"events.registration.buyerDetails":`Add your details`,"events.membership.alreadyHaveAMembership":`Already have a membership?`,"events.seating.seatProperties":`Seat properties`,"events.demo.area":`Area 1`,"events.seating.selectPricingOptionFor":`Select pricing option for {label}`,"events.seating.quantityFor":`Quantity for {label}`,"events.dialogs.paymentsCannotBeUsedInPreviewModeToCompletePayment":`Payments cannot be used in Preview mode. To complete Payment, go to your live published site.`,"events.demo.priceOption":`Price option {number}`,"events.order.timeRemaining":`Time remaining: {time}`,"events.tickets.noTicketsAtTheMoment":`No tickets at the moment`,"events.tickets.saleEnds":`Sale ends`,"events.registration.couldNotFindThisCouponCode":`Could not find this coupon code.`,"events.tickets.taxAdded":`+{amount} {name}`,"events.checkout.addCoupon":`Add Coupon Code`,"events.seating.ticketDescription":`Ticket description`,"events.registration.guestLimitExceededPlacesAvailable":`Guest limit exceeded. {count} places available.`,"events.registration.thisCouponIsNotActiveYet":`This coupon is not active yet.`,"events.registration.seat":`Seat`,"events.seating.discount":`Discount`,"events.demo.rowLabel":`Row`,"events.membership.trial":`{prefix}{days} day free trial`,"events.seating.fromTo":`From {min} to {max}`,"events.tickets.showPrices":`{count, plural, one {Show # more price} other {Show # more prices}}`,"events.common.edit":`Edit`,"events.demo.aboutIntro":`Use this space to tell guests more about this event, e.g., event schedule, speakers, important info & more. To customize this text head to Manage Event > Event Details.`,"events.checkout.chooseMembership":`Choose membership`,"events.membership.membershipDiscountHasBeenUsedUp":`Membership discount has been used up`,"events.registration.enterTheCode":`Enter the code`,"events.donation.writeAPriceAbove":`Write a price above {minimum}`,"events.common.total":`Total`,"events.seating.selectAPriceOption":`Select a price option`,"events.registration.google":`Google`,"events.dialogs.addToAppleWallet":`Add To Apple Wallet`,"events.ribbon.demo":`Ribbon`,"events.membership.hideMembershipOffers":`Hide membership offers`,"events.seating.pickASeatToProceedToTheCheckout":`Pick a seat to proceed to the checkout.`,"events.membership.untilCanceled":`Valid until canceled`,"events.tickets.optionQuantity":`Quantity for {name} – {option}`,"events.registration.giftCard":`Gift card`,"events.registration.remove":`Remove`,"events.registration.iAgreeTo":`I agree to:`,"events.tickets.thereIsALimitOfTicketsPerOrder":`There is a limit of {orderLimit} tickets per order`,"events.seating.payWhatYouWant":`Pay What You Want`,"events.dialogs.checkoutUnavailable":`Checkout unavailable`,"events.common.cancel":`Cancel`,"events.membership.getAMembership":`Get a membership`,"events.order.number":`Order No. {number}`,"events.registration.ticketServiceFee":`Ticket service fee`,"events.order.sentToGuests":`{count, plural, one {The ticket is on the way to the guest and to your email: {email}.} other {The tickets are on the way to the guests and to your email: {email}.}}`,"events.registration.thisFieldIsRequired":`This field is required`,"events.common.quantity":`Quantity`,"events.tickets.thisEventDoesnTHaveTicketsAvailableCheckAgainLater":`This event doesn't have tickets available. Check again later`,"events.seating.companion":`Companion`,"events.checkout.couponCode":`Add coupon code`,"events.membership.noMembership":`No membership`,"events.membership.logIn":`Log In`,"events.registration.price":`Price:`,"events.membership.cycle.day":`{count, plural, one {Every day} other {Every # days}}`,"events.common.unableToLoadTheFormPleaseRefreshThePage":`Unable to load the form. Please refresh the page.`,"events.tickets.soldOut":`Sold Out`,"events.seating.tableFree":`Table reservation price: Free`,"events.demo.buyerEmail":`email@example.com`,"events.common.free":`Free`,"events.membership.hideDetails":`Hide Details`,"events.registration.thereSATechnicalIssueOnOurSidePleaseRefreshThe":`There's a technical issue on our side. Please refresh the page and try again.`,"events.demo.registrationMessages":`Registration Messages`,"events.membership.duration.day":`{count, plural, one {Valid for one day} other {Valid for # days}}`,"events.checkout.row":`Row: {label}`,"events.seating.removeFromBasket":`Remove from Basket`,"events.membership.duration.month":`{count, plural, one {Valid for one month} other {Valid for # months}}`,"events.registration.thisGiftCardWasDisabled":`This gift card was disabled.`,"events.reservation.pleaseTryAgainInAMoment":`Please try again in a moment.`,"events.order.allSet":`You're all set for {title}.`,"events.tickets.thisEventIsSoldOut":`This event is sold out`,"events.order.addToCalendar":`Add to Calendar`,"events.tickets.pickTicketsToProceedToTheCheckout":`Pick tickets to proceed to the checkout.`,"events.registration.thisGiftCardHasExpired":`This gift card has expired.`,"events.seating.update":`Update`,"events.dialogs.downloadPdf":`Download PDF`,"events.registration.membership":`Membership (-{percent}%)`,"events.tickets.taxIncluded":`+{name} included`,"events.donation.minimumDonationIs":`Minimum donation is {minimum}`,"events.registration.looksLikeThisPageHasExpired":`Looks like this page has expired`,"events.tickets.quantityFor":`Quantity for {name}`,"events.order.thankYou":`Thank you, {name}`,"events.tickets.additionalFeesApply":`+Additional fees apply`,"events.seating.someSeatsAtThisTableHaveSpecialProperties":`Some seats at this table have special properties.`,"events.seating.continueToPricingOptionsFor":`Continue to pricing options for {label}`,"events.seating.whenYouVeChosenYourTicketsTheyWillAppearHere":`When you've chosen your tickets, they will appear here.`,"events.reservation.tryAgain":`Try again`,"events.tickets.plusAdditionalFees":`+additional fees apply`,"events.checkout.area":`Area: {label}`,"events.demo.membership":`Membership {number}`,"events.reservation.somethingWentWrong":`Something went wrong`,"events.tickets.payWhatYouWant":`Pay what you want`,"events.checkout.addGiftCard":`Add Gift Card`,"events.registration.coupon":`Coupon`,"events.tickets.moreInfo":`More info`,"events.demo.table":`Table 1`,"events.seating.tablePriceRange":`Table reservation price: from {min} to {max}`,"events.common.price":`Price`,"events.seating.goesOnSale":`Goes on sale {date}`,"events.demo.longLocation":`Address`,"events.registration.outlook":`Outlook`,"events.order.confirmationSent":`A confirmation email has been sent to: {email}.`,"events.reservation.selectedSeatsAreNoLongerAvailable":`Selected seats are no longer available`,"events.seating.seat":`Seat {label}`,"events.registration.yourOrderDidnTGoThroughGoBackToThe":`Your order didn't go through. Go back to the event and try again.`,"events.ribbon.multipleDates":`Multiple Dates`,"events.tickets.goesOnSale":`Goes on sale`,"events.common.subtotal":`Subtotal`,"events.ribbon.membershipOffer":`Membership Offer`,"events.registration.thisOptionIsNoLongerAvailableBecauseTheEventSRegistration":`This option is no longer available because the event's registration settings have changed. Please refresh the page and try again.`,"events.checkout.table":`Table: {label}`,"events.membership.cycle.month":`{count, plural, one {Every month} other {Every # months}}`,"events.demo.section":`Section A`,"events.demo.aboutBody":`This is a paragraph about your event. You can tell guests about the event history, background, types of participants and more. This is a great place to give guests plenty of additional information to get them excited to register. To customize this text head to Manage Event > Event Details.`,"events.tickets.ticketServiceFee":`+ Ticket service fee`,"events.reservation.youCanBuyUpToTicketsPerOrderRemoveSomeTo":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.registration.registrationHasClosedCheckOutOtherEvents":`Registration has closed. Check out other events.`,"events.membership.showDetails":`Show Details`,"events.common.moreInfo":`More Info`,"events.checkout.section":`Section: {label}`,"events.membership.cycle.week":`{count, plural, one {Every week} other {Every # weeks}}`,"events.registration.pleaseIndicateThatYouVeReadAndAgreeToThe":`Please indicate that you've read and agree to the event's policies.`,"events.registration.weCouldnTFindThisGiftCardCheckTheCodeAnd":`We couldn't find this gift card. Check the code and try again.`,"events.registration.preparingOrder":`Preparing order`,"events.seating.addToBasketMessage":`Add {label} to basket`,"events.demo.seat":`Seat 1`,"events.seating.selectTickets":`Select tickets`,"events.registration.youHaveAlreadyRegistered":`You have already registered.`,"events.registration.continue":`Continue`,"events.seating.moreInfoAbout":`More info about {label}`,"events.demo.shortLocation":`Location name`,"events.membership.membershipOffers":`Membership Offers`,"events.seating.obstructed":`Obstructed view`,"events.demo.ticketDescription":`Use this space to add details about this ticket, e.g., includes a backstage pass and free drinks.`,"events.registration.ical":`iCal`,"events.registration.table":`Table`,"events.registration.policies":`Event policies`,"events.registration.thereWasATechnicalProblemAndWeCouldnTFindThis":`There was a technical problem and we couldn't find this coupon code. Try submitting it again or enter a different coupon code.`,"events.dialogs.addToAppleWalletLabel":`Add to Apple Wallet`,"events.checkout.redeemGiftCard":`Redeem a gift card`,"events.recurringDates.showMore":`Show more dates`,"events.registration.row":`Row`,"events.seating.basket":`Basket`,"events.seating.unnamedTable":`Table {id}`,"events.membership.active":`Your membership is now active. Use it to get discounts on event tickets.`,"events.order.processing":`{count, plural, one {Your order is being processed. When it's confirmed you will receive an email with your ticket.} other {Your order is being processed. When it's confirmed you will receive an email with your tickets.}}`,"events.reservation.ok":`OK`,"events.seating.addToBasket":`Add to basket`,"events.order.preparingTickets":`{count, plural, one {Preparing Ticket} other {Preparing Tickets}}`,"events.membership.duration.year":`{count, plural, one {Valid for one year} other {Valid for # years}}`,"events.seating.serviceFee":`Service fee`,"events.demo.row":`Row 1`,"events.demo.areaLabel":`Area`,"events.registration.chooseMembership":`Choose membership`,"events.tickets.lessInfo":`Less info`,"events.membership.purchased":`Purchased`,"events.ribbon.soldOut":`Sold Out`,"events.order.downloadTickets":`{count, plural, one {Download Ticket} other {Download Tickets}}`,"events.registration.paymentCanceled":`Payment Canceled`,"events.registration.section":`Section`,"events.registration.ticketType":`Ticket type`,"events.membership.benefit":`{count, plural, one {{percent}% off for # ticket} other {{percent}% off for # tickets}}`,"events.registration.qty":`Qty:`,"events.demo.dateAndTimeTbdMessage":`Date and Time TBD Message`,"events.recurringDates.showLess":`Show less dates`,"events.registration.sameAsBuyerDetails":`Same as buyer details`,"events.membership.duration.week":`{count, plural, one {Valid for one week} other {Valid for # weeks}}`,"events.membership.showMembershipOffers":`Show membership offers`,"events.list.allEvents":`All Events`,"events.event.registrationNotRequired":`No registration required`,"events.tickets.hidePrices":`{count, plural, one {Hide # price} other {Hide # prices}}`,"events.common.ok":`OK`,"events.common.back":`Back`,"events.registration.thisCouponHasAlreadyBeenUsed":`This coupon has already been used.`,"events.donation.enterADonationAmount":`Enter a donation amount`,"events.seating.seatNumber":`Seat {number}`,"events.seating.ticketCount":`{count, plural, one {# ticket} other {# tickets}}`,"events.dialogs.download":`Download`,"events.seating.saleEnds":`Sale ends {date}`,"events.registration.placeOrder":`Place Order`,"events.button.details":`Details`,"events.registration.thisCouponHasExpired":`This coupon has expired.`,"events.reservation.oneOfTheTicketsYouSelectedIsNoLongerAvailable":`One of the tickets you selected is no longer available`,"events.seating.accessible":`Accessible`,"events.button.buyTickets":`Buy Tickets`,"events.common.continue":`Continue`,"events.registration.thisGiftCardBalanceIs0":`This gift card balance is 0.`,"events.registration.payment":`Payment`,"events.demo.ticketName":`Ticket name`,"events.demo.eventTitle":`Event name`,"events.dialogs.checkoutIsUnavailableAtTheMomentPleaseContactUsFor":`Checkout is unavailable at the moment. Please contact us for more information.`,"events.reservation.dismiss":`Dismiss`,"events.reservation.someoneElseJustReservedOneOrMoreOfYourSeatsWe":`Someone else just reserved one or more of your seats. We'll refresh the seating plan so you can pick again.`,"events.demo.buyerName":`Guest`,"events.donation.writeAPrice":`Write a price`,"events.membership.buyAMembershipAndGetUpToOffThisEventAt":`Buy a membership and get up to {percent}% off this event at checkout`,"events.registration.thereSATechnicalIssueOnOurSidePleaseTryAgain":`There's a technical issue on our side. Please try again.`,"events.ribbon.joinWaitlist":`Join Waitlist`,"events.dialogs.timeSUpToBuyTheseTicketsRefreshYourPage":`Time's Up. To buy these tickets, refresh your page.`,"events.registration.ticketDetails":`Tickets details`,"events.membership.thankYou":`Thank you!`,"events.tickets.saleEnded":`Sale ended`,"events.seating.viewBasket":`View Basket`,"events.button.rsvp":`RSVP`,"events.reservation.someTicketsAreNoLongerAvailable":`Some tickets are no longer available`,"events.seating.basketCount":`Basket ({count})`,"events.registration.area":`Area`,"events.seating.wheelchair":`Wheelchair accessible`,"events.seating.seatQty":`Seat Qty`,"events.seating.zoomOut":`Zoom out`,"events.tickets.feeAmount":`+{amount} ticket service fee`,"events.registration.seatInfo":`Seat info`,"events.reservation.ticketLimitReached":`Ticket limit reached`,"events.event.registrationOpens":`Registration opens {date}`,"events.recurringDates.otherDates":`Other dates`,"events.common.backToSite":`Back to site`,"events.common.backToEvent":`Back to Event`,"events.reservation.somethingWentWrongPleaseTryAgain":`Something went wrong. Please try again.`,"events.order.date":`Placed on: {date}`,"events.ribbon.rsvpClosed":`RSVP Closed`,"events.registration.apply":`Apply`,"events.seating.youCanBuyUpToTicketsPerOrderRemoveSome":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.demo.eventTeaser":`This is a great place to get your guests excited by telling them a little more about this event.`,"events.membership.cycle.year":`{count, plural, one {Every year} other {Every # years}}`,"events.seating.zoomIn":`Zoom in`},Uw=ha(`@wix/site-service-locale`),Ww=()=>{let{language:e}=d(Uw);return e},Gw=Object.assign({"../assets/locale/messages_en.json":Vw}),Kw=(e,t=``)=>`../assets/locale/messages_${e}${t}.json`,qw=e=>{let[t]=e.toLowerCase().replace(/_/g,`-`).split(`-`);return Gw[Kw(t)]?t:`en`},Jw=wn({isDev:!1,loadMessages:async e=>Gw[Kw(e)],loadDevMessages:void 0}),Yw=async e=>{let t=fa({asyncMessagesLoader:Jw,locale:qw(e),disableAutoInit:!0,useSuspense:!1});if(await t.init({initAsync:!1}),!t.hasResourceBundle(t.language,`translation`))throw Error(`Unable to load Events translations`);return t},Xw=()=>{let e=Ww();return c(()=>Yw(e??`en`),[e])},Zw=1,Qw=async({warmupData:e,key:t,fetchData:n})=>{if(e.SSR){let r=await n();return e.set(t,{value:r}),r}let r=await e.get(t);return Yl(`withWarmupData`,`response`,{key:t,entry:r}),r?r.value:n()},$w=(e,t)=>`events-components:v${Zw}:${e}:${JSON.stringify(t)}`,eT=e=>({type:_u.PARAGRAPH,id:``,nodes:e?[{type:_u.TEXT,id:``,nodes:[],textData:{text:e,decorations:[]}}]:[],paragraphData:{}}),tT=e=>({nodes:[e(`events.demo.aboutIntro`),``,e(`events.demo.aboutBody`),``,e(`events.demo.aboutBody`)].map(eT)}),nT=`demo`,rT=`America/Los_Angeles`,iT=[`wix:image://v1/936ad1_09b33941d2854a5bb7fc93f78d30e85d~mv2.png/#originWidth=1920&originHeight=1080`,`wix:image://v1/936ad1_5f3e23b488e441d6a9fd32fa59e0ac11~mv2.png/#originWidth=1920&originHeight=1080`,`wix:image://v1/936ad1_41ef3a552bb64327893a80e7c7926abc~mv2.png/#originWidth=1920&originHeight=1080`],aT=e=>({_id:`${nT}1`,slug:``,status:Su.UPCOMING,title:e(`events.demo.eventTitle`),shortDescription:e(`events.demo.eventTeaser`),description:tT(e),mainImage:iT[0],dateAndTimeSettings:{startDate:au(rT),endDate:ou(rT),hideEndDate:!1,dateAndTimeTbd:!1,timeZoneId:rT},location:{name:e(`events.demo.shortLocation`),type:gu.VENUE,address:{addressLine1:`500 Terry Francine Street`,city:`San Francisco`,formatted:e(`events.demo.longLocation`),location:{latitude:37.7749295,longitude:-122.41941550000001}}},registration:{type:yu.TICKETING,status:vu.OPEN_TICKETS,initialType:hu.TICKETING,tickets:{currency:`USD`,ticketLimitPerOrder:50,guestsAssignedSeparately:!1,soldOut:!1,lowestPrice:{value:`10.25`,currency:`USD`},highestPrice:{value:`30.75`,currency:`USD`}}}}),oT=e=>Array.from({length:3},(t,n)=>({event:{...aT(e),_id:`${nT}${n+1}`,mainImage:iT[n]},hasMemberships:!1})),sT={status:{$eq:Su.UPCOMING}},cT=[{fieldName:`start`,order:xu.ASC}],lT=`ALL_EVENTS`,uT={events:[],hasMore:!1,total:0},dT={events:[],categories:[],eventsLimit:12,total:0,isLoading:!0,hasMore:!1,loadMore:async()=>{}},fT=r(void 0),pT=()=>{let e=o(fT);if(!e)throw Error(`useEventListContext must be used within an EventListProvider`);return e},mT=({children:e,editor:t,eventsLimit:n,pricingPlansInstalled:r,dataPromise:i,refreshSignal:o,showCategories:f,resolveQuery:m})=>{Yl(`InnerEventListContextProvider`,`render`);let[h,{query:g,response:_},v]=_a(i),y=d(ga),b=l(0),x=l(_.events.length),S=l(null),C=l(),[w,T]=u(g),[E,D]=u(_.events),[O,k]=u(_.hasMore),[A,j]=u(_.total),[M,N]=u(v),[P,F]=u(),[I,L]=u(`idle`),ee=I===`loading`||I===`loadingMore`;Yl(`InnerEventListProvider`,`resolved`,{eventsCount:_.events.length,categoriesCount:M.length}),s(()=>{if(!o)return;S.current=null;let e=++b.current,t=C.current,i=m(),a=!0;return L(e=>e===`loading`?`loading`:`refreshing`),Promise.all([i,i.then(e=>e?qu({...e,limit:n,categoryIds:t?[t]:[],pricingPlansInstalled:r}):uT),f?Ql().catch(()=>[]):Promise.resolve([])]).then(([t,n,r])=>{a&&e===b.current&&(T(t),D(n.events),k(n.hasMore),j(n.total),N(r),x.current=n.events.length)}).catch(e=>{Xl(`refreshEventList`,e)}).finally(()=>{a&&e===b.current&&L(`idle`)}),()=>{a=!1}},[o,n,r,f,m]),s(()=>()=>{b.current+=1},[]);let R=a(async()=>{if(S.current)return S.current;if(!O||!w||I!==`idle`)return;L(`loadingMore`);let e=b.current;return S.current=qu({...w,offset:x.current,limit:n,categoryIds:C.current?[C.current]:[],pricingPlansInstalled:r}).then(t=>{e===b.current&&(D(e=>[...e,...t.events]),k(t.hasMore),j(t.total),x.current+=t.events.length)}).catch(()=>{}).finally(()=>{e===b.current&&(S.current=null,L(`idle`))}),S.current},[n,r,w,O,I]),z=a(async e=>{if(!w||e===C.current)return;let t=++b.current;D([]),k(!1),j(0),L(`loading`),F(e),x.current=0,S.current=null,C.current=e;try{let i=await qu({...w,limit:n,categoryIds:e?[e]:[],pricingPlansInstalled:r});t===b.current&&C.current===e&&(D(i.events),k(i.hasMore),j(i.total),x.current=i.events.length)}finally{t===b.current&&C.current===e&&L(`idle`)}},[n,r,w]),B=c(()=>[{id:lT,name:h.t(`events.list.allEvents`),isSelected:!P,select:()=>z()},...M.map(e=>({id:e._id,name:e.name,isSelected:e._id===P,select:()=>z(e._id)}))],[h,M,P,z]),V=c(()=>{let e=t&&!ee&&!E.length,r=e?oT(h.t.bind(h)):E;return{events:r.map(e=>({...e,detailsPageLink:Bu(y,e.event)})),categories:B,eventsLimit:n,total:e?r.length:A,isLoading:ee,hasMore:!e&&O,loadMore:R}},[h,y,t,E,B,n,A,ee,O,R]);return p(ma,{i18n:h,children:p(fT.Provider,{value:V,children:e})})},hT=({children:e,editor:t=!1,refreshSignal:r=0,eventsLimit:i=12,eventsFilter:o=sT,eventsSort:s=cT,eventSlug:l})=>{let u=Ca(t),d=ba(),f=Xw(),m=a(async()=>{if(!l)return{filter:o,sort:s};let e=await Ku(l,[]),t=su(e),n=mu(e);if(t&&n)return{filter:{...o,id:{$ne:t},"dateAndTimeSettings.recurringEvents.categoryId":{$eq:n}},sort:s}},[o,s,l]),h=c(()=>Qw({warmupData:u,key:$w(`event-list`,{eventsLimit:i,eventsFilter:o,eventsSort:s,eventSlug:l,pricingPlansInstalled:d}),fetchData:async()=>{let e=await m();return{query:e,response:e?await qu({...e,limit:i,categoryIds:[],pricingPlansInstalled:d}):uT}}}),[u,i,o,s,l,d,m]),g=c(()=>l?Promise.resolve([]):Qw({warmupData:u,key:$w(`categories`,{}),fetchData:Ql}).catch(()=>[]),[l,u]),_=c(()=>Promise.all([f,h,g]),[f,h,g]);return Yl(`EventListContextProvider`,`render`,{eventsLimit:i,eventsFilter:o,eventsSort:s,eventSlug:l,pricingPlansInstalled:d}),p(n,{fallback:t?p(fT.Provider,{value:dT,children:e}):null,children:p(mT,{editor:t,refreshSignal:r,showCategories:!l,resolveQuery:m,eventsLimit:i,pricingPlansInstalled:d,dataPromise:_,children:e},JSON.stringify([i,o,s,l]))})},gT=Bw(hT,`Event List Context`),_T=xn(`e2cadd10-35fe-4c6d-a367-bdd675527b25`);export{hT as EventListContextProvider,gT as default,_T as injectAccessTokenGetter,pT as useEventListContext};
6
- //# sourceMappingURL=context-provider-e2cadd10-35fe-4c6d-a367-bdd675527b25-CxXdzpfX.js.map
5
+ `))):h&&(v=[h],r.setCustomValidity(h)))}let S={value:e,state:y,error:b??(Array.isArray(h)?h[0]:h??``),errors:v,initialValue:o.initialValue};s(S),i(S)}),y=e.useCallback((e={})=>xd(h,!1===u.valid?{"aria-invalid":!0}:ud,e),[h,u.valid]),b=e.useCallback((e={})=>xd({onChange(e){if(e.nativeEvent.defaultPrevented)return;if(r(d),!f())return void v(e.currentTarget.value,!0);let t=e.currentTarget;if(t.value===``)return void v(t.value);g.clear(),s?g.start(s,()=>{v(t.value)}):v(t.value)}},y(e)),[y,r,d,g,v,s,f]);return e.useMemo(()=>({getValidationProps:y,getInputValidationProps:b,inputRef:_,commit:v}),[y,b,v])}function tx(t){let{commit:n,invalid:r,markedDirtyRef:i,name:a,setRegisteredFieldId:o,setValidityData:s,validityData:c}=t,{formRef:l}=Zy(),u=e.useRef(null),d=e.useRef(null),f=e.useRef(null),p=Y(()=>{let e=d.current;if(e)return e.getValue?e.getValue():e.value}),m=Y(()=>{let e=d.current;if(!e)return;let t=e.value;t===void 0&&(t=p()),i.current=!0,n(t)});function h(){let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:Zb(c,r),validate:m})}function g(e=d.current?.id){e&&l.current.fields.delete(e)}function _(){let e=d.current;if(!e)return;let t=e.value;t===void 0&&(t=p()),c.initialValue===null&&t!==null&&s(e=>({...e,initialValue:t}))}return J(()=>{let e=d.current;e&&e.id&&l.current.fields.set(e.id,{getValue:p,name:a,controlRef:e.controlRef??f,validityData:Zb(c,r),validate:m})},[l,p,r,a,m,c]),J(()=>{let e=l.current.fields;return()=>{let t=d.current?.id;t&&e.delete(t)}},[l]),Y((e,t)=>{if(!t){u.current===e&&(u.current=null,g(),d.current=null,o(void 0));return}let n=d.current?.id;u.current=e,d.current=t,o(t.id),n&&n!==t.id&&g(n),_(),h()})}var nx=e.forwardRef(function(t,n){let{errors:r,validationMode:i,submitAttemptedRef:a}=Zy(),{render:o,className:s,validate:c,validationDebounceTime:l=0,validationMode:u=i,name:d,disabled:f=!1,invalid:m,dirty:h,touched:g,actionsRef:_,style:v,...y}=t,{disabled:b}=Wb(),x=Y(c||(()=>null)),S=b||f,[C,w]=e.useState(!1),[T,E]=e.useState(!1),[D,O]=e.useState(!1),[k,A]=e.useState(!1),j=h??T,M=g??C,N=e.useRef(!1),P=e.useRef(void 0),F=e.useCallback(()=>P.current,[]),I=e.useCallback(e=>{P.current=e},[]),L=Y(e=>{h===void 0&&(e&&(N.current=!0),E(e))}),ee=Y(e=>{g===void 0&&w(e)}),R=Y(()=>u===`onChange`||u===`onSubmit`&&a.current),z=!!d&&Object.hasOwn(r,d)&&r[d]!==void 0,B=!0===m||z,[V,H]=e.useState({state:ov,error:``,errors:[],value:null,initialValue:null}),U=!B&&V.state.valid,W=e.useMemo(()=>({disabled:S,touched:M,dirty:j,valid:U,filled:D,focused:k}),[S,M,j,U,D,k]),G=ex({setValidityData:H,validate:x,validityData:V,validationDebounceTime:l,invalid:B,markedDirtyRef:N,state:W,name:d,shouldValidateOnChange:R,getRegisteredFieldId:F}),K=V.value,te=e.useCallback(()=>{N.current=!0,G.commit(K)},[G,K]),ne=tx({commit:G.commit,invalid:B,markedDirtyRef:N,name:d,setRegisteredFieldId:I,setValidityData:H,validityData:V});e.useImperativeHandle(_,()=>({validate:te}),[te]);let re=e.useMemo(()=>({invalid:B,name:d,validityData:V,setValidityData:H,disabled:S,touched:M,setTouched:ee,dirty:j,setDirty:L,filled:D,setFilled:O,focused:k,setFocused:A,validate:x,validationMode:u,validationDebounceTime:l,shouldValidateOnChange:R,state:W,markedDirtyRef:N,registerFieldControl:ne,validation:G}),[B,d,V,S,M,ee,j,L,D,O,k,A,x,u,l,R,W,ne,G]),ie=Fd(`div`,t,{ref:n,state:W,props:y,stateAttributesMapping:lv});return p(dv.Provider,{value:re,children:ie})}),rx=e.forwardRef(function(e,t){return p(Xb,{children:p(nx,{...e,ref:t})})}),ix=e.forwardRef(function(t,n){let{render:r,className:i,style:a,id:o,nativeLabel:s=!0,...c}=t,l=fv(!1),{labelId:u}=mv(),d=e.useRef(null),f=Kb({id:u??o,native:s});return Fd(`label`,t,{ref:[n,d],state:l.state,props:[f,c],stateAttributesMapping:lv})}),ax={...lv,...Sf},ox=e.forwardRef(function(t,n){let{render:r,id:i,className:a,match:o,style:s,...c}=t,l=ef(i),{validityData:u,state:d,name:f}=fv(!1),{setMessageIds:m}=mv(),{errors:h}=Zy(),g=f?h[f]:null,_=typeof o==`string`,v=!1;v=!0===o?!0:_?!!u.state[o]:!!g||!1===u.state.valid;let{mounted:y,transitionStatus:b,setMounted:x}=Yd(v);J(()=>{if(v&&l)return m(e=>e.concat(l)),()=>{m(e=>e.filter(e=>e!==l))}},[v,l,m]);let S=e.useRef(null),[C,w]=e.useState(null),[T,E]=e.useState(null),D=u.errors.length>1?p(`ul`,{children:u.errors.map(e=>p(`li`,{children:e},e))}):u.error,O=_?D:g||D,k=u.error;g==null?u.errors.length>1&&(k=JSON.stringify(u.errors)):k=Array.isArray(g)?JSON.stringify(g):g,v&&k!==T&&(E(k),w(O)),Tf({open:v,ref:S,onComplete(){v||x(!1)}});let A={...d,transitionStatus:b},j=Fd(`div`,t,{ref:[n,S],state:A,props:[{id:l,children:v?O:C},c],stateAttributesMapping:ax,enabled:y});return y?j:null}),sx=e.forwardRef(function(e,t){let{render:n,id:r,className:i,style:a,...o}=e,s=ef(r),c=fv(!1),{setMessageIds:l}=mv();return J(()=>{if(s)return l(e=>e.concat(s)),()=>{l(e=>e.filter(e=>e!==s))}},[s,l]),Fd(`p`,e,{ref:t,state:c.state,props:[{id:s},o],stateAttributesMapping:lv})}),cx=e.forwardRef(function(t,n){let{render:r,className:i,style:a,disabled:o=!1,...s}=t,{state:c,disabled:l}=fv(!1),u=l||o,d=wb(),f=d?.allValues===void 0?void 0:d?.parent.id,m=e.useMemo(()=>({disabled:u}),[u]),h=Fd(`div`,t,{ref:n,state:c,props:s,stateAttributesMapping:lv});return p(Xb,{controlId:f,children:p(xb.Provider,{value:m,children:h})})}),lx=function(t){let{children:n}=t,{validityData:r,invalid:i}=fv(!1),a=e.useMemo(()=>Zb(r,i),[r,i]),{transitionStatus:o}=Yd(!1===a.state.valid),s=e.useMemo(()=>({...a,validity:a.state,transitionStatus:o}),[a,o]);return p(e.Fragment,{children:n(s)})},ux={root:`root-ECdHfF`,label:`label-YSWZBs`,error:`error-BUDKWp`,description:`description-IVviYU`,descriptionEnd:`descriptionEnd-O3mOtW`,control:`control-fRhDZ8`,controlLine:`controlLine-cAw0CF`,labelFloating:`labelFloating-io8BLN`,group:`group-XazO1A`,adornment:`adornment-Z1N0NF`,item:`item-kQeHOQ`,groupLine:`groupLine-vlna4V`},dx=e.createContext(!1),fx=e.forwardRef(({className:e,...t},n)=>p(dx.Provider,{value:!1,children:p(rx,{ref:n,className:$u(ux.root,e),...t})})),px=e.forwardRef(({className:e,variant:t=`default`,...n},r)=>p(ix,{ref:r,className:$u(ux.label,{[ux.labelFloating]:t===`floating`},e),...n})),mx=e.forwardRef(({className:e,...t},n)=>p(ox,{ref:n,className:$u(ux.error,e),render:({children:e,...t})=>m(`div`,{...t,children:[p(Zu,{"aria-hidden":!0}),e]}),...t})),hx=e.forwardRef(({className:e,align:t=`start`,...n},r)=>p(sx,{ref:r,className:$u(ux.description,{[ux.descriptionEnd]:t===`end`},e),...n})),gx=e.forwardRef(({className:e,variant:t=`box`,...n},r)=>p(dx.Provider,{value:!0,children:p(`div`,{ref:r,className:$u(Yb.root,ux.group,{[ux.groupLine]:t===`line`},e),...n})})),_x=e.forwardRef(({className:e,...t},n)=>p(`span`,{ref:n,className:$u(ux.adornment,e),...t})),vx=new Set([`text`,`email`,`password`,`search`,`url`,`tel`,`number`,`date`,`datetime-local`,`month`,`week`,`time`]),yx=e=>e!=null&&typeof e!=`boolean`,bx={Root:fx,Label:px,Error:mx,Description:hx,Control:e.forwardRef(({className:t,type:n=`text`,variant:r=`box`,prefix:i,suffix:a,groupClassName:o,...s},c)=>{let l=e.useContext(dx),u=yx(i),d=yx(a),h=u||d,g=p(Jb,{ref:c,type:n,className:$u({[Yb.root]:vx.has(n)},ux.control,{[ux.controlLine]:r===`line`},{"has-custom-focus":h||l},t),...s}),_=m(f,{children:[u&&p(_x,{children:i}),g,d&&p(_x,{children:a})]});return l?_:h?p(gx,{variant:r,className:o,children:_}):g}),Group:gx,Adornment:_x,Item:e.forwardRef(({className:e,...t},n)=>p(cx,{ref:n,className:$u(ux.item,e),...t})),Validity:lx};function xx(e){return typeof e==`number`?`${e}px`:e}var Sx={option:`option-o8pAcb`,root:`root-tqmYsF`,indicator:`indicator-_WzHbq`,optionContent:`optionContent-inaJL9`,optionLabel:`optionLabel-fJWxkM`,optionSuffix:`optionSuffix-AJytXe`},Cx=e.forwardRef(({className:e,style:t,label:n,suffix:r,variant:i=`default`,error:a=!1,errorMessage:o,verticalAlignment:s=`center`,size:c=zb.medium,width:l,indeterminate:u=!1,disabled:d=!1,...f},h)=>{let g=a||!!o,_=xx(l),v={...t,..._?{"--checkbox-option-width":_}:null};return m(bx.Root,{ref:h,className:$u(Sx.option,e),style:v,invalid:g,disabled:d,"data-variant":i,"data-has-error-message":o?``:void 0,children:[m(Hb.Root,{...f,className:Sx.root,indeterminate:u,disabled:d,"data-variant":i,"data-vertical-alignment":s,render:p(`label`,{}),size:c,children:[p(Hb.Indicator,{className:Sx.indicator}),m(`span`,{className:Sx.optionContent,children:[p(`span`,{className:Sx.optionLabel,children:n}),r?p(`span`,{className:Sx.optionSuffix,children:r}):null]})]}),g&&o?p(bx.Error,{match:!0,children:o}):null]})});Cx.displayName=`CheckboxField`;function wx(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var Tx=[];function Ex(t){let{allValues:n=Tx,value:r=Tx,onValueChange:i}=t,a=e.useRef(r),o=e.useRef(new Map),[s,c]=e.useState(`mixed`),l=ef(),u=r.length===n.length,d=r.length!==n.length&&r.length>0,f=Y(i),p=e.useCallback(()=>({id:l,indeterminate:d,checked:u,"aria-controls":n.map(e=>`${l}-${e}`).join(` `),onCheckedChange(e,t){let i=a.current,l=n.filter(e=>o.current.get(e)&&i.includes(e)),u=n.filter(e=>!o.current.get(e)||o.current.get(e)&&i.includes(e));if(i.length===u.length||i.length===0)return void(r.length===u.length?f(l,t):f(u,t));s===`mixed`?(f(u,t),c(`on`)):s===`on`?(f(l,t),c(`off`)):s===`off`&&(f(i,t),c(`mixed`))}}),[n,u,l,d,f,s,r.length]),m=e.useCallback(e=>({checked:r.includes(e),onCheckedChange(t,n){let i=r.slice();t?i.push(e):i.splice(i.indexOf(e),1),a.current=i,f(i,n),c(`mixed`)}}),[f,r]);return e.useMemo(()=>({id:l,indeterminate:d,getParentProps:p,getChildProps:m,disabledStatesRef:o}),[l,d,p,m])}var Dx=e.forwardRef(function(t,n){let{allValues:r,className:i,defaultValue:a,disabled:o=!1,id:s,onValueChange:c,render:l,value:u,style:d,...f}=t,{disabled:m,name:h,state:g,validation:_,setFilled:v,setDirty:y,shouldValidateOnChange:b,validityData:x}=fv(),{labelId:S,getDescriptionProps:C}=mv(),{clearErrors:w}=Zy(),T=m||o,E=e.useMemo(()=>{if(u===void 0)return a??[]},[u,a]),[D,O]=Vd({controlled:u,default:E,name:`CheckboxGroup`,state:`value`}),k=Y((e,t)=>{c?.(e,t),!t.isCanceled&&O(e)}),A=Ex({allValues:r,value:D,onValueChange:k}),j=ef(s),M=e.useRef(null),N=e.useCallback(e=>{M.current==null&&e!=null&&!e.hasAttribute(`data-parent`)&&(M.current=e)},[]);Qy(M,j,D,void 0,!!h);let P=D??ld;e_(P,()=>{h&&w(h);let e=Array.isArray(x.initialValue)?x.initialValue:ld;v(P.length>0),y(!wx(P,e)),b()?_.commit(P):_.commit(P,!0)});let F={...g,disabled:T},I=e.useMemo(()=>({allValues:r,value:D,defaultValue:E,setValue:k,parent:A,disabled:T,validation:_,registerControlRef:N}),[r,D,E,k,A,T,_,N]),L=Fd(`div`,t,{state:F,ref:n,props:[{role:`group`,"aria-labelledby":S},C,f],stateAttributesMapping:lv});return p(Cb.Provider,{value:I,children:L})}),Ox=e.forwardRef((e,t)=>p(Dx,{ref:t,...e})),kx={field:`field-Tx5eMP`,label:`label-E_rDm0`,items:`items-lFFDGE`},Ax=e.forwardRef(({className:t,style:n,children:r,label:i,layout:a=`vertical`,fluid:o=!1,error:s=!1,errorMessage:c,required:l=!1,width:u,disabled:d=!1,"aria-labelledby":f,"aria-required":h,...g},_)=>{let v=e.useId(),y=s||!!c,b=i?v:void 0,x=b&&f?`${f} ${b}`:b??f,S=xx(u),C={...n,...S?{"--checkbox-group-width":S}:null};return m(bx.Root,{className:$u(kx.field,t),style:C,invalid:y,disabled:d,"data-fluid":o?``:void 0,children:[i?p(`span`,{id:b,className:kx.label,children:i}):null,p(Ox,{ref:_,className:kx.items,disabled:d,"data-layout":a,"data-fluid":o?``:void 0,"aria-labelledby":x,"aria-required":l?!0:h,...g,children:r}),y&&c?p(bx.Error,{match:!0,children:c}):null]})});Ax.displayName=`CheckboxGroupField`,{...ap,...Sf},{...ip,...Sf};var jx=e.createContext(void 0);function Mx(t){let n=e.useContext(jx);if(n===void 0&&!t)throw Error(fd(69));return n}var Nx={current:null};function Px(t,n={}){let{enabled:r=!0,delay:i=0,handleClose:a=null,mouseOnly:o=!1,restMs:s=0,move:c=!0,triggerElementRef:l=Nx,externalTree:u,isActiveTrigger:d=!0,getHandleCloseContext:f,isClosing:p,shouldOpen:m}=n,g=`rootStore`in t?t.rootStore:t,{dataRef:_,events:v}=g.context,y=Um(u),b=lb(g),x=e.useRef(!1),S=Ef(a),C=Ef(i),w=Ef(s),T=Ef(r),E=Ef(m),D=Ef(p),O=Y(()=>pb(_.current.openEvent?.type,b.interactedInside)),k=Y(()=>E.current?.()!==!1),A=Y((e,t,n)=>{let r=g.context.triggerElements;if(r.hasElement(t))return!e||!Q(e,t);if(!Pf(n))return!1;let i=n;return r.hasMatchingElement(e=>Q(e,i))&&(!e||!Q(e,i))}),j=Y(()=>{b.handler&&=(lh(g.select(`domReferenceElement`)).removeEventListener(`mousemove`,b.handler),void 0)}),M=Y(()=>{sb(b)});return d&&(b.handleCloseOptions=S.current?.__options),e.useEffect(()=>j,[j]),e.useEffect(()=>{if(!r)return;function e(e){e.open?x.current=!1:(x.current=e.reason===cf,j(),b.openChangeTimeout.clear(),b.restTimeout.clear(),b.blockMouseMove=!0,b.restTimeoutPending=!1)}return v.on(`openchange`,e),()=>{v.off(`openchange`,e)}},[r,v,b,j]),e.useEffect(()=>{if(!r)return;function e(e,t=!0){let n=db(C.current,`close`,b.pointerType);n?b.openChangeTimeout.start(n,()=>{g.setOpen(!1,of(cf,e)),y?.events.emit(`floating.closed`,e)}):t&&(b.openChangeTimeout.clear(),g.setOpen(!1,of(cf,e)),y?.events.emit(`floating.closed`,e))}let t=l.current??(d?g.select(`domReferenceElement`):null);if(!Pf(t))return;function n(e){if(b.openChangeTimeout.clear(),b.blockMouseMove=!1,o&&!Qp(b.pointerType))return;let t=fb(w.current),n=db(C.current,`open`,b.pointerType),r=Xm(e),i=e.currentTarget??null,a=g.select(`domReferenceElement`),s=i;if(Pf(r)&&!g.context.triggerElements.hasElement(r)){for(let e of g.context.triggerElements.elements())if(Q(e,r)){s=e;break}}Pf(i)&&Pf(a)&&!g.context.triggerElements.hasElement(i)&&Q(i,a)&&(s=a);let c=s!=null&&A(a,s,r),l=g.select(`open`),u=D.current?.()??g.select(`transitionStatus`)===`ending`,d=!l&&u&&x.current,f=!c&&Pf(s)&&Pf(a)&&Q(a,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,h=!l||c;m?k()&&g.setOpen(!0,of(cf,e,s)):p||(n?b.openChangeTimeout.start(n,()=>{h&&k()&&g.setOpen(!0,of(cf,e,s))}):h&&k()&&g.setOpen(!0,of(cf,e,s)))}function i(t){if(O())return void M();j();let n=lh(g.select(`domReferenceElement`));b.restTimeout.clear(),b.restTimeoutPending=!1;let r=_.current.floatingContext??f?.();if(!nh(t.relatedTarget,g.context.triggerElements)){if(S.current&&r){g.select(`open`)||b.openChangeTimeout.clear();let i=l.current;b.handler=S.current({...r,tree:y,x:t.clientX,y:t.clientY,onClose(){M(),j(),T.current&&!O()&&i===g.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,b.handler),b.handler(t)}else(b.pointerType!==`touch`||!Q(g.select(`floatingElement`),t.relatedTarget))&&e(t)}}return c?uh(Of(t,`mousemove`,n,{once:!0}),Of(t,`mouseenter`,n),Of(t,`mouseleave`,i)):uh(Of(t,`mouseenter`,n),Of(t,`mouseleave`,i))},[j,M,_,C,g,r,S,b,d,A,O,o,c,w,l,y,T,f,D,k]),e.useMemo(()=>{if(!r)return;function e(e){b.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=g.select(`domReferenceElement`),i=g.select(`open`),a=A(r,n,e.target);if(o&&!Qp(b.pointerType))return;if(i&&a&&b.handleCloseOptions?.blockPointerEvents){let e=g.select(`floatingElement`);if(e){let t=b.handleCloseOptions?.getScope?.()??n.ownerDocument.body;cb(b,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=fb(w.current);if(i&&!a||s===0||!a&&b.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;b.restTimeout.clear();function c(){if(b.restTimeoutPending=!1,O())return;let e=g.select(`open`);!b.blockMouseMove&&(!e||a)&&k()&&g.setOpen(!0,of(cf,t,n))}b.pointerType===`touch`?h.flushSync(()=>{c()}):a&&i?c():(b.restTimeoutPending=!0,b.restTimeout.start(s,c))}}},[r,b,O,A,o,g,w,k])}var Fx=.1,Ix=Fx*Fx,Lx=.5;function Rx(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function zx(e,t,n,r,i,a,o,s,c,l){let u=!1;return Rx(e,t,n,r,i,a)&&(u=!u),Rx(e,t,i,a,o,s)&&(u=!u),Rx(e,t,o,s,c,l)&&(u=!u),Rx(e,t,c,l,n,r)&&(u=!u),u}function Bx(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Vx(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Hx(e={}){let{blockPointerEvents:t=!1}=e,n=new qm,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=`u`>typeof performance?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Ix;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Xm(r),g=r.type===`mouseleave`,_=Q(u,h),v=Q(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&Pf(r.relatedTarget)&&Q(u,r.relatedTarget))return;function y(){return!!(s&&dh(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1)return void b();let j=!1;switch(c){case`top`:j=Vx(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Vx(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Vx(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Vx(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!Bx(d,f,x)||!g&&p(d,f))return void b();let M=!1;switch(c){case`top`:{let n=T?Lx/2:4*Lx,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+Lx+1,o=C||T?S.bottom-Lx:S.top,s=C?T?S.bottom-Lx:S.top:S.bottom-Lx;M=zx(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?Lx/2:4*Lx,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-Lx,o=C||T?S.top+Lx:S.bottom,s=C?T?S.top+Lx:S.bottom:S.top+Lx;M=zx(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?Lx/2:4*Lx,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+Lx+1,o=w||E?S.right-Lx:S.left,s=w?E?S.right-Lx:S.left:S.right-Lx;M=zx(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?Lx/2:4*Lx,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-Lx,o=w||E?S.left+Lx:S.right,s=w?E?S.left+Lx:S.right:S.left+Lx;M=zx(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var Ux=e.createContext(null);function Wx(t){let n=e.useContext(Ux);if(n===null&&!t)throw Error(fd(5));return n}var Gx=e.createContext(void 0);function Kx(t=!0){let n=e.useContext(Gx);if(n===void 0&&!t)throw Error(fd(25));return n}var qx=e.createContext(void 0);function Jx(t){let n=e.useContext(qx);if(n===void 0&&!t)throw Error(fd(36));return n}function Yx(e){if(Ff(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`)??void 0;if(!qf(e))return Yx(Xf(e))}({...vm,...Sf}),{...vm,...Sf},{...Sf};var Xx=e.createContext(void 0);function Zx(){return e.useContext(Xx)}var Qx={...G_,disabled:X(e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled),modal:X(e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0)),openMethod:X(e=>e.openMethod),allowMouseEnter:X(e=>e.allowMouseEnter),stickIfOpen:X(e=>e.stickIfOpen),parent:X(e=>e.parent),rootId:X(e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId),activeIndex:X(e=>e.activeIndex),isActive:X((e,t)=>e.activeIndex===t),hoverEnabled:X(e=>e.hoverEnabled),instantType:X(e=>e.instantType),lastOpenChangeReason:X(e=>e.openChangeReason),floatingTreeRoot:X(e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot),floatingNodeId:X(e=>e.floatingNodeId),floatingParentNodeId:X(e=>e.floatingParentNodeId),itemProps:X(e=>e.itemProps),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport),keyboardEventRelay:X(e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)})},$x=class t extends Lm{constructor(t){super({...eS(),...t},{positionerRef:e.createRef(),popupRef:e.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:e.createRef(),beforeContentFocusGuardRef:e.createRef(),onOpenChangeComplete:void 0,triggerElements:new yh},Qx),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);(t!==i||n!==a||r!==o)&&(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef}else e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}static useStore(e,n){let r=td(()=>new t(n)).current;return e??r}unsubscribeParentListener=null};function eS(){return{...R_(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,stickIfOpen:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new zm,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:ud,keyboardEventRelay:void 0,closeDelay:0,hasViewport:!1}}Dm(function(t){let{children:n,open:r,onOpenChange:i,onOpenChangeComplete:a,defaultOpen:o=!1,disabled:s=!1,modal:c,loopFocus:l=!0,orientation:u=`vertical`,actionsRef:d,closeParentOnEsc:f=!1,handle:m,triggerId:h,defaultTriggerId:g=null,highlightItemOnHover:_=!0}=t,v=Kx(!0),y=Jx(!0),b=Wx(!0),x=Zx(),S=e.useMemo(()=>x&&y?{type:`menu`,store:y.store}:b?{type:`menubar`,context:b}:v&&!y?{type:`context-menu`,context:v}:{type:void 0},[v,y,b,x]),C=$x.useStore(m?.store,{open:o,openProp:r,activeTriggerId:g,triggerIdProp:h,parent:S});kh(()=>{r===void 0&&!1===C.state.open&&!0===o&&C.update({open:!0,activeTriggerId:g})}),C.useControlledProp(`openProp`,r),C.useControlledProp(`triggerIdProp`,h),C.useContextCallback(`onOpenChangeComplete`,a);let w=$d(),T=$d(),E=C.useState(`floatingTreeRoot`),D=Wm(E),O=Hm(),k=C.useState(`open`),A=C.useState(`activeTriggerElement`),j=C.useState(`positionerElement`),M=C.useState(`hoverEnabled`),N=C.useState(`disabled`),P=C.useState(`lastOpenChangeReason`),F=C.useState(`parent`),I=C.useState(`activeIndex`),L=C.useState(`payload`),ee=C.useState(`floatingParentNodeId`),R=e.useRef(null),z=e.useRef(F.type!==`context-menu`),B=Jm(),V=e.useRef(!0),H=Jm(),U=ee!=null,{openMethod:W,triggerProps:G}=E_(k);C.useSyncedValues({disabled:s,modal:F.type===void 0?c:void 0,openMethod:W,rootId:w}),Eh(C);let{forceUnmount:K}=Dh(k,C,()=>{C.update({allowMouseEnter:!1,stickIfOpen:!0})});J(()=>{v&&!y?C.update({parent:{type:`context-menu`,context:v},floatingNodeId:D,floatingParentNodeId:O}):y&&C.update({floatingNodeId:D,floatingParentNodeId:O})},[v,y,D,O,C]),e.useEffect(()=>{k||(R.current=null),F.type===`context-menu`&&(k?B.start(500,()=>{z.current=!0}):(B.clear(),z.current=!1))},[B,k,F.type]),J(()=>{!k&&!M&&C.set(`hoverEnabled`,!0)},[k,M,C]);let te=Y((e,t)=>{let n=t.reason;if(k===e&&t.trigger===A&&P===n||(t.preventUnmountOnClose=()=>{C.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&(t.trigger=A??void 0),i?.(e,t),t.isCanceled))return;C.state.floatingRootContext.dispatchOpenChange(e,t);let r=t.event;if(!1===e&&r?.type===`click`&&r.pointerType===`touch`&&!V.current)return;if(!e&&I!==null){let e=C.context.itemDomElements.current[I];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}e&&n===`trigger-focus`?(V.current=!1,H.start(300,()=>{V.current=!0})):(V.current=!0,H.clear());let a=(n===`trigger-press`||n===`item-press`)&&r.detail===0&&r?.isTrusted,o=!e&&(n===`escape-key`||n==null),s={open:e,openChangeReason:n};R.current=t.event??null;let c=t.trigger?.id??null;(c||e)&&(s.activeTriggerId=c,s.activeTriggerElement=t.trigger??null),C.update(s),F.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?C.set(`instantType`,`group`):a||o?C.set(`instantType`,a?`click`:`dismiss`):C.set(`instantType`,void 0)}),ne=bh({popupStore:C,floatingId:T,nested:O!=null,onOpenChange:te}),re=ne.context.events;e.useEffect(()=>{let e=({open:e,eventDetails:t})=>te(e,t);return re.on(`setOpen`,e),()=>{re?.off(`setOpen`,e)}},[re,te]);let ie=e.useCallback(()=>{C.setOpen(!1,of(_f))},[C]);e.useImperativeHandle(d,()=>({unmount:K,close:ie}),[K,ie]);let ae;F.type===`context-menu`&&(ae=F.context),e.useImperativeHandle(ae?.positionerRef,()=>j,[j]),e.useImperativeHandle(ae?.actionsRef,()=>({setOpen:te}),[te]);let oe=vh(ne,{enabled:!N,bubbles:{escapeKey:f&&F.type===`menu`},outsidePress(){return F.type!==`context-menu`||R.current?.type===`contextmenu`||z.current},externalTree:U?E:void 0}),se=tm(),ce=e.useCallback(e=>{C.select(`activeIndex`)!==e&&C.set(`activeIndex`,e)},[C]),le=Jy(ne,{enabled:!N,listRef:C.context.itemDomElements,activeIndex:I,nested:F.type!==void 0,loopFocus:l,orientation:u,parentOrientation:F.type===`menubar`?F.context.orientation:void 0,rtl:se===`rtl`,disabledIndices:ld,onNavigate:ce,openOnArrowKeyDown:F.type!==`context-menu`,externalTree:U?E:void 0,focusItemOnHover:_}),ue=e.useCallback(e=>{C.context.typingRef.current=e},[C]),de=Vy(ne,{listRef:C.context.itemLabels,elementsRef:C.context.itemDomElements,activeIndex:I,resetMs:500,onMatch:e=>{k&&e!==I&&C.set(`activeIndex`,e)},onTyping:ue});Oh(C,{floatingRootContext:ne,activeTriggerProps:e.useMemo(()=>{let e=xd(de.reference,le.reference,oe.reference,{onMouseMove(){C.set(`allowMouseEnter`,!0)}},G);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=k,e},[C,de.reference,le.reference,oe.reference,G,k]),inactiveTriggerProps:e.useMemo(()=>{let e=xd(le.trigger,oe.trigger,G);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[le.trigger,oe.trigger,G]),popupProps:e.useMemo(()=>xd(xh,{id:T,role:`menu`,"aria-labelledby":A?.id,onMouseMove(){C.set(`allowMouseEnter`,!0),F.type===`menu`&&C.set(`hoverEnabled`,!1)},onClick(){C.select(`hoverEnabled`)&&C.set(`hoverEnabled`,!1)},onKeyDown(e){let t=C.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},de.floating,le.floating,oe.floating),[A,T,F.type,C,de.floating,le.floating,oe.floating]),itemProps:le.item??ud});let fe=e.useMemo(()=>({store:C,parent:S}),[C,S]),pe=p(qx.Provider,{value:fe,children:typeof n==`function`?n({payload:L}):n});return F.type===void 0||F.type===`context-menu`?p(Gm,{externalTree:E,children:pe}):pe});function tS(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}({...vm,...Sf}),function(e){return e[e.open=lm.open]=`open`,e[e.closed=lm.closed]=`closed`,e[e.startingStyle=lm.startingStyle]=`startingStyle`,e[e.endingStyle=lm.endingStyle]=`endingStyle`,e.expanded=`data-expanded`,e.nestedDrawerOpen=`data-nested-drawer-open`,e.nestedDrawerSwiping=`data-nested-drawer-swiping`,e.swipeDismiss=`data-swipe-dismiss`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({}),{...vm,...Sf};var nS=function(e){return e[e.open=lm.open]=`open`,e[e.closed=lm.closed]=`closed`,e.disabled=`data-disabled`,e.swipeDirection=`data-swipe-direction`,e.swiping=`data-swiping`,e}({});nS.open,nS.closed,nS.swiping,nS.disabled;function rS(t){let[n,r]=e.useState({current:t,previous:null});return t!==n.current&&r({current:t,previous:n.current}),n.previous}var iS=Up&&Vp;function aS(t,n={}){let{enabled:r=!0,delay:i}=n,a=`rootStore`in t?t.rootStore:t,{events:o,dataRef:s}=a.context,c=e.useRef(!1),l=e.useRef(null),u=e.useRef(!0),d=Jm();e.useEffect(()=>{let e=a.select(`domReferenceElement`);if(!r)return;let t=jf(e);function n(){let e=a.select(`domReferenceElement`);!a.select(`open`)&&Ff(e)&&e===Ym(lh(e))&&(c.current=!0)}function i(){u.current=!0}function o(){u.current=!1}return uh(Of(t,`blur`,n),iS&&Of(t,`keydown`,i,!0),iS&&Of(t,`pointerdown`,o,!0))},[a,r]),e.useEffect(()=>{if(!r)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=a.select(`domReferenceElement`);Pf(e)&&(l.current=e,c.current=!0)}}return o.on(`openchange`,e),()=>{o.off(`openchange`,e)}},[o,r,a]);let f=e.useMemo(()=>{function e(){c.current=!1,l.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(c.current){if(l.current===n)return;e()}let r=Xm(t.nativeEvent);if(Pf(r)){if(iS&&!t.relatedTarget){if(!u.current&&!ah(r))return}else if(!sh(r))return}let o=nh(t.relatedTarget,a.context.triggerElements),{nativeEvent:s,currentTarget:f}=t,p=typeof i==`function`?i():i;if(a.select(`open`)&&o||p===0||p===void 0)return void a.setOpen(!0,of(lf,s,f));d.start(p,()=>{c.current||a.setOpen(!0,of(lf,s,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,i=Pf(n)&&n.hasAttribute(Sm(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;d.start(0,()=>{let e=a.select(`domReferenceElement`),t=Ym(lh(e));(n||t!==e)&&(Q(s.current.floatingContext?.refs.floating.current,t)||Q(e,t)||i||nh(n??t,a.context.triggerElements)||a.setOpen(!1,of(lf,r)))})}}},[s,i,a,d]);return e.useMemo(()=>r?{reference:f,trigger:f}:{},[r,f])}function oS(t,n){let r=e.useRef(null);function i(e){h.flushSync(()=>{t.setOpen(!1,of(ff,e.nativeEvent,e.currentTarget))}),Hg(r.current)?.focus()}function a(e){let r=t.select(`positionerElement`);if(r&&Ug(e,r))t.context.beforeContentFocusGuardRef.current?.focus();else{h.flushSync(()=>{t.setOpen(!1,of(ff,e.nativeEvent,e.currentTarget))});let i=Vg(t.context.triggerFocusTargetRef.current||n.current);for(;i!==null&&Q(r,i);){let e=i;if(i=Rg(i),i===e)break}i?.focus()}}return{preFocusGuardRef:r,handlePreFocusGuardFocus:i,handleFocusTargetFocus:a}}function sS(t){let{enabled:n=!0,mouseDownAction:r,open:i}=t,a=e.useRef(!1);return e.useMemo(()=>n?{onMouseDown:e=>{(r===`open`&&!i||r===`close`&&i)&&(a.current=!0,lh(e.currentTarget).addEventListener(`click`,()=>{a.current=!1},{once:!0}))},onClick:e=>{a.current&&(a.current=!1,e.preventBaseUIHandler())}}:ud,[n,r,i])}var cS=2;Om(function(t,n){let{render:r,className:i,style:a,disabled:o=!1,nativeButton:s=!0,id:c,openOnHover:l,delay:u=100,closeDelay:d=0,handle:f,payload:h,...g}=t,_=Jx(!0),v=f?.store??_?.store;if(!v)throw Error(fd(85));let y=ef(c),b=v.useState(`isTriggerActive`,y),x=v.useState(`floatingRootContext`),S=v.useState(`isOpenedByTrigger`,y),C=v.useState(`triggerPopupId`,y),w=e.useRef(null),T=uS(),E=fp(!0),D=Um(),O=e.useMemo(()=>D??new zm,[D]),{registerTrigger:k,isMountedByThisTrigger:A}=Th(y,w,v,{payload:h,closeDelay:d,parent:T,floatingTreeRoot:O,floatingNodeId:Wm(O),floatingParentNodeId:Hm(),keyboardEventRelay:E?.relayKeyboardEvent}),j=T.type===`menubar`,M=v.useState(`disabled`),N=o||M||j&&T.context.disabled,{getButtonProps:P,buttonRef:F}=mp({disabled:N,native:s});e.useEffect(()=>{!S&&T.type===void 0&&(v.context.allowMouseUpTriggerRef.current=!1)},[v,S,T.type]);let I=e.useRef(null),L=Jm(),ee=Y(e=>{if(!I.current)return;L.clear(),v.context.allowMouseUpTriggerRef.current=!1;let t=e.target;if(Q(I.current,t)||Q(v.select(`positionerElement`),t)||t===I.current||t!=null&&Yx(t)===v.select(`rootId`))return;let n=Yy(I.current);e.clientX>=n.left-cS&&e.clientX<=n.right+cS&&e.clientY>=n.top-cS&&e.clientY<=n.bottom+cS||O.events.emit(`close`,{domEvent:e,reason:hf})});e.useEffect(()=>{S&&v.select(`lastOpenChangeReason`)===`trigger-hover`&&lh(I.current).addEventListener(`mouseup`,ee,{once:!0})},[S,ee,v]);let R=j&&T.context.hasSubmenuOpen,z=Px(x,{enabled:(l??R)&&!N&&T.type!==`context-menu`&&(!j||R&&!A),handleClose:Hx({blockPointerEvents:!j}),mouseOnly:!0,move:!1,restMs:T.type===void 0?u:void 0,delay:{close:d},triggerElementRef:w,externalTree:O,isActiveTrigger:b,isClosing:()=>v.select(`transitionStatus`)===`ending`}),B=lS(S,v.select(`lastOpenChangeReason`)),V=Ah(x,{enabled:!N&&T.type!==`context-menu`,event:S&&j?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:T.type===void 0&&B}),H=aS(x,{enabled:!N&&R}),U=sS({open:S,enabled:j,mouseDownAction:`open`}),W=e.useMemo(()=>xd(H.reference,V.reference),[H.reference,V.reference]),G=v.useState(`triggerProps`,A),{preFocusGuardRef:K,handlePreFocusGuardFocus:te,handleFocusTargetFocus:ne}=oS(v,w),re={disabled:N,open:S},ie=[I,n,F,k,w],ae=[W,z??ud,G,{"aria-haspopup":`menu`,"aria-controls":C,id:y,onMouseDown:e=>{v.select(`open`)||(L.start(200,()=>{v.context.allowMouseUpTriggerRef.current=!0}),lh(e.currentTarget).addEventListener(`mouseup`,ee,{once:!0}))}},j?{role:`menuitem`}:{},U,g,P],oe=Fd(`button`,t,{enabled:!j,stateAttributesMapping:_m,state:re,ref:ie,props:ae});return j?p(bb,{tag:`button`,render:r,className:i,style:a,state:re,refs:ie,props:ae,stateAttributesMapping:_m}):S?m(e.Fragment,{children:[p(bg,{ref:K,onFocus:te},`${y}-pre-focus-guard`),p(e.Fragment,{children:oe},y),p(bg,{ref:v.context.triggerFocusTargetRef,onFocus:ne},`${y}-post-focus-guard`)]}):p(e.Fragment,{children:oe},y)});function lS(t,n){let r=Jm(),[i,a]=e.useState(!1);return J(()=>{t&&n===`trigger-hover`?(a(!0),r.start(500,()=>{a(!1)})):t||(r.clear(),a(!1))},[t,n,r]),i}function uS(){let t=Kx(!0),n=Jx(!0),r=Wx(!0);return e.useMemo(()=>r?{type:`menubar`,context:r}:t&&!n?{type:`context-menu`,context:t}:{type:void 0},[t,n,r])}({...vm,...Sf}),L_(),L_(),{...vm,...Sf},{...vm,...Sf};var dS={inputValue:()=>null,value:()=>null,...lv},fS=[`零`,`〇`,`一`,`二`,`三`,`四`,`五`,`六`,`七`,`八`,`九`],pS=[`٠`,`١`,`٢`,`٣`,`٤`,`٥`,`٦`,`٧`,`٨`,`٩`],mS=[`۰`,`۱`,`۲`,`۳`,`۴`,`۵`,`۶`,`۷`,`۸`,`۹`],hS=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],gS=[`%`,`٪`,`%`,`﹪`],_S=[`‰`,`؉`],vS=[`−`,`-`,`‒`,`–`,`—`,`﹣`],yS=[`+`,`﹢`];RegExp(`[${pS.join(``)}]`,`g`),RegExp(`[${mS.join(``)}]`,`g`),RegExp(`[${hS.join(``)}]`,`g`),RegExp(`[${fS.join(``)}]`,`g`),RegExp(`[${gS.join(``)}]`),RegExp(`[${_S.join(``)}]`),RegExp(`[${hS.join(``)}]`),[...yS],[...vS];var bS=e=>e.replace(/[-\\\]^]/g,e=>`\\${e}`),xS=e=>`[${e.map(bS).join(``)}]`,SS=xS([`-`].concat(vS)),CS=xS([`+`].concat(yS));new RegExp(SS,`gu`),new RegExp(CS,`gu`),new RegExp(SS),new RegExp(CS),{...lv,...dS},bx.Error,{...vm,...Sf},{...vm,...Sf},{...G_},X(e=>e.disabled),X(e=>e.instantType),X(e=>e.openMethod),X(e=>e.openChangeReason),X(e=>e.modal),X(e=>e.focusManagerModal),X(e=>e.stickIfOpen),X(e=>e.titleElementId),X(e=>e.descriptionElementId),X(e=>e.openOnHover),X(e=>e.closeDelay),X(e=>e.hasViewport);var wS=e.createContext(void 0);function TS(t){let n=e.useContext(wS);if(n===void 0&&!t)throw Error(fd(50));return n}function ES(e,t,n,r){return{left:e,top:t,right:n,bottom:r,x:e,y:t,width:n-e,height:r-t}}function DS(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}}function OS(e){let t=[],n,r=1/0,i=1/0,a=-1/0,o=-1/0;for(let s of Array.from(e).sort((e,t)=>e.top-t.top)){if(r=Math.min(r,s.left),i=Math.min(i,s.top),a=Math.max(a,s.right),o=Math.max(o,s.bottom),!n||s.top-n.top>n.height/2)t.push(DS(s));else{let e=t[t.length-1];e.left=Math.min(e.left,s.left),e.right=Math.max(e.right,s.right),e.bottom=Math.max(e.bottom,s.bottom),e.width=e.right-e.left,e.height=e.bottom-e.top}n=s}return{lines:t,fallback:ES(r,i,a,o)}}function kS(e,t,n){return e.findIndex(e=>t>e.left-2&&t<e.right+2&&n>e.top-2&&n<e.bottom+2)}function AS(e,t,n){let{lines:r}=OS(e.getClientRects());if(r.length<2)return;let i=kS(r,t,n);return{x:t,y:n,lineIndex:i===-1?void 0:i,element:e}}function jS(e,t){function n(t){MS(e,t.currentTarget,t.clientX,t.clientY)}function r(e){t||n(e)}return{onFocus(){e.current=void 0},onMouseEnter:n,onMouseMove:r}}function MS(e,t,n,r){let i=AS(t,n,r);return e.current=i,i}({...vm,...Sf}),{...vm,...Sf},Om(function(t,n){let{render:r,className:i,delay:a,closeDelay:o,id:s,payload:c,handle:l,style:u,...d}=t,f=TS(!0),p=l?.store??f;if(!p)throw Error(fd(89));let m=ef(s),h=p.useState(`isTriggerActive`,m),g=p.useState(`isOpenedByTrigger`,m),_=p.useState(`floatingRootContext`),v=p.context.inlineRectCoordsRef,y=e.useRef(null),b=a??600,x=o??300,{registerTrigger:S,isMountedByThisTrigger:C}=Th(m,y,p,{payload:c});J(()=>{C&&(p.context.closeDelayRef.current=x)},[p,C,x]);let w=Px(_,{mouseOnly:!0,move:!1,handleClose:Hx(),delay:()=>({open:b,close:x}),triggerElementRef:y,isActiveTrigger:h,isClosing:()=>p.select(`transitionStatus`)===`ending`}),T=aS(_,{delay:b}),E={open:g},D=p.useState(`triggerProps`,C),O=jS(v,g);return Fd(`a`,t,{state:E,ref:[n,S,y],props:[w,T.reference,D,O,{id:m},d],stateAttributesMapping:gm})});var NS={...G_,instantType:X(e=>e.instantType),hasViewport:X(e=>e.hasViewport)},PS=class t extends Lm{constructor(t,n,r=!1){let i=new yh,a={...FS(),...t};a.floatingRootContext=z_(i,n,r),super(a,{popupRef:e.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i,closeDelayRef:{current:300},inlineRectCoordsRef:{current:void 0}},NS)}setOpen=(e,t)=>{let n=t.reason,r=n===cf,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;let o=t.event;e&&r&&t.trigger&&`clientX`in o&&`clientY`in o&&this.context.inlineRectCoordsRef.current?.element!==t.trigger&&MS(this.context.inlineRectCoordsRef,t.trigger,o.clientX,o.clientY),this.state.floatingRootContext.dispatchOpenChange(e,t);let s=()=>{let r={open:e};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),wh(r,e,t.trigger),this.update(r)};r?h.flushSync(s):s()};static useStore(e,n){return Sh(e,(e,r)=>new t(n,e,r)).store}};function FS(){return{...R_(),instantType:void 0,hasViewport:!1}}function IS(t){let{open:n,defaultOpen:r=!1,onOpenChange:i,onOpenChangeComplete:a,actionsRef:o,handle:s,triggerId:c,defaultTriggerId:l=null,children:u}=t,d=PS.useStore(s?.store,{open:r,openProp:n,activeTriggerId:l,triggerIdProp:c});kh(()=>{n===void 0&&!1===d.state.open&&!0===r&&d.update({open:!0,activeTriggerId:l})}),d.useControlledProp(`openProp`,n),d.useControlledProp(`triggerIdProp`,c),d.useContextCallback(`onOpenChange`,i),d.useContextCallback(`onOpenChangeComplete`,a);let f=d.useState(`open`),h=d.useState(`activeTriggerId`),g=d.useState(`mounted`),_=d.useState(`payload`);Eh(d);let{forceUnmount:v}=Dh(f,d,()=>{d.context.inlineRectCoordsRef.current=void 0});J(()=>{f&&(h??d.set(`payload`,void 0))},[d,h,f]);let y=e.useCallback(()=>{d.setOpen(!1,of(_f))},[d]);e.useImperativeHandle(o,()=>({unmount:v,close:y}),[v,y]);let b=f||g;return m(wS.Provider,{value:d,children:[b&&p(LS,{store:d}),typeof u==`function`?u({payload:_}):u]})}function LS({store:t}){let n=vh(t.useState(`floatingRootContext`));return Oh(t,{activeTriggerProps:n.reference??ud,inactiveTriggerProps:n.trigger??ud,popupProps:e.useMemo(()=>xd(xh,n.floating),[n.floating])}),null}Dm(function(e){return TS(!0)?p(IS,{...e}):p(Gm,{children:p(IS,{...e})})});var RS=e.createContext(void 0);function zS(){return e.useContext(RS)}var BS=function(e){return e.checked=`data-checked`,e.unchecked=`data-unchecked`,e.disabled=`data-disabled`,e.readonly=`data-readonly`,e.required=`data-required`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),VS={checked(e){return e?{[BS.checked]:``}:{[BS.unchecked]:``}},...Sf,...lv},HS=e.createContext(void 0);function US(){let t=e.useContext(HS);if(t===void 0)throw Error(fd(52));return t}var WS=e.forwardRef(function(t,n){let{render:r,className:i,disabled:a=!1,readOnly:o=!1,required:s=!1,"aria-labelledby":c,value:l,inputRef:u,nativeButton:d=!1,id:f,style:h,...g}=t,_=zS(),{disabled:v,readOnly:y,required:b,form:x,checkedValue:S,touched:C=!1,validation:w,name:T}=_??{},E=_?.setCheckedValue??cd,D=_?.setTouched??cd,O=_?.registerControlRef??cd,k=_?.registerInputRef??cd,{setDirty:A,validityData:j,setTouched:M,setFilled:N,state:P,disabled:F}=fv(),I=Sb(),{labelId:L,getDescriptionProps:ee}=mv(),R=F||I.disabled||v||a,z=y||o,B=b||s,V=x,H=_?S===l:l===``,U=e.useRef(null),W=e.useRef(null),G=Y(e=>{e&&O(e,R)}),K=nd(u,W,k);J(()=>{W.current?.checked&&N(!0)},[N]),J(()=>{if(W.current){if(R&&H)return void k(null);U.current&&O(U.current,R),k(W.current)}},[H,R,O,k]);let te=ef(),ne=By({id:f,implicit:!1,controlRef:U}),re=d?void 0:ne,ie=Tb(c,L,W,!d,re),ae={role:`radio`,"aria-checked":H,"aria-required":B||void 0,"aria-readonly":z||void 0,"aria-labelledby":ie,[mb]:H?``:void 0,id:d?ne:te,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||R||z)return;e.preventDefault();let t=W.current;t&&t.dispatchEvent(new(jf(t)).PointerEvent(`click`,{bubbles:!0,shiftKey:e.shiftKey,ctrlKey:e.ctrlKey,altKey:e.altKey,metaKey:e.metaKey}))},onFocus(e){e.defaultPrevented||R||z||!C||(W.current?.click(),D(!1))}},{getButtonProps:oe,buttonRef:se}=mp({disabled:R,native:d}),ce={type:`radio`,ref:K,form:V,id:re,name:T,tabIndex:-1,style:T?Nh:Mh,"aria-hidden":!0,...l===void 0?ud:{value:q_(l)},disabled:R,checked:H,required:B,readOnly:z,onChange(e){if(e.nativeEvent.defaultPrevented||R||z||l===void 0)return;let t=of(`none`,e.nativeEvent);t.isCanceled||(M(!0),A(l!==j.initialValue),N(!0),E(l,t))},onFocus(){U.current?.focus()}},le=e.useMemo(()=>({...P,required:B,disabled:R,readOnly:z,checked:H}),[P,R,z,H,B]),ue=le,de=_!==void 0,fe=[n,U,se,G],pe=[ae,ee,w?.getValidationProps??ud,g,oe],me=Fd(`span`,t,{enabled:!de,state:le,ref:fe,props:pe,stateAttributesMapping:VS});return m(HS.Provider,{value:ue,children:[de?p(bb,{tag:`span`,render:r,className:i,style:h,state:le,refs:fe,props:pe,stateAttributesMapping:VS}):me,p(`input`,{...ce,suppressHydrationWarning:!0})]})}),GS=e.forwardRef(function(t,n){let{render:r,className:i,style:a,keepMounted:o=!1,...s}=t,c=US(),l=c.checked,{mounted:u,transitionStatus:d,setMounted:f}=Yd(l),p={...c,transitionStatus:d},m=e.useRef(null),h=o||u,g=Fd(`span`,t,{ref:[n,m],state:p,props:s,stateAttributesMapping:VS});return Tf({open:l,ref:m,onComplete(){l||f(!1)}}),h?g:null}),KS={root:`root-Lal8hj`,indicator:`indicator-YyFvol`},qS={small:12,medium:16,large:20};function JS({className:e,size:t=qS.medium,style:n,...r}){return p(WS,{...r,className:$u(KS.root,e,`has-custom-focus`),style:{"--radio-size":`${t}px`,...n}})}var YS={Root:JS,Indicator:e.forwardRef(({className:e,...t},n)=>p(GS,{ref:n,className:$u(KS.indicator,e),...t}))},XS={fieldItem:`fieldItem-RyE1Xd`,fieldLabel:`fieldLabel-3Ws24V`,fieldLabelStack:`fieldLabelStack-TwpByX`,fieldLabelText:`fieldLabelText-cfnyvw`,fieldSuffix:`fieldSuffix-SKi6ny`},ZS=e.forwardRef(({checked:e,description:t,descriptionProps:n,disabled:r,error:i,errorProps:a,indicatorProps:o,invalid:s,itemProps:c,label:l,labelProps:u,name:d,onSelect:f,radioProps:h,size:g,suffix:_,value:v,variant:y=`default`,...b},x)=>{let{className:S,onClick:C,...w}=c??{},{className:T,...E}=u??{},{className:D,render:O=p(`span`,{}),...k}=n??{},{className:A,match:j=!0,...M}=a??{},{disabled:N,...P}=h??{},F=r||N,I=t=>{C?.(t),!t.defaultPrevented&&f&&!F&&!e&&f(v)};return m(bx.Root,{...b,ref:x,name:d,disabled:F,invalid:s??!!i,children:[m(bx.Item,{...w,className:$u(XS.fieldItem,S),"data-variant":y,onClick:I,children:[p(YS.Root,{value:e?``:v,size:g,disabled:F,...P,children:p(YS.Indicator,{...o})}),m(bx.Label,{...E,className:$u(XS.fieldLabel,{[XS.fieldLabelStack]:t},T),children:[m(`span`,{className:XS.fieldLabelText,children:[l,_?p(`span`,{className:XS.fieldSuffix,children:_}):null]}),t?p(bx.Description,{...k,render:O,className:D,children:t}):null]})]}),i?p(bx.Error,{...M,match:j,className:A,children:i}):null]})});ZS.displayName=`RadioField`;var QS=[`Shift`],$S=e.forwardRef(function(t,n){let{render:r,className:i,disabled:a,readOnly:o,required:s,onValueChange:c,value:l,defaultValue:u,form:d,name:f,inputRef:m,id:h,style:g,..._}=t,{setTouched:v,setFocused:y,shouldValidateOnChange:b,validationMode:x,name:S,disabled:C,state:w,validation:T,setDirty:E,setFilled:D,validityData:O}=fv(),{labelId:k}=mv(),{clearErrors:A}=Zy(),j=Wb(!0),M=C||a,N=S??f,P=ef(h),[F,I]=Vd({controlled:l,default:u,name:`RadioGroup`,state:`value`}),[L,ee]=e.useState(!1),R=Y((e,t)=>{c?.(e,t),!t.isCanceled&&I(e)}),z=e.useRef(null),B=e.useRef(null),V=e.useRef(null);function H(e){let t;return m&&(typeof m==`function`?t=m(e):m.current=e),B.current=e,T.inputRef.current=e,t}let U=Y((e,t=!1)=>{e&&(t?z.current===e&&(z.current=null):z.current??=e)}),W=Y(e=>{if(!e||e.disabled)return;V.current||=e;let t=B.current;if(e.checked||t==null||t.disabled)return H(e)});Qy(z,P,F??null),e_(F,()=>{A(N),E(F!==O.initialValue),D(F!=null),b()?T.commit(F):T.commit(F,!0);let e=V.current;F==null&&e&&!e.disabled&&H(e)});let G=_[`aria-labelledby`]??k??j?.legendId,K={...w,disabled:M??!1,required:s??!1,readOnly:o??!1},te=e.useMemo(()=>({...w,checkedValue:F,disabled:M,form:d,validation:T,name:N,readOnly:o,registerControlRef:U,registerInputRef:W,required:s,setCheckedValue:R,setTouched:ee,touched:L}),[F,M,d,T,w,N,o,U,W,s,R,ee,L]),ne={role:`radiogroup`,"aria-required":s||void 0,"aria-disabled":M||void 0,"aria-readonly":o||void 0,"aria-labelledby":G,onFocus(){y(!0)},onBlur(e){Q(e.currentTarget,e.relatedTarget)||(v(!0),y(!1),x===`onBlur`&&T.commit(F))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(v(!0),ee(!0),y(!0))}};return p(RS.Provider,{value:te,children:p(vb,{render:r,className:i,style:g,state:K,props:[ne,T.getValidationProps,_],refs:[n],stateAttributesMapping:lv,enableHomeAndEndKeys:!1,modifierKeys:QS})})}),eC={root:`root-kKvIZ_`},tC=e.forwardRef(({className:e,orientation:t=`vertical`,"aria-orientation":n,...r},i)=>p($S,{ref:i,className:$u(eC.root,e),"data-orientation":t,"aria-orientation":n??(t===`horizontal`?t:void 0),...r})),nC={label:`label-JrSYqL`,group:`group-N19s7N`},rC=e.forwardRef(({label:t,error:n,description:r,variant:i=`default`,withSpacing:a=!1,fluid:o=!1,invalid:s,disabled:c,size:l,children:u,className:d,"aria-label":f,"aria-labelledby":h,...g},_)=>{let v=e.useId(),y=s??!!n,b=e.Children.map(u,t=>{if(!e.isValidElement(t))return t;let n=t.props;return e.cloneElement(t,{variant:n.variant??i,invalid:n.invalid??(y||void 0),size:n.size??l,checked:void 0})});return m(bx.Root,{invalid:y,disabled:c,children:[t==null?null:p(`span`,{id:v,className:nC.label,children:t}),p(tC,{ref:_,disabled:c,"aria-label":t==null?f:void 0,"aria-labelledby":t==null?h:h??v,"data-variant":i,"data-spacing":a?``:void 0,"data-fluid":o?``:void 0,className:$u(nC.group,d),...g,children:b}),n==null?null:p(bx.Error,{match:y,children:n}),r==null?null:p(bx.Description,{children:r})]})});rC.displayName=`RadioGroupField`;var iC=e.createContext(void 0),aC={disableStyleElements:!1};function oC(){return e.useContext(iC)??aC}var sC=`base-ui-disable-scrollbar`,cC={className:sC,getElement(e){return p(`style`,{nonce:e,href:sC,precedence:`base-ui:low`,children:`.${sC}{scrollbar-width:none}.${sC}::-webkit-scrollbar{display:none}`})}},lC=1;function uC(e,t){return Math.max(0,e-t)}function dC(e,t){if(t<=0)return 0;let n=tS(e,0,t),r=n,i=t-n,a=r<=lC,o=i<=lC;return a&&o?r<=i?0:t:a?0:o?t:n}var fC=e.createContext(null),pC=e.createContext(null);function mC(){let t=e.useContext(fC);if(t===null)throw Error(fd(60));return t}function hC(){let t=e.useContext(pC);if(t===null)throw Error(fd(61));return t}var $={id:X(e=>e.id),labelId:X(e=>e.labelId),modal:X(e=>e.modal),multiple:X(e=>e.multiple),items:X(e=>e.items),itemToStringLabel:X(e=>e.itemToStringLabel),itemToStringValue:X(e=>e.itemToStringValue),isItemEqualToValue:X(e=>e.isItemEqualToValue),value:X(e=>e.value),hasSelectedValue:X(e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:nv(t,r)!==``}),hasNullItemLabel:X((e,t)=>t?ev(e.items):!1),open:X(e=>e.open),mounted:X(e=>e.mounted),forceMount:X(e=>e.forceMount),transitionStatus:X(e=>e.transitionStatus),openMethod:X(e=>e.openMethod),activeIndex:X(e=>e.activeIndex),selectedIndex:X(e=>e.selectedIndex),isActive:X((e,t)=>e.activeIndex===t),isSelected:X((e,t,n)=>{let r=e.isItemEqualToValue,i=e.value;return e.multiple?Array.isArray(i)&&i.some(e=>Y_(n,e,r)):e.selectedIndex===t&&e.selectedIndex!==null||Y_(n,i,r)}),isSelectedByFocus:X((e,t)=>e.selectedIndex===t),popupProps:X(e=>e.popupProps),triggerProps:X(e=>e.triggerProps),triggerElement:X(e=>e.triggerElement),positionerElement:X(e=>e.positionerElement),listElement:X(e=>e.listElement),popupSide:X(e=>e.popupSide),scrollUpArrowVisible:X(e=>e.scrollUpArrowVisible),scrollDownArrowVisible:X(e=>e.scrollDownArrowVisible),hasScrollArrows:X(e=>e.hasScrollArrows)},gC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=fv(),{store:c}=mC(),l=Z(c,$.triggerElement),u=Z(c,$.id),d=Kb({id:hv(u),fallbackControlId:l?.id??u,setLabelId(e){c.set(`labelId`,e)}});return Fd(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:lv})}),_C=2,vC=400,yC={..._m,...lv,popupSide:e=>e?{"data-popup-side":e}:null,value:()=>null},bC=e.forwardRef(function(t,n){let{render:r,className:i,id:a,disabled:o=!1,nativeButton:s=!0,style:c,...l}=t,{setTouched:u,setFocused:d,validationMode:f,state:p,disabled:m}=fv(),{labelId:h}=mv(),{store:g,setOpen:_,selectionRef:v,validation:y,readOnly:b,required:x,alignItemWithTriggerActiveRef:S,disabled:C,keyboardActiveRef:w}=mC(),T=m||C||o,E=Z(g,$.open),D=Z(g,$.mounted),O=Z(g,$.value),k=Z(g,$.triggerProps),A=Z(g,$.positionerElement),j=Z(g,$.listElement),M=Z(g,$.popupSide),N=Z(g,$.id),P=Z(g,$.labelId),F=Z(g,$.hasSelectedValue),I=D&&A?M:null,L=a??N,ee=gv(h,P);By({id:L});let R=Ef(A),z=e.useRef(null),{getButtonProps:B,buttonRef:V}=mp({disabled:T,native:s}),H=nd(n,z,V,Y(e=>{g.set(`triggerElement`,e)})),U=Jm(),W=Jm(),G=Jm();e.useEffect(()=>{if(E)return G.start(vC,()=>{v.current.allowUnselectedMouseUp=!0,v.current.allowSelectedMouseUp=!0}),()=>{G.clear()};v.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},W.clear()},[E,v,W,G]);let K=xd(k,{id:L,role:`combobox`,"aria-expanded":E?`true`:`false`,"aria-haspopup":`listbox`,"aria-controls":E?j?.id??ch(A)?.id:void 0,"aria-labelledby":ee,"aria-readonly":b||void 0,"aria-required":x||void 0,tabIndex:T?-1:0,ref:H,onFocus(e){d(!0),E&&S.current&&_(!1,of(`none`,e.nativeEvent)),U.start(0,()=>{g.set(`forceMount`,!0)})},onBlur(e){Q(A,e.relatedTarget)||(u(!0),d(!1),f===`onBlur`&&y.commit(O))},onPointerMove(){w.current=!1},onKeyDown(){w.current=!0},onMouseDown(e){if(E)return;let t=lh(e.currentTarget);function n(e){if(!z.current)return;let t=e.target;if(Q(z.current,t)||Q(R.current,t)||t===z.current)return;let n=Yy(z.current);e.clientX>=n.left-_C&&e.clientX<=n.right+_C&&e.clientY>=n.top-_C&&e.clientY<=n.bottom+_C||_(!1,of(hf,e))}W.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},y.getValidationProps,l,B);K.role=`combobox`;let te={...p,open:E,disabled:T,value:O,readOnly:b,popupSide:I,placeholder:!F};return Fd(`button`,t,{ref:[n,z],state:te,stateAttributesMapping:yC,props:K})}),xC={value:()=>null},SC=e.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,{store:c,valueRef:l}=mC(),u=Z(c,$.value),d=Z(c,$.items),f=Z(c,$.itemToStringLabel),p=Z(c,$.hasSelectedValue),m=!p&&a!=null&&i==null,h=Z(c,$.hasNullItemLabel,m),g={value:u,placeholder:!p},_=null;return _=typeof i==`function`?i(u):i??(p||a==null||h?Array.isArray(u)?iv(u,d,f):rv(u,d,f):a),Fd(`span`,e,{state:g,ref:[t,l],props:[{children:_},s],stateAttributesMapping:xC})}),CC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=mC();return Fd(`span`,e,{state:{open:Z(o,$.open)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:gm})}),wC={...vm,...Sf},TC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=mC(),s=Z(o,$.open),c=Z(o,$.mounted);return Fd(`div`,e,{state:{open:s,transitionStatus:Z(o,$.transitionStatus)},ref:t,props:[{role:`presentation`,hidden:!c,style:{userSelect:`none`,WebkitUserSelect:`none`}},a],stateAttributesMapping:wC})}),EC=e.createContext(void 0);function DC(){let t=e.useContext(EC);if(!t)throw Error(fd(59));return t}function OC(e,t){e&&Object.assign(e.style,t)}var kC={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`},AC={position:`fixed`},jC=e.forwardRef(function(t,n){let{anchor:r,positionMethod:i=`absolute`,className:a,render:o,side:s=`bottom`,align:c=`center`,sideOffset:l=0,alignOffset:u=0,collisionBoundary:d=`clipping-ancestors`,collisionPadding:f,arrowPadding:h=5,sticky:g=!1,disableAnchorTracking:_,alignItemWithTrigger:v=!0,collisionAvoidance:y=qg,style:b,...x}=t,{store:S,listRef:C,labelsRef:w,alignItemWithTriggerActiveRef:T,selectedItemTextRef:E,valuesRef:D,initialValueRef:O,popupRef:k,setValue:A}=mC(),j=hC(),M=Z(S,$.open),N=Z(S,$.mounted),P=Z(S,$.modal),F=Z(S,$.value),I=Z(S,$.openMethod),L=Z(S,$.positionerElement),ee=Z(S,$.triggerElement),R=Z(S,$.isItemEqualToValue),z=Z(S,$.transitionStatus),B=e.useRef(null),V=e.useRef(null),[H,U]=e.useState(v),W=N&&H&&I!==`touch`;!N&&H!==v&&U(v),J(()=>{N||($.scrollUpArrowVisible(S.state)&&S.set(`scrollUpArrowVisible`,!1),$.scrollDownArrowVisible(S.state)&&S.set(`scrollDownArrowVisible`,!1))},[S,N]),e.useImperativeHandle(T,()=>W),zy((W||P)&&M,I===`touch`,L,ee);let G=Py({anchor:r,floatingRootContext:j,positionMethod:i,mounted:N,side:s,sideOffset:l,align:c,alignOffset:u,arrowPadding:h,collisionBoundary:d,collisionPadding:f,sticky:g,disableAnchorTracking:_??W,collisionAvoidance:y,keepMounted:!0}),K=W?`none`:G.side,te=W?AC:G.positionerStyles,ne={open:M,side:K,align:G.align,anchorHidden:G.anchorHidden};J(()=>{S.set(`popupSide`,G.side)},[S,G.side]);let re=Ly(t,ne,{styles:te,transitionStatus:z,props:x,refs:[n,Y(e=>{S.set(`positionerElement`,e)})],hidden:!N,inert:!M}),ie=e.useRef(0),ae=Y(e=>{if(e.size===0&&ie.current===0||D.current.length===0)return;let t=ie.current;if(ie.current=e.size,e.size===t)return;let n=of(`none`);if(t!==0&&!S.state.multiple&&F!==null&&Z_(D.current,F,R)===-1){let e=O.current,t=e!=null&&Z_(D.current,e,R)!==-1?e:null;A(t,n),t===null&&(S.set(`selectedIndex`,null),E.current=null)}if(t!==0&&S.state.multiple&&Array.isArray(F)){let e=e=>Z_(D.current,e,R)!==-1,t=F.filter(t=>e(t));(t.length!==F.length||t.some(e=>!X_(F,e,R)))&&(A(t,n),t.length===0&&(S.set(`selectedIndex`,null),E.current=null))}if(M&&W){S.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};OC(L,e),OC(k.current,e)}}),oe=e.useMemo(()=>({...G,side:K,alignItemWithTriggerActive:W,setControlledAlignItemWithTrigger:U,scrollUpArrowRef:B,scrollDownArrowRef:V}),[G,K,W,U]);return p(nm,{elementsRef:C,labelsRef:w,onMapChange:ae,children:m(EC.Provider,{value:oe,children:[N&&P&&p(I_,{inert:K_(!M),cutout:ee}),re]})})}),MC={...vm,...Sf},NC=e.forwardRef(function(t,n){let{render:r,className:i,style:a,finalFocus:o,...s}=t,{store:c,popupRef:l,onOpenChangeComplete:u,setOpen:d,valueRef:f,firstItemTextRef:h,selectedItemTextRef:g,keyboardActiveRef:_,multiple:v,handleScrollArrowVisibility:y,scrollHandlerRef:b,listRef:x,highlightItemOnHover:S}=mC(),{side:C,align:w,alignItemWithTriggerActive:T,isPositioned:E,setControlledAlignItemWithTrigger:D,scrollDownArrowRef:O,scrollUpArrowRef:k}=DC(),A=Mx(!0)!=null,j=hC(),M=tm(),{nonce:N,disableStyleElements:P}=oC(),F=Z(c,$.id),I=Z(c,$.open),L=Z(c,$.mounted),ee=Z(c,$.popupProps),R=Z(c,$.transitionStatus),z=Z(c,$.triggerElement),B=Z(c,$.positionerElement),V=Z(c,$.listElement),H=e.useRef(!1),U=e.useRef(!1),W=e.useRef({}),G=Jd(),K=Y(e=>{if(!B||!l.current||!U.current)return;if(H.current||!T)return void y();let t=B.style.top===`0px`,n=B.style.bottom===`0px`;if(!t&&!n)return void y();let r=IC(B),i=LC(B.getBoundingClientRect().height,`y`,r),a=lh(B),o=getComputedStyle(B),s=parseFloat(o.marginTop),c=parseFloat(o.marginBottom),u=PC(getComputedStyle(l.current)),d=Math.min(a.documentElement.clientHeight-s-c,u),f=e.scrollTop,p=FC(e),m=0,h=null,g=!1,_=!1,v=e=>{B.style.height=`${e}px`},b=(t,n)=>{let r=tS(t,0,d-i);r>0&&v(i+r),e.scrollTop=n,d-(i+r)<=1&&(H.current=!0),y()},x=t?p-f:f,S=Math.min(i+x,d);if(m=S,x<=1)return void b(x,t?p:0);if(d-S>1?t?_=!0:h=0:(g=!0,n&&f<p&&(h=f-(x-(i+x-d)))),m=Math.ceil(m),m!==0&&v(m),_||h!=null){let t=FC(e),n=_?t:tS(h,0,t);Math.abs(e.scrollTop-n)>1&&(e.scrollTop=n)}(g||m>=d-1)&&(H.current=!0),y()});e.useImperativeHandle(b,()=>K,[K]),Tf({open:I,ref:l,onComplete(){I&&u?.(!0)}});let te={open:I,transitionStatus:R,side:C,align:w};J(()=>{B&&l.current&&!Object.keys(W.current).length&&(W.current={top:B.style.top||`0`,left:B.style.left||`0`,right:B.style.right,height:B.style.height,bottom:B.style.bottom,minHeight:B.style.minHeight,maxHeight:B.style.maxHeight,marginTop:B.style.marginTop,marginBottom:B.style.marginBottom})},[l,B]),J(()=>{I||T||(U.current=!1,H.current=!1,OC(B,W.current))},[I,T,B,l]),J(()=>{let e=l.current;if(!I||!z||!B||!e||T&&!E||c.state.transitionStatus===`ending`)return;if(!T){U.current=!0,G.request(y),e.style.removeProperty(`--transform-origin`);return}let t=BC(e);e.style.removeProperty(`--transform-origin`);try{let t=g.current;t?.isConnected||(t=!$.hasSelectedValue(c.state)&&h.current?.isConnected?h.current:null);let n=f.current,r=getComputedStyle(B),i=getComputedStyle(e),a=lh(z),o=jf(B),s=IC(z),l=RC(z.getBoundingClientRect(),s),u=RC(B.getBoundingClientRect(),s),d=l.height,p=V||e,m=p.scrollHeight,_=parseFloat(i.borderBottomWidth),v=parseFloat(r.marginTop)||10,b=parseFloat(r.marginBottom)||10,C=parseFloat(r.minHeight)||100,w=PC(i),T=a.documentElement.clientHeight-v-b,E=a.documentElement.clientWidth,O=T-l.bottom+d,k,A=M===`rtl`?l.right-u.width:l.left,j=0;if(t&&n){let e=RC(n.getBoundingClientRect(),s);k=RC(t.getBoundingClientRect(),s),A=u.left+(M===`rtl`?e.right-k.right:e.left-k.left);let r=e.top-l.top+e.height/2;j=k.top-u.top+k.height/2-r}let N=O+j+b+_,P=Math.min(T,N),F=T-v-b,I=N-P,L=E-5;B.style.left=`${tS(A,5,L-u.width)}px`,B.style.height=`${P}px`,B.style.maxHeight=`auto`,B.style.marginTop=`${v}px`,B.style.marginBottom=`${b}px`,e.style.height=`100%`;let ee=FC(p),R=I>=ee-1;R&&(P=Math.min(T,u.height)-(I-ee));let G=l.top<20||l.bottom>T-20||Math.ceil(P)+1<Math.min(m,C),K=(o.visualViewport?.scale??1)!==1&&zp;if(G||K){U.current=!0,OC(B,W.current),D(!1);return}let te=Math.max(C,P);if(R){let e=Math.max(0,T-N);B.style.top=u.height>=F?`0`:`${e}px`,B.style.height=`${P}px`,p.scrollTop=FC(p)}else B.style.bottom=`0`,p.scrollTop=I;if(k){let t=u.top,n=u.height,r=k.top+k.height/2,i=tS(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(`--transform-origin`,`50% ${i}%`)}(te===T||P>=w)&&(H.current=!0),y(),S&&c.state.selectedIndex===null&&c.state.activeIndex===null&&x.current[0]!=null&&c.set(`activeIndex`,0),U.current=!0}finally{t()}},[c,I,B,z,f,h,g,l,y,T,D,G,O,k,V,x,S,M,E]),e.useEffect(()=>{if(!T||!B||!I)return;let e=jf(B);function t(e){d(!1,of(vf,e))}return Of(e,`resize`,t)},[d,T,B,I]);let ne={...V?{role:`presentation`,"aria-orientation":void 0}:{role:`listbox`,"aria-multiselectable":v||void 0,id:`${F}-list`},onKeyDown(e){_.current=!0,A&&Op.has(e.key)&&e.stopPropagation()},onMouseMove(){_.current=!1},onScroll(e){V||K(e.currentTarget)},...T&&{style:V?{height:`100%`}:kC}},re=Fd(`div`,t,{ref:[n,l],state:te,stateAttributesMapping:MC,props:[ee,ne,Iy(R),{className:!V&&T?cC.className:void 0},s]});return m(e.Fragment,{children:[!P&&cC.getElement(N),p(C_,{context:j,modal:!1,disabled:!L,returnFocus:o,restoreFocus:!0,children:re})]})});function PC(e){let t=e.maxHeight||``;return t.endsWith(`px`)&&parseFloat(t)||1/0}function FC(e){return uC(e.scrollHeight,e.clientHeight)}function IC(e){return ry.getScale(e)}function LC(e,t,n){return e/n[t]}function RC(e,t){return sg({x:LC(e.x,`x`,t),y:LC(e.y,`y`,t),width:LC(e.width,`x`,t),height:LC(e.height,`y`,t)})}var zC=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function BC(e){let{style:t}=e,n={};for(let[e,r]of zC)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of zC){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var VC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o,scrollHandlerRef:s}=mC(),{alignItemWithTriggerActive:c}=DC(),l=Z(o,$.hasScrollArrows),u=Z(o,$.openMethod),d=Z(o,$.multiple),f={id:`${Z(o,$.id)}-list`,role:`listbox`,"aria-multiselectable":d||void 0,onScroll(e){s.current?.(e.currentTarget)},...c&&{style:kC},className:l&&u!==`touch`?cC.className:void 0};return Fd(`div`,e,{ref:[t,Y(e=>{o.set(`listElement`,e)})],props:[f,a]})}),HC=e.createContext(void 0);function UC(){let t=e.useContext(HC);if(!t)throw Error(fd(57));return t}var WC=e.memo(e.forwardRef(function(t,n){let{render:r,className:i,style:a,value:o=null,label:s,disabled:c=!1,nativeButton:l=!1,...u}=t,d=e.useRef(null),f=lp({label:s,textRef:d,indexGuessBehavior:cp.GuessFromOrder}),{store:m,itemProps:h,setOpen:g,setValue:_,selectionRef:v,typingRef:y,valuesRef:b,multiple:x,selectedItemTextRef:S}=mC(),C=Z(m,$.isActive,f.index),w=Z(m,$.isSelected,f.index,o),T=Z(m,$.isSelectedByFocus,f.index),E=Z(m,$.isItemEqualToValue),D=f.index,O=D!==-1,k=e.useRef(null);J(()=>{if(!O)return;let e=b.current;return e[D]=o,()=>{delete e[D]}},[O,D,o,b]),J(()=>{if(!O)return;let e=m.state.value,t=e;x&&Array.isArray(e)&&e.length>0&&(t=e[e.length-1]),t!==void 0&&Y_(o,t,E)&&(m.set(`selectedIndex`,D),d.current&&(S.current=d.current))},[O,D,x,E,m,o,S]);let A=e.useRef(null),j=e.useRef(`mouse`),M=e.useRef(!1),{getButtonProps:N,buttonRef:P}=mp({disabled:c,focusableWhenDisabled:!0,native:l,composite:!0}),F={disabled:c,selected:w,highlighted:C};function I(e){let t=m.state.value;if(x){let n=Array.isArray(t)?t:[],r=w?Q_(n,o,E):[...n,o];_(r,of(df,e))}else _(o,of(df,e)),g(!1,of(df,e))}function L(){v.current.dragY=0}let ee={role:`option`,"aria-selected":w,tabIndex:C?0:-1,onKeyDown(e){A.current=e.key,m.set(`activeIndex`,D),e.key===` `&&y.current&&e.preventDefault()},onClick(e){let t=e.type===`click`&&j.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&Xp(e.nativeEvent)&&(n!==void 0||C),i=t&&!r&&!M.current;M.current=!1,(e.type!==`keydown`||A.current!==null)&&(c||e.type===`keydown`&&A.current===` `&&y.current||i||(A.current=null,I(e.nativeEvent)))},onPointerEnter(e){j.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=v.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){j.current=e.pointerType,M.current=!0,L()},onMouseUp(){if(L(),c||j.current===`touch`||M.current)return;let e=!v.current.allowSelectedMouseUp&&w,t=!v.current.allowUnselectedMouseUp&&!w;e||t||(M.current=!0,k.current?.click(),M.current=!1)}},R=Fd(`div`,t,{ref:[P,n,f.ref,k],state:F,props:[h,ee,u,N]}),z=e.useMemo(()=>({selected:w,index:D,textRef:d,selectedByFocus:T,hasRegistered:O}),[w,D,d,T,O]);return p(HC.Provider,{value:z,children:R})})),GC=e.forwardRef(function(e,t){let n=e.keepMounted??!1,{selected:r}=UC();return n||r?p(KC,{...e,ref:t}):null}),KC=e.memo(e.forwardRef((t,n)=>{let{render:r,className:i,style:a,keepMounted:o,...s}=t,{selected:c}=UC(),l=e.useRef(null),{transitionStatus:u,setMounted:d}=Yd(c),f=Fd(`span`,t,{ref:[n,l],state:{selected:c,transitionStatus:u},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:Sf});return Tf({open:c,ref:l,onComplete(){c||d(!1)}}),f})),qC=e.memo(e.forwardRef(function(t,n){let{index:r,textRef:i,selectedByFocus:a,hasRegistered:o}=UC(),{firstItemTextRef:s,selectedItemTextRef:c}=mC(),{render:l,className:u,style:d,...f}=t;return Fd(`div`,t,{ref:[e.useCallback(e=>{e&&(o&&r===0&&(s.current=e),o&&a&&(c.current=e))},[s,c,r,a,o]),n,i],props:f})})),JC={...vm,...Sf},YC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,{store:o}=mC(),{side:s,align:c,arrowRef:l,arrowStyles:u,arrowUncentered:d,alignItemWithTriggerActive:f}=DC(),p=Fd(`div`,e,{state:{open:Z(o,$.open,!0),side:s,align:c,uncentered:d},ref:[l,t],props:[{style:u,"aria-hidden":!0},a],stateAttributesMapping:JC});return f?null:p}),XC=e.forwardRef(function(e,t){let{render:n,className:r,style:i,direction:a,keepMounted:o=!1,...s}=e,c=a===`up`,{store:l,popupRef:u,listRef:d,handleScrollArrowVisibility:f,scrollArrowsMountedCountRef:p}=mC(),{side:m,scrollDownArrowRef:h,scrollUpArrowRef:g}=DC(),_=Z(l,c?$.scrollUpArrowVisible:$.scrollDownArrowVisible),v=Z(l,$.openMethod),y=_&&v!==`touch`,b=Jm(),x=c?g:h,{transitionStatus:S,setMounted:C}=Yd(y);J(()=>(p.current+=1,l.state.hasScrollArrows||l.set(`hasScrollArrows`,!0),()=>{p.current=Math.max(0,p.current-1),p.current===0&&l.state.hasScrollArrows&&l.set(`hasScrollArrows`,!1)}),[l,p]),Tf({open:y,ref:x,onComplete(){y||C(!1)}});let w=Fd(`div`,e,{ref:[t,x],state:{direction:a,visible:y,side:m,transitionStatus:S},props:[{"aria-hidden":!0,children:c?`▲`:`▼`,style:{position:`absolute`},onMouseMove(e){if(e.movementX===0&&e.movementY===0||b.isStarted())return;l.set(`activeIndex`,null);function t(){let e=l.state.listElement??u.current;if(!e)return;l.set(`activeIndex`,null),f();let n=uC(e.scrollHeight,e.clientHeight),r=dC(e.scrollTop,n),i=r===(c?0:n),a=d.current;if(r!==e.scrollTop&&(e.scrollTop=r),a.length===0&&l.set(c?`scrollUpArrowVisible`:`scrollDownArrowVisible`,!i),i)return void b.clear();if(a.length>0){let t=x.current?.offsetHeight||0;e.scrollTop=ZC(a,c,r,e.clientHeight,t,n)}b.start(40,t)}b.start(40,t)},onMouseLeave(){b.clear()}},s]});return y||o?w:null});function ZC(e,t,n,r,i,a){if(t){let t=0,r=n+i-1;for(let n=0;n<e.length;n+=1){let i=e[n];if(i&&i.offsetTop>=r){t=n;break}}let o=Math.max(0,t-1),s=e[o];return o<t&&s?dC(s.offsetTop-i,a):0}let o=e.length-1,s=n+r-i+1;for(let t=0;t<e.length;t+=1){let n=e[t];if(n&&n.offsetTop+n.offsetHeight>s){o=Math.max(0,t-1);break}}let c=Math.min(e.length-1,o+1),l=e[c];return c>o&&l?dC(l.offsetTop+l.offsetHeight-r+i,a):a}var QC=e.forwardRef(function(e,t){return p(XC,{...e,ref:t,direction:`down`})}),$C=e.forwardRef(function(e,t){return p(XC,{...e,ref:t,direction:`up`})}),ew=e.createContext(void 0);function tw(){let t=e.useContext(ew);if(t===void 0)throw Error(fd(56));return t}var nw=e.forwardRef(function(t,n){let{render:r,className:i,style:a,...o}=t,[s,c]=e.useState(),l=e.useMemo(()=>({labelId:s,setLabelId:c}),[s,c]),u=Fd(`div`,t,{ref:n,props:[{role:`group`,"aria-labelledby":s},o]});return p(ew.Provider,{value:l,children:u})}),rw=e.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=tw(),c=ef(a);return J(()=>{s(c)},[c,s]),Fd(`div`,e,{ref:t,props:[{id:c},o]})});function iw(t){let{id:n,value:r,defaultValue:i=null,onValueChange:a,open:o,defaultOpen:s=!1,onOpenChange:c,name:l,form:u,autoComplete:d,disabled:f=!1,readOnly:h=!1,required:g=!1,modal:_=!0,actionsRef:v,inputRef:y,onOpenChangeComplete:b,items:x,multiple:S=!1,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T=J_,highlightItemOnHover:E=!0,children:D}=t,{clearErrors:O}=Zy(),{setDirty:k,setTouched:A,setFocused:j,shouldValidateOnChange:M,validityData:N,setFilled:P,name:F,disabled:I,validation:L,validationMode:ee}=fv(),R=By({id:n}),z=I||f,B=F??l,[V,H]=Vd({controlled:r,default:S?i??ld:i,name:`Select`,state:`value`}),[U,W]=Vd({controlled:o,default:s,name:`Select`,state:`open`}),G=e.useRef([]),K=e.useRef([]),te=e.useRef(null),ne=e.useRef(null),re=e.useRef(0),ie=e.useRef(null),ae=e.useRef([]),oe=e.useRef(!1),se=e.useRef(!1),ce=e.useRef(null),le=e.useRef(null),ue=e.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),de=e.useRef(!1),{mounted:fe,setMounted:pe,transitionStatus:me}=Yd(U),{openMethod:he,triggerProps:ge}=E_(U),_e=td(()=>new Im({id:R,labelId:void 0,modal:_,multiple:S,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,value:V,open:U,mounted:fe,transitionStatus:me,items:x,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:{},triggerProps:{},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1})).current,ve=Z(_e,$.activeIndex),ye=Z(_e,$.selectedIndex),be=Z(_e,$.triggerElement),xe=Z(_e,$.positionerElement),Se=rS(he),Ce=he??Se,we=e.useMemo(()=>S&&Array.isArray(V)&&V.length===0?``:nv(V,w),[S,V,w]),Te=e.useMemo(()=>S&&Array.isArray(V)?V.map(e=>nv(e,w)):nv(V,w),[S,V,w]);Qy(Ef(_e.state.triggerElement),R,V,Y(()=>Te));let Ee=e.useRef(V),De=S?Array.isArray(V)&&V.length>0:V!=null;J(()=>{V!==Ee.current&&_e.set(`forceMount`,!0)},[_e,V]),J(()=>{P(De)},[De,P]),J(function(){let e=ae.current,t;if(S){let n=Array.isArray(V)?V:[];if(n.length===0)t=null;else{let r=n[n.length-1],i=Z_(e,r,T);t=i===-1?null:i}}else{let n=Z_(e,V,T);t=n===-1?null:n}t===null&&(le.current=null),!U&&_e.set(`selectedIndex`,t)},[De,S,U,V,ae,T,_e,le]),e_(V,()=>{O(B),k(V!==N.initialValue),M()?L.commit(V):L.commit(V,!0)});let Oe=Y((e,t)=>{if(c?.(e,t),!t.isCanceled&&(W(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(A(!0),j(!1),ee===`onBlur`&&L.commit(V)),!e&&_e.state.activeIndex!==null)){let e=G.current[_e.state.activeIndex];queueMicrotask(()=>{e?.setAttribute(`tabindex`,`-1`)})}}),ke=Y(()=>{pe(!1),_e.update({activeIndex:null,openMethod:null}),b?.(!1)});Tf({enabled:!v,open:U,ref:te,onComplete(){U||ke()}}),e.useImperativeHandle(v,()=>({unmount:ke}),[ke]);let Ae=Y((e,t)=>{a?.(e,t),!t.isCanceled&&H(e)}),je=Y(()=>{let e=_e.state.listElement||te.current;if(!e)return;let t=uC(e.scrollHeight,e.clientHeight),n=dC(e.scrollTop,t),r=n>0,i=n<t;_e.state.scrollUpArrowVisible!==r&&_e.set(`scrollUpArrowVisible`,r),_e.state.scrollDownArrowVisible!==i&&_e.set(`scrollDownArrowVisible`,i)}),Me=Ey({open:U,onOpenChange:Oe,elements:{reference:be,floating:xe}}),Ne=Ah(Me,{enabled:!h&&!z,event:`mousedown`}),Pe=vh(Me),Fe=Jy(Me,{enabled:!h&&!z,listRef:G,activeIndex:ve,selectedIndex:ye,disabledIndices:ld,onNavigate(e){(e!==null||U)&&_e.set(`activeIndex`,e)},focusItemOnHover:E}),Ie=Vy(Me,{enabled:!h&&!z&&(U||!S),listRef:K,activeIndex:ve,selectedIndex:ye,onMatch(e){U?_e.set(`activeIndex`,e):Ae(ae.current[e],of(`none`))},onTyping(e){oe.current=e}}),Le=e.useMemo(()=>{let e=xd(Ie.reference,Fe.reference,Pe.reference,Ne.reference,ge);return R&&(e.id=R),e},[Ne.reference,Ie.reference,Fe.reference,Pe.reference,ge,R]),Re=e.useMemo(()=>xd(xh,Ie.floating,Fe.floating,Pe.floating),[Ie.floating,Fe.floating,Pe.floating]),ze=Fe.item??ud;kh(()=>{_e.update({popupProps:Re,triggerProps:Le})}),J(()=>{_e.update({id:R,modal:_,multiple:S,value:V,open:U,mounted:fe,transitionStatus:me,popupProps:Re,triggerProps:Le,items:x,itemToStringLabel:C,itemToStringValue:w,isItemEqualToValue:T,openMethod:Ce})},[_e,R,_,S,V,U,fe,me,Re,Le,x,C,w,T,Ce]);let Be=e.useMemo(()=>({store:_e,name:B,required:g,disabled:z,readOnly:h,multiple:S,highlightItemOnHover:E,setValue:Ae,setOpen:Oe,listRef:G,popupRef:te,scrollHandlerRef:ne,handleScrollArrowVisibility:je,scrollArrowsMountedCountRef:re,itemProps:ze,events:Me.context.events,valueRef:ie,valuesRef:ae,labelsRef:K,typingRef:oe,selectionRef:ue,firstItemTextRef:ce,selectedItemTextRef:le,validation:L,onOpenChangeComplete:b,keyboardActiveRef:se,alignItemWithTriggerActiveRef:de,initialValueRef:Ee}),[_e,B,g,z,h,S,E,Ae,Oe,ze,Me.context.events,L,b,je]),Ve=nd(y,L.inputRef),He=S&&Array.isArray(V)&&V.length>0,Ue=S?void 0:B,We=e.useMemo(()=>!S||!Array.isArray(V)||!B?null:V.map(e=>{let t=nv(e,w);return p(`input`,{type:`hidden`,form:u,name:B,value:t},t)}),[S,V,u,B,w]);return p(fC.Provider,{value:Be,children:m(pC.Provider,{value:Me,children:[D,p(`input`,{...L.getInputValidationProps({onFocus(){_e.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||z||h)return void e.preventBaseUIHandler?.();let t=e.currentTarget.value,n=of(`none`,e.nativeEvent);function r(){if(S)return;let e=ae.current.find(e=>nv(e,w).toLowerCase()===t.toLowerCase()||tv(e,C).toLowerCase()===t.toLowerCase());e!=null&&(k(e!==N.initialValue),Ae(e,n),M()&&L.commit(e))}_e.set(`forceMount`,!0),queueMicrotask(r)}}),id:R&&Ue==null?`${R}-hidden-input`:void 0,form:u,name:Ue,autoComplete:d,value:we,disabled:z,required:g&&!He,readOnly:h,ref:Ve,style:B?Nh:Mh,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),We]})})}var aw=e.createContext(void 0),ow=e.forwardRef(function(e,t){let{store:n}=mC(),r=Z(n,$.mounted),i=Z(n,$.forceMount);return r||i?p(aw.Provider,{value:!0,children:p($g,{ref:t,...e})}):null}),sw={label:`label-UrIm_f`,fieldLabel:`fieldLabel-KieHgU`,requiredMarker:`requiredMarker-ZRoZQT`,trigger:`trigger-UPubf5`,value:`value-fKND1Z`,icon:`icon-_ToIv8`,backdrop:`backdrop-kGw5mZ`,positioner:`positioner-rz27gX`,popup:`popup-BEvbSY`,list:`list-fTpwcL`,item:`item-SBIvtk`,itemText:`itemText-tVdjcF`,itemContent:`itemContent-N1nRUK`,itemDescription:`itemDescription-MNvNbs`,itemIcon:`itemIcon-ASIDFq`,itemSuffix:`itemSuffix-h2RKor`,itemIndicator:`itemIndicator-qlxJA4`,arrow:`arrow-TRzfpO`,scrollDownArrow:`scrollDownArrow-mffvLs`,scrollUpArrow:`scrollUpArrow-P67Eti`,groupLabel:`groupLabel-GC3RgN`,separator:`separator-XEtOy2`,loadingIndicator:`loadingIndicator-X_6SEg`,loadingIndicatorSpin:`loadingIndicatorSpin-xPUyVe`},cw={Root:iw,Label:e.forwardRef(({className:e,...t},n)=>p(gC,{ref:n,className:$u(sw.label,e),...t})),Trigger:e.forwardRef(({className:e,...t},n)=>p(bC,{ref:n,className:$u(sw.trigger,e),...t})),Value:e.forwardRef(({className:e,...t},n)=>p(SC,{ref:n,className:$u(sw.value,e),...t})),Icon:e.forwardRef(({className:e,...t},n)=>p(CC,{ref:n,className:$u(sw.icon,e),...t})),Portal:ow,Backdrop:e.forwardRef(({className:e,...t},n)=>p(TC,{ref:n,className:$u(sw.backdrop,e),...t})),Positioner:e.forwardRef(({className:e,...t},n)=>p(jC,{ref:n,className:$u(sw.positioner,e),...t})),Popup:e.forwardRef(({className:e,...t},n)=>p(NC,{ref:n,className:$u(sw.popup,e),...t})),List:e.forwardRef(({className:e,...t},n)=>p(VC,{ref:n,className:$u(sw.list,e),...t})),Item:e.forwardRef(({className:e,...t},n)=>p(WC,{ref:n,className:$u(sw.item,e),...t})),ItemIndicator:e.forwardRef(({className:e,...t},n)=>p(GC,{ref:n,className:$u(sw.itemIndicator,e),...t})),ItemText:e.forwardRef(({className:e,...t},n)=>p(qC,{ref:n,className:$u(sw.itemText,e),...t})),Arrow:e.forwardRef(({className:e,...t},n)=>p(YC,{ref:n,className:$u(sw.arrow,e),...t})),ScrollDownArrow:e.forwardRef(({className:e,...t},n)=>p(QC,{ref:n,className:$u(sw.scrollDownArrow,e),...t})),ScrollUpArrow:e.forwardRef(({className:e,...t},n)=>p($C,{ref:n,className:$u(sw.scrollUpArrow,e),...t})),Group:e.forwardRef(({className:e,...t},n)=>p(nw,{ref:n,className:$u(sw.group,e),...t})),GroupLabel:e.forwardRef(({className:e,...t},n)=>p(rw,{ref:n,className:$u(sw.groupLabel,e),...t})),Separator:e.forwardRef(({className:e,...t},n)=>p($y,{ref:n,className:$u(sw.separator,e),...t}))},lw=e=>`divider`in e,uw=e=>`groupLabel`in e;function dw(e){let{value:t,label:n,disabled:r,icon:i,description:a,suffix:o}=e,s=n??t,c=i!=null||a!=null||o!=null;return p(cw.Item,{value:t,disabled:r,children:c?m(f,{children:[i==null?null:p(`span`,{className:sw.itemIcon,"aria-hidden":`true`,children:i}),m(`div`,{className:sw.itemContent,children:[p(cw.ItemText,{children:s}),a==null?null:p(`div`,{className:sw.itemDescription,children:a})]}),o==null?null:p(`span`,{className:sw.itemSuffix,children:o})]}):p(cw.ItemText,{children:s})},t)}var fw=e.forwardRef(({options:e,label:t,"aria-label":n,placeholder:r,description:i,error:a,variant:o=`floating`,alignment:s=`start`,invalid:c=!1,loading:l=!1,required:u=!1,disabled:d=!1,readOnly:f,icon:h=p(Yu,{}),outerBorder:g=!1,sideOffset:_=4,dir:v,triggerClassName:y,popupClassName:b,...x},S)=>p(bx.Root,{invalid:c,disabled:d,children:m(cw.Root,{readOnly:f||l,required:u,disabled:d,...x,children:[t==null?null:m(cw.Label,{className:sw.fieldLabel,children:[t,u?p(`span`,{className:sw.requiredMarker,"aria-hidden":`true`,children:`*`}):null]}),m(cw.Trigger,{ref:S,dir:v,"aria-label":t==null?n:void 0,"aria-busy":l||void 0,"data-variant":o,"data-alignment":s,"data-loading":l?``:void 0,className:y,children:[p(cw.Value,{placeholder:r}),l?p(`span`,{className:sw.loadingIndicator,"aria-hidden":`true`}):p(cw.Icon,{children:h})]}),a==null?null:p(bx.Error,{match:c,children:a}),i==null?null:p(bx.Description,{children:i}),p(cw.Portal,{children:p(cw.Positioner,{dir:v,align:`start`,alignItemWithTrigger:!1,sideOffset:_,children:p(cw.Popup,{dir:v,"data-variant":o,"data-outer-border":g?``:void 0,className:b,children:p(cw.List,{children:e.map((e,t)=>lw(e)?p(cw.Separator,{},`divider-${t}`):uw(e)?m(cw.Group,{children:[p(cw.GroupLabel,{children:e.groupLabel}),e.options.map(dw)]},`group-${t}`):dw(e))})})})})]})}));fw.displayName=`SelectField`,xm(`../../node_modules/use-sync-external-store/index.js`),{...lv},[...Op],{...lv};var pw=function(e){return e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e}({}),mw={tabActivationDirection:e=>({[pw.activationDirection]:e})};({...mw}),function(e){return e.index=`data-index`,e.activationDirection=`data-activation-direction`,e.orientation=`data-orientation`,e.hidden=`data-hidden`,e[e.startingStyle=yf.startingStyle]=`startingStyle`,e[e.endingStyle=yf.endingStyle]=`endingStyle`,e}({}),{...mw,...Sf};var hw={root:`root-Hb4MhN`,list:`list-ZEK7AG`,underlineFull:`underlineFull-qh4VtD`,underlineFit:`underlineFit-ahY1xs`,alignStart:`alignStart-haA6GJ`,alignCenter:`alignCenter-e896qY`,alignEnd:`alignEnd-ClTg6L`,tab:`tab-FRO0Rd`,indicator:`indicator-a2Roef`,panel:`panel-dMpxFc`};hw.underlineFull,hw.underlineFit,hw.underlineNone,hw.alignStart,hw.alignCenter,hw.alignEnd,{...Sf};var gw=e=>e.toastMetadata;X(e=>e.toasts),X(e=>e.toasts.length===0),X(gw,(e,t)=>e.get(t)?.value),X(gw,(e,t)=>e.get(t)?.domIndex??-1),X(gw,(e,t)=>e.get(t)?.offsetY??0),X(gw,(e,t)=>e.get(t)?.visibleIndex??-1),X(e=>e.hovering),X(e=>e.focused),X(e=>e.hovering||e.focused),X(e=>e.hovering||e.focused||!e.isWindowFocused),X(e=>e.prevFocusElement);var _w=e.createContext(void 0);function vw(t){let n=e.useContext(_w);if(n===void 0&&!t)throw Error(fd(72));return n}var yw=e.createContext(void 0);function bw(){return e.useContext(yw)}var xw=e.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qm,currentIdRef:{current:null},currentContextRef:{current:null}});function Sw(t,n={open:!1}){let{open:r}=n,i=`rootStore`in t?t.rootStore:t,a=i.useState(`floatingId`),{currentIdRef:o,delayRef:s,timeoutMs:c,initialDelayRef:l,currentContextRef:u,hasProvider:d,timeout:f}=e.useContext(xw),[p,m]=e.useState(!1);return J(()=>{function e(){m(!1),u.current?.setIsInstantPhase(!1),o.current=null,u.current=null,s.current=l.current}if(o.current&&!r&&o.current===a){if(m(!1),c){let t=a;return f.start(c,()=>{i.select(`open`)||o.current&&o.current!==t||e()}),()=>{f.clear()}}e()}},[r,a,o,s,c,l,u,f,i]),J(()=>{if(!r)return;let e=u.current,t=o.current;f.clear(),u.current={onOpenChange:i.setOpen,setIsInstantPhase:m},o.current=a,s.current={open:0,close:db(l.current,`close`)},t!==null&&t!==a?(m(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,of(`none`))):(m(!1),e?.setIsInstantPhase(!1))},[r,a,i,o,s,l,u,f]),J(()=>()=>{u.current=null},[u]),e.useMemo(()=>({hasProvider:d,delayRef:s,isInstantPhase:p}),[d,s,p])}var Cw=function(e){return e[e.popupOpen=um.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),ww=`data-base-ui-tooltip-trigger`;function Tw(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(Pf(n))return n}}let t=e.target;return Pf(t)?t:null}function Ew(e){let t=e;for(;t;){if(t.hasAttribute(ww))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&Pf(n.host)?n.host:null}return null}Om(function(t,n){let{render:r,className:i,style:a,handle:o,payload:s,disabled:c,delay:l,closeOnClick:u=!0,closeDelay:d,id:f,...p}=t,m=vw(!0),h=o?.store??m;if(!h)throw Error(fd(82));let g=ef(f),_=h.useState(`isTriggerActive`,g),v=h.useState(`isOpenedByTrigger`,g),y=h.useState(`floatingRootContext`),b=e.useRef(null),x=l??600,S=d??0,{registerTrigger:C,isMountedByThisTrigger:w}=Th(g,b,h,{payload:s,closeOnClick:u,closeDelay:S}),T=bw(),{delayRef:E,isInstantPhase:D,hasProvider:O}=Sw(y,{open:v}),k=lb(y);h.useSyncedValue(`isInstantPhase`,D);let A=h.useState(`disabled`),j=c??A,M=Ef(j),N=h.useState(`trackCursorAxis`),P=h.useState(`disableHoverablePopup`),F=e.useRef(!1),I=Jm(),L=e.useRef(void 0);function ee(){let e=T?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=x;return O&&(n=t===0?0:l??e??x),n}function R(e){let t=b.current;if(!t||!e)return!1;let n=Ew(e);return n!==null&&n!==t&&Q(t,n)}function z(e){let t=R(e);return F.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,I.clear()),t}let B=Px(y,{enabled:!j,mouseOnly:!0,move:!1,handleClose:P||N===`both`?null:Hx(),restMs:ee,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=S;return d==null&&O&&(t=e),{close:t}},triggerElementRef:b,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`,shouldOpen(){return!F.current}}),V=aS(y,{enabled:!j}).reference,H=e=>{let t=F.current,n=Tw(e),r=z(n),i=b.current,a=i&&n&&Q(i,n);if(r&&h.select(`open`)&&h.select(`lastOpenChangeReason`)===`trigger-hover`)return void h.setOpen(!1,of(cf,e));if(t&&!r&&a&&!M.current&&!h.select(`open`)&&i&&Qp(L.current)){let t=()=>{!F.current&&!M.current&&!h.select(`open`)&&h.setOpen(!0,of(cf,e,i))},n=ee();n===0?(I.clear(),t()):I.start(n,t)}},U=h.useState(`triggerProps`,w);return Fd(`button`,t,{state:{open:v},ref:[n,C,b],props:[B,V,w||N!==`none`?U:void 0,{onMouseOver(e){H(e.nativeEvent)},onFocus(e){R(Tw(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){F.current=!1,I.clear(),L.current=void 0},onPointerEnter(e){L.current=e.pointerType},onPointerDown(e){L.current=e.pointerType,h.set(`closeOnClick`,u),u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},onClick(e){u&&!h.select(`open`)&&h.cancelPendingOpen(e.nativeEvent)},id:g,[Cw.triggerDisabled]:j?``:void 0,[ww]:j?void 0:``},p],stateAttributesMapping:gm})}),{...vm,...Sf};function Dw(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Ow(e){return e!=null&&e.clientX!=null}function kw(t,n={}){let{enabled:r=!0,axis:i=`both`}=n,a=`rootStore`in t?t.rootStore:t,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),l=a.context.dataRef,u=e.useRef(!1),d=e.useRef(null),[f,p]=e.useState(),[m,h]=e.useState([]),g=Y(e=>{a.set(`positionReference`,e)}),_=Y((e,t,n)=>{u.current||(!l.current.openEvent||Ow(l.current.openEvent))&&a.set(`positionReference`,Dw(n??c,{x:e,y:t,axis:i,dataRef:l,pointerType:f}))}),v=Y(e=>{o?d.current||(_(e.clientX,e.clientY,e.currentTarget),h([])):_(e.clientX,e.clientY,e.currentTarget)}),y=Qp(f)?s:o;e.useEffect(()=>{if(!r)return void g(c);if(!y)return;function e(){d.current?.(),d.current=null}let t=jf(s);function n(t){let n=Xm(t);Q(s,n)?e():_(t.clientX,t.clientY)}return!l.current.openEvent||Ow(l.current.openEvent)?d.current=Of(t,`mousemove`,n):g(c),e},[y,r,s,l,c,a,_,g,m]),e.useEffect(()=>()=>{a.set(`positionReference`,null)},[a]),e.useEffect(()=>{r&&!s&&(u.current=!1)},[r,s]),e.useEffect(()=>{!r&&o&&(u.current=!0)},[r,o]);let b=e.useMemo(()=>{function e(e){p(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:v,onMouseEnter:v}},[v]);return e.useMemo(()=>r?{reference:b,trigger:b}:{},[r,b])}var Aw={...G_,disabled:X(e=>e.disabled),instantType:X(e=>e.instantType),isInstantPhase:X(e=>e.isInstantPhase),trackCursorAxis:X(e=>e.trackCursorAxis),disableHoverablePopup:X(e=>e.disableHoverablePopup),lastOpenChangeReason:X(e=>e.openChangeReason),closeOnClick:X(e=>e.closeOnClick),closeDelay:X(e=>e.closeDelay),hasViewport:X(e=>e.hasViewport)},jw=class t extends Lm{constructor(t,n,r=!1){let i=new yh,a={...Mw(),...t};a.floatingRootContext=z_(i,n,r),super(a,{popupRef:e.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:i},Aw)}setOpen=(e,t)=>{let n=t.reason,r=n===cf,i=e&&n===`trigger-focus`,a=!e&&(n===`trigger-press`||n===`escape-key`);if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let o=()=>{let r={open:e,openChangeReason:n};i?r.instantType=`focus`:a?r.instantType=`dismiss`:n===`trigger-hover`&&(r.instantType=void 0),wh(r,e,t.trigger),this.update(r)};r?h.flushSync(o):o()};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,of(sf,e))}static useStore(e,n){return Sh(e,(e,r)=>new t(n,e,r)).store}};function Mw(){return{...R_(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}Dm(function(t){let{disabled:n=!1,defaultOpen:r=!1,open:i,disableHoverablePopup:a=!1,trackCursorAxis:o=`none`,actionsRef:s,onOpenChange:c,onOpenChangeComplete:l,handle:u,triggerId:d,defaultTriggerId:f=null,children:h}=t,g=jw.useStore(u?.store,{open:r,openProp:i,activeTriggerId:f,triggerIdProp:d});kh(()=>{i===void 0&&!1===g.state.open&&!0===r&&g.update({open:!0,activeTriggerId:f})}),g.useControlledProp(`openProp`,i),g.useControlledProp(`triggerIdProp`,d),g.useContextCallback(`onOpenChange`,c),g.useContextCallback(`onOpenChangeComplete`,l);let _=g.useState(`open`),v=!n&&_,y=g.useState(`activeTriggerId`),b=g.useState(`mounted`),x=g.useState(`payload`);g.useSyncedValues({trackCursorAxis:o,disableHoverablePopup:a}),g.useSyncedValue(`disabled`,n),Eh(g);let{forceUnmount:S,transitionStatus:C}=Dh(v,g),w=g.useState(`isInstantPhase`),T=g.useState(`instantType`),E=g.useState(`lastOpenChangeReason`),D=e.useRef(null);J(()=>{_&&n&&g.setOpen(!1,of(gf))},[_,n,g]),J(()=>{C===`ending`&&E===`none`||C!==`ending`&&w?(T!==`delay`&&(D.current=T),g.set(`instantType`,`delay`)):D.current!==null&&(g.set(`instantType`,D.current),D.current=null)},[C,w,E,T,g]),J(()=>{v&&(y??g.set(`payload`,void 0))},[g,y,v]);let O=e.useCallback(()=>{g.setOpen(!1,of(_f))},[g]);e.useImperativeHandle(s,()=>({unmount:S,close:O}),[S,O]);let k=v||b||!n&&o!==`none`;return m(_w.Provider,{value:g,children:[k&&p(Nw,{store:g,disabled:n,trackCursorAxis:o}),typeof h==`function`?h({payload:x}):h]})});function Nw({store:t,disabled:n,trackCursorAxis:r}){let i=t.useState(`floatingRootContext`),a=vh(i,{enabled:!n,referencePress:()=>t.select(`closeOnClick`)}),o=kw(i,{enabled:!n&&r!==`none`,axis:r===`none`?void 0:r});return Oh(t,{activeTriggerProps:e.useMemo(()=>xd(o.reference,a.reference),[o.reference,a.reference]),inactiveTriggerProps:e.useMemo(()=>xd(o.trigger,a.trigger),[o.trigger,a.trigger]),popupProps:e.useMemo(()=>xd(xh,o.floating,a.floating),[o.floating,a.floating])}),null}var Pw={root:`_root_1b47m_1`,content:`_content_1b47m_9`,icon:`_icon_1b47m_15`,label:`_label_1b47m_22`,message:`_message_1b47m_27`},Fw=`Event configuration does not provide data for this component`,Iw=()=>m(`svg`,{className:Pw.icon,viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":`true`,children:[p(`circle`,{cx:`20`,cy:`20`,r:`18`,stroke:`currentColor`,strokeWidth:`1.5`}),p(`path`,{d:`M20 12v11`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`}),p(`circle`,{cx:`20`,cy:`28`,r:`1.5`,fill:`currentColor`})]}),Lw=({id:e,className:t,componentName:n,message:r=Fw})=>(Yl(`MissingEventData`,`render`,{id:e,componentName:n}),p(`div`,{id:e,className:`${Pw.root} ${t??``}`,role:`status`,"data-hook":`missing-event-data`,children:m(`div`,{className:Pw.content,children:[p(Iw,{}),p(cm,{variant:`p3`,className:Pw.label,children:n}),p(cm,{variant:`p3`,className:Pw.message,children:r})]})})),Rw=`Something went wrong while rendering this component`,zw=class extends t{state={error:null};static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){Xl(this.props.componentName,e,{componentStack:t.componentStack})}render(){let{componentName:e,id:t,className:n,children:r,fallback:i}=this.props,{error:a}=this.state;return a?`fallback`in this.props?i:p(Lw,{id:t,className:n,componentName:e,message:a.message||Rw}):r}},Bw=(e,t)=>{let n=n=>p(zw,{componentName:t,fallback:n.children,children:p(e,{...n})});return n.displayName=`WithProviderErrorBoundary(${t})`,n},Vw=_({default:()=>Hw}),Hw={"events.demo.adult":`Adult`,"events.common.checkout":`Checkout`,"events.checkout.ticketTitle":`Ticket #{number} - {name}`,"events.seating.removeFromBasketLabel":`Remove {label} from basket`,"events.order.sentToBuyer":`{count, plural, one {The ticket is on the way to your email: {email}.} other {The tickets are on the way to your email: {email}.}}`,"events.registration.weCouldnTAddYouToTheWaitlistBecauseItS":`We couldn't add you to the waitlist because it's no longer available.`,"events.common.close":`Close`,"events.seating.chooseYourSeatOnTheMap":`Choose your seat on the map.`,"events.registration.nextTicket":`Next Ticket`,"events.checkout.seat":`Seat: {label}`,"events.seating.tablePrice":`Table reservation price: {price}`,"events.demo.child":`Child`,"events.seating.mapPositionMiddleRight":`Right part of the map`,"events.registration.buyerDetails":`Add your details`,"events.membership.alreadyHaveAMembership":`Already have a membership?`,"events.seating.seatProperties":`Seat properties`,"events.demo.area":`Area 1`,"events.seating.selectPricingOptionFor":`Select pricing option for {label}`,"events.seating.quantityFor":`Quantity for {label}`,"events.dialogs.paymentsCannotBeUsedInPreviewModeToCompletePayment":`Payments cannot be used in Preview mode. To complete Payment, go to your live published site.`,"events.demo.priceOption":`Price option {number}`,"events.order.timeRemaining":`Time remaining: {time}`,"events.tickets.noTicketsAtTheMoment":`No tickets at the moment`,"events.tickets.saleEnds":`Sale ends`,"events.registration.couldNotFindThisCouponCode":`Could not find this coupon code.`,"events.tickets.taxAdded":`+{amount} {name}`,"events.checkout.addCoupon":`Add Coupon Code`,"events.seating.ticketDescription":`Ticket description`,"events.registration.guestLimitExceededPlacesAvailable":`Guest limit exceeded. {count} places available.`,"events.registration.thisCouponIsNotActiveYet":`This coupon is not active yet.`,"events.registration.seat":`Seat`,"events.seating.discount":`Discount`,"events.demo.rowLabel":`Row`,"events.membership.trial":`{prefix}{days} day free trial`,"events.seating.mapPositionLowerRight":`Lower right of the map`,"events.seating.fromTo":`From {min} to {max}`,"events.tickets.showPrices":`{count, plural, one {Show # more price} other {Show # more prices}}`,"events.common.edit":`Edit`,"events.seating.seatingPlan":`Seating plan`,"events.demo.aboutIntro":`Use this space to tell guests more about this event, e.g., event schedule, speakers, important info & more. To customize this text head to Manage Event > Event Details.`,"events.checkout.chooseMembership":`Choose membership`,"events.membership.membershipDiscountHasBeenUsedUp":`Membership discount has been used up`,"events.registration.enterTheCode":`Enter the code`,"events.seating.tableSeat":`Table {table}, seat {seat}`,"events.seating.mapPositionUpperRight":`Upper right of the map`,"events.donation.writeAPriceAbove":`Write a price above {minimum}`,"events.common.total":`Total`,"events.seating.selectAPriceOption":`Select a price option`,"events.seating.markerSummary":`{name}, {placeCount, plural, one {# seat} other {# seats}}, {availableCount} available, {selectedCount} selected`,"events.registration.google":`Google`,"events.dialogs.addToAppleWallet":`Add To Apple Wallet`,"events.ribbon.demo":`Ribbon`,"events.membership.hideMembershipOffers":`Hide membership offers`,"events.seating.pickASeatToProceedToTheCheckout":`Pick a seat to proceed to the checkout.`,"events.membership.untilCanceled":`Valid until canceled`,"events.tickets.optionQuantity":`Quantity for {name} – {option}`,"events.registration.giftCard":`Gift card`,"events.registration.remove":`Remove`,"events.registration.iAgreeTo":`I agree to:`,"events.tickets.thereIsALimitOfTicketsPerOrder":`There is a limit of {orderLimit} tickets per order`,"events.seating.payWhatYouWant":`Pay What You Want`,"events.dialogs.checkoutUnavailable":`Checkout unavailable`,"events.common.cancel":`Cancel`,"events.membership.getAMembership":`Get a membership`,"events.order.number":`Order No. {number}`,"events.registration.ticketServiceFee":`Ticket service fee`,"events.order.sentToGuests":`{count, plural, one {The ticket is on the way to the guest and to your email: {email}.} other {The tickets are on the way to the guests and to your email: {email}.}}`,"events.registration.thisFieldIsRequired":`This field is required`,"events.common.quantity":`Quantity`,"events.tickets.thisEventDoesnTHaveTicketsAvailableCheckAgainLater":`This event doesn't have tickets available. Check again later`,"events.seating.companion":`Companion`,"events.checkout.couponCode":`Add coupon code`,"events.membership.noMembership":`No membership`,"events.membership.logIn":`Log In`,"events.registration.price":`Price:`,"events.membership.cycle.day":`{count, plural, one {Every day} other {Every # days}}`,"events.seating.mapPositionUpperCentre":`Upper centre of the map`,"events.common.unableToLoadTheFormPleaseRefreshThePage":`Unable to load the form. Please refresh the page.`,"events.tickets.soldOut":`Sold Out`,"events.seating.tableFree":`Table reservation price: Free`,"events.demo.buyerEmail":`email@example.com`,"events.common.free":`Free`,"events.membership.hideDetails":`Hide Details`,"events.registration.thereSATechnicalIssueOnOurSidePleaseRefreshThe":`There's a technical issue on our side. Please refresh the page and try again.`,"events.seating.areaName":`Area {label}`,"events.seating.rowSeat":`Row {row}, seat {seat}`,"events.demo.registrationMessages":`Registration Messages`,"events.membership.duration.day":`{count, plural, one {Valid for one day} other {Valid for # days}}`,"events.checkout.row":`Row: {label}`,"events.seating.removeFromBasket":`Remove from Basket`,"events.membership.duration.month":`{count, plural, one {Valid for one month} other {Valid for # months}}`,"events.registration.thisGiftCardWasDisabled":`This gift card was disabled.`,"events.reservation.pleaseTryAgainInAMoment":`Please try again in a moment.`,"events.order.allSet":`You're all set for {title}.`,"events.tickets.thisEventIsSoldOut":`This event is sold out`,"events.order.addToCalendar":`Add to Calendar`,"events.tickets.pickTicketsToProceedToTheCheckout":`Pick tickets to proceed to the checkout.`,"events.registration.thisGiftCardHasExpired":`This gift card has expired.`,"events.seating.update":`Update`,"events.dialogs.downloadPdf":`Download PDF`,"events.registration.membership":`Membership (-{percent}%)`,"events.tickets.taxIncluded":`+{name} included`,"events.seating.mapPositionMiddleCentre":`Central part of the map`,"events.donation.minimumDonationIs":`Minimum donation is {minimum}`,"events.registration.looksLikeThisPageHasExpired":`Looks like this page has expired`,"events.tickets.quantityFor":`Quantity for {name}`,"events.order.thankYou":`Thank you, {name}`,"events.tickets.additionalFeesApply":`+Additional fees apply`,"events.seating.someSeatsAtThisTableHaveSpecialProperties":`Some seats at this table have special properties.`,"events.seating.continueToPricingOptionsFor":`Continue to pricing options for {label}`,"events.seating.whenYouVeChosenYourTicketsTheyWillAppearHere":`When you've chosen your tickets, they will appear here.`,"events.reservation.tryAgain":`Try again`,"events.tickets.plusAdditionalFees":`+additional fees apply`,"events.checkout.area":`Area: {label}`,"events.demo.membership":`Membership {number}`,"events.reservation.somethingWentWrong":`Something went wrong`,"events.tickets.payWhatYouWant":`Pay what you want`,"events.checkout.addGiftCard":`Add Gift Card`,"events.seating.tableName":`Table {label}`,"events.registration.coupon":`Coupon`,"events.tickets.moreInfo":`More info`,"events.demo.table":`Table 1`,"events.seating.tablePriceRange":`Table reservation price: from {min} to {max}`,"events.common.price":`Price`,"events.seating.goesOnSale":`Goes on sale {date}`,"events.demo.longLocation":`Address`,"events.registration.outlook":`Outlook`,"events.order.confirmationSent":`A confirmation email has been sent to: {email}.`,"events.reservation.selectedSeatsAreNoLongerAvailable":`Selected seats are no longer available`,"events.seating.seat":`Seat {label}`,"events.registration.yourOrderDidnTGoThroughGoBackToThe":`Your order didn't go through. Go back to the event and try again.`,"events.ribbon.multipleDates":`Multiple Dates`,"events.tickets.goesOnSale":`Goes on sale`,"events.common.subtotal":`Subtotal`,"events.ribbon.membershipOffer":`Membership Offer`,"events.registration.thisOptionIsNoLongerAvailableBecauseTheEventSRegistration":`This option is no longer available because the event's registration settings have changed. Please refresh the page and try again.`,"events.checkout.table":`Table: {label}`,"events.membership.cycle.month":`{count, plural, one {Every month} other {Every # months}}`,"events.seating.mapPositionUpperLeft":`Upper left of the map`,"events.demo.section":`Section A`,"events.seating.seatingBlockName":`Seating block {label}`,"events.demo.aboutBody":`This is a paragraph about your event. You can tell guests about the event history, background, types of participants and more. This is a great place to give guests plenty of additional information to get them excited to register. To customize this text head to Manage Event > Event Details.`,"events.tickets.ticketServiceFee":`+ Ticket service fee`,"events.reservation.youCanBuyUpToTicketsPerOrderRemoveSomeTo":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.registration.registrationHasClosedCheckOutOtherEvents":`Registration has closed. Check out other events.`,"events.membership.showDetails":`Show Details`,"events.common.moreInfo":`More Info`,"events.checkout.section":`Section: {label}`,"events.membership.cycle.week":`{count, plural, one {Every week} other {Every # weeks}}`,"events.registration.pleaseIndicateThatYouVeReadAndAgreeToThe":`Please indicate that you've read and agree to the event's policies.`,"events.registration.weCouldnTFindThisGiftCardCheckTheCodeAnd":`We couldn't find this gift card. Check the code and try again.`,"events.registration.preparingOrder":`Preparing order`,"events.seating.addToBasketMessage":`Add {label} to basket`,"events.demo.seat":`Seat 1`,"events.seating.selectTickets":`Select tickets`,"events.registration.youHaveAlreadyRegistered":`You have already registered.`,"events.registration.continue":`Continue`,"events.seating.moreInfoAbout":`More info about {label}`,"events.demo.shortLocation":`Location name`,"events.membership.membershipOffers":`Membership Offers`,"events.seating.obstructed":`Obstructed view`,"events.demo.ticketDescription":`Use this space to add details about this ticket, e.g., includes a backstage pass and free drinks.`,"events.registration.ical":`iCal`,"events.registration.table":`Table`,"events.registration.policies":`Event policies`,"events.registration.thereWasATechnicalProblemAndWeCouldnTFindThis":`There was a technical problem and we couldn't find this coupon code. Try submitting it again or enter a different coupon code.`,"events.dialogs.addToAppleWalletLabel":`Add to Apple Wallet`,"events.checkout.redeemGiftCard":`Redeem a gift card`,"events.seating.mapPositionMiddleLeft":`Left part of the map`,"events.recurringDates.showMore":`Show more dates`,"events.registration.row":`Row`,"events.seating.basket":`Basket`,"events.seating.unnamedTable":`Table {id}`,"events.membership.active":`Your membership is now active. Use it to get discounts on event tickets.`,"events.order.processing":`{count, plural, one {Your order is being processed. When it's confirmed you will receive an email with your ticket.} other {Your order is being processed. When it's confirmed you will receive an email with your tickets.}}`,"events.reservation.ok":`OK`,"events.seating.addToBasket":`Add to basket`,"events.order.preparingTickets":`{count, plural, one {Preparing Ticket} other {Preparing Tickets}}`,"events.membership.duration.year":`{count, plural, one {Valid for one year} other {Valid for # years}}`,"events.seating.serviceFee":`Service fee`,"events.demo.row":`Row 1`,"events.demo.areaLabel":`Area`,"events.registration.chooseMembership":`Choose membership`,"events.seating.mapPositionLowerCentre":`Lower centre of the map`,"events.tickets.lessInfo":`Less info`,"events.membership.purchased":`Purchased`,"events.ribbon.soldOut":`Sold Out`,"events.order.downloadTickets":`{count, plural, one {Download Ticket} other {Download Tickets}}`,"events.registration.paymentCanceled":`Payment Canceled`,"events.registration.section":`Section`,"events.registration.ticketType":`Ticket type`,"events.membership.benefit":`{count, plural, one {{percent}% off for # ticket} other {{percent}% off for # tickets}}`,"events.registration.qty":`Qty:`,"events.demo.dateAndTimeTbdMessage":`Date and Time TBD Message`,"events.recurringDates.showLess":`Show less dates`,"events.registration.sameAsBuyerDetails":`Same as buyer details`,"events.membership.duration.week":`{count, plural, one {Valid for one week} other {Valid for # weeks}}`,"events.membership.showMembershipOffers":`Show membership offers`,"events.list.allEvents":`All Events`,"events.event.registrationNotRequired":`No registration required`,"events.tickets.hidePrices":`{count, plural, one {Hide # price} other {Hide # prices}}`,"events.common.ok":`OK`,"events.common.back":`Back`,"events.registration.thisCouponHasAlreadyBeenUsed":`This coupon has already been used.`,"events.seating.rowName":`Row {label}`,"events.donation.enterADonationAmount":`Enter a donation amount`,"events.seating.seatNumber":`Seat {number}`,"events.seating.ticketCount":`{count, plural, one {# ticket} other {# tickets}}`,"events.dialogs.download":`Download`,"events.seating.saleEnds":`Sale ends {date}`,"events.registration.placeOrder":`Place Order`,"events.button.details":`Details`,"events.registration.thisCouponHasExpired":`This coupon has expired.`,"events.reservation.oneOfTheTicketsYouSelectedIsNoLongerAvailable":`One of the tickets you selected is no longer available`,"events.seating.accessible":`Accessible`,"events.button.buyTickets":`Buy Tickets`,"events.common.continue":`Continue`,"events.registration.thisGiftCardBalanceIs0":`This gift card balance is 0.`,"events.registration.payment":`Payment`,"events.demo.ticketName":`Ticket name`,"events.demo.eventTitle":`Event name`,"events.dialogs.checkoutIsUnavailableAtTheMomentPleaseContactUsFor":`Checkout is unavailable at the moment. Please contact us for more information.`,"events.reservation.dismiss":`Dismiss`,"events.reservation.someoneElseJustReservedOneOrMoreOfYourSeatsWe":`Someone else just reserved one or more of your seats. We'll refresh the seating plan so you can pick again.`,"events.demo.buyerName":`Guest`,"events.donation.writeAPrice":`Write a price`,"events.membership.buyAMembershipAndGetUpToOffThisEventAt":`Buy a membership and get up to {percent}% off this event at checkout`,"events.registration.thereSATechnicalIssueOnOurSidePleaseTryAgain":`There's a technical issue on our side. Please try again.`,"events.ribbon.joinWaitlist":`Join Waitlist`,"events.dialogs.timeSUpToBuyTheseTicketsRefreshYourPage":`Time's Up. To buy these tickets, refresh your page.`,"events.registration.ticketDetails":`Tickets details`,"events.membership.thankYou":`Thank you!`,"events.tickets.saleEnded":`Sale ended`,"events.seating.viewBasket":`View Basket`,"events.button.rsvp":`RSVP`,"events.reservation.someTicketsAreNoLongerAvailable":`Some tickets are no longer available`,"events.seating.basketCount":`Basket ({count})`,"events.registration.area":`Area`,"events.seating.wheelchair":`Wheelchair accessible`,"events.seating.seatQty":`Seat Qty`,"events.seating.zoomOut":`Zoom out`,"events.tickets.feeAmount":`+{amount} ticket service fee`,"events.registration.seatInfo":`Seat info`,"events.seating.mapPositionLowerLeft":`Lower left of the map`,"events.reservation.ticketLimitReached":`Ticket limit reached`,"events.event.registrationOpens":`Registration opens {date}`,"events.recurringDates.otherDates":`Other dates`,"events.common.backToSite":`Back to site`,"events.common.backToEvent":`Back to Event`,"events.reservation.somethingWentWrongPleaseTryAgain":`Something went wrong. Please try again.`,"events.order.date":`Placed on: {date}`,"events.ribbon.rsvpClosed":`RSVP Closed`,"events.registration.apply":`Apply`,"events.seating.youCanBuyUpToTicketsPerOrderRemoveSome":`You can buy up to {orderLimit} tickets per order. Remove some to add new ones.`,"events.demo.eventTeaser":`This is a great place to get your guests excited by telling them a little more about this event.`,"events.membership.cycle.year":`{count, plural, one {Every year} other {Every # years}}`,"events.seating.zoomIn":`Zoom in`},Uw=ha(`@wix/site-service-locale`),Ww=()=>{let{language:e}=d(Uw);return e},Gw=Object.assign({"../assets/locale/messages_en.json":Vw}),Kw=(e,t=``)=>`../assets/locale/messages_${e}${t}.json`,qw=e=>{let[t]=e.toLowerCase().replace(/_/g,`-`).split(`-`);return Gw[Kw(t)]?t:`en`},Jw=wn({isDev:!1,loadMessages:async e=>Gw[Kw(e)],loadDevMessages:void 0}),Yw=async e=>{let t=fa({asyncMessagesLoader:Jw,locale:qw(e),disableAutoInit:!0,useSuspense:!1});if(await t.init({initAsync:!1}),!t.hasResourceBundle(t.language,`translation`))throw Error(`Unable to load Events translations`);return t},Xw=()=>{let e=Ww();return c(()=>Yw(e??`en`),[e])},Zw=1,Qw=async({warmupData:e,key:t,fetchData:n})=>{if(e.SSR){let r=await n();return e.set(t,{value:r}),r}let r=await e.get(t);return Yl(`withWarmupData`,`response`,{key:t,entry:r}),r?r.value:n()},$w=(e,t)=>`events-components:v${Zw}:${e}:${JSON.stringify(t)}`,eT=e=>({type:_u.PARAGRAPH,id:``,nodes:e?[{type:_u.TEXT,id:``,nodes:[],textData:{text:e,decorations:[]}}]:[],paragraphData:{}}),tT=e=>({nodes:[e(`events.demo.aboutIntro`),``,e(`events.demo.aboutBody`),``,e(`events.demo.aboutBody`)].map(eT)}),nT=`demo`,rT=`America/Los_Angeles`,iT=[`wix:image://v1/936ad1_09b33941d2854a5bb7fc93f78d30e85d~mv2.png/#originWidth=1920&originHeight=1080`,`wix:image://v1/936ad1_5f3e23b488e441d6a9fd32fa59e0ac11~mv2.png/#originWidth=1920&originHeight=1080`,`wix:image://v1/936ad1_41ef3a552bb64327893a80e7c7926abc~mv2.png/#originWidth=1920&originHeight=1080`],aT=e=>({_id:`${nT}1`,slug:``,status:Su.UPCOMING,title:e(`events.demo.eventTitle`),shortDescription:e(`events.demo.eventTeaser`),description:tT(e),mainImage:iT[0],dateAndTimeSettings:{startDate:au(rT),endDate:ou(rT),hideEndDate:!1,dateAndTimeTbd:!1,timeZoneId:rT},location:{name:e(`events.demo.shortLocation`),type:gu.VENUE,address:{addressLine1:`500 Terry Francine Street`,city:`San Francisco`,formatted:e(`events.demo.longLocation`),location:{latitude:37.7749295,longitude:-122.41941550000001}}},registration:{type:yu.TICKETING,status:vu.OPEN_TICKETS,initialType:hu.TICKETING,tickets:{currency:`USD`,ticketLimitPerOrder:50,guestsAssignedSeparately:!1,soldOut:!1,lowestPrice:{value:`10.25`,currency:`USD`},highestPrice:{value:`30.75`,currency:`USD`}}}}),oT=e=>Array.from({length:3},(t,n)=>({event:{...aT(e),_id:`${nT}${n+1}`,mainImage:iT[n]},hasMemberships:!1})),sT={status:{$eq:Su.UPCOMING}},cT=[{fieldName:`start`,order:xu.ASC}],lT=`ALL_EVENTS`,uT={events:[],hasMore:!1,total:0},dT={events:[],categories:[],eventsLimit:12,total:0,isLoading:!0,hasMore:!1,loadMore:async()=>{}},fT=r(void 0),pT=()=>{let e=o(fT);if(!e)throw Error(`useEventListContext must be used within an EventListProvider`);return e},mT=({children:e,editor:t,eventsLimit:n,pricingPlansInstalled:r,dataPromise:i,refreshSignal:o,showCategories:f,resolveQuery:m})=>{Yl(`InnerEventListContextProvider`,`render`);let[h,{query:g,response:_},v]=_a(i),y=d(ga),b=l(0),x=l(_.events.length),S=l(null),C=l(),[w,T]=u(g),[E,D]=u(_.events),[O,k]=u(_.hasMore),[A,j]=u(_.total),[M,N]=u(v),[P,F]=u(),[I,L]=u(`idle`),ee=I===`loading`||I===`loadingMore`;Yl(`InnerEventListProvider`,`resolved`,{eventsCount:_.events.length,categoriesCount:M.length}),s(()=>{if(!o)return;S.current=null;let e=++b.current,t=C.current,i=m(),a=!0;return L(e=>e===`loading`?`loading`:`refreshing`),Promise.all([i,i.then(e=>e?qu({...e,limit:n,categoryIds:t?[t]:[],pricingPlansInstalled:r}):uT),f?Ql().catch(()=>[]):Promise.resolve([])]).then(([t,n,r])=>{a&&e===b.current&&(T(t),D(n.events),k(n.hasMore),j(n.total),N(r),x.current=n.events.length)}).catch(e=>{Xl(`refreshEventList`,e)}).finally(()=>{a&&e===b.current&&L(`idle`)}),()=>{a=!1}},[o,n,r,f,m]),s(()=>()=>{b.current+=1},[]);let R=a(async()=>{if(S.current)return S.current;if(!O||!w||I!==`idle`)return;L(`loadingMore`);let e=b.current;return S.current=qu({...w,offset:x.current,limit:n,categoryIds:C.current?[C.current]:[],pricingPlansInstalled:r}).then(t=>{e===b.current&&(D(e=>[...e,...t.events]),k(t.hasMore),j(t.total),x.current+=t.events.length)}).catch(()=>{}).finally(()=>{e===b.current&&(S.current=null,L(`idle`))}),S.current},[n,r,w,O,I]),z=a(async e=>{if(!w||e===C.current)return;let t=++b.current;D([]),k(!1),j(0),L(`loading`),F(e),x.current=0,S.current=null,C.current=e;try{let i=await qu({...w,limit:n,categoryIds:e?[e]:[],pricingPlansInstalled:r});t===b.current&&C.current===e&&(D(i.events),k(i.hasMore),j(i.total),x.current=i.events.length)}finally{t===b.current&&C.current===e&&L(`idle`)}},[n,r,w]),B=c(()=>[{id:lT,name:h.t(`events.list.allEvents`),isSelected:!P,select:()=>z()},...M.map(e=>({id:e._id,name:e.name,isSelected:e._id===P,select:()=>z(e._id)}))],[h,M,P,z]),V=c(()=>{let e=t&&!ee&&!E.length,r=e?oT(h.t.bind(h)):E;return{events:r.map(e=>({...e,detailsPageLink:Bu(y,e.event)})),categories:B,eventsLimit:n,total:e?r.length:A,isLoading:ee,hasMore:!e&&O,loadMore:R}},[h,y,t,E,B,n,A,ee,O,R]);return p(ma,{i18n:h,children:p(fT.Provider,{value:V,children:e})})},hT=({children:e,editor:t=!1,refreshSignal:r=0,eventsLimit:i=12,eventsFilter:o=sT,eventsSort:s=cT,eventSlug:l})=>{let u=Ca(t),d=ba(),f=Xw(),m=a(async()=>{if(!l)return{filter:o,sort:s};let e=await Ku(l,[]),t=su(e),n=mu(e);if(t&&n)return{filter:{...o,id:{$ne:t},"dateAndTimeSettings.recurringEvents.categoryId":{$eq:n}},sort:s}},[o,s,l]),h=c(()=>Qw({warmupData:u,key:$w(`event-list`,{eventsLimit:i,eventsFilter:o,eventsSort:s,eventSlug:l,pricingPlansInstalled:d}),fetchData:async()=>{let e=await m();return{query:e,response:e?await qu({...e,limit:i,categoryIds:[],pricingPlansInstalled:d}):uT}}}),[u,i,o,s,l,d,m]),g=c(()=>l?Promise.resolve([]):Qw({warmupData:u,key:$w(`categories`,{}),fetchData:Ql}).catch(()=>[]),[l,u]),_=c(()=>Promise.all([f,h,g]),[f,h,g]);return Yl(`EventListContextProvider`,`render`,{eventsLimit:i,eventsFilter:o,eventsSort:s,eventSlug:l,pricingPlansInstalled:d}),p(n,{fallback:t?p(fT.Provider,{value:dT,children:e}):null,children:p(mT,{editor:t,refreshSignal:r,showCategories:!l,resolveQuery:m,eventsLimit:i,pricingPlansInstalled:d,dataPromise:_,children:e},JSON.stringify([i,o,s,l]))})},gT=Bw(hT,`Event List Context`),_T=xn(`e2cadd10-35fe-4c6d-a367-bdd675527b25`);export{hT as EventListContextProvider,gT as default,_T as injectAccessTokenGetter,pT as useEventListContext};
6
+ //# sourceMappingURL=context-provider-e2cadd10-35fe-4c6d-a367-bdd675527b25-COKKkYEE.js.map