@wistia/vhs 2.53.0-beta.f0f0e5e9.356ba02 → 2.53.0-beta.f301d224.432ddb1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/helpers/copyToClipboard/copyToClipboard.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap/helpers.d.ts +1 -1
- package/dist/hooks/useFocusTrap/helpers.d.ts.map +1 -1
- package/dist/index.cjs +98 -99
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +99 -100
- package/dist/index.mjs.map +3 -3
- package/package.json +23 -25
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license VHS v2.53.0-beta.
|
|
3
|
+
* @license VHS v2.53.0-beta.f301d224.432ddb1
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2021-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is unlicensed, all rights reserved.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDescriptor;var wF=Object.getOwnPropertyNames;var DF=Object.getPrototypeOf,SF=Object.prototype.hasOwnProperty;var t1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r1=(e,t)=>{for(var r in t)nl(e,r,{get:t[r],enumerable:!0})},Wg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wF(t))!SF.call(e,o)&&o!==r&&nl(e,o,{get:()=>t[o],enumerable:!(n=xF(t,o))||n.enumerable});return e};var dr=(e,t,r)=>(r=e!=null?CF(DF(e)):{},Wg(t||!e||!e.__esModule?nl(r,"default",{value:e,enumerable:!0}):r,e)),EF=e=>Wg(nl({},"__esModule",{value:!0}),e);import*as f from"react";var a=t1(()=>{"use strict"});var z3=Oe((Ble,A1)=>{a();var L3=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);L3?(T1=new Uint8Array(16),A1.exports=function(){return L3(T1),T1}):(P1=new Array(16),A1.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),P1[t]=r>>>((t&3)<<3)&255;return P1});var T1,P1});var j3=Oe((Rle,G3)=>{a();var H3=[];for(Os=0;Os<256;++Os)H3[Os]=(Os+256).toString(16).substr(1);var Os;function zB(e,t){var r=t||0,n=H3;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}G3.exports=zB});var W3=Oe((Ile,_3)=>{a();var HB=z3(),GB=j3();function jB(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||HB)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||GB(o)}_3.exports=jB});function b5(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var C5=t1(()=>{a()});var x5={};r1(x5,{default:()=>S$});var D$,S$,w5=t1(()=>{a();C5();D$=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,S$=b5(function(e){return D$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var l4=Oe((Dye,u4)=>{a();u4.exports={breakpoint:{xs:"0em",sm:"37.5em",md:"56.5625em",lg:"77.5em",xl:"90em"},color:{brandBlue100:"#e5e9ff",brandBlue200:"#ccd5ff",brandBlue300:"#99abff",brandBlue400:"#6b84ff",brandBlue500:"#2949e5",brandBlue600:"#1f3399",brandBlue700:"#222d66",brandBlue800:"#000934",purple100:"#fdf7ff",purple200:"#f9e5ff",purple300:"#f2caff",purple400:"#e093fa",purple500:"#d65cff",purple600:"#ac12e0",purple700:"#752e8c",purple800:"#39004d",green100:"#f4fff2",green200:"#dfffd9",green300:"#b0e5a5",green400:"#76d962",green500:"#44b62d",green600:"#268713",green700:"#38662e",green800:"#093300",blue100:"#e9f5ff",blue200:"#c7e7ff",blue300:"#91ceff",blue400:"#58b7fe",blue500:"#229fff",blue600:"#1b7fde",blue700:"#165fac",blue800:"#0d407a",pink100:"#fff8fc",pink200:"#ffe5f4",pink300:"#ffc7e8",pink400:"#ff8cd0",pink500:"#ff40b3",pink600:"#e0128e",pink700:"#661f4a",pink800:"#4d002e",red100:"#fff7f9",red200:"#ffccd5",red300:"#ff99ab",red400:"#ff6682",red500:"#ff2b51",red600:"#d60027",red700:"#99001c",red800:"#660013",yellow100:"#fffff0",yellow200:"#eff18d",yellow300:"#e8ec1e",yellow400:"#d9dc25",yellow500:"#bcbf19",yellow600:"#9ea00f",yellow700:"#7c7e07",yellow800:"#4a4d00",orange100:"#fff9f8",orange200:"#ffcaba",orange300:"#ff9d80",orange400:"#ff6c40",orange500:"#d1451a",orange600:"#b23009",orange700:"#80280d",orange800:"#4d1200",grey100:"#f8f8f9",grey200:"#ebebed",grey300:"#dedee1",grey400:"#c4c4c8",grey500:"#a3a3aa",grey600:"#7b7b87",grey700:"#62626c",grey800:"#4a4a51",grey900:"#37373c",grey1000:"#1f1f22",grey1100:"#0b0d0e",error100:"#ffecec",error200:"#ffcaca",error300:"#ff9a9a",error400:"#ff6962",error500:"#fa4040",error600:"#d63727",error700:"#aa0d15",error800:"#860011",success100:"#e6f9f3",success200:"#bfefe0",success300:"#81e0c1",success400:"#41d0a3",success500:"#00c185",success600:"#00966e",success700:"#047063",success800:"#025050",warning100:"#fff8e6",warning200:"#ffefc8",warning300:"#ffdf96",warning400:"#ffce5a",warning500:"#fabe1f",warning600:"#dc9601",warning700:"#be7200",warning800:"#b45101"},duration:{productive:{fast:"70ms",moderate:"110ms",slow:"150ms"},expressive:{fast:"240ms",moderate:"400ms",slow:"700ms"}},easing:{standard:{productive:"cubic-bezier(0.2, 0, 0.38, 0.9)",expressive:"cubic-bezier(0.4, 0.14, 0.3, 1)"},entrance:{productive:"cubic-bezier(0, 0, 0.38, 0.9)",expressive:"cubic-bezier(0, 0, 0.3, 1)"},exit:{productive:"cubic-bezier(0.2, 0, 1, 0.9)",expressive:"cubic-bezier(0.4, 0.14, 1, 1)"}},font:{family:{default:"Inter, Helvetica, Arial, sans-serif",monospace:'"IBM Plex Mono", Consolas, Monaco, monospace'},weight:{thin:100,extraLight:200,light:300,regular:400,medium:500,semiBold:600,bold:700,extraBold:800},size:{default:"16px",small:"14px"}},shadow:{elevation0:"none",elevation1:"0 2px 4px rgba(0, 0, 0, 0.1)",elevation2:"0 0 64px 0 rgba(0, 0, 0, 0.08)"},spacing:{space01:"4px",space02:"8px",space03:"12px",space04:"16px",space05:"24px",space06:"32px",space07:"48px",space08:"64px",space09:"80px",space10:"96px",space11:"120px"}}});var f4=Oe((Eye,c4)=>{a();var QM=l4();c4.exports={designTokens:QM}});var TC=Oe((oVe,EC)=>{"use strict";a();var DC=Array.isArray,SC=Object.keys,nH=Object.prototype.hasOwnProperty,oH=typeof Element<"u";function r0(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=DC(e),n=DC(t),o,i,s;if(r&&n){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!r0(e[o],t[o]))return!1;return!0}if(r!=n)return!1;var u=e instanceof Date,l=t instanceof Date;if(u!=l)return!1;if(u&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,p=t instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==t.toString();var d=SC(e);if(i=d.length,i!==SC(t).length)return!1;for(o=i;o--!==0;)if(!nH.call(t,d[o]))return!1;if(oH&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(s=d[o],!(s==="_owner"&&e.$$typeof)&&!r0(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}EC.exports=function(t,r){try{return r0(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}});var NC=Oe(Pe=>{"use strict";a();var pt=typeof Symbol=="function"&&Symbol.for,a0=pt?Symbol.for("react.element"):60103,s0=pt?Symbol.for("react.portal"):60106,bf=pt?Symbol.for("react.fragment"):60107,Cf=pt?Symbol.for("react.strict_mode"):60108,xf=pt?Symbol.for("react.profiler"):60114,wf=pt?Symbol.for("react.provider"):60109,Df=pt?Symbol.for("react.context"):60110,u0=pt?Symbol.for("react.async_mode"):60111,Sf=pt?Symbol.for("react.concurrent_mode"):60111,Ef=pt?Symbol.for("react.forward_ref"):60112,Tf=pt?Symbol.for("react.suspense"):60113,DH=pt?Symbol.for("react.suspense_list"):60120,Pf=pt?Symbol.for("react.memo"):60115,Af=pt?Symbol.for("react.lazy"):60116,SH=pt?Symbol.for("react.block"):60121,EH=pt?Symbol.for("react.fundamental"):60117,TH=pt?Symbol.for("react.responder"):60118,PH=pt?Symbol.for("react.scope"):60119;function ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case a0:switch(e=e.type,e){case u0:case Sf:case bf:case xf:case Cf:case Tf:return e;default:switch(e=e&&e.$$typeof,e){case Df:case Ef:case Af:case Pf:case wf:return e;default:return t}}case s0:return t}}}function VC(e){return ar(e)===Sf}Pe.AsyncMode=u0;Pe.ConcurrentMode=Sf;Pe.ContextConsumer=Df;Pe.ContextProvider=wf;Pe.Element=a0;Pe.ForwardRef=Ef;Pe.Fragment=bf;Pe.Lazy=Af;Pe.Memo=Pf;Pe.Portal=s0;Pe.Profiler=xf;Pe.StrictMode=Cf;Pe.Suspense=Tf;Pe.isAsyncMode=function(e){return VC(e)||ar(e)===u0};Pe.isConcurrentMode=VC;Pe.isContextConsumer=function(e){return ar(e)===Df};Pe.isContextProvider=function(e){return ar(e)===wf};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===a0};Pe.isForwardRef=function(e){return ar(e)===Ef};Pe.isFragment=function(e){return ar(e)===bf};Pe.isLazy=function(e){return ar(e)===Af};Pe.isMemo=function(e){return ar(e)===Pf};Pe.isPortal=function(e){return ar(e)===s0};Pe.isProfiler=function(e){return ar(e)===xf};Pe.isStrictMode=function(e){return ar(e)===Cf};Pe.isSuspense=function(e){return ar(e)===Tf};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bf||e===Sf||e===xf||e===Cf||e===Tf||e===DH||typeof e=="object"&&e!==null&&(e.$$typeof===Af||e.$$typeof===Pf||e.$$typeof===wf||e.$$typeof===Df||e.$$typeof===Ef||e.$$typeof===EH||e.$$typeof===TH||e.$$typeof===PH||e.$$typeof===SH)};Pe.typeOf=ar});var zC=Oe((XVe,LC)=>{"use strict";a();LC.exports=NC()});var KC=Oe((JVe,UC)=>{"use strict";a();var l0=zC(),AH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},OH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_C={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c0={};c0[l0.ForwardRef]=FH;c0[l0.Memo]=_C;function HC(e){return l0.isMemo(e)?_C:c0[e.$$typeof]||AH}var BH=Object.defineProperty,$H=Object.getOwnPropertyNames,GC=Object.getOwnPropertySymbols,RH=Object.getOwnPropertyDescriptor,MH=Object.getPrototypeOf,jC=Object.prototype;function WC(e,t,r){if(typeof t!="string"){if(jC){var n=MH(t);n&&n!==jC&&WC(e,n,r)}var o=$H(t);GC&&(o=o.concat(GC(t)));for(var i=HC(e),s=HC(t),u=0;u<o.length;++u){var l=o[u];if(!OH[l]&&!(r&&r[l])&&!(s&&s[l])&&!(i&&i[l])){var c=RH(t,l);try{BH(e,l,c)}catch{}}}}return e}UC.exports=WC});var Rf=Oe((CLe,rx)=>{a();var vG=typeof Element<"u",yG=typeof Map=="function",bG=typeof Set=="function",CG=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $f(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!$f(e[n],t[n]))return!1;return!0}var i;if(yG&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!$f(n.value[1],t.get(n.value[0])))return!1;return!0}if(bG&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(CG&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(vG&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!$f(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}rx.exports=function(t,r){try{return $f(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}});var Rw=Oe((qqe,$w)=>{"use strict";a();$w.exports=qU;var Fw="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Bw="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",UU=new RegExp("^[^"+Bw+"]*["+Fw+"]"),KU=new RegExp("^[^"+Fw+"]*["+Bw+"]");function qU(e){return e=String(e||""),UU.test(e)?"rtl":KU.test(e)?"ltr":"neutral"}});var mp=Oe((Yqe,Mw)=>{a();function XU(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Mw.exports=XU});var kw=Oe((Zqe,Iw)=>{a();var YU=typeof window=="object"&&window&&window.Object===Object&&window;Iw.exports=YU});var r2=Oe((eXe,Vw)=>{a();var JU=kw(),ZU=typeof self=="object"&&self&&self.Object===Object&&self,QU=JU||ZU||Function("return this")();Vw.exports=QU});var Lw=Oe((rXe,Nw)=>{a();var eK=r2(),tK=function(){return eK.Date.now()};Nw.exports=tK});var Hw=Oe((oXe,zw)=>{a();var rK=/\s/;function nK(e){for(var t=e.length;t--&&rK.test(e.charAt(t)););return t}zw.exports=nK});var jw=Oe((aXe,Gw)=>{a();var oK=Hw(),iK=/^\s+/;function aK(e){return e&&e.slice(0,oK(e)+1).replace(iK,"")}Gw.exports=aK});var n2=Oe((uXe,_w)=>{a();var sK=r2(),uK=sK.Symbol;_w.exports=uK});var qw=Oe((cXe,Kw)=>{a();var Ww=n2(),Uw=Object.prototype,lK=Uw.hasOwnProperty,cK=Uw.toString,mu=Ww?Ww.toStringTag:void 0;function fK(e){var t=lK.call(e,mu),r=e[mu];try{e[mu]=void 0;var n=!0}catch{}var o=cK.call(e);return n&&(t?e[mu]=r:delete e[mu]),o}Kw.exports=fK});var Yw=Oe((pXe,Xw)=>{a();var pK=Object.prototype,dK=pK.toString;function mK(e){return dK.call(e)}Xw.exports=mK});var eD=Oe((mXe,Qw)=>{a();var Jw=n2(),hK=qw(),gK=Yw(),vK="[object Null]",yK="[object Undefined]",Zw=Jw?Jw.toStringTag:void 0;function bK(e){return e==null?e===void 0?yK:vK:Zw&&Zw in Object(e)?hK(e):gK(e)}Qw.exports=bK});var rD=Oe((gXe,tD)=>{a();function CK(e){return e!=null&&typeof e=="object"}tD.exports=CK});var oD=Oe((yXe,nD)=>{a();var xK=eD(),wK=rD(),DK="[object Symbol]";function SK(e){return typeof e=="symbol"||wK(e)&&xK(e)==DK}nD.exports=SK});var uD=Oe((CXe,sD)=>{a();var EK=jw(),iD=mp(),TK=oD(),aD=NaN,PK=/^[-+]0x[0-9a-f]+$/i,AK=/^0b[01]+$/i,OK=/^0o[0-7]+$/i,FK=parseInt;function BK(e){if(typeof e=="number")return e;if(TK(e))return aD;if(iD(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iD(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=EK(e);var r=AK.test(e);return r||OK.test(e)?FK(e.slice(2),r?2:8):PK.test(e)?aD:+e}sD.exports=BK});var i2=Oe((wXe,cD)=>{a();var $K=mp(),o2=Lw(),lD=uD(),RK="Expected a function",MK=Math.max,IK=Math.min;function kK(e,t,r){var n,o,i,s,u,l,c=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(RK);t=lD(t)||0,$K(r)&&(p=!!r.leading,d="maxWait"in r,i=d?MK(lD(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h);function g(S){var T=n,O=o;return n=o=void 0,c=S,s=e.apply(O,T),s}function v(S){return c=S,u=setTimeout(b,t),p?g(S):s}function m(S){var T=S-l,O=S-c,F=t-T;return d?IK(F,i-O):F}function y(S){var T=S-l,O=S-c;return l===void 0||T>=t||T<0||d&&O>=i}function b(){var S=o2();if(y(S))return x(S);u=setTimeout(b,m(S))}function x(S){return u=void 0,h&&n?g(S):(n=o=void 0,s)}function w(){u!==void 0&&clearTimeout(u),c=0,n=l=o=u=void 0}function D(){return u===void 0?s:x(o2())}function E(){var S=o2(),T=y(S);if(n=arguments,o=this,l=S,T){if(u===void 0)return v(l);if(d)return clearTimeout(u),u=setTimeout(b,t),g(l)}return u===void 0&&(u=setTimeout(b,t)),s}return E.cancel=w,E.flush=D,E}cD.exports=kK});var pD=Oe((SXe,fD)=>{a();var VK=i2(),NK=mp(),LK="Expected a function";function zK(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(LK);return NK(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),VK(e,t,{leading:n,maxWait:t,trailing:o})}fD.exports=zK});var OS=Oe(qr=>{"use strict";a();Object.defineProperty(qr,"__esModule",{value:!0});var SY=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),L2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},EY={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:SY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ES={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(wu=1;wu<20;wu++)ES["f"+wu]=111+wu;var wu;function Bp(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return TS(s,t)}),o=function(u){return n.some(function(l){return PS(l,u)})},i=r==null?o:o(r);return i}function TY(e,t){return Bp(e,t)}function PY(e,t){return Bp(e,{byKey:!0},t)}function TS(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var s in L2)n[L2[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=z2(h),m=L2[v];(i===1||!m)&&(r?n.key=v:n.which=AS(h)),m&&(n[m]=g?null:!0)}}catch(y){l=!0,c=y}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function PS(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function AS(e){e=z2(e);var t=ES[e]||e.toUpperCase().charCodeAt(0);return t}function z2(e){return e=e.toLowerCase(),e=EY[e]||e,e}qr.default=Bp;qr.isHotkey=Bp;qr.isCodeHotkey=TY;qr.isKeyHotkey=PY;qr.parseHotkey=TS;qr.compareHotkey=PS;qr.toKeyCode=AS;qr.toKeyName=z2});var bE=Oe(Xr=>{"use strict";a();Object.defineProperty(Xr,"__esModule",{value:!0});var QJ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),oh={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},hE={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:QJ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ih={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Au=1;Au<20;Au++)ih["f"+Au]=111+Au;var Au;function Gp(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return gE(s,t)}),o=function(u){return n.some(function(l){return vE(l,u)})},i=r==null?o:o(r);return i}function eZ(e,t){return Gp(e,t)}function tZ(e,t){return Gp(e,{byKey:!0},t)}function gE(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var s in oh)n[oh[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=ah(h),m=oh[v];if(h.length>1&&!m&&!hE[h]&&!ih[v])throw new TypeError('Unknown modifier: "'+h+'"');(i===1||!m)&&(r?n.key=v:n.which=yE(h)),m&&(n[m]=g?null:!0)}}catch(y){l=!0,c=y}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function vE(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function yE(e){e=ah(e);var t=ih[e]||e.toUpperCase().charCodeAt(0);return t}function ah(e){return e=e.toLowerCase(),e=hE[e]||e,e}Xr.default=Gp;Xr.isHotkey=Gp;Xr.isCodeHotkey=eZ;Xr.isKeyHotkey=tZ;Xr.parseHotkey=gE;Xr.compareHotkey=vE;Xr.toKeyCode=yE;Xr.toKeyName=ah});a();a();a();var ds=async e=>{if(navigator.clipboard)return navigator.clipboard.writeText(e).catch(i=>{throw i instanceof Error?i:new DOMException("The clipboard is not accessible","NotAllowedError")});let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);let r=window.getSelection(),n=window.document.createRange();r?.removeAllRanges(),n.selectNode(t),r?.addRange(n);let o=!1;try{o=window.document.execCommand("copy")}catch(i){console.error("error",i)}return r?.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};a();a();a();var TF=e=>e===null;var lt=e=>e===void 0,J=e=>!lt(e),de=e=>TF(e)||lt(e),$=e=>!de(e),gt=e=>typeof e=="string",PF=e=>gt(e)&&e==="",be=e=>gt(e)&&!PF(e),n1=e=>typeof e=="number",AF=e=>$(e)&&typeof e=="object"&&!(e instanceof Array);var OF=e=>AF(e)&&Object.keys(e).length>0,Oo=e=>$(e)&&typeof e=="object"&&e instanceof Array;var ms=e=>Oo(e)&&e.length>0,Fo=e=>$(e)&&typeof e=="function",ol=e=>$(e)&&typeof e=="boolean";var Ug=(e,t)=>OF(e)&&t in e;a();a();function ie(e){let t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}a();function Bo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function o1(e,t){let r=ie(e);return isNaN(t)?Bo(e,NaN):(t&&r.setDate(r.getDate()+t),r)}a();function hs(e,t){let r=ie(e);if(isNaN(t))return Bo(e,NaN);if(!t)return r;let n=r.getDate(),o=Bo(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);let i=o.getDate();return n>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}a();var FF=Math.pow(10,8)*24*60*60*1e3,Bie=-FF;var Kg=864e5;var BF=3600;var qg=BF*24,$ie=qg*7,$F=qg*365.2425,RF=$F/12,Rie=RF*3;a();a();function xr(e){let t=ie(e);return t.setHours(0,0,0,0),t}a();function i1(e){let t=ie(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function il(e,t){let r=xr(e),n=xr(t),o=+r-i1(r),i=+n-i1(n);return Math.round((o-i)/Kg)}a();function a1(e,t){return hs(e,t*12)}a();function al(e,t){let r=ie(e),n=ie(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}a();function er(e,t){let r=xr(e),n=xr(t);return+r==+n}a();a();function Xg(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function gs(e){if(!Xg(e)&&typeof e!="number")return!1;let t=ie(e);return!isNaN(Number(t))}a();function Jg(e,t){let r=ie(e),n=ie(t),o=Yg(r,n),i=Math.abs(il(r,n));r.setDate(r.getDate()-o*i);let s=+(Yg(r,n)===-o),u=o*(i-s);return u===0?0:u}function Yg(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}a();function Bi(e){let t=ie(e);return t.setHours(23,59,59,999),t}a();function s1(e){let t=ie(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}a();function Zg(e,t){let r=ie(e.start),n=ie(e.end),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=i;)l.push(ie(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}a();function u1(e,t){let r=ie(e.start),n=ie(e.end),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=i;)l.push(ie(s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}a();function vs(e){let t=ie(e);return t.setDate(1),t.setHours(0,0,0,0),t}a();function Qg(e){return ie(e).getDay()}a();function l1(e){let t=ie(e),r=t.getFullYear(),n=t.getMonth(),o=Bo(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}a();function c1(e){return ie(e).getFullYear()}a();function e3(e,t){let r=ie(e),n=ie(t);return r.getTime()>n.getTime()}a();function Mr(e,t){let r=ie(e),n=ie(t);return+r<+n}a();function f1(e,t){let r=ie(e),n=ie(t);return+r==+n}a();function t3(e){return+ie(e)>Date.now()}a();function r3(e,t){let r=+ie(e),[n,o]=[+ie(t.start),+ie(t.end)].sort((i,s)=>i-s);return r>=n&&r<=o}var o3=1e3,p1=60,bs=60,n3=30,mr=["en-US"],un=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",ys=e=>e.toString().padStart(2,"0"),wr=e=>e instanceof Date,ln=e=>!wr(e)||e.getTime()===0,i3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{dateStyle:"medium",timeZone:t}).format(e)}catch(r){return console.error(r),""}},a3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},s3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{let o=new Intl.DateTimeFormat(mr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).formatToParts(e).reduce((i,s)=>(i[s.type]=s.value,i),{});return`${o.year}-${o.month}-${o.day}`}catch(r){return console.error(r),""}},u3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},l3=(e,{timeZone:t=un}={})=>{if(e===null)return"";try{return new Intl.DateTimeFormat(mr,{weekday:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},c3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{timeStyle:"short",timeZone:t}).format(e)}catch(r){return console.error(r),""}},sl=(e,{timeZone:t=un}={})=>{if(de(e))return"";let r=new Date(e);if(ln(r))return"";try{return new Intl.DateTimeFormat(mr,{dateStyle:"medium",timeStyle:"short",timeZone:t}).format(r)}catch(n){return console.error(n),""}},f3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{let{year:r,month:n,day:o,hour:i,minute:s,dayPeriod:u}=new Intl.DateTimeFormat(mr,{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:t}).formatToParts(e).reduce((l,c)=>(c.type!=="literal"&&(l[c.type]=c.value),l),{});return`${n} ${o}, ${r}, ${i}:${s} ${u}`}catch(r){return console.error(r),""}},p3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{dateStyle:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},d3=(e,{nowAnchor:t=new Date}={})=>{if(ln(e))return"";let r=(t.valueOf()-e.valueOf())/(p1*o3),n=Math.round(r),o=il(t,e);return r<0?sl(e):r<1?"< 1 minute ago":n<2?"1 minute ago":n<=bs?`${n} minutes ago`:o===0?`Today, ${Intl.DateTimeFormat(mr,{timeStyle:"short"}).format(e)}`:o===1?`Yesterday, ${Intl.DateTimeFormat(mr,{timeStyle:"short"}).format(e)}`:e.getFullYear()===t.getFullYear()?Intl.DateTimeFormat(mr,{day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(e):sl(e)},m3=e=>{let t=e.getTimezoneOffset()/bs*-1,r=Math.round(t),n=(t-r)*bs,o=r>=0?"+":"",i=`${r}`.padStart(2,"0"),s=`${n}`.padStart(2,"0");return`${o}${i}:${s}`},Cs=e=>{let t=Math.floor(e/o3),r=Math.floor(t/p1),n=Math.floor(r/bs),o=t-r*p1,i=r-n*bs;return{seconds:o,minutes:i,hours:n}},h3=e=>{let{hours:t,minutes:r,seconds:n}=Cs(e);return t<1?`${r}:${ys(n)}`:`${t}:${ys(r)}:${ys(n)}`},g3=e=>{let{hours:t,minutes:r,seconds:n}=Cs(e);return`${t}:${ys(r)}:${ys(n)}`},d1=e=>wr(e)?{year:e.getFullYear(),month:e.getMonth(),dayOfMonth:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:null,ul=e=>{let{year:t,month:r,dayOfMonth:n,hours:o,minutes:i}=e??{};return t!==void 0&&r!==void 0&&n!==void 0?new Date(t,r,n,o??0,i??0):null},m1=e=>ul(e)?.toISOString()??null,v3=(e,t=!0)=>{let r=e.getMinutes()<=n3,n=r?e.getHours():e.getHours()+1,o=r?n3:0,i={...d1(e),hours:n,minutes:o};return t?m1(i):ul(i)},y3=e=>{let{seconds:t,minutes:r,hours:n}=Cs(e),o="PT";return n&&(o+=`${n}H`),r&&(o+=`${r}M`),t&&(o+=`${t}S`),t||r||n||(o+="0S"),o};var nse={isDate:wr,dateOnlyString:i3,dateOnlyStringNumeric:a3,dateOnlyISOString:s3,monthDayStringNumeric:u3,dayOfWeekString:l3,timeOnlyString:c3,dateTimeString:sl,dateTimeStringForSentence:f3,dateOnlyStringForSentence:p3,timeAgoString:d3,dateUTCOffset:m3,buildTimeDuration:Cs,mediaDurationString:h3,sessionDurationString:g3,dateToDateTime:d1,dateTimeToDate:ul,dateTimeToISO:m1,dateTimeRounded:v3,millisecondsToDurationISOString:y3};a();a();import{css as xt}from"styled-components";var h1={defaultDarkOne:xt`
|
|
10
|
+
var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDescriptor;var wF=Object.getOwnPropertyNames;var DF=Object.getPrototypeOf,SF=Object.prototype.hasOwnProperty;var t1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),r1=(e,t)=>{for(var r in t)nl(e,r,{get:t[r],enumerable:!0})},Wg=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of wF(t))!SF.call(e,o)&&o!==r&&nl(e,o,{get:()=>t[o],enumerable:!(n=xF(t,o))||n.enumerable});return e};var dr=(e,t,r)=>(r=e!=null?CF(DF(e)):{},Wg(t||!e||!e.__esModule?nl(r,"default",{value:e,enumerable:!0}):r,e)),EF=e=>Wg(nl({},"__esModule",{value:!0}),e);import*as f from"react";var a=t1(()=>{"use strict"});var z3=Oe((Ole,A1)=>{a();var L3=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);L3?(T1=new Uint8Array(16),A1.exports=function(){return L3(T1),T1}):(P1=new Array(16),A1.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),P1[t]=r>>>((t&3)<<3)&255;return P1});var T1,P1});var j3=Oe((Ble,G3)=>{a();var H3=[];for(Os=0;Os<256;++Os)H3[Os]=(Os+256).toString(16).substr(1);var Os;function zB(e,t){var r=t||0,n=H3;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}G3.exports=zB});var W3=Oe((Rle,_3)=>{a();var HB=z3(),GB=j3();function jB(e,t,r){var n=t&&r||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var o=e.random||(e.rng||HB)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var i=0;i<16;++i)t[n+i]=o[i];return t||GB(o)}_3.exports=jB});function b5(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var C5=t1(()=>{a()});var x5={};r1(x5,{default:()=>S$});var D$,S$,w5=t1(()=>{a();C5();D$=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,S$=b5(function(e){return D$.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var l4=Oe((xye,u4)=>{a();u4.exports={breakpoint:{xs:"0em",sm:"37.5em",md:"56.5625em",lg:"77.5em",xl:"90em"},color:{brandBlue100:"#e5e9ff",brandBlue200:"#ccd5ff",brandBlue300:"#99abff",brandBlue400:"#6b84ff",brandBlue500:"#2949e5",brandBlue600:"#1f3399",brandBlue700:"#222d66",brandBlue800:"#000934",purple100:"#fdf7ff",purple200:"#f9e5ff",purple300:"#f2caff",purple400:"#e093fa",purple500:"#d65cff",purple600:"#ac12e0",purple700:"#752e8c",purple800:"#39004d",green100:"#f4fff2",green200:"#dfffd9",green300:"#b0e5a5",green400:"#76d962",green500:"#44b62d",green600:"#268713",green700:"#38662e",green800:"#093300",blue100:"#e9f5ff",blue200:"#c7e7ff",blue300:"#91ceff",blue400:"#58b7fe",blue500:"#229fff",blue600:"#1b7fde",blue700:"#165fac",blue800:"#0d407a",pink100:"#fff8fc",pink200:"#ffe5f4",pink300:"#ffc7e8",pink400:"#ff8cd0",pink500:"#ff40b3",pink600:"#e0128e",pink700:"#661f4a",pink800:"#4d002e",red100:"#fff7f9",red200:"#ffccd5",red300:"#ff99ab",red400:"#ff6682",red500:"#ff2b51",red600:"#d60027",red700:"#99001c",red800:"#660013",yellow100:"#fffff0",yellow200:"#eff18d",yellow300:"#e8ec1e",yellow400:"#d9dc25",yellow500:"#bcbf19",yellow600:"#9ea00f",yellow700:"#7c7e07",yellow800:"#4a4d00",orange100:"#fff9f8",orange200:"#ffcaba",orange300:"#ff9d80",orange400:"#ff6c40",orange500:"#d1451a",orange600:"#b23009",orange700:"#80280d",orange800:"#4d1200",grey100:"#f8f8f9",grey200:"#ebebed",grey300:"#dedee1",grey400:"#c4c4c8",grey500:"#a3a3aa",grey600:"#7b7b87",grey700:"#62626c",grey800:"#4a4a51",grey900:"#37373c",grey1000:"#1f1f22",grey1100:"#0b0d0e",error100:"#ffecec",error200:"#ffcaca",error300:"#ff9a9a",error400:"#ff6962",error500:"#fa4040",error600:"#d63727",error700:"#aa0d15",error800:"#860011",success100:"#e6f9f3",success200:"#bfefe0",success300:"#81e0c1",success400:"#41d0a3",success500:"#00c185",success600:"#00966e",success700:"#047063",success800:"#025050",warning100:"#fff8e6",warning200:"#ffefc8",warning300:"#ffdf96",warning400:"#ffce5a",warning500:"#fabe1f",warning600:"#dc9601",warning700:"#be7200",warning800:"#b45101"},duration:{productive:{fast:"70ms",moderate:"110ms",slow:"150ms"},expressive:{fast:"240ms",moderate:"400ms",slow:"700ms"}},easing:{standard:{productive:"cubic-bezier(0.2, 0, 0.38, 0.9)",expressive:"cubic-bezier(0.4, 0.14, 0.3, 1)"},entrance:{productive:"cubic-bezier(0, 0, 0.38, 0.9)",expressive:"cubic-bezier(0, 0, 0.3, 1)"},exit:{productive:"cubic-bezier(0.2, 0, 1, 0.9)",expressive:"cubic-bezier(0.4, 0.14, 1, 1)"}},font:{family:{default:"Inter, Helvetica, Arial, sans-serif",monospace:'"IBM Plex Mono", Consolas, Monaco, monospace'},weight:{thin:100,extraLight:200,light:300,regular:400,medium:500,semiBold:600,bold:700,extraBold:800},size:{default:"16px",small:"14px"}},shadow:{elevation0:"none",elevation1:"0 2px 4px rgba(0, 0, 0, 0.1)",elevation2:"0 0 64px 0 rgba(0, 0, 0, 0.08)"},spacing:{space01:"4px",space02:"8px",space03:"12px",space04:"16px",space05:"24px",space06:"32px",space07:"48px",space08:"64px",space09:"80px",space10:"96px",space11:"120px"}}});var f4=Oe((Dye,c4)=>{a();var QM=l4();c4.exports={designTokens:QM}});var TC=Oe((rVe,EC)=>{"use strict";a();var DC=Array.isArray,SC=Object.keys,nH=Object.prototype.hasOwnProperty,oH=typeof Element<"u";function r0(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=DC(e),n=DC(t),o,i,s;if(r&&n){if(i=e.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!r0(e[o],t[o]))return!1;return!0}if(r!=n)return!1;var u=e instanceof Date,l=t instanceof Date;if(u!=l)return!1;if(u&&l)return e.getTime()==t.getTime();var c=e instanceof RegExp,p=t instanceof RegExp;if(c!=p)return!1;if(c&&p)return e.toString()==t.toString();var d=SC(e);if(i=d.length,i!==SC(t).length)return!1;for(o=i;o--!==0;)if(!nH.call(t,d[o]))return!1;if(oH&&e instanceof Element&&t instanceof Element)return e===t;for(o=i;o--!==0;)if(s=d[o],!(s==="_owner"&&e.$$typeof)&&!r0(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}EC.exports=function(t,r){try{return r0(t,r)}catch(n){if(n.message&&n.message.match(/stack|recursion/i)||n.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}});var NC=Oe(Pe=>{"use strict";a();var pt=typeof Symbol=="function"&&Symbol.for,a0=pt?Symbol.for("react.element"):60103,s0=pt?Symbol.for("react.portal"):60106,bf=pt?Symbol.for("react.fragment"):60107,Cf=pt?Symbol.for("react.strict_mode"):60108,xf=pt?Symbol.for("react.profiler"):60114,wf=pt?Symbol.for("react.provider"):60109,Df=pt?Symbol.for("react.context"):60110,u0=pt?Symbol.for("react.async_mode"):60111,Sf=pt?Symbol.for("react.concurrent_mode"):60111,Ef=pt?Symbol.for("react.forward_ref"):60112,Tf=pt?Symbol.for("react.suspense"):60113,DH=pt?Symbol.for("react.suspense_list"):60120,Pf=pt?Symbol.for("react.memo"):60115,Af=pt?Symbol.for("react.lazy"):60116,SH=pt?Symbol.for("react.block"):60121,EH=pt?Symbol.for("react.fundamental"):60117,TH=pt?Symbol.for("react.responder"):60118,PH=pt?Symbol.for("react.scope"):60119;function ar(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case a0:switch(e=e.type,e){case u0:case Sf:case bf:case xf:case Cf:case Tf:return e;default:switch(e=e&&e.$$typeof,e){case Df:case Ef:case Af:case Pf:case wf:return e;default:return t}}case s0:return t}}}function VC(e){return ar(e)===Sf}Pe.AsyncMode=u0;Pe.ConcurrentMode=Sf;Pe.ContextConsumer=Df;Pe.ContextProvider=wf;Pe.Element=a0;Pe.ForwardRef=Ef;Pe.Fragment=bf;Pe.Lazy=Af;Pe.Memo=Pf;Pe.Portal=s0;Pe.Profiler=xf;Pe.StrictMode=Cf;Pe.Suspense=Tf;Pe.isAsyncMode=function(e){return VC(e)||ar(e)===u0};Pe.isConcurrentMode=VC;Pe.isContextConsumer=function(e){return ar(e)===Df};Pe.isContextProvider=function(e){return ar(e)===wf};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===a0};Pe.isForwardRef=function(e){return ar(e)===Ef};Pe.isFragment=function(e){return ar(e)===bf};Pe.isLazy=function(e){return ar(e)===Af};Pe.isMemo=function(e){return ar(e)===Pf};Pe.isPortal=function(e){return ar(e)===s0};Pe.isProfiler=function(e){return ar(e)===xf};Pe.isStrictMode=function(e){return ar(e)===Cf};Pe.isSuspense=function(e){return ar(e)===Tf};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bf||e===Sf||e===xf||e===Cf||e===Tf||e===DH||typeof e=="object"&&e!==null&&(e.$$typeof===Af||e.$$typeof===Pf||e.$$typeof===wf||e.$$typeof===Df||e.$$typeof===Ef||e.$$typeof===EH||e.$$typeof===TH||e.$$typeof===PH||e.$$typeof===SH)};Pe.typeOf=ar});var zC=Oe((KVe,LC)=>{"use strict";a();LC.exports=NC()});var KC=Oe((XVe,UC)=>{"use strict";a();var l0=zC(),AH={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},OH={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FH={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_C={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c0={};c0[l0.ForwardRef]=FH;c0[l0.Memo]=_C;function HC(e){return l0.isMemo(e)?_C:c0[e.$$typeof]||AH}var BH=Object.defineProperty,$H=Object.getOwnPropertyNames,GC=Object.getOwnPropertySymbols,RH=Object.getOwnPropertyDescriptor,MH=Object.getPrototypeOf,jC=Object.prototype;function WC(e,t,r){if(typeof t!="string"){if(jC){var n=MH(t);n&&n!==jC&&WC(e,n,r)}var o=$H(t);GC&&(o=o.concat(GC(t)));for(var i=HC(e),s=HC(t),u=0;u<o.length;++u){var l=o[u];if(!OH[l]&&!(r&&r[l])&&!(s&&s[l])&&!(i&&i[l])){var c=RH(t,l);try{BH(e,l,c)}catch{}}}}return e}UC.exports=WC});var Rf=Oe((yLe,rx)=>{a();var vG=typeof Element<"u",yG=typeof Map=="function",bG=typeof Set=="function",CG=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function $f(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,n,o;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!$f(e[n],t[n]))return!1;return!0}var i;if(yG&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!$f(n.value[1],t.get(n.value[0])))return!1;return!0}if(bG&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(CG&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(vG&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!$f(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}rx.exports=function(t,r){try{return $f(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}});var Rw=Oe((Uqe,$w)=>{"use strict";a();$w.exports=qU;var Fw="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Bw="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",UU=new RegExp("^[^"+Bw+"]*["+Fw+"]"),KU=new RegExp("^[^"+Fw+"]*["+Bw+"]");function qU(e){return e=String(e||""),UU.test(e)?"rtl":KU.test(e)?"ltr":"neutral"}});var mp=Oe((qqe,Mw)=>{a();function XU(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Mw.exports=XU});var kw=Oe((Yqe,Iw)=>{a();var YU=typeof window=="object"&&window&&window.Object===Object&&window;Iw.exports=YU});var r2=Oe((Zqe,Vw)=>{a();var JU=kw(),ZU=typeof self=="object"&&self&&self.Object===Object&&self,QU=JU||ZU||Function("return this")();Vw.exports=QU});var Lw=Oe((eXe,Nw)=>{a();var eK=r2(),tK=function(){return eK.Date.now()};Nw.exports=tK});var Hw=Oe((rXe,zw)=>{a();var rK=/\s/;function nK(e){for(var t=e.length;t--&&rK.test(e.charAt(t)););return t}zw.exports=nK});var jw=Oe((oXe,Gw)=>{a();var oK=Hw(),iK=/^\s+/;function aK(e){return e&&e.slice(0,oK(e)+1).replace(iK,"")}Gw.exports=aK});var n2=Oe((aXe,_w)=>{a();var sK=r2(),uK=sK.Symbol;_w.exports=uK});var qw=Oe((uXe,Kw)=>{a();var Ww=n2(),Uw=Object.prototype,lK=Uw.hasOwnProperty,cK=Uw.toString,mu=Ww?Ww.toStringTag:void 0;function fK(e){var t=lK.call(e,mu),r=e[mu];try{e[mu]=void 0;var n=!0}catch{}var o=cK.call(e);return n&&(t?e[mu]=r:delete e[mu]),o}Kw.exports=fK});var Yw=Oe((cXe,Xw)=>{a();var pK=Object.prototype,dK=pK.toString;function mK(e){return dK.call(e)}Xw.exports=mK});var eD=Oe((pXe,Qw)=>{a();var Jw=n2(),hK=qw(),gK=Yw(),vK="[object Null]",yK="[object Undefined]",Zw=Jw?Jw.toStringTag:void 0;function bK(e){return e==null?e===void 0?yK:vK:Zw&&Zw in Object(e)?hK(e):gK(e)}Qw.exports=bK});var rD=Oe((mXe,tD)=>{a();function CK(e){return e!=null&&typeof e=="object"}tD.exports=CK});var oD=Oe((gXe,nD)=>{a();var xK=eD(),wK=rD(),DK="[object Symbol]";function SK(e){return typeof e=="symbol"||wK(e)&&xK(e)==DK}nD.exports=SK});var uD=Oe((yXe,sD)=>{a();var EK=jw(),iD=mp(),TK=oD(),aD=NaN,PK=/^[-+]0x[0-9a-f]+$/i,AK=/^0b[01]+$/i,OK=/^0o[0-7]+$/i,FK=parseInt;function BK(e){if(typeof e=="number")return e;if(TK(e))return aD;if(iD(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=iD(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=EK(e);var r=AK.test(e);return r||OK.test(e)?FK(e.slice(2),r?2:8):PK.test(e)?aD:+e}sD.exports=BK});var i2=Oe((CXe,cD)=>{a();var $K=mp(),o2=Lw(),lD=uD(),RK="Expected a function",MK=Math.max,IK=Math.min;function kK(e,t,r){var n,o,i,s,u,l,c=0,p=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(RK);t=lD(t)||0,$K(r)&&(p=!!r.leading,d="maxWait"in r,i=d?MK(lD(r.maxWait)||0,t):i,h="trailing"in r?!!r.trailing:h);function g(S){var T=n,O=o;return n=o=void 0,c=S,s=e.apply(O,T),s}function v(S){return c=S,u=setTimeout(b,t),p?g(S):s}function m(S){var T=S-l,O=S-c,F=t-T;return d?IK(F,i-O):F}function y(S){var T=S-l,O=S-c;return l===void 0||T>=t||T<0||d&&O>=i}function b(){var S=o2();if(y(S))return x(S);u=setTimeout(b,m(S))}function x(S){return u=void 0,h&&n?g(S):(n=o=void 0,s)}function w(){u!==void 0&&clearTimeout(u),c=0,n=l=o=u=void 0}function D(){return u===void 0?s:x(o2())}function E(){var S=o2(),T=y(S);if(n=arguments,o=this,l=S,T){if(u===void 0)return v(l);if(d)return clearTimeout(u),u=setTimeout(b,t),g(l)}return u===void 0&&(u=setTimeout(b,t)),s}return E.cancel=w,E.flush=D,E}cD.exports=kK});var pD=Oe((wXe,fD)=>{a();var VK=i2(),NK=mp(),LK="Expected a function";function zK(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(LK);return NK(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),VK(e,t,{leading:n,maxWait:t,trailing:o})}fD.exports=zK});var OS=Oe(qr=>{"use strict";a();Object.defineProperty(qr,"__esModule",{value:!0});var SY=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),L2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},EY={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:SY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ES={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(wu=1;wu<20;wu++)ES["f"+wu]=111+wu;var wu;function Bp(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return TS(s,t)}),o=function(u){return n.some(function(l){return PS(l,u)})},i=r==null?o:o(r);return i}function TY(e,t){return Bp(e,t)}function PY(e,t){return Bp(e,{byKey:!0},t)}function TS(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var s in L2)n[L2[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=z2(h),m=L2[v];(i===1||!m)&&(r?n.key=v:n.which=AS(h)),m&&(n[m]=g?null:!0)}}catch(y){l=!0,c=y}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function PS(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function AS(e){e=z2(e);var t=ES[e]||e.toUpperCase().charCodeAt(0);return t}function z2(e){return e=e.toLowerCase(),e=EY[e]||e,e}qr.default=Bp;qr.isHotkey=Bp;qr.isCodeHotkey=TY;qr.isKeyHotkey=PY;qr.parseHotkey=TS;qr.compareHotkey=PS;qr.toKeyCode=AS;qr.toKeyName=z2});var bE=Oe(Xr=>{"use strict";a();Object.defineProperty(Xr,"__esModule",{value:!0});var QJ=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),oh={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},hE={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:QJ?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ih={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222};for(Au=1;Au<20;Au++)ih["f"+Au]=111+Au;var Au;function Gp(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return gE(s,t)}),o=function(u){return n.some(function(l){return vE(l,u)})},i=r==null?o:o(r);return i}function eZ(e,t){return Gp(e,t)}function tZ(e,t){return Gp(e,{byKey:!0},t)}function gE(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),i=o.length;for(var s in oh)n[oh[s]]=!1;var u=!0,l=!1,c=void 0;try{for(var p=o[Symbol.iterator](),d;!(u=(d=p.next()).done);u=!0){var h=d.value,g=h.endsWith("?")&&h.length>1;g&&(h=h.slice(0,-1));var v=ah(h),m=oh[v];if(h.length>1&&!m&&!hE[h]&&!ih[v])throw new TypeError('Unknown modifier: "'+h+'"');(i===1||!m)&&(r?n.key=v:n.which=yE(h)),m&&(n[m]=g?null:!0)}}catch(y){l=!0,c=y}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function vE(e,t){for(var r in e){var n=e[r],o=void 0;if(n!=null&&(r==="key"&&t.key!=null?o=t.key.toLowerCase():r==="which"?o=n===91&&t.which===93?91:t.which:o=t[r],!(o==null&&n===!1)&&o!==n))return!1}return!0}function yE(e){e=ah(e);var t=ih[e]||e.toUpperCase().charCodeAt(0);return t}function ah(e){return e=e.toLowerCase(),e=hE[e]||e,e}Xr.default=Gp;Xr.isHotkey=Gp;Xr.isCodeHotkey=eZ;Xr.isKeyHotkey=tZ;Xr.parseHotkey=gE;Xr.compareHotkey=vE;Xr.toKeyCode=yE;Xr.toKeyName=ah});a();a();a();var ds=async e=>{if(navigator.clipboard)return navigator.clipboard.writeText(e).catch(i=>{throw i instanceof Error?i:new DOMException("The clipboard is not accessible","NotAllowedError")});let t=document.createElement("span");t.textContent=e,t.style.whiteSpace="pre",document.body.appendChild(t);let r=window.getSelection(),n=window.document.createRange();r?.removeAllRanges(),n.selectNode(t),r?.addRange(n);let o=!1;try{o=window.document.execCommand("copy")}catch(i){console.error("error",i)}return r?.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};a();a();a();var TF=e=>e===null;var lt=e=>e===void 0,J=e=>!lt(e),de=e=>TF(e)||lt(e),$=e=>!de(e),gt=e=>typeof e=="string",PF=e=>gt(e)&&e==="",be=e=>gt(e)&&!PF(e),n1=e=>typeof e=="number",AF=e=>$(e)&&typeof e=="object"&&!(e instanceof Array);var OF=e=>AF(e)&&Object.keys(e).length>0,Oo=e=>$(e)&&typeof e=="object"&&e instanceof Array;var ms=e=>Oo(e)&&e.length>0,Fo=e=>$(e)&&typeof e=="function",ol=e=>$(e)&&typeof e=="boolean";var Ug=(e,t)=>OF(e)&&t in e;a();a();function ie(e){let t=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&t==="[object Date]"?new e.constructor(+e):typeof e=="number"||t==="[object Number]"||typeof e=="string"||t==="[object String]"?new Date(e):new Date(NaN)}a();function Bo(e,t){return e instanceof Date?new e.constructor(t):new Date(t)}function o1(e,t){let r=ie(e);return isNaN(t)?Bo(e,NaN):(t&&r.setDate(r.getDate()+t),r)}a();function hs(e,t){let r=ie(e);if(isNaN(t))return Bo(e,NaN);if(!t)return r;let n=r.getDate(),o=Bo(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);let i=o.getDate();return n>=i?o:(r.setFullYear(o.getFullYear(),o.getMonth(),n),r)}a();var FF=Math.pow(10,8)*24*60*60*1e3,Oie=-FF;var Kg=864e5;var BF=3600;var qg=BF*24,Fie=qg*7,$F=qg*365.2425,RF=$F/12,Bie=RF*3;a();a();function xr(e){let t=ie(e);return t.setHours(0,0,0,0),t}a();function i1(e){let t=ie(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function il(e,t){let r=xr(e),n=xr(t),o=+r-i1(r),i=+n-i1(n);return Math.round((o-i)/Kg)}a();function a1(e,t){return hs(e,t*12)}a();function al(e,t){let r=ie(e),n=ie(t),o=r.getTime()-n.getTime();return o<0?-1:o>0?1:o}a();function er(e,t){let r=xr(e),n=xr(t);return+r==+n}a();a();function Xg(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function gs(e){if(!Xg(e)&&typeof e!="number")return!1;let t=ie(e);return!isNaN(Number(t))}a();function Jg(e,t){let r=ie(e),n=ie(t),o=Yg(r,n),i=Math.abs(il(r,n));r.setDate(r.getDate()-o*i);let s=+(Yg(r,n)===-o),u=o*(i-s);return u===0?0:u}function Yg(e,t){let r=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return r<0?-1:r>0?1:r}a();function Bi(e){let t=ie(e);return t.setHours(23,59,59,999),t}a();function s1(e){let t=ie(e),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}a();function Zg(e,t){let r=ie(e.start),n=ie(e.end),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=i;)l.push(ie(s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}a();function u1(e,t){let r=ie(e.start),n=ie(e.end),o=+r>+n,i=o?+r:+n,s=o?n:r;s.setHours(0,0,0,0),s.setDate(1);let u=t?.step??1;if(!u)return[];u<0&&(u=-u,o=!o);let l=[];for(;+s<=i;)l.push(ie(s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}a();function vs(e){let t=ie(e);return t.setDate(1),t.setHours(0,0,0,0),t}a();function Qg(e){return ie(e).getDay()}a();function l1(e){let t=ie(e),r=t.getFullYear(),n=t.getMonth(),o=Bo(e,0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}a();function c1(e){return ie(e).getFullYear()}a();function e3(e,t){let r=ie(e),n=ie(t);return r.getTime()>n.getTime()}a();function Mr(e,t){let r=ie(e),n=ie(t);return+r<+n}a();function f1(e,t){let r=ie(e),n=ie(t);return+r==+n}a();function t3(e){return+ie(e)>Date.now()}a();function r3(e,t){let r=+ie(e),[n,o]=[+ie(t.start),+ie(t.end)].sort((i,s)=>i-s);return r>=n&&r<=o}var o3=1e3,p1=60,bs=60,n3=30,mr=["en-US"],un=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",ys=e=>e.toString().padStart(2,"0"),wr=e=>e instanceof Date,ln=e=>!wr(e)||e.getTime()===0,i3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{dateStyle:"medium",timeZone:t}).format(e)}catch(r){return console.error(r),""}},a3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},s3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{let o=new Intl.DateTimeFormat(mr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).formatToParts(e).reduce((i,s)=>(i[s.type]=s.value,i),{});return`${o.year}-${o.month}-${o.day}`}catch(r){return console.error(r),""}},u3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},l3=(e,{timeZone:t=un}={})=>{if(e===null)return"";try{return new Intl.DateTimeFormat(mr,{weekday:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},c3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{timeStyle:"short",timeZone:t}).format(e)}catch(r){return console.error(r),""}},sl=(e,{timeZone:t=un}={})=>{if(de(e))return"";let r=new Date(e);if(ln(r))return"";try{return new Intl.DateTimeFormat(mr,{dateStyle:"medium",timeStyle:"short",timeZone:t}).format(r)}catch(n){return console.error(n),""}},f3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{let{year:r,month:n,day:o,hour:i,minute:s,dayPeriod:u}=new Intl.DateTimeFormat(mr,{month:"long",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",timeZone:t}).formatToParts(e).reduce((l,c)=>(c.type!=="literal"&&(l[c.type]=c.value),l),{});return`${n} ${o}, ${r}, ${i}:${s} ${u}`}catch(r){return console.error(r),""}},p3=(e,{timeZone:t=un}={})=>{if(!wr(e)||ln(e))return"";try{return new Intl.DateTimeFormat(mr,{dateStyle:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},d3=(e,{nowAnchor:t=new Date}={})=>{if(ln(e))return"";let r=(t.valueOf()-e.valueOf())/(p1*o3),n=Math.round(r),o=il(t,e);return r<0?sl(e):r<1?"< 1 minute ago":n<2?"1 minute ago":n<=bs?`${n} minutes ago`:o===0?`Today, ${Intl.DateTimeFormat(mr,{timeStyle:"short"}).format(e)}`:o===1?`Yesterday, ${Intl.DateTimeFormat(mr,{timeStyle:"short"}).format(e)}`:e.getFullYear()===t.getFullYear()?Intl.DateTimeFormat(mr,{day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(e):sl(e)},m3=e=>{let t=e.getTimezoneOffset()/bs*-1,r=Math.round(t),n=(t-r)*bs,o=r>=0?"+":"",i=`${r}`.padStart(2,"0"),s=`${n}`.padStart(2,"0");return`${o}${i}:${s}`},Cs=e=>{let t=Math.floor(e/o3),r=Math.floor(t/p1),n=Math.floor(r/bs),o=t-r*p1,i=r-n*bs;return{seconds:o,minutes:i,hours:n}},h3=e=>{let{hours:t,minutes:r,seconds:n}=Cs(e);return t<1?`${r}:${ys(n)}`:`${t}:${ys(r)}:${ys(n)}`},g3=e=>{let{hours:t,minutes:r,seconds:n}=Cs(e);return`${t}:${ys(r)}:${ys(n)}`},d1=e=>wr(e)?{year:e.getFullYear(),month:e.getMonth(),dayOfMonth:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:null,ul=e=>{let{year:t,month:r,dayOfMonth:n,hours:o,minutes:i}=e??{};return t!==void 0&&r!==void 0&&n!==void 0?new Date(t,r,n,o??0,i??0):null},m1=e=>ul(e)?.toISOString()??null,v3=(e,t=!0)=>{let r=e.getMinutes()<=n3,n=r?e.getHours():e.getHours()+1,o=r?n3:0,i={...d1(e),hours:n,minutes:o};return t?m1(i):ul(i)},y3=e=>{let{seconds:t,minutes:r,hours:n}=Cs(e),o="PT";return n&&(o+=`${n}H`),r&&(o+=`${r}M`),t&&(o+=`${t}S`),t||r||n||(o+="0S"),o};var tse={isDate:wr,dateOnlyString:i3,dateOnlyStringNumeric:a3,dateOnlyISOString:s3,monthDayStringNumeric:u3,dayOfWeekString:l3,timeOnlyString:c3,dateTimeString:sl,dateTimeStringForSentence:f3,dateOnlyStringForSentence:p3,timeAgoString:d3,dateUTCOffset:m3,buildTimeDuration:Cs,mediaDurationString:h3,sessionDurationString:g3,dateToDateTime:d1,dateTimeToDate:ul,dateTimeToISO:m1,dateTimeRounded:v3,millisecondsToDurationISOString:y3};a();a();import{css as xt}from"styled-components";var h1={defaultDarkOne:xt`
|
|
11
11
|
background-color: #222d66;
|
|
12
12
|
background-image: radial-gradient(farthest-corner at top right, #222d66, transparent 70%),
|
|
13
13
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 50%),
|
|
@@ -97,7 +97,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
97
97
|
radial-gradient(farthest-corner at top right, #bcbf19, transparent 70%),
|
|
98
98
|
radial-gradient(farthest-corner at top left, #e8ec1e, transparent 65%),
|
|
99
99
|
radial-gradient(farthest-corner at bottom right, #2949e5, transparent 55%);
|
|
100
|
-
`},ll=Object.keys(h1),Ir=(e=void 0)=>$(e)?h1[e]:h1.defaultDarkOne;a();var MF=31,mse=e=>{let t=null;if(typeof e=="string"&&e)t=Array.from(e).reduce((n,o)=>Math.imul(MF,n)+o.charCodeAt(0)||0,0);else return ll[0];let r=Math.abs(t)%ll.length;return ll[r]};a();a();a();a();function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}a();function g1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a();a();function cn(e,t){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},cn(e,t)}function xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cn(e,t)}a();a();function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ws(e)}a();function v1(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}a();a();function cl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cl=function(){return!!e})()}function y1(e,t,r){if(cl())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&cn(o,r.prototype),o}function Ds(e){var t=typeof Map=="function"?new Map:void 0;return Ds=function(n){if(n===null||!v1(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return y1(n,arguments,ws(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),cn(o,n)},Ds(e)}a();var kt=function(e){xs(t,e);function t(r){var n;if(1)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this;else for(var o,i,s;s<o;s++);return g1(n)}return t}(Ds(Error));function b3(e,t){return e.substr(-t.length)===t}var IF=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function C3(e){if(typeof e!="string")return e;var t=e.match(IF);return t?parseFloat(e):e}var kF=function(t){return function(r,n){n===void 0&&(n="16px");var o=r,i=n;if(typeof r=="string"){if(!b3(r,"px"))throw new kt(69,t,r);o=C3(r)}if(typeof n=="string"){if(!b3(n,"px"))throw new kt(70,t,n);i=C3(n)}if(typeof o=="string")throw new kt(71,r,t);if(typeof i=="string")throw new kt(72,n,t);return""+o/i+t}},w3=kF,Yse=w3("em");var VF=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function D3(e){if(typeof e!="string")return[e,""];var t=e.match(VF);return t?[parseFloat(e),t[2]]:[e,void 0]}var Jse=w3("rem");function b1(e){return Math.round(e*255)}function NF(e,t,r){return b1(e)+","+b1(t)+","+b1(r)}function Ss(e,t,r,n){if(n===void 0&&(n=NF),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,s=i*(1-Math.abs(o%2-1)),u=0,l=0,c=0;o>=0&&o<1?(u=i,l=s):o>=1&&o<2?(u=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(u=s,c=i):o>=5&&o<6&&(u=i,c=s);var p=r-i/2,d=u+p,h=l+p,g=c+p;return n(d,h,g)}var x3={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function LF(e){if(typeof e!="string")return e;var t=e.toLowerCase();return x3[t]?"#"+x3[t]:e}var zF=/^#[a-fA-F0-9]{6}$/,HF=/^#[a-fA-F0-9]{8}$/,GF=/^#[a-fA-F0-9]{3}$/,jF=/^#[a-fA-F0-9]{4}$/,C1=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,_F=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,WF=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,UF=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $i(e){if(typeof e!="string")throw new kt(3);var t=LF(e);if(t.match(zF))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(HF)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(GF))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(jF)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=C1.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=_F.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=WF.exec(t);if(s){var u=parseInt(""+s[1],10),l=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+Ss(u,l,c)+")",d=C1.exec(p);if(!d)throw new kt(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var h=UF.exec(t.substring(0,50));if(h){var g=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,m=parseInt(""+h[3],10)/100,y="rgb("+Ss(g,v,m)+")",b=C1.exec(y);if(!b)throw new kt(4,t,y);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new kt(5)}function KF(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,l=o-i,c=s>.5?l/(2-o-i):l/(o+i);switch(o){case t:u=(r-n)/l+(r<n?6:0);break;case r:u=(n-t)/l+2;break;default:u=(t-r)/l+4;break}return u*=60,e.alpha!==void 0?{hue:u,saturation:c,lightness:s,alpha:e.alpha}:{hue:u,saturation:c,lightness:s}}function Ln(e){return KF($i(e))}var qF=function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},w1=qF;function $o(e){var t=e.toString(16);return t.length===1?"0"+t:t}function x1(e){return $o(Math.round(e*255))}function XF(e,t,r){return w1("#"+x1(e)+x1(t)+x1(r))}function fl(e,t,r){return Ss(e,t,r,XF)}function YF(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return fl(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return fl(e.hue,e.saturation,e.lightness);throw new kt(1)}function JF(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?fl(e,t,r):"rgba("+Ss(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?fl(e.hue,e.saturation,e.lightness):"rgba("+Ss(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new kt(2)}function D1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return w1("#"+$o(e)+$o(t)+$o(r));if(typeof e=="object"&&t===void 0&&r===void 0)return w1("#"+$o(e.red)+$o(e.green)+$o(e.blue));throw new kt(6)}function pl(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=$i(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?D1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?D1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new kt(7)}var ZF=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},QF=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},eB=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},tB=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function zn(e){if(typeof e!="object")throw new kt(8);if(QF(e))return pl(e);if(ZF(e))return D1(e);if(tB(e))return JF(e);if(eB(e))return YF(e);throw new kt(8)}function S3(e,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):S3(e,t,o)}}function tr(e){return S3(e,e.length,[])}function rB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{hue:r.hue+parseFloat(e)}))}var Zse=tr(rB);function Ri(e,t,r){return Math.max(e,Math.min(t,r))}function nB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{lightness:Ri(0,1,r.lightness-parseFloat(e))}))}var oB=tr(nB),ct=oB;function iB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{saturation:Ri(0,1,r.saturation-parseFloat(e))}))}var Qse=tr(iB);function aB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{lightness:Ri(0,1,r.lightness+parseFloat(e))}))}var eue=tr(aB);function sB(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=$i(t),o=te({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=$i(r),s=te({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),u=o.alpha-s.alpha,l=parseFloat(e)*2-1,c=l*u===-1?l:l+u,p=1+l*u,d=(c/p+1)/2,h=1-d,g={red:Math.floor(o.red*d+s.red*h),green:Math.floor(o.green*d+s.green*h),blue:Math.floor(o.blue*d+s.blue*h),alpha:o.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return pl(g)}var uB=tr(sB),E3=uB;function lB(e,t){if(t==="transparent")return t;var r=$i(t),n=typeof r.alpha=="number"?r.alpha:1,o=te({},r,{alpha:Ri(0,1,(n*100+parseFloat(e)*100)/100)});return pl(o)}var tue=tr(lB);function cB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{saturation:Ri(0,1,r.saturation+parseFloat(e))}))}var rue=tr(cB);function fB(e,t){return t==="transparent"?t:zn(te({},Ln(t),{hue:parseFloat(e)}))}var nue=tr(fB);function pB(e,t){return t==="transparent"?t:zn(te({},Ln(t),{lightness:parseFloat(e)}))}var oue=tr(pB);function dB(e,t){return t==="transparent"?t:zn(te({},Ln(t),{saturation:parseFloat(e)}))}var iue=tr(dB);function mB(e,t){return t==="transparent"?t:E3(parseFloat(e),"rgb(0, 0, 0)",t)}var aue=tr(mB);function hB(e,t){return t==="transparent"?t:E3(parseFloat(e),"rgb(255, 255, 255)",t)}var sue=tr(hB);function gB(e,t){if(t==="transparent")return t;var r=$i(t),n=typeof r.alpha=="number"?r.alpha:1,o=te({},r,{alpha:Ri(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return pl(o)}var vB=tr(gB),Vt=vB;var Es=e=>{let[r,n]=D3(e);return`@media (max-width: ${Math.max(r-.0025,0)}${n})`},yB=({theme:e})=>`@media (min-width: ${e.breakpoint.xs})`,bB=({theme:e})=>`@media (min-width: ${e.breakpoint.sm})`,CB=({theme:e})=>`@media (min-width: ${e.breakpoint.md})`,xB=({theme:e})=>`@media (min-width: ${e.breakpoint.lg})`,wB=({theme:e})=>`@media (min-width: ${e.breakpoint.xl})`,DB=({theme:e})=>Es(e.breakpoint.xs),SB=({theme:e})=>Es(e.breakpoint.sm),EB=({theme:e})=>Es(e.breakpoint.md),TB=({theme:e})=>Es(e.breakpoint.lg),PB=({theme:e})=>Es(e.breakpoint.xl),Ve={xsAndUp:yB,smAndUp:bB,mdAndUp:CB,lgAndUp:xB,xlAndUp:wB,xsAndDown:DB,smAndDown:SB,mdAndDown:EB,lgAndDown:TB,xlAndDown:PB};a();a();var fn=e=>e!=null&&(Object.getPrototypeOf(e)===null||e.constructor===Object);a();var S1=e=>(Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&(typeof e!="function"||t!=="caller"&&t!=="callee"&&t!=="arguments")&&e[t]!==null&&(typeof e[t]=="object"||typeof e[t]=="function")&&!Object.isFrozen(e[t])&&S1(e[t])}),e);a();var Ts=(e,...t)=>{if(!t.length)return e;let r={...e};return t.forEach(n=>{fn(n)&&Object.keys(n).forEach(o=>{fn(n[o])?r[o]===null||r[o]===void 0?r[o]={...n[o]}:r[o]=Ts(r[o],n[o]):r[o]=n[o]})}),r};a();var dl=(e,t)=>t.reduce((r,n)=>(Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]),r),{});var Oue={isObject:fn,deepFreeze:S1,merge:Ts,selectKeys:dl};a();a();var T3=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(t,r)=>+t==0?"":r===0?t.toLowerCase():t.toUpperCase());a();var pn=e=>e==="true"||e==="false"?e==="true":!!e;a();var rr=e=>e==null?"":String(e);a();a();var Mi=e=>typeof e=="string"||e instanceof String;var P3=e=>{if(!Mi(e))return!1;try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}};a();var Hn=e=>{let t=/^(?:\w+:)?\/\/(\S+)$/,r=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,n=/^[^\s.]+\.\S{2,}$/;if(!Mi(e))return!1;let o=t.exec(e);if(!o)return!1;let i=o[1];return i===void 0||!i?!1:r.test(i)||n.test(i)};a();var A3=(e="")=>(e[0]?.toLowerCase()??"")+e.slice(1);a();var O3=e=>e.replace(/\n/g,"");a();var F3=e=>(e||"").replace(/\.[^/.]{1,4}$/,"");a();var B3=(e,t)=>e.length<=t?e:`${e.slice(0,t-3)}...`;a();var $3=(e="")=>(e[0]?.toUpperCase()??"")+e.slice(1);var dle={camelCase:T3,coerceToBoolean:pn,coerceToString:rr,isHttpUrl:P3,isString:Mi,isUrl:Hn,lowerFirst:A3,removeNewlines:O3,stripExtension:F3,truncate:B3,upperFirst:$3};a();a();a();import N3,{Component as NB}from"react";a();import As,{Component as $B}from"react";a();import AB from"react";var OB={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},R3=function(t){var r=t.message,n=t["aria-live"];return AB.createElement("div",{style:OB,role:"log","aria-live":n},r||"")};R3.propTypes={};var Ps=R3;function FB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function BB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var I3=function(e){BB(t,e);function t(){var r,n,o;FB(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return o=(r=(n=M3(this,e.call.apply(e,[this].concat(s))),n),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},r),M3(n,o)}return t.getDerivedStateFromProps=function(n,o){var i=o.oldPolitemessage,s=o.oldPoliteMessageId,u=o.oldAssertiveMessage,l=o.oldAssertiveMessageId,c=n.politeMessage,p=n.politeMessageId,d=n.assertiveMessage,h=n.assertiveMessageId;return i!==c||s!==p?{politeMessage1:o.setAlternatePolite?"":c,politeMessage2:o.setAlternatePolite?c:"",oldPolitemessage:c,oldPoliteMessageId:p,setAlternatePolite:!o.setAlternatePolite}:u!==d||l!==h?{assertiveMessage1:o.setAlternateAssertive?"":d,assertiveMessage2:o.setAlternateAssertive?d:"",oldAssertiveMessage:d,oldAssertiveMessageId:h,setAlternateAssertive:!o.setAlternateAssertive}:null},t.prototype.render=function(){var n=this.state,o=n.assertiveMessage1,i=n.assertiveMessage2,s=n.politeMessage1,u=n.politeMessage2;return As.createElement("div",null,As.createElement(Ps,{"aria-live":"assertive",message:o}),As.createElement(Ps,{"aria-live":"assertive",message:i}),As.createElement(Ps,{"aria-live":"polite",message:s}),As.createElement(Ps,{"aria-live":"polite",message:u}))},t}($B);I3.propTypes={};var k3=I3;a();import RB from"react";var MB=RB.createContext({announceAssertive:V3,announcePolite:V3});function V3(){console.warn("Announcement failed, LiveAnnouncer context is missing")}var Ii=MB;function IB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LB=function(e){VB(t,e);function t(r){IB(this,t);var n=kB(this,e.call(this,r));return n.announcePolite=function(o,i){n.setState({announcePoliteMessage:o,politeMessageId:i||""})},n.announceAssertive=function(o,i){n.setState({announceAssertiveMessage:o,assertiveMessageId:i||""})},n.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:n.announcePolite,announceAssertive:n.announceAssertive}},n}return t.prototype.render=function(){var n=this.state,o=n.announcePoliteMessage,i=n.politeMessageId,s=n.announceAssertiveMessage,u=n.assertiveMessageId,l=n.updateFunctions;return N3.createElement(Ii.Provider,{value:l},this.props.children,N3.createElement(k3,{assertiveMessage:s,assertiveMessageId:u,politeMessage:o,politeMessageId:i}))},t}(NB),E1=LB;a();import X3 from"react";a();var O1=dr(W3());import{Component as UB}from"react";function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function WB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var K3=function(e){WB(t,e);function t(){var r,n,o;_B(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return o=(r=(n=U3(this,e.call.apply(e,[this].concat(s))),n),n.announce=function(){var l=n.props,c=l.message,p=l["aria-live"],d=l.announceAssertive,h=l.announcePolite;p==="assertive"&&d(c||"",(0,O1.default)()),p==="polite"&&h(c||"",(0,O1.default)())},r),U3(n,o)}return t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(n){var o=this.props.message;o!==n.message&&this.announce()},t.prototype.componentWillUnmount=function(){var n=this.props,o=n.clearOnUnmount,i=n.announceAssertive,s=n.announcePolite;(o===!0||o==="true")&&(i(""),s(""))},t.prototype.render=function(){return null},t}(UB);K3.propTypes={};var q3=K3;var KB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y3=function(t){return X3.createElement(Ii.Consumer,null,function(r){return X3.createElement(q3,KB({},r,t))})};Y3.propTypes={};var Fs=Y3;a();import qB from"react";var XB=function(t){var r=t.children;return qB.createElement(Ii.Consumer,null,function(n){return r(n)})};XB.propTypes={};a();a();a();import{jsxs as f$,jsx as p$}from"react/jsx-runtime";import{forwardRef as d$,useContext as Dl}from"react";a();import{createContext as YB}from"react";var ki=YB({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});a();import{createContext as JB}from"react";var Gn=JB({});a();import{useContext as bl,useRef as Z3,useInsertionEffect as o$,useEffect as i$}from"react";a();import{createContext as ZB}from"react";var jn=ZB(null);a();import{useLayoutEffect as QB,useEffect as e$}from"react";a();var Vi=typeof document<"u";var Ni=Vi?QB:e$;a();import{createContext as t$}from"react";var ml=t$({strict:!1});a();a();var Li=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var r$="framerAppearId",hl="data-"+Li(r$);a();a();a();var dn={skipAnimations:!1,useManualTiming:!1};a();var gl=class{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}};function J3(e){let t=new gl,r=new gl,n=0,o=!1,i=!1,s=new WeakSet,u={schedule:(l,c=!1,p=!1)=>{let d=p&&o,h=d?t:r;return c&&s.add(l),h.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c<n;c++){let p=t.order[c];s.has(p)&&(u.schedule(p),e()),p(l)}o=!1,i&&(i=!1,u.process(l))}};return u}var vl=["read","resolveKeyframes","update","preRender","render","postRender"],n$=40;function yl(e,t){let r=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},i=vl.reduce((d,h)=>(d[h]=J3(()=>r=!0),d),{}),s=d=>{i[d].process(o)},u=()=>{let d=dn.useManualTiming?o.timestamp:performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,n$),1),o.timestamp=d,o.isProcessing=!0,vl.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(u))},l=()=>{r=!0,n=!0,o.isProcessing||e(u)};return{schedule:vl.reduce((d,h)=>{let g=i[h];return d[h]=(v,m=!1,y=!1)=>(r||l(),g.schedule(v,m,y)),d},{}),cancel:d=>vl.forEach(h=>i[h].cancel(d)),state:o,steps:i}}var{schedule:zi,cancel:Rce}=yl(queueMicrotask,!1);function Q3(e,t,r,n){let{visualElement:o}=bl(Gn),i=bl(ml),s=bl(jn),u=bl(ki).reducedMotion,l=Z3();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));let c=l.current;o$(()=>{c&&c.update(r,s)});let p=Z3(!!(r[hl]&&!window.HandoffComplete));return Ni(()=>{c&&(zi.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),i$(()=>{c&&(c.updateFeatures(),!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),c}a();import{useCallback as a$}from"react";a();function mn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e5(e,t,r){return a$(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):mn(r)&&(r.current=n))},[t])}a();import{useContext as s$,useMemo as u$}from"react";a();a();function hn(e){return typeof e=="string"||Array.isArray(e)}a();a();function _n(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}a();var Cl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bs=["initial",...Cl];function Ro(e){return _n(e.animate)||Bs.some(t=>hn(e[t]))}function xl(e){return!!(Ro(e)||e.variants)}function t5(e,t){if(Ro(e)){let{initial:r,animate:n}=e;return{initial:r===!1||hn(r)?r:void 0,animate:hn(n)?n:void 0}}return e.inherit!==!1?t:{}}function n5(e){let{initial:t,animate:r}=t5(e,s$(Gn));return u$(()=>({initial:t,animate:r}),[r5(t),r5(r)])}function r5(e){return Array.isArray(e)?e.join(" "):e}a();a();var o5={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"]},Mo={};for(let e in o5)Mo[e]={isEnabled:t=>o5[e].some(r=>!!t[r])};function i5(e){for(let t in e)Mo[t]={...Mo[t],...e[t]}}a();import{createContext as l$}from"react";var Hi=l$({});a();import{createContext as c$}from"react";var wl=c$({});a();var a5=Symbol.for("motionComponentSymbol");function s5({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&i5(e);function i(u,l){let c,p={...Dl(ki),...u,layoutId:m$(u)},{isStatic:d}=p,h=n5(u),g=n(u,d);if(!d&&Vi){h.visualElement=Q3(o,g,p,t);let v=Dl(wl),m=Dl(ml).strict;h.visualElement&&(c=h.visualElement.loadFeatures(p,m,e,v))}return f$(Gn.Provider,{value:h,children:[c&&h.visualElement?p$(c,{visualElement:h.visualElement,...p}):null,r(o,u,e5(g,h.visualElement,l),g,d,h.visualElement)]})}let s=d$(i);return s[a5]=o,s}function m$({layoutId:e}){let t=Dl(Hi).id;return t&&e!==void 0?t+"-"+e:e}a();function u5(e){function t(n,o={}){return s5(e(n,o))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}a();a();a();var l5=["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 Gi(e){return typeof e!="string"||e.includes("-")?!1:!!(l5.indexOf(e)>-1||/[A-Z]/u.test(e))}a();import{Fragment as O$,useMemo as F$,createElement as B$}from"react";a();import{useMemo as b$}from"react";a();a();var ji={};function c5(e){Object.assign(ji,e)}a();var Wn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nt=new Set(Wn);function Sl(e,{layout:t,layoutId:r}){return Nt.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ji[e]||e==="opacity")}a();var Re=e=>!!(e&&e.getVelocity);a();a();var h$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g$=Wn.length;function f5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;s<g$;s++){let u=Wn[s];if(e[u]!==void 0){let l=h$[u]||u;i+=`${l}(${e[u]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,n?"":i):r&&n&&(i="none"),i}a();var p5=e=>t=>typeof t=="string"&&t.startsWith(e),El=p5("--"),v$=p5("var(--"),_i=e=>v$(e)?y$.test(e.split("/*")[0].trim()):!1,y$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;a();var d5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;a();a();a();var Pt=(e,t,r)=>r>t?t:r<e?e:r;var kr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Un={...kr,transform:e=>Pt(0,1,e)},$s={...kr,default:1};a();a();var Kn=e=>Math.round(e*1e5)/1e5,Wi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,h5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function gn(e){return typeof e=="string"}var Rs=e=>({test:t=>gn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vr=Rs("deg"),At=Rs("%"),oe=Rs("px"),g5=Rs("vh"),v5=Rs("vw"),F1={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)};a();var B1={...kr,transform:Math.round};var Tl={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,size:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,rotate:Vr,rotateX:Vr,rotateY:Vr,rotateZ:Vr,scale:$s,scaleX:$s,scaleY:$s,scaleZ:$s,skew:Vr,skewX:Vr,skewY:Vr,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:Un,originX:F1,originY:F1,originZ:oe,zIndex:B1,backgroundPositionX:oe,backgroundPositionY:oe,fillOpacity:Un,strokeOpacity:Un,numOctaves:B1};function Ui(e,t,r,n){let{style:o,vars:i,transform:s,transformOrigin:u}=e,l=!1,c=!1,p=!0;for(let d in t){let h=t[d];if(El(d)){i[d]=h;continue}let g=Tl[d],v=d5(h,g);if(Nt.has(d)){if(l=!0,s[d]=v,!p)continue;h!==(g.default||0)&&(p=!1)}else d.startsWith("origin")?(c=!0,u[d]=v):o[d]=v}if(t.transform||(l||n?o.transform=f5(e.transform,r,p,n):o.transform&&(o.transform="none")),c){let{originX:d="50%",originY:h="50%",originZ:g=0}=u;o.transformOrigin=`${d} ${h} ${g}`}}a();var Ki=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $1(e,t,r){for(let n in t)!Re(t[n])&&!Sl(n,r)&&(e[n]=t[n])}function C$({transformTemplate:e},t,r){return b$(()=>{let n=Ki();return Ui(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function x$(e,t,r){let n=e.style||{},o={};return $1(o,n,e),Object.assign(o,C$(e,t,r)),o}function y5(e,t,r){let n={},o=x$(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}a();a();var w$=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","ignoreStrict","viewport"]);function Ms(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||w$.has(e)}var D5=e=>!Ms(e);function E$(e){e&&(D5=t=>t.startsWith("on")?!Ms(t):e(t))}try{E$((w5(),EF(x5)).default)}catch{}function S5(e,t,r){let n={};for(let o in e)o==="values"&&typeof e.values=="object"||(D5(o)||r===!0&&Ms(o)||!t&&!Ms(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}a();import{useMemo as A$}from"react";a();a();function E5(e,t,r){return typeof e=="string"?e:oe.transform(t+r*e)}function T5(e,t,r){let n=E5(t,e.x,e.width),o=E5(r,e.y,e.height);return`${n} ${o}`}a();var T$={offset:"stroke-dashoffset",array:"stroke-dasharray"},P$={offset:"strokeDashoffset",array:"strokeDasharray"};function P5(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?T$:P$;e[i.offset]=oe.transform(-n);let s=oe.transform(t),u=oe.transform(r);e[i.array]=`${s} ${u}`}function qi(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...c},p,d,h){if(Ui(e,c,p,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:g,style:v,dimensions:m}=e;g.transform&&(m&&(v.transform=g.transform),delete g.transform),m&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=T5(m,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(g.x=t),r!==void 0&&(g.y=r),n!==void 0&&(g.scale=n),s!==void 0&&P5(g,s,u,l,!1)}a();var Pl=()=>({...Ki(),attrs:{}});a();var Xi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function A5(e,t,r,n){let o=A$(()=>{let i=Pl();return qi(i,t,{enableHardwareAcceleration:!1},Xi(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};$1(i,e.style,e),o.style={...i,...o.style}}return o}function O5(e=!1){return(r,n,o,{latestValues:i},s)=>{let l=(Gi(r)?A5:y5)(n,i,s,r),c=S5(n,typeof r=="string",e),p=r!==O$?{...c,...l,ref:o}:{},{children:d}=n,h=F$(()=>Re(d)?d.get():d,[d]);return B$(r,{...p,children:h})}}a();a();a();function Al(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let i in r)e.style.setProperty(i,r[i])}a();var Ol=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"]);function Fl(e,t,r,n){Al(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(Ol.has(o)?o:Li(o),t.attrs[o])}a();a();function Yi(e,t,r){var n;let{style:o}=e,i={};for(let s in o)(Re(o[s])||t.style&&Re(t.style[s])||Sl(s,e)||((n=r?.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Bl(e,t,r){let n=Yi(e,t,r);for(let o in e)if(Re(e[o])||Re(t[o])){let i=Wn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}a();import{useContext as R5}from"react";a();function F5(e){let t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Ji(e,t,r,n){if(typeof t=="function"){let[o,i]=F5(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,i]=F5(n);t=t(r!==void 0?r:e.custom,o,i)}return t}a();import{useRef as $$}from"react";function $l(e){let t=$$(null);return t.current===null&&(t.current=e()),t.current}a();a();a();var Is=e=>Array.isArray(e);var B5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$5=e=>Is(e)?e[e.length-1]||0:e;function Zi(e){let t=Re(e)?e.get():e;return B5(t)?t.toValue():t}function R$({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let s={latestValues:M$(n,o,i,e),renderState:t()};return r&&(s.mount=u=>r(n,u,s)),s}var Rl=e=>(t,r)=>{let n=R5(Gn),o=R5(jn),i=()=>R$(e,t,n,o);return r?i():$l(i)};function M$(e,t,r,n){let o={},i=n(e,{});for(let h in i)o[h]=Zi(i[h]);let{initial:s,animate:u}=e,l=Ro(e),c=xl(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let d=p?u:s;return d&&typeof d!="boolean"&&!_n(d)&&(Array.isArray(d)?d:[d]).forEach(g=>{let v=Ji(e,g);if(!v)return;let{transitionEnd:m,transition:y,...b}=v;for(let x in b){let w=b[x];if(Array.isArray(w)){let D=p?w.length-1:0;w=w[D]}w!==null&&(o[x]=w)}for(let x in m)o[x]=m[x]}),o}a();a();var Fe=e=>e;var{schedule:le,cancel:Ot,state:qe,steps:Ml}=yl(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0);var M5={useVisualState:Rl({scrapeMotionValuesFromProps:Bl,createRenderState:Pl,onMount:(e,t,{renderState:r,latestValues:n})=>{le.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{qi(r,n,{enableHardwareAcceleration:!1},Xi(t.tagName),e.transformTemplate),Fl(t,r)})}})};a();var I5={useVisualState:Rl({scrapeMotionValuesFromProps:Yi,createRenderState:Ki})};function k5(e,{forwardMotionProps:t=!1},r,n){return{...Gi(e)?M5:I5,preloadedFeatures:r,useRender:O5(t),createVisualElement:n,Component:e}}a();a();a();a();function Lt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}a();a();var Il=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Io(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var V5=e=>t=>Il(t)&&e(t,Io(t));function zt(e,t,r,n){return Lt(e,t,V5(r),n)}a();var I$=(e,t)=>r=>t(e(r)),wt=(...e)=>e.reduce(I$);a();function z5(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var N5=z5("dragHorizontal"),L5=z5("dragVertical");function R1(e){let t=!1;if(e==="y")t=L5();else if(e==="x")t=N5();else{let r=N5(),n=L5();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function kl(){let e=R1(!0);return e?(e(),!1):!0}a();var ft=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function H5(e,t){let r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||kl())return;let u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t);let l=u[n];l&&le.postRender(()=>l(i,s))};return zt(e.current,r,o,{passive:!e.getProps()[n]})}var Vl=class extends ft{mount(){this.unmount=wt(H5(this.node,!0),H5(this.node,!1))}unmount(){}};a();var Nl=class extends ft{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=wt(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};a();a();var M1=(e,t)=>t?e===t?!0:M1(e,t.parentElement):!1;function I1(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,Io(r))}var Ll=class extends ft{constructor(){super(...arguments),this.removeStartListeners=Fe,this.removeEndListeners=Fe,this.removeAccessibleListeners=Fe,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=zt(window,"pointerup",(u,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:p,globalTapTarget:d}=this.node.getProps(),h=!d&&!M1(this.node.current,u.target)?p:c;h&&le.update(()=>h(u,l))},{passive:!(n.onTap||n.onPointerUp)}),s=zt(window,"pointercancel",(u,l)=>this.cancelPress(u,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=wt(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{let t=i=>{if(i.key!=="Enter"||this.isPressing)return;let s=u=>{u.key!=="Enter"||!this.checkPressEnd()||I1("up",(l,c)=>{let{onTap:p}=this.node.getProps();p&&le.postRender(()=>p(l,c))})};this.removeEndListeners(),this.removeEndListeners=Lt(this.node.current,"keyup",s),I1("down",(u,l)=>{this.startPress(u,l)})},r=Lt(this.node.current,"keydown",t),n=()=>{this.isPressing&&I1("cancel",(i,s)=>this.cancelPress(i,s))},o=Lt(this.node.current,"blur",n);this.removeAccessibleListeners=wt(r,o)}}startPress(t,r){this.isPressing=!0;let{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&le.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kl()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&le.postRender(()=>n(t,r))}mount(){let t=this.node.getProps(),r=zt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=wt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}};a();a();var V1=new WeakMap,k1=new WeakMap,k$=e=>{let t=V1.get(e.target);t&&t(e)},V$=e=>{e.forEach(k$)};function N$({root:e,...t}){let r=e||document;k1.has(r)||k1.set(r,{});let n=k1.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(V$,{root:e,...t})),n[o]}function G5(e,t,r){let n=N$(t);return V1.set(e,r),n.observe(e),()=>{V1.delete(e),n.unobserve(e)}}var L$={some:0,all:1},zl=class extends ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:L$[o]},u=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:p,onViewportLeave:d}=this.node.getProps(),h=c?p:d;h&&h(l)};return G5(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(z$(t,r))&&this.startObserver()}unmount(){}};function z$({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var j5={inView:{Feature:zl},tap:{Feature:Ll},focus:{Feature:Nl},hover:{Feature:Vl}};a();a();a();a();function N1(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}a();function qn(e,t,r){let n=e.getProps();return Ji(n,t,r!==void 0?r:n.custom,e)}a();a();a();a();var Ht=e=>e*1e3,Gt=e=>e/1e3;a();var H$={type:"spring",stiffness:500,damping:25,restSpeed:10},G$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j$={type:"keyframes",duration:.8},_$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_5=(e,{keyframes:t})=>t.length>2?j$:Nt.has(e)?e.startsWith("scale")?G$(t[1]):H$:_$;a();function W5({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:l,elapsed:c,...p}){return!!Object.keys(p).length}function Qi(e,t){return e[t]||e.default||e}a();var Hl={current:!1};a();var W$=e=>e!==null;function Xn(e,{repeat:t,repeatType:r="loop"},n){let o=e.filter(W$),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}a();a();var Gl;function U$(){Gl=void 0}var nr={now:()=>(Gl===void 0&&nr.set(qe.isProcessing||dn.useManualTiming?qe.timestamp:performance.now()),Gl),set:e=>{Gl=e,queueMicrotask(U$)}};a();a();a();var jl=e=>/^0[^.\s]+$/u.test(e);function U5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jl(e):!0}a();a();var Yn=Fe,Dr=Fe;a();var _l=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var K$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q$(e){let t=K$.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${r??n}`,o]}var X$=4;function L1(e,t,r=1){Dr(r<=X$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=q$(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);if(i){let s=i.trim();return _l(s)?parseFloat(s):s}return _i(o)?L1(o,t,r+1):o}a();var X5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),z1=e=>e===kr||e===oe,K5=(e,t)=>parseFloat(e.split(", ")[t]),q5=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/u);if(o)return K5(o[1],t);{let i=n.match(/^matrix\((.+)\)$/u);return i?K5(i[1],e):0}},Y$=new Set(["x","y","z"]),J$=Wn.filter(e=>!Y$.has(e));function Y5(e){let t=[];return J$.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var ko={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:q5(4,13),y:q5(5,14)};ko.translateX=ko.x;ko.translateY=ko.y;a();a();var Wl=e=>t=>t.test(e);a();var J5={test:e=>e==="auto",parse:e=>e};var H1=[kr,oe,At,Vr,v5,g5,J5],G1=e=>H1.find(Wl(e));a();var Vo=new Set,j1=!1,_1=!1;function Z5(){if(_1){let e=Array.from(Vo).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let o=Y5(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();let o=r.get(n);o&&o.forEach(([i,s])=>{var u;(u=n.getValue(i))===null||u===void 0||u.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}_1=!1,j1=!1,Vo.forEach(e=>e.complete()),Vo.clear()}function Q5(){Vo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_1=!0)})}function ev(){Q5(),Z5()}var Jn=class{constructor(t,r,n,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vo.add(this),j1||(j1=!0,le.read(Q5),le.resolveKeyframes(Z5))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){let s=o?.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){let l=n.readValue(r,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};a();a();a();a();a();a();var ea=(e,t)=>r=>!!(gn(r)&&h5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Ul=(e,t,r)=>n=>{if(!gn(n))return n;let[o,i,s,u]=n.match(Wi);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}};var Z$=e=>Pt(0,255,e),W1={...kr,transform:e=>Math.round(Z$(e))},Nr={test:ea("rgb","red"),parse:Ul("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+W1.transform(e)+", "+W1.transform(t)+", "+W1.transform(r)+", "+Kn(Un.transform(n))+")"};function Q$(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var ks={test:ea("#"),parse:Q$,transform:Nr.transform};a();var Zn={test:ea("hsl","hue"),parse:Ul("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+At.transform(Kn(t))+", "+At.transform(Kn(r))+", "+Kn(Un.transform(n))+")"};var Je={test:e=>Nr.test(e)||ks.test(e)||Zn.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Zn.test(e)?Zn.parse(e):ks.parse(e),transform:e=>gn(e)?e:e.hasOwnProperty("red")?Nr.transform(e):Zn.transform(e)};function eR(e){var t,r;return isNaN(e)&&gn(e)&&(((t=e.match(Wi))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(m5))===null||r===void 0?void 0:r.length)||0)>0}var rv="number",nv="color",tR="var",rR="var(",tv="${}",nR=/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 No(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[],i=0,u=t.replace(nR,l=>(Je.test(l)?(n.color.push(i),o.push(nv),r.push(Je.parse(l))):l.startsWith(rR)?(n.var.push(i),o.push(tR),r.push(l)):(n.number.push(i),o.push(rv),r.push(parseFloat(l))),++i,tv)).split(tv);return{values:r,split:u,indexes:n,types:o}}function ov(e){return No(e).values}function iv(e){let{split:t,types:r}=No(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){let u=r[s];u===rv?i+=Kn(o[s]):u===nv?i+=Je.transform(o[s]):i+=o[s]}return i}}var oR=e=>typeof e=="number"?0:e;function iR(e){let t=ov(e);return iv(e)(t.map(oR))}var Ft={test:eR,parse:ov,createTransformer:iv,getAnimatableNone:iR};a();a();var aR=new Set(["brightness","contrast","saturate","opacity"]);function sR(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Wi)||[];if(!n)return e;let o=r.replace(n,""),i=aR.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var uR=/\b([a-z-]*)\(.*?\)/gu,Vs={...Ft,getAnimatableNone:e=>{let t=e.match(uR);return t?t.map(sR).join(" "):e}};a();var lR={...Tl,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Vs,WebkitFilter:Vs},ta=e=>lR[e];function Kl(e,t){let r=ta(e);return r!==Vs&&(r=Ft),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var cR=new Set(["auto","none","0"]);function av(e,t,r){let n=0,o;for(;n<e.length&&!o;){let i=e[n];typeof i=="string"&&!cR.has(i)&&No(i).values.length&&(o=e[n]),n++}if(o&&r)for(let i of t)e[i]=Kl(r,o)}var ra=class extends Jn{constructor(t,r,n,o){super(t,r,n,o,o?.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),_i(c))){let p=L1(c,r.current);p!==void 0&&(t[l]=p),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!X5.has(n)||t.length!==2)return;let[o,i]=t,s=G1(o),u=G1(i);if(s!==u)if(z1(s)&&z1(u))for(let l=0;l<t.length;l++){let c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)U5(t[o])&&n.push(o);n.length&&av(t,n,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ko[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){var t;let{element:r,name:n,unresolvedKeyframes:o}=this;if(!r.current)return;let i=r.getValue(n);i&&i.jump(this.measuredOrigin,!1);let s=o.length-1,u=o[s];o[s]=ko[n](r.measureViewportBox(),window.getComputedStyle(r.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}};a();function ql(e){let t;return()=>(t===void 0&&(t=e()),t)}a();a();a();var U1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ft.test(e)||e==="0")&&!e.startsWith("url("));function fR(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function sv(e,t,r,n){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=U1(o,t),u=U1(i,t);return Yn(s===u,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!u?!1:fR(e)||r==="spring"&&n}var na=class{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,...u},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ev(),this._resolved}onKeyframesResolved(t,r){this.hasAttemptedResolve=!0;let{name:n,type:o,velocity:i,delay:s,onComplete:u,onUpdate:l,isGenerator:c}=this.options;if(!c&&!sv(t,n,o,i))if(Hl.current||!s){l?.(Xn(t,this.options,r)),u?.(),this.resolveFinishedPromise();return}else this.options.duration=0;let p=this.initPlayback(t,r);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...p},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};a();a();a();a();function Xl(e,t){return t?e*(1e3/t):0}var pR=5;function Yl(e,t,r){let n=Math.max(t-pR,0);return Xl(r-e(n),t-n)}a();var K1=.001,dR=.01,uv=10,mR=.05,hR=1;function lv({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Yn(e<=Ht(uv),"Spring duration must be 10 seconds or less");let s=1-t;s=Pt(mR,hR,s),e=Pt(dR,uv,Gt(e)),s<1?(o=c=>{let p=c*s,d=p*e,h=p-r,g=Jl(c,s),v=Math.exp(-d);return K1-h/g*v},i=c=>{let d=c*s*e,h=d*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),m=Jl(Math.pow(c,2),s);return(-o(c)+K1>0?-1:1)*((h-g)*v)/m}):(o=c=>{let p=Math.exp(-c*e),d=(c-r)*e+1;return-K1+p*d},i=c=>{let p=Math.exp(-c*e),d=(r-c)*(e*e);return p*d});let u=5/e,l=vR(o,i,u);if(e=Ht(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}var gR=12;function vR(e,t,r){let n=r;for(let o=1;o<gR;o++)n=n-e(n)/t(n);return n}function Jl(e,t){return e*Math.sqrt(1-t*t)}var yR=["duration","bounce"],bR=["stiffness","damping","mass"];function cv(e,t){return t.some(r=>e[r]!==void 0)}function CR(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cv(e,bR)&&cv(e,yR)){let r=lv(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Zl({keyframes:e,restDelta:t,restSpeed:r,...n}){let o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,mass:c,duration:p,velocity:d,isResolvedFromDuration:h}=CR({...n,velocity:-Gt(n.velocity||0)}),g=d||0,v=l/(2*Math.sqrt(u*c)),m=i-o,y=Gt(Math.sqrt(u/c)),b=Math.abs(m)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let x;if(v<1){let w=Jl(y,v);x=D=>{let E=Math.exp(-v*y*D);return i-E*((g+v*y*m)/w*Math.sin(w*D)+m*Math.cos(w*D))}}else if(v===1)x=w=>i-Math.exp(-y*w)*(m+(g+y*m)*w);else{let w=y*Math.sqrt(v*v-1);x=D=>{let E=Math.exp(-v*y*D),S=Math.min(w*D,300);return i-E*((g+v*y*m)*Math.sinh(S)+w*m*Math.cosh(S))/w}}return{calculatedDuration:h&&p||null,next:w=>{let D=x(w);if(h)s.done=w>=p;else{let E=g;w!==0&&(v<1?E=Yl(x,w,D):E=0);let S=Math.abs(E)<=r,T=Math.abs(i-D)<=t;s.done=S&&T}return s.value=s.done?i:D,s}}}a();function q1({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:u,max:l,restDelta:c=.5,restSpeed:p}){let d=e[0],h={done:!1,value:d},g=O=>u!==void 0&&O<u||l!==void 0&&O>l,v=O=>u===void 0?l:l===void 0||Math.abs(u-O)<Math.abs(l-O)?u:l,m=r*t,y=d+m,b=s===void 0?y:s(y);b!==y&&(m=b-d);let x=O=>-m*Math.exp(-O/n),w=O=>b+x(O),D=O=>{let F=x(O),I=w(O);h.done=Math.abs(F)<=c,h.value=h.done?b:I},E,S,T=O=>{g(h.value)&&(E=O,S=Zl({keyframes:[h.value,v(h.value)],velocity:Yl(w,O,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:p}))};return T(0),{calculatedDuration:null,next:O=>{let F=!1;return!S&&E===void 0&&(F=!0,D(O),T(O)),E!==void 0&&O>=E?S.next(O-E):(!F&&D(O),h)}}}a();a();a();var fv=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,xR=1e-7,wR=12;function DR(e,t,r,n,o){let i,s,u=0;do s=t+(r-t)/2,i=fv(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>xR&&++u<wR);return s}function Qn(e,t,r,n){if(e===t&&r===n)return Fe;let o=i=>DR(i,0,1,e,r);return i=>i===0||i===1?i:fv(o(i),t,n)}var pv=Qn(.42,0,1,1),dv=Qn(0,0,.58,1),Ql=Qn(.42,0,.58,1);a();var mv=e=>Array.isArray(e)&&typeof e[0]!="number";a();a();a();var ec=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;a();var tc=e=>t=>1-e(1-t);var rc=e=>1-Math.sin(Math.acos(e)),nc=tc(rc),hv=ec(rc);a();var X1=Qn(.33,1.53,.69,.99),Ns=tc(X1),gv=ec(Ns);a();var vv=e=>(e*=2)<1?.5*Ns(e):.5*(2-Math.pow(2,-10*(e-1)));var yv={linear:Fe,easeIn:pv,easeInOut:Ql,easeOut:dv,circIn:rc,circInOut:hv,circOut:nc,backIn:Ns,backInOut:gv,backOut:X1,anticipate:vv},Y1=e=>{if(Array.isArray(e)){Dr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return Qn(t,r,n,o)}else if(typeof e=="string")return Dr(yv[e]!==void 0,`Invalid easing type '${e}'`),yv[e];return e};a();a();var vn=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};a();a();a();var xe=(e,t,r)=>e+(t-e)*r;a();a();function J1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bv({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{let u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;o=J1(l,u,e+1/3),i=J1(l,u,e),s=J1(l,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}a();function oa(e,t){return r=>r>0?t:e}var Z1=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},SR=[ks,Nr,Zn],ER=e=>SR.find(t=>t.test(e));function Cv(e){let t=ER(e);if(Yn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===Zn&&(r=bv(r)),r}var Q1=(e,t)=>{let r=Cv(e),n=Cv(t);if(!r||!n)return oa(e,t);let o={...r};return i=>(o.red=Z1(r.red,n.red,i),o.green=Z1(r.green,n.green,i),o.blue=Z1(r.blue,n.blue,i),o.alpha=xe(r.alpha,n.alpha,i),Nr.transform(o))};a();var oc=new Set(["none","hidden"]);function xv(e,t){return oc.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function TR(e,t){return r=>xe(e,t,r)}function ic(e){return typeof e=="number"?TR:typeof e=="string"?_i(e)?oa:Je.test(e)?Q1:OR:Array.isArray(e)?wv:typeof e=="object"?Je.test(e)?Q1:PR:oa}function wv(e,t){let r=[...e],n=r.length,o=e.map((i,s)=>ic(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function PR(e,t){let r={...e,...t},n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=ic(e[o])(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}}function AR(e,t){var r;let n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],u=e.indexes[s][o[s]],l=(r=e.values[u])!==null&&r!==void 0?r:0;n[i]=l,o[s]++}return n}var OR=(e,t)=>{let r=Ft.createTransformer(t),n=No(e),o=No(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?oc.has(e)&&!o.values.length||oc.has(t)&&!n.values.length?xv(e,t):wt(wv(AR(n,o),o.values),r):(Yn(!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.`),oa(e,t))};function ac(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?xe(e,t,r):ic(e)(e,t)}function FR(e,t,r){let n=[],o=r||ac,i=e.length-1;for(let s=0;s<i;s++){let u=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Fe:t;u=wt(l,u)}n.push(u)}return n}function Dv(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;if(Dr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=FR(t,n,o),u=s.length,l=c=>{let p=0;if(u>1)for(;p<e.length-2&&!(c<e[p+1]);p++);let d=vn(e[p],e[p+1],c);return s[p](d)};return r?c=>l(Pt(e[0],e[i-1],c)):l}a();a();function Sv(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=vn(0,t,n);e.push(xe(r,1,o))}}function Ev(e){let t=[0];return Sv(t,e.length-1),t}a();function Tv(e,t){return e.map(r=>r*t)}function BR(e,t){return e.map(()=>t||Ql).splice(0,e.length-1)}function Ls({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let o=mv(n)?n.map(Y1):Y1(n),i={done:!1,value:t[0]},s=Tv(r&&r.length===t.length?r:Ev(t),e),u=Dv(s,t,{ease:Array.isArray(o)?o:BR(t,o)});return{calculatedDuration:e,next:l=>(i.value=u(l),i.done=l>=e,i)}}a();function Pv(e){let t=0,r=50,n=e.next(t);for(;!n.done&&t<2e4;)t+=r,n=e.next(t);return t>=2e4?1/0:t}a();var Av=e=>{let t=({timestamp:r})=>e(r);return{start:()=>le.update(t,!0),stop:()=>Ot(t),now:()=>qe.isProcessing?qe.timestamp:nr.now()}};var $R={decay:q1,inertia:q1,tween:Ls,keyframes:Ls,spring:Zl},RR=e=>e/100,Lo=class extends na{constructor({KeyframeResolver:t=Jn,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:u}=this.options;u&&u()};let{name:n,motionValue:o,keyframes:i}=this.options,s=(u,l)=>this.onKeyframesResolved(u,l);n&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,n,o):this.resolver=new t(i,s,n,o),this.resolver.scheduleResolve()}initPlayback(t){let{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,u=$R[r]||Ls,l,c;u!==Ls&&typeof t[0]!="number"&&(l=wt(RR,ac(t[0],t[1])),t=[0,100]);let p=u({...this.options,keyframes:t});i==="mirror"&&(c=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),p.calculatedDuration===null&&(p.calculatedDuration=Pv(p));let{calculatedDuration:d}=p,h=d+o,g=h*(n+1)-o;return{generator:p,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:g}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){let{resolved:n}=this;if(!n){let{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}let{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:c,totalDuration:p,resolvedDuration:d}=n;if(this.startTime===null)return i.next(0);let{delay:h,repeat:g,repeatType:v,repeatDelay:m,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let b=this.currentTime-h*(this.speed>=0?1:-1),x=this.speed>=0?b<0:b>p;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let w=this.currentTime,D=i;if(g){let O=Math.min(this.currentTime,p)/d,F=Math.floor(O),I=O%1;!I&&O>=1&&(I=1),I===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(v==="reverse"?(I=1-I,m&&(I-=m/d)):v==="mirror"&&(D=s)),w=Pt(0,1,I)*d}let E=x?{done:!1,value:l[0]}:D.next(w);u&&(E.value=u(E.value));let{done:S}=E;!x&&c!==null&&(S=this.speed>=0?this.currentTime>=p:this.currentTime<=0);let T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&o!==void 0&&(E.value=Xn(l,this.options,o)),y&&y(E.value),T&&this.finish(),E}get duration(){let{resolved:t}=this;return t?Gt(t.calculatedDuration):0}get time(){return Gt(this.currentTime)}set time(t){t=Ht(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=Av,onPlay:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),r&&r();let n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};a();a();a();var em=e=>Array.isArray(e)&&typeof e[0]=="number";function tm(e){return!!(!e||typeof e=="string"&&e in rm||em(e)||Array.isArray(e)&&e.every(tm))}var zs=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function MR(e){return nm(e)||rm.easeOut}function nm(e){if(e)return em(e)?zs(e):Array.isArray(e)?e.map(MR):rm[e]}function Ov(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:u,times:l}={}){let c={[t]:r};l&&(c.offset=l);let p=nm(u);return Array.isArray(p)&&(c.easing=p),e.animate(c,{delay:n,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}var IR=ql(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kR=new Set(["opacity","clipPath","filter","transform"]),sc=10,VR=2e4;function NR(e){return e.type==="spring"||e.name==="backgroundColor"||!tm(e.ease)}function LR(e,t){let r=new Lo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},o=[],i=0;for(;!n.done&&i<VR;)n=r.sample(i),o.push(n.value),i+=sc;return{times:void 0,keyframes:o,duration:i-sc,ease:"linear"}}var Hs=class extends na{constructor(t){super(t);let{name:r,motionValue:n,keyframes:o}=this.options;this.resolver=new ra(o,(i,s)=>this.onKeyframesResolved(i,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:i,ease:s,type:u,motionValue:l,name:c}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(NR(this.options)){let{onComplete:d,onUpdate:h,motionValue:g,...v}=this.options,m=LR(t,v);t=m.keyframes,t.length===1&&(t[1]=t[0]),o=m.duration,i=m.times,s=m.ease,u="keyframes"}let p=Ov(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:s});return p.startTime=nr.now(),this.pendingTimeline?(p.timeline=this.pendingTimeline,this.pendingTimeline=void 0):p.onfinish=()=>{let{onComplete:d}=this.options;l.set(Xn(t,this.options,r)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:o,times:i,type:u,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Gt(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Gt(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:n}=r;n.currentTime=Ht(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:r}=t;return r.playbackRate}set speed(t){let{resolved:r}=this;if(!r)return;let{animation:n}=r;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return Fe;let{animation:n}=r;n.timeline=t,n.onfinish=null}return Fe}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:n,duration:o,type:i,ease:s,times:u}=t;if(!(r.playState==="idle"||r.playState==="finished")){if(this.time){let{motionValue:l,onUpdate:c,onComplete:p,...d}=this.options,h=new Lo({...d,keyframes:n,duration:o,type:i,ease:s,times:u,isGenerator:!0}),g=Ht(this.time);l.setWithVelocity(h.sample(g-sc).value,h.sample(g).value,sc)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:r,name:n,repeatDelay:o,repeatType:i,damping:s,type:u}=t;return IR()&&n&&kR.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&u!=="inertia"}};a();a();function Fv(e,t){let r,n=()=>{let{currentTime:o}=t,s=(o===null?0:o.value)/100;r!==s&&e(s),r=s};return le.update(n,!0),()=>Ot(n)}a();var Bv=ql(()=>window.ScrollTimeline!==void 0);var uc=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t){let r=this.animations.map(n=>{if(Bv()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),Fv(o=>{n.time=n.duration*o},t)});return()=>{r.forEach((n,o)=>{n&&n(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var ia=(e,t,r,n={},o,i)=>s=>{let u=Qi(n,e)||{},l=u.delay||n.delay||0,{elapsed:c=0}=n;c=c-Ht(l);let p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:h=>{t.set(h),u.onUpdate&&u.onUpdate(h)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:i?void 0:o};W5(u)||(p={...p,..._5(e,p)}),p.duration&&(p.duration=Ht(p.duration)),p.repeatDelay&&(p.repeatDelay=Ht(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let d=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(d=!0)),(Hl.current||dn.skipAnimations)&&(d=!0,p.duration=0,p.delay=0),d&&!i&&t.get()!==void 0){let h=Xn(p.keyframes,u);if(h!==void 0)return le.update(()=>{p.onUpdate(h),p.onComplete()}),new uc([])}return!i&&Hs.supports(p)?new Hs(p):new Lo(p)};a();function zo(e){return!!(Re(e)&&e.add)}a();a();a();a();function aa(e,t){e.indexOf(t)===-1&&e.push(t)}function sa(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var eo=class{constructor(){this.subscriptions=[]}add(t){return aa(this.subscriptions,t),()=>sa(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var $v=30,zR=e=>!isNaN(parseFloat(e)),Rv={current:void 0},om=class{constructor(t,r={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{let i=nr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new eo);let n=this.events[t].add(r);return t==="change"?()=>{n(),le.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Rv.current&&Rv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$v)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,$v);return Xl(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function yn(e,t){return new om(e,t)}function HR(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,yn(r))}function Mv(e,t){let r=qn(e,t),{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(let s in i){let u=$5(i[s]);HR(e,s,u)}}a();function lc(e){return e.getProps()[hl]}function GR({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function cc(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t,c=e.getValue("willChange");n&&(s=n);let p=[],d=o&&e.animationState&&e.animationState.getState()[o];for(let h in l){let g=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),v=l[h];if(v===void 0||d&&GR(d,h))continue;let m={delay:r,elapsed:0,...Qi(s||{},h)},y=!1;if(window.HandoffAppearAnimations){let x=lc(e);if(x){let w=window.HandoffAppearAnimations(x,h,g,le);w!==null&&(m.elapsed=w,y=!0)}}g.start(ia(h,g,v,e.shouldReduceMotion&&Nt.has(h)?{type:!1}:m,e,y));let b=g.animation;b&&(zo(c)&&(c.add(h),b.then(()=>c.remove(h))),p.push(b))}return u&&Promise.all(p).then(()=>{le.update(()=>{u&&Mv(e,u)})}),p}a();function fc(e,t,r={}){var n;let o=qn(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let s=o?()=>Promise.all(cc(e,o,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:p=0,staggerChildren:d,staggerDirection:h}=i;return jR(e,t,p+c,d,h,r)}:()=>Promise.resolve(),{when:l}=i;if(l){let[c,p]=l==="beforeChildren"?[s,u]:[u,s];return c().then(()=>p())}else return Promise.all([s(),u(r.delay)])}function jR(e,t,r=0,n=0,o=1,i){let s=[],u=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>u-c*n;return Array.from(e.variantChildren).sort(_R).forEach((c,p)=>{c.notify("AnimationStart",t),s.push(fc(c,t,{...i,delay:r+l(p)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function _R(e,t){return e.sortNodePosition(t)}function Iv(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(i=>fc(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=fc(e,t,r);else{let o=typeof t=="function"?qn(e,t,r.custom):t;n=Promise.all(cc(e,o,r))}return n.then(()=>{le.postRender(()=>{e.notify("AnimationComplete",t)})})}var WR=[...Cl].reverse(),UR=Cl.length;function KR(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Iv(e,r,n)))}function kv(e){let t=KR(e),r=XR(),n=!0,o=l=>(c,p)=>{var d;let h=qn(e,p,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){let{transition:g,transitionEnd:v,...m}=h;c={...c,...m,...v}}return c};function i(l){t=l(e)}function s(l){let c=e.getProps(),p=e.getVariantContext(!0)||{},d=[],h=new Set,g={},v=1/0;for(let y=0;y<UR;y++){let b=WR[y],x=r[b],w=c[b]!==void 0?c[b]:p[b],D=hn(w),E=b===l?x.isActive:null;E===!1&&(v=y);let S=w===p[b]&&w!==c[b]&&D;if(S&&n&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...g},!x.isActive&&E===null||!w&&!x.prevProp||_n(w)||typeof w=="boolean")continue;let O=qR(x.prevProp,w)||b===l&&x.isActive&&!S&&D||y>v&&D,F=!1,I=Array.isArray(w)?w:[w],G=I.reduce(o(b),{});E===!1&&(G={});let{prevResolvedValues:k={}}=x,H={...k,...G},V=M=>{O=!0,h.has(M)&&(F=!0,h.delete(M)),x.needsAnimating[M]=!0;let Z=e.getValue(M);Z&&(Z.liveStyle=!1)};for(let M in H){let Z=G[M],re=k[M];if(g.hasOwnProperty(M))continue;let se=!1;Is(Z)&&Is(re)?se=!N1(Z,re):se=Z!==re,se?Z!=null?V(M):h.add(M):Z!==void 0&&h.has(M)?V(M):x.protectedKeys[M]=!0}x.prevProp=w,x.prevResolvedValues=G,x.isActive&&(g={...g,...G}),n&&e.blockInitialAnimation&&(O=!1),O&&(!S||F)&&d.push(...I.map(M=>({animation:M,options:{type:b}})))}if(h.size){let y={};h.forEach(b=>{let x=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),y[b]=x??null}),d.push({animation:y})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function u(l,c){var p;if(r[l].isActive===c)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;let d=s(l);for(let h in r)r[h].protectedKeys={};return d}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>r}}function qR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!N1(t,e):!1}function Ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XR(){return{animate:Ho(!0),whileInView:Ho(),whileHover:Ho(),whileTap:Ho(),whileDrag:Ho(),whileFocus:Ho(),exit:Ho()}}var pc=class extends ft{constructor(t){super(t),t.animationState||(t.animationState=kv(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),_n(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}};a();var YR=0,dc=class extends ft{constructor(){super(...arguments),this.id=YR++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>r(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var Vv={animation:{Feature:pc},exit:{Feature:dc}};a();a();a();a();a();var Nv=(e,t)=>Math.abs(e-t);function Lv(e,t){let r=Nv(e.x,t.x),n=Nv(e.y,t.y);return Math.sqrt(r**2+n**2)}var ua=class{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let d=am(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=Lv(d.offset,{x:0,y:0})>=3;if(!h&&!g)return;let{point:v}=d,{timestamp:m}=qe;this.history.push({...v,timestamp:m});let{onStart:y,onMove:b}=this.handlers;h||(y&&y(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=im(h,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=am(d.type==="pointercancel"?this.lastMoveEventInfo:im(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,y),v&&v(d,y)},!Il(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;let s=Io(t),u=im(s,this.transformPagePoint),{point:l}=u,{timestamp:c}=qe;this.history=[{...l,timestamp:c}];let{onSessionStart:p}=r;p&&p(t,am(u,this.history)),this.removeListeners=wt(zt(this.contextWindow,"pointermove",this.handlePointerMove),zt(this.contextWindow,"pointerup",this.handlePointerUp),zt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}};function im(e,t){return t?{point:t(e.point)}:e}function zv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function am({point:e},t){return{point:e,delta:zv(e,Hv(t)),offset:zv(e,JR(t)),velocity:ZR(t,.1)}}function JR(e){return e[0]}function Hv(e){return e[e.length-1]}function ZR(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=Hv(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Ht(t)));)r--;if(!n)return{x:0,y:0};let i=Gt(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};let s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}a();a();function vt(e){return e.max-e.min}function mc(e,t=0,r=.01){return Math.abs(e-t)<=r}function Gv(e,t,r,n=.5){e.origin=n,e.originPoint=xe(t.min,t.max,e.origin),e.scale=vt(r)/vt(t),(mc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=xe(r.min,r.max,e.origin)-e.originPoint,(mc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function la(e,t,r,n){Gv(e.x,t.x,r.x,n?n.originX:void 0),Gv(e.y,t.y,r.y,n?n.originY:void 0)}function jv(e,t,r){e.min=r.min+t.min,e.max=e.min+vt(t)}function Wv(e,t,r){jv(e.x,t.x,r.x),jv(e.y,t.y,r.y)}function _v(e,t,r){e.min=t.min-r.min,e.max=e.min+vt(t)}function ca(e,t,r){_v(e.x,t.x,r.x),_v(e.y,t.y,r.y)}function Yv(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?xe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?xe(r,e,n.max):Math.min(e,r)),e}function Uv(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Jv(e,{top:t,left:r,bottom:n,right:o}){return{x:Uv(e.x,r,o),y:Uv(e.y,t,n)}}function Kv(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Zv(e,t){return{x:Kv(e.x,t.x),y:Kv(e.y,t.y)}}function Qv(e,t){let r=.5,n=vt(e),o=vt(t);return o>n?r=vn(t.min,t.max-n,e.min):n>o&&(r=vn(e.min,e.max-o,t.min)),Pt(0,1,r)}function e7(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var hc=.35;function t7(e=hc){return e===!1?e=0:e===!0&&(e=hc),{x:qv(e,"left","right"),y:qv(e,"top","bottom")}}function qv(e,t,r){return{min:Xv(e,t),max:Xv(e,r)}}function Xv(e,t){return typeof e=="number"?e:e[t]||0}a();var r7=()=>({translate:0,scale:1,origin:0,originPoint:0}),Go=()=>({x:r7(),y:r7()}),n7=()=>({min:0,max:0}),Ne=()=>({x:n7(),y:n7()});a();function jt(e){return[e("x"),e("y")]}a();a();function gc({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function o7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function i7(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}a();a();function sm(e){return e===void 0||e===1}function vc({scale:e,scaleX:t,scaleY:r}){return!sm(e)||!sm(t)||!sm(r)}function bn(e){return vc(e)||um(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function um(e){return a7(e.x)||a7(e.y)}function a7(e){return e&&e!=="0%"}function Gs(e,t,r){let n=e-r,o=t*n;return r+o}function s7(e,t,r,n,o){return o!==void 0&&(e=Gs(e,o,n)),Gs(e,r,n)+t}function lm(e,t=0,r=1,n,o){e.min=s7(e.min,t,r,n,o),e.max=s7(e.max,t,r,n,o)}function cm(e,{x:t,y:r}){lm(e.x,t.translate,t.scale,t.originPoint),lm(e.y,r.translate,r.scale,r.originPoint)}function c7(e,t,r,n=!1){let o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let u=0;u<o;u++){i=r[u],s=i.projectionDelta;let l=i.instance;l&&l.style&&l.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&jo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,cm(e,s)),n&&bn(i.latestValues)&&jo(e,i.latestValues))}t.x=u7(t.x),t.y=u7(t.y)}function u7(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Lr(e,t){e.min=e.min+t,e.max=e.max+t}function l7(e,t,[r,n,o]){let i=t[o]!==void 0?t[o]:.5,s=xe(e.min,e.max,i);lm(e,t[r],t[n],s,t.scale)}var QR=["x","scaleX","originX"],eM=["y","scaleY","originY"];function jo(e,t){l7(e.x,t,QR),l7(e.y,t,eM)}function fm(e,t){return gc(i7(e.getBoundingClientRect(),t))}function f7(e,t,r){let n=fm(e,r),{scroll:o}=t;return o&&(Lr(n.x,o.offset.x),Lr(n.y,o.offset.y)),n}a();var yc=({current:e})=>e?e.ownerDocument.defaultView:null;var tM=new WeakMap,Cc=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ne(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let o=p=>{let{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Io(p,"page").point)},i=(p,d)=>{let{drag:h,dragPropagation:g,onDragStart:v}=this.getProps();if(h&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=R1(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jt(y=>{let b=this.getAxisMotionValue(y).get()||0;if(At.test(b)){let{projection:x}=this.visualElement;if(x&&x.layout){let w=x.layout.layoutBox[y];w&&(b=vt(w)*(parseFloat(b)/100))}}this.originPoint[y]=b}),v&&le.postRender(()=>v(p,d));let{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(p,d)=>{let{dragPropagation:h,dragDirectionLock:g,onDirectionLock:v,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;let{offset:y}=d;if(g&&this.currentDirection===null){this.currentDirection=rM(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),m&&m(p,d)},u=(p,d)=>this.stop(p,d),l=()=>jt(p=>{var d;return this.getAnimationState(p)==="paused"&&((d=this.getAxisMotionValue(p).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ua(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:yc(this.visualElement)})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&le.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){let{drag:o}=this.getProps();if(!n||!bc(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=Yv(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&mn(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Jv(o.layoutBox,r):this.constraints=!1,this.elastic=t7(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&jt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=e7(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!mn(t))return!1;let n=t.current;Dr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=f7(n,o.root,this.visualElement.getTransformPagePoint()),s=Zv(o.layout.layoutBox,i);if(r){let u=r(o7(s));this.hasMutatedConstraints=!!u,u&&(s=gc(u))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},c=jt(p=>{if(!bc(p,r,this.currentDirection))return;let d=l&&l[p]||{};s&&(d={min:0,max:0});let h=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:n?t[p]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(p,v)});return Promise.all(c).then(u)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(ia(t,n,0,r,this.visualElement))}stopAnimation(){jt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jt(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){jt(r=>{let{drag:n}=this.getProps();if(!bc(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){let{min:s,max:u}=o.layout.layoutBox[r];i.set(t[r]-xe(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!mn(r)||!n||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};jt(s=>{let u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){let l=u.get();o[s]=Qv({min:l,max:l},this.constraints[s])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),jt(s=>{if(!bc(s,t,null))return;let u=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];u.set(xe(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;tM.set(this.visualElement,this);let t=this.visualElement.current,r=zt(t,"pointerdown",l=>{let{drag:c,dragListener:p=!0}=this.getProps();c&&p&&this.start(l)}),n=()=>{let{dragConstraints:l}=this.getProps();mn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();let s=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(jt(p=>{let d=this.getAxisMotionValue(p);d&&(this.originPoint[p]+=l[p].translate,d.set(d.get()+l[p].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),u&&u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=hc,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}};function bc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function rM(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var xc=class extends ft{constructor(t){super(t),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new Cc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}unmount(){this.removeGroupControls(),this.removeListeners()}};a();var p7=e=>(t,r)=>{e&&le.postRender(()=>e(t,r))},wc=class extends ft{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(t){this.session=new ua(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yc(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:p7(t),onStart:p7(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=zt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};a();import{jsx as aM}from"react/jsx-runtime";import{useContext as g7,Component as sM}from"react";a();import{useContext as nM,useId as oM,useEffect as iM}from"react";function d7(){let e=nM(jn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=oM();return iM(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}a();var fa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};a();function m7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;let r=m7(e,t.target.x),n=m7(e,t.target.y);return`${r}% ${n}%`}};a();var h7={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=Ft.parse(e);if(o.length>5)return n;let i=Ft.createTransformer(e),s=typeof o[0]!="number"?1:0,u=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=u,o[1+s]/=l;let c=xe(u,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};var pm=class extends sM{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;c5(uM),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),fa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||le.postRender(()=>{let u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),zi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Dc(e){let[t,r]=d7(),n=g7(Hi);return aM(pm,{...e,layoutGroup:n,switchLayoutGroup:g7(wl),isPresent:t,safeToRemove:r})}var uM={borderRadius:{...pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pa,borderTopRightRadius:pa,borderBottomLeftRadius:pa,borderBottomRightRadius:pa,boxShadow:h7};a();a();a();var C7=["TopLeft","TopRight","BottomLeft","BottomRight"],lM=C7.length,v7=e=>typeof e=="string"?parseFloat(e):e,y7=e=>typeof e=="number"||oe.test(e);function x7(e,t,r,n,o,i){o?(e.opacity=xe(0,r.opacity!==void 0?r.opacity:1,cM(n)),e.opacityExit=xe(t.opacity!==void 0?t.opacity:1,0,fM(n))):i&&(e.opacity=xe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<lM;s++){let u=`border${C7[s]}Radius`,l=b7(t,u),c=b7(r,u);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||y7(l)===y7(c)?(e[u]=Math.max(xe(v7(l),v7(c),n),0),(At.test(c)||At.test(l))&&(e[u]+="%")):e[u]=c}(t.rotate||r.rotate)&&(e.rotate=xe(t.rotate||0,r.rotate||0,n))}function b7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var cM=w7(0,.5,nc),fM=w7(.5,.95,Fe);function w7(e,t,r){return n=>n<e?0:n>t?1:r(vn(e,t,n))}a();function D7(e,t){e.min=t.min,e.max=t.max}function or(e,t){D7(e.x,t.x),D7(e.y,t.y)}a();function S7(e,t,r,n,o){return e-=t,e=Gs(e,1/r,n),o!==void 0&&(e=Gs(e,1/o,n)),e}function pM(e,t=0,r=1,n=.5,o,i=e,s=e){if(At.test(t)&&(t=parseFloat(t),t=xe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=xe(i.min,i.max,n);e===i&&(u-=t),e.min=S7(e.min,t,r,u,o),e.max=S7(e.max,t,r,u,o)}function E7(e,t,[r,n,o],i,s){pM(e,t[r],t[n],t[o],t.scale,i,s)}var dM=["x","scaleX","originX"],mM=["y","scaleY","originY"];function dm(e,t,r,n){E7(e.x,t,dM,r?r.x:void 0,n?n.x:void 0),E7(e.y,t,mM,r?r.y:void 0,n?n.y:void 0)}a();function T7(e){return e.translate===0&&e.scale===1}function mm(e){return T7(e.x)&&T7(e.y)}function P7(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function hm(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function gm(e){return vt(e.x)/vt(e.y)}a();var Sc=class{constructor(){this.members=[]}add(t){aa(this.members,t),t.scheduleRender()}remove(t){if(sa(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};a();function vm(e,t,r){let n="",o=e.x.translate/t.x,i=e.y.translate/t.y,s=r?.z||0;if((o||i||s)&&(n=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:c,rotate:p,rotateX:d,rotateY:h,skewX:g,skewY:v}=r;c&&(n=`perspective(${c}px) ${n}`),p&&(n+=`rotate(${p}deg) `),d&&(n+=`rotateX(${d}deg) `),h&&(n+=`rotateY(${h}deg) `),g&&(n+=`skewX(${g}deg) `),v&&(n+=`skewY(${v}deg) `)}let u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(n+=`scale(${u}, ${l})`),n||"none"}a();a();var A7=(e,t)=>e.depth-t.depth;var Ec=class{constructor(){this.children=[],this.isDirty=!1}add(t){aa(this.children,t),this.isDirty=!0}remove(t){sa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(A7),this.isDirty=!1,this.children.forEach(t)}};a();function O7(e,t){let r=nr.now(),n=({timestamp:o})=>{let i=o-r;i>=t&&(Ot(n),e(i-t))};return le.read(n,!0),()=>Ot(n)}a();function F7(e){window.MotionDebug&&window.MotionDebug.record(e)}a();function B7(e){return e instanceof SVGElement&&e.tagName!=="svg"}a();function $7(e,t,r){let n=Re(e)?e:yn(e);return n.start(ia("",n,t,r)),n.animation}var ym=["","X","Y","Z"],hM={visibility:"hidden"},R7=1e3,gM=0,_o={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function bm(e,t,r,n){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function H7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:t}=e.options;return t?lc(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?H7(e.parent):!1:!1}function Tc({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},u=t?.()){this.id=gM++,this.animationId=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.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,_o.totalNodes=_o.resolvedTargetDeltas=_o.recalculatedProjection=0,this.nodes.forEach(bM),this.nodes.forEach(SM),this.nodes.forEach(EM),this.nodes.forEach(CM),F7(_o)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ec)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new eo),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){let l=this.eventHandlers.get(s);l&&l.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=B7(s),this.instance=s;let{layoutId:l,layout:c,visualElement:p}=this.options;if(p&&!p.current&&p.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(c||l)&&(this.isLayoutDirty=!0),e){let d,h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=O7(h,250),fa.hasAnimatedSinceResize&&(fa.hasAnimatedSinceResize=!1,this.nodes.forEach(I7))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&p&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let m=this.options.transition||p.getDefaultTransition()||FM,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=p.getProps(),x=!this.targetLayout||!hm(this.targetLayout,v)||g,w=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);let D={...Qi(m,"layout"),onPlay:y,onComplete:b};(p.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else h||I7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ot(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(TM),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&H7(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){let d=this.path[p];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(M7);return}this.isUpdating||this.nodes.forEach(wM),this.isUpdating=!1,this.nodes.forEach(DM),this.nodes.forEach(vM),this.nodes.forEach(yM),this.clearAllSnapshots();let u=nr.now();qe.delta=Pt(0,1e3/60,u-qe.timestamp),qe.timestamp=u,qe.isProcessing=!0,Ml.update.process(qe),Ml.preRender.process(qe),Ml.render.process(qe),qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zi.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(xM),this.sharedNodes.forEach(PM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!mm(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,p=c!==this.prevTransformTemplateValue;s&&(u||bn(this.latestValues)||p)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let u=this.measurePageBox(),l=this.removeElementScroll(u);return s&&(l=this.removeTransform(l)),BM(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Ne();let u=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Lr(u.x,l.offset.x),Lr(u.y,l.offset.y)),u}removeElementScroll(s){let u=Ne();or(u,s);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:p,options:d}=c;if(c!==this.root&&p&&d.layoutScroll){if(p.isRoot){or(u,s);let{scroll:h}=this.root;h&&(Lr(u.x,-h.offset.x),Lr(u.y,-h.offset.y))}Lr(u.x,p.offset.x),Lr(u.y,p.offset.y)}}return u}applyTransform(s,u=!1){let l=Ne();or(l,s);for(let c=0;c<this.path.length;c++){let p=this.path[c];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&jo(l,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),bn(p.latestValues)&&jo(l,p.latestValues)}return bn(this.latestValues)&&jo(l,this.latestValues),l}removeTransform(s){let u=Ne();or(u,s);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!bn(c.latestValues))continue;vc(c.latestValues)&&c.updateSnapshot();let p=Ne(),d=c.measurePageBox();or(p,d),dm(u,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,p)}return bn(this.latestValues)&&dm(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget))return;let{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=qe.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),ca(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ne(),this.targetWithTransforms=Ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):or(this.target,this.layout.layoutBox),cm(this.target,this.targetDelta)):or(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),ca(this.relativeTargetOrigin,this.target,g.target),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_o.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vc(this.parent.latestValues)||um(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let u=this.getLead(),l=!!this.resumingFrom||this!==u,c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===qe.timestamp&&(c=!1),c)return;let{layout:p,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||d))return;or(this.layoutCorrected,this.layout.layoutBox);let h=this.treeScale.x,g=this.treeScale.y;c7(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Ne());let{target:v}=u;if(!v){this.projectionTransform&&(this.projectionDelta=Go(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Go(),this.projectionDeltaWithTransform=Go());let m=this.projectionTransform;la(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=vm(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==h||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),_o.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){let u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,u=!1){let l=this.snapshot,c=l?l.latestValues:{},p={...this.latestValues},d=Go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;let h=Ne(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,m=g!==v,y=this.getStack(),b=!y||y.members.length<=1,x=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(OM));this.animationProgress=0;let w;this.mixTargetDelta=D=>{let E=D/1e3;k7(d.x,s.x,E),k7(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ca(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),AM(this.relativeTarget,this.relativeTargetOrigin,h,E),w&&P7(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ne()),or(w,this.relativeTarget)),m&&(this.animationValues=p,x7(p,c,this.latestValues,E,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{fa.hasAnimatedSinceResize=!0,this.currentAnimation=$7(0,R7,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(R7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:u,target:l,layout:c,latestValues:p}=s;if(!(!u||!l||!c)){if(this!==s&&this.layout&&c&&G7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ne();let d=vt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;let h=vt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}or(u,l),jo(u,p),la(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Sc),this.sharedNodes.get(s).add(u);let c=u.options.initialPromotionConfig;u.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(u):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let u=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;let c={};l.z&&bm("z",s,c,this.animationValues);for(let p=0;p<ym.length;p++)bm(`rotate${ym[p]}`,s,c,this.animationValues),bm(`skew${ym[p]}`,s,c,this.animationValues);s.render();for(let p in c)s.setStaticValue(p,c[p]),this.animationValues&&(this.animationValues[p]=c[p]);s.scheduleRender()}getProjectionStyles(s){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hM;let c={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Zi(s?.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none",c;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Zi(s?.pointerEvents)||""),this.hasProjected&&!bn(this.latestValues)&&(m.transform=p?p({},""):"none",this.hasProjected=!1),m}let h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=vm(this.projectionDeltaWithTransform,this.treeScale,h),p&&(c.transform=p(h,c.transform));let{x:g,y:v}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(u=h.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(let m in ji){if(h[m]===void 0)continue;let{correct:y,applyTo:b}=ji[m],x=c.transform==="none"?h[m]:y(h[m],d);if(b){let w=b.length;for(let D=0;D<w;D++)c[b[D]]=x}else c[m]=x}return this.options.layoutId&&(c.pointerEvents=d===this?Zi(s?.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(M7),this.root.sharedNodes.clear()}}}function vM(e){e.updateLayout()}function yM(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?jt(d=>{let h=s?r.measuredBox[d]:r.layoutBox[d],g=vt(h);h.min=n[d].min,h.max=h.min+g}):G7(i,r.layoutBox,n)&&jt(d=>{let h=s?r.measuredBox[d]:r.layoutBox[d],g=vt(n[d]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});let u=Go();la(u,n,r.layoutBox);let l=Go();s?la(l,e.applyTransform(o,!0),r.measuredBox):la(l,n,r.layoutBox);let c=!mm(u),p=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:h,layout:g}=d;if(h&&g){let v=Ne();ca(v,r.layoutBox,h.layoutBox);let m=Ne();ca(m,n,g.layoutBox),hm(v,m)||(p=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:u,hasLayoutChanged:c,hasRelativeTargetChanged:p})}else if(e.isLead()){let{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function bM(e){_o.totalNodes++,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 CM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xM(e){e.clearSnapshot()}function M7(e){e.clearMeasurements()}function wM(e){e.isLayoutDirty=!1}function DM(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function I7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SM(e){e.resolveTargetDelta()}function EM(e){e.calcProjection()}function TM(e){e.resetSkewAndRotation()}function PM(e){e.removeLeadSnapshot()}function k7(e,t,r){e.translate=xe(t.translate,0,r),e.scale=xe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function V7(e,t,r,n){e.min=xe(t.min,r.min,n),e.max=xe(t.max,r.max,n)}function AM(e,t,r,n){V7(e.x,t.x,r.x,n),V7(e.y,t.y,r.y,n)}function OM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var FM={duration:.45,ease:[.4,0,.1,1]},N7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),L7=N7("applewebkit/")&&!N7("chrome/")?Math.round:Fe;function z7(e){e.min=L7(e.min),e.max=L7(e.max)}function BM(e){z7(e.x),z7(e.y)}function G7(e,t,r){return e==="position"||e==="preserve-aspect"&&!mc(gm(t),gm(r),.2)}a();var j7=Tc({attachResizeListener:(e,t)=>Lt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Cm={current:void 0},Pc=Tc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cm.current){let e=new j7({});e.mount(window),e.setOptions({layoutScroll:!0}),Cm.current=e}return Cm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var _7={pan:{Feature:wc},drag:{Feature:xc,ProjectionNode:Pc,MeasureLayout:Dc}};a();import{Fragment as kM}from"react";a();a();a();a();a();var js={current:null},Ac={current:!1};function W7(){if(Ac.current=!0,!!Vi)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>js.current=e.matches;e.addListener(t),t()}else js.current=!1}a();function U7(e,t,r){let{willChange:n}=t;for(let o in t){let i=t[o],s=r[o];if(Re(i))e.addValue(o,i),zo(n)&&n.add(o);else if(Re(s))e.addValue(o,yn(i,{owner:e})),zo(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){let u=e.getValue(o);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{let u=e.getStaticValue(o);e.addValue(o,yn(u!==void 0?u:i,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}a();var xm=new WeakMap;a();var $M=[...H1,Je,Ft],K7=e=>$M.find(Wl(e));var X7=Object.keys(Mo),RM=X7.length,q7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],MM=Bs.length;function Y7(e){if(e)return e.options.allowProjection!==!1?e.projection:Y7(e.parent)}var Oc=class{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},u={}){this.resolveKeyframes=(h,g,v,m)=>new this.KeyframeResolver(h,g,v,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>le.render(this.render,!1,!0);let{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!i,this.isControllingVariants=Ro(r),this.isVariantNode=xl(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:p,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(let h in d){let g=d[h];l[h]!==void 0&&Re(g)&&(g.set(l[h],!1),zo(p)&&p.add(h))}}mount(t){this.current=t,xm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Ac.current||W7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:js.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;xm.delete(this.current),this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(r=>r()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let r in this.events)this.events[r].clear();for(let r in this.features)(t=this.features[r])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,r){let n=Nt.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&le.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let s,u;for(let l=0;l<RM;l++){let c=X7[l],{isEnabled:p,Feature:d,ProjectionNode:h,MeasureLayout:g}=Mo[c];h&&(s=h),p(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),g&&(u=g))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){let{layoutId:l,layout:c,drag:p,dragConstraints:d,layoutScroll:h,layoutRoot:g}=r;this.projection=new s(this.latestValues,r["data-framer-portal-id"]?void 0:Y7(this.parent)),this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!p||d&&mn(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:g})}return u}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<q7.length;n++){let o=q7[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=U7(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}let r={};for(let n=0;n<MM;n++){let o=Bs[n],i=this.props[o];(hn(i)||i===!1)&&(r[o]=i)}return r}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=yn(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_l(o)||jl(o))?o=parseFloat(o):!K7(o)&&Ft.test(r)&&(o=Kl(t,r)),this.setBaseTarget(t,Re(o)?o.get():o)),Re(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,o;if(typeof n=="string"||typeof n=="object"){let s=Ji(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(o=s[t])}if(n&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Re(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new eo),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var da=class extends Oc{constructor(){super(...arguments),this.KeyframeResolver=ra}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}};function IM(e){return window.getComputedStyle(e)}var Fc=class extends da{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(Nt.has(r)){let n=ta(r);return n&&n.default||0}else{let n=IM(t),o=(El(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return fm(t,r)}build(t,r,n,o){Ui(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Yi(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Re(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Al(t,r,n,o)}};a();var Bc=class extends da{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Nt.has(r)){let n=ta(r);return n&&n.default||0}return r=Ol.has(r)?r:Li(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ne()}scrapeMotionValuesFromProps(t,r,n){return Bl(t,r,n)}build(t,r,n,o){qi(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Fl(t,r,n,o)}mount(t){this.isSVGTag=Xi(t.tagName),super.mount(t)}};var J7=(e,t)=>Gi(e)?new Bc(t,{enableHardwareAcceleration:!1}):new Fc(t,{allowProjection:e!==kM,enableHardwareAcceleration:!0});a();var Z7={layout:{ProjectionNode:Pc,MeasureLayout:Dc}};var VM={...Vv,...j5,..._7,...Z7},_s=u5((e,t)=>k5(e,t,VM,J7));a();import{jsx as Ws,Fragment as s4}from"react/jsx-runtime";import{useContext as KM,useRef as Ic,cloneElement as qM,Children as XM,isValidElement as YM}from"react";a();import{useState as LM,useCallback as Q7}from"react";a();import{useRef as NM}from"react";function $c(){let e=NM(!1);return Ni(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function e4(){let e=$c(),[t,r]=LM(0),n=Q7(()=>{e.current&&r(t+1)},[t]);return[Q7(()=>le.postRender(n),[n]),t]}a();import{jsx as n4}from"react/jsx-runtime";import*as i4 from"react";import{useId as _M,useMemo as o4}from"react";a();import{jsx as zM}from"react/jsx-runtime";import*as Rc from"react";import{useId as HM,useRef as t4,useContext as GM,useInsertionEffect as jM}from"react";var wm=class extends Rc.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function r4({children:e,isPresent:t}){let r=HM(),n=t4(null),o=t4({width:0,height:0,top:0,left:0}),{nonce:i}=GM(ki);return jM(()=>{let{width:s,height:u,top:l,left:c}=o.current;if(t||!n.current||!s||!u)return;n.current.dataset.motionPopId=r;let p=document.createElement("style");return i&&(p.nonce=i),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
100
|
+
`},ll=Object.keys(h1),Ir=(e=void 0)=>$(e)?h1[e]:h1.defaultDarkOne;a();var MF=31,pse=e=>{let t=null;if(typeof e=="string"&&e)t=Array.from(e).reduce((n,o)=>Math.imul(MF,n)+o.charCodeAt(0)||0,0);else return ll[0];let r=Math.abs(t)%ll.length;return ll[r]};a();a();a();a();function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}a();function g1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a();a();function cn(e,t){return cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},cn(e,t)}function xs(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cn(e,t)}a();a();function ws(e){return ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ws(e)}a();function v1(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}a();a();function cl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cl=function(){return!!e})()}function y1(e,t,r){if(cl())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&cn(o,r.prototype),o}function Ds(e){var t=typeof Map=="function"?new Map:void 0;return Ds=function(n){if(n===null||!v1(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return y1(n,arguments,ws(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),cn(o,n)},Ds(e)}a();var kt=function(e){xs(t,e);function t(r){var n;if(1)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+r+" for more information.")||this;else for(var o,i,s;s<o;s++);return g1(n)}return t}(Ds(Error));function b3(e,t){return e.substr(-t.length)===t}var IF=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function C3(e){if(typeof e!="string")return e;var t=e.match(IF);return t?parseFloat(e):e}var kF=function(t){return function(r,n){n===void 0&&(n="16px");var o=r,i=n;if(typeof r=="string"){if(!b3(r,"px"))throw new kt(69,t,r);o=C3(r)}if(typeof n=="string"){if(!b3(n,"px"))throw new kt(70,t,n);i=C3(n)}if(typeof o=="string")throw new kt(71,r,t);if(typeof i=="string")throw new kt(72,n,t);return""+o/i+t}},w3=kF,qse=w3("em");var VF=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function D3(e){if(typeof e!="string")return[e,""];var t=e.match(VF);return t?[parseFloat(e),t[2]]:[e,void 0]}var Xse=w3("rem");function b1(e){return Math.round(e*255)}function NF(e,t,r){return b1(e)+","+b1(t)+","+b1(r)}function Ss(e,t,r,n){if(n===void 0&&(n=NF),t===0)return n(r,r,r);var o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,s=i*(1-Math.abs(o%2-1)),u=0,l=0,c=0;o>=0&&o<1?(u=i,l=s):o>=1&&o<2?(u=s,l=i):o>=2&&o<3?(l=i,c=s):o>=3&&o<4?(l=s,c=i):o>=4&&o<5?(u=s,c=i):o>=5&&o<6&&(u=i,c=s);var p=r-i/2,d=u+p,h=l+p,g=c+p;return n(d,h,g)}var x3={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function LF(e){if(typeof e!="string")return e;var t=e.toLowerCase();return x3[t]?"#"+x3[t]:e}var zF=/^#[a-fA-F0-9]{6}$/,HF=/^#[a-fA-F0-9]{8}$/,GF=/^#[a-fA-F0-9]{3}$/,jF=/^#[a-fA-F0-9]{4}$/,C1=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,_F=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,WF=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,UF=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function $i(e){if(typeof e!="string")throw new kt(3);var t=LF(e);if(t.match(zF))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(HF)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(GF))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(jF)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=C1.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=_F.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=WF.exec(t);if(s){var u=parseInt(""+s[1],10),l=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+Ss(u,l,c)+")",d=C1.exec(p);if(!d)throw new kt(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var h=UF.exec(t.substring(0,50));if(h){var g=parseInt(""+h[1],10),v=parseInt(""+h[2],10)/100,m=parseInt(""+h[3],10)/100,y="rgb("+Ss(g,v,m)+")",b=C1.exec(y);if(!b)throw new kt(4,t,y);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+h[4])>1?parseFloat(""+h[4])/100:parseFloat(""+h[4])}}throw new kt(5)}function KF(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),i=Math.min(t,r,n),s=(o+i)/2;if(o===i)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,l=o-i,c=s>.5?l/(2-o-i):l/(o+i);switch(o){case t:u=(r-n)/l+(r<n?6:0);break;case r:u=(n-t)/l+2;break;default:u=(t-r)/l+4;break}return u*=60,e.alpha!==void 0?{hue:u,saturation:c,lightness:s,alpha:e.alpha}:{hue:u,saturation:c,lightness:s}}function Ln(e){return KF($i(e))}var qF=function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},w1=qF;function $o(e){var t=e.toString(16);return t.length===1?"0"+t:t}function x1(e){return $o(Math.round(e*255))}function XF(e,t,r){return w1("#"+x1(e)+x1(t)+x1(r))}function fl(e,t,r){return Ss(e,t,r,XF)}function YF(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return fl(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return fl(e.hue,e.saturation,e.lightness);throw new kt(1)}function JF(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?fl(e,t,r):"rgba("+Ss(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?fl(e.hue,e.saturation,e.lightness):"rgba("+Ss(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new kt(2)}function D1(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return w1("#"+$o(e)+$o(t)+$o(r));if(typeof e=="object"&&t===void 0&&r===void 0)return w1("#"+$o(e.red)+$o(e.green)+$o(e.blue));throw new kt(6)}function pl(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=$i(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?D1(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?D1(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new kt(7)}var ZF=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},QF=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},eB=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},tB=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function zn(e){if(typeof e!="object")throw new kt(8);if(QF(e))return pl(e);if(ZF(e))return D1(e);if(tB(e))return JF(e);if(eB(e))return YF(e);throw new kt(8)}function S3(e,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):S3(e,t,o)}}function tr(e){return S3(e,e.length,[])}function rB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{hue:r.hue+parseFloat(e)}))}var Yse=tr(rB);function Ri(e,t,r){return Math.max(e,Math.min(t,r))}function nB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{lightness:Ri(0,1,r.lightness-parseFloat(e))}))}var oB=tr(nB),ct=oB;function iB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{saturation:Ri(0,1,r.saturation-parseFloat(e))}))}var Jse=tr(iB);function aB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{lightness:Ri(0,1,r.lightness+parseFloat(e))}))}var Zse=tr(aB);function sB(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=$i(t),o=te({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),i=$i(r),s=te({},i,{alpha:typeof i.alpha=="number"?i.alpha:1}),u=o.alpha-s.alpha,l=parseFloat(e)*2-1,c=l*u===-1?l:l+u,p=1+l*u,d=(c/p+1)/2,h=1-d,g={red:Math.floor(o.red*d+s.red*h),green:Math.floor(o.green*d+s.green*h),blue:Math.floor(o.blue*d+s.blue*h),alpha:o.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return pl(g)}var uB=tr(sB),E3=uB;function lB(e,t){if(t==="transparent")return t;var r=$i(t),n=typeof r.alpha=="number"?r.alpha:1,o=te({},r,{alpha:Ri(0,1,(n*100+parseFloat(e)*100)/100)});return pl(o)}var Qse=tr(lB);function cB(e,t){if(t==="transparent")return t;var r=Ln(t);return zn(te({},r,{saturation:Ri(0,1,r.saturation+parseFloat(e))}))}var eue=tr(cB);function fB(e,t){return t==="transparent"?t:zn(te({},Ln(t),{hue:parseFloat(e)}))}var tue=tr(fB);function pB(e,t){return t==="transparent"?t:zn(te({},Ln(t),{lightness:parseFloat(e)}))}var rue=tr(pB);function dB(e,t){return t==="transparent"?t:zn(te({},Ln(t),{saturation:parseFloat(e)}))}var nue=tr(dB);function mB(e,t){return t==="transparent"?t:E3(parseFloat(e),"rgb(0, 0, 0)",t)}var oue=tr(mB);function hB(e,t){return t==="transparent"?t:E3(parseFloat(e),"rgb(255, 255, 255)",t)}var iue=tr(hB);function gB(e,t){if(t==="transparent")return t;var r=$i(t),n=typeof r.alpha=="number"?r.alpha:1,o=te({},r,{alpha:Ri(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return pl(o)}var vB=tr(gB),Vt=vB;var Es=e=>{let[r,n]=D3(e);return`@media (max-width: ${Math.max(r-.0025,0)}${n})`},yB=({theme:e})=>`@media (min-width: ${e.breakpoint.xs})`,bB=({theme:e})=>`@media (min-width: ${e.breakpoint.sm})`,CB=({theme:e})=>`@media (min-width: ${e.breakpoint.md})`,xB=({theme:e})=>`@media (min-width: ${e.breakpoint.lg})`,wB=({theme:e})=>`@media (min-width: ${e.breakpoint.xl})`,DB=({theme:e})=>Es(e.breakpoint.xs),SB=({theme:e})=>Es(e.breakpoint.sm),EB=({theme:e})=>Es(e.breakpoint.md),TB=({theme:e})=>Es(e.breakpoint.lg),PB=({theme:e})=>Es(e.breakpoint.xl),Ve={xsAndUp:yB,smAndUp:bB,mdAndUp:CB,lgAndUp:xB,xlAndUp:wB,xsAndDown:DB,smAndDown:SB,mdAndDown:EB,lgAndDown:TB,xlAndDown:PB};a();a();var fn=e=>e!=null&&(Object.getPrototypeOf(e)===null||e.constructor===Object);a();var S1=e=>(Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&(typeof e!="function"||t!=="caller"&&t!=="callee"&&t!=="arguments")&&e[t]!==null&&(typeof e[t]=="object"||typeof e[t]=="function")&&!Object.isFrozen(e[t])&&S1(e[t])}),e);a();var Ts=(e,...t)=>{if(!t.length)return e;let r={...e};return t.forEach(n=>{fn(n)&&Object.keys(n).forEach(o=>{fn(n[o])?r[o]===null||r[o]===void 0?r[o]={...n[o]}:r[o]=Ts(r[o],n[o]):r[o]=n[o]})}),r};a();var dl=(e,t)=>t.reduce((r,n)=>(Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]),r),{});var Pue={isObject:fn,deepFreeze:S1,merge:Ts,selectKeys:dl};a();a();var T3=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(t,r)=>+t==0?"":r===0?t.toLowerCase():t.toUpperCase());a();var pn=e=>e==="true"||e==="false"?e==="true":!!e;a();var rr=e=>e==null?"":String(e);a();a();var Mi=e=>typeof e=="string"||e instanceof String;var P3=e=>{if(!Mi(e))return!1;try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}};a();var Hn=e=>{let t=/^(?:\w+:)?\/\/(\S+)$/,r=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,n=/^[^\s.]+\.\S{2,}$/;if(!Mi(e))return!1;let o=t.exec(e);if(!o)return!1;let i=o[1];return i===void 0||!i?!1:r.test(i)||n.test(i)};a();var A3=(e="")=>(e[0]?.toLowerCase()??"")+e.slice(1);a();var O3=e=>e.replace(/\n/g,"");a();var F3=e=>(e||"").replace(/\.[^/.]{1,4}$/,"");a();var B3=(e,t)=>e.length<=t?e:`${e.slice(0,t-3)}...`;a();var $3=(e="")=>(e[0]?.toUpperCase()??"")+e.slice(1);var fle={camelCase:T3,coerceToBoolean:pn,coerceToString:rr,isHttpUrl:P3,isString:Mi,isUrl:Hn,lowerFirst:A3,removeNewlines:O3,stripExtension:F3,truncate:B3,upperFirst:$3};a();a();a();import N3,{Component as NB}from"react";a();import As,{Component as $B}from"react";a();import AB from"react";var OB={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},R3=function(t){var r=t.message,n=t["aria-live"];return AB.createElement("div",{style:OB,role:"log","aria-live":n},r||"")};R3.propTypes={};var Ps=R3;function FB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M3(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function BB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var I3=function(e){BB(t,e);function t(){var r,n,o;FB(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return o=(r=(n=M3(this,e.call.apply(e,[this].concat(s))),n),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},r),M3(n,o)}return t.getDerivedStateFromProps=function(n,o){var i=o.oldPolitemessage,s=o.oldPoliteMessageId,u=o.oldAssertiveMessage,l=o.oldAssertiveMessageId,c=n.politeMessage,p=n.politeMessageId,d=n.assertiveMessage,h=n.assertiveMessageId;return i!==c||s!==p?{politeMessage1:o.setAlternatePolite?"":c,politeMessage2:o.setAlternatePolite?c:"",oldPolitemessage:c,oldPoliteMessageId:p,setAlternatePolite:!o.setAlternatePolite}:u!==d||l!==h?{assertiveMessage1:o.setAlternateAssertive?"":d,assertiveMessage2:o.setAlternateAssertive?d:"",oldAssertiveMessage:d,oldAssertiveMessageId:h,setAlternateAssertive:!o.setAlternateAssertive}:null},t.prototype.render=function(){var n=this.state,o=n.assertiveMessage1,i=n.assertiveMessage2,s=n.politeMessage1,u=n.politeMessage2;return As.createElement("div",null,As.createElement(Ps,{"aria-live":"assertive",message:o}),As.createElement(Ps,{"aria-live":"assertive",message:i}),As.createElement(Ps,{"aria-live":"polite",message:s}),As.createElement(Ps,{"aria-live":"polite",message:u}))},t}($B);I3.propTypes={};var k3=I3;a();import RB from"react";var MB=RB.createContext({announceAssertive:V3,announcePolite:V3});function V3(){console.warn("Announcement failed, LiveAnnouncer context is missing")}var Ii=MB;function IB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kB(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function VB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var LB=function(e){VB(t,e);function t(r){IB(this,t);var n=kB(this,e.call(this,r));return n.announcePolite=function(o,i){n.setState({announcePoliteMessage:o,politeMessageId:i||""})},n.announceAssertive=function(o,i){n.setState({announceAssertiveMessage:o,assertiveMessageId:i||""})},n.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:n.announcePolite,announceAssertive:n.announceAssertive}},n}return t.prototype.render=function(){var n=this.state,o=n.announcePoliteMessage,i=n.politeMessageId,s=n.announceAssertiveMessage,u=n.assertiveMessageId,l=n.updateFunctions;return N3.createElement(Ii.Provider,{value:l},this.props.children,N3.createElement(k3,{assertiveMessage:s,assertiveMessageId:u,politeMessage:o,politeMessageId:i}))},t}(NB),E1=LB;a();import X3 from"react";a();var O1=dr(W3());import{Component as UB}from"react";function _B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function WB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var K3=function(e){WB(t,e);function t(){var r,n,o;_B(this,t);for(var i=arguments.length,s=Array(i),u=0;u<i;u++)s[u]=arguments[u];return o=(r=(n=U3(this,e.call.apply(e,[this].concat(s))),n),n.announce=function(){var l=n.props,c=l.message,p=l["aria-live"],d=l.announceAssertive,h=l.announcePolite;p==="assertive"&&d(c||"",(0,O1.default)()),p==="polite"&&h(c||"",(0,O1.default)())},r),U3(n,o)}return t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(n){var o=this.props.message;o!==n.message&&this.announce()},t.prototype.componentWillUnmount=function(){var n=this.props,o=n.clearOnUnmount,i=n.announceAssertive,s=n.announcePolite;(o===!0||o==="true")&&(i(""),s(""))},t.prototype.render=function(){return null},t}(UB);K3.propTypes={};var q3=K3;var KB=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y3=function(t){return X3.createElement(Ii.Consumer,null,function(r){return X3.createElement(q3,KB({},r,t))})};Y3.propTypes={};var Fs=Y3;a();import qB from"react";var XB=function(t){var r=t.children;return qB.createElement(Ii.Consumer,null,function(n){return r(n)})};XB.propTypes={};a();a();a();import{jsxs as f$,jsx as p$}from"react/jsx-runtime";import{forwardRef as d$,useContext as Dl}from"react";a();import{createContext as YB}from"react";var ki=YB({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});a();import{createContext as JB}from"react";var Gn=JB({});a();import{useContext as bl,useRef as Z3,useInsertionEffect as o$,useEffect as i$}from"react";a();import{createContext as ZB}from"react";var jn=ZB(null);a();import{useLayoutEffect as QB,useEffect as e$}from"react";a();var Vi=typeof document<"u";var Ni=Vi?QB:e$;a();import{createContext as t$}from"react";var ml=t$({strict:!1});a();a();var Li=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var r$="framerAppearId",hl="data-"+Li(r$);a();a();a();var dn={skipAnimations:!1,useManualTiming:!1};a();var gl=class{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let r=this.order.indexOf(t);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}};function J3(e){let t=new gl,r=new gl,n=0,o=!1,i=!1,s=new WeakSet,u={schedule:(l,c=!1,p=!1)=>{let d=p&&o,h=d?t:r;return c&&s.add(l),h.add(l)&&d&&o&&(n=t.order.length),l},cancel:l=>{r.remove(l),s.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.clear(),n=t.order.length,n)for(let c=0;c<n;c++){let p=t.order[c];s.has(p)&&(u.schedule(p),e()),p(l)}o=!1,i&&(i=!1,u.process(l))}};return u}var vl=["read","resolveKeyframes","update","preRender","render","postRender"],n$=40;function yl(e,t){let r=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},i=vl.reduce((d,h)=>(d[h]=J3(()=>r=!0),d),{}),s=d=>{i[d].process(o)},u=()=>{let d=dn.useManualTiming?o.timestamp:performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(d-o.timestamp,n$),1),o.timestamp=d,o.isProcessing=!0,vl.forEach(s),o.isProcessing=!1,r&&t&&(n=!1,e(u))},l=()=>{r=!0,n=!0,o.isProcessing||e(u)};return{schedule:vl.reduce((d,h)=>{let g=i[h];return d[h]=(v,m=!1,y=!1)=>(r||l(),g.schedule(v,m,y)),d},{}),cancel:d=>vl.forEach(h=>i[h].cancel(d)),state:o,steps:i}}var{schedule:zi,cancel:Bce}=yl(queueMicrotask,!1);function Q3(e,t,r,n){let{visualElement:o}=bl(Gn),i=bl(ml),s=bl(jn),u=bl(ki).reducedMotion,l=Z3();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:u}));let c=l.current;o$(()=>{c&&c.update(r,s)});let p=Z3(!!(r[hl]&&!window.HandoffComplete));return Ni(()=>{c&&(zi.render(c.render),p.current&&c.animationState&&c.animationState.animateChanges())}),i$(()=>{c&&(c.updateFeatures(),!p.current&&c.animationState&&c.animationState.animateChanges(),p.current&&(p.current=!1,window.HandoffComplete=!0))}),c}a();import{useCallback as a$}from"react";a();function mn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function e5(e,t,r){return a$(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):mn(r)&&(r.current=n))},[t])}a();import{useContext as s$,useMemo as u$}from"react";a();a();function hn(e){return typeof e=="string"||Array.isArray(e)}a();a();function _n(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}a();var Cl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Bs=["initial",...Cl];function Ro(e){return _n(e.animate)||Bs.some(t=>hn(e[t]))}function xl(e){return!!(Ro(e)||e.variants)}function t5(e,t){if(Ro(e)){let{initial:r,animate:n}=e;return{initial:r===!1||hn(r)?r:void 0,animate:hn(n)?n:void 0}}return e.inherit!==!1?t:{}}function n5(e){let{initial:t,animate:r}=t5(e,s$(Gn));return u$(()=>({initial:t,animate:r}),[r5(t),r5(r)])}function r5(e){return Array.isArray(e)?e.join(" "):e}a();a();var o5={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"]},Mo={};for(let e in o5)Mo[e]={isEnabled:t=>o5[e].some(r=>!!t[r])};function i5(e){for(let t in e)Mo[t]={...Mo[t],...e[t]}}a();import{createContext as l$}from"react";var Hi=l$({});a();import{createContext as c$}from"react";var wl=c$({});a();var a5=Symbol.for("motionComponentSymbol");function s5({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&i5(e);function i(u,l){let c,p={...Dl(ki),...u,layoutId:m$(u)},{isStatic:d}=p,h=n5(u),g=n(u,d);if(!d&&Vi){h.visualElement=Q3(o,g,p,t);let v=Dl(wl),m=Dl(ml).strict;h.visualElement&&(c=h.visualElement.loadFeatures(p,m,e,v))}return f$(Gn.Provider,{value:h,children:[c&&h.visualElement?p$(c,{visualElement:h.visualElement,...p}):null,r(o,u,e5(g,h.visualElement,l),g,d,h.visualElement)]})}let s=d$(i);return s[a5]=o,s}function m$({layoutId:e}){let t=Dl(Hi).id;return t&&e!==void 0?t+"-"+e:e}a();function u5(e){function t(n,o={}){return s5(e(n,o))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}a();a();a();var l5=["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 Gi(e){return typeof e!="string"||e.includes("-")?!1:!!(l5.indexOf(e)>-1||/[A-Z]/u.test(e))}a();import{Fragment as O$,useMemo as F$,createElement as B$}from"react";a();import{useMemo as b$}from"react";a();a();var ji={};function c5(e){Object.assign(ji,e)}a();var Wn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nt=new Set(Wn);function Sl(e,{layout:t,layoutId:r}){return Nt.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!ji[e]||e==="opacity")}a();var Re=e=>!!(e&&e.getVelocity);a();a();var h$={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g$=Wn.length;function f5(e,{enableHardwareAcceleration:t=!0,allowTransformNone:r=!0},n,o){let i="";for(let s=0;s<g$;s++){let u=Wn[s];if(e[u]!==void 0){let l=h$[u]||u;i+=`${l}(${e[u]}) `}}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,n?"":i):r&&n&&(i="none"),i}a();var p5=e=>t=>typeof t=="string"&&t.startsWith(e),El=p5("--"),v$=p5("var(--"),_i=e=>v$(e)?y$.test(e.split("/*")[0].trim()):!1,y$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;a();var d5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;a();a();a();var Pt=(e,t,r)=>r>t?t:r<e?e:r;var kr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Un={...kr,transform:e=>Pt(0,1,e)},$s={...kr,default:1};a();a();var Kn=e=>Math.round(e*1e5)/1e5,Wi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,m5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,h5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function gn(e){return typeof e=="string"}var Rs=e=>({test:t=>gn(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Vr=Rs("deg"),At=Rs("%"),oe=Rs("px"),g5=Rs("vh"),v5=Rs("vw"),F1={...At,parse:e=>At.parse(e)/100,transform:e=>At.transform(e*100)};a();var B1={...kr,transform:Math.round};var Tl={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,size:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,rotate:Vr,rotateX:Vr,rotateY:Vr,rotateZ:Vr,scale:$s,scaleX:$s,scaleY:$s,scaleZ:$s,skew:Vr,skewX:Vr,skewY:Vr,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:Un,originX:F1,originY:F1,originZ:oe,zIndex:B1,backgroundPositionX:oe,backgroundPositionY:oe,fillOpacity:Un,strokeOpacity:Un,numOctaves:B1};function Ui(e,t,r,n){let{style:o,vars:i,transform:s,transformOrigin:u}=e,l=!1,c=!1,p=!0;for(let d in t){let h=t[d];if(El(d)){i[d]=h;continue}let g=Tl[d],v=d5(h,g);if(Nt.has(d)){if(l=!0,s[d]=v,!p)continue;h!==(g.default||0)&&(p=!1)}else d.startsWith("origin")?(c=!0,u[d]=v):o[d]=v}if(t.transform||(l||n?o.transform=f5(e.transform,r,p,n):o.transform&&(o.transform="none")),c){let{originX:d="50%",originY:h="50%",originZ:g=0}=u;o.transformOrigin=`${d} ${h} ${g}`}}a();var Ki=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $1(e,t,r){for(let n in t)!Re(t[n])&&!Sl(n,r)&&(e[n]=t[n])}function C$({transformTemplate:e},t,r){return b$(()=>{let n=Ki();return Ui(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function x$(e,t,r){let n=e.style||{},o={};return $1(o,n,e),Object.assign(o,C$(e,t,r)),o}function y5(e,t,r){let n={},o=x$(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}a();a();var w$=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","ignoreStrict","viewport"]);function Ms(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||w$.has(e)}var D5=e=>!Ms(e);function E$(e){e&&(D5=t=>t.startsWith("on")?!Ms(t):e(t))}try{E$((w5(),EF(x5)).default)}catch{}function S5(e,t,r){let n={};for(let o in e)o==="values"&&typeof e.values=="object"||(D5(o)||r===!0&&Ms(o)||!t&&!Ms(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}a();import{useMemo as A$}from"react";a();a();function E5(e,t,r){return typeof e=="string"?e:oe.transform(t+r*e)}function T5(e,t,r){let n=E5(t,e.x,e.width),o=E5(r,e.y,e.height);return`${n} ${o}`}a();var T$={offset:"stroke-dashoffset",array:"stroke-dasharray"},P$={offset:"strokeDashoffset",array:"strokeDasharray"};function P5(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?T$:P$;e[i.offset]=oe.transform(-n);let s=oe.transform(t),u=oe.transform(r);e[i.array]=`${s} ${u}`}function qi(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...c},p,d,h){if(Ui(e,c,p,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:g,style:v,dimensions:m}=e;g.transform&&(m&&(v.transform=g.transform),delete g.transform),m&&(o!==void 0||i!==void 0||v.transform)&&(v.transformOrigin=T5(m,o!==void 0?o:.5,i!==void 0?i:.5)),t!==void 0&&(g.x=t),r!==void 0&&(g.y=r),n!==void 0&&(g.scale=n),s!==void 0&&P5(g,s,u,l,!1)}a();var Pl=()=>({...Ki(),attrs:{}});a();var Xi=e=>typeof e=="string"&&e.toLowerCase()==="svg";function A5(e,t,r,n){let o=A$(()=>{let i=Pl();return qi(i,t,{enableHardwareAcceleration:!1},Xi(n),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let i={};$1(i,e.style,e),o.style={...i,...o.style}}return o}function O5(e=!1){return(r,n,o,{latestValues:i},s)=>{let l=(Gi(r)?A5:y5)(n,i,s,r),c=S5(n,typeof r=="string",e),p=r!==O$?{...c,...l,ref:o}:{},{children:d}=n,h=F$(()=>Re(d)?d.get():d,[d]);return B$(r,{...p,children:h})}}a();a();a();function Al(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let i in r)e.style.setProperty(i,r[i])}a();var Ol=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"]);function Fl(e,t,r,n){Al(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(Ol.has(o)?o:Li(o),t.attrs[o])}a();a();function Yi(e,t,r){var n;let{style:o}=e,i={};for(let s in o)(Re(o[s])||t.style&&Re(t.style[s])||Sl(s,e)||((n=r?.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(i[s]=o[s]);return i}function Bl(e,t,r){let n=Yi(e,t,r);for(let o in e)if(Re(e[o])||Re(t[o])){let i=Wn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[i]=e[o]}return n}a();import{useContext as R5}from"react";a();function F5(e){let t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function Ji(e,t,r,n){if(typeof t=="function"){let[o,i]=F5(n);t=t(r!==void 0?r:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,i]=F5(n);t=t(r!==void 0?r:e.custom,o,i)}return t}a();import{useRef as $$}from"react";function $l(e){let t=$$(null);return t.current===null&&(t.current=e()),t.current}a();a();a();var Is=e=>Array.isArray(e);var B5=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),$5=e=>Is(e)?e[e.length-1]||0:e;function Zi(e){let t=Re(e)?e.get():e;return B5(t)?t.toValue():t}function R$({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let s={latestValues:M$(n,o,i,e),renderState:t()};return r&&(s.mount=u=>r(n,u,s)),s}var Rl=e=>(t,r)=>{let n=R5(Gn),o=R5(jn),i=()=>R$(e,t,n,o);return r?i():$l(i)};function M$(e,t,r,n){let o={},i=n(e,{});for(let h in i)o[h]=Zi(i[h]);let{initial:s,animate:u}=e,l=Ro(e),c=xl(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),u===void 0&&(u=t.animate));let p=r?r.initial===!1:!1;p=p||s===!1;let d=p?u:s;return d&&typeof d!="boolean"&&!_n(d)&&(Array.isArray(d)?d:[d]).forEach(g=>{let v=Ji(e,g);if(!v)return;let{transitionEnd:m,transition:y,...b}=v;for(let x in b){let w=b[x];if(Array.isArray(w)){let D=p?w.length-1:0;w=w[D]}w!==null&&(o[x]=w)}for(let x in m)o[x]=m[x]}),o}a();a();var Fe=e=>e;var{schedule:le,cancel:Ot,state:qe,steps:Ml}=yl(typeof requestAnimationFrame<"u"?requestAnimationFrame:Fe,!0);var M5={useVisualState:Rl({scrapeMotionValuesFromProps:Bl,createRenderState:Pl,onMount:(e,t,{renderState:r,latestValues:n})=>{le.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),le.render(()=>{qi(r,n,{enableHardwareAcceleration:!1},Xi(t.tagName),e.transformTemplate),Fl(t,r)})}})};a();var I5={useVisualState:Rl({scrapeMotionValuesFromProps:Yi,createRenderState:Ki})};function k5(e,{forwardMotionProps:t=!1},r,n){return{...Gi(e)?M5:I5,preloadedFeatures:r,useRender:O5(t),createVisualElement:n,Component:e}}a();a();a();a();function Lt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}a();a();var Il=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Io(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var V5=e=>t=>Il(t)&&e(t,Io(t));function zt(e,t,r,n){return Lt(e,t,V5(r),n)}a();var I$=(e,t)=>r=>t(e(r)),wt=(...e)=>e.reduce(I$);a();function z5(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var N5=z5("dragHorizontal"),L5=z5("dragVertical");function R1(e){let t=!1;if(e==="y")t=L5();else if(e==="x")t=N5();else{let r=N5(),n=L5();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function kl(){let e=R1(!0);return e?(e(),!1):!0}a();var ft=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};function H5(e,t){let r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(i,s)=>{if(i.pointerType==="touch"||kl())return;let u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t);let l=u[n];l&&le.postRender(()=>l(i,s))};return zt(e.current,r,o,{passive:!e.getProps()[n]})}var Vl=class extends ft{mount(){this.unmount=wt(H5(this.node,!0),H5(this.node,!1))}unmount(){}};a();var Nl=class extends ft{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=wt(Lt(this.node.current,"focus",()=>this.onFocus()),Lt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};a();a();var M1=(e,t)=>t?e===t?!0:M1(e,t.parentElement):!1;function I1(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,Io(r))}var Ll=class extends ft{constructor(){super(...arguments),this.removeStartListeners=Fe,this.removeEndListeners=Fe,this.removeAccessibleListeners=Fe,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=zt(window,"pointerup",(u,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:p,globalTapTarget:d}=this.node.getProps(),h=!d&&!M1(this.node.current,u.target)?p:c;h&&le.update(()=>h(u,l))},{passive:!(n.onTap||n.onPointerUp)}),s=zt(window,"pointercancel",(u,l)=>this.cancelPress(u,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=wt(i,s),this.startPress(t,r)},this.startAccessiblePress=()=>{let t=i=>{if(i.key!=="Enter"||this.isPressing)return;let s=u=>{u.key!=="Enter"||!this.checkPressEnd()||I1("up",(l,c)=>{let{onTap:p}=this.node.getProps();p&&le.postRender(()=>p(l,c))})};this.removeEndListeners(),this.removeEndListeners=Lt(this.node.current,"keyup",s),I1("down",(u,l)=>{this.startPress(u,l)})},r=Lt(this.node.current,"keydown",t),n=()=>{this.isPressing&&I1("cancel",(i,s)=>this.cancelPress(i,s))},o=Lt(this.node.current,"blur",n);this.removeAccessibleListeners=wt(r,o)}}startPress(t,r){this.isPressing=!0;let{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&le.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!kl()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&le.postRender(()=>n(t,r))}mount(){let t=this.node.getProps(),r=zt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Lt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=wt(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}};a();a();var V1=new WeakMap,k1=new WeakMap,k$=e=>{let t=V1.get(e.target);t&&t(e)},V$=e=>{e.forEach(k$)};function N$({root:e,...t}){let r=e||document;k1.has(r)||k1.set(r,{});let n=k1.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(V$,{root:e,...t})),n[o]}function G5(e,t,r){let n=N$(t);return V1.set(e,r),n.observe(e),()=>{V1.delete(e),n.unobserve(e)}}var L$={some:0,all:1},zl=class extends ft{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:r,margin:n,amount:o="some",once:i}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:L$[o]},u=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);let{onViewportEnter:p,onViewportLeave:d}=this.node.getProps(),h=c?p:d;h&&h(l)};return G5(this.node.current,s,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:t,prevProps:r}=this.node;["amount","margin","root"].some(z$(t,r))&&this.startObserver()}unmount(){}};function z$({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var j5={inView:{Feature:zl},tap:{Feature:Ll},focus:{Feature:Nl},hover:{Feature:Vl}};a();a();a();a();function N1(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}a();function qn(e,t,r){let n=e.getProps();return Ji(n,t,r!==void 0?r:n.custom,e)}a();a();a();a();var Ht=e=>e*1e3,Gt=e=>e/1e3;a();var H$={type:"spring",stiffness:500,damping:25,restSpeed:10},G$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),j$={type:"keyframes",duration:.8},_$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_5=(e,{keyframes:t})=>t.length>2?j$:Nt.has(e)?e.startsWith("scale")?G$(t[1]):H$:_$;a();function W5({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:u,from:l,elapsed:c,...p}){return!!Object.keys(p).length}function Qi(e,t){return e[t]||e.default||e}a();var Hl={current:!1};a();var W$=e=>e!==null;function Xn(e,{repeat:t,repeatType:r="loop"},n){let o=e.filter(W$),i=t&&r!=="loop"&&t%2===1?0:o.length-1;return!i||n===void 0?o[i]:n}a();a();var Gl;function U$(){Gl=void 0}var nr={now:()=>(Gl===void 0&&nr.set(qe.isProcessing||dn.useManualTiming?qe.timestamp:performance.now()),Gl),set:e=>{Gl=e,queueMicrotask(U$)}};a();a();a();var jl=e=>/^0[^.\s]+$/u.test(e);function U5(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||jl(e):!0}a();a();var Yn=Fe,Dr=Fe;a();var _l=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);var K$=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q$(e){let t=K$.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${r??n}`,o]}var X$=4;function L1(e,t,r=1){Dr(r<=X$,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=q$(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);if(i){let s=i.trim();return _l(s)?parseFloat(s):s}return _i(o)?L1(o,t,r+1):o}a();var X5=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),z1=e=>e===kr||e===oe,K5=(e,t)=>parseFloat(e.split(", ")[t]),q5=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/u);if(o)return K5(o[1],t);{let i=n.match(/^matrix\((.+)\)$/u);return i?K5(i[1],e):0}},Y$=new Set(["x","y","z"]),J$=Wn.filter(e=>!Y$.has(e));function Y5(e){let t=[];return J$.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var ko={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:q5(4,13),y:q5(5,14)};ko.translateX=ko.x;ko.translateY=ko.y;a();a();var Wl=e=>t=>t.test(e);a();var J5={test:e=>e==="auto",parse:e=>e};var H1=[kr,oe,At,Vr,v5,g5,J5],G1=e=>H1.find(Wl(e));a();var Vo=new Set,j1=!1,_1=!1;function Z5(){if(_1){let e=Array.from(Vo).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let o=Y5(n);o.length&&(r.set(n,o),n.render())}),e.forEach(n=>n.measureInitialState()),t.forEach(n=>{n.render();let o=r.get(n);o&&o.forEach(([i,s])=>{var u;(u=n.getValue(i))===null||u===void 0||u.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}_1=!1,j1=!1,Vo.forEach(e=>e.complete()),Vo.clear()}function Q5(){Vo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(_1=!0)})}function ev(){Q5(),Z5()}var Jn=class{constructor(t,r,n,o,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=n,this.motionValue=o,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vo.add(this),j1||(j1=!0,le.read(Q5),le.resolveKeyframes(Z5))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){let s=o?.get(),u=t[t.length-1];if(s!==void 0)t[0]=s;else if(n&&r){let l=n.readValue(r,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),o&&s===void 0&&o.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};a();a();a();a();a();a();var ea=(e,t)=>r=>!!(gn(r)&&h5.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),Ul=(e,t,r)=>n=>{if(!gn(n))return n;let[o,i,s,u]=n.match(Wi);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}};var Z$=e=>Pt(0,255,e),W1={...kr,transform:e=>Math.round(Z$(e))},Nr={test:ea("rgb","red"),parse:Ul("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+W1.transform(e)+", "+W1.transform(t)+", "+W1.transform(r)+", "+Kn(Un.transform(n))+")"};function Q$(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var ks={test:ea("#"),parse:Q$,transform:Nr.transform};a();var Zn={test:ea("hsl","hue"),parse:Ul("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+At.transform(Kn(t))+", "+At.transform(Kn(r))+", "+Kn(Un.transform(n))+")"};var Je={test:e=>Nr.test(e)||ks.test(e)||Zn.test(e),parse:e=>Nr.test(e)?Nr.parse(e):Zn.test(e)?Zn.parse(e):ks.parse(e),transform:e=>gn(e)?e:e.hasOwnProperty("red")?Nr.transform(e):Zn.transform(e)};function eR(e){var t,r;return isNaN(e)&&gn(e)&&(((t=e.match(Wi))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(m5))===null||r===void 0?void 0:r.length)||0)>0}var rv="number",nv="color",tR="var",rR="var(",tv="${}",nR=/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 No(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[],i=0,u=t.replace(nR,l=>(Je.test(l)?(n.color.push(i),o.push(nv),r.push(Je.parse(l))):l.startsWith(rR)?(n.var.push(i),o.push(tR),r.push(l)):(n.number.push(i),o.push(rv),r.push(parseFloat(l))),++i,tv)).split(tv);return{values:r,split:u,indexes:n,types:o}}function ov(e){return No(e).values}function iv(e){let{split:t,types:r}=No(e),n=t.length;return o=>{let i="";for(let s=0;s<n;s++)if(i+=t[s],o[s]!==void 0){let u=r[s];u===rv?i+=Kn(o[s]):u===nv?i+=Je.transform(o[s]):i+=o[s]}return i}}var oR=e=>typeof e=="number"?0:e;function iR(e){let t=ov(e);return iv(e)(t.map(oR))}var Ft={test:eR,parse:ov,createTransformer:iv,getAnimatableNone:iR};a();a();var aR=new Set(["brightness","contrast","saturate","opacity"]);function sR(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Wi)||[];if(!n)return e;let o=r.replace(n,""),i=aR.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var uR=/\b([a-z-]*)\(.*?\)/gu,Vs={...Ft,getAnimatableNone:e=>{let t=e.match(uR);return t?t.map(sR).join(" "):e}};a();var lR={...Tl,color:Je,backgroundColor:Je,outlineColor:Je,fill:Je,stroke:Je,borderColor:Je,borderTopColor:Je,borderRightColor:Je,borderBottomColor:Je,borderLeftColor:Je,filter:Vs,WebkitFilter:Vs},ta=e=>lR[e];function Kl(e,t){let r=ta(e);return r!==Vs&&(r=Ft),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var cR=new Set(["auto","none","0"]);function av(e,t,r){let n=0,o;for(;n<e.length&&!o;){let i=e[n];typeof i=="string"&&!cR.has(i)&&No(i).values.length&&(o=e[n]),n++}if(o&&r)for(let i of t)e[i]=Kl(r,o)}var ra=class extends Jn{constructor(t,r,n,o){super(t,r,n,o,o?.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),_i(c))){let p=L1(c,r.current);p!==void 0&&(t[l]=p),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!X5.has(n)||t.length!==2)return;let[o,i]=t,s=G1(o),u=G1(i);if(s!==u)if(z1(s)&&z1(u))for(let l=0;l<t.length;l++){let c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:r}=this,n=[];for(let o=0;o<t.length;o++)U5(t[o])&&n.push(o);n.length&&av(t,n,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ko[n](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;let o=r[r.length-1];o!==void 0&&t.getValue(n,o).jump(o,!1)}measureEndState(){var t;let{element:r,name:n,unresolvedKeyframes:o}=this;if(!r.current)return;let i=r.getValue(n);i&&i.jump(this.measuredOrigin,!1);let s=o.length-1,u=o[s];o[s]=ko[n](r.measureViewportBox(),window.getComputedStyle(r.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}};a();function ql(e){let t;return()=>(t===void 0&&(t=e()),t)}a();a();a();var U1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ft.test(e)||e==="0")&&!e.startsWith("url("));function fR(e){let t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function sv(e,t,r,n){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let i=e[e.length-1],s=U1(o,t),u=U1(i,t);return Yn(s===u,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!s||!u?!1:fR(e)||r==="spring"&&n}var na=class{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:i,repeatType:s,...u},this.updateFinishedPromise()}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ev(),this._resolved}onKeyframesResolved(t,r){this.hasAttemptedResolve=!0;let{name:n,type:o,velocity:i,delay:s,onComplete:u,onUpdate:l,isGenerator:c}=this.options;if(!c&&!sv(t,n,o,i))if(Hl.current||!s){l?.(Xn(t,this.options,r)),u?.(),this.resolveFinishedPromise();return}else this.options.duration=0;let p=this.initPlayback(t,r);p!==!1&&(this._resolved={keyframes:t,finalKeyframe:r,...p},this.onPostResolved())}onPostResolved(){}then(t,r){return this.currentFinishedPromise.then(t,r)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};a();a();a();a();function Xl(e,t){return t?e*(1e3/t):0}var pR=5;function Yl(e,t,r){let n=Math.max(t-pR,0);return Xl(r-e(n),t-n)}a();var K1=.001,dR=.01,uv=10,mR=.05,hR=1;function lv({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;Yn(e<=Ht(uv),"Spring duration must be 10 seconds or less");let s=1-t;s=Pt(mR,hR,s),e=Pt(dR,uv,Gt(e)),s<1?(o=c=>{let p=c*s,d=p*e,h=p-r,g=Jl(c,s),v=Math.exp(-d);return K1-h/g*v},i=c=>{let d=c*s*e,h=d*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),m=Jl(Math.pow(c,2),s);return(-o(c)+K1>0?-1:1)*((h-g)*v)/m}):(o=c=>{let p=Math.exp(-c*e),d=(c-r)*e+1;return-K1+p*d},i=c=>{let p=Math.exp(-c*e),d=(r-c)*(e*e);return p*d});let u=5/e,l=vR(o,i,u);if(e=Ht(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:s*2*Math.sqrt(n*c),duration:e}}}var gR=12;function vR(e,t,r){let n=r;for(let o=1;o<gR;o++)n=n-e(n)/t(n);return n}function Jl(e,t){return e*Math.sqrt(1-t*t)}var yR=["duration","bounce"],bR=["stiffness","damping","mass"];function cv(e,t){return t.some(r=>e[r]!==void 0)}function CR(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!cv(e,bR)&&cv(e,yR)){let r=lv(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Zl({keyframes:e,restDelta:t,restSpeed:r,...n}){let o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,mass:c,duration:p,velocity:d,isResolvedFromDuration:h}=CR({...n,velocity:-Gt(n.velocity||0)}),g=d||0,v=l/(2*Math.sqrt(u*c)),m=i-o,y=Gt(Math.sqrt(u/c)),b=Math.abs(m)<5;r||(r=b?.01:2),t||(t=b?.005:.5);let x;if(v<1){let w=Jl(y,v);x=D=>{let E=Math.exp(-v*y*D);return i-E*((g+v*y*m)/w*Math.sin(w*D)+m*Math.cos(w*D))}}else if(v===1)x=w=>i-Math.exp(-y*w)*(m+(g+y*m)*w);else{let w=y*Math.sqrt(v*v-1);x=D=>{let E=Math.exp(-v*y*D),S=Math.min(w*D,300);return i-E*((g+v*y*m)*Math.sinh(S)+w*m*Math.cosh(S))/w}}return{calculatedDuration:h&&p||null,next:w=>{let D=x(w);if(h)s.done=w>=p;else{let E=g;w!==0&&(v<1?E=Yl(x,w,D):E=0);let S=Math.abs(E)<=r,T=Math.abs(i-D)<=t;s.done=S&&T}return s.value=s.done?i:D,s}}}a();function q1({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:u,max:l,restDelta:c=.5,restSpeed:p}){let d=e[0],h={done:!1,value:d},g=O=>u!==void 0&&O<u||l!==void 0&&O>l,v=O=>u===void 0?l:l===void 0||Math.abs(u-O)<Math.abs(l-O)?u:l,m=r*t,y=d+m,b=s===void 0?y:s(y);b!==y&&(m=b-d);let x=O=>-m*Math.exp(-O/n),w=O=>b+x(O),D=O=>{let F=x(O),I=w(O);h.done=Math.abs(F)<=c,h.value=h.done?b:I},E,S,T=O=>{g(h.value)&&(E=O,S=Zl({keyframes:[h.value,v(h.value)],velocity:Yl(w,O,h.value),damping:o,stiffness:i,restDelta:c,restSpeed:p}))};return T(0),{calculatedDuration:null,next:O=>{let F=!1;return!S&&E===void 0&&(F=!0,D(O),T(O)),E!==void 0&&O>=E?S.next(O-E):(!F&&D(O),h)}}}a();a();a();var fv=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,xR=1e-7,wR=12;function DR(e,t,r,n,o){let i,s,u=0;do s=t+(r-t)/2,i=fv(s,n,o)-e,i>0?r=s:t=s;while(Math.abs(i)>xR&&++u<wR);return s}function Qn(e,t,r,n){if(e===t&&r===n)return Fe;let o=i=>DR(i,0,1,e,r);return i=>i===0||i===1?i:fv(o(i),t,n)}var pv=Qn(.42,0,1,1),dv=Qn(0,0,.58,1),Ql=Qn(.42,0,.58,1);a();var mv=e=>Array.isArray(e)&&typeof e[0]!="number";a();a();a();var ec=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;a();var tc=e=>t=>1-e(1-t);var rc=e=>1-Math.sin(Math.acos(e)),nc=tc(rc),hv=ec(rc);a();var X1=Qn(.33,1.53,.69,.99),Ns=tc(X1),gv=ec(Ns);a();var vv=e=>(e*=2)<1?.5*Ns(e):.5*(2-Math.pow(2,-10*(e-1)));var yv={linear:Fe,easeIn:pv,easeInOut:Ql,easeOut:dv,circIn:rc,circInOut:hv,circOut:nc,backIn:Ns,backInOut:gv,backOut:X1,anticipate:vv},Y1=e=>{if(Array.isArray(e)){Dr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return Qn(t,r,n,o)}else if(typeof e=="string")return Dr(yv[e]!==void 0,`Invalid easing type '${e}'`),yv[e];return e};a();a();var vn=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};a();a();a();var xe=(e,t,r)=>e+(t-e)*r;a();a();function J1(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function bv({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,s=0;if(!t)o=i=s=r;else{let u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;o=J1(l,u,e+1/3),i=J1(l,u,e),s=J1(l,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:n}}a();function oa(e,t){return r=>r>0?t:e}var Z1=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},SR=[ks,Nr,Zn],ER=e=>SR.find(t=>t.test(e));function Cv(e){let t=ER(e);if(Yn(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===Zn&&(r=bv(r)),r}var Q1=(e,t)=>{let r=Cv(e),n=Cv(t);if(!r||!n)return oa(e,t);let o={...r};return i=>(o.red=Z1(r.red,n.red,i),o.green=Z1(r.green,n.green,i),o.blue=Z1(r.blue,n.blue,i),o.alpha=xe(r.alpha,n.alpha,i),Nr.transform(o))};a();var oc=new Set(["none","hidden"]);function xv(e,t){return oc.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function TR(e,t){return r=>xe(e,t,r)}function ic(e){return typeof e=="number"?TR:typeof e=="string"?_i(e)?oa:Je.test(e)?Q1:OR:Array.isArray(e)?wv:typeof e=="object"?Je.test(e)?Q1:PR:oa}function wv(e,t){let r=[...e],n=r.length,o=e.map((i,s)=>ic(i)(i,t[s]));return i=>{for(let s=0;s<n;s++)r[s]=o[s](i);return r}}function PR(e,t){let r={...e,...t},n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=ic(e[o])(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}}function AR(e,t){var r;let n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let s=t.types[i],u=e.indexes[s][o[s]],l=(r=e.values[u])!==null&&r!==void 0?r:0;n[i]=l,o[s]++}return n}var OR=(e,t)=>{let r=Ft.createTransformer(t),n=No(e),o=No(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?oc.has(e)&&!o.values.length||oc.has(t)&&!n.values.length?xv(e,t):wt(wv(AR(n,o),o.values),r):(Yn(!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.`),oa(e,t))};function ac(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?xe(e,t,r):ic(e)(e,t)}function FR(e,t,r){let n=[],o=r||ac,i=e.length-1;for(let s=0;s<i;s++){let u=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Fe:t;u=wt(l,u)}n.push(u)}return n}function Dv(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;if(Dr(i===t.length,"Both input and output ranges must be the same length"),i===1)return()=>t[0];if(i===2&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=FR(t,n,o),u=s.length,l=c=>{let p=0;if(u>1)for(;p<e.length-2&&!(c<e[p+1]);p++);let d=vn(e[p],e[p+1],c);return s[p](d)};return r?c=>l(Pt(e[0],e[i-1],c)):l}a();a();function Sv(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=vn(0,t,n);e.push(xe(r,1,o))}}function Ev(e){let t=[0];return Sv(t,e.length-1),t}a();function Tv(e,t){return e.map(r=>r*t)}function BR(e,t){return e.map(()=>t||Ql).splice(0,e.length-1)}function Ls({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let o=mv(n)?n.map(Y1):Y1(n),i={done:!1,value:t[0]},s=Tv(r&&r.length===t.length?r:Ev(t),e),u=Dv(s,t,{ease:Array.isArray(o)?o:BR(t,o)});return{calculatedDuration:e,next:l=>(i.value=u(l),i.done=l>=e,i)}}a();function Pv(e){let t=0,r=50,n=e.next(t);for(;!n.done&&t<2e4;)t+=r,n=e.next(t);return t>=2e4?1/0:t}a();var Av=e=>{let t=({timestamp:r})=>e(r);return{start:()=>le.update(t,!0),stop:()=>Ot(t),now:()=>qe.isProcessing?qe.timestamp:nr.now()}};var $R={decay:q1,inertia:q1,tween:Ls,keyframes:Ls,spring:Zl},RR=e=>e/100,Lo=class extends na{constructor({KeyframeResolver:t=Jn,...r}){super(r),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:u}=this.options;u&&u()};let{name:n,motionValue:o,keyframes:i}=this.options,s=(u,l)=>this.onKeyframesResolved(u,l);n&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(i,s,n,o):this.resolver=new t(i,s,n,o),this.resolver.scheduleResolve()}initPlayback(t){let{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i,velocity:s=0}=this.options,u=$R[r]||Ls,l,c;u!==Ls&&typeof t[0]!="number"&&(l=wt(RR,ac(t[0],t[1])),t=[0,100]);let p=u({...this.options,keyframes:t});i==="mirror"&&(c=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),p.calculatedDuration===null&&(p.calculatedDuration=Pv(p));let{calculatedDuration:d}=p,h=d+o,g=h*(n+1)-o;return{generator:p,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:g}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,r=!1){let{resolved:n}=this;if(!n){let{keyframes:O}=this.options;return{done:!0,value:O[O.length-1]}}let{finalKeyframe:o,generator:i,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:c,totalDuration:p,resolvedDuration:d}=n;if(this.startTime===null)return i.next(0);let{delay:h,repeat:g,repeatType:v,repeatDelay:m,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-p/this.speed,this.startTime)),r?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let b=this.currentTime-h*(this.speed>=0?1:-1),x=this.speed>=0?b<0:b>p;this.currentTime=Math.max(b,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let w=this.currentTime,D=i;if(g){let O=Math.min(this.currentTime,p)/d,F=Math.floor(O),I=O%1;!I&&O>=1&&(I=1),I===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(v==="reverse"?(I=1-I,m&&(I-=m/d)):v==="mirror"&&(D=s)),w=Pt(0,1,I)*d}let E=x?{done:!1,value:l[0]}:D.next(w);u&&(E.value=u(E.value));let{done:S}=E;!x&&c!==null&&(S=this.speed>=0?this.currentTime>=p:this.currentTime<=0);let T=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return T&&o!==void 0&&(E.value=Xn(l,this.options,o)),y&&y(E.value),T&&this.finish(),E}get duration(){let{resolved:t}=this;return t?Gt(t.calculatedDuration):0}get time(){return Gt(this.currentTime)}set time(t){t=Ht(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Gt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=Av,onPlay:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),r&&r();let n=this.driver.now();this.holdTime!==null?this.startTime=n-this.holdTime:(!this.startTime||this.state==="finished")&&(this.startTime=n),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};a();a();a();var em=e=>Array.isArray(e)&&typeof e[0]=="number";function tm(e){return!!(!e||typeof e=="string"&&e in rm||em(e)||Array.isArray(e)&&e.every(tm))}var zs=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,rm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:zs([0,.65,.55,1]),circOut:zs([.55,0,1,.45]),backIn:zs([.31,.01,.66,-.59]),backOut:zs([.33,1.53,.69,.99])};function MR(e){return nm(e)||rm.easeOut}function nm(e){if(e)return em(e)?zs(e):Array.isArray(e)?e.map(MR):rm[e]}function Ov(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:u,times:l}={}){let c={[t]:r};l&&(c.offset=l);let p=nm(u);return Array.isArray(p)&&(c.easing=p),e.animate(c,{delay:n,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}var IR=ql(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),kR=new Set(["opacity","clipPath","filter","transform"]),sc=10,VR=2e4;function NR(e){return e.type==="spring"||e.name==="backgroundColor"||!tm(e.ease)}function LR(e,t){let r=new Lo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},o=[],i=0;for(;!n.done&&i<VR;)n=r.sample(i),o.push(n.value),i+=sc;return{times:void 0,keyframes:o,duration:i-sc,ease:"linear"}}var Hs=class extends na{constructor(t){super(t);let{name:r,motionValue:n,keyframes:o}=this.options;this.resolver=new ra(o,(i,s)=>this.onKeyframesResolved(i,s),r,n),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:i,ease:s,type:u,motionValue:l,name:c}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(NR(this.options)){let{onComplete:d,onUpdate:h,motionValue:g,...v}=this.options,m=LR(t,v);t=m.keyframes,t.length===1&&(t[1]=t[0]),o=m.duration,i=m.times,s=m.ease,u="keyframes"}let p=Ov(l.owner.current,c,t,{...this.options,duration:o,times:i,ease:s});return p.startTime=nr.now(),this.pendingTimeline?(p.timeline=this.pendingTimeline,this.pendingTimeline=void 0):p.onfinish=()=>{let{onComplete:d}=this.options;l.set(Xn(t,this.options,r)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:o,times:i,type:u,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Gt(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Gt(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:n}=r;n.currentTime=Ht(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:r}=t;return r.playbackRate}set speed(t){let{resolved:r}=this;if(!r)return;let{animation:n}=r;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:r}=t;return r.playState}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return Fe;let{animation:n}=r;n.timeline=t,n.onfinish=null}return Fe}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playState==="finished"&&this.updateFinishedPromise(),r.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:n,duration:o,type:i,ease:s,times:u}=t;if(!(r.playState==="idle"||r.playState==="finished")){if(this.time){let{motionValue:l,onUpdate:c,onComplete:p,...d}=this.options,h=new Lo({...d,keyframes:n,duration:o,type:i,ease:s,times:u,isGenerator:!0}),g=Ht(this.time);l.setWithVelocity(h.sample(g-sc).value,h.sample(g).value,sc)}this.cancel()}}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}static supports(t){let{motionValue:r,name:n,repeatDelay:o,repeatType:i,damping:s,type:u}=t;return IR()&&n&&kR.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&i!=="mirror"&&s!==0&&u!=="inertia"}};a();a();function Fv(e,t){let r,n=()=>{let{currentTime:o}=t,s=(o===null?0:o.value)/100;r!==s&&e(s),r=s};return le.update(n,!0),()=>Ot(n)}a();var Bv=ql(()=>window.ScrollTimeline!==void 0);var uc=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,r){return Promise.all(this.animations).then(t).catch(r)}getAll(t){return this.animations[0][t]}setAll(t,r){for(let n=0;n<this.animations.length;n++)this.animations[n][t]=r}attachTimeline(t){let r=this.animations.map(n=>{if(Bv()&&n.attachTimeline)n.attachTimeline(t);else return n.pause(),Fv(o=>{n.time=n.duration*o},t)});return()=>{r.forEach((n,o)=>{n&&n(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get duration(){let t=0;for(let r=0;r<this.animations.length;r++)t=Math.max(t,this.animations[r].duration);return t}runAll(t){this.animations.forEach(r=>r[t]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};var ia=(e,t,r,n={},o,i)=>s=>{let u=Qi(n,e)||{},l=u.delay||n.delay||0,{elapsed:c=0}=n;c=c-Ht(l);let p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:h=>{t.set(h),u.onUpdate&&u.onUpdate(h)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:i?void 0:o};W5(u)||(p={...p,..._5(e,p)}),p.duration&&(p.duration=Ht(p.duration)),p.repeatDelay&&(p.repeatDelay=Ht(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let d=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(d=!0)),(Hl.current||dn.skipAnimations)&&(d=!0,p.duration=0,p.delay=0),d&&!i&&t.get()!==void 0){let h=Xn(p.keyframes,u);if(h!==void 0)return le.update(()=>{p.onUpdate(h),p.onComplete()}),new uc([])}return!i&&Hs.supports(p)?new Hs(p):new Lo(p)};a();function zo(e){return!!(Re(e)&&e.add)}a();a();a();a();function aa(e,t){e.indexOf(t)===-1&&e.push(t)}function sa(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var eo=class{constructor(){this.subscriptions=[]}add(t){return aa(this.subscriptions,t),()=>sa(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let s=this.subscriptions[i];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var $v=30,zR=e=>!isNaN(parseFloat(e)),Rv={current:void 0},om=class{constructor(t,r={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{let i=nr.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),o&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=nr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=zR(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new eo);let n=this.events[t].add(r);return t==="change"?()=>{n(),le.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,r,n){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Rv.current&&Rv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=nr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$v)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,$v);return Xl(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),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.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function yn(e,t){return new om(e,t)}function HR(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,yn(r))}function Mv(e,t){let r=qn(e,t),{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(let s in i){let u=$5(i[s]);HR(e,s,u)}}a();function lc(e){return e.getProps()[hl]}function GR({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function cc(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t,c=e.getValue("willChange");n&&(s=n);let p=[],d=o&&e.animationState&&e.animationState.getState()[o];for(let h in l){let g=e.getValue(h,(i=e.latestValues[h])!==null&&i!==void 0?i:null),v=l[h];if(v===void 0||d&&GR(d,h))continue;let m={delay:r,elapsed:0,...Qi(s||{},h)},y=!1;if(window.HandoffAppearAnimations){let x=lc(e);if(x){let w=window.HandoffAppearAnimations(x,h,g,le);w!==null&&(m.elapsed=w,y=!0)}}g.start(ia(h,g,v,e.shouldReduceMotion&&Nt.has(h)?{type:!1}:m,e,y));let b=g.animation;b&&(zo(c)&&(c.add(h),b.then(()=>c.remove(h))),p.push(b))}return u&&Promise.all(p).then(()=>{le.update(()=>{u&&Mv(e,u)})}),p}a();function fc(e,t,r={}){var n;let o=qn(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let s=o?()=>Promise.all(cc(e,o,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:p=0,staggerChildren:d,staggerDirection:h}=i;return jR(e,t,p+c,d,h,r)}:()=>Promise.resolve(),{when:l}=i;if(l){let[c,p]=l==="beforeChildren"?[s,u]:[u,s];return c().then(()=>p())}else return Promise.all([s(),u(r.delay)])}function jR(e,t,r=0,n=0,o=1,i){let s=[],u=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>u-c*n;return Array.from(e.variantChildren).sort(_R).forEach((c,p)=>{c.notify("AnimationStart",t),s.push(fc(c,t,{...i,delay:r+l(p)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function _R(e,t){return e.sortNodePosition(t)}function Iv(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(i=>fc(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=fc(e,t,r);else{let o=typeof t=="function"?qn(e,t,r.custom):t;n=Promise.all(cc(e,o,r))}return n.then(()=>{le.postRender(()=>{e.notify("AnimationComplete",t)})})}var WR=[...Cl].reverse(),UR=Cl.length;function KR(e){return t=>Promise.all(t.map(({animation:r,options:n})=>Iv(e,r,n)))}function kv(e){let t=KR(e),r=XR(),n=!0,o=l=>(c,p)=>{var d;let h=qn(e,p,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){let{transition:g,transitionEnd:v,...m}=h;c={...c,...m,...v}}return c};function i(l){t=l(e)}function s(l){let c=e.getProps(),p=e.getVariantContext(!0)||{},d=[],h=new Set,g={},v=1/0;for(let y=0;y<UR;y++){let b=WR[y],x=r[b],w=c[b]!==void 0?c[b]:p[b],D=hn(w),E=b===l?x.isActive:null;E===!1&&(v=y);let S=w===p[b]&&w!==c[b]&&D;if(S&&n&&e.manuallyAnimateOnMount&&(S=!1),x.protectedKeys={...g},!x.isActive&&E===null||!w&&!x.prevProp||_n(w)||typeof w=="boolean")continue;let O=qR(x.prevProp,w)||b===l&&x.isActive&&!S&&D||y>v&&D,F=!1,I=Array.isArray(w)?w:[w],G=I.reduce(o(b),{});E===!1&&(G={});let{prevResolvedValues:k={}}=x,H={...k,...G},V=M=>{O=!0,h.has(M)&&(F=!0,h.delete(M)),x.needsAnimating[M]=!0;let Z=e.getValue(M);Z&&(Z.liveStyle=!1)};for(let M in H){let Z=G[M],re=k[M];if(g.hasOwnProperty(M))continue;let se=!1;Is(Z)&&Is(re)?se=!N1(Z,re):se=Z!==re,se?Z!=null?V(M):h.add(M):Z!==void 0&&h.has(M)?V(M):x.protectedKeys[M]=!0}x.prevProp=w,x.prevResolvedValues=G,x.isActive&&(g={...g,...G}),n&&e.blockInitialAnimation&&(O=!1),O&&(!S||F)&&d.push(...I.map(M=>({animation:M,options:{type:b}})))}if(h.size){let y={};h.forEach(b=>{let x=e.getBaseTarget(b),w=e.getValue(b);w&&(w.liveStyle=!0),y[b]=x??null}),d.push({animation:y})}let m=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(m=!1),n=!1,m?t(d):Promise.resolve()}function u(l,c){var p;if(r[l].isActive===c)return Promise.resolve();(p=e.variantChildren)===null||p===void 0||p.forEach(h=>{var g;return(g=h.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;let d=s(l);for(let h in r)r[h].protectedKeys={};return d}return{animateChanges:s,setActive:u,setAnimateFunction:i,getState:()=>r}}function qR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!N1(t,e):!1}function Ho(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XR(){return{animate:Ho(!0),whileInView:Ho(),whileHover:Ho(),whileTap:Ho(),whileDrag:Ho(),whileFocus:Ho(),exit:Ho()}}var pc=class extends ft{constructor(t){super(t),t.animationState||(t.animationState=kv(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),_n(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){}};a();var YR=0,dc=class extends ft{constructor(){super(...arguments),this.id=YR++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let o=this.node.animationState.setActive("exit",!t);r&&!t&&o.then(()=>r(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};var Vv={animation:{Feature:pc},exit:{Feature:dc}};a();a();a();a();a();var Nv=(e,t)=>Math.abs(e-t);function Lv(e,t){let r=Nv(e.x,t.x),n=Nv(e.y,t.y);return Math.sqrt(r**2+n**2)}var ua=class{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let d=am(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,g=Lv(d.offset,{x:0,y:0})>=3;if(!h&&!g)return;let{point:v}=d,{timestamp:m}=qe;this.history.push({...v,timestamp:m});let{onStart:y,onMove:b}=this.handlers;h||(y&&y(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),b&&b(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=im(h,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:m}=this.handlers;if(this.dragSnapToOrigin&&m&&m(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=am(d.type==="pointercancel"?this.lastMoveEventInfo:im(h,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,y),v&&v(d,y)},!Il(t))return;this.dragSnapToOrigin=i,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;let s=Io(t),u=im(s,this.transformPagePoint),{point:l}=u,{timestamp:c}=qe;this.history=[{...l,timestamp:c}];let{onSessionStart:p}=r;p&&p(t,am(u,this.history)),this.removeListeners=wt(zt(this.contextWindow,"pointermove",this.handlePointerMove),zt(this.contextWindow,"pointerup",this.handlePointerUp),zt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ot(this.updatePoint)}};function im(e,t){return t?{point:t(e.point)}:e}function zv(e,t){return{x:e.x-t.x,y:e.y-t.y}}function am({point:e},t){return{point:e,delta:zv(e,Hv(t)),offset:zv(e,JR(t)),velocity:ZR(t,.1)}}function JR(e){return e[0]}function Hv(e){return e[e.length-1]}function ZR(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=Hv(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Ht(t)));)r--;if(!n)return{x:0,y:0};let i=Gt(o.timestamp-n.timestamp);if(i===0)return{x:0,y:0};let s={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}a();a();function vt(e){return e.max-e.min}function mc(e,t=0,r=.01){return Math.abs(e-t)<=r}function Gv(e,t,r,n=.5){e.origin=n,e.originPoint=xe(t.min,t.max,e.origin),e.scale=vt(r)/vt(t),(mc(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=xe(r.min,r.max,e.origin)-e.originPoint,(mc(e.translate)||isNaN(e.translate))&&(e.translate=0)}function la(e,t,r,n){Gv(e.x,t.x,r.x,n?n.originX:void 0),Gv(e.y,t.y,r.y,n?n.originY:void 0)}function jv(e,t,r){e.min=r.min+t.min,e.max=e.min+vt(t)}function Wv(e,t,r){jv(e.x,t.x,r.x),jv(e.y,t.y,r.y)}function _v(e,t,r){e.min=t.min-r.min,e.max=e.min+vt(t)}function ca(e,t,r){_v(e.x,t.x,r.x),_v(e.y,t.y,r.y)}function Yv(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?xe(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?xe(r,e,n.max):Math.min(e,r)),e}function Uv(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function Jv(e,{top:t,left:r,bottom:n,right:o}){return{x:Uv(e.x,r,o),y:Uv(e.y,t,n)}}function Kv(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function Zv(e,t){return{x:Kv(e.x,t.x),y:Kv(e.y,t.y)}}function Qv(e,t){let r=.5,n=vt(e),o=vt(t);return o>n?r=vn(t.min,t.max-n,e.min):n>o&&(r=vn(e.min,e.max-o,t.min)),Pt(0,1,r)}function e7(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var hc=.35;function t7(e=hc){return e===!1?e=0:e===!0&&(e=hc),{x:qv(e,"left","right"),y:qv(e,"top","bottom")}}function qv(e,t,r){return{min:Xv(e,t),max:Xv(e,r)}}function Xv(e,t){return typeof e=="number"?e:e[t]||0}a();var r7=()=>({translate:0,scale:1,origin:0,originPoint:0}),Go=()=>({x:r7(),y:r7()}),n7=()=>({min:0,max:0}),Ne=()=>({x:n7(),y:n7()});a();function jt(e){return[e("x"),e("y")]}a();a();function gc({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function o7({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function i7(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}a();a();function sm(e){return e===void 0||e===1}function vc({scale:e,scaleX:t,scaleY:r}){return!sm(e)||!sm(t)||!sm(r)}function bn(e){return vc(e)||um(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function um(e){return a7(e.x)||a7(e.y)}function a7(e){return e&&e!=="0%"}function Gs(e,t,r){let n=e-r,o=t*n;return r+o}function s7(e,t,r,n,o){return o!==void 0&&(e=Gs(e,o,n)),Gs(e,r,n)+t}function lm(e,t=0,r=1,n,o){e.min=s7(e.min,t,r,n,o),e.max=s7(e.max,t,r,n,o)}function cm(e,{x:t,y:r}){lm(e.x,t.translate,t.scale,t.originPoint),lm(e.y,r.translate,r.scale,r.originPoint)}function c7(e,t,r,n=!1){let o=r.length;if(!o)return;t.x=t.y=1;let i,s;for(let u=0;u<o;u++){i=r[u],s=i.projectionDelta;let l=i.instance;l&&l.style&&l.style.display==="contents"||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&jo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,cm(e,s)),n&&bn(i.latestValues)&&jo(e,i.latestValues))}t.x=u7(t.x),t.y=u7(t.y)}function u7(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Lr(e,t){e.min=e.min+t,e.max=e.max+t}function l7(e,t,[r,n,o]){let i=t[o]!==void 0?t[o]:.5,s=xe(e.min,e.max,i);lm(e,t[r],t[n],s,t.scale)}var QR=["x","scaleX","originX"],eM=["y","scaleY","originY"];function jo(e,t){l7(e.x,t,QR),l7(e.y,t,eM)}function fm(e,t){return gc(i7(e.getBoundingClientRect(),t))}function f7(e,t,r){let n=fm(e,r),{scroll:o}=t;return o&&(Lr(n.x,o.offset.x),Lr(n.y,o.offset.y)),n}a();var yc=({current:e})=>e?e.ownerDocument.defaultView:null;var tM=new WeakMap,Cc=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ne(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let o=p=>{let{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(Io(p,"page").point)},i=(p,d)=>{let{drag:h,dragPropagation:g,onDragStart:v}=this.getProps();if(h&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=R1(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jt(y=>{let b=this.getAxisMotionValue(y).get()||0;if(At.test(b)){let{projection:x}=this.visualElement;if(x&&x.layout){let w=x.layout.layoutBox[y];w&&(b=vt(w)*(parseFloat(b)/100))}}this.originPoint[y]=b}),v&&le.postRender(()=>v(p,d));let{animationState:m}=this.visualElement;m&&m.setActive("whileDrag",!0)},s=(p,d)=>{let{dragPropagation:h,dragDirectionLock:g,onDirectionLock:v,onDrag:m}=this.getProps();if(!h&&!this.openGlobalLock)return;let{offset:y}=d;if(g&&this.currentDirection===null){this.currentDirection=rM(y),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),m&&m(p,d)},u=(p,d)=>this.stop(p,d),l=()=>jt(p=>{var d;return this.getAnimationState(p)==="paused"&&((d=this.getAxisMotionValue(p).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new ua(t,{onSessionStart:o,onStart:i,onMove:s,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:yc(this.visualElement)})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i&&le.postRender(()=>i(t,r))}cancel(){this.isDragging=!1;let{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,n){let{drag:o}=this.getProps();if(!n||!bc(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=Yv(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;let{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;r&&mn(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Jv(o.layoutBox,r):this.constraints=!1,this.elastic=t7(n),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&jt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=e7(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!mn(t))return!1;let n=t.current;Dr(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=f7(n,o.root,this.visualElement.getTransformPagePoint()),s=Zv(o.layout.layoutBox,i);if(r){let u=r(o7(s));this.hasMutatedConstraints=!!u,u&&(s=gc(u))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},c=jt(p=>{if(!bc(p,r,this.currentDirection))return;let d=l&&l[p]||{};s&&(d={min:0,max:0});let h=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:n?t[p]:0,bounceStiffness:h,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(p,v)});return Promise.all(c).then(u)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return n.start(ia(t,n,0,r,this.visualElement))}stopAnimation(){jt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jt(t=>{var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(t){var r;return(r=this.getAxisMotionValue(t).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(t){let r=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),o=n[r];return o||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){jt(r=>{let{drag:n}=this.getProps();if(!bc(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){let{min:s,max:u}=o.layout.layoutBox[r];i.set(t[r]-xe(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!mn(r)||!n||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};jt(s=>{let u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){let l=u.get();o[s]=Qv({min:l,max:l},this.constraints[s])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),jt(s=>{if(!bc(s,t,null))return;let u=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];u.set(xe(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;tM.set(this.visualElement,this);let t=this.visualElement.current,r=zt(t,"pointerdown",l=>{let{drag:c,dragListener:p=!0}=this.getProps();c&&p&&this.start(l)}),n=()=>{let{dragConstraints:l}=this.getProps();mn(l)&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),n();let s=Lt(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(jt(p=>{let d=this.getAxisMotionValue(p);d&&(this.originPoint[p]+=l[p].translate,d.set(d.get()+l[p].translate))}),this.visualElement.render())});return()=>{s(),r(),i(),u&&u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:s=hc,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:s,dragMomentum:u}}};function bc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function rM(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var xc=class extends ft{constructor(t){super(t),this.removeGroupControls=Fe,this.removeListeners=Fe,this.controls=new Cc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Fe}unmount(){this.removeGroupControls(),this.removeListeners()}};a();var p7=e=>(t,r)=>{e&&le.postRender(()=>e(t,r))},wc=class extends ft{constructor(){super(...arguments),this.removePointerDownListener=Fe}onPointerDown(t){this.session=new ua(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yc(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:p7(t),onStart:p7(r),onMove:n,onEnd:(i,s)=>{delete this.session,o&&le.postRender(()=>o(i,s))}}}mount(){this.removePointerDownListener=zt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};a();import{jsx as aM}from"react/jsx-runtime";import{useContext as g7,Component as sM}from"react";a();import{useContext as nM,useId as oM,useEffect as iM}from"react";function d7(){let e=nM(jn);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=oM();return iM(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}a();var fa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};a();function m7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var pa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;let r=m7(e,t.target.x),n=m7(e,t.target.y);return`${r}% ${n}%`}};a();var h7={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=Ft.parse(e);if(o.length>5)return n;let i=Ft.createTransformer(e),s=typeof o[0]!="number"?1:0,u=r.x.scale*t.x,l=r.y.scale*t.y;o[0+s]/=u,o[1+s]/=l;let c=xe(u,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),i(o)}};var pm=class extends sM{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;c5(uM),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),fa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,s=n.projection;return s&&(s.isPresent=i,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||le.postRender(()=>{let u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),zi.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}};function Dc(e){let[t,r]=d7(),n=g7(Hi);return aM(pm,{...e,layoutGroup:n,switchLayoutGroup:g7(wl),isPresent:t,safeToRemove:r})}var uM={borderRadius:{...pa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:pa,borderTopRightRadius:pa,borderBottomLeftRadius:pa,borderBottomRightRadius:pa,boxShadow:h7};a();a();a();var C7=["TopLeft","TopRight","BottomLeft","BottomRight"],lM=C7.length,v7=e=>typeof e=="string"?parseFloat(e):e,y7=e=>typeof e=="number"||oe.test(e);function x7(e,t,r,n,o,i){o?(e.opacity=xe(0,r.opacity!==void 0?r.opacity:1,cM(n)),e.opacityExit=xe(t.opacity!==void 0?t.opacity:1,0,fM(n))):i&&(e.opacity=xe(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<lM;s++){let u=`border${C7[s]}Radius`,l=b7(t,u),c=b7(r,u);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||y7(l)===y7(c)?(e[u]=Math.max(xe(v7(l),v7(c),n),0),(At.test(c)||At.test(l))&&(e[u]+="%")):e[u]=c}(t.rotate||r.rotate)&&(e.rotate=xe(t.rotate||0,r.rotate||0,n))}function b7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var cM=w7(0,.5,nc),fM=w7(.5,.95,Fe);function w7(e,t,r){return n=>n<e?0:n>t?1:r(vn(e,t,n))}a();function D7(e,t){e.min=t.min,e.max=t.max}function or(e,t){D7(e.x,t.x),D7(e.y,t.y)}a();function S7(e,t,r,n,o){return e-=t,e=Gs(e,1/r,n),o!==void 0&&(e=Gs(e,1/o,n)),e}function pM(e,t=0,r=1,n=.5,o,i=e,s=e){if(At.test(t)&&(t=parseFloat(t),t=xe(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=xe(i.min,i.max,n);e===i&&(u-=t),e.min=S7(e.min,t,r,u,o),e.max=S7(e.max,t,r,u,o)}function E7(e,t,[r,n,o],i,s){pM(e,t[r],t[n],t[o],t.scale,i,s)}var dM=["x","scaleX","originX"],mM=["y","scaleY","originY"];function dm(e,t,r,n){E7(e.x,t,dM,r?r.x:void 0,n?n.x:void 0),E7(e.y,t,mM,r?r.y:void 0,n?n.y:void 0)}a();function T7(e){return e.translate===0&&e.scale===1}function mm(e){return T7(e.x)&&T7(e.y)}function P7(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function hm(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function gm(e){return vt(e.x)/vt(e.y)}a();var Sc=class{constructor(){this.members=[]}add(t){aa(this.members,t),t.scheduleRender()}remove(t){if(sa(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,r&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:o}=t.options;o===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:r,resumingFrom:n}=t;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};a();function vm(e,t,r){let n="",o=e.x.translate/t.x,i=e.y.translate/t.y,s=r?.z||0;if((o||i||s)&&(n=`translate3d(${o}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:c,rotate:p,rotateX:d,rotateY:h,skewX:g,skewY:v}=r;c&&(n=`perspective(${c}px) ${n}`),p&&(n+=`rotate(${p}deg) `),d&&(n+=`rotateX(${d}deg) `),h&&(n+=`rotateY(${h}deg) `),g&&(n+=`skewX(${g}deg) `),v&&(n+=`skewY(${v}deg) `)}let u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(n+=`scale(${u}, ${l})`),n||"none"}a();a();var A7=(e,t)=>e.depth-t.depth;var Ec=class{constructor(){this.children=[],this.isDirty=!1}add(t){aa(this.children,t),this.isDirty=!0}remove(t){sa(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(A7),this.isDirty=!1,this.children.forEach(t)}};a();function O7(e,t){let r=nr.now(),n=({timestamp:o})=>{let i=o-r;i>=t&&(Ot(n),e(i-t))};return le.read(n,!0),()=>Ot(n)}a();function F7(e){window.MotionDebug&&window.MotionDebug.record(e)}a();function B7(e){return e instanceof SVGElement&&e.tagName!=="svg"}a();function $7(e,t,r){let n=Re(e)?e:yn(e);return n.start(ia("",n,t,r)),n.animation}var ym=["","X","Y","Z"],hM={visibility:"hidden"},R7=1e3,gM=0,_o={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function bm(e,t,r,n){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function H7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;let{visualElement:t}=e.options;return t?lc(t)?!0:e.parent&&!e.parent.hasCheckedOptimisedAppear?H7(e.parent):!1:!1}function Tc({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},u=t?.()){this.id=gM++,this.animationId=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.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,_o.totalNodes=_o.resolvedTargetDeltas=_o.recalculatedProjection=0,this.nodes.forEach(bM),this.nodes.forEach(SM),this.nodes.forEach(EM),this.nodes.forEach(CM),F7(_o)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ec)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new eo),this.eventHandlers.get(s).add(u)}notifyListeners(s,...u){let l=this.eventHandlers.get(s);l&&l.notify(...u)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=B7(s),this.instance=s;let{layoutId:l,layout:c,visualElement:p}=this.options;if(p&&!p.current&&p.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(c||l)&&(this.isLayoutDirty=!0),e){let d,h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=O7(h,250),fa.hasAnimatedSinceResize&&(fa.hasAnimatedSinceResize=!1,this.nodes.forEach(I7))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&p&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let m=this.options.transition||p.getDefaultTransition()||FM,{onLayoutAnimationStart:y,onLayoutAnimationComplete:b}=p.getProps(),x=!this.targetLayout||!hm(this.targetLayout,v)||g,w=!h&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||h&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);let D={...Qi(m,"layout"),onPlay:y,onComplete:b};(p.shouldReduceMotion||this.options.layoutRoot)&&(D.delay=0,D.type=!1),this.startAnimation(D)}else h||I7(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ot(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(TM),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&H7(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){let d=this.path[p];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}let{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(M7);return}this.isUpdating||this.nodes.forEach(wM),this.isUpdating=!1,this.nodes.forEach(DM),this.nodes.forEach(vM),this.nodes.forEach(yM),this.clearAllSnapshots();let u=nr.now();qe.delta=Pt(0,1e3/60,u-qe.timestamp),qe.timestamp=u,qe.isProcessing=!0,Ml.update.process(qe),Ml.preRender.process(qe),Ml.render.process(qe),qe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zi.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(xM),this.sharedNodes.forEach(PM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ne(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let u=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u&&(this.scroll={animationId:this.root.animationId,phase:s,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform,u=this.projectionDelta&&!mm(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,p=c!==this.prevTransformTemplateValue;s&&(u||bn(this.latestValues)||p)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let u=this.measurePageBox(),l=this.removeElementScroll(u);return s&&(l=this.removeTransform(l)),BM(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:s}=this.options;if(!s)return Ne();let u=s.measureViewportBox(),{scroll:l}=this.root;return l&&(Lr(u.x,l.offset.x),Lr(u.y,l.offset.y)),u}removeElementScroll(s){let u=Ne();or(u,s);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:p,options:d}=c;if(c!==this.root&&p&&d.layoutScroll){if(p.isRoot){or(u,s);let{scroll:h}=this.root;h&&(Lr(u.x,-h.offset.x),Lr(u.y,-h.offset.y))}Lr(u.x,p.offset.x),Lr(u.y,p.offset.y)}}return u}applyTransform(s,u=!1){let l=Ne();or(l,s);for(let c=0;c<this.path.length;c++){let p=this.path[c];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&jo(l,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),bn(p.latestValues)&&jo(l,p.latestValues)}return bn(this.latestValues)&&jo(l,this.latestValues),l}removeTransform(s){let u=Ne();or(u,s);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!bn(c.latestValues))continue;vc(c.latestValues)&&c.updateSnapshot();let p=Ne(),d=c.measurePageBox();or(p,d),dm(u,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,p)}return bn(this.latestValues)&&dm(u,this.latestValues),u}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}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!==qe.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var u;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget))return;let{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=qe.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),ca(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ne(),this.targetWithTransforms=Ne()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):or(this.target,this.layout.layoutBox),cm(this.target,this.targetDelta)):or(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ne(),this.relativeTargetOrigin=Ne(),ca(this.relativeTargetOrigin,this.target,g.target),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}_o.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||vc(this.parent.latestValues)||um(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let u=this.getLead(),l=!!this.resumingFrom||this!==u,c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===qe.timestamp&&(c=!1),c)return;let{layout:p,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||d))return;or(this.layoutCorrected,this.layout.layoutBox);let h=this.treeScale.x,g=this.treeScale.y;c7(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Ne());let{target:v}=u;if(!v){this.projectionTransform&&(this.projectionDelta=Go(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=Go(),this.projectionDeltaWithTransform=Go());let m=this.projectionTransform;la(this.projectionDelta,this.layoutCorrected,v,this.latestValues),this.projectionTransform=vm(this.projectionDelta,this.treeScale),(this.projectionTransform!==m||this.treeScale.x!==h||this.treeScale.y!==g)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),_o.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),s){let u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(s,u=!1){let l=this.snapshot,c=l?l.latestValues:{},p={...this.latestValues},d=Go();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;let h=Ne(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,m=g!==v,y=this.getStack(),b=!y||y.members.length<=1,x=!!(m&&!b&&this.options.crossfade===!0&&!this.path.some(OM));this.animationProgress=0;let w;this.mixTargetDelta=D=>{let E=D/1e3;k7(d.x,s.x,E),k7(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ca(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),AM(this.relativeTarget,this.relativeTargetOrigin,h,E),w&&P7(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ne()),or(w,this.relativeTarget)),m&&(this.animationValues=p,x7(p,c,this.latestValues,E,x,b)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{fa.hasAnimatedSinceResize=!0,this.currentAnimation=$7(0,R7,{...s,onUpdate:u=>{this.mixTargetDelta(u),s.onUpdate&&s.onUpdate(u)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(R7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:u,target:l,layout:c,latestValues:p}=s;if(!(!u||!l||!c)){if(this!==s&&this.layout&&c&&G7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ne();let d=vt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;let h=vt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}or(u,l),jo(u,p),la(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Sc),this.sharedNodes.get(s).add(u);let c=u.options.initialPromotionConfig;u.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(u):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:u}=this.options;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:u}=this.options;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:u,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let u=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;let c={};l.z&&bm("z",s,c,this.animationValues);for(let p=0;p<ym.length;p++)bm(`rotate${ym[p]}`,s,c,this.animationValues),bm(`skew${ym[p]}`,s,c,this.animationValues);s.render();for(let p in c)s.setStaticValue(p,c[p]),this.animationValues&&(this.animationValues[p]=c[p]);s.scheduleRender()}getProjectionStyles(s){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return hM;let c={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Zi(s?.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none",c;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let m={};return this.options.layoutId&&(m.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,m.pointerEvents=Zi(s?.pointerEvents)||""),this.hasProjected&&!bn(this.latestValues)&&(m.transform=p?p({},""):"none",this.hasProjected=!1),m}let h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=vm(this.projectionDeltaWithTransform,this.treeScale,h),p&&(c.transform=p(h,c.transform));let{x:g,y:v}=this.projectionDelta;c.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(u=h.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(let m in ji){if(h[m]===void 0)continue;let{correct:y,applyTo:b}=ji[m],x=c.transform==="none"?h[m]:y(h[m],d);if(b){let w=b.length;for(let D=0;D<w;D++)c[b[D]]=x}else c[m]=x}return this.options.layoutId&&(c.pointerEvents=d===this?Zi(s?.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(M7),this.root.sharedNodes.clear()}}}function vM(e){e.updateLayout()}function yM(e){var t;let r=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:o}=e.layout,{animationType:i}=e.options,s=r.source!==e.layout.source;i==="size"?jt(d=>{let h=s?r.measuredBox[d]:r.layoutBox[d],g=vt(h);h.min=n[d].min,h.max=h.min+g}):G7(i,r.layoutBox,n)&&jt(d=>{let h=s?r.measuredBox[d]:r.layoutBox[d],g=vt(n[d]);h.max=h.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});let u=Go();la(u,n,r.layoutBox);let l=Go();s?la(l,e.applyTransform(o,!0),r.measuredBox):la(l,n,r.layoutBox);let c=!mm(u),p=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:h,layout:g}=d;if(h&&g){let v=Ne();ca(v,r.layoutBox,h.layoutBox);let m=Ne();ca(m,n,g.layoutBox),hm(v,m)||(p=!0),d.options.layoutRoot&&(e.relativeTarget=m,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:u,hasLayoutChanged:c,hasRelativeTargetChanged:p})}else if(e.isLead()){let{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function bM(e){_o.totalNodes++,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 CM(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xM(e){e.clearSnapshot()}function M7(e){e.clearMeasurements()}function wM(e){e.isLayoutDirty=!1}function DM(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function I7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function SM(e){e.resolveTargetDelta()}function EM(e){e.calcProjection()}function TM(e){e.resetSkewAndRotation()}function PM(e){e.removeLeadSnapshot()}function k7(e,t,r){e.translate=xe(t.translate,0,r),e.scale=xe(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function V7(e,t,r,n){e.min=xe(t.min,r.min,n),e.max=xe(t.max,r.max,n)}function AM(e,t,r,n){V7(e.x,t.x,r.x,n),V7(e.y,t.y,r.y,n)}function OM(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var FM={duration:.45,ease:[.4,0,.1,1]},N7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),L7=N7("applewebkit/")&&!N7("chrome/")?Math.round:Fe;function z7(e){e.min=L7(e.min),e.max=L7(e.max)}function BM(e){z7(e.x),z7(e.y)}function G7(e,t,r){return e==="position"||e==="preserve-aspect"&&!mc(gm(t),gm(r),.2)}a();var j7=Tc({attachResizeListener:(e,t)=>Lt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Cm={current:void 0},Pc=Tc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cm.current){let e=new j7({});e.mount(window),e.setOptions({layoutScroll:!0}),Cm.current=e}return Cm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"});var _7={pan:{Feature:wc},drag:{Feature:xc,ProjectionNode:Pc,MeasureLayout:Dc}};a();import{Fragment as kM}from"react";a();a();a();a();a();var js={current:null},Ac={current:!1};function W7(){if(Ac.current=!0,!!Vi)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>js.current=e.matches;e.addListener(t),t()}else js.current=!1}a();function U7(e,t,r){let{willChange:n}=t;for(let o in t){let i=t[o],s=r[o];if(Re(i))e.addValue(o,i),zo(n)&&n.add(o);else if(Re(s))e.addValue(o,yn(i,{owner:e})),zo(n)&&n.remove(o);else if(s!==i)if(e.hasValue(o)){let u=e.getValue(o);u.liveStyle===!0?u.jump(i):u.hasAnimated||u.set(i)}else{let u=e.getStaticValue(o);e.addValue(o,yn(u!==void 0?u:i,{owner:e}))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}a();var xm=new WeakMap;a();var $M=[...H1,Je,Ft],K7=e=>$M.find(Wl(e));var X7=Object.keys(Mo),RM=X7.length,q7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],MM=Bs.length;function Y7(e){if(e)return e.options.allowProjection!==!1?e.projection:Y7(e.parent)}var Oc=class{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s},u={}){this.resolveKeyframes=(h,g,v,m)=>new this.KeyframeResolver(h,g,v,m,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Jn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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.scheduleRender=()=>le.render(this.render,!1,!0);let{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=r.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=r,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!i,this.isControllingVariants=Ro(r),this.isVariantNode=xl(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:p,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(let h in d){let g=d[h];l[h]!==void 0&&Re(g)&&(g.set(l[h],!1),zo(p)&&p.add(h))}}mount(t){this.current=t,xm.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),Ac.current||W7(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:js.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;xm.delete(this.current),this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(r=>r()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let r in this.events)this.events[r].clear();for(let r in this.features)(t=this.features[r])===null||t===void 0||t.unmount();this.current=null}bindToMotionValue(t,r){let n=Nt.has(t),o=r.on("change",s=>{this.latestValues[t]=s,this.props.onUpdate&&le.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures({children:t,...r},n,o,i){let s,u;for(let l=0;l<RM;l++){let c=X7[l],{isEnabled:p,Feature:d,ProjectionNode:h,MeasureLayout:g}=Mo[c];h&&(s=h),p(r)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),g&&(u=g))}if((this.type==="html"||this.type==="svg")&&!this.projection&&s){let{layoutId:l,layout:c,drag:p,dragConstraints:d,layoutScroll:h,layoutRoot:g}=r;this.projection=new s(this.latestValues,r["data-framer-portal-id"]?void 0:Y7(this.parent)),this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!p||d&&mn(d),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:i,layoutScroll:h,layoutRoot:g})}return u}updateFeatures(){for(let t in this.features){let r=this.features[t];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ne()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;n<q7.length;n++){let o=q7[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let i="on"+o,s=t[i];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=U7(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let n=this.parent?this.parent.getVariantContext()||{}:{};return this.props.initial!==void 0&&(n.initial=this.props.initial),n}let r={};for(let n=0;n<MM;n++){let o=Bs[n],i=this.props[o];(hn(i)||i===!1)&&(r[o]=i)}return r}addVariantChild(t){let r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){let n=this.values.get(t);r!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);let r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=yn(r===null?void 0:r,{owner:this}),this.addValue(t,n)),n}readValue(t,r){var n;let o=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(n=this.getBaseTargetFromProps(this.props,t))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,t,this.options);return o!=null&&(typeof o=="string"&&(_l(o)||jl(o))?o=parseFloat(o):!K7(o)&&Ft.test(r)&&(o=Kl(t,r)),this.setBaseTarget(t,Re(o)?o.get():o)),Re(o)?o.get():o}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,o;if(typeof n=="string"||typeof n=="object"){let s=Ji(this.props,n,(r=this.presenceContext)===null||r===void 0?void 0:r.custom);s&&(o=s[t])}if(n&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Re(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new eo),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var da=class extends Oc{constructor(){super(...arguments),this.KeyframeResolver=ra}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}};function IM(e){return window.getComputedStyle(e)}var Fc=class extends da{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,r){if(Nt.has(r)){let n=ta(r);return n&&n.default||0}else{let n=IM(t),o=(El(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return fm(t,r)}build(t,r,n,o){Ui(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Yi(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Re(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(t,r,n,o){Al(t,r,n,o)}};a();var Bc=class extends da{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Nt.has(r)){let n=ta(r);return n&&n.default||0}return r=Ol.has(r)?r:Li(r),t.getAttribute(r)}measureInstanceViewportBox(){return Ne()}scrapeMotionValuesFromProps(t,r,n){return Bl(t,r,n)}build(t,r,n,o){qi(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){Fl(t,r,n,o)}mount(t){this.isSVGTag=Xi(t.tagName),super.mount(t)}};var J7=(e,t)=>Gi(e)?new Bc(t,{enableHardwareAcceleration:!1}):new Fc(t,{allowProjection:e!==kM,enableHardwareAcceleration:!0});a();var Z7={layout:{ProjectionNode:Pc,MeasureLayout:Dc}};var VM={...Vv,...j5,..._7,...Z7},_s=u5((e,t)=>k5(e,t,VM,J7));a();import{jsx as Ws,Fragment as s4}from"react/jsx-runtime";import{useContext as KM,useRef as Ic,cloneElement as qM,Children as XM,isValidElement as YM}from"react";a();import{useState as LM,useCallback as Q7}from"react";a();import{useRef as NM}from"react";function $c(){let e=NM(!1);return Ni(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function e4(){let e=$c(),[t,r]=LM(0),n=Q7(()=>{e.current&&r(t+1)},[t]);return[Q7(()=>le.postRender(n),[n]),t]}a();import{jsx as n4}from"react/jsx-runtime";import*as i4 from"react";import{useId as _M,useMemo as o4}from"react";a();import{jsx as zM}from"react/jsx-runtime";import*as Rc from"react";import{useId as HM,useRef as t4,useContext as GM,useInsertionEffect as jM}from"react";var wm=class extends Rc.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function r4({children:e,isPresent:t}){let r=HM(),n=t4(null),o=t4({width:0,height:0,top:0,left:0}),{nonce:i}=GM(ki);return jM(()=>{let{width:s,height:u,top:l,left:c}=o.current;if(t||!n.current||!s||!u)return;n.current.dataset.motionPopId=r;let p=document.createElement("style");return i&&(p.nonce=i),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
101
101
|
[data-motion-pop-id="${r}"] {
|
|
102
102
|
position: absolute !important;
|
|
103
103
|
width: ${s}px !important;
|
|
@@ -298,12 +298,11 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
298
298
|
background: white;
|
|
299
299
|
border-left-color: ${({accentColor:e})=>e};
|
|
300
300
|
border-left-style: solid;
|
|
301
|
-
border-left-width: 8px;
|
|
301
|
+
border-left-width: 8px; /* accent border */
|
|
302
302
|
box-shadow: ${({theme:e})=>e.shadow.elevation2};
|
|
303
303
|
display: flex;
|
|
304
304
|
gap: ${({theme:e})=>e.spacing.space04};
|
|
305
305
|
padding: ${({theme:e})=>`${e.spacing.space04} ${e.spacing.space04} ${e.spacing.space04} ${e.spacing.space04}`};
|
|
306
|
-
/* transform: translate3d(0, 0, 0); */
|
|
307
306
|
z-index: ${({theme:e})=>e.zIndex.Toast};
|
|
308
307
|
`,jI=Ty.div`
|
|
309
308
|
align-self: center;
|
|
@@ -707,7 +706,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
707
706
|
`;var Oy=rk`
|
|
708
707
|
${Py}
|
|
709
708
|
${Ay}
|
|
710
|
-
`;import{jsx as Xs,jsxs as nk}from"react/jsx-runtime";var OAe=({children:e,theme:t={},globalStylesIncluded:r=!0,skipAnimations:n=!1,Link:o})=>(n&&(dn.skipAnimations=!0),nk(h4,{theme:t,children:[r?Xs(Oy,{}):null,Xs(E1,{children:Xs(y4,{value:{Link:o},children:Xs(_c,{children:Xs(Nm,{children:e})})})})]}));a();a();import{useState as ok,useCallback as Hm}from"react";var Gm=(e=!1)=>{let[t,r]=ok(e),n=Hm(()=>r(s=>!s),[]),o=Hm(()=>r(!0),[]),i=Hm(()=>r(!1),[]);return[t,n,o,i,r]};a();a();import{useCallback as sk}from"react";a();a();import{useEffect as ik,useRef as Fy,useState as ak}from"react";var Wc=e=>{let[t,r]=ak(!1),n=Fy(),o=Fy(e),i=s=>{clearTimeout(n.current),r(!o.current),n.current=window.setTimeout(()=>r(o.current),s)};return ik(()=>()=>clearTimeout(n.current),[]),[t,i]};var uk=(e,t=1500)=>{let[r,n]=Wc(!1),[o,i]=Wc(!1);return[sk(async()=>{try{await ds(e),t&&t>0&&n(t)}catch(u){u instanceof Error&&i(t)}},[e,t,n,i]),r,o]};a();a();import{useMemo as lk,useState as ck,useRef as fk,useLayoutEffect as pk}from"react";var dk={width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0},jm=()=>{let e=fk(null),[t,r]=ck(dk),n=lk(()=>new window.ResizeObserver(o=>{if(o[0]){let{width:i,height:s,top:u,left:l,bottom:c,right:p,x:d,y:h}=o[0].contentRect;r({width:i,height:s,top:u,left:l,bottom:c,right:p,x:d,y:h})}}),[]);return pk(()=>{if(e.current)return n.observe(e.current),()=>{n.disconnect()}},[n]),[e,t]};a();a();import{useEffect as _m,useRef as By}from"react";var mk=e=>!!(typeof e=="object"&&e?.addEventListener),Wm=(e,t,r=window,n={})=>{let o=By(),i=By();_m(()=>{o.current=t},[t]),_m(()=>{i.current=n},[n]),_m(()=>{if(!e||!mk(r))return;let s=u=>o.current!==void 0?o.current(u):()=>{};return r.addEventListener(e,s,i.current),()=>{r.removeEventListener(e,s,i.current)}},[e,r,i])};a();a();import{useRef as _y,useCallback as vk,useEffect as yk}from"react";a();var Km='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex="0"], [contenteditable]',hk=e=>{let{display:t,visibility:r}=window.getComputedStyle(e),n=t==="none"||e.style.display==="none"||r==="none"||e.style.visibility==="hidden";return e.offsetWidth<=0&&e.offsetHeight<=0||n},gk=e=>{let t=e;for(;t&&t!==document.body;){if(hk(t))return!1;t=t.parentNode}return!0},$y=e=>{let t=e.getAttribute("tabindex");return Number.parseInt(t??void 0,10)},Ry=e=>{let t=$y(e);return Number.isNaN(t)},Uc=e=>{let t=/input|select|textarea|button|object/,r=e.nodeName.toLowerCase(),n=!Ry(e);return!!(t.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&gk(e)},qm=e=>{let t=$y(e);return(Ry(e)||t>=0)&&Uc(e)},My=e=>Array.from(e.querySelectorAll(Km)).filter(qm),Iy=[],ga=null,Um=!1,ky=()=>{Um=!0},Vy=()=>{if(Um){if(Um=!1,!ga||ga.contains(document.activeElement))return;(My(ga)[0]??ga).focus()}},Ny=()=>{let e=document.activeElement;e!==null&&Iy.push(e)},Ly=()=>{let e=null;try{e=Iy.pop(),e&&e.focus()}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},zy=e=>{ga=e,document.addEventListener("focusout",ky,!1),document.addEventListener("focusin",Vy,!0)},Hy=()=>{ga=null,document.removeEventListener("focusout",ky),document.removeEventListener("focusin",Vy)},Gy=(e,t)=>{let r=My(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();let i=r[t.shiftKey?r.length-1:0];i&&i.focus()},jy=(e,t)=>{t===void 0&&(t="body > :not(script)");let r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;let o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{n&&(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}};var Xm=(e=!0,t={})=>{let r=_y(null),n=_y(null),o=vk(i=>{if(n.current!==null&&n.current(),r.current&&(Ly(),Hy()),e&&i!==null&&i!==void 0){zy(i),Ny();let s=u=>{n.current=t.disableAriaHider??!1?null:jy(u);let l=null;if(J(t.focusSelector)&&(l=typeof t.focusSelector=="string"?u.querySelector(t.focusSelector):t.focusSelector),!l){let c=Array.from(u.querySelectorAll(Km));l=c.find(qm)??c.find(Uc)??null,!l&&Uc(u)&&(l=u)}l&&l.focus()};setTimeout(()=>{i.ownerDocument&&s(i),i.ownerDocument}),r.current=i}else r.current=null},[e,t.focusSelector,t.disableAriaHider]);return yk(()=>{if(!e)return;let i=s=>{s.key==="Tab"&&r.current&&Gy(r.current,s)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e]),o};a();a();import{useCallback as bk,useState as Ck}from"react";var xk=()=>{let[,e]=Ck(Object.create(null));return bk(()=>{e(Object.create(null))},[e])};a();a();a();var wk=function(t){return Dk(t)&&!Sk(t)};function Dk(e){return!!e&&typeof e=="object"}function Sk(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pk(e)}var Ek=typeof Symbol=="function"&&Symbol.for,Tk=Ek?Symbol.for("react.element"):60103;function Pk(e){return e.$$typeof===Tk}function Ak(e){return Array.isArray(e)?[]:{}}function Kc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ys(Ak(e),e,t):e}function Ok(e,t,r){return e.concat(t).map(function(n){return Kc(n,r)})}function Fk(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(o){n[o]=Kc(e[o],r)}),Object.keys(t).forEach(function(o){!r.isMergeableObject(t[o])||!e[o]?n[o]=Kc(t[o],r):n[o]=Ys(e[o],t[o],r)}),n}function Ys(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ok,r.isMergeableObject=r.isMergeableObject||wk;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):Fk(e,t,r):Kc(t,r)}Ys.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Ys(n,o,r)},{})};var Bk=Ys,qc=Bk;a();a();a();a();a();var $k=typeof window=="object"&&window&&window.Object===Object&&window,Xc=$k;var Rk=typeof self=="object"&&self&&self.Object===Object&&self,Mk=Xc||Rk||Function("return this")(),et=Mk;var Ik=et.Symbol,hr=Ik;a();var Wy=Object.prototype,kk=Wy.hasOwnProperty,Vk=Wy.toString,Js=hr?hr.toStringTag:void 0;function Nk(e){var t=kk.call(e,Js),r=e[Js];try{e[Js]=void 0;var n=!0}catch{}var o=Vk.call(e);return n&&(t?e[Js]=r:delete e[Js]),o}var Uy=Nk;a();var Lk=Object.prototype,zk=Lk.toString;function Hk(e){return zk.call(e)}var Ky=Hk;var Gk="[object Null]",jk="[object Undefined]",qy=hr?hr.toStringTag:void 0;function _k(e){return e==null?e===void 0?jk:Gk:qy&&qy in Object(e)?Uy(e):Ky(e)}var ir=_k;a();a();function Wk(e,t){return function(r){return e(t(r))}}var Yc=Wk;var Uk=Yc(Object.getPrototypeOf,Object),va=Uk;a();function Kk(e){return e!=null&&typeof e=="object"}var _t=Kk;var qk="[object Object]",Xk=Function.prototype,Yk=Object.prototype,Xy=Xk.toString,Jk=Yk.hasOwnProperty,Zk=Xy.call(Object);function Qk(e){if(!_t(e)||ir(e)!=qk)return!1;var t=va(e);if(t===null)return!0;var r=Jk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Xy.call(r)==Zk}var Ym=Qk;a();a();a();a();a();function eV(){this.__data__=[],this.size=0}var Yy=eV;a();a();a();function tV(e,t){return e===t||e!==e&&t!==t}var Jc=tV;function rV(e,t){for(var r=e.length;r--;)if(Jc(e[r][0],t))return r;return-1}var ro=rV;var nV=Array.prototype,oV=nV.splice;function iV(e){var t=this.__data__,r=ro(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():oV.call(t,r,1),--this.size,!0}var Jy=iV;a();function aV(e){var t=this.__data__,r=ro(t,e);return r<0?void 0:t[r][1]}var Zy=aV;a();function sV(e){return ro(this.__data__,e)>-1}var Qy=sV;a();function uV(e,t){var r=this.__data__,n=ro(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var eb=uV;function ya(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ya.prototype.clear=Yy;ya.prototype.delete=Jy;ya.prototype.get=Zy;ya.prototype.has=Qy;ya.prototype.set=eb;var no=ya;a();function lV(){this.__data__=new no,this.size=0}var tb=lV;a();function cV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var rb=cV;a();function fV(e){return this.__data__.get(e)}var nb=fV;a();function pV(e){return this.__data__.has(e)}var ob=pV;a();a();a();a();a();a();function dV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hr=dV;var mV="[object AsyncFunction]",hV="[object Function]",gV="[object GeneratorFunction]",vV="[object Proxy]";function yV(e){if(!Hr(e))return!1;var t=ir(e);return t==hV||t==gV||t==mV||t==vV}var Zc=yV;a();a();var bV=et["__core-js_shared__"],Qc=bV;var ib=function(){var e=/[^.]+$/.exec(Qc&&Qc.keys&&Qc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function CV(e){return!!ib&&ib in e}var ab=CV;a();var xV=Function.prototype,wV=xV.toString;function DV(e){if(e!=null){try{return wV.call(e)}catch{}try{return e+""}catch{}}return""}var wn=DV;var SV=/[\\^$.*+?()[\]{}|]/g,EV=/^\[object .+?Constructor\]$/,TV=Function.prototype,PV=Object.prototype,AV=TV.toString,OV=PV.hasOwnProperty,FV=RegExp("^"+AV.call(OV).replace(SV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BV(e){if(!Hr(e)||ab(e))return!1;var t=Zc(e)?FV:EV;return t.test(wn(e))}var sb=BV;a();function $V(e,t){return e?.[t]}var ub=$V;function RV(e,t){var r=ub(e,t);return sb(r)?r:void 0}var Wt=RV;var MV=Wt(et,"Map"),oo=MV;a();a();a();a();a();var IV=Wt(Object,"create"),Dn=IV;function kV(){this.__data__=Dn?Dn(null):{},this.size=0}var lb=kV;a();function VV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cb=VV;a();var NV="__lodash_hash_undefined__",LV=Object.prototype,zV=LV.hasOwnProperty;function HV(e){var t=this.__data__;if(Dn){var r=t[e];return r===NV?void 0:r}return zV.call(t,e)?t[e]:void 0}var fb=HV;a();var GV=Object.prototype,jV=GV.hasOwnProperty;function _V(e){var t=this.__data__;return Dn?t[e]!==void 0:jV.call(t,e)}var pb=_V;a();var WV="__lodash_hash_undefined__";function UV(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dn&&t===void 0?WV:t,this}var db=UV;function ba(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ba.prototype.clear=lb;ba.prototype.delete=cb;ba.prototype.get=fb;ba.prototype.has=pb;ba.prototype.set=db;var Jm=ba;function KV(){this.size=0,this.__data__={hash:new Jm,map:new(oo||no),string:new Jm}}var mb=KV;a();a();a();function qV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var hb=qV;function XV(e,t){var r=e.__data__;return hb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var io=XV;function YV(e){var t=io(this,e).delete(e);return this.size-=t?1:0,t}var gb=YV;a();function JV(e){return io(this,e).get(e)}var vb=JV;a();function ZV(e){return io(this,e).has(e)}var yb=ZV;a();function QV(e,t){var r=io(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var bb=QV;function Ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ca.prototype.clear=mb;Ca.prototype.delete=gb;Ca.prototype.get=vb;Ca.prototype.has=yb;Ca.prototype.set=bb;var Zs=Ca;var eN=200;function tN(e,t){var r=this.__data__;if(r instanceof no){var n=r.__data__;if(!oo||n.length<eN-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Zs(n)}return r.set(e,t),this.size=r.size,this}var Cb=tN;function xa(e){var t=this.__data__=new no(e);this.size=t.size}xa.prototype.clear=tb;xa.prototype.delete=rb;xa.prototype.get=nb;xa.prototype.has=ob;xa.prototype.set=Cb;var xb=xa;a();function rN(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var wb=rN;a();a();a();var nN=function(){try{var e=Wt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Zm=nN;function oN(e,t,r){t=="__proto__"&&Zm?Zm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ef=oN;var iN=Object.prototype,aN=iN.hasOwnProperty;function sN(e,t,r){var n=e[t];(!(aN.call(e,t)&&Jc(n,r))||r===void 0&&!(t in e))&&ef(e,t,r)}var tf=sN;a();a();function uN(e,t,r,n){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),o?ef(r,u,l):tf(r,u,l)}return r}var ao=uN;a();a();a();function lN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Db=lN;a();a();var cN="[object Arguments]";function fN(e){return _t(e)&&ir(e)==cN}var Qm=fN;var Sb=Object.prototype,pN=Sb.hasOwnProperty,dN=Sb.propertyIsEnumerable,mN=Qm(function(){return arguments}())?Qm:function(e){return _t(e)&&pN.call(e,"callee")&&!dN.call(e,"callee")},Eb=mN;a();var hN=Array.isArray,Gr=hN;a();a();function gN(){return!1}var Tb=gN;var Ob=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pb=Ob&&typeof module=="object"&&module&&!module.nodeType&&module,vN=Pb&&Pb.exports===Ob,Ab=vN?et.Buffer:void 0,yN=Ab?Ab.isBuffer:void 0,bN=yN||Tb,rf=bN;a();var CN=9007199254740991,xN=/^(?:0|[1-9]\d*)$/;function wN(e,t){var r=typeof e;return t=t??CN,!!t&&(r=="number"||r!="symbol"&&xN.test(e))&&e>-1&&e%1==0&&e<t}var Fb=wN;a();a();a();var DN=9007199254740991;function SN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DN}var nf=SN;var EN="[object Arguments]",TN="[object Array]",PN="[object Boolean]",AN="[object Date]",ON="[object Error]",FN="[object Function]",BN="[object Map]",$N="[object Number]",RN="[object Object]",MN="[object RegExp]",IN="[object Set]",kN="[object String]",VN="[object WeakMap]",NN="[object ArrayBuffer]",LN="[object DataView]",zN="[object Float32Array]",HN="[object Float64Array]",GN="[object Int8Array]",jN="[object Int16Array]",_N="[object Int32Array]",WN="[object Uint8Array]",UN="[object Uint8ClampedArray]",KN="[object Uint16Array]",qN="[object Uint32Array]",Le={};Le[zN]=Le[HN]=Le[GN]=Le[jN]=Le[_N]=Le[WN]=Le[UN]=Le[KN]=Le[qN]=!0;Le[EN]=Le[TN]=Le[NN]=Le[PN]=Le[LN]=Le[AN]=Le[ON]=Le[FN]=Le[BN]=Le[$N]=Le[RN]=Le[MN]=Le[IN]=Le[kN]=Le[VN]=!1;function XN(e){return _t(e)&&nf(e.length)&&!!Le[ir(e)]}var Bb=XN;a();function YN(e){return function(t){return e(t)}}var wa=YN;a();var $b=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qs=$b&&typeof module=="object"&&module&&!module.nodeType&&module,JN=Qs&&Qs.exports===$b,e0=JN&&Xc.process,ZN=function(){try{var e=Qs&&Qs.require&&Qs.require("util").types;return e||e0&&e0.binding&&e0.binding("util")}catch{}}(),Sn=ZN;var Rb=Sn&&Sn.isTypedArray,QN=Rb?wa(Rb):Bb,Mb=QN;var eL=Object.prototype,tL=eL.hasOwnProperty;function rL(e,t){var r=Gr(e),n=!r&&Eb(e),o=!r&&!n&&rf(e),i=!r&&!n&&!o&&Mb(e),s=r||n||o||i,u=s?Db(e.length,String):[],l=u.length;for(var c in e)(t||tL.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Fb(c,l)))&&u.push(c);return u}var of=rL;a();a();var nL=Object.prototype;function oL(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nL;return e===r}var Da=oL;a();var iL=Yc(Object.keys,Object),Ib=iL;var aL=Object.prototype,sL=aL.hasOwnProperty;function uL(e){if(!Da(e))return Ib(e);var t=[];for(var r in Object(e))sL.call(e,r)&&r!="constructor"&&t.push(r);return t}var kb=uL;a();function lL(e){return e!=null&&nf(e.length)&&!Zc(e)}var af=lL;function cL(e){return af(e)?of(e):kb(e)}var Sa=cL;function fL(e,t){return e&&ao(t,Sa(t),e)}var Vb=fL;a();a();a();a();function pL(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Nb=pL;var dL=Object.prototype,mL=dL.hasOwnProperty;function hL(e){if(!Hr(e))return Nb(e);var t=Da(e),r=[];for(var n in e)n=="constructor"&&(t||!mL.call(e,n))||r.push(n);return r}var Lb=hL;function gL(e){return af(e)?of(e,!0):Lb(e)}var Ea=gL;function vL(e,t){return e&&ao(t,Ea(t),e)}var zb=vL;a();var _b=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hb=_b&&typeof module=="object"&&module&&!module.nodeType&&module,yL=Hb&&Hb.exports===_b,Gb=yL?et.Buffer:void 0,jb=Gb?Gb.allocUnsafe:void 0;function bL(e,t){if(t)return e.slice();var r=e.length,n=jb?jb(r):new e.constructor(r);return e.copy(n),n}var Wb=bL;a();function CL(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var sf=CL;a();a();a();function xL(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}var Ub=xL;a();function wL(){return[]}var uf=wL;var DL=Object.prototype,SL=DL.propertyIsEnumerable,Kb=Object.getOwnPropertySymbols,EL=Kb?function(e){return e==null?[]:(e=Object(e),Ub(Kb(e),function(t){return SL.call(e,t)}))}:uf,Ta=EL;function TL(e,t){return ao(e,Ta(e),t)}var qb=TL;a();a();a();function PL(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var lf=PL;var AL=Object.getOwnPropertySymbols,OL=AL?function(e){for(var t=[];e;)lf(t,Ta(e)),e=va(e);return t}:uf,cf=OL;function FL(e,t){return ao(e,cf(e),t)}var Xb=FL;a();a();function BL(e,t,r){var n=t(e);return Gr(e)?n:lf(n,r(e))}var ff=BL;function $L(e){return ff(e,Sa,Ta)}var Yb=$L;a();function RL(e){return ff(e,Ea,cf)}var Jb=RL;a();a();var ML=Wt(et,"DataView"),pf=ML;a();var IL=Wt(et,"Promise"),df=IL;a();var kL=Wt(et,"Set"),mf=kL;a();var VL=Wt(et,"WeakMap"),hf=VL;var Zb="[object Map]",NL="[object Object]",Qb="[object Promise]",eC="[object Set]",tC="[object WeakMap]",rC="[object DataView]",LL=wn(pf),zL=wn(oo),HL=wn(df),GL=wn(mf),jL=wn(hf),qo=ir;(pf&&qo(new pf(new ArrayBuffer(1)))!=rC||oo&&qo(new oo)!=Zb||df&&qo(df.resolve())!=Qb||mf&&qo(new mf)!=eC||hf&&qo(new hf)!=tC)&&(qo=function(e){var t=ir(e),r=t==NL?e.constructor:void 0,n=r?wn(r):"";if(n)switch(n){case LL:return rC;case zL:return Zb;case HL:return Qb;case GL:return eC;case jL:return tC}return t});var Pa=qo;a();var _L=Object.prototype,WL=_L.hasOwnProperty;function UL(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&WL.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var nC=UL;a();a();a();var KL=et.Uint8Array,t0=KL;function qL(e){var t=new e.constructor(e.byteLength);return new t0(t).set(new t0(e)),t}var Aa=qL;a();function XL(e,t){var r=t?Aa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var oC=XL;a();var YL=/\w*$/;function JL(e){var t=new e.constructor(e.source,YL.exec(e));return t.lastIndex=e.lastIndex,t}var iC=JL;a();var aC=hr?hr.prototype:void 0,sC=aC?aC.valueOf:void 0;function ZL(e){return sC?Object(sC.call(e)):{}}var uC=ZL;a();function QL(e,t){var r=t?Aa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lC=QL;var ez="[object Boolean]",tz="[object Date]",rz="[object Map]",nz="[object Number]",oz="[object RegExp]",iz="[object Set]",az="[object String]",sz="[object Symbol]",uz="[object ArrayBuffer]",lz="[object DataView]",cz="[object Float32Array]",fz="[object Float64Array]",pz="[object Int8Array]",dz="[object Int16Array]",mz="[object Int32Array]",hz="[object Uint8Array]",gz="[object Uint8ClampedArray]",vz="[object Uint16Array]",yz="[object Uint32Array]";function bz(e,t,r){var n=e.constructor;switch(t){case uz:return Aa(e);case ez:case tz:return new n(+e);case lz:return oC(e,r);case cz:case fz:case pz:case dz:case mz:case hz:case gz:case vz:case yz:return lC(e,r);case rz:return new n;case nz:case az:return new n(e);case oz:return iC(e);case iz:return new n;case sz:return uC(e)}}var cC=bz;a();a();var fC=Object.create,Cz=function(){function e(){}return function(t){if(!Hr(t))return{};if(fC)return fC(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),pC=Cz;function xz(e){return typeof e.constructor=="function"&&!Da(e)?pC(va(e)):{}}var dC=xz;a();a();var wz="[object Map]";function Dz(e){return _t(e)&&Pa(e)==wz}var mC=Dz;var hC=Sn&&Sn.isMap,Sz=hC?wa(hC):mC,gC=Sz;a();a();var Ez="[object Set]";function Tz(e){return _t(e)&&Pa(e)==Ez}var vC=Tz;var yC=Sn&&Sn.isSet,Pz=yC?wa(yC):vC,bC=Pz;var Az=1,Oz=2,Fz=4,CC="[object Arguments]",Bz="[object Array]",$z="[object Boolean]",Rz="[object Date]",Mz="[object Error]",xC="[object Function]",Iz="[object GeneratorFunction]",kz="[object Map]",Vz="[object Number]",wC="[object Object]",Nz="[object RegExp]",Lz="[object Set]",zz="[object String]",Hz="[object Symbol]",Gz="[object WeakMap]",jz="[object ArrayBuffer]",_z="[object DataView]",Wz="[object Float32Array]",Uz="[object Float64Array]",Kz="[object Int8Array]",qz="[object Int16Array]",Xz="[object Int32Array]",Yz="[object Uint8Array]",Jz="[object Uint8ClampedArray]",Zz="[object Uint16Array]",Qz="[object Uint32Array]",Me={};Me[CC]=Me[Bz]=Me[jz]=Me[_z]=Me[$z]=Me[Rz]=Me[Wz]=Me[Uz]=Me[Kz]=Me[qz]=Me[Xz]=Me[kz]=Me[Vz]=Me[wC]=Me[Nz]=Me[Lz]=Me[zz]=Me[Hz]=Me[Yz]=Me[Jz]=Me[Zz]=Me[Qz]=!0;Me[Mz]=Me[xC]=Me[Gz]=!1;function gf(e,t,r,n,o,i){var s,u=t&Az,l=t&Oz,c=t&Fz;if(r&&(s=o?r(e,n,o,i):r(e)),s!==void 0)return s;if(!Hr(e))return e;var p=Gr(e);if(p){if(s=nC(e),!u)return sf(e,s)}else{var d=Pa(e),h=d==xC||d==Iz;if(rf(e))return Wb(e,u);if(d==wC||d==CC||h&&!o){if(s=l||h?{}:dC(e),!u)return l?Xb(e,zb(s,e)):qb(e,Vb(s,e))}else{if(!Me[d])return o?e:{};s=cC(e,d,u)}}i||(i=new xb);var g=i.get(e);if(g)return g;i.set(e,s),bC(e)?e.forEach(function(y){s.add(gf(y,t,r,y,e,i))}):gC(e)&&e.forEach(function(y,b){s.set(b,gf(y,t,r,b,e,i))});var v=c?l?Jb:Yb:l?Ea:Sa,m=p?void 0:v(e);return wb(m||e,function(y,b){m&&(b=y,y=e[b]),tf(s,b,gf(y,t,r,b,e,i))}),s}var vf=gf;var eH=1,tH=4;function rH(e){return vf(e,eH|tH)}var Oa=rH;var En=dr(TC());import{createContext as IH,useContext as kH,Children as h0,useRef as so,useEffect as uo,useState as VH,useCallback as tt,useMemo as qC,useImperativeHandle as NH,createElement as lo,useLayoutEffect as LH,forwardRef as zH,Component as HH}from"react";a();var iH=!0;function aH(e,t){if(!iH){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var PC=aH;a();var sH=4;function uH(e){return vf(e,sH)}var n0=uH;a();a();function lH(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var yf=lH;a();var cH="[object Symbol]";function fH(e){return typeof e=="symbol"||_t(e)&&ir(e)==cH}var Fa=fH;a();a();a();var pH="Expected a function";function o0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pH);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o0.Cache||Zs),r}o0.Cache=Zs;var AC=o0;var dH=500;function mH(e){var t=AC(e,function(n){return r.size===dH&&r.clear(),n}),r=t.cache;return t}var OC=mH;var hH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gH=/\\(\\)?/g,vH=OC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hH,function(r,n,o,i){t.push(o?i.replace(gH,"$1"):n||r)}),t}),FC=vH;a();var yH=1/0;function bH(e){if(typeof e=="string"||Fa(e))return e;var t=e+"";return t=="0"&&1/e==-yH?"-0":t}var BC=bH;a();a();var CH=1/0,$C=hr?hr.prototype:void 0,RC=$C?$C.toString:void 0;function MC(e){if(typeof e=="string")return e;if(Gr(e))return yf(e,MC)+"";if(Fa(e))return RC?RC.call(e):"";var t=e+"";return t=="0"&&1/e==-CH?"-0":t}var IC=MC;function xH(e){return e==null?"":IC(e)}var kC=xH;function wH(e){return Gr(e)?yf(e,BC):Fa(e)?[e]:sf(FC(kC(e)))}var i0=wH;var GH=dr(KC());function Be(){return Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(this,arguments)}function jH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yo(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function XC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ff=IH(void 0);Ff.displayName="FormikContext";var _H=Ff.Provider,aNe=Ff.Consumer;function Zo(){var e=kH(Ff);return e||PC(!1),e}var YC=function(t){return Array.isArray(t)&&t.length===0},Bt=function(t){return typeof t=="function"},eu=function(t){return t!==null&&typeof t=="object"},WH=function(t){return String(Math.floor(Number(t)))===t},f0=function(t){return Object.prototype.toString.call(t)==="[object String]"};var ZC=function(t){return h0.count(t)===0},p0=function(t){return eu(t)&&Bt(t.then)};function dt(e,t,r,n){n===void 0&&(n=0);for(var o=i0(t);e&&n<o.length;)e=e[o[n++]];return n!==o.length&&!e||e===void 0?r:e}function jr(e,t,r){for(var n=n0(e),o=n,i=0,s=i0(t);i<s.length-1;i++){var u=s[i],l=dt(e,s.slice(0,i+1));if(l&&(eu(l)||Array.isArray(l)))o=o[u]=n0(l);else{var c=s[i+1];o=o[u]=WH(c)&&Number(c)>=0?[]:{}}}return(i===0?e:o)[s[i]]===r?e:(r===void 0?delete o[s[i]]:o[s[i]]=r,i===0&&r===void 0&&delete n[s[i]],n)}function QC(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],u=e[s];eu(u)?r.get(u)||(r.set(u,!0),n[s]=Array.isArray(u)?[]:{},QC(u,t,r,n[s])):n[s]=t}return n}function UH(e,t){switch(t.type){case"SET_VALUES":return Be({},e,{values:t.payload});case"SET_TOUCHED":return Be({},e,{touched:t.payload});case"SET_ERRORS":return(0,En.default)(e.errors,t.payload)?e:Be({},e,{errors:t.payload});case"SET_STATUS":return Be({},e,{status:t.payload});case"SET_ISSUBMITTING":return Be({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Be({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Be({},e,{values:jr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Be({},e,{touched:jr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Be({},e,{errors:jr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Be({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Be({},e,{touched:QC(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Be({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Be({},e,{isSubmitting:!1});default:return e}}var Xo={},Of={};function KH(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,o=n===void 0?!0:n,i=e.validateOnMount,s=i===void 0?!1:i,u=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,p=e.onSubmit,d=Yo(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Be({validateOnChange:r,validateOnBlur:o,validateOnMount:s,onSubmit:p},d),g=so(h.initialValues),v=so(h.initialErrors||Xo),m=so(h.initialTouched||Of),y=so(h.initialStatus),b=so(!1),x=so({});uo(function(){return b.current=!0,function(){b.current=!1}},[]);var w=VH(0),D=w[1],E=so({values:Oa(h.initialValues),errors:Oa(h.initialErrors)||Xo,touched:Oa(h.initialTouched)||Of,status:Oa(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=E.current,T=tt(function(B){var X=E.current;E.current=UH(X,B),X!==E.current&&D(function(ee){return ee+1})},[]),O=tt(function(B,X){return new Promise(function(ee,q){var ae=h.validate(B,X);ae==null?ee(Xo):p0(ae)?ae.then(function(De){ee(De||Xo)},function(De){q(De)}):ee(ae)})},[h.validate]),F=tt(function(B,X){var ee=h.validationSchema,q=Bt(ee)?ee(X):ee,ae=X&&q.validateAt?q.validateAt(X,B):XH(B,q);return new Promise(function(De,Te){ae.then(function(){De(Xo)},function(ht){ht.name==="ValidationError"?De(qH(ht)):Te(ht)})})},[h.validationSchema]),I=tt(function(B,X){return new Promise(function(ee){return ee(x.current[B].validate(X))})},[]),G=tt(function(B){var X=Object.keys(x.current).filter(function(q){return Bt(x.current[q].validate)}),ee=X.length>0?X.map(function(q){return I(q,dt(B,q))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ee).then(function(q){return q.reduce(function(ae,De,Te){return De==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||De&&(ae=jr(ae,X[Te],De)),ae},{})})},[I]),k=tt(function(B){return Promise.all([G(B),h.validationSchema?F(B):{},h.validate?O(B):{}]).then(function(X){var ee=X[0],q=X[1],ae=X[2],De=qc.all([ee,q,ae],{arrayMerge:YH});return De})},[h.validate,h.validationSchema,G,O,F]),H=gr(function(B){return B===void 0&&(B=S.values),T({type:"SET_ISVALIDATING",payload:!0}),k(B).then(function(X){return b.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:X})),X})});uo(function(){s&&b.current===!0&&(0,En.default)(g.current,h.initialValues)&&H(g.current)},[s,H]);var V=tt(function(B){var X=B&&B.values?B.values:g.current,ee=B&&B.errors?B.errors:v.current?v.current:h.initialErrors||{},q=B&&B.touched?B.touched:m.current?m.current:h.initialTouched||{},ae=B&&B.status?B.status:y.current?y.current:h.initialStatus;g.current=X,v.current=ee,m.current=q,y.current=ae;var De=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!B&&!!B.isSubmitting,errors:ee,touched:q,status:ae,values:X,isValidating:!!B&&!!B.isValidating,submitCount:B&&B.submitCount&&typeof B.submitCount=="number"?B.submitCount:0}})};if(h.onReset){var Te=h.onReset(S.values,Ae);p0(Te)?Te.then(De):De()}else De()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);uo(function(){b.current===!0&&!(0,En.default)(g.current,h.initialValues)&&c&&(g.current=h.initialValues,V(),s&&H(g.current))},[c,h.initialValues,V,s,H]),uo(function(){c&&b.current===!0&&!(0,En.default)(v.current,h.initialErrors)&&(v.current=h.initialErrors||Xo,T({type:"SET_ERRORS",payload:h.initialErrors||Xo}))},[c,h.initialErrors]),uo(function(){c&&b.current===!0&&!(0,En.default)(m.current,h.initialTouched)&&(m.current=h.initialTouched||Of,T({type:"SET_TOUCHED",payload:h.initialTouched||Of}))},[c,h.initialTouched]),uo(function(){c&&b.current===!0&&!(0,En.default)(y.current,h.initialStatus)&&(y.current=h.initialStatus,T({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var M=gr(function(B){if(x.current[B]&&Bt(x.current[B].validate)){var X=dt(S.values,B),ee=x.current[B].validate(X);return p0(ee)?(T({type:"SET_ISVALIDATING",payload:!0}),ee.then(function(q){return q}).then(function(q){T({type:"SET_FIELD_ERROR",payload:{field:B,value:q}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:B,value:ee}}),Promise.resolve(ee))}else if(h.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),F(S.values,B).then(function(q){return q}).then(function(q){T({type:"SET_FIELD_ERROR",payload:{field:B,value:dt(q,B)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Z=tt(function(B,X){var ee=X.validate;x.current[B]={validate:ee}},[]),re=tt(function(B){delete x.current[B]},[]),se=gr(function(B,X){T({type:"SET_TOUCHED",payload:B});var ee=X===void 0?o:X;return ee?H(S.values):Promise.resolve()}),j=tt(function(B){T({type:"SET_ERRORS",payload:B})},[]),ne=gr(function(B,X){var ee=Bt(B)?B(S.values):B;T({type:"SET_VALUES",payload:ee});var q=X===void 0?r:X;return q?H(ee):Promise.resolve()}),ce=tt(function(B,X){T({type:"SET_FIELD_ERROR",payload:{field:B,value:X}})},[]),pe=gr(function(B,X,ee){T({type:"SET_FIELD_VALUE",payload:{field:B,value:X}});var q=ee===void 0?r:ee;return q?H(jr(S.values,B,X)):Promise.resolve()}),$e=tt(function(B,X){var ee=X,q=B,ae;if(!f0(B)){B.persist&&B.persist();var De=B.target?B.target:B.currentTarget,Te=De.type,ht=De.name,Nn=De.id,Cr=De.value,Qd=De.checked,_g=De.outerHTML,Fi=De.options,e1=De.multiple;ee=X||ht||Nn,q=/number|range/.test(Te)?(ae=parseFloat(Cr),isNaN(ae)?"":ae):/checkbox/.test(Te)?ZH(dt(S.values,ee),Qd,Cr):Fi&&e1?JH(Fi):Cr}ee&&pe(ee,q)},[pe,S.values]),A=gr(function(B){if(f0(B))return function(X){return $e(X,B)};$e(B)}),_=gr(function(B,X,ee){X===void 0&&(X=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:B,value:X}});var q=ee===void 0?o:ee;return q?H(S.values):Promise.resolve()}),z=tt(function(B,X){B.persist&&B.persist();var ee=B.target,q=ee.name,ae=ee.id,De=ee.outerHTML,Te=X||q||ae;_(Te,!0)},[_]),U=gr(function(B){if(f0(B))return function(X){return z(X,B)};z(B)}),ue=tt(function(B){Bt(B)?T({type:"SET_FORMIK_STATE",payload:B}):T({type:"SET_FORMIK_STATE",payload:function(){return B}})},[]),Q=tt(function(B){T({type:"SET_STATUS",payload:B})},[]),he=tt(function(B){T({type:"SET_ISSUBMITTING",payload:B})},[]),we=gr(function(){return T({type:"SUBMIT_ATTEMPT"}),H().then(function(B){var X=B instanceof Error,ee=!X&&Object.keys(B).length===0;if(ee){var q;try{if(q=Ce(),q===void 0)return}catch(ae){throw ae}return Promise.resolve(q).then(function(ae){return b.current&&T({type:"SUBMIT_SUCCESS"}),ae}).catch(function(ae){if(b.current)throw T({type:"SUBMIT_FAILURE"}),ae})}else if(b.current&&(T({type:"SUBMIT_FAILURE"}),X))throw B})}),Se=gr(function(B){if(B&&B.preventDefault&&Bt(B.preventDefault)&&B.preventDefault(),B&&B.stopPropagation&&Bt(B.stopPropagation)&&B.stopPropagation(),0)var X;we().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Ae={resetForm:V,validateForm:H,validateField:M,setErrors:j,setFieldError:ce,setFieldTouched:_,setFieldValue:pe,setStatus:Q,setSubmitting:he,setTouched:se,setValues:ne,setFormikState:ue,submitForm:we},Ce=gr(function(){return p(S.values,Ae)}),je=gr(function(B){B&&B.preventDefault&&Bt(B.preventDefault)&&B.preventDefault(),B&&B.stopPropagation&&Bt(B.stopPropagation)&&B.stopPropagation(),V()}),Ye=tt(function(B){return{value:dt(S.values,B),error:dt(S.errors,B),touched:!!dt(S.touched,B),initialValue:dt(g.current,B),initialTouched:!!dt(m.current,B),initialError:dt(v.current,B)}},[S.errors,S.touched,S.values]),ke=tt(function(B){return{setValue:function(ee,q){return pe(B,ee,q)},setTouched:function(ee,q){return _(B,ee,q)},setError:function(ee){return ce(B,ee)}}},[pe,_,ce]),Tt=tt(function(B){var X=eu(B),ee=X?B.name:B,q=dt(S.values,ee),ae={name:ee,value:q,onChange:A,onBlur:U};if(X){var De=B.type,Te=B.value,ht=B.as,Nn=B.multiple;De==="checkbox"?Te===void 0?ae.checked=!!q:(ae.checked=!!(Array.isArray(q)&&~q.indexOf(Te)),ae.value=Te):De==="radio"?(ae.checked=q===Te,ae.value=Te):ht==="select"&&Nn&&(ae.value=ae.value||[],ae.multiple=!0)}return ae},[U,A,S.values]),Ct=qC(function(){return!(0,En.default)(g.current,S.values)},[g.current,S.values]),st=qC(function(){return typeof u<"u"?Ct?S.errors&&Object.keys(S.errors).length===0:u!==!1&&Bt(u)?u(h):u:S.errors&&Object.keys(S.errors).length===0},[u,Ct,S.errors,h]),ut=Be({},S,{initialValues:g.current,initialErrors:v.current,initialTouched:m.current,initialStatus:y.current,handleBlur:U,handleChange:A,handleReset:je,handleSubmit:Se,resetForm:V,setErrors:j,setFormikState:ue,setFieldTouched:_,setFieldValue:pe,setFieldError:ce,setStatus:Q,setSubmitting:he,setTouched:se,setValues:ne,submitForm:we,validateForm:H,validateField:M,isValid:st,dirty:Ct,unregisterField:re,registerField:Z,getFieldProps:Tt,getFieldMeta:Ye,getFieldHelpers:ke,validateOnBlur:o,validateOnChange:r,validateOnMount:s});return ut}function ex(e){var t=KH(e),r=e.component,n=e.children,o=e.render,i=e.innerRef;return NH(i,function(){return t}),lo(_H,{value:t},r?lo(r,t):o?o(t):n?Bt(n)?n(t):ZC(n)?null:h0.only(n):null)}function qH(e){var t={};if(e.inner){if(e.inner.length===0)return jr(t,e.path,e.message);for(var o=e.inner,r=Array.isArray(o),n=0,o=r?o:o[Symbol.iterator]();;){var i;if(r){if(n>=o.length)break;i=o[n++]}else{if(n=o.next(),n.done)break;i=n.value}var s=i;dt(t,s.path)||(t=jr(t,s.path,s.message))}}return t}function XH(e,t,r,n){r===void 0&&(r=!1);var o=m0(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}function m0(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(o){return Array.isArray(o)===!0||Ym(o)?m0(o):o!==""?o:void 0}):Ym(e[n])?t[n]=m0(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function YH(e,t,r){var n=e.slice();return t.forEach(function(i,s){if(typeof n[s]>"u"){var u=r.clone!==!1,l=u&&r.isMergeableObject(i);n[s]=l?qc(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[s]=qc(e[s],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function JH(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function ZH(e,t,r){if(typeof e=="boolean")return!!t;var n=[],o=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),o=i>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!o?n.concat(r):o?n.slice(0,i).concat(n.slice(i+1)):n}var QH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?LH:uo;function gr(e){var t=so(e);return QH(function(){t.current=e}),tt(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current.apply(void 0,n)},[])}function tx(e){var t=e.validate,r=e.name,n=e.render,o=e.children,i=e.as,s=e.component,u=e.className,l=Yo(e,["validate","name","render","children","as","component","className"]),c=Zo(),p=Yo(c,["validate","validationSchema"]),d=p.registerField,h=p.unregisterField;uo(function(){return d(r,{validate:t}),function(){h(r)}},[d,h,r,t]);var g=p.getFieldProps(Be({name:r},l)),v=p.getFieldMeta(r),m={field:g,form:p};if(n)return n(Be({},m,{meta:v}));if(Bt(o))return o(Be({},m,{meta:v}));if(s){if(typeof s=="string"){var y=l.innerRef,b=Yo(l,["innerRef"]);return lo(s,Be({ref:y},g,b,{className:u}),o)}return lo(s,Be({field:g,form:p},l,{className:u}),o)}var x=i||"input";if(typeof x=="string"){var w=l.innerRef,D=Yo(l,["innerRef"]);return lo(x,Be({ref:w},g,D,{className:u}),o)}return lo(x,Be({},g,l,{className:u}),o)}var g0=zH(function(e,t){var r=e.action,n=Yo(e,["action"]),o=r??"#",i=Zo(),s=i.handleReset,u=i.handleSubmit;return lo("form",Be({onSubmit:u,ref:t,onReset:s,action:o},n))});g0.displayName="Form";var eG=function(t,r,n){var o=Jo(t),i=o[r];return o.splice(r,1),o.splice(n,0,i),o},tG=function(t,r,n){var o=Jo(t),i=o[r];return o[r]=o[n],o[n]=i,o},d0=function(t,r,n){var o=Jo(t);return o.splice(r,0,n),o},rG=function(t,r,n){var o=Jo(t);return o[r]=n,o},Jo=function(t){if(t){if(Array.isArray(t))return[].concat(t);var r=Object.keys(t).map(function(n){return parseInt(n)}).reduce(function(n,o){return o>n?o:n},0);return Array.from(Be({},t,{length:r+1}))}else return[]},JC=function(t,r){var n=typeof t=="function"?t:r;return function(o){if(Array.isArray(o)||eu(o)){var i=Jo(o);return n(i)}return o}},nG=function(e){jH(t,e);function t(n){var o;return o=e.call(this,n)||this,o.updateArrayField=function(i,s,u){var l=o.props,c=l.name,p=l.formik.setFormikState;p(function(d){var h=JC(u,i),g=JC(s,i),v=jr(d.values,c,i(dt(d.values,c))),m=u?h(dt(d.errors,c)):void 0,y=s?g(dt(d.touched,c)):void 0;return YC(m)&&(m=void 0),YC(y)&&(y=void 0),Be({},d,{values:v,errors:u?jr(d.errors,c,m):d.errors,touched:s?jr(d.touched,c,y):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(Jo(s),[Oa(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(u){return tG(u,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(u){return eG(u,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(u){return d0(u,i,s)},function(u){return d0(u,i,null)},function(u){return d0(u,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(u){return rG(u,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(u){var l=u?[i].concat(u):[i];return s=l.length,l},function(u){return u?[null].concat(u):[null]},function(u){return u?[null].concat(u):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(XC(o)),o.pop=o.pop.bind(XC(o)),o}var r=t.prototype;return r.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,En.default)(dt(o.formik.values,o.name),dt(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(o){var i;return this.updateArrayField(function(s){var u=s?Jo(s):[];return i||(i=u[o]),Bt(u.splice)&&u.splice(o,1),Bt(u.every)&&u.every(function(l){return l===void 0})?[]:u},!0,!0),i},r.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},r.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,u=i.render,l=i.children,c=i.name,p=i.formik,d=Yo(p,["validate","validationSchema"]),h=Be({},o,{form:d,name:c});return s?lo(s,h):u?u(h):l?typeof l=="function"?l(h):ZC(l)?null:h0.only(l):null},t}(HH);nG.defaultProps={validateOnChange:!0};a();a();import{useState as oG}from"react";var iG=()=>{let[e,t]=oG(!1),r=()=>t(!0),n=()=>t(!0),o=()=>t(!0),u={onFocus:r,onMouseEnter:n,onBlur:()=>t(!1),onMouseLeave:()=>t(!1)};return e||(u.onMouseMove=o),[e,u,t]};a();a();import{useMemo as aG}from"react";var sG=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e!=null&&e?()=>!0:()=>!1,Bf=(e,t,r={},n=[e])=>{let{eventName:o="keydown",eventTarget:i,eventOptions:s}=r,u=aG(()=>{let l=sG(e);return c=>{if(!(["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.nodeName??"")||document.activeElement?.isContentEditable)&&l(c))return t(c)}},n);Wm(o,u,i,s)};a();a();import{useState as uG}from"react";var v0=e=>{let[t,r]=uG([!1,null]);return Bf(e,n=>r([!0,n]),{eventName:"keydown"},[t]),Bf(e,n=>r([!1,n]),{eventName:"keyup"},[t]),t};a();a();a();a();import{useEffect as lG,useRef as cG}from"react";var y0=(e,t)=>{let r=cG(!0);lG(()=>r.current?(r.current=!1,()=>{}):e(),t)};var b0=(e,t=void 0,r=void 0)=>{let[n,o]=v0(e);y0(()=>(!n&&r&&o!==null?r(o):n&&t&&o!==null&&t(o),()=>{}),[n])};a();a();import{useState as fG}from"react";var pG=(e,t,r=window.localStorage)=>{let[n,o]=fG(()=>{try{let u=r.getItem(e);return u!==null&&u?JSON.parse(u):t}catch(u){return console.log(u),t}});return[n,u=>{try{let l=u instanceof Function?u(n):u;o(l),r.setItem(e,JSON.stringify(l))}catch(l){console.error(l)}},()=>{r.removeItem(e),o(void 0)}]};a();a();var tu=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})};a();a();import{useEffect as dG}from"react";var ru=(e,t)=>{dG(()=>{let r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])};a();a();import{useLayoutEffect as mG}from"react";var C0=e=>{mG(()=>{if(e){let t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}}return()=>{}},[e])};a();a();import{useEffect as hG,useRef as gG}from"react";var nu=e=>{let t=gG();return hG(()=>{t.current=e}),t.current};a();a();import Nf from"styled-components";a();a();var sx=dr(Rf());import{useEffect as Qo,useRef as nx,useState as ox,useCallback as ix}from"react";import{createPortal as PG}from"react-dom";import{createGlobalStyle as AG}from"styled-components";a();a();import{Children as xG}from"react";import{createGlobalStyle as wG}from"styled-components";import{Fragment as EG,jsx as x0,jsxs as TG}from"react/jsx-runtime";var DG=100,SG=wG`
|
|
709
|
+
`;import{jsx as Xs,jsxs as nk}from"react/jsx-runtime";var PAe=({children:e,theme:t={},globalStylesIncluded:r=!0,skipAnimations:n=!1,Link:o})=>(n&&(dn.skipAnimations=!0),nk(h4,{theme:t,children:[r?Xs(Oy,{}):null,Xs(E1,{children:Xs(y4,{value:{Link:o},children:Xs(_c,{children:Xs(Nm,{children:e})})})})]}));a();a();import{useState as ok,useCallback as Hm}from"react";var Gm=(e=!1)=>{let[t,r]=ok(e),n=Hm(()=>r(s=>!s),[]),o=Hm(()=>r(!0),[]),i=Hm(()=>r(!1),[]);return[t,n,o,i,r]};a();a();import{useCallback as sk}from"react";a();a();import{useEffect as ik,useRef as Fy,useState as ak}from"react";var Wc=e=>{let[t,r]=ak(!1),n=Fy(),o=Fy(e),i=s=>{clearTimeout(n.current),r(!o.current),n.current=window.setTimeout(()=>r(o.current),s)};return ik(()=>()=>clearTimeout(n.current),[]),[t,i]};var uk=(e,t=1500)=>{let[r,n]=Wc(!1),[o,i]=Wc(!1);return[sk(async()=>{try{await ds(e),t&&t>0&&n(t)}catch(u){u instanceof Error&&i(t)}},[e,t,n,i]),r,o]};a();a();import{useMemo as lk,useState as ck,useRef as fk,useLayoutEffect as pk}from"react";var dk={width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0},jm=()=>{let e=fk(null),[t,r]=ck(dk),n=lk(()=>new window.ResizeObserver(o=>{if(o[0]){let{width:i,height:s,top:u,left:l,bottom:c,right:p,x:d,y:h}=o[0].contentRect;r({width:i,height:s,top:u,left:l,bottom:c,right:p,x:d,y:h})}}),[]);return pk(()=>{if(e.current)return n.observe(e.current),()=>{n.disconnect()}},[n]),[e,t]};a();a();import{useEffect as _m,useRef as By}from"react";var mk=e=>!!(typeof e=="object"&&e?.addEventListener),Wm=(e,t,r=window,n={})=>{let o=By(),i=By();_m(()=>{o.current=t},[t]),_m(()=>{i.current=n},[n]),_m(()=>{if(!e||!mk(r))return;let s=u=>o.current!==void 0?o.current(u):()=>{};return r.addEventListener(e,s,i.current),()=>{r.removeEventListener(e,s,i.current)}},[e,r,i])};a();a();import{useRef as _y,useCallback as vk,useEffect as yk}from"react";a();var Km='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex="0"], [contenteditable]',hk=e=>{let{display:t,visibility:r}=window.getComputedStyle(e),n=t==="none"||e.style.display==="none"||r==="none"||e.style.visibility==="hidden";return e.offsetWidth<=0&&e.offsetHeight<=0||n},gk=e=>{let t=e;for(;t&&t!==document.body;){if(hk(t))return!1;t=t.parentNode}return!0},$y=e=>{let t=e.getAttribute("tabindex");return Number.parseInt(t??void 0,10)},Ry=e=>{let t=$y(e);return Number.isNaN(t)},Uc=e=>{let t=/input|select|textarea|button|object/,r=e.nodeName.toLowerCase(),n=!Ry(e);return!!(t.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&gk(e)},qm=e=>{let t=$y(e);return(Ry(e)||t>=0)&&Uc(e)},My=e=>Array.from(e.querySelectorAll(Km)).filter(qm),Iy=[],ga=null,Um=!1,ky=()=>{Um=!0},Vy=()=>{if(Um){if(Um=!1,!ga||ga.contains(document.activeElement))return;(My(ga)[0]??ga).focus()}},Ny=()=>{let e=document.activeElement;e!==null&&Iy.push(e)},Ly=()=>{let e=null;try{e=Iy.pop(),e&&e.focus()}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},zy=e=>{ga=e,document.addEventListener("focusout",ky,!1),document.addEventListener("focusin",Vy,!0)},Hy=()=>{ga=null,document.removeEventListener("focusout",ky),document.removeEventListener("focusin",Vy)},Gy=(e,t)=>{let r=My(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();let i=r[t.shiftKey?r.length-1:0];i&&i.focus()},jy=(e,t)=>{t===void 0&&(t="body > :not(script)");let r=Array.from(document.querySelectorAll(t)).map(n=>{if(n.contains(e))return;let o=n.getAttribute("aria-hidden");return(o===null||o==="false")&&n.setAttribute("aria-hidden","true"),{node:n,ariaHidden:o}});return()=>{r.forEach(n=>{n&&(n.ariaHidden===null?n.node.removeAttribute("aria-hidden"):n.node.setAttribute("aria-hidden",n.ariaHidden))})}};var Xm=(e=!0,t={})=>{let r=_y(null),n=_y(null),o=vk(i=>{if(n.current!==null&&n.current(),r.current&&(Ly(),Hy()),e&&i!==null&&i!==void 0){zy(i),Ny();let s=u=>{n.current=t.disableAriaHider??!1?null:jy(u);let l=null;if(J(t.focusSelector)&&(l=typeof t.focusSelector=="string"?u.querySelector(t.focusSelector):t.focusSelector),!l){let c=Array.from(u.querySelectorAll(Km));l=c.find(qm)??c.find(Uc)??null,!l&&Uc(u)&&(l=u)}l&&l.focus()};setTimeout(()=>{i.ownerDocument&&s(i),i.ownerDocument}),r.current=i}else r.current=null},[e,t.focusSelector,t.disableAriaHider]);return yk(()=>{if(!e)return;let i=s=>{s.key==="Tab"&&r.current&&Gy(r.current,s)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i)}},[e]),o};a();a();import{useCallback as bk,useState as Ck}from"react";var xk=()=>{let[,e]=Ck(Object.create(null));return bk(()=>{e(Object.create(null))},[e])};a();a();a();var wk=function(t){return Dk(t)&&!Sk(t)};function Dk(e){return!!e&&typeof e=="object"}function Sk(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Pk(e)}var Ek=typeof Symbol=="function"&&Symbol.for,Tk=Ek?Symbol.for("react.element"):60103;function Pk(e){return e.$$typeof===Tk}function Ak(e){return Array.isArray(e)?[]:{}}function Kc(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ys(Ak(e),e,t):e}function Ok(e,t,r){return e.concat(t).map(function(n){return Kc(n,r)})}function Fk(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(o){n[o]=Kc(e[o],r)}),Object.keys(t).forEach(function(o){!r.isMergeableObject(t[o])||!e[o]?n[o]=Kc(t[o],r):n[o]=Ys(e[o],t[o],r)}),n}function Ys(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ok,r.isMergeableObject=r.isMergeableObject||wk;var n=Array.isArray(t),o=Array.isArray(e),i=n===o;return i?n?r.arrayMerge(e,t,r):Fk(e,t,r):Kc(t,r)}Ys.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Ys(n,o,r)},{})};var Bk=Ys,qc=Bk;a();a();a();a();a();var $k=typeof window=="object"&&window&&window.Object===Object&&window,Xc=$k;var Rk=typeof self=="object"&&self&&self.Object===Object&&self,Mk=Xc||Rk||Function("return this")(),et=Mk;var Ik=et.Symbol,hr=Ik;a();var Wy=Object.prototype,kk=Wy.hasOwnProperty,Vk=Wy.toString,Js=hr?hr.toStringTag:void 0;function Nk(e){var t=kk.call(e,Js),r=e[Js];try{e[Js]=void 0;var n=!0}catch{}var o=Vk.call(e);return n&&(t?e[Js]=r:delete e[Js]),o}var Uy=Nk;a();var Lk=Object.prototype,zk=Lk.toString;function Hk(e){return zk.call(e)}var Ky=Hk;var Gk="[object Null]",jk="[object Undefined]",qy=hr?hr.toStringTag:void 0;function _k(e){return e==null?e===void 0?jk:Gk:qy&&qy in Object(e)?Uy(e):Ky(e)}var ir=_k;a();a();function Wk(e,t){return function(r){return e(t(r))}}var Yc=Wk;var Uk=Yc(Object.getPrototypeOf,Object),va=Uk;a();function Kk(e){return e!=null&&typeof e=="object"}var _t=Kk;var qk="[object Object]",Xk=Function.prototype,Yk=Object.prototype,Xy=Xk.toString,Jk=Yk.hasOwnProperty,Zk=Xy.call(Object);function Qk(e){if(!_t(e)||ir(e)!=qk)return!1;var t=va(e);if(t===null)return!0;var r=Jk.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Xy.call(r)==Zk}var Ym=Qk;a();a();a();a();a();function eV(){this.__data__=[],this.size=0}var Yy=eV;a();a();a();function tV(e,t){return e===t||e!==e&&t!==t}var Jc=tV;function rV(e,t){for(var r=e.length;r--;)if(Jc(e[r][0],t))return r;return-1}var ro=rV;var nV=Array.prototype,oV=nV.splice;function iV(e){var t=this.__data__,r=ro(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():oV.call(t,r,1),--this.size,!0}var Jy=iV;a();function aV(e){var t=this.__data__,r=ro(t,e);return r<0?void 0:t[r][1]}var Zy=aV;a();function sV(e){return ro(this.__data__,e)>-1}var Qy=sV;a();function uV(e,t){var r=this.__data__,n=ro(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var eb=uV;function ya(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ya.prototype.clear=Yy;ya.prototype.delete=Jy;ya.prototype.get=Zy;ya.prototype.has=Qy;ya.prototype.set=eb;var no=ya;a();function lV(){this.__data__=new no,this.size=0}var tb=lV;a();function cV(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var rb=cV;a();function fV(e){return this.__data__.get(e)}var nb=fV;a();function pV(e){return this.__data__.has(e)}var ob=pV;a();a();a();a();a();a();function dV(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Hr=dV;var mV="[object AsyncFunction]",hV="[object Function]",gV="[object GeneratorFunction]",vV="[object Proxy]";function yV(e){if(!Hr(e))return!1;var t=ir(e);return t==hV||t==gV||t==mV||t==vV}var Zc=yV;a();a();var bV=et["__core-js_shared__"],Qc=bV;var ib=function(){var e=/[^.]+$/.exec(Qc&&Qc.keys&&Qc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function CV(e){return!!ib&&ib in e}var ab=CV;a();var xV=Function.prototype,wV=xV.toString;function DV(e){if(e!=null){try{return wV.call(e)}catch{}try{return e+""}catch{}}return""}var wn=DV;var SV=/[\\^$.*+?()[\]{}|]/g,EV=/^\[object .+?Constructor\]$/,TV=Function.prototype,PV=Object.prototype,AV=TV.toString,OV=PV.hasOwnProperty,FV=RegExp("^"+AV.call(OV).replace(SV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BV(e){if(!Hr(e)||ab(e))return!1;var t=Zc(e)?FV:EV;return t.test(wn(e))}var sb=BV;a();function $V(e,t){return e?.[t]}var ub=$V;function RV(e,t){var r=ub(e,t);return sb(r)?r:void 0}var Wt=RV;var MV=Wt(et,"Map"),oo=MV;a();a();a();a();a();var IV=Wt(Object,"create"),Dn=IV;function kV(){this.__data__=Dn?Dn(null):{},this.size=0}var lb=kV;a();function VV(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cb=VV;a();var NV="__lodash_hash_undefined__",LV=Object.prototype,zV=LV.hasOwnProperty;function HV(e){var t=this.__data__;if(Dn){var r=t[e];return r===NV?void 0:r}return zV.call(t,e)?t[e]:void 0}var fb=HV;a();var GV=Object.prototype,jV=GV.hasOwnProperty;function _V(e){var t=this.__data__;return Dn?t[e]!==void 0:jV.call(t,e)}var pb=_V;a();var WV="__lodash_hash_undefined__";function UV(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dn&&t===void 0?WV:t,this}var db=UV;function ba(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ba.prototype.clear=lb;ba.prototype.delete=cb;ba.prototype.get=fb;ba.prototype.has=pb;ba.prototype.set=db;var Jm=ba;function KV(){this.size=0,this.__data__={hash:new Jm,map:new(oo||no),string:new Jm}}var mb=KV;a();a();a();function qV(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var hb=qV;function XV(e,t){var r=e.__data__;return hb(t)?r[typeof t=="string"?"string":"hash"]:r.map}var io=XV;function YV(e){var t=io(this,e).delete(e);return this.size-=t?1:0,t}var gb=YV;a();function JV(e){return io(this,e).get(e)}var vb=JV;a();function ZV(e){return io(this,e).has(e)}var yb=ZV;a();function QV(e,t){var r=io(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var bb=QV;function Ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ca.prototype.clear=mb;Ca.prototype.delete=gb;Ca.prototype.get=vb;Ca.prototype.has=yb;Ca.prototype.set=bb;var Zs=Ca;var eN=200;function tN(e,t){var r=this.__data__;if(r instanceof no){var n=r.__data__;if(!oo||n.length<eN-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Zs(n)}return r.set(e,t),this.size=r.size,this}var Cb=tN;function xa(e){var t=this.__data__=new no(e);this.size=t.size}xa.prototype.clear=tb;xa.prototype.delete=rb;xa.prototype.get=nb;xa.prototype.has=ob;xa.prototype.set=Cb;var xb=xa;a();function rN(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var wb=rN;a();a();a();var nN=function(){try{var e=Wt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Zm=nN;function oN(e,t,r){t=="__proto__"&&Zm?Zm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var ef=oN;var iN=Object.prototype,aN=iN.hasOwnProperty;function sN(e,t,r){var n=e[t];(!(aN.call(e,t)&&Jc(n,r))||r===void 0&&!(t in e))&&ef(e,t,r)}var tf=sN;a();a();function uN(e,t,r,n){var o=!r;r||(r={});for(var i=-1,s=t.length;++i<s;){var u=t[i],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),o?ef(r,u,l):tf(r,u,l)}return r}var ao=uN;a();a();a();function lN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Db=lN;a();a();var cN="[object Arguments]";function fN(e){return _t(e)&&ir(e)==cN}var Qm=fN;var Sb=Object.prototype,pN=Sb.hasOwnProperty,dN=Sb.propertyIsEnumerable,mN=Qm(function(){return arguments}())?Qm:function(e){return _t(e)&&pN.call(e,"callee")&&!dN.call(e,"callee")},Eb=mN;a();var hN=Array.isArray,Gr=hN;a();a();function gN(){return!1}var Tb=gN;var Ob=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pb=Ob&&typeof module=="object"&&module&&!module.nodeType&&module,vN=Pb&&Pb.exports===Ob,Ab=vN?et.Buffer:void 0,yN=Ab?Ab.isBuffer:void 0,bN=yN||Tb,rf=bN;a();var CN=9007199254740991,xN=/^(?:0|[1-9]\d*)$/;function wN(e,t){var r=typeof e;return t=t??CN,!!t&&(r=="number"||r!="symbol"&&xN.test(e))&&e>-1&&e%1==0&&e<t}var Fb=wN;a();a();a();var DN=9007199254740991;function SN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DN}var nf=SN;var EN="[object Arguments]",TN="[object Array]",PN="[object Boolean]",AN="[object Date]",ON="[object Error]",FN="[object Function]",BN="[object Map]",$N="[object Number]",RN="[object Object]",MN="[object RegExp]",IN="[object Set]",kN="[object String]",VN="[object WeakMap]",NN="[object ArrayBuffer]",LN="[object DataView]",zN="[object Float32Array]",HN="[object Float64Array]",GN="[object Int8Array]",jN="[object Int16Array]",_N="[object Int32Array]",WN="[object Uint8Array]",UN="[object Uint8ClampedArray]",KN="[object Uint16Array]",qN="[object Uint32Array]",Le={};Le[zN]=Le[HN]=Le[GN]=Le[jN]=Le[_N]=Le[WN]=Le[UN]=Le[KN]=Le[qN]=!0;Le[EN]=Le[TN]=Le[NN]=Le[PN]=Le[LN]=Le[AN]=Le[ON]=Le[FN]=Le[BN]=Le[$N]=Le[RN]=Le[MN]=Le[IN]=Le[kN]=Le[VN]=!1;function XN(e){return _t(e)&&nf(e.length)&&!!Le[ir(e)]}var Bb=XN;a();function YN(e){return function(t){return e(t)}}var wa=YN;a();var $b=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qs=$b&&typeof module=="object"&&module&&!module.nodeType&&module,JN=Qs&&Qs.exports===$b,e0=JN&&Xc.process,ZN=function(){try{var e=Qs&&Qs.require&&Qs.require("util").types;return e||e0&&e0.binding&&e0.binding("util")}catch{}}(),Sn=ZN;var Rb=Sn&&Sn.isTypedArray,QN=Rb?wa(Rb):Bb,Mb=QN;var eL=Object.prototype,tL=eL.hasOwnProperty;function rL(e,t){var r=Gr(e),n=!r&&Eb(e),o=!r&&!n&&rf(e),i=!r&&!n&&!o&&Mb(e),s=r||n||o||i,u=s?Db(e.length,String):[],l=u.length;for(var c in e)(t||tL.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Fb(c,l)))&&u.push(c);return u}var of=rL;a();a();var nL=Object.prototype;function oL(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nL;return e===r}var Da=oL;a();var iL=Yc(Object.keys,Object),Ib=iL;var aL=Object.prototype,sL=aL.hasOwnProperty;function uL(e){if(!Da(e))return Ib(e);var t=[];for(var r in Object(e))sL.call(e,r)&&r!="constructor"&&t.push(r);return t}var kb=uL;a();function lL(e){return e!=null&&nf(e.length)&&!Zc(e)}var af=lL;function cL(e){return af(e)?of(e):kb(e)}var Sa=cL;function fL(e,t){return e&&ao(t,Sa(t),e)}var Vb=fL;a();a();a();a();function pL(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Nb=pL;var dL=Object.prototype,mL=dL.hasOwnProperty;function hL(e){if(!Hr(e))return Nb(e);var t=Da(e),r=[];for(var n in e)n=="constructor"&&(t||!mL.call(e,n))||r.push(n);return r}var Lb=hL;function gL(e){return af(e)?of(e,!0):Lb(e)}var Ea=gL;function vL(e,t){return e&&ao(t,Ea(t),e)}var zb=vL;a();var _b=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hb=_b&&typeof module=="object"&&module&&!module.nodeType&&module,yL=Hb&&Hb.exports===_b,Gb=yL?et.Buffer:void 0,jb=Gb?Gb.allocUnsafe:void 0;function bL(e,t){if(t)return e.slice();var r=e.length,n=jb?jb(r):new e.constructor(r);return e.copy(n),n}var Wb=bL;a();function CL(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var sf=CL;a();a();a();function xL(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var s=e[r];t(s,r,e)&&(i[o++]=s)}return i}var Ub=xL;a();function wL(){return[]}var uf=wL;var DL=Object.prototype,SL=DL.propertyIsEnumerable,Kb=Object.getOwnPropertySymbols,EL=Kb?function(e){return e==null?[]:(e=Object(e),Ub(Kb(e),function(t){return SL.call(e,t)}))}:uf,Ta=EL;function TL(e,t){return ao(e,Ta(e),t)}var qb=TL;a();a();a();function PL(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var lf=PL;var AL=Object.getOwnPropertySymbols,OL=AL?function(e){for(var t=[];e;)lf(t,Ta(e)),e=va(e);return t}:uf,cf=OL;function FL(e,t){return ao(e,cf(e),t)}var Xb=FL;a();a();function BL(e,t,r){var n=t(e);return Gr(e)?n:lf(n,r(e))}var ff=BL;function $L(e){return ff(e,Sa,Ta)}var Yb=$L;a();function RL(e){return ff(e,Ea,cf)}var Jb=RL;a();a();var ML=Wt(et,"DataView"),pf=ML;a();var IL=Wt(et,"Promise"),df=IL;a();var kL=Wt(et,"Set"),mf=kL;a();var VL=Wt(et,"WeakMap"),hf=VL;var Zb="[object Map]",NL="[object Object]",Qb="[object Promise]",eC="[object Set]",tC="[object WeakMap]",rC="[object DataView]",LL=wn(pf),zL=wn(oo),HL=wn(df),GL=wn(mf),jL=wn(hf),qo=ir;(pf&&qo(new pf(new ArrayBuffer(1)))!=rC||oo&&qo(new oo)!=Zb||df&&qo(df.resolve())!=Qb||mf&&qo(new mf)!=eC||hf&&qo(new hf)!=tC)&&(qo=function(e){var t=ir(e),r=t==NL?e.constructor:void 0,n=r?wn(r):"";if(n)switch(n){case LL:return rC;case zL:return Zb;case HL:return Qb;case GL:return eC;case jL:return tC}return t});var Pa=qo;a();var _L=Object.prototype,WL=_L.hasOwnProperty;function UL(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&WL.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var nC=UL;a();a();a();var KL=et.Uint8Array,t0=KL;function qL(e){var t=new e.constructor(e.byteLength);return new t0(t).set(new t0(e)),t}var Aa=qL;a();function XL(e,t){var r=t?Aa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var oC=XL;a();var YL=/\w*$/;function JL(e){var t=new e.constructor(e.source,YL.exec(e));return t.lastIndex=e.lastIndex,t}var iC=JL;a();var aC=hr?hr.prototype:void 0,sC=aC?aC.valueOf:void 0;function ZL(e){return sC?Object(sC.call(e)):{}}var uC=ZL;a();function QL(e,t){var r=t?Aa(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var lC=QL;var ez="[object Boolean]",tz="[object Date]",rz="[object Map]",nz="[object Number]",oz="[object RegExp]",iz="[object Set]",az="[object String]",sz="[object Symbol]",uz="[object ArrayBuffer]",lz="[object DataView]",cz="[object Float32Array]",fz="[object Float64Array]",pz="[object Int8Array]",dz="[object Int16Array]",mz="[object Int32Array]",hz="[object Uint8Array]",gz="[object Uint8ClampedArray]",vz="[object Uint16Array]",yz="[object Uint32Array]";function bz(e,t,r){var n=e.constructor;switch(t){case uz:return Aa(e);case ez:case tz:return new n(+e);case lz:return oC(e,r);case cz:case fz:case pz:case dz:case mz:case hz:case gz:case vz:case yz:return lC(e,r);case rz:return new n;case nz:case az:return new n(e);case oz:return iC(e);case iz:return new n;case sz:return uC(e)}}var cC=bz;a();a();var fC=Object.create,Cz=function(){function e(){}return function(t){if(!Hr(t))return{};if(fC)return fC(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),pC=Cz;function xz(e){return typeof e.constructor=="function"&&!Da(e)?pC(va(e)):{}}var dC=xz;a();a();var wz="[object Map]";function Dz(e){return _t(e)&&Pa(e)==wz}var mC=Dz;var hC=Sn&&Sn.isMap,Sz=hC?wa(hC):mC,gC=Sz;a();a();var Ez="[object Set]";function Tz(e){return _t(e)&&Pa(e)==Ez}var vC=Tz;var yC=Sn&&Sn.isSet,Pz=yC?wa(yC):vC,bC=Pz;var Az=1,Oz=2,Fz=4,CC="[object Arguments]",Bz="[object Array]",$z="[object Boolean]",Rz="[object Date]",Mz="[object Error]",xC="[object Function]",Iz="[object GeneratorFunction]",kz="[object Map]",Vz="[object Number]",wC="[object Object]",Nz="[object RegExp]",Lz="[object Set]",zz="[object String]",Hz="[object Symbol]",Gz="[object WeakMap]",jz="[object ArrayBuffer]",_z="[object DataView]",Wz="[object Float32Array]",Uz="[object Float64Array]",Kz="[object Int8Array]",qz="[object Int16Array]",Xz="[object Int32Array]",Yz="[object Uint8Array]",Jz="[object Uint8ClampedArray]",Zz="[object Uint16Array]",Qz="[object Uint32Array]",Me={};Me[CC]=Me[Bz]=Me[jz]=Me[_z]=Me[$z]=Me[Rz]=Me[Wz]=Me[Uz]=Me[Kz]=Me[qz]=Me[Xz]=Me[kz]=Me[Vz]=Me[wC]=Me[Nz]=Me[Lz]=Me[zz]=Me[Hz]=Me[Yz]=Me[Jz]=Me[Zz]=Me[Qz]=!0;Me[Mz]=Me[xC]=Me[Gz]=!1;function gf(e,t,r,n,o,i){var s,u=t&Az,l=t&Oz,c=t&Fz;if(r&&(s=o?r(e,n,o,i):r(e)),s!==void 0)return s;if(!Hr(e))return e;var p=Gr(e);if(p){if(s=nC(e),!u)return sf(e,s)}else{var d=Pa(e),h=d==xC||d==Iz;if(rf(e))return Wb(e,u);if(d==wC||d==CC||h&&!o){if(s=l||h?{}:dC(e),!u)return l?Xb(e,zb(s,e)):qb(e,Vb(s,e))}else{if(!Me[d])return o?e:{};s=cC(e,d,u)}}i||(i=new xb);var g=i.get(e);if(g)return g;i.set(e,s),bC(e)?e.forEach(function(y){s.add(gf(y,t,r,y,e,i))}):gC(e)&&e.forEach(function(y,b){s.set(b,gf(y,t,r,b,e,i))});var v=c?l?Jb:Yb:l?Ea:Sa,m=p?void 0:v(e);return wb(m||e,function(y,b){m&&(b=y,y=e[b]),tf(s,b,gf(y,t,r,b,e,i))}),s}var vf=gf;var eH=1,tH=4;function rH(e){return vf(e,eH|tH)}var Oa=rH;var En=dr(TC());import{createContext as IH,useContext as kH,Children as h0,useRef as so,useEffect as uo,useState as VH,useCallback as tt,useMemo as qC,useImperativeHandle as NH,createElement as lo,useLayoutEffect as LH,forwardRef as zH,Component as HH}from"react";a();var iH=!0;function aH(e,t){if(!iH){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var PC=aH;a();var sH=4;function uH(e){return vf(e,sH)}var n0=uH;a();a();function lH(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var yf=lH;a();var cH="[object Symbol]";function fH(e){return typeof e=="symbol"||_t(e)&&ir(e)==cH}var Fa=fH;a();a();a();var pH="Expected a function";function o0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pH);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=e.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o0.Cache||Zs),r}o0.Cache=Zs;var AC=o0;var dH=500;function mH(e){var t=AC(e,function(n){return r.size===dH&&r.clear(),n}),r=t.cache;return t}var OC=mH;var hH=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gH=/\\(\\)?/g,vH=OC(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(hH,function(r,n,o,i){t.push(o?i.replace(gH,"$1"):n||r)}),t}),FC=vH;a();var yH=1/0;function bH(e){if(typeof e=="string"||Fa(e))return e;var t=e+"";return t=="0"&&1/e==-yH?"-0":t}var BC=bH;a();a();var CH=1/0,$C=hr?hr.prototype:void 0,RC=$C?$C.toString:void 0;function MC(e){if(typeof e=="string")return e;if(Gr(e))return yf(e,MC)+"";if(Fa(e))return RC?RC.call(e):"";var t=e+"";return t=="0"&&1/e==-CH?"-0":t}var IC=MC;function xH(e){return e==null?"":IC(e)}var kC=xH;function wH(e){return Gr(e)?yf(e,BC):Fa(e)?[e]:sf(FC(kC(e)))}var i0=wH;var GH=dr(KC());function Be(){return Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Be.apply(this,arguments)}function jH(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Yo(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function XC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ff=IH(void 0);Ff.displayName="FormikContext";var _H=Ff.Provider,oNe=Ff.Consumer;function Zo(){var e=kH(Ff);return e||PC(!1),e}var YC=function(t){return Array.isArray(t)&&t.length===0},Bt=function(t){return typeof t=="function"},eu=function(t){return t!==null&&typeof t=="object"},WH=function(t){return String(Math.floor(Number(t)))===t},f0=function(t){return Object.prototype.toString.call(t)==="[object String]"};var ZC=function(t){return h0.count(t)===0},p0=function(t){return eu(t)&&Bt(t.then)};function dt(e,t,r,n){n===void 0&&(n=0);for(var o=i0(t);e&&n<o.length;)e=e[o[n++]];return n!==o.length&&!e||e===void 0?r:e}function jr(e,t,r){for(var n=n0(e),o=n,i=0,s=i0(t);i<s.length-1;i++){var u=s[i],l=dt(e,s.slice(0,i+1));if(l&&(eu(l)||Array.isArray(l)))o=o[u]=n0(l);else{var c=s[i+1];o=o[u]=WH(c)&&Number(c)>=0?[]:{}}}return(i===0?e:o)[s[i]]===r?e:(r===void 0?delete o[s[i]]:o[s[i]]=r,i===0&&r===void 0&&delete n[s[i]],n)}function QC(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var o=0,i=Object.keys(e);o<i.length;o++){var s=i[o],u=e[s];eu(u)?r.get(u)||(r.set(u,!0),n[s]=Array.isArray(u)?[]:{},QC(u,t,r,n[s])):n[s]=t}return n}function UH(e,t){switch(t.type){case"SET_VALUES":return Be({},e,{values:t.payload});case"SET_TOUCHED":return Be({},e,{touched:t.payload});case"SET_ERRORS":return(0,En.default)(e.errors,t.payload)?e:Be({},e,{errors:t.payload});case"SET_STATUS":return Be({},e,{status:t.payload});case"SET_ISSUBMITTING":return Be({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Be({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Be({},e,{values:jr(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Be({},e,{touched:jr(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Be({},e,{errors:jr(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Be({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Be({},e,{touched:QC(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Be({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Be({},e,{isSubmitting:!1});default:return e}}var Xo={},Of={};function KH(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,o=n===void 0?!0:n,i=e.validateOnMount,s=i===void 0?!1:i,u=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,p=e.onSubmit,d=Yo(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),h=Be({validateOnChange:r,validateOnBlur:o,validateOnMount:s,onSubmit:p},d),g=so(h.initialValues),v=so(h.initialErrors||Xo),m=so(h.initialTouched||Of),y=so(h.initialStatus),b=so(!1),x=so({});uo(function(){return b.current=!0,function(){b.current=!1}},[]);var w=VH(0),D=w[1],E=so({values:Oa(h.initialValues),errors:Oa(h.initialErrors)||Xo,touched:Oa(h.initialTouched)||Of,status:Oa(h.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),S=E.current,T=tt(function(B){var X=E.current;E.current=UH(X,B),X!==E.current&&D(function(ee){return ee+1})},[]),O=tt(function(B,X){return new Promise(function(ee,q){var ae=h.validate(B,X);ae==null?ee(Xo):p0(ae)?ae.then(function(De){ee(De||Xo)},function(De){q(De)}):ee(ae)})},[h.validate]),F=tt(function(B,X){var ee=h.validationSchema,q=Bt(ee)?ee(X):ee,ae=X&&q.validateAt?q.validateAt(X,B):XH(B,q);return new Promise(function(De,Te){ae.then(function(){De(Xo)},function(ht){ht.name==="ValidationError"?De(qH(ht)):Te(ht)})})},[h.validationSchema]),I=tt(function(B,X){return new Promise(function(ee){return ee(x.current[B].validate(X))})},[]),G=tt(function(B){var X=Object.keys(x.current).filter(function(q){return Bt(x.current[q].validate)}),ee=X.length>0?X.map(function(q){return I(q,dt(B,q))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ee).then(function(q){return q.reduce(function(ae,De,Te){return De==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||De&&(ae=jr(ae,X[Te],De)),ae},{})})},[I]),k=tt(function(B){return Promise.all([G(B),h.validationSchema?F(B):{},h.validate?O(B):{}]).then(function(X){var ee=X[0],q=X[1],ae=X[2],De=qc.all([ee,q,ae],{arrayMerge:YH});return De})},[h.validate,h.validationSchema,G,O,F]),H=gr(function(B){return B===void 0&&(B=S.values),T({type:"SET_ISVALIDATING",payload:!0}),k(B).then(function(X){return b.current&&(T({type:"SET_ISVALIDATING",payload:!1}),T({type:"SET_ERRORS",payload:X})),X})});uo(function(){s&&b.current===!0&&(0,En.default)(g.current,h.initialValues)&&H(g.current)},[s,H]);var V=tt(function(B){var X=B&&B.values?B.values:g.current,ee=B&&B.errors?B.errors:v.current?v.current:h.initialErrors||{},q=B&&B.touched?B.touched:m.current?m.current:h.initialTouched||{},ae=B&&B.status?B.status:y.current?y.current:h.initialStatus;g.current=X,v.current=ee,m.current=q,y.current=ae;var De=function(){T({type:"RESET_FORM",payload:{isSubmitting:!!B&&!!B.isSubmitting,errors:ee,touched:q,status:ae,values:X,isValidating:!!B&&!!B.isValidating,submitCount:B&&B.submitCount&&typeof B.submitCount=="number"?B.submitCount:0}})};if(h.onReset){var Te=h.onReset(S.values,Ae);p0(Te)?Te.then(De):De()}else De()},[h.initialErrors,h.initialStatus,h.initialTouched,h.onReset]);uo(function(){b.current===!0&&!(0,En.default)(g.current,h.initialValues)&&c&&(g.current=h.initialValues,V(),s&&H(g.current))},[c,h.initialValues,V,s,H]),uo(function(){c&&b.current===!0&&!(0,En.default)(v.current,h.initialErrors)&&(v.current=h.initialErrors||Xo,T({type:"SET_ERRORS",payload:h.initialErrors||Xo}))},[c,h.initialErrors]),uo(function(){c&&b.current===!0&&!(0,En.default)(m.current,h.initialTouched)&&(m.current=h.initialTouched||Of,T({type:"SET_TOUCHED",payload:h.initialTouched||Of}))},[c,h.initialTouched]),uo(function(){c&&b.current===!0&&!(0,En.default)(y.current,h.initialStatus)&&(y.current=h.initialStatus,T({type:"SET_STATUS",payload:h.initialStatus}))},[c,h.initialStatus,h.initialTouched]);var M=gr(function(B){if(x.current[B]&&Bt(x.current[B].validate)){var X=dt(S.values,B),ee=x.current[B].validate(X);return p0(ee)?(T({type:"SET_ISVALIDATING",payload:!0}),ee.then(function(q){return q}).then(function(q){T({type:"SET_FIELD_ERROR",payload:{field:B,value:q}}),T({type:"SET_ISVALIDATING",payload:!1})})):(T({type:"SET_FIELD_ERROR",payload:{field:B,value:ee}}),Promise.resolve(ee))}else if(h.validationSchema)return T({type:"SET_ISVALIDATING",payload:!0}),F(S.values,B).then(function(q){return q}).then(function(q){T({type:"SET_FIELD_ERROR",payload:{field:B,value:dt(q,B)}}),T({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),Z=tt(function(B,X){var ee=X.validate;x.current[B]={validate:ee}},[]),re=tt(function(B){delete x.current[B]},[]),se=gr(function(B,X){T({type:"SET_TOUCHED",payload:B});var ee=X===void 0?o:X;return ee?H(S.values):Promise.resolve()}),j=tt(function(B){T({type:"SET_ERRORS",payload:B})},[]),ne=gr(function(B,X){var ee=Bt(B)?B(S.values):B;T({type:"SET_VALUES",payload:ee});var q=X===void 0?r:X;return q?H(ee):Promise.resolve()}),ce=tt(function(B,X){T({type:"SET_FIELD_ERROR",payload:{field:B,value:X}})},[]),pe=gr(function(B,X,ee){T({type:"SET_FIELD_VALUE",payload:{field:B,value:X}});var q=ee===void 0?r:ee;return q?H(jr(S.values,B,X)):Promise.resolve()}),$e=tt(function(B,X){var ee=X,q=B,ae;if(!f0(B)){B.persist&&B.persist();var De=B.target?B.target:B.currentTarget,Te=De.type,ht=De.name,Nn=De.id,Cr=De.value,Qd=De.checked,_g=De.outerHTML,Fi=De.options,e1=De.multiple;ee=X||ht||Nn,q=/number|range/.test(Te)?(ae=parseFloat(Cr),isNaN(ae)?"":ae):/checkbox/.test(Te)?ZH(dt(S.values,ee),Qd,Cr):Fi&&e1?JH(Fi):Cr}ee&&pe(ee,q)},[pe,S.values]),A=gr(function(B){if(f0(B))return function(X){return $e(X,B)};$e(B)}),_=gr(function(B,X,ee){X===void 0&&(X=!0),T({type:"SET_FIELD_TOUCHED",payload:{field:B,value:X}});var q=ee===void 0?o:ee;return q?H(S.values):Promise.resolve()}),z=tt(function(B,X){B.persist&&B.persist();var ee=B.target,q=ee.name,ae=ee.id,De=ee.outerHTML,Te=X||q||ae;_(Te,!0)},[_]),U=gr(function(B){if(f0(B))return function(X){return z(X,B)};z(B)}),ue=tt(function(B){Bt(B)?T({type:"SET_FORMIK_STATE",payload:B}):T({type:"SET_FORMIK_STATE",payload:function(){return B}})},[]),Q=tt(function(B){T({type:"SET_STATUS",payload:B})},[]),he=tt(function(B){T({type:"SET_ISSUBMITTING",payload:B})},[]),we=gr(function(){return T({type:"SUBMIT_ATTEMPT"}),H().then(function(B){var X=B instanceof Error,ee=!X&&Object.keys(B).length===0;if(ee){var q;try{if(q=Ce(),q===void 0)return}catch(ae){throw ae}return Promise.resolve(q).then(function(ae){return b.current&&T({type:"SUBMIT_SUCCESS"}),ae}).catch(function(ae){if(b.current)throw T({type:"SUBMIT_FAILURE"}),ae})}else if(b.current&&(T({type:"SUBMIT_FAILURE"}),X))throw B})}),Se=gr(function(B){if(B&&B.preventDefault&&Bt(B.preventDefault)&&B.preventDefault(),B&&B.stopPropagation&&Bt(B.stopPropagation)&&B.stopPropagation(),0)var X;we().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Ae={resetForm:V,validateForm:H,validateField:M,setErrors:j,setFieldError:ce,setFieldTouched:_,setFieldValue:pe,setStatus:Q,setSubmitting:he,setTouched:se,setValues:ne,setFormikState:ue,submitForm:we},Ce=gr(function(){return p(S.values,Ae)}),je=gr(function(B){B&&B.preventDefault&&Bt(B.preventDefault)&&B.preventDefault(),B&&B.stopPropagation&&Bt(B.stopPropagation)&&B.stopPropagation(),V()}),Ye=tt(function(B){return{value:dt(S.values,B),error:dt(S.errors,B),touched:!!dt(S.touched,B),initialValue:dt(g.current,B),initialTouched:!!dt(m.current,B),initialError:dt(v.current,B)}},[S.errors,S.touched,S.values]),ke=tt(function(B){return{setValue:function(ee,q){return pe(B,ee,q)},setTouched:function(ee,q){return _(B,ee,q)},setError:function(ee){return ce(B,ee)}}},[pe,_,ce]),Tt=tt(function(B){var X=eu(B),ee=X?B.name:B,q=dt(S.values,ee),ae={name:ee,value:q,onChange:A,onBlur:U};if(X){var De=B.type,Te=B.value,ht=B.as,Nn=B.multiple;De==="checkbox"?Te===void 0?ae.checked=!!q:(ae.checked=!!(Array.isArray(q)&&~q.indexOf(Te)),ae.value=Te):De==="radio"?(ae.checked=q===Te,ae.value=Te):ht==="select"&&Nn&&(ae.value=ae.value||[],ae.multiple=!0)}return ae},[U,A,S.values]),Ct=qC(function(){return!(0,En.default)(g.current,S.values)},[g.current,S.values]),st=qC(function(){return typeof u<"u"?Ct?S.errors&&Object.keys(S.errors).length===0:u!==!1&&Bt(u)?u(h):u:S.errors&&Object.keys(S.errors).length===0},[u,Ct,S.errors,h]),ut=Be({},S,{initialValues:g.current,initialErrors:v.current,initialTouched:m.current,initialStatus:y.current,handleBlur:U,handleChange:A,handleReset:je,handleSubmit:Se,resetForm:V,setErrors:j,setFormikState:ue,setFieldTouched:_,setFieldValue:pe,setFieldError:ce,setStatus:Q,setSubmitting:he,setTouched:se,setValues:ne,submitForm:we,validateForm:H,validateField:M,isValid:st,dirty:Ct,unregisterField:re,registerField:Z,getFieldProps:Tt,getFieldMeta:Ye,getFieldHelpers:ke,validateOnBlur:o,validateOnChange:r,validateOnMount:s});return ut}function ex(e){var t=KH(e),r=e.component,n=e.children,o=e.render,i=e.innerRef;return NH(i,function(){return t}),lo(_H,{value:t},r?lo(r,t):o?o(t):n?Bt(n)?n(t):ZC(n)?null:h0.only(n):null)}function qH(e){var t={};if(e.inner){if(e.inner.length===0)return jr(t,e.path,e.message);for(var o=e.inner,r=Array.isArray(o),n=0,o=r?o:o[Symbol.iterator]();;){var i;if(r){if(n>=o.length)break;i=o[n++]}else{if(n=o.next(),n.done)break;i=n.value}var s=i;dt(t,s.path)||(t=jr(t,s.path,s.message))}}return t}function XH(e,t,r,n){r===void 0&&(r=!1);var o=m0(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}function m0(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);Array.isArray(e[n])===!0?t[n]=e[n].map(function(o){return Array.isArray(o)===!0||Ym(o)?m0(o):o!==""?o:void 0}):Ym(e[n])?t[n]=m0(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function YH(e,t,r){var n=e.slice();return t.forEach(function(i,s){if(typeof n[s]>"u"){var u=r.clone!==!1,l=u&&r.isMergeableObject(i);n[s]=l?qc(Array.isArray(i)?[]:{},i,r):i}else r.isMergeableObject(i)?n[s]=qc(e[s],i,r):e.indexOf(i)===-1&&n.push(i)}),n}function JH(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function ZH(e,t,r){if(typeof e=="boolean")return!!t;var n=[],o=!1,i=-1;if(Array.isArray(e))n=e,i=e.indexOf(r),o=i>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!o?n.concat(r):o?n.slice(0,i).concat(n.slice(i+1)):n}var QH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?LH:uo;function gr(e){var t=so(e);return QH(function(){t.current=e}),tt(function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return t.current.apply(void 0,n)},[])}function tx(e){var t=e.validate,r=e.name,n=e.render,o=e.children,i=e.as,s=e.component,u=e.className,l=Yo(e,["validate","name","render","children","as","component","className"]),c=Zo(),p=Yo(c,["validate","validationSchema"]),d=p.registerField,h=p.unregisterField;uo(function(){return d(r,{validate:t}),function(){h(r)}},[d,h,r,t]);var g=p.getFieldProps(Be({name:r},l)),v=p.getFieldMeta(r),m={field:g,form:p};if(n)return n(Be({},m,{meta:v}));if(Bt(o))return o(Be({},m,{meta:v}));if(s){if(typeof s=="string"){var y=l.innerRef,b=Yo(l,["innerRef"]);return lo(s,Be({ref:y},g,b,{className:u}),o)}return lo(s,Be({field:g,form:p},l,{className:u}),o)}var x=i||"input";if(typeof x=="string"){var w=l.innerRef,D=Yo(l,["innerRef"]);return lo(x,Be({ref:w},g,D,{className:u}),o)}return lo(x,Be({},g,l,{className:u}),o)}var g0=zH(function(e,t){var r=e.action,n=Yo(e,["action"]),o=r??"#",i=Zo(),s=i.handleReset,u=i.handleSubmit;return lo("form",Be({onSubmit:u,ref:t,onReset:s,action:o},n))});g0.displayName="Form";var eG=function(t,r,n){var o=Jo(t),i=o[r];return o.splice(r,1),o.splice(n,0,i),o},tG=function(t,r,n){var o=Jo(t),i=o[r];return o[r]=o[n],o[n]=i,o},d0=function(t,r,n){var o=Jo(t);return o.splice(r,0,n),o},rG=function(t,r,n){var o=Jo(t);return o[r]=n,o},Jo=function(t){if(t){if(Array.isArray(t))return[].concat(t);var r=Object.keys(t).map(function(n){return parseInt(n)}).reduce(function(n,o){return o>n?o:n},0);return Array.from(Be({},t,{length:r+1}))}else return[]},JC=function(t,r){var n=typeof t=="function"?t:r;return function(o){if(Array.isArray(o)||eu(o)){var i=Jo(o);return n(i)}return o}},nG=function(e){jH(t,e);function t(n){var o;return o=e.call(this,n)||this,o.updateArrayField=function(i,s,u){var l=o.props,c=l.name,p=l.formik.setFormikState;p(function(d){var h=JC(u,i),g=JC(s,i),v=jr(d.values,c,i(dt(d.values,c))),m=u?h(dt(d.errors,c)):void 0,y=s?g(dt(d.touched,c)):void 0;return YC(m)&&(m=void 0),YC(y)&&(y=void 0),Be({},d,{values:v,errors:u?jr(d.errors,c,m):d.errors,touched:s?jr(d.touched,c,y):d.touched})})},o.push=function(i){return o.updateArrayField(function(s){return[].concat(Jo(s),[Oa(i)])},!1,!1)},o.handlePush=function(i){return function(){return o.push(i)}},o.swap=function(i,s){return o.updateArrayField(function(u){return tG(u,i,s)},!0,!0)},o.handleSwap=function(i,s){return function(){return o.swap(i,s)}},o.move=function(i,s){return o.updateArrayField(function(u){return eG(u,i,s)},!0,!0)},o.handleMove=function(i,s){return function(){return o.move(i,s)}},o.insert=function(i,s){return o.updateArrayField(function(u){return d0(u,i,s)},function(u){return d0(u,i,null)},function(u){return d0(u,i,null)})},o.handleInsert=function(i,s){return function(){return o.insert(i,s)}},o.replace=function(i,s){return o.updateArrayField(function(u){return rG(u,i,s)},!1,!1)},o.handleReplace=function(i,s){return function(){return o.replace(i,s)}},o.unshift=function(i){var s=-1;return o.updateArrayField(function(u){var l=u?[i].concat(u):[i];return s=l.length,l},function(u){return u?[null].concat(u):[null]},function(u){return u?[null].concat(u):[null]}),s},o.handleUnshift=function(i){return function(){return o.unshift(i)}},o.handleRemove=function(i){return function(){return o.remove(i)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(XC(o)),o.pop=o.pop.bind(XC(o)),o}var r=t.prototype;return r.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,En.default)(dt(o.formik.values,o.name),dt(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(o){var i;return this.updateArrayField(function(s){var u=s?Jo(s):[];return i||(i=u[o]),Bt(u.splice)&&u.splice(o,1),Bt(u.every)&&u.every(function(l){return l===void 0})?[]:u},!0,!0),i},r.pop=function(){var o;return this.updateArrayField(function(i){var s=i.slice();return o||(o=s&&s.pop&&s.pop()),s},!0,!0),o},r.render=function(){var o={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},i=this.props,s=i.component,u=i.render,l=i.children,c=i.name,p=i.formik,d=Yo(p,["validate","validationSchema"]),h=Be({},o,{form:d,name:c});return s?lo(s,h):u?u(h):l?typeof l=="function"?l(h):ZC(l)?null:h0.only(l):null},t}(HH);nG.defaultProps={validateOnChange:!0};a();a();import{useState as oG}from"react";var iG=()=>{let[e,t]=oG(!1),r=()=>t(!0),n=()=>t(!0),o=()=>t(!0),u={onFocus:r,onMouseEnter:n,onBlur:()=>t(!1),onMouseLeave:()=>t(!1)};return e||(u.onMouseMove=o),[e,u,t]};a();a();import{useMemo as aG}from"react";var sG=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e!=null&&e?()=>!0:()=>!1,Bf=(e,t,r={},n=[e])=>{let{eventName:o="keydown",eventTarget:i,eventOptions:s}=r,u=aG(()=>{let l=sG(e);return c=>{if(!(["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.nodeName??"")||document.activeElement?.isContentEditable)&&l(c))return t(c)}},n);Wm(o,u,i,s)};a();a();import{useState as uG}from"react";var v0=e=>{let[t,r]=uG([!1,null]);return Bf(e,n=>r([!0,n]),{eventName:"keydown"},[t]),Bf(e,n=>r([!1,n]),{eventName:"keyup"},[t]),t};a();a();a();a();import{useEffect as lG,useRef as cG}from"react";var y0=(e,t)=>{let r=cG(!0);lG(()=>r.current?(r.current=!1,()=>{}):e(),t)};var b0=(e,t=void 0,r=void 0)=>{let[n,o]=v0(e);y0(()=>(!n&&r&&o!==null?r(o):n&&t&&o!==null&&t(o),()=>{}),[n])};a();a();import{useState as fG}from"react";var pG=(e,t,r=window.localStorage)=>{let[n,o]=fG(()=>{try{let u=r.getItem(e);return u!==null&&u?JSON.parse(u):t}catch(u){return console.log(u),t}});return[n,u=>{try{let l=u instanceof Function?u(n):u;o(l),r.setItem(e,JSON.stringify(l))}catch(l){console.error(l)}},()=>{r.removeItem(e),o(void 0)}]};a();a();var tu=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})};a();a();import{useEffect as dG}from"react";var ru=(e,t)=>{dG(()=>{let r=n=>{!e.current||e.current.contains(n.target)||t(n)};return document.addEventListener("mousedown",r),document.addEventListener("touchstart",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("touchstart",r)}},[e,t])};a();a();import{useLayoutEffect as mG}from"react";var C0=e=>{mG(()=>{if(e){let t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}}return()=>{}},[e])};a();a();import{useEffect as hG,useRef as gG}from"react";var nu=e=>{let t=gG();return hG(()=>{t.current=e}),t.current};a();a();import Nf from"styled-components";a();a();var sx=dr(Rf());import{useEffect as Qo,useRef as nx,useState as ox,useCallback as ix}from"react";import{createPortal as PG}from"react-dom";import{createGlobalStyle as AG}from"styled-components";a();a();import{Children as xG}from"react";import{createGlobalStyle as wG}from"styled-components";import{Fragment as EG,jsx as x0,jsxs as TG}from"react/jsx-runtime";var DG=100,SG=wG`
|
|
711
710
|
.EnterTransition {
|
|
712
711
|
opacity: 0;
|
|
713
712
|
}
|
|
@@ -1779,7 +1778,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
1779
1778
|
}
|
|
1780
1779
|
|
|
1781
1780
|
width: ${({fullWidth:e})=>e?"100%":"auto"};
|
|
1782
|
-
`,t2=(e,t,r)=>{let n=({groupLabel:o,groupOptions:i,disabled:s=!1})=>e2("optgroup",{"data-testid":o,disabled:s,label:o,children:t2(i)},o);return e.map(o=>{if(Object.prototype.hasOwnProperty.call(o,"groupLabel"))return n(o);let{label:i,value:s,disabled:u=!1}=o,l=be(r)?o[r]:s,c=be(t)?o[t]:i;return ol(l)&&(l=rr(l)),e2("option",{disabled:u,value:l,children:c},`${rr(c)}--${rr(l)}`)})},GU=(e,t,r)=>$(e)&&!r?t2([{label:e,value:"",disabled:t}]):null,jU=e=>e?null:e2(Ee,{size:"md",type:"caret-down"}),ni=NU(({ariaLabel:e,disabled:t=!1,forceState:r,fullWidth:n=!0,hasError:o=!1,labelName:i="label",multiple:s=!1,options:u,placeholder:l="Please select...",preventPlaceholderSelection:c=!1,required:p=!1,valueName:d="value",...h},g)=>Aw(HU,{disabled:t,forceState:r,fullWidth:n,children:[Aw(Z0,{ref:g,"aria-invalid":o?"true":"false","aria-label":e,disabled:t,forceState:r,hasError:o,multiple:s,required:p,...h,children:[GU(l,c,s),t2(u,i,d)]}),jU(s)]}));ni.displayName="Select_VHS";import{jsx as Ow}from"react/jsx-runtime";var pp=({disabled:e=!1,field:{name:t,value:r,onChange:n,onBlur:o},form:{errors:i},label:s,labelDescription:u,labelProps:l={},options:c,placeholder:p,onChangeCustom:d,...h})=>{let g=v=>de(v)?"":ol(v)?rr(r):v;return Ow(Ut,{disabled:e,error:i[t],label:s,labelDescription:u,labelProps:l,name:t,children:Ow(ni,{"data-testid":`select-${t}`,disabled:e,name:t,onBlur:o,onChange:v=>{n(v),d&&d(v.target.value)},options:c,placeholder:p,value:g(r),...h})})};pp.displayName="FormConnectorSelect_VHS";a();a();import{useEffect as _U}from"react";import{jsx as WU}from"react/jsx-runtime";var dp=({field:{name:e,value:t,onChange:r},form:{setFieldValue:n}={},onChangeCustom:o,valueState:i="",...s})=>(_U(()=>{!i&&de(t)||i!==t&&J(n)&&n(e,i)},[n,e,i,t]),WU(Ia,{"data-testid":`input-${e}`,name:e,onChange:u=>{r(u),J(o)&&o(u.target.value)},type:"hidden",value:de(t)?"":t,...s}));dp.displayName="FormConnectorHidden_VHS";a();a();import{useState as cQ,useEffect as fQ}from"react";import pQ from"styled-components";a();a();import{useCallback as bh,useMemo as nQ,useEffect as oQ}from"react";import dT from"styled-components";a();var X2=dr(Rw()),jS=dr(i2()),_S=dr(pD());import me,{createContext as pi,useContext as _a,useRef as cr,useEffect as Bn,useLayoutEffect as AY,useState as fi,memo as OY,forwardRef as FY,useCallback as Ie,Component as BY,useReducer as $Y,useMemo as Rp}from"react";a();a();function dD(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function mD(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function a2(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return mD(r.overflowY,t)||mD(r.overflowX,t)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(e)}return!1}function hp(e,t,r,n,o,i,s,u){return i<e&&s>t||i>e&&s<t?0:i<=e&&u<=r||s>=t&&u>=r?i-e-n:s>t&&u<r||i<e&&u>r?s-t+o:0}var s2=function(e,t){var r=window,n=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,l=typeof s=="function"?s:function(Ce){return Ce!==s};if(!dD(e))throw new TypeError("Invalid target");for(var c,p,d=document.scrollingElement||document.documentElement,h=[],g=e;dD(g)&&l(g);){if((g=(p=(c=g).parentElement)==null?c.getRootNode().host||null:p)===d){h.push(g);break}g!=null&&g===document.body&&a2(g)&&!a2(document.documentElement)||g!=null&&a2(g,u)&&h.push(g)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,m=r.visualViewport?r.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),w=x.height,D=x.width,E=x.top,S=x.right,T=x.bottom,O=x.left,F=o==="start"||o==="nearest"?E:o==="end"?T:E+w/2,I=i==="center"?O+D/2:i==="end"?S:O,G=[],k=0;k<h.length;k++){var H=h[k],V=H.getBoundingClientRect(),M=V.height,Z=V.width,re=V.top,se=V.right,j=V.bottom,ne=V.left;if(n==="if-needed"&&E>=0&&O>=0&&T<=m&&S<=v&&E>=re&&T<=j&&O>=ne&&S<=se)return G;var ce=getComputedStyle(H),pe=parseInt(ce.borderLeftWidth,10),$e=parseInt(ce.borderTopWidth,10),A=parseInt(ce.borderRightWidth,10),_=parseInt(ce.borderBottomWidth,10),z=0,U=0,ue="offsetWidth"in H?H.offsetWidth-H.clientWidth-pe-A:0,Q="offsetHeight"in H?H.offsetHeight-H.clientHeight-$e-_:0,he="offsetWidth"in H?H.offsetWidth===0?0:Z/H.offsetWidth:0,we="offsetHeight"in H?H.offsetHeight===0?0:M/H.offsetHeight:0;if(d===H)z=o==="start"?F:o==="end"?F-m:o==="nearest"?hp(b,b+m,m,$e,_,b+F,b+F+w,w):F-m/2,U=i==="start"?I:i==="center"?I-v/2:i==="end"?I-v:hp(y,y+v,v,pe,A,y+I,y+I+D,D),z=Math.max(0,z+b),U=Math.max(0,U+y);else{z=o==="start"?F-re-$e:o==="end"?F-j+_+Q:o==="nearest"?hp(re,j,M,$e,_+Q,F,F+w,w):F-(re+M/2)+Q/2,U=i==="start"?I-ne-pe:i==="center"?I-(ne+Z/2)+ue/2:i==="end"?I-se+A+ue:hp(ne,se,Z,pe,A+ue,I,I+D,D);var Se=H.scrollLeft,Ae=H.scrollTop;F+=Ae-(z=Math.max(0,Math.min(Ae+z/we,H.scrollHeight-M/we+Q))),I+=Se-(U=Math.max(0,Math.min(Se+U/he,H.scrollWidth-Z/he+ue)))}G.push({el:H,top:z,left:U})}return G};function hD(e){return e===Object(e)&&Object.keys(e).length!==0}function HK(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var o=n.el,i=n.top,s=n.left;o.scroll&&r?o.scroll({top:i,left:s,behavior:t}):(o.scrollTop=i,o.scrollLeft=s)})}function GK(e){return e===!1?{block:"end",inline:"nearest"}:hD(e)?e:{block:"start",inline:"nearest"}}function jK(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(hD(t)&&typeof t.behavior=="function")return t.behavior(r?s2(e,t):[]);if(r){var n=GK(t);return HK(s2(e,n),n.behavior)}}var gD=jK;a();a();function vD(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xe(e){var t,r;return vD(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(vD(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}a();function Sr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mo(e){return!!e&&!!e[ur]}function ii(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===JK}(e)||Array.isArray(e)||!!e[ED]||!!(!((t=e.constructor)===null||t===void 0)&&t[ED])||v2(e)||y2(e))}function gu(e,t,r){r===void 0&&(r=!1),ka(e)===0?(r?Object.keys:D2)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function ka(e){var t=e[ur];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:v2(e)?2:y2(e)?3:0}function p2(e,t){return ka(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _K(e,t){return ka(e)===2?e.get(t):e[t]}function TD(e,t,r){var n=ka(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function WK(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function v2(e){return XK&&e instanceof Map}function y2(e){return YK&&e instanceof Set}function oi(e){return e.o||e.t}function b2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ZK(e);delete t[ur];for(var r=D2(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function C2(e,t){return t===void 0&&(t=!1),x2(e)||mo(e)||!ii(e)||(ka(e)>1&&(e.set=e.add=e.clear=e.delete=UK),Object.freeze(e),t&&gu(e,function(r,n){return C2(n,!0)},!0)),e}function UK(){Sr(2)}function x2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ur(e){var t=QK[e];return t||Sr(18,e),t}function yD(){return vu}function u2(e,t){t&&(Ur("Patches"),e.u=[],e.s=[],e.v=t)}function gp(e){d2(e),e.p.forEach(KK),e.p=null}function d2(e){e===vu&&(vu=e.l)}function bD(e){return vu={p:[],l:vu,h:e,m:!0,_:0}}function KK(e){var t=e[ur];t.i===0||t.i===1?t.j():t.g=!0}function l2(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ur("ES5").S(t,e,n),n?(r[ur].P&&(gp(t),Sr(4)),ii(e)&&(e=vp(t,e),t.l||yp(t,e)),t.u&&Ur("Patches").M(r[ur].t,e,t.u,t.s)):e=vp(t,r,[]),gp(t),t.u&&t.v(t.u,t.s),e!==PD?e:void 0}function vp(e,t,r){if(x2(t))return t;var n=t[ur];if(!n)return gu(t,function(u,l){return CD(e,n,t,u,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return yp(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=b2(n.k):n.o,i=o,s=!1;n.i===3&&(i=new Set(o),o.clear(),s=!0),gu(i,function(u,l){return CD(e,n,o,u,l,r,s)}),yp(e,o,!1),r&&e.u&&Ur("Patches").N(n,r,e.u,e.s)}return n.o}function CD(e,t,r,n,o,i,s){if(mo(o)){var u=vp(e,o,i&&t&&t.i!==3&&!p2(t.R,n)?i.concat(n):void 0);if(TD(r,n,u),!mo(u))return;e.m=!1}else s&&r.add(o);if(ii(o)&&!x2(o)){if(!e.h.D&&e._<1)return;vp(e,o),t&&t.A.l||yp(e,o)}}function yp(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&C2(t,r)}function c2(e,t){var r=e[ur];return(r?oi(r):e)[t]}function xD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function m2(e){e.P||(e.P=!0,e.l&&m2(e.l))}function f2(e){e.o||(e.o=b2(e.t))}function h2(e,t,r){var n=v2(t)?Ur("MapSet").F(t,r):y2(t)?Ur("MapSet").T(t,r):e.O?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:yD(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=u,c=g2;s&&(l=[u],c=hu);var p=Proxy.revocable(l,c),d=p.revoke,h=p.proxy;return u.k=h,u.j=d,h}(t,r):Ur("ES5").J(t,r);return(r?r.A:yD()).p.push(n),n}function qK(e){return mo(e)||Sr(22,e),function t(r){if(!ii(r))return r;var n,o=r[ur],i=ka(r);if(o){if(!o.P&&(o.i<4||!Ur("ES5").K(o)))return o.t;o.I=!0,n=wD(r,i),o.I=!1}else n=wD(r,i);return gu(n,function(s,u){o&&_K(o.t,s)===u||TD(n,s,t(u))}),i===3?new Set(n):n}(e)}function wD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b2(e)}var DD,vu,w2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",XK=typeof Map<"u",YK=typeof Set<"u",SD=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",PD=w2?Symbol.for("immer-nothing"):((DD={})["immer-nothing"]=!0,DD),ED=w2?Symbol.for("immer-draftable"):"__$immer_draftable",ur=w2?Symbol.for("immer-state"):"__$immer_state";var JK=""+Object.prototype.constructor,D2=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ZK=Object.getOwnPropertyDescriptors||function(e){var t={};return D2(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},QK={},g2={get:function(e,t){if(t===ur)return e;var r=oi(e);if(!p2(r,t))return function(o,i,s){var u,l=xD(i,s);return l?"value"in l?l.value:(u=l.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!ii(n)?n:n===c2(e.t,t)?(f2(e),e.o[t]=h2(e.A.h,n,e)):n},has:function(e,t){return t in oi(e)},ownKeys:function(e){return Reflect.ownKeys(oi(e))},set:function(e,t,r){var n=xD(oi(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=c2(oi(e),t),i=o?.[ur];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(WK(r,o)&&(r!==void 0||p2(e.t,t)))return!0;f2(e),m2(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return c2(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,f2(e),m2(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=oi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Sr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Sr(12)}},hu={};gu(g2,function(e,t){hu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),hu.deleteProperty=function(e,t){return hu.set.call(this,e,t,void 0)},hu.set=function(e,t,r){return g2.set.call(this,e[0],t,r,e[0])};var eq=function(){function e(r){var n=this;this.O=SD,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var l=n;return function(m){var y=this;m===void 0&&(m=u);for(var b=arguments.length,x=Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return l.produce(m,function(D){var E;return(E=i).call.apply(E,[y,D].concat(x))})}}var c;if(typeof i!="function"&&Sr(6),s!==void 0&&typeof s!="function"&&Sr(7),ii(o)){var p=bD(n),d=h2(n,o,void 0),h=!0;try{c=i(d),h=!1}finally{h?gp(p):d2(p)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return u2(p,s),l2(m,p)},function(m){throw gp(p),m}):(u2(p,s),l2(c,p))}if(!o||typeof o!="object"){if((c=i(o))===void 0&&(c=o),c===PD&&(c=void 0),n.D&&C2(c,!0),s){var g=[],v=[];Ur("Patches").M(o,c,g,v),s(g,v)}return c}Sr(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),h=1;h<p;h++)d[h-1]=arguments[h];return n.produceWithPatches(c,function(g){return o.apply(void 0,[g].concat(d))})};var s,u,l=n.produce(o,i,function(c,p){s=c,u=p});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,u]}):[l,s,u]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ii(r)||Sr(8),mo(r)&&(r=qK(r));var n=bD(this),o=h2(this,r,void 0);return o[ur].C=!0,d2(n),o},t.finishDraft=function(r,n){var o=r&&r[ur],i=o.A;return u2(i,n),l2(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!SD&&Sr(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var s=Ur("Patches").$;return mo(r)?s(r,n):this.produce(r,function(u){return s(u,n)})},e}(),lr=new eq,bp=lr.produce,RXe=lr.produceWithPatches.bind(lr),MXe=lr.setAutoFreeze.bind(lr),IXe=lr.setUseProxies.bind(lr),kXe=lr.applyPatches.bind(lr),S2=lr.createDraft.bind(lr),E2=lr.finishDraft.bind(lr);var tq={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=P.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},rq={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=ve.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},nq={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=R.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},xp=new WeakMap,wp=new WeakMap,bu=new WeakMap,iS=new WeakMap,AD=new WeakMap,OD=new WeakMap,FD=new WeakMap,P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=P.levels(e,t);return r?n=n.slice(1):n=n.slice(0,-1),n},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n],i=t[n];if(o!==i)break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],s=t[r];return P.equals(n,o)&&i>s},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return P.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],s=t[r];return P.equals(n,o)&&i<s},equals(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return P.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&P.compare(e,t)===0},isBefore(e,t){return P.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&P.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&P.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&P.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&P.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1),o=e[e.length-1],i=t[t.length-1];return o!==i&&P.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var n=[...e],{affinity:o="forward"}=r;if(e.length===0)return n;switch(t.type){case"insert_node":{var{path:i}=t;(P.equals(i,n)||P.endsBefore(i,n)||P.isAncestor(i,n))&&(n[i.length-1]+=1);break}case"remove_node":{var{path:s}=t;if(P.equals(s,n)||P.isAncestor(s,n))return null;P.endsBefore(s,n)&&(n[s.length-1]-=1);break}case"merge_node":{var{path:u,position:l}=t;P.equals(u,n)||P.endsBefore(u,n)?n[u.length-1]-=1:P.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=l);break}case"split_node":{var{path:c,position:p}=t;if(P.equals(c,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(c,n)?n[c.length-1]+=1:P.isAncestor(c,n)&&e[c.length]>=p&&(n[c.length-1]+=1,n[c.length]-=p);break}case"move_node":{var{path:d,newPath:h}=t;if(P.equals(d,h))return n;if(P.isAncestor(d,n)||P.equals(d,n)){var g=h.slice();return P.endsBefore(d,h)&&d.length<h.length&&(g[d.length-1]-=1),g.concat(n.slice(d.length))}else P.isSibling(d,h)&&(P.isAncestor(h,n)||P.equals(h,n))?P.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:P.endsBefore(h,n)||P.equals(h,n)||P.isAncestor(h,n)?(P.endsBefore(d,n)&&(n[d.length-1]-=1),n[h.length-1]+=1):P.endsBefore(d,n)&&(P.equals(h,n)&&(n[h.length-1]+=1),n[d.length-1]-=1);break}}return n}};function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var oq=(e,t,r)=>{switch(r.type){case"insert_node":{var{path:n,node:o}=r,i=W.parent(e,n),s=n[n.length-1];if(s>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(i.children.splice(s,0,o),t)for(var[u,l]of R.points(t))t[l]=ve.transform(u,r);break}case"insert_text":{var{path:c,offset:p,text:d}=r;if(d.length===0)break;var h=W.leaf(e,c),g=h.text.slice(0,p),v=h.text.slice(p);if(h.text=g+d+v,t)for(var[m,y]of R.points(t))t[y]=ve.transform(m,r);break}case"merge_node":{var{path:b}=r,x=W.get(e,b),w=P.previous(b),D=W.get(e,w),E=W.parent(e,b),S=b[b.length-1];if(Y.isText(x)&&Y.isText(D))D.text+=x.text;else if(!Y.isText(x)&&!Y.isText(D))D.children.push(...x.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b,"] to nodes of different interfaces: ").concat(ot.stringify(x)," ").concat(ot.stringify(D)));if(E.children.splice(S,1),t)for(var[T,O]of R.points(t))t[O]=ve.transform(T,r);break}case"move_node":{var{path:F,newPath:I}=r;if(P.isAncestor(F,I))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(I,"] because the destination is inside itself."));var G=W.get(e,F),k=W.parent(e,F),H=F[F.length-1];k.children.splice(H,1);var V=P.transform(F,r),M=W.get(e,P.parent(V)),Z=V[V.length-1];if(M.children.splice(Z,0,G),t)for(var[re,se]of R.points(t))t[se]=ve.transform(re,r);break}case"remove_node":{var{path:j}=r,ne=j[j.length-1],ce=W.parent(e,j);if(ce.children.splice(ne,1),t)for(var[pe,$e]of R.points(t)){var A=ve.transform(pe,r);if(t!=null&&A!=null)t[$e]=A;else{var _=void 0,z=void 0;for(var[U,ue]of W.texts(e))if(P.compare(ue,j)===-1)_=[U,ue];else{z=[U,ue];break}var Q=!1;_&&z&&(P.equals(z[1],j)?Q=!P.hasPrevious(z[1]):Q=P.common(_[1],j).length<P.common(z[1],j).length),_&&!Q?(pe.path=_[1],pe.offset=_[0].text.length):z?(pe.path=z[1],pe.offset=0):t=null}}break}case"remove_text":{var{path:he,offset:we,text:Se}=r;if(Se.length===0)break;var Ae=W.leaf(e,he),Ce=Ae.text.slice(0,we),je=Ae.text.slice(we+Se.length);if(Ae.text=Ce+je,t)for(var[Ye,ke]of R.points(t))t[ke]=ve.transform(Ye,r);break}case"set_node":{var{path:Tt,properties:Ct,newProperties:st}=r;if(Tt.length===0)throw new Error("Cannot set properties on the root node!");var ut=W.get(e,Tt);for(var B in st){if(B==="children"||B==="text")throw new Error('Cannot set the "'.concat(B,'" property of nodes!'));var X=st[B];X==null?delete ut[B]:ut[B]=X}for(var ee in Ct)st.hasOwnProperty(ee)||delete ut[ee];break}case"set_selection":{var{newProperties:q}=r;if(q==null)t=q;else{if(t==null){if(!R.isRange(q))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ot.stringify(q)," when there is no current selection."));t=yu({},q)}for(var ae in q){var De=q[ae];if(De==null){if(ae==="anchor"||ae==="focus")throw new Error('Cannot remove the "'.concat(ae,'" selection property'));delete t[ae]}else t[ae]=De}}break}case"split_node":{var{path:Te,position:ht,properties:Nn}=r;if(Te.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Te,"] because the root node cannot be split."));var Cr=W.get(e,Te),Qd=W.parent(e,Te),_g=Te[Te.length-1],Fi;if(Y.isText(Cr)){var e1=Cr.text.slice(0,ht),hF=Cr.text.slice(ht);Cr.text=e1,Fi=yu(yu({},Nn),{},{text:hF})}else{var gF=Cr.children.slice(0,ht),vF=Cr.children.slice(ht);Cr.children=gF,Fi=yu(yu({},Nn),{},{children:vF})}if(Qd.children.splice(_g+1,0,Fi),t)for(var[yF,bF]of R.points(t))t[bF]=ve.transform(yF,r);break}}return t},iq={transform(e,t){e.children=S2(e.children);var r=e.selection&&S2(e.selection);try{r=oq(e,r,t)}finally{e.children=E2(e.children),r?e.selection=mo(r)?E2(r):r:e.selection=null}}},aq={insertNodes(e,t,r){e.insertNodes(t,r)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,r){e.setNodes(t,r)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,r){e.unsetNodes(t,r)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,r){e.wrapNodes(t,r)}},sq={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,r){e.setPoint(t,r)},setSelection(e,t){e.setSelection(t)}},aS=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(Xe(n)&&Xe(o)){if(!aS(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var s in t)if(e[s]===void 0&&t[s]!==void 0)return!1;return!0};function uq(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function On(e,t){if(e==null)return{};var r=uq(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var lq=["anchor","focus"];function $D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$D(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return R.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=R.edges(e);return t},equals(e,t){return ve.equals(e.anchor,t.anchor)&&ve.equals(e.focus,t.focus)},includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[r,n]=R.edges(e),[o,i]=R.edges(t);return ve.isBefore(r,o)&&ve.isAfter(n,i)}var[s,u]=R.edges(e),l=!1,c=!1;return ve.isPoint(t)?(l=ve.compare(t,s)>=0,c=ve.compare(t,u)<=0):(l=P.compare(t,s.path)>=0,c=P.compare(t,u.path)<=0),l&&c},intersection(e,t){var r=On(e,lq),[n,o]=R.edges(e),[i,s]=R.edges(t),u=ve.isBefore(n,i)?i:n,l=ve.isBefore(o,s)?o:s;return ve.isBefore(l,u)?null:cq({anchor:u,focus:l},r)},isBackward(e){var{anchor:t,focus:r}=e;return ve.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return ve.equals(t,r)},isExpanded(e){return!R.isCollapsed(e)},isForward(e){return!R.isBackward(e)},isRange(e){return Xe(e)&&ve.isPoint(e.anchor)&&ve.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=R.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bp(e,n=>{if(n===null)return null;var{affinity:o="inward"}=r,i,s;if(o==="inward"){var u=R.isCollapsed(n);R.isForward(n)?(i="forward",s=u?i:"backward"):(i="backward",s=u?i:"forward")}else o==="outward"?R.isForward(n)?(i="backward",s="forward"):(i="forward",s="backward"):(i=o,s=o);var l=ve.transform(n.anchor,t,{affinity:i}),c=ve.transform(n.focus,t,{affinity:s});if(!l||!c)return null;n.anchor=l,n.focus=c})}},RD=e=>Xe(e)&&W.isNodeList(e.children)&&!C.isEditor(e),K={isAncestor(e){return Xe(e)&&W.isNodeList(e.children)},isElement:RD,isElementList(e){return Array.isArray(e)&&e.every(t=>K.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return RD(t)&&t[n]===r},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},fq=["children"],pq=["text"],MD=new WeakMap,W={ancestor(e,t){var r=W.get(e,t);if(Y.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ot.stringify(r)));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of P.ancestors(t,r)){var o=W.ancestor(e,n),i=[o,n];yield i}},child(e,t){if(Y.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ot.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ot.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=W.ancestor(e,t),{children:i}=o,s=n?i.length-1:0;n?s>=0:s<i.length;){var u=W.child(o,s),l=t.concat(s);yield[u,l],s=n?s-1:s+1}},common(e,t,r){var n=P.common(t,r),o=W.get(e,n);return[o,n]},descendant(e,t){var r=W.get(e,t);if(C.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(ot.stringify(r)));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of W.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of W.nodes(e,t))K.isElement(r)&&(yield[r,n])},extractProps(e){if(K.isAncestor(e)){var t=On(e,fq);return t}else{var t=On(e,pq);return t}},first(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Y.isText(n)||n.children.length===0);)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Y.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ot.stringify(e)));var r=bp({children:e.children},n=>{var[o,i]=R.edges(t),s=W.nodes(n,{reverse:!0,pass:h=>{var[,g]=h;return!R.includes(t,g)}});for(var[,u]of s){if(!R.includes(t,u)){var l=W.parent(n,u),c=u[u.length-1];l.children.splice(c,1)}if(P.equals(u,i.path)){var p=W.leaf(n,u);p.text=p.text.slice(0,i.offset)}if(P.equals(u,o.path)){var d=W.leaf(n,u);d.text=d.text.slice(o.offset)}}C.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(Y.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ot.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(Y.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode(e){return Y.isText(e)||K.isElement(e)||C.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=MD.get(e);if(t!==void 0)return t;var r=e.every(n=>W.isNode(n));return MD.set(e,r),r},last(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Y.isText(n)||n.children.length===0);){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=W.get(e,t);if(!Y.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ot.stringify(r)));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of P.levels(t,r)){var o=W.get(e,n);yield[o,n]}},matches(e,t){return K.isElement(e)&&K.isElementProps(t)&&K.matches(e,t)||Y.isText(e)&&Y.isTextProps(t)&&Y.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,s=new Set,u=[],l=e;!(i&&(n?P.isBefore(u,i):P.isAfter(u,i)));){if(s.has(l)||(yield[l,u]),!s.has(l)&&!Y.isText(l)&&l.children.length!==0&&(r==null||r([l,u])===!1)){s.add(l);var c=n?l.children.length-1:0;P.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),l=W.get(e,u);continue}if(u.length===0)break;if(!n){var p=P.next(u);if(W.has(e,p)){u=p,l=W.get(e,u);continue}}if(n&&u[u.length-1]!==0){var d=P.previous(u);u=d,l=W.get(e,u);continue}u=P.parent(u),l=W.get(e,u),s.add(l)}},parent(e,t){var r=P.parent(t),n=W.get(e,r);if(Y.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string(e){return Y.isText(e)?e.text:e.children.map(W.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of W.nodes(e,t))Y.isText(r)&&(yield[r,n])}};function ID(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ID(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var An={isNodeOperation(e){return An.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Xe(e))return!1;switch(e.type){case"insert_node":return P.isPath(e.path)&&W.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&Xe(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"remove_node":return P.isPath(e.path)&&W.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"set_node":return P.isPath(e.path)&&Xe(e.properties)&&Xe(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||Xe(e.properties)&&Xe(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&Xe(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>An.isOperation(t))},isSelectionOperation(e){return An.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return An.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return He(He({},e),{},{type:"remove_node"});case"insert_text":return He(He({},e),{},{type:"remove_text"});case"merge_node":return He(He({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":{var{newPath:t,path:r}=e;if(P.equals(t,r))return e;if(P.isSibling(r,t))return He(He({},e),{},{path:t,newPath:r});var n=P.transform(r,e),o=P.transform(P.next(r),e);return He(He({},e),{},{path:n,newPath:o})}case"remove_node":return He(He({},e),{},{type:"insert_node"});case"remove_text":return He(He({},e),{},{type:"insert_text"});case"set_node":{var{properties:i,newProperties:s}=e;return He(He({},e),{},{properties:s,newProperties:i})}case"set_selection":{var{properties:u,newProperties:l}=e;return u==null?He(He({},e),{},{properties:l,newProperties:null}):l==null?He(He({},e),{},{properties:null,newProperties:u}):He(He({},e),{},{properties:l,newProperties:u})}case"split_node":return He(He({},e),{},{type:"merge_node",path:P.next(e.path)})}}},kD=new WeakMap,dq=e=>{var t=kD.get(e);if(t!==void 0)return t;if(!Xe(e))return!1;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Xe(e.marks))&&(e.selection===null||R.isRange(e.selection))&&W.isNodeList(e.children)&&An.isOperationList(e.operations);return kD.set(e,r),r},C={above(e,t){return e.above(t)},addMark(e,t,r){e.addMark(t,r)},after(e,t,r){return e.after(t,r)},before(e,t,r){return e.before(t,r)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,r){e.insertFragment(t,r)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,r){return e.isEdge(t,r)},isEditor(e){return dq(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,r){return e.isEnd(t,r)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,r){return e.isStart(t,r)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,r){return e.leaf(t,r)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,r){return e.node(t,r)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,r){return e.parent(t,r)},path(e,t,r){return e.path(t,r)},pathRef(e,t,r){return e.pathRef(t,r)},pathRefs(e){return e.pathRefs()},point(e,t,r){return e.point(t,r)},pointRef(e,t,r){return e.pointRef(t,r)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,r){return e.range(t,r)},rangeRef(e,t,r){return e.rangeRef(t,r)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,r){return e.string(t,r)},unhangRange(e,t,r){return e.unhangRange(t,r)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}};var mq={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(P.isPath)}};function VD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ND(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ve={compare(e,t){var r=P.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter(e,t){return ve.compare(e,t)===1},isBefore(e,t){return ve.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&P.equals(e.path,t.path)},isPoint(e){return Xe(e)&&typeof e.offset=="number"&&P.isPath(e.path)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bp(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:s}=n;switch(t.type){case"insert_node":case"move_node":{n.path=P.transform(i,t,r);break}case"insert_text":{P.equals(t.path,i)&&(t.offset<s||t.offset===s&&o==="forward")&&(n.offset+=t.text.length);break}case"merge_node":{P.equals(t.path,i)&&(n.offset+=t.position),n.path=P.transform(i,t,r);break}case"remove_text":{P.equals(t.path,i)&&t.offset<=s&&(n.offset-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;n.path=P.transform(i,t,r);break}case"split_node":{if(P.equals(t.path,i)){if(t.position===s&&o==null)return null;(t.position<s||t.position===s&&o==="forward")&&(n.offset-=t.position,n.path=P.transform(i,t,ND(ND({},r),{},{affinity:"forward"})))}else n.path=P.transform(i,t,r);break}}})}},LD=void 0,ot={setScrubber(e){LD=e},stringify(e){return JSON.stringify(e,LD)}},hq=["text"],gq=["anchor","focus"];function zD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Y={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){var s=On(i,hq);return s}return aS(n?o(e):e,n?o(t):t)},isText(e){return Xe(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Y.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Pn({},e)];for(var n of t){var o=On(n,gq),[i,s]=R.edges(n),u=[],l=0,c=i.offset,p=s.offset;for(var d of r){var{length:h}=d.text,g=l;if(l+=h,c<=g&&l<=p){Object.assign(d,o),u.push(d);continue}if(c!==p&&(c===l||p===g)||c>l||p<g||p===g&&g!==0){u.push(d);continue}var v=d,m=void 0,y=void 0;if(p<l){var b=p-g;y=Pn(Pn({},v),{},{text:v.text.slice(b)}),v=Pn(Pn({},v),{},{text:v.text.slice(0,b)})}if(c>g){var x=c-g;m=Pn(Pn({},v),{},{text:v.text.slice(0,x)}),v=Pn(Pn({},v),{},{text:v.text.slice(x)})}Object.assign(v,o),m&&u.push(m),u.push(v),y&&u.push(y)}r=u}return r}},T2=e=>e.selection?e.selection:e.children.length>0?C.end(e,[]):[0],Na=(e,t)=>{var[r]=C.node(e,t);return n=>n===r},P2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!r,o=r?wq(t):t,i=fe.None,s=fe.None,u=0,l=null,c=null;for(var p of o){var d=p.codePointAt(0);if(!d)break;var h=Mq(p,d);if([i,s]=n?[s,h]:[h,i],Va(i,fe.ZWJ)&&Va(s,fe.ExtPict)&&(n?l=HD(t.substring(0,u)):l=HD(t.substring(0,t.length-u)),!l)||Va(i,fe.RI)&&Va(s,fe.RI)&&(c!==null?c=!c:n?c=!0:c=Lq(t.substring(0,t.length-u)),!c)||i!==fe.None&&s!==fe.None&&kq(i,s))break;u+=p.length}return u||1},vq=/\s/,yq=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,bq=/['\u2018\u2019]/,Cq=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,o=!1;t.length>0;){var i=P2(t,r),[s,u]=A2(t,i,r);if(xq(s,u,r))o=!0,n+=i;else if(!o)n+=i;else break;t=u}return n},A2=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},xq=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(vq.test(t))return!1;if(bq.test(t)){var o=P2(r,n),[i,s]=A2(r,o,n);if(e(i,s,n))return!0}return!yq.test(t)},wq=function*(t){for(var r=t.length-1,n=0;n<t.length;n++){var o=t.charAt(r-n);if(Sq(o.charCodeAt(0))){var i=t.charAt(r-n-1);if(Dq(i.charCodeAt(0))){yield i+o,n++;continue}}yield o}},Dq=e=>e>=55296&&e<=56319,Sq=e=>e>=56320&&e<=57343,fe;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(fe||(fe={}));var Eq=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Tq=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Pq=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Aq=/^[\u1100-\u115F\uA960-\uA97C]$/,Oq=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Fq=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Bq=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,$q=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Rq=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Mq=(e,t)=>{var r=fe.Any;return e.search(Eq)!==-1&&(r|=fe.Extend),t===8205&&(r|=fe.ZWJ),t>=127462&&t<=127487&&(r|=fe.RI),e.search(Tq)!==-1&&(r|=fe.Prepend),e.search(Pq)!==-1&&(r|=fe.SpacingMark),e.search(Aq)!==-1&&(r|=fe.L),e.search(Oq)!==-1&&(r|=fe.V),e.search(Fq)!==-1&&(r|=fe.T),e.search(Bq)!==-1&&(r|=fe.LV),e.search($q)!==-1&&(r|=fe.LVT),e.search(Rq)!==-1&&(r|=fe.ExtPict),r};function Va(e,t){return(e&t)!==0}var Iq=[[fe.L,fe.L|fe.V|fe.LV|fe.LVT],[fe.LV|fe.V,fe.V|fe.T],[fe.LVT|fe.T,fe.T],[fe.Any,fe.Extend|fe.ZWJ],[fe.Any,fe.SpacingMark],[fe.Prepend,fe.Any],[fe.ZWJ,fe.ExtPict],[fe.RI,fe.RI]];function kq(e,t){return Iq.findIndex(r=>Va(e,r[0])&&Va(t,r[1]))===-1}var Vq=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,HD=e=>e.search(Vq)!==-1,Nq=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Lq=e=>{var t=e.match(Nq);if(t===null)return!1;var r=t[0].length/2;return r%2===1},zq={delete(e,t){e.delete(t)},insertFragment(e,t,r){e.insertFragment(t,r)},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:o=T2(e)}=r;if(P.isPath(o)&&(o=C.range(e,o)),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var i=R.end(o);if(!n&&C.void(e,{at:i}))return;var s=R.start(o),u=C.pointRef(e,s),l=C.pointRef(e,i);N.delete(e,{at:o,voids:n});var c=u.unref(),p=l.unref();o=c||p,N.setSelection(e,{anchor:o,focus:o})}if(!(!n&&C.void(e,{at:o})||C.elementReadOnly(e,{at:o}))){var{path:d,offset:h}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:h,text:t})}})}};function GD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var N=Cp(Cp(Cp(Cp({},iq),aq),sq),zq),Hq=(e,t)=>{for(var r of C.pathRefs(e))tq.transform(r,t);for(var n of C.pointRefs(e))rq.transform(n,t);for(var o of C.rangeRefs(e))nq.transform(o,t);var i=xp.get(e)||[],s=wp.get(e)||new Set,u,l,c=v=>{if(v){var m=v.join(",");l.has(m)||(l.add(m),u.push(v))}};if(P.operationCanTransformPath(t)){u=[],l=new Set;for(var p of i){var d=P.transform(p,t);c(d)}}else u=i,l=s;var h=e.getDirtyPaths(t);for(var g of h)c(g);xp.set(e,u),wp.set(e,l),N.transform(e,t),e.operations.push(t),C.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),bu.get(e)||(bu.set(e,!0),Promise.resolve().then(()=>{bu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},Gq=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=t;return P.levels(r)}case"insert_node":{var{node:n,path:o}=t,i=P.levels(o),s=Y.isText(n)?[]:Array.from(W.nodes(n),I=>{var[,G]=I;return o.concat(G)});return[...i,...s]}case"merge_node":{var{path:u}=t,l=P.ancestors(u),c=P.previous(u);return[...l,c]}case"move_node":{var{path:p,newPath:d}=t;if(P.equals(p,d))return[];var h=[],g=[];for(var v of P.ancestors(p)){var m=P.transform(v,t);h.push(m)}for(var y of P.ancestors(d)){var b=P.transform(y,t);g.push(b)}var x=g[g.length-1],w=d[d.length-1],D=x.concat(w);return[...h,...g,D]}case"remove_node":{var{path:E}=t,S=P.ancestors(E);return[...S]}case"split_node":{var{path:T}=t,O=P.levels(T),F=P.next(T);return[...O,F]}default:return[]}},jq=e=>{var{selection:t}=e;return t?W.fragment(e,t):[]},_q=(e,t)=>{var[r,n]=t;if(!Y.isText(r)){if(K.isElement(r)&&r.children.length===0){var o={text:""};N.insertNodes(e,o,{at:n.concat(0),voids:!0});return}for(var i=C.isEditor(r)?!1:K.isElement(r)&&(e.isInline(r)||r.children.length===0||Y.isText(r.children[0])||e.isInline(r.children[0])),s=0,u=0;u<r.children.length;u++,s++){var l=W.get(e,n);if(!Y.isText(l)){var c=l.children[s],p=l.children[s-1],d=u===r.children.length-1,h=Y.isText(c)||K.isElement(c)&&e.isInline(c);if(h!==i)N.removeNodes(e,{at:n.concat(s),voids:!0}),s--;else if(K.isElement(c)){if(e.isInline(c)){if(p==null||!Y.isText(p)){var g={text:""};N.insertNodes(e,g,{at:n.concat(s),voids:!0}),s++}else if(d){var v={text:""};N.insertNodes(e,v,{at:n.concat(s+1),voids:!0}),s++}}}else p!=null&&Y.isText(p)&&(Y.equals(c,p,{loose:!0})?(N.mergeNodes(e,{at:n.concat(s),voids:!0}),s--):p.text===""?(N.removeNodes(e,{at:n.concat(s-1),voids:!0}),s--):c.text===""&&(N.removeNodes(e,{at:n.concat(s),voids:!0}),s--))}}}},Wq=(e,t)=>{var{iteration:r,initialDirtyPathsLength:n}=t,o=n*42;if(r>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Uq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:i=t.selection,match:s}=r;if(i){var u=C.path(t,i),l=o==="lowest";for(var[c,p]of C.levels(t,{at:u,voids:n,match:s,reverse:l}))if(!Y.isText(c)){if(R.isRange(i)){if(P.isAncestor(p,i.anchor.path)&&P.isAncestor(p,i.focus.path))return[c,p]}else if(!P.equals(u,p))return[c,p]}}};function jD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Kq=(e,t,r)=>{var{selection:n}=e;if(n){var o=(d,h)=>{if(!Y.isText(d))return!1;var[g,v]=C.parent(e,h);return!e.isVoid(g)||e.markableVoid(g)},i=R.isExpanded(n),s=!1;if(!i){var[u,l]=C.node(e,n);if(u&&o(u,l)){var[c]=C.parent(e,l);s=c&&e.markableVoid(c)}}if(i||s)N.setNodes(e,{[t]:r},{match:o,split:!0,voids:!0});else{var p=_D(_D({},C.marks(e)||{}),{},{[t]:r});e.marks=p,bu.get(e)||e.onChange()}}};function WD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function UD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var qq=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.point(t,r,{edge:"end"}),i=C.end(t,[]),s={anchor:o,focus:i},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,UD(UD({},n),{},{at:s}))){if(l>u)break;l!==0&&(c=p),l++}return c};function KD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Xq=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.start(t,[]),i=C.point(t,r,{edge:"start"}),s={anchor:o,focus:i},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,qD(qD({},n),{},{at:s,reverse:!0}))){if(l>u)break;l!==0&&(c=p),l++}return c},Yq=(e,t)=>{var{selection:r}=e;r&&R.isCollapsed(r)&&N.delete(e,{unit:t,reverse:!0})},Jq=(e,t)=>{var{selection:r}=e;r&&R.isCollapsed(r)&&N.delete(e,{unit:t})},Zq=function(t){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t;n&&R.isExpanded(n)&&N.delete(t,{reverse:r==="backward"})},Qq=(e,t)=>[C.start(e,t),C.end(e,t)];function XD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function YD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,YD(YD({},r),{},{match:n=>K.isElement(n)&&C.isElementReadOnly(t,n)}))},tX=(e,t)=>C.point(e,t,{edge:"end"}),rX=(e,t)=>{var r=C.path(e,t,{edge:"start"});return C.node(e,r)},nX=(e,t)=>{var r=C.range(e,t);return W.fragment(e,r)};function JD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ZD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var oX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,ZD(ZD({},r),{},{match:n=>K.isElement(n)&&C.isVoid(t,n)}))},iX=(e,t)=>t.children.some(r=>K.isElement(r)&&C.isBlock(e,r)),aX=(e,t)=>t.children.some(r=>Y.isText(r)||C.isInline(e,r)),sX=(e,t)=>W.has(e,t),uX=(e,t)=>t.children.every(r=>Y.isText(r)),lX=e=>{N.splitNodes(e,{always:!0})},cX=(e,t,r)=>{N.insertNodes(e,t,r)},fX=e=>{N.splitNodes(e,{always:!0})};function QD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var dX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:i}=t;if(o){if(i){var s=pX({text:r},i);N.insertNodes(t,s,{at:n.at,voids:n.voids})}else N.insertText(t,r,n);t.marks=null}},mX=(e,t)=>!e.isInline(t),hX=(e,t,r)=>C.isStart(e,t,r)||C.isEnd(e,t,r),gX=(e,t)=>{var{children:r}=t,[n]=r;return r.length===0||r.length===1&&Y.isText(n)&&n.text===""&&!e.isVoid(t)},vX=(e,t,r)=>{var n=C.end(e,r);return ve.equals(t,n)},yX=e=>{var t=iS.get(e);return t===void 0?!0:t},bX=(e,t,r)=>{if(t.offset!==0)return!1;var n=C.start(e,r);return ve.equals(t,n)},CX=(e,t)=>{var r=C.path(e,t,{edge:"end"});return C.node(e,r)},xX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),i=W.leaf(t,o);return[i,o]};function*wX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),!!r){var s=[],u=C.path(e,r);for(var[l,c]of W.levels(e,u))if(i(l,c)&&(s.push([l,c]),!o&&K.isElement(l)&&C.isVoid(e,l)))break;n&&s.reverse(),yield*s}}var DX=["text"],SX=["text"],EX=function(t){var{marks:r,selection:n}=t;if(!n)return null;if(r)return r;if(R.isExpanded(n)){var[o]=C.nodes(t,{match:Y.isText});if(o){var[i]=o,s=On(i,DX);return s}else return{}}var{anchor:u}=n,{path:l}=u,[c]=C.leaf(t,l);if(u.offset===0){var p=C.previous(t,{at:l,match:Y.isText}),d=C.above(t,{match:b=>K.isElement(b)&&C.isVoid(t,b)&&t.markableVoid(b)});if(!d){var h=C.above(t,{match:b=>K.isElement(b)&&C.isBlock(t,b)});if(p&&h){var[g,v]=p,[,m]=h;P.isAncestor(m,v)&&(c=g)}}}var y=On(c,SX);return y},TX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:i,at:s=t.selection}=r;if(s){var u=C.after(t,s,{voids:o});if(u){var[,l]=C.last(t,[]),c=[u.path,l];if(P.isPath(s)&&s.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(P.isPath(s)){var[p]=C.parent(t,s);i=h=>p.children.includes(h)}else i=()=>!0;var[d]=C.nodes(t,{at:c,match:i,mode:n,voids:o});return d}}},PX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),i=W.get(t,o);return[i,o]};function*AX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:s=!1,ignoreNonSelectable:u=!1}=t,{match:l}=t;if(l||(l=()=>!0),!!r){var c,p;if(mq.isSpan(r))c=r[0],p=r[1];else{var d=C.path(e,r,{edge:"start"}),h=C.path(e,r,{edge:"end"});c=i?h:d,p=i?d:h}var g=W.nodes(e,{reverse:i,from:c,to:p,pass:D=>{var[E]=D;return K.isElement(E)?!!(!s&&(C.isVoid(e,E)||C.isElementReadOnly(e,E))||u&&!C.isSelectable(e,E)):!1}}),v=[],m;for(var[y,b]of g)if(!(u&&K.isElement(y)&&!C.isSelectable(e,y))){var x=m&&P.compare(b,m[1])===0;if(!(n==="highest"&&x)){if(!l(y,b)){if(o&&!x&&Y.isText(y))return;continue}if(n==="lowest"&&x){m=[y,b];continue}var w=n==="lowest"?m:[y,b];w&&(o?v.push(w):yield w),m=[y,b]}}n==="lowest"&&m&&(o?v.push(m):yield m),o&&(yield*v)}}var OX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:o}=r,i=p=>xp.get(p)||[],s=p=>wp.get(p)||new Set,u=p=>{var d=i(p).pop(),h=d.join(",");return s(p).delete(h),d};if(C.isNormalizing(t)){if(n){var l=Array.from(W.nodes(t),p=>{var[,d]=p;return d}),c=new Set(l.map(p=>p.join(",")));xp.set(t,l),wp.set(t,c)}i(t).length!==0&&C.withoutNormalizing(t,()=>{for(var p of i(t))if(W.has(t,p)){var d=C.node(t,p),[h,g]=d;K.isElement(h)&&h.children.length===0&&t.normalizeNode(d,{operation:o})}for(var v=i(t),m=v.length,y=0;v.length!==0;){if(!t.shouldNormalize({dirtyPaths:v,iteration:y,initialDirtyPathsLength:m,operation:o}))return;var b=u(t);if(W.has(t,b)){var x=C.node(t,b);t.normalizeNode(x,{operation:o})}y++,v=i(t)}})}},FX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),i=P.parent(o),s=C.node(t,i);return s},BX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,i={current:r,affinity:o,unref(){var{current:u}=i,l=C.pathRefs(t);return l.delete(i),i.current=null,u}},s=C.pathRefs(t);return s.add(i),i},$X=e=>{var t=AD.get(e);return t||(t=new Set,AD.set(e,t)),t},RX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:i}=n;if(P.isPath(r)){if(i==="start"){var[,s]=W.first(t,r);r=s}else if(i==="end"){var[,u]=W.last(t,r);r=u}}return R.isRange(r)&&(i==="start"?r=R.start(r):i==="end"?r=R.end(r):r=P.common(r.anchor.path,r.focus.path)),ve.isPoint(r)&&(r=r.path),o!=null&&(r=r.slice(0,o)),r},MX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,i={current:r,affinity:o,unref(){var{current:u}=i,l=C.pointRefs(t);return l.delete(i),i.current=null,u}},s=C.pointRefs(t);return s.add(i),i},IX=e=>{var t=OD.get(e);return t||(t=new Set,OD.set(e,t)),t},kX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=n;if(P.isPath(r)){var i;if(o==="end"){var[,s]=W.last(t,r);i=s}else{var[,u]=W.first(t,r);i=u}var l=W.get(t,i);if(!Y.isText(l))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(r,"] because it has no ").concat(o," text node."));return{path:i,offset:o==="end"?l.text.length:0}}if(R.isRange(r)){var[c,p]=R.edges(r);return o==="start"?c:p}return r};function*VX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1,ignoreNonSelectable:s=!1}=t;if(!r)return;var u=C.range(e,r),[l,c]=R.edges(u),p=o?c:l,d=!1,h="",g=0,v=0,m=0;for(var[y,b]of C.nodes(e,{at:r,reverse:o,voids:i,ignoreNonSelectable:s})){if(K.isElement(y)){if(!i&&(e.isVoid(y)||e.isElementReadOnly(y))){yield C.start(e,b);continue}if(e.isInline(y))continue;if(C.hasInlines(e,y)){var x=P.isAncestor(b,c.path)?c:C.end(e,b),w=P.isAncestor(b,l.path)?l:C.start(e,b);h=C.string(e,{anchor:w,focus:x},{voids:i}),d=!0}}if(Y.isText(y)){var D=P.equals(b,p.path);for(D?(v=o?p.offset:y.text.length-p.offset,m=p.offset):(v=y.text.length,m=o?v:0),(D||d||n==="offset")&&(yield{path:b,offset:m},d=!1);;){if(g===0){if(h==="")break;g=E(h,n,o),h=A2(h,g,o)[1]}if(m=o?m-g:m+g,v=v-g,v<0){g=-v;break}g=0,yield{path:b,offset:m}}}}function E(S,T,O){return T==="character"?P2(S,O):T==="word"?Cq(S,O):T==="line"||T==="block"?S.length:1}}var NX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:i,at:s=t.selection}=r;if(s){var u=C.before(t,s,{voids:o});if(u){var[,l]=C.first(t,[]),c=[u.path,l];if(P.isPath(s)&&s.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(P.isPath(s)){var[p]=C.parent(t,s);i=h=>p.children.includes(h)}else i=()=>!0;var[d]=C.nodes(t,{reverse:!0,at:c,match:i,mode:n,voids:o});return d}}},LX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,i={current:r,affinity:o,unref(){var{current:u}=i,l=C.rangeRefs(t);return l.delete(i),i.current=null,u}},s=C.rangeRefs(t);return s.add(i),i},zX=e=>{var t=FD.get(e);return t||(t=new Set,FD.set(e,t)),t},HX=(e,t,r)=>{if(R.isRange(t)&&!r)return t;var n=C.start(e,t),o=C.end(e,r||t);return{anchor:n,focus:o}};function eS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function GX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jX=(e,t)=>{var{selection:r}=e;if(r){var n=(p,d)=>{if(!Y.isText(p))return!1;var[h,g]=C.parent(e,d);return!e.isVoid(h)||e.markableVoid(h)},o=R.isExpanded(r),i=!1;if(!o){var[s,u]=C.node(e,r);if(s&&n(s,u)){var[l]=C.parent(e,u);i=l&&e.markableVoid(l)}}if(o||i)N.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var c=GX({},C.marks(e)||{});delete c[t],e.marks=c,bu.get(e)||e.onChange()}}},_X=(e,t)=>{iS.set(e,t)},WX=(e,t)=>C.point(e,t,{edge:"start"}),UX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,i=C.range(t,r),[s,u]=R.edges(i),l="";for(var[c,p]of C.nodes(t,{at:i,match:Y.isText,voids:o})){var d=c.text;P.equals(p,u.path)&&(d=d.slice(0,u.offset)),P.equals(p,s.path)&&(d=d.slice(s.offset)),l+=d}return l},KX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,[i,s]=R.edges(r);if(i.offset!==0||s.offset!==0||R.isCollapsed(r)||P.hasPrevious(s.path))return r;var u=C.above(t,{at:s,match:v=>K.isElement(v)&&C.isBlock(t,v),voids:o}),l=u?u[1]:[],c=C.start(t,i),p={anchor:c,focus:s},d=!0;for(var[h,g]of C.nodes(t,{at:p,match:Y.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(h.text!==""||P.isBefore(g,l)){s={path:g,offset:h.text.length};break}}return{anchor:i,focus:s}},qX=(e,t)=>{var r=C.isNormalizing(e);C.setNormalizing(e,!1);try{t()}finally{C.setNormalizing(e,r)}C.normalize(e)},XX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var n,o,{reverse:i=!1,unit:s="character",distance:u=1,voids:l=!1}=r,{at:c=t.selection,hanging:p=!1}=r;if(c){var d=!1;if(R.isRange(c)&&R.isCollapsed(c)&&(d=!0,c=c.anchor),ve.isPoint(c)){var h=C.void(t,{at:c,mode:"highest"});if(!l&&h){var[,g]=h;c=g}else{var v={unit:s,distance:u},m=i?C.before(t,c,v)||C.start(t,[]):C.after(t,c,v)||C.end(t,[]);c={anchor:c,focus:m},p=!0}}if(P.isPath(c)){N.removeNodes(t,{at:c,voids:l});return}if(!R.isCollapsed(c)){if(!p){var[,y]=R.edges(c),b=C.end(t,[]);ve.equals(y,b)||(c=C.unhangRange(t,c,{voids:l}))}var[x,w]=R.edges(c),D=C.above(t,{match:Ce=>K.isElement(Ce)&&C.isBlock(t,Ce),at:x,voids:l}),E=C.above(t,{match:Ce=>K.isElement(Ce)&&C.isBlock(t,Ce),at:w,voids:l}),S=D&&E&&!P.equals(D[1],E[1]),T=P.equals(x.path,w.path),O=l?null:(n=C.void(t,{at:x,mode:"highest"}))!==null&&n!==void 0?n:C.elementReadOnly(t,{at:x,mode:"highest"}),F=l?null:(o=C.void(t,{at:w,mode:"highest"}))!==null&&o!==void 0?o:C.elementReadOnly(t,{at:w,mode:"highest"});if(O){var I=C.before(t,x);I&&D&&P.isAncestor(D[1],I.path)&&(x=I)}if(F){var G=C.after(t,w);G&&E&&P.isAncestor(E[1],G.path)&&(w=G)}var k=[],H;for(var V of C.nodes(t,{at:c,voids:l})){var[M,Z]=V;H&&P.compare(Z,H)===0||(!l&&K.isElement(M)&&(C.isVoid(t,M)||C.isElementReadOnly(t,M))||!P.isCommon(Z,x.path)&&!P.isCommon(Z,w.path))&&(k.push(V),H=Z)}var re=Array.from(k,Ce=>{var[,je]=Ce;return C.pathRef(t,je)}),se=C.pointRef(t,x),j=C.pointRef(t,w),ne="";if(!T&&!O){var ce=se.current,[pe]=C.leaf(t,ce),{path:$e}=ce,{offset:A}=x,_=pe.text.slice(A);_.length>0&&(t.apply({type:"remove_text",path:$e,offset:A,text:_}),ne=_)}if(re.reverse().map(Ce=>Ce.unref()).filter(Ce=>Ce!==null).forEach(Ce=>N.removeNodes(t,{at:Ce,voids:l})),!F){var z=j.current,[U]=C.leaf(t,z),{path:ue}=z,Q=T?x.offset:0,he=U.text.slice(Q,w.offset);he.length>0&&(t.apply({type:"remove_text",path:ue,offset:Q,text:he}),ne=he)}!T&&S&&j.current&&se.current&&N.mergeNodes(t,{at:j.current,hanging:!0,voids:l}),d&&i&&s==="character"&&ne.length>1&&ne.match(/[\u0E00-\u0E7F]+/)&&N.insertText(t,ne.slice(0,ne.length-u));var we=se.unref(),Se=j.unref(),Ae=i?we||Se:Se||we;r.at==null&&Ae&&N.select(t,Ae)}}})},YX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:i=!1}=n,{at:s=T2(t)}=n;if(r.length){if(R.isRange(s))if(o||(s=C.unhangRange(t,s,{voids:i})),R.isCollapsed(s))s=s.anchor;else{var[,u]=R.edges(s);if(!i&&C.void(t,{at:u}))return;var l=C.pointRef(t,u);N.delete(t,{at:s}),s=l.unref()}else P.isPath(s)&&(s=C.start(t,s));if(!(!i&&C.void(t,{at:s}))){var c=C.above(t,{at:s,match:A=>K.isElement(A)&&C.isInline(t,A),mode:"highest",voids:i});if(c){var[,p]=c;if(C.isEnd(t,s,p)){var d=C.after(t,p);s=d}else if(C.isStart(t,s,p)){var h=C.before(t,p);s=h}}var g=C.above(t,{match:A=>K.isElement(A)&&C.isBlock(t,A),at:s,voids:i}),[,v]=g,m=C.isStart(t,s,v),y=C.isEnd(t,s,v),b=m&&y,x=!m||m&&y,w=!y,[,D]=W.first({children:r},[]),[,E]=W.last({children:r},[]),S=[],T=A=>{var[_,z]=A,U=z.length===0;return U?!1:b?!0:!(x&&P.isAncestor(z,D)&&K.isElement(_)&&!t.isVoid(_)&&!t.isInline(_)||w&&P.isAncestor(z,E)&&K.isElement(_)&&!t.isVoid(_)&&!t.isInline(_))};for(var O of W.nodes({children:r},{pass:T}))T(O)&&S.push(O);var F=[],I=[],G=[],k=!0,H=!1;for(var[V]of S)K.isElement(V)&&!t.isInline(V)?(k=!1,H=!0,I.push(V)):k?F.push(V):G.push(V);var[M]=C.nodes(t,{at:s,match:A=>Y.isText(A)||C.isInline(t,A),mode:"highest",voids:i}),[,Z]=M,re=C.isStart(t,s,Z),se=C.isEnd(t,s,Z),j=C.pathRef(t,y&&!G.length?P.next(v):v),ne=C.pathRef(t,se?P.next(Z):Z);N.splitNodes(t,{at:s,match:A=>H?K.isElement(A)&&C.isBlock(t,A):Y.isText(A)||C.isInline(t,A),mode:H?"lowest":"highest",always:H&&(!m||F.length>0)&&(!y||G.length>0),voids:i});var ce=C.pathRef(t,!re||re&&se?P.next(Z):Z);if(N.insertNodes(t,F,{at:ce.current,match:A=>Y.isText(A)||C.isInline(t,A),mode:"highest",voids:i}),b&&!F.length&&I.length&&!G.length&&N.delete(t,{at:v,voids:i}),N.insertNodes(t,I,{at:j.current,match:A=>K.isElement(A)&&C.isBlock(t,A),mode:"lowest",voids:i}),N.insertNodes(t,G,{at:ne.current,match:A=>Y.isText(A)||C.isInline(t,A),mode:"highest",voids:i}),!n.at){var pe;if(G.length>0&&ne.current?pe=P.previous(ne.current):I.length>0&&j.current?pe=P.previous(j.current):ce.current&&(pe=P.previous(ce.current)),pe){var $e=C.end(t,pe);N.select(t,$e)}}ce.unref(),j.unref(),ne.unref()}}})},JX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=r,{selection:o}=t;if(o){if(n==="anchor")N.select(t,o.anchor);else if(n==="focus")N.select(t,o.focus);else if(n==="start"){var[i]=R.edges(o);N.select(t,i)}else if(n==="end"){var[,s]=R.edges(o);N.select(t,s)}}else return},ZX=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},QX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:o=1,unit:i="character",reverse:s=!1}=r,{edge:u=null}=r;if(n){u==="start"&&(u=R.isBackward(n)?"focus":"anchor"),u==="end"&&(u=R.isBackward(n)?"anchor":"focus");var{anchor:l,focus:c}=n,p={distance:o,unit:i,ignoreNonSelectable:!0},d={};if(u==null||u==="anchor"){var h=s?C.before(t,l,p):C.after(t,l,p);h&&(d.anchor=h)}if(u==null||u==="focus"){var g=s?C.before(t,c,p):C.after(t,c,p);g&&(d.focus=g)}N.setSelection(t,d)}},eY=(e,t)=>{var{selection:r}=e;if(t=C.range(e,t),r){N.setSelection(e,t);return}if(!R.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ot.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})};function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var tY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:i="both"}=n;if(o){i==="start"&&(i=R.isBackward(o)?"focus":"anchor"),i==="end"&&(i=R.isBackward(o)?"anchor":"focus");var{anchor:s,focus:u}=o,l=i==="anchor"?s:u;N.setSelection(t,{[i==="anchor"?"anchor":"focus"]:rS(rS({},l),r)})}},rY=(e,t)=>{var{selection:r}=e,n={},o={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!ve.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!ve.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}},nY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:i=!1,mode:s="lowest"}=n,{at:u,match:l,select:c}=n;if(W.isNode(r)&&(r=[r]),r.length!==0){var[p]=r;if(u||(u=T2(t),c=!0),c==null&&(c=!1),R.isRange(u))if(o||(u=C.unhangRange(t,u,{voids:i})),R.isCollapsed(u))u=u.anchor;else{var[,d]=R.edges(u),h=C.pointRef(t,d);N.delete(t,{at:u}),u=h.unref()}if(ve.isPoint(u)){l==null&&(Y.isText(p)?l=T=>Y.isText(T):t.isInline(p)?l=T=>Y.isText(T)||C.isInline(t,T):l=T=>K.isElement(T)&&C.isBlock(t,T));var[g]=C.nodes(t,{at:u.path,match:l,mode:s,voids:i});if(g){var[,v]=g,m=C.pathRef(t,v),y=C.isEnd(t,u,v);N.splitNodes(t,{at:u,match:l,mode:s,voids:i});var b=m.unref();u=y?P.next(b):b}else return}var x=P.parent(u),w=u[u.length-1];if(!(!i&&C.void(t,{at:x}))){for(var D of r){var E=x.concat(w);w++,t.apply({type:"insert_node",path:E,node:D}),u=P.next(u)}if(u=P.previous(u),c){var S=C.end(t,u);S&&N.select(t,S)}}}})},oY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:o="lowest",voids:i=!1}=r,{match:s}=r;if(s==null&&(s=P.isPath(n)?Na(t,n):D=>K.isElement(D)&&C.isBlock(t,D)),!!n){var u=C.nodes(t,{at:n,match:s,mode:o,voids:i}),l=Array.from(u,D=>{var[,E]=D;return C.pathRef(t,E)});for(var c of l){var p=c.unref();if(p.length<2)throw new Error("Cannot lift node at a path [".concat(p,"] because it has a depth of less than `2`."));var d=C.node(t,P.parent(p)),[h,g]=d,v=p[p.length-1],{length:m}=h.children;if(m===1){var y=P.next(g);N.moveNodes(t,{at:p,to:y,voids:i}),N.removeNodes(t,{at:g,voids:i})}else if(v===0)N.moveNodes(t,{at:p,to:g,voids:i});else if(v===m-1){var b=P.next(g);N.moveNodes(t,{at:p,to:b,voids:i})}else{var x=P.next(p),w=P.next(g);N.splitNodes(t,{at:x,voids:i}),N.moveNodes(t,{at:p,to:w,voids:i})}}}})},iY=["text"],aY=["children"],sS=(e,t)=>{if(K.isElement(t)){var r=t;return C.isVoid(e,t)?!0:r.children.length===1?sS(e,r.children[0]):!1}else return!C.isEditor(t)},sY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,voids:s=!1,mode:u="lowest"}=r;if(o){if(n==null)if(P.isPath(o)){var[l]=C.parent(t,o);n=I=>l.children.includes(I)}else n=I=>K.isElement(I)&&C.isBlock(t,I);if(!i&&R.isRange(o)&&(o=C.unhangRange(t,o,{voids:s})),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var[,c]=R.edges(o),p=C.pointRef(t,c);N.delete(t,{at:o}),o=p.unref(),r.at==null&&N.select(t,o)}var[d]=C.nodes(t,{at:o,match:n,voids:s,mode:u}),h=C.previous(t,{at:o,match:n,voids:s,mode:u});if(!(!d||!h)){var[g,v]=d,[m,y]=h;if(!(v.length===0||y.length===0)){var b=P.next(y),x=P.common(v,y),w=P.isSibling(v,y),D=Array.from(C.levels(t,{at:v}),I=>{var[G]=I;return G}).slice(x.length).slice(0,-1),E=C.above(t,{at:v,mode:"highest",match:I=>D.includes(I)&&sS(t,I)}),S=E&&C.pathRef(t,E[1]),T,O;if(Y.isText(g)&&Y.isText(m)){var F=On(g,iY);O=m.text.length,T=F}else if(K.isElement(g)&&K.isElement(m)){var F=On(g,aY);O=m.children.length,T=F}else throw new Error("Cannot merge the node at path [".concat(v,"] with the previous sibling because it is not the same kind: ").concat(ot.stringify(g)," ").concat(ot.stringify(m)));w||N.moveNodes(t,{at:v,to:b,voids:s}),S&&N.removeNodes(t,{at:S.current,voids:s}),K.isElement(m)&&C.isEmpty(t,m)||Y.isText(m)&&m.text===""&&y[y.length-1]!==0?N.removeNodes(t,{at:y,voids:s}):t.apply({type:"merge_node",path:b,position:O,properties:T}),S&&S.unref()}}}})},uY=(e,t)=>{C.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:s}=t;if(n){s==null&&(s=P.isPath(n)?Na(e,n):g=>K.isElement(g)&&C.isBlock(e,g));var u=C.pathRef(e,r),l=C.nodes(e,{at:n,match:s,mode:o,voids:i}),c=Array.from(l,g=>{var[,v]=g;return C.pathRef(e,v)});for(var p of c){var d=p.unref(),h=u.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:h}),u.current&&P.isSibling(h,d)&&P.isAfter(h,d)&&(u.current=P.next(u.current))}u.unref()}})},lY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=P.isPath(s)?Na(t,s):g=>K.isElement(g)&&C.isBlock(t,g)),!n&&R.isRange(s)&&(s=C.unhangRange(t,s,{voids:o}));var l=C.nodes(t,{at:s,match:u,mode:i,voids:o}),c=Array.from(l,g=>{var[,v]=g;return C.pathRef(t,v)});for(var p of c){var d=p.unref();if(d){var[h]=C.node(t,d);t.apply({type:"remove_node",path:d,node:h})}}}})},cY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:o,at:i=t.selection,compare:s,merge:u}=n,{hanging:l=!1,mode:c="lowest",split:p=!1,voids:d=!1}=n;if(i){if(o==null&&(o=P.isPath(i)?Na(t,i):O=>K.isElement(O)&&C.isBlock(t,O)),!l&&R.isRange(i)&&(i=C.unhangRange(t,i,{voids:d})),p&&R.isRange(i)){if(R.isCollapsed(i)&&C.leaf(t,i.anchor)[0].text.length>0)return;var h=C.rangeRef(t,i,{affinity:"inward"}),[g,v]=R.edges(i),m=c==="lowest"?"lowest":"highest",y=C.isEnd(t,v,v.path);N.splitNodes(t,{at:v,match:o,mode:m,voids:d,always:!y});var b=C.isStart(t,g,g.path);N.splitNodes(t,{at:g,match:o,mode:m,voids:d,always:!b}),i=h.unref(),n.at==null&&N.select(t,i)}s||(s=(O,F)=>O!==F);for(var[x,w]of C.nodes(t,{at:i,match:o,mode:c,voids:d})){var D={},E={};if(w.length!==0){var S=!1;for(var T in r)T==="children"||T==="text"||s(r[T],x[T])&&(S=!0,x.hasOwnProperty(T)&&(D[T]=x[T]),u?r[T]!=null&&(E[T]=u(x[T],r[T])):r[T]!=null&&(E[T]=r[T]));S&&t.apply({type:"set_node",path:w,properties:D,newProperties:E})}}}})},fY=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,r]=R.edges(t),n=C.pointRef(e,r);return N.delete(e,{at:t}),n.unref()},pY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:o=!1}=r,{match:i,at:s=t.selection,height:u=0,always:l=!1}=r;if(i==null&&(i=j=>K.isElement(j)&&C.isBlock(t,j)),R.isRange(s)&&(s=fY(t,s)),P.isPath(s)){var c=s,p=C.point(t,c),[d]=C.parent(t,c);i=j=>j===d,u=p.path.length-c.length+1,s=p,l=!0}if(s){var h=C.pointRef(t,s,{affinity:"backward"}),g;try{var[v]=C.nodes(t,{at:s,match:i,mode:n,voids:o});if(!v)return;var m=C.void(t,{at:s,mode:"highest"}),y=0;if(!o&&m){var[b,x]=m;if(K.isElement(b)&&t.isInline(b)){var w=C.after(t,x);if(!w){var D={text:""},E=P.next(x);N.insertNodes(t,D,{at:E,voids:o}),w=C.point(t,E)}s=w,l=!0}var S=s.path.length-x.length;u=S+1,l=!0}g=C.pointRef(t,s);var T=s.path.length-u,[,O]=v,F=s.path.slice(0,T),I=u===0?s.offset:s.path[T]+y;for(var[G,k]of C.levels(t,{at:F,reverse:!0,voids:o})){var H=!1;if(k.length<O.length||k.length===0||!o&&K.isElement(G)&&C.isVoid(t,G))break;var V=h.current,M=C.isEnd(t,V,k);if(l||!h||!C.isEdge(t,V,k)){H=!0;var Z=W.extractProps(G);t.apply({type:"split_node",path:k,position:I,properties:Z})}I=k[k.length-1]+(H||M?1:0)}if(r.at==null){var re=g.current||C.end(t,[]);N.select(t,re)}}finally{var se;h.unref(),(se=g)===null||se===void 0||se.unref()}}})},dY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var o={};for(var i of r)o[i]=null;N.setNodes(t,o,n)},mY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=P.isPath(s)?Na(t,s):g=>K.isElement(g)&&C.isBlock(t,g)),P.isPath(s)&&(s=C.range(t,s));var l=R.isRange(s)?C.rangeRef(t,s):null,c=C.nodes(t,{at:s,match:u,mode:n,voids:i}),p=Array.from(c,g=>{var[,v]=g;return C.pathRef(t,v)}).reverse(),d=function(v){var m=v.unref(),[y]=C.node(t,m),b=C.range(t,m);o&&l&&(b=R.intersection(l.current,b)),N.liftNodes(t,{at:b,match:x=>K.isAncestor(y)&&y.children.includes(x),voids:i})};for(var h of p)d(h);l&&l.unref()}})};function nS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var hY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:o="lowest",split:i=!1,voids:s=!1}=n,{match:u,at:l=t.selection}=n;if(l){if(u==null&&(P.isPath(l)?u=Na(t,l):t.isInline(r)?u=b=>K.isElement(b)&&C.isInline(t,b)||Y.isText(b):u=b=>K.isElement(b)&&C.isBlock(t,b)),i&&R.isRange(l)){var[c,p]=R.edges(l),d=C.rangeRef(t,l,{affinity:"inward"});N.splitNodes(t,{at:p,match:u,voids:s}),N.splitNodes(t,{at:c,match:u,voids:s}),l=d.unref(),n.at==null&&N.select(t,l)}var h=Array.from(C.nodes(t,{at:l,match:t.isInline(r)?b=>K.isElement(b)&&C.isBlock(t,b):b=>C.isEditor(b),mode:"lowest",voids:s}));for(var[,g]of h){var v=R.isRange(l)?R.intersection(l,C.range(t,g)):l;if(v){var m=Array.from(C.nodes(t,{at:v,match:u,mode:o,voids:s}));if(m.length>0){var y=function(){var[b]=m,x=m[m.length-1],[,w]=b,[,D]=x;if(w.length===0&&D.length===0)return"continue";var E=P.equals(w,D)?P.parent(w):P.common(w,D),S=C.range(t,w,D),T=C.node(t,E),[O]=T,F=E.length+1,I=P.next(D.slice(0,F)),G=oS(oS({},r),{},{children:[]});N.insertNodes(t,G,{at:I,voids:s}),N.moveNodes(t,{at:S,match:k=>K.isAncestor(O)&&O.children.includes(k),to:I.concat(0),voids:s})}();if(y==="continue")continue}}}}})},Dp=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Hq(e,...n)},addMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Kq(e,...n)},deleteBackward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Yq(e,...n)},deleteForward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Jq(e,...n)},deleteFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Zq(e,...n)},getFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jq(e,...n)},insertBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lX(e,...n)},insertSoftBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return fX(e,...n)},insertFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return YX(e,...n)},insertNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cX(e,...n)},insertText:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dX(e,...n)},normalizeNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _q(e,...n)},removeMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jX(e,...n)},getDirtyPaths:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Gq(e,...n)},shouldNormalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Wq(e,...n)},above:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Uq(e,...n)},after:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qq(e,...n)},before:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Xq(e,...n)},collapse:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return JX(e,...n)},delete:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return XX(e,...n)},deselect:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ZX(e,...n)},edges:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Qq(e,...n)},elementReadOnly:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return eX(e,...n)},end:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return tX(e,...n)},first:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return rX(e,...n)},fragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nX(e,...n)},getMarks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EX(e,...n)},hasBlocks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return iX(e,...n)},hasInlines:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return aX(e,...n)},hasPath:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sX(e,...n)},hasTexts:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return uX(e,...n)},insertNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nY(e,...n)},isBlock:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return mX(e,...n)},isEdge:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hX(e,...n)},isEmpty:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return gX(e,...n)},isEnd:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return vX(e,...n)},isNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yX(e,...n)},isStart:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bX(e,...n)},last:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return CX(e,...n)},leaf:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xX(e,...n)},levels:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return wX(e,...n)},liftNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return oY(e,...n)},mergeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sY(e,...n)},move:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return QX(e,...n)},moveNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return uY(e,...n)},next:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return TX(e,...n)},node:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PX(e,...n)},nodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return AX(e,...n)},normalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OX(e,...n)},parent:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FX(e,...n)},path:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return RX(e,...n)},pathRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return BX(e,...n)},pathRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return $X(e,...n)},point:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return kX(e,...n)},pointRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return MX(e,...n)},pointRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return IX(e,...n)},positions:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return VX(e,...n)},previous:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return NX(e,...n)},range:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HX(e,...n)},rangeRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LX(e,...n)},rangeRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zX(e,...n)},removeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lY(e,...n)},select:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return eY(e,...n)},setNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cY(e,...n)},setNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _X(e,...n)},setPoint:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return tY(e,...n)},setSelection:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return rY(e,...n)},splitNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return pY(e,...n)},start:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return WX(e,...n)},string:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return UX(e,...n)},unhangRange:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return KX(e,...n)},unsetNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dY(e,...n)},unwrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return mY(e,...n)},void:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return oX(e,...n)},withoutNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qX(e,...n)},wrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hY(e,...n)}};return e};a();a();a();a();a();a();a();var yr=[];var uS=function(){return yr.some(function(e){return e.activeTargets.length>0})};a();var lS=function(){return yr.some(function(e){return e.skippedTargets.length>0})};a();var cS="ResizeObserver loop completed with undelivered notifications.",fS=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:cS}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=cS),window.dispatchEvent(e)};a();a();a();a();var ai;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ai||(ai={}));a();a();var Er=function(e){return Object.freeze(e)};var O2=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Er(this)}return e}();a();var F2=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Er(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,i=t.right,s=t.bottom,u=t.left,l=t.width,c=t.height;return{x:r,y:n,top:o,right:i,bottom:s,left:u,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}();a();var Cu=function(e){return e instanceof SVGElement&&"getBBox"in e},Sp=function(e){if(Cu(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},B2=function(e){var t;if(e instanceof Element)return!0;var r=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},pS=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1};a();var si=typeof window<"u"?window:{};var Ep=new WeakMap,dS=/auto|scroll/,gY=/^tb|vertical/,vY=/msie|trident/i.test(si.navigator&&si.navigator.userAgent),Kr=function(e){return parseFloat(e||"0")},La=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new O2((r?t:e)||0,(r?e:t)||0)},mS=Er({devicePixelContentBoxSize:La(),borderBoxSize:La(),contentBoxSize:La(),contentRect:new F2(0,0,0,0)}),$2=function(e,t){if(t===void 0&&(t=!1),Ep.has(e)&&!t)return Ep.get(e);if(Sp(e))return Ep.set(e,mS),mS;var r=getComputedStyle(e),n=Cu(e)&&e.ownerSVGElement&&e.getBBox(),o=!vY&&r.boxSizing==="border-box",i=gY.test(r.writingMode||""),s=!n&&dS.test(r.overflowY||""),u=!n&&dS.test(r.overflowX||""),l=n?0:Kr(r.paddingTop),c=n?0:Kr(r.paddingRight),p=n?0:Kr(r.paddingBottom),d=n?0:Kr(r.paddingLeft),h=n?0:Kr(r.borderTopWidth),g=n?0:Kr(r.borderRightWidth),v=n?0:Kr(r.borderBottomWidth),m=n?0:Kr(r.borderLeftWidth),y=d+c,b=l+p,x=m+g,w=h+v,D=u?e.offsetHeight-w-e.clientHeight:0,E=s?e.offsetWidth-x-e.clientWidth:0,S=o?y+x:0,T=o?b+w:0,O=n?n.width:Kr(r.width)-S-E,F=n?n.height:Kr(r.height)-T-D,I=O+y+E+x,G=F+b+D+w,k=Er({devicePixelContentBoxSize:La(Math.round(O*devicePixelRatio),Math.round(F*devicePixelRatio),i),borderBoxSize:La(I,G,i),contentBoxSize:La(O,F,i),contentRect:new F2(d,l,O,F)});return Ep.set(e,k),k},Tp=function(e,t,r){var n=$2(e,r),o=n.borderBoxSize,i=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case ai.DEVICE_PIXEL_CONTENT_BOX:return s;case ai.BORDER_BOX:return o;default:return i}};var R2=function(){function e(t){var r=$2(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Er([r.borderBoxSize]),this.contentBoxSize=Er([r.contentBoxSize]),this.devicePixelContentBoxSize=Er([r.devicePixelContentBoxSize])}return e}();a();var Pp=function(e){if(Sp(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t};var hS=function(){var e=1/0,t=[];yr.forEach(function(s){if(s.activeTargets.length!==0){var u=[];s.activeTargets.forEach(function(c){var p=new R2(c.target),d=Pp(c.target);u.push(p),c.lastReportedSize=Tp(c.target,c.observedBox),d<e&&(e=d)}),t.push(function(){s.callback.call(s.observer,u,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var o=n[r];o()}return e};a();var M2=function(e){yr.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(Pp(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})};var gS=function(){var e=0;for(M2(e);uS();)e=hS(),M2(e);return lS()&&fS(),e>0};a();a();var I2,vS=[],yY=function(){return vS.splice(0).forEach(function(e){return e()})},yS=function(e){if(!I2){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return yY()}).observe(r,n),I2=function(){r.textContent="".concat(t?t--:t++)}}vS.push(e),I2()};var bS=function(e){yS(function(){requestAnimationFrame(e)})};var Ap=0,bY=function(){return!!Ap},CY=250,xY={attributes:!0,characterData:!0,childList:!0,subtree:!0},CS=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],xS=function(e){return e===void 0&&(e=0),Date.now()+e},k2=!1,wY=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=CY),!k2){k2=!0;var n=xS(t);bS(function(){var o=!1;try{o=gS()}finally{if(k2=!1,t=n-xS(),!bY())return;o?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,xY)};document.body?r():si.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),CS.forEach(function(r){return si.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),CS.forEach(function(r){return si.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),Op=new wY,V2=function(e){!Ap&&e>0&&Op.start(),Ap+=e,!Ap&&Op.stop()};a();var DY=function(e){return!Cu(e)&&!pS(e)&&getComputedStyle(e).display==="inline"},wS=function(){function e(t,r){this.target=t,this.observedBox=r||ai.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Tp(this.target,this.observedBox,!0);return DY(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}();a();var DS=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}();var Fp=new WeakMap,SS=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},xu=function(){function e(){}return e.connect=function(t,r){var n=new DS(t,r);Fp.set(t,n)},e.observe=function(t,r,n){var o=Fp.get(t),i=o.observationTargets.length===0;SS(o.observationTargets,r)<0&&(i&&yr.push(o),o.observationTargets.push(new wS(r,n&&n.box)),V2(1),Op.schedule())},e.unobserve=function(t,r){var n=Fp.get(t),o=SS(n.observationTargets,r),i=n.observationTargets.length===1;o>=0&&(i&&yr.splice(yr.indexOf(n),1),n.observationTargets.splice(o,1),V2(-1))},e.disconnect=function(t){var r=this,n=Fp.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}();var N2=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xu.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!B2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xu.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!B2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xu.unobserve(this,t)},e.prototype.disconnect=function(){xu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();var Mp=dr(OS());import RY from"react-dom";function Lp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MY(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ga(e,t){if(e==null)return{};var r=MY(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Y2=pi(null),bo=()=>{var e=_a(Y2);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},WS=parseInt(me.version.split(".")[0],10),IY=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,FS=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),qt=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Su=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Du=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),kY=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),US=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),VY=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),NY=qt&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),LY=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),zY=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),HY=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Ip=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ho=(!VY||!NY)&&!kY&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",J2=new WeakMap,Z2=new WeakMap,KS=new WeakMap,kp=new WeakMap,G2=new WeakMap,Tu=new WeakMap,ci=new WeakMap,Vp=new WeakMap,zp=new WeakMap,j2=new WeakMap,ui=new WeakMap,li=new WeakMap,Eu=new WeakMap,_2=new WeakMap,Q2=new WeakMap,Tr=new WeakMap,Fn=new WeakMap,Kt=new WeakMap,go=new WeakMap,vo=new WeakMap,qS=new WeakMap,ja=Symbol("placeholder"),XS=Symbol("mark-placeholder"),GY=globalThis.Text,eh=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,jY=e=>yo(e)&&e.nodeType===8,br=e=>yo(e)&&e.nodeType===1,yo=e=>{var t=eh(e);return!!t&&e instanceof t.Node},W2=e=>{var t=e&&e.anchorNode&&eh(e.anchorNode);return!!t&&e instanceof t.Selection},YS=e=>yo(e)&&e.nodeType===3,_Y=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,WY=e=>{var[t,r]=e;if(br(t)&&t.childNodes.length){var n=r===t.childNodes.length,o=n?r-1:r;for([t,o]=JS(t,o,n?"backward":"forward"),n=o<r;br(t)&&t.childNodes.length;){var i=n?t.childNodes.length-1:0;t=KY(t,i,n?"backward":"forward")}r=n&&t.textContent!=null?t.textContent.length:0}return[t,r]},UY=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},JS=(e,t,r)=>{for(var{childNodes:n}=e,o=n[t],i=t,s=!1,u=!1;(jY(o)||br(o)&&o.childNodes.length===0||br(o)&&o.getAttribute("contenteditable")==="false")&&!(s&&u);){if(i>=n.length){s=!0,i=t-1,r="backward";continue}if(i<0){u=!0,i=t+1,r="forward";continue}o=n[i],t=i,i+=r==="forward"?1:-1}return[o,t]},KY=(e,t,r)=>{var[n]=JS(e,t,r);return n},ZS=e=>{var t="";if(YS(e)&&e.nodeValue)return e.nodeValue;if(br(e)){for(var r of Array.from(e.childNodes))t+=ZS(r);var n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
|
|
1781
|
+
`,t2=(e,t,r)=>{let n=({groupLabel:o,groupOptions:i,disabled:s=!1})=>e2("optgroup",{"data-testid":o,disabled:s,label:o,children:t2(i)},o);return e.map(o=>{if(Object.prototype.hasOwnProperty.call(o,"groupLabel"))return n(o);let{label:i,value:s,disabled:u=!1}=o,l=be(r)?o[r]:s,c=be(t)?o[t]:i;return ol(l)&&(l=rr(l)),e2("option",{disabled:u,value:l,children:c},`${rr(c)}--${rr(l)}`)})},GU=(e,t,r)=>$(e)&&!r?t2([{label:e,value:"",disabled:t}]):null,jU=e=>e?null:e2(Ee,{size:"md",type:"caret-down"}),ni=NU(({ariaLabel:e,disabled:t=!1,forceState:r,fullWidth:n=!0,hasError:o=!1,labelName:i="label",multiple:s=!1,options:u,placeholder:l="Please select...",preventPlaceholderSelection:c=!1,required:p=!1,valueName:d="value",...h},g)=>Aw(HU,{disabled:t,forceState:r,fullWidth:n,children:[Aw(Z0,{ref:g,"aria-invalid":o?"true":"false","aria-label":e,disabled:t,forceState:r,hasError:o,multiple:s,required:p,...h,children:[GU(l,c,s),t2(u,i,d)]}),jU(s)]}));ni.displayName="Select_VHS";import{jsx as Ow}from"react/jsx-runtime";var pp=({disabled:e=!1,field:{name:t,value:r,onChange:n,onBlur:o},form:{errors:i},label:s,labelDescription:u,labelProps:l={},options:c,placeholder:p,onChangeCustom:d,...h})=>{let g=v=>de(v)?"":ol(v)?rr(r):v;return Ow(Ut,{disabled:e,error:i[t],label:s,labelDescription:u,labelProps:l,name:t,children:Ow(ni,{"data-testid":`select-${t}`,disabled:e,name:t,onBlur:o,onChange:v=>{n(v),d&&d(v.target.value)},options:c,placeholder:p,value:g(r),...h})})};pp.displayName="FormConnectorSelect_VHS";a();a();import{useEffect as _U}from"react";import{jsx as WU}from"react/jsx-runtime";var dp=({field:{name:e,value:t,onChange:r},form:{setFieldValue:n}={},onChangeCustom:o,valueState:i="",...s})=>(_U(()=>{!i&&de(t)||i!==t&&J(n)&&n(e,i)},[n,e,i,t]),WU(Ia,{"data-testid":`input-${e}`,name:e,onChange:u=>{r(u),J(o)&&o(u.target.value)},type:"hidden",value:de(t)?"":t,...s}));dp.displayName="FormConnectorHidden_VHS";a();a();import{useState as cQ,useEffect as fQ}from"react";import pQ from"styled-components";a();a();import{useCallback as bh,useMemo as nQ,useEffect as oQ}from"react";import dT from"styled-components";a();var X2=dr(Rw()),jS=dr(i2()),_S=dr(pD());import me,{createContext as pi,useContext as _a,useRef as cr,useEffect as Bn,useLayoutEffect as AY,useState as fi,memo as OY,forwardRef as FY,useCallback as Ie,Component as BY,useReducer as $Y,useMemo as Rp}from"react";a();a();function dD(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function mD(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function a2(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return mD(r.overflowY,t)||mD(r.overflowX,t)||function(n){var o=function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(e)}return!1}function hp(e,t,r,n,o,i,s,u){return i<e&&s>t||i>e&&s<t?0:i<=e&&u<=r||s>=t&&u>=r?i-e-n:s>t&&u<r||i<e&&u>r?s-t+o:0}var s2=function(e,t){var r=window,n=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,l=typeof s=="function"?s:function(Ce){return Ce!==s};if(!dD(e))throw new TypeError("Invalid target");for(var c,p,d=document.scrollingElement||document.documentElement,h=[],g=e;dD(g)&&l(g);){if((g=(p=(c=g).parentElement)==null?c.getRootNode().host||null:p)===d){h.push(g);break}g!=null&&g===document.body&&a2(g)&&!a2(document.documentElement)||g!=null&&a2(g,u)&&h.push(g)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,m=r.visualViewport?r.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),w=x.height,D=x.width,E=x.top,S=x.right,T=x.bottom,O=x.left,F=o==="start"||o==="nearest"?E:o==="end"?T:E+w/2,I=i==="center"?O+D/2:i==="end"?S:O,G=[],k=0;k<h.length;k++){var H=h[k],V=H.getBoundingClientRect(),M=V.height,Z=V.width,re=V.top,se=V.right,j=V.bottom,ne=V.left;if(n==="if-needed"&&E>=0&&O>=0&&T<=m&&S<=v&&E>=re&&T<=j&&O>=ne&&S<=se)return G;var ce=getComputedStyle(H),pe=parseInt(ce.borderLeftWidth,10),$e=parseInt(ce.borderTopWidth,10),A=parseInt(ce.borderRightWidth,10),_=parseInt(ce.borderBottomWidth,10),z=0,U=0,ue="offsetWidth"in H?H.offsetWidth-H.clientWidth-pe-A:0,Q="offsetHeight"in H?H.offsetHeight-H.clientHeight-$e-_:0,he="offsetWidth"in H?H.offsetWidth===0?0:Z/H.offsetWidth:0,we="offsetHeight"in H?H.offsetHeight===0?0:M/H.offsetHeight:0;if(d===H)z=o==="start"?F:o==="end"?F-m:o==="nearest"?hp(b,b+m,m,$e,_,b+F,b+F+w,w):F-m/2,U=i==="start"?I:i==="center"?I-v/2:i==="end"?I-v:hp(y,y+v,v,pe,A,y+I,y+I+D,D),z=Math.max(0,z+b),U=Math.max(0,U+y);else{z=o==="start"?F-re-$e:o==="end"?F-j+_+Q:o==="nearest"?hp(re,j,M,$e,_+Q,F,F+w,w):F-(re+M/2)+Q/2,U=i==="start"?I-ne-pe:i==="center"?I-(ne+Z/2)+ue/2:i==="end"?I-se+A+ue:hp(ne,se,Z,pe,A+ue,I,I+D,D);var Se=H.scrollLeft,Ae=H.scrollTop;F+=Ae-(z=Math.max(0,Math.min(Ae+z/we,H.scrollHeight-M/we+Q))),I+=Se-(U=Math.max(0,Math.min(Se+U/he,H.scrollWidth-Z/he+ue)))}G.push({el:H,top:z,left:U})}return G};function hD(e){return e===Object(e)&&Object.keys(e).length!==0}function HK(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var o=n.el,i=n.top,s=n.left;o.scroll&&r?o.scroll({top:i,left:s,behavior:t}):(o.scrollTop=i,o.scrollLeft=s)})}function GK(e){return e===!1?{block:"end",inline:"nearest"}:hD(e)?e:{block:"start",inline:"nearest"}}function jK(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(hD(t)&&typeof t.behavior=="function")return t.behavior(r?s2(e,t):[]);if(r){var n=GK(t);return HK(s2(e,n),n.behavior)}}var gD=jK;a();a();function vD(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xe(e){var t,r;return vD(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(vD(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}a();function Sr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(0)var o,i;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function mo(e){return!!e&&!!e[ur]}function ii(e){var t;return!!e&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===JK}(e)||Array.isArray(e)||!!e[ED]||!!(!((t=e.constructor)===null||t===void 0)&&t[ED])||v2(e)||y2(e))}function gu(e,t,r){r===void 0&&(r=!1),ka(e)===0?(r?Object.keys:D2)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function ka(e){var t=e[ur];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:v2(e)?2:y2(e)?3:0}function p2(e,t){return ka(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _K(e,t){return ka(e)===2?e.get(t):e[t]}function TD(e,t,r){var n=ka(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function WK(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function v2(e){return XK&&e instanceof Map}function y2(e){return YK&&e instanceof Set}function oi(e){return e.o||e.t}function b2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=ZK(e);delete t[ur];for(var r=D2(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function C2(e,t){return t===void 0&&(t=!1),x2(e)||mo(e)||!ii(e)||(ka(e)>1&&(e.set=e.add=e.clear=e.delete=UK),Object.freeze(e),t&&gu(e,function(r,n){return C2(n,!0)},!0)),e}function UK(){Sr(2)}function x2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ur(e){var t=QK[e];return t||Sr(18,e),t}function yD(){return vu}function u2(e,t){t&&(Ur("Patches"),e.u=[],e.s=[],e.v=t)}function gp(e){d2(e),e.p.forEach(KK),e.p=null}function d2(e){e===vu&&(vu=e.l)}function bD(e){return vu={p:[],l:vu,h:e,m:!0,_:0}}function KK(e){var t=e[ur];t.i===0||t.i===1?t.j():t.g=!0}function l2(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ur("ES5").S(t,e,n),n?(r[ur].P&&(gp(t),Sr(4)),ii(e)&&(e=vp(t,e),t.l||yp(t,e)),t.u&&Ur("Patches").M(r[ur].t,e,t.u,t.s)):e=vp(t,r,[]),gp(t),t.u&&t.v(t.u,t.s),e!==PD?e:void 0}function vp(e,t,r){if(x2(t))return t;var n=t[ur];if(!n)return gu(t,function(u,l){return CD(e,n,t,u,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return yp(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=b2(n.k):n.o,i=o,s=!1;n.i===3&&(i=new Set(o),o.clear(),s=!0),gu(i,function(u,l){return CD(e,n,o,u,l,r,s)}),yp(e,o,!1),r&&e.u&&Ur("Patches").N(n,r,e.u,e.s)}return n.o}function CD(e,t,r,n,o,i,s){if(mo(o)){var u=vp(e,o,i&&t&&t.i!==3&&!p2(t.R,n)?i.concat(n):void 0);if(TD(r,n,u),!mo(u))return;e.m=!1}else s&&r.add(o);if(ii(o)&&!x2(o)){if(!e.h.D&&e._<1)return;vp(e,o),t&&t.A.l||yp(e,o)}}function yp(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&C2(t,r)}function c2(e,t){var r=e[ur];return(r?oi(r):e)[t]}function xD(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function m2(e){e.P||(e.P=!0,e.l&&m2(e.l))}function f2(e){e.o||(e.o=b2(e.t))}function h2(e,t,r){var n=v2(t)?Ur("MapSet").F(t,r):y2(t)?Ur("MapSet").T(t,r):e.O?function(o,i){var s=Array.isArray(o),u={i:s?1:0,A:i?i.A:yD(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=u,c=g2;s&&(l=[u],c=hu);var p=Proxy.revocable(l,c),d=p.revoke,h=p.proxy;return u.k=h,u.j=d,h}(t,r):Ur("ES5").J(t,r);return(r?r.A:yD()).p.push(n),n}function qK(e){return mo(e)||Sr(22,e),function t(r){if(!ii(r))return r;var n,o=r[ur],i=ka(r);if(o){if(!o.P&&(o.i<4||!Ur("ES5").K(o)))return o.t;o.I=!0,n=wD(r,i),o.I=!1}else n=wD(r,i);return gu(n,function(s,u){o&&_K(o.t,s)===u||TD(n,s,t(u))}),i===3?new Set(n):n}(e)}function wD(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b2(e)}var DD,vu,w2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",XK=typeof Map<"u",YK=typeof Set<"u",SD=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",PD=w2?Symbol.for("immer-nothing"):((DD={})["immer-nothing"]=!0,DD),ED=w2?Symbol.for("immer-draftable"):"__$immer_draftable",ur=w2?Symbol.for("immer-state"):"__$immer_state";var JK=""+Object.prototype.constructor,D2=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,ZK=Object.getOwnPropertyDescriptors||function(e){var t={};return D2(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},QK={},g2={get:function(e,t){if(t===ur)return e;var r=oi(e);if(!p2(r,t))return function(o,i,s){var u,l=xD(i,s);return l?"value"in l?l.value:(u=l.get)===null||u===void 0?void 0:u.call(o.k):void 0}(e,r,t);var n=r[t];return e.I||!ii(n)?n:n===c2(e.t,t)?(f2(e),e.o[t]=h2(e.A.h,n,e)):n},has:function(e,t){return t in oi(e)},ownKeys:function(e){return Reflect.ownKeys(oi(e))},set:function(e,t,r){var n=xD(oi(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=c2(oi(e),t),i=o?.[ur];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(WK(r,o)&&(r!==void 0||p2(e.t,t)))return!0;f2(e),m2(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return c2(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,f2(e),m2(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=oi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Sr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Sr(12)}},hu={};gu(g2,function(e,t){hu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),hu.deleteProperty=function(e,t){return hu.set.call(this,e,t,void 0)},hu.set=function(e,t,r){return g2.set.call(this,e[0],t,r,e[0])};var eq=function(){function e(r){var n=this;this.O=SD,this.D=!0,this.produce=function(o,i,s){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var l=n;return function(m){var y=this;m===void 0&&(m=u);for(var b=arguments.length,x=Array(b>1?b-1:0),w=1;w<b;w++)x[w-1]=arguments[w];return l.produce(m,function(D){var E;return(E=i).call.apply(E,[y,D].concat(x))})}}var c;if(typeof i!="function"&&Sr(6),s!==void 0&&typeof s!="function"&&Sr(7),ii(o)){var p=bD(n),d=h2(n,o,void 0),h=!0;try{c=i(d),h=!1}finally{h?gp(p):d2(p)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(m){return u2(p,s),l2(m,p)},function(m){throw gp(p),m}):(u2(p,s),l2(c,p))}if(!o||typeof o!="object"){if((c=i(o))===void 0&&(c=o),c===PD&&(c=void 0),n.D&&C2(c,!0),s){var g=[],v=[];Ur("Patches").M(o,c,g,v),s(g,v)}return c}Sr(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),h=1;h<p;h++)d[h-1]=arguments[h];return n.produceWithPatches(c,function(g){return o.apply(void 0,[g].concat(d))})};var s,u,l=n.produce(o,i,function(c,p){s=c,u=p});return typeof Promise<"u"&&l instanceof Promise?l.then(function(c){return[c,s,u]}):[l,s,u]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ii(r)||Sr(8),mo(r)&&(r=qK(r));var n=bD(this),o=h2(this,r,void 0);return o[ur].C=!0,d2(n),o},t.finishDraft=function(r,n){var o=r&&r[ur],i=o.A;return u2(i,n),l2(void 0,i)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!SD&&Sr(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var s=Ur("Patches").$;return mo(r)?s(r,n):this.produce(r,function(u){return s(u,n)})},e}(),lr=new eq,bp=lr.produce,BXe=lr.produceWithPatches.bind(lr),$Xe=lr.setAutoFreeze.bind(lr),RXe=lr.setUseProxies.bind(lr),MXe=lr.applyPatches.bind(lr),S2=lr.createDraft.bind(lr),E2=lr.finishDraft.bind(lr);var tq={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=P.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},rq={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=ve.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},nq={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=R.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},xp=new WeakMap,wp=new WeakMap,bu=new WeakMap,iS=new WeakMap,AD=new WeakMap,OD=new WeakMap,FD=new WeakMap,P={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=P.levels(e,t);return r?n=n.slice(1):n=n.slice(0,-1),n},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n],i=t[n];if(o!==i)break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],s=t[r];return P.equals(n,o)&&i>s},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return P.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],s=t[r];return P.equals(n,o)&&i<s},equals(e,t){return e.length===t.length&&e.every((r,n)=>r===t[n])},hasPrevious(e){return e[e.length-1]>0},isAfter(e,t){return P.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&P.compare(e,t)===0},isBefore(e,t){return P.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&P.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&P.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&P.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&P.compare(e,t)===0},isPath(e){return Array.isArray(e)&&(e.length===0||typeof e[0]=="number")},isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1),o=e[e.length-1],i=t[t.length-1];return o!==i&&P.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},operationCanTransformPath(e){switch(e.type){case"insert_node":case"remove_node":case"merge_node":case"split_node":case"move_node":return!0;default:return!1}},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!P.isAncestor(t,e)&&!P.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!e)return null;var n=[...e],{affinity:o="forward"}=r;if(e.length===0)return n;switch(t.type){case"insert_node":{var{path:i}=t;(P.equals(i,n)||P.endsBefore(i,n)||P.isAncestor(i,n))&&(n[i.length-1]+=1);break}case"remove_node":{var{path:s}=t;if(P.equals(s,n)||P.isAncestor(s,n))return null;P.endsBefore(s,n)&&(n[s.length-1]-=1);break}case"merge_node":{var{path:u,position:l}=t;P.equals(u,n)||P.endsBefore(u,n)?n[u.length-1]-=1:P.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=l);break}case"split_node":{var{path:c,position:p}=t;if(P.equals(c,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else P.endsBefore(c,n)?n[c.length-1]+=1:P.isAncestor(c,n)&&e[c.length]>=p&&(n[c.length-1]+=1,n[c.length]-=p);break}case"move_node":{var{path:d,newPath:h}=t;if(P.equals(d,h))return n;if(P.isAncestor(d,n)||P.equals(d,n)){var g=h.slice();return P.endsBefore(d,h)&&d.length<h.length&&(g[d.length-1]-=1),g.concat(n.slice(d.length))}else P.isSibling(d,h)&&(P.isAncestor(h,n)||P.equals(h,n))?P.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:P.endsBefore(h,n)||P.equals(h,n)||P.isAncestor(h,n)?(P.endsBefore(d,n)&&(n[d.length-1]-=1),n[h.length-1]+=1):P.endsBefore(d,n)&&(P.equals(h,n)&&(n[h.length-1]+=1),n[d.length-1]-=1);break}}return n}};function $t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function yu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var oq=(e,t,r)=>{switch(r.type){case"insert_node":{var{path:n,node:o}=r,i=W.parent(e,n),s=n[n.length-1];if(s>i.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(n,"] because the destination is past the end of the node."));if(i.children.splice(s,0,o),t)for(var[u,l]of R.points(t))t[l]=ve.transform(u,r);break}case"insert_text":{var{path:c,offset:p,text:d}=r;if(d.length===0)break;var h=W.leaf(e,c),g=h.text.slice(0,p),v=h.text.slice(p);if(h.text=g+d+v,t)for(var[m,y]of R.points(t))t[y]=ve.transform(m,r);break}case"merge_node":{var{path:b}=r,x=W.get(e,b),w=P.previous(b),D=W.get(e,w),E=W.parent(e,b),S=b[b.length-1];if(Y.isText(x)&&Y.isText(D))D.text+=x.text;else if(!Y.isText(x)&&!Y.isText(D))D.children.push(...x.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(b,"] to nodes of different interfaces: ").concat(ot.stringify(x)," ").concat(ot.stringify(D)));if(E.children.splice(S,1),t)for(var[T,O]of R.points(t))t[O]=ve.transform(T,r);break}case"move_node":{var{path:F,newPath:I}=r;if(P.isAncestor(F,I))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(I,"] because the destination is inside itself."));var G=W.get(e,F),k=W.parent(e,F),H=F[F.length-1];k.children.splice(H,1);var V=P.transform(F,r),M=W.get(e,P.parent(V)),Z=V[V.length-1];if(M.children.splice(Z,0,G),t)for(var[re,se]of R.points(t))t[se]=ve.transform(re,r);break}case"remove_node":{var{path:j}=r,ne=j[j.length-1],ce=W.parent(e,j);if(ce.children.splice(ne,1),t)for(var[pe,$e]of R.points(t)){var A=ve.transform(pe,r);if(t!=null&&A!=null)t[$e]=A;else{var _=void 0,z=void 0;for(var[U,ue]of W.texts(e))if(P.compare(ue,j)===-1)_=[U,ue];else{z=[U,ue];break}var Q=!1;_&&z&&(P.equals(z[1],j)?Q=!P.hasPrevious(z[1]):Q=P.common(_[1],j).length<P.common(z[1],j).length),_&&!Q?(pe.path=_[1],pe.offset=_[0].text.length):z?(pe.path=z[1],pe.offset=0):t=null}}break}case"remove_text":{var{path:he,offset:we,text:Se}=r;if(Se.length===0)break;var Ae=W.leaf(e,he),Ce=Ae.text.slice(0,we),je=Ae.text.slice(we+Se.length);if(Ae.text=Ce+je,t)for(var[Ye,ke]of R.points(t))t[ke]=ve.transform(Ye,r);break}case"set_node":{var{path:Tt,properties:Ct,newProperties:st}=r;if(Tt.length===0)throw new Error("Cannot set properties on the root node!");var ut=W.get(e,Tt);for(var B in st){if(B==="children"||B==="text")throw new Error('Cannot set the "'.concat(B,'" property of nodes!'));var X=st[B];X==null?delete ut[B]:ut[B]=X}for(var ee in Ct)st.hasOwnProperty(ee)||delete ut[ee];break}case"set_selection":{var{newProperties:q}=r;if(q==null)t=q;else{if(t==null){if(!R.isRange(q))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(ot.stringify(q)," when there is no current selection."));t=yu({},q)}for(var ae in q){var De=q[ae];if(De==null){if(ae==="anchor"||ae==="focus")throw new Error('Cannot remove the "'.concat(ae,'" selection property'));delete t[ae]}else t[ae]=De}}break}case"split_node":{var{path:Te,position:ht,properties:Nn}=r;if(Te.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Te,"] because the root node cannot be split."));var Cr=W.get(e,Te),Qd=W.parent(e,Te),_g=Te[Te.length-1],Fi;if(Y.isText(Cr)){var e1=Cr.text.slice(0,ht),hF=Cr.text.slice(ht);Cr.text=e1,Fi=yu(yu({},Nn),{},{text:hF})}else{var gF=Cr.children.slice(0,ht),vF=Cr.children.slice(ht);Cr.children=gF,Fi=yu(yu({},Nn),{},{children:vF})}if(Qd.children.splice(_g+1,0,Fi),t)for(var[yF,bF]of R.points(t))t[bF]=ve.transform(yF,r);break}}return t},iq={transform(e,t){e.children=S2(e.children);var r=e.selection&&S2(e.selection);try{r=oq(e,r,t)}finally{e.children=E2(e.children),r?e.selection=mo(r)?E2(r):r:e.selection=null}}},aq={insertNodes(e,t,r){e.insertNodes(t,r)},liftNodes(e,t){e.liftNodes(t)},mergeNodes(e,t){e.mergeNodes(t)},moveNodes(e,t){e.moveNodes(t)},removeNodes(e,t){e.removeNodes(t)},setNodes(e,t,r){e.setNodes(t,r)},splitNodes(e,t){e.splitNodes(t)},unsetNodes(e,t,r){e.unsetNodes(t,r)},unwrapNodes(e,t){e.unwrapNodes(t)},wrapNodes(e,t,r){e.wrapNodes(t,r)}},sq={collapse(e,t){e.collapse(t)},deselect(e){e.deselect()},move(e,t){e.move(t)},select(e,t){e.select(t)},setPoint(e,t,r){e.setPoint(t,r)},setSelection(e,t){e.setSelection(t)}},aS=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(Xe(n)&&Xe(o)){if(!aS(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var s in t)if(e[s]===void 0&&t[s]!==void 0)return!1;return!0};function uq(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function On(e,t){if(e==null)return{};var r=uq(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var lq=["anchor","focus"];function $D(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$D(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$D(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var R={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return R.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=R.edges(e);return t},equals(e,t){return ve.equals(e.anchor,t.anchor)&&ve.equals(e.focus,t.focus)},includes(e,t){if(R.isRange(t)){if(R.includes(e,t.anchor)||R.includes(e,t.focus))return!0;var[r,n]=R.edges(e),[o,i]=R.edges(t);return ve.isBefore(r,o)&&ve.isAfter(n,i)}var[s,u]=R.edges(e),l=!1,c=!1;return ve.isPoint(t)?(l=ve.compare(t,s)>=0,c=ve.compare(t,u)<=0):(l=P.compare(t,s.path)>=0,c=P.compare(t,u.path)<=0),l&&c},intersection(e,t){var r=On(e,lq),[n,o]=R.edges(e),[i,s]=R.edges(t),u=ve.isBefore(n,i)?i:n,l=ve.isBefore(o,s)?o:s;return ve.isBefore(l,u)?null:cq({anchor:u,focus:l},r)},isBackward(e){var{anchor:t,focus:r}=e;return ve.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return ve.equals(t,r)},isExpanded(e){return!R.isCollapsed(e)},isForward(e){return!R.isBackward(e)},isRange(e){return Xe(e)&&ve.isPoint(e.anchor)&&ve.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=R.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bp(e,n=>{if(n===null)return null;var{affinity:o="inward"}=r,i,s;if(o==="inward"){var u=R.isCollapsed(n);R.isForward(n)?(i="forward",s=u?i:"backward"):(i="backward",s=u?i:"forward")}else o==="outward"?R.isForward(n)?(i="backward",s="forward"):(i="forward",s="backward"):(i=o,s=o);var l=ve.transform(n.anchor,t,{affinity:i}),c=ve.transform(n.focus,t,{affinity:s});if(!l||!c)return null;n.anchor=l,n.focus=c})}},RD=e=>Xe(e)&&W.isNodeList(e.children)&&!C.isEditor(e),K={isAncestor(e){return Xe(e)&&W.isNodeList(e.children)},isElement:RD,isElementList(e){return Array.isArray(e)&&e.every(t=>K.isElement(t))},isElementProps(e){return e.children!==void 0},isElementType:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return RD(t)&&t[n]===r},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},fq=["children"],pq=["text"],MD=new WeakMap,W={ancestor(e,t){var r=W.get(e,t);if(Y.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(ot.stringify(r)));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of P.ancestors(t,r)){var o=W.ancestor(e,n),i=[o,n];yield i}},child(e,t){if(Y.isText(e))throw new Error("Cannot get the child of a text node: ".concat(ot.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(ot.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=W.ancestor(e,t),{children:i}=o,s=n?i.length-1:0;n?s>=0:s<i.length;){var u=W.child(o,s),l=t.concat(s);yield[u,l],s=n?s-1:s+1}},common(e,t,r){var n=P.common(t,r),o=W.get(e,n);return[o,n]},descendant(e,t){var r=W.get(e,t);if(C.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(ot.stringify(r)));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of W.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of W.nodes(e,t))K.isElement(r)&&(yield[r,n])},extractProps(e){if(K.isAncestor(e)){var t=On(e,fq);return t}else{var t=On(e,pq);return t}},first(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Y.isText(n)||n.children.length===0);)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Y.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(ot.stringify(e)));var r=bp({children:e.children},n=>{var[o,i]=R.edges(t),s=W.nodes(n,{reverse:!0,pass:h=>{var[,g]=h;return!R.includes(t,g)}});for(var[,u]of s){if(!R.includes(t,u)){var l=W.parent(n,u),c=u[u.length-1];l.children.splice(c,1)}if(P.equals(u,i.path)){var p=W.leaf(n,u);p.text=p.text.slice(0,i.offset)}if(P.equals(u,o.path)){var d=W.leaf(n,u);d.text=d.text.slice(o.offset)}}C.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(Y.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(ot.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(Y.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode(e){return Y.isText(e)||K.isElement(e)||C.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=MD.get(e);if(t!==void 0)return t;var r=e.every(n=>W.isNode(n));return MD.set(e,r),r},last(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Y.isText(n)||n.children.length===0);){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=W.get(e,t);if(!Y.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(ot.stringify(r)));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of P.levels(t,r)){var o=W.get(e,n);yield[o,n]}},matches(e,t){return K.isElement(e)&&K.isElementProps(t)&&K.matches(e,t)||Y.isText(e)&&Y.isTextProps(t)&&Y.matches(e,t)},*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,s=new Set,u=[],l=e;!(i&&(n?P.isBefore(u,i):P.isAfter(u,i)));){if(s.has(l)||(yield[l,u]),!s.has(l)&&!Y.isText(l)&&l.children.length!==0&&(r==null||r([l,u])===!1)){s.add(l);var c=n?l.children.length-1:0;P.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),l=W.get(e,u);continue}if(u.length===0)break;if(!n){var p=P.next(u);if(W.has(e,p)){u=p,l=W.get(e,u);continue}}if(n&&u[u.length-1]!==0){var d=P.previous(u);u=d,l=W.get(e,u);continue}u=P.parent(u),l=W.get(e,u),s.add(l)}},parent(e,t){var r=P.parent(t),n=W.get(e,r);if(Y.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string(e){return Y.isText(e)?e.text:e.children.map(W.string).join("")},*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of W.nodes(e,t))Y.isText(r)&&(yield[r,n])}};function ID(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function He(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ID(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var An={isNodeOperation(e){return An.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Xe(e))return!1;switch(e.type){case"insert_node":return P.isPath(e.path)&&W.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"merge_node":return typeof e.position=="number"&&P.isPath(e.path)&&Xe(e.properties);case"move_node":return P.isPath(e.path)&&P.isPath(e.newPath);case"remove_node":return P.isPath(e.path)&&W.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&P.isPath(e.path);case"set_node":return P.isPath(e.path)&&Xe(e.properties)&&Xe(e.newProperties);case"set_selection":return e.properties===null&&R.isRange(e.newProperties)||e.newProperties===null&&R.isRange(e.properties)||Xe(e.properties)&&Xe(e.newProperties);case"split_node":return P.isPath(e.path)&&typeof e.position=="number"&&Xe(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>An.isOperation(t))},isSelectionOperation(e){return An.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return An.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return He(He({},e),{},{type:"remove_node"});case"insert_text":return He(He({},e),{},{type:"remove_text"});case"merge_node":return He(He({},e),{},{type:"split_node",path:P.previous(e.path)});case"move_node":{var{newPath:t,path:r}=e;if(P.equals(t,r))return e;if(P.isSibling(r,t))return He(He({},e),{},{path:t,newPath:r});var n=P.transform(r,e),o=P.transform(P.next(r),e);return He(He({},e),{},{path:n,newPath:o})}case"remove_node":return He(He({},e),{},{type:"insert_node"});case"remove_text":return He(He({},e),{},{type:"insert_text"});case"set_node":{var{properties:i,newProperties:s}=e;return He(He({},e),{},{properties:s,newProperties:i})}case"set_selection":{var{properties:u,newProperties:l}=e;return u==null?He(He({},e),{},{properties:l,newProperties:null}):l==null?He(He({},e),{},{properties:null,newProperties:u}):He(He({},e),{},{properties:l,newProperties:u})}case"split_node":return He(He({},e),{},{type:"merge_node",path:P.next(e.path)})}}},kD=new WeakMap,dq=e=>{var t=kD.get(e);if(t!==void 0)return t;if(!Xe(e))return!1;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertSoftBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isElementReadOnly=="function"&&typeof e.isInline=="function"&&typeof e.isSelectable=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&typeof e.getDirtyPaths=="function"&&(e.marks===null||Xe(e.marks))&&(e.selection===null||R.isRange(e.selection))&&W.isNodeList(e.children)&&An.isOperationList(e.operations);return kD.set(e,r),r},C={above(e,t){return e.above(t)},addMark(e,t,r){e.addMark(t,r)},after(e,t,r){return e.after(t,r)},before(e,t,r){return e.before(t,r)},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e,t){e.deleteFragment(t)},edges(e,t){return e.edges(t)},elementReadOnly(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.elementReadOnly(t)},end(e,t){return e.end(t)},first(e,t){return e.first(t)},fragment(e,t){return e.fragment(t)},hasBlocks(e,t){return e.hasBlocks(t)},hasInlines(e,t){return e.hasInlines(t)},hasPath(e,t){return e.hasPath(t)},hasTexts(e,t){return e.hasTexts(t)},insertBreak(e){e.insertBreak()},insertFragment(e,t,r){e.insertFragment(t,r)},insertNode(e,t){e.insertNode(t)},insertSoftBreak(e){e.insertSoftBreak()},insertText(e,t){e.insertText(t)},isBlock(e,t){return e.isBlock(t)},isEdge(e,t,r){return e.isEdge(t,r)},isEditor(e){return dq(e)},isElementReadOnly(e,t){return e.isElementReadOnly(t)},isEmpty(e,t){return e.isEmpty(t)},isEnd(e,t,r){return e.isEnd(t,r)},isInline(e,t){return e.isInline(t)},isNormalizing(e){return e.isNormalizing()},isSelectable(e,t){return e.isSelectable(t)},isStart(e,t,r){return e.isStart(t,r)},isVoid(e,t){return e.isVoid(t)},last(e,t){return e.last(t)},leaf(e,t,r){return e.leaf(t,r)},levels(e,t){return e.levels(t)},marks(e){return e.getMarks()},next(e,t){return e.next(t)},node(e,t,r){return e.node(t,r)},nodes(e,t){return e.nodes(t)},normalize(e,t){e.normalize(t)},parent(e,t,r){return e.parent(t,r)},path(e,t,r){return e.path(t,r)},pathRef(e,t,r){return e.pathRef(t,r)},pathRefs(e){return e.pathRefs()},point(e,t,r){return e.point(t,r)},pointRef(e,t,r){return e.pointRef(t,r)},pointRefs(e){return e.pointRefs()},positions(e,t){return e.positions(t)},previous(e,t){return e.previous(t)},range(e,t,r){return e.range(t,r)},rangeRef(e,t,r){return e.rangeRef(t,r)},rangeRefs(e){return e.rangeRefs()},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){e.setNormalizing(t)},start(e,t){return e.start(t)},string(e,t,r){return e.string(t,r)},unhangRange(e,t,r){return e.unhangRange(t,r)},void(e,t){return e.void(t)},withoutNormalizing(e,t){e.withoutNormalizing(t)}};var mq={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(P.isPath)}};function VD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ND(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ve={compare(e,t){var r=P.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter(e,t){return ve.compare(e,t)===1},isBefore(e,t){return ve.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&P.equals(e.path,t.path)},isPoint(e){return Xe(e)&&typeof e.offset=="number"&&P.isPath(e.path)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return bp(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:s}=n;switch(t.type){case"insert_node":case"move_node":{n.path=P.transform(i,t,r);break}case"insert_text":{P.equals(t.path,i)&&(t.offset<s||t.offset===s&&o==="forward")&&(n.offset+=t.text.length);break}case"merge_node":{P.equals(t.path,i)&&(n.offset+=t.position),n.path=P.transform(i,t,r);break}case"remove_text":{P.equals(t.path,i)&&t.offset<=s&&(n.offset-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(P.equals(t.path,i)||P.isAncestor(t.path,i))return null;n.path=P.transform(i,t,r);break}case"split_node":{if(P.equals(t.path,i)){if(t.position===s&&o==null)return null;(t.position<s||t.position===s&&o==="forward")&&(n.offset-=t.position,n.path=P.transform(i,t,ND(ND({},r),{},{affinity:"forward"})))}else n.path=P.transform(i,t,r);break}}})}},LD=void 0,ot={setScrubber(e){LD=e},stringify(e){return JSON.stringify(e,LD)}},hq=["text"],gq=["anchor","focus"];function zD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Pn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Y={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){var s=On(i,hq);return s}return aS(n?o(e):e,n?o(t):t)},isText(e){return Xe(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Y.isText(t))},isTextProps(e){return e.text!==void 0},matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Pn({},e)];for(var n of t){var o=On(n,gq),[i,s]=R.edges(n),u=[],l=0,c=i.offset,p=s.offset;for(var d of r){var{length:h}=d.text,g=l;if(l+=h,c<=g&&l<=p){Object.assign(d,o),u.push(d);continue}if(c!==p&&(c===l||p===g)||c>l||p<g||p===g&&g!==0){u.push(d);continue}var v=d,m=void 0,y=void 0;if(p<l){var b=p-g;y=Pn(Pn({},v),{},{text:v.text.slice(b)}),v=Pn(Pn({},v),{},{text:v.text.slice(0,b)})}if(c>g){var x=c-g;m=Pn(Pn({},v),{},{text:v.text.slice(0,x)}),v=Pn(Pn({},v),{},{text:v.text.slice(x)})}Object.assign(v,o),m&&u.push(m),u.push(v),y&&u.push(y)}r=u}return r}},T2=e=>e.selection?e.selection:e.children.length>0?C.end(e,[]):[0],Na=(e,t)=>{var[r]=C.node(e,t);return n=>n===r},P2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!r,o=r?wq(t):t,i=fe.None,s=fe.None,u=0,l=null,c=null;for(var p of o){var d=p.codePointAt(0);if(!d)break;var h=Mq(p,d);if([i,s]=n?[s,h]:[h,i],Va(i,fe.ZWJ)&&Va(s,fe.ExtPict)&&(n?l=HD(t.substring(0,u)):l=HD(t.substring(0,t.length-u)),!l)||Va(i,fe.RI)&&Va(s,fe.RI)&&(c!==null?c=!c:n?c=!0:c=Lq(t.substring(0,t.length-u)),!c)||i!==fe.None&&s!==fe.None&&kq(i,s))break;u+=p.length}return u||1},vq=/\s/,yq=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,bq=/['\u2018\u2019]/,Cq=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,o=!1;t.length>0;){var i=P2(t,r),[s,u]=A2(t,i,r);if(xq(s,u,r))o=!0,n+=i;else if(!o)n+=i;else break;t=u}return n},A2=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},xq=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(vq.test(t))return!1;if(bq.test(t)){var o=P2(r,n),[i,s]=A2(r,o,n);if(e(i,s,n))return!0}return!yq.test(t)},wq=function*(t){for(var r=t.length-1,n=0;n<t.length;n++){var o=t.charAt(r-n);if(Sq(o.charCodeAt(0))){var i=t.charAt(r-n-1);if(Dq(i.charCodeAt(0))){yield i+o,n++;continue}}yield o}},Dq=e=>e>=55296&&e<=56319,Sq=e=>e>=56320&&e<=57343,fe;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(fe||(fe={}));var Eq=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,Tq=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Pq=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,Aq=/^[\u1100-\u115F\uA960-\uA97C]$/,Oq=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Fq=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Bq=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,$q=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,Rq=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,Mq=(e,t)=>{var r=fe.Any;return e.search(Eq)!==-1&&(r|=fe.Extend),t===8205&&(r|=fe.ZWJ),t>=127462&&t<=127487&&(r|=fe.RI),e.search(Tq)!==-1&&(r|=fe.Prepend),e.search(Pq)!==-1&&(r|=fe.SpacingMark),e.search(Aq)!==-1&&(r|=fe.L),e.search(Oq)!==-1&&(r|=fe.V),e.search(Fq)!==-1&&(r|=fe.T),e.search(Bq)!==-1&&(r|=fe.LV),e.search($q)!==-1&&(r|=fe.LVT),e.search(Rq)!==-1&&(r|=fe.ExtPict),r};function Va(e,t){return(e&t)!==0}var Iq=[[fe.L,fe.L|fe.V|fe.LV|fe.LVT],[fe.LV|fe.V,fe.V|fe.T],[fe.LVT|fe.T,fe.T],[fe.Any,fe.Extend|fe.ZWJ],[fe.Any,fe.SpacingMark],[fe.Prepend,fe.Any],[fe.ZWJ,fe.ExtPict],[fe.RI,fe.RI]];function kq(e,t){return Iq.findIndex(r=>Va(e,r[0])&&Va(t,r[1]))===-1}var Vq=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,HD=e=>e.search(Vq)!==-1,Nq=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Lq=e=>{var t=e.match(Nq);if(t===null)return!1;var r=t[0].length/2;return r%2===1},zq={delete(e,t){e.delete(t)},insertFragment(e,t,r){e.insertFragment(t,r)},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:o=T2(e)}=r;if(P.isPath(o)&&(o=C.range(e,o)),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var i=R.end(o);if(!n&&C.void(e,{at:i}))return;var s=R.start(o),u=C.pointRef(e,s),l=C.pointRef(e,i);N.delete(e,{at:o,voids:n});var c=u.unref(),p=l.unref();o=c||p,N.setSelection(e,{anchor:o,focus:o})}if(!(!n&&C.void(e,{at:o})||C.elementReadOnly(e,{at:o}))){var{path:d,offset:h}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:h,text:t})}})}};function GD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var N=Cp(Cp(Cp(Cp({},iq),aq),sq),zq),Hq=(e,t)=>{for(var r of C.pathRefs(e))tq.transform(r,t);for(var n of C.pointRefs(e))rq.transform(n,t);for(var o of C.rangeRefs(e))nq.transform(o,t);var i=xp.get(e)||[],s=wp.get(e)||new Set,u,l,c=v=>{if(v){var m=v.join(",");l.has(m)||(l.add(m),u.push(v))}};if(P.operationCanTransformPath(t)){u=[],l=new Set;for(var p of i){var d=P.transform(p,t);c(d)}}else u=i,l=s;var h=e.getDirtyPaths(t);for(var g of h)c(g);xp.set(e,u),wp.set(e,l),N.transform(e,t),e.operations.push(t),C.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),bu.get(e)||(bu.set(e,!0),Promise.resolve().then(()=>{bu.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},Gq=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=t;return P.levels(r)}case"insert_node":{var{node:n,path:o}=t,i=P.levels(o),s=Y.isText(n)?[]:Array.from(W.nodes(n),I=>{var[,G]=I;return o.concat(G)});return[...i,...s]}case"merge_node":{var{path:u}=t,l=P.ancestors(u),c=P.previous(u);return[...l,c]}case"move_node":{var{path:p,newPath:d}=t;if(P.equals(p,d))return[];var h=[],g=[];for(var v of P.ancestors(p)){var m=P.transform(v,t);h.push(m)}for(var y of P.ancestors(d)){var b=P.transform(y,t);g.push(b)}var x=g[g.length-1],w=d[d.length-1],D=x.concat(w);return[...h,...g,D]}case"remove_node":{var{path:E}=t,S=P.ancestors(E);return[...S]}case"split_node":{var{path:T}=t,O=P.levels(T),F=P.next(T);return[...O,F]}default:return[]}},jq=e=>{var{selection:t}=e;return t?W.fragment(e,t):[]},_q=(e,t)=>{var[r,n]=t;if(!Y.isText(r)){if(K.isElement(r)&&r.children.length===0){var o={text:""};N.insertNodes(e,o,{at:n.concat(0),voids:!0});return}for(var i=C.isEditor(r)?!1:K.isElement(r)&&(e.isInline(r)||r.children.length===0||Y.isText(r.children[0])||e.isInline(r.children[0])),s=0,u=0;u<r.children.length;u++,s++){var l=W.get(e,n);if(!Y.isText(l)){var c=l.children[s],p=l.children[s-1],d=u===r.children.length-1,h=Y.isText(c)||K.isElement(c)&&e.isInline(c);if(h!==i)N.removeNodes(e,{at:n.concat(s),voids:!0}),s--;else if(K.isElement(c)){if(e.isInline(c)){if(p==null||!Y.isText(p)){var g={text:""};N.insertNodes(e,g,{at:n.concat(s),voids:!0}),s++}else if(d){var v={text:""};N.insertNodes(e,v,{at:n.concat(s+1),voids:!0}),s++}}}else p!=null&&Y.isText(p)&&(Y.equals(c,p,{loose:!0})?(N.mergeNodes(e,{at:n.concat(s),voids:!0}),s--):p.text===""?(N.removeNodes(e,{at:n.concat(s-1),voids:!0}),s--):c.text===""&&(N.removeNodes(e,{at:n.concat(s),voids:!0}),s--))}}}},Wq=(e,t)=>{var{iteration:r,initialDirtyPathsLength:n}=t,o=n*42;if(r>o)throw new Error("Could not completely normalize the editor after ".concat(o," iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state."));return!0},Uq=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:i=t.selection,match:s}=r;if(i){var u=C.path(t,i),l=o==="lowest";for(var[c,p]of C.levels(t,{at:u,voids:n,match:s,reverse:l}))if(!Y.isText(c)){if(R.isRange(i)){if(P.isAncestor(p,i.anchor.path)&&P.isAncestor(p,i.focus.path))return[c,p]}else if(!P.equals(u,p))return[c,p]}}};function jD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function _D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Kq=(e,t,r)=>{var{selection:n}=e;if(n){var o=(d,h)=>{if(!Y.isText(d))return!1;var[g,v]=C.parent(e,h);return!e.isVoid(g)||e.markableVoid(g)},i=R.isExpanded(n),s=!1;if(!i){var[u,l]=C.node(e,n);if(u&&o(u,l)){var[c]=C.parent(e,l);s=c&&e.markableVoid(c)}}if(i||s)N.setNodes(e,{[t]:r},{match:o,split:!0,voids:!0});else{var p=_D(_D({},C.marks(e)||{}),{},{[t]:r});e.marks=p,bu.get(e)||e.onChange()}}};function WD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function UD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var qq=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.point(t,r,{edge:"end"}),i=C.end(t,[]),s={anchor:o,focus:i},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,UD(UD({},n),{},{at:s}))){if(l>u)break;l!==0&&(c=p),l++}return c};function KD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Xq=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.start(t,[]),i=C.point(t,r,{edge:"start"}),s={anchor:o,focus:i},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,qD(qD({},n),{},{at:s,reverse:!0}))){if(l>u)break;l!==0&&(c=p),l++}return c},Yq=(e,t)=>{var{selection:r}=e;r&&R.isCollapsed(r)&&N.delete(e,{unit:t,reverse:!0})},Jq=(e,t)=>{var{selection:r}=e;r&&R.isCollapsed(r)&&N.delete(e,{unit:t})},Zq=function(t){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t;n&&R.isExpanded(n)&&N.delete(t,{reverse:r==="backward"})},Qq=(e,t)=>[C.start(e,t),C.end(e,t)];function XD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function YD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var eX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,YD(YD({},r),{},{match:n=>K.isElement(n)&&C.isElementReadOnly(t,n)}))},tX=(e,t)=>C.point(e,t,{edge:"end"}),rX=(e,t)=>{var r=C.path(e,t,{edge:"start"});return C.node(e,r)},nX=(e,t)=>{var r=C.range(e,t);return W.fragment(e,r)};function JD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ZD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var oX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,ZD(ZD({},r),{},{match:n=>K.isElement(n)&&C.isVoid(t,n)}))},iX=(e,t)=>t.children.some(r=>K.isElement(r)&&C.isBlock(e,r)),aX=(e,t)=>t.children.some(r=>Y.isText(r)||C.isInline(e,r)),sX=(e,t)=>W.has(e,t),uX=(e,t)=>t.children.every(r=>Y.isText(r)),lX=e=>{N.splitNodes(e,{always:!0})},cX=(e,t,r)=>{N.insertNodes(e,t,r)},fX=e=>{N.splitNodes(e,{always:!0})};function QD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function pX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var dX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:i}=t;if(o){if(i){var s=pX({text:r},i);N.insertNodes(t,s,{at:n.at,voids:n.voids})}else N.insertText(t,r,n);t.marks=null}},mX=(e,t)=>!e.isInline(t),hX=(e,t,r)=>C.isStart(e,t,r)||C.isEnd(e,t,r),gX=(e,t)=>{var{children:r}=t,[n]=r;return r.length===0||r.length===1&&Y.isText(n)&&n.text===""&&!e.isVoid(t)},vX=(e,t,r)=>{var n=C.end(e,r);return ve.equals(t,n)},yX=e=>{var t=iS.get(e);return t===void 0?!0:t},bX=(e,t,r)=>{if(t.offset!==0)return!1;var n=C.start(e,r);return ve.equals(t,n)},CX=(e,t)=>{var r=C.path(e,t,{edge:"end"});return C.node(e,r)},xX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),i=W.leaf(t,o);return[i,o]};function*wX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),!!r){var s=[],u=C.path(e,r);for(var[l,c]of W.levels(e,u))if(i(l,c)&&(s.push([l,c]),!o&&K.isElement(l)&&C.isVoid(e,l)))break;n&&s.reverse(),yield*s}}var DX=["text"],SX=["text"],EX=function(t){var{marks:r,selection:n}=t;if(!n)return null;if(r)return r;if(R.isExpanded(n)){var[o]=C.nodes(t,{match:Y.isText});if(o){var[i]=o,s=On(i,DX);return s}else return{}}var{anchor:u}=n,{path:l}=u,[c]=C.leaf(t,l);if(u.offset===0){var p=C.previous(t,{at:l,match:Y.isText}),d=C.above(t,{match:b=>K.isElement(b)&&C.isVoid(t,b)&&t.markableVoid(b)});if(!d){var h=C.above(t,{match:b=>K.isElement(b)&&C.isBlock(t,b)});if(p&&h){var[g,v]=p,[,m]=h;P.isAncestor(m,v)&&(c=g)}}}var y=On(c,SX);return y},TX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:i,at:s=t.selection}=r;if(s){var u=C.after(t,s,{voids:o});if(u){var[,l]=C.last(t,[]),c=[u.path,l];if(P.isPath(s)&&s.length===0)throw new Error("Cannot get the next node from the root node!");if(i==null)if(P.isPath(s)){var[p]=C.parent(t,s);i=h=>p.children.includes(h)}else i=()=>!0;var[d]=C.nodes(t,{at:c,match:i,mode:n,voids:o});return d}}},PX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),i=W.get(t,o);return[i,o]};function*AX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:s=!1,ignoreNonSelectable:u=!1}=t,{match:l}=t;if(l||(l=()=>!0),!!r){var c,p;if(mq.isSpan(r))c=r[0],p=r[1];else{var d=C.path(e,r,{edge:"start"}),h=C.path(e,r,{edge:"end"});c=i?h:d,p=i?d:h}var g=W.nodes(e,{reverse:i,from:c,to:p,pass:D=>{var[E]=D;return K.isElement(E)?!!(!s&&(C.isVoid(e,E)||C.isElementReadOnly(e,E))||u&&!C.isSelectable(e,E)):!1}}),v=[],m;for(var[y,b]of g)if(!(u&&K.isElement(y)&&!C.isSelectable(e,y))){var x=m&&P.compare(b,m[1])===0;if(!(n==="highest"&&x)){if(!l(y,b)){if(o&&!x&&Y.isText(y))return;continue}if(n==="lowest"&&x){m=[y,b];continue}var w=n==="lowest"?m:[y,b];w&&(o?v.push(w):yield w),m=[y,b]}}n==="lowest"&&m&&(o?v.push(m):yield m),o&&(yield*v)}}var OX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:o}=r,i=p=>xp.get(p)||[],s=p=>wp.get(p)||new Set,u=p=>{var d=i(p).pop(),h=d.join(",");return s(p).delete(h),d};if(C.isNormalizing(t)){if(n){var l=Array.from(W.nodes(t),p=>{var[,d]=p;return d}),c=new Set(l.map(p=>p.join(",")));xp.set(t,l),wp.set(t,c)}i(t).length!==0&&C.withoutNormalizing(t,()=>{for(var p of i(t))if(W.has(t,p)){var d=C.node(t,p),[h,g]=d;K.isElement(h)&&h.children.length===0&&t.normalizeNode(d,{operation:o})}for(var v=i(t),m=v.length,y=0;v.length!==0;){if(!t.shouldNormalize({dirtyPaths:v,iteration:y,initialDirtyPathsLength:m,operation:o}))return;var b=u(t);if(W.has(t,b)){var x=C.node(t,b);t.normalizeNode(x,{operation:o})}y++,v=i(t)}})}},FX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),i=P.parent(o),s=C.node(t,i);return s},BX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,i={current:r,affinity:o,unref(){var{current:u}=i,l=C.pathRefs(t);return l.delete(i),i.current=null,u}},s=C.pathRefs(t);return s.add(i),i},$X=e=>{var t=AD.get(e);return t||(t=new Set,AD.set(e,t)),t},RX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:i}=n;if(P.isPath(r)){if(i==="start"){var[,s]=W.first(t,r);r=s}else if(i==="end"){var[,u]=W.last(t,r);r=u}}return R.isRange(r)&&(i==="start"?r=R.start(r):i==="end"?r=R.end(r):r=P.common(r.anchor.path,r.focus.path)),ve.isPoint(r)&&(r=r.path),o!=null&&(r=r.slice(0,o)),r},MX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,i={current:r,affinity:o,unref(){var{current:u}=i,l=C.pointRefs(t);return l.delete(i),i.current=null,u}},s=C.pointRefs(t);return s.add(i),i},IX=e=>{var t=OD.get(e);return t||(t=new Set,OD.set(e,t)),t},kX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=n;if(P.isPath(r)){var i;if(o==="end"){var[,s]=W.last(t,r);i=s}else{var[,u]=W.first(t,r);i=u}var l=W.get(t,i);if(!Y.isText(l))throw new Error("Cannot get the ".concat(o," point in the node at path [").concat(r,"] because it has no ").concat(o," text node."));return{path:i,offset:o==="end"?l.text.length:0}}if(R.isRange(r)){var[c,p]=R.edges(r);return o==="start"?c:p}return r};function*VX(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1,ignoreNonSelectable:s=!1}=t;if(!r)return;var u=C.range(e,r),[l,c]=R.edges(u),p=o?c:l,d=!1,h="",g=0,v=0,m=0;for(var[y,b]of C.nodes(e,{at:r,reverse:o,voids:i,ignoreNonSelectable:s})){if(K.isElement(y)){if(!i&&(e.isVoid(y)||e.isElementReadOnly(y))){yield C.start(e,b);continue}if(e.isInline(y))continue;if(C.hasInlines(e,y)){var x=P.isAncestor(b,c.path)?c:C.end(e,b),w=P.isAncestor(b,l.path)?l:C.start(e,b);h=C.string(e,{anchor:w,focus:x},{voids:i}),d=!0}}if(Y.isText(y)){var D=P.equals(b,p.path);for(D?(v=o?p.offset:y.text.length-p.offset,m=p.offset):(v=y.text.length,m=o?v:0),(D||d||n==="offset")&&(yield{path:b,offset:m},d=!1);;){if(g===0){if(h==="")break;g=E(h,n,o),h=A2(h,g,o)[1]}if(m=o?m-g:m+g,v=v-g,v<0){g=-v;break}g=0,yield{path:b,offset:m}}}}function E(S,T,O){return T==="character"?P2(S,O):T==="word"?Cq(S,O):T==="line"||T==="block"?S.length:1}}var NX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:i,at:s=t.selection}=r;if(s){var u=C.before(t,s,{voids:o});if(u){var[,l]=C.first(t,[]),c=[u.path,l];if(P.isPath(s)&&s.length===0)throw new Error("Cannot get the previous node from the root node!");if(i==null)if(P.isPath(s)){var[p]=C.parent(t,s);i=h=>p.children.includes(h)}else i=()=>!0;var[d]=C.nodes(t,{reverse:!0,at:c,match:i,mode:n,voids:o});return d}}},LX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,i={current:r,affinity:o,unref(){var{current:u}=i,l=C.rangeRefs(t);return l.delete(i),i.current=null,u}},s=C.rangeRefs(t);return s.add(i),i},zX=e=>{var t=FD.get(e);return t||(t=new Set,FD.set(e,t)),t},HX=(e,t,r)=>{if(R.isRange(t)&&!r)return t;var n=C.start(e,t),o=C.end(e,r||t);return{anchor:n,focus:o}};function eS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function GX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jX=(e,t)=>{var{selection:r}=e;if(r){var n=(p,d)=>{if(!Y.isText(p))return!1;var[h,g]=C.parent(e,d);return!e.isVoid(h)||e.markableVoid(h)},o=R.isExpanded(r),i=!1;if(!o){var[s,u]=C.node(e,r);if(s&&n(s,u)){var[l]=C.parent(e,u);i=l&&e.markableVoid(l)}}if(o||i)N.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var c=GX({},C.marks(e)||{});delete c[t],e.marks=c,bu.get(e)||e.onChange()}}},_X=(e,t)=>{iS.set(e,t)},WX=(e,t)=>C.point(e,t,{edge:"start"}),UX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,i=C.range(t,r),[s,u]=R.edges(i),l="";for(var[c,p]of C.nodes(t,{at:i,match:Y.isText,voids:o})){var d=c.text;P.equals(p,u.path)&&(d=d.slice(0,u.offset)),P.equals(p,s.path)&&(d=d.slice(s.offset)),l+=d}return l},KX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,[i,s]=R.edges(r);if(i.offset!==0||s.offset!==0||R.isCollapsed(r)||P.hasPrevious(s.path))return r;var u=C.above(t,{at:s,match:v=>K.isElement(v)&&C.isBlock(t,v),voids:o}),l=u?u[1]:[],c=C.start(t,i),p={anchor:c,focus:s},d=!0;for(var[h,g]of C.nodes(t,{at:p,match:Y.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(h.text!==""||P.isBefore(g,l)){s={path:g,offset:h.text.length};break}}return{anchor:i,focus:s}},qX=(e,t)=>{var r=C.isNormalizing(e);C.setNormalizing(e,!1);try{t()}finally{C.setNormalizing(e,r)}C.normalize(e)},XX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var n,o,{reverse:i=!1,unit:s="character",distance:u=1,voids:l=!1}=r,{at:c=t.selection,hanging:p=!1}=r;if(c){var d=!1;if(R.isRange(c)&&R.isCollapsed(c)&&(d=!0,c=c.anchor),ve.isPoint(c)){var h=C.void(t,{at:c,mode:"highest"});if(!l&&h){var[,g]=h;c=g}else{var v={unit:s,distance:u},m=i?C.before(t,c,v)||C.start(t,[]):C.after(t,c,v)||C.end(t,[]);c={anchor:c,focus:m},p=!0}}if(P.isPath(c)){N.removeNodes(t,{at:c,voids:l});return}if(!R.isCollapsed(c)){if(!p){var[,y]=R.edges(c),b=C.end(t,[]);ve.equals(y,b)||(c=C.unhangRange(t,c,{voids:l}))}var[x,w]=R.edges(c),D=C.above(t,{match:Ce=>K.isElement(Ce)&&C.isBlock(t,Ce),at:x,voids:l}),E=C.above(t,{match:Ce=>K.isElement(Ce)&&C.isBlock(t,Ce),at:w,voids:l}),S=D&&E&&!P.equals(D[1],E[1]),T=P.equals(x.path,w.path),O=l?null:(n=C.void(t,{at:x,mode:"highest"}))!==null&&n!==void 0?n:C.elementReadOnly(t,{at:x,mode:"highest"}),F=l?null:(o=C.void(t,{at:w,mode:"highest"}))!==null&&o!==void 0?o:C.elementReadOnly(t,{at:w,mode:"highest"});if(O){var I=C.before(t,x);I&&D&&P.isAncestor(D[1],I.path)&&(x=I)}if(F){var G=C.after(t,w);G&&E&&P.isAncestor(E[1],G.path)&&(w=G)}var k=[],H;for(var V of C.nodes(t,{at:c,voids:l})){var[M,Z]=V;H&&P.compare(Z,H)===0||(!l&&K.isElement(M)&&(C.isVoid(t,M)||C.isElementReadOnly(t,M))||!P.isCommon(Z,x.path)&&!P.isCommon(Z,w.path))&&(k.push(V),H=Z)}var re=Array.from(k,Ce=>{var[,je]=Ce;return C.pathRef(t,je)}),se=C.pointRef(t,x),j=C.pointRef(t,w),ne="";if(!T&&!O){var ce=se.current,[pe]=C.leaf(t,ce),{path:$e}=ce,{offset:A}=x,_=pe.text.slice(A);_.length>0&&(t.apply({type:"remove_text",path:$e,offset:A,text:_}),ne=_)}if(re.reverse().map(Ce=>Ce.unref()).filter(Ce=>Ce!==null).forEach(Ce=>N.removeNodes(t,{at:Ce,voids:l})),!F){var z=j.current,[U]=C.leaf(t,z),{path:ue}=z,Q=T?x.offset:0,he=U.text.slice(Q,w.offset);he.length>0&&(t.apply({type:"remove_text",path:ue,offset:Q,text:he}),ne=he)}!T&&S&&j.current&&se.current&&N.mergeNodes(t,{at:j.current,hanging:!0,voids:l}),d&&i&&s==="character"&&ne.length>1&&ne.match(/[\u0E00-\u0E7F]+/)&&N.insertText(t,ne.slice(0,ne.length-u));var we=se.unref(),Se=j.unref(),Ae=i?we||Se:Se||we;r.at==null&&Ae&&N.select(t,Ae)}}})},YX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:i=!1}=n,{at:s=T2(t)}=n;if(r.length){if(R.isRange(s))if(o||(s=C.unhangRange(t,s,{voids:i})),R.isCollapsed(s))s=s.anchor;else{var[,u]=R.edges(s);if(!i&&C.void(t,{at:u}))return;var l=C.pointRef(t,u);N.delete(t,{at:s}),s=l.unref()}else P.isPath(s)&&(s=C.start(t,s));if(!(!i&&C.void(t,{at:s}))){var c=C.above(t,{at:s,match:A=>K.isElement(A)&&C.isInline(t,A),mode:"highest",voids:i});if(c){var[,p]=c;if(C.isEnd(t,s,p)){var d=C.after(t,p);s=d}else if(C.isStart(t,s,p)){var h=C.before(t,p);s=h}}var g=C.above(t,{match:A=>K.isElement(A)&&C.isBlock(t,A),at:s,voids:i}),[,v]=g,m=C.isStart(t,s,v),y=C.isEnd(t,s,v),b=m&&y,x=!m||m&&y,w=!y,[,D]=W.first({children:r},[]),[,E]=W.last({children:r},[]),S=[],T=A=>{var[_,z]=A,U=z.length===0;return U?!1:b?!0:!(x&&P.isAncestor(z,D)&&K.isElement(_)&&!t.isVoid(_)&&!t.isInline(_)||w&&P.isAncestor(z,E)&&K.isElement(_)&&!t.isVoid(_)&&!t.isInline(_))};for(var O of W.nodes({children:r},{pass:T}))T(O)&&S.push(O);var F=[],I=[],G=[],k=!0,H=!1;for(var[V]of S)K.isElement(V)&&!t.isInline(V)?(k=!1,H=!0,I.push(V)):k?F.push(V):G.push(V);var[M]=C.nodes(t,{at:s,match:A=>Y.isText(A)||C.isInline(t,A),mode:"highest",voids:i}),[,Z]=M,re=C.isStart(t,s,Z),se=C.isEnd(t,s,Z),j=C.pathRef(t,y&&!G.length?P.next(v):v),ne=C.pathRef(t,se?P.next(Z):Z);N.splitNodes(t,{at:s,match:A=>H?K.isElement(A)&&C.isBlock(t,A):Y.isText(A)||C.isInline(t,A),mode:H?"lowest":"highest",always:H&&(!m||F.length>0)&&(!y||G.length>0),voids:i});var ce=C.pathRef(t,!re||re&&se?P.next(Z):Z);if(N.insertNodes(t,F,{at:ce.current,match:A=>Y.isText(A)||C.isInline(t,A),mode:"highest",voids:i}),b&&!F.length&&I.length&&!G.length&&N.delete(t,{at:v,voids:i}),N.insertNodes(t,I,{at:j.current,match:A=>K.isElement(A)&&C.isBlock(t,A),mode:"lowest",voids:i}),N.insertNodes(t,G,{at:ne.current,match:A=>Y.isText(A)||C.isInline(t,A),mode:"highest",voids:i}),!n.at){var pe;if(G.length>0&&ne.current?pe=P.previous(ne.current):I.length>0&&j.current?pe=P.previous(j.current):ce.current&&(pe=P.previous(ce.current)),pe){var $e=C.end(t,pe);N.select(t,$e)}}ce.unref(),j.unref(),ne.unref()}}})},JX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:n="anchor"}=r,{selection:o}=t;if(o){if(n==="anchor")N.select(t,o.anchor);else if(n==="focus")N.select(t,o.focus);else if(n==="start"){var[i]=R.edges(o);N.select(t,i)}else if(n==="end"){var[,s]=R.edges(o);N.select(t,s)}}else return},ZX=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},QX=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:o=1,unit:i="character",reverse:s=!1}=r,{edge:u=null}=r;if(n){u==="start"&&(u=R.isBackward(n)?"focus":"anchor"),u==="end"&&(u=R.isBackward(n)?"anchor":"focus");var{anchor:l,focus:c}=n,p={distance:o,unit:i,ignoreNonSelectable:!0},d={};if(u==null||u==="anchor"){var h=s?C.before(t,l,p):C.after(t,l,p);h&&(d.anchor=h)}if(u==null||u==="focus"){var g=s?C.before(t,c,p):C.after(t,c,p);g&&(d.focus=g)}N.setSelection(t,d)}},eY=(e,t)=>{var{selection:r}=e;if(t=C.range(e,t),r){N.setSelection(e,t);return}if(!R.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(ot.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})};function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function rS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var tY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:i="both"}=n;if(o){i==="start"&&(i=R.isBackward(o)?"focus":"anchor"),i==="end"&&(i=R.isBackward(o)?"anchor":"focus");var{anchor:s,focus:u}=o,l=i==="anchor"?s:u;N.setSelection(t,{[i==="anchor"?"anchor":"focus"]:rS(rS({},l),r)})}},rY=(e,t)=>{var{selection:r}=e,n={},o={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!ve.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!ve.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}},nY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:i=!1,mode:s="lowest"}=n,{at:u,match:l,select:c}=n;if(W.isNode(r)&&(r=[r]),r.length!==0){var[p]=r;if(u||(u=T2(t),c=!0),c==null&&(c=!1),R.isRange(u))if(o||(u=C.unhangRange(t,u,{voids:i})),R.isCollapsed(u))u=u.anchor;else{var[,d]=R.edges(u),h=C.pointRef(t,d);N.delete(t,{at:u}),u=h.unref()}if(ve.isPoint(u)){l==null&&(Y.isText(p)?l=T=>Y.isText(T):t.isInline(p)?l=T=>Y.isText(T)||C.isInline(t,T):l=T=>K.isElement(T)&&C.isBlock(t,T));var[g]=C.nodes(t,{at:u.path,match:l,mode:s,voids:i});if(g){var[,v]=g,m=C.pathRef(t,v),y=C.isEnd(t,u,v);N.splitNodes(t,{at:u,match:l,mode:s,voids:i});var b=m.unref();u=y?P.next(b):b}else return}var x=P.parent(u),w=u[u.length-1];if(!(!i&&C.void(t,{at:x}))){for(var D of r){var E=x.concat(w);w++,t.apply({type:"insert_node",path:E,node:D}),u=P.next(u)}if(u=P.previous(u),c){var S=C.end(t,u);S&&N.select(t,S)}}}})},oY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{at:n=t.selection,mode:o="lowest",voids:i=!1}=r,{match:s}=r;if(s==null&&(s=P.isPath(n)?Na(t,n):D=>K.isElement(D)&&C.isBlock(t,D)),!!n){var u=C.nodes(t,{at:n,match:s,mode:o,voids:i}),l=Array.from(u,D=>{var[,E]=D;return C.pathRef(t,E)});for(var c of l){var p=c.unref();if(p.length<2)throw new Error("Cannot lift node at a path [".concat(p,"] because it has a depth of less than `2`."));var d=C.node(t,P.parent(p)),[h,g]=d,v=p[p.length-1],{length:m}=h.children;if(m===1){var y=P.next(g);N.moveNodes(t,{at:p,to:y,voids:i}),N.removeNodes(t,{at:g,voids:i})}else if(v===0)N.moveNodes(t,{at:p,to:g,voids:i});else if(v===m-1){var b=P.next(g);N.moveNodes(t,{at:p,to:b,voids:i})}else{var x=P.next(p),w=P.next(g);N.splitNodes(t,{at:x,voids:i}),N.moveNodes(t,{at:p,to:w,voids:i})}}}})},iY=["text"],aY=["children"],sS=(e,t)=>{if(K.isElement(t)){var r=t;return C.isVoid(e,t)?!0:r.children.length===1?sS(e,r.children[0]):!1}else return!C.isEditor(t)},sY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{match:n,at:o=t.selection}=r,{hanging:i=!1,voids:s=!1,mode:u="lowest"}=r;if(o){if(n==null)if(P.isPath(o)){var[l]=C.parent(t,o);n=I=>l.children.includes(I)}else n=I=>K.isElement(I)&&C.isBlock(t,I);if(!i&&R.isRange(o)&&(o=C.unhangRange(t,o,{voids:s})),R.isRange(o))if(R.isCollapsed(o))o=o.anchor;else{var[,c]=R.edges(o),p=C.pointRef(t,c);N.delete(t,{at:o}),o=p.unref(),r.at==null&&N.select(t,o)}var[d]=C.nodes(t,{at:o,match:n,voids:s,mode:u}),h=C.previous(t,{at:o,match:n,voids:s,mode:u});if(!(!d||!h)){var[g,v]=d,[m,y]=h;if(!(v.length===0||y.length===0)){var b=P.next(y),x=P.common(v,y),w=P.isSibling(v,y),D=Array.from(C.levels(t,{at:v}),I=>{var[G]=I;return G}).slice(x.length).slice(0,-1),E=C.above(t,{at:v,mode:"highest",match:I=>D.includes(I)&&sS(t,I)}),S=E&&C.pathRef(t,E[1]),T,O;if(Y.isText(g)&&Y.isText(m)){var F=On(g,iY);O=m.text.length,T=F}else if(K.isElement(g)&&K.isElement(m)){var F=On(g,aY);O=m.children.length,T=F}else throw new Error("Cannot merge the node at path [".concat(v,"] with the previous sibling because it is not the same kind: ").concat(ot.stringify(g)," ").concat(ot.stringify(m)));w||N.moveNodes(t,{at:v,to:b,voids:s}),S&&N.removeNodes(t,{at:S.current,voids:s}),K.isElement(m)&&C.isEmpty(t,m)||Y.isText(m)&&m.text===""&&y[y.length-1]!==0?N.removeNodes(t,{at:y,voids:s}):t.apply({type:"merge_node",path:b,position:O,properties:T}),S&&S.unref()}}}})},uY=(e,t)=>{C.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:s}=t;if(n){s==null&&(s=P.isPath(n)?Na(e,n):g=>K.isElement(g)&&C.isBlock(e,g));var u=C.pathRef(e,r),l=C.nodes(e,{at:n,match:s,mode:o,voids:i}),c=Array.from(l,g=>{var[,v]=g;return C.pathRef(e,v)});for(var p of c){var d=p.unref(),h=u.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:h}),u.current&&P.isSibling(h,d)&&P.isAfter(h,d)&&(u.current=P.next(u.current))}u.unref()}})},lY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=P.isPath(s)?Na(t,s):g=>K.isElement(g)&&C.isBlock(t,g)),!n&&R.isRange(s)&&(s=C.unhangRange(t,s,{voids:o}));var l=C.nodes(t,{at:s,match:u,mode:i,voids:o}),c=Array.from(l,g=>{var[,v]=g;return C.pathRef(t,v)});for(var p of c){var d=p.unref();if(d){var[h]=C.node(t,d);t.apply({type:"remove_node",path:d,node:h})}}}})},cY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:o,at:i=t.selection,compare:s,merge:u}=n,{hanging:l=!1,mode:c="lowest",split:p=!1,voids:d=!1}=n;if(i){if(o==null&&(o=P.isPath(i)?Na(t,i):O=>K.isElement(O)&&C.isBlock(t,O)),!l&&R.isRange(i)&&(i=C.unhangRange(t,i,{voids:d})),p&&R.isRange(i)){if(R.isCollapsed(i)&&C.leaf(t,i.anchor)[0].text.length>0)return;var h=C.rangeRef(t,i,{affinity:"inward"}),[g,v]=R.edges(i),m=c==="lowest"?"lowest":"highest",y=C.isEnd(t,v,v.path);N.splitNodes(t,{at:v,match:o,mode:m,voids:d,always:!y});var b=C.isStart(t,g,g.path);N.splitNodes(t,{at:g,match:o,mode:m,voids:d,always:!b}),i=h.unref(),n.at==null&&N.select(t,i)}s||(s=(O,F)=>O!==F);for(var[x,w]of C.nodes(t,{at:i,match:o,mode:c,voids:d})){var D={},E={};if(w.length!==0){var S=!1;for(var T in r)T==="children"||T==="text"||s(r[T],x[T])&&(S=!0,x.hasOwnProperty(T)&&(D[T]=x[T]),u?r[T]!=null&&(E[T]=u(x[T],r[T])):r[T]!=null&&(E[T]=r[T]));S&&t.apply({type:"set_node",path:w,properties:D,newProperties:E})}}}})},fY=(e,t)=>{if(R.isCollapsed(t))return t.anchor;var[,r]=R.edges(t),n=C.pointRef(e,r);return N.delete(e,{at:t}),n.unref()},pY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",voids:o=!1}=r,{match:i,at:s=t.selection,height:u=0,always:l=!1}=r;if(i==null&&(i=j=>K.isElement(j)&&C.isBlock(t,j)),R.isRange(s)&&(s=fY(t,s)),P.isPath(s)){var c=s,p=C.point(t,c),[d]=C.parent(t,c);i=j=>j===d,u=p.path.length-c.length+1,s=p,l=!0}if(s){var h=C.pointRef(t,s,{affinity:"backward"}),g;try{var[v]=C.nodes(t,{at:s,match:i,mode:n,voids:o});if(!v)return;var m=C.void(t,{at:s,mode:"highest"}),y=0;if(!o&&m){var[b,x]=m;if(K.isElement(b)&&t.isInline(b)){var w=C.after(t,x);if(!w){var D={text:""},E=P.next(x);N.insertNodes(t,D,{at:E,voids:o}),w=C.point(t,E)}s=w,l=!0}var S=s.path.length-x.length;u=S+1,l=!0}g=C.pointRef(t,s);var T=s.path.length-u,[,O]=v,F=s.path.slice(0,T),I=u===0?s.offset:s.path[T]+y;for(var[G,k]of C.levels(t,{at:F,reverse:!0,voids:o})){var H=!1;if(k.length<O.length||k.length===0||!o&&K.isElement(G)&&C.isVoid(t,G))break;var V=h.current,M=C.isEnd(t,V,k);if(l||!h||!C.isEdge(t,V,k)){H=!0;var Z=W.extractProps(G);t.apply({type:"split_node",path:k,position:I,properties:Z})}I=k[k.length-1]+(H||M?1:0)}if(r.at==null){var re=g.current||C.end(t,[]);N.select(t,re)}}finally{var se;h.unref(),(se=g)===null||se===void 0||se.unref()}}})},dY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var o={};for(var i of r)o[i]=null;N.setNodes(t,o,n)},mY=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=P.isPath(s)?Na(t,s):g=>K.isElement(g)&&C.isBlock(t,g)),P.isPath(s)&&(s=C.range(t,s));var l=R.isRange(s)?C.rangeRef(t,s):null,c=C.nodes(t,{at:s,match:u,mode:n,voids:i}),p=Array.from(c,g=>{var[,v]=g;return C.pathRef(t,v)}).reverse(),d=function(v){var m=v.unref(),[y]=C.node(t,m),b=C.range(t,m);o&&l&&(b=R.intersection(l.current,b)),N.liftNodes(t,{at:b,match:x=>K.isAncestor(y)&&y.children.includes(x),voids:i})};for(var h of p)d(h);l&&l.unref()}})};function nS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function oS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){$t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var hY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:o="lowest",split:i=!1,voids:s=!1}=n,{match:u,at:l=t.selection}=n;if(l){if(u==null&&(P.isPath(l)?u=Na(t,l):t.isInline(r)?u=b=>K.isElement(b)&&C.isInline(t,b)||Y.isText(b):u=b=>K.isElement(b)&&C.isBlock(t,b)),i&&R.isRange(l)){var[c,p]=R.edges(l),d=C.rangeRef(t,l,{affinity:"inward"});N.splitNodes(t,{at:p,match:u,voids:s}),N.splitNodes(t,{at:c,match:u,voids:s}),l=d.unref(),n.at==null&&N.select(t,l)}var h=Array.from(C.nodes(t,{at:l,match:t.isInline(r)?b=>K.isElement(b)&&C.isBlock(t,b):b=>C.isEditor(b),mode:"lowest",voids:s}));for(var[,g]of h){var v=R.isRange(l)?R.intersection(l,C.range(t,g)):l;if(v){var m=Array.from(C.nodes(t,{at:v,match:u,mode:o,voids:s}));if(m.length>0){var y=function(){var[b]=m,x=m[m.length-1],[,w]=b,[,D]=x;if(w.length===0&&D.length===0)return"continue";var E=P.equals(w,D)?P.parent(w):P.common(w,D),S=C.range(t,w,D),T=C.node(t,E),[O]=T,F=E.length+1,I=P.next(D.slice(0,F)),G=oS(oS({},r),{},{children:[]});N.insertNodes(t,G,{at:I,voids:s}),N.moveNodes(t,{at:S,match:k=>K.isAncestor(O)&&O.children.includes(k),to:I.concat(0),voids:s})}();if(y==="continue")continue}}}}})},Dp=()=>{var e={children:[],operations:[],selection:null,marks:null,isElementReadOnly:()=>!1,isInline:()=>!1,isSelectable:()=>!0,isVoid:()=>!1,markableVoid:()=>!1,onChange:()=>{},apply:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Hq(e,...n)},addMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Kq(e,...n)},deleteBackward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Yq(e,...n)},deleteForward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Jq(e,...n)},deleteFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Zq(e,...n)},getFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jq(e,...n)},insertBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lX(e,...n)},insertSoftBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return fX(e,...n)},insertFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return YX(e,...n)},insertNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cX(e,...n)},insertText:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dX(e,...n)},normalizeNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _q(e,...n)},removeMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jX(e,...n)},getDirtyPaths:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Gq(e,...n)},shouldNormalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Wq(e,...n)},above:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Uq(e,...n)},after:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qq(e,...n)},before:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Xq(e,...n)},collapse:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return JX(e,...n)},delete:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return XX(e,...n)},deselect:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ZX(e,...n)},edges:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Qq(e,...n)},elementReadOnly:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return eX(e,...n)},end:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return tX(e,...n)},first:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return rX(e,...n)},fragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nX(e,...n)},getMarks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EX(e,...n)},hasBlocks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return iX(e,...n)},hasInlines:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return aX(e,...n)},hasPath:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sX(e,...n)},hasTexts:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return uX(e,...n)},insertNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nY(e,...n)},isBlock:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return mX(e,...n)},isEdge:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hX(e,...n)},isEmpty:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return gX(e,...n)},isEnd:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return vX(e,...n)},isNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yX(e,...n)},isStart:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bX(e,...n)},last:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return CX(e,...n)},leaf:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xX(e,...n)},levels:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return wX(e,...n)},liftNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return oY(e,...n)},mergeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sY(e,...n)},move:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return QX(e,...n)},moveNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return uY(e,...n)},next:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return TX(e,...n)},node:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PX(e,...n)},nodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return AX(e,...n)},normalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OX(e,...n)},parent:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FX(e,...n)},path:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return RX(e,...n)},pathRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return BX(e,...n)},pathRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return $X(e,...n)},point:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return kX(e,...n)},pointRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return MX(e,...n)},pointRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return IX(e,...n)},positions:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return VX(e,...n)},previous:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return NX(e,...n)},range:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HX(e,...n)},rangeRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LX(e,...n)},rangeRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zX(e,...n)},removeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lY(e,...n)},select:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return eY(e,...n)},setNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cY(e,...n)},setNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _X(e,...n)},setPoint:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return tY(e,...n)},setSelection:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return rY(e,...n)},splitNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return pY(e,...n)},start:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return WX(e,...n)},string:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return UX(e,...n)},unhangRange:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return KX(e,...n)},unsetNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dY(e,...n)},unwrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return mY(e,...n)},void:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return oX(e,...n)},withoutNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qX(e,...n)},wrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hY(e,...n)}};return e};a();a();a();a();a();a();a();var yr=[];var uS=function(){return yr.some(function(e){return e.activeTargets.length>0})};a();var lS=function(){return yr.some(function(e){return e.skippedTargets.length>0})};a();var cS="ResizeObserver loop completed with undelivered notifications.",fS=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:cS}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=cS),window.dispatchEvent(e)};a();a();a();a();var ai;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ai||(ai={}));a();a();var Er=function(e){return Object.freeze(e)};var O2=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Er(this)}return e}();a();var F2=function(){function e(t,r,n,o){return this.x=t,this.y=r,this.width=n,this.height=o,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Er(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,i=t.right,s=t.bottom,u=t.left,l=t.width,c=t.height;return{x:r,y:n,top:o,right:i,bottom:s,left:u,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}();a();var Cu=function(e){return e instanceof SVGElement&&"getBBox"in e},Sp=function(e){if(Cu(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,i=o.offsetWidth,s=o.offsetHeight;return!(i||s||e.getClientRects().length)},B2=function(e){var t;if(e instanceof Element)return!0;var r=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},pS=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1};a();var si=typeof window<"u"?window:{};var Ep=new WeakMap,dS=/auto|scroll/,gY=/^tb|vertical/,vY=/msie|trident/i.test(si.navigator&&si.navigator.userAgent),Kr=function(e){return parseFloat(e||"0")},La=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new O2((r?t:e)||0,(r?e:t)||0)},mS=Er({devicePixelContentBoxSize:La(),borderBoxSize:La(),contentBoxSize:La(),contentRect:new F2(0,0,0,0)}),$2=function(e,t){if(t===void 0&&(t=!1),Ep.has(e)&&!t)return Ep.get(e);if(Sp(e))return Ep.set(e,mS),mS;var r=getComputedStyle(e),n=Cu(e)&&e.ownerSVGElement&&e.getBBox(),o=!vY&&r.boxSizing==="border-box",i=gY.test(r.writingMode||""),s=!n&&dS.test(r.overflowY||""),u=!n&&dS.test(r.overflowX||""),l=n?0:Kr(r.paddingTop),c=n?0:Kr(r.paddingRight),p=n?0:Kr(r.paddingBottom),d=n?0:Kr(r.paddingLeft),h=n?0:Kr(r.borderTopWidth),g=n?0:Kr(r.borderRightWidth),v=n?0:Kr(r.borderBottomWidth),m=n?0:Kr(r.borderLeftWidth),y=d+c,b=l+p,x=m+g,w=h+v,D=u?e.offsetHeight-w-e.clientHeight:0,E=s?e.offsetWidth-x-e.clientWidth:0,S=o?y+x:0,T=o?b+w:0,O=n?n.width:Kr(r.width)-S-E,F=n?n.height:Kr(r.height)-T-D,I=O+y+E+x,G=F+b+D+w,k=Er({devicePixelContentBoxSize:La(Math.round(O*devicePixelRatio),Math.round(F*devicePixelRatio),i),borderBoxSize:La(I,G,i),contentBoxSize:La(O,F,i),contentRect:new F2(d,l,O,F)});return Ep.set(e,k),k},Tp=function(e,t,r){var n=$2(e,r),o=n.borderBoxSize,i=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case ai.DEVICE_PIXEL_CONTENT_BOX:return s;case ai.BORDER_BOX:return o;default:return i}};var R2=function(){function e(t){var r=$2(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Er([r.borderBoxSize]),this.contentBoxSize=Er([r.contentBoxSize]),this.devicePixelContentBoxSize=Er([r.devicePixelContentBoxSize])}return e}();a();var Pp=function(e){if(Sp(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t};var hS=function(){var e=1/0,t=[];yr.forEach(function(s){if(s.activeTargets.length!==0){var u=[];s.activeTargets.forEach(function(c){var p=new R2(c.target),d=Pp(c.target);u.push(p),c.lastReportedSize=Tp(c.target,c.observedBox),d<e&&(e=d)}),t.push(function(){s.callback.call(s.observer,u,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var o=n[r];o()}return e};a();var M2=function(e){yr.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(Pp(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})};var gS=function(){var e=0;for(M2(e);uS();)e=hS(),M2(e);return lS()&&fS(),e>0};a();a();var I2,vS=[],yY=function(){return vS.splice(0).forEach(function(e){return e()})},yS=function(e){if(!I2){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return yY()}).observe(r,n),I2=function(){r.textContent="".concat(t?t--:t++)}}vS.push(e),I2()};var bS=function(e){yS(function(){requestAnimationFrame(e)})};var Ap=0,bY=function(){return!!Ap},CY=250,xY={attributes:!0,characterData:!0,childList:!0,subtree:!0},CS=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],xS=function(e){return e===void 0&&(e=0),Date.now()+e},k2=!1,wY=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=CY),!k2){k2=!0;var n=xS(t);bS(function(){var o=!1;try{o=gS()}finally{if(k2=!1,t=n-xS(),!bY())return;o?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,xY)};document.body?r():si.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),CS.forEach(function(r){return si.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),CS.forEach(function(r){return si.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),Op=new wY,V2=function(e){!Ap&&e>0&&Op.start(),Ap+=e,!Ap&&Op.stop()};a();var DY=function(e){return!Cu(e)&&!pS(e)&&getComputedStyle(e).display==="inline"},wS=function(){function e(t,r){this.target=t,this.observedBox=r||ai.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Tp(this.target,this.observedBox,!0);return DY(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}();a();var DS=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}();var Fp=new WeakMap,SS=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},xu=function(){function e(){}return e.connect=function(t,r){var n=new DS(t,r);Fp.set(t,n)},e.observe=function(t,r,n){var o=Fp.get(t),i=o.observationTargets.length===0;SS(o.observationTargets,r)<0&&(i&&yr.push(o),o.observationTargets.push(new wS(r,n&&n.box)),V2(1),Op.schedule())},e.unobserve=function(t,r){var n=Fp.get(t),o=SS(n.observationTargets,r),i=n.observationTargets.length===1;o>=0&&(i&&yr.splice(yr.indexOf(n),1),n.observationTargets.splice(o,1),V2(-1))},e.disconnect=function(t){var r=this,n=Fp.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}();var N2=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");xu.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!B2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");xu.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!B2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");xu.unobserve(this,t)},e.prototype.disconnect=function(){xu.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();var Mp=dr(OS());import RY from"react-dom";function Lp(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MY(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ga(e,t){if(e==null)return{};var r=MY(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Y2=pi(null),bo=()=>{var e=_a(Y2);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},WS=parseInt(me.version.split(".")[0],10),IY=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,FS=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),qt=typeof navigator<"u"&&/Android/.test(navigator.userAgent),Su=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Du=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),kY=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),US=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),VY=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),NY=qt&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),LY=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),zY=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),HY=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Ip=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ho=(!VY||!NY)&&!kY&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",J2=new WeakMap,Z2=new WeakMap,KS=new WeakMap,kp=new WeakMap,G2=new WeakMap,Tu=new WeakMap,ci=new WeakMap,Vp=new WeakMap,zp=new WeakMap,j2=new WeakMap,ui=new WeakMap,li=new WeakMap,Eu=new WeakMap,_2=new WeakMap,Q2=new WeakMap,Tr=new WeakMap,Fn=new WeakMap,Kt=new WeakMap,go=new WeakMap,vo=new WeakMap,qS=new WeakMap,ja=Symbol("placeholder"),XS=Symbol("mark-placeholder"),GY=globalThis.Text,eh=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,jY=e=>yo(e)&&e.nodeType===8,br=e=>yo(e)&&e.nodeType===1,yo=e=>{var t=eh(e);return!!t&&e instanceof t.Node},W2=e=>{var t=e&&e.anchorNode&&eh(e.anchorNode);return!!t&&e instanceof t.Selection},YS=e=>yo(e)&&e.nodeType===3,_Y=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,WY=e=>{var[t,r]=e;if(br(t)&&t.childNodes.length){var n=r===t.childNodes.length,o=n?r-1:r;for([t,o]=JS(t,o,n?"backward":"forward"),n=o<r;br(t)&&t.childNodes.length;){var i=n?t.childNodes.length-1:0;t=KY(t,i,n?"backward":"forward")}r=n&&t.textContent!=null?t.textContent.length:0}return[t,r]},UY=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},JS=(e,t,r)=>{for(var{childNodes:n}=e,o=n[t],i=t,s=!1,u=!1;(jY(o)||br(o)&&o.childNodes.length===0||br(o)&&o.getAttribute("contenteditable")==="false")&&!(s&&u);){if(i>=n.length){s=!0,i=t-1,r="backward";continue}if(i<0){u=!0,i=t+1,r="forward";continue}o=n[i],t=i,i+=r==="forward"?1:-1}return[o,t]},KY=(e,t,r)=>{var[n]=JS(e,t,r);return n},ZS=e=>{var t="";if(YS(e)&&e.nodeValue)return e.nodeValue;if(br(e)){for(var r of Array.from(e.childNodes))t+=ZS(r);var n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
|
|
1783
1782
|
`)}return t},qY=/data-slate-fragment="(.+?)"/m,XY=e=>{var t=e.getData("text/html"),[,r]=t.match(qY)||[];return r},th=(e,t,r)=>{var{target:n}=t;if(br(n)&&n.matches('[contentEditable="false"]'))return!1;var{document:o}=L.getWindow(e);if(o.contains(n))return L.hasDOMNode(e,n,{editable:!0});var i=r.find(s=>{var{addedNodes:u,removedNodes:l}=s;for(var c of u)if(c===n||c.contains(n))return!0;for(var p of l)if(p===n||p.contains(n))return!0});return!i||i===t?!1:th(e,i,r)},YY=0,U2=class{constructor(){this.id="".concat(YY++)}},L={androidPendingDiffs:e=>Kt.get(e),androidScheduleFlush:e=>{var t;(t=Q2.get(e))===null||t===void 0||t()},blur:e=>{var t=L.toDOMNode(e,e),r=L.findDocumentOrShadowRoot(e);ui.set(e,!1),r.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,r=L.findDocumentOrShadowRoot(e),n=r.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&N.deselect(e)},findDocumentOrShadowRoot:e=>{var t=L.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},findEventRange:(e,t)=>{"nativeEvent"in t&&(t=t.nativeEvent);var{clientX:r,clientY:n,target:o}=t;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var i=L.toSlateNode(e,t.target),s=L.findPath(e,i);if(K.isElement(i)&&C.isVoid(e,i)){var u=o.getBoundingClientRect(),l=e.isInline(i)?r-u.left<u.left+u.width-r:n-u.top<u.top+u.height-n,c=C.point(e,s,{edge:l?"start":"end"}),p=l?C.before(e,c):C.after(e,c);if(p){var d=C.range(e,p);return d}}var h,{document:g}=L.getWindow(e);if(g.caretRangeFromPoint)h=g.caretRangeFromPoint(r,n);else{var v=g.caretPositionFromPoint(r,n);v&&(h=g.createRange(),h.setStart(v.offsetNode,v.offset),h.setEnd(v.offsetNode,v.offset))}if(!h)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var m=L.toSlateRange(e,h,{exactMatch:!1,suppressThrow:!1});return m},findKey:(e,t)=>{var r=Vp.get(t);return r||(r=new U2,Vp.set(t,r)),r},findPath:(e,t)=>{for(var r=[],n=t;;){var o=Z2.get(n);if(o==null){if(C.isEditor(n))return r;break}var i=J2.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: ".concat(ot.stringify(t)))},focus:e=>{var t=L.toDOMNode(e,e),r=L.findDocumentOrShadowRoot(e);if(ui.set(e,!0),r.activeElement!==t){if(e.selection&&r instanceof Document){var n=r.getSelection(),o=L.toDOMRange(e,e.selection);n?.removeAllRanges(),n?.addRange(o)}t.focus({preventScroll:!0})}},getWindow:e=>{var t=KS.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},hasDOMNode:function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{editable:o=!1}=n,i=L.toDOMNode(t,t),s;try{s=br(r)?r:r.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return s?s.closest("[data-slate-editor]")===i&&(!o||s.isContentEditable?!0:typeof s.isContentEditable=="boolean"&&s.closest('[contenteditable="false"]')===i||!!s.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>yo(t)&&L.hasDOMNode(e,t,{editable:!0}),hasRange:(e,t)=>{var{anchor:r,focus:n}=t;return C.hasPath(e,r.path)&&C.hasPath(e,n.path)},hasSelectableTarget:(e,t)=>L.hasEditableTarget(e,t)||L.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>yo(t)&&L.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!li.get(e),isFocused:e=>!!ui.get(e),isReadOnly:e=>!!j2.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(j2.get(e))return!1;var r=L.hasTarget(e,t)&&L.toSlateNode(e,t);return K.isElement(r)&&C.isVoid(e,r)},setFragmentData:(e,t,r)=>e.setFragmentData(t,r),toDOMNode:(e,t)=>{var r=zp.get(e),n=C.isEditor(t)?kp.get(e):r?.get(L.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(ot.stringify(t)));return n},toDOMPoint:(e,t)=>{var[r]=C.node(e,t.path),n=L.toDOMNode(e,r),o;C.void(e,{at:t})&&(t={path:t.path,offset:0});for(var i="[data-slate-string], [data-slate-zero-width]",s=Array.from(n.querySelectorAll(i)),u=0,l=0;l<s.length;l++){var c=s[l],p=c.childNodes[0];if(!(p==null||p.textContent==null)){var{length:d}=p.textContent,h=c.getAttribute("data-slate-length"),g=h==null?d:parseInt(h,10),v=u+g,m=s[l+1];if(t.offset===v&&m!==null&&m!==void 0&&m.hasAttribute("data-slate-mark-placeholder")){var y,b=m.childNodes[0];o=[b instanceof GY?b:m,(y=m.textContent)!==null&&y!==void 0&&y.startsWith("\uFEFF")?1:0];break}if(t.offset<=v){var x=Math.min(d,Math.max(0,t.offset-u));o=[p,x];break}u=v}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: ".concat(ot.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:r,focus:n}=t,o=R.isBackward(t),i=L.toDOMPoint(e,r),s=R.isCollapsed(t)?i:L.toDOMPoint(e,n),u=L.getWindow(e),l=u.document.createRange(),[c,p]=o?s:i,[d,h]=o?i:s,g=br(c)?c:c.parentElement,v=!!g.getAttribute("data-slate-zero-width"),m=br(d)?d:d.parentElement,y=!!m.getAttribute("data-slate-zero-width");return l.setStart(c,v?1:p),l.setEnd(d,y?1:h),l},toSlateNode:(e,t)=>{var r=br(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?Tu.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: ".concat(r));return n},toSlatePoint:(e,t,r)=>{var{exactMatch:n,suppressThrow:o}=r,[i,s]=n?t:WY(t),u=i.parentNode,l=null,c=0;if(u){var p,d,h=L.toDOMNode(e,e),g=u.closest('[data-slate-void="true"]'),v=g&&h.contains(g)?g:null,m=u.closest("[data-slate-leaf]"),y=null;if(m){if(l=m.closest('[data-slate-node="text"]'),l){var b=L.getWindow(e),x=b.document.createRange();x.setStart(l,0),x.setEnd(i,s);var w=x.cloneContents(),D=[...Array.prototype.slice.call(w.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(w.querySelectorAll("[contenteditable=false]"))];D.forEach(V=>{if(qt&&!n&&V.hasAttribute("data-slate-zero-width")&&V.textContent.length>0&&V.textContext!=="\uFEFF"){V.textContent.startsWith("\uFEFF")&&(V.textContent=V.textContent.slice(1));return}V.parentNode.removeChild(V)}),c=w.textContent.length,y=l}}else if(v){for(var E=v.querySelectorAll("[data-slate-leaf]"),S=0;S<E.length;S++){var T=E[S];if(L.hasDOMNode(e,T)){m=T;break}}m?(l=m.closest('[data-slate-node="text"]'),y=m,c=y.textContent.length,y.querySelectorAll("[data-slate-zero-width]").forEach(V=>{c-=V.textContent.length})):c=1}y&&c===y.textContent.length&&qt&&y.getAttribute("data-slate-zero-width")==="z"&&(p=y.textContent)!==null&&p!==void 0&&p.startsWith("\uFEFF")&&(u.hasAttribute("data-slate-zero-width")||Su&&(d=y.textContent)!==null&&d!==void 0&&d.endsWith(`
|
|
1784
1783
|
|
|
1785
1784
|
`))&&c--}if(qt&&!l&&!n){var O=u.hasAttribute("data-slate-node")?u:u.closest("[data-slate-node]");if(O&&L.hasDOMNode(e,O,{editable:!0})){var F=L.toSlateNode(e,O),{path:I,offset:G}=C.start(e,L.findPath(e,F));return O.querySelector("[data-slate-leaf]")||(G=s),{path:I,offset:G}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var k=L.toSlateNode(e,l),H=L.findPath(e,k);return{path:H,offset:c}},toSlateRange:(e,t,r)=>{var{exactMatch:n,suppressThrow:o}=r,i=W2(t)?t.anchorNode:t.startContainer,s,u,l,c,p;if(i)if(W2(t)){if(Su&&t.rangeCount>1){l=t.focusNode;var d=t.getRangeAt(0),h=t.getRangeAt(t.rangeCount-1);if(l instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement&&h.startContainer instanceof HTMLTableRowElement){let E=function(S){return S.childElementCount>0?E(S.children[0]):S};var g=d.startContainer,v=h.startContainer,m=E(g.children[d.startOffset]),y=E(v.children[h.startOffset]);c=0,y.childNodes.length>0?s=y.childNodes[0]:s=y,m.childNodes.length>0?l=m.childNodes[0]:l=m,y instanceof HTMLElement?u=y.innerHTML.length:u=0}else d.startContainer===l?(s=h.endContainer,u=h.endOffset,c=d.startOffset):(s=d.startContainer,u=d.endOffset,c=h.startOffset)}else s=t.anchorNode,u=t.anchorOffset,l=t.focusNode,c=t.focusOffset;US&&UY(s)||Su?p=t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:p=t.isCollapsed}else s=t.startContainer,u=t.startOffset,l=t.endContainer,c=t.endOffset,p=t.collapsed;if(s==null||l==null||u==null||c==null)throw new Error("Cannot resolve a Slate range from DOM range: ".concat(t));if("getAttribute"in l&&l.getAttribute("contenteditable")==="false"&&l.getAttribute("data-slate-void")!=="true"){var b;l=s,c=((b=s.textContent)===null||b===void 0?void 0:b.length)||0}var x=L.toSlatePoint(e,[s,u],{exactMatch:n,suppressThrow:o});if(!x)return null;var w=p?x:L.toSlatePoint(e,[l,c],{exactMatch:n,suppressThrow:o});if(!w)return null;var D={anchor:x,focus:w};return R.isExpanded(D)&&R.isForward(D)&&br(l)&&C.void(e,{at:D.focus,mode:"highest"})&&(D=C.unhangRange(e,D,{voids:!0})),D}};function JY(e,t){var{path:r,diff:n}=t;if(!C.hasPath(e,r))return!1;var o=W.get(e,r);if(!Y.isText(o))return!1;if(n.start!==o.text.length||n.text.length===0)return o.text.slice(n.start,n.start+n.text.length)===n.text;var i=P.next(r);if(!C.hasPath(e,i))return!1;var s=W.get(e,i);return Y.isText(s)&&s.text.startsWith(n.text)}function QS(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return r.reduce((o,i)=>o.slice(0,i.start)+i.text+o.slice(i.end),e)}function ZY(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n))return n;return r}function QY(e,t,r){for(var n=Math.min(e.length,t.length,r),o=0;o<n;o++)if(e.charAt(e.length-o-1)!==t.charAt(t.length-o-1))return o;return n}function eE(e,t){var{start:r,end:n,text:o}=t,i=e.slice(r,n),s=ZY(i,o),u=Math.min(i.length-s,o.length-s),l=QY(i,o,u),c={start:r+s,end:n-l,text:o.slice(s,o.length-l)};return c.start===c.end&&c.text.length===0?null:c}function eJ(e,t,r){var n=Math.min(t.start,r.start),o=Math.max(0,Math.min(t.start+t.text.length,r.end)-r.start),i=QS(e,t,r),s=Math.max(r.start+r.text.length,t.start+t.text.length+(t.start+t.text.length>r.start?r.text.length:0)-o),u=i.slice(n,s),l=Math.max(t.end,r.end-t.text.length+(t.end-t.start));return eE(e,{start:n,end:l,text:u})}function tJ(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}function K2(e,t){var{path:r,offset:n}=t;if(!C.hasPath(e,r))return null;var o=W.get(e,r);if(!Y.isText(o))return null;var i=C.above(e,{match:u=>K.isElement(u)&&C.isBlock(e,u),at:r});if(!i)return null;for(;n>o.text.length;){var s=C.next(e,{at:r,match:Y.isText});if(!s||!P.isDescendant(s[1],i[1]))return null;n-=o.text.length,o=s[0],r=s[1]}return{path:r,offset:n}}function BS(e,t){var r=K2(e,t.anchor);if(!r)return null;if(R.isCollapsed(t))return{anchor:r,focus:r};var n=K2(e,t.focus);return n?{anchor:r,focus:n}:null}function q2(e,t,r){var n=Kt.get(e),o=n?.find(p=>{var{path:d}=p;return P.equals(d,t.path)});if(!o||t.offset<=o.diff.start)return ve.transform(t,r,{affinity:"backward"});var{diff:i}=o;if(t.offset<=i.start+i.text.length){var s={path:t.path,offset:i.start},u=ve.transform(s,r,{affinity:"backward"});return u?{path:u.path,offset:u.offset+t.offset-i.start}:null}var l={path:t.path,offset:t.offset-i.text.length+i.end-i.start},c=ve.transform(l,r,{affinity:"backward"});return c?r.type==="split_node"&&P.equals(r.path,t.path)&&l.offset<r.position&&i.start<r.position?c:{path:c.path,offset:c.offset+i.text.length-i.end+i.start}:null}function $S(e,t,r){var n=q2(e,t.anchor,r);if(!n)return null;if(R.isCollapsed(t))return{anchor:n,focus:n};var o=q2(e,t.focus,r);return o?{anchor:n,focus:o}:null}function rJ(e,t){var{path:r,diff:n,id:o}=e;switch(t.type){case"insert_text":return!P.equals(t.path,r)||t.offset>=n.end?e:t.offset<=n.start?{diff:{start:t.text.length+n.start,end:t.text.length+n.end,text:n.text},id:o,path:r}:{diff:{start:n.start,end:n.end+t.text.length,text:n.text},id:o,path:r};case"remove_text":return!P.equals(t.path,r)||t.offset>=n.end?e:t.offset+t.text.length<=n.start?{diff:{start:n.start-t.text.length,end:n.end-t.text.length,text:n.text},id:o,path:r}:{diff:{start:n.start,end:n.end-t.text.length,text:n.text},id:o,path:r};case"split_node":return!P.equals(t.path,r)||t.position>=n.end?{diff:n,id:o,path:P.transform(r,t,{affinity:"backward"})}:t.position>n.start?{diff:{start:n.start,end:Math.min(t.position,n.end),text:n.text},id:o,path:r}:{diff:{start:n.start-t.position,end:n.end-t.position,text:n.text},id:o,path:P.transform(r,t,{affinity:"forward"})};case"merge_node":return P.equals(t.path,r)?{diff:{start:n.start+t.position,end:n.end+t.position,text:n.text},id:o,path:P.transform(r,t)}:{diff:n,id:o,path:P.transform(r,t)}}var i=P.transform(r,t);return i?{diff:n,path:i,id:o}:null}function RS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $p(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RS(Object(r),!0).forEach(function(n){Lp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var nJ=25,oJ=200,iJ=function(){},aJ=e=>e?.constructor.name==="DataTransfer";function sJ(e){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:n}=e,o=!1,i=null,s=null,u=null,l=0,c=!1,p=()=>{var k=vo.get(t);if(vo.delete(t),k){var{selection:H}=t,V=BS(t,k);V&&(!H||!R.equals(V,H))&&N.select(t,V)}},d=()=>{var k=go.get(t);if(go.delete(t),!!k){if(k.at){var H=ve.isPoint(k.at)?K2(t,k.at):BS(t,k.at);if(!H)return;var V=C.range(t,H);(!t.selection||!R.equals(t.selection,V))&&N.select(t,H)}k.run()}},h=()=>{if(s&&(clearTimeout(s),s=null),u&&(clearTimeout(u),u=null),!D()&&!w()){p();return}o||(o=!0,setTimeout(()=>o=!1)),w()&&(o="action");var k=t.selection&&C.rangeRef(t,t.selection,{affinity:"forward"});Fn.set(t,t.marks),iJ("flush",go.get(t),Kt.get(t));for(var H=D(),V;V=(M=Kt.get(t))===null||M===void 0?void 0:M[0];){var M,Z,re=Tr.get(t);re!==void 0&&(Tr.delete(t),t.marks=re),re&&c===!1&&(c=null);var se=tJ(V);(!t.selection||!R.equals(t.selection,se))&&N.select(t,se),V.diff.text?C.insertText(t,V.diff.text):C.deleteFragment(t),Kt.set(t,(Z=Kt.get(t))===null||Z===void 0?void 0:Z.filter(ce=>{var{id:pe}=ce;return pe!==V.id})),JY(t,V)||(H=!1,go.delete(t),Fn.delete(t),o="action",vo.delete(t),r.cancel(),n.cancel(),k?.unref())}var j=k?.unref();if(j&&!vo.get(t)&&(!t.selection||!R.equals(j,t.selection))&&N.select(t,j),w()){d();return}H&&r(),r.flush(),n.flush(),p();var ne=Fn.get(t);Fn.delete(t),ne!==void 0&&(t.marks=ne,t.onChange())},g=k=>{i&&clearTimeout(i),i=setTimeout(()=>{li.set(t,!1),h()},nJ)},v=k=>{li.set(t,!0),i&&(clearTimeout(i),i=null)},m=function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,V=G2.get(t);if(V){if(D()||H){V.style.display="none";return}V.style.removeProperty("display")}},y=(k,H)=>{var V,M=(V=Kt.get(t))!==null&&V!==void 0?V:[];Kt.set(t,M);var Z=W.leaf(t,k),re=M.findIndex(ne=>P.equals(ne.path,k));if(re<0){var se=eE(Z.text,H);se&&M.push({path:k,diff:H,id:l++}),m();return}var j=eJ(Z.text,M[re].diff,H);if(!j){M.splice(re,1),m();return}M[re]=$p($p({},M[re]),{},{diff:j})},b=function(H){var{at:V}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c=!1,vo.delete(t),r.cancel(),n.cancel(),w()&&h(),go.set(t,{at:V,run:H}),u=setTimeout(h)},x=k=>{var H;s&&(clearTimeout(s),s=null);var{inputType:V}=k,M=null,Z=k.dataTransfer||k.data||void 0;c!==!1&&V!=="insertText"&&V!=="insertCompositionText"&&(c=!1);var[re]=k.getTargetRanges();re&&(M=L.toSlateRange(t,re,{exactMatch:!1,suppressThrow:!0}));var se=L.getWindow(t),j=se.getSelection();if(!M&&j&&(re=j,M=L.toSlateRange(t,j,{exactMatch:!1,suppressThrow:!0})),M=(H=M)!==null&&H!==void 0?H:t.selection,!!M){var ne=!0;if(V.startsWith("delete")){if(R.isExpanded(M)){var[ce,pe]=R.edges(M),$e=W.leaf(t,ce.path);if($e.text.length===ce.offset&&pe.offset===0){var A=C.next(t,{at:ce.path,match:Y.isText});A&&P.equals(A[1],pe.path)&&(M={anchor:pe,focus:pe})}}var _=V.endsWith("Backward")?"backward":"forward",[z,U]=R.edges(M),[ue,Q]=C.leaf(t,z.path),he={text:"",start:z.offset,end:U.offset},we=Kt.get(t),Se=we?.find(Te=>P.equals(Te.path,Q)),Ae=Se?[Se.diff,he]:[he],Ce=QS(ue.text,...Ae);if(Ce.length===0&&(ne=!1),R.isExpanded(M)){if(ne&&P.equals(M.anchor.path,M.focus.path)){var je={path:M.anchor.path,offset:z.offset},Ye=C.range(t,je,je);return T(Ye),y(M.anchor.path,{text:"",end:U.offset,start:z.offset})}return b(()=>C.deleteFragment(t,{direction:_}),{at:M})}}switch(V){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return b(()=>C.deleteFragment(t),{at:M});case"deleteContent":case"deleteContentForward":{var{anchor:ke}=M;if(ne&&R.isCollapsed(M)){var Tt=W.leaf(t,ke.path);if(ke.offset<Tt.text.length)return y(ke.path,{text:"",start:ke.offset,end:ke.offset+1})}return b(()=>C.deleteForward(t),{at:M})}case"deleteContentBackward":{var Ct,{anchor:st}=M,ut=W2(re)?re.isCollapsed:!!((Ct=re)!==null&&Ct!==void 0&&Ct.collapsed);return ne&&ut&&R.isCollapsed(M)&&st.offset>0?y(st.path,{text:"",start:st.offset-1,end:st.offset}):b(()=>C.deleteBackward(t),{at:M})}case"deleteEntireSoftLine":return b(()=>{C.deleteBackward(t,{unit:"line"}),C.deleteForward(t,{unit:"line"})},{at:M});case"deleteHardLineBackward":return b(()=>C.deleteBackward(t,{unit:"block"}),{at:M});case"deleteSoftLineBackward":return b(()=>C.deleteBackward(t,{unit:"line"}),{at:M});case"deleteHardLineForward":return b(()=>C.deleteForward(t,{unit:"block"}),{at:M});case"deleteSoftLineForward":return b(()=>C.deleteForward(t,{unit:"line"}),{at:M});case"deleteWordBackward":return b(()=>C.deleteBackward(t,{unit:"word"}),{at:M});case"deleteWordForward":return b(()=>C.deleteForward(t,{unit:"word"}),{at:M});case"insertLineBreak":return b(()=>C.insertSoftBreak(t),{at:M});case"insertParagraph":return b(()=>C.insertBreak(t),{at:M});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(aJ(Z))return b(()=>L.insertData(t,Z),{at:M});var B=Z??"";if(Tr.get(t)&&(B=B.replace("\uFEFF","")),V==="insertText"&&/.*\n.*\n$/.test(B)&&(B=B.slice(0,-1)),B.includes(`
|
|
@@ -1928,15 +1927,15 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
1928
1927
|
`,AQ=Zp.div`
|
|
1929
1928
|
display: flex;
|
|
1930
1929
|
gap: ${({theme:e})=>e.spacing.space01};
|
|
1931
|
-
`,OQ=e=>{switch(e){case"ArrowDown":return"\u2193";case"ArrowLeft":return"\u2190";case"ArrowRight":return"\u2192";case"ArrowUp":return"\u2191";case"Alt":return"Alt";case"Cmd":case"Meta":return/Mac|iPhone|iPad/.test(window.navigator.userAgent)?"\u2318":window.navigator.userAgent.includes("Win")?"\u229E":"^";case"Ctrl":return"Ctrl";case"Option":return"\u2325";case"Shift":return"\u21E7";case"Enter":return"\u21B5";case"Space":return"Space";case"Tab":return"Tab";case"Backspace":return"Del";case"Esc":return"Esc";default:return e.toUpperCase()}},xT=({label:e,keyboardKeys:t,fullWidth:r=!1,componentStyle:n="dark",...o})=>FQ(EQ,{componentStyle:n,fullWidth:r,...o,children:[$(e)&&wh(PQ,{componentStyle:n,children:e}),wh(AQ,{children:[...t].map(i=>wh(TQ,{componentStyle:n,children:OQ(i)},i))})]});xT.displayName="KeyboardShortcut_VHS";a();a();a();import{forwardRef as BQ}from"react";import $Q from"styled-components";import{jsx as
|
|
1930
|
+
`,OQ=e=>{switch(e){case"ArrowDown":return"\u2193";case"ArrowLeft":return"\u2190";case"ArrowRight":return"\u2192";case"ArrowUp":return"\u2191";case"Alt":return"Alt";case"Cmd":case"Meta":return/Mac|iPhone|iPad/.test(window.navigator.userAgent)?"\u2318":window.navigator.userAgent.includes("Win")?"\u229E":"^";case"Ctrl":return"Ctrl";case"Option":return"\u2325";case"Shift":return"\u21E7";case"Enter":return"\u21B5";case"Space":return"Space";case"Tab":return"Tab";case"Backspace":return"Del";case"Esc":return"Esc";default:return e.toUpperCase()}},xT=({label:e,keyboardKeys:t,fullWidth:r=!1,componentStyle:n="dark",...o})=>FQ(EQ,{componentStyle:n,fullWidth:r,...o,children:[$(e)&&wh(PQ,{componentStyle:n,children:e}),wh(AQ,{children:[...t].map(i=>wh(TQ,{componentStyle:n,children:OQ(i)},i))})]});xT.displayName="KeyboardShortcut_VHS";a();a();a();import{forwardRef as BQ}from"react";import $Q from"styled-components";import{jsx as IQ}from"react/jsx-runtime";var RQ=e=>e.key==="Enter"||e.key===" "||e.key==="Spacebar",MQ=$Q.span`
|
|
1932
1931
|
${({noStyle:e})=>e?void 0:zf};
|
|
1933
1932
|
|
|
1934
1933
|
&[tabindex] {
|
|
1935
1934
|
${({underlineOnHover:e})=>e?Lf:void 0};
|
|
1936
1935
|
}
|
|
1937
|
-
`,wT=BQ(({children:e,disabled:t=!1,forceState:r,label:n,onClick:o,noStyle:i=!1,underlineOnHover:s=!1,variant:u="primary",...l},c)=>
|
|
1936
|
+
`,wT=BQ(({children:e,disabled:t=!1,forceState:r,label:n,onClick:o,noStyle:i=!1,underlineOnHover:s=!1,variant:u="primary",...l},c)=>IQ(MQ,{ref:c,"aria-disabled":t,disabledLink:t,forceState:r,noStyle:i,onClick:v=>{de(o)||t||o(v)},onKeyPress:v=>{de(o)||RQ(v)&&(v.preventDefault(),o(v))},role:"button",tabIndex:t?void 0:0,underlineOnHover:s,variant:u,...l,children:$(e)?e:$(n)?n:null}));wT.displayName="LinkButton_VHS";a();a();import LQ,{css as Ru}from"styled-components";a();import kQ from"styled-components";import{jsx as NQ}from"react/jsx-runtime";var VQ=kQ.li`
|
|
1938
1937
|
margin-bottom: ${({theme:e})=>e.spacing.space02};
|
|
1939
|
-
`,Za=({children:e})=>de(e)?null:
|
|
1938
|
+
`,Za=({children:e})=>de(e)?null:NQ(VQ,{children:e});Za.displayName="ListItem_VHS";import{jsx as ET,jsxs as WQ}from"react/jsx-runtime";var Qp=Ru`
|
|
1940
1939
|
overflow: hidden;
|
|
1941
1940
|
padding-left: 0;
|
|
1942
1941
|
vertical-align: bottom;
|
|
@@ -1957,7 +1956,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
1957
1956
|
}
|
|
1958
1957
|
}
|
|
1959
1958
|
}
|
|
1960
|
-
`,
|
|
1959
|
+
`,zQ=Ru`
|
|
1961
1960
|
${Qp};
|
|
1962
1961
|
|
|
1963
1962
|
li {
|
|
@@ -1966,7 +1965,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
1966
1965
|
padding-right: ${({theme:e})=>e.spacing.space01};
|
|
1967
1966
|
}
|
|
1968
1967
|
}
|
|
1969
|
-
`,
|
|
1968
|
+
`,HQ=Ru`
|
|
1970
1969
|
${Qp};
|
|
1971
1970
|
|
|
1972
1971
|
li {
|
|
@@ -1976,7 +1975,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
1976
1975
|
padding-right: ${({theme:e})=>e.spacing.space01};
|
|
1977
1976
|
}
|
|
1978
1977
|
}
|
|
1979
|
-
`,
|
|
1978
|
+
`,GQ=Ru`
|
|
1980
1979
|
${Qp};
|
|
1981
1980
|
|
|
1982
1981
|
li {
|
|
@@ -1986,18 +1985,18 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
1986
1985
|
padding-right: ${({theme:e})=>e.spacing.space01};
|
|
1987
1986
|
}
|
|
1988
1987
|
}
|
|
1989
|
-
`,
|
|
1988
|
+
`,jQ=Ru`
|
|
1990
1989
|
list-style: none;
|
|
1991
1990
|
padding-left: 0;
|
|
1992
|
-
`,
|
|
1991
|
+
`,_Q=LQ.ul`
|
|
1993
1992
|
list-style-position: outside;
|
|
1994
1993
|
margin: ${({theme:e})=>`0 0 ${e.spacing.space01}`};
|
|
1995
1994
|
padding: ${({theme:e})=>`0 0 0 ${e.spacing.space04}`};
|
|
1996
|
-
${({variant:e})=>e==="unbulleted"&&
|
|
1995
|
+
${({variant:e})=>e==="unbulleted"&&jQ};
|
|
1997
1996
|
${({variant:e})=>e==="spaces"&&Qp};
|
|
1998
|
-
${({variant:e})=>e==="commas"&&
|
|
1999
|
-
${({variant:e})=>e==="slashes"&&
|
|
2000
|
-
${({variant:e})=>e==="breadcrumbs"&&
|
|
1997
|
+
${({variant:e})=>e==="commas"&&zQ};
|
|
1998
|
+
${({variant:e})=>e==="slashes"&&HQ};
|
|
1999
|
+
${({variant:e})=>e==="breadcrumbs"&&GQ};
|
|
2001
2000
|
|
|
2002
2001
|
> li:last-child {
|
|
2003
2002
|
margin-bottom: 0;
|
|
@@ -2013,12 +2012,12 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2013
2012
|
li ol {
|
|
2014
2013
|
margin-bottom: 0;
|
|
2015
2014
|
}
|
|
2016
|
-
`,DT=(e,t,{...r})=>ET(
|
|
2015
|
+
`,DT=(e,t,{...r})=>ET(_Q,{as:t==="ordered"?"ol":"ul",variant:t,...r,children:e}),ST=(e,t,r)=>{let n=0,o=e.map((i,s)=>{let u=i,l=e[s+1],c=`item-${n+=1}`;return Array.isArray(l)?WQ(Za,{children:[u,ST(l,t,r)]},c):Array.isArray(u)?null:ET(Za,{children:u},c)});return DT(o,t,r)},ed=({children:e,items:t,variant:r,...n})=>{let o=r??"bullets";return $(e)?Array.isArray(e)&&!e.length?null:DT(e,o,n):$(t)&&t.length?ST(t,o,n):null};ed.displayName="List_VHS";a();a();import Dh from"styled-components";import{jsx as TT,jsxs as XQ}from"react/jsx-runtime";var UQ=e=>{if(e==="bottom")return"flex-end";if(e==="middle")return"center";if(e==="top")return"flex-start"},PT=Dh.div`
|
|
2017
2016
|
align-items: flex-start;
|
|
2018
2017
|
display: flex;
|
|
2019
2018
|
flex-direction: row;
|
|
2020
2019
|
position: relative;
|
|
2021
|
-
`,
|
|
2020
|
+
`,KQ=Dh.div`
|
|
2022
2021
|
align-self: ${({align:e})=>e==="middle"?"center":null};
|
|
2023
2022
|
flex-grow: 1;
|
|
2024
2023
|
flex-shrink: 1;
|
|
@@ -2028,8 +2027,8 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2028
2027
|
> ${PT} {
|
|
2029
2028
|
margin-top: 1rem;
|
|
2030
2029
|
}
|
|
2031
|
-
`,
|
|
2032
|
-
align-self: ${({align:e})=>
|
|
2030
|
+
`,qQ=Dh.div`
|
|
2031
|
+
align-self: ${({align:e})=>UQ(e)};
|
|
2033
2032
|
flex-grow: 0;
|
|
2034
2033
|
flex-shrink: 0;
|
|
2035
2034
|
margin-left: ${({placement:e,gap:t})=>e==="left"?0:t};
|
|
@@ -2041,7 +2040,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2041
2040
|
which in turn throws off perfect centering */
|
|
2042
2041
|
vertical-align: bottom;
|
|
2043
2042
|
}
|
|
2044
|
-
`,AT=({placement:e="left",align:t="top",gap:r="1.5rem",item:n,children:o,...i})=>JQ(PT,{...i,children:[$(n)?TT(YQ,{align:t,gap:r,placement:e,children:n}):null,TT(XQ,{align:t,children:o})]});AT.displayName="MediaObject_VHS";a();import{useState as lne}from"react";import Sg,{css as cne,keyframes as eO}from"styled-components";a();import{useRef as zA,createElement as St,useCallback as rne,forwardRef as Fr}from"react";a();function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}a();import{useCallback as ZQ}from"react";function QQ(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function di(...e){return t=>e.forEach(r=>QQ(r,t))}function rt(...e){return ZQ(di(...e),e)}a();import{createContext as OT,useMemo as Sh,createElement as eee,useContext as tee}from"react";function Jr(e,t=[]){let r=[];function n(i,s){let u=OT(s),l=r.length;r=[...r,s];function c(d){let{scope:h,children:g,...v}=d,m=h?.[e][l]||u,y=Sh(()=>v,Object.values(v));return eee(m.Provider,{value:y},g)}function p(d,h){let g=h?.[e][l]||u,v=tee(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,p]}let o=()=>{let i=r.map(s=>OT(s));return function(u){let l=u?.[e]||i;return Sh(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,ree(o,...t)]}function ree(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(i)[`__scope${c}`];return{...u,...d}},{});return Sh(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}a();import{useCallback as aee,useState as see,useRef as uee,useEffect as lee}from"react";a();import{useRef as nee,useEffect as oee,useMemo as iee}from"react";function it(e){let t=nee(e);return oee(()=>{t.current=e}),iee(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Mu({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=cee({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:n,u=it(r),l=aee(c=>{if(i){let d=typeof c=="function"?c(e):c;d!==e&&u(d)}else o(c)},[i,e,o,u]);return[s,l]}function cee({defaultProp:e,onChange:t}){let r=see(e),[n]=r,o=uee(n),i=it(t);return lee(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}a();import{forwardRef as hee,useEffect as gee,createElement as vee}from"react";import{flushSync as yee}from"react-dom";a();import{forwardRef as FT,Children as Iu,isValidElement as td,createElement as Eh,cloneElement as BT,Fragment as fee}from"react";var xo=FT((e,t)=>{let{children:r,...n}=e,o=Iu.toArray(r),i=o.find(dee);if(i){let s=i.props.children,u=o.map(l=>l===i?Iu.count(s)>1?Iu.only(null):td(s)?s.props.children:null:l);return Eh(Th,te({},n,{ref:t}),td(s)?BT(s,void 0,u):null)}return Eh(Th,te({},n,{ref:t}),r)});xo.displayName="Slot";var Th=FT((e,t)=>{let{children:r,...n}=e;return td(r)?BT(r,{...mee(n,r.props),ref:t?di(t,r.ref):r.ref}):Iu.count(r)>1?Iu.only(null):null});Th.displayName="SlotClone";var pee=({children:e})=>Eh(fee,null,e);function dee(e){return td(e)&&e.type===pee}function mee(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...u)=>{i(...u),o(...u)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}var bee=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],at=bee.reduce((e,t)=>{let r=hee((n,o)=>{let{asChild:i,...s}=n,u=i?xo:t;return gee(()=>{window[Symbol.for("radix-ui")]=!0},[]),vee(u,te({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rd(e,t){e&&yee(()=>e.dispatchEvent(t))}a();import{useState as ss,useRef as Zt,useEffect as Ei,createElement as ge,useCallback as Si,forwardRef as It,Fragment as xre}from"react";a();import Zr from"react";function nd(e){let t=e+"CollectionProvider",[r,n]=Jr(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:m}=g,y=Zr.useRef(null),b=Zr.useRef(new Map).current;return Zr.createElement(o,{scope:v,itemMap:b,collectionRef:y},m)},u=e+"CollectionSlot",l=Zr.forwardRef((g,v)=>{let{scope:m,children:y}=g,b=i(u,m),x=rt(v,b.collectionRef);return Zr.createElement(xo,{ref:x},y)}),c=e+"CollectionItemSlot",p="data-radix-collection-item",d=Zr.forwardRef((g,v)=>{let{scope:m,children:y,...b}=g,x=Zr.useRef(null),w=rt(v,x),D=i(c,m);return Zr.useEffect(()=>(D.itemMap.set(x,{ref:x,...b}),()=>void D.itemMap.delete(x))),Zr.createElement(xo,{[p]:"",ref:w},y)});function h(g){let v=i(e+"CollectionConsumer",g);return Zr.useCallback(()=>{let y=v.collectionRef.current;if(!y)return[];let b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((D,E)=>b.indexOf(D.ref.current)-b.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,n]}a();import{createContext as Cee,createElement as Ort,useContext as xee}from"react";var wee=Cee(void 0);function od(e){let t=xee(wee);return e||t||"ltr"}a();import{createContext as See,forwardRef as Eee,useContext as Tee,useState as RT,useEffect as ku,createElement as Pee,useRef as Ph}from"react";a();import{useEffect as Dee}from"react";function $T(e,t=globalThis?.document){let r=it(e);Dee(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Ah="dismissableLayer.update",Aee="dismissableLayer.pointerDownOutside",Oee="dismissableLayer.focusOutside",MT,Fee=See({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kT=Eee((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:l,...c}=e,p=Tee(Fee),[d,h]=RT(null),g=(r=d?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,v]=RT({}),m=rt(t,O=>h(O)),y=Array.from(p.layers),[b]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),w=d?y.indexOf(d):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,E=w>=x,S=Bee(O=>{let F=O.target,I=[...p.branches].some(G=>G.contains(F));!E||I||(i?.(O),u?.(O),O.defaultPrevented||l?.())},g),T=$ee(O=>{let F=O.target;[...p.branches].some(G=>G.contains(F))||(s?.(O),u?.(O),O.defaultPrevented||l?.())},g);return $T(O=>{w===p.layers.size-1&&(o?.(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},g),ku(()=>{if(d)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(MT=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),IT(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=MT)}},[d,g,n,p]),ku(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),IT())},[d,p]),ku(()=>{let O=()=>v({});return document.addEventListener(Ah,O),()=>document.removeEventListener(Ah,O)},[]),Pee(at.div,te({},c,{ref:m,style:{pointerEvents:D?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)}))});function Bee(e,t=globalThis?.document){let r=it(e),n=Ph(!1),o=Ph(()=>{});return ku(()=>{let i=u=>{if(u.target&&!n.current){let c=function(){VT(Aee,r,l,{discrete:!0})},l={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function $ee(e,t=globalThis?.document){let r=it(e),n=Ph(!1);return ku(()=>{let o=i=>{i.target&&!n.current&&VT(Oee,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function IT(){let e=new CustomEvent(Ah);document.dispatchEvent(e)}function VT(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?rd(o,i):o.dispatchEvent(i)}a();import{useEffect as Ree}from"react";var Oh=0;function LT(){Ree(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:NT()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:NT()),Oh++,()=>{Oh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Oh--}},[])}function NT(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}a();import{forwardRef as Mee,useState as Iee,useRef as zT,useEffect as HT,useCallback as kee,createElement as Vee}from"react";var Fh="focusScope.autoFocusOnMount",Bh="focusScope.autoFocusOnUnmount",GT={bubbles:!1,cancelable:!0};var UT=Mee((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[u,l]=Iee(null),c=it(o),p=it(i),d=zT(null),h=rt(t,m=>l(m)),g=zT({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;HT(()=>{if(n){let m=function(w){if(g.paused||!u)return;let D=w.target;u.contains(D)?d.current=D:wo(d.current,{select:!0})},y=function(w){if(g.paused||!u)return;let D=w.relatedTarget;D!==null&&(u.contains(D)||wo(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(let E of w)E.removedNodes.length>0&&wo(u)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);let x=new MutationObserver(b);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[n,u,g.paused]),HT(()=>{if(u){_T.add(g);let m=document.activeElement;if(!u.contains(m)){let b=new CustomEvent(Fh,GT);u.addEventListener(Fh,c),u.dispatchEvent(b),b.defaultPrevented||(Nee(jee(KT(u)),{select:!0}),document.activeElement===m&&wo(u))}return()=>{u.removeEventListener(Fh,c),setTimeout(()=>{let b=new CustomEvent(Bh,GT);u.addEventListener(Bh,p),u.dispatchEvent(b),b.defaultPrevented||wo(m??document.body,{select:!0}),u.removeEventListener(Bh,p),_T.remove(g)},0)}}},[u,c,p,g]);let v=kee(m=>{if(!r&&!n||g.paused)return;let y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){let x=m.currentTarget,[w,D]=Lee(x);w&&D?!m.shiftKey&&b===D?(m.preventDefault(),r&&wo(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&wo(D,{select:!0})):b===x&&m.preventDefault()}},[r,n,g.paused]);return Vee(at.div,te({tabIndex:-1},s,{ref:h,onKeyDown:v}))});function Nee(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(wo(n,{select:t}),document.activeElement!==r)return}function Lee(e){let t=KT(e),r=jT(t,e),n=jT(t.reverse(),e);return[r,n]}function KT(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jT(e,t){for(let r of e)if(!zee(r,{upTo:t}))return r}function zee(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Hee(e){return e instanceof HTMLInputElement&&"select"in e}function wo(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Hee(e)&&t&&e.select()}}var _T=Gee();function Gee(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=WT(e,t),e.unshift(t)},remove(t){var r;e=WT(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function WT(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function jee(e){return e.filter(t=>t.tagName!=="A")}a();import*as id from"react";a();import{useLayoutEffect as _ee}from"react";var Qr=globalThis?.document?_ee:()=>{};var Wee=id.useId||(()=>{}),Uee=0;function Do(e){let[t,r]=id.useState(Wee());return Qr(()=>{e||r(n=>n??String(Uee++))},[e]),e||(t?`radix-${t}`:"")}a();import{useState as hd,createElement as Gu,forwardRef as FP,useRef as gte,useEffect as vte}from"react";a();a();a();a();var qT=["top","right","bottom","left"];var en=Math.min,Mt=Math.max,Nu=Math.round,Lu=Math.floor,Rn=e=>({x:e,y:e}),Kee={left:"right",right:"left",bottom:"top",top:"bottom"},qee={start:"end",end:"start"};function sd(e,t,r){return Mt(e,en(t,r))}function tn(e,t){return typeof e=="function"?e(t):e}function rn(e){return e.split("-")[0]}function mi(e){return e.split("-")[1]}function ud(e){return e==="x"?"y":"x"}function ld(e){return e==="y"?"height":"width"}function hi(e){return["top","bottom"].includes(rn(e))?"y":"x"}function cd(e){return ud(hi(e))}function XT(e,t,r){r===void 0&&(r=!1);let n=mi(e),o=cd(e),i=ld(o),s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vu(s)),[s,Vu(s)]}function YT(e){let t=Vu(e);return[ad(e),t,ad(t)]}function ad(e){return e.replace(/start|end/g,t=>qee[t])}function Xee(e,t,r){let n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function JT(e,t,r,n){let o=mi(e),i=Xee(rn(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ad)))),i}function Vu(e){return e.replace(/left|right|bottom|top/g,t=>Kee[t])}function Yee(e){return{top:0,right:0,bottom:0,left:0,...e}}function $h(e){return typeof e!="number"?Yee(e):{top:e,right:e,bottom:e,left:e}}function gi(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ZT(e,t,r){let{reference:n,floating:o}=e,i=hi(t),s=cd(t),u=ld(s),l=rn(t),c=i==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[u]/2-o[u]/2,g;switch(l){case"top":g={x:p,y:n.y-o.height};break;case"bottom":g={x:p,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-o.width,y:d};break;default:g={x:n.x,y:n.y}}switch(mi(t)){case"start":g[s]-=h*(r&&c?-1:1);break;case"end":g[s]+=h*(r&&c?-1:1);break}return g}var tP=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,u=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=ZT(c,n,l),h=n,g={},v=0;for(let m=0;m<u.length;m++){let{name:y,fn:b}=u[m],{x,y:w,data:D,reset:E}=await b({x:p,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,d=w??d,g={...g,[y]:{...g[y],...D}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:d}=ZT(c,h,l)),m=-1)}return{x:p,y:d,placement:h,strategy:o,middlewareData:g}};async function Qa(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:i,rects:s,elements:u,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=tn(t,e),v=$h(g),y=u[h?d==="floating"?"reference":"floating":d],b=gi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:c,rootBoundary:p,strategy:l})),x=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),D=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=gi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-E.top+v.top)/D.y,bottom:(E.bottom-b.bottom+v.bottom)/D.y,left:(b.left-E.left+v.left)/D.x,right:(E.right-b.right+v.right)/D.x}}var rP=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:s,elements:u,middlewareData:l}=t,{element:c,padding:p=0}=tn(e,t)||{};if(c==null)return{};let d=$h(p),h={x:r,y:n},g=cd(o),v=ld(g),m=await s.getDimensions(c),y=g==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",D=i.reference[v]+i.reference[g]-h[g]-i.floating[v],E=h[g]-i.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),T=S?S[w]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=u.floating[w]||i.floating[v]);let O=D/2-E/2,F=T/2-m[v]/2-1,I=en(d[b],F),G=en(d[x],F),k=I,H=T-m[v]-G,V=T/2-m[v]/2+O,M=sd(k,V,H),Z=!l.arrow&&mi(o)!=null&&V!==M&&i.reference[v]/2-(V<k?I:G)-m[v]/2<0,re=Z?V<k?V-k:V-H:0;return{[g]:h[g]+re,data:{[g]:M,centerOffset:V-M-re,...Z&&{alignmentOffset:re}},reset:Z}}});var nP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:i,rects:s,initialPlacement:u,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=tn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};let b=rn(o),x=rn(u)===u,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),D=h||(x||!m?[Vu(u)]:YT(u));!h&&v!=="none"&&D.push(...JT(u,m,v,w));let E=[u,...D],S=await Qa(t,y),T=[],O=((n=i.flip)==null?void 0:n.overflows)||[];if(p&&T.push(S[b]),d){let k=XT(o,s,w);T.push(S[k[0]],S[k[1]])}if(O=[...O,{placement:o,overflows:T}],!T.every(k=>k<=0)){var F,I;let k=(((F=i.flip)==null?void 0:F.index)||0)+1,H=E[k];if(H)return{data:{index:k,overflows:O},reset:{placement:H}};let V=(I=O.filter(M=>M.overflows[0]<=0).sort((M,Z)=>M.overflows[1]-Z.overflows[1])[0])==null?void 0:I.placement;if(!V)switch(g){case"bestFit":{var G;let M=(G=O.map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,se)=>re+se,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:G[0];M&&(V=M);break}case"initialPlacement":V=u;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function QT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eP(e){return qT.some(t=>e[t]>=0)}var oP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=tn(e,t);switch(n){case"referenceHidden":{let i=await Qa(t,{...o,elementContext:"reference"}),s=QT(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:eP(s)}}}case"escaped":{let i=await Qa(t,{...o,altBoundary:!0}),s=QT(i,r.floating);return{data:{escapedOffsets:s,escaped:eP(s)}}}default:return{}}}}};async function Jee(e,t){let{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=rn(r),u=mi(r),l=hi(r)==="y",c=["left","top"].includes(s)?-1:1,p=i&&l?-1:1,d=tn(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&typeof v=="number"&&(g=u==="end"?v*-1:v),l?{x:g*p,y:h*c}:{x:h*c,y:g*p}}var iP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:s,middlewareData:u}=t,l=await Jee(t,e);return s===((r=u.offset)==null?void 0:r.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},aP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...l}=tn(e,t),c={x:r,y:n},p=await Qa(t,l),d=hi(rn(o)),h=ud(d),g=c[h],v=c[d];if(i){let y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=g+p[y],w=g-p[b];g=sd(x,g,w)}if(s){let y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=v+p[y],w=v-p[b];v=sd(x,v,w)}let m=u.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-r,y:m.y-n}}}}},sP=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=tn(e,t),p={x:r,y:n},d=hi(o),h=ud(d),g=p[h],v=p[d],m=tn(u,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let w=h==="y"?"height":"width",D=i.reference[h]-i.floating[w]+y.mainAxis,E=i.reference[h]+i.reference[w]-y.mainAxis;g<D?g=D:g>E&&(g=E)}if(c){var b,x;let w=h==="y"?"width":"height",D=["top","left"].includes(rn(o)),E=i.reference[d]-i.floating[w]+(D&&((b=s.offset)==null?void 0:b[d])||0)+(D?0:y.crossAxis),S=i.reference[d]+i.reference[w]+(D?0:((x=s.offset)==null?void 0:x[d])||0)-(D?y.crossAxis:0);v<E?v=E:v>S&&(v=S)}return{[h]:g,[d]:v}}}},uP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...u}=tn(e,t),l=await Qa(t,u),c=rn(r),p=mi(r),d=hi(r)==="y",{width:h,height:g}=n.floating,v,m;c==="top"||c==="bottom"?(v=c,m=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,v=p==="end"?"top":"bottom");let y=g-l[v],b=h-l[m],x=!t.middlewareData.shift,w=y,D=b;if(d){let S=h-l.left-l.right;D=p||x?en(b,S):S}else{let S=g-l.top-l.bottom;w=p||x?en(y,S):S}if(x&&!p){let S=Mt(l.left,0),T=Mt(l.right,0),O=Mt(l.top,0),F=Mt(l.bottom,0);d?D=h-2*(S!==0||T!==0?S+T:Mt(l.left,l.right)):w=g-2*(O!==0||F!==0?O+F:Mt(l.top,l.bottom))}await s({...t,availableWidth:D,availableHeight:w});let E=await o.getDimensions(i.floating);return h!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};a();function Mn(e){return cP(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nn(e){var t;return(t=(cP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cP(e){return e instanceof Node||e instanceof Yt(e).Node}function on(e){return e instanceof Element||e instanceof Yt(e).Element}function Ar(e){return e instanceof HTMLElement||e instanceof Yt(e).HTMLElement}function lP(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function es(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function fP(e){return["table","td","th"].includes(Mn(e))}function fd(e){let t=pd(),r=pr(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function pP(e){let t=vi(e);for(;Ar(t)&&!zu(t);){if(fd(t))return t;t=vi(t)}return null}function pd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zu(e){return["html","body","#document"].includes(Mn(e))}function pr(e){return Yt(e).getComputedStyle(e)}function Hu(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function vi(e){if(Mn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||lP(e)&&e.host||nn(e);return lP(t)?t.host:t}function dP(e){let t=vi(e);return zu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ar(t)&&es(t)?t:dP(t)}function yi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=dP(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Yt(o);return i?t.concat(s,s.visualViewport||[],es(o)?o:[],s.frameElement&&r?yi(s.frameElement):[]):t.concat(o,yi(o,[],r))}function gP(e){let t=pr(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=Ar(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,u=Nu(r)!==i||Nu(n)!==s;return u&&(r=i,n=s),{width:r,height:n,$:u}}function Rh(e){return on(e)?e:e.contextElement}function ts(e){let t=Rh(e);if(!Ar(t))return Rn(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=gP(t),s=(i?Nu(r.width):r.width)/n,u=(i?Nu(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}var Zee=Rn(0);function vP(e){let t=Yt(e);return!pd()||!t.visualViewport?Zee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Qee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Yt(e)?!1:t}function bi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),i=Rh(e),s=Rn(1);t&&(n?on(n)&&(s=ts(n)):s=ts(e));let u=Qee(i,r,n)?vP(i):Rn(0),l=(o.left+u.x)/s.x,c=(o.top+u.y)/s.y,p=o.width/s.x,d=o.height/s.y;if(i){let h=Yt(i),g=n&&on(n)?Yt(n):n,v=h,m=v.frameElement;for(;m&&n&&g!==v;){let y=ts(m),b=m.getBoundingClientRect(),x=pr(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,D=b.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,p*=y.x,d*=y.y,l+=w,c+=D,v=Yt(m),m=v.frameElement}}return gi({width:p,height:d,x:l,y:c})}var ete=[":popover-open",":modal"];function yP(e){return ete.some(t=>{try{return e.matches(t)}catch{return!1}})}function tte(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i=o==="fixed",s=nn(n),u=t?yP(t.floating):!1;if(n===s||u&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Rn(1),p=Rn(0),d=Ar(n);if((d||!d&&!i)&&((Mn(n)!=="body"||es(s))&&(l=Hu(n)),Ar(n))){let h=bi(n);c=ts(n),p.x=h.x+n.clientLeft,p.y=h.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x,y:r.y*c.y-l.scrollTop*c.y+p.y}}function rte(e){return Array.from(e.getClientRects())}function bP(e){return bi(nn(e)).left+Hu(e).scrollLeft}function nte(e){let t=nn(e),r=Hu(e),n=e.ownerDocument.body,o=Mt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Mt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+bP(e),u=-r.scrollTop;return pr(n).direction==="rtl"&&(s+=Mt(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:u}}function ote(e,t){let r=Yt(e),n=nn(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,u=0,l=0;if(o){i=o.width,s=o.height;let c=pd();(!c||c&&t==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:u,y:l}}function ite(e,t){let r=bi(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ar(e)?ts(e):Rn(1),s=e.clientWidth*i.x,u=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:u,x:l,y:c}}function mP(e,t,r){let n;if(t==="viewport")n=ote(e,r);else if(t==="document")n=nte(nn(e));else if(on(t))n=ite(t,r);else{let o=vP(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return gi(n)}function CP(e,t){let r=vi(e);return r===t||!on(r)||zu(r)?!1:pr(r).position==="fixed"||CP(r,t)}function ate(e,t){let r=t.get(e);if(r)return r;let n=yi(e,[],!1).filter(u=>on(u)&&Mn(u)!=="body"),o=null,i=pr(e).position==="fixed",s=i?vi(e):e;for(;on(s)&&!zu(s);){let u=pr(s),l=fd(s);!l&&u.position==="fixed"&&(o=null),(i?!l&&!o:!l&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||es(s)&&!l&&CP(e,s))?n=n.filter(p=>p!==s):o=u,s=vi(s)}return t.set(e,n),n}function ste(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[...r==="clippingAncestors"?ate(t,this._c):[].concat(r),n],u=s[0],l=s.reduce((c,p)=>{let d=mP(t,p,o);return c.top=Mt(d.top,c.top),c.right=en(d.right,c.right),c.bottom=en(d.bottom,c.bottom),c.left=Mt(d.left,c.left),c},mP(t,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ute(e){let{width:t,height:r}=gP(e);return{width:t,height:r}}function lte(e,t,r){let n=Ar(t),o=nn(t),i=r==="fixed",s=bi(e,!0,i,t),u={scrollLeft:0,scrollTop:0},l=Rn(0);if(n||!n&&!i)if((Mn(t)!=="body"||es(o))&&(u=Hu(t)),n){let d=bi(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=bP(o));let c=s.left+u.scrollLeft-l.x,p=s.top+u.scrollTop-l.y;return{x:c,y:p,width:s.width,height:s.height}}function hP(e,t){return!Ar(e)||pr(e).position==="fixed"?null:t?t(e):e.offsetParent}function xP(e,t){let r=Yt(e);if(!Ar(e)||yP(e))return r;let n=hP(e,t);for(;n&&fP(n)&&pr(n).position==="static";)n=hP(n,t);return n&&(Mn(n)==="html"||Mn(n)==="body"&&pr(n).position==="static"&&!fd(n))?r:n||pP(e)||r}var cte=async function(e){let t=this.getOffsetParent||xP,r=this.getDimensions,n=await r(e.floating);return{reference:lte(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function fte(e){return pr(e).direction==="rtl"}var wP={convertOffsetParentRelativeRectToViewportRelativeRect:tte,getDocumentElement:nn,getClippingRect:ste,getOffsetParent:xP,getElementRects:cte,getClientRects:rte,getDimensions:ute,getScale:ts,isElement:on,isRTL:fte};function pte(e,t){let r=null,n,o=nn(e);function i(){var u;clearTimeout(n),(u=r)==null||u.disconnect(),r=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),i();let{left:c,top:p,width:d,height:h}=e.getBoundingClientRect();if(u||t(),!d||!h)return;let g=Lu(p),v=Lu(o.clientWidth-(c+d)),m=Lu(o.clientHeight-(p+h)),y=Lu(c),x={rootMargin:-g+"px "+-v+"px "+-m+"px "+-y+"px",threshold:Mt(0,en(1,l))||1},w=!0;function D(E){let S=E[0].intersectionRatio;if(S!==l){if(!w)return s();S?s(!1,S):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(D,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(D,x)}r.observe(e)}return s(!0),i}function Mh(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Rh(e),p=o||i?[...c?yi(c):[],...yi(t)]:[];p.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});let d=c&&u?pte(c,r):null,h=-1,g=null;s&&(g=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,m=l?bi(e):null;l&&y();function y(){let b=bi(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&r(),m=b,v=requestAnimationFrame(y)}return r(),()=>{var b;p.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(v)}}var Ih=iP;var kh=aP,Vh=nP,Nh=uP,Lh=oP,zh=rP;var Hh=sP,Gh=(e,t,r)=>{let n=new Map,o={platform:wP,...r},i={...o.platform,_c:n};return tP(e,t,{...o,platform:i})};import*as nt from"react";import{useLayoutEffect as dte,useEffect as mte}from"react";import*as EP from"react-dom";var TP=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?zh({element:n.current,padding:o}).fn(r):{}:n?zh({element:n,padding:o}).fn(r):{}}}},dd=typeof document<"u"?dte:mte;function md(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!md(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!md(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function PP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function DP(e,t){let r=PP(e);return Math.round(t*r)/r}function SP(e){let t=nt.useRef(e);return dd(()=>{t.current=e}),t}function AP(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:u=!0,whileElementsMounted:l,open:c}=e,[p,d]=nt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=nt.useState(n);md(h,n)||g(n);let[v,m]=nt.useState(null),[y,b]=nt.useState(null),x=nt.useCallback(re=>{re!==S.current&&(S.current=re,m(re))},[]),w=nt.useCallback(re=>{re!==T.current&&(T.current=re,b(re))},[]),D=i||v,E=s||y,S=nt.useRef(null),T=nt.useRef(null),O=nt.useRef(p),F=l!=null,I=SP(l),G=SP(o),k=nt.useCallback(()=>{if(!S.current||!T.current)return;let re={placement:t,strategy:r,middleware:h};G.current&&(re.platform=G.current),Gh(S.current,T.current,re).then(se=>{let j={...se,isPositioned:!0};H.current&&!md(O.current,j)&&(O.current=j,EP.flushSync(()=>{d(j)}))})},[h,t,r,G]);dd(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(re=>({...re,isPositioned:!1})))},[c]);let H=nt.useRef(!1);dd(()=>(H.current=!0,()=>{H.current=!1}),[]),dd(()=>{if(D&&(S.current=D),E&&(T.current=E),D&&E){if(I.current)return I.current(D,E,k);k()}},[D,E,k,I,F]);let V=nt.useMemo(()=>({reference:S,floating:T,setReference:x,setFloating:w}),[x,w]),M=nt.useMemo(()=>({reference:D,floating:E}),[D,E]),Z=nt.useMemo(()=>{let re={position:r,left:0,top:0};if(!M.floating)return re;let se=DP(M.floating,p.x),j=DP(M.floating,p.y);return u?{...re,transform:"translate("+se+"px, "+j+"px)",...PP(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:j}},[r,u,M.floating,p.x,p.y]);return nt.useMemo(()=>({...p,update:k,refs:V,elements:M,floatingStyles:Z}),[p,k,V,M,Z])}a();import{useState as hte}from"react";function OP(e){let[t,r]=hte(void 0);return Qr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let i=o[0],s,u;if("borderBoxSize"in i){let l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,u=c.blockSize}else s=e.offsetWidth,u=e.offsetHeight;r({width:s,height:u})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var BP="Popper",[$P,jh]=Jr(BP),[yte,RP]=$P(BP),bte=e=>{let{__scopePopper:t,children:r}=e,[n,o]=hd(null);return Gu(yte,{scope:t,anchor:n,onAnchorChange:o},r)},Cte="PopperAnchor",xte=FP((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,i=RP(Cte,r),s=gte(null),u=rt(t,s);return vte(()=>{i.onAnchorChange(n?.current||s.current)}),n?null:Gu(at.div,te({},o,{ref:u}))}),MP="PopperContent",[wte,_nt]=$P(MP),Dte=FP((e,t)=>{var r,n,o,i,s,u,l,c;let{__scopePopper:p,side:d="bottom",sideOffset:h=0,align:g="center",alignOffset:v=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:D=!1,updatePositionStrategy:E="optimized",onPlaced:S,...T}=e,O=RP(MP,p),[F,I]=hd(null),G=rt(t,je=>I(je)),[k,H]=hd(null),V=OP(k),M=(r=V?.width)!==null&&r!==void 0?r:0,Z=(n=V?.height)!==null&&n!==void 0?n:0,re=d+(g!=="center"?"-"+g:""),se=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},j=Array.isArray(b)?b:[b],ne=j.length>0,ce={padding:se,boundary:j.filter(Ste),altBoundary:ne},{refs:pe,floatingStyles:$e,placement:A,isPositioned:_,middlewareData:z}=AP({strategy:"fixed",placement:re,whileElementsMounted:(...je)=>Mh(...je,{animationFrame:E==="always"}),elements:{reference:O.anchor},middleware:[Ih({mainAxis:h+Z,alignmentAxis:v}),y&&kh({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Hh():void 0,...ce}),y&&Vh({...ce}),Nh({...ce,apply:({elements:je,rects:Ye,availableWidth:ke,availableHeight:Tt})=>{let{width:Ct,height:st}=Ye.reference,ut=je.floating.style;ut.setProperty("--radix-popper-available-width",`${ke}px`),ut.setProperty("--radix-popper-available-height",`${Tt}px`),ut.setProperty("--radix-popper-anchor-width",`${Ct}px`),ut.setProperty("--radix-popper-anchor-height",`${st}px`)}}),k&&TP({element:k,padding:m}),Ete({arrowWidth:M,arrowHeight:Z}),D&&Lh({strategy:"referenceHidden",...ce})]}),[U,ue]=IP(A),Q=it(S);Qr(()=>{_&&Q?.()},[_,Q]);let he=(o=z.arrow)===null||o===void 0?void 0:o.x,we=(i=z.arrow)===null||i===void 0?void 0:i.y,Se=((s=z.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ae,Ce]=hd();return Qr(()=>{F&&Ce(window.getComputedStyle(F).zIndex)},[F]),Gu("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...$e,transform:_?$e.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[(u=z.transformOrigin)===null||u===void 0?void 0:u.x,(l=z.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},Gu(wte,{scope:p,placedSide:U,onArrowChange:H,arrowX:he,arrowY:we,shouldHideArrow:Se},Gu(at.div,te({"data-side":U,"data-align":ue},T,{ref:G,style:{...T.style,animation:_?void 0:"none",opacity:(c=z.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function Ste(e){return e!==null}var Ete=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,s;let{placement:u,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[v,m]=IP(u),y={start:"0%",center:"50%",end:"100%"}[m],b=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+h/2,x=((i=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2,w="",D="";return v==="bottom"?(w=d?y:`${b}px`,D=`${-g}px`):v==="top"?(w=d?y:`${b}px`,D=`${l.floating.height+g}px`):v==="right"?(w=`${-g}px`,D=d?y:`${x}px`):v==="left"&&(w=`${l.floating.width+g}px`,D=d?y:`${x}px`),{data:{x:w,y:D}}}});function IP(e){let[t,r="center"]=e.split("-");return[t,r]}var _h=bte,kP=xte,VP=Dte;a();import{forwardRef as Tte,createElement as Pte}from"react";import Ate from"react-dom";var NP=Tte((e,t)=>{var r;let{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?Ate.createPortal(Pte(at.div,te({},o,{ref:t})),n):null});a();import{Children as Ote,cloneElement as Fte,useState as Bte,useRef as Wh,useEffect as $te,useCallback as Rte,useReducer as Mte}from"react";import{flushSync as Ite}from"react-dom";function kte(e,t){return Mte((r,n)=>{let o=t[r][n];return o??r},e)}var rs=e=>{let{present:t,children:r}=e,n=Vte(t),o=typeof r=="function"?r({present:n.isPresent}):Ote.only(r),i=rt(n.ref,o.ref);return typeof r=="function"||n.isPresent?Fte(o,{ref:i}):null};rs.displayName="Presence";function Vte(e){let[t,r]=Bte(),n=Wh({}),o=Wh(e),i=Wh("none"),s=e?"mounted":"unmounted",[u,l]=kte(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $te(()=>{let c=gd(n.current);i.current=u==="mounted"?c:"none"},[u]),Qr(()=>{let c=n.current,p=o.current;if(p!==e){let h=i.current,g=gd(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Qr(()=>{if(t){let c=d=>{let g=gd(n.current).includes(d.animationName);d.target===t&&g&&Ite(()=>l("ANIMATION_END"))},p=d=>{d.target===t&&(i.current=gd(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:Rte(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function gd(e){return e?.animationName||"none"}a();import{forwardRef as qh,createElement as Ci,useRef as LP,useState as zP,useEffect as HP,useCallback as vd}from"react";var Uh="rovingFocusGroup.onEntryFocus",Nte={bubbles:!1,cancelable:!0},Xh="RovingFocusGroup",[Kh,GP,Lte]=nd(Xh),[zte,Yh]=Jr(Xh,[Lte]),[Hte,Gte]=zte(Xh),jte=qh((e,t)=>Ci(Kh.Provider,{scope:e.__scopeRovingFocusGroup},Ci(Kh.Slot,{scope:e.__scopeRovingFocusGroup},Ci(_te,te({},e,{ref:t}))))),_te=qh((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:l,onEntryFocus:c,...p}=e,d=LP(null),h=rt(t,d),g=od(i),[v=null,m]=Mu({prop:s,defaultProp:u,onChange:l}),[y,b]=zP(!1),x=it(c),w=GP(r),D=LP(!1),[E,S]=zP(0);return HP(()=>{let T=d.current;if(T)return T.addEventListener(Uh,x),()=>T.removeEventListener(Uh,x)},[x]),Ci(Hte,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:v,onItemFocus:vd(T=>m(T),[m]),onItemShiftTab:vd(()=>b(!0),[]),onFocusableItemAdd:vd(()=>S(T=>T+1),[]),onFocusableItemRemove:vd(()=>S(T=>T-1),[])},Ci(at.div,te({tabIndex:y||E===0?-1:0,"data-orientation":n},p,{ref:h,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{D.current=!0}),onFocus:ye(e.onFocus,T=>{let O=!D.current;if(T.target===T.currentTarget&&O&&!y){let F=new CustomEvent(Uh,Nte);if(T.currentTarget.dispatchEvent(F),!F.defaultPrevented){let I=w().filter(M=>M.focusable),G=I.find(M=>M.active),k=I.find(M=>M.id===v),V=[G,k,...I].filter(Boolean).map(M=>M.ref.current);jP(V)}}D.current=!1}),onBlur:ye(e.onBlur,()=>b(!1))})))}),Wte="RovingFocusGroupItem",Ute=qh((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,...s}=e,u=Do(),l=i||u,c=Gte(Wte,r),p=c.currentTabStopId===l,d=GP(r),{onFocusableItemAdd:h,onFocusableItemRemove:g}=c;return HP(()=>{if(n)return h(),()=>g()},[n,h,g]),Ci(Kh.ItemSlot,{scope:r,id:l,focusable:n,active:o},Ci(at.span,te({tabIndex:p?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:ye(e.onMouseDown,v=>{n?c.onItemFocus(l):v.preventDefault()}),onFocus:ye(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;let m=Xte(v,c.orientation,c.dir);if(m!==void 0){v.preventDefault();let b=d().filter(x=>x.focusable).map(x=>x.ref.current);if(m==="last")b.reverse();else if(m==="prev"||m==="next"){m==="prev"&&b.reverse();let x=b.indexOf(v.currentTarget);b=c.loop?Yte(b,x+1):b.slice(x+1)}setTimeout(()=>jP(b))}})})))}),Kte={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qte(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Xte(e,t,r){let n=qte(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Kte[n]}function jP(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Yte(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var _P=jte,WP=Ute;a();var Jte=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ns=new WeakMap,yd=new WeakMap,bd={},Jh=0,UP=function(e){return e&&(e.host||UP(e.parentNode))},Zte=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=UP(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Qte=function(e,t,r,n){var o=Zte(t,Array.isArray(e)?e:[e]);bd[r]||(bd[r]=new WeakMap);var i=bd[r],s=[],u=new Set,l=new Set(o),c=function(d){!d||u.has(d)||(u.add(d),c(d.parentNode))};o.forEach(c);var p=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(u.has(h))p(h);else try{var g=h.getAttribute(n),v=g!==null&&g!=="false",m=(ns.get(h)||0)+1,y=(i.get(h)||0)+1;ns.set(h,m),i.set(h,y),s.push(h),m===1&&v&&yd.set(h,!0),y===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return p(t),u.clear(),Jh++,function(){s.forEach(function(d){var h=ns.get(d)-1,g=i.get(d)-1;ns.set(d,h),i.set(d,g),h||(yd.has(d)||d.removeAttribute(n),yd.delete(d)),g||d.removeAttribute(r)}),Jh--,Jh||(ns=new WeakMap,ns=new WeakMap,yd=new WeakMap,bd={})}},KP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Jte(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Qte(n,o,r,"aria-hidden")):function(){return null}};a();a();a();var Jt=function(){return Jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jt.apply(this,arguments)};function Cd(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function qP(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}import*as Ed from"react";a();import*as Dt from"react";a();var xi="right-scroll-bar-position",wi="width-before-scroll-bar",Zh="with-scroll-bars-hidden",Qh="--removed-body-scroll-bar-size";a();a();function xd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}a();import{useState as ere}from"react";function XP(e,t){var r=ere(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}a();import*as wd from"react";var tre=typeof window<"u"?wd.useLayoutEffect:wd.useEffect,YP=new WeakMap;function eg(e,t){var r=XP(t||null,function(n){return e.forEach(function(o){return xd(o,n)})});return tre(function(){var n=YP.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(u){i.has(u)||xd(u,null)}),i.forEach(function(u){o.has(u)||xd(u,s)})}YP.set(r,e)},[e]),r}a();a();a();function rre(e){return e}function nre(e,t){t===void 0&&(t=rre);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(u){return i(u)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var u=r;r=[],u.forEach(i),s=r}var l=function(){var p=s;s=[],p.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),r}}}};return o}function tg(e){e===void 0&&(e={});var t=nre(null);return t.options=Jt({async:!0,ssr:!1},e),t}a();import*as JP from"react";var ZP=function(e){var t=e.sideCar,r=Cd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return JP.createElement(n,Jt({},r))};ZP.isSideCarExport=!0;function rg(e,t){return e.useMedium(t),ZP}var Dd=tg();var ng=function(){},ju=Dt.forwardRef(function(e,t){var r=Dt.useRef(null),n=Dt.useState({onScrollCapture:ng,onWheelCapture:ng,onTouchMoveCapture:ng}),o=n[0],i=n[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=Cd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,D=eg([r,t]),E=Jt(Jt({},x),o);return Dt.createElement(Dt.Fragment,null,p&&Dt.createElement(w,{sideCar:Dd,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:i,allowPinchZoom:!!m,lockRef:r}),s?Dt.cloneElement(Dt.Children.only(u),Jt(Jt({},E),{ref:D})):Dt.createElement(b,Jt({},E,{className:l,ref:D}),u))});ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ju.classNames={fullWidth:wi,zeroRight:xi};a();a();import*as ze from"react";a();a();import*as is from"react";a();a();a();import*as tA from"react";a();a();var QP;var eA=function(){if(QP)return QP;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ore(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eA();return t&&e.setAttribute("nonce",t),e}function ire(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function are(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var og=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ore())&&(ire(t,r),are(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var ig=function(){var e=og();return function(t,r){tA.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var _u=function(){var e=ig(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};a();var sre={left:0,top:0,right:0,gap:0},ag=function(e){return parseInt(e||"",10)||0},ure=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ag(r),ag(n),ag(o)]},sg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sre;var t=ure(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var lre=_u(),os="data-scroll-locked",cre=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,u=e.gap;return r===void 0&&(r="margin"),`
|
|
2043
|
+
`,AT=({placement:e="left",align:t="top",gap:r="1.5rem",item:n,children:o,...i})=>XQ(PT,{...i,children:[$(n)?TT(qQ,{align:t,gap:r,placement:e,children:n}):null,TT(KQ,{align:t,children:o})]});AT.displayName="MediaObject_VHS";a();import{useState as sne}from"react";import Sg,{css as une,keyframes as eO}from"styled-components";a();import{useRef as zA,createElement as St,useCallback as ene,forwardRef as Fr}from"react";a();function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}a();import{useCallback as YQ}from"react";function JQ(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function di(...e){return t=>e.forEach(r=>JQ(r,t))}function rt(...e){return YQ(di(...e),e)}a();import{createContext as OT,useMemo as Sh,createElement as ZQ,useContext as QQ}from"react";function Jr(e,t=[]){let r=[];function n(i,s){let u=OT(s),l=r.length;r=[...r,s];function c(d){let{scope:h,children:g,...v}=d,m=h?.[e][l]||u,y=Sh(()=>v,Object.values(v));return ZQ(m.Provider,{value:y},g)}function p(d,h){let g=h?.[e][l]||u,v=QQ(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${i}\``)}return c.displayName=i+"Provider",[c,p]}let o=()=>{let i=r.map(s=>OT(s));return function(u){let l=u?.[e]||i;return Sh(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,eee(o,...t)]}function eee(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(i)[`__scope${c}`];return{...u,...d}},{});return Sh(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}a();import{useCallback as oee,useState as iee,useRef as aee,useEffect as see}from"react";a();import{useRef as tee,useEffect as ree,useMemo as nee}from"react";function it(e){let t=tee(e);return ree(()=>{t.current=e}),nee(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Mu({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=uee({defaultProp:t,onChange:r}),i=e!==void 0,s=i?e:n,u=it(r),l=oee(c=>{if(i){let d=typeof c=="function"?c(e):c;d!==e&&u(d)}else o(c)},[i,e,o,u]);return[s,l]}function uee({defaultProp:e,onChange:t}){let r=iee(e),[n]=r,o=aee(n),i=it(t);return see(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}a();import{forwardRef as dee,useEffect as mee,createElement as hee}from"react";import{flushSync as gee}from"react-dom";a();import{forwardRef as FT,Children as Iu,isValidElement as td,createElement as Eh,cloneElement as BT,Fragment as lee}from"react";var xo=FT((e,t)=>{let{children:r,...n}=e,o=Iu.toArray(r),i=o.find(fee);if(i){let s=i.props.children,u=o.map(l=>l===i?Iu.count(s)>1?Iu.only(null):td(s)?s.props.children:null:l);return Eh(Th,te({},n,{ref:t}),td(s)?BT(s,void 0,u):null)}return Eh(Th,te({},n,{ref:t}),r)});xo.displayName="Slot";var Th=FT((e,t)=>{let{children:r,...n}=e;return td(r)?BT(r,{...pee(n,r.props),ref:t?di(t,r.ref):r.ref}):Iu.count(r)>1?Iu.only(null):null});Th.displayName="SlotClone";var cee=({children:e})=>Eh(lee,null,e);function fee(e){return td(e)&&e.type===cee}function pee(e,t){let r={...t};for(let n in t){let o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...u)=>{i(...u),o(...u)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}var vee=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],at=vee.reduce((e,t)=>{let r=dee((n,o)=>{let{asChild:i,...s}=n,u=i?xo:t;return mee(()=>{window[Symbol.for("radix-ui")]=!0},[]),hee(u,te({},s,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function rd(e,t){e&&gee(()=>e.dispatchEvent(t))}a();import{useState as ss,useRef as Zt,useEffect as Ei,createElement as ge,useCallback as Si,forwardRef as It,Fragment as bre}from"react";a();import Zr from"react";function nd(e){let t=e+"CollectionProvider",[r,n]=Jr(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:m}=g,y=Zr.useRef(null),b=Zr.useRef(new Map).current;return Zr.createElement(o,{scope:v,itemMap:b,collectionRef:y},m)},u=e+"CollectionSlot",l=Zr.forwardRef((g,v)=>{let{scope:m,children:y}=g,b=i(u,m),x=rt(v,b.collectionRef);return Zr.createElement(xo,{ref:x},y)}),c=e+"CollectionItemSlot",p="data-radix-collection-item",d=Zr.forwardRef((g,v)=>{let{scope:m,children:y,...b}=g,x=Zr.useRef(null),w=rt(v,x),D=i(c,m);return Zr.useEffect(()=>(D.itemMap.set(x,{ref:x,...b}),()=>void D.itemMap.delete(x))),Zr.createElement(xo,{[p]:"",ref:w},y)});function h(g){let v=i(e+"CollectionConsumer",g);return Zr.useCallback(()=>{let y=v.collectionRef.current;if(!y)return[];let b=Array.from(y.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((D,E)=>b.indexOf(D.ref.current)-b.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},h,n]}a();import{createContext as yee,createElement as Prt,useContext as bee}from"react";var Cee=yee(void 0);function od(e){let t=bee(Cee);return e||t||"ltr"}a();import{createContext as wee,forwardRef as Dee,useContext as See,useState as RT,useEffect as ku,createElement as Eee,useRef as Ph}from"react";a();import{useEffect as xee}from"react";function $T(e,t=globalThis?.document){let r=it(e);xee(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}var Ah="dismissableLayer.update",Tee="dismissableLayer.pointerDownOutside",Pee="dismissableLayer.focusOutside",MT,Aee=wee({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kT=Dee((e,t)=>{var r;let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:u,onDismiss:l,...c}=e,p=See(Aee),[d,h]=RT(null),g=(r=d?.ownerDocument)!==null&&r!==void 0?r:globalThis?.document,[,v]=RT({}),m=rt(t,O=>h(O)),y=Array.from(p.layers),[b]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),x=y.indexOf(b),w=d?y.indexOf(d):-1,D=p.layersWithOutsidePointerEventsDisabled.size>0,E=w>=x,S=Oee(O=>{let F=O.target,I=[...p.branches].some(G=>G.contains(F));!E||I||(i?.(O),u?.(O),O.defaultPrevented||l?.())},g),T=Fee(O=>{let F=O.target;[...p.branches].some(G=>G.contains(F))||(s?.(O),u?.(O),O.defaultPrevented||l?.())},g);return $T(O=>{w===p.layers.size-1&&(o?.(O),!O.defaultPrevented&&l&&(O.preventDefault(),l()))},g),ku(()=>{if(d)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(MT=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(d)),p.layers.add(d),IT(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=MT)}},[d,g,n,p]),ku(()=>()=>{d&&(p.layers.delete(d),p.layersWithOutsidePointerEventsDisabled.delete(d),IT())},[d,p]),ku(()=>{let O=()=>v({});return document.addEventListener(Ah,O),()=>document.removeEventListener(Ah,O)},[]),Eee(at.div,te({},c,{ref:m,style:{pointerEvents:D?E?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,T.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,S.onPointerDownCapture)}))});function Oee(e,t=globalThis?.document){let r=it(e),n=Ph(!1),o=Ph(()=>{});return ku(()=>{let i=u=>{if(u.target&&!n.current){let c=function(){VT(Tee,r,l,{discrete:!0})},l={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);n.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Fee(e,t=globalThis?.document){let r=it(e),n=Ph(!1);return ku(()=>{let o=i=>{i.target&&!n.current&&VT(Pee,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function IT(){let e=new CustomEvent(Ah);document.dispatchEvent(e)}function VT(e,t,r,{discrete:n}){let o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?rd(o,i):o.dispatchEvent(i)}a();import{useEffect as Bee}from"react";var Oh=0;function LT(){Bee(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:NT()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:NT()),Oh++,()=>{Oh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Oh--}},[])}function NT(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}a();import{forwardRef as $ee,useState as Ree,useRef as zT,useEffect as HT,useCallback as Mee,createElement as Iee}from"react";var Fh="focusScope.autoFocusOnMount",Bh="focusScope.autoFocusOnUnmount",GT={bubbles:!1,cancelable:!0};var UT=$ee((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[u,l]=Ree(null),c=it(o),p=it(i),d=zT(null),h=rt(t,m=>l(m)),g=zT({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;HT(()=>{if(n){let m=function(w){if(g.paused||!u)return;let D=w.target;u.contains(D)?d.current=D:wo(d.current,{select:!0})},y=function(w){if(g.paused||!u)return;let D=w.relatedTarget;D!==null&&(u.contains(D)||wo(d.current,{select:!0}))},b=function(w){if(document.activeElement===document.body)for(let E of w)E.removedNodes.length>0&&wo(u)};document.addEventListener("focusin",m),document.addEventListener("focusout",y);let x=new MutationObserver(b);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",y),x.disconnect()}}},[n,u,g.paused]),HT(()=>{if(u){_T.add(g);let m=document.activeElement;if(!u.contains(m)){let b=new CustomEvent(Fh,GT);u.addEventListener(Fh,c),u.dispatchEvent(b),b.defaultPrevented||(kee(Hee(KT(u)),{select:!0}),document.activeElement===m&&wo(u))}return()=>{u.removeEventListener(Fh,c),setTimeout(()=>{let b=new CustomEvent(Bh,GT);u.addEventListener(Bh,p),u.dispatchEvent(b),b.defaultPrevented||wo(m??document.body,{select:!0}),u.removeEventListener(Bh,p),_T.remove(g)},0)}}},[u,c,p,g]);let v=Mee(m=>{if(!r&&!n||g.paused)return;let y=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,b=document.activeElement;if(y&&b){let x=m.currentTarget,[w,D]=Vee(x);w&&D?!m.shiftKey&&b===D?(m.preventDefault(),r&&wo(w,{select:!0})):m.shiftKey&&b===w&&(m.preventDefault(),r&&wo(D,{select:!0})):b===x&&m.preventDefault()}},[r,n,g.paused]);return Iee(at.div,te({tabIndex:-1},s,{ref:h,onKeyDown:v}))});function kee(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(wo(n,{select:t}),document.activeElement!==r)return}function Vee(e){let t=KT(e),r=jT(t,e),n=jT(t.reverse(),e);return[r,n]}function KT(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function jT(e,t){for(let r of e)if(!Nee(r,{upTo:t}))return r}function Nee(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Lee(e){return e instanceof HTMLInputElement&&"select"in e}function wo(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Lee(e)&&t&&e.select()}}var _T=zee();function zee(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=WT(e,t),e.unshift(t)},remove(t){var r;e=WT(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function WT(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function Hee(e){return e.filter(t=>t.tagName!=="A")}a();import*as id from"react";a();import{useLayoutEffect as Gee}from"react";var Qr=globalThis?.document?Gee:()=>{};var jee=id.useId||(()=>{}),_ee=0;function Do(e){let[t,r]=id.useState(jee());return Qr(()=>{e||r(n=>n??String(_ee++))},[e]),e||(t?`radix-${t}`:"")}a();import{useState as hd,createElement as Gu,forwardRef as FP,useRef as mte,useEffect as hte}from"react";a();a();a();a();var qT=["top","right","bottom","left"];var en=Math.min,Mt=Math.max,Nu=Math.round,Lu=Math.floor,Rn=e=>({x:e,y:e}),Wee={left:"right",right:"left",bottom:"top",top:"bottom"},Uee={start:"end",end:"start"};function sd(e,t,r){return Mt(e,en(t,r))}function tn(e,t){return typeof e=="function"?e(t):e}function rn(e){return e.split("-")[0]}function mi(e){return e.split("-")[1]}function ud(e){return e==="x"?"y":"x"}function ld(e){return e==="y"?"height":"width"}function hi(e){return["top","bottom"].includes(rn(e))?"y":"x"}function cd(e){return ud(hi(e))}function XT(e,t,r){r===void 0&&(r=!1);let n=mi(e),o=cd(e),i=ld(o),s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vu(s)),[s,Vu(s)]}function YT(e){let t=Vu(e);return[ad(e),t,ad(t)]}function ad(e){return e.replace(/start|end/g,t=>Uee[t])}function Kee(e,t,r){let n=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:s;default:return[]}}function JT(e,t,r,n){let o=mi(e),i=Kee(rn(e),r==="start",n);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(ad)))),i}function Vu(e){return e.replace(/left|right|bottom|top/g,t=>Wee[t])}function qee(e){return{top:0,right:0,bottom:0,left:0,...e}}function $h(e){return typeof e!="number"?qee(e):{top:e,right:e,bottom:e,left:e}}function gi(e){let{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}function ZT(e,t,r){let{reference:n,floating:o}=e,i=hi(t),s=cd(t),u=ld(s),l=rn(t),c=i==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,h=n[u]/2-o[u]/2,g;switch(l){case"top":g={x:p,y:n.y-o.height};break;case"bottom":g={x:p,y:n.y+n.height};break;case"right":g={x:n.x+n.width,y:d};break;case"left":g={x:n.x-o.width,y:d};break;default:g={x:n.x,y:n.y}}switch(mi(t)){case"start":g[s]-=h*(r&&c?-1:1);break;case"end":g[s]+=h*(r&&c?-1:1);break}return g}var tP=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:s}=r,u=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:d}=ZT(c,n,l),h=n,g={},v=0;for(let m=0;m<u.length;m++){let{name:y,fn:b}=u[m],{x,y:w,data:D,reset:E}=await b({x:p,y:d,initialPlacement:n,placement:h,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,d=w??d,g={...g,[y]:{...g[y],...D}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:d}=ZT(c,h,l)),m=-1)}return{x:p,y:d,placement:h,strategy:o,middlewareData:g}};async function Qa(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:i,rects:s,elements:u,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=tn(t,e),v=$h(g),y=u[h?d==="floating"?"reference":"floating":d],b=gi(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(y)))==null||r?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:c,rootBoundary:p,strategy:l})),x=d==="floating"?{x:n,y:o,width:s.floating.width,height:s.floating.height}:s.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),D=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},E=gi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:w,strategy:l}):x);return{top:(b.top-E.top+v.top)/D.y,bottom:(E.bottom-b.bottom+v.bottom)/D.y,left:(b.left-E.left+v.left)/D.x,right:(E.right-b.right+v.right)/D.x}}var rP=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:i,platform:s,elements:u,middlewareData:l}=t,{element:c,padding:p=0}=tn(e,t)||{};if(c==null)return{};let d=$h(p),h={x:r,y:n},g=cd(o),v=ld(g),m=await s.getDimensions(c),y=g==="y",b=y?"top":"left",x=y?"bottom":"right",w=y?"clientHeight":"clientWidth",D=i.reference[v]+i.reference[g]-h[g]-i.floating[v],E=h[g]-i.reference[g],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),T=S?S[w]:0;(!T||!await(s.isElement==null?void 0:s.isElement(S)))&&(T=u.floating[w]||i.floating[v]);let O=D/2-E/2,F=T/2-m[v]/2-1,I=en(d[b],F),G=en(d[x],F),k=I,H=T-m[v]-G,V=T/2-m[v]/2+O,M=sd(k,V,H),Z=!l.arrow&&mi(o)!=null&&V!==M&&i.reference[v]/2-(V<k?I:G)-m[v]/2<0,re=Z?V<k?V-k:V-H:0;return{[g]:h[g]+re,data:{[g]:M,centerOffset:V-M-re,...Z&&{alignmentOffset:re}},reset:Z}}});var nP=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:i,rects:s,initialPlacement:u,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...y}=tn(e,t);if((r=i.arrow)!=null&&r.alignmentOffset)return{};let b=rn(o),x=rn(u)===u,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),D=h||(x||!m?[Vu(u)]:YT(u));!h&&v!=="none"&&D.push(...JT(u,m,v,w));let E=[u,...D],S=await Qa(t,y),T=[],O=((n=i.flip)==null?void 0:n.overflows)||[];if(p&&T.push(S[b]),d){let k=XT(o,s,w);T.push(S[k[0]],S[k[1]])}if(O=[...O,{placement:o,overflows:T}],!T.every(k=>k<=0)){var F,I;let k=(((F=i.flip)==null?void 0:F.index)||0)+1,H=E[k];if(H)return{data:{index:k,overflows:O},reset:{placement:H}};let V=(I=O.filter(M=>M.overflows[0]<=0).sort((M,Z)=>M.overflows[1]-Z.overflows[1])[0])==null?void 0:I.placement;if(!V)switch(g){case"bestFit":{var G;let M=(G=O.map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,se)=>re+se,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:G[0];M&&(V=M);break}case"initialPlacement":V=u;break}if(o!==V)return{reset:{placement:V}}}return{}}}};function QT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function eP(e){return qT.some(t=>e[t]>=0)}var oP=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=tn(e,t);switch(n){case"referenceHidden":{let i=await Qa(t,{...o,elementContext:"reference"}),s=QT(i,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:eP(s)}}}case"escaped":{let i=await Qa(t,{...o,altBoundary:!0}),s=QT(i,r.floating);return{data:{escapedOffsets:s,escaped:eP(s)}}}default:return{}}}}};async function Xee(e,t){let{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=rn(r),u=mi(r),l=hi(r)==="y",c=["left","top"].includes(s)?-1:1,p=i&&l?-1:1,d=tn(t,e),{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return u&&typeof v=="number"&&(g=u==="end"?v*-1:v),l?{x:g*p,y:h*c}:{x:h*c,y:g*p}}var iP=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:i,placement:s,middlewareData:u}=t,l=await Xee(t,e);return s===((r=u.offset)==null?void 0:r.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},aP=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...l}=tn(e,t),c={x:r,y:n},p=await Qa(t,l),d=hi(rn(o)),h=ud(d),g=c[h],v=c[d];if(i){let y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",x=g+p[y],w=g-p[b];g=sd(x,g,w)}if(s){let y=d==="y"?"top":"left",b=d==="y"?"bottom":"right",x=v+p[y],w=v-p[b];v=sd(x,v,w)}let m=u.fn({...t,[h]:g,[d]:v});return{...m,data:{x:m.x-r,y:m.y-n}}}}},sP=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:i,middlewareData:s}=t,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=tn(e,t),p={x:r,y:n},d=hi(o),h=ud(d),g=p[h],v=p[d],m=tn(u,t),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let w=h==="y"?"height":"width",D=i.reference[h]-i.floating[w]+y.mainAxis,E=i.reference[h]+i.reference[w]-y.mainAxis;g<D?g=D:g>E&&(g=E)}if(c){var b,x;let w=h==="y"?"width":"height",D=["top","left"].includes(rn(o)),E=i.reference[d]-i.floating[w]+(D&&((b=s.offset)==null?void 0:b[d])||0)+(D?0:y.crossAxis),S=i.reference[d]+i.reference[w]+(D?0:((x=s.offset)==null?void 0:x[d])||0)-(D?y.crossAxis:0);v<E?v=E:v>S&&(v=S)}return{[h]:g,[d]:v}}}},uP=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:n,platform:o,elements:i}=t,{apply:s=()=>{},...u}=tn(e,t),l=await Qa(t,u),c=rn(r),p=mi(r),d=hi(r)==="y",{width:h,height:g}=n.floating,v,m;c==="top"||c==="bottom"?(v=c,m=p===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,v=p==="end"?"top":"bottom");let y=g-l[v],b=h-l[m],x=!t.middlewareData.shift,w=y,D=b;if(d){let S=h-l.left-l.right;D=p||x?en(b,S):S}else{let S=g-l.top-l.bottom;w=p||x?en(y,S):S}if(x&&!p){let S=Mt(l.left,0),T=Mt(l.right,0),O=Mt(l.top,0),F=Mt(l.bottom,0);d?D=h-2*(S!==0||T!==0?S+T:Mt(l.left,l.right)):w=g-2*(O!==0||F!==0?O+F:Mt(l.top,l.bottom))}await s({...t,availableWidth:D,availableHeight:w});let E=await o.getDimensions(i.floating);return h!==E.width||g!==E.height?{reset:{rects:!0}}:{}}}};a();function Mn(e){return cP(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nn(e){var t;return(t=(cP(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cP(e){return e instanceof Node||e instanceof Yt(e).Node}function on(e){return e instanceof Element||e instanceof Yt(e).Element}function Ar(e){return e instanceof HTMLElement||e instanceof Yt(e).HTMLElement}function lP(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function es(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=pr(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function fP(e){return["table","td","th"].includes(Mn(e))}function fd(e){let t=pd(),r=pr(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function pP(e){let t=vi(e);for(;Ar(t)&&!zu(t);){if(fd(t))return t;t=vi(t)}return null}function pd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zu(e){return["html","body","#document"].includes(Mn(e))}function pr(e){return Yt(e).getComputedStyle(e)}function Hu(e){return on(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function vi(e){if(Mn(e)==="html")return e;let t=e.assignedSlot||e.parentNode||lP(e)&&e.host||nn(e);return lP(t)?t.host:t}function dP(e){let t=vi(e);return zu(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ar(t)&&es(t)?t:dP(t)}function yi(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=dP(e),i=o===((n=e.ownerDocument)==null?void 0:n.body),s=Yt(o);return i?t.concat(s,s.visualViewport||[],es(o)?o:[],s.frameElement&&r?yi(s.frameElement):[]):t.concat(o,yi(o,[],r))}function gP(e){let t=pr(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=Ar(e),i=o?e.offsetWidth:r,s=o?e.offsetHeight:n,u=Nu(r)!==i||Nu(n)!==s;return u&&(r=i,n=s),{width:r,height:n,$:u}}function Rh(e){return on(e)?e:e.contextElement}function ts(e){let t=Rh(e);if(!Ar(t))return Rn(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:i}=gP(t),s=(i?Nu(r.width):r.width)/n,u=(i?Nu(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}var Yee=Rn(0);function vP(e){let t=Yt(e);return!pd()||!t.visualViewport?Yee:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Jee(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Yt(e)?!1:t}function bi(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),i=Rh(e),s=Rn(1);t&&(n?on(n)&&(s=ts(n)):s=ts(e));let u=Jee(i,r,n)?vP(i):Rn(0),l=(o.left+u.x)/s.x,c=(o.top+u.y)/s.y,p=o.width/s.x,d=o.height/s.y;if(i){let h=Yt(i),g=n&&on(n)?Yt(n):n,v=h,m=v.frameElement;for(;m&&n&&g!==v;){let y=ts(m),b=m.getBoundingClientRect(),x=pr(m),w=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,D=b.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,p*=y.x,d*=y.y,l+=w,c+=D,v=Yt(m),m=v.frameElement}}return gi({width:p,height:d,x:l,y:c})}var Zee=[":popover-open",":modal"];function yP(e){return Zee.some(t=>{try{return e.matches(t)}catch{return!1}})}function Qee(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,i=o==="fixed",s=nn(n),u=t?yP(t.floating):!1;if(n===s||u&&i)return r;let l={scrollLeft:0,scrollTop:0},c=Rn(1),p=Rn(0),d=Ar(n);if((d||!d&&!i)&&((Mn(n)!=="body"||es(s))&&(l=Hu(n)),Ar(n))){let h=bi(n);c=ts(n),p.x=h.x+n.clientLeft,p.y=h.y+n.clientTop}return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x,y:r.y*c.y-l.scrollTop*c.y+p.y}}function ete(e){return Array.from(e.getClientRects())}function bP(e){return bi(nn(e)).left+Hu(e).scrollLeft}function tte(e){let t=nn(e),r=Hu(e),n=e.ownerDocument.body,o=Mt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Mt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+bP(e),u=-r.scrollTop;return pr(n).direction==="rtl"&&(s+=Mt(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:s,y:u}}function rte(e,t){let r=Yt(e),n=nn(e),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,u=0,l=0;if(o){i=o.width,s=o.height;let c=pd();(!c||c&&t==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:u,y:l}}function nte(e,t){let r=bi(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=Ar(e)?ts(e):Rn(1),s=e.clientWidth*i.x,u=e.clientHeight*i.y,l=o*i.x,c=n*i.y;return{width:s,height:u,x:l,y:c}}function mP(e,t,r){let n;if(t==="viewport")n=rte(e,r);else if(t==="document")n=tte(nn(e));else if(on(t))n=nte(t,r);else{let o=vP(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return gi(n)}function CP(e,t){let r=vi(e);return r===t||!on(r)||zu(r)?!1:pr(r).position==="fixed"||CP(r,t)}function ote(e,t){let r=t.get(e);if(r)return r;let n=yi(e,[],!1).filter(u=>on(u)&&Mn(u)!=="body"),o=null,i=pr(e).position==="fixed",s=i?vi(e):e;for(;on(s)&&!zu(s);){let u=pr(s),l=fd(s);!l&&u.position==="fixed"&&(o=null),(i?!l&&!o:!l&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||es(s)&&!l&&CP(e,s))?n=n.filter(p=>p!==s):o=u,s=vi(s)}return t.set(e,n),n}function ite(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[...r==="clippingAncestors"?ote(t,this._c):[].concat(r),n],u=s[0],l=s.reduce((c,p)=>{let d=mP(t,p,o);return c.top=Mt(d.top,c.top),c.right=en(d.right,c.right),c.bottom=en(d.bottom,c.bottom),c.left=Mt(d.left,c.left),c},mP(t,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ate(e){let{width:t,height:r}=gP(e);return{width:t,height:r}}function ste(e,t,r){let n=Ar(t),o=nn(t),i=r==="fixed",s=bi(e,!0,i,t),u={scrollLeft:0,scrollTop:0},l=Rn(0);if(n||!n&&!i)if((Mn(t)!=="body"||es(o))&&(u=Hu(t)),n){let d=bi(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=bP(o));let c=s.left+u.scrollLeft-l.x,p=s.top+u.scrollTop-l.y;return{x:c,y:p,width:s.width,height:s.height}}function hP(e,t){return!Ar(e)||pr(e).position==="fixed"?null:t?t(e):e.offsetParent}function xP(e,t){let r=Yt(e);if(!Ar(e)||yP(e))return r;let n=hP(e,t);for(;n&&fP(n)&&pr(n).position==="static";)n=hP(n,t);return n&&(Mn(n)==="html"||Mn(n)==="body"&&pr(n).position==="static"&&!fd(n))?r:n||pP(e)||r}var ute=async function(e){let t=this.getOffsetParent||xP,r=this.getDimensions,n=await r(e.floating);return{reference:ste(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function lte(e){return pr(e).direction==="rtl"}var wP={convertOffsetParentRelativeRectToViewportRelativeRect:Qee,getDocumentElement:nn,getClippingRect:ite,getOffsetParent:xP,getElementRects:ute,getClientRects:ete,getDimensions:ate,getScale:ts,isElement:on,isRTL:lte};function cte(e,t){let r=null,n,o=nn(e);function i(){var u;clearTimeout(n),(u=r)==null||u.disconnect(),r=null}function s(u,l){u===void 0&&(u=!1),l===void 0&&(l=1),i();let{left:c,top:p,width:d,height:h}=e.getBoundingClientRect();if(u||t(),!d||!h)return;let g=Lu(p),v=Lu(o.clientWidth-(c+d)),m=Lu(o.clientHeight-(p+h)),y=Lu(c),x={rootMargin:-g+"px "+-v+"px "+-m+"px "+-y+"px",threshold:Mt(0,en(1,l))||1},w=!0;function D(E){let S=E[0].intersectionRatio;if(S!==l){if(!w)return s();S?s(!1,S):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(D,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(D,x)}r.observe(e)}return s(!0),i}function Mh(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Rh(e),p=o||i?[...c?yi(c):[],...yi(t)]:[];p.forEach(b=>{o&&b.addEventListener("scroll",r,{passive:!0}),i&&b.addEventListener("resize",r)});let d=c&&u?cte(c,r):null,h=-1,g=null;s&&(g=new ResizeObserver(b=>{let[x]=b;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,m=l?bi(e):null;l&&y();function y(){let b=bi(e);m&&(b.x!==m.x||b.y!==m.y||b.width!==m.width||b.height!==m.height)&&r(),m=b,v=requestAnimationFrame(y)}return r(),()=>{var b;p.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),d?.(),(b=g)==null||b.disconnect(),g=null,l&&cancelAnimationFrame(v)}}var Ih=iP;var kh=aP,Vh=nP,Nh=uP,Lh=oP,zh=rP;var Hh=sP,Gh=(e,t,r)=>{let n=new Map,o={platform:wP,...r},i={...o.platform,_c:n};return tP(e,t,{...o,platform:i})};import*as nt from"react";import{useLayoutEffect as fte,useEffect as pte}from"react";import*as EP from"react-dom";var TP=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){let{element:n,padding:o}=typeof e=="function"?e(r):e;return n&&t(n)?n.current!=null?zh({element:n.current,padding:o}).fn(r):{}:n?zh({element:n,padding:o}).fn(r):{}}}},dd=typeof document<"u"?fte:pte;function md(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;n--!==0;)if(!md(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){let i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!md(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function PP(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function DP(e,t){let r=PP(e);return Math.round(t*r)/r}function SP(e){let t=nt.useRef(e);return dd(()=>{t.current=e}),t}function AP(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:s}={},transform:u=!0,whileElementsMounted:l,open:c}=e,[p,d]=nt.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[h,g]=nt.useState(n);md(h,n)||g(n);let[v,m]=nt.useState(null),[y,b]=nt.useState(null),x=nt.useCallback(re=>{re!==S.current&&(S.current=re,m(re))},[]),w=nt.useCallback(re=>{re!==T.current&&(T.current=re,b(re))},[]),D=i||v,E=s||y,S=nt.useRef(null),T=nt.useRef(null),O=nt.useRef(p),F=l!=null,I=SP(l),G=SP(o),k=nt.useCallback(()=>{if(!S.current||!T.current)return;let re={placement:t,strategy:r,middleware:h};G.current&&(re.platform=G.current),Gh(S.current,T.current,re).then(se=>{let j={...se,isPositioned:!0};H.current&&!md(O.current,j)&&(O.current=j,EP.flushSync(()=>{d(j)}))})},[h,t,r,G]);dd(()=>{c===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(re=>({...re,isPositioned:!1})))},[c]);let H=nt.useRef(!1);dd(()=>(H.current=!0,()=>{H.current=!1}),[]),dd(()=>{if(D&&(S.current=D),E&&(T.current=E),D&&E){if(I.current)return I.current(D,E,k);k()}},[D,E,k,I,F]);let V=nt.useMemo(()=>({reference:S,floating:T,setReference:x,setFloating:w}),[x,w]),M=nt.useMemo(()=>({reference:D,floating:E}),[D,E]),Z=nt.useMemo(()=>{let re={position:r,left:0,top:0};if(!M.floating)return re;let se=DP(M.floating,p.x),j=DP(M.floating,p.y);return u?{...re,transform:"translate("+se+"px, "+j+"px)",...PP(M.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:se,top:j}},[r,u,M.floating,p.x,p.y]);return nt.useMemo(()=>({...p,update:k,refs:V,elements:M,floatingStyles:Z}),[p,k,V,M,Z])}a();import{useState as dte}from"react";function OP(e){let[t,r]=dte(void 0);return Qr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let i=o[0],s,u;if("borderBoxSize"in i){let l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,u=c.blockSize}else s=e.offsetWidth,u=e.offsetHeight;r({width:s,height:u})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}var BP="Popper",[$P,jh]=Jr(BP),[gte,RP]=$P(BP),vte=e=>{let{__scopePopper:t,children:r}=e,[n,o]=hd(null);return Gu(gte,{scope:t,anchor:n,onAnchorChange:o},r)},yte="PopperAnchor",bte=FP((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,i=RP(yte,r),s=mte(null),u=rt(t,s);return hte(()=>{i.onAnchorChange(n?.current||s.current)}),n?null:Gu(at.div,te({},o,{ref:u}))}),MP="PopperContent",[Cte,Gnt]=$P(MP),xte=FP((e,t)=>{var r,n,o,i,s,u,l,c;let{__scopePopper:p,side:d="bottom",sideOffset:h=0,align:g="center",alignOffset:v=0,arrowPadding:m=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:x=0,sticky:w="partial",hideWhenDetached:D=!1,updatePositionStrategy:E="optimized",onPlaced:S,...T}=e,O=RP(MP,p),[F,I]=hd(null),G=rt(t,je=>I(je)),[k,H]=hd(null),V=OP(k),M=(r=V?.width)!==null&&r!==void 0?r:0,Z=(n=V?.height)!==null&&n!==void 0?n:0,re=d+(g!=="center"?"-"+g:""),se=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},j=Array.isArray(b)?b:[b],ne=j.length>0,ce={padding:se,boundary:j.filter(wte),altBoundary:ne},{refs:pe,floatingStyles:$e,placement:A,isPositioned:_,middlewareData:z}=AP({strategy:"fixed",placement:re,whileElementsMounted:(...je)=>Mh(...je,{animationFrame:E==="always"}),elements:{reference:O.anchor},middleware:[Ih({mainAxis:h+Z,alignmentAxis:v}),y&&kh({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Hh():void 0,...ce}),y&&Vh({...ce}),Nh({...ce,apply:({elements:je,rects:Ye,availableWidth:ke,availableHeight:Tt})=>{let{width:Ct,height:st}=Ye.reference,ut=je.floating.style;ut.setProperty("--radix-popper-available-width",`${ke}px`),ut.setProperty("--radix-popper-available-height",`${Tt}px`),ut.setProperty("--radix-popper-anchor-width",`${Ct}px`),ut.setProperty("--radix-popper-anchor-height",`${st}px`)}}),k&&TP({element:k,padding:m}),Dte({arrowWidth:M,arrowHeight:Z}),D&&Lh({strategy:"referenceHidden",...ce})]}),[U,ue]=IP(A),Q=it(S);Qr(()=>{_&&Q?.()},[_,Q]);let he=(o=z.arrow)===null||o===void 0?void 0:o.x,we=(i=z.arrow)===null||i===void 0?void 0:i.y,Se=((s=z.arrow)===null||s===void 0?void 0:s.centerOffset)!==0,[Ae,Ce]=hd();return Qr(()=>{F&&Ce(window.getComputedStyle(F).zIndex)},[F]),Gu("div",{ref:pe.setFloating,"data-radix-popper-content-wrapper":"",style:{...$e,transform:_?$e.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ae,"--radix-popper-transform-origin":[(u=z.transformOrigin)===null||u===void 0?void 0:u.x,(l=z.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:e.dir},Gu(Cte,{scope:p,placedSide:U,onArrowChange:H,arrowX:he,arrowY:we,shouldHideArrow:Se},Gu(at.div,te({"data-side":U,"data-align":ue},T,{ref:G,style:{...T.style,animation:_?void 0:"none",opacity:(c=z.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function wte(e){return e!==null}var Dte=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,s;let{placement:u,rects:l,middlewareData:c}=t,d=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=d?0:e.arrowWidth,g=d?0:e.arrowHeight,[v,m]=IP(u),y={start:"0%",center:"50%",end:"100%"}[m],b=((n=(o=c.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+h/2,x=((i=(s=c.arrow)===null||s===void 0?void 0:s.y)!==null&&i!==void 0?i:0)+g/2,w="",D="";return v==="bottom"?(w=d?y:`${b}px`,D=`${-g}px`):v==="top"?(w=d?y:`${b}px`,D=`${l.floating.height+g}px`):v==="right"?(w=`${-g}px`,D=d?y:`${x}px`):v==="left"&&(w=`${l.floating.width+g}px`,D=d?y:`${x}px`),{data:{x:w,y:D}}}});function IP(e){let[t,r="center"]=e.split("-");return[t,r]}var _h=vte,kP=bte,VP=xte;a();import{forwardRef as Ste,createElement as Ete}from"react";import Tte from"react-dom";var NP=Ste((e,t)=>{var r;let{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?Tte.createPortal(Ete(at.div,te({},o,{ref:t})),n):null});a();import{Children as Pte,cloneElement as Ate,useState as Ote,useRef as Wh,useEffect as Fte,useCallback as Bte,useReducer as $te}from"react";import{flushSync as Rte}from"react-dom";function Mte(e,t){return $te((r,n)=>{let o=t[r][n];return o??r},e)}var rs=e=>{let{present:t,children:r}=e,n=Ite(t),o=typeof r=="function"?r({present:n.isPresent}):Pte.only(r),i=rt(n.ref,o.ref);return typeof r=="function"||n.isPresent?Ate(o,{ref:i}):null};rs.displayName="Presence";function Ite(e){let[t,r]=Ote(),n=Wh({}),o=Wh(e),i=Wh("none"),s=e?"mounted":"unmounted",[u,l]=Mte(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return Fte(()=>{let c=gd(n.current);i.current=u==="mounted"?c:"none"},[u]),Qr(()=>{let c=n.current,p=o.current;if(p!==e){let h=i.current,g=gd(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&h!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Qr(()=>{if(t){let c=d=>{let g=gd(n.current).includes(d.animationName);d.target===t&&g&&Rte(()=>l("ANIMATION_END"))},p=d=>{d.target===t&&(i.current=gd(n.current))};return t.addEventListener("animationstart",p),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{t.removeEventListener("animationstart",p),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:Bte(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function gd(e){return e?.animationName||"none"}a();import{forwardRef as qh,createElement as Ci,useRef as LP,useState as zP,useEffect as HP,useCallback as vd}from"react";var Uh="rovingFocusGroup.onEntryFocus",kte={bubbles:!1,cancelable:!0},Xh="RovingFocusGroup",[Kh,GP,Vte]=nd(Xh),[Nte,Yh]=Jr(Xh,[Vte]),[Lte,zte]=Nte(Xh),Hte=qh((e,t)=>Ci(Kh.Provider,{scope:e.__scopeRovingFocusGroup},Ci(Kh.Slot,{scope:e.__scopeRovingFocusGroup},Ci(Gte,te({},e,{ref:t}))))),Gte=qh((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:l,onEntryFocus:c,...p}=e,d=LP(null),h=rt(t,d),g=od(i),[v=null,m]=Mu({prop:s,defaultProp:u,onChange:l}),[y,b]=zP(!1),x=it(c),w=GP(r),D=LP(!1),[E,S]=zP(0);return HP(()=>{let T=d.current;if(T)return T.addEventListener(Uh,x),()=>T.removeEventListener(Uh,x)},[x]),Ci(Lte,{scope:r,orientation:n,dir:g,loop:o,currentTabStopId:v,onItemFocus:vd(T=>m(T),[m]),onItemShiftTab:vd(()=>b(!0),[]),onFocusableItemAdd:vd(()=>S(T=>T+1),[]),onFocusableItemRemove:vd(()=>S(T=>T-1),[])},Ci(at.div,te({tabIndex:y||E===0?-1:0,"data-orientation":n},p,{ref:h,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{D.current=!0}),onFocus:ye(e.onFocus,T=>{let O=!D.current;if(T.target===T.currentTarget&&O&&!y){let F=new CustomEvent(Uh,kte);if(T.currentTarget.dispatchEvent(F),!F.defaultPrevented){let I=w().filter(M=>M.focusable),G=I.find(M=>M.active),k=I.find(M=>M.id===v),V=[G,k,...I].filter(Boolean).map(M=>M.ref.current);jP(V)}}D.current=!1}),onBlur:ye(e.onBlur,()=>b(!1))})))}),jte="RovingFocusGroupItem",_te=qh((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,...s}=e,u=Do(),l=i||u,c=zte(jte,r),p=c.currentTabStopId===l,d=GP(r),{onFocusableItemAdd:h,onFocusableItemRemove:g}=c;return HP(()=>{if(n)return h(),()=>g()},[n,h,g]),Ci(Kh.ItemSlot,{scope:r,id:l,focusable:n,active:o},Ci(at.span,te({tabIndex:p?0:-1,"data-orientation":c.orientation},s,{ref:t,onMouseDown:ye(e.onMouseDown,v=>{n?c.onItemFocus(l):v.preventDefault()}),onFocus:ye(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:ye(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){c.onItemShiftTab();return}if(v.target!==v.currentTarget)return;let m=Kte(v,c.orientation,c.dir);if(m!==void 0){v.preventDefault();let b=d().filter(x=>x.focusable).map(x=>x.ref.current);if(m==="last")b.reverse();else if(m==="prev"||m==="next"){m==="prev"&&b.reverse();let x=b.indexOf(v.currentTarget);b=c.loop?qte(b,x+1):b.slice(x+1)}setTimeout(()=>jP(b))}})})))}),Wte={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ute(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Kte(e,t,r){let n=Ute(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Wte[n]}function jP(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function qte(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var _P=Hte,WP=_te;a();var Xte=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ns=new WeakMap,yd=new WeakMap,bd={},Jh=0,UP=function(e){return e&&(e.host||UP(e.parentNode))},Yte=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=UP(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Jte=function(e,t,r,n){var o=Yte(t,Array.isArray(e)?e:[e]);bd[r]||(bd[r]=new WeakMap);var i=bd[r],s=[],u=new Set,l=new Set(o),c=function(d){!d||u.has(d)||(u.add(d),c(d.parentNode))};o.forEach(c);var p=function(d){!d||l.has(d)||Array.prototype.forEach.call(d.children,function(h){if(u.has(h))p(h);else try{var g=h.getAttribute(n),v=g!==null&&g!=="false",m=(ns.get(h)||0)+1,y=(i.get(h)||0)+1;ns.set(h,m),i.set(h,y),s.push(h),m===1&&v&&yd.set(h,!0),y===1&&h.setAttribute(r,"true"),v||h.setAttribute(n,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return p(t),u.clear(),Jh++,function(){s.forEach(function(d){var h=ns.get(d)-1,g=i.get(d)-1;ns.set(d,h),i.set(d,g),h||(yd.has(d)||d.removeAttribute(n),yd.delete(d)),g||d.removeAttribute(r)}),Jh--,Jh||(ns=new WeakMap,ns=new WeakMap,yd=new WeakMap,bd={})}},KP=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Xte(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Jte(n,o,r,"aria-hidden")):function(){return null}};a();a();a();var Jt=function(){return Jt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Jt.apply(this,arguments)};function Cd(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function qP(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}import*as Ed from"react";a();import*as Dt from"react";a();var xi="right-scroll-bar-position",wi="width-before-scroll-bar",Zh="with-scroll-bars-hidden",Qh="--removed-body-scroll-bar-size";a();a();function xd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}a();import{useState as Zte}from"react";function XP(e,t){var r=Zte(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}a();import*as wd from"react";var Qte=typeof window<"u"?wd.useLayoutEffect:wd.useEffect,YP=new WeakMap;function eg(e,t){var r=XP(t||null,function(n){return e.forEach(function(o){return xd(o,n)})});return Qte(function(){var n=YP.get(r);if(n){var o=new Set(n),i=new Set(e),s=r.current;o.forEach(function(u){i.has(u)||xd(u,null)}),i.forEach(function(u){o.has(u)||xd(u,s)})}YP.set(r,e)},[e]),r}a();a();a();function ere(e){return e}function tre(e,t){t===void 0&&(t=ere);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var s=t(i,n);return r.push(s),function(){r=r.filter(function(u){return u!==s})}},assignSyncMedium:function(i){for(n=!0;r.length;){var s=r;r=[],s.forEach(i)}r={push:function(u){return i(u)},filter:function(){return r}}},assignMedium:function(i){n=!0;var s=[];if(r.length){var u=r;r=[],u.forEach(i),s=r}var l=function(){var p=s;s=[],p.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),r={push:function(p){s.push(p),c()},filter:function(p){return s=s.filter(p),r}}}};return o}function tg(e){e===void 0&&(e={});var t=tre(null);return t.options=Jt({async:!0,ssr:!1},e),t}a();import*as JP from"react";var ZP=function(e){var t=e.sideCar,r=Cd(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return JP.createElement(n,Jt({},r))};ZP.isSideCarExport=!0;function rg(e,t){return e.useMedium(t),ZP}var Dd=tg();var ng=function(){},ju=Dt.forwardRef(function(e,t){var r=Dt.useRef(null),n=Dt.useState({onScrollCapture:ng,onWheelCapture:ng,onTouchMoveCapture:ng}),o=n[0],i=n[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,h=e.sideCar,g=e.noIsolation,v=e.inert,m=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=Cd(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,D=eg([r,t]),E=Jt(Jt({},x),o);return Dt.createElement(Dt.Fragment,null,p&&Dt.createElement(w,{sideCar:Dd,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:i,allowPinchZoom:!!m,lockRef:r}),s?Dt.cloneElement(Dt.Children.only(u),Jt(Jt({},E),{ref:D})):Dt.createElement(b,Jt({},E,{className:l,ref:D}),u))});ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ju.classNames={fullWidth:wi,zeroRight:xi};a();a();import*as ze from"react";a();a();import*as is from"react";a();a();a();import*as tA from"react";a();a();var QP;var eA=function(){if(QP)return QP;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function rre(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=eA();return t&&e.setAttribute("nonce",t),e}function nre(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ore(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var og=function(){var e=0,t=null;return{add:function(r){e==0&&(t=rre())&&(nre(t,r),ore(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var ig=function(){var e=og();return function(t,r){tA.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var _u=function(){var e=ig(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};a();var ire={left:0,top:0,right:0,gap:0},ag=function(e){return parseInt(e||"",10)||0},are=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ag(r),ag(n),ag(o)]},sg=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ire;var t=are(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}};var sre=_u(),os="data-scroll-locked",ure=function(e,t,r,n){var o=e.left,i=e.top,s=e.right,u=e.gap;return r===void 0&&(r="margin"),`
|
|
2045
2044
|
.`.concat(Zh,` {
|
|
2046
2045
|
overflow: hidden `).concat(n,`;
|
|
2047
2046
|
padding-right: `).concat(u,"px ").concat(n,`;
|
|
@@ -2078,10 +2077,10 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2078
2077
|
body[`).concat(os,`] {
|
|
2079
2078
|
`).concat(Qh,": ").concat(u,`px;
|
|
2080
2079
|
}
|
|
2081
|
-
`)},rA=function(){var e=parseInt(document.body.getAttribute(os)||"0",10);return isFinite(e)?e:0},
|
|
2080
|
+
`)},rA=function(){var e=parseInt(document.body.getAttribute(os)||"0",10);return isFinite(e)?e:0},lre=function(){is.useEffect(function(){return document.body.setAttribute(os,(rA()+1).toString()),function(){var e=rA()-1;e<=0?document.body.removeAttribute(os):document.body.setAttribute(os,e.toString())}},[])},ug=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;lre();var i=is.useMemo(function(){return sg(o)},[o]);return is.createElement(sre,{styles:ure(i,!t,o,r?"":"!important")})};a();var lg=!1;if(typeof window<"u")try{Wu=Object.defineProperty({},"passive",{get:function(){return lg=!0,!0}}),window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{lg=!1}var Wu,Di=lg?{passive:!1}:!1;a();var cre=function(e){return e.tagName==="TEXTAREA"},nA=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!cre(e)&&r[t]==="visible")},fre=function(e){return nA(e,"overflowY")},pre=function(e){return nA(e,"overflowX")},cg=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=oA(e,r);if(n){var o=iA(e,r),i=o[1],s=o[2];if(i>s)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},dre=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},mre=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},oA=function(e,t){return e==="v"?fre(t):pre(t)},iA=function(e,t){return e==="v"?dre(t):mre(t)},hre=function(e,t){return e==="h"&&t==="rtl"?-1:1},aA=function(e,t,r,n,o){var i=hre(e,window.getComputedStyle(t).direction),s=i*n,u=r.target,l=t.contains(u),c=!1,p=s>0,d=0,h=0;do{var g=iA(e,u),v=g[0],m=g[1],y=g[2],b=m-y-i*v;(v||b)&&oA(e,u)&&(d+=b,h+=v),u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return(p&&(o&&d===0||!o&&s>d)||!p&&(o&&h===0||!o&&-s>h))&&(c=!0),c};var Sd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sA=function(e){return[e.deltaX,e.deltaY]},uA=function(e){return e&&"current"in e?e.current:e},gre=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vre=function(e){return`
|
|
2082
2081
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
2083
2082
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
2084
|
-
`)},Cre=0,as=[];function lA(e){var t=ze.useRef([]),r=ze.useRef([0,0]),n=ze.useRef(),o=ze.useState(Cre++)[0],i=ze.useState(function(){return _u()})[0],s=ze.useRef(e);ze.useEffect(function(){s.current=e},[e]),ze.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=qP([e.lockRef.current],(e.shards||[]).map(uA),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=ze.useCallback(function(m,y){if("touches"in m&&m.touches.length===2)return!s.current.allowPinchZoom;var b=Sd(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],D="deltaY"in m?m.deltaY:x[1]-b[1],E,S=m.target,T=Math.abs(w)>Math.abs(D)?"h":"v";if("touches"in m&&T==="h"&&S.type==="range")return!1;var O=cg(T,S);if(!O)return!0;if(O?E=T:(E=T==="v"?"h":"v",O=cg(T,S)),!O)return!1;if(!n.current&&"changedTouches"in m&&(w||D)&&(n.current=E),!E)return!0;var F=n.current||E;return aA(F,y,m,F==="h"?w:D,!0)},[]),l=ze.useCallback(function(m){var y=m;if(!(!as.length||as[as.length-1]!==i)){var b="deltaY"in y?sA(y):Sd(y),x=t.current.filter(function(E){return E.name===y.type&&E.target===y.target&&yre(E.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(uA).filter(Boolean).filter(function(E){return E.contains(y.target)}),D=w.length>0?u(y,w[0]):!s.current.noIsolation;D&&y.cancelable&&y.preventDefault()}}},[]),c=ze.useCallback(function(m,y,b,x){var w={name:m,delta:y,target:b,should:x};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(D){return D!==w})},1)},[]),p=ze.useCallback(function(m){r.current=Sd(m),n.current=void 0},[]),d=ze.useCallback(function(m){c(m.type,sA(m),m.target,u(m,e.lockRef.current))},[]),h=ze.useCallback(function(m){c(m.type,Sd(m),m.target,u(m,e.lockRef.current))},[]);ze.useEffect(function(){return as.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Di),document.addEventListener("touchmove",l,Di),document.addEventListener("touchstart",p,Di),function(){as=as.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Di),document.removeEventListener("touchmove",l,Di),document.removeEventListener("touchstart",p,Di)}},[]);var g=e.removeScrollBar,v=e.inert;return ze.createElement(ze.Fragment,null,v?ze.createElement(i,{styles:bre(o)}):null,g?ze.createElement(ug,{gapMode:"margin"}):null)}var cA=rg(Dd,lA);var fA=Ed.forwardRef(function(e,t){return Ed.createElement(ju,Jt({},e,{ref:t,sideCar:cA}))});fA.classNames=ju.classNames;var fg=fA;var pg=["Enter"," "],wre=["ArrowDown","PageUp","Home"],dA=["ArrowUp","PageDown","End"],Dre=[...wre,...dA],Sre={ltr:[...pg,"ArrowRight"],rtl:[...pg,"ArrowLeft"]},Ere={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ad="Menu",[Uu,Tre,Pre]=nd(Ad),[Ti,mg]=Jr(Ad,[Pre,jh,Yh]),Od=jh(),mA=Yh(),[hA,So]=Ti(Ad),[Are,qu]=Ti(Ad),Ore=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:s=!0}=e,u=Od(t),[l,c]=ss(null),p=Zt(!1),d=it(i),h=od(o);return Ei(()=>{let g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),ge(_h,u,ge(hA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c},ge(Are,{scope:t,onClose:Si(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:h,modal:s},n)))};var gA=It((e,t)=>{let{__scopeMenu:r,...n}=e,o=Od(r);return ge(kP,te({},o,n,{ref:t}))}),vA="MenuPortal",[Fre,yA]=Ti(vA,{forceMount:void 0}),Bre=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=So(vA,t);return ge(Fre,{scope:t,forceMount:r},ge(rs,{present:r||i.open},ge(NP,{asChild:!0,container:o},n)))},Or="MenuContent",[$re,hg]=Ti(Or),Rre=It((e,t)=>{let r=yA(Or,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=So(Or,e.__scopeMenu),s=qu(Or,e.__scopeMenu);return ge(Uu.Provider,{scope:e.__scopeMenu},ge(rs,{present:n||i.open},ge(Uu.Slot,{scope:e.__scopeMenu},s.modal?ge(Mre,te({},o,{ref:t})):ge(Ire,te({},o,{ref:t})))))}),Mre=It((e,t)=>{let r=So(Or,e.__scopeMenu),n=Zt(null),o=rt(t,n);return Ei(()=>{let i=n.current;if(i)return KP(i)},[]),ge(gg,te({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ye(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),Ire=It((e,t)=>{let r=So(Or,e.__scopeMenu);return ge(gg,te({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),gg=It((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:h,onDismiss:g,disableOutsideScroll:v,...m}=e,y=So(Or,r),b=qu(Or,r),x=Od(r),w=mA(r),D=Tre(r),[E,S]=ss(null),T=Zt(null),O=rt(t,T,y.onContentChange),F=Zt(0),I=Zt(""),G=Zt(0),k=Zt(null),H=Zt("right"),V=Zt(0),M=v?fg:xre,Z=v?{as:xo,allowPinchZoom:!0}:void 0,re=j=>{var ne,ce;let pe=I.current+j,$e=D().filter(Q=>!Q.disabled),A=document.activeElement,_=(ne=$e.find(Q=>Q.ref.current===A))===null||ne===void 0?void 0:ne.textValue,z=$e.map(Q=>Q.textValue),U=Qre(z,pe,_),ue=(ce=$e.find(Q=>Q.textValue===U))===null||ce===void 0?void 0:ce.ref.current;(function Q(he){I.current=he,window.clearTimeout(F.current),he!==""&&(F.current=window.setTimeout(()=>Q(""),1e3))})(pe),ue&&setTimeout(()=>ue.focus())};Ei(()=>()=>window.clearTimeout(F.current),[]),LT();let se=Si(j=>{var ne,ce;return H.current===((ne=k.current)===null||ne===void 0?void 0:ne.side)&&tne(j,(ce=k.current)===null||ce===void 0?void 0:ce.area)},[]);return ge($re,{scope:r,searchRef:I,onItemEnter:Si(j=>{se(j)&&j.preventDefault()},[se]),onItemLeave:Si(j=>{var ne;se(j)||((ne=T.current)===null||ne===void 0||ne.focus(),S(null))},[se]),onTriggerLeave:Si(j=>{se(j)&&j.preventDefault()},[se]),pointerGraceTimerRef:G,onPointerGraceIntentChange:Si(j=>{k.current=j},[])},ge(M,Z,ge(UT,{asChild:!0,trapped:o,onMountAutoFocus:ye(i,j=>{var ne;j.preventDefault(),(ne=T.current)===null||ne===void 0||ne.focus()}),onUnmountAutoFocus:s},ge(kT,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:h,onDismiss:g},ge(_P,te({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:S,onEntryFocus:ye(l,j=>{b.isUsingKeyboardRef.current||j.preventDefault()})}),ge(VP,te({role:"menu","aria-orientation":"vertical","data-state":EA(y.open),"data-radix-menu-content":"",dir:b.dir},x,m,{ref:O,style:{outline:"none",...m.style},onKeyDown:ye(m.onKeyDown,j=>{let ce=j.target.closest("[data-radix-menu-content]")===j.currentTarget,pe=j.ctrlKey||j.altKey||j.metaKey,$e=j.key.length===1;ce&&(j.key==="Tab"&&j.preventDefault(),!pe&&$e&&re(j.key));let A=T.current;if(j.target!==A||!Dre.includes(j.key))return;j.preventDefault();let z=D().filter(U=>!U.disabled).map(U=>U.ref.current);dA.includes(j.key)&&z.reverse(),Jre(z)}),onBlur:ye(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(F.current),I.current="")}),onPointerMove:ye(e.onPointerMove,Ku(j=>{let ne=j.target,ce=V.current!==j.clientX;if(j.currentTarget.contains(ne)&&ce){let pe=j.clientX>V.current?"right":"left";H.current=pe,V.current=j.clientX}}))})))))))});var bA=It((e,t)=>{let{__scopeMenu:r,...n}=e;return ge(at.div,te({role:"group"},n,{ref:t}))});var kre=It((e,t)=>{let{__scopeMenu:r,...n}=e;return ge(at.div,te({},n,{ref:t}))}),dg="MenuItem",pA="menu.itemSelect",vg=It((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,i=Zt(null),s=qu(dg,e.__scopeMenu),u=hg(dg,e.__scopeMenu),l=rt(t,i),c=Zt(!1),p=()=>{let d=i.current;if(!r&&d){let h=new CustomEvent(pA,{bubbles:!0,cancelable:!0});d.addEventListener(pA,g=>n?.(g),{once:!0}),rd(d,h),h.defaultPrevented?c.current=!1:s.onClose()}};return ge(CA,te({},o,{ref:l,disabled:r,onClick:ye(e.onClick,p),onPointerDown:d=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,d),c.current=!0},onPointerUp:ye(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)===null||h===void 0||h.click()}),onKeyDown:ye(e.onKeyDown,d=>{let h=u.searchRef.current!=="";r||h&&d.key===" "||pg.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),CA=It((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,s=hg(dg,r),u=mA(r),l=Zt(null),c=rt(t,l),[p,d]=ss(!1),[h,g]=ss("");return Ei(()=>{let v=l.current;if(v){var m;g(((m=v.textContent)!==null&&m!==void 0?m:"").trim())}},[i.children]),ge(Uu.ItemSlot,{scope:r,disabled:n,textValue:o??h},ge(WP,te({asChild:!0},u,{focusable:!n}),ge(at.div,te({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},i,{ref:c,onPointerMove:ye(e.onPointerMove,Ku(v=>{n?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:ye(e.onPointerLeave,Ku(v=>s.onItemLeave(v))),onFocus:ye(e.onFocus,()=>d(!0)),onBlur:ye(e.onBlur,()=>d(!1))}))))});var Vre=It((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return ge(wA,{scope:e.__scopeMenu,checked:r},ge(vg,te({role:"menuitemcheckbox","aria-checked":Pd(r)?"mixed":r},o,{ref:t,"data-state":yg(r),onSelect:ye(o.onSelect,()=>n?.(Pd(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),Nre="MenuRadioGroup",[Lre,zre]=Ti(Nre,{value:void 0,onValueChange:()=>{}}),Hre=It((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=it(n);return ge(Lre,{scope:e.__scopeMenu,value:r,onValueChange:i},ge(bA,te({},o,{ref:t})))}),Gre="MenuRadioItem",jre=It((e,t)=>{let{value:r,...n}=e,o=zre(Gre,e.__scopeMenu),i=r===o.value;return ge(wA,{scope:e.__scopeMenu,checked:i},ge(vg,te({role:"menuitemradio","aria-checked":i},n,{ref:t,"data-state":yg(i),onSelect:ye(n.onSelect,()=>{var s;return(s=o.onValueChange)===null||s===void 0?void 0:s.call(o,r)},{checkForDefaultPrevented:!1})})))}),xA="MenuItemIndicator",[wA,_re]=Ti(xA,{checked:!1}),Wre=It((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=_re(xA,r);return ge(rs,{present:n||Pd(i.checked)||i.checked===!0},ge(at.span,te({},o,{ref:t,"data-state":yg(i.checked)})))});var DA="MenuSub",[Ure,SA]=Ti(DA),Kre=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=So(DA,t),s=Od(t),[u,l]=ss(null),[c,p]=ss(null),d=it(o);return Ei(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),ge(_h,s,ge(hA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:p},ge(Ure,{scope:t,contentId:Do(),triggerId:Do(),trigger:u,onTriggerChange:l},r)))},Td="MenuSubTrigger",qre=It((e,t)=>{let r=So(Td,e.__scopeMenu),n=qu(Td,e.__scopeMenu),o=SA(Td,e.__scopeMenu),i=hg(Td,e.__scopeMenu),s=Zt(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},p=Si(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return Ei(()=>p,[p]),Ei(()=>{let d=u.current;return()=>{window.clearTimeout(d),l(null)}},[u,l]),ge(gA,te({asChild:!0},c),ge(CA,te({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":EA(r.open)},e,{ref:di(t,o.onTriggerChange),onClick:d=>{var h;(h=e.onClick)===null||h===void 0||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ye(e.onPointerMove,Ku(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:ye(e.onPointerLeave,Ku(d=>{var h;p();let g=(h=r.content)===null||h===void 0?void 0:h.getBoundingClientRect();if(g){var v;let m=(v=r.content)===null||v===void 0?void 0:v.dataset.side,y=m==="right",b=y?-5:5,x=g[y?"left":"right"],w=g[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+b,y:d.clientY},{x,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x,y:g.bottom}],side:m}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ye(e.onKeyDown,d=>{let h=i.searchRef.current!=="";if(!(e.disabled||h&&d.key===" ")&&Sre[n.dir].includes(d.key)){var g;r.onOpenChange(!0),(g=r.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),Xre="MenuSubContent",Yre=It((e,t)=>{let r=yA(Or,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=So(Or,e.__scopeMenu),s=qu(Or,e.__scopeMenu),u=SA(Xre,e.__scopeMenu),l=Zt(null),c=rt(t,l);return ge(Uu.Provider,{scope:e.__scopeMenu},ge(rs,{present:n||i.open},ge(Uu.Slot,{scope:e.__scopeMenu},ge(gg,te({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var d;s.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:ye(e.onFocusOutside,p=>{p.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ye(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:ye(e.onKeyDown,p=>{let d=p.currentTarget.contains(p.target),h=Ere[s.dir].includes(p.key);if(d&&h){var g;i.onOpenChange(!1),(g=u.trigger)===null||g===void 0||g.focus(),p.preventDefault()}})})))))});function EA(e){return e?"open":"closed"}function Pd(e){return e==="indeterminate"}function yg(e){return Pd(e)?"indeterminate":e?"checked":"unchecked"}function Jre(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Zre(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Qre(e,t,r){let o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1,s=Zre(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==r));let l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function ene(e,t){let{x:r,y:n}=e,o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){let u=t[i].x,l=t[i].y,c=t[s].x,p=t[s].y;l>n!=p>n&&r<(c-u)*(n-l)/(p-l)+u&&(o=!o)}return o}function tne(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return ene(r,t)}function Ku(e){return t=>t.pointerType==="mouse"?e(t):void 0}var TA=Ore,PA=gA,AA=Bre,OA=Rre,FA=bA,BA=kre,$A=vg,RA=Vre,MA=Hre,IA=jre,kA=Wre;var VA=Kre,NA=qre,LA=Yre;var HA="DropdownMenu",[nne,Mat]=Jr(HA,[mg]),Qt=mg(),[one,GA]=nne(HA),jA=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,l=Qt(t),c=zA(null),[p=!1,d]=Mu({prop:o,defaultProp:i,onChange:s});return St(one,{scope:t,triggerId:Do(),triggerRef:c,contentId:Do(),open:p,onOpenChange:d,onOpenToggle:rne(()=>d(h=>!h),[d]),modal:u},St(TA,te({},l,{open:p,onOpenChange:d,dir:n,modal:u}),r))},ine="DropdownMenuTrigger",_A=Fr((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=GA(ine,r),s=Qt(r);return St(PA,te({asChild:!0},s),St(at.button,te({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},o,{ref:di(t,i.triggerRef),onPointerDown:ye(e.onPointerDown,u=>{!n&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:ye(e.onKeyDown,u=>{n||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})))});var bg=e=>{let{__scopeDropdownMenu:t,...r}=e,n=Qt(t);return St(AA,te({},n,r))},ane="DropdownMenuContent",WA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=GA(ane,r),i=Qt(r),s=zA(!1);return St(OA,te({id:o.contentId,"aria-labelledby":o.triggerId},i,n,{ref:t,onCloseAutoFocus:ye(e.onCloseAutoFocus,u=>{var l;s.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,u.preventDefault()}),onInteractOutside:ye(e.onInteractOutside,u=>{let l=u.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});var UA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(FA,te({},o,n,{ref:t}))});var KA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(BA,te({},o,n,{ref:t}))});var Cg=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St($A,te({},o,n,{ref:t}))});var qA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(RA,te({},o,n,{ref:t}))});var XA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(MA,te({},o,n,{ref:t}))});var YA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(IA,te({},o,n,{ref:t}))});var xg=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(kA,te({},o,n,{ref:t}))});var JA=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,s=Qt(t),[u=!1,l]=Mu({prop:n,defaultProp:i,onChange:o});return St(VA,te({},s,{open:u,onOpenChange:l}),r)};var ZA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(NA,te({},o,n,{ref:t}))});var QA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(LA,te({},o,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});a();import us from"styled-components";import{jsx as Ke,jsxs as Br}from"react/jsx-runtime";var sne="0.08",Fd=us.div`
|
|
2083
|
+
`)},yre=0,as=[];function lA(e){var t=ze.useRef([]),r=ze.useRef([0,0]),n=ze.useRef(),o=ze.useState(yre++)[0],i=ze.useState(function(){return _u()})[0],s=ze.useRef(e);ze.useEffect(function(){s.current=e},[e]),ze.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=qP([e.lockRef.current],(e.shards||[]).map(uA),!0).filter(Boolean);return m.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=ze.useCallback(function(m,y){if("touches"in m&&m.touches.length===2)return!s.current.allowPinchZoom;var b=Sd(m),x=r.current,w="deltaX"in m?m.deltaX:x[0]-b[0],D="deltaY"in m?m.deltaY:x[1]-b[1],E,S=m.target,T=Math.abs(w)>Math.abs(D)?"h":"v";if("touches"in m&&T==="h"&&S.type==="range")return!1;var O=cg(T,S);if(!O)return!0;if(O?E=T:(E=T==="v"?"h":"v",O=cg(T,S)),!O)return!1;if(!n.current&&"changedTouches"in m&&(w||D)&&(n.current=E),!E)return!0;var F=n.current||E;return aA(F,y,m,F==="h"?w:D,!0)},[]),l=ze.useCallback(function(m){var y=m;if(!(!as.length||as[as.length-1]!==i)){var b="deltaY"in y?sA(y):Sd(y),x=t.current.filter(function(E){return E.name===y.type&&E.target===y.target&&gre(E.delta,b)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(uA).filter(Boolean).filter(function(E){return E.contains(y.target)}),D=w.length>0?u(y,w[0]):!s.current.noIsolation;D&&y.cancelable&&y.preventDefault()}}},[]),c=ze.useCallback(function(m,y,b,x){var w={name:m,delta:y,target:b,should:x};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(D){return D!==w})},1)},[]),p=ze.useCallback(function(m){r.current=Sd(m),n.current=void 0},[]),d=ze.useCallback(function(m){c(m.type,sA(m),m.target,u(m,e.lockRef.current))},[]),h=ze.useCallback(function(m){c(m.type,Sd(m),m.target,u(m,e.lockRef.current))},[]);ze.useEffect(function(){return as.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",l,Di),document.addEventListener("touchmove",l,Di),document.addEventListener("touchstart",p,Di),function(){as=as.filter(function(m){return m!==i}),document.removeEventListener("wheel",l,Di),document.removeEventListener("touchmove",l,Di),document.removeEventListener("touchstart",p,Di)}},[]);var g=e.removeScrollBar,v=e.inert;return ze.createElement(ze.Fragment,null,v?ze.createElement(i,{styles:vre(o)}):null,g?ze.createElement(ug,{gapMode:"margin"}):null)}var cA=rg(Dd,lA);var fA=Ed.forwardRef(function(e,t){return Ed.createElement(ju,Jt({},e,{ref:t,sideCar:cA}))});fA.classNames=ju.classNames;var fg=fA;var pg=["Enter"," "],Cre=["ArrowDown","PageUp","Home"],dA=["ArrowUp","PageDown","End"],xre=[...Cre,...dA],wre={ltr:[...pg,"ArrowRight"],rtl:[...pg,"ArrowLeft"]},Dre={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ad="Menu",[Uu,Sre,Ere]=nd(Ad),[Ti,mg]=Jr(Ad,[Ere,jh,Yh]),Od=jh(),mA=Yh(),[hA,So]=Ti(Ad),[Tre,qu]=Ti(Ad),Pre=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:i,modal:s=!0}=e,u=Od(t),[l,c]=ss(null),p=Zt(!1),d=it(i),h=od(o);return Ei(()=>{let g=()=>{p.current=!0,document.addEventListener("pointerdown",v,{capture:!0,once:!0}),document.addEventListener("pointermove",v,{capture:!0,once:!0})},v=()=>p.current=!1;return document.addEventListener("keydown",g,{capture:!0}),()=>{document.removeEventListener("keydown",g,{capture:!0}),document.removeEventListener("pointerdown",v,{capture:!0}),document.removeEventListener("pointermove",v,{capture:!0})}},[]),ge(_h,u,ge(hA,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c},ge(Tre,{scope:t,onClose:Si(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:h,modal:s},n)))};var gA=It((e,t)=>{let{__scopeMenu:r,...n}=e,o=Od(r);return ge(kP,te({},o,n,{ref:t}))}),vA="MenuPortal",[Are,yA]=Ti(vA,{forceMount:void 0}),Ore=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,i=So(vA,t);return ge(Are,{scope:t,forceMount:r},ge(rs,{present:r||i.open},ge(NP,{asChild:!0,container:o},n)))},Or="MenuContent",[Fre,hg]=Ti(Or),Bre=It((e,t)=>{let r=yA(Or,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=So(Or,e.__scopeMenu),s=qu(Or,e.__scopeMenu);return ge(Uu.Provider,{scope:e.__scopeMenu},ge(rs,{present:n||i.open},ge(Uu.Slot,{scope:e.__scopeMenu},s.modal?ge($re,te({},o,{ref:t})):ge(Rre,te({},o,{ref:t})))))}),$re=It((e,t)=>{let r=So(Or,e.__scopeMenu),n=Zt(null),o=rt(t,n);return Ei(()=>{let i=n.current;if(i)return KP(i)},[]),ge(gg,te({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ye(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)}))}),Rre=It((e,t)=>{let r=So(Or,e.__scopeMenu);return ge(gg,te({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)}))}),gg=It((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:h,onDismiss:g,disableOutsideScroll:v,...m}=e,y=So(Or,r),b=qu(Or,r),x=Od(r),w=mA(r),D=Sre(r),[E,S]=ss(null),T=Zt(null),O=rt(t,T,y.onContentChange),F=Zt(0),I=Zt(""),G=Zt(0),k=Zt(null),H=Zt("right"),V=Zt(0),M=v?fg:bre,Z=v?{as:xo,allowPinchZoom:!0}:void 0,re=j=>{var ne,ce;let pe=I.current+j,$e=D().filter(Q=>!Q.disabled),A=document.activeElement,_=(ne=$e.find(Q=>Q.ref.current===A))===null||ne===void 0?void 0:ne.textValue,z=$e.map(Q=>Q.textValue),U=Jre(z,pe,_),ue=(ce=$e.find(Q=>Q.textValue===U))===null||ce===void 0?void 0:ce.ref.current;(function Q(he){I.current=he,window.clearTimeout(F.current),he!==""&&(F.current=window.setTimeout(()=>Q(""),1e3))})(pe),ue&&setTimeout(()=>ue.focus())};Ei(()=>()=>window.clearTimeout(F.current),[]),LT();let se=Si(j=>{var ne,ce;return H.current===((ne=k.current)===null||ne===void 0?void 0:ne.side)&&Qre(j,(ce=k.current)===null||ce===void 0?void 0:ce.area)},[]);return ge(Fre,{scope:r,searchRef:I,onItemEnter:Si(j=>{se(j)&&j.preventDefault()},[se]),onItemLeave:Si(j=>{var ne;se(j)||((ne=T.current)===null||ne===void 0||ne.focus(),S(null))},[se]),onTriggerLeave:Si(j=>{se(j)&&j.preventDefault()},[se]),pointerGraceTimerRef:G,onPointerGraceIntentChange:Si(j=>{k.current=j},[])},ge(M,Z,ge(UT,{asChild:!0,trapped:o,onMountAutoFocus:ye(i,j=>{var ne;j.preventDefault(),(ne=T.current)===null||ne===void 0||ne.focus()}),onUnmountAutoFocus:s},ge(kT,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:h,onDismiss:g},ge(_P,te({asChild:!0},w,{dir:b.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:S,onEntryFocus:ye(l,j=>{b.isUsingKeyboardRef.current||j.preventDefault()})}),ge(VP,te({role:"menu","aria-orientation":"vertical","data-state":EA(y.open),"data-radix-menu-content":"",dir:b.dir},x,m,{ref:O,style:{outline:"none",...m.style},onKeyDown:ye(m.onKeyDown,j=>{let ce=j.target.closest("[data-radix-menu-content]")===j.currentTarget,pe=j.ctrlKey||j.altKey||j.metaKey,$e=j.key.length===1;ce&&(j.key==="Tab"&&j.preventDefault(),!pe&&$e&&re(j.key));let A=T.current;if(j.target!==A||!xre.includes(j.key))return;j.preventDefault();let z=D().filter(U=>!U.disabled).map(U=>U.ref.current);dA.includes(j.key)&&z.reverse(),Xre(z)}),onBlur:ye(e.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(F.current),I.current="")}),onPointerMove:ye(e.onPointerMove,Ku(j=>{let ne=j.target,ce=V.current!==j.clientX;if(j.currentTarget.contains(ne)&&ce){let pe=j.clientX>V.current?"right":"left";H.current=pe,V.current=j.clientX}}))})))))))});var bA=It((e,t)=>{let{__scopeMenu:r,...n}=e;return ge(at.div,te({role:"group"},n,{ref:t}))});var Mre=It((e,t)=>{let{__scopeMenu:r,...n}=e;return ge(at.div,te({},n,{ref:t}))}),dg="MenuItem",pA="menu.itemSelect",vg=It((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,i=Zt(null),s=qu(dg,e.__scopeMenu),u=hg(dg,e.__scopeMenu),l=rt(t,i),c=Zt(!1),p=()=>{let d=i.current;if(!r&&d){let h=new CustomEvent(pA,{bubbles:!0,cancelable:!0});d.addEventListener(pA,g=>n?.(g),{once:!0}),rd(d,h),h.defaultPrevented?c.current=!1:s.onClose()}};return ge(CA,te({},o,{ref:l,disabled:r,onClick:ye(e.onClick,p),onPointerDown:d=>{var h;(h=e.onPointerDown)===null||h===void 0||h.call(e,d),c.current=!0},onPointerUp:ye(e.onPointerUp,d=>{var h;c.current||(h=d.currentTarget)===null||h===void 0||h.click()}),onKeyDown:ye(e.onKeyDown,d=>{let h=u.searchRef.current!=="";r||h&&d.key===" "||pg.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})}))}),CA=It((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...i}=e,s=hg(dg,r),u=mA(r),l=Zt(null),c=rt(t,l),[p,d]=ss(!1),[h,g]=ss("");return Ei(()=>{let v=l.current;if(v){var m;g(((m=v.textContent)!==null&&m!==void 0?m:"").trim())}},[i.children]),ge(Uu.ItemSlot,{scope:r,disabled:n,textValue:o??h},ge(WP,te({asChild:!0},u,{focusable:!n}),ge(at.div,te({role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},i,{ref:c,onPointerMove:ye(e.onPointerMove,Ku(v=>{n?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus())})),onPointerLeave:ye(e.onPointerLeave,Ku(v=>s.onItemLeave(v))),onFocus:ye(e.onFocus,()=>d(!0)),onBlur:ye(e.onBlur,()=>d(!1))}))))});var Ire=It((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return ge(wA,{scope:e.__scopeMenu,checked:r},ge(vg,te({role:"menuitemcheckbox","aria-checked":Pd(r)?"mixed":r},o,{ref:t,"data-state":yg(r),onSelect:ye(o.onSelect,()=>n?.(Pd(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),kre="MenuRadioGroup",[Vre,Nre]=Ti(kre,{value:void 0,onValueChange:()=>{}}),Lre=It((e,t)=>{let{value:r,onValueChange:n,...o}=e,i=it(n);return ge(Vre,{scope:e.__scopeMenu,value:r,onValueChange:i},ge(bA,te({},o,{ref:t})))}),zre="MenuRadioItem",Hre=It((e,t)=>{let{value:r,...n}=e,o=Nre(zre,e.__scopeMenu),i=r===o.value;return ge(wA,{scope:e.__scopeMenu,checked:i},ge(vg,te({role:"menuitemradio","aria-checked":i},n,{ref:t,"data-state":yg(i),onSelect:ye(n.onSelect,()=>{var s;return(s=o.onValueChange)===null||s===void 0?void 0:s.call(o,r)},{checkForDefaultPrevented:!1})})))}),xA="MenuItemIndicator",[wA,Gre]=Ti(xA,{checked:!1}),jre=It((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,i=Gre(xA,r);return ge(rs,{present:n||Pd(i.checked)||i.checked===!0},ge(at.span,te({},o,{ref:t,"data-state":yg(i.checked)})))});var DA="MenuSub",[_re,SA]=Ti(DA),Wre=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,i=So(DA,t),s=Od(t),[u,l]=ss(null),[c,p]=ss(null),d=it(o);return Ei(()=>(i.open===!1&&d(!1),()=>d(!1)),[i.open,d]),ge(_h,s,ge(hA,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:p},ge(_re,{scope:t,contentId:Do(),triggerId:Do(),trigger:u,onTriggerChange:l},r)))},Td="MenuSubTrigger",Ure=It((e,t)=>{let r=So(Td,e.__scopeMenu),n=qu(Td,e.__scopeMenu),o=SA(Td,e.__scopeMenu),i=hg(Td,e.__scopeMenu),s=Zt(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},p=Si(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return Ei(()=>p,[p]),Ei(()=>{let d=u.current;return()=>{window.clearTimeout(d),l(null)}},[u,l]),ge(gA,te({asChild:!0},c),ge(CA,te({id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":EA(r.open)},e,{ref:di(t,o.onTriggerChange),onClick:d=>{var h;(h=e.onClick)===null||h===void 0||h.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ye(e.onPointerMove,Ku(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:ye(e.onPointerLeave,Ku(d=>{var h;p();let g=(h=r.content)===null||h===void 0?void 0:h.getBoundingClientRect();if(g){var v;let m=(v=r.content)===null||v===void 0?void 0:v.dataset.side,y=m==="right",b=y?-5:5,x=g[y?"left":"right"],w=g[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+b,y:d.clientY},{x,y:g.top},{x:w,y:g.top},{x:w,y:g.bottom},{x,y:g.bottom}],side:m}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ye(e.onKeyDown,d=>{let h=i.searchRef.current!=="";if(!(e.disabled||h&&d.key===" ")&&wre[n.dir].includes(d.key)){var g;r.onOpenChange(!0),(g=r.content)===null||g===void 0||g.focus(),d.preventDefault()}})})))}),Kre="MenuSubContent",qre=It((e,t)=>{let r=yA(Or,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,i=So(Or,e.__scopeMenu),s=qu(Or,e.__scopeMenu),u=SA(Kre,e.__scopeMenu),l=Zt(null),c=rt(t,l);return ge(Uu.Provider,{scope:e.__scopeMenu},ge(rs,{present:n||i.open},ge(Uu.Slot,{scope:e.__scopeMenu},ge(gg,te({id:u.contentId,"aria-labelledby":u.triggerId},o,{ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var d;s.isUsingKeyboardRef.current&&((d=l.current)===null||d===void 0||d.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:ye(e.onFocusOutside,p=>{p.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ye(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:ye(e.onKeyDown,p=>{let d=p.currentTarget.contains(p.target),h=Dre[s.dir].includes(p.key);if(d&&h){var g;i.onOpenChange(!1),(g=u.trigger)===null||g===void 0||g.focus(),p.preventDefault()}})})))))});function EA(e){return e?"open":"closed"}function Pd(e){return e==="indeterminate"}function yg(e){return Pd(e)?"indeterminate":e?"checked":"unchecked"}function Xre(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function Yre(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Jre(e,t,r){let o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=r?e.indexOf(r):-1,s=Yre(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==r));let l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==r?l:void 0}function Zre(e,t){let{x:r,y:n}=e,o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){let u=t[i].x,l=t[i].y,c=t[s].x,p=t[s].y;l>n!=p>n&&r<(c-u)*(n-l)/(p-l)+u&&(o=!o)}return o}function Qre(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return Zre(r,t)}function Ku(e){return t=>t.pointerType==="mouse"?e(t):void 0}var TA=Pre,PA=gA,AA=Ore,OA=Bre,FA=bA,BA=Mre,$A=vg,RA=Ire,MA=Lre,IA=Hre,kA=jre;var VA=Wre,NA=Ure,LA=qre;var HA="DropdownMenu",[tne,$at]=Jr(HA,[mg]),Qt=mg(),[rne,GA]=tne(HA),jA=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,l=Qt(t),c=zA(null),[p=!1,d]=Mu({prop:o,defaultProp:i,onChange:s});return St(rne,{scope:t,triggerId:Do(),triggerRef:c,contentId:Do(),open:p,onOpenChange:d,onOpenToggle:ene(()=>d(h=>!h),[d]),modal:u},St(TA,te({},l,{open:p,onOpenChange:d,dir:n,modal:u}),r))},nne="DropdownMenuTrigger",_A=Fr((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,i=GA(nne,r),s=Qt(r);return St(PA,te({asChild:!0},s),St(at.button,te({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n},o,{ref:di(t,i.triggerRef),onPointerDown:ye(e.onPointerDown,u=>{!n&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:ye(e.onKeyDown,u=>{n||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})))});var bg=e=>{let{__scopeDropdownMenu:t,...r}=e,n=Qt(t);return St(AA,te({},n,r))},one="DropdownMenuContent",WA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=GA(one,r),i=Qt(r),s=zA(!1);return St(OA,te({id:o.contentId,"aria-labelledby":o.triggerId},i,n,{ref:t,onCloseAutoFocus:ye(e.onCloseAutoFocus,u=>{var l;s.current||(l=o.triggerRef.current)===null||l===void 0||l.focus(),s.current=!1,u.preventDefault()}),onInteractOutside:ye(e.onInteractOutside,u=>{let l=u.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,p=l.button===2||c;(!o.modal||p)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});var UA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(FA,te({},o,n,{ref:t}))});var KA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(BA,te({},o,n,{ref:t}))});var Cg=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St($A,te({},o,n,{ref:t}))});var qA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(RA,te({},o,n,{ref:t}))});var XA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(MA,te({},o,n,{ref:t}))});var YA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(IA,te({},o,n,{ref:t}))});var xg=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(kA,te({},o,n,{ref:t}))});var JA=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:i}=e,s=Qt(t),[u=!1,l]=Mu({prop:n,defaultProp:i,onChange:o});return St(VA,te({},s,{open:u,onOpenChange:l}),r)};var ZA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(NA,te({},o,n,{ref:t}))});var QA=Fr((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Qt(r);return St(LA,te({},o,n,{ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))});a();import us from"styled-components";import{jsx as Ke,jsxs as Br}from"react/jsx-runtime";var ine="0.08",Fd=us.div`
|
|
2085
2084
|
${to};
|
|
2086
2085
|
border-radius: 4px;
|
|
2087
2086
|
${vr};
|
|
@@ -2100,7 +2099,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2100
2099
|
|
|
2101
2100
|
&:focus,
|
|
2102
2101
|
[data-state='highlighted'] {
|
|
2103
|
-
background-color: ${({theme:e})=>ct(
|
|
2102
|
+
background-color: ${({theme:e})=>ct(ine,e.color.grey200)};
|
|
2104
2103
|
}
|
|
2105
2104
|
|
|
2106
2105
|
&:hover:not([aria-disabled]) {
|
|
@@ -2129,14 +2128,14 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2129
2128
|
grid-row: span 2;
|
|
2130
2129
|
text-align: center;
|
|
2131
2130
|
width: 0;
|
|
2132
|
-
`,
|
|
2131
|
+
`,_at=({children:e,label:t,description:r,badge:n,icon:o,renderAs:i,href:s,...u})=>{let l=i;return lt(i)&&(l=J(s)?"a":"div"),Ke(Cg,{style:{outline:"none"},...u,asChild:!0,children:Ke(Fd,{as:l,href:s,children:J(e)?e:Br(Bd,{children:[J(o)?Ke(Rd,{children:o}):Ke(Md,{}),Br($d,{children:[t," ",n]}),J(r)?Ke(sr,{variant:"caption",children:r}):null]})})})},Wat=({children:e,label:t,description:r,badge:n,icon:o,indicator:i=Ke(Ee,{size:"sm",type:"checkmark"}),...s})=>Ke(qA,{...s,asChild:!0,children:Br(Fd,{children:[J(e)?e:Br(Bd,{children:[J(o)?Ke(Rd,{children:o}):Ke(Md,{}),Br($d,{children:[t," ",n]}),J(r)?Ke(sr,{variant:"caption",children:r}):null]}),Ke(xg,{children:i})]})}),Uat=({children:e,label:t,badge:r,description:n,icon:o,indicator:i=Ke(Ee,{size:"sm",type:"checkmark"}),...s})=>Ke(YA,{...s,asChild:!0,children:Br(Fd,{children:[J(e)?e:Br(Bd,{children:[J(o)?Ke(Rd,{children:o}):Ke(Md,{}),Br($d,{children:[t," ",r]})," ",J(n)?Ke(sr,{variant:"caption",children:n}):null]}),Ke(xg,{children:i})]})}),ane=us(ZA)`
|
|
2133
2132
|
outline: none;
|
|
2134
2133
|
|
|
2135
2134
|
&[data-state='open'],
|
|
2136
2135
|
&[data-highlighted] {
|
|
2137
2136
|
background-color: ${({theme:e})=>e.color.grey200};
|
|
2138
2137
|
}
|
|
2139
|
-
`,wg=({children:e,label:t,badge:r,description:n,icon:o,onClick:i})=>{let{isSmAndUp:s}=xn();return Ke(s?
|
|
2138
|
+
`,wg=({children:e,label:t,badge:r,description:n,icon:o,onClick:i})=>{let{isSmAndUp:s}=xn();return Ke(s?ane:Cg,{onClick:l=>{J(i)&&i(l)},children:Br(Fd,{children:[J(e)?e:Br(Bd,{children:[J(o)?Ke(Rd,{children:o}):Ke(Md,{}),Br($d,{children:[t," ",r]}),J(n)?Ke(sr,{variant:"caption",children:n}):null]}),Ke(Ee,{size:"md",type:"caret-right"})]})})};import{jsx as $r,jsxs as Dg}from"react/jsx-runtime";var Id="8px",lne=eO`
|
|
2140
2139
|
from {
|
|
2141
2140
|
opacity: 0;
|
|
2142
2141
|
transform: scale(.97) translateY(-8px);
|
|
@@ -2145,7 +2144,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2145
2144
|
opacity: 1;
|
|
2146
2145
|
transform: scale(1);
|
|
2147
2146
|
}
|
|
2148
|
-
`,
|
|
2147
|
+
`,cne=eO`
|
|
2149
2148
|
from {
|
|
2150
2149
|
opacity: 1;
|
|
2151
2150
|
transform: scale(1);
|
|
@@ -2154,8 +2153,8 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2154
2153
|
opacity: 0;
|
|
2155
2154
|
transform: scale(.97) translateY(-8px);
|
|
2156
2155
|
}
|
|
2157
|
-
`,tO=
|
|
2158
|
-
animation: ${
|
|
2156
|
+
`,tO=une`
|
|
2157
|
+
animation: ${lne} ${({theme:e})=>e.duration.productive.moderate}
|
|
2159
2158
|
${({theme:e})=>e.easing.entrance.productive};
|
|
2160
2159
|
background: white;
|
|
2161
2160
|
border-radius: 4px;
|
|
@@ -2168,7 +2167,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2168
2167
|
z-index: ${({theme:e})=>e.zIndex.MenuComponent};
|
|
2169
2168
|
|
|
2170
2169
|
&[data-state='closed'] {
|
|
2171
|
-
animation: ${
|
|
2170
|
+
animation: ${cne} ${({theme:e})=>e.duration.productive.moderate}
|
|
2172
2171
|
${({theme:e})=>e.easing.exit.productive};
|
|
2173
2172
|
}
|
|
2174
2173
|
|
|
@@ -2183,30 +2182,30 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2183
2182
|
hr {
|
|
2184
2183
|
margin: ${({theme:e})=>e.spacing.space02} 0;
|
|
2185
2184
|
}
|
|
2186
|
-
`,
|
|
2185
|
+
`,fne=Sg(WA)`
|
|
2187
2186
|
${tO}
|
|
2188
|
-
`,
|
|
2187
|
+
`,pne=Sg(QA)`
|
|
2189
2188
|
${tO}
|
|
2190
2189
|
|
|
2191
2190
|
${Ve.smAndDown} {
|
|
2192
2191
|
transform: translateX(-100%) !important;
|
|
2193
2192
|
}
|
|
2194
|
-
`,
|
|
2193
|
+
`,dne=Sg.div`
|
|
2195
2194
|
margin-left: ${({theme:e})=>e.spacing.space03};
|
|
2196
|
-
`,
|
|
2195
|
+
`,ost=({children:e,...t})=>$r(KA,{asChild:!0,children:$r(sr,{variant:"subtitle1",...t,children:e})}),ist=XA,ast=({label:e,icon:t,description:r,children:n})=>{let{isSmAndUp:o}=xn(),[i,s]=sne(!1);return o?Dg(JA,{children:[$r(wg,{description:r,icon:t,label:e}),$r(bg,{children:$r(pne,{children:n})})]}):Dg(UA,{children:[$r(wg,{description:r,icon:t,label:e,onClick:u=>{u.preventDefault(),s(l=>!l)}}),$r(dne,{children:i?n:null})]})},mne=({align:e="start",children:t,trigger:r,label:n,isOpen:o,triggerProps:i={},onOpenChange:s,...u})=>Dg(jA,{onOpenChange:s,open:o,children:[$r(_A,{asChild:!0,children:J(r)?r:$r(Qe,{"aria-expanded":o,forceState:o?"active":void 0,iconName:"caret-down",iconPosition:"end",...i,children:n})}),$r(bg,{children:$r(fne,{...u,align:e,sideOffset:6,children:t})})]});mne.displayName="Menu_VHS";a();a();import{useCallback as pO,cloneElement as Ene,useState as dO,useLayoutEffect as Tne,useRef as Pne}from"react";import mO,{css as hO}from"styled-components";a();a();import{forwardRef as hne,useRef as gne,useEffect as rO}from"react";import iO,{css as aO}from"styled-components";import{Fragment as xne,jsx as Eg,jsxs as oO}from"react/jsx-runtime";var sO=["fullWidth","maxItem"],ls="8px",uO="0.08",vne=e=>sO.includes(e)?null:e,yne=iO.div`
|
|
2197
2196
|
background: white;
|
|
2198
2197
|
border-radius: 4px 4px 0 0;
|
|
2199
2198
|
box-shadow: ${({theme:e})=>e.shadow.elevation2};
|
|
2200
2199
|
display: ${({menuWidth:e})=>e==="maxItem"?"inline-block":"block"};
|
|
2201
2200
|
padding: ${ls} ${ls} ${({theme:e})=>e.spacing.space04} ${ls};
|
|
2202
|
-
width: ${({menuWidth:e})=>
|
|
2201
|
+
width: ${({menuWidth:e})=>vne(e)};
|
|
2203
2202
|
z-index: ${({theme:e})=>e.zIndex.MenuComponent};
|
|
2204
2203
|
|
|
2205
2204
|
${Ve.smAndUp} {
|
|
2206
2205
|
border-radius: 4px;
|
|
2207
2206
|
padding: ${ls};
|
|
2208
2207
|
}
|
|
2209
|
-
`,
|
|
2208
|
+
`,bne=aO`
|
|
2210
2209
|
/* stylelint-disable no-descending-specificity */
|
|
2211
2210
|
button,
|
|
2212
2211
|
a {
|
|
@@ -2220,7 +2219,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2220
2219
|
color: ${({theme:e})=>e.color.red600};
|
|
2221
2220
|
}
|
|
2222
2221
|
}
|
|
2223
|
-
`,
|
|
2222
|
+
`,Cne=aO`
|
|
2224
2223
|
button,
|
|
2225
2224
|
a {
|
|
2226
2225
|
background-color: transparent;
|
|
@@ -2295,27 +2294,27 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2295
2294
|
|
|
2296
2295
|
/* Precedence boost: https://styled-components.com/docs/basics#pseudoelements-pseudoselectors-and-nesting */
|
|
2297
2296
|
&& {
|
|
2298
|
-
${({variant:e})=>e==="dangerous"?
|
|
2299
|
-
${({disabled:e})=>$(e)&&e?
|
|
2297
|
+
${({variant:e})=>e==="dangerous"?bne:null}
|
|
2298
|
+
${({disabled:e})=>$(e)&&e?Cne:null}
|
|
2300
2299
|
}
|
|
2301
|
-
`,kd=
|
|
2300
|
+
`,kd=hne(({items:e,menuHeader:t,width:r="fullWidth",onClick:n,onClickOutside:o,onPressEsc:i,onOpen:s,onClose:u,...l},c)=>{let p=gne(),d=$(o)?o:()=>{};ru(p,d);let h=tu([p,c]);if(rO(()=>(s&&s(),()=>{u&&u()}),[s,u]),rO(()=>{let m=y=>{y.key==="Escape"&&i&&i(y)};return document.addEventListener("keyup",m),()=>{document.removeEventListener("keyup",m)}},[i]),e?.length==null)return null;let g=e.map(m=>{let{disabled:y,variant:b}=m.props,x=$(y)?y:!1,w=be(b)?b:void 0,D=`wrapper-${m.key}`;return Eg(nO,{disabled:x,variant:w,children:m},D)});return oO(yne,{ref:h,menuWidth:r,onClick:n,...l,children:[$(t)?oO(xne,{children:[t,Eg(nO,{children:Eg(ep,{})})]}):null,g]})});kd.displayName="Menu_VHS";a();import cO from"styled-components";import{jsx as lO,jsxs as Sne}from"react/jsx-runtime";var wne=cO.div`
|
|
2302
2301
|
align-items: center;
|
|
2303
2302
|
display: flex;
|
|
2304
2303
|
gap: ${({theme:e})=>e.spacing.space02};
|
|
2305
2304
|
justify-content: space-between;
|
|
2306
2305
|
padding: ${({theme:e})=>e.spacing.space02};
|
|
2307
|
-
`,
|
|
2306
|
+
`,Dne=cO.span`
|
|
2308
2307
|
color: ${({theme:e})=>e.color.grey900};
|
|
2309
2308
|
font-size: 20px;
|
|
2310
2309
|
font-weight: 700;
|
|
2311
2310
|
line-height: 24px;
|
|
2312
|
-
`,fO=({label:e,onCloseClick:t,overrideMenuHeader:r=void 0})=>
|
|
2311
|
+
`,fO=({label:e,onCloseClick:t,overrideMenuHeader:r=void 0})=>Sne(wne,{children:[$(r)?r:lO(Dne,{children:e||"Menu"}),lO(Ra,{onClick:t})]});import{jsx as Xu,jsxs as $ne}from"react/jsx-runtime";var gO=8,Ane=hO`
|
|
2313
2312
|
bottom: 0;
|
|
2314
2313
|
margin-bottom: ${({dropdownButtonHeight:e})=>e+gO}px;
|
|
2315
|
-
`,
|
|
2314
|
+
`,One=hO`
|
|
2316
2315
|
margin-top: ${({dropdownButtonHeight:e})=>e+gO}px;
|
|
2317
2316
|
top: 0;
|
|
2318
|
-
|
|
2317
|
+
`,Fne=mO(kd)`
|
|
2319
2318
|
animation-duration: ${({theme:e})=>e.duration.productive.fast};
|
|
2320
2319
|
animation-timing-function: ${({theme:e})=>e.easing.entrance.productive};
|
|
2321
2320
|
bottom: 0;
|
|
@@ -2331,9 +2330,9 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2331
2330
|
position: absolute;
|
|
2332
2331
|
width: initial;
|
|
2333
2332
|
${({menuAlignment:e})=>e==="left"?"left: 0;":"left: unset; right: 0"};
|
|
2334
|
-
${({menuPosition:e})=>e==="above"?
|
|
2333
|
+
${({menuPosition:e})=>e==="above"?Ane:One};
|
|
2335
2334
|
}
|
|
2336
|
-
`,
|
|
2335
|
+
`,Bne=mO.div`
|
|
2337
2336
|
align-items: stretch;
|
|
2338
2337
|
display: inline-flex;
|
|
2339
2338
|
flex-direction: column;
|
|
@@ -2341,7 +2340,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2341
2340
|
|
|
2342
2341
|
/* prevent dropdown button from wrapping underneath main button */
|
|
2343
2342
|
position: relative;
|
|
2344
|
-
`,vO=({label:e,menuAlignment:t="right",menuItems:r,menuPosition:n="below",menuWidth:o="maxItem",onMenuClick:i,onMenuClosed:s,disabled:u=!1,iconButtonComponent:l,overrideMenuHeader:c,size:p="lg",...d})=>{let[h,g,,v]=Gm(!1),[m,y]=dO(!1),[b,x]=dO(0),w=
|
|
2343
|
+
`,vO=({label:e,menuAlignment:t="right",menuItems:r,menuPosition:n="below",menuWidth:o="maxItem",onMenuClick:i,onMenuClosed:s,disabled:u=!1,iconButtonComponent:l,overrideMenuHeader:c,size:p="lg",...d})=>{let[h,g,,v]=Gm(!1),[m,y]=dO(!1),[b,x]=dO(0),w=Pne(null),{isXsAndDown:D}=xn();Tne(()=>{w.current&&x(w.current.offsetHeight)},[w]);let E=F=>{!h||$(F)&&pn(w.current?.contains(F.target))||(v(),Fo(s)&&s(),w.current?.focus())},S=pO(()=>{y(!0),g()},[g]),T=pO(F=>{i&&i(F),S()},[i,S]),O=()=>Xu(Qe,{ref:w,"aria-expanded":h,disabled:u,forceState:h?"active":void 0,iconName:"caret-down",iconPosition:"end",label:e,onClick:T,size:p,...d});return $(l)&&(O=()=>Ene(l,{label:e,onClick:T,ref:w,disabled:u,"aria-expanded":h,...d})),$ne(Bne,{children:[Xu(O,{}),Xu(Fne,{dropdownButtonHeight:b,isMenuVisible:h,items:m?r:[],menuAlignment:t,menuHeader:D?Xu(fO,{label:e,onCloseClick:E,overrideMenuHeader:c}):null,menuPosition:n,onClick:E,onClickOutside:E,onPressEsc:E,width:o}),D&&h?Xu(_r,{}):null]})};vO.displayName="MenuButton_VHS";a();import{forwardRef as kne,useEffect as wO,useRef as DO}from"react";import SO from"styled-components";import{createPortal as Vne}from"react-dom";a();import Rne from"styled-components";var yO=Rne.div`
|
|
2345
2344
|
background-color: white;
|
|
2346
2345
|
box-sizing: border-box;
|
|
2347
2346
|
display: flex;
|
|
@@ -2362,49 +2361,49 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2362
2361
|
min-width: ${({width:e})=>e??"480px"};
|
|
2363
2362
|
width: min-content;
|
|
2364
2363
|
}
|
|
2365
|
-
`;a();import{createContext as
|
|
2364
|
+
`;a();import{createContext as Mne,useContext as Ine}from"react";var bO=Mne(void 0),CO=bO.Provider,xO=()=>{let e=Ine(bO);if(J(e))return e;throw new Error("useModalClose must be used within a ModalCloseProvider")};import{jsx as cs}from"react/jsx-runtime";var Nne=SO(_r)`
|
|
2366
2365
|
display: flex;
|
|
2367
|
-
`,
|
|
2366
|
+
`,Lne=SO.div`
|
|
2368
2367
|
align-items: stretch;
|
|
2369
2368
|
display: flex;
|
|
2370
2369
|
flex-direction: column;
|
|
2371
2370
|
width: 100%;
|
|
2372
|
-
`,
|
|
2371
|
+
`,zne=e=>$(e)&&Ug(e,"current")&&$(e.current),Hne=e=>{wO(()=>{let t=document.activeElement;return zne(e)&&e.current.focus(),()=>{t!==null&&setTimeout(()=>{t.focus()},0)}},[e])},EO=kne(({alignHorizontal:e="center",alignVertical:t="center",children:r,className:n,fullHeight:o=!1,initialFocusRef:i,onRequestClose:s,shouldCloseOnClickOutside:u=!0,width:l,...c},p)=>{Hne(p);let d=DO(null),h=Xm(!0,{focusSelector:i?.current});return ru(d,()=>{s&&u&&s()}),C0(c.isOpen),b0("Escape",g=>{s&&s(),g.preventDefault()}),cs(CO,{value:s,children:cs(Nne,{alignHorizontal:e,alignVertical:t,children:cs(yO,{ref:h,"aria-modal":"true",fullHeight:o,role:"dialog",tabIndex:-1,width:l,...c,children:cs(Lne,{ref:d,children:r})})})})});EO.displayName="ModalContent_VHS";var hut=e=>{let{id:t,...r}=e,n=document.createElement("div");n.classList.add("Modal"),J(e.className)&&n.classList.add(e.className),J(t)&&(n.id=t);let o=DO(n);return wO(()=>{let i=o.current;return document.body.appendChild(i),()=>i.remove()},[]),Vne(cs(ou,{children:e.isOpen?cs(EO,{ref:o,...r}):null}),o.current)};a();import Vd from"styled-components";import{jsx as TO}from"react/jsx-runtime";var Dut=Vd.div`
|
|
2373
2372
|
align-items: center;
|
|
2374
2373
|
display: flex;
|
|
2375
2374
|
padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};
|
|
2376
|
-
`,
|
|
2375
|
+
`,Sut=Vd.div`
|
|
2377
2376
|
flex: auto;
|
|
2378
2377
|
height: 100%;
|
|
2379
2378
|
margin-top: ${({theme:e})=>e.spacing.space04};
|
|
2380
2379
|
overflow: auto;
|
|
2381
2380
|
padding: ${({theme:e})=>e.spacing.space04};
|
|
2382
|
-
`,
|
|
2381
|
+
`,Eut=Vd.div`
|
|
2383
2382
|
padding: ${({theme:e})=>e.spacing.space04} ${({theme:e})=>e.spacing.space04};
|
|
2384
|
-
`,
|
|
2383
|
+
`,Gne=Vd(fo)`
|
|
2385
2384
|
position: absolute;
|
|
2386
2385
|
right: ${({theme:e})=>e.spacing.space04};
|
|
2387
2386
|
top: ${({theme:e})=>e.spacing.space04};
|
|
2388
2387
|
z-index: ${({theme:e})=>e.zIndex.ModalCloseButton};
|
|
2389
|
-
`,
|
|
2388
|
+
`,Tut=({onClick:e,...t})=>{let r=xO();return TO(Gne,{"aria-label":"Close",icon:TO(Ee,{size:"sm",type:"close"}),onClick:r,preventTooltip:!0,...t})};a();a();import jne from"styled-components";import{jsx as Wne}from"react/jsx-runtime";var _ne=jne.div`
|
|
2390
2389
|
background-color: white;
|
|
2391
2390
|
border-radius: 8px;
|
|
2392
2391
|
box-shadow: ${({theme:e,elevationToken:t})=>e.shadow[t]};
|
|
2393
|
-
`,PO=({children:e,elevation:t=1,...r})=>{let n=`elevation${t}`;return
|
|
2392
|
+
`,PO=({children:e,elevation:t=1,...r})=>{let n=`elevation${t}`;return Wne(_ne,{...r,elevationToken:n,children:e})};PO.displayName="Paper_VHS";a();a();import Nd from"styled-components";import{jsx as OO,jsxs as AO}from"react/jsx-runtime";var Tg="8px",Une=Nd.div`
|
|
2394
2393
|
display: flex;
|
|
2395
|
-
`,
|
|
2394
|
+
`,Kne=Nd.div`
|
|
2396
2395
|
align-self: center;
|
|
2397
2396
|
background: ${({theme:e,meterBgColorOverride:t})=>t??e.color.grey300};
|
|
2398
2397
|
border-radius: ${Tg};
|
|
2399
2398
|
flex: 1;
|
|
2400
2399
|
height: ${Tg};
|
|
2401
|
-
`,
|
|
2400
|
+
`,qne=Nd.div`
|
|
2402
2401
|
background: ${({theme:e,colorOverride:t})=>t??e.color.brandBlue500};
|
|
2403
2402
|
border-radius: ${Tg};
|
|
2404
2403
|
height: 100%;
|
|
2405
2404
|
transition: width 0.2s ease-out;
|
|
2406
2405
|
width: ${({progress:e})=>e*100}%;
|
|
2407
|
-
`,
|
|
2406
|
+
`,Xne=Nd.div`
|
|
2408
2407
|
color: ${({theme:e,labelColorOverride:t})=>t??e.color.grey900};
|
|
2409
2408
|
font-size: 12px;
|
|
2410
2409
|
font-variant-numeric: tabular-nums;
|
|
@@ -2412,15 +2411,15 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2412
2411
|
margin-right: ${({theme:e})=>e.spacing.space04};
|
|
2413
2412
|
text-align: right;
|
|
2414
2413
|
width: 5ch;
|
|
2415
|
-
`,FO=({hasLabel:e=!0,progress:t=0,colorOverride:r=void 0,labelColorOverride:n=void 0,meterBgColorOverride:o=void 0,...i})=>{let s=Math.round(t*100);return AO(
|
|
2414
|
+
`,FO=({hasLabel:e=!0,progress:t=0,colorOverride:r=void 0,labelColorOverride:n=void 0,meterBgColorOverride:o=void 0,...i})=>{let s=Math.round(t*100);return AO(Une,{"aria-label":"Progress","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":s,"data-testid":"progress-bar",role:"progressbar",...i,children:[e?AO(Xne,{"data-testid":"progress-bar-label",labelColorOverride:n,children:[s,"%"]}):null,OO(Kne,{meterBgColorOverride:o,children:OO(qne,{colorOverride:r,progress:t})})]})};FO.displayName="ProgressBar_VHS";a();a();import{useEffect as rF,useState as tl}from"react";import Rr from"styled-components";a();a();import{useEffect as Yu,useMemo as Og,useState as jd}from"react";import ooe from"styled-components";a();a();import Eo from"styled-components";import{jsx as an,jsxs as Pg}from"react/jsx-runtime";var Ld=45,Yne=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Ag=7,BO=e=>e[0]instanceof Date||e[6]instanceof Date,Jne=e=>{let t={start:vs(xr(e)),end:s1(xr(e))};return Zg(t)},$O=()=>Array.from({length:Ag},()=>[]),Zne=e=>{let t=[],r=$(e[0])?Qg(e[0]):0,n=$O();for(let o=0;o<e.length;o++){let i=(o+r)%Ag;i===0&&BO(n)&&(t.push(n),n=$O()),n[i]=e[o]}return BO(n)&&t.push(n),t},Qne=Eo.div`
|
|
2416
2415
|
cursor: not-allowed;
|
|
2417
2416
|
padding-top: ${({theme:e})=>e.spacing.space04};
|
|
2418
2417
|
width: ${Ld*Ag}px;
|
|
2419
|
-
`,
|
|
2418
|
+
`,eoe=Eo.div`
|
|
2420
2419
|
display: flex;
|
|
2421
2420
|
justify-content: space-between;
|
|
2422
2421
|
margin-bottom: ${({theme:e})=>e.spacing.space04};
|
|
2423
|
-
`,
|
|
2422
|
+
`,toe=Eo.div`
|
|
2424
2423
|
display: grid;
|
|
2425
2424
|
grid-template-columns: repeat(7, 14.28% [col-start]);
|
|
2426
2425
|
width: 100%;
|
|
@@ -2443,9 +2442,9 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2443
2442
|
color: ${e=>e.theme.color.grey300};
|
|
2444
2443
|
cursor: not-allowed;
|
|
2445
2444
|
}
|
|
2446
|
-
`,
|
|
2445
|
+
`,roe=Eo.div`
|
|
2447
2446
|
height: ${Ld}px;
|
|
2448
|
-
`,
|
|
2447
|
+
`,noe=Eo.span`
|
|
2449
2448
|
font-size: 14px;
|
|
2450
2449
|
font-weight: 500;
|
|
2451
2450
|
margin-bottom: ${({theme:e})=>e.spacing.space02};
|
|
@@ -2464,7 +2463,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2464
2463
|
color: ${e=>e.theme.color.grey300};
|
|
2465
2464
|
cursor: not-allowed;
|
|
2466
2465
|
}
|
|
2467
|
-
`,Gd=({displayDate:e,earliestDate:t,latestDate:r,onDisplayDateChange:n,onMouseLeave:o,shouldPreventFuture:i=!1,renderDay:s})=>{let u=
|
|
2466
|
+
`,Gd=({displayDate:e,earliestDate:t,latestDate:r,onDisplayDateChange:n,onMouseLeave:o,shouldPreventFuture:i=!1,renderDay:s})=>{let u=Zne(Jne(e)),l=vs(hs(e,1)),c=s1(hs(e,-1)),p=S=>r?e3(S,r):!1,d=S=>i?t3(S):!1,h=S=>t?Mr(S,t):!1,g=S=>p(S)||d(S)||h(S),v=S=>S.toLocaleDateString("en-US",{day:"numeric"}),m=S=>s?s({day:S,isDisabled:g(S),formattedDay:v(S)}):an(zd,{"data-day":v(S),disabled:g(S),children:an(Hd,{children:v(S)})},S),y={start:t??a1(new Date,-5),end:i?new Date:a1(new Date,5)},b=e.getFullYear(),x=()=>{let S=new Intl.DateTimeFormat("en",{month:"long"});return u1(y).filter(T=>T.getFullYear()===e.getFullYear()).map(T=>({value:T.getMonth(),label:S.format(T)}))},w=()=>Object.values(u1(y).map(S=>({value:S.getFullYear(),label:S.getFullYear()})).reduce((S,T)=>$(S[T.value])?S:{...S,[T.value]:T},{})),D=x(),E=w();return Pg(Qne,{"data-testid":"calendar-test-identifier",children:[Pg(eoe,{children:[an(RO,{"aria-label":"Previous month","data-testid":"month-prev",disabled:h(c),onClick:()=>{n&&n(c)},style:{transform:"translateX(-5px)"},type:"button",children:an(Ee,{size:"md",type:"caret-left"})}),an(ni,{"aria-label":"Select month","data-testid":"monthSelect",fullWidth:!1,onChange:S=>{let T=S.target.value,O=new Date(b,Number(T));n&&(d(O)?n(new Date):h(O)?n(t):n(O))},options:D,placeholder:null,value:e.getMonth()}),an(ni,{"aria-label":"Select year","data-testid":"yearSelect",fullWidth:!1,onChange:S=>{let T=e.getMonth(),O=S.target.value,F=new Date(Number(O),T);n&&(d(F)?n(new Date):h(F)?n(t):n(F))},options:E,placeholder:null,value:e.getFullYear()}),an(RO,{"aria-label":"Next month","data-testid":"month-next",disabled:d(l),onClick:()=>{n&&n(l)},style:{transform:"translateX(4px)"},type:"button",children:an(Ee,{size:"md",type:"caret-right"})})]}),Pg(toe,{"aria-label":"Day selection grid",onMouseLeave:o,role:"button",children:[Yne.map(S=>an(noe,{children:S},S)),u.map(S=>S.map(T=>T instanceof Date?m(T):an(roe,{},Math.random())))]})]})};Gd.displayName="Calendar_VHS";import{jsx as Fg}from"react/jsx-runtime";var ioe=ooe(zd)`
|
|
2468
2467
|
${e=>e.isBeginning&&!e.isInRange&&`
|
|
2469
2468
|
border-top-right-radius: 0;
|
|
2470
2469
|
border-bottom-right-radius: 0;
|
|
@@ -2532,14 +2531,14 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2532
2531
|
background: ${e.theme.color.brandBlue500};
|
|
2533
2532
|
}
|
|
2534
2533
|
`}
|
|
2535
|
-
`,Ju=e=>{if(de(e))return!1;let{start:t,end:r}=e;return t instanceof Date&&r instanceof Date&&Mr(t,r)},MO=(e,t)=>de(e)||Jg(e.end,e.start)<2?!1:r3(t,{start:o1(e.start,1),end:o1(e.end,-1)}),kO=(e,t)=>{if(e instanceof Date&&$(t)){let[r,n]=[e,t].sort(al);if($(r)&&$(n))return{start:r,end:Bi(n)}}},IO=(e,t)=>{let[r,n]=jd();return Yu(()=>{n(kO(e,t))},[e,t,n]),r},_d=({range:e={end:new Date,start:new Date},rangePartToShow:t="",onChange:r,onIsValidChange:n=()=>{},earliestDate:o,latestDate:i,shouldPreventFuture:s=!1})=>{let u=Og(()=>vs(new Date),[]),l=$(e.end)?e.end:u,[c,p]=jd(l),[{firstDate:d,secondDate:h},g]=jd({}),[v,m]=jd(),y=IO(d,h),b=nu(y),x=IO(!Ju(y)&&d,v),w=Og(()=>Ks(100,n),[n]),D=Og(()=>Ks(0,p),[]);Yu(()=>{D(e.end)},[]),Yu(()=>{if(!(!y||!b)&&t){let S=y[t];D(S)}},[t,y,b,D]),Yu(()=>{w(Ju(y))},[y,w]),Yu(()=>{if(Ju(e)){let S;b&&!f1(e.start,b.start)&&(S=e.start),b&&!f1(e.end,b.end)&&(S=e.end),S&&D(S),g({firstDate:e.start,secondDate:e.end})}},[e,b,D]);let E=S=>{let T=$(d)&&er(d,S)||$(h)&&er(h,S),O=MO(y,S),F=!y&&MO(x,S),I=S.toLocaleDateString("en-US"),G=$(v)?er(S,v):!1,k=!!(y&&er(y.start,S)||x&&er(x.start,S)),H=!!(y&&er(y.end,S)||x&&er(x.end,S));return{isActive:T,isBeginning:k,isEnd:H,isInRange:O,isInTempRange:F,isHovered:G,val:I}};return Fg(Gd,{displayDate:c,earliestDate:o,latestDate:i,onDisplayDateChange:D,onMouseLeave:()=>{m(void 0)},renderDay:({day:S,isDisabled:T,formattedDay:O})=>{let F=E(S);return Fg(
|
|
2534
|
+
`,Ju=e=>{if(de(e))return!1;let{start:t,end:r}=e;return t instanceof Date&&r instanceof Date&&Mr(t,r)},MO=(e,t)=>de(e)||Jg(e.end,e.start)<2?!1:r3(t,{start:o1(e.start,1),end:o1(e.end,-1)}),kO=(e,t)=>{if(e instanceof Date&&$(t)){let[r,n]=[e,t].sort(al);if($(r)&&$(n))return{start:r,end:Bi(n)}}},IO=(e,t)=>{let[r,n]=jd();return Yu(()=>{n(kO(e,t))},[e,t,n]),r},_d=({range:e={end:new Date,start:new Date},rangePartToShow:t="",onChange:r,onIsValidChange:n=()=>{},earliestDate:o,latestDate:i,shouldPreventFuture:s=!1})=>{let u=Og(()=>vs(new Date),[]),l=$(e.end)?e.end:u,[c,p]=jd(l),[{firstDate:d,secondDate:h},g]=jd({}),[v,m]=jd(),y=IO(d,h),b=nu(y),x=IO(!Ju(y)&&d,v),w=Og(()=>Ks(100,n),[n]),D=Og(()=>Ks(0,p),[]);Yu(()=>{D(e.end)},[]),Yu(()=>{if(!(!y||!b)&&t){let S=y[t];D(S)}},[t,y,b,D]),Yu(()=>{w(Ju(y))},[y,w]),Yu(()=>{if(Ju(e)){let S;b&&!f1(e.start,b.start)&&(S=e.start),b&&!f1(e.end,b.end)&&(S=e.end),S&&D(S),g({firstDate:e.start,secondDate:e.end})}},[e,b,D]);let E=S=>{let T=$(d)&&er(d,S)||$(h)&&er(h,S),O=MO(y,S),F=!y&&MO(x,S),I=S.toLocaleDateString("en-US"),G=$(v)?er(S,v):!1,k=!!(y&&er(y.start,S)||x&&er(x.start,S)),H=!!(y&&er(y.end,S)||x&&er(x.end,S));return{isActive:T,isBeginning:k,isEnd:H,isInRange:O,isInTempRange:F,isHovered:G,val:I}};return Fg(Gd,{displayDate:c,earliestDate:o,latestDate:i,onDisplayDateChange:D,onMouseLeave:()=>{m(void 0)},renderDay:({day:S,isDisabled:T,formattedDay:O})=>{let F=E(S);return Fg(ioe,{...F,"data-day":O,"data-is-beginning":F.isBeginning,"data-is-end":F.isEnd,"data-is-in-temp-range":F.isInTempRange,disabled:T,onClick:()=>{let I=S,G=S;d&&h?G=void 0:d?I=d:G=h,g({firstDate:I,secondDate:G});let k=kO(I,G);Ju(k)&&r&&r(k),m(void 0)},onMouseOver:()=>{d&&!T&&m(S)},children:Fg(Hd,{children:O})},S)},shouldPreventFuture:s})};_d.displayName="RangeSelectorCalendar_VHS";a();a();import{useCallback as goe,useEffect as qd,useRef as voe,useState as Xd}from"react";import yoe from"styled-components";a();import NO from"styled-components";import{jsx as VO}from"react/jsx-runtime";var aoe=NO.ul`
|
|
2536
2535
|
list-style: none;
|
|
2537
2536
|
margin: 0;
|
|
2538
2537
|
padding: 0;
|
|
2539
|
-
`,
|
|
2538
|
+
`,soe=NO.li`
|
|
2540
2539
|
color: ${e=>e.theme.color.error600};
|
|
2541
2540
|
font-size: 12px;
|
|
2542
|
-
`,LO=({messages:e=[]})=>VO(
|
|
2541
|
+
`,LO=({messages:e=[]})=>VO(aoe,{children:e.map(t=>VO(soe,{children:t},t))});a();var To=" - ",In=`mm/dd/yyyy${To}mm/dd/yyyy`,uoe=[{type:"month",id:"month1"},{type:"day",id:"day1"},{type:"year",id:"year1"},{type:"skip"},{type:"month",id:"month2"},{type:"day",id:"day2"},{type:"year",id:"year2"}],loe=e=>{let t={month:2,day:2,year:4,skip:To.length-2},r=0;return e.map(({type:n,id:o},i)=>{let s=r+(i===0?0:1),u=s+t[n];return r=u,{start:s,end:u,type:n,id:o}})},Po=loe(uoe);a();var coe=new Set(["Enter","Backspace","Tab","ArrowRight","ArrowLeft","ArrowUp","ArrowDown","/"]),Wd=e=>/^[0-9]$/i.test(e.key),foe=e=>coe.has(e.key),zO=e=>Wd(e)||foe(e),Bg=({key:e,shiftKey:t})=>e==="Tab"&&!t||e==="/"||e==="ArrowRight",$g=({key:e,shiftKey:t})=>e==="ArrowLeft"||e==="Tab"&&t,Rg=e=>e.key==="ArrowUp"||e.key==="ArrowDown",Mg=e=>e.key==="Backspace",HO=e=>Wd(e)||Rg(e)||Mg(e),GO=e=>$g(e)||Bg(e);a();var sn=e=>{let[t,r]=e.split(To),n="",o="",i="",s="",u="",l="";$(t)&&([n,o,i]=t.split("/")),$(r)&&([s,u,l]=r.split("/"));let c=be(n)?n:"",p=be(o)?o:"",d=be(i)?i:"",h=be(s)?s:"",g=be(u)?u:"",v=be(l)?l:"";return{month1:c,day1:p,year1:d,month2:h,day2:g,year2:v}},Zu=e=>{if(!gs(e))return"";try{return new Intl.DateTimeFormat(["en-US"],{year:"numeric",month:"2-digit",day:"2-digit",timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone}).format(e)}catch{return""}},Ud=e=>{let{month1:t,day1:r,year1:n,month2:o,day2:i,year2:s}=e;return`${t}/${r}/${n}${To}${o}/${i}/${s}`},Kd=e=>{let{month1:t,day1:r,year1:n,month2:o,day2:i,year2:s}=sn(e);try{let u=xr(new Date(Number(n),Number(t)-1,Number(r))),l=Bi(new Date(Number(s),Number(o)-1,Number(i)));return{start:u,end:l}}catch{return}},Ig=({start:e,end:t})=>{let r={month:"2-digit",day:"2-digit",year:"numeric"},n=e.toLocaleDateString("en-US",r),o=t.toLocaleDateString("en-US",r);return`${n}${To}${o}`};a();var kg=dr(Rf());a();var fs,jO=e=>{$(fs)&&(e.preventDefault(),clearTimeout(fs),fs=void 0),fs=setTimeout(()=>{clearTimeout(fs),fs=void 0},200)},_O=({start:e,end:t})=>gs(e)&&gs(t),WO=([e],t)=>{let r=t.find(n=>n.start===e);return $(r)&&$(r.id)?r.id:""},Qu=(e,t)=>{let r=t.substring(0,t.length-1),n=t.charAt(t.length-1),o=12,i=31;switch(r){case"month":return o;case"year":return c1(new Date);case"day":if(e[`month${n}`]!=="mm"){let u=e[`month${n}`]-1;if(e[`year${n}`]!=="yyyy"){let l=e[`year${n}`];return l1(new Date(l,u))}return l1(new Date(c1(new Date),u))}return i;default:return 0}},UO=({range:e,maxDate:t,minDate:r})=>{let n=Zu(e.start),o=Zu(e.end),i=[];if($(t)){let s=Zu(t);Mr(t,e.start)&&i.push(`${n} is after maximum of ${s}`),Mr(t,e.end)&&i.push(`${o} is after maximum of ${s}`)}if(r){let s=Zu(r);Mr(e.start,r)&&i.push(`${n} is before minimum of ${s}`),Mr(e.end,r)&&i.push(`${o} is before minimum of ${s}`)}return(Mr(e.end,e.start)||er(e.end,e.start))&&i.push("start date must come before end date"),i},KO=e=>{let[t,r]=[e.start,e.end].sort(al);return{start:t,end:r}};a();var poe=e=>{let t=e.current?.selectionStart,r=e.current?.selectionEnd;return{startPos:t,endPos:r}},qO=(e,t,r)=>{let n=e.current;n&&n.setSelectionRange(t,r)},el=(e,t,r)=>{let n=r.findIndex(i=>i.start===e[0]),o=r[n+t];return o&&o.type==="skip"&&(o=r[n+t*2]),o?[o.start,o.end]:e},XO=(e,t)=>{let r=poe(e);for(let n=0;n<t.length;n++){if(lt(t[n]))return[];let{start:o,end:i,type:s}=t[n];if($(r.startPos)&&r.startPos>o-1&&r.startPos<=i)return s==="skip"&&J(t[n+1])?[t[n+1].start,t[n+1].end]:[o,i]}return[]},YO=e=>{let t=sn(e),r=sn(In),n=["month1","day1","year1","month2","day2","year2"];for(let o=0;o<n.length;o++){if(lt(n[o]))return-1;if(t[n[o]]===r[n[o]])return o}return-1},JO=([,e])=>{let t=In.indexOf(To);return e===-1?"":J(e)&&e<=t?"start":"end"};var ZO=e=>{let t={...e},r=n=>`${n}`.padStart(2,"0");return e.day1!=="dd"&&(t.day1=r(Math.min(Number(e.day1),Qu(e,"day1")))),e.day2!=="dd"&&(t.day2=r(Math.min(Number(e.day2),Qu(e,"day2")))),t},doe=(e,t,r,n,o)=>{let i=sn(In)[t],s=i.length,u=m=>`${m}`.padStart(s,"0"),l=m=>({...e,[t]:u(m)}),c=e[t],p=c===i;if(o===0)return l(u(n));let d=Qu(e,t),h=`${Number.parseInt(c,10)}`,g=`${h}${n}`,v=h.length===s;return p&&r!=="year"||v?l(n):Number.parseInt(g,10)>d?l(d):l(g)},moe=(e,t,r)=>{let n=Number.parseInt(e,10);Number.isNaN(n)&&(n=0);let o=n+r;return o<=0||o>t?n:o},hoe=(e,t,r)=>{let o=sn(In)[t].length,i=c=>`${c}`.padStart(o,"0"),s=c=>({...e,[t]:i(c)}),u=e[t],l=Qu(e,t);return s(i(moe(u,l,r)))},QO=({event:e,currentSelection:t,keyCount:r,valueParts:n,selectionLength:o})=>{let i="",s=r,u=!1,l=WO(t,Po),c=l.substring(0,l.length-1);if(Wd(e)){e.preventDefault();let p=doe(n,l,c,e.key,r),d=ZO(p);i=Ud(d),s+=1,u=o===s}if(Rg(e)){e.preventDefault();let p=e.key==="ArrowUp"?1:-1,d=hoe(n,l,p),h=ZO(d);i=Ud(h),s=0,u=!0}if(Mg(e)){e.preventDefault();let p=sn(In);i=Ud({...n,[l]:p[l]}),s=0}return{nextValue:i,nextKeyCount:s,shouldApply:u}},eF=({event:e,currentSelection:t})=>{let r;return Bg(e)&&(r=el(t,1,Po),(0,kg.default)(r,t)||e.preventDefault()),$g(e)&&(r=el(t,-1,Po),(0,kg.default)(r,t)||e.preventDefault()),{nextSelection:r,nextKeyCount:0}};import{jsx as tF,jsxs as xoe}from"react/jsx-runtime";var boe=yoe.input`
|
|
2543
2542
|
border: 1px solid ${e=>e.theme.color.grey400};
|
|
2544
2543
|
border-radius: 4px;
|
|
2545
2544
|
color: ${e=>e.theme.color.grey800};
|
|
@@ -2552,14 +2551,14 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2552
2551
|
&:focus {
|
|
2553
2552
|
border: 1px solid ${e=>e.theme.color.brandBlue500};
|
|
2554
2553
|
}
|
|
2555
|
-
`,
|
|
2554
|
+
`,Coe=({latestDate:e,shouldPreventFuture:t})=>e||(t?Bi(new Date):void 0),Yd=({onChange:e,onSelectedRangePartChange:t,range:r,earliestDate:n,latestDate:o,shouldPreventFuture:i=!1,width:s="100%",onErrorChange:u})=>{let[l,c]=Xd(In),[p,d]=Xd(0),[h,g]=Xd([]),v=voe(null),[m,y]=Xd([0,-1]),b=lt(m)||lt(m[1])||lt(m[0])?0:m[1]-m[0],x=sn(l),w=goe(D=>{let E=UO({range:D,maxDate:Coe({latestDate:o,shouldPreventFuture:i}),minDate:n});_O(D)&&(c(Ig(D)),!E.length&&J(e)&&e(KO(D))),g(E)},[n,o,i,e]);return qd(()=>{g([]),c(Ig(r))},[r]),qd(()=>{J(u)&&u(h)},[h,u]),qd(()=>{if(b===p){d(0);let D=el(m,1,Po);y(D)}},[p,m,b]),qd(()=>{qO(v,m[0],m[1]),J(t)&&t(JO(m))},[m,l,v,t]),xoe("div",{children:[!!h.length&&tF(LO,{messages:h}),tF(boe,{ref:v,"data-testid":"range-selector-input",onBlur:()=>{if(p!==b&&p!==0){let D=Kd(l);$(D)&&w(D)}y([0,-1])},onFocus:()=>{if(YO(l)!==-1){let E=Po[0];if($(E)){let{start:S,end:T}=E;y([S,T])}}},onKeyDown:D=>{let E={event:D,currentSelection:m,keyCount:p,valueParts:x,selectionLength:b};if(!zO(D)){D.preventDefault();return}if(HO(D)){let{nextValue:S,nextKeyCount:T,shouldApply:O}=QO(E),F=Kd(S);O&&J(F)?w(F):c(S),d(T)}if(GO(D)){let{nextSelection:S,nextKeyCount:T}=eF(E);J(S)&&y(S),d(T);let O=Kd(l);J(O)&&w(O)}},onMouseDown:jO,onMouseUp:()=>{d(0),y(XO(v,Po))},readOnly:!0,type:"text",value:l,width:s})]})};Yd.displayName="RangeSelectorInput_VHS";import{jsx as Et,jsxs as Pi}from"react/jsx-runtime";var woe=Rr.div`
|
|
2556
2555
|
text-align: left;
|
|
2557
2556
|
width: 240px;
|
|
2558
|
-
`,
|
|
2557
|
+
`,Doe=({tooltipText:e})=>Et($a,{direction:"right",label:Et(woe,{children:e}),shouldWrap:!0,children:Et(Ee,{size:"md",style:{verticalAlign:"text-bottom"},type:"question-mark"})}),nF=e=>e.toLocaleDateString("en-US",{year:"numeric",month:"2-digit",day:"2-digit"}),Soe=({start:e,end:t})=>`${nF(e)} - ${nF(t)}`,Eoe=(e,t)=>er(e.start,t.start)&&er(e.end,t.end),Toe=Rr.div`
|
|
2559
2558
|
padding: ${({theme:e})=>`0 ${e.spacing.space03}`};
|
|
2560
|
-
`,
|
|
2559
|
+
`,Poe=Rr.div`
|
|
2561
2560
|
position: relative;
|
|
2562
|
-
`,
|
|
2561
|
+
`,Aoe=Rr(Qe)`
|
|
2563
2562
|
${({theme:e,inputButtonOverride:t})=>t&&`
|
|
2564
2563
|
&& {
|
|
2565
2564
|
background-color: white;
|
|
@@ -2577,7 +2576,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2577
2576
|
}
|
|
2578
2577
|
}
|
|
2579
2578
|
`}
|
|
2580
|
-
`,
|
|
2579
|
+
`,Ooe=Rr.button`
|
|
2581
2580
|
background: white;
|
|
2582
2581
|
border: none;
|
|
2583
2582
|
color: ${e=>e.theme.color.grey800};
|
|
@@ -2596,10 +2595,10 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2596
2595
|
color: ${e.theme.color.blue600};
|
|
2597
2596
|
font-weight: 600;
|
|
2598
2597
|
`};
|
|
2599
|
-
|
|
2598
|
+
`,Foe=Rr.div`
|
|
2600
2599
|
flex-basis: 100%;
|
|
2601
2600
|
height: 0;
|
|
2602
|
-
`,
|
|
2601
|
+
`,Boe=Rr.div`
|
|
2603
2602
|
background: white;
|
|
2604
2603
|
border: 1px solid ${e=>e.theme.color.grey400};
|
|
2605
2604
|
border-radius: 4px;
|
|
@@ -2615,18 +2614,18 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2615
2614
|
right: 0;
|
|
2616
2615
|
`};
|
|
2617
2616
|
z-index: ${({theme:e})=>e.zIndex.RangeSelector};
|
|
2618
|
-
|
|
2617
|
+
`,$oe=Rr.div`
|
|
2619
2618
|
display: flex;
|
|
2620
|
-
`,
|
|
2619
|
+
`,Roe=Rr.div`
|
|
2621
2620
|
padding: ${({theme:e})=>`${e.spacing.space05} ${e.spacing.space03}`};
|
|
2622
|
-
`,
|
|
2621
|
+
`,Moe=Rr.div`
|
|
2623
2622
|
border-top: 1px solid ${e=>e.theme.color.grey400};
|
|
2624
2623
|
display: flex;
|
|
2625
2624
|
flex-shrink: 0;
|
|
2626
2625
|
justify-content: space-between;
|
|
2627
2626
|
padding: ${({theme:e})=>e.spacing.space05};
|
|
2628
2627
|
width: 100%;
|
|
2629
|
-
`,
|
|
2628
|
+
`,Ioe=Rr.span`
|
|
2630
2629
|
text-align: left;
|
|
2631
2630
|
white-space: nowrap;
|
|
2632
2631
|
|
|
@@ -2639,17 +2638,17 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2639
2638
|
visibility: hidden;
|
|
2640
2639
|
width: calc(100% + 40px);
|
|
2641
2640
|
}
|
|
2642
|
-
`,oF=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=Toe,fullWidth:i=!1,footerText:s,onChange:u,presets:l=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=tl(c),[v,m]=tl(!1),[y,b]=tl(!0),[x,w]=tl("end"),[D,E]=tl([]),S=Cn();return rF(()=>{g(c)},[c]),rF(()=>{let O=()=>{m(!1),g(c)};return v&&window.addEventListener("click",O),()=>{window.removeEventListener("click",O)}},[v,c,g]),Pi(Ooe,{"data-testid":"rangeselector-test-identifer",onClick:O=>O.stopPropagation(),children:[Et(Foe,{...d,"data-testid":"trigger",fullWidth:i,icon:Et(Ee,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?Pi(Roe,{align:e,hasPresets:!!l.length,children:[Pi(Moe,{children:[!!l.length&&Et(ed,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${S.color.grey400}`,padding:"12px"},variant:"unbulleted",children:l.map(({label:O,value:F,tooltipText:I})=>Et(Za,{children:Et(Boe,{"data-testid":O?.replaceAll(" ","_"),isActive:Poe(h,F),onClick:()=>{g(F)},children:Pi(Voe,{"data-title":`${O}___`,children:[O," ",I!==void 0?Et(Eoe,{tooltipText:I}):null]})})},O))}),Et(Ioe,{children:Pi(Aoe,{children:[Et(Yd,{earliestDate:r,latestDate:n,onChange:O=>{g(O)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),Et(_d,{earliestDate:r,latestDate:n,onChange:O=>{g(O)},onIsValidChange:b,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),Et($oe,{}),Pi(koe,{children:[Et("div",{children:s}),Pi(co,{align:"right",children:[Et(Qe,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),Et(Qe,{"data-testid":"apply-button",disabled:!!D.length||!y,onMouseUp:()=>{u&&u(h),m(!1)},children:"Apply"})]})]})]}):null]})};oF.displayName="RangeSelector_VHS";a();a();import Gg,{css as Noe}from"styled-components";a();a();import ps from"react";function Vg(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function Ng(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Jd(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zd(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Ai(e,t){return Lg(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function Lg(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var zg=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=u=>{u.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=u=>{o.setState({pending:!0});let l=o.getMousePosition(u),c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=u=>{if(u.touches.length>1)return;o.setState({pending:!0});let l=o.getTouchPosition(u);if(o.isScrolling===void 0){let d=l[0]-o.startPosition[0],h=l[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=u=>{if(!(u.ctrlKey||u.shiftKey||u.altKey||u.metaKey))switch(o.setState({pending:!0}),u.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":u.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":u.preventDefault(),o.moveUpByStep();break;case"Home":u.preventDefault(),o.move(o.props.min);break;case"End":u.preventDefault(),o.move(o.props.max);break;case"PageDown":u.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":u.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=u=>{if(!o.props.disabled&&u.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let l=o.getMousePosition(u);o.forceValueFromPosition(l[0],c=>{o.start(c,l[0]),Zd(o.getMouseEventMap())})}Vg(u)}},o.onSliderClick=u=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let l=o.getMousePosition(u),c=Ai(o.calcValue(o.calcOffsetFromPosition(l[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=u=>l=>{o.props.disabled||(o.start(u),Zd(o.getKeyDownEventMap()),Vg(l))},o.createOnMouseDown=u=>l=>{if(o.props.disabled||l.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(l);o.start(u,c[0]),Zd(o.getMouseEventMap()),Vg(l)},o.createOnTouchStart=u=>l=>{if(o.props.disabled||l.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(l);o.startPosition=c,o.isScrolling=void 0,o.start(u,c[0]),Zd(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(l)},o.handleResize=()=>{let u=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(u)},o.renderThumb=(u,l)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+l+" "+(o.state.index===l?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+l]=h},key:o.props.thumbClassName+"-"+l,className:c,style:u,onMouseDown:o.createOnMouseDown(l),onTouchStart:o.createOnTouchStart(l),onFocus:o.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[l],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[l]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[l]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:l,value:Jd(o.state.value),valueNow:o.state.value[l]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(u,l,c)=>{let p={key:o.props.trackClassName+"-"+u,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+u,style:o.buildTrackStyle(l,o.state.upperBound-c)},d={index:u,value:Jd(o.state.value)};return o.props.renderTrack(p,d)};let i=Ng(n.value);i.length||(i=Ng(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let u=0;u<i.length;u+=1)i[u]=Ai(i[u],n),s.push(u);return o.resizeObserver=null,o.resizeElementRef=ps.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:s},o}xs(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let i=Ng(n.value);return i.length?o.pending?null:{value:i.map(s=>Ai(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return Jd(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,i=-1,{value:s}=this.state,u=s.length;for(let l=0;l<u;l+=1){let c=this.calcOffset(s[l]),p=Math.abs(n-c);p<o&&(o=p,i=l)}return i},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Ai(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let i=this.sizeKey(),s=n.getBoundingClientRect(),u=n[i],l=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],d=u-p,h=Math.abs(l-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,i=o.getBoundingClientRect(),s=i[this.posMaxKey()],u=i[this.posMinKey()],l=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:u));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},r.forceValueFromPosition=function(n,o){let i=this.calcOffsetFromPosition(n),s=this.getClosestIndex(i),u=Ai(this.calcValue(i),this.props),l=this.state.value.slice();l[s]=u;for(let c=0;c<l.length-1;c+=1)if(l[c+1]-l[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let i=this["thumb"+n];i&&i.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(u=>({startValue:u.value[n],startPosition:o!==void 0?o:u.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],i=Ai(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(i,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],i=Ai(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(i,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:i}=this.state,{length:s}=o,u=o[i];if(n===u)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:l,max:c,min:p,minDistance:d}=this.props;if(!l){if(i>0){let h=o[i-1];n<h+d&&(n=h+d)}if(i<s-1){let h=o[i+1];n>h-d&&(n=h-d)}}o[i]=n,l&&s>1&&(n>u?(this.pushSucceeding(o,d,i),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m-y*v;g[h-1-y]>b&&(g[h-1-y]=b)}}(s,o,d,c)):n<u&&(this.pushPreceding(o,d,i),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m+y*v;g[y]<b&&(g[y]=b)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,i){let s,u;for(s=i,u=n[s]+o;n[s+1]!==null&&u>n[s+1];s+=1,u=n[s]+o)n[s+1]=Lg(u,this.props)},r.pushPreceding=function(n,o,i){for(let s=i,u=n[s]-o;n[s-1]!==null&&u<n[s-1];s-=1,u=n[s]-o)n[s-1]=Lg(u,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](Jd(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=n+"px",i},r.buildTrackStyle=function(n,o){let i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=n,i[this.posMaxKey()]=o,i},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,i=[];for(let u=0;u<o;u+=1)i[u]=this.buildThumbStyle(n[u],u);let s=[];for(let u=0;u<o;u+=1)s[u]=this.renderThumb(i[u],u);return s},r.renderTracks=function(n){let o=[],i=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<i;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(i+1,n[i],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((i,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((i,s)=>s).filter(i=>i%n==0)),n.map(parseFloat).sort((i,s)=>i-s).map(i=>{let s=this.calcOffset(i),u={key:i,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(u)})},r.render=function(){let n=[],{value:o}=this.state,i=o.length;for(let c=0;c<i;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,u=this.renderThumbs(n),l=this.props.marks?this.renderMarks():null;return ps.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,u,l)},t}(ps.Component);zg.displayName="ReactSlider",zg.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>ps.createElement("div",e),renderTrack:e=>ps.createElement("div",e),renderMark:e=>ps.createElement("span",e)};var Hg=zg;import{jsx as rl}from"react/jsx-runtime";var iF="4px",Loe=Noe`
|
|
2641
|
+
`,oF=({align:e="left",buttonVariant:t="secondary",earliestDate:r,latestDate:n,format:o=Soe,fullWidth:i=!1,footerText:s,onChange:u,presets:l=[],range:c={end:new Date,start:new Date},shouldPreventFuture:p=!1,...d})=>{let[h,g]=tl(c),[v,m]=tl(!1),[y,b]=tl(!0),[x,w]=tl("end"),[D,E]=tl([]),S=Cn();return rF(()=>{g(c)},[c]),rF(()=>{let O=()=>{m(!1),g(c)};return v&&window.addEventListener("click",O),()=>{window.removeEventListener("click",O)}},[v,c,g]),Pi(Poe,{"data-testid":"rangeselector-test-identifer",onClick:O=>O.stopPropagation(),children:[Et(Aoe,{...d,"data-testid":"trigger",fullWidth:i,icon:Et(Ee,{size:"sm",type:"caret-down"}),iconPosition:"end",inputButtonOverride:t==="input",onClick:()=>m(!v),textAlign:"left",variant:t==="input"?"tertiary":t,children:o(c)}),v?Pi(Boe,{align:e,hasPresets:!!l.length,children:[Pi($oe,{children:[!!l.length&&Et(ed,{"data-testid":"presets",style:{marginBottom:0,borderRight:`1px solid ${S.color.grey400}`,padding:"12px"},variant:"unbulleted",children:l.map(({label:O,value:F,tooltipText:I})=>Et(Za,{children:Et(Ooe,{"data-testid":O?.replaceAll(" ","_"),isActive:Eoe(h,F),onClick:()=>{g(F)},children:Pi(Ioe,{"data-title":`${O}___`,children:[O," ",I!==void 0?Et(Doe,{tooltipText:I}):null]})})},O))}),Et(Roe,{children:Pi(Toe,{children:[Et(Yd,{earliestDate:r,latestDate:n,onChange:O=>{g(O)},onErrorChange:E,onSelectedRangePartChange:w,range:h,shouldPreventFuture:p,width:"100%"}),Et(_d,{earliestDate:r,latestDate:n,onChange:O=>{g(O)},onIsValidChange:b,range:h,rangePartToShow:x,shouldPreventFuture:p})]})})]}),Et(Foe,{}),Pi(Moe,{children:[Et("div",{children:s}),Pi(co,{align:"right",children:[Et(Qe,{onClick:()=>{g(c),m(!1)},style:{marginLeft:0},variant:"secondary",children:"Cancel"}),Et(Qe,{"data-testid":"apply-button",disabled:!!D.length||!y,onMouseUp:()=>{u&&u(h),m(!1)},children:"Apply"})]})]})]}):null]})};oF.displayName="RangeSelector_VHS";a();a();import Gg,{css as koe}from"styled-components";a();a();import ps from"react";function Vg(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function Ng(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Jd(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zd(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Ai(e,t){return Lg(function(r,n){let o=r;return o<=n.min&&(o=n.min),o>=n.max&&(o=n.max),o}(e,t),t)}function Lg(e,t){let r=(e-t.min)%t.step,n=e-r;return 2*Math.abs(r)>=t.step&&(n+=r>0?t.step:-t.step),parseFloat(n.toFixed(5))}var zg=function(e){function t(n){var o;(o=e.call(this,n)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=u=>{u.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=u=>{o.setState({pending:!0});let l=o.getMousePosition(u),c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onTouchMove=u=>{if(u.touches.length>1)return;o.setState({pending:!0});let l=o.getTouchPosition(u);if(o.isScrolling===void 0){let d=l[0]-o.startPosition[0],h=l[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});let c=o.getDiffPosition(l[0]),p=o.getValueFromPosition(c);o.move(p)},o.onKeyDown=u=>{if(!(u.ctrlKey||u.shiftKey||u.altKey||u.metaKey))switch(o.setState({pending:!0}),u.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":u.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":u.preventDefault(),o.moveUpByStep();break;case"Home":u.preventDefault(),o.move(o.props.min);break;case"End":u.preventDefault(),o.move(o.props.max);break;case"PageDown":u.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":u.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=u=>{if(!o.props.disabled&&u.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){let l=o.getMousePosition(u);o.forceValueFromPosition(l[0],c=>{o.start(c,l[0]),Zd(o.getMouseEventMap())})}Vg(u)}},o.onSliderClick=u=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){let l=o.getMousePosition(u),c=Ai(o.calcValue(o.calcOffsetFromPosition(l[0])),o.props);o.props.onSliderClick(c)}},o.createOnKeyDown=u=>l=>{o.props.disabled||(o.start(u),Zd(o.getKeyDownEventMap()),Vg(l))},o.createOnMouseDown=u=>l=>{if(o.props.disabled||l.button===2)return;o.setState({pending:!0});let c=o.getMousePosition(l);o.start(u,c[0]),Zd(o.getMouseEventMap()),Vg(l)},o.createOnTouchStart=u=>l=>{if(o.props.disabled||l.touches.length>1)return;o.setState({pending:!0});let c=o.getTouchPosition(l);o.startPosition=c,o.isScrolling=void 0,o.start(u,c[0]),Zd(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(l)},o.handleResize=()=>{let u=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(u)},o.renderThumb=(u,l)=>{let c=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+l+" "+(o.state.index===l?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+l]=h},key:o.props.thumbClassName+"-"+l,className:c,style:u,onMouseDown:o.createOnMouseDown(l),onTouchStart:o.createOnTouchStart(l),onFocus:o.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[l],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[l]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[l]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:l,value:Jd(o.state.value),valueNow:o.state.value[l]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(u,l,c)=>{let p={key:o.props.trackClassName+"-"+u,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+u,style:o.buildTrackStyle(l,o.state.upperBound-c)},d={index:u,value:Jd(o.state.value)};return o.props.renderTrack(p,d)};let i=Ng(n.value);i.length||(i=Ng(n.defaultValue)),o.pendingResizeTimeouts=[];let s=[];for(let u=0;u<i.length;u+=1)i[u]=Ai(i[u],n),s.push(u);return o.resizeObserver=null,o.resizeElementRef=ps.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:s},o}xs(t,e);var r=t.prototype;return r.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(n,o){let i=Ng(n.value);return i.length?o.pending?null:{value:i.map(s=>Ai(s,n))}:null},r.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},r.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},r.onEnd=function(n){n&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(n),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},r.getValue=function(){return Jd(this.state.value)},r.getClosestIndex=function(n){let o=Number.MAX_VALUE,i=-1,{value:s}=this.state,u=s.length;for(let l=0;l<u;l+=1){let c=this.calcOffset(s[l]),p=Math.abs(n-c);p<o&&(o=p,i=l)}return i},r.getMousePosition=function(n){return[n["page"+this.axisKey()],n["page"+this.orthogonalAxisKey()]]},r.getTouchPosition=function(n){let o=n.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},r.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},r.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},r.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},r.getValueFromPosition=function(n){let o=n/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Ai(this.state.startValue+o,this.props)},r.getDiffPosition=function(n){let o=n-this.state.startPosition;return this.props.invert&&(o*=-1),o},r.resize=function(){let{slider:n,thumb0:o}=this;if(!n||!o)return;let i=this.sizeKey(),s=n.getBoundingClientRect(),u=n[i],l=s[this.posMaxKey()],c=s[this.posMinKey()],p=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],d=u-p,h=Math.abs(l-c);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},r.calcOffset=function(n){let o=this.props.max-this.props.min;return o===0?0:(n-this.props.min)/o*this.state.upperBound},r.calcValue=function(n){return n/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},r.calcOffsetFromPosition=function(n){let{slider:o}=this,i=o.getBoundingClientRect(),s=i[this.posMaxKey()],u=i[this.posMinKey()],l=n-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?s:u));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},r.forceValueFromPosition=function(n,o){let i=this.calcOffsetFromPosition(n),s=this.getClosestIndex(i),u=Ai(this.calcValue(i),this.props),l=this.state.value.slice();l[s]=u;for(let c=0;c<l.length-1;c+=1)if(l[c+1]-l[c]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{o(s),this.fireChangeEvent("onChange")})},r.clearPendingResizeTimeouts=function(){do{let n=this.pendingResizeTimeouts.shift();clearTimeout(n)}while(this.pendingResizeTimeouts.length)},r.start=function(n,o){let i=this["thumb"+n];i&&i.focus();let{zIndices:s}=this.state;s.splice(s.indexOf(n),1),s.push(n),this.setState(u=>({startValue:u.value[n],startPosition:o!==void 0?o:u.startPosition,index:n,zIndices:s}))},r.moveUpByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],i=Ai(this.props.invert&&this.props.orientation==="horizontal"?o-n:o+n,this.props);this.move(Math.min(i,this.props.max))},r.moveDownByStep=function(n){n===void 0&&(n=this.props.step);let o=this.state.value[this.state.index],i=Ai(this.props.invert&&this.props.orientation==="horizontal"?o+n:o-n,this.props);this.move(Math.max(i,this.props.min))},r.move=function(n){let o=this.state.value.slice(),{index:i}=this.state,{length:s}=o,u=o[i];if(n===u)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;let{pearling:l,max:c,min:p,minDistance:d}=this.props;if(!l){if(i>0){let h=o[i-1];n<h+d&&(n=h+d)}if(i<s-1){let h=o[i+1];n>h-d&&(n=h-d)}}o[i]=n,l&&s>1&&(n>u?(this.pushSucceeding(o,d,i),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m-y*v;g[h-1-y]>b&&(g[h-1-y]=b)}}(s,o,d,c)):n<u&&(this.pushPreceding(o,d,i),function(h,g,v,m){for(let y=0;y<h;y+=1){let b=m+y*v;g[y]<b&&(g[y]=b)}}(s,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},r.pushSucceeding=function(n,o,i){let s,u;for(s=i,u=n[s]+o;n[s+1]!==null&&u>n[s+1];s+=1,u=n[s]+o)n[s+1]=Lg(u,this.props)},r.pushPreceding=function(n,o,i){for(let s=i,u=n[s]-o;n[s-1]!==null&&u<n[s-1];s-=1,u=n[s]-o)n[s-1]=Lg(u,this.props)},r.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},r.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},r.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},r.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},r.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},r.fireChangeEvent=function(n){this.props[n]&&this.props[n](Jd(this.state.value),this.state.index)},r.buildThumbStyle=function(n,o){let i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=n+"px",i},r.buildTrackStyle=function(n,o){let i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=n,i[this.posMaxKey()]=o,i},r.buildMarkStyle=function(n){var o;return(o={position:"absolute"})[this.posMinKey()]=n,o},r.renderThumbs=function(n){let{length:o}=n,i=[];for(let u=0;u<o;u+=1)i[u]=this.buildThumbStyle(n[u],u);let s=[];for(let u=0;u<o;u+=1)s[u]=this.renderThumb(i[u],u);return s},r.renderTracks=function(n){let o=[],i=n.length-1;o.push(this.renderTrack(0,0,n[0]));for(let s=0;s<i;s+=1)o.push(this.renderTrack(s+1,n[s],n[s+1]));return o.push(this.renderTrack(i+1,n[i],this.state.upperBound)),o},r.renderMarks=function(){let{marks:n}=this.props,o=this.props.max-this.props.min+1;return typeof n=="boolean"?n=Array.from({length:o}).map((i,s)=>s):typeof n=="number"&&(n=Array.from({length:o}).map((i,s)=>s).filter(i=>i%n==0)),n.map(parseFloat).sort((i,s)=>i-s).map(i=>{let s=this.calcOffset(i),u={key:i,className:this.props.markClassName,style:this.buildMarkStyle(s)};return this.props.renderMark(u)})},r.render=function(){let n=[],{value:o}=this.state,i=o.length;for(let c=0;c<i;c+=1)n[c]=this.calcOffset(o[c],c);let s=this.props.withTracks?this.renderTracks(n):null,u=this.renderThumbs(n),l=this.props.marks?this.renderMarks():null;return ps.createElement("div",{ref:c=>{this.slider=c,this.resizeElementRef.current=c},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},s,u,l)},t}(ps.Component);zg.displayName="ReactSlider",zg.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>ps.createElement("div",e),renderTrack:e=>ps.createElement("div",e),renderMark:e=>ps.createElement("span",e)};var Hg=zg;import{jsx as rl}from"react/jsx-runtime";var iF="4px",Voe=koe`
|
|
2643
2642
|
opacity: 0.5;
|
|
2644
2643
|
|
|
2645
2644
|
& * {
|
|
2646
2645
|
pointer-events: none;
|
|
2647
2646
|
}
|
|
2648
|
-
`,
|
|
2647
|
+
`,Noe=Gg.div`
|
|
2649
2648
|
padding-bottom: ${iF};
|
|
2650
2649
|
width: 100%;
|
|
2651
|
-
${({disabled:e})=>e?
|
|
2652
|
-
`,
|
|
2650
|
+
${({disabled:e})=>e?Voe:null}
|
|
2651
|
+
`,Loe=Gg.div`
|
|
2653
2652
|
background-color: ${({theme:e})=>e.color.brandBlue100};
|
|
2654
2653
|
border-color: ${({theme:e})=>e.color.brandBlue500};
|
|
2655
2654
|
border-radius: 50%;
|
|
@@ -2675,11 +2674,11 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2675
2674
|
border-width: 3px;
|
|
2676
2675
|
outline: none;
|
|
2677
2676
|
}
|
|
2678
|
-
`,
|
|
2677
|
+
`,zoe=e=>{let t=e.index===0;if(Array.isArray(e.value)){let r=e.value;r.length>1&&(t=e.index>0&&e.index<r.length)}return t},Hoe=Gg.div`
|
|
2679
2678
|
background: ${({isFilledTrack:e,theme:t})=>e?t.color.brandBlue500:t.color.grey400};
|
|
2680
2679
|
border-radius: 999px;
|
|
2681
2680
|
height: ${iF};
|
|
2682
|
-
`,aF=({ariaLabel:e,ariaLabelledby:t,ariaValuetext:r,disabled:n=!1,defaultValue:o=0,max:i=100,min:s=0,onChange:u,step:l=1,value:c,"data-testid":p,...d})=>{be(e)||be(t)||console.warn("VHS Slider: Sliders are required to have an accessible name. Add a label using the ariaLabel or ariaLabelledby prop.");let h=$(p)?p:"vhs-slider";return rl(
|
|
2681
|
+
`,aF=({ariaLabel:e,ariaLabelledby:t,ariaValuetext:r,disabled:n=!1,defaultValue:o=0,max:i=100,min:s=0,onChange:u,step:l=1,value:c,"data-testid":p,...d})=>{be(e)||be(t)||console.warn("VHS Slider: Sliders are required to have an accessible name. Add a label using the ariaLabel or ariaLabelledby prop.");let h=$(p)?p:"vhs-slider";return rl(Noe,{...d,"data-testid":h,disabled:n,children:rl(Hg,{ariaLabel:gt(e)||ms(e)?e:void 0,ariaLabelledby:gt(t)||ms(t)?t:void 0,ariaValuetext:Fo(r)?g=>r(g):r,defaultValue:n1(o)||ms(o)?o:void 0,disabled:n,marks:l,max:i,min:s,onChange:u,renderMark:g=>{let{key:v,...m}=g;return rl("div",{...m,"data-testid":`${h}-mark-${g.key+s}`},v)},renderThumb:(g,v)=>{let{key:m,...y}=g;return rl(Loe,{...y,"data-testid":`${h}-thumb-${v.index}`},m)},renderTrack:(g,v)=>{let{key:m,...y}=g;return rl(Hoe,{...y,"data-testid":`${h}-track-${v.index}`,isFilledTrack:zoe(v)},m)},step:l,value:n1(c)||ms(c)?c:void 0})})};aF.displayName="Slider_VHS";a();a();import uF from"styled-components";import{jsx as sF}from"react/jsx-runtime";var jg=uF.button`
|
|
2683
2682
|
background-color: white;
|
|
2684
2683
|
border-color: ${({theme:e})=>e.color.grey700};
|
|
2685
2684
|
border-radius: 20px;
|
|
@@ -2715,7 +2714,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2715
2714
|
cursor: not-allowed;
|
|
2716
2715
|
opacity: 0.5;
|
|
2717
2716
|
}
|
|
2718
|
-
`,
|
|
2717
|
+
`,Goe=uF.div`
|
|
2719
2718
|
background-color: ${({theme:e})=>e.color.grey700};
|
|
2720
2719
|
border-radius: 50%;
|
|
2721
2720
|
height: 12px;
|
|
@@ -2758,7 +2757,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2758
2757
|
left: 20px;
|
|
2759
2758
|
}
|
|
2760
2759
|
}
|
|
2761
|
-
`,lF=({disabled:e=!1,isChecked:t=!1,onChange:r,colorOverride:n,...o})=>sF(jg,{"aria-checked":t,"aria-disabled":e,"aria-label":t?"on":"off",colorOverride:n,onClick:e?void 0:()=>{r&&r(!t)},role:"switch",type:"button",...o,children:sF(
|
|
2760
|
+
`,lF=({disabled:e=!1,isChecked:t=!1,onChange:r,colorOverride:n,...o})=>sF(jg,{"aria-checked":t,"aria-disabled":e,"aria-label":t?"on":"off",colorOverride:n,onClick:e?void 0:()=>{r&&r(!t)},role:"switch",type:"button",...o,children:sF(Goe,{})});lF.displayName="Switch_VHS";a();a();import Oi from"styled-components";import{jsx as kn,jsxs as cF}from"react/jsx-runtime";var joe=Oi.div`
|
|
2762
2761
|
${({gradientBackground:e})=>Ir(e)};
|
|
2763
2762
|
aspect-ratio: 16 / 9;
|
|
2764
2763
|
background-image: ${({backgroundUrl:e})=>e};
|
|
@@ -2769,15 +2768,15 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2769
2768
|
overflow: hidden;
|
|
2770
2769
|
position: relative;
|
|
2771
2770
|
width: ${({width:e})=>e};
|
|
2772
|
-
`,
|
|
2771
|
+
`,_oe=Oi.img`
|
|
2773
2772
|
height: 100%;
|
|
2774
2773
|
object-fit: cover;
|
|
2775
2774
|
width: 100%;
|
|
2776
|
-
`,
|
|
2775
|
+
`,Woe=Oi.img`
|
|
2777
2776
|
backdrop-filter: blur(8px);
|
|
2778
2777
|
object-fit: contain;
|
|
2779
2778
|
width: 100%;
|
|
2780
|
-
`,
|
|
2779
|
+
`,Uoe=Oi.div`
|
|
2781
2780
|
align-items: center;
|
|
2782
2781
|
background-color: rgb(0 0 0 / 50%);
|
|
2783
2782
|
border-radius: 2px;
|
|
@@ -2793,7 +2792,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2793
2792
|
position: absolute;
|
|
2794
2793
|
right: 0;
|
|
2795
2794
|
z-index: ${({theme:e})=>e.zIndex.ThumbnailDuration};
|
|
2796
|
-
`,
|
|
2795
|
+
`,Koe=Oi.div`
|
|
2797
2796
|
align-self: center;
|
|
2798
2797
|
aspect-ratio: 1;
|
|
2799
2798
|
margin: 30%;
|
|
@@ -2803,12 +2802,12 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2803
2802
|
height: 100%;
|
|
2804
2803
|
width: 100%;
|
|
2805
2804
|
}
|
|
2806
|
-
`,
|
|
2805
|
+
`,qoe=({thumbnailImageType:e,thumbnailUrl:t})=>e==="wide"?kn(_oe,{alt:"",src:t}):e==="square"?kn(Woe,{alt:"",src:t}):null,Xoe=Oi.div`
|
|
2807
2806
|
display: grid;
|
|
2808
2807
|
grid-template-columns: auto auto;
|
|
2809
2808
|
grid-template-rows: 50% 50%;
|
|
2810
2809
|
width: 100%;
|
|
2811
|
-
`,
|
|
2810
|
+
`,Yoe=Oi.div`
|
|
2812
2811
|
background-image: ${({thumbnailUrl:e})=>`url(${e})`};
|
|
2813
2812
|
background-position: center;
|
|
2814
2813
|
background-size: cover;
|
|
@@ -2823,7 +2822,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2823
2822
|
grid-column: 2;
|
|
2824
2823
|
${({total:e})=>e===2&&"grid-row: 1 / 3;"}
|
|
2825
2824
|
}
|
|
2826
|
-
`,fF=({bottomRightText:e,thumbnailUrl:t,thumbnailImageType:r="square",icon:n,bottomRightIcon:o,width:i="auto",gradientBackground:s="defaultMidOne",iconColor:u="white",...l})=>{let c=Array.isArray(t)?t[0]:t;return cF(
|
|
2825
|
+
`,fF=({bottomRightText:e,thumbnailUrl:t,thumbnailImageType:r="square",icon:n,bottomRightIcon:o,width:i="auto",gradientBackground:s="defaultMidOne",iconColor:u="white",...l})=>{let c=Array.isArray(t)?t[0]:t;return cF(joe,{backgroundUrl:r==="square"&&$(c)?`url(${c})`:"",gradientBackground:s,width:i,...l,children:[$(e)?cF(Uoe,{children:[o?kn(Ee,{size:"sm",type:o}):null,kn("span",{children:e})]}):null,$(n)&&kn(Koe,{children:kn(Ee,{color:u,type:n})}),!Array.isArray(t)&&$(r)&&$(t)&&kn(qoe,{thumbnailImageType:r,thumbnailUrl:t}),Array.isArray(t)&&$(r)&&$(t)&&kn(Xoe,{"data-testid":"thumbnail-collage",children:t.map((p,d)=>kn(Yoe,{thumbnailUrl:p,total:t.length},`${p}${d}`))})]})};fF.displayName="Thumbnail_VHS";a();a();import Joe from"styled-components";import{jsx as Ao,jsxs as dF}from"react/jsx-runtime";var Zoe=Joe.svg`
|
|
2827
2826
|
height: ${({height:e})=>`${e}px`};
|
|
2828
2827
|
|
|
2829
2828
|
/* ensure it will always fit on mobile */
|
|
@@ -2835,7 +2834,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2835
2834
|
${({hoverColor:e})=>e!==void 0?`fill: ${e}`:null};
|
|
2836
2835
|
}
|
|
2837
2836
|
}
|
|
2838
|
-
`,
|
|
2837
|
+
`,Qoe=({brandmarkColor:e})=>dF("g",{fill:e,children:[Ao("path",{d:`
|
|
2839
2838
|
M15.37 19.26c-3.45.95-11.23.49-12.48.49H0l4.76-5.37c1.29-1.45
|
|
2840
2839
|
2-1.75 3.39-1.75s4.77.14 6.58 0A18.14 18.14 0 0022 10.64c2.95-1.86
|
|
2841
2840
|
3.54-3 3.54-3s1.05 8.53-10.17 11.62z
|
|
@@ -2843,7 +2842,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2843
2842
|
M25.19 4.19C25.73.9 23.87 0 23.87 0S24 2.68 19 3.25c-4.37.5-19
|
|
2844
2843
|
.12-19 .12l4.71 5.4a4 4 0 003.39 1.74 60.59 60.59 0 006.75-.1 15.8
|
|
2845
2844
|
15.8 0 008-2.7 6 6 0 002.34-3.52z
|
|
2846
|
-
`})]}),
|
|
2845
|
+
`})]}),eie=({logotypeColor:e})=>Ao("g",{fill:e,children:Ao("path",{d:`
|
|
2847
2846
|
M56.56.25h3.09l-7.9 19.61h-.82L44.76 4.51l-6.24
|
|
2848
2847
|
15.35h-.81v-.1L29.84.25H33l5.18 13 5.23-13h2.81l5.25 13zm6.06
|
|
2849
2848
|
19.53h3.07V.25h-3.07zM77.84 9.16l-2.1-1.24a8.29 8.29 0 01-2-1.55 2.31
|
|
@@ -2857,7 +2856,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2857
2856
|
3h5.8v16.78h3.08V3h5.91V.22H83.72zm18.12 16.79h3.07V.25h-3.07zm25.31
|
|
2858
2857
|
0H124l-2.56-5.69h-8L111 19.78h-3.18l.1-.22L116.25.14h2.14zM117.3
|
|
2859
2858
|
4.93l-2.64 6.39h5.49z
|
|
2860
|
-
`})}),
|
|
2859
|
+
`})}),tie=(e,t)=>e&&!t?"0 0 25.7 19.9":!e&&t?"29.6 0 97.7 20":"0 0 127.15 20",pF=({brandmark:e=!0,colorOverride:t=void 0,height:r=100,hoverColor:n=void 0,href:o=void 0,logotype:i=!0,title:s="Wistia",variant:u="standard",...l}={})=>{let[c]=_e(["brandBlue500"]),p={standard:{brandmark:t??c,logotype:t??"#0A162F"},black:{brandmark:"black",logotype:"black"},white:{brandmark:"white",logotype:"white"}},d=p[u].brandmark,h=p[u].logotype;if(!e&&!i)return null;let g=dF(Zoe,{height:r,hoverColor:n,role:"img",title:"Wistia Logo",viewBox:tie(!!e,!!i),xmlns:"http://www.w3.org/2000/svg",...l,children:[Ao("title",{children:s}),e?Ao(Qoe,{brandmarkColor:d}):null,i?Ao(eie,{logotypeColor:h}):null]});return o!==void 0?Ao("a",{href:o,children:g}):g};pF.displayName="WistiaLogo_VHS";a();a();import rie from"styled-components";import{jsx as Vn,jsxs as sie}from"react/jsx-runtime";var nie=(e,t)=>t?Vn("g",{fill:e,children:Vn("path",{d:"M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z"})}):Vn("g",{fill:e,children:Vn("path",{d:"M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z"})}),oie=(e,t)=>t?null:Vn("g",{fill:e,children:Vn("path",{d:"M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z"})}),iie=e=>e?"0 0 34.4 26.78":"0 0 144 31.47",aie=rie.svg`
|
|
2861
2860
|
height: ${({height:e})=>`${e}px`};
|
|
2862
2861
|
|
|
2863
2862
|
/* ensure it will always fit on mobile */
|
|
@@ -2869,7 +2868,7 @@ var CF=Object.create;var nl=Object.defineProperty;var xF=Object.getOwnPropertyDe
|
|
|
2869
2868
|
${({hoverColor:e})=>e!==void 0?`fill: ${e}`:null};
|
|
2870
2869
|
}
|
|
2871
2870
|
}
|
|
2872
|
-
`,mF=({description:e=void 0,height:t=100,hoverColor:r=void 0,href:n=void 0,iconOnly:o=!1,title:i="Wistia Logo",variant:s="standard",...u})=>{let l="#2949e5",c="#000934",p="#ffffff",d={standard:{brandmark:l,logotype:c},dark:{brandmark:c,logotype:c},light:{brandmark:p,logotype:p}},h=d[s].brandmark,g=d[s].logotype,v=
|
|
2871
|
+
`,mF=({description:e=void 0,height:t=100,hoverColor:r=void 0,href:n=void 0,iconOnly:o=!1,title:i="Wistia Logo",variant:s="standard",...u})=>{let l="#2949e5",c="#000934",p="#ffffff",d={standard:{brandmark:l,logotype:c},dark:{brandmark:c,logotype:c},light:{brandmark:p,logotype:p}},h=d[s].brandmark,g=d[s].logotype,v=sie(aie,{height:t,hoverColor:r,role:"img",viewBox:iie(o),xmlns:"http://www.w3.org/2000/svg",...u,children:[Vn("title",{children:i}),$(e)?Vn("desc",{children:e}):null,nie(h,o),oie(g,o)]});return n!==void 0?Vn("a",{href:n,children:v}):v};mF.displayName="WistiaLogoNew_VHS";export{Dx as ActionModal,_r as Backdrop,Ex as BackgroundImage,Ax as Badge,cu as Banner,Mx as Box,Ix as Breakline,Qe as Button,co as ButtonGroup,_x as ButtonLink,Kf as Checkbox,Jf as CheckboxGroup,Wat as CheckboxMenuItem,Yx as ClickArea,Qx as CloseButton,lw as CollapsibleGroup,ep as Divider,lx as Ellipsis,cw as FileSelect,vw as Form,bw as FormButtons,yT as FormField,Xf as FormFieldError,tp as FormGlobalError,bT as FullScreenModal,Ee as Icon,fo as IconButton,CT as Image,Ia as Input,xT as KeyboardShortcut,qf as Label,Yf as LabelDescription,Hf as Link,wT as LinkButton,ed as List,Za as ListItem,AT as MediaObject,mne as Menu,vO as MenuButton,_at as MenuItem,ost as MenuLabel,ist as MenuRadioGroup,hut as Modal,Ba as ModalBase,Sut as ModalBody,Tut as ModalCloseButton,EO as ModalContent,Eut as ModalFooter,Dut as ModalHeader,PO as Paper,FO as ProgressBar,lp as Radio,cp as RadioGroup,Uat as RadioMenuItem,oF as RangeSelector,_d as RangeSelectorCalendar,Yd as RangeSelectorInput,Yp as RichTextEditor,Mf as ScreenReaderOnly,ni as Select,aF as Slider,ast as SubMenu,wg as SubMenuTrigger,lF as Switch,sr as Text,fF as Thumbnail,Gc as Toast,Nm as ToastProvider,$a as Tooltip,Vf as Truncate,PAe as VHSProvider,pF as WistiaLogo,mF as WistiaLogoNew,ds as copyToClipboard,tse as datetimeHelpers,NG as ellipsisFlexParentStyle,vr as ellipsisStyle,Ir as getBackgroundGradient,pse as getSemiRandomBackgroundGradient,Vc as iconSizeMap,Ju as isValidRange,Ve as mq,Pue as objectHelpers,Up as rteDeserializeHTML,mt as rteFormatTypes,Ya as rteSerializeToHTML,au as screenReaderOnlyStyle,fle as stringHelpers,Gm as useBoolean,uk as useClipboard,jm as useElementObserver,Wm as useEvent,Xm as useFocusTrap,xk as useForceUpdate,Zo as useFormikContext,iG as useIsHovered,Bf as useKey,v0 as useKeyPress,b0 as useKeyPressOnce,pG as useLocalStorage,tu as useMergedRefs,xn as useMq,ru as useOnClickOutside,C0 as usePreventScroll,nu as usePreviousValue,Cn as useTheme,_e as useThemeColor,du as useToast,Sm as useWindowSize};
|
|
2873
2872
|
/*! Bundled license information:
|
|
2874
2873
|
|
|
2875
2874
|
react-is/cjs/react-is.production.min.js:
|