PageSourceSearch

https://www.ursulaleveaux.co.uk/_next/static/chunks/26fn6s5igttth.js?dpl=dpl_5tS69KtPDfUbRMCsnJ2571bHLsJc

js ursulaleveaux.co.uk collected 2026-10-10 01:39:14 UTC 277,717 bytes, 4 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,765104,e=>{"use strict";e.s(["getFlowingTextStyle",0,function(e){let t=e?.typography?.flowingText;return t?{fontFamily:t.font?`'${t.font}', sans-serif`:void 0,fontSize:"number"==typeof t.fontSize?`${t.fontSize}px`:void 0,color:t.color||void 0}:{}}])},789057,e=>{"use strict";let t,n,r,i,o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(o),a=(e,t,n)=>n>t?t:n<e?e:n,l={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},u={...l,transform:e=>a(0,1,e)},c={...l,default:1},d=e=>Math.round(1e5*e)/1e5,h=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,f=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p=(e,t)=>n=>!!("string"==typeof n&&f.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),m=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(h);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},g={...l,transform:e=>Math.round(a(0,255,e))},v={test:p("rgb","red"),parse:m("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+g.transform(e)+", "+g.transform(t)+", "+g.transform(n)+", "+d(u.transform(r))+")"},y={test:p("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:v.transform},x=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),b=x("deg"),w=x("%"),S=x("px"),E=x("vh"),T=x("vw"),k={...w,parse:e=>w.parse(e)/100,transform:e=>w.transform(100*e)},C={test:p("hsl","hue"),parse:m("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+w.transform(d(t))+", "+w.transform(d(n))+", "+d(u.transform(r))+")"},P={test:e=>v.test(e)||y.test(e)||C.test(e),parse:e=>v.test(e)?v.parse(e):C.test(e)?C.parse(e):y.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?v.transform(e):C.transform(e),getAnimatableNone:e=>{let t=P.parse(e);return t.alpha=0,P.transform(t)}},A=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,R="number",M="color",L=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function N(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(L,e=>(P.test(e)?(r.color.push(o),i.push(M),n.push(P.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(R),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function j(e){return N(e).values}function D(e){let{split:t,types:n}=N(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===R?i+=d(e[o]):t===M?i+=P.transform(e[o]):i+=e[o]}return i}}let I=e=>"number"==typeof e?0:P.test(e)?P.getAnimatableNone(e):e,O={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(h)?.length||0)+(e.match(A)?.length||0)>0},parse:j,createTransformer:D,getAnimatableNone:function(e){let t=j(e);return D(e)(t.map(I))}},F=new Set(["brightness","contrast","saturate","opacity"]);function V(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(h)||[];if(!r)return e;let i=n.replace(r,""),o=+!!F.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let B=/\b([a-z-]*)\(.*?\)/gu,z={...O,getAnimatableNone:e=>{let t=e.match(B);return t?t.map(V).join(" "):e}},$={...O,getAnimatableNone:e=>{let t=O.parse(e);return O.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},U={...l,transform:Math.round},_={borderWidth:S,borderTopWidth:S,borderRightWidth:S,borderBottomWidth:S,borderLeftWidth:S,borderRadius:S,borderTopLeftRadius:S,borderTopRightRadius:S,borderBottomRightRadius:S,borderBottomLeftRadius:S,width:S,maxWidth:S,height:S,maxHeight:S,top:S,right:S,bottom:S,left:S,inset:S,insetBlock:S,insetBlockStart:S,insetBlockEnd:S,insetInline:S,insetInlineStart:S,insetInlineEnd:S,padding:S,paddingTop:S,paddingRight:S,paddingBottom:S,paddingLeft:S,paddingBlock:S,paddingBlockStart:S,paddingBlockEnd:S,paddingInline:S,paddingInlineStart:S,paddingInlineEnd:S,margin:S,marginTop:S,marginRight:S,marginBottom:S,marginLeft:S,marginBlock:S,marginBlockStart:S,marginBlockEnd:S,marginInline:S,marginInlineStart:S,marginInlineEnd:S,fontSize:S,backgroundPositionX:S,backgroundPositionY:S,rotate:b,rotateX:b,rotateY:b,rotateZ:b,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:b,skewX:b,skewY:b,distance:S,translateX:S,translateY:S,translateZ:S,x:S,y:S,z:S,perspective:S,transformPerspective:S,opacity:u,originX:k,originY:k,originZ:S,zIndex:U,fillOpacity:u,strokeOpacity:u,numOctaves:U},W={..._,color:P,backgroundColor:P,outlineColor:P,fill:P,stroke:P,borderColor:P,borderTopColor:P,borderRightColor:P,borderBottomColor:P,borderLeftColor:P,filter:z,WebkitFilter:z,mask:$,WebkitMask:$},H=e=>W[e],K=()=>({translate:0,scale:1,origin:0,originPoint:0}),G=()=>({x:K(),y:K()}),Y=()=>({min:0,max:0}),X=()=>({x:Y(),y:Y()}),q=e=>!!(e&&e.getVelocity),Z=new Set(["width","height","top","left","right","bottom",...o]),J=e=>t=>t.test(e),Q=[l,S,w,b,T,E,{test:e=>"auto"===e,parse:e=>e}],ee=e=>Q.find(J(e));var et,en=e.i(562024);let er=()=>{},ei=()=>{};en.default;let eo=e=>t=>"string"==typeof t&&t.startsWith(e),es=eo("--"),ea=eo("var(--"),el=e=>!!ea(e)&&eu.test(e.split("/*")[0].trim()),eu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ec(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ed=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eh=e=>180*e/Math.PI,ef=e=>em(eh(Math.atan2(e[1],e[0]))),ep={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ef,rotateZ:ef,skewX:e=>eh(Math.atan(e[1])),skewY:e=>eh(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},em=e=>((e%=360)<0&&(e+=360),e),eg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ev=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),ey={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eg,scaleY:ev,scale:e=>(eg(e)+ev(e))/2,rotateX:e=>em(eh(Math.atan2(e[6],e[5]))),rotateY:e=>em(eh(Math.atan2(-e[2],e[0]))),rotateZ:ef,rotate:ef,skewX:e=>eh(Math.atan(e[4])),skewY:e=>eh(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ex(e){return+!!e.includes("scale")}function eb(e,t){let n,r;if(!e||"none"===e)return ex(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=ey,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ep,r=t}if(!r)return ex(t);let o=n[t],s=r[1].split(",").map(ew);return"function"==typeof o?o(s):s[o]}function ew(e){return parseFloat(e.trim())}let eS=e=>e===l||e===S,eE=new Set(["x","y","z"]),eT=o.filter(e=>!eE.has(e)),ek={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eb(t,"x"),y:(e,{transform:t})=>eb(t,"y")};ek.translateX=ek.x,ek.translateY=ek.y;let eC=e=>e,eP={},eA=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eR(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=eA.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){s.has(t)&&(c.schedule(t),e()),l++,t(a)}let c={schedule:(e,t=!1,o=!1)=>{let a=o&&i?n:r;return t&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(a=e,i){o=!0;return}
1i=!0,[n,r]=[r,n],n.forEach(u),t,l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=s,m=()=>{let o=eP.useManualTiming?i.timestamp:performance.now();n=!1,eP.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:eA.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<eA.length;t++)s[eA[t]].cancel(e)},state:i,steps:s}}let{schedule:eM,cancel:eL,state:eN,steps:ej}=eR("u">typeof requestAnimationFrame?requestAnimationFrame:eC,!0),eD=new Set,eI=!1,eO=!1,eF=!1;function eV(){if(eO){let e=Array.from(eD).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],eT.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eO=!1,eI=!1,eD.forEach(e=>e.complete(eF)),eD.clear()}function eB(){eD.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eO=!0)})}class ez{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eD.add(this),eI||(eI=!0,eM.read(eB),eM.resolveKeyframes(eV))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eD.delete(this)}cancel(){"scheduled"===this.state&&(eD.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e$=new Set([z,$]);function eU(e,t){let n=H(e);return e$.has(n)||(n=O),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let e_=new Set(["auto","none","0"]);class eW extends ez{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&el(r=r.trim())){let i=function e(t,n,r=1){ei(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=ed.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return el(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Z.has(n)||2!==e.length)return;let[r,i]=e,o=ee(r),s=ee(i);if(ec(r)!==ec(i)&&ek[n]){this.needsMeasurement=!0;return}if(o!==s)if(eS(o)&&eS(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else ek[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!e_.has(t)&&N(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eU(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ek[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=ek[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eH=e=>1e3*e;function eK(e,t){-1===e.indexOf(t)&&e.push(t)}function eG(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class eY{constructor(){this.subscriptions=[]}add(e){return eK(this.subscriptions,e),()=>eG(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eX(e){let t;return()=>(void 0===t&&(t=e()),t)}let eq={};function eZ(e,t){let n=eX(e);return()=>eq[t]??n()}let eJ=eZ(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eQ=e=>null!==e;function e0(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(eQ),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}class e1{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e2={layout:0,mainThread:0,waapi:0},e5=e=>Array.isArray(e)&&"number"==typeof e[0],e3=eZ(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e4=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e8=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e9={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e8([0,.65,.55,1]),circOut:e8([.55,0,1,.45]),backIn:e8([.31,.01,.66,-.59]),backOut:e8([.33,1.53,.69,.99])};function e6(e){return"function"==typeof e&&"applyToOptions"in e}class e7 extends e1{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ei("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");const l=function({type:e,...t}){return e6(e)&&e3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?e3()?e4(t,n):"ease-out":e5(t)?e8(t):Array.isArray(t)?t.map(t=>e(t,n)||e9.easeOut):e9[t]}(a,i);Array.isArray(d)&&(c.easing=d);let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=e0(r,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):n.startsWith("--")?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eH(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eJ())?(this.animation.timeline=e,eC):t(this)}}let te=new Set(["opacity","clipPath","filter","transform"]),{schedule:tt}=eR(queueMicrotask,!1);function tn(){n=void 0}let tr={now:()=>(void 0===n&&tr.set(eN.isProcessing||eP.useManualTiming?eN.timestamp:performance.now()),n),set:e=>{n=e,queueMicrotask(tn)}};class ti{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tr.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tr.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eY);let n=this.events[e].add(t);return"change"===e?()=>{n(),eM.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
1setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return t&&t.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tr.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function to(e,t){return new ti(e,t)}let ts=[...Q,P,O],ta=new WeakMap;function tl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tu(e){return"string"==typeof e||Array.isArray(e)}let tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],td=["initial",...tc];function th(e){return tl(e.animate)||td.some(t=>tu(e[t]))}function tf(e){return!!(th(e)||e.variants)}let tp={current:null},tm={current:!1},tg="u">typeof window;function tv(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function ty(e,t,n,r){if("function"==typeof t){let[i,o]=tv(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=tv(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tb={};class tw{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ez,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tr.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eM.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=th(t),this.isVariantNode=tf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&q(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,ta.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tm.current||function(){if(tm.current=!0,tg)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tp.current=e.matches;e.addEventListener("change",t),t()}else tp.current=!1}(),this.shouldReduceMotion=tp.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eL(this.notifyUpdate),eL(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&te.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:s}=t.accelerate,a=new e7({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:eH(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=s.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eM.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tb){let t=tb[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):X()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tx.length;t++){let n=tx[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(q(i))e.addValue(r,i);else if(q(o))e.addValue(r,to(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,to(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=to(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ts.find(J(r))&&O.test(t)&&(n=eU(e,t))}this.setBaseTarget(e,q(n)?n.get():n)}return q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=ty(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||q(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eY),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tt.render(this.render)}}
1class tS extends tw{constructor(){super(...arguments),this.KeyframeResolver=eW}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tE(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tT=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tC=o.length;function tP(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(s.has(e)){l=!0;continue}if(es(e)){i[e]=n;continue}{let t=tT(n,_[e]);e.startsWith("origin")?(u=!0,a[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<tC;s++){let a=o[s],l=e[a];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===+!!a.startsWith("scale");else{let e=parseFloat(l);u=a.startsWith("scale")?1===e:0===e}if(!u||n){let e=tT(l,_[a]);if(!u){i=!1;let t=tk[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let tA={offset:"stroke-dashoffset",array:"stroke-dasharray"},tR={offset:"strokeDashoffset",array:"strokeDasharray"},tM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function tL(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a},l,u,c){if(tP(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of(d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),tM))void 0!==d[e]&&(h[e]=d[e],delete d[e]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tA:tR;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(d,i,o,s,!1)}let tN=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),tj=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tD(e,{style:t,vars:n},r,i){let o,s=e.style;for(o in t)s[o]=t[o];for(o in i?.applyProjectionStyles(s,r),n)s.setProperty(o,n[o])}function tI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tO={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!S.test(e))return e;else e=parseFloat(e);let n=tI(e,t.target.x),r=tI(e,t.target.y);return`${n}% ${r}%`}},tF=(e,t,n)=>e+(t-e)*n,tV={borderRadius:{...tO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tO,borderTopRightRadius:tO,borderBottomLeftRadius:tO,borderBottomRightRadius:tO,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=O.parse(e);if(r.length>5)return e;let i=O.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=tF(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function tB(e,{layout:t,layoutId:n}){return s.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tV[e]||"opacity"===e)}function tz(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(q(r[t])||i&&q(i[t])||tB(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function t$(e,t,n){let r=tz(e,t,n);for(let n in e)(q(e[n])||q(t[n]))&&(r[-1!==o.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tU extends tS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=X}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(s.has(t)){let e=H(t);return e&&e.default||0}return t=tN.has(t)?t:tE(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return t$(e,t,n)}
1build(e,t,n){tL(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tD(e,t,void 0,r),t.attrs)e.setAttribute(tN.has(n)?n:tE(n),t.attrs[n])}mount(e){this.isSVGTag=tj(e.tagName),super.mount(e)}}function t_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tW(e){return void 0===e||1===e}function tH({scale:e,scaleX:t,scaleY:n}){return!tW(e)||!tW(t)||!tW(n)}function tK(e){return tH(e)||tG(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tG(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function tY(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function tX(e,t=0,n=1,r,i){e.min=tY(e.min,t,n,r,i),e.max=tY(e.max,t,n,r,i)}function tq(e,{x:t,y:n}){tX(e.x,t.translate,t.scale,t.originPoint),tX(e.y,n.translate,n.scale,n.originPoint)}function tZ(e,t){e.min=e.min+t,e.max=e.max+t}function tJ(e,t,n,r,i=.5){let o=tF(e.min,e.max,i);tX(e,t,n,o,r)}function tQ(e,t){tJ(e.x,t.x,t.scaleX,t.scale,t.originX),tJ(e.y,t.y,t.scaleY,t.scale,t.originY)}function t0(e,t){return t_(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t1 extends tS{constructor(){super(...arguments),this.type="html",this.renderInstance=tD}readValueFromInstance(e,t){if(s.has(t))return this.projection?.isProjecting?ex(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return eb(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(es(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t0(e,t)}build(e,t,n){tP(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tz(e,t,n)}}var t2=e.i(148500);let t5=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function t3(e){if("string"!=typeof e||e.includes("-"));else if(t5.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var t4=e.i(39887);let t8=(0,t2.createContext)({}),t9=(0,t2.createContext)({strict:!1}),t6=(0,t2.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),t7=(0,t2.createContext)({});function ne(e){return Array.isArray(e)?e.join(" "):e}let nt=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nn(e,t,n){for(let r in t)q(t[r])||tB(r,n)||(e[r]=t[r])}let nr=()=>({...nt(),attrs:{}}),ni=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function no(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ni.has(e)}let ns=e=>!no(e);try{et=(()=>{let e=Error("Cannot find module '@emotion/is-prop-valid'");throw e.code="MODULE_NOT_FOUND",e})().default,"function"==typeof et&&(ns=e=>e.startsWith("on")?!no(e):et(e))}catch{}function na(e){return q(e)?e.get():e}let nl=(0,t2.createContext)(null),nu=e=>(t,n)=>{let r,i=(0,t2.useContext)(t7),o=(0,t2.useContext)(nl),s=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=na(o[e]);let{initial:s,animate:a}=e,l=th(e),u=tf(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?a:s;if(d&&"boolean"!=typeof d&&!tl(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=ty(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,i,o);return n?s():(null===(r=(0,t2.useRef)(null)).current&&(r.current=s()),r.current)},nc=nu({scrapeMotionValuesFromProps:tz,createRenderState:nt}),nd=nu({scrapeMotionValuesFromProps:t$,createRenderState:nr}),nh="u">typeof window,nf={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},np=!1;function nm(){return!function(){if(np)return;let e={};for(let t in nf)e[t]={isEnabled:e=>nf[t].some(t=>!!e[t])};tb=e,np=!0}(),tb}let ng=Symbol.for("motionComponentSymbol"),nv="data-"+tE("framerAppearId"),ny=(0,t2.createContext)({});function nx(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nb=nh?t2.useLayoutEffect:t2.useEffect;function nw(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=nm();for(let n in e)t[n]={...t[n],...e[n]};tb=t}(r);let o=n?"svg"===n:t3(e),s=o?nd:nc;function a(n,r){var a;let l,u,c,d={...(0,t2.useContext)(t6),...n,layoutId:function({layoutId:e}){let t=(0,t2.useContext)(t8).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:h}=d,f=function(e){let{initial:t,animate:n}=function(e,t){if(th(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tu(t)?t:void 0,animate:tu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t2.useContext)(t7));return(0,t2.useMemo)(()=>({initial:t,animate:n}),[ne(t),ne(n)])}(n),p=s(n,h);if(!h&&nh){(0,t2.useContext)(t9).strict;let t=function(e){let{drag:t,layout:n}=nm();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}
1(d);l=t.MeasureLayout,f.visualElement=function(e,t,n,r,i,o){let{visualElement:s}=(0,t2.useContext)(t7),a=(0,t2.useContext)(t9),l=(0,t2.useContext)(nl),u=(0,t2.useContext)(t6),c=u.reducedMotion,d=u.skipAnimations,h=(0,t2.useRef)(null),f=(0,t2.useRef)(!1);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:c,skipAnimations:d,isSVG:o}),f.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));let p=h.current,m=(0,t2.useContext)(ny);p&&!p.projection&&i&&("html"===p.type||"svg"===p.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nx(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(h.current,n,i,m);let g=(0,t2.useRef)(!1);(0,t2.useInsertionEffect)(()=>{p&&g.current&&p.update(n,l)});let v=n[nv],y=(0,t2.useRef)(!!v&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return nb(()=>{f.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),(0,t2.useEffect)(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),y.current=!1),p.enteringChildren=void 0)}),p}(e,p,d,i,t.ProjectionNode,o)}return(0,t4.jsxs)(t7.Provider,{value:f,children:[l&&f.visualElement?(0,t4.jsx)(l,{visualElement:f.visualElement,...d}):null,function(e,t,n,{latestValues:r},i,o=!1,s){let a=(s??t3(e)?function(e,t,n,r){let i=(0,t2.useMemo)(()=>{let n=nr();return tL(n,t,tj(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nn(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},nn(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,t2.useMemo)(()=>{let n=nt();return tP(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(ns(i)||!0===n&&no(i)||!t&&!no(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),u=e!==t2.Fragment?{...l,...a,ref:n}:{},{children:c}=t,d=(0,t2.useMemo)(()=>q(c)?c.get():c,[c]);return(0,t2.createElement)(e,{...u,children:d})}(e,n,(a=f.visualElement,u=(0,t2.useRef)(r),(0,t2.useInsertionEffect)(()=>{u.current=r}),c=(0,t2.useRef)(null),(0,t2.useCallback)(e=>{e&&p.onMount?.(e),a&&(e?a.mount(e):a.unmount());let t=u.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(c.current=n)}else c.current?(c.current(),c.current=null):t(e);else t&&(t.current=e)},[a])),p,h,t,o)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t2.forwardRef)(a);return l[ng]=e,l}class nS{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nE(e,t,n){let r=e.getProps();return ty(r,t,void 0!==n?n:r.custom,e)}function nT(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nk(e,t){let n=e?.[t]??e?.default??e;return n!==e?nT(n,e):n}let nC=e=>Array.isArray(e);function nP(e,t){let n=e.getValue("willChange");if(q(n)&&n.add)return n.add(t);if(!n&&eP.WillChange){let n=new eP.WillChange("auto");e.addValue("willChange",n),n.add(t)}}let nA=(e,t)=>n=>t(e(n)),nR=(...e)=>e.reduce(nA);function nM(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nL(e,t){return n=>n>0?t:e}let nN=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nj=[y,v,C];function nD(e){let t=nj.find(t=>t.test(e));if(er(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===C&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=nM(a,r,e+1/3),o=nM(a,r,e),s=nM(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let nI=(e,t)=>{let n=nD(e),r=nD(t);if(!n||!r)return nL(e,t);let i={...n};return e=>(i.red=nN(n.red,r.red,e),i.green=nN(n.green,r.green,e),i.blue=nN(n.blue,r.blue,e),i.alpha=tF(n.alpha,r.alpha,e),v.transform(i))},nO=new Set(["none","hidden"]);function nF(e,t){return n=>tF(e,t,n)}function nV(e){return"number"==typeof e?nF:"string"==typeof e?el(e)?nL:P.test(e)?nI:n$:Array.isArray(e)?nB:"object"==typeof e?P.test(e)?nI:nz:nL}function nB(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nV(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nz(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nV(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let n$=(e,t)=>
1{let n=O.createTransformer(t),r=N(e),i=N(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return er(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nL(e,t);if(nO.has(e)&&!i.values.length||nO.has(t)&&!r.values.length)return nO.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nR(nB(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n)};function nU(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tF(e,t,n):nV(e)(e,t)}let n_=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eM.update(t,e),stop:()=>eL(t),now:()=>eN.isProcessing?eN.timestamp:tr.now()}};function nW(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nH(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let nK=.01,nG=2,nY=.005,nX=.5;function nq(e,t){return e*Math.sqrt(1-t*t)}let nZ=["duration","bounce"],nJ=["stiffness","damping","mass"];function nQ(e,t){return t.some(t=>void 0!==e[t])}function n0(e=.3,t=.3){let n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,s=r.keyframes[0],l=r.keyframes[r.keyframes.length-1],u={done:!1,value:s},{stiffness:c,damping:d,mass:h,duration:f,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!nQ(e,nJ)&&nQ(e,nZ))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*a(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;er(e<=eH(10),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=a(.05,1,s),e=a(.01,10,e/1e3),s<1?(i=t=>{let r=t*s,i=r*e;return .001-(r-n)/nq(t,s)*Math.exp(-i)},o=t=>{let r=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-r),l=nq(Math.pow(t,2),s);return(r*n+n-o)*a*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=eH(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),g=p||0,v=d/(2*Math.sqrt(c*h)),y=l-s,x=Math.sqrt(c/h)/1e3,b=5>Math.abs(y);if(i||(i=b?nK:nG),o||(o=b?nY:nX),v<1){let e=nq(x,v);n=t=>l-Math.exp(-v*x*t)*((g+v*x*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===v)n=e=>l-Math.exp(-x*e)*(y+(g+x*y)*e);else{let e=x*Math.sqrt(v*v-1);n=t=>{let n=Math.exp(-v*x*t),r=Math.min(e*t,300);return l-n*((g+v*x*y)*Math.sinh(r)+e*y*Math.cosh(r))/e}}let w={calculatedDuration:m&&f||null,next:e=>{let t=n(e);if(m)u.done=e>=f;else{let r=0===e?g:0;v<1&&(r=0===e?eH(g):nH(n,e,t));let s=Math.abs(l-t)<=o;u.done=Math.abs(r)<=i&&s}return u.value=u.done?l:t,u},toString:()=>{let e=Math.min(nW(w),2e4),t=e4(t=>w.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return w}function n1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h,f=e[0],p={done:!1,value:f},m=n*t,g=f+m,v=void 0===s?g:s(g);v!==g&&(m=v-f);let y=e=>-m*Math.exp(-e/r),x=e=>v+y(e),b=e=>{let t=y(e),n=x(e);p.done=Math.abs(t)<=u,p.value=p.done?v:n},w=e=>{let t;if(t=p.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,h=n0({keyframes:[p.value,(n=p.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:nH(x,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>
1=d)?h.next(e-d):(t||b(e),p)}}}n0.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nW(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:i/1e3}}(e,100,n0);return e.ease=t.ease,e.duration=eH(t.duration),e.type="keyframes",e};let n2=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n5(e,t,n,r){return e===t&&n===r?eC:i=>0===i||1===i?i:n2(function(e,t,n,r,i){let o,s,a=0;do(o=n2(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12)return s}(i,0,1,e,n),t,r)}let n3=n5(.42,0,1,1),n4=n5(0,0,.58,1),n8=n5(.42,0,.58,1),n9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n6=e=>t=>1-e(1-t),n7=n5(.33,1.53,.69,.99),re=n6(n7),rt=n9(re),rn=e=>(e*=2)<1?.5*re(e):.5*(2-Math.pow(2,-10*(e-1))),rr=e=>1-Math.sin(Math.acos(e)),ri=n6(rr),ro=n9(rr),rs={linear:eC,easeIn:n3,easeInOut:n8,easeOut:n4,circIn:rr,circInOut:ro,circOut:ri,backIn:re,backInOut:rt,backOut:n7,anticipate:rn},ra=e=>{if(e5(e)){ei(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return n5(t,n,r,i)}return"string"==typeof e?(ei(void 0!==rs[e],`Invalid easing type '${e}'`,"invalid-easing-type"),rs[e]):e},rl=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function ru({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o,s=Array.isArray(r)&&"number"!=typeof r[0]?r.map(ra):ra(r),l={done:!1,value:t[0]},u=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ei(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,n){let r=[],i=n||eP.mix||nU,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nR(Array.isArray(t)?t[n]||eC:t,o)),r.push(o)}return r}(t,r,i),u=l.length,c=n=>{if(s&&n<e[0])return t[0];let r=0;if(u>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rl(e[r],e[r+1],n);return l[r](i)};return n?t=>c(a(e[0],e[o-1],t)):c}((i=n&&n.length===t.length?n:(!function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rl(0,t,r);e.push(tF(n,1,i))}}(o=[0],t.length-1),o),i.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||n8).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(l.value=u(t),l.done=t>=e,l)}}let rc={decay:n1,inertia:n1,tween:ru,keyframes:ru,spring:n0};function rd(e){"string"==typeof e.type&&(e.type=rc[e.type])}let rh=e=>e/100;class rf extends e1{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tr.now()&&this.tick(tr.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},e2.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rd(e);let{type:t=ru,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:s}=e,a=t||ru;a!==ru&&"number"!=typeof s[0]&&(this.mixKeyframes=nR(rh,nU(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s});"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nW(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:h,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let x=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(n=1-n,f&&(n-=f/s)):"mirror"===h&&(b=o)),x=a(0,1,n)*s}let w=y?{done:!1,value:c[0]}:b.next(x);i&&(w.value=i(w.value));let{done:S}=w;y||null===l||(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&S);return E&&p!==n1&&(w.value=e0(c,this.options,g,this.speed)),m&&m(w.value),E&&this.finish(),w}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=eH(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(tr.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=n_,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tr.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,e2.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rp={anticipate:rn,backInOut:rt,circInOut:ro};class rm extends e7{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rp&&(e.ease=rp[e.ease])}(e),rd(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let s=new rf({...o,autoplay:!1}),l=Math.max(10,tr.now()-this.startTime),u=a(0,10,l-10);t.setWithVelocity(s.sample(Math.max(0,l-u)).value,s.sample(l).value,u),s.stop()}}let rg=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(O.test(e)||"0"===e)&&!e.startsWith("url("));function rv(e){e.duration=0,e.type="keyframes"}let ry=new Set(["opacity","clipPath","filter","transform"]),rx=eX(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rb extends e1{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:
1o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tr.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...c},h=u?.KeyframeResolver||ez;this.keyframeResolver=new h(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=n;this.resolvedAt=tr.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=rg(i,t),a=rg(o,t);return er(s===a,`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`,"value-not-animatable"),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e6(n))&&r)}(e,i,o,s)&&((eP.instantAnimations||!a)&&u?.(e0(e,n,t)),e[0]=e[e.length-1],rv(n),n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return rx()&&n&&ry.has(n)&&("transform"!==n||!l)&&!a&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(c),h=c.motionValue?.owner?.current,f=d?new rm({...c,element:h}):new rf(c);f.finished.then(()=>{this.notifyFinished()}).catch(eC),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eF=!0,eB(),eV(),eF=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rw={type:"spring",stiffness:500,damping:25,restSpeed:10},rS={type:"keyframes",duration:.8},rE={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rT=e=>null!==e,rk=(e,t,n,r={},i,o)=>a=>{let l=nk(r,e)||{},u=l.delay||r.delay||0,{elapsed:c=0}=r;c-=eH(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rS:s.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rw:rE)(e,d)),d.duration&&(d.duration=eH(d.duration)),d.repeatDelay&&(d.repeatDelay=eH(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(rv(d),0===d.delay&&(h=!0)),(eP.instantAnimations||eP.skipAnimations||i?.shouldSkipAnimations)&&(h=!0,rv(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,h&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"}){let r=e.filter(rT),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return r[i]}(d.keyframes,l);if(void 0!==e)return void eM.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new rf(d):new rb(d)};function rC(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?nT(o,l):l;let u=o?.reduceMotion;r&&(o=r);let c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let s={delay:n,...nk(o||{},t)},l=r.get();if(void 0!==l&&!r.isAnimating&&!Array.isArray(i)&&i===l&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[nv];
1if(n){let e=window.MotionHandoffAnimation(n,t,eM);null!==e&&(s.startTime=e,h=!0)}}nP(e,t);let f=u??e.shouldReduceMotion;r.start(rk(t,r,i,f&&Z.has(t)?{type:!1}:s,e,h));let p=r.animation;p&&c.push(p)}if(s){let t=()=>eM.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=nE(e,t)||{};for(let t in i={...i,...n}){var o;let n=nC(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,to(n))}}(e,s)});c.length?Promise.all(c).then(t):t()}return c}function rP(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function rA(e,t,n={}){let r=nE(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rC(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rA(l,t,{...s,delay:n+("function"==typeof r?0:r)+rP(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}let rR=td.length;function rM(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rL=[...tc].reverse(),rN=tc.length;function rj(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rD(){return{animate:rj(!0),whileInView:rj(),whileHover:rj(),whileTap:rj(),whileDrag:rj(),whileFocus:rj(),exit:rj()}}let rI=0;function rO(e){return[e("x"),e("y")]}let rF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),rV=new Set(["INPUT","SELECT","TEXTAREA"]);function rB(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let rz={x:!1,y:!1};function r$(e){return e.max-e.min}function rU(e,t,n,r=.5){e.origin=r,e.originPoint=tF(t.min,t.max,e.origin),e.scale=r$(n)/r$(t),e.translate=tF(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r_(e,t,n,r){rU(e.x,t.x,n.x,r?r.originX:void 0),rU(e.y,t.y,n.y,r?r.originY:void 0)}function rW(e,t,n){e.min=n.min+t.min,e.max=e.min+r$(t)}function rH(e,t,n){e.min=t.min-n.min,e.max=e.min+r$(t)}function rK(e,t,n){rH(e.x,t.x,n.x),rH(e.y,t.y,n.y)}function rG(e){return"object"==typeof e&&null!==e}function rY(e){return rG(e)&&"ownerSVGElement"in e}function rX(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}let rq=new WeakMap,rZ=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:rY(r)&&"getBBox"in r?r.getBBox()[t]:r[n],rJ=rZ("inline","width","offsetWidth"),rQ=rZ("block","height","offsetHeight");function r0({target:e,borderBoxSize:t}){rq.get(e)?.forEach(n=>{n(e,{get width(){return rJ(e,t)},get height(){return rQ(e,t)}})})}function r1(e){e.forEach(r0)}let r2=new Set;function r5(e,t){let n;return"function"==typeof e?(r2.add(e),i||(i=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};r2.forEach(t=>t(e))},window.addEventListener("resize",i)),()=>{r2.delete(e),r2.size||"function"!=typeof i||(window.removeEventListener("resize",i),i=void 0)}):(!r&&"u">typeof ResizeObserver&&(r=new ResizeObserver(r1)),(n=rX(e)).forEach(e=>{let n=rq.get(e);n||(n=new Set,rq.set(e,n)),n.add(t),r?.observe(e)}),()=>{n.forEach(e=>{let n=rq.get(e);n?.delete(t),n?.size||r?.unobserve(e)})})}let r3=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function r4(e){return{point:{x:e.pageX,y:e.pageY}}}function r8(e,t,n,r){return rB(e,t,e=>r3(e)&&n(e,r4(e)),r)}let r9=({current:e})=>e?e.ownerDocument.defaultView:null,r6=(e,t)=>Math.abs(e-t),r7=new Set(["auto","scroll"]);class ie{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=ii(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(r6(e.x,t.x)**2+r6(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=eN;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>
1{this.lastMoveEvent=e,this.lastMoveEventInfo=it(t,this.transformPagePoint),eM.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ii("pointercancel"===e.type?this.lastMoveEventInfo:it(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!r3(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const a=it(r4(e),this.transformPagePoint),{point:l}=a,{timestamp:u}=eN;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,ii(a,this.history)),this.removeListeners=nR(r8(this.contextWindow,"pointermove",this.handlePointerMove),r8(this.contextWindow,"pointerup",this.handlePointerUp),r8(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(r7.has(e.overflowX)||r7.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eM.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eL(this.updatePoint)}}function it(e,t){return t?{point:t(e.point)}:e}function ir(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ii({point:e},t){return{point:e,delta:ir(e,io(t)),offset:ir(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=io(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>eH(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*eH(.1)&&(n=e[1]);let i=(r.timestamp-n.timestamp)/1e3;if(0===i)return{x:0,y:0};let o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function io(e){return e[e.length-1]}function is(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ia(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function il(e,t,n){return{min:iu(e,t),max:iu(e,n)}}function iu(e,t){return"number"==typeof e?e:e[t]||0}let ic=new WeakMap;class id{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=X(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(r4(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rz[e])return null;else return rz[e]=!0,()=>{rz[e]=!1};return rz.x||rz.y?null:(rz.x=rz.y=!0,()=>{rz.x=rz.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rO(e=>{let t=this.getAxisMotionValue(e).get()||0;if(w.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=r$(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eM.update(()=>i(e,t),!1,!0),nP(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&eM.update(()=>o(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:u}=this.getProps();
1this.panSession=new ie(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:n,contextWindow:r9(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&eM.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ip(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tF(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tF(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nx(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:is(e.x,n,i),y:is(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:il(e,"left","right"),y:il(e,"top","bottom")}}(t),r!==this.constraints&&!nx(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rO(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nx(t))return!1;let r=t.current;ei(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=t0(e,n),{scroll:i}=t;return i&&(tZ(r.x,i.offset.x),tZ(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:ia(e.x,o.x),y:ia(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=t_(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rO(s=>{if(!ip(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nP(this.visualElement,e),n.start(rk(e,n,0,t,this.visualElement,!1))}stopAnimation(){rO(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rO(t=>{let{drag:n}=this.getProps();if(!ip(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-tF(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nx(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rO(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,s,l,u=t.get();r[e]=(n={min:u,max:u},i=this.constraints[e],o=.5,s=r$(n),(l=r$(i))>s?o=rl(i.min,i.max-s,n.min):s>l&&(o=rl(n.min,n.max-l,i.min)),a(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rO(t=>{if(!ip(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tF(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;ic.set(this.visualElement,this);let t=this.visualElement.current,n=r8(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(rV.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{var n,r,i;let o,s,{dragConstraints:a}=this.getProps();nx(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=a.current,o=r5(n,ih(i=()=>this.scalePositionWithinConstraints())),s=r5(r,ih(i)),e=()=>{o(),s()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),eM.read(r);let s=rB(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rO(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ih(e){let t=!0;return()=>{if(t){t=!1;return}e()}}
1function ip(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let im=e=>(t,n)=>{e&&eM.update(()=>e(t,n),!1,!0)},ig={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var iv=t2;let iy=!1;class ix extends iv.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iy&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ig.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),iy=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eM.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tt.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iy=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ib(e){let[t,n]=function(e=!0){let t=(0,t2.useContext)(nl);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,t2.useId)();(0,t2.useEffect)(()=>{if(e)return i(o)},[e]);let s=(0,t2.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}(),r=(0,iv.useContext)(t8);return(0,t4.jsx)(ix,{...e,layoutGroup:r,switchLayoutGroup:(0,iv.useContext)(ny),isPresent:t,safeToRemove:n})}let iw=["TopLeft","TopRight","BottomLeft","BottomRight"],iS=iw.length,iE=e=>"string"==typeof e?parseFloat(e):e,iT=e=>"number"==typeof e||S.test(e);function ik(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iC=iA(0,.5,ri),iP=iA(.5,.95,eC);function iA(e,t,n){return r=>r<e?0:r>t?1:n(rl(e,t,r))}function iR(e,t){e.min=t.min,e.max=t.max}function iM(e,t){iR(e.x,t.x),iR(e.y,t.y)}function iL(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iN(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}
1function ij(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(w.test(t)&&(t=parseFloat(t),t=tF(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tF(o.min,o.max,r);e===o&&(a-=t),e.min=iN(e.min,t,n,a,i),e.max=iN(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let iD=["x","scaleX","originX"],iI=["y","scaleY","originY"];function iO(e,t,n,r){ij(e.x,t,iD,n?n.x:void 0,r?r.x:void 0),ij(e.y,t,iI,n?n.y:void 0,r?r.y:void 0)}function iF(e){return 0===e.translate&&1===e.scale}function iV(e){return iF(e.x)&&iF(e.y)}function iB(e,t){return e.min===t.min&&e.max===t.max}function iz(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i$(e,t){return iz(e.x,t.x)&&iz(e.y,t.y)}function iU(e){return r$(e.x)/r$(e.y)}function i_(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iW{constructor(){this.members=[]}add(e){eK(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1===r.isConnected&&!1!==n.isPresent&&!n.snapshot&&eG(this.members,n)}e.scheduleRender()}remove(e){if(eG(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e],r=n.instance;if(!1!==n.isPresent&&(!r||!1!==r.isConnected)){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;if(void 0===r||void 0===i||r!==i){let r=n.instance;!(r&&!1===r.isConnected&&!n.snapshot)&&(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0))}let{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iH=(e,t)=>e.depth-t.depth;class iK{constructor(){this.children=[],this.isDirty=!1}add(e){eK(this.children,e),this.isDirty=!0}remove(e){eG(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iH),this.isDirty=!1,this.children.forEach(e)}}let iG=["","X","Y","Z"],iY=0;function iX(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iq({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=iY++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iQ),this.nodes.forEach(i8),this.nodes.forEach(i9),this.nodes.forEach(i0)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new iK)}
1addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eY),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=rY(t)&&!(rY(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eM.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=tr.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(eL(o),i(n-250))},eM.setup(o,!0),n=()=>eL(o),ig.hasAnimatedSinceResize&&(ig.hasAnimatedSinceResize=!1,this.nodes.forEach(i4))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||or,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!i$(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nk(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||i4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eL(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(i6),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nv];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eM,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(i2);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(i5);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i3),this.nodes.forEach(iZ),this.nodes.forEach(iJ)):this.nodes.forEach(i5),this.clearAllSnapshots();let e=tr.now();eN.delta=a(0,1e3/60,e-eN.timestamp),eN.timestamp=e,eN.isProcessing=!0,ej.update.process(eN),ej.preRender.process(eN),ej.render.process(eN),eN.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tt.read(this.scheduleUpdate))}
1clearAllSnapshots(){this.nodes.forEach(i1),this.sharedNodes.forEach(i7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eM.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eM.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||r$(this.snapshot.measuredBox.x)||r$(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=X(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iV(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tK(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),os((t=r).x),os(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return X();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(ol))){let{scroll:e}=this.root;e&&(tZ(t.x,e.offset.x),tZ(t.y,e.offset.y))}return t}removeElementScroll(e){let t=X();if(iM(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&iM(t,e),tZ(t.x,i.offset.x),tZ(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=X();iM(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&tQ(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),tK(r.latestValues)&&tQ(n,r.latestValues)}return tK(this.latestValues)&&tQ(n,this.latestValues),n}removeTransform(e){let t=X();iM(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!tK(n.latestValues))continue;tH(n.latestValues)&&n.updateSnapshot();let r=X();iM(r,n.measurePageBox()),iO(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return tK(this.latestValues)&&iO(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eN.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eN.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=X(),this.targetWithTransforms=X()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,rW(s.x,a.x,l.x),rW(s.y,a.y,l.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iM(this.target,this.layout.layoutBox),tq(this.target,this.targetDelta)):iM(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tH(this.parent.latestValues)||tG(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=X(),this.relativeTargetOrigin=X(),rK(this.relativeTargetOrigin,t,n),iM(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eN.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iM(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&tQ(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,tq(e,o)),r&&tK(i.latestValues)&&tQ(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=X());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iL(this.prevProjectionDelta.x,this.projectionDelta.x),iL(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r_(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&i_(this.projectionDelta.x,this.prevProjectionDelta.x)&&i_(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=G(),this.projectionDelta=G(),this.projectionDeltaWithTransform=G()}setAnimationOrigin(e,t=!1){let n,r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=G();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=X(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(on));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(oe(s.x,e.x,r),oe(s.y,e.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p,m,g;rK(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,g=r,ot(f.x,p.x,m.x,g),ot(f.y,p.y,m.y,g),n&&(u=this.relativeTarget,h=n,iB(u.x,h.x)&&iB(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=X()),iM(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=tF(0,n.opacity??1,iC(r)),e.opacityExit=tF(t.o
1pacity??1,0,iP(r))):o&&(e.opacity=tF(t.opacity??1,n.opacity??1,r));for(let i=0;i<iS;i++){let o=`border${iw[i]}Radius`,s=ik(t,o),a=ik(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||iT(s)===iT(a)?(e[o]=Math.max(tF(iE(s),iE(a),r),0),(w.test(a)||w.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tF(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eL(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eM.update(()=>{var t,n,r;let i;ig.hasAnimatedSinceResize=!0,e2.layout++,this.motionValue||(this.motionValue=to(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,n=[0,1e3],r={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{e2.layout--},onComplete:()=>{e2.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}},(i=q(t)?t:to(t)).start(rk("",i,n,r)),i.animation),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&oa(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||X();let t=r$(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=r$(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iM(t,n),tQ(t,i),r_(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iW),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iX("z",e,r,this.animationValues);for(let t=0;t<iG.length;t++)iX(`rotate${iG[t]}`,e,r,this.animationValues),iX(`skew${iG[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=na(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=na(t?.pointerEvents)||""),this.hasProjected&&!tK(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
1let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tV){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=tV[t],l="none"===o?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?na(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(i2),this.root.sharedNodes.clear()}}}function iZ(e){e.updateLayout()}function iJ(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?rO(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=r$(r);r.min=n[e].min,r.max=r.min+i}):oa(i,t.layoutBox,n)&&rO(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=r$(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=G();r_(s,n,t.layoutBox);let a=G();o?r_(a,e.applyTransform(r,!0),t.measuredBox):r_(a,n,t.layoutBox);let l=!iV(s),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=X();rK(s,t.layoutBox,i.layoutBox);let a=X();rK(a,n,o.layoutBox),i$(s,a)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iQ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function i0(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function i1(e){e.clearSnapshot()}function i2(e){e.clearMeasurements()}function i5(e){e.isLayoutDirty=!1}function i3(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i8(e){e.resolveTargetDelta()}function i9(e){e.calcProjection()}function i6(e){e.resetSkewAndRotation()}function i7(e){e.removeLeadSnapshot()}function oe(e,t,n){e.translate=tF(t.translate,0,n),e.scale=tF(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ot(e,t,n,r){e.min=tF(t.min,n.min,r),e.max=tF(t.max,n.max,r)}function on(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let or={duration:.45,ease:[.4,0,.1,1]},oi=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),oo=oi("applewebkit/")&&!oi("chrome/")?Math.round:eC;function os(e){e.min=oo(e.min),e.max=oo(e.max)}function oa(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iU(t)-iU(n)))}function ol(e){return e!==e.root&&e.scroll?.wasRoot}let ou=iq({attachResizeListener:(e,t)=>rB(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),oc={current:void 0},od=iq({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oc.current){let e=new ou({});e.mount(window),e.setOptions({layoutScroll:!0}),oc.current=e}return oc.current},resetTransform:(e,t)=>
1{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function oh(e,t){let n=rX(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function of(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eM.postRender(()=>i(t,r4(t)))}let op=(e,t)=>!!t&&(e===t||op(e,t.parentElement)),om=new WeakSet;function og(e){return t=>{"Enter"===t.key&&e(t)}}function ov(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oy(e){return r3(e)&&!(rz.x||rz.y)}let ox=new WeakSet;function ob(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eM.postRender(()=>i(t,r4(t)))}let ow=new WeakMap,oS=new WeakMap,oE=e=>{let t=ow.get(e.target);t&&t(e)},oT=e=>{e.forEach(oE)},ok={some:0,all:1},oC=function(e,t){if("u"<typeof Proxy)return nw;let n=new Map,r=(n,r)=>nw(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,nw(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends nS{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rA(e,t,n)));else if("string"==typeof t)r=rA(e,t,n);else{let i="function"==typeof t?nE(e,t,n.custom):t;r=Promise.all(rC(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rD(),r=!0,i=t=>(n,r)=>{let i=nE(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){let{props:s}=e,a=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rR;e++){let r=td[e],i=t.props[r];(tu(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<rN;t++){var h,f;let p=rL[t],m=n[p],g=void 0!==s[p]?s[p]:a[p],v=tu(g),y=p===o?m.isActive:null;!1===y&&(d=t);let x=g===a[p]&&g!==s[p]&&v;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),m.protectedKeys={...c},!m.isActive&&null===y||!g&&!m.prevProp||tl(g)||"boolean"==typeof g)continue;if("exit"===p&&m.isActive&&!0!==y){m.prevResolvedValues&&(c={...c,...m.prevResolvedValues});continue}let b=(h=m.prevProp,"string"==typeof(f=g)?f!==h:!!Array.isArray(f)&&!rM(f,h)),w=b||p===o&&m.isActive&&!x&&v||t>d&&v,S=!1,E=Array.isArray(g)?g:[g],T=E.reduce(i(p),{});!1===y&&(T={});let{prevResolvedValues:k={}}=m,C={...k,...T},P=t=>{w=!0,u.has(t)&&(S=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=T[e],n=k[e];if(!c.hasOwnProperty(e))(nC(t)&&nC(n)?rM(t,n):t===n)?void 0!==t&&u.has(e)?P(e):m.protectedKeys[e]=!0:null!=t?P(e):u.add(e)}m.prevProp=g,m.prevResolvedValues=T,m.isActive&&(c={...c,...T}),r&&e.blockInitialAnimation&&(w=!1);let A=x&&b,R=!A||S;w&&R&&l.push(...E.map(t=>{let n={type:p};if("string"==typeof t&&r&&!A&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nE(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rP(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof s.initial){let n=nE(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rD()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends nS{constructor(){super(...arguments),this.id=rI++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
1{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends nS{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.unmount();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:s}=n,a={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:ok[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};return e=this.node.current,t=function({root:e,...t}){let n=e||document;oS.has(n)||oS.set(n,{});let r=oS.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oT,{root:e,...t})),r[i]}(a),ow.set(e,l),t.observe(e),()=>{ow.delete(e),t.unobserve(e)}}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends nS{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=oh(e,n),s=e=>{let r=e.currentTarget;if(!oy(e)||ox.has(e))return;om.add(r),n.stopPropagation&&ox.add(e);let o=t(r,e),s=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),om.has(r)&&om.delete(r),oy(e)&&"function"==typeof o&&o(e,{success:t})},a=e=>{s(e,r===window||r===document||n.useGlobalTarget||op(r,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),rG(e)&&"offsetHeight"in e&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=og(()=>{if(om.has(n))return;ov(n,"down");let e=og(()=>{ov(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>ov(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),rF.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ob(this.node,t,"Start"),(e,{success:t})=>ob(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends nS{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nR(rB(this.node.current,"focus",()=>this.onFocus()),rB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nS{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=oh(e,n);return r.forEach(e=>{let n,r=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rz.x||rz.y)return;o=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",a,i)},i)}),o}(e,(e,t)=>(of(this.node,t,"Start"),e=>of(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends nS{constructor(){super(...arguments),this.removePointerDownListener=eC}onPointerDown(e){this.session=new ie(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r9(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:im(e),onStart:im(t),onMove:im(n),onEnd:(e,t)=>{delete this.session,r&&eM.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=r8(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nS{constructor(e){super(e),this.removeGroupControls=eC,this.removeListeners=eC,this.controls=new id(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eC}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:od,MeasureLayout:ib},layout:{ProjectionNode:od,MeasureLayout:ib}},(e,t)=>t.isSVG??t3(e)?new tU(t):new t1(t,{allowProjection:e!==t2.Fragment}));e.s(["motion",0,oC],789057)},492129,e=>{"use strict";var t=e.i(39887),n=e.i(148500),r=e.i(540509);let i=(0,n.createContext)(null);function o(e){return e.offsetHeight>0?e.getBoundingClientRect().height/e.offsetHeight:0}function s(e,t){let r=(0,n.useRef)(t);r.current=t,(0,n.useEffect)(()=>r.current()),(0,n.useEffect)(()=>
1{if(!e)return;let t=()=>r.current(),n="u">typeof ResizeObserver?new ResizeObserver(t):null;return n?.observe(e),window.addEventListener("resize",t),()=>{n?.disconnect(),window.removeEventListener("resize",t)}},[e])}e.s(["PAGE_GRADIENT_START_ATTRIBUTE",0,{"data-page-gradient-start":""},"PageBackground",0,function({data:e,opensWithFullScreenHeader:a=!1,className:l,children:u}){let c=(0,r.hasPageGradient)(e),d=c?(0,r.getPageBackground)(e):null,[h,f]=(0,n.useState)(null),[p,m]=(0,n.useState)(null);s(h,()=>{if(!h||!c)return;let e=o(h);if(!e)return;let t=h.querySelector("[data-page-gradient-start]"),n=t?Math.max(0,(t.getBoundingClientRect().bottom-h.getBoundingClientRect().top)/e):0;m(e=>null!==e&&.5>Math.abs(e-n)?e:n)});let g=null!==p?`${p}px`:a?"100vh":"0px",v=d?{background:d,"--page-gradient-start":g}:void 0;return(0,t.jsx)(i.Provider,{value:d,children:(0,t.jsx)("div",{ref:f,"data-page-background":"",className:l,style:v,children:u})})},"PageGradientContext",0,i,"usePageGradientSlice",0,function(e,t){let[r,i]=(0,n.useState)(null),[a,l]=(0,n.use
1State)(null);return s(a,()=>{let n=e.current,r=t?n?.closest("[data-page-background]")??null:null;if(l(r),!n||!r)return void i(e=>null===e?e:null);let s=o(r);if(!s)return;let a={height:r.offsetHeight,offset:(n.getBoundingClientRect().top-r.getBoundingClientRect().top)/s};i(e=>e&&e.height===a.height&&.5>Math.abs(e.offset-a.offset)?e:a)}),r}])},103299,e=>{"use strict";var t=e.i(148500),n=e.i(944987),r=e.i(88477),i=e.i(103431);function o(e,t){let n=Array.from(e.querySelectorAll("br"));if(n.length<2)return null;let r=e.getBoundingClientRect().top,i=0;for(let o=0;o<n.length-1;o++){let s=n[o],a=n[o+1],l=!0,u=document.createTreeWalker(e,NodeFilter.SHOW_ALL,null);u.currentNode=s;let c=u.nextNode();for(;c&&c!==a;){if(c.nodeType===Node.TEXT_NODE&&c.textContent&&""!==c.textContent.trim()){l=!1;break}c=u.nextNode()}if(l&&c===a){if(++i===t)return a.getBoundingClientRect().top-r;o++}}return null}let s=e=>(0,i.pickTranslation)({en:{more:"More",less:"Less",viewAll:"View All",showLess:"Show Less",itemLink:"MORE",readArticle:"Read article",getTickets:"Get Tickets",learnMore:"Learn more",downloadPdf:"Download PDF",openLink:"Open Link",contactCta:"Get in Touch",buyNow:"Buy Now",upcoming:"UPCOMING",past:"PAST",programme:"PROGRAMME",cast:"CAST",otherEvents:"OTHER EVENTS",previous:"Previous",next:"Next",mute:"Mute",unmute:"Unmute"},de:{more:"Mehr",less:"Weniger",viewAll:"Alle anzeigen",showLess:"Weniger anzeigen",itemLink:"MEHR",readArticle:"Artikel lesen",getTickets:"Tickets kaufen",learnMore:"Mehr erfahren",downloadPdf:"PDF herunterladen",openLink:"Link öffnen",contactCta:"Kontakt aufnehmen",buyNow:"Jetzt kaufen",upcoming:"BEVORSTEHEND",past:"VERGANGEN",programme:"PROGRAMM",cast:"BESETZUNG",otherEvents:"WEITERE TERMINE",previous:"Zurück",next:"Weiter",mute:"Ton aus",unmute:"Ton an"},fr:{more:"Plus",less:"Moins",viewAll:"Voir tout",showLess:"Voir moins",itemLink:"PLUS",readArticle:"Lire l’article",getTickets:"Billets",learnMore:"En savoir plus",downloadPdf:"Télécharger le PDF",openLink:"Ouvrir le lien",contactCta:"Me contacter",buyNow:"Acheter",upcoming:"À VENIR",past:"PASSÉS",programme:"PROGRAMME",cast:"DISTRIBUTION",otherEvents:"AUTRES DATES",previous:"Précédent",next:"Suivant",mute:"Couper le son",unmute:"Activer le son"},es:{more:"Más",less:"Menos",viewAll:"Ver todo",showLess:"Mostrar menos",itemLink:"MÁS",readArticle:"Leer artículo",getTickets:"Comprar entradas",learnMore:"Saber más",downloadPdf:"Descargar PDF",openLink:"Abrir enlace",contactCta:"Contactar",buyNow:"Comprar ahora",upcoming:"PRÓXIMOS",past:"PASADOS",programme:"PROGRAMA",cast:"REPARTO",otherEvents:"OTROS CONCIERTOS",previous:"Anterior",next:"Siguiente",mute:"Silenciar",unmute:"Activar sonido"},it:{more:"Più",less:"Meno",viewAll:"Vedi tutto",showLess:"Mostra meno",itemLink:"PIÙ",readArticle:"Leggi l’articolo",getTickets:"Acquista biglietti",learnMore:"Scopri di più",downloadPdf:"Scarica il PDF",openLink:"Apri il link",contactCta:"Contattami",buyNow:"Acquista ora",upcoming:"PROSSIMI",past:"PASSATI",programme:"PROGRAMMA",cast:"CAST",otherEvents:"ALTRI EVENTI",previous:"Precedente",next:"Successivo",mute:"Disattiva audio",unmute:"Attiva audio"},pt:{more:"Mais",less:"Menos",viewAll:"Ver tudo",showLess:"Mostrar menos",itemLink:"MAIS",readArticle:"Ler artigo",getTickets:"Comprar bilhetes",learnMore:"Saiba mais",downloadPdf:"Descarregar PDF",openLink:"Abrir ligação",contactCta:"Entrar em contacto",buyNow:"Comprar agora",upcoming:"PRÓXIMOS",past:"ANTERIORES",programme:"PROGRAMA",cast:"ELENCO",otherEvents:"OUTROS EVENTOS",previous:"Anterior",next:"Seguinte",mute:"Desativar som",unmute:"Ativar som"},ru:{more:"Ещё",less:"Меньше",viewAll:"Смотреть все",showLess:"Показать меньше",itemLink:"ЕЩЁ",readArticle:"Читать статью",getTickets:"Купить билеты",learnMore:"Узнать больше",downloadPdf:"Скачать PDF",openLink:"Открыть ссылку",contactCta:"Связаться",buyNow:"Купить",upcoming:"ПРЕДСТОЯЩИЕ",past:"ПРОШЕДШИЕ",programme:"ПРОГРАММА",cast:"ИСПОЛНИТЕЛИ",otherEvents:"ДРУГИЕ СОБЫТИЯ",previous:"Назад",next:"Вперёд",mute:"Выключить звук",unmute:"Включить звук"},ja:{more:"もっと見る",less:"閉じる",viewAll:"すべて見る",showLess:"閉じる",itemLink:"もっと見る",readArticle:"記事を読む",getTickets:"チケットを購入",learnMore:"詳しく見る",downloadPdf:"PDFをダウンロード",openLink:"リンクを開く",contactCta:"お問い合わせ",buyNow:"今すぐ購入",upcoming:"今後の公演",past:"過去の公演",programme:"プログラム",cast:"出演者",otherEvents:"その他の公演",previous:"前へ",next:"次へ",mute:"ミュート",unmute:"ミュート解除"},ko:{more:"더 보기",less:"접기",viewAll:"전체 보기",showLess:"접기",itemLink:"더 보기",readArticle:"기사 읽기",getTickets:"티켓 구매",learnMore:"자세히 보기",downloadPdf:"PDF 다운로드",openLink:"링크 열기",contactCta:"문의하기",buyNow:"지금 구매",upcoming:"예정 공연",past:"지난 공연",programme:"프로그램",cast:"출연진",otherEvents:"다른 공연",previous:"이전",next:"다음",mute:"음소거",unmute:"음소거 해제"},zh:{more:"更多",less:"收起",viewAll:"查看全部",showLess:"收起",itemLink:"更多",readArticle:"阅读文章",getTickets:"购买门票",learnMore:"了解更多",downloadPdf:"下载 PDF",o
1penLink:"打开链接",contactCta:"联系我",buyNow:"立即购买",upcoming:"即将上演",past:"往期演出",programme:"曲目",cast:"演出阵容",otherEvents:"其他演出",previous:"上一个",next:"下一个",mute:"静音",unmute:"取消静音"},ar:{more:"المزيد",less:"أقل",viewAll:"عرض الكل",showLess:"عرض أقل",itemLink:"المزيد",readArticle:"قراءة المقال",getTickets:"شراء التذاكر",learnMore:"اعرف المزيد",downloadPdf:"تنزيل PDF",openLink:"فتح الرابط",contactCta:"تواصل معي",buyNow:"اشترِ الآن",upcoming:"القادمة",past:"السابقة",programme:"البرنامج",cast:"المشاركون",otherEvents:"فعاليات أخرى",previous:"السابق",next:"التالي",mute:"كتم الصوت",unmute:"تشغيل الصوت"},hi:{more:"और देखें",less:"कम देखें",viewAll:"सभी देखें",showLess:"कम दिखाएं",itemLink:"और देखें",readArticle:"लेख पढ़ें",getTickets:"टिकट खरीदें",learnMore:"और जानें",downloadPdf:"PDF डाउनलोड करें",openLink:"लिंक खोलें",contactCta:"संपर्क करें",buyNow:"अभी खरीदें",upcoming:"आगामी",past:"पिछले",programme:"कार्यक्रम",cast:"कलाकार",otherEvents:"अन्य कार्यक्रम",previous:"पिछला",next:"अगला",mute:"आवाज़ बंद करें",unmute:"आवाज़ चालू करें"},nl:{more:"Meer",less:"Minder",viewAll:"Alles bekijken",showLess:"Minder tonen",itemLink:"MEER",readArticle:"Artikel lezen",getTickets:"Tickets kopen",learnMore:"Meer informatie",downloadPdf:"PDF downloaden",openLink:"Link openen",contactCta:"Neem contact op",buyNow:"Nu kopen",upcoming:"AANKOMEND",past:"EERDER",programme:"PROGRAMMA",cast:"BEZETTING",otherEvents:"ANDERE CONCERTEN",previous:"Vorige",next:"Volgende",mute:"Geluid uit",unmute:"Geluid aan"},sv:{more:"Mer",less:"Mindre",viewAll:"Visa alla",showLess:"Visa mindre",itemLink:"MER",readArticle:"Läs artikeln",getTickets:"Kö
1p biljetter",learnMore:"Läs mer",downloadPdf:"Ladda ner PDF",openLink:"Öppna länken",contactCta:"Kontakta mig",buyNow:"Köp nu",upcoming:"KOMMANDE",past:"TIDIGARE",programme:"PROGRAM",cast:"MEDVERKANDE",otherEvents:"ANDRA KONSERTER",previous:"FöregÃ¥ende",next:"Nästa",mute:"Stäng av ljudet",unmute:"SlÃ¥ pÃ¥ ljudet"},no:{more:"Mer",less:"Mindre",viewAll:"Vis alle",showLess:"Vis mindre",itemLink:"MER",readArticle:"Les artikkelen",getTickets:"Kjøp billetter",learnMore:"Les mer",downloadPdf:"Last ned PDF",openLink:"Åpne lenken",contactCta:"Ta kontakt",buyNow:"Kjøp nÃ¥",upcoming:"KOMMENDE",past:"TIDLIGERE",programme:"PROGRAM",cast:"MEDVIRKENDE",otherEvents:"ANDRE KONSERTER",previous:"Forrige",next:"Neste",mute:"SlÃ¥ av lyden",unmute:"SlÃ¥ pÃ¥ lyden"},da:{more:"Mere",less:"Mindre",viewAll:"Vis alle",showLess:"Vis mindre",itemLink:"MERE",readArticle:"Læs artiklen",getTickets:"Køb billetter",learnMore:"Læs mere",downloadPdf:"Download PDF",openLink:"Åbn linket",contactCta:"Kontakt mig",buyNow:"Køb nu",upcoming:"KOMMENDE",past:"TIDLIGERE",programme:"PROGRAM",cast:"MEDVIRKENDE",otherEvents:"ANDRE KONCERTER",previous:"Forrige",next:"Næste",mute:"SlÃ¥ lyden fra",unmute:"SlÃ¥ lyden til"},fi:{more:"Lisää",less:"Vähemmän",viewAll:"Näytä kaikki",showLess:"Näytä vähemmän",itemLink:"LISÄÄ",readArticle:"Lue artikkeli",getTickets:"Osta liput",learnMore:"Lue lisää",downloadPdf:"Lataa PDF",openLink:"Avaa linkki",contactCta:"Ota yhteyttä",buyNow:"Osta nyt",upcoming:"TULEVAT",past:"MENNEET",programme:"OHJELMA",cast:"ESIINTYJÄT",otherEvents:"MUUT TAPAHTUMAT",previous:"Edellinen",next:"Seuraava",mute:"Mykistä",unmute:"Poista mykistys"},uk:{more:"Більше",less:"Менше",viewAll:"Переглянути все",showLess:"Показати менше",itemLink:"БІЛЬШЕ",readArticle:"Читати статтю",getTickets:"Купити квитки",learnMore:"Дізнатися більше",downloadPdf:"Завантажити PDF",openLink:"Відкрити посилання",contactCta:"Зв’язатися",buyNow:"Купити",upcoming:"МАЙБУТНІ",past:"МИНУЛІ",programme:"ПРОГРАМА",cast:"ВИКОНАВЦІ",otherEvents:"ІНШІ ПОДІЇ",previous:"Назад",next:"Далі",mute:"Вимкнути звук",unmute:"Увімкнути звук"},ro:{more:"Mai mult",less:"Mai puțin",viewAll:"Vezi tot",showLess:"Arată mai puțin",itemLink:"MAI MULT",readArticle:"Citește articolul",getTickets:"Cumpără bilete",learnMore:"Află mai multe",downloadPdf:"Descarcă PDF",openLink:"Deschide linkul",contactCta:"Contactează-mă",buyNow:"Cumpără acum",upcoming:"VIITOARE",past:"TRECUTE",programme:"PROGRAM",cast:"DISTRIBUȚIE",otherEvents:"ALTE EVENIMENTE",previous:"Anterior",next:"Următor",mute:"Oprește sunetul",unmute:"Pornește sunetul"},gl:{more:"Máis",less:"Menos",viewAll:"Ver todo",showLess:"Mostrar menos",itemLink:"MÁIS",readArticle:"Ler o artigo",getTickets:"Comprar entradas",learnMore:"Saber máis",downloadPdf:"Descargar PDF",openLink:"Abrir a ligazón",contactCta:"Contactar",buyNow:"Mercar agora",upcoming:"PRÓXIMOS",past:"PASADOS",programme:"PROGRAMA",cast:"REPARTO",otherEvents:"OUTROS CONCERTOS",previous:"Anterior",next:"Seguinte",mute:"Silenciar",unmute:"Activar o son"},lt:{more:"Daugiau",less:"Mažiau",viewAll:"Rodyti viską",showLess:"Rodyti mažiau",itemLink:"DAUGIAU",readArticle:"Skaityti straipsnį",getTickets:"Pirkti bilietus",learnMore:"Sužinoti daugiau",downloadPdf:"Atsisiųsti PDF",openLink:"Atidaryti nuorodą",contactCta:"Susisiekti",buyNow:"Pirkti dabar",upcoming:"ARTĖJANTYS",past:"PRAĖJĘ",programme:"PROGRAMA",cast:"ATLIKĖJAI",otherEvents:"KITI RENGINIAI",previous:"Ankstesnis",next:"Kitas",mute:"IÅ¡jungti garsą",unmute:"Ä®jungti garsą"},sk:{more:"Viac",less:"Menej",viewAll:"ZobraziÅ¥ vÅ¡etko",showLess:"ZobraziÅ¥ menej",itemLink:"VIAC",readArticle:"ČítaÅ¥ článok",getTickets:"KúpiÅ¥ vstupenky",learnMore:"ZistiÅ¥ viac",downloadPdf:"StiahnuÅ¥ PDF",openLink:"OtvoriÅ¥ odkaz",contactCta:"KontaktovaÅ¥ ma",buyNow:"KúpiÅ¥ teraz",upcoming:"NADCHÁDZAJÚCE",past:"MINULÉ",programme:"PROGRAM",cast:"ÚÄ
1ŒINKUJÚCI",otherEvents:"ĎALÅ IE PODUJATIA",previous:"Predchádzajúci",next:"Ďalší",mute:"Vypnúť zvuk",unmute:"Zapnúť zvuk"},cs:{more:"Více",less:"Méně",viewAll:"Zobrazit vÅ¡e",showLess:"Zobrazit méně",itemLink:"VÍCE",readArticle:"Číst článek",getTickets:"Koupit vstupenky",learnMore:"Zjistit více",downloadPdf:"Stáhnout PDF",openLink:"Otevřít odkaz",contactCta:"Kontaktovat mě",buyNow:"Koupit nyní",upcoming:"NADCHÁZEJÍCÍ",past:"MINULÉ",programme:"PROGRAM",cast:"ÚČINKUJÍCÍ",otherEvents:"DALŠÍ AKCE",previous:"Předchozí",next:"Další",mute:"Vypnout zvuk",unmute:"Zapnout zvuk"},hu:{more:"Több",less:"Kevesebb",viewAll:"Összes megtekintése",showLess:"Kevesebb megjelenítése",itemLink:"TÖBB",readArticle:"Cikk elolvasása",getTickets:"Jegyvásárlás",learnMore:"További információ",downloadPdf:"PDF letöltése",openLink:"Link megnyitása",contactCta:"Kapcsolatfelvétel",buyNow:"Vásárlás most",upcoming:"KÖZELGŐ",past:"KORÁBBI",programme:"PROGRAM",cast:"KÖZREMŰKÖDŐK",otherEvents:"TOVÁBBI ESEMÉNYEK",previous:"Előző",next:"Következő",mute:"Némítás",unmute:"Némítás feloldása"},pl:{more:"Więcej",less:"Mniej",viewAll:"Zobacz wszystkie",showLess:"Pokaż mniej",itemLink:"WIĘCEJ",readArticle:"Przeczytaj artykuł",getTickets:"Kup bilety",learnMore:"Dowiedz się więcej",downloadPdf:"Pobierz PDF",openLink:"Otwórz link",contactCta:"Skontaktuj się",buyNow:"Kup teraz",upcoming:"NADCHODZĄCE",past:"MINIONE",programme:"PROGRAM",cast:"OBSADA",otherEvents:"INNE WYDARZENIA",previous:"Poprzedni",next:"Następny",mute:"Wycisz",unmute:"Włącz dźwięk"},tr:{more:"Daha fazla",less:"Daha az",viewAll:"Tümünü gör",showLess:"Daha az göster",itemLink:"DAHA FAZLA",readArticle:"Makaleyi oku",getTickets:"Bilet al",learnMore:"Daha fazla bilgi",downloadPdf:"PDF indir",openLink:"Bağlantıyı aç",contactCta:"İletişime geç",buyNow:"Şimdi satın al",upcoming:"YAKLAŞAN",past:"GEÇMİŞ",programme:"PROGRAM",cast:"SANATÇILAR",otherEvents:"DİĞER ETKİNLİKLER",previous:"Önceki",next:"Sonraki",mute:"Sesi kapat",unmute:"Sesi aç"},he:{more:"עוד",less:"פחות",viewAll:"הצגת הכול",showLess:"הצגת פחות",itemLink:"עוד",readArticle:"קריאת הכתבה",getTickets:"רכישת כרטיסים",learnMore:"מידע נוסף",downloadPdf:"הורדת PDF",openLink:"פתיחת הקישור",contactCta:"יצירת קשר",buyNow:"רכישה עכשיו",upcoming:"אירועים קרובים",past:"אירועים קודמים",programme:"תוכנית",cast:"משתתפים",otherEvents:"אירועים נוספים",previous:"הקודם",next:"הבא",mute:"השתקה",unmute:"ביטול השתקה"},ca:{more:"Més",less:"Menys",viewAll:"Mostra-ho tot",showLess:"Mostra menys",itemLink:"MÉS",readArticle:"Llegeix l’article",getTickets:"Compra entrades",learnMore:"Més informació",downloadPdf:"Descarrega el PDF",openLink:"Obre l’enllaç",contactCta:"Contacta amb mi",buyNow:"Compra ara",upcoming:"PROPERS",past:"PASSATS",programme:"PROGRAMA",cast:"REPARTIMENT",otherEvents:"ALTRES CONCERTS",previous:"Anterior",next:"Següent",mute:"Silencia",unmute:"Activa el so"},hr:{more:"ViÅ¡e",less:"Manje",viewAll:"Prikaži sve",showLess:"Prikaži manje",itemLink:"VIÅ E",readArticle:"Pročitaj članak",getTickets:"Kupi ulaznice",learnMore:"Saznaj viÅ¡e",downloadPdf:"Preuzmi PDF",openLink:"Otvori poveznicu",contactCta:"Kontaktiraj me",buyNow:"Kupi odmah",upcoming:"NADOLAZEĆI",past:"PROÅ LI",programme:"PROGRAM",cast:"IZVOĐAČI",otherEvents:"OSTALI DOGAĐAJI",previous:"Prethodni",next:"Sljedeći",mute:"Isključi zvuk",unmute:"Uključi zvuk"},sl:{more:"Več",less:"Manj",viewAll:"Prikaži vse",showLess:"Prikaži manj",itemLink:"VEČ",readArticle:"Preberi članek",getTickets:"Kupi vstopnice",learnMore:"Izvedi več",downloadPdf:"Prenesi PDF",openLink:"Odpri povezavo",contactCta:"Stopi v stik",buyNow:"Kupi zdaj",upcoming:"PRIHAJAJOČI",past:"PRETEKLI",programme:"PROGRAM",cast:"IZVAJALCI",otherEvents:"DRUGI DOGODKI",previous:"PrejÅ¡nji",next:"Naslednji",mute:"Izklopi zvok",unmute:"Vklopi zvok"},bg:{more:"Още",less:"По-малко",viewAll:"Виж всички",showLess:"Покажи по-малко",itemLink:"ОЩЕ",readArticle:"Прочети статията",getTickets:"Купи билети",learnMore:"Научи повече",downloadPdf:"Изтегли PDF",openLink:"Отвори връзката",contactCta:"Свържи се с мен",buyNow:"Купи сега",upcoming:"ПРЕДСТОЯЩИ",past:"МИНАЛИ",programme:"ПРОГРАМА",cast:"ИЗПЪЛНИТЕЛИ",otherEvents:"ДРУГИ СЪБИТИЯ",previous:"Назад",next:"Напред",mute:"Изключи звука",unmute:"Включи звука"},et:{more:"Rohkem",less:"Vähem",viewAll:"Vaata kõiki",showLess:"Näita vähem",itemLink:"ROHKEM",readArticle:"Loe artiklit",getTickets:"Osta piletid",learnMore:"Loe lähemalt",downloadPdf:"Laadi PDF alla",openLink:"Ava link",contactCta:"Võta ühendust",buyNow:"Osta kohe",upcoming:"TULEVASED",past:"MÖÖDUNUD",programme:"KAVA",cast:"ESINEJAD",otherEvents:"MUUD SÜNDMUSED",previous:"Eelmine",next:"Järgmine",mute:"Vaigista",unmute:"Lülita heli sisse"},lv:{more:"Vairāk",less:"Mazāk",viewAll:"SkatÄ«t visus",showLess:"RādÄ«t mazāk",itemLink:"VAIRĀK",readArticle:"LasÄ«t rakstu",getTickets:"Pirkt biļetes",learnMore:"Uzzināt vairāk",downloadPdf:"Lejupielādēt PDF",openLink:"Atvērt saiti",contactCta:"Sazināties",buyNow:"Pirkt tagad",upcoming:"GAIDĀMIE",past:"IEPRIEKŠĒJIE",programme:"PROGRAMMA",cast:"IZPILDĪTĀJI",otherEvents:"CITI PASĀKUM
1I",previous:"Iepriekšējais",next:"Nākamais",mute:"Izslēgt skaņu",unmute:"Ieslēgt skaņu"},chin:{more:"更多",less:"收起",viewAll:"查看全部",showLess:"收起",itemLink:"更多",readArticle:"阅读文章",getTickets:"购买门票",learnMore:"了解更多",downloadPdf:"下载 PDF",openLink:"打开链接",contactCta:"联系我",buyNow:"立即购买",upcoming:"即将上演",past:"往期演出",programme:"曲目",cast:"演出阵容",otherEvents:"其他演出",previous:"上一个",next:"下一个",mute:"静音",unmute:"取消静音"}},e);function a(e){return"link"===e.kind}let l=(e,t)=>`${e}-content-${t}`,u=(e,t)=>`${e}-teaser-${t}`,c=e=>{if(e){if(Array.isArray(e))return e;if("string"==typeof e)try{return JSON.parse(e)}catch{}}},d={Biography:"biographies",Teaching:"teaching",News:"news",Ensembles:"ensembles",Publications:"publications",Compositions:"compositions"},h=e=>e&&d[e]||"biographies";e.s(["getButtonLabels",0,s,"getKnownSectionContentKey",0,e=>d[e],"getResolvedBioPdfs",0,function(e){return e?.bioPdfs&&e.bioPdfs.length>0?e.bioPdfs:e?.bioPdfUrl?[{url:e.bioPdfUrl,label:e.bioPdfButtonLabel||""}]:[]},"getSectionContentKey",0,h,"isBioPdfLink",0,a,"measureParagraphBreakHeight",0,o,"resolveBiographyBodyText",0,function({contentKey:e,currentLanguage:t,availableLanguages:n,sectionConfig:r,fullPage:i,getDisplayText:o,getTeaserText:s,getRichTextValue:a,getTeaserRichTextValue:c,getRichTextContent:d,getCurrentStyles:h,onTextUpdate:f,onRichTextContentUpdate:p}){let m,g=!i&&r?.useSeparateTeaser===!0&&r?.displayType==="page",v=t=>g?u(e,t):l(e,t),y=v(t),x=`${y}-richtext`,b=g?s(t):"",w=g?d?.(x)??c(t):void 0,S=g&&(b.trim().length>0||(w?.length??0)>0),E=`${l(e,t)}-richtext`,T=S?b:o(t),k=S?w:d?.(E)||a(t);for(let r of[y,...n.filter(e=>e!==t).map(v),...g?[l(e,t),...n.filter(e=>e!==t).map(t=>l(e,t))]:[]]){let e=h?.(r);if(e){m=e;break}}let C=e=>{if(e&&!(n.length<=1))for(let r of n)r!==t&&f?.(v(r),void 0,e)};return{teaserMode:S,fieldName:y,richTextFieldName:x,displayText:T,richTextData:k,savedStyles:m,handleTextUpdate:(n,r)=>{f?.(y,n,r),g||f?.(`${e}.${t}`,n,r),C(r)},handleRichTextUpdate:(n,r,i)=>{f?.(y,r,i),g||f?.(`${e}.${t}`,r,i),p?.(x,n),C(i)}}},"useBiographyCollapsedHeight",0,function(e,n,r,i,s){let[a,l]=(0,t.useState)(null);return(0,t.useLayoutEffect)(()=>{let t;if(!r||!i||!e.current)return void l(null);let s=()=>{let t=e.current;if(!t)return;let r=t.style.maxHeight,i=t.style.overflow;t.style.maxHeight="none",t.style.overflow="visible";let s=o(t,n);t.style.maxHeight=r,t.style.overflow=i,null!==s&&l(s)},a=setTimeout(s,50),u=()=>{clearTimeout(t),t=setTimeout(s,150)};return window.addEventListener("resize",u),()=>{clearTimeout(a),clearTimeout(t),window.removeEventListener("resize",u)}},s),a},"useBiographyLogic",0,(e,t,r,i,o)=>{let a=h(i),d=e.content?.[a],f={};if("string"==typeof d)d&&(f[o||"en"]=d);else if(d&&"object"==typeof d&&!Array.isArray(d))for(let[e,t]of Object.entries(d))"string"==typeof t&&(f[e]=t);let p=r&&r.length>0?r.map(e=>e.code):Object.keys(f).length>0?Object.keys(f):["en"],m=p.length>1,g=p.length>0?p[0]:o||"en",{firstName:v,lastName:y}=(e=>{if(!e)return{firstName:"",lastName:""};let t=e.trim().split(" ");return{firstName:t[0]||"",lastName:t.slice(1).join(" ")||""}})(e.metadata?.name||""),x=t?.("hero-first-name",e.content?.heroFirstName||v||"")||e.content?.heroFirstName||v||"",b=t?.("hero-last-name",e.content?.heroLastName||y||"")||e.content?.heroLastName||y||"",w=(()=>{switch(i){case"News":return"news-title";case"Teaching":return"teaching-title";case"Ensembles":return"ensembles-title";case"Publications":return"publications-title";case"Compositions":return"compositions-title";default:return"biography-title"}})(),S=()=>{switch(i){case"Teaching":return e.content?.teachingTitle;case"News":return e.content?.newsTitle;case"Ensembles":return e.content?.ensemblesTitle;case"Publications":return e.content?.publicationsTitle;case"Compositions":return e.content?.compositionsTitle;default:return e.content?.biographyTitle}},E=t?.(w,S()||(i||"BIOGRAPHY").toUpperCase())||S()||(i||"BIOGRAPHY").toUpperCase();return{availableLanguages:p,slugSourceTitle:(0,n.getSlugSourceTitle)(e.content,i||"Biography"),hasMultipleLanguages:m,getDisplayText:e=>{let n=f[e]||"",r=l(a,e);return t?.(r,n)||n},getRichTextValue:n=>{let r=`${l(a,n)}-richtext`,i=e.content,o=i?.[r];return c(t?.(r,o)||o)},getTeaserText:n=>{let r=u(a,n),i=e.content,o=i?.[r],s="string"==typeof o?o:"";return t?t(r,s):s},getTeaserRichTextValue:n=>{let r=`${u(a,n)}-richtext`,i=e.content,o=i?.[r];return c(t?t(r,o):o)},getPlaceholderForLanguage:e=>{let t={en:"Tell your story here...",de:"Erzählen Sie Ihre Geschichte hier...",fr:"Racontez votre histoire ici...",es:"Cuenta tu historia aquí...",it:"Racconta la tua storia qui...",pt:"Conte sua história aqui...",ru:"Расскажите свою историю здесь...",ja:"あなたのストーリーをここに書いてください...",ko:"여기에 당신의 이야기를 들려주세요...",zh:"在这里讲述你的故事...",chin:"在这里讲述你的故事...",ar:"احكِ قصتك هنا...",hi:"अपनी कहानी यहाँ बताएं...",nl:"Vertel hier je verhaal...",sv:"Berätta din historia här...",no:"Fortell din historie her...",da:"Fortæl din historie her...",fi:"Kerro tarinasi tässä...",uk:"Розкажіть свою історію тут...",ro:"Spune-ți povestea aici...",gl:"Conta a túa historia aquí..."};return t[e]||t.en},getButtonLabels:s,displayFirstName:x,displayLastName:b,displayBiographyTitle:E,titleFieldName:w,sectionContent:f,contentKey:a,defaultLanguage:g}},"useSectionConfigLabels",0,function(e,t){let n=(0,r.useLanguageResolution)(e),o=s((0,i.resolveChromeLanguage)(n));return{bioPdf:e=>(0,i.translatedItemLabel)(e,"label",n)||(a(e)?o.openLink:o.downloadPdf),contactCta:(0,i.translatedItemLabel)(t,"contactCtaButtonLabel",n)||o.contactCta}}])},157785,e=>{"use strict";let t,n,r,i;var o,s,a,l,u,c,d,h,f=e.i(39887),p=e.i(148500);function m(){return(m=Object.assign||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}).apply(this,arguments)}function g(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}function v(e){var t=(0,p.useRef)(e),n=(0,p.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var y,x=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},b=function(e){return"touches"in e},w=function(e){return e&&e.ownerDocument.defaultView||self},S=function(e,t,n){var r=e.getBoundingClientRect(),i=b(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:x((i.pageX-(r.left+w(e).pageXOffset))/r.width),top:x((i.pageY-(r.top+w(e).pageYOffset))/r.height)}},E=function(e){b(e)||e.preventDefault()},T=p.default.memo(function(e){var t=e.onMove,n=e.onKey,r=g(e,["onMove","onKey"]),i=(0,p.useRef)(null),o=v(t),s=v(n),a=(0,p.useRef)(null),l=(0,p.useRef)(!1),u=(0,p.useMemo)(function(){var e=function(e){E(e),(b(e)?e.touches.length>0:e.buttons>0)&&i.current?o(S(i.current,e,a.current)):n(!1)},t=function(){return n(!1)};function n(n){var r=l.current,o=w(i.current),s=n?o.addEventListener:o.removeEventListener;
1s(r?"touchmove":"mousemove",e),s(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(E(t),(!l.current||b(t))&&r)){if(b(t)){l.current=!0;var s=t.changedTouches||[];s.length&&(a.current=s[0].identifier)}r.focus(),o(S(r,t,a.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},n]},[s,o]),c=u[0],d=u[1],h=u[2];return(0,p.useEffect)(function(){return h},[h]),p.default.createElement("div",m({},r,{onTouchStart:c,onMouseDown:c,className:"react-colorful__interactive",ref:i,onKeyDown:d,tabIndex:0,role:"slider"}))}),k=function(e){return e.filter(Boolean).join(" ")},C=function(e){var t=e.color,n=e.left,r=e.top,i=k(["react-colorful__pointer",e.className]);return p.default.createElement("div",{className:i,style:{top:100*(void 0===r?.5:r)+"%",left:100*n+"%"}},p.default.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},P=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},A=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?P(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?P(parseInt(e.substring(6,8),16)/255,2):1}},R=function(e){var t=e.s,n=e.v,r=e.a,i=(200-t)*n/100;return{h:P(e.h),s:P(i>0&&i<200?t*n/100/(i<=100?i:200-i)*100:0),l:P(i/2),a:P(r,2)}},M=function(e){var t=R(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},L=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),l=r*(1-(1-t+o)*n),u=o%6;return{r:P(255*[r,a,s,s,l,r][u]),g:P(255*[l,r,r,a,s,s][u]),b:P(255*[s,s,l,r,r,a][u]),a:P(i,2)}},N=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},j=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i<1?N(P(255*i)):"";return"#"+N(t)+N(n)+N(r)+o},D=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:P(60*(a<0?a+6:a)),s:P(o?s/o*100:0),v:P(o/255*100),a:i}},I=p.default.memo(function(e){var t=e.hue,n=e.onChange,r=k(["react-colorful__hue",e.className]);return p.default.createElement("div",{className:r},p.default.createElement(T,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:x(t+360*e.left,0,360)})},"aria-label":"Hue","aria-valuenow":P(t),"aria-valuemax":"360","aria-valuemin":"0"},p.default.createElement(C,{className:"react-colorful__hue-pointer",left:t/360,color:M({h:t,s:100,v:100,a:1})})))}),O=p.default.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:M({h:t.h,s:100,v:100,a:1})};return p.default.createElement("div",{className:"react-colorful__saturation",style:r},p.default.createElement(T,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:x(t.s+100*e.left,0,100),v:x(t.v-100*e.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+P(t.s)+"%, Brightness "+P(t.v)+"%"},p.default.createElement(C,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:M(t)})))}),F=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},V="u">typeof window?p.useLayoutEffect:p.useEffect,B=new Map,z=function(e){V(function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!B.has(t)){var n=t.createElement("style");n.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;
1left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',B.set(t,n);var r=y||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},$=function(e){var t,n,r,i,o,s=e.className,a=e.colorModel,l=e.color,u=void 0===l?a.defaultColor:l,c=e.onChange,d=g(e,["className","colorModel","color","onChange"]),h=(0,p.useRef)(null);z(h);var f=(t=v(c),r=(n=(0,p.useState)(function(){return a.toHsva(u)}))[0],i=n[1],o=(0,p.useRef)({color:u,hsva:r}),(0,p.useEffect)(function(){if(!a.equal(u,o.current.color)){var e=a.toHsva(u);o.current={hsva:e,color:u},i(e)}},[u,a]),(0,p.useEffect)(function(){var e;F(r,o.current.hsva)||a.equal(e=a.fromHsva(r),o.current.color)||(o.current={hsva:r,color:e},t(e))},[r,a,t]),[r,(0,p.useCallback)(function(e){i(function(t){return Object.assign({},t,e)})},[])]),y=f[0],x=f[1],b=k(["react-colorful",s]);return p.default.createElement("div",m({},d,{ref:h,className:b}),p.default.createElement(O,{hsva:y,onChange:x}),p.default.createElement(I,{hue:y.h,onChange:x,className:"react-colorful__last-control"}))},U={defaultColor:"000",toHsva:function(e){return D(A(e))},fromHsva:function(e){return j(L({h:e.h,s:e.s,v:e.v,a:1}))},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||F(A(e),A(t))}},_=function(e){return p.default.createElement($,m({},e,{colorModel:U}))},W=/^#?([0-9A-F]{3,8})$/i,H=function(e){var t=e.color,n=void 0===t?"":t,r=e.onChange,i=e.onBlur,o=e.escape,s=e.validate,a=e.format,l=e.process,u=g(e,["color","onChange","onBlur","escape","validate","format","process"]),c=(0,p.useState)(function(){return o(n)}),d=c[0],h=c[1],f=v(r),y=v(i),x=(0,p.useCallback)(function(e){var t=o(e.target.value);h(t),s(t)&&f(l?l(t):t)},[o,l,s,f]),b=(0,p.useCallback)(function(e){s(e.target.value)||h(o(n)),y(e)},[n,o,s,y]);return(0,p.useEffect)(function(){h(o(n))},[n,o]),p.default.createElement("input",m({},u,{value:a?a(d):d,spellCheck:"false",onChange:x,onBlur:b}))},K=function(e){return"#"+e},G=function(e){var t=e.prefixed,n=e.alpha,r=g(e,["prefixed","alpha"]),i=(0,p.useCallback)(function(e){return e.replace(/([^0-9A-F]+)/gi,"").substring(0,n?8:6)},[n]),o=(0,p.useCallback)(function(e){var t,r;return 3===(r=(t=W.exec(e))?t[1].length:0)||6===r||!!n&&4===r||!!n&&8===r},[n]);return p.default.createElement(H,m({},r,{escape:i,format:t?K:void 0,process:K,validate:o}))};function Y(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}"u">typeof window&&window.document&&window.document.createElement;var X=e.i(759741);function q(e,t=[]){let n=[],r=()=>{let t=n.map(e=>p.createContext(e));return function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let i=p.createContext(r),o=n.length;n=[...n,r];let s=t=>{let{scope:n,children:r,...s}=t,a=n?.[e]?.[o]||i,l=p.useMemo(()=>s,Object.values(s));return(0,f.jsx)(a.Provider,{value:l,children:r})};return s.displayName=t+"Provider",[s,function(n,s){let a=s?.[e]?.[o]||i,l=p.useContext(a);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}var Z=e.i(364161),J=Symbol("radix.slottable");function Q(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===J}var ee=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{var n,r;let i,o,s,a=(r=n=`Primitive.${t}`,(i=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){var i;let e,o,s=(i=n,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),a=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==p.Fragment&&(a.ref=t?(0,X.composeRefs)(t,s):s),p.cloneElement(n,a)}return p.Children.count(n)>1?p.Children.only(null):null})).displayName=`${r}.SlotClone`,o=i,(s=p.forwardRef((e,t)=>{let{children:n,...r}=e,i=p.Children.toArray(n),s=i.find(Q);if(s){let e=s.props.children,n=i.map(t=>t!==s?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,f.jsx)(o,{...r,ref:t,children:p.isValidElement(e)?p.cloneElement(e,void 0,n):null})}return(0,f.jsx)(o,{...r,ref:t,children:n})})).displayName=`${n}.Slot`,s),l=p.forwardRef((e,n)=>{let{asChild:r,...i}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,f.jsx)(r?a:t,{...i,ref:n})});return l.displayName=`Primitive.${t}`,{...e,[t]:l}},{});function et(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>(...e)=>t.current?.(...e),[])}var en="dismissableLayer.update",er=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ei=p.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:s,onDismiss:a,...l}=e,u=p.useContext(er),[c,h]=p.useState(null),m=c?.ownerDocument??globalThis?.document,[,g]=p.useState({}),v=(0,X.useComposedRefs)(t,e=>h(e)),y=Array.from(u.layers),[x]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y.indexOf(x),w=c?y.indexOf(c):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,T=function(e,t=globalThis?.document){let n=et(e),r=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){es("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...u.branches].some(e=>e.contains(t));E&&!n&&(i?.(e),s?.(e),e.defaultPrevented||a?.())},m),k=function(e,t=globalThis?.document){let n=et(e),r=p.useRef(!1);return p.useEffect(()=>{let e=e=>{e.target&&!r.current&&es("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;![...u.branches].some(e=>e.contains(t))&&(o?.(e),s?.(e),e.defaultPrevented||a?.())},m);return!function(e,t=globalThis?.document){let n=et(e);p.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===u.layers.size-1&&(r?.(e),!e.defaultPrevented&&a&&(e.preventDefault(),a()))},m),p.useEffect(()=>{if(c)return n&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(d=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),eo(),()=>{n&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=d)}},[c,m,n,u]),p.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),eo())},[c,u]),p.useEffect(()=>{let e=()=>g({});return document.addEventListener(en,e),()=>document.removeEventListener(en,e)},[]),(0,f.jsx)(ee.div,{...l,ref:v,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Y(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Y(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Y(e.onPointerDownCapture,T.onPointerDownCapture)})});function eo(){let e=new CustomEvent(en);document.dispatchEvent(e)}function es(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});if(t&&i.addEventListener(e,t,{once:!0}),r)i&&Z.flushSync(()=>i.dispatchEvent(o));else i.dispatchEvent(o)}ei.displayName="DismissableLayer",p.forwardRef((e,t)=>
1{let n=p.useContext(er),r=p.useRef(null),i=(0,X.useComposedRefs)(t,r);return p.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,f.jsx)(ee.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var ea=0;function el(){let 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 eu="focusScope.autoFocusOnMount",ec="focusScope.autoFocusOnUnmount",ed={bubbles:!1,cancelable:!0},eh=p.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,l]=p.useState(null),u=et(i),c=et(o),d=p.useRef(null),h=(0,X.useComposedRefs)(t,e=>l(e)),m=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(m.paused||!a)return;let t=e.target;a.contains(t)?d.current=t:em(d.current,{select:!0})},t=function(e){if(m.paused||!a)return;let t=e.relatedTarget;null!==t&&(a.contains(t)||em(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&em(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,a,m.paused]),p.useEffect(()=>{if(a){eg.add(m);let e=document.activeElement;if(!a.contains(e)){let t=new CustomEvent(eu,ed);a.addEventListener(eu,u),a.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(em(r,{select:t}),document.activeElement!==n)return}(ef(a).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&em(a))}return()=>{a.removeEventListener(eu,u),setTimeout(()=>{let t=new CustomEvent(ec,ed);a.addEventListener(ec,c),a.dispatchEvent(t),t.defaultPrevented||em(e??document.body,{select:!0}),a.removeEventListener(ec,c),eg.remove(m)},0)}}},[a,u,c,m]);let g=p.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){var o;let t,r=e.currentTarget,[s,a]=[ep(t=ef(o=r),o),ep(t.reverse(),o)];s&&a?e.shiftKey||i!==a?e.shiftKey&&i===s&&(e.preventDefault(),n&&em(a,{select:!0})):(e.preventDefault(),n&&em(s,{select:!0})):i===r&&e.preventDefault()}},[n,r,m.paused]);return(0,f.jsx)(ee.div,{tabIndex:-1,...s,ref:h,onKeyDown:g})});function ef(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function ep(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function em(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}eh.displayName="FocusScope";var eg=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=ev(r,e)).unshift(e)},remove(e){r=ev(r,e),r[0]?.resume()}});function ev(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var ey=globalThis?.document?p.useLayoutEffect:()=>{},ex=p[" useId ".trim().toString()]||(()=>void 0),eb=0;let ew=["top","right","bottom","left"],eS=Math.min,eE=Math.max,eT=Math.round,ek=Math.floor,eC=e=>({x:e,y:e}),eP={left:"right",right:"left",bottom:"top",top:"bottom"},eA={start:"end",end:"start"};function eR(e,t){return"function"==typeof e?e(t):e}function eM(e){return e.split("-")[0]}function eL(e){return e.split("-")[1]}function eN(e){return"x"===e?"y":"x"}function ej(e){return"y"===e?"height":"width"}let eD=new Set(["top","bottom"]);function eI(e){return eD.has(eM(e))?"y":"x"}function eO(e){return e.replace(/start|end/g,e=>eA[e])}let eF=["left","right"],eV=["right","left"],eB=["top","bottom"],ez=["bottom","top"];function e$(e){return e.replace(/left|right|bottom|top/g,e=>eP[e])}function eU(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function e_(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function eW(e,t,n){let r,{reference:i,floating:o}=e,s=eI(t),a=eN(eI(t)),l=ej(a),u=eM(t),c="y"===s,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(eL(t)){case"start":r[a]-=f*(n&&c?-1:1);break;case"end":r[a]+=f*(n&&c?-1:1)}return r}let eH=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}
1=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=eW(u,r,l),h=r,f={},p=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:v,data:y,reset:x}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,f={...f,[o]:{...f[o],...y}},x&&p<=50&&(p++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(u=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:c,y:d}=eW(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function eK(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=eR(t,e),p=eU(f),m=a[h?"floating"===d?"reference":"floating":d],g=e_(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=e_(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+p.top)/x.y,bottom:(b.bottom-g.bottom+p.bottom)/x.y,left:(g.left-b.left+p.left)/x.x,right:(b.right-g.right+p.right)/x.x}}function eG(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eY(e){return ew.some(t=>e[t]>=0)}let eX=new Set(["left","top"]);async function eq(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=eM(n),a=eL(n),l="y"===eI(n),u=eX.has(s)?-1:1,c=o&&l?-1:1,d=eR(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}function eZ(){return"u">typeof window}function eJ(e){return e1(e)?(e.nodeName||"").toLowerCase():"#document"}function eQ(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function e0(e){var t;return null==(t=(e1(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function e1(e){return!!eZ()&&(e instanceof Node||e instanceof eQ(e).Node)}function e2(e){return!!eZ()&&(e instanceof Element||e instanceof eQ(e).Element)}function e5(e){return!!eZ()&&(e instanceof HTMLElement||e instanceof eQ(e).HTMLElement)}function e3(e){return!(!eZ()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eQ(e).ShadowRoot)}let e4=new Set(["inline","contents"]);function e8(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!e4.has(i)}let e9=new Set(["table","td","th"]),e6=[":popover-open",":modal"];function e7(e){return e6.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let te=["transform","translate","scale","rotate","perspective"],tt=["transform","translate","scale","rotate","perspective","filter"],tn=["paint","layout","strict","content"];function tr(e){let t=ti(),n=e2(e)?ta(e):e;return te.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||tt.some(e=>(n.willChange||"").includes(e))||tn.some(e=>(n.contain||"").includes(e))}function ti(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let to=new Set(["html","body","#document"]);function ts(e){return to.has(eJ(e))}function ta(e){return eQ(e).getComputedStyle(e)}function tl(e){return e2(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tu(e){if("html"===eJ(e))return e;let t=e.assignedSlot||e.parentNode||e3(e)&&e.host||e0(e);return e3(t)?t.host:t}
1function tc(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=tu(t);return ts(n)?t.ownerDocument?t.ownerDocument.body:t.body:e5(n)&&e8(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=eQ(i);if(o){let e=td(s);return t.concat(s,s.visualViewport||[],e8(i)?i:[],e&&n?tc(e):[])}return t.concat(i,tc(i,[],n))}function td(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function th(e){let t=ta(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=e5(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=eT(n)!==o||eT(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function tf(e){return e2(e)?e:e.contextElement}function tp(e){let t=tf(e);if(!e5(t))return eC(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=th(t),s=(o?eT(n.width):n.width)/r,a=(o?eT(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let tm=eC(0);function tg(e){let t=eQ(e);return ti()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tm}function tv(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=tf(e),a=eC(1);t&&(r?e2(r)&&(a=tp(r)):a=tp(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===eQ(s))&&i)?tg(s):eC(0),u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(s){let e=eQ(s),t=r&&e2(r)?eQ(r):r,n=e,i=td(n);for(;i&&r&&t!==n;){let e=tp(i),t=i.getBoundingClientRect(),r=ta(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=o,c+=s,i=td(n=eQ(i))}}return e_({width:d,height:h,x:u,y:c})}function ty(e,t){let n=tl(e).scrollLeft;return t?t.left+n:tv(e0(e)).left+n}function tx(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ty(e,n),y:n.top+t.scrollTop}}let tb=new Set(["absolute","fixed"]);function tw(e,t,n){var r;let i;if("viewport"===t)i=function(e,t){let n=eQ(e),r=e0(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;let e=ti();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,l=i.offsetTop)}let u=ty(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else u<=25&&(o+=u);return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t){let t,n,o,s,a,l,u;r=e0(e),t=e0(r),n=tl(r),o=r.ownerDocument.body,s=eE(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=eE(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),l=-n.scrollLeft+ty(r),u=-n.scrollTop,"rtl"===ta(o).direction&&(l+=eE(t.clientWidth,o.clientWidth)-s),i={width:s,height:a,x:l,y:u}}else if(e2(t)){let e,r,o,s,a,l;r=(e=tv(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=e5(t)?tp(t):eC(1),a=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:a,height:l,x:o*s.x,y:r*s.y}}else{let n=tg(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return e_(i)}function tS(e){return"static"===ta(e).position}function tE(e,t){if(!e5(e)||"fixed"===ta(e).position)return null;if(t)return t(e);let n=e.offsetParent;return e0(e)===n&&(n=n.ownerDocument.body),n}function tT(e,t){var n;let r=eQ(e);if(e7(e))return r;if(!e5(e)){let t=tu(e);for(;t&&!ts(t);){if(e2(t)&&!tS(t))return t;t=tu(t)}return r}let i=tE(e,t);for(;i&&(n=i,e9.has(eJ(n)))&&tS(i);)i=tE(i,t);return i&&ts(i)&&tS(i)&&!tr(i)?r:i||function(e){let t=tu(e);for(;e5(t)&&!ts(t);){if(tr(t))return t;if(e7(t))break;t=tu(t)}return null}(e)||r}let tk=async function(e){let t=this.getOffsetParent||tT,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=e5(t),i=e0(t),o="fixed"===n,s=tv(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=eC(0);if(r||!r&&!o)if(("body"!==eJ(t)||e8(i))&&(a=tl(t)),r){let e=tv(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ty(i));o&&!r&&i&&(l.x=ty(i));let u=!i||r||o?eC(0):tx(i,a);return{x:s.left+a.scrollLeft-l.x-u.x,y:s.top+a.scrollTop-l.y-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tC={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=e0(r),a=!!t&&e7(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=eC(1),c=eC(0),d=e5(r);
1if((d||!d&&!o)&&(("body"!==eJ(r)||e8(s))&&(l=tl(r)),e5(r))){let e=tv(r);u=tp(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let h=!s||d||o?eC(0):tx(s,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:e0,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?e7(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=tc(e,[],!1).filter(e=>e2(e)&&"body"!==eJ(e)),i=null,o="fixed"===ta(e).position,s=o?tu(e):e;for(;e2(s)&&!ts(s);){let t=ta(s),n=tr(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&tb.has(i.position)||e8(s)&&!n&&function e(t,n){let r=tu(t);return!(r===n||!e2(r)||ts(r))&&("fixed"===ta(r).position||e(r,n))}(e,s))?r=r.filter(e=>e!==s):i=t,s=tu(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{let r=tw(t,n,i);return e.top=eE(r.top,e.top),e.right=eS(r.right,e.right),e.bottom=eS(r.bottom,e.bottom),e.left=eE(r.left,e.left),e},tw(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:tT,getElementRects:tk,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=th(e);return{width:t,height:n}},getScale:tp,isElement:e2,isRTL:function(e){return"rtl"===ta(e).direction}};function tP(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tA=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:c=0}=eR(e,t)||{};if(null==u)return{};let d=eU(c),h={x:n,y:r}
1,f=eN(eI(i)),p=ej(f),m=await s.getDimensions(u),g="y"===f,v=g?"clientHeight":"clientWidth",y=o.reference[p]+o.reference[f]-h[f]-o.floating[p],x=h[f]-o.reference[f],b=await (null==s.getOffsetParent?void 0:s.getOffsetParent(u)),w=b?b[v]:0;w&&await (null==s.isElement?void 0:s.isElement(b))||(w=a.floating[v]||o.floating[p]);let S=w/2-m[p]/2-1,E=eS(d[g?"top":"left"],S),T=eS(d[g?"bottom":"right"],S),k=w-m[p]-T,C=w/2-m[p]/2+(y/2-x/2),P=eE(E,eS(C,k)),A=!l.arrow&&null!=eL(i)&&C!==P&&o.reference[p]/2-(C<E?E:T)-m[p]/2<0,R=A?C<E?C-E:C-k:0;return{[f]:h[f]+R,data:{[f]:P,centerOffset:C-P-R,...A&&{alignmentOffset:R}},reset:A}}});var tR="u">typeof document?p.useLayoutEffect:function(){};function tM(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tM(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!tM(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tL(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tN(e,t){let n=tL(e);return Math.round(t*n)/n}function tj(e){let t=p.useRef(e);return tR(()=>{t.current=e}),t}var tD=p.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,f.jsx)(ee.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,f.jsx)("polygon",{points:"0,0 30,0 15,10"})})});tD.displayName="Arrow";var tI="Popper",[tO,tF]=q(tI),[tV,tB]=tO(tI),tz=e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null);return(0,f.jsx)(tV,{scope:t,anchor:r,onAnchorChange:i,children:n})};tz.displayName=tI;var t$="PopperAnchor",tU=p.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...i}=e,o=tB(t$,n),s=p.useRef(null),a=(0,X.useComposedRefs)(t,s),l=p.useRef(null);return p.useEffect(()=>{let e=l.current;l.current=r?.current||s.current,e!==l.current&&o.onAnchorChange(l.current)}),r?null:(0,f.jsx)(ee.div,{...i,ref:a})});tU.displayName=t$;var t_="PopperContent",[tW,tH]=tO(t_),tK=p.forwardRef((e,t)=>{var n,r,i,o,s,a,l,u,c,d,h,m,g,v,y,x,b,w,S,E,T;let{__scopePopper:k,side:C="bottom",sideOffset:P=0,align:A="center",alignOffset:R=0,arrowPadding:M=0,avoidCollisions:L=!0,collisionBoundary:N=[],collisionPadding:j=0,sticky:D="partial",hideWhenDetached:I=!1,updatePositionStrategy:O="optimized",onPlaced:F,...V}=e,B=tB(t_,k),[z,$]=p.useState(null),U=(0,X.useComposedRefs)(t,e=>$(e)),[_,W]=p.useState(null),H=function(e){let[t,n]=p.useState(void 0);return ey(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(_),K=H?.width??0,G=H?.height??0,Y="number"==typeof j?j:{top:0,right:0,bottom:0,left:0,...j},q=Array.isArray(N)?N:[N],J=q.length>0,Q={padding:Y,boundary:q.filter(tq),altBoundary:J},{refs:en,floatingStyles:er,placement:ei,isPositioned:eo,middlewareData:es}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[c,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,f]=p.useState(r);tM(h,r)||f(r);let[m,g]=p.useState(null),[v,y]=p.useState(null),x=p.useCallback(e=>{e!==E.current&&(E.current=e,g(e))},[]),b=p.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),w=o||m,S=s||v,E=p.useRef(null),T=p.useRef(null),k=p.useRef(c),C=null!=l,P=tj(l),A=tj(i),R=tj(u),M=p.useCallback(()=>{var e,r;let i,o,s;if(!E.current||!T.current)return;let a={placement:t,strategy:n,middleware:h};A.current&&(a.platform=A.current),(e=E.current,r=T.current,i=new Map,s={...(o={platform:tC,...a}
1).platform,_c:i},eH(e,r,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==R.current};L.current&&!tM(k.current,t)&&(k.current=t,Z.flushSync(()=>{d(t)}))})},[h,t,n,A,R]);tR(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let L=p.useRef(!1);tR(()=>(L.current=!0,()=>{L.current=!1}),[]),tR(()=>{if(w&&(E.current=w),S&&(T.current=S),w&&S){if(P.current)return P.current(w,S,M);M()}},[w,S,M,P,C]);let N=p.useMemo(()=>({reference:E,floating:T,setReference:x,setFloating:b}),[x,b]),j=p.useMemo(()=>({reference:w,floating:S}),[w,S]),D=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=tN(j.floating,c.x),r=tN(j.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...tL(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,j.floating,c.x,c.y]);return p.useMemo(()=>({...c,update:M,refs:N,elements:j,floatingStyles:D}),[c,M,N,j,D])}({strategy:"fixed",placement:C+("center"!==A?"-"+A:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=tf(e),d=o||s?[...c?tc(c):[],...tc(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=c&&l?function(e,t){let n,r=null,i=e0(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(a||t(),!h||!f)return;let p={rootMargin:-ek(d)+"px "+-ek(i.clientWidth-(c+h))+"px "+-ek(i.clientHeight-(d+f))+"px "+-ek(c)+"px",threshold:eE(0,eS(1,l))||1},m=!0;function g(t){let r=t[0].intersectionRatio;if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||tP(u,e.getBoundingClientRect())||s(),m=!1}try{r=new IntersectionObserver(g,{...p,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(g,p)}r.observe(e)}(!0),o}(c,n):null,f=-1,p=null;a&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?tv(e):null;return u&&function t(){let r=tv(e);m&&!tP(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===O}),elements:{reference:B.anchor},middleware:[{...{name:"offset",options:i=n={mainAxis:P+G,alignmentAxis:R},async fn(e){var t,n;let{x:r,y:o,placement:s,middlewareData:a}=e,l=await eq(e,i);return s===(null==(t=a.offset)?void 0:t.placement)&&null!=(n=a.arrow)&&n.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}},options:[n,r]},L&&{...{name:"shift",options:c=l={mainAxis:!0,crossAxis:!1,limiter:"partial"===D?{...(void 0===(a=o)&&(a={}),{options:a,fn(e){let{x:t,y:n,placement:r,rects:i,middlewareData:o}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=eR(a,e),c={x:t,y:n},d=eI(r),h=eN(d),f=c[h],p=c[d],m=eR(s,e),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+g.mainAxis,n=i.reference[h]+i.reference[e]-g.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var v,y;let e="y"===h?"width":"height",t=eX.has(eM(r)),n=i.reference[d]-i.floating[e]+(t&&(null==(v=o.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),s=i.reference[d]+i.reference[e]+(t?0:(null==(y=o.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);p<n?p=n:p>s&&(p=s)}return{[h]:f,[d]:p}}}),options:[o,s]}:void 0,...Q},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=eR(c,e),l={x:t,y:n},u=await eK(e,a),d=eI(eM(r)),h=eN(d),f=l[h],p=l[d];if(i){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=f+u[e],r=f-u[t];f=eE(n,eS(f,r))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+u[e],r=p-u[t];p=eE(n,eS(p,r))}let m=s.fn({...e,[h]:f,[d]:p});return{...m,data:{x:m.x-t,y:m.y-n,enabled:{[h]:i,[d]:o}}}}},options:[l,u]},L&&{...{name:"flip",options:m=d={...Q},async fn(e){var t,n,r,i,o,s,a,l;
1let u,c,d,{placement:h,middlewareData:f,rects:p,initialPlacement:g,platform:v,elements:y}=e,{mainAxis:x=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:T=!0,...k}=eR(m,e);if(null!=(t=f.arrow)&&t.alignmentOffset)return{};let C=eM(h),P=eI(g),A=eM(g)===g,R=await (null==v.isRTL?void 0:v.isRTL(y.floating)),M=w||(A||!T?[e$(g)]:(u=e$(g),[eO(g),u,eO(u)])),L="none"!==E;!w&&L&&M.push(...(c=eL(g),d=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?eV:eF;return t?eF:eV;case"left":case"right":return t?eB:ez;default:return[]}}(eM(g),"start"===E,R),c&&(d=d.map(e=>e+"-"+c),T&&(d=d.concat(d.map(eO)))),d));let N=[g,...M],j=await eK(e,k),D=[],I=(null==(n=f.flip)?void 0:n.overflows)||[];if(x&&D.push(j[C]),b){let e,t,n,r,i=(s=h,a=p,void 0===(l=R)&&(l=!1),e=eL(s),n=ej(t=eN(eI(s))),r="x"===t?e===(l?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=e$(r)),[r,e$(r)]);D.push(j[i[0]],j[i[1]])}if(I=[...I,{placement:h,overflows:D}],!D.every(e=>e<=0)){let e=((null==(r=f.flip)?void 0:r.index)||0)+1,t=N[e];if(t&&("alignment"!==b||P===eI(t)||I.every(e=>eI(e.placement)!==P||e.overflows[0]>0)))return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(i=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(S){case"bestFit":{let e=null==(o=I.filter(e=>{if(L){let t=eI(e.placement);return t===P||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=g}if(h!==n)return{reset:{placement:n}}}return{}}},options:[d,h]},{...{name:"size",options:y=g={...Q,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,n;let r,i,{placement:o,rects:s,platform:a,elements:l}=e,{apply:u=()=>{},...c}=eR(y,e),d=await eK(e,c),h=eM(o),f=eL(o),p="y"===eI(o),{width:m,height:g}=s.floating;"top"===h||"bottom"===h?(r=h,i=f===(await (null==a.isRTL?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(i=h,r="end"===f?"top":"bottom");let v=g-d.top-d.bottom,x=m-d.left-d.right,b=eS(g-d[r],v),w=eS(m-d[i],x),S=!e.middlewareData.shift,E=b,T=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(T=x),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(E=v),S&&!f){let e=eE(d.left,0),t=eE(d.right,0),n=eE(d.top,0),r=eE(d.bottom,0);p?T=m-2*(0!==e||0!==t?e+t:eE(d.left,d.right)):E=g-2*(0!==n||0!==r?n+r:eE(d.top,d.bottom))}await u({...e,availableWidth:T,availableHeight:E});let k=await a.getDimensions(l.floating);return m!==k.width||g!==k.height?{reset:{rects:!0}}:{}}},options:[g,v]},_&&{...{name:"arrow",options:w=x={element:_,padding:M},fn(e){let{element:t,padding:n}="function"==typeof w?w(e):w;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?tA({element:t.current,padding:n}).fn(e):{}:t?tA({element:t,padding:n}).fn(e):{}}},options:[x,b]},tZ({arrowWidth:K,arrowHeight:G}),I&&{...{name:"hide",options:T=S={strategy:"referenceHidden",...Q},async fn(e){let{rects:t}=e,{strategy:n="referenceHidden",...r}=eR(T,e);switch(n){case"referenceHidden":{let n=eG(await eK(e,{...r,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:eY(n)}}}case"escaped":{let n=eG(await eK(e,{...r,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:eY(n)}}}default:return{}}}},options:[S,E]}]}),[ea,el]=tJ(ei),eu=et(F);ey(()=>{eo&&eu?.()},[eo,eu]);let ec=es.arrow?.x,ed=es.arrow?.y,eh=es.arrow?.centerOffset!==0,[ef,ep]=p.useState();return ey(()=>{z&&ep(window.getComputedStyle(z).zIndex)},[z]),(0,f.jsx)("div",{ref:en.setFloating,"data-radix-popper-content-wrapper":"",style:{...er,transform:eo?er.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ef,"--radix-popper-transform-origin":[es.transformOrigin?.x,es.transformOrigin?.y].join(" "),...es.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,f.jsx)(tW,{scope:k,placedSide:ea,onArrowChange:W,arrowX:ec,arrowY:ed,shouldHideArrow:eh,children:(0,f.jsx)(ee.div,{"data-side":ea,"data-align":el,...V,ref:U,style:{...V.style,animation:eo?void 0:"none"}})})})});tK.displayName=t_;var tG="PopperArrow",tY={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},tX=p.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tH(tG,n),o=tY[i.placedSide];return(0,f.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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:(0,f.jsx)(tD,{...r,ref:t,style:{...r.style,display:"block"}})})});function tq(e){return null!==e}tX.displayName=tG;var tZ=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,s=o?0:e.arrowWidth,a=o?0:e.arrowHeight,[l,u]=tJ(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+s/2,h=(i.arrow?.y??0)+a/2,f="",p="";return"bottom"===l?(f=o?c:`${d}px`,p=`${-a}px`):"top"===l?(f=o?c:`${d}px`,p=`${r.floating.height+a}px`):"right"===l?(f=`${-a}px`,p=o?c:`${h}px`):"left"===l&&(f=`${r.floating.width+a}px`,p=o?c:`${h}px`),{data:{x:f,y:p}}}});function tJ(e){let[t,n="center"]=e.split("-");return[t,n]}var tQ=p.forwardRef((e,t)=>{let{container:n,...r}=e,[i,o]=p.useState(!1);ey(()=>o(!0),[]);let s=n||i&&globalThis?.document?.body;return s?Z.default.createPortal((0,f.jsx)(ee.div,{...r,ref:t}),s):null});tQ.displayName="Portal";var t0=e=>{var t;let n,r,{present:i,children:o}=e,s=function(e){var t,n;let[r,i]=p.useState(),o=p.useRef(null),s=p.useRef(e),a=p.useRef("none"),[l,u]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},p.useReducer((e,t)=>n[e][t]??e,t));return p.useEffect(()=>{let e=t1(o.current);a.current="mounted"===l?e:"none"},[l]),ey(()=>
1{let t=o.current,n=s.current;if(n!==e){let r=a.current,i=t1(t);e?u("MOUNT"):"none"===i||t?.display==="none"?u("UNMOUNT"):n&&r!==i?u("ANIMATION_OUT"):u("UNMOUNT"),s.current=e}},[e,u]),ey(()=>{if(r){let e,t=r.ownerDocument.defaultView??window,n=n=>{let i=t1(o.current).includes(CSS.escape(n.animationName));if(n.target===r&&i&&(u("ANIMATION_END"),!s.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},i=e=>{e.target===r&&(a.current=t1(o.current))};return r.addEventListener("animationstart",i),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",i),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}u("ANIMATION_END")},[r,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:p.useCallback(e=>{o.current=e?getComputedStyle(e):null,i(e)},[])}}(i),a="function"==typeof o?o({present:s.isPresent}):p.Children.only(o),l=(0,X.useComposedRefs)(s.ref,(t=a,(r=(n=Object.getOwnPropertyDescriptor(t.props,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.ref:(r=(n=Object.getOwnPropertyDescriptor(t,"ref")?.get)&&"isReactWarning"in n&&n.isReactWarning)?t.props.ref:t.props.ref||t.ref));return"function"==typeof o||s.isPresent?p.cloneElement(a,{ref:l}):null};function t1(e){return e?.animationName||"none"}t0.displayName="Presence";var t2=Symbol("radix.slottable");function t5(e){return p.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===t2}p[" useEffectEvent ".trim().toString()],p[" useInsertionEffect ".trim().toString()];var t3=p[" useInsertionEffect ".trim().toString()]||ey;Symbol("RADIX:SYNC_STATE");var t4=new WeakMap,t8=new WeakMap,t9={},t6=0,t7=function(e){return e&&(e.host||t7(e.parentNode))},ne=function(e,t,n,r){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=t7(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});t9[n]||(t9[n]=new WeakMap);var o=t9[n],s=[],a=new Set,l=new Set(i),u=function(e){!e||a.has(e)||(a.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(a.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(t4.get(e)||0)+1,u=(o.get(e)||0)+1;t4.set(e,l),o.set(e,u),s.push(e),1===l&&i&&t8.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),a.clear(),t6++,function(){s.forEach(function(e){var t=t4.get(e)-1,i=o.get(e)-1;t4.set(e,t),o.set(e,i),t||(t8.has(e)||e.removeAttribute(r),t8.delete(e)),i||e.removeAttribute(n)}),--t6||(t4=new WeakMap,t4=new WeakMap,t8=new WeakMap,t9={})}},nt=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),ne(r,i,n,"aria-hidden")):function(){return null}},nn=e.i(736380),nr="right-scroll-bar-position",ni="width-before-scroll-bar";function no(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var ns="u">typeof window?p.useLayoutEffect:p.useEffect,na=new WeakMap,nl=(void 0===o&&(o={}),(void 0===s&&(s=function(e){return e}),a=[],l=!1,u={read:function(){if(l)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=s(e,l);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(l=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){l=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,nn.__assign)({async:!0,ssr:!1},o),u),nu=function(){},nc=p.forwardRef(function(e,t){var n,r,i,o,s=p.useRef(null),a=p.useState({onScrollCapture:nu,onWheelCapture:nu,onTouchMoveCapture:nu}),l=a[0],u=a[1],c=e.forwardProps,d=e.children,h=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noRelative,x=e.noIsolation,b=e.inert,w=e.allowPinchZoom,S=e.as,E=e.gapMode,T=(0,nn.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[s,t],r=function(e){return n.forEac
1h(function(t){return no(t,e)})},(i=(0,p.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,ns(function(){var e=na.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||no(e,null)}),r.forEach(function(e){t.has(e)||no(e,i)})}na.set(o,n)},[n]),o),C=(0,nn.__assign)((0,nn.__assign)({},T),l);return p.createElement(p.Fragment,null,m&&p.createElement(v,{sideCar:nl,removeScrollBar:f,shards:g,noRelative:y,noIsolation:x,inert:b,setCallbacks:u,allowPinchZoom:!!w,lockRef:s,gapMode:E}),c?p.cloneElement(p.Children.only(d),(0,nn.__assign)((0,nn.__assign)({},C),{ref:k})):p.createElement(void 0===S?"div":S,(0,nn.__assign)({},C,{className:h,ref:k}),d))});nc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},nc.classNames={fullWidth:ni,zeroRight:nr};var nd=function(e){var t=e.sideCar,n=(0,nn.__rest)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return p.createElement(r,(0,nn.__assign)({},n))};nd.isSideCarExport=!0;var nh=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=h||("u">typeof __webpack_nonce__?__webpack_nonce__:void 0);return t&&e.setAttribute("nonce",t),e}())){var r,i;(r=t).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nf=function(){var e=nh();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},np=function(){var e=nf();return function(t){return e(t.styles,t.dynamic),null}},nm={left:0,top:0,right:0,gap:0},ng=function(e){return parseInt(e||"",10)||0},nv=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[ng(n),ng(r),ng(i)]},ny=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return nm;var t=nv(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])}},nx=np(),nb="data-scroll-locked",nw=function(e,t,n,r){var i=e.left,o=e.top,s=e.right,a=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body[").concat(nb,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(nr," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(ni," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(nr," .").concat(nr," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ni," .").concat(ni," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(nb,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},nS=function(){var e=parseInt(document.body.getAttribute(nb)||"0",10);return isFinite(e)?e:0},nE=function(){p.useEffect(function(){return document.body.setAttribute(nb,(nS()+1).toString()),function(){var e=nS()-1;e<=0?document.body.removeAttribute(nb):document.body.setAttribute(nb,e.toString())}},[])},nT=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;nE();var o=p.useMemo(function(){return ny(i)},[i]);return p.createElement(nx,{styles:nw(o,!t,i,n?"":"!important")})},nk=!1;if("u">typeof window)try{var nC=Object.defineProperty({},"passive",{get:function(){return nk=!0,!0}});window.addEventListener("test",nC,nC),window.removeEventListener("test",nC,nC)}catch(e){nk=!1}var nP=!!nk&&{passive:!1},nA=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},nR=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),nM(e,r)){var i=nL(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body)return!1},nM=function(e,t){return"v"===e?nA(t,"overflowY"):nA(t,"overflowX")},nL=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},nN=function(e,t,n,r,i){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),a=s*r,l=n.target,u=t.contains(l),c=!1,d=a>0,h=0,f=0;do{if(!l)break;var p=nL(e,l),m=p[0],g=p[1]-p[2]-s*m;(m||g)&&nM(e,l)&&(h+=g,f+=m);var v=l.parentNode;l=v&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE?v.host:v}while(!u&&l!==document.body||u&&(t.contains(l)||t===l))return d&&(i&&1>Math.abs(h)||!i&&a>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-a>f)&&(c=!0),c},nj=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},nD=function(e){return[e.deltaX,e.deltaY]}
1,nI=function(e){return e&&"current"in e?e.current:e},nO=0,nF=[];let nV=(c=function(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(nO++)[0],o=p.useState(np)[0],s=p.useRef(e);p.useEffect(function(){s.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,nn.__spreadArray)([e.lockRef.current],(e.shards||[]).map(nI),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var a=p.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,o=nj(e),a=n.current,l="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=window.getSelection(),f=h&&h.anchorNode;if(f&&(f===c||f.contains(c)))return!1;var p=nR(d,c);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=nR(d,c)),!p)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return nN(m,t,e,"h"===m?l:u,!0)},[]),l=p.useCallback(function(e){if(nF.length&&nF[nF.length-1]===o){var n="deltaY"in e?nD(e):nj(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(nI).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?a(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=p.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=p.useCallback(function(e){n.current=nj(e),r.current=void 0},[]),d=p.useCallback(function(t){u(t.type,nD(t),t.target,a(t,e.lockRef.current))},[]),h=p.useCallback(function(t){u(t.type,nj(t),t.target,a(t,e.lockRef.current))},[]);p.useEffect(function(){return nF.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,nP),document.addEventListener("touchmove",l,nP),document.addEventListener("touchstart",c,nP),function(){nF=nF.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,nP),document.removeEventListener("touchmove",l,nP),document.removeEventListener("touchstart",c,nP)}},[]);var f=e.removeScrollBar,m=e.inert;return p.createElement(p.Fragment,null,m?p.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,f?p.createElement(nT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},nl.useMedium(c),nd);var nB=p.forwardRef(function(e,t){return p.createElement(nc,(0,nn.__assign)({},e,{ref:t,sideCar:nV}))});nB.classNames=nc.classNames;var nz="Popover",[n$,nU]=q(nz,[tF]),n_=tF(),[nW,nH]=n$(nz),nK=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=e,a=n_(t),l=p.useRef(null),[u,c]=p.useState(!1),[d,h]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,o,s]=function({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),o=p.useRef(t);return t3(()=>{o.current=t},[t]),p.useEffect(()=>{i.current!==n&&(o.current?.(n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),a=void 0!==e,l=a?e:i;{let t=p.useRef(void 0!==e);p.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=a},[a,r])}return[l,p.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else o(t)},[a,e,o,s])]}({prop:r,defaultProp:i??!1,onChange:o,caller:nz});return(0,f.jsx)(tz,{...a,children:(0,f.jsx)(nW,{scope:t,contentId:function(){let[e,t]=p.useState(ex());return ey(()=>{t(e=>e??String(eb++))},[void 0]),e?`radix-${e}
1`:""}(),triggerRef:l,open:d,onOpenChange:h,onOpenToggle:p.useCallback(()=>h(e=>!e),[h]),hasCustomAnchor:u,onCustomAnchorAdd:p.useCallback(()=>c(!0),[]),onCustomAnchorRemove:p.useCallback(()=>c(!1),[]),modal:s,children:n})})};nK.displayName=nz;var nG="PopoverAnchor";p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nH(nG,n),o=n_(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=i;return p.useEffect(()=>(s(),()=>a()),[s,a]),(0,f.jsx)(tU,{...o,...r,ref:t})}).displayName=nG;var nY="PopoverTrigger",nX=p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nH(nY,n),o=n_(n),s=(0,X.useComposedRefs)(t,i.triggerRef),a=(0,f.jsx)(ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":n9(i.open),...r,ref:s,onClick:Y(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?a:(0,f.jsx)(tU,{asChild:!0,...o,children:a})});nX.displayName=nY;var nq="PopoverPortal",[nZ,nJ]=n$(nq,{forceMount:void 0}),nQ=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,o=nH(nq,t);return(0,f.jsx)(nZ,{scope:t,forceMount:n,children:(0,f.jsx)(t0,{present:n||o.open,children:(0,f.jsx)(tQ,{asChild:!0,container:i,children:r})})})};nQ.displayName=nq;var n0="PopoverContent",n1=p.forwardRef((e,t)=>{let n=nJ(n0,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,o=nH(n0,e.__scopePopover);return(0,f.jsx)(t0,{present:r||o.open,children:o.modal?(0,f.jsx)(n5,{...i,ref:t}):(0,f.jsx)(n3,{...i,ref:t})})});n1.displayName=n0;var n2=((i=p.forwardRef((e,t)=>{let{children:n,...r}=e;if(p.isValidElement(n)){var i;let e,o,s=(i=n,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),a=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==p.Fragment&&(a.ref=t?(0,X.composeRefs)(t,s):s),p.cloneElement(n,a)}return p.Children.count(n)>1?p.Children.only(null):null})).displayName="PopoverContent.RemoveScroll.SlotClone",t=i,(n=p.forwardRef((e,n)=>{let{children:r,...i}=e,o=p.Children.toArray(r),s=o.find(t5);if(s){let e=s.props.children,r=o.map(t=>t!==s?t:p.Children.count(e)>1?p.Children.only(null):p.isValidElement(e)?e.props.children:null);return(0,f.jsx)(t,{...i,ref:n,children:p.isValidElement(e)?p.cloneElement(e,void 0,r):null})}return(0,f.jsx)(t,{...i,ref:n,children:r})})).displayName="PopoverContent.RemoveScroll.Slot",n),n5=p.forwardRef((e,t)=>{let n=nH(n0,e.__scopePopover),r=p.useRef(null),i=(0,X.useComposedRefs)(t,r),o=p.useRef(!1);return p.useEffect(()=>{let e=r.current;if(e)return nt(e)},[]),(0,f.jsx)(nB,{as:n2,allowPinchZoom:!0,children:(0,f.jsx)(n4,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Y(e.onCloseAutoFocus,e=>{e.preventDefault(),o.current||n.triggerRef.current?.focus()}),onPointerDownOutside:Y(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;o.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:Y(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),n3=p.forwardRef((e,t)=>{let n=nH(n0,e.__scopePopover),r=p.useRef(!1),i=p.useRef(!1);return(0,f.jsx)(n4,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let o=t.target;n.triggerRef.current?.contains(o)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),n4=p.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,...d}=e,h=nH(n0,n),m=n_(n);return p.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??el()),document.body.insertAdjacentElement("beforeend",e[1]??el()),ea++,()=>{1===ea&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),ea--}},[]),(0,f.jsx)(eh,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,f.jsx)(ei,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>h.onOpenChange(!1),children:(0,f.jsx)(tK,{"data-state":n9(h.open),role:"dialog",id:h.contentId,...m,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),n8="PopoverClose";function n9(e){return e?"open":"closed"}p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=nH(n8,n);return(0,f.jsx)(ee.button,{type:"button",...r,ref:t,onClick:Y(e.onClick,()=>i.onOpenChange(!1))})}).displayName=n8,p.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=n_(n);return(0,f.jsx)(tX,{...i,...r,ref:t})}).displayName="PopoverArrow";var n6=e.i(753104);let n7=p.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},i)=>(0,f.jsx)(nQ,{children:(0,f.jsx)(n1,{ref:i,align:t,sideOffset:n,className:(0,n6.cn)("z-[9999] w-72 rounded-md border border-gray-200 bg-white p-4 text-gray-900 shadow-lg outline-none",e),...r})}));n7.displayName=n1.displayName,e.s(["ColorPicker",0,function({color:e,onChange:t,className:n,recentColors:r,onColorCommit:i}){let[o,s]=(0,p.useState)(!1),[a,l]=(0,p.useState)(!1),u=(0,p.useRef)(e),c=(0,p.useRef)(e);(0,p.useEffect)(()=>
1{l("EyeDropper"in window)},[]),(0,p.useEffect)(()=>{c.current=e},[e]);let d=e=>{c.current=e,t(e)},h=async()=>{if(window.EyeDropper)try{let e=new window.EyeDropper,n=await e.open();c.current=n.sRGBHex,t(n.sRGBHex)}catch(e){}},m=c.current.toLowerCase()!==u.current.toLowerCase();return(0,f.jsxs)(nK,{open:o,onOpenChange:t=>{t?(u.current=e,c.current=e):c.current.toLowerCase()!==u.current.toLowerCase()&&i?.(c.current),s(t)},children:[(0,f.jsx)(nX,{className:(0,n6.cn)("w-10 h-10 rounded-md border-2 border-gray-200 hover:border-black transition-colors cursor-pointer",n),style:{backgroundColor:e}}),(0,f.jsxs)(n7,{className:"w-auto p-3",align:"start",children:[(0,f.jsx)("div",{className:"flex justify-center",children:(0,f.jsx)(_,{color:e,onChange:d})}),(0,f.jsxs)("div",{className:"flex items-center gap-2 mt-3",children:[(0,f.jsx)("span",{className:"text-sm text-gray-500",children:"#"}),(0,f.jsx)(G,{color:e,onChange:d,className:"flex h-9 w-full rounded-md border border-gray-200 bg-white px-3 py-1 text-sm uppercase text-black",prefixed:!1}),(0,f.jsx)("button",{type:"button",onClick:h,disabled:!a,className:(0,n6.cn)("flex items-center justify-center w-9 h-9 rounded-md border border-gray-200 transition-colors",a?"hover:bg-gray-100":"opacity-50 cursor-not-allowed"),title:a?"Pick color from screen":"Color picker not supported in this browser. Please use Chrome or Edge.",children:(0,f.jsxs)("svg",{className:"w-5 h-5 text-gray-600",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",children:[(0,f.jsx)("path",{d:"m2 22 1-1h3l9-9"}),(0,f.jsx)("path",{d:"M3 21v-3l9-9"}),(0,f.jsx)("path",{d:"m15 6 3.4-3.4a2.1 2.1 0 1 1 3 3L18 9l.4.4a2.1 2.1 0 1 1-3 3l-3.8-3.8a2.1 2.1 0 1 1 3-3l.4.4Z"})]})})]}),m&&(0,f.jsxs)("button",{type:"button",onClick:()=>{c.current=u.current,t(u.current)},className:"mt-3 w-full flex items-center justify-center gap-2 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-md transition-colors",children:[(0,f.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,f.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 10h10a8 8 0 018 8v2M3 10l6 6m-6-6l6-6"})}),"Reset to ",u.current.toUpperCase()]}),r&&r.length>0&&(0,f.jsxs)("div",{className:"mt-3 border-t border-gray-200 pt-3",children:[(0,f.jsx)("div",{className:"text-xs text-gray-500 mb-2",children:"Recent Colors"}),(0,f.jsx)("div",{className:"flex flex-wrap gap-1.5",children:r.map((e,t)=>(0,f.jsx)("button",{type:"button",onClick:()=>{d(e)},className:"w-6 h-6 rounded border border-gray-200 hover:border-black transition-colors cursor-pointer",style:{backgroundColor:e},title:e.toUpperCase()},`${e}-${t}`))})]})]})]})}],157785)},768656,e=>{"use strict";e.s(["addRecentColor",0,function(e,t){let n=t.toLowerCase(),r=(e||[]).filter(e=>e.toLowerCase()!==n);return[n,...r].slice(0,5)},"cssColorToHex",0,function(e){if(!e)return;let t=e.trim(),n=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i.exec(t);if(n){let e=n[1],t=3===e.length?e.split("").map(e=>e+e).join(""):e;return`#${t.toLowerCase()}`}let r=/^rgba?\(\s*([\d.]+)\s*[,\s]\s*([\d.]+)\s*[,\s]\s*([\d.]+)\s*(?:[,/]\s*([\d.]+%?)\s*)?\)$/i.exec(t);if(!r)return;if(void 0!==r[4]){let e=r[4],t=e.endsWith("%")?parseFloat(e)/100:parseFloat(e);if(Number.isFinite(t)&&0===t)return}let i=e=>Math.min(255,Math.max(0,Math.round(parseFloat(e)))).toString(16).padStart(2,"0");return`#${i(r[1])}${i(r[2])}${i(r[3])}`}])},24255,e=>{"use strict";var t=e.i(394602);let n=e=>e?"string"==typeof e?e:"object"==typeof e&&e.url?e.url:e instanceof File||e instanceof Blob?URL.createObjectURL(e):(console.error("[getImageSrc] Invalid image type:",typeof e,e),""):(console.log("[getImageSrc] Received null/undefined image"),""),r=e=>e?"object"==typeof e&&e.url&&e.id?e.url:"object"==typeof e&&e.dataUrl?e.dataUrl:n(e):"";e.s(["fileToImageFile",0,(e,t="")=>{let n=e.name.split(".").pop()||"jpg",r=e.name.replace(/\.[^/.]+$/,"");return{file:e,filename:t?`${t}-${r}.${n}`:`${r}.${n}`}},"generateArtistSessionId",0,e=>{let t=Math.floor(9e3*Math.random())+1e3;if(e){let n=e.trim().split(" ").filter(e=>e.length>0);if(n.length>0){let e=n[0].toLowerCase().replace(/[^a-z0-9]/g,""),r=n.length>1?n[n.length-1].toLowerCase().replace(/[^a-z0-9]/g,""):"";if(e&&r)return`${e}-${r}-${t}`;if(e)return`${e}-${t}`}}return`upload-${t}`},"getFileName",0,e=>{if(!e)return"Uploaded file";if("string"==typeof e)try{let t=new URL(e).pathname.split("/");return t[t.length-1]||"Uploaded file"}catch{return"Uploaded file"}return e instanceof File||"object"==typeof e&&e.name?e.name:"Uploaded file"},"getGalleryItemKeys",0,e=>{let t=new Map;return e.map((e,n)=>{let r;r="string"==typeof e?`url:${e}`:e&&"object"==typeof e&&"id"in e&&"string"==typeof e.id&&e.id?`id:${e.id}`:`idx:${n}`;let i=t.get(r)??0;return t.set(r,i+1),0===i?r:`${r}#${i}`})},"getImageSrc",0,n,"getImageUrl",0,r,"getStoredAspectRatio",0,e=>e&&"object"==typeof e?"aspectRatio"in e&&"number"==typeof e.aspectRatio&&e.aspectRatio>0?e.aspectRatio:"width"in e&&"height"in e&&"number"==typeof e.width&&"number"==typeof e.height&&e.width>0&&e.height>0?e.width/e.height:null:null,"getThumbnailUrl",0,e=>e&&"object"==typeof e&&"thumbUrl"in e&&"string"==typeof e.thumbUrl&&e.thumbUrl?(0,t.getCdnUrl)(e.thumbUrl):r(e),"getVideoSrc",0,e=>"string"==typeof e?e:URL.createObjectURL(e)])},916694,228395,292688,428585,e=>{"use strict";var t=e.i(39887),n=e.i(364161);
1e.s(["InlineTextMenu",0,({isVisible:e,position:r,onFontChange:i,onSizeChange:o,onColorChange:s,onBoldToggle:a,onItalicToggle:l,currentFont:u,currentSize:c,currentColor:d,isBold:h,isItalic:f})=>{if(!e)return null;let p=(0,t.jsxs)("div",{className:"fixed bg-white rounded-lg shadow-xl border border-gray-200 p-2 flex items-center gap-1",style:{left:r.x,top:r.y-60,transform:"translateX(-50%)",zIndex:999999},"data-text-menu":!0,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:[(0,t.jsx)("select",{value:u,onChange:e=>i(e.target.value),className:"text-sm text-black border border-gray-200 rounded px-2 py-1 min-w-[120px] focus:outline-none focus:ring-1 focus:ring-black",children:[{name:"Playfair Display",value:"Playfair Display"},{name:"Source Sans Pro",value:"Source Sans Pro"},{name:"Montserrat",value:"Montserrat"},{name:"Open Sans",value:"Open Sans"},{name:"Lato",value:"Lato"},{name:"Roboto",value:"Roboto"}].map(e=>(0,t.jsx)("option",{value:e.value,style:{fontFamily:e.value,color:"black"},children:e.name},e.value))}),(0,t.jsx)("select",{value:c,onChange:e=>o(e.target.value),className:"text-sm text-black border border-gray-200 rounded px-2 py-1 w-16 focus:outline-none focus:ring-1 focus:ring-black",children:["12px","14px","16px","18px","20px","24px","28px","32px","36px","48px","60px","72px"].map(e=>(0,t.jsx)("option",{value:e,style:{color:"black"},children:e},e))}),(0,t.jsx)("button",{onClick:a,className:`p-1 rounded text-sm font-bold w-8 h-8 flex items-center justify-center transition-colors ${h?"bg-blue-100 text-blue-700":"text-black hover:bg-gray-100"}`,children:"B"}),(0,t.jsx)("button",{onClick:l,className:`p-1 rounded text-sm italic w-8 h-8 flex items-center justify-center transition-colors ${f?"bg-blue-100 text-blue-700":"text-black hover:bg-gray-100"}`,children:"I"}),(0,t.jsx)("div",{className:"relative",children:(0,t.jsx)("input",{type:"color",value:d,onChange:e=>s(e.target.value),className:"w-8 h-8 rounded border border-gray-200 cursor-pointer",title:"Text Color"})})]});return(0,n.createPortal)(p,document.body)}],916694);var r=e.i(148500);e.s(["TextEditingHelpModal",0,function({onClose:e}){return(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&e()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e]),(0,t.jsx)("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-[999999]",onClick:e,children:(0,t.jsxs)("div",{className:"bg-white rounded-lg shadow-xl max-w-2xl w-full mx-4 max-h-[80vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-black",children:"Text"}),(0,t.jsx)("button",{onClick:e,className:"p-2 hover:bg-gray-100 rounded-lg transition-colors",title:"Close",children:(0,t.jsx)("svg",{className:"w-5 h-5 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsxs)("div",{className:"p-6 space-y-6",children:[(0,t.jsx)("p",{className:"text-gray-700 leading-relaxed",children:"Start typing the content of your site. You can format your text to look just as you want, and place it wherever you want on your page."}),(0,t.jsx)("div",{className:"space-y-4",children:[{question:"How do I change what the text says?",answer:"Click directly on any text element to start editing. You can type, delete, and modify the content just like in a text editor."},{question:"How do I format text?",answer:"After clicking on text, click the 'Format Text' button that appears below it. This opens the text settings where you can change font, size, weight, and styling."},{question:"Can I use different fonts?",answer:"Yes! In the text settings panel, you can choose from a variety of professional fonts suitable for musician websites, including serif and sans-serif options."},{question:"What text formatting options are available?",answer:"You can adjust font family, font weight, font size, and apply bold, italic, underline, or change the text color."}].map((e,n)=>(0,t.jsxs)("details",{className:"group border border-gray-200 rounded-lg overflow-hidden",children:[(0,t.jsxs)("summary",{className:"px-4 py-3 cursor-pointer hover:bg-gray-50 transition-colors flex items-center justify-between",children:[(0,t.jsx)("span",{className:"text-sm font-medium text-black",children:e.question}),(0,t.jsx)("svg",{className:"w-5 h-5 text-blue-600 group-open:rotate-90 transition-transform",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})})]}),(0,t.jsx)("div",{className:"px-4 py-3 bg-gray-50 text-sm text-gray-700 leading-relaxed border-t border-gray-200",children:e.answer})]},n))})]}),(0,t.jsx)("div",{className:"p-6 border-t border-gray-200 bg-gray-50",children:(0,t.jsx)("button",{onClick:e,className:"w-full px-4 py-2 bg-black text-white rounded-md hover:bg-gray-800 transition-colors font-medium",children:"Got it"})})]})})}],228395),e.s(["PastePreviewModal",0,function({isOpen:e,initialText:i,onInsert:o,onClose:s}){let[a,l]=(0,r.useState)(i),u=(0,r.useRef)(null);if((0,r.useEffect)(()=>
1{l(i)},[i]),(0,r.useEffect)(()=>{e&&u.current&&(u.current.focus(),u.current.setSelectionRange(a.length,a.length))},[e]),(0,r.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&s()};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e,s]),!e)return null;let c=a.trim()?a.trim().split(/\s+/).length:0,d=a.length,h=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[999998] bg-black/20",onClick:s}),(0,t.jsxs)("div",{className:"fixed z-[999999] bg-white rounded-lg shadow-2xl border border-gray-200 w-[90vw] max-w-2xl",style:{left:"50%",top:"50%",transform:"translate(-50%, -50%)"},onClick:e=>e.stopPropagation(),children:[(0,t.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-gray-200",children:[(0,t.jsx)("h3",{className:"text-sm font-bold text-black uppercase tracking-wider",children:"Review Pasted Text"}),(0,t.jsx)("button",{onClick:s,className:"p-1 hover:bg-gray-100 rounded transition-colors",title:"Close",children:(0,t.jsx)("svg",{className:"w-4 h-4 text-gray-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("p",{className:"text-sm text-gray-600 mb-3",children:"Edit the text below before inserting it into your content."}),(0,t.jsx)("textarea",{ref:u,value:a,onChange:e=>l(e.target.value),className:"w-full h-64 px-3 py-2 border border-gray-300 rounded-md resize-y focus:outline-none focus:ring-2 focus:ring-black focus:border-transparent text-sm text-black",placeholder:"Pasted text will appear here..."}),(0,t.jsxs)("div",{className:"flex justify-between mt-2 text-xs text-gray-500",children:[(0,t.jsxs)("span",{children:[d," characters"]}),(0,t.jsxs)("span",{children:[c," words"]})]})]}),(0,t.jsxs)("div",{className:"p-4 border-t border-gray-200 flex gap-2",children:[(0,t.jsx)("button",{onClick:s,className:"flex-1 px-4 py-2 border border-gray-300 rounded-md hover:bg-gray-50 transition-colors text-sm font-medium text-black",children:"Cancel"}),(0,t.jsx)("button",{onClick:()=>{o(a),s()},disabled:!a.trim(),className:"flex-1 px-4 py-2 bg-black text-white rounded-md hover:bg-gray-800 transition-colors text-sm font-medium disabled:opacity-50 disabled:cursor-not-allowed",children:"Insert"})]})]})]});return(0,n.createPortal)(h,document.body)}],292688),e.s(["LinkEditorModal",0,({isOpen:e,initialUrl:i="",selectedText:o="",position:s,onSave:a,onRemove:l,onClose:u})=>{let[c,d]=(0,r.useState)(i),h=(0,r.useRef)(null);if((0,r.useEffect)(()=>{d(i)},[i,e]),(0,r.useEffect)(()=>{e&&h.current&&(h.current.focus(),h.current.select())},[e]),!e)return null;let f=(0,t.jsx)("div",{className:"fixed inset-0 z-[999998]",onClick:u,children:(0,t.jsx)("div",{className:"fixed bg-white rounded-lg shadow-xl border border-gray-200 p-4 min-w-[320px]",style:{left:Math.min(s.x,window.innerWidth-340),top:Math.min(s.y+10,window.innerHeight-200),zIndex:999999},"data-text-menu":!0,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,t.jsxs)("form",{onSubmit:e=>{if(e.preventDefault(),c.trim()){let e=c.trim();e&&!e.match(/^(https?:\/\/|mailto:)/i)&&(e="https://"+e),a(e)}},children:[(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Link URL"}),(0,t.jsx)("input",{ref:h,type:"text",value:c,onChange:e=>d(e.target.value),onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),u())},placeholder:"https://example.com",className:"w-full px-3 py-2 border border-gray-300 rounded-md text-sm text-black focus:outline-none focus:ring-2 focus:ring-black focus:border-transparent","data-text-menu":!0})]}),o&&(0,t.jsxs)("div",{className:"mb-3 text-sm text-gray-500",children:["Text: ",(0,t.jsxs)("span",{className:"font-medium text-gray-700",children:['"',o,'"']})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,t.jsx)("div",{children:i&&(0,t.jsx)("button",{type:"button",onClick:()=>{l(),u()},className:"text-sm text-red-600 hover:text-red-700",children:"Remove link"})}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:u,className:"px-3 py-1.5 text-sm text-gray-600 hover:text-gray-800",children:"Cancel"}),(0,t.jsx)("button",{type:"submit",disabled:!c.trim(),className:"px-3 py-1.5 bg-black text-white text-sm rounded-md hover:bg-gray-800 disabled:opacity-50 disabled:cursor-not-allowed",children:i?"Update":"Add Link"})]})]})]})})});return(0,n.createPortal)(f,document.body)}],428585)},568584,972688,536512,e=>{"use strict";var t=e.i(39887),n=e.i(364161),r=e.i(428585),i=e.i(157785),o=e.i(148500);let s=["12px","14px","16px","18px","20px","24px","28px","32px","36px","48px","60px","72px"];e.s(["RichTextToolbar",0,({isVisible:e,position:a,selectedText:l,isLink:u,currentLinkUrl:c,isBold:d,isItalic:h,fontSize:f,color:p,recentColors:m,isBulletList:g,isNumberedList:v,showLists:y,onBoldToggle:x,onItalicToggle:b,onLinkAdd:w,onLinkRemove:S,onFontSizeChange:E,onColorChange:T,onBulletListToggle:k,onNumberedListToggle:C,onClearFormat:P,onInteractionStart:A,onInteractionEnd:R})=>{let[M,L]=(0,o.useState)(!1),[N,j]=(0,o.useState)(p??"#000000");if((0,o.useEffect)(()=>{j(p??"#000000")},[p]),!e&&!M)return null;let D=e?(0,t.jsxs)("div",{className:"fixed bg-white rounded-lg shadow-xl border border-gray-200 p-1 flex items-center gap-0.5",style:{left:a.x,top:Math.max(50,a.y-44),transform:"translateX(-50%)",zIndex:999998},"data-text-menu":!0,onClick:e=>e.stopPropagation(),onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>A?.(),onMouseLeave:()=>R?.(),children:[(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),x()},onMouseDown:e=>e.preventDefault(),className:`p-1.5 rounded text-sm font-bold w-8 h-8 flex items-center justify-center transition-colors ${d?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"}`,title:"Bold (Ctrl+B)",children:"B"}),(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),b()},onMouseDown:e=>e.preventDefault(),className:`p-1.5 rounded text-sm italic w-8 h-8 flex items-center justify-center transition-colors ${h?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"}`,title:"Italic (Ctrl+I)",children:"I"}),(0,t.jsx)("div",{className:"w-px h-6 bg-gray-200 mx-0.5"}),(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),L(!0)},onMouseDown:e=>e.preventDefault(),className:`p-1.5 rounded text-sm w-8 h-8 flex items-center justify-center transition-colors ${u?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"}`,title:"Add Link (Ctrl+K)",children:(0,t.jsx)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"})})}),y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),k()},onMouseDown:e=>e.preventDefault(),className:`p-1.5 rounded text-sm w-8 h-8 flex items-center justify-center transition-colors ${g?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"}`,title:"Bullet list",children:(0,t.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,t.jsx)("circle",{cx:"5",cy:"6",r:"1.2",fill:"
1currentColor"}),(0,t.jsx)("circle",{cx:"5",cy:"12",r:"1.2",fill:"currentColor"}),(0,t.jsx)("circle",{cx:"5",cy:"18",r:"1.2",fill:"currentColor"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeWidth:2,d:"M9 6h11M9 12h11M9 18h11"})]})}),(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),C()},onMouseDown:e=>e.preventDefault(),className:`p-1.5 rounded text-sm w-8 h-8 flex items-center justify-center transition-colors ${v?"bg-blue-100 text-blue-700":"text-gray-700 hover:bg-gray-100"}`,title:"Numbered list",children:(0,t.jsxs)("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[(0,t.jsx)("text",{x:"2",y:"8",fontSize:"6",fill:"currentColor",stroke:"none",children:"1."}),(0,t.jsx)("text",{x:"2",y:"14",fontSize:"6",fill:"currentColor",stroke:"none",children:"2."}),(0,t.jsx)("text",{x:"2",y:"20",fontSize:"6",fill:"currentColor",stroke:"none",children:"3."}),(0,t.jsx)("path",{strokeLinecap:"round",strokeWidth:2,d:"M9 6h11M9 12h11M9 18h11"})]})})]}),(0,t.jsx)("div",{className:"w-px h-6 bg-gray-200 mx-0.5"}),(0,t.jsxs)("select",{value:f??"",onChange:e=>{let t=e.target.value;t&&E(t)},onMouseDown:e=>e.stopPropagation(),className:"text-sm text-black border border-gray-200 rounded px-1.5 py-0.5 h-7 focus:outline-none focus:ring-1 focus:ring-black bg-white",title:"Font Size",children:[!f&&(0,t.jsx)("option",{value:"",children:"—"}),f&&!s.includes(f)&&(0,t.jsx)("option",{value:f,children:f}),s.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]}),(0,t.jsx)("div",{className:"w-8 h-8 flex items-center justify-center",onMouseDown:e=>e.stopPropagation(),title:"Text Color",children:(0,t.jsx)(i.ColorPicker,{color:N,onChange:j,onColorCommit:T,recentColors:m,className:"w-5 h-5 rounded-full border border-gray-300"})}),(0,t.jsx)("div",{className:"w-px h-6 bg-gray-200 mx-0.5"}),(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),P()},onMouseDown:e=>e.preventDefault(),className:"p-1.5 rounded text-sm w-8 h-8 flex items-center justify-center text-gray-700 hover:bg-gray-100 transition-colors",title:"Clear formatting",children:(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"})})})]}):null;return(0,t.jsxs)(t.Fragment,{children:[D&&(0,n.createPortal)(D,document.body),(0,t.jsx)(r.LinkEditorModal,{isOpen:M,initialUrl:c||"",selectedText:l,position:a,onSave:e=>{w(e),L(!1)},onRemove:()=>{S(),L(!1)},onClose:()=>L(!1)})]})}],568584);
1let a=/^[#a-zA-Z0-9.,()% \-]+$/;function l(e){return a.test(e)&&e.length<=64}let u=/^(https?:|mailto:)/i;function c(e){return u.test(e.trim())}function d(e){switch(e.type){case"text":return h(e.content).replace(/\n/g,"<br>");case"bold":return`<b>${e.children.map(d).join("")}</b>`;case"italic":return`<i>${e.children.map(d).join("")}</i>`;case"link":{let t=e.children.map(d).join("");if(!c(e.url))return t;let n=h(e.url.trim());return`<a href="${n}" target="_blank" rel="noopener noreferrer">${t}</a>`}case"fontSize":{let t=e.children.map(d).join("");if(!l(e.value))return t;return`<span style="font-size: ${e.value}">${t}</span>`}case"color":{let t=e.children.map(d).join("");if(!l(e.value))return t;return`<span style="color: ${e.value}">${t}</span>`}case"list":{let t=e.ordered?"ol":"ul";return`<${t}>${e.children.map(d).join("")}</${t}>`}case"listItem":{let t=e.children.map(d).join("");return`<li>${t||"<br>"}</li>`}default:return""}}function h(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function f(e){return e.map(p).join("")}function p(e){switch(e.type){case"text":return e.content;case"bold":case"italic":case"link":case"fontSize":case"color":case"listItem":return e.children.map(p).join("");case"list":return e.children.map(p).join("\n");default:return""}}function m(e){return g(function(e){let t={kind:"element",tag:"#root",href:"",fontSize:"",color:"",children:[]},n=[t],r=()=>n[n.length-1],i="",o=()=>{i&&(r().children.push({kind:"text",text:function(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if("&"===r){let r=e.slice(n).match(x);r?(t+=r[0],n+=r[0].length-1):t+="&amp;"}else"<"===r?t+="&lt;":">"===r?t+="&gt;":t+=r}return t}(i)}),i="")},s=0;for(;s<e.length;){let t=e[s];if("<"!==t){i+=t,s++;continue}if(e.startsWith("<!--",s)){o();let t=e.indexOf("-->",s+4);s=-1===t?e.length:t+3;continue}if("!"===e[s+1]||"?"===e[s+1]){o();let t=e.indexOf(">",s+2);s=-1===t?e.length:t+1;continue}let a="/"===e[s+1],l=e.slice(s+(a?2:1)).match(/^[a-zA-Z][a-zA-Z0-9-]*/);if(!l){i+=t,s++;continue}let u=function(e,t){let n=null;for(let r=t;r<e.length;r++){let t=e[r];if(n)t===n&&(n=null);else if('"'===t||"'"===t)n=t;else if(">"===t)return r}return -1}(e,s+1);if(-1===u)break;o();let c=l[0].toLowerCase();if(a){for(let e=n.length-1;e>0;e--)if(n[e].tag===c){n.length=e;break}s=u+1;continue}let d=e.slice(s+1+c.length,u),f=function(e){let t,n={},r=/([^\s"'<>/=]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+)))?/g;for(;null!==(t=r.exec(e));){let e=t[1].toLowerCase();e in n||(n[e]=(t[2]??t[3]??t[4]??"").replace(/&(#[0-9]{1,7}|#[xX][0-9a-fA-F]{1,6}|[a-zA-Z][a-zA-Z0-9]{0,31});?/g,(e,t)=>{if("#"===t[0]){let e="x"===t[1]||"X"===t[1]?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return!Number.isFinite(e)||e<=0||e>1114111?"�":String.fromCodePoint(e)}return b[t.toLowerCase()]??e}))}return n}(d),{fontSize:p,color:m}=function(e){let t="",n="";for(let r of e.split(";")){let e=r.indexOf(":");if(-1===e)continue;let i=r.slice(0,e).trim().toLowerCase(),o=r.slice(e+1).trim();"font-size"===i?t=o:"color"===i&&(n=o)}return{fontSize:t,color:n}}(f.style||"");if("li"===c){let e=n.map(e=>e.tag).lastIndexOf("li");e>Math.max(n.map(e=>e.tag).lastIndexOf("ul"),n.map(e=>e.tag).lastIndexOf("ol"))&&e>0&&(n.length=e)}else("p"===c||"div"===c||"ul"===c||"ol"===c)&&"p"===r().tag&&n.pop();let g={kind:"element",tag:c,href:f.href||"",fontSize:p,color:m||"font"===c&&f.color||"",children:[]};if(r().children.push(g),s=u+1,y.has(c)){let t=e.toLowerCase().indexOf(`</${c}`,s),n=-1===t?e.length:t,r=e.slice(s,n);if(r&&g.children.push({kind:"text",text:h(r)}),-1===t)s=e.length;else{let n=e.indexOf(">",t);s=-1===n?e.length:n+1}continue}let x=/\/\s*$/.test(d);v.has(c)||x||n.push(g)}return o(),t.children}(e))}function g(e){let t="";for(let n of e){if("text"===n.kind){t+=n.text;continue}let e=n.tag;if("b"===e||"strong"===e)t+=`<b>${g(n.children)}</b>`;else if("i"===e||"em"===e)t+=`<i>${g(n.children)}</i>`;else if("a"===e)c(n.href)?t+=`<a href="${h(n.href.trim())}" target="_blank" rel="noopener noreferrer">${g(n.children)}</a>`:t+=g(n.children);else if("span"===e||"font"===e){let e=g(n.children);n.color&&l(n.color)&&(e=`<span style="color: ${n.color}">${e}</span>`),n.fontSize&&l(n.fontSize)&&(e=`<span style="font-size: ${n.fontSize}">${e}</span>`),t+=e}else if("ul"===e||"ol"===e){let r="";for(let e of n.children)"element"===e.kind&&"li"===e.tag&&(r+=`<li>${g(e.children)}</li>`);r&&(t+=`<${e}>${r}</${e}>`)}else if("li"===e)t+=g(n.children);else if("br"===e)t+="<br>";else if("div"===e){let e=g(n.children);t.length>0&&e.length>0&&(t+="<br>"),t+=e}else if("p"===e){let e=g(n.children);t.length>0&&e.length>0&&(t+="<br><br>"),t+=e}else t+=g(n.children)}return t}let v=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),y=new Set(["script","style","textarea","title","xmp","iframe","noembed","noframes","noscript"]),x=/^&(#[0-9]{1,7}|#[xX][0-9a-fA-F]{1,6}|[a-zA-Z][a-zA-Z0-9]{0,31});/,b={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",colon:":",sol:"/",tab:"	",newline:"\n",lpar:"(",rpar:")",
1semi:";",num:"#",percnt:"%",period:".",comma:","};e.s(["isRichText",0,function(e){return!!Array.isArray(e)&&0!==e.length&&e.every(e=>{if("object"!=typeof e||null===e||!("type"in e))return!1;let t=e.type;return"text"===t?"content"in e&&"string"==typeof e.content:"bold"===t||"italic"===t?"children"in e&&Array.isArray(e.children):"link"===t?"url"in e&&"children"in e&&"string"==typeof e.url&&Array.isArray(e.children):"fontSize"===t||"color"===t?"value"in e&&"children"in e&&"string"==typeof e.value&&Array.isArray(e.children):"list"===t?"ordered"in e&&"children"in e&&"boolean"==typeof e.ordered&&Array.isArray(e.children):"listItem"===t&&"children"in e&&Array.isArray(e.children)})},"isSafeLinkUrl",0,c,"parseHtmlToRichText",0,function(e){let t=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html").body.firstChild;return t?function e(t){let n=[];return t.forEach(t=>{if(t.nodeType===Node.TEXT_NODE){let e=t.textContent||"";e&&n.push({type:"text",content:e})}else if(t.nodeType===Node.ELEMENT_NODE){let r=t.tagName.toLowerCase();if("br"===r)n.push({type:"text",content:"\n"});else if("b"===r||"strong"===r){let r=e(t.childNodes);r.length>0&&n.push({type:"bold",children:r})}else if("i"===r||"em"===r){let r=e(t.childNodes);r.length>0&&n.push({type:"italic",children:r})}else if("a"===r){let r=t.getAttribute("href")||"",i=e(t.childNodes);i.length>0&&n.push({type:"link",url:r,children:i})}else if("span"===r||"font"===r){let i=t.style.fontSize,o=t.style.color,s="font"===r&&t.getAttribute("color")||"",a=o||s,u=e(t.childNodes);if(u.length>0){let e=u;a&&l(a)&&(e=[{type:"color",value:a,children:e}]),i&&l(i)&&(e=[{type:"fontSize",value:i,children:e}]),n.push(...e)}}else if("ul"===r||"ol"===r){let i=[];t.childNodes.forEach(t=>{if(t.nodeType===Node.ELEMENT_NODE&&"li"===t.tagName.toLowerCase()){let n=e(t.childNodes);i.push({type:"listItem",children:n})}}),i.length>0&&n.push({type:"list",ordered:"ol"===r,children:i})}else if("li"===r){let r=e(t.childNodes);n.push(...r)}else if("div"===r){let r=e(t.childNodes);n.length>0&&r.length>0&&n.push({type:"text",content:"\n"}),n.push(...r)}else if("p"===r){let r=e(t.childNodes);n.length>0&&r.length>0&&n.push({type:"text",content:"\n\n"}),n.push(...r)}else{let r=e(t.childNodes);n.push(...r)}}}),n}(t.childNodes):[{type:"text",content:e}]},"plainTextToHtml",0,function(e){return e?d({type:"text",content:e.replace(/\r\n?/g,"\n")}):""},"richTextHasFormatting",0,function(e){return!!e&&0!==e.length&&e.some(e=>"text"!==e.type)},"richTextToHtml",0,function(e){return e.map(d).join("")},"richTextToPlainText",0,f,"sanitizeHtml",0,function(e){if("u"<typeof DOMParser)return m(e);let t=new DOMParser().parseFromString(`<div>${e}</div>`,"text/html").body.firstChild;return t?g(function e(t){let n=[];return t.forEach(t=>{if(t.nodeType===Node.TEXT_NODE)n.push({kind:"text",text:h(t.textContent||"")});else if(t.nodeType===Node.ELEMENT_NODE){let r=t.tagName.toLowerCase();n.push({kind:"element",tag:r,href:t.getAttribute("href")||"",fontSize:t.style?.fontSize||"",color:t.style?.color||"font"===r&&t.getAttribute("color")||"",children:e(t.childNodes)})}}),n}(t.childNodes)):""},"sanitizeHtmlForRender",0,m,"truncateRichText",0,function(e,t){let n;if(!e||0===e.length)return{truncated:[],wasTruncated:!1};let r=f(e),i=r.split(/\n\s*\n/).filter(e=>e.trim()),o=i.length<=1;if((o?r.split(/\n/).filter(e=>e.trim()):i).length<=t)return{truncated:e,wasTruncated:!1};let s=o?/\n/g:/\n\s*\n/g,a=[];for(;null!==(n=s.exec(r));)a.push({start:n.index,end:n.index+n[0].length});let l=0,u=r.length,c=0;for(let e=0;e<=a.length;e++){let n=c,i=e<a.length?a[e].start:r.length;if(r.slice(n,i).trim().length>0&&l++,l>=t){u=i;break}e<a.length&&(c=a[e].end)}let d=0;return{truncated:function e(t){let n=[];for(let r of t){if(d>=u)break;if("text"===r.type){let e=u-d;if(r.content.length<=e)n.push(r),d+=r.content.length;else{let t=r.content.slice(0,e).replace(/[\n\s]+$/,"");t&&n.push({type:"text",content:t}),d=u}}else{let t=e(r.children);if(t.length>0&&n.push({...r,children:t}),d>=u)break}}return n}(e),wasTruncated:!0}}],972688),e.s(["renderRichTextNodes",0,function e(n,r={}){let{preventLinkNavigation:i=!1}
1=r;return n.map((n,o)=>{switch(n.type){case"text":{let e=n.content.split("\n");return e.map((n,r)=>(0,t.jsxs)("span",{children:[n,r<e.length-1&&(0,t.jsx)("br",{})]},`${o}-${r}`))}case"bold":return(0,t.jsx)("strong",{children:e(n.children,r)},o);case"italic":return(0,t.jsx)("em",{children:e(n.children,r)},o);case"link":if(!c(n.url))return(0,t.jsx)("span",{children:e(n.children,r)},o);return(0,t.jsx)("a",{href:n.url.trim(),target:"_blank",rel:"noopener noreferrer",className:"underline decoration-current hover:opacity-80 cursor-pointer",style:{textDecorationThickness:"1px",textUnderlineOffset:"2px"},onClick:e=>{i&&e.preventDefault()},children:e(n.children,r)},o);case"fontSize":return(0,t.jsx)("span",{style:{fontSize:n.value},children:e(n.children,r)},o);case"color":return(0,t.jsx)("span",{style:{color:n.value},children:e(n.children,r)},o);case"list":{let i=n.ordered?"ol":"ul";return(0,t.jsx)(i,{className:n.ordered?"list-decimal pl-6":"list-disc pl-6",children:e(n.children,r)},o)}case"listItem":return(0,t.jsx)("li",{children:e(n.children,r)},o);default:return null}})}],536512)},17550,e=>{"use strict";var t=e.i(39887),n=e.i(148500),r=e.i(916694),i=e.i(228395),o=e.i(292688),s=e.i(568584),a=e.i(364161),l=e.i(972688),u=e.i(536512),c=e.i(765104),d=e.i(768656);let h="aw_rich_text_recent_colors",f=(0,n.forwardRef)(({field:e,className:f,placeholder:p,placeholderStyle:m,value:g,style:v,multiline:y=!1,preserveNewlines:x=!1,savedStyles:b,data:w,editable:S=!0,onTextUpdate:E,onElementSelect:T,sectionIndex:k,showEditableOutline:C=!1,autoWidth:P=!1,onRepositionClick:A,onRemove:R,richText:M=!1,richTextValue:L,onRichTextUpdate:N,recentHeaderColors:j,onColorCommit:D,globalHeaderColor:I,noWrap:O=!1,textRole:F},V)=>{let B=F??(v?.fontFamily?.includes("sans-serif")?"body":"heading"),z=(0,n.useRef)(null),[$,U]=(0,n.useState)(""),[_,W]=(0,n.useState)(!1),H=(0,n.useRef)(!1),[K,G]=(0,n.useState)(!1),[Y,X]=(0,n.useState)(!1),[q,Z]=(0,n.useState)({x:0,y:0,width:0,height:0}),J=(0,n.useRef)(null),Q=(0,n.useRef)(null),[ee,et]=(0,n.useState)(!1),[en,er]=(0,n.useState)(""),ei=(0,n.useRef)(null),[eo,es]=(0,n.useState)([]),[ea,el]=(0,n.use
1State)(!1),[eu,ec]=(0,n.useState)({x:0,y:0}),[ed,eh]=(0,n.useState)(""),[ef,ep]=(0,n.useState)(!1),[em,eg]=(0,n.useState)(!1),[ev,ey]=(0,n.useState)(!1),[ex,eb]=(0,n.useState)(void 0),[ew,eS]=(0,n.useState)(void 0),[eE,eT]=(0,n.useState)(void 0),[ek,eC]=(0,n.useState)(!1),[eP,eA]=(0,n.useState)(!1),[eR,eM]=(0,n.useState)(()=>(function(){try{let e=window.localStorage.getItem(h);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t.filter(e=>"string"==typeof e):[]}catch(e){return console.warn("Failed to read recent text colors from localStorage:",e),[]}})()),eL=(0,n.useRef)(null),eN=(0,n.useRef)(null),ej=(0,n.useRef)(!1),eD=(0,n.useRef)(null);(0,n.useEffect)(()=>{if(null===z.current){let e=g||p||"";z.current=e,U(e),M&&L&&es(L)}},[]),(0,n.useEffect)(()=>{if(_)return;let e=g||"";U(e),z.current=e,M&&es(L&&L.length>0?L:[])},[g,L,p,e,_,M]);let eI=(0,n.useRef)(!1),eO=e=>{let t=window.getSelection();if(!t||0===t.rangeCount)return null;let n=t.getRangeAt(0);if(!e.contains(n.commonAncestorContainer))return null;let r=n.cloneRange();r.selectNodeContents(e),r.setEnd(n.startContainer,n.startOffset);let i=r.toString().length,o=i+n.toString().length;return{start:i,end:o}},eF=(e,t)=>{let n=window.getSelection();if(!n)return;let r=t=>{let n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),r=t,i=null,o=n.nextNode();for(;o;){let e=o.textContent?.length??0;if(r<=e)return{node:o,offset:r};r-=e,i=o,o=n.nextNode()}return i?{node:i,offset:i.textContent?.length??0}:{node:e,offset:e.childNodes.length}},i=r(t.start),o=t.end===t.start?i:r(t.end),s=document.createRange();s.setStart(i.node,i.offset),s.setEnd(o.node,o.offset),n.removeAllRanges(),n.addRange(s)},eV=e=>{let t=window.getSelection();if(!t)return;if(Q.current){let{x:n,y:r}=Q.current;Q.current=null;let i=null;if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n,r);else if(document.caretPositionFromPoint){let e=document.caretPositionFromPoint(n,r);e&&((i=document.createRange()).setStart(e.offsetNode,e.offset),i.collapse(!0))}if(i&&e.contains(i.startContainer)){t.removeAllRanges(),t.addRange(i);return}}let n=document.createRange();e.childNodes.length>0?n.selectNodeContents(e):n.selectNode(e),n.collapse(!1),t.removeAllRanges(),t.addRange(n)};(0,n.useEffect)(()=>{_&&eQ.current?eI.current||(eI.current=!0,M&&(eQ.current.innerHTML=ta()),eQ.current.focus(),eV(eQ.current)):_||(eI.current=!1)},[_,M]);let eB=(0,n.useRef)(null),ez=(0,n.useRef)(void 0),e$=(0,n.useRef)(null),eU=(0,n.useRef)(null),e_=(0,n.useRef)(e);(0,n.useEffect)(()=>{if(!_||!eI.current){eB.current=g,ez.current=L,e_.current=e;return}let t=eQ.current;if(!t)return;let n=e!==e_.current;if(e_.current=e,eB.current=g,ez.current=L,!n)return;let r=g||"",i=M?L&&L.length>0?(0,l.richTextToHtml)(L):r.replace(/\n/g,"<br>"):null,o=e$.current;e$.current=null;let s=t===document.activeElement||t.contains(document.activeElement),a=o??(s?eO(t):null),u=null!==a||s;M&&null!==i?(t.innerHTML=i,es(L&&L.length>0?L:[])):(t.textContent=r,U(r)),u&&(t.focus(),a?eF(t,a):eV(t))},[g,L,_,M,p,e]),(0,n.useEffect)(()=>{if(!_)return;let e=()=>{let e=eU.current;if(eU.current=null,!e)return;let t=()=>{let t=eQ.current;t&&(t.focus(),eF(t,e))};requestAnimationFrame(t),setTimeout(t,60)};return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[_]),(0,n.useEffect)(()=>()=>{J.current&&clearTimeout(J.current),eL.current&&clearTimeout(eL.current),eN.current&&clearTimeout(eN.current)},[]);let eW=(0,n.useCallback)(()=>{let e,t,n;if(eN.current&&(clearTimeout(eN.current),eN.current=null),!M||!_||!eQ.current)return void el(!1);let r=window.getSelection();if(!r||0===r.rangeCount){eN.current=setTimeout(()=>{ej.current||el(!1)},150);return}let i=r.getRangeAt(0),o=r.toString();if(0===o.length){eN.current=setTimeout(()=>{ej.current||el(!1)},150);return}if(!eQ.current.contains(i.commonAncestorContainer))return void el(!1);let s=i.getBoundingClientRect();ec({x:Math.max(100,Math.min(s.left+s.width/2,window.innerWidth-100)),y:Math.max(52,s.top)}),eh(o),ep(document.queryCommandState("bold")),eg(document.queryCommandState("italic"));let a=i.commonAncestorContainer,l=!1,u=!1;for(;a&&a!==eQ.current;){if(a.nodeType===Node.ELEMENT_NODE){let n=a;"A"!==n.tagName||e||(e=n.href),"SPAN"===n.tagName&&!t&&n.style.color&&(t=(0,d.cssColorToHex)(n.style.color)),"UL"!==n.tagName||l||(l=!0),"OL"!==n.tagName||u||(u=!0)}a=a.parentNode}{let e=i.startContainer,r=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(r){let e=window.getComputedStyle(r),i=parseFloat(e.fontSize);Number.isFinite(i)&&i>0&&(n=`${Math.round(i)}px`),t||(t=(0,d.cssColorToHex)(e.color))}}ey(!!e),eb(e),eS(n),eT(t),eC(l),eA(u),o.length>0&&(eD.current=i.cloneRange()),el(!0)},[M,_]);(0,n.useEffect)(()=>
1{if(!M||!_)return;let e=()=>{eL.current&&clearTimeout(eL.current),eL.current=setTimeout(eW,50)};return document.addEventListener("selectionchange",e),()=>{document.removeEventListener("selectionchange",e),eL.current&&clearTimeout(eL.current)}},[M,_,eW]);let eH=(0,n.useRef)(!!(b?.fontFamily||w?.content?.textStyles?.[e]?.fontFamily)),eK=(0,n.useRef)(!!(b?.fontSize||w?.content?.textStyles?.[e]?.fontSize)),[eG,eY]=(0,n.useState)(!1),[eX,eq]=(0,n.useState)({x:0,y:0}),[eZ,eJ]=(0,n.useState)(()=>{let t=w?.content?.textStyles?.[e],n=b||t;return{fontFamily:n?.fontFamily,fontSize:n?.fontSize,color:n?.color,fontWeight:n?.fontWeight,fontStyle:n?.fontStyle,textDecoration:n?.textDecoration}}),eQ=(0,n.useRef)(null),e0=(0,n.useCallback)(e=>{eQ.current=e,"function"==typeof V?V(e):V&&(V.current=e)},[V]);(0,n.useEffect)(()=>{let t=w?.content?.textStyles?.[e],n=b||t;eH.current=!!n?.fontFamily,eK.current=!!n?.fontSize,eJ({fontFamily:n?.fontFamily,fontSize:n?.fontSize,color:n?.color,fontWeight:n?.fontWeight,fontStyle:n?.fontStyle,textDecoration:n?.textDecoration})},[e,b,w?.content?.textStyles]),(0,n.useEffect)(()=>{if(!_)return;let e=e=>{let t=e.target;if(!(ee||t.closest("[data-radix-popper-content-wrapper]")||document.querySelector("[data-radix-popper-content-wrapper]"))&&!(eQ.current?.contains(t)||t.closest("[data-text-menu]")||t.closest("[data-format-button]")||t.closest("[data-element-settings]"))){if(t.closest("[data-lang-tab]")){if(eQ.current){e$.current=eO(eQ.current);let e=eQ.current,t=e$.current;requestAnimationFrame(()=>{e$.current===t&&t&&(e$.current=null,e.focus(),eF(e,t))})}e5();return}e5(),W(!1),eY(!1),G(!1),el(!1)}};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[_,$,e,E,eZ,ee]);let e1=e=>{if(e.stopPropagation(),!_&&S){Q.current={x:e.clientX,y:e.clientY};let t=e.currentTarget,n=t.getBoundingClientRect(),r=n,i=t.firstChild;if(i&&i.nodeType===Node.TEXT_NODE&&i.textContent?.trim()){let e=document.createRange();e.selectNodeContents(i);let t=e.getBoundingClientRect();t.width>0&&(r=t)}Z({x:r.left,y:n.top,width:r.width,height:n.height}),W(!0),J.current=setTimeout(()=>{G(!0)},200)}},e2=()=>{let e={...eZ};for(let t of(eH.current||delete e.fontFamily,eK.current||delete e.fontSize,Object.keys(e)))void 0===e[t]&&delete e[t];return e},e5=()=>{if(H.current)return;let t=eQ.current;if(t)if(M){let n=t.innerHTML,r=(0,l.sanitizeHtml)(n),i=(0,l.parseHtmlToRichText)(r),o=(0,l.richTextToPlainText)(i).trim(),s=L&&L.length>0?L:eo;if((s.length>0?JSON.stringify(s)===JSON.stringify(i):!(0,l.richTextHasFormatting)(i))&&o===($||"").trim())return;H.current=!0,es(i),U(o),N?.(e,i,o,e2()),setTimeout(()=>{H.current=!1},100)}else{let n=(t.innerText??t.textContent??"").replace(/\r\n/g,"\n").trim();n!==$.trim()&&(H.current=!0,U(n),E?.(e,n,e2()),setTimeout(()=>{H.current=!1},100))}},e3=()=>{document.execCommand("bold",!1),eW()},e4=()=>{document.execCommand("italic",!1),eW()},e8=e=>{if(!eQ.current)return;eQ.current.focus();let t=window.getSelection();t&&eD.current&&(t.removeAllRanges(),t.addRange(eD.current)),document.execCommand(e?"insertOrderedList":"insertUnorderedList",!1),t&&t.rangeCount>0&&(eD.current=t.getRangeAt(0).cloneRange()),e5(),eW()},e9=e=>{if(ee)return;if(!document.hasFocus()){let e=eQ.current;e&&(eU.current=eO(e));return}let t=e.relatedTarget;t&&(t.closest("[data-text-menu]")||t.closest("[data-format-button]"))||e$.current||t&&t.closest("[data-lang-tab]")||(e5(),setTimeout(()=>{W(!1),eY(!1),el(!1)},150))},e6=e=>{"Enter"!==e.key||y?"Escape"===e.key&&(W(!1),eY(!1),G(!1),el(!1)):(e.preventDefault(),eQ.current?.blur()),M&&(e.ctrlKey||e.metaKey)&&("b"===e.key?(e.preventDefault(),e3()):"i"===e.key?(e.preventDefault(),e4()):"k"===e.key&&(e.preventDefault(),eW()))},e7=e=>{if(!y&&!M)return;let t=e.clipboardData.getData("text/plain");if(t.length<50)return;e.preventDefault();let n=eQ.current;if(n)try{let e=window.getSelection();if(e&&e.rangeCount>0){let t=e.getRangeAt(0),r=t.cloneRange();r.selectNodeContents(n),r.setEnd(t.startContainer,t.startOffset);let i=r.toString().length,o=i+t.toString().length;ei.current={start:i,end:o}}}catch{ei.current=null}er(t),et(!0)},te=(t,n)=>{"fontFamily"===t&&(eH.current=!0),"fontSize"===t&&(eK.current=!0);let r={...eZ,[t]:n};eJ(r);let i=eQ.current?.innerText?.replace(/\r\n/g,"\n").trim()||$;E?.(e,i,r)},tt={};v&&["fontSize","fontFamily","fontWeight","fontStyle","color","textAlign","lineHeight","letterSpacing","textDecoration","marginTop","marginBottom","marginLeft","marginRight","paddingTop","paddingBottom","paddingLeft","paddingRight","width","height","maxWidth","minWidth","maxHeight","minHeight"].forEach(e
1=>{e in v&&void 0!==v[e]&&(tt[e]=v[e])});let tn=w?.typography?.heading,tr=w?.typography?.body,ti=tr?`'${tr}', sans-serif`:v?.fontFamily,to="flowing"===B?(0,c.getFlowingTextStyle)(w).fontFamily??ti:"body"===B?ti:tn?`'${tn}', serif`:v?.fontFamily,ts={minHeight:"1.2em",...tt,fontFamily:eZ.fontFamily??to,fontSize:(eK.current?eZ.fontSize:void 0)??v?.fontSize,color:eZ.color??v?.color,fontWeight:eZ.fontWeight??v?.fontWeight,fontStyle:eZ.fontStyle??v?.fontStyle,minWidth:v?.minWidth!==void 0?v.minWidth:P?void 0:"120px",width:v?.width!==void 0?v.width:P?`${Math.max(($||p||"").length+2,10)}ch`:void 0,whiteSpace:O?"pre":x?"pre-wrap":"normal"},ta=()=>L&&L.length>0?(0,l.richTextToHtml)(L):eo&&eo.length>0?(0,l.richTextToHtml)(eo):(g||"").replace(/\n/g,"<br>");return(0,t.jsxs)(t.Fragment,{children:[M&&_?(0,t.jsx)("div",{ref:e0,className:`${f||""} outline outline-2 outline-blue-500 outline-offset-2 bg-white/20 rounded px-1 [&_ul]:list-disc [&_ul]:pl-6 [&_ol]:list-decimal [&_ol]:pl-6`,style:ts,contentEditable:!0,suppressContentEditableWarning:!0,"data-placeholder":p,onClick:e1,onBlur:e9,onKeyDown:e6,onInput:()=>{let e=eQ.current;e&&("<br>"===e.innerHTML||"<br/>"===e.innerHTML)&&(e.innerHTML="")},onPaste:e7,title:"Select text to format. Press Escape to cancel."},"rich-editing"):(0,t.jsx)("div",{ref:e0,className:`${f||""} ${_?"outline outline-2 outline-blue-500 outline-offset-2 bg-white/20 rounded px-1":S?`cursor-pointer hover:bg-white/10 transition-colors rounded px-1 ${C?"outline outline-1 outline-blue-300 outline-offset-2":""}`:"rounded px-1"}`,style:{...ts,...!_&&m&&(()=>{if(M){let e=L&&L.length>0?L:eo;if(e&&e.length>0)return!1}return!$||$===p})()?m:{}},contentEditable:_,suppressContentEditableWarning:!0,onClick:e1,onBlur:e9,onKeyDown:e6,onPaste:e7,title:S?_?"Press Enter to save, Escape to cancel":"Click to edit and style text":"",children:_?$||"":(()=>{if(M){let e=L&&L.length>0?L:eo;if(e&&e.length>0)return(0,u.renderRichTextNodes)(e,{preventLinkNavigation:S})}return x?(e=>{if(!x||_)return e;let n=e.split("\n");return n.map((e,r)=>(0,t.jsxs)("span",{children:[e,r<n.length-1&&(0,t.jsx)("br",{})]},r))})($||p||""):$||p})()},_?"editing":"display"),S&&K&&(0,a.createPortal)((0,t.jsxs)("div",{className:"fixed flex items-center gap-2 z-[999997] animate-in fade-in zoom-in-95 duration-200",style:{right:`${window.innerWidth-q.x-q.width}px`,top:`${Math.max(8,q.y-40)}px`},children:[(0,t.jsx)("button",{onClick:t=>{t.stopPropagation();let n=eQ.current?window.getComputedStyle(eQ.current).fontSize:void 0,r={...eZ,fontFamily:eZ.fontFamily??v?.fontFamily,fontSize:eZ.fontSize??("string"==typeof v?.fontSize?v.fontSize:void 0)??n,color:eZ.color??v?.color};T?.(e,k,r,{textType:"heading"===B?"heading":"body",defaultColor:v?.color}),G(!1)},onMouseDown:e=>e.stopPropagation(),"data-format-button":"true",className:"bg-white text-black px-3 py-1.5 rounded-md shadow-lg border border-gray-300 hover:bg-gray-50 transition-colors text-sm font-medium",children:"Format Text"}),A&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),G(!1),W(!1),A()},onMouseDown:e=>e.stopPropagation(),"data-format-button":"true",className:"bg-white text-black px-3 py-1.5 rounded-md shadow-lg border border-gray-300 hover:bg-gray-50 transition-colors text-sm font-medium",children:"Reposition"}),R&&(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),G(!1),W(!1),R()},onMouseDown:e=>e.stopPropagation(),"data-format-button":"true",className:"bg-white text-red-500 px-2 py-1.5 rounded-md shadow-lg border border-gray-300 hover:bg-red-50 transition-colors text-sm font-medium",children:(0,t.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),document.body),Y&&(0,t.jsx)(i.TextEditingHelpModal,{onClose:()=>X(!1)}),(0,t.jsx)(o.PastePreviewModal,{isOpen:ee,initialText:en,onInsert:t=>{let n=eQ.current;if(!n)return;n.focus();let r=n.innerText?.trim()||"";if(r&&r!==p||(n.innerHTML=""),M&&y){let e,r=(()=>{let e=0,t=n.lastChild;for(;t?.nodeName==="BR";)e++,t=t.previousSibling;return e})(),i=(e=t.match(/^[\n\r]+/))?e[0].replace(/\r/g,"").length:0,o=0;r>0&&i>0&&(o=Math.min(r,i));let s=t.slice(o).split("\n");
1s.forEach((e,t)=>{e&&n.appendChild(document.createTextNode(e)),t<s.length-1&&n.appendChild(document.createElement("br"))})}else n.appendChild(document.createTextNode(y?t:t.replace(/\s*[\r\n]+\s*/g," ")));ei.current=null;let i=n.innerText||"";if(U(i),M&&N){let t=(0,l.parseHtmlToRichText)((0,l.sanitizeHtml)(n.innerHTML));es(t),N(e,t,i,e2())}else E?.(e,i,e2())},onClose:()=>{et(!1),er(""),ei.current=null}}),S&&(0,t.jsx)(r.InlineTextMenu,{isVisible:eG,position:eX,onFontChange:e=>te("fontFamily",e),onSizeChange:e=>te("fontSize",e),onColorChange:e=>te("color",e),onBoldToggle:()=>{te("fontWeight","bold"===eZ.fontWeight?"normal":"bold")},onItalicToggle:()=>{te("fontStyle","italic"===eZ.fontStyle?"normal":"italic")},currentFont:eZ.fontFamily??to??"Playfair Display",currentSize:eZ.fontSize??("string"==typeof v?.fontSize?v.fontSize:void 0)??"16px",currentColor:eZ.color??v?.color??"#ffffff",isBold:(eZ.fontWeight??v?.fontWeight)==="bold",isItalic:(eZ.fontStyle??v?.fontStyle)==="italic"}),M&&S&&(0,t.jsx)(s.RichTextToolbar,{isVisible:ea,position:eu,selectedText:ed,isLink:ev,currentLinkUrl:ex,isBold:ef,isItalic:em,fontSize:ew,color:eE,recentColors:eR,isBulletList:ek,isNumberedList:eP,showLists:y,onBoldToggle:e3,onItalicToggle:e4,onLinkAdd:e=>{if(!eQ.current)return;eQ.current.focus();let t=window.getSelection();if(t){if(eD.current)t.removeAllRanges(),t.addRange(eD.current);else if(0===t.rangeCount)return;t.isCollapsed||0===t.toString().length||(document.execCommand("createLink",!1,e),eQ.current.querySelectorAll("a").forEach(e=>{e.target||(e.target="_blank",e.rel="noopener noreferrer")}),eD.current=null,e5(),eW())}},onLinkRemove:()=>{document.execCommand("unlink",!1),eW()},onFontSizeChange:e=>{((e,t)=>{if(!eQ.current)return;eQ.current.focus();let n=window.getSelection();if(!n||(eD.current&&(n.removeAllRanges(),n.addRange(eD.current)),0===n.rangeCount))return;let r=n.getRangeAt(0);if(r.collapsed||0===n.toString().length)return;let i=document.createElement("div");i.appendChild(r.cloneContents());let o=t.replace(/["'<>]/g,""),s=`rt-${Date.now()}-${Math.random().toString(36).slice(2)}`,a=`<span data-rt-id="${s}" style="${e}: ${o}">${i.innerHTML}</span>`;document.execCommand("insertHTML",!1,a);let l=eQ.current.querySelector(`[data-rt-id="${s}"]`);if(l){l.removeAttribute("data-rt-id");let e=document.createRange();e.selectNodeContents(l),n.removeAllRanges(),n.addRange(e),eD.current=e.cloneRange()}e5(),eW()})("font-size",e)},onColorChange:e=>{if(!eQ.current)return;eQ.current.focus();let t=window.getSelection();t&&(eD.current&&(t.removeAllRanges(),t.addRange(eD.current)),0!==t.rangeCount&&0!==t.toString().length&&(document.execCommand("styleWithCSS",!1,"true"),document.execCommand("foreColor",!1,e),t.rangeCount>0&&(eD.current=t.getRangeAt(0).cloneRange()),eM(t=>{let n=(0,d.addRecentColor)(t,e);try{window.localStorage.setItem(h,JSON.stringify(n))}catch(e){console.warn("Failed to persist recent text colors to localStorage:",e)}return n}),e5(),eW()))},onBulletListToggle:()=>e8(!1),onNumberedListToggle:()=>e8(!0),onClearFormat:()=>{if(!eQ.current)return;eQ.current.focus();let e=window.getSelection();e&&eD.current&&(e.removeAllRanges(),e.addRange(eD.current)),e&&0!==e.rangeCount&&!e.isCollapsed&&(document.execCommand("removeFormat",!1),e.rangeCount>0&&(eD.current=e.getRangeAt(0).cloneRange()),e5(),eW())},onInteractionStart:()=>{ej.current=!0},onInteractionEnd:()=>{ej.current=!1}})]})});f.displayName="InlineEditableText",e.s(["InlineEditableText",0,f])},211760,e=>{"use strict";var t=e.i(148500);e.s(["useTabSwitchFormatting",0,function({field:e,fallbackField:n,editable:r,enabled:i=!0,getCurrentStyles:o,data:s,fallbackColor:a,fallbackFontFamily:l,titleFontFamily:u,defaultFontSize:c="14px"}){let[d,h]=(0,t.useState)(!1),[f,p]=(0,t.useState)({x:0,y:0,width:0,height:0}),m=(0,t.useRef)(null),g=(0,t.useRef)(null),v=(0,t.useCallback)(()=>{let t=e=>{if(o){let t=o(e);if(t?.fontFamily||t?.color||t?.fontSize)return t}let t=s.content?.textStyles?.[e];if(t?.fontFamily||t?.color||t?.fontSize)return t};return t(e)??(n?t(n):void 0)??{}},[e,n,o,s.content?.textStyles])(),[y,x]=(0,t.useState)(()=>v||{}),b=y.color||v?.color||a,w=y.fontFamily||v?.fontFamily||u||l,S=y.fontSize||v?.fontSize||c,E=(0,t.useCallback)(()=>
1{if(!r||!i)return;g.current&&(clearTimeout(g.current),g.current=null);let e=m.current?.getBoundingClientRect();e&&(p({x:e.left,y:e.top,width:e.width,height:e.height}),h(!0))},[r,i]),T=(0,t.useCallback)(()=>{g.current=setTimeout(()=>{h(!1)},300)},[]),k=(0,t.useCallback)(()=>{g.current&&(clearTimeout(g.current),g.current=null)},[]),C=(0,t.useCallback)(()=>{g.current=setTimeout(()=>{h(!1)},300)},[]);return{field:e,showFormatButton:d,setShowFormatButton:h,buttonPosition:f,tabSwitchRef:m,localStyles:y,setLocalStyles:x,effectiveColor:b,effectiveFontFamily:w,effectiveFontSize:S,handleMouseEnter:E,handleMouseLeave:T,handlePortalMouseEnter:k,handlePortalMouseLeave:C}}])},504828,921665,374082,523528,497031,e=>{"use strict";let t="(min-width: 768px) and (orientation: landscape)";e.s(["HERO_WIDE_MEDIA_QUERY",0,t,"mobileHeroLength",0,function(e,t){if(t)return`${e}px`;let n=Math.floor(e/440*1e5)/1e3;return`max(${e}px, ${n}vmin)`}],504828);var n=e.i(39887);let r=(e,t)=>e?"":`object-${t||"center"} md:object-top`,i=e=>{if(e){let t={objectPosition:`${e.x}% ${e.y}%`};return e.zoom&&e.zoom>1&&(t.transform=`scale(${e.zoom})`,t.transformOrigin=`${e.x}% ${e.y}%`),t}return{}};function o(e,t,n){let r=n??1;return r<=1?{objectPosition:`${e}% ${t}%`}:{objectPosition:`${e}% ${t}%`,transform:`scale(${r})`,transformOrigin:`${e}% ${t}%`}}function s(e,t,n){let r=t>n?{w:n/t,h:1}:{w:1,h:t/n},i=Math.max(1,Math.max(r.w/e.width,r.h/e.height)),o=r.w/i,s=r.h/i,a=1-o,l=1-s;return{x:Math.max(0,Math.min(100,Math.round(a>.001?e.left/a*100:50))),y:Math.max(0,Math.min(100,Math.round(l>.001?e.top/l*100:50))),zoom:Math.round(100*i)/100}}function a(e){return e>=1.15?1.5:e>.85?1:.75}e.s(["analyzeImage",0,e=>new Promise(t=>{let n=new Image;n.onload=()=>{t({file:e,aspectRatio:n.width/n.height})},n.onerror=()=>t({file:e,aspectRatio:1}),e instanceof File?n.src=URL.createObjectURL(e):e&&"object"==typeof e&&e.dataUrl?n.src=e.dataUrl:e&&"object"==typeof e&&e.url?n.src=e.url:"string"==typeof e?n.src=e:t({file:e,aspectRatio:1})}),"getMobileObjectPosition",0,r,"getMobileObjectPositionStyle",0,i],921665),e.s(["bucketAspectRatio",0,a,"computeCropForContainer",0,s,"getCroppedImageStyles",0,o,"getFullCropStyles",0,function(e,t){if(!e.cropRect||!e.imageAspectRatio)return{containerStyle:{},imageStyle:o(e.x,e.y,e.zoom)};let n=e.cropRect.width/e.cropRect.height*e.imageAspectRatio,r=t.adaptContainer?a(n):t.containerAspectRatio??t.fallbackAspectRatio,{x:i,y:l,zoom:u}=s(e.cropRect,e.imageAspectRatio,r);return{containerStyle:t.adaptContainer?{aspectRatio:String(r)}:{},imageStyle:o(i,l,u)}}],374082),e.s(["ResponsiveHeroImage",0,function({imageUrl:e,mobileImageUrl:t,mobileCrop:s,desktopCrop:a,editable:l=!1,onClick:u,className:c="",alt:d="Hero background"}){return(0,n.jsxs)("div",{className:`absolute inset-0 ${c}`,children:[(0,n.jsx)("img",{src:t||e,alt:d,width:"1920",height:"1080",loading:"eager",fetchPriority:"high",decoding:"async",className:`w-full h-full object-cover hero-wide:hidden ${r(s)} ${l?"cursor-pointer":""}`,style:i(s),onClick:u}),(0,n.jsx)("img",{src:e,alt:d,width:"1920",height:"1080",loading:"eager",fetchPriority:"high",decoding:"async",className:`w-full h-full object-cover hidden hero-wide:block ${l?"cursor-pointer":""}`,style:a?o(a.x,a.y,a.zoom):{objectPosition:"50% 50%"},onClick:u})]})}],523528);var l=e.i(148500),u=e.i(878750);let c=(0,u.default)("volume-2",[["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"}]]),d=(0,u.default)("volume-x",[["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"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),h="aw:hero-video-sound",f=e=>{e.stopPropagation()};e.s(["ResponsiveHeroVideo",0,function({videoUrl:e,posterUrl:o,autoPlay:s=!0,loop:a=!0,mobilePosition:u,mobileImageUrl:p,mobileImageCrop:m,desktopCrop:g,showUnmuteButton:v=!1,soundLabels:y={mute:"Mute",unmute:"Unmute"}}){let x=(0,l.useId)(),b=(0,l.useRef)(null),[w,S]=(0,l.useState)(!0);(0,l.useEffect)(()=>
1{if(!v)return;let e=e=>{if(!(e instanceof CustomEvent))return;let t=e.detail;("object"==typeof t&&null!==t&&"id"in t?t.id:void 0)!==x&&(b.current&&(b.current.muted=!0),S(!0))};return window.addEventListener(h,e),()=>window.removeEventListener(h,e)},[x,v]);let E=(0,l.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=b.current;if(t){if(!t.muted){t.muted=!0,S(!0);return}t.muted=!1,S(!1),window.dispatchEvent(new CustomEvent(h,{detail:{id:x}})),t.paused&&t.play().catch(e=>{console.error("Background video failed to start after unmute:",e)})}},[x]),T=x.replace(/:/g,"-"),k=u?`${u.x}% ${u.y}%`:"50% 50%",C=e.endsWith(".webm")?"video/webm":"video/mp4",P=!!p,A=g?.x??50,R=g?.y??50,M=g?.zoom??1,L=u?.zoom??1,N=L>1?`transform: scale(${L}); transform-origin: ${u?.x??50}% ${u?.y??50}%;`:"",j=M>1?`transform: scale(${M}); transform-origin: ${A}% ${R}%;`:N?"transform: none;":"";return(0,n.jsxs)("div",{className:"absolute inset-0",children:[(0,n.jsx)("style",{children:`
2        #hero-video${T} { object-position: ${k}; ${N} }
3        @media ${t} { #hero-video${T} { object-position: ${A}% ${R}%; ${j} } }
4      `}),P&&(0,n.jsx)("img",{src:p,alt:"Hero background",width:"1920",height:"1080",loading:"eager",fetchPriority:"high",decoding:"async",className:`absolute inset-0 w-full h-full object-cover hero-wide:hidden ${r(m)}`,style:i(m)}),(0,n.jsx)("video",{ref:b,id:`hero-video${T}`,autoPlay:s,loop:a,muted:!0,playsInline:!0,className:`absolute inset-0 w-full h-full object-cover ${P?"hidden hero-wide:block":""}`,poster:o,children:(0,n.jsx)("source",{src:e,type:C})}),v&&(0,n.jsx)("button",{type:"button",onClick:E,onPointerDown:f,onMouseDown:f,"aria-label":y.unmute,"aria-pressed":!w,title:w?y.unmute:y.mute,className:`absolute bottom-4 right-4 z-20 w-8 h-8 bg-white/85 hover:bg-white text-gray-800 rounded-full items-center justify-center shadow transition-colors ${P?"hidden hero-wide:flex":"flex"}`,children:w?(0,n.jsx)(d,{className:"w-4 h-4"}):(0,n.jsx)(c,{className:"w-4 h-4"})})]})}],497031)},362015,375984,926332,890742,e=>{"use strict";var t=e.i(39887),n=e.i(148500),r=e.i(364161),i=e.i(789057),o=e.i(24255),s=e.i(211760),a=e.i(17550),l=e.i(504828),u=e.i(523528),c=e.i(497031),d=e.i(103299),h=e.i(88477),f=e.i(259960),p=e.i(103431);function m(e,t){return(0,p.resolveChromeLanguage)((0,h.useLanguageResolution)(e),t)}e.s(["useChromeLanguage",0,m,"useEffectiveLanguage",0,function(e,t,r={}){let{renderableLanguages:i,sectionDefaultLanguage:o,initialSectionLanguage:s}=r,{resolution:a,setActiveLanguage:l}=(0,h.useSiteLanguage)(t),[u,c]=(0,n.useState)(()=>s??(0,f.resolveInitialLanguage)(e)),{language:d,showSectionSwitcher:m}=(0,p.resolveSectionLanguage)(a,u,i);return{mode:a.mode,language:d,setLanguage:"global"===a.mode?l:c,showSectionSwitcher:m,defaultLanguage:"global"===a.mode?a.baseLanguage:o??d}},"useWeekdayLocale",0,function(e,t){return(0,p.resolveWeekdayLocale)((0,h.useLanguageResolution)(e),t)}],375984);var g=e.i(776680);function v(e,t,n){if(!t)return null;let r=n?.subPageHeroImageId,i=r&&t.images?.gallery?.find(e=>"object"==typeof e&&null!==e&&"id"in e&&e.id===r)||null;i||(i=function(e){let t=e?.images?.gallery||[];if(0===t.length)return null;let n=new Set;e?.layout?.componentAssignments?.forEach(e=>{e.imageId&&n.add(e.imageId)});let r=t.filter(e=>"object"==typeof e&&null!==e&&"id"in e&&"url"in e),i=16/9,o=r.filter(e=>e.aspectRatio&&e.aspectRatio>1).sort((e,t)=>Math.abs((e.aspectRatio||1)-i)-Math.abs((t.aspectRatio||1)-i)),s=o.find(e=>!n.has(e.id));if(s)return s;let a=r.find(e=>!n.has(e.id));return a||(o.length>0?o[0]:r[0]||null)}(t));let s=i?(0,o.getImageUrl)(i):void 0,a=n?.subPageVideoUrl||(e?t.images?.subPageHeroVideos?.[e]:void 0);return"video"===(n?.subPageMediaType||"image")&&a?{mediaType:"video",image:i,imageId:i?.id,imageUrl:s,videoUrl:a}:i&&s?{mediaType:"image",image:i,imageId:i.id,imageUrl:s}:null}e.s(["resolveSubPageHeroMedia",0,v],926332);var y=e.i(540509),x=e.i(492129);let b="aspect-[21/9]",w="max-w-[1280px] mx-auto px-4 sm:px-6 lg:px-16",S=[.87,0,.13,1];function E({imageUrl:e,imageAlt:r,placeholderColor:o,backgroundColor:s,textColor:a,editable:l=!1,fixedRatio:u=!1,imageAspectRatio:c,frameContent:d,children:h}
4){let[f,p]=(0,n.useState)(null),m=c??f,g=u?m&&m>=1?m:1.5:void 0,v=l?{}:{initial:{scale:1.2},animate:{scale:1},transition:{duration:.85,ease:S}};return(0,t.jsxs)("section",{className:"w-full",style:{backgroundColor:s,color:a},children:[(0,t.jsx)("div",{className:`${w} pt-6 md:pt-10`,children:(0,t.jsxs)("div",{className:`relative w-full overflow-hidden bg-gray-100 ${u&&!g?b:""}`,style:g?{aspectRatio:g}:void 0,children:[u&&void 0===c&&e&&!d&&(0,t.jsx)("img",{src:e,alt:"","aria-hidden":"true",className:"hidden",onLoad:e=>{let{naturalWidth:t,naturalHeight:n}=e.currentTarget;t>0&&n>0&&p(t/n)}}),d?(0,t.jsx)(i.motion.div,{className:"absolute inset-0",...v,children:d}):e?(0,t.jsx)(i.motion.img,{src:e,alt:r,loading:"eager",decoding:"async",className:u?"absolute inset-0 w-full h-full object-cover":"block w-full h-auto",...v}):(0,t.jsx)("div",{className:u?"absolute inset-0":`w-full ${b}`,style:{backgroundColor:o}})]})}),h]})}e.s(["COMPACT_SUBPAGE_INSET",0,w,"CompactSubPageHeader",0,E,"SubPageHeaderSkeleton",0,function({style:e}){return"compact"===e?(0,t.jsx)("div",{className:`${w} pt-6 md:pt-10`,children:(0,t.jsx)("div",{className:`w-full ${b} bg-gray-100 animate-pulse`})}):(0,t.jsx)("div",{className:"h-screen bg-gray-100 animate-pulse"})}],890742),e.s(["SubPageHero",0,function({title:e,data:h,sectionName:f,heroMediaKey:p,sectionIndex:b=0,sectionConfig:S,onConfigUpdate:T,onTextUpdate:k,getCurrentStyles:C,onElementSelect:P,isPanelVisible:A,isSectionSelected:R,editable:M=!1,anchorNavItems:L}){let N=h.typography?.heading||"Playfair Display",[j,D]=(0,n.useState)(!1),[I,O]=(0,n.useState)(!1),[F,V]=(0,n.useState)(null),B=p||f,z=v(B,h,S),$=z?.image||null,U=`${B}-SubPageHero`,_=h.content?.mobileCrops?.[U],W=`${B}-SubPageHero-desktop`,H=h.content?.heroCrops?.[W],K=S?.subPageHeroImageId?void 0:$?.id;(0,n.useEffect)(()=>{M&&T&&K&&T({...S,subPageHeroImageId:K})},[M,T,K,S]);let G=z?.videoUrl,Y=S?.subPageVideoAutoplay!==!1,X=S?.subPageVideoLoop!==!1,q=S?.subPageVideoShowUnmute===!0,Z=(0,d.getButtonLabels)(m(h.content)),J=(0,g.getNavTextTransformClass)((0,g.getNavTextTransform)(h)),Q=S?.subPageVideoPosterUrl,ee=S?.subPageVideoPositionMobile,et=S?.subPageTextBackdrop||!1,en=S?.subPageTextBackdropBlur,er=S?.subPageTextBackdropFeather,ei=S?.subPageTextBackdropColor,eo=S?.subPageTextBackdropColorOpacity,es=z?.mediaType==="video"&&G,ea=S?.subPageTitlePosition||{x:80,y:80},el=S?.subPageTitlePositionMobile||{x:50,y:85},eu=S?.subPageMobileTextSize||36,ec=(()=>{switch(f){case"Teaching":return"teaching-title";case"News":return"news-title";case"Projects":return"projects-title";case"Ensembles":return"ensembles-title";case"Publications":return"publications-title";case"Compositions":return"compositions-title";case"Calendar":return"calendar-title";case"Media":return"media-title";case"Repertoire":return"repertoire-title";default:return"biography-title"}})(),ed=(()=>{if(C){let e=C(ec);if(e)return e}return h.content?.textStyles?.[ec]})(),eh=f?`${f.toLowerCase()}-subpage-hero-title`:"subpage-hero-title",ef=(()=>{if(C){let e=C(eh);if(e)return e}return h.content?.textStyles?.[eh]})(),ep=h.colors?.palette||["#ffffff","#1a1a1a","#4a5568","#f5f5f5"],em=ep[1]||"#1a1a1a",eg={...ed?{fontFamily:ed.fontFamily,color:ed.color,textTransform:ed.textTransform,letterSpacing:ed.letterSpacing}:{},...ef?.fontSize?{fontSize:ef.fontSize}:{},...ef?.fontFamily?{fontFamily:ef.fontFamily}:{},...ef?.color?{color:ef.color}:{},...ef?.fontWeight?{fontWeight:ef.fontWeight}:{},...ef?.fontStyle?{fontStyle:ef.fontStyle}:{}},ev=eg?.color||em||"#ffffff",ey=S?.subPageMobileTextColor||ev,ex=(0,s.useTabSwitchFormatting)({field:"media-anchor-nav",editable:M,enabled:!!(L&&L.length>1),getCurrentStyles:C,data:h,fallbackColor:ev,fallbackFontFamily:`'${N}', serif`,titleFontFamily:eg?.fontFamily,defaultFontSize:"14px"}),eb=eg?.fontFamily||`'${N}', serif`,ew=eg?.textTransform||void 0,eS={fontFamily:eb,color:ey,...ew?{textTransform:ew}:{},...eg?.fontWeight?{fontWeight:eg.fontWeight}:{},...eg?.fontStyle?{fontStyle:eg.fontStyle}:{}},eE=e=>{I&&e&&(e.preventDefault(),e.stopPropagation()),O(!1),V(null)};(0,n.useEffect)(()=>
4{if(!j)return;let e=e=>{"Escape"===e.key&&(D(!1),O(!1),V(null))},t=e=>{e.target.closest("[data-subpage-hero-text-container]")||(D(!1),O(!1),V(null))};window.addEventListener("keydown",e);let n=setTimeout(()=>{window.addEventListener("pointerdown",t)},100);return()=>{window.removeEventListener("keydown",e),window.removeEventListener("pointerdown",t),clearTimeout(n)}},[j]);let eT=[.83,0,.17,1],ek=M?{}:{initial:{scale:1.2},animate:{scale:1},transition:{duration:.85,ease:[.87,0,.13,1]}},eC=M?{}:{initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5,delay:.4,ease:eT}},eP=M?{}:{initial:{y:100,opacity:0},animate:{y:0,opacity:1},transition:{duration:.5,delay:.5,ease:eT}},eA=(e,n)=>{if(!L||L.length<=1)return null;let r={color:ex.effectiveColor,fontFamily:ex.effectiveFontFamily,fontSize:ex.effectiveFontSize,...n?{textShadow:n}:{}};return(0,t.jsx)(i.motion.div,{ref:ex.tabSwitchRef,className:`flex ${e} items-center gap-4 mt-4`,onMouseEnter:ex.handleMouseEnter,onMouseLeave:ex.handleMouseLeave,...eP,children:L.map((e,n)=>(0,t.jsxs)("span",{className:"flex items-center gap-4",children:[(0,t.jsx)("a",{href:`#${e.id}`,onClick:t=>{t.preventDefault(),document.getElementById(e.id)?.scrollIntoView({behavior:"smooth"})},className:`tracking-widest ${J} hover:opacity-70 transition-opacity`,style:r,children:e.label}),n<L.length-1&&(0,t.jsx)("span",{style:r,children:"|"})]},e.id))})},eR=S?.subPageHeaderStyle||"full",eM=z?.imageUrl||($?(0,o.getImageUrl)($):null),eL=(0,t.jsx)(E,{imageUrl:null,imageAlt:e,placeholderColor:`${ep[2]||"#4a5568"}1A`,backgroundColor:(0,y.getSectionSurface)(h,S,"subpage"),textColor:ev,editable:M,fixedRatio:!0,imageAspectRatio:$?.aspectRatio,frameContent:es?(0,t.jsx)(c.ResponsiveHeroVideo,{videoUrl:G,posterUrl:Q,autoPlay:Y,loop:X,showUnmuteButton:q,soundLabels:Z,mobilePosition:ee}):eM?(0,t.jsx)(u.ResponsiveHeroImage,{imageUrl:eM,mobileImageUrl:_?.mobileImageUrl,mobileCrop:_,desktopCrop:H,editable:M,alt:e}):void 0,children:(0,t.jsxs)(i.motion.div,{className:`${w} py-8 md:py-10`,...eC,children:[(M||e)&&(0,t.jsx)(a.InlineEditableText,{field:eh,className:"font-light pointer-events-auto block tracking-widest text-3xl md:text-5xl text-center",style:{fontFamily:eb,color:ev,...ew?{textTransform:ew}:{}},placeholder:"Section Title",value:e,savedStyles:eg,data:h,editable:M,onTextUpdate:k,onElementSelect:P,sectionIndex:b,showEditableOutline:R}),eA("justify-center")]})}),eN=(0,t.jsxs)("section",{className:"relative h-screen w-full overflow-hidden",...x.PAGE_GRADIENT_START_ATTRIBUTE,children:[(0,t.jsx)(i.motion.div,{className:"absolute inset-0",...ek,children:es?(0,t.jsx)(c.ResponsiveHeroVideo,{videoUrl:G,posterUrl:Q,autoPlay:Y,loop:X,showUnmuteButton:q,soundLabels:Z,mobilePosition:ee,mobileImageUrl:_?.mobileMediaType==="image"?_?.mobileImageUrl||z?.imageUrl||($?(0,o.getImageUrl)($):void 0):void 0,mobileImageCrop:_?.mobileMediaType==="image"?_:void 0}):$?(0,t.jsx)(u.ResponsiveHeroImage,{imageUrl:z?.imageUrl||(0,o.getImageUrl)($),mobileImageUrl:_?.mobileImageUrl,mobileCrop:_,desktopCrop:H,editable:M}):(0,t.jsx)("div",{className:"absolute inset-0 bg-gray-300 flex items-center justify-center",children:M&&(0,t.jsx)("span",{className:"text-gray-600 text-lg",children:"Select hero image in the right panel"})})}),(0,t.jsxs)("div",{className:"absolute inset-0 z-10",style:{touchAction:j?"none":"auto"},onPointerMove:M?e=>{if(!I||!F||!T)return;e.preventDefault(),e.stopPropagation();let t=e.currentTarget.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*100,r=(e.clientY-t.top)/t.height*100,i=Math.max(10,Math.min(90,n)),o=Math.max(10,Math.min(90,r));T({...S,subPageTitlePosition:{x:i,y:o}})}:void 0,onPointerUp:M?eE:void 0,onPointerLeave:M?()=>eE():void 0,children:[(0,t.jsx)("div",{className:"hero-wide:hidden absolute pointer-events-auto",style:{left:`${el.x}%`,top:`${el.y}%`,transform:"translate(-50%, -50%)",width:"90%",maxWidth:"100vw"},children:(0,t.jsxs)(i.motion.div,{className:"text-center",style:M||e?(0,y.getTextBackdropStyles)(et,en,er,ei,eo):void 0,...eC,children:[(M||e)&&(0,t.jsx)(a.InlineEditableText,{field:eh,className:"font-light pointer-events-auto block tracking-widest text-center",style:{fontFamily:eb,fontSize:(0,l.mobileHeroLe
4ngth)(eu,M),color:ey,textShadow:"0 2px 10px rgba(0,0,0,0.3)",...ew?{textTransform:ew}:{}},placeholder:"Section Title",value:e,savedStyles:eS,data:h,editable:M&&!j,onTextUpdate:k,onElementSelect:P,sectionIndex:b,showEditableOutline:R}),L&&L.length>1&&(0,t.jsx)(i.motion.div,{className:"flex justify-center items-center gap-3 mt-3",...eP,children:L.map((e,n)=>(0,t.jsxs)("span",{className:"flex items-center gap-3",children:[(0,t.jsx)("a",{href:`#${e.id}`,onClick:t=>{t.preventDefault(),document.getElementById(e.id)?.scrollIntoView({behavior:"smooth"})},className:`tracking-widest ${J} hover:opacity-70 transition-opacity`,style:{color:ey,fontFamily:ex.effectiveFontFamily,fontSize:ex.effectiveFontSize,textShadow:"0 1px 4px rgba(0,0,0,0.3)"},children:e.label}),n<L.length-1&&(0,t.jsx)("span",{style:{color:ey,fontFamily:ex.effectiveFontFamily,fontSize:ex.effectiveFontSize,textShadow:"0 1px 4px rgba(0,0,0,0.3)"},children:"|"})]},e.id))})]})}),(0,t.jsxs)("div",{"data-subpage-hero-text-container":!0,className:`hidden hero-wide:block absolute pointer-events-auto ${j?I?"cursor-grabbing":"cursor-grab":""}`,style:{left:`${ea.x}%`,top:`${ea.y}%`,transform:"translate(-50%, -50%)"},onPointerDown:j?e=>{j&&M&&T&&(e.preventDefault(),e.stopPropagation(),O(!0),V({x:e.clientX,y:e.clientY}))}:void 0,children:[M&&j&&(0,t.jsx)("div",{className:"absolute -top-8 left-1/2 transform -translate-x-1/2 z-50",children:(0,t.jsx)("span",{className:"bg-blue-500 text-white text-xs px-2 py-1 rounded whitespace-nowrap",children:"Drag to move · Click outside to finish"})}),j&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"absolute inset-0 -m-2 border-2 border-dashed border-blue-500 rounded pointer-events-none"}),(0,t.jsx)("div",{className:"absolute inset-0 -m-2 z-40"})]}),(0,t.jsxs)(i.motion.div,{className:j?"pointer-events-none":"",style:M||e?(0,y.getTextBackdropStyles)(et,en,er,ei,eo):void 0,...eC,children:[(M||e)&&(0,t.jsx)(a.InlineEditableText,{field:eh,className:"font-light pointer-events-auto block tracking-widest text-center",style:{fontFamily:eb,fontSize:"70px",color:ev,textShadow:"0 2px 10px rgba(0,0,0,0.3)",...ew?{textTransform:ew}:{}},placeholder:"Section Title",value:e,savedStyles:eg,data:h,editable:M&&!j,onTextUpdate:k,onElementSelect:P,sectionIndex:b,showEditableOutline:R,onRepositionClick:T?()=>{D(!0)}:void 0}),eA("justify-center","0 1px 4px rgba(0,0,0,0.3)")]})]})]})]});return(0,t.jsxs)(t.Fragment,{children:["compact"===eR?eL:eN,M&&ex.showFormatButton&&(0,r.createPortal)((0,t.jsx)("div",{className:"fixed flex items-center gap-2 z-[999997] animate-in fade-in zoom-in-95 duration-200",style:{right:`${window.innerWidth-ex.buttonPosition.x-ex.buttonPosition.width}px`,top:`${Math.max(8,ex.buttonPosition.y-40)}px`},onMouseEnter:ex.handlePortalMouseEnter,onMouseLeave:ex.handlePortalMouseLeave,children:(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),ex.setShowFormatButton(!1),P?.(ex.field,b,{color:ex.effectiveColor,fontFamily:ex.effectiveFontFamily,fontSize:ex.effectiveFontSize})},onMouseDown:e=>e.stopPropagation(),"data-format-button":"true",className:"bg-white text-black px-3 py-1.5 rounded-md shadow-lg border border-gray-300 hover:bg-gray-50 transition-colors text-sm font-medium",children:"Format Text"})}),document.body)]})}],362015)}]);

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.