@wistia/vhs 2.70.1 → 2.71.0
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/Switch/Switch.d.ts +5 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/index.cjs +207 -203
- package/dist/index.cjs.map +3 -3
- package/dist/index.mjs +43 -39
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/vhs v2.
|
|
3
|
+
* @license @wistia/vhs v2.71.0
|
|
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 vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDescriptor;var bM=Object.getOwnPropertyNames;var CM=Object.getPrototypeOf,xM=Object.prototype.hasOwnProperty;var K1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q1=(e,t)=>{for(var r in t)_l(e,r,{get:t[r],enumerable:!0})},o5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bM(t))!xM.call(e,o)&&o!==r&&_l(e,o,{get:()=>t[o],enumerable:!(n=yM(t,o))||n.enumerable});return e};var U=(e,t,r)=>(r=e!=null?vM(CM(e)):{},o5(t||!e||!e.__esModule?_l(r,"default",{value:e,enumerable:!0}):r,e)),wM=e=>o5(_l({},"__esModule",{value:!0}),e);import*as f from"react";var i=K1(()=>{"use strict"});var Q=Oe(Y=>{"use strict";i();Object.defineProperty(Y,"__esModule",{value:!0});Y.hasKey=Y.isError=Y.isVoid=Y.isNotBoolean=Y.isBoolean=Y.isNotFunction=Y.isFunction=Y.isNonEmptyArray=Y.isEmptyArray=Y.isNotArray=Y.isArray=Y.isNonEmptyRecord=Y.isEmptyRecord=Y.isRecord=Y.isInteger=Y.isNaN=Y.isNotNumber=Y.isNumber=Y.isNonEmptyString=Y.isEmptyString=Y.isNotString=Y.isString=Y.isNotNil=Y.isNil=Y.isNotUndefined=Y.isUndefined=Y.isNotNull=Y.isNull=void 0;var SM=e=>e===null;Y.isNull=SM;var DM=e=>!(0,Y.isNull)(e);Y.isNotNull=DM;var EM=e=>e===void 0;Y.isUndefined=EM;var PM=e=>!(0,Y.isUndefined)(e);Y.isNotUndefined=PM;var TM=e=>(0,Y.isNull)(e)||(0,Y.isUndefined)(e);Y.isNil=TM;var AM=e=>!(0,Y.isNil)(e);Y.isNotNil=AM;var RM=e=>typeof e=="string";Y.isString=RM;var FM=e=>!(0,Y.isString)(e);Y.isNotString=FM;var OM=e=>(0,Y.isString)(e)&&e==="";Y.isEmptyString=OM;var BM=e=>(0,Y.isString)(e)&&!(0,Y.isEmptyString)(e);Y.isNonEmptyString=BM;var MM=e=>typeof e=="number";Y.isNumber=MM;var IM=e=>!(0,Y.isNumber)(e);Y.isNotNumber=IM;var kM=e=>Number.isNaN(e);Y.isNaN=kM;var NM=e=>Number.isInteger(e);Y.isInteger=NM;var VM=e=>(0,Y.isNotNil)(e)&&typeof e=="object"&&!(e instanceof Array);Y.isRecord=VM;var LM=e=>(0,Y.isRecord)(e)&&Object.keys(e).length===0;Y.isEmptyRecord=LM;var $M=e=>(0,Y.isRecord)(e)&&Object.keys(e).length>0;Y.isNonEmptyRecord=$M;var zM=e=>(0,Y.isNotNil)(e)&&typeof e=="object"&&e instanceof Array;Y.isArray=zM;var GM=e=>!(0,Y.isArray)(e);Y.isNotArray=GM;var HM=e=>(0,Y.isArray)(e)&&e.length===0;Y.isEmptyArray=HM;var jM=e=>(0,Y.isArray)(e)&&e.length>0;Y.isNonEmptyArray=jM;var _M=e=>(0,Y.isNotNil)(e)&&typeof e=="function";Y.isFunction=_M;var WM=e=>!(0,Y.isFunction)(e);Y.isNotFunction=WM;var UM=e=>(0,Y.isNotNil)(e)&&typeof e=="boolean";Y.isBoolean=UM;var KM=e=>!(0,Y.isBoolean)(e);Y.isNotBoolean=KM;var qM=e=>e===void 0;Y.isVoid=qM;var XM=e=>(0,Y.isNotNil)(e)&&e instanceof Error;Y.isError=XM;var YM=(e,t)=>(0,Y.isNonEmptyRecord)(e)&&t in e;Y.hasKey=YM});var e4=Oe((hde,xm)=>{i();var Q5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);Q5?(bm=new Uint8Array(16),xm.exports=function(){return Q5(bm),bm}):(Cm=new Array(16),xm.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),Cm[t]=r>>>((t&3)<<3)&255;return Cm});var bm,Cm});var n4=Oe((vde,r4)=>{i();var t4=[];for(tu=0;tu<256;++tu)t4[tu]=(tu+256).toString(16).substr(1);var tu;function sk(e,t){var r=t||0,n=t4;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("")}r4.exports=sk});var i4=Oe((bde,o4)=>{i();var uk=e4(),lk=n4();function ck(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||uk)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[n+a]=o[a];return t||lk(o)}o4.exports=ck});function l6(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var c6=K1(()=>{i()});var f6={};q1(f6,{default:()=>eL});var QV,eL,p6=K1(()=>{i();c6();QV=/^((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)-.*))$/,eL=l6(function(e){return QV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var iw=Oe((sHe,ow)=>{"use strict";i();var rw=Array.isArray,nw=Object.keys,P_=Object.prototype.hasOwnProperty,T_=typeof Element<"u";function th(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=rw(e),n=rw(t),o,a,s;if(r&&n){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!th(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=nw(e);if(a=d.length,a!==nw(t).length)return!1;for(o=a;o--!==0;)if(!P_.call(t,d[o]))return!1;if(T_&&e instanceof Element&&t instanceof Element)return e===t;for(o=a;o--!==0;)if(s=d[o],!(s==="_owner"&&e.$$typeof)&&!th(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}ow.exports=function(t,r){try{return th(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 vw=Oe(Te=>{"use strict";i();var ct=typeof Symbol=="function"&&Symbol.for,ih=ct?Symbol.for("react.element"):60103,ah=ct?Symbol.for("react.portal"):60106,np=ct?Symbol.for("react.fragment"):60107,op=ct?Symbol.for("react.strict_mode"):60108,ip=ct?Symbol.for("react.profiler"):60114,ap=ct?Symbol.for("react.provider"):60109,sp=ct?Symbol.for("react.context"):60110,sh=ct?Symbol.for("react.async_mode"):60111,up=ct?Symbol.for("react.concurrent_mode"):60111,lp=ct?Symbol.for("react.forward_ref"):60112,cp=ct?Symbol.for("react.suspense"):60113,U_=ct?Symbol.for("react.suspense_list"):60120,fp=ct?Symbol.for("react.memo"):60115,pp=ct?Symbol.for("react.lazy"):60116,K_=ct?Symbol.for("react.block"):60121,q_=ct?Symbol.for("react.fundamental"):60117,X_=ct?Symbol.for("react.responder"):60118,Y_=ct?Symbol.for("react.scope"):60119;function dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ih:switch(e=e.type,e){case sh:case up:case np:case ip:case op:case cp:return e;default:switch(e=e&&e.$$typeof,e){case sp:case lp:case pp:case fp:case ap:return e;default:return t}}case ah:return t}}}function gw(e){return dr(e)===up}Te.AsyncMode=sh;Te.ConcurrentMode=up;Te.ContextConsumer=sp;Te.ContextProvider=ap;Te.Element=ih;Te.ForwardRef=lp;Te.Fragment=np;Te.Lazy=pp;Te.Memo=fp;Te.Portal=ah;Te.Profiler=ip;Te.StrictMode=op;Te.Suspense=cp;Te.isAsyncMode=function(e){return gw(e)||dr(e)===sh};Te.isConcurrentMode=gw;Te.isContextConsumer=function(e){return dr(e)===sp};Te.isContextProvider=function(e){return dr(e)===ap};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ih};Te.isForwardRef=function(e){return dr(e)===lp};Te.isFragment=function(e){return dr(e)===np};Te.isLazy=function(e){return dr(e)===pp};Te.isMemo=function(e){return dr(e)===fp};Te.isPortal=function(e){return dr(e)===ah};Te.isProfiler=function(e){return dr(e)===ip};Te.isStrictMode=function(e){return dr(e)===op};Te.isSuspense=function(e){return dr(e)===cp};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===np||e===up||e===ip||e===op||e===cp||e===U_||typeof e=="object"&&e!==null&&(e.$$typeof===pp||e.$$typeof===fp||e.$$typeof===ap||e.$$typeof===sp||e.$$typeof===lp||e.$$typeof===q_||e.$$typeof===X_||e.$$typeof===Y_||e.$$typeof===K_)};Te.typeOf=dr});var bw=Oe((ZHe,yw)=>{"use strict";i();yw.exports=vw()});var Pw=Oe((eje,Ew)=>{"use strict";i();var uh=bw(),J_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lh={};lh[uh.ForwardRef]=Q_;lh[uh.Memo]=Sw;function Cw(e){return uh.isMemo(e)?Sw:lh[e.$$typeof]||J_}var eW=Object.defineProperty,tW=Object.getOwnPropertyNames,xw=Object.getOwnPropertySymbols,rW=Object.getOwnPropertyDescriptor,nW=Object.getPrototypeOf,ww=Object.prototype;function Dw(e,t,r){if(typeof t!="string"){if(ww){var n=nW(t);n&&n!==ww&&Dw(e,n,r)}var o=tW(t);xw&&(o=o.concat(xw(t)));for(var a=Cw(e),s=Cw(t),u=0;u<o.length;++u){var l=o[u];if(!Z_[l]&&!(r&&r[l])&&!(s&&s[l])&&!(a&&a[l])){var c=rW(t,l);try{eW(e,l,c)}catch{}}}}return e}Ew.exports=Dw});var vp=Oe((S_e,kw)=>{i();var zW=typeof Element<"u",GW=typeof Map=="function",HW=typeof Set=="function",jW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gp(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(!gp(e[n],t[n]))return!1;return!0}var a;if(GW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!gp(n.value[1],t.get(n.value[0])))return!1;return!0}if(HW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(jW&&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(zW&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!gp(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}kw.exports=function(t,r){try{return gp(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 ID=Oe((VQe,MD)=>{"use strict";i();MD.exports=DY;var OD="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",BD="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",wY=new RegExp("^[^"+BD+"]*["+OD+"]"),SY=new RegExp("^[^"+OD+"]*["+BD+"]");function DY(e){return e=String(e||""),wY.test(e)?"rtl":SY.test(e)?"ltr":"neutral"}});var nd=Oe(($Qe,kD)=>{i();function EY(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}kD.exports=EY});var VD=Oe((GQe,ND)=>{i();var PY=typeof window=="object"&&window&&window.Object===Object&&window;ND.exports=PY});var i2=Oe((jQe,LD)=>{i();var TY=VD(),AY=typeof self=="object"&&self&&self.Object===Object&&self,RY=TY||AY||Function("return this")();LD.exports=RY});var zD=Oe((WQe,$D)=>{i();var FY=i2(),OY=function(){return FY.Date.now()};$D.exports=OY});var HD=Oe((KQe,GD)=>{i();var BY=/\s/;function MY(e){for(var t=e.length;t--&&BY.test(e.charAt(t)););return t}GD.exports=MY});var _D=Oe((XQe,jD)=>{i();var IY=HD(),kY=/^\s+/;function NY(e){return e&&e.slice(0,IY(e)+1).replace(kY,"")}jD.exports=NY});var a2=Oe((JQe,WD)=>{i();var VY=i2(),LY=VY.Symbol;WD.exports=LY});var XD=Oe((QQe,qD)=>{i();var UD=a2(),KD=Object.prototype,$Y=KD.hasOwnProperty,zY=KD.toString,Xu=UD?UD.toStringTag:void 0;function GY(e){var t=$Y.call(e,Xu),r=e[Xu];try{e[Xu]=void 0;var n=!0}catch{}var o=zY.call(e);return n&&(t?e[Xu]=r:delete e[Xu]),o}qD.exports=GY});var JD=Oe((tet,YD)=>{i();var HY=Object.prototype,jY=HY.toString;function _Y(e){return jY.call(e)}YD.exports=_Y});var tE=Oe((net,eE)=>{i();var ZD=a2(),WY=XD(),UY=JD(),KY="[object Null]",qY="[object Undefined]",QD=ZD?ZD.toStringTag:void 0;function XY(e){return e==null?e===void 0?qY:KY:QD&&QD in Object(e)?WY(e):UY(e)}eE.exports=XY});var nE=Oe((iet,rE)=>{i();function YY(e){return e!=null&&typeof e=="object"}rE.exports=YY});var iE=Oe((set,oE)=>{i();var JY=tE(),ZY=nE(),QY="[object Symbol]";function eJ(e){return typeof e=="symbol"||ZY(e)&&JY(e)==QY}oE.exports=eJ});var lE=Oe((cet,uE)=>{i();var tJ=_D(),aE=nd(),rJ=iE(),sE=NaN,nJ=/^[-+]0x[0-9a-f]+$/i,oJ=/^0b[01]+$/i,iJ=/^0o[0-7]+$/i,aJ=parseInt;function sJ(e){if(typeof e=="number")return e;if(rJ(e))return sE;if(aE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=aE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=tJ(e);var r=oJ.test(e);return r||iJ.test(e)?aJ(e.slice(2),r?2:8):nJ.test(e)?sE:+e}uE.exports=sJ});var u2=Oe((pet,fE)=>{i();var uJ=nd(),s2=zD(),cE=lE(),lJ="Expected a function",cJ=Math.max,fJ=Math.min;function pJ(e,t,r){var n,o,a,s,u,l,c=0,p=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(lJ);t=cE(t)||0,uJ(r)&&(p=!!r.leading,d="maxWait"in r,a=d?cJ(cE(r.maxWait)||0,t):a,m="trailing"in r?!!r.trailing:m);function g(D){var P=n,R=o;return n=o=void 0,c=D,s=e.apply(R,P),s}function v(D){return c=D,u=setTimeout(y,t),p?g(D):s}function h(D){var P=D-l,R=D-c,F=t-P;return d?fJ(F,a-R):F}function b(D){var P=D-l,R=D-c;return l===void 0||P>=t||P<0||d&&R>=a}function y(){var D=s2();if(b(D))return x(D);u=setTimeout(y,h(D))}function x(D){return u=void 0,m&&n?g(D):(n=o=void 0,s)}function w(){u!==void 0&&clearTimeout(u),c=0,n=l=o=u=void 0}function S(){return u===void 0?s:x(s2())}function E(){var D=s2(),P=b(D);if(n=arguments,o=this,l=D,P){if(u===void 0)return v(l);if(d)return clearTimeout(u),u=setTimeout(y,t),g(l)}return u===void 0&&(u=setTimeout(y,t)),s}return E.cancel=w,E.flush=S,E}fE.exports=pJ});var dE=Oe((met,pE)=>{i();var dJ=u2(),mJ=nd(),hJ="Expected a function";function gJ(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(hJ);return mJ(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),dJ(e,t,{leading:n,maxWait:t,trailing:o})}pE.exports=gJ});var FP=Oe(un=>{"use strict";i();Object.defineProperty(un,"__esModule",{value:!0});var eee=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),H2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},tee={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:eee?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},PP={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(nl=1;nl<20;nl++)PP["f"+nl]=111+nl;var nl;function Cd(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return TP(s,t)}),o=function(u){return n.some(function(l){return AP(l,u)})},a=r==null?o:o(r);return a}function ree(e,t){return Cd(e,t)}function nee(e,t){return Cd(e,{byKey:!0},t)}function TP(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in H2)n[H2[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 m=d.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=j2(m),h=H2[v];(a===1||!h)&&(r?n.key=v:n.which=RP(m)),h&&(n[h]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function AP(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 RP(e){e=j2(e);var t=PP[e]||e.toUpperCase().charCodeAt(0);return t}function j2(e){return e=e.toLowerCase(),e=tee[e]||e,e}un.default=Cd;un.isHotkey=Cd;un.isCodeHotkey=ree;un.isKeyHotkey=nee;un.parseHotkey=TP;un.compareHotkey=AP;un.toKeyCode=RP;un.toKeyName=j2});var CT=Oe(ln=>{"use strict";i();Object.defineProperty(ln,"__esModule",{value:!0});var Rte=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),sg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},gT={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Rte?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ug={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(ll=1;ll<20;ll++)ug["f"+ll]=111+ll;var ll;function Od(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return vT(s,t)}),o=function(u){return n.some(function(l){return yT(l,u)})},a=r==null?o:o(r);return a}function Fte(e,t){return Od(e,t)}function Ote(e,t){return Od(e,{byKey:!0},t)}function vT(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in sg)n[sg[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 m=d.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=lg(m),h=sg[v];if(m.length>1&&!h&&!gT[m]&&!ug[v])throw new TypeError('Unknown modifier: "'+m+'"');(a===1||!h)&&(r?n.key=v:n.which=bT(m)),h&&(n[h]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function yT(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 bT(e){e=lg(e);var t=ug[e]||e.toUpperCase().charCodeAt(0);return t}function lg(e){return e=e.toLowerCase(),e=gT[e]||e,e}ln.default=Od;ln.isHotkey=Od;ln.isCodeHotkey=Fte;ln.isKeyHotkey=Ote;ln.parseHotkey=vT;ln.compareHotkey=yT;ln.toKeyCode=bT;ln.toKeyName=lg});i();i();i();var Gs=async e=>{if(navigator.clipboard)return navigator.clipboard.writeText(e).catch(a=>{throw a instanceof Error?a: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(a){console.error("error",a)}return r?.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};i();i();var g5=U(Q());i();i();i();var JM=Math.pow(10,8)*24*60*60*1e3,Kue=-JM;var i5=864e5;var ZM=3600;var a5=ZM*24,que=a5*7,QM=a5*365.2425,eI=QM/12,Xue=eI*3,X1=Symbol.for("constructDateFrom");function Mt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&X1 in e?e[X1](t):e instanceof Date?new e.constructor(t):new Date(t)}i();function he(e,t){return Mt(t||e,e)}function Y1(e,t,r){let n=he(e,r?.in);return isNaN(t)?Mt(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}i();function Hs(e,t,r){let n=he(e,r?.in);if(isNaN(t))return Mt(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),a=Mt(r?.in||e,n.getTime());a.setMonth(n.getMonth()+t+1,0);let s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}i();i();function J1(e){let t=he(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}i();function ro(e,...t){let r=Mt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}i();function Nr(e,t){let r=he(e,t?.in);return r.setHours(0,0,0,0),r}function Wl(e,t,r){let[n,o]=ro(r?.in,e,t),a=Nr(n),s=Nr(o),u=+a-J1(a),l=+s-J1(s);return Math.round((u-l)/i5)}i();function Z1(e,t,r){return Hs(e,t*12,r)}i();function Ul(e,t){let r=+he(e)-+he(t);return r<0?-1:r>0?1:r}i();function sr(e,t,r){let[n,o]=ro(r?.in,e,t);return+Nr(n)==+Nr(o)}i();i();function s5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function js(e){return!(!s5(e)&&typeof e!="number"||isNaN(+he(e)))}i();function l5(e,t,r){let[n,o]=ro(r?.in,e,t),a=u5(n,o),s=Math.abs(Wl(n,o));n.setDate(n.getDate()-a*s);let u=+(u5(n,o)===-a),l=a*(s-u);return l===0?0:l}function u5(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}i();function Yi(e,t){let r=he(e,t?.in);return r.setHours(23,59,59,999),r}i();function Q1(e,t){let r=he(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i();i();function Kl(e,t){let[r,n]=ro(e,t.start,t.end);return{start:r,end:n}}function c5(e,t){let{start:r,end:n}=Kl(t?.in,e),o=+r>+n,a=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<=a;)l.push(Mt(r,s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}i();function em(e,t){let{start:r,end:n}=Kl(t?.in,e),o=+r>+n,a=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<=a;)l.push(Mt(r,s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}i();function _s(e,t){let r=he(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i();function f5(e,t){return he(e,t?.in).getDay()}i();function tm(e,t){let r=he(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=Mt(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}i();function rm(e,t){return he(e,t?.in).getFullYear()}i();function p5(e,t){return+he(e)>+he(t)}i();function Xr(e,t){return+he(e)<+he(t)}i();function nm(e,t){return+he(e)==+he(t)}i();function d5(e){return+he(e)>Date.now()}i();function m5(e,t,r){let n=+he(e,r?.in),[o,a]=[+he(t.start,r?.in),+he(t.end,r?.in)].sort((s,u)=>s-u);return n>=o&&n<=a}var v5=1e3,om=60,Us=60,h5=30,Cr=["en-US"],yn=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",Ws=e=>e.toString().padStart(2,"0"),Vr=e=>e instanceof Date,bn=e=>!Vr(e)||e.getTime()===0,y5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"medium",timeZone:t}).format(e)}catch(r){return console.error(r),""}},b5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},C5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{let o=new Intl.DateTimeFormat(Cr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).formatToParts(e).reduce((a,s)=>(a[s.type]=s.value,a),{});return`${o.year}-${o.month}-${o.day}`}catch(r){return console.error(r),""}},x5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},w5=(e,{timeZone:t=yn}={})=>{if(e===null)return"";try{return new Intl.DateTimeFormat(Cr,{weekday:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},S5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{timeStyle:"short",timeZone:t}).format(e)}catch(r){return console.error(r),""}},ql=(e,{timeZone:t=yn}={})=>{if((0,g5.isNil)(e))return"";let r=new Date(e);if(bn(r))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"medium",timeStyle:"short",timeZone:t}).format(r)}catch(n){return console.error(n),""}},D5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{let{year:r,month:n,day:o,hour:a,minute:s,dayPeriod:u}=new Intl.DateTimeFormat(Cr,{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}, ${a}:${s} ${u}`}catch(r){return console.error(r),""}},E5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},P5=(e,{nowAnchor:t=new Date}={})=>{if(bn(e))return"";let r=(t.valueOf()-e.valueOf())/(om*v5),n=Math.round(r),o=Wl(t,e);return r<0?ql(e):r<1?"< 1 minute ago":n<2?"1 minute ago":n<=Us?`${n} minutes ago`:o===0?`Today, ${Intl.DateTimeFormat(Cr,{timeStyle:"short"}).format(e)}`:o===1?`Yesterday, ${Intl.DateTimeFormat(Cr,{timeStyle:"short"}).format(e)}`:e.getFullYear()===t.getFullYear()?Intl.DateTimeFormat(Cr,{day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(e):ql(e)},T5=e=>{let t=e.getTimezoneOffset()/Us*-1,r=Math.round(t),n=(t-r)*Us,o=r>=0?"+":"",a=`${r}`.padStart(2,"0"),s=`${n}`.padStart(2,"0");return`${o}${a}:${s}`},Ks=e=>{let t=Math.floor(e/v5),r=Math.floor(t/om),n=Math.floor(r/Us),o=t-r*om,a=r-n*Us;return{seconds:o,minutes:a,hours:n}},A5=e=>{let{hours:t,minutes:r,seconds:n}=Ks(e);return t<1?`${r}:${Ws(n)}`:`${t}:${Ws(r)}:${Ws(n)}`},R5=e=>{let{hours:t,minutes:r,seconds:n}=Ks(e);return`${t}:${Ws(r)}:${Ws(n)}`},im=e=>Vr(e)?{year:e.getFullYear(),month:e.getMonth(),dayOfMonth:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:null,Xl=e=>{let{year:t,month:r,dayOfMonth:n,hours:o,minutes:a}=e??{};return t!==void 0&&r!==void 0&&n!==void 0?new Date(t,r,n,o??0,a??0):null},am=e=>Xl(e)?.toISOString()??null,F5=(e,t=!0)=>{let r=e.getMinutes()<=h5,n=r?e.getHours():e.getHours()+1,o=r?h5:0,a={...im(e),hours:n,minutes:o};return t?am(a):Xl(a)},O5=e=>{let{seconds:t,minutes:r,hours:n}=Ks(e),o="PT";return n&&(o+=`${n}H`),r&&(o+=`${r}M`),t&&(o+=`${t}S`),t||r||n||(o+="0S"),o};var Hce={isDate:Vr,dateOnlyString:y5,dateOnlyStringNumeric:b5,dateOnlyISOString:C5,monthDayStringNumeric:x5,dayOfWeekString:w5,timeOnlyString:S5,dateTimeString:ql,dateTimeStringForSentence:D5,dateOnlyStringForSentence:E5,timeAgoString:P5,dateUTCOffset:T5,buildTimeDuration:Ks,mediaDurationString:A5,sessionDurationString:R5,dateToDateTime:im,dateTimeToDate:Xl,dateTimeToISO:am,dateTimeRounded:F5,millisecondsToDurationISOString:O5};i();i();var B5=U(Q());import{css as Dt}from"styled-components";var sm={defaultDarkOne:Dt`
|
|
10
|
+
var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDescriptor;var bM=Object.getOwnPropertyNames;var CM=Object.getPrototypeOf,xM=Object.prototype.hasOwnProperty;var K1=(e,t)=>()=>(e&&(t=e(e=0)),t);var Oe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),q1=(e,t)=>{for(var r in t)_l(e,r,{get:t[r],enumerable:!0})},o5=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of bM(t))!xM.call(e,o)&&o!==r&&_l(e,o,{get:()=>t[o],enumerable:!(n=yM(t,o))||n.enumerable});return e};var U=(e,t,r)=>(r=e!=null?vM(CM(e)):{},o5(t||!e||!e.__esModule?_l(r,"default",{value:e,enumerable:!0}):r,e)),wM=e=>o5(_l({},"__esModule",{value:!0}),e);import*as f from"react";var i=K1(()=>{"use strict"});var Q=Oe(Y=>{"use strict";i();Object.defineProperty(Y,"__esModule",{value:!0});Y.hasKey=Y.isError=Y.isVoid=Y.isNotBoolean=Y.isBoolean=Y.isNotFunction=Y.isFunction=Y.isNonEmptyArray=Y.isEmptyArray=Y.isNotArray=Y.isArray=Y.isNonEmptyRecord=Y.isEmptyRecord=Y.isRecord=Y.isInteger=Y.isNaN=Y.isNotNumber=Y.isNumber=Y.isNonEmptyString=Y.isEmptyString=Y.isNotString=Y.isString=Y.isNotNil=Y.isNil=Y.isNotUndefined=Y.isUndefined=Y.isNotNull=Y.isNull=void 0;var SM=e=>e===null;Y.isNull=SM;var DM=e=>!(0,Y.isNull)(e);Y.isNotNull=DM;var EM=e=>e===void 0;Y.isUndefined=EM;var PM=e=>!(0,Y.isUndefined)(e);Y.isNotUndefined=PM;var TM=e=>(0,Y.isNull)(e)||(0,Y.isUndefined)(e);Y.isNil=TM;var AM=e=>!(0,Y.isNil)(e);Y.isNotNil=AM;var RM=e=>typeof e=="string";Y.isString=RM;var FM=e=>!(0,Y.isString)(e);Y.isNotString=FM;var OM=e=>(0,Y.isString)(e)&&e==="";Y.isEmptyString=OM;var BM=e=>(0,Y.isString)(e)&&!(0,Y.isEmptyString)(e);Y.isNonEmptyString=BM;var MM=e=>typeof e=="number";Y.isNumber=MM;var IM=e=>!(0,Y.isNumber)(e);Y.isNotNumber=IM;var kM=e=>Number.isNaN(e);Y.isNaN=kM;var NM=e=>Number.isInteger(e);Y.isInteger=NM;var VM=e=>(0,Y.isNotNil)(e)&&typeof e=="object"&&!(e instanceof Array);Y.isRecord=VM;var LM=e=>(0,Y.isRecord)(e)&&Object.keys(e).length===0;Y.isEmptyRecord=LM;var $M=e=>(0,Y.isRecord)(e)&&Object.keys(e).length>0;Y.isNonEmptyRecord=$M;var zM=e=>(0,Y.isNotNil)(e)&&typeof e=="object"&&e instanceof Array;Y.isArray=zM;var GM=e=>!(0,Y.isArray)(e);Y.isNotArray=GM;var HM=e=>(0,Y.isArray)(e)&&e.length===0;Y.isEmptyArray=HM;var jM=e=>(0,Y.isArray)(e)&&e.length>0;Y.isNonEmptyArray=jM;var _M=e=>(0,Y.isNotNil)(e)&&typeof e=="function";Y.isFunction=_M;var WM=e=>!(0,Y.isFunction)(e);Y.isNotFunction=WM;var UM=e=>(0,Y.isNotNil)(e)&&typeof e=="boolean";Y.isBoolean=UM;var KM=e=>!(0,Y.isBoolean)(e);Y.isNotBoolean=KM;var qM=e=>e===void 0;Y.isVoid=qM;var XM=e=>(0,Y.isNotNil)(e)&&e instanceof Error;Y.isError=XM;var YM=(e,t)=>(0,Y.isNonEmptyRecord)(e)&&t in e;Y.hasKey=YM});var e4=Oe((vde,xm)=>{i();var Q5=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);Q5?(bm=new Uint8Array(16),xm.exports=function(){return Q5(bm),bm}):(Cm=new Array(16),xm.exports=function(){for(var t=0,r;t<16;t++)t&3||(r=Math.random()*4294967296),Cm[t]=r>>>((t&3)<<3)&255;return Cm});var bm,Cm});var n4=Oe((bde,r4)=>{i();var t4=[];for(tu=0;tu<256;++tu)t4[tu]=(tu+256).toString(16).substr(1);var tu;function sk(e,t){var r=t||0,n=t4;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("")}r4.exports=sk});var i4=Oe((xde,o4)=>{i();var uk=e4(),lk=n4();function ck(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||uk)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t)for(var a=0;a<16;++a)t[n+a]=o[a];return t||lk(o)}o4.exports=ck});function l6(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var c6=K1(()=>{i()});var f6={};q1(f6,{default:()=>eL});var QV,eL,p6=K1(()=>{i();c6();QV=/^((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)-.*))$/,eL=l6(function(e){return QV.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})});var iw=Oe((lHe,ow)=>{"use strict";i();var rw=Array.isArray,nw=Object.keys,P_=Object.prototype.hasOwnProperty,T_=typeof Element<"u";function th(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=rw(e),n=rw(t),o,a,s;if(r&&n){if(a=e.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!th(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=nw(e);if(a=d.length,a!==nw(t).length)return!1;for(o=a;o--!==0;)if(!P_.call(t,d[o]))return!1;if(T_&&e instanceof Element&&t instanceof Element)return e===t;for(o=a;o--!==0;)if(s=d[o],!(s==="_owner"&&e.$$typeof)&&!th(e[s],t[s]))return!1;return!0}return e!==e&&t!==t}ow.exports=function(t,r){try{return th(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 vw=Oe(Te=>{"use strict";i();var ct=typeof Symbol=="function"&&Symbol.for,ih=ct?Symbol.for("react.element"):60103,ah=ct?Symbol.for("react.portal"):60106,np=ct?Symbol.for("react.fragment"):60107,op=ct?Symbol.for("react.strict_mode"):60108,ip=ct?Symbol.for("react.profiler"):60114,ap=ct?Symbol.for("react.provider"):60109,sp=ct?Symbol.for("react.context"):60110,sh=ct?Symbol.for("react.async_mode"):60111,up=ct?Symbol.for("react.concurrent_mode"):60111,lp=ct?Symbol.for("react.forward_ref"):60112,cp=ct?Symbol.for("react.suspense"):60113,U_=ct?Symbol.for("react.suspense_list"):60120,fp=ct?Symbol.for("react.memo"):60115,pp=ct?Symbol.for("react.lazy"):60116,K_=ct?Symbol.for("react.block"):60121,q_=ct?Symbol.for("react.fundamental"):60117,X_=ct?Symbol.for("react.responder"):60118,Y_=ct?Symbol.for("react.scope"):60119;function dr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ih:switch(e=e.type,e){case sh:case up:case np:case ip:case op:case cp:return e;default:switch(e=e&&e.$$typeof,e){case sp:case lp:case pp:case fp:case ap:return e;default:return t}}case ah:return t}}}function gw(e){return dr(e)===up}Te.AsyncMode=sh;Te.ConcurrentMode=up;Te.ContextConsumer=sp;Te.ContextProvider=ap;Te.Element=ih;Te.ForwardRef=lp;Te.Fragment=np;Te.Lazy=pp;Te.Memo=fp;Te.Portal=ah;Te.Profiler=ip;Te.StrictMode=op;Te.Suspense=cp;Te.isAsyncMode=function(e){return gw(e)||dr(e)===sh};Te.isConcurrentMode=gw;Te.isContextConsumer=function(e){return dr(e)===sp};Te.isContextProvider=function(e){return dr(e)===ap};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ih};Te.isForwardRef=function(e){return dr(e)===lp};Te.isFragment=function(e){return dr(e)===np};Te.isLazy=function(e){return dr(e)===pp};Te.isMemo=function(e){return dr(e)===fp};Te.isPortal=function(e){return dr(e)===ah};Te.isProfiler=function(e){return dr(e)===ip};Te.isStrictMode=function(e){return dr(e)===op};Te.isSuspense=function(e){return dr(e)===cp};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===np||e===up||e===ip||e===op||e===cp||e===U_||typeof e=="object"&&e!==null&&(e.$$typeof===pp||e.$$typeof===fp||e.$$typeof===ap||e.$$typeof===sp||e.$$typeof===lp||e.$$typeof===q_||e.$$typeof===X_||e.$$typeof===Y_||e.$$typeof===K_)};Te.typeOf=dr});var bw=Oe((eje,yw)=>{"use strict";i();yw.exports=vw()});var Pw=Oe((rje,Ew)=>{"use strict";i();var uh=bw(),J_={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Z_={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q_={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Sw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lh={};lh[uh.ForwardRef]=Q_;lh[uh.Memo]=Sw;function Cw(e){return uh.isMemo(e)?Sw:lh[e.$$typeof]||J_}var eW=Object.defineProperty,tW=Object.getOwnPropertyNames,xw=Object.getOwnPropertySymbols,rW=Object.getOwnPropertyDescriptor,nW=Object.getPrototypeOf,ww=Object.prototype;function Dw(e,t,r){if(typeof t!="string"){if(ww){var n=nW(t);n&&n!==ww&&Dw(e,n,r)}var o=tW(t);xw&&(o=o.concat(xw(t)));for(var a=Cw(e),s=Cw(t),u=0;u<o.length;++u){var l=o[u];if(!Z_[l]&&!(r&&r[l])&&!(s&&s[l])&&!(a&&a[l])){var c=rW(t,l);try{eW(e,l,c)}catch{}}}}return e}Ew.exports=Dw});var vp=Oe((E_e,kw)=>{i();var zW=typeof Element<"u",GW=typeof Map=="function",HW=typeof Set=="function",jW=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function gp(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(!gp(e[n],t[n]))return!1;return!0}var a;if(GW&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!gp(n.value[1],t.get(n.value[0])))return!1;return!0}if(HW&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(jW&&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(zW&&e instanceof Element)return!1;for(n=r;n--!==0;)if(!((o[n]==="_owner"||o[n]==="__v"||o[n]==="__o")&&e.$$typeof)&&!gp(e[o[n]],t[o[n]]))return!1;return!0}return e!==e&&t!==t}kw.exports=function(t,r){try{return gp(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 ID=Oe(($Qe,MD)=>{"use strict";i();MD.exports=DY;var OD="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",BD="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",wY=new RegExp("^[^"+BD+"]*["+OD+"]"),SY=new RegExp("^[^"+OD+"]*["+BD+"]");function DY(e){return e=String(e||""),wY.test(e)?"rtl":SY.test(e)?"ltr":"neutral"}});var nd=Oe((GQe,kD)=>{i();function EY(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}kD.exports=EY});var VD=Oe((jQe,ND)=>{i();var PY=typeof window=="object"&&window&&window.Object===Object&&window;ND.exports=PY});var i2=Oe((WQe,LD)=>{i();var TY=VD(),AY=typeof self=="object"&&self&&self.Object===Object&&self,RY=TY||AY||Function("return this")();LD.exports=RY});var zD=Oe((KQe,$D)=>{i();var FY=i2(),OY=function(){return FY.Date.now()};$D.exports=OY});var HD=Oe((XQe,GD)=>{i();var BY=/\s/;function MY(e){for(var t=e.length;t--&&BY.test(e.charAt(t)););return t}GD.exports=MY});var _D=Oe((JQe,jD)=>{i();var IY=HD(),kY=/^\s+/;function NY(e){return e&&e.slice(0,IY(e)+1).replace(kY,"")}jD.exports=NY});var a2=Oe((QQe,WD)=>{i();var VY=i2(),LY=VY.Symbol;WD.exports=LY});var XD=Oe((tet,qD)=>{i();var UD=a2(),KD=Object.prototype,$Y=KD.hasOwnProperty,zY=KD.toString,Xu=UD?UD.toStringTag:void 0;function GY(e){var t=$Y.call(e,Xu),r=e[Xu];try{e[Xu]=void 0;var n=!0}catch{}var o=zY.call(e);return n&&(t?e[Xu]=r:delete e[Xu]),o}qD.exports=GY});var JD=Oe((net,YD)=>{i();var HY=Object.prototype,jY=HY.toString;function _Y(e){return jY.call(e)}YD.exports=_Y});var tE=Oe((iet,eE)=>{i();var ZD=a2(),WY=XD(),UY=JD(),KY="[object Null]",qY="[object Undefined]",QD=ZD?ZD.toStringTag:void 0;function XY(e){return e==null?e===void 0?qY:KY:QD&&QD in Object(e)?WY(e):UY(e)}eE.exports=XY});var nE=Oe((set,rE)=>{i();function YY(e){return e!=null&&typeof e=="object"}rE.exports=YY});var iE=Oe((cet,oE)=>{i();var JY=tE(),ZY=nE(),QY="[object Symbol]";function eJ(e){return typeof e=="symbol"||ZY(e)&&JY(e)==QY}oE.exports=eJ});var lE=Oe((pet,uE)=>{i();var tJ=_D(),aE=nd(),rJ=iE(),sE=NaN,nJ=/^[-+]0x[0-9a-f]+$/i,oJ=/^0b[01]+$/i,iJ=/^0o[0-7]+$/i,aJ=parseInt;function sJ(e){if(typeof e=="number")return e;if(rJ(e))return sE;if(aE(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=aE(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=tJ(e);var r=oJ.test(e);return r||iJ.test(e)?aJ(e.slice(2),r?2:8):nJ.test(e)?sE:+e}uE.exports=sJ});var u2=Oe((met,fE)=>{i();var uJ=nd(),s2=zD(),cE=lE(),lJ="Expected a function",cJ=Math.max,fJ=Math.min;function pJ(e,t,r){var n,o,a,s,u,l,c=0,p=!1,d=!1,m=!0;if(typeof e!="function")throw new TypeError(lJ);t=cE(t)||0,uJ(r)&&(p=!!r.leading,d="maxWait"in r,a=d?cJ(cE(r.maxWait)||0,t):a,m="trailing"in r?!!r.trailing:m);function g(D){var P=n,R=o;return n=o=void 0,c=D,s=e.apply(R,P),s}function v(D){return c=D,u=setTimeout(y,t),p?g(D):s}function h(D){var P=D-l,R=D-c,F=t-P;return d?fJ(F,a-R):F}function b(D){var P=D-l,R=D-c;return l===void 0||P>=t||P<0||d&&R>=a}function y(){var D=s2();if(b(D))return x(D);u=setTimeout(y,h(D))}function x(D){return u=void 0,m&&n?g(D):(n=o=void 0,s)}function w(){u!==void 0&&clearTimeout(u),c=0,n=l=o=u=void 0}function S(){return u===void 0?s:x(s2())}function E(){var D=s2(),P=b(D);if(n=arguments,o=this,l=D,P){if(u===void 0)return v(l);if(d)return clearTimeout(u),u=setTimeout(y,t),g(l)}return u===void 0&&(u=setTimeout(y,t)),s}return E.cancel=w,E.flush=S,E}fE.exports=pJ});var dE=Oe((get,pE)=>{i();var dJ=u2(),mJ=nd(),hJ="Expected a function";function gJ(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(hJ);return mJ(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),dJ(e,t,{leading:n,maxWait:t,trailing:o})}pE.exports=gJ});var FP=Oe(un=>{"use strict";i();Object.defineProperty(un,"__esModule",{value:!0});var eee=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),H2={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},tee={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:eee?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},PP={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(nl=1;nl<20;nl++)PP["f"+nl]=111+nl;var nl;function Cd(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return TP(s,t)}),o=function(u){return n.some(function(l){return AP(l,u)})},a=r==null?o:o(r);return a}function ree(e,t){return Cd(e,t)}function nee(e,t){return Cd(e,{byKey:!0},t)}function TP(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in H2)n[H2[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 m=d.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=j2(m),h=H2[v];(a===1||!h)&&(r?n.key=v:n.which=RP(m)),h&&(n[h]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function AP(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 RP(e){e=j2(e);var t=PP[e]||e.toUpperCase().charCodeAt(0);return t}function j2(e){return e=e.toLowerCase(),e=tee[e]||e,e}un.default=Cd;un.isHotkey=Cd;un.isCodeHotkey=ree;un.isKeyHotkey=nee;un.parseHotkey=TP;un.compareHotkey=AP;un.toKeyCode=RP;un.toKeyName=j2});var CT=Oe(ln=>{"use strict";i();Object.defineProperty(ln,"__esModule",{value:!0});var Rte=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),sg={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},gT={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:Rte?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},ug={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(ll=1;ll<20;ll++)ug["f"+ll]=111+ll;var ll;function Od(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(s){return vT(s,t)}),o=function(u){return n.some(function(l){return yT(l,u)})},a=r==null?o:o(r);return a}function Fte(e,t){return Od(e,t)}function Ote(e,t){return Od(e,{byKey:!0},t)}function vT(e,t){var r=t&&t.byKey,n={};e=e.replace("++","+add");var o=e.split("+"),a=o.length;for(var s in sg)n[sg[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 m=d.value,g=m.endsWith("?")&&m.length>1;g&&(m=m.slice(0,-1));var v=lg(m),h=sg[v];if(m.length>1&&!h&&!gT[m]&&!ug[v])throw new TypeError('Unknown modifier: "'+m+'"');(a===1||!h)&&(r?n.key=v:n.which=bT(m)),h&&(n[h]=g?null:!0)}}catch(b){l=!0,c=b}finally{try{!u&&p.return&&p.return()}finally{if(l)throw c}}return n}function yT(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 bT(e){e=lg(e);var t=ug[e]||e.toUpperCase().charCodeAt(0);return t}function lg(e){return e=e.toLowerCase(),e=gT[e]||e,e}ln.default=Od;ln.isHotkey=Od;ln.isCodeHotkey=Fte;ln.isKeyHotkey=Ote;ln.parseHotkey=vT;ln.compareHotkey=yT;ln.toKeyCode=bT;ln.toKeyName=lg});i();i();i();var Gs=async e=>{if(navigator.clipboard)return navigator.clipboard.writeText(e).catch(a=>{throw a instanceof Error?a: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(a){console.error("error",a)}return r?.removeAllRanges(),window.document.body.removeChild(t),o?Promise.resolve():Promise.reject(new DOMException("The request is not allowed","NotAllowedError"))};i();i();var g5=U(Q());i();i();i();var JM=Math.pow(10,8)*24*60*60*1e3,Xue=-JM;var i5=864e5;var ZM=3600;var a5=ZM*24,Yue=a5*7,QM=a5*365.2425,eI=QM/12,Jue=eI*3,X1=Symbol.for("constructDateFrom");function Mt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&X1 in e?e[X1](t):e instanceof Date?new e.constructor(t):new Date(t)}i();function he(e,t){return Mt(t||e,e)}function Y1(e,t,r){let n=he(e,r?.in);return isNaN(t)?Mt(r?.in||e,NaN):(t&&n.setDate(n.getDate()+t),n)}i();function Hs(e,t,r){let n=he(e,r?.in);if(isNaN(t))return Mt(r?.in||e,NaN);if(!t)return n;let o=n.getDate(),a=Mt(r?.in||e,n.getTime());a.setMonth(n.getMonth()+t+1,0);let s=a.getDate();return o>=s?a:(n.setFullYear(a.getFullYear(),a.getMonth(),o),n)}i();i();function J1(e){let t=he(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}i();function ro(e,...t){let r=Mt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}i();function Nr(e,t){let r=he(e,t?.in);return r.setHours(0,0,0,0),r}function Wl(e,t,r){let[n,o]=ro(r?.in,e,t),a=Nr(n),s=Nr(o),u=+a-J1(a),l=+s-J1(s);return Math.round((u-l)/i5)}i();function Z1(e,t,r){return Hs(e,t*12,r)}i();function Ul(e,t){let r=+he(e)-+he(t);return r<0?-1:r>0?1:r}i();function sr(e,t,r){let[n,o]=ro(r?.in,e,t);return+Nr(n)==+Nr(o)}i();i();function s5(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function js(e){return!(!s5(e)&&typeof e!="number"||isNaN(+he(e)))}i();function l5(e,t,r){let[n,o]=ro(r?.in,e,t),a=u5(n,o),s=Math.abs(Wl(n,o));n.setDate(n.getDate()-a*s);let u=+(u5(n,o)===-a),l=a*(s-u);return l===0?0:l}function u5(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}i();function Yi(e,t){let r=he(e,t?.in);return r.setHours(23,59,59,999),r}i();function Q1(e,t){let r=he(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}i();i();function Kl(e,t){let[r,n]=ro(e,t.start,t.end);return{start:r,end:n}}function c5(e,t){let{start:r,end:n}=Kl(t?.in,e),o=+r>+n,a=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<=a;)l.push(Mt(r,s)),s.setDate(s.getDate()+u),s.setHours(0,0,0,0);return o?l.reverse():l}i();function em(e,t){let{start:r,end:n}=Kl(t?.in,e),o=+r>+n,a=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<=a;)l.push(Mt(r,s)),s.setMonth(s.getMonth()+u);return o?l.reverse():l}i();function _s(e,t){let r=he(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}i();function f5(e,t){return he(e,t?.in).getDay()}i();function tm(e,t){let r=he(e,t?.in),n=r.getFullYear(),o=r.getMonth(),a=Mt(r,0);return a.setFullYear(n,o+1,0),a.setHours(0,0,0,0),a.getDate()}i();function rm(e,t){return he(e,t?.in).getFullYear()}i();function p5(e,t){return+he(e)>+he(t)}i();function Xr(e,t){return+he(e)<+he(t)}i();function nm(e,t){return+he(e)==+he(t)}i();function d5(e){return+he(e)>Date.now()}i();function m5(e,t,r){let n=+he(e,r?.in),[o,a]=[+he(t.start,r?.in),+he(t.end,r?.in)].sort((s,u)=>s-u);return n>=o&&n<=a}var v5=1e3,om=60,Us=60,h5=30,Cr=["en-US"],yn=Intl.DateTimeFormat().resolvedOptions().timeZone||"UTC",Ws=e=>e.toString().padStart(2,"0"),Vr=e=>e instanceof Date,bn=e=>!Vr(e)||e.getTime()===0,y5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"medium",timeZone:t}).format(e)}catch(r){return console.error(r),""}},b5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},C5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{let o=new Intl.DateTimeFormat(Cr,{year:"numeric",month:"2-digit",day:"2-digit",timeZone:t}).formatToParts(e).reduce((a,s)=>(a[s.type]=s.value,a),{});return`${o.year}-${o.month}-${o.day}`}catch(r){return console.error(r),""}},x5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{month:"2-digit",day:"2-digit",timeZone:t}).format(e)}catch(r){return console.error(r),""}},w5=(e,{timeZone:t=yn}={})=>{if(e===null)return"";try{return new Intl.DateTimeFormat(Cr,{weekday:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},S5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{timeStyle:"short",timeZone:t}).format(e)}catch(r){return console.error(r),""}},ql=(e,{timeZone:t=yn}={})=>{if((0,g5.isNil)(e))return"";let r=new Date(e);if(bn(r))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"medium",timeStyle:"short",timeZone:t}).format(r)}catch(n){return console.error(n),""}},D5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{let{year:r,month:n,day:o,hour:a,minute:s,dayPeriod:u}=new Intl.DateTimeFormat(Cr,{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}, ${a}:${s} ${u}`}catch(r){return console.error(r),""}},E5=(e,{timeZone:t=yn}={})=>{if(!Vr(e)||bn(e))return"";try{return new Intl.DateTimeFormat(Cr,{dateStyle:"long",timeZone:t}).format(e)}catch(r){return console.error(r),""}},P5=(e,{nowAnchor:t=new Date}={})=>{if(bn(e))return"";let r=(t.valueOf()-e.valueOf())/(om*v5),n=Math.round(r),o=Wl(t,e);return r<0?ql(e):r<1?"< 1 minute ago":n<2?"1 minute ago":n<=Us?`${n} minutes ago`:o===0?`Today, ${Intl.DateTimeFormat(Cr,{timeStyle:"short"}).format(e)}`:o===1?`Yesterday, ${Intl.DateTimeFormat(Cr,{timeStyle:"short"}).format(e)}`:e.getFullYear()===t.getFullYear()?Intl.DateTimeFormat(Cr,{day:"numeric",month:"short",hour:"numeric",minute:"2-digit"}).format(e):ql(e)},T5=e=>{let t=e.getTimezoneOffset()/Us*-1,r=Math.round(t),n=(t-r)*Us,o=r>=0?"+":"",a=`${r}`.padStart(2,"0"),s=`${n}`.padStart(2,"0");return`${o}${a}:${s}`},Ks=e=>{let t=Math.floor(e/v5),r=Math.floor(t/om),n=Math.floor(r/Us),o=t-r*om,a=r-n*Us;return{seconds:o,minutes:a,hours:n}},A5=e=>{let{hours:t,minutes:r,seconds:n}=Ks(e);return t<1?`${r}:${Ws(n)}`:`${t}:${Ws(r)}:${Ws(n)}`},R5=e=>{let{hours:t,minutes:r,seconds:n}=Ks(e);return`${t}:${Ws(r)}:${Ws(n)}`},im=e=>Vr(e)?{year:e.getFullYear(),month:e.getMonth(),dayOfMonth:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:null,Xl=e=>{let{year:t,month:r,dayOfMonth:n,hours:o,minutes:a}=e??{};return t!==void 0&&r!==void 0&&n!==void 0?new Date(t,r,n,o??0,a??0):null},am=e=>Xl(e)?.toISOString()??null,F5=(e,t=!0)=>{let r=e.getMinutes()<=h5,n=r?e.getHours():e.getHours()+1,o=r?h5:0,a={...im(e),hours:n,minutes:o};return t?am(a):Xl(a)},O5=e=>{let{seconds:t,minutes:r,hours:n}=Ks(e),o="PT";return n&&(o+=`${n}H`),r&&(o+=`${r}M`),t&&(o+=`${t}S`),t||r||n||(o+="0S"),o};var _ce={isDate:Vr,dateOnlyString:y5,dateOnlyStringNumeric:b5,dateOnlyISOString:C5,monthDayStringNumeric:x5,dayOfWeekString:w5,timeOnlyString:S5,dateTimeString:ql,dateTimeStringForSentence:D5,dateOnlyStringForSentence:E5,timeAgoString:P5,dateUTCOffset:T5,buildTimeDuration:Ks,mediaDurationString:A5,sessionDurationString:R5,dateToDateTime:im,dateTimeToDate:Xl,dateTimeToISO:am,dateTimeRounded:F5,millisecondsToDurationISOString:O5};i();i();var B5=U(Q());import{css as Dt}from"styled-components";var sm={defaultDarkOne:Dt`
|
|
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 vM=Object.create;var _l=Object.defineProperty;var yM=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
|
-
`},Yl=Object.keys(sm),xr=(e=void 0)=>(0,B5.isNotNil)(e)?sm[e]:sm.defaultDarkOne;i();var tI=31,Zce=e=>{let t=null;if(typeof e=="string"&&e)t=Array.from(e).reduce((n,o)=>Math.imul(tI,n)+o.charCodeAt(0)||0,0);else return Yl[0];let r=Math.abs(t)%Yl.length;return Yl[r]};i();i();i();i();function Et(){return Et=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},Et.apply(this,arguments)}i();function um(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i();i();function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Cn(e,t)}function lm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cn(e,t)}i();i();function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}i();function cm(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}i();i();function Jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jl=function(){return!!e})()}function fm(e,t,r){if(Jl())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 Xs(e){var t=typeof Map=="function"?new Map:void 0;return Xs=function(n){if(n===null||!cm(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 fm(n,arguments,qs(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Cn(o,n)},Xs(e)}i();var jt=function(e){lm(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,a,s;s<o;s++);return um(n)}return t}(Xs(Error));function M5(e,t){return e.substr(-t.length)===t}var rI=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function I5(e){if(typeof e!="string")return e;var t=e.match(rI);return t?parseFloat(e):e}var nI=function(t){return function(r,n){n===void 0&&(n="16px");var o=r,a=n;if(typeof r=="string"){if(!M5(r,"px"))throw new jt(69,t,r);o=I5(r)}if(typeof n=="string"){if(!M5(n,"px"))throw new jt(70,t,n);a=I5(n)}if(typeof o=="string")throw new jt(71,r,t);if(typeof a=="string")throw new jt(72,n,t);return""+o/a+t}},N5=nI,Ife=N5("em");var oI=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function V5(e){if(typeof e!="string")return[e,""];var t=e.match(oI);return t?[parseFloat(e),t[2]]:[e,void 0]}var kfe=N5("rem");function pm(e){return Math.round(e*255)}function iI(e,t,r){return pm(e)+","+pm(t)+","+pm(r)}function Ys(e,t,r,n){if(n===void 0&&(n=iI),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,s=a*(1-Math.abs(o%2-1)),u=0,l=0,c=0;o>=0&&o<1?(u=a,l=s):o>=1&&o<2?(u=s,l=a):o>=2&&o<3?(l=a,c=s):o>=3&&o<4?(l=s,c=a):o>=4&&o<5?(u=s,c=a):o>=5&&o<6&&(u=a,c=s);var p=r-a/2,d=u+p,m=l+p,g=c+p;return n(d,m,g)}var k5={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 aI(e){if(typeof e!="string")return e;var t=e.toLowerCase();return k5[t]?"#"+k5[t]:e}var sI=/^#[a-fA-F0-9]{6}$/,uI=/^#[a-fA-F0-9]{8}$/,lI=/^#[a-fA-F0-9]{3}$/,cI=/^#[a-fA-F0-9]{4}$/,dm=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,fI=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,pI=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,dI=/^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 Ji(e){if(typeof e!="string")throw new jt(3);var t=aI(e);if(t.match(sI))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(uI)){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(lI))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(cI)){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=dm.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=fI.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var s=pI.exec(t);if(s){var u=parseInt(""+s[1],10),l=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+Ys(u,l,c)+")",d=dm.exec(p);if(!d)throw new jt(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var m=dI.exec(t.substring(0,50));if(m){var g=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,h=parseInt(""+m[3],10)/100,b="rgb("+Ys(g,v,h)+")",y=dm.exec(b);if(!y)throw new jt(4,t,b);return{red:parseInt(""+y[1],10),green:parseInt(""+y[2],10),blue:parseInt(""+y[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new jt(5)}function mI(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),s=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,l=o-a,c=s>.5?l/(2-o-a):l/(o+a);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 no(e){return mI(Ji(e))}var hI=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},hm=hI;function Yo(e){var t=e.toString(16);return t.length===1?"0"+t:t}function mm(e){return Yo(Math.round(e*255))}function gI(e,t,r){return hm("#"+mm(e)+mm(t)+mm(r))}function Zl(e,t,r){return Ys(e,t,r,gI)}function vI(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Zl(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Zl(e.hue,e.saturation,e.lightness);throw new jt(1)}function yI(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Zl(e,t,r):"rgba("+Ys(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Zl(e.hue,e.saturation,e.lightness):"rgba("+Ys(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new jt(2)}function gm(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return hm("#"+Yo(e)+Yo(t)+Yo(r));if(typeof e=="object"&&t===void 0&&r===void 0)return hm("#"+Yo(e.red)+Yo(e.green)+Yo(e.blue));throw new jt(6)}function Ql(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Ji(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?gm(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?gm(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new jt(7)}var bI=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},CI=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},xI=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},wI=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function oo(e){if(typeof e!="object")throw new jt(8);if(CI(e))return Ql(e);if(bI(e))return gm(e);if(wI(e))return yI(e);if(xI(e))return vI(e);throw new jt(8)}function L5(e,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):L5(e,t,o)}}function ur(e){return L5(e,e.length,[])}function SI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{hue:r.hue+parseFloat(e)}))}var Nfe=ur(SI);function Zi(e,t,r){return Math.max(e,Math.min(t,r))}function DI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{lightness:Zi(0,1,r.lightness-parseFloat(e))}))}var EI=ur(DI),qe=EI;function PI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{saturation:Zi(0,1,r.saturation-parseFloat(e))}))}var Vfe=ur(PI);function TI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{lightness:Zi(0,1,r.lightness+parseFloat(e))}))}var Lfe=ur(TI);function AI(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Ji(t),o=Et({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Ji(r),s=Et({},a,{alpha:typeof a.alpha=="number"?a.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,m=1-d,g={red:Math.floor(o.red*d+s.red*m),green:Math.floor(o.green*d+s.green*m),blue:Math.floor(o.blue*d+s.blue*m),alpha:o.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return Ql(g)}var RI=ur(AI),$5=RI;function FI(e,t){if(t==="transparent")return t;var r=Ji(t),n=typeof r.alpha=="number"?r.alpha:1,o=Et({},r,{alpha:Zi(0,1,(n*100+parseFloat(e)*100)/100)});return Ql(o)}var $fe=ur(FI);function OI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{saturation:Zi(0,1,r.saturation+parseFloat(e))}))}var zfe=ur(OI);function BI(e,t){return t==="transparent"?t:oo(Et({},no(t),{hue:parseFloat(e)}))}var Gfe=ur(BI);function MI(e,t){return t==="transparent"?t:oo(Et({},no(t),{lightness:parseFloat(e)}))}var Hfe=ur(MI);function II(e,t){return t==="transparent"?t:oo(Et({},no(t),{saturation:parseFloat(e)}))}var jfe=ur(II);function kI(e,t){return t==="transparent"?t:$5(parseFloat(e),"rgb(0, 0, 0)",t)}var _fe=ur(kI);function NI(e,t){return t==="transparent"?t:$5(parseFloat(e),"rgb(255, 255, 255)",t)}var Wfe=ur(NI);function VI(e,t){if(t==="transparent")return t;var r=Ji(t),n=typeof r.alpha=="number"?r.alpha:1,o=Et({},r,{alpha:Zi(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Ql(o)}var LI=ur(VI),_t=LI;var Js=e=>{let[r,n]=V5(e);return`@media (max-width: ${Math.max(r-.0025,0)}${n})`},$I=({theme:e})=>`@media (min-width: ${e.breakpoint.xs})`,zI=({theme:e})=>`@media (min-width: ${e.breakpoint.sm})`,GI=({theme:e})=>`@media (min-width: ${e.breakpoint.md})`,HI=({theme:e})=>`@media (min-width: ${e.breakpoint.lg})`,jI=({theme:e})=>`@media (min-width: ${e.breakpoint.xl})`,_I=({theme:e})=>Js(e.breakpoint.xs),WI=({theme:e})=>Js(e.breakpoint.sm),UI=({theme:e})=>Js(e.breakpoint.md),KI=({theme:e})=>Js(e.breakpoint.lg),qI=({theme:e})=>Js(e.breakpoint.xl),Me={xsAndUp:$I,smAndUp:zI,mdAndUp:GI,lgAndUp:HI,xlAndUp:jI,xsAndDown:_I,smAndDown:WI,mdAndDown:UI,lgAndDown:KI,xlAndDown:qI};i();i();var xn=e=>e!=null&&(Object.getPrototypeOf(e)===null||e.constructor===Object);i();var vm=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])&&vm(e[t])}),e);i();var Zs=(e,...t)=>{if(!t.length)return e;let r={...e};return t.forEach(n=>{xn(n)&&Object.keys(n).forEach(o=>{xn(n[o])?r[o]===null||r[o]===void 0?r[o]={...n[o]}:r[o]=Zs(r[o],n[o]):r[o]=n[o]})}),r};i();var ec=(e,t)=>t.reduce((r,n)=>(Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]),r),{});var dpe={isObject:xn,deepFreeze:vm,merge:Zs,selectKeys:ec};i();i();var z5=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(t,r)=>+t==0?"":r===0?t.toLowerCase():t.toUpperCase());i();var wn=e=>e==="true"||e==="false"?e==="true":!!e;i();var lr=e=>e==null?"":String(e);i();i();var Qi=e=>typeof e=="string"||e instanceof String;var G5=e=>{if(!Qi(e))return!1;try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}};i();var io=e=>{let t=/^(?:\w+:)?\/\/(\S+)$/,r=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,n=/^[^\s.]+\.\S{2,}$/;if(!Qi(e))return!1;let o=t.exec(e);if(!o)return!1;let a=o[1];return a===void 0||!a?!1:r.test(a)||n.test(a)};i();var H5=(e="")=>(e[0]?.toLowerCase()??"")+e.slice(1);i();var j5=e=>e.replace(/\n/g,"");i();var _5=e=>(e||"").replace(/\.[^/.]{1,4}$/,"");i();var W5=(e,t)=>e.length<=t?e:`${e.slice(0,t-3)}...`;i();var U5=(e="")=>(e[0]?.toUpperCase()??"")+e.slice(1);var Jpe={camelCase:z5,coerceToBoolean:wn,coerceToString:lr,isHttpUrl:G5,isString:Qi,isUrl:io,lowerFirst:H5,removeNewlines:j5,stripExtension:_5,truncate:W5,upperFirst:U5};i();i();i();import Z5,{Component as ik}from"react";i();import eu,{Component as QI}from"react";i();import XI from"react";var YI={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},K5=function(t){var r=t.message,n=t["aria-live"];return XI.createElement("div",{style:YI,role:"log","aria-live":n},r||"")};K5.propTypes={};var Qs=K5;function JI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q5(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 ZI(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 X5=function(e){ZI(t,e);function t(){var r,n,o;JI(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(r=(n=q5(this,e.call.apply(e,[this].concat(s))),n),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},r),q5(n,o)}return t.getDerivedStateFromProps=function(n,o){var a=o.oldPolitemessage,s=o.oldPoliteMessageId,u=o.oldAssertiveMessage,l=o.oldAssertiveMessageId,c=n.politeMessage,p=n.politeMessageId,d=n.assertiveMessage,m=n.assertiveMessageId;return a!==c||s!==p?{politeMessage1:o.setAlternatePolite?"":c,politeMessage2:o.setAlternatePolite?c:"",oldPolitemessage:c,oldPoliteMessageId:p,setAlternatePolite:!o.setAlternatePolite}:u!==d||l!==m?{assertiveMessage1:o.setAlternateAssertive?"":d,assertiveMessage2:o.setAlternateAssertive?d:"",oldAssertiveMessage:d,oldAssertiveMessageId:m,setAlternateAssertive:!o.setAlternateAssertive}:null},t.prototype.render=function(){var n=this.state,o=n.assertiveMessage1,a=n.assertiveMessage2,s=n.politeMessage1,u=n.politeMessage2;return eu.createElement("div",null,eu.createElement(Qs,{"aria-live":"assertive",message:o}),eu.createElement(Qs,{"aria-live":"assertive",message:a}),eu.createElement(Qs,{"aria-live":"polite",message:s}),eu.createElement(Qs,{"aria-live":"polite",message:u}))},t}(QI);X5.propTypes={};var Y5=X5;i();import ek from"react";var tk=ek.createContext({announceAssertive:J5,announcePolite:J5});function J5(){console.warn("Announcement failed, LiveAnnouncer context is missing")}var ea=tk;function rk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nk(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 ok(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 ak=function(e){ok(t,e);function t(r){rk(this,t);var n=nk(this,e.call(this,r));return n.announcePolite=function(o,a){n.setState({announcePoliteMessage:o,politeMessageId:a||""})},n.announceAssertive=function(o,a){n.setState({announceAssertiveMessage:o,assertiveMessageId:a||""})},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,a=n.politeMessageId,s=n.announceAssertiveMessage,u=n.assertiveMessageId,l=n.updateFunctions;return Z5.createElement(ea.Provider,{value:l},this.props.children,Z5.createElement(Y5,{assertiveMessage:s,assertiveMessageId:u,politeMessage:o,politeMessageId:a}))},t}(ik),ym=ak;i();import l4 from"react";i();var wm=U(i4());import{Component as dk}from"react";function fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a4(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 pk(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 s4=function(e){pk(t,e);function t(){var r,n,o;fk(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(r=(n=a4(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,m=l.announcePolite;p==="assertive"&&d(c||"",(0,wm.default)()),p==="polite"&&m(c||"",(0,wm.default)())},r),a4(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,a=n.announceAssertive,s=n.announcePolite;(o===!0||o==="true")&&(a(""),s(""))},t.prototype.render=function(){return null},t}(dk);s4.propTypes={};var u4=s4;var mk=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},c4=function(t){return l4.createElement(ea.Consumer,null,function(r){return l4.createElement(u4,mk({},r,t))})};c4.propTypes={};var ru=c4;i();import hk from"react";var gk=function(t){var r=t.children;return hk.createElement(ea.Consumer,null,function(n){return r(n)})};gk.propTypes={};i();i();i();function f4(e){if(typeof Proxy>"u")return e;let t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}i();i();i();i();function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}i();i();var nu=e=>Array.isArray(e);i();function Sm(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}i();function Sn(e){return typeof e=="string"||Array.isArray(e)}i();i();function p4(e){let t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function ta(e,t,r,n){if(typeof t=="function"){let[o,a]=p4(n);t=t(r!==void 0?r:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,a]=p4(n);t=t(r!==void 0?r:e.custom,o,a)}return t}function so(e,t,r){let n=e.getProps();return ta(n,t,r!==void 0?r:n.custom,e)}i();var tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ou=["initial",...tc];i();i();i();var uo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wt=new Set(uo);i();i();var Pt=e=>e*1e3,Ut=e=>e/1e3;i();var vk={type:"spring",stiffness:500,damping:25,restSpeed:10},yk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bk={type:"keyframes",duration:.8},Ck={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},d4=(e,{keyframes:t})=>t.length>2?bk:Wt.has(e)?e.startsWith("scale")?yk(t[1]):vk:Ck;i();function ra(e,t){return e?e[t]||e.default||e:void 0}i();var Dn={skipAnimations:!1,useManualTiming:!1};i();var rc={current:!1};i();var xk=e=>e!==null;function lo(e,{repeat:t,repeatType:r="loop"},n){let o=e.filter(xk),a=t&&r!=="loop"&&t%2===1?0:o.length-1;return!a||n===void 0?o[a]:n}i();i();var Ae=e=>e;i();i();function m4(e){let t=new Set,r=new Set,n=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function u(c){a.has(c)&&(l.schedule(c),e()),c(s)}let l={schedule:(c,p=!1,d=!1)=>{let g=d&&n?t:r;return p&&a.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),a.delete(c)},process:c=>{if(s=c,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(u),n=!1,o&&(o=!1,l.process(c))}};return l}var nc=["read","resolveKeyframes","update","preRender","render","postRender"],wk=40;function oc(e,t){let r=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,s=nc.reduce((y,x)=>(y[x]=m4(a),y),{}),{read:u,resolveKeyframes:l,update:c,preRender:p,render:d,postRender:m}=s,g=()=>{let y=Dn.useManualTiming?o.timestamp:performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(y-o.timestamp,wk),1),o.timestamp=y,o.isProcessing=!0,u.process(o),l.process(o),c.process(o),p.process(o),d.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(g))},v=()=>{r=!0,n=!0,o.isProcessing||e(g)};return{schedule:nc.reduce((y,x)=>{let w=s[x];return y[x]=(S,E=!1,D=!1)=>(r||v(),w.schedule(S,E,D)),y},{}),cancel:y=>{for(let x=0;x<nc.length;x++)s[nc[x]].cancel(y)},state:o,steps:s}}var{schedule:pe,cancel:cr,state:Xe,steps:ic}=oc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ae,!0);i();i();i();i();var h4=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Sk=1e-7,Dk=12;function Ek(e,t,r,n,o){let a,s,u=0;do s=t+(r-t)/2,a=h4(s,n,o)-e,a>0?r=s:t=s;while(Math.abs(a)>Sk&&++u<Dk);return s}function co(e,t,r,n){if(e===t&&r===n)return Ae;let o=a=>Ek(a,0,1,e,r);return a=>a===0||a===1?a:h4(o(a),t,n)}i();var ac=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;i();var sc=e=>t=>1-e(1-t);var Dm=co(.33,1.53,.69,.99),iu=sc(Dm),uc=ac(iu);var lc=e=>(e*=2)<1?.5*iu(e):.5*(2-Math.pow(2,-10*(e-1)));i();var cc=e=>1-Math.sin(Math.acos(e)),fc=sc(cc),pc=ac(cc);i();i();i();var dc=e=>/^0[^.\s]+$/u.test(e);function g4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dc(e):!0}i();i();var fo=Ae,Lr=Ae;i();var mc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);i();var v4=e=>t=>typeof t=="string"&&t.startsWith(e),hc=v4("--"),Pk=v4("var(--"),na=e=>Pk(e)?Tk.test(e.split("/*")[0].trim()):!1,Tk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ak=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rk(e){let t=Ak.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${r??n}`,o]}var Fk=4;function Em(e,t,r=1){Lr(r<=Fk,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=Rk(e);if(!n)return;let a=window.getComputedStyle(t).getPropertyValue(n);if(a){let s=a.trim();return mc(s)?parseFloat(s):s}return na(o)?Em(o,t,r+1):o}i();i();i();var It=(e,t,r)=>r>t?t:r<e?e:r;var Yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},En={...Yr,transform:e=>It(0,1,e)},au={...Yr,default:1};i();var su=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jr=su("deg"),kt=su("%"),ne=su("px"),y4=su("vh"),b4=su("vw"),Pm={...kt,parse:e=>kt.parse(e)/100,transform:e=>kt.transform(e*100)};var w4=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Tm=e=>e===Yr||e===ne,C4=(e,t)=>parseFloat(e.split(", ")[t]),x4=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/u);if(o)return C4(o[1],t);{let a=n.match(/^matrix\((.+)\)$/u);return a?C4(a[1],e):0}},Ok=new Set(["x","y","z"]),Bk=uo.filter(e=>!Ok.has(e));function S4(e){let t=[];return Bk.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var Jo={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:x4(4,13),y:x4(5,14)};Jo.translateX=Jo.x;Jo.translateY=Jo.y;i();i();var gc=e=>t=>t.test(e);i();var D4={test:e=>e==="auto",parse:e=>e};var Am=[Yr,ne,kt,Jr,b4,y4,D4],Rm=e=>Am.find(gc(e));i();var Zo=new Set,Fm=!1,Om=!1;function E4(){if(Om){let e=Array.from(Zo).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let o=S4(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(([a,s])=>{var u;(u=n.getValue(a))===null||u===void 0||u.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Om=!1,Fm=!1,Zo.forEach(e=>e.complete()),Zo.clear()}function P4(){Zo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Om=!0)})}function T4(){P4(),E4()}var po=class{constructor(t,r,n,o,a,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=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zo.add(this),Fm||(Fm=!0,pe.read(P4),pe.resolveKeyframes(E4))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===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[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};i();i();i();i();i();i();var mo=e=>Math.round(e*1e5)/1e5;i();i();var oa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;i();function A4(e){return e==null}i();var R4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ia=(e,t)=>r=>!!(typeof r=="string"&&R4.test(r)&&r.startsWith(e)||t&&!A4(r)&&Object.prototype.hasOwnProperty.call(r,t)),vc=(e,t,r)=>n=>{if(typeof n!="string")return n;let[o,a,s,u]=n.match(oa);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}};var Mk=e=>It(0,255,e),Bm={...Yr,transform:e=>Math.round(Mk(e))},Zr={test:ia("rgb","red"),parse:vc("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Bm.transform(e)+", "+Bm.transform(t)+", "+Bm.transform(r)+", "+mo(En.transform(n))+")"};function Ik(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 uu={test:ia("#"),parse:Ik,transform:Zr.transform};i();var ho={test:ia("hsl","hue"),parse:vc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+kt.transform(mo(t))+", "+kt.transform(mo(r))+", "+mo(En.transform(n))+")"};var et={test:e=>Zr.test(e)||uu.test(e)||ho.test(e),parse:e=>Zr.test(e)?Zr.parse(e):ho.test(e)?ho.parse(e):uu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Zr.transform(e):ho.transform(e)};i();var F4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kk(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(oa))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(F4))===null||r===void 0?void 0:r.length)||0)>0}var B4="number",M4="color",Nk="var",Vk="var(",O4="${}",Lk=/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 Qo(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[],a=0,u=t.replace(Lk,l=>(et.test(l)?(n.color.push(a),o.push(M4),r.push(et.parse(l))):l.startsWith(Vk)?(n.var.push(a),o.push(Nk),r.push(l)):(n.number.push(a),o.push(B4),r.push(parseFloat(l))),++a,O4)).split(O4);return{values:r,split:u,indexes:n,types:o}}function I4(e){return Qo(e).values}function k4(e){let{split:t,types:r}=Qo(e),n=t.length;return o=>{let a="";for(let s=0;s<n;s++)if(a+=t[s],o[s]!==void 0){let u=r[s];u===B4?a+=mo(o[s]):u===M4?a+=et.transform(o[s]):a+=o[s]}return a}}var $k=e=>typeof e=="number"?0:e;function zk(e){let t=I4(e);return k4(e)(t.map($k))}var Nt={test:kk,parse:I4,createTransformer:k4,getAnimatableNone:zk};i();i();var Gk=new Set(["brightness","contrast","saturate","opacity"]);function Hk(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(oa)||[];if(!n)return e;let o=r.replace(n,""),a=Gk.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}var jk=/\b([a-z-]*)\(.*?\)/gu,lu={...Nt,getAnimatableNone:e=>{let t=e.match(jk);return t?t.map(Hk).join(" "):e}};i();i();i();var N4={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne};i();var V4={rotate:Jr,rotateX:Jr,rotateY:Jr,rotateZ:Jr,scale:au,scaleX:au,scaleY:au,scaleZ:au,skew:Jr,skewX:Jr,skewY:Jr,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:En,originX:Pm,originY:Pm,originZ:ne};i();var Mm={...Yr,transform:Math.round};var aa={...N4,...V4,zIndex:Mm,size:ne,fillOpacity:En,strokeOpacity:En,numOctaves:Mm};var _k={...aa,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:lu,WebkitFilter:lu},sa=e=>_k[e];function yc(e,t){let r=sa(e);return r!==lu&&(r=Nt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var Wk=new Set(["auto","none","0"]);function L4(e,t,r){let n=0,o;for(;n<e.length&&!o;){let a=e[n];typeof a=="string"&&!Wk.has(a)&&Qo(a).values.length&&(o=e[n]),n++}if(o&&r)for(let a of t)e[a]=yc(r,o)}var ua=class extends po{constructor(t,r,n,o,a){super(t,r,n,o,a,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),na(c))){let p=Em(c,r.current);p!==void 0&&(t[l]=p),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!w4.has(n)||t.length!==2)return;let[o,a]=t,s=Rm(o),u=Rm(a);if(s!==u)if(Tm(s)&&Tm(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++)g4(t[o])&&n.push(o);n.length&&L4(t,n,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jo[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||!r.current)return;let a=r.getValue(n);a&&a.jump(this.measuredOrigin,!1);let s=o.length-1,u=o[s];o[s]=Jo[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()}};i();function la(e){return typeof e=="function"}i();i();var bc;function Uk(){bc=void 0}var Tt={now:()=>(bc===void 0&&Tt.set(Xe.isProcessing||Dn.useManualTiming?Xe.timestamp:performance.now()),bc),set:e=>{bc=e,queueMicrotask(Uk)}};i();i();var Im=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nt.test(e)||e==="0")&&!e.startsWith("url("));function Kk(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 $4(e,t,r,n){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let a=e[e.length-1],s=Im(o,t),u=Im(a,t);return fo(s===u,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!s||!u?!1:Kk(e)||(r==="spring"||la(r))&&n}var qk=40,ca=class{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Tt.now(),this.options={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:a,repeatType:s,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>qk?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&T4(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=Tt.now(),this.hasAttemptedResolve=!0;let{name:n,type:o,velocity:a,delay:s,onComplete:u,onUpdate:l,isGenerator:c}=this.options;if(!c&&!$4(t,n,o,a))if(rc.current||!s){l?.(lo(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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};i();i();i();i();function Cc(e,t){return t?e*(1e3/t):0}var Xk=5;function xc(e,t,r){let n=Math.max(t-Xk,0);return Cc(r-e(n),t-n)}i();var km=.001,Yk=.01,z4=10,Jk=.05,Zk=1;function G4({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;fo(e<=Pt(z4),"Spring duration must be 10 seconds or less");let s=1-t;s=It(Jk,Zk,s),e=It(Yk,z4,Ut(e)),s<1?(o=c=>{let p=c*s,d=p*e,m=p-r,g=wc(c,s),v=Math.exp(-d);return km-m/g*v},a=c=>{let d=c*s*e,m=d*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),h=wc(Math.pow(c,2),s);return(-o(c)+km>0?-1:1)*((m-g)*v)/h}):(o=c=>{let p=Math.exp(-c*e),d=(c-r)*e+1;return-km+p*d},a=c=>{let p=Math.exp(-c*e),d=(r-c)*(e*e);return p*d});let u=5/e,l=eN(o,a,u);if(e=Pt(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 Qk=12;function eN(e,t,r){let n=r;for(let o=1;o<Qk;o++)n=n-e(n)/t(n);return n}function wc(e,t){return e*Math.sqrt(1-t*t)}var tN=["duration","bounce"],rN=["stiffness","damping","mass"];function H4(e,t){return t.some(r=>e[r]!==void 0)}function nN(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!H4(e,rN)&&H4(e,tN)){let r=G4(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Sc({keyframes:e,restDelta:t,restSpeed:r,...n}){let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,mass:c,duration:p,velocity:d,isResolvedFromDuration:m}=nN({...n,velocity:-Ut(n.velocity||0)}),g=d||0,v=l/(2*Math.sqrt(u*c)),h=a-o,b=Ut(Math.sqrt(u/c)),y=Math.abs(h)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let x;if(v<1){let w=wc(b,v);x=S=>{let E=Math.exp(-v*b*S);return a-E*((g+v*b*h)/w*Math.sin(w*S)+h*Math.cos(w*S))}}else if(v===1)x=w=>a-Math.exp(-b*w)*(h+(g+b*h)*w);else{let w=b*Math.sqrt(v*v-1);x=S=>{let E=Math.exp(-v*b*S),D=Math.min(w*S,300);return a-E*((g+v*b*h)*Math.sinh(D)+w*h*Math.cosh(D))/w}}return{calculatedDuration:m&&p||null,next:w=>{let S=x(w);if(m)s.done=w>=p;else{let E=0;v<1&&(E=w===0?Pt(g):xc(x,w,S));let D=Math.abs(E)<=r,P=Math.abs(a-S)<=t;s.done=D&&P}return s.value=s.done?a:S,s}}}i();function Nm({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:l,restDelta:c=.5,restSpeed:p}){let d=e[0],m={done:!1,value:d},g=R=>u!==void 0&&R<u||l!==void 0&&R>l,v=R=>u===void 0?l:l===void 0||Math.abs(u-R)<Math.abs(l-R)?u:l,h=r*t,b=d+h,y=s===void 0?b:s(b);y!==b&&(h=y-d);let x=R=>-h*Math.exp(-R/n),w=R=>y+x(R),S=R=>{let F=x(R),M=w(R);m.done=Math.abs(F)<=c,m.value=m.done?y:M},E,D,P=R=>{g(m.value)&&(E=R,D=Sc({keyframes:[m.value,v(m.value)],velocity:xc(w,R,m.value),damping:o,stiffness:a,restDelta:c,restSpeed:p}))};return P(0),{calculatedDuration:null,next:R=>{let F=!1;return!D&&E===void 0&&(F=!0,S(R),P(R)),E!==void 0&&R>=E?D.next(R-E):(!F&&S(R),m)}}}i();i();var j4=co(.42,0,1,1),_4=co(0,0,.58,1),Dc=co(.42,0,.58,1);i();var W4=e=>Array.isArray(e)&&typeof e[0]!="number";i();i();var cu=e=>Array.isArray(e)&&typeof e[0]=="number";var U4={linear:Ae,easeIn:j4,easeInOut:Dc,easeOut:_4,circIn:cc,circInOut:pc,circOut:fc,backIn:iu,backInOut:uc,backOut:Dm,anticipate:lc},Vm=e=>{if(cu(e)){Lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return co(t,r,n,o)}else if(typeof e=="string")return Lr(U4[e]!==void 0,`Invalid easing type '${e}'`),U4[e];return e};i();i();var oN=(e,t)=>r=>t(e(r)),At=(...e)=>e.reduce(oN);i();var $r=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};i();i();i();var be=(e,t,r)=>e+(t-e)*r;i();i();function Lm(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 K4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,s=0;if(!t)o=a=s=r;else{let u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;o=Lm(l,u,e+1/3),a=Lm(l,u,e),s=Lm(l,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}i();function fa(e,t){return r=>r>0?t:e}var $m=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},iN=[uu,Zr,ho],aN=e=>iN.find(t=>t.test(e));function q4(e){let t=aN(e);if(fo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===ho&&(r=K4(r)),r}var zm=(e,t)=>{let r=q4(e),n=q4(t);if(!r||!n)return fa(e,t);let o={...r};return a=>(o.red=$m(r.red,n.red,a),o.green=$m(r.green,n.green,a),o.blue=$m(r.blue,n.blue,a),o.alpha=be(r.alpha,n.alpha,a),Zr.transform(o))};i();var Ec=new Set(["none","hidden"]);function X4(e,t){return Ec.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function sN(e,t){return r=>be(e,t,r)}function Pc(e){return typeof e=="number"?sN:typeof e=="string"?na(e)?fa:et.test(e)?zm:cN:Array.isArray(e)?Y4:typeof e=="object"?et.test(e)?zm:uN:fa}function Y4(e,t){let r=[...e],n=r.length,o=e.map((a,s)=>Pc(a)(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=o[s](a);return r}}function uN(e,t){let r={...e,...t},n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Pc(e[o])(e[o],t[o]));return o=>{for(let a in n)r[a]=n[a](o);return r}}function lN(e,t){var r;let n=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let s=t.types[a],u=e.indexes[s][o[s]],l=(r=e.values[u])!==null&&r!==void 0?r:0;n[a]=l,o[s]++}return n}var cN=(e,t)=>{let r=Nt.createTransformer(t),n=Qo(e),o=Qo(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?Ec.has(e)&&!o.values.length||Ec.has(t)&&!n.values.length?X4(e,t):At(Y4(lN(n,o),o.values),r):(fo(!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.`),fa(e,t))};function Tc(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?be(e,t,r):Pc(e)(e,t)}function fN(e,t,r){let n=[],o=r||Tc,a=e.length-1;for(let s=0;s<a;s++){let u=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Ae:t;u=At(l,u)}n.push(u)}return n}function J4(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let a=e.length;if(Lr(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=fN(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=$r(e[p],e[p+1],c);return s[p](d)};return r?c=>l(It(e[0],e[a-1],c)):l}i();i();function Z4(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=$r(0,t,n);e.push(be(r,1,o))}}function Q4(e){let t=[0];return Z4(t,e.length-1),t}i();function ev(e,t){return e.map(r=>r*t)}function pN(e,t){return e.map(()=>t||Dc).splice(0,e.length-1)}function fu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let o=W4(n)?n.map(Vm):Vm(n),a={done:!1,value:t[0]},s=ev(r&&r.length===t.length?r:Q4(t),e),u=J4(s,t,{ease:Array.isArray(o)?o:pN(t,o)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}i();function tv(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}i();var rv=e=>{let t=({timestamp:r})=>e(r);return{start:()=>pe.update(t,!0),stop:()=>cr(t),now:()=>Xe.isProcessing?Xe.timestamp:Tt.now()}};var dN={decay:Nm,inertia:Nm,tween:fu,keyframes:fu,spring:Sc},mN=e=>e/100,ei=class extends ca{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:r,motionValue:n,element:o,keyframes:a}=this.options,s=o?.KeyframeResolver||po,u=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(a,u,r,n,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,u=la(r)?r:dN[r]||fu,l,c;u!==fu&&typeof t[0]!="number"&&(l=At(mN,Tc(t[0],t[1])),t=[0,100]);let p=u({...this.options,keyframes:t});a==="mirror"&&(c=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),p.calculatedDuration===null&&(p.calculatedDuration=tv(p));let{calculatedDuration:d}=p,m=d+o,g=m*(n+1)-o;return{generator:p,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:m,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:R}=this.options;return{done:!0,value:R[R.length-1]}}let{finalKeyframe:o,generator:a,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:c,totalDuration:p,resolvedDuration:d}=n;if(this.startTime===null)return a.next(0);let{delay:m,repeat:g,repeatType:v,repeatDelay:h,onUpdate:b}=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 y=this.currentTime-m*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>p;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let w=this.currentTime,S=a;if(g){let R=Math.min(this.currentTime,p)/d,F=Math.floor(R),M=R%1;!M&&R>=1&&(M=1),M===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(v==="reverse"?(M=1-M,h&&(M-=h/d)):v==="mirror"&&(S=s)),w=It(0,1,M)*d}let E=x?{done:!1,value:l[0]}:S.next(w);u&&(E.value=u(E.value));let{done:D}=E;!x&&c!==null&&(D=this.speed>=0?this.currentTime>=p:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return P&&o!==void 0&&(E.value=lo(l,this.options,o)),b&&b(E.value),P&&this.finish(),E}get duration(){let{resolved:t}=this;return t?Ut(t.calculatedDuration):0}get time(){return Ut(this.currentTime)}set time(t){t=Pt(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=Ut(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=rv,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=n??this.calcStartTime(),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)}};i();var nv=new Set(["opacity","clipPath","filter","transform"]);i();i();i();var hN=10,ov=(e,t)=>{let r="",n=Math.max(Math.round(t/hN),2);for(let o=0;o<n;o++)r+=e($r(0,n-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};i();i();i();function pa(e){let t;return()=>(t===void 0&&(t=e()),t)}i();var iv={linearEasing:void 0};function av(e,t){let r=pa(e);return()=>{var n;return(n=iv[t])!==null&&n!==void 0?n:r()}}var da=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Hm(e){return!!(typeof e=="function"&&da()||!e||typeof e=="string"&&(e in Gm||da())||cu(e)||Array.isArray(e)&&e.every(Hm))}var pu=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Gm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pu([0,.65,.55,1]),circOut:pu([.55,0,1,.45]),backIn:pu([.31,.01,.66,-.59]),backOut:pu([.33,1.53,.69,.99])};function jm(e,t){if(e)return typeof e=="function"&&da()?ov(e,t):cu(e)?pu(e):Array.isArray(e)?e.map(r=>jm(r,t)||Gm.easeOut):Gm[e]}function sv(e,t,r,{delay:n=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:u="easeInOut",times:l}={}){let c={[t]:r};l&&(c.offset=l);let p=jm(u,o);return Array.isArray(p)&&(c.easing=p),e.animate(c,{delay:n,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}i();function _m(e,t){e.timeline=t,e.onfinish=null}i();var uv=pa(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var Ac=10,gN=2e4;function vN(e){return la(e.type)||e.type==="spring"||!Hm(e.ease)}function yN(e,t){let r=new ei({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},o=[],a=0;for(;!n.done&&a<gN;)n=r.sample(a),o.push(n.value),a+=Ac;return{times:void 0,keyframes:o,duration:a-Ac,ease:"linear"}}var lv={anticipate:lc,backInOut:uc,circInOut:pc};function bN(e){return e in lv}var du=class extends ca{constructor(t){super(t);let{name:r,motionValue:n,element:o,keyframes:a}=this.options;this.resolver=new ua(a,(s,u)=>this.onKeyframesResolved(s,u),r,n,o),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:a,ease:s,type:u,motionValue:l,name:c,startTime:p}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(typeof s=="string"&&da()&&bN(s)&&(s=lv[s]),vN(this.options)){let{onComplete:m,onUpdate:g,motionValue:v,element:h,...b}=this.options,y=yN(t,b);t=y.keyframes,t.length===1&&(t[1]=t[0]),o=y.duration,a=y.times,s=y.ease,u="keyframes"}let d=sv(l.owner.current,c,t,{...this.options,duration:o,times:a,ease:s});return d.startTime=p??this.calcStartTime(),this.pendingTimeline?(_m(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:m}=this.options;l.set(lo(t,this.options,r)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:a,type:u,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Ut(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Ut(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:n}=r;n.currentTime=Pt(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}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return Ae;let{animation:n}=r;_m(n,t)}return Ae}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;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:n,duration:o,type:a,ease:s,times:u}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){let{motionValue:c,onUpdate:p,onComplete:d,element:m,...g}=this.options,v=new ei({...g,keyframes:n,duration:o,type:a,ease:s,times:u,isGenerator:!0}),h=Pt(this.time);c.setWithVelocity(v.sample(h-Ac).value,v.sample(h).value,Ac)}let{onStop:l}=this.options;l&&l(),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:a,damping:s,type:u}=t;return uv()&&n&&nv.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&a!=="mirror"&&s!==0&&u!=="inertia"}};i();i();var cv=pa(()=>window.ScrollTimeline!==void 0);var Rc=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,r){let n=this.animations.map(o=>cv()&&o.attachTimeline?o.attachTimeline(t):r(o));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].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 startTime(){return this.getAll("startTime")}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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};i();function fv({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:u,from:l,elapsed:c,...p}){return!!Object.keys(p).length}var ma=(e,t,r,n={},o,a)=>s=>{let u=ra(n,e)||{},l=u.delay||n.delay||0,{elapsed:c=0}=n;c=c-Pt(l);let p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:o};fv(u)||(p={...p,...d4(e,p)}),p.duration&&(p.duration=Pt(p.duration)),p.repeatDelay&&(p.repeatDelay=Pt(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)),(rc.current||Dn.skipAnimations)&&(d=!0,p.duration=0,p.delay=0),d&&!a&&t.get()!==void 0){let m=lo(p.keyframes,u);if(m!==void 0)return pe.update(()=>{p.onUpdate(m),p.onComplete()}),new Rc([])}return!a&&du.supports(p)?new du(p):new ei(p)};i();i();var pv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),dv=e=>nu(e)?e[e.length-1]||0:e;i();i();i();function ha(e,t){e.indexOf(t)===-1&&e.push(t)}function ga(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var go=class{constructor(){this.subscriptions=[]}add(t){return ha(this.subscriptions,t),()=>ga(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 a=0;a<o;a++){let s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var mv=30,CN=e=>!isNaN(parseFloat(e)),hv={current:void 0},Wm=class{constructor(t,r={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{let a=Tt.now();this.updatedAt!==a&&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=Tt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CN(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 go);let n=this.events[t].add(r);return t==="change"?()=>{n(),pe.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 hv.current&&hv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mv)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,mv);return Cc(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 Pn(e,t){return new Wm(e,t)}function xN(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Pn(r))}function gv(e,t){let r=so(e,t),{transitionEnd:n={},transition:o={},...a}=r||{};a={...a,...n};for(let s in a){let u=dv(a[s]);xN(e,s,u)}}i();i();i();var va=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var wN="framerAppearId",Fc="data-"+va(wN);function Oc(e){return e.props[Fc]}i();i();i();var Ie=e=>!!(e&&e.getVelocity);function vv(e){return!!(Ie(e)&&e.add)}function mu(e,t){let r=e.getValue("willChange");if(vv(r))return r.add(t)}function SN({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Bc(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t;n&&(s=n);let c=[],p=o&&e.animationState&&e.animationState.getState()[o];for(let d in l){let m=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),g=l[d];if(g===void 0||p&&SN(p,d))continue;let v={delay:r,...ra(s||{},d)},h=!1;if(window.MotionHandoffAnimation){let y=Oc(e);if(y){let x=window.MotionHandoffAnimation(y,d,pe);x!==null&&(v.startTime=x,h=!0)}}mu(e,d),m.start(ma(d,m,g,e.shouldReduceMotion&&Wt.has(d)?{type:!1}:v,e,h));let b=m.animation;b&&c.push(b)}return u&&Promise.all(c).then(()=>{pe.update(()=>{u&&gv(e,u)})}),c}i();function Mc(e,t,r={}){var n;let o=so(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(a=r.transitionOverride);let s=o?()=>Promise.all(Bc(e,o,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:p=0,staggerChildren:d,staggerDirection:m}=a;return DN(e,t,p+c,d,m,r)}:()=>Promise.resolve(),{when:l}=a;if(l){let[c,p]=l==="beforeChildren"?[s,u]:[u,s];return c().then(()=>p())}else return Promise.all([s(),u(r.delay)])}function DN(e,t,r=0,n=0,o=1,a){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(EN).forEach((c,p)=>{c.notify("AnimationStart",t),s.push(Mc(c,t,{...a,delay:r+l(p)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function EN(e,t){return e.sortNodePosition(t)}function yv(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(a=>Mc(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=Mc(e,t,r);else{let o=typeof t=="function"?so(e,t,r.custom):t;n=Promise.all(Bc(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}i();var PN=ou.length;function Um(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?Um(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<PN;r++){let n=ou[r],o=e.props[n];(Sn(o)||o===!1)&&(t[n]=o)}return t}var TN=[...tc].reverse(),AN=tc.length;function RN(e){return t=>Promise.all(t.map(({animation:r,options:n})=>yv(e,r,n)))}function Cv(e){let t=RN(e),r=bv(),n=!0,o=l=>(c,p)=>{var d;let m=so(e,p,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(m){let{transition:g,transitionEnd:v,...h}=m;c={...c,...h,...v}}return c};function a(l){t=l(e)}function s(l){let{props:c}=e,p=Um(e.parent)||{},d=[],m=new Set,g={},v=1/0;for(let b=0;b<AN;b++){let y=TN[b],x=r[y],w=c[y]!==void 0?c[y]:p[y],S=Sn(w),E=y===l?x.isActive:null;E===!1&&(v=b);let D=w===p[y]&&w!==c[y]&&S;if(D&&n&&e.manuallyAnimateOnMount&&(D=!1),x.protectedKeys={...g},!x.isActive&&E===null||!w&&!x.prevProp||ao(w)||typeof w=="boolean")continue;let P=FN(x.prevProp,w),R=P||y===l&&x.isActive&&!D&&S||b>v&&S,F=!1,M=Array.isArray(w)?w:[w],H=M.reduce(o(y),{});E===!1&&(H={});let{prevResolvedValues:I={}}=x,L={...I,...H},N=K=>{R=!0,m.has(K)&&(F=!0,m.delete(K)),x.needsAnimating[K]=!0;let re=e.getValue(K);re&&(re.liveStyle=!1)};for(let K in L){let re=H[K],G=I[K];if(g.hasOwnProperty(K))continue;let ae=!1;nu(re)&&nu(G)?ae=!Sm(re,G):ae=re!==G,ae?re!=null?N(K):m.add(K):re!==void 0&&m.has(K)?N(K):x.protectedKeys[K]=!0}x.prevProp=w,x.prevResolvedValues=H,x.isActive&&(g={...g,...H}),n&&e.blockInitialAnimation&&(R=!1),R&&(!(D&&P)||F)&&d.push(...M.map(K=>({animation:K,options:{type:y}})))}if(m.size){let b={};m.forEach(y=>{let x=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),b[y]=x??null}),d.push({animation:b})}let h=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),n=!1,h?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(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;let d=s(l);for(let m in r)r[m].protectedKeys={};return d}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>r,reset:()=>{r=bv(),n=!0}}}function FN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sm(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bv(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}i();var lt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Ic=class extends lt{constructor(t){super(t),t.animationState||(t.animationState=Cv(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ao(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};i();var ON=0,kc=class extends lt{constructor(){super(...arguments),this.id=ON++}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 xv={animation:{Feature:Ic},exit:{Feature:kc}};i();i();i();i();i();i();var Nc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ri(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var wv=e=>t=>Nc(t)&&e(t,ri(t));i();i();function Kt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function qt(e,t,r,n){return Kt(e,t,wv(r),n)}i();var Sv=(e,t)=>Math.abs(e-t);function Dv(e,t){let r=Sv(e.x,t.x),n=Sv(e.y,t.y);return Math.sqrt(r**2+n**2)}var ya=class{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:a=!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=qm(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Dv(d.offset,{x:0,y:0})>=3;if(!m&&!g)return;let{point:v}=d,{timestamp:h}=Xe;this.history.push({...v,timestamp:h});let{onStart:b,onMove:y}=this.handlers;m||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Km(m,this.transformPagePoint),pe.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let b=qm(d.type==="pointercancel"?this.lastMoveEventInfo:Km(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,b),v&&v(d,b)},!Nc(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;let s=ri(t),u=Km(s,this.transformPagePoint),{point:l}=u,{timestamp:c}=Xe;this.history=[{...l,timestamp:c}];let{onSessionStart:p}=r;p&&p(t,qm(u,this.history)),this.removeListeners=At(qt(this.contextWindow,"pointermove",this.handlePointerMove),qt(this.contextWindow,"pointerup",this.handlePointerUp),qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}};function Km(e,t){return t?{point:t(e.point)}:e}function Ev(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qm({point:e},t){return{point:e,delta:Ev(e,Pv(t)),offset:Ev(e,BN(t)),velocity:MN(t,.1)}}function BN(e){return e[0]}function Pv(e){return e[e.length-1]}function MN(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=Pv(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Pt(t)));)r--;if(!n)return{x:0,y:0};let a=Ut(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};let s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}i();function Rv(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var Tv=Rv("dragHorizontal"),Av=Rv("dragVertical");function Xm(e){let t=!1;if(e==="y")t=Av();else if(e==="x")t=Tv();else{let r=Tv(),n=Av();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Vc(){let e=Xm(!0);return e?(e(),!1):!0}i();function Tn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}i();i();var Mv=1e-4,IN=1-Mv,kN=1+Mv,Iv=.01,NN=0-Iv,VN=0+Iv;function bt(e){return e.max-e.min}function kv(e,t,r){return Math.abs(e-t)<=r}function Fv(e,t,r,n=.5){e.origin=n,e.originPoint=be(t.min,t.max,e.origin),e.scale=bt(r)/bt(t),e.translate=be(r.min,r.max,e.origin)-e.originPoint,(e.scale>=IN&&e.scale<=kN||isNaN(e.scale))&&(e.scale=1),(e.translate>=NN&&e.translate<=VN||isNaN(e.translate))&&(e.translate=0)}function ba(e,t,r,n){Fv(e.x,t.x,r.x,n?n.originX:void 0),Fv(e.y,t.y,r.y,n?n.originY:void 0)}function Ov(e,t,r){e.min=r.min+t.min,e.max=e.min+bt(t)}function Nv(e,t,r){Ov(e.x,t.x,r.x),Ov(e.y,t.y,r.y)}function Bv(e,t,r){e.min=t.min-r.min,e.max=e.min+bt(t)}function Ca(e,t,r){Bv(e.x,t.x,r.x),Bv(e.y,t.y,r.y)}function Gv(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?be(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?be(r,e,n.max):Math.min(e,r)),e}function Vv(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 Hv(e,{top:t,left:r,bottom:n,right:o}){return{x:Vv(e.x,r,o),y:Vv(e.y,t,n)}}function Lv(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 jv(e,t){return{x:Lv(e.x,t.x),y:Lv(e.y,t.y)}}function _v(e,t){let r=.5,n=bt(e),o=bt(t);return o>n?r=$r(t.min,t.max-n,e.min):n>o&&(r=$r(e.min,e.max-o,t.min)),It(0,1,r)}function Wv(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 Lc=.35;function Uv(e=Lc){return e===!1?e=0:e===!0&&(e=Lc),{x:$v(e,"left","right"),y:$v(e,"top","bottom")}}function $v(e,t,r){return{min:zv(e,t),max:zv(e,r)}}function zv(e,t){return typeof e=="number"?e:e[t]||0}i();var Kv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ni=()=>({x:Kv(),y:Kv()}),qv=()=>({min:0,max:0}),Ve=()=>({x:qv(),y:qv()});i();function Xt(e){return[e("x"),e("y")]}i();i();function $c({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Xv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yv(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}}i();i();function Ym(e){return e===void 0||e===1}function zc({scale:e,scaleX:t,scaleY:r}){return!Ym(e)||!Ym(t)||!Ym(r)}function An(e){return zc(e)||Jm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Jm(e){return Jv(e.x)||Jv(e.y)}function Jv(e){return e&&e!=="0%"}function hu(e,t,r){let n=e-r,o=t*n;return r+o}function Zv(e,t,r,n,o){return o!==void 0&&(e=hu(e,o,n)),hu(e,r,n)+t}function Zm(e,t=0,r=1,n,o){e.min=Zv(e.min,t,r,n,o),e.max=Zv(e.max,t,r,n,o)}function Qm(e,{x:t,y:r}){Zm(e.x,t.translate,t.scale,t.originPoint),Zm(e.y,r.translate,r.scale,r.originPoint)}var Qv=.999999999999,e7=1.0000000000001;function r7(e,t,r,n=!1){let o=r.length;if(!o)return;t.x=t.y=1;let a,s;for(let u=0;u<o;u++){a=r[u],s=a.projectionDelta;let{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&oi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Qm(e,s)),n&&An(a.latestValues)&&oi(e,a.latestValues))}t.x<e7&&t.x>Qv&&(t.x=1),t.y<e7&&t.y>Qv&&(t.y=1)}function vo(e,t){e.min=e.min+t,e.max=e.max+t}function t7(e,t,r,n,o=.5){let a=be(e.min,e.max,o);Zm(e,t,r,a,n)}function oi(e,t){t7(e.x,t.x,t.scaleX,t.scale,t.originX),t7(e.y,t.y,t.scaleY,t.scale,t.originY)}function e0(e,t){return $c(Yv(e.getBoundingClientRect(),t))}function n7(e,t,r){let n=e0(e,r),{scroll:o}=t;return o&&(vo(n.x,o.offset.x),vo(n.y,o.offset.y)),n}i();var Gc=({current:e})=>e?e.ownerDocument.defaultView:null;var LN=new WeakMap,jc=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=Ve(),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(ri(p,"page").point)},a=(p,d)=>{let{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Xm(m),!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),Xt(b=>{let y=this.getAxisMotionValue(b).get()||0;if(kt.test(y)){let{projection:x}=this.visualElement;if(x&&x.layout){let w=x.layout.layoutBox[b];w&&(y=bt(w)*(parseFloat(y)/100))}}this.originPoint[b]=y}),v&&pe.postRender(()=>v(p,d)),mu(this.visualElement,"transform");let{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(p,d)=>{let{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:h}=this.getProps();if(!m&&!this.openGlobalLock)return;let{offset:b}=d;if(g&&this.currentDirection===null){this.currentDirection=$N(b),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),h&&h(p,d)},u=(p,d)=>this.stop(p,d),l=()=>Xt(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 ya(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Gc(this.visualElement)})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&pe.postRender(()=>a(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||!Hc(t,o,this.currentDirection))return;let a=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=Gv(s,this.constraints[t],this.elastic[t])),a.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,a=this.constraints;r&&Tn(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Hv(o.layoutBox,r):this.constraints=!1,this.elastic=Uv(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Wv(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Tn(t))return!1;let n=t.current;Lr(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 a=n7(n,o.root,this.visualElement.getTransformPagePoint()),s=jv(o.layout.layoutBox,a);if(r){let u=r(Xv(s));this.hasMutatedConstraints=!!u,u&&(s=$c(u))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},c=Xt(p=>{if(!Hc(p,r,this.currentDirection))return;let d=l&&l[p]||{};s&&(d={min:0,max:0});let m=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:n?t[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(p,v)});return Promise.all(c).then(u)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return mu(this.visualElement,t),n.start(ma(t,n,0,r,this.visualElement,!1))}stopAnimation(){Xt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xt(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){Xt(r=>{let{drag:n}=this.getProps();if(!Hc(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){let{min:s,max:u}=o.layout.layoutBox[r];a.set(t[r]-be(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Tn(r)||!n||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Xt(s=>{let u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){let l=u.get();o[s]=_v({min:l,max:l},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Xt(s=>{if(!Hc(s,t,null))return;let u=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];u.set(be(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;LN.set(this.visualElement,this);let t=this.visualElement.current,r=qt(t,"pointerdown",l=>{let{drag:c,dragListener:p=!0}=this.getProps();c&&p&&this.start(l)}),n=()=>{let{dragConstraints:l}=this.getProps();Tn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),pe.read(n);let s=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xt(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(),a(),u&&u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=Lc,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:u}}};function Hc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function $N(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var _c=class extends lt{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new jc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}};i();var o7=e=>(t,r)=>{e&&pe.postRender(()=>e(t,r))},Wc=class extends lt{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new ya(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gc(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:o7(t),onStart:o7(r),onMove:n,onEnd:(a,s)=>{delete this.session,o&&pe.postRender(()=>o(a,s))}}}mount(){this.removePointerDownListener=qt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};i();import{jsx as KN}from"react/jsx-runtime";import{useContext as l7,Component as qN}from"react";i();import{useContext as GN,useId as HN,useEffect as jN,useCallback as _N}from"react";i();import{createContext as zN}from"react";var yo=zN(null);function i7(){let e=GN(yo);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=HN();jN(()=>n(o),[]);let a=_N(()=>r&&r(o),[o,r]);return!t&&r?[!1,a]:[!0]}i();import{createContext as WN}from"react";var xa=WN({});i();import{createContext as UN}from"react";var Uc=UN({});i();var wa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};i();function a7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Sa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;let r=a7(e,t.target.x),n=a7(e,t.target.y);return`${r}% ${n}%`}};i();var s7={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=Nt.parse(e);if(o.length>5)return n;let a=Nt.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=be(u,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),a(o)}};i();var Da={};function u7(e){Object.assign(Da,e)}i();var{schedule:Ea,cancel:V7e}=oc(queueMicrotask,!1);var t0=class extends qN{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;u7(XN),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),wa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,s=n.projection;return s&&(s.isPresent=a,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||pe.postRender(()=>{let u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ea.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 Kc(e){let[t,r]=i7(),n=l7(xa);return KN(t0,{...e,layoutGroup:n,switchLayoutGroup:l7(Uc),isPresent:t,safeToRemove:r})}var XN={borderRadius:{...Sa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sa,borderTopRightRadius:Sa,borderBottomLeftRadius:Sa,borderBottomRightRadius:Sa,boxShadow:s7};i();i();i();var d7=["TopLeft","TopRight","BottomLeft","BottomRight"],YN=d7.length,c7=e=>typeof e=="string"?parseFloat(e):e,f7=e=>typeof e=="number"||ne.test(e);function m7(e,t,r,n,o,a){o?(e.opacity=be(0,r.opacity!==void 0?r.opacity:1,JN(n)),e.opacityExit=be(t.opacity!==void 0?t.opacity:1,0,ZN(n))):a&&(e.opacity=be(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<YN;s++){let u=`border${d7[s]}Radius`,l=p7(t,u),c=p7(r,u);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||f7(l)===f7(c)?(e[u]=Math.max(be(c7(l),c7(c),n),0),(kt.test(c)||kt.test(l))&&(e[u]+="%")):e[u]=c}(t.rotate||r.rotate)&&(e.rotate=be(t.rotate||0,r.rotate||0,n))}function p7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var JN=h7(0,.5,fc),ZN=h7(.5,.95,Ae);function h7(e,t,r){return n=>n<e?0:n>t?1:r($r(e,t,n))}i();function g7(e,t){e.min=t.min,e.max=t.max}function fr(e,t){g7(e.x,t.x),g7(e.y,t.y)}function r0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}i();function v7(e,t,r,n,o){return e-=t,e=hu(e,1/r,n),o!==void 0&&(e=hu(e,1/o,n)),e}function QN(e,t=0,r=1,n=.5,o,a=e,s=e){if(kt.test(t)&&(t=parseFloat(t),t=be(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=be(a.min,a.max,n);e===a&&(u-=t),e.min=v7(e.min,t,r,u,o),e.max=v7(e.max,t,r,u,o)}function y7(e,t,[r,n,o],a,s){QN(e,t[r],t[n],t[o],t.scale,a,s)}var eV=["x","scaleX","originX"],tV=["y","scaleY","originY"];function n0(e,t,r,n){y7(e.x,t,eV,r?r.x:void 0,n?n.x:void 0),y7(e.y,t,tV,r?r.y:void 0,n?n.y:void 0)}i();function b7(e){return e.translate===0&&e.scale===1}function o0(e){return b7(e.x)&&b7(e.y)}function C7(e,t){return e.min===t.min&&e.max===t.max}function w7(e,t){return C7(e.x,t.x)&&C7(e.y,t.y)}function x7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i0(e,t){return x7(e.x,t.x)&&x7(e.y,t.y)}function a0(e){return bt(e.x)/bt(e.y)}function s0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}i();var qc=class{constructor(){this.members=[]}add(t){ha(this.members,t),t.scheduleRender()}remove(t){if(ga(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 a=this.members[o];if(a.isPresent!==!1){n=a;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)}};i();function S7(e,t,r){let n="",o=e.x.translate/t.x,a=e.y.translate/t.y,s=r?.z||0;if((o||a||s)&&(n=`translate3d(${o}px, ${a}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:m,skewX:g,skewY:v}=r;c&&(n=`perspective(${c}px) ${n}`),p&&(n+=`rotate(${p}deg) `),d&&(n+=`rotateX(${d}deg) `),m&&(n+=`rotateY(${m}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"}i();i();var D7=(e,t)=>e.depth-t.depth;var Xc=class{constructor(){this.children=[],this.isDirty=!1}add(t){ha(this.children,t),this.isDirty=!0}remove(t){ga(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(D7),this.isDirty=!1,this.children.forEach(t)}};i();function Pa(e){let t=Ie(e)?e.get():e;return pv(t)?t.toValue():t}i();function E7(e,t){let r=Tt.now(),n=({timestamp:o})=>{let a=o-r;a>=t&&(cr(n),e(a-t))};return pe.read(n,!0),()=>cr(n)}i();function P7(e){return e instanceof SVGElement&&e.tagName!=="svg"}i();function T7(e,t,r){let n=Ie(e)?e:Pn(e);return n.start(ma("",n,t,r)),n.animation}var ii={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},gu=typeof window<"u"&&window.MotionDebug!==void 0,u0=["","X","Y","Z"],rV={visibility:"hidden"},A7=1e3,nV=0;function l0(e,t,r,n){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function N7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=Oc(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",pe,!(o||a))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&N7(n)}function Yc({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},u=t?.()){this.id=nV++,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.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gu&&(ii.totalNodes=ii.resolvedTargetDeltas=ii.recalculatedProjection=0),this.nodes.forEach(aV),this.nodes.forEach(fV),this.nodes.forEach(pV),this.nodes.forEach(sV),gu&&window.MotionDebug.record(ii)},this.resolvedRelativeTargetAt=0,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 Xc)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new go),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=P7(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,m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=E7(m,250),wa.hasAnimatedSinceResize&&(wa.hasAnimatedSinceResize=!1,this.nodes.forEach(F7))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&p&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=this.options.transition||p.getDefaultTransition()||vV,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=p.getProps(),x=!this.targetLayout||!i0(this.targetLayout,v)||g,w=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);let S={...ra(h,"layout"),onPlay:b,onComplete:y};(p.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else m||F7(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,cr(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(dV),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.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&N7(this),!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(R7);return}this.isUpdating||this.nodes.forEach(lV),this.isUpdating=!1,this.nodes.forEach(cV),this.nodes.forEach(oV),this.nodes.forEach(iV),this.clearAllSnapshots();let u=Tt.now();Xe.delta=It(0,1e3/60,u-Xe.timestamp),Xe.timestamp=u,Xe.isProcessing=!0,ic.update.process(Xe),ic.preRender.process(Xe),ic.render.process(Xe),Xe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ea.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uV),this.sharedNodes.forEach(mV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pe.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=Ve(),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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u){let l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!o0(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,p=c!==this.prevTransformTemplateValue;s&&(u||An(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)),yV(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:u}=this.options;if(!u)return Ve();let l=u.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(bV))){let{scroll:p}=this.root;p&&(vo(l.x,p.offset.x),vo(l.y,p.offset.y))}return l}removeElementScroll(s){var u;let l=Ve();if(fr(l,s),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let c=0;c<this.path.length;c++){let p=this.path[c],{scroll:d,options:m}=p;p!==this.root&&d&&m.layoutScroll&&(d.wasRoot&&fr(l,s),vo(l.x,d.offset.x),vo(l.y,d.offset.y))}return l}applyTransform(s,u=!1){let l=Ve();fr(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&&oi(l,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),An(p.latestValues)&&oi(l,p.latestValues)}return An(this.latestValues)&&oi(l,this.latestValues),l}removeTransform(s){let u=Ve();fr(u,s);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!An(c.latestValues))continue;zc(c.latestValues)&&c.updateSnapshot();let p=Ve(),d=c.measurePageBox();fr(p,d),n0(u,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,p)}return An(this.latestValues)&&n0(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!==Xe.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||this.root.updateBlockedByResize))return;let{layout:d,layoutId:m}=this.options;if(!(!this.layout||!(d||m))){if(this.resolvedRelativeTargetAt=Xe.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Ca(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Nv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fr(this.target,this.layout.layoutBox),Qm(this.target,this.targetDelta)):fr(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=Ve(),this.relativeTargetOrigin=Ve(),Ca(this.relativeTargetOrigin,this.target,g.target),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}gu&&ii.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||zc(this.parent.latestValues)||Jm(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===Xe.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;fr(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,g=this.treeScale.y;r7(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=Ve());let{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(r0(this.prevProjectionDelta.x,this.projectionDelta.x),r0(this.prevProjectionDelta.y,this.projectionDelta.y)),ba(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!s0(this.projectionDelta.x,this.prevProjectionDelta.x)||!s0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),gu&&ii.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ni(),this.projectionDelta=ni(),this.projectionDeltaWithTransform=ni()}setAnimationOrigin(s,u=!1){let l=this.snapshot,c=l?l.latestValues:{},p={...this.latestValues},d=ni();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;let m=Ve(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,h=g!==v,b=this.getStack(),y=!b||b.members.length<=1,x=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(gV));this.animationProgress=0;let w;this.mixTargetDelta=S=>{let E=S/1e3;O7(d.x,s.x,E),O7(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ca(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hV(this.relativeTarget,this.relativeTargetOrigin,m,E),w&&w7(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ve()),fr(w,this.relativeTarget)),h&&(this.animationValues=p,m7(p,c,this.latestValues,E,x,y)),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&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pe.update(()=>{wa.hasAnimatedSinceResize=!0,this.currentAnimation=T7(0,A7,{...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(A7),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&&V7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ve();let d=bt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;let m=bt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}fr(u,l),oi(u,p),ba(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new qc),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&&l0("z",s,c,this.animationValues);for(let p=0;p<u0.length;p++)l0(`rotate${u0[p]}`,s,c,this.animationValues),l0(`skew${u0[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 rV;let c={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Pa(s?.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none",c;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Pa(s?.pointerEvents)||""),this.hasProjected&&!An(this.latestValues)&&(h.transform=p?p({},""):"none",this.hasProjected=!1),h}let m=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=S7(this.projectionDeltaWithTransform,this.treeScale,m),p&&(c.transform=p(m,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=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let h in Da){if(m[h]===void 0)continue;let{correct:b,applyTo:y}=Da[h],x=c.transform==="none"?m[h]:b(m[h],d);if(y){let w=y.length;for(let S=0;S<w;S++)c[y[S]]=x}else c[h]=x}return this.options.layoutId&&(c.pointerEvents=d===this?Pa(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(R7),this.root.sharedNodes.clear()}}}function oV(e){e.updateLayout()}function iV(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:a}=e.options,s=r.source!==e.layout.source;a==="size"?Xt(d=>{let m=s?r.measuredBox[d]:r.layoutBox[d],g=bt(m);m.min=n[d].min,m.max=m.min+g}):V7(a,r.layoutBox,n)&&Xt(d=>{let m=s?r.measuredBox[d]:r.layoutBox[d],g=bt(n[d]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});let u=ni();ba(u,n,r.layoutBox);let l=ni();s?ba(l,e.applyTransform(o,!0),r.measuredBox):ba(l,n,r.layoutBox);let c=!o0(u),p=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:m,layout:g}=d;if(m&&g){let v=Ve();Ca(v,r.layoutBox,m.layoutBox);let h=Ve();Ca(h,n,g.layoutBox),i0(v,h)||(p=!0),d.options.layoutRoot&&(e.relativeTarget=h,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 aV(e){gu&&ii.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 sV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uV(e){e.clearSnapshot()}function R7(e){e.clearMeasurements()}function lV(e){e.isLayoutDirty=!1}function cV(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function F7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fV(e){e.resolveTargetDelta()}function pV(e){e.calcProjection()}function dV(e){e.resetSkewAndRotation()}function mV(e){e.removeLeadSnapshot()}function O7(e,t,r){e.translate=be(t.translate,0,r),e.scale=be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function B7(e,t,r,n){e.min=be(t.min,r.min,n),e.max=be(t.max,r.max,n)}function hV(e,t,r,n){B7(e.x,t.x,r.x,n),B7(e.y,t.y,r.y,n)}function gV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var vV={duration:.45,ease:[.4,0,.1,1]},M7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),I7=M7("applewebkit/")&&!M7("chrome/")?Math.round:Ae;function k7(e){e.min=I7(e.min),e.max=I7(e.max)}function yV(e){k7(e.x),k7(e.y)}function V7(e,t,r){return e==="position"||e==="preserve-aspect"&&!kv(a0(t),a0(r),.2)}function bV(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}i();var L7=Yc({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var c0={current:void 0},Jc=Yc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!c0.current){let e=new L7({});e.mount(window),e.setOptions({layoutScroll:!0}),c0.current=e}return c0.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:_c,ProjectionNode:Jc,MeasureLayout:Kc}};i();i();function z7(e,t){let r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(a,s)=>{if(a.pointerType==="touch"||Vc())return;let u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t);let l=u[n];l&&pe.postRender(()=>l(a,s))};return qt(e.current,r,o,{passive:!e.getProps()[n]})}var Zc=class extends lt{mount(){this.unmount=At(z7(this.node,!0),z7(this.node,!1))}unmount(){}};i();var Qc=class extends lt{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=At(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};i();i();var f0=(e,t)=>t?e===t?!0:f0(e,t.parentElement):!1;function p0(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,ri(r))}var ef=class extends lt{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),a=qt(window,"pointerup",(u,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:p,globalTapTarget:d}=this.node.getProps(),m=!d&&!f0(this.node.current,u.target)?p:c;m&&pe.update(()=>m(u,l))},{passive:!(n.onTap||n.onPointerUp)}),s=qt(window,"pointercancel",(u,l)=>this.cancelPress(u,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=At(a,s),this.startPress(t,r)},this.startAccessiblePress=()=>{let t=a=>{if(a.key!=="Enter"||this.isPressing)return;let s=u=>{u.key!=="Enter"||!this.checkPressEnd()||p0("up",(l,c)=>{let{onTap:p}=this.node.getProps();p&&pe.postRender(()=>p(l,c))})};this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",s),p0("down",(u,l)=>{this.startPress(u,l)})},r=Kt(this.node.current,"keydown",t),n=()=>{this.isPressing&&p0("cancel",(a,s)=>this.cancelPress(a,s))},o=Kt(this.node.current,"blur",n);this.removeAccessibleListeners=At(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&&pe.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Vc()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&pe.postRender(()=>n(t,r))}mount(){let t=this.node.getProps(),r=qt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=At(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}};i();i();var m0=new WeakMap,d0=new WeakMap,CV=e=>{let t=m0.get(e.target);t&&t(e)},xV=e=>{e.forEach(CV)};function wV({root:e,...t}){let r=e||document;d0.has(r)||d0.set(r,{});let n=d0.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(xV,{root:e,...t})),n[o]}function G7(e,t,r){let n=wV(t);return m0.set(e,r),n.observe(e),()=>{m0.delete(e),n.unobserve(e)}}var SV={some:0,all:1},tf=class extends lt{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:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:SV[o]},u=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!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(),m=c?p:d;m&&m(l)};return G7(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(DV(t,r))&&this.startObserver()}unmount(){}};function DV({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var H7={inView:{Feature:tf},tap:{Feature:ef},focus:{Feature:Qc},hover:{Feature:Zc}};i();var j7={layout:{ProjectionNode:Jc,MeasureLayout:Kc}};i();i();import{jsxs as NV,jsx as VV}from"react/jsx-runtime";import{forwardRef as LV,useContext as g0}from"react";i();import{createContext as EV}from"react";var Ta=EV({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});i();import{createContext as PV}from"react";var bo=PV({});i();import{useContext as vu,useRef as h0,useInsertionEffect as FV,useEffect as OV}from"react";i();import{useLayoutEffect as TV,useEffect as AV}from"react";i();var Aa=typeof window<"u";var rf=Aa?TV:AV;i();import{createContext as RV}from"react";var nf=RV({strict:!1});function _7(e,t,r,n,o){var a,s;let{visualElement:u}=vu(bo),l=vu(nf),c=vu(yo),p=vu(Ta).reducedMotion,d=h0();n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:u,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:p}));let m=d.current,g=vu(Uc);m&&!m.projection&&o&&(m.type==="html"||m.type==="svg")&&BV(d.current,r,o,g);let v=h0(!1);FV(()=>{m&&v.current&&m.update(r,c)});let h=r[Fc],b=h0(!!h&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return rf(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Ea.render(m.render),b.current&&m.animationState&&m.animationState.animateChanges())}),OV(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,h)}),b.current=!1))}),m}function BV(e,t,r,n){let{layoutId:o,layout:a,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:W7(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||u&&Tn(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}function W7(e){if(e)return e.options.allowProjection!==!1?e.projection:W7(e.parent)}i();import{useCallback as MV}from"react";function U7(e,t,r){return MV(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Tn(r)&&(r.current=n))},[t])}i();import{useContext as IV,useMemo as kV}from"react";i();i();function ai(e){return ao(e.animate)||ou.some(t=>Sn(e[t]))}function of(e){return!!(ai(e)||e.variants)}function K7(e,t){if(ai(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Sn(r)?r:void 0,animate:Sn(n)?n:void 0}}return e.inherit!==!1?t:{}}function X7(e){let{initial:t,animate:r}=K7(e,IV(bo));return kV(()=>({initial:t,animate:r}),[q7(t),q7(r)])}function q7(e){return Array.isArray(e)?e.join(" "):e}i();i();var Y7={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"]},Rn={};for(let e in Y7)Rn[e]={isEnabled:t=>Y7[e].some(r=>!!t[r])};function J7(e){for(let t in e)Rn[t]={...Rn[t],...e[t]}}i();var Z7=Symbol.for("motionComponentSymbol");function Q7({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&J7(e);function a(u,l){let c,p={...g0(Ta),...u,layoutId:$V(u)},{isStatic:d}=p,m=X7(u),g=n(u,d);if(!d&&Aa){zV(p,e);let v=GV(p);c=v.MeasureLayout,m.visualElement=_7(o,g,p,t,v.ProjectionNode)}return NV(bo.Provider,{value:m,children:[c&&m.visualElement?VV(c,{visualElement:m.visualElement,...p}):null,r(o,u,U7(g,m.visualElement,l),g,d,m.visualElement)]})}let s=LV(a);return s[Z7]=o,s}function $V({layoutId:e}){let t=g0(xa).id;return t&&e!==void 0?t+"-"+e:e}function zV(e,t){let r=g0(nf).strict}function GV(e){let{drag:t,layout:r}=Rn;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}i();i();var e6=["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 Ra(e){return typeof e!="string"||e.includes("-")?!1:!!(e6.indexOf(e)>-1||/[A-Z]/u.test(e))}i();i();i();function af(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let a in r)e.style.setProperty(a,r[a])}i();var sf=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 uf(e,t,r,n){af(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(sf.has(o)?o:va(o),t.attrs[o])}i();i();i();function lf(e,{layout:t,layoutId:r}){return Wt.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Da[e]||e==="opacity")}function Fa(e,t,r){var n;let{style:o}=e,a={};for(let s in o)(Ie(o[s])||t.style&&Ie(t.style[s])||lf(s,e)||((n=r?.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(a[s]=o[s]);return a}function cf(e,t,r){let n=Fa(e,t,r);for(let o in e)if(Ie(e[o])||Ie(t[o])){let a=uo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[a]=e[o]}return n}i();import{useContext as t6}from"react";i();import{useRef as HV}from"react";function Oa(e){let t=HV(null);return t.current===null&&(t.current=e()),t.current}function jV({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){let s={latestValues:_V(n,o,a,e),renderState:t()};return r&&(s.mount=u=>r(n,u,s)),s}var ff=e=>(t,r)=>{let n=t6(bo),o=t6(yo),a=()=>jV(e,t,n,o);return r?a():Oa(a)};function _V(e,t,r,n){let o={},a=n(e,{});for(let m in a)o[m]=Pa(a[m]);let{initial:s,animate:u}=e,l=ai(e),c=of(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;if(d&&typeof d!="boolean"&&!ao(d)){let m=Array.isArray(d)?d:[d];for(let g=0;g<m.length;g++){let v=ta(e,m[g]);if(v){let{transitionEnd:h,transition:b,...y}=v;for(let x in y){let w=y[x];if(Array.isArray(w)){let S=p?w.length-1:0;w=w[S]}w!==null&&(o[x]=w)}for(let x in h)o[x]=h[x]}}}return o}i();i();var Ba=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var pf=()=>({...Ba(),attrs:{}});i();i();i();i();var df=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var WV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UV=uo.length;function r6(e,t,r){let n="",o=!0;for(let a=0;a<UV;a++){let s=uo[a],u=e[s];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(s.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||r){let c=df(u,aa[s]);if(!l){o=!1;let p=WV[s]||s;n+=`${p}(${c}) `}r&&(t[s]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function Ma(e,t,r){let{style:n,vars:o,transformOrigin:a}=e,s=!1,u=!1;for(let l in t){let c=t[l];if(Wt.has(l)){s=!0;continue}else if(hc(l)){o[l]=c;continue}else{let p=df(c,aa[l]);l.startsWith("origin")?(u=!0,a[l]=p):n[l]=p}}if(t.transform||(s||r?n.transform=r6(t,e.transform,r):n.transform&&(n.transform="none")),u){let{originX:l="50%",originY:c="50%",originZ:p=0}=a;n.transformOrigin=`${l} ${c} ${p}`}}i();function n6(e,t,r){return typeof e=="string"?e:ne.transform(t+r*e)}function o6(e,t,r){let n=n6(t,e.x,e.width),o=n6(r,e.y,e.height);return`${n} ${o}`}i();var KV={offset:"stroke-dashoffset",array:"stroke-dasharray"},qV={offset:"strokeDashoffset",array:"strokeDasharray"};function i6(e,t,r=1,n=0,o=!0){e.pathLength=1;let a=o?KV:qV;e[a.offset]=ne.transform(-n);let s=ne.transform(t),u=ne.transform(r);e[a.array]=`${s} ${u}`}function Ia(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...c},p,d){if(Ma(e,c,d),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(o!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=o6(v,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),s!==void 0&&i6(m,s,u,l,!1)}i();var ka=e=>typeof e=="string"&&e.toLowerCase()==="svg";var a6={useVisualState:ff({scrapeMotionValuesFromProps:cf,createRenderState:pf,onMount:(e,t,{renderState:r,latestValues:n})=>{pe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),pe.render(()=>{Ia(r,n,ka(t.tagName),e.transformTemplate),uf(t,r)})}})};i();var s6={useVisualState:ff({scrapeMotionValuesFromProps:Fa,createRenderState:Ba})};i();import{Fragment as nL,useMemo as oL,createElement as iL}from"react";i();import{useMemo as XV}from"react";function v0(e,t,r){for(let n in t)!Ie(t[n])&&!lf(n,r)&&(e[n]=t[n])}function YV({transformTemplate:e},t){return XV(()=>{let r=Ba();return Ma(r,t,e),Object.assign({},r.vars,r.style)},[t])}function JV(e,t){let r=e.style||{},n={};return v0(n,r,e),Object.assign(n,YV(e,t)),n}function u6(e,t){let r={},n=JV(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}i();i();var ZV=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 yu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ZV.has(e)}var d6=e=>!yu(e);function tL(e){e&&(d6=t=>t.startsWith("on")?!yu(t):e(t))}try{tL((p6(),wM(f6)).default)}catch{}function m6(e,t,r){let n={};for(let o in e)o==="values"&&typeof e.values=="object"||(d6(o)||r===!0&&yu(o)||!t&&!yu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}i();import{useMemo as rL}from"react";function h6(e,t,r,n){let o=rL(()=>{let a=pf();return Ia(a,t,ka(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};v0(a,e.style,e),o.style={...a,...o.style}}return o}function g6(e=!1){return(r,n,o,{latestValues:a},s)=>{let l=(Ra(r)?h6:u6)(n,a,s,r),c=m6(n,typeof r=="string",e),p=r!==nL?{...c,...l,ref:o}:{},{children:d}=n,m=oL(()=>Ie(d)?d.get():d,[d]);return iL(r,{...p,children:m})}}function v6(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Ra(n)?a6:s6,preloadedFeatures:e,useRender:g6(o),createVisualElement:t,Component:n};return Q7(s)}}i();import{Fragment as uL}from"react";i();i();i();i();i();var bu={current:null},mf={current:!1};function y6(){if(mf.current=!0,!!Aa)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bu.current=e.matches;e.addListener(t),t()}else bu.current=!1}i();function b6(e,t,r){for(let n in t){let o=t[n],a=r[n];if(Ie(o))e.addValue(n,o);else if(Ie(a))e.addValue(n,Pn(o,{owner:e}));else if(a!==o)if(e.hasValue(n)){let s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(n);e.addValue(n,Pn(s!==void 0?s:o,{owner:e}))}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}i();var y0=new WeakMap;i();var aL=[...Am,et,Nt],C6=e=>aL.find(gc(e));var x6=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],hf=class{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:a,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=po,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.renderScheduledAt=0,this.scheduleRender=()=>{let m=Tt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,pe.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=!!a,this.isControllingVariants=ai(r),this.isVariantNode=of(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:p,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(let m in d){let g=d[m];l[m]!==void 0&&Ie(g)&&g.set(l[m],!1)}}mount(t){this.current=t,y0.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)),mf.current||y6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){y0.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=Wt.has(t),o=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),a(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Rn){let r=Rn[t];if(!r)continue;let{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){let a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}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<x6.length;n++){let o=x6[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let a="on"+o,s=t[a];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=b6(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}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=Pn(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"&&(mc(o)||dc(o))?o=parseFloat(o):!C6(o)&&Nt.test(r)&&(o=yc(t,r)),this.setBaseTarget(t,Ie(o)?o.get():o)),Ie(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=ta(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 a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ie(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new go),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var Na=class extends hf{constructor(){super(...arguments),this.KeyframeResolver=ua}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 sL(e){return window.getComputedStyle(e)}var gf=class extends Na{constructor(){super(...arguments),this.type="html",this.renderInstance=af}readValueFromInstance(t,r){if(Wt.has(r)){let n=sa(r);return n&&n.default||0}else{let n=sL(t),o=(hc(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return e0(t,r)}build(t,r,n){Ma(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Fa(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Ie(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};i();var vf=class extends Na{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ve}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Wt.has(r)){let n=sa(r);return n&&n.default||0}return r=sf.has(r)?r:va(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return cf(t,r,n)}build(t,r,n){Ia(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,o){uf(t,r,n,o)}mount(t){this.isSVGTag=ka(t.tagName),super.mount(t)}};var w6=(e,t)=>Ra(e)?new vf(t):new gf(t,{allowProjection:e!==uL});var S6=v6({...xv,...H7,...$7,...j7},w6);var Cu=f4(S6);i();import{jsx as F6,Fragment as yL}from"react/jsx-runtime";import{useMemo as bL,useRef as O6,useState as B6,useContext as CL}from"react";i();import{jsx as P6}from"react/jsx-runtime";import*as A6 from"react";import{useId as dL,useCallback as mL,useMemo as T6}from"react";i();import{jsx as lL}from"react/jsx-runtime";import*as yf from"react";import{useId as cL,useRef as D6,useContext as fL,useInsertionEffect as pL}from"react";var b0=class extends yf.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 E6({children:e,isPresent:t}){let r=cL(),n=D6(null),o=D6({width:0,height:0,top:0,left:0}),{nonce:a}=fL(Ta);return pL(()=>{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 a&&(p.nonce=a),document.head.appendChild(p),p.sheet&&p.sheet.insertRule(`
|
|
100
|
+
`},Yl=Object.keys(sm),xr=(e=void 0)=>(0,B5.isNotNil)(e)?sm[e]:sm.defaultDarkOne;i();var tI=31,efe=e=>{let t=null;if(typeof e=="string"&&e)t=Array.from(e).reduce((n,o)=>Math.imul(tI,n)+o.charCodeAt(0)||0,0);else return Yl[0];let r=Math.abs(t)%Yl.length;return Yl[r]};i();i();i();i();function Et(){return Et=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},Et.apply(this,arguments)}i();function um(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i();i();function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Cn(e,t)}function lm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cn(e,t)}i();i();function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}i();function cm(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}i();i();function Jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jl=function(){return!!e})()}function fm(e,t,r){if(Jl())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 Xs(e){var t=typeof Map=="function"?new Map:void 0;return Xs=function(n){if(n===null||!cm(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 fm(n,arguments,qs(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Cn(o,n)},Xs(e)}i();var jt=function(e){lm(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,a,s;s<o;s++);return um(n)}return t}(Xs(Error));function M5(e,t){return e.substr(-t.length)===t}var rI=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function I5(e){if(typeof e!="string")return e;var t=e.match(rI);return t?parseFloat(e):e}var nI=function(t){return function(r,n){n===void 0&&(n="16px");var o=r,a=n;if(typeof r=="string"){if(!M5(r,"px"))throw new jt(69,t,r);o=I5(r)}if(typeof n=="string"){if(!M5(n,"px"))throw new jt(70,t,n);a=I5(n)}if(typeof o=="string")throw new jt(71,r,t);if(typeof a=="string")throw new jt(72,n,t);return""+o/a+t}},N5=nI,Nfe=N5("em");var oI=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function V5(e){if(typeof e!="string")return[e,""];var t=e.match(oI);return t?[parseFloat(e),t[2]]:[e,void 0]}var Vfe=N5("rem");function pm(e){return Math.round(e*255)}function iI(e,t,r){return pm(e)+","+pm(t)+","+pm(r)}function Ys(e,t,r,n){if(n===void 0&&(n=iI),t===0)return n(r,r,r);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*t,s=a*(1-Math.abs(o%2-1)),u=0,l=0,c=0;o>=0&&o<1?(u=a,l=s):o>=1&&o<2?(u=s,l=a):o>=2&&o<3?(l=a,c=s):o>=3&&o<4?(l=s,c=a):o>=4&&o<5?(u=s,c=a):o>=5&&o<6&&(u=a,c=s);var p=r-a/2,d=u+p,m=l+p,g=c+p;return n(d,m,g)}var k5={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 aI(e){if(typeof e!="string")return e;var t=e.toLowerCase();return k5[t]?"#"+k5[t]:e}var sI=/^#[a-fA-F0-9]{6}$/,uI=/^#[a-fA-F0-9]{8}$/,lI=/^#[a-fA-F0-9]{3}$/,cI=/^#[a-fA-F0-9]{4}$/,dm=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,fI=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,pI=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,dI=/^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 Ji(e){if(typeof e!="string")throw new jt(3);var t=aI(e);if(t.match(sI))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(uI)){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(lI))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(cI)){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=dm.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=fI.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var s=pI.exec(t);if(s){var u=parseInt(""+s[1],10),l=parseInt(""+s[2],10)/100,c=parseInt(""+s[3],10)/100,p="rgb("+Ys(u,l,c)+")",d=dm.exec(p);if(!d)throw new jt(4,t,p);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var m=dI.exec(t.substring(0,50));if(m){var g=parseInt(""+m[1],10),v=parseInt(""+m[2],10)/100,h=parseInt(""+m[3],10)/100,b="rgb("+Ys(g,v,h)+")",y=dm.exec(b);if(!y)throw new jt(4,t,b);return{red:parseInt(""+y[1],10),green:parseInt(""+y[2],10),blue:parseInt(""+y[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new jt(5)}function mI(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),s=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,l=o-a,c=s>.5?l/(2-o-a):l/(o+a);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 no(e){return mI(Ji(e))}var hI=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},hm=hI;function Yo(e){var t=e.toString(16);return t.length===1?"0"+t:t}function mm(e){return Yo(Math.round(e*255))}function gI(e,t,r){return hm("#"+mm(e)+mm(t)+mm(r))}function Zl(e,t,r){return Ys(e,t,r,gI)}function vI(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return Zl(e,t,r);if(typeof e=="object"&&t===void 0&&r===void 0)return Zl(e.hue,e.saturation,e.lightness);throw new jt(1)}function yI(e,t,r,n){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?Zl(e,t,r):"rgba("+Ys(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?Zl(e.hue,e.saturation,e.lightness):"rgba("+Ys(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new jt(2)}function gm(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return hm("#"+Yo(e)+Yo(t)+Yo(r));if(typeof e=="object"&&t===void 0&&r===void 0)return hm("#"+Yo(e.red)+Yo(e.green)+Yo(e.blue));throw new jt(6)}function Ql(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Ji(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?gm(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?gm(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new jt(7)}var bI=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},CI=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},xI=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},wI=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function oo(e){if(typeof e!="object")throw new jt(8);if(CI(e))return Ql(e);if(bI(e))return gm(e);if(wI(e))return yI(e);if(xI(e))return vI(e);throw new jt(8)}function L5(e,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?e.apply(this,o):L5(e,t,o)}}function ur(e){return L5(e,e.length,[])}function SI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{hue:r.hue+parseFloat(e)}))}var Lfe=ur(SI);function Zi(e,t,r){return Math.max(e,Math.min(t,r))}function DI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{lightness:Zi(0,1,r.lightness-parseFloat(e))}))}var EI=ur(DI),qe=EI;function PI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{saturation:Zi(0,1,r.saturation-parseFloat(e))}))}var $fe=ur(PI);function TI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{lightness:Zi(0,1,r.lightness+parseFloat(e))}))}var zfe=ur(TI);function AI(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Ji(t),o=Et({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Ji(r),s=Et({},a,{alpha:typeof a.alpha=="number"?a.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,m=1-d,g={red:Math.floor(o.red*d+s.red*m),green:Math.floor(o.green*d+s.green*m),blue:Math.floor(o.blue*d+s.blue*m),alpha:o.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return Ql(g)}var RI=ur(AI),$5=RI;function FI(e,t){if(t==="transparent")return t;var r=Ji(t),n=typeof r.alpha=="number"?r.alpha:1,o=Et({},r,{alpha:Zi(0,1,(n*100+parseFloat(e)*100)/100)});return Ql(o)}var Gfe=ur(FI);function OI(e,t){if(t==="transparent")return t;var r=no(t);return oo(Et({},r,{saturation:Zi(0,1,r.saturation+parseFloat(e))}))}var Hfe=ur(OI);function BI(e,t){return t==="transparent"?t:oo(Et({},no(t),{hue:parseFloat(e)}))}var jfe=ur(BI);function MI(e,t){return t==="transparent"?t:oo(Et({},no(t),{lightness:parseFloat(e)}))}var _fe=ur(MI);function II(e,t){return t==="transparent"?t:oo(Et({},no(t),{saturation:parseFloat(e)}))}var Wfe=ur(II);function kI(e,t){return t==="transparent"?t:$5(parseFloat(e),"rgb(0, 0, 0)",t)}var Ufe=ur(kI);function NI(e,t){return t==="transparent"?t:$5(parseFloat(e),"rgb(255, 255, 255)",t)}var Kfe=ur(NI);function VI(e,t){if(t==="transparent")return t;var r=Ji(t),n=typeof r.alpha=="number"?r.alpha:1,o=Et({},r,{alpha:Zi(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Ql(o)}var LI=ur(VI),_t=LI;var Js=e=>{let[r,n]=V5(e);return`@media (max-width: ${Math.max(r-.0025,0)}${n})`},$I=({theme:e})=>`@media (min-width: ${e.breakpoint.xs})`,zI=({theme:e})=>`@media (min-width: ${e.breakpoint.sm})`,GI=({theme:e})=>`@media (min-width: ${e.breakpoint.md})`,HI=({theme:e})=>`@media (min-width: ${e.breakpoint.lg})`,jI=({theme:e})=>`@media (min-width: ${e.breakpoint.xl})`,_I=({theme:e})=>Js(e.breakpoint.xs),WI=({theme:e})=>Js(e.breakpoint.sm),UI=({theme:e})=>Js(e.breakpoint.md),KI=({theme:e})=>Js(e.breakpoint.lg),qI=({theme:e})=>Js(e.breakpoint.xl),Me={xsAndUp:$I,smAndUp:zI,mdAndUp:GI,lgAndUp:HI,xlAndUp:jI,xsAndDown:_I,smAndDown:WI,mdAndDown:UI,lgAndDown:KI,xlAndDown:qI};i();i();var xn=e=>e!=null&&(Object.getPrototypeOf(e)===null||e.constructor===Object);i();var vm=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])&&vm(e[t])}),e);i();var Zs=(e,...t)=>{if(!t.length)return e;let r={...e};return t.forEach(n=>{xn(n)&&Object.keys(n).forEach(o=>{xn(n[o])?r[o]===null||r[o]===void 0?r[o]={...n[o]}:r[o]=Zs(r[o],n[o]):r[o]=n[o]})}),r};i();var ec=(e,t)=>t.reduce((r,n)=>(Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]),r),{});var hpe={isObject:xn,deepFreeze:vm,merge:Zs,selectKeys:ec};i();i();var z5=(e="")=>e.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g,(t,r)=>+t==0?"":r===0?t.toLowerCase():t.toUpperCase());i();var wn=e=>e==="true"||e==="false"?e==="true":!!e;i();var lr=e=>e==null?"":String(e);i();i();var Qi=e=>typeof e=="string"||e instanceof String;var G5=e=>{if(!Qi(e))return!1;try{let t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}};i();var io=e=>{let t=/^(?:\w+:)?\/\/(\S+)$/,r=/^localhost[:?\d]*(?:[^:?\d]\S*)?$/,n=/^[^\s.]+\.\S{2,}$/;if(!Qi(e))return!1;let o=t.exec(e);if(!o)return!1;let a=o[1];return a===void 0||!a?!1:r.test(a)||n.test(a)};i();var H5=(e="")=>(e[0]?.toLowerCase()??"")+e.slice(1);i();var j5=e=>e.replace(/\n/g,"");i();var _5=e=>(e||"").replace(/\.[^/.]{1,4}$/,"");i();var W5=(e,t)=>e.length<=t?e:`${e.slice(0,t-3)}...`;i();var U5=(e="")=>(e[0]?.toUpperCase()??"")+e.slice(1);var Qpe={camelCase:z5,coerceToBoolean:wn,coerceToString:lr,isHttpUrl:G5,isString:Qi,isUrl:io,lowerFirst:H5,removeNewlines:j5,stripExtension:_5,truncate:W5,upperFirst:U5};i();i();i();import Z5,{Component as ik}from"react";i();import eu,{Component as QI}from"react";i();import XI from"react";var YI={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},K5=function(t){var r=t.message,n=t["aria-live"];return XI.createElement("div",{style:YI,role:"log","aria-live":n},r||"")};K5.propTypes={};var Qs=K5;function JI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q5(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 ZI(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 X5=function(e){ZI(t,e);function t(){var r,n,o;JI(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(r=(n=q5(this,e.call.apply(e,[this].concat(s))),n),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},r),q5(n,o)}return t.getDerivedStateFromProps=function(n,o){var a=o.oldPolitemessage,s=o.oldPoliteMessageId,u=o.oldAssertiveMessage,l=o.oldAssertiveMessageId,c=n.politeMessage,p=n.politeMessageId,d=n.assertiveMessage,m=n.assertiveMessageId;return a!==c||s!==p?{politeMessage1:o.setAlternatePolite?"":c,politeMessage2:o.setAlternatePolite?c:"",oldPolitemessage:c,oldPoliteMessageId:p,setAlternatePolite:!o.setAlternatePolite}:u!==d||l!==m?{assertiveMessage1:o.setAlternateAssertive?"":d,assertiveMessage2:o.setAlternateAssertive?d:"",oldAssertiveMessage:d,oldAssertiveMessageId:m,setAlternateAssertive:!o.setAlternateAssertive}:null},t.prototype.render=function(){var n=this.state,o=n.assertiveMessage1,a=n.assertiveMessage2,s=n.politeMessage1,u=n.politeMessage2;return eu.createElement("div",null,eu.createElement(Qs,{"aria-live":"assertive",message:o}),eu.createElement(Qs,{"aria-live":"assertive",message:a}),eu.createElement(Qs,{"aria-live":"polite",message:s}),eu.createElement(Qs,{"aria-live":"polite",message:u}))},t}(QI);X5.propTypes={};var Y5=X5;i();import ek from"react";var tk=ek.createContext({announceAssertive:J5,announcePolite:J5});function J5(){console.warn("Announcement failed, LiveAnnouncer context is missing")}var ea=tk;function rk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nk(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 ok(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 ak=function(e){ok(t,e);function t(r){rk(this,t);var n=nk(this,e.call(this,r));return n.announcePolite=function(o,a){n.setState({announcePoliteMessage:o,politeMessageId:a||""})},n.announceAssertive=function(o,a){n.setState({announceAssertiveMessage:o,assertiveMessageId:a||""})},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,a=n.politeMessageId,s=n.announceAssertiveMessage,u=n.assertiveMessageId,l=n.updateFunctions;return Z5.createElement(ea.Provider,{value:l},this.props.children,Z5.createElement(Y5,{assertiveMessage:s,assertiveMessageId:u,politeMessage:o,politeMessageId:a}))},t}(ik),ym=ak;i();import l4 from"react";i();var wm=U(i4());import{Component as dk}from"react";function fk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a4(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 pk(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 s4=function(e){pk(t,e);function t(){var r,n,o;fk(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return o=(r=(n=a4(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,m=l.announcePolite;p==="assertive"&&d(c||"",(0,wm.default)()),p==="polite"&&m(c||"",(0,wm.default)())},r),a4(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,a=n.announceAssertive,s=n.announcePolite;(o===!0||o==="true")&&(a(""),s(""))},t.prototype.render=function(){return null},t}(dk);s4.propTypes={};var u4=s4;var mk=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},c4=function(t){return l4.createElement(ea.Consumer,null,function(r){return l4.createElement(u4,mk({},r,t))})};c4.propTypes={};var ru=c4;i();import hk from"react";var gk=function(t){var r=t.children;return hk.createElement(ea.Consumer,null,function(n){return r(n)})};gk.propTypes={};i();i();i();function f4(e){if(typeof Proxy>"u")return e;let t=new Map,r=(...n)=>e(...n);return new Proxy(r,{get:(n,o)=>o==="create"?e:(t.has(o)||t.set(o,e(o)),t.get(o))})}i();i();i();i();function ao(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}i();i();var nu=e=>Array.isArray(e);i();function Sm(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}i();function Sn(e){return typeof e=="string"||Array.isArray(e)}i();i();function p4(e){let t=[{},{}];return e?.values.forEach((r,n)=>{t[0][n]=r.get(),t[1][n]=r.getVelocity()}),t}function ta(e,t,r,n){if(typeof t=="function"){let[o,a]=p4(n);t=t(r!==void 0?r:e.custom,o,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[o,a]=p4(n);t=t(r!==void 0?r:e.custom,o,a)}return t}function so(e,t,r){let n=e.getProps();return ta(n,t,r!==void 0?r:n.custom,e)}i();var tc=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ou=["initial",...tc];i();i();i();var uo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wt=new Set(uo);i();i();var Pt=e=>e*1e3,Ut=e=>e/1e3;i();var vk={type:"spring",stiffness:500,damping:25,restSpeed:10},yk=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),bk={type:"keyframes",duration:.8},Ck={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},d4=(e,{keyframes:t})=>t.length>2?bk:Wt.has(e)?e.startsWith("scale")?yk(t[1]):vk:Ck;i();function ra(e,t){return e?e[t]||e.default||e:void 0}i();var Dn={skipAnimations:!1,useManualTiming:!1};i();var rc={current:!1};i();var xk=e=>e!==null;function lo(e,{repeat:t,repeatType:r="loop"},n){let o=e.filter(xk),a=t&&r!=="loop"&&t%2===1?0:o.length-1;return!a||n===void 0?o[a]:n}i();i();var Ae=e=>e;i();i();function m4(e){let t=new Set,r=new Set,n=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function u(c){a.has(c)&&(l.schedule(c),e()),c(s)}let l={schedule:(c,p=!1,d=!1)=>{let g=d&&n?t:r;return p&&a.add(c),g.has(c)||g.add(c),c},cancel:c=>{r.delete(c),a.delete(c)},process:c=>{if(s=c,n){o=!0;return}n=!0,[t,r]=[r,t],r.clear(),t.forEach(u),n=!1,o&&(o=!1,l.process(c))}};return l}var nc=["read","resolveKeyframes","update","preRender","render","postRender"],wk=40;function oc(e,t){let r=!1,n=!0,o={delta:0,timestamp:0,isProcessing:!1},a=()=>r=!0,s=nc.reduce((y,x)=>(y[x]=m4(a),y),{}),{read:u,resolveKeyframes:l,update:c,preRender:p,render:d,postRender:m}=s,g=()=>{let y=Dn.useManualTiming?o.timestamp:performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(y-o.timestamp,wk),1),o.timestamp=y,o.isProcessing=!0,u.process(o),l.process(o),c.process(o),p.process(o),d.process(o),m.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(g))},v=()=>{r=!0,n=!0,o.isProcessing||e(g)};return{schedule:nc.reduce((y,x)=>{let w=s[x];return y[x]=(S,E=!1,D=!1)=>(r||v(),w.schedule(S,E,D)),y},{}),cancel:y=>{for(let x=0;x<nc.length;x++)s[nc[x]].cancel(y)},state:o,steps:s}}var{schedule:pe,cancel:cr,state:Xe,steps:ic}=oc(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ae,!0);i();i();i();i();var h4=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,Sk=1e-7,Dk=12;function Ek(e,t,r,n,o){let a,s,u=0;do s=t+(r-t)/2,a=h4(s,n,o)-e,a>0?r=s:t=s;while(Math.abs(a)>Sk&&++u<Dk);return s}function co(e,t,r,n){if(e===t&&r===n)return Ae;let o=a=>Ek(a,0,1,e,r);return a=>a===0||a===1?a:h4(o(a),t,n)}i();var ac=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;i();var sc=e=>t=>1-e(1-t);var Dm=co(.33,1.53,.69,.99),iu=sc(Dm),uc=ac(iu);var lc=e=>(e*=2)<1?.5*iu(e):.5*(2-Math.pow(2,-10*(e-1)));i();var cc=e=>1-Math.sin(Math.acos(e)),fc=sc(cc),pc=ac(cc);i();i();i();var dc=e=>/^0[^.\s]+$/u.test(e);function g4(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||dc(e):!0}i();i();var fo=Ae,Lr=Ae;i();var mc=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);i();var v4=e=>t=>typeof t=="string"&&t.startsWith(e),hc=v4("--"),Pk=v4("var(--"),na=e=>Pk(e)?Tk.test(e.split("/*")[0].trim()):!1,Tk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;var Ak=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Rk(e){let t=Ak.exec(e);if(!t)return[,];let[,r,n,o]=t;return[`--${r??n}`,o]}var Fk=4;function Em(e,t,r=1){Lr(r<=Fk,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=Rk(e);if(!n)return;let a=window.getComputedStyle(t).getPropertyValue(n);if(a){let s=a.trim();return mc(s)?parseFloat(s):s}return na(o)?Em(o,t,r+1):o}i();i();i();var It=(e,t,r)=>r>t?t:r<e?e:r;var Yr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},En={...Yr,transform:e=>It(0,1,e)},au={...Yr,default:1};i();var su=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Jr=su("deg"),kt=su("%"),ne=su("px"),y4=su("vh"),b4=su("vw"),Pm={...kt,parse:e=>kt.parse(e)/100,transform:e=>kt.transform(e*100)};var w4=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Tm=e=>e===Yr||e===ne,C4=(e,t)=>parseFloat(e.split(", ")[t]),x4=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/u);if(o)return C4(o[1],t);{let a=n.match(/^matrix\((.+)\)$/u);return a?C4(a[1],e):0}},Ok=new Set(["x","y","z"]),Bk=uo.filter(e=>!Ok.has(e));function S4(e){let t=[];return Bk.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t}var Jo={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:x4(4,13),y:x4(5,14)};Jo.translateX=Jo.x;Jo.translateY=Jo.y;i();i();var gc=e=>t=>t.test(e);i();var D4={test:e=>e==="auto",parse:e=>e};var Am=[Yr,ne,kt,Jr,b4,y4,D4],Rm=e=>Am.find(gc(e));i();var Zo=new Set,Fm=!1,Om=!1;function E4(){if(Om){let e=Array.from(Zo).filter(n=>n.needsMeasurement),t=new Set(e.map(n=>n.element)),r=new Map;t.forEach(n=>{let o=S4(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(([a,s])=>{var u;(u=n.getValue(a))===null||u===void 0||u.set(s)})}),e.forEach(n=>n.measureEndState()),e.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}Om=!1,Fm=!1,Zo.forEach(e=>e.complete()),Zo.clear()}function P4(){Zo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Om=!0)})}function T4(){P4(),E4()}var po=class{constructor(t,r,n,o,a,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=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Zo.add(this),Fm||(Fm=!0,pe.read(P4),pe.resolveKeyframes(E4))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:r,element:n,motionValue:o}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===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[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Zo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Zo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};i();i();i();i();i();i();var mo=e=>Math.round(e*1e5)/1e5;i();i();var oa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;i();function A4(e){return e==null}i();var R4=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;var ia=(e,t)=>r=>!!(typeof r=="string"&&R4.test(r)&&r.startsWith(e)||t&&!A4(r)&&Object.prototype.hasOwnProperty.call(r,t)),vc=(e,t,r)=>n=>{if(typeof n!="string")return n;let[o,a,s,u]=n.match(oa);return{[e]:parseFloat(o),[t]:parseFloat(a),[r]:parseFloat(s),alpha:u!==void 0?parseFloat(u):1}};var Mk=e=>It(0,255,e),Bm={...Yr,transform:e=>Math.round(Mk(e))},Zr={test:ia("rgb","red"),parse:vc("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Bm.transform(e)+", "+Bm.transform(t)+", "+Bm.transform(r)+", "+mo(En.transform(n))+")"};function Ik(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 uu={test:ia("#"),parse:Ik,transform:Zr.transform};i();var ho={test:ia("hsl","hue"),parse:vc("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+kt.transform(mo(t))+", "+kt.transform(mo(r))+", "+mo(En.transform(n))+")"};var et={test:e=>Zr.test(e)||uu.test(e)||ho.test(e),parse:e=>Zr.test(e)?Zr.parse(e):ho.test(e)?ho.parse(e):uu.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Zr.transform(e):ho.transform(e)};i();var F4=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kk(e){var t,r;return isNaN(e)&&typeof e=="string"&&(((t=e.match(oa))===null||t===void 0?void 0:t.length)||0)+(((r=e.match(F4))===null||r===void 0?void 0:r.length)||0)>0}var B4="number",M4="color",Nk="var",Vk="var(",O4="${}",Lk=/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 Qo(e){let t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[],a=0,u=t.replace(Lk,l=>(et.test(l)?(n.color.push(a),o.push(M4),r.push(et.parse(l))):l.startsWith(Vk)?(n.var.push(a),o.push(Nk),r.push(l)):(n.number.push(a),o.push(B4),r.push(parseFloat(l))),++a,O4)).split(O4);return{values:r,split:u,indexes:n,types:o}}function I4(e){return Qo(e).values}function k4(e){let{split:t,types:r}=Qo(e),n=t.length;return o=>{let a="";for(let s=0;s<n;s++)if(a+=t[s],o[s]!==void 0){let u=r[s];u===B4?a+=mo(o[s]):u===M4?a+=et.transform(o[s]):a+=o[s]}return a}}var $k=e=>typeof e=="number"?0:e;function zk(e){let t=I4(e);return k4(e)(t.map($k))}var Nt={test:kk,parse:I4,createTransformer:k4,getAnimatableNone:zk};i();i();var Gk=new Set(["brightness","contrast","saturate","opacity"]);function Hk(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(oa)||[];if(!n)return e;let o=r.replace(n,""),a=Gk.has(t)?1:0;return n!==r&&(a*=100),t+"("+a+o+")"}var jk=/\b([a-z-]*)\(.*?\)/gu,lu={...Nt,getAnimatableNone:e=>{let t=e.match(jk);return t?t.map(Hk).join(" "):e}};i();i();i();var N4={borderWidth:ne,borderTopWidth:ne,borderRightWidth:ne,borderBottomWidth:ne,borderLeftWidth:ne,borderRadius:ne,radius:ne,borderTopLeftRadius:ne,borderTopRightRadius:ne,borderBottomRightRadius:ne,borderBottomLeftRadius:ne,width:ne,maxWidth:ne,height:ne,maxHeight:ne,top:ne,right:ne,bottom:ne,left:ne,padding:ne,paddingTop:ne,paddingRight:ne,paddingBottom:ne,paddingLeft:ne,margin:ne,marginTop:ne,marginRight:ne,marginBottom:ne,marginLeft:ne,backgroundPositionX:ne,backgroundPositionY:ne};i();var V4={rotate:Jr,rotateX:Jr,rotateY:Jr,rotateZ:Jr,scale:au,scaleX:au,scaleY:au,scaleZ:au,skew:Jr,skewX:Jr,skewY:Jr,distance:ne,translateX:ne,translateY:ne,translateZ:ne,x:ne,y:ne,z:ne,perspective:ne,transformPerspective:ne,opacity:En,originX:Pm,originY:Pm,originZ:ne};i();var Mm={...Yr,transform:Math.round};var aa={...N4,...V4,zIndex:Mm,size:ne,fillOpacity:En,strokeOpacity:En,numOctaves:Mm};var _k={...aa,color:et,backgroundColor:et,outlineColor:et,fill:et,stroke:et,borderColor:et,borderTopColor:et,borderRightColor:et,borderBottomColor:et,borderLeftColor:et,filter:lu,WebkitFilter:lu},sa=e=>_k[e];function yc(e,t){let r=sa(e);return r!==lu&&(r=Nt),r.getAnimatableNone?r.getAnimatableNone(t):void 0}var Wk=new Set(["auto","none","0"]);function L4(e,t,r){let n=0,o;for(;n<e.length&&!o;){let a=e[n];typeof a=="string"&&!Wk.has(a)&&Qo(a).values.length&&(o=e[n]),n++}if(o&&r)for(let a of t)e[a]=yc(r,o)}var ua=class extends po{constructor(t,r,n,o,a){super(t,r,n,o,a,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:r,name:n}=this;if(!r||!r.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),na(c))){let p=Em(c,r.current);p!==void 0&&(t[l]=p),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!w4.has(n)||t.length!==2)return;let[o,a]=t,s=Rm(o),u=Rm(a);if(s!==u)if(Tm(s)&&Tm(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++)g4(t[o])&&n.push(o);n.length&&L4(t,n,r)}measureInitialState(){let{element:t,unresolvedKeyframes:r,name:n}=this;if(!t||!t.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Jo[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||!r.current)return;let a=r.getValue(n);a&&a.jump(this.measuredOrigin,!1);let s=o.length-1,u=o[s];o[s]=Jo[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()}};i();function la(e){return typeof e=="function"}i();i();var bc;function Uk(){bc=void 0}var Tt={now:()=>(bc===void 0&&Tt.set(Xe.isProcessing||Dn.useManualTiming?Xe.timestamp:performance.now()),bc),set:e=>{bc=e,queueMicrotask(Uk)}};i();i();var Im=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Nt.test(e)||e==="0")&&!e.startsWith("url("));function Kk(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 $4(e,t,r,n){let o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;let a=e[e.length-1],s=Im(o,t),u=Im(a,t);return fo(s===u,`You are trying to animate ${t} from "${o}" to "${a}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${a} via the \`style\` property.`),!s||!u?!1:Kk(e)||(r==="spring"||la(r))&&n}var qk=40,ca=class{constructor({autoplay:t=!0,delay:r=0,type:n="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:s="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Tt.now(),this.options={autoplay:t,delay:r,type:n,repeat:o,repeatDelay:a,repeatType:s,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>qk?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&T4(),this._resolved}onKeyframesResolved(t,r){this.resolvedAt=Tt.now(),this.hasAttemptedResolve=!0;let{name:n,type:o,velocity:a,delay:s,onComplete:u,onUpdate:l,isGenerator:c}=this.options;if(!c&&!$4(t,n,o,a))if(rc.current||!s){l?.(lo(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)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};i();i();i();i();function Cc(e,t){return t?e*(1e3/t):0}var Xk=5;function xc(e,t,r){let n=Math.max(t-Xk,0);return Cc(r-e(n),t-n)}i();var km=.001,Yk=.01,z4=10,Jk=.05,Zk=1;function G4({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,a;fo(e<=Pt(z4),"Spring duration must be 10 seconds or less");let s=1-t;s=It(Jk,Zk,s),e=It(Yk,z4,Ut(e)),s<1?(o=c=>{let p=c*s,d=p*e,m=p-r,g=wc(c,s),v=Math.exp(-d);return km-m/g*v},a=c=>{let d=c*s*e,m=d*r+r,g=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),h=wc(Math.pow(c,2),s);return(-o(c)+km>0?-1:1)*((m-g)*v)/h}):(o=c=>{let p=Math.exp(-c*e),d=(c-r)*e+1;return-km+p*d},a=c=>{let p=Math.exp(-c*e),d=(r-c)*(e*e);return p*d});let u=5/e,l=eN(o,a,u);if(e=Pt(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 Qk=12;function eN(e,t,r){let n=r;for(let o=1;o<Qk;o++)n=n-e(n)/t(n);return n}function wc(e,t){return e*Math.sqrt(1-t*t)}var tN=["duration","bounce"],rN=["stiffness","damping","mass"];function H4(e,t){return t.some(r=>e[r]!==void 0)}function nN(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!H4(e,rN)&&H4(e,tN)){let r=G4(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}function Sc({keyframes:e,restDelta:t,restSpeed:r,...n}){let o=e[0],a=e[e.length-1],s={done:!1,value:o},{stiffness:u,damping:l,mass:c,duration:p,velocity:d,isResolvedFromDuration:m}=nN({...n,velocity:-Ut(n.velocity||0)}),g=d||0,v=l/(2*Math.sqrt(u*c)),h=a-o,b=Ut(Math.sqrt(u/c)),y=Math.abs(h)<5;r||(r=y?.01:2),t||(t=y?.005:.5);let x;if(v<1){let w=wc(b,v);x=S=>{let E=Math.exp(-v*b*S);return a-E*((g+v*b*h)/w*Math.sin(w*S)+h*Math.cos(w*S))}}else if(v===1)x=w=>a-Math.exp(-b*w)*(h+(g+b*h)*w);else{let w=b*Math.sqrt(v*v-1);x=S=>{let E=Math.exp(-v*b*S),D=Math.min(w*S,300);return a-E*((g+v*b*h)*Math.sinh(D)+w*h*Math.cosh(D))/w}}return{calculatedDuration:m&&p||null,next:w=>{let S=x(w);if(m)s.done=w>=p;else{let E=0;v<1&&(E=w===0?Pt(g):xc(x,w,S));let D=Math.abs(E)<=r,P=Math.abs(a-S)<=t;s.done=D&&P}return s.value=s.done?a:S,s}}}i();function Nm({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:a=500,modifyTarget:s,min:u,max:l,restDelta:c=.5,restSpeed:p}){let d=e[0],m={done:!1,value:d},g=R=>u!==void 0&&R<u||l!==void 0&&R>l,v=R=>u===void 0?l:l===void 0||Math.abs(u-R)<Math.abs(l-R)?u:l,h=r*t,b=d+h,y=s===void 0?b:s(b);y!==b&&(h=y-d);let x=R=>-h*Math.exp(-R/n),w=R=>y+x(R),S=R=>{let F=x(R),M=w(R);m.done=Math.abs(F)<=c,m.value=m.done?y:M},E,D,P=R=>{g(m.value)&&(E=R,D=Sc({keyframes:[m.value,v(m.value)],velocity:xc(w,R,m.value),damping:o,stiffness:a,restDelta:c,restSpeed:p}))};return P(0),{calculatedDuration:null,next:R=>{let F=!1;return!D&&E===void 0&&(F=!0,S(R),P(R)),E!==void 0&&R>=E?D.next(R-E):(!F&&S(R),m)}}}i();i();var j4=co(.42,0,1,1),_4=co(0,0,.58,1),Dc=co(.42,0,.58,1);i();var W4=e=>Array.isArray(e)&&typeof e[0]!="number";i();i();var cu=e=>Array.isArray(e)&&typeof e[0]=="number";var U4={linear:Ae,easeIn:j4,easeInOut:Dc,easeOut:_4,circIn:cc,circInOut:pc,circOut:fc,backIn:iu,backInOut:uc,backOut:Dm,anticipate:lc},Vm=e=>{if(cu(e)){Lr(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return co(t,r,n,o)}else if(typeof e=="string")return Lr(U4[e]!==void 0,`Invalid easing type '${e}'`),U4[e];return e};i();i();var oN=(e,t)=>r=>t(e(r)),At=(...e)=>e.reduce(oN);i();var $r=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};i();i();i();var be=(e,t,r)=>e+(t-e)*r;i();i();function Lm(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 K4({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,a=0,s=0;if(!t)o=a=s=r;else{let u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;o=Lm(l,u,e+1/3),a=Lm(l,u,e),s=Lm(l,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:n}}i();function fa(e,t){return r=>r>0?t:e}var $m=(e,t,r)=>{let n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},iN=[uu,Zr,ho],aN=e=>iN.find(t=>t.test(e));function q4(e){let t=aN(e);if(fo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===ho&&(r=K4(r)),r}var zm=(e,t)=>{let r=q4(e),n=q4(t);if(!r||!n)return fa(e,t);let o={...r};return a=>(o.red=$m(r.red,n.red,a),o.green=$m(r.green,n.green,a),o.blue=$m(r.blue,n.blue,a),o.alpha=be(r.alpha,n.alpha,a),Zr.transform(o))};i();var Ec=new Set(["none","hidden"]);function X4(e,t){return Ec.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function sN(e,t){return r=>be(e,t,r)}function Pc(e){return typeof e=="number"?sN:typeof e=="string"?na(e)?fa:et.test(e)?zm:cN:Array.isArray(e)?Y4:typeof e=="object"?et.test(e)?zm:uN:fa}function Y4(e,t){let r=[...e],n=r.length,o=e.map((a,s)=>Pc(a)(a,t[s]));return a=>{for(let s=0;s<n;s++)r[s]=o[s](a);return r}}function uN(e,t){let r={...e,...t},n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=Pc(e[o])(e[o],t[o]));return o=>{for(let a in n)r[a]=n[a](o);return r}}function lN(e,t){var r;let n=[],o={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let s=t.types[a],u=e.indexes[s][o[s]],l=(r=e.values[u])!==null&&r!==void 0?r:0;n[a]=l,o[s]++}return n}var cN=(e,t)=>{let r=Nt.createTransformer(t),n=Qo(e),o=Qo(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?Ec.has(e)&&!o.values.length||Ec.has(t)&&!n.values.length?X4(e,t):At(Y4(lN(n,o),o.values),r):(fo(!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.`),fa(e,t))};function Tc(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?be(e,t,r):Pc(e)(e,t)}function fN(e,t,r){let n=[],o=r||Tc,a=e.length-1;for(let s=0;s<a;s++){let u=o(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Ae:t;u=At(l,u)}n.push(u)}return n}function J4(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let a=e.length;if(Lr(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&e[0]===e[1])return()=>t[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=fN(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=$r(e[p],e[p+1],c);return s[p](d)};return r?c=>l(It(e[0],e[a-1],c)):l}i();i();function Z4(e,t){let r=e[e.length-1];for(let n=1;n<=t;n++){let o=$r(0,t,n);e.push(be(r,1,o))}}function Q4(e){let t=[0];return Z4(t,e.length-1),t}i();function ev(e,t){return e.map(r=>r*t)}function pN(e,t){return e.map(()=>t||Dc).splice(0,e.length-1)}function fu({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){let o=W4(n)?n.map(Vm):Vm(n),a={done:!1,value:t[0]},s=ev(r&&r.length===t.length?r:Q4(t),e),u=J4(s,t,{ease:Array.isArray(o)?o:pN(t,o)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}i();function tv(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}i();var rv=e=>{let t=({timestamp:r})=>e(r);return{start:()=>pe.update(t,!0),stop:()=>cr(t),now:()=>Xe.isProcessing?Xe.timestamp:Tt.now()}};var dN={decay:Nm,inertia:Nm,tween:fu,keyframes:fu,spring:Sc},mN=e=>e/100,ei=class extends ca{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:l}=this.options;l&&l()};let{name:r,motionValue:n,element:o,keyframes:a}=this.options,s=o?.KeyframeResolver||po,u=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(a,u,r,n,o),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let{type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:a,velocity:s=0}=this.options,u=la(r)?r:dN[r]||fu,l,c;u!==fu&&typeof t[0]!="number"&&(l=At(mN,Tc(t[0],t[1])),t=[0,100]);let p=u({...this.options,keyframes:t});a==="mirror"&&(c=u({...this.options,keyframes:[...t].reverse(),velocity:-s})),p.calculatedDuration===null&&(p.calculatedDuration=tv(p));let{calculatedDuration:d}=p,m=d+o,g=m*(n+1)-o;return{generator:p,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:m,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:R}=this.options;return{done:!0,value:R[R.length-1]}}let{finalKeyframe:o,generator:a,mirroredGenerator:s,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:c,totalDuration:p,resolvedDuration:d}=n;if(this.startTime===null)return a.next(0);let{delay:m,repeat:g,repeatType:v,repeatDelay:h,onUpdate:b}=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 y=this.currentTime-m*(this.speed>=0?1:-1),x=this.speed>=0?y<0:y>p;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=p);let w=this.currentTime,S=a;if(g){let R=Math.min(this.currentTime,p)/d,F=Math.floor(R),M=R%1;!M&&R>=1&&(M=1),M===1&&F--,F=Math.min(F,g+1),!!(F%2)&&(v==="reverse"?(M=1-M,h&&(M-=h/d)):v==="mirror"&&(S=s)),w=It(0,1,M)*d}let E=x?{done:!1,value:l[0]}:S.next(w);u&&(E.value=u(E.value));let{done:D}=E;!x&&c!==null&&(D=this.speed>=0?this.currentTime>=p:this.currentTime<=0);let P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&D);return P&&o!==void 0&&(E.value=lo(l,this.options,o)),b&&b(E.value),P&&this.finish(),E}get duration(){let{resolved:t}=this;return t?Ut(t.calculatedDuration):0}get time(){return Ut(this.currentTime)}set time(t){t=Pt(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=Ut(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=rv,onPlay:r,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),r&&r();let o=this.driver.now();this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=o):this.startTime=n??this.calcStartTime(),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)}};i();var nv=new Set(["opacity","clipPath","filter","transform"]);i();i();i();var hN=10,ov=(e,t)=>{let r="",n=Math.max(Math.round(t/hN),2);for(let o=0;o<n;o++)r+=e($r(0,n-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};i();i();i();function pa(e){let t;return()=>(t===void 0&&(t=e()),t)}i();var iv={linearEasing:void 0};function av(e,t){let r=pa(e);return()=>{var n;return(n=iv[t])!==null&&n!==void 0?n:r()}}var da=av(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function Hm(e){return!!(typeof e=="function"&&da()||!e||typeof e=="string"&&(e in Gm||da())||cu(e)||Array.isArray(e)&&e.every(Hm))}var pu=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Gm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:pu([0,.65,.55,1]),circOut:pu([.55,0,1,.45]),backIn:pu([.31,.01,.66,-.59]),backOut:pu([.33,1.53,.69,.99])};function jm(e,t){if(e)return typeof e=="function"&&da()?ov(e,t):cu(e)?pu(e):Array.isArray(e)?e.map(r=>jm(r,t)||Gm.easeOut):Gm[e]}function sv(e,t,r,{delay:n=0,duration:o=300,repeat:a=0,repeatType:s="loop",ease:u="easeInOut",times:l}={}){let c={[t]:r};l&&(c.offset=l);let p=jm(u,o);return Array.isArray(p)&&(c.easing=p),e.animate(c,{delay:n,duration:o,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}i();function _m(e,t){e.timeline=t,e.onfinish=null}i();var uv=pa(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));var Ac=10,gN=2e4;function vN(e){return la(e.type)||e.type==="spring"||!Hm(e.ease)}function yN(e,t){let r=new ei({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:e[0]},o=[],a=0;for(;!n.done&&a<gN;)n=r.sample(a),o.push(n.value),a+=Ac;return{times:void 0,keyframes:o,duration:a-Ac,ease:"linear"}}var lv={anticipate:lc,backInOut:uc,circInOut:pc};function bN(e){return e in lv}var du=class extends ca{constructor(t){super(t);let{name:r,motionValue:n,element:o,keyframes:a}=this.options;this.resolver=new ua(a,(s,u)=>this.onKeyframesResolved(s,u),r,n,o),this.resolver.scheduleResolve()}initPlayback(t,r){var n;let{duration:o=300,times:a,ease:s,type:u,motionValue:l,name:c,startTime:p}=this.options;if(!(!((n=l.owner)===null||n===void 0)&&n.current))return!1;if(typeof s=="string"&&da()&&bN(s)&&(s=lv[s]),vN(this.options)){let{onComplete:m,onUpdate:g,motionValue:v,element:h,...b}=this.options,y=yN(t,b);t=y.keyframes,t.length===1&&(t[1]=t[0]),o=y.duration,a=y.times,s=y.ease,u="keyframes"}let d=sv(l.owner.current,c,t,{...this.options,duration:o,times:a,ease:s});return d.startTime=p??this.calcStartTime(),this.pendingTimeline?(_m(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:m}=this.options;l.set(lo(t,this.options,r)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:o,times:a,type:u,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:r}=t;return Ut(r)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:r}=t;return Ut(r.currentTime||0)}set time(t){let{resolved:r}=this;if(!r)return;let{animation:n}=r;n.currentTime=Pt(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}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:r}=t;return r.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{let{resolved:r}=this;if(!r)return Ae;let{animation:n}=r;_m(n,t)}return Ae}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;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:r,keyframes:n,duration:o,type:a,ease:s,times:u}=t;if(r.playState==="idle"||r.playState==="finished")return;if(this.time){let{motionValue:c,onUpdate:p,onComplete:d,element:m,...g}=this.options,v=new ei({...g,keyframes:n,duration:o,type:a,ease:s,times:u,isGenerator:!0}),h=Pt(this.time);c.setWithVelocity(v.sample(h-Ac).value,v.sample(h).value,Ac)}let{onStop:l}=this.options;l&&l(),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:a,damping:s,type:u}=t;return uv()&&n&&nv.has(n)&&r&&r.owner&&r.owner.current instanceof HTMLElement&&!r.owner.getProps().onUpdate&&!o&&a!=="mirror"&&s!==0&&u!=="inertia"}};i();i();var cv=pa(()=>window.ScrollTimeline!==void 0);var Rc=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,r){let n=this.animations.map(o=>cv()&&o.attachTimeline?o.attachTimeline(t):r(o));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].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 startTime(){return this.getAll("startTime")}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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};i();function fv({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:a,repeatType:s,repeatDelay:u,from:l,elapsed:c,...p}){return!!Object.keys(p).length}var ma=(e,t,r,n={},o,a)=>s=>{let u=ra(n,e)||{},l=u.delay||n.delay||0,{elapsed:c=0}=n;c=c-Pt(l);let p={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-c,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{s(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:o};fv(u)||(p={...p,...d4(e,p)}),p.duration&&(p.duration=Pt(p.duration)),p.repeatDelay&&(p.repeatDelay=Pt(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)),(rc.current||Dn.skipAnimations)&&(d=!0,p.duration=0,p.delay=0),d&&!a&&t.get()!==void 0){let m=lo(p.keyframes,u);if(m!==void 0)return pe.update(()=>{p.onUpdate(m),p.onComplete()}),new Rc([])}return!a&&du.supports(p)?new du(p):new ei(p)};i();i();var pv=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),dv=e=>nu(e)?e[e.length-1]||0:e;i();i();i();function ha(e,t){e.indexOf(t)===-1&&e.push(t)}function ga(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var go=class{constructor(){this.subscriptions=[]}add(t){return ha(this.subscriptions,t),()=>ga(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 a=0;a<o;a++){let s=this.subscriptions[a];s&&s(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var mv=30,CN=e=>!isNaN(parseFloat(e)),hv={current:void 0},Wm=class{constructor(t,r={}){this.version="11.11.17",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,o=!0)=>{let a=Tt.now();this.updatedAt!==a&&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=Tt.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CN(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 go);let n=this.events[t].add(r);return t==="change"?()=>{n(),pe.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 hv.current&&hv.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let t=Tt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>mv)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,mv);return Cc(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 Pn(e,t){return new Wm(e,t)}function xN(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Pn(r))}function gv(e,t){let r=so(e,t),{transitionEnd:n={},transition:o={},...a}=r||{};a={...a,...n};for(let s in a){let u=dv(a[s]);xN(e,s,u)}}i();i();i();var va=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase();var wN="framerAppearId",Fc="data-"+va(wN);function Oc(e){return e.props[Fc]}i();i();i();var Ie=e=>!!(e&&e.getVelocity);function vv(e){return!!(Ie(e)&&e.add)}function mu(e,t){let r=e.getValue("willChange");if(vv(r))return r.add(t)}function SN({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}function Bc(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:u,...l}=t;n&&(s=n);let c=[],p=o&&e.animationState&&e.animationState.getState()[o];for(let d in l){let m=e.getValue(d,(a=e.latestValues[d])!==null&&a!==void 0?a:null),g=l[d];if(g===void 0||p&&SN(p,d))continue;let v={delay:r,...ra(s||{},d)},h=!1;if(window.MotionHandoffAnimation){let y=Oc(e);if(y){let x=window.MotionHandoffAnimation(y,d,pe);x!==null&&(v.startTime=x,h=!0)}}mu(e,d),m.start(ma(d,m,g,e.shouldReduceMotion&&Wt.has(d)?{type:!1}:v,e,h));let b=m.animation;b&&c.push(b)}return u&&Promise.all(c).then(()=>{pe.update(()=>{u&&gv(e,u)})}),c}i();function Mc(e,t,r={}){var n;let o=so(e,t,r.type==="exit"?(n=e.presenceContext)===null||n===void 0?void 0:n.custom:void 0),{transition:a=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(a=r.transitionOverride);let s=o?()=>Promise.all(Bc(e,o,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:p=0,staggerChildren:d,staggerDirection:m}=a;return DN(e,t,p+c,d,m,r)}:()=>Promise.resolve(),{when:l}=a;if(l){let[c,p]=l==="beforeChildren"?[s,u]:[u,s];return c().then(()=>p())}else return Promise.all([s(),u(r.delay)])}function DN(e,t,r=0,n=0,o=1,a){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(EN).forEach((c,p)=>{c.notify("AnimationStart",t),s.push(Mc(c,t,{...a,delay:r+l(p)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function EN(e,t){return e.sortNodePosition(t)}function yv(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(a=>Mc(e,a,r));n=Promise.all(o)}else if(typeof t=="string")n=Mc(e,t,r);else{let o=typeof t=="function"?so(e,t,r.custom):t;n=Promise.all(Bc(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}i();var PN=ou.length;function Um(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent?Um(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}let t={};for(let r=0;r<PN;r++){let n=ou[r],o=e.props[n];(Sn(o)||o===!1)&&(t[n]=o)}return t}var TN=[...tc].reverse(),AN=tc.length;function RN(e){return t=>Promise.all(t.map(({animation:r,options:n})=>yv(e,r,n)))}function Cv(e){let t=RN(e),r=bv(),n=!0,o=l=>(c,p)=>{var d;let m=so(e,p,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(m){let{transition:g,transitionEnd:v,...h}=m;c={...c,...h,...v}}return c};function a(l){t=l(e)}function s(l){let{props:c}=e,p=Um(e.parent)||{},d=[],m=new Set,g={},v=1/0;for(let b=0;b<AN;b++){let y=TN[b],x=r[y],w=c[y]!==void 0?c[y]:p[y],S=Sn(w),E=y===l?x.isActive:null;E===!1&&(v=b);let D=w===p[y]&&w!==c[y]&&S;if(D&&n&&e.manuallyAnimateOnMount&&(D=!1),x.protectedKeys={...g},!x.isActive&&E===null||!w&&!x.prevProp||ao(w)||typeof w=="boolean")continue;let P=FN(x.prevProp,w),R=P||y===l&&x.isActive&&!D&&S||b>v&&S,F=!1,M=Array.isArray(w)?w:[w],H=M.reduce(o(y),{});E===!1&&(H={});let{prevResolvedValues:I={}}=x,L={...I,...H},N=K=>{R=!0,m.has(K)&&(F=!0,m.delete(K)),x.needsAnimating[K]=!0;let re=e.getValue(K);re&&(re.liveStyle=!1)};for(let K in L){let re=H[K],G=I[K];if(g.hasOwnProperty(K))continue;let ae=!1;nu(re)&&nu(G)?ae=!Sm(re,G):ae=re!==G,ae?re!=null?N(K):m.add(K):re!==void 0&&m.has(K)?N(K):x.protectedKeys[K]=!0}x.prevProp=w,x.prevResolvedValues=H,x.isActive&&(g={...g,...H}),n&&e.blockInitialAnimation&&(R=!1),R&&(!(D&&P)||F)&&d.push(...M.map(K=>({animation:K,options:{type:y}})))}if(m.size){let b={};m.forEach(y=>{let x=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),b[y]=x??null}),d.push({animation:b})}let h=!!d.length;return n&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(h=!1),n=!1,h?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(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;let d=s(l);for(let m in r)r[m].protectedKeys={};return d}return{animateChanges:s,setActive:u,setAnimateFunction:a,getState:()=>r,reset:()=>{r=bv(),n=!0}}}function FN(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Sm(t,e):!1}function ti(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function bv(){return{animate:ti(!0),whileInView:ti(),whileHover:ti(),whileTap:ti(),whileDrag:ti(),whileFocus:ti(),exit:ti()}}i();var lt=class{constructor(t){this.isMounted=!1,this.node=t}update(){}};var Ic=class extends lt{constructor(t){super(t),t.animationState||(t.animationState=Cv(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();ao(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}};i();var ON=0,kc=class extends lt{constructor(){super(...arguments),this.id=ON++}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 xv={animation:{Feature:Ic},exit:{Feature:kc}};i();i();i();i();i();i();var Nc=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function ri(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var wv=e=>t=>Nc(t)&&e(t,ri(t));i();i();function Kt(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function qt(e,t,r,n){return Kt(e,t,wv(r),n)}i();var Sv=(e,t)=>Math.abs(e-t);function Dv(e,t){let r=Sv(e.x,t.x),n=Sv(e.y,t.y);return Math.sqrt(r**2+n**2)}var ya=class{constructor(t,r,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:a=!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=qm(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=Dv(d.offset,{x:0,y:0})>=3;if(!m&&!g)return;let{point:v}=d,{timestamp:h}=Xe;this.history.push({...v,timestamp:h});let{onStart:b,onMove:y}=this.handlers;m||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Km(m,this.transformPagePoint),pe.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();let{onEnd:g,onSessionEnd:v,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let b=qm(d.type==="pointercancel"?this.lastMoveEventInfo:Km(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,b),v&&v(d,b)},!Nc(t))return;this.dragSnapToOrigin=a,this.handlers=r,this.transformPagePoint=n,this.contextWindow=o||window;let s=ri(t),u=Km(s,this.transformPagePoint),{point:l}=u,{timestamp:c}=Xe;this.history=[{...l,timestamp:c}];let{onSessionStart:p}=r;p&&p(t,qm(u,this.history)),this.removeListeners=At(qt(this.contextWindow,"pointermove",this.handlePointerMove),qt(this.contextWindow,"pointerup",this.handlePointerUp),qt(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),cr(this.updatePoint)}};function Km(e,t){return t?{point:t(e.point)}:e}function Ev(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qm({point:e},t){return{point:e,delta:Ev(e,Pv(t)),offset:Ev(e,BN(t)),velocity:MN(t,.1)}}function BN(e){return e[0]}function Pv(e){return e[e.length-1]}function MN(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=Pv(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Pt(t)));)r--;if(!n)return{x:0,y:0};let a=Ut(o.timestamp-n.timestamp);if(a===0)return{x:0,y:0};let s={x:(o.x-n.x)/a,y:(o.y-n.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}i();function Rv(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var Tv=Rv("dragHorizontal"),Av=Rv("dragVertical");function Xm(e){let t=!1;if(e==="y")t=Av();else if(e==="x")t=Tv();else{let r=Tv(),n=Av();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function Vc(){let e=Xm(!0);return e?(e(),!1):!0}i();function Tn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}i();i();var Mv=1e-4,IN=1-Mv,kN=1+Mv,Iv=.01,NN=0-Iv,VN=0+Iv;function bt(e){return e.max-e.min}function kv(e,t,r){return Math.abs(e-t)<=r}function Fv(e,t,r,n=.5){e.origin=n,e.originPoint=be(t.min,t.max,e.origin),e.scale=bt(r)/bt(t),e.translate=be(r.min,r.max,e.origin)-e.originPoint,(e.scale>=IN&&e.scale<=kN||isNaN(e.scale))&&(e.scale=1),(e.translate>=NN&&e.translate<=VN||isNaN(e.translate))&&(e.translate=0)}function ba(e,t,r,n){Fv(e.x,t.x,r.x,n?n.originX:void 0),Fv(e.y,t.y,r.y,n?n.originY:void 0)}function Ov(e,t,r){e.min=r.min+t.min,e.max=e.min+bt(t)}function Nv(e,t,r){Ov(e.x,t.x,r.x),Ov(e.y,t.y,r.y)}function Bv(e,t,r){e.min=t.min-r.min,e.max=e.min+bt(t)}function Ca(e,t,r){Bv(e.x,t.x,r.x),Bv(e.y,t.y,r.y)}function Gv(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?be(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?be(r,e,n.max):Math.min(e,r)),e}function Vv(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 Hv(e,{top:t,left:r,bottom:n,right:o}){return{x:Vv(e.x,r,o),y:Vv(e.y,t,n)}}function Lv(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 jv(e,t){return{x:Lv(e.x,t.x),y:Lv(e.y,t.y)}}function _v(e,t){let r=.5,n=bt(e),o=bt(t);return o>n?r=$r(t.min,t.max-n,e.min):n>o&&(r=$r(e.min,e.max-o,t.min)),It(0,1,r)}function Wv(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 Lc=.35;function Uv(e=Lc){return e===!1?e=0:e===!0&&(e=Lc),{x:$v(e,"left","right"),y:$v(e,"top","bottom")}}function $v(e,t,r){return{min:zv(e,t),max:zv(e,r)}}function zv(e,t){return typeof e=="number"?e:e[t]||0}i();var Kv=()=>({translate:0,scale:1,origin:0,originPoint:0}),ni=()=>({x:Kv(),y:Kv()}),qv=()=>({min:0,max:0}),Ve=()=>({x:qv(),y:qv()});i();function Xt(e){return[e("x"),e("y")]}i();i();function $c({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function Xv({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Yv(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}}i();i();function Ym(e){return e===void 0||e===1}function zc({scale:e,scaleX:t,scaleY:r}){return!Ym(e)||!Ym(t)||!Ym(r)}function An(e){return zc(e)||Jm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Jm(e){return Jv(e.x)||Jv(e.y)}function Jv(e){return e&&e!=="0%"}function hu(e,t,r){let n=e-r,o=t*n;return r+o}function Zv(e,t,r,n,o){return o!==void 0&&(e=hu(e,o,n)),hu(e,r,n)+t}function Zm(e,t=0,r=1,n,o){e.min=Zv(e.min,t,r,n,o),e.max=Zv(e.max,t,r,n,o)}function Qm(e,{x:t,y:r}){Zm(e.x,t.translate,t.scale,t.originPoint),Zm(e.y,r.translate,r.scale,r.originPoint)}var Qv=.999999999999,e7=1.0000000000001;function r7(e,t,r,n=!1){let o=r.length;if(!o)return;t.x=t.y=1;let a,s;for(let u=0;u<o;u++){a=r[u],s=a.projectionDelta;let{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&a.options.layoutScroll&&a.scroll&&a!==a.root&&oi(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Qm(e,s)),n&&An(a.latestValues)&&oi(e,a.latestValues))}t.x<e7&&t.x>Qv&&(t.x=1),t.y<e7&&t.y>Qv&&(t.y=1)}function vo(e,t){e.min=e.min+t,e.max=e.max+t}function t7(e,t,r,n,o=.5){let a=be(e.min,e.max,o);Zm(e,t,r,a,n)}function oi(e,t){t7(e.x,t.x,t.scaleX,t.scale,t.originX),t7(e.y,t.y,t.scaleY,t.scale,t.originY)}function e0(e,t){return $c(Yv(e.getBoundingClientRect(),t))}function n7(e,t,r){let n=e0(e,r),{scroll:o}=t;return o&&(vo(n.x,o.offset.x),vo(n.y,o.offset.y)),n}i();var Gc=({current:e})=>e?e.ownerDocument.defaultView:null;var LN=new WeakMap,jc=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=Ve(),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(ri(p,"page").point)},a=(p,d)=>{let{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Xm(m),!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),Xt(b=>{let y=this.getAxisMotionValue(b).get()||0;if(kt.test(y)){let{projection:x}=this.visualElement;if(x&&x.layout){let w=x.layout.layoutBox[b];w&&(y=bt(w)*(parseFloat(y)/100))}}this.originPoint[b]=y}),v&&pe.postRender(()=>v(p,d)),mu(this.visualElement,"transform");let{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},s=(p,d)=>{let{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:h}=this.getProps();if(!m&&!this.openGlobalLock)return;let{offset:b}=d;if(g&&this.currentDirection===null){this.currentDirection=$N(b),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),h&&h(p,d)},u=(p,d)=>this.stop(p,d),l=()=>Xt(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 ya(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:Gc(this.visualElement)})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&pe.postRender(()=>a(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||!Hc(t,o,this.currentDirection))return;let a=this.getAxisMotionValue(t),s=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(s=Gv(s,this.constraints[t],this.elastic[t])),a.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,a=this.constraints;r&&Tn(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=Hv(o.layoutBox,r):this.constraints=!1,this.elastic=Uv(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xt(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Wv(o.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Tn(t))return!1;let n=t.current;Lr(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 a=n7(n,o.root,this.visualElement.getTransformPagePoint()),s=jv(o.layout.layoutBox,a);if(r){let u=r(Xv(s));this.hasMutatedConstraints=!!u,u&&(s=$c(u))}return s}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},c=Xt(p=>{if(!Hc(p,r,this.currentDirection))return;let d=l&&l[p]||{};s&&(d={min:0,max:0});let m=o?200:1e6,g=o?40:1e7,v={type:"inertia",velocity:n?t[p]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...d};return this.startAxisValueAnimation(p,v)});return Promise.all(c).then(u)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return mu(this.visualElement,t),n.start(ma(t,n,0,r,this.visualElement,!1))}stopAnimation(){Xt(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Xt(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){Xt(r=>{let{drag:n}=this.getProps();if(!Hc(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,a=this.getAxisMotionValue(r);if(o&&o.layout){let{min:s,max:u}=o.layout.layoutBox[r];a.set(t[r]-be(s,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Tn(r)||!n||!this.constraints)return;this.stopAnimation();let o={x:0,y:0};Xt(s=>{let u=this.getAxisMotionValue(s);if(u&&this.constraints!==!1){let l=u.get();o[s]=_v({min:l,max:l},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Xt(s=>{if(!Hc(s,t,null))return;let u=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];u.set(be(l,c,o[s]))})}addListeners(){if(!this.visualElement.current)return;LN.set(this.visualElement,this);let t=this.visualElement.current,r=qt(t,"pointerdown",l=>{let{drag:c,dragListener:p=!0}=this.getProps();c&&p&&this.start(l)}),n=()=>{let{dragConstraints:l}=this.getProps();Tn(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,a=o.addEventListener("measure",n);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),pe.read(n);let s=Kt(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Xt(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(),a(),u&&u()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:a=!1,dragElastic:s=Lc,dragMomentum:u=!0}=t;return{...t,drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:a,dragElastic:s,dragMomentum:u}}};function Hc(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function $N(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}var _c=class extends lt{constructor(t){super(t),this.removeGroupControls=Ae,this.removeListeners=Ae,this.controls=new jc(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ae}unmount(){this.removeGroupControls(),this.removeListeners()}};i();var o7=e=>(t,r)=>{e&&pe.postRender(()=>e(t,r))},Wc=class extends lt{constructor(){super(...arguments),this.removePointerDownListener=Ae}onPointerDown(t){this.session=new ya(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gc(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:r,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:o7(t),onStart:o7(r),onMove:n,onEnd:(a,s)=>{delete this.session,o&&pe.postRender(()=>o(a,s))}}}mount(){this.removePointerDownListener=qt(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};i();import{jsx as KN}from"react/jsx-runtime";import{useContext as l7,Component as qN}from"react";i();import{useContext as GN,useId as HN,useEffect as jN,useCallback as _N}from"react";i();import{createContext as zN}from"react";var yo=zN(null);function i7(){let e=GN(yo);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=HN();jN(()=>n(o),[]);let a=_N(()=>r&&r(o),[o,r]);return!t&&r?[!1,a]:[!0]}i();import{createContext as WN}from"react";var xa=WN({});i();import{createContext as UN}from"react";var Uc=UN({});i();var wa={hasAnimatedSinceResize:!0,hasEverUpdated:!1};i();function a7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Sa={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ne.test(e))e=parseFloat(e);else return e;let r=a7(e,t.target.x),n=a7(e,t.target.y);return`${r}% ${n}%`}};i();var s7={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=Nt.parse(e);if(o.length>5)return n;let a=Nt.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=be(u,l,.5);return typeof o[2+s]=="number"&&(o[2+s]/=c),typeof o[3+s]=="number"&&(o[3+s]/=c),a(o)}};i();var Da={};function u7(e){Object.assign(Da,e)}i();var{schedule:Ea,cancel:$7e}=oc(queueMicrotask,!1);var t0=class extends qN{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:a}=t;u7(XN),a&&(r.group&&r.group.add(a),n&&n.register&&o&&n.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),wa.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:a}=this.props,s=n.projection;return s&&(s.isPresent=a,o||t.layoutDependency!==r||r===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||pe.postRender(()=>{let u=s.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ea.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 Kc(e){let[t,r]=i7(),n=l7(xa);return KN(t0,{...e,layoutGroup:n,switchLayoutGroup:l7(Uc),isPresent:t,safeToRemove:r})}var XN={borderRadius:{...Sa,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sa,borderTopRightRadius:Sa,borderBottomLeftRadius:Sa,borderBottomRightRadius:Sa,boxShadow:s7};i();i();i();var d7=["TopLeft","TopRight","BottomLeft","BottomRight"],YN=d7.length,c7=e=>typeof e=="string"?parseFloat(e):e,f7=e=>typeof e=="number"||ne.test(e);function m7(e,t,r,n,o,a){o?(e.opacity=be(0,r.opacity!==void 0?r.opacity:1,JN(n)),e.opacityExit=be(t.opacity!==void 0?t.opacity:1,0,ZN(n))):a&&(e.opacity=be(t.opacity!==void 0?t.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let s=0;s<YN;s++){let u=`border${d7[s]}Radius`,l=p7(t,u),c=p7(r,u);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||f7(l)===f7(c)?(e[u]=Math.max(be(c7(l),c7(c),n),0),(kt.test(c)||kt.test(l))&&(e[u]+="%")):e[u]=c}(t.rotate||r.rotate)&&(e.rotate=be(t.rotate||0,r.rotate||0,n))}function p7(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var JN=h7(0,.5,fc),ZN=h7(.5,.95,Ae);function h7(e,t,r){return n=>n<e?0:n>t?1:r($r(e,t,n))}i();function g7(e,t){e.min=t.min,e.max=t.max}function fr(e,t){g7(e.x,t.x),g7(e.y,t.y)}function r0(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}i();function v7(e,t,r,n,o){return e-=t,e=hu(e,1/r,n),o!==void 0&&(e=hu(e,1/o,n)),e}function QN(e,t=0,r=1,n=.5,o,a=e,s=e){if(kt.test(t)&&(t=parseFloat(t),t=be(s.min,s.max,t/100)-s.min),typeof t!="number")return;let u=be(a.min,a.max,n);e===a&&(u-=t),e.min=v7(e.min,t,r,u,o),e.max=v7(e.max,t,r,u,o)}function y7(e,t,[r,n,o],a,s){QN(e,t[r],t[n],t[o],t.scale,a,s)}var eV=["x","scaleX","originX"],tV=["y","scaleY","originY"];function n0(e,t,r,n){y7(e.x,t,eV,r?r.x:void 0,n?n.x:void 0),y7(e.y,t,tV,r?r.y:void 0,n?n.y:void 0)}i();function b7(e){return e.translate===0&&e.scale===1}function o0(e){return b7(e.x)&&b7(e.y)}function C7(e,t){return e.min===t.min&&e.max===t.max}function w7(e,t){return C7(e.x,t.x)&&C7(e.y,t.y)}function x7(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i0(e,t){return x7(e.x,t.x)&&x7(e.y,t.y)}function a0(e){return bt(e.x)/bt(e.y)}function s0(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}i();var qc=class{constructor(){this.members=[]}add(t){ha(this.members,t),t.scheduleRender()}remove(t){if(ga(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 a=this.members[o];if(a.isPresent!==!1){n=a;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)}};i();function S7(e,t,r){let n="",o=e.x.translate/t.x,a=e.y.translate/t.y,s=r?.z||0;if((o||a||s)&&(n=`translate3d(${o}px, ${a}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:m,skewX:g,skewY:v}=r;c&&(n=`perspective(${c}px) ${n}`),p&&(n+=`rotate(${p}deg) `),d&&(n+=`rotateX(${d}deg) `),m&&(n+=`rotateY(${m}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"}i();i();var D7=(e,t)=>e.depth-t.depth;var Xc=class{constructor(){this.children=[],this.isDirty=!1}add(t){ha(this.children,t),this.isDirty=!0}remove(t){ga(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(D7),this.isDirty=!1,this.children.forEach(t)}};i();function Pa(e){let t=Ie(e)?e.get():e;return pv(t)?t.toValue():t}i();function E7(e,t){let r=Tt.now(),n=({timestamp:o})=>{let a=o-r;a>=t&&(cr(n),e(a-t))};return pe.read(n,!0),()=>cr(n)}i();function P7(e){return e instanceof SVGElement&&e.tagName!=="svg"}i();function T7(e,t,r){let n=Ie(e)?e:Pn(e);return n.start(ma("",n,t,r)),n.animation}var ii={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},gu=typeof window<"u"&&window.MotionDebug!==void 0,u0=["","X","Y","Z"],rV={visibility:"hidden"},A7=1e3,nV=0;function l0(e,t,r,n){let{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function N7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let r=Oc(t);if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:o,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",pe,!(o||a))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&N7(n)}function Yc({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(s={},u=t?.()){this.id=nV++,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.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,gu&&(ii.totalNodes=ii.resolvedTargetDeltas=ii.recalculatedProjection=0),this.nodes.forEach(aV),this.nodes.forEach(fV),this.nodes.forEach(pV),this.nodes.forEach(sV),gu&&window.MotionDebug.record(ii)},this.resolvedRelativeTargetAt=0,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 Xc)}addEventListener(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new go),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=P7(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,m=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=E7(m,250),wa.hasAnimatedSinceResize&&(wa.hasAnimatedSinceResize=!1,this.nodes.forEach(F7))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&p&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let h=this.options.transition||p.getDefaultTransition()||vV,{onLayoutAnimationStart:b,onLayoutAnimationComplete:y}=p.getProps(),x=!this.targetLayout||!i0(this.targetLayout,v)||g,w=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||w||m&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);let S={...ra(h,"layout"),onPlay:b,onComplete:y};(p.shouldReduceMotion||this.options.layoutRoot)&&(S.delay=0,S.type=!1),this.startAnimation(S)}else m||F7(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,cr(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(dV),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.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&N7(this),!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(R7);return}this.isUpdating||this.nodes.forEach(lV),this.isUpdating=!1,this.nodes.forEach(cV),this.nodes.forEach(oV),this.nodes.forEach(iV),this.clearAllSnapshots();let u=Tt.now();Xe.delta=It(0,1e3/60,u-Xe.timestamp),Xe.timestamp=u,Xe.isProcessing=!0,ic.update.process(Xe),ic.preRender.process(Xe),ic.render.process(Xe),Xe.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ea.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uV),this.sharedNodes.forEach(mV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){pe.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=Ve(),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);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(u=!1),u){let l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!o0(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,p=c!==this.prevTransformTemplateValue;s&&(u||An(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)),yV(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:u}=this.options;if(!u)return Ve();let l=u.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(bV))){let{scroll:p}=this.root;p&&(vo(l.x,p.offset.x),vo(l.y,p.offset.y))}return l}removeElementScroll(s){var u;let l=Ve();if(fr(l,s),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let c=0;c<this.path.length;c++){let p=this.path[c],{scroll:d,options:m}=p;p!==this.root&&d&&m.layoutScroll&&(d.wasRoot&&fr(l,s),vo(l.x,d.offset.x),vo(l.y,d.offset.y))}return l}applyTransform(s,u=!1){let l=Ve();fr(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&&oi(l,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),An(p.latestValues)&&oi(l,p.latestValues)}return An(this.latestValues)&&oi(l,this.latestValues),l}removeTransform(s){let u=Ve();fr(u,s);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!An(c.latestValues))continue;zc(c.latestValues)&&c.updateSnapshot();let p=Ve(),d=c.measurePageBox();fr(p,d),n0(u,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,p)}return An(this.latestValues)&&n0(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!==Xe.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||this.root.updateBlockedByResize))return;let{layout:d,layoutId:m}=this.options;if(!(!this.layout||!(d||m))){if(this.resolvedRelativeTargetAt=Xe.timestamp,!this.targetDelta&&!this.relativeTarget){let g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ve(),this.relativeTargetOrigin=Ve(),Ca(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ve(),this.targetWithTransforms=Ve()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Nv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fr(this.target,this.layout.layoutBox),Qm(this.target,this.targetDelta)):fr(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=Ve(),this.relativeTargetOrigin=Ve(),Ca(this.relativeTargetOrigin,this.target,g.target),fr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}gu&&ii.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||zc(this.parent.latestValues)||Jm(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===Xe.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;fr(this.layoutCorrected,this.layout.layoutBox);let m=this.treeScale.x,g=this.treeScale.y;r7(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=Ve());let{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(r0(this.prevProjectionDelta.x,this.projectionDelta.x),r0(this.prevProjectionDelta.y,this.projectionDelta.y)),ba(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!s0(this.projectionDelta.x,this.prevProjectionDelta.x)||!s0(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),gu&&ii.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ni(),this.projectionDelta=ni(),this.projectionDeltaWithTransform=ni()}setAnimationOrigin(s,u=!1){let l=this.snapshot,c=l?l.latestValues:{},p={...this.latestValues},d=ni();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;let m=Ve(),g=l?l.source:void 0,v=this.layout?this.layout.source:void 0,h=g!==v,b=this.getStack(),y=!b||b.members.length<=1,x=!!(h&&!y&&this.options.crossfade===!0&&!this.path.some(gV));this.animationProgress=0;let w;this.mixTargetDelta=S=>{let E=S/1e3;O7(d.x,s.x,E),O7(d.y,s.y,E),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ca(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hV(this.relativeTarget,this.relativeTargetOrigin,m,E),w&&w7(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=Ve()),fr(w,this.relativeTarget)),h&&(this.animationValues=p,m7(p,c,this.latestValues,E,x,y)),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&&(cr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=pe.update(()=>{wa.hasAnimatedSinceResize=!0,this.currentAnimation=T7(0,A7,{...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(A7),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&&V7(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Ve();let d=bt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;let m=bt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+m}fr(u,l),oi(u,p),ba(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(s,u){this.sharedNodes.has(s)||this.sharedNodes.set(s,new qc),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&&l0("z",s,c,this.animationValues);for(let p=0;p<u0.length;p++)l0(`rotate${u0[p]}`,s,c,this.animationValues),l0(`skew${u0[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 rV;let c={visibility:""},p=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Pa(s?.pointerEvents)||"",c.transform=p?p(this.latestValues,""):"none",c;let d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){let h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Pa(s?.pointerEvents)||""),this.hasProjected&&!An(this.latestValues)&&(h.transform=p?p({},""):"none",this.hasProjected=!1),h}let m=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=S7(this.projectionDeltaWithTransform,this.treeScale,m),p&&(c.transform=p(m,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=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(let h in Da){if(m[h]===void 0)continue;let{correct:b,applyTo:y}=Da[h],x=c.transform==="none"?m[h]:b(m[h],d);if(y){let w=y.length;for(let S=0;S<w;S++)c[y[S]]=x}else c[h]=x}return this.options.layoutId&&(c.pointerEvents=d===this?Pa(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(R7),this.root.sharedNodes.clear()}}}function oV(e){e.updateLayout()}function iV(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:a}=e.options,s=r.source!==e.layout.source;a==="size"?Xt(d=>{let m=s?r.measuredBox[d]:r.layoutBox[d],g=bt(m);m.min=n[d].min,m.max=m.min+g}):V7(a,r.layoutBox,n)&&Xt(d=>{let m=s?r.measuredBox[d]:r.layoutBox[d],g=bt(n[d]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});let u=ni();ba(u,n,r.layoutBox);let l=ni();s?ba(l,e.applyTransform(o,!0),r.measuredBox):ba(l,n,r.layoutBox);let c=!o0(u),p=!1;if(!e.resumeFrom){let d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){let{snapshot:m,layout:g}=d;if(m&&g){let v=Ve();Ca(v,r.layoutBox,m.layoutBox);let h=Ve();Ca(h,n,g.layoutBox),i0(v,h)||(p=!0),d.options.layoutRoot&&(e.relativeTarget=h,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 aV(e){gu&&ii.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 sV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uV(e){e.clearSnapshot()}function R7(e){e.clearMeasurements()}function lV(e){e.isLayoutDirty=!1}function cV(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function F7(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fV(e){e.resolveTargetDelta()}function pV(e){e.calcProjection()}function dV(e){e.resetSkewAndRotation()}function mV(e){e.removeLeadSnapshot()}function O7(e,t,r){e.translate=be(t.translate,0,r),e.scale=be(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function B7(e,t,r,n){e.min=be(t.min,r.min,n),e.max=be(t.max,r.max,n)}function hV(e,t,r,n){B7(e.x,t.x,r.x,n),B7(e.y,t.y,r.y,n)}function gV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var vV={duration:.45,ease:[.4,0,.1,1]},M7=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),I7=M7("applewebkit/")&&!M7("chrome/")?Math.round:Ae;function k7(e){e.min=I7(e.min),e.max=I7(e.max)}function yV(e){k7(e.x),k7(e.y)}function V7(e,t,r){return e==="position"||e==="preserve-aspect"&&!kv(a0(t),a0(r),.2)}function bV(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}i();var L7=Yc({attachResizeListener:(e,t)=>Kt(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var c0={current:void 0},Jc=Yc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!c0.current){let e=new L7({});e.mount(window),e.setOptions({layoutScroll:!0}),c0.current=e}return c0.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:_c,ProjectionNode:Jc,MeasureLayout:Kc}};i();i();function z7(e,t){let r=t?"pointerenter":"pointerleave",n=t?"onHoverStart":"onHoverEnd",o=(a,s)=>{if(a.pointerType==="touch"||Vc())return;let u=e.getProps();e.animationState&&u.whileHover&&e.animationState.setActive("whileHover",t);let l=u[n];l&&pe.postRender(()=>l(a,s))};return qt(e.current,r,o,{passive:!e.getProps()[n]})}var Zc=class extends lt{mount(){this.unmount=At(z7(this.node,!0),z7(this.node,!1))}unmount(){}};i();var Qc=class extends lt{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=At(Kt(this.node.current,"focus",()=>this.onFocus()),Kt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};i();i();var f0=(e,t)=>t?e===t?!0:f0(e,t.parentElement):!1;function p0(e,t){if(!t)return;let r=new PointerEvent("pointer"+e);t(r,ri(r))}var ef=class extends lt{constructor(){super(...arguments),this.removeStartListeners=Ae,this.removeEndListeners=Ae,this.removeAccessibleListeners=Ae,this.startPointerPress=(t,r)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),a=qt(window,"pointerup",(u,l)=>{if(!this.checkPressEnd())return;let{onTap:c,onTapCancel:p,globalTapTarget:d}=this.node.getProps(),m=!d&&!f0(this.node.current,u.target)?p:c;m&&pe.update(()=>m(u,l))},{passive:!(n.onTap||n.onPointerUp)}),s=qt(window,"pointercancel",(u,l)=>this.cancelPress(u,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=At(a,s),this.startPress(t,r)},this.startAccessiblePress=()=>{let t=a=>{if(a.key!=="Enter"||this.isPressing)return;let s=u=>{u.key!=="Enter"||!this.checkPressEnd()||p0("up",(l,c)=>{let{onTap:p}=this.node.getProps();p&&pe.postRender(()=>p(l,c))})};this.removeEndListeners(),this.removeEndListeners=Kt(this.node.current,"keyup",s),p0("down",(u,l)=>{this.startPress(u,l)})},r=Kt(this.node.current,"keydown",t),n=()=>{this.isPressing&&p0("cancel",(a,s)=>this.cancelPress(a,s))},o=Kt(this.node.current,"blur",n);this.removeAccessibleListeners=At(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&&pe.postRender(()=>n(t,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Vc()}cancelPress(t,r){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&pe.postRender(()=>n(t,r))}mount(){let t=this.node.getProps(),r=qt(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=Kt(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=At(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}};i();i();var m0=new WeakMap,d0=new WeakMap,CV=e=>{let t=m0.get(e.target);t&&t(e)},xV=e=>{e.forEach(CV)};function wV({root:e,...t}){let r=e||document;d0.has(r)||d0.set(r,{});let n=d0.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(xV,{root:e,...t})),n[o]}function G7(e,t,r){let n=wV(t);return m0.set(e,r),n.observe(e),()=>{m0.delete(e),n.unobserve(e)}}var SV={some:0,all:1},tf=class extends lt{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:a}=t,s={root:r?r.current:void 0,rootMargin:n,threshold:typeof o=="number"?o:SV[o]},u=l=>{let{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,a&&!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(),m=c?p:d;m&&m(l)};return G7(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(DV(t,r))&&this.startObserver()}unmount(){}};function DV({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}var H7={inView:{Feature:tf},tap:{Feature:ef},focus:{Feature:Qc},hover:{Feature:Zc}};i();var j7={layout:{ProjectionNode:Jc,MeasureLayout:Kc}};i();i();import{jsxs as NV,jsx as VV}from"react/jsx-runtime";import{forwardRef as LV,useContext as g0}from"react";i();import{createContext as EV}from"react";var Ta=EV({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});i();import{createContext as PV}from"react";var bo=PV({});i();import{useContext as vu,useRef as h0,useInsertionEffect as FV,useEffect as OV}from"react";i();import{useLayoutEffect as TV,useEffect as AV}from"react";i();var Aa=typeof window<"u";var rf=Aa?TV:AV;i();import{createContext as RV}from"react";var nf=RV({strict:!1});function _7(e,t,r,n,o){var a,s;let{visualElement:u}=vu(bo),l=vu(nf),c=vu(yo),p=vu(Ta).reducedMotion,d=h0();n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:u,props:r,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:p}));let m=d.current,g=vu(Uc);m&&!m.projection&&o&&(m.type==="html"||m.type==="svg")&&BV(d.current,r,o,g);let v=h0(!1);FV(()=>{m&&v.current&&m.update(r,c)});let h=r[Fc],b=h0(!!h&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,h))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,h)));return rf(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Ea.render(m.render),b.current&&m.animationState&&m.animationState.animateChanges())}),OV(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,h)}),b.current=!1))}),m}function BV(e,t,r,n){let{layoutId:o,layout:a,drag:s,dragConstraints:u,layoutScroll:l,layoutRoot:c}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:W7(e.parent)),e.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||u&&Tn(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:c})}function W7(e){if(e)return e.options.allowProjection!==!1?e.projection:W7(e.parent)}i();import{useCallback as MV}from"react";function U7(e,t,r){return MV(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Tn(r)&&(r.current=n))},[t])}i();import{useContext as IV,useMemo as kV}from"react";i();i();function ai(e){return ao(e.animate)||ou.some(t=>Sn(e[t]))}function of(e){return!!(ai(e)||e.variants)}function K7(e,t){if(ai(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Sn(r)?r:void 0,animate:Sn(n)?n:void 0}}return e.inherit!==!1?t:{}}function X7(e){let{initial:t,animate:r}=K7(e,IV(bo));return kV(()=>({initial:t,animate:r}),[q7(t),q7(r)])}function q7(e){return Array.isArray(e)?e.join(" "):e}i();i();var Y7={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"]},Rn={};for(let e in Y7)Rn[e]={isEnabled:t=>Y7[e].some(r=>!!t[r])};function J7(e){for(let t in e)Rn[t]={...Rn[t],...e[t]}}i();var Z7=Symbol.for("motionComponentSymbol");function Q7({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){e&&J7(e);function a(u,l){let c,p={...g0(Ta),...u,layoutId:$V(u)},{isStatic:d}=p,m=X7(u),g=n(u,d);if(!d&&Aa){zV(p,e);let v=GV(p);c=v.MeasureLayout,m.visualElement=_7(o,g,p,t,v.ProjectionNode)}return NV(bo.Provider,{value:m,children:[c&&m.visualElement?VV(c,{visualElement:m.visualElement,...p}):null,r(o,u,U7(g,m.visualElement,l),g,d,m.visualElement)]})}let s=LV(a);return s[Z7]=o,s}function $V({layoutId:e}){let t=g0(xa).id;return t&&e!==void 0?t+"-"+e:e}function zV(e,t){let r=g0(nf).strict}function GV(e){let{drag:t,layout:r}=Rn;if(!t&&!r)return{};let n={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}i();i();var e6=["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 Ra(e){return typeof e!="string"||e.includes("-")?!1:!!(e6.indexOf(e)>-1||/[A-Z]/u.test(e))}i();i();i();function af(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let a in r)e.style.setProperty(a,r[a])}i();var sf=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 uf(e,t,r,n){af(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(sf.has(o)?o:va(o),t.attrs[o])}i();i();i();function lf(e,{layout:t,layoutId:r}){return Wt.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Da[e]||e==="opacity")}function Fa(e,t,r){var n;let{style:o}=e,a={};for(let s in o)(Ie(o[s])||t.style&&Ie(t.style[s])||lf(s,e)||((n=r?.getValue(s))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(a[s]=o[s]);return a}function cf(e,t,r){let n=Fa(e,t,r);for(let o in e)if(Ie(e[o])||Ie(t[o])){let a=uo.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;n[a]=e[o]}return n}i();import{useContext as t6}from"react";i();import{useRef as HV}from"react";function Oa(e){let t=HV(null);return t.current===null&&(t.current=e()),t.current}function jV({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,a){let s={latestValues:_V(n,o,a,e),renderState:t()};return r&&(s.mount=u=>r(n,u,s)),s}var ff=e=>(t,r)=>{let n=t6(bo),o=t6(yo),a=()=>jV(e,t,n,o);return r?a():Oa(a)};function _V(e,t,r,n){let o={},a=n(e,{});for(let m in a)o[m]=Pa(a[m]);let{initial:s,animate:u}=e,l=ai(e),c=of(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;if(d&&typeof d!="boolean"&&!ao(d)){let m=Array.isArray(d)?d:[d];for(let g=0;g<m.length;g++){let v=ta(e,m[g]);if(v){let{transitionEnd:h,transition:b,...y}=v;for(let x in y){let w=y[x];if(Array.isArray(w)){let S=p?w.length-1:0;w=w[S]}w!==null&&(o[x]=w)}for(let x in h)o[x]=h[x]}}}return o}i();i();var Ba=()=>({style:{},transform:{},transformOrigin:{},vars:{}});var pf=()=>({...Ba(),attrs:{}});i();i();i();i();var df=(e,t)=>t&&typeof e=="number"?t.transform(e):e;var WV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UV=uo.length;function r6(e,t,r){let n="",o=!0;for(let a=0;a<UV;a++){let s=uo[a],u=e[s];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(s.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||r){let c=df(u,aa[s]);if(!l){o=!1;let p=WV[s]||s;n+=`${p}(${c}) `}r&&(t[s]=c)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}function Ma(e,t,r){let{style:n,vars:o,transformOrigin:a}=e,s=!1,u=!1;for(let l in t){let c=t[l];if(Wt.has(l)){s=!0;continue}else if(hc(l)){o[l]=c;continue}else{let p=df(c,aa[l]);l.startsWith("origin")?(u=!0,a[l]=p):n[l]=p}}if(t.transform||(s||r?n.transform=r6(t,e.transform,r):n.transform&&(n.transform="none")),u){let{originX:l="50%",originY:c="50%",originZ:p=0}=a;n.transformOrigin=`${l} ${c} ${p}`}}i();function n6(e,t,r){return typeof e=="string"?e:ne.transform(t+r*e)}function o6(e,t,r){let n=n6(t,e.x,e.width),o=n6(r,e.y,e.height);return`${n} ${o}`}i();var KV={offset:"stroke-dashoffset",array:"stroke-dasharray"},qV={offset:"strokeDashoffset",array:"strokeDasharray"};function i6(e,t,r=1,n=0,o=!0){e.pathLength=1;let a=o?KV:qV;e[a.offset]=ne.transform(-n);let s=ne.transform(t),u=ne.transform(r);e[a.array]=`${s} ${u}`}function Ia(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:a,pathLength:s,pathSpacing:u=1,pathOffset:l=0,...c},p,d){if(Ma(e,c,d),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(o!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=o6(v,o!==void 0?o:.5,a!==void 0?a:.5)),t!==void 0&&(m.x=t),r!==void 0&&(m.y=r),n!==void 0&&(m.scale=n),s!==void 0&&i6(m,s,u,l,!1)}i();var ka=e=>typeof e=="string"&&e.toLowerCase()==="svg";var a6={useVisualState:ff({scrapeMotionValuesFromProps:cf,createRenderState:pf,onMount:(e,t,{renderState:r,latestValues:n})=>{pe.read(()=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),pe.render(()=>{Ia(r,n,ka(t.tagName),e.transformTemplate),uf(t,r)})}})};i();var s6={useVisualState:ff({scrapeMotionValuesFromProps:Fa,createRenderState:Ba})};i();import{Fragment as nL,useMemo as oL,createElement as iL}from"react";i();import{useMemo as XV}from"react";function v0(e,t,r){for(let n in t)!Ie(t[n])&&!lf(n,r)&&(e[n]=t[n])}function YV({transformTemplate:e},t){return XV(()=>{let r=Ba();return Ma(r,t,e),Object.assign({},r.vars,r.style)},[t])}function JV(e,t){let r=e.style||{},n={};return v0(n,r,e),Object.assign(n,YV(e,t)),n}function u6(e,t){let r={},n=JV(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}i();i();var ZV=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 yu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ZV.has(e)}var d6=e=>!yu(e);function tL(e){e&&(d6=t=>t.startsWith("on")?!yu(t):e(t))}try{tL((p6(),wM(f6)).default)}catch{}function m6(e,t,r){let n={};for(let o in e)o==="values"&&typeof e.values=="object"||(d6(o)||r===!0&&yu(o)||!t&&!yu(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}i();import{useMemo as rL}from"react";function h6(e,t,r,n){let o=rL(()=>{let a=pf();return Ia(a,t,ka(n),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){let a={};v0(a,e.style,e),o.style={...a,...o.style}}return o}function g6(e=!1){return(r,n,o,{latestValues:a},s)=>{let l=(Ra(r)?h6:u6)(n,a,s,r),c=m6(n,typeof r=="string",e),p=r!==nL?{...c,...l,ref:o}:{},{children:d}=n,m=oL(()=>Ie(d)?d.get():d,[d]);return iL(r,{...p,children:m})}}function v6(e,t){return function(n,{forwardMotionProps:o}={forwardMotionProps:!1}){let s={...Ra(n)?a6:s6,preloadedFeatures:e,useRender:g6(o),createVisualElement:t,Component:n};return Q7(s)}}i();import{Fragment as uL}from"react";i();i();i();i();i();var bu={current:null},mf={current:!1};function y6(){if(mf.current=!0,!!Aa)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>bu.current=e.matches;e.addListener(t),t()}else bu.current=!1}i();function b6(e,t,r){for(let n in t){let o=t[n],a=r[n];if(Ie(o))e.addValue(n,o);else if(Ie(a))e.addValue(n,Pn(o,{owner:e}));else if(a!==o)if(e.hasValue(n)){let s=e.getValue(n);s.liveStyle===!0?s.jump(o):s.hasAnimated||s.set(o)}else{let s=e.getStaticValue(n);e.addValue(n,Pn(s!==void 0?s:o,{owner:e}))}}for(let n in r)t[n]===void 0&&e.removeValue(n);return t}i();var y0=new WeakMap;i();var aL=[...Am,et,Nt],C6=e=>aL.find(gc(e));var x6=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],hf=class{scrapeMotionValuesFromProps(t,r,n){return{}}constructor({parent:t,props:r,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:a,visualState:s},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=po,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.renderScheduledAt=0,this.scheduleRender=()=>{let m=Tt.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,pe.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=!!a,this.isControllingVariants=ai(r),this.isVariantNode=of(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:p,...d}=this.scrapeMotionValuesFromProps(r,{},this);for(let m in d){let g=d[m];l[m]!==void 0&&Ie(g)&&g.set(l[m],!1)}}mount(t){this.current=t,y0.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)),mf.current||y6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:bu.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){y0.delete(this.current),this.projection&&this.projection.unmount(),cr(this.notifyUpdate),cr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let t in this.events)this.events[t].clear();for(let t in this.features){let r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=Wt.has(t),o=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&pe.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),a=r.on("renderRequest",this.scheduleRender),s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{o(),a(),s&&s(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Rn){let r=Rn[t];if(!r)continue;let{isEnabled:n,Feature:o}=r;if(!this.features[t]&&o&&n(this.props)&&(this.features[t]=new o(this)),this.features[t]){let a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ve()}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<x6.length;n++){let o=x6[n];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);let a="on"+o,s=t[a];s&&(this.propEventSubscriptions[o]=this.on(o,s))}this.prevMotionValues=b6(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}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=Pn(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"&&(mc(o)||dc(o))?o=parseFloat(o):!C6(o)&&Nt.test(r)&&(o=yc(t,r)),this.setBaseTarget(t,Ie(o)?o.get():o)),Ie(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=ta(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 a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Ie(a)?a:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new go),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}};var Na=class extends hf{constructor(){super(...arguments),this.KeyframeResolver=ua}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 sL(e){return window.getComputedStyle(e)}var gf=class extends Na{constructor(){super(...arguments),this.type="html",this.renderInstance=af}readValueFromInstance(t,r){if(Wt.has(r)){let n=sa(r);return n&&n.default||0}else{let n=sL(t),o=(hc(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return e0(t,r)}build(t,r,n){Ma(t,r,n.transformTemplate)}scrapeMotionValuesFromProps(t,r,n){return Fa(t,r,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;Ie(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}};i();var vf=class extends Na{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ve}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(Wt.has(r)){let n=sa(r);return n&&n.default||0}return r=sf.has(r)?r:va(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,n){return cf(t,r,n)}build(t,r,n){Ia(t,r,this.isSVGTag,n.transformTemplate)}renderInstance(t,r,n,o){uf(t,r,n,o)}mount(t){this.isSVGTag=ka(t.tagName),super.mount(t)}};var w6=(e,t)=>Ra(e)?new vf(t):new gf(t,{allowProjection:e!==uL});var S6=v6({...xv,...H7,...$7,...j7},w6);var Cu=f4(S6);i();import{jsx as F6,Fragment as yL}from"react/jsx-runtime";import{useMemo as bL,useRef as O6,useState as B6,useContext as CL}from"react";i();import{jsx as P6}from"react/jsx-runtime";import*as A6 from"react";import{useId as dL,useCallback as mL,useMemo as T6}from"react";i();import{jsx as lL}from"react/jsx-runtime";import*as yf from"react";import{useId as cL,useRef as D6,useContext as fL,useInsertionEffect as pL}from"react";var b0=class extends yf.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 E6({children:e,isPresent:t}){let r=cL(),n=D6(null),o=D6({width:0,height:0,top:0,left:0}),{nonce:a}=fL(Ta);return pL(()=>{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 a&&(p.nonce=a),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;
|
|
@@ -706,7 +706,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
706
706
|
`;var sC=E$`
|
|
707
707
|
${iC}
|
|
708
708
|
${aC}
|
|
709
|
-
`;import{jsx as Au,jsxs as P$}from"react/jsx-runtime";var MMe=({children:e,theme:t={},globalStylesIncluded:r=!0,skipAnimations:n=!1,Link:o})=>(n&&(Dn.skipAnimations=!0),P$(k6,{theme:t,children:[r?Au(sC,{}):null,Au(ym,{children:Au(L6,{value:{Link:o},children:Au(Rf,{children:Au(N0,{children:e})})})})]}));i();i();import{useState as T$,useCallback as z0}from"react";var G0=(e=!1)=>{let[t,r]=T$(e),n=z0(()=>r(s=>!s),[]),o=z0(()=>r(!0),[]),a=z0(()=>r(!1),[]);return[t,n,o,a,r]};i();i();import{useCallback as F$}from"react";i();i();import{useEffect as A$,useRef as uC,useState as R$}from"react";var Ff=e=>{let[t,r]=R$(!1),n=uC(),o=uC(e),a=s=>{clearTimeout(n.current),r(!o.current),n.current=window.setTimeout(()=>r(o.current),s)};return A$(()=>()=>clearTimeout(n.current),[]),[t,a]};var O$=(e,t=1500)=>{let[r,n]=Ff(!1),[o,a]=Ff(!1);return[F$(async()=>{try{await Gs(e),t&&t>0&&n(t)}catch(u){u instanceof Error&&a(t)}},[e,t,n,a]),r,o]};i();i();import{useMemo as B$,useState as M$,useRef as I$,useLayoutEffect as k$}from"react";var N$={width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0},H0=()=>{let e=I$(null),[t,r]=M$(N$),n=B$(()=>new window.ResizeObserver(o=>{if(o[0]){let{width:a,height:s,top:u,left:l,bottom:c,right:p,x:d,y:m}=o[0].contentRect;r({width:a,height:s,top:u,left:l,bottom:c,right:p,x:d,y:m})}}),[]);return k$(()=>{if(e.current)return n.observe(e.current),()=>{n.disconnect()}},[n]),[e,t]};i();i();import{useEffect as j0,useRef as lC}from"react";var V$=e=>!!(typeof e=="object"&&e?.addEventListener),_0=(e,t,r=window,n={})=>{let o=lC(),a=lC();j0(()=>{o.current=t},[t]),j0(()=>{a.current=n},[n]),j0(()=>{if(!e||!V$(r))return;let s=u=>o.current!==void 0?o.current(u):()=>{};return r.addEventListener(e,s,a.current),()=>{r.removeEventListener(e,s,a.current)}},[e,r,a])};i();i();var SC=U(Q());import{useRef as wC,useCallback as z$,useEffect as G$}from"react";i();var U0='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex="0"], [contenteditable]',L$=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},$$=e=>{let t=e;for(;t&&t!==document.body;){if(L$(t))return!1;t=t.parentNode}return!0},cC=e=>{let t=e.getAttribute("tabindex");return Number.parseInt(t??void 0,10)},fC=e=>{let t=cC(e);return Number.isNaN(t)},Of=e=>{let t=/input|select|textarea|button|object/,r=e.nodeName.toLowerCase(),n=!fC(e);return!!(t.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&$$(e)},K0=e=>{let t=cC(e);return(fC(e)||t>=0)&&Of(e)},pC=e=>Array.from(e.querySelectorAll(U0)).filter(K0),dC=[],za=null,W0=!1,mC=()=>{W0=!0},hC=()=>{if(W0){if(W0=!1,!za||za.contains(document.activeElement))return;(pC(za)[0]??za).focus()}},gC=()=>{let e=document.activeElement;e!==null&&dC.push(e)},vC=()=>{let e=null;try{e=dC.pop(),e&&e.focus()}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},yC=e=>{za=e,document.addEventListener("focusout",mC,!1),document.addEventListener("focusin",hC,!0)},bC=()=>{za=null,document.removeEventListener("focusout",mC),document.removeEventListener("focusin",hC)},CC=(e,t)=>{let r=pC(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();let a=r[t.shiftKey?r.length-1:0];a&&a.focus()},xC=(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 q0=(e=!0,t={})=>{let r=wC(null),n=wC(null),o=z$(a=>{if(n.current!==null&&n.current(),r.current&&(vC(),bC()),e&&a!==null&&a!==void 0){yC(a),gC();let s=u=>{n.current=t.disableAriaHider??!1?null:xC(u);let l=null;if((0,SC.isNotUndefined)(t.focusSelector)&&(l=typeof t.focusSelector=="string"?u.querySelector(t.focusSelector):t.focusSelector),!l){let c=Array.from(u.querySelectorAll(U0));l=c.find(K0)??c.find(Of)??null,!l&&Of(u)&&(l=u)}l&&l.focus()};setTimeout(()=>{a.ownerDocument&&s(a),a.ownerDocument}),r.current=a}else r.current=null},[e,t.focusSelector,t.disableAriaHider]);return G$(()=>{if(!e)return;let a=s=>{s.key==="Tab"&&r.current&&CC(r.current,s)};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[e]),o};i();i();import{useCallback as H$,useState as j$}from"react";var _$=()=>{let[,e]=j$(Object.create(null));return H$(()=>{e(Object.create(null))},[e])};i();i();i();var W$=function(t){return U$(t)&&!K$(t)};function U$(e){return!!e&&typeof e=="object"}function K$(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Y$(e)}var q$=typeof Symbol=="function"&&Symbol.for,X$=q$?Symbol.for("react.element"):60103;function Y$(e){return e.$$typeof===X$}function J$(e){return Array.isArray(e)?[]:{}}function Bf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ru(J$(e),e,t):e}function Z$(e,t,r){return e.concat(t).map(function(n){return Bf(n,r)})}function Q$(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(o){n[o]=Bf(e[o],r)}),Object.keys(t).forEach(function(o){!r.isMergeableObject(t[o])||!e[o]?n[o]=Bf(t[o],r):n[o]=Ru(e[o],t[o],r)}),n}function Ru(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Z$,r.isMergeableObject=r.isMergeableObject||W$;var n=Array.isArray(t),o=Array.isArray(e),a=n===o;return a?n?r.arrayMerge(e,t,r):Q$(e,t,r):Bf(t,r)}Ru.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Ru(n,o,r)},{})};var ez=Ru,Mf=ez;i();i();i();i();i();var tz=typeof window=="object"&&window&&window.Object===Object&&window,If=tz;var rz=typeof self=="object"&&self&&self.Object===Object&&self,nz=If||rz||Function("return this")(),nt=nz;var oz=nt.Symbol,wr=oz;i();var DC=Object.prototype,iz=DC.hasOwnProperty,az=DC.toString,Fu=wr?wr.toStringTag:void 0;function sz(e){var t=iz.call(e,Fu),r=e[Fu];try{e[Fu]=void 0;var n=!0}catch{}var o=az.call(e);return n&&(t?e[Fu]=r:delete e[Fu]),o}var EC=sz;i();var uz=Object.prototype,lz=uz.toString;function cz(e){return lz.call(e)}var PC=cz;var fz="[object Null]",pz="[object Undefined]",TC=wr?wr.toStringTag:void 0;function dz(e){return e==null?e===void 0?pz:fz:TC&&TC in Object(e)?EC(e):PC(e)}var pr=dz;i();i();function mz(e,t){return function(r){return e(t(r))}}var kf=mz;var hz=kf(Object.getPrototypeOf,Object),Ga=hz;i();function gz(e){return e!=null&&typeof e=="object"}var Yt=gz;var vz="[object Object]",yz=Function.prototype,bz=Object.prototype,AC=yz.toString,Cz=bz.hasOwnProperty,xz=AC.call(Object);function wz(e){if(!Yt(e)||pr(e)!=vz)return!1;var t=Ga(e);if(t===null)return!0;var r=Cz.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&AC.call(r)==xz}var X0=wz;i();i();i();i();i();function Sz(){this.__data__=[],this.size=0}var RC=Sz;i();i();i();function Dz(e,t){return e===t||e!==e&&t!==t}var Nf=Dz;function Ez(e,t){for(var r=e.length;r--;)if(Nf(e[r][0],t))return r;return-1}var xo=Ez;var Pz=Array.prototype,Tz=Pz.splice;function Az(e){var t=this.__data__,r=xo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tz.call(t,r,1),--this.size,!0}var FC=Az;i();function Rz(e){var t=this.__data__,r=xo(t,e);return r<0?void 0:t[r][1]}var OC=Rz;i();function Fz(e){return xo(this.__data__,e)>-1}var BC=Fz;i();function Oz(e,t){var r=this.__data__,n=xo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var MC=Oz;function Ha(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])}}Ha.prototype.clear=RC;Ha.prototype.delete=FC;Ha.prototype.get=OC;Ha.prototype.has=BC;Ha.prototype.set=MC;var wo=Ha;i();function Bz(){this.__data__=new wo,this.size=0}var IC=Bz;i();function Mz(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var kC=Mz;i();function Iz(e){return this.__data__.get(e)}var NC=Iz;i();function kz(e){return this.__data__.has(e)}var VC=kz;i();i();i();i();i();i();function Nz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=Nz;var Vz="[object AsyncFunction]",Lz="[object Function]",$z="[object GeneratorFunction]",zz="[object Proxy]";function Gz(e){if(!Qr(e))return!1;var t=pr(e);return t==Lz||t==$z||t==Vz||t==zz}var Vf=Gz;i();i();var Hz=nt["__core-js_shared__"],Lf=Hz;var LC=function(){var e=/[^.]+$/.exec(Lf&&Lf.keys&&Lf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jz(e){return!!LC&&LC in e}var $C=jz;i();var _z=Function.prototype,Wz=_z.toString;function Uz(e){if(e!=null){try{return Wz.call(e)}catch{}try{return e+""}catch{}}return""}var Bn=Uz;var Kz=/[\\^$.*+?()[\]{}|]/g,qz=/^\[object .+?Constructor\]$/,Xz=Function.prototype,Yz=Object.prototype,Jz=Xz.toString,Zz=Yz.hasOwnProperty,Qz=RegExp("^"+Jz.call(Zz).replace(Kz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eG(e){if(!Qr(e)||$C(e))return!1;var t=Vf(e)?Qz:qz;return t.test(Bn(e))}var zC=eG;i();function tG(e,t){return e?.[t]}var GC=tG;function rG(e,t){var r=GC(e,t);return zC(r)?r:void 0}var Jt=rG;var nG=Jt(nt,"Map"),So=nG;i();i();i();i();i();var oG=Jt(Object,"create"),Mn=oG;function iG(){this.__data__=Mn?Mn(null):{},this.size=0}var HC=iG;i();function aG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jC=aG;i();var sG="__lodash_hash_undefined__",uG=Object.prototype,lG=uG.hasOwnProperty;function cG(e){var t=this.__data__;if(Mn){var r=t[e];return r===sG?void 0:r}return lG.call(t,e)?t[e]:void 0}var _C=cG;i();var fG=Object.prototype,pG=fG.hasOwnProperty;function dG(e){var t=this.__data__;return Mn?t[e]!==void 0:pG.call(t,e)}var WC=dG;i();var mG="__lodash_hash_undefined__";function hG(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Mn&&t===void 0?mG:t,this}var UC=hG;function ja(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])}}ja.prototype.clear=HC;ja.prototype.delete=jC;ja.prototype.get=_C;ja.prototype.has=WC;ja.prototype.set=UC;var Y0=ja;function gG(){this.size=0,this.__data__={hash:new Y0,map:new(So||wo),string:new Y0}}var KC=gG;i();i();i();function vG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qC=vG;function yG(e,t){var r=e.__data__;return qC(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Do=yG;function bG(e){var t=Do(this,e).delete(e);return this.size-=t?1:0,t}var XC=bG;i();function CG(e){return Do(this,e).get(e)}var YC=CG;i();function xG(e){return Do(this,e).has(e)}var JC=xG;i();function wG(e,t){var r=Do(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var ZC=wG;function _a(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])}}_a.prototype.clear=KC;_a.prototype.delete=XC;_a.prototype.get=YC;_a.prototype.has=JC;_a.prototype.set=ZC;var Ou=_a;var SG=200;function DG(e,t){var r=this.__data__;if(r instanceof wo){var n=r.__data__;if(!So||n.length<SG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ou(n)}return r.set(e,t),this.size=r.size,this}var QC=DG;function Wa(e){var t=this.__data__=new wo(e);this.size=t.size}Wa.prototype.clear=IC;Wa.prototype.delete=kC;Wa.prototype.get=NC;Wa.prototype.has=VC;Wa.prototype.set=QC;var ex=Wa;i();function EG(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var tx=EG;i();i();i();var PG=function(){try{var e=Jt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),J0=PG;function TG(e,t,r){t=="__proto__"&&J0?J0(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $f=TG;var AG=Object.prototype,RG=AG.hasOwnProperty;function FG(e,t,r){var n=e[t];(!(RG.call(e,t)&&Nf(n,r))||r===void 0&&!(t in e))&&$f(e,t,r)}var zf=FG;i();i();function OG(e,t,r,n){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),o?$f(r,u,l):zf(r,u,l)}return r}var Eo=OG;i();i();i();function BG(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var rx=BG;i();i();var MG="[object Arguments]";function IG(e){return Yt(e)&&pr(e)==MG}var Z0=IG;var nx=Object.prototype,kG=nx.hasOwnProperty,NG=nx.propertyIsEnumerable,VG=Z0(function(){return arguments}())?Z0:function(e){return Yt(e)&&kG.call(e,"callee")&&!NG.call(e,"callee")},ox=VG;i();var LG=Array.isArray,en=LG;i();i();function $G(){return!1}var ix=$G;var ux=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ax=ux&&typeof module=="object"&&module&&!module.nodeType&&module,zG=ax&&ax.exports===ux,sx=zG?nt.Buffer:void 0,GG=sx?sx.isBuffer:void 0,HG=GG||ix,Gf=HG;i();var jG=9007199254740991,_G=/^(?:0|[1-9]\d*)$/;function WG(e,t){var r=typeof e;return t=t??jG,!!t&&(r=="number"||r!="symbol"&&_G.test(e))&&e>-1&&e%1==0&&e<t}var lx=WG;i();i();i();var UG=9007199254740991;function KG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UG}var Hf=KG;var qG="[object Arguments]",XG="[object Array]",YG="[object Boolean]",JG="[object Date]",ZG="[object Error]",QG="[object Function]",eH="[object Map]",tH="[object Number]",rH="[object Object]",nH="[object RegExp]",oH="[object Set]",iH="[object String]",aH="[object WeakMap]",sH="[object ArrayBuffer]",uH="[object DataView]",lH="[object Float32Array]",cH="[object Float64Array]",fH="[object Int8Array]",pH="[object Int16Array]",dH="[object Int32Array]",mH="[object Uint8Array]",hH="[object Uint8ClampedArray]",gH="[object Uint16Array]",vH="[object Uint32Array]",Le={};Le[lH]=Le[cH]=Le[fH]=Le[pH]=Le[dH]=Le[mH]=Le[hH]=Le[gH]=Le[vH]=!0;Le[qG]=Le[XG]=Le[sH]=Le[YG]=Le[uH]=Le[JG]=Le[ZG]=Le[QG]=Le[eH]=Le[tH]=Le[rH]=Le[nH]=Le[oH]=Le[iH]=Le[aH]=!1;function yH(e){return Yt(e)&&Hf(e.length)&&!!Le[pr(e)]}var cx=yH;i();function bH(e){return function(t){return e(t)}}var Ua=bH;i();var fx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bu=fx&&typeof module=="object"&&module&&!module.nodeType&&module,CH=Bu&&Bu.exports===fx,Q0=CH&&If.process,xH=function(){try{var e=Bu&&Bu.require&&Bu.require("util").types;return e||Q0&&Q0.binding&&Q0.binding("util")}catch{}}(),In=xH;var px=In&&In.isTypedArray,wH=px?Ua(px):cx,dx=wH;var SH=Object.prototype,DH=SH.hasOwnProperty;function EH(e,t){var r=en(e),n=!r&&ox(e),o=!r&&!n&&Gf(e),a=!r&&!n&&!o&&dx(e),s=r||n||o||a,u=s?rx(e.length,String):[],l=u.length;for(var c in e)(t||DH.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||lx(c,l)))&&u.push(c);return u}var jf=EH;i();i();var PH=Object.prototype;function TH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||PH;return e===r}var Ka=TH;i();var AH=kf(Object.keys,Object),mx=AH;var RH=Object.prototype,FH=RH.hasOwnProperty;function OH(e){if(!Ka(e))return mx(e);var t=[];for(var r in Object(e))FH.call(e,r)&&r!="constructor"&&t.push(r);return t}var hx=OH;i();function BH(e){return e!=null&&Hf(e.length)&&!Vf(e)}var _f=BH;function MH(e){return _f(e)?jf(e):hx(e)}var qa=MH;function IH(e,t){return e&&Eo(t,qa(t),e)}var gx=IH;i();i();i();i();function kH(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var vx=kH;var NH=Object.prototype,VH=NH.hasOwnProperty;function LH(e){if(!Qr(e))return vx(e);var t=Ka(e),r=[];for(var n in e)n=="constructor"&&(t||!VH.call(e,n))||r.push(n);return r}var yx=LH;function $H(e){return _f(e)?jf(e,!0):yx(e)}var Xa=$H;function zH(e,t){return e&&Eo(t,Xa(t),e)}var bx=zH;i();var Sx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cx=Sx&&typeof module=="object"&&module&&!module.nodeType&&module,GH=Cx&&Cx.exports===Sx,xx=GH?nt.Buffer:void 0,wx=xx?xx.allocUnsafe:void 0;function HH(e,t){if(t)return e.slice();var r=e.length,n=wx?wx(r):new e.constructor(r);return e.copy(n),n}var Dx=HH;i();function jH(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Wf=jH;i();i();i();function _H(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[o++]=s)}return a}var Ex=_H;i();function WH(){return[]}var Uf=WH;var UH=Object.prototype,KH=UH.propertyIsEnumerable,Px=Object.getOwnPropertySymbols,qH=Px?function(e){return e==null?[]:(e=Object(e),Ex(Px(e),function(t){return KH.call(e,t)}))}:Uf,Ya=qH;function XH(e,t){return Eo(e,Ya(e),t)}var Tx=XH;i();i();i();function YH(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Kf=YH;var JH=Object.getOwnPropertySymbols,ZH=JH?function(e){for(var t=[];e;)Kf(t,Ya(e)),e=Ga(e);return t}:Uf,qf=ZH;function QH(e,t){return Eo(e,qf(e),t)}var Ax=QH;i();i();function ej(e,t,r){var n=t(e);return en(e)?n:Kf(n,r(e))}var Xf=ej;function tj(e){return Xf(e,qa,Ya)}var Rx=tj;i();function rj(e){return Xf(e,Xa,qf)}var Fx=rj;i();i();var nj=Jt(nt,"DataView"),Yf=nj;i();var oj=Jt(nt,"Promise"),Jf=oj;i();var ij=Jt(nt,"Set"),Zf=ij;i();var aj=Jt(nt,"WeakMap"),Qf=aj;var Ox="[object Map]",sj="[object Object]",Bx="[object Promise]",Mx="[object Set]",Ix="[object WeakMap]",kx="[object DataView]",uj=Bn(Yf),lj=Bn(So),cj=Bn(Jf),fj=Bn(Zf),pj=Bn(Qf),li=pr;(Yf&&li(new Yf(new ArrayBuffer(1)))!=kx||So&&li(new So)!=Ox||Jf&&li(Jf.resolve())!=Bx||Zf&&li(new Zf)!=Mx||Qf&&li(new Qf)!=Ix)&&(li=function(e){var t=pr(e),r=t==sj?e.constructor:void 0,n=r?Bn(r):"";if(n)switch(n){case uj:return kx;case lj:return Ox;case cj:return Bx;case fj:return Mx;case pj:return Ix}return t});var Ja=li;i();var dj=Object.prototype,mj=dj.hasOwnProperty;function hj(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&mj.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Nx=hj;i();i();i();var gj=nt.Uint8Array,eh=gj;function vj(e){var t=new e.constructor(e.byteLength);return new eh(t).set(new eh(e)),t}var Za=vj;i();function yj(e,t){var r=t?Za(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Vx=yj;i();var bj=/\w*$/;function Cj(e){var t=new e.constructor(e.source,bj.exec(e));return t.lastIndex=e.lastIndex,t}var Lx=Cj;i();var $x=wr?wr.prototype:void 0,zx=$x?$x.valueOf:void 0;function xj(e){return zx?Object(zx.call(e)):{}}var Gx=xj;i();function wj(e,t){var r=t?Za(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Hx=wj;var Sj="[object Boolean]",Dj="[object Date]",Ej="[object Map]",Pj="[object Number]",Tj="[object RegExp]",Aj="[object Set]",Rj="[object String]",Fj="[object Symbol]",Oj="[object ArrayBuffer]",Bj="[object DataView]",Mj="[object Float32Array]",Ij="[object Float64Array]",kj="[object Int8Array]",Nj="[object Int16Array]",Vj="[object Int32Array]",Lj="[object Uint8Array]",$j="[object Uint8ClampedArray]",zj="[object Uint16Array]",Gj="[object Uint32Array]";function Hj(e,t,r){var n=e.constructor;switch(t){case Oj:return Za(e);case Sj:case Dj:return new n(+e);case Bj:return Vx(e,r);case Mj:case Ij:case kj:case Nj:case Vj:case Lj:case $j:case zj:case Gj:return Hx(e,r);case Ej:return new n;case Pj:case Rj:return new n(e);case Tj:return Lx(e);case Aj:return new n;case Fj:return Gx(e)}}var jx=Hj;i();i();var _x=Object.create,jj=function(){function e(){}return function(t){if(!Qr(t))return{};if(_x)return _x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Wx=jj;function _j(e){return typeof e.constructor=="function"&&!Ka(e)?Wx(Ga(e)):{}}var Ux=_j;i();i();var Wj="[object Map]";function Uj(e){return Yt(e)&&Ja(e)==Wj}var Kx=Uj;var qx=In&&In.isMap,Kj=qx?Ua(qx):Kx,Xx=Kj;i();i();var qj="[object Set]";function Xj(e){return Yt(e)&&Ja(e)==qj}var Yx=Xj;var Jx=In&&In.isSet,Yj=Jx?Ua(Jx):Yx,Zx=Yj;var Jj=1,Zj=2,Qj=4,Qx="[object Arguments]",e_="[object Array]",t_="[object Boolean]",r_="[object Date]",n_="[object Error]",ew="[object Function]",o_="[object GeneratorFunction]",i_="[object Map]",a_="[object Number]",tw="[object Object]",s_="[object RegExp]",u_="[object Set]",l_="[object String]",c_="[object Symbol]",f_="[object WeakMap]",p_="[object ArrayBuffer]",d_="[object DataView]",m_="[object Float32Array]",h_="[object Float64Array]",g_="[object Int8Array]",v_="[object Int16Array]",y_="[object Int32Array]",b_="[object Uint8Array]",C_="[object Uint8ClampedArray]",x_="[object Uint16Array]",w_="[object Uint32Array]",ke={};ke[Qx]=ke[e_]=ke[p_]=ke[d_]=ke[t_]=ke[r_]=ke[m_]=ke[h_]=ke[g_]=ke[v_]=ke[y_]=ke[i_]=ke[a_]=ke[tw]=ke[s_]=ke[u_]=ke[l_]=ke[c_]=ke[b_]=ke[C_]=ke[x_]=ke[w_]=!0;ke[n_]=ke[ew]=ke[f_]=!1;function ep(e,t,r,n,o,a){var s,u=t&Jj,l=t&Zj,c=t&Qj;if(r&&(s=o?r(e,n,o,a):r(e)),s!==void 0)return s;if(!Qr(e))return e;var p=en(e);if(p){if(s=Nx(e),!u)return Wf(e,s)}else{var d=Ja(e),m=d==ew||d==o_;if(Gf(e))return Dx(e,u);if(d==tw||d==Qx||m&&!o){if(s=l||m?{}:Ux(e),!u)return l?Ax(e,bx(s,e)):Tx(e,gx(s,e))}else{if(!ke[d])return o?e:{};s=jx(e,d,u)}}a||(a=new ex);var g=a.get(e);if(g)return g;a.set(e,s),Zx(e)?e.forEach(function(b){s.add(ep(b,t,r,b,e,a))}):Xx(e)&&e.forEach(function(b,y){s.set(y,ep(b,t,r,y,e,a))});var v=c?l?Fx:Rx:l?Xa:qa,h=p?void 0:v(e);return tx(h||e,function(b,y){h&&(y=b,b=e[y]),zf(s,y,ep(b,t,r,y,e,a))}),s}var tp=ep;var S_=1,D_=4;function E_(e){return tp(e,S_|D_)}var Qa=E_;var kn=U(iw());import{createContext as oW,useContext as iW,Children as mh,useRef as Po,useEffect as To,useState as aW,useCallback as ot,useMemo as Tw,useImperativeHandle as sW,createElement as Ao,useLayoutEffect as uW,forwardRef as lW,Component as cW}from"react";i();var A_=!0;function R_(e,t){if(!A_){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var aw=R_;i();var F_=4;function O_(e){return tp(e,F_)}var rh=O_;i();i();function B_(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 rp=B_;i();var M_="[object Symbol]";function I_(e){return typeof e=="symbol"||Yt(e)&&pr(e)==M_}var es=I_;i();i();i();var k_="Expected a function";function nh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(k_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var s=e.apply(this,n);return r.cache=a.set(o,s)||a,s};return r.cache=new(nh.Cache||Ou),r}nh.Cache=Ou;var sw=nh;var N_=500;function V_(e){var t=sw(e,function(n){return r.size===N_&&r.clear(),n}),r=t.cache;return t}var uw=V_;var L_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$_=/\\(\\)?/g,z_=uw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_,function(r,n,o,a){t.push(o?a.replace($_,"$1"):n||r)}),t}),lw=z_;i();var G_=1/0;function H_(e){if(typeof e=="string"||es(e))return e;var t=e+"";return t=="0"&&1/e==-G_?"-0":t}var cw=H_;i();i();var j_=1/0,fw=wr?wr.prototype:void 0,pw=fw?fw.toString:void 0;function dw(e){if(typeof e=="string")return e;if(en(e))return rp(e,dw)+"";if(es(e))return pw?pw.call(e):"";var t=e+"";return t=="0"&&1/e==-j_?"-0":t}var mw=dw;function __(e){return e==null?"":mw(e)}var hw=__;function W_(e){return en(e)?rp(e,cw):es(e)?[e]:Wf(lw(hw(e)))}var oh=W_;var fW=U(Pw());function Re(){return Re=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},Re.apply(this,arguments)}function pW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fi(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Aw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mp=oW(void 0);mp.displayName="FormikContext";var dW=mp.Provider,lje=mp.Consumer;function di(){var e=iW(mp);return e||aw(!1),e}var Rw=function(t){return Array.isArray(t)&&t.length===0},Vt=function(t){return typeof t=="function"},Mu=function(t){return t!==null&&typeof t=="object"},mW=function(t){return String(Math.floor(Number(t)))===t},ch=function(t){return Object.prototype.toString.call(t)==="[object String]"};var Ow=function(t){return mh.count(t)===0},fh=function(t){return Mu(t)&&Vt(t.then)};function ft(e,t,r,n){n===void 0&&(n=0);for(var o=oh(t);e&&n<o.length;)e=e[o[n++]];return n!==o.length&&!e||e===void 0?r:e}function tn(e,t,r){for(var n=rh(e),o=n,a=0,s=oh(t);a<s.length-1;a++){var u=s[a],l=ft(e,s.slice(0,a+1));if(l&&(Mu(l)||Array.isArray(l)))o=o[u]=rh(l);else{var c=s[a+1];o=o[u]=mW(c)&&Number(c)>=0?[]:{}}}return(a===0?e:o)[s[a]]===r?e:(r===void 0?delete o[s[a]]:o[s[a]]=r,a===0&&r===void 0&&delete n[s[a]],n)}function Bw(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var s=a[o],u=e[s];Mu(u)?r.get(u)||(r.set(u,!0),n[s]=Array.isArray(u)?[]:{},Bw(u,t,r,n[s])):n[s]=t}return n}function hW(e,t){switch(t.type){case"SET_VALUES":return Re({},e,{values:t.payload});case"SET_TOUCHED":return Re({},e,{touched:t.payload});case"SET_ERRORS":return(0,kn.default)(e.errors,t.payload)?e:Re({},e,{errors:t.payload});case"SET_STATUS":return Re({},e,{status:t.payload});case"SET_ISSUBMITTING":return Re({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Re({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Re({},e,{values:tn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Re({},e,{touched:tn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Re({},e,{errors:tn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Re({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Re({},e,{touched:Bw(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Re({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Re({},e,{isSubmitting:!1});default:return e}}var ci={},dp={};function gW(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,o=n===void 0?!0:n,a=e.validateOnMount,s=a===void 0?!1:a,u=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,p=e.onSubmit,d=fi(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=Re({validateOnChange:r,validateOnBlur:o,validateOnMount:s,onSubmit:p},d),g=Po(m.initialValues),v=Po(m.initialErrors||ci),h=Po(m.initialTouched||dp),b=Po(m.initialStatus),y=Po(!1),x=Po({});To(function(){return y.current=!0,function(){y.current=!1}},[]);var w=aW(0),S=w[1],E=Po({values:Qa(m.initialValues),errors:Qa(m.initialErrors)||ci,touched:Qa(m.initialTouched)||dp,status:Qa(m.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),D=E.current,P=ot(function(O){var J=E.current;E.current=hW(J,O),J!==E.current&&S(function(ee){return ee+1})},[]),R=ot(function(O,J){return new Promise(function(ee,X){var se=m.validate(O,J);se==null?ee(ci):fh(se)?se.then(function(we){ee(we||ci)},function(we){X(we)}):ee(se)})},[m.validate]),F=ot(function(O,J){var ee=m.validationSchema,X=Vt(ee)?ee(J):ee,se=J&&X.validateAt?X.validateAt(J,O):yW(O,X);return new Promise(function(we,Pe){se.then(function(){we(ci)},function(yt){yt.name==="ValidationError"?we(vW(yt)):Pe(yt)})})},[m.validationSchema]),M=ot(function(O,J){return new Promise(function(ee){return ee(x.current[O].validate(J))})},[]),H=ot(function(O){var J=Object.keys(x.current).filter(function(X){return Vt(x.current[X].validate)}),ee=J.length>0?J.map(function(X){return M(X,ft(O,X))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ee).then(function(X){return X.reduce(function(se,we,Pe){return we==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||we&&(se=tn(se,J[Pe],we)),se},{})})},[M]),I=ot(function(O){return Promise.all([H(O),m.validationSchema?F(O):{},m.validate?R(O):{}]).then(function(J){var ee=J[0],X=J[1],se=J[2],we=Mf.all([ee,X,se],{arrayMerge:bW});return we})},[m.validate,m.validationSchema,H,R,F]),L=Sr(function(O){return O===void 0&&(O=D.values),P({type:"SET_ISVALIDATING",payload:!0}),I(O).then(function(J){return y.current&&(P({type:"SET_ISVALIDATING",payload:!1}),P({type:"SET_ERRORS",payload:J})),J})});To(function(){s&&y.current===!0&&(0,kn.default)(g.current,m.initialValues)&&L(g.current)},[s,L]);var N=ot(function(O){var J=O&&O.values?O.values:g.current,ee=O&&O.errors?O.errors:v.current?v.current:m.initialErrors||{},X=O&&O.touched?O.touched:h.current?h.current:m.initialTouched||{},se=O&&O.status?O.status:b.current?b.current:m.initialStatus;g.current=J,v.current=ee,h.current=X,b.current=se;var we=function(){P({type:"RESET_FORM",payload:{isSubmitting:!!O&&!!O.isSubmitting,errors:ee,touched:X,status:se,values:J,isValidating:!!O&&!!O.isValidating,submitCount:O&&O.submitCount&&typeof O.submitCount=="number"?O.submitCount:0}})};if(m.onReset){var Pe=m.onReset(D.values,Ee);fh(Pe)?Pe.then(we):we()}else we()},[m.initialErrors,m.initialStatus,m.initialTouched,m.onReset]);To(function(){y.current===!0&&!(0,kn.default)(g.current,m.initialValues)&&c&&(g.current=m.initialValues,N(),s&&L(g.current))},[c,m.initialValues,N,s,L]),To(function(){c&&y.current===!0&&!(0,kn.default)(v.current,m.initialErrors)&&(v.current=m.initialErrors||ci,P({type:"SET_ERRORS",payload:m.initialErrors||ci}))},[c,m.initialErrors]),To(function(){c&&y.current===!0&&!(0,kn.default)(h.current,m.initialTouched)&&(h.current=m.initialTouched||dp,P({type:"SET_TOUCHED",payload:m.initialTouched||dp}))},[c,m.initialTouched]),To(function(){c&&y.current===!0&&!(0,kn.default)(b.current,m.initialStatus)&&(b.current=m.initialStatus,P({type:"SET_STATUS",payload:m.initialStatus}))},[c,m.initialStatus,m.initialTouched]);var $=Sr(function(O){if(x.current[O]&&Vt(x.current[O].validate)){var J=ft(D.values,O),ee=x.current[O].validate(J);return fh(ee)?(P({type:"SET_ISVALIDATING",payload:!0}),ee.then(function(X){return X}).then(function(X){P({type:"SET_FIELD_ERROR",payload:{field:O,value:X}}),P({type:"SET_ISVALIDATING",payload:!1})})):(P({type:"SET_FIELD_ERROR",payload:{field:O,value:ee}}),Promise.resolve(ee))}else if(m.validationSchema)return P({type:"SET_ISVALIDATING",payload:!0}),F(D.values,O).then(function(X){return X}).then(function(X){P({type:"SET_FIELD_ERROR",payload:{field:O,value:ft(X,O)}}),P({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),te=ot(function(O,J){var ee=J.validate;x.current[O]={validate:ee}},[]),K=ot(function(O){delete x.current[O]},[]),re=Sr(function(O,J){P({type:"SET_TOUCHED",payload:O});var ee=J===void 0?o:J;return ee?L(D.values):Promise.resolve()}),G=ot(function(O){P({type:"SET_ERRORS",payload:O})},[]),ae=Sr(function(O,J){var ee=Vt(O)?O(D.values):O;P({type:"SET_VALUES",payload:ee});var X=J===void 0?r:J;return X?L(ee):Promise.resolve()}),ve=ot(function(O,J){P({type:"SET_FIELD_ERROR",payload:{field:O,value:J}})},[]),de=Sr(function(O,J,ee){P({type:"SET_FIELD_VALUE",payload:{field:O,value:J}});var X=ee===void 0?r:ee;return X?L(tn(D.values,O,J)):Promise.resolve()}),He=ot(function(O,J){var ee=J,X=O,se;if(!ch(O)){O.persist&&O.persist();var we=O.target?O.target:O.currentTarget,Pe=we.type,yt=we.name,to=we.id,kr=we.value,W1=we.checked,n5=we.outerHTML,Xi=we.options,U1=we.multiple;ee=J||yt||to,X=/number|range/.test(Pe)?(se=parseFloat(kr),isNaN(se)?"":se):/checkbox/.test(Pe)?xW(ft(D.values,ee),W1,kr):Xi&&U1?CW(Xi):kr}ee&&de(ee,X)},[de,D.values]),A=Sr(function(O){if(ch(O))return function(J){return He(J,O)};He(O)}),_=Sr(function(O,J,ee){J===void 0&&(J=!0),P({type:"SET_FIELD_TOUCHED",payload:{field:O,value:J}});var X=ee===void 0?o:ee;return X?L(D.values):Promise.resolve()}),z=ot(function(O,J){O.persist&&O.persist();var ee=O.target,X=ee.name,se=ee.id,we=ee.outerHTML,Pe=J||X||se;_(Pe,!0)},[_]),j=Sr(function(O){if(ch(O))return function(J){return z(J,O)};z(O)}),ue=ot(function(O){Vt(O)?P({type:"SET_FORMIK_STATE",payload:O}):P({type:"SET_FORMIK_STATE",payload:function(){return O}})},[]),ie=ot(function(O){P({type:"SET_STATUS",payload:O})},[]),me=ot(function(O){P({type:"SET_ISSUBMITTING",payload:O})},[]),Ce=Sr(function(){return P({type:"SUBMIT_ATTEMPT"}),L().then(function(O){var J=O instanceof Error,ee=!J&&Object.keys(O).length===0;if(ee){var X;try{if(X=xe(),X===void 0)return}catch(se){throw se}return Promise.resolve(X).then(function(se){return y.current&&P({type:"SUBMIT_SUCCESS"}),se}).catch(function(se){if(y.current)throw P({type:"SUBMIT_FAILURE"}),se})}else if(y.current&&(P({type:"SUBMIT_FAILURE"}),J))throw O})}),Se=Sr(function(O){if(O&&O.preventDefault&&Vt(O.preventDefault)&&O.preventDefault(),O&&O.stopPropagation&&Vt(O.stopPropagation)&&O.stopPropagation(),0)var J;Ce().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Ee={resetForm:N,validateForm:L,validateField:$,setErrors:G,setFieldError:ve,setFieldTouched:_,setFieldValue:de,setStatus:ie,setSubmitting:me,setTouched:re,setValues:ae,setFormikState:ue,submitForm:Ce},xe=Sr(function(){return p(D.values,Ee)}),gt=Sr(function(O){O&&O.preventDefault&&Vt(O.preventDefault)&&O.preventDefault(),O&&O.stopPropagation&&Vt(O.stopPropagation)&&O.stopPropagation(),N()}),vt=ot(function(O){return{value:ft(D.values,O),error:ft(D.errors,O),touched:!!ft(D.touched,O),initialValue:ft(g.current,O),initialTouched:!!ft(h.current,O),initialError:ft(v.current,O)}},[D.errors,D.touched,D.values]),je=ot(function(O){return{setValue:function(ee,X){return de(O,ee,X)},setTouched:function(ee,X){return _(O,ee,X)},setError:function(ee){return ve(O,ee)}}},[de,_,ve]),ir=ot(function(O){var J=Mu(O),ee=J?O.name:O,X=ft(D.values,ee),se={name:ee,value:X,onChange:A,onBlur:j};if(J){var we=O.type,Pe=O.value,yt=O.as,to=O.multiple;we==="checkbox"?Pe===void 0?se.checked=!!X:(se.checked=!!(Array.isArray(X)&&~X.indexOf(Pe)),se.value=Pe):we==="radio"?(se.checked=X===Pe,se.value=Pe):yt==="select"&&to&&(se.value=se.value||[],se.multiple=!0)}return se},[j,A,D.values]),Ht=Tw(function(){return!(0,kn.default)(g.current,D.values)},[g.current,D.values]),St=Tw(function(){return typeof u<"u"?Ht?D.errors&&Object.keys(D.errors).length===0:u!==!1&&Vt(u)?u(m):u:D.errors&&Object.keys(D.errors).length===0},[u,Ht,D.errors,m]),ar=Re({},D,{initialValues:g.current,initialErrors:v.current,initialTouched:h.current,initialStatus:b.current,handleBlur:j,handleChange:A,handleReset:gt,handleSubmit:Se,resetForm:N,setErrors:G,setFormikState:ue,setFieldTouched:_,setFieldValue:de,setFieldError:ve,setStatus:ie,setSubmitting:me,setTouched:re,setValues:ae,submitForm:Ce,validateForm:L,validateField:$,isValid:St,dirty:Ht,unregisterField:K,registerField:te,getFieldProps:ir,getFieldMeta:vt,getFieldHelpers:je,validateOnBlur:o,validateOnChange:r,validateOnMount:s});return ar}function Mw(e){var t=gW(e),r=e.component,n=e.children,o=e.render,a=e.innerRef;return sW(a,function(){return t}),Ao(dW,{value:t},r?Ao(r,t):o?o(t):n?Vt(n)?n(t):Ow(n)?null:mh.only(n):null)}function vW(e){var t={};if(e.inner){if(e.inner.length===0)return tn(t,e.path,e.message);for(var o=e.inner,r=Array.isArray(o),n=0,o=r?o:o[Symbol.iterator]();;){var a;if(r){if(n>=o.length)break;a=o[n++]}else{if(n=o.next(),n.done)break;a=n.value}var s=a;ft(t,s.path)||(t=tn(t,s.path,s.message))}}return t}function yW(e,t,r,n){r===void 0&&(r=!1);var o=dh(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}function dh(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||X0(o)?dh(o):o!==""?o:void 0}):X0(e[n])?t[n]=dh(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function bW(e,t,r){var n=e.slice();return t.forEach(function(a,s){if(typeof n[s]>"u"){var u=r.clone!==!1,l=u&&r.isMergeableObject(a);n[s]=l?Mf(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?n[s]=Mf(e[s],a,r):e.indexOf(a)===-1&&n.push(a)}),n}function CW(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function xW(e,t,r){if(typeof e=="boolean")return!!t;var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,a=e.indexOf(r),o=a>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!o?n.concat(r):o?n.slice(0,a).concat(n.slice(a+1)):n}var wW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?uW:To;function Sr(e){var t=Po(e);return wW(function(){t.current=e}),ot(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 Iw(e){var t=e.validate,r=e.name,n=e.render,o=e.children,a=e.as,s=e.component,u=e.className,l=fi(e,["validate","name","render","children","as","component","className"]),c=di(),p=fi(c,["validate","validationSchema"]),d=p.registerField,m=p.unregisterField;To(function(){return d(r,{validate:t}),function(){m(r)}},[d,m,r,t]);var g=p.getFieldProps(Re({name:r},l)),v=p.getFieldMeta(r),h={field:g,form:p};if(n)return n(Re({},h,{meta:v}));if(Vt(o))return o(Re({},h,{meta:v}));if(s){if(typeof s=="string"){var b=l.innerRef,y=fi(l,["innerRef"]);return Ao(s,Re({ref:b},g,y,{className:u}),o)}return Ao(s,Re({field:g,form:p},l,{className:u}),o)}var x=a||"input";if(typeof x=="string"){var w=l.innerRef,S=fi(l,["innerRef"]);return Ao(x,Re({ref:w},g,S,{className:u}),o)}return Ao(x,Re({},g,l,{className:u}),o)}var hh=lW(function(e,t){var r=e.action,n=fi(e,["action"]),o=r??"#",a=di(),s=a.handleReset,u=a.handleSubmit;return Ao("form",Re({onSubmit:u,ref:t,onReset:s,action:o},n))});hh.displayName="Form";var SW=function(t,r,n){var o=pi(t),a=o[r];return o.splice(r,1),o.splice(n,0,a),o},DW=function(t,r,n){var o=pi(t),a=o[r];return o[r]=o[n],o[n]=a,o},ph=function(t,r,n){var o=pi(t);return o.splice(r,0,n),o},EW=function(t,r,n){var o=pi(t);return o[r]=n,o},pi=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(Re({},t,{length:r+1}))}else return[]},Fw=function(t,r){var n=typeof t=="function"?t:r;return function(o){if(Array.isArray(o)||Mu(o)){var a=pi(o);return n(a)}return o}},PW=function(e){pW(t,e);function t(n){var o;return o=e.call(this,n)||this,o.updateArrayField=function(a,s,u){var l=o.props,c=l.name,p=l.formik.setFormikState;p(function(d){var m=Fw(u,a),g=Fw(s,a),v=tn(d.values,c,a(ft(d.values,c))),h=u?m(ft(d.errors,c)):void 0,b=s?g(ft(d.touched,c)):void 0;return Rw(h)&&(h=void 0),Rw(b)&&(b=void 0),Re({},d,{values:v,errors:u?tn(d.errors,c,h):d.errors,touched:s?tn(d.touched,c,b):d.touched})})},o.push=function(a){return o.updateArrayField(function(s){return[].concat(pi(s),[Qa(a)])},!1,!1)},o.handlePush=function(a){return function(){return o.push(a)}},o.swap=function(a,s){return o.updateArrayField(function(u){return DW(u,a,s)},!0,!0)},o.handleSwap=function(a,s){return function(){return o.swap(a,s)}},o.move=function(a,s){return o.updateArrayField(function(u){return SW(u,a,s)},!0,!0)},o.handleMove=function(a,s){return function(){return o.move(a,s)}},o.insert=function(a,s){return o.updateArrayField(function(u){return ph(u,a,s)},function(u){return ph(u,a,null)},function(u){return ph(u,a,null)})},o.handleInsert=function(a,s){return function(){return o.insert(a,s)}},o.replace=function(a,s){return o.updateArrayField(function(u){return EW(u,a,s)},!1,!1)},o.handleReplace=function(a,s){return function(){return o.replace(a,s)}},o.unshift=function(a){var s=-1;return o.updateArrayField(function(u){var l=u?[a].concat(u):[a];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(a){return function(){return o.unshift(a)}},o.handleRemove=function(a){return function(){return o.remove(a)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Aw(o)),o.pop=o.pop.bind(Aw(o)),o}var r=t.prototype;return r.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,kn.default)(ft(o.formik.values,o.name),ft(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(o){var a;return this.updateArrayField(function(s){var u=s?pi(s):[];return a||(a=u[o]),Vt(u.splice)&&u.splice(o,1),Vt(u.every)&&u.every(function(l){return l===void 0})?[]:u},!0,!0),a},r.pop=function(){var o;return this.updateArrayField(function(a){var s=a.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},a=this.props,s=a.component,u=a.render,l=a.children,c=a.name,p=a.formik,d=fi(p,["validate","validationSchema"]),m=Re({},o,{form:d,name:c});return s?Ao(s,m):u?u(m):l?typeof l=="function"?l(m):Ow(l)?null:mh.only(l):null},t}(cW);PW.defaultProps={validateOnChange:!0};i();i();import{useState as TW}from"react";var AW=()=>{let[e,t]=TW(!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]};i();i();import{useMemo as RW}from"react";var FW=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e!=null&&e?()=>!0:()=>!1,hp=(e,t,r={},n=[e])=>{let{eventName:o="keydown",eventTarget:a,eventOptions:s}=r,u=RW(()=>{let l=FW(e);return c=>{if(!(["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.nodeName??"")||document.activeElement?.isContentEditable)&&l(c))return t(c)}},n);_0(o,u,a,s)};i();i();import{useState as OW}from"react";var gh=e=>{let[t,r]=OW([!1,null]);return hp(e,n=>r([!0,n]),{eventName:"keydown"},[t]),hp(e,n=>r([!1,n]),{eventName:"keyup"},[t]),t};i();i();i();i();import{useEffect as BW,useRef as MW}from"react";var vh=(e,t)=>{let r=MW(!0);BW(()=>r.current?(r.current=!1,()=>{}):e(),t)};var yh=(e,t=void 0,r=void 0)=>{let[n,o]=gh(e);vh(()=>(!n&&r&&o!==null?r(o):n&&t&&o!==null&&t(o),()=>{}),[n])};i();i();import{useState as IW}from"react";var kW=(e,t,r=window.localStorage)=>{let[n,o]=IW(()=>{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)}]};i();i();var Iu=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})};i();i();import{useEffect as NW}from"react";var ku=(e,t)=>{NW(()=>{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])};i();i();import{useLayoutEffect as VW}from"react";var bh=e=>{VW(()=>{if(e){let t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}}return()=>{}},[e])};i();i();import{useEffect as LW,useRef as $W}from"react";var Nu=e=>{let t=$W();return LW(()=>{t.current=e}),t.current};i();i();var lS=U(Q());import Dp from"styled-components";i();i();var Hw=U(vp()),Dr=U(Q());import{useEffect as mi,useRef as Lw,useState as $w,useCallback as zw}from"react";import{createPortal as UW}from"react-dom";import{createGlobalStyle as KW}from"styled-components";i();i();import{Children as _W}from"react";var Vw=U(Q());import{jsx as Nw}from"react/jsx-runtime";var WW=100,Vu=({children:e})=>{let t=_W.map(e,r=>r)?.filter(Boolean);return Nw(wu,{children:(0,Vw.isNotNil)(t)?t.map(r=>Nw(Cu.div,{animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},style:{willChange:"auto"},transition:{duration:WW/1e3},children:r},r.key)):null})};import{Fragment as YW,jsx as Lu,jsxs as JW}from"react/jsx-runtime";var Ch="is-scroll-locked",qW=KW`
|
|
709
|
+
`;import{jsx as Au,jsxs as P$}from"react/jsx-runtime";var kMe=({children:e,theme:t={},globalStylesIncluded:r=!0,skipAnimations:n=!1,Link:o})=>(n&&(Dn.skipAnimations=!0),P$(k6,{theme:t,children:[r?Au(sC,{}):null,Au(ym,{children:Au(L6,{value:{Link:o},children:Au(Rf,{children:Au(N0,{children:e})})})})]}));i();i();import{useState as T$,useCallback as z0}from"react";var G0=(e=!1)=>{let[t,r]=T$(e),n=z0(()=>r(s=>!s),[]),o=z0(()=>r(!0),[]),a=z0(()=>r(!1),[]);return[t,n,o,a,r]};i();i();import{useCallback as F$}from"react";i();i();import{useEffect as A$,useRef as uC,useState as R$}from"react";var Ff=e=>{let[t,r]=R$(!1),n=uC(),o=uC(e),a=s=>{clearTimeout(n.current),r(!o.current),n.current=window.setTimeout(()=>r(o.current),s)};return A$(()=>()=>clearTimeout(n.current),[]),[t,a]};var O$=(e,t=1500)=>{let[r,n]=Ff(!1),[o,a]=Ff(!1);return[F$(async()=>{try{await Gs(e),t&&t>0&&n(t)}catch(u){u instanceof Error&&a(t)}},[e,t,n,a]),r,o]};i();i();import{useMemo as B$,useState as M$,useRef as I$,useLayoutEffect as k$}from"react";var N$={width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0},H0=()=>{let e=I$(null),[t,r]=M$(N$),n=B$(()=>new window.ResizeObserver(o=>{if(o[0]){let{width:a,height:s,top:u,left:l,bottom:c,right:p,x:d,y:m}=o[0].contentRect;r({width:a,height:s,top:u,left:l,bottom:c,right:p,x:d,y:m})}}),[]);return k$(()=>{if(e.current)return n.observe(e.current),()=>{n.disconnect()}},[n]),[e,t]};i();i();import{useEffect as j0,useRef as lC}from"react";var V$=e=>!!(typeof e=="object"&&e?.addEventListener),_0=(e,t,r=window,n={})=>{let o=lC(),a=lC();j0(()=>{o.current=t},[t]),j0(()=>{a.current=n},[n]),j0(()=>{if(!e||!V$(r))return;let s=u=>o.current!==void 0?o.current(u):()=>{};return r.addEventListener(e,s,a.current),()=>{r.removeEventListener(e,s,a.current)}},[e,r,a])};i();i();var SC=U(Q());import{useRef as wC,useCallback as z$,useEffect as G$}from"react";i();var U0='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, [tabindex="0"], [contenteditable]',L$=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},$$=e=>{let t=e;for(;t&&t!==document.body;){if(L$(t))return!1;t=t.parentNode}return!0},cC=e=>{let t=e.getAttribute("tabindex");return Number.parseInt(t??void 0,10)},fC=e=>{let t=cC(e);return Number.isNaN(t)},Of=e=>{let t=/input|select|textarea|button|object/,r=e.nodeName.toLowerCase(),n=!fC(e);return!!(t.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&$$(e)},K0=e=>{let t=cC(e);return(fC(e)||t>=0)&&Of(e)},pC=e=>Array.from(e.querySelectorAll(U0)).filter(K0),dC=[],za=null,W0=!1,mC=()=>{W0=!0},hC=()=>{if(W0){if(W0=!1,!za||za.contains(document.activeElement))return;(pC(za)[0]??za).focus()}},gC=()=>{let e=document.activeElement;e!==null&&dC.push(e)},vC=()=>{let e=null;try{e=dC.pop(),e&&e.focus()}catch{console.warn(["You tried to return focus to",e,"but it is not in the DOM anymore"].join(" "))}},yC=e=>{za=e,document.addEventListener("focusout",mC,!1),document.addEventListener("focusin",hC,!0)},bC=()=>{za=null,document.removeEventListener("focusout",mC),document.removeEventListener("focusin",hC)},CC=(e,t)=>{let r=pC(e);if(!r.length){t.preventDefault();return}if(!(r[t.shiftKey?0:r.length-1]===document.activeElement||e===document.activeElement))return;t.preventDefault();let a=r[t.shiftKey?r.length-1:0];a&&a.focus()},xC=(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 q0=(e=!0,t={})=>{let r=wC(null),n=wC(null),o=z$(a=>{if(n.current!==null&&n.current(),r.current&&(vC(),bC()),e&&a!==null&&a!==void 0){yC(a),gC();let s=u=>{n.current=t.disableAriaHider??!1?null:xC(u);let l=null;if((0,SC.isNotUndefined)(t.focusSelector)&&(l=typeof t.focusSelector=="string"?u.querySelector(t.focusSelector):t.focusSelector),!l){let c=Array.from(u.querySelectorAll(U0));l=c.find(K0)??c.find(Of)??null,!l&&Of(u)&&(l=u)}l&&l.focus()};setTimeout(()=>{a.ownerDocument&&s(a),a.ownerDocument}),r.current=a}else r.current=null},[e,t.focusSelector,t.disableAriaHider]);return G$(()=>{if(!e)return;let a=s=>{s.key==="Tab"&&r.current&&CC(r.current,s)};return document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}},[e]),o};i();i();import{useCallback as H$,useState as j$}from"react";var _$=()=>{let[,e]=j$(Object.create(null));return H$(()=>{e(Object.create(null))},[e])};i();i();i();var W$=function(t){return U$(t)&&!K$(t)};function U$(e){return!!e&&typeof e=="object"}function K$(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Y$(e)}var q$=typeof Symbol=="function"&&Symbol.for,X$=q$?Symbol.for("react.element"):60103;function Y$(e){return e.$$typeof===X$}function J$(e){return Array.isArray(e)?[]:{}}function Bf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Ru(J$(e),e,t):e}function Z$(e,t,r){return e.concat(t).map(function(n){return Bf(n,r)})}function Q$(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(o){n[o]=Bf(e[o],r)}),Object.keys(t).forEach(function(o){!r.isMergeableObject(t[o])||!e[o]?n[o]=Bf(t[o],r):n[o]=Ru(e[o],t[o],r)}),n}function Ru(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Z$,r.isMergeableObject=r.isMergeableObject||W$;var n=Array.isArray(t),o=Array.isArray(e),a=n===o;return a?n?r.arrayMerge(e,t,r):Q$(e,t,r):Bf(t,r)}Ru.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,o){return Ru(n,o,r)},{})};var ez=Ru,Mf=ez;i();i();i();i();i();var tz=typeof window=="object"&&window&&window.Object===Object&&window,If=tz;var rz=typeof self=="object"&&self&&self.Object===Object&&self,nz=If||rz||Function("return this")(),nt=nz;var oz=nt.Symbol,wr=oz;i();var DC=Object.prototype,iz=DC.hasOwnProperty,az=DC.toString,Fu=wr?wr.toStringTag:void 0;function sz(e){var t=iz.call(e,Fu),r=e[Fu];try{e[Fu]=void 0;var n=!0}catch{}var o=az.call(e);return n&&(t?e[Fu]=r:delete e[Fu]),o}var EC=sz;i();var uz=Object.prototype,lz=uz.toString;function cz(e){return lz.call(e)}var PC=cz;var fz="[object Null]",pz="[object Undefined]",TC=wr?wr.toStringTag:void 0;function dz(e){return e==null?e===void 0?pz:fz:TC&&TC in Object(e)?EC(e):PC(e)}var pr=dz;i();i();function mz(e,t){return function(r){return e(t(r))}}var kf=mz;var hz=kf(Object.getPrototypeOf,Object),Ga=hz;i();function gz(e){return e!=null&&typeof e=="object"}var Yt=gz;var vz="[object Object]",yz=Function.prototype,bz=Object.prototype,AC=yz.toString,Cz=bz.hasOwnProperty,xz=AC.call(Object);function wz(e){if(!Yt(e)||pr(e)!=vz)return!1;var t=Ga(e);if(t===null)return!0;var r=Cz.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&AC.call(r)==xz}var X0=wz;i();i();i();i();i();function Sz(){this.__data__=[],this.size=0}var RC=Sz;i();i();i();function Dz(e,t){return e===t||e!==e&&t!==t}var Nf=Dz;function Ez(e,t){for(var r=e.length;r--;)if(Nf(e[r][0],t))return r;return-1}var xo=Ez;var Pz=Array.prototype,Tz=Pz.splice;function Az(e){var t=this.__data__,r=xo(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Tz.call(t,r,1),--this.size,!0}var FC=Az;i();function Rz(e){var t=this.__data__,r=xo(t,e);return r<0?void 0:t[r][1]}var OC=Rz;i();function Fz(e){return xo(this.__data__,e)>-1}var BC=Fz;i();function Oz(e,t){var r=this.__data__,n=xo(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var MC=Oz;function Ha(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])}}Ha.prototype.clear=RC;Ha.prototype.delete=FC;Ha.prototype.get=OC;Ha.prototype.has=BC;Ha.prototype.set=MC;var wo=Ha;i();function Bz(){this.__data__=new wo,this.size=0}var IC=Bz;i();function Mz(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var kC=Mz;i();function Iz(e){return this.__data__.get(e)}var NC=Iz;i();function kz(e){return this.__data__.has(e)}var VC=kz;i();i();i();i();i();i();function Nz(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qr=Nz;var Vz="[object AsyncFunction]",Lz="[object Function]",$z="[object GeneratorFunction]",zz="[object Proxy]";function Gz(e){if(!Qr(e))return!1;var t=pr(e);return t==Lz||t==$z||t==Vz||t==zz}var Vf=Gz;i();i();var Hz=nt["__core-js_shared__"],Lf=Hz;var LC=function(){var e=/[^.]+$/.exec(Lf&&Lf.keys&&Lf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function jz(e){return!!LC&&LC in e}var $C=jz;i();var _z=Function.prototype,Wz=_z.toString;function Uz(e){if(e!=null){try{return Wz.call(e)}catch{}try{return e+""}catch{}}return""}var Bn=Uz;var Kz=/[\\^$.*+?()[\]{}|]/g,qz=/^\[object .+?Constructor\]$/,Xz=Function.prototype,Yz=Object.prototype,Jz=Xz.toString,Zz=Yz.hasOwnProperty,Qz=RegExp("^"+Jz.call(Zz).replace(Kz,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eG(e){if(!Qr(e)||$C(e))return!1;var t=Vf(e)?Qz:qz;return t.test(Bn(e))}var zC=eG;i();function tG(e,t){return e?.[t]}var GC=tG;function rG(e,t){var r=GC(e,t);return zC(r)?r:void 0}var Jt=rG;var nG=Jt(nt,"Map"),So=nG;i();i();i();i();i();var oG=Jt(Object,"create"),Mn=oG;function iG(){this.__data__=Mn?Mn(null):{},this.size=0}var HC=iG;i();function aG(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jC=aG;i();var sG="__lodash_hash_undefined__",uG=Object.prototype,lG=uG.hasOwnProperty;function cG(e){var t=this.__data__;if(Mn){var r=t[e];return r===sG?void 0:r}return lG.call(t,e)?t[e]:void 0}var _C=cG;i();var fG=Object.prototype,pG=fG.hasOwnProperty;function dG(e){var t=this.__data__;return Mn?t[e]!==void 0:pG.call(t,e)}var WC=dG;i();var mG="__lodash_hash_undefined__";function hG(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Mn&&t===void 0?mG:t,this}var UC=hG;function ja(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])}}ja.prototype.clear=HC;ja.prototype.delete=jC;ja.prototype.get=_C;ja.prototype.has=WC;ja.prototype.set=UC;var Y0=ja;function gG(){this.size=0,this.__data__={hash:new Y0,map:new(So||wo),string:new Y0}}var KC=gG;i();i();i();function vG(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var qC=vG;function yG(e,t){var r=e.__data__;return qC(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Do=yG;function bG(e){var t=Do(this,e).delete(e);return this.size-=t?1:0,t}var XC=bG;i();function CG(e){return Do(this,e).get(e)}var YC=CG;i();function xG(e){return Do(this,e).has(e)}var JC=xG;i();function wG(e,t){var r=Do(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var ZC=wG;function _a(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])}}_a.prototype.clear=KC;_a.prototype.delete=XC;_a.prototype.get=YC;_a.prototype.has=JC;_a.prototype.set=ZC;var Ou=_a;var SG=200;function DG(e,t){var r=this.__data__;if(r instanceof wo){var n=r.__data__;if(!So||n.length<SG-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ou(n)}return r.set(e,t),this.size=r.size,this}var QC=DG;function Wa(e){var t=this.__data__=new wo(e);this.size=t.size}Wa.prototype.clear=IC;Wa.prototype.delete=kC;Wa.prototype.get=NC;Wa.prototype.has=VC;Wa.prototype.set=QC;var ex=Wa;i();function EG(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var tx=EG;i();i();i();var PG=function(){try{var e=Jt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),J0=PG;function TG(e,t,r){t=="__proto__"&&J0?J0(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var $f=TG;var AG=Object.prototype,RG=AG.hasOwnProperty;function FG(e,t,r){var n=e[t];(!(RG.call(e,t)&&Nf(n,r))||r===void 0&&!(t in e))&&$f(e,t,r)}var zf=FG;i();i();function OG(e,t,r,n){var o=!r;r||(r={});for(var a=-1,s=t.length;++a<s;){var u=t[a],l=n?n(r[u],e[u],u,r,e):void 0;l===void 0&&(l=e[u]),o?$f(r,u,l):zf(r,u,l)}return r}var Eo=OG;i();i();i();function BG(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var rx=BG;i();i();var MG="[object Arguments]";function IG(e){return Yt(e)&&pr(e)==MG}var Z0=IG;var nx=Object.prototype,kG=nx.hasOwnProperty,NG=nx.propertyIsEnumerable,VG=Z0(function(){return arguments}())?Z0:function(e){return Yt(e)&&kG.call(e,"callee")&&!NG.call(e,"callee")},ox=VG;i();var LG=Array.isArray,en=LG;i();i();function $G(){return!1}var ix=$G;var ux=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ax=ux&&typeof module=="object"&&module&&!module.nodeType&&module,zG=ax&&ax.exports===ux,sx=zG?nt.Buffer:void 0,GG=sx?sx.isBuffer:void 0,HG=GG||ix,Gf=HG;i();var jG=9007199254740991,_G=/^(?:0|[1-9]\d*)$/;function WG(e,t){var r=typeof e;return t=t??jG,!!t&&(r=="number"||r!="symbol"&&_G.test(e))&&e>-1&&e%1==0&&e<t}var lx=WG;i();i();i();var UG=9007199254740991;function KG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UG}var Hf=KG;var qG="[object Arguments]",XG="[object Array]",YG="[object Boolean]",JG="[object Date]",ZG="[object Error]",QG="[object Function]",eH="[object Map]",tH="[object Number]",rH="[object Object]",nH="[object RegExp]",oH="[object Set]",iH="[object String]",aH="[object WeakMap]",sH="[object ArrayBuffer]",uH="[object DataView]",lH="[object Float32Array]",cH="[object Float64Array]",fH="[object Int8Array]",pH="[object Int16Array]",dH="[object Int32Array]",mH="[object Uint8Array]",hH="[object Uint8ClampedArray]",gH="[object Uint16Array]",vH="[object Uint32Array]",Le={};Le[lH]=Le[cH]=Le[fH]=Le[pH]=Le[dH]=Le[mH]=Le[hH]=Le[gH]=Le[vH]=!0;Le[qG]=Le[XG]=Le[sH]=Le[YG]=Le[uH]=Le[JG]=Le[ZG]=Le[QG]=Le[eH]=Le[tH]=Le[rH]=Le[nH]=Le[oH]=Le[iH]=Le[aH]=!1;function yH(e){return Yt(e)&&Hf(e.length)&&!!Le[pr(e)]}var cx=yH;i();function bH(e){return function(t){return e(t)}}var Ua=bH;i();var fx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Bu=fx&&typeof module=="object"&&module&&!module.nodeType&&module,CH=Bu&&Bu.exports===fx,Q0=CH&&If.process,xH=function(){try{var e=Bu&&Bu.require&&Bu.require("util").types;return e||Q0&&Q0.binding&&Q0.binding("util")}catch{}}(),In=xH;var px=In&&In.isTypedArray,wH=px?Ua(px):cx,dx=wH;var SH=Object.prototype,DH=SH.hasOwnProperty;function EH(e,t){var r=en(e),n=!r&&ox(e),o=!r&&!n&&Gf(e),a=!r&&!n&&!o&&dx(e),s=r||n||o||a,u=s?rx(e.length,String):[],l=u.length;for(var c in e)(t||DH.call(e,c))&&!(s&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||lx(c,l)))&&u.push(c);return u}var jf=EH;i();i();var PH=Object.prototype;function TH(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||PH;return e===r}var Ka=TH;i();var AH=kf(Object.keys,Object),mx=AH;var RH=Object.prototype,FH=RH.hasOwnProperty;function OH(e){if(!Ka(e))return mx(e);var t=[];for(var r in Object(e))FH.call(e,r)&&r!="constructor"&&t.push(r);return t}var hx=OH;i();function BH(e){return e!=null&&Hf(e.length)&&!Vf(e)}var _f=BH;function MH(e){return _f(e)?jf(e):hx(e)}var qa=MH;function IH(e,t){return e&&Eo(t,qa(t),e)}var gx=IH;i();i();i();i();function kH(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var vx=kH;var NH=Object.prototype,VH=NH.hasOwnProperty;function LH(e){if(!Qr(e))return vx(e);var t=Ka(e),r=[];for(var n in e)n=="constructor"&&(t||!VH.call(e,n))||r.push(n);return r}var yx=LH;function $H(e){return _f(e)?jf(e,!0):yx(e)}var Xa=$H;function zH(e,t){return e&&Eo(t,Xa(t),e)}var bx=zH;i();var Sx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cx=Sx&&typeof module=="object"&&module&&!module.nodeType&&module,GH=Cx&&Cx.exports===Sx,xx=GH?nt.Buffer:void 0,wx=xx?xx.allocUnsafe:void 0;function HH(e,t){if(t)return e.slice();var r=e.length,n=wx?wx(r):new e.constructor(r);return e.copy(n),n}var Dx=HH;i();function jH(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Wf=jH;i();i();i();function _H(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var s=e[r];t(s,r,e)&&(a[o++]=s)}return a}var Ex=_H;i();function WH(){return[]}var Uf=WH;var UH=Object.prototype,KH=UH.propertyIsEnumerable,Px=Object.getOwnPropertySymbols,qH=Px?function(e){return e==null?[]:(e=Object(e),Ex(Px(e),function(t){return KH.call(e,t)}))}:Uf,Ya=qH;function XH(e,t){return Eo(e,Ya(e),t)}var Tx=XH;i();i();i();function YH(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Kf=YH;var JH=Object.getOwnPropertySymbols,ZH=JH?function(e){for(var t=[];e;)Kf(t,Ya(e)),e=Ga(e);return t}:Uf,qf=ZH;function QH(e,t){return Eo(e,qf(e),t)}var Ax=QH;i();i();function ej(e,t,r){var n=t(e);return en(e)?n:Kf(n,r(e))}var Xf=ej;function tj(e){return Xf(e,qa,Ya)}var Rx=tj;i();function rj(e){return Xf(e,Xa,qf)}var Fx=rj;i();i();var nj=Jt(nt,"DataView"),Yf=nj;i();var oj=Jt(nt,"Promise"),Jf=oj;i();var ij=Jt(nt,"Set"),Zf=ij;i();var aj=Jt(nt,"WeakMap"),Qf=aj;var Ox="[object Map]",sj="[object Object]",Bx="[object Promise]",Mx="[object Set]",Ix="[object WeakMap]",kx="[object DataView]",uj=Bn(Yf),lj=Bn(So),cj=Bn(Jf),fj=Bn(Zf),pj=Bn(Qf),li=pr;(Yf&&li(new Yf(new ArrayBuffer(1)))!=kx||So&&li(new So)!=Ox||Jf&&li(Jf.resolve())!=Bx||Zf&&li(new Zf)!=Mx||Qf&&li(new Qf)!=Ix)&&(li=function(e){var t=pr(e),r=t==sj?e.constructor:void 0,n=r?Bn(r):"";if(n)switch(n){case uj:return kx;case lj:return Ox;case cj:return Bx;case fj:return Mx;case pj:return Ix}return t});var Ja=li;i();var dj=Object.prototype,mj=dj.hasOwnProperty;function hj(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&mj.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Nx=hj;i();i();i();var gj=nt.Uint8Array,eh=gj;function vj(e){var t=new e.constructor(e.byteLength);return new eh(t).set(new eh(e)),t}var Za=vj;i();function yj(e,t){var r=t?Za(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Vx=yj;i();var bj=/\w*$/;function Cj(e){var t=new e.constructor(e.source,bj.exec(e));return t.lastIndex=e.lastIndex,t}var Lx=Cj;i();var $x=wr?wr.prototype:void 0,zx=$x?$x.valueOf:void 0;function xj(e){return zx?Object(zx.call(e)):{}}var Gx=xj;i();function wj(e,t){var r=t?Za(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Hx=wj;var Sj="[object Boolean]",Dj="[object Date]",Ej="[object Map]",Pj="[object Number]",Tj="[object RegExp]",Aj="[object Set]",Rj="[object String]",Fj="[object Symbol]",Oj="[object ArrayBuffer]",Bj="[object DataView]",Mj="[object Float32Array]",Ij="[object Float64Array]",kj="[object Int8Array]",Nj="[object Int16Array]",Vj="[object Int32Array]",Lj="[object Uint8Array]",$j="[object Uint8ClampedArray]",zj="[object Uint16Array]",Gj="[object Uint32Array]";function Hj(e,t,r){var n=e.constructor;switch(t){case Oj:return Za(e);case Sj:case Dj:return new n(+e);case Bj:return Vx(e,r);case Mj:case Ij:case kj:case Nj:case Vj:case Lj:case $j:case zj:case Gj:return Hx(e,r);case Ej:return new n;case Pj:case Rj:return new n(e);case Tj:return Lx(e);case Aj:return new n;case Fj:return Gx(e)}}var jx=Hj;i();i();var _x=Object.create,jj=function(){function e(){}return function(t){if(!Qr(t))return{};if(_x)return _x(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Wx=jj;function _j(e){return typeof e.constructor=="function"&&!Ka(e)?Wx(Ga(e)):{}}var Ux=_j;i();i();var Wj="[object Map]";function Uj(e){return Yt(e)&&Ja(e)==Wj}var Kx=Uj;var qx=In&&In.isMap,Kj=qx?Ua(qx):Kx,Xx=Kj;i();i();var qj="[object Set]";function Xj(e){return Yt(e)&&Ja(e)==qj}var Yx=Xj;var Jx=In&&In.isSet,Yj=Jx?Ua(Jx):Yx,Zx=Yj;var Jj=1,Zj=2,Qj=4,Qx="[object Arguments]",e_="[object Array]",t_="[object Boolean]",r_="[object Date]",n_="[object Error]",ew="[object Function]",o_="[object GeneratorFunction]",i_="[object Map]",a_="[object Number]",tw="[object Object]",s_="[object RegExp]",u_="[object Set]",l_="[object String]",c_="[object Symbol]",f_="[object WeakMap]",p_="[object ArrayBuffer]",d_="[object DataView]",m_="[object Float32Array]",h_="[object Float64Array]",g_="[object Int8Array]",v_="[object Int16Array]",y_="[object Int32Array]",b_="[object Uint8Array]",C_="[object Uint8ClampedArray]",x_="[object Uint16Array]",w_="[object Uint32Array]",ke={};ke[Qx]=ke[e_]=ke[p_]=ke[d_]=ke[t_]=ke[r_]=ke[m_]=ke[h_]=ke[g_]=ke[v_]=ke[y_]=ke[i_]=ke[a_]=ke[tw]=ke[s_]=ke[u_]=ke[l_]=ke[c_]=ke[b_]=ke[C_]=ke[x_]=ke[w_]=!0;ke[n_]=ke[ew]=ke[f_]=!1;function ep(e,t,r,n,o,a){var s,u=t&Jj,l=t&Zj,c=t&Qj;if(r&&(s=o?r(e,n,o,a):r(e)),s!==void 0)return s;if(!Qr(e))return e;var p=en(e);if(p){if(s=Nx(e),!u)return Wf(e,s)}else{var d=Ja(e),m=d==ew||d==o_;if(Gf(e))return Dx(e,u);if(d==tw||d==Qx||m&&!o){if(s=l||m?{}:Ux(e),!u)return l?Ax(e,bx(s,e)):Tx(e,gx(s,e))}else{if(!ke[d])return o?e:{};s=jx(e,d,u)}}a||(a=new ex);var g=a.get(e);if(g)return g;a.set(e,s),Zx(e)?e.forEach(function(b){s.add(ep(b,t,r,b,e,a))}):Xx(e)&&e.forEach(function(b,y){s.set(y,ep(b,t,r,y,e,a))});var v=c?l?Fx:Rx:l?Xa:qa,h=p?void 0:v(e);return tx(h||e,function(b,y){h&&(y=b,b=e[y]),zf(s,y,ep(b,t,r,y,e,a))}),s}var tp=ep;var S_=1,D_=4;function E_(e){return tp(e,S_|D_)}var Qa=E_;var kn=U(iw());import{createContext as oW,useContext as iW,Children as mh,useRef as Po,useEffect as To,useState as aW,useCallback as ot,useMemo as Tw,useImperativeHandle as sW,createElement as Ao,useLayoutEffect as uW,forwardRef as lW,Component as cW}from"react";i();var A_=!0;function R_(e,t){if(!A_){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var aw=R_;i();var F_=4;function O_(e){return tp(e,F_)}var rh=O_;i();i();function B_(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 rp=B_;i();var M_="[object Symbol]";function I_(e){return typeof e=="symbol"||Yt(e)&&pr(e)==M_}var es=I_;i();i();i();var k_="Expected a function";function nh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(k_);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var s=e.apply(this,n);return r.cache=a.set(o,s)||a,s};return r.cache=new(nh.Cache||Ou),r}nh.Cache=Ou;var sw=nh;var N_=500;function V_(e){var t=sw(e,function(n){return r.size===N_&&r.clear(),n}),r=t.cache;return t}var uw=V_;var L_=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$_=/\\(\\)?/g,z_=uw(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L_,function(r,n,o,a){t.push(o?a.replace($_,"$1"):n||r)}),t}),lw=z_;i();var G_=1/0;function H_(e){if(typeof e=="string"||es(e))return e;var t=e+"";return t=="0"&&1/e==-G_?"-0":t}var cw=H_;i();i();var j_=1/0,fw=wr?wr.prototype:void 0,pw=fw?fw.toString:void 0;function dw(e){if(typeof e=="string")return e;if(en(e))return rp(e,dw)+"";if(es(e))return pw?pw.call(e):"";var t=e+"";return t=="0"&&1/e==-j_?"-0":t}var mw=dw;function __(e){return e==null?"":mw(e)}var hw=__;function W_(e){return en(e)?rp(e,cw):es(e)?[e]:Wf(lw(hw(e)))}var oh=W_;var fW=U(Pw());function Re(){return Re=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},Re.apply(this,arguments)}function pW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function fi(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Aw(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mp=oW(void 0);mp.displayName="FormikContext";var dW=mp.Provider,fje=mp.Consumer;function di(){var e=iW(mp);return e||aw(!1),e}var Rw=function(t){return Array.isArray(t)&&t.length===0},Vt=function(t){return typeof t=="function"},Mu=function(t){return t!==null&&typeof t=="object"},mW=function(t){return String(Math.floor(Number(t)))===t},ch=function(t){return Object.prototype.toString.call(t)==="[object String]"};var Ow=function(t){return mh.count(t)===0},fh=function(t){return Mu(t)&&Vt(t.then)};function ft(e,t,r,n){n===void 0&&(n=0);for(var o=oh(t);e&&n<o.length;)e=e[o[n++]];return n!==o.length&&!e||e===void 0?r:e}function tn(e,t,r){for(var n=rh(e),o=n,a=0,s=oh(t);a<s.length-1;a++){var u=s[a],l=ft(e,s.slice(0,a+1));if(l&&(Mu(l)||Array.isArray(l)))o=o[u]=rh(l);else{var c=s[a+1];o=o[u]=mW(c)&&Number(c)>=0?[]:{}}}return(a===0?e:o)[s[a]]===r?e:(r===void 0?delete o[s[a]]:o[s[a]]=r,a===0&&r===void 0&&delete n[s[a]],n)}function Bw(e,t,r,n){r===void 0&&(r=new WeakMap),n===void 0&&(n={});for(var o=0,a=Object.keys(e);o<a.length;o++){var s=a[o],u=e[s];Mu(u)?r.get(u)||(r.set(u,!0),n[s]=Array.isArray(u)?[]:{},Bw(u,t,r,n[s])):n[s]=t}return n}function hW(e,t){switch(t.type){case"SET_VALUES":return Re({},e,{values:t.payload});case"SET_TOUCHED":return Re({},e,{touched:t.payload});case"SET_ERRORS":return(0,kn.default)(e.errors,t.payload)?e:Re({},e,{errors:t.payload});case"SET_STATUS":return Re({},e,{status:t.payload});case"SET_ISSUBMITTING":return Re({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Re({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Re({},e,{values:tn(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Re({},e,{touched:tn(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Re({},e,{errors:tn(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Re({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Re({},e,{touched:Bw(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Re({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Re({},e,{isSubmitting:!1});default:return e}}var ci={},dp={};function gW(e){var t=e.validateOnChange,r=t===void 0?!0:t,n=e.validateOnBlur,o=n===void 0?!0:n,a=e.validateOnMount,s=a===void 0?!1:a,u=e.isInitialValid,l=e.enableReinitialize,c=l===void 0?!1:l,p=e.onSubmit,d=fi(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=Re({validateOnChange:r,validateOnBlur:o,validateOnMount:s,onSubmit:p},d),g=Po(m.initialValues),v=Po(m.initialErrors||ci),h=Po(m.initialTouched||dp),b=Po(m.initialStatus),y=Po(!1),x=Po({});To(function(){return y.current=!0,function(){y.current=!1}},[]);var w=aW(0),S=w[1],E=Po({values:Qa(m.initialValues),errors:Qa(m.initialErrors)||ci,touched:Qa(m.initialTouched)||dp,status:Qa(m.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),D=E.current,P=ot(function(O){var J=E.current;E.current=hW(J,O),J!==E.current&&S(function(ee){return ee+1})},[]),R=ot(function(O,J){return new Promise(function(ee,X){var se=m.validate(O,J);se==null?ee(ci):fh(se)?se.then(function(we){ee(we||ci)},function(we){X(we)}):ee(se)})},[m.validate]),F=ot(function(O,J){var ee=m.validationSchema,X=Vt(ee)?ee(J):ee,se=J&&X.validateAt?X.validateAt(J,O):yW(O,X);return new Promise(function(we,Pe){se.then(function(){we(ci)},function(yt){yt.name==="ValidationError"?we(vW(yt)):Pe(yt)})})},[m.validationSchema]),M=ot(function(O,J){return new Promise(function(ee){return ee(x.current[O].validate(J))})},[]),H=ot(function(O){var J=Object.keys(x.current).filter(function(X){return Vt(x.current[X].validate)}),ee=J.length>0?J.map(function(X){return M(X,ft(O,X))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ee).then(function(X){return X.reduce(function(se,we,Pe){return we==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||we&&(se=tn(se,J[Pe],we)),se},{})})},[M]),I=ot(function(O){return Promise.all([H(O),m.validationSchema?F(O):{},m.validate?R(O):{}]).then(function(J){var ee=J[0],X=J[1],se=J[2],we=Mf.all([ee,X,se],{arrayMerge:bW});return we})},[m.validate,m.validationSchema,H,R,F]),L=Sr(function(O){return O===void 0&&(O=D.values),P({type:"SET_ISVALIDATING",payload:!0}),I(O).then(function(J){return y.current&&(P({type:"SET_ISVALIDATING",payload:!1}),P({type:"SET_ERRORS",payload:J})),J})});To(function(){s&&y.current===!0&&(0,kn.default)(g.current,m.initialValues)&&L(g.current)},[s,L]);var N=ot(function(O){var J=O&&O.values?O.values:g.current,ee=O&&O.errors?O.errors:v.current?v.current:m.initialErrors||{},X=O&&O.touched?O.touched:h.current?h.current:m.initialTouched||{},se=O&&O.status?O.status:b.current?b.current:m.initialStatus;g.current=J,v.current=ee,h.current=X,b.current=se;var we=function(){P({type:"RESET_FORM",payload:{isSubmitting:!!O&&!!O.isSubmitting,errors:ee,touched:X,status:se,values:J,isValidating:!!O&&!!O.isValidating,submitCount:O&&O.submitCount&&typeof O.submitCount=="number"?O.submitCount:0}})};if(m.onReset){var Pe=m.onReset(D.values,Ee);fh(Pe)?Pe.then(we):we()}else we()},[m.initialErrors,m.initialStatus,m.initialTouched,m.onReset]);To(function(){y.current===!0&&!(0,kn.default)(g.current,m.initialValues)&&c&&(g.current=m.initialValues,N(),s&&L(g.current))},[c,m.initialValues,N,s,L]),To(function(){c&&y.current===!0&&!(0,kn.default)(v.current,m.initialErrors)&&(v.current=m.initialErrors||ci,P({type:"SET_ERRORS",payload:m.initialErrors||ci}))},[c,m.initialErrors]),To(function(){c&&y.current===!0&&!(0,kn.default)(h.current,m.initialTouched)&&(h.current=m.initialTouched||dp,P({type:"SET_TOUCHED",payload:m.initialTouched||dp}))},[c,m.initialTouched]),To(function(){c&&y.current===!0&&!(0,kn.default)(b.current,m.initialStatus)&&(b.current=m.initialStatus,P({type:"SET_STATUS",payload:m.initialStatus}))},[c,m.initialStatus,m.initialTouched]);var $=Sr(function(O){if(x.current[O]&&Vt(x.current[O].validate)){var J=ft(D.values,O),ee=x.current[O].validate(J);return fh(ee)?(P({type:"SET_ISVALIDATING",payload:!0}),ee.then(function(X){return X}).then(function(X){P({type:"SET_FIELD_ERROR",payload:{field:O,value:X}}),P({type:"SET_ISVALIDATING",payload:!1})})):(P({type:"SET_FIELD_ERROR",payload:{field:O,value:ee}}),Promise.resolve(ee))}else if(m.validationSchema)return P({type:"SET_ISVALIDATING",payload:!0}),F(D.values,O).then(function(X){return X}).then(function(X){P({type:"SET_FIELD_ERROR",payload:{field:O,value:ft(X,O)}}),P({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),te=ot(function(O,J){var ee=J.validate;x.current[O]={validate:ee}},[]),K=ot(function(O){delete x.current[O]},[]),re=Sr(function(O,J){P({type:"SET_TOUCHED",payload:O});var ee=J===void 0?o:J;return ee?L(D.values):Promise.resolve()}),G=ot(function(O){P({type:"SET_ERRORS",payload:O})},[]),ae=Sr(function(O,J){var ee=Vt(O)?O(D.values):O;P({type:"SET_VALUES",payload:ee});var X=J===void 0?r:J;return X?L(ee):Promise.resolve()}),ve=ot(function(O,J){P({type:"SET_FIELD_ERROR",payload:{field:O,value:J}})},[]),de=Sr(function(O,J,ee){P({type:"SET_FIELD_VALUE",payload:{field:O,value:J}});var X=ee===void 0?r:ee;return X?L(tn(D.values,O,J)):Promise.resolve()}),He=ot(function(O,J){var ee=J,X=O,se;if(!ch(O)){O.persist&&O.persist();var we=O.target?O.target:O.currentTarget,Pe=we.type,yt=we.name,to=we.id,kr=we.value,W1=we.checked,n5=we.outerHTML,Xi=we.options,U1=we.multiple;ee=J||yt||to,X=/number|range/.test(Pe)?(se=parseFloat(kr),isNaN(se)?"":se):/checkbox/.test(Pe)?xW(ft(D.values,ee),W1,kr):Xi&&U1?CW(Xi):kr}ee&&de(ee,X)},[de,D.values]),A=Sr(function(O){if(ch(O))return function(J){return He(J,O)};He(O)}),_=Sr(function(O,J,ee){J===void 0&&(J=!0),P({type:"SET_FIELD_TOUCHED",payload:{field:O,value:J}});var X=ee===void 0?o:ee;return X?L(D.values):Promise.resolve()}),z=ot(function(O,J){O.persist&&O.persist();var ee=O.target,X=ee.name,se=ee.id,we=ee.outerHTML,Pe=J||X||se;_(Pe,!0)},[_]),j=Sr(function(O){if(ch(O))return function(J){return z(J,O)};z(O)}),ue=ot(function(O){Vt(O)?P({type:"SET_FORMIK_STATE",payload:O}):P({type:"SET_FORMIK_STATE",payload:function(){return O}})},[]),ie=ot(function(O){P({type:"SET_STATUS",payload:O})},[]),me=ot(function(O){P({type:"SET_ISSUBMITTING",payload:O})},[]),Ce=Sr(function(){return P({type:"SUBMIT_ATTEMPT"}),L().then(function(O){var J=O instanceof Error,ee=!J&&Object.keys(O).length===0;if(ee){var X;try{if(X=xe(),X===void 0)return}catch(se){throw se}return Promise.resolve(X).then(function(se){return y.current&&P({type:"SUBMIT_SUCCESS"}),se}).catch(function(se){if(y.current)throw P({type:"SUBMIT_FAILURE"}),se})}else if(y.current&&(P({type:"SUBMIT_FAILURE"}),J))throw O})}),Se=Sr(function(O){if(O&&O.preventDefault&&Vt(O.preventDefault)&&O.preventDefault(),O&&O.stopPropagation&&Vt(O.stopPropagation)&&O.stopPropagation(),0)var J;Ce().catch(function(ee){console.warn("Warning: An unhandled error was caught from submitForm()",ee)})}),Ee={resetForm:N,validateForm:L,validateField:$,setErrors:G,setFieldError:ve,setFieldTouched:_,setFieldValue:de,setStatus:ie,setSubmitting:me,setTouched:re,setValues:ae,setFormikState:ue,submitForm:Ce},xe=Sr(function(){return p(D.values,Ee)}),gt=Sr(function(O){O&&O.preventDefault&&Vt(O.preventDefault)&&O.preventDefault(),O&&O.stopPropagation&&Vt(O.stopPropagation)&&O.stopPropagation(),N()}),vt=ot(function(O){return{value:ft(D.values,O),error:ft(D.errors,O),touched:!!ft(D.touched,O),initialValue:ft(g.current,O),initialTouched:!!ft(h.current,O),initialError:ft(v.current,O)}},[D.errors,D.touched,D.values]),je=ot(function(O){return{setValue:function(ee,X){return de(O,ee,X)},setTouched:function(ee,X){return _(O,ee,X)},setError:function(ee){return ve(O,ee)}}},[de,_,ve]),ir=ot(function(O){var J=Mu(O),ee=J?O.name:O,X=ft(D.values,ee),se={name:ee,value:X,onChange:A,onBlur:j};if(J){var we=O.type,Pe=O.value,yt=O.as,to=O.multiple;we==="checkbox"?Pe===void 0?se.checked=!!X:(se.checked=!!(Array.isArray(X)&&~X.indexOf(Pe)),se.value=Pe):we==="radio"?(se.checked=X===Pe,se.value=Pe):yt==="select"&&to&&(se.value=se.value||[],se.multiple=!0)}return se},[j,A,D.values]),Ht=Tw(function(){return!(0,kn.default)(g.current,D.values)},[g.current,D.values]),St=Tw(function(){return typeof u<"u"?Ht?D.errors&&Object.keys(D.errors).length===0:u!==!1&&Vt(u)?u(m):u:D.errors&&Object.keys(D.errors).length===0},[u,Ht,D.errors,m]),ar=Re({},D,{initialValues:g.current,initialErrors:v.current,initialTouched:h.current,initialStatus:b.current,handleBlur:j,handleChange:A,handleReset:gt,handleSubmit:Se,resetForm:N,setErrors:G,setFormikState:ue,setFieldTouched:_,setFieldValue:de,setFieldError:ve,setStatus:ie,setSubmitting:me,setTouched:re,setValues:ae,submitForm:Ce,validateForm:L,validateField:$,isValid:St,dirty:Ht,unregisterField:K,registerField:te,getFieldProps:ir,getFieldMeta:vt,getFieldHelpers:je,validateOnBlur:o,validateOnChange:r,validateOnMount:s});return ar}function Mw(e){var t=gW(e),r=e.component,n=e.children,o=e.render,a=e.innerRef;return sW(a,function(){return t}),Ao(dW,{value:t},r?Ao(r,t):o?o(t):n?Vt(n)?n(t):Ow(n)?null:mh.only(n):null)}function vW(e){var t={};if(e.inner){if(e.inner.length===0)return tn(t,e.path,e.message);for(var o=e.inner,r=Array.isArray(o),n=0,o=r?o:o[Symbol.iterator]();;){var a;if(r){if(n>=o.length)break;a=o[n++]}else{if(n=o.next(),n.done)break;a=n.value}var s=a;ft(t,s.path)||(t=tn(t,s.path,s.message))}}return t}function yW(e,t,r,n){r===void 0&&(r=!1);var o=dh(e);return t[r?"validateSync":"validate"](o,{abortEarly:!1,context:n||o})}function dh(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||X0(o)?dh(o):o!==""?o:void 0}):X0(e[n])?t[n]=dh(e[n]):t[n]=e[n]!==""?e[n]:void 0}return t}function bW(e,t,r){var n=e.slice();return t.forEach(function(a,s){if(typeof n[s]>"u"){var u=r.clone!==!1,l=u&&r.isMergeableObject(a);n[s]=l?Mf(Array.isArray(a)?[]:{},a,r):a}else r.isMergeableObject(a)?n[s]=Mf(e[s],a,r):e.indexOf(a)===-1&&n.push(a)}),n}function CW(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function xW(e,t,r){if(typeof e=="boolean")return!!t;var n=[],o=!1,a=-1;if(Array.isArray(e))n=e,a=e.indexOf(r),o=a>=0;else if(!r||r=="true"||r=="false")return!!t;return t&&r&&!o?n.concat(r):o?n.slice(0,a).concat(n.slice(a+1)):n}var wW=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?uW:To;function Sr(e){var t=Po(e);return wW(function(){t.current=e}),ot(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 Iw(e){var t=e.validate,r=e.name,n=e.render,o=e.children,a=e.as,s=e.component,u=e.className,l=fi(e,["validate","name","render","children","as","component","className"]),c=di(),p=fi(c,["validate","validationSchema"]),d=p.registerField,m=p.unregisterField;To(function(){return d(r,{validate:t}),function(){m(r)}},[d,m,r,t]);var g=p.getFieldProps(Re({name:r},l)),v=p.getFieldMeta(r),h={field:g,form:p};if(n)return n(Re({},h,{meta:v}));if(Vt(o))return o(Re({},h,{meta:v}));if(s){if(typeof s=="string"){var b=l.innerRef,y=fi(l,["innerRef"]);return Ao(s,Re({ref:b},g,y,{className:u}),o)}return Ao(s,Re({field:g,form:p},l,{className:u}),o)}var x=a||"input";if(typeof x=="string"){var w=l.innerRef,S=fi(l,["innerRef"]);return Ao(x,Re({ref:w},g,S,{className:u}),o)}return Ao(x,Re({},g,l,{className:u}),o)}var hh=lW(function(e,t){var r=e.action,n=fi(e,["action"]),o=r??"#",a=di(),s=a.handleReset,u=a.handleSubmit;return Ao("form",Re({onSubmit:u,ref:t,onReset:s,action:o},n))});hh.displayName="Form";var SW=function(t,r,n){var o=pi(t),a=o[r];return o.splice(r,1),o.splice(n,0,a),o},DW=function(t,r,n){var o=pi(t),a=o[r];return o[r]=o[n],o[n]=a,o},ph=function(t,r,n){var o=pi(t);return o.splice(r,0,n),o},EW=function(t,r,n){var o=pi(t);return o[r]=n,o},pi=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(Re({},t,{length:r+1}))}else return[]},Fw=function(t,r){var n=typeof t=="function"?t:r;return function(o){if(Array.isArray(o)||Mu(o)){var a=pi(o);return n(a)}return o}},PW=function(e){pW(t,e);function t(n){var o;return o=e.call(this,n)||this,o.updateArrayField=function(a,s,u){var l=o.props,c=l.name,p=l.formik.setFormikState;p(function(d){var m=Fw(u,a),g=Fw(s,a),v=tn(d.values,c,a(ft(d.values,c))),h=u?m(ft(d.errors,c)):void 0,b=s?g(ft(d.touched,c)):void 0;return Rw(h)&&(h=void 0),Rw(b)&&(b=void 0),Re({},d,{values:v,errors:u?tn(d.errors,c,h):d.errors,touched:s?tn(d.touched,c,b):d.touched})})},o.push=function(a){return o.updateArrayField(function(s){return[].concat(pi(s),[Qa(a)])},!1,!1)},o.handlePush=function(a){return function(){return o.push(a)}},o.swap=function(a,s){return o.updateArrayField(function(u){return DW(u,a,s)},!0,!0)},o.handleSwap=function(a,s){return function(){return o.swap(a,s)}},o.move=function(a,s){return o.updateArrayField(function(u){return SW(u,a,s)},!0,!0)},o.handleMove=function(a,s){return function(){return o.move(a,s)}},o.insert=function(a,s){return o.updateArrayField(function(u){return ph(u,a,s)},function(u){return ph(u,a,null)},function(u){return ph(u,a,null)})},o.handleInsert=function(a,s){return function(){return o.insert(a,s)}},o.replace=function(a,s){return o.updateArrayField(function(u){return EW(u,a,s)},!1,!1)},o.handleReplace=function(a,s){return function(){return o.replace(a,s)}},o.unshift=function(a){var s=-1;return o.updateArrayField(function(u){var l=u?[a].concat(u):[a];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(a){return function(){return o.unshift(a)}},o.handleRemove=function(a){return function(){return o.remove(a)}},o.handlePop=function(){return function(){return o.pop()}},o.remove=o.remove.bind(Aw(o)),o.pop=o.pop.bind(Aw(o)),o}var r=t.prototype;return r.componentDidUpdate=function(o){this.props.validateOnChange&&this.props.formik.validateOnChange&&!(0,kn.default)(ft(o.formik.values,o.name),ft(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},r.remove=function(o){var a;return this.updateArrayField(function(s){var u=s?pi(s):[];return a||(a=u[o]),Vt(u.splice)&&u.splice(o,1),Vt(u.every)&&u.every(function(l){return l===void 0})?[]:u},!0,!0),a},r.pop=function(){var o;return this.updateArrayField(function(a){var s=a.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},a=this.props,s=a.component,u=a.render,l=a.children,c=a.name,p=a.formik,d=fi(p,["validate","validationSchema"]),m=Re({},o,{form:d,name:c});return s?Ao(s,m):u?u(m):l?typeof l=="function"?l(m):Ow(l)?null:mh.only(l):null},t}(cW);PW.defaultProps={validateOnChange:!0};i();i();import{useState as TW}from"react";var AW=()=>{let[e,t]=TW(!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]};i();i();import{useMemo as RW}from"react";var FW=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:e!=null&&e?()=>!0:()=>!1,hp=(e,t,r={},n=[e])=>{let{eventName:o="keydown",eventTarget:a,eventOptions:s}=r,u=RW(()=>{let l=FW(e);return c=>{if(!(["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.nodeName??"")||document.activeElement?.isContentEditable)&&l(c))return t(c)}},n);_0(o,u,a,s)};i();i();import{useState as OW}from"react";var gh=e=>{let[t,r]=OW([!1,null]);return hp(e,n=>r([!0,n]),{eventName:"keydown"},[t]),hp(e,n=>r([!1,n]),{eventName:"keyup"},[t]),t};i();i();i();i();import{useEffect as BW,useRef as MW}from"react";var vh=(e,t)=>{let r=MW(!0);BW(()=>r.current?(r.current=!1,()=>{}):e(),t)};var yh=(e,t=void 0,r=void 0)=>{let[n,o]=gh(e);vh(()=>(!n&&r&&o!==null?r(o):n&&t&&o!==null&&t(o),()=>{}),[n])};i();i();import{useState as IW}from"react";var kW=(e,t,r=window.localStorage)=>{let[n,o]=IW(()=>{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)}]};i();i();var Iu=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})};i();i();import{useEffect as NW}from"react";var ku=(e,t)=>{NW(()=>{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])};i();i();import{useLayoutEffect as VW}from"react";var bh=e=>{VW(()=>{if(e){let t=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=t}}return()=>{}},[e])};i();i();import{useEffect as LW,useRef as $W}from"react";var Nu=e=>{let t=$W();return LW(()=>{t.current=e}),t.current};i();i();var lS=U(Q());import Dp from"styled-components";i();i();var Hw=U(vp()),Dr=U(Q());import{useEffect as mi,useRef as Lw,useState as $w,useCallback as zw}from"react";import{createPortal as UW}from"react-dom";import{createGlobalStyle as KW}from"styled-components";i();i();import{Children as _W}from"react";var Vw=U(Q());import{jsx as Nw}from"react/jsx-runtime";var WW=100,Vu=({children:e})=>{let t=_W.map(e,r=>r)?.filter(Boolean);return Nw(wu,{children:(0,Vw.isNotNil)(t)?t.map(r=>Nw(Cu.div,{animate:{opacity:1},exit:{opacity:0},initial:{opacity:0},style:{willChange:"auto"},transition:{duration:WW/1e3},children:r},r.key)):null})};import{Fragment as YW,jsx as Lu,jsxs as JW}from"react/jsx-runtime";var Ch="is-scroll-locked",qW=KW`
|
|
710
710
|
.${Ch} {
|
|
711
711
|
overflow: hidden;
|
|
712
712
|
}
|
|
@@ -1819,7 +1819,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
1821
|
width: ${({fullWidth:e})=>e?"100%":"auto"};
|
|
1822
|
-
`,o2=(e,t,r)=>{let n=({groupLabel:o,groupOptions:a,disabled:s=!1})=>n2("optgroup",{"data-testid":o,disabled:s,label:o,children:o2(a)},o);return e.map(o=>{if(Object.prototype.hasOwnProperty.call(o,"groupLabel"))return n(o);let{label:a,value:s,disabled:u=!1}=o,l=(0,bi.isNonEmptyString)(r)?o[r]:s,c=(0,bi.isNonEmptyString)(t)?o[t]:a;return(0,bi.isBoolean)(l)&&(l=lr(l)),n2("option",{disabled:u,value:l,children:c},`${lr(c)}--${lr(l)}`)})},yY=(e,t,r)=>(0,bi.isNotNil)(e)&&!r?o2([{label:e,value:"",disabled:t}]):null,bY=e=>e?null:n2(De,{size:"md",type:"caret-down"}),Ci=mY(({ariaLabel:e,disabled:t=!1,forceState:r,fullWidth:n=!0,hasError:o=!1,labelName:a="label",multiple:s=!1,options:u,placeholder:l="Please select...",preventPlaceholderSelection:c=!1,required:p=!1,valueName:d="value",...m},g)=>RD(vY,{disabled:t,forceState:r,fullWidth:n,children:[RD(t2,{ref:g,"aria-invalid":o?"true":"false","aria-label":e,disabled:t,forceState:r,hasError:o,multiple:s,required:p,...m,children:[yY(l,c,s),o2(u,a,d)]}),bY(s)]}));Ci.displayName="Select_VHS";import{jsx as FD}from"react/jsx-runtime";var td=({disabled:e=!1,field:{name:t,value:r,onChange:n,onBlur:o},form:{errors:a},label:s,labelDescription:u,labelProps:l={},options:c,placeholder:p,onChangeCustom:d,...m})=>{let g=v=>(0,ed.isNil)(v)?"":(0,ed.isBoolean)(v)?lr(r):v;return FD(Zt,{disabled:e,error:a[t],label:s,labelDescription:u,labelProps:l,name:t,children:FD(Ci,{"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),...m})})};td.displayName="FormConnectorSelect_VHS";i();i();var ss=U(Q());import{useEffect as CY}from"react";import{jsx as xY}from"react/jsx-runtime";var rd=({field:{name:e,value:t,onChange:r},form:{setFieldValue:n}={},onChangeCustom:o,valueState:a="",...s})=>(CY(()=>{!a&&(0,ss.isNil)(t)||a!==t&&(0,ss.isNotUndefined)(n)&&n(e,a)},[n,e,a,t]),xY(as,{"data-testid":`input-${e}`,name:e,onChange:u=>{r(u),(0,ss.isNotUndefined)(o)&&o(u.target.value)},type:"hidden",value:(0,ss.isNil)(t)?"":t,...s}));rd.displayName="FormConnectorHidden_VHS";i();i();var bA=U(Q());import{useState as zre,useEffect as Gre}from"react";import Hre from"styled-components";i();i();import{useCallback as wg,useMemo as Mre,useEffect as Ire}from"react";import gA from"styled-components";i();var Z2=U(ID()),_P=U(u2()),WP=U(dE());import fe,{createContext as Ri,useContext as gs,useRef as vr,useEffect as Gn,useLayoutEffect as oee,useState as Ai,memo as iee,forwardRef as aee,useCallback as Ne,Component as see,useReducer as uee,useMemo as wd}from"react";i();i();function mE(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function hE(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function l2(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return hE(r.overflowY,t)||hE(r.overflowX,t)||function(n){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(e)}return!1}function od(e,t,r,n,o,a,s,u){return a<e&&s>t||a>e&&s<t?0:a<=e&&u<=r||s>=t&&u>=r?a-e-n:s>t&&u<r||a<e&&u>r?s-t+o:0}var c2=function(e,t){var r=window,n=t.scrollMode,o=t.block,a=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,l=typeof s=="function"?s:function(xe){return xe!==s};if(!mE(e))throw new TypeError("Invalid target");for(var c,p,d=document.scrollingElement||document.documentElement,m=[],g=e;mE(g)&&l(g);){if((g=(p=(c=g).parentElement)==null?c.getRootNode().host||null:p)===d){m.push(g);break}g!=null&&g===document.body&&l2(g)&&!l2(document.documentElement)||g!=null&&l2(g,u)&&m.push(g)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,h=r.visualViewport?r.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),w=x.height,S=x.width,E=x.top,D=x.right,P=x.bottom,R=x.left,F=o==="start"||o==="nearest"?E:o==="end"?P:E+w/2,M=a==="center"?R+S/2:a==="end"?D:R,H=[],I=0;I<m.length;I++){var L=m[I],N=L.getBoundingClientRect(),$=N.height,te=N.width,K=N.top,re=N.right,G=N.bottom,ae=N.left;if(n==="if-needed"&&E>=0&&R>=0&&P<=h&&D<=v&&E>=K&&P<=G&&R>=ae&&D<=re)return H;var ve=getComputedStyle(L),de=parseInt(ve.borderLeftWidth,10),He=parseInt(ve.borderTopWidth,10),A=parseInt(ve.borderRightWidth,10),_=parseInt(ve.borderBottomWidth,10),z=0,j=0,ue="offsetWidth"in L?L.offsetWidth-L.clientWidth-de-A:0,ie="offsetHeight"in L?L.offsetHeight-L.clientHeight-He-_:0,me="offsetWidth"in L?L.offsetWidth===0?0:te/L.offsetWidth:0,Ce="offsetHeight"in L?L.offsetHeight===0?0:$/L.offsetHeight:0;if(d===L)z=o==="start"?F:o==="end"?F-h:o==="nearest"?od(y,y+h,h,He,_,y+F,y+F+w,w):F-h/2,j=a==="start"?M:a==="center"?M-v/2:a==="end"?M-v:od(b,b+v,v,de,A,b+M,b+M+S,S),z=Math.max(0,z+y),j=Math.max(0,j+b);else{z=o==="start"?F-K-He:o==="end"?F-G+_+ie:o==="nearest"?od(K,G,$,He,_+ie,F,F+w,w):F-(K+$/2)+ie/2,j=a==="start"?M-ae-de:a==="center"?M-(ae+te/2)+ue/2:a==="end"?M-re+A+ue:od(ae,re,te,de,A+ue,M,M+S,S);var Se=L.scrollLeft,Ee=L.scrollTop;F+=Ee-(z=Math.max(0,Math.min(Ee+z/Ce,L.scrollHeight-$/Ce+ie))),M+=Se-(j=Math.max(0,Math.min(Se+j/me,L.scrollWidth-te/me+ue)))}H.push({el:L,top:z,left:j})}return H};function gE(e){return e===Object(e)&&Object.keys(e).length!==0}function vJ(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var o=n.el,a=n.top,s=n.left;o.scroll&&r?o.scroll({top:a,left:s,behavior:t}):(o.scrollTop=a,o.scrollLeft=s)})}function yJ(e){return e===!1?{block:"end",inline:"nearest"}:gE(e)?e:{block:"start",inline:"nearest"}}function bJ(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(gE(t)&&typeof t.behavior=="function")return t.behavior(r?c2(e,t):[]);if(r){var n=yJ(t);return vJ(c2(e,n),n.behavior)}}var vE=bJ;i();i();function yE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ye(e){var t,r;return yE(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(yE(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}i();function Hr(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,a;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 Bo(e){return!!e&&!!e[hr]}function wi(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)===TJ}(e)||Array.isArray(e)||!!e[PE]||!!(!((t=e.constructor)===null||t===void 0)&&t[PE])||C2(e)||x2(e))}function Ju(e,t,r){r===void 0&&(r=!1),us(e)===0?(r?Object.keys:P2)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function us(e){var t=e[hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:C2(e)?2:x2(e)?3:0}function h2(e,t){return us(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function CJ(e,t){return us(e)===2?e.get(t):e[t]}function TE(e,t,r){var n=us(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function xJ(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function C2(e){return EJ&&e instanceof Map}function x2(e){return PJ&&e instanceof Set}function xi(e){return e.o||e.t}function w2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=AJ(e);delete t[hr];for(var r=P2(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function S2(e,t){return t===void 0&&(t=!1),D2(e)||Bo(e)||!wi(e)||(us(e)>1&&(e.set=e.add=e.clear=e.delete=wJ),Object.freeze(e),t&&Ju(e,function(r,n){return S2(n,!0)},!0)),e}function wJ(){Hr(2)}function D2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function an(e){var t=RJ[e];return t||Hr(18,e),t}function bE(){return Zu}function f2(e,t){t&&(an("Patches"),e.u=[],e.s=[],e.v=t)}function id(e){g2(e),e.p.forEach(SJ),e.p=null}function g2(e){e===Zu&&(Zu=e.l)}function CE(e){return Zu={p:[],l:Zu,h:e,m:!0,_:0}}function SJ(e){var t=e[hr];t.i===0||t.i===1?t.j():t.g=!0}function p2(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||an("ES5").S(t,e,n),n?(r[hr].P&&(id(t),Hr(4)),wi(e)&&(e=ad(t,e),t.l||sd(t,e)),t.u&&an("Patches").M(r[hr].t,e,t.u,t.s)):e=ad(t,r,[]),id(t),t.u&&t.v(t.u,t.s),e!==AE?e:void 0}function ad(e,t,r){if(D2(t))return t;var n=t[hr];if(!n)return Ju(t,function(u,l){return xE(e,n,t,u,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return sd(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=w2(n.k):n.o,a=o,s=!1;n.i===3&&(a=new Set(o),o.clear(),s=!0),Ju(a,function(u,l){return xE(e,n,o,u,l,r,s)}),sd(e,o,!1),r&&e.u&&an("Patches").N(n,r,e.u,e.s)}return n.o}function xE(e,t,r,n,o,a,s){if(Bo(o)){var u=ad(e,o,a&&t&&t.i!==3&&!h2(t.R,n)?a.concat(n):void 0);if(TE(r,n,u),!Bo(u))return;e.m=!1}else s&&r.add(o);if(wi(o)&&!D2(o)){if(!e.h.D&&e._<1)return;ad(e,o),t&&t.A.l||sd(e,o)}}function sd(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&S2(t,r)}function d2(e,t){var r=e[hr];return(r?xi(r):e)[t]}function wE(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 v2(e){e.P||(e.P=!0,e.l&&v2(e.l))}function m2(e){e.o||(e.o=w2(e.t))}function y2(e,t,r){var n=C2(t)?an("MapSet").F(t,r):x2(t)?an("MapSet").T(t,r):e.O?function(o,a){var s=Array.isArray(o),u={i:s?1:0,A:a?a.A:bE(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=u,c=b2;s&&(l=[u],c=Yu);var p=Proxy.revocable(l,c),d=p.revoke,m=p.proxy;return u.k=m,u.j=d,m}(t,r):an("ES5").J(t,r);return(r?r.A:bE()).p.push(n),n}function DJ(e){return Bo(e)||Hr(22,e),function t(r){if(!wi(r))return r;var n,o=r[hr],a=us(r);if(o){if(!o.P&&(o.i<4||!an("ES5").K(o)))return o.t;o.I=!0,n=SE(r,a),o.I=!1}else n=SE(r,a);return Ju(n,function(s,u){o&&CJ(o.t,s)===u||TE(n,s,t(u))}),a===3?new Set(n):n}(e)}function SE(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return w2(e)}var DE,Zu,E2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",EJ=typeof Map<"u",PJ=typeof Set<"u",EE=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",AE=E2?Symbol.for("immer-nothing"):((DE={})["immer-nothing"]=!0,DE),PE=E2?Symbol.for("immer-draftable"):"__$immer_draftable",hr=E2?Symbol.for("immer-state"):"__$immer_state";var TJ=""+Object.prototype.constructor,P2=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,AJ=Object.getOwnPropertyDescriptors||function(e){var t={};return P2(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},RJ={},b2={get:function(e,t){if(t===hr)return e;var r=xi(e);if(!h2(r,t))return function(o,a,s){var u,l=wE(a,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||!wi(n)?n:n===d2(e.t,t)?(m2(e),e.o[t]=y2(e.A.h,n,e)):n},has:function(e,t){return t in xi(e)},ownKeys:function(e){return Reflect.ownKeys(xi(e))},set:function(e,t,r){var n=wE(xi(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=d2(xi(e),t),a=o?.[hr];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(xJ(r,o)&&(r!==void 0||h2(e.t,t)))return!0;m2(e),v2(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 d2(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,m2(e),v2(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=xi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Hr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Hr(12)}},Yu={};Ju(b2,function(e,t){Yu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Yu.deleteProperty=function(e,t){return Yu.set.call(this,e,t,void 0)},Yu.set=function(e,t,r){return b2.set.call(this,e[0],t,r,e[0])};var FJ=function(){function e(r){var n=this;this.O=EE,this.D=!0,this.produce=function(o,a,s){if(typeof o=="function"&&typeof a!="function"){var u=a;a=o;var l=n;return function(h){var b=this;h===void 0&&(h=u);for(var y=arguments.length,x=Array(y>1?y-1:0),w=1;w<y;w++)x[w-1]=arguments[w];return l.produce(h,function(S){var E;return(E=a).call.apply(E,[b,S].concat(x))})}}var c;if(typeof a!="function"&&Hr(6),s!==void 0&&typeof s!="function"&&Hr(7),wi(o)){var p=CE(n),d=y2(n,o,void 0),m=!0;try{c=a(d),m=!1}finally{m?id(p):g2(p)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(h){return f2(p,s),p2(h,p)},function(h){throw id(p),h}):(f2(p,s),p2(c,p))}if(!o||typeof o!="object"){if((c=a(o))===void 0&&(c=o),c===AE&&(c=void 0),n.D&&S2(c,!0),s){var g=[],v=[];an("Patches").M(o,c,g,v),s(g,v)}return c}Hr(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),m=1;m<p;m++)d[m-1]=arguments[m];return n.produceWithPatches(c,function(g){return o.apply(void 0,[g].concat(d))})};var s,u,l=n.produce(o,a,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){wi(r)||Hr(8),Bo(r)&&(r=DJ(r));var n=CE(this),o=y2(this,r,void 0);return o[hr].C=!0,g2(n),o},t.finishDraft=function(r,n){var o=r&&r[hr],a=o.A;return f2(a,n),p2(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!EE&&Hr(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var s=an("Patches").$;return Bo(r)?s(r,n):this.produce(r,function(u){return s(u,n)})},e}(),gr=new FJ,ud=gr.produce,Det=gr.produceWithPatches.bind(gr),Eet=gr.setAutoFreeze.bind(gr),Pet=gr.setUseProxies.bind(gr),Tet=gr.applyPatches.bind(gr),T2=gr.createDraft.bind(gr),A2=gr.finishDraft.bind(gr);var OJ={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=T.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},BJ={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=ge.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},MJ={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=B.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},cd=new WeakMap,fd=new WeakMap,el=new WeakMap,aP=new WeakMap,RE=new WeakMap,FE=new WeakMap,OE=new WeakMap,T={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=T.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],a=t[n];if(o!==a)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),a=e[r],s=t[r];return T.equals(n,o)&&a>s},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return T.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),a=e[r],s=t[r];return T.equals(n,o)&&a<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 T.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&T.compare(e,t)===0},isBefore(e,t){return T.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&T.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&T.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&T.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&T.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],a=t[t.length-1];return o!==a&&T.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(!T.isAncestor(t,e)&&!T.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:a}=t;(T.equals(a,n)||T.endsBefore(a,n)||T.isAncestor(a,n))&&(n[a.length-1]+=1);break}case"remove_node":{var{path:s}=t;if(T.equals(s,n)||T.isAncestor(s,n))return null;T.endsBefore(s,n)&&(n[s.length-1]-=1);break}case"merge_node":{var{path:u,position:l}=t;T.equals(u,n)||T.endsBefore(u,n)?n[u.length-1]-=1:T.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=l);break}case"split_node":{var{path:c,position:p}=t;if(T.equals(c,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else T.endsBefore(c,n)?n[c.length-1]+=1:T.isAncestor(c,n)&&e[c.length]>=p&&(n[c.length-1]+=1,n[c.length]-=p);break}case"move_node":{var{path:d,newPath:m}=t;if(T.equals(d,m))return n;if(T.isAncestor(d,n)||T.equals(d,n)){var g=m.slice();return T.endsBefore(d,m)&&d.length<m.length&&(g[d.length-1]-=1),g.concat(n.slice(d.length))}else T.isSibling(d,m)&&(T.isAncestor(m,n)||T.equals(m,n))?T.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:T.endsBefore(m,n)||T.equals(m,n)||T.isAncestor(m,n)?(T.endsBefore(d,n)&&(n[d.length-1]-=1),n[m.length-1]+=1):T.endsBefore(d,n)&&(T.equals(m,n)&&(n[m.length-1]+=1),n[d.length-1]-=1);break}}return n}};function Lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BE(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 Qu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IJ=(e,t,r)=>{switch(r.type){case"insert_node":{var{path:n,node:o}=r,a=W.parent(e,n),s=n[n.length-1];if(s>a.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(a.children.splice(s,0,o),t)for(var[u,l]of B.points(t))t[l]=ge.transform(u,r);break}case"insert_text":{var{path:c,offset:p,text:d}=r;if(d.length===0)break;var m=W.leaf(e,c),g=m.text.slice(0,p),v=m.text.slice(p);if(m.text=g+d+v,t)for(var[h,b]of B.points(t))t[b]=ge.transform(h,r);break}case"merge_node":{var{path:y}=r,x=W.get(e,y),w=T.previous(y),S=W.get(e,w),E=W.parent(e,y),D=y[y.length-1];if(Z.isText(x)&&Z.isText(S))S.text+=x.text;else if(!Z.isText(x)&&!Z.isText(S))S.children.push(...x.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(at.stringify(x)," ").concat(at.stringify(S)));if(E.children.splice(D,1),t)for(var[P,R]of B.points(t))t[R]=ge.transform(P,r);break}case"move_node":{var{path:F,newPath:M}=r;if(T.isAncestor(F,M))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(M,"] because the destination is inside itself."));var H=W.get(e,F),I=W.parent(e,F),L=F[F.length-1];I.children.splice(L,1);var N=T.transform(F,r),$=W.get(e,T.parent(N)),te=N[N.length-1];if($.children.splice(te,0,H),t)for(var[K,re]of B.points(t))t[re]=ge.transform(K,r);break}case"remove_node":{var{path:G}=r,ae=G[G.length-1],ve=W.parent(e,G);if(ve.children.splice(ae,1),t)for(var[de,He]of B.points(t)){var A=ge.transform(de,r);if(t!=null&&A!=null)t[He]=A;else{var _=void 0,z=void 0;for(var[j,ue]of W.texts(e))if(T.compare(ue,G)===-1)_=[j,ue];else{z=[j,ue];break}var ie=!1;_&&z&&(T.equals(z[1],G)?ie=!T.hasPrevious(z[1]):ie=T.common(_[1],G).length<T.common(z[1],G).length),_&&!ie?(de.path=_[1],de.offset=_[0].text.length):z?(de.path=z[1],de.offset=0):t=null}}break}case"remove_text":{var{path:me,offset:Ce,text:Se}=r;if(Se.length===0)break;var Ee=W.leaf(e,me),xe=Ee.text.slice(0,Ce),gt=Ee.text.slice(Ce+Se.length);if(Ee.text=xe+gt,t)for(var[vt,je]of B.points(t))t[je]=ge.transform(vt,r);break}case"set_node":{var{path:ir,properties:Ht,newProperties:St}=r;if(ir.length===0)throw new Error("Cannot set properties on the root node!");var ar=W.get(e,ir);for(var O in St){if(O==="children"||O==="text")throw new Error('Cannot set the "'.concat(O,'" property of nodes!'));var J=St[O];J==null?delete ar[O]:ar[O]=J}for(var ee in Ht)St.hasOwnProperty(ee)||delete ar[ee];break}case"set_selection":{var{newProperties:X}=r;if(X==null)t=X;else{if(t==null){if(!B.isRange(X))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(at.stringify(X)," when there is no current selection."));t=Qu({},X)}for(var se in X){var we=X[se];if(we==null){if(se==="anchor"||se==="focus")throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=we}}break}case"split_node":{var{path:Pe,position:yt,properties:to}=r;if(Pe.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Pe,"] because the root node cannot be split."));var kr=W.get(e,Pe),W1=W.parent(e,Pe),n5=Pe[Pe.length-1],Xi;if(Z.isText(kr)){var U1=kr.text.slice(0,yt),pM=kr.text.slice(yt);kr.text=U1,Xi=Qu(Qu({},to),{},{text:pM})}else{var dM=kr.children.slice(0,yt),mM=kr.children.slice(yt);kr.children=dM,Xi=Qu(Qu({},to),{},{children:mM})}if(W1.children.splice(n5+1,0,Xi),t)for(var[hM,gM]of B.points(t))t[gM]=ge.transform(hM,r);break}}return t},kJ={transform(e,t){e.children=T2(e.children);var r=e.selection&&T2(e.selection);try{r=IJ(e,r,t)}finally{e.children=A2(e.children),r?e.selection=Bo(r)?A2(r):r:e.selection=null}}},NJ={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)}},VJ={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)}},sP=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(Ye(n)&&Ye(o)){if(!sP(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(n[a]!==o[a])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 LJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function $n(e,t){if(e==null)return{};var r=LJ(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var $J=["anchor","focus"];function ME(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 zJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ME(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ME(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var B={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return B.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=B.edges(e);return t},equals(e,t){return ge.equals(e.anchor,t.anchor)&&ge.equals(e.focus,t.focus)},includes(e,t){if(B.isRange(t)){if(B.includes(e,t.anchor)||B.includes(e,t.focus))return!0;var[r,n]=B.edges(e),[o,a]=B.edges(t);return ge.isBefore(r,o)&&ge.isAfter(n,a)}var[s,u]=B.edges(e),l=!1,c=!1;return ge.isPoint(t)?(l=ge.compare(t,s)>=0,c=ge.compare(t,u)<=0):(l=T.compare(t,s.path)>=0,c=T.compare(t,u.path)<=0),l&&c},intersection(e,t){var r=$n(e,$J),[n,o]=B.edges(e),[a,s]=B.edges(t),u=ge.isBefore(n,a)?a:n,l=ge.isBefore(o,s)?o:s;return ge.isBefore(l,u)?null:zJ({anchor:u,focus:l},r)},isBackward(e){var{anchor:t,focus:r}=e;return ge.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return ge.equals(t,r)},isExpanded(e){return!B.isCollapsed(e)},isForward(e){return!B.isBackward(e)},isRange(e){return Ye(e)&&ge.isPoint(e.anchor)&&ge.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=B.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ud(e,n=>{if(n===null)return null;var{affinity:o="inward"}=r,a,s;if(o==="inward"){var u=B.isCollapsed(n);B.isForward(n)?(a="forward",s=u?a:"backward"):(a="backward",s=u?a:"forward")}else o==="outward"?B.isForward(n)?(a="backward",s="forward"):(a="forward",s="backward"):(a=o,s=o);var l=ge.transform(n.anchor,t,{affinity:a}),c=ge.transform(n.focus,t,{affinity:s});if(!l||!c)return null;n.anchor=l,n.focus=c})}},IE=e=>Ye(e)&&W.isNodeList(e.children)&&!C.isEditor(e),q={isAncestor(e){return Ye(e)&&W.isNodeList(e.children)},isElement:IE,isElementList(e){return Array.isArray(e)&&e.every(t=>q.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 IE(t)&&t[n]===r},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},GJ=["children"],HJ=["text"],kE=new WeakMap,W={ancestor(e,t){var r=W.get(e,t);if(Z.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(at.stringify(r)));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of T.ancestors(t,r)){var o=W.ancestor(e,n),a=[o,n];yield a}},child(e,t){if(Z.isText(e))throw new Error("Cannot get the child of a text node: ".concat(at.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(at.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:a}=o,s=n?a.length-1:0;n?s>=0:s<a.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=T.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(at.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))q.isElement(r)&&(yield[r,n])},extractProps(e){if(q.isAncestor(e)){var t=$n(e,GJ);return t}else{var t=$n(e,HJ);return t}},first(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Z.isText(n)||n.children.length===0);)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Z.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(at.stringify(e)));var r=ud({children:e.children},n=>{var[o,a]=B.edges(t),s=W.nodes(n,{reverse:!0,pass:m=>{var[,g]=m;return!B.includes(t,g)}});for(var[,u]of s){if(!B.includes(t,u)){var l=W.parent(n,u),c=u[u.length-1];l.children.splice(c,1)}if(T.equals(u,a.path)){var p=W.leaf(n,u);p.text=p.text.slice(0,a.offset)}if(T.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(Z.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(at.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(Z.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode(e){return Z.isText(e)||q.isElement(e)||C.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=kE.get(e);if(t!==void 0)return t;var r=e.every(n=>W.isNode(n));return kE.set(e,r),r},last(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Z.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(!Z.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(at.stringify(r)));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of T.levels(t,r)){var o=W.get(e,n);yield[o,n]}},matches(e,t){return q.isElement(e)&&q.isElementProps(t)&&q.matches(e,t)||Z.isText(e)&&Z.isTextProps(t)&&Z.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:a}=t,s=new Set,u=[],l=e;!(a&&(n?T.isBefore(u,a):T.isAfter(u,a)));){if(s.has(l)||(yield[l,u]),!s.has(l)&&!Z.isText(l)&&l.children.length!==0&&(r==null||r([l,u])===!1)){s.add(l);var c=n?l.children.length-1:0;T.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=T.next(u);if(W.has(e,p)){u=p,l=W.get(e,u);continue}}if(n&&u[u.length-1]!==0){var d=T.previous(u);u=d,l=W.get(e,u);continue}u=T.parent(u),l=W.get(e,u),s.add(l)}},parent(e,t){var r=T.parent(t),n=W.get(e,r);if(Z.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 Z.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))Z.isText(r)&&(yield[r,n])}};function NE(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 ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ln={isNodeOperation(e){return Ln.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ye(e))return!1;switch(e.type){case"insert_node":return T.isPath(e.path)&&W.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&T.isPath(e.path);case"merge_node":return typeof e.position=="number"&&T.isPath(e.path)&&Ye(e.properties);case"move_node":return T.isPath(e.path)&&T.isPath(e.newPath);case"remove_node":return T.isPath(e.path)&&W.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&T.isPath(e.path);case"set_node":return T.isPath(e.path)&&Ye(e.properties)&&Ye(e.newProperties);case"set_selection":return e.properties===null&&B.isRange(e.newProperties)||e.newProperties===null&&B.isRange(e.properties)||Ye(e.properties)&&Ye(e.newProperties);case"split_node":return T.isPath(e.path)&&typeof e.position=="number"&&Ye(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Ln.isOperation(t))},isSelectionOperation(e){return Ln.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ln.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return ze(ze({},e),{},{type:"remove_node"});case"insert_text":return ze(ze({},e),{},{type:"remove_text"});case"merge_node":return ze(ze({},e),{},{type:"split_node",path:T.previous(e.path)});case"move_node":{var{newPath:t,path:r}=e;if(T.equals(t,r))return e;if(T.isSibling(r,t))return ze(ze({},e),{},{path:t,newPath:r});var n=T.transform(r,e),o=T.transform(T.next(r),e);return ze(ze({},e),{},{path:n,newPath:o})}case"remove_node":return ze(ze({},e),{},{type:"insert_node"});case"remove_text":return ze(ze({},e),{},{type:"insert_text"});case"set_node":{var{properties:a,newProperties:s}=e;return ze(ze({},e),{},{properties:s,newProperties:a})}case"set_selection":{var{properties:u,newProperties:l}=e;return u==null?ze(ze({},e),{},{properties:l,newProperties:null}):l==null?ze(ze({},e),{},{properties:null,newProperties:u}):ze(ze({},e),{},{properties:l,newProperties:u})}case"split_node":return ze(ze({},e),{},{type:"merge_node",path:T.next(e.path)})}}},VE=new WeakMap,jJ=e=>{var t=VE.get(e);if(t!==void 0)return t;if(!Ye(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||Ye(e.marks))&&(e.selection===null||B.isRange(e.selection))&&W.isNodeList(e.children)&&Ln.isOperationList(e.operations);return VE.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 jJ(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 _J={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(T.isPath)}};function LE(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 $E(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ge={compare(e,t){var r=T.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter(e,t){return ge.compare(e,t)===1},isBefore(e,t){return ge.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&T.equals(e.path,t.path)},isPoint(e){return Ye(e)&&typeof e.offset=="number"&&T.isPath(e.path)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ud(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:a,offset:s}=n;switch(t.type){case"insert_node":case"move_node":{n.path=T.transform(a,t,r);break}case"insert_text":{T.equals(t.path,a)&&(t.offset<s||t.offset===s&&o==="forward")&&(n.offset+=t.text.length);break}case"merge_node":{T.equals(t.path,a)&&(n.offset+=t.position),n.path=T.transform(a,t,r);break}case"remove_text":{T.equals(t.path,a)&&t.offset<=s&&(n.offset-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(T.equals(t.path,a)||T.isAncestor(t.path,a))return null;n.path=T.transform(a,t,r);break}case"split_node":{if(T.equals(t.path,a)){if(t.position===s&&o==null)return null;(t.position<s||t.position===s&&o==="forward")&&(n.offset-=t.position,n.path=T.transform(a,t,$E($E({},r),{},{affinity:"forward"})))}else n.path=T.transform(a,t,r);break}}})}},zE=void 0,at={setScrubber(e){zE=e},stringify(e){return JSON.stringify(e,zE)}},WJ=["text"],UJ=["anchor","focus"];function GE(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 Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Z={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(a){var s=$n(a,WJ);return s}return sP(n?o(e):e,n?o(t):t)},isText(e){return Ye(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Z.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=[Vn({},e)];for(var n of t){var o=$n(n,UJ),[a,s]=B.edges(n),u=[],l=0,c=a.offset,p=s.offset;for(var d of r){var{length:m}=d.text,g=l;if(l+=m,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,h=void 0,b=void 0;if(p<l){var y=p-g;b=Vn(Vn({},v),{},{text:v.text.slice(y)}),v=Vn(Vn({},v),{},{text:v.text.slice(0,y)})}if(c>g){var x=c-g;h=Vn(Vn({},v),{},{text:v.text.slice(0,x)}),v=Vn(Vn({},v),{},{text:v.text.slice(x)})}Object.assign(v,o),h&&u.push(h),u.push(v),b&&u.push(b)}r=u}return r}},R2=e=>e.selection?e.selection:e.children.length>0?C.end(e,[]):[0],cs=(e,t)=>{var[r]=C.node(e,t);return n=>n===r},F2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!r,o=r?ZJ(t):t,a=le.None,s=le.None,u=0,l=null,c=null;for(var p of o){var d=p.codePointAt(0);if(!d)break;var m=cZ(p,d);if([a,s]=n?[s,m]:[m,a],ls(a,le.ZWJ)&&ls(s,le.ExtPict)&&(n?l=HE(t.substring(0,u)):l=HE(t.substring(0,t.length-u)),!l)||ls(a,le.RI)&&ls(s,le.RI)&&(c!==null?c=!c:n?c=!0:c=hZ(t.substring(0,t.length-u)),!c)||a!==le.None&&s!==le.None&&pZ(a,s))break;u+=p.length}return u||1},KJ=/\s/,qJ=/[\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]/,XJ=/['\u2018\u2019]/,YJ=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,o=!1;t.length>0;){var a=F2(t,r),[s,u]=O2(t,a,r);if(JJ(s,u,r))o=!0,n+=a;else if(!o)n+=a;else break;t=u}return n},O2=(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)]},JJ=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(KJ.test(t))return!1;if(XJ.test(t)){var o=F2(r,n),[a,s]=O2(r,o,n);if(e(a,s,n))return!0}return!qJ.test(t)},ZJ=function*(t){for(var r=t.length-1,n=0;n<t.length;n++){var o=t.charAt(r-n);if(eZ(o.charCodeAt(0))){var a=t.charAt(r-n-1);if(QJ(a.charCodeAt(0))){yield a+o,n++;continue}}yield o}},QJ=e=>e>=55296&&e<=56319,eZ=e=>e>=56320&&e<=57343,le;(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"})(le||(le={}));var tZ=/^(?:[\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])$/,rZ=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,nZ=/^(?:[\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])$/,oZ=/^[\u1100-\u115F\uA960-\uA97C]$/,iZ=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,aZ=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,sZ=/^[\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]$/,uZ=/^[\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]$/,lZ=/^(?:[\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])$/,cZ=(e,t)=>{var r=le.Any;return e.search(tZ)!==-1&&(r|=le.Extend),t===8205&&(r|=le.ZWJ),t>=127462&&t<=127487&&(r|=le.RI),e.search(rZ)!==-1&&(r|=le.Prepend),e.search(nZ)!==-1&&(r|=le.SpacingMark),e.search(oZ)!==-1&&(r|=le.L),e.search(iZ)!==-1&&(r|=le.V),e.search(aZ)!==-1&&(r|=le.T),e.search(sZ)!==-1&&(r|=le.LV),e.search(uZ)!==-1&&(r|=le.LVT),e.search(lZ)!==-1&&(r|=le.ExtPict),r};function ls(e,t){return(e&t)!==0}var fZ=[[le.L,le.L|le.V|le.LV|le.LVT],[le.LV|le.V,le.V|le.T],[le.LVT|le.T,le.T],[le.Any,le.Extend|le.ZWJ],[le.Any,le.SpacingMark],[le.Prepend,le.Any],[le.ZWJ,le.ExtPict],[le.RI,le.RI]];function pZ(e,t){return fZ.findIndex(r=>ls(e,r[0])&&ls(t,r[1]))===-1}var dZ=/(?:[\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$/,HE=e=>e.search(dZ)!==-1,mZ=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,hZ=e=>{var t=e.match(mZ);if(t===null)return!1;var r=t[0].length/2;return r%2===1},gZ={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=R2(e)}=r;if(T.isPath(o)&&(o=C.range(e,o)),B.isRange(o))if(B.isCollapsed(o))o=o.anchor;else{var a=B.end(o);if(!n&&C.void(e,{at:a}))return;var s=B.start(o),u=C.pointRef(e,s),l=C.pointRef(e,a);k.delete(e,{at:o,voids:n});var c=u.unref(),p=l.unref();o=c||p,k.setSelection(e,{anchor:o,focus:o})}if(!(!n&&C.void(e,{at:o})||C.elementReadOnly(e,{at:o}))){var{path:d,offset:m}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:m,text:t})}})}};function jE(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 ld(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var k=ld(ld(ld(ld({},kJ),NJ),VJ),gZ),vZ=(e,t)=>{for(var r of C.pathRefs(e))OJ.transform(r,t);for(var n of C.pointRefs(e))BJ.transform(n,t);for(var o of C.rangeRefs(e))MJ.transform(o,t);var a=cd.get(e)||[],s=fd.get(e)||new Set,u,l,c=v=>{if(v){var h=v.join(",");l.has(h)||(l.add(h),u.push(v))}};if(T.operationCanTransformPath(t)){u=[],l=new Set;for(var p of a){var d=T.transform(p,t);c(d)}}else u=a,l=s;var m=e.getDirtyPaths(t);for(var g of m)c(g);cd.set(e,u),fd.set(e,l),k.transform(e,t),e.operations.push(t),C.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),el.get(e)||(el.set(e,!0),Promise.resolve().then(()=>{el.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},yZ=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=t;return T.levels(r)}case"insert_node":{var{node:n,path:o}=t,a=T.levels(o),s=Z.isText(n)?[]:Array.from(W.nodes(n),M=>{var[,H]=M;return o.concat(H)});return[...a,...s]}case"merge_node":{var{path:u}=t,l=T.ancestors(u),c=T.previous(u);return[...l,c]}case"move_node":{var{path:p,newPath:d}=t;if(T.equals(p,d))return[];var m=[],g=[];for(var v of T.ancestors(p)){var h=T.transform(v,t);m.push(h)}for(var b of T.ancestors(d)){var y=T.transform(b,t);g.push(y)}var x=g[g.length-1],w=d[d.length-1],S=x.concat(w);return[...m,...g,S]}case"remove_node":{var{path:E}=t,D=T.ancestors(E);return[...D]}case"split_node":{var{path:P}=t,R=T.levels(P),F=T.next(P);return[...R,F]}default:return[]}},bZ=e=>{var{selection:t}=e;return t?W.fragment(e,t):[]},CZ=(e,t)=>{var[r,n]=t;if(!Z.isText(r)){if(q.isElement(r)&&r.children.length===0){var o={text:""};k.insertNodes(e,o,{at:n.concat(0),voids:!0});return}for(var a=C.isEditor(r)?!1:q.isElement(r)&&(e.isInline(r)||r.children.length===0||Z.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(!Z.isText(l)){var c=l.children[s],p=l.children[s-1],d=u===r.children.length-1,m=Z.isText(c)||q.isElement(c)&&e.isInline(c);if(m!==a)k.removeNodes(e,{at:n.concat(s),voids:!0}),s--;else if(q.isElement(c)){if(e.isInline(c)){if(p==null||!Z.isText(p)){var g={text:""};k.insertNodes(e,g,{at:n.concat(s),voids:!0}),s++}else if(d){var v={text:""};k.insertNodes(e,v,{at:n.concat(s+1),voids:!0}),s++}}}else p!=null&&Z.isText(p)&&(Z.equals(c,p,{loose:!0})?(k.mergeNodes(e,{at:n.concat(s),voids:!0}),s--):p.text===""?(k.removeNodes(e,{at:n.concat(s-1),voids:!0}),s--):c.text===""&&(k.removeNodes(e,{at:n.concat(s),voids:!0}),s--))}}}},xZ=(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},wZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:a=t.selection,match:s}=r;if(a){var u=C.path(t,a),l=o==="lowest";for(var[c,p]of C.levels(t,{at:u,voids:n,match:s,reverse:l}))if(!Z.isText(c)){if(B.isRange(a)){if(T.isAncestor(p,a.anchor.path)&&T.isAncestor(p,a.focus.path))return[c,p]}else if(!T.equals(u,p))return[c,p]}}};function _E(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 WE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_E(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_E(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var SZ=(e,t,r)=>{var{selection:n}=e;if(n){var o=(d,m)=>{if(!Z.isText(d))return!1;var[g,v]=C.parent(e,m);return!e.isVoid(g)||e.markableVoid(g)},a=B.isExpanded(n),s=!1;if(!a){var[u,l]=C.node(e,n);if(u&&o(u,l)){var[c]=C.parent(e,l);s=c&&e.markableVoid(c)}}if(a||s)k.setNodes(e,{[t]:r},{match:o,split:!0,voids:!0});else{var p=WE(WE({},C.marks(e)||{}),{},{[t]:r});e.marks=p,el.get(e)||e.onChange()}}};function UE(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 KE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var DZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.point(t,r,{edge:"end"}),a=C.end(t,[]),s={anchor:o,focus:a},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,KE(KE({},n),{},{at:s}))){if(l>u)break;l!==0&&(c=p),l++}return c};function qE(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 XE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var EZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.start(t,[]),a=C.point(t,r,{edge:"start"}),s={anchor:o,focus:a},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,XE(XE({},n),{},{at:s,reverse:!0}))){if(l>u)break;l!==0&&(c=p),l++}return c},PZ=(e,t)=>{var{selection:r}=e;r&&B.isCollapsed(r)&&k.delete(e,{unit:t,reverse:!0})},TZ=(e,t)=>{var{selection:r}=e;r&&B.isCollapsed(r)&&k.delete(e,{unit:t})},AZ=function(t){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t;n&&B.isExpanded(n)&&k.delete(t,{reverse:r==="backward"})},RZ=(e,t)=>[C.start(e,t),C.end(e,t)];function YE(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 JE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var FZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,JE(JE({},r),{},{match:n=>q.isElement(n)&&C.isElementReadOnly(t,n)}))},OZ=(e,t)=>C.point(e,t,{edge:"end"}),BZ=(e,t)=>{var r=C.path(e,t,{edge:"start"});return C.node(e,r)},MZ=(e,t)=>{var r=C.range(e,t);return W.fragment(e,r)};function ZE(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 QE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,QE(QE({},r),{},{match:n=>q.isElement(n)&&C.isVoid(t,n)}))},kZ=(e,t)=>t.children.some(r=>q.isElement(r)&&C.isBlock(e,r)),NZ=(e,t)=>t.children.some(r=>Z.isText(r)||C.isInline(e,r)),VZ=(e,t)=>W.has(e,t),LZ=(e,t)=>t.children.every(r=>Z.isText(r)),$Z=e=>{k.splitNodes(e,{always:!0})},zZ=(e,t,r)=>{k.insertNodes(e,t,r)},GZ=e=>{k.splitNodes(e,{always:!0})};function eP(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 HZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:a}=t;if(o){if(a){var s=HZ({text:r},a);k.insertNodes(t,s,{at:n.at,voids:n.voids})}else k.insertText(t,r,n);t.marks=null}},_Z=(e,t)=>!e.isInline(t),WZ=(e,t,r)=>C.isStart(e,t,r)||C.isEnd(e,t,r),UZ=(e,t)=>{var{children:r}=t,[n]=r;return r.length===0||r.length===1&&Z.isText(n)&&n.text===""&&!e.isVoid(t)},KZ=(e,t,r)=>{var n=C.end(e,r);return ge.equals(t,n)},qZ=e=>{var t=aP.get(e);return t===void 0?!0:t},XZ=(e,t,r)=>{if(t.offset!==0)return!1;var n=C.start(e,r);return ge.equals(t,n)},YZ=(e,t)=>{var r=C.path(e,t,{edge:"end"});return C.node(e,r)},JZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),a=W.leaf(t,o);return[a,o]};function*ZZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),!!r){var s=[],u=C.path(e,r);for(var[l,c]of W.levels(e,u))if(a(l,c)&&(s.push([l,c]),!o&&q.isElement(l)&&C.isVoid(e,l)))break;n&&s.reverse(),yield*s}}var QZ=["text"],eQ=["text"],tQ=function(t){var{marks:r,selection:n}=t;if(!n)return null;if(r)return r;if(B.isExpanded(n)){var[o]=C.nodes(t,{match:Z.isText});if(o){var[a]=o,s=$n(a,QZ);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:Z.isText}),d=C.above(t,{match:y=>q.isElement(y)&&C.isVoid(t,y)&&t.markableVoid(y)});if(!d){var m=C.above(t,{match:y=>q.isElement(y)&&C.isBlock(t,y)});if(p&&m){var[g,v]=p,[,h]=m;T.isAncestor(h,v)&&(c=g)}}}var b=$n(c,eQ);return b},rQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:a,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(T.isPath(s)&&s.length===0)throw new Error("Cannot get the next node from the root node!");if(a==null)if(T.isPath(s)){var[p]=C.parent(t,s);a=m=>p.children.includes(m)}else a=()=>!0;var[d]=C.nodes(t,{at:c,match:a,mode:n,voids:o});return d}}},nQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),a=W.get(t,o);return[a,o]};function*oQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:a=!1,voids:s=!1,ignoreNonSelectable:u=!1}=t,{match:l}=t;if(l||(l=()=>!0),!!r){var c,p;if(_J.isSpan(r))c=r[0],p=r[1];else{var d=C.path(e,r,{edge:"start"}),m=C.path(e,r,{edge:"end"});c=a?m:d,p=a?d:m}var g=W.nodes(e,{reverse:a,from:c,to:p,pass:S=>{var[E]=S;return q.isElement(E)?!!(!s&&(C.isVoid(e,E)||C.isElementReadOnly(e,E))||u&&!C.isSelectable(e,E)):!1}}),v=[],h;for(var[b,y]of g)if(!(u&&q.isElement(b)&&!C.isSelectable(e,b))){var x=h&&T.compare(y,h[1])===0;if(!(n==="highest"&&x)){if(!l(b,y)){if(o&&!x&&Z.isText(b))return;continue}if(n==="lowest"&&x){h=[b,y];continue}var w=n==="lowest"?h:[b,y];w&&(o?v.push(w):yield w),h=[b,y]}}n==="lowest"&&h&&(o?v.push(h):yield h),o&&(yield*v)}}var iQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:o}=r,a=p=>cd.get(p)||[],s=p=>fd.get(p)||new Set,u=p=>{var d=a(p).pop(),m=d.join(",");return s(p).delete(m),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(",")));cd.set(t,l),fd.set(t,c)}a(t).length!==0&&C.withoutNormalizing(t,()=>{for(var p of a(t))if(W.has(t,p)){var d=C.node(t,p),[m,g]=d;q.isElement(m)&&m.children.length===0&&t.normalizeNode(d,{operation:o})}for(var v=a(t),h=v.length,b=0;v.length!==0;){if(!t.shouldNormalize({dirtyPaths:v,iteration:b,initialDirtyPathsLength:h,operation:o}))return;var y=u(t);if(W.has(t,y)){var x=C.node(t,y);t.normalizeNode(x,{operation:o})}b++,v=a(t)}})}},aQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),a=T.parent(o),s=C.node(t,a);return s},sQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,a={current:r,affinity:o,unref(){var{current:u}=a,l=C.pathRefs(t);return l.delete(a),a.current=null,u}},s=C.pathRefs(t);return s.add(a),a},uQ=e=>{var t=RE.get(e);return t||(t=new Set,RE.set(e,t)),t},lQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:a}=n;if(T.isPath(r)){if(a==="start"){var[,s]=W.first(t,r);r=s}else if(a==="end"){var[,u]=W.last(t,r);r=u}}return B.isRange(r)&&(a==="start"?r=B.start(r):a==="end"?r=B.end(r):r=T.common(r.anchor.path,r.focus.path)),ge.isPoint(r)&&(r=r.path),o!=null&&(r=r.slice(0,o)),r},cQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,a={current:r,affinity:o,unref(){var{current:u}=a,l=C.pointRefs(t);return l.delete(a),a.current=null,u}},s=C.pointRefs(t);return s.add(a),a},fQ=e=>{var t=FE.get(e);return t||(t=new Set,FE.set(e,t)),t},pQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=n;if(T.isPath(r)){var a;if(o==="end"){var[,s]=W.last(t,r);a=s}else{var[,u]=W.first(t,r);a=u}var l=W.get(t,a);if(!Z.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:a,offset:o==="end"?l.text.length:0}}if(B.isRange(r)){var[c,p]=B.edges(r);return o==="start"?c:p}return r};function*dQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:a=!1,ignoreNonSelectable:s=!1}=t;if(!r)return;var u=C.range(e,r),[l,c]=B.edges(u),p=o?c:l,d=!1,m="",g=0,v=0,h=0;for(var[b,y]of C.nodes(e,{at:r,reverse:o,voids:a,ignoreNonSelectable:s})){if(q.isElement(b)){if(!a&&(e.isVoid(b)||e.isElementReadOnly(b))){yield C.start(e,y);continue}if(e.isInline(b))continue;if(C.hasInlines(e,b)){var x=T.isAncestor(y,c.path)?c:C.end(e,y),w=T.isAncestor(y,l.path)?l:C.start(e,y);m=C.string(e,{anchor:w,focus:x},{voids:a}),d=!0}}if(Z.isText(b)){var S=T.equals(y,p.path);for(S?(v=o?p.offset:b.text.length-p.offset,h=p.offset):(v=b.text.length,h=o?v:0),(S||d||n==="offset")&&(yield{path:y,offset:h},d=!1);;){if(g===0){if(m==="")break;g=E(m,n,o),m=O2(m,g,o)[1]}if(h=o?h-g:h+g,v=v-g,v<0){g=-v;break}g=0,yield{path:y,offset:h}}}}function E(D,P,R){return P==="character"?F2(D,R):P==="word"?YJ(D,R):P==="line"||P==="block"?D.length:1}}var mQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:a,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(T.isPath(s)&&s.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(T.isPath(s)){var[p]=C.parent(t,s);a=m=>p.children.includes(m)}else a=()=>!0;var[d]=C.nodes(t,{reverse:!0,at:c,match:a,mode:n,voids:o});return d}}},hQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,a={current:r,affinity:o,unref(){var{current:u}=a,l=C.rangeRefs(t);return l.delete(a),a.current=null,u}},s=C.rangeRefs(t);return s.add(a),a},gQ=e=>{var t=OE.get(e);return t||(t=new Set,OE.set(e,t)),t},vQ=(e,t,r)=>{if(B.isRange(t)&&!r)return t;var n=C.start(e,t),o=C.end(e,r||t);return{anchor:n,focus:o}};function tP(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 yQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var bQ=(e,t)=>{var{selection:r}=e;if(r){var n=(p,d)=>{if(!Z.isText(p))return!1;var[m,g]=C.parent(e,d);return!e.isVoid(m)||e.markableVoid(m)},o=B.isExpanded(r),a=!1;if(!o){var[s,u]=C.node(e,r);if(s&&n(s,u)){var[l]=C.parent(e,u);a=l&&e.markableVoid(l)}}if(o||a)k.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var c=yQ({},C.marks(e)||{});delete c[t],e.marks=c,el.get(e)||e.onChange()}}},CQ=(e,t)=>{aP.set(e,t)},xQ=(e,t)=>C.point(e,t,{edge:"start"}),wQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,a=C.range(t,r),[s,u]=B.edges(a),l="";for(var[c,p]of C.nodes(t,{at:a,match:Z.isText,voids:o})){var d=c.text;T.equals(p,u.path)&&(d=d.slice(0,u.offset)),T.equals(p,s.path)&&(d=d.slice(s.offset)),l+=d}return l},SQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,[a,s]=B.edges(r);if(a.offset!==0||s.offset!==0||B.isCollapsed(r)||T.hasPrevious(s.path))return r;var u=C.above(t,{at:s,match:v=>q.isElement(v)&&C.isBlock(t,v),voids:o}),l=u?u[1]:[],c=C.start(t,a),p={anchor:c,focus:s},d=!0;for(var[m,g]of C.nodes(t,{at:p,match:Z.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(m.text!==""||T.isBefore(g,l)){s={path:g,offset:m.text.length};break}}return{anchor:a,focus:s}},DQ=(e,t)=>{var r=C.isNormalizing(e);C.setNormalizing(e,!1);try{t()}finally{C.setNormalizing(e,r)}C.normalize(e)},EQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var n,o,{reverse:a=!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(B.isRange(c)&&B.isCollapsed(c)&&(d=!0,c=c.anchor),ge.isPoint(c)){var m=C.void(t,{at:c,mode:"highest"});if(!l&&m){var[,g]=m;c=g}else{var v={unit:s,distance:u},h=a?C.before(t,c,v)||C.start(t,[]):C.after(t,c,v)||C.end(t,[]);c={anchor:c,focus:h},p=!0}}if(T.isPath(c)){k.removeNodes(t,{at:c,voids:l});return}if(!B.isCollapsed(c)){if(!p){var[,b]=B.edges(c),y=C.end(t,[]);ge.equals(b,y)||(c=C.unhangRange(t,c,{voids:l}))}var[x,w]=B.edges(c),S=C.above(t,{match:xe=>q.isElement(xe)&&C.isBlock(t,xe),at:x,voids:l}),E=C.above(t,{match:xe=>q.isElement(xe)&&C.isBlock(t,xe),at:w,voids:l}),D=S&&E&&!T.equals(S[1],E[1]),P=T.equals(x.path,w.path),R=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(R){var M=C.before(t,x);M&&S&&T.isAncestor(S[1],M.path)&&(x=M)}if(F){var H=C.after(t,w);H&&E&&T.isAncestor(E[1],H.path)&&(w=H)}var I=[],L;for(var N of C.nodes(t,{at:c,voids:l})){var[$,te]=N;L&&T.compare(te,L)===0||(!l&&q.isElement($)&&(C.isVoid(t,$)||C.isElementReadOnly(t,$))||!T.isCommon(te,x.path)&&!T.isCommon(te,w.path))&&(I.push(N),L=te)}var K=Array.from(I,xe=>{var[,gt]=xe;return C.pathRef(t,gt)}),re=C.pointRef(t,x),G=C.pointRef(t,w),ae="";if(!P&&!R){var ve=re.current,[de]=C.leaf(t,ve),{path:He}=ve,{offset:A}=x,_=de.text.slice(A);_.length>0&&(t.apply({type:"remove_text",path:He,offset:A,text:_}),ae=_)}if(K.reverse().map(xe=>xe.unref()).filter(xe=>xe!==null).forEach(xe=>k.removeNodes(t,{at:xe,voids:l})),!F){var z=G.current,[j]=C.leaf(t,z),{path:ue}=z,ie=P?x.offset:0,me=j.text.slice(ie,w.offset);me.length>0&&(t.apply({type:"remove_text",path:ue,offset:ie,text:me}),ae=me)}!P&&D&&G.current&&re.current&&k.mergeNodes(t,{at:G.current,hanging:!0,voids:l}),d&&a&&s==="character"&&ae.length>1&&ae.match(/[\u0E00-\u0E7F]+/)&&k.insertText(t,ae.slice(0,ae.length-u));var Ce=re.unref(),Se=G.unref(),Ee=a?Ce||Se:Se||Ce;r.at==null&&Ee&&k.select(t,Ee)}}})},PQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!1}=n,{at:s=R2(t)}=n;if(r.length){if(B.isRange(s))if(o||(s=C.unhangRange(t,s,{voids:a})),B.isCollapsed(s))s=s.anchor;else{var[,u]=B.edges(s);if(!a&&C.void(t,{at:u}))return;var l=C.pointRef(t,u);k.delete(t,{at:s}),s=l.unref()}else T.isPath(s)&&(s=C.start(t,s));if(!(!a&&C.void(t,{at:s}))){var c=C.above(t,{at:s,match:A=>q.isElement(A)&&C.isInline(t,A),mode:"highest",voids:a});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 m=C.before(t,p);s=m}}var g=C.above(t,{match:A=>q.isElement(A)&&C.isBlock(t,A),at:s,voids:a}),[,v]=g,h=C.isStart(t,s,v),b=C.isEnd(t,s,v),y=h&&b,x=!h||h&&b,w=!b,[,S]=W.first({children:r},[]),[,E]=W.last({children:r},[]),D=[],P=A=>{var[_,z]=A,j=z.length===0;return j?!1:y?!0:!(x&&T.isAncestor(z,S)&&q.isElement(_)&&!t.isVoid(_)&&!t.isInline(_)||w&&T.isAncestor(z,E)&&q.isElement(_)&&!t.isVoid(_)&&!t.isInline(_))};for(var R of W.nodes({children:r},{pass:P}))P(R)&&D.push(R);var F=[],M=[],H=[],I=!0,L=!1;for(var[N]of D)q.isElement(N)&&!t.isInline(N)?(I=!1,L=!0,M.push(N)):I?F.push(N):H.push(N);var[$]=C.nodes(t,{at:s,match:A=>Z.isText(A)||C.isInline(t,A),mode:"highest",voids:a}),[,te]=$,K=C.isStart(t,s,te),re=C.isEnd(t,s,te),G=C.pathRef(t,b&&!H.length?T.next(v):v),ae=C.pathRef(t,re?T.next(te):te);k.splitNodes(t,{at:s,match:A=>L?q.isElement(A)&&C.isBlock(t,A):Z.isText(A)||C.isInline(t,A),mode:L?"lowest":"highest",always:L&&(!h||F.length>0)&&(!b||H.length>0),voids:a});var ve=C.pathRef(t,!K||K&&re?T.next(te):te);if(k.insertNodes(t,F,{at:ve.current,match:A=>Z.isText(A)||C.isInline(t,A),mode:"highest",voids:a}),y&&!F.length&&M.length&&!H.length&&k.delete(t,{at:v,voids:a}),k.insertNodes(t,M,{at:G.current,match:A=>q.isElement(A)&&C.isBlock(t,A),mode:"lowest",voids:a}),k.insertNodes(t,H,{at:ae.current,match:A=>Z.isText(A)||C.isInline(t,A),mode:"highest",voids:a}),!n.at){var de;if(H.length>0&&ae.current?de=T.previous(ae.current):M.length>0&&G.current?de=T.previous(G.current):ve.current&&(de=T.previous(ve.current)),de){var He=C.end(t,de);k.select(t,He)}}ve.unref(),G.unref(),ae.unref()}}})},TQ=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")k.select(t,o.anchor);else if(n==="focus")k.select(t,o.focus);else if(n==="start"){var[a]=B.edges(o);k.select(t,a)}else if(n==="end"){var[,s]=B.edges(o);k.select(t,s)}}else return},AQ=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},RQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:o=1,unit:a="character",reverse:s=!1}=r,{edge:u=null}=r;if(n){u==="start"&&(u=B.isBackward(n)?"focus":"anchor"),u==="end"&&(u=B.isBackward(n)?"anchor":"focus");var{anchor:l,focus:c}=n,p={distance:o,unit:a,ignoreNonSelectable:!0},d={};if(u==null||u==="anchor"){var m=s?C.before(t,l,p):C.after(t,l,p);m&&(d.anchor=m)}if(u==null||u==="focus"){var g=s?C.before(t,c,p):C.after(t,c,p);g&&(d.focus=g)}k.setSelection(t,d)}},FQ=(e,t)=>{var{selection:r}=e;if(t=C.range(e,t),r){k.setSelection(e,t);return}if(!B.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(at.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})};function rP(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 nP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var OQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:a="both"}=n;if(o){a==="start"&&(a=B.isBackward(o)?"focus":"anchor"),a==="end"&&(a=B.isBackward(o)?"anchor":"focus");var{anchor:s,focus:u}=o,l=a==="anchor"?s:u;k.setSelection(t,{[a==="anchor"?"anchor":"focus"]:nP(nP({},l),r)})}},BQ=(e,t)=>{var{selection:r}=e,n={},o={};if(r){for(var a in t)(a==="anchor"&&t.anchor!=null&&!ge.equals(t.anchor,r.anchor)||a==="focus"&&t.focus!=null&&!ge.equals(t.focus,r.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==r[a])&&(n[a]=r[a],o[a]=t[a]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}},MQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!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=R2(t),c=!0),c==null&&(c=!1),B.isRange(u))if(o||(u=C.unhangRange(t,u,{voids:a})),B.isCollapsed(u))u=u.anchor;else{var[,d]=B.edges(u),m=C.pointRef(t,d);k.delete(t,{at:u}),u=m.unref()}if(ge.isPoint(u)){l==null&&(Z.isText(p)?l=P=>Z.isText(P):t.isInline(p)?l=P=>Z.isText(P)||C.isInline(t,P):l=P=>q.isElement(P)&&C.isBlock(t,P));var[g]=C.nodes(t,{at:u.path,match:l,mode:s,voids:a});if(g){var[,v]=g,h=C.pathRef(t,v),b=C.isEnd(t,u,v);k.splitNodes(t,{at:u,match:l,mode:s,voids:a});var y=h.unref();u=b?T.next(y):y}else return}var x=T.parent(u),w=u[u.length-1];if(!(!a&&C.void(t,{at:x}))){for(var S of r){var E=x.concat(w);w++,t.apply({type:"insert_node",path:E,node:S}),u=T.next(u)}if(u=T.previous(u),c){var D=C.end(t,u);D&&k.select(t,D)}}}})},IQ=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:a=!1}=r,{match:s}=r;if(s==null&&(s=T.isPath(n)?cs(t,n):S=>q.isElement(S)&&C.isBlock(t,S)),!!n){var u=C.nodes(t,{at:n,match:s,mode:o,voids:a}),l=Array.from(u,S=>{var[,E]=S;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,T.parent(p)),[m,g]=d,v=p[p.length-1],{length:h}=m.children;if(h===1){var b=T.next(g);k.moveNodes(t,{at:p,to:b,voids:a}),k.removeNodes(t,{at:g,voids:a})}else if(v===0)k.moveNodes(t,{at:p,to:g,voids:a});else if(v===h-1){var y=T.next(g);k.moveNodes(t,{at:p,to:y,voids:a})}else{var x=T.next(p),w=T.next(g);k.splitNodes(t,{at:x,voids:a}),k.moveNodes(t,{at:p,to:w,voids:a})}}}})},kQ=["text"],NQ=["children"],uP=(e,t)=>{if(q.isElement(t)){var r=t;return C.isVoid(e,t)?!0:r.children.length===1?uP(e,r.children[0]):!1}else return!C.isEditor(t)},VQ=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:a=!1,voids:s=!1,mode:u="lowest"}=r;if(o){if(n==null)if(T.isPath(o)){var[l]=C.parent(t,o);n=M=>l.children.includes(M)}else n=M=>q.isElement(M)&&C.isBlock(t,M);if(!a&&B.isRange(o)&&(o=C.unhangRange(t,o,{voids:s})),B.isRange(o))if(B.isCollapsed(o))o=o.anchor;else{var[,c]=B.edges(o),p=C.pointRef(t,c);k.delete(t,{at:o}),o=p.unref(),r.at==null&&k.select(t,o)}var[d]=C.nodes(t,{at:o,match:n,voids:s,mode:u}),m=C.previous(t,{at:o,match:n,voids:s,mode:u});if(!(!d||!m)){var[g,v]=d,[h,b]=m;if(!(v.length===0||b.length===0)){var y=T.next(b),x=T.common(v,b),w=T.isSibling(v,b),S=Array.from(C.levels(t,{at:v}),M=>{var[H]=M;return H}).slice(x.length).slice(0,-1),E=C.above(t,{at:v,mode:"highest",match:M=>S.includes(M)&&uP(t,M)}),D=E&&C.pathRef(t,E[1]),P,R;if(Z.isText(g)&&Z.isText(h)){var F=$n(g,kQ);R=h.text.length,P=F}else if(q.isElement(g)&&q.isElement(h)){var F=$n(g,NQ);R=h.children.length,P=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(at.stringify(g)," ").concat(at.stringify(h)));w||k.moveNodes(t,{at:v,to:y,voids:s}),D&&k.removeNodes(t,{at:D.current,voids:s}),q.isElement(h)&&C.isEmpty(t,h)||Z.isText(h)&&h.text===""&&b[b.length-1]!==0?k.removeNodes(t,{at:b,voids:s}):t.apply({type:"merge_node",path:y,position:R,properties:P}),D&&D.unref()}}}})},LQ=(e,t)=>{C.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:a=!1}=t,{match:s}=t;if(n){s==null&&(s=T.isPath(n)?cs(e,n):g=>q.isElement(g)&&C.isBlock(e,g));var u=C.pathRef(e,r),l=C.nodes(e,{at:n,match:s,mode:o,voids:a}),c=Array.from(l,g=>{var[,v]=g;return C.pathRef(e,v)});for(var p of c){var d=p.unref(),m=u.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:m}),u.current&&T.isSibling(m,d)&&T.isAfter(m,d)&&(u.current=T.next(u.current))}u.unref()}})},$Q=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:a="lowest"}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=T.isPath(s)?cs(t,s):g=>q.isElement(g)&&C.isBlock(t,g)),!n&&B.isRange(s)&&(s=C.unhangRange(t,s,{voids:o}));var l=C.nodes(t,{at:s,match:u,mode:a,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[m]=C.node(t,d);t.apply({type:"remove_node",path:d,node:m})}}}})},zQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:o,at:a=t.selection,compare:s,merge:u}=n,{hanging:l=!1,mode:c="lowest",split:p=!1,voids:d=!1}=n;if(a){if(o==null&&(o=T.isPath(a)?cs(t,a):R=>q.isElement(R)&&C.isBlock(t,R)),!l&&B.isRange(a)&&(a=C.unhangRange(t,a,{voids:d})),p&&B.isRange(a)){if(B.isCollapsed(a)&&C.leaf(t,a.anchor)[0].text.length>0)return;var m=C.rangeRef(t,a,{affinity:"inward"}),[g,v]=B.edges(a),h=c==="lowest"?"lowest":"highest",b=C.isEnd(t,v,v.path);k.splitNodes(t,{at:v,match:o,mode:h,voids:d,always:!b});var y=C.isStart(t,g,g.path);k.splitNodes(t,{at:g,match:o,mode:h,voids:d,always:!y}),a=m.unref(),n.at==null&&k.select(t,a)}s||(s=(R,F)=>R!==F);for(var[x,w]of C.nodes(t,{at:a,match:o,mode:c,voids:d})){var S={},E={};if(w.length!==0){var D=!1;for(var P in r)P==="children"||P==="text"||s(r[P],x[P])&&(D=!0,x.hasOwnProperty(P)&&(S[P]=x[P]),u?r[P]!=null&&(E[P]=u(x[P],r[P])):r[P]!=null&&(E[P]=r[P]));D&&t.apply({type:"set_node",path:w,properties:S,newProperties:E})}}}})},GQ=(e,t)=>{if(B.isCollapsed(t))return t.anchor;var[,r]=B.edges(t),n=C.pointRef(e,r);return k.delete(e,{at:t}),n.unref()},HQ=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:a,at:s=t.selection,height:u=0,always:l=!1}=r;if(a==null&&(a=G=>q.isElement(G)&&C.isBlock(t,G)),B.isRange(s)&&(s=GQ(t,s)),T.isPath(s)){var c=s,p=C.point(t,c),[d]=C.parent(t,c);a=G=>G===d,u=p.path.length-c.length+1,s=p,l=!0}if(s){var m=C.pointRef(t,s,{affinity:"backward"}),g;try{var[v]=C.nodes(t,{at:s,match:a,mode:n,voids:o});if(!v)return;var h=C.void(t,{at:s,mode:"highest"}),b=0;if(!o&&h){var[y,x]=h;if(q.isElement(y)&&t.isInline(y)){var w=C.after(t,x);if(!w){var S={text:""},E=T.next(x);k.insertNodes(t,S,{at:E,voids:o}),w=C.point(t,E)}s=w,l=!0}var D=s.path.length-x.length;u=D+1,l=!0}g=C.pointRef(t,s);var P=s.path.length-u,[,R]=v,F=s.path.slice(0,P),M=u===0?s.offset:s.path[P]+b;for(var[H,I]of C.levels(t,{at:F,reverse:!0,voids:o})){var L=!1;if(I.length<R.length||I.length===0||!o&&q.isElement(H)&&C.isVoid(t,H))break;var N=m.current,$=C.isEnd(t,N,I);if(l||!m||!C.isEdge(t,N,I)){L=!0;var te=W.extractProps(H);t.apply({type:"split_node",path:I,position:M,properties:te})}M=I[I.length-1]+(L||$?1:0)}if(r.at==null){var K=g.current||C.end(t,[]);k.select(t,K)}}finally{var re;m.unref(),(re=g)===null||re===void 0||re.unref()}}})},jQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var o={};for(var a of r)o[a]=null;k.setNodes(t,o,n)},_Q=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:a=!1}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=T.isPath(s)?cs(t,s):g=>q.isElement(g)&&C.isBlock(t,g)),T.isPath(s)&&(s=C.range(t,s));var l=B.isRange(s)?C.rangeRef(t,s):null,c=C.nodes(t,{at:s,match:u,mode:n,voids:a}),p=Array.from(c,g=>{var[,v]=g;return C.pathRef(t,v)}).reverse(),d=function(v){var h=v.unref(),[b]=C.node(t,h),y=C.range(t,h);o&&l&&(y=B.intersection(l.current,y)),k.liftNodes(t,{at:y,match:x=>q.isAncestor(b)&&b.children.includes(x),voids:a})};for(var m of p)d(m);l&&l.unref()}})};function oP(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 iP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var WQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:o="lowest",split:a=!1,voids:s=!1}=n,{match:u,at:l=t.selection}=n;if(l){if(u==null&&(T.isPath(l)?u=cs(t,l):t.isInline(r)?u=y=>q.isElement(y)&&C.isInline(t,y)||Z.isText(y):u=y=>q.isElement(y)&&C.isBlock(t,y)),a&&B.isRange(l)){var[c,p]=B.edges(l),d=C.rangeRef(t,l,{affinity:"inward"});k.splitNodes(t,{at:p,match:u,voids:s}),k.splitNodes(t,{at:c,match:u,voids:s}),l=d.unref(),n.at==null&&k.select(t,l)}var m=Array.from(C.nodes(t,{at:l,match:t.isInline(r)?y=>q.isElement(y)&&C.isBlock(t,y):y=>C.isEditor(y),mode:"lowest",voids:s}));for(var[,g]of m){var v=B.isRange(l)?B.intersection(l,C.range(t,g)):l;if(v){var h=Array.from(C.nodes(t,{at:v,match:u,mode:o,voids:s}));if(h.length>0){var b=function(){var[y]=h,x=h[h.length-1],[,w]=y,[,S]=x;if(w.length===0&&S.length===0)return"continue";var E=T.equals(w,S)?T.parent(w):T.common(w,S),D=C.range(t,w,S),P=C.node(t,E),[R]=P,F=E.length+1,M=T.next(S.slice(0,F)),H=iP(iP({},r),{},{children:[]});k.insertNodes(t,H,{at:M,voids:s}),k.moveNodes(t,{at:D,match:I=>q.isAncestor(R)&&R.children.includes(I),to:M.concat(0),voids:s})}();if(b==="continue")continue}}}}})},pd=()=>{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 vZ(e,...n)},addMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return SZ(e,...n)},deleteBackward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PZ(e,...n)},deleteForward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return TZ(e,...n)},deleteFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return AZ(e,...n)},getFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bZ(e,...n)},insertBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return $Z(e,...n)},insertSoftBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return GZ(e,...n)},insertFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PQ(e,...n)},insertNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zZ(e,...n)},insertText:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jZ(e,...n)},normalizeNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return CZ(e,...n)},removeMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bQ(e,...n)},getDirtyPaths:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yZ(e,...n)},shouldNormalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xZ(e,...n)},above:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return wZ(e,...n)},after:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return DZ(e,...n)},before:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EZ(e,...n)},collapse:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return TQ(e,...n)},delete:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EQ(e,...n)},deselect:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return AQ(e,...n)},edges:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return RZ(e,...n)},elementReadOnly:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FZ(e,...n)},end:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OZ(e,...n)},first:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return BZ(e,...n)},fragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return MZ(e,...n)},getMarks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return tQ(e,...n)},hasBlocks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return kZ(e,...n)},hasInlines:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return NZ(e,...n)},hasPath:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return VZ(e,...n)},hasTexts:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LZ(e,...n)},insertNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return MQ(e,...n)},isBlock:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _Z(e,...n)},isEdge:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return WZ(e,...n)},isEmpty:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return UZ(e,...n)},isEnd:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return KZ(e,...n)},isNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qZ(e,...n)},isStart:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return XZ(e,...n)},last:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return YZ(e,...n)},leaf:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return JZ(e,...n)},levels:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ZZ(e,...n)},liftNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return IQ(e,...n)},mergeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return VQ(e,...n)},move:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return RQ(e,...n)},moveNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LQ(e,...n)},next:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return rQ(e,...n)},node:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nQ(e,...n)},nodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return oQ(e,...n)},normalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return iQ(e,...n)},parent:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return aQ(e,...n)},path:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lQ(e,...n)},pathRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sQ(e,...n)},pathRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return uQ(e,...n)},point:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return pQ(e,...n)},pointRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cQ(e,...n)},pointRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return fQ(e,...n)},positions:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dQ(e,...n)},previous:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return mQ(e,...n)},range:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return vQ(e,...n)},rangeRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hQ(e,...n)},rangeRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return gQ(e,...n)},removeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return $Q(e,...n)},select:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FQ(e,...n)},setNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zQ(e,...n)},setNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return CQ(e,...n)},setPoint:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OQ(e,...n)},setSelection:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return BQ(e,...n)},splitNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HQ(e,...n)},start:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xQ(e,...n)},string:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return wQ(e,...n)},unhangRange:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return SQ(e,...n)},unsetNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jQ(e,...n)},unwrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _Q(e,...n)},void:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return IZ(e,...n)},withoutNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return DQ(e,...n)},wrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return WQ(e,...n)}};return e};i();i();i();i();i();i();i();var Pr=[];var lP=function(){return Pr.some(function(e){return e.activeTargets.length>0})};i();var cP=function(){return Pr.some(function(e){return e.skippedTargets.length>0})};i();var fP="ResizeObserver loop completed with undelivered notifications.",pP=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:fP}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=fP),window.dispatchEvent(e)};i();i();i();i();var Si;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Si||(Si={}));i();i();var jr=function(e){return Object.freeze(e)};var B2=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,jr(this)}return e}();i();var M2=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,jr(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,a=t.right,s=t.bottom,u=t.left,l=t.width,c=t.height;return{x:r,y:n,top:o,right:a,bottom:s,left:u,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}();i();var tl=function(e){return e instanceof SVGElement&&"getBBox"in e},dd=function(e){if(tl(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,a=o.offsetWidth,s=o.offsetHeight;return!(a||s||e.getClientRects().length)},I2=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)},dP=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};i();var Di=typeof window<"u"?window:{};var md=new WeakMap,mP=/auto|scroll/,UQ=/^tb|vertical/,KQ=/msie|trident/i.test(Di.navigator&&Di.navigator.userAgent),sn=function(e){return parseFloat(e||"0")},fs=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new B2((r?t:e)||0,(r?e:t)||0)},hP=jr({devicePixelContentBoxSize:fs(),borderBoxSize:fs(),contentBoxSize:fs(),contentRect:new M2(0,0,0,0)}),k2=function(e,t){if(t===void 0&&(t=!1),md.has(e)&&!t)return md.get(e);if(dd(e))return md.set(e,hP),hP;var r=getComputedStyle(e),n=tl(e)&&e.ownerSVGElement&&e.getBBox(),o=!KQ&&r.boxSizing==="border-box",a=UQ.test(r.writingMode||""),s=!n&&mP.test(r.overflowY||""),u=!n&&mP.test(r.overflowX||""),l=n?0:sn(r.paddingTop),c=n?0:sn(r.paddingRight),p=n?0:sn(r.paddingBottom),d=n?0:sn(r.paddingLeft),m=n?0:sn(r.borderTopWidth),g=n?0:sn(r.borderRightWidth),v=n?0:sn(r.borderBottomWidth),h=n?0:sn(r.borderLeftWidth),b=d+c,y=l+p,x=h+g,w=m+v,S=u?e.offsetHeight-w-e.clientHeight:0,E=s?e.offsetWidth-x-e.clientWidth:0,D=o?b+x:0,P=o?y+w:0,R=n?n.width:sn(r.width)-D-E,F=n?n.height:sn(r.height)-P-S,M=R+b+E+x,H=F+y+S+w,I=jr({devicePixelContentBoxSize:fs(Math.round(R*devicePixelRatio),Math.round(F*devicePixelRatio),a),borderBoxSize:fs(M,H,a),contentBoxSize:fs(R,F,a),contentRect:new M2(d,l,R,F)});return md.set(e,I),I},hd=function(e,t,r){var n=k2(e,r),o=n.borderBoxSize,a=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case Si.DEVICE_PIXEL_CONTENT_BOX:return s;case Si.BORDER_BOX:return o;default:return a}};var N2=function(){function e(t){var r=k2(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=jr([r.borderBoxSize]),this.contentBoxSize=jr([r.contentBoxSize]),this.devicePixelContentBoxSize=jr([r.devicePixelContentBoxSize])}return e}();i();var gd=function(e){if(dd(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t};var gP=function(){var e=1/0,t=[];Pr.forEach(function(s){if(s.activeTargets.length!==0){var u=[];s.activeTargets.forEach(function(c){var p=new N2(c.target),d=gd(c.target);u.push(p),c.lastReportedSize=hd(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};i();var V2=function(e){Pr.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(gd(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})};var vP=function(){var e=0;for(V2(e);lP();)e=gP(),V2(e);return cP()&&pP(),e>0};i();i();var L2,yP=[],qQ=function(){return yP.splice(0).forEach(function(e){return e()})},bP=function(e){if(!L2){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return qQ()}).observe(r,n),L2=function(){r.textContent="".concat(t?t--:t++)}}yP.push(e),L2()};var CP=function(e){bP(function(){requestAnimationFrame(e)})};var vd=0,XQ=function(){return!!vd},YQ=250,JQ={attributes:!0,characterData:!0,childList:!0,subtree:!0},xP=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],wP=function(e){return e===void 0&&(e=0),Date.now()+e},$2=!1,ZQ=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=YQ),!$2){$2=!0;var n=wP(t);CP(function(){var o=!1;try{o=vP()}finally{if($2=!1,t=n-wP(),!XQ())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,JQ)};document.body?r():Di.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),xP.forEach(function(r){return Di.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),xP.forEach(function(r){return Di.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),yd=new ZQ,z2=function(e){!vd&&e>0&&yd.start(),vd+=e,!vd&&yd.stop()};i();var QQ=function(e){return!tl(e)&&!dP(e)&&getComputedStyle(e).display==="inline"},SP=function(){function e(t,r){this.target=t,this.observedBox=r||Si.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=hd(this.target,this.observedBox,!0);return QQ(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}();i();var DP=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}();var bd=new WeakMap,EP=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},rl=function(){function e(){}return e.connect=function(t,r){var n=new DP(t,r);bd.set(t,n)},e.observe=function(t,r,n){var o=bd.get(t),a=o.observationTargets.length===0;EP(o.observationTargets,r)<0&&(a&&Pr.push(o),o.observationTargets.push(new SP(r,n&&n.box)),z2(1),yd.schedule())},e.unobserve=function(t,r){var n=bd.get(t),o=EP(n.observationTargets,r),a=n.observationTargets.length===1;o>=0&&(a&&Pr.splice(Pr.indexOf(n),1),n.observationTargets.splice(o,1),z2(-1))},e.disconnect=function(t){var r=this,n=bd.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}();var G2=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.");rl.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(!I2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rl.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(!I2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rl.unobserve(this,t)},e.prototype.disconnect=function(){rl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();var Sd=U(FP());import lee from"react-dom";function Ad(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cee(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ms(e,t){if(e==null)return{};var r=cee(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Q2=Ri(null),Vo=()=>{var e=gs(Q2);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},UP=parseInt(fe.version.split(".")[0],10),fee=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,OP=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),er=typeof navigator<"u"&&/Android/.test(navigator.userAgent),il=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ol=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),pee=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),KP=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),dee=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mee=er&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),hee=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),gee=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),vee=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Dd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mo=(!dee||!mee)&&!pee&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",eg=new WeakMap,tg=new WeakMap,qP=new WeakMap,Ed=new WeakMap,W2=new WeakMap,sl=new WeakMap,Ti=new WeakMap,Pd=new WeakMap,Rd=new WeakMap,U2=new WeakMap,Ei=new WeakMap,Pi=new WeakMap,al=new WeakMap,K2=new WeakMap,rg=new WeakMap,_r=new WeakMap,zn=new WeakMap,Qt=new WeakMap,Io=new WeakMap,ko=new WeakMap,XP=new WeakMap,hs=Symbol("placeholder"),YP=Symbol("mark-placeholder"),yee=globalThis.Text,ng=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,bee=e=>No(e)&&e.nodeType===8,Tr=e=>No(e)&&e.nodeType===1,No=e=>{var t=ng(e);return!!t&&e instanceof t.Node},q2=e=>{var t=e&&e.anchorNode&&ng(e.anchorNode);return!!t&&e instanceof t.Selection},JP=e=>No(e)&&e.nodeType===3,Cee=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,xee=e=>{var[t,r]=e;if(Tr(t)&&t.childNodes.length){var n=r===t.childNodes.length,o=n?r-1:r;for([t,o]=ZP(t,o,n?"backward":"forward"),n=o<r;Tr(t)&&t.childNodes.length;){var a=n?t.childNodes.length-1:0;t=See(t,a,n?"backward":"forward")}r=n&&t.textContent!=null?t.textContent.length:0}return[t,r]},wee=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},ZP=(e,t,r)=>{for(var{childNodes:n}=e,o=n[t],a=t,s=!1,u=!1;(bee(o)||Tr(o)&&o.childNodes.length===0||Tr(o)&&o.getAttribute("contenteditable")==="false")&&!(s&&u);){if(a>=n.length){s=!0,a=t-1,r="backward";continue}if(a<0){u=!0,a=t+1,r="forward";continue}o=n[a],t=a,a+=r==="forward"?1:-1}return[o,t]},See=(e,t,r)=>{var[n]=ZP(e,t,r);return n},QP=e=>{var t="";if(JP(e)&&e.nodeValue)return e.nodeValue;if(Tr(e)){for(var r of Array.from(e.childNodes))t+=QP(r);var n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
|
|
1822
|
+
`,o2=(e,t,r)=>{let n=({groupLabel:o,groupOptions:a,disabled:s=!1})=>n2("optgroup",{"data-testid":o,disabled:s,label:o,children:o2(a)},o);return e.map(o=>{if(Object.prototype.hasOwnProperty.call(o,"groupLabel"))return n(o);let{label:a,value:s,disabled:u=!1}=o,l=(0,bi.isNonEmptyString)(r)?o[r]:s,c=(0,bi.isNonEmptyString)(t)?o[t]:a;return(0,bi.isBoolean)(l)&&(l=lr(l)),n2("option",{disabled:u,value:l,children:c},`${lr(c)}--${lr(l)}`)})},yY=(e,t,r)=>(0,bi.isNotNil)(e)&&!r?o2([{label:e,value:"",disabled:t}]):null,bY=e=>e?null:n2(De,{size:"md",type:"caret-down"}),Ci=mY(({ariaLabel:e,disabled:t=!1,forceState:r,fullWidth:n=!0,hasError:o=!1,labelName:a="label",multiple:s=!1,options:u,placeholder:l="Please select...",preventPlaceholderSelection:c=!1,required:p=!1,valueName:d="value",...m},g)=>RD(vY,{disabled:t,forceState:r,fullWidth:n,children:[RD(t2,{ref:g,"aria-invalid":o?"true":"false","aria-label":e,disabled:t,forceState:r,hasError:o,multiple:s,required:p,...m,children:[yY(l,c,s),o2(u,a,d)]}),bY(s)]}));Ci.displayName="Select_VHS";import{jsx as FD}from"react/jsx-runtime";var td=({disabled:e=!1,field:{name:t,value:r,onChange:n,onBlur:o},form:{errors:a},label:s,labelDescription:u,labelProps:l={},options:c,placeholder:p,onChangeCustom:d,...m})=>{let g=v=>(0,ed.isNil)(v)?"":(0,ed.isBoolean)(v)?lr(r):v;return FD(Zt,{disabled:e,error:a[t],label:s,labelDescription:u,labelProps:l,name:t,children:FD(Ci,{"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),...m})})};td.displayName="FormConnectorSelect_VHS";i();i();var ss=U(Q());import{useEffect as CY}from"react";import{jsx as xY}from"react/jsx-runtime";var rd=({field:{name:e,value:t,onChange:r},form:{setFieldValue:n}={},onChangeCustom:o,valueState:a="",...s})=>(CY(()=>{!a&&(0,ss.isNil)(t)||a!==t&&(0,ss.isNotUndefined)(n)&&n(e,a)},[n,e,a,t]),xY(as,{"data-testid":`input-${e}`,name:e,onChange:u=>{r(u),(0,ss.isNotUndefined)(o)&&o(u.target.value)},type:"hidden",value:(0,ss.isNil)(t)?"":t,...s}));rd.displayName="FormConnectorHidden_VHS";i();i();var bA=U(Q());import{useState as zre,useEffect as Gre}from"react";import Hre from"styled-components";i();i();import{useCallback as wg,useMemo as Mre,useEffect as Ire}from"react";import gA from"styled-components";i();var Z2=U(ID()),_P=U(u2()),WP=U(dE());import fe,{createContext as Ri,useContext as gs,useRef as vr,useEffect as Gn,useLayoutEffect as oee,useState as Ai,memo as iee,forwardRef as aee,useCallback as Ne,Component as see,useReducer as uee,useMemo as wd}from"react";i();i();function mE(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function hE(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function l2(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return hE(r.overflowY,t)||hE(r.overflowX,t)||function(n){var o=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)}(e)}return!1}function od(e,t,r,n,o,a,s,u){return a<e&&s>t||a>e&&s<t?0:a<=e&&u<=r||s>=t&&u>=r?a-e-n:s>t&&u<r||a<e&&u>r?s-t+o:0}var c2=function(e,t){var r=window,n=t.scrollMode,o=t.block,a=t.inline,s=t.boundary,u=t.skipOverflowHiddenElements,l=typeof s=="function"?s:function(xe){return xe!==s};if(!mE(e))throw new TypeError("Invalid target");for(var c,p,d=document.scrollingElement||document.documentElement,m=[],g=e;mE(g)&&l(g);){if((g=(p=(c=g).parentElement)==null?c.getRootNode().host||null:p)===d){m.push(g);break}g!=null&&g===document.body&&l2(g)&&!l2(document.documentElement)||g!=null&&l2(g,u)&&m.push(g)}for(var v=r.visualViewport?r.visualViewport.width:innerWidth,h=r.visualViewport?r.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),w=x.height,S=x.width,E=x.top,D=x.right,P=x.bottom,R=x.left,F=o==="start"||o==="nearest"?E:o==="end"?P:E+w/2,M=a==="center"?R+S/2:a==="end"?D:R,H=[],I=0;I<m.length;I++){var L=m[I],N=L.getBoundingClientRect(),$=N.height,te=N.width,K=N.top,re=N.right,G=N.bottom,ae=N.left;if(n==="if-needed"&&E>=0&&R>=0&&P<=h&&D<=v&&E>=K&&P<=G&&R>=ae&&D<=re)return H;var ve=getComputedStyle(L),de=parseInt(ve.borderLeftWidth,10),He=parseInt(ve.borderTopWidth,10),A=parseInt(ve.borderRightWidth,10),_=parseInt(ve.borderBottomWidth,10),z=0,j=0,ue="offsetWidth"in L?L.offsetWidth-L.clientWidth-de-A:0,ie="offsetHeight"in L?L.offsetHeight-L.clientHeight-He-_:0,me="offsetWidth"in L?L.offsetWidth===0?0:te/L.offsetWidth:0,Ce="offsetHeight"in L?L.offsetHeight===0?0:$/L.offsetHeight:0;if(d===L)z=o==="start"?F:o==="end"?F-h:o==="nearest"?od(y,y+h,h,He,_,y+F,y+F+w,w):F-h/2,j=a==="start"?M:a==="center"?M-v/2:a==="end"?M-v:od(b,b+v,v,de,A,b+M,b+M+S,S),z=Math.max(0,z+y),j=Math.max(0,j+b);else{z=o==="start"?F-K-He:o==="end"?F-G+_+ie:o==="nearest"?od(K,G,$,He,_+ie,F,F+w,w):F-(K+$/2)+ie/2,j=a==="start"?M-ae-de:a==="center"?M-(ae+te/2)+ue/2:a==="end"?M-re+A+ue:od(ae,re,te,de,A+ue,M,M+S,S);var Se=L.scrollLeft,Ee=L.scrollTop;F+=Ee-(z=Math.max(0,Math.min(Ee+z/Ce,L.scrollHeight-$/Ce+ie))),M+=Se-(j=Math.max(0,Math.min(Se+j/me,L.scrollWidth-te/me+ue)))}H.push({el:L,top:z,left:j})}return H};function gE(e){return e===Object(e)&&Object.keys(e).length!==0}function vJ(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var o=n.el,a=n.top,s=n.left;o.scroll&&r?o.scroll({top:a,left:s,behavior:t}):(o.scrollTop=a,o.scrollLeft=s)})}function yJ(e){return e===!1?{block:"end",inline:"nearest"}:gE(e)?e:{block:"start",inline:"nearest"}}function bJ(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(gE(t)&&typeof t.behavior=="function")return t.behavior(r?c2(e,t):[]);if(r){var n=yJ(t);return vJ(c2(e,n),n.behavior)}}var vE=bJ;i();i();function yE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ye(e){var t,r;return yE(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(yE(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}i();function Hr(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,a;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 Bo(e){return!!e&&!!e[hr]}function wi(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)===TJ}(e)||Array.isArray(e)||!!e[PE]||!!(!((t=e.constructor)===null||t===void 0)&&t[PE])||C2(e)||x2(e))}function Ju(e,t,r){r===void 0&&(r=!1),us(e)===0?(r?Object.keys:P2)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function us(e){var t=e[hr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:C2(e)?2:x2(e)?3:0}function h2(e,t){return us(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function CJ(e,t){return us(e)===2?e.get(t):e[t]}function TE(e,t,r){var n=us(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function xJ(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function C2(e){return EJ&&e instanceof Map}function x2(e){return PJ&&e instanceof Set}function xi(e){return e.o||e.t}function w2(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=AJ(e);delete t[hr];for(var r=P2(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function S2(e,t){return t===void 0&&(t=!1),D2(e)||Bo(e)||!wi(e)||(us(e)>1&&(e.set=e.add=e.clear=e.delete=wJ),Object.freeze(e),t&&Ju(e,function(r,n){return S2(n,!0)},!0)),e}function wJ(){Hr(2)}function D2(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function an(e){var t=RJ[e];return t||Hr(18,e),t}function bE(){return Zu}function f2(e,t){t&&(an("Patches"),e.u=[],e.s=[],e.v=t)}function id(e){g2(e),e.p.forEach(SJ),e.p=null}function g2(e){e===Zu&&(Zu=e.l)}function CE(e){return Zu={p:[],l:Zu,h:e,m:!0,_:0}}function SJ(e){var t=e[hr];t.i===0||t.i===1?t.j():t.g=!0}function p2(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||an("ES5").S(t,e,n),n?(r[hr].P&&(id(t),Hr(4)),wi(e)&&(e=ad(t,e),t.l||sd(t,e)),t.u&&an("Patches").M(r[hr].t,e,t.u,t.s)):e=ad(t,r,[]),id(t),t.u&&t.v(t.u,t.s),e!==AE?e:void 0}function ad(e,t,r){if(D2(t))return t;var n=t[hr];if(!n)return Ju(t,function(u,l){return xE(e,n,t,u,l,r)},!0),t;if(n.A!==e)return t;if(!n.P)return sd(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=w2(n.k):n.o,a=o,s=!1;n.i===3&&(a=new Set(o),o.clear(),s=!0),Ju(a,function(u,l){return xE(e,n,o,u,l,r,s)}),sd(e,o,!1),r&&e.u&&an("Patches").N(n,r,e.u,e.s)}return n.o}function xE(e,t,r,n,o,a,s){if(Bo(o)){var u=ad(e,o,a&&t&&t.i!==3&&!h2(t.R,n)?a.concat(n):void 0);if(TE(r,n,u),!Bo(u))return;e.m=!1}else s&&r.add(o);if(wi(o)&&!D2(o)){if(!e.h.D&&e._<1)return;ad(e,o),t&&t.A.l||sd(e,o)}}function sd(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&S2(t,r)}function d2(e,t){var r=e[hr];return(r?xi(r):e)[t]}function wE(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 v2(e){e.P||(e.P=!0,e.l&&v2(e.l))}function m2(e){e.o||(e.o=w2(e.t))}function y2(e,t,r){var n=C2(t)?an("MapSet").F(t,r):x2(t)?an("MapSet").T(t,r):e.O?function(o,a){var s=Array.isArray(o),u={i:s?1:0,A:a?a.A:bE(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},l=u,c=b2;s&&(l=[u],c=Yu);var p=Proxy.revocable(l,c),d=p.revoke,m=p.proxy;return u.k=m,u.j=d,m}(t,r):an("ES5").J(t,r);return(r?r.A:bE()).p.push(n),n}function DJ(e){return Bo(e)||Hr(22,e),function t(r){if(!wi(r))return r;var n,o=r[hr],a=us(r);if(o){if(!o.P&&(o.i<4||!an("ES5").K(o)))return o.t;o.I=!0,n=SE(r,a),o.I=!1}else n=SE(r,a);return Ju(n,function(s,u){o&&CJ(o.t,s)===u||TE(n,s,t(u))}),a===3?new Set(n):n}(e)}function SE(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return w2(e)}var DE,Zu,E2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",EJ=typeof Map<"u",PJ=typeof Set<"u",EE=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",AE=E2?Symbol.for("immer-nothing"):((DE={})["immer-nothing"]=!0,DE),PE=E2?Symbol.for("immer-draftable"):"__$immer_draftable",hr=E2?Symbol.for("immer-state"):"__$immer_state";var TJ=""+Object.prototype.constructor,P2=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,AJ=Object.getOwnPropertyDescriptors||function(e){var t={};return P2(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},RJ={},b2={get:function(e,t){if(t===hr)return e;var r=xi(e);if(!h2(r,t))return function(o,a,s){var u,l=wE(a,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||!wi(n)?n:n===d2(e.t,t)?(m2(e),e.o[t]=y2(e.A.h,n,e)):n},has:function(e,t){return t in xi(e)},ownKeys:function(e){return Reflect.ownKeys(xi(e))},set:function(e,t,r){var n=wE(xi(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=d2(xi(e),t),a=o?.[hr];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(xJ(r,o)&&(r!==void 0||h2(e.t,t)))return!0;m2(e),v2(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 d2(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,m2(e),v2(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=xi(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Hr(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Hr(12)}},Yu={};Ju(b2,function(e,t){Yu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Yu.deleteProperty=function(e,t){return Yu.set.call(this,e,t,void 0)},Yu.set=function(e,t,r){return b2.set.call(this,e[0],t,r,e[0])};var FJ=function(){function e(r){var n=this;this.O=EE,this.D=!0,this.produce=function(o,a,s){if(typeof o=="function"&&typeof a!="function"){var u=a;a=o;var l=n;return function(h){var b=this;h===void 0&&(h=u);for(var y=arguments.length,x=Array(y>1?y-1:0),w=1;w<y;w++)x[w-1]=arguments[w];return l.produce(h,function(S){var E;return(E=a).call.apply(E,[b,S].concat(x))})}}var c;if(typeof a!="function"&&Hr(6),s!==void 0&&typeof s!="function"&&Hr(7),wi(o)){var p=CE(n),d=y2(n,o,void 0),m=!0;try{c=a(d),m=!1}finally{m?id(p):g2(p)}return typeof Promise<"u"&&c instanceof Promise?c.then(function(h){return f2(p,s),p2(h,p)},function(h){throw id(p),h}):(f2(p,s),p2(c,p))}if(!o||typeof o!="object"){if((c=a(o))===void 0&&(c=o),c===AE&&(c=void 0),n.D&&S2(c,!0),s){var g=[],v=[];an("Patches").M(o,c,g,v),s(g,v)}return c}Hr(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(c){for(var p=arguments.length,d=Array(p>1?p-1:0),m=1;m<p;m++)d[m-1]=arguments[m];return n.produceWithPatches(c,function(g){return o.apply(void 0,[g].concat(d))})};var s,u,l=n.produce(o,a,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){wi(r)||Hr(8),Bo(r)&&(r=DJ(r));var n=CE(this),o=y2(this,r,void 0);return o[hr].C=!0,g2(n),o},t.finishDraft=function(r,n){var o=r&&r[hr],a=o.A;return f2(a,n),p2(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!EE&&Hr(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var s=an("Patches").$;return Bo(r)?s(r,n):this.produce(r,function(u){return s(u,n)})},e}(),gr=new FJ,ud=gr.produce,Pet=gr.produceWithPatches.bind(gr),Tet=gr.setAutoFreeze.bind(gr),Aet=gr.setUseProxies.bind(gr),Ret=gr.applyPatches.bind(gr),T2=gr.createDraft.bind(gr),A2=gr.finishDraft.bind(gr);var OJ={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=T.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},BJ={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=ge.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},MJ={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=B.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},cd=new WeakMap,fd=new WeakMap,el=new WeakMap,aP=new WeakMap,RE=new WeakMap,FE=new WeakMap,OE=new WeakMap,T={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=T.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],a=t[n];if(o!==a)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),a=e[r],s=t[r];return T.equals(n,o)&&a>s},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return T.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),a=e[r],s=t[r];return T.equals(n,o)&&a<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 T.compare(e,t)===1},isAncestor(e,t){return e.length<t.length&&T.compare(e,t)===0},isBefore(e,t){return T.compare(e,t)===-1},isChild(e,t){return e.length===t.length+1&&T.compare(e,t)===0},isCommon(e,t){return e.length<=t.length&&T.compare(e,t)===0},isDescendant(e,t){return e.length>t.length&&T.compare(e,t)===0},isParent(e,t){return e.length+1===t.length&&T.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],a=t[t.length-1];return o!==a&&T.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(!T.isAncestor(t,e)&&!T.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:a}=t;(T.equals(a,n)||T.endsBefore(a,n)||T.isAncestor(a,n))&&(n[a.length-1]+=1);break}case"remove_node":{var{path:s}=t;if(T.equals(s,n)||T.isAncestor(s,n))return null;T.endsBefore(s,n)&&(n[s.length-1]-=1);break}case"merge_node":{var{path:u,position:l}=t;T.equals(u,n)||T.endsBefore(u,n)?n[u.length-1]-=1:T.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=l);break}case"split_node":{var{path:c,position:p}=t;if(T.equals(c,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else T.endsBefore(c,n)?n[c.length-1]+=1:T.isAncestor(c,n)&&e[c.length]>=p&&(n[c.length-1]+=1,n[c.length]-=p);break}case"move_node":{var{path:d,newPath:m}=t;if(T.equals(d,m))return n;if(T.isAncestor(d,n)||T.equals(d,n)){var g=m.slice();return T.endsBefore(d,m)&&d.length<m.length&&(g[d.length-1]-=1),g.concat(n.slice(d.length))}else T.isSibling(d,m)&&(T.isAncestor(m,n)||T.equals(m,n))?T.endsBefore(d,n)?n[d.length-1]-=1:n[d.length-1]+=1:T.endsBefore(m,n)||T.equals(m,n)||T.isAncestor(m,n)?(T.endsBefore(d,n)&&(n[d.length-1]-=1),n[m.length-1]+=1):T.endsBefore(d,n)&&(T.equals(m,n)&&(n[m.length-1]+=1),n[d.length-1]-=1);break}}return n}};function Lt(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BE(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 Qu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IJ=(e,t,r)=>{switch(r.type){case"insert_node":{var{path:n,node:o}=r,a=W.parent(e,n),s=n[n.length-1];if(s>a.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(a.children.splice(s,0,o),t)for(var[u,l]of B.points(t))t[l]=ge.transform(u,r);break}case"insert_text":{var{path:c,offset:p,text:d}=r;if(d.length===0)break;var m=W.leaf(e,c),g=m.text.slice(0,p),v=m.text.slice(p);if(m.text=g+d+v,t)for(var[h,b]of B.points(t))t[b]=ge.transform(h,r);break}case"merge_node":{var{path:y}=r,x=W.get(e,y),w=T.previous(y),S=W.get(e,w),E=W.parent(e,y),D=y[y.length-1];if(Z.isText(x)&&Z.isText(S))S.text+=x.text;else if(!Z.isText(x)&&!Z.isText(S))S.children.push(...x.children);else throw new Error('Cannot apply a "merge_node" operation at path ['.concat(y,"] to nodes of different interfaces: ").concat(at.stringify(x)," ").concat(at.stringify(S)));if(E.children.splice(D,1),t)for(var[P,R]of B.points(t))t[R]=ge.transform(P,r);break}case"move_node":{var{path:F,newPath:M}=r;if(T.isAncestor(F,M))throw new Error("Cannot move a path [".concat(F,"] to new path [").concat(M,"] because the destination is inside itself."));var H=W.get(e,F),I=W.parent(e,F),L=F[F.length-1];I.children.splice(L,1);var N=T.transform(F,r),$=W.get(e,T.parent(N)),te=N[N.length-1];if($.children.splice(te,0,H),t)for(var[K,re]of B.points(t))t[re]=ge.transform(K,r);break}case"remove_node":{var{path:G}=r,ae=G[G.length-1],ve=W.parent(e,G);if(ve.children.splice(ae,1),t)for(var[de,He]of B.points(t)){var A=ge.transform(de,r);if(t!=null&&A!=null)t[He]=A;else{var _=void 0,z=void 0;for(var[j,ue]of W.texts(e))if(T.compare(ue,G)===-1)_=[j,ue];else{z=[j,ue];break}var ie=!1;_&&z&&(T.equals(z[1],G)?ie=!T.hasPrevious(z[1]):ie=T.common(_[1],G).length<T.common(z[1],G).length),_&&!ie?(de.path=_[1],de.offset=_[0].text.length):z?(de.path=z[1],de.offset=0):t=null}}break}case"remove_text":{var{path:me,offset:Ce,text:Se}=r;if(Se.length===0)break;var Ee=W.leaf(e,me),xe=Ee.text.slice(0,Ce),gt=Ee.text.slice(Ce+Se.length);if(Ee.text=xe+gt,t)for(var[vt,je]of B.points(t))t[je]=ge.transform(vt,r);break}case"set_node":{var{path:ir,properties:Ht,newProperties:St}=r;if(ir.length===0)throw new Error("Cannot set properties on the root node!");var ar=W.get(e,ir);for(var O in St){if(O==="children"||O==="text")throw new Error('Cannot set the "'.concat(O,'" property of nodes!'));var J=St[O];J==null?delete ar[O]:ar[O]=J}for(var ee in Ht)St.hasOwnProperty(ee)||delete ar[ee];break}case"set_selection":{var{newProperties:X}=r;if(X==null)t=X;else{if(t==null){if(!B.isRange(X))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(at.stringify(X)," when there is no current selection."));t=Qu({},X)}for(var se in X){var we=X[se];if(we==null){if(se==="anchor"||se==="focus")throw new Error('Cannot remove the "'.concat(se,'" selection property'));delete t[se]}else t[se]=we}}break}case"split_node":{var{path:Pe,position:yt,properties:to}=r;if(Pe.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Pe,"] because the root node cannot be split."));var kr=W.get(e,Pe),W1=W.parent(e,Pe),n5=Pe[Pe.length-1],Xi;if(Z.isText(kr)){var U1=kr.text.slice(0,yt),pM=kr.text.slice(yt);kr.text=U1,Xi=Qu(Qu({},to),{},{text:pM})}else{var dM=kr.children.slice(0,yt),mM=kr.children.slice(yt);kr.children=dM,Xi=Qu(Qu({},to),{},{children:mM})}if(W1.children.splice(n5+1,0,Xi),t)for(var[hM,gM]of B.points(t))t[gM]=ge.transform(hM,r);break}}return t},kJ={transform(e,t){e.children=T2(e.children);var r=e.selection&&T2(e.selection);try{r=IJ(e,r,t)}finally{e.children=A2(e.children),r?e.selection=Bo(r)?A2(r):r:e.selection=null}}},NJ={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)}},VJ={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)}},sP=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(Ye(n)&&Ye(o)){if(!sP(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(n[a]!==o[a])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 LJ(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function $n(e,t){if(e==null)return{};var r=LJ(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var $J=["anchor","focus"];function ME(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 zJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ME(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ME(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var B={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return B.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=B.edges(e);return t},equals(e,t){return ge.equals(e.anchor,t.anchor)&&ge.equals(e.focus,t.focus)},includes(e,t){if(B.isRange(t)){if(B.includes(e,t.anchor)||B.includes(e,t.focus))return!0;var[r,n]=B.edges(e),[o,a]=B.edges(t);return ge.isBefore(r,o)&&ge.isAfter(n,a)}var[s,u]=B.edges(e),l=!1,c=!1;return ge.isPoint(t)?(l=ge.compare(t,s)>=0,c=ge.compare(t,u)<=0):(l=T.compare(t,s.path)>=0,c=T.compare(t,u.path)<=0),l&&c},intersection(e,t){var r=$n(e,$J),[n,o]=B.edges(e),[a,s]=B.edges(t),u=ge.isBefore(n,a)?a:n,l=ge.isBefore(o,s)?o:s;return ge.isBefore(l,u)?null:zJ({anchor:u,focus:l},r)},isBackward(e){var{anchor:t,focus:r}=e;return ge.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return ge.equals(t,r)},isExpanded(e){return!B.isCollapsed(e)},isForward(e){return!B.isBackward(e)},isRange(e){return Ye(e)&&ge.isPoint(e.anchor)&&ge.isPoint(e.focus)},*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=B.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ud(e,n=>{if(n===null)return null;var{affinity:o="inward"}=r,a,s;if(o==="inward"){var u=B.isCollapsed(n);B.isForward(n)?(a="forward",s=u?a:"backward"):(a="backward",s=u?a:"forward")}else o==="outward"?B.isForward(n)?(a="backward",s="forward"):(a="forward",s="backward"):(a=o,s=o);var l=ge.transform(n.anchor,t,{affinity:a}),c=ge.transform(n.focus,t,{affinity:s});if(!l||!c)return null;n.anchor=l,n.focus=c})}},IE=e=>Ye(e)&&W.isNodeList(e.children)&&!C.isEditor(e),q={isAncestor(e){return Ye(e)&&W.isNodeList(e.children)},isElement:IE,isElementList(e){return Array.isArray(e)&&e.every(t=>q.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 IE(t)&&t[n]===r},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},GJ=["children"],HJ=["text"],kE=new WeakMap,W={ancestor(e,t){var r=W.get(e,t);if(Z.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(at.stringify(r)));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of T.ancestors(t,r)){var o=W.ancestor(e,n),a=[o,n];yield a}},child(e,t){if(Z.isText(e))throw new Error("Cannot get the child of a text node: ".concat(at.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(at.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:a}=o,s=n?a.length-1:0;n?s>=0:s<a.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=T.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(at.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))q.isElement(r)&&(yield[r,n])},extractProps(e){if(q.isAncestor(e)){var t=$n(e,GJ);return t}else{var t=$n(e,HJ);return t}},first(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Z.isText(n)||n.children.length===0);)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(Z.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(at.stringify(e)));var r=ud({children:e.children},n=>{var[o,a]=B.edges(t),s=W.nodes(n,{reverse:!0,pass:m=>{var[,g]=m;return!B.includes(t,g)}});for(var[,u]of s){if(!B.includes(t,u)){var l=W.parent(n,u),c=u[u.length-1];l.children.splice(c,1)}if(T.equals(u,a.path)){var p=W.leaf(n,u);p.text=p.text.slice(0,a.offset)}if(T.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(Z.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(at.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(Z.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode(e){return Z.isText(e)||q.isElement(e)||C.isEditor(e)},isNodeList(e){if(!Array.isArray(e))return!1;var t=kE.get(e);if(t!==void 0)return t;var r=e.every(n=>W.isNode(n));return kE.set(e,r),r},last(e,t){for(var r=t.slice(),n=W.get(e,r);n&&!(Z.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(!Z.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(at.stringify(r)));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of T.levels(t,r)){var o=W.get(e,n);yield[o,n]}},matches(e,t){return q.isElement(e)&&q.isElementProps(t)&&q.matches(e,t)||Z.isText(e)&&Z.isTextProps(t)&&Z.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:a}=t,s=new Set,u=[],l=e;!(a&&(n?T.isBefore(u,a):T.isAfter(u,a)));){if(s.has(l)||(yield[l,u]),!s.has(l)&&!Z.isText(l)&&l.children.length!==0&&(r==null||r([l,u])===!1)){s.add(l);var c=n?l.children.length-1:0;T.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=T.next(u);if(W.has(e,p)){u=p,l=W.get(e,u);continue}}if(n&&u[u.length-1]!==0){var d=T.previous(u);u=d,l=W.get(e,u);continue}u=T.parent(u),l=W.get(e,u),s.add(l)}},parent(e,t){var r=T.parent(t),n=W.get(e,r);if(Z.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 Z.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))Z.isText(r)&&(yield[r,n])}};function NE(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 ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Ln={isNodeOperation(e){return Ln.isOperation(e)&&e.type.endsWith("_node")},isOperation(e){if(!Ye(e))return!1;switch(e.type){case"insert_node":return T.isPath(e.path)&&W.isNode(e.node);case"insert_text":return typeof e.offset=="number"&&typeof e.text=="string"&&T.isPath(e.path);case"merge_node":return typeof e.position=="number"&&T.isPath(e.path)&&Ye(e.properties);case"move_node":return T.isPath(e.path)&&T.isPath(e.newPath);case"remove_node":return T.isPath(e.path)&&W.isNode(e.node);case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&T.isPath(e.path);case"set_node":return T.isPath(e.path)&&Ye(e.properties)&&Ye(e.newProperties);case"set_selection":return e.properties===null&&B.isRange(e.newProperties)||e.newProperties===null&&B.isRange(e.properties)||Ye(e.properties)&&Ye(e.newProperties);case"split_node":return T.isPath(e.path)&&typeof e.position=="number"&&Ye(e.properties);default:return!1}},isOperationList(e){return Array.isArray(e)&&e.every(t=>Ln.isOperation(t))},isSelectionOperation(e){return Ln.isOperation(e)&&e.type.endsWith("_selection")},isTextOperation(e){return Ln.isOperation(e)&&e.type.endsWith("_text")},inverse(e){switch(e.type){case"insert_node":return ze(ze({},e),{},{type:"remove_node"});case"insert_text":return ze(ze({},e),{},{type:"remove_text"});case"merge_node":return ze(ze({},e),{},{type:"split_node",path:T.previous(e.path)});case"move_node":{var{newPath:t,path:r}=e;if(T.equals(t,r))return e;if(T.isSibling(r,t))return ze(ze({},e),{},{path:t,newPath:r});var n=T.transform(r,e),o=T.transform(T.next(r),e);return ze(ze({},e),{},{path:n,newPath:o})}case"remove_node":return ze(ze({},e),{},{type:"insert_node"});case"remove_text":return ze(ze({},e),{},{type:"insert_text"});case"set_node":{var{properties:a,newProperties:s}=e;return ze(ze({},e),{},{properties:s,newProperties:a})}case"set_selection":{var{properties:u,newProperties:l}=e;return u==null?ze(ze({},e),{},{properties:l,newProperties:null}):l==null?ze(ze({},e),{},{properties:null,newProperties:u}):ze(ze({},e),{},{properties:l,newProperties:u})}case"split_node":return ze(ze({},e),{},{type:"merge_node",path:T.next(e.path)})}}},VE=new WeakMap,jJ=e=>{var t=VE.get(e);if(t!==void 0)return t;if(!Ye(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||Ye(e.marks))&&(e.selection===null||B.isRange(e.selection))&&W.isNodeList(e.children)&&Ln.isOperationList(e.operations);return VE.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 jJ(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 _J={isSpan(e){return Array.isArray(e)&&e.length===2&&e.every(T.isPath)}};function LE(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 $E(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ge={compare(e,t){var r=T.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter(e,t){return ge.compare(e,t)===1},isBefore(e,t){return ge.compare(e,t)===-1},equals(e,t){return e.offset===t.offset&&T.equals(e.path,t.path)},isPoint(e){return Ye(e)&&typeof e.offset=="number"&&T.isPath(e.path)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ud(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:a,offset:s}=n;switch(t.type){case"insert_node":case"move_node":{n.path=T.transform(a,t,r);break}case"insert_text":{T.equals(t.path,a)&&(t.offset<s||t.offset===s&&o==="forward")&&(n.offset+=t.text.length);break}case"merge_node":{T.equals(t.path,a)&&(n.offset+=t.position),n.path=T.transform(a,t,r);break}case"remove_text":{T.equals(t.path,a)&&t.offset<=s&&(n.offset-=Math.min(s-t.offset,t.text.length));break}case"remove_node":{if(T.equals(t.path,a)||T.isAncestor(t.path,a))return null;n.path=T.transform(a,t,r);break}case"split_node":{if(T.equals(t.path,a)){if(t.position===s&&o==null)return null;(t.position<s||t.position===s&&o==="forward")&&(n.offset-=t.position,n.path=T.transform(a,t,$E($E({},r),{},{affinity:"forward"})))}else n.path=T.transform(a,t,r);break}}})}},zE=void 0,at={setScrubber(e){zE=e},stringify(e){return JSON.stringify(e,zE)}},WJ=["text"],UJ=["anchor","focus"];function GE(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 Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Z={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(a){var s=$n(a,WJ);return s}return sP(n?o(e):e,n?o(t):t)},isText(e){return Ye(e)&&typeof e.text=="string"},isTextList(e){return Array.isArray(e)&&e.every(t=>Z.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=[Vn({},e)];for(var n of t){var o=$n(n,UJ),[a,s]=B.edges(n),u=[],l=0,c=a.offset,p=s.offset;for(var d of r){var{length:m}=d.text,g=l;if(l+=m,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,h=void 0,b=void 0;if(p<l){var y=p-g;b=Vn(Vn({},v),{},{text:v.text.slice(y)}),v=Vn(Vn({},v),{},{text:v.text.slice(0,y)})}if(c>g){var x=c-g;h=Vn(Vn({},v),{},{text:v.text.slice(0,x)}),v=Vn(Vn({},v),{},{text:v.text.slice(x)})}Object.assign(v,o),h&&u.push(h),u.push(v),b&&u.push(b)}r=u}return r}},R2=e=>e.selection?e.selection:e.children.length>0?C.end(e,[]):[0],cs=(e,t)=>{var[r]=C.node(e,t);return n=>n===r},F2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=!r,o=r?ZJ(t):t,a=le.None,s=le.None,u=0,l=null,c=null;for(var p of o){var d=p.codePointAt(0);if(!d)break;var m=cZ(p,d);if([a,s]=n?[s,m]:[m,a],ls(a,le.ZWJ)&&ls(s,le.ExtPict)&&(n?l=HE(t.substring(0,u)):l=HE(t.substring(0,t.length-u)),!l)||ls(a,le.RI)&&ls(s,le.RI)&&(c!==null?c=!c:n?c=!0:c=hZ(t.substring(0,t.length-u)),!c)||a!==le.None&&s!==le.None&&pZ(a,s))break;u+=p.length}return u||1},KJ=/\s/,qJ=/[\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]/,XJ=/['\u2018\u2019]/,YJ=function(t){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=0,o=!1;t.length>0;){var a=F2(t,r),[s,u]=O2(t,a,r);if(JJ(s,u,r))o=!0,n+=a;else if(!o)n+=a;else break;t=u}return n},O2=(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)]},JJ=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(KJ.test(t))return!1;if(XJ.test(t)){var o=F2(r,n),[a,s]=O2(r,o,n);if(e(a,s,n))return!0}return!qJ.test(t)},ZJ=function*(t){for(var r=t.length-1,n=0;n<t.length;n++){var o=t.charAt(r-n);if(eZ(o.charCodeAt(0))){var a=t.charAt(r-n-1);if(QJ(a.charCodeAt(0))){yield a+o,n++;continue}}yield o}},QJ=e=>e>=55296&&e<=56319,eZ=e=>e>=56320&&e<=57343,le;(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"})(le||(le={}));var tZ=/^(?:[\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])$/,rZ=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,nZ=/^(?:[\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])$/,oZ=/^[\u1100-\u115F\uA960-\uA97C]$/,iZ=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,aZ=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,sZ=/^[\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]$/,uZ=/^[\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]$/,lZ=/^(?:[\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])$/,cZ=(e,t)=>{var r=le.Any;return e.search(tZ)!==-1&&(r|=le.Extend),t===8205&&(r|=le.ZWJ),t>=127462&&t<=127487&&(r|=le.RI),e.search(rZ)!==-1&&(r|=le.Prepend),e.search(nZ)!==-1&&(r|=le.SpacingMark),e.search(oZ)!==-1&&(r|=le.L),e.search(iZ)!==-1&&(r|=le.V),e.search(aZ)!==-1&&(r|=le.T),e.search(sZ)!==-1&&(r|=le.LV),e.search(uZ)!==-1&&(r|=le.LVT),e.search(lZ)!==-1&&(r|=le.ExtPict),r};function ls(e,t){return(e&t)!==0}var fZ=[[le.L,le.L|le.V|le.LV|le.LVT],[le.LV|le.V,le.V|le.T],[le.LVT|le.T,le.T],[le.Any,le.Extend|le.ZWJ],[le.Any,le.SpacingMark],[le.Prepend,le.Any],[le.ZWJ,le.ExtPict],[le.RI,le.RI]];function pZ(e,t){return fZ.findIndex(r=>ls(e,r[0])&&ls(t,r[1]))===-1}var dZ=/(?:[\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$/,HE=e=>e.search(dZ)!==-1,mZ=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,hZ=e=>{var t=e.match(mZ);if(t===null)return!1;var r=t[0].length/2;return r%2===1},gZ={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=R2(e)}=r;if(T.isPath(o)&&(o=C.range(e,o)),B.isRange(o))if(B.isCollapsed(o))o=o.anchor;else{var a=B.end(o);if(!n&&C.void(e,{at:a}))return;var s=B.start(o),u=C.pointRef(e,s),l=C.pointRef(e,a);k.delete(e,{at:o,voids:n});var c=u.unref(),p=l.unref();o=c||p,k.setSelection(e,{anchor:o,focus:o})}if(!(!n&&C.void(e,{at:o})||C.elementReadOnly(e,{at:o}))){var{path:d,offset:m}=o;t.length>0&&e.apply({type:"insert_text",path:d,offset:m,text:t})}})}};function jE(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 ld(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var k=ld(ld(ld(ld({},kJ),NJ),VJ),gZ),vZ=(e,t)=>{for(var r of C.pathRefs(e))OJ.transform(r,t);for(var n of C.pointRefs(e))BJ.transform(n,t);for(var o of C.rangeRefs(e))MJ.transform(o,t);var a=cd.get(e)||[],s=fd.get(e)||new Set,u,l,c=v=>{if(v){var h=v.join(",");l.has(h)||(l.add(h),u.push(v))}};if(T.operationCanTransformPath(t)){u=[],l=new Set;for(var p of a){var d=T.transform(p,t);c(d)}}else u=a,l=s;var m=e.getDirtyPaths(t);for(var g of m)c(g);cd.set(e,u),fd.set(e,l),k.transform(e,t),e.operations.push(t),C.normalize(e,{operation:t}),t.type==="set_selection"&&(e.marks=null),el.get(e)||(el.set(e,!0),Promise.resolve().then(()=>{el.set(e,!1),e.onChange({operation:t}),e.operations=[]}))},yZ=(e,t)=>{switch(t.type){case"insert_text":case"remove_text":case"set_node":{var{path:r}=t;return T.levels(r)}case"insert_node":{var{node:n,path:o}=t,a=T.levels(o),s=Z.isText(n)?[]:Array.from(W.nodes(n),M=>{var[,H]=M;return o.concat(H)});return[...a,...s]}case"merge_node":{var{path:u}=t,l=T.ancestors(u),c=T.previous(u);return[...l,c]}case"move_node":{var{path:p,newPath:d}=t;if(T.equals(p,d))return[];var m=[],g=[];for(var v of T.ancestors(p)){var h=T.transform(v,t);m.push(h)}for(var b of T.ancestors(d)){var y=T.transform(b,t);g.push(y)}var x=g[g.length-1],w=d[d.length-1],S=x.concat(w);return[...m,...g,S]}case"remove_node":{var{path:E}=t,D=T.ancestors(E);return[...D]}case"split_node":{var{path:P}=t,R=T.levels(P),F=T.next(P);return[...R,F]}default:return[]}},bZ=e=>{var{selection:t}=e;return t?W.fragment(e,t):[]},CZ=(e,t)=>{var[r,n]=t;if(!Z.isText(r)){if(q.isElement(r)&&r.children.length===0){var o={text:""};k.insertNodes(e,o,{at:n.concat(0),voids:!0});return}for(var a=C.isEditor(r)?!1:q.isElement(r)&&(e.isInline(r)||r.children.length===0||Z.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(!Z.isText(l)){var c=l.children[s],p=l.children[s-1],d=u===r.children.length-1,m=Z.isText(c)||q.isElement(c)&&e.isInline(c);if(m!==a)k.removeNodes(e,{at:n.concat(s),voids:!0}),s--;else if(q.isElement(c)){if(e.isInline(c)){if(p==null||!Z.isText(p)){var g={text:""};k.insertNodes(e,g,{at:n.concat(s),voids:!0}),s++}else if(d){var v={text:""};k.insertNodes(e,v,{at:n.concat(s+1),voids:!0}),s++}}}else p!=null&&Z.isText(p)&&(Z.equals(c,p,{loose:!0})?(k.mergeNodes(e,{at:n.concat(s),voids:!0}),s--):p.text===""?(k.removeNodes(e,{at:n.concat(s-1),voids:!0}),s--):c.text===""&&(k.removeNodes(e,{at:n.concat(s),voids:!0}),s--))}}}},xZ=(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},wZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:n=!1,mode:o="lowest",at:a=t.selection,match:s}=r;if(a){var u=C.path(t,a),l=o==="lowest";for(var[c,p]of C.levels(t,{at:u,voids:n,match:s,reverse:l}))if(!Z.isText(c)){if(B.isRange(a)){if(T.isAncestor(p,a.anchor.path)&&T.isAncestor(p,a.focus.path))return[c,p]}else if(!T.equals(u,p))return[c,p]}}};function _E(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 WE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_E(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_E(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var SZ=(e,t,r)=>{var{selection:n}=e;if(n){var o=(d,m)=>{if(!Z.isText(d))return!1;var[g,v]=C.parent(e,m);return!e.isVoid(g)||e.markableVoid(g)},a=B.isExpanded(n),s=!1;if(!a){var[u,l]=C.node(e,n);if(u&&o(u,l)){var[c]=C.parent(e,l);s=c&&e.markableVoid(c)}}if(a||s)k.setNodes(e,{[t]:r},{match:o,split:!0,voids:!0});else{var p=WE(WE({},C.marks(e)||{}),{},{[t]:r});e.marks=p,el.get(e)||e.onChange()}}};function UE(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 KE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var DZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.point(t,r,{edge:"end"}),a=C.end(t,[]),s={anchor:o,focus:a},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,KE(KE({},n),{},{at:s}))){if(l>u)break;l!==0&&(c=p),l++}return c};function qE(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 XE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var EZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.start(t,[]),a=C.point(t,r,{edge:"start"}),s={anchor:o,focus:a},{distance:u=1}=n,l=0,c;for(var p of C.positions(t,XE(XE({},n),{},{at:s,reverse:!0}))){if(l>u)break;l!==0&&(c=p),l++}return c},PZ=(e,t)=>{var{selection:r}=e;r&&B.isCollapsed(r)&&k.delete(e,{unit:t,reverse:!0})},TZ=(e,t)=>{var{selection:r}=e;r&&B.isCollapsed(r)&&k.delete(e,{unit:t})},AZ=function(t){var{direction:r="forward"}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t;n&&B.isExpanded(n)&&k.delete(t,{reverse:r==="backward"})},RZ=(e,t)=>[C.start(e,t),C.end(e,t)];function YE(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 JE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var FZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,JE(JE({},r),{},{match:n=>q.isElement(n)&&C.isElementReadOnly(t,n)}))},OZ=(e,t)=>C.point(e,t,{edge:"end"}),BZ=(e,t)=>{var r=C.path(e,t,{edge:"start"});return C.node(e,r)},MZ=(e,t)=>{var r=C.range(e,t);return W.fragment(e,r)};function ZE(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 QE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZE(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IZ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C.above(t,QE(QE({},r),{},{match:n=>q.isElement(n)&&C.isVoid(t,n)}))},kZ=(e,t)=>t.children.some(r=>q.isElement(r)&&C.isBlock(e,r)),NZ=(e,t)=>t.children.some(r=>Z.isText(r)||C.isInline(e,r)),VZ=(e,t)=>W.has(e,t),LZ=(e,t)=>t.children.every(r=>Z.isText(r)),$Z=e=>{k.splitNodes(e,{always:!0})},zZ=(e,t,r)=>{k.insertNodes(e,t,r)},GZ=e=>{k.splitNodes(e,{always:!0})};function eP(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 HZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o,marks:a}=t;if(o){if(a){var s=HZ({text:r},a);k.insertNodes(t,s,{at:n.at,voids:n.voids})}else k.insertText(t,r,n);t.marks=null}},_Z=(e,t)=>!e.isInline(t),WZ=(e,t,r)=>C.isStart(e,t,r)||C.isEnd(e,t,r),UZ=(e,t)=>{var{children:r}=t,[n]=r;return r.length===0||r.length===1&&Z.isText(n)&&n.text===""&&!e.isVoid(t)},KZ=(e,t,r)=>{var n=C.end(e,r);return ge.equals(t,n)},qZ=e=>{var t=aP.get(e);return t===void 0?!0:t},XZ=(e,t,r)=>{if(t.offset!==0)return!1;var n=C.start(e,r);return ge.equals(t,n)},YZ=(e,t)=>{var r=C.path(e,t,{edge:"end"});return C.node(e,r)},JZ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),a=W.leaf(t,o);return[a,o]};function*ZZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:a}=t;if(a==null&&(a=()=>!0),!!r){var s=[],u=C.path(e,r);for(var[l,c]of W.levels(e,u))if(a(l,c)&&(s.push([l,c]),!o&&q.isElement(l)&&C.isVoid(e,l)))break;n&&s.reverse(),yield*s}}var QZ=["text"],eQ=["text"],tQ=function(t){var{marks:r,selection:n}=t;if(!n)return null;if(r)return r;if(B.isExpanded(n)){var[o]=C.nodes(t,{match:Z.isText});if(o){var[a]=o,s=$n(a,QZ);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:Z.isText}),d=C.above(t,{match:y=>q.isElement(y)&&C.isVoid(t,y)&&t.markableVoid(y)});if(!d){var m=C.above(t,{match:y=>q.isElement(y)&&C.isBlock(t,y)});if(p&&m){var[g,v]=p,[,h]=m;T.isAncestor(h,v)&&(c=g)}}}var b=$n(c,eQ);return b},rQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:a,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(T.isPath(s)&&s.length===0)throw new Error("Cannot get the next node from the root node!");if(a==null)if(T.isPath(s)){var[p]=C.parent(t,s);a=m=>p.children.includes(m)}else a=()=>!0;var[d]=C.nodes(t,{at:c,match:a,mode:n,voids:o});return d}}},nQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),a=W.get(t,o);return[a,o]};function*oQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:a=!1,voids:s=!1,ignoreNonSelectable:u=!1}=t,{match:l}=t;if(l||(l=()=>!0),!!r){var c,p;if(_J.isSpan(r))c=r[0],p=r[1];else{var d=C.path(e,r,{edge:"start"}),m=C.path(e,r,{edge:"end"});c=a?m:d,p=a?d:m}var g=W.nodes(e,{reverse:a,from:c,to:p,pass:S=>{var[E]=S;return q.isElement(E)?!!(!s&&(C.isVoid(e,E)||C.isElementReadOnly(e,E))||u&&!C.isSelectable(e,E)):!1}}),v=[],h;for(var[b,y]of g)if(!(u&&q.isElement(b)&&!C.isSelectable(e,b))){var x=h&&T.compare(y,h[1])===0;if(!(n==="highest"&&x)){if(!l(b,y)){if(o&&!x&&Z.isText(b))return;continue}if(n==="lowest"&&x){h=[b,y];continue}var w=n==="lowest"?h:[b,y];w&&(o?v.push(w):yield w),h=[b,y]}}n==="lowest"&&h&&(o?v.push(h):yield h),o&&(yield*v)}}var iQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:n=!1,operation:o}=r,a=p=>cd.get(p)||[],s=p=>fd.get(p)||new Set,u=p=>{var d=a(p).pop(),m=d.join(",");return s(p).delete(m),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(",")));cd.set(t,l),fd.set(t,c)}a(t).length!==0&&C.withoutNormalizing(t,()=>{for(var p of a(t))if(W.has(t,p)){var d=C.node(t,p),[m,g]=d;q.isElement(m)&&m.children.length===0&&t.normalizeNode(d,{operation:o})}for(var v=a(t),h=v.length,b=0;v.length!==0;){if(!t.shouldNormalize({dirtyPaths:v,iteration:b,initialDirtyPathsLength:h,operation:o}))return;var y=u(t);if(W.has(t,y)){var x=C.node(t,y);t.normalizeNode(x,{operation:o})}b++,v=a(t)}})}},aQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=C.path(t,r,n),a=T.parent(o),s=C.node(t,a);return s},sQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,a={current:r,affinity:o,unref(){var{current:u}=a,l=C.pathRefs(t);return l.delete(a),a.current=null,u}},s=C.pathRefs(t);return s.add(a),a},uQ=e=>{var t=RE.get(e);return t||(t=new Set,RE.set(e,t)),t},lQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:o,edge:a}=n;if(T.isPath(r)){if(a==="start"){var[,s]=W.first(t,r);r=s}else if(a==="end"){var[,u]=W.last(t,r);r=u}}return B.isRange(r)&&(a==="start"?r=B.start(r):a==="end"?r=B.end(r):r=T.common(r.anchor.path,r.focus.path)),ge.isPoint(r)&&(r=r.path),o!=null&&(r=r.slice(0,o)),r},cQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,a={current:r,affinity:o,unref(){var{current:u}=a,l=C.pointRefs(t);return l.delete(a),a.current=null,u}},s=C.pointRefs(t);return s.add(a),a},fQ=e=>{var t=FE.get(e);return t||(t=new Set,FE.set(e,t)),t},pQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:o="start"}=n;if(T.isPath(r)){var a;if(o==="end"){var[,s]=W.last(t,r);a=s}else{var[,u]=W.first(t,r);a=u}var l=W.get(t,a);if(!Z.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:a,offset:o==="end"?l.text.length:0}}if(B.isRange(r)){var[c,p]=B.edges(r);return o==="start"?c:p}return r};function*dQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:a=!1,ignoreNonSelectable:s=!1}=t;if(!r)return;var u=C.range(e,r),[l,c]=B.edges(u),p=o?c:l,d=!1,m="",g=0,v=0,h=0;for(var[b,y]of C.nodes(e,{at:r,reverse:o,voids:a,ignoreNonSelectable:s})){if(q.isElement(b)){if(!a&&(e.isVoid(b)||e.isElementReadOnly(b))){yield C.start(e,y);continue}if(e.isInline(b))continue;if(C.hasInlines(e,b)){var x=T.isAncestor(y,c.path)?c:C.end(e,y),w=T.isAncestor(y,l.path)?l:C.start(e,y);m=C.string(e,{anchor:w,focus:x},{voids:a}),d=!0}}if(Z.isText(b)){var S=T.equals(y,p.path);for(S?(v=o?p.offset:b.text.length-p.offset,h=p.offset):(v=b.text.length,h=o?v:0),(S||d||n==="offset")&&(yield{path:y,offset:h},d=!1);;){if(g===0){if(m==="")break;g=E(m,n,o),m=O2(m,g,o)[1]}if(h=o?h-g:h+g,v=v-g,v<0){g=-v;break}g=0,yield{path:y,offset:h}}}}function E(D,P,R){return P==="character"?F2(D,R):P==="word"?YJ(D,R):P==="line"||P==="block"?D.length:1}}var mQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:n="lowest",voids:o=!1}=r,{match:a,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(T.isPath(s)&&s.length===0)throw new Error("Cannot get the previous node from the root node!");if(a==null)if(T.isPath(s)){var[p]=C.parent(t,s);a=m=>p.children.includes(m)}else a=()=>!0;var[d]=C.nodes(t,{reverse:!0,at:c,match:a,mode:n,voids:o});return d}}},hQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:o="forward"}=n,a={current:r,affinity:o,unref(){var{current:u}=a,l=C.rangeRefs(t);return l.delete(a),a.current=null,u}},s=C.rangeRefs(t);return s.add(a),a},gQ=e=>{var t=OE.get(e);return t||(t=new Set,OE.set(e,t)),t},vQ=(e,t,r)=>{if(B.isRange(t)&&!r)return t;var n=C.start(e,t),o=C.end(e,r||t);return{anchor:n,focus:o}};function tP(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 yQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var bQ=(e,t)=>{var{selection:r}=e;if(r){var n=(p,d)=>{if(!Z.isText(p))return!1;var[m,g]=C.parent(e,d);return!e.isVoid(m)||e.markableVoid(m)},o=B.isExpanded(r),a=!1;if(!o){var[s,u]=C.node(e,r);if(s&&n(s,u)){var[l]=C.parent(e,u);a=l&&e.markableVoid(l)}}if(o||a)k.unsetNodes(e,t,{match:n,split:!0,voids:!0});else{var c=yQ({},C.marks(e)||{});delete c[t],e.marks=c,el.get(e)||e.onChange()}}},CQ=(e,t)=>{aP.set(e,t)},xQ=(e,t)=>C.point(e,t,{edge:"start"}),wQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,a=C.range(t,r),[s,u]=B.edges(a),l="";for(var[c,p]of C.nodes(t,{at:a,match:Z.isText,voids:o})){var d=c.text;T.equals(p,u.path)&&(d=d.slice(0,u.offset)),T.equals(p,s.path)&&(d=d.slice(s.offset)),l+=d}return l},SQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:o=!1}=n,[a,s]=B.edges(r);if(a.offset!==0||s.offset!==0||B.isCollapsed(r)||T.hasPrevious(s.path))return r;var u=C.above(t,{at:s,match:v=>q.isElement(v)&&C.isBlock(t,v),voids:o}),l=u?u[1]:[],c=C.start(t,a),p={anchor:c,focus:s},d=!0;for(var[m,g]of C.nodes(t,{at:p,match:Z.isText,reverse:!0,voids:o})){if(d){d=!1;continue}if(m.text!==""||T.isBefore(g,l)){s={path:g,offset:m.text.length};break}}return{anchor:a,focus:s}},DQ=(e,t)=>{var r=C.isNormalizing(e);C.setNormalizing(e,!1);try{t()}finally{C.setNormalizing(e,r)}C.normalize(e)},EQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var n,o,{reverse:a=!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(B.isRange(c)&&B.isCollapsed(c)&&(d=!0,c=c.anchor),ge.isPoint(c)){var m=C.void(t,{at:c,mode:"highest"});if(!l&&m){var[,g]=m;c=g}else{var v={unit:s,distance:u},h=a?C.before(t,c,v)||C.start(t,[]):C.after(t,c,v)||C.end(t,[]);c={anchor:c,focus:h},p=!0}}if(T.isPath(c)){k.removeNodes(t,{at:c,voids:l});return}if(!B.isCollapsed(c)){if(!p){var[,b]=B.edges(c),y=C.end(t,[]);ge.equals(b,y)||(c=C.unhangRange(t,c,{voids:l}))}var[x,w]=B.edges(c),S=C.above(t,{match:xe=>q.isElement(xe)&&C.isBlock(t,xe),at:x,voids:l}),E=C.above(t,{match:xe=>q.isElement(xe)&&C.isBlock(t,xe),at:w,voids:l}),D=S&&E&&!T.equals(S[1],E[1]),P=T.equals(x.path,w.path),R=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(R){var M=C.before(t,x);M&&S&&T.isAncestor(S[1],M.path)&&(x=M)}if(F){var H=C.after(t,w);H&&E&&T.isAncestor(E[1],H.path)&&(w=H)}var I=[],L;for(var N of C.nodes(t,{at:c,voids:l})){var[$,te]=N;L&&T.compare(te,L)===0||(!l&&q.isElement($)&&(C.isVoid(t,$)||C.isElementReadOnly(t,$))||!T.isCommon(te,x.path)&&!T.isCommon(te,w.path))&&(I.push(N),L=te)}var K=Array.from(I,xe=>{var[,gt]=xe;return C.pathRef(t,gt)}),re=C.pointRef(t,x),G=C.pointRef(t,w),ae="";if(!P&&!R){var ve=re.current,[de]=C.leaf(t,ve),{path:He}=ve,{offset:A}=x,_=de.text.slice(A);_.length>0&&(t.apply({type:"remove_text",path:He,offset:A,text:_}),ae=_)}if(K.reverse().map(xe=>xe.unref()).filter(xe=>xe!==null).forEach(xe=>k.removeNodes(t,{at:xe,voids:l})),!F){var z=G.current,[j]=C.leaf(t,z),{path:ue}=z,ie=P?x.offset:0,me=j.text.slice(ie,w.offset);me.length>0&&(t.apply({type:"remove_text",path:ue,offset:ie,text:me}),ae=me)}!P&&D&&G.current&&re.current&&k.mergeNodes(t,{at:G.current,hanging:!0,voids:l}),d&&a&&s==="character"&&ae.length>1&&ae.match(/[\u0E00-\u0E7F]+/)&&k.insertText(t,ae.slice(0,ae.length-u));var Ce=re.unref(),Se=G.unref(),Ee=a?Ce||Se:Se||Ce;r.at==null&&Ee&&k.select(t,Ee)}}})},PQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!1}=n,{at:s=R2(t)}=n;if(r.length){if(B.isRange(s))if(o||(s=C.unhangRange(t,s,{voids:a})),B.isCollapsed(s))s=s.anchor;else{var[,u]=B.edges(s);if(!a&&C.void(t,{at:u}))return;var l=C.pointRef(t,u);k.delete(t,{at:s}),s=l.unref()}else T.isPath(s)&&(s=C.start(t,s));if(!(!a&&C.void(t,{at:s}))){var c=C.above(t,{at:s,match:A=>q.isElement(A)&&C.isInline(t,A),mode:"highest",voids:a});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 m=C.before(t,p);s=m}}var g=C.above(t,{match:A=>q.isElement(A)&&C.isBlock(t,A),at:s,voids:a}),[,v]=g,h=C.isStart(t,s,v),b=C.isEnd(t,s,v),y=h&&b,x=!h||h&&b,w=!b,[,S]=W.first({children:r},[]),[,E]=W.last({children:r},[]),D=[],P=A=>{var[_,z]=A,j=z.length===0;return j?!1:y?!0:!(x&&T.isAncestor(z,S)&&q.isElement(_)&&!t.isVoid(_)&&!t.isInline(_)||w&&T.isAncestor(z,E)&&q.isElement(_)&&!t.isVoid(_)&&!t.isInline(_))};for(var R of W.nodes({children:r},{pass:P}))P(R)&&D.push(R);var F=[],M=[],H=[],I=!0,L=!1;for(var[N]of D)q.isElement(N)&&!t.isInline(N)?(I=!1,L=!0,M.push(N)):I?F.push(N):H.push(N);var[$]=C.nodes(t,{at:s,match:A=>Z.isText(A)||C.isInline(t,A),mode:"highest",voids:a}),[,te]=$,K=C.isStart(t,s,te),re=C.isEnd(t,s,te),G=C.pathRef(t,b&&!H.length?T.next(v):v),ae=C.pathRef(t,re?T.next(te):te);k.splitNodes(t,{at:s,match:A=>L?q.isElement(A)&&C.isBlock(t,A):Z.isText(A)||C.isInline(t,A),mode:L?"lowest":"highest",always:L&&(!h||F.length>0)&&(!b||H.length>0),voids:a});var ve=C.pathRef(t,!K||K&&re?T.next(te):te);if(k.insertNodes(t,F,{at:ve.current,match:A=>Z.isText(A)||C.isInline(t,A),mode:"highest",voids:a}),y&&!F.length&&M.length&&!H.length&&k.delete(t,{at:v,voids:a}),k.insertNodes(t,M,{at:G.current,match:A=>q.isElement(A)&&C.isBlock(t,A),mode:"lowest",voids:a}),k.insertNodes(t,H,{at:ae.current,match:A=>Z.isText(A)||C.isInline(t,A),mode:"highest",voids:a}),!n.at){var de;if(H.length>0&&ae.current?de=T.previous(ae.current):M.length>0&&G.current?de=T.previous(G.current):ve.current&&(de=T.previous(ve.current)),de){var He=C.end(t,de);k.select(t,He)}}ve.unref(),G.unref(),ae.unref()}}})},TQ=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")k.select(t,o.anchor);else if(n==="focus")k.select(t,o.focus);else if(n==="start"){var[a]=B.edges(o);k.select(t,a)}else if(n==="end"){var[,s]=B.edges(o);k.select(t,s)}}else return},AQ=e=>{var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},RQ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=t,{distance:o=1,unit:a="character",reverse:s=!1}=r,{edge:u=null}=r;if(n){u==="start"&&(u=B.isBackward(n)?"focus":"anchor"),u==="end"&&(u=B.isBackward(n)?"anchor":"focus");var{anchor:l,focus:c}=n,p={distance:o,unit:a,ignoreNonSelectable:!0},d={};if(u==null||u==="anchor"){var m=s?C.before(t,l,p):C.after(t,l,p);m&&(d.anchor=m)}if(u==null||u==="focus"){var g=s?C.before(t,c,p):C.after(t,c,p);g&&(d.focus=g)}k.setSelection(t,d)}},FQ=(e,t)=>{var{selection:r}=e;if(t=C.range(e,t),r){k.setSelection(e,t);return}if(!B.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(at.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})};function rP(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 nP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var OQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:o}=t,{edge:a="both"}=n;if(o){a==="start"&&(a=B.isBackward(o)?"focus":"anchor"),a==="end"&&(a=B.isBackward(o)?"anchor":"focus");var{anchor:s,focus:u}=o,l=a==="anchor"?s:u;k.setSelection(t,{[a==="anchor"?"anchor":"focus"]:nP(nP({},l),r)})}},BQ=(e,t)=>{var{selection:r}=e,n={},o={};if(r){for(var a in t)(a==="anchor"&&t.anchor!=null&&!ge.equals(t.anchor,r.anchor)||a==="focus"&&t.focus!=null&&!ge.equals(t.focus,r.focus)||a!=="anchor"&&a!=="focus"&&t[a]!==r[a])&&(n[a]=r[a],o[a]=t[a]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}},MQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{hanging:o=!1,voids:a=!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=R2(t),c=!0),c==null&&(c=!1),B.isRange(u))if(o||(u=C.unhangRange(t,u,{voids:a})),B.isCollapsed(u))u=u.anchor;else{var[,d]=B.edges(u),m=C.pointRef(t,d);k.delete(t,{at:u}),u=m.unref()}if(ge.isPoint(u)){l==null&&(Z.isText(p)?l=P=>Z.isText(P):t.isInline(p)?l=P=>Z.isText(P)||C.isInline(t,P):l=P=>q.isElement(P)&&C.isBlock(t,P));var[g]=C.nodes(t,{at:u.path,match:l,mode:s,voids:a});if(g){var[,v]=g,h=C.pathRef(t,v),b=C.isEnd(t,u,v);k.splitNodes(t,{at:u,match:l,mode:s,voids:a});var y=h.unref();u=b?T.next(y):y}else return}var x=T.parent(u),w=u[u.length-1];if(!(!a&&C.void(t,{at:x}))){for(var S of r){var E=x.concat(w);w++,t.apply({type:"insert_node",path:E,node:S}),u=T.next(u)}if(u=T.previous(u),c){var D=C.end(t,u);D&&k.select(t,D)}}}})},IQ=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:a=!1}=r,{match:s}=r;if(s==null&&(s=T.isPath(n)?cs(t,n):S=>q.isElement(S)&&C.isBlock(t,S)),!!n){var u=C.nodes(t,{at:n,match:s,mode:o,voids:a}),l=Array.from(u,S=>{var[,E]=S;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,T.parent(p)),[m,g]=d,v=p[p.length-1],{length:h}=m.children;if(h===1){var b=T.next(g);k.moveNodes(t,{at:p,to:b,voids:a}),k.removeNodes(t,{at:g,voids:a})}else if(v===0)k.moveNodes(t,{at:p,to:g,voids:a});else if(v===h-1){var y=T.next(g);k.moveNodes(t,{at:p,to:y,voids:a})}else{var x=T.next(p),w=T.next(g);k.splitNodes(t,{at:x,voids:a}),k.moveNodes(t,{at:p,to:w,voids:a})}}}})},kQ=["text"],NQ=["children"],uP=(e,t)=>{if(q.isElement(t)){var r=t;return C.isVoid(e,t)?!0:r.children.length===1?uP(e,r.children[0]):!1}else return!C.isEditor(t)},VQ=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:a=!1,voids:s=!1,mode:u="lowest"}=r;if(o){if(n==null)if(T.isPath(o)){var[l]=C.parent(t,o);n=M=>l.children.includes(M)}else n=M=>q.isElement(M)&&C.isBlock(t,M);if(!a&&B.isRange(o)&&(o=C.unhangRange(t,o,{voids:s})),B.isRange(o))if(B.isCollapsed(o))o=o.anchor;else{var[,c]=B.edges(o),p=C.pointRef(t,c);k.delete(t,{at:o}),o=p.unref(),r.at==null&&k.select(t,o)}var[d]=C.nodes(t,{at:o,match:n,voids:s,mode:u}),m=C.previous(t,{at:o,match:n,voids:s,mode:u});if(!(!d||!m)){var[g,v]=d,[h,b]=m;if(!(v.length===0||b.length===0)){var y=T.next(b),x=T.common(v,b),w=T.isSibling(v,b),S=Array.from(C.levels(t,{at:v}),M=>{var[H]=M;return H}).slice(x.length).slice(0,-1),E=C.above(t,{at:v,mode:"highest",match:M=>S.includes(M)&&uP(t,M)}),D=E&&C.pathRef(t,E[1]),P,R;if(Z.isText(g)&&Z.isText(h)){var F=$n(g,kQ);R=h.text.length,P=F}else if(q.isElement(g)&&q.isElement(h)){var F=$n(g,NQ);R=h.children.length,P=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(at.stringify(g)," ").concat(at.stringify(h)));w||k.moveNodes(t,{at:v,to:y,voids:s}),D&&k.removeNodes(t,{at:D.current,voids:s}),q.isElement(h)&&C.isEmpty(t,h)||Z.isText(h)&&h.text===""&&b[b.length-1]!==0?k.removeNodes(t,{at:b,voids:s}):t.apply({type:"merge_node",path:y,position:R,properties:P}),D&&D.unref()}}}})},LQ=(e,t)=>{C.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:a=!1}=t,{match:s}=t;if(n){s==null&&(s=T.isPath(n)?cs(e,n):g=>q.isElement(g)&&C.isBlock(e,g));var u=C.pathRef(e,r),l=C.nodes(e,{at:n,match:s,mode:o,voids:a}),c=Array.from(l,g=>{var[,v]=g;return C.pathRef(e,v)});for(var p of c){var d=p.unref(),m=u.current;d.length!==0&&e.apply({type:"move_node",path:d,newPath:m}),u.current&&T.isSibling(m,d)&&T.isAfter(m,d)&&(u.current=T.next(u.current))}u.unref()}})},$Q=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{hanging:n=!1,voids:o=!1,mode:a="lowest"}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=T.isPath(s)?cs(t,s):g=>q.isElement(g)&&C.isBlock(t,g)),!n&&B.isRange(s)&&(s=C.unhangRange(t,s,{voids:o}));var l=C.nodes(t,{at:s,match:u,mode:a,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[m]=C.node(t,d);t.apply({type:"remove_node",path:d,node:m})}}}})},zQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{match:o,at:a=t.selection,compare:s,merge:u}=n,{hanging:l=!1,mode:c="lowest",split:p=!1,voids:d=!1}=n;if(a){if(o==null&&(o=T.isPath(a)?cs(t,a):R=>q.isElement(R)&&C.isBlock(t,R)),!l&&B.isRange(a)&&(a=C.unhangRange(t,a,{voids:d})),p&&B.isRange(a)){if(B.isCollapsed(a)&&C.leaf(t,a.anchor)[0].text.length>0)return;var m=C.rangeRef(t,a,{affinity:"inward"}),[g,v]=B.edges(a),h=c==="lowest"?"lowest":"highest",b=C.isEnd(t,v,v.path);k.splitNodes(t,{at:v,match:o,mode:h,voids:d,always:!b});var y=C.isStart(t,g,g.path);k.splitNodes(t,{at:g,match:o,mode:h,voids:d,always:!y}),a=m.unref(),n.at==null&&k.select(t,a)}s||(s=(R,F)=>R!==F);for(var[x,w]of C.nodes(t,{at:a,match:o,mode:c,voids:d})){var S={},E={};if(w.length!==0){var D=!1;for(var P in r)P==="children"||P==="text"||s(r[P],x[P])&&(D=!0,x.hasOwnProperty(P)&&(S[P]=x[P]),u?r[P]!=null&&(E[P]=u(x[P],r[P])):r[P]!=null&&(E[P]=r[P]));D&&t.apply({type:"set_node",path:w,properties:S,newProperties:E})}}}})},GQ=(e,t)=>{if(B.isCollapsed(t))return t.anchor;var[,r]=B.edges(t),n=C.pointRef(e,r);return k.delete(e,{at:t}),n.unref()},HQ=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:a,at:s=t.selection,height:u=0,always:l=!1}=r;if(a==null&&(a=G=>q.isElement(G)&&C.isBlock(t,G)),B.isRange(s)&&(s=GQ(t,s)),T.isPath(s)){var c=s,p=C.point(t,c),[d]=C.parent(t,c);a=G=>G===d,u=p.path.length-c.length+1,s=p,l=!0}if(s){var m=C.pointRef(t,s,{affinity:"backward"}),g;try{var[v]=C.nodes(t,{at:s,match:a,mode:n,voids:o});if(!v)return;var h=C.void(t,{at:s,mode:"highest"}),b=0;if(!o&&h){var[y,x]=h;if(q.isElement(y)&&t.isInline(y)){var w=C.after(t,x);if(!w){var S={text:""},E=T.next(x);k.insertNodes(t,S,{at:E,voids:o}),w=C.point(t,E)}s=w,l=!0}var D=s.path.length-x.length;u=D+1,l=!0}g=C.pointRef(t,s);var P=s.path.length-u,[,R]=v,F=s.path.slice(0,P),M=u===0?s.offset:s.path[P]+b;for(var[H,I]of C.levels(t,{at:F,reverse:!0,voids:o})){var L=!1;if(I.length<R.length||I.length===0||!o&&q.isElement(H)&&C.isVoid(t,H))break;var N=m.current,$=C.isEnd(t,N,I);if(l||!m||!C.isEdge(t,N,I)){L=!0;var te=W.extractProps(H);t.apply({type:"split_node",path:I,position:M,properties:te})}M=I[I.length-1]+(L||$?1:0)}if(r.at==null){var K=g.current||C.end(t,[]);k.select(t,K)}}finally{var re;m.unref(),(re=g)===null||re===void 0||re.unref()}}})},jQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(r)||(r=[r]);var o={};for(var a of r)o[a]=null;k.setNodes(t,o,n)},_Q=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};C.withoutNormalizing(t,()=>{var{mode:n="lowest",split:o=!1,voids:a=!1}=r,{at:s=t.selection,match:u}=r;if(s){u==null&&(u=T.isPath(s)?cs(t,s):g=>q.isElement(g)&&C.isBlock(t,g)),T.isPath(s)&&(s=C.range(t,s));var l=B.isRange(s)?C.rangeRef(t,s):null,c=C.nodes(t,{at:s,match:u,mode:n,voids:a}),p=Array.from(c,g=>{var[,v]=g;return C.pathRef(t,v)}).reverse(),d=function(v){var h=v.unref(),[b]=C.node(t,h),y=C.range(t,h);o&&l&&(y=B.intersection(l.current,y)),k.liftNodes(t,{at:y,match:x=>q.isAncestor(b)&&b.children.includes(x),voids:a})};for(var m of p)d(m);l&&l.unref()}})};function oP(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 iP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oP(Object(r),!0).forEach(function(n){Lt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var WQ=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};C.withoutNormalizing(t,()=>{var{mode:o="lowest",split:a=!1,voids:s=!1}=n,{match:u,at:l=t.selection}=n;if(l){if(u==null&&(T.isPath(l)?u=cs(t,l):t.isInline(r)?u=y=>q.isElement(y)&&C.isInline(t,y)||Z.isText(y):u=y=>q.isElement(y)&&C.isBlock(t,y)),a&&B.isRange(l)){var[c,p]=B.edges(l),d=C.rangeRef(t,l,{affinity:"inward"});k.splitNodes(t,{at:p,match:u,voids:s}),k.splitNodes(t,{at:c,match:u,voids:s}),l=d.unref(),n.at==null&&k.select(t,l)}var m=Array.from(C.nodes(t,{at:l,match:t.isInline(r)?y=>q.isElement(y)&&C.isBlock(t,y):y=>C.isEditor(y),mode:"lowest",voids:s}));for(var[,g]of m){var v=B.isRange(l)?B.intersection(l,C.range(t,g)):l;if(v){var h=Array.from(C.nodes(t,{at:v,match:u,mode:o,voids:s}));if(h.length>0){var b=function(){var[y]=h,x=h[h.length-1],[,w]=y,[,S]=x;if(w.length===0&&S.length===0)return"continue";var E=T.equals(w,S)?T.parent(w):T.common(w,S),D=C.range(t,w,S),P=C.node(t,E),[R]=P,F=E.length+1,M=T.next(S.slice(0,F)),H=iP(iP({},r),{},{children:[]});k.insertNodes(t,H,{at:M,voids:s}),k.moveNodes(t,{at:D,match:I=>q.isAncestor(R)&&R.children.includes(I),to:M.concat(0),voids:s})}();if(b==="continue")continue}}}}})},pd=()=>{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 vZ(e,...n)},addMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return SZ(e,...n)},deleteBackward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PZ(e,...n)},deleteForward:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return TZ(e,...n)},deleteFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return AZ(e,...n)},getFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bZ(e,...n)},insertBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return $Z(e,...n)},insertSoftBreak:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return GZ(e,...n)},insertFragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return PQ(e,...n)},insertNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zZ(e,...n)},insertText:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jZ(e,...n)},normalizeNode:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return CZ(e,...n)},removeMark:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return bQ(e,...n)},getDirtyPaths:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yZ(e,...n)},shouldNormalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xZ(e,...n)},above:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return wZ(e,...n)},after:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return DZ(e,...n)},before:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EZ(e,...n)},collapse:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return TQ(e,...n)},delete:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return EQ(e,...n)},deselect:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return AQ(e,...n)},edges:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return RZ(e,...n)},elementReadOnly:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FZ(e,...n)},end:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OZ(e,...n)},first:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return BZ(e,...n)},fragment:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return MZ(e,...n)},getMarks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return tQ(e,...n)},hasBlocks:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return kZ(e,...n)},hasInlines:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return NZ(e,...n)},hasPath:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return VZ(e,...n)},hasTexts:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LZ(e,...n)},insertNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return MQ(e,...n)},isBlock:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _Z(e,...n)},isEdge:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return WZ(e,...n)},isEmpty:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return UZ(e,...n)},isEnd:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return KZ(e,...n)},isNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return qZ(e,...n)},isStart:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return XZ(e,...n)},last:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return YZ(e,...n)},leaf:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return JZ(e,...n)},levels:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return ZZ(e,...n)},liftNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return IQ(e,...n)},mergeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return VQ(e,...n)},move:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return RQ(e,...n)},moveNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return LQ(e,...n)},next:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return rQ(e,...n)},node:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return nQ(e,...n)},nodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return oQ(e,...n)},normalize:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return iQ(e,...n)},parent:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return aQ(e,...n)},path:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return lQ(e,...n)},pathRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return sQ(e,...n)},pathRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return uQ(e,...n)},point:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return pQ(e,...n)},pointRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return cQ(e,...n)},pointRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return fQ(e,...n)},positions:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return dQ(e,...n)},previous:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return mQ(e,...n)},range:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return vQ(e,...n)},rangeRef:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return hQ(e,...n)},rangeRefs:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return gQ(e,...n)},removeNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return $Q(e,...n)},select:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return FQ(e,...n)},setNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zQ(e,...n)},setNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return CQ(e,...n)},setPoint:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return OQ(e,...n)},setSelection:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return BQ(e,...n)},splitNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return HQ(e,...n)},start:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return xQ(e,...n)},string:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return wQ(e,...n)},unhangRange:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return SQ(e,...n)},unsetNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return jQ(e,...n)},unwrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return _Q(e,...n)},void:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return IZ(e,...n)},withoutNormalizing:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return DQ(e,...n)},wrapNodes:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return WQ(e,...n)}};return e};i();i();i();i();i();i();i();var Pr=[];var lP=function(){return Pr.some(function(e){return e.activeTargets.length>0})};i();var cP=function(){return Pr.some(function(e){return e.skippedTargets.length>0})};i();var fP="ResizeObserver loop completed with undelivered notifications.",pP=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:fP}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=fP),window.dispatchEvent(e)};i();i();i();i();var Si;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Si||(Si={}));i();i();var jr=function(e){return Object.freeze(e)};var B2=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,jr(this)}return e}();i();var M2=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,jr(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,o=t.top,a=t.right,s=t.bottom,u=t.left,l=t.width,c=t.height;return{x:r,y:n,top:o,right:a,bottom:s,left:u,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}();i();var tl=function(e){return e instanceof SVGElement&&"getBBox"in e},dd=function(e){if(tl(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var o=e,a=o.offsetWidth,s=o.offsetHeight;return!(a||s||e.getClientRects().length)},I2=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)},dP=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};i();var Di=typeof window<"u"?window:{};var md=new WeakMap,mP=/auto|scroll/,UQ=/^tb|vertical/,KQ=/msie|trident/i.test(Di.navigator&&Di.navigator.userAgent),sn=function(e){return parseFloat(e||"0")},fs=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new B2((r?t:e)||0,(r?e:t)||0)},hP=jr({devicePixelContentBoxSize:fs(),borderBoxSize:fs(),contentBoxSize:fs(),contentRect:new M2(0,0,0,0)}),k2=function(e,t){if(t===void 0&&(t=!1),md.has(e)&&!t)return md.get(e);if(dd(e))return md.set(e,hP),hP;var r=getComputedStyle(e),n=tl(e)&&e.ownerSVGElement&&e.getBBox(),o=!KQ&&r.boxSizing==="border-box",a=UQ.test(r.writingMode||""),s=!n&&mP.test(r.overflowY||""),u=!n&&mP.test(r.overflowX||""),l=n?0:sn(r.paddingTop),c=n?0:sn(r.paddingRight),p=n?0:sn(r.paddingBottom),d=n?0:sn(r.paddingLeft),m=n?0:sn(r.borderTopWidth),g=n?0:sn(r.borderRightWidth),v=n?0:sn(r.borderBottomWidth),h=n?0:sn(r.borderLeftWidth),b=d+c,y=l+p,x=h+g,w=m+v,S=u?e.offsetHeight-w-e.clientHeight:0,E=s?e.offsetWidth-x-e.clientWidth:0,D=o?b+x:0,P=o?y+w:0,R=n?n.width:sn(r.width)-D-E,F=n?n.height:sn(r.height)-P-S,M=R+b+E+x,H=F+y+S+w,I=jr({devicePixelContentBoxSize:fs(Math.round(R*devicePixelRatio),Math.round(F*devicePixelRatio),a),borderBoxSize:fs(M,H,a),contentBoxSize:fs(R,F,a),contentRect:new M2(d,l,R,F)});return md.set(e,I),I},hd=function(e,t,r){var n=k2(e,r),o=n.borderBoxSize,a=n.contentBoxSize,s=n.devicePixelContentBoxSize;switch(t){case Si.DEVICE_PIXEL_CONTENT_BOX:return s;case Si.BORDER_BOX:return o;default:return a}};var N2=function(){function e(t){var r=k2(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=jr([r.borderBoxSize]),this.contentBoxSize=jr([r.contentBoxSize]),this.devicePixelContentBoxSize=jr([r.devicePixelContentBoxSize])}return e}();i();var gd=function(e){if(dd(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t};var gP=function(){var e=1/0,t=[];Pr.forEach(function(s){if(s.activeTargets.length!==0){var u=[];s.activeTargets.forEach(function(c){var p=new N2(c.target),d=gd(c.target);u.push(p),c.lastReportedSize=hd(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};i();var V2=function(e){Pr.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(o){o.isActive()&&(gd(o.target)>e?r.activeTargets.push(o):r.skippedTargets.push(o))})})};var vP=function(){var e=0;for(V2(e);lP();)e=gP(),V2(e);return cP()&&pP(),e>0};i();i();var L2,yP=[],qQ=function(){return yP.splice(0).forEach(function(e){return e()})},bP=function(e){if(!L2){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return qQ()}).observe(r,n),L2=function(){r.textContent="".concat(t?t--:t++)}}yP.push(e),L2()};var CP=function(e){bP(function(){requestAnimationFrame(e)})};var vd=0,XQ=function(){return!!vd},YQ=250,JQ={attributes:!0,characterData:!0,childList:!0,subtree:!0},xP=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],wP=function(e){return e===void 0&&(e=0),Date.now()+e},$2=!1,ZQ=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=YQ),!$2){$2=!0;var n=wP(t);CP(function(){var o=!1;try{o=vP()}finally{if($2=!1,t=n-wP(),!XQ())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,JQ)};document.body?r():Di.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),xP.forEach(function(r){return Di.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),xP.forEach(function(r){return Di.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),yd=new ZQ,z2=function(e){!vd&&e>0&&yd.start(),vd+=e,!vd&&yd.stop()};i();var QQ=function(e){return!tl(e)&&!dP(e)&&getComputedStyle(e).display==="inline"},SP=function(){function e(t,r){this.target=t,this.observedBox=r||Si.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=hd(this.target,this.observedBox,!0);return QQ(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}();i();var DP=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}();var bd=new WeakMap,EP=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},rl=function(){function e(){}return e.connect=function(t,r){var n=new DP(t,r);bd.set(t,n)},e.observe=function(t,r,n){var o=bd.get(t),a=o.observationTargets.length===0;EP(o.observationTargets,r)<0&&(a&&Pr.push(o),o.observationTargets.push(new SP(r,n&&n.box)),z2(1),yd.schedule())},e.unobserve=function(t,r){var n=bd.get(t),o=EP(n.observationTargets,r),a=n.observationTargets.length===1;o>=0&&(a&&Pr.splice(Pr.indexOf(n),1),n.observationTargets.splice(o,1),z2(-1))},e.disconnect=function(t){var r=this,n=bd.get(t);n.observationTargets.slice().forEach(function(o){return r.unobserve(t,o.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}();var G2=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.");rl.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(!I2(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");rl.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(!I2(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");rl.unobserve(this,t)},e.prototype.disconnect=function(){rl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();var Sd=U(FP());import lee from"react-dom";function Ad(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cee(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function ms(e,t){if(e==null)return{};var r=cee(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Q2=Ri(null),Vo=()=>{var e=gs(Q2);if(!e)throw new Error("The `useSlateStatic` hook must be used inside the <Slate> component's context.");return e},UP=parseInt(fe.version.split(".")[0],10),fee=typeof navigator<"u"&&typeof window<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,OP=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),er=typeof navigator<"u"&&/Android/.test(navigator.userAgent),il=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ol=typeof navigator<"u"&&/AppleWebKit(?!.*Chrome)/i.test(navigator.userAgent),pee=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),KP=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),dee=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),mee=er&&typeof navigator<"u"&&/Chrome?\/(?:[0-5]?\d)(?:\.)/i.test(navigator.userAgent),hee=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox\/(?:[0-7][0-9]|[0-8][0-6])(?:\.)).*/i.test(navigator.userAgent),gee=typeof navigator<"u"&&/.*UCBrowser/.test(navigator.userAgent),vee=typeof navigator<"u"&&/.*Wechat/.test(navigator.userAgent)&&!/.*MacWechat/.test(navigator.userAgent),Dd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Mo=(!dee||!mee)&&!pee&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",eg=new WeakMap,tg=new WeakMap,qP=new WeakMap,Ed=new WeakMap,W2=new WeakMap,sl=new WeakMap,Ti=new WeakMap,Pd=new WeakMap,Rd=new WeakMap,U2=new WeakMap,Ei=new WeakMap,Pi=new WeakMap,al=new WeakMap,K2=new WeakMap,rg=new WeakMap,_r=new WeakMap,zn=new WeakMap,Qt=new WeakMap,Io=new WeakMap,ko=new WeakMap,XP=new WeakMap,hs=Symbol("placeholder"),YP=Symbol("mark-placeholder"),yee=globalThis.Text,ng=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView||null,bee=e=>No(e)&&e.nodeType===8,Tr=e=>No(e)&&e.nodeType===1,No=e=>{var t=ng(e);return!!t&&e instanceof t.Node},q2=e=>{var t=e&&e.anchorNode&&ng(e.anchorNode);return!!t&&e instanceof t.Selection},JP=e=>No(e)&&e.nodeType===3,Cee=e=>e.clipboardData&&e.clipboardData.getData("text/plain")!==""&&e.clipboardData.types.length===1,xee=e=>{var[t,r]=e;if(Tr(t)&&t.childNodes.length){var n=r===t.childNodes.length,o=n?r-1:r;for([t,o]=ZP(t,o,n?"backward":"forward"),n=o<r;Tr(t)&&t.childNodes.length;){var a=n?t.childNodes.length-1:0;t=See(t,a,n?"backward":"forward")}r=n&&t.textContent!=null?t.textContent.length:0}return[t,r]},wee=e=>{for(var t=e&&e.parentNode;t;){if(t.toString()==="[object ShadowRoot]")return!0;t=t.parentNode}return!1},ZP=(e,t,r)=>{for(var{childNodes:n}=e,o=n[t],a=t,s=!1,u=!1;(bee(o)||Tr(o)&&o.childNodes.length===0||Tr(o)&&o.getAttribute("contenteditable")==="false")&&!(s&&u);){if(a>=n.length){s=!0,a=t-1,r="backward";continue}if(a<0){u=!0,a=t+1,r="forward";continue}o=n[a],t=a,a+=r==="forward"?1:-1}return[o,t]},See=(e,t,r)=>{var[n]=ZP(e,t,r);return n},QP=e=>{var t="";if(JP(e)&&e.nodeValue)return e.nodeValue;if(Tr(e)){for(var r of Array.from(e.childNodes))t+=QP(r);var n=getComputedStyle(e).getPropertyValue("display");(n==="block"||n==="list"||e.tagName==="BR")&&(t+=`
|
|
1823
1823
|
`)}return t},Dee=/data-slate-fragment="(.+?)"/m,Eee=e=>{var t=e.getData("text/html"),[,r]=t.match(Dee)||[];return r},og=(e,t,r)=>{var{target:n}=t;if(Tr(n)&&n.matches('[contentEditable="false"]'))return!1;var{document:o}=V.getWindow(e);if(o.contains(n))return V.hasDOMNode(e,n,{editable:!0});var a=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!a||a===t?!1:og(e,a,r)},Pee=0,X2=class{constructor(){this.id="".concat(Pee++)}},V={androidPendingDiffs:e=>Qt.get(e),androidScheduleFlush:e=>{var t;(t=rg.get(e))===null||t===void 0||t()},blur:e=>{var t=V.toDOMNode(e,e),r=V.findDocumentOrShadowRoot(e);Ei.set(e,!1),r.activeElement===t&&t.blur()},deselect:e=>{var{selection:t}=e,r=V.findDocumentOrShadowRoot(e),n=r.getSelection();n&&n.rangeCount>0&&n.removeAllRanges(),t&&k.deselect(e)},findDocumentOrShadowRoot:e=>{var t=V.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 a=V.toSlateNode(e,t.target),s=V.findPath(e,a);if(q.isElement(a)&&C.isVoid(e,a)){var u=o.getBoundingClientRect(),l=e.isInline(a)?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 m,{document:g}=V.getWindow(e);if(g.caretRangeFromPoint)m=g.caretRangeFromPoint(r,n);else{var v=g.caretPositionFromPoint(r,n);v&&(m=g.createRange(),m.setStart(v.offsetNode,v.offset),m.setEnd(v.offsetNode,v.offset))}if(!m)throw new Error("Cannot resolve a Slate range from a DOM event: ".concat(t));var h=V.toSlateRange(e,m,{exactMatch:!1,suppressThrow:!1});return h},findKey:(e,t)=>{var r=Pd.get(t);return r||(r=new X2,Pd.set(t,r)),r},findPath:(e,t)=>{for(var r=[],n=t;;){var o=tg.get(n);if(o==null){if(C.isEditor(n))return r;break}var a=eg.get(n);if(a==null)break;r.unshift(a),n=o}throw new Error("Unable to find the path for Slate node: ".concat(at.stringify(t)))},focus:e=>{var t=V.toDOMNode(e,e),r=V.findDocumentOrShadowRoot(e);if(Ei.set(e,!0),r.activeElement!==t){if(e.selection&&r instanceof Document){var n=r.getSelection(),o=V.toDOMRange(e,e.selection);n?.removeAllRanges(),n?.addRange(o)}t.focus({preventScroll:!0})}},getWindow:e=>{var t=qP.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,a=V.toDOMNode(t,t),s;try{s=Tr(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]")===a&&(!o||s.isContentEditable?!0:typeof s.isContentEditable=="boolean"&&s.closest('[contenteditable="false"]')===a||!!s.getAttribute("data-slate-zero-width")):!1},hasEditableTarget:(e,t)=>No(t)&&V.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)=>V.hasEditableTarget(e,t)||V.isTargetInsideNonReadonlyVoid(e,t),hasTarget:(e,t)=>No(t)&&V.hasDOMNode(e,t),insertData:(e,t)=>{e.insertData(t)},insertFragmentData:(e,t)=>e.insertFragmentData(t),insertTextData:(e,t)=>e.insertTextData(t),isComposing:e=>!!Pi.get(e),isFocused:e=>!!Ei.get(e),isReadOnly:e=>!!U2.get(e),isTargetInsideNonReadonlyVoid:(e,t)=>{if(U2.get(e))return!1;var r=V.hasTarget(e,t)&&V.toSlateNode(e,t);return q.isElement(r)&&C.isVoid(e,r)},setFragmentData:(e,t,r)=>e.setFragmentData(t,r),toDOMNode:(e,t)=>{var r=Rd.get(e),n=C.isEditor(t)?Ed.get(e):r?.get(V.findKey(e,t));if(!n)throw new Error("Cannot resolve a DOM node from Slate node: ".concat(at.stringify(t)));return n},toDOMPoint:(e,t)=>{var[r]=C.node(e,t.path),n=V.toDOMNode(e,r),o;C.void(e,{at:t})&&(t={path:t.path,offset:0});for(var a="[data-slate-string], [data-slate-zero-width]",s=Array.from(n.querySelectorAll(a)),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,m=c.getAttribute("data-slate-length"),g=m==null?d:parseInt(m,10),v=u+g,h=s[l+1];if(t.offset===v&&h!==null&&h!==void 0&&h.hasAttribute("data-slate-mark-placeholder")){var b,y=h.childNodes[0];o=[y instanceof yee?y:h,(b=h.textContent)!==null&&b!==void 0&&b.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(at.stringify(t)));return o},toDOMRange:(e,t)=>{var{anchor:r,focus:n}=t,o=B.isBackward(t),a=V.toDOMPoint(e,r),s=B.isCollapsed(t)?a:V.toDOMPoint(e,n),u=V.getWindow(e),l=u.document.createRange(),[c,p]=o?s:a,[d,m]=o?a:s,g=Tr(c)?c:c.parentElement,v=!!g.getAttribute("data-slate-zero-width"),h=Tr(d)?d:d.parentElement,b=!!h.getAttribute("data-slate-zero-width");return l.setStart(c,v?1:p),l.setEnd(d,b?1:m),l},toSlateNode:(e,t)=>{var r=Tr(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?sl.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,[a,s]=n?t:xee(t),u=a.parentNode,l=null,c=0;if(u){var p,d,m=V.toDOMNode(e,e),g=u.closest('[data-slate-void="true"]'),v=g&&m.contains(g)?g:null,h=u.closest("[data-slate-leaf]"),b=null;if(h){if(l=h.closest('[data-slate-node="text"]'),l){var y=V.getWindow(e),x=y.document.createRange();x.setStart(l,0),x.setEnd(a,s);var w=x.cloneContents(),S=[...Array.prototype.slice.call(w.querySelectorAll("[data-slate-zero-width]")),...Array.prototype.slice.call(w.querySelectorAll("[contenteditable=false]"))];S.forEach(N=>{if(er&&!n&&N.hasAttribute("data-slate-zero-width")&&N.textContent.length>0&&N.textContext!=="\uFEFF"){N.textContent.startsWith("\uFEFF")&&(N.textContent=N.textContent.slice(1));return}N.parentNode.removeChild(N)}),c=w.textContent.length,b=l}}else if(v){for(var E=v.querySelectorAll("[data-slate-leaf]"),D=0;D<E.length;D++){var P=E[D];if(V.hasDOMNode(e,P)){h=P;break}}h?(l=h.closest('[data-slate-node="text"]'),b=h,c=b.textContent.length,b.querySelectorAll("[data-slate-zero-width]").forEach(N=>{c-=N.textContent.length})):c=1}b&&c===b.textContent.length&&er&&b.getAttribute("data-slate-zero-width")==="z"&&(p=b.textContent)!==null&&p!==void 0&&p.startsWith("\uFEFF")&&(u.hasAttribute("data-slate-zero-width")||il&&(d=b.textContent)!==null&&d!==void 0&&d.endsWith(`
|
|
1824
1824
|
|
|
1825
1825
|
`))&&c--}if(er&&!l&&!n){var R=u.hasAttribute("data-slate-node")?u:u.closest("[data-slate-node]");if(R&&V.hasDOMNode(e,R,{editable:!0})){var F=V.toSlateNode(e,R),{path:M,offset:H}=C.start(e,V.findPath(e,F));return R.querySelector("[data-slate-leaf]")||(H=s),{path:M,offset:H}}}if(!l){if(o)return null;throw new Error("Cannot resolve a Slate point from DOM point: ".concat(t))}var I=V.toSlateNode(e,l),L=V.findPath(e,I);return{path:L,offset:c}},toSlateRange:(e,t,r)=>{var{exactMatch:n,suppressThrow:o}=r,a=q2(t)?t.anchorNode:t.startContainer,s,u,l,c,p;if(a)if(q2(t)){if(il&&t.rangeCount>1){l=t.focusNode;var d=t.getRangeAt(0),m=t.getRangeAt(t.rangeCount-1);if(l instanceof HTMLTableRowElement&&d.startContainer instanceof HTMLTableRowElement&&m.startContainer instanceof HTMLTableRowElement){let E=function(D){return D.childElementCount>0?E(D.children[0]):D};var g=d.startContainer,v=m.startContainer,h=E(g.children[d.startOffset]),b=E(v.children[m.startOffset]);c=0,b.childNodes.length>0?s=b.childNodes[0]:s=b,h.childNodes.length>0?l=h.childNodes[0]:l=h,b instanceof HTMLElement?u=b.innerHTML.length:u=0}else d.startContainer===l?(s=m.endContainer,u=m.endOffset,c=d.startOffset):(s=d.startContainer,u=d.endOffset,c=m.startOffset)}else s=t.anchorNode,u=t.anchorOffset,l=t.focusNode,c=t.focusOffset;KP&&wee(s)||il?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 y;l=s,c=((y=s.textContent)===null||y===void 0?void 0:y.length)||0}var x=V.toSlatePoint(e,[s,u],{exactMatch:n,suppressThrow:o});if(!x)return null;var w=p?x:V.toSlatePoint(e,[l,c],{exactMatch:n,suppressThrow:o});if(!w)return null;var S={anchor:x,focus:w};return B.isExpanded(S)&&B.isForward(S)&&Tr(l)&&C.void(e,{at:S.focus,mode:"highest"})&&(S=C.unhangRange(e,S,{voids:!0})),S}};function Tee(e,t){var{path:r,diff:n}=t;if(!C.hasPath(e,r))return!1;var o=W.get(e,r);if(!Z.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 a=T.next(r);if(!C.hasPath(e,a))return!1;var s=W.get(e,a);return Z.isText(s)&&s.text.startsWith(n.text)}function eT(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,a)=>o.slice(0,a.start)+a.text+o.slice(a.end),e)}function Aee(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 Ree(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 tT(e,t){var{start:r,end:n,text:o}=t,a=e.slice(r,n),s=Aee(a,o),u=Math.min(a.length-s,o.length-s),l=Ree(a,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 Fee(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),a=eT(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=a.slice(n,s),l=Math.max(t.end,r.end-t.text.length+(t.end-t.start));return tT(e,{start:n,end:l,text:u})}function Oee(e){var{path:t,diff:r}=e;return{anchor:{path:t,offset:r.start},focus:{path:t,offset:r.end}}}function Y2(e,t){var{path:r,offset:n}=t;if(!C.hasPath(e,r))return null;var o=W.get(e,r);if(!Z.isText(o))return null;var a=C.above(e,{match:u=>q.isElement(u)&&C.isBlock(e,u),at:r});if(!a)return null;for(;n>o.text.length;){var s=C.next(e,{at:r,match:Z.isText});if(!s||!T.isDescendant(s[1],a[1]))return null;n-=o.text.length,o=s[0],r=s[1]}return{path:r,offset:n}}function BP(e,t){var r=Y2(e,t.anchor);if(!r)return null;if(B.isCollapsed(t))return{anchor:r,focus:r};var n=Y2(e,t.focus);return n?{anchor:r,focus:n}:null}function J2(e,t,r){var n=Qt.get(e),o=n?.find(p=>{var{path:d}=p;return T.equals(d,t.path)});if(!o||t.offset<=o.diff.start)return ge.transform(t,r,{affinity:"backward"});var{diff:a}=o;if(t.offset<=a.start+a.text.length){var s={path:t.path,offset:a.start},u=ge.transform(s,r,{affinity:"backward"});return u?{path:u.path,offset:u.offset+t.offset-a.start}:null}var l={path:t.path,offset:t.offset-a.text.length+a.end-a.start},c=ge.transform(l,r,{affinity:"backward"});return c?r.type==="split_node"&&T.equals(r.path,t.path)&&l.offset<r.position&&a.start<r.position?c:{path:c.path,offset:c.offset+a.text.length-a.end+a.start}:null}function MP(e,t,r){var n=J2(e,t.anchor,r);if(!n)return null;if(B.isCollapsed(t))return{anchor:n,focus:n};var o=J2(e,t.focus,r);return o?{anchor:n,focus:o}:null}function Bee(e,t){var{path:r,diff:n,id:o}=e;switch(t.type){case"insert_text":return!T.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!T.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!T.equals(t.path,r)||t.position>=n.end?{diff:n,id:o,path:T.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:T.transform(r,t,{affinity:"forward"})};case"merge_node":return T.equals(t.path,r)?{diff:{start:n.start+t.position,end:n.end+t.position,text:n.text},id:o,path:T.transform(r,t)}:{diff:n,id:o,path:T.transform(r,t)}}var a=T.transform(r,t);return a?{diff:n,path:a,id:o}:null}function IP(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 xd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IP(Object(r),!0).forEach(function(n){Ad(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Mee=25,Iee=200,kee=function(){},Nee=e=>e?.constructor.name==="DataTransfer";function Vee(e){var{editor:t,scheduleOnDOMSelectionChange:r,onDOMSelectionChange:n}=e,o=!1,a=null,s=null,u=null,l=0,c=!1,p=()=>{var I=ko.get(t);if(ko.delete(t),I){var{selection:L}=t,N=BP(t,I);N&&(!L||!B.equals(N,L))&&k.select(t,N)}},d=()=>{var I=Io.get(t);if(Io.delete(t),!!I){if(I.at){var L=ge.isPoint(I.at)?Y2(t,I.at):BP(t,I.at);if(!L)return;var N=C.range(t,L);(!t.selection||!B.equals(t.selection,N))&&k.select(t,L)}I.run()}},m=()=>{if(s&&(clearTimeout(s),s=null),u&&(clearTimeout(u),u=null),!S()&&!w()){p();return}o||(o=!0,setTimeout(()=>o=!1)),w()&&(o="action");var I=t.selection&&C.rangeRef(t,t.selection,{affinity:"forward"});zn.set(t,t.marks),kee("flush",Io.get(t),Qt.get(t));for(var L=S(),N;N=($=Qt.get(t))===null||$===void 0?void 0:$[0];){var $,te,K=_r.get(t);K!==void 0&&(_r.delete(t),t.marks=K),K&&c===!1&&(c=null);var re=Oee(N);(!t.selection||!B.equals(t.selection,re))&&k.select(t,re),N.diff.text?C.insertText(t,N.diff.text):C.deleteFragment(t),Qt.set(t,(te=Qt.get(t))===null||te===void 0?void 0:te.filter(ve=>{var{id:de}=ve;return de!==N.id})),Tee(t,N)||(L=!1,Io.delete(t),zn.delete(t),o="action",ko.delete(t),r.cancel(),n.cancel(),I?.unref())}var G=I?.unref();if(G&&!ko.get(t)&&(!t.selection||!B.equals(G,t.selection))&&k.select(t,G),w()){d();return}L&&r(),r.flush(),n.flush(),p();var ae=zn.get(t);zn.delete(t),ae!==void 0&&(t.marks=ae,t.onChange())},g=I=>{a&&clearTimeout(a),a=setTimeout(()=>{Pi.set(t,!1),m()},Mee)},v=I=>{Pi.set(t,!0),a&&(clearTimeout(a),a=null)},h=function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,N=W2.get(t);if(N){if(S()||L){N.style.display="none";return}N.style.removeProperty("display")}},b=(I,L)=>{var N,$=(N=Qt.get(t))!==null&&N!==void 0?N:[];Qt.set(t,$);var te=W.leaf(t,I),K=$.findIndex(ae=>T.equals(ae.path,I));if(K<0){var re=tT(te.text,L);re&&$.push({path:I,diff:L,id:l++}),h();return}var G=Fee(te.text,$[K].diff,L);if(!G){$.splice(K,1),h();return}$[K]=xd(xd({},$[K]),{},{diff:G})},y=function(L){var{at:N}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};c=!1,ko.delete(t),r.cancel(),n.cancel(),w()&&m(),Io.set(t,{at:N,run:L}),u=setTimeout(m)},x=I=>{var L;s&&(clearTimeout(s),s=null);var{inputType:N}=I,$=null,te=I.dataTransfer||I.data||void 0;c!==!1&&N!=="insertText"&&N!=="insertCompositionText"&&(c=!1);var[K]=I.getTargetRanges();K&&($=V.toSlateRange(t,K,{exactMatch:!1,suppressThrow:!0}));var re=V.getWindow(t),G=re.getSelection();if(!$&&G&&(K=G,$=V.toSlateRange(t,G,{exactMatch:!1,suppressThrow:!0})),$=(L=$)!==null&&L!==void 0?L:t.selection,!!$){var ae=!0;if(N.startsWith("delete")){if(B.isExpanded($)){var[ve,de]=B.edges($),He=W.leaf(t,ve.path);if(He.text.length===ve.offset&&de.offset===0){var A=C.next(t,{at:ve.path,match:Z.isText});A&&T.equals(A[1],de.path)&&($={anchor:de,focus:de})}}var _=N.endsWith("Backward")?"backward":"forward",[z,j]=B.edges($),[ue,ie]=C.leaf(t,z.path),me={text:"",start:z.offset,end:j.offset},Ce=Qt.get(t),Se=Ce?.find(Pe=>T.equals(Pe.path,ie)),Ee=Se?[Se.diff,me]:[me],xe=eT(ue.text,...Ee);if(xe.length===0&&(ae=!1),B.isExpanded($)){if(ae&&T.equals($.anchor.path,$.focus.path)){var gt={path:$.anchor.path,offset:z.offset},vt=C.range(t,gt,gt);return P(vt),b($.anchor.path,{text:"",end:j.offset,start:z.offset})}return y(()=>C.deleteFragment(t,{direction:_}),{at:$})}}switch(N){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":return y(()=>C.deleteFragment(t),{at:$});case"deleteContent":case"deleteContentForward":{var{anchor:je}=$;if(ae&&B.isCollapsed($)){var ir=W.leaf(t,je.path);if(je.offset<ir.text.length)return b(je.path,{text:"",start:je.offset,end:je.offset+1})}return y(()=>C.deleteForward(t),{at:$})}case"deleteContentBackward":{var Ht,{anchor:St}=$,ar=q2(K)?K.isCollapsed:!!((Ht=K)!==null&&Ht!==void 0&&Ht.collapsed);return ae&&ar&&B.isCollapsed($)&&St.offset>0?b(St.path,{text:"",start:St.offset-1,end:St.offset}):y(()=>C.deleteBackward(t),{at:$})}case"deleteEntireSoftLine":return y(()=>{C.deleteBackward(t,{unit:"line"}),C.deleteForward(t,{unit:"line"})},{at:$});case"deleteHardLineBackward":return y(()=>C.deleteBackward(t,{unit:"block"}),{at:$});case"deleteSoftLineBackward":return y(()=>C.deleteBackward(t,{unit:"line"}),{at:$});case"deleteHardLineForward":return y(()=>C.deleteForward(t,{unit:"block"}),{at:$});case"deleteSoftLineForward":return y(()=>C.deleteForward(t,{unit:"line"}),{at:$});case"deleteWordBackward":return y(()=>C.deleteBackward(t,{unit:"word"}),{at:$});case"deleteWordForward":return y(()=>C.deleteForward(t,{unit:"word"}),{at:$});case"insertLineBreak":return y(()=>C.insertSoftBreak(t),{at:$});case"insertParagraph":return y(()=>C.insertBreak(t),{at:$});case"insertCompositionText":case"deleteCompositionText":case"insertFromComposition":case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":{if(Nee(te))return y(()=>V.insertData(t,te),{at:$});var O=te??"";if(_r.get(t)&&(O=O.replace("\uFEFF","")),N==="insertText"&&/.*\n.*\n$/.test(O)&&(O=O.slice(0,-1)),O.includes(`
|
|
@@ -2081,7 +2081,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2081
2081
|
which in turn throws off perfect centering */
|
|
2082
2082
|
vertical-align: bottom;
|
|
2083
2083
|
}
|
|
2084
|
-
`,NA=({placement:e="left",align:t="top",gap:r="1.5rem",item:n,children:o,...a})=>Ene(kA,{...a,children:[(0,IA.isNotNil)(n)?MA(Dne,{align:t,gap:r,placement:e,children:n}):null,MA(Sne,{align:t,children:o})]});NA.displayName="MediaObject_VHS";i();i();import*as ut from"react";i();function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}i();import*as VA from"react";function Pne(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Oi(...e){return t=>e.forEach(r=>Pne(r,t))}function Je(...e){return VA.useCallback(Oi(...e),e)}i();import*as _n from"react";import{jsx as Tne}from"react/jsx-runtime";function Wd(e,t=[]){let r=[];function n(a,s){let u=_n.createContext(s),l=r.length;r=[...r,s];let c=d=>{let{scope:m,children:g,...v}=d,h=m?.[e]?.[l]||u,b=_n.useMemo(()=>v,Object.values(v));return Tne(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(d,m){let g=m?.[e]?.[l]||u,v=_n.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,p]}let o=()=>{let a=r.map(s=>_n.createContext(s));return function(u){let l=u?.[e]||a;return _n.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,Ane(o,...t)]}function Ane(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return _n.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}i();import*as $o from"react";i();import*as Ps from"react";function st(e){let t=Ps.useRef(e);return Ps.useEffect(()=>{t.current=e}),Ps.useMemo(()=>(...r)=>t.current?.(...r),[])}function gl({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=Rne({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,u=st(r),l=$o.useCallback(c=>{if(a){let d=typeof c=="function"?c(e):c;d!==e&&u(d)}else o(c)},[a,e,o,u]);return[s,l]}function Rne({defaultProp:e,onChange:t}){let r=$o.useState(e),[n]=r,o=$o.useRef(n),a=st(t);return $o.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}i();import*as LA from"react";import*as $A from"react-dom";i();import*as wt from"react";import{Fragment as Fne,jsx as Ag}from"react/jsx-runtime";var zo=wt.forwardRef((e,t)=>{let{children:r,...n}=e,o=wt.Children.toArray(r),a=o.find(Bne);if(a){let s=a.props.children,u=o.map(l=>l===a?wt.Children.count(s)>1?wt.Children.only(null):wt.isValidElement(s)?s.props.children:null:l);return Ag(Rg,{...n,ref:t,children:wt.isValidElement(s)?wt.cloneElement(s,void 0,u):null})}return Ag(Rg,{...n,ref:t,children:r})});zo.displayName="Slot";var Rg=wt.forwardRef((e,t)=>{let{children:r,...n}=e;if(wt.isValidElement(r)){let o=Ine(r);return wt.cloneElement(r,{...Mne(n,r.props),ref:t?Oi(t,o):o})}return wt.Children.count(r)>1?wt.Children.only(null):null});Rg.displayName="SlotClone";var One=({children:e})=>Ag(Fne,{children:e});function Bne(e){return wt.isValidElement(e)&&e.type===One}function Mne(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...u)=>{a(...u),o(...u)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ine(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}import{jsx as kne}from"react/jsx-runtime";var Nne=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ue=Nne.reduce((e,t)=>{let r=LA.forwardRef((n,o)=>{let{asChild:a,...s}=n,u=a?zo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),kne(u,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ud(e,t){e&&$A.flushSync(()=>e.dispatchEvent(t))}i();import*as oe from"react";i();import Bi from"react";i();import*as Wn from"react";import{jsx as Vne}from"react/jsx-runtime";function zA(e,t=[]){let r=[];function n(a,s){let u=Wn.createContext(s),l=r.length;r=[...r,s];function c(d){let{scope:m,children:g,...v}=d,h=m?.[e][l]||u,b=Wn.useMemo(()=>v,Object.values(v));return Vne(h.Provider,{value:b,children:g})}function p(d,m){let g=m?.[e][l]||u,v=Wn.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,p]}let o=()=>{let a=r.map(s=>Wn.createContext(s));return function(u){let l=u?.[e]||a;return Wn.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,Lne(o,...t)]}function Lne(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return Wn.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}import{jsx as Fg}from"react/jsx-runtime";function Kd(e){let t=e+"CollectionProvider",[r,n]=zA(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:h}=g,b=Bi.useRef(null),y=Bi.useRef(new Map).current;return Fg(o,{scope:v,itemMap:y,collectionRef:b,children:h})};s.displayName=t;let u=e+"CollectionSlot",l=Bi.forwardRef((g,v)=>{let{scope:h,children:b}=g,y=a(u,h),x=Je(v,y.collectionRef);return Fg(zo,{ref:x,children:b})});l.displayName=u;let c=e+"CollectionItemSlot",p="data-radix-collection-item",d=Bi.forwardRef((g,v)=>{let{scope:h,children:b,...y}=g,x=Bi.useRef(null),w=Je(v,x),S=a(c,h);return Bi.useEffect(()=>(S.itemMap.set(x,{ref:x,...y}),()=>void S.itemMap.delete(x))),Fg(zo,{[p]:"",ref:w,children:b})});d.displayName=c;function m(g){let v=a(e+"CollectionConsumer",g);return Bi.useCallback(()=>{let b=v.collectionRef.current;if(!b)return[];let y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((S,E)=>y.indexOf(S.ref.current)-y.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},m,n]}i();import*as qd from"react";import{jsx as ist}from"react/jsx-runtime";var $ne=qd.createContext(void 0);function Xd(e){let t=qd.useContext($ne);return e||t||"ltr"}i();import*as Ke from"react";i();import*as GA from"react";function HA(e,t=globalThis?.document){let r=st(e);GA.useEffect(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}import{jsx as WA}from"react/jsx-runtime";var zne="DismissableLayer",Og="dismissableLayer.update",Gne="dismissableLayer.pointerDownOutside",Hne="dismissableLayer.focusOutside",jA,UA=Ke.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bg=Ke.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:u,...l}=e,c=Ke.useContext(UA),[p,d]=Ke.useState(null),m=p?.ownerDocument??globalThis?.document,[,g]=Ke.useState({}),v=Je(t,P=>d(P)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,E=Wne(P=>{let R=P.target,F=[...c.branches].some(M=>M.contains(R));!S||F||(o?.(P),s?.(P),P.defaultPrevented||u?.())},m),D=Une(P=>{let R=P.target;[...c.branches].some(M=>M.contains(R))||(a?.(P),s?.(P),P.defaultPrevented||u?.())},m);return HA(P=>{x===c.layers.size-1&&(n?.(P),!P.defaultPrevented&&u&&(P.preventDefault(),u()))},m),Ke.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(jA=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),_A(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=jA)}},[p,m,r,c]),Ke.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),_A())},[p,c]),Ke.useEffect(()=>{let P=()=>g({});return document.addEventListener(Og,P),()=>document.removeEventListener(Og,P)},[]),WA(Ue.div,{...l,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,D.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,E.onPointerDownCapture)})});Bg.displayName=zne;var jne="DismissableLayerBranch",_ne=Ke.forwardRef((e,t)=>{let r=Ke.useContext(UA),n=Ke.useRef(null),o=Je(t,n);return Ke.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),WA(Ue.div,{...e,ref:o})});_ne.displayName=jne;function Wne(e,t=globalThis?.document){let r=st(e),n=Ke.useRef(!1),o=Ke.useRef(()=>{});return Ke.useEffect(()=>{let a=u=>{if(u.target&&!n.current){let c=function(){KA(Gne,r,p,{discrete:!0})};var l=c;let p={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",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Une(e,t=globalThis?.document){let r=st(e),n=Ke.useRef(!1);return Ke.useEffect(()=>{let o=a=>{a.target&&!n.current&&KA(Hne,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _A(){let e=new CustomEvent(Og);document.dispatchEvent(e)}function KA(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ud(o,a):o.dispatchEvent(a)}i();import*as XA from"react";var Mg=0;function YA(){XA.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qA()),document.body.insertAdjacentElement("beforeend",e[1]??qA()),Mg++,()=>{Mg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mg--}},[])}function qA(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i();import*as Ar from"react";import{jsx as Kne}from"react/jsx-runtime";var Ig="focusScope.autoFocusOnMount",kg="focusScope.autoFocusOnUnmount",JA={bubbles:!1,cancelable:!0},qne="FocusScope",Ng=Ar.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[u,l]=Ar.useState(null),c=st(o),p=st(a),d=Ar.useRef(null),m=Je(t,h=>l(h)),g=Ar.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ar.useEffect(()=>{if(n){let x=function(D){if(g.paused||!u)return;let P=D.target;u.contains(P)?d.current=P:Go(d.current,{select:!0})},w=function(D){if(g.paused||!u)return;let P=D.relatedTarget;P!==null&&(u.contains(P)||Go(d.current,{select:!0}))},S=function(D){if(document.activeElement===document.body)for(let R of D)R.removedNodes.length>0&&Go(u)};var h=x,b=w,y=S;document.addEventListener("focusin",x),document.addEventListener("focusout",w);let E=new MutationObserver(S);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),E.disconnect()}}},[n,u,g.paused]),Ar.useEffect(()=>{if(u){QA.add(g);let h=document.activeElement;if(!u.contains(h)){let y=new CustomEvent(Ig,JA);u.addEventListener(Ig,c),u.dispatchEvent(y),y.defaultPrevented||(Xne(eoe(tR(u)),{select:!0}),document.activeElement===h&&Go(u))}return()=>{u.removeEventListener(Ig,c),setTimeout(()=>{let y=new CustomEvent(kg,JA);u.addEventListener(kg,p),u.dispatchEvent(y),y.defaultPrevented||Go(h??document.body,{select:!0}),u.removeEventListener(kg,p),QA.remove(g)},0)}}},[u,c,p,g]);let v=Ar.useCallback(h=>{if(!r&&!n||g.paused)return;let b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){let x=h.currentTarget,[w,S]=Yne(x);w&&S?!h.shiftKey&&y===S?(h.preventDefault(),r&&Go(w,{select:!0})):h.shiftKey&&y===w&&(h.preventDefault(),r&&Go(S,{select:!0})):y===x&&h.preventDefault()}},[r,n,g.paused]);return Kne(Ue.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})});Ng.displayName=qne;function Xne(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Go(n,{select:t}),document.activeElement!==r)return}function Yne(e){let t=tR(e),r=ZA(t,e),n=ZA(t.reverse(),e);return[r,n]}function tR(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 ZA(e,t){for(let r of e)if(!Jne(r,{upTo:t}))return r}function Jne(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 Zne(e){return e instanceof HTMLInputElement&&"select"in e}function Go(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Zne(e)&&t&&e.select()}}var QA=Qne();function Qne(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=eR(e,t),e.unshift(t)},remove(t){e=eR(e,t),e[0]?.resume()}}}function eR(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function eoe(e){return e.filter(t=>t.tagName!=="A")}i();import*as Yd from"react";i();import*as rR from"react";var Rr=globalThis?.document?rR.useLayoutEffect:()=>{};var toe=Yd.useId||(()=>{}),roe=0;function Ho(e){let[t,r]=Yd.useState(toe());return Rr(()=>{e||r(n=>n??String(roe++))},[e]),e||(t?`radix-${t}`:"")}i();import*as br from"react";i();i();i();i();var nR=["top","right","bottom","left"];var Fr=Math.min,Gt=Math.max,yl=Math.round,bl=Math.floor,Un=e=>({x:e,y:e}),noe={left:"right",right:"left",bottom:"top",top:"bottom"},ooe={start:"end",end:"start"};function Zd(e,t,r){return Gt(e,Fr(t,r))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function Mi(e){return e.split("-")[1]}function Qd(e){return e==="x"?"y":"x"}function e1(e){return e==="y"?"height":"width"}function Kn(e){return["top","bottom"].includes(pn(e))?"y":"x"}function t1(e){return Qd(Kn(e))}function oR(e,t,r){r===void 0&&(r=!1);let n=Mi(e),o=t1(e),a=e1(o),s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=vl(s)),[s,vl(s)]}function iR(e){let t=vl(e);return[Jd(e),t,Jd(t)]}function Jd(e){return e.replace(/start|end/g,t=>ooe[t])}function ioe(e,t,r){let n=["left","right"],o=["right","left"],a=["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?a:s;default:return[]}}function aR(e,t,r,n){let o=Mi(e),a=ioe(pn(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Jd)))),a}function vl(e){return e.replace(/left|right|bottom|top/g,t=>noe[t])}function aoe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vg(e){return typeof e!="number"?aoe(e):{top:e,right:e,bottom:e,left:e}}function Ii(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 sR(e,t,r){let{reference:n,floating:o}=e,a=Kn(t),s=t1(t),u=e1(s),l=pn(t),c=a==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,m=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]-=m*(r&&c?-1:1);break;case"end":g[s]+=m*(r&&c?-1:1);break}return g}var cR=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,u=a.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}=sR(c,n,l),m=n,g={},v=0;for(let h=0;h<u.length;h++){let{name:b,fn:y}=u[h],{x,y:w,data:S,reset:E}=await y({x:p,y:d,initialPlacement:n,placement:m,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,d=w??d,g={...g,[b]:{...g[b],...S}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:d}=sR(c,m,l)),h=-1)}return{x:p,y:d,placement:m,strategy:o,middlewareData:g}};async function Ts(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:a,rects:s,elements:u,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=fn(t,e),v=Vg(g),b=u[m?d==="floating"?"reference":"floating":d],y=Ii(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.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(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Ii(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-E.top+v.top)/S.y,bottom:(E.bottom-y.bottom+v.bottom)/S.y,left:(y.left-E.left+v.left)/S.x,right:(E.right-y.right+v.right)/S.x}}var fR=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:s,elements:u,middlewareData:l}=t,{element:c,padding:p=0}=fn(e,t)||{};if(c==null)return{};let d=Vg(p),m={x:r,y:n},g=t1(o),v=e1(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[g]-m[g]-a.floating[v],E=m[g]-a.reference[g],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=D?D[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(D)))&&(P=u.floating[w]||a.floating[v]);let R=S/2-E/2,F=P/2-h[v]/2-1,M=Fr(d[y],F),H=Fr(d[x],F),I=M,L=P-h[v]-H,N=P/2-h[v]/2+R,$=Zd(I,N,L),te=!l.arrow&&Mi(o)!=null&&N!==$&&a.reference[v]/2-(N<I?M:H)-h[v]/2<0,K=te?N<I?N-I:N-L:0;return{[g]:m[g]+K,data:{[g]:$,centerOffset:N-$-K,...te&&{alignmentOffset:K}},reset:te}}});var pR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:a,rects:s,initialPlacement:u,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=fn(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let y=pn(o),x=Kn(u),w=pn(u)===u,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=m||(w||!h?[vl(u)]:iR(u)),D=v!=="none";!m&&D&&E.push(...aR(u,h,v,S));let P=[u,...E],R=await Ts(t,b),F=[],M=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&F.push(R[y]),d){let N=oR(o,s,S);F.push(R[N[0]],R[N[1]])}if(M=[...M,{placement:o,overflows:F}],!F.every(N=>N<=0)){var H,I;let N=(((H=a.flip)==null?void 0:H.index)||0)+1,$=P[N];if($)return{data:{index:N,overflows:M},reset:{placement:$}};let te=(I=M.filter(K=>K.overflows[0]<=0).sort((K,re)=>K.overflows[1]-re.overflows[1])[0])==null?void 0:I.placement;if(!te)switch(g){case"bestFit":{var L;let K=(L=M.filter(re=>{if(D){let G=Kn(re.placement);return G===x||G==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(G=>G>0).reduce((G,ae)=>G+ae,0)]).sort((re,G)=>re[1]-G[1])[0])==null?void 0:L[0];K&&(te=K);break}case"initialPlacement":te=u;break}if(o!==te)return{reset:{placement:te}}}return{}}}};function uR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lR(e){return nR.some(t=>e[t]>=0)}var dR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=fn(e,t);switch(n){case"referenceHidden":{let a=await Ts(t,{...o,elementContext:"reference"}),s=uR(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lR(s)}}}case"escaped":{let a=await Ts(t,{...o,altBoundary:!0}),s=uR(a,r.floating);return{data:{escapedOffsets:s,escaped:lR(s)}}}default:return{}}}}};async function soe(e,t){let{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=pn(r),u=Mi(r),l=Kn(r)==="y",c=["left","top"].includes(s)?-1:1,p=a&&l?-1:1,d=fn(t,e),{mainAxis:m,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:m*c}:{x:m*c,y:g*p}}var mR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:a,placement:s,middlewareData:u}=t,l=await soe(t,e);return s===((r=u.offset)==null?void 0:r.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},hR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=fn(e,t),c={x:r,y:n},p=await Ts(t,l),d=Kn(pn(o)),m=Qd(d),g=c[m],v=c[d];if(a){let b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=g+p[b],w=g-p[y];g=Zd(x,g,w)}if(s){let b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=v+p[b],w=v-p[y];v=Zd(x,v,w)}let h=u.fn({...t,[m]:g,[d]:v});return{...h,data:{x:h.x-r,y:h.y-n}}}}},gR=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=fn(e,t),p={x:r,y:n},d=Kn(o),m=Qd(d),g=p[m],v=p[d],h=fn(u,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){let w=m==="y"?"height":"width",S=a.reference[m]-a.floating[w]+b.mainAxis,E=a.reference[m]+a.reference[w]-b.mainAxis;g<S?g=S:g>E&&(g=E)}if(c){var y,x;let w=m==="y"?"width":"height",S=["top","left"].includes(pn(o)),E=a.reference[d]-a.floating[w]+(S&&((y=s.offset)==null?void 0:y[d])||0)+(S?0:b.crossAxis),D=a.reference[d]+a.reference[w]+(S?0:((x=s.offset)==null?void 0:x[d])||0)-(S?b.crossAxis:0);v<E?v=E:v>D&&(v=D)}return{[m]:g,[d]:v}}}},vR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...u}=fn(e,t),l=await Ts(t,u),c=pn(r),p=Mi(r),d=Kn(r)==="y",{width:m,height:g}=n.floating,v,h;c==="top"||c==="bottom"?(v=c,h=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=c,v=p==="end"?"top":"bottom");let b=g-l.top-l.bottom,y=m-l.left-l.right,x=Fr(g-l[v],b),w=Fr(m-l[h],y),S=!t.middlewareData.shift,E=x,D=w;if(d?D=p||S?Fr(w,y):y:E=p||S?Fr(x,b):b,S&&!p){let R=Gt(l.left,0),F=Gt(l.right,0),M=Gt(l.top,0),H=Gt(l.bottom,0);d?D=m-2*(R!==0||F!==0?R+F:Gt(l.left,l.right)):E=g-2*(M!==0||H!==0?M+H:Gt(l.top,l.bottom))}await s({...t,availableWidth:D,availableHeight:E});let P=await o.getDimensions(a.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};i();function Ni(e){return bR(e)?(e.nodeName||"").toLowerCase():"#document"}function rr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(bR(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bR(e){return e instanceof Node||e instanceof rr(e).Node}function Or(e){return e instanceof Element||e instanceof rr(e).Element}function Ur(e){return e instanceof HTMLElement||e instanceof rr(e).HTMLElement}function yR(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rr(e).ShadowRoot}function As(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function CR(e){return["table","td","th"].includes(Ni(e))}function Cl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function r1(e){let t=n1(),r=Or(e)?Br(e):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 xR(e){let t=qn(e);for(;Ur(t)&&!Vi(t);){if(r1(t))return t;if(Cl(t))return null;t=qn(t)}return null}function n1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vi(e){return["html","body","#document"].includes(Ni(e))}function Br(e){return rr(e).getComputedStyle(e)}function xl(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(Ni(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yR(e)&&e.host||dn(e);return yR(t)?t.host:t}function wR(e){let t=qn(e);return Vi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ur(t)&&As(t)?t:wR(t)}function ki(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=wR(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=rr(o);return a?t.concat(s,s.visualViewport||[],As(o)?o:[],s.frameElement&&r?ki(s.frameElement):[]):t.concat(o,ki(o,[],r))}function ER(e){let t=Br(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=Ur(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,u=yl(r)!==a||yl(n)!==s;return u&&(r=a,n=s),{width:r,height:n,$:u}}function $g(e){return Or(e)?e:e.contextElement}function Rs(e){let t=$g(e);if(!Ur(t))return Un(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ER(t),s=(a?yl(r.width):r.width)/n,u=(a?yl(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}var uoe=Un(0);function PR(e){let t=rr(e);return!n1()||!t.visualViewport?uoe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function loe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==rr(e)?!1:t}function Li(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),a=$g(e),s=Un(1);t&&(n?Or(n)&&(s=Rs(n)):s=Rs(e));let u=loe(a,r,n)?PR(a):Un(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(a){let m=rr(a),g=n&&Or(n)?rr(n):n,v=m,h=v.frameElement;for(;h&&n&&g!==v;){let b=Rs(h),y=h.getBoundingClientRect(),x=Br(h),w=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,S=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,d*=b.y,l+=w,c+=S,v=rr(h),h=v.frameElement}}return Ii({width:p,height:d,x:l,y:c})}function coe(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a=o==="fixed",s=dn(n),u=t?Cl(t.floating):!1;if(n===s||u&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Un(1),p=Un(0),d=Ur(n);if((d||!d&&!a)&&((Ni(n)!=="body"||As(s))&&(l=xl(n)),Ur(n))){let m=Li(n);c=Rs(n),p.x=m.x+n.clientLeft,p.y=m.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 foe(e){return Array.from(e.getClientRects())}function TR(e){return Li(dn(e)).left+xl(e).scrollLeft}function poe(e){let t=dn(e),r=xl(e),n=e.ownerDocument.body,o=Gt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Gt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+TR(e),u=-r.scrollTop;return Br(n).direction==="rtl"&&(s+=Gt(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:u}}function doe(e,t){let r=rr(e),n=dn(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,u=0,l=0;if(o){a=o.width,s=o.height;let c=n1();(!c||c&&t==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:u,y:l}}function moe(e,t){let r=Li(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ur(e)?Rs(e):Un(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:u,x:l,y:c}}function SR(e,t,r){let n;if(t==="viewport")n=doe(e,r);else if(t==="document")n=poe(dn(e));else if(Or(t))n=moe(t,r);else{let o=PR(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Ii(n)}function AR(e,t){let r=qn(e);return r===t||!Or(r)||Vi(r)?!1:Br(r).position==="fixed"||AR(r,t)}function hoe(e,t){let r=t.get(e);if(r)return r;let n=ki(e,[],!1).filter(u=>Or(u)&&Ni(u)!=="body"),o=null,a=Br(e).position==="fixed",s=a?qn(e):e;for(;Or(s)&&!Vi(s);){let u=Br(s),l=r1(s);!l&&u.position==="fixed"&&(o=null),(a?!l&&!o:!l&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||As(s)&&!l&&AR(e,s))?n=n.filter(p=>p!==s):o=u,s=qn(s)}return t.set(e,n),n}function goe(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[...r==="clippingAncestors"?Cl(t)?[]:hoe(t,this._c):[].concat(r),n],u=s[0],l=s.reduce((c,p)=>{let d=SR(t,p,o);return c.top=Gt(d.top,c.top),c.right=Fr(d.right,c.right),c.bottom=Fr(d.bottom,c.bottom),c.left=Gt(d.left,c.left),c},SR(t,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function voe(e){let{width:t,height:r}=ER(e);return{width:t,height:r}}function yoe(e,t,r){let n=Ur(t),o=dn(t),a=r==="fixed",s=Li(e,!0,a,t),u={scrollLeft:0,scrollTop:0},l=Un(0);if(n||!n&&!a)if((Ni(t)!=="body"||As(o))&&(u=xl(t)),n){let d=Li(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=TR(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 Lg(e){return Br(e).position==="static"}function DR(e,t){return!Ur(e)||Br(e).position==="fixed"?null:t?t(e):e.offsetParent}function RR(e,t){let r=rr(e);if(Cl(e))return r;if(!Ur(e)){let o=qn(e);for(;o&&!Vi(o);){if(Or(o)&&!Lg(o))return o;o=qn(o)}return r}let n=DR(e,t);for(;n&&CR(n)&&Lg(n);)n=DR(n,t);return n&&Vi(n)&&Lg(n)&&!r1(n)?r:n||xR(e)||r}var boe=async function(e){let t=this.getOffsetParent||RR,r=this.getDimensions,n=await r(e.floating);return{reference:yoe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Coe(e){return Br(e).direction==="rtl"}var FR={convertOffsetParentRelativeRectToViewportRelativeRect:coe,getDocumentElement:dn,getClippingRect:goe,getOffsetParent:RR,getElementRects:boe,getClientRects:foe,getDimensions:voe,getScale:Rs,isElement:Or,isRTL:Coe};function xoe(e,t){let r=null,n,o=dn(e);function a(){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),a();let{left:c,top:p,width:d,height:m}=e.getBoundingClientRect();if(u||t(),!d||!m)return;let g=bl(p),v=bl(o.clientWidth-(c+d)),h=bl(o.clientHeight-(p+m)),b=bl(c),x={rootMargin:-g+"px "+-v+"px "+-h+"px "+-b+"px",threshold:Gt(0,Fr(1,l))||1},w=!0;function S(E){let D=E[0].intersectionRatio;if(D!==l){if(!w)return s();D?s(!1,D):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,x)}r.observe(e)}return s(!0),a}function zg(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=$g(e),p=o||a?[...c?ki(c):[],...ki(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});let d=c&&u?xoe(c,r):null,m=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Li(e):null;l&&b();function b(){let y=Li(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&r(),h=y,v=requestAnimationFrame(b)}return r(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),d?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}var OR=mR;var BR=hR,MR=pR,IR=vR,kR=dR,Gg=fR;var NR=gR,Hg=(e,t,r)=>{let n=new Map,o={platform:FR,...r},a={...o.platform,_c:n};return cR(e,t,{...o,platform:a})};import*as it from"react";import{useLayoutEffect as woe,useEffect as Soe}from"react";import*as $R from"react-dom";var o1=typeof document<"u"?woe:Soe;function i1(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(!i1(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 a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!i1(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function zR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VR(e,t){let r=zR(e);return Math.round(t*r)/r}function LR(e){let t=it.useRef(e);return o1(()=>{t.current=e}),t}function GR(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:l,open:c}=e,[p,d]=it.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=it.useState(n);i1(m,n)||g(n);let[v,h]=it.useState(null),[b,y]=it.useState(null),x=it.useCallback(K=>{K!==D.current&&(D.current=K,h(K))},[]),w=it.useCallback(K=>{K!==P.current&&(P.current=K,y(K))},[]),S=a||v,E=s||b,D=it.useRef(null),P=it.useRef(null),R=it.useRef(p),F=l!=null,M=LR(l),H=LR(o),I=it.useCallback(()=>{if(!D.current||!P.current)return;let K={placement:t,strategy:r,middleware:m};H.current&&(K.platform=H.current),Hg(D.current,P.current,K).then(re=>{let G={...re,isPositioned:!0};L.current&&!i1(R.current,G)&&(R.current=G,$R.flushSync(()=>{d(G)}))})},[m,t,r,H]);o1(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(K=>({...K,isPositioned:!1})))},[c]);let L=it.useRef(!1);o1(()=>(L.current=!0,()=>{L.current=!1}),[]),o1(()=>{if(S&&(D.current=S),E&&(P.current=E),S&&E){if(M.current)return M.current(S,E,I);I()}},[S,E,I,M,F]);let N=it.useMemo(()=>({reference:D,floating:P,setReference:x,setFloating:w}),[x,w]),$=it.useMemo(()=>({reference:S,floating:E}),[S,E]),te=it.useMemo(()=>{let K={position:r,left:0,top:0};if(!$.floating)return K;let re=VR($.floating,p.x),G=VR($.floating,p.y);return u?{...K,transform:"translate("+re+"px, "+G+"px)",...zR($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:G}},[r,u,$.floating,p.x,p.y]);return it.useMemo(()=>({...p,update:I,refs:N,elements:$,floatingStyles:te}),[p,I,N,$,te])}var Doe=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?Gg({element:n.current,padding:o}).fn(r):{}:n?Gg({element:n,padding:o}).fn(r):{}}}},HR=(e,t)=>({...OR(e),options:[e,t]}),jR=(e,t)=>({...BR(e),options:[e,t]}),_R=(e,t)=>({...NR(e),options:[e,t]}),WR=(e,t)=>({...MR(e),options:[e,t]}),UR=(e,t)=>({...IR(e),options:[e,t]});var KR=(e,t)=>({...kR(e),options:[e,t]});var qR=(e,t)=>({...Doe(e),options:[e,t]});i();import*as YR from"react";import{jsx as XR}from"react/jsx-runtime";var Eoe="Arrow",JR=YR.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return XR(Ue.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:XR("polygon",{points:"0,0 30,0 15,10"})})});JR.displayName=Eoe;var ZR=JR;i();import*as Xn from"react";import{jsx as Toe}from"react/jsx-runtime";function QR(e,t=[]){let r=[];function n(a,s){let u=Xn.createContext(s),l=r.length;r=[...r,s];function c(d){let{scope:m,children:g,...v}=d,h=m?.[e][l]||u,b=Xn.useMemo(()=>v,Object.values(v));return Toe(h.Provider,{value:b,children:g})}function p(d,m){let g=m?.[e][l]||u,v=Xn.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,p]}let o=()=>{let a=r.map(s=>Xn.createContext(s));return function(u){let l=u?.[e]||a;return Xn.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,Aoe(o,...t)]}function Aoe(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return Xn.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}i();import*as eF from"react";function tF(e){let[t,r]=eF.useState(void 0);return Rr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let a=o[0],s,u;if("borderBoxSize"in a){let l=a.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}import{jsx as $i}from"react/jsx-runtime";var jg="Popper",[rF,_g]=QR(jg),[Roe,nF]=rF(jg),oF=e=>{let{__scopePopper:t,children:r}=e,[n,o]=br.useState(null);return $i(Roe,{scope:t,anchor:n,onAnchorChange:o,children:r})};oF.displayName=jg;var iF="PopperAnchor",aF=br.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=nF(iF,r),s=br.useRef(null),u=Je(t,s);return br.useEffect(()=>{a.onAnchorChange(n?.current||s.current)}),n?null:$i(Ue.div,{...o,ref:u})});aF.displayName=iF;var Wg="PopperContent",[Foe,Ooe]=rF(Wg),sF=br.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=nF(Wg,r),[y,x]=br.useState(null),w=Je(t,j=>x(j)),[S,E]=br.useState(null),D=tF(S),P=D?.width??0,R=D?.height??0,F=n+(a!=="center"?"-"+a:""),M=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},H=Array.isArray(c)?c:[c],I=H.length>0,L={padding:M,boundary:H.filter(Moe),altBoundary:I},{refs:N,floatingStyles:$,placement:te,isPositioned:K,middlewareData:re}=GR({strategy:"fixed",placement:F,whileElementsMounted:(...j)=>zg(...j,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[HR({mainAxis:o+R,alignmentAxis:s}),l&&jR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?_R():void 0,...L}),l&&WR({...L}),UR({...L,apply:({elements:j,rects:ue,availableWidth:ie,availableHeight:me})=>{let{width:Ce,height:Se}=ue.reference,Ee=j.floating.style;Ee.setProperty("--radix-popper-available-width",`${ie}px`),Ee.setProperty("--radix-popper-available-height",`${me}px`),Ee.setProperty("--radix-popper-anchor-width",`${Ce}px`),Ee.setProperty("--radix-popper-anchor-height",`${Se}px`)}}),S&&qR({element:S,padding:u}),Ioe({arrowWidth:P,arrowHeight:R}),m&&KR({strategy:"referenceHidden",...L})]}),[G,ae]=cF(te),ve=st(v);Rr(()=>{K&&ve?.()},[K,ve]);let de=re.arrow?.x,He=re.arrow?.y,A=re.arrow?.centerOffset!==0,[_,z]=br.useState();return Rr(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),$i("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:K?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(" "),...re.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:$i(Foe,{scope:r,placedSide:G,onArrowChange:E,arrowX:de,arrowY:He,shouldHideArrow:A,children:$i(Ue.div,{"data-side":G,"data-align":ae,...h,ref:w,style:{...h.style,animation:K?void 0:"none"}})})})});sF.displayName=Wg;var uF="PopperArrow",Boe={top:"bottom",right:"left",bottom:"top",left:"right"},lF=br.forwardRef(function(t,r){let{__scopePopper:n,...o}=t,a=Ooe(uF,n),s=Boe[a.placedSide];return $i("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:$i(ZR,{...o,ref:r,style:{...o.style,display:"block"}})})});lF.displayName=uF;function Moe(e){return e!==null}var Ioe=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,u=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=cF(r),d={start:"0%",center:"50%",end:"100%"}[p],m=(o.arrow?.x??0)+u/2,g=(o.arrow?.y??0)+l/2,v="",h="";return c==="bottom"?(v=s?d:`${m}px`,h=`${-l}px`):c==="top"?(v=s?d:`${m}px`,h=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?d:`${g}px`):c==="left"&&(v=`${n.floating.width+l}px`,h=s?d:`${g}px`),{data:{x:v,y:h}}}});function cF(e){let[t,r="center"]=e.split("-");return[t,r]}var Ug=oF,fF=aF,pF=sF,dF=lF;i();import*as a1 from"react";import Noe from"react-dom";import{jsx as Voe}from"react/jsx-runtime";var Loe="Portal",Kg=a1.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=a1.useState(!1);Rr(()=>a(!0),[]);let s=r||o&&globalThis?.document?.body;return s?Noe.createPortal(Voe(Ue.div,{...n,ref:t}),s):null});Kg.displayName=Loe;i();import*as nr from"react";import*as mF from"react";function $oe(e,t){return mF.useReducer((r,n)=>t[r][n]??r,e)}var Fs=e=>{let{present:t,children:r}=e,n=zoe(t),o=typeof r=="function"?r({present:n.isPresent}):nr.Children.only(r),a=Je(n.ref,Goe(o));return typeof r=="function"||n.isPresent?nr.cloneElement(o,{ref:a}):null};Fs.displayName="Presence";function zoe(e){let[t,r]=nr.useState(),n=nr.useRef({}),o=nr.useRef(e),a=nr.useRef("none"),s=e?"mounted":"unmounted",[u,l]=$oe(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return nr.useEffect(()=>{let c=s1(n.current);a.current=u==="mounted"?c:"none"},[u]),Rr(()=>{let c=n.current,p=o.current;if(p!==e){let m=a.current,g=s1(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Rr(()=>{if(t){let c,p=t.ownerDocument.defaultView??window,d=g=>{let h=s1(n.current).includes(g.animationName);if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){let b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=g=>{g.target===t&&(a.current=s1(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:nr.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function s1(e){return e?.animationName||"none"}function Goe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}i();import*as dt from"react";i();import*as Yn from"react";import{jsx as Hoe}from"react/jsx-runtime";function hF(e,t=[]){let r=[];function n(a,s){let u=Yn.createContext(s),l=r.length;r=[...r,s];function c(d){let{scope:m,children:g,...v}=d,h=m?.[e][l]||u,b=Yn.useMemo(()=>v,Object.values(v));return Hoe(h.Provider,{value:b,children:g})}function p(d,m){let g=m?.[e][l]||u,v=Yn.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,p]}let o=()=>{let a=r.map(s=>Yn.createContext(s));return function(u){let l=u?.[e]||a;return Yn.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,joe(o,...t)]}function joe(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return Yn.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}import{jsx as zi}from"react/jsx-runtime";var qg="rovingFocusGroup.onEntryFocus",_oe={bubbles:!1,cancelable:!0},u1="RovingFocusGroup",[Xg,gF,Woe]=Kd(u1),[Uoe,Yg]=hF(u1,[Woe]),[Koe,qoe]=Uoe(u1),vF=dt.forwardRef((e,t)=>zi(Xg.Provider,{scope:e.__scopeRovingFocusGroup,children:zi(Xg.Slot,{scope:e.__scopeRovingFocusGroup,children:zi(Xoe,{...e,ref:t})})}));vF.displayName=u1;var Xoe=dt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...d}=e,m=dt.useRef(null),g=Je(t,m),v=Xd(a),[h=null,b]=gl({prop:s,defaultProp:u,onChange:l}),[y,x]=dt.useState(!1),w=st(c),S=gF(r),E=dt.useRef(!1),[D,P]=dt.useState(0);return dt.useEffect(()=>{let R=m.current;if(R)return R.addEventListener(qg,w),()=>R.removeEventListener(qg,w)},[w]),zi(Koe,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:h,onItemFocus:dt.useCallback(R=>b(R),[b]),onItemShiftTab:dt.useCallback(()=>x(!0),[]),onFocusableItemAdd:dt.useCallback(()=>P(R=>R+1),[]),onFocusableItemRemove:dt.useCallback(()=>P(R=>R-1),[]),children:zi(Ue.div,{tabIndex:y||D===0?-1:0,"data-orientation":n,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{E.current=!0}),onFocus:ye(e.onFocus,R=>{let F=!E.current;if(R.target===R.currentTarget&&F&&!y){let M=new CustomEvent(qg,_oe);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){let H=S().filter(te=>te.focusable),I=H.find(te=>te.active),L=H.find(te=>te.id===h),$=[I,L,...H].filter(Boolean).map(te=>te.ref.current);CF($,p)}}E.current=!1}),onBlur:ye(e.onBlur,()=>x(!1))})})}),yF="RovingFocusGroupItem",bF=dt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,u=Ho(),l=a||u,c=qoe(yF,r),p=c.currentTabStopId===l,d=gF(r),{onFocusableItemAdd:m,onFocusableItemRemove:g}=c;return dt.useEffect(()=>{if(n)return m(),()=>g()},[n,m,g]),zi(Xg.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:zi(Ue.span,{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 h=Zoe(v,c.orientation,c.dir);if(h!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=d().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();let x=y.indexOf(v.currentTarget);y=c.loop?Qoe(y,x+1):y.slice(x+1)}setTimeout(()=>CF(y))}})})})});bF.displayName=yF;var Yoe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Joe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Zoe(e,t,r){let n=Joe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Yoe[n]}function CF(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Qoe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var xF=vF,wF=bF;i();var tie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Os=new WeakMap,l1=new WeakMap,c1={},Jg=0,SF=function(e){return e&&(e.host||SF(e.parentNode))},rie=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=SF(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})},nie=function(e,t,r,n){var o=rie(t,Array.isArray(e)?e:[e]);c1[r]||(c1[r]=new WeakMap);var a=c1[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(m){if(u.has(m))p(m);else try{var g=m.getAttribute(n),v=g!==null&&g!=="false",h=(Os.get(m)||0)+1,b=(a.get(m)||0)+1;Os.set(m,h),a.set(m,b),s.push(m),h===1&&v&&l1.set(m,!0),b===1&&m.setAttribute(r,"true"),v||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),u.clear(),Jg++,function(){s.forEach(function(d){var m=Os.get(d)-1,g=a.get(d)-1;Os.set(d,m),a.set(d,g),m||(l1.has(d)||d.removeAttribute(n),l1.delete(d)),g||d.removeAttribute(r)}),Jg--,Jg||(Os=new WeakMap,Os=new WeakMap,l1=new WeakMap,c1={})}},DF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||tie(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),nie(n,o,r,"aria-hidden")):function(){return null}};i();i();i();var mn=function(){return mn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},mn.apply(this,arguments)};function EF(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 PF(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}import*as h1 from"react";i();import*as Ft from"react";i();var Gi="right-scroll-bar-position",Hi="width-before-scroll-bar",Zg="with-scroll-bars-hidden",Qg="--removed-body-scroll-bar-size";i();i();function f1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}i();import{useState as oie}from"react";function TF(e,t){var r=oie(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}i();import*as p1 from"react";var iie=typeof window<"u"?p1.useLayoutEffect:p1.useEffect,AF=new WeakMap;function e3(e,t){var r=TF(t||null,function(n){return e.forEach(function(o){return f1(o,n)})});return iie(function(){var n=AF.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(u){a.has(u)||f1(u,null)}),a.forEach(function(u){o.has(u)||f1(u,s)})}AF.set(r,e)},[e]),r}i();i();i();var Bs=function(){return Bs=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Bs.apply(this,arguments)};function RF(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}i();function aie(e){return e}function sie(e,t){t===void 0&&(t=aie);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(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(u){return u!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var u=r;r=[],u.forEach(a),s=r}var l=function(){var p=s;s=[],p.forEach(a)},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 t3(e){e===void 0&&(e={});var t=sie(null);return t.options=Bs({async:!0,ssr:!1},e),t}i();import*as FF from"react";var OF=function(e){var t=e.sideCar,r=RF(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 FF.createElement(n,Bs({},r))};OF.isSideCarExport=!0;function r3(e,t){return e.useMedium(t),OF}var d1=t3();var n3=function(){},wl=Ft.forwardRef(function(e,t){var r=Ft.useRef(null),n=Ft.useState({onScrollCapture:n3,onWheelCapture:n3,onTouchMoveCapture:n3}),o=n[0],a=n[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,m=e.sideCar,g=e.noIsolation,v=e.inert,h=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=EF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,E=e3([r,t]),D=mn(mn({},w),o);return Ft.createElement(Ft.Fragment,null,p&&Ft.createElement(S,{sideCar:d1,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:x}),s?Ft.cloneElement(Ft.Children.only(u),mn(mn({},D),{ref:E})):Ft.createElement(y,mn({},D,{className:l,ref:E}),u))});wl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wl.classNames={fullWidth:Hi,zeroRight:Gi};i();i();import*as $e from"react";i();i();import*as Is from"react";i();i();i();import*as IF from"react";i();i();var BF;var MF=function(){if(BF)return BF;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=MF();return t&&e.setAttribute("nonce",t),e}function lie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var o3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uie())&&(lie(t,r),cie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var i3=function(){var e=o3();return function(t,r){IF.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Sl=function(){var e=i3(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};i();var fie={left:0,top:0,right:0,gap:0},a3=function(e){return parseInt(e||"",10)||0},pie=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[a3(r),a3(n),a3(o)]},s3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fie;var t=pie(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 die=Sl(),Ms="data-scroll-locked",mie=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,u=e.gap;return r===void 0&&(r="margin"),`
|
|
2084
|
+
`,NA=({placement:e="left",align:t="top",gap:r="1.5rem",item:n,children:o,...a})=>Ene(kA,{...a,children:[(0,IA.isNotNil)(n)?MA(Dne,{align:t,gap:r,placement:e,children:n}):null,MA(Sne,{align:t,children:o})]});NA.displayName="MediaObject_VHS";i();i();import*as ut from"react";i();function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e?.(o),r===!1||!o.defaultPrevented)return t?.(o)}}i();import*as VA from"react";function Pne(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function Oi(...e){return t=>e.forEach(r=>Pne(r,t))}function Je(...e){return VA.useCallback(Oi(...e),e)}i();import*as _n from"react";import{jsx as Tne}from"react/jsx-runtime";function Wd(e,t=[]){let r=[];function n(a,s){let u=_n.createContext(s),l=r.length;r=[...r,s];let c=d=>{let{scope:m,children:g,...v}=d,h=m?.[e]?.[l]||u,b=_n.useMemo(()=>v,Object.values(v));return Tne(h.Provider,{value:b,children:g})};c.displayName=a+"Provider";function p(d,m){let g=m?.[e]?.[l]||u,v=_n.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return[c,p]}let o=()=>{let a=r.map(s=>_n.createContext(s));return function(u){let l=u?.[e]||a;return _n.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,Ane(o,...t)]}function Ane(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return _n.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}i();import*as $o from"react";i();import*as Ps from"react";function st(e){let t=Ps.useRef(e);return Ps.useEffect(()=>{t.current=e}),Ps.useMemo(()=>(...r)=>t.current?.(...r),[])}function gl({prop:e,defaultProp:t,onChange:r=()=>{}}){let[n,o]=Rne({defaultProp:t,onChange:r}),a=e!==void 0,s=a?e:n,u=st(r),l=$o.useCallback(c=>{if(a){let d=typeof c=="function"?c(e):c;d!==e&&u(d)}else o(c)},[a,e,o,u]);return[s,l]}function Rne({defaultProp:e,onChange:t}){let r=$o.useState(e),[n]=r,o=$o.useRef(n),a=st(t);return $o.useEffect(()=>{o.current!==n&&(a(n),o.current=n)},[n,o,a]),r}i();import*as LA from"react";import*as $A from"react-dom";i();import*as wt from"react";import{Fragment as Fne,jsx as Ag}from"react/jsx-runtime";var zo=wt.forwardRef((e,t)=>{let{children:r,...n}=e,o=wt.Children.toArray(r),a=o.find(Bne);if(a){let s=a.props.children,u=o.map(l=>l===a?wt.Children.count(s)>1?wt.Children.only(null):wt.isValidElement(s)?s.props.children:null:l);return Ag(Rg,{...n,ref:t,children:wt.isValidElement(s)?wt.cloneElement(s,void 0,u):null})}return Ag(Rg,{...n,ref:t,children:r})});zo.displayName="Slot";var Rg=wt.forwardRef((e,t)=>{let{children:r,...n}=e;if(wt.isValidElement(r)){let o=Ine(r);return wt.cloneElement(r,{...Mne(n,r.props),ref:t?Oi(t,o):o})}return wt.Children.count(r)>1?wt.Children.only(null):null});Rg.displayName="SlotClone";var One=({children:e})=>Ag(Fne,{children:e});function Bne(e){return wt.isValidElement(e)&&e.type===One}function Mne(e,t){let r={...t};for(let n in t){let o=e[n],a=t[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...u)=>{a(...u),o(...u)}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}function Ine(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}import{jsx as kne}from"react/jsx-runtime";var Nne=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ue=Nne.reduce((e,t)=>{let r=LA.forwardRef((n,o)=>{let{asChild:a,...s}=n,u=a?zo:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),kne(u,{...s,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ud(e,t){e&&$A.flushSync(()=>e.dispatchEvent(t))}i();import*as oe from"react";i();import Bi from"react";i();import*as Wn from"react";import{jsx as Vne}from"react/jsx-runtime";function zA(e,t=[]){let r=[];function n(a,s){let u=Wn.createContext(s),l=r.length;r=[...r,s];function c(d){let{scope:m,children:g,...v}=d,h=m?.[e][l]||u,b=Wn.useMemo(()=>v,Object.values(v));return Vne(h.Provider,{value:b,children:g})}function p(d,m){let g=m?.[e][l]||u,v=Wn.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,p]}let o=()=>{let a=r.map(s=>Wn.createContext(s));return function(u){let l=u?.[e]||a;return Wn.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,Lne(o,...t)]}function Lne(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return Wn.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}import{jsx as Fg}from"react/jsx-runtime";function Kd(e){let t=e+"CollectionProvider",[r,n]=zA(t),[o,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=g=>{let{scope:v,children:h}=g,b=Bi.useRef(null),y=Bi.useRef(new Map).current;return Fg(o,{scope:v,itemMap:y,collectionRef:b,children:h})};s.displayName=t;let u=e+"CollectionSlot",l=Bi.forwardRef((g,v)=>{let{scope:h,children:b}=g,y=a(u,h),x=Je(v,y.collectionRef);return Fg(zo,{ref:x,children:b})});l.displayName=u;let c=e+"CollectionItemSlot",p="data-radix-collection-item",d=Bi.forwardRef((g,v)=>{let{scope:h,children:b,...y}=g,x=Bi.useRef(null),w=Je(v,x),S=a(c,h);return Bi.useEffect(()=>(S.itemMap.set(x,{ref:x,...y}),()=>void S.itemMap.delete(x))),Fg(zo,{[p]:"",ref:w,children:b})});d.displayName=c;function m(g){let v=a(e+"CollectionConsumer",g);return Bi.useCallback(()=>{let b=v.collectionRef.current;if(!b)return[];let y=Array.from(b.querySelectorAll(`[${p}]`));return Array.from(v.itemMap.values()).sort((S,E)=>y.indexOf(S.ref.current)-y.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:s,Slot:l,ItemSlot:d},m,n]}i();import*as qd from"react";import{jsx as sst}from"react/jsx-runtime";var $ne=qd.createContext(void 0);function Xd(e){let t=qd.useContext($ne);return e||t||"ltr"}i();import*as Ke from"react";i();import*as GA from"react";function HA(e,t=globalThis?.document){let r=st(e);GA.useEffect(()=>{let n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})},[r,t])}import{jsx as WA}from"react/jsx-runtime";var zne="DismissableLayer",Og="dismissableLayer.update",Gne="dismissableLayer.pointerDownOutside",Hne="dismissableLayer.focusOutside",jA,UA=Ke.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bg=Ke.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:s,onDismiss:u,...l}=e,c=Ke.useContext(UA),[p,d]=Ke.useState(null),m=p?.ownerDocument??globalThis?.document,[,g]=Ke.useState({}),v=Je(t,P=>d(P)),h=Array.from(c.layers),[b]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(b),x=p?h.indexOf(p):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,S=x>=y,E=Wne(P=>{let R=P.target,F=[...c.branches].some(M=>M.contains(R));!S||F||(o?.(P),s?.(P),P.defaultPrevented||u?.())},m),D=Une(P=>{let R=P.target;[...c.branches].some(M=>M.contains(R))||(a?.(P),s?.(P),P.defaultPrevented||u?.())},m);return HA(P=>{x===c.layers.size-1&&(n?.(P),!P.defaultPrevented&&u&&(P.preventDefault(),u()))},m),Ke.useEffect(()=>{if(p)return r&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(jA=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(p)),c.layers.add(p),_A(),()=>{r&&c.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=jA)}},[p,m,r,c]),Ke.useEffect(()=>()=>{p&&(c.layers.delete(p),c.layersWithOutsidePointerEventsDisabled.delete(p),_A())},[p,c]),Ke.useEffect(()=>{let P=()=>g({});return document.addEventListener(Og,P),()=>document.removeEventListener(Og,P)},[]),WA(Ue.div,{...l,ref:v,style:{pointerEvents:w?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,D.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,E.onPointerDownCapture)})});Bg.displayName=zne;var jne="DismissableLayerBranch",_ne=Ke.forwardRef((e,t)=>{let r=Ke.useContext(UA),n=Ke.useRef(null),o=Je(t,n);return Ke.useEffect(()=>{let a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),WA(Ue.div,{...e,ref:o})});_ne.displayName=jne;function Wne(e,t=globalThis?.document){let r=st(e),n=Ke.useRef(!1),o=Ke.useRef(()=>{});return Ke.useEffect(()=>{let a=u=>{if(u.target&&!n.current){let c=function(){KA(Gne,r,p,{discrete:!0})};var l=c;let p={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",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Une(e,t=globalThis?.document){let r=st(e),n=Ke.useRef(!1);return Ke.useEffect(()=>{let o=a=>{a.target&&!n.current&&KA(Hne,r,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function _A(){let e=new CustomEvent(Og);document.dispatchEvent(e)}function KA(e,t,r,{discrete:n}){let o=r.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?Ud(o,a):o.dispatchEvent(a)}i();import*as XA from"react";var Mg=0;function YA(){XA.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??qA()),document.body.insertAdjacentElement("beforeend",e[1]??qA()),Mg++,()=>{Mg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mg--}},[])}function qA(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}i();import*as Ar from"react";import{jsx as Kne}from"react/jsx-runtime";var Ig="focusScope.autoFocusOnMount",kg="focusScope.autoFocusOnUnmount",JA={bubbles:!1,cancelable:!0},qne="FocusScope",Ng=Ar.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...s}=e,[u,l]=Ar.useState(null),c=st(o),p=st(a),d=Ar.useRef(null),m=Je(t,h=>l(h)),g=Ar.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Ar.useEffect(()=>{if(n){let x=function(D){if(g.paused||!u)return;let P=D.target;u.contains(P)?d.current=P:Go(d.current,{select:!0})},w=function(D){if(g.paused||!u)return;let P=D.relatedTarget;P!==null&&(u.contains(P)||Go(d.current,{select:!0}))},S=function(D){if(document.activeElement===document.body)for(let R of D)R.removedNodes.length>0&&Go(u)};var h=x,b=w,y=S;document.addEventListener("focusin",x),document.addEventListener("focusout",w);let E=new MutationObserver(S);return u&&E.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",w),E.disconnect()}}},[n,u,g.paused]),Ar.useEffect(()=>{if(u){QA.add(g);let h=document.activeElement;if(!u.contains(h)){let y=new CustomEvent(Ig,JA);u.addEventListener(Ig,c),u.dispatchEvent(y),y.defaultPrevented||(Xne(eoe(tR(u)),{select:!0}),document.activeElement===h&&Go(u))}return()=>{u.removeEventListener(Ig,c),setTimeout(()=>{let y=new CustomEvent(kg,JA);u.addEventListener(kg,p),u.dispatchEvent(y),y.defaultPrevented||Go(h??document.body,{select:!0}),u.removeEventListener(kg,p),QA.remove(g)},0)}}},[u,c,p,g]);let v=Ar.useCallback(h=>{if(!r&&!n||g.paused)return;let b=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(b&&y){let x=h.currentTarget,[w,S]=Yne(x);w&&S?!h.shiftKey&&y===S?(h.preventDefault(),r&&Go(w,{select:!0})):h.shiftKey&&y===w&&(h.preventDefault(),r&&Go(S,{select:!0})):y===x&&h.preventDefault()}},[r,n,g.paused]);return Kne(Ue.div,{tabIndex:-1,...s,ref:m,onKeyDown:v})});Ng.displayName=qne;function Xne(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Go(n,{select:t}),document.activeElement!==r)return}function Yne(e){let t=tR(e),r=ZA(t,e),n=ZA(t.reverse(),e);return[r,n]}function tR(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 ZA(e,t){for(let r of e)if(!Jne(r,{upTo:t}))return r}function Jne(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 Zne(e){return e instanceof HTMLInputElement&&"select"in e}function Go(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Zne(e)&&t&&e.select()}}var QA=Qne();function Qne(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=eR(e,t),e.unshift(t)},remove(t){e=eR(e,t),e[0]?.resume()}}}function eR(e,t){let r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function eoe(e){return e.filter(t=>t.tagName!=="A")}i();import*as Yd from"react";i();import*as rR from"react";var Rr=globalThis?.document?rR.useLayoutEffect:()=>{};var toe=Yd.useId||(()=>{}),roe=0;function Ho(e){let[t,r]=Yd.useState(toe());return Rr(()=>{e||r(n=>n??String(roe++))},[e]),e||(t?`radix-${t}`:"")}i();import*as br from"react";i();i();i();i();var nR=["top","right","bottom","left"];var Fr=Math.min,Gt=Math.max,yl=Math.round,bl=Math.floor,Un=e=>({x:e,y:e}),noe={left:"right",right:"left",bottom:"top",top:"bottom"},ooe={start:"end",end:"start"};function Zd(e,t,r){return Gt(e,Fr(t,r))}function fn(e,t){return typeof e=="function"?e(t):e}function pn(e){return e.split("-")[0]}function Mi(e){return e.split("-")[1]}function Qd(e){return e==="x"?"y":"x"}function e1(e){return e==="y"?"height":"width"}function Kn(e){return["top","bottom"].includes(pn(e))?"y":"x"}function t1(e){return Qd(Kn(e))}function oR(e,t,r){r===void 0&&(r=!1);let n=Mi(e),o=t1(e),a=e1(o),s=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=vl(s)),[s,vl(s)]}function iR(e){let t=vl(e);return[Jd(e),t,Jd(t)]}function Jd(e){return e.replace(/start|end/g,t=>ooe[t])}function ioe(e,t,r){let n=["left","right"],o=["right","left"],a=["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?a:s;default:return[]}}function aR(e,t,r,n){let o=Mi(e),a=ioe(pn(e),r==="start",n);return o&&(a=a.map(s=>s+"-"+o),t&&(a=a.concat(a.map(Jd)))),a}function vl(e){return e.replace(/left|right|bottom|top/g,t=>noe[t])}function aoe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vg(e){return typeof e!="number"?aoe(e):{top:e,right:e,bottom:e,left:e}}function Ii(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 sR(e,t,r){let{reference:n,floating:o}=e,a=Kn(t),s=t1(t),u=e1(s),l=pn(t),c=a==="y",p=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,m=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]-=m*(r&&c?-1:1);break;case"end":g[s]+=m*(r&&c?-1:1);break}return g}var cR=async(e,t,r)=>{let{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:s}=r,u=a.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}=sR(c,n,l),m=n,g={},v=0;for(let h=0;h<u.length;h++){let{name:b,fn:y}=u[h],{x,y:w,data:S,reset:E}=await y({x:p,y:d,initialPlacement:n,placement:m,strategy:o,middlewareData:g,rects:c,platform:s,elements:{reference:e,floating:t}});p=x??p,d=w??d,g={...g,[b]:{...g[b],...S}},E&&v<=50&&(v++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(c=E.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:p,y:d}=sR(c,m,l)),h=-1)}return{x:p,y:d,placement:m,strategy:o,middlewareData:g}};async function Ts(e,t){var r;t===void 0&&(t={});let{x:n,y:o,platform:a,rects:s,elements:u,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=fn(t,e),v=Vg(g),b=u[m?d==="floating"?"reference":"floating":d],y=Ii(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(b)))==null||r?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.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(a.getOffsetParent==null?void 0:a.getOffsetParent(u.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=Ii(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:w,strategy:l}):x);return{top:(y.top-E.top+v.top)/S.y,bottom:(E.bottom-y.bottom+v.bottom)/S.y,left:(y.left-E.left+v.left)/S.x,right:(E.right-y.right+v.right)/S.x}}var fR=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:o,rects:a,platform:s,elements:u,middlewareData:l}=t,{element:c,padding:p=0}=fn(e,t)||{};if(c==null)return{};let d=Vg(p),m={x:r,y:n},g=t1(o),v=e1(g),h=await s.getDimensions(c),b=g==="y",y=b?"top":"left",x=b?"bottom":"right",w=b?"clientHeight":"clientWidth",S=a.reference[v]+a.reference[g]-m[g]-a.floating[v],E=m[g]-a.reference[g],D=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c)),P=D?D[w]:0;(!P||!await(s.isElement==null?void 0:s.isElement(D)))&&(P=u.floating[w]||a.floating[v]);let R=S/2-E/2,F=P/2-h[v]/2-1,M=Fr(d[y],F),H=Fr(d[x],F),I=M,L=P-h[v]-H,N=P/2-h[v]/2+R,$=Zd(I,N,L),te=!l.arrow&&Mi(o)!=null&&N!==$&&a.reference[v]/2-(N<I?M:H)-h[v]/2<0,K=te?N<I?N-I:N-L:0;return{[g]:m[g]+K,data:{[g]:$,centerOffset:N-$-K,...te&&{alignmentOffset:K}},reset:te}}});var pR=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:o,middlewareData:a,rects:s,initialPlacement:u,platform:l,elements:c}=t,{mainAxis:p=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,...b}=fn(e,t);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let y=pn(o),x=Kn(u),w=pn(u)===u,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=m||(w||!h?[vl(u)]:iR(u)),D=v!=="none";!m&&D&&E.push(...aR(u,h,v,S));let P=[u,...E],R=await Ts(t,b),F=[],M=((n=a.flip)==null?void 0:n.overflows)||[];if(p&&F.push(R[y]),d){let N=oR(o,s,S);F.push(R[N[0]],R[N[1]])}if(M=[...M,{placement:o,overflows:F}],!F.every(N=>N<=0)){var H,I;let N=(((H=a.flip)==null?void 0:H.index)||0)+1,$=P[N];if($)return{data:{index:N,overflows:M},reset:{placement:$}};let te=(I=M.filter(K=>K.overflows[0]<=0).sort((K,re)=>K.overflows[1]-re.overflows[1])[0])==null?void 0:I.placement;if(!te)switch(g){case"bestFit":{var L;let K=(L=M.filter(re=>{if(D){let G=Kn(re.placement);return G===x||G==="y"}return!0}).map(re=>[re.placement,re.overflows.filter(G=>G>0).reduce((G,ae)=>G+ae,0)]).sort((re,G)=>re[1]-G[1])[0])==null?void 0:L[0];K&&(te=K);break}case"initialPlacement":te=u;break}if(o!==te)return{reset:{placement:te}}}return{}}}};function uR(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function lR(e){return nR.some(t=>e[t]>=0)}var dR=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...o}=fn(e,t);switch(n){case"referenceHidden":{let a=await Ts(t,{...o,elementContext:"reference"}),s=uR(a,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:lR(s)}}}case"escaped":{let a=await Ts(t,{...o,altBoundary:!0}),s=uR(a,r.floating);return{data:{escapedOffsets:s,escaped:lR(s)}}}default:return{}}}}};async function soe(e,t){let{placement:r,platform:n,elements:o}=e,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),s=pn(r),u=Mi(r),l=Kn(r)==="y",c=["left","top"].includes(s)?-1:1,p=a&&l?-1:1,d=fn(t,e),{mainAxis:m,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:m*c}:{x:m*c,y:g*p}}var mR=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:o,y:a,placement:s,middlewareData:u}=t,l=await soe(t,e);return s===((r=u.offset)==null?void 0:r.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:s}}}}},hR=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...l}=fn(e,t),c={x:r,y:n},p=await Ts(t,l),d=Kn(pn(o)),m=Qd(d),g=c[m],v=c[d];if(a){let b=m==="y"?"top":"left",y=m==="y"?"bottom":"right",x=g+p[b],w=g-p[y];g=Zd(x,g,w)}if(s){let b=d==="y"?"top":"left",y=d==="y"?"bottom":"right",x=v+p[b],w=v-p[y];v=Zd(x,v,w)}let h=u.fn({...t,[m]:g,[d]:v});return{...h,data:{x:h.x-r,y:h.y-n}}}}},gR=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:o,rects:a,middlewareData:s}=t,{offset:u=0,mainAxis:l=!0,crossAxis:c=!0}=fn(e,t),p={x:r,y:n},d=Kn(o),m=Qd(d),g=p[m],v=p[d],h=fn(u,t),b=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){let w=m==="y"?"height":"width",S=a.reference[m]-a.floating[w]+b.mainAxis,E=a.reference[m]+a.reference[w]-b.mainAxis;g<S?g=S:g>E&&(g=E)}if(c){var y,x;let w=m==="y"?"width":"height",S=["top","left"].includes(pn(o)),E=a.reference[d]-a.floating[w]+(S&&((y=s.offset)==null?void 0:y[d])||0)+(S?0:b.crossAxis),D=a.reference[d]+a.reference[w]+(S?0:((x=s.offset)==null?void 0:x[d])||0)-(S?b.crossAxis:0);v<E?v=E:v>D&&(v=D)}return{[m]:g,[d]:v}}}},vR=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){let{placement:r,rects:n,platform:o,elements:a}=t,{apply:s=()=>{},...u}=fn(e,t),l=await Ts(t,u),c=pn(r),p=Mi(r),d=Kn(r)==="y",{width:m,height:g}=n.floating,v,h;c==="top"||c==="bottom"?(v=c,h=p===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(h=c,v=p==="end"?"top":"bottom");let b=g-l.top-l.bottom,y=m-l.left-l.right,x=Fr(g-l[v],b),w=Fr(m-l[h],y),S=!t.middlewareData.shift,E=x,D=w;if(d?D=p||S?Fr(w,y):y:E=p||S?Fr(x,b):b,S&&!p){let R=Gt(l.left,0),F=Gt(l.right,0),M=Gt(l.top,0),H=Gt(l.bottom,0);d?D=m-2*(R!==0||F!==0?R+F:Gt(l.left,l.right)):E=g-2*(M!==0||H!==0?M+H:Gt(l.top,l.bottom))}await s({...t,availableWidth:D,availableHeight:E});let P=await o.getDimensions(a.floating);return m!==P.width||g!==P.height?{reset:{rects:!0}}:{}}}};i();function Ni(e){return bR(e)?(e.nodeName||"").toLowerCase():"#document"}function rr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(bR(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function bR(e){return e instanceof Node||e instanceof rr(e).Node}function Or(e){return e instanceof Element||e instanceof rr(e).Element}function Ur(e){return e instanceof HTMLElement||e instanceof rr(e).HTMLElement}function yR(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof rr(e).ShadowRoot}function As(e){let{overflow:t,overflowX:r,overflowY:n,display:o}=Br(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function CR(e){return["table","td","th"].includes(Ni(e))}function Cl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function r1(e){let t=n1(),r=Or(e)?Br(e):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 xR(e){let t=qn(e);for(;Ur(t)&&!Vi(t);){if(r1(t))return t;if(Cl(t))return null;t=qn(t)}return null}function n1(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Vi(e){return["html","body","#document"].includes(Ni(e))}function Br(e){return rr(e).getComputedStyle(e)}function xl(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qn(e){if(Ni(e)==="html")return e;let t=e.assignedSlot||e.parentNode||yR(e)&&e.host||dn(e);return yR(t)?t.host:t}function wR(e){let t=qn(e);return Vi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ur(t)&&As(t)?t:wR(t)}function ki(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=wR(e),a=o===((n=e.ownerDocument)==null?void 0:n.body),s=rr(o);return a?t.concat(s,s.visualViewport||[],As(o)?o:[],s.frameElement&&r?ki(s.frameElement):[]):t.concat(o,ki(o,[],r))}function ER(e){let t=Br(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,o=Ur(e),a=o?e.offsetWidth:r,s=o?e.offsetHeight:n,u=yl(r)!==a||yl(n)!==s;return u&&(r=a,n=s),{width:r,height:n,$:u}}function $g(e){return Or(e)?e:e.contextElement}function Rs(e){let t=$g(e);if(!Ur(t))return Un(1);let r=t.getBoundingClientRect(),{width:n,height:o,$:a}=ER(t),s=(a?yl(r.width):r.width)/n,u=(a?yl(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}var uoe=Un(0);function PR(e){let t=rr(e);return!n1()||!t.visualViewport?uoe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function loe(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==rr(e)?!1:t}function Li(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),a=$g(e),s=Un(1);t&&(n?Or(n)&&(s=Rs(n)):s=Rs(e));let u=loe(a,r,n)?PR(a):Un(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(a){let m=rr(a),g=n&&Or(n)?rr(n):n,v=m,h=v.frameElement;for(;h&&n&&g!==v;){let b=Rs(h),y=h.getBoundingClientRect(),x=Br(h),w=y.left+(h.clientLeft+parseFloat(x.paddingLeft))*b.x,S=y.top+(h.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,d*=b.y,l+=w,c+=S,v=rr(h),h=v.frameElement}}return Ii({width:p,height:d,x:l,y:c})}function coe(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e,a=o==="fixed",s=dn(n),u=t?Cl(t.floating):!1;if(n===s||u&&a)return r;let l={scrollLeft:0,scrollTop:0},c=Un(1),p=Un(0),d=Ur(n);if((d||!d&&!a)&&((Ni(n)!=="body"||As(s))&&(l=xl(n)),Ur(n))){let m=Li(n);c=Rs(n),p.x=m.x+n.clientLeft,p.y=m.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 foe(e){return Array.from(e.getClientRects())}function TR(e){return Li(dn(e)).left+xl(e).scrollLeft}function poe(e){let t=dn(e),r=xl(e),n=e.ownerDocument.body,o=Gt(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=Gt(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+TR(e),u=-r.scrollTop;return Br(n).direction==="rtl"&&(s+=Gt(t.clientWidth,n.clientWidth)-o),{width:o,height:a,x:s,y:u}}function doe(e,t){let r=rr(e),n=dn(e),o=r.visualViewport,a=n.clientWidth,s=n.clientHeight,u=0,l=0;if(o){a=o.width,s=o.height;let c=n1();(!c||c&&t==="fixed")&&(u=o.offsetLeft,l=o.offsetTop)}return{width:a,height:s,x:u,y:l}}function moe(e,t){let r=Li(e,!0,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft,a=Ur(e)?Rs(e):Un(1),s=e.clientWidth*a.x,u=e.clientHeight*a.y,l=o*a.x,c=n*a.y;return{width:s,height:u,x:l,y:c}}function SR(e,t,r){let n;if(t==="viewport")n=doe(e,r);else if(t==="document")n=poe(dn(e));else if(Or(t))n=moe(t,r);else{let o=PR(e);n={...t,x:t.x-o.x,y:t.y-o.y}}return Ii(n)}function AR(e,t){let r=qn(e);return r===t||!Or(r)||Vi(r)?!1:Br(r).position==="fixed"||AR(r,t)}function hoe(e,t){let r=t.get(e);if(r)return r;let n=ki(e,[],!1).filter(u=>Or(u)&&Ni(u)!=="body"),o=null,a=Br(e).position==="fixed",s=a?qn(e):e;for(;Or(s)&&!Vi(s);){let u=Br(s),l=r1(s);!l&&u.position==="fixed"&&(o=null),(a?!l&&!o:!l&&u.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||As(s)&&!l&&AR(e,s))?n=n.filter(p=>p!==s):o=u,s=qn(s)}return t.set(e,n),n}function goe(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e,s=[...r==="clippingAncestors"?Cl(t)?[]:hoe(t,this._c):[].concat(r),n],u=s[0],l=s.reduce((c,p)=>{let d=SR(t,p,o);return c.top=Gt(d.top,c.top),c.right=Fr(d.right,c.right),c.bottom=Fr(d.bottom,c.bottom),c.left=Gt(d.left,c.left),c},SR(t,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function voe(e){let{width:t,height:r}=ER(e);return{width:t,height:r}}function yoe(e,t,r){let n=Ur(t),o=dn(t),a=r==="fixed",s=Li(e,!0,a,t),u={scrollLeft:0,scrollTop:0},l=Un(0);if(n||!n&&!a)if((Ni(t)!=="body"||As(o))&&(u=xl(t)),n){let d=Li(t,!0,a,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=TR(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 Lg(e){return Br(e).position==="static"}function DR(e,t){return!Ur(e)||Br(e).position==="fixed"?null:t?t(e):e.offsetParent}function RR(e,t){let r=rr(e);if(Cl(e))return r;if(!Ur(e)){let o=qn(e);for(;o&&!Vi(o);){if(Or(o)&&!Lg(o))return o;o=qn(o)}return r}let n=DR(e,t);for(;n&&CR(n)&&Lg(n);)n=DR(n,t);return n&&Vi(n)&&Lg(n)&&!r1(n)?r:n||xR(e)||r}var boe=async function(e){let t=this.getOffsetParent||RR,r=this.getDimensions,n=await r(e.floating);return{reference:yoe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Coe(e){return Br(e).direction==="rtl"}var FR={convertOffsetParentRelativeRectToViewportRelativeRect:coe,getDocumentElement:dn,getClippingRect:goe,getOffsetParent:RR,getElementRects:boe,getClientRects:foe,getDimensions:voe,getScale:Rs,isElement:Or,isRTL:Coe};function xoe(e,t){let r=null,n,o=dn(e);function a(){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),a();let{left:c,top:p,width:d,height:m}=e.getBoundingClientRect();if(u||t(),!d||!m)return;let g=bl(p),v=bl(o.clientWidth-(c+d)),h=bl(o.clientHeight-(p+m)),b=bl(c),x={rootMargin:-g+"px "+-v+"px "+-h+"px "+-b+"px",threshold:Gt(0,Fr(1,l))||1},w=!0;function S(E){let D=E[0].intersectionRatio;if(D!==l){if(!w)return s();D?s(!1,D):n=setTimeout(()=>{s(!1,1e-7)},1e3)}w=!1}try{r=new IntersectionObserver(S,{...x,root:o.ownerDocument})}catch{r=new IntersectionObserver(S,x)}r.observe(e)}return s(!0),a}function zg(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=$g(e),p=o||a?[...c?ki(c):[],...ki(t)]:[];p.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});let d=c&&u?xoe(c,r):null,m=-1,g=null;s&&(g=new ResizeObserver(y=>{let[x]=y;x&&x.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),r()}),c&&!l&&g.observe(c),g.observe(t));let v,h=l?Li(e):null;l&&b();function b(){let y=Li(e);h&&(y.x!==h.x||y.y!==h.y||y.width!==h.width||y.height!==h.height)&&r(),h=y,v=requestAnimationFrame(b)}return r(),()=>{var y;p.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),d?.(),(y=g)==null||y.disconnect(),g=null,l&&cancelAnimationFrame(v)}}var OR=mR;var BR=hR,MR=pR,IR=vR,kR=dR,Gg=fR;var NR=gR,Hg=(e,t,r)=>{let n=new Map,o={platform:FR,...r},a={...o.platform,_c:n};return cR(e,t,{...o,platform:a})};import*as it from"react";import{useLayoutEffect as woe,useEffect as Soe}from"react";import*as $R from"react-dom";var o1=typeof document<"u"?woe:Soe;function i1(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(!i1(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 a=o[n];if(!(a==="_owner"&&e.$$typeof)&&!i1(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function zR(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function VR(e,t){let r=zR(e);return Math.round(t*r)/r}function LR(e){let t=it.useRef(e);return o1(()=>{t.current=e}),t}function GR(e){e===void 0&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:l,open:c}=e,[p,d]=it.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[m,g]=it.useState(n);i1(m,n)||g(n);let[v,h]=it.useState(null),[b,y]=it.useState(null),x=it.useCallback(K=>{K!==D.current&&(D.current=K,h(K))},[]),w=it.useCallback(K=>{K!==P.current&&(P.current=K,y(K))},[]),S=a||v,E=s||b,D=it.useRef(null),P=it.useRef(null),R=it.useRef(p),F=l!=null,M=LR(l),H=LR(o),I=it.useCallback(()=>{if(!D.current||!P.current)return;let K={placement:t,strategy:r,middleware:m};H.current&&(K.platform=H.current),Hg(D.current,P.current,K).then(re=>{let G={...re,isPositioned:!0};L.current&&!i1(R.current,G)&&(R.current=G,$R.flushSync(()=>{d(G)}))})},[m,t,r,H]);o1(()=>{c===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,d(K=>({...K,isPositioned:!1})))},[c]);let L=it.useRef(!1);o1(()=>(L.current=!0,()=>{L.current=!1}),[]),o1(()=>{if(S&&(D.current=S),E&&(P.current=E),S&&E){if(M.current)return M.current(S,E,I);I()}},[S,E,I,M,F]);let N=it.useMemo(()=>({reference:D,floating:P,setReference:x,setFloating:w}),[x,w]),$=it.useMemo(()=>({reference:S,floating:E}),[S,E]),te=it.useMemo(()=>{let K={position:r,left:0,top:0};if(!$.floating)return K;let re=VR($.floating,p.x),G=VR($.floating,p.y);return u?{...K,transform:"translate("+re+"px, "+G+"px)",...zR($.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:re,top:G}},[r,u,$.floating,p.x,p.y]);return it.useMemo(()=>({...p,update:I,refs:N,elements:$,floatingStyles:te}),[p,I,N,$,te])}var Doe=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?Gg({element:n.current,padding:o}).fn(r):{}:n?Gg({element:n,padding:o}).fn(r):{}}}},HR=(e,t)=>({...OR(e),options:[e,t]}),jR=(e,t)=>({...BR(e),options:[e,t]}),_R=(e,t)=>({...NR(e),options:[e,t]}),WR=(e,t)=>({...MR(e),options:[e,t]}),UR=(e,t)=>({...IR(e),options:[e,t]});var KR=(e,t)=>({...kR(e),options:[e,t]});var qR=(e,t)=>({...Doe(e),options:[e,t]});i();import*as YR from"react";import{jsx as XR}from"react/jsx-runtime";var Eoe="Arrow",JR=YR.forwardRef((e,t)=>{let{children:r,width:n=10,height:o=5,...a}=e;return XR(Ue.svg,{...a,ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:XR("polygon",{points:"0,0 30,0 15,10"})})});JR.displayName=Eoe;var ZR=JR;i();import*as Xn from"react";import{jsx as Toe}from"react/jsx-runtime";function QR(e,t=[]){let r=[];function n(a,s){let u=Xn.createContext(s),l=r.length;r=[...r,s];function c(d){let{scope:m,children:g,...v}=d,h=m?.[e][l]||u,b=Xn.useMemo(()=>v,Object.values(v));return Toe(h.Provider,{value:b,children:g})}function p(d,m){let g=m?.[e][l]||u,v=Xn.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,p]}let o=()=>{let a=r.map(s=>Xn.createContext(s));return function(u){let l=u?.[e]||a;return Xn.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,Aoe(o,...t)]}function Aoe(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return Xn.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}i();import*as eF from"react";function tF(e){let[t,r]=eF.useState(void 0);return Rr(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;let a=o[0],s,u;if("borderBoxSize"in a){let l=a.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}import{jsx as $i}from"react/jsx-runtime";var jg="Popper",[rF,_g]=QR(jg),[Roe,nF]=rF(jg),oF=e=>{let{__scopePopper:t,children:r}=e,[n,o]=br.useState(null);return $i(Roe,{scope:t,anchor:n,onAnchorChange:o,children:r})};oF.displayName=jg;var iF="PopperAnchor",aF=br.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,a=nF(iF,r),s=br.useRef(null),u=Je(t,s);return br.useEffect(()=>{a.onAnchorChange(n?.current||s.current)}),n?null:$i(Ue.div,{...o,ref:u})});aF.displayName=iF;var Wg="PopperContent",[Foe,Ooe]=rF(Wg),sF=br.forwardRef((e,t)=>{let{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:s=0,arrowPadding:u=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:p=0,sticky:d="partial",hideWhenDetached:m=!1,updatePositionStrategy:g="optimized",onPlaced:v,...h}=e,b=nF(Wg,r),[y,x]=br.useState(null),w=Je(t,j=>x(j)),[S,E]=br.useState(null),D=tF(S),P=D?.width??0,R=D?.height??0,F=n+(a!=="center"?"-"+a:""),M=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},H=Array.isArray(c)?c:[c],I=H.length>0,L={padding:M,boundary:H.filter(Moe),altBoundary:I},{refs:N,floatingStyles:$,placement:te,isPositioned:K,middlewareData:re}=GR({strategy:"fixed",placement:F,whileElementsMounted:(...j)=>zg(...j,{animationFrame:g==="always"}),elements:{reference:b.anchor},middleware:[HR({mainAxis:o+R,alignmentAxis:s}),l&&jR({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?_R():void 0,...L}),l&&WR({...L}),UR({...L,apply:({elements:j,rects:ue,availableWidth:ie,availableHeight:me})=>{let{width:Ce,height:Se}=ue.reference,Ee=j.floating.style;Ee.setProperty("--radix-popper-available-width",`${ie}px`),Ee.setProperty("--radix-popper-available-height",`${me}px`),Ee.setProperty("--radix-popper-anchor-width",`${Ce}px`),Ee.setProperty("--radix-popper-anchor-height",`${Se}px`)}}),S&&qR({element:S,padding:u}),Ioe({arrowWidth:P,arrowHeight:R}),m&&KR({strategy:"referenceHidden",...L})]}),[G,ae]=cF(te),ve=st(v);Rr(()=>{K&&ve?.()},[K,ve]);let de=re.arrow?.x,He=re.arrow?.y,A=re.arrow?.centerOffset!==0,[_,z]=br.useState();return Rr(()=>{y&&z(window.getComputedStyle(y).zIndex)},[y]),$i("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:K?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:_,"--radix-popper-transform-origin":[re.transformOrigin?.x,re.transformOrigin?.y].join(" "),...re.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:$i(Foe,{scope:r,placedSide:G,onArrowChange:E,arrowX:de,arrowY:He,shouldHideArrow:A,children:$i(Ue.div,{"data-side":G,"data-align":ae,...h,ref:w,style:{...h.style,animation:K?void 0:"none"}})})})});sF.displayName=Wg;var uF="PopperArrow",Boe={top:"bottom",right:"left",bottom:"top",left:"right"},lF=br.forwardRef(function(t,r){let{__scopePopper:n,...o}=t,a=Ooe(uF,n),s=Boe[a.placedSide];return $i("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:$i(ZR,{...o,ref:r,style:{...o.style,display:"block"}})})});lF.displayName=uF;function Moe(e){return e!==null}var Ioe=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,u=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,p]=cF(r),d={start:"0%",center:"50%",end:"100%"}[p],m=(o.arrow?.x??0)+u/2,g=(o.arrow?.y??0)+l/2,v="",h="";return c==="bottom"?(v=s?d:`${m}px`,h=`${-l}px`):c==="top"?(v=s?d:`${m}px`,h=`${n.floating.height+l}px`):c==="right"?(v=`${-l}px`,h=s?d:`${g}px`):c==="left"&&(v=`${n.floating.width+l}px`,h=s?d:`${g}px`),{data:{x:v,y:h}}}});function cF(e){let[t,r="center"]=e.split("-");return[t,r]}var Ug=oF,fF=aF,pF=sF,dF=lF;i();import*as a1 from"react";import Noe from"react-dom";import{jsx as Voe}from"react/jsx-runtime";var Loe="Portal",Kg=a1.forwardRef((e,t)=>{let{container:r,...n}=e,[o,a]=a1.useState(!1);Rr(()=>a(!0),[]);let s=r||o&&globalThis?.document?.body;return s?Noe.createPortal(Voe(Ue.div,{...n,ref:t}),s):null});Kg.displayName=Loe;i();import*as nr from"react";import*as mF from"react";function $oe(e,t){return mF.useReducer((r,n)=>t[r][n]??r,e)}var Fs=e=>{let{present:t,children:r}=e,n=zoe(t),o=typeof r=="function"?r({present:n.isPresent}):nr.Children.only(r),a=Je(n.ref,Goe(o));return typeof r=="function"||n.isPresent?nr.cloneElement(o,{ref:a}):null};Fs.displayName="Presence";function zoe(e){let[t,r]=nr.useState(),n=nr.useRef({}),o=nr.useRef(e),a=nr.useRef("none"),s=e?"mounted":"unmounted",[u,l]=$oe(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return nr.useEffect(()=>{let c=s1(n.current);a.current=u==="mounted"?c:"none"},[u]),Rr(()=>{let c=n.current,p=o.current;if(p!==e){let m=a.current,g=s1(c);e?l("MOUNT"):g==="none"||c?.display==="none"?l("UNMOUNT"):l(p&&m!==g?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Rr(()=>{if(t){let c,p=t.ownerDocument.defaultView??window,d=g=>{let h=s1(n.current).includes(g.animationName);if(g.target===t&&h&&(l("ANIMATION_END"),!o.current)){let b=t.style.animationFillMode;t.style.animationFillMode="forwards",c=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},m=g=>{g.target===t&&(a.current=s1(n.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{p.clearTimeout(c),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:nr.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function s1(e){return e?.animationName||"none"}function Goe(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}i();import*as dt from"react";i();import*as Yn from"react";import{jsx as Hoe}from"react/jsx-runtime";function hF(e,t=[]){let r=[];function n(a,s){let u=Yn.createContext(s),l=r.length;r=[...r,s];function c(d){let{scope:m,children:g,...v}=d,h=m?.[e][l]||u,b=Yn.useMemo(()=>v,Object.values(v));return Hoe(h.Provider,{value:b,children:g})}function p(d,m){let g=m?.[e][l]||u,v=Yn.useContext(g);if(v)return v;if(s!==void 0)return s;throw new Error(`\`${d}\` must be used within \`${a}\``)}return c.displayName=a+"Provider",[c,p]}let o=()=>{let a=r.map(s=>Yn.createContext(s));return function(u){let l=u?.[e]||a;return Yn.useMemo(()=>({[`__scope${e}`]:{...u,[e]:l}}),[u,l])}};return o.scopeName=e,[n,joe(o,...t)]}function joe(...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(a){let s=n.reduce((u,{useScope:l,scopeName:c})=>{let d=l(a)[`__scope${c}`];return{...u,...d}},{});return Yn.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return r.scopeName=t.scopeName,r}import{jsx as zi}from"react/jsx-runtime";var qg="rovingFocusGroup.onEntryFocus",_oe={bubbles:!1,cancelable:!0},u1="RovingFocusGroup",[Xg,gF,Woe]=Kd(u1),[Uoe,Yg]=hF(u1,[Woe]),[Koe,qoe]=Uoe(u1),vF=dt.forwardRef((e,t)=>zi(Xg.Provider,{scope:e.__scopeRovingFocusGroup,children:zi(Xg.Slot,{scope:e.__scopeRovingFocusGroup,children:zi(Xoe,{...e,ref:t})})}));vF.displayName=u1;var Xoe=dt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:s,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:p=!1,...d}=e,m=dt.useRef(null),g=Je(t,m),v=Xd(a),[h=null,b]=gl({prop:s,defaultProp:u,onChange:l}),[y,x]=dt.useState(!1),w=st(c),S=gF(r),E=dt.useRef(!1),[D,P]=dt.useState(0);return dt.useEffect(()=>{let R=m.current;if(R)return R.addEventListener(qg,w),()=>R.removeEventListener(qg,w)},[w]),zi(Koe,{scope:r,orientation:n,dir:v,loop:o,currentTabStopId:h,onItemFocus:dt.useCallback(R=>b(R),[b]),onItemShiftTab:dt.useCallback(()=>x(!0),[]),onFocusableItemAdd:dt.useCallback(()=>P(R=>R+1),[]),onFocusableItemRemove:dt.useCallback(()=>P(R=>R-1),[]),children:zi(Ue.div,{tabIndex:y||D===0?-1:0,"data-orientation":n,...d,ref:g,style:{outline:"none",...e.style},onMouseDown:ye(e.onMouseDown,()=>{E.current=!0}),onFocus:ye(e.onFocus,R=>{let F=!E.current;if(R.target===R.currentTarget&&F&&!y){let M=new CustomEvent(qg,_oe);if(R.currentTarget.dispatchEvent(M),!M.defaultPrevented){let H=S().filter(te=>te.focusable),I=H.find(te=>te.active),L=H.find(te=>te.id===h),$=[I,L,...H].filter(Boolean).map(te=>te.ref.current);CF($,p)}}E.current=!1}),onBlur:ye(e.onBlur,()=>x(!1))})})}),yF="RovingFocusGroupItem",bF=dt.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,...s}=e,u=Ho(),l=a||u,c=qoe(yF,r),p=c.currentTabStopId===l,d=gF(r),{onFocusableItemAdd:m,onFocusableItemRemove:g}=c;return dt.useEffect(()=>{if(n)return m(),()=>g()},[n,m,g]),zi(Xg.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:zi(Ue.span,{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 h=Zoe(v,c.orientation,c.dir);if(h!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let y=d().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")y.reverse();else if(h==="prev"||h==="next"){h==="prev"&&y.reverse();let x=y.indexOf(v.currentTarget);y=c.loop?Qoe(y,x+1):y.slice(x+1)}setTimeout(()=>CF(y))}})})})});bF.displayName=yF;var Yoe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Joe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Zoe(e,t,r){let n=Joe(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return Yoe[n]}function CF(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}function Qoe(e,t){return e.map((r,n)=>e[(t+n)%e.length])}var xF=vF,wF=bF;i();var tie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Os=new WeakMap,l1=new WeakMap,c1={},Jg=0,SF=function(e){return e&&(e.host||SF(e.parentNode))},rie=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=SF(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})},nie=function(e,t,r,n){var o=rie(t,Array.isArray(e)?e:[e]);c1[r]||(c1[r]=new WeakMap);var a=c1[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(m){if(u.has(m))p(m);else try{var g=m.getAttribute(n),v=g!==null&&g!=="false",h=(Os.get(m)||0)+1,b=(a.get(m)||0)+1;Os.set(m,h),a.set(m,b),s.push(m),h===1&&v&&l1.set(m,!0),b===1&&m.setAttribute(r,"true"),v||m.setAttribute(n,"true")}catch(y){console.error("aria-hidden: cannot operate on ",m,y)}})};return p(t),u.clear(),Jg++,function(){s.forEach(function(d){var m=Os.get(d)-1,g=a.get(d)-1;Os.set(d,m),a.set(d,g),m||(l1.has(d)||d.removeAttribute(n),l1.delete(d)),g||d.removeAttribute(r)}),Jg--,Jg||(Os=new WeakMap,Os=new WeakMap,l1=new WeakMap,c1={})}},DF=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||tie(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),nie(n,o,r,"aria-hidden")):function(){return null}};i();i();i();var mn=function(){return mn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},mn.apply(this,arguments)};function EF(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 PF(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}import*as h1 from"react";i();import*as Ft from"react";i();var Gi="right-scroll-bar-position",Hi="width-before-scroll-bar",Zg="with-scroll-bars-hidden",Qg="--removed-body-scroll-bar-size";i();i();function f1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}i();import{useState as oie}from"react";function TF(e,t){var r=oie(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}i();import*as p1 from"react";var iie=typeof window<"u"?p1.useLayoutEffect:p1.useEffect,AF=new WeakMap;function e3(e,t){var r=TF(t||null,function(n){return e.forEach(function(o){return f1(o,n)})});return iie(function(){var n=AF.get(r);if(n){var o=new Set(n),a=new Set(e),s=r.current;o.forEach(function(u){a.has(u)||f1(u,null)}),a.forEach(function(u){o.has(u)||f1(u,s)})}AF.set(r,e)},[e]),r}i();i();i();var Bs=function(){return Bs=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Bs.apply(this,arguments)};function RF(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}i();function aie(e){return e}function sie(e,t){t===void 0&&(t=aie);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(a){var s=t(a,n);return r.push(s),function(){r=r.filter(function(u){return u!==s})}},assignSyncMedium:function(a){for(n=!0;r.length;){var s=r;r=[],s.forEach(a)}r={push:function(u){return a(u)},filter:function(){return r}}},assignMedium:function(a){n=!0;var s=[];if(r.length){var u=r;r=[],u.forEach(a),s=r}var l=function(){var p=s;s=[],p.forEach(a)},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 t3(e){e===void 0&&(e={});var t=sie(null);return t.options=Bs({async:!0,ssr:!1},e),t}i();import*as FF from"react";var OF=function(e){var t=e.sideCar,r=RF(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 FF.createElement(n,Bs({},r))};OF.isSideCarExport=!0;function r3(e,t){return e.useMedium(t),OF}var d1=t3();var n3=function(){},wl=Ft.forwardRef(function(e,t){var r=Ft.useRef(null),n=Ft.useState({onScrollCapture:n3,onWheelCapture:n3,onTouchMoveCapture:n3}),o=n[0],a=n[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,p=e.enabled,d=e.shards,m=e.sideCar,g=e.noIsolation,v=e.inert,h=e.allowPinchZoom,b=e.as,y=b===void 0?"div":b,x=e.gapMode,w=EF(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=m,E=e3([r,t]),D=mn(mn({},w),o);return Ft.createElement(Ft.Fragment,null,p&&Ft.createElement(S,{sideCar:d1,removeScrollBar:c,shards:d,noIsolation:g,inert:v,setCallbacks:a,allowPinchZoom:!!h,lockRef:r,gapMode:x}),s?Ft.cloneElement(Ft.Children.only(u),mn(mn({},D),{ref:E})):Ft.createElement(y,mn({},D,{className:l,ref:E}),u))});wl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};wl.classNames={fullWidth:Hi,zeroRight:Gi};i();i();import*as $e from"react";i();i();import*as Is from"react";i();i();i();import*as IF from"react";i();i();var BF;var MF=function(){if(BF)return BF;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=MF();return t&&e.setAttribute("nonce",t),e}function lie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var o3=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uie())&&(lie(t,r),cie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var i3=function(){var e=o3();return function(t,r){IF.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Sl=function(){var e=i3(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t};i();var fie={left:0,top:0,right:0,gap:0},a3=function(e){return parseInt(e||"",10)||0},pie=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[a3(r),a3(n),a3(o)]},s3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return fie;var t=pie(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 die=Sl(),Ms="data-scroll-locked",mie=function(e,t,r,n){var o=e.left,a=e.top,s=e.right,u=e.gap;return r===void 0&&(r="margin"),`
|
|
2085
2085
|
.`.concat(Zg,` {
|
|
2086
2086
|
overflow: hidden `).concat(n,`;
|
|
2087
2087
|
padding-right: `).concat(u,"px ").concat(n,`;
|
|
@@ -2121,7 +2121,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2121
2121
|
`)},kF=function(){var e=parseInt(document.body.getAttribute(Ms)||"0",10);return isFinite(e)?e:0},hie=function(){Is.useEffect(function(){return document.body.setAttribute(Ms,(kF()+1).toString()),function(){var e=kF()-1;e<=0?document.body.removeAttribute(Ms):document.body.setAttribute(Ms,e.toString())}},[])},u3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;hie();var a=Is.useMemo(function(){return s3(o)},[o]);return Is.createElement(die,{styles:mie(a,!t,o,r?"":"!important")})};i();var l3=!1;if(typeof window<"u")try{Dl=Object.defineProperty({},"passive",{get:function(){return l3=!0,!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{l3=!1}var Dl,ji=l3?{passive:!1}:!1;i();var gie=function(e){return e.tagName==="TEXTAREA"},NF=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!gie(e)&&r[t]==="visible")},vie=function(e){return NF(e,"overflowY")},yie=function(e){return NF(e,"overflowX")},c3=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=VF(e,n);if(o){var a=LF(e,n),s=a[1],u=a[2];if(s>u)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},bie=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Cie=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},VF=function(e,t){return e==="v"?vie(t):yie(t)},LF=function(e,t){return e==="v"?bie(t):Cie(t)},xie=function(e,t){return e==="h"&&t==="rtl"?-1:1},$F=function(e,t,r,n,o){var a=xie(e,window.getComputedStyle(t).direction),s=a*n,u=r.target,l=t.contains(u),c=!1,p=s>0,d=0,m=0;do{var g=LF(e,u),v=g[0],h=g[1],b=g[2],y=h-b-a*v;(v||y)&&VF(e,u)&&(d+=y,m+=v),u instanceof ShadowRoot?u=u.host:u=u.parentNode}while(!l&&u!==document.body||l&&(t.contains(u)||t===u));return(p&&(o&&Math.abs(d)<1||!o&&s>d)||!p&&(o&&Math.abs(m)<1||!o&&-s>m))&&(c=!0),c};var m1=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},zF=function(e){return[e.deltaX,e.deltaY]},GF=function(e){return e&&"current"in e?e.current:e},wie=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Sie=function(e){return`
|
|
2122
2122
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
2123
2123
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
2124
|
-
`)},Die=0,ks=[];function HF(e){var t=$e.useRef([]),r=$e.useRef([0,0]),n=$e.useRef(),o=$e.useState(Die++)[0],a=$e.useState(Sl)[0],s=$e.useRef(e);$e.useEffect(function(){s.current=e},[e]),$e.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=PF([e.lockRef.current],(e.shards||[]).map(GF),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=$e.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=m1(h),x=r.current,w="deltaX"in h?h.deltaX:x[0]-y[0],S="deltaY"in h?h.deltaY:x[1]-y[1],E,D=h.target,P=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&P==="h"&&D.type==="range")return!1;var R=c3(P,D);if(!R)return!0;if(R?E=P:(E=P==="v"?"h":"v",R=c3(P,D)),!R)return!1;if(!n.current&&"changedTouches"in h&&(w||S)&&(n.current=E),!E)return!0;var F=n.current||E;return $F(F,b,h,F==="h"?w:S,!0)},[]),l=$e.useCallback(function(h){var b=h;if(!(!ks.length||ks[ks.length-1]!==a)){var y="deltaY"in b?zF(b):m1(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&wie(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(GF).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=w.length>0?u(b,w[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=$e.useCallback(function(h,b,y,x){var w={name:h,delta:b,target:y,should:x,shadowParent:Eie(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=$e.useCallback(function(h){r.current=m1(h),n.current=void 0},[]),d=$e.useCallback(function(h){c(h.type,zF(h),h.target,u(h,e.lockRef.current))},[]),m=$e.useCallback(function(h){c(h.type,m1(h),h.target,u(h,e.lockRef.current))},[]);$e.useEffect(function(){return ks.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,ji),document.addEventListener("touchmove",l,ji),document.addEventListener("touchstart",p,ji),function(){ks=ks.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,ji),document.removeEventListener("touchmove",l,ji),document.removeEventListener("touchstart",p,ji)}},[]);var g=e.removeScrollBar,v=e.inert;return $e.createElement($e.Fragment,null,v?$e.createElement(a,{styles:Sie(o)}):null,g?$e.createElement(u3,{gapMode:e.gapMode}):null)}function Eie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jF=r3(d1,HF);var _F=h1.forwardRef(function(e,t){return h1.createElement(wl,mn({},e,{ref:t,sideCar:jF}))});_F.classNames=wl.classNames;var f3=_F;import{jsx as ce}from"react/jsx-runtime";var p3=["Enter"," "],Pie=["ArrowDown","PageUp","Home"],UF=["ArrowUp","PageDown","End"],Tie=[...Pie,...UF],Aie={ltr:[...p3,"ArrowRight"],rtl:[...p3,"ArrowLeft"]},Rie={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Al="Menu",[Pl,Fie,Oie]=Kd(Al),[_i,d3]=Wd(Al,[Oie,_g,Yg]),Rl=_g(),KF=Yg(),[qF,jo]=_i(Al),[Bie,Fl]=_i(Al),XF=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:s=!0}=e,u=Rl(t),[l,c]=oe.useState(null),p=oe.useRef(!1),d=st(a),m=Xd(o);return oe.useEffect(()=>{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})}},[]),ce(Ug,{...u,children:ce(qF,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:ce(Bie,{scope:t,onClose:oe.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:m,modal:s,children:n})})})};XF.displayName=Al;var Mie="MenuAnchor",m3=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=Rl(r);return ce(fF,{...o,...n,ref:t})});m3.displayName=Mie;var h3="MenuPortal",[Iie,YF]=_i(h3,{forceMount:void 0}),JF=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=jo(h3,t);return ce(Iie,{scope:t,forceMount:r,children:ce(Fs,{present:r||a.open,children:ce(Kg,{asChild:!0,container:o,children:n})})})};JF.displayName=h3;var Mr="MenuContent",[kie,g3]=_i(Mr),ZF=oe.forwardRef((e,t)=>{let r=YF(Mr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=jo(Mr,e.__scopeMenu),s=Fl(Mr,e.__scopeMenu);return ce(Pl.Provider,{scope:e.__scopeMenu,children:ce(Fs,{present:n||a.open,children:ce(Pl.Slot,{scope:e.__scopeMenu,children:s.modal?ce(Nie,{...o,ref:t}):ce(Vie,{...o,ref:t})})})})}),Nie=oe.forwardRef((e,t)=>{let r=jo(Mr,e.__scopeMenu),n=oe.useRef(null),o=Je(t,n);return oe.useEffect(()=>{let a=n.current;if(a)return DF(a)},[]),ce(v3,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ye(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Vie=oe.forwardRef((e,t)=>{let r=jo(Mr,e.__scopeMenu);return ce(v3,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),v3=oe.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...h}=e,b=jo(Mr,r),y=Fl(Mr,r),x=Rl(r),w=KF(r),S=Fie(r),[E,D]=oe.useState(null),P=oe.useRef(null),R=Je(t,P,b.onContentChange),F=oe.useRef(0),M=oe.useRef(""),H=oe.useRef(0),I=oe.useRef(null),L=oe.useRef("right"),N=oe.useRef(0),$=v?f3:oe.Fragment,te=v?{as:zo,allowPinchZoom:!0}:void 0,K=G=>{let ae=M.current+G,ve=S().filter(j=>!j.disabled),de=document.activeElement,He=ve.find(j=>j.ref.current===de)?.textValue,A=ve.map(j=>j.textValue),_=Xie(A,ae,He),z=ve.find(j=>j.textValue===_)?.ref.current;(function j(ue){M.current=ue,window.clearTimeout(F.current),ue!==""&&(F.current=window.setTimeout(()=>j(""),1e3))})(ae),z&&setTimeout(()=>z.focus())};oe.useEffect(()=>()=>window.clearTimeout(F.current),[]),YA();let re=oe.useCallback(G=>L.current===I.current?.side&&Jie(G,I.current?.area),[]);return ce(kie,{scope:r,searchRef:M,onItemEnter:oe.useCallback(G=>{re(G)&&G.preventDefault()},[re]),onItemLeave:oe.useCallback(G=>{re(G)||(P.current?.focus(),D(null))},[re]),onTriggerLeave:oe.useCallback(G=>{re(G)&&G.preventDefault()},[re]),pointerGraceTimerRef:H,onPointerGraceIntentChange:oe.useCallback(G=>{I.current=G},[]),children:ce($,{...te,children:ce(Ng,{asChild:!0,trapped:o,onMountAutoFocus:ye(a,G=>{G.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:ce(Bg,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:ce(xF,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:D,onEntryFocus:ye(l,G=>{y.isUsingKeyboardRef.current||G.preventDefault()}),preventScrollOnEntryFocus:!0,children:ce(pF,{role:"menu","aria-orientation":"vertical","data-state":hO(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:ye(h.onKeyDown,G=>{let ve=G.target.closest("[data-radix-menu-content]")===G.currentTarget,de=G.ctrlKey||G.altKey||G.metaKey,He=G.key.length===1;ve&&(G.key==="Tab"&&G.preventDefault(),!de&&He&&K(G.key));let A=P.current;if(G.target!==A||!Tie.includes(G.key))return;G.preventDefault();let z=S().filter(j=>!j.disabled).map(j=>j.ref.current);UF.includes(G.key)&&z.reverse(),Kie(z)}),onBlur:ye(e.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(F.current),M.current="")}),onPointerMove:ye(e.onPointerMove,Tl(G=>{let ae=G.target,ve=N.current!==G.clientX;if(G.currentTarget.contains(ae)&&ve){let de=G.clientX>N.current?"right":"left";L.current=de,N.current=G.clientX}}))})})})})})})});ZF.displayName=Mr;var Lie="MenuGroup",y3=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return ce(Ue.div,{role:"group",...n,ref:t})});y3.displayName=Lie;var $ie="MenuLabel",QF=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return ce(Ue.div,{...n,ref:t})});QF.displayName=$ie;var g1="MenuItem",WF="menu.itemSelect",y1=oe.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,a=oe.useRef(null),s=Fl(g1,e.__scopeMenu),u=g3(g1,e.__scopeMenu),l=Je(t,a),c=oe.useRef(!1),p=()=>{let d=a.current;if(!r&&d){let m=new CustomEvent(WF,{bubbles:!0,cancelable:!0});d.addEventListener(WF,g=>n?.(g),{once:!0}),Ud(d,m),m.defaultPrevented?c.current=!1:s.onClose()}};return ce(eO,{...o,ref:l,disabled:r,onClick:ye(e.onClick,p),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:ye(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:ye(e.onKeyDown,d=>{let m=u.searchRef.current!=="";r||m&&d.key===" "||p3.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});y1.displayName=g1;var eO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,s=g3(g1,r),u=KF(r),l=oe.useRef(null),c=Je(t,l),[p,d]=oe.useState(!1),[m,g]=oe.useState("");return oe.useEffect(()=>{let v=l.current;v&&g((v.textContent??"").trim())},[a.children]),ce(Pl.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:ce(wF,{asChild:!0,...u,focusable:!n,children:ce(Ue.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:c,onPointerMove:ye(e.onPointerMove,Tl(v=>{n?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ye(e.onPointerLeave,Tl(v=>s.onItemLeave(v))),onFocus:ye(e.onFocus,()=>d(!0)),onBlur:ye(e.onBlur,()=>d(!1))})})})}),zie="MenuCheckboxItem",tO=oe.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return ce(aO,{scope:e.__scopeMenu,checked:r,children:ce(y1,{role:"menuitemcheckbox","aria-checked":v1(r)?"mixed":r,...o,ref:t,"data-state":x3(r),onSelect:ye(o.onSelect,()=>n?.(v1(r)?!0:!r),{checkForDefaultPrevented:!1})})})});tO.displayName=zie;var rO="MenuRadioGroup",[Gie,Hie]=_i(rO,{value:void 0,onValueChange:()=>{}}),nO=oe.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=st(n);return ce(Gie,{scope:e.__scopeMenu,value:r,onValueChange:a,children:ce(y3,{...o,ref:t})})});nO.displayName=rO;var oO="MenuRadioItem",iO=oe.forwardRef((e,t)=>{let{value:r,...n}=e,o=Hie(oO,e.__scopeMenu),a=r===o.value;return ce(aO,{scope:e.__scopeMenu,checked:a,children:ce(y1,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":x3(a),onSelect:ye(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});iO.displayName=oO;var b3="MenuItemIndicator",[aO,jie]=_i(b3,{checked:!1}),sO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=jie(b3,r);return ce(Fs,{present:n||v1(a.checked)||a.checked===!0,children:ce(Ue.span,{...o,ref:t,"data-state":x3(a.checked)})})});sO.displayName=b3;var _ie="MenuSeparator",uO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return ce(Ue.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});uO.displayName=_ie;var Wie="MenuArrow",lO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=Rl(r);return ce(dF,{...o,...n,ref:t})});lO.displayName=Wie;var C3="MenuSub",[Uie,cO]=_i(C3),fO=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=jo(C3,t),s=Rl(t),[u,l]=oe.useState(null),[c,p]=oe.useState(null),d=st(o);return oe.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),ce(Ug,{...s,children:ce(qF,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:p,children:ce(Uie,{scope:t,contentId:Ho(),triggerId:Ho(),trigger:u,onTriggerChange:l,children:r})})})};fO.displayName=C3;var El="MenuSubTrigger",pO=oe.forwardRef((e,t)=>{let r=jo(El,e.__scopeMenu),n=Fl(El,e.__scopeMenu),o=cO(El,e.__scopeMenu),a=g3(El,e.__scopeMenu),s=oe.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=oe.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return oe.useEffect(()=>p,[p]),oe.useEffect(()=>{let d=u.current;return()=>{window.clearTimeout(d),l(null)}},[u,l]),ce(m3,{asChild:!0,...c,children:ce(eO,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":hO(r.open),...e,ref:Oi(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ye(e.onPointerMove,Tl(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:ye(e.onPointerLeave,Tl(d=>{p();let m=r.content?.getBoundingClientRect();if(m){let g=r.content?.dataset.side,v=g==="right",h=v?-5:5,b=m[v?"left":"right"],y=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:b,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:b,y:m.bottom}],side:g}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ye(e.onKeyDown,d=>{let m=a.searchRef.current!=="";e.disabled||m&&d.key===" "||Aie[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});pO.displayName=El;var dO="MenuSubContent",mO=oe.forwardRef((e,t)=>{let r=YF(Mr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=jo(Mr,e.__scopeMenu),s=Fl(Mr,e.__scopeMenu),u=cO(dO,e.__scopeMenu),l=oe.useRef(null),c=Je(t,l);return ce(Pl.Provider,{scope:e.__scopeMenu,children:ce(Fs,{present:n||a.open,children:ce(Pl.Slot,{scope:e.__scopeMenu,children:ce(v3,{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=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:ye(e.onFocusOutside,p=>{p.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ye(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:ye(e.onKeyDown,p=>{let d=p.currentTarget.contains(p.target),m=Rie[s.dir].includes(p.key);d&&m&&(a.onOpenChange(!1),u.trigger?.focus(),p.preventDefault())})})})})})});mO.displayName=dO;function hO(e){return e?"open":"closed"}function v1(e){return e==="indeterminate"}function x3(e){return v1(e)?"indeterminate":e?"checked":"unchecked"}function Kie(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function qie(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Xie(e,t,r){let o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1,s=qie(e,Math.max(a,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 Yie(e,t){let{x:r,y:n}=e,o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){let u=t[a].x,l=t[a].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 Jie(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return Yie(r,t)}function Tl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gO=XF,vO=m3,yO=JF,bO=ZF,CO=y3,xO=QF,wO=y1,SO=tO,DO=nO,EO=iO,PO=sO,TO=uO,AO=lO,RO=fO,FO=pO,OO=mO;import{jsx as mt}from"react/jsx-runtime";var w3="DropdownMenu",[Qie,rft]=Wd(w3,[d3]),Ot=d3(),[eae,BO]=Qie(w3),S3=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,l=Ot(t),c=ut.useRef(null),[p=!1,d]=gl({prop:o,defaultProp:a,onChange:s});return mt(eae,{scope:t,triggerId:Ho(),triggerRef:c,contentId:Ho(),open:p,onOpenChange:d,onOpenToggle:ut.useCallback(()=>d(m=>!m),[d]),modal:u,children:mt(gO,{...l,open:p,onOpenChange:d,dir:n,modal:u,children:r})})};S3.displayName=w3;var MO="DropdownMenuTrigger",D3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=BO(MO,r),s=Ot(r);return mt(vO,{asChild:!0,...s,children:mt(Ue.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:Oi(t,a.triggerRef),onPointerDown:ye(e.onPointerDown,u=>{!n&&u.button===0&&u.ctrlKey===!1&&(a.onOpenToggle(),a.open||u.preventDefault())}),onKeyDown:ye(e.onKeyDown,u=>{n||(["Enter"," "].includes(u.key)&&a.onOpenToggle(),u.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});D3.displayName=MO;var tae="DropdownMenuPortal",Ol=e=>{let{__scopeDropdownMenu:t,...r}=e,n=Ot(t);return mt(yO,{...n,...r})};Ol.displayName=tae;var IO="DropdownMenuContent",E3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=BO(IO,r),a=Ot(r),s=ut.useRef(!1);return mt(bO,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:ye(e.onCloseAutoFocus,u=>{s.current||o.triggerRef.current?.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)"}})});E3.displayName=IO;var rae="DropdownMenuGroup",P3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(CO,{...o,...n,ref:t})});P3.displayName=rae;var nae="DropdownMenuLabel",T3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(xO,{...o,...n,ref:t})});T3.displayName=nae;var oae="DropdownMenuItem",b1=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(wO,{...o,...n,ref:t})});b1.displayName=oae;var iae="DropdownMenuCheckboxItem",A3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(SO,{...o,...n,ref:t})});A3.displayName=iae;var aae="DropdownMenuRadioGroup",kO=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(DO,{...o,...n,ref:t})});kO.displayName=aae;var sae="DropdownMenuRadioItem",R3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(EO,{...o,...n,ref:t})});R3.displayName=sae;var uae="DropdownMenuItemIndicator",C1=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(PO,{...o,...n,ref:t})});C1.displayName=uae;var lae="DropdownMenuSeparator",cae=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(TO,{...o,...n,ref:t})});cae.displayName=lae;var fae="DropdownMenuArrow",pae=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(AO,{...o,...n,ref:t})});pae.displayName=fae;var NO=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,s=Ot(t),[u=!1,l]=gl({prop:n,defaultProp:a,onChange:o});return mt(RO,{...s,open:u,onOpenChange:l,children:r})},dae="DropdownMenuSubTrigger",F3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(FO,{...o,...n,ref:t})});F3.displayName=dae;var mae="DropdownMenuSubContent",O3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(OO,{...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)"}})});O3.displayName=mae;i();import hae,{css as gae,keyframes as VO}from"styled-components";var Bl=U(Q());import{jsx as w1,jsxs as Cae}from"react/jsx-runtime";var x1="8px",vae=VO`
|
|
2124
|
+
`)},Die=0,ks=[];function HF(e){var t=$e.useRef([]),r=$e.useRef([0,0]),n=$e.useRef(),o=$e.useState(Die++)[0],a=$e.useState(Sl)[0],s=$e.useRef(e);$e.useEffect(function(){s.current=e},[e]),$e.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=PF([e.lockRef.current],(e.shards||[]).map(GF),!0).filter(Boolean);return h.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=$e.useCallback(function(h,b){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var y=m1(h),x=r.current,w="deltaX"in h?h.deltaX:x[0]-y[0],S="deltaY"in h?h.deltaY:x[1]-y[1],E,D=h.target,P=Math.abs(w)>Math.abs(S)?"h":"v";if("touches"in h&&P==="h"&&D.type==="range")return!1;var R=c3(P,D);if(!R)return!0;if(R?E=P:(E=P==="v"?"h":"v",R=c3(P,D)),!R)return!1;if(!n.current&&"changedTouches"in h&&(w||S)&&(n.current=E),!E)return!0;var F=n.current||E;return $F(F,b,h,F==="h"?w:S,!0)},[]),l=$e.useCallback(function(h){var b=h;if(!(!ks.length||ks[ks.length-1]!==a)){var y="deltaY"in b?zF(b):m1(b),x=t.current.filter(function(E){return E.name===b.type&&(E.target===b.target||b.target===E.shadowParent)&&wie(E.delta,y)})[0];if(x&&x.should){b.cancelable&&b.preventDefault();return}if(!x){var w=(s.current.shards||[]).map(GF).filter(Boolean).filter(function(E){return E.contains(b.target)}),S=w.length>0?u(b,w[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),c=$e.useCallback(function(h,b,y,x){var w={name:h,delta:b,target:y,should:x,shadowParent:Eie(y)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(S){return S!==w})},1)},[]),p=$e.useCallback(function(h){r.current=m1(h),n.current=void 0},[]),d=$e.useCallback(function(h){c(h.type,zF(h),h.target,u(h,e.lockRef.current))},[]),m=$e.useCallback(function(h){c(h.type,m1(h),h.target,u(h,e.lockRef.current))},[]);$e.useEffect(function(){return ks.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",l,ji),document.addEventListener("touchmove",l,ji),document.addEventListener("touchstart",p,ji),function(){ks=ks.filter(function(h){return h!==a}),document.removeEventListener("wheel",l,ji),document.removeEventListener("touchmove",l,ji),document.removeEventListener("touchstart",p,ji)}},[]);var g=e.removeScrollBar,v=e.inert;return $e.createElement($e.Fragment,null,v?$e.createElement(a,{styles:Sie(o)}):null,g?$e.createElement(u3,{gapMode:e.gapMode}):null)}function Eie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var jF=r3(d1,HF);var _F=h1.forwardRef(function(e,t){return h1.createElement(wl,mn({},e,{ref:t,sideCar:jF}))});_F.classNames=wl.classNames;var f3=_F;import{jsx as ce}from"react/jsx-runtime";var p3=["Enter"," "],Pie=["ArrowDown","PageUp","Home"],UF=["ArrowUp","PageDown","End"],Tie=[...Pie,...UF],Aie={ltr:[...p3,"ArrowRight"],rtl:[...p3,"ArrowLeft"]},Rie={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Al="Menu",[Pl,Fie,Oie]=Kd(Al),[_i,d3]=Wd(Al,[Oie,_g,Yg]),Rl=_g(),KF=Yg(),[qF,jo]=_i(Al),[Bie,Fl]=_i(Al),XF=e=>{let{__scopeMenu:t,open:r=!1,children:n,dir:o,onOpenChange:a,modal:s=!0}=e,u=Rl(t),[l,c]=oe.useState(null),p=oe.useRef(!1),d=st(a),m=Xd(o);return oe.useEffect(()=>{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})}},[]),ce(Ug,{...u,children:ce(qF,{scope:t,open:r,onOpenChange:d,content:l,onContentChange:c,children:ce(Bie,{scope:t,onClose:oe.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:p,dir:m,modal:s,children:n})})})};XF.displayName=Al;var Mie="MenuAnchor",m3=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=Rl(r);return ce(fF,{...o,...n,ref:t})});m3.displayName=Mie;var h3="MenuPortal",[Iie,YF]=_i(h3,{forceMount:void 0}),JF=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:o}=e,a=jo(h3,t);return ce(Iie,{scope:t,forceMount:r,children:ce(Fs,{present:r||a.open,children:ce(Kg,{asChild:!0,container:o,children:n})})})};JF.displayName=h3;var Mr="MenuContent",[kie,g3]=_i(Mr),ZF=oe.forwardRef((e,t)=>{let r=YF(Mr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=jo(Mr,e.__scopeMenu),s=Fl(Mr,e.__scopeMenu);return ce(Pl.Provider,{scope:e.__scopeMenu,children:ce(Fs,{present:n||a.open,children:ce(Pl.Slot,{scope:e.__scopeMenu,children:s.modal?ce(Nie,{...o,ref:t}):ce(Vie,{...o,ref:t})})})})}),Nie=oe.forwardRef((e,t)=>{let r=jo(Mr,e.__scopeMenu),n=oe.useRef(null),o=Je(t,n);return oe.useEffect(()=>{let a=n.current;if(a)return DF(a)},[]),ce(v3,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ye(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Vie=oe.forwardRef((e,t)=>{let r=jo(Mr,e.__scopeMenu);return ce(v3,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),v3=oe.forwardRef((e,t)=>{let{__scopeMenu:r,loop:n=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:s,disableOutsidePointerEvents:u,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:g,disableOutsideScroll:v,...h}=e,b=jo(Mr,r),y=Fl(Mr,r),x=Rl(r),w=KF(r),S=Fie(r),[E,D]=oe.useState(null),P=oe.useRef(null),R=Je(t,P,b.onContentChange),F=oe.useRef(0),M=oe.useRef(""),H=oe.useRef(0),I=oe.useRef(null),L=oe.useRef("right"),N=oe.useRef(0),$=v?f3:oe.Fragment,te=v?{as:zo,allowPinchZoom:!0}:void 0,K=G=>{let ae=M.current+G,ve=S().filter(j=>!j.disabled),de=document.activeElement,He=ve.find(j=>j.ref.current===de)?.textValue,A=ve.map(j=>j.textValue),_=Xie(A,ae,He),z=ve.find(j=>j.textValue===_)?.ref.current;(function j(ue){M.current=ue,window.clearTimeout(F.current),ue!==""&&(F.current=window.setTimeout(()=>j(""),1e3))})(ae),z&&setTimeout(()=>z.focus())};oe.useEffect(()=>()=>window.clearTimeout(F.current),[]),YA();let re=oe.useCallback(G=>L.current===I.current?.side&&Jie(G,I.current?.area),[]);return ce(kie,{scope:r,searchRef:M,onItemEnter:oe.useCallback(G=>{re(G)&&G.preventDefault()},[re]),onItemLeave:oe.useCallback(G=>{re(G)||(P.current?.focus(),D(null))},[re]),onTriggerLeave:oe.useCallback(G=>{re(G)&&G.preventDefault()},[re]),pointerGraceTimerRef:H,onPointerGraceIntentChange:oe.useCallback(G=>{I.current=G},[]),children:ce($,{...te,children:ce(Ng,{asChild:!0,trapped:o,onMountAutoFocus:ye(a,G=>{G.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:ce(Bg,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:p,onFocusOutside:d,onInteractOutside:m,onDismiss:g,children:ce(xF,{asChild:!0,...w,dir:y.dir,orientation:"vertical",loop:n,currentTabStopId:E,onCurrentTabStopIdChange:D,onEntryFocus:ye(l,G=>{y.isUsingKeyboardRef.current||G.preventDefault()}),preventScrollOnEntryFocus:!0,children:ce(pF,{role:"menu","aria-orientation":"vertical","data-state":hO(b.open),"data-radix-menu-content":"",dir:y.dir,...x,...h,ref:R,style:{outline:"none",...h.style},onKeyDown:ye(h.onKeyDown,G=>{let ve=G.target.closest("[data-radix-menu-content]")===G.currentTarget,de=G.ctrlKey||G.altKey||G.metaKey,He=G.key.length===1;ve&&(G.key==="Tab"&&G.preventDefault(),!de&&He&&K(G.key));let A=P.current;if(G.target!==A||!Tie.includes(G.key))return;G.preventDefault();let z=S().filter(j=>!j.disabled).map(j=>j.ref.current);UF.includes(G.key)&&z.reverse(),Kie(z)}),onBlur:ye(e.onBlur,G=>{G.currentTarget.contains(G.target)||(window.clearTimeout(F.current),M.current="")}),onPointerMove:ye(e.onPointerMove,Tl(G=>{let ae=G.target,ve=N.current!==G.clientX;if(G.currentTarget.contains(ae)&&ve){let de=G.clientX>N.current?"right":"left";L.current=de,N.current=G.clientX}}))})})})})})})});ZF.displayName=Mr;var Lie="MenuGroup",y3=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return ce(Ue.div,{role:"group",...n,ref:t})});y3.displayName=Lie;var $ie="MenuLabel",QF=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return ce(Ue.div,{...n,ref:t})});QF.displayName=$ie;var g1="MenuItem",WF="menu.itemSelect",y1=oe.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:n,...o}=e,a=oe.useRef(null),s=Fl(g1,e.__scopeMenu),u=g3(g1,e.__scopeMenu),l=Je(t,a),c=oe.useRef(!1),p=()=>{let d=a.current;if(!r&&d){let m=new CustomEvent(WF,{bubbles:!0,cancelable:!0});d.addEventListener(WF,g=>n?.(g),{once:!0}),Ud(d,m),m.defaultPrevented?c.current=!1:s.onClose()}};return ce(eO,{...o,ref:l,disabled:r,onClick:ye(e.onClick,p),onPointerDown:d=>{e.onPointerDown?.(d),c.current=!0},onPointerUp:ye(e.onPointerUp,d=>{c.current||d.currentTarget?.click()}),onKeyDown:ye(e.onKeyDown,d=>{let m=u.searchRef.current!=="";r||m&&d.key===" "||p3.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});y1.displayName=g1;var eO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:n=!1,textValue:o,...a}=e,s=g3(g1,r),u=KF(r),l=oe.useRef(null),c=Je(t,l),[p,d]=oe.useState(!1),[m,g]=oe.useState("");return oe.useEffect(()=>{let v=l.current;v&&g((v.textContent??"").trim())},[a.children]),ce(Pl.ItemSlot,{scope:r,disabled:n,textValue:o??m,children:ce(wF,{asChild:!0,...u,focusable:!n,children:ce(Ue.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...a,ref:c,onPointerMove:ye(e.onPointerMove,Tl(v=>{n?s.onItemLeave(v):(s.onItemEnter(v),v.defaultPrevented||v.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ye(e.onPointerLeave,Tl(v=>s.onItemLeave(v))),onFocus:ye(e.onFocus,()=>d(!0)),onBlur:ye(e.onBlur,()=>d(!1))})})})}),zie="MenuCheckboxItem",tO=oe.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return ce(aO,{scope:e.__scopeMenu,checked:r,children:ce(y1,{role:"menuitemcheckbox","aria-checked":v1(r)?"mixed":r,...o,ref:t,"data-state":x3(r),onSelect:ye(o.onSelect,()=>n?.(v1(r)?!0:!r),{checkForDefaultPrevented:!1})})})});tO.displayName=zie;var rO="MenuRadioGroup",[Gie,Hie]=_i(rO,{value:void 0,onValueChange:()=>{}}),nO=oe.forwardRef((e,t)=>{let{value:r,onValueChange:n,...o}=e,a=st(n);return ce(Gie,{scope:e.__scopeMenu,value:r,onValueChange:a,children:ce(y3,{...o,ref:t})})});nO.displayName=rO;var oO="MenuRadioItem",iO=oe.forwardRef((e,t)=>{let{value:r,...n}=e,o=Hie(oO,e.__scopeMenu),a=r===o.value;return ce(aO,{scope:e.__scopeMenu,checked:a,children:ce(y1,{role:"menuitemradio","aria-checked":a,...n,ref:t,"data-state":x3(a),onSelect:ye(n.onSelect,()=>o.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});iO.displayName=oO;var b3="MenuItemIndicator",[aO,jie]=_i(b3,{checked:!1}),sO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...o}=e,a=jie(b3,r);return ce(Fs,{present:n||v1(a.checked)||a.checked===!0,children:ce(Ue.span,{...o,ref:t,"data-state":x3(a.checked)})})});sO.displayName=b3;var _ie="MenuSeparator",uO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return ce(Ue.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});uO.displayName=_ie;var Wie="MenuArrow",lO=oe.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,o=Rl(r);return ce(dF,{...o,...n,ref:t})});lO.displayName=Wie;var C3="MenuSub",[Uie,cO]=_i(C3),fO=e=>{let{__scopeMenu:t,children:r,open:n=!1,onOpenChange:o}=e,a=jo(C3,t),s=Rl(t),[u,l]=oe.useState(null),[c,p]=oe.useState(null),d=st(o);return oe.useEffect(()=>(a.open===!1&&d(!1),()=>d(!1)),[a.open,d]),ce(Ug,{...s,children:ce(qF,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:p,children:ce(Uie,{scope:t,contentId:Ho(),triggerId:Ho(),trigger:u,onTriggerChange:l,children:r})})})};fO.displayName=C3;var El="MenuSubTrigger",pO=oe.forwardRef((e,t)=>{let r=jo(El,e.__scopeMenu),n=Fl(El,e.__scopeMenu),o=cO(El,e.__scopeMenu),a=g3(El,e.__scopeMenu),s=oe.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:l}=a,c={__scopeMenu:e.__scopeMenu},p=oe.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return oe.useEffect(()=>p,[p]),oe.useEffect(()=>{let d=u.current;return()=>{window.clearTimeout(d),l(null)}},[u,l]),ce(m3,{asChild:!0,...c,children:ce(eO,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":hO(r.open),...e,ref:Oi(t,o.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ye(e.onPointerMove,Tl(d=>{a.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!r.open&&!s.current&&(a.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100))})),onPointerLeave:ye(e.onPointerLeave,Tl(d=>{p();let m=r.content?.getBoundingClientRect();if(m){let g=r.content?.dataset.side,v=g==="right",h=v?-5:5,b=m[v?"left":"right"],y=m[v?"right":"left"];a.onPointerGraceIntentChange({area:[{x:d.clientX+h,y:d.clientY},{x:b,y:m.top},{x:y,y:m.top},{x:y,y:m.bottom},{x:b,y:m.bottom}],side:g}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(d),d.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:ye(e.onKeyDown,d=>{let m=a.searchRef.current!=="";e.disabled||m&&d.key===" "||Aie[n.dir].includes(d.key)&&(r.onOpenChange(!0),r.content?.focus(),d.preventDefault())})})})});pO.displayName=El;var dO="MenuSubContent",mO=oe.forwardRef((e,t)=>{let r=YF(Mr,e.__scopeMenu),{forceMount:n=r.forceMount,...o}=e,a=jo(Mr,e.__scopeMenu),s=Fl(Mr,e.__scopeMenu),u=cO(dO,e.__scopeMenu),l=oe.useRef(null),c=Je(t,l);return ce(Pl.Provider,{scope:e.__scopeMenu,children:ce(Fs,{present:n||a.open,children:ce(Pl.Slot,{scope:e.__scopeMenu,children:ce(v3,{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=>{s.isUsingKeyboardRef.current&&l.current?.focus(),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:ye(e.onFocusOutside,p=>{p.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:ye(e.onEscapeKeyDown,p=>{s.onClose(),p.preventDefault()}),onKeyDown:ye(e.onKeyDown,p=>{let d=p.currentTarget.contains(p.target),m=Rie[s.dir].includes(p.key);d&&m&&(a.onOpenChange(!1),u.trigger?.focus(),p.preventDefault())})})})})})});mO.displayName=dO;function hO(e){return e?"open":"closed"}function v1(e){return e==="indeterminate"}function x3(e){return v1(e)?"indeterminate":e?"checked":"unchecked"}function Kie(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function qie(e,t){return e.map((r,n)=>e[(t+n)%e.length])}function Xie(e,t,r){let o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,a=r?e.indexOf(r):-1,s=qie(e,Math.max(a,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 Yie(e,t){let{x:r,y:n}=e,o=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){let u=t[a].x,l=t[a].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 Jie(e,t){if(!t)return!1;let r={x:e.clientX,y:e.clientY};return Yie(r,t)}function Tl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var gO=XF,vO=m3,yO=JF,bO=ZF,CO=y3,xO=QF,wO=y1,SO=tO,DO=nO,EO=iO,PO=sO,TO=uO,AO=lO,RO=fO,FO=pO,OO=mO;import{jsx as mt}from"react/jsx-runtime";var w3="DropdownMenu",[Qie,oft]=Wd(w3,[d3]),Ot=d3(),[eae,BO]=Qie(w3),S3=e=>{let{__scopeDropdownMenu:t,children:r,dir:n,open:o,defaultOpen:a,onOpenChange:s,modal:u=!0}=e,l=Ot(t),c=ut.useRef(null),[p=!1,d]=gl({prop:o,defaultProp:a,onChange:s});return mt(eae,{scope:t,triggerId:Ho(),triggerRef:c,contentId:Ho(),open:p,onOpenChange:d,onOpenToggle:ut.useCallback(()=>d(m=>!m),[d]),modal:u,children:mt(gO,{...l,open:p,onOpenChange:d,dir:n,modal:u,children:r})})};S3.displayName=w3;var MO="DropdownMenuTrigger",D3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...o}=e,a=BO(MO,r),s=Ot(r);return mt(vO,{asChild:!0,...s,children:mt(Ue.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...o,ref:Oi(t,a.triggerRef),onPointerDown:ye(e.onPointerDown,u=>{!n&&u.button===0&&u.ctrlKey===!1&&(a.onOpenToggle(),a.open||u.preventDefault())}),onKeyDown:ye(e.onKeyDown,u=>{n||(["Enter"," "].includes(u.key)&&a.onOpenToggle(),u.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});D3.displayName=MO;var tae="DropdownMenuPortal",Ol=e=>{let{__scopeDropdownMenu:t,...r}=e,n=Ot(t);return mt(yO,{...n,...r})};Ol.displayName=tae;var IO="DropdownMenuContent",E3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=BO(IO,r),a=Ot(r),s=ut.useRef(!1);return mt(bO,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...n,ref:t,onCloseAutoFocus:ye(e.onCloseAutoFocus,u=>{s.current||o.triggerRef.current?.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)"}})});E3.displayName=IO;var rae="DropdownMenuGroup",P3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(CO,{...o,...n,ref:t})});P3.displayName=rae;var nae="DropdownMenuLabel",T3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(xO,{...o,...n,ref:t})});T3.displayName=nae;var oae="DropdownMenuItem",b1=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(wO,{...o,...n,ref:t})});b1.displayName=oae;var iae="DropdownMenuCheckboxItem",A3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(SO,{...o,...n,ref:t})});A3.displayName=iae;var aae="DropdownMenuRadioGroup",kO=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(DO,{...o,...n,ref:t})});kO.displayName=aae;var sae="DropdownMenuRadioItem",R3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(EO,{...o,...n,ref:t})});R3.displayName=sae;var uae="DropdownMenuItemIndicator",C1=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(PO,{...o,...n,ref:t})});C1.displayName=uae;var lae="DropdownMenuSeparator",cae=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(TO,{...o,...n,ref:t})});cae.displayName=lae;var fae="DropdownMenuArrow",pae=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(AO,{...o,...n,ref:t})});pae.displayName=fae;var NO=e=>{let{__scopeDropdownMenu:t,children:r,open:n,onOpenChange:o,defaultOpen:a}=e,s=Ot(t),[u=!1,l]=gl({prop:n,defaultProp:a,onChange:o});return mt(RO,{...s,open:u,onOpenChange:l,children:r})},dae="DropdownMenuSubTrigger",F3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(FO,{...o,...n,ref:t})});F3.displayName=dae;var mae="DropdownMenuSubContent",O3=ut.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,o=Ot(r);return mt(OO,{...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)"}})});O3.displayName=mae;i();import hae,{css as gae,keyframes as VO}from"styled-components";var Bl=U(Q());import{jsx as w1,jsxs as Cae}from"react/jsx-runtime";var x1="8px",vae=VO`
|
|
2125
2125
|
from {
|
|
2126
2126
|
opacity: 0;
|
|
2127
2127
|
transform: scale(.97) translateY(-8px);
|
|
@@ -2757,7 +2757,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2757
2757
|
> * {
|
|
2758
2758
|
flex: 1;
|
|
2759
2759
|
}
|
|
2760
|
-
`,QB=pue(({renderAs:e="div",direction:t="vertical",gap:r="space02",...n},o)=>hue(mue,{...n,ref:o,as:e,direction:t,gap:r}));QB.displayName="Stack_VHS";i();i();import tM from"styled-components";import{jsx as eM}from"react/jsx-runtime";var t5=tM.button`
|
|
2760
|
+
`,QB=pue(({renderAs:e="div",direction:t="vertical",gap:r="space02",...n},o)=>hue(mue,{...n,ref:o,as:e,direction:t,gap:r}));QB.displayName="Stack_VHS";i();i();import tM,{css as gue}from"styled-components";import{jsx as eM}from"react/jsx-runtime";var t5=tM.button`
|
|
2761
2761
|
background-color: white;
|
|
2762
2762
|
border-color: ${({theme:e})=>e.color.grey700};
|
|
2763
2763
|
border-radius: 20px;
|
|
@@ -2772,7 +2772,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2772
2772
|
padding: 0;
|
|
2773
2773
|
transition: background 175ms ease-out;
|
|
2774
2774
|
vertical-align: middle;
|
|
2775
|
-
width: 48px;
|
|
2775
|
+
width: ${({hideText:e})=>e?"40px":"48px"};
|
|
2776
2776
|
|
|
2777
2777
|
&:hover {
|
|
2778
2778
|
opacity: 0.8;
|
|
@@ -2793,23 +2793,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2793
2793
|
cursor: not-allowed;
|
|
2794
2794
|
opacity: 0.5;
|
|
2795
2795
|
}
|
|
2796
|
-
`,gue
|
|
2797
|
-
background-color: ${({theme:e})=>e.color.grey700};
|
|
2798
|
-
border-radius: 50%;
|
|
2799
|
-
height: 12px;
|
|
2800
|
-
position: relative;
|
|
2801
|
-
transform: translateY(0%) translateX(4px);
|
|
2802
|
-
transition:
|
|
2803
|
-
background 175ms ease-out,
|
|
2804
|
-
color 175ms ease-out,
|
|
2805
|
-
transform 175ms ease-out;
|
|
2806
|
-
width: 12px;
|
|
2807
|
-
|
|
2808
|
-
${t5}[aria-checked="true"] & {
|
|
2809
|
-
background-color: white;
|
|
2810
|
-
transform: translateY(0%) translateX(31px);
|
|
2811
|
-
}
|
|
2812
|
-
|
|
2796
|
+
`,vue=gue`
|
|
2813
2797
|
&::before,
|
|
2814
2798
|
&::after {
|
|
2815
2799
|
display: inline-block;
|
|
@@ -2836,7 +2820,27 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2836
2820
|
left: 20px;
|
|
2837
2821
|
}
|
|
2838
2822
|
}
|
|
2839
|
-
`,
|
|
2823
|
+
`,yue=tM.div`
|
|
2824
|
+
background-color: ${({theme:e})=>e.color.grey700};
|
|
2825
|
+
border-radius: 50%;
|
|
2826
|
+
height: 12px;
|
|
2827
|
+
position: relative;
|
|
2828
|
+
transform: translateY(0%) translateX(4px);
|
|
2829
|
+
transition:
|
|
2830
|
+
background 175ms ease-out,
|
|
2831
|
+
color 175ms ease-out,
|
|
2832
|
+
transform 175ms ease-out;
|
|
2833
|
+
width: 12px;
|
|
2834
|
+
|
|
2835
|
+
--switch-knob-x-offset: ${({hideText:e})=>e?"22px":"31px"};
|
|
2836
|
+
|
|
2837
|
+
${t5}[aria-checked="true"] & {
|
|
2838
|
+
background-color: white;
|
|
2839
|
+
transform: translateY(0%) translateX(var(--switch-knob-x-offset));
|
|
2840
|
+
}
|
|
2841
|
+
|
|
2842
|
+
${({hideText:e})=>!e&&vue}
|
|
2843
|
+
`,rM=({disabled:e=!1,isChecked:t=!1,onChange:r,colorOverride:n,hideText:o=!1,...a})=>eM(t5,{"aria-checked":t,"aria-disabled":e,"aria-label":t?"on":"off",colorOverride:n,hideText:o,onClick:e?void 0:()=>{r&&r(!t)},role:"switch",type:"button",...a,children:eM(yue,{hideText:o})});rM.displayName="Switch_VHS";i();i();var qo=U(Q());import qi from"styled-components";import{jsx as Qn,jsxs as nM}from"react/jsx-runtime";var bue=qi.div`
|
|
2840
2844
|
${({gradientBackground:e})=>xr(e)};
|
|
2841
2845
|
aspect-ratio: 16 / 9;
|
|
2842
2846
|
background-image: ${({backgroundUrl:e})=>e};
|
|
@@ -2847,15 +2851,15 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2847
2851
|
overflow: hidden;
|
|
2848
2852
|
position: relative;
|
|
2849
2853
|
width: ${({width:e})=>e};
|
|
2850
|
-
`,
|
|
2854
|
+
`,Cue=qi.img`
|
|
2851
2855
|
height: 100%;
|
|
2852
2856
|
object-fit: cover;
|
|
2853
2857
|
width: 100%;
|
|
2854
|
-
`,
|
|
2858
|
+
`,xue=qi.img`
|
|
2855
2859
|
backdrop-filter: blur(8px);
|
|
2856
2860
|
object-fit: contain;
|
|
2857
2861
|
width: 100%;
|
|
2858
|
-
`,
|
|
2862
|
+
`,wue=qi.div`
|
|
2859
2863
|
align-items: center;
|
|
2860
2864
|
background-color: rgb(0 0 0 / 50%);
|
|
2861
2865
|
border-radius: 2px;
|
|
@@ -2871,7 +2875,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2871
2875
|
position: absolute;
|
|
2872
2876
|
right: 0;
|
|
2873
2877
|
z-index: 1;
|
|
2874
|
-
`,
|
|
2878
|
+
`,Sue=qi.div`
|
|
2875
2879
|
align-self: center;
|
|
2876
2880
|
aspect-ratio: 1;
|
|
2877
2881
|
margin: 30%;
|
|
@@ -2881,12 +2885,12 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2881
2885
|
height: 100%;
|
|
2882
2886
|
width: 100%;
|
|
2883
2887
|
}
|
|
2884
|
-
`,
|
|
2888
|
+
`,Due=({thumbnailImageType:e,thumbnailUrl:t})=>e==="wide"?Qn(Cue,{alt:"",src:t}):e==="square"?Qn(xue,{alt:"",src:t}):null,Eue=qi.div`
|
|
2885
2889
|
display: grid;
|
|
2886
2890
|
grid-template-columns: auto auto;
|
|
2887
2891
|
grid-template-rows: 50% 50%;
|
|
2888
2892
|
width: 100%;
|
|
2889
|
-
`,
|
|
2893
|
+
`,Pue=qi.div`
|
|
2890
2894
|
background-image: ${({thumbnailUrl:e})=>`url(${e})`};
|
|
2891
2895
|
background-position: center;
|
|
2892
2896
|
background-size: cover;
|
|
@@ -2901,7 +2905,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2901
2905
|
grid-column: 2;
|
|
2902
2906
|
${({total:e})=>e===2&&"grid-row: 1 / 3;"}
|
|
2903
2907
|
}
|
|
2904
|
-
`,oM=({bottomRightText:e,thumbnailUrl:t,thumbnailImageType:r="square",icon:n,bottomRightIcon:o,width:a="auto",gradientBackground:s="defaultMidOne",iconColor:u="white",...l})=>{let c=Array.isArray(t)?t[0]:t;return nM(
|
|
2908
|
+
`,oM=({bottomRightText:e,thumbnailUrl:t,thumbnailImageType:r="square",icon:n,bottomRightIcon:o,width:a="auto",gradientBackground:s="defaultMidOne",iconColor:u="white",...l})=>{let c=Array.isArray(t)?t[0]:t;return nM(bue,{backgroundUrl:r==="square"&&(0,qo.isNotNil)(c)?`url(${c})`:"",gradientBackground:s,width:a,...l,children:[(0,qo.isNotNil)(e)?nM(wue,{children:[o?Qn(De,{size:"sm",type:o}):null,Qn("span",{children:e})]}):null,(0,qo.isNotNil)(n)&&Qn(Sue,{children:Qn(De,{color:u,type:n})}),!Array.isArray(t)&&(0,qo.isNotNil)(r)&&(0,qo.isNotNil)(t)&&Qn(Due,{thumbnailImageType:r,thumbnailUrl:t}),Array.isArray(t)&&(0,qo.isNotNil)(r)&&(0,qo.isNotNil)(t)&&Qn(Eue,{"data-testid":"thumbnail-collage",children:t.map((p,d)=>Qn(Pue,{thumbnailUrl:p,total:t.length},`${p}${d}`))})]})};oM.displayName="Thumbnail_VHS";i();i();var sM=U(Q());import aM from"styled-components";import{jsx as r5}from"react/jsx-runtime";var Tue=aM.div`
|
|
2905
2909
|
display: grid;
|
|
2906
2910
|
grid-template-columns: 3fr 2fr;
|
|
2907
2911
|
grid-template-rows: 1fr 1fr;
|
|
@@ -2932,7 +2936,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2932
2936
|
grid-row: 1 / 3;
|
|
2933
2937
|
}
|
|
2934
2938
|
}
|
|
2935
|
-
`,
|
|
2939
|
+
`,Aue=({thumbnailUrls:e,gradientBackground:t="defaultMidOne",...r})=>r5(Tue,{role:"presentation",...r,children:e.length?e.map(n=>r5(iM,{thumbnailUrl:n},n)):r5(iM,{backgroundGradient:t})});i();i();import Rue from"styled-components";import{jsx as Xo,jsxs as lM}from"react/jsx-runtime";var Fue=Rue.svg`
|
|
2936
2940
|
height: ${({height:e})=>`${e}px`};
|
|
2937
2941
|
|
|
2938
2942
|
/* ensure it will always fit on mobile */
|
|
@@ -2944,7 +2948,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2944
2948
|
${({hoverColor:e})=>e!==void 0?`fill: ${e}`:null};
|
|
2945
2949
|
}
|
|
2946
2950
|
}
|
|
2947
|
-
`,
|
|
2951
|
+
`,Oue=({brandmarkColor:e})=>lM("g",{fill:e,children:[Xo("path",{d:`
|
|
2948
2952
|
M15.37 19.26c-3.45.95-11.23.49-12.48.49H0l4.76-5.37c1.29-1.45
|
|
2949
2953
|
2-1.75 3.39-1.75s4.77.14 6.58 0A18.14 18.14 0 0022 10.64c2.95-1.86
|
|
2950
2954
|
3.54-3 3.54-3s1.05 8.53-10.17 11.62z
|
|
@@ -2952,7 +2956,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2952
2956
|
M25.19 4.19C25.73.9 23.87 0 23.87 0S24 2.68 19 3.25c-4.37.5-19
|
|
2953
2957
|
.12-19 .12l4.71 5.4a4 4 0 003.39 1.74 60.59 60.59 0 006.75-.1 15.8
|
|
2954
2958
|
15.8 0 008-2.7 6 6 0 002.34-3.52z
|
|
2955
|
-
`})]}),
|
|
2959
|
+
`})]}),Bue=({logotypeColor:e})=>Xo("g",{fill:e,children:Xo("path",{d:`
|
|
2956
2960
|
M56.56.25h3.09l-7.9 19.61h-.82L44.76 4.51l-6.24
|
|
2957
2961
|
15.35h-.81v-.1L29.84.25H33l5.18 13 5.23-13h2.81l5.25 13zm6.06
|
|
2958
2962
|
19.53h3.07V.25h-3.07zM77.84 9.16l-2.1-1.24a8.29 8.29 0 01-2-1.55 2.31
|
|
@@ -2966,7 +2970,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2966
2970
|
3h5.8v16.78h3.08V3h5.91V.22H83.72zm18.12 16.79h3.07V.25h-3.07zm25.31
|
|
2967
2971
|
0H124l-2.56-5.69h-8L111 19.78h-3.18l.1-.22L116.25.14h2.14zM117.3
|
|
2968
2972
|
4.93l-2.64 6.39h5.49z
|
|
2969
|
-
`})}),
|
|
2973
|
+
`})}),Mue=(e,t)=>e&&!t?"0 0 25.7 19.9":!e&&t?"29.6 0 97.7 20":"0 0 127.15 20",uM=({brandmark:e=!0,colorOverride:t=void 0,height:r=100,hoverColor:n=void 0,href:o=void 0,logotype:a=!0,title:s="Wistia",variant:u="standard",...l}={})=>{let[c]=Be(["brandBlue500"]),p={standard:{brandmark:t??c,logotype:t??"#0A162F"},black:{brandmark:"black",logotype:"black"},white:{brandmark:"white",logotype:"white"}},d=p[u].brandmark,m=p[u].logotype;if(!e&&!a)return null;let g=lM(Fue,{height:r,hoverColor:n,role:"img",title:"Wistia Logo",viewBox:Mue(!!e,!!a),xmlns:"http://www.w3.org/2000/svg",...l,children:[Xo("title",{children:s}),e?Xo(Oue,{brandmarkColor:d}):null,a?Xo(Bue,{logotypeColor:m}):null]});return o!==void 0?Xo("a",{href:o,children:g}):g};uM.displayName="WistiaLogo_VHS";i();i();var cM=U(Q());import Iue from"styled-components";import{jsx as eo,jsxs as $ue}from"react/jsx-runtime";var kue=(e,t)=>t?eo("g",{fill:e,children:eo("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"})}):eo("g",{fill:e,children:eo("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"})}),Nue=(e,t)=>t?null:eo("g",{fill:e,children:eo("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"})}),Vue=e=>e?"0 0 34.4 26.78":"0 0 144 31.47",Lue=Iue.svg`
|
|
2970
2974
|
height: ${({height:e})=>`${e}px`};
|
|
2971
2975
|
|
|
2972
2976
|
/* ensure it will always fit on mobile */
|
|
@@ -2978,7 +2982,7 @@ var vM=Object.create;var _l=Object.defineProperty;var yM=Object.getOwnPropertyDe
|
|
|
2978
2982
|
${({hoverColor:e})=>e!==void 0?`fill: ${e}`:null};
|
|
2979
2983
|
}
|
|
2980
2984
|
}
|
|
2981
|
-
`,fM=({description:e=void 0,height:t=100,hoverColor:r=void 0,href:n=void 0,iconOnly:o=!1,title:a="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}},m=d[s].brandmark,g=d[s].logotype,v
|
|
2985
|
+
`,fM=({description:e=void 0,height:t=100,hoverColor:r=void 0,href:n=void 0,iconOnly:o=!1,title:a="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}},m=d[s].brandmark,g=d[s].logotype,v=$ue(Lue,{height:t,hoverColor:r,role:"img",viewBox:Vue(o),xmlns:"http://www.w3.org/2000/svg",...u,children:[eo("title",{children:a}),(0,cM.isNotNil)(e)?eo("desc",{children:e}):null,kue(m,o),Nue(g,o)]});return n!==void 0?eo("a",{href:n,children:v}):v};fM.displayName="WistiaLogoNew_VHS";export{cS as ActionModal,hS as Avatar,rn as Backdrop,yS as BackgroundImage,xS as Badge,ju as Banner,AS as Box,RS as Breakline,rt as Button,Ro as ButtonGroup,LS as ButtonLink,Ip as Checkbox,Lp as CheckboxGroup,Eae as CheckboxMenuItem,US as ClickArea,XS as CloseButton,iD as CollapsibleGroup,Gp as Divider,Uw as Ellipsis,aD as FileSelect,dD as Form,hD as FormButtons,wA as FormField,Np as FormFieldError,Hp as FormGlobalError,DA as FullScreenModal,De as Icon,Fo as IconButton,EA as Image,as as Input,TA as KeyboardShortcut,kp as Label,Vp as LabelDescription,Tp as Link,AA as LinkButton,_d as List,Fi as ListItem,NA as MediaObject,LO as Menu,aB as MenuButton,Dae as MenuItem,Fae as MenuLabel,kO as MenuRadioGroup,gB as Modal,ts as ModalBase,lse as ModalBody,pse as ModalCloseButton,cse as ModalFooter,use as ModalHeader,yB as Paper,xB as ProgressBar,Jp as Radio,Zp as RadioGroup,Pae as RadioMenuItem,XB as RangeSelector,k1 as RangeSelectorCalendar,G1 as RangeSelectorInput,zd as RichTextEditor,yp as ScreenReaderOnly,Ci as Select,ZB as Slider,QB as Stack,Iae as SubMenu,rM as Switch,mr as Text,oM as Thumbnail,Aue as ThumbnailCollage,Tf as Toast,N0 as ToastProvider,rs as Tooltip,Sp as Truncate,kMe as VHSProvider,uM as WistiaLogo,fM as WistiaLogoNew,Gs as copyToClipboard,_ce as datetimeHelpers,nU as ellipsisFlexParentStyle,Er as ellipsisStyle,xr as getBackgroundGradient,efe as getSemiRandomBackgroundGradient,xf as iconSizeMap,Vl as isValidRange,Me as mq,hpe as objectHelpers,Id as rteDeserializeHTML,pt as rteFormatTypes,ws as rteSerializeToHTML,$u as screenReaderOnlyStyle,Qpe as stringHelpers,G0 as useBoolean,O$ as useClipboard,H0 as useElementObserver,_0 as useEvent,q0 as useFocusTrap,_$ as useForceUpdate,di as useFormikContext,AW as useIsHovered,hp as useKey,gh as useKeyPress,yh as useKeyPressOnce,kW as useLocalStorage,Iu as useMergedRefs,On as useMq,ku as useOnClickOutside,bh as usePreventScroll,Nu as usePreviousValue,Fn as useTheme,Be as useThemeColor,Ku as useToast,x0 as useWindowSize};
|
|
2982
2986
|
/*! Bundled license information:
|
|
2983
2987
|
|
|
2984
2988
|
react-is/cjs/react-is.production.min.js:
|