vendor: 4,305 bytes, lines 1-9
1var Tj=Object.defineProperty;var gb=e=>{throw TypeError(e)};var Aj=(e,t,n)=>t in e?Tj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ls=(e,t,n)=>Aj(e,typeof t!="symbol"?t+"":t,n),Tp=(e,t,n)=>t.has(e)||gb("Cannot "+n);var T=(e,t,n)=>(Tp(e,t,"read from private field"),n?n.call(e):t.get(e)),xe=(e,t,n)=>t.has(e)?gb("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),de=(e,t,n,r)=>(Tp(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Me=(e,t,n)=>(Tp(e,t,"access private method"),n);var pd=(e,t,n,r)=>({set _(s){de(e,t,s,n)},get _(){return T(e,t,r)}});function Nj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const s in r)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(r,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var O1={exports:{}},Ph={},M1={exports:{}},Oe={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var qc=Symbol.for("react.element"),Fj=Symbol.for("react.portal"),Pj=Symbol.for("react.fragment"),Rj=Symbol.for("react.strict_mode"),Oj=Symbol.for("react.profiler"),Mj=Symbol.for("react.provider"),Ij=Symbol.for("react.context"),Lj=Symbol.for("react.forward_ref"),Dj=Symbol.for("react.suspense"),zj=Symbol.for("react.memo"),Bj=Symbol.for("react.lazy"),yb=Symbol.iterator;function Wj(e){return e===null||typeof e!="object"?null:(e=yb&&e[yb]||e["@@iterator"],typeof e=="function"?e:null)}var I1={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L1=Object.assign,D1={};function Qa(e,t,n){this.props=e,this.context=t,this.refs=D1,this.updater=n||I1}Qa.prototype.isReactComponent={};Qa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Qa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function z1(){}z1.prototype=Qa.prototype;function Yg(e,t,n){this.props=e,this.context=t,this.refs=D1,this.updater=n||I1}var Qg=Yg.prototype=new z1;Qg.constructor=Yg;L1(Qg,Qa.prototype);Qg.isPureReactComponent=!0;var bb=Array.isArray,B1=Object.prototype.hasOwnProperty,Zg={current:null},W1={key:!0,ref:!0,__self:!0,__source:!0};function H1(e,t,n){var r,s={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)B1.call(t,r)&&!W1.hasOwnProperty(r)&&(s[r]=t[r]);var l=arguments.length-2;if(l===1)s.children=n;else if(1<l){for(var c=Array(l),d=0;d<l;d++)c[d]=arguments[d+2];s.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)s[r]===void 0&&(s[r]=l[r]);return{$$typeof:qc,type:e,key:i,ref:a,props:s,_owner:Zg.current}}function Hj(e,t){return{$$typeof:qc,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Xg(e){return typeof e=="object"&&e!==null&&e.$$typeof===qc}function $j(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vb=/\/+/g;function Ap(e,t){return typeof e=="object"&&e!==null&&e.key!=null?$j(""+e.key):t.toString(36)}
vendor: 4,786 bytes, lines 9-17
9function Qd(e,t,n,r,s){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case qc:case Fj:a=!0}}if(a)return a=e,s=s(a),e=r===""?"."+Ap(a,0):r,bb(s)?(n="",e!=null&&(n=e.replace(vb,"$&/")+"/"),Qd(s,t,n,"",function(d){return d})):s!=null&&(Xg(s)&&(s=Hj(s,n+(!s.key||a&&a.key===s.key?"":(""+s.key).replace(vb,"$&/")+"/")+e)),t.push(s)),1;if(a=0,r=r===""?".":r+":",bb(e))for(var l=0;l<e.length;l++){i=e[l];var c=r+Ap(i,l);a+=Qd(i,t,n,c,s)}else if(c=Wj(e),typeof c=="function")for(e=c.call(e),l=0;!(i=e.next()).done;)i=i.value,c=r+Ap(i,l++),a+=Qd(i,t,n,c,s);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function fd(e,t,n){if(e==null)return e;var r=[],s=0;return Qd(e,r,"","",function(i){return t.call(n,i,s++)}),r}function Uj(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var _n={current:null},Zd={transition:null},qj={ReactCurrentDispatcher:_n,ReactCurrentBatchConfig:Zd,ReactCurrentOwner:Zg};function $1(){throw Error("act(...) is not supported in production builds of React.")}Oe.Children={map:fd,forEach:function(e,t,n){fd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return fd(e,function(){t++}),t},toArray:function(e){return fd(e,function(t){return t})||[]},only:function(e){if(!Xg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Oe.Component=Qa;Oe.Fragment=Pj;Oe.Profiler=Oj;Oe.PureComponent=Yg;Oe.StrictMode=Rj;Oe.Suspense=Dj;Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qj;Oe.act=$1;Oe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=L1({},e.props),s=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=Zg.current),t.key!==void 0&&(s=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)B1.call(t,c)&&!W1.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var d=0;d<c;d++)l[d]=arguments[d+2];r.children=l}return{$$typeof:qc,type:e.type,key:s,ref:i,props:r,_owner:a}};Oe.createContext=function(e){return e={$$typeof:Ij,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Mj,_context:e},e.Consumer=e};Oe.createElement=H1;Oe.createFactory=function(e){var t=H1.bind(null,e);return t.type=e,t};Oe.createRef=function(){return{current:null}};Oe.forwardRef=function(e){return{$$typeof:Lj,render:e}};Oe.isValidElement=Xg;Oe.lazy=function(e){return{$$typeof:Bj,_payload:{_status:-1,_result:e},_init:Uj}};Oe.memo=function(e,t){return{$$typeof:zj,type:e,compare:t===void 0?null:t}};Oe.startTransition=function(e){var t=Zd.transition;Zd.transition={};try{e()}finally{Zd.transition=t}};Oe.unstable_act=$1;Oe.useCallback=function(e,t){return _n.current.useCallback(e,t)};Oe.useContext=function(e){return _n.current.useContext(e)};Oe.useDebugValue=function(){};Oe.useDeferredValue=function(e){return _n.current.useDeferredValue(e)};Oe.useEffect=function(e,t){return _n.current.useEffect(e,t)};Oe.useId=function(){return _n.current.useId()};Oe.useImperativeHandle=function(e,t,n){return _n.current.useImperativeHandle(e,t,n)};Oe.useInsertionEffect=function(e,t){return _n.current.useInsertionEffect(e,t)};Oe.useLayoutEffect=function(e,t){return _n.current.useLayoutEffect(e,t)};Oe.useMemo=function(e,t){return _n.current.useMemo(e,t)};Oe.useReducer=function(e,t,n){return _n.current.useReducer(e,t,n)};Oe.useRef=function(e){return _n.current.useRef(e)};Oe.useState=function(e){return _n.current.useState(e)};Oe.useSyncExternalStore=function(e,t,n){return _n.current.useSyncExternalStore(e,t,n)};Oe.useTransition=function(){return _n.current.useTransition()};Oe.version="18.3.1";M1.exports=Oe;var w=M1.exports;const L=Uc(w),ey=Nj({__proto__:null,default:L},[w]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Vj=w,Gj=Symbol.for("react.element"),Kj=Symbol.for("react.fragment"),Jj=Object.prototype.hasOwnProperty,Yj=Vj.__SECRET_INT
vendor: 11,461 bytes, lines 17-34
17ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qj={key:!0,ref:!0,__self:!0,__source:!0};function U1(e,t,n){var r,s={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Jj.call(t,r)&&!Qj.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)s[r]===void 0&&(s[r]=t[r]);return{$$typeof:Gj,type:e,key:i,ref:a,props:s,_owner:Yj.current}}Ph.Fragment=Kj;Ph.jsx=U1;Ph.jsxs=U1;O1.exports=Ph;var o=O1.exports,q1={exports:{}},er={},V1={exports:{}},G1={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(O,A){var z=O.length;O.push(A);e:for(;0<z;){var ce=z-1>>>1,ae=O[ce];if(0<s(ae,A))O[ce]=A,O[z]=ae,z=ce;else break e}}function n(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var A=O[0],z=O.pop();if(z!==A){O[0]=z;e:for(var ce=0,ae=O.length,pe=ae>>>1;ce<pe;){var Z=2*(ce+1)-1,ze=O[Z],Qe=Z+1,ge=O[Qe];if(0>s(ze,z))Qe<ae&&0>s(ge,ze)?(O[ce]=ge,O[Qe]=z,ce=Qe):(O[ce]=ze,O[Z]=z,ce=Z);else if(Qe<ae&&0>s(ge,z))O[ce]=ge,O[Qe]=z,ce=Qe;else break e}}return A}function s(O,A){var z=O.sortIndex-A.sortIndex;return z!==0?z:O.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var c=[],d=[],u=1,h=null,f=3,p=!1,v=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var A=n(d);A!==null;){if(A.callback===null)r(d);else if(A.startTime<=O)r(d),A.sortIndex=A.expirationTime,t(c,A);else break;A=n(d)}}function k(O){if(y=!1,b(O),!v)if(n(c)!==null)v=!0,te(S);else{var A=n(d);A!==null&&oe(k,A.startTime-O)}}function S(O,A){v=!1,y&&(y=!1,g(N),N=-1),p=!0;var z=f;try{for(b(A),h=n(c);h!==null&&(!(h.expirationTime>A)||O&&!H());){var ce=h.callback;if(typeof ce=="function"){h.callback=null,f=h.priorityLevel;var ae=ce(h.expirationTime<=A);A=e.unstable_now(),typeof ae=="function"?h.callback=ae:h===n(c)&&r(c),b(A)}else r(c);h=n(c)}if(h!==null)var pe=!0;else{var Z=n(d);Z!==null&&oe(k,Z.startTime-A),pe=!1}return pe}finally{h=null,f=z,p=!1}}var E=!1,C=null,N=-1,R=5,M=-1;function H(){return!(e.unstable_now()-M<R)}function D(){if(C!==null){var O=e.unstable_now();M=O;var A=!0;try{A=C(!0,O)}finally{A?U():(E=!1,C=null)}}else E=!1}var U;if(typeof m=="function")U=function(){m(D)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,ne=B.port2;B.port1.onmessage=D,U=function(){ne.postMessage(null)}}else U=function(){x(D,0)};function te(O){C=O,E||(E=!0,U())}function oe(O,A){N=x(function(){O(e.unstable_now())},A)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,te(S))},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(O){switch(f){case 1:case 2:case 3:var A=3;break;default:A=f}var z=f;f=A;try{return O()}finally{f=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(O,A){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var z=f;f=O;try{return A()}finally{f=z}},e.unstable_scheduleCallback=function(O,A,z){var ce=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?ce+z:ce):z=ce,O){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5e3}return ae=z+ae,O={id:u++,callback:A,priorityLevel:O,startTime:z,expirationTime:ae,sortIndex:-1},z>ce?(O.sortIndex=z,t(d,O),n(c)===null&&O===n(d)&&(y?(g(N),N=-1):y=!0,oe(k,z-ce))):(O.sortIndex=ae,t(c,O),v||p||(v=!0,te(S))),O},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(O){var A=f;return function(){var z=f;f=A;try{return O.apply(this,arguments)}finally{f=z}}}})(G1);V1.exports=G1;var Zj=V1.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Xj=w,Zn=Zj;function $(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var K1=new Set,rc={};function _o(e,t){Ia(e,t),Ia(e+"Capture",t)}function Ia(e,t){for(rc[e]=t,e=0;e<t.length;e++)K1.add(t[e])}var js=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qf=Object.prototype.hasOwnProperty,eT=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,xb={},wb={};function tT(e){return Qf.call(wb,e)?!0:Qf.call(xb,e)?!1:eT.test(e)?wb[e]=!0:(xb[e]=!0,!1)}function nT(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function rT(e,t,n,r){if(t===null||typeof t>"u"||nT(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Sn(e,t,n,r,s,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Xt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xt[e]=new Sn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xt[t]=new Sn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xt[e]=new Sn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xt[e]=new Sn(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xt[e]=new Sn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xt[e]=new Sn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xt[e]=new Sn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xt[e]=new Sn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xt[e]=new Sn(e,5,!1,e.toLowerCase(),null,!1,!1)});var ty=/[\-:]([a-z])/g;function ny(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ty,ny);Xt[t]=new Sn(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ty,ny);Xt[t]=new Sn(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ty,ny);Xt[t]=new Sn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xt[e]=new Sn(e,1,!1,e.toLowerCase(),null,!1,!1)});Xt.xlinkHref=new Sn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xt[e]=new Sn(e,1,!1,e.toLowerCase(),null,!0,!0)});function ry(e,t,n,r){var s=Xt.hasOwnProperty(t)?Xt[t]:null;(s!==null?s.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(rT(t,n,s,r)&&(n=null),r||s===null?tT(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=n===null?s.type===3?!1:"":n:(t=s.attributeName,r=s.attributeNamespace,n===null?e.removeAttribute(t):(s=s.type,n=s===3||s===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Ms=Xj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,md=Symbol.for("react.element"),Ko=Symbol.for("react.portal"),Jo=Symbol.for("react.fragment"),sy=Symbol.for("react.strict_mode"),Zf=Symbol.for("react.profiler"),J1=Symbol.for("react.provider"),Y1=Symbol.for("react.context"),iy=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),em=Symbol.for("react.suspense_list"),oy=Symbol.for("react.memo"),Gs=Symbol.for("react.lazy"),Q1=Symbol.for("react.offscreen"),kb=Symbol.iterator;function ul(e){return e===null||typeof e!="object"?null:(e=kb&&e[kb]||e["@@iterator"],typeof e=="function"?e:null)}var gt=Object.assign,Np;function Fl(e){if(Np===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Np=t&&t[1]||""}return` 34`+Np+e}var Fp=!1;function Pp(e,t){if(!e||Fp)return"";Fp=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}
vendor: 5,497 bytes, lines 34-37
34catch(d){if(d&&r&&typeof d.stack=="string"){for(var s=d.stack.split(` 35`),i=r.stack.split(` 36`),a=s.length-1,l=i.length-1;1<=a&&0<=l&&s[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==i[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==i[l]){var c=` 37`+s[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=l);break}}}finally{Fp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Fl(e):""}function sT(e){switch(e.tag){case 5:return Fl(e.type);case 16:return Fl("Lazy");case 13:return Fl("Suspense");case 19:return Fl("SuspenseList");case 0:case 2:case 15:return e=Pp(e.type,!1),e;case 11:return e=Pp(e.type.render,!1),e;case 1:return e=Pp(e.type,!0),e;default:return""}}function tm(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Jo:return"Fragment";case Ko:return"Portal";case Zf:return"Profiler";case sy:return"StrictMode";case Xf:return"Suspense";case em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Y1:return(e.displayName||"Context")+".Consumer";case J1:return(e._context.displayName||"Context")+".Provider";case iy:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oy:return t=e.displayName||null,t!==null?t:tm(e.type)||"Memo";case Gs:t=e._payload,e=e._init;try{return tm(e(t))}catch{}}return null}function iT(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tm(t);case 8:return t===sy?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Si(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Z1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oT(e){var t=Z1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var s=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function gd(e){e._valueTracker||(e._valueTracker=oT(e))}function X1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Z1(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nm(e,t){var n=t.checked;return gt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _b(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Si(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ek(e,t){t=t.checked,t!=null&&ry(e,"checked",t,!1)}function rm(e,t){ek(e,t);var n=Si(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sm(e,t.type,n):t.hasOwnProperty("defaultValue")&&sm(e,t.type,Si(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Sb(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function sm(e,t,n){(t!=="number"||wu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pl=Array.isArray;function oa(e,t,n,r){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Si(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function im(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($(91));return gt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cb(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error($(92));
vendor: 10,100 bytes, line 37
37if(Pl(n)){if(1<n.length)throw Error($(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Si(n)}}function tk(e,t){var n=Si(t.value),r=Si(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Eb(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function nk(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function om(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?nk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yd,rk=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,s){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,s)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(yd=yd||document.createElement("div"),yd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function sc(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},aT=["Webkit","ms","Moz","O"];Object.keys(Hl).forEach(function(e){aT.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hl[t]=Hl[e]})});function sk(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hl.hasOwnProperty(e)&&Hl[e]?(""+t).trim():t+"px"}function ik(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,s=sk(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,s):e[n]=s}}var lT=gt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function am(e,t){if(t){if(lT[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function lm(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var cm=null;function ay(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var dm=null,aa=null,la=null;function jb(e){if(e=Kc(e)){if(typeof dm!="function")throw Error($(280));var t=e.stateNode;t&&(t=Lh(t),dm(e.stateNode,e.type,t))}}function ok(e){aa?la?la.push(e):la=[e]:aa=e}function ak(){if(aa){var e=aa,t=la;if(la=aa=null,jb(e),t)for(e=0;e<t.length;e++)jb(t[e])}}function lk(e,t){return e(t)}function ck(){}var Rp=!1;function dk(e,t,n){if(Rp)return e(t,n);Rp=!0;try{return lk(e,t,n)}finally{Rp=!1,(aa!==null||la!==null)&&(ck(),ak())}}function ic(e,t){var n=e.stateNode;if(n===null)return null;var r=Lh(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error($(231,t,typeof n));return n}var um=!1;if(js)try{var hl={};Object.defineProperty(hl,"passive",{get:function(){um=!0}}),window.addEventListener("test",hl,hl),window.removeEventListener("test",hl,hl)}catch{um=!1}function cT(e,t,n,r,s,i,a,l,c){var d=Array.prototype.slice.call(arguments,3);try{t.apply(n,d)}catch(u){this.onError(u)}}var $l=!1,ku=null,_u=!1,hm=null,dT={onError:function(e){$l=!0,ku=e}};function uT(e,t,n,r,s,i,a,l,c){$l=!1,ku=null,cT.apply(dT,arguments)}function hT(e,t,n,r,s,i,a,l,c){if(uT.apply(this,arguments),$l){if($l){var d=ku;$l=!1,ku=null}else throw Error($(198));_u||(_u=!0,hm=d)}}function So(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function uk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Tb(e){if(So(e)!==e)throw Error($(188))}function pT(e){var t=e.alternate;if(!t){if(t=So(e),t===null)throw Error($(188));return t!==e?null:e}for(var n=e,r=t;;){var s=n.return;if(s===null)break;var i=s.alternate;if(i===null){if(r=s.return,r!==null){n=r;continue}break}if(s.child===i.child){for(i=s.child;i;){if(i===n)return Tb(s),e;if(i===r)return Tb(s),t;i=i.sibling}throw Error($(188))}if(n.return!==r.return)n=s,r=i;else{for(var a=!1,l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a)throw Error($(189))}}if(n.alternate!==r)throw Error($(190))}if(n.tag!==3)throw Error($(188));return n.stateNode.current===n?e:t}function hk(e){return e=pT(e),e!==null?pk(e):null}function pk(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=pk(e);if(t!==null)return t;e=e.sibling}return null}var fk=Zn.unstable_scheduleCallback,Ab=Zn.unstable_cancelCallback,fT=Zn.unstable_shouldYield,mT=Zn.unstable_requestPaint,Et=Zn.unstable_now,gT=Zn.unstable_getCurrentPriorityLevel,ly=Zn.unstable_ImmediatePriority,mk=Zn.unstable_UserBlockingPriority,Su=Zn.unstable_NormalPriority,yT=Zn.unstable_LowPriority,gk=Zn.unstable_IdlePriority,Rh=null,Qr=null;function bT(e){if(Qr&&typeof Qr.onCommitFiberRoot=="function")try{Qr.onCommitFiberRoot(Rh,e,void 0,(e.current.flags&128)===128)}catch{}}var Rr=Math.clz32?Math.clz32:wT,vT=Math.log,xT=Math.LN2;function wT(e){return e>>>=0,e===0?32:31-(vT(e)/xT|0)|0}var bd=64,vd=4194304;function Rl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Cu(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,s=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~s;l!==0?r=Rl(l):(i&=a,i!==0&&(r=Rl(i)))}else a=n&~s,a!==0?r=Rl(a):i!==0&&(r=Rl(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&s)&&(s=r&-r,i=t&-t,s>=i||s===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Rr(t),s=1<<n,r|=e[n],t&=~s;return r}function kT(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _T(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-Rr(i),l=1<<a,c=s[a];c===-1?(!(l&n)||l&r)&&(s[a]=kT(l,t)):c<=t&&(e.expiredLanes|=l),i&=~l}}function pm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function yk(){var e=bd;return bd<<=1,!(bd&4194240)&&(bd=64),e}function Op(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vc(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Rr(t),e[t]=n}function ST(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var s=31-Rr(n),i=1<<s;t[s]=0,r[s]=-1,e[s]=-1,n&=~i}}function cy(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Rr(n),s=1<<r;s&t|e[r]&t&&(e[r]|=t),n&=~s}}var Ye=0;function bk(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var vk,dy,xk,wk,kk,fm=!1,xd=[],hi=null,pi=null,fi=null,oc=new Map,ac=new Map,Ys=[],CT="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nb(e,t){switch(e){case"focusin":case"focusout":hi=null;break;case"dragenter":case"dragleave":pi=null;break;case"mouseover":case"mouseout":fi=null;break;case"pointerover":case"pointerout":oc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ac.delete(t.pointerId)}}function pl(e,t,n,r,s,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[s]},t!==null&&(t=Kc(t),t!==null&&dy(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}
vendor: 12,981 bytes, line 37
37function ET(e,t,n,r,s){switch(t){case"focusin":return hi=pl(hi,e,t,n,r,s),!0;case"dragenter":return pi=pl(pi,e,t,n,r,s),!0;case"mouseover":return fi=pl(fi,e,t,n,r,s),!0;case"pointerover":var i=s.pointerId;return oc.set(i,pl(oc.get(i)||null,e,t,n,r,s)),!0;case"gotpointercapture":return i=s.pointerId,ac.set(i,pl(ac.get(i)||null,e,t,n,r,s)),!0}return!1}function _k(e){var t=$i(e.target);if(t!==null){var n=So(t);if(n!==null){if(t=n.tag,t===13){if(t=uk(n),t!==null){e.blockedOn=t,kk(e.priority,function(){xk(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);cm=r,n.target.dispatchEvent(r),cm=null}else return t=Kc(n),t!==null&&dy(t),e.blockedOn=n,!1;t.shift()}return!0}function Fb(e,t,n){Xd(e)&&n.delete(t)}function jT(){fm=!1,hi!==null&&Xd(hi)&&(hi=null),pi!==null&&Xd(pi)&&(pi=null),fi!==null&&Xd(fi)&&(fi=null),oc.forEach(Fb),ac.forEach(Fb)}function fl(e,t){e.blockedOn===t&&(e.blockedOn=null,fm||(fm=!0,Zn.unstable_scheduleCallback(Zn.unstable_NormalPriority,jT)))}function lc(e){function t(s){return fl(s,e)}if(0<xd.length){fl(xd[0],e);for(var n=1;n<xd.length;n++){var r=xd[n];r.blockedOn===e&&(r.blockedOn=null)}}for(hi!==null&&fl(hi,e),pi!==null&&fl(pi,e),fi!==null&&fl(fi,e),oc.forEach(t),ac.forEach(t),n=0;n<Ys.length;n++)r=Ys[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Ys.length&&(n=Ys[0],n.blockedOn===null);)_k(n),n.blockedOn===null&&Ys.shift()}var ca=Ms.ReactCurrentBatchConfig,Eu=!0;function TT(e,t,n,r){var s=Ye,i=ca.transition;ca.transition=null;try{Ye=1,uy(e,t,n,r)}finally{Ye=s,ca.transition=i}}function AT(e,t,n,r){var s=Ye,i=ca.transition;ca.transition=null;try{Ye=4,uy(e,t,n,r)}finally{Ye=s,ca.transition=i}}function uy(e,t,n,r){if(Eu){var s=mm(e,t,n,r);if(s===null)Up(e,t,r,ju,n),Nb(e,r);else if(ET(s,e,t,n,r))r.stopPropagation();else if(Nb(e,r),t&4&&-1<CT.indexOf(e)){for(;s!==null;){var i=Kc(s);if(i!==null&&vk(i),i=mm(e,t,n,r),i===null&&Up(e,t,r,ju,n),i===s)break;s=i}s!==null&&r.stopPropagation()}else Up(e,t,r,null,n)}}var ju=null;function mm(e,t,n,r){if(ju=null,e=ay(r),e=$i(e),e!==null)if(t=So(e),t===null)e=null;else if(n=t.tag,n===13){if(e=uk(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ju=e,null}function Sk(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(gT()){case ly:return 1;case mk:return 4;case Su:case yT:return 16;case gk:return 536870912;default:return 16}default:return 16}}var li=null,hy=null,eu=null;function Ck(){if(eu)return eu;var e,t=hy,n=t.length,r,s="value"in li?li.value:li.textContent,i=s.length;for(e=0;e<n&&t[e]===s[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===s[i-r];r++);return eu=s.slice(e,1<r?1-r:void 0)}function tu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function wd(){return!0}function Pb(){return!1}function tr(e){function t(n,r,s,i,a){this._reactName=n,this._targetInst=s,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?wd:Pb,this.isPropagationStopped=Pb,this}return gt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wd)},persist:function(){},isPersistent:wd}),t}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},py=tr(Za),Gc=gt({},Za,{view:0,detail:0}),NT=tr(Gc),Mp,Ip,ml,Oh=gt({},Gc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fy,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ml&&(ml&&e.type==="mousemove"?(Mp=e.screenX-ml.screenX,Ip=e.screenY-ml.screenY):Ip=Mp=0,ml=e),Mp)},movementY:function(e){return"movementY"in e?e.movementY:Ip}}),Rb=tr(Oh),FT=gt({},Oh,{dataTransfer:0}),PT=tr(FT),RT=gt({},Gc,{relatedTarget:0}),Lp=tr(RT),OT=gt({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),MT=tr(OT),IT=gt({},Za,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),LT=tr(IT),DT=gt({},Za,{data:0}),Ob=tr(DT),zT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},BT={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},WT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function HT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=WT[e])?!!t[e]:!1}function fy(){return HT}var $T=gt({},Gc,{key:function(e){if(e.key){var t=zT[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?BT[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fy,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),UT=tr($T),qT=gt({},Oh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Mb=tr(qT),VT=gt({},Gc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fy}),GT=tr(VT),KT=gt({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),JT=tr(KT),YT=gt({},Oh,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QT=tr(YT),ZT=[9,13,27,32],my=js&&"CompositionEvent"in window,Ul=null;js&&"documentMode"in document&&(Ul=document.documentMode);var XT=js&&"TextEvent"in window&&!Ul,Ek=js&&(!my||Ul&&8<Ul&&11>=Ul),Ib=" ",Lb=!1;function jk(e,t){switch(e){case"keyup":return ZT.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yo=!1;function eA(e,t){switch(e){case"compositionend":return Tk(t);case"keypress":return t.which!==32?null:(Lb=!0,Ib);case"textInput":return e=t.data,e===Ib&&Lb?null:e;default:return null}}function tA(e,t){if(Yo)return e==="compositionend"||!my&&jk(e,t)?(e=Ck(),eu=hy=li=null,Yo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ek&&t.locale!=="ko"?null:t.data;default:return null}}var nA={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Db(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!nA[e.type]:t==="textarea"}function Ak(e,t,n,r){ok(r),t=Tu(t,"onChange"),0<t.length&&(n=new py("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ql=null,cc=null;function rA(e){Bk(e,0)}function Mh(e){var t=Xo(e);if(X1(t))return e}function sA(e,t){if(e==="change")return t}var Nk=!1;if(js){var Dp;if(js){var zp="oninput"in document;if(!zp){var zb=document.createElement("div");zb.setAttribute("oninput","return;"),zp=typeof zb.oninput=="function"}Dp=zp}else Dp=!1;Nk=Dp&&(!document.documentMode||9<document.documentMode)}function Bb(){ql&&(ql.detachEvent("onpropertychange",Fk),cc=ql=null)}function Fk(e){if(e.propertyName==="value"&&Mh(cc)){var t=[];Ak(t,cc,e,ay(e)),dk(rA,t)}}function iA(e,t,n){e==="focusin"?(Bb(),ql=t,cc=n,ql.attachEvent("onpropertychange",Fk)):e==="focusout"&&Bb()}function oA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mh(cc)}function aA(e,t){if(e==="click")return Mh(t)}function lA(e,t){if(e==="input"||e==="change")return Mh(t)}function cA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ir=typeof Object.is=="function"?Object.is:cA;function dc(e,t){if(Ir(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var s=n[r];if(!Qf.call(t,s)||!Ir(e[s],t[s]))return!1}return!0}function Wb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hb(e,t){var n=Wb(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wb(n)}}function Pk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Pk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Rk(){for(var e=window,t=wu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wu(e.document)}return t}function gy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function dA(e){var t=Rk(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Pk(n.ownerDocument.documentElement,n)){if(r!==null&&gy(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var s=n.textContent.length,i=Math.min(r.start,s);r=r.end===void 0?i:Math.min(r.end,s),!e.extend&&i>r&&(s=r,r=i,i=s),s=Hb(n,i);var a=Hb(n,r);s&&a&&(e.rangeCount!==1||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(s.node,s.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var uA=js&&"documentMode"in document&&11>=document.documentMode,Qo=null,gm=null,Vl=null,ym=!1;function $b(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ym||Qo==null||Qo!==wu(r)||(r=Qo,"selectionStart"in r&&gy(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 2,974 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),Vl&&dc(Vl,r)||(Vl=r,r=Tu(gm,"onSelect"),0<r.length&&(t=new py("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qo)))}function kd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zo={animationend:kd("Animation","AnimationEnd"),animationiteration:kd("Animation","AnimationIteration"),animationstart:kd("Animation","AnimationStart"),transitionend:kd("Transition","TransitionEnd")},Bp={},Ok={};js&&(Ok=document.createElement("div").style,"AnimationEvent"in window||(delete Zo.animationend.animation,delete Zo.animationiteration.animation,delete Zo.animationstart.animation),"TransitionEvent"in window||delete Zo.transitionend.transition);function Ih(e){if(Bp[e])return Bp[e];if(!Zo[e])return e;var t=Zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ok)return Bp[e]=t[n];return e}var Mk=Ih("animationend"),Ik=Ih("animationiteration"),Lk=Ih("animationstart"),Dk=Ih("transitionend"),zk=new Map,Ub="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Pi(e,t){zk.set(e,t),_o(t,[e])}for(var Wp=0;Wp<Ub.length;Wp++){var Hp=Ub[Wp],hA=Hp.toLowerCase(),pA=Hp[0].toUpperCase()+Hp.slice(1);Pi(hA,"on"+pA)}Pi(Mk,"onAnimationEnd");Pi(Ik,"onAnimationIteration");Pi(Lk,"onAnimationStart");Pi("dblclick","onDoubleClick");Pi("focusin","onFocus");Pi("focusout","onBlur");Pi(Dk,"onTransitionEnd");Ia("onMouseEnter",["mouseout","mouseover"]);Ia("onMouseLeave",["mouseout","mouseover"]);Ia("onPointerEnter",["pointerout","pointerover"]);Ia("onPointerLeave",["pointerout","pointerover"]);_o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));_o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));_o("onBeforeInput",["compositionend","keypress","textInput","paste"]);_o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));_o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));_o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),fA=ne
vendor: 4,307 bytes, line 37
37w Set("cancel close invalid load scroll toggle".split(" ").concat(Ol));function qb(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,hT(r,t,void 0,e),e.currentTarget=null}function Bk(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],s=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],c=l.instance,d=l.currentTarget;if(l=l.listener,c!==i&&s.isPropagationStopped())break e;qb(s,l,d),i=c}else for(a=0;a<r.length;a++){if(l=r[a],c=l.instance,d=l.currentTarget,l=l.listener,c!==i&&s.isPropagationStopped())break e;qb(s,l,d),i=c}}}if(_u)throw e=hm,_u=!1,hm=null,e}function at(e,t){var n=t[km];n===void 0&&(n=t[km]=new Set);var r=e+"__bubble";n.has(r)||(Wk(t,e,2,!1),n.add(r))}function $p(e,t,n){var r=0;t&&(r|=4),Wk(n,e,r,t)}var _d="_reactListening"+Math.random().toString(36).slice(2);function uc(e){if(!e[_d]){e[_d]=!0,K1.forEach(function(n){n!=="selectionchange"&&(fA.has(n)||$p(n,!1,e),$p(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_d]||(t[_d]=!0,$p("selectionchange",!1,t))}}function Wk(e,t,n,r){switch(Sk(t)){case 1:var s=TT;break;case 4:s=AT;break;default:s=uy}n=s.bind(null,t,n,e),s=void 0,!um||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Up(e,t,n,r,s){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===s||l.nodeType===8&&l.parentNode===s)break;if(a===4)for(a=r.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===s||c.nodeType===8&&c.parentNode===s))return;a=a.return}for(;l!==null;){if(a=$i(l),a===null)return;if(c=a.tag,c===5||c===6){r=i=a;continue e}l=l.parentNode}}r=r.return}dk(function(){var d=i,u=ay(n),h=[];e:{var f=zk.get(e);if(f!==void 0){var p=py,v=e;switch(e){case"keypress":if(tu(n)===0)break e;case"keydown":case"keyup":p=UT;break;case"focusin":v="focus",p=Lp;break;case"focusout":v="blur",p=Lp;break;case"beforeblur":case"afterblur":p=Lp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Rb;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=PT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=GT;break;case Mk:case Ik:case Lk:p=MT;break;case Dk:p=JT;break;case"scroll":p=NT;break;case"wheel":p=QT;break;case"copy":case"cut":case"paste":p=LT;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Mb}var y=(t&4)!==0,x=!y&&e==="scroll",g=y?f!==null?f+"Capture":null:f;y=[];for(var m=d,b;m!==null;){b=m;var k=b.stateNode;if(b.tag===5&&k!==null&&(b=k,g!==null&&(k=ic(m,g),k!=null&&y.push(hc(m,k,b)))),x)break;m=m.return}0<y.length&&(f=new p(f,v,null,n,u),h.push({event:f,listeners:y}))}}if(!(t&7)){e:{if(f=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",f&&n!==cm&&(v=n.relatedTarget||n.fromElement)&&($i(v)||v[Ts]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=d,v=v?$i(v):null,v!==null&&(x=So(v),v!==x||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=d),p!==v)){if(y=Rb,k="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(y=Mb,k="onPointerLeave",g="onPointerEnter",m="pointer"),x=p==null?f:Xo(p),b=v==null?f:Xo(v),f=new y(k,m+"leave",p,n,u),f.target=x,f.relatedTarget=b,k=null,$i(u)===d&&(y=new y(g,m+"enter",v,n,u),y.target=b,y.relatedTarget=x,k=y),x=k,p&&v)t:{for(y=p,g=v,m=0,b=y;b;b=Ro(b))m++;for(b=0,k=g;k;k=Ro(k))b++;for(;0<m-b;)y=Ro(y),m--;for(;0<b-m;)g=Ro(g),b--;for(;m--;){if(y===g||g!==null&&y===g.alternate)break t;y=Ro(y),g=Ro(g)}y=null}else y=null;p!==null&&Vb(h,f,p,y,!1),v!==null&&x!==null&&Vb(h,x,v,y,!0)}}e:{if(f=d?Xo(d):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var S=sA;else if(Db(f))if(Nk)S=lA;else{S=oA;var E=iA}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(S=aA);
vendor: 6,119 bytes, lines 37-38
37if(S&&(S=S(e,d))){Ak(h,S,n,u);break e}E&&E(e,f,d),e==="focusout"&&(E=f._wrapperState)&&E.controlled&&f.type==="number"&&sm(f,"number",f.value)}switch(E=d?Xo(d):window,e){case"focusin":(Db(E)||E.contentEditable==="true")&&(Qo=E,gm=d,Vl=null);break;case"focusout":Vl=gm=Qo=null;break;case"mousedown":ym=!0;break;case"contextmenu":case"mouseup":case"dragend":ym=!1,$b(h,n,u);break;case"selectionchange":if(uA)break;case"keydown":case"keyup":$b(h,n,u)}var C;if(my)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Yo?jk(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Ek&&n.locale!=="ko"&&(Yo||N!=="onCompositionStart"?N==="onCompositionEnd"&&Yo&&(C=Ck()):(li=u,hy="value"in li?li.value:li.textContent,Yo=!0)),E=Tu(d,N),0<E.length&&(N=new Ob(N,e,null,n,u),h.push({event:N,listeners:E}),C?N.data=C:(C=Tk(n),C!==null&&(N.data=C)))),(C=XT?eA(e,n):tA(e,n))&&(d=Tu(d,"onBeforeInput"),0<d.length&&(u=new Ob("onBeforeInput","beforeinput",null,n,u),h.push({event:u,listeners:d}),u.data=C))}Bk(h,t)})}function hc(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Tu(e,t){for(var n=t+"Capture",r=[];e!==null;){var s=e,i=s.stateNode;s.tag===5&&i!==null&&(s=i,i=ic(e,n),i!=null&&r.unshift(hc(e,i,s)),i=ic(e,t),i!=null&&r.push(hc(e,i,s))),e=e.return}return r}function Ro(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vb(e,t,n,r,s){for(var i=t._reactName,a=[];n!==null&&n!==r;){var l=n,c=l.alternate,d=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&d!==null&&(l=d,s?(c=ic(n,i),c!=null&&a.unshift(hc(n,c,l))):s||(c=ic(n,i),c!=null&&a.push(hc(n,c,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var mA=/\r\n?/g,gA=/\u0000|\uFFFD/g;function Gb(e){return(typeof e=="string"?e:""+e).replace(mA,` 38`).replace(gA,"")}function Sd(e,t,n){if(t=Gb(t),Gb(e)!==t&&n)throw Error($(425))}function Au(){}var bm=null,vm=null;function xm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wm=typeof setTimeout=="function"?setTimeout:void 0,yA=typeof clearTimeout=="function"?clearTimeout:void 0,Kb=typeof Promise=="function"?Promise:void 0,bA=typeof queueMicrotask=="function"?queueMicrotask:typeof Kb<"u"?function(e){return Kb.resolve(null).then(e).catch(vA)}:wm;function vA(e){setTimeout(function(){throw e})}function qp(e,t){var n=t,r=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(r===0){e.removeChild(s),lc(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=s}while(n);lc(t)}function mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Jb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Xa=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Xa,pc="__reactProps$"+Xa,Ts="__reactContainer$"+Xa,km="__reactEvents$"+Xa,xA="__reactListeners$"+Xa,wA="__reactHandles$"+Xa;function $i(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ts]||n[Kr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Jb(e);e!==null;){if(n=e[Kr])return n;e=Jb(e)}return t}e=n,n=e.parentNode}return null}function Kc(e){return e=e[Kr]||e[Ts],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($(33))}function Lh(e){return e[pc]||null}var _m=[],ea=-1;function Ri(e){return{current:e}}function lt(e){0>ea||(e.current=_m[ea],_m[ea]=null,ea--)}function rt(e,t){ea++,_m[ea]=e.current,e.current=t}var Ci={},dn=Ri(Ci),Dn=Ri(!1),co=Ci;function La(e,t){var n=e.type.contextTypes;if(!n)return Ci;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in n)s[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=s),s}function zn(e){return e=e.childContextTypes,e!=null}function Nu(){lt(Dn),lt(dn)}function Yb(e,t,n){if(dn.current!==Ci)throw Error($(168));rt(dn,t),rt(Dn,n)}function Hk(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var s in r)if(!(s in t))throw Error($(108,iT(e)||"Unknown",s));return gt({},n,r)}function Fu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,co=dn.current,rt(dn,e),rt(Dn,Dn.current),!0}function Qb(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Hk(e,t,co),r.__reactInternalMemoizedMergedChildContext=e,lt(Dn),lt(dn),rt(dn,e)):lt(Dn),rt(Dn,n)}var bs=null,Dh=!1,Vp=!1;function $k(e){bs===null?bs=[e]:bs.push(e)}function kA(e){Dh=!0,$k(e)}function Oi(){if(!Vp&&bs!==null){Vp=!0;var e=0,t=Ye;try{var n=bs;for(Ye=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}bs=null,Dh=!1}catch(s){throw bs!==null&&(bs=bs.slice(e+1)),fk(ly,Oi),s}finally{Ye=t,Vp=!1}}return null}var ta=[],na=0,Pu=null,Ru=0,dr=[],ur=0,uo=null,_s=1,Ss="";function Di(e,t){ta[na++]=Ru,ta[na++]=Pu,Pu=e,Ru=t}function Uk(e,t,n){dr[ur++]=_s,dr[ur++]=Ss,dr[ur++]=uo,uo=e;var r=_s;e=Ss;var s=32-Rr(r)-1;r&=~(1<<s),n+=1;var i=32-Rr(t)+s;if(30<i){var a=s-s%5;i=(r&(1<<a)-1).toString(32),r>>=a,s-=a,_s=1<<32-Rr(t)+s|n<<s|r,Ss=i+e}else _s=1<<i|n<<s|r,Ss=e}function yy(e){e.return!==null&&(Di(e,1),Uk(e,1,0))}function by(e){for(;e===Pu;)Pu=ta[--na],ta[na]=null,Ru=ta[--na],ta[na]=null;for(;e===uo;)uo=dr[--ur],dr[ur]=null,Ss=dr[--ur],dr[ur]=null,_s=dr[--ur],dr[ur]=null}var Yn=null,Jn=null,dt=!1,Tr=null;function qk(e,t){var n=hr(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Zb(e,t){switch(e.tag){case 5:var n=e.type;
vendor: 24,954 bytes, lines 38-40
38return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Yn=e,Jn=mi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yn=e,Jn=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=uo!==null?{id:_s,overflow:Ss}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=hr(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Yn=e,Jn=null,!0):!1;default:return!1}}function Sm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Cm(e){if(dt){var t=Jn;if(t){var n=t;if(!Zb(e,t)){if(Sm(e))throw Error($(418));t=mi(n.nextSibling);var r=Yn;t&&Zb(e,t)?qk(r,n):(e.flags=e.flags&-4097|2,dt=!1,Yn=e)}}else{if(Sm(e))throw Error($(418));e.flags=e.flags&-4097|2,dt=!1,Yn=e}}}function Xb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yn=e}function Cd(e){if(e!==Yn)return!1;if(!dt)return Xb(e),dt=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!xm(e.type,e.memoizedProps)),t&&(t=Jn)){if(Sm(e))throw Vk(),Error($(418));for(;t;)qk(e,t),t=mi(t.nextSibling)}if(Xb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Jn=mi(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Jn=null}}else Jn=Yn?mi(e.stateNode.nextSibling):null;return!0}function Vk(){for(var e=Jn;e;)e=mi(e.nextSibling)}function Da(){Jn=Yn=null,dt=!1}function vy(e){Tr===null?Tr=[e]:Tr.push(e)}var _A=Ms.ReactCurrentBatchConfig;function gl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error($(309));var r=n.stateNode}if(!r)throw Error($(147,e));var s=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var l=s.refs;a===null?delete l[i]:l[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error($(284));if(!n._owner)throw Error($(290,e))}return e}function Ed(e,t){throw e=Object.prototype.toString.call(t),Error($(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ev(e){var t=e._init;return t(e._payload)}function Gk(e){function t(g,m){if(e){var b=g.deletions;b===null?(g.deletions=[m],g.flags|=16):b.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function s(g,m){return g=vi(g,m),g.index=0,g.sibling=null,g}function i(g,m,b){return g.index=b,e?(b=g.alternate,b!==null?(b=b.index,b<m?(g.flags|=2,m):b):(g.flags|=2,m)):(g.flags|=1048576,m)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,m,b,k){return m===null||m.tag!==6?(m=Xp(b,g.mode,k),m.return=g,m):(m=s(m,b),m.return=g,m)}function c(g,m,b,k){var S=b.type;return S===Jo?u(g,m,b.props.children,k,b.key):m!==null&&(m.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Gs&&ev(S)===m.type)?(k=s(m,b.props),k.ref=gl(g,m,b),k.return=g,k):(k=lu(b.type,b.key,b.props,null,g.mode,k),k.ref=gl(g,m,b),k.return=g,k)}function d(g,m,b,k){return m===null||m.tag!==4||m.stateNode.containerInfo!==b.containerInfo||m.stateNode.implementation!==b.implementation?(m=ef(b,g.mode,k),m.return=g,m):(m=s(m,b.children||[]),m.return=g,m)}function u(g,m,b,k,S){return m===null||m.tag!==7?(m=ao(b,g.mode,k,S),m.return=g,m):(m=s(m,b),m.return=g,m)}function h(g,m,b){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Xp(""+m,g.mode,b),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case md:return b=lu(m.type,m.key,m.props,null,g.mode,b),b.ref=gl(g,null,m),b.return=g,b;case Ko:return m=ef(m,g.mode,b),m.return=g,m;case Gs:var k=m._init;return h(g,k(m._payload),b)}if(Pl(m)||ul(m))return m=ao(m,g.mode,b,null),m.return=g,m;Ed(g,m)}return null}function f(g,m,b,k){var S=m!==null?m.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return S!==null?null:l(g,m,""+b,k);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case md:return b.key===S?c(g,m,b,k):null;case Ko:return b.key===S?d(g,m,b,k):null;case Gs:return S=b._init,f(g,m,S(b._payload),k)}if(Pl(b)||ul(b))return S!==null?null:u(g,m,b,k,null);Ed(g,b)}return null}function p(g,m,b,k,S){if(typeof k=="string"&&k!==""||typeof k=="number")return g=g.get(b)||null,l(m,g,""+k,S);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case md:return g=g.get(k.key===null?b:k.key)||null,c(m,g,k,S);case Ko:return g=g.get(k.key===null?b:k.key)||null,d(m,g,k,S);case Gs:var E=k._init;return p(g,m,b,E(k._payload),S)}if(Pl(k)||ul(k))return g=g.get(b)||null,u(m,g,k,S,null);Ed(m,k)}return null}function v(g,m,b,k){for(var S=null,E=null,C=m,N=m=0,R=null;C!==null&&N<b.length;N++){C.index>N?(R=C,C=null):R=C.sibling;var M=f(g,C,b[N],k);if(M===null){C===null&&(C=R);break}e&&C&&M.alternate===null&&t(g,C),m=i(M,m,N),E===null?S=M:E.sibling=M,E=M,C=R}if(N===b.length)return n(g,C),dt&&Di(g,N),S;if(C===null){for(;N<b.length;N++)C=h(g,b[N],k),C!==null&&(m=i(C,m,N),E===null?S=C:E.sibling=C,E=C);return dt&&Di(g,N),S}for(C=r(g,C);N<b.length;N++)R=p(C,g,N,b[N],k),R!==null&&(e&&R.alternate!==null&&C.delete(R.key===null?N:R.key),m=i(R,m,N),E===null?S=R:E.sibling=R,E=R);return e&&C.forEach(function(H){return t(g,H)}),dt&&Di(g,N),S}function y(g,m,b,k){var S=ul(b);if(typeof S!="function")throw Error($(150));if(b=S.call(b),b==null)throw Error($(151));for(var E=S=null,C=m,N=m=0,R=null,M=b.next();C!==null&&!M.done;N++,M=b.next()){C.index>N?(R=C,C=null):R=C.sibling;var H=f(g,C,M.value,k);if(H===null){C===null&&(C=R);break}e&&C&&H.alternate===null&&t(g,C),m=i(H,m,N),E===null?S=H:E.sibling=H,E=H,C=R}if(M.done)return n(g,C),dt&&Di(g,N),S;if(C===null){for(;!M.done;N++,M=b.next())M=h(g,M.value,k),M!==null&&(m=i(M,m,N),E===null?S=M:E.sibling=M,E=M);return dt&&Di(g,N),S}for(C=r(g,C);!M.done;N++,M=b.next())M=p(C,g,N,M.value,k),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?N:M.key),m=i(M,m,N),E===null?S=M:E.sibling=M,E=M);return e&&C.forEach(function(D){return t(g,D)}),dt&&Di(g,N),S}function x(g,m,b,k){if(typeof b=="object"&&b!==null&&b.type===Jo&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case md:e:{for(var S=b.key,E=m;E!==null;){if(E.key===S){if(S=b.type,S===Jo){if(E.tag===7){n(g,E.sibling),m=s(E,b.props.children),m.return=g,g=m;break e}}else if(E.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Gs&&ev(S)===E.type){n(g,E.sibling),m=s(E,b.props),m.ref=gl(g,E,b),m.return=g,g=m;break e}n(g,E);break}else t(g,E);E=E.sibling}b.type===Jo?(m=ao(b.props.children,g.mode,k,b.key),m.return=g,g=m):(k=lu(b.type,b.key,b.props,null,g.mode,k),k.ref=gl(g,m,b),k.return=g,g=k)}return a(g);case Ko:e:{for(E=b.key;m!==null;){if(m.key===E)if(m.tag===4&&m.stateNode.containerInfo===b.containerInfo&&m.stateNode.implementation===b.implementation){n(g,m.sibling),m=s(m,b.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=ef(b,g.mode,k),m.return=g,g=m}return a(g);case Gs:return E=b._init,x(g,m,E(b._payload),k)}if(Pl(b))return v(g,m,b,k);if(ul(b))return y(g,m,b,k);Ed(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,m!==null&&m.tag===6?(n(g,m.sibling),m=s(m,b),m.return=g,g=m):(n(g,m),m=Xp(b,g.mode,k),m.return=g,g=m),a(g)):n(g,m)}return x}var za=Gk(!0),Kk=Gk(!1),Ou=Ri(null),Mu=null,ra=null,xy=null;function wy(){xy=ra=Mu=null}function ky(e){var t=Ou.current;lt(Ou),e._currentValue=t}function Em(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function da(e,t){Mu=e,xy=ra=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ln=!0),e.firstContext=null)}function mr(e){var t=e._currentValue;if(xy!==e)if(e={context:e,memoizedValue:t,next:null},ra===null){if(Mu===null)throw Error($(308));ra=e,Mu.dependencies={lanes:0,firstContext:e}}else ra=ra.next=e;return t}var Ui=null;function _y(e){Ui===null?Ui=[e]:Ui.push(e)}function Jk(e,t,n,r){var s=t.interleaved;return s===null?(n.next=n,_y(t)):(n.next=s.next,s.next=n),t.interleaved=n,As(e,r)}function As(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ks=!1;function Sy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yk(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function gi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,We&2){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,As(e,n)}return s=r.interleaved,s===null?(t.next=t,_y(r)):(t.next=s.next,s.next=t),r.interleaved=t,As(e,n)}function nu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cy(e,n)}}function tv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var s=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?s=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?s=i=t:i=i.next=t}else s=i=t;n={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Iu(e,t,n,r){var s=e.updateQueue;Ks=!1;var i=s.firstBaseUpdate,a=s.lastBaseUpdate,l=s.shared.pending;if(l!==null){s.shared.pending=null;var c=l,d=c.next;c.next=null,a===null?i=d:a.next=d,a=c;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==a&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=c))}if(i!==null){var h=s.baseState;a=0,u=d=c=null,l=i;do{var f=l.lane,p=l.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=e,y=l;switch(f=t,p=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){h=v.call(p,h,f);break e}h=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,f=typeof v=="function"?v.call(p,h,f):v,f==null)break e;h=gt({},h,f);break e;case 2:Ks=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=s.effects,f===null?s.effects=[l]:f.push(l))}else p={eventTime:p,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=p,c=h):u=u.next=p,a|=f;if(l=l.next,l===null){if(l=s.shared.pending,l===null)break;f=l,l=f.next,f.next=null,s.lastBaseUpdate=f,s.shared.pending=null}}while(!0);if(u===null&&(c=h),s.baseState=c,s.firstBaseUpdate=d,s.lastBaseUpdate=u,t=s.shared.interleaved,t!==null){s=t;do a|=s.lane,s=s.next;while(s!==t)}else i===null&&(s.shared.lanes=0);po|=a,e.lanes=a,e.memoizedState=h}}function nv(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],s=r.callback;if(s!==null){if(r.callback=null,r=n,typeof s!="function")throw Error($(191,s));s.call(r)}}}var Jc={},Zr=Ri(Jc),fc=Ri(Jc),mc=Ri(Jc);function qi(e){if(e===Jc)throw Error($(174));return e}function Cy(e,t){switch(rt(mc,t),rt(fc,e),rt(Zr,Jc),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:om(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=om(t,e)}lt(Zr),rt(Zr,t)}function Ba(){lt(Zr),lt(fc),lt(mc)}function Qk(e){qi(mc.current);var t=qi(Zr.current),n=om(t,e.type);t!==n&&(rt(fc,e),rt(Zr,n))}function Ey(e){fc.current===e&&(lt(Zr),lt(fc))}var ht=Ri(0);function Lu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gp=[];function jy(){for(var e=0;e<Gp.length;e++)Gp[e]._workInProgressVersionPrimary=null;Gp.length=0}var ru=Ms.ReactCurrentDispatcher,Kp=Ms.ReactCurrentBatchConfig,ho=0,ft=null,zt=null,qt=null,Du=!1,Gl=!1,gc=0,SA=0;function rn(){throw Error($(321))}function Ty(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function Ay(e,t,n,r,s,i){if(ho=i,ft=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ru.current=e===null||e.memoizedState===null?TA:AA,e=n(r,s),Gl){i=0;do{if(Gl=!1,gc=0,25<=i)throw Error($(301));i+=1,qt=zt=null,t.updateQueue=null,ru.current=NA,e=n(r,s)}while(Gl)}if(ru.current=zu,t=zt!==null&&zt.next!==null,ho=0,qt=zt=ft=null,Du=!1,t)throw Error($(300));return e}function Ny(){var e=gc!==0;return gc=0,e}function Hr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qt===null?ft.memoizedState=qt=e:qt=qt.next=e,qt}function gr(){if(zt===null){var e=ft.alternate;e=e!==null?e.memoizedState:null}else e=zt.next;var t=qt===null?ft.memoizedState:qt.next;if(t!==null)qt=t,zt=e;else{if(e===null)throw Error($(310));zt=e,e={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},qt===null?ft.memoizedState=qt=e:qt=qt.next=e}return qt}function yc(e,t){return typeof t=="function"?t(e):t}function Jp(e){var t=gr(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=zt,s=r.baseQueue,i=n.pending;if(i!==null){if(s!==null){var a=s.next;s.next=i.next,i.next=a}r.baseQueue=s=i,n.pending=null}if(s!==null){i=s.next,r=r.baseState;var l=a=null,c=null,d=i;do{var u=d.lane;if((ho&u)===u)c!==null&&(c=c.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),r=d.hasEagerState?d.eagerState:e(r,d.action);else{var h={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};c===null?(l=c=h,a=r):c=c.next=h,ft.lanes|=u,po|=u}d=d.next}while(d!==null&&d!==i);c===null?a=r:c.next=l,Ir(r,t.memoizedState)||(Ln=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){s=e;do i=s.lane,ft.lanes|=i,po|=i,s=s.next;while(s!==e)}else s===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Yp(e){var t=gr(),n=t.queue;if(n===null)throw Error($(311));n.lastRenderedReducer=e;var r=n.dispatch,s=n.pending,i=t.memoizedState;if(s!==null){n.pending=null;var a=s=s.next;do i=e(i,a.action),a=a.next;while(a!==s);Ir(i,t.memoizedState)||(Ln=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Zk(){}function Xk(e,t){var n=ft,r=gr(),s=t(),i=!Ir(r.memoizedState,s);if(i&&(r.memoizedState=s,Ln=!0),r=r.queue,Fy(n_.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||qt!==null&&qt.memoizedState.tag&1){if(n.flags|=2048,bc(9,t_.bind(null,n,r,s,t),void 0,null),Vt===null)throw Error($(349));ho&30||e_(n,t,s)}return s}function e_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ft.updateQueue,t===null?(t={lastEffect:null,stores:null},ft.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function t_(e,t,n,r){t.value=n,t.getSnapshot=r,r_(t)&&s_(e)}function n_(e,t,n){return n(function(){r_(t)&&s_(e)})}function r_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ir(e,n)}catch{return!0}}function s_(e){var t=As(e,1);t!==null&&Or(t,e,1,-1)}function rv(e){var t=Hr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:yc,lastRenderedState:e},t.queue=e,e=e.dispatch=jA.bind(null,ft,e),[t.memoizedState,e]}function bc(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ft.updateQueue,t===null?(t={lastEffect:null,stores:null},ft.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function i_(){return gr().memoizedState}function su(e,t,n,r){var s=Hr();ft.flags|=e,s.memoizedState=bc(1|t,n,void 0,r===void 0?null:r)}function zh(e,t,n,r){var s=gr();r=r===void 0?null:r;var i=void 0;if(zt!==null){var a=zt.memoizedState;if(i=a.destroy,r!==null&&Ty(r,a.deps)){s.memoizedState=bc(t,n,i,r);return}}ft.flags|=e,s.memoizedState=bc(1|t,n,i,r)}function sv(e,t){return su(8390656,8,e,t)}function Fy(e,t){return zh(2048,8,e,t)}function o_(e,t){return zh(4,2,e,t)}function a_(e,t){return zh(4,4,e,t)}function l_(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function c_(e,t,n){return n=n!=null?n.concat([e]):null,zh(4,4,l_.bind(null,t,e),n)}function Py(){}function d_(e,t){var n=gr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ty(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function u_(e,t){var n=gr();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ty(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function h_(e,t,n){return ho&21?(Ir(n,t)||(n=yk(),ft.lanes|=n,po|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ln=!0),e.memoizedState=n)}function CA(e,t){var n=Ye;Ye=n!==0&&4>n?n:4,e(!0);var r=Kp.transition;Kp.transition={};try{e(!1),t()}finally{Ye=n,Kp.transition=r}}function p_(){return gr().memoizedState}function EA(e,t,n){var r=bi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},f_(e))m_(t,n);else if(n=Jk(e,t,n,r),n!==null){var s=xn();Or(n,e,r,s),g_(n,t,r)}}function jA(e,t,n){var r=bi(e),s={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(f_(e))m_(t,s);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,l=i(a,n);if(s.hasEagerState=!0,s.eagerState=l,Ir(l,a)){var c=t.interleaved;c===null?(s.next=s,_y(t)):(s.next=c.next,c.next=s),t.interleaved=s;return}}catch{}finally{}n=Jk(e,t,s,r),n!==null&&(s=xn(),Or(n,e,r,s),g_(n,t,r))}}function f_(e){var t=e.alternate;return e===ft||t!==null&&t===ft}function m_(e,t){Gl=Du=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function g_(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,cy(e,n)}}var zu={readContext:mr,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useInsertionEffect:rn,useLayoutEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useMutableSource:rn,useSyncExternalStore:rn,useId:rn,unstable_isNewReconciler:!1},TA={readContext:mr,useCallback:function(e,t){return Hr().memoizedState=[e,t===void 0?null:t],e},useContext:mr,useEffect:sv,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,su(4194308,4,l_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return su(4194308,4,e,t)},useInsertionEffect:function(e,t){return su(4,2,e,t)},useMemo:function(e,t){var n=Hr();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hr();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=EA.bind(null,ft,e),[r.memoizedState,e]},useRef:function(e){var t=Hr();return e={current:e},t.memoizedState=e},useState:rv,useDebugValue:Py,useDeferredValue:function(e){return Hr().memoizedState=e},useTransition:function(){var e=rv(!1),t=e[0];return e=CA.bind(null,e[1]),Hr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ft,s=Hr();if(dt){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Vt===null)throw Error($(349));ho&30||e_(r,t,n)}s.memoizedState=n;var i={value:n,getSnapshot:t};return s.queue=i,sv(n_.bind(null,r,i,e),[e]),r.flags|=2048,bc(9,t_.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Hr(),t=Vt.identifierPrefix;if(dt){var n=Ss,r=_s;n=(r&~(1<<32-Rr(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=gc++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=SA++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},AA={readContext:mr,useCallback:d_,useContext:mr,useEffect:Fy,useImperativeHandle:c_,useInsertionEffect:o_,useLayoutEffect:a_,useMemo:u_,useReducer:Jp,useRef:i_,useState:function(){return Jp(yc)},useDebugValue:Py,useDeferredValue:function(e){var t=gr();return h_(t,zt.memoizedState,e)},useTransition:function(){var e=Jp(yc)[0],t=gr().memoizedState;return[e,t]},useMutableSource:Zk,useSyncExternalStore:Xk,useId:p_,unstable_isNewReconciler:!1},NA={readContext:mr,useCallback:d_,useContext:mr,useEffect:Fy,useImperativeHandle:c_,useInsertionEffect:o_,useLayoutEffect:a_,useMemo:u_,useReducer:Yp,useRef:i_,useState:function(){return Yp(yc)},useDebugValue:Py,useDeferredValue:function(e){var t=gr();return zt===null?t.memoizedState=e:h_(t,zt.memoizedState,e)},useTransition:function(){var e=Yp(yc)[0],t=gr().memoizedState;return[e,t]},useMutableSource:Zk,useSyncExternalStore:Xk,useId:p_,unstable_isNewReconciler:!1};function _r(e,t){if(e&&e.defaultProps){t=gt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function jm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:gt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Bh={isMounted:function(e){return(e=e._reactInternals)?So(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xn(),s=bi(e),i=Es(r,s);i.payload=t,n!=null&&(i.callback=n),t=gi(e,i,s),t!==null&&(Or(t,e,s,r),nu(t,e,s))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xn(),s=bi(e),i=Es(r,s);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=gi(e,i,s),t!==null&&(Or(t,e,s,r),nu(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xn(),r=bi(e),s=Es(n,r);s.tag=2,t!=null&&(s.callback=t),t=gi(e,s,r),t!==null&&(Or(t,e,r,n),nu(t,e,r))}};function iv(e,t,n,r,s,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!dc(n,r)||!dc(s,i):!0}function y_(e,t,n){var r=!1,s=Ci,i=t.contextType;return typeof i=="object"&&i!==null?i=mr(i):(s=zn(t)?co:dn.current,r=t.contextTypes,i=(r=r!=null)?La(e,s):Ci),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Bh,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=s,e.__reactInternalMemoizedMaskedChildContext=i),t}function ov(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Bh.enqueueReplaceState(t,t.state,null)}function Tm(e,t,n,r){var s=e.stateNode;s.props=n,s.state=e.memoizedState,s.refs={},Sy(e);var i=t.contextType;typeof i=="object"&&i!==null?s.context=mr(i):(i=zn(t)?co:dn.current,s.context=La(e,i)),s.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(jm(e,t,i,n),s.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(t=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),t!==s.state&&Bh.enqueueReplaceState(s,s.state,null),Iu(e,n,s,r),s.state=e.memoizedState),typeof s.componentDidMount=="function"&&(e.flags|=4194308)}function Wa(e,t){try{var n="",r=t;do n+=sT(r),r=r.return;while(r);var s=n}catch(i){s=` 39Error generating stack: `+i.message+` 40`+i.stack}return{value:e,source:t,stack:s,digest:null}}function Qp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Am(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var FA=typeof WeakMap=="function"?WeakMap:Map;function b_(e,t,n){n=Es(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wu||(Wu=!0,zm=r),Am(e,t)},n}function v_(e,t,n){n=Es(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var s=t.value;n.payload=function(){return r(s)},n.callback=function(){Am(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Am(e,t),typeof r!="function"&&(yi===null?yi=new Set([this]):yi.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function av(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new FA;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(n)||(s.add(n),e=qA.bind(null,e,t,n),t.then(e,e))}function lv(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}
vendor: 4,569 bytes, line 40
40function cv(e,t,n,r,s){return e.mode&1?(e.flags|=65536,e.lanes=s,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Es(-1,1),t.tag=2,gi(n,t,1))),n.lanes|=1),e)}var PA=Ms.ReactCurrentOwner,Ln=!1;function yn(e,t,n,r){t.child=e===null?Kk(t,null,n,r):za(t,e.child,n,r)}function dv(e,t,n,r,s){n=n.render;var i=t.ref;return da(t,s),r=Ay(e,t,n,r,i,s),n=Ny(),e!==null&&!Ln?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ns(e,t,s)):(dt&&n&&yy(t),t.flags|=1,yn(e,t,r,s),t.child)}function uv(e,t,n,r,s){if(e===null){var i=n.type;return typeof i=="function"&&!By(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,x_(e,t,i,r,s)):(e=lu(n.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&s)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:dc,n(a,r)&&e.ref===t.ref)return Ns(e,t,s)}return t.flags|=1,e=vi(i,r),e.ref=t.ref,e.return=t,t.child=e}function x_(e,t,n,r,s){if(e!==null){var i=e.memoizedProps;if(dc(i,r)&&e.ref===t.ref)if(Ln=!1,t.pendingProps=r=i,(e.lanes&s)!==0)e.flags&131072&&(Ln=!0);else return t.lanes=e.lanes,Ns(e,t,s)}return Nm(e,t,n,r,s)}function w_(e,t,n){var r=t.pendingProps,s=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt(ia,qn),qn|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,rt(ia,qn),qn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,rt(ia,qn),qn|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,rt(ia,qn),qn|=r;return yn(e,t,s,n),t.child}function k_(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Nm(e,t,n,r,s){var i=zn(n)?co:dn.current;return i=La(t,i),da(t,s),n=Ay(e,t,n,r,i,s),r=Ny(),e!==null&&!Ln?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Ns(e,t,s)):(dt&&r&&yy(t),t.flags|=1,yn(e,t,n,s),t.child)}function hv(e,t,n,r,s){if(zn(n)){var i=!0;Fu(t)}else i=!1;if(da(t,s),t.stateNode===null)iu(e,t),y_(t,n,r),Tm(t,n,r,s),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var c=a.context,d=n.contextType;typeof d=="object"&&d!==null?d=mr(d):(d=zn(n)?co:dn.current,d=La(t,d));var u=n.getDerivedStateFromProps,h=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||c!==d)&&ov(t,a,r,d),Ks=!1;var f=t.memoizedState;a.state=f,Iu(t,r,a,s),c=t.memoizedState,l!==r||f!==c||Dn.current||Ks?(typeof u=="function"&&(jm(t,n,u,r),c=t.memoizedState),(l=Ks||iv(t,n,l,r,f,c,d))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),a.props=r,a.state=c,a.context=d,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Yk(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:_r(t.type,l),a.props=d,h=t.pendingProps,f=a.context,c=n.contextType,typeof c=="object"&&c!==null?c=mr(c):(c=zn(n)?co:dn.current,c=La(t,c));var p=n.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==h||f!==c)&&ov(t,a,r,c),Ks=!1,f=t.memoizedState,a.state=f,Iu(t,r,a,s);var v=t.memoizedState;l!==h||f!==v||Dn.current||Ks?(typeof p=="function"&&(jm(t,n,p,r),v=t.memoizedState),(d=Ks||iv(t,n,d,r,f,v,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,c)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.
vendor: 7,710 bytes, line 40
40context=c,r=d):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Fm(e,t,n,r,i,s)}function Fm(e,t,n,r,s,i){k_(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return s&&Qb(t,n,!1),Ns(e,t,i);r=t.stateNode,PA.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=za(t,e.child,null,i),t.child=za(t,null,l,i)):yn(e,t,l,i),t.memoizedState=r.state,s&&Qb(t,n,!0),t.child}function __(e){var t=e.stateNode;t.pendingContext?Yb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Yb(e,t.context,!1),Cy(e,t.containerInfo)}function pv(e,t,n,r,s){return Da(),vy(s),t.flags|=256,yn(e,t,n,r),t.child}var Pm={dehydrated:null,treeContext:null,retryLane:0};function Rm(e){return{baseLanes:e,cachePool:null,transitions:null}}function S_(e,t,n){var r=t.pendingProps,s=ht.current,i=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(s&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(s|=1),rt(ht,s&1),e===null)return Cm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=$h(a,r,0,null),e=ao(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Rm(n),t.memoizedState=Pm,e):Ry(t,a));if(s=e.memoizedState,s!==null&&(l=s.dehydrated,l!==null))return RA(e,t,a,r,l,s,n);if(i){i=r.fallback,a=t.mode,s=e.child,l=s.sibling;var c={mode:"hidden",children:r.children};return!(a&1)&&t.child!==s?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=vi(s,c),r.subtreeFlags=s.subtreeFlags&14680064),l!==null?i=vi(l,i):(i=ao(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?Rm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=Pm,r}return i=e.child,e=i.sibling,r=vi(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Ry(e,t){return t=$h({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jd(e,t,n,r){return r!==null&&vy(r),za(t,e.child,null,n),e=Ry(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function RA(e,t,n,r,s,i,a){if(n)return t.flags&256?(t.flags&=-257,r=Qp(Error($(422))),jd(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,s=t.mode,r=$h({mode:"visible",children:r.children},s,0,null),i=ao(i,s,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&za(t,e.child,null,a),t.child.memoizedState=Rm(a),t.memoizedState=Pm,i);if(!(t.mode&1))return jd(e,t,a,null);if(s.data==="$!"){if(r=s.nextSibling&&s.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error($(419)),r=Qp(i,r,void 0),jd(e,t,a,r)}if(l=(a&e.childLanes)!==0,Ln||l){if(r=Vt,r!==null){switch(a&-a){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}s=s&(r.suspendedLanes|a)?0:s,s!==0&&s!==i.retryLane&&(i.retryLane=s,As(e,s),Or(r,e,s,-1))}return zy(),r=Qp(Error($(421))),jd(e,t,a,r)}return s.data==="$?"?(t.flags|=128,t.child=e.child,t=VA.bind(null,e),s._reactRetry=t,null):(e=i.treeContext,Jn=mi(s.nextSibling),Yn=t,dt=!0,Tr=null,e!==null&&(dr[ur++]=_s,dr[ur++]=Ss,dr[ur++]=uo,_s=e.id,Ss=e.overflow,uo=t),t=Ry(t,r.children),t.flags|=4096,t)}function fv(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Em(e.return,t,n)}function Zp(e,t,n,r,s){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:s}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=s)}function C_(e,t,n){var r=t.pendingProps,s=r.revealOrder,i=r.tail;if(yn(e,t,r.children,n),r=ht.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fv(e,n,t);else if(e.tag===19)fv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(rt(ht,r),!(t.mode&1))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&Lu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Zp(t,!1,s,n,i);break;case"backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Lu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Zp(t,!0,n,null,i);break;case"together":Zp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function iu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ns(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),po|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=vi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=vi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function OA(e,t,n){switch(t.tag){case 3:__(t),Da();break;case 5:Qk(t);break;case 1:zn(t.type)&&Fu(t);break;case 4:Cy(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,s=t.memoizedProps.value;rt(Ou,r._currentValue),r._currentValue=s;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(rt(ht,ht.current&1),t.flags|=128,null):n&t.child.childLanes?S_(e,t,n):(rt(ht,ht.current&1),e=Ns(e,t,n),e!==null?e.sibling:null);rt(ht,ht.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return C_(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),rt(ht,ht.current),r)break;return null;case 22:case 23:return t.lanes=0,w_(e,t,n)}return Ns(e,t,n)}var E_,Om,j_,T_;E_=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Om=function(){};j_=function(e,t,n,r){var s=e.memoizedProps;if(s!==r){e=t.stateNode,qi(Zr.current);var i=null;switch(n){case"input":s=nm(e,s),r=nm(e,r),i=[];break;case"select":s=gt({},s,{value:void 0}),r=gt({},r,{value:void 0}),i=[];break;case"textarea":s=im(e,s),r=im(e,r),i=[];break;default:typeof s.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Au)}am(n,r);var a;n=null;for(d in s)if(!r.hasOwnProperty(d)&&s.hasOwnProperty(d)&&s[d]!=null)if(d==="style"){var l=s[d];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(rc.hasOwnProperty(d)?i||(i=[]):(i=i||[]).push(d,null));for(d in r){var c=r[d];if(l=s!=null?s[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}
vendor: 5,029 bytes, line 40
40else n||(i||(i=[]),i.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(i=i||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(rc.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&at("scroll",e),i||l===c||(i=[])):(i=i||[]).push(d,c))}n&&(i=i||[]).push("style",n);var d=i;(t.updateQueue=d)&&(t.flags|=4)}};T_=function(e,t,n,r){n!==r&&(t.flags|=4)};function yl(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function sn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags&14680064,r|=s.flags&14680064,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function MA(e,t,n){var r=t.pendingProps;switch(by(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return sn(t),null;case 1:return zn(t.type)&&Nu(),sn(t),null;case 3:return r=t.stateNode,Ba(),lt(Dn),lt(dn),jy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Cd(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Tr!==null&&(Hm(Tr),Tr=null))),Om(e,t),sn(t),null;case 5:Ey(t);var s=qi(mc.current);if(n=t.type,e!==null&&t.stateNode!=null)j_(e,t,n,r,s),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return sn(t),null}if(e=qi(Zr.current),Cd(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Kr]=t,r[pc]=i,e=(t.mode&1)!==0,n){case"dialog":at("cancel",r),at("close",r);break;case"iframe":case"object":case"embed":at("load",r);break;case"video":case"audio":for(s=0;s<Ol.length;s++)at(Ol[s],r);break;case"source":at("error",r);break;case"img":case"image":case"link":at("error",r),at("load",r);break;case"details":at("toggle",r);break;case"input":_b(r,i),at("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},at("invalid",r);break;case"textarea":Cb(r,i),at("invalid",r)}am(n,i),s=null;for(var a in i)if(i.hasOwnProperty(a)){var l=i[a];a==="children"?typeof l=="string"?r.textContent!==l&&(i.suppressHydrationWarning!==!0&&Sd(r.textContent,l,e),s=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(i.suppressHydrationWarning!==!0&&Sd(r.textContent,l,e),s=["children",""+l]):rc.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&at("scroll",r)}switch(n){case"input":gd(r),Sb(r,i,!0);break;case"textarea":gd(r),Eb(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Au)}r=s,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=s.nodeType===9?s:s.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=nk(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Kr]=t,e[pc]=r,E_(e,t,!1,!1),t.stateNode=e;e:{switch(a=lm(n,r),n){case"dialog":at("cancel",e),at("close",e),s=r;break;case"iframe":case"object":case"embed":at("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ol.length;s++)at(Ol[s],e);s=r;break;case"source":at("error",e),s=r;break;case"img":case"image":case"link":at("error",e),at("load",e),s=r;break;case"details":at("toggle",e),s=r;break;case"input":_b(e,r),s=nm(e,r),at("invalid",e);break;case"option":s=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=gt({},r,{value:void 0}),at("invalid",e);break;case"textarea":Cb(e,r),s=im(e,r),at("invalid",e);break;default:s=r}am(n,s),l=s;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];i==="style"?ik(e,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&rk(e,c)):i==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&sc(e,c):typeof c=="number"&&sc(e,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(rc.hasOwnProperty(i)?c!=null&&i==="onScroll"&&at("scroll",e):c!=null&&ry(e,i,c,a))}switch(n){case"input":gd(e),Sb(e,r,!1);break;case"textarea":gd(e),Eb(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Si(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?oa(e,!!r.multiple,i,!1):r.defaultValue!=null&&oa(e,!!r.multiple,r.defaultValue,!0);break;default:typeof s.onClick=="function"&&(e.onclick=Au)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}
vendor: 26,462 bytes, line 40
40return sn(t),null;case 6:if(e&&t.stateNode!=null)T_(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($(166));if(n=qi(mc.current),qi(Zr.current),Cd(t)){if(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,(i=r.nodeValue!==n)&&(e=Yn,e!==null))switch(e.tag){case 3:Sd(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Sd(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Kr]=t,t.stateNode=r}return sn(t),null;case 13:if(lt(ht),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dt&&Jn!==null&&t.mode&1&&!(t.flags&128))Vk(),Da(),t.flags|=98560,i=!1;else if(i=Cd(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error($(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error($(317));i[Kr]=t}else Da(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;sn(t),i=!1}else Tr!==null&&(Hm(Tr),Tr=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ht.current&1?Bt===0&&(Bt=3):zy())),t.updateQueue!==null&&(t.flags|=4),sn(t),null);case 4:return Ba(),Om(e,t),e===null&&uc(t.stateNode.containerInfo),sn(t),null;case 10:return ky(t.type._context),sn(t),null;case 17:return zn(t.type)&&Nu(),sn(t),null;case 19:if(lt(ht),i=t.memoizedState,i===null)return sn(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)yl(i,!1);else{if(Bt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Lu(e),a!==null){for(t.flags|=128,yl(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return rt(ht,ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&Et()>Ha&&(t.flags|=128,r=!0,yl(i,!1),t.lanes=4194304)}else{if(!r)if(e=Lu(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!dt)return sn(t),null}else 2*Et()-i.renderingStartTime>Ha&&n!==1073741824&&(t.flags|=128,r=!0,yl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Et(),t.sibling=null,n=ht.current,rt(ht,r?n&1|2:n&1),t):(sn(t),null);case 22:case 23:return Dy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?qn&1073741824&&(sn(t),t.subtreeFlags&6&&(t.flags|=8192)):sn(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function IA(e,t){switch(by(t),t.tag){case 1:return zn(t.type)&&Nu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(),lt(Dn),lt(dn),jy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ey(t),null;case 13:if(lt(ht),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return lt(ht),null;case 4:return Ba(),null;case 10:return ky(t.type._context),null;case 22:case 23:return Dy(),null;case 24:return null;default:return null}}var Td=!1,cn=!1,LA=typeof WeakSet=="function"?WeakSet:Set,le=null;function sa(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){kt(e,t,r)}else n.current=null}function Mm(e,t,n){try{n()}catch(r){kt(e,t,r)}}var mv=!1;function DA(e,t){if(bm=Eu,e=Rk(),gy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var s=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,l=-1,c=-1,d=0,u=0,h=e,f=null;t:for(;;){for(var p;h!==n||s!==0&&h.nodeType!==3||(l=a+s),h!==i||r!==0&&h.nodeType!==3||(c=a+r),h.nodeType===3&&(a+=h.nodeValue.length),(p=h.firstChild)!==null;)f=h,h=p;for(;;){if(h===e)break t;if(f===n&&++d===s&&(l=a),f===i&&++u===r&&(c=a),(p=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=p}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(vm={focusedElem:e,selectionRange:n},Eu=!1,le=t;le!==null;)if(t=le,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,le=e;else for(;le!==null;){t=le;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,x=v.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:_r(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(k){kt(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,le=e;break}le=t.return}return v=mv,mv=!1,v}function Kl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var s=r=r.next;do{if((s.tag&e)===e){var i=s.destroy;s.destroy=void 0,i!==void 0&&Mm(t,n,i)}s=s.next}while(s!==r)}}function Wh(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Im(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function A_(e){var t=e.alternate;t!==null&&(e.alternate=null,A_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kr],delete t[pc],delete t[km],delete t[xA],delete t[wA])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function N_(e){return e.tag===5||e.tag===3||e.tag===4}function gv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||N_(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Lm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Au));else if(r!==4&&(e=e.child,e!==null))for(Lm(e,t,n),e=e.sibling;e!==null;)Lm(e,t,n),e=e.sibling}function Dm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Dm(e,t,n),e=e.sibling;e!==null;)Dm(e,t,n),e=e.sibling}var Yt=null,jr=!1;function Bs(e,t,n){for(n=n.child;n!==null;)F_(e,t,n),n=n.sibling}function F_(e,t,n){if(Qr&&typeof Qr.onCommitFiberUnmount=="function")try{Qr.onCommitFiberUnmount(Rh,n)}catch{}switch(n.tag){case 5:cn||sa(n,t);case 6:var r=Yt,s=jr;Yt=null,Bs(e,t,n),Yt=r,jr=s,Yt!==null&&(jr?(e=Yt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Yt.removeChild(n.stateNode));break;case 18:Yt!==null&&(jr?(e=Yt,n=n.stateNode,e.nodeType===8?qp(e.parentNode,n):e.nodeType===1&&qp(e,n),lc(e)):qp(Yt,n.stateNode));break;case 4:r=Yt,s=jr,Yt=n.stateNode.containerInfo,jr=!0,Bs(e,t,n),Yt=r,jr=s;break;case 0:case 11:case 14:case 15:if(!cn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){s=r=r.next;do{var i=s,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Mm(n,t,a),s=s.next}while(s!==r)}Bs(e,t,n);break;case 1:if(!cn&&(sa(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){kt(n,t,l)}Bs(e,t,n);break;case 21:Bs(e,t,n);break;case 22:n.mode&1?(cn=(r=cn)||n.memoizedState!==null,Bs(e,t,n),cn=r):Bs(e,t,n);break;default:Bs(e,t,n)}}function yv(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new LA),t.forEach(function(r){var s=GA.bind(null,e,r);n.has(r)||(n.add(r),r.then(s,s))})}}function xr(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var s=n[r];try{var i=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:Yt=l.stateNode,jr=!1;break e;case 3:Yt=l.stateNode.containerInfo,jr=!0;break e;case 4:Yt=l.stateNode.containerInfo,jr=!0;break e}l=l.return}if(Yt===null)throw Error($(160));F_(i,a,s),Yt=null,jr=!1;var c=s.alternate;c!==null&&(c.return=null),s.return=null}catch(d){kt(s,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)P_(t,e),t=t.sibling}function P_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xr(t,e),Wr(e),r&4){try{Kl(3,e,e.return),Wh(3,e)}catch(y){kt(e,e.return,y)}try{Kl(5,e,e.return)}catch(y){kt(e,e.return,y)}}break;case 1:xr(t,e),Wr(e),r&512&&n!==null&&sa(n,n.return);break;case 5:if(xr(t,e),Wr(e),r&512&&n!==null&&sa(n,n.return),e.flags&32){var s=e.stateNode;try{sc(s,"")}catch(y){kt(e,e.return,y)}}if(r&4&&(s=e.stateNode,s!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&i.type==="radio"&&i.name!=null&&ek(s,i),lm(l,a);var d=lm(l,i);for(a=0;a<c.length;a+=2){var u=c[a],h=c[a+1];u==="style"?ik(s,h):u==="dangerouslySetInnerHTML"?rk(s,h):u==="children"?sc(s,h):ry(s,u,h,d)}switch(l){case"input":rm(s,i);break;case"textarea":tk(s,i);break;case"select":var f=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?oa(s,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?oa(s,!!i.multiple,i.defaultValue,!0):oa(s,!!i.multiple,i.multiple?[]:"",!1))}s[pc]=i}catch(y){kt(e,e.return,y)}}break;case 6:if(xr(t,e),Wr(e),r&4){if(e.stateNode===null)throw Error($(162));s=e.stateNode,i=e.memoizedProps;try{s.nodeValue=i}catch(y){kt(e,e.return,y)}}break;case 3:if(xr(t,e),Wr(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lc(t.containerInfo)}catch(y){kt(e,e.return,y)}break;case 4:xr(t,e),Wr(e);break;case 13:xr(t,e),Wr(e),s=e.child,s.flags&8192&&(i=s.memoizedState!==null,s.stateNode.isHidden=i,!i||s.alternate!==null&&s.alternate.memoizedState!==null||(Iy=Et())),r&4&&yv(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,e.mode&1?(cn=(d=cn)||u,xr(t,e),cn=d):xr(t,e),Wr(e),r&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&e.mode&1)for(le=e,u=e.child;u!==null;){for(h=le=u;le!==null;){switch(f=le,p=f.child,f.tag){case 0:case 11:case 14:case 15:Kl(4,f,f.return);break;case 1:sa(f,f.return);var v=f.stateNode;if(typeof v.componentWillUnmount=="function"){r=f,n=f.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){kt(r,n,y)}}break;case 5:sa(f,f.return);break;case 22:if(f.memoizedState!==null){vv(h);continue}}p!==null?(p.return=f,le=p):vv(h)}u=u.sibling}e:for(u=null,h=e;;){if(h.tag===5){if(u===null){u=h;try{s=h.stateNode,d?(i=s.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(l=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=sk("display",a))}catch(y){kt(e,e.return,y)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=d?"":h.memoizedProps}catch(y){kt(e,e.return,y)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;h.sibling===null;){if(h.return===null||h.return===e)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:xr(t,e),Wr(e),r&4&&yv(e);break;case 21:break;default:xr(t,e),Wr(e)}}function Wr(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(N_(n)){var r=n;break e}n=n.return}throw Error($(160))}switch(r.tag){case 5:var s=r.stateNode;r.flags&32&&(sc(s,""),r.flags&=-33);var i=gv(e);Dm(e,i,s);break;case 3:case 4:var a=r.stateNode.containerInfo,l=gv(e);Lm(e,l,a);break;default:throw Error($(161))}}catch(c){kt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zA(e,t,n){le=e,R_(e)}function R_(e,t,n){for(var r=(e.mode&1)!==0;le!==null;){var s=le,i=s.child;if(s.tag===22&&r){var a=s.memoizedState!==null||Td;if(!a){var l=s.alternate,c=l!==null&&l.memoizedState!==null||cn;l=Td;var d=cn;if(Td=a,(cn=c)&&!d)for(le=s;le!==null;)a=le,c=a.child,a.tag===22&&a.memoizedState!==null?xv(s):c!==null?(c.return=a,le=c):xv(s);for(;i!==null;)le=i,R_(i),i=i.sibling;le=s,Td=l,cn=d}bv(e)}else s.subtreeFlags&8772&&i!==null?(i.return=s,le=i):bv(e)}}function bv(e){for(;le!==null;){var t=le;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:cn||Wh(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!cn)if(n===null)r.componentDidMount();else{var s=t.elementType===t.type?n.memoizedProps:_r(t.type,n.memoizedProps);r.componentDidUpdate(s,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&nv(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nv(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&lc(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($(163))}cn||t.flags&512&&Im(t)}catch(f){kt(t,t.return,f)}}if(t===e){le=null;break}if(n=t.sibling,n!==null){n.return=t.return,le=n;break}le=t.return}}function vv(e){for(;le!==null;){var t=le;if(t===e){le=null;break}var n=t.sibling;if(n!==null){n.return=t.return,le=n;break}le=t.return}}function xv(e){for(;le!==null;){var t=le;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Wh(4,t)}catch(c){kt(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var s=t.return;try{r.componentDidMount()}catch(c){kt(t,s,c)}}var i=t.return;try{Im(t)}catch(c){kt(t,i,c)}break;case 5:var a=t.return;try{Im(t)}catch(c){kt(t,a,c)}}}catch(c){kt(t,t.return,c)}if(t===e){le=null;break}var l=t.sibling;if(l!==null){l.return=t.return,le=l;break}le=t.return}}var BA=Math.ceil,Bu=Ms.ReactCurrentDispatcher,Oy=Ms.ReactCurrentOwner,fr=Ms.ReactCurrentBatchConfig,We=0,Vt=null,Ft=null,Zt=0,qn=0,ia=Ri(0),Bt=0,vc=null,po=0,Hh=0,My=0,Jl=null,Mn=null,Iy=0,Ha=1/0,ps=null,Wu=!1,zm=null,yi=null,Ad=!1,ci=null,Hu=0,Yl=0,Bm=null,ou=-1,au=0;function xn(){return We&6?Et():ou!==-1?ou:ou=Et()}function bi(e){return e.mode&1?We&2&&Zt!==0?Zt&-Zt:_A.transition!==null?(au===0&&(au=yk()),au):(e=Ye,e!==0||(e=window.event,e=e===void 0?16:Sk(e.type)),e):1}function Or(e,t,n,r){if(50<Yl)throw Yl=0,Bm=null,Error($(185));Vc(e,n,r),(!(We&2)||e!==Vt)&&(e===Vt&&(!(We&2)&&(Hh|=n),Bt===4&&Qs(e,Zt)),Bn(e,r),n===1&&We===0&&!(t.mode&1)&&(Ha=Et()+500,Dh&&Oi()))}function Bn(e,t){var n=e.callbackNode;_T(e,t);var r=Cu(e,e===Vt?Zt:0);if(r===0)n!==null&&Ab(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ab(n),t===1)e.tag===0?kA(wv.bind(null,e)):$k(wv.bind(null,e)),bA(function(){!(We&6)&&Oi()}),n=null;else{switch(bk(r)){case 1:n=ly;break;case 4:n=mk;break;case 16:n=Su;break;case 536870912:n=gk;break;default:n=Su}n=W_(n,O_.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function O_(e,t){if(ou=-1,au=0,We&6)throw Error($(327));var n=e.callbackNode;if(ua()&&e.callbackNode!==n)return null;var r=Cu(e,e===Vt?Zt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=$u(e,r);else{t=r;var s=We;We|=2;var i=I_();(Vt!==e||Zt!==t)&&(ps=null,Ha=Et()+500,oo(e,t));do try{$A();break}catch(l){M_(e,l)}while(!0);wy(),Bu.current=i,We=s,Ft!==null?t=0:(Vt=null,Zt=0,t=Bt)}if(t!==0){if(t===2&&(s=pm(e),s!==0&&(r=s,t=Wm(e,s))),t===1)throw n=vc,oo(e,0),Qs(e,r),Bn(e,Et()),n;if(t===6)Qs(e,r);else{if(s=e.current.alternate,!(r&30)&&!WA(s)&&(t=$u(e,r),t===2&&(i=pm(e),i!==0&&(r=i,t=Wm(e,i))),t===1))throw n=vc,oo(e,0),Qs(e,r),Bn(e,Et()),n;switch(e.finishedWork=s,e.finishedLanes=r,t){case 0:case 1:throw Error($(345));case 2:zi(e,Mn,ps);break;case 3:if(Qs(e,r),(r&130023424)===r&&(t=Iy+500-Et(),10<t)){if(Cu(e,0)!==0)break;if(s=e.suspendedLanes,(s&r)!==r){xn(),e.pingedLanes|=e.suspendedLanes&s;break}e.timeoutHandle=wm(zi.bind(null,e,Mn,ps),t);break}zi(e,Mn,ps);break;case 4:if(Qs(e,r),(r&4194240)===r)break;for(t=e.eventTimes,s=-1;0<r;){var a=31-Rr(r);i=1<<a,a=t[a],a>s&&(s=a),r&=~i}if(r=s,r=Et()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*BA(r/1960))-r,10<r){e.timeoutHandle=wm(zi.bind(null,e,Mn,ps),r);break}zi(e,Mn,ps);break;case 5:zi(e,Mn,ps);break;default:throw Error($(329))}}}return Bn(e,Et()),e.callbackNode===n?O_.bind(null,e):null}function Wm(e,t){var n=Jl;return e.current.memoizedState.isDehydrated&&(oo(e,t).flags|=256),e=$u(e,t),e!==2&&(t=Mn,Mn=n,t!==null&&Hm(t)),e}function Hm(e){Mn===null?Mn=e:Mn.push.apply(Mn,e)}function WA(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var s=n[r],i=s.getSnapshot;s=s.value;try{if(!Ir(i(),s))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qs(e,t){for(t&=~My,t&=~Hh,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Rr(t),r=1<<n;e[n]=-1,t&=~r}}function wv(e){if(We&6)throw Error($(327));ua();var t=Cu(e,0);if(!(t&1))return Bn(e,Et()),null;var n=$u(e,t);if(e.tag!==0&&n===2){var r=pm(e);r!==0&&(t=r,n=Wm(e,r))}if(n===1)throw n=vc,oo(e,0),Qs(e,t),Bn(e,Et()),n;if(n===6)throw Error($(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zi(e,Mn,ps),Bn(e,Et()),null}function Ly(e,t){var n=We;We|=1;try{return e(t)}finally{We=n,We===0&&(Ha=Et()+500,Dh&&Oi())}}function fo(e){ci!==null&&ci.tag===0&&!(We&6)&&ua();var t=We;We|=1;var n=fr.transition,r=Ye;try{if(fr.transition=null,Ye=1,e)return e()}finally{Ye=r,fr.transition=n,We=t,!(We&6)&&Oi()}}function Dy(){qn=ia.current,lt(ia)}function oo(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yA(n)),Ft!==null)for(n=Ft.return;n!==null;){var r=n;switch(by(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Nu();break;case 3:Ba(),lt(Dn),lt(dn),jy();break;case 5:Ey(r);break;case 4:Ba();break;case 13:lt(ht);break;case 19:lt(ht);break;case 10:ky(r.type._context);break;case 22:case 23:Dy()}n=n.return}if(Vt=e,Ft=e=vi(e.current,null),Zt=qn=t,Bt=0,vc=null,My=Hh=po=0,Mn=Jl=null,Ui!==null){for(t=0;t<Ui.length;t++)if(n=Ui[t],r=n.interleaved,r!==null){n.interleaved=null;var s=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=s,r.next=a}n.pending=r}Ui=null}return e}function M_(e,t){do{var n=Ft;try{if(wy(),ru.current=zu,Du){for(var r=ft.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Du=!1}if(ho=0,qt=zt=ft=null,Gl=!1,gc=0,Oy.current=null,n===null||n.return===null){Bt=1,vc=t,Ft=null;break}e:{var i=e,a=n.return,l=n,c=t;if(t=Zt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=c,u=l,h=u.tag;if(!(u.mode&1)&&(h===0||h===11||h===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=lv(a);if(p!==null){p.flags&=-257,cv(p,a,l,i,t),p.mode&1&&av(i,d,t),t=p,c=d;var v=t.updateQueue;if(v===null){var y=new Set;y.add(c),t.updateQueue=y}else v.add(c);break e}else{if(!(t&1)){av(i,d,t),zy();break e}c=Error($(426))}}else if(dt&&l.mode&1){var x=lv(a);if(x!==null){!(x.flags&65536)&&(x.flags|=256),cv(x,a,l,i,t),vy(Wa(c,l));break e}}i=c=Wa(c,l),Bt!==4&&(Bt=2),Jl===null?Jl=[i]:Jl.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var g=b_(i,c,t);tv(i,g);break e;case 1:l=c;var m=i.type,b=i.stateNode;if(!(i.flags&128)&&(typeof m.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(yi===null||!yi.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t;var k=v_(i,l,t);tv(i,k);break e}}i=i.return}while(i!==null)}D_(n)}catch(S){t=S,Ft===n&&n!==null&&(Ft=n=n.return);continue}break}while(!0)}function I_(){var e=Bu.current;return Bu.current=zu,e===null?zu:e}function zy(){(Bt===0||Bt===3||Bt===2)&&(Bt=4),Vt===null||!(po&268435455)&&!(Hh&268435455)||Qs(Vt,Zt)}function $u(e,t){var n=We;We|=2;var r=I_();(Vt!==e||Zt!==t)&&(ps=null,oo(e,t));do try{HA();break}catch(s){M_(e,s)}while(!0);if(wy(),We=n,Bu.current=r,Ft!==null)throw Error($(261));return Vt=null,Zt=0,Bt}function HA(){for(;Ft!==null;)L_(Ft)}function $A(){for(;Ft!==null&&!fT();)L_(Ft)}function L_(e){var t=B_(e.alternate,e,qn);e.memoizedProps=e.pendingProps,t===null?D_(e):Ft=t,Oy.current=null}function D_(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=IA(n,t),n!==null){n.flags&=32767,Ft=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Bt=6,Ft=null;return}}else if(n=MA(n,t,qn),n!==null){Ft=n;return}if(t=t.sibling,t!==null){Ft=t;return}Ft=t=e}while(t!==null);Bt===0&&(Bt=5)}function zi(e,t,n){var r=Ye,s=fr.transition;try{fr.transition=null,Ye=1,UA(e,t,n,r)}finally{fr.transition=s,Ye=r}return null}function UA(e,t,n,r){do ua();while(ci!==null);if(We&6)throw Error($(327));n=e.finishedWork;var s=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error($(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(ST(e,i),e===Vt&&(Ft=Vt=null,Zt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ad||(Ad=!0,W_(Su,function(){return ua(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=fr.transition,fr.transition=null;var a=Ye;Ye=1;var l=We;We|=4,Oy.current=null,DA(e,n),P_(n,e),dA(vm),Eu=!!bm,vm=bm=null,e.current=n,zA(n),mT(),We=l,Ye=a,fr.transition=i}else e.current=n;if(Ad&&(Ad=!1,ci=e,Hu=s),i=e.pendingLanes,i===0&&(yi=null),bT(n.stateNode),Bn(e,Et()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],r(s.value,{componentStack:s.stack,digest:s.digest});if(Wu)throw Wu=!1,e=zm,zm=null,e;return Hu&1&&e.tag!==0&&ua(),i=e.pendingLanes,i&1?e===Bm?Yl++:(Yl=0,Bm=e):Yl=0,Oi(),null}function ua(){if(ci!==null){var e=bk(Hu),t=fr.transition,n=Ye;try{if(fr.transition=null,Ye=16>e?16:e,ci===null)var r=!1;else{if(e=ci,ci=null,Hu=0,We&6)throw Error($(331));var s=We;for(We|=4,le=e.current;le!==null;){var i=le,a=i.child;if(le.flags&16){var l=i.deletions;if(l!==null){for(var c=0;c<l.length;c++){var d=l[c];for(le=d;le!==null;){var u=le;switch(u.tag){case 0:case 11:case 15:Kl(8,u,i)}var h=u.child;if(h!==null)h.return=u,le=h;else for(;le!==null;){u=le;var f=u.sibling,p=u.return;if(A_(u),u===d){le=null;break}if(f!==null){f.return=p,le=f;break}le=p}}}var v=i.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}le=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,le=a;else e:for(;le!==null;){if(i=le,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Kl(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,le=g;break e}le=i.return}}var m=e.current;for(le=m;le!==null;){a=le;var b=a.child;if(a.subtreeFlags&2064&&b!==null)b.return=a,le=b;else e:for(a=m;le!==null;){if(l=le,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Wh(9,l)}}catch(S){kt(l,l.return,S)}if(l===a){le=null;break e}var k=l.sibling;if(k!==null){k.return=l.return,le=k;break e}le=l.return}}if(We=s,Oi(),Qr&&typeof Qr.onPostCommitFiberRoot=="function")try{Qr.onPostCommitFiberRoot(Rh,e)}catch{}r=!0}return r}finally{Ye=n,fr.transition=t}}return!1}function kv(e,t,n){t=Wa(n,t),t=b_(e,t,1),e=gi(e,t,1),t=xn(),e!==null&&(Vc(e,1,t),Bn(e,t))}function kt(e,t,n){if(e.tag===3)kv(e,e,n);else for(;t!==null;){if(t.tag===3){kv(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(yi===null||!yi.has(r))){e=Wa(n,e),e=v_(t,e,1),t=gi(t,e,1),e=xn(),t!==null&&(Vc(t,1,e),Bn(t,e));break}}t=t.return}}function qA(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xn(),e.pingedLanes|=e.suspendedLanes&n,Vt===e&&(Zt&n)===n&&(Bt===4||Bt===3&&(Zt&130023424)===Zt&&500>Et()-Iy?oo(e,0):My|=n),Bn(e,t)}function z_(e,t){t===0&&(e.mode&1?(t=vd,vd<<=1,!(vd&130023424)&&(vd=4194304)):t=1);var n=xn();e=As(e,t),e!==null&&(Vc(e,t,n),Bn(e,n))}function VA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),z_(e,n)}function GA(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),z_(e,n)}var B_;B_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Dn.current)Ln=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ln=!1,OA(e,t,n);Ln=!!(e.flags&131072)}else Ln=!1,dt&&t.flags&1048576&&Uk(t,Ru,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;iu(e,t),e=t.pendingProps;var s=La(t,dn.current);da(t,n),s=Ay(null,t,r,e,s,n);var i=Ny();return t.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zn(r)?(i=!0,Fu(t)):i=!1,t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,Sy(t),s.updater=Bh,t.stateNode=s,s._reactInternals=t,Tm(t,r,e,n),t=Fm(null,t,r,!0,i,n)):(t.tag=0,dt&&i&&yy(t),yn(null,t,s,n),t=t.child),t;case 16:r=t.elementType;e:{switch(iu(e,t),e=t.pendingProps,s=r._init,r=s(r._payload),t.type=r,s=t.tag=JA(r),e=_r(r,e),s){case 0:t=Nm(null,t,r,e,n);break e;case 1:t=hv(null,t,r,e,n);break e;case 11:t=dv(null,t,r,e,n);break e;case 14:t=uv(null,t,r,_r(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_r(r,s),Nm(e,t,r,s,n);case 1:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_r(r,s),hv(e,t,r,s,n);case 3:e:{if(__(t),e===null)throw Error($(387));
vendor: 4,674 bytes, line 40
40r=t.pendingProps,i=t.memoizedState,s=i.element,Yk(e,t),Iu(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){s=Wa(Error($(423)),t),t=pv(e,t,r,n,s);break e}else if(r!==s){s=Wa(Error($(424)),t),t=pv(e,t,r,n,s);break e}else for(Jn=mi(t.stateNode.containerInfo.firstChild),Yn=t,dt=!0,Tr=null,n=Kk(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Da(),r===s){t=Ns(e,t,n);break e}yn(e,t,r,n)}t=t.child}return t;case 5:return Qk(t),e===null&&Cm(t),r=t.type,s=t.pendingProps,i=e!==null?e.memoizedProps:null,a=s.children,xm(r,s)?a=null:i!==null&&xm(r,i)&&(t.flags|=32),k_(e,t),yn(e,t,a,n),t.child;case 6:return e===null&&Cm(t),null;case 13:return S_(e,t,n);case 4:return Cy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=za(t,null,r,n):yn(e,t,r,n),t.child;case 11:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_r(r,s),dv(e,t,r,s,n);case 7:return yn(e,t,t.pendingProps,n),t.child;case 8:return yn(e,t,t.pendingProps.children,n),t.child;case 12:return yn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,s=t.pendingProps,i=t.memoizedProps,a=s.value,rt(Ou,r._currentValue),r._currentValue=a,i!==null)if(Ir(i.value,a)){if(i.children===s.children&&!Dn.current){t=Ns(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){a=i.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(i.tag===1){c=Es(-1,n&-n),c.tag=2;var d=i.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?c.next=c:(c.next=u.next,u.next=c),d.pending=c}}i.lanes|=n,c=i.alternate,c!==null&&(c.lanes|=n),Em(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error($(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Em(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}yn(e,t,s.children,n),t=t.child}return t;case 9:return s=t.type,r=t.pendingProps.children,da(t,n),s=mr(s),r=r(s),t.flags|=1,yn(e,t,r,n),t.child;case 14:return r=t.type,s=_r(r,t.pendingProps),s=_r(r.type,s),uv(e,t,r,s,n);case 15:return x_(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,s=t.pendingProps,s=t.elementType===r?s:_r(r,s),iu(e,t),t.tag=1,zn(r)?(e=!0,Fu(t)):e=!1,da(t,n),y_(t,r,s),Tm(t,r,s,n),Fm(null,t,r,!0,e,n);case 19:return C_(e,t,n);case 22:return w_(e,t,n)}throw Error($(156,t.tag))};function W_(e,t){return fk(e,t)}function KA(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hr(e,t,n,r){return new KA(e,t,n,r)}function By(e){return e=e.prototype,!(!e||!e.isReactComponent)}function JA(e){if(typeof e=="function")return By(e)?1:0;if(e!=null){if(e=e.$$typeof,e===iy)return 11;if(e===oy)return 14}return 2}function vi(e,t){var n=e.alternate;return n===null?(n=hr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function lu(e,t,n,r,s,i){var a=2;if(r=e,typeof e=="function")By(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Jo:return ao(n.children,s,i,t);case sy:a=8,s|=8;break;case Zf:return e=hr(12,n,t,s|2),e.elementType=Zf,e.lanes=i,e;case Xf:return e=hr(13,n,t,s),e.elementType=Xf,e.lanes=i,e;case em:return e=hr(19,n,t,s),e.elementType=em,e.lanes=i,e;case Q1:return $h(n,s,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case J1:a=10;break e;case Y1:a=9;break e;case iy:a=11;break e;case oy:a=14;break e;case Gs:a=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=hr(a,n,t,s),t.elementType=e,t.type=r,t.lanes=i,t}function ao(e,t,n,r){return e=hr(7,e,r,t),e.lanes=n,e}function $h(e,t,n,r){return e=hr(22,e,r,t),e.elementType=Q1,e.lanes=n,e.stateNode={isHidden:!1},e}
vendor: 4,986 bytes, line 40
40function Xp(e,t,n){return e=hr(6,e,null,t),e.lanes=n,e}function ef(e,t,n){return t=hr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function YA(e,t,n,r,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Op(0),this.expirationTimes=Op(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Op(0),this.identifierPrefix=r,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Wy(e,t,n,r,s,i,a,l,c){return e=new YA(e,t,n,l,c),t===1?(t=1,i===!0&&(t|=8)):t=0,i=hr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Sy(i),e}function QA(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ko,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function H_(e){if(!e)return Ci;e=e._reactInternals;e:{if(So(e)!==e||e.tag!==1)throw Error($(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zn(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error($(171))}if(e.tag===1){var n=e.type;if(zn(n))return Hk(e,n,t)}return t}function $_(e,t,n,r,s,i,a,l,c){return e=Wy(n,r,!0,e,s,i,a,l,c),e.context=H_(null),n=e.current,r=xn(),s=bi(n),i=Es(r,s),i.callback=t??null,gi(n,i,s),e.current.lanes=s,Vc(e,s,r),Bn(e,r),e}function Uh(e,t,n,r){var s=t.current,i=xn(),a=bi(s);return n=H_(n),t.context===null?t.context=n:t.pendingContext=n,t=Es(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=gi(s,t,a),e!==null&&(Or(e,s,a,i),nu(e,s,a)),a}function Uu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _v(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hy(e,t){_v(e,t),(e=e.alternate)&&_v(e,t)}function ZA(){return null}var U_=typeof reportError=="function"?reportError:function(e){console.error(e)};function $y(e){this._internalRoot=e}qh.prototype.render=$y.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($(409));Uh(e,t,null,null)};qh.prototype.unmount=$y.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fo(function(){Uh(null,e,null,null)}),t[Ts]=null}};function qh(e){this._internalRoot=e}qh.prototype.unstable_scheduleHydration=function(e){if(e){var t=wk();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ys.length&&t!==0&&t<Ys[n].priority;n++);Ys.splice(n,0,e),n===0&&_k(e)}};function Uy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sv(){}function XA(e,t,n,r,s){if(s){if(typeof r=="function"){var i=r;r=function(){var d=Uu(a);i.call(d)}}var a=$_(t,r,e,0,null,!1,!1,"",Sv);return e._reactRootContainer=a,e[Ts]=a.current,uc(e.nodeType===8?e.parentNode:e),fo(),a}for(;s=e.lastChild;)e.removeChild(s);if(typeof r=="function"){var l=r;r=function(){var d=Uu(c);l.call(d)}}var c=Wy(e,0,!1,null,null,!1,!1,"",Sv);return e._reactRootContainer=c,e[Ts]=c.current,uc(e.nodeType===8?e.parentNode:e),fo(function(){Uh(t,c,n,r)}),c}function Gh(e,t,n,r,s){var i=n._reactRootContainer;if(i){var a=i;if(typeof s=="function"){var l=s;s=function(){var c=Uu(a);l.call(c)}}Uh(t,a,e,s)}else a=XA(n,t,e,s,r);return Uu(a)}vk=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rl(t.pendingLanes);n!==0&&(cy(t,n|1),Bn(t,Et()),!(We&6)&&(Ha=Et()+500,Oi()))}break;case 13:fo(function(){var r=As(e,1);if(r!==null){var s=xn();Or(r,e,1,s)}}),Hy(e,1)}};dy=function(e){if(e.tag===13){var t=As(e,134217728);if(t!==null){var n=xn();Or(t,e,134217728,n)}Hy(e,134217728)}};xk=function(e){if(e.tag===13){var t=bi(e),n=As(e,t);if(n!==null){var r=xn();Or(n,e,t,r)}Hy(e,t)}};wk=function(){return Ye};kk=function(e,t){var n=Ye;try{return Ye=e,t()}finally{Ye=n}};dm=function(e,t,n){switch(t){case"input":if(rm(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var s=Lh(r);if(!s)throw Error($(90));X1(r),rm(r,s)}}}break;case"textarea":tk(e,n);break;case"select":t=n.value,t!=null&&oa(e,!!n.multiple,t,!1)}};lk=Ly;ck=fo;var eN={usingClientEntryPoint:!1,Events:[Kc,Xo,Lh,ok,ak,Ly]},bl={findFiberByHostInstance:$i,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"}
40,tN={bundleType:bl.bundleType,version:bl.version,rendererPackageName:bl.rendererPackageName,rendererConfig:bl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ms.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hk(e),e===null?null:e.stateNode},findFiberByHostInstance:bl.findFiberByHostInstance||ZA,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nd.isDisabled&&Nd.supportsFiber)try{Rh=Nd.inject(tN),Qr=Nd}catch{}}er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eN;er.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uy(t))throw Error($(200));return QA(e,t,null,n)};er.createRoot=function(e,t){if(!Uy(e))throw Error($(299));var n=!1,r="",s=U_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Wy(e,1,!1,null,null,n,!1,r,s),e[Ts]=t.current,uc(e.nodeType===8?e.parentNode:e),new $y(t)};er.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error($(188)):(e=Object.keys(e).join(","),Error($(268,e)));return e=hk(t),e=e===null?null:e.stateNode,e};er.flushSync=function(e){return fo(e)};er.hydrate=function(e,t,n){if(!Vh(t))throw Error($(200));return Gh(null,e,t,!0,n)};er.hydrateRoot=function(e,t,n){if(!Uy(e))throw Error($(405));var r=n!=null&&n.hydratedSources||null,s=!1,i="",a=U_;if(n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=$_(t,null,e,1,n??null,s,!1,i,a),e[Ts]=t.current,uc(e),r)for(e=0;e<r.length;e++)n=r[e],s=n._getVersion,s=s(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,s]:t.mutableSourceEagerHydrationData.push(n,s);return new qh(t)};er.render=function(e,t,n){if(!Vh(t))throw Error($(200));return Gh(null,e,t,!1,n)};er.unmountComponentAtNode=function(e){if(!Vh(e))throw Error($(40));return e._reactRootContainer?(fo(function(){Gh(null,null,e,!1,function(){e._reactRootContainer=null,e[Ts]=null})}),!0):!1};er.unstable_batchedUpdates=Ly;er.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vh(n))throw Error($(200));if(e==null||e._reactInternals===void 0)throw Error($(38));return Gh(e,t,n,!1,r)};er.version="18.3.1-next-f1338f8080-20240426";function q_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(q_)}catch(e){console.error(e)}}q_(),q1.exports=er;var Co=q1.exports;const V_=Uc(Co);var G_,Cv=Co;G_=Cv.createRoot,Cv.hydrateRoot;const nN="modulepreload",rN=function(e){return"/"+e},Ev={},sN=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));s=Promise.allSettled(n.map(c=>{if(c=rN(c),c in Ev)return;Ev[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":nN,d||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),d)return new Promise((f,p)=>{h.addEventListener("load",f),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function i(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return s.then(a=>{for(const l of a||[])l.status==="rejected"&&i(l.reason);return t().catch(i)})};var iN=typeof Element<"u",oN=typeof Map=="function",aN=typeof Set=="function",lN=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function cu(e,t){if(e===t)return!0;
40if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!cu(e[r],t[r]))return!1;return!0}var i;if(oN&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!cu(r.value[1],t.get(r.value[0])))return!1;return!0}if(aN&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(lN&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return!1;if(iN&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((s[r]==="_owner"||s[r]==="__v"||s[r]==="__o")&&e.$$typeof)&&!cu(e[s[r]],t[s[r]]))return!1;return!0}return e!==e&&t!==t}var cN=function(t,n){try{return cu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const dN=Uc(cN);var uN=function(e,t,n,r,s,i,a,l){if(!e){var c;if(t===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[n,r,s,i,a,l],u=0;c=new Error(t.replace(/%s/g,function(){return d[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}},hN=uN;const jv=Uc(hN);var pN=function(t,n,r,s){var i=r?r.call(s,t,n):void 0;if(i!==void 0)return!!i;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var a=Object.keys(t),l=Object.keys(n);if(a.length!==l.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(n),d=0;d<a.length;d++){var u=a[d];if(!c(u))return!1;var h=t[u],f=n[u];if(i=r?r.call(s,h,f,u):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const fN=Uc(pN);var K_=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(K_||{}),tf={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Tv=Object.values(K_),qy={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},mN=Object.entries(qy).reduce((e,[t,n])=>(e[n]=t,e),{}),Pr="data-rh",ha={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},pa=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},gN=e=>{let t=pa(e,"title");const n=pa(e,ha.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const r=pa(e,ha.DEFAULT_TITLE);return t||r||void 0},yN=e=>pa(e,ha.ON_CHANGE_CLIENT_STATE)||(()=>{}),nf=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,r)=>({...n,...r}),{}),bN=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,r)=>{if(!n.length){const s=Object.keys(r);for(let i=0;i<s.length;i+=1){const l=s[i].toLowerCase();if(e.indexOf(l)!==-1&&r[l])return n.concat(r)}}return n},[]),vN=e=>console&&typeof console.warn=="function"&&console.warn(e),vl=(e,t,n
40)=>{const r={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&vN(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,i)=>{const a={};i.filter(c=>{let d;const u=Object.keys(c);for(let f=0;f<u.length;f+=1){const p=u[f],v=p.toLowerCase();t.indexOf(v)!==-1&&!(d==="rel"&&c[d].toLowerCase()==="canonical")&&!(v==="rel"&&c[v].toLowerCase()==="stylesheet")&&(d=v),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(d=p)}if(!d||!c[d])return!1;const h=c[d].toLowerCase();return r[d]||(r[d]={}),a[d]||(a[d]={}),r[d][h]?!1:(a[d][h]=!0,!0)}).reverse().forEach(c=>s.push(c));const l=Object.keys(a);for(let c=0;c<l.length;c+=1){const d=l[c],u={...r[d],...a[d]};r[d]=u}return s},[]).reverse()},xN=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},wN=e=>({baseTag:bN(["href"],e),bodyAttributes:nf("bodyAttributes",e),defer:pa(e,ha.DEFER),encode:pa(e,ha.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:nf("htmlAttributes",e),linkTags:vl("link",["rel","href"],e),metaTags:vl("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:vl("noscript",["innerHTML"],e),onChangeClientState:yN(e),scriptTags:vl("script",["src","innerHTML"],e),styleTags:vl("style",["cssText"],e),title:gN(e),titleAttributes:nf("titleAttributes",e),prioritizeSeoTags:xN(e,ha.PRIORITIZE_SEO_TAGS)}),J_=e=>Array.isArray(e)?e.join(""):e,kN=(e,t)=>{const n=Object.keys(e);for(let r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1},rf=(e,t)=>Array.isArray(e)?e.reduce((n,r)=>(kN(r,t)?n.priority.push(r):n.default.push(r),n),{priority:[],default:[]}):{default:e,priority:[]},Av=(e,t)=>
40({...e,[t]:void 0}),_N=["noscript","script","style"],$m=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Y_=e=>Object.keys(e).reduce((t,n)=>{const r=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${r}`:r},""),SN=(e,t,n,r)=>{const s=Y_(n),i=J_(t);return s?`<${e} ${Pr}="true" ${s}>${$m(i,r)}</${e}>`:`<${e} ${Pr}="true">${$m(i,r)}</${e}>`},CN=(e,t,n=!0)=>t.reduce((r,s)=>{const i=s,a=Object.keys(i).filter(d=>!(d==="innerHTML"||d==="cssText")).reduce((d,u)=>{const h=typeof i[u]>"u"?u:`${u}="${$m(i[u],n)}"`;return d?`${d} ${h}`:h},""),l=i.innerHTML||i.cssText||"",c=_N.indexOf(e)===-1;return`${r}<${e} ${Pr}="true" ${a}${c?"/>":`>${l}</${e}>`}`},""),Q_=(e,t={})=>Object.keys(e).reduce((n,r)=>{const s=qy[r];return n[s||r]=e[r],n},t),EN=(e,t,n)=>{const r={key:t,[Pr]:!0},s=Q_(n,r);return[L.createElement("title",s,t)]},du=(e,t)=>t.map((n,r)=>{const s={key:r,[Pr]:!0};return Object.keys(n).forEach(i=>{const l=qy[i]||i;if(l==="innerHTML"||l==="cssText"){const c=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=n[i]}),L.createElement(e,s)}),ar=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>EN(e,t.title,t.titleAttributes),toString:()=>SN(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Q_(t),toString:()=>Y_(t)};default:return{toComponent:()=>du(e,t),toString:()=>CN(e,t,n)}}},jN=({metaTags:e,linkTags:t,scriptTags:n,encode:r})=>{const s=rf(e,tf.meta),i=rf(t,tf.link),a=rf(n,tf.script);return{priorityMethods:{toComponent:()=>[...du("meta",s.priority),...du("link",i.priority),...du("script",a.priority)],toString:()=>`${ar("meta",s.priority,r)} ${ar("link",i.priority,r)} ${ar("script",a.priority,r)}`},metaTags:s.default,linkTags:i.default,scriptTags:a.default}},TN=e=>{const{baseTag:t,bodyAttributes:n,encode:r=!0,htmlAttributes:s,noscriptTags:i,styleTags:a,title:l="",titleAttributes:c,prioritizeSeoTags:d}=e;let{linkTags:u,metaTags:h,scriptTags:f}=e,p={toComponent:()=>{},toString:()=>""};return d&&({priorityMethods:p,linkTags:u,metaTags:h,scriptTags:f}=jN(e)),{priority:p,base:ar("base",t,r),bodyAttributes:ar("bodyAttributes",n,r),htmlAttributes:ar("htmlAttributes",s,r),link:ar("link",u,r),meta:ar("meta",h,r),noscript:ar("noscript",i,r),script:ar("script",f,r),style:ar("style",a,r),title:ar("title",{title:l,titleAttributes:c},r)}},Um=TN,Fd=[],Z_=!!(typeof window<"u"&&window.document&&window.document.createElement),qm=class{constructor(e,t){ls(this,"instances",[]);ls(this,"canUseDOM",Z_);ls(this,"context");ls(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Fd:this.instances,add:e=>{(this.canUseDOM?Fd:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Fd:this.instances).indexOf(e);(this.canUseDOM?Fd:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Um({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},AN={},X_=L.createContext(AN),Yi,e2=(Yi=class extends w.Component{constructor(n){super(n);ls(this,"helmetData");this.helmetData=new qm(this.props.context||{},Yi.canUseDOM)}render(){return L.createElement(X_.Provider,{value:this.helmetData.value},this.props.children)}},ls(Yi,"canUseDOM",Z_),Yi),Oo=(e,t)=>{const n=document.head||document.querySelector("head"),r=n.querySelectorAll(`${e}[${Pr}]`),s=[].slice.call(r),i=[];let a;return t&&t.length&&t.forEach(l=>{const c=document.createElement(e);for(const d in l)if(Object.prototype.hasOwnProperty.call(l,d))if(d==="innerHTML")c.innerHTML=l.innerHTML;else if(d==="cssText")c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{const u=d,h=typeof l[u]>"u"?"":l[u];c.setAttribute(d,h)}c.setAttribute(Pr,"true"),s.some((d,u)=>(a=u,c.isEqualNode(d)))?s.splice(a,1):i.push(c)}),s.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)}),i.forEach(l=>n.appendChild(l)),{oldTags:s,newTags:i}},Vm=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const r=n.getAttribute(Pr),s=r?r.split(","):[],i=[...s],a=Object.keys(t);for(const l of a){const c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),s.indexOf(l)===-1&&s.push(l);const d=i.indexOf(l);d!==-1&&i.splice(d,1)}for(let l=i.length-1;l>=0;l-=1)n.removeAttribute(i[l]);s.length===i.length?n.removeAttribute(Pr):n.getAttribute(Pr)!==a.join(",")&&n.setAttribute(Pr,a.join(","))},NN=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=J_(e)),Vm("title",t)},Nv=(e,t)=>{const{baseTag:n,bodyAttributes:r,htmlAttributes:s,linkTags:i,metaTags:a,noscriptTags:l,onChangeClientState:c,scriptTags:d,styleTags:u,title:h,titleAttributes:f}=e;
40Vm("body",r),Vm("html",s),NN(h,f);const p={baseTag:Oo("base",n),linkTags:Oo("link",i),metaTags:Oo("meta",a),noscriptTags:Oo("noscript",l),scriptTags:Oo("script",d),styleTags:Oo("style",u)},v={},y={};Object.keys(p).forEach(x=>{const{newTags:g,oldTags:m}=p[x];g.length&&(v[x]=g),m.length&&(y[x]=p[x].oldTags)}),t&&t(),c(e,v,y)},xl=null,FN=e=>{xl&&cancelAnimationFrame(xl),e.defer?xl=requestAnimationFrame(()=>{Nv(e,()=>{xl=null})}):(Nv(e),xl=null)},PN=FN,Fv=class extends w.Component{constructor(){super(...arguments);ls(this,"rendered",!1)}shouldComponentUpdate(t){return!fN(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let r=null;const s=wN(t.get().map(i=>{const a={...i.props};return delete a.context,a}));e2.canUseDOM?PN(s):Um&&(r=Um(s)),n(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Yf,RN=(Yf=class extends w.Component{shouldComponentUpdate(e){return!dN(Av(this.props,"helmetData"),Av(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,r){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,n,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(r=>{n={...n,[r]:e[r]}}),n}warnOnInvalidChildren(e,t){return jv(Tv.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Tv.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),jv(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return L.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:s,...i}=r.props,a=Object.keys(i).reduce((c,d)=>(c[mN[d]||d]=i[d],c),{});let{type:l}=r;
40switch(typeof l=="symbol"?l=l.toString():this.warnOnInvalidChildren(r,s),l){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(r,n,a,s);break;default:t=this.mapObjectTypeChildren(r,t,a,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:r}=t;if(e&&(n=this.mapChildrenToProps(e,n)),r&&!(r instanceof qm)){const s=r;r=new qm(s.context,!0),delete n.helmetData}return r?L.createElement(Fv,{...n,context:r.value}):L.createElement(X_.Consumer,null,s=>L.createElement(Fv,{...n,context:s}))}},ls(Yf,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Yf),Yc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},mo=typeof window>"u"||"Deno"in globalThis;function Rn(){}function ON(e,t){return typeof e=="function"?e(t):e}function Gm(e){return typeof e=="number"&&e>=0&&e!==1/0}function t2(e,t){return Math.max(e+(t||0)-Date.now(),0)}function xi(e,t){return typeof e=="function"?e(t):e}function cr(e,t){return typeof e=="function"?e(t):e}function Pv(e,t){const{type:n="all",exact:r,fetchStatus:s,predicate:i,queryKey:a,stale:l}=e;if(a){if(r){if(t.queryHash!==Vy(a,t.options))return!1}else if(!wc(t.queryKey,a))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||s&&s!==t.state.fetchStatus||i&&!i(t))}function Rv(e,t){const{exact:n,status:r,predicate:s,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(xc(t.options.mutationKey)!==xc(i))return!1}else if(!wc(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||s&&!s(t))}function Vy(e,t){return((t==null?void 0:t.queryKeyHashFn)||xc)(e)}function xc(e){return JSON.stringify(e,(t,n)=>Jm(n)?Object.keys(n).sort().reduce((r,s)=>(r[s]=n[s],r),{}):n)}function wc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>wc(e[n],t[n])):!1}function n2(e,t){if(e===t)return e;const n=Ov(e)&&Ov(t);if(n||Jm(e)&&Jm(t)){const r=n?e:Object.keys(e),s=r.length,i=n?t:Object.keys(t),a=i.length,l=n?[]:{},c=new Set(r);let d=0;for(let u=0;u<a;u++){const h=n?u:i[u];(!n&&c.has(h)||n)&&e[h]===void 0&&t[h]===void 0?(l[h]=void 0,d++):(l[h]=n2(e[h],t[h]),l[h]===e[h]&&e[h]!==void 0&&d++)}return s===a&&d===s?e:l}return t}function Km(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ov(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Jm(e){if(!Mv(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Mv(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Mv(e){return Object.prototype.toString.call(e)==="[object Object]"}function MN(e){return new Promise(t=>{setTimeout(t,e)})}function Ym(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?n2(e,t):t}function IN(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function LN(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gy=Symbol();function r2(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Gy?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function DN(e,t){return typeof e=="function"?e(...t):!!e}var Qi,ei,Sa,C1,zN=(C1=class extends Yc{constructor(){super();xe(this,Qi);xe(this,ei);xe(this,Sa);de(this,Sa,t=>{if(!mo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){T(this,ei)||this.setEventListener(T(this,Sa))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,ei))==null||t.call(this),de(this,ei,void 0))}setEventListener(t){var n;de(this,Sa,t),(n=T(this,ei))==null||n.call(this),de(this,ei,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){T(this,Qi)!==t&&(de(this,Qi,t),this.onFocus())}onFocus(){const t=this.isFocused();
vendor: 4,924 bytes, line 40
40this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof T(this,Qi)=="boolean"?T(this,Qi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Qi=new WeakMap,ei=new WeakMap,Sa=new WeakMap,C1),Ky=new zN,Ca,ti,Ea,E1,BN=(E1=class extends Yc{constructor(){super();xe(this,Ca,!0);xe(this,ti);xe(this,Ea);de(this,Ea,t=>{if(!mo&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){T(this,ti)||this.setEventListener(T(this,Ea))}onUnsubscribe(){var t;this.hasListeners()||((t=T(this,ti))==null||t.call(this),de(this,ti,void 0))}setEventListener(t){var n;de(this,Ea,t),(n=T(this,ti))==null||n.call(this),de(this,ti,t(this.setOnline.bind(this)))}setOnline(t){T(this,Ca)!==t&&(de(this,Ca,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return T(this,Ca)}},Ca=new WeakMap,ti=new WeakMap,Ea=new WeakMap,E1),qu=new BN;function Qm(){let e,t;const n=new Promise((s,i)=>{e=s,t=i});n.status="pending",n.catch(()=>{});function r(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{r({status:"fulfilled",value:s}),e(s)},n.reject=s=>{r({status:"rejected",reason:s}),t(s)},n}function WN(e){return Math.min(1e3*2**e,3e4)}function s2(e){return(e??"online")==="online"?qu.isOnline():!0}var i2=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function sf(e){return e instanceof i2}function o2(e){let t=!1,n=0,r=!1,s;const i=Qm(),a=y=>{var x;r||(f(new i2(y)),(x=e.abort)==null||x.call(e))},l=()=>{t=!0},c=()=>{t=!1},d=()=>Ky.isFocused()&&(e.networkMode==="always"||qu.isOnline())&&e.canRun(),u=()=>s2(e.networkMode)&&e.canRun(),h=y=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,y),s==null||s(),i.resolve(y))},f=y=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,y),s==null||s(),i.reject(y))},p=()=>new Promise(y=>{var x;s=g=>{(r||d())&&y(g)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;s=void 0,r||(y=e.onContinue)==null||y.call(e)}),v=()=>{if(r)return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(g){y=Promise.reject(g)}Promise.resolve(y).then(h).catch(g=>{var E;if(r)return;const m=e.retry??(mo?0:3),b=e.retryDelay??WN,k=typeof b=="function"?b(n,g):b,S=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,g);if(t||!S){f(g);return}n++,(E=e.onFail)==null||E.call(e,n,g),MN(k).then(()=>d()?void 0:p()).then(()=>{t?f(g):v()})})};return{promise:i,cancel:a,continue:()=>(s==null||s(),i),cancelRetry:l,continueRetry:c,canStart:u,start:()=>(u()?v():p().then(v),i)}}var HN=e=>setTimeout(e,0);function $N(){let e=[],t=0,n=l=>{l()},r=l=>{l()},s=HN;const i=l=>{t?e.push(l):s(()=>{n(l)})},a=()=>{const l=e;e=[],l.length&&s(()=>{r(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||a()}return c},batchCalls:l=>(...c)=>{i(()=>{l(...c)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{s=l}}}var Qt=$N(),Zi,j1,a2=(j1=class{constructor(){xe(this,Zi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gm(this.gcTime)&&de(this,Zi,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(mo?1/0:5*60*1e3))}clearGcTimeout(){T(this,Zi)&&(clearTimeout(T(this,Zi)),de(this,Zi,void 0))}},Zi=new WeakMap,j1),ja,Xi,lr,eo,an,Bc,to,Cr,hs,T1,UN=(T1=class extends a2{constructor(t){super();xe(this,Cr);xe(this,ja);xe(this,Xi);xe(this,lr);xe(this,eo);xe(this,an);xe(this,Bc);xe(this,to);de(this,to,!1),de(this,Bc,t.defaultOptions),this.setOptions(t.options),this.observers=[],de(this,eo,t.client),de(this,lr,T(this,eo).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,de(this,ja,qN(this.options)),this.state=t.state??T(this,ja),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=T(this,an))==null?void 0:t.promise}setOptions(t){this.options={...T(this,Bc),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&T(this,lr).remove(this)}setData(t,n){const r=Ym(this.state.data,t,this.options);return Me(this,Cr,hs).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){Me(this,Cr,hs).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,s;const n=(r=T(this,an))==null?void 0:r.promise;return(s=T(this,an))==null||s.cancel(t),n?n.then(Rn).catch(Rn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(T(this,ja))}isActive(){return this.observers.some(t=>cr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gy||this.state.dataUpdateCount+this.state.errorUpdate
vendor: 1,274 bytes, line 40
40Count===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>xi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!t2(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,an))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=T(this,an))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),T(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(T(this,an)&&(T(this,to)?T(this,an).cancel({revert:!0}):T(this,an).cancelRetry()),this.scheduleGc()),T(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Me(this,Cr,hs).call(this,{type:"invalidate"})}
vendor: 24,942 bytes, line 40
40fetch(t,n){var d,u,h;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(T(this,an))return T(this,an).continueRetry(),T(this,an).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(de(this,to,!0),r.signal)})},i=()=>{const f=r2(this.options,n),v=(()=>{const y={client:T(this,eo),queryKey:this.queryKey,meta:this.meta};return s(y),y})();return de(this,to,!1),this.options.persister?this.options.persister(f,v,this):f(v)},l=(()=>{const f={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:T(this,eo),state:this.state,fetchFn:i};return s(f),f})();(d=this.options.behavior)==null||d.onFetch(l,this),de(this,Xi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=l.fetchOptions)==null?void 0:u.meta))&&Me(this,Cr,hs).call(this,{type:"fetch",meta:(h=l.fetchOptions)==null?void 0:h.meta});const c=f=>{var p,v,y,x;sf(f)&&f.silent||Me(this,Cr,hs).call(this,{type:"error",error:f}),sf(f)||((v=(p=T(this,lr).config).onError)==null||v.call(p,f,this),(x=(y=T(this,lr).config).onSettled)==null||x.call(y,this.state.data,f,this)),this.scheduleGc()};return de(this,an,o2({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,v,y,x;if(f===void 0){c(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(g){c(g);return}(v=(p=T(this,lr).config).onSuccess)==null||v.call(p,f,this),(x=(y=T(this,lr).config).onSettled)==null||x.call(y,f,this.state.error,this),this.scheduleGc()},onError:c,onFail:(f,p)=>{Me(this,Cr,hs).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{Me(this,Cr,hs).call(this,{type:"pause"})},onContinue:()=>{Me(this,Cr,hs).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0})),T(this,an).start()}},ja=new WeakMap,Xi=new WeakMap,lr=new WeakMap,eo=new WeakMap,an=new WeakMap,Bc=new WeakMap,to=new WeakMap,Cr=new WeakSet,hs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...l2(r.data,this.options),fetchMeta:t.meta??null};case"success":return de(this,Xi,void 0),{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=t.error;return sf(s)&&s.revert&&T(this,Xi)?{...T(this,Xi),fetchStatus:"idle"}:{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),T(this,lr).notify({query:this,type:"updated",action:t})})},T1);function l2(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:s2(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qN(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Ur,A1,VN=(A1=class extends Yc{constructor(t={}){super();xe(this,Ur);this.config=t,de(this,Ur,new Map)}build(t,n,r){const s=n.queryKey,i=n.queryHash??Vy(s,n);let a=this.get(i);return a||(a=new UN({client:t,queryKey:s,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(a)),a}add(t){T(this,Ur).has(t.queryHash)||(T(this,Ur).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=T(this,Ur).get(t.queryHash);n&&(t.destroy(),n===t&&T(this,Ur).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return T(this,Ur).get(t)}getAll(){return[...T(this,Ur).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Pv(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>Pv(t,r)):n}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ur=new WeakMap,A1),qr,fn,no,Vr,qs,N1,GN=(N1=class extends a2{constructor(t){super();xe(this,Vr);xe(this,qr);xe(this,fn);xe(this,no);this.mutationId=t.mutationId,de(this,fn,t.mutationCache),de(this,qr,[]),this.state=t.state||KN(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){T(this,qr).includes(t)||(T(this,qr).push(t),this.clearGcTimeout(),T(this,fn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){de(this,qr,T(this,qr).filter(n=>n!==t)),this.scheduleGc(),T(this,fn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){T(this,qr).length||(this.state.status==="pending"?this.scheduleGc():T(this,fn).remove(this))}continue(){var t;return((t=T(this,no))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,l,c,d,u,h,f,p,v,y,x,g,m,b,k,S,E,C,N;const n=()=>{Me(this,Vr,qs).call(this,{type:"continue"})};de(this,no,o2({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(R,M)=>{Me(this,Vr,qs).call(this,{type:"failed",failureCount:R,error:M})},onPause:()=>{Me(this,Vr,qs).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>T(this,fn).canRun(this)}));const r=this.state.status==="pending",s=!T(this,no).canStart();try{if(r)n();else{Me(this,Vr,qs).call(this,{type:"pending",variables:t,isPaused:s}),await((a=(i=T(this,fn).config).onMutate)==null?void 0:a.call(i,t,this));const M=await((c=(l=this.options).onMutate)==null?void 0:c.call(l,t));M!==this.state.context&&Me(this,Vr,qs).call(this,{type:"pending",context:M,variables:t,isPaused:s})}const R=await T(this,no).start();return await((u=(d=T(this,fn).config).onSuccess)==null?void 0:u.call(d,R,t,this.state.context,this)),await((f=(h=this.options).onSuccess)==null?void 0:f.call(h,R,t,this.state.context)),await((v=(p=T(this,fn).config).onSettled)==null?void 0:v.call(p,R,null,this.state.variables,this.state.context,this)),await((x=(y=this.options).onSettled)==null?void 0:x.call(y,R,null,t,this.state.context)),Me(this,Vr,qs).call(this,{type:"success",data:R}),R}catch(R){try{throw await((m=(g=T(this,fn).config).onError)==null?void 0:m.call(g,R,t,this.state.context,this)),await((k=(b=this.options).onError)==null?void 0:k.call(b,R,t,this.state.context)),await((E=(S=T(this,fn).config).onSettled)==null?void 0:E.call(S,void 0,R,this.state.variables,this.state.context,this)),await((N=(C=this.options).onSettled)==null?void 0:N.call(C,void 0,R,t,this.state.context)),R}finally{Me(this,Vr,qs).call(this,{type:"error",error:R})}}finally{T(this,fn).runNext(this)}}},qr=new WeakMap,fn=new WeakMap,no=new WeakMap,Vr=new WeakSet,qs=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qt.batch(()=>{T(this,qr).forEach(r=>{r.onMutationUpdate(t)}),T(this,fn).notify({mutation:this,type:"updated",action:t})})},N1);function KN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var vs,Er,Wc,F1,JN=(F1=class extends Yc{constructor(t={}){super();xe(this,vs);xe(this,Er);xe(this,Wc);this.config=t,de(this,vs,new Set),de(this,Er,new Map),de(this,Wc,0)}build(t,n,r){const s=new GN({mutationCache:this,mutationId:++pd(this,Wc)._,options:t.defaultMutationOptions(n),state:r});return this.add(s),s}add(t){T(this,vs).add(t);const n=Pd(t);if(typeof n=="string"){const r=T(this,Er).get(n);r?r.push(t):T(this,Er).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(T(this,vs).delete(t)){const n=Pd(t);if(typeof n=="string"){const r=T(this,Er).get(n);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&T(this,Er).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Pd(t);if(typeof n=="string"){const r=T(this,Er).get(n),s=r==null?void 0:r.find(i=>i.state.status==="pending");return!s||s===t}else return!0}runNext(t){var r;const n=Pd(t);if(typeof n=="string"){const s=(r=T(this,Er).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qt.batch(()=>{T(this,vs).forEach(t=>{this.notify({type:"removed",mutation:t})}),T(this,vs).clear(),T(this,Er).clear()})}getAll(){return Array.from(T(this,vs))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>Rv(n,r))}findAll(t={}){return this.getAll().filter(n=>Rv(t,n))}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Rn))))}},vs=new WeakMap,Er=new WeakMap,Wc=new WeakMap,F1);function Pd(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Iv(e){return{onFetch:(t,n)=>{var u,h,f,p,v;const r=t.options,s=(f=(h=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:h.fetchMore)==null?void 0:f.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],a=((v=t.state.data)==null?void 0:v.pageParams)||[];let l={pages:[],pageParams:[]},c=0;const d=async()=>{let y=!1;const x=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},g=r2(t.options,t.fetchOptions),m=async(b,k,S)=>{if(y)return Promise.reject();if(k==null&&b.pages.length)return Promise.resolve(b);const C=(()=>{const H={client:t.client,queryKey:t.queryKey,pageParam:k,direction:S?"backward":"forward",meta:t.options.meta};return x(H),H})(),N=await g(C),{maxPages:R}=t.options,M=S?LN:IN;return{pages:M(b.pages,N,R),pageParams:M(b.pageParams,k,R)}};if(s&&i.length){const b=s==="backward",k=b?YN:Lv,S={pages:i,pageParams:a},E=k(r,S);l=await m(S,E,b)}else{const b=e??i.length;do{const k=c===0?a[0]??r.initialPageParam:Lv(r,l);if(c>0&&k==null)break;l=await m(l,k),c++}while(c<b)}return l};t.options.persister?t.fetchFn=()=>{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function Lv(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function YN(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var vt,ni,ri,Ta,Aa,si,Na,Fa,P1,QN=(P1=class{constructor(e={}){xe(this,vt);xe(this,ni);xe(this,ri);xe(this,Ta);xe(this,Aa);xe(this,si);xe(this,Na);xe(this,Fa);de(this,vt,e.queryCache||new VN),de(this,ni,e.mutationCache||new JN),de(this,ri,e.defaultOptions||{}),de(this,Ta,new Map),de(this,Aa,new Map),de(this,si,0)}mount(){pd(this,si)._++,T(this,si)===1&&(de(this,Na,Ky.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,vt).onFocus())})),de(this,Fa,qu.subscribe(async e=>{e&&(await this.resumePausedMutations(),T(this,vt).onOnline())})))}unmount(){var e,t;pd(this,si)._--,T(this,si)===0&&((e=T(this,Na))==null||e.call(this),de(this,Na,void 0),(t=T(this,Fa))==null||t.call(this),de(this,Fa,void 0))}isFetching(e){return T(this,vt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return T(this,ni).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,vt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=T(this,vt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(xi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return T(this,vt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),s=T(this,vt).get(r.queryHash),i=s==null?void 0:s.state.data,a=ON(t,i);if(a!==void 0)return T(this,vt).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Qt.batch(()=>T(this,vt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=T(this,vt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=T(this,vt);Qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=T(this,vt);return Qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qt.batch(()=>T(this,vt).findAll(e).map(s=>s.cancel(n)));return Promise.all(r).then(Rn).catch(Rn)}invalidateQueries(e,t={}){return Qt.batch(()=>(T(this,vt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qt.batch(()=>T(this,vt).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let i=s.fetch(void 0,n);return n.throwOnError||(i=i.catch(Rn)),s.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Rn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=T(this,vt).build(this,t);return n.isStaleByTime(xi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Rn).catch(Rn)}fetchInfiniteQuery(e){return e.behavior=Iv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Rn).catch(Rn)}ensureInfiniteQueryData(e){return e.behavior=Iv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return qu.isOnline()?T(this,ni).resumePausedMutations():Promise.resolve()}getQueryCache(){return T(this,vt)}getMutationCache(){return T(this,ni)}getDefaultOptions(){return T(this,ri)}setDefaultOptions(e){de(this,ri,e)}setQueryDefaults(e,t){T(this,Ta).set(xc(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...T(this,Ta).values()],n={};return t.forEach(r=>{wc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){T(this,Aa).set(xc(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...T(this,Aa).values()],n={};return t.forEach(r=>{wc(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...T(this,ri).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Vy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Gy&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...T(this,ri).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){T(this,vt).clear(),T(this,ni).clear()}},vt=new WeakMap,ni=new WeakMap,ri=new WeakMap,Ta=new WeakMap,Aa=new WeakMap,si=new WeakMap,Na=new WeakMap,Fa=new WeakMap,P1),An,Ie,Hc,mn,ro,Pa,ii,oi,$c,Ra,Oa,so,io,ai,Ma,qe,Ml,Zm,Xm,eg,tg,ng,rg,sg,c2,R1,ZN=(R1=class extends Yc{constructor(t,n){super();xe(this,qe);xe(this,An);xe(this,Ie);xe(this,Hc);xe(this,mn);xe(this,ro);xe(this,Pa);xe(this,ii);xe(this,oi);xe(this,$c);xe(this,Ra);xe(this,Oa);xe(this,so);xe(this,io);xe(this,ai);xe(this,Ma,new Set);this.options=n,de(this,An,t),de(this,oi,null),de(this,ii,Qm()),this.options.experimental_prefetchInRender||T(this,ii).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(T(this,Ie).addObserver(this),Dv(T(this,Ie),this.options)?Me(this,qe,Ml).call(this):this.updateResult(),Me(this,qe,tg).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ig(T(this,Ie),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ig(T(this,Ie),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Me(this,qe,ng).call(this),Me(this,qe,rg).call(this),T(this,Ie).removeObserver(this)}setOptions(t){const n=this.options,r=T(this,Ie);if(this.options=T(this,An).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof cr(this.options.enabled,T(this,Ie))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Me(this,qe,sg).call(this),T(this,Ie).setOptions(this.options),n._defaulted&&!Km(this.options,n)&&T(this,An).getQueryCache().notify({type:"observerOptionsUpdated",query:T(this,Ie),observer:this});const s=this.hasListeners();s&&zv(T(this,Ie),r,this.options,n)&&Me(this,qe,Ml).call(this),this.updateResult(),s&&(T(this,Ie)!==r||cr(this.options.enabled,T(this,Ie))!==cr(n.enabled,T(this,Ie))||xi(this.options.staleTime,T(this,Ie))!==xi(n.staleTime,T(this,Ie)))&&Me(this,qe,Zm).call(this);const i=Me(this,qe,Xm).call(this);s&&(T(this,Ie)!==r||cr(this.options.enabled,T(this,Ie))!==cr(n.enabled,T(this,Ie))||i!==T(this,ai))&&Me(this,qe,eg).call(this,i)}getOptimisticResult(t){const n=T(this,An).getQueryCache().build(T(this,An),t),r=this.createResult(n,t);return eF(this,r)&&(de(this,mn,r),de(this,Pa,this.options),de(this,ro,T(this,Ie).state)),r}getCurrentResult(){return T(this,mn)}trackResult(t,n){return new Proxy(t,{get:(r,s)=>(this.trackProp(s),n==null||n(s),Reflect.get(r,s))})}trackProp(t){T(this,Ma).add(t)}getCurrentQuery(){return T(this,Ie)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=T(this,An).defaultQueryOptions(t),r=T(this,An).getQueryCache().build(T(this,An),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Me(this,qe,Ml).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),T(this,mn)))}createResult(t,n){var R;const r=T(this,Ie),s=this.options,i=T(this,mn),a=T(this,ro),l=T(this,Pa),d=t!==r?t.state:T(this,Hc),{state:u}=t;let h={...u},f=!1,p;if(n._optimisticResults){const M=this.hasListeners(),H=!M&&Dv(t,n),D=M&&zv(t,r,n,s);(H||D)&&(h={...h,...l2(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(h.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:x}=h;p=h.data;let g=!1;if(n.placeholderData!==void 0&&p===void 0&&x==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(M=i.data,g=!0):M=typeof n.placeholderData=="function"?n.placeholderData((R=T(this,Oa))==null?void 0:R.state.data,T(this,Oa)):n.placeholderData,M!==void 0&&(x="success",p=Ym(i==null?void 0:i.data,M,n),f=!0)}if(n.select&&p!==void 0&&!g)if(i&&p===(a==null?void 0:a.data)&&n.select===T(this,$c))p=T(this,Ra);else try{de(this,$c,n.select),p=n.select(p),p=Ym(i==null?void 0:i.data,p,n),de(this,Ra,p),de(this,oi,null)}catch(M){de(this,oi,M)}T(this,oi)&&(v=T(this,oi),p=T(this,Ra),y=Date.now(),x="error");const m=h.fetchStatus==="fetching",b=x==="pending",k=x==="error",S=b&&m,E=p!==void 0,N={status:x,fetchStatus:h.fetchStatus,isPending:b,isSuccess:x==="success",isError:k,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:h.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>d.dataUpdateCount||h.errorUpdateCount>d.errorUpdateCount,isFetching:m,isRefetching:m&&!b,isLoadingError:k&&!E,isPaused:h.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:k&&E,isStale:Jy(t,n),refetch:this.refetch,promise:T(this,ii),isEnabled:cr(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=U=>{N.status==="error"?U.reject(N.error):N.data!==void 0&&U.resolve(N.data)},H=()=>{const U=de(this,ii,N.promise=Qm());M(U)},D=T(this,ii);switch(D.status){case"pending":t.queryHash===r.queryHash&&M(D);break;case"fulfilled":(N.status==="error"||N.data!==D.value)&&H();break;case"rejected":(N.status!=="error"||N.error!==D.reason)&&H();break}}return N}updateResult(){const t=T(this,mn),n=this.createResult(T(this,Ie),this.options);if(de(this,ro,T(this,Ie).state),de(this,Pa,this.options),T(this,ro).data!==void 0&&de(this,Oa,T(this,Ie)),Km(n,t))return;de(this,mn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!T(this,Ma).size)return!0;const a=new Set(i??T(this,Ma));return this.options.throwOnError&&a.add("error"),Object.keys(T(this,mn)).some(l=>{const c=l;return T(this,mn)[c]!==t[c]&&a.has(c)})};Me(this,qe,c2).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Me(this,qe,tg).call(this)}},An=new WeakMap,Ie=new WeakMap,Hc=new WeakMap,mn=new WeakMap,ro=new WeakMap,Pa=new WeakMap,ii=new WeakMap,oi=new WeakMap,$c=new WeakMap,Ra=new WeakMap,Oa=new WeakMap,so=new WeakMap,io=new WeakMap,ai=new WeakMap,Ma=new WeakMap,qe=new WeakSet,Ml=function(t){Me(this,qe,sg).call(this);let n=T(this,Ie).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Rn)),n},Zm=function(){Me(this,qe,ng).call(this);const t=xi(this.options.staleTime,T(this,Ie));if(mo||T(this,mn).isStale||!Gm(t))return;const r=t2(T(this,mn).dataUpdatedAt,t)+1;de(this,so,setTimeout(()=>{T(this,mn).isStale||this.updateResult()},r))},Xm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(T(this,Ie)):this.options.refetchInterval)??!1},eg=function(t){Me(this,qe,rg).call(this),de(this,ai,t),!(mo||cr(this.options.enabled,T(this,Ie))===!1||!Gm(T(this,ai))||T(this,ai)===0)&&de(this,io,setInterval(()=>{(this.options.refetchIntervalInBackground||Ky.isFocused())&&Me(this,qe,Ml).call(this)},T(this,ai)))},tg=function(){Me(this,qe,Zm).call(this),Me(this,qe,eg).call(this,Me(this,qe,Xm).call(this))},ng=function(){T(this,so)&&(clearTimeout(T(this,so)),de(this,so,void 0))},rg=function(){T(this,io)&&(clearInterval(T(this,io)),de(this,io,void 0))},sg=function(){const t=T(this,An).getQueryCache().build(T(this,An),this.options);if(t===T(this,Ie))return;const n=T(this,Ie);de(this,Ie,t),de(this,Hc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},c2=function(t){Qt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(T(this,mn))}),T(this,An).getQueryCache().notify({query:T(this,Ie),type:"observerResultsUpdated"})})},R1);function XN(e,t){return cr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Dv(e,t){return XN(e,t)||e.state.data!==void 0&&ig(e,t,t.refetchOnMount)}function ig(e,t,n){if(cr(t.enabled,e)!==!1&&xi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Jy(e,t)}return!1}function zv(e,t,n,r){return(e!==t||cr(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Jy(e,n)}function Jy(e,t){return cr(t.enabled,e)!==!1&&e.isStaleByTime(xi(t.staleTime,e))}function eF(e,t){return!Km(e.getCurrentResult(),t)}var d2=w.createContext(void 0),tF=e=>{const t=w.useContext(d2);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nF=({client:e,children:t})=>(w.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(d2.Provider,{value:e,children:t})),u2=w.createContext(!1),rF=()=>w.useContext(u2);u2.Provider;function sF(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
40var iF=w.createContext(sF()),oF=()=>w.useContext(iF),aF=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},lF=e=>{w.useEffect(()=>{e.clearReset()},[e])},cF=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(s&&e.data===void 0||DN(n,[e.error,r])),dF=e=>{if(e.suspense){const t=r=>r==="static"?r:Math.max(r??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...r)=>t(n(...r)):t(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},uF=(e,t)=>e.isLoading&&e.isFetching&&!t,hF=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Bv=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function pF(e,t,n){var h,f,p,v,y;const r=rF(),s=oF(),i=tF(),a=i.defaultQueryOptions(e);(f=(h=i.getDefaultOptions().queries)==null?void 0:h._experimental_beforeQuery)==null||f.call(h,a),a._optimisticResults=r?"isRestoring":"optimistic",dF(a),aF(a,s),lF(s);const l=!i.getQueryCache().get(a.queryHash),[c]=w.useState(()=>new t(i,a)),d=c.getOptimisticResult(a),u=!r&&e.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(x=>{const g=u?c.subscribe(Qt.batchCalls(x)):Rn;return c.updateResult(),g},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),w.useEffect(()=>{c.setOptions(a)},[a,c]),hF(a,d))throw Bv(a,c,s);if(cF({result:d,errorResetBoundary:s,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw d.error;if((v=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||v.call(p,a,d),a.experimental_prefetchInRender&&!mo&&uF(d,r)){const x=l?Bv(a,c,s):(y=i.getQueryCache().get(a.queryHash))==null?void 0:y.promise;x==null||x.catch(Rn).finally(()=>{c.updateResult()})}return a.notifyOnChangeProps?d:c.trackResult(d)}function Qc(e,t){return pF(e,ZN)}/** 41 * @remix-run/router v1.23.0 42 * 43 * Copyright (c) Remix Software Inc. 44 * 45 * This source code is licensed under the MIT license found in the 46 * LICENSE.md file in the root directory of this source tree. 47 * 48 * @license MIT 49 */function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kc.apply(this,arguments)}var di;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(di||(di={}));const Wv="popstate";function fF(e){e===void 0&&(e={});function t(r,s){let{pathname:i,search:a,hash:l}=r.location;return og("",{pathname:i,search:a,hash:l},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(r,s){return typeof s=="string"?s:Vu(s)}return gF(t,n,null,e)}function mt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function h2(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mF(){return Math.random().toString(36).substr(2,8)}function Hv(e,t){return{usr:e.state,key:e.key,idx:t}}function og(e,t,n,r){return n===void 0&&(n=null),kc({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?el(t):t,{state:n,key:t&&t.key||r||mF()})}function Vu(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function el(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function gF(e,t,n,r){r===void 0&&(r={});let{window:s=document.defaultView,v5Compat:i=!1}=r,a=s.history,l=di.Pop,c=null,d=u();d==null&&(d=0,a.replaceState(kc({},a.state,{idx:d}),""));function u(){return(a.state||{idx:null}).idx}function h(){l=di.Pop;let x=u(),g=x==null?null:x-d;d=x,c&&c({action:l,location:y.location,delta:g})}function f(x,g){l=di.Push;let m=og(y.location,x,g);d=u()+1;let b=Hv(m,d),k=y.createHref(m);try{a.pushState(b,"",k)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;s.location.assign(k)}i&&c&&c({action:l,location:y.location,delta:1})}function p(x,g){l=di.Replace;let m=og(y.location,x,g);d=u();let b=Hv(m,d),k=y.createHref(m);a.replaceState(b,"",k),i&&c&&c({action:l,location:y.location,delta:0})}function v(x){let g=s.location.origin!=="null"?s.location.origin:s.location.href,m=typeof x=="str
49ing"?x:Vu(x);return m=m.replace(/ $/,"%20"),mt(g,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,g)}let y={get action(){return l},get location(){return e(s,a)},listen(x){if(c)throw new Error("A history only accepts one active listener");return s.addEventListener(Wv,h),c=x,()=>{s.removeEventListener(Wv,h),c=null}},createHref(x){return t(s,x)},createURL:v,encodeLocation(x){let g=v(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:f,replace:p,go(x){return a.go(x)}};return y}var $v;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($v||($v={}));function yF(e,t,n){return n===void 0&&(n="/"),bF(e,t,n,!1)}function bF(e,t,n,r){let s=typeof t=="string"?el(t):t,i=$a(s.pathname||"/",n);if(i==null)return null;let a=p2(e);vF(a);let l=null;for(let c=0;l==null&&c<a.length;++c){let d=NF(i);l=TF(a[c],d,r)}return l}function p2(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let s=(i,a,l)=>{let c={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};c.relativePath.startsWith("/")&&(mt(c.relativePath.startsWith(r),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(r.length));let d=wi([r,c.relativePath]),u=n.concat(c);i.children&&i.children.length>0&&(mt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+d+'".')),p2(i.children,t,u,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:EF(d,i.index),routesMeta:u})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))s(i,a);else for(let c of f2(i.path))s(i,a,c)}),t}function f2(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,s=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return s?[i,""]:[i];let a=f2(r.join("/")),l=[];return l.push(...a.map(c=>c===""?i:[i,c].join("/"))),s&&l.push(...a),l.map(c=>e.startsWith("/")&&c===""?"/":c)}function vF(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:jF(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const xF=/^:[\w-]+$/,wF=3,kF=2,_F=1,SF=10,CF=-2,Uv=e=>e==="*";function EF(e,t){let n=e.split("/"),r=n.length;return n.some(Uv)&&(r+=CF),t&&(r+=kF),n.filter(s=>!Uv(s)).reduce((s,i)=>s+(xF.test(i)?wF:i===""?_F:SF),r)}function jF(e,t){return e.length===t.length&&e.slice(0,-1).every((r,s)=>r===t[s])?e[e.length-1]-t[t.length-1]:0}function TF(e,t,n){let{routesMeta:r}=e,s={},i="/",a=[];for(let l=0;l<r.length;++l){let c=r[l],d=l===r.length-1,u=i==="/"?t:t.slice(i.length)||"/",h=Gu({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),f=c.route;if(!h&&d&&n&&!r[r.length-1].route.index&&(h=Gu({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;
vendor: 7,044 bytes, lines 49-58
49Object.assign(s,h.params),a.push({params:s,pathname:wi([i,h.pathname]),pathnameBase:OF(wi([i,h.pathnameBase])),route:f}),h.pathnameBase!=="/"&&(i=wi([i,h.pathnameBase]))}return a}function Gu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=AF(e.path,e.caseSensitive,e.end),s=t.match(n);if(!s)return null;let i=s[0],a=i.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:r.reduce((d,u,h)=>{let{paramName:f,isOptional:p}=u;if(f==="*"){let y=l[h]||"";a=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const v=l[h];return p&&!v?d[f]=void 0:d[f]=(v||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function AF(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),h2(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,c)=>(r.push({paramName:l,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),s+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?s+="\\/*$":e!==""&&e!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),r]}function NF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return h2(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function $a(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function FF(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:s=""}=typeof e=="string"?el(e):e;return{pathname:n?n.startsWith("/")?n:PF(n,t):t,search:MF(r),hash:IF(s)}}function PF(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(s=>{s===".."?n.length>1&&n.pop():s!=="."&&n.push(s)}),n.length>1?n.join("/"):"/"}function of(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function RF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Yy(e,t){let n=RF(e);return t?n.map((r,s)=>s===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Qy(e,t,n,r){r===void 0&&(r=!1);let s;typeof e=="string"?s=el(e):(s=kc({},e),mt(!s.pathname||!s.pathname.includes("?"),of("?","pathname","search",s)),mt(!s.pathname||!s.pathname.includes("#"),of("#","pathname","hash",s)),mt(!s.search||!s.search.includes("#"),of("#","search","hash",s)));let i=e===""||s.pathname==="",a=i?"/":s.pathname,l;if(a==null)l=n;else{let h=t.length-1;if(!r&&a.startsWith("..")){let f=a.split("/");for(;f[0]==="..";)f.shift(),h-=1;s.pathname=f.join("/")}l=h>=0?t[h]:"/"}let c=FF(s,l),d=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&n.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}const wi=e=>e.join("/").replace(/\/\/+/g,"/"),OF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,IF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function LF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const m2=["post","put","patch","delete"];new Set(m2);const DF=["get",...m2];new Set(DF);/** 50 * React Router v6.30.1 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function _c(){return _c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_c.apply(this,arguments)}const Kh=w.createContext(null),g2=w.createContext(null),Is=w.createContext(null),Jh=w.createContext(null),rs=w.createContext({outlet:null,matches:[],isDataRoute:!1}),y2=w.createContext(null);function zF(e,t){let{relative:n}=t===void 0?{}:t;tl()||mt(!1);let{basename:r,navigator:s}=w.useContext(Is),{hash:i,pathname:a,search:l}=Qh(e,{relative:n}),c=a;return r!=="/"&&(c=a==="/"?r:wi([r,a])),s.createHref({pathname:c,search:l,hash:i})}function tl(){return w.useContext(Jh)!=null}function un(){return tl()||mt(!1),w.useContext(Jh).location}function b2(e){w.useContext(Is).static||w.useLayoutEffect(e)}function Yh(){let{isDataRoute:e}=w.useContext(rs);return e?eP():BF()}function BF(){tl()||mt(!1);let e=w.useContext(Kh),{basename:t,future:n,navigator:r}=w.useContext(Is),{matches:s}=w.useContext(rs),{pathname:i}=un(),a=JSON.stringify(Yy(s,n.v7_relativeSplatPath)),l=w.useRef(!1);return b2(()=>{l.current=!0}),w.useCallback(function(d,u){if(u===void 0&&(u={}),!l.current)return;if(typeof d=="number"){r.go(d);return}let h=Qy(d,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:wi([t,h.pathname])),(u.replace?r.replace:r.push)(h,u.state,u)},[t,r,a,i,e])}const WF=w.createContext(null);function HF(e){let t=w.useContext(rs).outlet;return t&&w.createElement(WF.Provider,{value:e},t)}function Zc(){let{matches:e}=w.useContext(rs),t=e[e.length-1];return t?t.params:{}}function Qh(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=w.useContext(Is),{matches:s}=w.useContext(rs),{pathname:i}=un(),a=JSON.stringify(Yy(s,r.v7_relativeSplatPath));return w.useMemo(()=>Qy(e,JSON.parse(a),i,n==="path"),[e,a,i,n])}function $F(e,t){return UF(e,t)}function UF(e,t,n,r){tl()||mt(!1);let{navigator:s}=w.useContext(Is),{matches:i}=w.useContext(rs),a=i[i.length-1],l=a?a.params:{};a&&a.pathname;let c=a?a.pathnameBase:"/";a&&a.route;let d=un(),u;if(t){var h;let x=typeof t=="string"?el(t):t;c==="/"||(h=x.pathname)!=null&&h.startsWith(c)||mt(!1),u=x}else u=d;let f=u.pathname||"/",p=f;if(c!=="/"){let x=c.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=yF(e,{pathname:p}),y=JF(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:wi([c,s.encodeLocation?s.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:wi([c,s.encodeLocation?s.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),i,n,r);return t&&y?w.createElement(Jh.Provider,{value:{location:_c({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:di.Pop}},y):y}function qF(){let e=XF(),t=LF(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application
58Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:s},n):null,null)}const VF=w.createElement(qF,null);class GF extends w.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?w.createElement(rs.Provider,{value:this.props.routeContext},w.createElement(y2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function KF(e){let{routeContext:t,match:n,children:r}=e,s=w.useContext(Kh);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),w.createElement(rs.Provider,{value:t},r)}function JF(e,t,n,r){var s;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,l=(s=n)==null?void 0:s.errors;if(l!=null){let u=a.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);u>=0||mt(!1),a=a.slice(0,Math.min(a.length,u+1))}let c=!1,d=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let h=a[u];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=u),h.route.id){let{loaderData:f,errors:p}=n,v=h.route.loader&&f[h.route.id]===void 0&&(!p||p[h.route.id]===void 0);if(h.route.lazy||v){c=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((u,h,f)=>{let p,v=!1,y=null,x=null;n&&(p=l&&h.route.id?l[h.route.id]:void 0,y=h.route.errorElement||VF,c&&(d<0&&f===0?(v=!0,x=null):d===f&&(v=!0,x=h.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,f+1)),m=()=>{let b;return p?b=y:v?b=x:h.route.Component?b=w.createElement(h.route.Component,null):h.route.element?b=h.route.element:b=u,w.createElement(KF,{match:h,routeContext:{outlet:u,matches:g,isDataRoute:n!=null},children:b})};return n&&(h.route.ErrorBoundary||h.route.errorElement||f===0)?w.createElement(GF,{location:n.location,revalidation:n.revalidation,component:y,error:p,children:m(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):m()},null)}var v2=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(v2||{}),Ku=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ku||{});function YF(e){let t=w.useContext(Kh);return t||mt(!1),t}function QF(e){let t=w.useContext(g2);return t||mt(!1),t}function ZF(e){let t=w.useContext(rs);return t||mt(!1),t}function x2(e){let t=ZF(),n=t.matches[t.matches.length-1];return n.route.id||mt(!1),n.route.id}function XF(){var e;let t=w.useContext(y2),n=QF(Ku.UseRouteError),r=x2(Ku.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function eP(){let{router:e}=YF(v2.UseNavigateStable),t=x2(Ku.UseNavigateStable),n=w.useRef(!1);return b2(()=>{n.current=!0}),w.useCallback(function(s,i){i===void 0&&(i={}),n.current&&(typeof s=="number"?e.navigate(s):e.navigate(s,_c({fromRouteId:t},i)))},[e,t])}function tP(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function gn(e){let{to:t,replace:n,state:r,relative:s}=e;tl()||mt(!1);let{future:i,static:a}=w.useContext(Is),{matches:l}=w.useContext(rs),{pathname:c}=un(),d=Yh(),u=Qy(t,Yy(l,i.v7_relativeSplatPath),c,s==="path"),h=JSON.stringify(u);return w.useEffect(()=>d(JSON.parse(h),{replace:n,state:r,relative:s}),[d,h,s,n,r]),null}function w7(e){return HF(e.context)}function _e(e){mt(!1)}function nP(e){let{basename:t="/",children:n=null,location:r,navigationType:s=di.Pop,navigator:i,static:a=!1,future:l}=e;tl()&&mt(!1);let c=t.replace(/^\/*/,"/"),d=w.useMemo(()=>({basename:c,navigator:i,static:a,future:_c({v7_relativeSplatPath:!1},l)}),[c,l,i,a]);typeof r=="string"&&(r=el(r));
58let{pathname:u="/",search:h="",hash:f="",state:p=null,key:v="default"}=r,y=w.useMemo(()=>{let x=$a(u,c);return x==null?null:{location:{pathname:x,search:h,hash:f,state:p,key:v},navigationType:s}},[c,u,h,f,p,v,s]);return y==null?null:w.createElement(Is.Provider,{value:d},w.createElement(Jh.Provider,{children:n,value:y}))}function rP(e){let{children:t,location:n}=e;return $F(ag(t),n)}new Promise(()=>{});function ag(e,t){t===void 0&&(t=[]);let n=[];return w.Children.forEach(e,(r,s)=>{if(!w.isValidElement(r))return;let i=[...t,s];if(r.type===w.Fragment){n.push.apply(n,ag(r.props.children,i));return}r.type!==_e&&mt(!1),!r.props.index||!r.props.children||mt(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=ag(r.props.children,i)),n.push(a)}),n}/** 59 * React Router DOM v6.30.1 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ju.apply(this,arguments)}function w2(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,i;for(i=0;i<r.length;i++)s=r[i],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function sP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function iP(e,t){return e.button===0&&(!t||t==="_self")&&!sP(e)}function lg(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(s=>[n,s]):[[n,r]])},[]))}function oP(e,t){let n=lg(e);return t&&t.forEach((r,s)=>{n.has(s)||t.getAll(s).forEach(i=>{n.append(s,i)})}),n}const aP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],lP=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],cP="6";try{window.__reactRouterVersion=cP}catch{}const dP=w.createContext({isTransitioning:!1}),uP="startTransition",qv=ey[uP];function hP(e){let{basename:t,children:n,future:r,window:s}=e,i=w.useRef();i.current==null&&(i.current=fF({window:s,v5Compat:!0}));let a=i.current,[l,c]=w.useState({action:a.action,location:a.location}),{v7_startTransition:d}=r||{},u=w.useCallback(h=>{d&&qv?qv(()=>c(h)):c(h)},[c,d]);return w.useLayoutEffect(()=>a.listen(u),[a,u]),w.useEffect(()=>tP(r),[r]),w.createElement(nP,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const pP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ke=w.forwardRef(function(t,n){let{onClick:r,relative:s,reloadDocument:i,replace:a,state:l,target:c,to:d,preventScrollReset:u,viewTransition:h}=t,f=w2(t,aP),{basename:p}=w.useContext(Is),v,y=!1;if(typeof d=="string"&&fP.test(d)&&(v=d,pP))try{let b=new URL(window.location.href),k=d.startsWith("//")?new URL(b.protocol+d):new URL(d),S=$a(k.pathname,p);k.origin===b.origin&&S!=null?d=S+k.search+k.hash:y=!0}catch{}let x=zF(d,{relative:s}),g=gP(d,{replace:a,state:l,target:c,preventScrollReset:u,relative:s,viewTransition:h});function m(b){r&&r(b),b.defaultPrevented||g(b)}return w.createElement("a",Ju({},f,{href:v||x,onClick:y||i?r:m,ref:n,target:c}))}),k7=w.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:s=!1,className:i="",end:a=!1,style:l,to:c,viewTransition:d,children:u}=t,h=w2(t,lP),f=Qh(c,{relative:h.relative}),p=un(),v=w.useContext(g2),{navigator:y,basename:x}=w.useContext(Is),g=v!=null&&yP(f)&&d===!0,m=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,b=p.pathname,k=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;s||(b=b.toLowerCase(),k=k?k.toLowerCase():null,m=m.toLowerCase()),k&&x&&(k=$a(k,x)||k);const S=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let E=b===m||!a&&b.startsWith(m)&&b.charAt(S)==="/",C=k!=null&&(k===m||!a&&k.startsWith(m)&&k.charAt(m.length)==="/"),N={isActive:E,isPending:C,isTransitioning:g},R=E?r:void 0,M;typeof i=="function"?M=i(N):M=[i,E?"active":null,C?"pending":null,g?"transitioning":null].filter(
67Boolean).join(" ");let H=typeof l=="function"?l(N):l;return w.createElement(ke,Ju({},h,{"aria-current":R,className:M,ref:n,style:H,to:c,viewTransition:d}),typeof u=="function"?u(N):u)});var cg;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(cg||(cg={}));var Vv;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Vv||(Vv={}));function mP(e){let t=w.useContext(Kh);return t||mt(!1),t}function gP(e,t){let{target:n,replace:r,state:s,preventScrollReset:i,relative:a,viewTransition:l}=t===void 0?{}:t,c=Yh(),d=un(),u=Qh(e,{relative:a});return w.useCallback(h=>{if(iP(h,n)){h.preventDefault();let f=r!==void 0?r:Vu(d)===Vu(u);c(e,{replace:f,state:s,preventScrollReset:i,relative:a,viewTransition:l})}},[d,c,u,r,s,n,e,i,a,l])}function k2(e){let t=w.useRef(lg(e)),n=w.useRef(!1),r=un(),s=w.useMemo(()=>oP(r.search,n.current?null:t.current),[r.search]),i=Yh(),a=w.useCallback((l,c)=>{const d=lg(typeof l=="function"?l(s):l);n.current=!0,i("?"+d,c)},[i,s]);return[s,a]}function yP(e,t){t===void 0&&(t={});let n=w.useContext(dP);n==null&&mt(!1);let{basename:r}=mP(cg.useViewTransitionState),s=Qh(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=$a(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=$a(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Gu(s.pathname,a)!=null||Gu(s.pathname,i)!=null}const bP=Symbol.for("@supabase/supabase-js.traceContextExtractor");function vP(){return globalThis[bP]}function xP(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(u){try{d(r.next(u))}catch(h){a(h)}}function c(u){try{d(r.throw(u))}catch(h){a(h)}}function d(u){u.done?i(u.value):s(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})}const wP=e=>e?(...t)=>e(...t):(...t)=>fetch(...t);class Zy extends Error{constructor(t,n="FunctionsError",r){super(t),this.name=n,this.context=r}toJSON(){return{name:this.name,message:this.message,context:this.context}}}class kP extends Zy{constructor(t){super("Failed to send a request to the Edge Function","FunctionsFetchError",t)}}class Gv extends Zy{constructor(t){super("Relay Error invoking the Edge Function","FunctionsRelayError",t)}}class Kv extends Zy{constructor(t){super("Edge Function returned a non-2xx status code","FunctionsHttpError",t)}}var dg;(function(e){e.Any="any",e.ApNortheast1="ap-northeast-1",e.ApNortheast2="ap-northeast-2",e.ApSouth1="ap-south-1",e.ApSoutheast1="ap-southeast-1",e.ApSoutheast2="ap-southeast-2",e.CaCentral1="ca-central-1",e.EuCentral1="eu-central-1",e.EuWest1="eu-west-1",e.EuWest2="eu-west-2",e.EuWest3="eu-west-3",e.SaEast1="sa-east-1",e.UsEast1="us-east-1",e.UsWest1="us-west-1",e.UsWest2="us-west-2"})(dg||(dg={}));class _P{constructor(t,{headers:n={},customFetch:r,region:s=dg.Any}={}){this.url=t,this.headers=n,this.region=s,this.fetch=wP(r)}setAuth(t){this.headers.Authorization=`Bearer ${t}`}invoke(t){return xP(this,arguments,void 0,function*(n,r={}){var s,i;let a,l,c;try{const{headers:d,method:u,body:h,signal:f,timeout:p}=r;let v={},{region:y}=r;y||(y=this.region);const x=new URL(`${this.url}/${n}`);y&&y!=="any"&&(v["x-region"]=y,x.searchParams.set("forceFunctionRegion",y));let g;const m=!!d&&Object.keys(d).some(N=>N.toLowerCase()==="content-type");h&&!m?typeof Blob<"u"&&h instanceof Blob||h instanceof ArrayBuffer?(v["Content-Type"]="application/octet-stream",g=h):typeof h=="string"?(v["Content-Type"]="text/plain",g=h):typeof FormData<"u"&&h instanceof FormData?g=h:(v["Content-Type"]="application/json",g=JSON.stringify(h)):h&&typeof h!="string"&&!(typeof Blob<"u"&&h instanceof Blob)&&!(h instanceof ArrayBuffer)&&!(typeof FormData<"u"&&h instanceof FormData)?g=JSON.stringify(h):g=h;let b=f;p&&(l=new AbortController,a=setTimeout(()=>l.abort(),p),f?(b=l.signal,c=()=>l.abort(),f.addEventListener("abort",c)):b=l.signal);const k=yield this.fetch(x.toString(),{method:u||"POST",headers:Object.assign(Object.assign(Object.assign({},v),this.headers),d),body:g,signal:b}).catch(N=>{throw new kP(N)}),S=k.headers.get("x-relay-error");
67if(S&&S==="true")throw new Gv(k);if(!k.ok)throw new Kv(k);let E=((s=k.headers.get("Content-Type"))!==null&&s!==void 0?s:"text/plain").split(";")[0].trim().toLowerCase(),C;return E==="application/json"?C=yield k.json():E==="application/octet-stream"||E==="application/pdf"?C=yield k.blob():E==="text/event-stream"?C=k:E==="multipart/form-data"?C=yield k.formData():C=yield k.text(),{data:C,error:null,response:k}}catch(d){return{data:null,error:d,response:d instanceof Kv||d instanceof Gv?d.context:void 0}}finally{a&&clearTimeout(a),c&&((i=r.signal)===null||i===void 0||i.removeEventListener("abort",c))}})}}var fa=class extends Error{constructor(e){super(e.message),this.name="PostgrestError",this.details=e.details,this.hint=e.hint,this.code=e.code}toJSON(){return{name:this.name,message:this.message,details:this.details,hint:this.hint,code:this.code}}};const _2=3,Jv=e=>Math.min(1e3*2**e,3e4),SP=[520,503],S2=["GET","HEAD","OPTIONS"];function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function CP(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EP(e){var t=CP(e,"string");return Sc(t)=="symbol"?t:t+""}function jP(e,t,n){return(t=EP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yv(Object(n),!0).forEach(function(r){jP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qv(e,t){return new Promise(n=>{if(t!=null&&t.aborted){n();return}const r=setTimeout(()=>{t==null||t.removeEventListener("abort",s),n()},e);function s(){clearTimeout(r),n()}t==null||t.addEventListener("abort",s)})}function TP(e,t,n,r){return!(!r||n>=_2||!S2.includes(e)||!SP.includes(t))}async function C2(e,t,n,r){let s=0;for(;;){const l=Vi({},n.headers);s>0&&(l["X-Retry-Count"]=String(s));let c;try{c=await e(t,{method:n.method,headers:l,body:n.body,signal:n.signal})}catch(d){if((d==null?void 0:d.name)==="AbortError"||(d==null?void 0:d.code)==="ABORT_ERR"||!S2.includes(n.method))throw d;if(r&&s<_2){const u=Jv(s);s++,await Qv(u,n.signal);continue}throw d}if(TP(n.method,c.status,s,r)){var i,a;const d=(i=(a=c.headers)===null||a===void 0?void 0:a.get("Retry-After"))!==null&&i!==void 0?i:null,u=d!==null?Math.max(0,parseInt(d,10)||0)*1e3:Jv(s);await c.text(),s++,await Qv(u,n.signal);continue}return c}}var AP=class{constructor(e){var t,n,r,s,i;this.shouldThrowOnError=!1,this.retryEnabled=!0,this.method=e.method,this.url=e.url,this.headers=new Headers(e.headers),this.schema=e.schema,this.body=e.body,this.shouldThrowOnError=(t=e.shouldThrowOnError)!==null&&t!==void 0?t:!1,this.signal=e.signal,this.isMaybeSingle=(n=e.isMaybeSingle)!==null&&n!==void 0?n:!1,this.shouldStripNulls=(r=e.shouldStripNulls)!==null&&r!==void 0?r:!1,this.urlLengthLimit=(s=e.urlLengthLimit)!==null&&s!==void 0?s:8e3,this.retryEnabled=(i=e.retry)!==null&&i!==void 0?i:!0,e.fetch?this.fetch=e.fetch:this.fetch=fetch}throwOnError(){return this.shouldThrowOnError=!0,this}stripNulls(){if(this.headers.get("Accept")==="text/csv")throw new Error("stripNulls() cannot be used with csv()");return this.shouldStripNulls=!0,this}setHeader(e,t){return this.headers=new Headers(this.headers),this.headers.set(e,t),this}retry(e){return this.retryEnabled=e,this}then(e,t){var n=this;if(this.schema===void 0||(["GET","HEAD"].includes(this.method)?this.headers.set("Accept-Profile",this.schema):this.headers.set("Content-Profile",this.schema)),this.method!=="GET"&&this.method!=="HEAD"&&this.headers.set("Content-Type","application/json"),this.shouldStripNulls){const a=this.headers.get("Accept");a==="application/vnd.pgrst.object+json"?this.headers.set("Accept","application/vnd.pgrst.object+json;nulls=stripped"):(!a||a==="application/json")&&this.headers.set("Accept","application/vnd.pgrst.array+json;nulls=stripped")}const r=this.fetch;let i=(async()=>{const a={};
67n.headers.forEach((c,d)=>{a[d]=c});const l=await C2(r,n.url.toString(),{method:n.method,headers:a,body:JSON.stringify(n.body,(c,d)=>typeof d=="bigint"?d.toString():d),signal:n.signal},n.retryEnabled);return await n.processResponse(l)})();return this.shouldThrowOnError||(i=i.catch(a=>{var l;let c="",d="",u="";const h=a==null?void 0:a.cause;if(h){var f,p,v,y;const m=(f=h==null?void 0:h.message)!==null&&f!==void 0?f:"",b=(p=h==null?void 0:h.code)!==null&&p!==void 0?p:"";c=`${(v=a==null?void 0:a.name)!==null&&v!==void 0?v:"FetchError"}: ${a==null?void 0:a.message}`,c+=` 68 69Caused by: ${(y=h==null?void 0:h.name)!==null&&y!==void 0?y:"Error"}: ${m}`,b&&(c+=` (${b})`),h!=null&&h.stack&&(c+=` 70${h.stack}`)}else{var x;c=(x=a==null?void 0:a.stack)!==null&&x!==void 0?x:""}const g=this.url.toString().length;return(a==null?void 0:a.name)==="AbortError"||(a==null?void 0:a.code)==="ABORT_ERR"?(u="",d="Request was aborted (timeout or manual cancellation)",g>this.urlLengthLimit&&(d+=`. Note: Your request URL is ${g} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`)):((h==null?void 0:h.name)==="HeadersOverflowError"||(h==null?void 0:h.code)==="UND_ERR_HEADERS_OVERFLOW")&&(u="",d="HTTP headers exceeded server limits (typically 16KB)",g>this.urlLengthLimit&&(d+=`. Your request URL is ${g} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`)),{success:!1,error:{message:`${(l=a==null?void 0:a.name)!==null&&l!==void 0?l:"FetchError"}: ${a==null?void 0:a.message}`,details:c,hint:d,code:u},data:null,count:null,status:0,statusText:""}})),i.then(e,t)}async processResponse(e){var t=this;let n=null,r=null,s=null,i=e.status,a=e.statusText;if(e.ok){var l,c;if(t.method!=="HEAD"){var d;const p=await e.text();if(p!=="")if(t.headers.get("Accept")==="text/csv")r=p;else if(t.headers.get("Accept")&&(!((d=t.headers.get("Accept"))===null||d===void 0)&&d.includes("application/vnd.pgrst.plan+text")))r=p;else try{r=JSON.parse(p)}catch{if(n={message:p},r=null,t.shouldThrowOnError)throw new fa({message:p,details:"",hint:"",code:""})}}const h=(l=t.headers.get("Prefer"))===null||l===void 0?void 0:l.match(/count=(exact|planned|estimated)/),f=(c=e.headers.get("content-range"))===null||c===void 0?void 0:c.split("/");if(h&&f&&f.length>1&&(s=parseInt(f[1])),t.isMaybeSingle&&Array.isArray(r))if(r.length>1){if(n={code:"PGRST116",details:`Results contain ${r.length} rows, application/vnd.pgrst.object+json requires 1 row`,hint:null,message:"JSON object requested, multiple (or no) rows returned"},r=null,s=null,i=406,a="Not Acceptable",t.shouldThrowOnError){var u;throw new fa(Vi(Vi({},n),{},{hint:(u=n.hint)!==null&&u!==void 0?u:""}))}}else r.length===1?r=r[0]:r=null}else{const h=await e.text();try{n=JSON.parse(h),Array.isArray(n)&&e.status===404&&(r=[],n=null,i=200,a="OK")}catch{e.status===404&&h===""?(i=204,a="No Content"):n={message:h}}if(n&&t.shouldThrowOnError)throw new fa(n)}return{success:n===null,error:n,data:r,count:s,status:i,statusText:a}}returns(){return this}overrideTypes(){return this}},NP=class extends AP{throwOnError(){return super.throwOnError()}select(e){let t=!1;const n=(e??"*").split("").map(r=>/\s/.test(r)&&!t?"":(r==='"'&&(t=!t),r)).join("");return this.url.searchParams.set("select",n),this.headers.append("Prefer","return=representation"),this}order(e,{ascending:t=!0,nullsFirst:n,foreignTable:r,referencedTable:s=r}={}){const i=s?`${s}.order`:"order",a=this.url.searchParams.get(i);return this.url.searchParams.set(i,`${a?`${a},`:""}${e}.${t?"asc":"desc"}${n===void 0?"":n?".nullsfirst":".nullslast"}`),this}limit(e,{foreignTable:t,referencedTable:n=t}={}){const r=typeof n>"u"?"limit":`${n}.limit`;return this.url.searchParams.set(r,`${e}`),this}range(e,t,{foreignTable:n,referencedTable:r=n}={}){const s=typeof r>"u"?"offset":`${r}.offset`,i=typeof r>"u"?"limit":`${r}.limit`;return this.url.searchParams.set(s,`${e}`),this.url.searchParams.set(i,`${t-e+1}`),this}abortSignal(e){return this.signal=e,this}single(){return this.headers.set("Accept","application/vnd.pgrst.object+json"),this}maybeSingle(){return this.isMaybeSingle=!0,this}csv(){return this.headers.set("Accept","text/csv"),this}geojson(){return this.headers.set("Accept","application/geo+json"),this}
70explain({analyze:e=!1,verbose:t=!1,settings:n=!1,buffers:r=!1,wal:s=!1,format:i="text"}={}){var a;const l=[e?"analyze":null,t?"verbose":null,n?"settings":null,r?"buffers":null,s?"wal":null].filter(Boolean).join("|"),c=(a=this.headers.get("Accept"))!==null&&a!==void 0?a:"application/json";return this.headers.set("Accept",`application/vnd.pgrst.plan+${i}; for="${c}"; options=${l};`),i==="json"?this:this}rollback(){return this.headers.append("Prefer","tx=rollback"),this}returns(){return this}maxAffected(e){return this.headers.append("Prefer","handling=strict"),this.headers.append("Prefer",`max-affected=${e}`),this}};const Zv=new RegExp("[,()]");var $o=class extends NP{throwOnError(){return super.throwOnError()}eq(e,t){return this.url.searchParams.append(e,`eq.${t}`),this}neq(e,t){return this.url.searchParams.append(e,`neq.${t}`),this}gt(e,t){return this.url.searchParams.append(e,`gt.${t}`),this}gte(e,t){return this.url.searchParams.append(e,`gte.${t}`),this}lt(e,t){return this.url.searchParams.append(e,`lt.${t}`),this}lte(e,t){return this.url.searchParams.append(e,`lte.${t}`),this}like(e,t){return this.url.searchParams.append(e,`like.${t}`),this}likeAllOf(e,t){return this.url.searchParams.append(e,`like(all).{${t.join(",")}}`),this}likeAnyOf(e,t){return this.url.searchParams.append(e,`like(any).{${t.join(",")}}`),this}ilike(e,t){return this.url.searchParams.append(e,`ilike.${t}`),this}ilikeAllOf(e,t){return this.url.searchParams.append(e,`ilike(all).{${t.join(",")}}`),this}ilikeAnyOf(e,t){return this.url.searchParams.append(e,`ilike(any).{${t.join(",")}}`),this}regexMatch(e,t){return this.url.searchParams.append(e,`match.${t}`),this}regexIMatch(e,t){return this.url.searchParams.append(e,`imatch.${t}`),this}is(e,t){return this.url.searchParams.append(e,`is.${t}`),this}isDistinct(e,t){return this.url.searchParams.append(e,`isdistinct.${t}`),this}in(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Zv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`in.(${n})`),this}notIn(e,t){const n=Array.from(new Set(t)).map(r=>typeof r=="string"&&Zv.test(r)?`"${r}"`:`${r}`).join(",");return this.url.searchParams.append(e,`not.in.(${n})`),this}contains(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cs.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cs.{${t.join(",")}}`):this.url.searchParams.append(e,`cs.${JSON.stringify(t)}`),this}containedBy(e,t){return typeof t=="string"?this.url.searchParams.append(e,`cd.${t}`):Array.isArray(t)?this.url.searchParams.append(e,`cd.{${t.join(",")}}`):this.url.searchParams.append(e,`cd.${JSON.stringify(t)}`),this}rangeGt(e,t){return this.url.searchParams.append(e,`sr.${t}`),this}rangeGte(e,t){return this.url.searchParams.append(e,`nxl.${t}`),this}rangeLt(e,t){return this.url.searchParams.append(e,`sl.${t}`),this}rangeLte(e,t){return this.url.searchParams.append(e,`nxr.${t}`),this}rangeAdjacent(e,t){return this.url.searchParams.append(e,`adj.${t}`),this}overlaps(e,t){return typeof t=="string"?this.url.searchParams.append(e,`ov.${t}`):this.url.searchParams.append(e,`ov.{${t.join(",")}}`),this}textSearch(e,t,{config:n,type:r}={}){let s="";r==="plain"?s="pl":r==="phrase"?s="ph":r==="websearch"&&(s="w");const i=n===void 0?"":`(${n})`;return this.url.searchParams.append(e,`${s}fts${i}.${t}`),this}match(e){return Object.entries(e).filter(([t,n])=>n!==void 0).forEach(([t,n])=>{this.url.searchParams.append(t,`eq.${n}`)}),this}not(e,t,n){return this.url.searchParams.append(e,`not.${t}.${n}`),this}or(e,{foreignTable:t,referencedTable:n=t}={}){const r=n?`${n}.or`:"or";return this.url.searchParams.append(r,`(${e})`),this}filter(e,t,n){return this.url.searchParams.append(e,`${t}.${n}`),this}},FP=class{constructor(e,{headers:t={},schema:n,fetch:r,urlLengthLimit:s=8e3,retry:i}){this.url=e,this.headers=new Headers(t),this.schema=n,this.fetch=r,this.urlLengthLimit=s,this.retry=i}cloneRequestState(){return{url:new URL(this.url.toString()),headers:new Headers(this.headers)}}select(e,t){const{head:n=!1,count:r}=t??{},s=n?"HEAD":"GET";let i=!1;const a=(e??"*").split("").map(d=>/\s/.test(d)&&!i?"":(d==='"'&&(i=!i),d)).join(""),{url:l,headers:c}=this.cloneRequestState();return l.searchParams.set("select",a),r&&c.append("Prefer",`count=${r}`),new $o({method:s,url:l,headers:c,schema:this.schema,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}insert(e,{count:t,defaultToNull:n=!0}={}){var r;const s="POST",{url:i,headers:a}=this.cloneRequestState();if(t&&a.append("Prefer",`count=${t}`),n||a.append("Prefer","missing=default"),Array.isArray(e)){const l=e.reduce((c,d)=>c.concat(Object.keys(d)),[]);if(l.length>0){const c=[...new Set(l)].map(d=>`"${d}"`);i.searchParams.set("columns",c.join(","))}}return new $o({method:s,url:i,headers:a,schema:this.schema,body:e,fetch:(r=this.fetch)!==null&&r!==void 0?r:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}upsert(e,{onConflict:t,ignoreDuplicates:n=!1,count:r,defaultToNull:s=!0}={}){var i;const a="POST",{url:l,headers:c}=this.cloneRequestState();if(c.append("Prefer",`resolution=${n?"ignore":"merge"}-duplicates`),t!==void 0&&l.searchParams.set("on_conflict",t),r&&c.append("Prefer",`count=${r}`),s||c.append("Prefer","missing=default"),Array.isArray(e)){const d=e.reduce((u,h)=>u.concat(Object.keys(h)),[]);if(d.length>0){const u=[...new Set(d)].map(h=>`"${h}"`);l.searchParams.set("columns",u.join(","))}}return new $o({method:a,url:l,headers:c,schema:this.schema,body:e,fetch:(i=this.fetch)!==null&&i!==void 0?i:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}update(e,{count:t}={}){var n;const r="PATCH",{url:s,headers:i}=this.cloneRequestState();return t&&i.append("Prefer",`count=${t}`),new $o({method:r,url:s,headers:i,schema:this.schema,body:e,fetch:(n=this.fetch)!==null&&n!==void 0?n:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}delete({count:e}={}){var t;const n="DELETE",{url:r,headers:s}=this.cloneRequestState();return e&&s.append("Prefer",`count=${e}`),new $o({method:n,url:r,headers:s,schema:this.schema,fetch:(t=this.fetch)!==null&&t!==void 0?t:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};function PP(e,t){try{const a=JSON.parse(e);if(a&&typeof a=="object"&&!Array.isArray(a)){var n,r,s,i;return new fa({message:String((n=a.message)!==null&&n!==void 0?n:e),details:(r=a.details)!==null&&r!==void 0?r:"",hint:(s=a.hint)!==null&&s!==void 0?s:"",code:(i=a.code)!==null&&i!==void 0?i:""})}}catch{}return new fa({message:e||t,details:"",hint:"",code:""})}function Xv(e,t,n){var r;const s=e;return{success:!1,error:new fa({message:`${(r=s==null?void 0:s.name)!==null&&r!==void 0?r:"FetchError"}: ${s==null?void 0:s.message}`,details:"",hint:"",code:""}),data:null,count:null,status:t,statusText:n}}var RP=class E2{constructor(t,{headers:n={},schema:r,fetch:s,timeout:i,urlLengthLimit:a=8e3,retry:l}={}){this.url=t,this.headers=new Headers(n),this.schemaName=r,this.urlLengthLimit=a;const c=s??globalThis.fetch;i!==void 0&&i>0?this.fetch=(d,u)=>{const h=new AbortController,f=setTimeout(()=>h.abort(),i),p=u==null?void 0:u.signal;if(p){if(p.aborted)return clearTimeout(f),c(d,u);const v=()=>{clearTimeout(f),h.abort()};return p.addEventListener("abort",v,{once:!0}),c(d,Vi(Vi({},u),{},{signal:h.signal})).finally(()=>{clearTimeout(f),p.removeEventListener("abort",v)})}return c(d,Vi(Vi({},u),{},{signal:h.signal})).finally(()=>clearTimeout(f))}:this.fetch=c,this.retry=l}from(t){if(!t||typeof t!="string"||t.trim()==="")throw new Error("Invalid relation name: relation must be a non-empty string.");return new FP(new URL(`${this.url}/${t}`),{headers:new Headers(this.headers),schema:this.schemaName,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}schema(t){return new E2(this.url,{headers:this.headers,schema:t,fetch:this.fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}async getOpenApiSpec(){var t=this,n;const r=new Headers(t.headers);r.set("Accept","application/openapi+json"),t.schemaName&&r.set("Accept-Profile",t.schemaName);const s={};r.forEach((d,u)=>{s[u]=d});const i=(n=t.fetch)!==null&&n!==void 0?n:globalThis.fetch;let a;try{var l;a=await C2(i,`${t.url}/`,{method:"GET",headers:s},(l=t.retry)!==null&&l!==void 0?l:!0)}catch(d){return Xv(d,0,"")}let c;try{c=await a.text()}catch(d){return Xv(d,a.status,a.statusText)}if(a.ok)try{return{success:!0,error:null,data:JSON.parse(c),count:null,status:a.status,statusText:a.statusText}}catch{}return{success:!1,error:PP(c,a.statusText),data:null,count:null,status:a.status,statusText:a.statusText}}rpc(t,n={},{head:r=!1,get:s=!1,count:i}={}){var a;let l;const c=new URL(`${this.url}/rpc/${t}`);let d;const u=p=>p!==null&&typeof p=="object"&&(!Array.isArray(p)||p.some(u)),h=r&&Object.values(n).some(u);h?(l="POST",d=n):r||s?(l=r?"HEAD":"GET",Object.entries(n).filter(([p,v])=>v!==void 0).map(([p,v])=>[p,Array.isArray(v)?`{${v.join(",")}}`:`${v}
70`]).forEach(([p,v])=>{c.searchParams.append(p,v)})):(l="POST",d=n);const f=new Headers(this.headers);return h?f.set("Prefer",i?`count=${i},return=minimal`:"return=minimal"):i&&f.set("Prefer",`count=${i}`),new $o({method:l,url:c,headers:f,schema:this.schemaName,body:d,fetch:(a=this.fetch)!==null&&a!==void 0?a:fetch,urlLengthLimit:this.urlLengthLimit,retry:this.retry})}};class OP{constructor(){}static detectEnvironment(){var t;if(typeof WebSocket<"u")return{type:"native",wsConstructor:WebSocket};const n=globalThis;if(typeof globalThis<"u"&&typeof n.WebSocket<"u")return{type:"native",wsConstructor:n.WebSocket};const r=typeof global<"u"?global:void 0;if(r&&typeof r.WebSocket<"u")return{type:"native",wsConstructor:r.WebSocket};if(typeof globalThis<"u"&&typeof n.WebSocketPair<"u"&&typeof globalThis.WebSocket>"u")return{type:"cloudflare",error:"Cloudflare Workers detected. WebSocket clients are not supported in Cloudflare Workers.",workaround:"Use Cloudflare Workers WebSocket API for server-side WebSocket handling, or deploy to a different runtime."};if(typeof globalThis<"u"&&n.EdgeRuntime||typeof navigator<"u"&&(!((t=navigator.userAgent)===null||t===void 0)&&t.includes("Vercel-Edge")))return{type:"unsupported",error:"Edge runtime detected (Vercel Edge/Netlify Edge). WebSockets are not supported in edge functions.",workaround:"Use serverless functions or a different deployment target for WebSocket functionality."};const s=globalThis.process;if(s){const i=s.versions;if(i&&i.node)return{type:"unsupported",error:"Node.js detected but native WebSocket not found.",workaround:"Ensure you are running Node.js 22+ or provide a WebSocket implementation via the transport option."}}return{type:"unsupported",error:"Unknown JavaScript runtime without WebSocket support.",workaround:"Ensure you're running in a supported environment (browser, Node.js, Deno) or provide a custom WebSocket implementation."}}static getWebSocketConstructor(){const t=this.detectEnvironment();if(t.wsConstructor)return t.wsConstructor;let n=t.error||"WebSocket not supported in this environment.";throw t.workaround&&(n+=` 71 72Suggested solution: ${t.workaround}`),new Error(n)}static isWebSocketSupported(){try{return this.detectEnvironment().type==="native"}catch{return!1}}}const MP="2.117.2",IP=`realtime-js/${MP}`,LP="1.0.0",j2="2.0.0",DP=j2,zP=1e4,BP=15e3,WP=1e4,HP=100,Zs={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},T2={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave",access_token:"access_token"},ug={connecting:"connecting",open:"open",closing:"closing",closed:"closed"};class $P{constructor(t){this.HEADER_LENGTH=1,this.USER_BROADCAST_PUSH_META_LENGTH=6,this.KINDS={userBroadcastPush:3,userBroadcast:4},this.BINARY_ENCODING=0,this.JSON_ENCODING=1,this.BROADCAST_EVENT="broadcast",this.allowedMetadataKeys=[],this.allowedMetadataKeys=t??[]}encode(t,n){if(t.event===this.BROADCAST_EVENT&&!(t.payload instanceof ArrayBuffer)&&typeof t.payload.event=="string")return n(this._binaryEncodeUserBroadcastPush(t));let r=[t.join_ref,t.ref,t.topic,t.event,t.payload];return n(JSON.stringify(r))}_binaryEncodeUserBroadcastPush(t){var n;return this._isArrayBuffer((n=t.payload)===null||n===void 0?void 0:n.payload)?this._encodeBinaryUserBroadcastPush(t):this._encodeJsonUserBroadcastPush(t)}_encodeBinaryUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:new ArrayBuffer(0);return this._encodeUserBroadcastPush(t,this.BINARY_ENCODING,s)}_encodeJsonUserBroadcastPush(t){var n,r;const s=(r=(n=t.payload)===null||n===void 0?void 0:n.payload)!==null&&r!==void 0?r:{},a=new TextEncoder().encode(JSON.stringify(s)).buffer;return this._encodeUserBroadcastPush(t,this.JSON_ENCODING,a)}_encodeUserBroadcastPush(t,n,r){var s,i;const a=new TextEncoder,l=a.encode(t.topic),c=a.encode((s=t.ref)!==null&&s!==void 0?s:""),d=a.encode((i=t.join_ref)!==null&&i!==void 0?i:""),u=a.encode(t.payload.event),h=this.allowedMetadataKeys?this._pick(t.payload,this.allowedMetadataKeys):{},f=a.encode(Object.keys(h).length===0?"":JSON.stringify(h));if(d.length>255)throw new Error(`joinRef length ${d.length} exceeds maximum of 255`);if(c.length>255)throw new Error(`ref length ${c.length} exceeds maximum of 255`);if(l.length>255)throw new Error(`topic length ${l.length} exceeds maximum of 255`);if(u.length>255)throw new Error(`userEvent length ${u.length} exceeds maximum of 255`);if(f.length>255)throw new Error(`metadata length ${f.length} exceeds maximum of 255`);const p=this.USER_BROADCAST_PUSH_META_LENGTH+d.length+c.length+l.length+u.length+f.length,v=new ArrayBuffer(this.HEADER_LENGTH+p),y=new DataView(v),x=new Uint8Array(v);let g=0;y.setUint8(g++,this.KINDS.userBroadcastPush),y.setUint8(g++,d.length),y.setUint8(g++,c.length),y.setUint8(g++,l.length),y.setUint8(g++,u.length),y.setUint8(g++,f.length),y.setUint8(g++,n),x.set(d,g),g+=d.length,x.set(c,g),g+=c.length,x.set(l,g),g+=l.length,x.set(u,g),g+=u.length,x.set(f,g),g+=f.length;var m=new Uint8Array(v.byteLength+r.byteLength);return m.set(new Uint8Array(v),0),m.set(new Uint8Array(r),v.byteLength),m.buffer}decode(t,n){if(this._isArrayBuffer(t)){let r=this._binaryDecode(t);return n(r)}if(typeof t=="string"){const r=JSON.parse(t),[s,i,a,l,c]=r;
72return n({join_ref:s,ref:i,topic:a,event:l,payload:c})}return n({})}_binaryDecode(t){const n=new DataView(t),r=n.getUint8(0),s=new TextDecoder;switch(r){case this.KINDS.userBroadcast:return this._decodeUserBroadcast(t,n,s)}}_decodeUserBroadcast(t,n,r){const s=n.getUint8(1),i=n.getUint8(2),a=n.getUint8(3),l=n.getUint8(4);let c=this.HEADER_LENGTH+4;const d=r.decode(t.slice(c,c+s));c=c+s;const u=r.decode(t.slice(c,c+i));c=c+i;const h=r.decode(t.slice(c,c+a));c=c+a;const f=t.slice(c,t.byteLength),p=l===this.JSON_ENCODING?JSON.parse(r.decode(f)):f,v={type:this.BROADCAST_EVENT,event:u,payload:p};return a>0&&(v.meta=JSON.parse(h)),{join_ref:null,ref:null,topic:d,event:this.BROADCAST_EVENT,payload:v}}_isArrayBuffer(t){var n;return t instanceof ArrayBuffer||((n=t==null?void 0:t.constructor)===null||n===void 0?void 0:n.name)==="ArrayBuffer"}_pick(t,n){return!t||typeof t!="object"?{}:Object.fromEntries(Object.entries(t).filter(([r])=>n.includes(r)))}}var nt;(function(e){e.abstime="abstime",e.bool="bool",e.date="date",e.daterange="daterange",e.float4="float4",e.float8="float8",e.int2="int2",e.int4="int4",e.int4range="int4range",e.int8="int8",e.int8range="int8range",e.json="json",e.jsonb="jsonb",e.money="money",e.numeric="numeric",e.oid="oid",e.reltime="reltime",e.text="text",e.time="time",e.timestamp="timestamp",e.timestamptz="timestamptz",e.timetz="timetz",e.tsrange="tsrange",e.tstzrange="tstzrange"})(nt||(nt={}));const ex=(e,t,n={})=>{var r;const s=(r=n.skipTypes)!==null&&r!==void 0?r:[];return t?Object.keys(t).reduce((i,a)=>(i[a]=UP(a,e,t,s),i),{}):{}},UP=(e,t,n,r)=>{const s=t.find(l=>
vendor: 5,530 bytes, line 72
72l.name===e),i=s==null?void 0:s.type,a=n[e];return i&&!r.includes(i)?A2(i,a):hg(a)},A2=(e,t)=>{if(e.charAt(0)==="_"){const n=e.slice(1,e.length);return KP(t,n)}switch(e){case nt.bool:return qP(t);case nt.float4:case nt.float8:case nt.int2:case nt.int4:case nt.int8:case nt.numeric:case nt.oid:return VP(t);case nt.json:case nt.jsonb:return GP(t);case nt.timestamp:return JP(t);case nt.abstime:case nt.date:case nt.daterange:case nt.int4range:case nt.int8range:case nt.money:case nt.reltime:case nt.text:case nt.time:case nt.timestamptz:case nt.timetz:case nt.tsrange:case nt.tstzrange:return hg(t);default:return hg(t)}},hg=e=>e,qP=e=>{switch(e){case"t":return!0;case"f":return!1;default:return e}},VP=e=>{if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return t}return e},GP=e=>{if(typeof e=="string")try{return JSON.parse(e)}catch{return e}return e},KP=(e,t)=>{if(typeof e!="string")return e;const n=e.length-1,r=e[n];if(e[0]==="{"&&r==="}"){let i;const a=e.slice(1,n);try{i=JSON.parse("["+a+"]")}catch{i=a?a.split(","):[]}return i.map(l=>A2(t,l))}return e},JP=e=>typeof e=="string"?e.replace(" ","T"):e,N2=e=>{const t=new URL(e);return t.protocol=t.protocol.replace(/^ws/i,"http"),t.pathname=t.pathname.replace(/\/+$/,"").replace(/\/socket\/websocket$/i,"").replace(/\/socket$/i,"").replace(/\/websocket$/i,""),t.pathname===""||t.pathname==="/"?t.pathname="/api/broadcast":t.pathname=t.pathname+"/api/broadcast",t.href};var ma=e=>typeof e=="function"?e:function(){return e},YP=typeof self<"u"?self:null,Uo=typeof window<"u"?window:null,$r=YP||Uo||globalThis,QP="2.0.0",ZP=1e4,XP=1e3,eR=100,Gr={connecting:0,open:1,closing:2,closed:3},Tn={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},fs={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},pg={longpoll:"longpoll",websocket:"websocket"},tR={complete:4},fg="base64url.bearer.phx.",Rd=class{constructor(e,t,n,r){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1,this.ref=void 0}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}destroy(){this.cancelRefEvent(),this.cancelTimeout()}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(r=>r.status===e).forEach(r=>r.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},F2=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=void 0,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},nR=class{constructor(e,t,n){this.state=Tn.closed,this.topic=e,this.params=ma(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Rd(this,fs.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new F2(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Tn.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",r=>{this.state=Tn.errored,this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic}`),this.state=Tn.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Tn.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic}`,this.joinPush.timeout),new Rd(this,fs.leave,ma({}),this.timeout).send(),this.state=Tn.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(fs.reply,(r,s)=>{this.trigger(this.replyEventName(s),r)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}
vendor: 19,019 bytes, lines 72-73
72teardown(){this.pushBuffer.forEach(e=>e.destroy()),this.pushBuffer=[],this.rejoinTimer.reset(),this.joinPush.destroy(),this.state=Tn.closed,this.bindings=[]}onClose(e){this.on(fs.close,e)}onError(e){return this.on(fs.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new Rd(this,e,function(){return t},n);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Tn.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(fs.close,"leave")},n=new Rd(this,fs.leave,ma({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}filterBindings(e,t,n){return!0}isMember(e,t,n,r){return this.topic!==e?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Tn.joining,this.joinPush.resend(e))}trigger(e,t,n,r){let s=this.onMessage(e,t,n,r);if(t&&!s)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let i=this.bindings.filter(a=>a.event===e&&this.filterBindings(a,t,n));for(let a=0;a<i.length;a++)i[a].callback(s,n,r||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Tn.closed}isErrored(){return this.state===Tn.errored}isJoined(){return this.state===Tn.joined}isJoining(){return this.state===Tn.joining}isLeaving(){return this.state===Tn.leaving}},Yu=class{static request(e,t,n,r,s,i,a){if($r.XDomainRequest){let l=new $r.XDomainRequest;return this.xdomainRequest(l,e,t,r,s,i,a)}else if($r.XMLHttpRequest){let l=new $r.XMLHttpRequest;return this.xhrRequest(l,e,t,n,r,s,i,a)}else{if($r.fetch&&$r.AbortController)return this.fetchRequest(e,t,n,r,s,i,a);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,r,s,i,a){let l={method:e,headers:n,body:r},c=null;return s&&(c=new AbortController,setTimeout(()=>c.abort(),s),l.signal=c.signal),$r.fetch(t,l).then(d=>d.text()).then(d=>this.parseJSON(d)).then(d=>a&&a(d)).catch(d=>{d.name==="AbortError"&&i?i():a&&a(null)}),c}static xdomainRequest(e,t,n,r,s,i,a){return e.timeout=s,e.open(t,n),e.onload=()=>{let l=this.parseJSON(e.responseText);a&&a(l)},i&&(e.ontimeout=i),e.onprogress=()=>{},e.send(r),e}static xhrRequest(e,t,n,r,s,i,a,l){e.open(t,n,!0),e.timeout=i;for(let[c,d]of Object.entries(r))e.setRequestHeader(c,d);return e.onerror=()=>l&&l(null),e.onreadystatechange=()=>{if(e.readyState===tR.complete&&l){let c=this.parseJSON(e.responseText);l(c)}},a&&(e.ontimeout=a),e.send(s),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let s=t?`${t}[${r}]`:r,i=e[r];typeof i=="object"?n.push(this.serialize(i,s)):n.push(encodeURIComponent(s)+"="+encodeURIComponent(i))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},rR=e=>{let t="",n=new Uint8Array(e),r=n.byteLength;for(let s=0;s<r;s++)t+=String.fromCharCode(n[s]);return btoa(t)},Mo=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(fg)&&(this.authToken=atob(t[1].slice(fg.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Gr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+pg.websocket),"$1/"+pg.longpoll)}endpointURL(){return Yu.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Gr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Gr.open||this.readyState===Gr.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:r,messages:s}=t;if(n===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=r}else n=0;switch(n){case 200:s.forEach(i=>{setTimeout(()=>this.onmessage({data:i}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Gr.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=rR(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;const n=t+eR,r=e.slice(t,n);this.ajax("POST",{"Content-Type":"application/x-ndjson"},r.join(` 73`),()=>this.onerror("timeout"),s=>{!s||s.status!==200?(this.awaitingBatchAck=!1,this.onerror(s&&s.status),this.closeAndRetry(1011,"internal server error",!1)):n<e.length?this.batchSend(e,n):this.batchBuffer.length>0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,n){for(let s of this.reqs)s.abort();this.readyState=Gr.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(e,t,n,r,s){let i,a=()=>{this.reqs.delete(i),r()};i=Yu.request(e,this.endpointURL(),t,n,this.timeout,a,l=>{this.reqs.delete(i),this.isActive()&&s(l)}),this.reqs.add(i)}},sR=class Il{constructor(t,n={}){let r=n.events||{state:"presence_state",diff:"presence_diff"};this.state=Object.create(null),this.pendingDiffs=[],this.channel=t,this.joinRef=null,this.caller={onJoin:function(){},onLeave:function(){},onSync:function(){}},this.channel.on(r.state,s=>{let{onJoin:i,onLeave:a,onSync:l}=this.caller;this.joinRef=this.channel.joinRef(),this.state=Il.syncState(this.state,s,i,a),this.pendingDiffs.forEach(c=>{this.state=Il.syncDiff(this.state,c,i,a)}),this.pendingDiffs=[],l()}),this.channel.on(r.diff,s=>{let{onJoin:i,onLeave:a,onSync:l}=this.caller;this.inPendingSyncState()?this.pendingDiffs.push(s):(this.state=Il.syncDiff(this.state,s,i,a),l())})}onJoin(t){this.caller.onJoin=t}onLeave(t){this.caller.onLeave=t}onSync(t){this.caller.onSync=t}list(t){return Il.list(this.state,t)}inPendingSyncState(){return!this.joinRef||this.joinRef!==this.channel.joinRef()}static syncState(t,n,r,s){let i=this.toNullProtoObj(this.clone(t));n=this.toNullProtoObj(n);let a=Object.create(null),l=Object.create(null);return this.map(i,(c,d)=>{n[c]||(l[c]=d)}),this.map(n,(c,d)=>{let u=i[c];if(u){let h=d.metas.map(y=>y.phx_ref),f=u.metas.map(y=>y.phx_ref),p=d.metas.filter(y=>f.indexOf(y.phx_ref)<0),v=u.metas.filter(y=>h.indexOf(y.phx_ref)<0);p.length>0&&(a[c]=d,a[c].metas=p),v.length>0&&(l[c]=this.clone(u),l[c].metas=v)}else a[c]=d}),this.syncDiff(i,{joins:a,leaves:l},r,s)}static syncDiff(t,n,r,s){t=this.toNullProtoObj(t);let{joins:i,leaves:a}=this.clone(n);return r||(r=function(){}),s||(s=function(){}),this.map(i,(l,c)=>{let d=t[l];if(t[l]=this.clone(c),d){let u=t[l].metas.map(f=>f.phx_ref),h=d.metas.filter(f=>u.indexOf(f.phx_ref)<0);t[l].metas.unshift(...h)}r(l,d,c)}),this.map(a,(l,c)=>{let d=t[l];if(!d)return;let u=c.metas.map(h=>h.phx_ref);d.metas=d.metas.filter(h=>u.indexOf(h.phx_ref)<0),s(l,d,c),d.metas.length===0&&delete t[l]}),t}static list(t,n){return n||(n=function(r,s){return s}),this.map(t,(r,s)=>n(r,s))}static map(t,n){return Object.getOwnPropertyNames(t).map(r=>n(r,t[r]))}static toNullProtoObj(t){if(Object.getPrototypeOf(t)===null)return t;let n=Object.create(null);return Object.getOwnPropertyNames(t).forEach(r=>{n[r]=t[r]}),n}static clone(t){return JSON.parse(JSON.stringify(t))}},Od={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,r,s,i,a]=JSON.parse(e);return t({join_ref:n,ref:r,topic:s,event:i,payload:a})}},binaryEncode(e){let{join_ref:t,ref:n,event:r,topic:s,payload:i}=e,a=new TextEncoder,l=a.encode(t),c=a.encode(n),d=a.encode(s),u=a.encode(r);this.assertFieldSize(l.byteLength,"join_ref"),this.assertFieldSize(c.byteLength,"ref"),this.assertFieldSize(d.byteLength,"topic"),this.assertFieldSize(u.byteLength,"event");let h=this.META_LENGTH+l.byteLength+c.byteLength+d.byteLength+u.byteLength,f=new ArrayBuffer(this.HEADER_LENGTH+h),p=new Uint8Array(f),v=new DataView(f),y=0;v.setUint8(y++,this.KINDS.push),v.setUint8(y++,l.byteLength),v.setUint8(y++,c.byteLength),v.setUint8(y++,d.byteLength),v.setUint8(y++,u.byteLength),p.set(l,y),y+=l.byteLength,p.set(c,y),y+=c.byteLength,p.set(d,y),y+=d.byteLength,p.set(u,y),y+=u.byteLength;var x=new Uint8Array(f.byteLength+i.byteLength);return x.set(p,0),x.set(new Uint8Array(i),f.byteLength),x.buffer},assertFieldSize(e,t){if(e>255)throw new Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),r=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,r);case this.KINDS.reply:return this.decodeReply(e,t,r);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,r)}},decodePush(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),a=this.HEADER_LENGTH+this.META_LENGTH-1,l=n.decode(e.slice(a,a+r));a=a+r;let c=n.decode(e.slice(a,a+s));a=a+s;let d=n.decode(e.slice(a,a+i));a=a+i;let u=e.slice(a,e.byteLength);return{join_ref:l,ref:null,topic:c,event:d,payload:u}},decodeReply(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=t.getUint8(3),a=t.getUint8(4),l=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(l,l+r));l=l+r;let d=n.decode(e.slice(l,l+s));l=l+s;let u=n.decode(e.slice(l,l+i));l=l+i;let h=n.decode(e.slice(l,l+a));l=l+a;let f=e.slice(l,e.byteLength),p={status:h,response:f};return{join_ref:c,ref:d,topic:u,event:fs.reply,payload:p}},decodeBroadcast(e,t,n){let r=t.getUint8(1),s=t.getUint8(2),i=this.HEADER_LENGTH+2,a=n.decode(e.slice(i,i+r));i=i+r;let l=n.decode(e.slice(i,i+s));i=i+s;let c=e.slice(i,e.byteLength);return{join_ref:null,ref:null,topic:a,event:l,payload:c}}},iR=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||ZP,this.transport=t.transport||$r.WebSocket||Mo,this.conn=void 0,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null;let n=null;try{n=$r&&$r.sessionStorage}catch{}this.sessionStore=t.sessionStorage||n,this.establishedConnections=0,this.defaultEncoder=Od.encode.bind(Od),this.defaultDecoder=Od.decode.bind(Od),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.encode=void 0,this.decode=void 0,this.transport!==Mo?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let r=null;Uo&&Uo.addEventListener&&(Uo.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),r=this.connectClock)}),Uo.addEventListener("pageshow",s=>{r===this.connectClock&&(r=null,this.connect())}),Uo.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.autoSendHeartbeat=t.autoSendHeartbeat??!0,this.heartbeatCallback=t.heartbeatCallback??(()=>{}),this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,i,a)=>{console.log(`${s}: ${i}`,a)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=ma(t.params||{}),this.endPoint=`${e}/${pg.websocket}`,this.vsn=t.vsn||QP,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.heartbeatSentAt=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new F2(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(async()=>{t.beforeReconnect&&await t.beforeReconnect(),this.connect()})},this.reconnectAfterMs),this.authToken=t.authToken&&ma(t.authToken)}getLongPollTransport(){return Mo}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Yu.appendParams(Yu.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=ma(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Mo?this.connectWithFallback(Mo,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}onHeartbeat(e){this.heartbeatCallback=e}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let r=this.onMessage(s=>{s.ref===t&&(this.off([r]),e(Date.now()-n))});return!0}transportName(e){switch(e){case Mo:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${fg}${btoa(this.authToken()).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,r=!0,s,i,a=this.transportName(e),l=c=>{this.log("transport",`falling back to ${a}...`,c),this.off([s,i]),r=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${a}`))return l("memorized");this.fallbackTimer=setTimeout(l,t),i=this.onError(c=>{this.log("transport","error",c),r&&!n&&(clearTimeout(this.fallbackTimer),l(c))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(n=!0,!r){let c=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${c}`,"true"),this.log("transport",`established ${c} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(l,t),this.ping(c=>{this.log("transport","connected to primary after",c),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.autoSendHeartbeat&&this.resetHeartbeat(),this.triggerStateCallbacks("open")}heartbeatTimeout(){if(this.pendingHeartbeatRef){this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection");try{this.heartbeatCallback("timeout")}catch(e){this.log("error","error in heartbeat callback",e)}this.triggerChanError(new Error("heartbeat timeout")),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),XP,"heartbeat timeout")}}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();const r=this.conn;this.waitForBufferDone(r,()=>{t?r.close(t,n||""):r.close(),this.waitForSocketClosed(r,()=>{this.conn===r&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,n=1){if(n===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,n+1)},150*n)}waitForSocketClosed(e,t,n=1){if(n===5||e.readyState===Gr.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,n+1)},150*n)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{}),this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(e),this.clearHeartbeats(),this.closeWasClean||this.reconnectTimer.scheduleTimeout(),this.triggerStateCallbacks("close",e)}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,n=this.establishedConnections;this.triggerStateCallbacks("error",e,t,n),(t===this.transport||n>0)&&this.triggerChanError(e)}
vendor: 4,209 bytes, line 73
73triggerChanError(e){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(fs.error,e)})}connectionState(){switch(this.conn&&this.conn.readyState){case Gr.connecting:return"connecting";case Gr.open:return"open";case Gr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new nR(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:r,ref:s,join_ref:i}=e;this.log("push",`${t} ${n} (${i}, ${s})`,r)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){if(!this.isConnected()){try{this.heartbeatCallback("disconnected")}catch(e){this.log("error","error in heartbeat callback",e)}return}if(this.pendingHeartbeatRef){this.heartbeatTimeout();return}this.pendingHeartbeatRef=this.makeRef(),this.heartbeatSentAt=Date.now(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef});try{this.heartbeatCallback("sent")}catch(e){this.log("error","error in heartbeat callback",e)}this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs)}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:r,payload:s,ref:i,join_ref:a}=t;if(i&&i===this.pendingHeartbeatRef){const l=this.heartbeatSentAt?Date.now()-this.heartbeatSentAt:void 0;this.clearHeartbeats();try{this.heartbeatCallback(s.status==="ok"?"ok":"error",l)}catch(c){this.log("error","error in heartbeat callback",c)}this.pendingHeartbeatRef=null,this.heartbeatSentAt=null,this.autoSendHeartbeat&&(this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}this.hasLogger()&&this.log("receive",`${s.status||""} ${n} ${r} ${i&&"("+i+")"||""}`.trim(),s);for(let l=0;l<this.channels.length;l++){const c=this.channels[l];c.isMember(n,r,s,a)&&c.trigger(r,s,i,a)}this.triggerStateCallbacks("message",t)})}triggerStateCallbacks(e,...t){try{this.stateChangeCallbacks[e].forEach(([n,r])=>{try{r(...t)}catch(s){this.log("error",`error in ${e} callback`,s)}})}catch(n){this.log("error",`error triggering ${e} callbacks`,n)}}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};class Ql{constructor(t,n){const r=aR(n);this.presence=new sR(t.getChannel(),r),this.presence.onJoin((s,i,a)=>{const l=Ql.onJoinPayload(s,i,a);t.getChannel().trigger("presence",l)}),this.presence.onLeave((s,i,a)=>{const l=Ql.onLeavePayload(s,i,a);t.getChannel().trigger("presence",l)}),this.presence.onSync(()=>{t.getChannel().trigger("presence",{event:"sync"})})}get state(){return Ql.transformState(this.presence.state)}static transformState(t){return t=oR(t),Object.getOwnPropertyNames(t).reduce((n,r)=>{const s=t[r];return n[r]=uu(s),n},{})}static onJoinPayload(t,n,r){const s=tx(n),i=uu(r);return{event:"join",key:t,currentPresences:s,newPresences:i}}static onLeavePayload(t,n,r){const s=tx(n),i=uu(r);return{event:"leave",key:t,currentPresences:s,leftPresences:i}}}function uu(e){return e.metas.map(t=>{const n=Object.getOwnPropertyDescriptors(t),r=Object.defineProperties({},n);return r.presence_ref=r.phx_ref,delete r.phx_ref,delete r.phx_ref_prev,r})}function oR(e){return JSON.parse(JSON.stringify(e))}function aR(e){return(e==null?void 0:e.events)&&{events:e.events}}function tx(e){return e!=null&&e.metas?uu(e):[]}var nx;(function(e){e.SYNC="sync",e.JOIN="join",e.LEAVE="leave"})(nx||(nx={}));class lR{get state(){return this.presenceAdapter.state}constructor(t,n){this.channel=t,this.presenceAdapter=new Ql(this.channel.channelAdapter,n)}}function cR(e){if(e instanceof Error)return e;if(typeof e=="string")return new Error(e);
73if(e&&typeof e=="object"){const t=e;if(typeof t.code=="number"){const n=typeof t.reason=="string"&&t.reason?` (${t.reason})`:"";return new Error(`socket closed: ${t.code}${n}`,{cause:e})}return new Error("channel error: transport failure",{cause:e})}return new Error("channel error: connection lost")}class dR{constructor(t,n,r){const s=uR(r);this.channel=t.getSocket().channel(n,s),this.socket=t}get state(){return this.channel.state}set state(t){this.channel.state=t}get joinedOnce(){return this.channel.joinedOnce}get joinPush(){return this.channel.joinPush}get rejoinTimer(){return this.channel.rejoinTimer}on(t,n){return this.channel.on(t,n)}off(t,n){this.channel.off(t,n)}subscribe(t){return this.channel.join(t)}unsubscribe(t){return this.channel.leave(t)}teardown(){this.channel.teardown()}onClose(t){this.channel.onClose(t)}onError(t){return this.channel.onError(t)}push(t,n,r){let s;try{s=this.channel.push(t,n,r)}catch{throw new Error(`tried to push '${t}' to '${this.channel.topic}' before joining. Use channel.subscribe() before pushing events`)}if(this.channel.pushBuffer.length>HP){const i=this.channel.pushBuffer.shift();i.cancelTimeout(),this.socket.log("channel",`discarded push due to buffer overflow: ${i.event}`,i.payload())}return s}updateJoinPayload(t){const n=this.channel.joinPush.payload();this.channel.joinPush.payload=()=>Object.assign(Object.assign({},n),t)}canPush(){return this.socket.isConnected()&&this.state===Zs.joined}isJoined(){return this.state===Zs.joined}isJoining(){return this.state===Zs.joining}isClosed(){return this.state===Zs.closed}isLeaving(){return this.state===Zs.leaving}updateFilterBindings(t){this.channel.filterBindings=t}updatePayloadTransform(t){this.channel.onMessage=t}getChannel(){return this.channel}}function uR(e){return{config:Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},e.config)}}const hR=/[,()"\\]/,pR=e=>hR.test(e)||e!==e.trim(),fR=e=>`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`,rx=e=>{const t=e===null?"null":String(e);return pR(t)?fR(t):t},mR=e=>e===null?"null":String(e),gR=(e,t)=>{if(e==="in"){const n=Array.isArray(t)?t:[t];if(n.length===0)throw new Error("Realtime `in` filter requires at least one value.");return`in.(${Array.from(new Set(n)).map(s=>rx(s)).join(",")})`}return e==="is"?`is.${mR(t)}`:`${e}.${rx(t)}`};class yR{constructor(){this.filters=[]}add(t,n,r,s=!1){const i=s?"not.":"";return this.filters.push(`${t}=${i}${gR(n,r)}`),this}eq(t,n){return this.add(t,"eq",n)}neq(t,n){return this.add(t,"neq",n)}gt(t,n){return this.add(t,"gt",n)}gte(t,n){return this.add(t,"gte",n)}lt(t,n){return this.add(t,"lt",n)}lte(t,n){return this.add(t,"lte",n)}in(t,n){return this.add(t,"in",n)}like(t,n){return this.add(t,"like",n)}ilike(t,n){return this.add(t,"ilike",n)}match(t,n){return this.add(t,"match",n)}imatch(t,n){return this.add(t,"imatch",n)}is(t,n){return this.add(t,"is",n)}isDistinct(t,n){return this.add(t,"isdistinct",n)}not(t,n,r){return this.add(t,n,r,!0)}build(){return this.filters.join(",")}toString(){return this.build()}}var sx;(function(e){e.ALL="*",e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"})(sx||(sx={}));var Hi;(function(e){e.BROADCAST="broadcast",e.PRESENCE="presence",e.POSTGRES_CHANGES="postgres_changes",e.SYSTEM="system"})(Hi||(Hi={}));var ms;(function(e){e.SUBSCRIBED="SUBSCRIBED",e.TIMED_OUT="TIMED_OUT",e.CLOSED="CLOSED",e.CHANNEL_ERROR="CHANNEL_ERROR"})(ms||(ms={}));class gs{get state(){return this.channelAdapter.state}set state(t){this.channelAdapter.state=t}get joinedOnce(){return this.channelAdapter.joinedOnce}get timeout(){return this.socket.timeout}get joinPush(){return this.channelAdapter.joinPush}get rejoinTimer(){return this.channelAdapter.rejoinTimer}constructor(t,n={config:{}},r){var s,i;if(this.topic=t,this.params=n,this.socket=r,this.bindings={},this.subTopic=t.replace(/^realtime:/i,""),this.params.config=Object.assign({broadcast:{ack:!1,self:!1},presence:{key:"",enabled:!1},private:!1},n.config),this.channelAdapter=new dR(this.socket.socketAdapter,t,this.params),this.presence=new lR(this),this._onClose(()=>{this.socket._remove(this)}),this._updateFilterTransform(),this.broadcastEndpointURL=N2(this.socket.socketAdapter.endPointURL()),this.private=this.params.config.private||!1,!this.private&&(!((i=(s=this.params.config)===null||s===void 0?void 0:s.broadcast)===null||i===void 0)&&i.replay))throw new Error(`tried to use replay on public channel '${this.topic}'. It must be a private channel.`)}subscribe(t,n=this.timeout){var r,s,i,a;if(this.socket.isConnected()||this.socket.connect(),this.channelAdapter.isClosed()){const{config:{broadcast:l,presence:c,private:d,postgres_changes_options:u}}=this.params,h=(s=(r=this.bindings.postgres_changes)===null||r===void 0?void 0:r.map(x=>x.filter))!==null&&s!==void 0?s:[],f=!!this.bindings[Hi.PRESENCE]&&this.bindings[Hi.PRESENCE].length>0||((i=this.params.config.presence)===null||i===void 0?void 0:i.enabled)===!0,p={},v=Object.assign({broadcast:l,presence:Object.assign(Object.assign({},c),{enabled:f}),postgres_changes:h,private:d},u?{postgres_changes_options:u}:{});this.socket.accessTokenValue&&(p.access_token=this.socket.accessTokenValue),this._onError(x=>{t==null||t(ms.CHANNEL_ERROR,cR(x))}),this._onClose(()=>t==null?void 0:t(ms.CLOSED)),this.updateJoinPayload(Object.assign({config:v},p)),this._updateFilterMessage();const y=u!=null&&u.wait&&h.length>0?Math.max(n,((a=u.timeout)!==null&&a!==void 0?a:BP)+WP):n;this.channelAdapter.subscribe(y).receive("ok",async({postgres_changes:x})=>{if(this.socket._isManualToken()||this.socket.setAuth(),x===void 0){t==null||t(ms.SUBSCRIBED);return}this._updatePostgresBindings(x,t)}).receive("error",x=>{this.state=Zs.errored;const g=Object.values(x).join(", ")||"error";t==null||t(ms.CHANNEL_ERROR,new Error(g,{cause:x}))}).receive("timeout",()=>{t==null||t(ms.TIMED_OUT)})}return this}_updatePostgresBindings(t,n){var r;const s=this.bindings.postgres_changes,i=(r=s==null?void 0:s.length)!==null&&r!==void 0?r:0,a=[];for(let l=0;l<i;l++){const c=s[l],{filter:{event:d,schema:u,table:h,filter:f}}=c,p=t&&t[l];if(p&&p.event===d&&gs.isFilterValueEqual(p.schema,u)&&gs.isFilterValueEqual(p.table,h)&&gs.isFilterValueEqual(p.filter,f))a.push(Object.assign(Object.assign({},c),{id:p.id}));else{this.unsubscribe(),this.state=Zs.errored,n==null||n(ms.CHANNEL_ERROR,new Error("mismatch between server and client bindings for postgres changes"));return}}this.bindings.postgres_changes=a,this.state!=Zs.errored&&n&&n(ms.SUBSCRIBED)}presenceState(){return this.presence.state}async track(t,n={}){return await this.send({type:"presence",event:"track",payload:t},n)}async untrack(t={}){return await this.send({type:"presence",event:"untrack"},t)}on(t,n,r){const s=this.channelAdapter.isJoined()||this.channelAdapter.isJoining(),i=t===Hi.PRESENCE||t===Hi.POSTGRES_CHANGES;if(s&&i)throw this.socket.log("channel",`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`),new Error(`cannot add \`${t}\` callbacks for ${this.topic} after \`subscribe()\`.`);return this._on(t,n,r)}async httpSend(t,n,r={}){var s;if(n==null)return Promise.reject(new Error("Payload is required for httpSend()"));const i=n instanceof ArrayBuffer||ArrayBuffer.isView(n),a={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":i?"application/octet-stream":"application/json"};this.socket.accessTokenValue&&(a.Authorization=`Bearer ${this.socket.accessTokenValue}`);const l=new URL(this.broadcastEndpointURL);l.pathname+=`/${encodeURIComponent(this.subTopic)}/events/${encodeURIComponent(t)}`,this.private&&l.searchParams.set("private","true");const c={method:"POST",headers:a,body:i?n:JSON.stringify(n)},d=await this._fetchWithTimeout(l.toString(),c,(s=r.timeout)!==null&&s!==void 0?s:this.timeout);if(d.status===202)return{success:!0};if(d.status===404)return Promise.reject(new Error("httpSend() requires Realtime server v2.97.0 or newer; the endpoint returned 404. Update your Supabase CLI to a recent version, or upgrade the Realtime server in your self-hosted setup. See https://github.com/supabase/supabase-js/blob/master/packages/core/realt
73ime-js/migrations/httpsend-server-version.md"));let u=d.statusText;try{const h=await d.json();u=h.error||h.message||u}catch{}return Promise.reject(new Error(u))}async send(t,n={}){var r,s;if(!this.channelAdapter.canPush()&&t.type==="broadcast"){const i="Realtime send() is automatically falling back to REST API. This behavior will be deprecated in the future. Please use httpSend() explicitly for REST delivery.";this.socket.hasLogger()?this.socket.log("channel",i):console.warn(i);const{event:a,payload:l}=t,c={apikey:this.socket.apiKey?this.socket.apiKey:"","Content-Type":"application/json"};this.socket.accessTokenValue&&(c.Authorization=`Bearer ${this.socket.accessTokenValue}`);const d={method:"POST",headers:c,body:JSON.stringify({messages:[{topic:this.subTopic,event:a,payload:l,private:this.private}]})};try{const u=await this._fetchWithTimeout(this.broadcastEndpointURL,d,(r=n.timeout)!==null&&r!==void 0?r:this.timeout);return await((s=u.body)===null||s===void 0?void 0:s.cancel()),u.ok?"ok":"error"}catch(u){return u instanceof Error&&u.name==="AbortError"?"timed out":"error"}}else return new Promise(i=>{var a,l,c;const d=this.channelAdapter.push(t.type,t,n.timeout||this.timeout);t.type==="broadcast"&&!(!((c=(l=(a=this.params)===null||a===void 0?void 0:a.config)===null||l===void 0?void 0:l.broadcast)===null||c===void 0)&&c.ack)&&i("ok"),d.receive("ok",()=>i("ok")),d.receive("error",()=>i("error")),d.receive("timeout",()=>i("timed out"))})}updateJoinPayload(t){this.channelAdapter.updateJoinPayload(t)}async unsubscribe(t=this.timeout){return new Promise(n=>{this.channelAdapter.unsubscribe(t).receive("ok",()=>n("ok")).receive("timeout",()=>n("timed out")).receive("error",()=>n("error"))})}teardown(){this.channelAdapter.teardown()}async _fetchWithTimeout(t,n,r){const s=new AbortController,i=setTimeout(()=>s.abort(),r),a=await this.socket.fetch(t,Object.assign(Object.assign({},n),{signal:s.signal}));return clearTimeout(i),a}_on(t,n,r){var s;const i=t.toLocaleLowerCase(),a=n==null?void 0:n.filter;if((a instanceof yR||typeof a=="object"&&a!==null&&typeof a.build=="function")&&(n=Object.assign(Object.assign({},n),{filter:a.build()})),i===Hi.POSTGRES_CHANGES&&((s=this.bindings[i])===null||s===void 0?void 0:s.find(u=>gs.isSamePostgresFilter(u.filter,n))))return this.socket.log("error",`duplicate \`postgres_changes\` binding for ${this.topic} ignored`,n),this;const l=this.channelAdapter.on(t,r),c={type:i,filter:n,callback:r,ref:l};return this.bindings[i]?this.bindings[i].push(c):this.bindings[i]=[c],this._updateFilterMessage(),this}_onClose(t){this.channelAdapter.onClose(t)}_onError(t){this.channelAdapter.onError(t)}_updateFilterMessage(){this.channelAdapter.updateFilterBindings((t,n,r)=>{var s,i,a,l,c,d,u;const h=t.event.toLocaleLowerCase();if(this._notThisChannelEvent(h,r))return!1;const f=(s=this.bindings[h])===null||s===void 0?void 0:s.find(p=>p.ref===t.ref);if(!f)return!0;if(["broadcast","presence","postgres_changes"].includes(h))if("id"in f){const p=f.id,v=(i=f.filter)===null||i===void 0?void 0:i.event;return p&&((a=n.ids)===null||a===void 0?void 0:a.includes(p))&&(v==="*"||(v==null?void 0:v.toLocaleLowerCase())===((l=n.data)===null||l===void 0?void 0:l.type.toLocaleLowerCase()))}else{const p=(d=(c=f==null?void 0:f.filter)===null||c===void 0?void 0:c.event)===null||d===void 0?void 0:d.toLocaleLowerCase();return p==="*"||p===((u=n==null?void 0:n.event)===null||u===void 0?void 0:u.toLocaleLowerCase())}else return f.type.toLocaleLowerCase()===h})}_notThisChannelEvent(t,n){const{close:r,error:s,leave:i,join:a}=T2;return n&&[r,s,i,a].includes(t)&&n!==this.joinPush.ref}_updateFilterTransform(){this.channelAdapter.updatePayloadTransform((t,n,r)=>{if(typeof n=="object"&&"ids"in n){const s=n.data,{schema:i,table:a,commit_timestamp:l,type:c,errors:d}=s;return Object.assign(Object.assign({},{schema:i,table:a,commit_timestamp:l,eventType:c,new:{},old:{},errors:d}),this._getPayloadRecords(s))}return n})}copyBindings(t){if(this.joinedOnce)throw new Error("cannot copy bindings into joined channel");for(const n in t.bindings)for(const r of t.bindings[n])this._on(r.type,r.filter,r.callback)}static isFilterValueEqual(t,n){return(t??void 0)===(n??void 0)}static isSamePostgresFilter(t,n){var r,s,i,a;const l=(s=(r=t==null?void 0:t.select)===null||r===void 0?void 0:r.join())!==null&&s!==void 0?s:void 0,c=(a=(i=n==null?void 0:n.select)===null||i===void 0?void 0:i.join())!==null&&a!==void 0?a:void 0;return(t==null?void 0:t.event)===(n==null?void 0:n.event)&&gs.isFilterValueEqual(t==null?void 0:t.schema,n==null?void 0:n.schema)&&gs.isFilterValueEqual(t==null?void 0:t.table,n==null?void 0:n.table)&&gs.isFilterValueEqual(t==null?void 0:t.filter,n==null?void 0:n.filter)&&l===c}_getPayloadRecords(t){const n={new:{},old:{}};return(t.type==="INSERT"||t.type==="UPDATE")&&(n.new=ex(t.columns,t.record)),(t.type==="UPDATE"||t.type==="DELETE")&&(n.old=ex(t.columns,t.old_record)),n}}class bR{constructor(t,n){this.socket=new iR(t,n)}get timeout(){return this.socket.timeout}get endPoint(){return this.socket.endPoint}get transport(){return this.socket.transport}get heartbeatIntervalMs(){return this.socket.heartbeatIntervalMs}get heartbeatCallback(){return this.socket.heartbeatCallback}set heartbeatCallback(t){this.socket.heartbeatCallback=t}get heartbeatTimer(){return this.socket.heartbeatTimer}get pendingHeartbeatRef(){return this.socket.pendingHeartbeatRef}get reconnectTimer(){return this.socket.reconnectTimer}get vsn(){return this.socket.vsn}get encode(){return this.socket.encode}get decode(){return this.socket.decode}get reconnectAfterMs(){return this.socket.reconnectAfterMs}get sendBuffer(){return this.socket.sendBuffer}get stateChangeCallbacks(){return this.socket.stateChangeCallbacks}connect(){this.socket.connect()}disconnect(t,n,r,s=1e4){return new Promise(i=>{setTimeout(()=>i("timeout"),s),this.socket.disconnect(()=>{t(),i("ok")},n,r)})}push(t){this.socket.push(t)}log(t,n,r){this.socket.log(t,n,r)}hasLogger(){return this.socket.hasLogger()}makeRef(){return this.socket.makeRef()}onOpen(t){this.socket.onOpen(t)}onClose(t){this.socket.onClose(t)}onError(t){this.socket.onError(t)}onMessage(t){this.socket.onMessage(t)}isConnected(){return this.socket.isConnected()}isConnecting(){return this.socket.connectionState()==ug.connecting}isDisconnecting(){return this.socket.connectionState()==ug.closing}connectionState(){return this.socket.connectionState()}endPointURL(){return this.socket.endPointURL()}sendHeartbeat(){this.socket.sendHeartbeat()}getSocket(){return this.socket}}const ix={HEARTBEAT_INTERVAL:25e3,RECONNECT_DELAY:10,HEARTBEAT_TIMEOUT_FALLBACK:100},vR=[1e3,2e3,5e3,1e4],xR=1e4;function wR(){const e=new Map;return{get length(){return e.size},clear(){e.clear()},getItem(t){return e.has(t)?e.get(t):null},key(t){var n;return(n=Array.from(e.keys())[t])!==null&&n!==void 0?n:null},removeItem(t){e.delete(t)},setItem(t,n){e.set(t,String(n))}}}function kR(){try{if(typeof globalThis<"u"&&globalThis.sessionStorage)return globalThis.sessionStorage}catch{}return wR()}const _R=` 74 addEventListener("message", (e) => { 75 if (e.data.event === "start") { 76 setInterval(() => postMessage({ event: "keepAlive" }), e.data.interval); 77 } 78 });`;class SR{get endPoint(){return this.socketAdapter.endPoint}get timeout(){return this.socketAdapter.timeout}get transport(){return this.socketAdapter.transport}get heartbeatCallback(){return this.socketAdapter.heartbeatCallback}get heartbeatIntervalMs(){return this.socketAdapter.heartbeatIntervalMs}get heartbeatTimer(){return this.worker?this._workerHeartbeatTimer:this.socketAdapter.heartbeatTimer}get pendingHeartbeatRef(){return this.worker?this._pendingWorkerHeartbeatRef:this.socketAdapter.pendingHeartbeatRef}get reconnectTimer(){return this.socketAdapter.reconnectTimer}get vsn(){return this.socketAdapter.vsn}get encode(){return this.socketAdapter.encode}get decode(){return this.socketAdapter.decode}get reconnectAfterMs(){return this.socketAdapter.reconnectAfterMs}get sendBuffer(){return this.socketAdapter.sendBuffer}get stateChangeCallbacks(){return this.socketAdapter.stateChangeCallbacks}constructor(t,n){var r;if(this.channels=new Array,this.accessTokenValue=null,this.accessToken=null,this.apiKey=null,this.httpEndpoint="",this.headers={},this.params={}
78,this.ref=0,this.serializer=new $P,this._manuallySetToken=!1,this._authPromise=null,this._authGeneration=0,this._workerHeartbeatTimer=void 0,this._pendingWorkerHeartbeatRef=null,this._pendingDisconnectTimer=null,this._disconnectOnEmptyChannelsAfterMs=0,this._resolveFetch=i=>i?(...a)=>i(...a):(...a)=>fetch(...a),!(!((r=n==null?void 0:n.params)===null||r===void 0)&&r.apikey))throw new Error("API key is required to connect to Realtime");this.apiKey=n.params.apikey;const s=this._initializeOptions(n);this.socketAdapter=new bR(t,s),this.httpEndpoint=N2(t),this.fetch=this._resolveFetch(n==null?void 0:n.fetch)}connect(){if(!(this.isConnecting()||this.isDisconnecting()||this.isConnected())){this.accessToken&&!this._authPromise&&this._setAuthSafely("connect"),this._setupConnectionHandlers();try{this.socketAdapter.connect()}catch(t){const n=t.message;throw new Error(`WebSocket not available: ${n}`)}this._handleNodeJsRaceCondition()}}endpointURL(){return this.socketAdapter.endPointURL()}async disconnect(t,n){return this._cancelPendingDisconnect(),this.isDisconnecting()?"ok":await this.socketAdapter.disconnect(()=>{clearInterval(this._workerHeartbeatTimer),this._terminateWorker()},t,n)}getChannels(){return this.channels}async removeChannel(t){const n=await t.unsubscribe();return n==="ok"&&t.teardown(),n}async removeAllChannels(){const t=this.channels.map(async r=>{const s=await r.unsubscribe();return r.teardown(),s}),n=await Promise.all(t);return await this.disconnect(),n}log(t,n,r){this.socketAdapter.log(t,n,r)}hasLogger(){return this.socketAdapter.hasLogger()}connectionState(){return this.socketAdapter.connectionState()||ug.closed}isConnected(){return this.socketAdapter.isConnected()}isConnecting(){return this.socketAdapter.isConnecting()}isDisconnecting(){return this.socketAdapter.isDisconnecting()}channel(t,n={config:{}}){const r=`realtime:${t}`,s=this.getChannels().find(i=>i.topic===r);if(s)return s;{const i=new gs(`realtime:${t}`,n,this);return this._cancelPendingDisconnect(),this.channels.push(i),i}}push(t){this.socketAdapter.push(t)}async setAuth(t=null){const n=++this._authGeneration,r=this._performAuth(t,n);n===this._authGeneration&&(this._authPromise=r);try{await r}finally{this._authPromise===r&&(this._authPromise=null)}}_isManualToken(){return this._manuallySetToken}async sendHeartbeat(){this.socketAdapter.sendHeartbeat()}onHeartbeat(t){this.socketAdapter.heartbeatCallback=this._wrapHeartbeatCallback(t)}_makeRef(){return this.socketAdapter.makeRef()}_remove(t){this.channels=this.channels.filter(n=>n.topic!==t.topic),this.channels.length===0&&(this.log("transport","no channels remaining, scheduling disconnect"),this._schedulePendingDisconnect())}_schedulePendingDisconnect(){if(this._cancelPendingDisconnect(),this._disconnectOnEmptyChannelsAfterMs===0){this.log("transport","disconnecting immediately - no channels"),this.disconnect();return}
78this._pendingDisconnectTimer=setTimeout(()=>{this._pendingDisconnectTimer=null,this.channels.length===0&&(this.log("transport","deferred disconnect fired - no channels, disconnecting"),this.disconnect())},this._disconnectOnEmptyChannelsAfterMs),this.log("transport",`deferred disconnect scheduled in ${this._disconnectOnEmptyChannelsAfterMs}ms`)}_cancelPendingDisconnect(){this._pendingDisconnectTimer!==null&&(this.log("transport","pending disconnect cancelled - channel activity detected"),clearTimeout(this._pendingDisconnectTimer),this._pendingDisconnectTimer=null)}async _performAuth(t,n){let r,s=!1;if(t)r=t,s=!0;else if(this.accessToken)try{r=await this.accessToken()}catch(i){this.log("error","Error fetching access token from callback",i),r=this.accessTokenValue}else r=this.accessTokenValue;n===this._authGeneration&&(this.accessToken?this._manuallySetToken=!1:s&&(this._manuallySetToken=!0),this.accessTokenValue!=r&&(this.accessTokenValue=r,this.channels.forEach(i=>{const a={access_token:r,version:IP};i.updateJoinPayload(a),i.joinedOnce&&i.channelAdapter.isJoined()&&i.channelAdapter.push(T2.access_token,{access_token:r})})))}async _waitForAuthIfNeeded(){this._authPromise&&await this._authPromise}_setAuthSafely(t="general"){this._isManualToken()||this.setAuth().catch(n=>{this.log("error",`Error setting auth in ${t}`,n)})}_setupConnectionHandlers(){this.socketAdapter.onOpen(()=>{(this._authPromise||(this.accessToken&&!this.accessTokenValue?this.setAuth():Promise.resolve())).catch(n=>{this.log("error","error waiting for auth on connect",n)}),this.worker&&!this.workerRef&&this._startWorkerHeartbeat()}),this.socketAdapter.onClose(()=>{this.worker&&this.workerRef&&this._terminateWorker()}),this.socketAdapter.onMessage(t=>{t.ref&&t.ref===this._pendingWorkerHeartbeatRef&&(this._pendingWorkerHeartbeatRef=null)})}_handleNodeJsRaceCondition(){this.socketAdapter.isConnected()&&this.socketAdapter.getSocket().onConnOpen()}_wrapHeartbeatCallback(t){return(n,r)=>{n!=="disconnected"&&(n=="sent"&&this._setAuthSafely(),t&&t(n,r))}}_startWorkerHeartbeat(){this.workerUrl?this.log("worker",`starting worker for from ${this.workerUrl}`):this.log("worker","starting default worker");const t=this._workerObjectUrl(this.workerUrl);this.workerRef=new Worker(t),this.workerRef.onerror=n=>{this.log("worker","worker error",n.message),this._terminateWorker(),this.disconnect()},this.workerRef.onmessage=n=>{n.data.event==="keepAlive"&&this.sendHeartbeat()},this.workerRef.postMessage({event:"start",interval:this.heartbeatIntervalMs})}_terminateWorker(){this.workerRef&&(this.log("worker","terminating worker"),this.workerRef.terminate(),this.workerRef=void 0)}_workerObjectUrl(t){let n;if(t)n=t;else{const r=new Blob([_R],{type:"application/javascript"});n=URL.createObjectURL(r)}return n}_initializeOptions(t){var n,r,s,i,a,l,c,d,u,h,f,p;this.worker=(n=t==null?void 0:t.worker)!==null&&n!==void 0?n:!1,this.accessToken=(r=t==null?void 0:t.accessToken)!==null&&r!==void 0?r:null;const v={};v.timeout=(s=t==null?void 0:t.timeout)!==null&&s!==void 0?s:zP,v.heartbeatIntervalMs=(i=t==null?void 0:t.heartbeatIntervalMs)!==null&&i!==void 0?i:ix.HEARTBEAT_INTERVAL,this._disconnectOnEmptyChannelsAfterMs=(a=t==null?void 0:t.disconnectOnEmptyChannelsAfterMs)!==null&&a!==void 0?a:2*((l=t==null?void 0:t.heartbeatIntervalMs)!==null&&l!==void 0?l:ix.HEARTBEAT_INTERVAL),v.transport=(c=t==null?void 0:t.transport)!==null&&c!==void 0?c:OP.getWebSocketConstructor(),v.params=t==null?void 0:t.params,v.logger=t==null?void 0:t.logger,v.heartbeatCallback=this._wrapHeartbeatCallback(t==null?void 0:t.heartbeatCallback),v.sessionStorage=(d=t==null?void 0:t.sessionStorage)!==null&&d!==void 0?d:kR(),v.reconnectAfterMs=(u=t==null?void 0:t.reconnectAfterMs)!==null&&u!==void 0?u:m=>vR[m-1]||xR;let y,x;const g=(h=t==null?void 0:t.vsn)!==null&&h!==void 0?h:DP;switch(g){case LP:y=(m,b)=>b(JSON.stringify(m)),x=(m,b)=>b(JSON.parse(m));break;case j2:y=this.serializer.encode.bind(this.serializer),x=this.serializer.decode.bind(this.serializer);break;default:throw new Error(`Unsupported serializer version: ${v.vsn}`)}if(v.vsn=g,v.encode=(f=t==null?void 0:t.encode)!==null&&f!==void 0?f:y,v.decode=(p=t==null?void 0:t.decode)!==null&&p!==void 0?p:x,v.beforeReconnect=this._reconnectAuth.bind(this),(t!=null&&t.logLevel||t!=null&&t.log_level)&&(this.logLevel=t.logLevel||t.log_level,v.params=Object.assign(Object.assign({},v.params),{log_level:this.logLevel})),this.worker){if(typeof window<"u"&&!window.Worker)throw new Error("Web Worker is not supported");this.workerUrl=t==null?void 0:t.workerUrl,v.autoSendHeartbeat=!this.worker}return v}async _reconnectAuth(){await this._waitForAuthIfNeeded(),this.isConnected()||this.connect()}}
78var Cc=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function CR(e,t,n){const r=new URL(t,e);if(n)for(const[s,i]of Object.entries(n))i!==void 0&&r.searchParams.set(s,i);return r.toString()}async function ER(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function jR(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:s,body:i,headers:a}){const l=CR(e.baseUrl,r,s),c=await ER(e.auth),d=await t(l,{method:n,headers:{...i?{"Content-Type":"application/json"}:{},...c,...a},body:i?JSON.stringify(i):void 0}),u=await d.text(),h=(d.headers.get("content-type")||"").includes("application/json"),f=h&&u?JSON.parse(u):u;if(!d.ok){const p=h?f:void 0,v=p==null?void 0:p.error;throw new Cc((v==null?void 0:v.message)??`Request failed with status ${d.status}`,{status:d.status,icebergType:v==null?void 0:v.type,icebergCode:v==null?void 0:v.code,details:p})}return{status:d.status,headers:d.headers,data:f}}}}function Md(e){return e.join("�")}var TR=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Md(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Md(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Md(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Md(e.namespace)}`}),!0}catch(t){if(t instanceof Cc&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Cc&&n.status===409)return;throw n}}};function Io(e){return e.join("�")}var AR=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Io(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Io(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${Io(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Io(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Io(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Io(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Cc&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Cc&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},NR=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=jR({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new TR(this.client,t),this.tableOps=new AR(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
78async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}};function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function FR(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PR(e){var t=FR(e,"string");return Ec(t)=="symbol"?t:t+""}function RR(e,t,n){return(t=PR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ox(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(n),!0).forEach(function(r){RR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ox(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Zh=class extends Error{constructor(e,t="storage",n,r){super(e),this.__isStorageError=!0,this.namespace=t,this.name=t==="vectors"?"StorageVectorsError":"StorageError",this.status=n,this.statusCode=r}toJSON(){return{name:this.name,message:this.message,status:this.status,statusCode:this.statusCode}}};function Xh(e){return typeof e=="object"&&e!==null&&"__isStorageError"in e}var mg=class extends Zh{constructor(e,t,n,r="storage",s){super(e,r,t,n),this.name=r==="vectors"?"StorageVectorsApiError":"StorageApiError",this.status=t,this.statusCode=n,this.code=s}toJSON(){return me(me({},super.toJSON()),{},{code:this.code})}},P2=class extends Zh{constructor(e,t,n="storage"){super(e,n),this.name=n==="vectors"?"StorageVectorsUnknownError":"StorageUnknownError",this.originalError=t}};function Qu(e,t,n){const r=me({},e),s=t.toLowerCase();for(const i of Object.keys(r))i.toLowerCase()===s&&delete r[i];return r[s]=n,r}function OR(e){const t={};for(const[n,r]of Object.entries(e))t[n.toLowerCase()]=r;return t}const MR=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),IR=e=>{if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},gg=e=>{if(Array.isArray(e))return e.map(n=>gg(n));if(typeof e=="function"||e!==Object(e))return e;const t={};return Object.entries(e).forEach(([n,r])=>{const s=n.replace(/([-_][a-z])/gi,i=>i.toUpperCase().replace(/[-_]/g,""));t[s]=gg(r)}),t},LR=e=>!e||typeof e!="string"||e.length===0||e.length>100||e.trim()!==e||e.includes("/")||e.includes("\\")?!1:/^[\w!.\*'() &$@=;:+,?-]+$/.test(e),yg=e=>e.split("/").map(encodeURIComponent).join("/"),ax=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error;if(typeof t.error=="object"&&t.error!==null){const n=t.error;if(typeof n.message=="string")return n.message}}return JSON.stringify(e)},DR=async(e,t,n,r)=>{if(e!==null&&typeof e=="object"&&"json"in e&&typeof e.json=="function"){const s=e;let i=parseInt(String(s.status),10);Number.isFinite(i)||(i=500),s.json().then(a=>{const l=(a==null?void 0:a.statusCode)||(a==null?void 0:a.code)||i+"";t(new mg(ax(a),i,l,r,a==null?void 0:a.code))}).catch(()=>{const a=i+"";t(new mg(s.statusText||`HTTP ${i} error`,i,a,r))})}else t(new P2(ax(e),e,r))},zR=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};if(e==="GET"||e==="HEAD"||!r)return me(me({},s),n);if(IR(r)){var i;const a=(t==null?void 0:t.headers)||{};let l;for(const[c,d]of Object.entries(a))c.toLowerCase()==="content-type"&&(l=d);s.headers=Qu(a,"Content-Type",(i=l)!==null&&i!==void 0?i:"application/json"),s.body=JSON.stringify(r)}else s.body=r;return t!=null&&t.duplex&&(s.duplex=t.duplex),me(me({},s),n)};async function wl(e,t,n,r,s,i,a){return new Promise((l,c)=>{e(n,zR(t,r,s,i)).then(d=>{if(!d.ok)throw d;if(r!=null&&r.noResolveJson)return d;if(a==="vectors"){const u=d.headers.get("content-type");if(d.headers.get("content-length")==="0"||d.status===204)return{};if(!u||!u.includes("application/json"))return{}}return d.json()}).then(d=>l(d)).catch(d=>DR(d,c,r,a))})}function R2(e="storage"){return{get:async(t,n,r,s)=>wl(t,"GET",n,r,s,void 0,e),post:async(t,n,r,s,i)=>wl(t,"POST",n,s,i,r,e),put:async(t,n,r,s,i)=>wl(t,"PUT",n,s,i,r,e),head:async(t,n,r,s)=>wl(t,"HEAD",n,me(me({},r),{},{noResolveJson:!0}),s,void 0,e),remove:async(t,n,r,s,i)=>wl(t,"DELETE",n,s,i,r,e)}}const BR=R2("storage"),{get:ga,post:Sr,put:Zu,head:WR,remove:ya}=BR,Kn=R2("vectors");var nl=class{constructor(e,t={},n,r="storage"){this.shouldThrowOnError=!1,this.url=e,this.headers=OR(t),this.fetch=MR(n),this.namespace=r}throwOnError(){return this.shouldThrowOnError=!0,this}setHeader(e,t){return this.headers=Qu(this.headers,e,t),this}async handleOperation(e){var t=this;try{return{data:await e(),error:null}}catch(n){if(t.shouldThrowOnError)throw n;if(Xh(n))return{data:null,error:n};throw n}}};let O2;O2=Symbol.toStringTag;var HR=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[O2]="StreamDownloadBuilder",this.promise=null}
78then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:(await e.downloadFn()).body,error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Xh(t))return{data:null,error:t};throw t}}};let M2;M2=Symbol.toStringTag;var $R=class{constructor(e,t){this.downloadFn=e,this.shouldThrowOnError=t,this[M2]="BlobDownloadBuilder",this.promise=null}asStream(){return new HR(this.downloadFn,this.shouldThrowOnError)}then(e,t){return this.getPromise().then(e,t)}catch(e){return this.getPromise().catch(e)}finally(e){return this.getPromise().finally(e)}getPromise(){return this.promise||(this.promise=this.execute()),this.promise}async execute(){var e=this;try{return{data:await(await e.downloadFn()).blob(),error:null}}catch(t){if(e.shouldThrowOnError)throw t;if(Xh(t))return{data:null,error:t};throw t}}};const af={limit:100,offset:0,sortBy:{column:"name",order:"asc"}},lx={cacheControl:"3600",contentType:"text/plain;charset=UTF-8",upsert:!1};var UR=class extends nl{constructor(e,t={},n,r){super(e,t,r,"storage"),this.bucketId=n}async uploadOrUpdate(e,t,n,r){var s=this;return s.handleOperation(async()=>{let i;const a=me(me({},lx),r);let l=me(me({},s.headers),e==="POST"&&{"x-upsert":String(a.upsert)});const c=a.metadata;if(typeof Blob<"u"&&n instanceof Blob?(i=new FormData,i.append("cacheControl",a.cacheControl),c&&i.append("metadata",s.encodeMetadata(c)),i.append("",n)):typeof FormData<"u"&&n instanceof FormData?(i=n,i.has("cacheControl")||i.append("cacheControl",a.cacheControl),c&&!i.has("metadata")&&i.append("metadata",s.encodeMetadata(c))):(i=n,l["cache-control"]=`max-age=${a.cacheControl}`,l["content-type"]=a.contentType,c&&(l["x-metadata"]=s.toBase64(s.encodeMetadata(c))),(typeof ReadableStream<"u"&&i instanceof ReadableStream||i&&typeof i=="object"&&"pipe"in i&&typeof i.pipe=="function")&&!a.duplex&&(a.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))l=Qu(l,f,p);const d=s._removeEmptyFolders(t),u=s._getFinalPath(d),h=await(e=="PUT"?Zu:Sr)(s.fetch,`${s.url}/object/${u}`,i,me({headers:l},a!=null&&a.duplex?{duplex:a.duplex}:{}));return{path:d,id:h.Id,fullPath:h.Key}})}async upload(e,t,n){return this.uploadOrUpdate("POST",e,t,n)}async uploadToSignedUrl(e,t,n,r){var s=this;const i=s._removeEmptyFolders(e),a=s._getFinalPath(i),l=new URL(s.url+`/object/upload/sign/${a}`);return l.searchParams.set("token",t),s.handleOperation(async()=>{let c;const d=me(me({},lx),r);let u=me(me({},s.headers),{"x-upsert":String(d.upsert)});const h=d.metadata;if(typeof Blob<"u"&&n instanceof Blob?(c=new FormData,c.append("cacheControl",d.cacheControl),h&&c.append("metadata",s.encodeMetadata(h)),c.append("",n)):typeof FormData<"u"&&n instanceof FormData?(c=n,c.has("cacheControl")||c.append("cacheControl",d.cacheControl),h&&!c.has("metadata")&&c.append("metadata",s.encodeMetadata(h))):(c=n,u["cache-control"]=`max-age=${d.cacheControl}`,u["content-type"]=d.contentType,h&&(u["x-metadata"]=s.toBase64(s.encodeMetadata(h))),(typeof ReadableStream<"u"&&c instanceof ReadableStream||c&&typeof c=="object"&&"pipe"in c&&typeof c.pipe=="function")&&!d.duplex&&(d.duplex="half")),r!=null&&r.headers)for(const[f,p]of Object.entries(r.headers))u=Qu(u,f,p);return{path:i,fullPath:(await Zu(s.fetch,l.toString(),c,me({headers:u},d!=null&&d.duplex?{duplex:d.duplex}:{}))).Key}})}async createSignedUploadUrl(e,t){var n=this;return n.handleOperation(async()=>{let r=n._getFinalPath(e);const s=me({},n.headers);t!=null&&t.upsert&&(s["x-upsert"]="true");const i=await Sr(n.fetch,`${n.url}/object/upload/sign/${r}`,{},{headers:s}),a=new URL(n.url+i.url),l=a.searchParams.get("token");if(!l)throw new Zh("No token returned by API");return{signedUrl:a.toString(),path:e,token:l}})}async update(e,t,n){return this.uploadOrUpdate("PUT",e,t,n)}async move(e,t,n){var r=this;return r.handleOperation(async()=>await Sr(r.fetch,`${r.url}/object/move`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,de
78stinationBucket:n==null?void 0:n.destinationBucket,sourceVersionId:n==null?void 0:n.sourceVersionId},{headers:r.headers}))}async copy(e,t,n){var r=this;return r.handleOperation(async()=>({path:(await Sr(r.fetch,`${r.url}/object/copy`,{bucketId:r.bucketId,sourceKey:e,destinationKey:t,destinationBucket:n==null?void 0:n.destinationBucket,sourceVersionId:n==null?void 0:n.sourceVersionId},{headers:r.headers})).Key}))}async createSignedUrl(e,t,n){var r=this;return r.handleOperation(async()=>{let s=r._getFinalPath(e);const i=typeof(n==null?void 0:n.transform)=="object"&&n.transform!==null&&Object.keys(n.transform).length>0;let a=await Sr(r.fetch,`${r.url}/object/sign/${s}`,me(me({expiresIn:t},i?{transform:n.transform}:{}),(n==null?void 0:n.versionId)!=null?{versionId:n.versionId}:{}),{headers:r.headers});const l=new URLSearchParams;n!=null&&n.download&&l.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&l.set("cacheNonce",String(n.cacheNonce));const c=l.toString();return{signedUrl:encodeURI(`${r.url}${a.signedURL}${c?`&${c}`:""}`)}})}async createSignedUrls(e,t,n){var r=this;return r.handleOperation(async()=>{const s=await Sr(r.fetch,`${r.url}/object/sign/${r.bucketId}`,{expiresIn:t,paths:e},{headers:r.headers}),i=new URLSearchParams;n!=null&&n.download&&i.set("download",n.download===!0?"":n.download),(n==null?void 0:n.cacheNonce)!=null&&i.set("cacheNonce",String(n.cacheNonce));const a=i.toString();return s.map(l=>me(me({},l),{},{signedUrl:l.signedURL?encodeURI(`${r.url}${l.signedURL}${a?`&${a}`:""}`):null}))})}download(e,t,n){const r=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image/authenticated":"object",s=new URLSearchParams;t!=null&&t.transform&&this.applyTransformOptsToQuery(s,t.transform),(t==null?void 0:t.cacheNonce)!=null&&s.set("cacheNonce",String(t.cacheNonce)),(t==null?void 0:t.versionId)!=null&&s.set("versionId",String(t.versionId));const i=s.toString(),a=this._getFinalPath(e),l=()=>ga(this.fetch,`${this.url}/${r}/${a}${i?`?${i}`:""}`,{headers:this.headers,noResolveJson:!0},n);return new $R(l,this.shouldThrowOnError)}async info(e,t){var n=this;const r=n._getFinalPath(e),s=new URLSearchParams;(t==null?void 0:t.versionId)!=null&&s.set("versionId",String(t.versionId));const i=s.toString();return n.handleOperation(async()=>gg(await ga(n.fetch,`${n.url}/object/info/${r}${i?`?${i}`:""}`,{headers:n.headers})))}async exists(e){var t=this;const n=t._getFinalPath(e);try{return await WR(t.fetch,`${t.url}/object/${n}`,{headers:t.headers}),{data:!0,error:null}}catch(s){if(t.shouldThrowOnError)throw s;if(Xh(s)){var r;const i=s instanceof mg?s.status:s instanceof P2?(r=s.originalError)===null||r===void 0?void 0:r.status:void 0;if(i!==void 0&&[400,404].includes(i))return{data:!1,error:s}}throw s}}getPublicUrl(e,t){const n=this._getFinalPath(e),r=new URLSearchParams;t!=null&&t.download&&r.set("download",t.download===!0?"":t.download),t!=null&&t.transform&&this.applyTransformOptsToQuery(r,t.transform),(t==null?void 0:t.cacheNonce)!=null&&r.set("cacheNonce",String(t.cacheNonce)),(t==null?void 0:t.versionId)!=null&&r.set("versionId",String(t.versionId));const s=r.toString(),i=typeof(t==null?void 0:t.transform)=="object"&&t.transform!==null&&Object.keys(t.transform).length>0?"render/image":"object";return{data:{publicUrl:encodeURI(`${this.url}/${i}/public/${n}`)+(s?`?${s}`:"")}}}async remove(e){var t=this;return t.handleOperation(async()=>await ya(t.fetch,`${t.url}/object/${t.bucketId}`,{prefixes:e},{headers:t.headers}))}async purgeCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=yg(r._getFinalPath(e)),i=new URLSearchParams;t!=null&&t.transformations&&i.set("transformations","true");const a=i.toString();return await ya(r.fetch,`${r.url}/cdn/${s}${a?`?${a}`:""}`,{},{headers:r.headers},n)})}async list(e,t,n){var r=this;return r.handleOperation(async()=>{const s=t!=null&&t.sortBy?me(me({},af.sortBy),t.sortBy):af.sortBy,i=me(me(me({},af),t),{},{sortBy:s,prefix:e||""});return await Sr(r.fetch,`${r.url}/object/list/${r.bucketId}`,i,{headers:r.headers},n)})}async listV2(e,t){var n=this;return n.handleOperation(async()=>{const r=me({},e);return await Sr(n.fetch,`${n.url}/object/list-v2/${n.bucketId}`,r,{headers:n.headers},t)})}encodeMetadata(e){return JSON.stringify(e)}toBase64(e){return typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e)}_getFinalPath(e){return`${this.bucketId}/${e.replace(/^\/+/,"")}`}_removeEmptyFolders(e){return e.replace(/^\/|\/$/g,"").replace(/\/+/g,"/")}applyTransformOptsToQuery(e,t){return t.width&&e.set("width",t.width.toString()),t.height&&e.set("height",t.height.toString()),t.resize&&e.set("resize",t.resize),t.format&&e.set("format",t.format),t.quality&&e.set("qual
78ity",t.quality.toString()),e}};const qR="2.117.2",Xc={"X-Client-Info":`storage-js/${qR}`};var VR=class extends nl{constructor(e,t={},n,r){const s=new URL(e);r!=null&&r.useNewHostname&&/supabase\.(co|in|red)$/.test(s.hostname)&&!s.hostname.includes("storage.supabase.")&&(s.hostname=s.hostname.replace("supabase.","storage.supabase."));const i=s.href.replace(/\/$/,""),a=me(me({},Xc),t);super(i,a,n,"storage")}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=t.listBucketOptionsToQueryString(e);return await ga(t.fetch,`${t.url}/bucket${n}`,{headers:t.headers})})}async getBucket(e){var t=this;return t.handleOperation(async()=>await ga(t.fetch,`${t.url}/bucket/${e}`,{headers:t.headers}))}async createBucket(e,t={public:!1}){var n=this;return n.handleOperation(async()=>await Sr(n.fetch,`${n.url}/bucket`,{id:e,name:e,type:t.type,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes,versioning_status:t.versioningStatus},{headers:n.headers}))}async updateBucket(e,t){var n=this;return n.handleOperation(async()=>await Zu(n.fetch,`${n.url}/bucket/${e}`,{id:e,name:e,public:t.public,file_size_limit:t.fileSizeLimit,allowed_mime_types:t.allowedMimeTypes,versioning_status:t.versioningStatus},{headers:n.headers}))}async emptyBucket(e){var t=this;return t.handleOperation(async()=>await Sr(t.fetch,`${t.url}/bucket/${e}/empty`,{},{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ya(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}async getBucketLifecycle(e){var t=this;return t.handleOperation(async()=>await ga(t.fetch,t.bucketLifecycleUrl(e),{headers:t.headers}))}async updateBucketLifecycle(e,t){var n=this;return n.handleOperation(async()=>await Zu(n.fetch,n.bucketLifecycleUrl(e),t,{headers:n.headers}))}async deleteBucketLifecycle(e){var t=this;return t.handleOperation(async()=>await ya(t.fetch,t.bucketLifecycleUrl(e),{},{headers:t.headers}))}async purgeBucketCache(e,t,n){var r=this;return r.handleOperation(async()=>{const s=new URLSearchParams;t!=null&&t.transformations&&s.set("transformations","true");const i=s.toString();return await ya(r.fetch,`${r.url}/cdn/${yg(e)}${i?`?${i}`:""}`,{},{headers:r.headers},n)})}bucketLifecycleUrl(e){return`${this.url}/bucket/${yg(e)}/lifecycle`}listBucketOptionsToQueryString(e){const t={};return e&&("limit"in e&&(t.limit=String(e.limit)),"offset"in e&&(t.offset=String(e.offset)),e.search&&(t.search=e.search),e.sortColumn&&(t.sortColumn=e.sortColumn),e.sortOrder&&(t.sortOrder=e.sortOrder)),Object.keys(t).length>0?"?"+new URLSearchParams(t).toString():""}},GR=class extends nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=me(me({},Xc),t);super(r,s,n,"storage")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Sr(t.fetch,`${t.url}/bucket`,{name:e},{headers:t.headers}))}async listBuckets(e){var t=this;return t.handleOperation(async()=>{const n=new URLSearchParams;(e==null?void 0:e.limit)!==void 0&&n.set("limit",e.limit.toString()),(e==null?void 0:e.offset)!==void 0&&n.set("offset",e.offset.toString()),e!=null&&e.sortColumn&&n.set("sortColumn",e.sortColumn),e!=null&&e.sortOrder&&n.set("sortOrder",e.sortOrder),e!=null&&e.search&&n.set("search",e.search);const r=n.toString(),s=r?`${t.url}/bucket?${r}`:`${t.url}/bucket`;return await ga(t.fetch,s,{headers:t.headers})})}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await ya(t.fetch,`${t.url}/bucket/${e}`,{},{headers:t.headers}))}from(e){var t=this;if(!LR(e))throw new Zh("Invalid bucket name: File, folder, and bucket names must follow AWS object key naming guidelines and should avoid the use of any other characters.");const n=new NR({baseUrl:this.url,catalogName:e,auth:{type:"custom",getHeaders:async()=>t.headers},fetch:this.fetch}),r=this.shouldThrowOnError;return new Proxy(n,{get(s,i){const a=s[i];return typeof a!="function"?a:async(...l)=>{try{return{data:await a.apply(s,l),error:null}}catch(c){if(r)throw c;return{data:null,error:c}}}}})}},KR=class extends nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=me(me({},Xc),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createIndex(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/CreateIndex`,e,{headers:t.headers})||{})}async getIndex(e,t){var n=this;return n.handleOperation(async()=>await Kn.post(n.fetch,`${n.url}/GetIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers}))}async listIndexes(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/ListIndexes`,e,{headers:t.headers}))}async deleteIndex(e,t){var n=this;return n.handleOperation(async()=>await Kn.post(n.fetch,`${n.url}/DeleteIndex`,{vectorBucketName:e,indexName:t},{headers:n.headers})||{})}},JR=class extends nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=me(me({},Xc),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async putVectors(e){var t=this;if(e.vectors.length<1||e.vectors.length>500)throw new Error("Vector batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/PutVectors`,e,{headers:t.headers})||{})}async getVectors(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/GetVectors`,e,{headers:t.headers}))}async listVectors(e){var t=this;if(e.segmentCount!==void 0){if(e.segmentCount<1||e.segmentCount>16)throw new Error("segmentCount must be between 1 and 16");
78if(e.segmentIndex!==void 0&&(e.segmentIndex<0||e.segmentIndex>=e.segmentCount))throw new Error(`segmentIndex must be between 0 and ${e.segmentCount-1}`)}return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/ListVectors`,e,{headers:t.headers}))}async queryVectors(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/QueryVectors`,e,{headers:t.headers}))}async deleteVectors(e){var t=this;if(e.keys.length<1||e.keys.length>500)throw new Error("Keys batch size must be between 1 and 500 items");return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/DeleteVectors`,e,{headers:t.headers})||{})}},YR=class extends nl{constructor(e,t={},n){const r=e.replace(/\/$/,""),s=me(me({},Xc),{},{"Content-Type":"application/json"},t);super(r,s,n,"vectors")}async createBucket(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/CreateVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}async getBucket(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/GetVectorBucket`,{vectorBucketName:e},{headers:t.headers}))}async listBuckets(e={}){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/ListVectorBuckets`,e,{headers:t.headers}))}async deleteBucket(e){var t=this;return t.handleOperation(async()=>await Kn.post(t.fetch,`${t.url}/DeleteVectorBucket`,{vectorBucketName:e},{headers:t.headers})||{})}},QR=class extends YR{constructor(e,t={}){super(e,t.headers||{},t.fetch)}from(e){return new ZR(this.url,this.headers,e,this.fetch)}async createBucket(e){var t=()=>super.createBucket,n=this;return t().call(n,e)}async getBucket(e){var t=()=>super.getBucket,n=this;return t().call(n,e)}async listBuckets(e={}){var t=()=>super.listBuckets,n=this;return t().call(n,e)}async deleteBucket(e){var t=()=>super.deleteBucket,n=this;return t().call(n,e)}},ZR=class extends KR{constructor(e,t,n,r){super(e,t,r),this.vectorBucketName=n}async createIndex(e){var t=()=>super.createIndex,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName}))}async listIndexes(e={}){var t=()=>super.listIndexes,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName}))}async getIndex(e){var t=()=>super.getIndex,n=this;return t().call(n,n.vectorBucketName,e)}async deleteIndex(e){var t=()=>super.deleteIndex,n=this;return t().call(n,n.vectorBucketName,e)}index(e){return new XR(this.url,this.headers,this.vectorBucketName,e,this.fetch)}},XR=class extends JR{constructor(e,t,n,r,s){super(e,t,s),this.vectorBucketName=n,this.indexName=r}async putVectors(e){var t=()=>super.putVectors,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async getVectors(e){var t=()=>super.getVectors,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async listVectors(e={}){var t=()=>super.listVectors,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async queryVectors(e){var t=()=>super.queryVectors,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}async deleteVectors(e){var t=()=>super.deleteVectors,n=this;return t().call(n,me(me({},e),{},{vectorBucketName:n.vectorBucketName,indexName:n.indexName}))}},eO=class extends VR{constructor(e,t={},n,r){super(e,t,n,r)}from(e){return new UR(this.url,this.headers,e,this.fetch)}get vectors(){return new QR(this.url+"/vector",{headers:this.headers,fetch:this.fetch})}get analytics(){return new GR(this.url+"/iceberg",this.headers,this.fetch)}};function ep(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}const I2="2.117.2",ys=30*1e3,Ll=3,lf=Ll*ys,tO=2*ys,nO="http://localhost:9999",rO="supabase.auth.token",sO={"X-Client-Info":`gotrue-js/${I2}`},bg="X-Supabase-Api-Version",L2={"2024-01-01":{timestamp:Date.parse("2024-01-01T00:00:00.0Z"),name:"2024-01-01"}},iO=/^([a-z0-9_-]{4})*($|[a-z0-9_-]{3}$|[a-z0-9_-]{2}$)$/i,Gi="sb_flow_id",oO=5,aO=10*60*1e3;
78class jc extends Error{constructor(t,n,r){super(t),this.__isAuthError=!0,this.name="AuthError",this.status=n,this.code=r}toJSON(){return{name:this.name,message:this.message,status:this.status,code:this.code}}}function Q(e){return typeof e=="object"&&e!==null&&"__isAuthError"in e}class lO extends jc{constructor(t,n,r){super(t,n,r),this.name="AuthApiError",this.status=n,this.code=r}}function cx(e){return Q(e)&&e.name==="AuthApiError"}class Ar extends jc{constructor(t,n){super(t),this.name="AuthUnknownError",this.originalError=n}}class ss extends jc{constructor(t,n,r,s){super(t,r,s),this.name=n,this.status=r}}class $t extends ss{constructor(){super("Auth session missing!","AuthSessionMissingError",400,void 0)}}function Id(e){return Q(e)&&e.name==="AuthSessionMissingError"}class Lo extends ss{constructor(){super("Auth session or user missing","AuthInvalidTokenResponseError",500,void 0)}}class Ld extends ss{constructor(t){super(t,"AuthInvalidCredentialsError",400,void 0)}}class Dd extends ss{constructor(t,n=null){super(t,"AuthImplicitGrantRedirectError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}function cO(e){return Q(e)&&e.name==="AuthImplicitGrantRedirectError"}class dx extends ss{constructor(t,n=null){super(t,"AuthPKCEGrantCodeExchangeError",500,void 0),this.details=null,this.details=n}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{details:this.details})}}class dO extends ss{constructor(){super("PKCE code verifier not found in storage. This can happen if the auth flow was initiated in a different browser or device, or if the storage was cleared. For SSR frameworks (Next.js, SvelteKit, etc.), use @supabase/ssr on both the server and client to store the code verifier in cookies.","AuthPKCECodeVerifierMissingError",400,"pkce_code_verifier_not_found")}}class hu extends ss{constructor(t,n){super(t,"AuthRetryableFetchError",n,void 0)}}function zd(e){return Q(e)&&e.name==="AuthRetryableFetchError"}class ux extends ss{constructor(t="Refresh result discarded: session state changed mid-flight (e.g., concurrent signOut)"){super(t,"AuthRefreshDiscardedError",409,void 0)}}function hx(e){return Q(e)&&e.name==="AuthRefreshDiscardedError"}class px extends ss{constructor(t,n,r){super(t,"AuthWeakPasswordError",n,"weak_password"),this.reasons=r}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{reasons:this.reasons})}}class Xu extends ss{constructor(t){super(t,"AuthInvalidJwtError",400,"invalid_jwt")}}const eh="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),fx=` 79\r=`.split(""),uO=(()=>{const e=new Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<fx.length;t+=1)e[fx[t].charCodeAt(0)]=-2;for(let t=0;t<eh.length;t+=1)e[eh[t].charCodeAt(0)]=t;return e})();function mx(e,t,n){if(e!==null)for(t.queue=t.queue<<8|e,t.queuedBits+=8;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(eh[r]),t.queuedBits-=6}else if(t.queuedBits>0)for(t.queue=t.queue<<6-t.queuedBits,t.queuedBits=6;t.queuedBits>=6;){const r=t.queue>>t.queuedBits-6&63;n(eh[r]),t.queuedBits-=6}}function D2(e,t,n){const r=uO[e];if(r>-1)for(t.queue=t.queue<<6|r,t.queuedBits+=6;t.queuedBits>=8;)n(t.queue>>t.queuedBits-8&255),t.queuedBits-=8;else{if(r===-2)return;throw new Error(`Invalid Base64-URL character "${String.fromCharCode(e)}"`)}}function gx(e){const t=[],n=a=>{t.push(String.fromCodePoint(a))},r={utf8seq:0,codepoint:0},s={queue:0,queuedBits:0},i=a=>{fO(a,r,n)};for(let a=0;a<e.length;a+=1)D2(e.charCodeAt(a),s,i);return t.join("")}function hO(e,t){if(e<=127){t(e);return}else if(e<=2047){t(192|e>>6),t(128|e&63);return}else if(e<=65535){t(224|e>>12),t(128|e>>6&63),t(128|e&63);return}else if(e<=1114111){t(240|e>>18),t(128|e>>12&63),t(128|e>>6&63),t(128|e&63);return}throw new Error(`Unrecognized Unicode codepoint: ${e.toString(16)}`)}function pO(e,t){for(let n=0;n<e.length;n+=1){let r=e.charCodeAt(n);if(r>55295&&r<=56319){const s=(r-55296)*1024&65535;r=(e.charCodeAt(n+1)-56320&65535|s)+65536,n+=1}hO(r,t)}}function fO(e,t,n){if(t.utf8seq===0){if(e<=127){n(e);return}for(let r=1;r<6;r+=1)if(!(e>>7-r&1)){t.utf8seq=r;break}if(t.utf8seq===2)t.codepoint=e&31;else if(t.utf8seq===3)t.codepoint=e&15;else if(t.utf8seq===4)t.codepoint=e&7;else throw new Error("Invalid UTF-8 sequence");t.utf8seq-=1}else if(t.utf8seq>0){if(e<=127)throw new Error("Invalid UTF-8 sequence");t.codepoint=t.codepoint<<6|e&63,t.utf8seq-=1,t.utf8seq===0&&n(t.codepoint)}}function ba(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};for(let s=0;s<e.length;s+=1)D2(e.charCodeAt(s),n,r);return new Uint8Array(t)}function mO(e){const t=[];return pO(e,n=>t.push(n)),new Uint8Array(t)}function Ki(e){const t=[],n={queue:0,queuedBits:0},r=s=>{t.push(s)};return e.forEach(s=>mx(s,n,r)),mx(null,n,r),t.join("")}function z2(e){return Math.round(Date.now()/1e3)+e}function gO(){return Symbol("auth-callback")}const Jt=()=>typeof window<"u"&&typeof document<"u",Li={tested:!1,writable:!1},B2=()=>{if(!Jt())return!1;try{if(typeof globalThis.localStorage!="object")return!1}catch{return!1}if(Li.tested)return Li.writable;const e=`lswt-${Math.random()}${Math.random()}`;try{globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),Li.tested=!0,Li.writable=!0}catch{Li.tested=!0,Li.writable=!1}return Li.writable};function yx(e){const t={},n=new URL(e);if(n.hash&&n.hash[0]==="#")try{new URLSearchParams(n.hash.substring(1)).forEac
79h((s,i)=>{t[i]=s})}catch{}return n.searchParams.forEach((r,s)=>{t[s]=r}),t}const W2=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),yO=e=>typeof e=="object"&&e!==null&&"status"in e&&"ok"in e&&"json"in e&&typeof e.json=="function",xs=async(e,t,n)=>{await e.setItem(t,JSON.stringify(n))},ln=async(e,t)=>{const n=await e.getItem(t);if(!n)return null;try{return JSON.parse(n)}catch{return null}},In=async(e,t)=>{await e.removeItem(t)};class tp{constructor(){this.promise=new tp.promiseConstructor((t,n)=>{this.resolve=t,this.reject=n})}}tp.promiseConstructor=Promise;function Bd(e){const t=e.split(".");if(t.length!==3)throw new Xu("Invalid JWT structure");for(let r=0;r<t.length;r++)if(!iO.test(t[r]))throw new Xu("JWT not in base64url format");return{header:JSON.parse(gx(t[0])),payload:JSON.parse(gx(t[1])),signature:ba(t[2]),raw:{header:t[0],payload:t[1]}}}async function bO(e){return await new Promise(t=>{setTimeout(()=>t(null),e)})}function vO(e,t){return new Promise((r,s)=>{(async()=>{for(let i=0;i<1/0;i++)try{const a=await e(i);if(!t(i,null,a)){r(a);return}}catch(a){if(!t(i,a)){s(a);return}}})()})}function H2(e){return("0"+e.toString(16)).substr(-2)}function xO(){const t=new Uint32Array(56);if(typeof crypto>"u"){const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",r=n.length;let s="";for(let i=0;i<56;i++)s+=n.charAt(Math.floor(Math.random()*r));return s}return crypto.getRandomValues(t),Array.from(t,H2).join("")}async function wO(e){const n=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",n),s=new Uint8Array(r);return Array.from(s).map(i=>String.fromCharCode(i)).join("")}async function kO(e){if(!(typeof crypto<"u"&&typeof crypto.subtle<"u"&&typeof TextEncoder<"u"))return console.warn("WebCrypto API is not supported. Code challenge method will default to use plain instead of sha256."),e;const n=await wO(e);return btoa(n).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}const _O=/^[a-zA-Z0-9_-]{8,64}$/;function pu(e){return typeof e=="string"&&_O.test(e)?e:null}function SO(){if(typeof crypto<"u"&&typeof crypto.getRandomValues=="function"){const t=new Uint8Array(16);return crypto.getRandomValues(t),Array.from(t,H2).join("")}let e="";for(let t=0;t<32;t++)e+=Math.floor(Math.random()*16).toString(16);return e}const Ua=(e,t)=>`${e}-flow-${t}-code-verifier`,Tc=e=>`${e}-flows-code-verifier`;async function Xy(e,t){const n=await ln(e,Tc(t));return Array.isArray(n)?n.filter(r=>pu(r)!==null):[]}async function CO(e,t,n,r,s){await xs(e,Ua(t,n),r);const i=(await Xy(e,t)).filter(a=>a!==n);for(i.push(n);i.length>oO;){const a=i.shift();await In(e,Ua(t,a)),s==null||s(a)}await xs(e,Tc(t),i),await xs(e,`${t}-code-verifier`,r)}async function EO(e,t,n){if(n){const s=await ln(e,Ua(t,n));return{verifier:typeof s=="string"?s:null,flowId:n}}const r=await ln(e,`${t}-code-verifier`);return{verifier:typeof r=="string"?r:null,flowId:null}}async function wr(e,t,n){const r=`${t}-code-verifier`;if(!n){await In(e,r);return}const s=Ua(t,n),i=await ln(e,s);await In(e,s);const a=await Xy(e,t),l=a.filter(c=>c!==n);l.length!==a.length&&(l.length>0?await xs(e,Tc(t),l):await In(e,Tc(t))),i!=null&&i===await ln(e,r)&&await In(e,r)}async function jO(e,t){const n=await Xy(e,t);for(const r of n)await In(e,Ua(t,r));await In(e,Tc(t)),await In(e,`${t}-code-verifier`)}function TO(e,t){const n=e.indexOf("#");let r=n===-1?e:e.slice(0,n);const s=n===-1?"":e.slice(n),i=r.indexOf("?");if(i!==-1){const l=r.slice(0,i),c=r.slice(i+1).split("&").filter(d=>d!==""&&d!==Gi&&!d.startsWith(`${Gi}=`));r=c.length>0?`${l}?${c.join("&")}`:l}const a=r.includes("?")?"&":"?";return`${r}${a}${Gi}=${encodeURIComponent(t)}${s}`}async function AO(e,t,n=!1,r){const s=xO();let i=s;n&&(i+="/recovery");const a=SO();await CO(e,t,a,i,r);const l=await kO(s);return[l,s===l?"plain":"s256",a]}const NO=/^2[0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-9]|3[0-1])$/i;function FO(e){const t=e.headers.get(bg);if(!t||!t.match(NO))return null;try{return new Date(`${t}T00:00:00.0Z`)}catch{return null}}function PO(e){if(!e)throw new Error("Missing exp claim");const t=Math.floor(Date.now()/1e3);if(e<=t)throw new Error("JWT has expired")}function RO(e){switch(e){case"RS256":return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case"ES256":return{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}};default:throw new Error("Invalid alg claim")}}const OO=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function cs(e){if(!OO.test(e))throw new Error("@supabase/auth-js: Expected parameter to be UUID but is not")}function kl(e){if(!e.recoveryCodes)throw new Error("@supabase/auth-js: the MFA recovery codes API is experimental and disabled by default. Enable it by passing `auth: { experimental: { recoveryCodes: true } }` to createClient (or to the GoTrueClient constructor).")}function cf(){const e={};return new Proxy(e,{get:(t,n)=>{if(n==="__isUserNotAvailableProxy")return!0;
79if(typeof n=="symbol"){const r=n.toString();if(r==="Symbol(Symbol.toPrimitive)"||r==="Symbol(Symbol.toStringTag)"||r==="Symbol(util.inspect.custom)")return}throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Accessing the "${n}" property of the session object is not supported. Please use getUser() instead.`)},set:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Setting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)},deleteProperty:(t,n)=>{throw new Error(`@supabase/auth-js: client was created with userStorage option and there was no user stored in the user storage. Deleting the "${n}" property of the session object is not supported. Please use getUser() to fetch a user object you can manipulate.`)}})}function MO(e,t){return new Proxy(e,{get:(n,r,s)=>{if(r==="__isInsecureUserWarningProxy")return!0;if(typeof r=="symbol"){const i=r.toString();if(i==="Symbol(Symbol.toPrimitive)"||i==="Symbol(Symbol.toStringTag)"||i==="Symbol(util.inspect.custom)"||i==="Symbol(nodejs.util.inspect.custom)")return Reflect.get(n,r,s)}return!t.value&&typeof r=="string"&&(console.warn("Using the user object as returned from supabase.auth.getSession() or from some supabase.auth.onAuthStateChange() events could be insecure! This value comes directly from the storage medium (usually cookies on the server) and may not be authentic. Use supabase.auth.getUser() instead which authenticates the data by contacting the Supabase Auth server."),t.value=!0),Reflect.get(n,r,s)}})}function bx(e){return JSON.parse(JSON.stringify(e))}const Bi=e=>{if(typeof e=="object"&&e!==null){const t=e;if(typeof t.msg=="string")return t.msg;if(typeof t.message=="string")return t.message;if(typeof t.error_description=="string")return t.error_description;if(typeof t.error=="string")return t.error}return JSON.stringify(e)},vx=[500,501,502,503,504,520,521,522,523,524,525,526,527,528,529,530];async function xx(e){var t;if(!yO(e))throw new hu(Bi(e),0);let n;try{n=await e.json()}catch(i){throw vx.includes(e.status)?new hu(e.statusText||`HTTP ${e.status}`,e.status):new Ar(Bi(i),i)}if(vx.includes(e.status))throw new hu(Bi(n),e.status);let r;const s=FO(e);if(s&&s.getTime()>=L2["2024-01-01"].timestamp&&typeof n=="object"&&n&&typeof n.code=="string"?r=n.code:typeof n=="object"&&n&&typeof n.error_code=="string"&&(r=n.error_code),r){if(r==="weak_password")throw new px(Bi(n),e.status,((t=n.weak_password)===null||t===void 0?void 0:t.reasons)||[]);if(r==="session_not_found")throw new $t}else if(typeof n=="object"&&n&&typeof n.weak_password=="object"&&n.weak_password&&Array.isArray(n.weak_password.reasons)&&n.weak_password.reasons.length&&n.weak_password.reasons.reduce((i,a)=>i&&typeof a=="string",!0))throw new px(Bi(n),e.status,n.weak_password.reasons);throw new lO(Bi(n),e.status||500,r)}const IO=(e,t,n,r)=>{const s={method:e,headers:(t==null?void 0:t.headers)||{}};return e==="GET"?s:(s.headers=Object.assign({"Content-Type":"application/json;charset=UTF-8"},t==null?void 0:t.headers),s.body=JSON.stringify(r),Object.assign(Object.assign({},s),n))};async function se(e,t,n,r){var s;const i=Object.assign({},r==null?void 0:r.headers);i[bg]||(i[bg]=L2["2024-01-01"].name),r!=null&&r.jwt&&(i.Authorization=`Bearer ${r.jwt}`);const a=(s=r==null?void 0:r.query)!==null&&s!==void 0?s:{};r!=null&&r.redirectTo&&(a.redirect_to=r.redirectTo);const l=Object.keys(a).length?"?"+new URLSearchParams(a).toString():"",c=await LO(e,t,n+l,{headers:i,noResolveJson:r==null?void 0:r.noResolveJson},{},r==null?void 0:r.body);return r!=null&&r.xform?r==null?void 0:r.xform(c):{data:Object.assign({},c),error:null}}async function LO(e,t,n,r,s,i){const a=IO(t,r,s,i);let l;try{l=await e(n,Object.assign({},a))}catch(c){throw new hu(Bi(c),0)}if(l.ok||await xx(l),r!=null&&r.noResolveJson)return l;try{return await l.json()}catch(c){await xx(c)}}function ir(e){var t;let n=null;BO(e)&&(n=Object.assign({},e),e.expires_at||(n.expires_at=z2(e.expires_in)));const r=(t=e.user)!==null&&t!==void 0?t:typeof(e==null?void 0:e.id)=="string"?e:null;return{data:{session:n,user:r},error:null}}function wx(e){const t=ir(e);return!t.error&&e.weak_password&&typeof e.weak_password=="object"&&Array.isArray(e.weak_password.reasons)&&e.weak_password.reasons.length&&e.weak_password.message&&typeof e.weak_password.message=="string"&&e.weak_password.reasons.reduce((n,r)=>n&&typeof r=="string",!0)&&(t.data.weak_password=e.weak_password),t}function Xs(e){var t;return{data:{user:(t=e.user)!==null&&t!==void 0?t:e},error:null}}function DO(e){return{data:e,error:null}}function zO(e){const{action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i}=e,a=ep(e,["action_link","email_otp","hashed_token","redirect_to","verification_type"]),l={action_link:t,email_otp:n,hashed_token:r,redirect_to:s,verification_type:i},c=Object.assign({},a);return{data:{properties:l,user:c},error:null}}function kx(e){return e}function BO(e){return!!e.access_token&&!!e.refresh_token&&!!e.expires_in}const df=["global","local","others"];class WO{constructor({url:t="",headers:n={},fetch:r,experimental:s}){this.url=t,this.headers=n,this.fetch=W2(r),this.experimental=s??{},this.mfa={listFactors:this._listFactors.bind(this),deleteFactor:this._deleteFactor.bind(this)},this.oauth={listClients:this._listOAuthClients.bind(this),createClient:this._createOAuthClient.bind(this),getClient:this._getOAuthClient.bind(this),updateClient:this._updateOAuthClient.bind(this),deleteClient:this._deleteOAuthClient.bind(this),regenerateClientSecret:this._regenerateOAuthClientSecret.bind(this)},this.customProviders={listProviders:this._listCustomProviders.bind(this),createProvider:this._createCustomProvider.bind(this),getProvider:this._getCustomProvider.bind(this),updateProvider:this._updateCustomProvider.bind(this),deleteProvider:this._deleteCustomProvider.bind(this)},this.passkey={listPasskeys:this._adminListPasskeys.bind(this),deletePasskey:this._adminDeletePasskey.bind(this)}}async signOut(t,n=df[0]){if(df.indexOf(n)<0)throw new Error(`@supabase/auth-js: Parameter scope must be one of ${df.join(", ")}`);try{return await se(this.fetch,"POST",`${this.url}/logout?scope=${n}`,{headers:this.headers,jwt:t,noResolveJson:!0}),{data:null,error:null}}catch(r){if(Q(r))return{data:null,error:r};throw r}}async inviteUserByEmail(t,n={}){try{return await se(this.fetch,"POST",`${this.url}/invite`,{body:{email:t,data:n.data},headers:this.headers,redirectTo:n.redirectTo,xform:Xs})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async generateLink(t){try{const{options:n}=t,r=ep(t,["options"]),s=Object.assign(Object.assign({},r),n);return"newEmail"in r&&(s.new_email=r==null?void 0:r.newEmail,delete s.newEmail),await se(this.fetch,"POST",`${this.url}/admin/generate_link`,{body:s,headers:this.headers,xform:zO,redirectTo:n==null?void 0:n.redirectTo})}catch(n){if(Q(n))return{data:{properties:null,user:null},error:n};throw n}}async createUser(t){try{return await se(this.fetch,"POST",`${this.url}/admin/users`,{body:t,headers:this.headers,xform:Xs})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async listUsers(t){var n,r,s,i,a,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await se(this.fetch,"GET",`${this.url}/admin/users`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:kx});if(u.error)throw u.error;const h=await u.json(),f=(a=u.headers.get("x-total-count"))!==null&&a!==void 0?a:0,p=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>
790&&(p.forEach(v=>{const y=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(v.split(";")[1].split("=")[1]);d[`${x}Page`]=y}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(Q(d))return{data:{users:[]},error:d};throw d}}async getUserById(t){cs(t);try{return await se(this.fetch,"GET",`${this.url}/admin/users/${t}`,{headers:this.headers,xform:Xs})}catch(n){if(Q(n))return{data:{user:null},error:n};throw n}}async updateUserById(t,n){cs(t);try{return await se(this.fetch,"PUT",`${this.url}/admin/users/${t}`,{body:n,headers:this.headers,xform:Xs})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async deleteUser(t,n=!1){cs(t);try{return await se(this.fetch,"DELETE",`${this.url}/admin/users/${t}`,{headers:this.headers,body:{should_soft_delete:n},xform:Xs})}catch(r){if(Q(r))return{data:{user:null},error:r};throw r}}async _listFactors(t){cs(t.userId);try{const{data:n,error:r}=await se(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/factors`,{headers:this.headers,xform:s=>({data:{factors:s},error:null})});return{data:n,error:r}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _deleteFactor(t){cs(t.userId),cs(t.id);try{return{data:await se(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/factors/${t.id}`,{headers:this.headers}),error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _listOAuthClients(t){var n,r,s,i,a,l,c;try{const d={nextPage:null,lastPage:0,total:0},u=await se(this.fetch,"GET",`${this.url}/admin/oauth/clients`,{headers:this.headers,noResolveJson:!0,query:{page:(r=(n=t==null?void 0:t.page)===null||n===void 0?void 0:n.toString())!==null&&r!==void 0?r:"",per_page:(i=(s=t==null?void 0:t.perPage)===null||s===void 0?void 0:s.toString())!==null&&i!==void 0?i:""},xform:kx});if(u.error)throw u.error;const h=await u.json(),f=(a=u.headers.get("x-total-count"))!==null&&a!==void 0?a:0,p=(c=(l=u.headers.get("link"))===null||l===void 0?void 0:l.split(","))!==null&&c!==void 0?c:[];return p.length>0&&(p.forEach(v=>{const y=parseInt(v.split(";")[0].split("=")[1].substring(0,1)),x=JSON.parse(v.split(";")[1].split("=")[1]);d[`${x}Page`]=y}),d.total=parseInt(f)),{data:Object.assign(Object.assign({},h),d),error:null}}catch(d){if(Q(d))return{data:{clients:[]},error:d};throw d}}async _createOAuthClient(t){try{return await se(this.fetch,"POST",`${this.url}/admin/oauth/clients`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _getOAuthClient(t){try{return await se(this.fetch,"GET",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _updateOAuthClient(t,n){try{return await se(this.fetch,"PUT",`${this.url}/admin/oauth/clients/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _deleteOAuthClient(t){try{return await se(this.fetch,"DELETE",`${this.url}/admin/oauth/clients/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _regenerateOAuthClientSecret(t){try{return await se(this.fetch,"POST",`${this.url}/admin/oauth/clients/${t}/regenerate_secret`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _listCustomProviders(t){try{const n={};return t!=null&&t.type&&(n.type=t.type),await se(this.fetch,"GET",`${this.url}/admin/custom-providers`,{headers:this.headers,query:n,xform:r=>{var s;return{data:{providers:(s=r==null?void 0:r.providers)!==null&&s!==void 0?s:[]},error:null}}})}catch(n){if(Q(n))return{data:{providers:[]},error:n};throw n}}async _createCustomProvider(t){try{return await se(this.fetch,"POST",`${this.url}/admin/custom-providers`,{body:t,headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _getCustomProvider(t){try{return await se(this.fetch,"GET",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _updateCustomProvider(t,n){try{return await se(this.fetch,"PUT",`${this.url}/admin/custom-providers/${t}`,{body:n,headers:this.headers,xform:r=>({data:r,error:null})})}catch(r){if(Q(r))return{data:null,error:r};throw r}}async _deleteCustomProvider(t){try{return await se(this.fetch,"DELET
79E",`${this.url}/admin/custom-providers/${t}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _adminListPasskeys(t){cs(t.userId);try{return await se(this.fetch,"GET",`${this.url}/admin/users/${t.userId}/passkeys`,{headers:this.headers,xform:n=>({data:n,error:null})})}catch(n){if(Q(n))return{data:null,error:n};throw n}}async _adminDeletePasskey(t){cs(t.userId),cs(t.passkeyId);try{return await se(this.fetch,"DELETE",`${this.url}/admin/users/${t.userId}/passkeys/${t.passkeyId}`,{headers:this.headers,noResolveJson:!0}),{data:null,error:null}}catch(n){if(Q(n))return{data:null,error:n};throw n}}}function _x(e={}){return{getItem:t=>e[t]||null,setItem:(t,n)=>{e[t]=n},removeItem:t=>{delete e[t]}}}globalThis&&B2()&&globalThis.localStorage&&globalThis.localStorage.getItem("supabase.gotrue-js.locks.debug");class HO extends Error{constructor(t){super(t),this.isAcquireTimeout=!0}}function $O(){if(typeof globalThis!="object")try{Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__}catch{typeof self<"u"&&(self.globalThis=self)}}function $2(e){if(!/^0x[a-fA-F0-9]{40}$/.test(e))throw new Error(`@supabase/auth-js: Address "${e}" is invalid.`);return e.toLowerCase()}function UO(e){return parseInt(e,16)}function qO(e){const t=new TextEncoder().encode(e);return"0x"+Array.from(t,r=>r.toString(16).padStart(2,"0")).join("")}function VO(e){var t;const{chainId:n,domain:r,expirationTime:s,issuedAt:i=new Date,nonce:a,notBefore:l,requestId:c,resources:d,scheme:u,uri:h,version:f}=e;{if(!Number.isInteger(n))throw new Error(`@supabase/auth-js: Invalid SIWE message field "chainId". Chain ID must be a EIP-155 chain ID. Provided value: ${n}`);if(!r)throw new Error('@supabase/auth-js: Invalid SIWE message field "domain". Domain must be provided.');if(a&&a.length<8)throw new Error(`@supabase/auth-js: Invalid SIWE message field "nonce". Nonce must be at least 8 characters. Provided value: ${a}`);if(!h)throw new Error('@supabase/auth-js: Invalid SIWE message field "uri". URI must be provided.');if(f!=="1")throw new Error(`@supabase/auth-js: Invalid SIWE message field "version". Version must be '1'. Provided value: ${f}`);if(!((t=e.statement)===null||t===void 0)&&t.includes(` 80`))throw new Error(`@supabase/auth-js: Invalid SIWE message field "statement". Statement must not include '\\n'. Provided value: ${e.statement}`)}const p=$2(e.address),v=u?`${u}://${r}`:r,y=e.statement?`${e.statement} 81`:"",x=`${v} wants you to sign in with your Ethereum account: 82${p} 83 84${y}`;let g=`URI: ${h} 85Version: ${f} 86Chain ID: ${n}${a?` 87Nonce: ${a}`:""} 88Issued At: ${i.toISOString()}`;if(s&&(g+=` 89Expiration Time: ${s.toISOString()}`),l&&(g+=` 90Not Before: ${l.toISOString()}`),c&&(g+=` 91Request ID: ${c}`),d){let m=` 92Resources:`;for(const b of d){if(!b||typeof b!="string")throw new Error(`@supabase/auth-js: Invalid SIWE message field "resources". Every resource must be a valid string. Provided value: ${b}`);m+=` 93- ${b}`}g+=m}return`${x} 94${g}`}class Nt extends Error{constructor({message:t,code:n,cause:r,name:s}){var i;super(t,{cause:r}),this.__isWebAuthnError=!0,this.name=(i=s??(r instanceof Error?r.name:void 0))!==null&&i!==void 0?i:"Unknown Error",this.code=n}toJSON(){return{name:this.name,message:this.message,code:this.code}}}class th extends Nt{constructor(t,n){super({code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:n,message:t}),this.name="WebAuthnUnknownError",this.originalError=n}}function GO({error:e,options:t}){var n,r,s;const{publicKey:i}=t;if(!i)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Nt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(((n=i.authenticatorSelection)===null||n===void 0?void 0:n.requireResidentKey)===!0)return new Nt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&((r=i.authenticatorSelection)===null||r===void 0?void 0:r.userVerification)==="required")return new Nt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(((s=i.authenticatorSelection)===null||s===void 0?void 0:s.userVerification)==="required")return new Nt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new Nt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new Nt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return i.pubKeyCredParams.filter(l=>l.type==="public-key").length===0?new Nt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new Nt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const a=window.location.hostname;if(U2(a)){if(i.rp.id!==a)return new Nt({message:`The RP ID "${i.rp.id}
94" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Nt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new Nt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new Nt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Nt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}function KO({error:e,options:t}){const{publicKey:n}=t;if(!n)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new Nt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new Nt({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const r=window.location.hostname;if(U2(r)){if(n.rpId!==r)return new Nt({message:`The RP ID "${n.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new Nt({message:`${window.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new Nt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return new Nt({message:"a Non-Webauthn related error has occurred",code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e})}class JO{createNewAbortSignal(){if(this.controller){const n=new Error("Cancelling existing WebAuthn API call for new one");n.name="AbortError",this.controller.abort(n)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const vg=new JO;function Sx(e){if(!e)throw new Error("Credential creation options are required");if(typeof PublicKeyCredential<"u"&&"parseCreationOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseCreationOptionsFromJSON=="function")return PublicKeyCredential.parseCreationOptionsFromJSON(e);const{challenge:t,user:n,excludeCredentials:r}=e,s=ep(e,["challenge","user","excludeCredentials"]),i=ba(t).buffer,a=Object.assign(Object.assign({},n),{id:ba(n.id).buffer}),l=Object.assign(Object.assign({},s),{challenge:i,user:a});if(r&&r.length>0){l.excludeCredentials=new Array(r.length);for(let c=0;c<r.length;c++){const d=r[c];l.excludeCredentials[c]=Object.assign(Object.assign({},d),{id:ba(d.id).buffer,type:d.type||"public-key",transports:d.transports})}}return l}function Cx(e){if(!e)throw new Error("Credential request options are required");if(typeof PublicKeyCredential<"u"&&"parseRequestOptionsFromJSON"in PublicKeyCredential&&typeof PublicKeyCredential.parseRequestOptionsFromJSON=="function")return PublicKeyCredential.parseRequestOptionsFromJSON(e);const{challenge:t,allowCredentials:n}=e,r=ep(e,["challenge","allowCredentials"]),s=ba(t).buffer,i=Object.assign(Object.assign({},r),{challenge:s});if(n&&n.length>0){i.allowCredentials=new Array(n.length);for(let a=0;a<n.length;a++){const l=n[a];i.allowCredentials[a]=Object.assign(Object.assign({},l),{id:ba(l.id).buffer,type:l.type||"public-key",transports:l.transports})}}return i}function Ex(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e;return{id:e.id,rawId:e.id,response:{attestationObject:Ki(new Uint8Array(e.response.attestationObject)),clientDataJSON:Ki(new Uint8Array(e.response.clientDataJSON))},type:"public-key",clientExtensionResults:e.getClientExtensionResults(),authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function jx(e){var t;if("toJSON"in e&&typeof e.toJSON=="function")return e.toJSON();const n=e,r=e.getClientExtensionResults(),s=e.response;return{id:e.id,rawId:e.id,response:{authenticatorData:Ki(new Uint8Array(s.authenticatorData)),clientDataJSON:Ki(new Uint8Array(s.clientDataJSON)),signature:Ki(new Uint8Array(s.signature)),userHandle:s.userHandle?Ki(new Uint8Array(s.userHandle)):void 0},type:"public-key",clientExtensionResults:r,authenticatorAttachment:(t=n.authenticatorAttachment)!==null&&t!==void 0?t:void 0}}function U2(e){return e==="localhost"||/^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)}function nh(){var e,t;return!!(Jt()&&"PublicKeyCredential"in window&&window.PublicKeyCredential&&"credentials"in navigator&&typeof((e=navigator==null?void 0:navigator.credentials)===null||e===void 0?void 0:e.create)=="function"&&typeof((t=navigator==null?void 0:navigator.credentials)===null||t===void 0?void 0:t.get)=="function")}async function q2(e){try{const t=await navigator.credentials.create(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new th("Browser returned unexpected credential type",t)}:{data:null,error:new th("Empty credential response",t)}}
94catch(t){return{data:null,error:GO({error:t,options:e})}}}async function V2(e){try{const t=await navigator.credentials.get(e);return t?t instanceof PublicKeyCredential?{data:t,error:null}:{data:null,error:new th("Browser returned unexpected credential type",t)}:{data:null,error:new th("Empty credential response",t)}}catch(t){return{data:null,error:KO({error:t,options:e})}}}const YO={hints:["security-key"],authenticatorSelection:{authenticatorAttachment:"cross-platform",requireResidentKey:!1,userVerification:"preferred",residentKey:"discouraged"},attestation:"direct"},QO={userVerification:"preferred",hints:["security-key"],attestation:"direct"};function rh(...e){const t=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),n=s=>s instanceof ArrayBuffer||ArrayBuffer.isView(s),r={};for(const s of e)if(s)for(const i in s){const a=s[i];if(a!==void 0)if(Array.isArray(a))r[i]=a;else if(n(a))r[i]=a;else if(t(a)){const l=r[i];t(l)?r[i]=rh(l,a):r[i]=rh(a)}else r[i]=a}return r}function ZO(e,t){return rh(YO,e,t||{})}function XO(e,t){return rh(QO,e,t||{})}class e5{constructor(t){this.client=t,this.enroll=this._enroll.bind(this),this.challenge=this._challenge.bind(this),this.verify=this._verify.bind(this),this.authenticate=this._authenticate.bind(this),this.register=this._register.bind(this)}async _enroll(t){return this.client.mfa.enroll(Object.assign(Object.assign({},t),{factorType:"webauthn"}))}async _challenge({factorId:t,webauthn:n,friendlyName:r,signal:s},i){var a;try{const{data:l,error:c}=await this.client.mfa.challenge({factorId:t,webauthn:n});if(!l)return{data:null,error:c};const d=s??vg.createNewAbortSignal();if(l.webauthn.type==="create"){const{user:u}=l.webauthn.credential_options.publicKey;if(!u.name){const h=r;if(h)u.name=`${u.id}:${h}`;else{const p=(await this.client.getUser()).data.user,v=((a=p==null?void 0:p.user_metadata)===null||a===void 0?void 0:a.name)||(p==null?void 0:p.email)||(p==null?void 0:p.id)||"User";u.name=`${u.id}:${v}`}}u.displayName||(u.displayName=u.name)}switch(l.webauthn.type){case"create":{const u=ZO(l.webauthn.credential_options.publicKey,i==null?void 0:i.create),{data:h,error:f}=await q2({publicKey:u,signal:d});return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}case"request":{const u=XO(l.webauthn.credential_options.publicKey,i==null?void 0:i.request),{data:h,error:f}=await V2(Object.assign(Object.assign({},l.webauthn.credential_options),{publicKey:u,signal:d}));return h?{data:{factorId:t,challengeId:l.id,webauthn:{type:l.webauthn.type,credential_response:h}},error:null}:{data:null,error:f}}}}catch(l){return Q(l)?{data:null,error:l}:{data:null,error:new Ar("Unexpected error in challenge",l)}}}async _verify({challengeId:t,factorId:n,webauthn:r}){return this.client.mfa.verify({factorId:n,challengeId:t,webauthn:r})}async _authenticate({factorId:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new jc("rpId is required for WebAuthn authentication")};try{if(!nh())return{data:null,error:new Ar("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this.challenge({factorId:t,webauthn:{rpId:n,rpOrigins:r},signal:s},{request:i});if(!a)return{data:null,error:l};const{webauthn:c}=a;return this._verify({factorId:t,challengeId:a.challengeId,webauthn:{type:c.type,rpId:n,rpOrigins:r,credential_response:c.credential_response}})}catch(a){return Q(a)?{data:null,error:a}:{data:null,error:new Ar("Unexpected error in authenticate",a)}}}async _register({friendlyName:t,webauthn:{rpId:n=typeof window<"u"?window.location.hostname:void 0,rpOrigins:r=typeof window<"u"?[window.location.origin]:void 0,signal:s}={}},i){if(!n)return{data:null,error:new jc("rpId is required for WebAuthn registration")};try{if(!nh())return{data:null,error:new Ar("Browser does not support WebAuthn",null)};const{data:a,error:l}=await this._enroll({friendlyName:t});if(!a)return await this.client.mfa.listFactors().then(u=>{var h;
94return(h=u.data)===null||h===void 0?void 0:h.all.find(f=>f.factor_type==="webauthn"&&f.friendly_name===t&&f.status==="unverified")}).then(u=>u?this.client.mfa.unenroll({factorId:u==null?void 0:u.id}):void 0),{data:null,error:l};const{data:c,error:d}=await this._challenge({factorId:a.id,friendlyName:a.friendly_name,webauthn:{rpId:n,rpOrigins:r},signal:s},{create:i});return c?this._verify({factorId:a.id,challengeId:c.challengeId,webauthn:{rpId:n,rpOrigins:r,type:c.webauthn.type,credential_response:c.webauthn.credential_response}}):{data:null,error:d}}catch(a){return Q(a)?{data:null,error:a}:{data:null,error:new Ar("Unexpected error in register",a)}}}}$O();const t5={url:nO,storageKey:rO,autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,headers:sO,flowType:"implicit",debug:!1,hasCustomAuthorizationHeader:!1,throwOnError:!1,lockAcquireTimeout:5e3,skipAutoInitialize:!1,experimental:{}},Do={};let Tx=!1;class Ac{get jwks(){var t,n;return(n=(t=Do[this.storageKey])===null||t===void 0?void 0:t.jwks)!==null&&n!==void 0?n:{keys:[]}}set jwks(t){Do[this.storageKey]=Object.assign(Object.assign({},Do[this.storageKey]),{jwks:t})}get jwks_cached_at(){var t,n;return(n=(t=Do[this.storageKey])===null||t===void 0?void 0:t.cachedAt)!==null&&n!==void 0?n:Number.MIN_SAFE_INTEGER}set jwks_cached_at(t){Do[this.storageKey]=Object.assign(Object.assign({},Do[this.storageKey]),{cachedAt:t})}constructor(t){var n,r,s;this.userStorage=null,this.memoryStorage=null,this.stateChangeEmitters=new Map,this.autoRefreshTicker=null,this.autoRefreshTickTimeout=null,this.visibilityChangedCallback=null,this.refreshingDeferred=null,this.lastRefreshFailure=null,this._sessionRemovalEpoch=0,this.initializePromise=null,this._pendingInitNotifications=null,this.detectSessionInUrl=!0,this.hasCustomAuthorizationHeader=!1,this.suppressGetSessionWarning=!1,this.lock=null,this.lockAcquired=!1,this.pendingInLock=[],this.broadcastChannel=null,this.logger=console.log;const i=Object.assign(Object.assign({},t5),t);if(this.storageKey=i.storageKey,this.instanceID=(n=Ac.nextInstanceID[this.storageKey])!==null&&n!==void 0?n:0,Ac.nextInstanceID[this.storageKey]=this.instanceID+1,this.logDebugMessages=!!i.debug,typeof i.debug=="function"&&(this.logger=i.debug),this.instanceID>0&&Jt()){const a=`${this._logPrefix()} Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.`;console.warn(a),this.logDebugMessages&&console.trace(a)}if(this.persistSession=i.persistSession,this.autoRefreshToken=i.autoRefreshToken,this.experimental=(r=i.experimental)!==null&&r!==void 0?r:{},this.admin=new WO({url:i.url,headers:i.headers,fetch:i.fetch,experimental:this.experimental}),this.url=i.url,this.headers=i.headers,this.fetch=W2(i.fetch),this.detectSessionInUrl=i.detectSessionInUrl,this.flowType=i.flowType,this.hasCustomAuthorizationHeader=i.hasCustomAuthorizationHeader,this.throwOnError=i.throwOnError,this.lockAcquireTimeout=i.lockAcquireTimeout,i.lock!=null&&(this.lock=i.lock,Tx||(Tx=!0,console.warn(`${this._logPrefix()} The "lock" option is deprecated and will be removed in v3. The client now coordinates session refreshes without a lock, so most apps can drop the option. See https://github.com/supabase/supabase-js/blob/master/packages/core/auth-js/migrations/lockless-coordination.md`))),this.jwks||(this.jwks={keys:[]},this.jwks_cached_at=Number.MIN_SAFE_INTEGER),this.mfa={verify:this._verify.bind(this),enroll:this._enroll.bind(this),unenroll:this._unenroll.bind(this),challenge:this._challenge.bind(this),listFactors:this._listFactors.bind(this),challengeAndVerify:this._challengeAndVerify.bind(this),getAuthenticatorAssuranceLevel:this._getAuthenticatorAssuranceLevel.bind(this),webauthn:new e5(this),recoveryCodes:{getStatus:this._getRecoveryCodesStatus.bind(this),generate:this._generateRecoveryCodes.bind(this),verify:this._verifyRecoveryCode.bind(this),regenerate:this._regenerateRecoveryCodes.bind(this),unenroll:this._unenrollRecoveryCodes.bind(this)}}
94,this.oauth={getAuthorizationDetails:this._getAuthorizationDetails.bind(this),approveAuthorization:this._approveAuthorization.bind(this),denyAuthorization:this._denyAuthorization.bind(this),listGrants:this._listOAuthGrants.bind(this),revokeGrant:this._revokeOAuthGrant.bind(this)},this.passkey={startRegistration:this._startPasskeyRegistration.bind(this),verifyRegistration:this._verifyPasskeyRegistration.bind(this),startAuthentication:this._startPasskeyAuthentication.bind(this),verifyAuthentication:this._verifyPasskeyAuthentication.bind(this),list:this._listPasskeys.bind(this),update:this._updatePasskey.bind(this),delete:this._deletePasskey.bind(this)},this.persistSession?(i.storage?this.storage=i.storage:B2()?this.storage=globalThis.localStorage:(this.memoryStorage={},this.storage=_x(this.memoryStorage)),i.userStorage&&(this.userStorage=i.userStorage)):(this.memoryStorage={},this.storage=_x(this.memoryStorage)),Jt()&&globalThis.BroadcastChannel&&this.persistSession&&this.storageKey){try{this.broadcastChannel=new globalThis.BroadcastChannel(this.storageKey)}catch(a){console.error("Failed to create a new BroadcastChannel, multi-tab state changes will not be available",a)}(s=this.broadcastChannel)===null||s===void 0||s.addEventListener("message",async a=>{this._debug("received broadcast notification from other tab or client",a),(a.data.event==="TOKEN_REFRESHED"||a.data.event==="SIGNED_IN")&&(this.lastRefreshFailure=null);try{await this._notifyAllSubscribers(a.data.event,a.data.session,!1)}catch(l){this._debug("#broadcastChannel","error",l)}})}i.skipAutoInitialize||this.initialize().catch(a=>{this._debug("#initialize()","error",a)})}isThrowOnErrorEnabled(){return this.throwOnError}_returnResult(t){if(this.throwOnError&&t&&t.error)throw t.error;return t}_logPrefix(){return`GoTrueClient@${this.storageKey}:${this.instanceID} (${I2}) ${new Date().toISOString()}`}_debug(...t){return this.logDebugMessages&&this.logger(this._logPrefix(),...t),this}async initialize(){var t;if(this.initializePromise)return await this.initializePromise;this._pendingInitNotifications=[],this.initializePromise=(async()=>this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._initialize()):await this._initialize())();const n=await this.initializePromise,r=(t=this._pendingInitNotifications)!==null&&t!==void 0?t:[];this._pendingInitNotifications=null;for(const s of r)await this._notifyAllSubscribers(s.event,s.session,s.broadcast);return n}async _initialize(){var t;try{let n={},r="none";if(Jt()&&(n=yx(window.location.href),this._isImplicitGrantCallback(n)?r="implicit":await this._isPKCECallback(n)&&(r="pkce")),Jt()&&this.detectSessionInUrl&&r!=="none"){const{data:s,error:i}=await this._getSessionFromURL(n,r);if(i){if(this._debug("#_initialize()","error detecting session from URL",i),cO(i)){const c=(t=i.details)===null||t===void 0?void 0:t.code;if(c==="identity_already_exists"||c==="identity_not_found"||c==="single_identity_not_deletable")return{error:i}}return{error:i}}const{session:a,redirectType:l}=s;return this._debug("#_initialize()","detected session in URL",a,"redirect type",l),await this._saveSession(a),setTimeout(async()=>{l==="recovery"?await this._notifyAllSubscribers("PASSWORD_RECOVERY",a):await this._notifyAllSubscribers("SIGNED_IN",a)},0),{error:null}}return await this._recoverAndRefresh(),{error:null}}catch(n){return Q(n)?this._returnResult({error:n}):this._returnResult({error:new Ar("Unexpected error during initialization",n)})}finally{await this._handleVisibilityChange(),this._debug("#_initialize()","end")}}async signInAnonymously(t){var n,r,s;try{const i=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{data:(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.data)!==null&&r!==void 0?r:{},gotrue_meta_security:{captcha_token:(s=t==null?void 0:t.options)===null||s===void 0?void 0:s.captchaToken}},xform:ir}),{data:a,error:l}=i;if(l||!a)return this._returnResult({data:{user:null,session:null},error:l});const c=a.session,d=a.user;return a.session&&(await this._saveSession(a.session),await this._notifyAllSubscribers("SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(i){if(Q(i))return this._returnResult({data:{user:null,session:null},error:i});throw i}}async signUp(t){var n,r,s;let i=null;try{let a;if("email"in t){const{email:h,password:f,options:p}=t;let v=null,y=null;this.flowType==="pkce"&&([v,y,i]=await this._getCodeChallengeAndMethod()),a=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(p==null?void 0:p.emailRedirectTo,i),body:{email:h,password:f,data:(n=p==null?void 0:p.data)!==null&&n!==void 0?n:{},gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken},code_challenge:v,code_challenge_method:y},xform:ir})}else if("phone"in t){const{phone:h,password:f,options:p}=t;a=await se(this.fetch,"POST",`${this.url}/signup`,{headers:this.headers,body:{phone:h,password:f,data:(r=p==null?void 0:p.data)!==null&&r!==void 0?r:{},channel:(s=p==null?void 0:p.channel)!==null&&s!==void 0?s:"sms",gotrue_meta_security:{captcha_token:p==null?void 0:p.captchaToken}},xform:ir})}else throw new Ld("You must provide either an email or phone number and a password");const{data:l,error:c}=a;if(c||!l)return await wr(this.storage,this.storageKey,i),this._returnResult({data:{user:null,session:null},error:c});const d=l.session,u=l.user;return l.session&&(await this._saveSession(l.session),await this._notifyAllSubscribers("SIGNED_IN",d)),this._returnResult({data:{user:u,session:d},error:null})}catch(a){if(await wr(this.storage,this.storageKey,i),Q(a))return this._returnResult({data:{user:null,session:null},error:a});throw a}}async signInWithPassword(t){try{let n;if("email"in t){const{email:i,password:a,options:l}=t;n=await se(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{email:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:wx})}else if("phone"in t){const{phone:i,password:a,options:l}=t;n=await se(this.fetch,"POST",`${this.url}/token?grant_type=password`,{headers:this.headers,body:{phone:i,password:a,gotrue_meta_security:{captcha_token:l==null?void 0:l.captchaToken}},xform:wx})}else throw new Ld("You must provide either an email or phone number and a password");const{data:r,error:s}=n;if(s)return this._returnResult({data:{user:null,session:null},error:s});if(!r||!r.session||!r.user){const i=new Lo;return this._returnResult({data:{user:null,session:null},error:i})}return r.session&&(await this._saveSession(r.session),await this._notifyAllSubscribers("SIGNED_IN",r.session)),this._returnResult({data:Object.assign({user:r.user,session:r.session},r.weak_password?{weakPassword:r.weak_password}:null),error:s})}catch(n){if(Q(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOAuth(t){var n,r,s,i;return await this._handleProviderSignIn(t.provider,{redirectTo:(n=t.options)===null||n===void 0?void 0:n.redirectTo,scopes:(r=t.options)===null||r===void 0?void 0:r.scopes,queryParams:(s=t.options)===null||s===void 0?void 0:s.queryParams,skipBrowserRedirect:(i=t.options)===null||i===void 0?void 0:i.skipBrowserRedirect})}async exchangeCodeForSession(t,n){return await this.initializePromise,this.lock!=null?this._acquireLock(this.lockAcquireTimeout,async()=>this._exchangeCodeForSession(t,n)):this._exchangeCodeForSession(t,n)}async signInWithWeb3(t){const{chain:n}=t;switch(n){case"ethereum":return await this.signInWithEthereum(t);case"solana":return await this.signInWithSolana(t);default:throw new Error(`@supabase/auth-js: Unsupported chain "${n}"`)}}async signInWithEthereum(t){var n,r,s,i,a,l,c,d,u,h,f;let p,v;if("message"in t)p=t.message,v=t.signature;else{const{chain:y,wallet:x,statement:g,options:m}=t;let b;if(Jt())if(typeof x=="object")b=x;else{const R=window;if("ethereum"in R&&typeof R.ethereum=="object"&&"request"in R.ethereum&&typeof R.ethereum.request=="function")b=R.ethereum;else throw new Error("@supabase/auth-js: No compatible Ethereum wallet interface on the window object (window.ethereum) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'ethereum', wallet: resolvedUserWallet }) instead.")}else{if(typeof x!="object"||!(m!=null&&m.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");b=x}const k=new URL((n=m==null?void 0:m.url)!==null&&n!==void 0?n:window.location.href),S=await b.request({method:"eth_requestAccounts"}).then(R=>R).catch(()=>{throw new Error("@supabase/auth-js: Wallet method eth_requestAccounts is missing or invalid")});if(!S||S.length===0)throw new Error("@supabase/auth-js: No accounts available. Please ensure the wallet is connected.");const E=$2(S[0]);let C=(r=m==null?void 0:m.signInWithEthereum)===null||r===void 0?void 0:r.chainId;if(!C){const R=await b.request({method:"eth_chainId"});C=UO(R)}const N={domain:k.host,address:E,statement:g,uri:k.href,version:"1",chainId:C,nonce:(s=m==null?void 0:m.signInWithEthereum)===null||s===void 0?void 0:s.nonce,issuedAt:(a=(i=m==null?void 0:m.signInWithEthereum)===null||i===void 0?void 0:i.issuedAt)!==null&&a!==void 0?a:new Date,expirationTime:(l=m==null?void 0:m.signInWithEthereum)===null||l===void 0?void 0:l.expirationTime,notBefore:(c=m==null?void 0:m.signInWithEthereum)===null||c===void 0?void 0:c.notBefore,requestId:(d=m==null?void 0:m.signInWithEthereum)===null||d===void 0?void 0:d.requestId,resources:(u=m==null?void 0:m.signInWithEthereum)===null||u===void 0?void 0:u.resources};p=VO(N),v=await b.request({method:"personal_sign",params:[qO(p),E]})}try{const{data:y,error:x}=await se(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"ethereum",message:p,signature:v}
94,!((h=t.options)===null||h===void 0)&&h.captchaToken?{gotrue_meta_security:{captcha_token:(f=t.options)===null||f===void 0?void 0:f.captchaToken}}:null),xform:ir});if(x)throw x;if(!y||!y.session||!y.user){const g=new Lo;return this._returnResult({data:{user:null,session:null},error:g})}return y.session&&(await this._saveSession(y.session),await this._notifyAllSubscribers("SIGNED_IN",y.session)),this._returnResult({data:Object.assign({},y),error:x})}catch(y){if(Q(y))return this._returnResult({data:{user:null,session:null},error:y});throw y}}async signInWithSolana(t){var n,r,s,i,a,l,c,d,u,h,f,p;let v,y;if("message"in t)v=t.message,y=t.signature;else{const{chain:x,wallet:g,statement:m,options:b}=t;let k;if(Jt())if(typeof g=="object")k=g;else{const E=window;if("solana"in E&&typeof E.solana=="object"&&("signIn"in E.solana&&typeof E.solana.signIn=="function"||"signMessage"in E.solana&&typeof E.solana.signMessage=="function"))k=E.solana;else throw new Error("@supabase/auth-js: No compatible Solana wallet interface on the window object (window.solana) detected. Make sure the user already has a wallet installed and connected for this app. Prefer passing the wallet interface object directly to signInWithWeb3({ chain: 'solana', wallet: resolvedUserWallet }) instead.")}else{if(typeof g!="object"||!(b!=null&&b.url))throw new Error("@supabase/auth-js: Both wallet and url must be specified in non-browser environments.");k=g}const S=new URL((n=b==null?void 0:b.url)!==null&&n!==void 0?n:window.location.href);
94if("signIn"in k&&k.signIn){const E=await k.signIn(Object.assign(Object.assign(Object.assign({issuedAt:new Date().toISOString()},b==null?void 0:b.signInWithSolana),{version:"1",domain:S.host,uri:S.href}),m?{statement:m}:null));let C;if(Array.isArray(E)&&E[0]&&typeof E[0]=="object")C=E[0];else if(E&&typeof E=="object"&&"signedMessage"in E&&"signature"in E)C=E;else throw new Error("@supabase/auth-js: Wallet method signIn() returned unrecognized value");if("signedMessage"in C&&"signature"in C&&(typeof C.signedMessage=="string"||C.signedMessage instanceof Uint8Array)&&C.signature instanceof Uint8Array)v=typeof C.signedMessage=="string"?C.signedMessage:new TextDecoder().decode(C.signedMessage),y=C.signature;else throw new Error("@supabase/auth-js: Wallet method signIn() API returned object without signedMessage and signature fields")}else{if(!("signMessage"in k)||typeof k.signMessage!="function"||!("publicKey"in k)||typeof k!="object"||!k.publicKey||!("toBase58"in k.publicKey)||typeof k.publicKey.toBase58!="function")throw new Error("@supabase/auth-js: Wallet does not have a compatible signMessage() and publicKey.toBase58() API");v=[`${S.host} wants you to sign in with your Solana account:`,k.publicKey.toBase58(),...m?["",m,""]:[""],"Version: 1",`URI: ${S.href}`,`Issued At: ${(s=(r=b==null?void 0:b.signInWithSolana)===null||r===void 0?void 0:r.issuedAt)!==null&&s!==void 0?s:new Date().toISOString()}`,...!((i=b==null?void 0:b.signInWithSolana)===null||i===void 0)&&i.notBefore?[`Not Before: ${b.signInWithSolana.notBefore}`]:[],...!((a=b==null?void 0:b.signInWithSolana)===null||a===void 0)&&a.expirationTime?[`Expiration Time: ${b.signInWithSolana.expirationTime}`]:[],...!((l=b==null?void 0:b.signInWithSolana)===null||l===void 0)&&l.chainId?[`Chain ID: ${b.signInWithSolana.chainId}`]:[],...!((c=b==null?void 0:b.signInWithSolana)===null||c===void 0)&&c.nonce?[`Nonce: ${b.signInWithSolana.nonce}`]:[],...!((d=b==null?void 0:b.signInWithSolana)===null||d===void 0)&&d.requestId?[`Request ID: ${b.signInWithSolana.requestId}`]:[],...!((h=(u=b==null?void 0:b.signInWithSolana)===null||u===void 0?void 0:u.resources)===null||h===void 0)&&h.length?["Resources",...b.signInWithSolana.resources.map(C=>`- ${C}`)]:[]].join(` 95`);const E=await k.signMessage(new TextEncoder().encode(v),"utf8");if(!E||!(E instanceof Uint8Array))throw new Error("@supabase/auth-js: Wallet signMessage() API returned an recognized value");y=E}}try{const{data:x,error:g}=await se(this.fetch,"POST",`${this.url}/token?grant_type=web3`,{headers:this.headers,body:Object.assign({chain:"solana",message:v,signature:Ki(y)},!((f=t.options)===null||f===void 0)&&f.captchaToken?{gotrue_meta_security:{captcha_token:(p=t.options)===null||p===void 0?void 0:p.captchaToken}}:null),xform:ir});if(g)throw g;if(!x||!x.session||!x.user){const m=new Lo;return this._returnResult({data:{user:null,session:null},error:m})}return x.session&&(await this._saveSession(x.session),await this._notifyAllSubscribers("SIGNED_IN",x.session)),this._returnResult({data:Object.assign({},x),error:g})}catch(x){if(Q(x))return this._returnResult({data:{user:null,session:null},error:x});throw x}}async _exchangeCodeForSession(t,n){const r=(n==null?void 0:n.flowId)!=null,s=r?pu(n==null?void 0:n.flowId):Jt()?pu(yx(window.location.href)[Gi]):null;r&&!s&&this._debug("#_exchangeCodeForSession()","provided flowId is not a valid flow id",n==null?void 0:n.flowId);const{verifier:i,flowId:a}=r&&!s?{verifier:null,flowId:null}:await EO(this.storage,this.storageKey,s),[l,c]=(i??"").split("/");try{if(!l&&this.flowType==="pkce")throw new dO;const{data:d,error:u}=await se(this.fetch,"POST",`${this.url}/token?grant_type=pkce`,{headers:this.headers,body:{auth_code:t,code_verifier:l},xform:ir});if(await wr(this.storage,this.storageKey,a),u)throw u;if(!d||!d.session||!d.user){const h=new Lo;return this._returnResult({data:{user:null,session:null,redirectType:null},error:h})}return d.session&&(await this._saveSession(d.session),await this._notifyAllSubscribers(c==="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",d.session)),this._returnResult({data:Object.assign(Object.assign({},d),{redirectType:c??null}),error:u})}catch(d){if(await wr(this.storage,this.storageKey,a),Q(d))return this._returnResult({data:{user:null,session:null,redirectType:null},error:d});throw d}}async signInWithIdToken(t){try{const{options:n,provider:r,token:s,access_token:i,nonce:a}=t,l=await se(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,body:{provider:r,id_token:s,access_token:i,nonce:a,gotrue_meta_security:{captcha_token:n==null?void 0:n.captchaToken}},xform:ir}),{data:c,error:d}=l;if(d)return this._returnResult({data:{user:null,session:null},error:d});if(!c||!c.session||!c.user){const u=new Lo;return this._returnResult({data:{user:null,session:null},error:u})}return c.session&&(await this._saveSession(c.session),await this._notifyAllSubscribers("SIGNED_IN",c.session)),this._returnResult({data:c,error:d})}catch(n){if(Q(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async signInWithOtp(t){var n,r,s,i,a;let l=null;try{if("email"in t){const{email:c,options:d}=t;let u=null,h=null;this.flowType==="pkce"&&([u,h,l]=await this._getCodeChallengeAndMethod());const{error:f}=await se(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{email:c,data:(n=d==null?void 0:d.data)!==null&&n!==void 0?n:{},create_user:(r=d==null?void 0:d.shouldCreateUser)!==null&&r!==void 0?r:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},code_challenge:u,code_challenge_method:h},redirectTo:this._maybeAppendFlowIdToRedirect(d==null?void 0:d.emailRedirectTo,l)});return this._returnResult({data:{user:null,session:null},error:f})}if("phone"in t){const{phone:c,options:d}=t,{data:u,error:h}=await se(this.fetch,"POST",`${this.url}/otp`,{headers:this.headers,body:{phone:c,data:(s=d==null?void 0:d.data)!==null&&s!==void 0?s:{},create_user:(i=d==null?void 0:d.shouldCreateUser)!==null&&i!==void 0?i:!0,gotrue_meta_security:{captcha_token:d==null?void 0:d.captchaToken},channel:(a=d==null?void 0:d.channel)!==null&&a!==void 0?a:"sms"}});return this._returnResult({data:{user:null,session:null,messageId:u==null?void 0:u.message_id},error:h})}throw new Ld("You must provide either an email or phone number.")}catch(c){if(await wr(this.storage,this.storageKey,l),Q(c))return this._returnResult({data:{user:null,session:null},error:c});throw c}}async verifyOtp(t){var n,r;try{let s,i;"options"in t&&(s=(n=t.options)===null||n===void 0?void 0:n.redirectTo,i=(r=t.options)===null||r===void 0?void 0:r.captchaToken);const{data:a,error:l}=await se(this.fetch,"POST",`${this.url}/verify`,{headers:this.headers,body:Object.assign(Object.assign({},t),{gotrue_meta_security:{captcha_token:i}}),redirectTo:s,xform:ir});if(l)throw l;if(!a)throw new Error("An error occurred on token verification.");const c=a.session,d=a.user;return c!=null&&c.access_token&&(await this._saveSession(c),await this._notifyAllSubscribers(t.type=="recovery"?"PASSWORD_RECOVERY":"SIGNED_IN",c)),this._returnResult({data:{user:d,session:c},error:null})}catch(s){if(Q(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}}async signInWithSSO(t){var n,r,s,i;let a=null;try{let l=null,c=null;this.flowType==="pkce"&&([l,c,a]=await this._getCodeChallengeAndMethod());const d=await se(this.fetch,"POST",`${this.url}/sso`,{body:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},"providerId"in t?{provider_id:t.providerId}:null),"domain"in t?{domain:t.domain}:null),{redirect_to:this._maybeAppendFlowIdToRedirect((n=t.options)===null||n===void 0?void 0:n.redirectTo,a)}),!((r=t==null?void 0:t.options)===null||r===void 0)&&r.captchaToken?{gotrue_meta_security:{captcha_token:t.options.captchaToken}}:null),{skip_http_redirect:!0,code_challenge:l,code_challenge_method:c}),headers:this.headers,xform:DO});return!((s=d.data)===null||s===void 0)&&s.url&&Jt()&&!(!((i=t.options)===null||i===void 0)&&i.skipBrowserRedirect)&&window.location.assign(d.data.url),this._returnResult(d)}catch(l){if(await wr(this.storage,this.storageKey,a),Q(l))return this._returnResult({data:null,error:l});throw l}}async reauthenticate(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._reauthenticate()):await this._reauthenticate()}async _reauthenticate(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)throw r;if(!n)throw new $t;const{error:s}=await se(this.fetch,"GET",`${this.url}/reauthenticate`,{headers:this.headers,jwt:n.access_token});return this._returnResult({data:{user:null,session:null},error:s})})}catch(t){if(Q(t))return this._returnResult({data:{user:null,session:null},error:t});throw t}}async resend(t){let n=null;try{const r=`${this.url}/resend`;if("email"in t){const{email:s,type:i,options:a}=t;let l=null,c=null;this.flowType==="pkce"&&([l,c,n]=await this._getCodeChallengeAndMethod());const{error:d}=await se(this.fetch,"POST",r,{headers:this.headers,body:{email:s,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken},code_challenge:l,code_challenge_method:c},redirectTo:this._maybeAppendFlowIdToRedirect(a==null?void 0:a.emailRedirectTo,n)});return d&&await wr(this.storage,this.storageKey,n),this._returnResult({data:{user:null,session:null},error:d})}else if("phone"in t){const{phone:s,type:i,options:a}=t,{data:l,error:c}=await se(this.fetch,"POST",r,{headers:this.headers,body:{phone:s,type:i,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}}});return this._returnResult({data:{user:null,session:null,messageId:l==null?void 0:l.message_id},error:c})}throw new Ld("You must provide either an email or phone number and a type")}catch(r){if(await wr(this.storage,this.storageKey,n),Q(r))return this._returnResult({data:{user:null,session:null},error:r});throw r}}async getSession(){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>this._useSession(async t=>t)):await this._useSession(async t=>t)}async _acquireLock(t,n){this._debug("#_acquireLock","begin",t);try{if(this.lockAcquired){const r=this.pendingInLock.length?this.pendingInLock[this.pendingInLock.length-1]:Promise.resolve(),s=(async()=>(await r,await n()))();return this.pendingInLock.push((async()=>{try{await s}catch{}})()),s}return await this.lock(`lock:${this.storageKey}`,t,async()=>{this._debug("#_acquireLock","lock acquired for storage key",this.storageKey);try{this.lockAcquired=!0;const r=n();for(this.pendingInLock.push((async()=>{try{await r}catch{}})()),await r;this.pendingInLock.length;){const s=[...this.pendingInLock];await Promise.all(s),this.pendingInLock.splice(0,s.length)}return await r}finally{this._debug("#_acquireLock","lock released for storage key",this.storageKey),this.lockAcquired=!1}})}finally{this._debug("#_acquireLock","end")}}async _useSession(t){this._debug("#_useSession","begin");try{const n=await this.__loadSession();return await t(n)}finally{this._debug("#_useSession","end")}}async __loadSession(){this._debug("#__loadSession()","begin"),this.lock!=null&&!this.lockAcquired&&this._debug("#__loadSession()","used outside of an acquired lock!",new Error().stack);try{let t=null;const n=await ln(this.storage,this.storageKey);if(this._debug("#getSession()","session from storage",n),n!==null&&(this._isValidSession(n)?t=n:(this._debug("#getSession()","session from storage is not val
95id"),await this._removeSession())),!t)return{data:{session:null},error:null};const r=t.expires_at?t.expires_at*1e3-Date.now()<lf:!1;if(this._debug("#__loadSession()",`session has${r?"":" not"} expired`,"expires_at",t.expires_at),!r)return{data:{session:await this._hydrateSessionUser(t)},error:null};const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);if(i){const a=await ln(this.storage,this.storageKey);return a&&this._isValidSession(a)&&a.expires_at&&a.expires_at*1e3>Date.now()?this._returnResult({data:{session:await this._hydrateSessionUser(a)},error:null}):this._returnResult({data:{session:null},error:i})}return this._returnResult({data:{session:s},error:null})}finally{this._debug("#__loadSession()","end")}}async _hydrateSessionUser(t){if(this.userStorage){const n=await ln(this.userStorage,this.storageKey+"-user");t.user=n!=null&&n.user?n.user:cf()}if(this.storage.isServer&&t.user&&!t.user.__isUserNotAvailableProxy){const n={value:this.suppressGetSessionWarning};t.user=MO(t.user,n),n.value&&(this.suppressGetSessionWarning=!0)}return t}async getUser(t){if(t)return await this._getUser(t);await this.initializePromise;let n;return this.lock!=null?n=await this._acquireLock(this.lockAcquireTimeout,async()=>await this._getUser()):n=await this._getUser(),n.data.user&&(this.suppressGetSessionWarning=!0),n}async _getUser(t){try{return t?await se(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:t,xform:Xs}):await this._useSession(async n=>{var r,s,i;const{data:a,error:l}=n;if(l)throw l;return!(!((r=a.session)===null||r===void 0)&&r.access_token)&&!this.hasCustomAuthorizationHeader?{data:{user:null},error:new $t}:await se(this.fetch,"GET",`${this.url}/user`,{headers:this.headers,jwt:(i=(s=a.session)===null||s===void 0?void 0:s.access_token)!==null&&i!==void 0?i:void 0,xform:Xs})})}catch(n){if(Q(n))return Id(n)&&await this._removeSession(),this._returnResult({data:{user:null},error:n});throw n}}async updateUser(t,n={}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._updateUser(t,n)):await this._updateUser(t,n)}async _updateUser(t,n={}){let r=null;try{return await this._useSession(async s=>{const{data:i,error:a}=s;
95if(a)throw a;if(!i.session)throw new $t;const l=i.session;let c=null,d=null;this.flowType==="pkce"&&t.email!=null&&([c,d,r]=await this._getCodeChallengeAndMethod());const{data:u,error:h}=await se(this.fetch,"PUT",`${this.url}/user`,{headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(n==null?void 0:n.emailRedirectTo,r),body:Object.assign(Object.assign({},t),{code_challenge:c,code_challenge_method:d}),jwt:l.access_token,xform:Xs});if(h)throw h;return l.user=u.user,await this._saveSession(l),await this._notifyAllSubscribers("USER_UPDATED",l),this._returnResult({data:{user:l.user},error:null})})}catch(s){if(await wr(this.storage,this.storageKey,r),Q(s))return this._returnResult({data:{user:null},error:s});throw s}}async setSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._setSession(t)):await this._setSession(t)}async _setSession(t){try{if(!t.access_token||!t.refresh_token)throw new $t;const n=Date.now()/1e3;let r=n,s=!0,i=null;const{payload:a}=Bd(t.access_token);if(a.exp&&(r=a.exp,s=r<=n),s){const{data:l,error:c}=await this._callRefreshToken(t.refresh_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});if(!l)return{data:{user:null,session:null},error:null};i=l}else{const{data:l,error:c}=await this._getUser(t.access_token);if(c)return this._returnResult({data:{user:null,session:null},error:c});i={access_token:t.access_token,refresh_token:t.refresh_token,user:l.user,token_type:"bearer",expires_in:r-n,expires_at:r},await this._saveSession(i),await this._notifyAllSubscribers("SIGNED_IN",i)}return this._returnResult({data:{user:i.user,session:i},error:null})}catch(n){if(Q(n))return this._returnResult({data:{session:null,user:null},error:n});throw n}}async refreshSession(t){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._refreshSession(t)):await this._refreshSession(t)}async _refreshSession(t){try{return await this._useSession(async n=>{var r;if(!t){const{data:a,error:l}=n;if(l)throw l;t=(r=a.session)!==null&&r!==void 0?r:void 0}if(!(t!=null&&t.refresh_token))throw new $t;const{data:s,error:i}=await this._callRefreshToken(t.refresh_token);return i?this._returnResult({data:{user:null,session:null},error:i}):s?this._returnResult({data:{user:s.user,session:s},error:null}):this._returnResult({data:{user:null,session:null},error:null})})}catch(n){if(Q(n))return this._returnResult({data:{user:null,session:null},error:n});throw n}}async _getSessionFromURL(t,n){var r;try{if(!Jt())throw new Dd("No browser detected.");if(t.error||t.error_description||t.error_code)throw new Dd(t.error_description||"Error in URL with unspecified error_description",{error:t.error||"unspecified_error",code:t.error_code||"unspecified_code"});switch(n){case"implicit":if(this.flowType==="pkce")throw new dx("Not a valid PKCE flow url.");break;case"pkce":if(this.flowType==="implicit")throw new Dd("Not a valid implicit grant flow url.");break;default:}if(n==="pkce"){if(this._debug("#_initialize()","begin","is PKCE flow",!0),!t.code)throw new dx("No code detected.");const{data:b,error:k}=await this._exchangeCodeForSession(t.code,{flowId:t[Gi]});if(k)throw k;const S=new URL(window.location.href);return S.searchParams.delete("code"),S.searchParams.delete(Gi),window.history.replaceState(window.history.state,"",S.toString()),{data:{session:b.session,redirectType:(r=b.redirectType)!==null&&r!==void 0?r:null},error:null}}const{provider_token:s,provider_refresh_token:i,access_token:a,refresh_token:l,expires_in:c,expires_at:d,token_type:u}=t;if(!a||!c||!l||!u)throw new Dd("No session defined in URL");const h=Math.round(Date.now()/1e3),f=parseInt(c);let p=h+f;d&&(p=parseInt(d));const v=p-h;v*1e3<=ys&&console.warn(`@supabase/gotrue-js: Session as retrieved from URL expires in ${v}s, should have been closer to ${f}s`);const y=p-f;h-y>=120?console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued over 120s ago, URL could be stale",y,p,h):h-y<0&&console.warn("@supabase/gotrue-js: Session as retrieved from URL was issued in the future? Check the device clock for skew",y,p,h);const{data:x,error:g}=await this._getUser(a);if(g)throw g;const m={provider_token:s,provider_refresh_token:i,access_token:a,expires_in:f,expires_at:p,refresh_token:l,token_type:u,user:x.user};return window.location.hash="",this._debug("#_getSessionFromURL()","clearing window.location.hash"),this._returnResult({data:{session:m,redirectType:t.type},error:null})}catch(s){if(Q(s))return this._returnResult({data:{session:null,redirectType:null},error:s});throw s}}_isImplicitGrantCallback(t){return typeof this.detectSessionInUrl=="function"?this.detectSessionInUrl(new URL(window.location.href),t):!!(t.access_token||t.error||t.error_description||t.error_code)}
95async _isPKCECallback(t){if(!t.code)return!1;const n=pu(t[Gi]);return n&&await ln(this.storage,Ua(this.storageKey,n))?!0:!!await ln(this.storage,`${this.storageKey}-code-verifier`)}async signOut(t={scope:"global"}){return await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>await this._signOut(t)):await this._signOut(t)}async _signOut({scope:t}={scope:"global"}){return await this._useSession(async n=>{var r;const s=async()=>{await this._removeSession()},{data:i,error:a}=n;if(a&&!Id(a))return this._returnResult({error:a});const l=(r=i.session)===null||r===void 0?void 0:r.access_token;if(l){const{error:c}=await this.admin.signOut(l,t);if(c&&!(cx(c)&&(c.status===404||c.status===401||c.status===403)||Id(c)))return t!=="others"&&await s(),this._returnResult({error:c})}return t!=="others"&&await s(),this._returnResult({error:null})})}onAuthStateChange(t){const n=gO(),r={id:n,callback:t,unsubscribe:()=>{this._debug("#unsubscribe()","state change callback with id removed",n),this.stateChangeEmitters.delete(n)}};return this._debug("#onAuthStateChange()","registered callback with id",n),this.stateChangeEmitters.set(n,r),(async()=>(await this.initializePromise,this.lock!=null?await this._acquireLock(this.lockAcquireTimeout,async()=>{this._emitInitialSession(n)}):await this._emitInitialSession(n)))(),{data:{subscription:r}}}async _emitInitialSession(t){return await this._useSession(async n=>{var r,s;try{const{data:{session:i},error:a}=n;if(a)throw a;await((r=this.stateChangeEmitters.get(t))===null||r===void 0?void 0:r.callback("INITIAL_SESSION",i)),this._debug("INITIAL_SESSION","callback id",t,"session",i)}catch(i){if(await((s=this.stateChangeEmitters.get(t))===null||s===void 0?void 0:s.callback("INITIAL_SESSION",null)),this._debug("INITIAL_SESSION","callback id",t,"error",i),hx(i))return;Id(i)||zd(i)||cx(i)&&(i.code==="refresh_token_not_found"||i.code==="refresh_token_already_used"||i.code==="session_expired")?console.warn(i):console.error(i)}})}async resetPasswordForEmail(t,n={}){let r=null,s=null,i=null;this.flowType==="pkce"&&([r,s,i]=await this._getCodeChallengeAndMethod(!0));try{return await se(this.fetch,"POST",`${this.url}/recover`,{body:{email:t,code_challenge:r,code_challenge_method:s,gotrue_meta_security:{captcha_token:n.captchaToken}},headers:this.headers,redirectTo:this._maybeAppendFlowIdToRedirect(n.redirectTo,i)})}catch(a){if(await wr(this.storage,this.storageKey,i),Q(a))return this._returnResult({data:null,error:a});throw a}}async getUserIdentities(){var t;try{const{data:n,error:r}=await this.getUser();if(r)throw r;return this._returnResult({data:{identities:(t=n.user.identities)!==null&&t!==void 0?t:[]},error:null})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async linkIdentity(t){return"token"in t?this.linkIdentityIdToken(t):this.linkIdentityOAuth(t)}async linkIdentityOAuth(t){var n;let r=null;try{const{data:s,error:i}=await this._useSession(async a=>{var l,c,d,u,h;const{data:f,error:p}=a;if(p)throw p;const{url:v,flowId:y}=await this._getUrlForProvider(`${this.url}/user/identities/authorize`,t.provider,{redirectTo:(l=t.options)===null||l===void 0?void 0:l.redirectTo,scopes:(c=t.options)===null||c===void 0?void 0:c.scopes,queryParams:(d=t.options)===null||d===void 0?void 0:d.queryParams,skipBrowserRedirect:!0});return r=y,await se(this.fetch,"GET",v,{headers:this.headers,jwt:(h=(u=f.session)===null||u===void 0?void 0:u.access_token)!==null&&h!==void 0?h:void 0})});if(i)throw i;return Jt()&&!(!((n=t.options)===null||n===void 0)&&n.skipBrowserRedirect)&&window.location.assign(s==null?void 0:s.url),this._returnResult({data:{provider:t.provider,url:s==null?void 0:s.url,flowId:r},error:null})}catch(s){if(Q(s))return this._returnResult({data:{provider:t.provider,url:null,flowId:r},error:s});throw s}}async linkIdentityIdToken(t){return await this._useSession(async n=>{var r;try{const{error:s,data:{session:i}}=n;if(s)throw s;const{options:a,provider:l,token:c,access_token:d,nonce:u}=t,h=await se(this.fetch,"POST",`${this.url}/token?grant_type=id_token`,{headers:this.headers,jwt:(r=i==null?void 0:i.access_token)!==null&&r!==void 0?r:void 0,body:{provider:l,id_token:c,access_token:d,nonce:u,link_identity:!0,gotrue_meta_security:{captcha_token:a==null?void 0:a.captchaToken}},xform:ir}),{data:f,error:p}=h;return p?this._returnResult({data:{user:null,session:null},error:p}):!f||!f.session||!f.user?this._returnResult({data:{user:null,session:null},error:new Lo}):(f.session&&(await this._saveSession(f.session),await this._notifyAllSubscribers("USER_UPDATED",f.session)),this._returnResult({data:f,error:p}))}catch(s){if(await wr(this.storage,this.storageKey,null),Q(s))return this._returnResult({data:{user:null,session:null},error:s});throw s}})}async unlinkIdentity(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:a}=n;
95if(a)throw a;return await se(this.fetch,"DELETE",`${this.url}/user/identities/${t.identity_id}`,{headers:this.headers,jwt:(s=(r=i.session)===null||r===void 0?void 0:r.access_token)!==null&&s!==void 0?s:void 0})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _refreshAccessToken(t){const n="#_refreshAccessToken()";this._debug(n,"begin");try{const r=Date.now();return await vO(async s=>(s>0&&await bO(200*Math.pow(2,s-1)),this._debug(n,"refreshing attempt",s),await se(this.fetch,"POST",`${this.url}/token?grant_type=refresh_token`,{body:{refresh_token:t},headers:this.headers,xform:ir})),(s,i)=>{const a=200*Math.pow(2,s);return i&&zd(i)&&Date.now()+a-r<ys})}catch(r){if(this._debug(n,"error",r),Q(r))return this._returnResult({data:{session:null,user:null},error:r});throw r}finally{this._debug(n,"end")}}_isValidSession(t){return typeof t=="object"&&t!==null&&"access_token"in t&&"refresh_token"in t&&"expires_at"in t}async _handleProviderSignIn(t,n){const{url:r,flowId:s}=await this._getUrlForProvider(`${this.url}/authorize`,t,{redirectTo:n.redirectTo,scopes:n.scopes,queryParams:n.queryParams});return this._debug("#_handleProviderSignIn()","provider",t,"options",n,"url",r),Jt()&&!n.skipBrowserRedirect&&window.location.assign(r),{data:{provider:t,url:r,flowId:s},error:null}}async _recoverAndRefresh(){var t,n;const r="#_recoverAndRefresh()";this._debug(r,"begin");try{const s=await ln(this.storage,this.storageKey);if(s&&this.userStorage){let a=await ln(this.userStorage,this.storageKey+"-user");!this.storage.isServer&&Object.is(this.storage,this.userStorage)&&!a&&(a={user:s.user},await xs(this.userStorage,this.storageKey+"-user",a)),s.user=(t=a==null?void 0:a.user)!==null&&t!==void 0?t:cf()}else if(s&&!s.user&&!s.user){const a=await ln(this.storage,this.storageKey+"-user");a&&(a!=null&&a.user)?(s.user=a.user,await In(this.storage,this.storageKey+"-user"),await xs(this.storage,this.storageKey,s)):s.user=cf()}if(this._debug(r,"session from storage",s),!this._isValidSession(s)){this._debug(r,"session is not valid"),s!==null&&await this._removeSession();return}const i=((n=s.expires_at)!==null&&n!==void 0?n:1/0)*1e3-Date.now()<lf;if(this._debug(r,`session has${i?"":" not"} expired with margin of ${lf}s`),i){if(this.autoRefreshToken&&s.refresh_token){const{error:a}=await this._callRefreshToken(s.refresh_token);a&&(hx(a)?this._debug(r,"refresh discarded by commit guard",a):this._debug(r,"refresh failed",a))}}else if(s.user&&s.user.__isUserNotAvailableProxy===!0)try{const{data:a,error:l}=await this._getUser(s.access_token);!l&&(a!=null&&a.user)?(s.user=a.user,await this._saveSession(s),await this._notifyAllSubscribers("SIGNED_IN",s)):this._debug(r,"could not get user data, skipping SIGNED_IN notification")}catch(a){console.error("Error getting user data:",a),this._debug(r,"error getting user data, skipping SIGNED_IN notification",a)}else await this._notifyAllSubscribers("SIGNED_IN",s)}catch(s){this._debug(r,"error",s),zd(s)?console.warn(s):console.error(s);return}finally{this._debug(r,"end")}}async _callRefreshToken(t){var n,r;if(!t)throw new $t;if(this.refreshingDeferred)return this.refreshingDeferred.promise;if(this.lastRefreshFailure&&this.lastRefreshFailure.refreshToken===t&&Date.now()<this.lastRefreshFailure.expiresAt)return this._debug("#_callRefreshToken()","returning cached failure (cooldown active)"),this.lastRefreshFailure.result;const s="#_callRefreshToken()";this._debug(s,"begin");try{this.refreshingDeferred=new tp,this.refreshingDeferred.promise.then(void 0,()=>{});const i=await ln(this.storage,this.storageKey),{data:a,error:l}=await this._refreshAccessToken(t);if(l)throw l;if(!a.session)throw new $t;const c=await ln(this.storage,this.storageKey);if(i!==null&&(c===null||c.refresh_token!==i.refresh_token)){this._debug(s,"commit guard: storage changed since refresh started, discarding rotated tokens",{startedWith:"present",nowHolds:c?"replaced":"cleared"});const f={data:null,error:new ux};return this.refreshingDeferred.resolve(f),f}const u=this._sessionRemovalEpoch;if(await this._saveSession(a.session),this._sessionRemovalEpoch!==u){this._debug(s,"commit guard (post-save): _removeSession ran during _saveSession, und
95oing write"),await In(this.storage,this.storageKey),this.userStorage&&await In(this.userStorage,this.storageKey+"-user");const f={data:null,error:new ux};return this.refreshingDeferred.resolve(f),f}await this._notifyAllSubscribers("TOKEN_REFRESHED",a.session);const h={data:a.session,error:null};return this.lastRefreshFailure=null,this.refreshingDeferred.resolve(h),h}catch(i){if(this._debug(s,"error",i),Q(i)){const a={data:null,error:i};if(!zd(i)){const l=await ln(this.storage,this.storageKey);!!(l!=null&&l.expires_at&&l.expires_at*1e3>Date.now())?this._debug(s,"proactive refresh failed, access token still valid â preserving session"):await this._removeSession()}return this.lastRefreshFailure={refreshToken:t,result:a,expiresAt:Date.now()+tO},(n=this.refreshingDeferred)===null||n===void 0||n.resolve(a),a}throw(r=this.refreshingDeferred)===null||r===void 0||r.reject(i),i}finally{this.refreshingDeferred=null,this._debug(s,"end")}}async _notifyAllSubscribers(t,n,r=!0){if(this._pendingInitNotifications!==null&&r){this._pendingInitNotifications.push({event:t,session:n,broadcast:r});return}const s=`#_notifyAllSubscribers(${t})`;this._debug(s,"begin",n,`broadcast = ${r}`);try{this.broadcastChannel&&r&&this.broadcastChannel.postMessage({event:t,session:n});const i=[],a=Array.from(this.stateChangeEmitters.values()).map(async l=>{try{await l.callback(t,n)}catch(c){i.push(c)}});if(await Promise.all(a),i.length>0){for(let l=0;l<i.length;l+=1)console.error(i[l]);throw i[0]}}finally{this._debug(s,"end")}}async _saveSession(t){this._debug("#_saveSession()",t),this.suppressGetSessionWarning=!0;const n=Object.assign({},t),r=n.user&&n.user.__isUserNotAvailableProxy===!0;if(this.userStorage){!r&&n.user&&await xs(this.userStorage,this.storageKey+"-user",{user:n.user});const s=Object.assign({},n);delete s.user;const i=bx(s);await xs(this.storage,this.storageKey,i)}else{const s=bx(n);await xs(this.storage,this.storageKey,s)}}async _removeSession(){this._sessionRemovalEpoch+=1,this._debug("#_removeSession()"),this.lastRefreshFailure=null,this.suppressGetSessionWarning=!1,await In(this.storage,this.storageKey),await jO(this.storage,this.storageKey),await In(this.storage,this.storageKey+"-user"),this.userStorage&&await In(this.userStorage,this.storageKey+"-user"),await this._notifyAllSubscribers("SIGNED_OUT",null)}_removeVisibilityChangedCallback(){this._debug("#_removeVisibilityChangedCallback()");const t=this.visibilityChangedCallback;this.visibilityChangedCallback=null;try{t&&Jt()&&(window!=null&&window.removeEventListener)&&window.removeEventListener("visibilitychange",t)}catch(n){console.error("removing visibilitychange callback failed",n)}}async _startAutoRefresh(){await this._stopAutoRefresh(),this._debug("#_startAutoRefresh()");const t=setInterval(()=>this._autoRefreshTokenTick(),ys);this.autoRefreshTicker=t,t&&typeof t=="object"&&typeof t.unref=="function"?t.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(t);const n=setTimeout(async()=>{await this.initializePromise,await this._autoRefreshTokenTick()},0);this.autoRefreshTickTimeout=n,n&&typeof n=="object"&&typeof n.unref=="function"?n.unref():typeof Deno<"u"&&typeof Deno.unrefTimer=="function"&&Deno.unrefTimer(n)}async _stopAutoRefresh(){this._debug("#_stopAutoRefresh()");const t=this.autoRefreshTicker;this.autoRefreshTicker=null,t&&clearInterval(t);const n=this.autoRefreshTickTimeout;this.autoRefreshTickTimeout=null,n&&clearTimeout(n)}async startAutoRefresh(){this._removeVisibilityChangedCallback(),await this._startAutoRefresh()}async stopAutoRefresh(){this._removeVisibilityChangedCallback(),await this._stopAutoRefresh()}async dispose(){var t;this._removeVisibilityChangedCallback(),await this._stopAutoRefresh(),(t=this.broadcastChannel)===null||t===void 0||t.close(),this.broadcastChannel=null,this.stateChangeEmitters.clear()}async _autoRefreshTokenTick(){if(this._debug("#_autoRefreshTokenTick()","begin"),this.lock!=null){try{await this._acquireLock(0,async()=>{try{const t=Date.now();try{return await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/ys);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ys}ms, refresh threshold is ${Ll} ticks`),s<=Ll&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}})}catch(t){if(t instanceof HO)this._debug("auto refresh token tick lock not available");else throw t}return}if(this.refreshingDeferred!==null){this._debug("#_autoRefreshTokenTick()","refresh already in flight, skipping");return}try{const t=Date.now();try{await this._useSession(async n=>{const{data:{session:r}}=n;if(!r||!r.refresh_token||!r.expires_at){this._debug("#_autoRefreshTokenTick()","no session");return}const s=Math.floor((r.expires_at*1e3-t)/ys);this._debug("#_autoRefreshTokenTick()",`access token expires in ${s} ticks, a tick lasts ${ys}ms, refresh threshold is ${Ll} ticks`),s<=Ll&&await this._callRefreshToken(r.refresh_token)})}catch(n){console.error("Auto refresh tick failed with error. This is likely a transient error.",n)}}finally{this._debug("#_autoRefreshTokenTick()","end")}}async _handleVisibilityChange(){if(this._debug("#_handleVisibilityChange()"),!Jt()||!(window!=null&&window.addEventListener))return this.autoRefreshToken&&this.startAutoRefresh(),!1;try{this.visibilityChangedCallback=async()=>{try{await this._onVisibilityChanged(!1)}catch(t){this._debug("#visibilityChangedCallback","error",t)}},window==null||window.addEventListener("visibilitychange",this.visibilityChangedCallback),await this._onVisibilityChanged(!0)}catch(t){console.error("_handleVisibilityChange",t)}}async _onVisibilityChanged(t){const n=`#_onVisibilityChanged(${t})`;if(this._debug(n,"visibilityState",document.visibilityState),document.visibilityState==="visible"){if(this.autoRefreshToken&&this._startAutoRefresh(),!t)if(await this.initializePromise,this.lock!=null)await this._acquireLock(this.lockAcquireTimeout,async()=>
95{if(document.visibilityState!=="visible"){this._debug(n,"acquired the lock to recover the session, but the browser visibilityState is no longer visible, aborting");return}await this._recoverAndRefresh()});else{if(document.visibilityState!=="visible"){this._debug(n,"visibilityState is no longer visible, skipping recovery");return}await this._recoverAndRefresh()}}else document.visibilityState==="hidden"&&this.autoRefreshToken&&this._stopAutoRefresh()}async _getUrlForProvider(t,n,r){let s=r==null?void 0:r.redirectTo,i=null,a=null,l=null;this.flowType==="pkce"&&([i,a,l]=await this._getCodeChallengeAndMethod(),s=this._maybeAppendFlowIdToRedirect(s,l));const c=[`provider=${encodeURIComponent(n)}`];if(s&&c.push(`redirect_to=${encodeURIComponent(s)}`),r!=null&&r.scopes&&c.push(`scopes=${encodeURIComponent(r.scopes)}`),i!=null&&a!=null){const d=new URLSearchParams({code_challenge:`${encodeURIComponent(i)}`,code_challenge_method:`${encodeURIComponent(a)}`});c.push(d.toString())}if(r!=null&&r.queryParams){const d=new URLSearchParams(r.queryParams);c.push(d.toString())}return r!=null&&r.skipBrowserRedirect&&c.push(`skip_http_redirect=${r.skipBrowserRedirect}`),{url:`${t}?${c.join("&")}`,flowId:l}}_maybeAppendFlowIdToRedirect(t,n){return!t||!n||!this.experimental.appendPkceFlowIdToRedirects?t??void 0:TO(t,n)}async _getCodeChallengeAndMethod(t=!1){return AO(this.storage,this.storageKey,t,n=>this._debug("#_getCodeChallengeAndMethod()","evicted oldest pending PKCE verifier slot",n))}async _unenroll(t){try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;return i?this._returnResult({data:null,error:i}):await se(this.fetch,"DELETE",`${this.url}/factors/${t.factorId}`,{headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _enroll(t){try{return await this._useSession(async n=>{var r,s;const{data:i,error:a}=n;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({friendly_name:t.friendlyName,factor_type:t.factorType},t.factorType==="phone"?{phone:t.phone}:t.factorType==="totp"?{issuer:t.issuer}:{}),{data:c,error:d}=await se(this.fetch,"POST",`${this.url}/factors`,{body:l,headers:this.headers,jwt:(r=i==null?void 0:i.session)===null||r===void 0?void 0:r.access_token});return d?this._returnResult({data:null,error:d}):(t.factorType==="totp"&&c.type==="totp"&&(!((s=c==null?void 0:c.totp)===null||s===void 0)&&s.qr_code)&&(c.totp.qr_code=`data:image/svg+xml;utf-8,${c.totp.qr_code}`),this._returnResult({data:c,error:null}))})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _verify(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=Object.assign({challenge_id:t.challengeId},"webauthn"in t?{webauthn:Object.assign(Object.assign({},t.webauthn),{credential_response:t.webauthn.type==="create"?Ex(t.webauthn.credential_response):jx(t.webauthn.credential_response)})}:{code:t.code}),{data:c,error:d}=await se(this.fetch,"POST",`${this.url}/factors/${t.factorId}/verify`,{body:l,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});return d?this._returnResult({data:null,error:d}):(await this._saveSession(Object.assign({expires_at:Math.round(Date.now()/1e3)+c.expires_in},c)),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",c),this._returnResult({data:c,error:d}))})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challenge(t){const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const l=await se(this.fetch,"POST",`${this.url}/factors/${t.factorId}/challenge`,{body:t,headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(l.error)return l;const{data:c}=l;if(c.type!=="webauthn")return{data:c,error:null};switch(c.webauthn.type){case"create":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Sx(c.webauthn.credential_options.publicKey)})})}),error:null};case"request":return{data:Object.assign(Object.assign({},c),{webauthn:Object.assign(Object.assign({},c.webauthn),{credential_options:Object.assign(Object.assign({},c.webauthn.credential_options),{publicKey:Cx(c.webauthn.credential_options.publicKey)})})}),error:null}}})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _challengeAndVerify(t){const{data:n,error:r}=await this._challenge({factorId:t.factorId});return r?this._returnResult({data:null,error:r}):await this._verify({factorId:t.factorId,challengeId:n.id,code:t.code})}async _listFactors(){var t;const{data:{user:n},error:r}=await this.getUser();if(r)return{data:null,error:r};const s={all:[],phone:[],totp:[],webauthn:[],recovery_code:[]};for(const i of(t=n==null?void 0:n.factors)!==null&&t!==void 0?t:[])s.all.push(i),i.status==="verified"&&i.factor_type in s&&Array.isArray(s[i.factor_type])&&s[i.factor_type].push(i);return{data:s,error:null}}async _getAuthenticatorAssuranceLevel(t){var n,r,s,i;if(t)try{const{payload:p}=Bd(t);let v=null;p.aal&&(v=p.aal);let y=v;const{data:{user:x},error:g}=await this.getUser(t);if(g)return this._returnResult({data:null,error:g});((r=(n=x==null?void 0:x.factors)===null||n===void 0?void 0:n.filter(k=>k.status==="verified"))!==null&&r!==void 0?r:[]).length>0&&(y="aal2");const b=p.amr||[];return{data:{currentLevel:v,nextLevel:y,currentAuthenticationMethods:b},error:null}}catch(p){if(Q(p))return this._returnResult({data:null,error:p});throw p}const{data:{session:a},error:l}
95=await this.getSession();if(l)return this._returnResult({data:null,error:l});if(!a)return{data:{currentLevel:null,nextLevel:null,currentAuthenticationMethods:[]},error:null};const{payload:c}=Bd(a.access_token);let d=null;c.aal&&(d=c.aal);let u=d;((i=(s=a.user.factors)===null||s===void 0?void 0:s.filter(p=>p.status==="verified"))!==null&&i!==void 0?i:[]).length>0&&(u="aal2");const f=c.amr||[];return{data:{currentLevel:d,nextLevel:u,currentAuthenticationMethods:f},error:null}}async _getRecoveryCodesStatus(){kl(this.experimental);try{return await this._useSession(async t=>{var n;const{data:r,error:s}=t;if(s)return this._returnResult({data:null,error:s});const{data:i,error:a}=await se(this.fetch,"GET",`${this.url}/factors/recovery-codes`,{headers:this.headers,jwt:(n=r==null?void 0:r.session)===null||n===void 0?void 0:n.access_token});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _generateRecoveryCodes(t){kl(this.experimental);try{return await this._useSession(async n=>{var r;const{data:s,error:i}=n;if(i)return this._returnResult({data:null,error:i});const{data:a,error:l}=await se(this.fetch,"POST",`${this.url}/factors/recovery-codes`,{body:t!=null&&t.friendlyName?{friendly_name:t.friendlyName}:void 0,headers:this.headers,jwt:(r=s==null?void 0:s.session)===null||r===void 0?void 0:r.access_token});return l?this._returnResult({data:null,error:l}):this._returnResult({data:a,error:null})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _verifyRecoveryCode(t){kl(this.experimental);const n=async()=>{try{return await this._useSession(async r=>{var s;const{data:i,error:a}=r;if(a)return this._returnResult({data:null,error:a});const{data:l,error:c}=await se(this.fetch,"POST",`${this.url}/factors/recovery-codes/verify`,{body:{code:t.code},headers:this.headers,jwt:(s=i==null?void 0:i.session)===null||s===void 0?void 0:s.access_token});if(c)return this._returnResult({data:null,error:c});const d=Object.assign({expires_at:z2(l.expires_in)},l);return await this._saveSession(d),await this._notifyAllSubscribers("MFA_CHALLENGE_VERIFIED",d),this._returnResult({data:l,error:null})})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}};return this.lock!=null?this._acquireLock(this.lockAcquireTimeout,n):n()}async _regenerateRecoveryCodes(){kl(this.experimental);try{return await this._useSession(async t=>{var n;const{data:r,error:s}=t;if(s)return this._returnResult({data:null,error:s});const{data:i,error:a}=await se(this.fetch,"POST",`${this.url}/factors/recovery-codes/regenerate`,{headers:this.headers,jwt:(n=r==null?void 0:r.session)===null||n===void 0?void 0:n.access_token});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _unenrollRecoveryCodes(){kl(this.experimental);try{return await this._useSession(async t=>{var n;const{data:r,error:s}=t;if(s)return this._returnResult({data:null,error:s});const{data:i,error:a}=await se(this.fetch,"DELETE",`${this.url}/factors/recovery-codes`,{headers:this.headers,jwt:(n=r==null?void 0:r.session)===null||n===void 0?void 0:n.access_token});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _getAuthorizationDetails(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}):r?await se(this.fetch,"GET",`${this.url}/oauth/authorizations/${t}`,{headers:this.headers,jwt:r.access_token,xform:i=>({data:i,error:null})}):this._returnResult({data:null,error:new $t})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _approveAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new $t});const a=await se(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"approve"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&Jt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _denyAuthorization(t,n){try{return await this._useSession(async r=>{const{data:{session:s},error:i}=r;if(i)return this._returnResult({data:null,error:i});if(!s)return this._returnResult({data:null,error:new $t});const a=await se(this.fetch,"POST",`${this.url}/oauth/authorizations/${t}/consent`,{headers:this.headers,jwt:s.access_token,body:{action:"deny"},xform:l=>({data:l,error:null})});return a.data&&a.data.redirect_url&&Jt()&&!(n!=null&&n.skipBrowserRedirect)&&window.location.assign(a.data.redirect_url),a})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _listOAuthGrants(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;return r?this._returnResult({data:null,error:r}):n?await se(this.fetch,"GET",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:n.access_token,xform:s=>({data:s,error:null})}):this._returnResult({data:null,error:new $t})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _revokeOAuthGrant(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;return s?this._returnResult({data:null,error:s}
95):r?(await se(this.fetch,"DELETE",`${this.url}/user/oauth/grants`,{headers:this.headers,jwt:r.access_token,query:{client_id:t.clientId},noResolveJson:!0}),{data:{},error:null}):this._returnResult({data:null,error:new $t})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async fetchJwk(t,n={keys:[]}){let r=n.keys.find(l=>l.kid===t);if(r)return r;const s=Date.now();if(r=this.jwks.keys.find(l=>l.kid===t),r&&this.jwks_cached_at+aO>s)return r;const{data:i,error:a}=await se(this.fetch,"GET",`${this.url}/.well-known/jwks.json`,{headers:this.headers});if(a)throw a;return!i.keys||i.keys.length===0||(this.jwks=i,this.jwks_cached_at=s,r=i.keys.find(l=>l.kid===t),!r)?null:r}async getClaims(t,n={}){try{let r=t;if(!r){const{data:p,error:v}=await this.getSession();if(v||!p.session)return this._returnResult({data:null,error:v});r=p.session.access_token}const{header:s,payload:i,signature:a,raw:{header:l,payload:c}}=Bd(r);if(!(n!=null&&n.allowExpired))try{PO(i.exp)}catch(p){throw new Xu(p instanceof Error?p.message:"JWT validation failed")}const d=!s.alg||s.alg.startsWith("HS")||!s.kid||!("crypto"in globalThis&&"subtle"in globalThis.crypto)?null:await this.fetchJwk(s.kid,n!=null&&n.keys?{keys:n.keys}:n==null?void 0:n.jwks);if(!d){const{error:p}=await this.getUser(r);if(p)throw p;return{data:{claims:i,header:s,signature:a},error:null}}const u=RO(s.alg),h=await crypto.subtle.importKey("jwk",d,u,!0,["verify"]);if(!await crypto.subtle.verify(u,h,a,mO(`${l}.${c}`)))throw new Xu("Invalid JWT signature");return{data:{claims:i,header:s,signature:a},error:null}}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async signInWithPasskey(t){var n,r,s,i;try{if(!nh())return this._returnResult({data:null,error:new Ar("Browser does not support WebAuthn",null)});const{data:a,error:l}=await this._startPasskeyAuthentication({options:{captchaToken:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}});if(l||!a)return this._returnResult({data:null,error:l});const c=Cx(a.options),d=(s=(r=t==null?void 0:t.options)===null||r===void 0?void 0:r.signal)!==null&&s!==void 0?s:vg.createNewAbortSignal(),{data:u,error:h}=await V2({publicKey:c,signal:d,mediation:(i=t==null?void 0:t.options)===null||i===void 0?void 0:i.mediation});if(h||!u)return this._returnResult({data:null,error:h??new Ar("WebAuthn ceremony failed",null)});const f=jx(u);return this._verifyPasskeyAuthentication({challengeId:a.challenge_id,credential:f})}catch(a){if(Q(a))return this._returnResult({data:null,error:a});throw a}}async registerPasskey(t){var n,r;try{if(!nh())return this._returnResult({data:null,error:new Ar("Browser does not support WebAuthn",null)});const{data:s,error:i}=await this._startPasskeyRegistration();if(i||!s)return this._returnResult({data:null,error:i});const a=Sx(s.options),l=(r=(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.signal)!==null&&r!==void 0?r:vg.createNewAbortSignal(),{data:c,error:d}=await q2({publicKey:a,signal:l});if(d||!c)return this._returnResult({data:null,error:d??new Ar("WebAuthn ceremony failed",null)});const u=Ex(c);return this._verifyPasskeyRegistration({challengeId:s.challenge_id,credential:u})}catch(s){if(Q(s))return this._returnResult({data:null,error:s});throw s}}async _startPasskeyRegistration(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new $t});const{data:s,error:i}=await se(this.fetch,"POST",`${this.url}/passkeys/registration/options`,{headers:this.headers,jwt:n.access_token,body:{}});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _verifyPasskeyRegistration(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new $t});const{data:i,error:a}=await se(this.fetch,"POST",`${this.url}/passkeys/registration/verify`,{headers:this.headers,jwt:r.access_token,body:{challenge_id:t.challengeId,credential:t.credential}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _startPasskeyAuthentication(t){var n;try{const{data:r,error:s}=await se(this.fetch,"POST",`${this.url}/passkeys/authentication/options`,{headers:this.headers,body:{gotrue_meta_security:{captcha_token:(n=t==null?void 0:t.options)===null||n===void 0?void 0:n.captchaToken}}});return s?this._returnResult({data:null,error:s}):this._returnResult({data:r,error:null})}catch(r){if(Q(r))return this._returnResult({data:null,error:r});throw r}}async _verifyPasskeyAuthentication(t){try{const{data:n,error:r}=await se(this.fetch,"POST",`${this.url}/passkeys/authentication/verify`,{headers:this.headers,body:{challenge_id:t.challengeId,credential:t.credential},xform:ir});return r?this._returnResult({data:null,error:r}):(n.session&&(await this._saveSession(n.session),await this._notifyAllSubscribers("SIGNED_IN",n.session)),this._returnResult({data:n,error:null}))}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _listPasskeys(){try{return await this._useSession(async t=>{const{data:{session:n},error:r}=t;if(r)return this._returnResult({data:null,error:r});if(!n)return this._returnResult({data:null,error:new $t});const{data:s,error:i}=await se(this.fetch,"GET",`${this.url}/passkeys`,{headers:this.headers,jwt:n.access_token,xform:a=>({data:a,error:null})});return i?this._returnResult({data:null,error:i}):this._returnResult({data:s,error:null})})}catch(t){if(Q(t))return this._returnResult({data:null,error:t});throw t}}async _updatePasskey(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new $t});const{data:i,error:a}=await se(this.fetch,"PATCH",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,body:{friendly_name:t.friendlyName}});return a?this._returnResult({data:null,error:a}):this._returnResult({data:i,error:null})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}async _deletePasskey(t){try{return await this._useSession(async n=>{const{data:{session:r},error:s}=n;if(s)return this._returnResult({data:null,error:s});if(!r)return this._returnResult({data:null,error:new $t});const{error:i}
95=await se(this.fetch,"DELETE",`${this.url}/passkeys/${t.passkeyId}`,{headers:this.headers,jwt:r.access_token,noResolveJson:!0});return i?this._returnResult({data:null,error:i}):this._returnResult({data:null,error:null})})}catch(n){if(Q(n))return this._returnResult({data:null,error:n});throw n}}}Ac.nextInstanceID={};const n5=Ac,r5="2.117.2";let Dl="",sh;if(typeof Deno<"u"){var uf;Dl="deno",sh=(uf=Deno.version)===null||uf===void 0?void 0:uf.deno}else if(typeof document<"u")Dl="web";else if(typeof navigator<"u"&&navigator.product==="ReactNative")Dl="react-native";else{var hf;Dl="node";const e=globalThis.process;sh=e==null||(hf=e.version)===null||hf===void 0?void 0:hf.replace(/^v/,"")}const G2=[`runtime=${Dl}`];sh&&G2.push(`runtime-version=${sh}`);const s5={"X-Client-Info":`supabase-js/${r5}; ${G2.join("; ")}`},i5={headers:s5},o5={schema:"public"},a5={autoRefreshToken:!0,persistSession:!0,detectSessionInUrl:!0,flowType:"implicit"},l5={},c5={enabled:!1,respectSamplingDecision:!0};function d5(e){if(!e||typeof e!="string")return null;const t=e.split("-");if(t.length!==4)return null;const[n,r,s,i]=t;if(n.length!==2||r.length!==32||s.length!==16||i.length!==2)return null;const a=/^[0-9a-f]+$/i;return!a.test(n)||!a.test(r)||!a.test(s)||!a.test(i)||r==="00000000000000000000000000000000"||s==="0000000000000000"?null:{version:n,traceId:r,parentId:s,traceFlags:i,isSampled:(parseInt(i,16)&1)===1}}function u5(e,t){if(!e||!t||t.length===0)return!1;let n;if(e instanceof URL)n=e;else try{n=new URL(e)}catch{return!1}for(const r of t)try{if(typeof r=="string"){if(h5(n.hostname,r))return!0}else if(r instanceof RegExp){if(r.test(n.hostname))return!0}else if(typeof r=="function"&&r(n))return!0}catch{continue}return!1}function h5(e,t){if(t===e)return!0;if(t.startsWith("*.")){const n=t.slice(2);if(e.endsWith(n)&&(e===n||e.endsWith("."+n)))return!0}return!1}function p5(e){const t=[];try{const n=new URL(e);t.push(n.hostname)}catch{}return t.push("*.supabase.co","*.supabase.in"),t.push("localhost","127.0.0.1","[::1]"),t}function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function f5(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function m5(e){var t=f5(e,"string");return Nc(t)=="symbol"?t:t+""}function g5(e,t,n){return(t=m5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ax(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ax(Object(n),!0).forEach(function(r){g5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ax(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}const y5=e=>e?(...t)=>e(...t):(...t)=>fetch(...t),b5=()=>Headers,K2=e=>e.startsWith("sb_publishable_")||e.startsWith("sb_secret_"),v5="sb_temp_",Nx=new Set,x5=e=>{var t,n;if(!e.startsWith("sb_")||K2(e)||e.startsWith(v5))return;const r=(t=(n=e.match(/^sb_[a-zA-Z0-9]+_/))===null||n===void 0?void 0:n[0])!==null&&t!==void 0?t:"unknown";Nx.has(r)||(Nx.add(r),console.warn("@supabase/supabase-js: Unrecognized Supabase API key format. The client will proceed and send this key as-is; if you see authentication errors you may need to upgrade @supabase/supabase-js to a version that recognizes this key type."))},Fx=(e,t,n,r,s,i)=>{const a=y5(r),l=b5(),c=(s==null?void 0:s.enabled)===!0,d=(s==null?void 0:s.respectSamplingDecision)!==!1,u=c?p5(t):null,h=!(i!=null&&i.omitApiKeyAsBearer&&K2(e));return async(f,p)=>{const v=await n();let y=new l(p==null?void 0:p.headers);if(y.has("apikey")||y.set("apikey",e),!y.has("Authorization")){const x=v??(h?e:null);x&&y.set("Authorization",`Bearer ${x}`)}if(u){const x=w5(f,u,d);x&&(x.traceparent&&!y.has("traceparent")&&y.set("traceparent",x.traceparent),x.tracestate&&!y.has("tracestate")&&y.set("tracestate",x.tracestate),x.baggage&&!y.has("baggage")&&y.set("baggage",x.baggage))}return a(f,xt(xt({},p),{},{headers:y}))}};let Px=!1,Rx=!1;
95function w5(e,t,n){const r=vP();if(!r)return Px||(Px=!0,console.warn("@supabase/supabase-js: tracePropagation is enabled but the tracing runtime is not loaded, so trace headers will not be attached. Add `import '@supabase/supabase-js/tracing'` at your application entry point (requires the OpenTelemetry API package to be installed). The CDN/UMD build does not support trace propagation.")),null;if(!u5(typeof e=="string"||e instanceof URL?e:e.url,t))return null;const s=r();if(!s||!s.traceparent){var i;if(!(s==null||(i=s.carrierKeys)===null||i===void 0)&&i.length&&!Rx){Rx=!0;const a=s.carrierKeys.includes("sentry-trace")?" Sentry detected: set `propagateTraceparent: true` in Sentry.init() to emit it.":" Configure your tracing SDK to emit W3C trace context on outgoing requests.";console.warn(`@supabase/supabase-js: tracePropagation is enabled and a tracing SDK is active, but its propagator wrote [${s.carrierKeys.join(", ")}] and no W3C traceparent header, so trace headers will not be attached.`+a)}return null}if(n){const a=d5(s.traceparent);if(a&&!a.isSampled)return{traceparent:s.traceparent}}return s}function Ox(e){return typeof e=="boolean"?{enabled:e}:e}function k5(e){return e.endsWith("/")?e:e+"/"}let Mx=!1;function _5(e){Mx||typeof e!="object"||e===null||!("schema"in e)||e.schema===void 0||(Mx=!0,console.warn(`@supabase/supabase-js: The "schema" option must be nested under "db", e.g. createClient(url, key, { db: { schema: 'myschema' } }). A top-level "schema" is ignored and queries go to the default schema.`))}function S5(e,t){var n,r,s,i,a,l;const{db:c,auth:d,realtime:u,global:h}=e,{db:f,auth:p,realtime:v,global:y}=t,x=Ox(e.tracePropagation),g=Ox(t.tracePropagation),m={db:xt(xt({},f),c),auth:xt(xt({},p),d),realtime:xt(xt({},v),u),storage:{},global:xt(xt(xt({},y),h),{},{headers:xt(xt({},(n=y==null?void 0:y.headers)!==null&&n!==void 0?n:{}),(r=h==null?void 0:h.headers)!==null&&r!==void 0?r:{})}),tracePropagation:{enabled:(s=(i=x==null?void 0:x.enabled)!==null&&i!==void 0?i:g==null?void 0:g.enabled)!==null&&s!==void 0?s:!1,respectSamplingDecision:(a=(l=x==null?void 0:x.respectSamplingDecision)!==null&&l!==void 0?l:g==null?void 0:g.respectSamplingDecision)!==null&&a!==void 0?a:!0},accessToken:async()=>""};return e.accessToken?m.accessToken=e.accessToken:delete m.accessToken,m}function C5(e){const t=e==null?void 0:e.trim();if(!t)throw new Error("supabaseUrl is required.");if(!t.match(/^https?:\/\//i))throw new Error("Invalid supabaseUrl: Must be a valid HTTP or HTTPS URL.");try{return new URL(k5(t))}catch{throw Error("Invalid supabaseUrl: Provided URL is malformed.")}}var E5=class extends n5{constructor(e){super(e)}},j5=class{constructor(e,t,n){var r,s;this.supabaseUrl=e,this.supabaseKey=t;const i=C5(e);if(!t)throw new Error("supabaseKey is required.");x5(t),_5(n),this.realtimeUrl=new URL("realtime/v1",i),this.realtimeUrl.protocol=this.realtimeUrl.protocol.replace("http","ws"),this.authUrl=new URL("auth/v1",i),this.storageUrl=new URL("storage/v1",i),this.functionsUrl=new URL("functions/v1",i);const a=`sb-${i.hostname.split(".")[0]}-auth-token`,l={db:o5,realtime:l5,auth:xt(xt({},a5),{},{storageKey:a}),global:i5,tracePropagation:c5},c=S5(n??{},l);if(this.settings=c,this.storageKey=(r=c.auth.storageKey)!==null&&r!==void 0?r:"",this.headers=(s=c.global.headers)!==null&&s!==void 0?s:{},c.accessToken)this.accessToken=c.accessToken,this.auth=new Proxy({},{get:(u,h)=>{throw new Error(`@supabase/supabase-js: Supabase Client is configured with the accessToken option, accessing supabase.auth.${String(h)} is not possible`)}});else{var d;this.auth=this._initSupabaseAuthClient((d=c.auth)!==null&&d!==void 0?d:{},this.headers,c.global.fetch)}this.fetch=Fx(t,e,this._getSessionToken.bind(this),c.global.fetch,c.tracePropagation),this.functionsFetch=Fx(t,e,this._getSessionToken.bind(this),c.global.fetch,c.tracePropagation,{omitApiKeyAsBearer:!0}),this.realtime=this._initRealtimeClient(xt({headers:this.headers,accessToken:this._getAccessToken.bind(this),fetch:this.fetch},c.realtime)),this.accessToken&&Promise.resolve(this.accessToken()).then(u=>this.realtime.setAuth(u)).catch(u=>console.warn("Failed to set initial Realtime auth token:",u)),this.rest=new RP(new URL("rest/v1",i).href,{headers:this.headers,schema:c.db.schema,fetch:this.fetch,timeout:c.db.timeout,urlLengthLimit:c.db.urlLengthLimit,retry:c.db.retry}),this.storage=new eO(this.storageUrl.href,this.headers,this.fetch,n==null?void 0:n.storage),c.accessToken||this._listenForAuthEvents()}get functions(){return new _P(this.functionsUrl.href,{headers:this.headers,customFetch:this.functionsFetch})}from(e){return this.rest.from(e)}schema(e){return this.rest.schema(e)}getOpenApiSpec(){return this.rest.getOpenApiSpec()}rpc(e,t={},n={head:!1,get:!1,count:void 0}){return this.rest.rpc(e,t,n)}
95channel(e,t={config:{}}){return this.realtime.channel(e,t)}getChannels(){return this.realtime.getChannels()}removeChannel(e){return this.realtime.removeChannel(e)}removeAllChannels(){return this.realtime.removeAllChannels()}async _getSessionToken(){var e=this,t,n;if(e.accessToken)return await e.accessToken();const{data:r}=await e.auth.getSession();return(t=(n=r.session)===null||n===void 0?void 0:n.access_token)!==null&&t!==void 0?t:null}async _getAccessToken(){var e=this,t;return(t=await e._getSessionToken())!==null&&t!==void 0?t:e.supabaseKey}_initSupabaseAuthClient({autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,storageKey:i,flowType:a,lock:l,debug:c,throwOnError:d,experimental:u,lockAcquireTimeout:h,skipAutoInitialize:f},p,v){const y={Authorization:`Bearer ${this.supabaseKey}`,apikey:`${this.supabaseKey}`};return new E5({url:this.authUrl.href,headers:xt(xt({},y),p),storageKey:i,autoRefreshToken:e,persistSession:t,detectSessionInUrl:n,storage:r,userStorage:s,flowType:a,lock:l,debug:c,throwOnError:d,experimental:u,fetch:v,lockAcquireTimeout:h,skipAutoInitialize:f,hasCustomAuthorizationHeader:Object.keys(this.headers).some(x=>x.toLowerCase()==="authorization")})}_initRealtimeClient(e){return new SR(this.realtimeUrl.href,xt(xt({},e),{},{params:xt(xt({},{apikey:this.supabaseKey}),e==null?void 0:e.params)}))}_listenForAuthEvents(){return this.auth.onAuthStateChange((e,t)=>{this._handleTokenChanged(e,"CLIENT",t==null?void 0:t.access_token)})}_handleTokenChanged(e,t,n){(e==="TOKEN_REFRESHED"||e==="SIGNED_IN"||e==="INITIAL_SESSION")&&this.changedAccessToken!==n?(this.changedAccessToken=n,this.realtime.setAuth(n)):e==="SIGNED_OUT"&&(this.realtime.setAuth(),t=="STORAGE"&&this.auth.signOut(),this.changedAccessToken=void 0)}};const T5=(e,t,n)=>new j5(e,t,n);function A5(){if(typeof window<"u"||globalThis.Deno!==void 0)return!1;const e=globalThis.process;if(!e)return!1;const t=e.version;if(t==null)return!1;const n=t.match(/^v(\d+)\./);return n?parseInt(n[1],10)<=20:!1}A5()&&console.warn("â ï¸ Node.js 20 and below are deprecated and will no longer be supported in future versions of @supabase/supabase-js. Please upgrade to Node.js 22 or later. For more information, visit: https://github.com/orgs/supabase/discussions/45715");const N5="https://sgzmzacyilxjxotvjkqv.supabase.co",F5="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNnem16YWN5aWx4anhvdHZqa3F2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkzOTQzMzgsImV4cCI6MjA5NDk3MDMzOH0.7P7hDv6X9-5o_6N2N-jSFXRD1onMcLeMF_FWGh95pDA",pr=T5(N5,F5,{auth:{storage:localStorage,persistSession:!0,autoRefreshToken:!0}}),J2=w.createContext(void 0),P5=pr;function R5({children:e}){var y;const[t,n]=w.useState(null),[r,s]=w.useState(!1),[i,a]=w.useState([]),[l,c]=w.useState(!0);w.useEffect(()=>{const{data:x}=pr.auth.onAuthStateChange((g,m)=>{n(m),s(!0)});return pr.auth.getSession().then(({data:g})=>{n(g.session),s(!0)}),()=>x.subscription.unsubscribe()},[]);const d=(y=t==null?void 0:t.user)==null?void 0:y.id;w.useEffect(()=>{if(!r)return;if(!d){a([]),c(!1);return}let x=!0;return c(!0),P5.from("user_roles").select("role").eq("user_id",d).then(({data:g})=>{x&&(a((g??[]).map(m=>m.role)),c(!1))}),()=>{x=!1}},[d,r]);const u=w.useCallback(async(x,g)=>{const{error:m}=await pr.auth.signInWithPassword({email:x,password:g});return{error:(m==null?void 0:m.message)??null}},[]),h=w.useCallback(async()=>{await pr.auth.signOut(),a([])},[]),f=i.includes("admin"),p=f||i.includes("editor"),v={session:t,user:(t==null?void 0:t.user)??null,roles:i,isAdmin:f,isEditor:p,loading:l,signIn:u,signOut:h};return o.jsx(J2.Provider,{value:v,children:e})}function _7(){const e=w.useContext(J2);if(!e)throw new Error("useAuth must be used within <AuthProvider>");return e}var Ix=["light","dark"],O5="(prefers-color-scheme: dark)",M5=w.createContext(void 0),I5={setTheme:e=>{},themes:[]},L5=()=>{var e;return(e=w.useContext(M5))!=null?e:I5};w.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:s,defaultTheme:i,value:a,attrs:l,nonce:c})=>{let d=i==="system",u=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(v=>`'${v}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?Ix.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",f=(v,y=!1,x=!0)=>{let g=a?a[v]:v,m=y?v+"|| ''":`'${g}'`,b="";return s&&x&&!y&&Ix.includes(v)&&(b+=`d.style.colorScheme = '${v}';`),n==="class"?y||g?b+=`c.add(${m})`:b+="null":g&&(b+=`d[s](n,${m})`),b},p=e?`!function(){${u}${f(e)}}()`:r?`!function(){try{${u}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${d})){var t='${O5}',m=window.matchMedia(t);if(m.media!==t||m.matches){${f("dark")}}else{${f("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}${d?"":"else{"+f(i,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${u}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${f(a?"x[e]":"e",!0)}}else{${f(i,!1,!1)};}${h}}catch(t){}}();`;return w.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:p}})});var D5=e=>{switch(e){case"success":return W5;case"info":return $5;case"warning":return H5;case"error":return U5;default:return null}},z5=Array(12).fill(0),B5=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(
95Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},z5.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),W5=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),H5=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),$5=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),U5=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),q5=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),V5=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},xg=1,G5=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:xg++,i=this.toasts.find(l=>l.id===s),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),i?this.toasts=this.toasts.map(l=>l.id===s?(this.publish({...l,...e,id:s,title:n}),{...l,...e,id:s,dismissible:a,title:n}):l):this.addToast({title:n,...r,dismissible:a,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
95this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),s=n!==void 0,i,a=r.then(async c=>{if(i=["resolve",c],L.isValidElement(c))s=!1,this.create({id:n,type:"default",message:c});else if(J5(c)&&!c.ok){s=!1;let d=typeof t.error=="function"?await t.error(`HTTP error! status: ${c.status}`):t.error,u=typeof t.description=="function"?await t.description(`HTTP error! status: ${c.status}`):t.description;this.create({id:n,type:"error",message:d,description:u})}else if(t.success!==void 0){s=!1;let d=typeof t.success=="function"?await t.success(c):t.success,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"success",message:d,description:u})}}).catch(async c=>{if(i=["reject",c],t.error!==void 0){s=!1;let d=typeof t.error=="function"?await t.error(c):t.error,u=typeof t.description=="function"?await t.description(c):t.description;this.create({id:n,type:"error",message:d,description:u})}}).finally(()=>{var c;s&&(this.dismiss(n),n=void 0),(c=t.finally)==null||c.call(t)}),l=()=>new Promise((c,d)=>a.then(()=>i[0]==="reject"?d(i[1]):c(i[1])).catch(d));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||xg++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Pn=new G5,K5=(e,t)=>{let n=(t==null?void 0:t.id)||xg++;return Pn.addToast({title:e,...t,id:n}),n},J5=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Y5=K5,Q5=()=>Pn.toasts,Z5=()=>Pn.getActiveToasts(),Lx=Object.assign(Y5,{success:Pn.success,info:Pn.info,warning:Pn.warning,error:Pn.error,custom:Pn.custom,message:Pn.message,promise:Pn.promise,dismiss:Pn.dismiss,loading:Pn.loading},{getHistory:Q5,getToasts:Z5});function X5(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}X5(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
95left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
95:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
95--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 96`);function Wd(e){return e.label!==void 0}var eM=3,tM="32px",nM="16px",Dx=4e3,rM=356,sM=14,iM=20,oM=200;function kr(...e){return e.filter(Boolean).join(" ")}function aM(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var lM=e=>{var t,n,r,s,i,a,l,c,d,u,h;let{invert:f,toast:p,unstyled:v,interacting:y,setHeights:x,visibleToasts:g,heights:m,index:b,toasts:k,expanded:S,removeToast:E,defaultRichColors:C,closeButton:N,style:R,cancelButtonStyle:M,actionButtonStyle:H,className:D="",descriptionClassName:U="",duration:B,position:ne,gap:te,loadingIcon:oe,expandByDefault:O,classNames:A,icons:z,closeButtonAriaLabel:ce="Close toast",pauseWhenPageIsHidden:ae}=e,[pe,Z]=L.useState(null),[ze,Qe]=L.useState(null),[ge,Ve]=L.useState(!1),[Ze,Ge]=L.useState(!1),[Pe,ie]=L.useState(!1),[Ae,ye]=L.useState(!1),[tt,Ee]=L.useState(!1),[Ot,it]=L.useState(0),[ct,j]=L.useState(0),P=L.useRef(p.duration||B||Dx),I=L.useRef(null),K=L.useRef(null),Y=b===0,V=b+1<=g,X=p.type,we=p.dismissible!==!1,Ne=p.className||"",yt=p.descriptionClassName||"",_t=L.useMemo(()=>m.findIndex(be=>be.toastId===p.id)||0,[m,p.id]),Mt=L.useMemo(()=>{var be;return(be=p.closeButton)!=null?be:N},[p.closeButton,N]),nr=L.useMemo(()=>p.duration||B||Dx,[p.duration,B]),It=L.useRef(0),Kt=L.useRef(0),br=L.useRef(0),Cn=L.useRef(null),[Ls,os]=ne.split("-"),as=L.useMemo(()=>m.reduce((be,Le,Ke)=>Ke>=_t?be:be+Le.height,0),[m,_t]),Ds=V5(),vr=p.invert||f,Wn=X==="loading";Kt.current=L.useMemo(()=>_t*te+as,[_t,as]),L.useEffect(()=>{P.current=nr},[nr]),L.useEffect(()=>{Ve(!0)},[]),L.useEffect(()=>{let be=K.current;if(be){let Le=be.getBoundingClientRect().height;return j(Le),x(Ke=>[{toastId:p.id,height:Le,position:p.position}
96,...Ke]),()=>x(Ke=>Ke.filter(tn=>tn.toastId!==p.id))}},[x,p.id]),L.useLayoutEffect(()=>{if(!ge)return;let be=K.current,Le=be.style.height;be.style.height="auto";let Ke=be.getBoundingClientRect().height;be.style.height=Le,j(Ke),x(tn=>tn.find(nn=>nn.toastId===p.id)?tn.map(nn=>nn.toastId===p.id?{...nn,height:Ke}:nn):[{toastId:p.id,height:Ke,position:p.position},...tn])},[ge,p.title,p.description,x,p.id]);let En=L.useCallback(()=>{Ge(!0),it(Kt.current),x(be=>be.filter(Le=>Le.toastId!==p.id)),setTimeout(()=>{E(p)},oM)},[p,E,x,Kt]);L.useEffect(()=>{if(p.promise&&X==="loading"||p.duration===1/0||p.type==="loading")return;let be;return S||y||ae&&Ds?(()=>{if(br.current<It.current){let Le=new Date().getTime()-It.current;P.current=P.current-Le}br.current=new Date().getTime()})():P.current!==1/0&&(It.current=new Date().getTime(),be=setTimeout(()=>{var Le;(Le=p.onAutoClose)==null||Le.call(p,p),En()},P.current)),()=>clearTimeout(be)},[S,y,p,X,ae,Ds,En]),L.useEffect(()=>{p.delete&&En()},[En,p.delete]);function To(){var be,Le,Ke;return z!=null&&z.loading?L.createElement("div",{className:kr(A==null?void 0:A.loader,(be=p==null?void 0:p.classNames)==null?void 0:be.loader,"sonner-loader"),"data-visible":X==="loading"},z.loading):oe?L.createElement("div",{className:kr(A==null?void 0:A.loader,(Le=p==null?void 0:p.classNames)==null?void 0:Le.loader,"sonner-loader"),"data-visible":X==="loading"},oe):L.createElement(B5,{className:kr(A==null?void 0:A.loader,(Ke=p==null?void 0:p.classNames)==null?void 0:Ke.loader),visible:X==="loading"})}return L.createElement("li",{tabIndex:0,ref:K,className:kr(D,Ne,A==null?void 0:A.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,A==null?void 0:A.default,A==null?void 0:A[X],(n=p==null?void 0:p.classNames)==null?void 0:n[X]),"data-sonner-toast":"","data-rich-colors":(r=p.richColors)!=null?r:C,"data-styled":!(p.jsx||p.unstyled||v),"data-mounted":ge,"data-promise":!!p.promise,"data-swiped":tt,"data-removed":Ze,"data-visible":V,"data-y-position":Ls,"data-x-position":os,"data-index":b,"data-front":Y,"data-swiping":Pe,"data-dismissible":we,"data-type":X,"data-invert":vr,"data-swipe-out":Ae,"data-swipe-direction":ze,"data-expanded":!!(S||O&&ge),style:{"--index":b,"--toasts-before":b,"--z-index":k.length-b,"--offset":`${Ze?Ot:Kt.current}px`,"--initial-height":O?"auto":`${ct}px`,...R,...p.style},onDragEnd:()=>{ie(!1),Z(null),Cn.current=null},onPointerDown:be=>{Wn||!we||(I.current=new Date,it(Kt.current),be.target.setPointerCapture(be.pointerId),be.target.tagName!=="BUTTON"&&(ie(!0),Cn.current={x:be.clientX,y:be.clientY}))},onPointerUp:()=>{var be,Le,Ke,tn;if(Ae||!we)return;Cn.current=null;let nn=Number(((be=K.current)==null?void 0:be.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Lt=Number(((Le=K.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),jn=new Date().getTime()-((Ke=I.current)==null?void 0:Ke.getTime()),hn=pe==="x"?nn:Lt,rr=Math.abs(hn)/jn;if(Math.abs(hn)>=iM||rr>.11){it(Kt.current),(tn=p.onDismiss)==null||tn.call(p,p),Qe(pe==="x"?nn>0?"right":"left":Lt>0?"down":"up"),En(),ye(!0),Ee(!1);return}ie(!1),Z(null)},onPointerMove:be=>{var Le,Ke,tn,nn;if(!Cn.current||!we||((Le=window.getSelection())==null?void 0:Le.toString().length)>0)return;let Lt=be.clientY-Cn.current.y,jn=be.clientX-Cn.current.x,hn=(Ke=e.swipeDirections)!=null?Ke:aM(ne);!pe&&(Math.abs(jn)>1||Math.abs(Lt)>1)&&Z(Math.abs(jn)>Math.abs(Lt)?"x":"y");let rr={x:0,y:0};pe==="y"?(hn.includes("top")||hn.includes("bottom"))&&(hn.includes("top")&&Lt<0||hn.includes("bottom")&&Lt>0)&&(rr.y=Lt):pe==="x"&&(hn.includes("left")||hn.includes("right"))&&(hn.includes("left")&&jn<0||hn.includes("right")&&jn>0)&&(rr.x=jn),(Math.abs(rr.x)>0||Math.abs(rr.y)>0)&&Ee(!0),(tn=K.current)==null||tn.style.setProperty("--swipe-amount-x",`${rr.x}px`),(nn=K.current)==null||nn.style.setProperty("--swipe-amount-y",`${rr.y}px`)}},Mt&&!p.jsx?L.createElement("button",{"aria-label":ce,"data-disabled":Wn,"data-close-button":!0,onClick:Wn||!we?()=>{}:()=>{var be;En(),(be=p.onDismiss)==null||be.call(p,p)},className:kr(A==null?void 0:A.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(i=z==null?void 0:z.close)!=null?i:q5):null,p.jsx||w.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:L.createElement(L.Fragment,null,X||p.icon||p.promise?L.createElement("div",{"data-icon":"",className:kr(A==null?void 0:A.icon,(a=p==null?void 0:p.classNames)==null?void 0:a.icon)}
96,p.promise||p.type==="loading"&&!p.icon?p.icon||To():null,p.type!=="loading"?p.icon||(z==null?void 0:z[X])||D5(X):null):null,L.createElement("div",{"data-content":"",className:kr(A==null?void 0:A.content,(l=p==null?void 0:p.classNames)==null?void 0:l.content)},L.createElement("div",{"data-title":"",className:kr(A==null?void 0:A.title,(c=p==null?void 0:p.classNames)==null?void 0:c.title)},typeof p.title=="function"?p.title():p.title),p.description?L.createElement("div",{"data-description":"",className:kr(U,yt,A==null?void 0:A.description,(d=p==null?void 0:p.classNames)==null?void 0:d.description)},typeof p.description=="function"?p.description():p.description):null),w.isValidElement(p.cancel)?p.cancel:p.cancel&&Wd(p.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||M,onClick:be=>{var Le,Ke;Wd(p.cancel)&&we&&((Ke=(Le=p.cancel).onClick)==null||Ke.call(Le,be),En())},className:kr(A==null?void 0:A.cancelButton,(u=p==null?void 0:p.classNames)==null?void 0:u.cancelButton)},p.cancel.label):null,w.isValidElement(p.action)?p.action:p.action&&Wd(p.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||H,onClick:be=>{var Le,Ke;Wd(p.action)&&((Ke=(Le=p.action).onClick)==null||Ke.call(Le,be),!be.defaultPrevented&&En())},className:kr(A==null?void 0:A.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function zx(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function cM(e,t){let n={};return[e,t].forEach((r,s)=>{let i=s===1,a=i?"--mobile-offset":"--offset",l=i?nM:tM;function c(d){["top","right","bottom","left"].forEach(u=>{n[`${a}-${u}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?c(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${a}-${d}`]=l:n[`${a}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):c(l)}),n}var dM=w.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:s=["altKey","KeyT"],expand:i,closeButton:a,className:l,offset:c,mobileOffset:d,theme:u="light",richColors:h,duration:f,style:p,visibleToasts:v=eM,toastOptions:y,dir:x=zx(),gap:g=sM,loadingIcon:m,icons:b,containerAriaLabel:k="Notifications",pauseWhenPageIsHidden:S}=e,[E,C]=L.useState([]),N=L.useMemo(()=>Array.from(new Set([r].concat(E.filter(ae=>ae.position).map(ae=>ae.position)))),[E,r]),[R,M]=L.useState([]),[H,D]=L.useState(!1),[U,B]=L.useState(!1),[ne,te]=L.useState(u!=="system"?u:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),oe=L.useRef(null),O=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),A=L.useRef(null),z=L.useRef(!1),ce=L.useCallback(ae=>{C(pe=>{var Z;return(Z=pe.find(ze=>ze.id===ae.id))!=null&&Z.delete||Pn.dismiss(ae.id),pe.filter(({id:ze})=>ze!==ae.id)})},[]);return L.useEffect(()=>Pn.subscribe(ae=>{if(ae.dismiss){C(pe=>pe.map(Z=>Z.id===ae.id?{...Z,delete:!0}:Z));return}setTimeout(()=>{V_.flushSync(()=>{C(pe=>{let Z=pe.findIndex(ze=>ze.id===ae.id);return Z!==-1?[...pe.slice(0,Z),{...pe[Z],...ae},...pe.slice(Z+1)]:[ae,...pe]})})})}),[]),L.useEffect(()=>{if(u!=="system"){te(u);return}if(u==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?te("dark"):te("light")),typeof window>"u")return;let ae=window.matchMedia("(prefers-color-scheme: dark)");try{ae.addEventListener("change",({matches:pe})=>{te(pe?"dark":"light")})}catch{ae.addListener(({matches:Z})=>{try{te(Z?"dark":"light")}catch(ze){console.error(ze)}})}},[u]),L.useEffect(()=>{E.length<=1&&D(!1)},[E]),L.useEffect(()=>{let ae=pe=>{var Z,ze;s.every(Qe=>pe[Qe]||pe.code===Qe)&&(D(!0),(Z=oe.current)==null||Z.focus()),pe.code==="Escape"&&(document.activeElement===oe.current||(ze=oe.current)!=null&&ze.contains(document.activeElement))&&D(!1)};return document.addEventListener("keydown",ae),()=>document.removeEventListener("keydown",ae)},[s]),L.useEffect(()=>{if(oe.current)return()=>{A.current&&(A.current.focus({preventScroll:!0}),A.current=null,z.current=!1)}},[oe.current]),L.createElement("section",{ref:t,"aria-label":`${k} ${O}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((ae,pe)=>{var Z;let[ze,Qe]=ae.split("-");return E.length?L.createElement("ol",{key:ae,dir:x==="auto"?zx():x,tabIndex:-1,ref:oe,className:l,"data-sonner-toaster":!0,"data-theme":ne,"data-y-position":ze,"data-lifted":H&&E.length>1&&!i,"data-x-position":Qe,style:{"--front-toast-height":`${((Z=R[0])==null?void 0:Z.height)||0}px`,"--width":`${rM}px`,"--gap":`${g}px`,...p,...cM(c,d)},onBlur:ge=>{z.current&&!ge.currentTarget.contains(ge.relatedTarget)&&(z.current=!1,A.current&&(A.current.focus({preventScroll:!0}),A.current=null))},onFocus:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||z.current||(z.current=!0,A.current=ge.relatedTarget)},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{U||D(!1)},onDragEnd:()=>D(!1),onPointerDown:ge=>{ge.target instanceof HTMLElement&&ge.target.dataset.dismissible==="false"||B(!0)},onPointerUp:()=>B(!1)},E.filter(ge=>!ge.position&&pe===0||ge.position===ae).map((ge,Ve)=>{var Ze,Ge;return L.createElement(lM,{key:ge.id,icons:b,index:Ve,toast:ge,defaultRichColors:h,duration:(Ze=y==null?void 0:y.duration)!=null?Ze:f,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:v,closeButton:(Ge=y==null?void 0:y.closeButton)!=null?Ge:a,interacting:U,position:ae,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:ce,toasts:E.filter(Pe=>Pe.position==ge.position),heights:R.filter(Pe=>Pe.position==ge.position),setHeights:M,expandByDefault:i,gap:g,loadingIcon:m,expanded:H,pauseWhenPageIsHidden:S,swipeDirections:e.swipeDirections})})):null}))});const uM=({...e})=>{const{theme:t="system"}=L5();return o.jsx(dM,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},hM=1,pM=1e6;let pf=0;function fM(){return pf=(pf+1)%Number.MAX_SAFE_INTEGER,pf.toString()}const ff=new Map,Bx=e=>{if(ff.has(e))return;const t=setTimeout(()=>{ff.delete(e),Zl({type:"REMOVE_TOAST",toastId:e})},pM);ff.set(e,t)},mM=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,hM)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
96return n?Bx(n):e.toasts.forEach(r=>{Bx(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},fu=[];let mu={toasts:[]};function Zl(e){mu=mM(mu,e),fu.forEach(t=>{t(mu)})}function gM({...e}){const t=fM(),n=s=>Zl({type:"UPDATE_TOAST",toast:{...s,id:t}}),r=()=>Zl({type:"DISMISS_TOAST",toastId:t});return Zl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||r()}}}),{id:t,dismiss:r,update:n}}function yM(){const[e,t]=w.useState(mu);return w.useEffect(()=>(fu.push(t),()=>{const n=fu.indexOf(t);n>-1&&fu.splice(n,1)}),[e]),{...e,toast:gM,dismiss:n=>Zl({type:"DISMISS_TOAST",toastId:n})}}function ut(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function Wx(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Y2(...e){return t=>{let n=!1;const r=e.map(s=>{const i=Wx(s,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let s=0;s<r.length;s++){const i=r[s];typeof i=="function"?i():Wx(e[s],null)}}}}function kn(...e){return w.useCallback(Y2(...e),e)}function bM(e,t){const n=w.createContext(t),r=i=>{const{children:a,...l}=i,c=w.useMemo(()=>l,Object.values(l));return o.jsx(n.Provider,{value:c,children:a})};r.displayName=e+"Provider";function s(i){const a=w.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,s]}function ed(e,t=[]){let n=[];function r(i,a){const l=w.createContext(a),c=n.length;n=[...n,a];const d=h=>{var g;const{scope:f,children:p,...v}=h,y=((g=f==null?void 0:f[e])==null?void 0:g[c])||l,x=w.useMemo(()=>v,Object.values(v));return o.jsx(y.Provider,{value:x,children:p})};d.displayName=i+"Provider";function u(h,f){var y;const p=((y=f==null?void 0:f[e])==null?void 0:y[c])||l,v=w.useContext(p);if(v)return v;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[d,u]}const s=()=>{const i=n.map(a=>w.createContext(a));return function(l){const c=(l==null?void 0:l[e])||i;return w.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return s.scopeName=e,[r,vM(s,...t)]}function vM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const a=r.reduce((l,{useScope:c,scopeName:d})=>{const h=c(i)[`__scope${d}`];return{...l,...h}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}function Fc(e){const t=wM(e),n=w.forwardRef((r,s)=>{const{children:i,...a}=r,l=w.Children.toArray(i),c=l.find(_M);if(c){const d=c.props.children,u=l.map(h=>h===c?w.Children.count(d)>1?w.Children.only(null):w.isValidElement(d)?d.props.children:null:h);return o.jsx(t,{...a,ref:s,children:w.isValidElement(d)?w.cloneElement(d,void 0,u):null})}return o.jsx(t,{...a,ref:s,children:i})});return n.displayName=`${e}.Slot`,n}var xM=Fc("Slot");function wM(e){const t=w.forwardRef((n,r)=>{const{children:s,...i}=n;if(w.isValidElement(s)){const a=CM(s),l=SM(i,s.props);return s.type!==w.Fragment&&(l.ref=r?Y2(r,a):a),w.cloneElement(s,l)}return w.Children.count(s)>1?w.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Q2=Symbol("radix.slottable");function kM(e){const t=({children:n})=>o.jsx(o.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Q2,t}function _M(e){return w.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Q2}function SM(e,t){const n={...t};for(const r in t){const s=e[r],i=t[r];/^on[A-Z]/.test(r)?s&&i?n[r]=(...l)=>{const c=i(...l);return s(...l),c}:s&&(n[r]=s):r==="style"?n[r]={...s,...i}:r==="className"&&(n[r]=[s,i].filter(Boolean).join(" "))}return{...e,...n}}function CM(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function EM(e){const t=e+"CollectionProvider",[n,r]=ed(t),[s,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=y=>{const{scope:x,children:g}=y,m=L.useRef(null),b=L.useRef(new Map).current;return o.jsx(s,{scope:x,itemMap:b,collectionRef:m,children:g})};a.displayName=t;const l=e+"CollectionSlot",c=Fc(l),d=L.forwardRef((y,x)=>{const{scope:g,children:m}=y,b=i(l,g),k=kn(x,b.collectionRef);return o.jsx(c,{ref:k,children:m})});d.displayName=l;const u=e+"CollectionItemSlot",h="data-radix-collection-item",f=Fc(u),p=L.forwardRef((y,x)=>{const{scope:g,children:m,...b}=y,k=L.useRef(null),S=kn(x,k),E=i(u,g);return L.useEffect(()=>(E.itemMap.set(k,{ref:k,...b}),()=>
vendor: 9,168 bytes, line 96
96void E.itemMap.delete(k))),o.jsx(f,{[h]:"",ref:S,children:m})});p.displayName=u;function v(y){const x=i(e+"CollectionConsumer",y);return L.useCallback(()=>{const m=x.collectionRef.current;if(!m)return[];const b=Array.from(m.querySelectorAll(`[${h}]`));return Array.from(x.itemMap.values()).sort((E,C)=>b.indexOf(E.ref.current)-b.indexOf(C.ref.current))},[x.collectionRef,x.itemMap])}return[{Provider:a,Slot:d,ItemSlot:p},v,r]}var jM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rt=jM.reduce((e,t)=>{const n=Fc(`Primitive.${t}`),r=w.forwardRef((s,i)=>{const{asChild:a,...l}=s,c=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(c,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Z2(e,t){e&&Co.flushSync(()=>e.dispatchEvent(t))}function ts(e){const t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function TM(e,t=globalThis==null?void 0:globalThis.document){const n=ts(e);w.useEffect(()=>{const r=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var AM="DismissableLayer",wg="dismissableLayer.update",NM="dismissableLayer.pointerDownOutside",FM="dismissableLayer.focusOutside",Hx,X2=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),np=w.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...c}=e,d=w.useContext(X2),[u,h]=w.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=w.useState({}),v=kn(t,C=>h(C)),y=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),g=y.indexOf(x),m=u?y.indexOf(u):-1,b=d.layersWithOutsidePointerEventsDisabled.size>0,k=m>=g,S=RM(C=>{const N=C.target,R=[...d.branches].some(M=>M.contains(N));!k||R||(s==null||s(C),a==null||a(C),C.defaultPrevented||l==null||l())},f),E=OM(C=>{const N=C.target;[...d.branches].some(M=>M.contains(N))||(i==null||i(C),a==null||a(C),C.defaultPrevented||l==null||l())},f);return TM(C=>{m===d.layers.size-1&&(r==null||r(C),!C.defaultPrevented&&l&&(C.preventDefault(),l()))},f),w.useEffect(()=>{if(u)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(Hx=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(u)),d.layers.add(u),$x(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Hx)}},[u,f,n,d]),w.useEffect(()=>()=>{u&&(d.layers.delete(u),d.layersWithOutsidePointerEventsDisabled.delete(u),$x())},[u,d]),w.useEffect(()=>{const C=()=>p({});return document.addEventListener(wg,C),()=>document.removeEventListener(wg,C)},[]),o.jsx(Rt.div,{...c,ref:v,style:{pointerEvents:b?k?"auto":"none":void 0,...e.style},onFocusCapture:ut(e.onFocusCapture,E.onFocusCapture),onBlurCapture:ut(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:ut(e.onPointerDownCapture,S.onPointerDownCapture)})});np.displayName=AM;var PM="DismissableLayerBranch",eS=w.forwardRef((e,t)=>{const n=w.useContext(X2),r=w.useRef(null),s=kn(t,r);return w.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),o.jsx(Rt.div,{...e,ref:s})});eS.displayName=PM;function RM(e,t=globalThis==null?void 0:globalThis.document){const n=ts(e),r=w.useRef(!1),s=w.useRef(()=>{});return w.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let c=function(){tS(NM,n,d,{discrete:!0})};const d={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=c,t.addEventListener("click",s.current,{once:!0})):c()}else t.removeEventListener("click",s.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function OM(e,t=globalThis==null?void 0:globalThis.document){const n=ts(e),r=w.useRef(!1);return w.useEffect(()=>{const s=i=>{i.target&&!r.current&&tS(FM,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function $x(){const e=new CustomEvent(wg);document.dispatchEvent(e)}function tS(e,t,n,{discrete:r}){const s=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Z2(s,i):s.dispatchEvent(i)}var MM=np,IM=eS,Fs=globalThis!=null&&globalThis.document?w.useLayoutEffect:()=>{},LM="Portal",e0=w.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[s,i]=w.useState(!1);Fs(()=>i(!0),[]);const a=n||s&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?V_.createPortal(o.jsx(Rt.div,{...r,ref:t}),a):null});e0.displayName=LM;function DM(e,t){return w.useReducer((n,r)=>t[n][r]??n,e)}var rl=e=>{const{present:t,children:n}=e,r=zM(t),s=typeof n=="function"?n({present:r.isPresent}):w.Children.only(n),i=kn(r.ref,BM(s));return typeof n=="function"||r.isPresent?w.cloneElement(s,{ref:i}):null};rl.displayName="Presence";function zM(e){const[t,n]=w.useState(),r=w.useRef(null),s=w.useRef(e),i=w.useRef("none"),a=e?"mounted":"unmounted",[l,c]=DM(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const d=Hd(r.current);i.current=l==="mounted"?d:"none"},[l]),Fs(()=>{const d=r.current,u=s.current;if(u!==e){const f=i.current,p=Hd(d);e?c("MOUNT"):p==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(u&&f!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),Fs(()=>{if(t){let d;const u=t.ownerDocument.defaultView??window,h=p=>{const y=Hd(r.current).includes(p.animationName);if(p.target===t&&y&&(c("ANIMATION_END"),!s.current)){const x=t.style.animationFillMode;t.style.animationFillMode="forwards",d=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=x)})}},f=p=>{p.target===t&&(i.current=Hd(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{u.clearTimeout(d),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:w.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Hd(e){return(e==null?void 0:e.animationName)||"none"}function BM(e){var r,s;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var WM=ey[" useInsertionEffect ".trim().toString()]||Fs;function nS({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[s,i,a]=HM({defaultProp:t,onChange:n}),l=e!==void 0,c=l?e:s;{const u=w.useRef(e!==void 0);w.useEffect(()=>{const h=u.current;h!==l&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=l},[l,r])}const d=w.useCallback(u=>{var h;if(l){const f=$M(u)?u(e):u;f!==e&&((h=a.current)==null||h.call(a,f))}else i(u)},[l,e,i,a]);return[c,d]}function HM({defaultProp:e,onChange:t}){const[n,r]=w.useState(e),s=w.useRef(n),i=w.useRef(t);return WM(()=>{i.current=t},[t]),w.useEffect(()=>{var a;s.current!==n&&((a=i.current)==null||a.call(i,n),s.current=n)},[n,s]),[n,r,i]}function $M(e){return typeof e=="function"}var UM=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),qM="VisuallyHidden",rp=w.forwardRef((e,t)=>o.jsx(Rt.span,{...e,ref:t,style:{...UM,...e.style}}));rp.displayName=qM;var VM=rp,t0="ToastProvider",[n0,GM,KM]=EM("Toast"),[rS,S7]=ed("Toast",[KM]),[JM,sp]=rS(t0),sS=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:s="right",swipeThreshold:i=50,children:a}=e,[l,c]=w.useState(null),[d,u]=w.useState(0),h=w.useRef(!1),f=w.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${t0}\`. Expected non-empty \`string\`.`),o.jsx(n0.Provider,{scope:t,children:o.jsx(JM,{scope:t,label:n,duration:r,swipeDirection:s,swipeThreshold:i,toastCount:d,viewport:l,onViewportChange:c,onToastAdd:w.useCallback(()=>u(p=>p+1),[]),onToastRemove:w.useCallback(()=>u(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:f,children:a})})};sS.displayName=t0;var iS="ToastViewport",YM=["F8"],kg="toast.viewportPause",_g="toast.viewportResume",oS=w.forwardRef((e,t)=>
96{const{__scopeToast:n,hotkey:r=YM,label:s="Notifications ({hotkey})",...i}=e,a=sp(iS,n),l=GM(n),c=w.useRef(null),d=w.useRef(null),u=w.useRef(null),h=w.useRef(null),f=kn(t,h,a.onViewportChange),p=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),v=a.toastCount>0;w.useEffect(()=>{const x=g=>{var b;r.length!==0&&r.every(k=>g[k]||g.code===k)&&((b=h.current)==null||b.focus())};return document.addEventListener("keydown",x),()=>document.removeEventListener("keydown",x)},[r]),w.useEffect(()=>{const x=c.current,g=h.current;if(v&&x&&g){const m=()=>{if(!a.isClosePausedRef.current){const E=new CustomEvent(kg);g.dispatchEvent(E),a.isClosePausedRef.current=!0}},b=()=>{if(a.isClosePausedRef.current){const E=new CustomEvent(_g);g.dispatchEvent(E),a.isClosePausedRef.current=!1}},k=E=>{!x.contains(E.relatedTarget)&&b()},S=()=>{x.contains(document.activeElement)||b()};return x.addEventListener("focusin",m),x.addEventListener("focusout",k),x.addEventListener("pointermove",m),x.addEventListener("pointerleave",S),window.addEventListener("blur",m),window.addEventListener("focus",b),()=>{x.removeEventListener("focusin",m),x.removeEventListener("focusout",k),x.removeEventListener("pointermove",m),x.removeEventListener("pointerleave",S),window.removeEventListener("blur",m),window.removeEventListener("focus",b)}}},[v,a.isClosePausedRef]);const y=w.useCallback(({tabbingDirection:x})=>{const m=l().map(b=>{const k=b.ref.current,S=[k,...c6(k)];return x==="forwards"?S:S.reverse()});return(x==="forwards"?m.reverse():m).flat()},[l]);return w.useEffect(()=>{const x=h.current;if(x){const g=m=>{var S,E,C;const b=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!b){const N=document.activeElement,R=m.shiftKey;if(m.target===x&&R){(S=d.current)==null||S.focus();return}const D=y({tabbingDirection:R?"backwards":"forwards"}),U=D.findIndex(B=>B===N);mf(D.slice(U+1))?m.preventDefault():R?(E=d.current)==null||E.focus():(C=u.current)==null||C.focus()}};return x.addEventListener("keydown",g),()=>x.removeEventListener("keydown",g)}},[l,y]),o.jsxs(IM,{ref:c,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:v?void 0:"none"},children:[v&&o.jsx(Sg,{ref:d,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"forwards"});mf(x)}}),o.jsx(n0.Slot,{scope:n,children:o.jsx(Rt.ol,{tabIndex:-1,...i,ref:f})}),v&&o.jsx(Sg,{ref:u,onFocusFromOutsideViewport:()=>{const x=y({tabbingDirection:"backwards"});mf(x)}})]})});oS.displayName=iS;var aS="ToastFocusProxy",Sg=w.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...s}=e,i=sp(aS,n);return o.jsx(rp,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:a=>{var d;const l=a.relatedTarget;!((d=i.viewport)!=null&&d.contains(l))&&r()}})});Sg.displayName=aS;var td="Toast",QM="toast.swipeStart",ZM="toast.swipeMove",XM="toast.swipeCancel",e6="toast.swipeEnd",lS=w.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:s,onOpenChange:i,...a}=e,[l,c]=nS({prop:r,defaultProp:s??!0,onChange:i,caller:td});return o.jsx(rl,{present:n||l,children:o.jsx(r6,{open:l,...a,ref:t,onClose:()=>c(!1),onPause:ts(e.onPause),onResume:ts(e.onResume),onSwipeStart:ut(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ut(e.onSwipeMove,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:ut(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ut(e.onSwipeEnd,d=>{const{x:u,y:h}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),c(!1)})})})});lS.displayName=td;var[t6,n6]=rS(td,{onClose(){}}),r6=w.forwardRef((e,t)=>
96{const{__scopeToast:n,type:r="foreground",duration:s,open:i,onClose:a,onEscapeKeyDown:l,onPause:c,onResume:d,onSwipeStart:u,onSwipeMove:h,onSwipeCancel:f,onSwipeEnd:p,...v}=e,y=sp(td,n),[x,g]=w.useState(null),m=kn(t,B=>g(B)),b=w.useRef(null),k=w.useRef(null),S=s||y.duration,E=w.useRef(0),C=w.useRef(S),N=w.useRef(0),{onToastAdd:R,onToastRemove:M}=y,H=ts(()=>{var ne;(x==null?void 0:x.contains(document.activeElement))&&((ne=y.viewport)==null||ne.focus()),a()}),D=w.useCallback(B=>{!B||B===1/0||(window.clearTimeout(N.current),E.current=new Date().getTime(),N.current=window.setTimeout(H,B))},[H]);w.useEffect(()=>{const B=y.viewport;if(B){const ne=()=>{D(C.current),d==null||d()},te=()=>{const oe=new Date().getTime()-E.current;C.current=C.current-oe,window.clearTimeout(N.current),c==null||c()};return B.addEventListener(kg,te),B.addEventListener(_g,ne),()=>{B.removeEventListener(kg,te),B.removeEventListener(_g,ne)}}},[y.viewport,S,c,d,D]),w.useEffect(()=>{i&&!y.isClosePausedRef.current&&D(S)},[i,S,y.isClosePausedRef,D]),w.useEffect(()=>(R(),()=>M()),[R,M]);const U=w.useMemo(()=>x?mS(x):null,[x]);return y.viewport?o.jsxs(o.Fragment,{children:[U&&o.jsx(s6,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:U}),o.jsx(t6,{scope:n,onClose:H,children:Co.createPortal(o.jsx(n0.ItemSlot,{scope:n,children:o.jsx(MM,{asChild:!0,onEscapeKeyDown:ut(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||H(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(Rt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...v,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ut(e.onKeyDown,B=>{B.key==="Escape"&&(l==null||l(B.nativeEvent),B.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:ut(e.onPointerDown,B=>{B.button===0&&(b.current={x:B.clientX,y:B.clientY})}),onPointerMove:ut(e.onPointerMove,B=>{if(!b.current)return;const ne=B.clientX-b.current.x,te=B.clientY-b.current.y,oe=!!k.current,O=["left","right"].includes(y.swipeDirection),A=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,z=O?A(0,ne):0,ce=O?0:A(0,te),ae=B.pointerType==="touch"?10:2,pe={x:z,y:ce},Z={originalEvent:B,delta:pe};oe?(k.current=pe,$d(ZM,h,Z,{discrete:!1})):Ux(pe,y.swipeDirection,ae)?(k.current=pe,$d(QM,u,Z,{discrete:!1}),B.target.setPointerCapture(B.pointerId)):(Math.abs(ne)>ae||Math.abs(te)>ae)&&(b.current=null)}),onPointerUp:ut(e.onPointerUp,B=>{const ne=k.current,te=B.target;if(te.hasPointerCapture(B.pointerId)&&te.releasePointerCapture(B.pointerId),k.current=null,b.current=null,ne){const oe=B.currentTarget,O={originalEvent:B,delta:ne};Ux(ne,y.swipeDirection,y.swipeThreshold)?$d(e6,p,O,{discrete:!0}):$d(XM,f,O,{discrete:!0}),oe.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),s6=e=>{const{__scopeToast:t,children:n,...r}=e,s=sp(td,t),[i,a]=w.useState(!1),[l,c]=w.useState(!1);return a6(()=>a(!0)),w.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),l?null:o.jsx(e0,{asChild:!0,children:o.jsx(rp,{...r,children:i&&o.jsxs(o.Fragment,{children:[s.label," ",n]})})})},i6="ToastTitle",cS=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(Rt.div,{...r,ref:t})});cS.displayName=i6;var o6="ToastDescription",dS=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return o.jsx(Rt.div,{...r,ref:t})});dS.displayName=o6;var uS="ToastAction",hS=w.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?o.jsx(fS,{altText:n,asChild:!0,children:o.jsx(r0,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${uS}\`. Expected non-empty \`string\`.`),null)});hS.displayName=uS;var pS="ToastClose",r0=w.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,s=n6(pS,n);return o.jsx(fS,{asChild:!0,children:o.jsx(Rt.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,s.onClose)})})});r0.displayName=pS;var fS=w.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...s}=e;return o.jsx(Rt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...s,ref:t})});function mS(e){const t=[];
vendor: 3,823 bytes, lines 96-116
96return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),l6(r)){const s=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const a=r.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...mS(r))}}),t}function $d(e,t,n,{discrete:r}){const s=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),r?Z2(s,i):s.dispatchEvent(i)}var Ux=(e,t,n=0)=>{const r=Math.abs(e.x),s=Math.abs(e.y),i=r>s;return t==="left"||t==="right"?i&&r>n:!i&&s>n};function a6(e=()=>{}){const t=ts(e);Fs(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function l6(e){return e.nodeType===e.ELEMENT_NODE}function c6(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function mf(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var d6=sS,gS=oS,yS=lS,bS=cS,vS=dS,xS=hS,wS=r0;function kS(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=kS(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function _S(){for(var e,t,n=0,r="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=kS(e))&&(r&&(r+=" "),r+=t);return r}const qx=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Vx=_S,SS=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Vx(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:i}=t,a=Object.keys(s).map(d=>{const u=n==null?void 0:n[d],h=i==null?void 0:i[d];if(u===null)return null;const f=qx(u)||qx(h);return s[d][f]}),l=n&&Object.entries(n).reduce((d,u)=>{let[h,f]=u;return f===void 0||(d[h]=f),d},{}),c=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,u)=>{let{class:h,className:f,...p}=u;return Object.entries(p).every(v=>{let[y,x]=v;return Array.isArray(x)?x.includes({...i,...l}[y]):{...i,...l}[y]===x})?[...d,h,f]:d},[]);return Vx(e,a,c,n==null?void 0:n.class,n==null?void 0:n.className)};/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree. 101 */const u6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),CS=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */var h6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const p6=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:s="",children:i,iconNode:a,...l},c)=>w.createElement("svg",{ref:c,...h6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:CS("lucide",s),...l},[...a.map(([d,u])=>w.createElement(d,u)),...Array.isArray(i)?i:[i]]));/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const Te=(e,t)=>
116{const n=w.forwardRef(({className:r,...s},i)=>w.createElement(p6,{ref:i,iconNode:t,className:CS(`lucide-${u6(e)}`,r),...s}));return n.displayName=`${e}`,n};/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const f6=Te("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const ES=Te("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const jS=Te("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const Ue=Te("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const m6=Te("BusFront",[["path",{d:"M4 6 2 7",key:"1mqr15"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"m22 7-2-1",key:"1umjhc"}],["rect",{width:"16",height:"16",x:"4",y:"3",rx:"2",key:"1wxw4b"}],["path",{d:"M4 11h16",key:"mpoxn0"}],["path",{d:"M8 15h.01",key:"a7atzg"}],["path",{d:"M16 15h.01",key:"rnfrdf"}],["path",{d:"M6 19v2",key:"1loha6"}],["path",{d:"M18 21v-2",key:"sqyl04"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const ih=Te("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const s0=Te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const On=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const oh=Te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const ah=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const g6=Te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const TS=Te("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const y6=Te("Drama",[["path",{d:"M10 11h.01",key:"d2at3l"}],["path",{d:"M14 6h.01",key:"k028ub"}],["path",{d:"M18 6h.01",key:"1v4wsw"}],["path",{d:"M6.5 13.1h.01",key:"1748ia"}],["path",{d:"M22 5c0 9-4 12-6 12s-6-3-6-12c0-2 2-3 6-3s6 1 6 3",key:"172yzv"}],["path",{d:"M17.4 9.9c-.8.8-2 .8-2.8 0",key:"1obv0w"}],["path",{d:"M10.1 7.1C9 7.2 7.7 7.7 6 8.6c-3.5 2-4.7 3.9-3.7 5.6 4.5 7.8 9.5 8.4 11.2 7.4.9-.5 1.9-2.1 1.9-4.7",key:"rqjl8i"}],["path",{d:"M9.1 16.5c.3-1.1 1.4-1.7 2.4-1.4",key:"1mr6wy"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const b6=Te("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const v6=Te("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const x6=Te("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree. 201 */const AS=Te("Hotel",[["path",{d:"M10 22v-6.57",key:"1wmca3"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M12 7h.01",key:"1ivr5q"}],["path",{d:"M14 15.43V22",key:"1q2vjd"}],["path",{d:"M15 16a5 5 0 0 0-6 0",key:"o9wqvi"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M16 7h.01",key:"1kdx03"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 7h.01",key:"1vti4s"}],["rect",{x:"4",y:"2",width:"16",height:"20",rx:"2",key:"1uxh74"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const w6=Te("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const k6=Te("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const _6=Te("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const Pc=Te("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const S6=Te("MicVocal",[["path",{d:"m11 7.601-5.994 8.19a1 1 0 0 0 .1 1.298l.817.818a1 1 0 0 0 1.314.087L15.09 12",key:"80a601"}],["path",{d:"M16.5 21.174C15.5 20.5 14.372 20 13 20c-2.058 0-3.928 2.356-6 2-2.072-.356-2.775-3.369-1.5-4.5",key:"j0ngtp"}],["circle",{cx:"16",cy:"7",r:"5",key:"d08jfb"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree.
231 */const NS=Te("Music2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const C6=Te("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const i0=Te("Plane",[["path",{d:"M17.8 19.2 16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z",key:"1v9wt8"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const sl=Te("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const E6=Te("Presentation",[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const j6=Te("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const o0=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const FS=Te("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);/** 267 * @license lucide-react v0.462.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const PS=Te("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);/** 272 * @license lucide-react v0.462.0 - ISC 273 * 274 * This source code is licensed under the ISC license. 275 * See the LICENSE file in the root directory of this source tree. 276 */const T6=Te("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 277 * @license lucide-react v0.462.0 - ISC 278 * 279 * This source code is licensed under the ISC license. 280 * See the LICENSE file in the root directory of this source tree. 281 */const RS=Te("Ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);/** 282 * @license lucide-react v0.462.0 - ISC 283 * 284 * This source code is licensed under the ISC license. 285 * See the LICENSE file in the root directory of this source tree. 286 */const A6=Te("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 287 * @license lucide-react v0.462.0 - ISC 288 * 289 * This source code is licensed under the ISC license. 290 * See the LICENSE file in the root directory of this source tree. 291 */const OS=Te("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 292 * @license lucide-react v0.462.0 - ISC 293 * 294 * This source code is licensed under the ISC license. 295 * See the LICENSE file in the root directory of this source tree. 296 */const N6=Te("UtensilsCrossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]);/** 297 * @license lucide-react v0.462.0 - ISC 298 * 299 * This source code is licensed under the ISC license. 300 * See the LICENSE file in the root directory of this source tree. 301 */const F6=Te("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}
vendor: 9,130 bytes, lines 301-321
301],["path",{d:"M21 15V2a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"j28e5"}]]);/** 302 * @license lucide-react v0.462.0 - ISC 303 * 304 * This source code is licensed under the ISC license. 305 * See the LICENSE file in the root directory of this source tree. 306 */const MS=Te("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);/** 307 * @license lucide-react v0.462.0 - ISC 308 * 309 * This source code is licensed under the ISC license. 310 * See the LICENSE file in the root directory of this source tree. 311 */const Eo=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 312 * @license lucide-react v0.462.0 - ISC 313 * 314 * This source code is licensed under the ISC license. 315 * See the LICENSE file in the root directory of this source tree. 316 */const P6=Te("Youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]]);/** 317 * @license lucide-react v0.462.0 - ISC 318 * 319 * This source code is licensed under the ISC license. 320 * See the LICENSE file in the root directory of this source tree. 321 */const R6=Te("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),a0="-",O6=e=>{const t=I6(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const l=a.split(a0);return l[0]===""&&l.length!==1&&l.shift(),IS(l,t)||M6(a)},getConflictingClassGroupIds:(a,l)=>{const c=n[a]||[];return l&&r[a]?[...c,...r[a]]:c}}},IS=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),s=r?IS(e.slice(1),r):void 0;if(s)return s;if(t.validators.length===0)return;const i=e.join(a0);return(a=t.validators.find(({validator:l})=>l(i)))==null?void 0:a.classGroupId},Gx=/^\[(.+)\]$/,M6=e=>{if(Gx.test(e)){const t=Gx.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},I6=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return D6(Object.entries(e.classGroups),n).forEach(([i,a])=>{Cg(a,r,i,t)}),r},Cg=(e,t,n,r)=>{e.forEach(s=>{if(typeof s=="string"){const i=s===""?t:Kx(t,s);i.classGroupId=n;return}if(typeof s=="function"){if(L6(s)){Cg(s(r),t,n,r);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([i,a])=>{Cg(a,Kx(t,i),n,r)})})},Kx=(e,t)=>{let n=e;return t.split(a0).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},L6=e=>e.isThemeGetter,D6=(e,t)=>t?e.map(([n,r])=>{const s=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,l])=>[t+a,l])):i);return[n,s]}):e,z6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const s=(i,a)=>{n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let a=n.get(i);if(a!==void 0)return a;if((a=r.get(i))!==void 0)return s(i,a),a},set(i,a){n.has(i)?n.set(i,a):s(i,a)}}},LS="!",B6=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,s=t[0],i=t.length,a=l=>{const c=[];let d=0,u=0,h;for(let x=0;x<l.length;x++){let g=l[x];if(d===0){if(g===s&&(r||l.slice(x,x+i)===t)){c.push(l.slice(u,x)),u=x+i;continue}if(g==="/"){h=x;continue}}g==="["?d++:g==="]"&&d--}const f=c.length===0?l:l.substring(u),p=f.startsWith(LS),v=p?f.substring(1):f,y=h&&h>u?h-u:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:v,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:a}):a},W6=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},H6=e=>({cache:z6(e.cacheSize),parseClassName:B6(e),...O6(e)}),$6=/\s+/,U6=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:s}=t,i=[],a=e.trim().split($6);let l="";for(let c=a.length-1;c>=0;c-=1){const d=a[c],{modifiers:u,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:p}=n(d);let v=!!p,y=r(v?f.substring(0,p):f);if(!y){if(!v){l=d+(l.length>0?" "+l:l);continue}if(y=r(f),!y){l=d+(l.length>0?" "+l:l);continue}v=!1}const x=W6(u).join(":"),g=h?x+LS:x,m=g+y;if(i.includes(m))continue;i.push(m);const b=s(y,v);for(let k=0;k<b.length;++k){const S=b[k];i.push(g+S)}l=d+(l.length>0?" "+l:l)}return l};function q6(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=DS(t))&&(r&&(r+=" "),r+=n);return r}const DS=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=DS(e[r]))&&(n&&(n+=" "),n+=t);return n};function V6(e,...t){let n,r,s,i=a;function a(c){const d=t.reduce((u,h)=>h(u),e());return n=H6(d),r=n.cache.get,s=n.cache.set,i=l,l(c)}function l(c){const d=r(c);if(d)return d;const u=U6(c,n);return s(c,u),u}return function(){return i(q6.apply(null,arguments))}}const ot=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},zS=/^\[(?:([a-z-]+):)?(.+)\]$/i,G6=/^\d+\/\d+$/,K6=new Set(["px","full","screen"]),J6=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Y6=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Q6=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Z6=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,X6=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ds=e=>va(e)||K6.has(e)||G6.test(e),Ws=e=>il(e,"length",aI),va=e=>!!e&&!Number.isNaN(Number(e)),gf=e=>il(e,"number",va),_l=e=>!!e&&Number.isInteger(Number(e)),eI=e=>e.endsWith("%")&&va(e.slice(0,-1)),je=e=>zS.test(e),Hs=e=>J6.test(e),tI=new Set(["length","size","percentage"]),nI=e=>il(e,tI,BS),rI=e=>il(e,"position",BS),sI=new Set(["image","url"]),iI=e=>il(e,sI,cI),oI=e=>il(e,"",lI),Sl=()=>!0,il=(e,t,n)=>{const r=zS.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},aI=e=>Y6.test(e)&&!Q6.test(e),BS=()=>!1,lI=e=>Z6.test(e),cI=e=>X6.test(e),dI=()=>{const e=ot("colors"),t=ot("spacing"),n=ot("blur"),r=ot("brightness"),s=ot("borderColor"),i=ot("borderRadius"),a=ot("borderSpacing"),l=ot("borderWidth"),c=ot("contrast"),d=ot("grayscale"),u=ot("hueRotate"),h=ot("invert"),f=ot("gap"),p=ot("gradientColorStops"),v=ot("gradientColorStopPositions"),y=ot("inset"),x=ot("margin"),g=ot("opacity"),m=ot("padding"),b=ot("saturate"),k=ot("scale"),S=ot("sepia"),E=ot("skew"),C=ot("space"),N=ot("translate"),R=()=>["auto","contain","none"],M=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto",je,t],D=()=>[je,t],U=()=>["",ds,Ws],B=()=>["auto",va,je],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],te=()=>["solid","dashed","dotted","double","none"],oe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],O=()=>["start","end","center","between","around","evenly","stretch"],A=()=>["","0",je],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[va,je];return{cacheSize:500,separator:":",theme:{colors:[Sl],spacing:[ds,Ws],blur:["none","",Hs,je],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Hs,je],borderSpacing:D(),borderWidth:U(),contrast:ce(),grayscale:A(),hueRotate:ce(),invert:A(),gap:D(),gradientColorStops:[e],gradientColorStopPositions:[eI,Ws],inset:H(),margin:H(),opacity:ce(),padding:D(),saturate:ce(),scale:ce(),sepia:A(),skew:ce(),space:D(),translate:D()},classGroups:{aspect:[{aspect:["auto","square","video",je]}],container:["container"],columns:[{columns:[Hs]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...ne(),je]}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}
vendor: 4,769 bytes, line 321
321],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_l,je]}],basis:[{basis:H()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",je]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",_l,je]}],"grid-cols":[{"grid-cols":[Sl]}],"col-start-end":[{col:["auto",{span:["full",_l,je]},je]}],"col-start":[{"col-start":B()}],"col-end":[{"col-end":B()}],"grid-rows":[{"grid-rows":[Sl]}],"row-start-end":[{row:["auto",{span:[_l,je]},je]}],"row-start":[{"row-start":B()}],"row-end":[{"row-end":B()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",je]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",je]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...O()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...O(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...O(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[x]}],mx:[{mx:[x]}],my:[{my:[x]}],ms:[{ms:[x]}],me:[{me:[x]}],mt:[{mt:[x]}],mr:[{mr:[x]}],mb:[{mb:[x]}],ml:[{ml:[x]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",je,t]}],"min-w":[{"min-w":[je,t,"min","max","fit"]}],"max-w":[{"max-w":[je,t,"none","full","min","max","fit","prose",{screen:[Hs]},Hs]}],h:[{h:[je,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[je,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[je,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[je,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Hs,Ws]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",gf]}],"font-family":[{font:[Sl]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",je]}],"line-clamp":[{"line-clamp":["none",va,gf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ds,je]}],"list-image":[{"list-image":["none",je]}],"list-style-type":[{list:["none","disc","decimal",je]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[g]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[g]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ds,Ws]}],"underline-offset":[{"underline-offset":["auto",ds,je]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",je]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",je]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[g]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),rI]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",nI]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},iI]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[v]}
321],"gradient-via-pos":[{via:[v]}],"gradient-to-pos":[{to:[v]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[g]}],"border-style":[{border:[...te(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[g]}
vendor: 4,473 bytes, line 321
321],"divide-style":[{divide:te()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...te()]}],"outline-offset":[{"outline-offset":[ds,je]}],"outline-w":[{outline:[ds,Ws]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:U()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[g]}],"ring-offset-w":[{"ring-offset":[ds,Ws]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Hs,oI]}],"shadow-color":[{shadow:[Sl]}],opacity:[{opacity:[g]}],"mix-blend":[{"mix-blend":[...oe(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":oe()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Hs,je]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[h]}],saturate:[{saturate:[b]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[g]}],"backdrop-saturate":[{"backdrop-saturate":[b]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",je]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",je]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",je]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[k]}],"scale-x":[{"scale-x":[k]}],"scale-y":[{"scale-y":[k]}],rotate:[{rotate:[_l,je]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",je]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",je]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",je]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ds,Ws,gf]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
321none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},uI=V6(dI);function Ht(...e){return uI(_S(e))}const hI=d6,WS=w.forwardRef(({className:e,...t},n)=>o.jsx(gS,{ref:n,className:Ht("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));WS.displayName=gS.displayName;const pI=SS("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),HS=w.forwardRef(({className:e,variant:t,...n},r)=>o.jsx(yS,{ref:r,className:Ht(pI({variant:t}),e),...n}));HS.displayName=yS.displayName;const fI=w.forwardRef(({className:e,...t},n)=>o.jsx(xS,{ref:n,className:Ht("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));fI.displayName=xS.displayName;const $S=w.forwardRef(({className:e,...t},n)=>o.jsx(wS,{ref:n,className:Ht("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 4,162 bytes, line 321
321/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:o.jsx(Eo,{className:"h-4 w-4"})}));$S.displayName=wS.displayName;const US=w.forwardRef(({className:e,...t},n)=>o.jsx(bS,{ref:n,className:Ht("text-sm font-semibold",e),...t}));US.displayName=bS.displayName;const qS=w.forwardRef(({className:e,...t},n)=>o.jsx(vS,{ref:n,className:Ht("text-sm opacity-90",e),...t}));qS.displayName=vS.displayName;function mI(){const{toasts:e}=yM();return o.jsxs(hI,{children:[e.map(function({id:t,title:n,description:r,action:s,...i}){return o.jsxs(HS,{...i,children:[o.jsxs("div",{className:"grid gap-1",children:[n&&o.jsx(US,{children:n}),r&&o.jsx(qS,{children:r})]}),s,o.jsx($S,{})]},t)}),o.jsx(WS,{})]})}var gI=ey[" useId ".trim().toString()]||(()=>{}),yI=0;function yf(e){const[t,n]=w.useState(gI());return Fs(()=>{n(r=>r??String(yI++))},[e]),t?`radix-${t}`:""}const bI=["top","right","bottom","left"],Ei=Math.min,Gn=Math.max,lh=Math.round,Ud=Math.floor,ji=e=>({x:e,y:e}),vI={left:"right",right:"left",bottom:"top",top:"bottom"},xI={start:"end",end:"start"};function Eg(e,t,n){return Gn(e,Ei(t,n))}function Ps(e,t){return typeof e=="function"?e(t):e}function Rs(e){return e.split("-")[0]}function ol(e){return e.split("-")[1]}function l0(e){return e==="x"?"y":"x"}function c0(e){return e==="y"?"height":"width"}function Ti(e){return["top","bottom"].includes(Rs(e))?"y":"x"}function d0(e){return l0(Ti(e))}function wI(e,t,n){n===void 0&&(n=!1);const r=ol(e),s=d0(e),i=c0(s);let a=s==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=ch(a)),[a,ch(a)]}function kI(e){const t=ch(e);return[jg(e),t,jg(t)]}function jg(e){return e.replace(/start|end/g,t=>xI[t])}function _I(e,t,n){const r=["left","right"],s=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?s:r:t?r:s;case"left":case"right":return t?i:a;default:return[]}}function SI(e,t,n,r){const s=ol(e);let i=_I(Rs(e),n==="start",r);return s&&(i=i.map(a=>a+"-"+s),t&&(i=i.concat(i.map(jg)))),i}function ch(e){return e.replace(/left|right|bottom|top/g,t=>vI[t])}function CI(e){return{top:0,right:0,bottom:0,left:0,...e}}function VS(e){return typeof e!="number"?CI(e):{top:e,right:e,bottom:e,left:e}}function dh(e){const{x:t,y:n,width:r,height:s}=e;return{width:r,height:s,top:n,left:t,right:t+r,bottom:n+s,x:t,y:n}}function Jx(e,t,n){let{reference:r,floating:s}=e;const i=Ti(t),a=d0(t),l=c0(a),c=Rs(t),d=i==="y",u=r.x+r.width/2-s.width/2,h=r.y+r.height/2-s.height/2,f=r[l]/2-s[l]/2;let p;switch(c){case"top":p={x:u,y:r.y-s.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:h};break;case"left":p={x:r.x-s.width,y:h};break;default:p={x:r.x,y:r.y}}switch(ol(t)){case"start":p[a]-=f*(n&&d?-1:1);break;case"end":p[a]+=f*(n&&d?-1:1);break}return p}const EI=async(e,t,n)=>{const{placement:r="bottom",strategy:s="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:h}=Jx(d,r,c),f=r,p={},v=0;for(let y=0;y<l.length;y++){const{name:x,fn:g}=l[y],{x:m,y:b,data:k,reset:S}=await g({x:u,y:h,initialPlacement:r,placement:f,strategy:s,middlewareData:p,rects:d,platform:a,elements:{reference:e,floating:t}});u=m??u,h=b??h,p={...p,[x]:{...p[x],...k}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(d=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:u,y:h}=Jx(d,f,c)),y=-1)}return{x:u,y:h,placement:f,strategy:s,middlewareData:p}};async function Rc(e,t){var n;t===void 0&&(t={});const{x:r,y:s,platform:i,rects:a,elements:l,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:f=!1,padding:p=0}=Ps(t,e),v=VS(p),x=l[f?h==="floating"?"reference":"floating":h],g=dh(await i.getClippingRect
vendor: 7,221 bytes, line 321
321({element:(n=await(i.isElement==null?void 0:i.isElement(x)))==null||n?x:x.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),m=h==="floating"?{x:r,y:s,width:a.floating.width,height:a.floating.height}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),k=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=dh(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:m,offsetParent:b,strategy:c}):m);return{top:(g.top-S.top+v.top)/k.y,bottom:(S.bottom-g.bottom+v.bottom)/k.y,left:(g.left-S.left+v.left)/k.x,right:(S.right-g.right+v.right)/k.x}}const jI=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:s,rects:i,platform:a,elements:l,middlewareData:c}=t,{element:d,padding:u=0}=Ps(e,t)||{};if(d==null)return{};const h=VS(u),f={x:n,y:r},p=d0(s),v=c0(p),y=await a.getDimensions(d),x=p==="y",g=x?"top":"left",m=x?"bottom":"right",b=x?"clientHeight":"clientWidth",k=i.reference[v]+i.reference[p]-f[p]-i.floating[v],S=f[p]-i.reference[p],E=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let C=E?E[b]:0;(!C||!await(a.isElement==null?void 0:a.isElement(E)))&&(C=l.floating[b]||i.floating[v]);const N=k/2-S/2,R=C/2-y[v]/2-1,M=Ei(h[g],R),H=Ei(h[m],R),D=M,U=C-y[v]-H,B=C/2-y[v]/2+N,ne=Eg(D,B,U),te=!c.arrow&&ol(s)!=null&&B!==ne&&i.reference[v]/2-(B<D?M:H)-y[v]/2<0,oe=te?B<D?B-D:B-U:0;return{[p]:f[p]+oe,data:{[p]:ne,centerOffset:B-ne-oe,...te&&{alignmentOffset:oe}},reset:te}}}),TI=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:s,middlewareData:i,rects:a,initialPlacement:l,platform:c,elements:d}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...x}=Ps(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const g=Rs(s),m=Ti(l),b=Rs(l)===l,k=await(c.isRTL==null?void 0:c.isRTL(d.floating)),S=f||(b||!y?[ch(l)]:kI(l)),E=v!=="none";!f&&E&&S.push(...SI(l,y,v,k));const C=[l,...S],N=await Rc(t,x),R=[];let M=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&R.push(N[g]),h){const B=wI(s,a,k);R.push(N[B[0]],N[B[1]])}if(M=[...M,{placement:s,overflows:R}],!R.every(B=>B<=0)){var H,D;const B=(((H=i.flip)==null?void 0:H.index)||0)+1,ne=C[B];if(ne)return{data:{index:B,overflows:M},reset:{placement:ne}};let te=(D=M.filter(oe=>oe.overflows[0]<=0).sort((oe,O)=>oe.overflows[1]-O.overflows[1])[0])==null?void 0:D.placement;if(!te)switch(p){case"bestFit":{var U;const oe=(U=M.filter(O=>{if(E){const A=Ti(O.placement);return A===m||A==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(A=>A>0).reduce((A,z)=>A+z,0)]).sort((O,A)=>O[1]-A[1])[0])==null?void 0:U[0];oe&&(te=oe);break}case"initialPlacement":te=l;break}if(s!==te)return{reset:{placement:te}}}return{}}}};function Yx(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qx(e){return bI.some(t=>e[t]>=0)}const AI=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...s}=Ps(e,t);switch(r){case"referenceHidden":{const i=await Rc(t,{...s,elementContext:"reference"}),a=Yx(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qx(a)}}}case"escaped":{const i=await Rc(t,{...s,altBoundary:!0}),a=Yx(i,n.floating);return{data:{escapedOffsets:a,escaped:Qx(a)}}}default:return{}}}}};async function NI(e,t){const{placement:n,platform:r,elements:s}=e,i=await(r.isRTL==null?void 0:r.isRTL(s.floating)),a=Rs(n),l=ol(n),c=Ti(n)==="y",d=["left","top"].includes(a)?-1:1,u=i&&c?-1:1,h=Ps(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:v}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof v=="number"&&(p=l==="end"?v*-1:v),c?{x:p*u,y:f*d}:{x:f*d,y:p*u}}const FI=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:s,y:i,placement:a,middlewareData:l}=t,c=await NI(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:a}}}}},PI=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:g,y:m}=x;return{x:g,y:m}}},...c}=Ps(e,t),d={x:n,y:r},u=await Rc(t,c),h=Ti(Rs(s)),f=l0(h);let p=d[f],v=d[h];if(i){const x=f==="y"?"top":"left",g=f==="y"?"bottom":"right",m=p+u[x],b=p-u[g];p=Eg(m,p,b)}if(a){const x=h==="y"?"top":"left",g=h==="y"?"bottom":"right",m=v+u[x],b=v-u[g];v=Eg(m,v,b)}const y=l.fn({...t,[f]:p,[h]:v});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[f]:i,[h]:a}}}}}},RI=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:s,rects:i,middlewareData:a}=t,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Ps(e,t),u={x:n,y:r},h=Ti(s),f=l0(h);let p=u[f],v=u[h];const y=Ps(l,t),x=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(c){const b=f==="y"?"height":"width",k=i.reference[f]-i.floating[b]+x.mainAxis,S=i.reference[f]+i.reference[b]-x.mainAxis;p<k?p=k:p>S&&(p=S)}if(d){var g,m;const b=f==="y"?"width":"height",k=["top","left"].includes(Rs(s)),S=i.reference[h]-i.floating[b]+(k&&((g=a.offset)==null?void 0:g[h])||0)+(k?0:x.crossAxis),E=i.reference[h]+i.reference[b]+(k?0:((m=a.offset)==null?void 0:m[h])||0)-(k?x.crossAxis:0);v<S?v=S:v>E&&(v=E)}return{[f]:p,[h]:v}}}},OI=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:s,rects:i,platform:a,elements:l}=t,{apply:c=()=>{},...d}=Ps(e,t),u=await Rc(t,d),h=Rs(s),f=ol(s),p=Ti(s)==="y",{width:v,height:y}=i.floating;let x,g;h==="top"||h==="bottom"?(x=h,g=f===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=h,x=f==="end"?"top":"bottom");const m=y-u.top-u.bottom,b=v-u.left-u.right,k=Ei(y-u[x],m),S=Ei(v-u[g],b),E=!t.middlewareData.shift;let C=k,N=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=m),E&&!f){const M=Gn(u.left,0),H=Gn(u.right,0),D=Gn(u.top,0),U=Gn(u.bottom,0);p?N=v-2*(M!==0||H!==0?M+H:Gn(u.left,u.right)):C=y-2*(D!==0||U!==0?D+U:Gn(u.top,u.bottom))}await c({...t,availableWidth:N,availableHeight:C});const R=await a.getDimensions(l.floating);return v!==R.width||y!==R.height?{reset:{rects:!0}}:{}}}};function ip(){return typeof window<"u"}function al(e){return GS(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function is(e){var t;return(t=(GS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function GS(e){return ip()?e instanceof Node||e instanceof Qn(e).Node:!1}function Lr(e){return ip()?e instanceof Element||e instanceof Qn(e).Element:!1}function ns(e){return ip()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function Zx(e){return!ip()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}
vendor: 4,758 bytes, line 321
321function nd(e){const{overflow:t,overflowX:n,overflowY:r,display:s}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(s)}function MI(e){return["table","td","th"].includes(al(e))}function op(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function u0(e){const t=h0(),n=Lr(e)?Dr(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function II(e){let t=Ai(e);for(;ns(t)&&!qa(t);){if(u0(t))return t;if(op(t))return null;t=Ai(t)}return null}function h0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function qa(e){return["html","body","#document"].includes(al(e))}function Dr(e){return Qn(e).getComputedStyle(e)}function ap(e){return Lr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ai(e){if(al(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zx(e)&&e.host||is(e);return Zx(t)?t.host:t}function KS(e){const t=Ai(e);return qa(t)?e.ownerDocument?e.ownerDocument.body:e.body:ns(t)&&nd(t)?t:KS(t)}function Oc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=KS(e),i=s===((r=e.ownerDocument)==null?void 0:r.body),a=Qn(s);if(i){const l=Tg(a);return t.concat(a,a.visualViewport||[],nd(s)?s:[],l&&n?Oc(l):[])}return t.concat(s,Oc(s,[],n))}function Tg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function JS(e){const t=Dr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const s=ns(e),i=s?e.offsetWidth:n,a=s?e.offsetHeight:r,l=lh(n)!==i||lh(r)!==a;return l&&(n=i,r=a),{width:n,height:r,$:l}}function p0(e){return Lr(e)?e:e.contextElement}function xa(e){const t=p0(e);if(!ns(t))return ji(1);const n=t.getBoundingClientRect(),{width:r,height:s,$:i}=JS(t);let a=(i?lh(n.width):n.width)/r,l=(i?lh(n.height):n.height)/s;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const LI=ji(0);function YS(e){const t=Qn(e);return!h0()||!t.visualViewport?LI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function DI(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qn(e)?!1:t}function go(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),i=p0(e);let a=ji(1);t&&(r?Lr(r)&&(a=xa(r)):a=xa(e));const l=DI(i,n,r)?YS(i):ji(0);let c=(s.left+l.x)/a.x,d=(s.top+l.y)/a.y,u=s.width/a.x,h=s.height/a.y;if(i){const f=Qn(i),p=r&&Lr(r)?Qn(r):r;let v=f,y=Tg(v);for(;y&&r&&p!==v;){const x=xa(y),g=y.getBoundingClientRect(),m=Dr(y),b=g.left+(y.clientLeft+parseFloat(m.paddingLeft))*x.x,k=g.top+(y.clientTop+parseFloat(m.paddingTop))*x.y;c*=x.x,d*=x.y,u*=x.x,h*=x.y,c+=b,d+=k,v=Qn(y),y=Tg(v)}}return dh({width:u,height:h,x:c,y:d})}function zI(e){let{elements:t,rect:n,offsetParent:r,strategy:s}=e;const i=s==="fixed",a=is(r),l=t?op(t.floating):!1;if(r===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=ji(1);const u=ji(0),h=ns(r);if((h||!h&&!i)&&((al(r)!=="body"||nd(a))&&(c=ap(r)),ns(r))){const f=go(r);d=xa(r),u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x,y:n.y*d.y-c.scrollTop*d.y+u.y}}function BI(e){return Array.from(e.getClientRects())}function Ag(e,t){const n=ap(e).scrollLeft;return t?t.left+n:go(is(e)).left+n}function WI(e){const t=is(e),n=ap(e),r=e.ownerDocument.body,s=Gn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Gn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ag(e);const l=-n.scrollTop;return Dr(r).direction==="rtl"&&(a+=Gn(t.clientWidth,r.clientWidth)-s),{width:s,height:i,x:a,y:l}}function HI(e,t){const n=Qn(e),r=is(e),s=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,l=0,c=0;if(s){i=s.width,a=s.height;const d=h0();(!d||d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:i,height:a,x:l,y:c}}function $I(e,t){const n=go(e,!0,t==="fixed"),r=n.top+e.clientTop,s=n.left+e.clientLeft,i=ns(e)?xa(e):ji(1),a=e.clientWidth*i.x,l=e.clientHeight*i.y,c=s*i.x,d=r*i.y;return{width:a,height:l,x:c,y:d}}function Xx(e,t,n){let r;if(t==="viewport")r=HI(e,n);else if(t==="document")r=WI(is(e));else if(Lr(t))r=$I(t,n);else{const s=YS(e);r={...t,x:t.x-s.x,y:t.y-s.y}}return dh(r)}function QS(e,t){const n=Ai(e);return n===t||!Lr(n)||qa(n)?!1:Dr(n).position==="fixed"||QS(n,t)}function UI(e,t){const n=t.get(e);if(n)return n;let r=Oc(e,[],!1).filter(l=>Lr(l)&&al(l)!=="body"),s=null;const i=Dr(e).position==="fixed";let a=i?Ai(e):e;for(;Lr(a)&&!qa(a);
vendor: 10,445 bytes, line 321
321){const l=Dr(a),c=u0(a);!c&&l.position==="fixed"&&(s=null),(i?!c&&!s:!c&&l.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||nd(a)&&!c&&QS(e,a))?r=r.filter(u=>u!==a):s=l,a=Ai(a)}return t.set(e,r),r}function qI(e){let{element:t,boundary:n,rootBoundary:r,strategy:s}=e;const a=[...n==="clippingAncestors"?op(t)?[]:UI(t,this._c):[].concat(n),r],l=a[0],c=a.reduce((d,u)=>{const h=Xx(t,u,s);return d.top=Gn(h.top,d.top),d.right=Ei(h.right,d.right),d.bottom=Ei(h.bottom,d.bottom),d.left=Gn(h.left,d.left),d},Xx(t,l,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function VI(e){const{width:t,height:n}=JS(e);return{width:t,height:n}}function GI(e,t,n){const r=ns(t),s=is(t),i=n==="fixed",a=go(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const c=ji(0);if(r||!r&&!i)if((al(t)!=="body"||nd(s))&&(l=ap(t)),r){const p=go(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else s&&(c.x=Ag(s));let d=0,u=0;if(s&&!r&&!i){const p=s.getBoundingClientRect();u=p.top+l.scrollTop,d=p.left+l.scrollLeft-Ag(s,p)}const h=a.left+l.scrollLeft-c.x-d,f=a.top+l.scrollTop-c.y-u;return{x:h,y:f,width:a.width,height:a.height}}function bf(e){return Dr(e).position==="static"}function ew(e,t){if(!ns(e)||Dr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return is(e)===n&&(n=n.ownerDocument.body),n}function ZS(e,t){const n=Qn(e);if(op(e))return n;if(!ns(e)){let s=Ai(e);for(;s&&!qa(s);){if(Lr(s)&&!bf(s))return s;s=Ai(s)}return n}let r=ew(e,t);for(;r&&MI(r)&&bf(r);)r=ew(r,t);return r&&qa(r)&&bf(r)&&!u0(r)?n:r||II(e)||n}const KI=async function(e){const t=this.getOffsetParent||ZS,n=this.getDimensions,r=await n(e.floating);return{reference:GI(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JI(e){return Dr(e).direction==="rtl"}const YI={convertOffsetParentRelativeRectToViewportRelativeRect:zI,getDocumentElement:is,getClippingRect:qI,getOffsetParent:ZS,getElementRects:KI,getClientRects:BI,getDimensions:VI,getScale:xa,isElement:Lr,isRTL:JI};function QI(e,t){let n=null,r;const s=is(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const{left:d,top:u,width:h,height:f}=e.getBoundingClientRect();if(l||t(),!h||!f)return;const p=Ud(u),v=Ud(s.clientWidth-(d+h)),y=Ud(s.clientHeight-(u+f)),x=Ud(d),m={rootMargin:-p+"px "+-v+"px "+-y+"px "+-x+"px",threshold:Gn(0,Ei(1,c))||1};let b=!0;function k(S){const E=S[0].intersectionRatio;if(E!==c){if(!b)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(k,{...m,root:s.ownerDocument})}catch{n=new IntersectionObserver(k,m)}n.observe(e)}return a(!0),i}function ZI(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,d=p0(e),u=s||i?[...d?Oc(d):[],...Oc(t)]:[];u.forEach(g=>{s&&g.addEventListener("scroll",n,{passive:!0}),i&&g.addEventListener("resize",n)});const h=d&&l?QI(d,n):null;let f=-1,p=null;a&&(p=new ResizeObserver(g=>{let[m]=g;m&&m.target===d&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var b;(b=p)==null||b.observe(t)})),n()}),d&&!c&&p.observe(d),p.observe(t));let v,y=c?go(e):null;c&&x();function x(){const g=go(e);y&&(g.x!==y.x||g.y!==y.y||g.width!==y.width||g.height!==y.height)&&n(),y=g,v=requestAnimationFrame(x)}return n(),()=>{var g;u.forEach(m=>{s&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),h==null||h(),(g=p)==null||g.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const XI=FI,e3=PI,t3=TI,n3=OI,r3=AI,tw=jI,s3=RI,i3=(e,t,n)=>{const r=new Map,s={platform:YI,...n},i={...s.platform,_c:r};return EI(e,t,{...s,platform:i})};var gu=typeof document<"u"?w.useLayoutEffect:w.useEffect;function uh(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,s;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(!uh(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!uh(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function XS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function nw(e,t){const n=XS(e);return Math.round(t*n)/n}function vf(e){const t=w.useRef(e);return gu(()=>{t.current=e}),t}function o3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:i,floating:a}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=w.useState(r);uh(f,r)||p(r);const[v,y]=w.useState(null),[x,g]=w.useState(null),m=w.useCallback(O=>{O!==E.current&&(E.current=O,y(O))},[]),b=w.useCallback(O=>{O!==C.current&&(C.current=O,g(O))},[]),k=i||v,S=a||x,E=w.useRef(null),C=w.useRef(null),N=w.useRef(u),R=c!=null,M=vf(c),H=vf(s),D=vf(d),U=w.useCallback(()=>{if(!E.current||!C.current)return;const O={placement:t,strategy:n,middleware:f};H.current&&(O.platform=H.current),i3(E.current,C.current,O).then(A=>{const z={...A,isPositioned:D.current!==!1};B.current&&!uh(N.current,z)&&(N.current=z,Co.flushSync(()=>{h(z)}))})},[f,t,n,H,D]);gu(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(O=>({...O,isPositioned:!1})))},[d]);const B=w.useRef(!1);gu(()=>(B.current=!0,()=>{B.current=!1}),[]),gu(()=>{if(k&&(E.current=k),S&&(C.current=S),k&&S){if(M.current)return M.current(k,S,U);U()}},[k,S,U,M,R]);const ne=w.useMemo(()=>({reference:E,floating:C,setReference:m,setFloating:b}),[m,b]),te=w.useMemo(()=>({reference:k,floating:S}),[k,S]),oe=w.useMemo(()=>{const O={position:n,left:0,top:0};if(!te.floating)return O;const A=nw(te.floating,u.x),z=nw(te.floating,u.y);return l?{...O,transform:"translate("+A+"px, "+z+"px)",...XS(te.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:z}},[n,l,te.floating,u.x,u.y]);return w.useMemo(()=>({...u,update:U,refs:ne,elements:te,floatingStyles:oe}),[u,U,ne,te,oe])}const a3=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?tw({element:r.current,padding:s}).fn(n):{}:r?tw({element:r,padding:s}).fn(n):{}}}},l3=(e,t)=>({...XI(e),options:[e,t]}),c3=(e,t)=>({...e3(e),options:[e,t]}),d3=(e,t)=>({...s3(e),options:[e,t]}),u3=(e,t)=>({...t3(e),options:[e,t]}),h3=(e,t)=>({...n3(e),options:[e,t]}),p3=(e,t)=>({...r3(e),options:[e,t]}),f3=(e,t)=>({...a3(e),options:[e,t]});var m3="Arrow",eC=w.forwardRef((e,t)=>{const{children:n,width:r=10,height:s=5,...i}=e;return o.jsx(Rt.svg,{...i,ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});eC.displayName=m3;var g3=eC;function y3(e){const[t,n]=w.useState(void 0);return Fs(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let a,l;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,l=d.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var f0="Popper",[tC,nC]=ed(f0),[b3,rC]=tC(f0),sC=e=>{const{__scopePopper:t,children:n}=e,[r,s]=w.useState(null);return o.jsx(b3,{scope:t,anchor:r,onAnchorChange:s,children:n})};sC.displayName=f0;var iC="PopperAnchor",oC=w.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...s}=e,i=rC(iC,n),a=w.useRef(null),l=kn(t,a);return w.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:o.jsx(Rt.div,{...s,ref:l})});oC.displayName=iC;var m0="PopperContent",[v3,x3]=tC(m0),aC=w.forwardRef((e,t)=>{var ge,Ve,Ze,Ge,Pe,ie;const{__scopePopper:n,side:r="bottom",sideOffset:s=0,align:i="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:c=!0,collisionBoundary:d=[],collisionPadding:u=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:p="optimized",onPlaced:v,...y}=e,x=rC(m0,n),[g,m]=w.useState(null),b=kn(t,Ae=>m(Ae)),[k,S]=w.useState(null),E=y3(k),C=(E==null?void 0:E.width)??0,N=(E==null?void 0:E.height)??0,R=r+(i!=="center"?"-"+i:""),M=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},H=Array.isArray(d)?d:[d],D=H.length>0,U={padding:M,boundary:H.filter(k3),altBoundary:D},{refs:B,floatingStyles:ne,placement:te,isPositioned:oe,middlewareData:O}=o3({strategy:"fixed",placement:R,whileElementsMounted:(...Ae)=>ZI(...Ae,{animationFrame:p==="always"}),elements:{reference:x.anchor},middleware:[l3({mainAxis:s+N,alignmentAxis:a}),c&&c3({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?d3():void 0,...U}),c&&u3({...U}),h3({...U,apply:({elements:Ae,rects:ye,availableWidth:tt,availableHeight:Ee})=>{const{width:Ot,height:it}=ye.reference,ct=Ae.floating.style;ct.setProperty("--radix-popper-available-width",`${tt}px`),ct.setProperty("--radix-popper-available-height",`${Ee}px`),ct.setProperty("--radix-popper-anchor-width",`${Ot}px`),ct.setProperty("--radix-popper-anchor-height",`${it}px`)}}),k&&f3({element:k,padding:l}),_3({arrowWidth:C,arrowHeight:N}),f&&p3({strategy:"referenceHidden",...U})]}),[A,z]=dC(te),ce=ts(v);Fs(()=>{oe&&(ce==null||ce())},[oe,ce]);const ae=(ge=O.arrow)==null?void 0:ge.x,pe=(Ve=O.arrow)==null?void 0:Ve.y,Z=((Ze=O.arrow)==null?void 0:Ze.centerOffset)!==0,[ze,Qe]=w.useState();return Fs(()=>{g&&Qe(window.getComputedStyle(g).zIndex)},[g]),o.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...ne,transform:oe?ne.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ze,"--radix-popper-transform-origin":[(Ge=O.transformOrigin)==null?void 0:Ge.x,(Pe=O.transformOrigin)==null?void 0:Pe.y].join(" "),...((ie=O.hide)==null?void 0:ie.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(v3,{scope:n,placedSide:A,onArrowChange:S,arrowX:ae,arrowY:pe,shouldHideArrow:Z,children:o.jsx(Rt.div,{"data-side":A,"data-align":z,...y,ref:b,style:{...y.style,animation:oe?void 0:"none"}})})})});aC.displayName=m0;var lC="PopperArrow",w3={top:"bottom",right:"left",bottom:"top",left:"r
321ight"},cC=w.forwardRef(function(t,n){const{__scopePopper:r,...s}=t,i=x3(lC,r),a=w3[i.placedSide];return o.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:o.jsx(g3,{...s,ref:n,style:{...s.style,display:"block"}})})});cC.displayName=lC;function k3(e){return e!==null}var _3=e=>({name:"transformOrigin",options:e,fn(t){var x,g,m;const{placement:n,rects:r,middlewareData:s}=t,a=((x=s.arrow)==null?void 0:x.centerOffset)!==0,l=a?0:e.arrowWidth,c=a?0:e.arrowHeight,[d,u]=dC(n),h={start:"0%",center:"50%",end:"100%"}[u],f=(((g=s.arrow)==null?void 0:g.x)??0)+l/2,p=(((m=s.arrow)==null?void 0:m.y)??0)+c/2;let v="",y="";return d==="bottom"?(v=a?h:`${f}px`,y=`${-c}px`):d==="top"?(v=a?h:`${f}px`,y=`${r.floating.height+c}px`):d==="right"?(v=`${-c}px`,y=a?h:`${p}px`):d==="left"&&(v=`${r.floating.width+c}px`,y=a?h:`${p}px`),{data:{x:v,y}}}});function dC(e){const[t,n="center"]=e.split("-");return[t,n]}var C7=sC,S3=oC,C3=aC,E3=cC,[lp,E7]=ed("Tooltip",[nC]),g0=nC(),uC="TooltipProvider",j3=700,rw="tooltip.open",[T3,hC]=lp(uC),pC=e=>{const{__scopeTooltip:t,delayDuration:n=j3,skipDelayDuration:r=300,disableHoverableContent:s=!1,children:i}=e,a=w.useRef(!0),l=w.useRef(!1),c=w.useRef(0);return w.useEffect(()=>{const d=c.current;return()=>window.clearTimeout(d)},[]),o.jsx(T3,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:w.useCallback(()=>{window.clearTimeout(c.current),a.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:w.useCallback(d=>{l.current=d},[]),disableHoverableContent:s,children:i})};pC.displayName=uC;var fC="Tooltip",[j7,cp]=lp(fC),Ng="TooltipTrigger",A3=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=cp(Ng,n),i=hC(Ng,n),a=g0(n),l=w.useRef(null),c=kn(t,l,s.onTriggerChange),d=w.useRef(!1),u=w.useRef(!1),h=w.useCallback(()=>d.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),o.jsx(S3,{asChild:!0,...a,children:o.jsx(Rt.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...r,ref:c,onPointerMove:ut(e.onPointerMove,f=>{f.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ut(e.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ut(e.onPointerDown,()=>{s.open&&s.onClose(),d.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ut(e.onFocus,()=>{d.current||s.onOpen()}),onBlur:ut(e.onBlur,s.onClose),onClick:ut(e.onClick,s.onClose)})})});A3.displayName=Ng;var N3="TooltipPortal",[T7,F3]=lp(N3,{forceMount:void 0}),Va="TooltipContent",mC=w.forwardRef((e,t)=>{const n=F3(Va,e.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...i}=e,a=cp(Va,e.__scopeTooltip);return o.jsx(rl,{present:r||a.open,children:a.disableHoverableContent?o.jsx(gC,{side:s,...i,ref:t}):o.jsx(P3,{side:s,...i,ref:t})})}),P3=w.forwardRef((e,t)=>{const n=cp(Va,e.__scopeTooltip),r=hC(Va,e.__scopeTooltip),s=w.useRef(null),i=kn(t,s),[a,l]=w.useState(null),{trigger:c,onClose:d}=n,u=s.current,{onPointerInTransitChange:h}=r,f=w.useCallback(()=>{l(null),h(!1)},[h]),p=w.useCallback((v,y)=>{const x=v.currentTarget,g={x:v.clientX,y:v.clientY},m=L3(g,x.getBoundingClientRect()),b=D3(g,m),k=z3(y.getBoundingClientRect()),S=W3([...b,...k]);l(S),h(!0)},[h]);return w.useEffect(()=>()=>f(),[f]),w.useEffect(()=>{if(c&&u){const v=x=>p(x,u),y=x=>p(x,c);return c.addEventListener("pointerleave",v),u.addEventListener("pointerleave",y),()=>{c.removeEventListener("pointerleave",v),u.removeEventListener("pointerleave",y)}}},[c,u,p,f]),w.useEffect(()=>{if(a){const v=y=>{const x=y.target,g={x:y.clientX,y:y.clientY},m=(c==null?void 0:c.contains(x))||(u==null?void 0:u.contains(x)),b=!B3(g,a);m?f():b&&(f(),d())};return document.addEventListener("pointermove",v),()=>document.removeEventListener("pointermove",v)}},[c,u,a,d,f]),o.jsx(gC,{...e,ref:i})}),[R3,O3]=lp(fC,{isInside:!1}),M3=kM("TooltipContent"),gC=w.forwardRef((e,t)=>
vendor: 4,293 bytes, line 321
321{const{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:a,...l}=e,c=cp(Va,n),d=g0(n),{onClose:u}=c;return w.useEffect(()=>(document.addEventListener(rw,u),()=>document.removeEventListener(rw,u)),[u]),w.useEffect(()=>{if(c.trigger){const h=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),o.jsx(np,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:u,children:o.jsxs(C3,{"data-state":c.stateAttribute,...d,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[o.jsx(M3,{children:r}),o.jsx(R3,{scope:n,isInside:!0,children:o.jsx(VM,{id:c.contentId,role:"tooltip",children:s||r})})]})})});mC.displayName=Va;var yC="TooltipArrow",I3=w.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,s=g0(n);return O3(yC,n).isInside?null:o.jsx(E3,{...s,...r,ref:t})});I3.displayName=yC;function L3(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,s,i)){case i:return"left";case s:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function D3(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function z3(e){const{top:t,right:n,bottom:r,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:r},{x:s,y:r}]}function B3(e,t){const{x:n,y:r}=e;let s=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const l=t[i],c=t[a],d=l.x,u=l.y,h=c.x,f=c.y;u>r!=f>r&&n<(h-d)*(r-u)/(f-u)+d&&(s=!s)}return s}function W3(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),H3(t)}function H3(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const s=e[r];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const s=e[r];for(;n.length>=2;){const i=n[n.length-1],a=n[n.length-2];if((i.x-a.x)*(s.y-a.y)>=(i.y-a.y)*(s.x-a.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var $3=pC,bC=mC;const U3=$3,q3=w.forwardRef(({className:e,sideOffset:t=4,...n},r)=>o.jsx(bC,{ref:r,sideOffset:t,className:Ht("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));q3.displayName=bC.displayName;const Fg="/assets/hero-background-new-DyBpV2R1.jpg",vC="/assets/brand-logo-side-no-tagline-C3kgyES3.png",V3="/assets/about-hero-BqQorJCf.webp",G3="/assets/about-our-story-k9-OoE0o.webp",xC="/assets/about-tile-1-s91g_tR_.webp",wC="/assets/about-tile-2-BHp3gcLG.webp",kC="/assets/about-tile-3-DBSOWnPH.webp",_C="/assets/about-tile-4-K-jwCVtC.webp",SC="/assets/about-tile-5-CjP_nrqN.webp",K3="data:image/svg+xml,%3csvg%20width='161'%20height='44'%20viewBox='0%200%20161%2044'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22%2044C34.1503%2044%2044%2034.1503%2044%2022C44%2016.5331%2042.006%2011.532%2038.7055%207.6842L7.6842%2038.7055C11.532%2042.006%2016.5331%2044%2022%2044Z'%20fill='%235B6B86'/%3e%3cpath%20d='M36.312%205.29118C32.4647%201.99272%2027.4651%200%2022%200C9.84974%200%200%209.84974%200%2022C0%2027.4651%201.99271%2032.4647%205.29118%2036.312L36.312%205.29118Z'
321%20fill='%235B6B86'/%3e%3cpath%20d='M59.742%2030.5801H54.5605L62.4453%2010.8681H67.0354L75.061%2030.5801H69.5698L68.4434%2027.6796H60.8684L59.742%2030.5801ZM62.389%2023.5964H66.9509L64.67%2016.9788L62.389%2023.5964Z'%20fill='%235B6B86'/%3e%3cpath%20d='M81.4173%2016.3593L81.7833%2019.2879C82.9942%2017.8518%2084.7401%2016.8099%2086.2889%2016.3593L86.7113%2021.1465C84.9373%2021.1747%2083.3321%2021.5971%2082.0086%2022.5263V30.5801H77.4185V21.8787L76.8272%2016.7817L81.4173%2016.3593Z'%20fill='%235B6B86'/%3e%3cpath%20d='M90.0201%2025.286V20.4425H88.1053V16.5001H90.1328L90.4425%2013.0646L94.6102%2012.6703V16.5001H98.7216L98.2992%2020.4425H94.6102V24.8636C94.6102%2026.0745%2095.1171%2026.6377%2095.9901%2026.6377C96.4969%2026.6377%2097.2291%2026.4969%2097.9894%2026.0463L99.5664%2029.679C98.3555%2030.4675%2096.863%2030.8617%2095.2579%2030.8617C92.1321%2030.8617%2090.0201%2029.1721%2090.0201%2025.286Z'%20fill='%235B6B86'/%3e%3cpath%20d='M104.064%2015.0639C102.6%2015.0639%20101.417%2013.8531%20101.417%2012.3887C101.417%2010.9244%20102.6%209.7417%20104.064%209.7417C105.556%209.7417%20106.739%2010.9244%20106.739%2012.3887C106.739%2013.8531%20105.556%2015.0639%20104.064%2015.0639ZM106.373%2016.3593V30.5801H101.783V16.7817L106.373%2016.3593Z'%20fill='%235B6B86'/%3e%3cpath%20d='M115.044%2021.2028L116.931%2021.6534C119.606%2022.3011%20120.986%2023.6809%20120.986%2026.1027C120.986%2028.9468%20118.902%2030.8617%20115.1%2030.8617C112.904%2030.8617%20110.764%2030.3267%20108.99%2029.2847L110.482%2025.9619C112.059%2026.7503%20113.58%2027.2009%20114.96%2027.2009C115.889%2027.2009%20116.339%2026.9756%20116.339%2026.4687C116.339%2026.0182%20116.142%2025.8774%20115.354%2025.6803L113.467%2025.2297C110.764%2024.582%20109.412%2023.2303%20109.412%2020.9775C109.412%2018.1334%20111.468%2016.2185%20115.157%2016.2185C117.297%2016.2185%20119.184%2016.8099%20120.845%2017.7955L119.353%2021.1183C117.888%2020.2735%20116.621%2019.8793%20115.269%2019.8793C114.453%2019.8793%20114.058%2020.0764%20114.058%2020.4707C114.058%2020.8649%20114.284%2021.0339%20115.044%2021.2028Z'%20fill='%235B6B86'/%3e%3cpath%20d='M124.01%2025.286V20.4425H122.095V16.5001H124.123L124.433%2013.0646L128.6%2012.6703V16.5001H132.712L132.289%2020.4425H128.6V24.8636C128.6%2026.0745%20129.107%2026.6377%20129.98%2026.6377C130.487%2026.6377%20131.219%2026.4969%20131.979%2026.0463L133.556%2029.679C132.346%2030.4675%20130.853%2030.8617%20129.248%2030.8617C126.122%2030.8617%20124.01%2029.1721%20124.01%2025.286Z'%20fill='%235B6B86'/%3e%3cpath%20d='M139.8%2016.3593L140.166%2019.2879C141.377%2017.8518%20143.123%2016.8099%20144.671%2016.3593L145.094%2021.1465C143.32%2021.1747%20141.715%2021.5971%20140.391%2022.5263V30.5801H135.801V21.8787L135.21%2016.7817L139.8%2016.3593Z'%20fill='%235B6B86'/%3e%3cpath%20d='M146.754%2032.8329C149.007%2032.8329%20150.162%2032.2979%20150.669%2031.0588L150.781%2030.7491L145.459%2016.5001H150.387L153.006%2024.9199L155.737%2016.5001H160.496L155.062%2031.0588C153.625%2034.9449%20151.513%2036.719%20147.881%2037.0569L146.754%2
321032.8329Z'%20fill='%235B6B86'/%3e%3c/svg%3e",J3="/assets/aff-2-CFTBY6IF.svg",Y3="/assets/aff-3-BM-eDJt8.svg",Q3="/assets/aff-4-CTq3RTr0.svg",Z3="/assets/avatar-csatar-geza-BzEACac7.webp",X3="/assets/avatar-fekete-csanad-DF8tNMuy.webp",eL="data:image/webp;base64,UklGRgYOAABXRUJQVlA4IPoNAADwOgCdASqAAIAAPjEWiUKiISEVijW0IAMEsoBdP9f2b8zETfJvgP8vuD5mr5Hp93DvNZ/sg5r9jvpX97+2HKKiTfMfzD+q4n9s7/UcLt9K/2HLr+keen9dfZg/5/QV9VejT/wfWA6AA68CM0bIYoY2U6Dm3yoXuJpKwpzptFb8c62nrb0QpHJVGNT34cPoKCnS+djTrDsYEovkhbiF0/G9mKxUsDNtU2+KuMDaxSTCUF3MbRttgncUbicFYI5qX7LfWMkloCa8X+KTeGW+oYf2PEcMd9W/mXKgUCUx/ZLSJnop5Wn3JAIVlWn3bDMv1Ipt4X4ujK5qnkLn588o7+t1ZHu4jBLbZoodjFR77sB+u4yQvHU45ZgssZjiY6I2kM34YygzMYv9ym8tr1lOleUWaCM9tyfXAEceo3EIFVJ9g13N9eXCGP17ZO78KRpyUPe1GlAWxkB3YTi2zTnqWEvaBoC6C1S2okEzhhh+MmmFQy8GkJOb+sBskJI9f6/vVKWHCBKtR54/5FxabXQafGpgTqSqdjsP4F36fpQqwn3PoqIp4s8y4ekshIsxMSQzsQA70I8xXuO42Kdu2Qo/W65Odd3SavXbu2XXF4G3vo7RecHDgetSq47Qr7QRRHUZSQAA/v/HzwaOPauJyp9KZBtJIrnZELdrCA0/9qqnsLapHU1AaYYcw95UJV6LOynd9bDVdkWJsVk+zh15pkWOCSsaIsDtYHZ7Pe/J0vdufFa2DI3n+cR4AhS5YfR2gh00QSQNPCWMH/syQMvzTQ6lSQ6gBa+DPeEq8quSAEudrIy1MjH3VxnOwlAjw/qKEOO9exhtTdTAefseDD0w4gio3ut+eVgbHsOUgc8CgR5ha5x/rlGiIMk+zccAMUIOVPod1FA6zJK23QvnScoB8Tx09VU3XOq3qcDAQ2N5PLvztdTw26+gT4Uuw5qUkAoZ79zkw6T4uCG3h8EJ5Ekzk4zoBo94j/dyhDha3mozO8/4puMHXLScYl++NSyvi+Or+XAEYd6mtvxXCPgTySuMqiCrLlBgpSP9rURvz5kF8lrQ+pfoZDEgmAqGWic/m//gOpyl34xdY4kMqGgi0bGcaqdiLZbZakPqQzDfuGU4a5TLKfutbjQ0yXoQUV8JR40gljBcfkYmmDB7ku23sH/F16PWbjFSCcUqFs4flOqsoF/Myq8mOdzNQs9kQpWCxILQHYoZlIZoykyT59YM9CJ0puJN5l8QSbYcu6Wng4LNJ75N5gESTHOvB6KVM0E3VWCEgTAUbvVZwNWXHqv5BiCMeo78QWyu4mfEybqUR5do1vQYOpTPGSFAZdXjFaBRvwn1ug0nfDrbleDuDvPqIjwfDQA6SPrHKatMQnSE+iohahU7yMNDvWRNwMOOFeuTHr8gydhMQp+2HFw98WPnA8+Y/0WLCL1etdfmlpkjkXNaKZ8H6NjHJMB0Ew3cb1VxPljMwvrL0CXICPN1Wr0V/TBtpf1gAny5k3JkRV60hp+rkSBnlEfK4qgGf8uSzXCUSOZpEwJFP+ZqKH5k62IT0A07AdkoWkkimYxYo0SvIG1FdS/8EVj2AMdIyC/yl41/mhiZOwqiwe9VDhi3Rwj/nhNefuvbSZNePxpSd+ggeD+DMF2ePAtO+EJ9iL3SmVHV7z9ibRJdXemyWyh7rgXNiwdRlUH2jFar6VOXks/8dfpZi79cefff+o0/mqiKJtIbymlu3Imc/t69BniaoNY4mxUweNKDDMox77uVWvU7iIPmaP9WqFYN/spUG1yty3pzRrAVsob6sE2mG+7ANJLpXN4LWlwpAyDkhQQDyAV6bzDtq/Fajkay4nBRRdWBmlg6hnKygGoH01vV2jzP8pgl72ColwyOOWDv/vtbBtplsl42SoZqhcTQTZQGFoBRTO4HXt4Uq9eRn8R4a2pfoN3jSHyHeKlib0u5/h6W6U6UWvgHp0TCmVIOd1L61vU5kVV+IZxkFv1s02dpFnaCj+TJp85jbX6p4CspW8ArN0iXCROvNUkK3ykzkX+QApJn0iMXyAET8VwCkfJd0WZyg95T8yfCUIcfvABKsebPJ7y/KE9Mg2yAVF/Lm0Oiko4liOVOkcnLAGCxqqkKfqCfoK2bjgKhMN+Vz80H7Lu/5FOqB0ReYFfdXm48z5zuMcnBNm5R+2Vl74V+hOA6ainf+N1DiFtF5H3flid3le+nubwLCt0rDRHcqTb8X+OO2N6Fd4Rn4Hwak8my+vNykrdFdas+Q/ex5lTav+ll9vHyzSS4yxXbvo1Ss2+Rbc1K7H9Qm1RELa6l/zZ0R4KlQP76ZwDSQ/S9rXhSC6fScfx/U9Z10LWD6t98rafpKixU8kBZsSJLPjESfd3t24PxAVGu7mON54VBDXR2rquREwKIzqSEa4yG3M52fvr969W5Y7fct/zgzNyt4/SLNB9WSesL3Bsnj2LhCzU7g+LcOkFYgRZGfXDgrp8spNABl9PXBcDlj7XQTQX6P8UeZDtZEKpBArsEpm40whrSqlu3Q4K3+MfUIyKfALhzfAFCWgIBFMF9nItKAJ3oS6szwUC6kUrYeUdENrpnKGPzTcnxwG/k8Vn7pl3+BBHw9wX94Mqrm4b0wtDX9eRnuR42Wj6MM/Qt3ZdgBIlKN4kU2CIApSeSLmmT4sWWQ+KJfFcNyegyUI7CXsLynvJYf+OyXtaU/i0AnT11pGxnbMJE3E/LAnn1+g8tR9dT6Ln9u+I/yoMbip6U9LZ/62jfVUR+nd5cDLZz73dtgOFq0bdFoURuAEKnHffvLf/hqKXrPq0lgmlf5Ib7jufzJJX0deYr+QQPJvOxsbTycs5aTtpJq3ComaGBjkfCRA+t9+MGTYSm00YZu/nB07rCZgm/2bzL0DbflplfRxhMYHsfDiVdUqZ2/jLpvi6DRX3NIcUv0q3wUiiWiFeVvBHa4dcIrD3sVn5ynAn8Oo6bO6WyvXkQGwoN3+CMqIrEnv3hPzIb/D4iqx8UnRdf//xYH8mRGqBFzBYydUc/I3fk7/Hhq9TE13oeh6rAx71h4ISAj95iE4ft8idncca12tyvEcwFRBgs9Y3gyEJL8hlShl4/ENFwPI9E+lVEwTQroCyEA/xA+ftLeqXS+4W2/0/l3Przd4Cwqa3ZnSl65lTnuPoau+Pe36Kp6yEy5pIEoeZfTQGclaluN+xeT6K0sa6nrX3Tpcnro2rEGB5Rz+VH5Jk50NcGPZtpmeTxN2/Jc/6rkTXlCr/TtqRje5hMJe23uU6ULlT4RKUwqwOJiCiVslNDRse29KEzBb9/l1w+5Ty+F1nDDDYXt1os0rYVhbRAo4H0tSgT5swkv6X2cJY5l//qTMd+uNz2gRKQ8Bagas4vJsA/gk0pLk/50Hrf/P/GvyUE0oE5rX4bIggPA8CBZx/7dtHLzpodHuDSCvC6lMlQQw6DpsXiBpH9YLENAlZlxypKs2b9JDtc4zEG3Hss67BpNcQTXvuh0p72kdgc+yRgMK1gkITSJSrr39tokpNc5WF0uiWO0MWeZ7qjQHXMnn27HVznHYU+2qgVEViQk/LOnTXUdxr1+Osi4/C+IdCfUPjo/CKLNRmbijr7WkkTz5SY2dKrMaT7SNwFa0H99/JC8zQrcfIFyH3UsFzd9LpZ8BVXSFed88yVeewJo+W05BAYXtXY96FAXKoubWp6cn9lVtq9TT5+RgYX1wPiqyL5Nt3dSATW05nfGbqKcSINCgwJgYlLK374okKVDloaH4r0rhfK+vbcvHGe/ZN4mGh0XGCEwdpiPJPwpl5e/R/sqflSXrIE7zKpxcLi5R1+tgFdjJNyjnM0cN5l2F9MlYR8wTaYy8xzCskaXxSc5mBW+rcX+gZsnsSBZ/qFGXTnUYtK+2sKH+cJiy+WKDwusv94awttLw4prphENfgd0F0wF/xKhCJWp5Ndve7qfzKTXItcxnnA9P0zoymQWgqQ+WswTdryNv8BEB2jZPWW8GzXPm3FbSGFtbMcw+eNlRYYeBHvt5T3xIjzpOsxHvamdW68+iHibcHzbcgSIXkMZYsLRWIPSbc14AKvogkbvSPje4NHcLQ/wxffl89ezMUyhmsOM8aghGXTVaAoOm6o9FCcfsysIljcdIpWf0nxkOozaLDzCdQIH791a3NkBaWuL1m9IlJlGX3K5NmMGJzf03ADFl++CDf3IHC66eAatqVSzLmX8EzICgIr/4RBx0QTVn5TXU59S8epfRf6QatcNFPLSkGhrchLOBYOA3dkh/5FW3TQK+Loc7zgK/+Z/beml7ObCCURFOJ/gIUsfZjd7oadpOl3KTHnNVgdrLtP77Av/R73545Ptzbi+EjsylGO36GrjNv2sU52L1N4eNh6XcmLN/1PfahFPhKnYenuR2DhN2OxOqvZo57PiFB4etcK7Lz9I2ZhfLsNcBNYne27RQ5mlGHY2PqmS2V6uCbA1UThej1Ino/PMUpB7VZJzy2i2oft8sHP4mqpKXY3gtYngQtrFSV9gsvoL5kaZ9c6EAaXE0kzJdror4mrUZhwRvCU6SIV02SsZZqYCOhpEqMowrpLTLHgz8uPS8jc94PG1dacp/zZ7t0iUoo4e7WAtumoAMnJEF4kjqGqecaLRJIgwa9jiH8dKqVfE/Jq4mJodAA4s51yWJECNyWTVv7FBOF3vqyyro5Efz97MMxyNix3k9JFs75mUM9MLRtqKAepoa/A7SVr0zrPVCaTj+fYLfOgSD9q6kMe2qr30rGTzpSUGG/5uCYZkFa++SBvD8+MIjzsdG6AAA==",tL="/assets/avatar-szigmund-kalman-CFNG0bVh.webp",CC="/assets/board-hero-DgR9D0Ie.webp",hh="/assets/box-office-concert-club-CjeEr5Ky.webp",nL="/assets/box-office-hero-CjcLqjxw.webp",rL="/assets/box-office-upcoming-D_2cDWfl.webp",EC="/assets/brand-logo-full-white-DNrVotgc.png",sL="/assets/brand-logo-full-B9LpyN0X.png",iL="/assets/brand-logo-biqillk_.png",jC="/assets/brand-mark-DqiG0nMO.png",oL="/assets/browse-catalog-hero-Tj1dJLbe.webp",TC="/assets/browse-date-hero-OtdiTtL6.webp",AC="/assets/browse-hero-BdRCh377.webp",aL="/assets/changing-lives-bg-DKUzbF1t.webp",NC="/assets/choral-about-Dvmo3QGE.webp",lL="/assets/choral-browse-Dpc2ZBlj.webp",y0="/assets/choral-hero-COdWpCW4.webp",cL="/assets/choral-series-hero-C_8G_iK3.jpg",FC="/assets/choral-vision-DnMmMYpM.webp",PC="/assets/choral-work-1-CNCGV4Ci.webp",RC="/assets/choral-work-2-C75eNur9.webp",Pg="/assets/choral-work-3-CAAAfFgA.webp",OC="/assets/choral-work-4-Bf4piYKm.webp",MC="/assets/choral-work-5-Cobr69Uh.webp",IC="/assets/choral-work-6-CQYEVANQ.webp",LC="/assets/clinician-lisa-thompson-C7RNLySI.jpg",DC="/assets/clinician-michael-okonkwo-C57Uzt7W.jpg",zC="/assets/clinician-robert-kim-BKCgsW_O.jpg",BC="/assets/comm-celestial-fanfare-5gxYaJtl.webp",WC="/assets/comm-golem-speaks-BqXHxr1D.webp",Rg="/assets/comm-into-the-storm-CbX_mbYC.webp",HC="/assets/comm-light-you-see-2c0aYNHx.webp",$C="/assets/comm-machine-age-Cgr14iuD.webp",Og="/assets/comm-meridian-DboHBi7_.webp",Mg="/assets/comm-oye-turning-Ch0-ic9I.webp",UC="/assets/comm-toccata-AkZ_gdpg.webp",qC="/assets/commissions-hero-DBWHTFMF.webp",Xl="/assets/concert-club-hero-BAKWTdEr.webp",b0="/assets/ensemble-hero-BONil
321wrh.webp",ph="/assets/event-autumn-oKkQlfsj.webp",fh="/assets/event-spring-nIWi2Iu-.webp",mh="/assets/event-summer-BvMu5HRH.webp",gh="/assets/event-winter-D7qU9Stb.webp",dL="/assets/exp-cta-bg-BW0fJp5N.webp",dp="/assets/exp-section-01-6IC2RQxA.webp",v0="/assets/exp-section-02-Dsm9GGLt.webp",up="/assets/exp-section-03-Pp1ZrTlY.webp",ui="/assets/experience-benaroya-DbYeMFrN.webp",VC="/assets/experience-hero-DQDjFNNN.webp",x0="/assets/festival-hero-zbMz2HyC.webp",uL="/assets/hero-background-CLpg464C.webp",GC="/assets/inquiry-bg-DIALlpPP.webp",KC="/assets/listen-hero-Cesk66--.webp",JC="/assets/listen-now-playing-DF_abvH8.webp",w0="/assets/opp-guest-conductors-B6aGynSL.webp",YC="/assets/opp-locations-venues-D_gNb-zF.webp",QC="/assets/opp-solo-dates-band-0YLT5SMa.webp",ZC="/assets/opp-solo-dates-CA3cjxLB.webp",XC="/assets/partner-aba-C5KIDYDo.jpg",eE="/assets/partner-acda-BSyUJNwg.jpg",tE="/assets/partner-cbdna-BftFVeTW.png",nE="/assets/partner-chorus-america-HbZXboQE.jpeg",rE="/assets/partner-gala-CJ0CH7Dm.png",sE="/assets/partner-gopledge-DOwUZ4Xw.png",iE="/assets/partner-hal-leonard-CwX6uQAV.png",oE="/assets/partner-hinshaw-DmQHem5C.png",aE="/assets/partner-ifcm-S8B5OsYm.jpg",lE="/assets/partner-jw-pepper-B_YohjiG.webp",cE="/assets/partner-midwest-clinic-CJc1WGtB.jpeg",dE="/assets/partner-nafme-dfTNWEKS.png",uE="/assets/partner-ncco-SqvF-Cbe.png",hE="/assets/partner-syta-CqWDtc9V.png",wa="/assets/past-hero-CTexpL_I.webp",hL="/assets/perform-hero-DPqCmX6d.webp",wn="/assets/placeholder-female-B08xFgL9.webp",Xr="data:image/webp;base64,UklGRgIEAABXRUJQVlA4IPYDAAAwIACdASrdAOQAPjEYikOiIaETf6QAIAMEtLdwulCN+cD5Y7E8dnWS++vlTi3lIcBNIpiz9CTPg9ahqDPgLt2OG9+Bwz4NRXA6x1YhGZtWkFaEu+/Yazg10EK2YkWtu83Ig7OLQ6GXQJe6pqorojSMCFuGcp3ekuU46i1Avg0+DT3Mx+3guFWVbENdBCtbCVbMp7GAjeFy214NRhlsb/75gCv7WAZsmtQ/1EngKCtcDEC1Rcbu/og6kuOCGG//AC4WmtzxojTuoU97m/8OAHaYLr/9ckDg1GGLYRp9O7FU5lAzgLetRB8DpWCFAU8Wog+DUYPoo/5xoHwajDEkrQ6jKc4Pg1GGWurNwAD+/8ZT8YzxUP/QhyxjZN80jv4aCdYzn1wOuDD+rdnNAzgFshRiUW7H0JvuwOZ/zqa1JIfu2LMnTS42KDYQae5JCbGWz6/WARa0HyAC4KZL4B1KbDHXsTvGNAvge/cNdSmIDYM9jS3eheqFpzII8qZL39IoqM6ZPQFtlmeOefgcFgXz11//vsFsgtafZDL8MHwopDBdVqlxu1p6d393U/y7GHf5770WZ9+V9RSijfvmz1gpCfjPn8DfXuJQ+hXEUeKcquA8adLYQZNoAMUptUz26+67IHQTrz+zLUq5SYFN79uGSh03uwbgyWcJnuIv89wJPT6z4ZSBnlFS9aoQhscxWxOHaFp5vX3To/Gn3Dw3Jja+k3IvX+WpsF2uMDsOSk3QhG6arB47nFdpUNF8QMRK1toV1W19Rgtb4t229+SwGKend3vo5QZaD6DgpB8ZY+R3B+Gf0ssn9bY5BFXFXmWw+8W3BrX9n5/awW1mFuVhcvkE4XtWc9h2yvLKvb3cEv9aPAOPpjpln6/3+6hJefj9XcPmgy/CQltIcbnq64VdY7F7iNos1QahFpDq8s/+U/5Qs7MrNiv0qjpYQO4+8zyh/Wa2wsPrBL4H5v6Yk6SX0I5pt/2whyPa9Basj+1kMX/uSvTVMh5Vec6Tqyi+liQk3hHmALlMO/r5xZqAH0OSeobZHFr2NA8f3T4e13kRH4jNhivigkR/zTM9V/0JT5xJf0d0vnocypNmCFvIcxO33HcMTemrIatKAgVQrOnYyj8X2Rjv2DqNy8ZLn+GjnWBb610M/npo9UTP5aq5TEeRBP36L154kmqheDPE6KTwkCL3/PGgY+HVIXSkyTnzyZMAw4RAxKRvb7qZeq0nsmzJEi8A0FB9TJRDYbElbPNEdGway3H5NG49vkQh4X7yMIkwDWNDpz3aOL1L2DreuueUNPGE7T3ajobMMFPLRbeALa01vnh0Bf8vdBqM3dACPBoxUVXahUH1iqekAAA=",pE="/assets/pp-autumn-wind-2025-CERKAAB1.webp",fE="/assets/pp-festival-of-nations-2025-qFBvEx8h.webp",mE="/assets/pp-new-years-brass-2026-DNt_AXEd.webp",gE="/assets/pp-spring-symphonic-2026-vC2X4xGB.webp",k0="/assets/vid-winter-choral-thumb-BDViszBk.webp",_0="/assets/pp-winter-choral-2026-CKKR5Sc3.webp",yE="/assets/pricing-hero-0HnxmrSu.webp",bE="/assets/season-hero-DkwNz7SS.webp",vE="/assets/stay-informed-marquee-DjLIJe0a.webp",xE="data:image/svg+xml,%3csvg%20width='41'%20height='50'%20viewBox='0%200%2041%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.6054%200C18.7158%200%2019.8263%200%2020.9703%200C20.9678%200.250658%2020.9653%200.501317%2020.9628%200.75957C20.9645%201.00769%2020.9662%201.25581%2020.9688%201.50392C20.9698%201.67376%2020.9691%201.84362%2020.9666%202.01344C20.9485%203.3564%2021.2206%204.16305%2022.0519%205.19523C22.1434%205.30976%2022.2349%205.42428%2022.3292%205.54228C23.3692%206.8079%2024.7119%207.71091%2026.0176%208.65872C27.1565%209.48733%2028.2807%2010.3336%2029.3925%2011.2006C29.6111%2011.3709%2029.8303%2011.5405%2030.0495%2011.71C30.7531%2012.2572%2031.4267%2012.8248%2032.0744%2013.4418C32.3738%2013.7182%2032.6815%2013.9758%2032.9966%2014.2328C33.6829%2014.8082%2034.3142%2015.4289%2034.9365%2016.0751C35.1135%2016.2586%2035.2918%2016.4408%2035.4702%2016.6229C35.5871%2016.7433%2035.7039%2016.8639%2035.8207%2016.9845C35.923%2017.0901%2036.0254%2017.1958%2036.1308%2017.3046C36.5912%2017.8216%2037.0084%2018.3778%2037.4341%2018.9255C37.4738%2012.6801%2037.5134%206.43466%2037.5543%200C38.6647%200%2039.7751%200%2040.9191%200C40.9328%203.93838%2040.9435%207.87675%2040.9498%2011.8151C40.9506%2012.2816%2040.9513%2012.748%2040.9521%2013.2144C40.9523%2013.3073%2040.9524%2013.4001%2040.9526%2013.4958C40.9552%2014.9932%2040.9599%2016.4907%2040.9655%2017.9881C40.9711%2019.5281%2040.9745%2021.068%2040.9757%2022.608C40.9765%2023.5559%2040.9791%2024.5039%2040.984%2025.4518C40.9876%2026.1824%2040.9879%2026.9129%2040.9871%2027.6434C40.9873%2027.9405%2040.9884%2028.2375%2040.9908%2028.5345C41.0217%2032.6919%2041.0217%2032.6919%2040.1981%2034.3875C39.5794%2034.0895%2039.1115%2033.7643%2038.756%2033.1505C38.6273%2032.4024%2038.6425%2031.666%2038.6584%2030.9085C38.6626%2030.5088%2038.6641%2030.1091%2038.6635%2029.7093C38.6635%2029.6122%2038.6634%2029.5152%2038.6634%2029.4152C38.6304%2026.4643%2037.1092%2024.0411%2035.271%2021.8942C35.2019%2021.8127%2035.1328%2021.7312%2035.0616%2021.6473C32.7148%2019.0652%2029.3921%2017.4936%2026.2579%2016.2042C26.1421%2016.1527%2026.0262%2016.1012%2025.9068%2016.0481C25.1889%2015.7294%2024.4719%2015.4625%2023.7219%2015.2353C23.1657%2015.0654%2022.6129%2014.8844%2022.0598%2014.7039C21.9547%2014.6696%2021.8496%2014.6354%2021.7412%2014.6001C21.4842%2014.5164%2021.2273%2014.4326%2020.9703%2014.3487C20.9707%2014.4988%2020.9712%2014.6489%2020.9716%2014.8
321035C20.9821%2018.3676%2020.99%2021.9318%2020.9948%2025.4959C20.9955%2025.9348%2020.9961%2026.3738%2020.9967%2026.8127C20.9968%2026.9001%2020.997%2026.9875%2020.9971%2027.0775C20.9992%2028.4913%2021.003%2029.9052%2021.0074%2031.319C21.0119%2032.7703%2021.0146%2034.2216%2021.0155%2035.673C21.0162%2036.4879%2021.0176%2037.3028%2021.0211%2038.1178C21.0244%2038.885%2021.0254%2039.6522%2021.0247%2040.4195C21.0248%2040.7009%2021.0258%2040.9823%2021.0276%2041.2636C21.03%2041.6484%2021.0294%2042.0331%2021.0281%2042.4179C21.0295%2042.5287%2021.0309%2042.6395%2021.0324%2042.7537C21.0221%2043.8683%2020.6046%2044.7407%2019.9038%2045.5742C19.8466%2045.6424%2019.7895%2045.7105%2019.7306%2045.7807C17.3876%2048.4638%2013.4647%2049.7348%2010.0738%2049.9344C7.12341%2050.0893%203.92889%2050.1333%201.50217%2048.1177C0.647064%2047.3047%200.0534057%2046.44%200%2045.2186C0.038329%2044.2126%200.434264%2043.3458%201.02148%2042.5514C1.10188%2042.4419%201.10188%2042.4419%201.1839%2042.3301C2.58581%2040.5459%204.62142%2039.5305%206.68619%2038.7975C6.88204%2038.7269%207.076%2038.6508%207.26957%2038.5738C10.1022%2037.5308%2013.7309%2037.5207%2016.6441%2038.222C16.763%2038.3037%2016.882%2038.3853%2017.0046%2038.4694C17.2029%2038.5103%2017.4011%2038.5511%2017.6054%2038.5931C17.6054%2025.8574%2017.6054%2
321013.1217%2017.6054%200Z'%20fill='%23FE894C'/%3e%3c/svg%3e",S0="/assets/story-beginning-DhXFazCX.webp",C0="/assets/story-choral-series-logo-BeYHdumW.webp",wE="/assets/story-choral-DhXzkxac.webp",yh="/assets/story-composers-BCZJ_D3H.webp",kE="/assets/story-different-FTnyPKKP.webp",_E="/assets/story-hero-BGc8j6w4.webp",SE="/assets/story-past-performances-nAqXEuTr.webp",pL="/assets/story-season-B-agh9kK.webp",fL="/assets/team-1-BFFZIFqx.webp",mL="/assets/team-2-BLBCuqfq.webp",gL="/assets/team-3-BNp3x8tn.webp",yL="/assets/team-4-Djdo514D.webp",bL="/assets/team-5-D0im1XTy.webp",CE="/assets/team-hero-Cb1WpQXs.webp",EE="/assets/commissions-hero-DBWHTFMF.webp",jE="/assets/upcoming-hero-BgaxxBry.webp",vL="/assets/vid-spring-symphonic-thumb-Dn8PKXDg.webp",xL="/assets/vid-winter-choral-encore-thumb-DJ5q3Kfe.webp",wL="/assets/vid-winter-choral-thumb-BDViszBk.webp",TE="/assets/video-center-BVNWIxj7.webp",kL="/assets/video-side-2-BMWIPQgg.webp",_L="/assets/video-side-BZY5-ujJ.webp",SL=Object.assign({"../assets/about-hero.webp":V3,"../assets/about-our-story.webp":G3,"../assets/about-tile-1.webp":xC,"../assets/about-tile-2.webp":wC,"../assets/about-tile-3.webp":kC,"../assets/about-tile-4.webp":_C,"../assets/about-tile-5.webp":SC,"../assets/aff-1.svg":K3,"../assets/aff-2.svg":J3,"../assets/aff-3.svg":Y3,"../assets/aff-4.svg":Q3,"../assets/avatar-csatar-geza.webp":Z3,"../assets/avatar-fekete-csanad.webp":X3,"../assets/avatar-orosz-boldizsar.webp":eL,"../assets/avatar-szigmund-kalman.webp":tL,"../assets/board-hero.webp":CC,"../assets/box-office-concert-club.webp":hh,"../assets/box-office-hero.webp":nL,"../assets/box-office-upcoming.webp":rL,"../assets/brand-logo-full-white.png":EC,"../assets/brand-logo-full.png":sL,"../assets/brand-logo-side-no-tagline.png":vC,"../assets/brand-logo.png":iL,"../assets/brand-mark.png":jC,"../assets/browse-catalog-hero.webp":oL,"../assets/browse-date-hero.webp":TC,"../assets/browse-hero.webp":AC,"../assets/changing-lives-bg.webp":aL,"../assets/choral-about.webp":NC,"../assets/choral-browse.webp":lL,"../assets/choral-hero.webp":y0,"../assets/choral-series-hero.jpg":cL,"../assets/choral-vision.webp":FC,"../assets/choral-work-1.webp":PC,"../assets/choral-work-2.webp":RC,"../assets/choral-work-3.webp":Pg,"../assets/choral-work-4.webp":OC,"../assets/choral-work-5.webp":MC,"../assets/choral-work-6.webp":IC,"../assets/clinician-lisa-thompson.jpg":LC,"../assets/clinician-michael-okonkwo.jpg":DC,"../assets/clinician-robert-kim.jpg":zC,"../assets/comm-celestial-fanfare.webp":BC,"../assets/comm-golem-speaks.webp":WC,"../assets/comm-into-the-storm.webp":Rg,"../assets/comm-light-you-see.webp":HC,"../assets/comm-machine-age.webp":$C,"../assets/comm-meridian.webp":Og,"../assets/comm-oye-turning.webp":Mg,"../assets/comm-toccata.webp":UC,"../assets/commissions-hero.webp":qC,"../assets/concert-club-hero.webp":Xl,"../assets/ensemble-hero.webp":b0,"../assets/event-autumn.webp":ph,"../assets/event-spring.webp":fh,"../assets/event-summer.webp":mh,"../assets/event-winter.webp":gh,"../assets/exp-cta-bg.webp":dL,"../assets/exp-section-01.webp":dp,"../assets/exp-section-02.webp":v0,"../assets/exp-section-03.webp":up,"../assets/experience-benaroya.webp":ui,"../assets/experience-hero.webp":VC,"../assets/festival-hero.webp":x0,"../assets/hero-background-new.jpg":Fg,"../assets/hero-background.webp":uL,"../assets/inquiry-bg.webp":GC,"../assets/listen-hero.webp":KC,"../assets/listen-now-playing.webp":JC,"../assets/opp-guest-conductors.webp":w0,"../assets/opp-locations-venues.webp":YC,"../assets/opp-solo-dates-band.webp":QC,"../assets/opp-solo-dates.webp":ZC,"../assets/partners/partner-aba.jpg":XC,"../assets/partners/partner-acda.jpg":eE,"../assets/partners/partner-cbdna.png":tE,"../assets/partners/partner-chorus-america.jpeg":nE,"../assets/partners/partner-gala.png":rE,"../assets/partners/partner-gopledge.png":sE,"../assets/partners/partner-hal-leonard.png":iE,"../assets/partners/partner-hinshaw.png":oE,"../assets/partners/partner-ifcm.jpg":aE,"../assets/partners/partner-jw-pepper.webp":lE,"../assets/partners/partner-midwest-clinic.jpeg":cE,"../assets/partners/partner-nafme.png":dE,"../assets/partners/partner-ncco.png":uE,"../assets/partners/partner-syta.png":hE,"../assets/past-hero.webp":wa,"../assets/perform-hero.webp":hL,"../assets/placeholder-female.webp":wn,"../assets/placeholder-male.webp":Xr,"../assets/pp-autumn-wind-2025.webp":pE,"../assets/pp-festival-
321of-nations-2025.webp":fE,"../assets/pp-new-years-brass-2026.webp":mE,"../assets/pp-spring-symphonic-2026.webp":gE,"../assets/pp-summer-percussion-2025.webp":k0,"../assets/pp-winter-choral-2026.webp":_0,"../assets/pricing-hero.webp":yE,"../assets/season-hero.webp":bE,"../assets/stay-informed-marquee.webp":vE,"../assets/stay-informed-vector.svg":xE,"../assets/story-beginning.webp":S0,"../assets/story-choral-series-logo.webp":C0,"../assets/story-choral.webp":wE,"../assets/story-composers.webp":yh,"../assets/story-different.webp":kE,"../assets/story-hero.webp":_E,"../assets/story-past-performances.webp":SE,"../assets/story-season.webp":pL,"../assets/team-1.webp":fL,"../assets/team-2.webp":mL,"../assets/team-3.webp":gL,"../assets/team-4.webp":yL,"../assets/team-5.webp":bL,"../assets/team-hero.webp":CE,"../assets/testimonials-hero.webp":EE,"../assets/upcoming-hero.webp":jE,"../assets/vid-spring-symphonic-thumb.webp":vL,"../assets/vid-winter-choral-encore-thumb.webp":xL,"../assets/vid-winter-choral-thumb.webp":wL,"../assets/video-center.webp":TE,"../assets/video-side-2.webp":kL,"../assets/video-side.webp":_L}),AE={};for(const[e,t]of Object.entries(SL)){const n=e.split("/").pop();n&&(AE[n]=t)}function Tt(e){if(e)return/^(https?:)?\/\//.test(e)||e.startsWith("/")?e:AE[e]}const NE=[{eyebrow:"Repertoire",title:"National Concerts Choral Series",desc:"Discover our curated choral catalog â works selected and championed by National Concerts for ensembles of every size.",img:C0,imgFit:"contain",imgBg:"#141414",to:"/choral-series",cta:"Explore Series"},{eyebrow:"Artistic Voices",title:"Our Collaborators",desc:"Meet the conductors, composers, and artistic professionals whose vision, expertise, and artistic leadership enrich every National Concerts experience.",img:yh,to:"/browse-by-conductor",cta:"Meet Our Collaborators"},{eyebrow:"2027",title:"Our Current Season",desc:"Explore our opportunities for choral and instrumental ensembles at major venues across the US.",img:wE,to:"/season-overview",cta:"View Season"},{eyebrow:"Archive",title:"Past Performances",desc:"Revisit highlights from past seasons â concerts, premieres, and milestones across our flagship venues.",img:SE,to:"/past-performances",cta:"View Performances"},{eyebrow:"Leadership",title:"Our Advisory Council",desc:"Our Advisory Council helps guide the future of National Concerts, ensuring the experience we create continues to evolve with meaning, relevance, and a deep connection to the communities we serve.",img:yh,to:"/advisory-board",cta:"Meet The Council"}],hp=[{slug:"the-opposites-game",title:"THE OPPOSITES GAME",author:"Dale Trumbore · text by Brendan Constantine",excerpt:"Originally commissioned by National Concerts to receive its premiere at Carnegie Hall June 13, 2020 led by Craig Hella Johnson. Brendan Constantine's text for The Opposites Game plays with the...",sourceUrl:"https://graphitepublishing.com/product/the-opposites-game-full-score-and-parts/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/ba5d345d-9d66-4729-afe5-04885c9cd9ae-the-opposites-game.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/cover-art_bf2a8c7e-355d-4d0d-b5a3-dd1ccbd45aea.jpg"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 322<div class="up_detail_img"><img alt="THE OPPOSITES GAME" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/cover-art_bf2a8c7e-355d-4d0d-b5a3-dd1ccbd45aea.jpg"/></div> 323<div class="up_detail_content"> 324<p>Originally commissioned by National Concerts to receive its premiere at Carnegie Hall June 13, 2020 led by Craig Hella Johnson. </p> 325<p>Brendan Constantine's text for The Opposites Game plays with the idea of having a "right"<br/>answer as it asks what may be an unanswerable question: What is the opposite of a gun?</p> 326<p>SATB Chorus & Piano</p> 327<p>As the piece explores the answer, the idea of opposites is reflected in the music as well. Near the beginning of the piece, the melody used for "My life had stood a loaded gun" is inverted to create the melody for the sentence made of up antonyms: "Your / Death / Will Sit / Many / Empty." "Inverted" is a musical term for flipping a series of notes upside down; here, the first melody is reflected over C to create the second melody.</p> 328<p>Near the end of the piece, the music for "the opposite of a gun is wherever you point it" is the retrograde of the melody used for "Your death will sit through many empty poems." "Retrograde" is a musical term for when the notes of a melody are played in reverse orderâanother kind of musical opposite.</p> 329<p>This day my students and I play the Opposites Game with a line from Emily Dickinson. My life had stood a loaded gun, it goes and I write it on the board, pausing so they can call out the antonyms</p> 330<p>My Your Life Death Had stood? Will sit A Many Loaded Empty Gun ?</p> 331<p>Gun.<br/>For a moment, very much like the one between<br/>
331lightning and it's sound, the children just stare at me,<br/>and then it comes, a flurry, a hail storm of answers â</p> 332<p>Flower, says one. No, Book, says another. That's stupid,<br/>cries a third, the opposite of a gun is a pillow. Or maybe<br/>a hug, but not a book, no way is it a book. With this,<br/>the others gather their thoughts</p> 333<p>and suddenly it's a shouting match. No one can agree,<br/>for every student there's a final answer. It's a song,<br/>a prayer, I mean a promise, like a wedding ring, and<br/>later a baby. Or what's that person who delivers babies?</p> 334<p>A midwife? Yes, a midwife. No, that's wrong. You're so<br/>wrong you'll never be right again. It's a whisper, a star,<br/>it's saying I love you into your hand and then touching<br/>someone's ear. Are you crazy? Are you the president</p> 335<p>of Stupid-land? You should be, When's the election?<br/>It's a teddy bear, a sword, a perfect, perfect peach.<br/>Go back to the first one, it's a flower, a white rose.<br/>When the bell rings, I reach for an eraser but a girl</p> 336<p>snatches it from my hand. Nothing's decided, she says,<br/>We're not done here. I leave all the answers<br/>on the board. The next day some of them have<br/>stopped talking to each other, they've taken sides.</p> 337<p>There's a Flower club. And a Kitten club. And two boys<br/>calling themselves The Snowballs. The rest have stuck<br/>with the original game, which was to try to write<br/>something like poetry.</p> 338<p>It's a diamond, it's a dance,<br/>the opposite of a gun is a museum in France.<br/>It's the moon, it's a mirror,<br/>it's the sound of a bell and the hearer.</p> 339<p>The arguing starts again, more shouting, and finally<br/>a new club. For the first time I dare to push them.<br/>Maybe all of you are right, I say.</p> 340<p>Well, maybe. Maybe it's everything we said. Maybe it's<br/>everything we didn't say. It's words and the spaces for words.<br/>They're looking at each other now. It's everything in this room<br/>and outside this room and down the street and in the sky.</p> 341<p>It's everyone on campus and at the mall, and all the people<br/>waiting at the hospital. And at the post office. And, yeah,<br/>it's a flower, too. All the flowers. The whole garden.<br/>The opposite of a gun is wherever you point it.</p> 342<p>Don't write that on the board, they say. Just say poem.<br/>Your death will sit through many empty poems.</p> 343<p>â Brendan Constantine</p> 344</div> 345</div>`},{slug:"as-one",title:"AS ONE",author:"Jim Papoulis",excerpt:"In the whispers of loneliness will we turn away In a moment that might divide us In our hearts is an answer we will rise as one we will stand...",sourceUrl:"",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/b800010a-875e-4365-8e0a-470082e8f08a-as-one.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/papoulis_new.jpg"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 346<div class="up_detail_img"><img alt="AS ONE" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/papoulis_new.jpg"/></div> 347<div class="up_detail_content"> 348<p>In the whispers of loneliness<br/> will we turn away<br/> In a moment that might divide us<br/> In our hearts is an answer <br/> we will rise as one<br/> we will stand as one<br/> we will sing as one<br/> lift your hearts as one<br/> share your voice<br/> as one<br/> take a stand<br/> we will sing</p> 349<p>If we all could<br/> learn to find a way<br/> if we all could<br/> learn to lift our hearts</p> 350<p>can we reach each<br/> other through our song<br/> oh yes we<br/> oe oe oe oe- oe- oh yes we<br/> oe oe oe#oe- oeoh<br/> yes we can will we</p> 351<p>learn to rise above<br/> open up our arms<br/> hearts is an answer</p> 352<p>As one<br/> we will rise as one<br/> we will stand as one<br/> we will sing as one</p> 353<p>lift your hearts<br/> share your voice<br/> take a stand<br/> we will sing<br/> we will sing<br/> We sing for u<br/> We rise for u<br/> We rise for u <br/> We sing for u</p> 354<p>share your voice<br/> oh yes we sing<br/> We sing for u<br/> oh yes we sing <br/> We rise for u</p> 355<p>Oh yes we rise<br/> We sing for u<br/> Stand with me <br/> As one</p> 356<p>We will rise<br/> we will stand as one<br/> we will sing As one<br/> Lift your hearts<br/> As one</p> 357</div> 358</div>`},{slug:"dreamcatcher",title:"DREAMCATCHER",author:"Richard Burchard",excerpt:"Commissioned by National Concerts for premiere at Carnegie Hall, June 15, 2019, Dr. Jeffrey Benson, conductor Three Native American Proverbs",sourceUrl:"",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/31eee270-c367-4d0a-bdb5-67ddb37a896b-dreamcatcher.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/JNH0433.jpg"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 359<div class="up_detail_img"><img alt="DREAMCATCHER" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/JNH0433.jpg"/></div> 360<div class="up_detail_content"> 361<p>Commissioned by National Concerts for premiere at Carnegie Hall, June 15, 2019, Dr. Jeffrey Benson, conductor Three Native American Proverbs</p> 362</div> 363</div>`},{slug:"my-home",title:"MY HOME",author:"Stacey V. Gibbs & Robert T. Townsend · lyrics by Stacey V. Gibbs",excerpt:"Commissioned by National Concerts for premiere at Carnegie Hall, February 16, 2020, Dr. Jeffery Redding, conductor Do you have a place to go, is somebody there you know
363who only...",sourceUrl:"https://www.gentrypublications.com/product/my-home-satb/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/7ef949c8-690e-4521-a241-4fdb812b138a-my-home.jpg",media:["https://www.youtube.com/embed/DCd2LNEPZ44"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 364<div class="up_detail_img"> 365 366<div class="embed-container"><iframe allowfullscreen="" frameborder="0" loading="lazy" src="https://www.youtube.com/embed/DCd2LNEPZ44" title="MY HOME"></iframe></div> 367</div> 368<div class="up_detail_content"> 369<p>Commissioned by National Concerts for premiere at Carnegie Hall, February 16, 2020, Dr. Jeffery Redding, conductor</p> 370<p>Do you have a place to go,<br/> is somebody there you know who<br/> only wants to see you laugh and smile?</p> 371<p>A space of security,<br/> there's no where else I long to be, <br/> a house of love that makes it all worth while?</p> 372<p>When I'm at home, I'm at peace <br/> and all my worries cease. <br/> No place I'd rather be than here <br/> with family in my home.</p> 373<p>There are times in life I find<br/> nothing seems to work out right and<br/> I don't know which way to look or turn...<br/> all of life's complexities<br/> stir up special memories of a<br/> restful home and that is what I yearn.</p> 374<p>I feel the love that Iâm shown, it's the<br/> greatest thing I've ever known. No place I'd<br/> rather be than here with family in my home.<br/> where I am free to simply be<br/> Friends and family, a place where I belong is the<br/> beauty of what I call home.</p> 375<p>Just like rain the love keeps fallin' on me, <br/> my home, my community.<br/> When I am there, I have no care,<br/> love a bounds, happiness all a round, my home</p> 376<p>There's no place I'd rather be<br/> than my home!</p> 377</div> 378</div>`},{slug:"one-step",title:"ONE STEP",author:"Jocelyn Hagen",excerpt:'Commissioned by National Concerts for premiere at Carnegie Hall, June 15, 2019, Tesfa Wondemagegnehu, conductor "One Step" is about embracing the messy path to success and the idea that not...',sourceUrl:"https://jocelynhagen.com/catalog/one-step/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/7ad05715-829d-49f1-ba23-b4080afbfa3b-one-step.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/One-Step-cover.jpg","https://www.youtube.com/embed/lN9aFm0Dv7Y"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 379<div class="up_detail_img"><img alt="ONE STEP" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/One-Step-cover.jpg"/></div> 380<div class="up_detail_content"> 381<p>Commissioned by National Concerts for premiere at Carnegie Hall, June 15, 2019, Tesfa Wondemagegnehu, conductor</p> 382<p>"One Step" is about embracing the messy path to success and the idea that not every movement is a step in the upward direction. Many young people have a fear of failure, and this piece reinforces the importance of the journey in reaching their goals, even through setbacks and disappointments.</p> 383 384<div class="embed-container"><iframe allowfullscreen="" frameborder="0" loading="lazy" src="https://www.youtube.com/embed/lN9aFm0Dv7Y" title="ONE STEP"></iframe></div> 385<p> </p> 386<p>Throughout our lives we examine the paths we have chosen and re-evaluate whether those paths are the right ones for us to take. It can be discouraging when we look ahead and see our goals very far away. Other times we feel that we are working incredibly hard but not seeing the results weâd like. We imagine our path to success being a straight line ~ diagonal, always ascending. But the truth is that the path to success is much messier than weâd like to believe, and that it is normal for us to falter on our journey to our goals.</p> 387<p>One Step is about embracing that messy journey and being OK with the idea that not every movement is a step in the upward direction. But itâs a step nonetheless, and often times a step back or down is exactly what we need to learn something new or gain a new perspective. The important thing is that we keep moving, and we keep trying.</p> 388<p>What is the meaning of success? What does it mean to me?<br/> How do I get there?<br/> Do I have reason to be scared?</p> 389<p>No. Never give up. No. Never give in.</p> 390<p>One step<br/> Take another step<br/> Take a step down<br/> Take a step back<br/> Turn around, look around <br/> Take a step up</p> 391<p>Spreading out, standing proud, Stepping up, singing loud! One step<br/> Step up!</p> 392<p>~ Jocelyn Hagen</p> 393<a class="btn" href="https://www.jocelynhagen.com/product/one-step-download" rel="noopener noreferrer" target="_blank">PURCHASE SCORE</a> 394</div> 395</div>`},{slug:"home-in-me",title:"HOME IN ME",author:"Andrea Clearfield · poetry by Sienna Craig",excerpt:"Commissioned by National Concerts and a consortium of treble choirs for premiere at Carnegie Hall, February 16, 2020, Dr. Sandra Snow, conductor Home in Me is a 3-part piece on...",sourceUrl:"https://blackteamusic.com/product/home-in-me-choral-score/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/b0d610d3-d721-49f0-ad34-dbbdbc5cf153-home-in-me.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Clearfield-headshot.jpg"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 396<div class="up_detail_img"><img alt="HOME IN ME" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Clearfield-headshot.jpg"/></div> 397<div class="up_detail_content"> 398<p>Commissioned by National Concerts and a consortium of treble choirs for premiere at Carnegie Hall, February 16, 2020, Dr. Sandra Snow, conductor</p> 399<p><em>Home in Me</em> is a 3-part piece on "what is home" - in place/body, speech and heart/mind. The poetry was created specifically for this piece by Dr. Sienna Craig.</p> 400<p>I. Body<br/> When our bodies turn this wheel<br/> Crack the vessel, learn whatâs real<br/> Leave an echo of the self<br/> Moment to moment we touch, we dwell, (but stillâ¦)</p> 401<p>When we yearn to feel awake<br/> Creature of our boundless ache<br/> Limb by limb we make the climb<br/> Begin, begun this dance of time</p> 402<p>Stones in our pockets<br/> Wind in our hair<br/> Wondering, wandering, welcomed, where?</p> 403<p>When our bodies feel this burn<br/> How do we reclaim, return?<br/> Leave an imprint on the skin<br/> Moment to moment, we touch, we shedâ¦.begin</p> 404<p>How do we begin to belong?</p> 405<p>A future seeded in the past<br/> This inner landscape, calm at last<br/>
405 We live the earth we cultivate<br/> How does history resonate?</p> 406<p>When our bodies turn this wheel<br/> Crack the vessel, learn whatâs real<br/> Leave an echo of the self<br/> Moment to moment, we touch, we feel, we molt, reveal, we shed, begin, againâ¦</p> 407<p>How do we begin to belong? How do we begin? Where do we begin? When do we begin?</p> 408<p>Feel the pull of home (hands)<br/> Hear the call of home (head)<br/> Hold the stillâ¦of home (heart)</p> 409</div> 410</div>`},{slug:"suffrage-cantata",title:"SUFFRAGE CANTATA",author:"Andrea Ramsey",excerpt:"Co-Commissioned by National Concerts and Vox Femina L.A. and a consortium of of treble choirs. Carnegie Hall premiere with National Concerts is scheduled for April 9, 2022, Dr. Sandra Snow,...",sourceUrl:"https://musicspoke.com/downloads/suffrage-cantata/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/d7b20807-12c0-46b7-9e47-c64c42ef0798-suffrage-cantata.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Cover-Art.jpg"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 411<!--div class="up_detail_img"><img src="//cdn.shopify.com/s/files/1/0025/7307/4468/files/Suffrage_Cantata_Consortium_1024x1024.jpg?v=1566308491" alt="" /></div> 412<div class="up_detail_content"> 413<p><img src="//cdn.shopify.com/s/files/1/0025/7307/4468/files/Suffrage_Cantata_Consortium_pg2_1024x1024.jpg?v=1566308580" alt="" /></p> 414<p><a href="http://bit.ly/suffragecantata" title="Suffrage Cantata Form" target="_blank" rel="noopener noreferrer"><img src="//cdn.shopify.com/s/files/1/0025/7307/4468/files/Suffrage_Cantata_Consortium_pg3_06e98ba6-006a-4885-901f-dadb5e63fee6_1024x1024.jpg?v=1566312027" alt="" /></a></p> 415<p> </p> 416<p style="text-align: center;"><a href="https://gallery.mailchimp.com/efb0d0f127ee86d42843fd873/files/e1c5015a-7812-4c16-bc50-f207e071f600/National_Concerts_2020Consortium.pdf" target="_blank" title="PDF Download" rel="noopener noreferrer">DOWNLOAD PDF</a></p--> 417<div class="up_detail_img"><img alt="SUFFRAGE CANTATA" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Cover-Art.jpg"/></div> 418<div class="up_detail_content"> 419<p>Co-Commissioned by National Concerts and Vox Femina L.A. and a consortium of of treble choirs. Carnegie Hall premiere with National Concerts is scheduled for April 9, 2022, Dr. Sandra Snow, conductor</p> 420<p>
420An extended work in five movements for SSAA chorus, piano, string quartet, narration, soloists, & optional percussion.</p> 421</div> 422<p><strong>COMPOSER NOTES</strong></p> 423<p>Suffrage Cantata represents well over a year of research, planning, and composing. The journey took me places I never imagined. I explored multiple suffrage exhibits in Washington, D.C., visited Susan B. Anthony's home, stood in the parlor where she was arrested for illegal voting, and held the handwritten letters of Susan B. Anthony, Lucy Stone, and Carrie Chapman Catt while at the University of Rochester archives. When I began this, I had no idea the 19th amendment represented seventy-two years of struggle. I didn't know any of these women's names, save Susan B. Anthony, who only received passing mention in my history books growing up. Walking through a bookstore, have you ever noticed how little of the history section is comprised of women? In working through this project, I have dwelled with women who were American heroes, but in many cases dismissed or outright silenced by the major authors of history. Even within the women's suffrage movement, women silenced other women. Leading white suffragists were dismissive of and in some instances intentionally omitted the efforts of suffragists of color from historical records.</p> 424<p>My personal commitment to include diverse perspectives from the movement intensified the process in ways I hadn't anticipated. For every scrap of information I could find on Mary Church Terrell or Mabel Ping-Hua Lee, I could find 50 to 100 more documents on Susan B. Anthony or Alice Paul. Instances like this challenge us to critically examine the history we are presented. Who is telling the story? How do their experiences impact the story? And, if we are fortunate enough to write a story ourselves, are we sharing all the voices we can?</p> 425<p>Some of the most revered figures in the U.S. Women's Suffrage Movement have been romanticized in ways that omit massive flaws of judgment. In the teaching and learning of American history, there has for too long been a desire for narratives that fit neatly on their specific shelves and generally allow us to observe only one facet of a historical figure. This approach, while tidy on the surface, can cause us to look away from complexities and injustices we deeply need to acknowledge. History is immensely messy. Many of the very suffragists who fought so hard to end slavery were deeply racist and classist (e.g. Elizabeth Cady Stanton). Others (even the Quakers like Susan B. Anthony and Alice Paul) were permissive of racist thinking when they felt it would expedite their efforts (i.e. how Alice Paul handled segregation in the 1913 parade). It is easy for many to dismiss this as simply being "how things were" or an unfortunate condition of the times. However, if women like Elizabeth Cady Stanton could be revolutionary enough in independent thought to see that women should be treated as equal to men, it stands to reason those same women could think radically and independently regarding Americans of color as well.</p> 426<p>When I began the work, I naïvely thought, "I'll only include the âgood suffragists.'" While touring the Belmont-Paul Equality House in Washington, D.C. (former headquarters of the National Woman's Party), I arrived early and had a moment to talk with the guide before the tour. In our conversation, I told her of my project and said something to the effect of: "I know some of the white suffragists were racially problematicâ¦" She stopped me and said, "Oh, they were all racially problematic." As I moved through the tour, I saw women who had been arrested, jailed, beaten and tortured for the right to voteâ but who were also deeply flawed.</p> 427<p>Planning for this work began in May of 2019. In less than a year, our own history was shifting dramatically with the arrival of a global pandemic, sustained protest, and racial upheaval. We are influenced by our environments and I know this work is different, and likely stronger, as a result of composing in this season of self-examination. I have tried to craft a work that is honest about the heroism of these figures while also acknowledging their flaws.</p> 428<p>The music for the work is original, with the exception of a brief portion of movement 3, which quotes "Fall in Line," a Suffrage March by Zena S. Hawn. Published in 1914, it is quite possible this march was performed at or inspired by the 1913 suffrage parade in Washington, D.C. The entirety of the original sheet music to this march is available for free online through the Library of Congress digital collections, which include many other suffrage tunes as well.</p> 429<p>While movements 1 and 3 include some original lyrics, the bulk of the texts used in the work are historically sourced. The original lyrics of "one day the women got tired" provides a simple message as the women move forward in their various ways (e.g. Charlotte Woodward in her wagon, Sojourner Truth speaking at Broadway Tabernacle, Elizabeth Cady Stanton reading the Declaration of Rights and Sentiments.) The original lyrics in movement 3 were crafted to relay stories from Ida B. Wells's autobiography "Crusade for Justice" as well as textbook accounts of the events within the Illinois delegation on the day of the 1913 parade in Washington D.C.</p> 430<p>Apart from these original lyrics, the rest of the texts were pulled from historical content: banner messages, programs, speeches, writings, and letters of suffragists. Using mostly prose for the lyrical content required some additional creativity. In many instances, I would find (and even color code) similarly themed texts so I could parse together whole sets of lyrics. The opening chorus of movement four is a perfect example: a rapid-fire thread of quotes from five different suffragists summoning the women to battle. In some instances (e.g., movement 2) I needed to paraphrase for the sake of rhythm
430ic coherence and lyricism. Susan B. Anthony's verbosity did not always translate smoothly to melody, so occasionally; I removed/adjusted a few words without altering the overall meaning. In other moments, I would pull together fragments of descriptive text to create a mosaic effect (e.g. the Silent Sentinels banners, and Night of Terror sequences in movement 4). To aid conductors and performers, the sources of historical texts used in this work are documented later in these notes.</p> 431</div>`},{slug:"eight-of-swords",title:"EIGHT OF SWORDS",author:"Melissa Dunphy · text by Charles Anthony Silvestri",excerpt:"Commissioned by National Concerts for its Carnegie Hall premiere April 5, 2022, Jeffery Redding, conductor You are powerful,More powerful than you know.You may think you stand in darkness,But you are...",sourceUrl:"https://www.melissadunphy.com/composition/94/eight-of-swords",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/33f1aeae-fee4-43bb-9790-31951d7cae48-eight-of-swords.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Cover-Art_9d6dd381-b5e0-4e02-9397-ea2d62518797.jpg"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 432<div class="up_detail_img"><img alt="EIGHT OF SWORDS" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Cover-Art_9d6dd381-b5e0-4e02-9397-ea2d62518797.jpg"/></div> 433<div class="up_detail_content"> 434<p>Commissioned by National Concerts for its Carnegie Hall premiere April 5, 2022, Jeffery Redding, conductor</p> 435<p>You are powerful,<br/>More powerful than you know.<br/>You may think you stand in darkness,<br/>But you are surrounded by the light.</p> 436<p>The veil that blinds,<br/>The bonds that bind you<br/>Are only loosely gathered,<br/>And freedom is but a choice away.</p> 437<p>Cast aside these bonds,<br/>And find a strength you never knew,<br/>Swords enough for any battle,<br/>Strength enough for any journey.</p> 438<p>The waters of life<br/>Flow from inside you.<br/>You are clothed in fire.</p> 439<p>And when the Universe gazes out<br/>Upon her many wonders,<br/>She sees through your eyes.</p> 440</div> 441</div>`},{slug:"untitled",title:"YOU ARE",author:"J.D. Frizzell · orchestration by Johnny Del Toro · poetry by contest",excerpt:"J.D. FrizzellCharles Anthony SilvestriJohnny Del Toro National Concerts, composer J.D. Frizzell, and poet Charles Anthony Silvestri are joining forces to lift up the voices of tomorrow! If you are a...",sourceUrl:"",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/33ab0a7b-e2f4-4a7d-b4b7-df4e206693e3-untitled.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Frizzell_2_copy_480x480.jpg?v=1694526922","https://cdn.shopify.com/s/files/1/0025/7307/4468/files/tony_480x480.jpg?v=1693588354","https://cdn.shopify.com/s/files/1/0025/7307/4468/files/del_toro_240x240.jpg?v=1694524878"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 442 443<div class="up_detail_img" style="text-align: start;"> 444<img alt="YOU ARE" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Frizzell_2_copy_480x480.jpg?v=1694526922"/><br/><strong>J.D. Frizzell<br/></strong><img alt="YOU ARE" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/tony_480x480.jpg?v=1693588354"/><strong><br/>Charles Anthony Silvestri<br/><br/><img alt="YOU ARE" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/del_toro_240x240.jpg?v=1694524878"/><br/>Johnny Del Toro<br/><br/></strong> 445</div> 446<div class="up_detail_content"> 447<p style="font-weight: 400;">National Concerts, composer J.D. Frizzell, and poet Charles Anthony Silvestri are joining forces to lift up the voices of tomorrow! If you are a poet between the ages of 16 and 22, you can submit one or more of your poems for consideration to be set to music and orchestration to be premiered at Carnegie Hall in the spring of 2025.</p> 448<p style="font-weight: 400;">The theme of the major work is âEmpowering Uniquenessâ. In a world of photoshop, social media, and artificial intelligence, the pressure to be someone you are not is greater than ever. This major work will celebrate the power of diverse perspectives, experiences, cultures, and appearancesâit will celebrate that each of us is inexorably one-of-a-kind.</p> 449<p style="font-weight: 400;">Poets between the ages of 16 and 22 are invited to submit one or more poems that fit the theme. Up to five poets will have their work chosen for inclusion in the major work. Led by Charles Anthony Silvestri, the selection committee is made up of prominent poets, composers, and conductors from around the country.</p> 450<p style="font-weight: 400;">Winning poets will receive a $500 USD prize and a private masterclass with Charles Anthony Silvestri to workshop their poem and prepare it for being set to music. Winners will retain full rights and ownership to their work.  Please note that travel expenses surrounding the premiere performance are NOT included in the prize should the winning poets wish to attend.</p> 451<p style="font-weight: 400;">Winning poets agree to grant full buyout rights to the composer in exchange for the award money. Winning poet also agrees to work with Dr. Silvestri to adjust and adapt their poem for musical purposes.</p> 452<p style="font-weight: 400;"> </p> 453<p style="font-weight: 400; text-align: center;"><strong>The submission deadline has passed. </strong>           <br/><br/></p> 454</div> 455</div>`},{slug:"the-wilderness-of-you",title:"THE WILDERNESS OF YOU",author:"Andrea Ramsey & Kristina MacMullen",excerpt:"ANDREA RAMSEY
455KRISTINA MACMULLEN THE WILDERNESS OF YOU Experience a musical journey like no other as select choirs, under the esteemed guidance of guest conductor Dr. Kristina MacMullen, take center stage...",sourceUrl:"https://musicspoke.com/downloads/the-wilderness-of-you/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/40f3fe2e-0c01-4476-a03f-40ba84ea6a7e-the-wilderness-of-you.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/NC_MacMullenRamsey_480x480.jpg?v=1727447178","https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Andrea_Ramsey-1022_copy_2_480x480.jpg?v=1709246863","https://cdn.shopify.com/s/files/1/0025/7307/4468/files/MacMullen_480x480.png?v=1708028568","https://cdn.shopify.com/s/files/1/0025/7307/4468/files/more-info-button-orange-rounded-260nw-2351509029_copy_480x480.jpg?v=1707949969"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 456<div class="up_detail_img" style="text-align: start;"> 457<img alt="THE WILDERNESS OF YOU" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/NC_MacMullenRamsey_480x480.jpg?v=1727447178"/><br/><img alt="THE WILDERNESS OF YOU" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Andrea_Ramsey-1022_copy_2_480x480.jpg?v=1709246863"/><br/>ANDREA RAMSEY<br/><img alt="THE WILDERNESS OF YOU" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/MacMullen_480x480.png?v=1708028568"/><br/>KRISTINA MACMULLEN<br/><br/><br/> 458</div> 459<div class="up_detail_content" style="text-align: start;"> 460<p><span></span><strong>THE WILDERNESS OF YOU<br/></strong></p> 461<p>Experience a musical journey like no other as select choirs, under the esteemed guidance of guest conductor Dr. Kristina MacMullen, take center stage at Carnegie Hall for the world premiere of a captivating composition by acclaimed composer Andrea Ramsey. As the Mary Gibbs Jones Chair of Music and Director of Choral Activities at Baylor University, Dr. MacMullen's dedication to music education and her unwavering belief in the transformative power of choral music infuse every note with passion and purpose.</p> 462<p>Accompanied by a professional orchestra and gifted soloists, "The Wilderness of You"Â will be scored for mixed (SATB chorus) with limited divisi, possible soli, piano, str
462ings, and percussion. It will be approximately 25 minutes in duration and the difficulty level will be appropriate for advanced high school, collegiate, or community choral ensembles.</p> 463<p>Composed by internally recognized composer, Andrea Ramsey, "The Wilderness of You" promises to be fresh, outside-the-box, inventive, and innovative while also rich in heart, melodic, and tonal in harmonic structure. The final score is scheduled to be delivered by December 1, 2024, ensuring ample time for preparation and rehearsal.</p> 464<p>Consortium membership presents an opportunity for ensembles to contribute to the realization of this ambitious work. </p> 465<p> </p> 466<p><strong>THE WILDERNESS OF YOU <em>consortium<br/></em></strong>A multi-movement choral work celebrating the human experience.<br/><br/><span>Join National Concerts in being one of the few organizations to bring to life an imaginative new original work by Andrea Ramsey. </span><span>The Wilderness of You, </span><span>calls us home to ourselves and holds us in awe of who we are. Through five movements for SATB chorus with piano, percussion, possible strings, and possible soli; Andrea Ramsey will set and adapt the naturalist and perspective- shifting poetry of Jarod K. Anderson (</span><span>Field Guide to a Haunted Forest, Love Notes from the Hollow Tree, Leaf Litter) </span><span>in an approximately twenty-five minute work that pulls us toward those things we most have in common: the inner workings and wonder of our human bodies.<br/><br/></span><strong>CONSORTIUM DETAILS<br/><br/></strong>Voicing, Parts, and Final Score:<br/><br/><span>The Wilderness of You </span><span>will be scored for mixed (SATB chorus) with limited divisi, possible soli, piano, str
466ings, and percussion. It will be approximately 25 minutes in duration and the difficulty level will be appropriate for advanced high school, collegiate, or community choral ensembles. This work will be fresh, outside-the-box, inventive, and innovative while also rich in heart, melodic and tonal in harmonic structure. The final score is scheduled to be delivered by December 1, 2024.<br/><br/></span>[Membership in the consortium is now closed.]</p> 467</div> 468<div class="up_detail_content" style="text-align: start;"> 469<div class="page" title="Page 2"> 470<div class="section"> 471<div class="layoutArea"> 472<div class="column"> 473<p style="padding-left: 30px;"> </p> 474</div> 475</div> 476</div> 477</div> 478<p style="font-weight: 400;"><strong>Join us on THURSDAY March 13, 2025 for the world premiere at Carnegie Hall!</strong></p> 479<p style="font-weight: 400;"> </p> 480<p style="font-weight: 400;"><a href="https://www.carnegiehall.org/Calendar/2025/03/13/National-Concerts-0800PM" rel="noopener noreferrer" target="_blank" title="Wilderness of You"><img alt="THE WILDERNESS OF YOU" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/more-info-button-orange-rounded-260nw-2351509029_copy_480x480.jpg?v=1707949969"/></a></p> 481</div> 482</div>`},{slug:"awaken",title:"AWAKEN",author:"Sherry Blevins",excerpt:"Commissioned by National Concerts for its premiere at Carnegie Hall June 8, 2024, Vincent Oakes, conductor In the summer of 2023, the composer, Sherry Blevins, listened to the latter...",sourceUrl:"https://www.hinshawmusic.com/product/awaken-sab/",cardImage:"https://sgzmzacyilxjxotvjkqv.supabase.co/storage/v1/object/public/site-media/5cc36472-f880-444a-9698-31f39e205734-awaken.jpg",media:["https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Blevins.png?v=1740148781","https://cdn.shopify.com/s/files/1/0025/7307/4468/files/awaken_final.png?v=1740148954"],contentHtml:`<div class="article__body rte" itemprop="articleBody"> 483<p> </p> 484<div class="up_detail_img" style="text-align: start;"> 485<img alt="AWAKEN" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/Blevins.png?v=1740148781"/><strong><br/></strong><strong><br/><img alt="AWAKEN" loading="lazy" src="https://cdn.shopify.com/s/files/1/0025/7307/4468/files/awaken_final.png?v=1740148954"/><br/><br/><br/></strong> 486</div> 487<div class="up_detail_content"> 488<p>Commissioned by National Concerts for its premiere at Carnegie Hall June 8, 2024, Vincent Oakes, conductor</p> 489<p class="s3"><span>In the summer of 2023, </span><span>the composer, Sherry Blevins,</span><span> </span><span>listened to</span><span> the latter part of a riveting interview on National Public Radio with Johann Hari on his new book, </span><span class="s7">Stolen Focus: Why You Canât Pay Attention â and How to Think Deeply Again</span><span>. </span><span>She</span><span> had been feeling in </span><span>her</span><span> bones (and</span><span></span><span>sleep patterns) for some time that something was wrong. Mr. Hari knew why, so </span><span>she</span><span> bought the book and began devouring it.</span></p> 490<p class="s3"><span>That same summer is when </span><span>Sherry</span><span> began contemplating the focus of th</span><span>e</span><span> piece that </span><span>she</span><span> would</span><span></span><span>compose for National Concerts</span><span>â Carnegie premiere</span><span>. </span><span>She</span><span> knew </span><span>she</span><span> wanted this music to say something that no one had said before. </span><span>In her story about the genesis of this work she recounts:</span></p> 491<p class="s3"><span class="s7">â</span><span class="s7">I had been feeling what many of us were feeling: a frustration because of our addiction to our devices resulting in our inability to pay attention. I was considering the focus of Mr. Hariâs book for my piece, but I wasnât certain yetâ¦</span><span class="s7">. </span><span class="s7">Then I attended a state music educatorâs conference. Because most of my time is spent composing alone or teaching one-on-one, I was bracing myself for the dramatic shift in noise and people. Yet, I walked into the conference hotel at peak check-in time and was greeted with silence. There were teachers and students everywhere, but no one interacted nor spoke a word. Everyone was glued to their phones like zombies, and so it was decided. I had to write abou</span><span class="s7">t THIS!â</span></p> 492<p class="s3"><span>In his book</span><span>, </span><span class="s7">Stolen Focus</span><span>, Hari says, </span><span>âWe think our inability to focus is a personal failure to summon enough</span><span> willpower to ignore our devices. The truth is even more disturbing: Our focus has been stolen by powerful external forces that have left us uniquely vulnerable to corporations determined to raid our attention for profit. Hari found that there are twelve deep causes of this crisis, from the decline of mind-wandering to rising pollution, all of which have robbed some of our attention. Crucially, Hari learned how we
492can reclaim our focus â as individuals, and as a society</span><span>.â</span></p> 493<p class="s3"><span>Sherry Blevinsâ</span><span> hope is that âAwakenâ helps at least one person to loosen the grip that technology has on them AND that they can once again âSee the sun rise, feel the moon glow, and connect with each otherâ in ways that they have long forgotten. </span></p> 494<p class="s3"><span> </span></p> 495<p class="s3"><strong><span class="s8">Awaken</span></strong></p> 496<p><span class="s9">Clicking and swiping and doom scrolling,<br/></span><span style="font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; font-size: 0.875rem;">Clicking and swiping and searching.<br/></span><span class="s9">Texting and posting; itâs overwhelming. <br/></span><span class="s9">What are we doing? </span><span> </span></p> 497<p><span class="s9">Why canât we sleep? Why do we feel this fascination? <br/></span><span class="s9">Why canât we think? Why does it cause this consternation? </span></p> 498<p><span class="s9">Our universe is growing, yet we shrink. <br/></span><span class="s9">Our hands are ever glowing; we try to stop, but itâs unending. </span></p> 499<p><span class="s9">What is this force? Why do we stare? Why am I feeling colder? <br/></span><span class="s9">This thing is not me; why canât we see what will set us free?</span></p> 500<p><span class="s9">Our concentrationâs failing. Can you hear me? <br/></span><span class="s9">This distraction is prevailing. We try to claw out of the darkness.</span></p> 501<p><span class="s9">Where is the hope? Where is the light? <br/></span><span class="s9">How can we end this suffering?<br/></span><span style="font-family: -apple-system, BlinkMacSystemFont, 'San Francisco', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif; font-size: 0.875rem;">Why is love scarcer than hate?<br/></span><span class="s9">Can we start again? Or is it too late? </span><span> </span></p> 502<p><span class="s9">See the sunrise. Feel the moon glow. <br/></span><span class="s9">Find a shooting star, as it streaks across the sky. <br/></span><span class="s9">Follow the fireflies and your daydreams too.<br/></span><span class="s9">For the light you feel is still inside of you.</span><span> </span></p> 503<p><span class="s9">Pay attention. Listen. <br/></span><span class="s9">Connect with each other,<br/></span><span class="s9">Feel your heart begin to glow.<br/></span><span class="s9">Let your passion light a fire in your soul.<br/></span><span class="s9">Be a beacon of hope for a world overdue.<br/></span><span class="s9">Make a difference and share the light in you.</span><span> </span></p> 504<p><span class="s9">Make a difference for each other.<br/></span><span class="s9">Make a difference and share the light in you!</span></p> 505<p><span> </span><span class="s5">â </span><span class="s5">Sh</span><span class="s5">e</span><span class="s5">rry Blevins</span></p> 506<p style="font-weight: 400; text-align: center;"><strong> </strong>           <br/><br/></p> 507</div> 508</div>`}];hp.map(e=>e.slug);const CL=["National Masterwork Chorus","National Concert Chorus","National Symphonic Chorus","National Youth Chorus","National Treble Chorus","National Band & Orchestra Fest","National Honor Band","National Honor Orchestra","Ensemble Feature"],EL=["National Masterwork Chorus","National Concert Chorus","National Symphonic Chorus","National Youth Chorus","National Treble Chorus"],jL=["National Band & Orchestra Fest","National Honor Band","National Honor Orchestra"],E0=e=>!!e.ticketUrl&&e.ticketUrl!=="#",pp=[{slug:"spring-masterworks-festival",title:"Spring Masterworks Festival",date:"2027-03-15",time:"7:30 PM",venue:"Carnegie Hall, New York, NY",conductor:"Maestro David Chen",program:"Brahms · Whitacre · World Premiere",type:"Masterwork",performanceType:"National Masterwork Chorus",ensembles:["Choir","Orchestra"],premiere:!0,img:fh,alt:"Spring Masterworks Festival on Carnegie Hall stage",subtitle:"A celebration of timeless symphonic works and a bold new world premiere on the legendary Carnegie Hall stage.",about:"Open the season with an evening of monumental works, from the lush romanticism of Brahms to the luminous choral textures of Eric Whitacre, capped by a world premiere commissioned by National Concerts. The program brings together a 200-voice combined chorus and full symphony orchestra in one of the most acoustically revered halls in the world.",highlights:["Brahms â Symphony No. 4 in E minor, Op. 98","Whitacre â Cloudbur
508st (combined chorus)","World Premiere â newly commissioned work","Pre-concert artist talk at 6:30 PM"],performers:[{name:"Maestro David Chen",role:"Conductor"},{name:"Dr. Amara Osei",role:"Composer-in-Residence"},{name:"National Masterwork Chorus",role:"200-voice combined chorus"},{name:"National Concerts Symphony Orchestra",role:"Full symphony orchestra"}],programWorks:[{composer:"Johannes Brahms",work:"Symphony No. 4 in E minor, Op. 98"},{composer:"Eric Whitacre",work:"Cloudburst"},{composer:"Dr. Amara Osei",work:"World Premiere â newly commissioned work"}],gallery:[fh,ui,Xl,hh],priceFrom:"$45",ticketUrl:"#"},{slug:"summer-choral-intensive",title:"Summer Choral Intensive",date:"2027-06-08",time:"8:00 PM",venue:"Meyerson Symphony Center, Dallas, TX",conductor:"Jonathan Webb",program:"Contemporary Choral Masterworks",type:"Octavo",performanceType:"National Concert Chorus",ensembles:["Choir"],img:mh,alt:"Summer Choral Intensive at the Meyerson Symphony Center",subtitle:"A week-long immersive choral experience culminating in a featured performance at the Meyerson Symphony Center.",about:"A flagship summer convening of singers from across the country, the Summer Choral Intensive culminates in a performance of contemporary octavo repertoire at Dallas's Meyerson Symphony Center. Audiences hear newly minted choral voices alongside established works that define the modern American choral sound.",highlights:["Featured octavo program","Combined festival chorus of 250 voices","Spotlight on emerging American composers","Open dress rehearsal earlier in the day"],performers:[{name:"Jonathan Webb",role:"Conductor"},{name:"National Concert Chorus",role:"250-voice festival chorus"}],programWorks:[{composer:"Eric Whitacre",work:"Sleep"},{composer:"Ola Gjeilo",work:"Sunrise Mass (selections)"},{composer:"Caroline Shaw",work:"and the swallow"}],gallery:[mh,Xl,wa,ui],priceFrom:"$38",ticketUrl:"#"},{slug:"autumn-symphony-series",title:"Autumn Symphony Series",date:"2027-09-20",time:"7:30 PM",venue:"Meyerson Symphony Center, Dallas, TX",conductor:"Elena Rodriguez",program:"Beethoven · Copland · Classic Reimagined",type:"Masterwork",performanceType:"National Honor Orchestra",ensembles:["Orchestra"],img:ph,alt:"Autumn Symphony Series at the Meyerson Symphony Center",subtitle:"Beethoven and Copland reimagined for a new generation, performed at the Meyerson Symphony Center.",about:"The Autumn Symphony Series arrives in Dallas with a program that pairs the heroic energy of Beethoven with the open-air Americana of Copland, alongside a bold new orchestration that reframes a beloved classic. The Meyerson Symphony Center's celebrated acoustics provide the perfect setting for an evening of orchestral grandeur.",highlights:["Beethoven â Symphony No. 7 in A major","Copland â Appalachian Spring Suite","New orchestration â Classic Reimagined","Post-concert reception with the conductor"],performers:[{name:"Elena Rodriguez",role:"Conductor"},{name:"Marcus Rivera",role:"Composer-in-Residence"},{name:"National Honor Orchestra",role:"Full symphony orchestra"}],programWorks:[{composer:"Ludwig van Beethoven",work:"Symphony No. 7 in A major, Op. 92"},{composer:"Aaron Copland",work:"Appalachian Spring Suite"},{composer:"Marcus Rivera",work:"Classic Reimagined â new orchestration"}],gallery:[ph,hh,ui,wa],priceFrom:"$52",ticketUrl:"#"},{slug:"winter-holiday-gala",title:"Winter Holiday Gala",date:"2027-12-12",time:"7:00 PM",venue:"Carnegie Hall, New York, NY",conductor:"Sarah Thompson",program:"Handel's Messiah · Carols · New Works",type:"Octavo",performanceType:"National Symphonic Chorus",ensembles:["Choir","Orchestra"],img:gh,alt:"Winter Holiday Gala at Carnegie Hall",subtitle:"A festive evening of Handel's Messiah, beloved carols, and glowing new works at Carnegie Hall.",about:"Close out the year in the heart of New York with a holiday tradition reimagined. Selections from Handel's Messiah anchor an evening that weaves together cherished carols and freshly commissioned holiday works, performed by combined chorus and orchestra on the Carnegie Hall stage.",highlights:["Highlights from Handel's Messiah","Audience sing-along carols","Two new holiday commissions","Festive lobby reception starting at 6:00 PM"],performers:[{name:"Sarah Thompson",role:"Conductor"},{name:"National Symphonic Chorus",role:"Combined chorus & orchestra"}],programWorks:[{composer:"George Frideric Handel",work:"Messiah (selections)"},{composer:"Traditional",work:"Holiday Carols â audience sing-along"},{composer:"National Concerts Commissions",work:"Two new holiday works"}],gallery:[gh,wa,Xl,ui],priceFrom:"$48",ticketUrl:"#"}],j0=()=>[...pp].sort((e,t)=>
508e.date.localeCompare(t.date)),ki=e=>new Date(e+"T00:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}),sw=e=>new Date(e+"T00:00:00").toLocaleDateString("en-US",{month:"long"}),TL=e=>{const t=new Date(e+"T00:00:00");return{month:t.toLocaleDateString("en-US",{month:"short"}),day:String(t.getDate()).padStart(2,"0"),year:String(t.getFullYear())}},yu=e=>`/upcoming-performances/${e.slug}`,xf=e=>`/box-office/${e.slug}`,FE=pr;function ll(){return Qc({queryKey:["public","site_settings"],queryFn:async()=>{const{data:e,error:t}=await FE.from("site_settings").select("key, value");if(t)throw t;const n={};for(const r of e??[])n[r.key]=typeof r.value=="string"?r.value:r.value==null?"":String(r.value);return n},staleTime:5*60*1e3})}function en(e,t={}){const{columns:n="*",orderBy:r="sort_order",ascending:s=!0,published:i=!0,select:a}=t;return Qc({queryKey:["public",e,{columns:n,orderBy:r,ascending:s,published:i}],queryFn:async()=>{const l=FE.from(e).select(n),c=i?l.eq("status","published"):l,{data:d,error:u}=await c.order(r,{ascending:s});if(u)throw u;return d??[]},select:a,staleTime:5*60*1e3})}function Mi(e,t){return e.isError?t:e.data??[]}function AL(e){return{quote:e.quote,name:e.name??"",role:e.role??"",category:e.category??""}}function PE(){return en("testimonials",{select:e=>e.map(AL)})}function NL(e){return{q:e.question,a:e.answer??"",category:e.category==="resource"?"resource":"faq",logoUrl:e.logo_url??void 0,linkLabel:e.link_label??void 0,linkUrl:e.link_url??void 0}}function RE(){return en("faqs",{select:e=>e.map(NL)})}function FL(e){return{title:e.title,location:e.location??"",type:e.employment_type??"",reportsTo:e.reports_to??"",overviewHtml:e.overview??"",responsibilitiesHtml:e.responsibilities??"",requirementsHtml:e.requirements??"",compensation:e.compensation??"",applyEmail:e.apply_email??""}}function PL(){return en("job_openings",{select:e=>e.map(FL)})}function RL(e){return{name:e.name,role:e.role??"",bio:e.bio??"",img:Tt(e.photo_url)}}function OL(){return en("team_members",{select:e=>e.map(RL)})}function ML(e){return{name:e.name,affiliation:e.affiliation??"",bio:e.bio??"",img:Tt(e.photo_url)}}function IL(){return en("advisory_board_members",{select:e=>e.map(ML)})}function LL(e){return{name:e.name??"",logo:Tt(e.logo_url),url:e.url??void 0}}function DL(){return en("affiliations",{select:e=>e.map(LL)})}function zL(e){return{eyebrow:e.eyebrow??"",title:e.title??"",desc:e.description??"",img:Tt(e.image_url)??"",imgFit:e.image_fit==="contain"||e.image_fit==="cover"?e.image_fit:void 0,imgBg:e.image_bg??void 0,to:e.link_to??"#",cta:e.cta_label??""}}function OE(){return en("explore_modules",{select:e=>e.map(zL)})}function BL(e){return{slug:e.slug,title:e.title,composer:e.composer_text??"",voicing:e.voicing??"SATB",difficulty:e.difficulty??"Moderate",duration:e.duration??"",img:Tt(e.cover_image_url)??"",description:e.description??"",purchaseUrl:e.purchase_url??""}}function T0(){return en("choral_works",{select:e=>e.map(BL)})}function WL(e){return{name:e.name,price_performer:e.price_performer??null,price_non_performer:e.price_non_performer??null,price_unit:e.price_unit??null,description:e.description??null,features:Array.isArray(e.features)?e.features:[],cta_label:e.cta_label??null,cta_href:e.cta_href??null,highlighted:!!e.highlighted}}function HL(){return en("pricing_tiers",{select:e=>e.map(WL)})}const $L="*, performance_conductors(sort_order, conductor:conductors(name))";function UL(e){return Array.isArray(e)?[...e].sort((t,n)=>(t.sort_order??0)-(n.sort_order??0)).map(t=>{var n,r;return(r=(n=t.conductor)==null?void 0:n.name)==null?void 0:r.trim()}).filter(Boolean).join(" · "):""}function qL(e){var t;return{slug:e.slug,title:e.title,date:e.event_date??"",time:e.event_time??"",venue:e.venue_text??"",conductor:UL(e.performance_conductors),program:e.program??"",type:e.type??"Masterwork",performanceType:e.performance_type??"National Masterwork Chorus",ensembles:Array.isArray(e.ensembles)?e.ensembles:[],premiere:!!e.premiere,img:Tt(e.hero_image_url)??"",alt:e.hero_image_alt??"",subtitle:e.subtitle??void 0,about:e.about??void 0,boxOfficeAbout:((t=e.box_office_about)==null?void 0:t.trim())||void 0,highlights:Array.isArray(e.highlights)?e.highlights:[],performers:Array.isArray(e.performers)?e.performers:[],programWorks:Array.isArray(e.program_works)?e.program_works:[],gallery:Array.isArray(e.gallery)?e.gallery.map(n=>
508Tt(n)??n).filter(Boolean):[],videoUrl:e.video_url??void 0,priceFrom:e.price_from??void 0,ticketUrl:e.ticket_url??void 0}}function jo(){return en("performances",{columns:$L,orderBy:"event_date",ascending:!0,select:e=>e.map(qL)})}function VL(e){return{slug:e.slug,title:e.title,author:e.author??"",excerpt:e.excerpt??"",sourceUrl:e.source_url??"",cardImage:Tt(e.card_image_url)??"",media:Array.isArray(e.media)?e.media:[],contentHtml:e.content_html??""}}function fp(){return en("commissions",{select:e=>e.map(VL)})}function GL(){return en("inquiry_intents",{select:e=>e.map(t=>({intent_key:t.intent_key,title:t.title??"",subtitle:t.subtitle??""}))})}const ME="*, performance:performances(title, slug, event_date, premiere)",KL="*, performance:performances!conductors_performance_id_fkey(title, slug, event_date, premiere)";function JL(e){return new Date(`${e}T00:00:00`).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function A0(e,t){const n=e.performance;return{role:e.title||t,name:e.name,performance:n?n.premiere?`World Premiere · ${n.title}`:n.title:"",date:n!=null&&n.event_date?JL(n.event_date):e.appearance_2027??"",bio:e.bio??"",img:Tt(e.photo_url)??"",to:n?`/upcoming-performances/${n.slug}`:e.link_to||"/browse-by-date-venue"}}function YL(){return en("conductors",{columns:KL,published:!1,select:e=>e.filter(t=>t.featured).map(t=>A0(t,"Guest Conductor"))})}function QL(){return en("composers",{columns:ME,published:!1,select:e=>e.filter(t=>t.in_residence).map(t=>A0(t,"Composer-in-Residence"))})}function ZL(e){const t=A0(e,"Guest Clinician");return{name:t.name,bio:t.bio,img:t.img,to:t.to}}function XL(){return en("clinicians",{columns:ME,select:e=>e.map(ZL)})}function e8(e){const t=e.event_date?new Date(`${e.event_date}T00:00:00`):null;return{date:t?t.toLocaleDateString("en-US",{month:"short",day:"2-digit",year:"numeric"}).toUpperCase():"",year:t?t.getFullYear():0,title:e.title,venue:e.venue??"",img:Tt(e.image_url)??""}}function t8(){return en("past_performances",{select:e=>e.map(e8)})}function n8(e){const t=Array.isArray(e.performances)?e.performances.map(n=>({title:String((n==null?void 0:n.title)??""),href:String((n==null?void 0:n.href)??"")})).filter(n=>n.title):[];return{role:e.role??"",name:e.name,img:Tt(e.photo_url)??"",performances:t}}function r8(){return en("past_collaborators",{select:e=>e.map(n8)})}const wf=({className:e=""})=>{const{data:t}=ll(),n=Tt(t==null?void 0:t.brand_logo)??vC;return o.jsx("a",{href:"/",className:`inline-block ${e}`,"aria-label":"National Concerts",children:o.jsx("img",{src:n,alt:"National Concerts",className:"h-12 w-auto object-contain",style:{maxWidth:199}})})},s8={"box-office":{label:"Box Office",blurb:"The Box Office (Experience a Performance) page hero.",sections:[{label:"Hero",blocks:[{key:"boxoffice.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Box Office"},{key:"boxoffice.hero.headline",label:"Headline",type:"text",fallback:"Experience a Performance"},{key:"boxoffice.hero.body",label:"Body",type:"textarea",fallback:"Discover upcoming National Concerts performances and reserve your seats for an unforgettable concert experience."},{key:"boxoffice.hero.background",label:"Header photo",type:"image",help:"Leave blank to keep the built-in photo."}]},{label:"When no tickets are on sale",blocks:[{key:"boxoffice.empty.eyebrow",label:"Eyebrow",type:"text",help:"Shown in place of the listings whenever no performance has a ticket link.",fallback:"2027 Season"},{key:"boxoffice.empty.headline",label:"Headline",type:"text",fallback:"Tickets on sale soon"},{key:"boxoffice.empty.body",label:"Body",type:"textarea",fallback:"Our 2027 season at Carnegie Hall and the Meyerson Symphony Center is set. Ticket sales open closer to each performance date. In the meantime, browse the full season to see who is performing, where, and when."},{key:"boxoffice.empty.cta",label:"Button label",type:"text",help:"Links to Browse Our Season.",fallback:"Browse Our Season"}]}]},home:{label:"Home",blurb:"Headings, paragraphs, and button labels across the home page.",sections:[{label:"Promo bar",blocks:[{key:"home.promo_bar.show",label:"Show promo bar",type:"toggle",help:"The orange bar above the menu on every page. Turn it off when there is nothing to promote; the text below is kept for next time.",fallback:"on"},{key:"home.promo_bar.label",label:"Badge label",type:"text",fallback:"Upcoming Event"},{key:"home.promo_bar.text",label:"Promo text",type:"text",fallback:"Carnegie Hall Performance â Tickets Available"},{key:"home.promo_bar.link",label:"Links to",type:"text",help:"Where the whole bar goes. A site path like /upcoming-performances stays on the site; a full https:// address opens in a new tab.",fallback:"/upcoming-performances"}]},{label:"Hero",blocks:[{key:"home.hero.cta_primary",label:"Primary button",type:"text",fallback:"Perform With Us"},{key:"home.hero.cta_secondary",label:"Secondary button",type:"text",fallback:"The Experience"},{key:"home.hero.tagline",label:"Tagline",type:"text",fallback:"Artistic Collaboration at a New Level"},{key:"home.hero.scroll_label",label:"Scroll hint",type:"text",help:"Leave blank to hide the scroll hint.",fallback:""}]},{label:"Mission statement",blocks:[{key:"home.mission.headline",label:"Headline",type:"text",fallback:"Transforming Performance. Inspiring People."},{key:"home.mission.body",label:"Body",type:"textarea",fallback:"National Concerts creates extraordinary performance experiences that inspire artistic growth, deepen human connection, and empower performers to discover what's possible. Through inspired collaboration, innovative production, and performances on the world's most respected stages, we create transformative experiences that empower performers, enrich educators, and inspire audiences."}]},{label:"Opportunities",blocks:[{key:"home.opportunities.title_line1",label:"Title (line 1)",type:"text",fallback:"View Performance"},{key:"home.opportunities.title_line2",label:"Title (line 2, orange)",type:"text",fallback:"Opportunities By"},{key:"home.opportunities.description",label:"Description",type:"textarea",fallback:"Where artistry and collaboration create extraordinary performances."},{key:"home.opportunities.tile_cta",label:"Tile button label",type:"text",fallback:"View More"},{key:"home.opportunities.tiles",label:"Tiles",type:"list",help:"The three category tiles. Title and image are editable; the link stays fixed. Leave an image blank to keep the built-in one.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"image",label:"Image",type:"image"}],fallback:[{title:"Choirs",image:""},{title:"Bands/Orchestras",image:""},{title:"Guest Collaborators",image:""}]}]},{label:"National Concerts Experience",blocks:[{key:"home.experience.accordion_heading",label:"Heading",type:"text",fallback:"The National Concerts Experience"},{key:"home.experience.accordion_cta",label:"Button label",type:"text",fallback:"Request Information"},{key:"home.experience.items",label:"Accordion items",type:"list",itemFields:[{name:"title",label:"Title",type:"text"},{name:"body",label:"Body",type:"textarea"}],fallback:[{title:"Artistic Collaboration",body:"Collaborate with world-class artists. National Concerts brings together ensembles, conductors, composers, choreographers, visual designers, and other artistic collaborators to create unforgettable performances that inspire performers and captivate audiences."},{title:"Innovative Programming",body:"Experience innovative programming. Every program is thoughtfully designed to honor tradition while embracing new artistic perspectives. By pairing beloved masterworks with contemporary voices, multimedia storytelling, and fresh programming concepts, we create performances that feel both timeless and new."},{title:"World Premieres",body:"Premiere new music. New music shapes the future of choral and instrumental performance. Through commissions and world premieres by today's leading composers, National Concerts gives performers the opportunity to bring new works to life while creating unforgettable first experiences for audiences."},{title:"Advisory Council",body:"Be inspired by today's leading artistic mentors. Guided by respected educators, conductors, composers, and other arts leaders, our Advisory Council helps shape the future of National Concerts. Their collective insight ensures every experience remains innovative, relevant, and artistically meaningful."},{title:"Renowned Conductors & Clinicians",body:"Be guided by leaders in the performing arts. Work alongside acclaimed conductors and clinicians whose artistry and experience inspire excellence at every rehearsal and performance. Their mentorship challenges performers to grow in confidence, deepen their musical understanding, and discover new levels of artistry."}]},{key:"home.experience.highlights_heading",label:"Highlights heading",type:"text",fallback:"Experience Highlights"},{key:"home.experience.videos",label:"Highlight videos",type:"list",help:"The Experience Highlights carousel, in order. Paste a YouTube link (watch, youtu.be, or Shorts) or a Vimeo link. YouTube thumbnails load automatically; Vimeo videos use a built-in image. The title is read aloud by screen readers. Links that are not YouTube or Vimeo are skipped.",itemFields:[{name:"url",label:"Video link (YouTube or Vimeo)",type:"text"},{name:"title",label:"Title",type:"text"}],fallback:[{url:"https://www.youtube.com/watch?v=B-GXFyd-Orc",title:"National Concerts â Performance Film"},{url:"https://www.youtube.com/watch?v=vqgh-7xtgPA",title:"National Concerts â Highlight 1"},{url:"https://www.youtube.com/watch?v=-6KWp7FG4zA",title:"National Concerts â Highlight 2"},{url:"https://www.youtube.com/watch?v=2Pex8L6wGJA",title:"National Concerts â Highlight 3"}
508,{url:"https://www.youtube.com/watch?v=aM6OyM_tz4A",title:"National Concerts â Highlight 4"},{url:"https://www.youtube.com/watch?v=Jg3etTPavCs",title:"National Concerts â Highlight 5"},{url:"https://vimeo.com/1106547298",title:"National Concerts â Feature"}]},{key:"home.experience.carousel",label:"Accordion image carousel",type:"list",help:"The rotating photos beside the accordion. Leave an image blank to keep the built-in one.",itemFields:[{name:"image",label:"Image",type:"image"}],fallback:[{image:""},{image:""},{image:""},{image:""}]}]},{label:"We Handle Every Detail",blocks:[{key:"home.services.heading_line1",label:"Heading (line 1)",type:"text",fallback:"Focus on the Music."},{key:"home.services.heading_line2",label:"Heading (line 2, orange)",type:"text",fallback:"We'll Handle the Rest."},{key:"home.services.description",label:"Description",type:"textarea",fallback:"From travel and accommodations to rehearsals and performance logistics, National Concerts manages every detail so you can focus on your ensemble and the music that brings you together."},{key:"home.services.items",label:"Service cards",type:"list",help:"The icon on each card stays fixed and follows this order.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"body",label:"Body",type:"textarea"}],fallback:[{title:"Seamless Travel",body:"We coordinate group airfare and airport transfers via private motor coach transportation, ensuring your ensemble travels comfortably, arrives on schedule, and stays focused on the experience ahead."},{title:"Comfortable Accommodations",body:"Your ensemble stays in carefully selected hotels that offer comfort, convenience, and close proximity to rehearsal and performance venues, with logistics managed for you."},{title:"Fundraising Made Simple",body:"We believe every ensemble should have the opportunity to participate. Through our partnership with GoPledge, you'll receive a customized digital fundraising platform where 100% of every donation goes directly to your program. For eligible schools, our Title I Scholarship Program helps reduce financial barriers, making extraordinary performance experiences more accessible."},{title:"Shared Meals",body:"Enjoy thoughtfully planned group meals that fit seamlessly into your rehearsal and performance schedule, giving performers time to relax, recharge, and connect between events."},{title:"Memorable Destinations",body:"Every National Concerts experience includes time to explore iconic landmarks and unforgettable attractions, creating lasting memories both on and off the stage."},{title:"Expert Planning",body:"From your first planning meeting to your final farewell, every detail is thoughtfully coordinated by the National Concerts team, allowing directors to focus on their ensembles while we handle the logistics."}]}]},{label:"Changing Lives panel",blocks:[{key:"home.changing_lives.background",label:"Background image",type:"image"},{key:"home.changing_lives.headline",label:"Headline",type:"text",fallback:"Transforming Lives Through Musical Excellence"},{key:"home.changing_lives.body",label:"Body",type:"textarea",fallback:"National Concerts creates artistically rigorous and emotionally resonant concert experiences that unite performers, educators, and audiences on the world's most respected stages. Through collaboration and innovative programming, we inspire artistic growth, meaningful connection, and lasting impactâon and beyond the stage."},{key:"home.changing_lives.cta_label",label:"Button label",type:"text",fallback:"Learn About Us"}]},{label:"About National Concerts strip",blocks:[{key:"about_strip.title",label:"Heading",type:"text",help:"This strip also appears on the Past Performances page.",fallback:"About National Concerts"},{key:"about_strip.body",label:"Body",type:"textarea",fallback:"For over two decades, National Concerts has brought together extraordinary ensembles, conductors, and composers on the world's most celebrated stages. We craft performance experiences that elevate artistry, foster collaboration, and create memories that last a lifetime â from Carnegie Hall to Benaroya Hall and beyond."},{key:"about_strip.images",label:"Image carousel",type:"list",help:"Leave an image blank to keep the built-in one.",itemFields:[{name:"image",label:"Image",type:"image"}],fallback:[{image:""},{image:""},{image:""},{image:""},{image:""}]}]},{label:"Newsletter signup",blocks:[{key:"newsletter.headline",label:"Heading",type:"text",help:"The newsletter strip appears on several pages.",fallback:"Hear from us when it counts"},{key:"newsletter.body",label:"Body",type:"textarea",fallback:"Sign up for occasional updates on the moments, opportunities, and performances we think you'll value."},{key:"newsletter.email_placeholder",label:"Email placeholder",type:"text",fallback:"Email address"},{key:"newsletter.submit_label",label:"Button label",type:"text",fallback:"Subscribe"}
508,{key:"newsletter.background",label:"Background image",type:"image"},{key:"newsletter.wordmark",label:"Wordmark",type:"image"}]}]},about:{label:"About Us",blurb:"The mission, story, and values copy across the About page.",sections:[{label:"Hero",blocks:[{key:"about.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"About Us"},{key:"about.hero.headline_line1",label:"Headline (line 1)",type:"text",fallback:"The Art of Performance,"},{key:"about.hero.headline_line2",label:"Headline (line 2)",type:"text",fallback:"Reimagined"},{key:"about.hero.body",label:"Body",type:"textarea",fallback:"National Concerts brings together exceptional music, inspiring artistic collaboration, and world-class performance opportunities to create experiences that leave a lasting impact on performers, educators, and audiences alike."},{key:"about.hero.background",label:"Background image",type:"image"}]},{label:"Why We Perform",blocks:[{key:"about.beginning.eyebrow",label:"Eyebrow",type:"text",fallback:"Our Mission"},{key:"about.beginning.headline",label:"Headline",type:"text",fallback:"Why We Perform"},{key:"about.beginning.body",label:"Body",type:"textarea",fallback:"We believe extraordinary musical experiences have the power to transform performers. Through meaningful collaboration among ensembles, conductors, composers, educators, and audiences, National Concerts inspires artistic growth, fosters lasting connections, and creates performances that leave an impact long after the final applause."},{key:"about.beginning.image",label:"Photo",type:"image"}]},{label:"Mission quote & values",blocks:[{key:"about.mission.quote",label:"Pull quote",type:"textarea",help:"Shown in large quotation marks â enter the text only.",fallback:"To create performance experiences that transform musicians, inspire audiences, and strengthen the bonds between art and community."},{key:"about.mission.quote_attribution",label:"Attribution",type:"text",fallback:"â Jeffery Redding, Guest Conductor"},{key:"about.mission.values",label:"Core values",type:"list",help:"The icon on each value card stays fixed and follows this order.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"desc",label:"Description",type:"textarea"}],fallback:[{title:"Artistic Excellence",desc:"Every experience is thoughtfully designed to inspire performers and create meaningful musical moments."},{title:"Meaningful Collaboration",desc:"Great performances begin with great partnerships. We bring artists together to create something extraordinary."},{title:"Transformative Experiences",desc:"Music has the power to change people. We create experiences that performers carry with them for a lifetime."},{title:"Servant Leadership",desc:"Our team is committed to making every experience seamless, allowing directors and performers to focus entirely on the music."},{title:"Creative Freedom",desc:"We empower artists to dream boldly, collaborate openly, and bring new ideas to life."},{title:"Innovation with Purpose",desc:"Every commission, projection, premiere, and publication exists for one reason: to deepen the connection between performers and audiences."}]}]},{label:"Built Around the Ensemble",blocks:[{key:"about.idea.eyebrow",label:"Eyebrow",type:"text",fallback:"The Idea"},{key:"about.idea.headline",label:"Headline",type:"text",fallback:"Built Around the Ensemble"},{key:"about.idea.body",label:"Body",type:"textarea",fallback:"We believe extraordinary performances are created through meaningful collaboration, artistic excellence, and unforgettable experiences. Every National Concerts program is thoughtfully designed to challenge performers, support directors, and create moments that leave a lasting impact on everyone involved."},{key:"about.idea.image",label:"Photo",type:"image"}]},{label:"More Than a Concert Company",blocks:[{key:"about.different.eyebrow",label:"Eyebrow",type:"text",fallback:"What Sets Us Apart"},{key:"about.different.headline_line1",label:"Headline (line 1)",type:"text",fallback:"The National Concerts"},{key:"about.different.headline_line2",label:"Headline (line 2)",type:"text",fallback:"Difference"},{key:"about.different.body_p1",label:"Paragraph 1",type:"textarea",fallback:"National Concerts creates more than exceptional performances. We create experiences that inspire artistic growth, meaningful collaboration, and lasting impact for performers, educators, composers, and audiences alike."},{key:"about.different.body_p2",label:"Paragraph 2",type:"textarea",fallback:"Every program is thoughtfully shaped by renowned conductors, educators, composers, and our Artistic Advisory Council, ensuring each experience reflects the highest standards of artistry while embracing innovation, creativity, and new music."},{key:"about.different.image",label:"Photo",type:"image"}]}]},"perform-with-us":{label:"Perform With Us",blurb:"Hero and Explore Opportunities copy.",sections:[{label:"Hero",blocks:[{key:"perform.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"A Once-In-A-Lifetime Experience"},{key:"perform.hero.headline",label:"Headline",type:"text",fallback:"Perform With Us"},{key:"perform.hero.body",label:"Body",type:"textarea",fallback:"National Concerts offers world-class performance opportunities for choral, band, and orchestral ensembles. Explore our seasons, browse programs, and take the first step toward an unforgettable experience."},{key:"perform.hero.cta",label:"Button label",type:"text",fallback:"Get Started"}
508,{key:"perform.hero.background",label:"Background image",type:"image"}]},{label:"Explore Opportunities",blocks:[{key:"perform.explore.heading",label:"Heading",type:"text",fallback:"Explore Opportunities"},{key:"perform.explore.card_cta",label:"Card button label",type:"text",fallback:"View More"},{key:"perform.explore.cards",label:"Opportunity cards",type:"list",help:"The icon and link on each card stay fixed and follow this order.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"desc",label:"Description",type:"textarea"}],fallback:[{title:"2027 Season Overview",desc:"Discover the upcoming season's theme, featured conductors, composers-in-residence, and key dates."},{title:"Browse by Conductor / Composer",desc:"Find your ideal collaboration partner from our roster of world-class guest conductors and composers."},{title:"Browse by Date / Venue",desc:"Find performance opportunities that fit your schedule. Filter by date, venue, ensemble type, and more."},{title:"Solo Stage Time",desc:"Dedicated performance slots for ensembles seeking featured stage time and heightened visibility."},{title:"Packages & Pricing",desc:"Transparent per-person pricing, itinerary overviews, and flexible payment options for every ensemble."}]}]}]},contact:{label:"Contact Us",blurb:"Hero, inquiry form, and Direct Line copy. (Email and ph
508one live in Site Settings.)",sections:[{label:"Hero",blocks:[{key:"contact.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Get In Touch"},{key:"contact.hero.headline",label:"Headline",type:"text",fallback:"Let's Start the Conversation"},{key:"contact.hero.body",label:"Body",type:"textarea",fallback:"Whether you're planning your next performance, looking for the right opportunity for your ensemble, interested in attending a concert, or exploring a partnership, our team is here to help."}]},{label:"Inquiry form",blocks:[{key:"contact.form.eyebrow",label:"Eyebrow",type:"text",fallback:"Inquiry Form"},{key:"contact.form.heading",label:"Heading",type:"text",fallback:"Send Us a Message"},{key:"contact.form.label_name",label:"Name label",type:"text",fallback:"Your Name"},{key:"contact.form.placeholder_name",label:"Name placeholder",type:"text",fallback:"Full Name"},{key:"contact.form.label_email",label:"Email label",type:"text",fallback:"Email Address"},{key:"contact.form.placeholder_email",label:"Email placeholder",type:"text",fallback:"[email protected]"},{key:"contact.form.label_message",label:"Message label",type:"text",fallback:"Your Message"},{key:"contact.form.placeholder_message",label:"Message placeholder",type:"text",fallback:"Tell us how we can help..."},{key:"contact.form.success_message",label:"Success message",type:"textarea",fallback:"Thanks for reaching out â your message is on its way to our team, and we'll get back to you shortly."},{key:"contact.form.submit",label:"Submit button",type:"text",fallback:"Send Message"}]},{label:"Direct Line",blocks:[{key:"contact.info.eyebrow",label:"Eyebrow",type:"text",fallback:"Direct Line"},{key:"contact.info.heading",label:"Heading",type:"text",fallback:"Talk to Our Team"},{key:"contact.info.body",label:"Body",type:"textarea",fallback:"Prefer to connect directly? Whether you're exploring performance opportunities, planning to attend a concert, or simply have a question, we're here to help."},{key:"contact.info.call_label",label:"Phone label",type:"text",fallback:"Call Us"}]}]},"choral-series":{label:"Choral Series",blurb:"Hero and About the Series copy. (The catalog and composers are managed in their own editors.)",sections:[{label:"Hero",blocks:[{key:"choral.hero.logo",label:"Series logo",type:"image"},{key:"choral.hero.headline",label:"Logo alt text",type:"text",help:"Describes the logo image for screen readers and search engines.",fallback:"National Concerts Choral Series"},{key:"choral.hero.body",label:"Body",type:"textarea",fallback:"Discover exceptional choral music from today's leading and emerging composers. Browse the collection, listen to recordings, and explore each work with interactive scores."},{key:"choral.hero.cta_label",label:"Button label",type:"text",fallback:"Browse the Catalog"},{key:"choral.hero.background",label:"Background image",type:"image"}]},{label:"About the Series",blocks:[{key:"choral.about.eyebrow",label:"Eyebrow",type:"text",fallback:"About the Series"},{key:"choral.about.heading_line1",label:"Heading (line 1)",type:"text",fallback:"Music That"},{key:"choral.about.heading_line2",label:"Heading (line 2)",type:"text",fallback:"Inspires"},{key:"choral.about.body1",label:"Paragraph 1",type:"textarea",fallback:"The National Concerts Choral Series celebrates exceptional new music by today's leading and emerging composers. Published in partnership with Hinshaw Music, each work is thoughtfully selected for its artistic excellence, expressive storytelling, and lasting impact on performers and audiences alike."},{key:"choral.about.body2",label:"Paragraph 2",type:"textarea",fallback:"From accessible works for developing choirs to sophisticated repertoire for advanced ensembles, the series offers inspiring music for every age, ability, and performance setting."},{key:"choral.about.image",label:"Photo",type:"image"}]},{label:"The Works",blocks:[{key:"choral.works.eyebrow",label:"Eyebrow",type:"text",fallback:"The Catalog"},{key:"choral.works.heading",label:"Heading",type:"text",fallback:"Explore the Series"},{key:"choral.works.body",label:"Intro",type:"textarea",fallback:"Every work in the National Concerts Choral Series, published by Hinshaw Music. Select any title to view the score, listen to a recording, and purchase parts."},{key:"choral.works.filter_label",label:"Voicing filter label",type:"text",help:"Shown before the voicing buttons. The buttons themselves list every voicing in the catalog.",fallback:"Filter by voicing"}]}]},"package-pricing":{label:"Package Pricing",blurb:"Hero, payment note, and package-options copy. (Pricing tiers are managed in the Pricing editor.)",sections:[{label:"Hero",blocks:[{key:"pricing.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Performance Packages & Pricing"},{key:"pricing.hero.headline",label:"Headline",type:"text",fallback:"Plan With Confidence"},{key:"pricing.hero.body",label:"Body",type:"textarea",fallback:"Transparent pricing, flexible package options, and personalized support make it easy to create an unforgettable National Concerts experience for your ensemble."},{key:"pricing.hero.photo",label:"Hero photo",type:"image"}]},{label:"Payment note",blocks:[{key:"pricing.payment.eyebrow",label:"Eyebrow",type:"text",fallback:""},{key:"pricing.payment.heading",label:"Heading",type:"text",fallback:"Why does pricing vary?"},{key:"pricing.payment.body",label:"Body",type:"textarea",fallback:"Each National Concerts experience is different. Pricing reflects the venue, artistic personnel, rehearsal and performance format, production requirements, and services included with that specific program."}]},{label:"What's included",blocks:[{key:"pricing.included.heading",label:"Heading",type:"text",fallback:"What's Included in Every Performance Package"},{key:"pricing.included.items",label:"Included items",type:"list",itemFields:[{name:"label",label:"Label",type:"text"}],fallback:[{label:"Prestigious venues and rehearsal access"},{label:"Guest conductors and clinicians"},{label:"Performance materials and program inclusion"},{label:"Professional production and event staffing"},{label:"Dedicated planning and on-site support"}]},{key:"pricing.included.note",label:"Footnote",type:"textarea",fallback:"Travel, hotel, meals, sightseeing, and other package options vary by program and may be added separately."}]},{label:"Making participation possible",blocks:[{key:"pricing.participation.heading",label:"Heading",type:"text",fallback:"Making Participation Possible"},{key:"pricing.participation.items",label:"Options",type:"list",help:"Leave the link blank to show the text without a Learn More link.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"desc",label:"Description",type:"textarea"},{name:"href",label:"Learn more link",type:"text"}],fallback:[{title:"GoPledge",desc:"A simple, interest-free payment plan that makes your experience more manageable.",href:""},{title:"Title I Scholarships",desc:"We're proud to offer need-based scholarships for qualifying Title I schools.",href:""},{title:"Flexible Payment Options",desc:"Multiple payment plans are available to help your ensemble participate with confidence.",href:""}]}]},{label:"Closing CTA",blocks:[{key:"pricing.cta.title",label:"Heading",type:"text",fallback:"Find the Right Experience for Your Ensemble"},{key:"pricing.cta.body",label:"Body",type:"textarea",fallback:"Our team is here to help you explore options, compare programs, and plan a performance experience your ensemble will never forget."},{key:"pricing.cta.cta_label",label:"Button label",type:"text",fallback:"Explore Options for Your Ensemble"}]},{label:"Package options",blocks:[{key:"pricing.options.heading",label:"Heading",type:"text",fallback:"Customize Your Experience"},{key:"pricing.options.cta_label",label:"Button label",type:"text",fallback:"Get Started"},{key:"pricing.options.items",label:"Option cards",type:"list",help:"Leave an image blank to keep the built-in one.",itemFields:[{name:"label",label:"Label",type:"text"},{name:"desc",label:"Description",type:"textarea"},{name:"image",label:"Image",type:"image"}],fallback:[{label:"Hotel",desc:"Three-, Four-, or Five-Night stay at a 4-star Midtown Manhattan hotel (Hilton, Marriott, Sheraton, or similar).",image:""},{label:"Airfare",desc:"Coordinated roundtrip group airfare to New York City, with flexible departure options tailored to your ensemble.",image:""},{label:"Sightseeing and Activities",desc:"Curated New York City experiences â from Broadway shows to guided cultural tours â planned around your concert schedule.",image:""},{label:"Meals",desc:"Group dining reservations at top Manhattan restaurants, with menu selections to suit your ensemble's schedule and preferences.",image:""},{label:"Ground Transportation",desc:"Private motor coach transportation between your hotel, rehearsals, and performance venues.",image:""},{label:"Additional Performance Opportunities",desc:"Extra performance settings that can be added alongside your main concert, subject to program and schedule.",image:""}]}]}]},"audio-video":{label:"Audio/Video",blurb:"The page header. The works listed below it come from Choral Works.",sections:[{label:"Hero",blocks:[{key:"audiovideo.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Choral Series"},{key:"audiovideo.hero.headline",label:"Headline",type:"text",fallback:"Audio/Video"},{key:"audiovideo.hero.body",label:"Body",type:"textarea",fallback:"Experience each w
508ork with synchronized audio playback and interactive score viewing. Follow along measure by measure as the music unfolds."},{key:"audiovideo.hero.background",label:"Header photo",type:"image",help:"Leave blank to keep the built-in photo."}]}]},"browse-our-season":{label:"Browse Our Season",blurb:"The page header. Every event card below it comes from Performances.",sections:[{label:"Hero",blocks:[{key:"browseseason.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Perform With Us"},{key:"browseseason.hero.headline",label:"Headline",type:"text",fallback:"Browse Our Season"},{key:"browseseason.hero.background",label:"Header photo",type:"image",help:"Leave blank to keep the built-in photo."}]},{label:"Filters",blocks:[{key:"browseseason.filters.label",label:"Filter row label",type:"text",help:"Short prompt shown before the filter dropdowns.",fallback:"Filter by"}]}]},"season-overview":{label:"Season Overview",blurb:"Hero, section headings, and the venue / choir / band & orchestra tiles. (The âLearn Moreâ links stay wired to the season filters.)",sections:[{label:"Hero",blocks:[{key:"season.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Perform With Us"},{key:"season.hero.headline",label:"Headline",type:"text",fallback:"Season Overview"},{key:"season.hero.body",label:"Body",type:"textarea",fallback:"Explore this season's extraordinary performance opportunities, from iconic venues to inspiring repertoire, thoughtfully designed to transform performers and captivate audiences."},{key:"season.hero.cta_label",label:"Button label",type:"text",fallback:"Get Started"},{key:"season.hero.background",label:"Background image",type:"image"}]},{label:"Venues",blocks:[{key:"season.venues.heading",label:"Section heading",type:"text",fallback:"Venues"},{key:"season.venues.items",label:"Venue tiles",type:"list",help:"Leave an image blank to keep the built-in one. More than three venues scroll sideways. Links to: where Learn More goes, e.g. /browse-by-date-venue?venue=Carnegie Hall, New York, NY (the venue exactly as the Browse Our Season Venue filter lists it). Leave it blank to keep a built-in venue's link; a new venue with no link opens Browse Our Season.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"descriptor",label:"Descriptor",type:"text"},{name:"image",label:"Image",type:"image"},{name:"link",label:"Links to (optional)",type:"text"}],fallback:[{title:"Carnegie Hall",descriptor:"New York, NY",image:""},{title:"Lincoln Center",descriptor:"New York, NY",image:""}
508,{title:"Meyerson Symphony Center",descriptor:"Dallas, TX",image:""}]}]},{label:"Opportunities for Choirs",blocks:[{key:"season.choirs.heading",label:"Section heading",type:"text",fallback:"Opportunities for Choirs"},{key:"season.choirs.items",label:"Choir tiles",type:"list",help:"Leave an image blank to keep the built-in one. Links to: where Learn More goes; leave it blank to keep a built-in tile's link. A new tile with no link opens Browse Our Season.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"descriptor",label:"Descriptor",type:"text"},{name:"image",label:"Image",type:"image"},{name:"link",label:"Links to (optional)",type:"text"}],fallback:[{title:"National Masterwork Chorus",descriptor:"SATB with professional orchestra",image:""},{title:"National Concert Chorus",descriptor:"SATB with obbligato",image:""},{title:"National Symphonic Chorus",descriptor:"SATB with chamber strings",image:""},{title:"National Youth Chorus",descriptor:"SA/SSA or SA(T)B",image:""},{title:"National Treble Chorus",descriptor:"SSA/SSAA",image:""}]}]},{label:"Opportunities for Bands & Orchestras",blocks:[{key:"season.bands.heading",label:"Section heading",type:"text",fallback:"Opportunities for Bands & Orchestras"},{key:"season.bands.items",label:"Band & orchestra tiles",type:"list",help:"Leave an image blank to keep the built-in one. Links to: where Learn More goes; leave it blank to keep a built-in tile's link. A new tile with no link opens Browse Our Season.",itemFields:[{name:"title",label:"Title",type:"text"},{name:"descriptor",label:"Descriptor",type:"textarea"},{name:"image",label:"Image",type:"image"},{name:"link",label:"Links to (optional)",type:"text"}],fallback:[{title:"National Band & Orchestra Fest",descriptor:"A performance enriched by expert clinician feedback.",image:""},{title:"National Honor Band",descriptor:"An immersive honor ensemble experience culminating in a Carnegie Hall performance.",image:""},{title:"National Honor Orchestra",descriptor:"An immersive honor ensemble experience culminating in a Carnegie Hall performance.",image:""},{title:"Ensemble Feature",descriptor:"Your ensemble. Your conductor. One unforgettable performance.",image:""}]}]}]},"the-experience":{label:"The Experience",blurb:"Hero, feature modules, stats, and the closing call-to-action.",sections:[{label:"Hero",blocks:[{key:"experience.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"The Experience"},{key:"experience.hero.headline_line1",label:"Headline (line 1)",type:"text",fallback:"Experience the"},{key:"experience.hero.headline_line2",label:"Headline (line 2)",type:"text",fallback:"Extraordinary"},{key:"experience.hero.body",label:"Body",type:"textarea",fallback:"Go behind the scenes and on stage to discover the performances, artistry, and unforgettable moments that define National Concerts."},{key:"experience.hero.play_label",label:"Play button label",type:"text",fallback:"Experience National Concerts"},{key:"experience.hero.background",label:"Background image",type:"image"}]},{label:"Feature modules",blocks:[{key:"experience.modules",label:"Modules",type:"list",help:"Each module's layout side and background stay fixed and follow this order. Leave an image blank to keep the built-in one. Add a video to a module to give it a play button that plays that video; modules without one play the promo film from Site Settings.",itemFields:[{name:"label",label:"Eyebrow",type:"text"},{name:"title",label:"Title",type:"text"},{name:"desc",label:"Description",type:"textarea"},{name:"pull",label:"Pull quote",type:"textarea"},{name:"caption",label:"Image caption",type:"text"},{name:"image",label:"Image",type:"image"},{name:"video",label:"Video",type:"video"}],fallback:[{label:"Renowned Conductors & Clinicians",title:"Learn From Renowned Conductors & Clinicians",desc:"Work alongside some of today's most respected conductors and clinicians as they rehearse, mentor, and inspire your ensemble. Their guidance builds confidence, refines musicianship, and challenges performers to reach new artistic heights.",pull:"âGreat conductors don't simply lead performances. They inspire transformation.â",caption:"Maestro in rehearsal, Benaroya Hall",image:""},{label:"Composers-in-Residence",title:"Collaborate With Living Composers",desc:"Experience music from the inside out. Our composers-in-residence work directly with performers, sharing the inspiration behind their music and refining interpretation, offering the rare opportunity to collaborate with the creator of the work itself.",pull:"âEvery note has a story. Hear it from the composer who wrote it.â",caption:"Composer-in-residence working with student performers",image:""},{label:"Artistic Projection",title:"Artistic Storytelling",desc:"Music is only the beginning. Thoughtful staging, immersive projections, lighting, and artistic design work together to create performances that move audiences emotionally and bring every program's story to life.",pull:"âMusic you hear. Stories you feel.â",caption:"Guest conductor curating the season program",image:""},{label:"Historic Venues & an Engaged Audience",title:"Perform on Legendary Stages",desc:"Experience the thrill of performing in the world's most celebrated concert halls, where remarkable acoustics, rich history, and engaged audiences elevate every performance into something unforgettable.",pull:"âSome stages don't just host performances. They become part of them.â",caption:"A sold-out evening at a landmark concert hall",image:""},{label:"Ensemble Services",title:"Focus on the Music. We'll Handle the Rest.",desc:"From airfare and hotels to transportation, meals, and every detail in between, our team coordinates the entire experience so directors can focus on rehearsing, performing, and inspiring their ensembles.",pull:"âWe handled the music. National Concerts handled everything else.â",caption:"",image:""},{label:"Post-Concert Celebration",title:"Celebrate Together",desc:"The performance may end, but the experience continues. Our post-concert celebrations bring performers, conductors, composers, and educators together for an unforgettable evening of great food, music, dancing, and shared memories.",pull:"âWhen the concert ended, the celebration was just beginning.â",caption:"Hard Rock Cafe post-concert reception",image:""}]}]},{label:"Stats",blocks:[{key:"experience.stats",label:"Stats",type:"list",help:"The number animates counting up, so keep a number in the value (e.g. 200+).",itemFields:[{name:"num",label:"Value",type:"text"},{name:"label",label:"Label",type:"text"}],fallback:[{num:"200+",label:"Performances"},{num:"50+",label:"Commissioned Works"},{num:"10K+",label:"Musicians Served"},{num:"30",label:"Years of Excellence"}]}]},{label:"Closing call-to-action",blocks:[{key:"experience.cta.eyebrow",label:"Eyebrow",type:"text",fallback:"Ready to Take the Stage?"},{key:"experience.cta.title",label:"Heading",type:"text",fallback:"Start your National Concerts journey"},{key:"experience.cta.cta_label",label:"Button label",type:"text",fallback:"Get Started"}]}]},commissions:{label:"Commissions",blurb:"Hero and call-to-action copy. (Commissioned works are managed in the Commissions editor.)",sections:[{label:"Hero",blocks:[{key:"commissions.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Commissions"},{key:"commissions.hero.headline_line1",label:"Headline (line 1)",type:"text",fallback:"Where New Music"},{key:"commissions.hero.headline_line2",label:"Headline (line 2)",type:"text",fallback:"Comes to Life"},{key:"commissions.hero.body",label:"Body",type:"textarea",fallback:"National Concerts partners with today's leading and emerging composers to commission, premiere, and champion new choral works that inspire performers and enrich the choral repertoire."}
508,{key:"commissions.hero.background",label:"Background image",type:"image"}]},{label:"Call to action",blocks:[{key:"commissions.cta.eyebrow",label:"Eyebrow",type:"text",fallback:"Interested in a Commission?"},{key:"commissions.cta.heading",label:"Heading",type:"text",fallback:"Create the Next Great Performance"},{key:"commissions.cta.body",label:"Body",type:"textarea",fallback:"From the first conversation to the world premiere, National Concerts guides every step of the commissioning process, connecting composers and ensembles through meaningful artistic collaboration."},{key:"commissions.cta.cta_label",label:"Button label",type:"text",fallback:"Get Started"},{key:"commissions.cta.image",label:"Photo",type:"image"}]}]},faqs:{label:"FAQ's & Resources",blurb:"The FAQ's & Resources page headings. (The questions, answers, and resources themselves are managed in the FAQs editor â set each entry's category to FAQ or Resource.)",sections:[{label:"Hero",blocks:[{key:"faqs.hero.headline",label:"Headline",type:"text",fallback:"FAQ's & Resources"}]},{label:"FAQs section",blocks:[{key:"faqs.questions.heading",label:"Heading",type:"text",fallback:"Frequently Asked Questions"},{key:"faqs.questions.intro",label:"Supporting copy",type:"textarea",fallback:"Planning a National Concerts experience should be exciting, not overwhelming. Here are answers to some of the questions we hear most often. If you don't find what you're looking for, our team is always happy to help."}]},{label:"Resources section",blocks:[{key:"faqs.resources.heading",label:"Heading",type:"text",fallback:"Resources"},{key:"faqs.resources.intro",label:"Supporting copy",type:"textarea",fallback:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation."}]},{label:"Closing CTA",blocks:[{key:"faqs.cta.title",label:"Heading",type:"text",fallback:"Let's Start the Conversation"},{key:"faqs.cta.body",label:"Body",type:"textarea",fallback:"Whether you're exploring performance opportunities, fundraising options, or commissioning a new work, we're here to help you find the experience that's right for your ensemble."},{key:"faqs.cta.cta_label",label:"Button label",type:"text",fallback:"Request Information"}]}]},team:{label:"Our Team",blurb:"The Team page hero. (Team members are managed in the Team editor.)",sections:[{label:"Hero",blocks:[{key:"team.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Staff & Team"},{key:"team.hero.headline_line1",label:"Headline (line 1)",type:"text",fallback:"The People Behind"},{key:"team.hero.headline_line2",label:"Headline (line 2)",type:"text",fallback:"The Music"},{key:"team.hero.body",label:"Body",type:"textarea",fallback:"Meet the dedicated professionals who work tirelessly to create extraordinary performance experiences for ensembles across the country."},{key:"team.hero.background",label:"Background image",type:"image"}]}]},"advisory-council":{label:"Advisory Council",blurb:"The Advisory Council page hero. (Council members are managed in the Advisory Council editor.)",sections:[{label:"Hero",blocks:[{key:"board.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Advisory Council"},{key:"board.hero.headline_line1",label:"Headline (line 1)",type:"text",fallback:"Guided by Artistic"},{key:"board.hero.headline_line2",label:"Headline (line 2)",type:"text",fallback:"Excellence"},{key:"board.hero.body",label:"Body",type:"textarea",fallback:"Our Artistic Advisory Council is composed of respected conductors, composers, educators, and artistic leaders whose collective experience helps shape the vision of National Concerts. Together, they guide programming, champion innovation, and ensure every experience reflects the highest standards of artistry and collaboration."},{key:"board.hero.background",label:"Background image",type:"image"}]},{label:"The Role of Our Advisory Council",blocks:[{key:"board.role.heading",label:"Heading",type:"text",fallback:"The Role of Our Advisory Council"},{key:"board.role.body",label:"Body",type:"textarea",fallback:"Working alongside the National Concerts team, our Artistic Advisory Council helps shape programming, inspire new artistic initiatives, and guide the continued evolution of our performance experiences. Their collective insight ensures every season reflects the highest standards of musical excellence, meaningful collaboration, and artistic innovation."}]}]}
508,testimonials:{label:"Testimonials",blurb:"The Testimonials page hero. (The quotes are managed in the Testimonials editor.)",sections:[{label:"Hero",blocks:[{key:"testimonials.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Testimonials"},{key:"testimonials.hero.headline_line1",label:"Headline (line 1)",type:"text",fallback:"What People Are"},{key:"testimonials.hero.headline_line2",label:"Headline (line 2)",type:"text",fallback:"Saying"},{key:"testimonials.hero.body",label:"Body",type:"textarea",fallback:"Hear from directors across universities, high schools, and community programs about their National Concerts experience."},{key:"testimonials.hero.background",label:"Background image",type:"image"}]}]},"past-collaborators":{label:"Past Collaborators",blurb:"The Past Collaborators page hero. (The collaborator cards are managed in their own editor.)",sections:[{label:"Hero",blocks:[{key:"pastcollab.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"About Us"},{key:"pastcollab.hero.headline",label:"Headline",type:"text",fallback:"A Legacy of Collaboration"},{key:"pastcollab.hero.body",label:"Body",type:"textarea",fallback:"National Concerts is proud to have collaborated with many of today's respected conductors, composers, clinicians, and artistic leaders. Their creativity and dedication continue to influence the experiences we create for performers and audiences alike."},{key:"pastcollab.hero.background",label:"Background image",type:"image"}]}]},"past-performances":{label:"Past Performances",blurb:"The Past Performances page hero. (Past event cards are managed in their own editor.)",sections:[{label:"Hero",blocks:[{key:"pastperf.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Box Office"},{key:"pastperf.hero.headline",label:"Headline",type:"text",fallback:"Past Performances"},{key:"pastperf.hero.body",label:"Body",type:"textarea",fallback:"A look back at our legacy of extraordinary concert experiences. Photo galleries, video highlights, and program archives."},{key:"pastperf.hero.photo",label:"Hero photo",type:"image"}]}]},"guest-collaborators":{label:"Guest Collaborators",blurb:"The Guest Collaborators page hero. (Conductors, composers, and clinicians are managed in their editors.)",sections:[{label:"Hero",blocks:[{key:"guestcollab.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Perform With Us"},{key:"guestcollab.hero.headline",label:"Headline",type:"text",fallback:"Guest Collaborators"},{key:"guestcollab.hero.body",label:"Body",type:"textarea",fallback:"Meet the guest conductors, composers, and clinicians whose artistry, expertise, and collaboration shape every National Concerts experience."},{key:"guestcollab.hero.background",label:"Background image",type:"image"}]}]},"get-started":{label:"Get Started",blurb:"Inquiry page eyebrow, background, and the confirmation / consent copy. (The headline per inquiry type is managed in the Inquiry Intents editor; the form's dropdown options stay fixed because they're stored with each submission.)",sections:[{label:"Hero",blocks:[{key:"get_started.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Perform With Us"},{key:"get_started.hero.background",label:"Background image",type:"image"}]},{label:"Form messages",blocks:[{key:"get_started.form.success_title",label:"Success heading",type:"text",fallback:"Thank you â weâve got it."},{key:"get_started.form.success_body",label:"Success message",type:"textarea",fallback:"A Concert Development Specialist will reach out within 24 hours."},{key:"get_started.form.submit_label",label:"Submit button",type:"text",fallback:"Submit"},{key:"get_started.form.consent",label:"Consent note",type:"textarea",fallback:"A Concert Development Specialist will contact you shortly to help you explore the best opportunities for your ensemble."}]}]},careers:{label:"Careers",blurb:"Careers page hero and About section. (The roles themselves are managed in the Job Openings editor.)",sections:[{label:"Hero",blocks:[{key:"careers.hero.eyebrow",label:"Eyebrow",type:"text",fallback:"Join Our Team"},{key:"careers.hero.headline",label:"Headline",type:"text",fallback:"Careers at National Concerts"}]},{label:"About",blocks:[{key:"careers.about.heading",label:"Heading",type:"text",fallback:"About National Concerts"},{key:"careers.about.body",label:"Body",type:"textarea",fallback:"Based in the heart of New York City, National Concerts provides transformative performance opportunities for choirs, bands, and orchestras at iconic venues nationwide, including Carnegie Hall, Lincoln Center, and the Meyers
508on Symphony Center. Our productions are thoughtfully curated by renowned conductors, weaving thematic narratives with cutting-edge elements such as artistic projections, dynamic lighting, imaginative staging, and world premieres featuring composers in residence. By fostering meaningful collaborations between ensembles and industry professionals, we empower musicians to reach their highest potential, champion music education, and create extraordinary experiences that leave a lasting impression on performers and audiences alike."},{key:"careers.openings.heading",label:"Openings heading",type:"text",fallback:"Explore Current Openings"}]}]},footer:{label:"Footer",blurb:"The footer column headings. Menu links, social links, and the copyright line are managed elsewhere.",sections:[{label:"Column headings",blocks:[{key:"footer.col.main_heading",label:"Menu column",type:"text",fallback:"Main Menu"},{key:"footer.col.additional_heading",label:"Info column",type:"text",fallback:"Additional Information"},{key:"footer.col.social_heading",label:"Social column",type:"text",fallback:"Stay Connected"}]}]}},Ig=Object.fromEntries(Object.values(s8).flatMap(e=>e.sections.flatMap(t=>t.blocks.map(n=>[n.key,"fallback"in n?n.fallback??"":""])))),i8=pr;function o8(){return Qc({queryKey:["public","page_copy"],queryFn:async()=>{const{data:e,error:t}=await i8.from("page_copy").select("key, value");if(t)return console.warn("page_copy unavailable, using built-in copy:",t.message),{};const n={};for(const r of e??[])n[r.key]=r.value;return n},staleTime:5*60*1e3})}function ve(){const{data:e,isPending:t}=o8();return{ready:!t,text:i=>{const a=e==null?void 0:e[i];if(typeof a=="string"&&a.length>0)return a;const l=Ig[i];return typeof l=="string"?l:""},list:i=>{const a=e==null?void 0:e[i];if(Array.isArray(a)&&a.length>0)return a;const l=Ig[i];return Array.isArray(l)?l:[]},image:(i,a)=>{const l=e==null?void 0:e[i],c=typeof l=="string"&&l.length>0?l:a;return Tt(c)??c}}}const iw="block w-full bg-nc-primary text-nc-white no-underline",a8=()=>{const e=ve();if(!e.ready||e.text("home.promo_bar.show")==="off")return null;const t=e.text("home.promo_bar.link")||"/upcoming-performances",n=/^(https?:)?\/\//.test(t)||t.startsWith("mailto:"),r=o.jsxs("div",{className:"nc-container flex h-11 items-center justify-between gap-3 whitespace-nowrap",children:[o.jsx("span",{className:"font-body uppercase shrink-0",style:{fontWeight:700,fontSize:"clamp(11px, 2.6vw, 13px)",letterSpacing:"0.5px"},children:e.text("home.promo_bar.label")}),o.jsxs("span",{className:"inline-flex items-center gap-2 min-w-0",children:[o.jsx(ih,{size:14,strokeWidth:1.75,className:"shrink-0"}),o.jsx("span",{className:"font-body uppercase truncate",style:{fontWeight:600,fontSize:"clamp(11px, 2.6vw, 13px)",letterSpacing:"0.3px"},children:e.text("home.promo_bar.text")})]})]});return n?o.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:iw,children:r}):o.jsx(ke,{to:t,className:iw,children:r})},l8=[{title:"Home",to:"/",desc:"National Concerts"},{title:"Perform With Us",to:"/perform-with-us",desc:"Opportunities to perform",keywords:"ensemble orchestra band"},{title:"Season Overview",to:"/season-overview",desc:"An overview of our season"},{title:"Browse Our Season",to:"/browse-by-date-venue",desc:"By date & venue",keywords:"calendar schedule concerts"},{title:"Guest Collaborators",to:"/browse-by-conductor",desc:"Conductors & clinicians",keywords:"conductor composer"},{title:"Box Office",to:"/box-office",desc:"Tickets & performances",keywords:"tickets buy"},{title:"The Experience",to:"/the-experience",desc:"The National Concerts experience"},{title:"Testimonials",to:"/testimonials",desc:"What performers say",keywords:"reviews quotes"},{title:"Package Pricing",to:"/packages-and-pricing",desc:"Packages & pricing",keywords:"cost price packages"},{title:"Get Started",to:"/inquiry",desc:"Start an inquiry",keywords:"contact inquiry apply"},{title:"Choral Series",to:"/choral-series",desc:"Overview of the choral series",keywords:"choir singing"},{title:"Browse Catalog",to:"/choral-series#catalog",desc:"Choral catalog",keywords:"choral works repertoire music"}
508,{title:"Commissions",to:"/commissions",desc:"Commissioned works"},{title:"Audio/Video",to:"/listen",desc:"Listen to choral works and follow the score",keywords:"audio video recordings score listen follow"},{title:"About Us",to:"/about",desc:"Our story",keywords:"story mission"},{title:"Our Team",to:"/team",desc:"Meet the team",keywords:"staff people"},{title:"Advisory Council",to:"/advisory-board",desc:"Advisory council",keywords:"board members"},{title:"FAQ's & Resources",to:"/faqs",desc:"Frequently asked questions",keywords:"faq help resources"},{title:"Contact Us",to:"/contact",desc:"Get in touch",keywords:"email phone contact"},{title:"Upcoming Performances",to:"/upcoming-performances",desc:"Upcoming concerts",keywords:"concerts events"},{title:"Careers",to:"/careers",desc:"Work with us",keywords:"jobs hiring employment"}],c8=["Performance","Choral Work","Commission","Page"],d8=8,u8=({onClose:e})=>{const t=Yh(),[n,r]=w.useState(""),[s,i]=w.useState(0),a=w.useRef(null),l=w.useRef(null),{data:c=[]}=jo(),{data:d=[]}=T0(),{data:u=[]}=fp(),h=w.useMemo(()=>{const g=[];for(const m of c){const b=[m.venue,m.date,m.conductor].filter(Boolean).join(" · ");g.push({type:"Performance",title:m.title,subtitle:b,to:`/upcoming-performances/${m.slug}`,haystack:`${m.title} ${b} ${m.program??""}`.toLowerCase()})}for(const m of d){const b=[m.composer,m.voicing].filter(Boolean).join(" · ");g.push({type:"Choral Work",title:m.title,subtitle:b,to:`/listen/${m.slug}`,haystack:`${m.title} ${b}`.toLowerCase()})}for(const m of u)g.push({type:"Commission",title:m.title,subtitle:m.author,to:`/commissions/${m.slug}`,haystack:`${m.title} ${m.author} ${m.excerpt}`.toLowerCase()});for(const m of l8)g.push({type:"Page",title:m.title,subtitle:m.desc,to:m.to,haystack:`${m.title} ${m.desc} ${m.keywords??""}`.toLowerCase()});return g},[c,d,u]),f=w.useMemo(()=>{const g=n.trim().toLowerCase();if(!g)return[];const m=h.map(b=>{if(!b.haystack.includes(g))return null;const k=b.title.toLowerCase(),S=k.startsWith(g)?3:k.includes(g)?2:1;return{item:b,score:S}}).filter(b=>b!==null).sort((b,k)=>k.score-b.score||b.item.title.localeCompare(k.item.title));return c8.map(b=>({type:b,items:m.filter(k=>k.item.type===b).slice(0,d8).map(k=>k.item)})).filter(b=>b.items.length>0)},[h,n]),p=w.useMemo(()=>f.flatMap(g=>g.items),[f]);w.useEffect(()=>{i(0)},[n]),w.useEffect(()=>{var b;const g=document.activeElement;(b=a.current)==null||b.focus();const m=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{var k;document.body.style.overflow=m,(k=g==null?void 0:g.focus)==null||k.call(g)}},[]);const v=g=>{e(),t(g)},y=g=>{var m;if(g.key==="Tab"){const b=(m=l.current)==null?void 0:m.querySelectorAll('a[href],button:not([disabled]),input:not([disabled]),select,textarea,[tabindex]:not([tabindex="-1"])');if(b&&b.length){const k=b[0],S=b[b.length-1];g.shiftKey&&document.activeElement===k?(g.preventDefault(),S.focus()):!g.shiftKey&&document.activeElement===S&&(g.preventDefault(),k.focus())}return}if(g.key==="Escape")g.preventDefault(),e();else if(g.key==="ArrowDown")g.preventDefault(),i(b=>Math.min(b+1,Math.max(p.length-1,0)));else if(g.key==="ArrowUp")g.preventDefault(),i(b=>Math.max(b-1,0));else if(g.key==="Enter"){const b=p[s];b&&(g.preventDefault(),v(b.to))}},x=n.trim().length>0;return Co.createPortal(o.jsxs("div",{ref:l,role:"dialog","aria-modal":"true","aria-label":"Site search",className:"fixed inset-0 z-[70] flex flex-col nc-search-in",style:{background:"rgba(14, 14, 14, 0.86)",backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)"},onKeyDown:y,onMouseDown:g=>{g.target===g.currentTarget&&e()},children:[o.jsxs("div",{className:"nc-container flex w-full flex-1 flex-col overflow-hidden pt-6 pb-10 md:pt-10",children:[o.jsxs("div",{className:"flex items-center gap-3 border-b border-white/20 pb-4",children:[o.jsx(o0,{size:26,strokeWidth:1.5,className:"shrink-0 text-white/70"}),o.jsx("input",{ref:a,value:n,onChange:g=>r(g.target.value),type:"text",placeholder:"Search performances, choral works, pagesâ¦","aria-label":"Search",className:"font-body w-full border-0 bg-transparent text-white placeholder:text-white/40 focus:outline-none",style:{fontSize:"clamp(20px, 3vw, 32px)",fontWeight:400}}),o.jsx("button",{onClick:e,"aria-label":"Close search",className:"grid h-10 w-10 shrink-0 place-items-center rounded-full border border-white/20 text-white hover:bg-white/10 transition-colors",children:o.jsx(Eo,{size:22,strokeWidth:1.5})})]}),o.jsxs("div",{className:"mt-6 flex-1 overflow-y-auto",style:{overscrollBehavior:"contain"},children:[o.jsx("p",{className:"sr-only",role:"status","aria-live":"polite",children:x?p.length===0?`No results for ${n.trim()}`:`${p.length} result${p.length===1?"":"s"} for ${n.trim()}`:""}),!x&&o.jsx("p",{className:"font-body text-white/50",style:{fontSize:15},children:"Start typing to search across performances, the choral catalog, commissions, and pages."}),x&&p.length===0&&o.jsxs("p",{className:"font-body text-white/60",style:{fontSize:16},children:["No results for â",n.trim(),"â. Try a different term."]}),f.map(g=>o.jsxs("div",{className:"mb-8",children:[o.jsx("h3",{className:"font-display m-0 mb-3 uppercase text-nc-primary",style:{fontSize:13,letterSpacing:"0.8px",fontWeight:500},children:g.type==="Page"?"Pages":`${g.type}s`}),o.jsx("ul",{className:"m-0 list-none p-0",children:g.items.map(m=>{const b=p.indexOf(m),k=b===s;return o.jsx("li",{children:o.jsxs("button",{type:"button",onClick:()=>v(m.to),onMouseEnter:()=>i(b),className:"group flex w-full items-center justify-between gap-4 roun
508ded-lg px-4 py-3 text-left transition-colors",style:{background:k?"rgba(255,255,255,0.08)":"transparent"},children:[o.jsxs("span",{className:"min-w-0",children:[o.jsx("span",{className:"font-body block truncate text-white",style:{fontSize:17,fontWeight:500},children:m.title}),m.subtitle&&o.jsx("span",{className:"font-body block truncate text-white/50",style:{fontSize:13,marginTop:2},children:m.subtitle})]}),o.jsx(jS,{size:18,strokeWidth:1.75,className:`shrink-0 transition-all ${k?"text-nc-primary opacity-100":"text-white/40 opacity-0 group-hover:opacity-100"}`})]})},`${m.type}-${m.to}`)})})]},g.type))]})]}),o.jsx("style",{children:` 509 @keyframes ncSearchIn { 510 from { opacity: 0; transform: translateY(-8px); } 511 to { opacity: 1; transform: translateY(0); } 512 } 513 .nc-search-in { animation: ncSearchIn 180ms ease-out both; } 514 `})]}),document.body)},N0=e=>e.items!==void 0,IE=[{label:"Home",to:"/"},{label:"Perform With Us",to:"/perform-with-us",items:[{label:"An Overview",to:"/season-overview"},{label:"Browse Our Season",to:"/browse-by-date-venue"},{label:"Past Performances",to:"/past-performances"},{label:"Guest Collaborators",to:"/browse-by-conductor"}]},{label:"Box Office",to:"/box-office"},{label:"The Experience",to:"/the-experience",items:[{label:"The Experience",to:"/the-experience"},{label:"Testimonials",to:"/testimonials"},{label:"Packages & Pricing",to:"/packages-and-pricing"},{label:"Get Started",to:"/inquiry"}]},{label:"Commissions",to:"/commissions",items:[{label:"Overview",to:"/commissions"},{label:"Choral Series",to:"/choral-series"}]},{label:"About Us",to:"/about",items:[{label:"About Us",to:"/about"},{label:"Our Team",to:"/team"},{label:"Advisory Council",to:"/advisory-board"},{label:"FAQ's & Resources",to:"/faqs"},{label:"Contact Us",to:"/contact"}]}],h8=IE,p8=[{label:"Instagram",href:"https://www.instagram.com/national.concerts/",key:"social_instagram"},{label:"YouTube",href:"#",key:"social_youtube"},{label:"Facebook",href:"#",key:"social_facebook"}],f8="#FE894C",qo="#FE894C",bh=(e,t)=>e==="/coming-soon"?!1:e==="/"?t==="/":t===e||t.startsWith(e+"/"),LE=(e,t)=>N0(e)?e.items.some(n=>bh(n.to,t)):bh(e.to,t),ow=({textClass:e,activeColor:t})=>{const{pathname:n}=un(),[r,s]=w.useState(null),i=w.useRef(null),a=w.useRef(null),l=()=>{a.current&&(clearTimeout(a.current),a.current=null)},c=()=>{l(),a.current=setTimeout(()=>s(null),180)},d=u=>{l(),s(u)};return w.useEffect(()=>{const u=f=>{f.key==="Escape"&&s(null)},h=f=>{i.current&&!i.current.contains(f.target)&&s(null)};return window.addEventListener("keydown",u),window.addEventListener("mousedown",h),()=>{window.removeEventListener("keydown",u),window.removeEventListener("mousedown",h)}},[]),o.jsx("nav",{ref:i,className:`hidden lg:flex items-center gap-x-6 xl:gap-x-10 flex-1 justify-center mx-8 xl:mx-12 ${e}`,children:IE.map(u=>{const h=LE(u,n);if(!N0(u))return o.jsx(ke,{to:u.to,onClick:()=>s(null),className:`font-display uppercase transition-colors hover:text-nc-primary hover:underline ${h?"":e}`,style:{fontWeight:400,fontSize:15,letterSpacing:"0.4px",lineHeight:1,textUnderlineOffset:4,textDecorationThickness:1,...h?{color:t}:{}},children:u.label},u.label);const f=r===u.label;return o.jsxs("div",{className:"relative flex items-center",onMouseEnter:()=>d(u.label),onMouseLeave:c,children:[o.jsxs("span",{className:`font-display inline-flex items-center gap-1 uppercase transition-colors hover:text-nc-primary ${h?"":e}`,style:{fontWeight:400,fontSize:15,letterSpacing:"0.4px",lineHeight:1,...h?{color:t}:{}},children:[o.jsx(ke,{to:u.to,onClick:()=>s(null),className:"text-inherit hover:underline",style:{textUnderlineOffset:4,textDecorationThickness:1},children:u.label}),o.jsx("button",{type:"button",onClick:()=>f?c():d(u.label),onFocus:()=>d(u.label),className:"bg-transparent border-0 p-0 cursor-pointer text-inherit inline-flex","aria-label":`${u.label} menu`,"aria-expanded":f,children:o.jsx(On,{size:14,strokeWidth:2,className:`transition-transform ${f?"rotate-180":""}`})})]}),f&&o.jsx("div",{className:"absolute top-full z-40 nc-dropdown-anim",onMouseEnter:l,onMouseLeave:c,style:{left:0,marginTop:12,minWidth:240,maxWidth:280,maxHeight:"min(70vh, 520px)",overflowY:"auto",overscrollBehavior:"contain",background:"rgba(20, 20, 20, 0.62)",backdropFilter:"blur(28px) s
514aturate(160%)",WebkitBackdropFilter:"blur(28px) saturate(160%)",border:"1px solid rgba(255,255,255,0.10)",borderRadius:12,boxShadow:"0 24px 60px -20px rgba(0,0,0,0.55)",padding:"10px 0"},children:o.jsx("ul",{className:"m-0 list-none p-0",children:u.items.map(p=>{const v=bh(p.to,n);return o.jsx("li",{children:o.jsx(ke,{to:p.to,onClick:()=>s(null),className:"font-body block px-5 py-2 text-sm no-underline transition-colors hover:bg-white/10 hover:text-nc-primary",style:{fontWeight:500,letterSpacing:"0.2px",color:v?qo:"#FFFFFF"},children:p.label})},p.label)})})})]},u.label)})})},aw=({textClass:e,barColor:t,onOpenMobile:n,onOpenSearch:r,mobileOpen:s})=>o.jsxs("div",{className:`inline-flex items-center gap-4 ml-auto lg:ml-0 ${e}`,children:[o.jsx("button",{type:"button",onClick:r,"aria-label":"Search",className:"inline-flex items-center justify-center bg-transparent border-0 p-0 cursor-pointer text-inherit hover:text-nc-primary transition-colors",children:o.jsx(o0,{size:21,strokeWidth:1.75})}),o.jsx(ke,{to:"/inquiry",className:"hidden lg:inline-flex items-center justify-center font-display uppercase no-underline bg-nc-primary text-nc-white hover:opacity-90 transition-opacity",style:{fontWeight:500,fontSize:13,letterSpacing:"0.6px",lineHeight:1,padding:"12px 22px"},children:"Get Started"}),o.jsxs("button",{className:"lg:hidden inline-flex flex-col justify-between","aria-label":"Open menu","aria-expanded":s,onClick:n,style:{width:28,height:18},children:[o.jsx("span",{className:`block h-[2px] w-full ${t}`}),o.jsx("span",{className:`block h-[2px] w-full ${t}`}),o.jsx("span",{className:`block h-[2px] w-full ${t}`})]})]}),Xe=({variant:e="transparent"})=>{const t=e==="light",{data:n}=ll(),r=n??{},[s,i]=w.useState(!1),[a,l]=w.useState(null),[c,d]=w.useState(!1),[u,h]=w.useState(!1),{pathname:f}=un(),p=f.startsWith("/listen/");w.useEffect(()=>{const x=g=>{g.key==="Escape"&&i(!1)};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[]),w.useEffect(()=>(document.body.style.overflow=s?"hidden":"",()=>{document.body.style.overflow=""}),[s]),w.useEffect(()=>{let m=window.scrollY,b=!1;const k=()=>{const E=window.scrollY;E<=200?d(!1):E<m-5?d(!0):E>m+5&&d(!1),m=E,b=!1},S=()=>{b||(b=!0,requestAnimationFrame(k))};return window.addEventListener("scroll",S,{passive:!0}),()=>window.removeEventListener("scroll",S)},[]);const v=t?"text-nc-black":p?"text-nc-primary":"text-nc-white",y=t?"bg-nc-black":p?"bg-nc-primary":"bg-white";return o.jsxs(o.Fragment,{children:[o.jsx("a",{href:"#main-content",className:"nc-skip-link",children:"Skip to main content"}),o.jsx(a8,{}),o.jsxs("header",{className:`relative z-30 h-[88px] ${t?"border-b border-black/10":"border-b border-white/10"} bg-transparent`,children:[o.jsxs("div",{className:"nc-container relative flex h-full items-center py-5",children:[o.jsx(wf,{}),o.jsx(ow,{textClass:v,activeColor:t?f8:qo}),o.jsx(aw,{textClass:v,barColor:y,onOpenMobile:()=>i(!0),onOpenSearch:()=>h(!0),mobileOpen:s})]}),o.jsx("style",{children:` 515 @keyframes ncDropdownIn { 516 from { opacity: 0; } 517 to { opacity: 1; } 518 } 519 .nc-dropdown-anim { 520 animation: ncDropdownIn 200ms ease-out both; 521 } 522 @keyframes ncDropdownSlide { 523 from { opacity: 0; transform: translateY(-8px); } 524 to { opacity: 1; transform: translateY(0); } 525 } 526 .nc-dropdown-anim > ul { 527 animation: ncDropdownSlide 220ms cubic-bezier(0.22, 1, 0.36, 1) both; 528 } 529 `})]}),o.jsx("span",{id:"main-content",tabIndex:-1}),Co.createPortal(o.jsx("div",{className:"fixed inset-x-0 top-0 z-50",style:{transform:c?"translateY(0)":"translateY(-100%)",transition:"transform 320ms cubic-bezier(0.22, 1, 0.36, 1)",pointerEvents:c?"auto":"none",background:"rgba(18, 18, 18, 0.92)",backdropFilter:"blur(20px) saturate(150%)",WebkitBackdropFilter:"blur(20px) saturate(150%)",borderBottom:"1px solid rgba(255,255,255,0.10)",boxShadow:"0 12px 40px -18px rgba(0,0,0,0.6)"},"aria-hidden":!c,...c?{}:{inert:""},children:o.jsxs("div",{className:"nc-container relative flex h-[72px] items-center",children:[o.jsx(wf,{}),o.jsx(ow,{textClass:"text-nc-white",activeColor:qo}),o.jsx(aw,{textClass:"text-nc-white",barColor:"bg-white",onOpenMobile:()=>i(!0),onOpenSearch:()=>h(!0),mobileOpen:s})]})}),document.body),u&&o.jsx(u8,{onClose:()=>h(!1)}),o.jsxs("div",{"aria-hidden":!s,...s?{}:{inert:""},className:`lg:hidden fixed inset-0 z-[60] flex flex-col p-5 transition-transform duration-300 ease-out ${s?"translate-x-0":"translate-x-full"}`,style:{background:"rgba(20, 20, 20, 0.78)",backdropFilter:"blur(24px) saturate(140%)",WebkitBackdropFilter:"blur(24px) saturate(140%)"},children:[o.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[o.jsx(wf,{}),o.jsx("button",{onClick:()=>i(!1),"aria-label":"Close menu",className:"grid h-10 w-10 place-items-center rounded-full border border-white/20 text-white",children:o.jsx(Eo,{size:22,strokeWidth:1.5})})]}),o.jsx("ul",{className:"m-0 list-none p-0 overflow-y-auto",children:h8.map(x=>{const g=LE(x,f);return o.jsx("li",{className:"border-b border-white/10",children:N0(x)?o.jsxs(o.Fragment,{children:[o.jsxs("button",{onClick:()=>l(a===x.label?null:x.label),className:"font-display flex w-full items-center justify-between py-3 text-left",style:{fontWeight:400,fontSize:18,lineHeight:"130%",textTransform:"uppercase",letterSpacing:"-0.3px",color:g?qo:"#FFFFFF"},children:[o.jsx("span",{children:x.label}),o.jsx(On,{size:18,className:`transition-transform ${a===x.label?"rotate-180":""}`})]}),a===x.label&&o.jsx("ul",{className:"m-0 list-none pb-3 pl-2",children:x.items.map(m=>{const b=bh(m.to,f);return o.jsx("li",{children:o.jsx(ke,{to:m.to,onClick:()=>{i(!1),l(null)},className:"font-body block py-2 no-underline",style:{fontSize:14,fontWeight:500,color:b?qo:"rgba(255,255,255,0.8)"},children:m.label})},m.label)})})]}):o.jsx(ke,{to:x.to,onClick:()=>i(!1),className:"font-display block py-3 no-underline",style:{fontWeight:400,fontSize:18,lineHeight:"130%",textTransform:"uppercase",letterSpacing:"-0.3px",color:g?qo:"#FFFFFF"},children:x.label})},x.label)})}),o.jsxs("div",{className:"mt-auto flex flex-col gap-5 pt-6",children:[o.jsx(ke,{to:"/inquiry",onClick:()=>i(!1),className:"inline-flex items-center justify-center bg-nc-primary text-nc-white no-underline font-display uppercase",style:{fontWeight:500,fontSize:14,letterSpacing:"0.6px",lineHeight:1,padding:"14px 22px"},children:"Get Started"}),o.jsx("div",{className:"flex gap-5",children:p8.map(x=>o.jsx("a",{href:r[x.key]||x.href,className:"font-body text-[11px] font-bold uppercase tracking-wide text-white/80 no-underline",children:x.label},x.label))})]})]})]})},kf=768;function m8(){const[e,t]=w.useState(void 0);return w.useEffect(()=>{const n=window.matchMedia(`(max-width: ${kf-1}px)`),r=()=>{t(window.innerWidth<kf)};return n.addEventListener("change",r),t(window.innerWidth<kf),()=>n.removeEventListener("change",r)},[]),!!e}function g8(){const[e,t]=w.useState(!1);return w.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const n=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>t(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[]),e}function F0(e={}){const{speed:t=.15,max:n=70}=e,r=w.useRef(null),s=m8(),i=g8();return w.useEffect(()=>{const a=r.current;if(!a)return;if(s||i){a.style.transform="";return}const l=()=>{let p=0,v=a;for(;v;)p+=v.offsetTop,v=v.offsetParent;return p};let c=l(),d=0;const u=()=>{d=0;const p=window.innerHeight||document.documentElement.clientHeight,v=window.scrollY+p-c-p,y=Math.max(-n,Math.min(n,v*t));a.style.transform=`translate3d(0, ${y.toFixed(1)}px, 0)`},h=()=>{d||(d=window.requestAnimationFrame(u))},f=()=>
529{c=l(),u()};return u(),window.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",f),()=>{window.removeEventListener("scroll",h),window.removeEventListener("resize",f),d&&window.cancelAnimationFrame(d)}},[s,i,t,n]),r}const y8=()=>{const e=F0({speed:.24,max:110}),t=ve();return o.jsxs("section",{className:"relative min-h-[820px] w-full overflow-hidden bg-nc-black",children:[o.jsx("img",{ref:e,src:Fg,alt:"National Concerts performance hall",className:"absolute left-0 w-full object-cover object-center",style:{top:"-16%",height:"132%",willChange:"transform"}}),o.jsx("div",{className:"absolute inset-0 bg-nc-black/30 pointer-events-none"}),o.jsx("div",{className:"relative z-20",children:o.jsx(Xe,{variant:"transparent"})}),o.jsx("div",{className:"absolute inset-0 z-10 flex items-start justify-center px-5 pointer-events-none",style:{paddingTop:"clamp(132px, 20vh, 210px)"},children:o.jsxs("h1",{"aria-label":"National Concerts",className:"nc-hero-in font-display m-0 w-full text-center uppercase relative",style:{fontWeight:400,fontSize:"clamp(44px, 9vw, 108px)",lineHeight:"110%",letterSpacing:"-1.5px",animationDelay:"120ms"},children:[o.jsx("span",{"aria-hidden":!0,style:{color:"#FE894C",display:"block",textShadow:"0 2px 40px rgba(254,137,76,0.35)"},children:"National Concerts"}),o.jsx("span",{"aria-hidden":!0,className:"absolute inset-0",style:{backgroundImage:`url(${Fg})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent",color:"transparent",mixBlendMode:"overlay",opacity:.55,filter:"brightness(1.1) saturate(1.1)"},children:"National Concerts"})]})}),o.jsxs("div",{className:"absolute inset-x-0 bottom-0 z-10",children:[o.jsx("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-[300px]",style:{background:"linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%)"}}),o.jsxs("div",{className:"nc-container relative flex flex-col items-center gap-8 pb-10 md:pb-14",children:[o.jsxs("div",{className:"nc-hero-in flex flex-col gap-4 sm:flex-row sm:gap-6",style:{animationDelay:"340ms"},children:[o.jsxs(ke,{to:"/browse-by-date-venue",className:"nc-press inline-flex h-12 items-center justify-center gap-2.5 bg-nc-primary text-nc-white whitespace-nowrap no-underline",style:{padding:"14px 24px"},children:[o.jsx("span",{className:"font-display text-sm",style:{fontWeight:400,lineHeight:"140%"},children:t.text("home.hero.cta_primary")}),o.jsx(Ue,{size:20,strokeWidth:1.5})]}),o.jsxs(ke,{to:"/the-experience",className:"nc-press inline-flex h-12 items-center justify-center gap-2.5 border border-nc-white bg-transparent text-nc-white whitespace-nowrap no-underline",style:{padding:"14px 24px"},children:[o.jsx("span",{className:"font-display text-sm",style:{fontWeight:400,lineHeight:"140%"},children:t.text("home.hero.cta_secondary")}),o.jsx(Ue,{size:20,strokeWidth:1.5})]})]}),o.jsxs("div",{className:"nc-hero-in grid w-full items-center gap-2 [grid-template-columns:1fr_auto] sm:[grid-template-columns:1fr_auto_1fr]",style:{animationDelay:"500ms"},children:[o.jsx("span",{"aria-hidden":!0,className:"hidden sm:block"}),o.jsx("p",{className:"font-display m-0 text-center uppercase text-nc-white sm:whitespace-nowrap col-span-3 sm:col-span-1 order-first sm:order-none",style:{fontWeight:400,fontSize:"clamp(18px, 2vw, 26px)",letterSpacing:"0.5px"},children:t.text("home.hero.tagline")}),t.text("home.hero.scroll_label")?o.jsxs("button",{type:"button",onClick:n=>{const r=n.currentTarget.closest("section"),s=r==null?void 0:r.nextElementSibling;s?s.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollTo({top:window.innerHeight,behavior:"smooth"})},className:"font-body text-nc-white text-right uppercase inline-flex items-center justify-end gap-2 bg-transparent border-0 cursor-pointer p-0 hover:opacity-80 transition-opacity",style:{fontWeight:700,fontSize:"clamp(11px, 3vw, 14px)",letterSpacing:"0.5px"},"aria-label":"Scroll to next section",children:[t.text("home.hero.scroll_label")," ",o.jsx("span",{"aria-hidden":!0,
529children:"â"})]}):null]})]})]})]})},b8=()=>{const e=ve(),{data:t}=ll(),n=Tt(t==null?void 0:t.brand_mark)??jC;return o.jsxs("section",{style:{background:"#FFFFFF",padding:"56px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"ms-band",children:[o.jsx("img",{src:n,alt:"National Concerts",className:"ms-mark object-contain",loading:"lazy"}),o.jsxs("div",{className:"ms-text",children:[o.jsx("h2",{className:"font-display m-0 uppercase text-nc-black",style:{fontWeight:400,fontSize:"clamp(26px, 3.2vw, 40px)",lineHeight:"118%",letterSpacing:"-0.5px"},children:e.text("home.mission.headline")}),o.jsx("p",{className:"font-body m-0 text-nc-black",style:{fontSize:16,lineHeight:"165%",color:"#454545"},children:e.text("home.mission.body")})]})]})}),o.jsx("style",{children:` 530 .ms-band { 531 display: grid; 532 grid-template-columns: auto minmax(0, 1fr); 533 align-items: center; 534 gap: clamp(28px, 4vw, 56px); 535 } 536 .ms-mark { width: clamp(72px, 9vw, 120px); height: clamp(72px, 9vw, 120px); flex-shrink: 0; } 537 .ms-text { display: flex; flex-direction: column; gap: 16px; } 538 @media (max-width: 640px) { 539 .ms-band { grid-template-columns: 1fr; gap: 20px; } 540 } 541 `})]})};function rd(e={}){const{threshold:t=.12,rootMargin:n="0px 0px -8% 0px",once:r=!0}=e,s=w.useRef(null),[i,a]=w.useState(!1);return w.useEffect(()=>{const l=s.current;if(!l)return;if(typeof IntersectionObserver>"u"){a(!0);return}const c=new IntersectionObserver(d=>{for(const u of d)u.isIntersecting?(a(!0),r&&c.unobserve(u.target)):r||a(!1)},{threshold:t,rootMargin:n});return c.observe(l),()=>c.disconnect()},[t,n,r]),{ref:s,inView:i}}const v8=` 542 .ham-card { 543 display: flex; flex-direction: column; height: 100%; 544 background: #FFFFFF; border: 1px solid #EAEAEA; color: inherit; 545 overflow: hidden; 546 transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease; 547 } 548 .ham-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(20,20,20,0.35); border-color: #E8732A; } 549 .ham-media { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #F4F3EE; } 550 .ham-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; } 551 .ham-card:hover .ham-media img { transform: scale(1.04); } 552 .ham-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; } 553 .ham-eyebrow { font-family: Inter, Montserrat, sans-serif; font-weight: 600; font-size: 12px; line-height: 140%; color: #E8732A; text-transform: uppercase; letter-spacing: 0.5px; } 554 .ham-title { font-weight: 400; font-size: 26px; line-height: 120%; color: #141414; text-transform: uppercase; margin-top: 8px; } 555 .ham-desc { font-family: Inter, Montserrat, sans-serif; font-weight: 400; font-size: 15px; line-height: 160%; color: #5C6470; margin-top: 12px; } 556 .ham-cta { display: inline-flex; align-items: center; gap: 6px; color: #FE894C; font-weight: 700; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 20px; align-self: flex-start; } 557 @media (prefers-reduced-motion: reduce) { 558 .ham-card, .ham-media img { transition: none; } 559 .ham-card:hover { transform: none; } 560 .ham-card:hover .ham-media img { transform: none; } 561 } 562`,x8=({module:e,withStyles:t=!1,showEyebrow:n=!0})=>o.jsxs(o.Fragment,{children:[t&&o.jsx("style",{children:v8}),o.jsxs(ke,{to:e.to,className:"ham-card no-underline",children:[o.jsx("div",{className:"ham-media",style:e.imgBg?{background:e.imgBg}:void 0,children:o.jsx("img",{src:e.img,alt:e.title,loading:"lazy",style:e.imgFit==="contain"?{objectFit:"contain",padding:24}:void 0})}),o.jsxs("div",{className:"ham-body",children:[n&&e.eyebrow?o.jsx("span",{className:"ham-eyebrow",children:e.eyebrow}):null,o.jsx("h3",{className:"font-display ham-title m-0",children:e.title}),o.jsx("p",{className:"ham-desc m-0",children:e.desc}),o.jsxs("span",{className:"font-body ham-cta",children:[e.cta," ",o.jsx(Ue,{size:14,strokeWidth:2})]})]})]})]}),w8=()=>{const{ref:e,inView:t}=rd(),n=w.useRef(null),{data:r}=OE(),s=r??NE,[i,a]=w.useState(!1);w.useEffect(()=>{const c=n.current;if(!c)return;const d=()=>a(c.scrollWidth>c.clientWidth+1);d();const u=new ResizeObserver(d);return u.observe(c),()=>u.disconnect()},[s.length]);const l=c=>{const d=n.current;if(!d)return;const u=d.querySelector(".ham-card"),h=u?u.offsetWidth+24:d.clientWidth*.8;d.scrollBy({left:c*h,behavior:"smooth"})};return o.jsxs("section",{ref:e,style:{background:"#FFFFFF",padding:"40px 0 80px"},children:[o.jsxs("div",{className:"nc-container",children:[i&&o.jsxs("div",{className:"ham-control
562s",children:[o.jsx("button",{type:"button",className:"ham-arrow","aria-label":"Previous",onClick:()=>l(-1),children:o.jsx(oh,{size:20,strokeWidth:2})}),o.jsx("button",{type:"button",className:"ham-arrow","aria-label":"Next",onClick:()=>l(1),children:o.jsx(ah,{size:20,strokeWidth:2})})]}),o.jsx("ul",{ref:n,className:`ham-track nc-stagger${t?" is-in":""}`,children:s.map((c,d)=>o.jsx("li",{className:"ham-item",style:{"--i":d},children:o.jsx(x8,{module:c,showEyebrow:!1})},c.title))})]}),o.jsx("style",{children:` 563 .ham-controls { 564 display: flex; 565 justify-content: flex-end; 566 gap: 12px; 567 margin-bottom: 24px; 568 } 569 .ham-arrow { 570 width: 44px; 571 height: 44px; 572 display: inline-flex; 573 align-items: center; 574 justify-content: center; 575 border: 1px solid #DADADA; 576 background: #FFFFFF; 577 color: #141414; 578 cursor: pointer; 579 border-radius: 9999px; 580 transition: background 200ms ease, color 200ms ease, border-color 200ms ease; 581 } 582 .ham-arrow:hover { background: #141414; color: #FFFFFF; border-color: #141414; } 583 .ham-track { 584 list-style: none; 585 margin: 0; 586 padding: 4px 0 16px; 587 display: flex; 588 gap: 24px; 589 overflow-x: auto; 590 scroll-snap-type: x mandatory; 591 scrollbar-width: thin; 592 -webkit-overflow-scrolling: touch; 593 } 594 .ham-item { 595 flex: 0 0 auto; 596 width: calc((100% - 48px) / 3); 597 scroll-snap-align: start; 598 } 599 .ham-card { 600 display: flex; 601 flex-direction: column; 602 height: 100%; 603 background: #FFFFFF; 604 border: 1px solid #EAEAEA; 605 color: inherit; 606 overflow: hidden; 607 transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease; 608 } 609 .ham-card:hover { 610 transform: translateY(-4px); 611 box-shadow: 0 18px 40px -22px rgba(20,20,20,0.35); 612 border-color: #E8732A; 613 } 614 .ham-media { 615 width: 100%; 616 aspect-ratio: 4 / 3; 617 overflow: hidden; 618 background: #F4F3EE; 619 } 620 .ham-media img { 621 width: 100%; 622 height: 100%; 623 object-fit: cover; 624 display: block; 625 transition: transform 500ms ease; 626 } 627 .ham-card:hover .ham-media img { transform: scale(1.04); } 628 .ham-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; } 629 .ham-eyebrow { 630 font-family: Inter, Montserrat, sans-serif; 631 font-weight: 600; 632 font-size: 12px; 633 line-height: 140%; 634 color: #E8732A; 635 text-transform: uppercase; 636 letter-spacing: 0.5px; 637 } 638 .ham-title { 639 font-weight: 400; 640 font-size: 26px; 641 line-height: 120%; 642 color: #141414; 643 text-transform: uppercase; 644 margin-top: 8px; 645 } 646 .ham-desc { 647 font-family: Inter, Montserrat, sans-serif; 648 font-weight: 400; 649 font-size: 15px; 650 line-height: 160%; 651 color: #5C6470; 652 margin-top: 12px; 653 } 654 .ham-cta { 655 display: inline-flex; 656 align-items: center; 657 gap: 6px; 658 color: #FE894C; 659 font-weight: 700; 660 font-size: 12px; 661 letter-spacing: 0.5px; 662 text-transform: uppercase; 663 margin-top: 20px; 664 align-self: flex-start; 665 } 666 @media (max-width: 1023px) { .ham-item { width: calc((100% - 24px) / 2); } } 667 @media (max-width: 640px) { .ham-item { width: 82%; } } 668 @media (prefers-reduced-motion: reduce) { 669 .ham-card, .ham-media img { transition: none; } 670 .ham-card:hover { transform: none; } 671 .ham-card:hover .ham-media img { transform: none; } 672 .ham-track { scroll-behavior: auto; } 673 } 674 `})]})},lw=e=>`/browse-by-date-venue?type=${encodeURIComponent(e.join(","))}`,k8=[{n:"01",title:"Choirs",href:lw(EL),img:ZC},{n:"02",title:"Bands/Orchestras",href:lw(jL),img:QC},{n:"03",title:"Guest Collaborators",href:"/browse-by-conductor",img:w0}],_8=()=>{const e=ve(),t=e.list("home.opportunities.tiles");return o.jsxs("section",{className:"nc-container bg-nc-white",style:{paddingTop:80,paddingBottom:80,display:"flex",flexDirection:"column",gap:48},children:[o.jsxs("div",{className:"vpo-head",children:[o.jsxs("h2",{className:"font-display vpo-title m-0 uppercase",children:[o.jsx("span",{className:"vpo-title-line text-nc-black",children:e.text("home.opportunities.title_line1")}),o.jsx("br",{}),o.jsx("span",{className:"vpo-title-line vpo-title-line--indent",style:{color:"#FE894C"},children:e.text("home.opportunities.title_line2")})]}),o.jsx("p",{className:"font-body m-0 text-nc-black vpo-desc",style:{fontSize:16,lineHeight:"150%"},children:e.text("home.opportunities.description")})]}),o.jsx("ul",{className:"vpo-tiles m-0 list-none p-0",children:k8.map((n,r)=>{var a,l;const s=((a=t[r])==null?void 0:a.title)??n.title,i=Tt((l=t[r])==null?void 0:l.image)??n.img;return o.jsx("li",{className:"vpo-tile",children:o.jsxs(ke,{to:n.href,className:"vpo-tile-link","aria-label":s,children:[o.jsxs("div",{className:"vpo-tile-media",children:[o.jsx("img",{src:i,alt:"",loading:"lazy","aria-hidden":"true"}),o.jsx("span",{"aria-hidden":"true",className:"vpo-tile-overlay"}),o.jsx("span",{className:"font-display vpo-tile-num","aria-hidden":"true",children:n.n})]}),o.jsxs("div",{className:"vpo-tile-foot",children:[o.jsx("span",{className:"font-display uppercase text-nc-black vpo-tile-title",children:s}),o.jsxs("span",{className:"font-display vpo-tile-cta","aria-hidden":"true",children:[e.text("home.opportunities.tile_cta"),o.jsx(Ue,{size:18,strokeWidth:1.75})]})]})]})},n.n)})}),o.jsx("style",{children:` 675 .vpo-head { 676 display: grid; 677 grid-template-columns: 1fr; 678 gap: 24px; 679 align-items: end; 680 } 681 .vpo-title { 682 font-weight: 400; 683 font-size: clamp(34px, 5.5vw, 64px); 684 line-height: 110%; 685 letter-spacing: -1.2px; 686 } 687 .vpo-title-line--indent { 688 display: inline-block; 689 padding-left: clamp(18px, 2.6vw, 38px); 690 } 691 .vpo-desc { max-width: 380px; } 692 @media (min-width: 1024px) { 693 .vpo-head { 694 grid-template-columns: 1fr 380px; 695 gap: 48px; 696 } 697 .vpo-desc { justify-self: end; } 698 } 699 /* minmax(0, 1fr), not 1fr: a bare 1fr column never shrinks below its 700 content, so a long title plus the nowrap "View More" widened its tile 701 and the three photos came out different sizes (222/368/330px at 1100px). */ 702 .vpo-tiles { 703 display: grid; 704 grid-template-columns: repeat(3, minmax(0, 1fr)); 705 gap: 24px; 706 } 707 .vpo-tile-link { 708 display: flex; 709 flex-direction: column; 710 text-decoration: none; 711 color: inherit; 712 height: 100%; 713 } 714 .vpo-tile-media { 715 position: relative; 716 width: 100%; 717 aspect-ratio: 4 / 5; 718 overflow: hidden; 719 background: #E0E4EA; 720 } 721 .vpo-tile-media img { 722 position: absolute; 723 inset: 0; 724 width: 100%; 725 height: 100%; 726 object-fit: cover; 727 transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1); 728 } 729 .vpo-tile-overlay { 730 position: absolute; 731 inset: 0; 732 background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%); 733 } 734 .vpo-tile-num { 735 position: absolute; 736 top: 18px; 737 left: 18px; 738 font-weight: 400; 739 font-size: 18px; 740 letter-spacing: -0.5px; 741 color: #FFFFFF; 742 width: 48px; 743 height: 48px; 744 display: inline-flex; 745 align-items: center; 746 justify-content: center; 747 border: 1px solid rgba(255,255,255,0.7); 748 border-radius: 9999px; 749 } 750 .vpo-tile-link:hover .vpo-tile-media img { transform: scale(1.05); } 751 .vpo-tile-foot { 752 display: flex; 753 flex-wrap: wrap; 754 align-items: center; 755 justify-content: space-between; 756 gap: 8px 16px; 757 padding: 20px 4px 0; 758 } 759 .vpo-tile-title { 760 font-weight: 400; 761 font-size: clamp(20px, 2.4vw, 28px); 762 line-height: 120%; 763 letter-spacing: -0.5px; 764 } 765 .vpo-tile-cta { 766 display: inline-flex; 767 align-items: center; 768 gap: 8px; 769 color: #FE894C; 770 text-transform: uppercase; 771 font-weight: 400; 772 font-size: 14px; 773 letter-spacing: 0.5px; 774 white-space: nowrap; 775 flex: 0 0 auto; 776 } 777 @media (max-width: 1023px) { 778 .vpo-tiles { grid-template-columns: 1fr; gap: 32px; } 779 .vpo-tile-media { aspect-ratio: 16 / 10; } 780 } 781 @media (prefers-reduced-motion: reduce) { 782 .vpo-tile-media img { transition: none; } 783 .vpo-tile-link:hover .vpo-tile-media img { transform: none; } 784 } 785 `})]})};var _f="focusScope.autoFocusOnMount",Sf="focusScope.autoFocusOnUnmount",cw={bubbles:!1,cancelable:!0},S8="FocusScope",DE=w.forwardRef((e,t)=>
vendor: 5,004 bytes, line 785
785{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...a}=e,[l,c]=w.useState(null),d=ts(s),u=ts(i),h=w.useRef(null),f=kn(t,y=>c(y)),p=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(r){let y=function(b){if(p.paused||!l)return;const k=b.target;l.contains(k)?h.current=k:Vs(h.current,{select:!0})},x=function(b){if(p.paused||!l)return;const k=b.relatedTarget;k!==null&&(l.contains(k)||Vs(h.current,{select:!0}))},g=function(b){if(document.activeElement===document.body)for(const S of b)S.removedNodes.length>0&&Vs(l)};document.addEventListener("focusin",y),document.addEventListener("focusout",x);const m=new MutationObserver(g);return l&&m.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",x),m.disconnect()}}},[r,l,p.paused]),w.useEffect(()=>{if(l){uw.add(p);const y=document.activeElement;if(!l.contains(y)){const g=new CustomEvent(_f,cw);l.addEventListener(_f,d),l.dispatchEvent(g),g.defaultPrevented||(C8(N8(zE(l)),{select:!0}),document.activeElement===y&&Vs(l))}return()=>{l.removeEventListener(_f,d),setTimeout(()=>{const g=new CustomEvent(Sf,cw);l.addEventListener(Sf,u),l.dispatchEvent(g),g.defaultPrevented||Vs(y??document.body,{select:!0}),l.removeEventListener(Sf,u),uw.remove(p)},0)}}},[l,d,u,p]);const v=w.useCallback(y=>{if(!n&&!r||p.paused)return;const x=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,g=document.activeElement;if(x&&g){const m=y.currentTarget,[b,k]=E8(m);b&&k?!y.shiftKey&&g===k?(y.preventDefault(),n&&Vs(b,{select:!0})):y.shiftKey&&g===b&&(y.preventDefault(),n&&Vs(k,{select:!0})):g===m&&y.preventDefault()}},[n,r,p.paused]);return o.jsx(Rt.div,{tabIndex:-1,...a,ref:f,onKeyDown:v})});DE.displayName=S8;function C8(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Vs(r,{select:t}),document.activeElement!==n)return}function E8(e){const t=zE(e),n=dw(t,e),r=dw(t.reverse(),e);return[n,r]}function zE(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const s=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||s?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function dw(e,t){for(const n of e)if(!j8(n,{upTo:t}))return n}function j8(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function T8(e){return e instanceof HTMLInputElement&&"select"in e}function Vs(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&T8(e)&&t&&e.select()}}var uw=A8();function A8(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=hw(e,t),e.unshift(t)},remove(t){var n;e=hw(e,t),(n=e[0])==null||n.resume()}}}function hw(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function N8(e){return e.filter(t=>t.tagName!=="A")}var Cf=0;function F8(){w.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??pw()),document.body.insertAdjacentElement("beforeend",e[1]??pw()),Cf++,()=>{Cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Cf--}},[])}function pw(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jr=function(){return Jr=Object.assign||function(t){for(var n,r=1,s=arguments.length;r<s;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Jr.apply(this,arguments)};function BE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(e);s<r.length;s++)t.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(e,r[s])&&(n[r[s]]=e[r[s]]);return n}function P8(e,t,n){if(n||arguments.length===2)for(var r=0,s=t.length,i;r<s;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var bu="right-scroll-bar-position",vu="width-before-scroll-bar",R8="with-scroll-bars-hidden",O8="--removed-body-scroll-bar-size";function Ef(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function M8(e,t){var n=w.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var s=n.value;s!==r&&(n.value=r,n.callback(r,s))}}}})[0];return n.callback=t,n.facade}var I8=typeof window<"u"?w.useLayoutEffect:w.useEffect,fw=new WeakMap;function L8(e,t){var n=M8(null,function(r){return e.forEach(function(s){return Ef(s,r)})});return I8(function(){var r=fw.get(n);if(r){var s=new Set(r),i=new Set(e),a=n.current;
vendor: 4,196 bytes, lines 785-800
785s.forEach(function(l){i.has(l)||Ef(l,null)}),i.forEach(function(l){s.has(l)||Ef(l,a)})}fw.set(n,e)},[e]),n}function D8(e){return e}function z8(e,t){t===void 0&&(t=D8);var n=[],r=!1,s={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(l){return i(l)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(i),a=n}var c=function(){var u=a;a=[],u.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),n={push:function(u){a.push(u),d()},filter:function(u){return a=a.filter(u),n}}}};return s}function B8(e){e===void 0&&(e={});var t=z8(null);return t.options=Jr({async:!0,ssr:!1},e),t}var WE=function(e){var t=e.sideCar,n=BE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return w.createElement(r,Jr({},n))};WE.isSideCarExport=!0;function W8(e,t){return e.useMedium(t),WE}var HE=B8(),jf=function(){},mp=w.forwardRef(function(e,t){var n=w.useRef(null),r=w.useState({onScrollCapture:jf,onWheelCapture:jf,onTouchMoveCapture:jf}),s=r[0],i=r[1],a=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,h=e.shards,f=e.sideCar,p=e.noRelative,v=e.noIsolation,y=e.inert,x=e.allowPinchZoom,g=e.as,m=g===void 0?"div":g,b=e.gapMode,k=BE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=f,E=L8([n,t]),C=Jr(Jr({},k),s);return w.createElement(w.Fragment,null,u&&w.createElement(S,{sideCar:HE,removeScrollBar:d,shards:h,noRelative:p,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!x,lockRef:n,gapMode:b}),a?w.cloneElement(w.Children.only(l),Jr(Jr({},C),{ref:E})):w.createElement(m,Jr({},C,{className:c,ref:E}),l))});mp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mp.classNames={fullWidth:vu,zeroRight:bu};var H8=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $8(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=H8();return t&&e.setAttribute("nonce",t),e}function U8(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function q8(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var V8=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$8())&&(U8(t,n),q8(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},G8=function(){var e=V8();return function(t,n){w.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},$E=function(){var e=G8(),t=function(n){var r=n.styles,s=n.dynamic;return e(r,s),null};return t},K8={left:0,top:0,right:0,gap:0},Tf=function(e){return parseInt(e||"",10)||0},J8=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Tf(n),Tf(r),Tf(s)]},Y8=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return K8;var t=J8(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Q8=$E(),ka="data-scroll-locked",Z8=function(e,t,n,r){var s=e.left,i=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),` 786 .`.concat(R8,` { 787 overflow: hidden `).concat(r,`; 788 padding-right: `).concat(l,"px ").concat(r,`; 789 } 790 body[`).concat(ka,`] { 791 overflow: hidden `).concat(r,`; 792 overscroll-behavior: contain; 793 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 794 padding-left: `.concat(s,`px; 795 padding-top: `).concat(i,`px; 796 padding-right: `).concat(a,`px; 797 margin-left:0; 798 margin-top:0; 799 margin-right: `).concat(l,"px ").concat(r,`; 800 `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";
800")].filter(Boolean).join(""),` 801 } 802 803 .`).concat(bu,` { 804 right: `).concat(l,"px ").concat(r,`; 805 } 806 807 .`).concat(vu,` { 808 margin-right: `).concat(l,"px ").concat(r,`; 809 } 810 811 .`).concat(bu," .").concat(bu,` { 812 right: 0 `).concat(r,`; 813 } 814 815 .`).concat(vu," .").concat(vu,` { 816 margin-right: 0 `).concat(r,`; 817 } 818 819 body[`).concat(ka,`] { 820 `).concat(O8,": ").concat(l,`px; 821 } 822`)},mw=function(){var e=parseInt(document.body.getAttribute(ka)||"0",10);return isFinite(e)?e:0},X8=function(){w.useEffect(function(){return document.body.setAttribute(ka,(mw()+1).toString()),function(){var e=mw()-1;e<=0?document.body.removeAttribute(ka):document.body.setAttribute(ka,e.toString())}},[])},eD=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,s=r===void 0?"margin":r;X8();var i=w.useMemo(function(){return Y8(s)},[s]);return w.createElement(Q8,{styles:Z8(i,!t,s,n?"":"!important")})},Lg=!1;if(typeof window<"u")try{var qd=Object.defineProperty({},"passive",{get:function(){return Lg=!0,!0}});window.addEventListener("test",qd,qd),window.removeEventListener("test",qd,qd)}catch{Lg=!1}var zo=Lg?{passive:!1}:!1,tD=function(e){return e.tagName==="TEXTAREA"},UE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!tD(e)&&n[t]==="visible")},nD=function(e){return UE(e,"overflowY")},rD=function(e){return UE(e,"overflowX")},gw=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var s=qE(e,r);if(s){var i=VE(e,r),a=i[1],l=i[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sD=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},iD=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qE=function(e,t){return e==="v"?nD(t):rD(t)},VE=function(e,t){return e==="v"?sD(t):iD(t)},oD=function(e,t){return e==="h"&&t==="rtl"?-1:1},aD=function(e,t,n,r,s){var i=oD(e,window.getComputedStyle(t).direction),a=i*r,l=n.target,c=t.contains(l),d=!1,u=a>0,h=0,f=0;do{if(!l)break;var p=VE(e,l),v=p[0],y=p[1],x=p[2],g=y-x-i*v;(v||g)&&qE(e,l)&&(h+=g,f+=v);var m=l.parentNode;l=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(u&&(Math.abs(h)<1||!s)||!u&&(Math.abs(f)<1||!s))&&(d=!0),d},Vd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yw=function(e){return[e.deltaX,e.deltaY]},bw=function(e){return e&&"current"in e?e.current:e},lD=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cD=function(e){return` 823 .block-interactivity-`.concat(e,` {pointer-events: none;} 824 .allow-interactivity-`).concat(e,` {pointer-events: all;} 825`)},dD=0,Bo=[];function uD(e){var t=w.useRef([]),n=w.useRef([0,0]),r=w.useRef(),s=w.useState(dD++)[0],i=w.useState($E)[0],a=w.useRef(e);w.useEffect(function(){a.current=e},[e]),w.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var y=P8([e.lockRef.current],(e.shards||[]).map(bw),!0).filter(Boolean);return y.forEach(function(x){return x.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),y.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var l=w.useCallback(function(y,x){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!a.current.allowPinchZoom;var g=Vd(y),m=n.current,b="deltaX"in y?y.deltaX:m[0]-g[0],k="deltaY"in y?y.deltaY:m[1]-g[1],S,E=y.target,C=Math.abs(b)>Math.abs(k)?"h":"v";if("touches"in y&&C==="h"&&E.type==="range")return!1;var N=gw(C,E);if(!N)return!0;if(N?S=C:(S=C==="v"?"h":"v",N=gw(C,E)),!N)return!1;if(!r.current&&"changedTouches"in y&&(b||k)&&(r.current=S),!S)return!0;var R=r.current||S;return aD(R,x,y,R==="h"?b:k,!0)},[]),c=w.useCallback(function(y){var x=y;if(!(!Bo.length||Bo[Bo.length-1]!==i)){var g="deltaY"in x?yw(x):Vd(x),m=t.current.filter(function(S){return S.name===x.type&&(S.target===x.target||x.target===S.shadowParent)&&lD(S.delta,g)})[0];if(m&&m.should){x.cancelable&&x.preventDefault();return}
vendor: 4,333 bytes, line 825
825if(!m){var b=(a.current.shards||[]).map(bw).filter(Boolean).filter(function(S){return S.contains(x.target)}),k=b.length>0?l(x,b[0]):!a.current.noIsolation;k&&x.cancelable&&x.preventDefault()}}},[]),d=w.useCallback(function(y,x,g,m){var b={name:y,delta:x,target:g,should:m,shadowParent:hD(g)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(k){return k!==b})},1)},[]),u=w.useCallback(function(y){n.current=Vd(y),r.current=void 0},[]),h=w.useCallback(function(y){d(y.type,yw(y),y.target,l(y,e.lockRef.current))},[]),f=w.useCallback(function(y){d(y.type,Vd(y),y.target,l(y,e.lockRef.current))},[]);w.useEffect(function(){return Bo.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,zo),document.addEventListener("touchmove",c,zo),document.addEventListener("touchstart",u,zo),function(){Bo=Bo.filter(function(y){return y!==i}),document.removeEventListener("wheel",c,zo),document.removeEventListener("touchmove",c,zo),document.removeEventListener("touchstart",u,zo)}},[]);var p=e.removeScrollBar,v=e.inert;return w.createElement(w.Fragment,null,v?w.createElement(i,{styles:cD(s)}):null,p?w.createElement(eD,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hD(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pD=W8(HE,uD);var GE=w.forwardRef(function(e,t){return w.createElement(mp,Jr({},e,{ref:t,sideCar:pD}))});GE.classNames=mp.classNames;var fD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Wo=new WeakMap,Gd=new WeakMap,Kd={},Af=0,KE=function(e){return e&&(e.host||KE(e.parentNode))},mD=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=KE(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},gD=function(e,t,n,r){var s=mD(t,Array.isArray(e)?e:[e]);Kd[n]||(Kd[n]=new WeakMap);var i=Kd[n],a=[],l=new Set,c=new Set(s),d=function(h){!h||l.has(h)||(l.add(h),d(h.parentNode))};s.forEach(d);var u=function(h){!h||c.has(h)||Array.prototype.forEach.call(h.children,function(f){if(l.has(f))u(f);else try{var p=f.getAttribute(r),v=p!==null&&p!=="false",y=(Wo.get(f)||0)+1,x=(i.get(f)||0)+1;Wo.set(f,y),i.set(f,x),a.push(f),y===1&&v&&Gd.set(f,!0),x===1&&f.setAttribute(n,"true"),v||f.setAttribute(r,"true")}catch(g){console.error("aria-hidden: cannot operate on ",f,g)}})};return u(t),l.clear(),Af++,function(){a.forEach(function(h){var f=Wo.get(h)-1,p=i.get(h)-1;Wo.set(h,f),i.set(h,p),f||(Gd.has(h)||h.removeAttribute(r),Gd.delete(h)),p||h.removeAttribute(n)}),Af--,Af||(Wo=new WeakMap,Wo=new WeakMap,Gd=new WeakMap,Kd={})}},yD=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),s=fD(e);return s?(r.push.apply(r,Array.from(s.querySelectorAll("[aria-live]"))),gD(r,s,n,"aria-hidden")):function(){return null}},gp="Dialog",[JE,A7]=ed(gp),[bD,zr]=JE(gp),YE=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,l=w.useRef(null),c=w.useRef(null),[d,u]=nS({prop:r,defaultProp:s??!1,onChange:i,caller:gp});return o.jsx(bD,{scope:t,triggerRef:l,contentRef:c,contentId:yf(),titleId:yf(),descriptionId:yf(),open:d,onOpenChange:u,onOpenToggle:w.useCallback(()=>u(h=>!h),[u]),modal:a,children:n})};YE.displayName=gp;var QE="DialogTrigger",ZE=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=zr(QE,n),i=kn(t,s.triggerRef);return o.jsx(Rt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":O0(s.open),...r,ref:i,onClick:ut(e.onClick,s.onOpenToggle)})});ZE.displayName=QE;var P0="DialogPortal",[vD,XE]=JE(P0,{forceMount:void 0}),e4=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:s}=e,i=zr(P0,t);return o.jsx(vD,{scope:t,forceMount:n,children:w.Children.map(r,a=>o.jsx(rl,{present:n||i.open,children:o.jsx(e0,{asChild:!0,container:s,children:a})}))})};e4.displayName=P0;var vh="DialogOverlay",t4=w.forwardRef((e,t)=>{const n=XE(vh,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=zr(vh,e.__scopeDialog);return i.modal?o.jsx(rl,{present:r||i.open,children:o.jsx(wD,{...s,ref:t})}):null});t4.displayName=vh;var xD=Fc("DialogOverlay.RemoveScroll"),wD=w.forwardRef((e,t)=>
vendor: 4,640 bytes, lines 825-829
825{const{__scopeDialog:n,...r}=e,s=zr(vh,n);return o.jsx(GE,{as:xD,allowPinchZoom:!0,shards:[s.contentRef],children:o.jsx(Rt.div,{"data-state":O0(s.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),yo="DialogContent",n4=w.forwardRef((e,t)=>{const n=XE(yo,e.__scopeDialog),{forceMount:r=n.forceMount,...s}=e,i=zr(yo,e.__scopeDialog);return o.jsx(rl,{present:r||i.open,children:i.modal?o.jsx(kD,{...s,ref:t}):o.jsx(_D,{...s,ref:t})})});n4.displayName=yo;var kD=w.forwardRef((e,t)=>{const n=zr(yo,e.__scopeDialog),r=w.useRef(null),s=kn(t,n.contentRef,r);return w.useEffect(()=>{const i=r.current;if(i)return yD(i)},[]),o.jsx(r4,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ut(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:ut(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&i.preventDefault()}),onFocusOutside:ut(e.onFocusOutside,i=>i.preventDefault())})}),_D=w.forwardRef((e,t)=>{const n=zr(yo,e.__scopeDialog),r=w.useRef(!1),s=w.useRef(!1);return o.jsx(r4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,i),i.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),i.preventDefault()),r.current=!1,s.current=!1},onInteractOutside:i=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const a=i.target;((d=n.triggerRef.current)==null?void 0:d.contains(a))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),r4=w.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:i,...a}=e,l=zr(yo,n),c=w.useRef(null),d=kn(t,c);return F8(),o.jsxs(o.Fragment,{children:[o.jsx(DE,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:s,onUnmountAutoFocus:i,children:o.jsx(np,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":O0(l.open),...a,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(SD,{titleId:l.titleId}),o.jsx(ED,{contentRef:c,descriptionId:l.descriptionId})]})]})}),R0="DialogTitle",s4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=zr(R0,n);return o.jsx(Rt.h2,{id:s.titleId,...r,ref:t})});s4.displayName=R0;var i4="DialogDescription",o4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=zr(i4,n);return o.jsx(Rt.p,{id:s.descriptionId,...r,ref:t})});o4.displayName=i4;var a4="DialogClose",l4=w.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,s=zr(a4,n);return o.jsx(Rt.button,{type:"button",...r,ref:t,onClick:ut(e.onClick,()=>s.onOpenChange(!1))})});l4.displayName=a4;function O0(e){return e?"open":"closed"}var c4="DialogTitleWarning",[N7,d4]=bM(c4,{contentName:yo,titleName:R0,docsSlug:"dialog"}),SD=({titleId:e})=>{const t=d4(c4),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 826 827If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 828 829For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return w.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},CD="DialogDescriptionWarning",ED=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${d4(CD).contentName}}.`;return w.useEffect(()=>{var i;const s=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},jD=YE,TD=ZE,AD=e4,u4=t4,h4=n4,p4=s4,f4=o4,ND=l4;const FD=jD,F7=TD,PD=AD,m4=w.forwardRef(({className:e,...t},n)=>o.jsx(u4,{ref:n,className:Ht("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));m4.displayName=u4.displayName;const g4=w.forwardRef(({className:e,children:t,...n},r)=>o.jsxs(PD,{children:[o.jsx(m4,{}),o.jsxs(h4,{ref:r,className:Ht("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
829nded-lg",e),...n,children:[t,o.jsxs(ND,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx(Eo,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));g4.displayName=h4.displayName;const RD=({className:e,...t})=>o.jsx("div",{className:Ht("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});RD.displayName="DialogHeader";const OD=({className:e,...t})=>o.jsx("div",{className:Ht("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});OD.displayName="DialogFooter";const y4=w.forwardRef(({className:e,...t},n)=>o.jsx(p4,{ref:n,className:Ht("text-lg font-semibold leading-none tracking-tight",e),...t}));y4.displayName=p4.displayName;const MD=w.forwardRef(({className:e,...t},n)=>o.jsx(f4,{ref:n,className:Ht("text-sm text-muted-foreground",e),...t}));MD.displayName=f4.displayName;const Nf=e=>/^[A-Za-z0-9_-]{11}$/.test(e)?{provider:"youtube",id:e}:null;function ID(e){const t=e.trim(),n=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`;let r;try{r=new URL(n)}catch{return null}if(r.protocol!=="https:"&&r.protocol!=="http:")return null;const s=r.hostname.replace(/^(www\.|m\.)/,"");if(s==="youtu.be")return Nf(r.pathname.slice(1));if(s==="youtube.com"||s==="youtube-nocookie.com"){const i=r.searchParams.get("v");if(i)return Nf(i);const a=r.pathname.match(/^\/(?:shorts|embed|live)\/([^/]+)/);return a?Nf(a[1]):null}if(s==="vimeo.com"||s==="player.vimeo.com"){const i=r.pathname.match(/^\/(?:video\/)?(\d+)(?:\/([0-9a-f]+))?\/?$/);if(!i)return null;const a=i[2]??r.searchParams.get("h")??void 0;return{provider:"vimeo",id:i[1],...a&&/^[0-9a-f]+$/.test(a)?{hash:a}:{}}}return null}const LD=e=>e.provider==="vimeo"?`https://player.vimeo.com/video/${e.id}?${e.hash?`h=${e.hash}&`:""}autoplay=1`:`https://www.youtube.com/embed/${e.id}?autoplay=1&rel=0`,Cl=[{src:ui,alt:"National Concerts performance"},{src:dp,alt:"Ensemble performing on stage"},{src:v0,alt:"Conductor leading a rehearsal"},{src:up,alt:"Performers in concert"}],vw=e=>e.flatMap(t=>{var r;const n=ID(t.url??"");return n?[{...n,title:((r=t.title)==null?void 0:r.trim())||"National Concerts video"}]:[]}),DD=e=>e.provider==="youtube"?`https://i.ytimg.com/vi/${e.id}/hqdefault.jpg`:TE,xw=({section:e="both"}={})=>{const t=ve(),n=t.list("home.experience.items"),r=t.list("home.experience.carousel"),s=r.length?r.map((b,k)=>{var S,E;return{src:Tt(b.image)??((S=Cl[k])==null?void 0:S.src)??Cl[0].src,alt:((E=Cl[k])==null?void 0:E.alt)??""}}):Cl,[i,a]=w.useState(-1),[l,c]=w.useState(1),[d,u]=w.useState(null),[h,f]=w.useState(0),p=vw(t.list("home.experience.videos")),v=p.length?p:vw(Ig["home.experience.videos"]),y=v.length,x=Math.min(l,y-1),g=y>1?x/(y-1)*100:100,m=d!==null?v[d]:void 0;return w.useEffect(()=>{var k;if(e==="highlights"||(k=window.matchMedia)!=null&&k.call(window,"(prefers-reduced-motion: reduce)").matches)return;const b=window.setInterval(()=>{f(S=>(S+1)%s.length)},5e3);return()=>window.clearInterval(b)},[e,s.length]),o.jsxs("section",{className:"nc-container bg-nc-white py-16 md:py-20 overflow-hidden",children:[o.jsxs("div",{className:"flex flex-col gap-16 md:gap-[100px]",children:[e!=="highlights"&&o.jsxs("div",{className:"flex flex-col gap-8 md:gap-10",children:[o.jsx("h2",{className:"font-display m-0 text-center uppercase text-nc-black",style:{fontWeight:400,fontStyle:"normal",fontSize:"clamp(36px, 6vw, 72px)",lineHeight:"110%",letterSpacing:"-1.2px"},children:t.text("home.experience.accordion_heading")}),o.jsxs("div",{className:"grid grid-cols-1 items-start gap-8 lg:grid-cols-[1fr_minmax(420px,572px)] lg:gap-20",children:[o.jsxs("div",{className:"flex flex-col",children:[o.jsx("ul",{className:"m-0 flex list-none flex-col p-0",children:n.map((b,k)=>{const S=k===i;return o.jsxs("li",{className:"py-2.5",children:[o.jsxs("button",{onClick:()=>a(S?-1:k),"aria-expanded":S,className:"flex w-full items-center justify-between gap-3 bg-transparent p-0 text-left",children:[o.jsx("span",{className:"font-display flex-1 text-nc-black",style:{fontWeight:400,fontStyle:"normal",fontSize:24,lineHeight:"130%",letterSpacing:"-0.5px"},children:b.title}),o.jsx(On,{size:24,strokeWidth:1.75,className:"flex-none text-nc-black transition-transform duration-300",style:{transform:S?"rotate(180deg)":"rotate(0deg)"},"aria-hidden":"true"})]}),o.jsx("div",{className:`grid transition-all duration-300 ease-in-out ${S?"mt-3 grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:o.jsx("div",{className:"overflow-hidden",children:o.jsx("p",{className:"font-body m-0 text-base",style:{color:"#384252",lineHeight:"150%"},children:b.body})})})]},k)})}),o.jsxs(ke,{to:"/inquiry",className:"nc-press mt-6 inline-flex h-12 w-fit items-center justify-center gap-2.5 bg-nc-primary text-nc-white no-underline",style:{padding:"14px 24px"},children:[o.jsx("span",{className:"font-display text-sm",style:{fontWeight:400,lineHeight:"140%"},children:t.text("home.experience.accordion_cta")}),o.jsx(Ue,{size:20,strokeWidth:1.5})]})]}
829),o.jsxs("div",{className:"exp-carousel relative w-full self-start overflow-hidden bg-nc-gs100",style:{height:"clamp(400px, 32vw, 480px)"},role:"group","aria-label":"National Concerts experience images",children:[s.map((b,k)=>o.jsx("img",{src:b.src,alt:b.alt,loading:k===0?"eager":"lazy",className:"absolute inset-0 h-full w-full object-cover transition-opacity duration-700 ease-in-out",style:{opacity:k===h?1:0}},k)),o.jsx("button",{type:"button",onClick:()=>f(b=>(b-1+s.length)%s.length),"aria-label":"Previous image",className:"exp-carousel__arrow absolute left-3 top-1/2 grid h-10 w-10 -translate-y-1/2 place-items-center rounded-full",children:o.jsx(oh,{size:22,strokeWidth:1.5})}),o.jsx("button",{type:"button",onClick:()=>f(b=>(b+1)%s.length),"aria-label":"Next image",className:"exp-carousel__arrow absolute right-3 top-1/2 grid h-10 w-10 -translate-y-1/2 place-items-center rounded-full",children:o.jsx(ah,{size:22,strokeWidth:1.5})}),o.jsx("div",{className:"absolute inset-x-0 bottom-4 z-10 flex items-center justify-center gap-2",children:Cl.map((b,k)=>o.jsx("button",{type:"button",onClick:()=>f(k),"aria-label":`Show image ${k+1}`,"aria-current":k===h,className:"exp-carousel__dot",style:{width:k===h?22:8,height:8,borderRadius:9999,border:0,cursor:"pointer",padding:0,background:k===h?"#FE894C":"rgba(255,255,255,0.65)",transition:"all 220ms ease"}},k))}),o.jsx("style",{children:` 830 .exp-carousel__arrow { 831 z-index: 10; 832 border: 0; 833 cursor: pointer; 834 color: #FFFFFF; 835 background: rgba(20,20,20,0.42); 836 backdrop-filter: blur(4px); 837 -webkit-backdrop-filter: blur(4px); 838 opacity: 0; 839 transition: opacity 200ms ease, background 200ms ease; 840 } 841 .exp-carousel:hover .exp-carousel__arrow, 842 .exp-carousel:focus-within .exp-carousel__arrow { opacity: 1; } 843 .exp-carousel__arrow:hover { background: rgba(254,137,76,0.92); } 844 @media (max-width: 1023px) { 845 .exp-carousel__arrow { opacity: 1; } 846 } 847 `})]})]})]}),e!=="accordion"&&o.jsxs("div",{className:"flex flex-col gap-10 md:gap-[60px]",children:[o.jsx("h3",{className:"font-display m-0 uppercase text-nc-black",style:{fontWeight:400,fontStyle:"normal",fontSize:"clamp(28px, 3.5vw, 40px)",lineHeight:"110%",letterSpacing:"-1px"},children:t.text("home.experience.highlights_heading")}),o.jsxs("div",{className:"exp-vid relative overflow-hidden",children:[o.jsx("div",{className:"exp-vid__track flex items-center transition-transform duration-500 ease-in-out",children:v.map((b,k)=>{const S=k===x,E=DD(b);return o.jsxs("button",{type:"button",onClick:()=>{S?u(k):c(k)},"aria-label":S?`Play ${b.title}`:`Show ${b.title}`,className:`exp-vid__card group relative flex-none cursor-pointer overflow-hidden border-0 bg-transparent p-0 transition-opacity duration-500 ${S?"opacity-100":"opacity-25"}`,children:[o.jsx("img",{src:E,alt:b.title,className:"h-full w-full object-cover",loading:"lazy"}),o.jsx(zD,{})]},k)})}),o.jsx("style",{children:` 848 .exp-vid { height: 294px; } 849 .exp-vid__track { height: 100%; gap: 60px; transform: translateX(calc(50% - 290px - ${x*580}px)); } 850 .exp-vid__card { width: 520px; height: 294px; } 851 @media (max-width: 767px) { 852 .exp-vid { height: 220px; } 853 .exp-vid__track { gap: 16px; transform: translateX(calc(50% - 50vw + 20px - ${x} * (calc(100vw - 40px) + 16px))); } 854 .exp-vid__card { width: calc(100vw - 40px); height: 220px; } 855 } 856 `}),o.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-20 z-10",style:{background:"linear-gradient(90deg, #FFFFFF 0%, rgba(255,255,255,0) 100%)"}}),o.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-20 z-10",style:{background:"linear-gradient(270deg, #FFFFFF 0%, rgba(255,255,255,0) 100%)"}})]}),o.jsxs("div",{className:"flex flex-col items-center gap-6",children:[o.jsxs("div",{className:"relative h-[1.5px] w-full",children:[o.jsx("div",{className:"absolute inset-0 bg-nc-gs300"}),o.jsx("div",{className:"absolute left-0 top-0 h-full bg-nc-gs900 transition-all",style:{width:`${g}%`}})]}),o.jsxs("div",{className:"flex items-center justify-center gap-3",children:[o.jsx("button",{onClick:()=>c(Math.max(0,x-1)),className:"grid h-10 w-10 place-items-center rounded-full bg-nc-gs100","aria-label":"Previous video",children:o.jsx(oh,{size:24,strokeWidth:1.5,className:"text-nc-black"})}),o.jsx("button",{onClick:()=>c(Math.min(y-1,x+1)),className:"grid h-10 w-10 place-items-center rounded-full bg-nc-gs100","aria-label":"Next video",children:o.jsx(ah,{size:24,strokeWidth:1.5,className:"text-nc-black"})})]})]})]})]}),o.jsx(FD,{open:d!==null,onOpenChange:b=>!b&&u(null),children:o.jsxs(g4,{className:"max-w-5xl border-0 bg-black p-0 sm:rounded-lg overflow-hidden",children:[o.jsx(y4,{className:"sr-only",children:m?m.title:"Promotional video"}),o.jsx("div",{className:"relative w-full",style:{aspectRatio:"16 / 9"},children:m&&o.jsx("iframe",{src:LD(m),title:m.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"absolute inset-0 h-full w-full",frameBorder:0})})]})})]})},zD=()=>o.jsx("div",{className:"absolute left-1/2 top-1/2 grid h-14 w-14 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full transition-transform group-hover:scale-110",style:{background:"rgba(0,0,0,0.35)"},children:o.jsx(sl,{size:24,className:"fill-white text-white"})}),ww=[i0,AS,m6,F6,Pc,TS],BD=()=>{const{ref:e,inView:t}=rd(),n=ve(),r=n.list("home.services.items");return o.jsxs("section",{style:{background:"#F4F3EE",padding:"80px 0"},children:[o.jsxs("div",{className:"nc-container flex flex-col gap-10 md:gap-[60px]",children:[o.jsxs("div",{className:"es-head",children:[o.jsx("div",{className:"flex flex-col gap-5",children:o.jsxs("h2",{className:"font-display m-0 uppercase text-nc-black",style:{fontWeight:400,fontSize:"clamp(32px, 4.5vw, 56px)",lineHeight:"110%",letterSpacing:"-1px"},children:[n.text("home.services.heading_line1"),o.jsx("br",{}),o.jsx("span",{style:{color:"#FE894C"},children:n.text("home.services.heading_line2")})]})}),o.jsx("p",{className:"font-body m-0 text-nc-black",style:{fontSize:16,lineHeight:"165%",maxWidth:420},children:n.text("home.services.description")})]}),o.jsx("div",{ref:e,className:`grid gap-5 es-grid nc-stagger${t?" is-in":""}`,children:r.map(({title:s,body:i},a)=>{const l=ww[a]??ww[0];return o.jsxs("article",{className:"es-card flex flex-col gap-4",style:{background:"#FFFFFF",border:"1px solid #EAEAEA",padding:"28px 26px","--i":a},children:[o.jsx("div",{className:"es-ic flex items-center justify-center",style:{width:48,height:48},children:o.jsx(l,{size:22,strokeWidth:1.75})}),o.jsx("h3",{className:"font-display m-0 uppercase text-nc-black",style:{fontWeight:400,fontSize:20,lineHeight:"125%",letterSpacing:"-0.3px"},children:s}),o.jsx("p",{className:"font-body m-0",style:{color:"#3A3A3A",fontSize:15,lineHeight:"160%"},children:i})]},a)})})]}),o.jsx("style",{children:` 857 .es-head { 858 display: grid; 859 grid-template-columns: 1fr; 860 gap: 24px; 861 align-items: end; 862 } 863 @media (min-width: 1024px) { 864 .es-head { 865 grid-template-columns: 1fr 420px; 866 gap: 48px; 867 } 868 .es-head > p { justify-self: end; } 869 } 870 .es-grid { 871 grid-template-columns: repeat(3, 1fr); 872 } 873 .es-card { 874 transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease; 875 } 876 .es-card:hover { 877 transform: translateY(-4px); 878 box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.3); 879 border-color: #FE894C; 880 } 881 .es-ic { 882 background: #FE894C; 883 color: #FFFFFF; 884 transition: background 240ms ease, transform 280ms cubic-bezier(0.22, 1, 0.36, 1); 885 } 886 .es-card:hover .es-ic { 887 background: #E8732A; 888 transform: scale(1.08) rotate(-4deg); 889 } 890 @media (max-width: 1023px) { 891 .es-grid { grid-template-columns: repeat(2, 1fr); } 892 } 893 @media (max-width: 640px) { 894 .es-grid { grid-template-columns: 1fr; } 895 } 896 @media (prefers-reduced-motion: reduce) { 897 .es-card, .es-ic { transition: none; } 898 .es-card:hover { transform: none; } 899 .es-card:hover .es-ic { transform: none; } 900 } 901 `})]})},WD=[{quote:"This was more than a concertâit was a shared artistic journey. The level of professionalism and care was exceptional.",name:"Veres Viktor",role:"Director"},{quote:"National Concerts delivered an experience that challenged our musicians artistically and inspired them far beyond the performance itself.",name:"Csatár Géza",role:"Guest Conductors"},{quote:"From repertoire to production, every detail was thoughtfully curated. This was one of the most meaningful performances our ensemble has experienced.",name:"Orosz Boldizsár",role:"Director"},{quote:"Our students grew tremendously not only musically, but in confidence and collaboration. National Concerts truly understands educational impact.",name:"Szigmund Kálmán",role:"Performer"},{quote:"Performing on such a prestigious stage was unforgettable. National Concerts created an environment where artistry and excellence thrived.",name:"Balogh Imre",role:"Director"},{quote:"The collaboration with guest conductors and composers elevated the entire experience. Our musicians were deeply inspired.",name:"Simon Ãrpád",role:"Performer"},{quote:"National Concerts balances high artistic standards with genuine support for performers. Our ensemble felt both challenged and celebrated.",name:"Fekete Csanád",role:"Director"},{quote:"From rehearsal to final performance, everything was seamless. National Concerts sets a new standard for collaborative concert experiences.",name:"Szücs Endre",role:"Guest Conductors"},{quote:"Our performers left motivated, inspired, and proud of what they achieved together. This experience will stay with them for years.",name:"Novák Balázs",role:"Performer"}],HD=({t:e})=>{const t=e.name.split(" ").map(n=>n[0]).join("").slice(0,2);return o.jsxs("article",{className:"flex min-h-[280px] w-[360px] md:w-[480px] flex-none flex-col justify-between bg-nc-white p-6 md:p-8",children:[o.jsxs("p",{className:"font-body m-0 text-base",style:{color:"#141414",lineHeight:"150%"},children:["â",e.quote,"â"]}),o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx("div",{className:"flex h-11 w-11 flex-none items-center justify-center rounded-full bg-nc-primary/15 font-body text-sm font-semibold text-nc-primary",children:t}),o.jsxs("div",{children:[o.jsx("div",{className:"font-body text-base font-semibold",style:{color:"#141414",lineHeight:"150%"},children:e.name}),o.jsx("div",{className:"font-body text-sm",style:{color:"#454545",lineHeight:"140%"},children:e.role})]})]})]})},$D=({items:e,slow:t=!1,reverse:n=!1})=>o.jsxs("div",{className:"marquee-pause relative w-full overflow-hidden",children:[o.jsx("div",{className:`${t?"marquee-track-slow":"marquee-track"} flex w-max gap-4`,style:n?{animationDirection:"reverse"}:void 0,children:[...e,...e].map((r,s)=>o.jsx(HD,{t:r},s))}),o.jsx("div",{className:"pointer-events-none absolute inset-y-0 left-0 w-[140px] md:w-[220px] z-10",style:{background:"linear-gradient(90deg, hsl(var(--nc-cream)) 0%, hsl(var(--nc-cream) / 0.95) 35%, hsl(var(--nc-cream) / 0) 100%)"}}),o.jsx("div",{className:"pointer-events-none absolute inset-y-0 right-0 w-[140px] md:w-[220px] z-10",style:{background:"linear-gradient(270deg, hsl(var(--nc-cream)) 0%, hsl(var(--nc-cream) / 0.95) 35%, hsl(var(--nc-cream) / 0) 100%)"}})]}),UD=()=>{const{data:e}=PE(),t=e??WD;return o.jsx("section",{className:"bg-nc-cream pt-16 md:pt-20 pb-12 md:pb-[60px]",children:o.jsxs("div",{className:"flex flex-col items-center gap-10 md:gap-[60px]",children:[o.jsx("h2",{className:"font-display m-0 w-full px-6 md:px-[60px] text-center uppercase text-nc-black text-balance",style:{fontWeight:400,fontStyle:"normal",fontSize:"clamp(28px, 4vw, 52px)",lineHeight:"120%",letterSpacing:"-0.52px"},children:"The National Concerts Experience, In Their Words"}),o.jsx("div",{className:"flex w-full flex-col gap-4",children:o.jsx($D,{items:t})})]})})},qD=[{logo:sE,name:"GoPledge"},{logo:eE,name:"ACDA"},{logo:iE,name:"Hal Leonard"},{logo:oE,name:"Hinshaw Music"},{logo:dE,name:"NAfME"},{logo:aE,name:"IFCM"},{logo:nE,name:"Chorus America"},{logo:lE,name:"J.W. Pepper"},{logo:hE,name:"SYTA"},{logo:uE,name:"NCCO"},{logo:rE,name:"GALA Choruses"},{logo:cE,name:"Midwest Clinic"},{logo:XC,name:"American Bandmasters Association"},{logo:tE,name:"CBDNA"}],P7=({logo:e,name:t})=>o.jsx("div",{className:"flex h-[100px] items-center justify-center border border-nc-gs300 px-5",children:o.jsx("img",{src:e,alt:t??"",className:"max-h-[44px] w-auto object-contain",loading:"lazy"})}),VD=({showHeading:e=!0})=>{const{data:t}=DL(),n=(t&&t.length>0?t:qD).map(r=>({src:r.logo,alt:r.name??"",url:"url"in r?r.url:void 0}));return o.jsx("section",{className:`bg-nc-cream ${e?"py-16 md:py-20":"py-6 md:py-8"}`,children:o.jsxs("div",{className:"flex flex-col items-center gap-10 md:gap-[60px]",children:[e&&o.jsx("h2",{className:"font-display m-0 text-center uppercase text-nc-black",style:{paddingLeft:"clamp(20px, 4vw, 60px)",paddingRight:"clamp(20px, 4vw, 60px)",fontWeight:400,fontSize:"clamp(32px, 4.5vw, 52px)",lineHeight:"120%",letterSpacing:"-0.52px"}
901,children:"Partners in Excellence"}),o.jsx("div",{className:"nc-container w-full",children:o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 border-t border-l border-nc-gs300",children:n.filter(r=>r.src).map((r,s)=>{const i=o.jsx("img",{src:r.src,alt:r.alt,className:"max-h-[44px] w-auto object-contain",loading:"lazy"}),a="flex h-[100px] items-center justify-center border-r border-b border-nc-gs300 px-5";return r.url?o.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:a,"aria-label":r.alt||"Partner website",children:i},s):o.jsx("div",{className:a,children:i},s)})})})]})})};var sd=e=>e.type==="checkbox",Ji=e=>e instanceof Date,bn=e=>e==null;const b4=e=>typeof e=="object";var jt=e=>!bn(e)&&!Array.isArray(e)&&b4(e)&&!Ji(e),v4=e=>jt(e)&&e.target?sd(e.target)?e.target.checked:e.target.value:e,GD=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,x4=(e,t)=>e.has(GD(t)),KD=e=>{const t=e.constructor&&e.constructor.prototype;return jt(t)&&t.hasOwnProperty("isPrototypeOf")},M0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Dt(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(M0&&(e instanceof Blob||r))&&(n||jt(e)))if(t=n?[]:{},!n&&!KD(e))t=e;else for(const s in e)e.hasOwnProperty(s)&&(t[s]=Dt(e[s]));else return e;return t}var yp=e=>/^\w*$/.test(e),Ct=e=>e===void 0,I0=e=>Array.isArray(e)?e.filter(Boolean):[],L0=e=>I0(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ee=(e,t,n)=>{if(!t||!jt(e))return n;const r=(yp(t)?[t]:L0(t)).reduce((s,i)=>bn(s)?s:s[i],e);return Ct(r)||r===e?Ct(e[t])?n:e[t]:r},Vn=e=>typeof e=="boolean",Je=(e,t,n)=>{let r=-1;const s=yp(t)?[t]:L0(t),i=s.length,a=i-1;for(;++r<i;){const l=s[r];let c=n;if(r!==a){const d=e[l];c=jt(d)||Array.isArray(d)?d:isNaN(+s[r+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=c,e=e[l]}};const xh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Nr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},us={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},D0=L.createContext(null);D0.displayName="HookFormContext";const z0=()=>L.useContext(D0),R7=e=>{const{children:t,...n}=e;return L.createElement(D0.Provider,{value:n},t)};var w4=(e,t,n,r=!0)=>{const s={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(s,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Nr.all&&(t._proxyFormState[a]=!r||Nr.all),n&&(n[a]=!0),e[a]}});return s};const B0=typeof window<"u"?L.useLayoutEffect:L.useEffect;function JD(e){const t=z0(),{control:n=t.control,disabled:r,name:s,exact:i}=e||{},[a,l]=L.useState(n._formState),c=L.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return B0(()=>n._subscribe({name:s,formState:c.current,exact:i,callback:d=>{!r&&l({...n._formState,...d})}}),[s,r,i]),L.useEffect(()=>{c.current.isValid&&n._setValid(!0)},[n]),L.useMemo(()=>w4(a,n,c.current,!1),[a,n])}var Yr=e=>typeof e=="string",k4=(e,t,n,r,s)=>Yr(e)?(r&&t.watch.add(e),ee(n,e,s)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),ee(n,i))):(r&&(t.watchAll=!0),n),Dg=e=>bn(e)||!b4(e);function ws(e,t,n=new WeakSet){if(Dg(e)||Dg(t))return e===t;if(Ji(e)&&Ji(t))return e.getTime()===t.getTime();const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!s.includes(i))return!1;if(i!=="ref"){const l=t[i];if(Ji(a)&&Ji(l)||jt(a)&&jt(l)||Array.isArray(a)&&Array.isArray(l)?!ws(a,l,n):a!==l)return!1}}return!0}function YD(e){const t=z0(),{control:n=t.control,name:r,defaultValue:s,disabled:i,exact:a,compute:l}=e||{},c=L.useRef(s),d=L.useRef(l),u=L.useRef(void 0);d.current=l;const h=L.useMemo(()=>n._getWatch(r,c.current),[n,r]),[f,p]=L.useState(d.current?d.current(h):h);return B0(()=>n._subscribe({name:r,formState:{values:!0},exact:a,callback:v=>{if(!i){const y=k4(r,n._names,v.values||n._formValues,!1,c.current);if(d.current){const x=d.current(y);ws(x,u.current)||(p(x),u.current=x)}else p(y)}}}),[n,i,r,a]),L.useEffect(()=>n._removeUnmounted()),f}function QD(e){const t=z0(),{name:n,disabled:r,control:s=t.control,shouldUnregister:i,defaultValue:a}=e,l=x4(s._names.array,n),c=L.useMemo(()=>ee(s._formValues,n,ee(s._defaultValues,n,a)),[s,n,a]),d=YD({control:s,name:n,defaultValue:c,exact:!0}),u=JD({control:s,name:n,exact:!0}),h=L.useRef(e),f=L.useRef(s.register(n,{...e.rules,value:d,...Vn(e.disabled)?{disabled:e.disabled}:{}}));h.current=e;const p=L.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ee(u.errors,n)},isDirty:{enumerable:!0,get:()=>!!ee(u.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ee(u.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ee(u.validatingFields,n)},error:{enumerable:!0,get:()=>ee(u.errors,n)}}),[u,n]),v=L.useCallback(m=>f.current.onChange({target:{value:v4(m),name:n},type:xh.CHANGE}),[n]),y=L.useCallback(()=>f.current.onBlur({target:{value:ee(s._formValues,n),name:n},type:xh.BLUR}),[n,s._formValues]),x=L.useCallback(m=>{const b=ee(s._fields,n);b&&m&&(b._f.ref={focus:()=>
vendor: 8,256 bytes, line 901
901m.focus&&m.focus(),select:()=>m.select&&m.select(),setCustomValidity:k=>m.setCustomValidity(k),reportValidity:()=>m.reportValidity()})},[s._fields,n]),g=L.useMemo(()=>({name:n,value:d,...Vn(r)||u.disabled?{disabled:u.disabled||r}:{},onChange:v,onBlur:y,ref:x}),[n,r,u.disabled,v,y,x,d]);return L.useEffect(()=>{const m=s._options.shouldUnregister||i;s.register(n,{...h.current.rules,...Vn(h.current.disabled)?{disabled:h.current.disabled}:{}});const b=(k,S)=>{const E=ee(s._fields,k);E&&E._f&&(E._f.mount=S)};if(b(n,!0),m){const k=Dt(ee(s._options.defaultValues,n));Je(s._defaultValues,n,k),Ct(ee(s._formValues,n))&&Je(s._formValues,n,k)}return!l&&s.register(n),()=>{(l?m&&!s._state.action:m)?s.unregister(n):b(n,!1)}},[n,s,l,i]),L.useEffect(()=>{s._setDisabledField({disabled:r,name:n})},[r,n,s]),L.useMemo(()=>({field:g,formState:u,fieldState:p}),[g,u,p])}const O7=e=>e.render(QD(e));var _4=(e,t,n,r,s)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:s||!0}}:{},ec=e=>Array.isArray(e)?e:[e],kw=()=>{let e=[];return{get observers(){return e},next:s=>{for(const i of e)i.next&&i.next(s)},subscribe:s=>(e.push(s),{unsubscribe:()=>{e=e.filter(i=>i!==s)}}),unsubscribe:()=>{e=[]}}},Nn=e=>jt(e)&&!Object.keys(e).length,W0=e=>e.type==="file",Fr=e=>typeof e=="function",wh=e=>{if(!M0)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},S4=e=>e.type==="select-multiple",H0=e=>e.type==="radio",ZD=e=>H0(e)||sd(e),Ff=e=>wh(e)&&e.isConnected;function XD(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ct(e)?r++:e[t[r++]];return e}function ez(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ct(e[t]))return!1;return!0}function At(e,t){const n=Array.isArray(t)?t:yp(t)?[t]:L0(t),r=n.length===1?e:XD(e,n),s=n.length-1,i=n[s];return r&&delete r[i],s!==0&&(jt(r)&&Nn(r)||Array.isArray(r)&&ez(r))&&At(e,n.slice(0,-1)),e}var C4=e=>{for(const t in e)if(Fr(e[t]))return!0;return!1};function kh(e,t={}){const n=Array.isArray(e);if(jt(e)||n)for(const r in e)Array.isArray(e[r])||jt(e[r])&&!C4(e[r])?(t[r]=Array.isArray(e[r])?[]:{},kh(e[r],t[r])):bn(e[r])||(t[r]=!0);return t}function E4(e,t,n){const r=Array.isArray(e);if(jt(e)||r)for(const s in e)Array.isArray(e[s])||jt(e[s])&&!C4(e[s])?Ct(t)||Dg(n[s])?n[s]=Array.isArray(e[s])?kh(e[s],[]):{...kh(e[s])}:E4(e[s],bn(t)?{}:t[s],n[s]):n[s]=!ws(e[s],t[s]);return n}var El=(e,t)=>E4(e,t,kh(t));const _w={value:!1,isValid:!1},Sw={value:!0,isValid:!0};var j4=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ct(e[0].attributes.value)?Ct(e[0].value)||e[0].value===""?Sw:{value:e[0].value,isValid:!0}:Sw:_w}return _w},T4=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ct(e)?e:t?e===""?NaN:e&&+e:n&&Yr(e)?new Date(e):r?r(e):e;const Cw={isValid:!1,value:null};var A4=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Cw):Cw;function Ew(e){const t=e.ref;return W0(t)?t.files:H0(t)?A4(e.refs).value:S4(t)?[...t.selectedOptions].map(({value:n})=>n):sd(t)?j4(e.refs).value:T4(Ct(t.value)?e.ref.value:t.value,e)}var tz=(e,t,n,r)=>{const s={};for(const i of e){const a=ee(t,i);a&&Je(s,i,a._f)}return{criteriaMode:n,names:[...e],fields:s,shouldUseNativeValidation:r}},_h=e=>e instanceof RegExp,jl=e=>Ct(e)?e:_h(e)?e.source:jt(e)?_h(e.value)?e.value.source:e.value:e,jw=e=>({isOnSubmit:!e||e===Nr.onSubmit,isOnBlur:e===Nr.onBlur,isOnChange:e===Nr.onChange,isOnAll:e===Nr.all,isOnTouch:e===Nr.onTouched});const Tw="AsyncFunction";var nz=e=>!!e&&!!e.validate&&!!(Fr(e.validate)&&e.validate.constructor.name===Tw||jt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Tw)),rz=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Aw=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const tc=(e,t,n,r)=>{for(const s of n||Object.keys(e)){const i=ee(e,s);if(i){const{_f:a,...l}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],s)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(tc(l,t))break}else if(jt(l)&&tc(l,t))break}}};function Nw(e,t,n){const r=ee(e,n);if(r||yp(n))return{error:r,name:n};const s=n.split(".");for(;s.length;){const i=s.join("."),a=ee(t,i),l=ee(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(l&&l.type)return{name:i,error:l};if(l&&l.root&&l.root.type)return{name:`${i}.root`,error:l.root};s.pop()}return{name:n}}var sz=(e,t,n,r)=>{n(e);const{name:s,...i}=e;return Nn(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||Nr.all))},iz=(e,t,n)=>!e||!t||e===t||ec(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),oz=(e,t,n,r,s)=>s.isOnAll?!1:!n&&s.isOnTouch?!(t||e):(n?r.isOnBlur:s.isOnBlur)?!e:(n?r.isOnChange:s.isOnChange)?e:!0,az=(e,t)=>!I0(ee(e,t)).length&&At(e,t),lz=(e,t,n)=>{const r=ec(ee(e,n));return Je(r,"root",t[n]),Je(e,n,r),e},xu=e=>Yr(e);function Fw(e,t,n="validate"){if(xu(e)||Array.isArray(e)&&e.every(xu)||Vn(e)&&!e)return{type:n,message:xu(e)?e:"",ref:t}}var Ho=e=>jt(e)&&!_h(e)?e:{value:e,message:""},Pw=async(e,t,n,r,s,i)=>{const{ref:a,refs:l,required:c,maxLength:d,minLength:u,min:h,max:f,pattern:p,validate:v,name:y,valueAsNumber:x,mount:g}=e._f,m=ee(n,y);if(!g||t.has(y))return{};const b=l?l[0]:a,k=D=>{s&&b.reportValidity&&(b.setCustomValidity(Vn(D)?"":D||""),b.reportValidity())},S={},E=H0(a),C=sd(a),N=E||C,R=(x||W0(a))&&Ct(a.value)&&Ct(m)||wh(a)&&a.value===""||m===""||Array.isArray(m)&&!m.length,M=_4.bind(null,y,r,S),H=(D,U,B,ne=us.maxLength,te=us.minLength)=>{const oe=D?U:B;S[y]={type:D?ne:te,message:oe,ref:a,...M(D?ne:te,oe)}};if(i?!Array.isArray(m)||!m.length:c&&(!N&&(R||bn(m))||Vn(m)&&!m||C&&!j4(l).isValid||E&&!A4(l).isValid)){const{value:D,message:U}=xu(c)?{value:!!c,message:c}:Ho(c);if(D&&(S[y]={type:us.required,message:U,ref:b,...M(us.required,U)},!r))return k(U),S}if(!R&&(!bn(h)||!bn(f))){let D,U;const B=Ho(f),ne=Ho(h);if(!bn(m)&&!isNaN(m)){const te=a.valueAsNumber||m&&+m;bn(B.value)||(D=te>B.value),bn(ne.value)||(U=te<ne.value)}else{const te=a.valueAsDate||new Date(m),oe=z=>new Date(new Date().toDateString()+" "+z),O=a.type=="time",A=a.type=="week";Yr(B.value)&&m&&(D=O?oe(m)>oe(B.value):A?m>B.value:te>new Date(B.value)),Yr(ne.value)&&m&&(U=O?oe(m)<oe(ne.value):A?m<ne.value:te<new Date(ne.value))}if((D||U)&&(H(!!D,B.message,ne.message,us.max,us.min),!r))return k(S[y].message),S}if((d||u)&&!R&&(Yr(m)||i&&Array.isArray(m))){const D=Ho(d),U=Ho(u),B=!bn(D.value)&&m.length>+D.value,ne=!bn(U.value)&&m.length<+U.value;if((B||ne)&&(H(B,D.message,U.message),!r))return k(S[y].message),S}if(p&&!R&&Yr(m)){const{value:D,message:U}=Ho(p);if(_h(D)&&!m.match(D)&&(S[y]={type:us.pattern,message:U,ref:a,...M(us.pattern,U)},!r))return k(U),S}if(v){if(Fr(v)){const D=await v(m,n),U=Fw(D,b);if(U&&(S[y]={...U,...M(us.validate,U.message)},!r))return k(U.message),S}else if(jt(v)){let D={};for(const U in v){if(!Nn(D)&&!r)break;const B=Fw(await v[U](m,n),b,U);B&&(D={...B,...M(U,B.message)},k(B.message),r&&(S[y]=D))}if(!Nn(D)&&(S[y]={ref:b,...D},!r))return S}}return k(!0),S};const cz={mode:Nr.onSubmit,reValidateMode:Nr.onChange,shouldFocusError:!0};function dz(e={}){let t={...cz,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Fr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},s=jt(t.defaultValues)||jt(t.values)?Dt(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:Dt(s),a={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,d=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let h={...u};const f={array:kw(),state:kw()},p=t.criteriaMode===Nr.all,v=j=>P=>{clearTimeout(d),d=setTimeout(j,P)},y=async j=>{if(!t.disabled&&(u.isValid||h.isValid||j)){const P=t.resolver?Nn((await C()).errors):await R(r,!0);P!==n.isValid&&f.state.next({isValid:P})}},x=(j,P)=>{!t.disabled&&(u.isValidating||u.validatingFields||h.isValidating||h.validatingFields)&&((j||Array.from(l.mount)).forEac
vendor: 4,247 bytes, line 901
901h(I=>{I&&(P?Je(n.validatingFields,I,P):At(n.validatingFields,I))}),f.state.next({validatingFields:n.validatingFields,isValidating:!Nn(n.validatingFields)}))},g=(j,P=[],I,K,Y=!0,V=!0)=>{if(K&&I&&!t.disabled){if(a.action=!0,V&&Array.isArray(ee(r,j))){const X=I(ee(r,j),K.argA,K.argB);Y&&Je(r,j,X)}if(V&&Array.isArray(ee(n.errors,j))){const X=I(ee(n.errors,j),K.argA,K.argB);Y&&Je(n.errors,j,X),az(n.errors,j)}if((u.touchedFields||h.touchedFields)&&V&&Array.isArray(ee(n.touchedFields,j))){const X=I(ee(n.touchedFields,j),K.argA,K.argB);Y&&Je(n.touchedFields,j,X)}(u.dirtyFields||h.dirtyFields)&&(n.dirtyFields=El(s,i)),f.state.next({name:j,isDirty:H(j,P),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Je(i,j,P)},m=(j,P)=>{Je(n.errors,j,P),f.state.next({errors:n.errors})},b=j=>{n.errors=j,f.state.next({errors:n.errors,isValid:!1})},k=(j,P,I,K)=>{const Y=ee(r,j);if(Y){const V=ee(i,j,Ct(I)?ee(s,j):I);Ct(V)||K&&K.defaultChecked||P?Je(i,j,P?V:Ew(Y._f)):B(j,V),a.mount&&y()}},S=(j,P,I,K,Y)=>{let V=!1,X=!1;const we={name:j};if(!t.disabled){if(!I||K){(u.isDirty||h.isDirty)&&(X=n.isDirty,n.isDirty=we.isDirty=H(),V=X!==we.isDirty);const Ne=ws(ee(s,j),P);X=!!ee(n.dirtyFields,j),Ne?At(n.dirtyFields,j):Je(n.dirtyFields,j,!0),we.dirtyFields=n.dirtyFields,V=V||(u.dirtyFields||h.dirtyFields)&&X!==!Ne}if(I){const Ne=ee(n.touchedFields,j);Ne||(Je(n.touchedFields,j,I),we.touchedFields=n.touchedFields,V=V||(u.touchedFields||h.touchedFields)&&Ne!==I)}V&&Y&&f.state.next(we)}return V?we:{}},E=(j,P,I,K)=>{const Y=ee(n.errors,j),V=(u.isValid||h.isValid)&&Vn(P)&&n.isValid!==P;if(t.delayError&&I?(c=v(()=>m(j,I)),c(t.delayError)):(clearTimeout(d),c=null,I?Je(n.errors,j,I):At(n.errors,j)),(I?!ws(Y,I):Y)||!Nn(K)||V){const X={...K,...V&&Vn(P)?{isValid:P}:{},errors:n.errors,name:j};n={...n,...X},f.state.next(X)}},C=async j=>{x(j,!0);const P=await t.resolver(i,t.context,tz(j||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return x(j),P},N=async j=>{const{errors:P}=await C(j);if(j)for(const I of j){const K=ee(P,I);K?Je(n.errors,I,K):At(n.errors,I)}else n.errors=P;return P},R=async(j,P,I={valid:!0})=>{for(const K in j){const Y=j[K];if(Y){const{_f:V,...X}=Y;if(V){const we=l.array.has(V.name),Ne=Y._f&&nz(Y._f);Ne&&u.validatingFields&&x([K],!0);const yt=await Pw(Y,l.disabled,i,p,t.shouldUseNativeValidation&&!P,we);if(Ne&&u.validatingFields&&x([K]),yt[V.name]&&(I.valid=!1,P))break;!P&&(ee(yt,V.name)?we?lz(n.errors,yt,V.name):Je(n.errors,V.name,yt[V.name]):At(n.errors,V.name))}!Nn(X)&&await R(X,P,I)}}return I.valid},M=()=>{for(const j of l.unMount){const P=ee(r,j);P&&(P._f.refs?P._f.refs.every(I=>!Ff(I)):!Ff(P._f.ref))&&ge(j)}l.unMount=new Set},H=(j,P)=>!t.disabled&&(j&&P&&Je(i,j,P),!ws(z(),s)),D=(j,P,I)=>k4(j,l,{...a.mount?i:Ct(P)?s:Yr(j)?{[j]:P}:P},I,P),U=j=>I0(ee(a.mount?i:s,j,t.shouldUnregister?ee(s,j,[]):[])),B=(j,P,I={})=>{const K=ee(r,j);let Y=P;if(K){const V=K._f;V&&(!V.disabled&&Je(i,j,T4(P,V)),Y=wh(V.ref)&&bn(P)?"":P,S4(V.ref)?[...V.ref.options].forEach(X=>X.selected=Y.includes(X.value)):V.refs?sd(V.ref)?V.refs.forEach(X=>{(!X.defaultChecked||!X.disabled)&&(Array.isArray(Y)?X.checked=!!Y.find(we=>we===X.value):X.checked=Y===X.value||!!Y)}):V.refs.forEach(X=>X.checked=X.value===Y):W0(V.ref)?V.ref.value="":(V.ref.value=Y,V.ref.type||f.state.next({name:j,values:Dt(i)})))}(I.shouldDirty||I.shouldTouch)&&S(j,Y,I.shouldTouch,I.shouldDirty,!0),I.shouldValidate&&A(j)},ne=(j,P,I)=>{for(const K in P){if(!P.hasOwnProperty(K))return;const Y=P[K],V=j+"."+K,X=ee(r,V);(l.array.has(j)||jt(Y)||X&&!X._f)&&!Ji(Y)?ne(V,Y,I):B(V,Y,I)}},te=(j,P,I={})=>{const K=ee(r,j),Y=l.array.has(j),V=Dt(P);Je(i,j,V),Y?(f.array.next({name:j,values:Dt(i)}),(u.isDirty||u.dirtyFields||h.isDirty||h.dirtyFields)&&I.shouldDirty&&f.state.next({name:j,dirtyFields:El(s,i),isDirty:H(j,V)})):K&&!K._f&&!bn(V)?ne(j,V,I):B(j,V,I),Aw(j,l)&&f.state.next({...n,name:j}),f.state.next({name:a.mount?j:void 0,values:Dt(i)})},oe=async j=>{a.mount=!0;const P=j.target;let I=P.name,K=!0;const Y=ee(r,I),V=Ne=>{K=Number.isNaN(Ne)||Ji(Ne)&&isNaN(Ne.getTime())||ws(Ne,ee(i,I,Ne))},X=jw(t.mode),we=jw(t.reValidateMode);if(Y){let Ne,yt;const _t=P.type?Ew(Y._f):v4(j),Mt=j.type===xh.BLUR||j.type===xh.FOCUS_OUT,nr=!rz(Y._f)&&!t.resolver&&!ee(n.errors,I)&&
vendor: 4,369 bytes, line 901
901!Y._f.deps||oz(Mt,ee(n.touchedFields,I),n.isSubmitted,we,X),It=Aw(I,l,Mt);Je(i,I,_t),Mt?(Y._f.onBlur&&Y._f.onBlur(j),c&&c(0)):Y._f.onChange&&Y._f.onChange(j);const Kt=S(I,_t,Mt),br=!Nn(Kt)||It;if(!Mt&&f.state.next({name:I,type:j.type,values:Dt(i)}),nr)return(u.isValid||h.isValid)&&(t.mode==="onBlur"?Mt&&y():Mt||y()),br&&f.state.next({name:I,...It?{}:Kt});if(!Mt&&It&&f.state.next({...n}),t.resolver){const{errors:Cn}=await C([I]);if(V(_t),K){const Ls=Nw(n.errors,r,I),os=Nw(Cn,r,Ls.name||I);Ne=os.error,I=os.name,yt=Nn(Cn)}}else x([I],!0),Ne=(await Pw(Y,l.disabled,i,p,t.shouldUseNativeValidation))[I],x([I]),V(_t),K&&(Ne?yt=!1:(u.isValid||h.isValid)&&(yt=await R(r,!0)));K&&(Y._f.deps&&A(Y._f.deps),E(I,yt,Ne,Kt))}},O=(j,P)=>{if(ee(n.errors,P)&&j.focus)return j.focus(),1},A=async(j,P={})=>{let I,K;const Y=ec(j);if(t.resolver){const V=await N(Ct(j)?j:Y);I=Nn(V),K=j?!Y.some(X=>ee(V,X)):I}else j?(K=(await Promise.all(Y.map(async V=>{const X=ee(r,V);return await R(X&&X._f?{[V]:X}:X)}))).every(Boolean),!(!K&&!n.isValid)&&y()):K=I=await R(r);return f.state.next({...!Yr(j)||(u.isValid||h.isValid)&&I!==n.isValid?{}:{name:j},...t.resolver||!j?{isValid:I}:{},errors:n.errors}),P.shouldFocus&&!K&&tc(r,O,j?Y:l.mount),K},z=j=>{const P={...a.mount?i:s};return Ct(j)?P:Yr(j)?ee(P,j):j.map(I=>ee(P,I))},ce=(j,P)=>({invalid:!!ee((P||n).errors,j),isDirty:!!ee((P||n).dirtyFields,j),error:ee((P||n).errors,j),isValidating:!!ee(n.validatingFields,j),isTouched:!!ee((P||n).touchedFields,j)}),ae=j=>{j&&ec(j).forEach(P=>At(n.errors,P)),f.state.next({errors:j?n.errors:{}})},pe=(j,P,I)=>{const K=(ee(r,j,{_f:{}})._f||{}).ref,Y=ee(n.errors,j)||{},{ref:V,message:X,type:we,...Ne}=Y;Je(n.errors,j,{...Ne,...P,ref:K}),f.state.next({name:j,errors:n.errors,isValid:!1}),I&&I.shouldFocus&&K&&K.focus&&K.focus()},Z=(j,P)=>Fr(j)?f.state.subscribe({next:I=>"values"in I&&j(D(void 0,P),I)}):D(j,P,!0),ze=j=>f.state.subscribe({next:P=>{iz(j.name,P.name,j.exact)&&sz(P,j.formState||u,Ot,j.reRenderRoot)&&j.callback({values:{...i},...n,...P,defaultValues:s})}}).unsubscribe,Qe=j=>(a.mount=!0,h={...h,...j.formState},ze({...j,formState:h})),ge=(j,P={})=>{for(const I of j?ec(j):l.mount)l.mount.delete(I),l.array.delete(I),P.keepValue||(At(r,I),At(i,I)),!P.keepError&&At(n.errors,I),!P.keepDirty&&At(n.dirtyFields,I),!P.keepTouched&&At(n.touchedFields,I),!P.keepIsValidating&&At(n.validatingFields,I),!t.shouldUnregister&&!P.keepDefaultValue&&At(s,I);f.state.next({values:Dt(i)}),f.state.next({...n,...P.keepDirty?{isDirty:H()}:{}}),!P.keepIsValid&&y()},Ve=({disabled:j,name:P})=>{(Vn(j)&&a.mount||j||l.disabled.has(P))&&(j?l.disabled.add(P):l.disabled.delete(P))},Ze=(j,P={})=>{let I=ee(r,j);const K=Vn(P.disabled)||Vn(t.disabled);return Je(r,j,{...I||{},_f:{...I&&I._f?I._f:{ref:{name:j}},name:j,mount:!0,...P}}),l.mount.add(j),I?Ve({disabled:Vn(P.disabled)?P.disabled:t.disabled,name:j}):k(j,!0,P.value),{...K?{disabled:P.disabled||t.disabled}:{},...t.progressive?{required:!!P.required,min:jl(P.min),max:jl(P.max),minLength:jl(P.minLength),maxLength:jl(P.maxLength),pattern:jl(P.pattern)}:{},name:j,onChange:oe,onBlur:oe,ref:Y=>{if(Y){Ze(j,P),I=ee(r,j);const V=Ct(Y.value)&&Y.querySelectorAll&&Y.querySelectorAll("input,select,textarea")[0]||Y,X=ZD(V),we=I._f.refs||[];if(X?we.find(Ne=>Ne===V):V===I._f.ref)return;Je(r,j,{_f:{...I._f,...X?{refs:[...we.filter(Ff),V,...Array.isArray(ee(s,j))?[{}]:[]],ref:{type:V.type,name:j}}:{ref:V}}}),k(j,!1,void 0,V)}else I=ee(r,j,{}),I._f&&(I._f.mount=!1),(t.shouldUnregister||P.shouldUnregister)&&!(x4(l.array,j)&&a.action)&&l.unMount.add(j)}}},Ge=()=>t.shouldFocusError&&tc(r,O,l.mount),Pe=j=>{Vn(j)&&(f.state.next({disabled:j}),tc(r,(P,I)=>{const K=ee(r,I);K&&(P.disabled=K._f.disabled||j,Array.isArray(K._f.refs)&&K._f.refs.forEach(Y=>{Y.disabled=K._f.disabled||j}))},0,!1))},ie=(j,P)=>async I=>{let K;I&&(I.preventDefault&&I.preventDefault(),I.persist&&I.persist());let Y=Dt(i);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:V,values:X}=await C();n.errors=V,Y=Dt(X)}else await R(r);if(l.disabled.size)for(const V of l.disabled)At(Y,V);if(At(n.errors,"root"),Nn(n.errors)){f.state.next({errors:{}});try{await j(Y,I)}catch(V){K=V}}else P&&await P({...n.errors},I),Ge(),setTimeout(Ge);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nn(n.errors)&&!K,submitCount:n.submitCount+1,errors:n.errors}),K)throw K},Ae=(j,P={})=>
vendor: 4,417 bytes, line 901
901{ee(r,j)&&(Ct(P.defaultValue)?te(j,Dt(ee(s,j))):(te(j,P.defaultValue),Je(s,j,Dt(P.defaultValue))),P.keepTouched||At(n.touchedFields,j),P.keepDirty||(At(n.dirtyFields,j),n.isDirty=P.defaultValue?H(j,Dt(ee(s,j))):H()),P.keepError||(At(n.errors,j),u.isValid&&y()),f.state.next({...n}))},ye=(j,P={})=>{const I=j?Dt(j):s,K=Dt(I),Y=Nn(j),V=Y?s:K;if(P.keepDefaultValues||(s=I),!P.keepValues){if(P.keepDirtyValues){const X=new Set([...l.mount,...Object.keys(El(s,i))]);for(const we of Array.from(X))ee(n.dirtyFields,we)?Je(V,we,ee(i,we)):te(we,ee(V,we))}else{if(M0&&Ct(j))for(const X of l.mount){const we=ee(r,X);if(we&&we._f){const Ne=Array.isArray(we._f.refs)?we._f.refs[0]:we._f.ref;if(wh(Ne)){const yt=Ne.closest("form");if(yt){yt.reset();break}}}}if(P.keepFieldsRef)for(const X of l.mount)te(X,ee(V,X));else r={}}i=t.shouldUnregister?P.keepDefaultValues?Dt(s):{}:Dt(V),f.array.next({values:{...V}}),f.state.next({values:{...V}})}l={mount:P.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!u.isValid||!!P.keepIsValid||!!P.keepDirtyValues,a.watch=!!t.shouldUnregister,f.state.next({submitCount:P.keepSubmitCount?n.submitCount:0,isDirty:Y?!1:P.keepDirty?n.isDirty:!!(P.keepDefaultValues&&!ws(j,s)),isSubmitted:P.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Y?{}:P.keepDirtyValues?P.keepDefaultValues&&i?El(s,i):n.dirtyFields:P.keepDefaultValues&&j?El(s,j):P.keepDirty?n.dirtyFields:{},touchedFields:P.keepTouched?n.touchedFields:{},errors:P.keepErrors?n.errors:{},isSubmitSuccessful:P.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(j,P)=>ye(Fr(j)?j(i):j,P),Ee=(j,P={})=>{const I=ee(r,j),K=I&&I._f;if(K){const Y=K.refs?K.refs[0]:K.ref;Y.focus&&(Y.focus(),P.shouldSelect&&Fr(Y.select)&&Y.select())}},Ot=j=>{n={...n,...j}},ct={control:{register:Ze,unregister:ge,getFieldState:ce,handleSubmit:ie,setError:pe,_subscribe:ze,_runSchema:C,_focusError:Ge,_getWatch:D,_getDirty:H,_setValid:y,_setFieldArray:g,_setDisabledField:Ve,_setErrors:b,_getFieldArray:U,_reset:ye,_resetDefaultValues:()=>Fr(t.defaultValues)&&t.defaultValues().then(j=>{tt(j,t.resetOptions),f.state.next({isLoading:!1})}),_removeUnmounted:M,_disableForm:Pe,_subjects:f,_proxyFormState:u,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(j){a=j},get _defaultValues(){return s},get _names(){return l},set _names(j){l=j},get _formState(){return n},get _options(){return t},set _options(j){t={...t,...j}}},subscribe:Qe,trigger:A,register:Ze,handleSubmit:ie,watch:Z,setValue:te,getValues:z,reset:tt,resetField:Ae,clearErrors:ae,unregister:ge,setError:pe,setFocus:Ee,getFieldState:ce};return{...ct,formControl:ct}}function uz(e={}){const t=L.useRef(void 0),n=L.useRef(void 0),[r,s]=L.useState({isDirty:!1,isValidating:!1,isLoading:Fr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Fr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Fr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...l}=dz(e);t.current={...l,formState:r}}const i=t.current.control;return i._options=e,B0(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>s({...i._formState}),reRenderRoot:!0});return s(l=>({...l,isReady:!0})),i._formState.isReady=!0,a},[i]),L.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),L.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),L.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),L.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),L.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),L.useEffect(()=>{e.values&&!ws(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),n.current=e.values,s(a=>({...a}))):i._resetDefaultValues()},[i,e.values]),L.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}
vendor: 3,334 bytes, line 901
901),t.current.formState=w4(r,i),t.current}const Rw=(e,t,n)=>{if(e&&"reportValidity"in e){const r=ee(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},N4=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Rw(r.ref,n,e):r.refs&&r.refs.forEach(s=>Rw(s,n,e))}},hz=(e,t)=>{t.shouldUseNativeValidation&&N4(e,t);const n={};for(const r in e){const s=ee(t.fields,r),i=Object.assign(e[r]||{},{ref:s&&s.ref});if(pz(t.names||Object.keys(e),r)){const a=Object.assign({},ee(n,r));Je(a,"root",i),Je(n,r,a)}else Je(n,r,i)}return n},pz=(e,t)=>e.some(n=>n.startsWith(t+"."));var fz=function(e,t){for(var n={};e.length;){var r=e[0],s=r.code,i=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var l=r.unionErrors[0].errors[0];n[a]={message:l.message,type:l.code}}else n[a]={message:i,type:s};if("unionErrors"in r&&r.unionErrors.forEach(function(u){return u.errors.forEach(function(h){return e.push(h)})}),t){var c=n[a].types,d=c&&c[r.code];n[a]=_4(a,t,n,s,d?[].concat(d,r.message):r.message)}e.shift()}return n},mz=function(e,t,n){return n===void 0&&(n={}),function(r,s,i){try{return Promise.resolve(function(a,l){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(d){return i.shouldUseNativeValidation&&N4({},i),{errors:{},values:n.raw?r:d}})}catch(d){return l(d)}return c&&c.then?c.then(void 0,l):c}(0,function(a){if(function(l){return Array.isArray(l==null?void 0:l.errors)}(a))return{values:{},errors:hz(fz(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}}},$e;(function(e){e.assertEqual=s=>{};function t(s){}e.assertIs=t;function n(s){throw new Error}e.assertNever=n,e.arrayToEnum=s=>{const i={};for(const a of s)i[a]=a;return i},e.getValidEnumValues=s=>{const i=e.objectKeys(s).filter(l=>typeof s[s[l]]!="number"),a={};for(const l of i)a[l]=s[l];return e.objectValues(a)},e.objectValues=s=>e.objectKeys(s).map(function(i){return s[i]}),e.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const i=[];for(const a in s)Object.prototype.hasOwnProperty.call(s,a)&&i.push(a);return i},e.find=(s,i)=>{for(const a of s)if(i(a))return a},e.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&Number.isFinite(s)&&Math.floor(s)===s;function r(s,i=" | "){return s.map(a=>typeof a=="string"?`'${a}'`:a).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(s,i)=>typeof i=="bigint"?i.toString():i})($e||($e={}));var Ow;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Ow||(Ow={}));const ue=$e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Js=e=>{switch(typeof e){case"undefined":return ue.undefined;case"string":return ue.string;case"number":return Number.isNaN(e)?ue.nan:ue.number;case"boolean":return ue.boolean;case"function":return ue.function;case"bigint":return ue.bigint;case"symbol":return ue.symbol;case"object":return Array.isArray(e)?ue.array:e===null?ue.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ue.promise:typeof Map<"u"&&e instanceof Map?ue.map:typeof Set<"u"&&e instanceof Set?ue.set:typeof Date<"u"&&e instanceof Date?ue.date:ue.object;default:return ue.unknown}}
vendor: 4,686 bytes, line 901
901,G=$e.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Os extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},r={_errors:[]},s=i=>{for(const a of i.issues)if(a.code==="invalid_union")a.unionErrors.map(s);else if(a.code==="invalid_return_type")s(a.returnTypeError);else if(a.code==="invalid_arguments")s(a.argumentsError);else if(a.path.length===0)r._errors.push(n(a));else{let l=r,c=0;for(;c<a.path.length;){const d=a.path[c];c===a.path.length-1?(l[d]=l[d]||{_errors:[]},l[d]._errors.push(n(a))):l[d]=l[d]||{_errors:[]},l=l[d],c++}}};return s(this),r}static assert(t){if(!(t instanceof Os))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,$e.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const s of this.issues)if(s.path.length>0){const i=s.path[0];n[i]=n[i]||[],n[i].push(t(s))}else r.push(t(s));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Os.create=e=>new Os(e);const zg=(e,t)=>{let n;switch(e.code){case G.invalid_type:e.received===ue.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case G.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,$e.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:n=`Unrecognized key(s) in object: ${$e.joinValues(e.keys,", ")}`;break;case G.invalid_union:n="Invalid input";break;case G.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${$e.joinValues(e.options)}`;break;case G.invalid_enum_value:n=`Invalid enum value. Expected ${$e.joinValues(e.options)}, received '${e.received}'`;break;case G.invalid_arguments:n="Invalid function arguments";break;case G.invalid_return_type:n="Invalid function return type";break;case G.invalid_date:n="Invalid date";break;case G.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:$e.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case G.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case G.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case G.custom:n="Invalid input";break;case G.invalid_intersection_types:n="Intersection results could not be merged";break;case G.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case G.not_finite:n="Number must be finite";break;default:n=t.defaultError,$e.assertNever(e)}return{message:n}};let gz=zg;function yz(){return gz}const bz=e=>
vendor: 4,816 bytes, line 901
901{const{data:t,path:n,errorMaps:r,issueData:s}=e,i=[...n,...s.path||[]],a={...s,path:i};if(s.message!==void 0)return{...s,path:i,message:s.message};let l="";const c=r.filter(d=>!!d).slice().reverse();for(const d of c)l=d(a,{data:t,defaultError:l}).message;return{...s,path:i,message:l}};function re(e,t){const n=yz(),r=bz({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===zg?void 0:zg].filter(s=>!!s)});e.common.issues.push(r)}class Xn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const s of n){if(s.status==="aborted")return Se;s.status==="dirty"&&t.dirty(),r.push(s.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const s of n){const i=await s.key,a=await s.value;r.push({key:i,value:a})}return Xn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const s of n){const{key:i,value:a}=s;if(i.status==="aborted"||a.status==="aborted")return Se;i.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof a.value<"u"||s.alwaysSet)&&(r[i.value]=a.value)}return{status:t.value,value:r}}}const Se=Object.freeze({status:"aborted"}),zl=e=>({status:"dirty",value:e}),yr=e=>({status:"valid",value:e}),Mw=e=>e.status==="aborted",Iw=e=>e.status==="dirty",Ga=e=>e.status==="valid",Sh=e=>typeof Promise<"u"&&e instanceof Promise;var he;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(he||(he={}));class Ni{constructor(t,n,r,s){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=s}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Lw=(e,t)=>{if(Ga(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Os(e.common.issues);return this._error=n,this._error}}};function Fe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:s}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:s}:{errorMap:(a,l)=>{const{message:c}=e;return a.code==="invalid_enum_value"?{message:c??l.defaultError}:typeof l.data>"u"?{message:c??r??l.defaultError}:a.code!=="invalid_type"?{message:l.defaultError}:{message:c??n??l.defaultError}},description:s}}class He{get description(){return this._def.description}_getType(t){return Js(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Js(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Xn,ctx:{common:t.parent.common,data:t.data,parsedType:Js(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Sh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Js(t)},s=this._parseSync({data:t,path:r.path,parent:r});return Lw(r,s)}"~validate"(t){var r,s;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Js(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:n});return Ga(i)?{value:i.value}:{issues:n.common.issues}}catch(i){(s=(r=i==null?void 0:i.message)==null?void 0:r.toLowerCase())!=null&&s.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Ga(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Js(t)},s=this._parse({data:t,path:r.path,parent:r}),i=await(Sh(s)?s:Promise.resolve(s));return Lw(r,i)}refine(t,n){const r=s=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(s):n;return this._refinement((s,i)=>{const a=t(s),l=()=>i.addIssue({code:G.custom,...r(s)});
vendor: 6,087 bytes, line 901
901return typeof Promise<"u"&&a instanceof Promise?a.then(c=>c?!0:(l(),!1)):a?!0:(l(),!1)})}refinement(t,n){return this._refinement((r,s)=>t(r)?!0:(s.addIssue(typeof n=="function"?n(r,s):n),!1))}_refinement(t){return new wo({schema:this,typeName:Ce.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return _i.create(this,this._def)}nullable(){return Ya.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return es.create(this)}promise(){return Th.create(this,this._def)}or(t){return Eh.create([this,t],this._def)}and(t){return jh.create(this,t,this._def)}transform(t){return new wo({...Fe(this._def),schema:this,typeName:Ce.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Hg({...Fe(this._def),innerType:this,defaultValue:n,typeName:Ce.ZodDefault})}brand(){return new Wz({typeName:Ce.ZodBranded,type:this,...Fe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new $g({...Fe(this._def),innerType:this,catchValue:n,typeName:Ce.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return $0.create(this,t)}readonly(){return Ug.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const vz=/^c[^\s-]{8,}$/i,xz=/^[0-9a-z]+$/,wz=/^[0-9A-HJKMNP-TV-Z]{26}$/i,kz=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_z=/^[a-z0-9_-]{21}$/i,Sz=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Cz=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Ez=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,jz="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Pf;const Tz=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Az=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Nz=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fz=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pz=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Rz=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,F4="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Oz=new RegExp(`^${F4}$`);function P4(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Mz(e){return new RegExp(`^${P4(e)}$`)}function Iz(e){let t=`${F4}T${P4(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Lz(e,t){return!!((t==="v4"||!t)&&Tz.test(e)||(t==="v6"||!t)&&Nz.test(e))}function Dz(e,t){if(!Sz.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),s=JSON.parse(atob(r));return!(typeof s!="object"||s===null||"typ"in s&&(s==null?void 0:s.typ)!=="JWT"||!s.alg||t&&s.alg!==t)}catch{return!1}}function zz(e,t){return!!((t==="v4"||!t)&&Az.test(e)||(t==="v6"||!t)&&Fz.test(e))}class Cs extends He{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ue.string){const i=this._getOrReturnCtx(t);
vendor: 17,307 bytes, line 901
901return re(i,{code:G.invalid_type,expected:ue.string,received:i.parsedType}),Se}const r=new Xn;let s;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:G.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:G.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){const a=t.data.length>i.value,l=t.data.length<i.value;(a||l)&&(s=this._getOrReturnCtx(t,s),a?re(s,{code:G.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):l&&re(s,{code:G.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")Ez.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"email",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Pf||(Pf=new RegExp(jz,"u")),Pf.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"emoji",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")kz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"uuid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")_z.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"nanoid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")vz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"cuid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")xz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"cuid2",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")wz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"ulid",code:G.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{s=this._getOrReturnCtx(t,s),re(s,{validation:"url",code:G.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"regex",code:G.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(s=this._getOrReturnCtx(t,s),re(s,{code:G.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(s=this._getOrReturnCtx(t,s),re(s,{code:G.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(s=this._getOrReturnCtx(t,s),re(s,{code:G.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Iz(i).test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{code:G.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?Oz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{code:G.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?Mz(i).test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{code:G.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?Cz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"duration",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?Lz(t.data,i.version)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"ip",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?Dz(t.data,i.alg)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"jwt",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?zz(t.data,i.version)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"cidr",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?Pz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"base64",code:G.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?Rz.test(t.data)||(s=this._getOrReturnCtx(t,s),re(s,{validation:"base64url",code:G.invalid_string,message:i.message}),r.dirty()):$e.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(s=>t.test(s),{validation:n,code:G.invalid_string,...he.errToObj(r)})}_addCheck(t){return new Cs({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...he.errToObj(t)})}url(t){return this._addCheck({kind:"url",...he.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...he.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...he.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...he.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...he.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...he.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...he.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...he.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...he.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...he.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...he.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...he.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...he.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...he.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...he.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...he.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...he.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...he.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...he.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...he.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...he.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...he.errToObj(n)})}nonempty(t){return this.min(1,he.errToObj(t))}trim(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Cs.create=e=>new Cs({checks:[],typeName:Ce.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Fe(e)});function Bz(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,s=n>r?n:r,i=Number.parseInt(e.toFixed(s).replace(".","")),a=Number.parseInt(t.toFixed(s).replace(".",""));return i%a/10**s}class bo extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ue.number){const i=this._getOrReturnCtx(t);return re(i,{code:G.invalid_type,expected:ue.number,received:i.parsedType}),Se}let r;const s=new Xn;for(const i of this._def.checks)i.kind==="int"?$e.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),re(r,{code:G.invalid_type,expected:"integer",received:"float",message:i.message}),s.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),re(r,{code:G.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),re(r,{code:G.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),s.dirty()):i.kind==="multipleOf"?Bz(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),re(r,{code:G.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),re(r,{code:G.not_finite,message:i.message}),s.dirty()):$e.assertNever(i);return{status:s.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,he.toString(n))}gt(t,n){return this.setLimit("min",t,!1,he.toString(n))}lte(t,n){return this.setLimit("max",t,!0,he.toString(n))}lt(t,n){return this.setLimit("max",t,!1,he.toString(n))}setLimit(t,n,r,s){return new bo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:he.toString(s)}]})}_addCheck(t){return new bo({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:he.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:he.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:he.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:he.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:he.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&$e.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}bo.create=e=>new bo({checks:[],typeName:Ce.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class vo extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ue.bigint)return this._getInvalidInput(t);let r;const s=new Xn;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),re(r,{code:G.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),re(r,{code:G.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),s.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),re(r,{code:G.not_multiple_of,multipleOf:i.value,message:i.message}),s.dirty()):$e.assertNever(i);return{status:s.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return re(n,{code:G.invalid_type,expected:ue.bigint,received:n.parsedType}),Se}gte(t,n){return this.setLimit("min",t,!0,he.toString(n))}gt(t,n){return this.setLimit("min",t,!1,he.toString(n))}lte(t,n){return this.setLimit("max",t,!0,he.toString(n))}lt(t,n){return this.setLimit("max",t,!1,he.toString(n))}setLimit(t,n,r,s){return new vo({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:he.toString(s)}]})}_addCheck(t){return new vo({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:he.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:he.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:he.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:he.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:he.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}vo.create=e=>new vo({checks:[],typeName:Ce.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Fe(e)});class Ch extends He{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ue.boolean){const r=this._getOrReturnCtx(t);return re(r,{code:G.invalid_type,expected:ue.boolean,received:r.parsedType}),Se}return yr(t.data)}}Ch.create=e=>new Ch({typeName:Ce.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Fe(e)});class Ka extends He{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ue.date){const i=this._getOrReturnCtx(t);return re(i,{code:G.invalid_type,expected:ue.date,received:i.parsedType}),Se}if(Number.isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return re(i,{code:G.invalid_date}),Se}const r=new Xn;let s;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:G.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(s=this._getOrReturnCtx(t,s),re(s,{code:G.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):$e.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ka({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:he.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:he.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Ka.create=e=>new Ka({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ce.ZodDate,...Fe(e)});class Dw extends He{_parse(t){if(this._getType(t)!==ue.symbol){const r=this._getOrReturnCtx(t);return re(r,{code:G.invalid_type,expected:ue.symbol,received:r.parsedType}),Se}return yr(t.data)}}Dw.create=e=>new Dw({typeName:Ce.ZodSymbol,...Fe(e)});class zw extends He{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return re(r,{code:G.invalid_type,expected:ue.undefined,received:r.parsedType}),Se}return yr(t.data)}}zw.create=e=>new zw({typeName:Ce.ZodUndefined,...Fe(e)});class Bw extends He{_parse(t){if(this._getType(t)!==ue.null){const r=this._getOrReturnCtx(t);return re(r,{code:G.invalid_type,expected:ue.null,received:r.parsedType}),Se}return yr(t.data)}}Bw.create=e=>new Bw({typeName:Ce.ZodNull,...Fe(e)});class Ww extends He{constructor(){super(...arguments),this._any=!0}_parse(t){return yr(t.data)}}Ww.create=e=>new Ww({typeName:Ce.ZodAny,...Fe(e)});class Bg extends He{constructor(){super(...arguments),this._unknown=!0}_parse(t){return yr(t.data)}}Bg.create=e=>new Bg({typeName:Ce.ZodUnknown,...Fe(e)});class Fi extends He{_parse(t){const n=this._getOrReturnCtx(t);return re(n,{code:G.invalid_type,expected:ue.never,received:n.parsedType}),Se}}Fi.create=e=>new Fi({typeName:Ce.ZodNever,...Fe(e)});class Hw extends He{_parse(t){if(this._getType(t)!==ue.undefined){const r=this._getOrReturnCtx(t);return re(r,{code:G.invalid_type,expected:ue.void,received:r.parsedType}),Se}return yr(t.data)}}Hw.create=e=>new Hw({typeName:Ce.ZodVoid,...Fe(e)});class es extends He{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),s=this._def;
vendor: 4,844 bytes, line 901
901if(n.parsedType!==ue.array)return re(n,{code:G.invalid_type,expected:ue.array,received:n.parsedType}),Se;if(s.exactLength!==null){const a=n.data.length>s.exactLength.value,l=n.data.length<s.exactLength.value;(a||l)&&(re(n,{code:a?G.too_big:G.too_small,minimum:l?s.exactLength.value:void 0,maximum:a?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),r.dirty())}if(s.minLength!==null&&n.data.length<s.minLength.value&&(re(n,{code:G.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),r.dirty()),s.maxLength!==null&&n.data.length>s.maxLength.value&&(re(n,{code:G.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((a,l)=>s.type._parseAsync(new Ni(n,a,n.path,l)))).then(a=>Xn.mergeArray(r,a));const i=[...n.data].map((a,l)=>s.type._parseSync(new Ni(n,a,n.path,l)));return Xn.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new es({...this._def,minLength:{value:t,message:he.toString(n)}})}max(t,n){return new es({...this._def,maxLength:{value:t,message:he.toString(n)}})}length(t,n){return new es({...this._def,exactLength:{value:t,message:he.toString(n)}})}nonempty(t){return this.min(1,t)}}es.create=(e,t)=>new es({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ce.ZodArray,...Fe(t)});function Vo(e){if(e instanceof wt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=_i.create(Vo(r))}return new wt({...e._def,shape:()=>t})}else return e instanceof es?new es({...e._def,type:Vo(e.element)}):e instanceof _i?_i.create(Vo(e.unwrap())):e instanceof Ya?Ya.create(Vo(e.unwrap())):e instanceof xo?xo.create(e.items.map(t=>Vo(t))):e}class wt extends He{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=$e.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ue.object){const d=this._getOrReturnCtx(t);return re(d,{code:G.invalid_type,expected:ue.object,received:d.parsedType}),Se}const{status:r,ctx:s}=this._processInputParams(t),{shape:i,keys:a}=this._getCached(),l=[];if(!(this._def.catchall instanceof Fi&&this._def.unknownKeys==="strip"))for(const d in s.data)a.includes(d)||l.push(d);const c=[];for(const d of a){const u=i[d],h=s.data[d];c.push({key:{status:"valid",value:d},value:u._parse(new Ni(s,h,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof Fi){const d=this._def.unknownKeys;if(d==="passthrough")for(const u of l)c.push({key:{status:"valid",value:u},value:{status:"valid",value:s.data[u]}});else if(d==="strict")l.length>0&&(re(s,{code:G.unrecognized_keys,keys:l}),r.dirty());else if(d!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const d=this._def.catchall;for(const u of l){const h=s.data[u];c.push({key:{status:"valid",value:u},value:d._parse(new Ni(s,h,s.path,u)),alwaysSet:u in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const d=[];for(const u of c){const h=await u.key,f=await u.value;d.push({key:h,value:f,alwaysSet:u.alwaysSet})}return d}).then(d=>Xn.mergeObjectSync(r,d)):Xn.mergeObjectSync(r,c)}get shape(){return this._def.shape()}strict(t){return he.errToObj,new wt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var i,a;const s=((a=(i=this._def).errorMap)==null?void 0:a.call(i,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:he.errToObj(t).message??s}:{message:s}}}:{}})}strip(){return new wt({...this._def,unknownKeys:"strip"})}passthrough(){return new wt({...this._def,unknownKeys:"passthrough"})}extend(t){return new wt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new wt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ce.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new wt({...this._def,catchall:t})}pick(t){const n={};for(const r of $e.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new wt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of $e.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new wt({...this._def,shape:()=>n})}deepPartial(){return Vo(this)}partial(t){const n={};for(const r of $e.objectKeys(this.shape)){const s=this.shape[r];t&&!t[r]?n[r]=s:n[r]=s.optional()}return new wt({...this._def,shape:()=>n})}required(t){const n={};for(const r of $e.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof _i;)i=i._def.innerType;n[r]=i}return new wt({...this._def,shape:()=>n})}keyof(){return R4($e.objectKeys(this.shape))}}wt.create=(e,t)=>
vendor: 6,182 bytes, line 901
901new wt({shape:()=>e,unknownKeys:"strip",catchall:Fi.create(),typeName:Ce.ZodObject,...Fe(t)});wt.strictCreate=(e,t)=>new wt({shape:()=>e,unknownKeys:"strict",catchall:Fi.create(),typeName:Ce.ZodObject,...Fe(t)});wt.lazycreate=(e,t)=>new wt({shape:e,unknownKeys:"strip",catchall:Fi.create(),typeName:Ce.ZodObject,...Fe(t)});class Eh extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function s(i){for(const l of i)if(l.result.status==="valid")return l.result;for(const l of i)if(l.result.status==="dirty")return n.common.issues.push(...l.ctx.common.issues),l.result;const a=i.map(l=>new Os(l.ctx.common.issues));return re(n,{code:G.invalid_union,unionErrors:a}),Se}if(n.common.async)return Promise.all(r.map(async i=>{const a={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(s);{let i;const a=[];for(const c of r){const d={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:d});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:d}),d.common.issues.length&&a.push(d.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const l=a.map(c=>new Os(c));return re(n,{code:G.invalid_union,unionErrors:l}),Se}}get options(){return this._def.options}}Eh.create=(e,t)=>new Eh({options:e,typeName:Ce.ZodUnion,...Fe(t)});function Wg(e,t){const n=Js(e),r=Js(t);if(e===t)return{valid:!0,data:e};if(n===ue.object&&r===ue.object){const s=$e.objectKeys(t),i=$e.objectKeys(e).filter(l=>s.indexOf(l)!==-1),a={...e,...t};for(const l of i){const c=Wg(e[l],t[l]);if(!c.valid)return{valid:!1};a[l]=c.data}return{valid:!0,data:a}}else if(n===ue.array&&r===ue.array){if(e.length!==t.length)return{valid:!1};const s=[];for(let i=0;i<e.length;i++){const a=e[i],l=t[i],c=Wg(a,l);if(!c.valid)return{valid:!1};s.push(c.data)}return{valid:!0,data:s}}else return n===ue.date&&r===ue.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class jh extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=(i,a)=>{if(Mw(i)||Mw(a))return Se;const l=Wg(i.value,a.value);return l.valid?((Iw(i)||Iw(a))&&n.dirty(),{status:n.value,value:l.data}):(re(r,{code:G.invalid_intersection_types}),Se)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,a])=>s(i,a)):s(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}jh.create=(e,t,n)=>new jh({left:e,right:t,typeName:Ce.ZodIntersection,...Fe(n)});class xo extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.array)return re(r,{code:G.invalid_type,expected:ue.array,received:r.parsedType}),Se;if(r.data.length<this._def.items.length)return re(r,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Se;!this._def.rest&&r.data.length>this._def.items.length&&(re(r,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...r.data].map((a,l)=>{const c=this._def.items[l]||this._def.rest;return c?c._parse(new Ni(r,a,r.path,l)):null}).filter(a=>!!a);return r.common.async?Promise.all(i).then(a=>Xn.mergeArray(n,a)):Xn.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new xo({...this._def,rest:t})}}xo.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new xo({items:e,typeName:Ce.ZodTuple,rest:null,...Fe(t)})};class $w extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.map)return re(r,{code:G.invalid_type,expected:ue.map,received:r.parsedType}),Se;const s=this._def.keyType,i=this._def.valueType,a=[...r.data.entries()].map(([l,c],d)=>({key:s._parse(new Ni(r,l,r.path,[d,"key"])),value:i._parse(new Ni(r,c,r.path,[d,"value"]))}));if(r.common.async){const l=new Map;return Promise.resolve().then(async()=>{for(const c of a){const d=await c.key,u=await c.value;if(d.status==="aborted"||u.status==="aborted")return Se;(d.status==="dirty"||u.status==="dirty")&&n.dirty(),l.set(d.value,u.value)}return{status:n.value,value:l}})}else{const l=new Map;for(const c of a){const d=c.key,u=c.value;if(d.status==="aborted"||u.status==="aborted")return Se;(d.status==="dirty"||u.status==="dirty")&&n.dirty(),l.set(d.value,u.value)}return{status:n.value,value:l}}}}$w.create=(e,t,n)=>new $w({valueType:t,keyType:e,typeName:Ce.ZodMap,...Fe(n)});class Mc extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==ue.set)return re(r,{code:G.invalid_type,expected:ue.set,received:r.parsedType}),Se;const s=this._def;s.minSize!==null&&r.data.size<s.minSize.value&&(re(r,{code:G.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),n.dirty()),s.maxSize!==null&&r.data.size>s.maxSize.value&&(re(r,{code:G.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),n.dirty());const i=this._def.valueType;function a(c){const d=new Set;for(const u of c){if(u.status==="aborted")return Se;u.status==="dirty"&&n.dirty(),d.add(u.value)}return{status:n.value,value:d}}const l=[...r.data.values()].map((c,d)=>i._parse(new Ni(r,c,r.path,d)));return r.common.async?Promise.all(l).then(c=>a(c)):a(l)}min(t,n){return new Mc({...this._def,minSize:{value:t,message:he.toString(n)}})}max(t,n){return new Mc({...this._def,maxSize:{value:t,message:he.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Mc.create=(e,t)=>new Mc({valueType:e,minSize:null,maxSize:null,typeName:Ce.ZodSet,...Fe(t)});class Uw extends He{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Uw.create=(e,t)=>new Uw({getter:e,typeName:Ce.ZodLazy,...Fe(t)});class qw extends He{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);
vendor: 4,237 bytes, line 901
901return re(n,{received:n.data,code:G.invalid_literal,expected:this._def.value}),Se}return{status:"valid",value:t.data}}get value(){return this._def.value}}qw.create=(e,t)=>new qw({value:e,typeName:Ce.ZodLiteral,...Fe(t)});function R4(e,t){return new Ja({values:e,typeName:Ce.ZodEnum,...Fe(t)})}class Ja extends He{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return re(n,{expected:$e.joinValues(r),received:n.parsedType,code:G.invalid_type}),Se}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return re(n,{received:n.data,code:G.invalid_enum_value,options:r}),Se}return yr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Ja.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ja.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Ja.create=R4;class Vw extends He{_parse(t){const n=$e.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==ue.string&&r.parsedType!==ue.number){const s=$e.objectValues(n);return re(r,{expected:$e.joinValues(s),received:r.parsedType,code:G.invalid_type}),Se}if(this._cache||(this._cache=new Set($e.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const s=$e.objectValues(n);return re(r,{received:r.data,code:G.invalid_enum_value,options:s}),Se}return yr(t.data)}get enum(){return this._def.values}}Vw.create=(e,t)=>new Vw({values:e,typeName:Ce.ZodNativeEnum,...Fe(t)});class Th extends He{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ue.promise&&n.common.async===!1)return re(n,{code:G.invalid_type,expected:ue.promise,received:n.parsedType}),Se;const r=n.parsedType===ue.promise?n.data:Promise.resolve(n.data);return yr(r.then(s=>this._def.type.parseAsync(s,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Th.create=(e,t)=>new Th({type:e,typeName:Ce.ZodPromise,...Fe(t)});class wo extends He{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ce.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),s=this._def.effect||null,i={addIssue:a=>{re(r,a),a.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),s.type==="preprocess"){const a=s.transform(r.data,i);if(r.common.async)return Promise.resolve(a).then(async l=>{if(n.value==="aborted")return Se;const c=await this._def.schema._parseAsync({data:l,path:r.path,parent:r});return c.status==="aborted"?Se:c.status==="dirty"||n.value==="dirty"?zl(c.value):c});{if(n.value==="aborted")return Se;const l=this._def.schema._parseSync({data:a,path:r.path,parent:r});return l.status==="aborted"?Se:l.status==="dirty"||n.value==="dirty"?zl(l.value):l}}if(s.type==="refinement"){const a=l=>{const c=s.refinement(l,i);if(r.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return l};if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Se:(l.status==="dirty"&&n.dirty(),a(l.value),{status:n.value,value:l.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>l.status==="aborted"?Se:(l.status==="dirty"&&n.dirty(),a(l.value).then(()=>({status:n.value,value:l.value}))))}if(s.type==="transform")if(r.common.async===!1){const a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ga(a))return Se;const l=s.transform(a.value,i);if(l instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:l}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>Ga(a)?Promise.resolve(s.transform(a.value,i)).then(l=>({status:n.value,value:l})):Se);$e.assertNever(s)}}
vendor: 4,686 bytes, line 901
901wo.create=(e,t,n)=>new wo({schema:e,typeName:Ce.ZodEffects,effect:t,...Fe(n)});wo.createWithPreprocess=(e,t,n)=>new wo({schema:t,effect:{type:"preprocess",transform:e},typeName:Ce.ZodEffects,...Fe(n)});class _i extends He{_parse(t){return this._getType(t)===ue.undefined?yr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}_i.create=(e,t)=>new _i({innerType:e,typeName:Ce.ZodOptional,...Fe(t)});class Ya extends He{_parse(t){return this._getType(t)===ue.null?yr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ya.create=(e,t)=>new Ya({innerType:e,typeName:Ce.ZodNullable,...Fe(t)});class Hg extends He{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===ue.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Hg.create=(e,t)=>new Hg({innerType:e,typeName:Ce.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Fe(t)});class $g extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},s=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Sh(s)?s.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Os(r.common.issues)},input:r.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new Os(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}$g.create=(e,t)=>new $g({innerType:e,typeName:Ce.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Fe(t)});class Gw extends He{_parse(t){if(this._getType(t)!==ue.nan){const r=this._getOrReturnCtx(t);return re(r,{code:G.invalid_type,expected:ue.nan,received:r.parsedType}),Se}return{status:"valid",value:t.data}}}Gw.create=e=>new Gw({typeName:Ce.ZodNaN,...Fe(e)});class Wz extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class $0 extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?Se:i.status==="dirty"?(n.dirty(),zl(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{const s=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return s.status==="aborted"?Se:s.status==="dirty"?(n.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:r.path,parent:r})}}static create(t,n){return new $0({in:t,out:n,typeName:Ce.ZodPipeline})}}class Ug extends He{_parse(t){const n=this._def.innerType._parse(t),r=s=>(Ga(s)&&(s.value=Object.freeze(s.value)),s);return Sh(n)?n.then(s=>r(s)):r(n)}unwrap(){return this._def.innerType}}Ug.create=(e,t)=>new Ug({innerType:e,typeName:Ce.ZodReadonly,...Fe(t)});wt.lazycreate;var Ce;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ce||(Ce={}));const Hz=Cs.create;bo.create;vo.create;const M7=Ch.create;Ka.create;const I7=Bg.create;Fi.create;const L7=es.create,$z=wt.create;wt.strictCreate;Eh.create;jh.create;xo.create;Ja.create;Th.create;_i.create;Ya.create;const D7=wo.createWithPreprocess,z7={string:e=>Cs.create({...e,coerce:!0}),number:e=>bo.create({...e,coerce:!0}),boolean:e=>Ch.create({...e,coerce:!0}),bigint:e=>vo.create({...e,coerce:!0}),date:e=>Ka.create({...e,coerce:!0})},Uz=$z({email:Hz().trim().email("Please enter a valid email address.")}),O4=()=>{const e=ve(),{register:t,handleSubmit:n,reset:r,formState:{errors:s,isSubmitting:i}}=uz({resolver:mz(Uz)}),a=async({email:l})=>{const{data:c,error:d}=await pr.functions.invoke("flodesk-subscribe",{body:{email:l,source:window.location.pathname}});
901if(d||c&&c.error){Lx.error((c==null?void 0:c.error)??"We couldn't sign you up right now. Please try again.");return}Lx.success("Almost there â check your inbox to confirm your subscription."),r()};return o.jsx("section",{className:"bg-nc-white",children:o.jsxs("div",{className:"relative w-full overflow-hidden",children:[o.jsx("img",{src:e.image("newsletter.background",vE),alt:"",className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"}),o.jsx("div",{className:"absolute inset-0 bg-nc-black/60"}),o.jsxs("div",{className:"relative mx-auto flex w-full max-w-[1280px] flex-col items-center justify-center gap-6 text-center",style:{padding:"clamp(56px, 9vw, 100px) clamp(20px, 5vw, 64px)"},children:[o.jsx("img",{src:e.image("newsletter.wordmark",xE),alt:"",className:"h-[44px] w-auto object-contain",loading:"lazy"}),o.jsx("h3",{className:"font-display m-0 uppercase text-nc-white text-balance",style:{fontWeight:400,fontSize:"clamp(28px, 5vw, 64px)",lineHeight:"110%",letterSpacing:"-0.5px",maxWidth:"16ch"},children:e.text("newsletter.headline")}),o.jsx("p",{className:"font-body m-0 text-nc-white",style:{fontSize:14,lineHeight:"160%",maxWidth:720},children:e.text("newsletter.body")}),o.jsxs("form",{className:"mt-2 flex w-full max-w-[640px] flex-col gap-3 sm:flex-row",onSubmit:n(a),noValidate:!0,children:[o.jsxs("div",{className:"flex w-full flex-col gap-1 text-left",children:[o.jsx("input",{type:"email",placeholder:e.text("newsletter.email_placeholder"),"aria-label":"Email address","aria-invalid":s.email?"true":"false",disabled:i,className:"font-body h-12 w-full bg-nc-white px-5 text-nc-black outline-none disabled:opacity-70",style:{fontSize:14},...t("email")}),s.email&&o.jsx("span",{className:"font-body text-nc-white",style:{fontSize:12},role:"alert",children:s.email.message})]}),o.jsx("button",{type:"submit",disabled:i,className:"inline-flex h-12 items-center justify-center bg-nc-primary px-8 text-nc-white whitespace-nowrap disabled:opacity-70",children:o.jsx("span",{className:"font-display uppercase",style:{fontWeight:400,fontSize:13,letterSpacing:"0.5px"},children:i?"Subscribingâ¦":e.text("newsletter.submit_label")})})]})]})]})})},qz=[{label:"Home",to:"/"},{label:"Perform With Us",to:"/perform-with-us"},{label:"Box Office",to:"/box-office"},{label:"The Experience",to:"/the-experience"},{label:"Choral Series",to:"/choral-series"},{label:"About Us",to:"/about"}],Vz=[{label:"Past Performances",to:"/past-performances"},{label:"Careers",to:"/careers"},{label:"Contact Us",to:"/contact"},{label:"Get Started",to:"/inquiry"}],Gz=({size:e=18})=>o.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:[o.jsx("circle",{cx:"12",cy:"12",r:"10"}),o.jsx("path",{d:"M8 11.5a4 4 0 1 1 4.5 3.5"}),o.jsx("path",{d:"M11 13L8 21"})]}),Kz=[{Icon:b6,href:"https://www.facebook.com/nationalconcerts/",label:"Facebook",key:"social_facebook"},{Icon:Gz,href:"https://www.pinterest.com/nationalconcerts/",label:"Pinterest",key:"social_pinterest"},{Icon:k6,href:"https://www.instagram.com/nationalconcerts/",label:"Instagram",key:"social_instagram"},{Icon:P6,href:"https://www.youtube.com/@nationalconcerts/featured",label:"YouTube",key:"social_youtube"}],Jz="© 2026 National Concerts, All rights reserved.",et=()=>{const{data:e}=ll(),t=ve(),n=e??{},r=n.footer_copyright||Jz,s=Tt(n.brand_logo)??EC;return o.jsx("footer",{className:"nc-container bg-nc-white pt-12 md:pt-16 pb-6",children:o.jsxs("div",{className:"flex flex-col gap-6",children:[o.jsxs("div",{className:"grid grid-cols-1 border-t border-b border-nc-gs200 md:grid-cols-2 md:divide-x md:divide-nc-gs200",children:[o.jsx("div",{className:"flex items-start justify-start py-10 md:py-12 md:pr-10",children:o.jsx("img",{src:s,alt:"National Concerts",className:"h-[96px] w-auto object-contain"})}),o.jsxs("div",{className:"grid grid-cols-1 gap-10 py-10 sm:grid-cols-3 md:py-12 md:pl-10",children:[o.jsxs("div",{className:"flex flex-col items-center gap-4 sm:items-start",children:[o.jsx("h4",{className:"font-body m-0 uppercase text-nc-black",style:{fontWeight:700,fontSize:13,letterSpacing:"0.6px"},children:t.text("footer.col.main_heading")}),o.jsx("ul",{className:"footer-menu-list m-0 flex list-none flex-col gap-2 p-0 text-center sm:text-left",children:qz.map(i=>o.jsx("li",{children:o.jsx(ke,{to:i.to,className:"text-nc-black no-underline hover:text-nc-primary",style:{fontWeight:500,fontSize:14,lineHeight:"160%"},children:i.label})},i.label))})]}),o.jsxs("div",{className:"flex flex-col items-center gap-4 sm:items-start",children:[o.jsx("h4",{className:"font-body m-0 uppercase text-nc-black",style:{fontWeight:700,fontSize:13,letterSpacing:"0.6px"},children:t.text("footer.col.additional_heading")}),o.jsx("ul",{className:"footer-menu-list m-0 flex list-none flex-col gap-2 p-0 text-center sm:text-left",children:Vz.map(i=>o.jsx("li",{children:o.jsx(ke,{to:i.to,className:"text-nc-black no-underline hover:text-nc-primary",style:{fontWeight:500,fontSize:14,lineHeight:"160%"},children:i.label})},i.label))})]}),o.jsxs("div",{className:"flex flex-col items-center gap-4 sm:items-start",children:[o.jsx("h4",{className:"font-body m-0 uppercase text-nc-black",style:{fontWeight:700,fontSize:13,letterSpacing:"0.6px"},children:t.text("footer.col.social_heading")}),o.jsx("div",{className:"flex flex-wrap items-center gap-3",children:Kz.map(({Icon:i,href:a,label:l,key:c})=>o.jsx("a",{href:n[c]||a,target:"_blank",rel:"noopener noreferrer","aria-label":l,className:"grid h-9 w-9 place-items-center rounded-full bg-nc-primary text-nc-white",children:o.jsx(i,{size:18})},l))})]}),o.jsx("style",{children:` 902 .footer-menu-list, .footer-menu-list * { font-family: 'Montserrat', system-ui, sans-serif !important; } 903 `})]})]}),o.jsx("p",{className:"font-body m-0 text-center text-nc-black",style:{fontWeight:500,fontSize:13,lineHeight:"150%"},children:r})]})})},Yz={"fade-up":"",fade:"nc-reveal--fade","fade-left":"nc-reveal--left","fade-right":"nc-reveal--right"},vn=({as:e="div",variant:t="fade-up",delay:n=0,className:r,style:s,children:i,...a})=>{const{ref:l,inView:c}
903=rd(),d=["nc-reveal",Yz[t],c?"is-in":"",r].filter(Boolean).join(" ");return w.createElement(e,{ref:l,className:d,style:{...s,"--nc-reveal-delay":`${n}ms`},...a},i)},Ic="National Concerts",id="https://nationalconcerts.com",M4="National Concerts presents world-class choral, band, and orchestral performances on the world's most respected stages.",Qz=`${id}/og-image.jpg`,bp=e=>`${id}${e}`;function Zz(){return{"@context":"https://schema.org","@type":"Organization",name:Ic,url:id,description:M4,sameAs:["https://www.facebook.com/nationalconcerts/","https://www.instagram.com/nationalconcerts/","https://www.youtube.com/@nationalconcerts/featured"]}}function I4(e){return{"@context":"https://schema.org","@type":"MusicEvent",name:e.title,...e.date?{startDate:e.date}:{},...e.about||e.subtitle?{description:e.about??e.subtitle}:{},...e.venue?{location:{"@type":"Place",name:e.venue}}:{},...e.conductor?{performer:{"@type":"Person",name:e.conductor}}:{},...e.img?{image:e.img}:{},url:bp(`/upcoming-performances/${e.slug}`),organizer:{"@type":"Organization",name:Ic,url:id}}}function Xz(e){return{"@context":"https://schema.org","@type":"CreativeWork",name:e.title,...e.author?{author:{"@type":"Person",name:e.author}}:{},...e.excerpt?{description:e.excerpt.replace(/\.\.\.$/,"")}:{},...e.cardImage?{image:e.cardImage}:{},url:bp(`/commissions/${e.slug}`),publisher:{"@type":"Organization",name:Ic,url:id}}}function st({title:e,description:t,image:n,path:r,type:s="website",jsonLd:i,noindex:a}){const l=e?`${e} â ${Ic}`:Ic,c=t||M4,d=n||Qz,u=r?bp(r):void 0,h=i?Array.isArray(i)?i:[i]:[];return o.jsxs(RN,{children:[o.jsx("title",{children:l}),o.jsx("meta",{name:"description",content:c}),a?o.jsx("meta",{name:"robots",content:"noindex, follow"}):null,u?o.jsx("link",{rel:"canonical",href:u}):null,o.jsx("meta",{property:"og:title",content:l}),o.jsx("meta",{property:"og:description",content:c}),o.jsx("meta",{property:"og:type",content:s}),u?o.jsx("meta",{property:"og:url",content:u}):null,o.jsx("meta",{property:"og:image",content:d}),o.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),o.jsx("meta",{name:"twitter:title",content:l}),o.jsx("meta",{name:"twitter:description",content:c}),o.jsx("meta",{name:"twitter:image",content:d}),h.map((f,p)=>o.jsx("script",{type:"application/ld+json",children:JSON.stringify(f)},p))]})}const eB=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{path:"/",jsonLd:Zz()}),o.jsx(y8,{}),o.jsx(vn,{children:o.jsx(b8,{})}),o.jsx(w8,{}),o.jsx(vn,{children:o.jsx(_8,{})}),o.jsx(vn,{children:o.jsx(xw,{section:"accordion"})}),o.jsx(BD,{}),o.jsx(vn,{children:o.jsx(xw,{section:"highlights"})}),o.jsx(vn,{children:o.jsx(UD,{})}),o.jsx(vn,{children:o.jsx(VD,{})}),o.jsx(vn,{children:o.jsx(O4,{})}),o.jsx(et,{})]}),tB=[{from:"/products/*",to:"/upcoming-performances"},{from:"/collections/*",to:"/upcoming-performances"},{from:"/blogs/upcoming-performances/*",to:"/upcoming-performances"},{from:"/blogs/upcoming-performances",to:"/upcoming-performances"},{from:"/blogs/past-performances/*",to:"/upcoming-performances"},{from:"/blogs/past-performances",to:"/upcoming-performances"},{from:"/blogs/commissions-1/*",to:"/commissions/*"},{from:"/blogs/commissions-1",to:"/commissions"},{from:"/blogs/commissions",to:"/commissions"},{from:"/blogs/composers-in-residence",to:"/browse-by-conductor"},{from:"/blogs/conducting-faculty",to:"/browse-by-conductor"},{from:"/pages/2027-season",to:"/season-overview"},{from:"/pages/2024-season",to:"/season-overview"},{from:"/pages/2020",to:"/season-overview"},{from:"/pages/conductor-composer",to:"/browse-by-conductor"},{from:"/pages/date-venue",to:"/browse-by-date-venue"},{from:"/pages/nbofest",to:"/national-band-orchestra-fest"},{from:"/pages/spotlight-performer",to:"/packages-and-pricing"},{from:"/pages/topricing",to:"/packages-and-pricing"},{from:"/pages/commissions",to:"/commissions"},{from:"/pages/about",to:"/about"},{from:"/pages/about-us",to:"/about"},{from:"/pages/our-team",to:"/team"},{from:"/pages/contact-us",to:"/contact"},{from:"/pages/faq",to:"/faqs"},{from:"/pages/testimonials",to:"/testimonials"},{from:"/pages/privacy-policy",to:"/privacy"},{from:"/pages/title1",to:"/faqs#resources"},{from:"/pages/hotel-section",to:"/the-experience"},{from:"/pages/sample-itinerary",to:"/the-experience"},{from:"/pages/alumni",to:"/about"},{from:"/pages/registration",to:"/inquiry"},{from:"/pages/2027-registration",to:"https://form.jotform.com/nationalconcerts/2027registration"},{from:"/pages/individual-registration",to:"/inquiry"},{from:"/pages/performer-registration",to:"/inquiry"},{from:"/pages/toregistration",to:"/inquiry"},{from:"/pages/frap",to:"/inquiry"},{from:"/pages/individual-frap",to:"/inquiry"},{from:"/pages/dropadd",to:"/inquiry"},{from:"/pages/comptix",to:"/box-office"},{from:"/pages/georgia-tech",to:"/upcoming-performances"},{from:"/pages/msu",to:"/upcoming-performances"},{from:"/pages/peninsulacantare",to:"/upcoming-performances"},{from:"/pages/*",to:"/browse-by-conductor"}];function L4(e,t){const n=(t.replace(/\/+$/,"")||"/").toLowerCase(),r=e.filter(d=>(d.to.replace(/\/+$/,"")||"/").toLowerCase()!==d.from.replace(/\/+$/,"").toLowerCase()),s=r.find(d=>!d.from.endsWith("/*")&&d.from.toLowerCase()===n);if(s)return s.to;const a=r.filter(d=>d.from.endsWith("/*")).map(d=>({prefix:d.from.slice(0,-2).toLowerCase(),to:d.to})).filter(d=>n===d.prefix||n.startsWith(`${d.prefix}/`)).sort((d,u)=>u.prefix.length-d.prefix.length)[0];if(!a)return;if(!a.to.endsWith("/*"))return a.to;const l=n.slice(a.prefix.length).replace(/^\//,""),c=a.to.slice(0,-2);return l?`${c}/${l}`:c}const D4=pr;function z4(){return Qc({queryKey:["public","redirects"],queryFn:async()=>{const{data:e,error:t}=await D4.from("redirects").select("from_path, to_target").eq("status","published");if(t)throw t;return(e??[]).map(n=>({from:n.from_path,to:n.to_target}))},staleTime:5*60*1e3,retry:1})}function nB(e){const t=(e.replace(/\/+$/,"").split("/")[1]??"").toLowerCase(),n=t!==""&&!e.replace(/\/+$/,"").slice(1).includes("/");return Qc({queryKey:["public","landing_pages",t],enabled:n,queryFn:async()=>{const{data:r,error:s}=await D4.from("landing_pages").select("slug, title, intro, body_html, embed_url, embed_title, embed_height, seo_description, noindex").eq("status","published").ilike("slug",t).maybeSingle();if(s)throw s;const i=r;return i?{slug:i.slug,title:i.title,intro:i.intro??"",bodyHtml:i.body_html??"",embedUrl:i.embed_url??"",embedTitle:i.embed_title??"",embedHeight:i.embed_height??1100,seoDescription:i.seo_description??"",noindex:i.noindex??!1}:null},staleTime:5*60*1e3,retry:1})}const B4=({to:e})=>{const t=Zc()["*"]??"",{pathname:n}=un(),r=z4(),i=(r.data?L4(r.data,n):void 0)??e,a=/^https?:\/\//.test(i);if(w.useEffect(()=>{!r.isLoading&&a&&window.location.replace(i)},[r.isLoading,a,i]),r.isLoading||a)return null;if(!i.endsWith("/*"))return o.jsx(gn,{to:i,replace:!0});const l=i.slice(0,-2),c=t.replace(/^\/+|\/+$/g,"");return o.jsx(gn,{to:c?`${l}/${c}`:l,replace:!0})};/*! @license DOMPurify 3.4.16 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.16/LICENSE */function Kw(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 rB(e){if(Array.isArray(e))return e}function sB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,s,i,a,l=[],c=!0,d=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(u){d=!0,s=u}
vendor: 6,833 bytes, lines 903-904
903finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw s}}return l}}function iB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 904In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function oB(e,t){return rB(e)||sB(e,t)||aB(e,t)||iB()}function aB(e,t){if(e){if(typeof e=="string")return Kw(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)?Kw(e,t):void 0}}const W4=Object.entries,Jw=Object.setPrototypeOf,lB=Object.isFrozen,cB=Object.getPrototypeOf,dB=Object.getOwnPropertyDescriptor;let Wt=Object.freeze,Gt=Object.seal,Go=Object.create,H4=typeof Reflect<"u"&&Reflect,qg=H4.apply,Vg=H4.construct;Wt||(Wt=function(t){return t});Gt||(Gt=function(t){return t});qg||(qg=function(t,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(n,s)});Vg||(Vg=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new t(...r)});const Wi=Pt(Array.prototype.forEach),uB=Pt(Array.prototype.lastIndexOf),Yw=Pt(Array.prototype.pop),Tl=Pt(Array.prototype.push),hB=Pt(Array.prototype.splice),_a=Array.isArray,Bl=Pt(String.prototype.toLowerCase),Rf=Pt(String.prototype.toString),Qw=Pt(String.prototype.match),Al=Pt(String.prototype.replace),Zw=Pt(String.prototype.indexOf),pB=Pt(String.prototype.trim),fB=Pt(Number.prototype.toString),mB=Pt(Boolean.prototype.toString),Xw=typeof BigInt>"u"?null:Pt(BigInt.prototype.toString),e1=typeof Symbol>"u"?null:Pt(Symbol.prototype.toString),Fn=Pt(Object.prototype.hasOwnProperty),Nl=Pt(Object.prototype.toString),on=Pt(RegExp.prototype.test),$s=gB(TypeError);function Pt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return qg(e,t,r)}}function gB(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vg(e,n)}}function Be(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Bl;if(Jw&&Jw(e,null),!_a(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=n(s);i!==s&&(lB(t)||(t[r]=i),s=i)}e[s]=!0}return e}function yB(e){for(let t=0;t<e.length;t++)Fn(e,t)||(e[t]=null);return e}function Un(e){const t=Go(null);for(const r of W4(e)){var n=oB(r,2);const s=n[0],i=n[1];Fn(e,s)&&(_a(i)?t[s]=yB(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=Un(i):t[s]=i)}return t}function bB(e){switch(typeof e){case"string":return e;case"number":return fB(e);case"boolean":return mB(e);case"bigint":return Xw?Xw(e):"0";case"symbol":return e1?e1(e):"Symbol()";case"undefined":return Nl(e);case"function":case"object":{if(e===null)return Nl(e);const t=e,n=or(t,"toString");if(typeof n=="function"){const r=n(t);return typeof r=="string"?r:Nl(r)}return Nl(e)}default:return Nl(e)}}function or(e,t){for(;e!==null;){const r=dB(e,t);if(r){if(r.get)return Pt(r.get);if(typeof r.value=="function")return Pt(r.value)}e=cB(e)}function n(){return null}return n}function vB(e){try{return on(e,""),!0}catch{return!1}}const t1=Wt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Of=Wt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Mf=Wt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),xB=Wt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),If=Wt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),wB=Wt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),n1=Wt(["#text"]),r1=Wt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
904spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Lf=Wt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),s1=Wt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Jd=Wt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kB=Gt(/{{[\w\W]*|^[\w\W]*}}/g),_B=Gt(/<%[\w\W]*|^[\w\W]*%>/g),SB=Gt(/\${[\w\W]*/g),CB=Gt(/^data-[\-\w.\u00B7-\uFFFF]+$/),EB=Gt(/^aria-[\-\w]+$/),i1=Gt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jB=Gt(/^(?:\w+script|data):/i),TB=Gt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),AB=Gt(/^html$/i),NB=Gt(/^[a-z][.\w]*(-[.\w]+)+$/i),o1=Gt(/<[/\w!]/g),a1=Gt(/<[/\w]/g),FB=Gt(/<\/no(script|embed|frames)/i),PB=Gt(/\/>/i),$n={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},$4=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],RB=Wt(Be({},$4)),OB=function(){const e={};return Wi($4,t=>{e[t]=Gt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Wt(e)}(),MB=function(){return typeof window>"u"?null:window},IB=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;
vendor: 4,341 bytes, line 904
904const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},l1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Us=function(t,n,r,s){return Fn(t,n)&&_a(t[n])?Be(s.base?Un(s.base):{},t[n],s.transform):r},Df=function(t,n,r){const s=Fn(t,n)?t[n]:void 0;return s&&typeof s=="object"?Un(s):r()};function U4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MB();const t=q=>U4(q);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==$n.document||!e.Element)return t.isSupported=!1,t;let n=e.document;const r=n,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,a=e.Node,l=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const d=e.DOMParser,u=e.trustedTypes,h=l.prototype,f=or(h,"cloneNode"),p=or(h,"remove"),v=or(h,"removeAttributeNode"),y=or(h,"nextSibling"),x=or(h,"childNodes"),g=or(h,"parentNode"),m=or(h,"shadowRoot"),b=or(h,"attributes"),k=a&&a.prototype?or(a.prototype,"nodeType"):null,S=a&&a.prototype?or(a.prototype,"nodeName"):null,E=a&&a.prototype?or(a.prototype,"ownerDocument"):null,C=function(_){return k?k(_):_.nodeType},N=function(_){return S?S(_):_.nodeName};if(typeof i=="function"){const q=n.createElement("template");q.content&&q.content.ownerDocument&&(n=q.content.ownerDocument)}let R,M="",H,D=!1,U=0;const B=function(){if(U>0)throw $s('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ne=function(_){B(),U++;try{return R.createHTML(_)}finally{U--}},te=function(_){B(),U++;try{return R.createScriptURL(_)}finally{U--}},oe=function(){return D||(H=IB(u,s),D=!0),H},O=n,A=O.implementation,z=O.createNodeIterator,ce=O.createDocumentFragment,ae=O.getElementsByTagName,pe=r.importNode;let Z=l1();t.isSupported=typeof W4=="function"&&typeof g=="function"&&A&&A.createHTMLDocument!==void 0;const ze=kB,Qe=_B,ge=SB,Ve=CB,Ze=EB,Ge=jB,Pe=TB,ie=NB;let Ae=i1,ye=null;const tt=Be({},[...t1,...Of,...Mf,...If,...n1]);let Ee=null;const Ot=Be({},[...r1,...Lf,...s1,...Jd]);let it=Object.seal(Go(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ct=null,j=null;const P=Object.seal(Go(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let I=!0,K=!0,Y=!1,V=!0,X=!1,we=!0,Ne=!1,yt=!1,_t=null,Mt=null,nr=!1,It=!1,Kt=!1,br=!1,Cn=!0,Ls=!1;const os="user-content-";let as=!0,Ds=!1,vr={},Wn=null;const En=Be({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let To=null;const be=Be({},["audio","video","img","source","image","track"]);let Le=null;const Ke=Be({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),tn="http://www.w3.org/1998/Math/MathML",nn="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let jn=Lt,hn=!1,rr=null;const hj=Be({},[tn,nn,Lt],Rf),tb=Wt(["mi","mo","mn","ms","mtext"]);let kp=Be({},tb);const nb=Wt(["annotation-xml"]);let _p=Be({},nb);const pj=Be({},["title","style","font","a","script"]);let cl=null;const fj=["application/xhtml+xml","text/html"],mj="text/html";let St=null,Ao=null;const gj=n.createElement("form"),rb=function(_){return _ instanceof RegExp||_ instanceof Function},Sp=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ao&&Ao===_)return;(!_||typeof _!="object")&&(_={}
vendor: 11,937 bytes, line 904
904),_=Un(_),cl=fj.indexOf(_.PARSER_MEDIA_TYPE)===-1?mj:_.PARSER_MEDIA_TYPE,St=cl==="application/xhtml+xml"?Rf:Bl,ye=Us(_,"ALLOWED_TAGS",tt,{transform:St}),Ee=Us(_,"ALLOWED_ATTR",Ot,{transform:St}),rr=Us(_,"ALLOWED_NAMESPACES",hj,{transform:Rf}),Le=Us(_,"ADD_URI_SAFE_ATTR",Ke,{transform:St,base:Ke}),To=Us(_,"ADD_DATA_URI_TAGS",be,{transform:St,base:be}),Wn=Us(_,"FORBID_CONTENTS",En,{transform:St}),ct=Us(_,"FORBID_TAGS",Un({}),{transform:St}),j=Us(_,"FORBID_ATTR",Un({}),{transform:St}),vr=Fn(_,"USE_PROFILES")?_.USE_PROFILES&&typeof _.USE_PROFILES=="object"?Un(_.USE_PROFILES):_.USE_PROFILES:!1,I=_.ALLOW_ARIA_ATTR!==!1,K=_.ALLOW_DATA_ATTR!==!1,Y=_.ALLOW_UNKNOWN_PROTOCOLS||!1,V=_.ALLOW_SELF_CLOSE_IN_ATTR!==!1,X=_.SAFE_FOR_TEMPLATES||!1,we=_.SAFE_FOR_XML!==!1,Ne=_.WHOLE_DOCUMENT||!1,It=_.RETURN_DOM||!1,Kt=_.RETURN_DOM_FRAGMENT||!1,br=_.RETURN_TRUSTED_TYPE||!1,nr=_.FORCE_BODY||!1,Cn=_.SANITIZE_DOM!==!1,Ls=_.SANITIZE_NAMED_PROPS||!1,as=_.KEEP_CONTENT!==!1,Ds=_.IN_PLACE||!1,Ae=vB(_.ALLOWED_URI_REGEXP)?_.ALLOWED_URI_REGEXP:i1,jn=typeof _.NAMESPACE=="string"?_.NAMESPACE:Lt,kp=Df(_,"MATHML_TEXT_INTEGRATION_POINTS",()=>Be({},tb)),_p=Df(_,"HTML_INTEGRATION_POINTS",()=>Be({},nb));const F=Df(_,"CUSTOM_ELEMENT_HANDLING",()=>Go(null));if(it=Go(null),Fn(F,"tagNameCheck")&&rb(F.tagNameCheck)&&(it.tagNameCheck=F.tagNameCheck),Fn(F,"attributeNameCheck")&&rb(F.attributeNameCheck)&&(it.attributeNameCheck=F.attributeNameCheck),Fn(F,"allowCustomizedBuiltInElements")&&typeof F.allowCustomizedBuiltInElements=="boolean"&&(it.allowCustomizedBuiltInElements=F.allowCustomizedBuiltInElements),Gt(it),X&&(K=!1),Kt&&(It=!0),vr&&(ye=Be({},n1),Ee=Go(null),vr.html===!0&&(Be(ye,t1),Be(Ee,r1)),vr.svg===!0&&(Be(ye,Of),Be(Ee,Lf),Be(Ee,Jd)),vr.svgFilters===!0&&(Be(ye,Mf),Be(Ee,Lf),Be(Ee,Jd)),vr.mathMl===!0&&(Be(ye,If),Be(Ee,s1),Be(Ee,Jd))),P.tagCheck=null,P.attributeCheck=null,Fn(_,"ADD_TAGS")&&(typeof _.ADD_TAGS=="function"?P.tagCheck=_.ADD_TAGS:_a(_.ADD_TAGS)&&(ye===tt&&(ye=Un(ye)),Be(ye,_.ADD_TAGS,St))),Fn(_,"ADD_ATTR")&&(typeof _.ADD_ATTR=="function"?P.attributeCheck=_.ADD_ATTR:_a(_.ADD_ATTR)&&(Ee===Ot&&(Ee=Un(Ee)),Be(Ee,_.ADD_ATTR,St))),Fn(_,"ADD_FORBID_CONTENTS")&&_a(_.ADD_FORBID_CONTENTS)&&(Wn===En&&(Wn=Un(Wn)),Be(Wn,_.ADD_FORBID_CONTENTS,St)),as&&(ye["#text"]=!0),Ne&&Be(ye,["html","head","body"]),ye.table&&(Be(ye,["tbody"]),delete ct.tbody),_.TRUSTED_TYPES_POLICY){if(typeof _.TRUSTED_TYPES_POLICY.createHTML!="function")throw $s('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof _.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $s('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const W=R;R=_.TRUSTED_TYPES_POLICY;try{M=ne("")}catch(J){throw R=W,J}}else _.TRUSTED_TYPES_POLICY===null?(R=void 0,M=""):(R===void 0&&(R=oe()),R&&typeof M=="string"&&(M=ne("")));Wt&&Wt(_),Ao=_},sb=Be({},[...Of,...Mf,...xB]),ib=Be({},[...If,...wB]),yj=function(_,F,W){return F.namespaceURI===Lt?_==="svg":F.namespaceURI===tn?_==="svg"&&(W==="annotation-xml"||kp[W]):!!sb[_]},bj=function(_,F,W){return F.namespaceURI===Lt?_==="math":F.namespaceURI===nn?_==="math"&&_p[W]:!!ib[_]},vj=function(_,F,W){return F.namespaceURI===nn&&!_p[W]||F.namespaceURI===tn&&!kp[W]?!1:!ib[_]&&(pj[_]||!sb[_])},xj=function(_){let F=g(_);(!F||!F.tagName)&&(F={namespaceURI:jn,tagName:"template"});const W=Bl(_.tagName),J=Bl(F.tagName);return rr[_.namespaceURI]?_.namespaceURI===nn?yj(W,F,J):_.namespaceURI===tn?bj(W,F,J):_.namespaceURI===Lt?vj(W,F,J):!!(cl==="application/xhtml+xml"&&rr[_.namespaceURI]):!1},zs=function(_){Tl(t.removed,{element:_});try{g(_).removeChild(_)}catch{if(p(_),!g(_))throw $s("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},ob=function(_,F,W){try{v(_,F)}catch{try{_.removeAttribute(W)}catch{}}},ad=function(_){ld(_);const F=x(_);if(F){const J=[];Wi(F,fe=>{Tl(J,fe)}),Wi(J,fe=>{try{p(fe)}catch{}})}const W=b(_);if(W)for(let J=W.length-1;J>=0;--J){const fe=W[J],Re=fe&&fe.name;typeof Re=="string"&&ob(_,fe,Re)}},Ii=function(_,F,W){if(!W)try{W=F.getAttributeNode(_)}catch{W=null}Tl(t.removed,{attribute:W||null,from:F});try{W?v(F,W):F.removeAttribute(_)}catch{try{F.removeAttribute(_)}catch{}}if(_==="is")if(It||Kt)try{zs(F)}catch{}else try{F.setAttribute(_,"")}catch{}},wj=function(_){const F=b(_);if(F)for(let W=F.length-1;W>=0;--W){const J=F[W],fe=J&&J.name;typeof fe!="string"||Ee[St(fe)]||ob(_,J,fe)}},ld=function(_){const F=[_];for(;F.length>0;){const W=F.pop();C(W)===$n.element&&wj(W);const J=x(W);if(J)for(let fe=J.length-1;fe>=0;--fe)F.push(J[fe])}},ab=function(_,F){return we?_==="patchsrc"?!0:_==="for"&&F!=="label"&&F!=="output":!1},kj=function(_){if(!we)return;const F=[_];for(;F.length>0;){const W=F.pop(),J=C(W);if(J===$n.processingInstruction||J===$n.comment&&on(a1,W.data)){try{p(W)}catch{}continue}if(J===$n.element){const Re=W,De=St(N(W));try{Re.hasAttribute&&Re.hasAttribute("patchsrc")&&Re.removeAttribute("patchsrc"),Re.hasAttribute&&Re.hasAttribute("for")&&ab("for",De)&&Re.removeAttribute("for")}catch{}}const fe=x(W);if(fe)for(let Re=fe.length-1;Re>=0;--Re)F.push(fe[Re])}},lb=function(_){let F=null,W=null;if(nr)_="<remove></remove>"+_;else{const Re=Qw(_,/^[\r\n\t ]+/);W=Re&&Re[0]}cl==="application/xhtml+xml"&&jn===Lt&&(_='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+_+"</body></html>");const J=R?ne(_):_;if(jn===Lt)try{F=new d().parseFromString(J,cl)}catch{}if(!F||!F.documentElement){F=A.createDocument(jn,"template",null);try{F.documentElement.innerHTML=hn?M:J}catch{}}const fe=F.body||F.documentElement;return _&&W&&fe.insertBefore(n.createTextNode(W),fe.childNodes[0]||null),jn===Lt?ae.call(F,Ne?"html":"body")[0]:Ne?F.documentElement:fe},cb=function(_){const F=E?E(_):_.ownerDocument;return z.call(F||_,_,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},cd=function(_){return _=Al(_,ze," "),_=Al(_,Qe," "),_=Al(_,ge," "),_},Cp=function(_){var F;_.normalize();const W=E?E(_):_.ownerDocument,J=z.call(W||_,_,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let fe=J.nextNode();for(;fe;)fe.data=cd(fe.data),fe=J.nextNode();const Re=(F=_.querySelectorAll)===null||F===void 0?void 0:F.call(_,"template");Re&&Wi(Re,De=>{No(De.content)&&Cp(De.content)})},dd=function(_){const F=S?S(_):null;return typeof F!="string"||St(F)!=="form"?!1:typeof _.nodeName!="string"||typeof _.textContent!="string"||typeof _.removeChild!="function"||_.attributes!==b(_)||typeof _.removeAttribute!="function"||typeof _.removeAttributeNode!="function"||typeof _.getAttributeNode!="function"||typeof _.setAttribute!="function"||typeof _.namespaceURI!="string"||typeof _.insertBefore!="function"||typeof _.hasChildNodes!="function"||_.nodeType!==k(_)||_.childNodes!==x(_)},No=function(_){if(!k||typeof _!="object"||_===null)return!1;try{return k(_)===$n.documentFragment}catch{return!1}},dl=function(_){if(!k||typeof _!="object"||_===null)return!1;try{return typeof k(_)=="number"}catch{return!1}};function Br(q,_,F){q.length!==0&&Wi(q,W=>{W.call(t,_,F,Ao)})}const _j=function(_,F){return!!(we&&_.hasChildNodes()&&!dl(_.firstElementChild)&&on(o1,_.textContent)&&on(o1,_.innerHTML)||we&&_.namespaceURI===Lt&&RB[F]&&(dl(_.firstElementChild)||typeof _.textContent=="string"&&on(OB[F],_.textContent))||_.nodeType===$n.processingInstruction||we&&_.nodeType===$n.comment&&on(a1,_.data))},ud=function(_,F){if(_ instanceof RegExp)return on(_,F);if(_ instanceof Function){for(var W=arguments.length,J=new Array(W>2?W-2:0),fe=2;fe<W;fe++)J[fe-2]=arguments[fe];return!!_(F,...J)}return!1},Sj=function(_,F,W){if(!ct[F]&&pb(F)&&ud(it.tagNameCheck,F))return!1;if(as&&!Wn[F]){const J=g(_),fe=x(_);if(fe&&J){const Re=fe.length;for(let De=Re-1;De>=0;--De){const bt=_===W?f(fe[De],!0):fe[De];J.insertBefore(bt,y(_))}}}return zs(_),!0},db=function(_,F,W,J){return _.length===0?F:F===W||F===J?Un(F):F},Fo=function(_,F){return _===F||g(_)!==null?!1:(Ds&&ld(_),!0)},ub=function(_,F){if(Br(Z.beforeSanitizeElements,_,null),Fo(_,F))return!0;if(dd(_))return zs(_),!0;const W=St(N(_));if(ye=db(Z.uponSanitizeElement,ye,tt,_t),Br(Z.uponSanitizeElement,_,{tagName:W,allowedTags:ye}),Fo(_,F))return!0;if(_j(_,W))return zs(_),!0;if(ct[W]||!(P.tagCheck instanceof Function&&P.tagCheck(W))&&!ye[W]){const J=Sj(_,W,F);return J===!1&&(Br(Z.afterSanitizeElements,_,null),Fo(_,F))?!0:J}if(C(_)===$n.element&&!xj(_)||(W==="noscript"||W==="noembed"||W==="noframes")&&on(FB,_.innerHTML))return zs(_),!0;if(X&&_.nodeType===$n.text){const J=cd(_.textContent);_.textContent!==J&&(Tl(t.removed,{element:_.cloneNode()}),_.textContent=J)}return Br(Z.afterSanitizeElements,_,null),Fo(_,F)},hb=function(_,F,W){if(j[F]||ab(F,_)||Cn&&(F==="id"||F==="name")&&(W in n||W in gj))return!1;const J=Ee[F]||P.attributeCheck instanceof Function&&P.attributeCheck(F,_);return K&&on(Ve,F)||I&&on(Ze,F)?!0:J?Le[F]||on(Ae,Al(W,Pe,""))||(F==="src"||F==="xlink:href"||F==="href")&&_!=="script"&&Zw(W,"data:")===0&&To[_]||Y&&!on(Ge,Al(W,Pe,""))?!0:!W:pb(_)&&ud(it.tagNameCheck,_)&&ud(it.attributeNameCheck,F,_)||F==="is"&&it.allowCustomizedBuiltInElements&&ud(it.tagNameCheck,W)},Cj=Be({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),pb=function(_){return!Cj[Bl(_)]&&on(ie,_)},Ej=function(_,F,W,J){if(R&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!W)switch(u.getAttributeType(_,F)){case"TrustedHTML":return ne(J);case"TrustedScriptURL":return te(J)}return J},jj=function(_,F,W,J){try{return W?_.setAttributeNS(W,F,J):_.setAttribute(F,J),dd(_)?(zs(_),!1):!0}catch{return Ii(F,_),!1}},fb=function(_,F){if(Br(Z.beforeSanitizeAttributes,_,null),Fo(_,F))return;const W=_.attributes;if(!W||dd(_))return;Ee=db(Z.uponSanitizeAttribute,Ee,Ot,Mt);const J={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee,forceKeepAttr:void 0};let fe=W.length;const Re=St(_.nodeName);for(;fe--;){const De=W[fe],bt=De.name,sr=De.namespaceURI,Hn=De.value,Po=St(bt),jp=Hn;let pn=bt==="value"?jp:pB(jp),mb=!1;if(J.attrName=Po,J.attrValue=pn,J.keepAttr=!0,J.forceKeepAttr=void 0,Br(Z.uponSanitizeAttribute,_,J),pn=J.attrValue,Ls&&(Po==="id"||Po==="name")&&Zw(pn,os)!==0&&(Ii(bt,_,De),pn=os+pn,mb=!0),we&&on(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,pn)){Ii(bt,_,De);continue}if(Po==="attributename"&&Qw(pn,"href")){Ii(bt,_,De);continue}if(!J.forceKeepAttr){if(!J.keepAttr){Ii(bt,_,De);continue}if(!V&&on(PB,pn)){Ii(bt,_,De);continue}if(X&&(pn=cd(pn)),!hb(Re,Po,pn)){Ii(bt,_,De);continue}pn=Ej(Re,Po,sr,pn),pn!==jp&&jj(_,bt,sr,pn)&&mb&&Yw(t.removed)}}Br(Z.afterSanitizeAttributes,_,null),Fo(_,F)},hd=function(_){let F=null;const W=cb(_);for(Br(Z.beforeSanitizeShadowDOM,_,null);F=W.nextNode();)if(Br(Z.uponSanitizeShadowNode,F,null),ub(F,_),fb(F,_),No(F.content)&&hd(F.content),C(F)===$n.element){const J=m(F);No(J)&&(Ep(J),hd(J))}Br(Z.afterSanitizeShadowDOM,_,null)},Ep=function(_){const F=[{node:_,shadow:null}];for(;F.length>0;){const W=F.pop();if(W.shadow){hd(W.shadow);continue}const J=W.node,fe=C(J)===$n.element,Re=x(J);if(Re)for(let De=Re.length-1;De>=0;--De)F.push({node:Re[De],shadow:null});if(fe){const De=S?S(J):null;if(typeof De=="string"&&St(De)==="template"){const bt=J.content;No(bt)&&F.push({node:bt,shadow:null})}}if(fe){const De=m(J);No(De)&&F.push({node:null,shadow:De},{node:De,shadow:null})}}};return t.sanitize=function(q){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=null,W=null,J=null,fe=null;if(hn=!q,hn&&(q="<!-->"),typeof q!="string"&&!dl(q)&&(q=bB(q),typeof q!="string"))throw $s("dirty is not a string, aborting");if(!t.isSupported)return q;yt?(ye=_t,Ee=Mt):Sp(_),(Z.uponSanitizeElement.length>0||Z.uponSanitizeAttribute.length>0)&&(ye=Un(ye)),Z.uponSanitizeAttribute.length>0&&(Ee=Un(Ee)),t.removed=[];const Re=Ds&&typeof q!="string"&&dl(q);if(Re){kj(q);const sr=N(q);
904if(typeof sr=="string"){const Hn=St(sr);if(!ye[Hn]||ct[Hn])throw ad(q),$s("root node is forbidden and cannot be sanitized in-place")}if(dd(q))throw ad(q),$s("root node is clobbered and cannot be sanitized in-place");try{Ep(q)}catch(Hn){throw ad(q),Hn}}else if(dl(q))F=lb("<!---->"),W=F.ownerDocument.importNode(q,!0),W.nodeType===$n.element&&W.nodeName==="BODY"||W.nodeName==="HTML"?F=W:F.appendChild(W),Ep(F);else{if(!It&&!X&&!Ne&&q.indexOf("<")===-1)return R&&br?ne(q):q;if(F=lb(q),!F)return It?null:br?M:""}F&&nr&&zs(F.firstChild);const De=Re?q:F;try{const sr=cb(De);for(;J=sr.nextNode();)ub(J,De),fb(J,De),No(J.content)&&hd(J.content)}catch(sr){throw Re&&(ad(q),Wi(t.removed,Hn=>{Hn.element&&ld(Hn.element)})),sr}if(Re){let sr=!1;if(Wi(t.removed,Hn=>{Hn.element&&(Hn.element===q&&(sr=!0),ld(Hn.element))}),sr)throw $s("a node selected for removal could not be safely returned; refusing to sanitize in place");return X&&Cp(q),q}if(It){if(X&&Cp(F),Kt)for(fe=ce.call(F.ownerDocument);F.firstChild;)fe.appendChild(F.firstChild);else fe=F;return(Ee.shadowroot||Ee.shadowrootmode)&&(fe=pe.call(r,fe,!0)),fe}let bt=Ne?F.outerHTML:F.innerHTML;return Ne&&ye["!doctype"]&&F.ownerDocument&&F.ownerDocument.doctype&&F.ownerDocument.doctype.name&&on(AB,F.ownerDocument.doctype.name)&&(bt="<!DOCTYPE "+F.ownerDocument.doctype.name+`> 905`+bt),X&&(bt=cd(bt)),R&&br?ne(bt):bt},t.setConfig=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Sp(q),yt=!0,_t=ye,Mt=Ee},t.clearConfig=function(){Ao=null,yt=!1,_t=null,Mt=null,R=H,M=""},t.isValidAttribute=function(q,_,F){Ao||Sp({});const W=St(q),J=St(_);return hb(W,J,F)},t.addHook=function(q,_){typeof _=="function"&&Fn(Z,q)&&Tl(Z[q],_)},t.removeHook=function(q,_){if(Fn(Z,q)){if(_!==void 0){const F=uB(Z[q],_);return F===-1?void 0:hB(Z[q],F,1)[0]}return Yw(Z[q])}},t.removeHooks=function(q){Fn(Z,q)&&(Z[q]=[])},t.removeAllHooks=function(){Z=l1()},t}var q4=U4();const LB=/^https:\/\/(www\.)?(youtube(-nocookie)?\.com|player\.vimeo\.com)\//i,DB=/^https:\/\/([a-z0-9-]+\.)*jotform\.com\//i,zB=/^https:\/\/docs\.google\.com\/forms\//i;function V4(e){return DB.test(e)||zB.test(e)}function BB(e){return LB.test(e)||V4(e)}let c1=!1;function WB(){c1||(c1=!0,q4.addHook("uponSanitizeElement",e=>{const t=e;t.tagName==="IFRAME"&&(BB(t.getAttribute("src")??"")||t.remove())}))}function lo(e){return WB(),q4.sanitize(e,{ADD_TAGS:["iframe"],ADD_ATTR:["allow","allowfullscreen","frameborder","scrolling","loading","title","target","rel"]})}function HB({page:e}){const t=V4(e.embedUrl)?e.embedUrl:"",n=e.bodyHtml?lo(e.bodyHtml):"";return o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:e.title,description:e.seoDescription||void 0,path:`/${e.slug}`,noindex:e.noindex}),o.jsx(Xe,{}),o.jsx("section",{style:{background:"#F4F3EE",padding:"56px 0 32px"},children:o.jsxs("div",{className:"nc-container",children:[o.jsx("h1",{className:"font-display",style:{fontSize:"clamp(30px, 5vw, 46px)",color:"#141414",margin:0},children:e.title}),e.intro?o.jsx("p",{className:"font-body",style:{marginTop:16,maxWidth:720,fontSize:17,lineHeight:1.6,color:"#5C6470"},children:e.intro}):null]})}),n?o.jsx("section",{style:{padding:"40px 0"},children:o.jsx("div",{className:"nc-container",children:o.jsx("div",{className:"lp-prose font-body",style:{maxWidth:760},dangerouslySetInnerHTML:{__html:n}})})}):null,t?o.jsx("section",{style:{padding:n?"0 0 56px":"40px 0 56px"},children:o.jsxs("div",{className:"nc-container",children:[o.jsx("iframe",{src:t,title:e.embedTitle||e.title,loading:"lazy",style:{width:"100%",height:e.embedHeight,border:0,display:"block"},sandbox:"allow-scripts allow-forms allow-popups allow-same-origin",referrerPolicy:"strict-origin-when-cross-origin"}),o.jsxs("p",{className:"font-body",style:{marginTop:12,fontSize:13,color:"#5C6470"},children:["Trouble with the form?"," ",o.jsx("a",{href:t,target:"_blank",rel:"noreferrer",style:{color:"#E8732A"},children:"Open it in a new tab"}),"."]})]})}):null,o.jsx(et,{}),o.jsx("style",{children:` 906 .lp-prose > *:first-child { margin-top: 0; } 907 .lp-prose p, .lp-prose li { font-size: 16px; line-height: 1.7; color: #3F4650; } 908 .lp-prose p { margin: 0 0 16px; } 909 .lp-prose ul, .lp-prose ol { margin: 0 0 16px; padding-left: 20px; } 910 .lp-prose li { margin-bottom: 8px; } 911 .lp-prose h2, .lp-prose h3, .lp-prose h4 { color: #141414; margin: 28px 0 10px; } 912 .lp-prose h2 { font-size: 24px; } 913 .lp-prose h3 { font-size: 19px; } 914 .lp-prose h4 { font-size: 16px; } 915 .lp-prose a { color: #E8732A; } 916 .lp-prose img { max-width: 100%; height: auto; } 917 `})]})}const G4=()=>{const e=un();return w.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),o.jsxs(o.Fragment,{children:[o.jsx(st,{title:"Page Not Found",noindex:!0}),o.jsx("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:o.jsxs("div",{className:"text-center",children:[o.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),o.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),o.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})})]})},$B=()=>{const{pathname:e}=un(),t=z4(),n=nB(e);if(t.isLoading||n.isLoading)return o.jsx("div",{className:"min-h-screen bg-nc-white"});const r=t.data?L4(t.data,e):void 0;return r?o.jsx(B4,{to:r}):n.data?o.jsx(HB,{page:n.data}):o.jsx(G4,{})},UB=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
917p:0,bottom:0,right:0,left:"50%",backgroundImage:`url(${e.image("season.hero.background",bE)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 45%, rgba(20,20,20,0.92) 55%, rgba(20,20,20,0.55) 70%, rgba(20,20,20,0) 88%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:560},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:40,maxWidth:"min(640px, 48%)"},children:[o.jsxs("div",{className:"flex flex-col",style:{gap:20},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase"},children:e.text("season.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0 text-nc-white",style:{fontWeight:400,fontSize:"clamp(48px, 7vw, 96px)",lineHeight:"100%",letterSpacing:"-1.5px",textTransform:"uppercase"},children:e.text("season.hero.headline")}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:e.text("season.hero.body")})]}),o.jsxs(ke,{to:"/inquiry?intent=season",className:"inline-flex items-center gap-2.5 bg-nc-primary text-nc-white no-underline",style:{height:52,padding:"14px 20px 14px 24px"},children:[o.jsx("span",{className:"font-display",style:{fontWeight:400,fontSize:16,lineHeight:"150%"},children:e.text("season.hero.cta_label")}),o.jsx(Ue,{size:24,strokeWidth:1.5})]})]})}),o.jsx("style",{children:` 918 @media (max-width: 1023px) { 919 .hero-img { left: 0 !important; opacity: 0.55; } 920 .hero-fade { 921 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 922 } 923 .nc-container > div { max-width: 100% !important; } 924 } 925 `})]})},K4=({links:e})=>{var s;const[t,n]=w.useState(((s=e[0])==null?void 0:s.id)??"");w.useEffect(()=>{const i=e.map(l=>document.getElementById(l.id)).filter(l=>l!==null);if(!i.length)return;const a=new IntersectionObserver(l=>{if(i[0].getBoundingClientRect().top>96){n(i[0].id);return}const c=l.filter(d=>d.isIntersecting).sort((d,u)=>d.boundingClientRect.top-u.boundingClientRect.top);c[0]&&n(c[0].target.id)},{rootMargin:"-96px 0px -65% 0px",threshold:0});return i.forEach(l=>a.observe(l)),()=>a.disconnect()},[e]);const r=(i,a)=>{i.preventDefault();const l=document.getElementById(a);if(!l)return;const c=l.getBoundingClientRect().top+window.scrollY-72;window.scrollTo({top:c,behavior:"smooth"}),n(a)};return o.jsxs("nav",{className:"season-jump","aria-label":"On this page",style:{position:"sticky",top:0,zIndex:20,background:"rgba(255,255,255,0.92)",backdropFilter:"blur(10px)",WebkitBackdropFilter:"blur(10px)",borderBottom:"1px solid #E0E4EA"},children:[o.jsxs("div",{className:"nc-container season-jump__bar",children:[o.jsxs("span",{className:"season-jump__lead font-body","aria-hidden":"true",children:[o.jsx(f6,{size:15,strokeWidth:2}),"Jump to"]}),o.jsx("ul",{className:"season-jump__list m-0 list-none p-0",children:e.map(i=>{const a=t===i.id;return o.jsx("li",{style:{flexShrink:0},children:o.jsx("a",{href:`#${i.id}`,onClick:l=>r(l,i.id),className:`season-jump__pill font-body no-underline${a?" is-active":""}`,"aria-current":a?"true":void 0,children:i.label})},i.id)})})]}),o.jsx("style",{children:` 926 .season-jump__bar { 927 display: flex; 928 align-items: center; 929 gap: 18px; 930 min-height: 64px; 931 padding-top: 12px; 932 padding-bottom: 12px; 933 } 934 .season-jump__lead { 935 display: inline-flex; 936 align-items: center; 937 gap: 6px; 938 flex-shrink: 0; 939 font-weight: 700; 940 font-size: 12px; 941 letter-spacing: 0.06em; 942 text-transform: uppercase; 943 color: #71767D; 944 } 945 .season-jump__list { 946 display: flex; 947 flex-wrap: wrap; /* 641-900px: the pills do not fit on one line and were pushing the page 67px wide on tablets */ 948 gap: 12px; 949 align-items: center; 950 } 951 .season-jump__pill { 952 display: inline-flex; 953 align-items: center; 954 height: 40px; 955 padding: 0 18px; 956 border: 1px solid #D7DBE2; 957 border-radius: 9999px; 958 background: #FFFFFF; 959 font-weight: 600; 960 font-size: 13px; 961 line-height: 1; 962 letter-spacing: 0.02em; 963 text-transform: uppercase; 964 color: #2A2E35; 965 cursor: pointer; 966 white-space: nowrap; 967 transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; 968 } 969 .season-jump__pill:hover { 970 border-color: #FE894C; 971 color: #E8732A; 972 background: #FFF4EC; 973 } 974 .season-jump__pill:focus-visible { 975 outline: none; 976 border-color: #FE894C; 977 box-shadow: 0 0 0 3px rgba(254,137,76,0.25); 978 } 979 .season-jump__pill.is-active { 980 background: #FE894C; 981 border-color: #FE894C; 982 color: #FFFFFF; 983 } 984 @media (max-width: 640px) { 985 .season-jump__bar { gap: 12px; } 986 .season-jump__lead { display: none; } 987 .season-jump__list { 988 flex-wrap: nowrap; /* phones keep the single-row horizontal scroller */ 989 gap: 10px; 990 overflow-x: auto; 991 scrollbar-width: none; 992 margin-left: -20px; 993 margin-right: -20px; 994 padding-left: 20px; 995 padding-right: 20px; 996 } 997 .season-jump__list::-webkit-scrollbar { display: none; } 998 .season-jump__pill { height: 38px; padding: 0 16px; } 999 } 1000 `})]})},zf=({id:e,title:t,tiles:n,background:r="#FFFFFF",scroll:s=!1})=>{const i=w.useRef(null),[a,l]=w.useState(!1);w.useEffect(()=>{const d=i.current;if(!s||!d)return;const u=()=>l(d.scrollWidth>d.clientWidth+1);u();const h=new ResizeObserver(u);return h.observe(d),()=>h.disconnect()},[s,n.length]);const c=d=>{const u=i.current;if(!u)return;const h=u.querySelector(".stile"),f=h?h.offsetWidth+20:u.clientWidth*.8;u.scrollBy({left:d*f,behavior:"smooth"})};return o.jsxs("section",{id:e,className:"season-section",style:{background:r,scrollMarginTop:72},children:[o.jsxs("div",{className:"nc-container flex flex-col",style:{gap:40},children:[o.jsxs("div",{className:"season-head",children:[o.jsx("h2",{className:"font-display m-0 uppercase",style:{fontWeight:400,fontSize:"clamp(32px, 4.5vw, 48px)",lineHeight:"115%",letterSpacing:"-0.5px",color:"#141414"},children:t}),a&&o.jsxs("div",{className:"season-arrows",children:[o.jsx("button",{type:"button",className:"season-arrow","aria-label":`Previous ${t}`,onClick:()=>c(-1),children:o.jsx(oh,{size:20,strokeWidth:2})}),o.jsx("button",{type:"button",className:"season-arrow","aria-label":`Next ${t}`,onClick:()=>c(1),children:o.jsx(ah,{size:20,strokeWidth:2})})]})]}),o.jsx("div",{ref:i,className:`season-tiles${s?" season-tiles--scroll":""}`,children:n.map(d=>o.jsxs(ke,{to:d.to,className:"stile","aria-label":`${d.title} â Learn More`,children:[o.jsx("div",{className:"stile__img",style:{backgroundImage:`url(${d.img})`},"aria-hidden":"true"}),o.jsx("span",{className:"stile__overlay","aria-hidden":"true"}),o.jsxs("div",{className:"stile__content",children:[o.jsx("h3",{className:"stile__title font-display m-0",children:d.title}),d.descriptor&&o.jsx("p",{className:"stile__desc font-body m-0",children:d.descriptor}),o.jsxs("span",{className:"stile__cta font-display",children:["Learn More",o.jsx(Ue,{size:18,strokeWidth:1.75})]})]})]},d.title))})]}),o.jsx("style",{children:` 1001 .season-section { padding: 88px 0; } 1002 .season-head { 1003 display: flex; 1004 align-items: flex-end; 1005 justify-content: space-between; 1006 gap: 16px; 1007 } 1008 .season-arrows { display: flex; gap: 12px; flex-shrink: 0; } 1009 .season-arrow { 1010 width: 44px; 1011 height: 44px; 1012 display: inline-flex; 1013 align-items: center; 1014 justify-content: center; 1015 border: 1px solid #DADADA; 1016 background: #FFFFFF; 1017 color: #141414; 1018 cursor: pointer; 1019 border-radius: 9999px; 1020 transition: background 200ms ease, color 200ms ease, border-color 200ms ease; 1021 }
1022 .season-arrow:hover { background: #141414; color: #FFFFFF; border-color: #141414; } 1023 .season-arrow:focus-visible { outline: 3px solid #FE894C; outline-offset: 2px; } 1024 .season-tiles { 1025 display: grid; 1026 grid-template-columns: repeat(3, 1fr); 1027 gap: 20px; 1028 } 1029 .season-tiles--scroll { 1030 display: flex; 1031 overflow-x: auto; 1032 scroll-snap-type: x mandatory; 1033 scrollbar-width: thin; 1034 -webkit-overflow-scrolling: touch; 1035 padding-bottom: 12px; 1036 } 1037 .season-tiles--scroll > .stile { 1038 flex: 0 0 auto; 1039 width: calc((100% - 40px) / 3); 1040 scroll-snap-align: start; 1041 } 1042 .stile { 1043 position: relative; 1044 display: block; 1045 height: 380px; 1046 overflow: hidden; 1047 text-decoration: none; 1048 color: #FFFFFF; 1049 isolation: isolate; 1050 } 1051 .stile__img { 1052 position: absolute; 1053 inset: 0; 1054 background-size: cover; 1055 background-position: center; 1056 transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1); 1057 z-index: 0; 1058 } 1059 .stile__overlay { 1060 position: absolute; 1061 inset: 0; 1062 z-index: 1; 1063 background: linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0.84) 100%); 1064 transition: background 300ms ease; 1065 } 1066 .stile__content { 1067 position: absolute; 1068 left: 0; right: 0; bottom: 0; 1069 z-index: 2; 1070 padding: 28px; 1071 display: flex; 1072 flex-direction: column; 1073 gap: 10px; 1074 } 1075 .stile__title { 1076 font-weight: 400; 1077 font-size: 26px; 1078 line-height: 110%; 1079 letter-spacing: -0.3px; 1080 text-transform: uppercase; 1081 } 1082 .stile__desc { 1083 font-weight: 400; 1084 font-size: 14px; 1085 line-height: 150%; 1086 color: rgba(255,255,255,0.85); 1087 max-width: 36ch; 1088 } 1089 .stile__cta { 1090 display: inline-flex; 1091 align-items: center; 1092 gap: 7px; 1093 margin-top: 4px; 1094 font-weight: 400; 1095 font-size: 13px; 1096 line-height: 140%; 1097 letter-spacing: 0.04em; 1098 text-transform: uppercase; 1099 color: #FE894C; 1100 } 1101 .stile__cta svg { transition: transform 220ms ease; } 1102 .stile:hover .stile__img { transform: scale(1.06); } 1103 .stile:hover .stile__overlay { 1104 background: linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.28) 38%, rgba(0,0,0,0.88) 100%); 1105 } 1106 .stile:hover .stile__cta svg { transform: translate(3px, -3px); } 1107 .stile:focus-visible { outline: 3px solid #FE894C; outline-offset: 2px; } 1108 1109 @media (max-width: 1023px) { 1110 .season-section { padding: 64px 0; } 1111 .season-tiles { grid-template-columns: repeat(2, 1fr); } 1112 .season-tiles--scroll > .stile { width: calc((100% - 20px) / 2); } 1113 } 1114 @media (max-width: 640px) { 1115 .season-section { padding: 48px 0; } 1116 .season-tiles { grid-template-columns: 1fr; gap: 16px; } 1117 .season-tiles--scroll > .stile { width: 82%; } 1118 .stile { height: 320px; } 1119 .stile__content { padding: 22px; } 1120 } 1121 @media (prefers-reduced-motion: reduce) { 1122 .season-tiles--scroll { scroll-behavior: auto; } 1123 } 1124 `})]})},qB=[{id:"venues",label:"Venues"},{id:"choirs",label:"Opportunities for Choirs"},{id:"bands-orchestras",label:"Opportunities for Bands & Orchestras"}],Bf=e=>`/browse-by-date-venue?venue=${encodeURIComponent(e)}`,ks=e=>`/browse-by-date-venue?type=${encodeURIComponent(e)}`,VB=[{name:"Carnegie Hall",img:ui,to:Bf("Carnegie Hall, New York, NY")},{name:"Lincoln Center",img:Xl,to:Bf("Lincoln Center, New York, NY")},{name:"Meyerson Symphony Center",img:hh,to:Bf("Meyerson Symphony Center, Dallas, TX")}],GB=[{name:"National Masterwork Chorus",img:fh,to:ks("National Masterwork Chorus")},{name:"National Concert Chorus",img:mh,to:ks("National Concert Chorus")},{name:"National Symphonic Chorus",img:gh,to:ks("National Symphonic Chorus")},{name:"National Youth Chorus",img:_0,to:ks("National Youth Chorus")},{name:"National Treble Chorus",img:y0,to:ks("National Treble Chorus")}],KB=[{name:"National Band & Orchestra Fest",img:x0,to:ks("National Band & Orchestra Fest")},{name:"National Honor Band",img:k0,to:ks("National Honor Band")},{name:"National Honor Orchestra",img:ph,to:ks("National Honor Orchestra")},{name:"Ensemble Feature",img:b0,to:ks("Ensemble Feature")}],Wf=(e,t)=>{const n=new Set(e.map(r=>r.title));return e.map((r,s)=>{var l;const i=t[s]&&!n.has(t[s].name)?t[s]:void 0,a=t.find(c=>c.name===r.title)??i;return{title:r.title??"",descriptor:r.descriptor??"",img:Tt(r.image)??(a??t[t.length-1]).img,to:((l=r.link)==null?void 0:l.trim())||(a==null?void 0:a.to)||"/browse-by-date-venue"}})},JB=()=>{const e=ve(),t=Wf(e.list("season.venues.items"),VB),n=Wf(e.list("season.choirs.items"),GB),r=Wf(e.list("season.bands.items"),KB);return o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"Season Overview",description:"Explore the National Concerts season â venues and opportunities for choirs, bands, and orchestras.",path:"/season-overview"}),o.jsx(UB,{}),o.jsx(K4,{links:qB}),o.jsx(zf,{id:"venues",title:e.text("season.venues.heading"),tiles:t,background:"#FFFFFF",scroll:!0}),o.jsx(zf,{id:"choirs",title:e.text("season.choirs.heading"),tiles:n,background:"#F4F3EE"}),o.jsx(zf,{id:"bands-orchestras",title:e.text("season.bands.heading"),tiles:r,background:"#FFFFFF"}),o.jsx(O4,{}),o.jsx(et,{})]})},YB=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
1124p:0,bottom:0,right:0,left:"50%",backgroundImage:`url(${e.image("guestcollab.hero.background",AC)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 45%, rgba(20,20,20,0.92) 55%, rgba(20,20,20,0.55) 70%, rgba(20,20,20,0) 88%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:24,maxWidth:"min(640px, 48%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase"},children:e.text("guestcollab.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(40px, 6vw, 88px)",lineHeight:"105%",color:"#FFFFFF",textTransform:"uppercase"},children:e.text("guestcollab.hero.headline")}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:e.text("guestcollab.hero.body")})]})}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"}}),o.jsx("style",{children:` 1125 @media (max-width: 1023px) { 1126 .hero-img { left: 0 !important; opacity: 0.55; } 1127 .hero-fade { 1128 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 1129 } 1130 } 1131 @media (max-width: 1023px) { 1132 .nc-container > div { max-width: 100% !important; } 1133 } 1134 `})]})},Ah=({p:e})=>o.jsxs("article",{className:"pcard flex flex-col bg-nc-white",style:{border:"1px solid #E0E4EA",overflow:"hidden",height:"100%",transition:"border-color 200ms ease, box-shadow 200ms ease"},children:[o.jsx(ke,{to:e.to,tabIndex:-1,"aria-hidden":"true",className:"pcard__photo",style:{width:"100%",height:285,flexShrink:0,display:"block"},children:o.jsx("img",{src:e.img,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top",display:"block"}})}),o.jsxs("div",{className:"pcard__body flex flex-1 flex-col",style:{padding:24,justifyContent:"space-between",gap:20},children:[o.jsxs("div",{className:"flex flex-col",style:{gap:14},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:12,lineHeight:"150%",letterSpacing:"0.08em",textTransform:"uppercase",color:"#E8732A"},children:e.role}),o.jsx("h3",{className:"font-display m-0",style:{fontWeight:400,fontSize:26,lineHeight:"110%",letterSpacing:"-0.3px",textTransform:"uppercase",color:"#141414"},children:e.name}),o.jsxs("div",{className:"flex flex-col",style:{gap:2},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:12,lineHeight:"150%",letterSpacing:"0.08em",textTransform:"uppercase",color:"#454545"},children:e.performance}),o.jsx("span",{className:"font-display",style:{fontWeight:400,fontSize:24,lineHeight:"115%",letterSpacing:"-0.5px",textTransform:"uppercase",color:"#FE894C"},children:e.date})]}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:14,lineHeight:"150%",color:"#6F6F6F"},children:e.bio})]}),o.jsxs(ke,{to:e.to,className:"pcard__cta font-display inline-flex items-center no-underline",style:{gap:8,fontWeight:400,fontSize:14,lineHeight:"140%",letterSpacing:"0.04em",textTransform:"uppercase",color:"#FE894C",width:"fit-content"},children:[o.jsx("span",{children:"View More"}),o.jsx(Ue,{size:18,strokeWidth:1.5})]})]})]}),QB=Xr,ZB=Xr,XB=wn,eW=[{role:"Guest Conductor",name:"Maestro David Chen",performance:"Spring Masterworks Festival",date:"March 15, 2027",bio:"Grammy-winning conductor. Former music director of the Berlin Philharmonic Youth Orchestra. Specializes in romantic and contemporary works.",img:QB,to:"/upcoming-performances/spring-masterworks-festival"},{role:"Guest Conductor",name:"Jonathan Webb",performance:"Summer Choral Intensive",date:"June 8, 2027",bio:"A rising force in choral conducting. Director of Choral Studies at Juilliard and artistic advisor for major US festivals.",img:ZB,to:"/upcoming-performances/summer-choral-intensive"},{role:"Guest Conductor",name:"Elena Vasquez",performance:"Autumn Symphony Series",date:"September 20, 2027",bio:"Acclaimed for dynamic interpretations of romantic and contemporary repertoire. Conductor Laureate of the Chicago Philharmonic.",img:XB,to:"/upcoming-performances/autumn-symphony-series"}],tW=()=>{const e=w.useRef(null),[t,n]=w.useState(0),r=YL(),s=Mi(r,eW);return w.useEffect(()=>{const i=e.current;if(!i)return;const a=()=>{const l=i.clientWidth;n(Math.round(i.scrollLeft/l))};return i.addEventListener("scroll",a,{passive:!0}),()=>i.removeEventListener("scroll",a)},[]),s.length?o.jsxs("section",{className:"conductors nc-container bg-nc-white",style:{paddingTop:80,paddingBottom:80},children:[o.jsxs("div",{className:"flex w-full flex-col",style:{gap:60},children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(32px, 4.5vw, 48px)",lineHeight:"120%",textTransform:"uppercase",color:"#141414"},children:"Guest Conductors"}),o.jsx("div",{className:"conductors__grid grid w-full",style:{gridTemplateColumns:"repeat(3, 1fr)",gap:24},children:s.map(i=>o.jsx(Ah,{p:i},i.name))}),o.jsxs("div",{className:"conductors__mobile",style:{display:"none"},children:[o.jsx("div",{ref:e,className:"conductors__scroller",style:{display:"flex",gap:16,overflowX:"auto",scrollSnapType:"x mandatory",scrollPaddingInline:20,paddingBottom:8,WebkitOverflowScrolling:"touch"},children:s.map(i=>o.jsx("div",{style:{flex:"0 0 88%",scrollSnapAlign:"start"},children:o.jsx(Ah,{p:i})},i.name))}),o.jsx("div",{className:"conductors__dots",style:{display:"flex",gap:8,justifyContent:"center",marginTop:20},children:s.map((i,a)=>
1134o.jsx("span",{"aria-hidden":"true",style:{width:t===a?24:8,height:8,borderRadius:9999,background:t===a?"#FE894C":"#D9D9D9",transition:"all 200ms ease"}},a))})]})]}),o.jsx("style",{children:` 1135 .pcard:hover { border-color: #FE894C; box-shadow: 0 16px 32px -20px rgba(0,0,0,0.15); } 1136 .pcard__cta:hover { opacity: 0.85; } 1137 @media (max-width: 1023px) { 1138 .conductors { padding: 64px clamp(20px, 4vw, 32px) !important; } 1139 .conductors__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; } 1140 } 1141 @media (max-width: 640px) { 1142 .conductors { padding: 48px 0 !important; } 1143 .conductors > div { padding: 0 20px; gap: 32px !important; } 1144 .conductors__grid { display: none !important; } 1145 .conductors__mobile { display: block !important; margin: 0 -20px; } 1146 .conductors__scroller { padding-left: 20px; padding-right: 20px; } 1147 .pcard__photo { height: 220px !important; } 1148 .pcard__body { padding: 20px !important; gap: 20px !important; } 1149 } 1150 `})]}):null},nW=wn,rW=Xr,sW=[{role:"Composer-in-Residence",name:"Dr. Amara Osei",performance:"World Premiere · Spring Masterworks Festival",date:"March 15, 2027",bio:"Pulitzer finalist. Bridging West African choral traditions with contemporary orchestration.",img:nW,to:"/upcoming-performances/spring-masterworks-festival"},{role:"Composer-in-Residence",name:"Marcus Rivera",performance:"World Premiere · Autumn Symphony Series",date:"September 20, 2027",bio:"Award-winning film and concert composer. His orchestral works have been performed by the LA Phil, Boston Symphony, and National Concerts.",img:rW,to:"/upcoming-performances/autumn-symphony-series"}],iW=()=>{const e=w.useRef(null),[t,n]=w.useState(0),r=QL(),s=Mi(r,sW);return w.useEffect(()=>{const i=e.current;if(!i)return;const a=()=>{const l=i.clientWidth;n(Math.round(i.scrollLeft/l))};return i.addEventListener("scroll",a,{passive:!0}),()=>i.removeEventListener("scroll",a)},[]),s.length?o.jsxs("section",{className:"composers nc-container",style:{paddingTop:64,paddingBottom:64,background:"#F4F3EE"},children:[o.jsxs("div",{className:"flex w-full flex-col",style:{gap:60},children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(32px, 4.5vw, 48px)",lineHeight:"120%",textTransform:"uppercase",color:"#141414"},children:"Composers-in-Residence"}),o.jsx("div",{className:"composers__grid grid w-full",style:{gridTemplateColumns:"repeat(2, calc((100% - 48px) / 3))",justifyContent:"center",gap:24},children:s.map(i=>o.jsx(Ah,{p:i},i.name))}),o.jsxs("div",{className:"composers__mobile",style:{display:"none"},children:[o.jsx("div",{ref:e,className:"composers__scroller",style:{display:"flex",gap:16,overflowX:"auto",scrollSnapType:"x mandatory",scrollPaddingInline:20,paddingBottom:8,WebkitOverflowScrolling:"touch"},children:s.map(i=>o.jsx("div",{style:{flex:"0 0 88%",scrollSnapAlign:"start"},children:o.jsx(Ah,{p:i})},i.name))}),o.jsx("div",{className:"composers__dots",style:{display:"flex",gap:8,justifyContent:"center",marginTop:20},children:s.map((i,a)=>o.jsx("span",{"aria-hidden":"true",style:{width:t===a?24:8,height:8,borderRadius:9999,background:t===a?"#FE894C":"#C8C5BA",transition:"all 200ms ease"}},a))})]})]}),o.jsx("style",{children:` 1151 .composers .pcard:hover { border-color: #FE894C; box-shadow: 0 16px 32px -20px rgba(0,0,0,0.15); } 1152 @media (max-width: 1023px) { 1153 .composers { padding: 56px clamp(20px, 4vw, 32px) !important; } 1154 .composers > div { gap: 40px !important; } 1155 .composers__grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; } 1156 } 1157 @media (max-width: 640px) { 1158 .composers { padding: 48px 0 !important; } 1159 .composers > div { padding: 0 20px; gap: 32px !important; } 1160 .composers__grid { display: none !important; } 1161 .composers__mobile { display: block !important; margin: 0 -20px; } 1162 .composers__scroller { padding-left: 20px; padding-right: 20px; } 1163 } 1164 `})]}):null},oW=[{name:"Dr. Robert Kim",bio:"Professor of Wind Studies, Indiana University. 30+ years of festival adjudication experience.",img:zC,to:"/browse-by-date-venue"},{name:"Lisa Thompson",bio:"Former Associate Conductor, National Symphony Orchestra. Specialist in youth orchestral development.",img:LC,to:"/browse-by-date-venue"},{name:"Michael Okonkwo",bio:"Grammy-nominated arranger and educator. Champion of diversity in concert band literature.",img:DC,to:"/browse-by-date-venue"}],aW=({c:e})=>o.jsxs(ke,{to:e.to,className:"cl-card no-underline",style:{display:"flex",flexDirection:"column",background:"#FFFFFF",border:"1px solid #E0E4EA",overflow:"hidden",color:"inherit",textDecoration:"none"},children:[o.jsx("div",{className:"cl-photo",style:{width:"100%",height:285,flexShrink:0},children:o.jsx("img",{src:e.img,alt:e.name,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center top",display:"block"}})}),o.jsxs("div",{className:"cl-body",style:{flex:1,padding:24,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:20},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[o.jsx("h3",{className:"font-body m-0",style:{fontWeight:600,fontSize:20,lineHeight:"150%",color:"#141414"},children:e.name}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:14,lineHeight:"140%",color:"#454545"},children:e.bio})]}),o.jsxs("span",{className:"pcard__cta font-display inline-flex items-center",style:{gap:8,fontWeight:400,fontSize:14,lineHeight:"140%",letterSpacing:"0.04em",textTransform:"uppercase",color:"#FE894C",width:"fit-content"},children:[o.jsx("span",{children:"View More"}),o.jsx(Ue,{size:18,strokeWidth:1.5})]})]})]}),J4=()=>{const e=w.useRef(null),[t,n]=w.useState(0),r=XL(),s=Mi(r,oW);w.useEffect(()=>{const a=e.current;if(!a)return;const l=()=>{const c=a.scrollWidth/s.length,d=Math.round(a.scrollLeft/c);n(Math.min(s.length-1,Math.max(0,d)))};return a.addEventListener("scroll",l,{passive:!0}),()=>a.removeEventListener("scroll",l)},[s.length]);const i=a=>{const l=e.current;if(!l)return;const c=l.scrollWidth/s.length;l.scrollTo({left:c*a,behavior:"smooth"})};return s.length?o.jsxs("section",{className:"clinicians nc-container",style:{background:"#FFFFFF",paddingTop:80,paddingBottom:80,overflowX:"hidden"},children:[o.jsxs("div",{className:"flex flex-col",style:{gap:60},children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(28px, 4.5vw, 48px)",lineHeight:"120%",textTransform:"uppercase",color:"#141414"},children:"Guest Clinicians"}),o.jsx("div",{ref:e,className:"cl-grid",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:24},children:s.map(a=>o.jsx(aW,{c:a},a.name))}),o.jsx("div",{className:"cl-dots",style:{display:"none",justifyContent:"center",alignItems:"center",gap:8},role:"tablist","aria-label":"Guest clinicians carousel",children:s.map((a,l)=>o.jsx("button",{type:"button",role:"tab","aria-label":`Go to slide ${l+1}`,"aria-selected":t===l,onClick:()=>i(l),style:{width:t===l?24:8,height:8,padding:0,border:"none",cursor:"pointer",borderRadius:999,background:t===l?"#141414":"#C8CED9",transition:"all 200ms ease"}},a.name))})]}),o.jsx("style",{children:` 1165 .cl-card { transition: border-color 200ms ease, box-shadow 200ms ease; } 1166 .cl-card:hover { border-color: #FE894C; box-shadow: 0 16px 32px -20px rgba(0,0,0,0.15); } 1167 @media (max-width: 1023px) { 1168 .cl-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; } 1169 .cl-photo { height: auto !important; aspect-ratio: 4 / 3; } 1170 } 1171 @media (max-width: 640px) { 1172 .clinicians { padding-top: 48px !important; padding-bottom: 48px !important; } 1173 .clinicians > div { gap: 24px !important; } 1174 .cl-grid { 1175 grid-template-columns: none !important; 1176 grid-auto-flow: column; 1177 grid-auto-columns: 100%; 1178 overflow-x: auto; 1179 scroll-snap-type: x mandatory; 1180 gap: 12px !important; 1181 scrollbar-width: none; 1182 } 1183 .cl-grid::-webkit-scrollbar { display: none; } 1184 .cl-card { scroll-snap-align: center; flex-shrink: 0; } 1185 .cl-photo { aspect-ratio: 4 / 3; } 1186 .cl-dots { display: flex !important; } 1187 } 1188 `})]}):null},lW=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(YB,{}),o.jsx(tW,{}),o.jsx(iW,{}),o.jsx(J4,{}),o.jsx(et,{})]}),cW=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
1188p:0,bottom:0,right:0,left:"50%",backgroundImage:`url(${e.image("browseseason.hero.background",TC)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 45%, rgba(20,20,20,0.92) 55%, rgba(20,20,20,0.55) 70%, rgba(20,20,20,0) 88%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:24,maxWidth:"min(680px, 50%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase"},children:e.text("browseseason.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(40px, 6vw, 72px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:e.text("browseseason.hero.headline")})]})}),o.jsx("style",{children:` 1189 @media (max-width: 1023px) { 1190 .hero-img { left: 0 !important; opacity: 0.55; } 1191 .hero-fade { 1192 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 1193 } 1194 .nc-container > div { max-width: 100% !important; } 1195 } 1196 `})]})},Ut="All",Hf=e=>{const t=new Set,n=[];for(const r of e)t.has(r)||(t.add(r),n.push(r));return n},Yd=e=>{const{label:t,allLabel:n,options:r,formatLabel:s}=e,[i,a]=w.useState(!1),l=w.useRef(null),c=e.multiple===!0,d=c?e.values.length>0:e.value!==Ut,u=p=>s?s(p):p,h=d?c?e.values.length===1?u(e.values[0]):`${e.values.length} selected`:u(e.value):t,f=p=>p===Ut?!d:c?e.values.includes(p):e.value===p;return w.useEffect(()=>{const p=y=>{l.current&&!l.current.contains(y.target)&&a(!1)},v=y=>{y.key==="Escape"&&a(!1)};return window.addEventListener("mousedown",p),window.addEventListener("keydown",v),()=>{window.removeEventListener("mousedown",p),window.removeEventListener("keydown",v)}},[]),o.jsxs("div",{ref:l,style:{position:"relative",flexShrink:0},children:[o.jsxs("button",{type:"button",onClick:()=>a(p=>!p),"aria-expanded":i,"aria-haspopup":"listbox",className:"font-body inline-flex items-center",style:{gap:8,height:36,padding:"8px 16px",background:d?"#FE894C":"#F1F3F6",border:d?"1px solid #FE894C":"1px solid #E0E4EA",borderRadius:0,fontWeight:500,fontSize:14,lineHeight:"140%",color:d?"#FFFFFF":"#141414",cursor:"pointer",maxWidth:220},children:[o.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:h}),o.jsx(On,{size:14,strokeWidth:1.5,style:{transition:"transform 160ms ease",transform:i?"rotate(180deg)":"none"}})]}),i&&o.jsx("ul",{role:"listbox",className:"m-0 list-none p-0",style:{position:"absolute",top:"calc(100% + 6px)",left:0,zIndex:40,minWidth:"max(100%, 200px)",maxHeight:280,overflowY:"auto",background:"#FFFFFF",border:"1px solid #E0E4EA",boxShadow:"0 16px 40px -20px rgba(0,0,0,0.35)"},children:[Ut,...r].map(p=>{const v=f(p),y=()=>{c?p===Ut?(e.onClear(),a(!1)):e.onToggle(p):(e.onChange(p),a(!1))};return o.jsx("li",{children:o.jsxs("button",{type:"button",role:"option","aria-selected":v,onClick:y,className:"font-body inline-flex items-center",style:{gap:8,width:"100%",textAlign:"left",padding:"10px 16px",background:v?"#F1F3F6":"transparent",border:"none",fontWeight:v?600:400,fontSize:14,lineHeight:"140%",color:"#141414",cursor:"pointer",whiteSpace:"nowrap"},onMouseEnter:x=>x.currentTarget.style.background="#F1F3F6",onMouseLeave:x=>x.currentTarget.style.background=v?"#F1F3F6":"transparent",children:[c&&p!==Ut&&o.jsx(s0,{size:14,strokeWidth:2,style:{flexShrink:0,opacity:v?1:0,color:"#E8732A"}}),p===Ut?n:s?s(p):p]})},p)})})]})},d1=({href:e})=>o.jsxs(ke,{to:e,className:"font-display inline-flex items-center no-underline",style:{gap:8,fontWeight:400,fontSize:14,lineHeight:"140%",color:"#FE894C",textTransform:"uppercase",whiteSpace:"nowrap"},children:["READ MORE",o.jsx(Ue,{size:20,strokeWidth:1.5})]}),u1=()=>o.jsx("span",{className:"font-body inline-flex items-center",style:{padding:"4px 8px",background:"#FE894C",color:"#FFFFFF",fontWeight:600,fontSize:10,lineHeight:"140%",textTransform:"uppercase",whiteSpace:"nowrap",borderRadius:0},children:"PREMIERE"}),dW=()=>{const[e]=k2(),t=ve(),[n,r]=w.useState(""),[s,i]=w.useState(()=>{const C=e.get("type");return C?C.split(",").map(N=>
1196N.trim()).filter(Boolean):[]}),[a,l]=w.useState(()=>e.get("venue")??Ut),[c,d]=w.useState(()=>e.get("ensemble")??Ut),[u,h]=w.useState(Ut),f=C=>i(N=>N.includes(C)?N.filter(R=>R!==C):[...N,C]),p=jo(),v=w.useMemo(()=>Mi(p,j0()),[p]),y=CL,x=w.useMemo(()=>Hf(v.map(C=>C.venue)),[v]),g=w.useMemo(()=>Hf(v.flatMap(C=>C.ensembles)),[v]),m=w.useMemo(()=>Hf(v.map(C=>sw(C.date))),[v]),b=n.trim().toLowerCase(),k=s.length>0||a!==Ut||c!==Ut||u!==Ut,S=v.filter(C=>!(s.length>0&&!s.includes(C.performanceType)||a!==Ut&&C.venue!==a||c!==Ut&&!C.ensembles.includes(c)||u!==Ut&&sw(C.date)!==u||b&&![ki(C.date),C.time,C.title,C.conductor,C.venue,C.performanceType,C.ensembles.join(" ")].join(" ").toLowerCase().includes(b))),E=()=>{i([]),l(Ut),d(Ut),h(Ut),r("")};return o.jsxs("section",{className:"w-full",style:{background:"#FFFFFF"},children:[o.jsxs("div",{className:"nc-container flex flex-col",style:{paddingTop:60,paddingBottom:80,gap:40},children:[o.jsxs("div",{className:"evt-toolbar",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,width:"100%"},children:[o.jsxs("div",{className:"evt-filters flex items-center",style:{gap:12},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:13,color:"#141414",whiteSpace:"nowrap",flexShrink:0},children:t.text("browseseason.filters.label")}),o.jsx(Yd,{label:"Performance Type",allLabel:"All Performance Types",options:y,multiple:!0,values:s,onToggle:f,onClear:()=>i([])}),o.jsx(Yd,{label:"Venue",allLabel:"All Venues",value:a,options:x,onChange:l}),o.jsx(Yd,{label:"Ensemble Type",allLabel:"All Ensemble Types",value:c,options:g,onChange:d}),o.jsx(Yd,{label:"Month",allLabel:"All Months",value:u,options:m,onChange:h}),k&&o.jsxs("button",{type:"button",onClick:E,className:"font-body inline-flex items-center",style:{gap:6,height:36,padding:"8px 12px",background:"transparent",border:"none",fontWeight:500,fontSize:13,color:"#6F6F6F",cursor:"pointer",flexShrink:0},children:[o.jsx(Eo,{size:14,strokeWidth:1.5}),"Clear"]})]}),o.jsxs("div",{className:"evt-search",style:{display:"inline-flex",alignItems:"center",gap:8,height:36,padding:"8px 12px",background:"#F1F3F6",border:"1px solid #E0E4EA",borderRadius:0,width:280,flexShrink:0},children:[o.jsx(o0,{size:16,strokeWidth:1.5,color:"#6F6F6F"}),o.jsx("input",{type:"text",value:n,onChange:C=>r(C.target.value),placeholder:"Search events",className:"font-body",style:{flex:1,background:"transparent",border:"none",outline:"none",fontWeight:400,fontSize:14,lineHeight:"140%",color:"#141414",minWidth:0}})]})]}),S.length===0?o.jsxs("div",{className:"font-body",style:{padding:"64px 24px",textAlign:"center",background:"#F1F3F6",border:"1px solid #E0E4EA",color:"#454545",display:"flex",flexDirection:"column",alignItems:"center",gap:12},children:[o.jsx("span",{className:"font-display",style:{fontSize:24,lineHeight:"120%",color:"#141414",textTransform:"uppercase"},children:"No performances currently scheduled"}),o.jsx("p",{className:"m-0",style:{fontSize:15,lineHeight:"150%",maxWidth:460},children:"We program this offering throughout the year. Tell us about your ensemble and our team will help bring your performance to the stage."}),o.jsxs("div",{className:"flex items-center",style:{gap:20,marginTop:12,flexWrap:"wrap",justifyContent:"center"},children:[o.jsxs(ke,{to:"/inquiry?intent=perform",className:"font-display inline-flex items-center no-underline",style:{gap:8,height:48,padding:"0 22px",background:"#FE894C",color:"#FFFFFF",textTransform:"uppercase",fontWeight:400,fontSize:14,letterSpacing:"0.5px"},children:["Inquire to perform",o.jsx(Ue,{size:18,strokeWidth:1.5})]}),k&&o.jsx("button",{type:"button",onClick:E,className:"font-display inline-flex items-center",style:{gap:8,background:"transparent",border:"none",color:"#141414",textTransform:"uppercase",fontWeight:400,fontSize:14,letterSpacing:"0.5px",cursor:"pointer"},children:"View all performances"})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"evt-table-wrap",style:{width:"100%",overflowX:"auto"},children:o.jsxs("table",{className:"evt-table",style:{width:"100%",borderCollapse:"collapse",tableLayout:"fixed"},children:[o.jsxs("colgroup",{children:[o.jsx("col",{style:{width:"18%"}}),o.jsx("col",{style:{width:"26%"}}),o.jsx("col",{style:{width:"16%"}}),o.jsx("col",{style:{width:"20%"}}),o.jsx("col",{style:{width:"12%"}}),o.jsx("col",{style:{width:"8%"}})]}),o.jsx("thead",{children:o.jsx("tr",{style:{height:50,borderBottom:"1px solid #E0E4EA"},children:["DATE & TIME","EVENT","CONDUCTOR","VENUE","TYPE",""].map((C,N)=>o.jsx("th",{className:"font-body",style:{padding:"16px 24px",textAlign:"left",verticalAlign:"middle",fontWeight:600,fontSize:12,lineHeight:"150%",color:"#E8732A",textTransform:"uppercase"},children:C},N))})}),o.jsx("tbody",{children:S.map(C=>o.jsxs("tr",{style:{height:110,borderBottom:"1px solid #E0E4EA",background:C.premiere?"#F1F3F6":"transparent"},children:[o.jsxs("td",{className:"font-body",style:{padding:"16px 24px",verticalAlign:"middle",fontWeight:500,fontSize:14,lineHeight:"140%",color:"#454545"},children:[o.jsx("div",{children:ki(C.date)}),o.jsx("div",{style:{marginTop:4},children:C.time})]}),o.jsx("td",{style:{padding:24,verticalAlign:"middle"},children:o.jsxs("div",{className:"font-body",style:{display:"inline-flex",alignItems:"center",gap:12,flexWrap:"wrap"},children:[o.jsx("span",{style:{fontWeight:600,fontSize:16,lineHeight:"150%",color:"#000000"},children:C.title}),C.premiere&&o.jsx(u1,{})]})}),o.jsx("td",{className:"font-body",style:{padding:"0 24px",verticalAlign:"middle",fontWeight:400,fontSize:14,lineHeight:"140%",color:"#454545"},children:C.conductor}),o.jsx("td",{className:"font-body",style:{padding:"0 24px",verticalAlign:"middle",fontWeight:400,fontSize:14,lineHeight:"140%",color:"#454545"},children:C.venue}),o.jsx("td",{className:"font-body",style:{padding:"0 24px",verticalAlign:"middle",fontWeight:400,fontSize:14,lineHeight:"140%",color:"#454545"},children:C.performanceType}),o.jsx("td",{style:{padding:"0 24px",verticalAlign:"middle",textAlign:"right"},children:o.jsx(d1,{href:yu(C)})})]},C.slug))})]})}),o.jsx("div",{className:"evt-cards",style:{display:"none",flexDirection:"column",gap:16},children:S.map(C=>o.jsxs(ke,{to:yu(C),className:"no-underline",style:{border:"1px solid #E0E4EA",background:C.premiere?"#F1F3F6":"#FFFFFF",padding:20,display:"flex",flexDirection:"column",gap:12,color:"inherit"},children:[o.jsxs("div",{className:"font-body",style:{fontWeight:600,fontSize:12,lineHeight:"150%",textTransform:"uppercase",color:"#E8732A"},children:[ki(C.date)," · ",C.time]}),o.jsxs("div",{className:"font-body",style:{display:"flex",alignItems:"center",gap:10,flexWrap:"wrap",fontWeight:600,fontSize:18,lineHeight:"140%",color:"#000000"},children:[o.jsx("span",{children:C.title}),C.premiere&&o.jsx(u1,{})]}),o.jsxs("div",{className:"font-body flex flex-col",style:{gap:4,fontWeight:400,fontSize:13,lineHeight:"140%",color:"#6F6F6F"},children:[o.jsxs("span",{children:[o.jsx("strong",{style:{fontWeight:600,color:"#454545"},children:"Conductor:"})," ",C.conductor]}),o.jsxs("span",{children:[o.jsx("strong",{style:{fontWeight:600,color:"#454545"},children:"Venue:"})," ",C.venue]}),o.jsxs("span",{children:[o.jsx("strong",{style:{fontWeight:600,color:"#454545"},children:"Type:"})," ",C.performanceType]})]}),o.jsx("div",{style:{marginTop:4},children:o.jsx(d1,{href:yu(C)})})]},C.slug))})]})]}),o.jsx("style",{children:` 1197 @media (max-width: 1023px) {
1198 .evt-toolbar { flex-wrap: wrap; } 1199 .evt-search { width: 100% !important; } 1200 } 1201 @media (max-width: 640px) { 1202 .evt-table-wrap { display: none; } 1203 .evt-cards { display: flex !important; } 1204 .evt-filters { 1205 flex-wrap: nowrap !important; 1206 gap: 8px !important; 1207 overflow-x: auto; 1208 scroll-snap-type: x mandatory; 1209 margin-left: -20px; 1210 margin-right: -20px; 1211 padding-left: 20px; 1212 padding-right: 20px; 1213 scrollbar-width: none; 1214 width: 100%; 1215 } 1216 .evt-filters::-webkit-scrollbar { display: none; } 1217 } 1218 @media (min-width: 641px) and (max-width: 1023px) { 1219 .evt-filters { flex-wrap: wrap; } 1220 } 1221 `})]})},uW=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"Browse Our Season",description:"Browse upcoming National Concerts performances by date, venue, conductor, and ensemble type.",path:"/browse-by-date-venue"}),o.jsx(cW,{}),o.jsx(dW,{}),o.jsx(et,{})]}),hW=()=>o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
1221p:0,bottom:0,right:0,left:"50%",backgroundImage:`url(${x0})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.92) 50%, rgba(20,20,20,0.55) 66%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"flex flex-col items-start",style:{maxWidth:"min(720px, 58%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",marginBottom:24},children:"Perform With Us"}),o.jsx("h1",{className:"font-display m-0 hero-title",style:{fontWeight:400,fontSize:"clamp(32px, 4.6vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase",marginBottom:24,overflowWrap:"break-word"},children:"National Band & Orchestra Fest"}),o.jsx("p",{className:"m-0",style:{fontFamily:"Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:640,marginBottom:48},children:"An inspiring performance experience for instrumental ensembles featuring expert adjudication, personalized clinics, and meaningful recognition that celebrates musical growth and achievement."}),o.jsx("div",{className:"hero-ctas",style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:o.jsxs(ke,{to:"/inquiry?intent=festival",className:"font-display nc-cta",style:{display:"inline-flex",alignItems:"center",gap:10,height:52,padding:"14px 20px 14px 24px",fontWeight:400,fontSize:16,lineHeight:"150%",textTransform:"uppercase",textDecoration:"none",background:"#FE894C",color:"#FFFFFF",border:"1px solid #FE894C",borderRadius:0,whiteSpace:"nowrap"},children:["Get Started",o.jsx(Ue,{size:24,strokeWidth:2})]})})]})}),o.jsx("style",{children:` 1222 @media (min-width: 1280px) { 1223 .hero-br { display: none; } 1224 .hero-title { white-space: normal; } 1225 } 1226 @media (max-width: 1279px) { 1227 .hero-img { left: 62% !important; } 1228 .hero-fade { 1229 background: linear-gradient(90deg, #141414 0%, #141414 50%, rgba(20,20,20,0.95) 60%, rgba(20,20,20,0.65) 75%, rgba(20,20,20,0.15) 92%, rgba(20,20,20,0) 100%) !important; 1230 } 1231 } 1232 @media (max-width: 1023px) { 1233 .hero-img { left: 0 !important; opacity: 0.55; } 1234 .hero-fade { 1235 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 1236 } 1237 .nc-container > div { max-width: 100% !important; } 1238 } 1239 @media (max-width: 640px) { 1240 .hero-br { display: none; } 1241 .hero-ctas { width: 100%; flex-direction: column; gap: 12px !important; } 1242 .hero-ctas .nc-cta { width: 100%; justify-content: center; height: 48px; font-size: 14px; padding: 12px 18px; } 1243 } 1244 `})]}),pW=[{Icon:E6,title:"Extended Private Clinics",desc:"Intensive workshops with nationally recognized clinicians focused on technique, interpretation, and ensemble artistry."},{Icon:TS,title:"Adjudicated Performances",desc:"Thoughtful feedback from a panel of nationally recognized clinicians to support musical growth and elevate each ensemble's performance."},{Icon:S6,title:"Professionally Produced Concert",desc:"A polished daytime concert experience with professional production that showcases each ensemble's preparation and achievement."},{Icon:i0,title:"Travel and Sightseeing Opportunities",desc:"Optional travel packages designed to simplify hotel, transportation, and sightseeing arrangements for a seamless festival experience."}],fW=()=>o.jsxs("section",{className:"why-join nc-container bg-nc-white",style:{paddingTop:80,paddingBottom:80,overflowX:"hidden"},children:[o.jsxs("div",{className:"flex flex-col",style:{gap:60},children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(28px, 4.5vw, 48px)",lineHeight:"120%",textTransform:"uppercase",color:"#141414"},children:"Why Join the Festival"}),o.jsx("div",{className:"wj-grid",style:{display:"grid",gridTemplateColumns:"repeat(4, 1fr)",gap:16},children:pW.map(({Icon:e,title:t,desc:n})=>o.jsxs("article",{className:"wj-card",style:{display:"flex",flexDirection:"column",background:"#F1F3F6",border:"1px solid #E0E4EA",padding:24,minHeight:226},children:[o.jsx(e,{size:32,strokeWidth:2,color:"#E8732A",style:{marginBottom:24}}),o.jsx("h3",{className:"font-body m-0",style:{fontWeight:600,fontSize:20,lineHeight:"150%",color:"#141414",marginBottom:12},children:t}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:14,lineHeight:"140%",color:"#454545"},children:n})]},t))})]}),o.jsx("style",{children:` 1245 @media (max-width: 1023px) { 1246 .wj-grid { grid-template-columns: repeat(2, 1fr) !important; } 1247 } 1248 @media (max-width: 640px) { 1249 .why-join { padding-top: 48px !important; padding-bottom: 48px !important; } 1250 .why-join > div { gap: 28px !important; } 1251 .wj-grid { grid-template-columns: 1fr !important; gap: 12px !important; } 1252 .wj-card { padding: 20px !important; min-height: 0 !important; } 1253 } 1254 `})]}),mW=({title:e="Performance Opportunities",year:t="2027",cards:n})=>{const{data:r}=jo(),i=(r??j0()).map(l=>{const{month:c,day:d}=TL(l.date);return{month:c,day:d,venue:l.venue,to:yu(l)}}),a=n??i;return o.jsxs("section",{className:"nc-container bg-nc-white",style:{paddingTop:80,paddingBottom:80},children:[o.jsxs("div",{className:"flex flex-col",style:{gap:40},children:[o.jsxs("div",{className:"flex items-end justify-between",style:{gap:24},children:[o.jsx("div",{className:"flex flex-col",style:{gap:12,maxWidth:720},children:o.jsx("h2",{className:"font-display m-0 uppercase",style:{fontWeight:400,fontSize:"clamp(32px, 5vw, 48px)",lineHeight:"120%",color:"#141414"},children:e})}),o.jsx("span",{className:"font-display",style:{fontWeight:400,fontSize:"clamp(28px, 3.2vw, 40px)",lineHeight:"125%",color:"#767676",whiteSpace:"nowrap"},children:t})]}),o.jsx("div",{className:"std-cards",children:a.map((l,c)=>o.jsxs("article",{className:"std-card flex flex-col",style:{padding:28,background:"#F1F3F6",border:"1px solid #E0E4EA",minHeight:232,gap:20,transition:"background 200ms ease, border-color 200ms ease"},children:[o.jsxs("div",{className:"flex flex-col",style:{gap:4},children:[o.jsxs("span",{className:"font-display",style:{fontWeight:400,fontSize:"clamp(48px, 5.6vw, 64px)",lineHeight:"100%",color:"#FE894C",letterSpacing:"-0.5px",textTransform:"uppercase"},children:[l.month," ",l.day]}),o.jsx("span",{className:"font-body uppercase",style:{fontWeight:600,fontSize:12,lineHeight:"150%",letterSpacing:"0.08em",color:"#6F6F6F",marginTop:8},children:t})]}),o.jsx("div",{"aria-hidden":!0,style:{height:1,background:"#E0E4EA",width:"100%"}}),o.jsxs("div",{className:"mt-auto flex flex-col",style:{gap:16},children:[o.jsx("p",{className:"font-body m-0",style:{fontWeight:500,fontSize:14,lineHeight:"140%",color:"#454545"},children:l.venue}),o.jsxs(ke,{to:l.to,className:"std-view-more font-display inline-flex items-center no-underline uppercase transition-colors duration-200",style:{gap:8,fontWeight:400,fontSize:13,lineHeight:"140%",letterSpacing:"0.04em",color:"#141414"},children:[o.jsx("span",{children:"View More"}),o.jsx(Ue,{size:16,strokeWidth:1.5})]})]})]},c))})]}),o.jsx("style",{children:` 1255 .std-cards { 1256 display: grid; 1257 grid-template-columns: repeat(4, 1fr); 1258 gap: 16px; 1259 } 1260 .std-card:hover { 1261 background: #ECEFF3; 1262 border-color: #FE894C; 1263 } 1264 .std-view-more { color: #141414; } 1265 .std-view-more:hover, 1266 .std-view-more:focus-visible { color: #FE894C; } 1267 @media (max-width: 1023px) { 1268 .std-cards { 1269 grid-template-columns: repeat(2, 1fr); 1270 } 1271 } 1272 @media (max-width: 640px) { 1273 .std-cards { 1274 grid-template-columns: 1fr; 1275 } 1276 } 1277 `})]})},gW=[{month:"Apr",day:"17",venue:"Carnegie Hall, New York",to:"/inquiry?intent=festival"},{month:"May",day:"22",venue:"Kennedy Center, Washington DC",to:"/inquiry?intent=festival"},{month:"Oct",day:"09",venue:"Symphony Hall, Boston",to:"/inquiry?intent=festival"},{month:"Nov",day:"13",venue:"Walt Disney Concert Hall, Los Angeles",to:"/inquiry?intent=festival"}],yW=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(hW,{}),o.jsx(fW,{}),o.jsx(mW,{title:"Performance Opportunities",cards:gW}),o.jsx(J4,{}),o.jsx(et,{})]}),bW=()=>{const e=ve();return o.jsxs("div",{style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsxs("section",{className:"hero--pricing",style:{position:"relative",width:"100%",height:600,background:"#141414",overflow:"hidden",isolation:"isolate"},children:[o.jsx("div",{className:"nc-container",style:{position:"absolute",inset:0,zIndex:1,pointerEvents:"none"},"aria-hidden":"true"}),o.jsxs("div",{className:"hero__photo",style:{position:"absolute",top:0,right:0,width:850,height:"100%",zIndex:0},children:[o.jsx("img",{src:e.image("pricing.hero.photo",yE),alt:"Full ensemble performing on stage with Seeking Light projection",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block",borderRadius:0}}),o.jsx("span",{className:"hero__photo-fade","aria-hidden":"true",style:{position:"absolute",inset:0,background:"linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.92) 18%, rgba(20,20,20,0.55) 38%, rgba(20,20,20,0.10) 65%, rgba(20,20,20,0) 100%)",pointerEvents:"none"}})]}),o.jsxs("div",{className:"hero__text nc-container",style:{position:"absolute",left:0,right:0,top:245,zIndex:2,display:"flex",flexDirection:"column",gap:24},children:[o.jsx("p",{className:"hero__label font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#E8732A"},children:e.text("pricing.hero.eyebrow")}),o.jsx("h1",{className:"hero__title font-display m-0",style:{fontWeight:400,fontSize:64,lineHeight:"100%",color:"#FFFFFF",textTransform:"uppercase",maxWidth:720},children:e.text("pricing.hero.headline")}),o.jsx("p",{className:"hero__sub font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:720},children:e.text("pricing.hero.body")})]}),o.jsx("style",{children:` 1278 @media (max-width: 1023px) { 1279 .hero--pricing { height: 540px !important; } 1280 .hero--pricing .hero__photo { width: 60% !important; } 1281 .hero--pricing .hero__photo-fade { 1282 background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.95) 25%, rgba(20,20,20,0.6) 50%, rgba(20,20,20,0) 100%) !important; 1283 } 1284 .hero--pricing .hero__text { top: 200px !important; } 1285 .hero--pricing .hero__title { font-size: 48px !important; } 1286 .hero--pricing .hero__sub { font-size: 16px !important; } 1287 } 1288 @media (max-width: 640px) { 1289 .hero--pricing { height: 480px !important; } 1290 .hero--pricing { height: auto !important; padding-bottom: 32px !important; } 1291 .hero--pricing .hero__photo { 1292 position: relative !important; 1293 width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; 1294 top: 0 !important; right: 0 !important; 1295 margin: 0 0 24px 0 !important; 1296 } 1297 .hero--pricing .hero__photo img { 1298 width: 100% !important; height: 100% !important; 1299 } 1300 .hero--pricing .hero__photo-fade { 1301 background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0) 70%, #141414 100%) !important; 1302 } 1303 .hero--pricing .hero__text { 1304 position: relative !important; 1305 top: auto !important; left: 0 !important; right: 0 !important; 1306 gap: 12px !important; 1307 } 1308 .hero--pricing .hero__title { font-size: 32px !important; line-height: 105% !important; } 1309 .hero--pricing .hero__sub { font-size: 14px !important; line-height: 150% !important; max-width: none !important; } 1310 } 1311 `})]})]})},h1=["Concert performance with professional production","Venue access & rehearsal time","Program listing & marketing","Individual billing option available"],vW={Hotel:AS,"Roundtrip Airfare":i0,Entertainment:y6,Dining:N6},xW=[{name:"Carnegie Hall",price_performer:"$590",price_non_performer:"$350",price_unit:null,description:null,features:h1,cta_label:"Get Started",cta_href:"/inquiry?intent=pricing",highlighted:!1}
1311,{name:"Meyerson",price_performer:"$285",price_non_performer:"$185",price_unit:null,description:null,features:h1,cta_label:"Get Started",cta_href:"/inquiry?intent=pricing",highlighted:!1},{name:"Group Package Options",price_performer:null,price_non_performer:null,price_unit:null,description:"Flexible package options to complete the full concert experience.",features:["Hotel","Roundtrip Airfare","Entertainment","Dining"],cta_label:"Learn More",cta_href:"#package-options",highlighted:!0}],p1=e=>{const t=/^\s*\$\s*(.*)$/.exec(e);return t?{cur:"$",num:t[1]}:{cur:"",num:e}},f1={alignSelf:"flex-start",display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,height:44,padding:"12px 24px",fontWeight:400,fontSize:14,lineHeight:"140%",textTransform:"uppercase",textDecoration:"none",borderRadius:0,whiteSpace:"nowrap",border:"1px solid #141414",background:"transparent",color:"#141414"},Y4=({href:e,label:t})=>{const n=o.jsxs(o.Fragment,{children:[t,o.jsx(Ue,{size:18,strokeWidth:2})]});return e.startsWith("#")||/^https?:\/\//.test(e)?o.jsx("a",{href:e,className:"tier__cta font-display",style:f1,children:n}):o.jsx(ke,{to:e,className:"tier__cta font-display",style:f1,children:n})},Q4={fontWeight:600,fontSize:12,lineHeight:"150%",textTransform:"uppercase",color:"#FE894C"},Z4=({tier:e})=>o.jsxs("article",{className:"tier",style:{display:"flex",flexDirection:"column",background:"#FFFFFF",border:"1px solid #E0E4EA",overflow:"hidden"},children:[o.jsxs("header",{className:"tier__head",style:{padding:24,display:"flex",flexDirection:"column",gap:12,flexShrink:0,background:"#F1F3F6"},children:[o.jsx("span",{className:"font-body",style:Q4,children:e.name}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[e.price_performer||e.price_non_performer?o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:11,lineHeight:"140%",letterSpacing:"0.5px",textTransform:"uppercase",color:"#686F7C"},children:"Starting at"}):null,o.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:16,flexWrap:"wrap"},children:[e.price_performer?o.jsxs("div",{style:{display:"inline-flex",alignItems:"baseline",gap:4},children:[o.jsx("span",{className:"font-display tier__amt",style:{fontWeight:400,fontSize:34,lineHeight:"120%",color:"#141414"},children:(()=>{const{cur:t,num:n}=p1(e.price_performer);return o.jsxs(o.Fragment,{children:[t&&o.jsx("span",{className:"font-body tier__cur",children:t}),n]})})()}),o.jsxs("span",{className:"font-body",style:{fontWeight:500,fontSize:14,lineHeight:"140%",color:"#454545"},children:["/ ",e.price_unit||"performer"]})]}):null,e.price_non_performer?o.jsxs("div",{style:{display:"inline-flex",alignItems:"baseline",gap:4},children:[o.jsx("span",{className:"font-display",style:{fontWeight:400,fontSize:22,lineHeight:"120%",color:"#686F7C"},children:(()=>{const{cur:t,num:n}=p1(e.price_non_performer);return o.jsxs(o.Fragment,{children:[t&&o.jsx("span",{className:"font-body tier__cur",children:t}),n]})})()}),o.jsx("span",{className:"font-body",style:{fontWeight:500,fontSize:12,lineHeight:"140%",color:"#686F7C"},children:"/ non-performer"})]}):null]})]})]}),o.jsxs("div",{className:"tier__body",style:{flex:1,padding:24,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:32},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[e.description?o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:14,lineHeight:"165%",color:"#454545"},children:e.description}):null,o.jsx("ul",{className:"m-0 list-none p-0",style:{display:"flex",flexDirection:"column",gap:12},children:e.features.map(t=>o.jsxs("li",{style:{display:"grid",gridTemplateColumns:"16px 1fr",alignItems:"center",gap:12,fontFamily:"Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"140%",color:"#141414"},children:[o.jsx(s0,{size:16,strokeWidth:2,color:"#FE894C"}),o.jsx("span",{children:t})]},t))})]}),e.cta_href&&e.cta_label?o.jsx(Y4,{href:e.cta_href,label:e.cta_label}):null]})]}),X4=({tier:e,listRef:t,inView:n})=>o.jsxs("article",{className:"tier tier--group",style:{display:"flex",flexDirection:"column",background:"#FFFFFF",border:"1.5px solid #FE894C",boxShadow:"0 18px 44px -30px rgba(254,137,76,0.6)",overflow:"hidden"},children:[o.jsxs("header",{className:"tier__head",style:{padding:24,display:"flex",flexDirection:"column",gap:12,flexShrink:0,background:"rgba(254,137,76,0.10)"},children:[o.jsx("span",{className:"font-body",style:Q4,children:e.name}),e.description?o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:14,lineHeight:"140%",color:"#686F7C"},children:e.description}):null]}),o.jsxs("div",{className:"tier__body",style:{flex:1,padding:24,display:"flex",flexDirection:"column",justifyContent:"space-between",gap:32},children:[o.jsx("ul",{ref:t,className:`grp-feats m-0 list-none p-0${n?" is-in":""}`,style:{display:"flex",flexDirection:"column",gap:14},children:e.features.map((r,s)=>{const i=vW[r]??s0;return o.jsxs("li",{className:"grp-feat",style:{display:"grid",gridTemplateColumns:"40px 1fr",alignItems:"center",gap:12,fontFamily:"Montserrat, sans-serif",fontWeight:500,fontSize:15,lineHeight:"140%",color:"#141414","--i":s},children:[o.jsx("span",{className:"grp-feat__ic","aria-hidden":"true",children:o.jsx(i,{size:20,strokeWidth:1.75})}),o.jsx("span",{children:r})]},r)})}),e.cta_href&&e.cta_label?o.jsx(Y4,{href:e.cta_href,label:e.cta_label}):null]})]}),B7=({tier:e})=>o.jsxs(o.Fragment,{children:[o.jsx("style",{children:`
1312 .tier__cur { font-size: 0.6em; font-weight: 600; vertical-align: 0.32em; margin-right: 1px; } 1313 .grp-feat__ic { 1314 display: inline-flex; align-items: center; justify-content: center; 1315 width: 40px; height: 40px; border-radius: 9999px; 1316 background: rgba(254,137,76,0.12); color: #E8732A; 1317 } 1318 `}),e.highlighted?o.jsx(X4,{tier:e,listRef:()=>{},inView:!0}):o.jsx(Z4,{tier:e})]}),wW=()=>{const{ref:e,inView:t}=rd(),{data:n}=HL(),r=n??xW;return o.jsxs(o.Fragment,{children:[o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"}}),o.jsxs("section",{className:"pricing nc-container",style:{width:"100%",background:"#FFFFFF",paddingTop:80,paddingBottom:80,display:"grid",gridTemplateColumns:`repeat(${Math.min(r.length||1,4)}, minmax(0, 1fr))`,gap:24,alignItems:"stretch"},children:[r.map(s=>s.highlighted?o.jsx(X4,{tier:s,listRef:e,inView:t},s.name):o.jsx(Z4,{tier:s},s.name)),o.jsx("style",{children:` 1319 /* Currency mark in the body font â the display font's "$" reads oddly, 1320 so render just the "$" normally, sized/raised like a price symbol. */ 1321 .tier__cur { 1322 font-size: 0.6em; 1323 font-weight: 600; 1324 vertical-align: 0.32em; 1325 margin-right: 1px; 1326 } 1327 1328 /* Group Package Options â icon chips + staggered arrival animation */ 1329 .grp-feat__ic { 1330 display: inline-flex; 1331 align-items: center; 1332 justify-content: center; 1333 width: 40px; 1334 height: 40px; 1335 border-radius: 9999px; 1336 background: rgba(254,137,76,0.12); 1337 color: #E8732A; 1338 } 1339 .grp-feats .grp-feat { 1340 opacity: 0; 1341 transform: translateY(10px) scale(0.92); 1342 transition: opacity 460ms ease, transform 460ms cubic-bezier(0.22, 1, 0.36, 1); 1343 transition-delay: calc(var(--i) * 100ms); 1344 } 1345 .grp-feats.is-in .grp-feat { opacity: 1; transform: none; } 1346 .grp-feats.is-in .grp-feat__ic { animation: grp-pop 520ms cubic-bezier(0.22, 1, 0.36, 1) backwards; animation-delay: calc(var(--i) * 100ms + 120ms); } 1347 @keyframes grp-pop { 1348 0% { transform: scale(0.5); } 1349 60% { transform: scale(1.12); } 1350 100% { transform: scale(1); } 1351 } 1352 @media (prefers-reduced-motion: reduce) { 1353 .grp-feats .grp-feat { opacity: 1; transform: none; transition: none; } 1354 .grp-feats.is-in .grp-feat__ic { animation: none; } 1355 } 1356 /* Four tiers need an intermediate step: full width down to 1280, 1357 two-up on small laptops, one-up below 1024. */ 1358 @media (min-width: 1024px) and (max-width: 1279px) { 1359 .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } 1360 } 1361 @media (max-width: 1023px) { 1362 .pricing { 1363 padding-top: 56px !important; 1364 padding-bottom: 56px !important; 1365 gap: 16px !important; 1366 grid-template-columns: 1fr !important; 1367 align-items: stretch !important; 1368 } 1369 } 1370 @media (max-width: 640px) { 1371 .pricing { padding-top: 40px !important; padding-bottom: 40px !important; gap: 16px !important; } 1372 .tier__head { padding: 20px !important; height: auto !important; } 1373 .tier__body { padding: 20px !important; gap: 24px !important; } 1374 .tier__amt { font-size: 30px !important; } 1375 .tier__cta { width: 100% !important; justify-content: center !important; } 1376 } 1377 `})]})]})},kW=()=>{const e=ve(),t=e.list("pricing.included.items");return t.length?o.jsxs("section",{className:"pi",style:{background:"#F4F3EE",padding:"72px 0"},children:[o.jsxs("div",{className:"nc-container",children:[o.jsx("h2",{className:"pi__title font-display m-0",style:{fontWeight:400,fontSize:"clamp(26px, 3vw, 36px)",lineHeight:"120%",color:"#141414",textAlign:"center"},children:e.text("pricing.included.heading")}),o.jsx("ul",{className:"pi__row",children:t.map((n,r)=>o.jsx("li",{className:"pi__item font-body",children:n.label},r))}),e.text("pricing.included.note")?o.jsxs("p",{className:"pi__note font-body m-0",children:[o.jsx(w6,{size:18,strokeWidth:1.5,"aria-hidden":"true"}),o.jsx("span",{children:e.text("pricing.included.note")})]}):null]}),o.jsx("style",{children:` 1378 .pi__row { 1379 list-style: none; margin: 40px 0 0; padding: 0; 1380 display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; 1381 } 1382 .pi__item { 1383 padding: 0 20px; text-align: center; 1384 font-weight: 400; font-size: 15px; line-height: 155%; color: #454545; 1385 border-left: 1px solid #DDD9CE; 1386 } 1387 .pi__item:first-child { border-left: 0; } 1388 .pi__note { 1389 margin-top: 32px; padding: 16px 20px; 1390 display: flex; align-items: center; gap: 12px; justify-content: center; 1391 border: 1px solid #E0DCD1; background: #FFFFFF; 1392 font-size: 15px; line-height: 160%; color: #454545; 1393 } 1394 .pi__note svg { color: #E8732A; flex-shrink: 0; } 1395 @media (max-width: 900px) { 1396 .pi__row { grid-template-columns: repeat(2, 1fr); gap: 28px 0; } 1397 .pi__item:nth-child(odd) { border-left: 0; } 1398 } 1399 @media (max-width: 560px) { 1400 .pi { padding: 56px 0 !important; } 1401 .pi__row { grid-template-columns: 1fr; gap: 24px; } 1402 .pi__item { border-left: 0; } 1403 .pi__note { align-items: flex-start; text-align: left; } 1404 } 1405 `})]}):null},_W=()=>{const e=ve();return o.jsxs("section",{className:"pay-note",style:{width:"100%",background:"#F4F3EE",padding:"32px 0"},children:[o.jsxs("div",{className:"nc-container pay-note__row",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:24,flexWrap:"wrap"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:13,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.6px"},children:e.text("pricing.payment.eyebrow")}),o.jsx("h2",{className:"pay-note__title font-display m-0",style:{fontWeight:400,fontSize:"clamp(20px, 2.2vw, 26px)",lineHeight:"120%",textTransform:"uppercase",color:"#141414"},children:e.text("pricing.payment.heading")})]}),o.jsx("p",{className:"pay-note__desc font-body m-0",style:{fontWeight:400,fontSize:15,lineHeight:"150%",color:"#454545",maxWidth:480},children:e.text("pricing.payment.body")})]}),o.jsx("style",{children:` 1406 @media (max-width: 1023px) { 1407 .pay-note__row { flex-direction: column; align-items: flex-start; gap: 12px; } 1408 .pay-note__desc { max-width: 100%; } 1409 } 1410 @media (max-width: 640px) { 1411 .pay-note { padding: 24px 0 !important; } 1412 .pay-note__title { font-size: 20px !important; } 1413 .pay-note__desc { font-size: 14px !important; } 1414 } 1415 `})]})},m1=[YC,dp,v0,up],SW=()=>{const e=ve(),t=e.list("pricing.options.items");return o.jsxs("section",{id:"package-options",style:{background:"#FFFFFF",padding:"80px 0"},children:[o.jsxs("div",{className:"nc-container pkg-wrap",children:[o.jsx("div",{className:"flex flex-col gap-5",children:o.jsx("h2",{className:"font-display m-0 uppercase text-nc-black",style:{fontWeight:400,fontSize:"clamp(28px, 3.8vw, 48px)",lineHeight:"110%",letterSpacing:"-0.5px",maxWidth:780},children:e.text("pricing.options.heading")})}),o.jsx("div",{className:"pkg-grid",children:t.map((n,r)=>o.jsxs("div",{className:"pkg-card",children:[o.jsx("div",{className:"pkg-card__img",children:o.jsx("img",{src:Tt(n.image)??m1[r]??m1[0],alt:n.label,loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),o.jsxs("div",{className:"pkg-card__body",children:[o.jsx("span",{className:"font-body uppercase",style:{fontWeight:600,fontSize:12,letterSpacing:"0.5px",color:"#FE894C"},children:n.label}),o.jsx("p",{className:"m-0",style:{fontFamily:"Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"155%",color:"#454545",marginTop:10},children:n.desc})]})]},r))}),o.jsxs(ke,{to:"/inquiry?intent=pricing",className:"pkg-cta font-display",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:8,height:44,padding:"12px 24px",fontWeight:400,fontSize:14,lineHeight:"140%",textTransform:"uppercase",textDecoration:"none",borderRadius:0,whiteSpace:"nowrap",border:"1px solid #FE894C",background:"#FE894C",color:"#FFFFFF"},children:[e.text("pricing.options.cta_label"),o.jsx(Ue,{size:18,strokeWidth:2})]})]}),o.jsx("style",{children:` 1416 .pkg-wrap { 1417 display: flex; 1418 flex-direction: column; 1419 gap: 48px; 1420 } 1421 .pkg-grid { 1422 display: grid; 1423 grid-template-columns: repeat(4, 1fr); 1424 gap: 24px; 1425 align-items: start; 1426 } 1427 .pkg-card { 1428 display: flex; 1429 flex-direction: column; 1430 } 1431 .pkg-card__img { 1432 width: 100%; 1433 aspect-ratio: 3 / 2; 1434 overflow: hidden; 1435 background: #F1F3F6; 1436 flex-shrink: 0; 1437 } 1438 .pkg-card__body { 1439 padding: 20px 0 0; 1440 } 1441 @media (max-width: 1023px) { 1442 .pkg-grid { 1443 grid-template-columns: repeat(2, 1fr); 1444 gap: 28px; 1445 } 1446 .pkg-wrap { gap: 40px; } 1447 } 1448 @media (max-width: 640px) { 1449 .pkg-grid { 1450 grid-template-columns: 1fr; 1451 gap: 28px; 1452 } 1453 .pkg-wrap { gap: 32px; padding-top: 40px; padding-bottom: 40px; } 1454 .pkg-cta { width: 100%; } 1455 } 1456 `})]})},CW=()=>{const e=ve(),t=e.list("pricing.participation.items");return t.length?o.jsxs("section",{className:"pp",style:{background:"#FFFFFF",padding:"72px 0"},children:[o.jsxs("div",{className:"nc-container",children:[o.jsx("h2",{className:"pp__title font-display m-0",style:{fontWeight:400,fontSize:"clamp(26px, 3vw, 36px)",lineHeight:"120%",color:"#141414",textAlign:"center"},children:e.text("pricing.participation.heading")}),o.jsx("div",{className:"pp__row",children:t.map((n,r)=>o.jsxs("div",{className:"pp__item",children:[o.jsx("h3",{className:"pp__item-title font-display m-0",children:n.title}),o.jsx("p",{className:"pp__item-desc font-body m-0",children:n.desc}),n.href?o.jsxs("a",{className:"pp__link font-body",href:n.href,children:["Learn more",o.jsx(Ue,{size:16,strokeWidth:2})]}):null]},r))})]}),o.jsx("style",{children:` 1457 .pp__row { 1458 margin-top: 40px; 1459 display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; 1460 } 1461 .pp__item { display: flex; flex-direction: column; gap: 10px; } 1462 .pp__item-title { 1463 font-weight: 400; font-size: 20px; line-height: 125%; color: #141414; 1464 } 1465 .pp__item-desc { 1466 font-weight: 400; font-size: 15px; line-height: 165%; color: #454545; 1467 } 1468 .pp__link { 1469 display: inline-flex; align-items: center; gap: 6px; 1470 margin-top: 2px; text-decoration: none; 1471 font-weight: 600; font-size: 13px; letter-spacing: 0.06em; 1472 text-transform: uppercase; color: #E8732A; 1473 } 1474 .pp__link:hover { text-decoration: underline; } 1475 @media (max-width: 900px) { 1476 .pp__row { grid-template-columns: 1fr; gap: 32px; } 1477 .pp { padding: 56px 0 !important; } 1478 } 1479 `})]}):null},vp=({eyebrow:e,title:t,body:n,ctaLabel:r,ctaTo:s})=>o.jsx("section",{style:{background:"#141414",padding:"32px 0"},children:o.jsxs("div",{className:"nc-container cta-strip-row",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:24,flexWrap:"wrap"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6,maxWidth:n?720:void 0},children:[e?o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:13,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.6px"},children:e}):null,o.jsx("h3",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(22px, 2.4vw, 30px)",lineHeight:"120%",color:"#FFFFFF",textTransform:"uppercase"},children:t}),n?o.jsx("p",{className:"font-body m-0",style:{marginTop:6,fontWeight:400,fontSize:16,lineHeight:"170%",color:"#D4D4D4"},children:n}):null]}),o.jsxs(ke,{to:s,className:"font-display nc-cta",style:{display:"inline-flex",alignItems:"center",gap:10,height:52,padding:"14px 20px 14px 24px",fontWeight:400,fontSize:16,lineHeight:"150%",textTransform:"uppercase",textDecoration:"none",background:"#FE894C",color:"#FFFFFF",border:"1px solid #FE894C",borderRadius:0,whiteSpace:"nowrap"},children:[r,o.jsx(Ue,{size:22,strokeWidth:2})]})]})}),EW=()=>{const e=ve();return o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Packages & Pricing",description:"Performance packages and pricing for ensembles at Carnegie Hall, the Meyers
1479on, and beyond.",path:"/packages-and-pricing"}),o.jsx(bW,{}),o.jsx(wW,{}),o.jsx(kW,{}),o.jsx(_W,{}),o.jsx(SW,{}),o.jsx(CW,{}),o.jsx(vp,{title:e.text("pricing.cta.title"),body:e.text("pricing.cta.body"),ctaLabel:e.text("pricing.cta.cta_label"),ctaTo:"/inquiry?intent=pricing"}),o.jsx(et,{})]})},jW={AK:["Aleutians East Borough","Aleutians West Census Area","Anchorage Municipality","Bethel Census Area","Bristol Bay Borough","Chugach Census Area","Copper River Census Area","Denali Borough","Dillingham Census Area","Fairbanks North Star Borough","Haines Borough","Hoonah-Angoon Census Area","Juneau City and Borough","Kenai Peninsula Borough","Ketchikan Gateway Borough","Kodiak Island Borough","Kusilvak Census Area","Lake and Peninsula Borough","Matanuska-Susitna Borough","Nome Census Area","North Slope Borough","Northwest Arctic Borough","Petersburg Borough","Prince of Wales-Hyder Census Area","Sitka City and Borough","Skagway Municipality","Southeast Fairbanks Census Area","Wrangell City and Borough","Yakutat City and Borough","Yukon-Koyukuk Census Area"],AL:["Autauga","Baldwin","Barbour","Bibb","Blount","Bullock","Butler","Calhoun","Chambers","Cherokee","Chilton","Choctaw","Clarke","Clay","Cleburne","Coffee","Colbert","Conecuh","Coosa","Covington","Crenshaw","Cullman","Dale","Dallas","DeKalb","Elmore","Escambia","Etowah","Fayette","Franklin","Geneva","Greene","Hale","Henry","Houston","Jackson","Jefferson","Lamar","Lauderdale","Lawrence","Lee","Limestone","Lowndes","Macon","Madison","Marengo","Marion","Marshall","Mobile","Monroe","Montgomery","Morgan","Perry","Pickens","Pike","Randolph","Russell","Shelby","St. Clair","Sumter","Talladega","Tallapoosa","Tuscaloosa","Walker","Washington","Wilcox","Winston"],AR:["Arkansas","Ashley","Baxter","Benton","Boone","Bradley","Calhoun","Carroll","Chicot","Clark","Clay","Cleburne","Cleveland","Columbia","Conway","Craighead","Crawford","Crittenden","Cross","Dallas","Desha","Drew","Faulkner","Franklin","Fulton","Garland","Grant","Greene","Hempstead","Hot Spring","Howard","Independence","Izard","Jackson","Jefferson","Johnson","Lafayette","Lawrence","Lee","Lincoln","Little River","Logan","Lonoke","Madison","Marion","Miller","Mississippi","Monroe","Montgomery","Nevada","Newton","Ouachita","Perry","Phillips","Pike","Poinsett","Polk","Pope","Prairie","Pulaski","Randolph","Saline","Scott","Searcy","Sebastian","Sevier","Sharp","St. Francis","Stone","Union","Van Buren","Washington","White","Woodruff","Yell"],AZ:["Apache","Cochise","Coconino","Gila","Graham","Greenlee","La Paz","Maricopa","Mohave","Navajo","Pima","Pinal","Santa Cruz","Yavapai","Yuma"],CA:["Alameda","Alpine","Amador","Butte","Calaveras","Colusa","Contra Costa","Del Norte","El Dorado","Fresno","Glenn","Humboldt","Imperial","Inyo","Kern","Kings","Lake","Lassen","Los Angeles","Madera","Marin","Mariposa","Mendocino","Merced","Modoc","Mono","Monterey","Napa","Nevada","Orange","Placer","Plumas","Riverside","Sacramento","San Benito","San Bernardino","San Diego","San Francisco","San Joaquin","San Luis Obispo","San Mateo","Santa Barbara","Santa Clara","Santa Cruz","Shasta","Sierra","Siskiyou","Solano","Sonoma","Stanislaus","Sutter","Tehama","Trinity","Tulare","Tuolumne","Ventura","Yolo","Yuba"],CO:["Adams","Alamosa","Arapahoe","Archuleta","Baca","Bent","Boulder","Broomfield","Chaffee","Cheyenne","Clear Creek","Conejos","Costilla","Crowley","Custer","Delta","Denver","Dolores","Douglas","Eagle","El Paso","Elbert","Fremont","Garfield","Gilpin","Grand","Gunnison","Hinsdale","Huerfano","Jackson","Jefferson","Kiowa","Kit Carson","La Plata","Lake","Larimer","Las Animas","Lincoln","Logan","Mesa","Mineral","Moffat","Montezuma","Montrose","Morgan","Otero","Ouray","Park","Phillips","Pitkin","Prowers","Pueblo","Rio Blanco","Rio Grande","Routt","Saguache","San Juan","San Miguel","Sedgwick","Summit","Teller","Washington","Weld","Yuma"],CT:["Fairfield","Hartford","Litchfield","Middlesex","New Haven","New London","Tolland","Windham"],DC:["District of Columbia"],DE:["Kent","New Castle","Sussex"],FL:["Alachua","Baker","Bay","Bradford","Brevard","Broward","Calhoun","Charlotte","Citrus","Clay","Collier","Columbia","DeSoto","Dixie","Duval","Escambia","Flagler","Franklin","Gadsden","Gilchrist","Glades","Gulf","Hamilton","Hardee","Hen
1479dry","Hernando","Highlands","Hillsborough","Holmes","Indian River","Jackson","Jefferson","Lafayette","Lake","Lee","Leon","Levy","Liberty","Madison","Manatee","Marion","Martin","Miami-Dade","Monroe","Nassau","Okaloosa","Okeechobee","Orange","Osceola","Palm Beach","Pasco","Pinellas","Polk","Putnam","Santa Rosa","Sarasota","Seminole","St. Johns","St. Lucie","Sumter","Suwannee","Taylor","Union","Volusia","Wakulla","Walton","Washington"],GA:["Appling","Atkinson","Bacon","Baker","Baldwin","Banks","Barrow","Bartow","Ben Hill","Berrien","Bibb","Bleckley","Brantley","Brooks","Bryan","Bulloch","Burke","Butts","Calhoun","Camden","Candler","Carroll","Catoosa","Charlton","Chatham","Chattahoochee","Chattooga","Cherokee","Clarke","Clay","Clayton","Clinch","Cobb","Coffee","Colquitt","Columbia","Cook","Coweta","Crawford","Crisp","Dade","Dawson","DeKalb","Decatur","Dodge","Dooly","Dougherty","Douglas","Early","Echols","Effingham","Elbert","Emanuel","Evans","Fannin","Fayette","Floyd","Forsyth","Franklin","Fulton","Gilmer","Glascock","Glynn","Gordon","Grady","Greene","Gwinnett","Habersham","Hall","Hancock","Haralson","Harris","Hart","Heard","Henry","Houston","Irwin","Jackson","Jasper","Jeff Davis","Jefferson","Jenkins","Johnson","Jones","Lamar","Lanier","Laurens","Lee","Liberty","Lincoln","Long","Lowndes","Lumpkin","Macon","Madison","Marion","McDuffie","McIntosh","Meriwether","Miller","Mitchell","Monroe","Montgomery","Morgan","Murray","Muscogee","Newton","Oconee","Oglethorpe","Paulding","Peach","Pickens","Pierce","Pike","Polk","Pulaski","Putnam","Quitman","Rabun","Randolph","Richmond","Rockdale","Schley","Screven","Seminole","Spalding","Stephens","Stewart","Sumter","Talbot","Taliaferro","Tattnall","Taylor","Telfair","Terrell","Thomas","Tift","Toombs","Towns","Treutlen","Troup","Turner","Twiggs","Union","Upson","Walker","Walton","Ware","Warren","Washington","Wayne","Webster","Wheeler","White","Whitfield","Wilcox","Wilkes","Wilkinson","Worth"],HI:["Hawaii","Honolulu","Kalawao","Kauai","Maui"],IA:["Adair","Adams","Allamakee","Appanoose","Audubon","Benton","Black Hawk","Boone","Bremer","Buchanan","Buena Vista","Butler","Calhoun","Carroll","Cass","Cedar","Cerro Gordo","Cherokee","Chickasaw","Clarke","Clay","Clayton","Clinton","Crawford","Dallas","Davis","Decatur","Delaware","Des Moines","Dickinson","Dubuque","Emmet","Fayette","Floyd","Franklin","Fremont","Greene","Grundy","Guthrie","Hamilton","Hancock","Hardin","Harrison","Henry","Howard","Humboldt","Ida","Iowa","Jackson","Jasper","Jefferson","Johnson","Jones","Keokuk","Kossuth","Lee","Linn","Louisa","Lucas","Lyon","Madison","Mahaska","Marion","Marshall","Mills","Mitchell","Monona","Monroe","Montgomery","Muscatine","O'Brien","Osceola","Page","Palo Alto","Plymouth","Pocahontas","Polk","Pottawattamie","Poweshiek","Ringgold","Sac","Scott","Shelby","Sioux","Story","Tama","Taylor","Union","Van Buren","Wapello","Warren","Washington","Wayne","Webster","Winnebago","Winneshiek","Woodbury","Worth","Wright"],ID:["Ada","Adams","Bannock","Bear Lake","Benewah","Bingham","Blaine","Boise","Bonner","Bonneville","Boundary","Butte","Camas","Canyon","Caribou","Cassia","Clark","Clearwater","Custer","Elmore","Franklin","Fremont","Gem","Gooding","Idaho","Jefferson","Jerome","Kootenai","Latah","Lemhi","Lewis","Lincoln","Madison","Minidoka","Nez Perce","Oneida","Owyhee","Payette","Power","Shoshone","Teton","Twin Falls","Valley","Washington"],IL:["Adams","Alexander","Bond","Boone","Brown","Bureau","Calhoun","Carroll","Cass","Champaign","Christian","Clark","Clay","Clinton","Coles","Cook","Crawford","Cumberland","De Witt","DeKalb","Douglas","DuPage","Edgar","Edwards","Effingham","Fayette","Ford","Franklin","Fulton","Gallatin","Greene","Grundy","Hamilton","Hancock","Hardin","Henderson","Henry","Iroquois","Jackson","Jasper","Jefferson","Jersey","Jo Daviess","Johnson","Kane","Kankakee","Kendall","Knox","LaSalle","Lake","Lawrence","Lee","Livingston","Logan","Macon","Macoupin","Madison","Marion","Marshall","Mason","Massac","McDonough","McHenry","McLean","Menard","Mercer","Monroe","Montgomery","Morgan","Moultrie","Ogle","Peoria","Perry","Piatt","Pike","Pope","Pulaski","Putnam","Randolph","Richland","Rock Island","Saline","Sangamon","Schuyler","Scott","Shelby","St. Clair","Stark","Stephenson","Tazewell","Union","Vermilion","Wabash","Warren","Washington","Wayne","White","Whiteside","Will","Williamson","Winnebago","Woodford"],IN:["Adams","Allen","Bartholomew","Benton","Blackford","Boone","Brown","Carroll","Cass","Clark","Clay","Clinton","Crawford","Daviess","DeKalb","Dearborn","Decatur","Delaware","Dubois","Elkhart","Fayette","Floyd","Fountain","Franklin","Fulton","Gibson","Grant","Greene","Hamilton","Hancock","Harrison","Hendricks","Henry","Howard","Huntington","Jackson","Jasper","Jay","Jefferson","Jennings","Johnson","Knox","Kosciusko","LaGrange","LaPorte","Lake","Lawrence","Madison","Marion","Marshall","Martin","Miami","Monroe","Montgomery","Morgan","Newton","Noble","Ohio","Orange","Owen","Parke","Perry","Pike","Porter","Posey","Pulaski","Putnam","Randolph","Ripley","Rush","Scott","Shelby","Spencer","St. Joseph","Starke","Steuben","Sullivan","Switzerland","Tippecanoe","Tipton","Union","Vanderburgh","Vermillion","Vigo","Wabash","Warren","Warrick","Was
1479hington","Wayne","Wells","White","Whitley"],KS:["Allen","Anderson","Atchison","Barber","Barton","Bourbon","Brown","Butler","Chase","Chautauqua","Cherokee","Cheyenne","Clark","Clay","Cloud","Coffey","Comanche","Cowley","Crawford","Decatur","Dickinson","Doniphan","Douglas","Edwards","Elk","Ellis","Ellsworth","Finney","Ford","Franklin","Geary","Gove","Graham","Grant","Gray","Greeley","Greenwood","Hamilton","Harper","Harvey","Haskell","Hodgeman","Jackson","Jefferson","Jewell","Johnson","Kearny","Kingman","Kiowa","Labette","Lane","Leavenworth","Lincoln","Linn","Logan","Lyon","Marion","Marshall","McPherson","Meade","Miami","Mitchell","Montgomery","Morris","Morton","Nemaha","Neosho","Ness","Norton","Osage","Osborne","Ottawa","Pawnee","Phillips","Pottawatomie","Pratt","Rawlins","Reno","Republic","Rice","Riley","Rooks","Rush","Russell","Saline","Scott","Sedgwick","Seward","Shawnee","Sheridan","Sherman","Smith","Stafford","Stanton","Stevens","Sumner","Thomas","Trego","Wabaunsee","Wallace","Washington","Wichita","Wilson","Woodson","Wyandotte"],KY:["Adair","Allen","Anderson","Ballard","Barren","Bath","Bell","Boone","Bourbon","Boyd","Boyle","Bracken","Breathitt","Breckinridge","Bullitt","Butler","Caldwell","Calloway","Campbell","Carlisle","Carroll","Carter","Casey","Christian","Clark","Clay","Clinton","Crittenden","Cumberland","Daviess","Edmonson","Elliott","Estill","Fayette","Fleming","Floyd","Franklin","Fulton","Gallatin","Garrard","Grant","Graves","Grayson","Green","Greenup","Hancock","Hardin","Harlan","Harrison","Hart","Henderson","Henry","Hickman","Hopkins","Jackson","Jefferson","Jessamine","Johnson","Kenton","Knott","Knox","Larue","Laurel","Lawrence","Lee","Leslie","Letcher","Lewis","Lincoln","Livingston","Logan","Lyon","Madison","Magoffin","Marion","Marshall","Martin","Mason","McCracken","McCreary","McLean","Meade","Menifee","Mercer","Metcalfe","Monroe","Montgomery","Morgan","Muhlenberg","Nelson","Nicholas","Ohio","Oldham","Owen","Owsley","Pendleton","Perry","Pike","Powell","Pulaski","Robertson","Rockcastle","Rowan","Russell","Scott","Shelby","Simpson","Spencer","Taylor","Todd","Trigg","Trimble","Union","Warren","Washington","Wayne","Webster","Whitley","Wolfe","Woodford"],LA:["Acadia Parish","Allen Parish","Ascension Parish","Assumption Parish","Avoyelles Parish","Beauregard Parish","Bienville Parish","Bossier Parish","Caddo Parish","Calcasieu Parish","Caldwell Parish","Cameron Parish","Catahoula Parish","Claiborne Parish","Concordia Parish","De Soto Parish","East Baton Rouge Parish","East Carroll Parish","East Feliciana Parish","Evangeline Parish","Franklin Parish","Grant Parish","Iberia Parish","Iberville Parish","Jackson Parish","Jefferson Davis Parish","Jefferson Parish","LaSalle Parish","Lafayette Parish","Lafourche Parish","Lincoln Parish","Livingston Parish","Madison Parish","Morehouse Parish","Natchitoches Parish","Orleans Parish","Ouachita Parish","Plaquemines Parish","Pointe Coupee Parish","Rapides Parish","Red River Parish","Richland Parish","Sabine Parish","St. Bernard Parish","St. Charles Parish","St. Helena Parish","St. James Parish","St. John the Baptist Parish","St. Landry Parish","St. Martin Parish","St. Mary Parish","St. Tammany Parish","Tangipahoa Parish","Tensas Parish","Terrebonne Parish","Union Parish","Vermilion Parish","Vernon Parish","Washington Parish","Webster Parish","West Baton Rouge Parish","West Carroll Parish","West Feliciana Parish","Winn Parish"],MA:["Barnstable","Berkshire","Bristol","Dukes","Essex","Franklin","Hampden","Hampshire","Middlesex","Nantucket","Norfolk","Plymouth","Suffolk","Worcester"],MD:["Allegany","Anne Arundel","Baltimore","Baltimore city","Calvert","Caroline","Carroll","Cecil","Charles","Dorchester","Frederick","Garrett","Harford","Howard","Kent","Montgomery","Prince George's","Queen Anne's","Somerset","St. Mary's","Talbot","Washington","Wicomico","Worcester"],ME:["Androscoggin","Aroostook","Cumberland","Franklin","Hancock","Kennebec","Knox","Lincoln","Oxford","Penobscot","Piscataquis","Sagadahoc","Somerset","Waldo","Washington","York"],MI:["Alcona","Alger","Allegan","Alpena","Antrim","Arenac","Baraga","Barry","Bay","Benzie","Berrien","Branch","Calhoun","Cass","Charlevoix","Cheboygan","Chippewa","Clare","Clinton","Crawford","Delta","Dickinson","Eaton","Emmet","Genesee","Gladwin","Gogebic","Grand Traverse","Gratiot","Hillsdale","Houghton","Huron","Ingham","Ionia","Iosco","Iron","Isabella","Jackson","Kalamazoo","Kalkaska","Kent","Keweenaw","Lake","Lapeer","Leelanau","Lenawee","Livingston","Luce","Mackinac","Macomb","Manistee","Marquette","Mason","Mecosta","Menominee","Midland","Missaukee","Monroe","Montcalm","Montmorency","Muskegon","Newaygo","Oakland","Oceana","Ogemaw","Ontonagon","Osceola","Oscoda","Otsego","Ottawa","Presque Isle","Roscommon","Saginaw","Sanilac","Schoolcraft","Shiawassee","St. Clair","St. Joseph","Tuscola","Van Buren","Washtenaw","Wayne","Wexford"],MN:["Aitkin","Anoka","Becker","Beltrami","Benton","Big Stone","Blue Earth","Brown","Carlton","Carver","Cass","Chippewa","Chisago","Clay","Clearwater","Cook","Cottonwood","Crow Wing","Dakota","Dodge","Douglas","Faribault","Fillmore","Freeborn","Goodhue","Grant","Hennepin","Houston","Hubbard","Isanti","Itasca","Jackson","Kanabec","Kandiyohi","Kittson","Koochiching","Lac qui Parle","Lake","Lake of the Woods","
1479Le Sueur","Lincoln","Lyon","Mahnomen","Marshall","Martin","McLeod","Meeker","Mille Lacs","Morrison","Mower","Murray","Nicollet","Nobles","Norman","Olmsted","Otter Tail","Pennington","Pine","Pipestone","Polk","Pope","Ramsey","Red Lake","Redwood","Renville","Rice","Rock","Roseau","Scott","Sherburne","Sibley","St. Louis","Stearns","Steele","Stevens","Swift","Todd","Traverse","Wabasha","Wadena","Waseca","Washington","Watonwan","Wilkin","Winona","Wright","Yellow Medicine"],MO:["Adair","Andrew","Atchison","Audrain","Barry","Barton","Bates","Benton","Bollinger","Boone","Buchanan","Butler","Caldwell","Callaway","Camden","Cape Girardeau","Carroll","Carter","Cass","Cedar","Chariton","Christian","Clark","Clay","Clinton","Cole","Cooper","Crawford","Dade","Dallas","Daviess","DeKalb","Dent","Douglas","Dunklin","Franklin","Gasconade","Gentry","Greene","Grundy","Harrison","Henry","Hickory","Holt","Howard","Howell","Iron","Jackson","Jasper","Jefferson","Johnson","Knox","Laclede","Lafayette","Lawrence","Lewis","Lincoln","Linn","Livingston","Macon","Madison","Maries","Marion","McDonald","Mercer","Miller","Mississippi","Moniteau","Monroe","Montgomery","Morgan","New Madrid","Newton","Nodaway","Oregon","Osage","Ozark","Pemiscot","Perry","Pettis","Phelps","Pike","Platte","Polk","Pulaski","Putnam","Ralls","Randolph","Ray","Reynolds","Ripley","Saline","Schuyler","Scotland","Scott","Shannon","Shelby","St. Charles","St. Clair","St. Francois","St. Louis","St. Louis city","Ste. Genevieve","Stoddard","Stone","Sullivan","Taney","Texas","Vernon","Warren","Washington","Wayne","Webster","Worth","Wright"],MS:["Adams","Alcorn","Amite","Attala","Benton","Bolivar","Calhoun","Carroll","Chickasaw","Choctaw","Claiborne","Clarke","Clay","Coahoma","Copiah","Covington","DeSoto","Forrest","Franklin","George","Greene","Grenada","Hancock","Harrison","Hinds","Holmes","Humphreys","Issaquena","Itawamba","Jackson","Jasper","Jefferson","Jefferson Davis","Jones","Kemper","Lafayette","Lamar","Lauderdale","Lawrence","Leake","Lee","Leflore","Lincoln","Lowndes","Madison","Marion","Marshall","Monroe","Montgomery","Neshoba","Newton","Noxubee","Oktibbeha","Panola","Pearl River","Perry","Pike","Pontotoc","Prentiss","Quitman","Rankin","Scott","Sharkey","Simpson","Smith","Stone","Sunflower","Tallahatchie","Tate","Tippah","Tishomingo","Tunica","Union","Walthall","Warren","Washington","Wayne","Webster","Wilkinson","Winston","Yalobusha","Yazoo"],MT:["Beaverhead","Big Horn","Blaine","Broadwater","Carbon","Carter","Cascade","Chouteau","Custer","Daniels","Dawson","Deer Lodge","Fallon","Fergus","Flathead","Gallatin","Garfield","Glacier","Golden Valley","Granite","Hill","Jefferson","Judith Basin","Lake","Lewis and Clark","Liberty","Lincoln","Madison","McCone","Meagher","Mineral","Missoula","Musselshell","Park","Petroleum","Phillips","Pondera","Powder River","Powell","Prairie","Ravalli","Richland","Roosevelt","Rosebud","Sanders","Sheridan","Silver Bow","Stillwater","Sweet Grass","Teton","Toole","Treasure","Valley","Wheatland","Wibaux","Yellowstone"],NC:["Alamance","Alexander","Alleghany","Anson","Ashe","Avery","Beaufort","Bertie","Bladen","Brunswick","Buncombe","Burke","Cabarrus","Caldwell","Camden","Carteret","Caswell","Catawba","Chatham","Cherokee","Chowan","Clay","Cleveland","Columbus","Craven","Cumberland","Currituck","Dare","Davidson","Davie","Duplin","Durham","Edgecombe","Forsyth","Franklin","Gaston","Gates","Graham","Granville","Greene","Guilford","Halifax","Harnett","Haywood","Henderson","Hertford","Hoke","Hyde","Iredell","Jackson","Johnston","Jones","Lee","Lenoir","Lincoln","Macon","Madison","Martin","McDowell","Mecklenburg","Mitchell","Montgomery","Moore","Nash","New Hanover","Northampton","Onslow","Orange","Pamlico","Pasquotank","Pender","Perquimans","Person","Pitt","Polk","Randolph","Richmond","Robeson","Rockingham","Rowan","Rutherford","Sampson","Scotland","Stanly","Stokes","Surry","Swain","Transylvania","Tyrrell","Union","Vance","Wake","Warren","Washington","Watauga","Wayne","Wilkes","Wilson","Yadkin","Yancey"],ND:["Adams","Barnes","Benson","Billings","Bottineau","Bowman","Burke","Burleigh","Cass","Cavalier","Dickey","Divide","Dunn","Eddy","Emmons","Foster","Golden Valley","Grand Forks","Grant","Griggs","Hettinger","Kidder","LaMoure","Logan","McHenry","McIntosh","McKenzie","McLean","Mercer","Morton","Mountrail","Nelson","Oliver","Pembina","Pierce","Ramsey","Ransom","Renville","Richland","Rolette","Sargent","Sheridan","Sioux","Slope","Stark","Steele","Stutsman","Towner","Traill","Walsh","Ward","Wells","Williams"],NE:["Adams","Antelope","Arthur","Banner","Blaine","Boone","Bo
1479x Butte","Boyd","Brown","Buffalo","Burt","Butler","Cass","Cedar","Chase","Cherry","Cheyenne","Clay","Colfax","Cuming","Custer","Dakota","Dawes","Dawson","Deuel","Dixon","Dodge","Douglas","Dundy","Fillmore","Franklin","Frontier","Furnas","Gage","Garden","Garfield","Gosper","Grant","Greeley","Hall","Hamilton","Harlan","Hayes","Hitchcock","Holt","Hooker","Howard","Jefferson","Johnson","Kearney","Keith","Keya Paha","Kimball","Knox","Lancaster","Lincoln","Logan","Loup","Madison","McPherson","Merrick","Morrill","Nance","Nemaha","Nuckolls","Otoe","Pawnee","Perkins","Phelps","Pierce","Platte","Polk","Red Willow","Richardson","Rock","Saline","Sarpy","Saunders","Scotts Bluff","Seward","Sheridan","Sherman","Sioux","Stanton","Thayer","Thomas","Thurston","Valley","Washington","Wayne","Webster","Wheeler","York"],NH:["Belknap","Carroll","Cheshire","Coos","Grafton","Hillsborough","Merrimack","Rockingham","Strafford","Sullivan"],NJ:["Atlantic","Bergen","Burlington","Camden","Cape May","Cumberland","Essex","Gloucester","Hudson","Hunterdon","Mercer","Middlesex","Monmouth","Morris","Ocean","Passaic","Salem","Somerset","Sussex","Union","Warren"],NM:["Bernalillo","Catron","Chaves","Cibola","Colfax","Curry","De Baca","Doña Ana","Eddy","Grant","Guadalupe","Harding","Hidalgo","Lea","Lincoln","Los Alamos","Luna","McKinley","Mora","Otero","Quay","Rio Arriba","Roosevelt","San Juan","San Miguel","Sandoval","Santa Fe","Sierra","Socorro","Taos","Torrance","Union","Valencia"],NV:["Carson City","Churchill","Clark","Douglas","Elko","Esmeralda","Eureka","Humboldt","Lander","Lincoln","Lyon","Mineral","Nye","Pershing","Storey","Washoe","White Pine"],NY:["Albany","Allegany","Bronx","Broome","Cattaraugus","Cayuga","Chautauqua","Chemung","Chenango","Clinton","Columbia","Cortland","Delaware","Dutchess","Erie","Essex","Franklin","Fulton","Genesee","Greene","Hamilton","Herkimer","Jefferson","Kings","Lewis","Livingston","Madison","Monroe","Montgomery","Nassau","New York","Niagara","Oneida","Onondaga","Ontario","Orange","Orleans","Oswego","Otsego","Putnam","Queens","Rensselaer","Richmond","Rockland","Saratoga","Schenectady","Schoharie","Schuyler","Seneca","St. Lawrence","Steuben","Suffolk","Sullivan","Tioga","Tompkins","Ulster","Warren","Washington","Wayne","Westchester","Wyoming","Yates"],OH:["Adams","Allen","Ashland","Ashtabula","Athens","Auglaize","Belmont","Brown","Butler","Carroll","Champaign","Clark","Clermont","Clinton","Columbiana","Coshocton","Crawford","Cuyahoga","Darke","Defiance","Delaware","Erie","Fairfield","Fayette","Franklin","Fulton","Gallia","Geauga","Greene","Guernsey","Hamilton","Hancock","Hardin","Harrison","Henry","Highland","Hocking","Holmes","Huron","Jackson","Jefferson","Knox","Lake","Lawrence","Licking","Logan","Lorain","Lucas","Madison","Mahoning","Marion","Medina","Meigs","Mercer","Miami","Monroe","Montgomery","Morgan","Morrow","Muskingum","Noble","Ottawa","Paulding","Perry","Pickaway","Pike","Portage","Preble","Putnam","Richland","Ross","Sandusky","Scioto","Seneca","Shelby","Stark","Summit","Trumbull","Tuscarawas","Union","Van Wert","Vinton","Warren","Washington","Wayne","Williams","Wood","Wyandot"],OK:["Adair","Alfalfa","Atoka","Beaver","Beckham","Blaine","Bryan","Caddo","Canadian","Carter","Cherokee","Choctaw","Cimarron","Cleveland","Coal","Comanche","Cotton","Craig","Creek","Custer","Delaware","Dewey","Ellis","Garfield","Garvin","Grady","Grant","Greer","Harmon","Harper","Haskell","Hughes","Jackson","Jefferson","Johnston","Kay","Kingfisher","Kiowa","Latimer","Le Flore","Lincoln","Logan","Love","Major","Marshall","Mayes","McClain","McCurtain","McIntosh","Murray","Muskogee","Noble","Nowata","Okfuskee","Oklahoma","Okmulgee","Osage","Ottawa","Pawnee","Payne","Pittsburg","Pontotoc","Pottawatomie","Pushmataha","Roger Mills","Rogers","Seminole","Sequoyah","Stephens","Texas","Tillman","Tulsa","Wagoner","Washington","Washita","Woods","Woodward"],OR:["Baker","Benton","Clackamas","Clatsop","Columbia","Coos","Crook","Curry","Deschutes","Douglas","Gilliam","Grant","Harney","Hood River","Jackson","Jefferson","Josephine","Klamath","Lake","Lane","Lincoln","Linn","Malheur","Marion","Morrow","Multnomah","Polk","Sherman","Tillamook","Umatilla","Union","Wallowa","Wasco","Washington","Wheeler","Yamhill"],PA:["Adams","Allegheny","Armstrong","Beaver","Bedford","Berks","Blair","Bradford","Bucks","Butler","Cambria","Cameron","Carbon","Centre","Chester","Clarion","Clearfield","Clinton","Columbia","Crawford","Cumberland","Dauphin","Delaware","Elk","Erie","Fayette","Forest","Franklin","Fulton","Greene","Huntingdon","Indiana","Jefferson","Juniata","Lackawanna","Lancaster","Lawrence","Lebanon","Lehigh","Luzerne","Lycoming","McKean","Mercer","Mifflin","Monroe","Montgomery","Montour","Northampton","Northumberland","Perry","Philadelphia","Pike","Potter","Sc
1479huylkill","Snyder","Somerset","Sullivan","Susquehanna","Tioga","Union","Venango","Warren","Washington","Wayne","Westmoreland","Wyoming","York"],PR:["Adjuntas Municipio","Aguada Municipio","Aguadilla Municipio","Aguas Buenas Municipio","Aibonito Municipio","Arecibo Municipio","Arroyo Municipio","Añasco Municipio","Barceloneta Municipio","Barranquitas Municipio","Bayamón Municipio","Cabo Rojo Municipio","Caguas Municipio","Camuy Municipio","Canóvanas Municipio","Carolina Municipio","Cataño Municipio","Cayey Municipio","Ceiba Municipio","Ciales Municipio","Cidra Municipio","Coamo Municipio","ComerÃo Municipio","Corozal Municipio","Culebra Municipio","Dorado Municipio","Fajardo Municipio","Florida Municipio","Guayama Municipio","Guayanilla Municipio","Guaynabo Municipio","Gurabo Municipio","Guánica Municipio","Hatillo Municipio","Hormigueros Municipio","Humacao Municipio","Isabela Municipio","Jayuya Municipio","Juana DÃaz Municipio","Juncos Municipio","Lajas Municipio","Lares Municipio","Las MarÃas Municipio","Las Piedras Municipio","LoÃza Municipio","Luquillo Municipio","Manatà Municipio","Maricao Municipio","Maunabo Municipio","Mayagüez Municipio","Moca Municipio","Morovis Municipio","Naguabo Municipio","Naranjito Municipio","Orocovis Municipio","Patillas Municipio","Peñuelas Municipio","Ponce Municipio","Quebradillas Municipio","Rincón Municipio","RÃo Grande Municipio","Sabana Grande Municipio","Salinas Municipio","San Germán Municipio","San Juan Municipio","San Lorenzo Municipio","San Sebastián Municipio","Santa Isabel Municipio","Toa Alta Municipio","Toa Baja Municipio","Trujillo Alto Municipio","Utuado Municipio","Vega Alta Municipio","Vega Baja Municipio","Vieques Municipio","Villalba Municipio","Yabucoa Municipio","Yauco Municipio"],RI:["Bristol","Kent","Newport","Providence","Washington"],SC:["Abbeville","Aiken","Allendale","Anderson","Bamberg","Barnwell","Beaufort","Berkeley","Calhoun","Charleston","Cherokee","Chester","Chesterfield","Clarendon","Colleton","Darlington","Dillon","Dorchester","Edgefield","Fairfield","Florence","Georgetown","Greenville","Greenwood","Hampton","Horry","Jasper","Kershaw","Lancaster","Laurens","Lee","Lexington","Marion","Marlboro","McCormick","Newberry","Oconee","Orangeburg","Pickens","Richland","Saluda","Spartanburg","Sumter","Union","Williamsburg","York"],SD:["Aurora","Beadle","Bennett","Bon Homme","Brookings","Brown","Brule","Buffalo","Butte","Campbell","Charles Mix","Clark","Clay","Codington","Corson","Custer","Davison","Day","Deuel","Dewey","Douglas","Edmunds","Fall River","Faulk","Grant","Gregory","Haakon","Hamlin","Hand","Hanson","Harding","Hughes","Hutchinson","Hyde","Jackson","Jerauld","Jones","Kingsbury","Lake","Lawrence","Lincoln","Lyman","Marshall","McCook","McPherson","Meade","Mellette","Miner","Minnehaha","Moody","Oglala Lakota","Pennington","Perkins","Potter","Roberts","Sanborn","Spink","Stanley","Sully","Todd","Tripp","Turner","Union","Walworth","Yankton","Ziebach"],TN:["Anderson","Bedford","Benton","Bledsoe","Blount","Bradley","Campbell","Cannon","Carroll","Carter","Cheatham","Chester","Claiborne","Clay","Cocke","Coffee","Crockett","Cumberland","Davidson","DeKalb","Decatur","Dickson","Dyer","Fayette","Fentress","Franklin","Gibson","Giles","Grainger","Greene","Grundy","Hamblen","Hamilton","Hancock","Hardeman","Hardin","Hawkins","Haywood","Henderson","Henry","Hickman","Houston","Humphreys","Jackson","Jefferson","Johnson","Knox","Lake","Lauderdale","Lawrence","Lewis","Lincoln","Loudon","Macon","Madison","Marion","Marshall","Maury","McMinn","McNairy","Meigs","Monroe","Montgomery","Moore","Morgan","Obion","Overton","Perry","Pickett","Polk","Putnam","Rhea","Roane","Robertson","Rutherford","Scott","Sequatchie","Sevier","Shelby","Smith","Stewart","Sullivan","Sumner","Tipton","Trousdale","Unicoi","Union","Van Buren","Warren","Washington","Wayne","Weakley","White","Williamson","Wilson"],TX:["Anderson","Andrews","Angelina","Aransas","Archer","Armstrong","Atascosa","Austin","Bailey","Bandera","Bastrop","Baylor","Bee","Bell","Bexar","Blanco","Borden","Bosque","Bowie","Brazoria","Brazos","Brewster","Briscoe","Brooks","Brown","Burleson","Burnet","Caldwell","Calhoun","Callahan","Cameron","Camp","Carson","Cass","Castro","Chambers","Cherokee","Childress","Clay","Cochran","Coke","Coleman","Collin","Collingsworth","Colorado","Comal","Comanche","Concho","Cooke","Coryell","Cottle","Crane","Crockett","Crosby","Culberson","Dallam","Dallas","Dawson","DeWitt","Deaf Smith","Delta","Denton","Dickens","Dimmit","Donley","Duval","Eastland","Ector","Edwards","El Paso","Ellis","Erath","Falls","Fannin","Fayette","Fisher","Floyd","Foard","Fort Bend","Franklin","Freestone","Frio","Gaines","Galveston","Garza","Gillespie","Glasscock","Goliad","Gonzales","Gray","Grayson","Gregg","Grimes","Guadalupe","Hale","Hall","Hamilton","Hansford","Hardeman","Hardin","Harris","Harrison","Hartley","Haskell","Hays","Hemphill","Hen
1479derson","Hidalgo","Hill","Hockley","Hood","Hopkins","Houston","Howard","Hudspeth","Hunt","Hutchinson","Irion","Jack","Jackson","Jasper","Jeff Davis","Jefferson","Jim Hogg","Jim Wells","Johnson","Jones","Karnes","Kaufman","Kendall","Kenedy","Kent","Kerr","Kimble","King","Kinney","Kleberg","Knox","La Salle","Lamar","Lamb","Lampasas","Lavaca","Lee","Leon","Liberty","Limestone","Lipscomb","Live Oak","Llano","Loving","Lubbock","Lynn","Madison","Marion","Martin","Mason","Matagorda","Maverick","McCulloch","McLennan","McMullen","Medina","Menard","Midland","Milam","Mills","Mitchell","Montague","Montgomery","Moore","Morris","Motley","Nacogdoches","Navarro","Newton","Nolan","Nueces","Ochiltree","Oldham","Orange","Palo Pinto","Panola","Parker","Parmer","Pecos","Polk","Potter","Presidio","Rains","Randall","Reagan","Real","Red River","Reeves","Refugio","Roberts","Robertson","Rockwall","Runnels","Rusk","Sabine","San Augustine","San Jacinto","San Patricio","San Saba","Schleicher","Scurry","Shackelford","Shelby","Sherman","Smith","Somervell","Starr","Stephens","Sterling","Stonewall","Sutton","Swisher","Tarrant","Taylor","Terrell","Terry","Throckmorton","Titus","Tom Green","Travis","Trinity","Tyler","Upshur","Upton","Uvalde","Val Verde","Van Zandt","Victoria","Walker","Waller","Ward","Washington","Webb","Wharton","Wheeler","Wichita","Wilbarger","Willacy","Williamson","Wilson","Winkler","Wise","Wood","Yoakum","Young","Zapata","Zavala"],UT:["Beaver","Box Elder","Cache","Carbon","Daggett","Davis","Duchesne","Emery","Garfield","Grand","Iron","Juab","Kane","Millard","Morgan","Piute","Rich","Salt Lake","San Juan","Sanpete","Sevier","Summit","Tooele","Uintah","Utah","Wasatch","Washington","Wayne","Weber"],VA:["Accomack","Albemarle","Alexandria city","Alleghany","Amelia","Amherst","Appomattox","Arlington","Augusta","Bath","Bedford","Bland","Botetourt","Bristol city","Brunswick","Buchanan","Buckingham","Buena Vista city","Campbell","Caroline","Carroll","Charles City","Charlotte","Charlottesville city","Chesapeake city","Chesterfield","Clarke","Colonial Heights city","Covington city","Craig","Culpeper","Cumberland","Danville city","Dickenson","Dinwiddie","Emporia city","Essex","Fairfax","Fairfax city","Falls Church city","Fauquier","Floyd","Fluvanna","Franklin","Franklin city","Frederick","Fredericksburg city","Galax city","Giles","Gloucester","Goochland","Grayson","Greene","Greensville","Halifax","Hampton city","Hanover","Harrisonburg city","Henrico","Henry","Highland","Hopewell city","Isle of Wight","James City","King George","King William","King and Queen","Lancaster","Lee","Lexington city","Loudoun","Louisa","Lunenburg","Lynchburg city","Madison","Manassas Park city","Manassas city","Martinsville city","Mathews","Mecklenburg","Middlesex","Montgomery","Nelson","New Kent","Newport News city","Norfolk city","Northampton","Northumberland","Norton city","Nottoway","Orange","Page","Patrick","Petersburg city","Pittsylvania","Poquoson city","Portsmouth city","Powhatan","Prince Edward","Prince George","Prince William","Pulaski","Radford city","Rappahannock","Richmond","Richmond city","Roanoke","Roanoke city","Rockbridge","Rockingham","Russell","Salem city","Scott","Shenandoah","Smyth","Southampton","Spotsylvania","Stafford","Staunton city","Suffolk city","Surry","Sussex","Tazewell","Virginia Beach city","Warren","Washington","Waynesboro city","Westmoreland","Williamsburg city","Winchester city","Wise","Wythe","York"],VT:["Addison","Bennington","Caledonia","Chittenden","Essex","Franklin","Grand Isle","Lamoille","Orange","Orleans","Rutland","Washington","Windham","Windsor"],WA:["Adams","Asotin","Benton","Chelan","Clallam","Clark","Columbia","Cowlitz","Douglas","Ferry","Franklin","Garfield","Grant","Grays Harbor","Island","Jefferson","King","Kitsap","Kittitas","Klickitat","Lewis","Lincoln","Mason","Okanogan","Pacific","Pend Oreille","Pierce","San Juan","Skagit","Skamania","Snohomish","Spokane","Stevens","Thurston","Wahkiakum","Walla Walla","Whatcom","Whitman","Yakima"],WI:["Adams","Ashland","Barron","Bayfield","Brown","Buffalo","Burnett","Calumet","Chippewa","Clark","Columbia","Crawford","Dane","Dodge","Door","Douglas","Dunn","Eau Claire","Florence","Fond du Lac","Forest","Grant","Green","Green Lake","Iowa","Iron","Jackson","Jefferson","Juneau","Kenosha","Kewaunee","La Crosse","Lafayette","Langlade","Lincoln","Manitowoc","Marathon","Marinette","Marquette","Menominee","Milwaukee","Monroe","Oconto","Oneida","Outagamie","Ozaukee","Pepin","Pierce","Polk","Portage","Price","Racine","Richland","Rock","Rusk","Sauk","Sawyer","Shawano","Sheboygan","St. Croix","Taylor","Trempealeau","Vernon","Vilas","Walworth","Was
1479hburn","Washington","Waukesha","Waupaca","Waushara","Winnebago","Wood"],WV:["Barbour","Berkeley","Boone","Braxton","Brooke","Cabell","Calhoun","Clay","Doddridge","Fayette","Gilmer","Grant","Greenbrier","Hampshire","Hancock","Hardy","Harrison","Jackson","Jefferson","Kanawha","Lewis","Lincoln","Logan","Marion","Marshall","Mason","McDowell","Mercer","Mineral","Mingo","Monongalia","Monroe","Morgan","Nicholas","Ohio","Pendleton","Pleasants","Pocahontas","Preston","Putnam","Raleigh","Randolph","Ritchie","Roane","Summers","Taylor","Tucker","Tyler","Upshur","Wayne","Webster","Wetzel","Wirt","Wood","Wyoming"],WY:["Albany","Big Horn","Campbell","Carbon","Converse","Crook","Fremont","Goshen","Hot Springs","Johnson","Laramie","Lincoln","Natrona","Niobrara","Park","Platte","Sheridan","Sublette","Sweetwater","Teton","Uinta","Washakie","Weston"]},g1=["Choir","Band","Orchestra","Other"],TW=["Director","Performer","Administrator","Board Member","Parent/Booster","Other"],AW=["Elementary","Community Youth","Jr. High/Middle School","Sr. High School","K-12","College/University","Community Adult","Church/Faith Based","Professional"],NW=["Up to 25","25-50","50+"],FW=["Festival Chorus Performance","Ensemble Feature","National Band & Orchestra Fest","National Honor Band/Orchestra","Not Sure Yet"],PW=["Carnegie Hall","Meyerson Symphony Center","I'm Open to Suggestions","Other"],RW=["2027","2028","2029","Not Sure Yet"],OW=["Friend or Colleague","Online Search","Marketing Email","Direct Email or Phone Call","Physical mailing","Digital or Print Ad"],MW=[["AL","Alabama"],["AK","Alaska"],["AZ","Arizona"],["AR","Arkansas"],["CA","California"],["CO","Colorado"],["CT","Connecticut"],["DE","Delaware"],["DC","District of Columbia"],["FL","Florida"],["GA","Georgia"],["HI","Hawaii"],["ID","Idaho"],["IL","Illinois"],["IN","Indiana"],["IA","Iowa"],["KS","Kansas"],["KY","Kentucky"],["LA","Louisiana"],["ME","Maine"],["MD","Maryland"],["MA","Massachusetts"],["MI","Michigan"],["MN","Minnesota"],["MS","Mississippi"],["MO","Missouri"],["MT","Montana"],["NE","Nebraska"],["NV","Nevada"],["NH","New Hampshire"],["NJ","New Jersey"],["NM","New Mexico"],["NY","New York"],["NC","North Carolina"],["ND","North Dakota"],["OH","Ohio"],["OK","Oklahoma"],["OR","Oregon"],["PA","Pennsylvania"],["RI","Rhode Island"],["SC","South Carolina"],["SD","South Dakota"],["TN","Tennessee"],["TX","Texas"],["UT","Utah"],["VT","Vermont"],["VA","Virginia"],["WA","Washington"],["WV","West Virginia"],["WI","Wisconsin"],["WY","Wyoming"],["PR","Puerto Rico"]],IW=500*1024*1024,LW="inquiry-uploads";function $f(e,t){const n=(e??"").trim(),r=(t??"").trim();return n?r?n.split(",").map(s=>s.trim()==="Other"?r:s.trim()).filter(Boolean).join(", "):n:null}const ej=({eventSlug:e,intent:t,variant:n="dark"})=>{const r=!!e,s=r?" *":"",i=r?"":" (Optional)",a=ve(),{data:l}=jo(),d=e?(l??pp).find(A=>A.slug===e):void 0,u=(d==null?void 0:d.ensembles)??[],[h,f]=w.useState(u.filter(A=>g1.includes(A))),[p,v]=w.useState(""),[y,x]=w.useState(""),[g,m]=w.useState([]),[b,k]=w.useState(""),[S,E]=w.useState(""),[C,N]=w.useState(!1),[R,M]=w.useState(!1),[H,D]=w.useState(null),U=w.useRef(null),B=async A=>{var ce,ae;if(A.preventDefault(),C)return;N(!0),D(null);const z=new FormData(A.currentTarget);if(z.get("website")){M(!0),N(!1);return}if(r&&(h.length===0||!p)){D("Please answer the starred questions about your ensemble."),N(!1);return}try{let pe=null;const Z=(ae=(ce=U.current)==null?void 0:ce.files)==null?void 0:ae[0];if(Z){if(Z.size>IW)throw new Error("File is larger than 500MB.");const Ve=Z.name.replace(/[^a-zA-Z0-9._-]/g,"_"),Ze=`${crypto.randomUUID()}-${Ve}`,{error:Ge}=await pr.storage.from(LW).upload(Ze,Z);if(Ge)throw Ge;pe=Ze}const ze={intent:t||null,event_slug:z.get("event")||e||null,full_name:z.get("fullName"),email:z.get("email"),phone:z.get("phone")||null,organization:z.get("organization")||null,county:z.get("county")||null,state:z.get("state")||null,role:$f(z.get("role"),z.get("roleOther")),ensembles:$f(z.get("ensemble"),z.get("ensembleOther")),group_level:z.get("level")||null,group_size:z.get("groupSize")||null,performed_before:z.get("performedBefore")||null,experience_interest:z.get("experience")||null,destinations:$f(z.get("destinations"),z.get("destinationOther")),timeline:z.get("timeline")||null,source:z.get("source")||null,accolades:z.get("accolades")||null,requests:z.get("requests")||null,referral:z.get("referral")||null,recording_url:z.get("recording_url")||null,attachment_path:pe},Qe=pr,{error:ge}=await Qe.from("inquiry_submissions").insert(ze);if(ge)throw ge;M(!0)}catch(pe){D(pe.message||"Something went wrong. Please try again.")}finally{N(!1)}};if(R)return o.jsxs("div",{className:`inq-form${n==="light"?" inq-form--light":""}
1479 inq-form--done`,children:[o.jsx(g6,{className:"inq-done__icon",size:48,strokeWidth:1.5}),o.jsx("h3",{className:"inq-done__title font-display m-0",children:a.text("get_started.form.success_title")}),o.jsx("p",{className:"inq-done__text font-body m-0",children:a.text("get_started.form.success_body")}),o.jsx("style",{children:` 1480 .inq-form--done { 1481 align-items: center; text-align: center; gap: 16px; 1482 min-height: 320px; justify-content: center; 1483 } 1484 .inq-done__icon { color: #FE894C; } 1485 .inq-done__title { color: #FFFFFF; font-weight: 400; font-size: 28px; text-transform: uppercase; } 1486 .inq-form--light .inq-done__title { color: #141414; } 1487 .inq-done__text { color: #C8CED9; font-size: 15px; line-height: 155%; max-width: 420px; } 1488 .inq-form--light .inq-done__text { color: #5C6470; } 1489 `})]});const ne=o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsxs("span",{className:"inq-label",children:["How did you hear about National Concerts?",s]}),o.jsxs("select",{name:"source",defaultValue:"",required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"Select an option"}),OW.map(A=>o.jsx("option",{children:A},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]}),te=o.jsxs("label",{className:"inq-field inq-field--area",children:[o.jsxs("span",{className:"inq-label",children:["Has your ensemble recently participated in any notable performances, festivals, or conferences?",i]}),o.jsx("textarea",{name:"accolades",rows:3,placeholder:"Tell us about any recent invitations, honor performances, conference appearances, or other accomplishments."})]}),oe=o.jsxs("label",{className:"inq-field inq-field--area",children:[o.jsx("span",{className:"inq-label",children:"Tell us about your goals for your ensemble."}),o.jsx("textarea",{name:"requests",rows:3,placeholder:"Share anything you'd like us to know. What type of performance you're looking for, fundraising support, or something unique, we'd love to know."})]}),O=o.jsxs("label",{className:"inq-field",children:[o.jsxs("span",{className:"inq-label",children:["Referral code",r?"":" (optional)"]}),o.jsx("input",{type:"text",name:"referral"})]});return o.jsxs("form",{className:`inq-form${n==="light"?" inq-form--light":""}`,onSubmit:B,children:[d&&o.jsxs("div",{className:"inq-form__context",children:[o.jsx("span",{className:"inq-form__context-label font-body",children:"Inquiring about"}),o.jsx("span",{className:"inq-form__context-value font-display",children:d.title}),o.jsxs("span",{className:"inq-form__context-meta font-body",children:[d.venue," · ",ki(d.date)]}),o.jsx("input",{type:"hidden",name:"event",value:d.slug})]}),o.jsx("input",{type:"text",name:"website",tabIndex:-1,autoComplete:"off","aria-hidden":"true",style:{position:"absolute",left:"-9999px",width:1,height:1,opacity:0}}),o.jsxs("div",{className:"inq-form__fields",children:[r?o.jsxs("p",{className:"inq-required-key font-body",children:[o.jsx("span",{"aria-hidden":"true",children:"*"})," Required"]}):null,o.jsxs("fieldset",{className:"inq-sec",children:[o.jsx("legend",{className:"inq-sec__title font-display",children:"Contact Information"}),o.jsxs("label",{className:"inq-field",children:[o.jsxs("span",{className:"inq-label",children:["Your name",s]}),o.jsx("input",{type:"text",name:"fullName",required:!0})]}),o.jsxs("label",{className:"inq-field",children:[o.jsxs("span",{className:"inq-label",children:["School or organization",s]}),o.jsx("input",{type:"text",name:"organization",required:!0})]}),o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsxs("span",{className:"inq-label",children:["Your role",s]}),o.jsxs("select",{name:"role",value:y,onChange:A=>x(A.target.value),required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"Select your role"}),TW.map(A=>o.jsx("option",{children:A},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]}),y==="Other"&&o.jsxs("label",{className:"inq-field",children:[o.jsx("span",{className:"inq-label",children:"Tell us your role"}),o.jsx("input",{type:"text",name:"roleOther",required:!0})]}
1489),o.jsxs("div",{className:"inq-form__row",children:[o.jsxs("label",{className:"inq-field",children:[o.jsxs("span",{className:"inq-label",children:["Email address",s]}),o.jsx("input",{type:"email",name:"email",required:!0})]}),o.jsxs("label",{className:"inq-field",children:[o.jsx("span",{className:"inq-label",children:"Phone number"}),o.jsx("input",{type:"tel",name:"phone",required:!r})]})]})]}),o.jsxs("fieldset",{className:"inq-sec",children:[o.jsx("legend",{className:"inq-sec__title font-display",children:"About Your Ensemble"}),o.jsxs("div",{className:"inq-pills",role:"group","aria-label":"What type of ensemble do you lead?",children:[o.jsxs("span",{className:"inq-label",children:["What type of ensemble do you lead?",s]}),o.jsx("div",{className:"inq-pills__row",children:g1.map(A=>o.jsx("button",{type:"button",className:`inq-pill${h.includes(A)?" inq-pill--active":""}`,"aria-pressed":h.includes(A),onClick:()=>f(z=>z.includes(A)?z.filter(ce=>ce!==A):[...z,A]),children:A},A))}),o.jsx("input",{type:"hidden",name:"ensemble",value:h.join(",")})]}),h.includes("Other")&&o.jsxs("label",{className:"inq-field",children:[o.jsx("span",{className:"inq-label",children:"Tell us your ensemble type"}),o.jsx("input",{type:"text",name:"ensembleOther",required:!0})]}),o.jsxs("div",{className:"inq-form__row",children:[o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsxs("span",{className:"inq-label",children:["What is your ensemble level?",s]}),o.jsxs("select",{name:"level",defaultValue:"",required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"Select a level"}),AW.map(A=>o.jsx("option",{children:A},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]}),o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsxs("span",{className:"inq-label",children:["Approximately how many performers?",s]}),o.jsxs("select",{name:"groupSize",defaultValue:"",required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"Select a size"}),NW.map(A=>o.jsx("option",{children:A},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]})]}),o.jsxs("div",{className:r?void 0:"inq-form__row",children:[o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsxs("span",{className:"inq-label",children:["Where is your ensemble located?",s]}),o.jsxs("select",{name:"state",value:b,onChange:A=>{k(A.target.value),E("")},required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"State"}),MW.map(([A,z])=>o.jsx("option",{value:A,children:z},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]}),!r&&o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsx("span",{className:"inq-label",children:"County"}),o.jsxs("select",{name:"county",value:S,onChange:A=>E(A.target.value),disabled:!b,required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:b?"County":"Select a state first"}),(jW[b]??[]).map(A=>o.jsx("option",{value:A,children:A},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]})]}),o.jsxs("div",{className:"inq-pills",role:"group","aria-label":"Have you performed with National Concerts before?",children:[o.jsxs("span",{className:"inq-label",children:["Have you performed with National Concerts before?",s]}),o.jsx("div",{className:"inq-pills__row",children:["Yes","No"].map(A=>o.jsx("button",{type:"button",className:`inq-pill${p===A?" inq-pill--active":""}`,"aria-pressed":p===A,onClick:()=>v(A),children:A},A))}),o.jsx("input",{type:"hidden",name:"performedBefore",value:p})]}),r&&o.jsxs(o.Fragment,{children:[ne,te,oe,O]})]}),!r&&o.jsxs("fieldset",{className:"inq-sec",children:[o.jsx("legend",{className:"inq-sec__title font-display",children:"Help Us Recommend the Right Experience"}),o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsx("span",{className:"inq-label",children:"Which performance experiences interest you?"}),o.jsxs("select",{name:"experience",defaultValue:"",required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"Select an experience"}),FW.map(A=>o.jsx("option",{children:A},A))]}
1489),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]}),o.jsxs("div",{className:"inq-pills",role:"group","aria-label":"Which destinations interest you?",children:[o.jsx("span",{className:"inq-label",children:"Which destination(s) interest you?"}),o.jsx("div",{className:"inq-pills__row",children:PW.map(A=>o.jsx("button",{type:"button",className:`inq-pill${g.includes(A)?" inq-pill--active":""}`,"aria-pressed":g.includes(A),onClick:()=>m(z=>z.includes(A)?z.filter(ce=>ce!==A):[...z,A]),children:A},A))}),o.jsx("input",{type:"hidden",name:"destinations",value:g.join(",")})]}),g.includes("Other")&&o.jsxs("label",{className:"inq-field",children:[o.jsx("span",{className:"inq-label",children:"Tell us where"}),o.jsx("input",{type:"text",name:"destinationOther",required:!0})]}),o.jsxs("label",{className:"inq-field inq-field--select",children:[o.jsx("span",{className:"inq-label",children:"When are you hoping to participate?"}),o.jsxs("select",{name:"timeline",defaultValue:"",required:!0,children:[o.jsx("option",{value:"",disabled:!0,children:"Select a year"}),RW.map(A=>o.jsx("option",{children:A},A))]}),o.jsx(On,{className:"inq-field__chev",size:16,strokeWidth:1.5})]}),te,oe,ne,O]}),o.jsxs("div",{className:"inq-upload",children:[o.jsxs("span",{className:"inq-upload__label",children:["Share a Performance Recording (Audio/Video",r?"":", optional",")"]}),o.jsxs("label",{className:"inq-field",children:[o.jsx("span",{className:"inq-label",children:"Link to a recording"}),o.jsx("input",{type:"url",name:"recording_url",placeholder:"Paste a link â YouTube, Vimeo, Google Driveâ¦"})]}),o.jsx("span",{className:"inq-upload__or",children:"and / or"}),o.jsxs("label",{className:"inq-upload__drop",children:[o.jsx("input",{ref:U,type:"file",accept:"audio/*,video/*"}),o.jsx(A6,{className:"inq-upload__icon",size:24,strokeWidth:1.5}),o.jsx("span",{className:"inq-upload__cta",children:"Drag & drop or click to upload"}),o.jsx("span",{className:"inq-upload__hint",children:"MP3, MP4, WAV, MOV up to 500MB"})]})]})]}),o.jsxs("button",{type:"submit",className:"inq-form__submit",disabled:C,children:[o.jsx("span",{children:C?"Submittingâ¦":a.text("get_started.form.submit_label")}),o.jsx(Ue,{size:24,strokeWidth:2})]}),H?o.jsx("p",{className:"inq-form__error m-0",role:"alert",children:H}):null,o.jsx("p",{className:"inq-form__note m-0",children:a.text("get_started.form.consent")}),o.jsx("style",{children:` 1490 .inq-form { 1491 width: 100%; max-width: 736px; 1492 background: rgba(0, 0, 0, 0.40); 1493 border: 0.5px solid #777777; 1494 padding: 40px; 1495 display: flex; flex-direction: column; gap: 32px; 1496 } 1497 .inq-form__context { 1498 display: flex; flex-direction: column; gap: 4px; 1499 padding: 16px 20px; 1500 border: 0.5px solid #FE894C; 1501 background: rgba(254, 137, 76, 0.08); 1502 } 1503 .inq-form__context-label { 1504 font-weight: 600; font-size: 13px; line-height: 140%; 1505 letter-spacing: 0.08em; text-transform: uppercase; color: #FE894C; 1506 } 1507 .inq-form__context-value { 1508 font-weight: 600; font-size: 16px; line-height: 120%; 1509 text-transform: uppercase; color: #FFFFFF; 1510 } 1511 .inq-form__context-meta { 1512 font-weight: 400; font-size: 13px; line-height: 150%; color: #C8CED9; 1513 } 1514 .inq-form__fields { display: flex; flex-direction: column; gap: 36px; } 1515 .inq-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } 1516 /* First line of the field stack, above the Contact Information section. 1517 The stack's own 36px gap spaces it; a negative margin to tighten that 1518 lifted it clear of the container and over the copy above. */ 1519 .inq-required-key { 1520 margin: 0; font-size: 13px; line-height: 140%; color: #686F7C; 1521 } 1522 1523 /* Matt: the previous style "hides the fields so much ... looks a little 1524 outdated". Fields are now boxed with a persistent label above, and 1525 grouped into his three named sections. */ 1526 .inq-sec { 1527 display: flex; flex-direction: column; gap: 20px; 1528 margin: 0; padding: 0; border: 0; min-width: 0; 1529 } 1530 .inq-sec__title { 1531 padding: 0 0 12px; margin: 0 0 4px; 1532 width: 100%; 1533 border-bottom: 1px solid rgba(255,255,255,0.18); 1534 font-weight: 400; font-size: 20px; line-height: 120%; 1535 text-transform: uppercase; letter-spacing: 0.02em; color: #FFFFFF; 1536 } 1537 .inq-label { 1538 display: block; margin-bottom: 8px; 1539 font-family: 'Montserrat', sans-serif; 1540 font-weight: 500; font-size: 14px; line-height: 145%; color: #D4D4D4; 1541 } 1542 1543 .inq-field { 1544 position: relative; display: block; width: 100%; 1545 padding: 0; background: transparent; border: 0; cursor: text; 1546 /* Sarah flagged the Ensemble Level arrow sitting low. In a two-column row a 1547 grid item stretches to the tallest cell, so a field whose neighbour has a 1548 two-line label grew below its own input while the chevron stayed pinned to 1549 the box bottom. Not stretching keeps the box the height of its content. */ 1550 align-self: start; 1551 } 1552 .inq-field input, 1553 .inq-field select, 1554 .inq-field textarea { 1555 width: 100%; height: 52px; padding: 14px 16px; 1556 background: rgba(255, 255, 255, 0.06); 1557 border: 1px solid #6C6C6C; border-radius: 2px; outline: 0; 1558 appearance: none; -webkit-appearance: none; 1559 font-family: 'Montserrat', sans-serif; 1560 font-weight: 400; font-size: 16px; line-height: 150%; 1561 color: #FFFFFF; cursor: inherit; text-align: left; 1562 transition: border-color 0.15s, background 0.15s; 1563 } 1564 .inq-field input:hover, 1565 .inq-field select:hover, 1566 .inq-field textarea:hover { border-color: #9A9A9A; } 1567 .inq-field input:focus, 1568 .inq-field select:focus, 1569 .inq-field textarea:focus { 1570 border-color: #FE894C; 1571 background: rgba(255, 255, 255, 0.09); 1572 } 1573 .inq-field select:disabled { opacity: 0.55;
1573 cursor: not-allowed; } 1574 .inq-field--area textarea { 1575 height: auto; resize: vertical; min-height: 96px; line-height: 160%; 1576 } 1577 .inq-field--select select { padding-right: 40px; color: #B6B6B6; overflow: hidden; text-overflow: ellipsis; } 1578 .inq-field--select select:valid { color: #FFFFFF; } 1579 .inq-field input::placeholder, 1580 .inq-field textarea::placeholder { color: #B6B6B6; } 1581 .inq-field select option { color: #000; } 1582 1583 /* Ensemble-type pill toggles */ 1584 .inq-pills, .inq-select-group { display: flex; flex-direction: column; gap: 12px; } 1585 .inq-pills__label { 1586 font-family: 'Montserrat', sans-serif; 1587 font-weight: 500; font-size: 16px; line-height: 140%; color: #B6B6B6; 1588 } 1589 .inq-pills__row { display: flex; flex-wrap: wrap; gap: 10px; } 1590 .inq-pill { 1591 padding: 9px 18px; cursor: pointer; 1592 background: transparent; border: 1px solid #777777; 1593 border-radius: 0; 1594 font-family: 'Montserrat', sans-serif; 1595 font-weight: 500; font-size: 16px; line-height: 100%; color: #C8CED9; 1596 transition: border-color 0.15s, color 0.15s, background 0.15s; 1597 } 1598 .inq-pill:hover { border-color: #FE894C; color: #FFFFFF; } 1599 .inq-pill--active { 1600 background: #FE894C; border-color: #FE894C; color: #000000; 1601 } 1602 .inq-field__chev { 1603 /* Anchored to the bottom rather than centred: .inq-field now also 1604 contains the label, so 50% would sit between label and input. */ 1605 position: absolute; right: 16px; bottom: 26px; transform: translateY(50%); 1606 color: #B6B6B6; pointer-events: none; 1607 } 1608 1609 .inq-upload { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; } 1610 .inq-upload__label { 1611 font-family: 'Montserrat', sans-serif; 1612 font-weight: 500; font-size: 16px; line-height: 140%; color: #B6B6B6; 1613 } 1614 .inq-upload__or { 1615 display: flex; align-items: center; gap: 12px; 1616 font-family: 'Montserrat', sans-serif; 1617 font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; 1618 color: #969696; margin: 4px 0; 1619 } 1620 .inq-upload__or::before, .inq-upload__or::after { 1621 content: ""; flex: 1; height: 1px; background: #777777; 1622 } 1623 .inq-upload__drop { 1624 position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; 1625 gap: 8px; height: 123px; padding: 24px; 1626 border: 0.5px solid #777777; background: transparent; cursor: pointer; text-align: center; 1627 } 1628 .inq-upload__drop input[type="file"] { 1629 position: absolute; inset: 0; opacity: 0; cursor: pointer; 1630 } 1631 .inq-upload__icon { color: #B6B6B6; } 1632 .inq-upload__cta { 1633 font-family: 'Inter', 'Montserrat', sans-serif; 1634 font-weight: 400; font-size: 16px; color: #B6B6B6; 1635 } 1636 .inq-upload__hint { 1637 font-family: 'Montserrat', sans-serif; 1638 font-weight: 400; font-size: 13px; line-height: 150%; color: #969696; 1639 } 1640 1641 .inq-form__submit { 1642 width: 100%; height: 52px; 1643 display: inline-flex; align-items: center; justify-content: center; gap: 10px; 1644 padding: 14px 24px; background: #FE894C; color: #FFFFFF; 1645 border: 0; border-radius: 0; 1646 font-family: 'Premier League', 'Bebas Neue', sans-serif; 1647 font-weight: 400; font-size: 16px; line-height: 140%; 1648 letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; 1649 transition: background 0.2s; 1650 } 1651 .inq-form__submit:hover { background: #E8732A; } 1652 .inq-form__submit:disabled { opacity: 0.6; cursor: not-allowed; } 1653 .inq-form__error {
1654 font-family: 'Montserrat', sans-serif; 1655 font-weight: 500; font-size: 13px; line-height: 150%; color: #FCA5A5; 1656 } 1657 .inq-form--light .inq-form__error { color: #DC2626; } 1658 .inq-form__note { 1659 font-family: 'Montserrat', sans-serif; 1660 font-weight: 400; font-size: 13px; line-height: 150%; color: #B6B6B6; 1661 } 1662 1663 /* Light variant â integrates seamlessly into a white page (no card). */ 1664 .inq-form--light { 1665 background: transparent; border: 0; padding: 0; max-width: none; 1666 } 1667 .inq-form--light .inq-form__context-value { color: #141414; } 1668 .inq-form--light .inq-form__context-meta { color: #686F7C; } 1669 .inq-form--light .inq-label { color: #454545; } 1670 .inq-form--light .inq-sec__title { color: #141414; border-bottom-color: #E0E4EA; } 1671 .inq-form--light .inq-field input, 1672 .inq-form--light .inq-field select, 1673 .inq-form--light .inq-field textarea { 1674 color: #141414; background: #FFFFFF; border-color: #D0D5DD; 1675 } 1676 .inq-form--light .inq-field input:hover, 1677 .inq-form--light .inq-field select:hover, 1678 .inq-form--light .inq-field textarea:hover { border-color: #9AA3AF; } 1679 .inq-form--light .inq-field input:focus, 1680 .inq-form--light .inq-field select:focus, 1681 .inq-form--light .inq-field textarea:focus { 1682 border-color: #FE894C; background: #FFFFFF; 1683 } 1684 .inq-form--light .inq-field input::placeholder, 1685 .inq-form--light .inq-field textarea::placeholder { color: #9AA3AF; } 1686 .inq-form--light .inq-pills__label { color: #454545; } 1687 .inq-form--light .inq-pill { border-color: #D0D5DD; color: #454545; } 1688 .inq-form--light .inq-pill:hover { border-color: #FE894C; color: #141414; } 1689 .inq-form--light .inq-pill--active { background: #FE894C; border-color: #FE894C; color: #FFFFFF; } 1690 .inq-form--light .inq-field--select select { color: #9AA3AF; } 1691 .inq-form--light .inq-field--select select:valid { color: #141414; } 1692 .inq-form--light .inq-field__chev { color: #9AA3AF; } 1693 .inq-form--light .inq-upload__label { color: #454545; } 1694 .inq-form--light .inq-upload__or { color: #9AA3AF; } 1695 .inq-form--light .inq-upload__or::before, 1696 .inq-form--light .inq-upload__or::after { background: #E0E4EA; } 1697 .inq-form--light .inq-upload__drop { border-color: #D0D5DD; } 1698 .inq-form--light .inq-upload__icon, 1699 .inq-form--light .inq-upload__cta { color: #6F6F6F; } 1700 .inq-form--light .inq-upload__hint { color: #9AA3AF; } 1701 .inq-form--light .inq-form__note { color: #6F6F6F; } 1702 1703 @media (max-width: 1023px) { 1704 .inq-form { width: 100%; padding: 32px; } 1705 .inq-form--light { padding: 0; } 1706 } 1707 @media (max-width: 640px) { 1708 .inq-form { padding: 24px; gap: 24px; } 1709 .inq-form--light { padding: 0; } 1710 .inq-form__row { grid-template-columns: 1fr; gap: 16px; } 1711 .inq-field input, .inq-field select { font-size: 16px; } 1712 .inq-form__fields { gap: 28px; } 1713 .inq-upload__drop { height: 110px; padding: 20px; } 1714 } 1715 `})]})}
1715,DW="Complete the form and our team will connect you with the right concert development specialist within 24 hours.",zW={"solo-stage":`Explore Your 1716Solo Stage Time`,choral:`Join Our 1717Choral Series`,season:`Be Part of 1718The Season`,festival:`Join The 1719Festival`,commission:`Commission a 1720New Work`,apply:`Apply To 1721Perform`,experience:`Start Your 1722Experience`,perform:`Perform 1723With Us`,pricing:`Choose Your 1724Package`,event:`Inquire About 1725This Event`},BW=()=>{const[e]=k2(),t=e.get("intent")??"",n=e.get("event")??void 0,r=ve(),{data:s}=GL(),i=(s??[]).find(d=>d.intent_key===t),a=(i==null?void 0:i.title)||zW[t]||`Begin Your 1726Journey`,l=(i==null?void 0:i.subtitle)||DW,c=a.split(` 1727`);return o.jsxs("div",{style:{position:"relative",background:"#000",isolation:"isolate",overflow:"hidden"},children:[o.jsxs("div",{className:"inq-bg","aria-hidden":"true",children:[o.jsx("img",{src:r.image("get_started.hero.background",GC),alt:""}),o.jsx("span",{className:"inq-bg__darken"})]}),o.jsx("div",{className:"inq-overlay","aria-hidden":"true"}),o.jsxs("div",{style:{position:"relative",zIndex:2},children:[o.jsx(Xe,{variant:"transparent"}),o.jsx("section",{className:"inquiry nc-container",children:o.jsxs("div",{className:"inq-content",children:[o.jsxs("div",{className:"inq-head",children:[o.jsx("p",{className:"inq-head__label font-body m-0",children:r.text("get_started.hero.eyebrow")}),o.jsx("h1",{className:"inq-head__title font-display m-0",children:c.map((d,u)=>o.jsxs("span",{children:[d,u<c.length-1&&o.jsx("br",{})]},u))}),o.jsx("p",{className:"inq-head__sub font-body m-0",children:l})]}),o.jsx("div",{className:"inq-form-wrap",children:o.jsx(ej,{eventSlug:n,intent:t||void 0})})]})})]}),o.jsx("style",{children:` 1728 .inq-bg { 1729 position: absolute; 1730 top: -64px; 1731 left: -151px; 1732 width: 1743px; 1733 height: 1163px; 1734 z-index: 0; 1735 pointer-events: none; 1736 } 1737 .inq-bg img { 1738 width: 100%; 1739 height: 100%; 1740 object-fit: cover; 1741 object-position: center; 1742 display: block; 1743 } 1744 .inq-bg__darken { 1745 position: absolute; 1746 inset: 0; 1747 background: rgba(0, 0, 0, 0.20); 1748 } 1749 .inq-overlay { 1750 position: absolute; 1751 top: -110px; 1752 left: 0; 1753 width: 100%; 1754 height: calc(100% + 220px); 1755 background: rgba(0, 0, 0, 0.40); 1756 backdrop-filter: blur(16px); 1757 -webkit-backdrop-filter: blur(16px); 1758 z-index: 1; 1759 pointer-events: none; 1760 } 1761 1762 .inquiry { 1763 position: relative; 1764 width: 100%; 1765 } 1766 .inq-content { 1767 display: flex; 1768 flex-direction: column; 1769 align-items: center; 1770 gap: 48px; 1771 padding-top: 72px; 1772 padding-bottom: 88px; 1773 } 1774 1775 /* Centered hero band */ 1776 .inq-head { 1777 display: flex; flex-direction: column; align-items: center; gap: 20px; 1778 text-align: center; max-width: 760px; 1779 } 1780 .inq-head__label { 1781 font-weight: 600; font-size: 14px; line-height: 140%; letter-spacing: 0.5px; 1782 text-transform: uppercase; color: #E8732A; 1783 } 1784 .inq-head__title { 1785 font-weight: 400; font-size: 56px; line-height: 110%; 1786 color: #FFFFFF; text-transform: uppercase; 1787 } 1788 .inq-head__sub { 1789 max-width: 560px; font-weight: 400; font-size: 16px; line-height: 155%; 1790 color: #C8CED9; 1791 } 1792 1793 /* Centered form */ 1794 .inq-form-wrap { width: 100%; display: flex; justify-content: center; } 1795 .inquiry .inq-form { margin: 0 auto; max-width: 680px; } 1796 1797 @media (max-width: 1023px) { 1798 .inq-content { padding-top: 56px; padding-bottom: 56px; gap: 40px; } 1799 .inq-head__title { font-size: 44px; } 1800 .inq-head__sub { max-width: none; } 1801 .inquiry .inq-form { width: 100%; } 1802 } 1803 1804 @media (max-width: 640px) { 1805 .inq-content { padding-top: 40px; padding-bottom: 40px; gap: 32px; } 1806 .inq-head { gap: 16px; } 1807 .inq-head__title { font-size: 36px; line-height: 105%; } 1808 .inq-head__title br { display: none; } 1809 .inq-head__sub { font-size: 14px; } 1810 } 1811 `})]})},WW=()=>o.jsxs("main",{className:"min-h-screen bg-nc-black",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Get Started",description:"Tell us about your ensemble and our team will c
1811onnect you with a concert development specialist.",path:"/inquiry"}),o.jsx(BW,{}),o.jsx(et,{})]}),HW=()=>{const e=ve();return o.jsxs("div",{style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsxs("section",{className:"hero--upcoming",style:{position:"relative",width:"100%",height:600,background:"#141414",overflow:"hidden",isolation:"isolate"},children:[o.jsxs("div",{className:"hero__photo",style:{position:"absolute",top:0,right:0,width:850,height:"100%",zIndex:0},children:[o.jsx("img",{src:e.image("boxoffice.hero.background",jE),alt:"Carnegie Hall stage with two large face projections above an ensemble",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block"}}),o.jsx("span",{className:"hero__photo-fade","aria-hidden":"true",style:{position:"absolute",inset:0,background:"linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.92) 18%, rgba(20,20,20,0.55) 38%, rgba(20,20,20,0.10) 65%, rgba(20,20,20,0) 100%)",pointerEvents:"none"}})]}),o.jsxs("div",{className:"hero__text nc-container",style:{position:"absolute",left:0,right:0,top:157,zIndex:2,display:"flex",flexDirection:"column",gap:24},children:[o.jsx("p",{className:"hero__label font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#E8732A"},children:e.text("boxoffice.hero.eyebrow")}),o.jsx("h1",{className:"hero__title font-display m-0",style:{fontWeight:400,fontSize:64,lineHeight:"100%",color:"#FFFFFF",textTransform:"uppercase",maxWidth:803},children:e.text("boxoffice.hero.headline")}),o.jsx("p",{className:"hero__sub font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:720},children:e.text("boxoffice.hero.body")})]}),o.jsx("style",{children:` 1812 @media (max-width: 1023px) { 1813 .hero--upcoming { height: 540px !important; } 1814 .hero--upcoming .hero__photo { width: 60% !important; } 1815 .hero--upcoming .hero__photo-fade { 1816 background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.95) 25%, rgba(20,20,20,0.6) 50%, rgba(20,20,20,0) 100%) !important; 1817 } 1818 .hero--upcoming .hero__text { top: 140px !important; } 1819 .hero--upcoming .hero__title { font-size: 48px !important; } 1820 .hero--upcoming .hero__sub { font-size: 16px !important; } 1821 } 1822 @media (max-width: 640px) { 1823 .hero--upcoming { height: auto !important; padding-bottom: 32px !important; } 1824 .hero--upcoming .hero__photo { 1825 position: relative !important; 1826 width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; 1827 top: 0 !important; right: 0 !important; 1828 margin: 0 0 24px 0 !important; 1829 } 1830 .hero--upcoming .hero__photo-fade { 1831 background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0) 60%, #141414 100%) !important; 1832 } 1833 .hero--upcoming .hero__text { 1834 position: relative !important; 1835 top: auto !important; left: 0 !important; right: 0 !important; 1836 gap: 12px !important; 1837 } 1838 .hero--upcoming .hero__title { font-size: 32px !important; line-height: 105% !important; } 1839 .hero--upcoming .hero__sub { font-size: 14px !important; line-height: 150% !important; max-width: none !important; } 1840 } 1841 `})]}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"},"aria-hidden":"true"})]})},Uf=4,$W=()=>{const{data:e,isError:t}=jo(),n=ve(),r=w.useMemo(()=>t?j0():(e??[]).filter(E0),[e,t]),s=Math.max(1,Math.ceil(r.length/Uf)),[i,a]=w.useState(1),l=(i-1)*Uf,c=r.slice(l,l+Uf),[d,u]=w.useState(!0);return w.useEffect(()=>{const h=()=>{const f=window.scrollY+window.innerHeight,p=document.documentElement.scrollHeight-120;u(f<p)};return h(),window.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",h),()=>{window.removeEventListener("scroll",h),window.removeEventListener("resize",h)}},[i]),!t&&e===void 0?null:r.length===0?o.jsx(vp,{eyebrow:n.text("boxoffice.empty.eyebrow"),title:n.text("boxoffice.empty.headline"),body:n.text("boxoffice.empty.body"),ctaLabel:n.text("boxoffice.empty.cta"),ctaTo:"/browse-by-date-venue"}):o.jsxs("section",{className:"events nc-container",style:{background:"#FFFFFF",paddingTop:80,paddingBottom:80},children:[o.jsx("div",{className:"events__list",children:c.map(h=>o.jsxs("article",{className:"event-card",children:[o.jsx(ke,{to:xf(h),className:"event-card__photo","aria-label":h.title,children:o.jsx("img",{src:h.img,alt:h.alt})}),o.jsxs("div",{className:"event-card__body",children:[o.jsxs("div",{className:"event-card__copy",children:[o.jsx("h3",{className:"event-card__title m-0",children:o.jsx(ke,{to:xf(h),style:{color:"inherit",textDecoration:"none"},children:h.title})}),o.jsxs("ul",{className:"event-card__details",children:[o.jsxs("li",{children:[o.jsx(ih,{}),o.jsxs("span",{children:[ki(h.date)," · ",h.time]})]}),o.jsxs("li",{children:[o.jsx(Pc,{}),o.jsx("span",{children:h.venue})]}),o.jsxs("li",{children:[o.jsx(OS,{}),o.jsx("span",{children:h.conductor})]}),o.jsxs("li",{children:[o.jsx(NS,{}),o.jsx("span",{children:h.program})]})]})]}),o.jsxs(ke,{to:xf(h),className:"event-card__cta font-display",children:[o.jsx("span",{children:"Read More"}),o.jsx(Ue,{})]})]})]},h.slug))}),s>1&&o.jsxs("nav",{className:"events__pager","aria-label":"Pagination",children:[o.jsx("button",{className:"pager__btn",onClick:()=>a(h=>Math.max(1,h-1)),disabled:i===1,"aria-label":"Previous page",children:"â¹"}),Array.from({length:s},(h,f)=>f+1).map(h=>o.jsx("button",{className:`pager__num ${h===i?"is-active":""}`,onClick:()=>a(h),"aria-current":h===i?"page":void 0,children:h},h)),o.jsx("button",{className:"pager__btn",onClick:()=>a(h=>Math.min(s,h+1)),disabled:i===s,"aria-label":"Next page",children:"âº"})]}),o.jsxs("button",{type:"button",onClick:h=>{const f=h.currentTarget.closest("section"),p=f==null?void 0:f.nextElementSibling;p?p.scrollIntoView({behavior:"smooth",block:"start"}):window.scrollBy({top:window.innerHeight,behavior:"smooth"})},className:`events__hint ${d?"is-show":""}`,"aria-label":"Scroll to next section",children:[o.jsx("span",{children:"Scroll Down"}),o.jsx(On,{})]}),o.jsx("style",{children:` 1842 .events__list { display: flex; flex-direction: column; gap: 20px; } 1843 1844 .event-card { 1845 display: grid; 1846 grid-template-columns: 360px 1fr; 1847 height: 280px; 1848 background: #FFFFFF; 1849 border: 1px solid #E0E4EA; 1850 overflow: hidden; 1851 transition: border-color 200ms ease, box-shadow 200ms ease; 1852 } 1853 .event-card:hover { border-color: #FE894C; box-shadow: 0 16px 32px -20px rgba(0,0,0,0.15); } 1854 .event-card__photo { display: block; width: 360px; height: 280px; overflow: hidden; } 1855 .event-card__photo img { 1856 width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; 1857 transition: transform 400ms ease; 1858 } 1859 .event-card:hover .event-card__photo img { transform: scale(1.03); } 1860 1861 .event-card__body { 1862 display: flex; flex-direction: column; justify-content: flex-start; 1863 padding: 28px 28px 28px 40px; gap: 24px; 1864 } 1865 .event-card__copy { display: flex; flex-direction: column; gap: 12px; } 1866 1867 .event-card__date { 1868 font-family: 'Premier League', 'Bebas Neue', 'Oswald', 'Impact', sans-serif; 1869 font-weight: 400; font-size: 28px; line-height: 120%; 1870 text-transform: uppercase; color: #E8732A; letter-spacing: 0.5px; 1871 } 1872 .event-card__title { 1873 font-family: 'Premier League', 'Bebas Neue', 'Oswald', 'Impact', sans-serif; 1874 font-weight: 400; font-size: 30px; line-height: 120%; 1875 text-transform: uppercase; color: #141414; 1876 } 1877 .event-card__details { 1878 list-style: none; margin: 0; padding: 0; 1879 display: flex; flex-direction: column; gap: 6px; 1880 } 1881 .event-card__details li { 1882 display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; 1883 font-family: 'Montserrat', sans-serif; 1884 font-weight: 400; font-size: 15px; line-height: 150%; color: #454545; 1885 } 1886 .event-card__details svg { 1887 width: 18px; height: 18px; stroke: #454545; stroke-width: 1.5; fill: none; flex-shrink: 0; 1888 } 1889 .event-card__cta { 1890 align-self: flex-start; 1891 display: inline-flex; align-items: center; justify-content: center; gap: 10px; 1892 height: 44px; padding: 12px 20px 12px 24px; 1893 background: #FE894C; color: #FFFFFF; 1894 font-weight: 400; font-size: 14px; line-height: 140%; 1895 text-transform: uppercase; text-decoration: none; 1896 transition: background 160ms ease; 1897 } 1898 .event-card__cta:hover { background: #E8732A; }
1899 .event-card__cta svg { width: 20px; height: 20px; stroke: #FFFFFF; stroke-width: 2; fill: none; } 1900 1901 /* Pagination */ 1902 .events__pager { 1903 display: flex; justify-content: center; align-items: center; gap: 8px; 1904 margin-top: 48px; 1905 } 1906 .pager__num, .pager__btn { 1907 min-width: 40px; height: 40px; padding: 0 12px; 1908 background: transparent; border: 1px solid #E0E4EA; color: #141414; 1909 font-family: 'Montserrat', sans-serif; font-weight: 500; font-size: 14px; 1910 cursor: pointer; transition: all 160ms ease; 1911 } 1912 .pager__num:hover:not(.is-active), .pager__btn:hover:not(:disabled) { 1913 border-color: #FE894C; color: #FE894C; 1914 } 1915 .pager__num.is-active { 1916 background: #FE894C; border-color: #FE894C; color: #FFFFFF; 1917 } 1918 .pager__btn:disabled { opacity: 0.4; cursor: not-allowed; } 1919 1920 /* Scroll-down hint (clickable, scrolls to next section) */ 1921 .events__hint { 1922 position: fixed; right: 28px; bottom: 28px; z-index: 50; 1923 display: inline-flex; align-items: center; gap: 6px; 1924 padding: 10px 14px; background: rgba(20,20,20,0.55); color: #FFFFFF; 1925 font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12px; 1926 text-transform: uppercase; letter-spacing: 0.06em; 1927 backdrop-filter: blur(6px); border-radius: 999px; 1928 border: 0; 1929 opacity: 0; pointer-events: none; 1930 transform: translateY(8px); 1931 transition: opacity 280ms ease, transform 280ms ease, background 200ms ease; 1932 cursor: pointer; 1933 } 1934 .events__hint.is-show { opacity: 0.75; transform: translateY(0); animation: hintBounce 1.8s ease-in-out infinite; pointer-events: auto; } 1935 .events__hint:hover { opacity: 1; background: rgba(254,137,76,0.9); } 1936 .events__hint svg { width: 14px; height: 14px; stroke: #FFFFFF; stroke-width: 2; fill: none; } 1937 @keyframes hintBounce { 1938 0%, 100% { transform: translateY(0); } 1939 50% { transform: translateY(4px); } 1940 } 1941 1942 @media (max-width: 1023px) { 1943 .events { padding-top: 64px !important; padding-bottom: 64px !important; } 1944 .event-card { grid-template-columns: 280px 1fr; height: 240px; } 1945 .event-card__photo { width: 280px; height: 240px; } 1946 .event-card__body { padding: 22px 22px 22px 28px; gap: 18px; } 1947 .event-card__date { font-size: 22px; } 1948 .event-card__title { font-size: 24px; } 1949 .event-card__details li { font-size: 14px; } 1950 } 1951 @media (max-width: 640px) { 1952 .events { padding-top: 48px !important; padding-bottom: 48px !important; } 1953 .event-card { grid-template-columns: 1fr; height: auto; } 1954 .event-card__photo { width: 100%; height: auto; aspect-ratio: 16 / 9; } 1955 .event-card__body { padding: 20px; gap: 18px; } 1956 .event-card__date { font-size: 20px; } 1957 .event-card__title { font-size: 22px; line-height: 120%; } 1958 .event-card__details li { font-size: 14px; } 1959 .event-card__cta { width: 100%; justify-content: center; } 1960 .events__hint { right: 16px; bottom: 16px; } 1961 } 1962 `})]})},y1=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Upcoming Performances",description:"Upcoming National Concerts performances and ticketing.",path:"/upcoming-performances"}),o.jsx(HW,{}),o.jsx($W,{}),o.jsx(et,{})]});function UW(e){return Object.prototype.toString.call(e)==="[object Object]"}function b1(e){return UW(e)||Array.isArray(e)}function qW(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function U0(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),i=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==i?!1:n.every(a=>{const l=e[a],c=t[a];return typeof l=="function"?`${l}`==`${c}`:!b1(l)||!b1(c)?l===c:U0(l,c)})}function v1(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function VW(e,t){if(e.length!==t.length)return!1;const n=v1(e),r=v1(t);return n.every((s,i)=>{const a=r[i];return U0(s,a)})}function q0(e){return typeof e=="number"}function Gg(e){return typeof e=="string"}function xp(e){return typeof e=="boolean"}function x1(e){return Object.prototype.toString.call(e)==="[object Object]"}function pt(e){return Math.abs(e)}function V0(e){return Math.sign(e)}function nc(e,t){return pt(e-t)}function GW(e,t){if(e===0||t===0||pt(e)<=pt(t))return 0;const n=nc(pt(e),pt(t));return pt(n/e)}function KW(e){return Math.round(e*100)/100}function Lc(e){return Dc(e).map(Number)}function Mr(e){return e[od(e)]}function od(e){return Math.max(0,e.length-1)}function G0(e,t){return t===od(e)}function w1(e,t=0){return Array.from(Array(e),(n,r)=>t+r)}function Dc(e){return Object.keys(e)}function tj(e,t){return[e,t].reduce((n,r)=>(Dc(r).forEach(s=>{const i=n[s],a=r[s],l=x1(i)&&x1(a);n[s]=l?tj(i,a):a}),n),{})}function Kg(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function JW(e,t){const n={start:r,center:s,end:i};function r(){return 0}function s(c){return i(c)/2}function i(c){return t-c}function a(c,d){return Gg(e)?n[e](c):e(t,c,d)}return{measure:a}}function zc(){let e=[];function t(s,i,a,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(i,a,l),c=()=>s.removeEventListener(i,a,l);else{const d=s;d.addListener(a),c=()=>d.removeListener(a)}return e.push(c),r}function n(){e=e.filter(s=>s())}const r={add:t,clear:n};return r}function YW(e,t,n,r){const s=zc(),i=1e3/60;let a=null,l=0,c=0;function d(){s.add(e,"visibilitychange",()=>{e.hidden&&v()})}function u(){p(),s.clear()}function h(x){if(!c)return;a||(a=x,n(),n());const g=x-a;for(a=x,l+=g;l>=i;)n(),l-=i;const m=l/i;r(m),c&&(c=t.requestAnimationFrame(h))}function f(){c||(c=t.requestAnimationFrame(h))}function p(){t.cancelAnimationFrame(c),a=null,l=0,c=0}function v(){a=null,l=0}return{init:d,destroy:u,start:f,stop:p,update:n,render:r}}function QW(e,t){const n=t==="rtl",r=e==="y",s=r?"y":"x",i=r?"x":"y",a=!r&&n?-1:1,l=u(),c=h();function d(v){const{height:y,width:x}=v;return r?y:x}function u(){return r?"top":n?"right":"left"}function h(){return r?"bottom":n?"left":"right"}function f(v){return v*a}return{scroll:s,cross:i,startEdge:l,endEdge:c,measureSize:d,direction:f}}function ko(e=0,t=0){const n=pt(e-t);function r(d){return d<e}function s(d){return d>t}function i(d){return r(d)||s(d)}function a(d){return i(d)?r(d)?e:t:d}function l(d){return n?d-n*Math.ceil((d-t)/n):d}return{length:n,max:t,min:e,constrain:a,reachedAny:i,reachedMax:s,reachedMin:r,removeOffset:l}}function nj(e,t,n){const{constrain:r}=ko(0,e),s=e+1;let i=a(t);function a(f){return n?pt((s+f)%s):r(f)}function l(){return i}function c(f){return i=a(f),h}function d(f){return u().set(l()+f)}function u(){return nj(e,l(),n)}const h={get:l,set:c,add:d,clone:u};return h}function ZW(e,t,n,r,s,i,a,l,c,d,u,h,f,p,v,y,x,g,m){const{cross:b,direction:k}=e,S=["INPUT","SELECT","TEXTAREA"],E={passive:!1},C=zc(),N=zc(),R=ko(50,225).constrain(p.measure(20)),M={mouse:300,touch:400},H={mouse:500,touch:600},D=v?43:25;let U=!1,B=0,ne=0,te=!1,oe=!1,O=!1,A=!1;function z(ie){if(!m)return;function Ae(tt){(xp(m)||m(ie,tt))&&Qe(tt)}const ye=t;C.add(ye,"dragstart",tt=>tt.preventDefault(),E).add(ye,"touchmove",()=>{},E).add(ye,"touchend",()=>{}).add(ye,"touchstart",Ae).add(ye,"mousedown",Ae).add(ye,"touchcancel",Ve).add(ye,"contextmenu",Ve).add(ye,"click",Ze,!0)}function ce(){C.clear(),N.clear()}function ae(){const ie=A?n:t;N.add(ie,"touchmove",ge,E).add(ie,"touchend",Ve).add(ie,"mousemove",ge,E).add(ie,"mouseup",Ve)}function pe(ie){const Ae=ie.nodeName||"";return S.includes(Ae)}function Z(){return(v?H:M)[A?"mouse":"touch"]}function ze(ie,Ae){const ye=h.add(V0(ie)*-1),tt=u.byDistance(ie,!v).distance;return v||pt(ie)<R?tt:x&&Ae?tt*.5:u.byIndex(ye.get(),0).distance}function Qe(ie){const Ae=Kg(ie,r);A=Ae,O=v&&Ae&&!ie.buttons&&U,U=nc(s.get(),a.get())>=2,!(Ae&&ie.button!==0)&&(pe(ie.target)||(te=!0,i.pointerDown(ie),d.useFriction(0).useDuration(0),s.set(a),ae(),B=i.readPoint(ie),ne=i.readPoint(ie,b),f.emit("pointerDown")))}function ge(ie){if(!Kg(ie,r)&&ie.touches.length>=2)return Ve(ie);const ye=i.readPoint(ie),tt=i.readPoint(ie,b),Ee=nc(ye,B),Ot=nc(tt,ne);if(!oe&&!A&&(!ie.cancelable||(oe=Ee>Ot,!oe)))return Ve(ie);const it=i.pointerMove(ie);Ee>y&&(O=!0),d.useFriction(.3).useDuration(.75),l.start(),s.add(k(it)),ie.preventDefault()}function Ve(ie){const ye=u.byDistance(0,!1).index!==h.get(),tt=i.pointerUp(ie)*Z(),Ee=ze(k(tt),ye),Ot=GW(tt,Ee),it=D-10*Ot,ct=g+Ot/50;oe=!1,te=!1,N.clear(),d.useDuration(it).useFriction(ct),c.distance(Ee,!v),A=!1,f.emit("pointerUp")}function Ze(ie){O&&(ie.stopPropagation(),ie.preventDefault(),O=!1)}function Ge(){return te}return{init:z,destroy:ce,pointerDown:Ge}}function XW(e,t){let r,s;function i(h){return h.timeStamp}function a(h,f){const v=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Kg(h,t)?h:h.touches[0])[v]}function l(h){return r=h,s=h,a(h)}function c(h){const f=a(h)-a(s),p=i(h)-i(r)>170;return s=h,p&&(r=h),f}function d(h){if(!r||!s)return 0;const f=a(s)-a(r),p=i(h)-i(r),v=i(h)-i(s)>170,y=f/p;return p&&!v&&pt(y)>.1?y:0}return{pointerDown:l,pointerMove:c,pointerUp:d,readPoint:a}}function eH(){function e(n){const{offsetTop:r,offsetLeft:s,offsetWidth:i,offsetHeight:a}=n;
vendor: 13,560 bytes, line 1962
1962return{top:r,right:s+i,bottom:r+a,left:s,width:i,height:a}}return{measure:e}}function tH(e){function t(r){return e*(r/100)}return{measure:t}}function nH(e,t,n,r,s,i,a){const l=[e].concat(r);let c,d,u=[],h=!1;function f(x){return s.measureSize(a.measure(x))}function p(x){if(!i)return;d=f(e),u=r.map(f);function g(m){for(const b of m){if(h)return;const k=b.target===e,S=r.indexOf(b.target),E=k?d:u[S],C=f(k?e:r[S]);if(pt(C-E)>=.5){x.reInit(),t.emit("resize");break}}}c=new ResizeObserver(m=>{(xp(i)||i(x,m))&&g(m)}),n.requestAnimationFrame(()=>{l.forEach(m=>c.observe(m))})}function v(){h=!0,c&&c.disconnect()}return{init:p,destroy:v}}function rH(e,t,n,r,s,i){let a=0,l=0,c=s,d=i,u=e.get(),h=0;function f(){const E=r.get()-e.get(),C=!c;let N=0;return C?(a=0,n.set(r),e.set(r),N=E):(n.set(e),a+=E/c,a*=d,u+=a,e.add(a),N=u-h),l=V0(N),h=u,S}function p(){const E=r.get()-t.get();return pt(E)<.001}function v(){return c}function y(){return l}function x(){return a}function g(){return b(s)}function m(){return k(i)}function b(E){return c=E,S}function k(E){return d=E,S}const S={direction:y,duration:v,velocity:x,seek:f,settled:p,useBaseFriction:m,useBaseDuration:g,useFriction:k,useDuration:b};return S}function sH(e,t,n,r,s){const i=s.measure(10),a=s.measure(50),l=ko(.1,.99);let c=!1;function d(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(p){if(!d())return;const v=e.reachedMin(t.get())?"min":"max",y=pt(e[v]-t.get()),x=n.get()-t.get(),g=l.constrain(y/a);n.subtract(x*g),!p&&pt(x)<i&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function h(p){c=!p}return{shouldConstrain:d,constrain:u,toggleActive:h}}function iH(e,t,n,r,s){const i=ko(-t+e,0),a=h(),l=u(),c=f();function d(v,y){return nc(v,y)<=1}function u(){const v=a[0],y=Mr(a),x=a.lastIndexOf(v),g=a.indexOf(y)+1;return ko(x,g)}function h(){return n.map((v,y)=>{const{min:x,max:g}=i,m=i.constrain(v),b=!y,k=G0(n,y);return b?g:k||d(x,m)?x:d(g,m)?g:m}).map(v=>parseFloat(v.toFixed(3)))}function f(){if(t<=e+s)return[i.max];if(r==="keepSnaps")return a;const{min:v,max:y}=l;return a.slice(v,y)}return{snapsContained:c,scrollContainLimit:l}}function oH(e,t,n){const r=t[0],s=n?r-e:Mr(t);return{limit:ko(s,r)}}function aH(e,t,n,r){const i=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:c}=ko(i,a);function d(f){return f===1?c(n.get()):f===-1?l(n.get()):!1}function u(f){if(!d(f))return;const p=e*(f*-1);r.forEach(v=>v.add(p))}return{loop:u}}function lH(e){const{max:t,length:n}=e;function r(i){const a=i-t;return n?a/-n:0}return{get:r}}function cH(e,t,n,r,s){const{startEdge:i,endEdge:a}=e,{groupSlides:l}=s,c=h().map(t.measure),d=f(),u=p();function h(){return l(r).map(y=>Mr(y)[a]-y[0][i]).map(pt)}function f(){return r.map(y=>n[i]-y[i]).map(y=>-pt(y))}function p(){return l(d).map(y=>y[0]).map((y,x)=>y+c[x])}return{snaps:d,snapsAligned:u}}function dH(e,t,n,r,s,i){const{groupSlides:a}=s,{min:l,max:c}=r,d=u();function u(){const f=a(i),p=!e||t==="keepSnaps";return n.length===1?[i]:p?f:f.slice(l,c).map((v,y,x)=>{const g=!y,m=G0(x,y);if(g){const b=Mr(x[0])+1;return w1(b)}if(m){const b=od(i)-Mr(x)[0]+1;return w1(b,Mr(x)[0])}return v})}return{slideRegistry:d}}function uH(e,t,n,r,s){const{reachedAny:i,removeOffset:a,constrain:l}=r;function c(v){return v.concat().sort((y,x)=>pt(y)-pt(x))[0]}function d(v){const y=e?a(v):l(v),x=t.map((m,b)=>({diff:u(m-y,0),index:b})).sort((m,b)=>pt(m.diff)-pt(b.diff)),{index:g}=x[0];return{index:g,distance:y}}function u(v,y){const x=[v,v+n,v-n];if(!e)return v;if(!y)return c(x);const g=x.filter(m=>V0(m)===y);return g.length?c(g):Mr(x)-n}function h(v,y){const x=t[v]-s.get(),g=u(x,y);return{index:v,distance:g}}function f(v,y){const x=s.get()+v,{index:g,distance:m}=d(x),b=!e&&i(x);if(!y||b)return{index:g,distance:v};const k=t[g]-m,S=v+u(k,0);return{index:g,distance:S}}return{byDistance:f,byIndex:h,shortcut:u}}function hH(e,t,n,r,s,i,a){function l(h){const f=h.distance,p=h.index!==t.get();i.add(f),f&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),p&&(n.set(t.get()),t.set(h.index),a.emit("select"))}function c(h,f){const p=s.byDistance(h,f);l(p)}function d(h,f){const p=t.clone().set(h),v=s.byIndex(p.get(),f);l(v)}return{distance:c,index:d}}function pH(e,t,n,r,s,i,a,l){const c={passive:!0,capture:!0};let d=0;function u(p){if(!l)return;function v(y){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const m=n.findIndex(b=>b.includes(y));q0(m)&&(s.useDuration(0),r.index(m,0),a.emit("slideFocus"))}i.add(document,"keydown",h,!1),t.forEach((y,x)=>{i.add(y,"focus",g=>{(xp(l)||l(p,g))&&v(x)},c)})}function h(p){p.code==="Tab"&&(d=new Date().getTime())}return{init:u}}function Wl(e){let t=e;function n(){return t}function r(c){t=a(c)}function s(c){t+=a(c)}function i(c){t-=a(c)}function a(c){return q0(c)?c:c.get()}return{get:n,set:r,add:s,subtract:i}}function rj(e,t){const n=e.scroll==="x"?a:l,r=t.style;let s=null,i=!1;function a(f){return`translate3d(${f}px,0px,0px)`}function l(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const p=KW(e.direction(f));p!==s&&(r.transform=n(p),s=p)}function d(f){i=!f}function u(){i||(r.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:d}}function fH(e,t,n,r,s,i,a,l,c){const u=Lc(s),h=Lc(s).reverse(),f=g().concat(m());function p(C,N){return C.reduce((R,M)=>R-s[M],N)}function v(C,N){return C.reduce((R,M)=>p(R,N)>0?R.concat([M]):R,[])}function y(C){return i.map((N,R)=>({start:N-r[R]+.5+C,end:N+t-.5+C}))}function x(C,N,R){const M=y(N);return C.map(H=>{const D=R?0:-n,U=R?n:0,B=R?"end":"start",ne=M[H][B];return{index:H,loopPoint:ne,slideLocation:Wl(-1),translate:rj(e,c[H]),target:()=>l.get()>ne?D:U}})}function g(){const C=a[0],N=v(h,C);return x(N,n,!1)}function m(){const C=t-a[0]-1,N=v(u,C);return x(N,-n,!0)}function b(){return f.every(({index:C})=>{const N=u.filter(R=>R!==C);return p(N,t)<=.1})}function k(){f.forEach(C=>{const{target:N,translate:R,slideLocation:M}=C,H=N();H!==M.get()&&(R.to(H),M.set(H))})}function S(){f.forEach(C=>C.translate.clear())}return{canLoop:b,clear:S,loop:k,loopPoints:f}}function mH(e,t,n){let r,s=!1;function i(c){if(!n)return;function d(u){for(const h of u)if(h.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}r=new MutationObserver(u=>{s||(xp(n)||n(c,u))&&d(u)}),r.observe(e,{childList:!0})}function a(){r&&r.disconnect(),s=!0}return{init:i,destroy:a}}function gH(e,t,n,r){const s={};let i=null,a=null,l,c=!1;function d(){l=new IntersectionObserver(v=>{c||(v.forEach(y=>{const x=t.indexOf(y.target);s[x]=y}),i=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:r}),t.forEach(v=>l.observe(v))}function u(){l&&l.disconnect(),c=!0}function h(v){return Dc(s).reduce((y,x)=>{const g=parseInt(x),{isIntersecting:m}=s[g];return(v&&m||!v&&!m)&&y.push(g),y},[])}function f(v=!0){if(v&&i)return i;if(!v&&a)return a;const y=h(v);return v&&(i=y),v||(a=y),y}return{init:d,destroy:u,get:f}}function yH(e,t,n,r,s,i){const{measureSize:a,startEdge:l,endEdge:c}=e,d=n[0]&&s,u=v(),h=y(),f=n.map(a),p=x();function v(){if(!d)return 0;const m=n[0];return pt(t[l]-m[l])}function y(){if(!d)return 0;const m=i.getComputedStyle(Mr(r));return parseFloat(m.getPropertyValue(`margin-${c}`))}function x(){return n.map((m,b,k)=>{const S=!b,E=G0(k,b);return S?f[b]+u:E?f[b]+h:k[b+1][l]-m[l]}).map(pt)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:h}}function bH(e,t,n,r,s,i,a,l,c){const{startEdge:d,endEdge:u,direction:h}=e,f=q0(n);function p(g,m){return Lc(g).filter(b=>b%m===0).map(b=>g.slice(b,b+m))}function v(g){return g.length?Lc(g).reduce((m,b,k)=>{const S=Mr(m)||0,E=S===0,C=b===od(g),N=s[d]-i[S][d],R=s[d]-i[b][u],M=!r&&E?h(a):0,H=!r&&C?h(l):0,D=pt(R-H-(N+M));return k&&D>t+c&&m.push(b),C&&m.push(g.length),m},[]).map((m,b,k)=>{const S=Math.max(k[b-1]||0);return g.slice(S,m)}):[]}function y(g){return f?p(g,n):v(g)}return{groupSlides:y}}function vH(e,t,n,r,s,i,a){const{align:l,axis:c,direction:d,startIndex:u,loop:h,duration:f,dragFree:p,dragThreshold:v,inViewThreshold:y,slidesToScroll:x,skipSnaps:g,containScroll:m,watchResize:b,watchSlides:k,watchDrag:S,watchFocus:E}=i,C=2,N=eH(),R=N.measure(t),M=n.map(N.measure),H=QW(c,d),D=H.measureSize(R),U=tH(D),B=JW(l,D),ne=!h&&!!m,te=h||!!m,{slideSizes:oe,slideSizesWithGaps:O,startGap:A,endGap:z}=yH(H,R,M,n,te,s),ce=bH(H,D,x,h,R,M,A,z,C),{snaps:ae,snapsAligned:pe}=cH(H,B,R,M,ce),Z=-Mr(ae)+Mr(O),{snapsContained:ze,scrollContainLimit:Qe}=iH(D,Z,pe,m,C),ge=ne?ze:pe,{limit:Ve}=oH(Z,ge,h),Ze=nj(od(ge),u,h),Ge=Ze.clone(),Pe=Lc(n),ie=({dragHandler:_t,scrollBody:Mt,scrollBounds:nr,options:{loop:It}})=>{It||nr.constrain(_t.pointerDown()),Mt.seek()},Ae=({scrollBody:_t,translate:Mt,location:nr,offsetLocation:It,previousLocation:Kt,scrollLooper:br,slideLooper:Cn,dragHandler:Ls,animation:os,eventHandler:as,scrollBounds:Ds,options:{loop:vr}},Wn)=>{const En=_t.settled(),To=!Ds.shouldConstrain(),be=vr?En:En&&To,Le=be&&!Ls.pointerDown();Le&&os.stop();const Ke=nr.get()*Wn+Kt.get()*(1-Wn);It.set(Ke),vr&&(br.loop(_t.direction()),Cn.loop()),Mt.to(It.get()),Le&&as.emit("settle"),be||as.emit("scroll")},ye=YW(r,s,()=>ie(yt),_t=>Ae(yt,_t)),tt=.68,Ee=ge[Ze.get()],Ot=Wl(Ee),it=Wl(Ee),ct=Wl(Ee),j=Wl(Ee),P=rH(Ot,ct,it,j,f,tt),I=uH(h,ge,Z,Ve,j),K=hH(ye,Ze,Ge,P,I,j,a),Y=lH(Ve),V=zc(),X=gH(t,n,a,y),{slideRegistry:we}=dH(ne,m,ge,Qe,ce,Pe),Ne=pH(e,n,we,K,P,V,a,E),yt={ownerDocument:r,ownerWindow:s,eventHandler:a,containerRect:R,slideRects:M,animation:ye,axis:H,dragHandler:ZW(H,e,r,s,j,XW(H,s),Ot,ye,K,P,I,Ze,a,U,p,v,g,tt,S),eventStore:V,percentOfView:U,index:Ze,indexPrevious:Ge,limit:Ve,location:Ot,offsetLocation:ct,previousLocation:it,options:i,resizeHandler:nH(t,a,s,n,H,b,N),scrollBody:P,scrollBounds:sH(Ve,ct,j,P,U),scrollLooper:aH(Z,Ve,ct,[Ot,ct,it,j]),scrollProgress:Y,scrollSnapList:ge.map(Y.get),scrollSnaps:ge,scrollTarget:I,scrollTo:K,slideLooper:fH(H,D,Z,oe,O,ae,ge,ct,n),slideFocus:Ne,slidesHandler:mH(t,a,k),slidesInView:X,slideIndexes:Pe,slideRegistry:we,slidesToScroll:ce,target:j,translate:rj(H,t)};return yt}function xH(){let e={},t;function n(d){t=d}function r(d){return e[d]||[]}function s(d){return r(d).forEach(u=>u(t,d)),c}function i(d,u){return e[d]=r(d).concat([u]),c}function a(d,u){return e[d]=r(d).filter(h=>h!==u),c}function l(){e={}}const c={init:n,emit:s,off:a,on:i,clear:l};return c}const wH={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function kH(e){function t(i,a){return tj(i,a||{})}function n(i){const a=i.breakpoints||{},l=Dc(a).filter(c=>e.matchMedia(c).matches).map(c=>a[c]).reduce((c,d)=>t(c,d),{});return t(i,l)}function r(i){return i.map(a=>Dc(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function _H(e){let t=[];function n(i,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(i,e)),a.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function r(){t=t.filter(i=>i.destroy())}return{init:n,destroy:r}}function Nh(e,t,n){const r=e.ownerDocument,s=r.defaultView,i=kH(s),a=_H(i),l=zc(),c=xH(),{mergeOptions:d,optionsAtMedia:u,optionsMediaQueries:h}=i,{on:f,off:p,emit:v}=c,y=H;let x=!1,g,m=d(wH,Nh.globalOptions),b=d(m),k=[],S,E,C;function N(){const{container:Pe,slides:ie}=b;E=(Gg(Pe)?e.querySelector(Pe):Pe)||e.children[0];const ye=Gg(ie)?E.querySelectorAll(ie):ie;C=[].slice.call(ye||E.children)}function R(Pe){const ie=vH(e,E,C,r,s,Pe,c);if(Pe.loop&&!ie.slideLooper.canLoop()){const Ae=Object.assign({},Pe,{loop:!1});return R(Ae)}return ie}function M(Pe,ie){x||(m=d(m,Pe),b=u(m),k=ie||k,N(),g=R(b),h([m,...k.map(({options:Ae})=>Ae)]).forEach(Ae=>l.add(Ae,"change",H)),b.active&&(g.translate.to(g.location.get()),g.animation.init(),g.slidesInView.init(),g.slideFocus.init(Ge),g.eventHandler.init(Ge),g.resizeHandler.init(Ge),g.slidesHandler.init(Ge),g.options.loop&&g.slideLooper.loop(),E.offsetParent&&C.length&&g.dragHandler.init(Ge),S=a.init(Ge,k)))}function H(Pe,ie){const Ae=ce();D(),M(d({startIndex:Ae},Pe),ie),c.emit("reInit")}function D(){g.dragHandler.destroy(),g.eventStore.clear(),g.translate.clear(),g.slideLooper.clear(),g.resizeHandler.destroy(),g.slidesHandler.destroy(),g.slidesInView.destroy(),g.animation.destroy(),a.destroy(),l.clear()}function U(){x||(x=!0,l.clear(),D(),c.emit("destroy"),c.clear())}function B(Pe,ie,Ae){!b.active||x||(g.scrollBody.useBaseFriction().useDuration(ie===!0?0:b.duration),g.scrollTo.index(Pe,Ae||0))}function ne(Pe){const ie=g.index.add(1).get();B(ie,Pe,-1)}function te(Pe){const ie=g.index.add(-1).get();B(ie,Pe,1)}function oe(){return g.index.add(1).get()!==ce()}function O(){return g.index.add(-1).get()!==ce()}function A(){return g.scrollSnapList}function z(){return g.scrollProgress.get(g.offsetLocation.get())}function ce(){return g.index.get()}function ae(){return g.indexPrevious.get()}function pe(){return g.slidesInView.get()}function Z(){return g.slidesInView.get(!1)}function ze(){return S}function Qe(){return g}function ge(){return e}function Ve(){return E}function Ze(){return C}const Ge={canScrollNext:oe,canScrollPrev:O,containerNode:Ve,internalEngine:Qe,destroy:U,off:p,on:f,emit:v,plugins:ze,previousScrollSnap:ae,reInit:y,rootNode:ge,scrollNext:ne,scrollPrev:te,scrollProgress:z,scrollSnapList:A,scrollTo:B,selectedScrollSnap:ce,slideNodes:Ze,slidesInView:pe,slidesNotInView:Z};return M(t,n),setTimeout(()=>
1962c.emit("init"),0),Ge}Nh.globalOptions=void 0;function K0(e={},t=[]){const n=w.useRef(e),r=w.useRef(t),[s,i]=w.useState(),[a,l]=w.useState(),c=w.useCallback(()=>{s&&s.reInit(n.current,r.current)},[s]);return w.useEffect(()=>{U0(n.current,e)||(n.current=e,c())},[e,c]),w.useEffect(()=>{VW(r.current,t)||(r.current=t,c())},[t,c]),w.useEffect(()=>{if(qW()&&a){Nh.globalOptions=K0.globalOptions;const d=Nh(a,n.current,r.current);return i(d),()=>d.destroy()}else i(void 0)},[a,i]),[l,s]}K0.globalOptions=void 0;const SH=SS("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-[color,background-color,border-color,transform] active:scale-[0.97] motion-reduce:transition-none motion-reduce:active:scale-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),J0=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...s},i)=>{const a=r?xM:"button";return o.jsx(a,{className:Ht(SH({variant:t,size:n,className:e})),ref:i,...s})});J0.displayName="Button";const sj=w.createContext(null);function wp(){const e=w.useContext(sj);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const Y0=w.forwardRef(({orientation:e="horizontal",opts:t,setApi:n,plugins:r,className:s,children:i,...a},l)=>{const[c,d]=K0({...t,axis:e==="horizontal"?"x":"y"},r),[u,h]=w.useState(!1),[f,p]=w.useState(!1),v=w.useCallback(m=>{m&&(h(m.canScrollPrev()),p(m.canScrollNext()))},[]),y=w.useCallback(()=>{d==null||d.scrollPrev()},[d]),x=w.useCallback(()=>{d==null||d.scrollNext()},[d]),g=w.useCallback(m=>{m.key==="ArrowLeft"?(m.preventDefault(),y()):m.key==="ArrowRight"&&(m.preventDefault(),x())},[y,x]);return w.useEffect(()=>{!d||!n||n(d)},[d,n]),w.useEffect(()=>{if(d)return v(d),d.on("reInit",v),d.on("select",v),()=>{d==null||d.off("select",v)}},[d,v]),o.jsx(sj.Provider,{value:{carouselRef:c,api:d,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:y,scrollNext:x,canScrollPrev:u,canScrollNext:f},children:o.jsx("div",{ref:l,onKeyDownCapture:g,className:Ht("relative",s),role:"region","aria-roledescription":"carousel",...a,children:i})})});Y0.displayName="Carousel";const Q0=w.forwardRef(({className:e,...t},n)=>{const{carouselRef:r,orientation:s}=wp();return o.jsx("div",{ref:r,className:"overflow-hidden",children:o.jsx("div",{ref:n,className:Ht("flex",s==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Q0.displayName="CarouselContent";const Z0=w.forwardRef(({className:e,...t},n)=>{const{orientation:r}=wp();return o.jsx("div",{ref:n,role:"group","aria-roledescription":"slide",className:Ht("min-w-0 shrink-0 grow-0 basis-full",r==="horizontal"?"pl-4":"pt-4",e),...t})});Z0.displayName="CarouselItem";const X0=w.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollPrev:a,canScrollPrev:l}=wp();return o.jsxs(J0,{ref:s,variant:t,size:n,className:Ht("absolute h-8 w-8 rounded-full",i==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:a,...r,children:[o.jsx(ES,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Previous slide"})]})});X0.displayName="CarouselPrevious";const eb=w.forwardRef(({className:e,variant:t="outline",size:n="icon",...r},s)=>{const{orientation:i,scrollNext:a,canScrollNext:l}=wp();return o.jsxs(J0,{ref:s,variant:t,size:n,className:Ht("absolute h-8 w-8 rounded-full",i==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!l,onClick:a,...r,children:[o.jsx(jS,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Next slide"})]})});
1962eb.displayName="CarouselNext";function CH({data:e,preview:t=!1}){const[n,r]=w.useState(),s=e.date?ki(e.date):"",i=!!(e.highlights&&e.highlights.length>0);return w.useEffect(()=>{if(!n||n.scrollSnapList().length<2||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let a;const l=()=>{c(),a=setInterval(()=>n.scrollNext(),5e3)},c=()=>a&&clearInterval(a),d=n.rootNode();return d.addEventListener("pointerenter",c),d.addEventListener("pointerleave",l),l(),()=>{c(),d.removeEventListener("pointerenter",c),d.removeEventListener("pointerleave",l)}},[n]),o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[!t&&o.jsx(st,{title:e.title,description:e.subtitle??e.about,image:e.img,path:`/upcoming-performances/${e.slug}`,jsonLd:I4(e)}),o.jsxs("div",{style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsxs("section",{className:"perf-hero nc-container",style:{paddingTop:96,paddingBottom:96,display:"flex",flexDirection:"column",gap:20},children:[o.jsx("p",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#FE894C"},children:o.jsx(ke,{to:"/browse-by-date-venue",style:{color:"#FE894C",textDecoration:"none"},children:"â Browse Our Season"})}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:64,lineHeight:"100%",color:"#FFFFFF",textTransform:"uppercase",maxWidth:900},children:e.title}),e.subtitle&&o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:760}
1962,children:e.subtitle}),E0(e)&&o.jsxs(ke,{to:`/box-office/${e.slug}`,className:"perf-tickets font-display",children:[o.jsx(RS,{size:20,strokeWidth:1.75,"aria-hidden":"true"}),o.jsx("span",{children:"Get Tickets"})]})]}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"},"aria-hidden":"true"})]}),o.jsxs("section",{className:"perf-main nc-container",style:{paddingTop:72,paddingBottom:80},children:[o.jsxs("div",{className:"perf-layout",children:[o.jsxs("div",{className:"perf-content",children:[(()=>{const a=e.gallery&&e.gallery.length>0?e.gallery:[e.img];return o.jsxs(Y0,{opts:{align:"start",loop:!0},setApi:r,className:"perf-carousel",children:[o.jsx(Q0,{children:a.map((l,c)=>o.jsx(Z0,{className:"basis-full",children:o.jsx("div",{className:"perf-slide",children:o.jsx("img",{src:l,alt:`${e.title} â photo ${c+1}`,loading:c===0?"eager":"lazy"})})},c))}),a.length>1&&o.jsxs(o.Fragment,{children:[o.jsx(X0,{className:"left-3 border-0 bg-white/90 text-nc-black shadow-md"}),o.jsx(eb,{className:"right-3 border-0 bg-white/90 text-nc-black shadow-md"})]})]})})(),o.jsxs("div",{className:"perf-details-grid",children:[o.jsxs("div",{className:"perf-details-primary",children:[o.jsx("span",{className:"font-display perf-date",children:[s,e.time].filter(Boolean).join(" · ")}),o.jsxs("ul",{className:"perf-meta",children:[o.jsxs("li",{children:[o.jsx(Pc,{}),o.jsx("span",{children:e.venue})]}),o.jsxs("li",{children:[o.jsx(OS,{}),o.jsx("span",{children:e.conductor})]}),o.jsxs("li",{children:[o.jsx(NS,{}),o.jsx("span",{children:e.program})]})]})]}),i&&o.jsxs("div",{className:"perf-about perf-details-highlights",children:[o.jsx("h2",{className:"font-display perf-h2",children:"Program Highlights"}),o.jsx("ul",{className:"perf-highlights",children:e.highlights.map(a=>o.jsx("li",{className:"font-body",children:a},a))})]}),e.about&&o.jsxs("div",{className:"perf-about perf-details-about",children:[o.jsx("h2",{className:"font-display perf-h2",children:"About the Performance"}),o.jsx("p",{className:"font-body perf-body",children:e.about})]})]})]}),o.jsx("aside",{className:"perf-form-col",id:"inquire",children:o.jsx(ej,{variant:"light",eventSlug:e.slug,intent:"event"})})]}),o.jsx("style",{children:` 1963 .perf-tickets { 1964 align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; 1965 height: 52px; padding: 14px 26px; margin-top: 8px; background: #FE894C; color: #FFFFFF; 1966 font-weight: 400; font-size: 14px; line-height: 140%; letter-spacing: 0.04em; 1967 text-transform: uppercase; text-decoration: none; transition: background 160ms ease; 1968 } 1969 .perf-tickets:hover { background: #E8732A; } 1970 .perf-tickets:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; } 1971 .perf-layout { 1972 display: grid; 1973 grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); 1974 gap: 64px; 1975 align-items: start; 1976 } 1977 .perf-content { display: flex; flex-direction: column; gap: 28px; } 1978 1979 .perf-carousel { width: 100%; } 1980 .perf-slide { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #E0E4EA; } 1981 .perf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; } 1982 1983 .perf-details-grid { 1984 display: grid; 1985 grid-template-columns: 1fr 1fr; 1986 grid-template-areas: 1987 "primary highlights" 1988 "about about"; 1989 column-gap: 32px; 1990 row-gap: 28px; 1991 align-items: start; 1992 } 1993 /* Same 12px heading-to-content gap as .perf-about, so the first line of 1994 each column lands on the same baseline. */ 1995 .perf-details-primary { grid-area: primary; display: flex; flex-direction: column; gap: 12px; } 1996 .perf-date { 1997 font-weight: 400; font-size: 28px; line-height: 110%; 1998 text-transform: uppercase; color: #E8732A; letter-spacing: 0.5px; 1999 } 2000 .perf-details-highlights { grid-area: highlights; } 2001 /* Full-width row, but capped so the copy keeps a readable line length. */ 2002 .perf-details-about { grid-area: about; max-width: 72ch; } 2003 2004 .perf-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } 2005 .perf-meta li { 2006 display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 12px; 2007 font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 16px; line-height: 150%; color: #454545; 2008 }
2009 .perf-meta svg { width: 20px; height: 20px; stroke: #454545; stroke-width: 1.5; fill: none; } 2010 2011 .perf-about { display: flex; flex-direction: column; gap: 12px; } 2012 .perf-h2 { 2013 margin: 0; font-weight: 400; font-size: 28px; line-height: 110%; 2014 text-transform: uppercase; color: #141414; 2015 } 2016 .perf-body { margin: 0; font-weight: 400; font-size: 16px; line-height: 165%; color: #454545; font-family: 'Montserrat', sans-serif; } 2017 .perf-highlights { 2018 list-style: none; padding: 0; margin: 0; 2019 display: flex; flex-direction: column; gap: 10px; 2020 } 2021 .perf-highlights li { 2022 position: relative; padding-left: 20px; 2023 font-size: 16px; line-height: 160%; color: #454545; 2024 font-family: 'Montserrat', sans-serif; 2025 } 2026 /* Dot markers hang flush at the left edge so bullets line up straight 2027 under the heading and with the copy in the left column. */ 2028 .perf-highlights li::before { 2029 content: ""; position: absolute; left: 2px; top: 10px; 2030 width: 6px; height: 6px; border-radius: 50%; background: #E8732A; 2031 } 2032 2033 /* Form stays in view as the visitor reads the program details. */ 2034 .perf-form-col { position: sticky; top: 96px; align-self: start; } 2035 2036 @media (max-width: 1023px) { 2037 .perf-layout { grid-template-columns: 1fr; gap: 48px; } 2038 .perf-form-col { position: static; } 2039 } 2040 @media (max-width: 767px) { 2041 .perf-details-grid { 2042 grid-template-columns: 1fr; 2043 grid-template-areas: "primary" "highlights" "about"; 2044 } 2045 } 2046 @media (max-width: 640px) { 2047 .perf-main { padding-top: 48px !important; padding-bottom: 56px !important; } 2048 .perf-h2 { font-size: 24px; } 2049 } 2050 `})]}),o.jsx(et,{})]})}const EH=()=>{const{slug:e}=Zc(),{hash:t}=un(),{data:n,isLoading:r}=jo(),i=e?(n??pp).find(a=>a.slug===e):void 0;return w.useEffect(()=>{if(!i||t!=="#inquire")return;const a=requestAnimationFrame(()=>{var l;(l=document.getElementById("inquire"))==null||l.scrollIntoView({behavior:"smooth",block:"start"})});return()=>cancelAnimationFrame(a)},[i,t,e]),i?o.jsx(CH,{data:i}):r?null:o.jsx(gn,{to:"/browse-by-date-venue",replace:!0})},jH=()=>{const{slug:e}=Zc(),{data:t,isLoading:n}=jo(),s=e?(t??pp).find(c=>c.slug===e):void 0;if(!s)return n?null:o.jsx(gn,{to:"/box-office",replace:!0});const i=s.gallery&&s.gallery.length>0?s.gallery:[s.img],a=E0(s),l=s.boxOfficeAbout||s.about;return o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:`${s.title} â Tickets`,description:s.subtitle??l,image:s.img,path:`/box-office/${s.slug}`,jsonLd:I4(s)}),o.jsxs("div",{style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsxs("section",{className:"bk-hero nc-container",style:{paddingTop:96,paddingBottom:80,display:"flex",flexDirection:"column",gap:20},children:[o.jsx("p",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#FE894C"},children:o.jsx(ke,{to:"/box-office",style:{color:"#FE894C",textDecoration:"none"},children:"â Attend A Performance"})}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:64,lineHeight:"100%",color:"#FFFFFF",textTransform:"uppercase",maxWidth:900},children:s.title}),s.subtitle&&o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:760},children:s.subtitle})]}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"},"aria-hidden":"true"})]}),o.jsx("section",{className:"bk-main nc-container",children:o.jsxs("div",{className:"bk-layout",children:[o.jsxs("div",{className:"bk-content",children:[o.jsxs("ul",{className:"bk-meta",children:[o.jsxs("li",{children:[o.jsx(ih,{}),o.jsxs("span",{children:[ki(s.date)," · ",s.time]})]}),o.jsxs("li",{children:[o.jsx(Pc,{}),o.jsx("span",{children:s.venue})]})]}),l&&o.jsxs("div",{className:"bk-block",children:[o.jsx("h2",{className:"font-display bk-h2",children:"About the Performance"}),o.jsx("p",{className:"font-body bk-body",children:l})]}),s.performers&&s.performers.length>0&&o.jsxs("div",{className:"bk-block",children:[o.jsx("h2",{className:"font-display bk-h2",children:"Performers"}),o.jsx("ul",{className:"bk-performers",children:s.performers.map(c=>o.jsxs("li",{children:[o.jsx("span",{className:"bk-performers__name font-body",children:c.name}),o.jsx("span",{className:"bk-performers__role font-body",children:c.role})]},c.name))})]}),s.programWorks&&s.programWorks.length>0&&o.jsxs("div",{className:"bk-block",children:[o.jsx("h2",{className:"font-display bk-h2",children:"Program"}),o.jsx("ul",{className:"bk-program",children:s.programWorks.map(c=>o.jsxs("li",{children:[o.jsx("span",{className:"bk-program__composer font-body",children:c.composer}),o.jsx("span",{className:"bk-program__work font-body",children:c.work})]},`${c.composer}-${c.work}`))})]})]}),o.jsx("aside",{className:"bk-rail",children:o.jsxs("div",{className:"bk-ticket",children:[s.priceFrom&&o.jsxs("div",{className:"bk-ticket__price-row",children:[o.jsx("span",{className:"bk-ticket__price-label font-body",children:"Tickets from"}),o.jsx("span",{className:"bk-ticket__price font-body",children:s.priceFrom})]}),o.jsxs("ul",{className:"bk-ticket__facts",children:[o.jsxs("li",{children:[o.jsx(ih,{}),o.jsxs("span",{children:[ki(s.date)," · ",s.time]})]}),o.jsxs("li",{children:[o.jsx(Pc,{}),o.jsx("span",{children:s.venue})]})]}),a?o.jsxs(o.Fragment,{children:[o.jsxs("a",{href:s.ticketUrl,className:"bk-cta bk-cta--full font-display",children:[o.jsx(RS,{size:20,strokeWidth:1.75}),o.jsx("span",{children:"Get Tickets"}),o.jsx(Ue,{size:18,strokeWidth:1.75})]}),o.jsx("p",{className:"bk-ticket__note font-body m-0",children:"Secure checkout · e-tickets delivered instantly."})]}):o.jsx("p",{className:"bk-ticket__note font-body m-0",children:"Tickets for this performance are not on sale yet."})]})})]})}),o.jsx("section",{className:"bk-video-wrap nc-container",children:o.jsx("div",{className:"bk-video",children:s.videoUrl?/\.(mp4|webm|ogg|mov)(\?|#|$)/i.test(s.videoUrl)?o.jsx("video",{src:s.videoUrl,title:`${s.title}
2050 â sizzle reel`,controls:!0,playsInline:!0,preload:"metadata",poster:s.img,controlsList:"nodownload"}):o.jsx("iframe",{src:s.videoUrl,title:`${s.title} â sizzle reel`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}):o.jsxs("button",{type:"button",className:"bk-video__poster","aria-label":"Play sizzle reel (coming soon)",children:[o.jsx("img",{src:s.img,alt:s.alt}),o.jsx("span",{className:"bk-video__scrim","aria-hidden":"true"}),o.jsx("span",{className:"bk-video__play","aria-hidden":"true",children:o.jsx(sl,{size:28,strokeWidth:2,fill:"currentColor"})}),o.jsx("span",{className:"bk-video__label font-display",children:"Watch the highlights"})]})})}),o.jsxs("section",{className:"bk-gallery nc-container",children:[o.jsx("h2",{className:"font-display bk-h2",style:{marginBottom:28},children:"Gallery"}),o.jsxs(Y0,{opts:{align:"start",loop:!0},className:"bk-carousel",children:[o.jsx(Q0,{children:i.map((c,d)=>o.jsx(Z0,{className:"basis-full sm:basis-1/2 lg:basis-1/2",children:o.jsx("div",{className:"bk-slide",children:o.jsx("img",{src:c,alt:`${s.title} â photo ${d+1}`,loading:"lazy"})})},d))}),o.jsx(X0,{className:"left-3 border-0 bg-white/90 text-nc-black shadow-md"}),o.jsx(eb,{className:"right-3 border-0 bg-white/90 text-nc-black shadow-md"})]})]}),o.jsx(et,{}),o.jsx("style",{children:` 2051 .bk-cta { 2052 display: inline-flex; align-items: center; justify-content: center; gap: 10px; 2053 height: 52px; padding: 14px 26px; background: #FE894C; color: #FFFFFF; 2054 font-weight: 400; font-size: 14px; line-height: 140%; letter-spacing: 0.04em; 2055 text-transform: uppercase; text-decoration: none; transition: background 160ms ease; 2056 } 2057 .bk-cta:hover { background: #E8732A; } 2058 .bk-cta svg { stroke: #FFFFFF; fill: none; } 2059 .bk-cta--full { width: 100%; } 2060 2061 /* Sizzle video (sits below the details) */ 2062 .bk-video-wrap { padding-top: 0; padding-bottom: 0; } 2063 .bk-video { 2064 position: relative; width: 100%; aspect-ratio: 16 / 9; 2065 background: #000; overflow: hidden; 2066 } 2067 .bk-video iframe, 2068 .bk-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; } 2069 .bk-video__poster { 2070 position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; 2071 background: none; cursor: pointer; display: block; overflow: hidden; 2072 } 2073 .bk-video__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 500ms ease; } 2074 .bk-video__poster:hover img { transform: scale(1.03); } 2075 .bk-video__scrim { position: absolute; inset: 0; background: rgba(20,20,20,0.35); } 2076 .bk-video__play { 2077 position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); 2078 width: 84px; height: 84px; border-radius: 9999px; 2079 background: rgba(254,137,76,0.95); color: #FFFFFF; 2080 display: inline-flex; align-items: center; justify-content: center; 2081 box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5); transition: transform 200ms ease, background 200ms ease; 2082 } 2083 .bk-video__poster:hover .bk-video__play { transform: translate(-50%, -50%) scale(1.06); background: #FE894C; } 2084 .bk-video__label { 2085 position: absolute; left: 24px; bottom: 20px; 2086 color: #FFFFFF; font-weight: 400; font-size: 16px; letter-spacing: 0.04em; 2087 text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,0.6); 2088 } 2089 2090 /* Main layout */ 2091 .bk-main { padding-top: 56px; padding-bottom: 56px; } 2092 .bk-layout { 2093 display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); 2094 gap: 64px; align-items: start; 2095 } 2096 .bk-content { display: flex; flex-direction: column; gap: 40px; } 2097 .bk-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } 2098 .bk-meta li { 2099 display: grid; grid-template-columns: 20px 1fr; align-items: center; gap: 12px; 2100 font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 16px; line-height: 150%; color: #454545; 2101 }
2102 .bk-meta svg { width: 20px; height: 20px; stroke: #454545; stroke-width: 1.5; fill: none; } 2103 2104 .bk-block { display: flex; flex-direction: column; gap: 14px; } 2105 .bk-h2 { 2106 margin: 0; font-weight: 400; font-size: 28px; line-height: 110%; 2107 text-transform: uppercase; color: #141414; 2108 } 2109 .bk-body { margin: 0; font-weight: 400; font-size: 16px; line-height: 165%; color: #454545; font-family: 'Montserrat', sans-serif; } 2110 2111 .bk-performers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } 2112 .bk-performers li { 2113 display: flex; justify-content: space-between; align-items: baseline; gap: 16px; 2114 padding: 14px 0; border-bottom: 1px solid #E0E4EA; 2115 } 2116 .bk-performers__name { font-weight: 600; font-size: 16px; color: #141414; } 2117 .bk-performers__role { font-weight: 400; font-size: 14px; color: #6F6F6F; text-align: right; } 2118 2119 .bk-program { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; } 2120 .bk-program li { 2121 display: flex; flex-direction: column; gap: 2px; 2122 padding: 14px 0; border-bottom: 1px solid #E0E4EA; 2123 } 2124 .bk-program__composer { font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: #E8732A; } 2125 .bk-program__work { font-weight: 400; font-size: 16px; line-height: 150%; color: #141414; } 2126 2127 /* Sticky ticket rail */ 2128 .bk-rail { position: sticky; top: 96px; align-self: start; } 2129 .bk-ticket { 2130 display: flex; flex-direction: column; gap: 20px; 2131 padding: 28px; background: #FFFFFF; border: 1px solid #E0E4EA; 2132 } 2133 .bk-ticket__price-row { display: flex; flex-direction: column; gap: 2px; } 2134 .bk-ticket__price-label { font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #6F6F6F; } 2135 .bk-ticket__price { font-weight: 600; font-size: 32px; line-height: 110%; color: #141414; } 2136 .bk-ticket__facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } 2137 .bk-ticket__facts li { 2138 display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; 2139 font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 150%; color: #454545; 2140 } 2141 .bk-ticket__facts svg { width: 18px; height: 18px; stroke: #454545; stroke-width: 1.5; fill: none; } 2142 .bk-ticket__note { font-weight: 400; font-size: 12px; line-height: 150%; color: #6F6F6F; } 2143 2144 /* Gallery */ 2145 .bk-gallery { padding-top: 56px; padding-bottom: 80px; } 2146 .bk-slide { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #E0E4EA; } 2147 .bk-slide img { width: 100%; height: 100%; object-fit: cover; display: block; } 2148 2149 @media (max-width: 1023px) { 2150 .bk-layout { grid-template-columns: 1fr; gap: 40px; } 2151 .bk-rail { position: static; } 2152 } 2153 @media (max-width: 640px) { 2154 .bk-hero { padding-top: 72px !important; padding-bottom: 56px !important; } 2155 .bk-hero h1 { font-size: 40px !important; } 2156 .bk-video-wrap { padding-top: 0; padding-bottom: 0; } 2157 .bk-main { padding-top: 40px; padding-bottom: 48px; } 2158 .bk-h2 { font-size: 24px; } 2159 .bk-cta { width: 100%; } 2160 .bk-video__play { width: 64px; height: 64px; } 2161 } 2162 `})]})},TH=()=>{const e=ve();return o.jsxs("div",{style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsxs("section",{className:"hero--past",style:{position:"relative",width:"100%",height:600,background:"#141414",overflow:"hidden",isolation:"isolate"},children:[o.jsxs("div",{className:"hero__photo",style:{position:"absolute",top:0,right:0,width:850,height:"100%",zIndex:0},children:[o.jsx("img",{src:e.image("pastperf.hero.photo",wa),alt:"Women's choir mid-performance with piano in foreground",style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block"}}),o.jsx("span",{className:"hero__photo-fade","aria-hidden":"true",style:{position:"absolute",inset:0,background:"linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.92) 18%, rgba(20,20,20,0.55) 38%, rgba(20,20,20,0.10) 65%, rgba(20,20,20,0) 100%)",pointerEvents:"none"}})]}),o.jsxs("div",{className:"hero__text nc-container",style:{position:"absolute",left:0,right:0,top:157,zIndex:2,display:"flex",flexDirection:"column",gap:24},children:[o.jsx("p",{className:"hero__label font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#E8732A"},children:e.text("pastperf.hero.eyebrow")}),o.jsx("h1",{className:"hero__title font-display m-0",style:{fontWeight:400,fontSize:64,lineHeight:"100%",color:"#FFFFFF",textTransform:"uppercase",maxWidth:803},children:e.text("pastperf.hero.headline")}),o.jsx("p",{className:"hero__sub font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:720},children:e.text("pastperf.hero.body")})]}),o.jsx("style",{children:` 2163 @media (max-width: 1023px) { 2164 .hero--past { height: 540px !important; } 2165 .hero--past .hero__photo { width: 60% !important; } 2166 .hero--past .hero__photo-fade { 2167 background: linear-gradient(90deg, #141414 0%, rgba(20,20,20,0.95) 25%, rgba(20,20,20,0.6) 50%, rgba(20,20,20,0) 100%) !important; 2168 } 2169 .hero--past .hero__text { top: 140px !important; } 2170 .hero--past .hero__title { font-size: 48px !important; } 2171 .hero--past .hero__sub { font-size: 16px !important; } 2172 } 2173 @media (max-width: 640px) { 2174 .hero--past { height: auto !important; padding-bottom: 32px !important; } 2175 .hero--past .hero__photo { 2176 position: relative !important; 2177 width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; 2178 top: 0 !important; right: 0 !important; 2179 margin: 0 0 24px 0 !important; 2180 } 2181 .hero--past .hero__photo-fade { 2182 background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0) 60%, #141414 100%) !important; 2183 } 2184 .hero--past .hero__text { 2185 position: relative !important; 2186 top: auto !important; left: 0 !important; right: 0 !important; 2187 gap: 12px !important; 2188 } 2189 .hero--past .hero__title { font-size: 32px !important; line-height: 105% !important; } 2190 .hero--past .hero__sub { font-size: 14px !important; line-height: 150% !important; max-width: none !important; } 2191 } 2192 `})]}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"},"aria-hidden":"true"})]})},AH=[{date:"MAR 15, 2026",year:2026,title:"Spring Symphonic Celebration",venue:"Carnegie Hall, New York",img:gE,to:"/past/spring-symphonic-celebration-2026"},{date:"FEB 22, 2026",year:2026,title:"Winter Choral Masterworks",venue:"Symphony Hall, Boston",img:_0,to:"/past/winter-choral-masterworks-2026"},{date:"JAN 10, 2026",year:2026,title:"New Year's Brass Spectacular",venue:"Kennedy Center, Washington D.C.",img:mE,to:"/past/new-years-brass-spectacular-2026"},{date:"NOV 18, 2025",year:2025,title:"Autumn Wind Symphony",venue:"Severance Hall, Cleveland",img:pE,to:"/past/autumn-wind-symphony-2025"},{date:"OCT 05, 2025",year:2025,title:"Festival of Nations",venue:"Orchestra Hall, Chicago",img:fE,to:"/past/festival-
2192of-nations-2025"},{date:"SEP 12, 2025",year:2025,title:"Summer Percussion Showcase",venue:"Walt Disney Concert Hall, LA",img:k0,to:"/past/summer-percussion-showcase-2025"}],NH=({e})=>o.jsxs("article",{className:"pp-card",style:{display:"flex",flexDirection:"column",background:"#FFFFFF",border:"1px solid #E0E4EA",overflow:"hidden",height:356,transition:"border-color 200ms ease, box-shadow 200ms ease"},children:[o.jsx("div",{className:"pp-card__photo",style:{display:"block",width:"100%",height:220,flexShrink:0,overflow:"hidden",background:"#E0E4EA"},children:o.jsx("img",{src:e.img,alt:e.title,style:{width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block",transition:"transform 400ms ease"}})}),o.jsxs("div",{className:"pp-card__info",style:{padding:24,display:"flex",flexDirection:"column",gap:10},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:12,lineHeight:"150%",textTransform:"uppercase",color:"#FE894C"},children:e.date}),o.jsx("h3",{className:"font-body m-0",style:{fontWeight:600,fontSize:20,lineHeight:"150%",color:"#141414"},children:e.title}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:14,lineHeight:"140%",color:"#454545"},children:e.venue})]})]}),FH=()=>{const[e,t]=w.useState("All"),{data:n}=t8(),r=n!=null&&n.length?n.map(l=>({date:l.date,year:l.year,title:l.title,venue:l.venue,img:l.img,to:""})):AH,i=["All",...[...new Set(r.map(l=>l.year).filter(Boolean))].sort((l,c)=>c-l).map(String)],a=e==="All"?r:r.filter(l=>String(l.year)===e);return o.jsxs("section",{className:"past-events nc-container",style:{background:"#FFFFFF",paddingTop:80,paddingBottom:80,display:"flex",flexDirection:"column",gap:32},children:[o.jsx("div",{className:"year-filters",style:{display:"flex",gap:12,alignItems:"center",flexWrap:"wrap"},children:i.map(l=>{const c=e===l;return o.jsx("button",{onClick:()=>t(l),"aria-selected":c,className:"year-filter font-body",style:{display:"inline-flex",alignItems:"center",height:36,padding:"8px 16px",background:c?"#FE894C":"#F1F3F6",border:`1px solid ${c?"#FE894C":"#E0E4EA"}`,borderRadius:0,cursor:"pointer",fontWeight:500,fontSize:14,lineHeight:"140%",color:c?"#FFFFFF":"#141414",transition:"background 160ms ease, color 160ms ease"},children:l},l)})}),o.jsx("div",{className:"pp-grid",style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:24},children:a.map(l=>o.jsx(NH,{e:l},l.title+l.date))}),o.jsx("style",{children:` 2193 @media (max-width: 1023px) { 2194 .pp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; } 2195 .pp-card { height: auto !important; } 2196 .pp-card .pp-card__photo { height: auto !important; aspect-ratio: 4 / 3; } 2197 } 2198 @media (max-width: 640px) { 2199 .pp-grid { grid-template-columns: 1fr !important; gap: 16px !important; } 2200 .pp-card .pp-card__photo { aspect-ratio: 16 / 9; } 2201 } 2202 `})]})},qf=[xC,wC,kC,_C,SC],PH=()=>{const[e,t]=w.useState(0),n=ve(),r=n.list("about_strip.images"),s=r.length?r.map((i,a)=>Tt(i.image)??qf[a]??qf[0]):qf;return w.useEffect(()=>{const i=setInterval(()=>t(a=>(a+1)%s.length),3500);return()=>clearInterval(i)},[s.length]),o.jsxs("section",{className:"anc",style:{width:"100%",background:"#F4F3EE",paddingTop:80,paddingBottom:80},children:[o.jsxs("div",{className:"nc-container anc__grid",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:64,alignItems:"center"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[o.jsx("h2",{className:"anc__title font-display m-0",style:{fontWeight:400,fontSize:48,lineHeight:"120%",textTransform:"uppercase",color:"#141414"},children:n.text("about_strip.title")}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:17,lineHeight:"170%",color:"#454545"},children:n.text("about_strip.body")})]}),o.jsxs("div",{className:"anc__media",style:{position:"relative",width:"100%",aspectRatio:"16 / 11",overflow:"hidden",background:"#E0E4EA"},children:[s.map((i,a)=>o.jsx("img",{src:i,alt:"",loading:"lazy",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",opacity:a===e?1:0,transition:"opacity 800ms ease"}},a)),o.jsx("div",{style:{position:"absolute",left:16,bottom:16,display:"flex",gap:8,zIndex:2},children:s.map((i,a)=>o.jsx("button",{type:"button",onClick:()=>t(a),"aria-label":`Show image ${a+1}`,style:{width:a===e?24:8,height:8,borderRadius:9999,border:0,padding:0,background:a===e?"#FFFFFF":"rgba(255,255,255,0.55)",cursor:"pointer",transition:"all 200ms ease"}},a))})]})]}),o.jsx("style",{children:` 2203 @media (max-width: 1023px) { 2204 .anc { padding-top: 64px !important; padding-bottom: 64px !important; } 2205 .anc__grid { grid-template-columns: 1fr !important; gap: 32px !important; } 2206 .anc__title { font-size: 36px !important; } 2207 } 2208 @media (max-width: 640px) { 2209 .anc { padding-top: 48px !important; padding-bottom: 48px !important; } 2210 .anc__title { font-size: 28px !important; } 2211 } 2212 `})]})},RH=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Past Performances",description:"A look back at past National Concerts performances by choirs, bands, and orchestras.",path:"/past-performances"}),o.jsx(TH,{}),o.jsx(FH,{}),o.jsx(PH,{}),o.jsx(et,{})]}),OH=({media:e,title:t,onClose:n})=>(w.useEffect(()=>{const r=i=>{i.key==="Escape"&&n()};window.addEventListener("keydown",r);const s=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",r),document.body.style.overflow=s}},[n]),e.kind==="link"?null:o.jsxs("div",{className:"media-lb",role:"dialog","aria-modal":"true","aria-label":t,onClick:n,children:[o.jsx("button",{type:"button",className:"media-lb__close",onClick:n,"aria-label":"Close player",children:o.jsx(Eo,{size:22,strokeWidth:2})}),o.jsx("div",{className:"media-lb__stage",onClick:r=>r.stopPropagation(),children:e.kind==="youtube"||e.kind==="vimeo"?o.jsx("iframe",{src:`${e.embedUrl}${e.embedUrl.includes("?")?"&":"?"}autoplay=1`,title:t,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;
2212 picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin"}):e.kind==="video"?o.jsx("video",{src:e.src,controls:!0,autoPlay:!0,playsInline:!0}):o.jsxs("div",{className:"media-lb__audio",children:[o.jsx("p",{className:"media-lb__title font-display m-0",children:t}),o.jsx("audio",{src:e.src,controls:!0,autoPlay:!0})]})}),o.jsx("style",{children:` 2213 .media-lb { 2214 position: fixed; inset: 0; z-index: 120; 2215 display: flex; align-items: center; justify-content: center; 2216 padding: 24px; background: rgba(10, 10, 10, 0.88); 2217 } 2218 .media-lb__stage { width: min(960px, 100%); } 2219 .media-lb__stage iframe, 2220 .media-lb__stage video { 2221 display: block; width: 100%; aspect-ratio: 16 / 9; 2222 border: 0; background: #000; 2223 } 2224 .media-lb__audio { 2225 background: #141414; border: 1px solid #3A3A3A; padding: 28px; 2226 display: flex; flex-direction: column; gap: 16px; 2227 } 2228 .media-lb__title { 2229 font-weight: 400; font-size: 22px; line-height: 120%; 2230 text-transform: uppercase; color: #FFFFFF; 2231 } 2232 .media-lb__audio audio { width: 100%; } 2233 .media-lb__close { 2234 position: absolute; top: 20px; right: 20px; 2235 display: inline-flex; align-items: center; justify-content: center; 2236 width: 44px; height: 44px; cursor: pointer; 2237 background: transparent; border: 1px solid #6C6C6C; color: #FFFFFF; 2238 } 2239 .media-lb__close:hover { border-color: #FE894C; color: #FE894C; } 2240 @media (max-width: 640px) { 2241 .media-lb { padding: 16px; } 2242 .media-lb__close { top: 12px; right: 12px; } 2243 } 2244 `})]})),MH=/\.(mp4|webm|mov|m4v)(\?|#|$)/i,IH=/\.(mp3|wav|m4a|aac|ogg|flac)(\?|#|$)/i;function LH(e){const t=(e??"").trim();if(!t)return{kind:"link"};let n;try{n=new URL(t)}catch{return{kind:"link"}}const r=n.hostname.replace(/^www\./,"").toLowerCase();if(r==="youtu.be"){const s=n.pathname.slice(1).split("/")[0];return s?{kind:"youtube",embedUrl:`https://www.youtube.com/embed/${s}`}:{kind:"link"}}if(r==="youtube.com"||r==="m.youtube.com"||r==="youtube-nocookie.com"){const s=n.searchParams.get("v");if(s)return{kind:"youtube",embedUrl:`https://www.youtube.com/embed/${s}`};const i=n.pathname.match(/^\/(?:embed|shorts|live)\/([^/?#]+)/);return i?{kind:"youtube",embedUrl:`https://www.youtube.com/embed/${i[1]}`}:{kind:"link"}}if(r==="vimeo.com"||r==="player.vimeo.com"){const s=n.pathname.split("/").filter(Boolean),i=s.find(c=>/^\d+$/.test(c));if(!i)return{kind:"link"};const a=s[s.indexOf(i)+1],l=a&&!/^\d+$/.test(a)?`?h=${a}`:"";return{kind:"vimeo",embedUrl:`https://player.vimeo.com/video/${i}${l}`}}return MH.test(n.pathname)?{kind:"video",src:t}:IH.test(n.pathname)?{kind:"audio",src:t}:{kind:"link"}}const DH=e=>{var n;if(typeof window>"u"||!window.DOMParser)return e.replace(/<img\b[^>]*>/gi,"");const t=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html");return t.querySelectorAll("img").forEach(r=>r.remove()),t.querySelectorAll("div.up_detail_img").forEach(r=>{r.querySelector("iframe, .embed-container")||r.remove()}),t.querySelectorAll("strong").forEach(r=>{(!r.textContent||!r.textContent.trim())&&r.remove()}),((n=t.body.firstElementChild)==null?void 0:n.innerHTML)??e};function zH({data:e,preview:t=!1}){const n=w.useMemo(()=>lo(DH(e.contentHtml)),[e.contentHtml]),r=w.useMemo(()=>LH(e.sourceUrl),[e.sourceUrl]),[s,i]=w.useState(!1);return o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[!t&&o.jsx(st,{title:e.title,description:e.excerpt.replace(/\.\.\.$/,""),image:e.cardImage,path:`/commissions/${e.slug}`,type:"article",jsonLd:Xz(e)}),o.jsxs("div",{style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsxs("section",{className:"commission-hero nc-container",style:{paddingTop:96,paddingBottom:88,display:"flex",flexDirection:"column",gap:20},children:[o.jsx("p",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#FE894C"},children:o.jsx(ke,{to:"/commissions",style:{color:"#FE894C",textDecoration:"none"},children:"â Commissions"})}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:64,lineHeight:"100%",color:"#FFFFFF",textTransform:"uppercase",maxWidth:960},children:e.title}),e.author?o.jsx("p",{className:"font-body m-0",style:{fontWeight:600,fontSize:18,lineHeight:"155%",color:"#F4F3EE",maxWidth:840},children:e.author}):null,o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"160%",color:"#C8CED9",maxWidth:840},children:e.excerpt.replace(/\.\.\.$/,"")})]}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"},"aria-hidden":"true"})]}),o.jsxs("section",{className:"commission-main nc-container",style:{paddingTop:80,paddingBottom:80},children:[o.jsxs("div",{className:"commission-layout",children:[o.jsx("aside",{className:"commission-aside",children:o.jsx("div",{className:"commission-sticky",children:o.jsxs("div",{className:"commission-card",children:[o.jsx("img",{src:e.cardImage,alt:e.title,loading:"lazy",className:"commission-card__image"}),o.jsxs("div",{className:"commission-card__body",children:[o.jsx("p",{className:"commission-card__eyebrow",children:"Commission"}),o.jsx("h2",{className:"commission-card__title font-display",children:e.title}),e.author?o.jsx("p",{className:"commission-card__author",children:e.author}):null,e.sourceUrl?r.kind==="link"?o.jsxs("a",{href:e.sourceUrl,target:"_blank",rel:"noreferrer",className:"commission-source font-display",children:["Purchase Score",o.jsx(Ue,{size:18,strokeWidth:2})]}):o.jsxs("button",{type:"button",onClick:()=>i(!0),className:"commission-source font-display",children:["Listen",o.jsx(Ue,{size:18,strokeWidth:2})]}):null]})]})})}),o.jsx("article",{className:"commission-article",children:o.jsx("div",{dangerouslySetInnerHTML:{__html:n}})})]}),o.jsx("style",{children:` 2245 .commission-layout { 2246 display: grid; 2247 grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); 2248 gap: 48px; 2249 align-items: start; 2250 } 2251 .commission-sticky { position: sticky; top: 112px; } 2252 .commission-card { 2253 border: 1px solid #E5E7EB; 2254 background: #FFFFFF; 2255 overflow: hidden; 2256 } 2257 .commission-card__image { 2258 width: 100%; 2259 aspect-ratio: 4 / 5; 2260 object-fit: cover; 2261 display: block; 2262 background: #F4F3EE; 2263 } 2264 .commission-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; } 2265 .commission-card__eyebrow { 2266 margin: 0; 2267 font-family: 'Montserrat', sans-serif; 2268 font-size: 12px; 2269 line-height: 140%; 2270 font-weight: 600; 2271 text-transform: uppercase; 2272 color: #E8732A; 2273 letter-spacing: 0.08em; 2274 } 2275 .commission-card__title { 2276 margin: 0; 2277 font-weight: 400; 2278 font-size: 28px; 2279 line-height: 110%; 2280 color: #141414; 2281 text-transform: uppercase; 2282 } 2283 .commission-card__author { 2284 margin: 0; 2285 font-family: 'Montserrat', sans-serif; 2286 font-size: 15px; 2287 line-height: 165%; 2288 color: #454545; 2289 } 2290 .commission-source { 2291 display: inline-flex; 2292 align-items: center; 2293 gap: 8px; 2294 text-decoration: none; 2295 text-transform: uppercase; 2296 color: #141414; 2297 font-size: 14px; 2298 line-height: 140%; 2299 margin-top: 8px; 2300 /* Shared by the <a> (external link) and the <button> (opens the 2301 player), so the two look identical whichever one renders. */ 2302 align-self: flex-start; 2303 padding: 0; 2304 background: none; 2305 border: 0; 2306 font-family: inherit; 2307 cursor: pointer; 2308 } 2309 .commission-source:hover { color: #E8732A; } 2310 .commission-article { 2311 min-width: 0; 2312 font-family: 'Montserrat', sans-serif; 2313 color: #222222; 2314 font-size: 16px; 2315 line-height: 175%; 2316 } 2317 .commission-article .article__body, 2318 .commission-article .up_detail_content { 2319 display: flex; 2320 flex-direction: column; 2321 gap: 16px; 2322 } 2323 .commission-article p, 2324 .commission-article li { 2325 margin: 0; 2326 font-size: 16px; 2327 line-height: 175%; 2328 color: #2F3136; 2329 } 2330 .commission-article strong { 2331 color: #141414; 2332 } 2333 .commission-article a { 2334 color: #141414; 2335 text-decoration-color: #FE894C; 2336 text-underline-offset: 3px; 2337 } 2338 .commission-article img { 2339 width: 100%; 2340 max-width: 720px; 2341 height: auto; 2342 display: block; 2343 background: #F4F3EE; 2344 margin: 0 0 24px; 2345 } 2346 .commission-article iframe { 2347 width: 100%; 2348 min-height: 420px; 2349 border: 0; 2350 } 2351 .commission-article .embed-container { 2352 position: relative; 2353 width: 100%; 2354 padding-bottom: 56.25%; 2355 height: 0; 2356 overflow: hidden; 2357 margin: 8px 0 24px; 2358 } 2359 .commission-article .embed-container iframe { 2360 position: absolute; 2361 inset: 0; 2362 width: 100%; 2363 height: 100%; 2364 } 2365 .commission-article .btn { 2366 display: inline-flex; 2367 align-items: center; 2368 justify-content: center; 2369 padding: 14px 20px; 2370 background: #FE894C; 2371 color: #FFFFFF !important; 2372 text-decoration: none; 2373 text-transform: uppercase; 2374 width: fit-content; 2375 margin-top: 8px; 2376 } 2377 @media (max-width: 1023px) { 2378 .commission-layout { 2379 grid-template-columns: 1fr; 2380 gap: 32px; 2381 } 2382 .commission-sticky { position: static; } 2383 } 2384 @media (max-width: 640px) { 2385 .commission-main { padding-top: 56px !important; padding-bottom: 56px !important; } 2386 .commission-card__title { font-size: 24px; } 2387 .commission-article iframe { min-height: 240px; } 2388 } 2389 `})]}),s&&o.jsx(OH,{media:r,title:e.title,onClose:()=>i(!1)}),o.jsx(et,{})]})}const BH=()=>{const{slug:e}=Zc(),{data:t,isLoading:n}=fp(),s=e?(t??hp).find(i=>i.slug===e):void 0;return s?o.jsx(zH,{data:s}):n?null:o.jsx(gn,{to:"/commissions",replace:!0})},WH="/nc-promo.mp4",ij=w.createContext({openPromo:()=>{}}),oj=()=>w.useContext(ij),HH=({children:e})=>{var u;const[t,n]=w.useState(!1),[r,s]=w.useState(""),i=w.useRef(null),{data:a}=ll(),l=((u=a==null?void 0:a.promo_video_url)==null?void 0:u.trim())||WH,c=r||l,d=h=>{s((h==null?void 0:h.trim())??""),n(!0)};return w.useEffect(()=>{if(!t)return;const h=v=>{v.key==="Escape"&&n(!1)};window.addEventListener("keydown",h);const f=document.body.style.overflow;document.body.style.overflow="hidden";const p=i.current;return p==null||p.play().catch(()=>{p&&(p.muted=!0,p.play().catch(()=>{}))}),()=>{window.removeEventListener("keydown",h),document.body.style.overflow=f}},[t]),o.jsxs(ij.Provider,{value:{openPromo:d},children:[e,t&&o.jsxs("div",{className:"promo-overlay",role:"dialog","aria-modal":"true","aria-label":"National Concerts video",onClick:()=>n(!1),children:[o.jsx("button",{type:"button",className:"promo-close","aria-label":"Close video",onClick:()=>n(!1),children:o.jsx(Eo,{size:30,strokeWidth:1.75})}),o.jsx("div",{className:"promo-frame",onClick:h=>h.stopPropagation(),children:o.jsx("video",{ref:i,src:c,autoPlay:!0,playsInl
2389ine:!0,controls:!0,controlsList:"nodownload",onEnded:()=>n(!1)})}),o.jsx("style",{children:` 2390 .promo-overlay { 2391 position: fixed; inset: 0; z-index: 100; 2392 background: rgba(0, 0, 0, 0.88); 2393 display: grid; place-items: center; padding: 24px; 2394 animation: promo-fade 200ms ease both; 2395 } 2396 @keyframes promo-fade { from { opacity: 0; } to { opacity: 1; } } 2397 .promo-close { 2398 position: absolute; top: 20px; right: 24px; 2399 background: transparent; border: 0; color: #FFFFFF; cursor: pointer; 2400 line-height: 0; opacity: 0.85; transition: opacity 160ms ease; 2401 } 2402 .promo-close:hover { opacity: 1; } 2403 .promo-frame { position: relative; width: min(1100px, 92vw); aspect-ratio: 16 / 9; } 2404 .promo-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; } 2405 `})]})]})},$H=()=>{const e=F0({speed:.12,max:40}),{openPromo:t}=oj(),n=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{ref:e,"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
2405p:"-10%",bottom:"-10%",right:0,left:"50%",backgroundImage:`url(${n.image("experience.hero.background",VC)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center",willChange:"transform"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 40%, rgba(20,20,20,0.92) 52%, rgba(20,20,20,0.55) 68%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:24,maxWidth:"min(700px, 55%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:n.text("experience.hero.eyebrow")}),o.jsxs("h1",{className:"font-display m-0 hero-title",style:{fontWeight:400,fontSize:"clamp(36px, 5.5vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:[n.text("experience.hero.headline_line1"),o.jsx("br",{className:"hero-br"})," ",n.text("experience.hero.headline_line2")]}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:640},children:n.text("experience.hero.body")}),o.jsxs("button",{type:"button",onClick:()=>t(),className:"exp-hero__play inline-flex items-center",style:{gap:16,background:"transparent",border:0,padding:0,cursor:"pointer",height:52,marginTop:8},children:[o.jsx("span",{className:"exp-hero__play-icon grid place-items-center",style:{width:52,height:52,borderRadius:9999,background:"#FE894C",flexShrink:0,transition:"background 160ms ease, transform 160ms ease"},children:o.jsx(sl,{size:28,className:"fill-white text-white",strokeWidth:2})}),o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",color:"#FFFFFF"},children:n.text("experience.hero.play_label")})]})]})}),o.jsx("style",{children:` 2406 .hero-title { white-space: normal; overflow-wrap: break-word; } 2407 .exp-hero__play:hover .exp-hero__play-icon { background: #E8732A; transform: scale(1.05); } 2408 @media (min-width: 1280px) { 2409 .hero-br { display: none; } 2410 } 2411 @media (max-width: 1023px) { 2412 .hero-img { left: 0 !important; opacity: 0.55; } 2413 .hero-fade { 2414 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 2415 } 2416 .nc-container > div { max-width: 100% !important; } 2417 } 2418 @media (max-width: 640px) { 2419 .hero-br { display: none; } 2420 } 2421 `})]})},UH=[{id:"conductors",image:w0,imageRight:!0,bg:"#FFFFFF",showPlay:!0},{id:"composers",image:yh,imageRight:!1,bg:"#F4F3EE",showPlay:!1},{id:"projection",image:dp,imageRight:!0,bg:"#FFFFFF",showPlay:!0},{id:"venues",image:ui,imageRight:!1,bg:"#F4F3EE",showPlay:!1},{id:"ensemble-services",image:b0,imageRight:!0,bg:"#FFFFFF",showPlay:!1},{id:"celebration",image:up,imageRight:!1,bg:"#141414",showPlay:!0}],qH=({item:e,dark:t})=>o.jsxs("div",{className:"exp-story__text",style:{display:"flex",flexDirection:"column",gap:24},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:16},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",textTransform:"uppercase",letterSpacing:"0.5px",color:"#E8732A"},children:e.label}),o.jsx("h2",{className:"exp-story__title font-display m-0",style:{fontWeight:400,fontSize:44,lineHeight:"115%",textTransform:"uppercase",color:t?"#FFFFFF":"#141414"},children:e.title})]}),o.jsx("p",{className:"exp-story__desc font-body m-0",style:{fontWeight:400,fontSize:16,lineHeight:"160%",color:t?"#C8CED9":"#454545"},children:e.desc}),o.jsx("p",{className:`exp-story__pull font-display m-0${t?" exp-story__pull--dark":""}`,style:{fontWeight:400,fontSize:20,lineHeight:"140%",fontStyle:"italic",color:t?"#FFFFFF":"#141414"},children:e.pull})]}),VH=({item:e,onPlay:t})=>o.jsxs("div",{className:"exp-story__image",style:{position:"relative",width:"100%",height:520,borderRadius:4,overflow:"hidden",background:"#E0E4EA"},children:[o.jsx("img",{src:e.image,alt:"",loading:"lazy",className:"block h-full w-full object-cover object-center"}),e.showPlay&&o.jsx("button",{type:"button","aria-label":e.video?"Play video":"Play promo film",onClick:t,className:"exp-story__play",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:72,height:72,borderRadius:9999,background:"rgba(0,0,0,0.55)",border:"1px solid rgba(255,255,255,0.6)",display:"grid",placeItems:"center",cursor:"pointer",transition:"background 160ms ease, transform 160ms ease"},children:o.jsx(sl,{size:28,className:"fill-white text-white",strokeWidth:2,style:{marginLeft:3}})}),e.caption&&o.jsx("div",{style:{position:"absolute",left:0,right:0,bottom:0,padding:"16px 20px",background:"linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%)",color:"#FFFFFF",fontFamily:"Inter, Montserrat, sans-serif",fontSize:12,fontWeight:600,letterSpacing:"0.5px",textTransform:"uppercase"},children:e.caption})]}),GH=()=>{const{openPromo:e}=oj(),n=ve().list("experience.modules"),r=UH.map((s,i)=>{var l,c;const a=n[i]??{};return{id:s.id,label:a.label??"",title:a.title??"",desc:a.desc??"",pull:a.pull??"",caption:a.caption||void 0,image:Tt(a.image)??s.image,imageRight:s.imageRight,bg:s.bg,showPlay:s.showPlay||!!((l=a.video)!=null&&l.trim()),video:((c=a.video)==null?void 0:c.trim())||void 0}});return o.jsxs(o.Fragment,{children:[r.map(s=>{const i=s.bg==="#141414",a=s.imageRight?"fade-left":"fade-right",l=s.imageRight?"fade-right":"fade-left",c=o.jsx(vn,{variant:a,className:"exp-story__reveal exp-story__reveal--img",children:o.jsx(VH,{item:s,onPlay:()=>e(s.video)})},"img"),d=o.jsx(vn,{variant:l,delay:140,className:"exp-story__reveal",children:o.jsx(qH,{item:s,dark:i})},"txt");return o.jsx("section",{className:"exp-story",style:{width:"100%",background:s.bg,padding:"96px 56px",display:"grid",gridTemplateColumns:"minmax(0, 1fr) minmax(0, 1.15fr)",columnGap:80,al
2421ignItems:"center"},children:s.imageRight?[d,c]:[c,d]},s.id)}),o.jsx("style",{children:` 2422 .exp-story__reveal { min-width: 0; } 2423 .exp-story__play:hover { background: rgba(232,115,42,0.85) !important; transform: translate(-50%, -50%) scale(1.06) !important; } 2424 2425 /* Cinematic zoom-out: image settles from a slight scale as it reveals. */ 2426 .exp-story__image img { transform: scale(1.08); transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1); } 2427 .exp-story__reveal--img.is-in .exp-story__image img { transform: scale(1); } 2428 2429 /* Quote emphasis: the orange bar grows from the top, quote lands last. */ 2430 .exp-story__pull { position: relative; padding-left: 16px; } 2431 .exp-story__pull::before { 2432 content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; 2433 background: #E8732A; transform: scaleY(0); transform-origin: top; 2434 transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1) 320ms; 2435 } 2436 .exp-story__reveal.is-in .exp-story__pull::before { transform: scaleY(1); } 2437 2438 @media (prefers-reduced-motion: reduce) { 2439 .exp-story__image img { transform: none; transition: none; } 2440 .exp-story__pull::before { transition: none; transform: scaleY(1); } 2441 } 2442 2443 @media (max-width: 1023px) { 2444 .exp-story { 2445 padding: 72px 32px !important; 2446 grid-template-columns: 1fr 1fr !important; 2447 column-gap: 40px !important; 2448 } 2449 .exp-story__title { font-size: 32px !important; } 2450 .exp-story__image { height: 380px !important; } 2451 } 2452 @media (max-width: 640px) { 2453 .exp-story { 2454 grid-template-columns: 1fr !important; 2455 gap: 32px !important; 2456 padding: 56px 20px !important; 2457 display: flex !important; 2458 flex-direction: column !important; 2459 } 2460 .exp-story .exp-story__reveal--img { order: -1 !important; } 2461 .exp-story__image { height: 260px !important; } 2462 .exp-story__title { font-size: 28px !important; line-height: 115% !important; } 2463 .exp-story__desc { font-size: 15px !important; } 2464 .exp-story__pull { font-size: 17px !important; } 2465 } 2466 `})]})},KH=()=>{const e=ve();return o.jsx(HH,{children:o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"The Experience",description:"What it's like to perform with National Concerts â from first rehearsal to the final bow.",path:"/the-experience"}),o.jsx($H,{}),o.jsx(GH,{}),o.jsx(vn,{children:o.jsx(vp,{eyebrow:e.text("experience.cta.eyebrow"),title:e.text("experience.cta.title"),ctaLabel:e.text("experience.cta.cta_label"),ctaTo:"/inquiry?intent=experience"})}),o.jsx(et,{})]})})},JH=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
2466p:0,bottom:0,right:0,left:"50%",backgroundImage:`url(${e.image("commissions.hero.background",qC)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.92) 50%, rgba(20,20,20,0.55) 66%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:24,maxWidth:"min(700px, 55%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase"},children:e.text("commissions.hero.eyebrow")}),o.jsxs("h1",{className:"font-display m-0 hero-title",style:{fontWeight:400,fontSize:"clamp(36px, 5.5vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:[e.text("commissions.hero.headline_line1"),o.jsx("br",{className:"hero-br"})," ",e.text("commissions.hero.headline_line2")]}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:640},children:e.text("commissions.hero.body")})]})}),o.jsx("style",{children:` 2467 .hero-title { white-space: normal; overflow-wrap: break-word; } 2468 @media (min-width: 1280px) { 2469 .hero-br { display: none; } 2470 } 2471 @media (max-width: 1023px) { 2472 .hero-img { left: 0 !important; opacity: 0.55; } 2473 .hero-fade { 2474 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 2475 } 2476 .nc-container > div { max-width: 100% !important; } 2477 } 2478 @media (max-width: 640px) { 2479 .hero-br { display: none; } 2480 } 2481 `})]})},aj=({cards:e,fit:t="cover"})=>o.jsxs("div",{className:`comm-grid${t==="contain"?" comm-grid--contain":""}`,children:[e.map(n=>{const r=o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"comm-card__img",children:o.jsx("img",{src:n.img,alt:`${n.title} by ${n.subtitle}`,loading:"lazy",width:800,height:640})}),o.jsxs("div",{className:"comm-card__body",children:[n.meta&&o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:12,lineHeight:"140%",letterSpacing:"0.5px",textTransform:"uppercase",color:"#E8732A",marginBottom:8},children:n.meta}),o.jsx("h3",{className:"font-display m-0",style:{fontWeight:400,fontSize:24,lineHeight:"115%",textTransform:"uppercase",color:"#141414"},children:n.title}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"150%",color:"#5C6470",marginTop:6},children:n.subtitle}),o.jsxs("span",{className:"comm-card__cta font-display","aria-hidden":"true",children:[o.jsx("span",{children:"View More"}),o.jsx(Ue,{size:14,strokeWidth:2})]})]})]});return n.external?o.jsx("a",{href:n.to,target:"_blank",rel:"noopener noreferrer","aria-label":n.ariaLabel,className:"comm-card no-underline",children:r},n.id):o.jsx(ke,{to:n.to,"aria-label":n.ariaLabel,className:"comm-card no-underline",children:r},n.id)}),o.jsx("style",{children:` 2482 .comm-grid { 2483 display: grid; 2484 grid-template-columns: repeat(3, minmax(0, 1fr)); 2485 gap: 24px; 2486 } 2487 .comm-card { 2488 display: flex; 2489 flex-direction: column; 2490 background: #FFFFFF; 2491 border: 1px solid #EAEAEA; 2492 overflow: hidden; 2493 color: inherit; 2494 text-decoration: none; 2495 cursor: pointer; 2496 transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease; 2497 } 2498 .comm-card:hover { 2499 transform: translateY(-4px); 2500 box-shadow: 0 18px 40px -22px rgba(20,20,20,0.35); 2501 border-color: #E8732A; 2502 } 2503 .comm-card:hover .comm-card__img img { 2504 transform: scale(1.04); 2505 } 2506 .comm-card__img img { 2507 transition: transform 500ms ease; 2508 } 2509 .comm-card__img { 2510 width: 100%; 2511 aspect-ratio: 5 / 4; 2512 overflow: hidden; 2513 background: #F4F3EE; 2514 } 2515 .comm-card__img img { 2516 width: 100%; 2517 height: 100%; 2518 object-fit: cover; 2519 display: block; 2520 } 2521 .comm-grid--contain .comm-card__img img { 2522 object-fit: contain; 2523 padding: 14px; 2524 } 2525 .comm-grid--contain .comm-card:hover .comm-card__img img { 2526 transform: none; 2527 } 2528 .comm-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; } 2529 .comm-card__cta { 2530 margin-top: 18px; 2531 display: inline-flex; 2532 align-items: center; 2533 gap: 6px; 2534 font-weight: 400; 2535 font-size: 13px; 2536 line-height: 140%; 2537 letter-spacing: 0.4px; 2538 text-transform: uppercase; 2539 color: #E8732A; 2540 } 2541 @media (max-width: 1023px) { 2542 .comm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 2543 } 2544 @media (max-width: 640px) { 2545 .comm-grid { grid-template-columns: 1fr; gap: 20px; } 2546 } 2547 `})]}),YH=()=>{const{data:e}=fp(),t=e??hp;return o.jsx("section",{style:{background:"#FFFFFF",padding:"80px 0"},children:o.jsx("div",{className:"nc-container",children:o.jsx(aj,{cards:t.map(n=>({id:n.slug,to:`/commissions/${n.slug}`,img:n.cardImage,title:n.title,subtitle:n.author,ariaLabel:`View ${n.title} by ${n.author}`}))})})})},QH=()=>{const[e,t]=w.useState(0),n=ve(),r=[n.image("commissions.cta.image",FC)];return w.useEffect(()=>{const s=setInterval(()=>t(i=>(i+1)%r.length),3500);return()=>clearInterval(s)},[r.length]),o.jsxs("section",{className:"ccta",style:{width:"100%",background:"#F4F3EE",paddingTop:80,paddingBottom:80},children:[o.jsxs("div",{className:"nc-container ccta__grid",style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:64,alignItems:"center"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:24},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.6px"},children:n.text("commissions.cta.eyebrow")}),o.jsx("h2",{className:"ccta__title font-display m-0",style:{fontWeight:400,fontSize:48,lineHeight:"110%",textTransform:"uppercase",color:"#141414"},children:n.text("commissions.cta.heading")}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:17,lineHeight:"170%",color:"#454545"},children:n.text("commissions.cta.body")}),o.jsx("div",{className:"ccta__btns",style:{display:"flex",alignItems:"center",gap:12,flexWrap:"wrap",marginTop:8},children:o.jsxs(ke,{to:"/inquiry?intent=commission",className:"font-display nc-cta",style:{display:"inline-flex",alignItems:"center",gap:10,height:52,padding:"14px 20px 14px 24px",fontWeight:400,fontSize:16,lineHeight:"150%",textTransform:"uppercase",textDecoration:"none",background:"#FE894C",color:"#FFFFFF",border:"1px solid #FE894C",borderRadius:0,whiteSpace:"nowrap"},children:[n.text("commissions.cta.cta_label"),o.jsx(Ue,{size:24,strokeWidth:2})]})})]}),o.jsxs("div",{className:"ccta__media",style:{position:"relative",width:"100%",aspectRatio:"16 / 11",overflow:"hidden",background:"#E0E4EA"},children:[r.map((s,i)=>o.jsx("img",{src:s,alt:"",loading:"lazy",style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",opacity:i===e?1:0,transition:"opacity 800ms ease"}},i)),o.jsx("div",{style:{position:"absolute",left:16,bottom:16,display:"flex",gap:8,zIndex:2},children:r.map((s,i)=>o.jsx("button",{type:"button",onClick:()=>t(i),"aria-label":`Show image ${i+1}`,style:{width:i===e?24:8,height:8,borderRadius:9999,border:0,padding:0,background:i===e?"#FFFFFF":"rgba(255,255,255,0.55)",cursor:"pointer",transition:"all 200ms ease"}},i))})]})]}),o.jsx("style",{children:` 2548 @media (max-width: 1023px) { 2549 .ccta { padding-top: 64px !important; padding-bottom: 64px !important; } 2550 .ccta__grid { grid-template-columns: 1fr !important; gap: 32px !important; } 2551 .ccta__title { font-size: 36px !important; } 2552 } 2553 @media (max-width: 640px) { 2554 .ccta { padding-top: 48px !important; padding-bottom: 48px !important; } 2555 .ccta__title { font-size: 28px !important; } 2556 .ccta__btns { width: 100%; } 2557 .ccta__btns .nc-cta { flex: 1; justify-content: center; height: 48px; font-size: 14px; padding: 12px 18px; } 2558 } 2559 `})]})},ZH=()=>{const{data:e}=fp(),n={"@context":"https://schema.org","@type":"ItemList",name:"National Concerts Commissions",itemListElement:(e??hp).map((r,s)=>({"@type":"ListItem",position:s+1,url:bp(`/commissions/${r.slug}
2559`),name:r.title}))};return o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Commissions",description:"Works commissioned by National Concerts â premiered on the world's most respected stages.",path:"/commissions",jsonLd:n}),o.jsx(JH,{}),o.jsx(YH,{}),o.jsx(QH,{}),o.jsx(et,{})]})},Fh=[{title:"Awaken",composer:"Sherry Blevins",voicing:"SAB",url:"https://www.hinshawmusic.com/product/awaken-sab/",cover:"https://media.publit.io/file/2024Releases/Hinshaw2024WebPs/HMC2736-Awaken-Cover-no-Crop-marks.webp"},{title:"Be A Light",composer:"B.E. Boykin",voicing:"SATB",url:"https://www.hinshawmusic.com/product/be-a-light-satb/",cover:"https://media.publit.io/file/q_100/e9sRWMVA.webp"},{title:"Be The Love",composer:"Kyle Pederson",voicing:"SATB",url:"https://www.hinshawmusic.com/product/be-the-love-satb/",cover:"https://media.publit.io/file/2024Releases/Hinshaw2024WebPs/HMC2733-Be-the-Love-Cover-no-crop-marks.webp"},{title:"Franklin",composer:"Z. Randall Stroope",voicing:"SATB",url:"https://www.hinshawmusic.com/product/franklin-satb/",cover:"https://media.publit.io/file/q_100/nTDVq4ma.webp"},{title:"From Scorched Earth",composer:"Katerina Gimon",voicing:"SATB",url:"https://www.hinshawmusic.com/product/from-scorched-earth-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2024Covers/HMC2737-From-Scorched-Earth-Web-Cover.webp"},{title:"Good In All Things",composer:"Brandon Williams",voicing:"SATB",url:"https://www.hinshawmusic.com/product/good-in-all-things-satb/",cover:"https://media.publit.io/file/6Xa3vzan.webp"},{title:"I Will Walk These Woods With You",composer:"Patrick Vu",voicing:"SATB",url:"https://www.hinshawmusic.com/product/i-will-walk-these-woods-with-you-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2026/HMC2849-I-Will-Walk-These-Woods-With-You.webp"},{title:"Illuminate",composer:"Kahan Taraporevala",voicing:"SATB",url:"https://www.hinshawmusic.com/product/illuminate-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2026/HMC2840-Illuminate.webp"},{title:"Life Is Not A Dream",composer:"Brandon Williams",voicing:"SATB",url:"https://www.hinshawmusic.com/product/life-is-not-a-dream-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2026/HMC2841-Life-is-Not-a-Dream.webp"},{title:"Mapaleando",composer:"Jorge Salazar",voicing:"SATB",url:"https://www.hinshawmusic.com/product/mapaleando-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2026/HMC2847-Mapaleando.webp"},{title:"Missa Brevis",composer:"Tom Shelton",voicing:"SSAA",url:"https://www.hinshawmusic.com/product/missa-brevis-ssaa/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2023Webp/HMB277-Missa-Brevis-2.webp"},{title:"Monster, Monster",composer:"Jennifer Lucy Cook",voicing:"SATB",url:"https://www.hinshawmusic.com/product/monster-monster-satb/",cover:"https://media.publit.io/file/q_100/wScNhgo5.webp"},{title:"Morning",composer:"Hans Bridger Heruth",voicing:"SATB",url:"https://www.hinshawmusic.com/product/morning-satb/",cover:"https://media.publit.io/file/2024Releases/Hinshaw2024WebPs/HMC2705-morning-fina-no-Crop-bleed-marks.webp"},{title:"Music Everywhere!",composer:"Kevin Phillip Johnson",voicing:"SSAA",url:"https://www.hinshawmusic.com/product/music-everywhere-ssaa-digital/",cover:"https://media.publit.io/file/2024Releases/Hinshaw2024JPGs/HMC2744-music-everywhere-final-COVER.webp"},{title:"Siman Tov",composer:"Coreen Duffy",voicing:"SATB",url:"https://www.hinshawmusic.com/product/siman-tov-satb/",cover:"https://media.publit.io/file/2024Releases/Hinshaw2024WebPs/HMC2700-Siman-Tov.webp"},{title:"Towards The Light",composer:"Tracy Wong",voicing:"SAB",url:"https://www.hinshawmusic.com/product/towards-the-light-sab/",cover:"https://media.publit.io/file/1scSzXx6.webp"},{title:"Truth",composer:"Sage Bond, arr. Zanaida Stewart Robles",voicing:"SATB",url:"https://www.hinshawmusic.com/product/truth-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2023Webp/HMC2694-Truth-Cover.webp"},{title:"Union Of Love",composer:"Stephen M. Murphy",voicing:"SATB Divisi",url:"https://www.hinshawmusic.com/product/union-of-love-satb-divisi/",cover:"https://media.publit.io/file/Hinshaw/HinshawMixedCovers/HMC2667.jpg"},{title:"Wait Til I Put On My Crown",composer:"Traditional Spiritual, arr. Stacey V. Gibbs",voicing:"SATB",url:"https://www.hinshawmusic.com/product/wait-til-i-
2559put-on-my-crown-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2022Covers/HMC2660_Wait-til-i-put-on-my-crown.png"},{title:"Wide American Earth",composer:"Saunder Choi",voicing:"SATB",url:"https://www.hinshawmusic.com/product/wide-american-earth-satb/",cover:"https://media.publit.io/file/Hinshaw/Hinshaw2023Webp/HMC2693-Wide-American-Earth-Cover.webp"}],XH=()=>{const e=ve(),t=Fh.length>0;return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-0",style:{backgroundImage:`url(${e.image("choral.hero.background",y0)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0 z-[1]",style:{background:"rgba(20,20,20,0.62)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:560},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:24,maxWidth:720},children:[o.jsx("h1",{className:"m-0",children:o.jsx("img",{src:e.image("choral.hero.logo",C0),alt:e.text("choral.hero.headline"),style:{display:"block",width:"clamp(260px, 38vw, 440px)",height:"auto"}})}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#E8E8E8",maxWidth:600},children:e.text("choral.hero.body")}),o.jsx("div",{className:"cta-btns",style:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap",marginTop:12},children:t?o.jsxs("a",{href:"#catalog",className:"font-display nc-cta",style:{display:"inline-flex",alignItems:"center",gap:10,height:52,padding:"14px 20px 14px 24px",fontWeight:400,fontSize:16,lineHeight:"150%",textTransform:"uppercase",textDecoration:"none",background:"#FE894C",color:"#FFFFFF",border:"1px solid #FE894C",borderRadius:0,whiteSpace:"nowrap"},children:[e.text("choral.hero.cta_label"),o.jsx(Ue,{size:20,strokeWidth:2})]}):null})]})}),o.jsx("style",{children:` 2560 @media (max-width: 640px) { 2561 .cta-btns { width: 100%; flex-direction: column; gap: 12px !important; } 2562 .cta-btns .nc-cta { width: 100%; justify-content: center; height: 48px; font-size: 14px; padding: 12px 18px; } 2563 } 2564 `})]})},e9=()=>{const e=ve();return o.jsxs("section",{style:{background:"#FFFFFF",padding:"80px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"cs-about",children:[o.jsxs("div",{className:"cs-about__text",children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("choral.about.eyebrow")}),o.jsxs("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(32px, 4vw, 48px)",lineHeight:"110%",color:"#141414",textTransform:"uppercase",marginTop:16},children:[e.text("choral.about.heading_line1"),o.jsx("br",{}),e.text("choral.about.heading_line2")]}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:32},children:e.text("choral.about.body1")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:16},children:e.text("choral.about.body2")})]}),o.jsx("div",{className:"cs-about__right",children:o.jsx("div",{className:"cs-about__img",children:o.jsx("img",{src:e.image("choral.about.image",NC),alt:"Choral series",loading:"lazy",width:1024,height:704})})})]})}),o.jsx("style",{children:` 2565 .cs-about { 2566 display: grid; 2567 grid-template-columns: 1fr 1fr; 2568 gap: 64px; 2569 align-items: start; 2570 } 2571 .cs-about__right { 2572 display: flex; 2573 flex-direction: column; 2574 gap: 24px; 2575 } 2576 .cs-about__img { 2577 width: 100%; 2578 aspect-ratio: 16 / 11; 2579 overflow: hidden; 2580 background: #F4F3EE; 2581 } 2582 .cs-about__img img { 2583 width: 100%; 2584 height: 100%; 2585 object-fit: cover; 2586 display: block; 2587 } 2588 @media (max-width: 1023px) { 2589 .cs-about { grid-template-columns: 1fr; gap: 40px; } 2590 } 2591 `})]})},Vf="All",lj=e=>e.replace(/\s+divisi$/i,""),t9=[...new Set(Fh.map(e=>lj(e.voicing)))].sort(),n9=()=>{const e=ve(),[t,n]=w.useState(Vf),r=t===Vf?Fh:Fh.filter(s=>lj(s.voicing)===t);return o.jsxs("section",{id:"catalog",style:{background:"#FFFFFF",padding:"0 0 96px",scrollMarginTop:24},children:[o.jsxs("div",{className:"nc-container",children:[o.jsxs("div",{style:{marginBottom:32,maxWidth:640},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("choral.works.eyebrow")}),o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(32px, 4vw, 48px)",lineHeight:"110%",color:"#141414",textTransform:"uppercase",marginTop:12},children:e.text("choral.works.heading")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:16},children:e.text("choral.works.body")})]}),o.jsxs("div",{role:"group","aria-label":e.text("choral.works.filter_label"),className:"choral-voicings",children:[o.jsx("span",{className:"choral-voicings__label font-body","aria-hidden":"true",children:e.text("choral.works.filter_label")}),[Vf,...t9].map(s=>o.jsx("button",{type:"button","aria-pressed":t===s,onClick:()=>n(s),className:"choral-voicings__btn font-body",children:s},s))]}),o.jsx(aj,{fit:"contain",cards:r.map(s=>({id:s.url,to:s.url,external:!0,img:s.cover,title:s.title,subtitle:s.composer,meta:s.voicing,ariaLabel:`View ${s.title} by ${s.composer} on Hinshaw Music`}))})]}),o.jsx("style",{children:` 2592 .choral-voicings { 2593 display: flex; 2594 flex-wrap: wrap; 2595 align-items: center; 2596 gap: 8px; 2597 margin-bottom: 32px; 2598 } 2599 .choral-voicings__label { 2600 font-weight: 600; 2601 font-size: 13px; 2602 color: #141414; 2603 margin-right: 4px; 2604 } 2605 .choral-voicings__btn { 2606 height: 36px; 2607 padding: 0 16px; 2608 border: 1px solid #DADADA; 2609 border-radius: 9999px; 2610 background: #FFFFFF; 2611 color: #141414; 2612 font-size: 13px; 2613 font-weight: 500; 2614 cursor: pointer; 2615 transition: background 160ms ease, color 160ms ease, border-color 160ms ease; 2616 } 2617 .choral-voicings__btn:hover { border-color: #E8732A; } 2618 .choral-voicings__btn[aria-pressed="true"] { 2619 background: #E8732A; 2620 border-color: #E8732A; 2621 color: #FFFFFF; 2622 } 2623 .choral-voicings__btn:focus-visible { outline: 3px solid #FE894C; outline-offset: 2px; } 2624 `})]})},r9=()=>{const{hash:e}=un();return w.useEffect(()=>{if(e!=="#catalog")return;const t=requestAnimationFrame(()=>{var n;return(n=document.getElementById("catalog"))==null?void 0:n.scrollIntoView({behavior:"smooth"})});return()=>cancelAnimationFrame(t)},[e]),o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Choral Series",description:"The National Concerts Choral Series â a curated catalog of works for ensembles of every size.",path:"/choral-series"}),o.jsx(XH,{}),o.jsx(e9,{}),o.jsx(n9,{}),o.jsx(et,{})]})},s9=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"lh-bg pointer-events-none absolute z-0",style:{to
2624p:0,bottom:0,right:0,left:"45%",backgroundImage:`url(${e.image("audiovideo.hero.background",KC)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"lh-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.85) 50%, rgba(20,20,20,0.15) 70%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:520},children:o.jsxs("div",{className:"lh-content flex flex-col items-start",style:{gap:24,maxWidth:640},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("audiovideo.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0 lh-title",style:{fontWeight:400,fontSize:"clamp(36px, 6vw, 72px)",lineHeight:"105%",color:"#FFFFFF",textTransform:"uppercase"},children:e.text("audiovideo.hero.headline")}),o.jsx("p",{className:"lh-desc m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#E8E8E8",maxWidth:560},children:e.text("audiovideo.hero.body")})]})}),o.jsx("style",{children:` 2625 @media (min-width: 1280px) { 2626 .lh-title { white-space: nowrap; } 2627 } 2628 @media (max-width: 1023px) { 2629 .lh-bg { left: 0 !important; opacity: 0.55; } 2630 .lh-fade { 2631 background: linear-gradient(180deg, rgba(20,20,20,0.6) 0%, rgba(20,20,20,0.92) 100%) !important; 2632 } 2633 .lh-content { max-width: 100% !important; width: 100%; } 2634 .lh-title { font-size: clamp(32px, 8vw, 56px) !important; word-break: break-word; } 2635 .lh-desc { max-width: 100% !important; font-size: 16px !important; } 2636 } 2637 `})]})},i9=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),o9=[{title:"Oye",composer:"Jim Papoulis",voicing:"SATB",difficulty:"Moderate",duration:"4:30",img:Mg},{title:"All the Light You See",composer:"Sarah Quartel",voicing:"UNISON",difficulty:"Easy-Moderate",duration:"3:35",img:HC},{title:"The Golem Speaks",composer:"Andrea Clearfield",voicing:"SATB",difficulty:"Moderate",duration:"6:15",img:WC},{title:"Turning",composer:"Jim Papoulis",voicing:"SSA",difficulty:"Easy",duration:"3:15",img:PC},{title:"Dawn of the Machine Age",composer:"Timothy Burchard",voicing:"SATB",difficulty:"Advanced",duration:"7:30",img:$C},{title:"Celestial Fanfare",composer:"Ryan George",voicing:"TBB",difficulty:"Moderate",duration:"4:00",img:BC},{title:"Toccata",composer:"Dani Howard",voicing:"SATB",difficulty:"Advanced",duration:"5:45",img:UC},{title:"Meridian",composer:"Brian Balmages",voicing:"SATB",difficulty:"Moderate",duration:"5:10",img:Og},{title:"Into the Storm",composer:"Randall Standridge",voicing:"TBB",difficulty:"Moderate",duration:"4:50",img:Rg},{title:"River Song",composer:"Sarah Quartel",voicing:"SSA",difficulty:"Easy-Moderate",duration:"3:50",img:RC},{title:"Quiet Light",composer:"Andrea Clearfield",voicing:"SSA",difficulty:"Moderate",duration:"4:20",img:Pg},{title:"Hymn for the Wanderer",composer:"Brian Balmages",voicing:"SATB",difficulty:"Moderate",duration:"5:30",img:OC},{title:"Sea of Stars",composer:"Dani Howard",voicing:"SATB",difficulty:"Advanced",duration:"6:40",img:MC},{title:"Dawnbreak",composer:"Ryan George",voicing:"UNISON",difficulty:"Easy",duration:"2:55",img:IC},{title:"Voices Rising",composer:"Jim Papoulis",voicing:"SATB",difficulty:"Moderate",duration:"4:15",img:Mg},{title:"Embers",composer:"Timothy Burchard",voicing:"TBB",difficulty:"Moderate",duration:"5:00",img:Rg},{title:"Ascend",composer:"Randall Standridge",voicing:"SATB",difficulty:"Easy-Moderate",duration:"3:45",img:Og},{title:"Stillwater",composer:"Sarah Quartel",voicing:"SSA",difficulty:"Easy",duration:"3:20",img:Pg}],cj=o9.map(e=>({...e,slug:i9(e.title)})),a9=()=>{const e=un(),t=T0(),n=Mi(t,cj),r=w.useMemo(()=>{const d=new URLSearchParams(e.search).get("work");if(!d)return 0;const u=n.findIndex(h=>h.slug===d);return u>=0?u:0},[e.search,n]),[s,i]=w.useState(r),a=w.useRef([]);if(w.useEffect(()=>{i(r)},[r]),w.useEffect(()=>{var c;(c=a.current[s])==null||c.scrollIntoView({block:"nearest",behavior:"smooth"})},[s]),!n.length)return null;const l=n[s]??n[0];return o.jsxs("section",{style:{background:"#FFFFFF",padding:"80px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"lp-grid",children:[o.jsxs("aside",{children:[o.jsxs("div",{style:{marginBottom:16},children:[o.jsx("div",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:"Select a Work"}),o.jsxs("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontSize:14,color:"#5C6470",marginTop:4},children:[n.length," works available"]})]}),o.jsx("ul",{className:"m-0 list-none p-0 lp-list",style:{display:"flex",flexDirection:"column",gap:8},children:n.map((c,d)=>{const u=d===s;return o.jsx("li",{ref:h=>a.current[d]=h,children:o.jsxs("button",{type:"button",onClick:()=>i(d),style:{display:"block",width:"100%",textAlign:"left",background:u?"#FFF4EC":"#F4F3EE",border:u?"1px solid #FE894C":"1px solid transparent",padding:"16px 18px",cursor:"pointer"},children:[o.jsxs("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontSize:12,color:"#5C6470",marginBottom:6},children:[c.composer," ",o.jsx("span",{style:{margin:"0 6px"},children:"â¢"})," ",c.voicing]}),o.jsx("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:600,fontSize:16,color:u?"#E8732A":"#141414"},children:c.title}),o.jsx("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontSize:12,color:"#5C6470",marginTop:4},children:c.duration})]})},c.slug)})})]}),o.jsxs("div",{style:{border:"1px solid #EAEAEA",background:"#FFFFFF"},children:[o.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:16,padding:"20px 24px",borderBottom:"1px solid #EAEAEA"},children:[o.jsxs("div",{children:[o.jsxs("div",{className:"font-display",style:{fontSize:20,color:"#141414",textTransform:"none",fontWeight:400},children:["Now Playing: ",l.title]}),o.jsxs("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontSize:13,color:"#5C6470",marginTop:4},children:[l.composer," ",o.jsx("span",{style:{margin:"0 6px"},children:"â¢"})," ",l.voicing," ",o.jsx("span",{style:{margin:"0 6px"},children:"â¢"})," Published by Hinshaw Music"]})]}),o.jsx(ke,{to:`/listen/${l.slug}`,className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:8,height:40,padding:"10px 16px",background:"#F4F3EE",color:"#141414",border:"1px solid #EAEAEA",borderRadius:0,fontWeight:400,fontSize:13,textTransform:"uppercase",cursor:"pointer",whiteSpace:"nowrap",textDecoration:"none"},children:"Learn More"})]}),o.jsx("div",{style:{width:"100%",aspectRatio:"21 / 9",maxHeight:460,overflow:"hidden",background:"#F4F3EE"}
2637,children:o.jsx("img",{src:l.img||JC,alt:`${l.title} artwork`,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,padding:"20px 24px"},children:[o.jsx("button",{type:"button","aria-label":"Previous",style:{background:"transparent",border:"none",color:"#141414",cursor:"pointer",padding:6},children:o.jsx(FS,{size:22,strokeWidth:1.5})}),o.jsx("button",{type:"button","aria-label":"Play",style:{width:48,height:48,borderRadius:"50%",background:"#FE894C",color:"#FFFFFF",border:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:o.jsx(sl,{size:20,strokeWidth:1.5,fill:"#FFFFFF"})}),o.jsx("button",{type:"button","aria-label":"Next",style:{background:"transparent",border:"none",color:"#141414",cursor:"pointer",padding:6},children:o.jsx(PS,{size:22,strokeWidth:1.5})}),o.jsx("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontSize:13,color:"#5C6470",minWidth:36},children:"1:24"}),o.jsx("div",{style:{position:"relative",flex:1,height:4,background:"#EAEAEA",borderRadius:2,overflow:"hidden"},children:o.jsx("div",{style:{width:"30%",height:"100%",background:"#FE894C"}})}),o.jsx("div",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontSize:13,color:"#5C6470",minWidth:36,textAlign:"right"},children:l.duration}),o.jsx("button",{type:"button","aria-label":"Volume",style:{background:"transparent",border:"none",color:"#141414",cursor:"pointer",padding:6},children:o.jsx(MS,{size:20,strokeWidth:1.5})})]})]})]})}),o.jsx("style",{children:` 2638 .lp-grid { 2639 display: grid; 2640 grid-template-columns: 280px 1fr; 2641 gap: 24px; 2642 align-items: start; 2643 } 2644 .lp-list { 2645 max-height: 560px; 2646 overflow-y: auto; 2647 padding-right: 4px; 2648 } 2649 @media (max-width: 1023px) { 2650 .lp-grid { grid-template-columns: 1fr; } 2651 .lp-list { max-height: none; } 2652 } 2653 `})]})},l9=[{num:"01",title:"Choose a Work",desc:"Browse the sidebar and select any choral work from our collection."},{num:"02",title:"Press Play",desc:"Hit play and the score automatically scrolls in sync with the audio recording."},{num:"03",title:"Follow Along",desc:"Watch the highlighted measure move across the score. Click anywhere to jump to that section."},{num:"04",title:"Order the Score",desc:"Found a piece you love? Order directly from Hinshaw Music with one click."}],c9=()=>o.jsxs("section",{style:{background:"#F4F3EE",padding:"80px 0"},children:[o.jsxs("div",{className:"nc-container",children:[o.jsxs("div",{style:{textAlign:"center",marginBottom:48},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:"How It Works"}),o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(28px, 3.6vw, 44px)",lineHeight:"115%",color:"#141414",textTransform:"uppercase",marginTop:12},children:"Your Interactive Score Experience"})]}),o.jsx("div",{className:"lhw-grid",children:l9.map(e=>o.jsxs("div",{style:{background:"#FFFFFF",padding:"40px 28px",textAlign:"center",border:"1px solid #EAEAEA"},children:[o.jsx("div",{className:"font-display",style:{fontWeight:400,fontSize:40,lineHeight:"110%",color:"#E8732A"},children:e.num}),o.jsx("div",{className:"font-display",style:{fontWeight:400,fontSize:20,lineHeight:"120%",color:"#141414",marginTop:16},children:e.title}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"160%",color:"#5C6470",marginTop:12},children:e.desc})]},e.num))})]}),o.jsx("style",{children:` 2654 .lhw-grid { 2655 display: grid; 2656 grid-template-columns: repeat(4, minmax(0, 1fr)); 2657 gap: 20px; 2658 } 2659 @media (max-width: 1023px) { 2660 .lhw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 2661 } 2662 @media (max-width: 640px) { 2663 .lhw-grid { grid-template-columns: 1fr; } 2664 } 2665 `})]}),d9=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"Audio/Video",description:"Listen to works from the National Concerts Choral Series and follow along with the score.",path:"/listen"}),o.jsx(s9,{}),o.jsx(a9,{}),o.jsx(c9,{}),o.jsx(et,{})]});function u9({data:e,related:t=[],preview:n=!1}){const r=w.useMemo(()=>{var s;return(s=e.description)!=null&&s.trim()?lo(e.description):`<p>${e.title} by ${e.composer} is scored for ${e.voicing} voices at a ${e.difficulty.toLowerCase()} difficulty level, with an approximate performance time of ${e.duration}. Follow along with the score as you listen, and explore the full National Concerts choral catalog for more works to program with your ensemble.</p>`}
2665,[e.description,e.title,e.composer,e.voicing,e.difficulty,e.duration]);return o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[!n&&o.jsx(st,{title:e.title,description:`${e.title} by ${e.composer} â ${e.voicing}, ${e.difficulty}, ${e.duration}. From the National Concerts Choral Series.`,path:`/listen/${e.slug}`,jsonLd:{"@context":"https://schema.org","@type":"MusicComposition",name:e.title,composer:{"@type":"Person",name:e.composer}}}),o.jsx(Xe,{}),o.jsx("section",{style:{background:"#F4F3EE",padding:"48px 0 24px"},children:o.jsxs("div",{className:"nc-container",children:[o.jsxs(ke,{to:"/choral-series#catalog",className:"font-body",style:{display:"inline-flex",alignItems:"center",gap:6,fontSize:13,color:"#5C6470",textTransform:"uppercase",letterSpacing:"0.5px",textDecoration:"none"},children:[o.jsx(ES,{size:14})," Back to Catalog"]}),o.jsxs("div",{style:{marginTop:24},children:[o.jsx("div",{className:"font-body",style:{fontWeight:600,fontSize:12,letterSpacing:"0.6px",textTransform:"uppercase",color:"#E8732A"},children:"National Concerts Choral Series"}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:56,lineHeight:"105%",color:"#141414",textTransform:"uppercase",marginTop:12},children:e.title}),o.jsxs("div",{className:"font-body",style:{fontSize:18,color:"#5C6470",marginTop:12},children:["by ",e.composer]}),o.jsxs("dl",{className:"ld-hero-specs",children:[o.jsxs("div",{children:[o.jsx("dt",{children:"Composer"}),o.jsx("dd",{children:e.composer})]}),o.jsxs("div",{children:[o.jsx("dt",{children:"Voicing"}),o.jsx("dd",{children:e.voicing})]}),o.jsxs("div",{children:[o.jsx("dt",{children:"Difficulty"}),o.jsx("dd",{children:e.difficulty})]}),o.jsxs("div",{children:[o.jsx("dt",{children:"Duration"}),o.jsx("dd",{children:e.duration})]})]})]})]})}),o.jsx("section",{style:{background:"#FFFFFF",padding:"56px 0 80px"},children:o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"ld-grid",children:[o.jsxs("div",{style:{border:"1px solid #EAEAEA",background:"#FFFFFF"},children:[o.jsx("div",{style:{width:"100%",aspectRatio:"16 / 9",overflow:"hidden",background:"#F4F3EE"},children:o.jsx("img",{src:e.img,alt:`${e.title} artwork`,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),o.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,padding:"20px 24px"},children:[o.jsx("button",{type:"button","aria-label":"Previous",style:{background:"transparent",border:"none",color:"#141414",cursor:"pointer",padding:6},children:o.jsx(FS,{size:22,strokeWidth:1.5})}),o.jsx("button",{type:"button","aria-label":"Play",style:{width:48,height:48,borderRadius:"50%",background:"#FE894C",color:"#FFFFFF",border:"none",display:"inline-flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:o.jsx(sl,{size:20,strokeWidth:1.5,fill:"#FFFFFF"})}),o.jsx("button",{type:"button","aria-label":"Next",style:{background:"transparent",border:"none",color:"#141414",cursor:"pointer",padding:6},children:o.jsx(PS,{size:22,strokeWidth:1.5})}),o.jsx("div",{style:{fontFamily:"Inter, sans-serif",fontSize:13,color:"#5C6470",minWidth:36},children:"0:00"}),o.jsx("div",{style:{position:"relative",flex:1,height:4,background:"#EAEAEA",borderRadius:2,overflow:"hidden"},children:o.jsx("div",{style:{width:"0%",height:"100%",background:"#FE894C"}})}),o.jsx("div",{style:{fontFamily:"Inter, sans-serif",fontSize:13,color:"#5C6470",minWidth:36,textAlign:"right"},children:e.duration}),o.jsx("button",{type:"button","aria-label":"Volume",style:{background:"transparent",border:"none",color:"#141414",cursor:"pointer",padding:6},children:o.jsx(MS,{size:20,strokeWidth:1.5})})]})]}),o.jsxs("aside",{children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:22,color:"#141414",textTransform:"uppercase"},children:"About This Work"}),o.jsx("div",{className:"ld-prose font-body",dangerouslySetInnerHTML:{__html:r}}),e.purchaseUrl?o.jsxs("a",{href:e.purchaseUrl,target:"_blank",rel:"noopener noreferrer",className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:8,marginTop:24,padding:"12px 22px",background:"#141414",color:"#FFFFFF",textDecoration:"none",fontSize:13,textTransform:"uppercase",letterSpacing:"0.5px"},children:["Purchase Score",o.jsx(Ue,{size:16,strokeWidth:2})]}):o.jsx(ke,{to:"/inquiry",className:"font-display",style:{display:"inline-flex",alignItems:"center",gap:8,marginTop:24,padding:"12px 22px",background:"#141414",color:"#FFFFFF",textDecoration:"none",fontSize:13,textTransform:"uppercase",letterSpacing:"0.5px"},children:"Inquire About This Work"})]})]})})}),t.length>0&&o.jsx("section",{style:{background:"#F4F3EE",padding:"72px 0 96px"},children:o.jsxs("div",{className:"nc-container",children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:32,color:"#141414",textTransform:"uppercase"},children:"More From The Catalog"}),o.jsx("div",{className:"ld-related",style:{marginTop:28},children:t.map(s=>o.jsxs(ke,{to:`/listen/${s.slug}`,className:"no-underline",style:{display:"block",background:"#FFFFFF",border:"1px solid #EAEAEA",color:"inherit"},children:[o.jsx("div",{style:{aspectRatio:"5 / 4",overflow:"hidden",background:"#F4F3EE"},children:o.jsx("img",{src:s.img,alt:s.title,style:{width:"100%",height:"100%",objectFit:"cover"},loading:"lazy"})}),o.jsxs("div",{style:{padding:"18px 20px 22px"},children:[o.jsxs("div",{className:"font-body",style:{fontSize:12,color:"#5C6470",textTransform:"uppercase",letterSpacing:"0.4px"},children:[s.voicing," · ",s.duration]}),o.jsx("div",{className:"font-display",style:{fontSize:20,color:"#141414",textTransform:"uppercase",marginTop:8},children:s.title}),o.jsx("div",{className:"font-body",style:{fontSize:14,color:"#5C6470",marginTop:4},children:s.composer})]})]},s.slug))})]})}),o.jsx(et,{}),o.jsx("style",{children:` 2666 .ld-grid { 2667 display: grid; 2668 grid-template-columns: 1.4fr 1fr; 2669 gap: 40px; 2670 align-items: start; 2671 }
2672 .ld-hero-specs { 2673 margin: 28px 0 0; 2674 display: flex; 2675 flex-wrap: wrap; 2676 gap: 20px 40px; 2677 border-top: 1px solid #E2E1DA; 2678 padding-top: 20px; 2679 max-width: 620px; 2680 } 2681 .ld-hero-specs dt { 2682 font-family: 'Inter', sans-serif; 2683 font-size: 11px; 2684 letter-spacing: 0.7px; 2685 text-transform: uppercase; 2686 color: #8A8F79; 2687 } 2688 .ld-hero-specs dd { 2689 font-family: 'Inter', sans-serif; 2690 font-size: 16px; 2691 color: #141414; 2692 margin: 5px 0 0; 2693 } 2694 .ld-prose { margin-top: 16px; } 2695 .ld-prose > *:first-child { margin-top: 0; } 2696 .ld-prose p, .ld-prose li { 2697 font-size: 15px; 2698 line-height: 175%; 2699 color: #3F4654; 2700 } 2701 .ld-prose p { margin: 0 0 14px; } 2702 .ld-prose p:last-child { margin-bottom: 0; } 2703 .ld-prose ul, .ld-prose ol { margin: 0 0 14px; padding-left: 20px; } 2704 .ld-prose li { margin-bottom: 6px; } 2705 .ld-prose h3, .ld-prose h4 { 2706 font-family: 'Inter', sans-serif; 2707 color: #141414; 2708 margin: 22px 0 8px; 2709 } 2710 .ld-prose h3 { font-size: 17px; } 2711 .ld-prose h4 { font-size: 15px; } 2712 .ld-prose a { color: #E8732A; } 2713 .ld-prose strong { color: #141414; } 2714 .ld-related { 2715 display: grid; 2716 grid-template-columns: repeat(3, minmax(0, 1fr)); 2717 gap: 24px; 2718 } 2719 @media (max-width: 1023px) { 2720 .ld-grid { grid-template-columns: 1fr; } 2721 .ld-related { grid-template-columns: 1fr; } 2722 } 2723 `})]})}const h9=()=>{const{slug:e=""}=Zc(),{data:t,isLoading:n}=T0(),r=t??cj,s=r.find(a=>a.slug===e);if(!s)return n?null:o.jsx(G4,{});const i=r.filter(a=>a.slug!==s.slug).slice(0,3);return o.jsx(u9,{data:s,related:i})},p9=()=>{const e=F0({speed:.12,max:40}),t=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{ref:e,"aria-hidden":"true",className:"sh-bg pointer-events-none absolute z-0",style:{to
2723p:"-10%",bottom:"-10%",right:0,left:"45%",backgroundImage:`url(${t.image("about.hero.background",_E)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center",willChange:"transform"}}),o.jsx("div",{"aria-hidden":"true",className:"sh-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.92) 50%, rgba(20,20,20,0.55) 66%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"sh-content flex flex-col items-start",style:{gap:24,maxWidth:"min(640px, 55%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:t.text("about.hero.eyebrow")}),o.jsxs("h1",{className:"font-display m-0 sh-title",style:{fontWeight:400,fontSize:"clamp(36px, 5.5vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:[t.text("about.hero.headline_line1"),o.jsx("br",{}),t.text("about.hero.headline_line2")]}),o.jsx("p",{className:"sh-desc m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:t.text("about.hero.body")})]})}),o.jsx("style",{children:` 2724 @media (max-width: 1023px) { 2725 .sh-bg { left: 0 !important; opacity: 0.5; } 2726 .sh-fade { 2727 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 2728 } 2729 .sh-content { max-width: 100% !important; width: 100%; } 2730 .sh-title { font-size: clamp(32px, 8vw, 56px) !important; word-break: break-word; } 2731 .sh-desc { max-width: 100% !important; font-size: 16px !important; } 2732 } 2733 `})]})},f9=()=>{const e=ve(),t=e.image("about.beginning.image",S0);return o.jsxs("section",{style:{background:"#FFFFFF",padding:"80px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"sb-grid",children:[o.jsx("div",{className:"sb-image",children:o.jsx("img",{src:t,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),o.jsxs("div",{className:"sb-text",children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("about.beginning.eyebrow")}),o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(28px, 3.6vw, 44px)",lineHeight:"115%",color:"#141414",textTransform:"uppercase",marginTop:16},children:e.text("about.beginning.headline")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:20},children:e.text("about.beginning.body")})]})]})}),o.jsx("style",{children:` 2734 .sb-grid { 2735 display: grid; 2736 grid-template-columns: 1fr 1fr; 2737 gap: 64px; 2738 align-items: center; 2739 } 2740 .sb-image { 2741 width: 100%; 2742 aspect-ratio: 5 / 4; 2743 overflow: hidden; 2744 background: #F4F3EE; 2745 } 2746 @media (max-width: 1023px) { 2747 .sb-grid { grid-template-columns: 1fr; gap: 32px; } 2748 } 2749 `})]})},m9=()=>{const e=ve(),t=e.image("about.idea.image",S0);return o.jsxs("section",{style:{background:"#FFFFFF",padding:"80px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"sb-grid",children:[o.jsx("div",{className:"sb-image",children:o.jsx("img",{src:t,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})}),o.jsxs("div",{className:"sb-text",children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("about.idea.eyebrow")}),o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(28px, 3.6vw, 44px)",lineHeight:"115%",color:"#141414",textTransform:"uppercase",marginTop:12},children:e.text("about.idea.headline")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:20},children:e.text("about.idea.body")})]})]})}),o.jsx("style",{children:` 2750 .sb-grid { 2751 display: grid; 2752 grid-template-columns: 1fr 1fr; 2753 gap: 64px; 2754 align-items: center; 2755 } 2756 .sb-image { 2757 width: 100%; 2758 aspect-ratio: 5 / 4; 2759 overflow: hidden; 2760 background: #F4F3EE; 2761 } 2762 @media (max-width: 1023px) { 2763 .sb-grid { grid-template-columns: 1fr; gap: 32px; } 2764 } 2765 `})]})},k1=[R6,T6,x6,v6,j6,_6],g9=()=>{const{ref:e,inView:t}=rd(),n=ve(),r=n.list("about.mission.values");return o.jsxs("section",{style:{background:"#F4F3EE",padding:"96px 0"},children:[o.jsxs("div",{className:"nc-container",children:[o.jsxs("div",{style:{textAlign:"center",maxWidth:1080,margin:"0 auto"},children:[o.jsx("div",{"aria-hidden":"true",style:{width:56,height:3,background:"#E8732A",margin:"0 auto 32px"}}),o.jsxs("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:500,fontSize:18,lineHeight:"160%",color:"#141414",marginTop:32},children:["â",n.text("about.mission.quote"),"â",o.jsx("span",{style:{display:"block",marginTop:12,fontWeight:600,fontSize:14,letterSpacing:"1px",textTransform:"uppercase"},children:n.text("about.mission.quote_attribution")})]}),o.jsx("div",{"aria-hidden":"true",style:{width:56,height:3,background:"#E8732A",margin:"20px auto 0"}})]}),o.jsx("div",{ref:e,className:`sv-grid nc-stagger${t?" is-in":""}`,style:{marginTop:64},children:r.map(({title:s,desc:i},a)=>{const l=k1[a]??k1[0];return o.jsxs("div",{className:"sv-card",style:{background:"#FFFFFF",border:"1px solid #EAEAEA",padding:"32px 28px",display:"flex",flexDirection:"column",gap:16,"--i":a},children:[o.jsx(l,{className:"sv-icon",size:28,strokeWidth:1.5,color:"#E8732A"}),o.jsx("h3",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:18,lineHeight:"130%",color:"#141414",marginTop:8},children:s}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"165%",color:"#5C6470"},children:i})]},a)})})]}),o.jsx("style",{children:`
2766 .sv-grid { 2767 display: grid; 2768 grid-template-columns: repeat(3, minmax(0, 1fr)); 2769 gap: 0; 2770 } 2771 .sv-grid > div { 2772 margin: -1px 0 0 -1px; 2773 } 2774 .sv-card { 2775 position: relative; 2776 transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease; 2777 } 2778 .sv-card:hover { 2779 transform: translateY(-4px); 2780 box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.35); 2781 border-color: #FE894C; 2782 z-index: 1; 2783 } 2784 .sv-icon { 2785 transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), stroke 220ms ease; 2786 } 2787 .sv-card:hover .sv-icon { 2788 transform: scale(1.18) rotate(-6deg); 2789 stroke: #FE894C; 2790 } 2791 @media (max-width: 1023px) { 2792 .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } 2793 } 2794 @media (max-width: 640px) { 2795 .sv-grid { grid-template-columns: 1fr; } 2796 } 2797 @media (prefers-reduced-motion: reduce) { 2798 .sv-card, .sv-icon { transition: none; } 2799 .sv-card:hover { transform: none; } 2800 .sv-card:hover .sv-icon { transform: none; } 2801 } 2802 `})]})},y9=()=>{const e=ve(),t=e.image("about.different.image",kE);return o.jsxs("section",{style:{background:"#F4F3EE",padding:"96px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{className:"sd-grid",children:[o.jsxs("div",{className:"sd-text",children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("about.different.eyebrow")}),o.jsxs("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(28px, 3.6vw, 44px)",lineHeight:"115%",color:"#141414",textTransform:"uppercase",marginTop:16},children:[e.text("about.different.headline_line1"),o.jsx("br",{}),e.text("about.different.headline_line2")]}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:32},children:e.text("about.different.body_p1")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#5C6470",marginTop:16},children:e.text("about.different.body_p2")})]}),o.jsx("div",{className:"sd-image",children:o.jsx("img",{src:t,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}})})]})}),o.jsx("style",{children:` 2803 .sd-grid { 2804 display: grid; 2805 grid-template-columns: 1fr 1fr; 2806 gap: 64px; 2807 align-items: center; 2808 } 2809 .sd-image { 2810 width: 100%; 2811 aspect-ratio: 4 / 3; 2812 overflow: hidden; 2813 background: #FFFFFF; 2814 } 2815 @media (max-width: 1023px) { 2816 .sd-grid { grid-template-columns: 1fr; gap: 32px; } 2817 } 2818 `})]})},b9=()=>{const{data:e}=OE(),t=e??NE;return o.jsxs("section",{style:{background:"#F4F3EE",padding:"96px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsx("div",{className:"se-grid",children:t.map(n=>o.jsxs(ke,{to:n.to,className:"se-card no-underline",children:[o.jsx("div",{className:"se-card__img",style:n.imgBg?{background:n.imgBg}:void 0,children:o.jsx("img",{src:n.img,alt:n.title,loading:"lazy",style:n.imgFit==="contain"?{objectFit:"contain",padding:"24px"}:void 0})}),o.jsxs("div",{className:"se-card__body",children:[o.jsx("span",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:600,fontSize:12,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:n.eyebrow}),o.jsx("h3",{className:"font-display m-0",style:{fontWeight:400,fontSize:26,lineHeight:"120%",color:"#141414",textTransform:"uppercase",marginTop:8},children:n.title}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:15,lineHeight:"160%",color:"#5C6470",marginTop:12},children:n.desc}),o.jsxs("span",{className:"font-body inline-flex items-center",style:{gap:6,color:"#141414",fontWeight:700,fontSize:12,letterSpacing:"0.5px",textTransform:"uppercase",marginTop:20,paddingBottom:4,borderBottom:"1px solid #141414",alignSelf:"flex-start"},children:[n.cta," ",o.jsx(Ue,{size:14,strokeWidth:2})]})]})]},n.title))})}),o.jsx("style",{children:` 2819 .se-grid { 2820 display: grid; 2821 grid-template-columns: repeat(3, 1fr); 2822 gap: 28px; 2823 } 2824 .se-card { 2825 display: flex; 2826 flex-direction: column; 2827 background: #FFFFFF; 2828 border: 1px solid #EAEAEA; 2829 color: inherit; 2830 overflow: hidden; 2831 transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease; 2832 } 2833 .se-card:hover { 2834 transform: translateY(-4px); 2835 box-shadow: 0 18px 40px -22px rgba(20,20,20,0.35); 2836 border-color: #E8732A; 2837 } 2838 .se-card__img { 2839 width: 100%; 2840 aspect-ratio: 4 / 3; 2841 overflow: hidden; 2842 background: #F4F3EE; 2843 } 2844 .se-card__img img { 2845 width: 100%; 2846 height: 100%; 2847 object-fit: cover; 2848 display: block; 2849 transition: transform 500ms ease; 2850 } 2851 .se-card:hover .se-card__img img { transform: scale(1.04); } 2852 .se-card__body { 2853 padding: 28px 28px 32px; 2854 display: flex; 2855 flex-direction: column; 2856 flex: 1; 2857 } 2858 @media (max-width: 1023px) { 2859 .se-grid { grid-template-columns: repeat(2, 1fr); } 2860 } 2861 @media (max-width: 640px) { 2862 .se-grid { grid-template-columns: 1fr; gap: 24px; } 2863 } 2864 `})]})},v9=()=>o.jsx("section",{style:{background:"#141414",padding:"32px 0"},children:o.jsxs("div",{className:"nc-container mts-row",style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:24,flexWrap:"wrap"},children:[o.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:6},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:13,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.6px"}
2864,children:"The People Behind The Music"}),o.jsx("h3",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(22px, 2.4vw, 30px)",lineHeight:"120%",color:"#FFFFFF",textTransform:"uppercase"},children:"Get to know the team that makes it happen"})]}),o.jsxs(ke,{to:"/team",className:"font-display nc-cta",style:{display:"inline-flex",alignItems:"center",gap:10,height:52,padding:"14px 20px 14px 24px",fontWeight:400,fontSize:16,lineHeight:"150%",textTransform:"uppercase",textDecoration:"none",background:"#FE894C",color:"#FFFFFF",border:"1px solid #FE894C",borderRadius:0,whiteSpace:"nowrap"},children:["Meet the Team",o.jsx(Ue,{size:22,strokeWidth:2})]})]})}),x9=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",style:{overflowX:"hidden"},children:[o.jsx(st,{title:"About Us",description:"The story and mission behind National Concerts.",path:"/about"}),o.jsx(p9,{}),o.jsx(vn,{children:o.jsx(f9,{})}),o.jsx(g9,{}),o.jsx(vn,{children:o.jsx(m9,{})}),o.jsx(vn,{children:o.jsx(b9,{})}),o.jsx(vn,{children:o.jsx(y9,{})}),o.jsx(vn,{children:o.jsx(v9,{})}),o.jsx(et,{})]}),w9=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"th-bg pointer-events-none absolute z-0",style:{to
2864p:0,bottom:0,right:0,left:"45%",backgroundImage:`url(${e.image("team.hero.background",CE)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"th-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.92) 50%, rgba(20,20,20,0.55) 66%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"th-content flex flex-col items-start",style:{gap:24,maxWidth:"min(640px, 55%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("team.hero.eyebrow")}),o.jsxs("h1",{className:"font-display m-0 th-title",style:{fontWeight:400,fontSize:"clamp(36px, 5.5vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:[e.text("team.hero.headline_line1"),o.jsx("br",{}),e.text("team.hero.headline_line2")]}),o.jsx("p",{className:"th-desc m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:e.text("team.hero.body")})]})}),o.jsx("style",{children:` 2865 @media (max-width: 1023px) { 2866 .th-bg { left: 0 !important; opacity: 0.5; } 2867 .th-fade { 2868 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 2869 } 2870 .th-content { max-width: 100% !important; width: 100%; } 2871 .th-title { font-size: clamp(32px, 8vw, 56px) !important; word-break: break-word; } 2872 .th-desc { max-width: 100% !important; font-size: 16px !important; } 2873 } 2874 `})]})},k9=Xr,_9=wn,S9=wn,C9=wn,E9=wn,j9=wn,T9=[{role:"Founder & Executive Director",name:"Matt Workman",bio:"Matt founded National Concerts with a vision to create meaningful performance opportunities for ensembles nationwide. His passion for music education drives every program.",img:k9},{role:"Marketing Director",name:"Holly",bio:"Holly leads all marketing efforts, from brand strategy to content creation, ensuring National Concerts reaches directors and audiences across the nation.",img:_9},{role:"Director of Operations",name:"Sarah Moore",bio:"Sarah oversees the logistical orchestration of every concert â from venue coordination to travel arrangements â ensuring seamless experiences for all participants.",img:S9},{role:"Program Coordinator",name:"Alyssa",bio:"Alyssa works directly with directors to customize concert programs and ensure every detail aligns with their artistic vision.",img:C9},{role:"Development Director",name:"Tina",bio:"Tina leads outreach and development efforts, building relationships with directors and institutions across the country.",img:E9},{role:"Marketing & Content",name:"Marketing Assistant",bio:"Supporting Holly with content creation, social media management, and digital marketing campaigns to amplify the NC brand.",img:j9}],A9=({member:e})=>o.jsxs("article",{className:"tg-card",style:{background:"#FFFFFF",border:"1px solid #EAEAEA",display:"flex",flexDirection:"column"},children:[o.jsxs("div",{style:{position:"relative",width:"100%",aspectRatio:"4 / 3",overflow:"hidden",background:"#F4F3EE"},children:[o.jsx("img",{src:e.img||wn,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),o.jsx("div",{className:"font-display",style:{position:"absolute",top:0,left:0,background:"#E8732A",color:"#FFFFFF",padding:"8px 16px 8px 14px",fontSize:11,fontWeight:700,letterSpacing:"1.4px",textTransform:"uppercase",clipPath:"polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%)",paddingRight:22,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:"National Concerts"})]}),o.jsxs("div",{style:{padding:"24px 24px 28px",display:"flex",flexDirection:"column",gap:10},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:13,lineHeight:"140%",color:"#E8732A",textTransform:"none"},children:e.role}),o.jsx("h3",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:20,lineHeight:"130%",color:"#141414"},children:e.name}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"165%",color:"#5C6470",marginTop:4},children:e.bio})]})]}),N9=()=>{const{data:e}=OL(),t=e??T9;return o.jsxs("section",{style:{background:"#FFFFFF",padding:"80px 0 96px"},children:[o.jsx("div",{className:"nc-container",children:o.jsx("div",{className:"tg-grid",children:t.map(n=>o.jsx(A9,{member:n},n.name))})}),o.jsx("style",{children:` 2875 .tg-grid { 2876 display: grid; 2877 grid-template-columns: repeat(3, 1fr); 2878 gap: 32px; 2879 } 2880 @media (max-width: 1023px) { 2881 .tg-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } 2882 } 2883 @media (max-width: 640px) { 2884 .tg-grid { grid-template-columns: 1fr; } 2885 } 2886 `})]})},F9=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"Our Team",description:"Meet the team behind National Concerts.",path:"/team"}),o.jsx(w9,{}),o.jsx(N9,{}),o.jsx(et,{})]}),P9=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"bh-bg pointer-events-none absolute z-0",style:{to
2886p:0,bottom:0,right:0,left:"45%",backgroundImage:`url(${e.image("board.hero.background",CC)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"bh-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.92) 50%, rgba(20,20,20,0.55) 66%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"bh-content flex flex-col items-start",style:{gap:24,maxWidth:"min(640px, 55%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("board.hero.eyebrow")}),o.jsxs("h1",{className:"font-display m-0 bh-title",style:{fontWeight:400,fontSize:"clamp(36px, 5.5vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:[e.text("board.hero.headline_line1"),o.jsx("br",{}),e.text("board.hero.headline_line2")]}),o.jsx("p",{className:"bh-desc m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:e.text("board.hero.body")})]})}),o.jsx("style",{children:` 2887 @media (max-width: 1023px) { 2888 .bh-bg { left: 0 !important; opacity: 0.5; } 2889 .bh-fade { 2890 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 2891 } 2892 .bh-content { max-width: 100% !important; width: 100%; } 2893 .bh-title { font-size: clamp(32px, 8vw, 56px) !important; word-break: break-word; } 2894 .bh-desc { max-width: 100% !important; font-size: 16px !important; } 2895 } 2896 `})]})},R9=()=>{const e=ve();return o.jsxs("section",{style:{background:"#F4F3EE",padding:"64px 0"},children:[o.jsx("div",{className:"nc-container",children:o.jsxs("div",{style:{position:"relative",background:"#FFFFFF",border:"1px solid #EAEAEA",borderLeft:"4px solid #E8732A",padding:"40px 44px",maxWidth:960},children:[o.jsx("h3",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:26,lineHeight:"125%",color:"#141414",marginBottom:14,letterSpacing:"-0.2px"},children:e.text("board.role.heading")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"170%",color:"#3A3A3A"},children:e.text("board.role.body")})]})}),o.jsx("style",{children:` 2897 @media (max-width: 640px) { 2898 section > .nc-container > div { padding: 32px 24px !important; } 2899 } 2900 `})]})},O9=Xr,M9=wn,I9=Xr,L9=wn,D9=[{affiliation:"University of Michigan School of Music",name:"Dr. Robert Chen",bio:"Distinguished choral conductor and educator with over 30 years of experience leading university and professional ensembles. His work has shaped generations of musicians across the country.",img:O9},{affiliation:"Juilliard School of Music",name:"Dr. Maria Santos",bio:"Acclaimed orchestral conductor and advocate for contemporary music, passionate about commissioning new works for student ensembles and championing emerging composers.",img:M9},{affiliation:"Eastman School of Music",name:"Prof. James Wright",bio:"Wind ensemble specialist and nationally recognized music educator, bringing decades of performance and pedagogy experience to every program he touches.",img:I9},{affiliation:"New England Conservatory",name:"Dr. Emily Tanaka",bio:"Composer and music theorist specializing in cross-cultural collaboration and innovative concert programming for diverse ensembles around the world.",img:L9}],z9=({member:e})=>o.jsxs("article",{className:"bm-card",style:{background:"#FFFFFF",border:"1px solid #EAEAEA",display:"flex",flexDirection:"column"},children:[o.jsxs("div",{style:{position:"relative",width:"100%",aspectRatio:"4 / 3",overflow:"hidden",background:"#F4F3EE"},children:[o.jsx("img",{src:e.img||wn,alt:"",loading:"lazy",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}),o.jsx("div",{className:"font-display",style:{position:"absolute",top:0,left:0,background:"#E8732A",color:"#FFFFFF",padding:"8px 22px 8px 14px",fontSize:11,fontWeight:700,letterSpacing:"1.4px",textTransform:"uppercase",clipPath:"pol
2900ygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%)",boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:"Advisory Council"})]}),o.jsxs("div",{style:{padding:"24px 24px 28px",display:"flex",flexDirection:"column",gap:10},children:[o.jsx("span",{className:"font-body",style:{fontWeight:600,fontSize:13,lineHeight:"140%",color:"#E8732A"},children:e.affiliation}),o.jsx("h3",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:20,lineHeight:"130%",color:"#141414"},children:e.name}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:14,lineHeight:"165%",color:"#5C6470",marginTop:4},children:e.bio})]})]}),B9=()=>{const e=IL(),t=Mi(e,D9);return t.length?o.jsxs("section",{style:{background:"#FFFFFF",padding:"80px 0 96px"},children:[o.jsxs("div",{className:"nc-container",children:[o.jsx("span",{className:"font-body",style:{display:"inline-block",fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"1px",marginBottom:32},children:"Council Members"}),o.jsx("div",{className:"bm-grid",children:t.map(n=>o.jsx(z9,{member:n},n.name))})]}),o.jsx("style",{children:` 2901 .bm-grid { 2902 display: grid; 2903 grid-template-columns: repeat(3, 1fr); 2904 gap: 32px; 2905 } 2906 @media (max-width: 1023px) { 2907 .bm-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } 2908 } 2909 @media (max-width: 640px) { 2910 .bm-grid { grid-template-columns: 1fr; } 2911 } 2912 `})]}):null},W9=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"Advisory Council",description:"The National Concerts Advisory Council â leaders guiding the organization's artistic vision.",path:"/advisory-board"}),o.jsx(P9,{}),o.jsx(R9,{}),o.jsx(B9,{}),o.jsx(et,{})]}),H9=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"hero-img pointer-events-none absolute z-0",style:{to
2912p:0,bottom:0,right:0,left:"50%",backgroundImage:`url(${e.image("pastcollab.hero.background",wa)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"hero-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 45%, rgba(20,20,20,0.92) 55%, rgba(20,20,20,0.55) 70%, rgba(20,20,20,0) 88%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"flex flex-col items-start",style:{gap:24,maxWidth:"min(640px, 48%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("pastcollab.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(40px, 6vw, 88px)",lineHeight:"105%",color:"#FFFFFF",textTransform:"uppercase"},children:e.text("pastcollab.hero.headline")}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:e.text("pastcollab.hero.body")})]})}),o.jsx("div",{style:{width:"100%",height:1,background:"#2A2A2A"}}),o.jsx("style",{children:` 2913 @media (max-width: 1023px) { 2914 .hero-img { left: 0 !important; opacity: 0.55; } 2915 .hero-fade { 2916 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 2917 } 2918 .nc-container > div { max-width: 100% !important; } 2919 } 2920 `})]})},$9=[{role:"Guest Conductor",name:"Maestro Henry Caldwell",img:Xr,performances:[{title:"Spring Masterworks Festival",href:"/box-office/spring-masterworks-festival"},{title:"Autumn Symphony Series",href:"/box-office/autumn-symphony-series"}]},{role:"Composer",name:"Dr. Amara Osei",img:wn,performances:[{title:"Winter Holiday Gala",href:"/box-office/winter-holiday-gala"},{title:"Spring Masterworks Festival",href:"/box-office/spring-masterworks-festival"}]},{role:"Guest Clinician",name:"Robert Kim",img:Xr,performances:[{title:"Summer Choral Intensive",href:"/box-office/summer-choral-intensive"}]},{role:"Guest Conductor",name:"Sofia Marchetti",img:wn,performances:[{title:"Autumn Symphony Series",href:"/box-office/autumn-symphony-series"},{title:"Winter Holiday Gala",href:"/box-office/winter-holiday-gala"}]},{role:"Composer",name:"Marcus Rivera",img:Xr,performances:[{title:"Spring Masterworks Festival",href:"/box-office/spring-masterworks-festival"}]},{role:"Guest Clinician",name:"Lisa Thompson",img:wn,performances:[{title:"Summer Choral Intensive",href:"/box-office/summer-choral-intensive"},{title:"Winter Holiday Gala",href:"/box-office/winter-holiday-gala"}]}],dj=` 2921 .pc-card { 2922 display: flex; 2923 flex-direction: column; 2924 background: #FFFFFF; 2925 border: 1px solid #EAEAEA; 2926 transition: border-color 200ms ease, box-shadow 200ms ease; 2927 } 2928 .pc-card:hover { border-color: #FE894C; box-shadow: 0 16px 32px -20px rgba(0,0,0,0.15); } 2929 /* Standard headshot dimensions â matches Our Team & Advisory Council (4:3). */ 2930 .pc-card__photo { 2931 width: 100%; 2932 aspect-ratio: 4 / 3; 2933 overflow: hidden; 2934 background: #F4F3EE; 2935 } 2936 .pc-card__photo img { 2937 width: 100%; 2938 height: 100%; 2939 object-fit: cover; 2940 object-position: center top; 2941 display: block; 2942 } 2943 .pc-card__body { 2944 flex: 1; 2945 padding: 24px 24px 28px; 2946 display: flex; 2947 flex-direction: column; 2948 gap: 10px; 2949 } 2950 .pc-card__role { 2951 font-weight: 600; 2952 font-size: 13px; 2953 line-height: 140%; 2954 letter-spacing: 0.08em; 2955 text-transform: uppercase; 2956 color: #E8732A; 2957 } 2958 .pc-card__name { 2959 font-family: 'Inter', 'Montserrat', sans-serif; 2960 font-weight: 700; 2961 font-size: 20px; 2962 line-height: 130%; 2963 color: #141414; 2964 } 2965 .pc-card__perfs { 2966 margin-top: 8px; 2967 display: flex; 2968 flex-direction: column; 2969 gap: 10px; 2970 } 2971 .pc-card__perfs-label { 2972 font-weight: 600; 2973 font-size: 11px; 2974 line-height: 140%; 2975 letter-spacing: 0.08em; 2976 text-transform: uppercase; 2977 color: #8A8F79; 2978 } 2979 .pc-perfs { 2980 display: flex; 2981 flex-direction: column; 2982 gap: 8px; 2983 } 2984 .pc-perf-link { 2985 display: inline-flex; 2986 align-items: center; 2987 gap: 6px; 2988 font-weight: 500; 2989 font-size: 14px; 2990 line-height: 140%; 2991 color: #141414; 2992 text-decoration: none; 2993 transition: color 160ms ease; 2994 } 2995 .pc-perf-link svg { color: #E8732A; flex-shrink: 0; } 2996 .pc-perf-link:hover { color: #E8732A; } 2997 .pc-perf-link:hover span { text-decoration: underline; } 2998`,U9=({c:e,withStyles:t=!1})=>o.jsxs("article",{className:"pc-card",children:[t&&o.jsx("style",{children:dj}),o.jsx("div",{className:"pc-card__photo",children:o.jsx("img",{src:e.img,alt:e.name,loading:"lazy"})}),o.jsxs("div",{className:"pc-card__body",children:[o.jsx("span",{className:"pc-card__role font-body",children:e.role}),o.jsx("h3",{className:"pc-card__name m-0",children:e.name}),e.performances.length>0&&o.jsxs("div",{className:"pc-card__perfs",children:[o.jsx("span",{className:"pc-card__perfs-label font-body",children:"Past Performances"}),o.jsx("ul",{className:"pc-perfs m-0 list-none p-0",children:e.performances.map(n=>o.jsx("li",{children:o.jsxs(ke,{to:n.href,className:"pc-perf-link font-body",children:[o.jsx("span",{children:n.title}),o.jsx(Ue,{size:15,strokeWidth:2})]})},n.title))})]})]})]}),q9=()=>{const e=r8(),t=Mi(e,$9);return t.length?o.jsxs("section",{className:"pc-section bg-nc-white",style:{padding:"80px 0 96px"},children:[o.jsxs("div",{className:"nc-container flex w-full flex-col",style:{gap:48},children:[o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(32px, 4vw, 48px)",lineHeight:"110%",textTransform:"uppercase",color:"#141414"},children:"Past Collaborators"}),o.jsx("div",{className:"pc-grid",children:t.map(n=>o.jsx(U9,{c:n},n.name))})]}),o.jsx("style",{children:dj+` 2999 .pc-grid { 3000 display: grid; 3001 grid-template-columns: repeat(3, 1fr); 3002 gap: 32px; 3003 } 3004 3005 @media (max-width: 1023px) { 3006 .pc-section { padding: 64px 0 !important; } 3007 .pc-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } 3008 } 3009 @media (max-width: 640px) { 3010 .pc-section { padding: 48px 0 !important; } 3011 .pc-section > div { gap: 32px !important; } 3012 .pc-grid { grid-template-columns: 1fr; } 3013 .pc-card__body { padding: 20px !important; } 3014 } 3015 `})]}):null},V9=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"Past Collaborators",path:"/past-collaborators",noindex:!0}),o.jsx(H9,{}),o.jsx(q9,{}),o.jsx(et,{})]}),G9=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"#141414"},children:[o.jsx(Xe,{variant:"solid"}),o.jsx("div",{"aria-hidden":"true",className:"tsh-bg pointer-events-none absolute z-0",style:{to
3015p:0,bottom:0,right:0,left:"45%",backgroundImage:`url(${e.image("testimonials.hero.background",EE)})`,backgroundRepeat:"no-repeat",backgroundSize:"cover",backgroundPosition:"center center"}}),o.jsx("div",{"aria-hidden":"true",className:"tsh-fade pointer-events-none absolute inset-0 z-[1]",style:{background:"linear-gradient(90deg, #141414 0%, #141414 38%, rgba(20,20,20,0.92) 50%, rgba(20,20,20,0.55) 66%, rgba(20,20,20,0.10) 86%, rgba(20,20,20,0) 100%)"}}),o.jsx("div",{className:"nc-container relative z-[2] flex items-center",style:{paddingTop:80,paddingBottom:100,minHeight:512},children:o.jsxs("div",{className:"tsh-content flex flex-col items-start",style:{gap:24,maxWidth:"min(640px, 55%)"},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("testimonials.hero.eyebrow")}),o.jsxs("h1",{className:"font-display m-0 tsh-title",style:{fontWeight:400,fontSize:"clamp(36px, 5.5vw, 64px)",lineHeight:"110%",color:"#FFFFFF",textTransform:"uppercase"},children:[e.text("testimonials.hero.headline_line1"),o.jsx("br",{}),e.text("testimonials.hero.headline_line2")]}),o.jsx("p",{className:"tsh-desc m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#C8CED9",maxWidth:560},children:e.text("testimonials.hero.body")})]})}),o.jsx("style",{children:` 3016 @media (max-width: 1023px) { 3017 .tsh-bg { left: 0 !important; opacity: 0.5; } 3018 .tsh-fade { 3019 background: linear-gradient(180deg, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.92) 100%) !important; 3020 } 3021 .tsh-content { max-width: 100% !important; width: 100%; } 3022 .tsh-title { font-size: clamp(32px, 8vw, 56px) !important; word-break: break-word; } 3023 .tsh-desc { max-width: 100% !important; font-size: 16px !important; } 3024 } 3025 `})]})},K9=[{category:"Ensemble Directors",quote:"The National Concerts experience transformed our program. Our students came back with a new level of confidence and artistry that carried through the entire season.",name:"Dr. Jennifer Walsh",affiliation:"Ohio State University Choir"},{category:"Ensemble Directors",quote:"Performing at Carnegie Hall was a dream come true for our students. The NC team handled every detail, letting us focus entirely on the music.",name:"Mark Thompson",affiliation:"Lincoln High School Band"},{category:"Guest Collaborators",quote:"Our community chorus had never traveled for a performance before. National Concerts made the entire process seamless and unforgettable.",name:"Susan Davis",affiliation:"Harmony Community Chorus"},{category:"Guest Collaborators",quote:"Hearing my commissioned piece premiered by such talented young musicians was one of the most rewarding moments of my career. NC creates magic.",name:"David Park",affiliation:"Contemporary Composer"},{category:"Ensemble Directors",quote:"We've participated three years running. Each season builds on the last, and our ensemble has grown exponentially as a result.",name:"Prof. Angela Rivera",affiliation:"University of Texas Wind Ensemble"},{category:"Guest Collaborators",quote:"For a small-town high school, this was a once-in-a-lifetime opportunity. Our kids performed alongside incredible ensembles and came home changed.",name:"Lisa Chen",affiliation:"Maplewood High School Orchestra"}],J9=["All","Ensemble Directors","Guest Collaborators","Performers"],Y9=()=>{const[e,t]=w.useState("All"),{data:n}=PE(),r=n!=null&&n.length?n.map(i=>({category:i.category||"",quote:i.quote,name:i.name,affiliation:i.role})):K9,s=e==="All"?r:r.filter(i=>i.category===e);return o.jsxs("section",{style:{background:"#FFFFFF",padding:"64px 0 96px"},children:[o.jsxs("div",{className:"nc-container",children:[o.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:12,marginBottom:40},children:J9.map(i=>{const a=i===e;return o.jsx("button",{type:"button",onClick:()=>t(i),className:"font-display uppercase",style:{padding:"12px 28px",borderRadius:0,border:`1px solid ${a?"#FE894C":"#000000"}`,background:a?"#FE894C":"#FFFFFF",color:a?"#FFFFFF":"#000000",fontWeight:400,fontSize:14,letterSpacing:"0.5px",cursor:"pointer",transition:"all 200ms ease"},children:i},i)})}),s.length===0?o.jsx("p",{className:"font-body",style:{fontSize:15,lineHeight:"165%",color:"#5C6470",padding:"8px 0 24px"},children:"Testimonials for this group are coming soon."}):o.jsx("div",{className:"tg2-grid",children:s.map((i,a)=>o.jsxs("article",{style:{background:"#FFFFFF",border:"1px solid #E2E2E0",padding:"28px 28px 32px",display:"flex",flexDirection:"column",gap:24},children:[i.category&&o.jsx("span",{className:"font-body",style:{alignSelf:"flex-start",padding:"6px 14px",background:"#FBE3D2",color:"#E8732A",fontWeight:700,fontSize:11,lineHeight:1,letterSpacing:"0.5px",textTransform:"uppercase"},children:i.category}),o.jsxs("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:15,lineHeight:"165%",color:"#3F4751",flex:1},children:["â",i.quote,"â"]}),o.jsxs("div",{style:{display:"flex",flexDirection:"column",minWidth:0},children:[o.jsx("span",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:15,lineHeight:"130%",color:"#141414"},children:i.name}),o.jsx("span",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:13,lineHeight:"140%",color:"#5C6470",marginTop:2},children:i.affiliation})]})]},`${i.name}-${a}`))})]}),o.jsx("style",{children:` 3026 .tg2-grid { 3027 display: grid; 3028 grid-template-columns: repeat(3, 1fr); 3029 gap: 24px; 3030 } 3031 @media (max-width: 1023px) { 3032 .tg2-grid { grid-template-columns: repeat(2, 1fr); } 3033 } 3034 @media (max-width: 640px) { 3035 .tg2-grid { grid-template-columns: 1fr; } 3036 } 3037 `})]})},Q9=()=>o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"Testimonials",description:"What directors and collaborators say about performing with National Concerts.",path:"/testimonials"}),o.jsx(G9,{}),o.jsx(Y9,{}),o.jsx(et,{})]}),Z9=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"hsl(var(--nc-cream))"},children:[o.jsx(Xe,{variant:"light"}),o.jsx("div",{className:"nc-container relative flex flex-col items-center text-center",style:{paddingTop:48,paddingBottom:48,gap:16},children:o.jsx("h1",{className:"font-display m-0 fh-title",style:{fontWeight:400,fontSize:"clamp(36px, 6vw, 72px)",lineHeight:"110%",color:"#0A0A0A",textTransform:"uppercase",maxWidth:900,wordBreak:"break-word"},children:e.text("faqs.hero.headline")})}),o.jsx("style",{children:` 3038 @media (max-width: 1023px) { 3039 .fh-title { font-size: clamp(32px, 8vw, 56px) !important; } 3040 } 3041 `})]})}
3041,X9=[{q:"Can National Concerts help our ensemble raise funds?",a:"Yes. Through our partnership with GoPledge, 100% of every donation goes directly to your program. We also offer Title I Scholarship opportunities for qualifying ensembles, helping make extraordinary performance experiences more accessible."},{q:"How do we get started?",a:"Complete our inquiry form, and a Concert Development Specialist will contact you to learn about your ensemble, answer your questions, and recommend the performance opportunities that best fit your goals."},{q:"What's included in a National Concerts experience?",a:"Every program is thoughtfully designed around your ensemble and may include performance opportunities, rehearsals, guest conductors and clinicians, artistic collaboration, production support, and personalized planning services. Travel, accommodations, and other inclusions vary by program and destination."},{q:"Who can participate in National Concerts programs?",a:"Our programs welcome school, collegiate, community, church, and professional ensembles. Many experiences include an audition or application process to help us match each ensemble with the performance opportunity that best aligns with its goals, experience, and artistic aspirations."},{q:"When should we begin planning?",a:"Most ensembles begin planning 6 to 12 months before their performance, giving ample time for auditions, fundraising, travel planning, and artistic preparation. Our team will guide you through every step of the process."},{q:"Will National Concerts coordinate our travel?",a:"Yes. From airfare, ground transfers, and hotels to meals, sightseeing, and detailed itineraries, our team can coordinate every aspect of your trip so directors can focus on making music."},{q:"Can our ensemble premiere or commission a new work?",a:"Absolutely. National Concerts regularly collaborates with today's leading and emerging composers to commission and premiere new music. Our team can help you explore performance opportunities that align with your artistic goals."},{q:"Which National Concerts experience is right for my ensemble?",a:"Every ensemble is different. Your Concert Development Specialist will help you compare programs, venues, repertoire, travel options, and budget to find the experience that best fits your ensemble's goals."}],e7=X9.map(e=>({...e,category:"faq"})),t7=({q:e,a:t,isOpen:n,onToggle:r,logoUrl:s,linkLabel:i,linkUrl:a})=>o.jsxs("li",{style:{borderBottom:"1px solid #E5E7EB"},children:[o.jsxs("button",{onClick:r,className:"flex w-full items-center justify-between text-left",style:{padding:"24px 0",gap:24},"aria-expanded":n,children:[o.jsx("span",{style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:"clamp(16px, 1.4vw, 20px)",lineHeight:"140%",color:n?"#E8732A":"#0A0A0A"},children:e}),o.jsx(On,{size:22,strokeWidth:2,style:{color:n?"#E8732A":"#0A0A0A",flexShrink:0,transition:"transform 0.25s",transform:n?"rotate(180deg)":"rotate(0deg)"}})]}),o.jsx("div",{className:`grid transition-all duration-300 ease-in-out motion-reduce:transition-none ${n?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"}`,children:o.jsxs("div",{className:"overflow-hidden",style:{paddingBottom:24,paddingRight:48},children:[s&&o.jsx("img",{src:s,alt:"",loading:"lazy",style:{width:240,maxWidth:"100%",height:"auto",display:"block",marginBottom:16}}),o.jsx("div",{className:"nc-faq-answer",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:16,lineHeight:"165%",color:"#3A4252"},dangerouslySetInnerHTML:{__html:lo(t)}}),a&&o.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"font-body faq-answer__cta",
3041style:{marginTop:16},children:[i||"Learn more",o.jsx(Ue,{size:16,strokeWidth:2})]})]})})]}),_1=({id:e,category:t="faq",heading:n,intro:r,background:s="#FFFFFF",defaultOpen:i=null})=>{const[a,l]=w.useState(i),{data:c}=RE(),d=(c??e7).filter(u=>u.category===t);return d.length?o.jsxs("section",{id:e,className:"w-full",style:{background:s,scrollMarginTop:72},children:[o.jsx("div",{className:"nc-container",style:{paddingTop:64,paddingBottom:88},children:o.jsxs("div",{style:{maxWidth:1100,marginLeft:"auto",marginRight:"auto"},children:[n&&o.jsxs("div",{className:"faq-head",children:[o.jsx("h2",{className:"font-display faq-head__title m-0 uppercase text-nc-black",children:n}),r&&o.jsx("p",{className:"font-body m-0 text-nc-black faq-head__desc",style:{fontSize:16,lineHeight:"150%"},children:r})]}),o.jsx("ul",{className:"m-0 list-none p-0",children:d.map((u,h)=>o.jsx(t7,{q:u.q,a:u.a,logoUrl:u.logoUrl,linkLabel:u.linkLabel,linkUrl:u.linkUrl,isOpen:a===h,onToggle:()=>l(a===h?null:h)},`${u.q}-${h}`))})]})}),o.jsx("style",{children:` 3042 .faq-answer__cta { 3043 display: inline-flex; 3044 align-items: center; 3045 gap: 6px; 3046 font-weight: 600; 3047 font-size: 13px; 3048 letter-spacing: 0.02em; 3049 text-transform: uppercase; 3050 color: #e8732a; 3051 text-decoration: none; 3052 border-bottom: 1px solid currentColor; 3053 padding-bottom: 2px; 3054 transition: opacity 160ms ease; 3055 } 3056 .faq-answer__cta:hover { 3057 opacity: 0.75; 3058 } 3059 .faq-head { 3060 display: grid; 3061 grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 3062 gap: 32px; 3063 align-items: end; 3064 margin-bottom: 40px; 3065 } 3066 .faq-head__title { 3067 font-weight: 400; 3068 font-size: clamp(30px, 4vw, 48px); 3069 line-height: 110%; 3070 letter-spacing: -1px; 3071 } 3072 @media (max-width: 900px) { 3073 .faq-head { 3074 grid-template-columns: minmax(0, 1fr); 3075 gap: 16px; 3076 align-items: start; 3077 margin-bottom: 28px; 3078 } 3079 } 3080 `})]}):null},n7=[{id:"faqs",label:"FAQs"},{id:"resources",label:"Resources"}],r7=()=>{const e=ve(),{data:t}=RE(),n=(t??[]).some(r=>r.category==="resource");return o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsx(st,{title:"FAQ's & Resources",description:"Frequently asked questions and fundraising resources for ensembles performing with National Concerts.",path:"/faqs"}),o.jsx(Z9,{}),n&&o.jsx(K4,{links:n7}),o.jsx(_1,{id:"faqs",category:"faq",heading:e.text("faqs.questions.heading"),intro:e.text("faqs.questions.intro"),defaultOpen:0}),o.jsx(_1,{id:"resources",category:"resource",heading:e.text("faqs.resources.heading"),intro:e.text("faqs.resources.intro"),background:"#F4F3EE"}),o.jsx(vp,{title:e.text("faqs.cta.title"),body:e.text("faqs.cta.body"),ctaLabel:e.text("faqs.cta.cta_label"),ctaTo:"/inquiry?intent=faqs"}),o.jsx(et,{})]})},s7=()=>{const e=ve();return o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"hsl(var(--nc-cream))"},children:[o.jsx(Xe,{variant:"light"}),o.jsxs("div",{className:"nc-container relative flex flex-col items-center text-center",style:{paddingTop:80,paddingBottom:100,gap:24},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("contact.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0 ch-title",style:{fontWeight:400,fontSize:"clamp(36px, 6vw, 72px)",lineHeight:"110%",color:"#0A0A0A",textTransform:"uppercase",maxWidth:1100,wordBreak:"break-word"},children:e.text("contact.hero.headline")}),o.jsx("p",{className:"m-0 ch-desc",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:18,lineHeight:"155%",color:"#3A4252",maxWidth:760},children:e.text("contact.hero.body")})]}),o.jsx("style",{children:` 3081 @media (max-width: 1023px) { 3082 .ch-title { font-size: clamp(32px, 8vw, 56px) !important; } 3083 .ch-desc { font-size: 16px !important; } 3084 } 3085 `})]})},i7="917-580-3020",o7="#FFFFFF",uj="#E5E1D6",Gf={fontFamily:"Inter, Montserrat, sans-serif",fontWeight:600,fontSize:12,lineHeight:"140%",color:"#0A0A0A",marginBottom:8,display:"block",textTransform:"uppercase",letterSpacing:"0.6px"},Kf={width:"100%",background:o7,border:`1px solid ${uj}`,borderRadius:4,padding:"14px 16px",fontFamily:"Inter, Montserrat, sans-serif",fontSize:15,color:"#0A0A0A",outline:"none"},a7=()=>{const[e,t]=w.useState(""),[n,r]=w.useState(""),[s,i]=w.useState(""),[a,l]=w.useState(!1),[c,d]=w.useState(!1),[u,h]=w.useState(null),f=ve(),{data:p}=ll(),v=(p==null?void 0:p.contact_phone)||i7,y=`tel:+1${v.replace(/\D/g,"").replace(/^1/,"")}`,x=async g=>{g.preventDefault(),h(null),l(!0);try{const m=pr,{error:b}=await m.from("inquiry_submissions").insert({intent:"contact",source:"contact-form",full_name:e,email:n,requests:s});if(b)throw b;d(!0)}catch(m){h(m.message||"Something went wrong. Please try again or give us a call.")}finally{l(!1)}};return o.jsxs("section",{className:"w-full",style:{background:"#FFFFFF"},children:[o.jsx("div",{className:"nc-container",style:{paddingTop:80,paddingBottom:120},children:o.jsxs("div",{className:"cs-grid",children:[o.jsxs("div",{style:{border:`1px solid ${uj}`,borderTop:"4px solid #E8732A",padding:"44px",background:"#FFFFFF",boxShadow:"0 20px 50px -30px rgba(10,10,10,0.18)"},className:"cs-card",children:[o.jsx("span",{className:"font-body",style:{display:"inline-block",fontWeight:700,fontSize:11,letterSpacing:"1.4px",textTransform:"uppercase",color:"#E8732A",marginBottom:10},children:f.text("contact.form.eyebrow")}),o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:36,lineHeight:"115%",color:"#0A0A0A",textTransform:"uppercase",letterSpacing:"-0.4px",marginBottom:28},children:f.text("contact.form.heading")}),o.jsxs("form",{onSubmit:x,style:{display:"flex",flexDirection:"column",gap:20},children:[o.jsxs("div",{className:"cs-row",children:[o.jsxs("div",{style:{flex:1},children:[o.jsx("label",{style:Gf,htmlFor:"cs-name",children:f.text("contact.form.label_name")}
3085),o.jsx("input",{id:"cs-name",type:"text",placeholder:f.text("contact.form.placeholder_name"),style:Kf,maxLength:100,required:!0,value:e,onChange:g=>t(g.target.value)})]}),o.jsxs("div",{style:{flex:1},children:[o.jsx("label",{style:Gf,htmlFor:"cs-email",children:f.text("contact.form.label_email")}),o.jsx("input",{id:"cs-email",type:"email",placeholder:f.text("contact.form.placeholder_email"),style:Kf,maxLength:255,required:!0,value:n,onChange:g=>r(g.target.value)})]})]}),o.jsxs("div",{children:[o.jsx("label",{style:Gf,htmlFor:"cs-message",children:f.text("contact.form.label_message")}),o.jsx("textarea",{id:"cs-message",placeholder:f.text("contact.form.placeholder_message"),style:{...Kf,minHeight:170,resize:"vertical"},maxLength:1e3,required:!0,value:s,onChange:g=>i(g.target.value)})]}),c&&o.jsx("div",{role:"status",style:{background:"#EEF7F0",border:"1px solid #2E7D32",color:"#1B5E20",padding:"12px 16px",borderRadius:4,fontSize:14},children:f.text("contact.form.success_message")}),u&&o.jsx("div",{role:"alert",style:{background:"#FDECEC",border:"1px solid #C62828",color:"#8A1F1F",padding:"12px 16px",borderRadius:4,fontSize:14},children:u}),o.jsxs("button",{type:"submit",disabled:a||c,className:"inline-flex items-center justify-between",style:{background:"#E8732A",color:"#FFFFFF",padding:"16px 26px",borderRadius:4,fontFamily:"Inter, Montserrat, sans-serif",fontWeight:700,fontSize:13,letterSpacing:"1px",textTransform:"uppercase",gap:36,alignSelf:"flex-start",marginTop:4,cursor:a||c?"default":"pointer",opacity:a||c?.6:1},children:[a?"Sendingâ¦":f.text("contact.form.submit"),o.jsx(Ue,{size:18,strokeWidth:2})]})]})]}),o.jsx("div",{className:"cs-info",style:{display:"flex",flexDirection:"column",gap:24},children:o.jsxs("div",{style:{background:"#141414",padding:"44px 36px",position:"relative",overflow:"hidden"},children:[o.jsx("div",{"aria-hidden":!0,style:{position:"absolute",top:0,right:0,width:160,height:160,background:"radial-gradient(circle at top right, rgba(232,115,42,0.28), transparent 70%)"}}),o.jsx("span",{className:"font-body",style:{display:"inline-block",fontWeight:700,fontSize:11,letterSpacing:"1.4px",textTransform:"uppercase",color:"#FE894C",marginBottom:10,position:"relative"},children:f.text("contact.info.eyebrow")}),o.jsx("h2",{className:"font-display m-0",style:{fontWeight:400,fontSize:30,lineHeight:"115%",color:"#FFFFFF",textTransform:"uppercase",marginBottom:14,position:"relative"},children:f.text("contact.info.heading")}),o.jsx("p",{className:"m-0",style:{fontFamily:"Inter, Montserrat, sans-serif",fontWeight:400,fontSize:15,lineHeight:"160%",color:"#C8CED9",marginBottom:28,position:"relative"},children:f.text("contact.info.body")}),o.jsxs("a",{href:y,className:"cs-call","aria-label":`Call us at ${v}`,children:[o.jsx("span",{className:"cs-call__ic","aria-hidden":"true",children:o.jsx(C6,{size:20,strokeWidth:1.8})}),o.jsxs("span",{className:"cs-call__text",children:[o.jsx("span",{className:"cs-call__label",children:f.text("contact.info.call_label")}),o.jsx("span",{className:"cs-call__num",children:v})]})]})]})})]})}),o.jsx("style",{children:` 3086 .cs-grid { 3087 display: grid; 3088 grid-template-columns: 1.35fr 1fr; 3089 gap: 40px; 3090 align-items: start; 3091 } 3092 .cs-row { 3093 display: flex; 3094 gap: 20px; 3095 } 3096 .cs-call { 3097 display: flex; 3098 align-items: center; 3099 gap: 16px; 3100 text-decoration: none; 3101 position: relative; 3102 width: fit-content; 3103 } 3104 .cs-call__ic { 3105 width: 44px; 3106 height: 44px; 3107 border-radius: 4px; 3108 background: rgba(232, 115, 42, 0.15); 3109 color: #FE894C; 3110 display: grid; 3111 place-items: center; 3112 flex-shrink: 0; 3113 transition: background 160ms ease; 3114 } 3115 .cs-call:hover .cs-call__ic { background: rgba(232, 115, 42, 0.28); } 3116 .cs-call__text { display: flex; flex-direction: column; } 3117 .cs-call__label { 3118 font-family: 'Inter', 'Montserrat', sans-serif; 3119 font-weight: 600; 3120 font-size: 11px; 3121 letter-spacing: 0.8px; 3122 text-transform: uppercase; 3123 color: #9AA3AF; 3124 margin-bottom: 4px; 3125 } 3126 .cs-call__num { 3127 font-family: 'Inter', 'Montserrat', sans-serif; 3128 font-weight: 600; 3129 font-size: 20px; 3130 color: #FFFFFF; 3131 transition: color 160ms ease; 3132 } 3133 .cs-call:hover .cs-call__num { color: #FE894C; } 3134 @media (max-width: 1023px) { 3135 .cs-grid { grid-template-columns: 1fr; gap: 32px; } 3136 .cs-card { padding: 28px !important; } 3137 } 3138 @media (max-width: 640px) { 3139 .cs-row { flex-direction: column; } 3140 .cs-card { padding: 22px !important; } 3141 } 3142 `})]})},l7=()=>o.jsxs("main",{className:"min-h-screen",style:{background:"#FFFFFF",overflowX:"hidden"},children:[o.jsx(st,{title:"Contact",description:"Get in touch with the National Concerts team.",path:"/contact"}),o.jsx(s7,{}),o.jsx(a7,{}),o.jsx(et,{})]}),Jf=({title:e})=>o.jsxs("main",{className:"flex min-h-screen flex-col bg-nc-white",children:[o.jsx(st,{title:e,noindex:!0}),o.jsx("div",{className:"bg-[#141414]",children:o.jsx(Xe,{variant:"solid"})}),o.jsxs("section",{className:"mx-auto flex w-full max-w-[1440px] flex-1 flex-col items-start justify-center",style:{gap:24,padding:"120px clamp(20px, 4vw, 60px)"},children:[o.jsx("span",{className:"font-body uppercase",style:{fontWeight:600,fontSize:14,color:"#E8732A"},children:"Coming Soon"}),o.jsx("h1",{className:"font-display m-0 uppercase",style:{fontWeight:400,fontSize:"clamp(40px, 6vw, 72px)",lineHeight:"110%",letterSpacing:"-1.2px"},children:e}),o.jsx("p",{className:"font-body m-0 max-w-[640px] text-base text-nc-gs700",children:"This page is under construction. Check back soon for more information."}),o.jsx(ke,{to:"/",className:"font-display inline-flex items-center bg-nc-primary text-nc-white no-underline",style:{height:48,padding:"14px 24px",fontSize:14},children:"Back to Home"})]}),o.jsx(et,{})]}),c7=()=>{const{pathname:e}=un();return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"auto"})},[e]),null},d7=[{title:"Ensemble Services",location:"Hybrid (New York, NY)",type:"Full Time",reportsTo:"Executive Director",overview:["Ensemble Services is a highly organized, service-minded professional who plays a central role in shaping the experience of ensembles working with National Concerts. This position supports the full planning process by guiding ensemble directors and organizational leaders through complex logistical and operational details with clarity, care, and a strong commitment to hospital
3142ity and excellence.","The successful candidate is communicative, proactive, and detail-driven. This role is well suited for someone who enjoys supporting artists and educators behind the scenes, takes pride in creating smooth, welcoming experiences, and is motivated to deepen their expertise in arts administration, event operations, and large-scale production support within a collaborative, mission-driven organization.","National Concerts offers unparalleled performance collaborations for choirs, bands, and orchestras at renowned venues across the United States. We produce unique and imaginative performances by collaborating across artistic passions including projection design, modern dance, thematic programming, lighting design, and every concert features a world-premiere with the composer in-residence!","Our productions bring ensembles and industry professionals together, culminating in lifetime experiences for both the performers and the audience."],responsibilities:[{heading:"Ensemble & Client Experience",bullets:["Serve as a primary point of contact for ensemble directors and organizational leaders, providing clear communication and high-touch support throughout the residency planning process","Build strong working relationships with ensemble managers to ensure a smooth, well-supported experience from initial planning through departure"]},{heading:"Planning & Logistics",bullets:["Coordinate all residency logistics, including accommodations, transportation, dining, sightseeing, and optional experience packages","Develop and maintain detailed itineraries that integrate rehearsal schedules, performance logistics, travel, and program enhancements","Manage participation data, rooming lists, and key deadlines to ensure accuracy and alignment with contractual requirements"]},{heading:"Project Coordination",bullets:["Track timelines and deliverables across multiple residencies, proactively identifying issues and working with internal teams to resolve them","Maintain accurate, up-to-date project records and clear task ownership within company systems","Prepare and manage participant communications using established templates and timelines"]},{heading:"Financial & Vendor Coordination",bullets:["Support billing and invoicing by coordinating financial details, tracking due dates, and communicating with ensemble managers","Coordinate vendor bookings and confirmations for dining, entertainment, and other contracted services"]},{heading:"On-Site Execution",bullets:["Provide on-site support during residencies, including arrivals, check-ins, rehearsals, performances, and departures","Assist with backstage operations, receptions, and hospitality to ensure a high-quality experience for performers and partners"]},{heading:"General",bullets:["Collaborate closely with production staff and internal teams to support seamless execution across all aspects of the residency","Represent National Concerts with professionalism, discretion, and attention to detail"]}],requirements:["Bachelor's degree in arts administration, event management, hospitality, or a related field","2+ years of experience in group travel and hospitality","Strong organizational skills with the ability to manage multiple projects, deadlines, and priorities simultaneously","Excellent written and verbal communication skills with a professional, service-oriented approach","High attention to detail and accuracy in managing schedules, participant information, and documentation","Strong working knowledge of MacOS, Google Workspace, and ability to adapt to new software solutions","Strong interpersonal communication skills","Collaborative mindset and ability to work effectively across teams and with external partners","Interest in and appreciation for music, the performing arts, and artist-centered programming","Occasional weekend obligations may be required for performance residencies and professional conferences; schedule is provided in advance"],compensation:"$46,000 â $54,000 / yr",applyEmail:"[email protected]"}],Jg=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),S1=e=>`<ul>${e.map(t=>`<li>${Jg(t)}</li>`).join("")}</ul>`,u7=d7.map(e=>({title:e.title,location:e.location,type:e.type,reportsTo:e.reportsTo,overviewHtml:e.overview.map(t=>`<p>${Jg(t)}</p>`).join(""),responsibilitiesHtml:e.responsibilities.map(t=>`<h5>${Jg(t.heading)}</h5>${S1(t.bullets)}`).join(""),requirementsHtml:S1(e.requirements),compensation:e.compensation,applyEmail:e.applyEmail})),h7=()=>{const e=ve(),t=Mi(PL(),u7);return o.jsxs("main",{className:"min-h-screen bg-nc-white",children:[o.jsxs("section",{className:"relative w-full overflow-hidden",style:{background:"hsl(var(--nc-cream))"},children:[o.jsx(Xe,{variant:"light"}),o.jsxs("div",{className:"nc-container relative flex flex-col items-center text-center",style:{paddingTop:80,paddingBottom:80,gap:24},children:[o.jsx("span",{className:"font-body m-0",style:{fontWeight:600,fontSize:14,lineHeight:"140%",color:"#E8732A",textTransform:"uppercase",letterSpacing:"0.5px"},children:e.text("careers.hero.eyebrow")}),o.jsx("h1",{className:"font-display m-0",style:{fontWeight:400,fontSize:"clamp(36px, 6vw, 72px)",lineHeight:"110%",color:"#0A0A0A",textTransform:"uppercase",maxWidth:900,wordBreak:"break-word"},children:e.text("careers.hero.headline")})]})]}),o.jsx("section",{className:"nc-container",style:{paddingTop:80,paddingBottom:40},children:o.jsxs("div",{className:"mx-auto",style:{maxWidth:820},children:[o.jsx("h2",{className:"font-display m-0 uppercase text-center",style:{fontWeight:400,fontSize:"clamp(28px, 3.5vw, 40px)",lineHeight:"120%",color:"#E8732A",marginBottom:24},children:e.text("careers.about.heading")}),o.jsx("p",{className:"font-body m-0 text-center",style:{fontWeight:400,fontSize:17,lineHeight:"170%",color:"#3A4252"},children:e.text("careers.about.body")})]})}),o.jsxs("section",{className:"nc-container",style:{paddingTop:40,paddingBottom:80},children:[o.jsx("h2",{className:"font-display m-0 uppercase text-center",style:{fontWeight:400,fontSize:"clamp(28px, 3.5vw, 40px)",lineHeight:"120%",color:"#E8732A",marginBottom:40},children:e.text("careers.openings.heading")}),o.jsx("div",{className:"mx-auto flex flex-col gap-10",style:{maxWidth:940},children:t.map(n=>o.jsxs("article",{className:"bg-nc-white",style:{border:"1px solid #E0E4EA",padding:"40px clamp(24px, 4vw, 56px)"},children:[o.jsxs("header",{className:"flex flex-col gap-2 text-center",style:{marginBottom:32},children:[o.jsx("h3",{className:"font-display m-0 uppercase",style:{fontWeight:400,fontSize:"clamp(26px, 3vw, 36px)",lineHeight:"120%",color:"#0A0A0A"},children:n.title}),o.jsxs("p",{className:"font-body m-0 uppercase",style:{fontWeight:600,fontSize:13,letterSpacing:"0.6px",color:"#454545"},children:[n.location," | ",n.type]}),o.jsxs("p",{className:"font-body m-0",style:{fontWeight:600,fontSize:13,color:"#454545"},children:[o.jsx("span",{style:{color:"#E8732A"},children:"Reports to:"})," ",n.reportsTo]})]}),o.jsxs("div",{className:"flex flex-col",style:{gap:28},children:[o.jsxs("div",{children:[o.jsx("h4",{className:"font-display m-0 uppercase",style:{fontWeight:600,fontSize:18,letterSpacing:"0.3px",color:"#E8732A",marginBottom:12},children:"Role Overview"}),o.jsx("div",{className:"font-body nc-rich-text",style:{fontWeight:400,fontSize:16,lineHeight:"170%",color:"#3A4252"},dangerouslySetInnerHTML:{__html:lo(n.overviewHtml)}})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-display m-0 uppercase",style:{fontWeight:600,fontSize:18,letterSpacing:"0.3px",color:"#E8732A",marginBottom:12},children:"Role Responsibilities"}),o.jsx("div",{className:"font-body nc-rich-text nc-rich-text--groups",style:{fontWeight:400,fontSize:15,lineHeight:"165%",color:"#3A4252"},dangerouslySetInnerHTML:{__html:lo(n.responsibilitiesHtml)}})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-display m-0 uppercase",style:{fontWeight:600,fontSize:18,letterSpacing:"0.3px",color:"#E8732A",marginBottom:12},children:"Requirements"}),o.jsx("div",{className:"font-body nc-rich-text",style:{fontWeight:400,fontSize:15,lineHeight:"165%",color:"#3A4252"},dangerouslySetInnerHTML:{__html:lo(n.requirementsHtml)}})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"font-display m-0 uppercase",style:{fontWeight:600,fontSize:18,letterSpacing:"0.3px",color:"#E8732A",marginBottom:8},children:"Compensation"}),o.jsx("p",{className:"font-body m-0",style:{fontWeight:500,fontSize:16,color:"#0A0A0A"},children:n.compensation})]}),o.jsx("div",{className:"flex justify-center",style:{marginTop:16,paddingTop:24,borderTop:"1px solid #E0E4EA"},children:o.jsx("a",{href:`mailto:${n.applyEmail}?subject=${encodeURIComponent(`Application â ${n.title}`)}`,className:"font-display inline-flex items-center justify-center uppercase no-underline",style:{background:"#FE894C",color:"#FFFFFF",fontWeight:500,fontSize:14,letterSpacing:"0.6px",padding:"16px 32px",borderRadius:999},children:"Submit your cover letter & resume"})})]})]},n.title))})]}),o.jsx(et,{})]})},p7=` 3143.typo-doc { 3144 --display: 'Premier League', 'Bebas Neue', 'Oswald', Impact, sans-serif; 3145 --body: 'Montserrat', system-ui, -apple-system, sans-serif; 3146 --input: 'Red Hat Display', 'Inter', sans-serif; 3147 --coral: hsl(21 99% 65%); 3148 --black: hsl(0 0% 0%); 3149 --ink: hsl(220 18% 27%); 3150 --line: hsl(218 22% 90%); 3151 --cream: hsl(44 18% 94%); 3152 --gs100: hsl(210 25% 96%); 3153 3154 font-family: var(--body); 3155 color: var(--black); 3156 background: #fff; 3157 -webkit-font-smoothing: antialiased; 3158 line-height: 1.5; 3159 min-height: 100vh; 3160} 3161.typo-doc * { box-sizing: border-box; margin: 0; padding: 0; } 3162 3163.typo-doc .wrap { max-width: 1040px; margin: 0 auto; padding: clamp(28px, 6vw, 96px) clamp(20px, 6vw, 80px); } 3164 3165.typo-doc .cover { border-bottom: 3px solid var(--black); padding-bottom: 40px; margin-bottom: 56px; } 3166.typo-doc .eyebrow { 3167 font-family: var(--body); font-weight: 700; font-size: 12px; 3168 letter-spacing: 1.4px; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; 3169} 3170.typo-doc .cover h1 { 3171 font-family: var(--display); text-transform: uppercase; font-weight: 400; 3172 font-size: clamp(48px, 9vw, 104px); line-height: 1.0; letter-spacing: -0.5px; 3173} 3174.typo-doc .cover p { font-size: 16px; color: var(--ink); margin-top: 18px; max-width: 60ch; } 3175 3176.typo-doc section { margin-bottom: 64px; } 3177.typo-doc .sec-head { 3178 display: flex; align-items: baseline; gap: 14px; 3179 border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 28px; 3180} 3181.typo-doc .sec-num { font-family: var(--display); text-transform: uppercase; color: var(--coral); font-size: 22px; letter-spacing: 0.5px; } 3182.typo-doc .sec-head h2 { 3183 font-family: var(--display); text-transform: uppercase; font-weight: 400; 3184 font-size: clamp(24px, 3.4vw, 34px); letter-spacing: 0.5px; 3185} 3186.typo-doc .lead { color: var(--ink); max-width: 64ch; margin-bottom: 24px; font-size: 15.5px; } 3187 3188.typo-doc .families { display: grid; grid-template-columns: 1fr; gap: 20px; } 3189.typo-doc .fam { border: 1px solid var(--line); border-radius: 10px; padding: 28px 30px; display: grid; grid-template-columns: 1fr; gap: 6px; } 3190.typo-doc .fam .role { font-weight: 700; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--coral); } 3191.typo-doc .fam .name { font-size: 22px; font-weight: 600; } 3192.typo-doc .fam .meta { font-size: 13.5px; color: var(--ink); } 3193.typo-doc .fam .specimen { margin-top: 14px; line-height: 1.05; } 3194.typo-doc .specimen.display { font-family: var(--display); text-transform: uppercase;
3194 font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.3px; } 3195.typo-doc .specimen.body { font-family: var(--body); font-size: 26px; } 3196.typo-doc .specimen.input { font-family: var(--input); font-size: 26px; } 3197.typo-doc .glyphs { font-size: 15px; color: var(--ink); margin-top: 8px; letter-spacing: 0.3px; } 3198 3199.typo-doc .weights { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 14px; } 3200.typo-doc .weights span { font-family: var(--body); font-size: 19px; } 3201.typo-doc .w3 { font-weight: 300; } .typo-doc .w4 { font-weight: 400; } .typo-doc .w5 { font-weight: 500; } 3202.typo-doc .w6 { font-weight: 600; } .typo-doc .w7 { font-weight: 700; } 3203.typo-doc .wlabel { display:block; font-family: var(--body); font-weight:400; font-size:10px; letter-spacing:1px; text-transform:uppercase; color:#9aa1ac; } 3204 3205.typo-doc .scale-row { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; } 3206.typo-doc .scale-row:last-child { border-bottom: none; } 3207.typo-doc .scale-meta .tag { font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: 0.8px; text-transform: uppercase; } 3208.typo-doc .scale-meta .val { font-family: var(--input); font-size: 12px; color: var(--ink); display:block; margin-top:4px; } 3209.typo-doc .scale-sample { font-family: var(--display); text-transform: uppercase; line-height: 1.0; letter-spacing: -0.3px; color: var(--black); } 3210.typo-doc .s-hero { font-size: clamp(54px, 11vw, 132px); } 3211.typo-doc .s-display { font-size: clamp(48px, 7vw, 96px); } 3212.typo-doc .s-h1 { font-size: clamp(40px, 6vw, 72px); } 3213.typo-doc .s-h2 { font-size: clamp(32px, 4.5vw, 56px); } 3214.typo-doc .s-h3 { font-size: clamp(28px, 3.6vw, 44px); } 3215.typo-doc .s-h4 { font-size: clamp(22px, 2.4vw, 30px); } 3216.typo-doc .s-eyebrow { font-size: clamp(16px, 1.4vw, 20px); } 3217 3218.typo-doc .body-row { border-bottom: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; } 3219.typo-doc .body-row:last-child { border-bottom: none; } 3220.typo-doc .body-sample { font-family: var(--body); color: var(--black); } 3221.typo-doc .b-lg { font-size: 20px; } .typo-doc .b-base { font-size: 16px; } .typo-doc .b-sm { font-size: 14px; } .typo-doc .b-xs { font-size: 12px; } 3222 3223.typo-doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; } 3224.typo-doc th, .typo-doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; } 3225.typo-doc th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); font-weight: 700; } 3226.typo-doc td:first-child { font-weight: 600; white-space: nowrap; } 3227.typo-doc code { font-family: var(--input); font-size: 13px; background: var(--gs100); padding: 2px 6px; border-radius: 4px; } 3228 3229.typo-doc .note { background: var(--cream); border-left: 3px solid var(--coral); padding: 16px 20px; border-radius: 0 8px 8px 0; font-size: 14.5px; color: var(--ink); margin-top: 24px; } 3230.typo-doc footer { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: #9aa1ac; } 3231 3232@media print { 3233 .typo-doc .wrap { padding: 24px; max-width: none; } 3234 .typo-doc section, .typo-doc .fam, .typo-doc .scale-row { break-inside: avoid; } 3235 .typo-doc .cover { break-after: avoid; } 3236} 3237`,f7=()=>o.jsxs("div",{className:"typo-doc",children:[o.jsx(st,{title:"Type System",noindex:!0}),o.jsx("style",{children:p7}),o.jsxs("div",{className:"wrap",children:[o.jsxs("header",{className:"cover",children:[o.jsx("div",{className:"eyebrow",children:"National Concerts · Website Typography"}),o.jsx("h1",{children:"Type System"}),o.jsx("p",{children:"A walkthrough of every typeface, weight, and size used across the National Concerts website â the display face for headlines, the body face for reading text, and the supporting face used in forms. This page renders in the live website fonts."})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"sec-head",children:[o.jsx("span",{className:"sec-num",children:"01"}),o.jsx("h2",{children:"The Three Typefaces"})]}),o.jsx("p",{className:"lead",children:"The site is built on three coordinated typefaces, each with a clear job. Together they create the bold, editorial, concert-poster feel of the brand."}),o.jsxs("div",{className:"families",children:[o.jsxs("div",{className:"fam",children:[o.jsx("span",{className:"role",children:"Display · Headlines & titles"}),o.jsx("span",{className:"name",children:"Premier League"}),o.jsx("span",{className:"meta",children:"Custom brand face. Always set in UPPERCASE for headings, hero titles, buttons, and section labels. Fallbacks: Bebas Neue, Oswald, Impact."}),o.jsx("div",{className:"specimen display",children:"National Concerts"}),o.jsx("div",{className:"glyphs",children:"A B C D E F G H I J K L M · 1 2 3 4 5 6 7 8 9 0"})]}),o.jsxs("div",{className:"fam",children:[o.jsx("span",{className:"role",children:"Body · Reading text"}),o.jsx("span",{className:"name",children:"Montserrat"}),o.jsx("span",{className:"meta",children:"The workhorse for paragraphs, descriptions, navigation, and most on-page copy. Lo
3237aded in weights 300â700. Fallback: system sans-serif."}),o.jsx("div",{className:"specimen body",children:"The world's leading concert experiences."}),o.jsx("div",{className:"glyphs",children:"The quick brown fox jumps over the lazy dog · 1234567890"})]}),o.jsxs("div",{className:"fam",children:[o.jsx("span",{className:"role",children:"Forms · Inputs & fields"}),o.jsx("span",{className:"name",children:"Red Hat Display"}),o.jsx("span",{className:"meta",children:"Reserved for form inputs and field labels for a clean, legible entry experience. Loaded in weights 300â700. Fallback: Inter."}),o.jsx("div",{className:"specimen input",children:"Sign up for the season"}),o.jsx("div",{className:"glyphs",children:"The quick brown fox jumps over the lazy dog · 1234567890"})]})]})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"sec-head",children:[o.jsx("span",{className:"sec-num",children:"02"}),o.jsx("h2",{children:"Weights In Use"})]}),o.jsx("p",{className:"lead",children:"Premier League ships as a single bold display weight. Montserrat carries the range used for hierarchy in body text."}),o.jsxs("div",{className:"fam",style:{marginBottom:18},children:[o.jsx("span",{className:"role",children:"Premier League â Display"}),o.jsx("div",{className:"weights",children:o.jsx("span",{className:"specimen display",style:{fontSize:40},children:"Single Weight"})}),o.jsx("span",{className:"meta",style:{marginTop:8},children:"One weight (Regular / 400), used uppercase. Scale and spacing â not weight â create emphasis."})]}),o.jsxs("div",{className:"fam",children:[o.jsx("span",{className:"role",children:"Montserrat â Body (300â700)"}),o.jsxs("div",{className:"weights",children:[o.jsxs("span",{className:"w3",children:["Light",o.jsx("span",{className:"wlabel",children:"300"})]}),o.jsxs("span",{className:"w4",children:["Regular",o.jsx("span",{className:"wlabel",children:"400"})]}),o.jsxs("span",{className:"w5",children:["Medium",o.jsx("span",{className:"wlabel",children:"500"})]}),o.jsxs("span",{className:"w6",children:["Semibold",o.jsx("span",{className:"wlabel",children:"600"})]}),o.jsxs("span",{className:"w7",children:["Bold",o.jsx("span",{className:"wlabel",children:"700"})]})]})]})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"sec-head",children:[o.jsx("span",{className:"sec-num",children:"03"}),o.jsx("h2",{children:"Display Scale"})]}),o.jsx("p",{className:"lead",children:"Headlines use a fluid scale â each size grows and shrinks smoothly with the screen width between a minimum (mobile) and maximum (large desktop). Shown below at the current window size; resize to watch them respond."}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Hero"}),o.jsx("span",{className:"val",children:"54 â 132px"})]}),o.jsx("div",{className:"scale-sample s-hero",children:"Live Music"})]}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Display"}),o.jsx("span",{className:"val",children:"48 â 96px"})]}),o.jsx("div",{className:"scale-sample s-display",children:"The Experience"})]}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Heading 1"}),o.jsx("span",{className:"val",children:"40 â 72px"})]}),o.jsx("div",{className:"scale-sample s-h1",children:"Upcoming Performances"})]}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Heading 2"}),o.jsx("span",{className:"val",children:"32 â 56px"})]}),o.jsx("div",{className:"scale-sample s-h2",children:"Season Overview"})]}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Heading 3"}),o.jsx("span",{className:"val",children:"28 â 44px"})]}),o.jsx("div",{className:"scale-sample s-h3",children:"Browse The Catalog"})]}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Heading 4"}),o.jsx("span",{className:"val",children:"22 â 30px"})]}),o.jsx("div",{className:"scale-sample s-h4",children:"Box Office"})]}),o.jsxs("div",{className:"scale-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Eyebrow / Label"}),o.jsx("span",{className:"val",children:"16 â 20px"})]}),o.jsx("div",{className:"scale-sample s-eyebrow",children:"Choral Series"})]})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"sec-head",children:[o.jsx("span",{className:"sec-num",children:"04"}),o.jsx("h2",{children:"Body & Text Scale"})]}),o.jsx("p",{className:"lead",children:"Reading text is set in Montserrat at a small, consistent set of sizes. Most on-page copy and UI labels sit at Small (14px); intros and lead paragraphs step up."}),o.jsxs("div",{className:"body-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Large / Lead"}),o.jsx("span",{className:"val",children:"~20px"})]}),o.jsx("div",{className:"body-sample b-lg",children:"A premier presenter of the world's finest orchestras, choirs, and conductors on the great stages of the world."})]}),o.jsxs("div",{className:"body-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Base"}),o.jsx("span",{className:"val",children:"~16px"})]}),o.jsx("div",{className:"body-sample b-base",children:"National Concerts produces unforgettable performances, bringing ensembles and audiences together in iconic venues across the globe."})]}),o.jsxs("div",{className:"body-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Small (default)"}),o.jsx("span",{className:"val",children:"~14px"})]}),o.jsx("div",{className:"body-sample b-sm",children:"Used for the majority of body copy, descriptions, navigation, and card text throughout the site."})]}),o.jsxs("div",{className:"body-row",children:[o.jsxs("div",{className:"scale-meta",children:[o.jsx("span",{className:"tag",children:"Extra small"}),o.jsx("span",{className:"val",children:"~12px"})]}),o.jsx("div",{className:"body-sample b-xs",children:"Fine print, captions, metadata, and supporting detail."})]})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"sec-head",children:[o.jsx("span",{className:"sec-num",children:"05"}),o.jsx("h2",{children:"Conventions"})]}),o.jsx("p",{className:"lead",children:"A handful of consistent rules give the typography its signature look."}),o.jsxs("table",{children:[o.jsx("thead",{children:o.jsxs("tr",{children:[o.jsx("th",{children:"Element"}),o.jsx("th",{children:"Typeface"}),o.jsx("th",{children:"Treatment"})]})}),o.jsxs("tbody",{children:[o.jsxs("tr",{children:[o.jsx("td",{children:"Hero & headings"}),o.jsx("td",{children:"Premier League"}
3237),o.jsx("td",{children:"UPPERCASE, tight line-height (1.0â1.2), slightly negative letter-spacing on large sizes"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Buttons / CTAs"}),o.jsx("td",{children:"Premier League"}),o.jsx("td",{children:"UPPERCASE, coral or black fill, pill (rounded-full) shape"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Eyebrows / labels"}),o.jsx("td",{children:"Montserrat or Premier League"}),o.jsx("td",{children:"UPPERCASE, bold, wide letter-spacing (~1.2â1.4px), often coral"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Body copy"}),o.jsx("td",{children:"Montserrat"}),o.jsx("td",{children:"Sentence case, relaxed line-height (1.4â1.6)"})]}),o.jsxs("tr",{children:[o.jsx("td",{children:"Form fields"}),o.jsx("td",{children:"Red Hat Display"}),o.jsx("td",{children:"Sentence case, clean and legible"})]})]})]}),o.jsxs("div",{className:"note",children:[o.jsx("strong",{children:"Line-height & spacing."})," Headlines run tight (100â120%) for impact; body text runs open (140â160%) for readability. Letter-spacing is slightly tightened on large display type and slightly widened on small uppercase labels."]})]}),o.jsxs("section",{children:[o.jsxs("div",{className:"sec-head",children:[o.jsx("span",{className:"sec-num",children:"06"}),o.jsx("h2",{children:"Type & Color"})]}),o.jsx("p",{className:"lead",children:"Type is almost always black on white (or white on dark), with a single brand accent â coral â reserved for eyebrows, links, and primary buttons."}),o.jsxs("div",{style:{display:"flex",gap:16,flexWrap:"wrap",alignItems:"center"},children:[o.jsx("span",{style:{fontFamily:"var(--display)",textTransform:"uppercase",fontSize:40,color:"var(--black)"},children:"Black"}),o.jsx("span",{style:{fontFamily:"var(--display)",textTransform:"uppercase",fontSize:40,color:"var(--coral)"},children:"Coral"}),o.jsx("span",{style:{fontFamily:"var(--display)",textTransform:"uppercase",fontSize:40,color:"#fff",background:"var(--black)",padding:"4px 16px",borderRadius:6},children:"Reversed"})]}),o.jsxs("div",{className:"note",children:["Brand coral â ",o.jsx("code",{children:"hsl(21 99% 65%)"})," · approx ",o.jsx("code",{children:"#FE8C4F"})," â is the only accent applied to type."]})]}),o.jsx("footer",{children:"National Concerts â Website Typography Reference. Fonts: Premier League (display), Montserrat (body), Red Hat Display (forms). Print or âSave as PDFâ to share a fixed copy."})]})]}),m7=new QN,g7=w.lazy(()=>sN(()=>import("./AdminApp-7y-yOE53.js"),[])),y7=o.jsx("div",{className:"flex min-h-screen items-center justify-center text-sm text-muted-foreground",children:"Loadingâ¦"}),b7=[{path:"/events/national-youth-chorus",title:"National Youth Chorus"},{path:"/events/songs-of-ascent",title:"Kirchner's Songs of Ascent"},{path:"/events/national-treble-chorus",title:"National Treble Chorus"},{path:"/events/texas-international-choral",title:"Texas International Choral Festival"},{path:"/national-band-orchestra-fest/learn-more",title:"Band & Orchestra Festival â Learn More"},{path:"/packages-and-pricing/standard",title:"Standard Package"},{path:"/packages-and-pricing/custom",title:"Custom Package"},{path:"/the-experience/learn-more",title:"The Experience â Learn More"},{path:"/commissions/learn-more",title:"Commissions â Learn More"},{path:"/terms",title:"Terms of Service"},{path:"/privacy",title:"Privacy Policy"}],v7=()=>o.jsx(e2,{children:o.jsx(nF,{client:m7,children:o.jsxs(U3,{children:[o.jsx(mI,{}),o.jsx(uM,{}),o.jsx(R5,{children:o.jsxs(hP,{children:[o.jsx(c7,{}),o.jsxs(rP,{children:[o.jsx(_e,{path:"/coming-soon",element:o.jsx(Jf,{title:"Coming Soon"})}),o.jsx(_e,{path:"/",element:o.jsx(eB,{})}),o.jsx(_e,{path:"/perform-with-us",element:o.jsx(gn,{to:"/season-overview",replace:!0})}),o.jsx(_e,{path:"/season-overview",element:o.jsx(JB,{})}),o.jsx(_e,{path:"/browse-by-conductor",element:o.jsx(lW,{})}),o.jsx(_e,{path:"/browse-by-date-venue",element:o.jsx(uW,{})}),o.jsx(_e,{path:"/ensemble-spotlight",element:o.jsx(gn,{to:"/packages-and-pricing",replace:!0})}),o.jsx(_e,{path:"/national-band-orchestra-fest",element:o.jsx(yW,{})}),o.jsx(_e,{path:"/band-orchestra-festival",element:o.jsx(gn,{to:"/national-band-orchestra-fest",replace:!0})}),o.jsx(_e,{path:"/packages-and-pricing",element:o.jsx(EW,{})}),o.jsx(_e,{path:"/inquiry",element:o.jsx(WW,{})}),o.jsx(_e,{path:"/upcoming-performances",element:o.jsx(y1,{})}),o.jsx(_e,{path:"/upcoming-performances/:slug",element:o.jsx(EH,{})}),o.jsx(_e,{path:"/past-performances",element:o.jsx(RH,{})}),o.jsx(_e,{path:"/the-experience",element:o.jsx(KH,{})}),o.jsx(_e,{path:"/commissions",element:o.jsx(ZH,{})}),o.jsx(_e,{path:"/commissions/:slug",element:o.jsx(BH,{})}),o.jsx(_e,{path:"/choral-series",element:o.jsx(r9,{})}),o.jsx(_e,{path:"/listen",element:o.jsx(d9,{})}),o.jsx(_e,{path:"/listen/:slug",element:o.jsx(h9,{})}),o.jsx(_e,{path:"/about",element:o.jsx(x9,{})}),o.jsx(_e,{path:"/our-story",element:o.jsx(gn,{to:"/about",replace:!0})}),o.jsx(_e,{path:"/team",element:o.jsx(F9,{})}),o.jsx(_e,{path:"/advisory-board",element:o.jsx(W9,{})}),o.jsx(_e,{path:"/past-collaborators",element:o.jsx(V9,{})}),o.jsx(_e,{path:"/testimonials",element:o.jsx(Q9,{})}),o.jsx(_e,{path:"/faqs",element:o.jsx(r7,{})}),o.jsx(_e,{path:"/memberships",element:o.jsx(gn,{to:"/",replace:!0})}),o.jsx(_e,{path:"/2027-season",element:o.jsx(gn,{to:"/season-overview",replace:!0})}),o.jsx(_e,{path:"/browse-conductors-composers",element:o.jsx(gn,{to:"/browse-by-conductor",replace:!0})}),o.jsx(_e,{path:"/browse-date-venue",element:o.jsx(gn,{to:"/browse-by-date-venue",replace:!0})}),o.jsx(_e,{path:"/get-started",element:o.jsx(gn,{to:"/inquiry",replace:!0})}),o.jsx(_e,{path:"/box-office",element:o.jsx(y1,{})}),o.jsx(_e,{path:"/box-office/:slug",element:o.jsx(jH,{})}),o.jsx(_e,{path:"/associations",element:o.jsx(Jf,{title:"Association Memberships"})}),o.jsx(_e,{path:"/contact",element:o.jsx(l7,{})}),o.jsx(_e,{path:"/browse-catalog",element:o.jsx(gn,{to:"/choral-series#catalog",replace:!0})}),o.jsx(_e,{path:"/careers",element:o.jsx(h7,{})}),o.jsx(_e,{path:"/typography",element:o.jsx(f7,{})}),b7.map(e=>o.jsx(_e,{path:e.path,element:o.jsx(Jf,{title:e.title})},e.path)),tB.map(e=>o.jsx(_e,{path:e.from,element:o.jsx(B4,{to:e.to})},e.from)),o.jsx(_e,{path:"/admin/*",element:o.jsx(w.Suspense,{fallback:y7,children:o.jsx(g7,{})})}),o.jsx(_e,{path:"*",element:o.jsx($B,{})})]})]})})]})})});G_(document.getElementById("root")).render(o.jsx(v7,{}));export{SH as $,jS as A,J0 as B,g4 as C,FD as D,RD as E,y4 as F,OD as G,Lx as H,ed as I,A7 as J,u4 as K,ke as L,kn as M,gn as N,w7 as O,Rt as P,h4 as Q,ut as R,Yc as S,TD as T,p4 as U,f4 as V,N7 as W,ND as X,jD as Y,AD as Z,kM as _,Rn as a,ME as a$,EM as a0,nC as a1,S3 as a2,Fs as a3,Co as a4,yD as a5,F8 as a6,GE as a7,DE as a8,np as a9,L as aA,V_ as aB,P6 as aC,uz as aD,mz as aE,lo as aF,$L as aG,qL as aH,CH as aI,VL as aJ,zH as aK,BL as aL,u9 as aM,AL as aN,HD as aO,NL as aP,t7 as aQ,RL as aR,A9 as aS,ML as aT,z9 as aU,WL as aV,B7 as aW,LL as aX,P7 as aY,zL as aZ,x8 as a_,C3 as aa,yf as ab,E3 as ac,U
3237M as ad,ts as ae,nS as af,C7 as ag,e0 as ah,Fc as ai,On as aj,s0 as ak,MD as al,ah as am,Zc as an,oh as ao,y3 as ap,s8 as aq,o0 as ar,f6 as as,xM as at,R7 as au,O7 as av,z0 as aw,Tt as ax,Eo as ay,rl as az,DN as b,ZL as b0,aW as b1,e8 as b2,NH as b3,n8 as b4,U9 as b5,ES as b6,F7 as b7,st as b8,rP as b9,_e as ba,Te as c,_7 as d,un as e,Hz as f,KN as g,xc as h,V4 as i,o as j,z7 as k,M7 as l,L7 as m,Qt as n,I7 as o,D7 as p,$z as q,w as r,Km as s,k7 as t,tF as u,Ht as v,SS as w,Yh as x,Qc as y,pr as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.